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

Commitb68355a

Browse files
authored
chore: upgrade React.js (#1943)
1 parent2c78c7c commitb68355a

File tree

14 files changed

+1723
-1563
lines changed

14 files changed

+1723
-1563
lines changed

‎apps/client/package.json‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
"dependencies": {
2121
"@casperiv/use-socket.io":"6.0.1",
2222
"@casperiv/useful":"^3.0.0",
23-
"@headlessui/react":"^1.7.17",
23+
"@headlessui/react":"^2.0.4",
2424
"@radix-ui/react-popover":"^1.0.7",
2525
"@radix-ui/react-tabs":"^1.0.4",
2626
"@radix-ui/react-toolbar":"^1.0.4",
2727
"@radix-ui/react-tooltip":"^1.0.7",
2828
"@react-aria/label":"^3.7.8",
2929
"@react-aria/ssr":"^3.9.4",
30-
"@react-types/shared":"^3.22.0",
30+
"@react-types/shared":"^3.23.1",
3131
"@sentry/browser":"^7.81.1",
3232
"@sentry/nextjs":"^7.81.1",
3333
"@sentry/tracing":"^7.81.1",
@@ -46,8 +46,8 @@
4646
"@types/is-hotkey":"^0.1.10",
4747
"@types/leaflet":"^1.9.12",
4848
"@types/nprogress":"^0.2.3",
49-
"@types/react":"18.2.34",
50-
"@types/react-dom":"18.2.14",
49+
"@types/react":"18.3.3",
50+
"@types/react-dom":"18.3.0",
5151
"@types/sortablejs":"^1.15.8",
5252
"@types/uuid":"^9.0.8",
5353
"autoprefixer":"^10.4.19",
@@ -67,28 +67,28 @@
6767
"nookies":"^2.5.2",
6868
"nprogress":"^0.2.0",
6969
"pretty-bytes":"^6.1.1",
70-
"react":"18.2.0",
70+
"react":"18.3.1",
7171
"react-bootstrap-icons":"^1.11.4",
7272
"react-colorful":"^5.6.1",
7373
"react-cool-onclickoutside":"^1.7.0",
7474
"react-cropper":"^2.3.3",
7575
"react-diff-viewer-continued":"^3.4.0",
7676
"react-digit-input":"^2.1.0",
77-
"react-dom":"18.2.0",
77+
"react-dom":"18.3.1",
7878
"react-google-recaptcha-v3":"^1.10.1",
7979
"react-hot-toast":"^2.4.1",
8080
"react-leaflet":"^4.2.1",
8181
"react-markdown":"^9.0.1",
8282
"react-select":"^5.8.0",
8383
"react-sortablejs":"^6.1.4",
84-
"react-use":"^17.4.0",
84+
"react-use":"^17.5.0",
8585
"remark-emoji":"^4.0.1",
8686
"remark-external-links":"^9.0.1",
8787
"remark-gfm":"^4.0.0",
8888
"remark-github":"^12.0.0",
89-
"slate":"^0.100.0",
89+
"slate":"^0.103.0",
9090
"slate-history":"^0.100.0",
91-
"slate-react":"^0.101.0",
91+
"slate-react":"^0.105.0",
9292
"socket.io-client":"^4.7.5",
9393
"sortablejs":"^1.15.2",
9494
"storage-factory":"^0.2.1",

‎apps/client/src/components/dispatch/map/units/player-marker.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export function PlayerMarker({ player, handleToggle }: Props) {
122122

123123
return(
124124
<Marker
125+
//@ts-expect-error incompatible types with React
125126
ref={(ref)=>(player.ref=ref)}
126127
icon={playerIcon}
127128
key={player.identifier}

‎apps/client/src/components/editor/editor.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export function Editor(props: EditorProps) {
7171
);
7272
constrenderLeaf=React.useCallback((props:RenderLeafProps)=><EditorLeaf{...props}/>,[]);
7373
consteditor=React.useMemo(
74+
//@ts-expect-error - Missing types in Slate
7475
()=>withChecklists(withShortcuts(withHistory(withReact(createEditor())))),
7576
[],
7677
);
@@ -131,6 +132,7 @@ export function Editor(props: EditorProps) {
131132
)}
132133
>
133134
<Slate
135+
//@ts-expect-error - Missing types in Slate
134136
editor={editor}
135137
initialValue={props.valueasDescendant[]}
136138
onValueChange={(value)=>{

‎apps/client/src/components/editor/elements/checklist-item.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export function CheckListItemElement({ attributes, children, element }: Props) {
1111
constreadOnly=useReadOnly();
1212

1313
functionhandleSelectionChange(isSelected:boolean){
14+
//@ts-expect-error - Missing types in Slate
1415
constpath=ReactEditor.findPath(editor,element);
1516

1617
Transforms.setNodes(editor,{checked:isSelected},{at:path});

‎packages/ui/package.json‎

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
"@storybook/react-vite":"^7.5.3",
3131
"@storybook/test-runner":"^0.15.2",
3232
"@storybook/testing-library":"^0.2.2",
33-
"autoprefixer":"^10.4.16",
33+
"autoprefixer":"^10.4.19",
3434
"monaco-editor":"^0.44.0",
35-
"postcss":"^8.4.31",
35+
"postcss":"^8.4.38",
3636
"prop-types":"^15.8.1",
3737
"storybook":"^7.5.3",
38-
"tailwindcss":"^3.3.5",
38+
"tailwindcss":"^3.4.4",
3939
"tsup":"6.6.2",
4040
"typescript":"^5.3.2",
41-
"vite":"^5.0.2"
41+
"vite":"^5.2.13"
4242
},
4343
"tsup": {
4444
"entry": [
@@ -62,70 +62,70 @@
6262
"next-intl":"2.22.1",
6363
"use-intl":"2.22.1",
6464
"@casperiv/useful":"^3.0.0",
65-
"@internationalized/date":"^3.5.0",
65+
"@internationalized/date":"^3.5.4",
6666
"@monaco-editor/react":"^4.6.0",
6767
"@radix-ui/react-accordion":"^1.1.2",
6868
"@radix-ui/react-context-menu":"^2.1.5",
6969
"@radix-ui/react-dropdown-menu":"^2.0.6",
7070
"@radix-ui/react-hover-card":"^1.0.7",
7171
"@radix-ui/react-tabs":"^1.0.4",
72-
"@react-aria/breadcrumbs":"^3.5.8",
73-
"@react-aria/button":"^3.9.0",
74-
"@react-aria/calendar":"^3.5.3",
72+
"@react-aria/breadcrumbs":"^3.5.13",
73+
"@react-aria/button":"^3.9.5",
74+
"@react-aria/calendar":"^3.5.8",
7575
"@react-aria/checkbox":"^3.12.0",
7676
"@react-aria/combobox":"^3.8.0",
7777
"@react-aria/datepicker":"^3.9.0",
78-
"@react-aria/dialog":"^3.5.8",
78+
"@react-aria/dialog":"^3.5.14",
7979
"@react-aria/focus":"^3.15.0",
8080
"@react-aria/i18n":"^3.9.0",
8181
"@react-aria/interactions":"^3.20.0",
82-
"@react-aria/label":"^3.7.3",
82+
"@react-aria/label":"^3.7.8",
8383
"@react-aria/listbox":"^3.11.2",
8484
"@react-aria/menu":"^3.11.2",
8585
"@react-aria/overlays":"^3.19.0",
86-
"@react-aria/progress":"^3.4.8",
86+
"@react-aria/progress":"^3.4.13",
8787
"@react-aria/radio":"^3.9.0",
8888
"@react-aria/switch":"^3.5.7",
8989
"@react-aria/textfield":"^3.13.0",
9090
"@react-aria/utils":"^3.22.0",
91-
"@react-aria/visually-hidden":"^3.8.7",
91+
"@react-aria/visually-hidden":"^3.8.12",
9292
"@react-stately/calendar":"^3.4.2",
93-
"@react-stately/collections":"^3.10.3",
94-
"@react-stately/combobox":"^3.8.0",
95-
"@react-stately/data":"^3.11.0",
96-
"@react-stately/datepicker":"^3.9.0",
97-
"@react-stately/list":"^3.10.1",
93+
"@react-stately/collections":"^3.10.7",
94+
"@react-stately/combobox":"^3.8.4",
95+
"@react-stately/data":"^3.11.4",
96+
"@react-stately/datepicker":"^3.9.4",
97+
"@react-stately/list":"^3.10.5",
9898
"@react-stately/menu":"^3.5.7",
99-
"@react-stately/overlays":"^3.6.4",
100-
"@react-stately/radio":"^3.10.0",
101-
"@react-stately/select":"^3.6.0",
102-
"@react-stately/toggle":"^3.7.0",
99+
"@react-stately/overlays":"^3.6.7",
100+
"@react-stately/radio":"^3.10.4",
101+
"@react-stately/select":"^3.6.4",
102+
"@react-stately/toggle":"^3.7.4",
103103
"@react-types/combobox":"^3.9.0",
104-
"@react-types/overlays":"^3.8.4",
105-
"@react-types/select":"^3.9.0",
104+
"@react-types/overlays":"^3.8.7",
105+
"@react-types/select":"^3.9.4",
106106
"@react-types/shared":"^3.22.0",
107107
"@snailycad/config":"workspace:*",
108108
"@snailycad/types":"workspace:*",
109109
"@snailycad/utils":"workspace:*",
110-
"@types/react":"18.2.34",
111-
"@types/react-dom":"18.2.14",
110+
"@types/react":"18.3.3",
111+
"@types/react-dom":"18.3.0",
112112
"class-variance-authority":"^0.7.0",
113-
"formik":"^2.4.5",
113+
"formik":"^2.4.6",
114114
"mxcn":"^2.0.0",
115-
"react-bootstrap-icons":"^1.10.3",
115+
"react-bootstrap-icons":"^1.11.4",
116116
"react-dnd":"16.0.1",
117117
"react-dnd-html5-backend":"16.0.1",
118-
"react-use":"^17.4.0",
119-
"rimraf":"^5.0.5",
120-
"tailwind-merge":"^2.0.0",
121-
"tslib":"^2.6.2"
118+
"react-use":"^17.5.0",
119+
"rimraf":"^5.0.7",
120+
"tailwind-merge":"^2.3.0",
121+
"tslib":"^2.6.3"
122122
},
123123
"peerDependencies": {
124124
"date-fns":">=2.30.0",
125125
"next":"*",
126126
"next-intl":"2.22.1",
127-
"react":">=18.2.0",
128-
"react-dom":">=18.2.0",
127+
"react":">=18.3.1",
128+
"react-dom":">=18.3.1",
129129
"use-intl":"2.22.1"
130130
},
131131
"sideEffects":false

‎packages/ui/src/components/dnd/draggable.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export function Draggable(props: Props) {
2828
},[isDragging]);// eslint-disable-line react-hooks/exhaustive-deps
2929

3030
return(
31+
//@ts-expect-error - React versions are different
3132
<divref={drag}style={{ opacity}}>
3233
{props.children({ isDragging})}
3334
</div>

‎packages/ui/src/components/dnd/droppable.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export function Droppable<Item>(props: Props<Item>) {
2323
constisActive=isOver&&_canDrop;
2424

2525
return(
26+
//@ts-expect-error - React versions are different
2627
<divclassName={cn(isActive&&"outline outline-2 outline-offset-[5px] rounded-sm")}ref={drop}>
2728
{props.children}
2829
</div>

‎packages/ui/src/components/fields/async-list-search-field.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function AsyncListSearchField<T extends object>(props: AsyncListFieldProps<T>) {
106106
[props.localValue],
107107
);
108108

109-
functionhandleSelectionChange(key?:Key,value?:string){
109+
functionhandleSelectionChange(key?:Key|null,value?:string){
110110
try{
111111
if(props.isClearable&&key==="cleared"){
112112
props.onSelectionChange(null);
@@ -222,7 +222,7 @@ function AsyncListSearchField<T extends object>(props: AsyncListFieldProps<T>) {
222222
) :null}
223223
</div>
224224

225-
{props.errorMessage&&(
225+
{!!props.errorMessage&&(
226226
<ErrorMessageerrorMessage={props.errorMessage}errorMessageProps={errorMessageProps}/>
227227
)}
228228
</div>

‎packages/ui/src/components/fields/async-list-search-field/actions.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function AsyncListSearchFieldActions<T>(props: AsyncListSearchFieldAction
1616
?"border-gray-800 dark:border-gray-500"
1717
:"border-gray-200 dark:border-quinary";
1818
consterrorMessageClassName=
19-
props.errorMessage&&"!border-red-500 focus:!border-red-700 dark:!focus:border-red-700";
19+
!!props.errorMessage&&"!border-red-500 focus:!border-red-700 dark:!focus:border-red-700";
2020

2121
constenabledHoverClassName=
2222
!props.isDisabled&&"group-hover:dark:!border-gray-500 group-hover:!border-gray-500";

‎packages/ui/src/components/fields/date-picker-field.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function DatePickerField({ value: _value, ...rest }: Props) {
6060
}=useDatePicker({ ...rest},state,triggerRef);
6161

6262
consterrorMessageClassName=
63-
rest.errorMessage&&"!border-red-500 focus:!border-red-700 dark:!focus:border-red-700";
63+
!!rest.errorMessage&&"!border-red-500 focus:!border-red-700 dark:!focus:border-red-700";
6464

6565
return(
6666
<ModalProvider>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp