diff --git a/common/changes/@coze-arch/coze-design/fix-tooltip-update-warning_2026-07-31-18-30.json b/common/changes/@coze-arch/coze-design/fix-tooltip-update-warning_2026-07-31-18-30.json new file mode 100644 index 00000000..a76cffda --- /dev/null +++ b/common/changes/@coze-arch/coze-design/fix-tooltip-update-warning_2026-07-31-18-30.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "packageName": "@coze-arch/coze-design", + "comment": "fix the React update warning emitted when Tooltip opens", + "type": "patch" + } + ], + "packageName": "@coze-arch/coze-design", + "email": "22112659+win5do@users.noreply.github.com" +} diff --git a/common/config/subspaces/default/pnpm-lock.yaml b/common/config/subspaces/default/pnpm-lock.yaml index af276b28..7b80fd7d 100644 --- a/common/config/subspaces/default/pnpm-lock.yaml +++ b/common/config/subspaces/default/pnpm-lock.yaml @@ -411,8 +411,8 @@ importers: specifier: workspace:* version: link:../arco-illustration '@douyinfe/semi-ui': - specifier: ~2.72.3 - version: 2.72.3(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: ~2.85.0 + version: 2.85.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) ahooks: specifier: ^3.7.8 version: 3.8.5(react@18.2.0) @@ -719,8 +719,8 @@ importers: specifier: 2.61.0 version: 2.61.0(sass@1.89.0)(webpack@5.89.0(@swc/core@1.11.29(@swc/helpers@0.5.17))) '@douyinfe/semi-ui': - specifier: ~2.72.3 - version: 2.72.3(acorn@8.14.1)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: ~2.85.0 + version: 2.85.0(acorn@8.14.1)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@rsbuild/core': specifier: 1.1.13 version: 1.1.13 @@ -1533,8 +1533,8 @@ importers: specifier: workspace:* version: link:../editor '@douyinfe/semi-ui': - specifier: ~2.72.3 - version: 2.72.3(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: ~2.85.0 + version: 2.85.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@lezer/common': specifier: ^1.2.2 version: 1.2.3 @@ -4993,41 +4993,41 @@ packages: peerDependencies: react: '>=16.8.0' - '@douyinfe/semi-animation-react@2.72.3': - resolution: {integrity: sha512-OfThQVe3rP1v70Y4SSC5dkrLzNy7QkedbqfQvknqKB2onP7lGB6ePc3K3vACBxEKKL6dXzTlMs6XoR5SBD6iyA==} + '@douyinfe/semi-animation-react@2.85.0': + resolution: {integrity: sha512-EKTtYdmo7PpiSnVlM5YMWAR1hByK+hGd71SYPqStTC46h2w3iupG6HSsYcwpyHUqSQyoT2PLjtWbXA4b9/J5Aw==} - '@douyinfe/semi-animation-styled@2.72.3': - resolution: {integrity: sha512-ME6DE8UdBRHf00OCgxoA9jjZef/2c/QWpUy7vtkwUIfwENCanpU61apoLk5jprTLG7y/Zq8Vjm4O5h0eMep1pw==} + '@douyinfe/semi-animation-styled@2.85.0': + resolution: {integrity: sha512-KaNoJ/+mSaXph2uhMsXcZxYViEiifDGmbPxDUubqnQbIZK3KoYtVX2GczrvG45AE6Q+JwbPPkGF3qnNKmOtF3g==} - '@douyinfe/semi-animation@2.72.3': - resolution: {integrity: sha512-mZcYZHEIdgPN5cm+jZv8YLRWce3i7VrjZsytEue2DR0/EABFGfiMA4o91TanCTz5NrRZY+iNMyLMDeu6CrvQOQ==} + '@douyinfe/semi-animation@2.85.0': + resolution: {integrity: sha512-D9QRNCRLEJ9TUj22ZAm569+1devXMeuXWlfqXKEKT2cjccu3rAsxWA+8Gn6duVDz/wMA9TmRroI/U346FHibUw==} - '@douyinfe/semi-foundation@2.72.3': - resolution: {integrity: sha512-ZOMFVryVldh2vsPj7Gf7mE7kqpCngRiPw5N1Ltm2Qr0NGOpwuRir23PYpdMQAAWQUF1BIe3EPrdxrp+lIV9GDA==} + '@douyinfe/semi-foundation@2.85.0': + resolution: {integrity: sha512-JbdoMkr2uBwfvAQllhzNZbBxP2idrO1+ySz+9yNhjYw3aSKLI6OgicP9VaEldYEKPV5K6gbfGBsXqE+jFK4CMQ==} - '@douyinfe/semi-icons@2.72.3': - resolution: {integrity: sha512-ZsbHin7dJXX4JWpKykqJhH4hlNi9uTHKUi2ylpyMpIl08ROetojkDKj6TcTd9mRMILGpQHCH7hd5uYGo1xb3ew==} + '@douyinfe/semi-icons@2.85.0': + resolution: {integrity: sha512-d3sXTdwP6DUOLxhPUUbrT+T04G4KwiD4CK62MVFQj4xYVqDkH+Kvt4u6gz3kohLtspTmfug8ucRjYJMWUuM9GQ==} peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react: '>=16.0.0' - '@douyinfe/semi-illustrations@2.72.3': - resolution: {integrity: sha512-jfsH/4TogOFQ5dWUdm6X6fVLQzGTjBFVHRyiqSrUnLWVuSqQaUtMRJguxEtcFN9D+fjdvG6sToqTHOygQsAp8Q==} + '@douyinfe/semi-illustrations@2.85.0': + resolution: {integrity: sha512-j+CWcFFCJCc+yD9H4dcZjcxYz0G9uYoF5Klkrx3J7Y6igQcG0AOaLc3pJQBIEdVbfCyuWK9L/mZYINkb3mU7qQ==} peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react: '>=16.0.0' - '@douyinfe/semi-json-viewer-core@2.72.3': - resolution: {integrity: sha512-nzHqlTjS8tyFgfrlAVxCqV4P82JYoUw+bmVs5/05/65vLKLVo5KnDn6VGUfRzFcXJ68d4vMWv5qcrEG/E2aG+Q==} + '@douyinfe/semi-json-viewer-core@2.85.0': + resolution: {integrity: sha512-j5t8mvZTgCTEMIroUOXZe4LJU8LVKFuaJluOBcuBpDOzjPa+z/LhNflbjB7XoV7IHq2EPP6mRtzS8uDZAwcPfQ==} '@douyinfe/semi-rspack-plugin@2.61.0': resolution: {integrity: sha512-OlE7vUMbJa87aTao8DW76aVoOb1vsr8S8pngReO9K2aqKJubF8/BwqwXmIzNb4MTHDkwMu2SizweJGLUw8K8Sw==} peerDependencies: webpack: ^5 - '@douyinfe/semi-theme-default@2.72.3': - resolution: {integrity: sha512-qCR5OCztuIWyLhntcj61kXp02dZCKC4H/12p394rGOkpie8E/MkBQMFvVxFPsasuN3MWWdUNefYsERe4cjXuhw==} + '@douyinfe/semi-theme-default@2.85.0': + resolution: {integrity: sha512-IZ2iJS91Ihp2WEXiBRnHbAE2ddtrNc/ES5w9PUiMONWLqw0GfHDISp3OoKHkAYYbJ5GKrih/s4nxg0ZRFbF/Lw==} - '@douyinfe/semi-ui@2.72.3': - resolution: {integrity: sha512-7QsusUkzD7gDST3dEPLq1jvaderR8d9RM/Y1h31weZUM1DBVCUIVGDYW6oVFsUKzMAPdeOlTvnFJmPlEL+7k6g==} + '@douyinfe/semi-ui@2.85.0': + resolution: {integrity: sha512-aBX0LLY8ZC/ev5kzikYUdx1r5U0cZkXPVyeS4vtapwLEiMEx9RfRP9Xspvn59XkTB7G4qRm64ssLWCD23Pomxw==} peerDependencies: react: '>=16.0.0' react-dom: '>=16.0.0' @@ -17951,7 +17951,7 @@ snapshots: '@babel/core': 7.26.10 '@babel/helper-compilation-targets': 7.26.5 '@babel/helper-plugin-utils': 7.26.5 - debug: 4.4.0 + debug: 4.4.3 lodash.debounce: 4.0.8 resolve: 1.22.10 semver: 6.3.1 @@ -17963,7 +17963,7 @@ snapshots: '@babel/core': 7.26.10 '@babel/helper-compilation-targets': 7.27.2 '@babel/helper-plugin-utils': 7.26.5 - debug: 4.4.0 + debug: 4.4.3 lodash.debounce: 4.0.8 resolve: 1.22.10 transitivePeerDependencies: @@ -19377,7 +19377,7 @@ snapshots: '@babel/parser': 7.27.3 '@babel/template': 7.27.2 '@babel/types': 7.27.3 - debug: 4.4.0 + debug: 4.4.3 globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -19670,22 +19670,22 @@ snapshots: react: 18.2.0 tslib: 2.8.1 - '@douyinfe/semi-animation-react@2.72.3': + '@douyinfe/semi-animation-react@2.85.0': dependencies: - '@douyinfe/semi-animation': 2.72.3 - '@douyinfe/semi-animation-styled': 2.72.3 + '@douyinfe/semi-animation': 2.85.0 + '@douyinfe/semi-animation-styled': 2.85.0 classnames: 2.5.1 - '@douyinfe/semi-animation-styled@2.72.3': {} + '@douyinfe/semi-animation-styled@2.85.0': {} - '@douyinfe/semi-animation@2.72.3': + '@douyinfe/semi-animation@2.85.0': dependencies: bezier-easing: 2.1.0 - '@douyinfe/semi-foundation@2.72.3': + '@douyinfe/semi-foundation@2.85.0': dependencies: - '@douyinfe/semi-animation': 2.72.3 - '@douyinfe/semi-json-viewer-core': 2.72.3 + '@douyinfe/semi-animation': 2.85.0 + '@douyinfe/semi-json-viewer-core': 2.85.0 '@mdx-js/mdx': 3.1.0 async-validator: 3.5.2 classnames: 2.5.1 @@ -19702,10 +19702,10 @@ snapshots: - acorn - supports-color - '@douyinfe/semi-foundation@2.72.3(acorn@8.14.1)': + '@douyinfe/semi-foundation@2.85.0(acorn@8.14.1)': dependencies: - '@douyinfe/semi-animation': 2.72.3 - '@douyinfe/semi-json-viewer-core': 2.72.3 + '@douyinfe/semi-animation': 2.85.0 + '@douyinfe/semi-json-viewer-core': 2.85.0 '@mdx-js/mdx': 3.1.0(acorn@8.14.1) async-validator: 3.5.2 classnames: 2.5.1 @@ -19722,16 +19722,16 @@ snapshots: - acorn - supports-color - '@douyinfe/semi-icons@2.72.3(react@18.2.0)': + '@douyinfe/semi-icons@2.85.0(react@18.2.0)': dependencies: classnames: 2.5.1 react: 18.2.0 - '@douyinfe/semi-illustrations@2.72.3(react@18.2.0)': + '@douyinfe/semi-illustrations@2.85.0(react@18.2.0)': dependencies: react: 18.2.0 - '@douyinfe/semi-json-viewer-core@2.72.3': + '@douyinfe/semi-json-viewer-core@2.85.0': dependencies: jsonc-parser: 3.3.1 @@ -19749,19 +19749,19 @@ snapshots: - sass - supports-color - '@douyinfe/semi-theme-default@2.72.3': {} + '@douyinfe/semi-theme-default@2.85.0': {} - '@douyinfe/semi-ui@2.72.3(acorn@8.14.1)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@douyinfe/semi-ui@2.85.0(acorn@8.14.1)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@dnd-kit/core': 6.3.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@dnd-kit/sortable': 7.0.2(@dnd-kit/core@6.3.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react@18.2.0) '@dnd-kit/utilities': 3.2.2(react@18.2.0) - '@douyinfe/semi-animation': 2.72.3 - '@douyinfe/semi-animation-react': 2.72.3 - '@douyinfe/semi-foundation': 2.72.3(acorn@8.14.1) - '@douyinfe/semi-icons': 2.72.3(react@18.2.0) - '@douyinfe/semi-illustrations': 2.72.3(react@18.2.0) - '@douyinfe/semi-theme-default': 2.72.3 + '@douyinfe/semi-animation': 2.85.0 + '@douyinfe/semi-animation-react': 2.85.0 + '@douyinfe/semi-foundation': 2.85.0(acorn@8.14.1) + '@douyinfe/semi-icons': 2.85.0(react@18.2.0) + '@douyinfe/semi-illustrations': 2.85.0(react@18.2.0) + '@douyinfe/semi-theme-default': 2.85.0 async-validator: 3.5.2 classnames: 2.5.1 copy-text-to-clipboard: 2.2.0 @@ -19781,17 +19781,17 @@ snapshots: - acorn - supports-color - '@douyinfe/semi-ui@2.72.3(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@douyinfe/semi-ui@2.85.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@dnd-kit/core': 6.3.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@dnd-kit/sortable': 7.0.2(@dnd-kit/core@6.3.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react@18.2.0) '@dnd-kit/utilities': 3.2.2(react@18.2.0) - '@douyinfe/semi-animation': 2.72.3 - '@douyinfe/semi-animation-react': 2.72.3 - '@douyinfe/semi-foundation': 2.72.3 - '@douyinfe/semi-icons': 2.72.3(react@18.2.0) - '@douyinfe/semi-illustrations': 2.72.3(react@18.2.0) - '@douyinfe/semi-theme-default': 2.72.3 + '@douyinfe/semi-animation': 2.85.0 + '@douyinfe/semi-animation-react': 2.85.0 + '@douyinfe/semi-foundation': 2.85.0 + '@douyinfe/semi-icons': 2.85.0(react@18.2.0) + '@douyinfe/semi-illustrations': 2.85.0(react@18.2.0) + '@douyinfe/semi-theme-default': 2.85.0 async-validator: 3.5.2 classnames: 2.5.1 copy-text-to-clipboard: 2.2.0 @@ -20109,7 +20109,7 @@ snapshots: '@eslint/config-array@0.18.0': dependencies: '@eslint/object-schema': 2.1.6 - debug: 4.4.0 + debug: 4.4.3 minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -23992,7 +23992,7 @@ snapshots: '@typescript-eslint/scope-manager': 5.38.1 '@typescript-eslint/type-utils': 5.38.1(eslint@9.14.0(jiti@2.6.1))(typescript@5.8.2) '@typescript-eslint/utils': 5.38.1(eslint@9.14.0(jiti@2.6.1))(typescript@5.8.2) - debug: 4.4.0 + debug: 4.4.3 eslint: 9.14.0(jiti@2.6.1) ignore: 5.3.2 regexpp: 3.2.0 @@ -24010,7 +24010,7 @@ snapshots: '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/type-utils': 5.62.0(eslint@9.14.0(jiti@2.6.1))(typescript@5.8.2) '@typescript-eslint/utils': 5.62.0(eslint@9.14.0(jiti@2.6.1))(typescript@5.8.2) - debug: 4.4.0 + debug: 4.4.3 eslint: 9.14.0(jiti@2.6.1) graphemer: 1.4.0 ignore: 5.3.2 @@ -24077,7 +24077,7 @@ snapshots: '@typescript-eslint/scope-manager': 5.38.1 '@typescript-eslint/types': 5.38.1 '@typescript-eslint/typescript-estree': 5.38.1(typescript@5.8.2) - debug: 4.4.0 + debug: 4.4.3 eslint: 9.14.0(jiti@2.6.1) optionalDependencies: typescript: 5.8.2 @@ -24089,7 +24089,7 @@ snapshots: '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.8.2) - debug: 4.4.0 + debug: 4.4.3 eslint: 9.14.0(jiti@2.6.1) optionalDependencies: typescript: 5.8.2 @@ -24114,7 +24114,7 @@ snapshots: '@typescript-eslint/types': 8.34.0 '@typescript-eslint/typescript-estree': 8.34.0(typescript@5.8.2) '@typescript-eslint/visitor-keys': 8.34.0 - debug: 4.4.0 + debug: 4.4.3 eslint: 9.14.0(jiti@2.6.1) typescript: 5.8.2 transitivePeerDependencies: @@ -24124,7 +24124,7 @@ snapshots: dependencies: '@typescript-eslint/tsconfig-utils': 8.34.0(typescript@5.8.2) '@typescript-eslint/types': 8.34.0 - debug: 4.4.0 + debug: 4.4.3 typescript: 5.8.2 transitivePeerDependencies: - supports-color @@ -24157,7 +24157,7 @@ snapshots: dependencies: '@typescript-eslint/typescript-estree': 5.38.1(typescript@5.8.2) '@typescript-eslint/utils': 5.38.1(eslint@9.14.0(jiti@2.6.1))(typescript@5.8.2) - debug: 4.4.0 + debug: 4.4.3 eslint: 9.14.0(jiti@2.6.1) tsutils: 3.21.0(typescript@5.8.2) optionalDependencies: @@ -24169,7 +24169,7 @@ snapshots: dependencies: '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.8.2) '@typescript-eslint/utils': 5.62.0(eslint@9.14.0(jiti@2.6.1))(typescript@5.8.2) - debug: 4.4.0 + debug: 4.4.3 eslint: 9.14.0(jiti@2.6.1) tsutils: 3.21.0(typescript@5.8.2) optionalDependencies: @@ -24192,7 +24192,7 @@ snapshots: dependencies: '@typescript-eslint/typescript-estree': 8.34.0(typescript@5.8.2) '@typescript-eslint/utils': 8.34.0(eslint@9.14.0(jiti@2.6.1))(typescript@5.8.2) - debug: 4.4.0 + debug: 4.4.3 eslint: 9.14.0(jiti@2.6.1) ts-api-utils: 2.1.0(typescript@5.8.2) typescript: 5.8.2 @@ -24211,7 +24211,7 @@ snapshots: dependencies: '@typescript-eslint/types': 5.38.1 '@typescript-eslint/visitor-keys': 5.38.1 - debug: 4.4.0 + debug: 4.4.3 globby: 11.1.0 is-glob: 4.0.3 semver: 7.7.1 @@ -24225,7 +24225,7 @@ snapshots: dependencies: '@typescript-eslint/types': 5.62.0 '@typescript-eslint/visitor-keys': 5.62.0 - debug: 4.4.0 + debug: 4.4.3 globby: 11.1.0 is-glob: 4.0.3 semver: 7.7.1 @@ -24239,7 +24239,7 @@ snapshots: dependencies: '@typescript-eslint/types': 8.27.0 '@typescript-eslint/visitor-keys': 8.27.0 - debug: 4.4.0 + debug: 4.4.3 fast-glob: 3.3.3 is-glob: 4.0.3 minimatch: 9.0.5 @@ -24255,7 +24255,7 @@ snapshots: '@typescript-eslint/tsconfig-utils': 8.34.0(typescript@5.8.2) '@typescript-eslint/types': 8.34.0 '@typescript-eslint/visitor-keys': 8.34.0 - debug: 4.4.0 + debug: 4.4.3 fast-glob: 3.3.3 is-glob: 4.0.3 minimatch: 9.0.5 @@ -24839,7 +24839,7 @@ snapshots: agent-base@6.0.2: dependencies: - debug: 4.4.0 + debug: 4.4.3 transitivePeerDependencies: - supports-color @@ -25330,7 +25330,7 @@ snapshots: dependencies: bytes: 3.1.2 content-type: 1.0.5 - debug: 4.4.0 + debug: 4.4.3 http-errors: 2.0.0 iconv-lite: 0.5.2 on-finished: 2.4.1 @@ -26372,7 +26372,7 @@ snapshots: detect-port@1.6.1: dependencies: address: 1.2.2 - debug: 4.4.0 + debug: 4.4.3 transitivePeerDependencies: - supports-color @@ -26799,7 +26799,7 @@ snapshots: esbuild-register@3.6.0(esbuild@0.18.20): dependencies: - debug: 4.4.0 + debug: 4.4.3 esbuild: 0.18.20 transitivePeerDependencies: - supports-color @@ -27704,7 +27704,7 @@ snapshots: finalhandler@2.1.0: dependencies: - debug: 4.4.0 + debug: 4.4.3 encodeurl: 2.0.0 escape-html: 1.0.3 on-finished: 2.4.1 @@ -28496,14 +28496,14 @@ snapshots: https-proxy-agent@4.0.0: dependencies: agent-base: 5.1.1 - debug: 4.4.0 + debug: 4.4.3 transitivePeerDependencies: - supports-color https-proxy-agent@5.0.1: dependencies: agent-base: 6.0.2 - debug: 4.4.0 + debug: 4.4.3 transitivePeerDependencies: - supports-color @@ -30456,7 +30456,7 @@ snapshots: micromark@3.2.0: dependencies: '@types/debug': 4.1.12 - debug: 4.4.0 + debug: 4.4.3 decode-named-character-reference: 1.1.0 micromark-core-commonmark: 1.1.0 micromark-factory-space: 1.1.0 @@ -30478,7 +30478,7 @@ snapshots: micromark@4.0.2: dependencies: '@types/debug': 4.1.12 - debug: 4.4.0 + debug: 4.4.3 decode-named-character-reference: 1.1.0 devlop: 1.1.0 micromark-core-commonmark: 2.0.3 @@ -31868,7 +31868,7 @@ snapshots: puppeteer-core@2.1.1: dependencies: '@types/mime-types': 2.1.4 - debug: 4.4.0 + debug: 4.4.3 extract-zip: 1.7.0 https-proxy-agent: 4.0.0 mime: 2.6.0 @@ -33106,7 +33106,7 @@ snapshots: send@1.1.0: dependencies: - debug: 4.4.0 + debug: 4.4.3 destroy: 1.2.0 encodeurl: 2.0.0 escape-html: 1.0.3 @@ -33872,7 +33872,7 @@ snapshots: dependencies: '@types/sax': 1.2.7 commander: 12.1.0 - debug: 4.4.0 + debug: 4.4.3 glob: 11.0.2 sax: 1.4.1 svg-pathdata: 7.2.0 @@ -34880,7 +34880,7 @@ snapshots: vite-node@3.0.9(@types/node@22.13.13)(jiti@2.6.1)(less@4.3.0)(sass-embedded@1.89.2)(sass@1.89.0)(sugarss@2.0.0)(terser@5.39.2)(tsx@4.19.3)(yaml@2.8.0): dependencies: cac: 6.7.14 - debug: 4.4.0 + debug: 4.4.3 es-module-lexer: 1.6.0 pathe: 2.0.3 vite: 6.3.5(@types/node@22.13.13)(jiti@2.6.1)(less@4.3.0)(sass-embedded@1.89.2)(sass@1.89.0)(sugarss@2.0.0)(terser@5.39.2)(tsx@4.19.3)(yaml@2.8.0) diff --git a/packages/components/coze-design/package.json b/packages/components/coze-design/package.json index ae783e4f..ac96cd62 100644 --- a/packages/components/coze-design/package.json +++ b/packages/components/coze-design/package.json @@ -60,7 +60,7 @@ "dependencies": { "@coze-arch/arco-icon": "workspace:*", "@coze-arch/arco-illustration": "workspace:*", - "@douyinfe/semi-ui": "~2.72.3", + "@douyinfe/semi-ui": "~2.85.0", "ahooks": "^3.7.8", "class-variance-authority": "^0.7.0", "clsx": "^1.2.1", diff --git a/packages/components/coze-design/src/components/tooltip/__tests__/tooltip.test.tsx b/packages/components/coze-design/src/components/tooltip/__tests__/tooltip.test.tsx index 12f42a4c..99b82569 100644 --- a/packages/components/coze-design/src/components/tooltip/__tests__/tooltip.test.tsx +++ b/packages/components/coze-design/src/components/tooltip/__tests__/tooltip.test.tsx @@ -4,6 +4,7 @@ import '@testing-library/jest-dom'; import React from 'react'; +import { vi } from 'vitest'; import { fireEvent, render, screen, waitFor } from '@testing-library/react'; import { Tooltip } from '@/components/tooltip'; @@ -11,6 +12,9 @@ import { Button } from '@/components/button'; describe('Tooltip', () => { const contentLabel = 'This is a tooltip.'; it('should show and hide', async () => { + const consoleError = vi + .spyOn(console, 'error') + .mockImplementation(() => {}); render( @@ -29,5 +33,13 @@ describe('Tooltip', () => { tooltipHide.closest('.semi-tooltip-animation-hide'), ).toBeInTheDocument(); }); + expect( + consoleError.mock.calls.some(([message]) => + String(message).includes( + 'An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function', + ), + ), + ).toBe(false); + consoleError.mockRestore(); }); }); diff --git a/packages/components/docs/package.json b/packages/components/docs/package.json index 05c5bc39..5fd5e9e1 100644 --- a/packages/components/docs/package.json +++ b/packages/components/docs/package.json @@ -37,7 +37,7 @@ "@coze-arch/vitest-config": "workspace:*", "@csstools/postcss-is-pseudo-class": "^4.0.5", "@douyinfe/semi-rspack-plugin": "2.61.0", - "@douyinfe/semi-ui": "~2.72.3", + "@douyinfe/semi-ui": "~2.85.0", "@rsbuild/core": "1.1.13", "@rsbuild/plugin-sass": "0.7.1", "@rspress/core": "^1.42.0", diff --git a/packages/text-editor/dev/package.json b/packages/text-editor/dev/package.json index 7ef8fd0d..f8281f92 100644 --- a/packages/text-editor/dev/package.json +++ b/packages/text-editor/dev/package.json @@ -17,7 +17,7 @@ "@codemirror/state": "^6.4.1", "@codemirror/view": "^6.26.1", "@coze-editor/editor": "workspace:*", - "@douyinfe/semi-ui": "~2.72.3", + "@douyinfe/semi-ui": "~2.85.0", "@lezer/common": "^1.2.2", "@radix-ui/react-avatar": "^1.1.2", "@radix-ui/react-context-menu": "^2.2.3",