Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitedb4485

Browse files
chore: bump the react group across 2 directories with 2 updates (#14895)
Bumps the react group with 1 update in the /offlinedocs directory:[@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react).Bumps the react group with 2 updates in the /site directory:[@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react)and[@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom).Updates `@types/react` from 18.3.3 to 18.3.10<details><summary>Commits</summary><ul><li>See full diff in <ahref="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react">compareview</a></li></ul></details><br />Updates `@types/react` from 18.2.6 to 18.3.10<details><summary>Commits</summary><ul><li>See full diff in <ahref="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react">compareview</a></li></ul></details><br />Updates `@types/react-dom` from 18.2.4 to 18.3.0<details><summary>Commits</summary><ul><li>See full diff in <ahref="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom">compareview</a></li></ul></details><br />Dependabot will resolve any conflicts with this PR as long as you don'talter it yourself. You can also trigger a rebase manually by commenting`@dependabot rebase`.[//]: # (dependabot-automerge-start)[//]: # (dependabot-automerge-end)---<details><summary>Dependabot commands and options</summary><br />You can trigger Dependabot actions by commenting on this PR:- `@dependabot rebase` will rebase this PR- `@dependabot recreate` will recreate this PR, overwriting any editsthat have been made to it- `@dependabot merge` will merge this PR after your CI passes on it- `@dependabot squash and merge` will squash and merge this PR afteryour CI passes on it- `@dependabot cancel merge` will cancel a previously requested mergeand block automerging- `@dependabot reopen` will reopen this PR if it is closed- `@dependabot close` will close this PR and stop Dependabot recreatingit. You can achieve the same result by closing it manually- `@dependabot show <dependency name> ignore conditions` will show allof the ignore conditions of the specified dependency- `@dependabot ignore <dependency name> major version` will close thisgroup update PR and stop Dependabot creating any more for the specificdependency's major version (unless you unignore this specificdependency's major version or upgrade to it yourself)- `@dependabot ignore <dependency name> minor version` will close thisgroup update PR and stop Dependabot creating any more for the specificdependency's minor version (unless you unignore this specificdependency's minor version or upgrade to it yourself)- `@dependabot ignore <dependency name>` will close this group update PRand stop Dependabot creating any more for the specific dependency(unless you unignore this specific dependency or upgrade to it yourself)- `@dependabot unignore <dependency name>` will remove all of the ignoreconditions of the specified dependency- `@dependabot unignore <dependency name> <ignore condition>` willremove the ignore condition of the specified dependency and ignoreconditions</details>---------Signed-off-by: dependabot[bot] <support@github.com>Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Co-authored-by: BrunoQuaresma <bruno_nonato_quaresma@hotmail.com>
1 parent1de12b0 commitedb4485

File tree

6 files changed

+467
-456
lines changed

6 files changed

+467
-456
lines changed

‎offlinedocs/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"devDependencies": {
3232
"@types/lodash":"4.14.196",
3333
"@types/node":"20.14.8",
34-
"@types/react":"18.3.3",
34+
"@types/react":"18.3.10",
3535
"@types/react-dom":"18.3.0",
3636
"eslint":"8.57.0",
3737
"eslint-config-next":"14.2.13",

‎offlinedocs/pnpm-lock.yaml‎

Lines changed: 202 additions & 207 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎site/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@
128128
"@types/jest":"29.5.12",
129129
"@types/lodash":"4.17.9",
130130
"@types/node":"20.14.8",
131-
"@types/react":"18.2.6",
131+
"@types/react":"18.3.10",
132132
"@types/react-color":"3.0.6",
133133
"@types/react-date-range":"1.4.4",
134-
"@types/react-dom":"18.2.4",
134+
"@types/react-dom":"18.3.0",
135135
"@types/react-syntax-highlighter":"15.5.13",
136136
"@types/react-virtualized-auto-sizer":"1.0.4",
137137
"@types/react-window":"1.8.8",

‎site/pnpm-lock.yaml‎

Lines changed: 222 additions & 219 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎site/src/modules/resources/ResourceCard.tsx‎

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { CopyableValue } from "components/CopyableValue/CopyableValue";
66
import{DropdownArrow}from"components/DropdownArrow/DropdownArrow";
77
import{MemoizedInlineMarkdown}from"components/Markdown/Markdown";
88
import{Stack}from"components/Stack/Stack";
9-
import{Children,typeFC,typePropsWithChildren,useState}from"react";
9+
import{Children,typeFC,useState}from"react";
1010
import{ResourceAvatar}from"./ResourceAvatar";
1111
import{SensitiveValue}from"./SensitiveValue";
1212

@@ -75,14 +75,6 @@ export interface ResourceCardProps {
7575
agentRow:(agent:WorkspaceAgent)=>JSX.Element;
7676
}
7777

78-
constp:FC<PropsWithChildren>=({ children})=>{
79-
constchildrens=Children.toArray(children);
80-
if(childrens.every((child)=>typeofchild==="string")){
81-
return<CopyableValuevalue={childrens.join("")}>{children}</CopyableValue>;
82-
}
83-
return<>{children}</>;
84-
};
85-
8678
exportconstResourceCard:FC<ResourceCardProps>=({ resource, agentRow})=>{
8779
const[shouldDisplayAllMetadata,setShouldDisplayAllMetadata]=
8880
useState(false);
@@ -146,7 +138,25 @@ export const ResourceCard: FC<ResourceCardProps> = ({ resource, agentRow }) => {
146138
{meta.sensitive ?(
147139
<SensitiveValuevalue={meta.value}/>
148140
) :(
149-
<MemoizedInlineMarkdowncomponents={{ p}}>
141+
<MemoizedInlineMarkdown
142+
components={{
143+
p:({ children})=>{
144+
constchildrens=Children.toArray(children);
145+
if(
146+
childrens.every(
147+
(child)=>typeofchild==="string",
148+
)
149+
){
150+
return(
151+
<CopyableValuevalue={childrens.join("")}>
152+
{children}
153+
</CopyableValue>
154+
);
155+
}
156+
return<>{children}</>;
157+
},
158+
}}
159+
>
150160
{meta.value}
151161
</MemoizedInlineMarkdown>
152162
)}

‎site/src/pages/WorkspacePage/ResourceMetadata.tsx‎

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@ import type { WorkspaceResource } from "api/typesGenerated";
33
import{CopyableValue}from"components/CopyableValue/CopyableValue";
44
import{MemoizedInlineMarkdown}from"components/Markdown/Markdown";
55
import{SensitiveValue}from"modules/resources/SensitiveValue";
6-
import{
7-
Children,
8-
typeFC,
9-
typeHTMLAttributes,
10-
typePropsWithChildren,
11-
}from"react";
6+
import{Children,typeFC,typeHTMLAttributes}from"react";
127

138
typeResourceMetadataProps=Omit<HTMLAttributes<HTMLElement>,"resource">&{
149
resource:WorkspaceResource;
@@ -41,7 +36,25 @@ export const ResourceMetadata: FC<ResourceMetadataProps> = ({
4136
{meta.sensitive ?(
4237
<SensitiveValuevalue={meta.value}/>
4338
) :(
44-
<MemoizedInlineMarkdowncomponents={{p:MetaValue}}>
39+
<MemoizedInlineMarkdown
40+
components={{
41+
p:({ children})=>{
42+
constchildrenArray=Children.toArray(children);
43+
if(
44+
childrenArray.every(
45+
(child)=>typeofchild==="string",
46+
)
47+
){
48+
return(
49+
<CopyableValuevalue={childrenArray.join("")}>
50+
{children}
51+
</CopyableValue>
52+
);
53+
}
54+
return<>{children}</>;
55+
},
56+
}}
57+
>
4558
{meta.value}
4659
</MemoizedInlineMarkdown>
4760
)}
@@ -54,16 +67,6 @@ export const ResourceMetadata: FC<ResourceMetadataProps> = ({
5467
);
5568
};
5669

57-
constMetaValue:FC<PropsWithChildren>=({ children})=>{
58-
constchildrenArray=Children.toArray(children);
59-
if(childrenArray.every((child)=>typeofchild==="string")){
60-
return(
61-
<CopyableValuevalue={childrenArray.join("")}>{children}</CopyableValue>
62-
);
63-
}
64-
return<>{children}</>;
65-
};
66-
6770
conststyles={
6871
root:(theme)=>({
6972
padding:24,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp