Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

chore: update for React 19 compatibility (#4247)

白熱30c5e05721b4
diff --git a/common/shared/eslint/index.js b/common/shared/eslint/index.js
index 52abb19080..ba93552aee 100644
--- a/common/shared/eslint/index.js
+++ b/common/shared/eslint/index.js
@@ -51,6 +51,10 @@ exports.baseRules = {
'command/command': 'off',
'jsdoc/tag-lines': 'off',
+ // IMPORTANT: To ensure compatibility, some features of React 19 will be disabled.
+ 'react/no-forward-ref': 'off',
+ 'react/no-context-provider': 'off',
+
// TODO: debatable rules
'react/no-duplicate-key': 'warn',
'test/prefer-lowercase-title': 'off',
diff --git a/common/shared/tsconfigs/base.json b/common/shared/tsconfigs/base.json
index ddd4731d34..9aa6b32b16 100644
--- a/common/shared/tsconfigs/base.json
+++ b/common/shared/tsconfigs/base.json
@@ -2,7 +2,7 @@
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"target": "ESNext",
- "jsx": "react",
+ "jsx": "react-jsx",
"lib": ["ESNext", "DOM", "DOM.Iterable", "WebWorker"],
"useDefineForClassFields": true,
diff --git a/common/shared/vite/data.ts b/common/shared/vite/data.ts
index c6fd776805..579513755d 100644
--- a/common/shared/vite/data.ts
+++ b/common/shared/vite/data.ts
@@ -18,12 +18,22 @@ export const peerDepsMap = {
react: {
global: 'React',
name: 'react',
- version: '^16.9.0 || ^17.0.0 || ^18.0.0',
+ version: '>=16.9.0 || >=17 || >=18 || >=19',
+ },
+ 'react/jsx-runtime': {
+ global: 'React',
+ name: 'react',
+ version: 'react',
},
'react-dom': {
global: 'ReactDOM',
name: 'react-dom',
- version: '^16.9.0 || ^17.0.0 || ^18.0.0',
+ version: '>=16.9.0 || >=17 || >=18 || >=19',
+ },
+ 'react-dom/client': {
+ global: 'ReactDOM',
+ name: 'react-dom',
+ version: 'react-dom',
},
rxjs: {
global: 'rxjs',
diff --git a/common/shared/vite/index.ts b/common/shared/vite/index.ts
index 04880e5617..a8aa165488 100644
--- a/common/shared/vite/index.ts
+++ b/common/shared/vite/index.ts
@@ -209,6 +209,10 @@ export async function build(options?: IBuildOptions) {
build: {
target: 'chrome70',
},
+ esbuild: {
+ minifyIdentifiers: false,
+ keepNames: true,
+ },
resolve: {
conditions: nodeFirst ? ['node', 'default'] : undefined,
},
diff --git a/e2e/visual-comparison/docs/docs-visual-comparison.spec.ts-snapshots/default-doc-ci-chromium-linux.png b/e2e/visual-comparison/docs/docs-visual-comparison.spec.ts-snapshots/default-doc-ci-chromium-linux.png
index 56af6fd4ae..b9ca5d0b14 100644
Binary files a/e2e/visual-comparison/docs/docs-visual-comparison.spec.ts-snapshots/default-doc-ci-chromium-linux.png and b/e2e/visual-comparison/docs/docs-visual-comparison.spec.ts-snapshots/default-doc-ci-chromium-linux.png differ
diff --git a/e2e/visual-comparison/sheets/sheets-gridlines.spec.ts-snapshots/sheets-no-gridlines-ci-chromium-linux.png b/e2e/visual-comparison/sheets/sheets-gridlines.spec.ts-snapshots/sheets-no-gridlines-ci-chromium-linux.png
index e09553959b..abba6173cc 100644
Binary files a/e2e/visual-comparison/sheets/sheets-gridlines.spec.ts-snapshots/sheets-no-gridlines-ci-chromium-linux.png and b/e2e/visual-comparison/sheets/sheets-gridlines.spec.ts-snapshots/sheets-no-gridlines-ci-chromium-linux.png differ
diff --git a/e2e/visual-comparison/sheets/sheets-visual-comparison.spec.ts-snapshots/default-sheet-fullpage-ci-chromium-linux.png b/e2e/visual-comparison/sheets/sheets-visual-comparison.spec.ts-snapshots/default-sheet-fullpage-ci-chromium-linux.png
index 800eeb6e88..b609a5f047 100644
Binary files a/e2e/visual-comparison/sheets/sheets-visual-comparison.spec.ts-snapshots/default-sheet-fullpage-ci-chromium-linux.png and b/e2e/visual-comparison/sheets/sheets-visual-comparison.spec.ts-snapshots/default-sheet-fullpage-ci-chromium-linux.png differ
diff --git a/examples/package.json b/examples/package.json
index 479540c794..90fe7059c2 100644
--- a/examples/package.json
+++ b/examples/package.json
@@ -71,14 +71,12 @@
"@univerjs/uniui": "workspace:*",
"@univerjs/watermark": "workspace:*",
"monaco-editor": "0.52.2",
- "react": "18.3.1",
- "react-dom": "18.3.1",
+ "react": "19.0.0",
+ "react-dom": "19.0.0",
"react-mosaic-component": "^6.1.1"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
- "@types/react": "^18.3.12",
- "@types/react-dom": "^18.3.1",
"@univerjs-infra/shared": "workspace:*",
"cross-env": "^7.0.3",
"detect-port": "^1.6.1",
diff --git a/examples/src/main.tsx b/examples/src/main.tsx
index 1650d17e70..33758132e8 100644
--- a/examples/src/main.tsx
+++ b/examples/src/main.tsx
@@ -14,8 +14,8 @@
* limitations under the License.
*/
+import { render } from '@univerjs/design';
import React from 'react';
-import { createRoot } from 'react-dom/client';
import pkg from '../../package.json';
import './global.css';
@@ -109,4 +109,4 @@ function Examples() {
);
}
-createRoot(document.getElementById('app')!).render(<Examples />);
+render(<Examples />, document.getElementById('app')!);
diff --git a/examples/src/sheets-multi/main.tsx b/examples/src/sheets-multi/main.tsx
index 02eacc3101..9e0892f9b2 100644
--- a/examples/src/sheets-multi/main.tsx
+++ b/examples/src/sheets-multi/main.tsx
@@ -15,7 +15,7 @@
*/
import { LocaleType, LogLevel, Tools, Univer, UniverInstanceType } from '@univerjs/core';
-import { defaultTheme } from '@univerjs/design';
+import { defaultTheme, render } from '@univerjs/design';
import { UniverDocsPlugin } from '@univerjs/docs';
import { UniverDocsUIPlugin } from '@univerjs/docs-ui';
@@ -29,7 +29,6 @@ import { UniverSheetsNumfmtUIPlugin } from '@univerjs/sheets-numfmt-ui';
import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui';
import { UniverUIPlugin } from '@univerjs/ui';
import React, { useEffect } from 'react';
-import { createRoot } from 'react-dom/client';
import { Mosaic, MosaicWindow } from 'react-mosaic-component';
import { enUS, faIR, frFR, ruRU, zhCN } from '../locales';
@@ -114,4 +113,5 @@ export function App() {
/>
);
};
-createRoot(document.getElementById('app')!).render(<App />);
+
+render(<App />, document.getElementById('app')!);
diff --git a/package.json b/package.json
index a712bd5c21..a5fce87d48 100644
--- a/package.json
+++ b/package.json
@@ -19,8 +19,8 @@
"url": "https://github.com/dream-num/univer/issues"
},
"engines": {
- "node": ">=18.0.0",
- "pnpm": ">=8.5.0 || >=9.0.0"
+ "node": ">=18 || <=22",
+ "pnpm": ">=9"
},
"scripts": {
"prepare": "husky install",
@@ -53,8 +53,8 @@
"@release-it/conventional-changelog": "^9.0.4",
"@storybook/react": "8.4.7",
"@types/node": "^22.10.2",
- "@types/react": "^18.3.12",
- "@types/react-dom": "^18.3.1",
+ "@types/react": "^19.0.2",
+ "@types/react-dom": "^19.0.2",
"@univerjs-infra/shared": "workspace:*",
"@univerjs/design": "workspace:*",
"@vitejs/plugin-react": "^4.3.4",
@@ -69,8 +69,8 @@
"eslint-plugin-react-refresh": "^0.4.16",
"husky": "^9.1.7",
"lint-staged": "^15.3.0",
- "react": "18.3.1",
- "react-dom": "18.3.1",
+ "react": "19.0.0",
+ "react-dom": "19.0.0",
"release-it": "^17.11.0",
"serve": "^14.2.4",
"tsx": "^4.19.2",
@@ -78,6 +78,12 @@
"typescript": "^5.7.2",
"vitest": "^2.1.8"
},
+ "resolutions": {
+ "@types/react": "^19.0.2",
+ "@types/react-dom": "^19.0.2",
+ "react": "19.0.0",
+ "react-dom": "19.0.0"
+ },
"lint-staged": {
"*": "eslint --fix"
}
diff --git a/packages-experimental/action-recorder/package.json b/packages-experimental/action-recorder/package.json
index b3d77b8bb5..4dbf979907 100644
--- a/packages-experimental/action-recorder/package.json
+++ b/packages-experimental/action-recorder/package.json
@@ -62,7 +62,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages-experimental/debugger/package.json b/packages-experimental/debugger/package.json
index d73ad81d91..d432fc96a8 100644
--- a/packages-experimental/debugger/package.json
+++ b/packages-experimental/debugger/package.json
@@ -53,7 +53,7 @@
"build": "univer-cli build --skipUMD"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
@@ -75,6 +75,7 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"postcss": "^8.4.49",
+ "react": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
diff --git a/packages-experimental/uni-formula-ui/package.json b/packages-experimental/uni-formula-ui/package.json
index 9e5eaecc30..9fda0b4122 100644
--- a/packages-experimental/uni-formula-ui/package.json
+++ b/packages-experimental/uni-formula-ui/package.json
@@ -62,7 +62,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
@@ -82,6 +82,7 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"postcss": "^8.4.49",
+ "react": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
diff --git a/packages-experimental/uni-sheets-ui/package.json b/packages-experimental/uni-sheets-ui/package.json
index ea01ace8ec..9f37ee68c6 100644
--- a/packages-experimental/uni-sheets-ui/package.json
+++ b/packages-experimental/uni-sheets-ui/package.json
@@ -56,7 +56,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
@@ -75,6 +75,7 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"postcss": "^8.4.49",
+ "react": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
diff --git a/packages-experimental/uni-slides-ui/package.json b/packages-experimental/uni-slides-ui/package.json
index 3e473afab9..acf9941127 100644
--- a/packages-experimental/uni-slides-ui/package.json
+++ b/packages-experimental/uni-slides-ui/package.json
@@ -56,7 +56,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0"
+ "react": ">=16.9.0 || >=17 || >=18 || >=19"
},
"dependencies": {
"@univerjs/core": "workspace:*",
@@ -72,7 +72,6 @@
"less": "^4.2.1",
"postcss": "^8.4.49",
"react": "18.3.1",
- "react-dom": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
diff --git a/packages-experimental/uni-slides-ui/src/views/UniSlideSideBar.tsx b/packages-experimental/uni-slides-ui/src/views/UniSlideSideBar.tsx
index b4dcd4fc72..86b2e59616 100644
--- a/packages-experimental/uni-slides-ui/src/views/UniSlideSideBar.tsx
+++ b/packages-experimental/uni-slides-ui/src/views/UniSlideSideBar.tsx
@@ -15,14 +15,13 @@
*/
import type { SlideDataModel } from '@univerjs/core';
-import clsx from 'clsx';
import { ICommandService, IUniverInstanceService, LocaleService, UniverInstanceType, useDependency } from '@univerjs/core';
-import type { RefObject } from 'react';
-import React, { useCallback, useEffect, useRef, useState } from 'react';
-import { useObservable } from '@univerjs/ui';
import { IRenderManagerService } from '@univerjs/engine-render';
-import { ActivateSlidePageOperation, AppendSlideOperation, SetSlidePageThumbOperation } from '@univerjs/slides-ui';
import { IncreaseSingle } from '@univerjs/icons';
+import { ActivateSlidePageOperation, AppendSlideOperation, SetSlidePageThumbOperation } from '@univerjs/slides-ui';
+import { useObservable } from '@univerjs/ui';
+import clsx from 'clsx';
+import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import styles from './index.module.less';
@@ -52,13 +51,10 @@ export function UniSlideSideBar() {
const slideList = pageOrder.map((id) => pages[id]);
- const [divRefs, setDivRefs] = useState<RefObject<HTMLDivElement>[]>([]);
const [activatePageId, setActivatePageId] = useState<string | null>(pageOrder[0]);
const [barHeight, setBarHeight] = useState(0);
- useEffect(() => {
- setDivRefs(slideList.map((_) => React.createRef()));
- }, [slideList.length]);
+ const divRefs = useMemo(() => slideList.map(() => React.createRef<HTMLDivElement>()), [slideList]);
useEffect(() => {
const subscriber = currentSlide?.activePage$.subscribe((page) => {
@@ -119,7 +115,7 @@ export function UniSlideSideBar() {
</div>
))}
</div>
- <button className={styles.newSlideButton} onClick={handleAppendSlide}>
+ <button type="button" className={styles.newSlideButton} onClick={handleAppendSlide}>
<IncreaseSingle className={styles.newSlideButtonIcon} />
<span>{localeService.t('slide.append')}</span>
</button>
diff --git a/packages-experimental/uniui/package.json b/packages-experimental/uniui/package.json
index 9444e711bf..1e9b18956a 100644
--- a/packages-experimental/uniui/package.json
+++ b/packages-experimental/uniui/package.json
@@ -56,8 +56,8 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
- "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
+ "react-dom": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages-experimental/uniui/src/controllers/uniui-desktop.controller.tsx b/packages-experimental/uniui/src/controllers/uniui-desktop.controller.tsx
index 7d60a76b11..dd675f925c 100644
--- a/packages-experimental/uniui/src/controllers/uniui-desktop.controller.tsx
+++ b/packages-experimental/uniui/src/controllers/uniui-desktop.controller.tsx
@@ -14,13 +14,13 @@
* limitations under the License.
*/
-import { connectInjector, Disposable, Inject, Injector, LifecycleService, LifecycleStages, Optional, toDisposable } from '@univerjs/core';
-import type { IUniverUIConfig, IWorkbenchOptions } from '@univerjs/ui';
import type { IDisposable } from '@univerjs/core';
+import type { IUniverUIConfig, IWorkbenchOptions } from '@univerjs/ui';
+import { connectInjector, Disposable, Inject, Injector, LifecycleService, LifecycleStages, Optional, toDisposable } from '@univerjs/core';
+import { render as createRoot, unmount } from '@univerjs/design';
import { BuiltInUIPart, CanvasPopup, FloatDom, ILayoutService, IUIPartsService } from '@univerjs/ui';
import React from 'react';
import { delay, filter, take } from 'rxjs';
-import { render as createRoot, unmount } from 'rc-util/lib/React/render';
import { UniWorkbench } from '../views/workbench/UniWorkbench';
diff --git a/packages/core/package.json b/packages/core/package.json
index c7ac6f8a9a..a54d176369 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -58,7 +58,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/design/package.json b/packages/design/package.json
index 71bd6cd3e9..772b0c1231 100644
--- a/packages/design/package.json
+++ b/packages/design/package.json
@@ -64,26 +64,26 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
- "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0"
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
+ "react-dom": ">=16.9.0 || >=17 || >=18 || >=19"
},
"dependencies": {
"@rc-component/color-picker": "^2.0.1",
- "@rc-component/trigger": "^2.2.5",
+ "@rc-component/trigger": "^2.2.6",
"@univerjs/icons": "^0.2.12",
"clsx": "^2.1.1",
"dayjs": "^1.11.13",
"rc-dialog": "^9.6.0",
- "rc-dropdown": "^4.2.0",
- "rc-input": "^1.6.3",
+ "rc-dropdown": "^4.2.1",
+ "rc-input": "^1.7.1",
"rc-input-number": "^9.3.0",
"rc-menu": "^9.16.0",
- "rc-picker": "^4.8.1",
- "rc-segmented": "^2.5.0",
- "rc-select": "^14.16.3",
+ "rc-picker": "^4.9.0",
+ "rc-segmented": "^2.7.0",
+ "rc-select": "^14.16.4",
"rc-textarea": "^1.8.2",
"rc-util": "^5.43.0",
- "rc-virtual-list": "^3.15.0",
+ "rc-virtual-list": "^3.16.1",
"react-draggable": "^4.4.6",
"react-grid-layout": "^1.5.0",
"react-transition-group": "^4.4.5",
diff --git a/packages/design/src/components/dialog/Dialog.tsx b/packages/design/src/components/dialog/Dialog.tsx
index 5f238f9e84..a2b2af164d 100644
--- a/packages/design/src/components/dialog/Dialog.tsx
+++ b/packages/design/src/components/dialog/Dialog.tsx
@@ -14,13 +14,13 @@
* limitations under the License.
*/
+import type { ModalStyles } from 'rc-dialog/lib/IDialogPropTypes';
+import type { DraggableData, DraggableEvent, DraggableEventHandler } from 'react-draggable';
import { CloseSingle } from '@univerjs/icons';
import RcDialog from 'rc-dialog';
import React, { useContext, useRef, useState } from 'react';
-import type { DraggableData, DraggableEvent, DraggableEventHandler } from 'react-draggable';
-import Draggable from 'react-draggable';
-import type { ModalStyles } from 'rc-dialog/lib/IDialogPropTypes';
+import Draggable from 'react-draggable';
import { ConfigContext } from '../config-provider/ConfigProvider';
import styles from './index.module.less';
@@ -172,7 +172,7 @@ export function Dialog(props: IDialogProps) {
const modalRender = (modal: React.ReactNode) => {
const [bounds, setBounds] = useState({ left: 0, top: 0, bottom: 0, right: 0 });
- const draggleRef = useRef<HTMLDivElement>(null);
+ const draggleRef = useRef<HTMLDivElement>(null!);
function handleStop(_event: MouseEvent, data: DraggableData) {
if (preservePositionOnDestroy) {
diff --git a/packages/design/src/components/dropdown/DropdownProvider.tsx b/packages/design/src/components/dropdown/DropdownProvider.tsx
index 17fedf7f9e..0e8c7dbdef 100644
--- a/packages/design/src/components/dropdown/DropdownProvider.tsx
+++ b/packages/design/src/components/dropdown/DropdownProvider.tsx
@@ -26,8 +26,8 @@ interface IDropdownProviderProps {
}
export function DropdownProvider({ visible, children, disabled = false, onVisibleChange }: IDropdownProviderProps) {
- const triggerRef = useRef<HTMLDivElement>(null);
- const overlayRef = useRef<HTMLDivElement>(null);
+ const triggerRef = useRef<HTMLDivElement>(null!);
+ const overlayRef = useRef<HTMLDivElement>(null!);
const [internalShow, setInternalShow] = useState(false);
const isControlled = visible !== undefined;
diff --git a/packages/design/src/components/input/Input.tsx b/packages/design/src/components/input/Input.tsx
index 8e83739592..df74aa187e 100644
--- a/packages/design/src/components/input/Input.tsx
+++ b/packages/design/src/components/input/Input.tsx
@@ -14,129 +14,113 @@
* limitations under the License.
*/
-import type { InputProps } from 'rc-input';
import { CloseSingle } from '@univerjs/icons';
-import clsx from 'clsx';
-import RcInput from 'rc-input';
import React from 'react';
+import { clsx } from '../../helper/clsx';
-import styles from './index.module.less';
+type InputProps = React.InputHTMLAttributes<HTMLInputElement>;
export interface IInputProps extends Pick<InputProps, 'onFocus' | 'onBlur'> {
- /**
- * Whether the input is autoFocus
- * @default false
- */
autoFocus?: boolean;
-
- /**
- * The input class name
- */
className?: string;
-
- /**
- * The input affix wrapper style
- */
affixWrapperStyle?: React.CSSProperties;
-
- /**
- * The input type
- * @default text
- */
type?: 'text' | 'password';
-
- /**
- * The input placeholder
- */
placeholder?: string;
-
- /**
- * The input content value
- */
value?: string;
-
- /**
- * The input size
- * @default middle
- */
size?: 'small' | 'middle' | 'large';
-
- /**
- * Whether the input is clearable
- * @default false
- */
allowClear?: boolean;
-
- /**
- * Whether the input is disabled
- * @default false
- */
disabled?: boolean;
-
- /**
- * Callback when user click
- * @param e
- */
onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
-
- /**
- * Callback when user press a key
- * @param e
- */
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
-
- /**
- * Callback when user input
- * @param value
- */
onChange?: (value: string) => void;
-
}
-export function Input(props: IInputProps) {
- const {
- affixWrapperStyle,
- autoFocus = false,
- type = 'text',
- className,
- placeholder,
- value,
- size = 'middle',
- allowClear,
- disabled = false,
- onClick,
- onKeyDown,
- onChange,
- ...rest
- } = props;
-
- function handleChange(e: React.ChangeEvent<HTMLInputElement>) {
- const { value } = e.target;
- onChange?.(value);
- }
-
- const _className = clsx(className, {
- [styles.inputAffixWrapperSmall]: size === 'small',
- [styles.inputAffixWrapperMiddle]: size === 'middle',
- [styles.inputAffixWrapperLarge]: size === 'large',
- [styles.inputNotAllowClear]: !allowClear,
- }, className);
+export const Input = ({
+ autoFocus = false,
+ className,
+ affixWrapperStyle,
+ type = 'text',
+ placeholder,
+ value,
+ size = 'small',
+ allowClear = false,
+ disabled = false,
+ onClick,
+ onKeyDown,
+ onChange,
+ onFocus,
+ onBlur,
+ ...props
+}: IInputProps) => {
+ const sizeClasses = {
+ small: 'univer-h-8 univer-text-sm univer-px-2',
+ middle: 'univer-h-10 univer-text-base univer-px-3',
+ large: 'univer-h-12 univer-text-lg univer-px-4',
+ };
+
+ const handleClear = (e: React.MouseEvent) => {
+ e.stopPropagation();
+ onChange?.('');
+ };
+
+ const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
+ onChange?.(e.target.value);
+ };
return (
- <RcInput
- prefixCls={styles.input}
- classNames={{ affixWrapper: _className }}
- styles={{ affixWrapper: affixWrapperStyle }}
- autoFocus={autoFocus}
- type={type}
- placeholder={placeholder}
- value={value}
- disabled={disabled}
- onClick={onClick}
- onKeyDown={onKeyDown}
- onChange={handleChange}
- allowClear={{ clearIcon: allowClear ? <CloseSingle /> : <></> }}
- {...rest}
- />
+ <div
+ className={clsx(
+ 'univer-relative univer-inline-flex univer-w-full univer-items-center univer-rounded-md',
+ disabled && 'univer-cursor-not-allowed univer-opacity-50',
+ className
+ )}
+ style={affixWrapperStyle}
+ >
+ <input
+ type={type}
+ className={clsx(
+ `
+ univer-box-border univer-w-full univer-rounded-md univer-border univer-border-solid
+ univer-border-gray-300 univer-bg-white
+ `,
+ 'univer-transition-colors univer-duration-200',
+ 'placeholder:univer-text-gray-400',
+ `
+ focus:univer-border-blue-500 focus:univer-outline-none focus:univer-ring-2
+ focus:univer-ring-blue-500/20
+ `,
+ disabled && 'univer-cursor-not-allowed univer-bg-gray-50',
+ allowClear && 'univer-pr-8',
+ sizeClasses[size]
+ )}
+ placeholder={placeholder}
+ value={value}
+ disabled={disabled}
+ autoFocus={autoFocus}
+ onClick={onClick}
+ onKeyDown={onKeyDown}
+ onChange={handleChange}
+ onFocus={onFocus}
+ onBlur={onBlur}
+ {...props}
+ />
+ {allowClear && value && !disabled && (
+ <button
+ type="button"
+ onClick={handleClear}
+ className={clsx(
+ 'univer-absolute univer-right-2 univer-rounded-full univer-p-1',
+ `
+ univer-text-gray-400
+ hover:univer-text-gray-500
+ `,
+ 'univer-transition-colors univer-duration-200',
+ 'focus:univer-outline-none focus:univer-ring-2 focus:univer-ring-blue-500/20'
+ )}
+ >
+ <CloseSingle className="univer-h-4 univer-w-4" />
+ </button>
+ )}
+ </div>
);
-}
+};
diff --git a/packages/design/src/components/input/__tests__/Input.spec.tsx b/packages/design/src/components/input/__tests__/Input.spec.tsx
index b0dd44df6e..70e89d7278 100644
--- a/packages/design/src/components/input/__tests__/Input.spec.tsx
+++ b/packages/design/src/components/input/__tests__/Input.spec.tsx
@@ -14,9 +14,8 @@
* limitations under the License.
*/
-import { afterEach, describe, expect, it } from 'vitest';
-import React from 'react';
import { cleanup, fireEvent, render } from '@testing-library/react';
+import { afterEach, describe, expect, it } from 'vitest';
import { Input } from '../Input';
describe('Input', () => {
@@ -51,13 +50,13 @@ describe('Input', () => {
it('renders the size', () => {
const { container } = render(<Input size="large" />);
- expect(container.innerHTML).contains('inputAffixWrapperLarge');
+ expect(container.innerHTML).contains('univer-h-12');
});
it('renders the clearable', () => {
- const { container } = render(<Input allowClear />);
+ const { container } = render(<Input allowClear value="x" />);
- expect(container.innerHTML).contains('input-clear-icon');
+ expect(container.innerHTML).contains('type="button"');
});
it('change the value', () => {
diff --git a/packages/design/src/components/slider/Slider.tsx b/packages/design/src/components/slider/Slider.tsx
index e059ae3812..50a917d5ab 100644
--- a/packages/design/src/components/slider/Slider.tsx
+++ b/packages/design/src/components/slider/Slider.tsx
@@ -20,7 +20,9 @@ import React, { useContext, useMemo, useRef } from 'react';
import { Button } from '../button/Button';
import { ConfigContext } from '../config-provider/ConfigProvider';
-import { DropdownLegacy } from '../dropdown-legacy/DropdownLegacy';
+import { DropdownOverlay } from '../dropdown/DropdownOverlay';
+import { DropdownProvider } from '../dropdown/DropdownProvider';
+import { DropdownTrigger } from '../dropdown/DropdownTrigger';
import { Tooltip } from '../tooltip/Tooltip';
import styles from './index.module.less';
@@ -185,21 +187,46 @@ export function Slider(props: ISliderProps) {
<IncreaseSingle />
</Button>
- <DropdownLegacy
- placement="topLeft"
- overlay={(
- <div className={styles.sliderShortcuts}>
+ <DropdownProvider>
+ <DropdownTrigger>
+ <a
+ className={`
+ univer-text-gray-800 univer-h-7 univer-text-sm univer-flex univer-items-center
+ univer-cursor-pointer univer-rounded univer-transition-all univer-w-[55px]
+ univer-justify-center
+ hover:univer-bg-gray-100
+ `}
+ >
+ {value}
+ %
+ </a>
+ </DropdownTrigger>
+ <DropdownOverlay offset={{ y: -20 }}>
+ <div
+ className={`
+ univer-gap-1 univer-items-center univer-w-32 univer-p-2 univer-text-sm univer-text-gray-800
+ univer-box-border univer-grid
+ `}
+ >
{shortcuts?.map((item) => (
<a
key={item}
- className={clsx(
- styles.sliderShortcut,
- item === value ? styles.sliderShortcutActive : ''
- )}
+ className={clsx(`
+ univer-cursor-pointer univer-rounded-md univer-transition-colors univer-duration-200
+ univer-px-2 univer-py-1 univer-relative univer-text-center
+ hover:univer-bg-gray-100
+ `, {
+ 'univer-bg-gray-100': item === value,
+ })}
onClick={() => onChange && onChange(item)}
>
{item === value && (
- <span className={styles.sliderShortcutIcon}>
+ <span
+ className={`
+ univer-text-green-500 univer-absolute univer-left-2 univer-top-0 univer-h-full
+ univer-items-center univer-flex
+ `}
+ >
<CheckMarkSingle />
</span>
)}
@@ -210,13 +237,8 @@ export function Slider(props: ISliderProps) {
</a>
))}
</div>
- )}
- >
- <a className={styles.sliderValue}>
- {value}
- %
- </a>
- </DropdownLegacy>
+ </DropdownOverlay>
+ </DropdownProvider>
</div>
);
}
diff --git a/packages/design/src/components/slider/index.module.less b/packages/design/src/components/slider/index.module.less
index 4d4af5873f..f44029ad4b 100644
--- a/packages/design/src/components/slider/index.module.less
+++ b/packages/design/src/components/slider/index.module.less
@@ -144,59 +144,4 @@
background-color: @slider-parts-hover-color;
}
}
-
- &-shortcuts {
- transform: translateX(-(@slider-value-width / 2));
-
- display: grid;
- gap: var(--margin-xxs);
- align-items: center;
-
- box-sizing: border-box;
- width: 128px;
- padding: var(--padding-sm);
-
- font-size: var(--font-size-xs);
-
- background-color: rgb(var(--color-white));
- border: 1px solid rgb(var(--border-color));
- border-radius: var(--border-radius-lg);
- box-shadow: var(--box-shadow-lg);
- }
-
- &-shortcut {
- cursor: pointer;
-
- position: relative;
-
- box-sizing: border-box;
- padding: var(--padding-xs) 0 var(--padding-xs) 36px;
-
- color: rgb(var(--text-color));
-
- border-radius: var(--border-radius-base);
-
- transition: background 0.2s;
- text-decoration: none;
-
- &:hover {
- background-color: rgb(var(--bg-color-hover));
- color: inherit;
- text-decoration: inherit;
- }
- }
-
- &-shortcut-icon {
- position: absolute;
- top: 0;
- left: var(--padding-xs);
- height: 100%;
- color: rgb(var(--success-color));
- display: flex;
- align-items: center;
- }
-
- &-shortcut-active {
- background-color: rgb(var(--bg-color-hover));
- }
}
diff --git a/packages/design/src/components/tooltip/Tooltip.tsx b/packages/design/src/components/tooltip/Tooltip.tsx
index 28735a9305..ebfe463fb5 100644
--- a/packages/design/src/components/tooltip/Tooltip.tsx
+++ b/packages/design/src/components/tooltip/Tooltip.tsx
@@ -273,7 +273,7 @@ export function Tooltip({ visible, asChild = false, title, children, placement =
React.Children.only(children) as React.ReactElement,
{
ref: triggerRef,
- }
+ } as any
);
return (
diff --git a/packages/design/src/index.ts b/packages/design/src/index.ts
index 4599253eaf..3bb2b53b72 100644
--- a/packages/design/src/index.ts
+++ b/packages/design/src/index.ts
@@ -50,3 +50,4 @@ export { defaultTheme, greenTheme, themeInstance } from './themes';
export { DraggableList, type IDraggableListProps } from './components/draggable-list';
export { clsx } from './helper/clsx';
export { resizeObserverCtor } from './helper/resize-observer';
+export { render, unmount } from './utils/render';
diff --git a/packages/design/src/utils/render.ts b/packages/design/src/utils/render.ts
new file mode 100644
index 0000000000..dcc8088b96
--- /dev/null
+++ b/packages/design/src/utils/render.ts
@@ -0,0 +1,46 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type * as React from 'react';
+import type { Root } from 'react-dom/client';
+import { createRoot } from 'react-dom/client';
+
+// Map to track container and corresponding Root
+const rootMap = new WeakMap<Element | DocumentFragment, Root>();
+
+// ========================== Render ==========================
+export function render(node: React.ReactElement, container: Element | DocumentFragment) {
+ // Get or create the root
+ let root = rootMap.get(container);
+
+ if (!root) {
+ root = createRoot(container);
+ rootMap.set(container, root);
+ }
+
+ // Render the React element
+ root.render(node);
+}
+
+// ========================= Unmount ==========================
+export function unmount(container: Element | DocumentFragment) {
+ const root = rootMap.get(container);
+
+ if (root) {
+ root.unmount();
+ rootMap.delete(container); // Clean up the mapping
+ }
+}
diff --git a/packages/docs-drawing-ui/package.json b/packages/docs-drawing-ui/package.json
index dfe5523652..11cce21773 100644
--- a/packages/docs-drawing-ui/package.json
+++ b/packages/docs-drawing-ui/package.json
@@ -62,7 +62,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/docs-hyper-link-ui/package.json b/packages/docs-hyper-link-ui/package.json
index 784bb42813..70bb4452c8 100644
--- a/packages/docs-hyper-link-ui/package.json
+++ b/packages/docs-hyper-link-ui/package.json
@@ -62,7 +62,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/docs-mention-ui/package.json b/packages/docs-mention-ui/package.json
index aebf262a2a..9d9d26e6f9 100644
--- a/packages/docs-mention-ui/package.json
+++ b/packages/docs-mention-ui/package.json
@@ -58,7 +58,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/docs-thread-comment-ui/package.json b/packages/docs-thread-comment-ui/package.json
index d325e7ebc5..8960687f08 100644
--- a/packages/docs-thread-comment-ui/package.json
+++ b/packages/docs-thread-comment-ui/package.json
@@ -56,7 +56,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/docs-ui/package.json b/packages/docs-ui/package.json
index 6663d9ddf2..8de6e55ac2 100644
--- a/packages/docs-ui/package.json
+++ b/packages/docs-ui/package.json
@@ -70,7 +70,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/docs-ui/src/docs-ui-plugin.ts b/packages/docs-ui/src/docs-ui-plugin.ts
index cebc523567..558ba154f0 100644
--- a/packages/docs-ui/src/docs-ui-plugin.ts
+++ b/packages/docs-ui/src/docs-ui-plugin.ts
@@ -17,7 +17,8 @@
import type { Dependency } from '@univerjs/core';
import type { IUniverDocsUIConfig } from './controllers/config.schema';
import {
- DependentOn, ICommandService,
+ DependentOn,
+ ICommandService,
IConfigService,
ILogService,
Inject,
@@ -43,15 +44,44 @@ import { CloseHeaderFooterCommand } from './commands/commands/doc-header-footer.
import { DocParagraphSettingCommand } from './commands/commands/doc-paragraph-setting.command';
import { DocSelectAllCommand } from './commands/commands/doc-select-all.command';
import { IMEInputCommand } from './commands/commands/ime-input.command';
-import { ResetInlineFormatTextBackgroundColorCommand, SetInlineFormatBoldCommand, SetInlineFormatCommand, SetInlineFormatFontFamilyCommand, SetInlineFormatFontSizeCommand, SetInlineFormatItalicCommand, SetInlineFormatStrikethroughCommand, SetInlineFormatSubscriptCommand, SetInlineFormatSuperscriptCommand, SetInlineFormatTextBackgroundColorCommand, SetInlineFormatTextColorCommand, SetInlineFormatUnderlineCommand } from './commands/commands/inline-format.command';
-import { BulletListCommand, ChangeListNestingLevelCommand, ChangeListTypeCommand, CheckListCommand, ListOperationCommand, OrderListCommand, QuickListCommand, ToggleCheckListCommand } from './commands/commands/list.command';
+import {
+ ResetInlineFormatTextBackgroundColorCommand,
+ SetInlineFormatBoldCommand,
+ SetInlineFormatCommand,
+ SetInlineFormatFontFamilyCommand,
+ SetInlineFormatFontSizeCommand,
+ SetInlineFormatItalicCommand,
+ SetInlineFormatStrikethroughCommand,
+ SetInlineFormatSubscriptCommand,
+ SetInlineFormatSuperscriptCommand,
+ SetInlineFormatTextBackgroundColorCommand,
+ SetInlineFormatTextColorCommand,
+ SetInlineFormatUnderlineCommand,
+} from './commands/commands/inline-format.command';
+import {
+ BulletListCommand,
+ ChangeListNestingLevelCommand,
+ ChangeListTypeCommand,
+ CheckListCommand,
+ ListOperationCommand,
+ OrderListCommand,
+ QuickListCommand,
+ ToggleCheckListCommand,
+} from './commands/commands/list.command';
import { AlignCenterCommand, AlignJustifyCommand, AlignLeftCommand, AlignOperationCommand, AlignRightCommand } from './commands/commands/paragraph-align.command';
import { CoverContentCommand, ReplaceContentCommand, ReplaceSnapshotCommand, ReplaceTextRunsCommand } from './commands/commands/replace-content.command';
import { SetDocZoomRatioCommand } from './commands/commands/set-doc-zoom-ratio.command';
import { SwitchDocModeCommand } from './commands/commands/switch-doc-mode.command';
import { CreateDocTableCommand } from './commands/commands/table/doc-table-create.command';
import { DocTableDeleteColumnsCommand, DocTableDeleteRowsCommand, DocTableDeleteTableCommand } from './commands/commands/table/doc-table-delete.command';
-import { DocTableInsertColumnCommand, DocTableInsertColumnLeftCommand, DocTableInsertColumnRightCommand, DocTableInsertRowAboveCommand, DocTableInsertRowBellowCommand, DocTableInsertRowCommand } from './commands/commands/table/doc-table-insert.command';
+import {
+ DocTableInsertColumnCommand,
+ DocTableInsertColumnLeftCommand,
+ DocTableInsertColumnRightCommand,
+ DocTableInsertRowAboveCommand,
+ DocTableInsertRowBellowCommand,
+ DocTableInsertRowCommand,
+} from './commands/commands/table/doc-table-insert.command';
import { DocTableTabCommand } from './commands/commands/table/doc-table-tab.command';
import { MoveCursorOperation, MoveSelectionOperation } from './commands/operations/doc-cursor.operation';
import { DocParagraphSettingPanelOperation } from './commands/operations/doc-paragraph-setting-panel.operation';
diff --git a/packages/docs-ui/src/views/rich-text-editor/index.tsx b/packages/docs-ui/src/views/rich-text-editor/index.tsx
index d1702c12f7..c036a4ce77 100644
--- a/packages/docs-ui/src/views/rich-text-editor/index.tsx
+++ b/packages/docs-ui/src/views/rich-text-editor/index.tsx
@@ -69,7 +69,7 @@ export const RichTextEditor = forwardRef<Editor, IRichTextEditorProps>((props, r
const onFocusChange = useEvent(_onFocusChange);
const onClickOutside = useEvent(_onClickOutside);
const [height, setHeight] = useState(defaultHeight);
- const formulaEditorContainerRef = React.useRef<HTMLDivElement>(null);
+ const formulaEditorContainerRef = React.useRef<HTMLDivElement>(null!);
const editorId = useMemo(() => propsEditorId ?? createInternalEditorID(`RICH_TEXT_EDITOR-${generateRandomId(4)}`), [propsEditorId]);
const editor = useEditor({
editorId,
diff --git a/packages/drawing-ui/package.json b/packages/drawing-ui/package.json
index 8509bff1d5..c16b44ca22 100644
--- a/packages/drawing-ui/package.json
+++ b/packages/drawing-ui/package.json
@@ -62,7 +62,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/find-replace/package.json b/packages/find-replace/package.json
index bb27a073ed..6913db10d9 100644
--- a/packages/find-replace/package.json
+++ b/packages/find-replace/package.json
@@ -64,7 +64,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-conditional-formatting-ui/package.json b/packages/sheets-conditional-formatting-ui/package.json
index 7ea1663f4b..ac9cdfc6da 100644
--- a/packages/sheets-conditional-formatting-ui/package.json
+++ b/packages/sheets-conditional-formatting-ui/package.json
@@ -64,8 +64,8 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
- "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
+ "react-dom": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/colorScale.tsx b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/ColorScale.tsx
similarity index 100%
rename from packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/colorScale.tsx
rename to packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/ColorScale.tsx
diff --git a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/dataBar.tsx b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/DataBar.tsx
similarity index 100%
rename from packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/dataBar.tsx
rename to packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/DataBar.tsx
diff --git a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/formula.tsx b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/Formula.tsx
similarity index 100%
rename from packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/formula.tsx
rename to packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/Formula.tsx
diff --git a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/highlightCell.tsx b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/HighlightCell.tsx
similarity index 100%
rename from packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/highlightCell.tsx
rename to packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/HighlightCell.tsx
diff --git a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/iconSet.tsx b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/IconSet.tsx
similarity index 99%
rename from packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/iconSet.tsx
rename to packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/IconSet.tsx
index 975c891ff9..f3fc490812 100644
--- a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/iconSet.tsx
+++ b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/IconSet.tsx
@@ -108,7 +108,7 @@ interface IconGroupListProps {
onClick: (iconType: IIconType) => void;
iconType?: IIconType;
};
-const IconGroupList = forwardRef<HTMLDivElement | null, IconGroupListProps>((props, ref) => {
+const IconGroupList = forwardRef<HTMLDivElement, IconGroupListProps>((props, ref) => {
const localeService = useDependency(LocaleService);
const handleClick = (iconType: IIconType) => {
@@ -554,7 +554,9 @@ export const IconSet = (props: IStyleEditorProps<unknown, IIconSet>) => {
placement="bottomLeft"
overlay={(
<IconGroupList
- ref={(el) => !iconGroupListEl && el && setIconGroupListEl(el)}
+ ref={(el) => {
+ !iconGroupListEl && el && setIconGroupListEl(el);
+ }}
iconType={currentIconType}
onClick={handleClickIconList}
/>
diff --git a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/rank.tsx b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/Rank.tsx
similarity index 100%
rename from packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/rank.tsx
rename to packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/Rank.tsx
diff --git a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/index.tsx b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/index.tsx
index 70b4980ad2..3959e1eab0 100644
--- a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/index.tsx
+++ b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/index.tsx
@@ -34,13 +34,13 @@ import { AddCfCommand } from '../../../commands/commands/add-cf.command';
import { SetCfCommand } from '../../../commands/commands/set-cf.command';
import styleBase from '../index.module.less';
-import { ColorScaleStyleEditor } from './colorScale';
-import { DataBarStyleEditor } from './dataBar';
-import { FormulaStyleEditor } from './formula';
-import { HighlightCellStyleEditor } from './highlightCell';
-import { IconSet } from './iconSet';
+import { ColorScaleStyleEditor } from './ColorScale';
+import { DataBarStyleEditor } from './DataBar';
+import { FormulaStyleEditor } from './Formula';
+import { HighlightCellStyleEditor } from './HighlightCell';
+import { IconSet } from './IconSet';
import styles from './index.module.less';
-import { RankStyleEditor } from './rank';
+import { RankStyleEditor } from './Rank';
import { beforeSubmit, submit } from './type';
interface IRuleEditProps {
@@ -127,7 +127,7 @@ export const RuleEdit = (props: IRuleEditProps) => {
}
return defaultType;
});
- const result = useRef<Parameters<IStyleEditorProps['onChange']>>();
+ const result = useRef<Parameters<IStyleEditorProps['onChange']>>(undefined);
const interceptorManager = useMemo(() => {
const _interceptorManager = new InterceptorManager({ beforeSubmit, submit });
return _interceptorManager;
diff --git a/packages/sheets-crosshair-highlight/package.json b/packages/sheets-crosshair-highlight/package.json
index c274ab86f5..6fe7fd8d10 100644
--- a/packages/sheets-crosshair-highlight/package.json
+++ b/packages/sheets-crosshair-highlight/package.json
@@ -68,7 +68,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-data-validation-ui/package.json b/packages/sheets-data-validation-ui/package.json
index 251ac189e6..4eeb6981c0 100644
--- a/packages/sheets-data-validation-ui/package.json
+++ b/packages/sheets-data-validation-ui/package.json
@@ -65,7 +65,7 @@
"lint:types": "tsc --noEmit"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-data-validation-ui/src/views/components/item/index.tsx b/packages/sheets-data-validation-ui/src/views/components/item/index.tsx
index f2acd50b55..b2948459b2 100644
--- a/packages/sheets-data-validation-ui/src/views/components/item/index.tsx
+++ b/packages/sheets-data-validation-ui/src/views/components/item/index.tsx
@@ -38,7 +38,7 @@ export const DataValidationItem = (props: IDataValidationDetailProps) => {
const commandService = useDependency(ICommandService);
const markSelectionService = useDependency(IMarkSelectionService);
const validator = validatorRegistry.getValidatorItem(rule.type);
- const ids = useRef<(string | null)[]>();
+ const ids = useRef<(string | null)[]>(undefined);
const [isHover, setIsHover] = useState(false);
const handleDelete = (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => {
commandService.executeCommand(RemoveSheetDataValidationCommand.id, {
diff --git a/packages/sheets-drawing-ui/package.json b/packages/sheets-drawing-ui/package.json
index 491ac26fba..70c4a29b19 100644
--- a/packages/sheets-drawing-ui/package.json
+++ b/packages/sheets-drawing-ui/package.json
@@ -68,7 +68,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-filter-ui/package.json b/packages/sheets-filter-ui/package.json
index 5c06b0109c..e4d08f00af 100644
--- a/packages/sheets-filter-ui/package.json
+++ b/packages/sheets-filter-ui/package.json
@@ -62,7 +62,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-formula-ui/package.json b/packages/sheets-formula-ui/package.json
index 3a5c7e75c2..4b4cc93bcb 100644
--- a/packages/sheets-formula-ui/package.json
+++ b/packages/sheets-formula-ui/package.json
@@ -67,7 +67,7 @@
"sync:cnpm": "cnpm sync"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-formula-ui/src/views/formula-editor/hooks/useSheetSelectionChange.ts b/packages/sheets-formula-ui/src/views/formula-editor/hooks/useSheetSelectionChange.ts
index 4590060186..86dd7217f1 100644
--- a/packages/sheets-formula-ui/src/views/formula-editor/hooks/useSheetSelectionChange.ts
+++ b/packages/sheets-formula-ui/src/views/formula-editor/hooks/useSheetSelectionChange.ts
@@ -73,7 +73,7 @@ export const useSheetSelectionChange = (
const isSelectingRef = useRef(isSelecting);
isSelectingRef.current = isSelecting;
- const scalingOptionRef = useRef<{ result: string; offset: number }>();
+ const scalingOptionRef = useRef<{ result: string; offset: number }>(undefined);
useEffect(() => {
if (refSelectionsRenderService && isNeed) {
diff --git a/packages/sheets-formula-ui/src/views/formula-editor/index.tsx b/packages/sheets-formula-ui/src/views/formula-editor/index.tsx
index bb94d9e4a7..91fc533da3 100644
--- a/packages/sheets-formula-ui/src/views/formula-editor/index.tsx
+++ b/packages/sheets-formula-ui/src/views/formula-editor/index.tsx
@@ -117,7 +117,7 @@ export function FormulaEditor(props: IFormulaEditorProps) {
const onFormulaSelectingChange = useEvent(propOnFormulaSelectingChange);
const searchFunctionRef = useRef<HTMLElement>(null);
- const editorRef = useRef<Editor>();
+ const editorRef = useRef<Editor>(undefined);
const editor = editorRef.current;
const [isFocus, isFocusSet] = useState(_isFocus);
const formulaEditorContainerRef = useRef(null);
diff --git a/packages/sheets-formula-ui/src/views/formula-editor/search-function/SearchFunction.tsx b/packages/sheets-formula-ui/src/views/formula-editor/search-function/SearchFunction.tsx
index e1afc9d84c..3f7bd75c95 100644
--- a/packages/sheets-formula-ui/src/views/formula-editor/search-function/SearchFunction.tsx
+++ b/packages/sheets-formula-ui/src/views/formula-editor/search-function/SearchFunction.tsx
@@ -45,7 +45,7 @@ function SearchFunctionFactory(props: ISearchFunctionProps, ref: any) {
const commandService = useDependency(ICommandService);
const { searchList, searchText, handlerFormulaReplace, reset: resetFormulaSearch } = useFormulaSearch(isFocus, sequenceNodes, editor);
const visible = useMemo(() => !!searchList.length, [searchList]);
- const ulRef = useRef<HTMLUListElement>();
+ const ulRef = useRef<HTMLUListElement>(undefined);
const [active, activeSet] = useState(0);
const isEnableMouseEnterOrOut = useRef(false);
const [position$] = useEditorPostion(editorId, visible, [searchText, searchList]);
diff --git a/packages/sheets-formula-ui/src/views/range-selector/hooks/useSheetSelectionChange.ts b/packages/sheets-formula-ui/src/views/range-selector/hooks/useSheetSelectionChange.ts
index a9fc9a99ca..8534ee3231 100644
--- a/packages/sheets-formula-ui/src/views/range-selector/hooks/useSheetSelectionChange.ts
+++ b/packages/sheets-formula-ui/src/views/range-selector/hooks/useSheetSelectionChange.ts
@@ -59,7 +59,7 @@ export const useSheetSelectionChange = (
}, [sequenceNodes]);
oldFilterReferenceNodes.current = filterReferenceNodes;
- const scalingOptionRef = useRef<{ result: string; offset: number }>();
+ const scalingOptionRef = useRef<{ result: string; offset: number }>(undefined);
useEffect(() => {
if (isNeed && refSelectionsRenderService) {
diff --git a/packages/sheets-formula-ui/src/views/range-selector/index.tsx b/packages/sheets-formula-ui/src/views/range-selector/index.tsx
index 5397d483e1..a4bb73a8a1 100644
--- a/packages/sheets-formula-ui/src/views/range-selector/index.tsx
+++ b/packages/sheets-formula-ui/src/views/range-selector/index.tsx
@@ -116,7 +116,7 @@ export function RangeSelector(props: IRangeSelectorProps) {
const [rangeDialogVisible, rangeDialogVisibleSet] = useState(false);
const [isFocus, isFocusSet] = useState(_isFocus);
const editorId = useMemo(() => createInternalEditorID(`${RANGE_SELECTOR_SYMBOLS}-${generateRandomId(4)}`), []);
- const editorRef = useRef<Editor>();
+ const editorRef = useRef<Editor>(undefined);
const editor = editorRef.current;
const containerRef = useRef<HTMLDivElement>(null);
const univerInstanceService = useDependency(IUniverInstanceService);
diff --git a/packages/sheets-hyper-link-ui/package.json b/packages/sheets-hyper-link-ui/package.json
index c59e516847..14e28c84a5 100644
--- a/packages/sheets-hyper-link-ui/package.json
+++ b/packages/sheets-hyper-link-ui/package.json
@@ -70,7 +70,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-numfmt-ui/package.json b/packages/sheets-numfmt-ui/package.json
index 86fc5749c2..b0a28c2fe7 100644
--- a/packages/sheets-numfmt-ui/package.json
+++ b/packages/sheets-numfmt-ui/package.json
@@ -64,7 +64,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-sort-ui/package.json b/packages/sheets-sort-ui/package.json
index 07765efe0a..5645bb8822 100644
--- a/packages/sheets-sort-ui/package.json
+++ b/packages/sheets-sort-ui/package.json
@@ -62,7 +62,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-thread-comment-ui/package.json b/packages/sheets-thread-comment-ui/package.json
index f5a408f0bd..4dd03ba7e9 100644
--- a/packages/sheets-thread-comment-ui/package.json
+++ b/packages/sheets-thread-comment-ui/package.json
@@ -62,7 +62,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-thread-comment-ui/src/views/sheets-thread-comment-panel/index.tsx b/packages/sheets-thread-comment-ui/src/views/sheets-thread-comment-panel/index.tsx
index b3a9227cf7..7000b60d73 100644
--- a/packages/sheets-thread-comment-ui/src/views/sheets-thread-comment-panel/index.tsx
+++ b/packages/sheets-thread-comment-ui/src/views/sheets-thread-comment-panel/index.tsx
@@ -35,7 +35,7 @@ export const SheetsThreadCommentPanel = () => {
const commandService = useDependency(ICommandService);
const subUnitId$ = useMemo(() => workbook.activeSheet$.pipe(map((i) => i?.getSheetId())), [workbook.activeSheet$]);
const subUnitId = useObservable(subUnitId$, workbook.getActiveSheet()?.getSheetId());
- const hoverShapeId = useRef<string | null>();
+ const hoverShapeId = useRef<string | null>(null);
const panelService = useDependency(ThreadCommentPanelService);
const activeCommentId = useObservable(panelService.activeCommentId$);
const panelVisible = useObservable(panelService.panelVisible$, panelService.panelVisible);
@@ -93,6 +93,7 @@ export const SheetsThreadCommentPanel = () => {
});
}
}
+ return null;
}, [markSelectionService, subUnitId, unitId]);
const getSubUnitName = (id: string) => {
diff --git a/packages/sheets-ui/package.json b/packages/sheets-ui/package.json
index f383a334e4..77dd374489 100644
--- a/packages/sheets-ui/package.json
+++ b/packages/sheets-ui/package.json
@@ -70,7 +70,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-ui/src/views/defined-name/DefinedName.tsx b/packages/sheets-ui/src/views/defined-name/DefinedName.tsx
index 5226e60bc4..08cba03007 100644
--- a/packages/sheets-ui/src/views/defined-name/DefinedName.tsx
+++ b/packages/sheets-ui/src/views/defined-name/DefinedName.tsx
@@ -16,7 +16,7 @@
import { useDependency } from '@univerjs/core';
-import { DropdownOverlay, DropdownProvider, DropdownTrigger, Input } from '@univerjs/design';
+import { DropdownOverlay, DropdownProvider, DropdownTrigger } from '@univerjs/design';
import { IDefinedNamesService } from '@univerjs/engine-formula';
import { MoreDownSingle } from '@univerjs/icons';
import clsx from 'clsx';
@@ -39,14 +39,24 @@ export function DefinedName({ disable }: { disable: boolean }) {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []); // Empty dependency array means this effect runs once on mount and clean up on unmount
+ // TODO: @DR-Univer: Should be implemented
+ function handleChangeSelection() {
+
+ }
+
return (
<div className={styles.definedName}>
- <Input
- className={clsx({ [styles.defineNameInputDisable]: disable })}
- value={rangeString}
+ <input
+ className={clsx(`
+ univer-border-none univer-absolute univer-w-full univer-h-full univer-appearance-none
+ univer-box-border univer-px-1.5
+ focus:univer-outline-none
+ `, {
+ [styles.defineNameInputDisable]: disable,
+ })}
type="text"
- size="small"
- affixWrapperStyle={{ border: 'none', paddingLeft: '6px', paddingRight: '6px', height: '100%' }}
+ value={rangeString}
+ onChange={handleChangeSelection}
/>
<DropdownProvider>
diff --git a/packages/sheets-ui/src/views/mobile/sheet-bar/MobileSheetBar.tsx b/packages/sheets-ui/src/views/mobile/sheet-bar/MobileSheetBar.tsx
index bf01e84fd6..ccae86cf3d 100644
--- a/packages/sheets-ui/src/views/mobile/sheet-bar/MobileSheetBar.tsx
+++ b/packages/sheets-ui/src/views/mobile/sheet-bar/MobileSheetBar.tsx
@@ -14,11 +14,10 @@
* limitations under the License.
*/
-import React, { useCallback, useEffect, useState } from 'react';
-import clsx from 'clsx';
-import { ICommandService, useDependency } from '@univerjs/core';
import type { ICommandInfo, Workbook } from '@univerjs/core';
import type { ISetWorksheetActiveOperationParams } from '@univerjs/sheets';
+import type { IBaseSheetBarProps } from '../../sheet-bar/sheet-bar-tabs/SheetBarItem';
+import { ICommandService, useDependency } from '@univerjs/core';
import {
InsertSheetMutation,
RemoveSheetMutation,
@@ -27,7 +26,8 @@ import {
SetWorksheetNameMutation,
SetWorksheetOrderMutation,
} from '@univerjs/sheets';
-import type { IBaseSheetBarProps } from '../../sheet-bar/sheet-bar-tabs/SheetBarItem';
+import clsx from 'clsx';
+import React, { useCallback, useEffect, useRef, useState } from 'react';
import { useActiveWorkbook } from '../../../components/hook';
import styles from './index.module.less';
@@ -45,7 +45,7 @@ function MobileSheetBarImpl(props: { workbook: Workbook }) {
const { workbook } = props;
const [sheetList, setSheetList] = useState<IBaseSheetBarProps[]>([]);
const [activeKey, setActiveKey] = useState('');
- const tabMapRef = React.useRef<Map<string, HTMLElement | null>>(new Map());
+ const tabMapRef = useRef<Map<string, HTMLElement | null>>(new Map());
const commandService = useDependency(ICommandService);
@@ -119,7 +119,9 @@ function MobileSheetBarImpl(props: { workbook: Workbook }) {
)}
key={sheet.sheetId}
onClick={() => onTabClick(sheet.sheetId!)}
- ref={(element) => tabMapRef.current.set(sheet.sheetId!, element)}
+ ref={(element) => {
+ tabMapRef.current.set(sheet.sheetId!, element);
+ }}
>
{sheet.label}
</div>
diff --git a/packages/sheets-zen-editor/package.json b/packages/sheets-zen-editor/package.json
index ce9dca743d..b206d974df 100644
--- a/packages/sheets-zen-editor/package.json
+++ b/packages/sheets-zen-editor/package.json
@@ -70,7 +70,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/slides-ui/package.json b/packages/slides-ui/package.json
index fd9ccfc6c1..3a6aa7ea0d 100644
--- a/packages/slides-ui/package.json
+++ b/packages/slides-ui/package.json
@@ -64,7 +64,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/slides-ui/src/components/slide-bar/SlideBar.tsx b/packages/slides-ui/src/components/slide-bar/SlideBar.tsx
index c8f5e53834..5a4fb5564c 100644
--- a/packages/slides-ui/src/components/slide-bar/SlideBar.tsx
+++ b/packages/slides-ui/src/components/slide-bar/SlideBar.tsx
@@ -15,15 +15,14 @@
*/
import type { SlideDataModel } from '@univerjs/core';
-import clsx from 'clsx';
import { ICommandService, IUniverInstanceService, LocaleService, UniverInstanceType, useDependency } from '@univerjs/core';
import { Scrollbar } from '@univerjs/design';
-import type { RefObject } from 'react';
-import React, { useCallback, useEffect, useRef, useState } from 'react';
import { IRenderManagerService } from '@univerjs/engine-render';
+import clsx from 'clsx';
+import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { ActivateSlidePageOperation } from '../../commands/operations/activate.operation';
-import { SetSlidePageThumbOperation } from '../../commands/operations/set-thumb.operation';
import { AppendSlideOperation } from '../../commands/operations/append-slide.operation';
+import { SetSlidePageThumbOperation } from '../../commands/operations/set-thumb.operation';
import styles from './index.module.less';
/**
@@ -53,12 +52,9 @@ export function SlideSideBar() {
const slideList = pageOrder.map((id) => pages[id]);
- const [divRefs, setDivRefs] = useState<RefObject<HTMLDivElement>[]>([]);
const [activatePageId, setActivatePageId] = useState<string | null>(currentSlide?.getActivePage()?.id ?? null);
- useEffect(() => {
- setDivRefs(slideList.map((_) => React.createRef()));
- }, [slideList.length]);
+ const divRefs = useMemo(() => slideList.map(() => React.createRef<HTMLDivElement>()), [slideList]);
useEffect(() => {
const subscriber = currentSlide?.activePage$.subscribe((page) => {
diff --git a/packages/thread-comment-ui/package.json b/packages/thread-comment-ui/package.json
index ab5d6e23f0..bd20ba0536 100644
--- a/packages/thread-comment-ui/package.json
+++ b/packages/thread-comment-ui/package.json
@@ -62,7 +62,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 847695e747..fed9d841ed 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -70,8 +70,8 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
- "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
+ "react-dom": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/ui/src/components/custom-label/CustomLabel.tsx b/packages/ui/src/components/custom-label/CustomLabel.tsx
index c3f92fbc88..d94e3eab1d 100644
--- a/packages/ui/src/components/custom-label/CustomLabel.tsx
+++ b/packages/ui/src/components/custom-label/CustomLabel.tsx
@@ -14,13 +14,13 @@
* limitations under the License.
*/
+import type { Observable } from 'rxjs';
+import type { IMenuSelectorItem } from '../../services/menu/menu';
import { ColorKit, LocaleService, useDependency } from '@univerjs/core';
import React, { useEffect, useMemo, useState } from 'react';
-import { isObservable } from 'rxjs';
-import type { Observable } from 'rxjs';
+import { isObservable } from 'rxjs';
import { ComponentManager } from '../../common/component-manager';
-import type { IMenuSelectorItem } from '../../services/menu/menu';
export type ICustomLabelProps<T = undefined> = {
value?: string | number | undefined;
@@ -36,7 +36,7 @@ export type ICustomLabelProps<T = undefined> = {
* The component to render toolbar item label and menu item label.
* @param props
*/
-export function CustomLabel(props: ICustomLabelProps): JSX.Element {
+export function CustomLabel(props: ICustomLabelProps) {
const { title, icon, label, value, value$ } = props;
const localeService = useDependency(LocaleService);
const componentManager = useDependency(ComponentManager);
diff --git a/packages/ui/src/controllers/ui/ui-desktop.controller.tsx b/packages/ui/src/controllers/ui/ui-desktop.controller.tsx
index 137caee4bf..1d5ab8e538 100644
--- a/packages/ui/src/controllers/ui/ui-desktop.controller.tsx
+++ b/packages/ui/src/controllers/ui/ui-desktop.controller.tsx
@@ -19,9 +19,9 @@ import type { RenderUnit } from '@univerjs/engine-render';
import type { IUniverUIConfig } from '../config.schema';
import type { IWorkbenchOptions } from './ui.controller';
import { connectInjector, Disposable, Inject, Injector, isInternalEditorID, IUniverInstanceService, LifecycleService, LifecycleStages, Optional, toDisposable } from '@univerjs/core';
-import { IRenderManagerService } from '@univerjs/engine-render';
+import { render as createRoot, unmount } from '@univerjs/design';
-import { render as createRoot, unmount } from 'rc-util/lib/React/render';
+import { IRenderManagerService } from '@univerjs/engine-render';
import React from 'react';
import { filter, take } from 'rxjs';
import { ILayoutService } from '../../services/layout/layout.service';
diff --git a/packages/ui/src/controllers/ui/ui-mobile.controller.tsx b/packages/ui/src/controllers/ui/ui-mobile.controller.tsx
index 10cb6938a0..67bcad729f 100644
--- a/packages/ui/src/controllers/ui/ui-mobile.controller.tsx
+++ b/packages/ui/src/controllers/ui/ui-mobile.controller.tsx
@@ -18,9 +18,10 @@ import type { IDisposable } from '@univerjs/core';
import type { IUniverUIConfig } from '../config.schema';
import type { IUIController, IWorkbenchOptions } from './ui.controller';
import { connectInjector, Disposable, Inject, Injector, IUniverInstanceService, LifecycleService, LifecycleStages, Optional, toDisposable, UniverInstanceType } from '@univerjs/core';
+import { render as createRoot, unmount } from '@univerjs/design';
+
import { IRenderManagerService } from '@univerjs/engine-render';
-import { render as createRoot, unmount } from 'rc-util/lib/React/render';
import React from 'react';
import { ILayoutService } from '../../services/layout/layout.service';
import { IMenuManagerService } from '../../services/menu/menu-manager.service';
diff --git a/packages/ui/src/views/components/popup/RectPopup.tsx b/packages/ui/src/views/components/popup/RectPopup.tsx
index 5a19be7eb6..0eb86aae1c 100644
--- a/packages/ui/src/views/components/popup/RectPopup.tsx
+++ b/packages/ui/src/views/components/popup/RectPopup.tsx
@@ -119,7 +119,7 @@ function RectPopup(props: IRectPopupProps) {
left: -9999,
});
const excludeRectsRef = excludeRects;
- const anchorRectRef = useRef<IAbsolutePosition>();
+ const anchorRectRef = useRef<IAbsolutePosition>(undefined);
useEffect(() => {
const anchorRectSub = anchorRect$.subscribe((anchorRect) => {
diff --git a/packages/uniscript/package.json b/packages/uniscript/package.json
index 563d231c42..bee74e3e28 100644
--- a/packages/uniscript/package.json
+++ b/packages/uniscript/package.json
@@ -64,7 +64,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
"rxjs": ">=7.0.0"
},
"dependencies": {
@@ -79,6 +79,7 @@
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
"postcss": "^8.4.49",
+ "react": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index e3909132d3..0f0239c0e7 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -4,6 +4,12 @@ settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
+overrides:
+ '@types/react': ^19.0.2
+ '@types/react-dom': ^19.0.2
+ react: 19.0.0
+ react-dom: 19.0.0
+
importers:
.:
@@ -31,16 +37,16 @@ importers:
'@storybook/react':
specifier: 8.4.7
'@types/node':
specifier: ^22.10.2
version: 22.10.2
'@types/react':
- specifier: ^18.3.12
- version: 18.3.12
+ specifier: ^19.0.2
+ version: 19.0.2
'@types/react-dom':
- specifier: ^18.3.1
- version: 18.3.1
+ specifier: ^19.0.2
+ version: 19.0.2(@types/[email protected])
'@univerjs-infra/shared':
specifier: workspace:*
version: link:common/shared
@@ -84,11 +90,11 @@ importers:
specifier: ^15.3.0
version: 15.3.0
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
react-dom:
- specifier: 18.3.1
- version: 18.3.1([email protected])
+ specifier: 19.0.0
+ version: 19.0.0([email protected])
release-it:
specifier: ^17.11.0
version: 17.11.0([email protected])
@@ -167,7 +173,7 @@ importers:
version: 11.0.4
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/icons-svg':
specifier: ^0.2.12
version: 0.2.12
@@ -179,16 +185,16 @@ importers:
dependencies:
'@chromatic-com/storybook':
specifier: ^3.2.3
'@storybook/addon-essentials':
specifier: ^8.4.7
'@storybook/addon-interactions':
specifier: ^8.4.7
'@storybook/addon-links':
specifier: ^8.4.7
'@storybook/addon-styling-webpack':
specifier: ^1.0.1
@@ -197,16 +203,16 @@ importers:
'@storybook/blocks':
specifier: ^8.4.7
'@storybook/icons':
specifier: ^1.3.0
'@storybook/react':
specifier: ^8.4.7
'@storybook/react-webpack5':
specifier: ^8.4.7
'@storybook/types':
specifier: ^8.4.7
@@ -437,24 +443,18 @@ importers:
specifier: 0.52.2
version: 0.52.2
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
react-dom:
- specifier: 18.3.1
- version: 18.3.1([email protected])
+ specifier: 19.0.0
+ version: 19.0.0([email protected])
react-mosaic-component:
specifier: ^6.1.1
devDependencies:
'@types/fs-extra':
specifier: ^11.0.4
version: 11.0.4
- '@types/react':
- specifier: ^18.3.12
- version: 18.3.12
- '@types/react-dom':
- specifier: ^18.3.1
- version: 18.3.1
'@univerjs-infra/shared':
specifier: workspace:*
version: link:../common/shared
@@ -648,7 +648,7 @@ importers:
version: link:../../packages/design
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/sheets':
specifier: workspace:*
version: link:../../packages/sheets
@@ -672,8 +672,8 @@ importers:
specifier: ^4.2.1
version: 4.2.1
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -706,7 +706,7 @@ importers:
version: link:../../packages/engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/mockdata':
specifier: workspace:*
version: link:../../mockdata
@@ -725,9 +725,6 @@ importers:
clsx:
specifier: ^2.1.1
version: 2.1.1
- react:
- specifier: ^16.9.0 || ^17.0.0 || ^18.0.0
- version: 18.3.1
optionalDependencies:
vue:
specifier: '>=3.0.0'
@@ -739,6 +736,9 @@ importers:
postcss:
specifier: ^8.4.49
version: 8.4.49
+ react:
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -867,7 +867,7 @@ importers:
version: link:../../packages/engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/rpc':
specifier: workspace:*
version: link:../../packages/rpc
@@ -889,9 +889,6 @@ importers:
clsx:
specifier: ^2.1.1
version: 2.1.1
- react:
- specifier: ^16.9.0 || ^17.0.0 || ^18.0.0
- version: 18.3.1
devDependencies:
'@univerjs-infra/shared':
specifier: workspace:*
@@ -899,6 +896,9 @@ importers:
postcss:
specifier: ^8.4.49
version: 8.4.49
+ react:
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -931,7 +931,7 @@ importers:
version: link:../../packages/docs-ui
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/sheets':
specifier: workspace:*
version: link:../../packages/sheets
@@ -950,9 +950,6 @@ importers:
clsx:
specifier: ^2.1.1
version: 2.1.1
- react:
- specifier: ^16.9.0 || ^17.0.0 || ^18.0.0
- version: 18.3.1
devDependencies:
'@univerjs-infra/shared':
specifier: workspace:*
@@ -960,6 +957,9 @@ importers:
postcss:
specifier: ^8.4.49
version: 8.4.49
+ react:
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -986,7 +986,7 @@ importers:
version: link:../../packages/engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/slides-ui':
specifier: workspace:*
version: link:../../packages/slides-ui
@@ -1010,11 +1010,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
- react-dom:
- specifier: 18.3.1
- version: 18.3.1([email protected])
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -1035,7 +1032,7 @@ importers:
dependencies:
'@floating-ui/react-dom':
specifier: ^2.1.2
'@univerjs/core':
specifier: workspace:*
version: link:../../packages/core
@@ -1047,7 +1044,7 @@ importers:
version: link:../../packages/engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/sheets':
specifier: workspace:*
version: link:../../packages/sheets
@@ -1059,13 +1056,13 @@ importers:
version: link:../../packages/ui
'@xyflow/react':
specifier: ^12.3.5
clsx:
specifier: ^2.1.1
version: 2.1.1
rc-util:
specifier: ^5.43.0
devDependencies:
'@univerjs-infra/shared':
specifier: workspace:*
@@ -1077,11 +1074,11 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
react-dom:
- specifier: 18.3.1
- version: 18.3.1([email protected])
+ specifier: 19.0.0
+ version: 19.0.0([email protected])
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -1134,8 +1131,8 @@ importers:
specifier: ^4.0.1
version: 4.0.1
react:
- specifier: ^16.9.0 || ^17.0.0 || ^18.0.0
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
devDependencies:
'@types/lodash-es':
specifier: ^4.17.12
@@ -1194,13 +1191,13 @@ importers:
dependencies:
'@rc-component/color-picker':
specifier: ^2.0.1
'@rc-component/trigger':
- specifier: ^2.2.5
+ specifier: ^2.2.6
'@univerjs/icons':
specifier: ^0.2.12
clsx:
specifier: ^2.1.1
version: 2.1.1
@@ -1209,59 +1206,59 @@ importers:
version: 1.11.13
rc-dialog:
specifier: ^9.6.0
rc-dropdown:
- specifier: ^4.2.0
+ specifier: ^4.2.1
rc-input:
- specifier: ^1.6.3
+ specifier: ^1.7.1
rc-input-number:
specifier: ^9.3.0
rc-menu:
specifier: ^9.16.0
rc-picker:
- specifier: ^4.8.1
+ specifier: ^4.9.0
rc-segmented:
- specifier: ^2.5.0
+ specifier: ^2.7.0
rc-select:
- specifier: ^14.16.3
+ specifier: ^14.16.4
rc-textarea:
specifier: ^1.8.2
rc-util:
specifier: ^5.43.0
rc-virtual-list:
- specifier: ^3.15.0
+ specifier: ^3.16.1
react-draggable:
specifier: ^4.4.6
react-grid-layout:
specifier: ^1.5.0
react-transition-group:
specifier: ^4.4.5
tailwind-merge:
specifier: ^2.6.0
version: 2.6.0
devDependencies:
'@testing-library/react':
specifier: ^16.1.0
'@types/react-grid-layout':
specifier: ^1.3.5
version: 1.3.5
'@types/react-transition-group':
specifier: ^4.4.11
- version: 4.4.12(@types/[email protected])
+ version: 4.4.12(@types/[email protected])
'@univerjs-infra/shared':
specifier: workspace:*
version: link:../../common/shared
@@ -1275,11 +1272,11 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
react-dom:
- specifier: 18.3.1
- version: 18.3.1([email protected])
+ specifier: 19.0.0
+ version: 19.0.0([email protected])
tailwindcss:
specifier: ^3.4.17
version: 3.4.17
@@ -1371,7 +1368,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/ui':
specifier: workspace:*
version: link:../ui
@@ -1389,8 +1386,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -1451,7 +1448,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/ui':
specifier: workspace:*
version: link:../ui
@@ -1466,8 +1463,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -1512,8 +1509,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -1546,7 +1543,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/thread-comment':
specifier: workspace:*
version: link:../thread-comment
@@ -1567,8 +1564,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -1604,7 +1601,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/ui':
specifier: workspace:*
version: link:../ui
@@ -1625,8 +1622,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -1684,7 +1681,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/ui':
specifier: workspace:*
version: link:../ui
@@ -1702,8 +1699,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -1910,7 +1907,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/ui':
specifier: workspace:*
version: link:../ui
@@ -1925,8 +1922,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -2096,7 +2093,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2116,14 +2113,14 @@ importers:
specifier: ^2.1.1
version: 2.1.1
react-dom:
- specifier: ^16.9.0 || ^17.0.0 || ^18.0.0
- version: 18.3.1([email protected])
+ specifier: 19.0.0
+ version: 19.0.0([email protected])
react-grid-layout:
specifier: ^1.4.4
react-resizable:
specifier: ^3.0.5
devDependencies:
'@types/react-grid-layout':
specifier: ^1.3.5
@@ -2138,8 +2135,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -2166,7 +2163,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2190,8 +2187,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -2273,7 +2270,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2306,8 +2303,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -2374,7 +2371,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2401,8 +2398,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -2457,7 +2454,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/rpc':
specifier: workspace:*
version: link:../rpc
@@ -2478,7 +2475,7 @@ importers:
version: 2.1.1
rc-virtual-list:
specifier: ^3.15.0
devDependencies:
'@univerjs-infra/shared':
specifier: workspace:*
@@ -2490,8 +2487,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -2598,7 +2595,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2625,8 +2622,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -2724,7 +2721,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2754,8 +2751,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -2822,7 +2819,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2846,8 +2843,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -2902,7 +2899,7 @@ importers:
version: link:../engine-formula
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2920,7 +2917,7 @@ importers:
version: 2.1.1
rc-virtual-list:
specifier: ^3.15.0
devDependencies:
'@univerjs-infra/shared':
specifier: workspace:*
@@ -2932,8 +2929,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -2994,7 +2991,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -3024,8 +3021,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -3067,7 +3064,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/protocol':
specifier: 0.1.40
version: 0.1.40(@grpc/[email protected])([email protected])
@@ -3094,8 +3091,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -3128,7 +3125,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -3152,8 +3149,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -3214,7 +3211,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/slides':
specifier: workspace:*
version: link:../slides
@@ -3235,8 +3232,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -3310,7 +3307,7 @@ importers:
version: link:../docs-ui
'@univerjs/icons':
specifier: ^0.2.12
'@univerjs/thread-comment':
specifier: workspace:*
version: link:../thread-comment
@@ -3331,8 +3328,8 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -3362,7 +3359,7 @@ importers:
version: link:../engine-render
'@univerjs/icons':
specifier: ^0.2.12
clsx:
specifier: ^2.1.1
version: 2.1.1
@@ -3371,10 +3368,10 @@ importers:
version: 1.10.0
rc-notification:
specifier: ^5.6.2
rc-util:
specifier: ^5.43.0
optionalDependencies:
vue:
specifier: '>=3.0.0'
@@ -3382,7 +3379,7 @@ importers:
devDependencies:
'@testing-library/react':
specifier: ^16.1.0
'@univerjs-infra/shared':
specifier: workspace:*
version: link:../../common/shared
@@ -3393,11 +3390,11 @@ importers:
specifier: ^8.4.49
version: 8.4.49
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
react-dom:
- specifier: 18.3.1
- version: 18.3.1([email protected])
+ specifier: 19.0.0
+ version: 19.0.0([email protected])
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -3434,9 +3431,6 @@ importers:
monaco-editor:
specifier: 0.52.2
version: 0.52.2
- react:
- specifier: ^16.9.0 || ^17.0.0 || ^18.0.0
- version: 18.3.1
devDependencies:
'@univerjs-infra/shared':
specifier: workspace:*
@@ -3447,6 +3441,9 @@ importers:
postcss:
specifier: ^8.4.49
version: 8.4.49
+ react:
+ specifier: 19.0.0
+ version: 19.0.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -4649,8 +4646,8 @@ packages:
'@floating-ui/[email protected]':
resolution: {integrity: sha512-06okr5cgPzMNBy+Ycse2A6udMi4bqwW/zgBF/rwjcNqWkyr82Mcg8b0vjX8OJpZFy/FKjJmw6wV7t44kK6kW7A==}
peerDependencies:
- react: '>=16.8.0'
- react-dom: '>=16.8.0'
+ react: 19.0.0
+ react-dom: 19.0.0
'@floating-ui/[email protected]':
resolution: {integrity: sha512-kym7SodPp8/wloecOpcmSnWJsK7M0E5Wg8UcFA+uO4B9s5d0ywXOEro/8HM9x0rW+TljRzul/14UYz3TleT3ig==}
@@ -4742,8 +4739,8 @@ packages:
'@mdx-js/[email protected]':
resolution: {integrity: sha512-QjHtSaoameoalGnKDT3FoIl4+9RwyTmo9ZJGBdLOks/YOiWHoRDI3PUwEzOE7kEmGcV3AFcp9K6dYu9rEuKLAQ==}
peerDependencies:
- '@types/react': '>=16'
- react: '>=16'
+ '@types/react': ^19.0.2
+ react: 19.0.0
'@microsoft/[email protected]':
resolution: {integrity: sha512-CTS2PlASJHxVY8hqHORVb1HdECWOEMcMnM6/kDkPr0RZapAFSIHhg9D4jxuE8g+OWYHtPc10LCpmde5pylTRlA==}
@@ -4880,8 +4877,8 @@ packages:
'@rc-component/[email protected]':
resolution: {integrity: sha512-WcZYwAThV/b2GISQ8F+7650r5ZZJ043E57aVBFkQ+kSY4C6wdofXgB0hBx+GPGpIU0Z81eETNoDUJMr7oy/P8Q==}
peerDependencies:
- react: '>=16.9.0'
- react-dom: '>=16.9.0'
+ react: 19.0.0
+ react-dom: 19.0.0
'@rc-component/[email protected]':
resolution: {integrity: sha512-jS4E7T9Li2GuYwI6PyiVXmxTiM6b07rlD9Ge8uGZSCz3WlzcG5ZK7g5bbuKNeZ9pgUuPK/5guV781ujdVpm4HQ==}
@@ -4891,15 +4888,15 @@ packages:
resolution: {integrity: sha512-6f813C0IsasTZms08kfA8kPAGxbbkYToa8ALaiDIGGECU4i9hj8Plgbx0sNJDrey3EtHO30hmdaxtT0138xZcg==}
engines: {node: '>=8.x'}
peerDependencies:
- react: '>=16.9.0'
- react-dom: '>=16.9.0'
+ react: 19.0.0
+ react-dom: 19.0.0
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-F1EJ4KjFpGAHAjuKvOyZB/6IZDkVx0bHl0M4fQM5wXcmm7lgTgVSSnR3bXwdmS6jOJGHOqfDxIJW3WUvwMIXhQ==}
+ '@rc-component/[email protected]':
+ resolution: {integrity: sha512-/9zuTnWwhQ3S3WT1T8BubuFTT46kvnXgaERR9f4BTKyn61/wpf/BvbImzYBubzJibU707FxwbKszLlHjcLiv1Q==}
engines: {node: '>=8.x'}
peerDependencies:
- react: '>=16.9.0'
- react-dom: '>=16.9.0'
+ react: 19.0.0
+ react-dom: 19.0.0
'@react-dnd/[email protected]':
resolution: {integrity: sha512-WLyfoHvxhs0V9U+GTsGilGgf2QsPl6ZZ44fnv0/b8T3nQyvzxidxsg/ZltbWssbsRDlYW8UKSQMTGotuTotZ6A==}
@@ -5185,7 +5182,7 @@ packages:
'@storybook/[email protected]':
resolution: {integrity: sha512-L/1h4dMeMKF+MM0DanN24v5p3faNYbbtOApMgg7SlcBT/tgo3+cAjkgmNpYA8XtKnDezm+T2mTDhB8mmIRZpIQ==}
peerDependencies:
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta
+ react: 19.0.0
storybook: ^8.4.7
peerDependenciesMeta:
react:
@@ -5223,8 +5220,8 @@ packages:
'@storybook/[email protected]':
resolution: {integrity: sha512-+QH7+JwXXXIyP3fRCxz/7E2VZepAanXJM7G8nbR3wWsqWgrRp4Wra6MvybxAYCxU7aNfJX5c+RW84SNikFpcIA==}
peerDependencies:
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta
- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta
+ react: 19.0.0
+ react-dom: 19.0.0
storybook: ^8.4.7
peerDependenciesMeta:
react:
@@ -5274,8 +5271,8 @@ packages:
resolution: {integrity: sha512-Nz/UzeYQdUZUhacrPyfkiiysSjydyjgg/p0P9HxB4p/WaJUUjMAcaoaLgy3EXx61zZJ3iD36WPuDkZs5QYrA0A==}
engines: {node: '>=14.0.0'}
peerDependencies:
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta
- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta
+ react: 19.0.0
+ react-dom: 19.0.0
'@storybook/[email protected]':
resolution: {integrity: sha512-k6NSD3jaRCCHAFtqXZ7tw8jAzD/yTEWXGya+REgZqq5RCkmJ+9S4Ytp/6OhQMPtPFX23gAuJJzTQVLcCr+gjRg==}
@@ -5294,8 +5291,8 @@ packages:
resolution: {integrity: sha512-geTSBKyrBagVihil5MF7LkVFynbfHhCinvnbCZZqXW7M1vgcxvatunUENB+iV8eWg/0EJ+8O7scZL+BAxQ/2qg==}
engines: {node: '>=18.0.0'}
peerDependencies:
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta
- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta
+ react: 19.0.0
+ react-dom: 19.0.0
storybook: ^8.4.7
typescript: '*'
peerDependenciesMeta:
@@ -5316,16 +5313,16 @@ packages:
'@storybook/[email protected]':
resolution: {integrity: sha512-6bkG2jvKTmWrmVzCgwpTxwIugd7Lu+2btsLAqhQSzDyIj2/uhMNp8xIMr/NBDtLgq3nomt9gefNa9xxLwk/OMg==}
peerDependencies:
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta
- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta
+ react: 19.0.0
+ react-dom: 19.0.0
storybook: ^8.4.7
'@storybook/[email protected]':
resolution: {integrity: sha512-T9GLqlsP4It4El7cC8rSkBPRWvORAsTDULeWlO36RST2TrYnmBOUytsi22mk7cAAAVhhD6rTrs1YdqWRMpfa1w==}
engines: {node: '>=18.0.0'}
peerDependencies:
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta
- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta
+ react: 19.0.0
+ react-dom: 19.0.0
storybook: ^8.4.7
typescript: '>= 4.2.x'
peerDependenciesMeta:
@@ -5337,8 +5334,8 @@ packages:
engines: {node: '>=18.0.0'}
peerDependencies:
'@storybook/test': 8.4.7
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta
- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta
+ react: 19.0.0
+ react-dom: 19.0.0
storybook: ^8.4.7
typescript: '>= 4.2.x'
peerDependenciesMeta:
@@ -5456,10 +5453,10 @@ packages:
engines: {node: '>=18'}
peerDependencies:
'@testing-library/dom': ^10.0.0
- '@types/react': ^18.0.0 || ^19.0.0
- '@types/react-dom': ^18.0.0 || ^19.0.0
- react: ^18.0.0 || ^19.0.0
- react-dom: ^18.0.0 || ^19.0.0
+ '@types/react': ^19.0.2
+ '@types/react-dom': ^19.0.2
+ react: 19.0.0
+ react-dom: 19.0.0
peerDependenciesMeta:
'@types/react':
optional: true
@@ -5586,14 +5583,13 @@ packages:
resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==}
- '@types/[email protected]':
- resolution: {integrity: sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==}
-
resolution: {integrity: sha512-+N+2H39P8X+Hy1I5mC6awlTX54k3FhiUmvt7HWzGJZvF+syUAAxP/stwppS8JE84YHqFgRMv6fCy31202CMFxQ==}
- '@types/[email protected]':
- resolution: {integrity: sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-c1s+7TKFaDRRxr1TxccIX2u7sfCnc3RxkVyBIUA2lCpyqCF+QoAwQ/CBg7bsMdVwP120HEH143VQezKtef5nCg==}
+ peerDependencies:
+ '@types/react': ^19.0.2
resolution: {integrity: sha512-WH/po1gcEcoR6y857yAnPGug+ZhkF4PaTUxgAbwfeSH/QOgVSakKHBXoPGad/sEznmkiaK3pqHk+etdWisoeBQ==}
@@ -5601,10 +5597,10 @@ packages:
resolution: {integrity: sha512-8TV6R3h2j7a91c+1DXdJi3Syo69zzIZbz7Lg5tORM5LEJG7X/E6a1V3drRyBRZq7/utz7A+c4OgYLiLcYGHG6w==}
peerDependencies:
- '@types/react': '*'
+ '@types/react': ^19.0.2
- '@types/[email protected]':
- resolution: {integrity: sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-USU8ZI/xyKJwFTpjSVIrSeHBVAGagkHQKPNbxeWwql/vDmnTIBgx+TJnhFnj1NXgz8XfprU0egV2dROLGpsBEg==}
resolution: {integrity: sha512-A4STmOXPhMUtHH+S6ymgE2GiBSMqf4oTvcQZMcHzokuTLVYzXTB8ttjcgxOVaAp2lGwEdzZ0J+cRbbeevQj1UQ==}
@@ -5730,8 +5726,8 @@ packages:
'@univerjs/[email protected]':
resolution: {integrity: sha512-1NaLAveIFpo9uPIS13gZ1W1nK8yeatr1HBsI65E8HkKF6jMML1JHxj/fcc6t95c7hN4jt0AmxwilB4BGK3S8Og==}
peerDependencies:
- react: '*'
- react-dom: '*'
+ react: 19.0.0
+ react-dom: 19.0.0
'@univerjs/[email protected]':
resolution: {integrity: sha512-+SxbIaLlQ3G1iPGtm7915R+iLtMFiiynk1M9j+40QxFPDD6Kynwi7XCjo4Y1NDSXDlDvU60iW1gYfuldybyk5w==}
@@ -5933,8 +5929,8 @@ packages:
'@xyflow/[email protected]':
resolution: {integrity: sha512-wAYqpicdrVo1rxCu0X3M9s3YIF45Agqfabw0IBryTGqjWvr2NyfciI8gIP4MB+NKpWWN5kxZ9tiZ9u8lwC7iAg==}
peerDependencies:
- react: '>=17'
- react-dom: '>=17'
+ react: 19.0.0
+ react-dom: 19.0.0
'@xyflow/[email protected]':
resolution: {integrity: sha512-bmFXvboVdiydIFZmDCjrbBCYgB0d5pYdkcZPWbAxGmhMRUZ+kW3CksYgYxWabrw51rwpWitLEadvLrivG0mVfA==}
@@ -9878,68 +9874,74 @@ packages:
resolution: {integrity: sha512-ApoVi9Z8PaCQg6FsUzS8yvBEQy0ZL2PkuvAgrmohPkN3okps5WZ5WQWPc1RNuiOKaAYv8B97ACdsFU5LizzCqg==}
peerDependencies:
- react: '>=16.9.0'
- react-dom: '>=16.9.0'
+ react: 19.0.0
+ react-dom: 19.0.0
- resolution: {integrity: sha512-odM8Ove+gSh0zU27DUj5cG1gNKg7mLWBYzB5E4nNLrLwBmYEgYP43vHKDGOVZcJSVElQBI0+jTQgjnq0NfLjng==}
+ resolution: {integrity: sha512-YDAlXsPv3I1n42dv1JpdM7wJ+gSUBfeyPK59ZpBD9jQhK9jVuxpjj3NmWQHOBceA1zEPVX84T2wbdb2SD0UjmA==}
peerDependencies:
- react: '>=16.11.0'
- react-dom: '>=16.11.0'
+ react: 19.0.0
+ react-dom: 19.0.0
resolution: {integrity: sha512-JQ363ywqRyxwgVxpg2z2kja3CehTpYdqR7emJ/6yJjRdbvo+RvfE83fcpBCIJRq3zLp8SakmEXq60qzWyZ7Usw==}
peerDependencies:
- react: '>=16.9.0'
- react-dom: '>=16.9.0'
+ react: 19.0.0
+ react-dom: 19.0.0
resolution: {integrity: sha512-wI4NzuqBS8vvKr8cljsvnTUqItMfG1QbJoxovCgL+DX4eVUcHIjVwharwevIxyy7H/jbLryh+K7ysnJr23aWIA==}
peerDependencies:
- react: '>=16.0.0'
- react-dom: '>=16.0.0'
+ react: 19.0.0
+ react-dom: 19.0.0
+
+ resolution: {integrity: sha512-by1VW/m7z2OH/ST3P5P8zi4K/RWUh7jJuNaPYGdGzXwJ3MF1rKWEuP0jeKW1PaWqqLxNVSvQZ8sIRkCCS8uWSg==}
+ peerDependencies:
+ react: 19.0.0
+ react-dom: 19.0.0
resolution: {integrity: sha512-vAL0yqPkmXWk3+YKRkmIR8TYj3RVdEt3ptG2jCJXWNAvQbT0VJJdRyHZ7kG/l1JsZlB+VJq/VcYOo69VR4oD+w==}
peerDependencies:
- react: '>=16.9.0'
- react-dom: '>=16.9.0'
+ react: 19.0.0
+ react-dom: 19.0.0
resolution: {integrity: sha512-fUAhHKLDdkAXIDLH0GYwof3raS58dtNUmzLF2MeiR8o6n4thNpSDQhOqQzWE4WfFZDCi9VEN8n7tiB7czREcyw==}
peerDependencies:
- react: '>=16.9.0'
- react-dom: '>=16.9.0'
+ react: 19.0.0
+ react-dom: 19.0.0
resolution: {integrity: sha512-rkW47ABVkic7WEB0EKJqzySpvDqwl60/tdkY7hWP7dYnh5pm0SzJpo54oW3TDUGXV5wfxXFmMkxrzRRbotQ0+w==}
peerDependencies:
- react: '>=16.9.0'
- react-dom: '>=16.9.0'
+ react: 19.0.0
+ react-dom: 19.0.0
resolution: {integrity: sha512-Id4IYMoii3zzrG0lB0gD6dPgJx4Iu95Xu0BQrhHIbp7ZnAZbLqdqQ73aIWH0d0UFcElxwaKjnzNovTjo7kXz7g==}
engines: {node: '>=8.x'}
peerDependencies:
- react: '>=16.9.0'
- react-dom: '>=16.9.0'
+ react: 19.0.0
+ react-dom: 19.0.0
resolution: {integrity: sha512-nsUm78jkYAoPygDAcGZeC2VwIg/IBGSodtOY3pMof4W3M9qRJgqaDYm03ZayHlde3I6ipliAxbN0RUcGf5KOzw==}
peerDependencies:
- react: '>=16.9.0'
- react-dom: '>=16.9.0'
+ react: 19.0.0
+ react-dom: 19.0.0
- resolution: {integrity: sha512-lj9hXXMSkbjFUIhfQh8XH698ybxnoBOfq7pdM1FvfSyDwdFhdQa7dvsIYwo6Uz7Zp1wVkfw5rOJO3MpdWzoHsg==}
+ resolution: {integrity: sha512-37Cx1tCsKuCMCLRAJZTjLJNVmX14QcapLlNQFUhcBjpPbzT3a62Q+p9ct7Oa9oKDn6nvfBh4I5CC3q92pOPq3w==}
engines: {node: '>=8.x'}
peerDependencies:
date-fns: '>= 2.x'
dayjs: '>= 1.x'
luxon: '>= 3.x'
moment: '>= 2.x'
- react: '>=16.9.0'
- react-dom: '>=16.9.0'
+ react: 19.0.0
+ react-dom: 19.0.0
peerDependenciesMeta:
date-fns:
optional: true
@@ -9953,40 +9955,53 @@ packages:
resolution: {integrity: sha512-PnMVyRid9JLxFavTjeDXEXo65HCRqbmLBw9xX9gfC4BZiSzbLXKzW3jPz+J0P71pLbD5tBMTT+mkstV5gD0c9Q==}
peerDependencies:
- react: '>=16.9.0'
- react-dom: '>=16.9.0'
+ react: 19.0.0
+ react-dom: 19.0.0
- resolution: {integrity: sha512-B28Fe3J9iUFOhFJET3RoXAPFJ2u47QvLSYcZWC4tFYNGPEjug5LAxEasZlA/PpAxhdOPqGWsGbSj7ftneukJnw==}
+ resolution: {integrity: sha512-liijAjXz+KnTRVnxxXG2sYDGd6iLL7VpGGdR8gwoxAXy2KglviKCxLWZdjKYJzYzGSUwKDSTdYk8brj54Bn5BA==}
peerDependencies:
- react: '>=16.0.0'
- react-dom: '>=16.0.0'
+ react: 19.0.0
+ react-dom: 19.0.0
- resolution: {integrity: sha512-51+j6s3fJJJXB7E+B6W1hM4Tjzv1B/Decooz9ilgegDBt3ZAth1b/xMwYCTrT5BbG2e53XACQsyDib2+3Ro1fg==}
+ resolution: {integrity: sha512-jP6qf7+vjnxGvPpfPWbGYfFlSl3h8L2XcD4O7g2GYXmEeBC0mw+nPD7i++OOE8v3YGqP8xtYjRKAWCMLfjgxlw==}
engines: {node: '>=8.x'}
peerDependencies:
- react: '*'
- react-dom: '*'
+ react: 19.0.0
+ react-dom: 19.0.0
resolution: {integrity: sha512-UFAezAqltyR00a8Lf0IPAyTd29Jj9ee8wt8DqXyDMal7r/Cg/nDt3e1OOv3Th4W6mKaZijjgwuPXhAfVNTN8sw==}
peerDependencies:
- react: '>=16.9.0'
- react-dom: '>=16.9.0'
+ react: 19.0.0
+ react-dom: 19.0.0
resolution: {integrity: sha512-AzC7KKOXFqAdIBqdGWepL9Xn7cm3vnAmjlHqUnoQaTMZYhM4VlXGLkkHHxj/BZ7Td0+SOPKB4RGPboBVKT9htw==}
peerDependencies:
- react: '>=16.9.0'
- react-dom: '>=16.9.0'
+ react: 19.0.0
+ react-dom: 19.0.0
+
+ resolution: {integrity: sha512-uGSk3hpPBLa3/0QAcKhCjgl4SFnhQCJDLvvpoLdbR6KgDuXrujG+dQaUeUvBJr2ZWak1O/9n+cYbJiWmmk95EQ==}
+ peerDependencies:
+ react: 19.0.0
+ react-dom: 19.0.0
resolution: {integrity: sha512-dF2YQztqrU3ijAeWOqscTshCEr7vpimzSqAVjO1AyAmaqcHulaXpnGR0ptK5PXfxTUy48VkJOiglMIxlkYGs0w==}
engines: {node: '>=8.x'}
peerDependencies:
- react: '>=16.9.0'
- react-dom: '>=16.9.0'
+ react: 19.0.0
+ react-dom: 19.0.0
+
+ resolution: {integrity: sha512-algM5UsB7vrlPNr9lsZEH8s9KHkP8XbT/Y0qylyPkiM8mIOlSJLjBNADcmbYPEQCm4zW82mZRJuVHNzqqN0EAQ==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ react: 19.0.0
+ react-dom: 19.0.0
resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==}
@@ -9999,7 +10014,7 @@ packages:
resolution: {integrity: sha512-K+kTyOPgX+ZujMZ+Rmb7pZdHBvg+DzinG/w4Eh52WOB8/pfO38efnnrtEZNJmjTvLxc16RBYO+tPM68Fg8viBA==}
engines: {node: '>=16'}
peerDependencies:
- react: ^16.3.0 || ^17.0.1 || ^18.0.0 || ^19.0.0
+ react: 19.0.0
resolution: {integrity: sha512-Wu3dw5aDJmOGw8WjH1I1/yTH+vlXEL4vmjk5p+MHxP8HuHJS1lAGeIdG/hze1AvNeXWo/JgULV87LyQOr+r5jw==}
@@ -10008,14 +10023,14 @@ packages:
resolution: {integrity: sha512-Ecj+gwr5B7zRiWqkDU5sUvUmufcu97WnsZFHnqHrWFJhTXAXQnhrperHLFktNP2CnQYtAgbucodr1if0MWpEaA==}
peerDependencies:
dnd-core: ^16.0.1
- react: ^16.14.0 || ^17.0.2 || ^18.0.0
+ react: 19.0.0
react-dnd: ^16.0.1
- react-dom: ^16.14.0 || ^17.0.2 || ^18.0.0
+ react-dom: 19.0.0
resolution: {integrity: sha512-j5M1NcQBItOCYXONRbCNs6MzW7u4KygeOGZlztNNguTs1/f2d7q1fRnQjFLjCpgeg5Gy/JrTFrbRThZglJP5dg==}
peerDependencies:
- react: ^16.14.0 || ^17.0.2 || ^18.0.0
+ react: 19.0.0
react-dnd: ^16.0.1
@@ -10026,8 +10041,8 @@ packages:
peerDependencies:
'@types/hoist-non-react-statics': '>= 3.3.1'
'@types/node': '>= 12'
- '@types/react': '>= 16'
- react: '>= 16.14'
+ '@types/react': ^19.0.2
+ react: 19.0.0
peerDependenciesMeta:
'@types/hoist-non-react-statics':
optional: true
@@ -10045,28 +10060,28 @@ packages:
resolution: {integrity: sha512-APPU8HB2uZnpl6Vt/+0AFoVYgSRtfiP6FLrZgPPTDmqSb2R4qZRbgd0A3VzIFxDt5e+Fozjx79WjLWnF69DK8g==}
engines: {node: '>=16.14.0'}
- resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==}
+ resolution: {integrity: sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==}
peerDependencies:
- react: ^18.3.1
+ react: 19.0.0
resolution: {integrity: sha512-LtY5Xw1zTPqHkVmtM3X8MUOxNDOUhv/khTgBgrUvwaS064bwVvxT+q5El0uUFNx5IEPKXuRejr7UqLwBIg5pdw==}
peerDependencies:
- react: '>= 16.3.0'
- react-dom: '>= 16.3.0'
+ react: 19.0.0
+ react-dom: 19.0.0
resolution: {integrity: sha512-7+Lg8E8O8HfOH5FrY80GCIR1SHTn2QnAYKh27/5spoz+OHhMmEhU/14gIkRzJOtympDPaXcVRX/nT1FjmeOUmQ==}
peerDependencies:
- react: '>= 16.3.0'
- react-dom: '>= 16.3.0'
+ react: 19.0.0
+ react-dom: 19.0.0
resolution: {integrity: sha512-WBKX7w/LsTfI99WskSu6nX2nbJAUD7GD6nIXcwYLyPpnslojtmql2oD3I2g5C3AK8hrxIarYT8awhuDIp7iQ5w==}
peerDependencies:
- react: '>= 16.3.0'
- react-dom: '>= 16.3.0'
+ react: 19.0.0
+ react-dom: 19.0.0
resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
@@ -10080,7 +10095,7 @@ packages:
resolution: {integrity: sha512-Ivuj6AxRDlo/H8OiEDU1mdgivxuKbwGOa5Ub6Yf+bHcu0JWioT7ttlpCWF63/gKrJBlRMB6fW9/eNOXINg9+Gg==}
peerDependencies:
- react: '>=16'
+ react: 19.0.0
resolution: {integrity: sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==}
@@ -10089,16 +10104,16 @@ packages:
resolution: {integrity: sha512-vKpeHhI5OZvYn82kXOs1bC8aOXktGU5AmKAgaZS4F5JPburCtbmDPqE7Pzp+1kN4+Wb81LlF33VpGwWwtXem+w==}
peerDependencies:
- react: '>= 16.3'
+ react: 19.0.0
resolution: {integrity: sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==}
peerDependencies:
- react: '>=16.6.0'
- react-dom: '>=16.6.0'
+ react: 19.0.0
+ react-dom: 19.0.0
- resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}
+ resolution: {integrity: sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==}
engines: {node: '>=0.10.0'}
@@ -10349,8 +10364,8 @@ packages:
resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==}
engines: {node: '>=v12.22.7'}
- resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==}
+ resolution: {integrity: sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==}
resolution: {integrity: sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==}
@@ -11094,7 +11109,7 @@ packages:
resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==}
peerDependencies:
- react: ^16.8.0 || ^17.0.0 || ^18.0.0
+ react: 19.0.0
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
@@ -11492,9 +11507,9 @@ packages:
resolution: {integrity: sha512-/BPMyLKJPtFEvVL0E9E9BTUM63MNyhPGlvxk1XjrfWTUlV+BR8jufjsovHzrtR6YNcBEcL7cMHovL1n9xHawEg==}
engines: {node: '>=12.7.0'}
peerDependencies:
- '@types/react': '>=16.8'
+ '@types/react': ^19.0.2
immer: '>=9.0.6'
- react: '>=16.8'
+ react: 19.0.0
peerDependenciesMeta:
'@types/react':
optional: true
@@ -11766,12 +11781,12 @@ snapshots:
'@babel/helper-string-parser': 7.25.9
'@babel/helper-validator-identifier': 7.25.9
dependencies:
chromatic: 11.20.2
filesize: 10.1.6
jsonfile: 6.1.0
- react-confetti: 6.2.2([email protected])
+ react-confetti: 6.2.2([email protected])
storybook: 8.4.7([email protected])
strip-ansi: 7.1.0
transitivePeerDependencies:
@@ -12570,11 +12585,11 @@ snapshots:
'@floating-ui/core': 1.6.4
'@floating-ui/utils': 0.2.8
dependencies:
'@floating-ui/dom': 1.6.11
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
'@floating-ui/[email protected]': {}
@@ -12661,11 +12676,11 @@ snapshots:
'@js-sdsl/[email protected]': {}
dependencies:
'@types/mdx': 2.0.13
- '@types/react': 18.3.12
- react: 18.3.1
+ '@types/react': 19.0.2
+ react: 19.0.0
'@microsoft/[email protected](@types/[email protected])':
dependencies:
@@ -12821,37 +12836,37 @@ snapshots:
'@protobufjs/[email protected]': {}
dependencies:
'@ant-design/fast-color': 2.0.6
'@babel/runtime': 7.25.0
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
'@rc-component/[email protected]':
dependencies:
'@babel/runtime': 7.26.0
dependencies:
'@babel/runtime': 7.24.7
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
'@babel/runtime': 7.26.0
- '@rc-component/portal': 1.1.2([email protected]([email protected]))([email protected])
+ '@rc-component/portal': 1.1.2([email protected]([email protected]))([email protected])
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
'@react-dnd/[email protected]': {}
@@ -13063,25 +13078,25 @@ snapshots:
storybook: 8.4.7([email protected])
ts-dedent: 2.2.0
dependencies:
- '@mdx-js/react': 3.1.0(@types/[email protected])([email protected])
+ '@mdx-js/react': 3.1.0(@types/[email protected])([email protected])
'@storybook/csf-plugin': 8.4.7([email protected]([email protected]))
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
storybook: 8.4.7([email protected])
ts-dedent: 2.2.0
transitivePeerDependencies:
- '@types/react'
dependencies:
'@storybook/addon-actions': 8.4.7([email protected]([email protected]))
'@storybook/addon-backgrounds': 8.4.7([email protected]([email protected]))
'@storybook/addon-controls': 8.4.7([email protected]([email protected]))
- '@storybook/addon-docs': 8.4.7(@types/[email protected])([email protected]([email protected]))
+ '@storybook/addon-docs': 8.4.7(@types/[email protected])([email protected]([email protected]))
'@storybook/addon-highlight': 8.4.7([email protected]([email protected]))
'@storybook/addon-measure': 8.4.7([email protected]([email protected]))
'@storybook/addon-outline': 8.4.7([email protected]([email protected]))
@@ -13106,14 +13121,14 @@ snapshots:
storybook: 8.4.7([email protected])
ts-dedent: 2.2.0
dependencies:
'@storybook/csf': 0.1.13
'@storybook/global': 5.0.0
storybook: 8.4.7([email protected])
ts-dedent: 2.2.0
optionalDependencies:
- react: 18.3.1
+ react: 19.0.0
dependencies:
@@ -13149,15 +13164,15 @@ snapshots:
- '@swc/helpers'
- webpack
dependencies:
'@storybook/csf': 0.1.13
storybook: 8.4.7([email protected])
ts-dedent: 2.2.0
optionalDependencies:
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
@@ -13237,10 +13252,10 @@ snapshots:
'@storybook/[email protected]': {}
dependencies:
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
@@ -13254,18 +13269,18 @@ snapshots:
'@storybook/[email protected]': {}
dependencies:
'@storybook/core-webpack': 8.4.7([email protected]([email protected]))
'@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0([email protected])([email protected](@swc/[email protected])([email protected]))
'@types/node': 22.10.2
'@types/semver': 7.5.8
find-up: 5.0.0
magic-string: 0.30.17
- react: 18.3.1
+ react: 19.0.0
react-docgen: 7.1.0
- react-dom: 18.3.1([email protected])
+ react-dom: 19.0.0([email protected])
resolve: 1.22.10
semver: 7.6.3
storybook: 8.4.7([email protected])
@@ -13299,20 +13314,20 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
storybook: 8.4.7([email protected])
dependencies:
'@types/node': 22.10.2
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
storybook: 8.4.7([email protected])
optionalDependencies:
typescript: 5.7.2
@@ -13325,16 +13340,16 @@ snapshots:
- uglify-js
- webpack-cli
dependencies:
'@storybook/components': 8.4.7([email protected]([email protected]))
'@storybook/global': 5.0.0
'@storybook/manager-api': 8.4.7([email protected]([email protected]))
'@storybook/preview-api': 8.4.7([email protected]([email protected]))
'@storybook/theming': 8.4.7([email protected]([email protected]))
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
storybook: 8.4.7([email protected])
optionalDependencies:
'@storybook/test': 8.4.7([email protected]([email protected]))
@@ -13445,15 +13460,15 @@ snapshots:
lodash: 4.17.21
redent: 3.0.0
dependencies:
'@babel/runtime': 7.26.0
'@testing-library/dom': 10.4.0
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
optionalDependencies:
- '@types/react': 18.3.12
- '@types/react-dom': 18.3.1
+ '@types/react': 19.0.2
+ '@types/react-dom': 19.0.2(@types/[email protected])
'@testing-library/[email protected](@testing-library/[email protected])':
dependencies:
@@ -13582,25 +13597,22 @@ snapshots:
'@types/[email protected]': {}
- '@types/[email protected]': {}
-
'@types/[email protected]': {}
- '@types/[email protected]':
dependencies:
- '@types/react': 18.3.12
+ '@types/react': 19.0.2
dependencies:
- '@types/react': 18.3.12
+ '@types/react': 19.0.2
dependencies:
- '@types/react': 18.3.12
+ '@types/react': 19.0.2
- '@types/[email protected]':
+ '@types/[email protected]':
dependencies:
- '@types/prop-types': 15.7.13
csstype: 3.1.3
'@types/[email protected]': {}
@@ -13765,10 +13777,10 @@ snapshots:
'@univerjs/[email protected]': {}
dependencies:
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
@@ -14083,13 +14095,13 @@ snapshots:
'@xtuc/[email protected]': {}
dependencies:
'@xyflow/system': 0.0.46
classcat: 5.0.5
- react: 18.3.1
- react-dom: 18.3.1([email protected])
- zustand: 4.5.4(@types/[email protected])([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
+ zustand: 4.5.4(@types/[email protected])([email protected])
transitivePeerDependencies:
- '@types/react'
- immer
@@ -18706,156 +18718,180 @@ snapshots:
dependencies:
quickselect: 3.0.0
dependencies:
'@babel/runtime': 7.25.4
- '@rc-component/portal': 1.1.2([email protected]([email protected]))([email protected])
+ '@rc-component/portal': 1.1.2([email protected]([email protected]))([email protected])
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
- '@babel/runtime': 7.24.7
- '@rc-component/trigger': 2.2.5([email protected]([email protected]))([email protected])
+ '@babel/runtime': 7.26.0
+ '@rc-component/trigger': 2.2.6([email protected]([email protected]))([email protected])
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
'@babel/runtime': 7.26.0
'@rc-component/mini-decimal': 1.1.0
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
'@babel/runtime': 7.25.0
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.26.0
+ classnames: 2.5.1
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
'@babel/runtime': 7.26.0
- '@rc-component/trigger': 2.2.5([email protected]([email protected]))([email protected])
+ '@rc-component/trigger': 2.2.6([email protected]([email protected]))([email protected])
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
'@babel/runtime': 7.25.4
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
'@babel/runtime': 7.26.0
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
'@babel/runtime': 7.25.4
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
'@babel/runtime': 7.26.0
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
'@babel/runtime': 7.26.0
- '@rc-component/trigger': 2.2.5([email protected]([email protected]))([email protected])
+ '@rc-component/trigger': 2.2.6([email protected]([email protected]))([email protected])
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
optionalDependencies:
dayjs: 1.11.13
dependencies:
'@babel/runtime': 7.24.7
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
resize-observer-polyfill: 1.5.1
dependencies:
- '@babel/runtime': 7.25.4
+ '@babel/runtime': 7.26.0
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
'@babel/runtime': 7.26.0
- '@rc-component/trigger': 2.2.5([email protected]([email protected]))([email protected])
+ '@rc-component/trigger': 2.2.6([email protected]([email protected]))([email protected])
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
'@babel/runtime': 7.25.4
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
'@babel/runtime': 7.24.7
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
react-is: 18.3.1
+ dependencies:
+ '@babel/runtime': 7.26.0
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
+ react-is: 18.3.1
+
+ dependencies:
+ '@babel/runtime': 7.26.0
+ classnames: 2.5.1
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
+
dependencies:
'@babel/runtime': 7.26.0
classnames: 2.5.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
@@ -18872,45 +18908,45 @@ snapshots:
transitivePeerDependencies:
- dnd-core
dependencies:
- react: 18.3.1
+ react: 19.0.0
tween-functions: 1.2.0
dependencies:
dnd-core: 16.0.1
dependencies:
dnd-core: 16.0.1
dnd-multi-backend: 8.1.2([email protected])
- react: 18.3.1
- react-dnd: 16.0.1(@types/[email protected])(@types/[email protected])([email protected])
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dnd: 16.0.1(@types/[email protected])(@types/[email protected])([email protected])
+ react-dom: 19.0.0([email protected])
dependencies:
- react: 18.3.1
- react-dnd: 16.0.1(@types/[email protected])(@types/[email protected])([email protected])
+ react: 19.0.0
+ react-dnd: 16.0.1(@types/[email protected])(@types/[email protected])([email protected])
dependencies:
'@react-dnd/invariant': 4.0.2
dnd-core: 16.0.1
dependencies:
'@react-dnd/invariant': 4.0.2
'@react-dnd/shallowequal': 4.0.2
dnd-core: 16.0.1
fast-deep-equal: 3.1.3
hoist-non-react-statics: 3.3.2
- react: 18.3.1
+ react: 19.0.0
optionalDependencies:
'@types/node': 22.10.5
- '@types/react': 18.3.12
+ '@types/react': 19.0.2
dependencies:
@@ -18931,39 +18967,38 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
- loose-envify: 1.4.0
- react: 18.3.1
- scheduler: 0.23.2
+ react: 19.0.0
+ scheduler: 0.25.0
dependencies:
clsx: 1.2.1
prop-types: 15.8.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
dependencies:
clsx: 2.1.1
fast-equals: 4.0.3
prop-types: 15.8.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
resize-observer-polyfill: 1.5.1
dependencies:
clsx: 2.1.1
fast-equals: 4.0.3
prop-types: 15.8.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
resize-observer-polyfill: 1.5.1
@@ -18972,17 +19007,17 @@ snapshots:
dependencies:
classnames: 2.5.1
immutability-helper: 3.1.1
lodash: 4.17.21
prop-types: 15.8.1
rdndmb-html5-to-touch: 8.1.2([email protected])
- react: 18.3.1
- react-dnd: 16.0.1(@types/[email protected])(@types/[email protected])([email protected])
+ react: 19.0.0
+ react-dnd: 16.0.1(@types/[email protected])(@types/[email protected])([email protected])
react-dnd-html5-backend: 16.0.1
react-dnd-touch-backend: 16.0.1
uuid: 9.0.1
transitivePeerDependencies:
@@ -18994,26 +19029,24 @@ snapshots:
dependencies:
prop-types: 15.8.1
- react: 18.3.1
+ react: 19.0.0
transitivePeerDependencies:
- react-dom
dependencies:
'@babel/runtime': 7.26.0
dom-helpers: 5.2.1
loose-envify: 1.4.0
prop-types: 15.8.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
+ react: 19.0.0
+ react-dom: 19.0.0([email protected])
- dependencies:
- loose-envify: 1.4.0
dependencies:
@@ -19361,9 +19394,7 @@ snapshots:
dependencies:
xmlchars: 2.2.0
- dependencies:
- loose-envify: 1.4.0
dependencies:
@@ -20173,9 +20204,9 @@ snapshots:
punycode: 1.4.1
qs: 6.13.1
dependencies:
- react: 18.3.1
+ react: 19.0.0
@@ -20682,11 +20713,11 @@ snapshots:
dependencies:
- use-sync-external-store: 1.2.0([email protected])
+ use-sync-external-store: 1.2.0([email protected])
optionalDependencies:
- '@types/react': 18.3.12
- react: 18.3.1
+ '@types/react': 19.0.2
+ react: 19.0.0