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 univer icons (#7153)

白熱120ad9a92649
diff --git a/.github/workflows/ci-quality-checks.yml b/.github/workflows/ci-quality-checks.yml
index 36d912c93f..b2f3cda3f1 100644
--- a/.github/workflows/ci-quality-checks.yml
+++ b/.github/workflows/ci-quality-checks.yml
@@ -25,9 +25,15 @@ env:
TURBO_TELEMETRY_DISABLED: '1'
jobs:
- test:
+ test-shard:
+ name: test shard (${{ matrix.shard-index }}/${{ matrix.shard-total }})
if: github.repository == 'dream-num/univer' && (github.event_name != 'pull_request' || !github.event.pull_request.draft)
runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ shard-index: [1, 2, 3, 4]
+ shard-total: [4]
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
@@ -42,13 +48,31 @@ jobs:
uses: ./.github/actions/setup-node
- name: 🩺 Run test
- run: pnpm coverage
+ run: node --experimental-strip-types ./scripts/coverage-shard.mts --shard-index=${{ matrix.shard-index }} --shard-total=${{ matrix.shard-total }} --concurrency=2
- name: 🧬 Report coverage
uses: codecov/codecov-action@v7
+ with:
+ name: unit-${{ matrix.shard-index }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
+ test:
+ name: test
+ if: always() && github.repository == 'dream-num/univer' && (github.event_name != 'pull_request' || !github.event.pull_request.draft)
+ runs-on: ubuntu-latest
+ needs: test-shard
+
+ steps:
+ - name: Check test shard results
+ run: |
+ if [ "${{ needs.test-shard.result }}" != "success" ]; then
+ echo "One or more test shards failed: ${{ needs.test-shard.result }}"
+ exit 1
+ fi
+
+ echo "All test shards passed"
+
eslint:
if: github.repository == 'dream-num/univer' && (github.event_name != 'pull_request' || !github.event.pull_request.draft)
runs-on: ubuntu-latest
diff --git a/common/debugger/package.json b/common/debugger/package.json
index 3ec534b102..4e028d3029 100644
--- a/common/debugger/package.json
+++ b/common/debugger/package.json
@@ -35,7 +35,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/docs-drawing-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/mockdata": "workspace:*",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-drawing-ui": "workspace:*",
diff --git a/common/shared/package.json b/common/shared/package.json
index 6fb3a4cd5d..395e379054 100644
--- a/common/shared/package.json
+++ b/common/shared/package.json
@@ -32,7 +32,7 @@
},
"dependencies": {
"@tsdown/css": "^0.22.3",
- "@typescript-eslint/parser": "^8.61.1",
+ "@typescript-eslint/parser": "^8.59.2",
"@vitest/coverage-istanbul": "^4.1.9",
"autoprefixer": "^10.5.0",
"eslint-plugin-better-tailwindcss": "^4.6.0",
@@ -51,8 +51,8 @@
"vitest": "^4.1.9"
},
"devDependencies": {
- "@univerjs/icons": "1.12.0",
- "@univerjs/icons-svg": "^1.12.0",
+ "@univerjs/icons": "1.13.0",
+ "@univerjs/icons-svg": "^1.13.0",
"typescript": "^6.0.3",
"vue-tsc": "^3.3.5"
}
diff --git a/common/shared/vitest/index.ts b/common/shared/vitest/index.ts
index 58e6519abb..c1e8c1284e 100644
--- a/common/shared/vitest/index.ts
+++ b/common/shared/vitest/index.ts
@@ -1,8 +1,10 @@
import { createRequire } from 'node:module';
+import process from 'node:process';
import { defineConfig, mergeConfig } from 'vitest/config';
const require = createRequire(import.meta.url);
const coverageProviderModule = require.resolve('@vitest/coverage-istanbul');
+const isCI = process.env.CI === 'true';
export default function createConfig(options?: any) {
return defineConfig(mergeConfig({
@@ -16,7 +18,7 @@ export default function createConfig(options?: any) {
},
environment: 'happy-dom',
coverage: {
- reporter: ['html', 'json'],
+ reporter: isCI ? ['json', 'lcovonly'] : ['html'],
provider: 'custom',
// `customProviderModule` expects a file path. Using a bare
// package name makes Vitest resolve it as a relative path from
diff --git a/examples/package.json b/examples/package.json
index 2cffe4f0e0..4c3a1d2bcb 100644
--- a/examples/package.json
+++ b/examples/package.json
@@ -36,7 +36,7 @@
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/find-replace": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/mockdata": "workspace:*",
"@univerjs/network": "workspace:*",
"@univerjs/preset-docs-core": "workspace:*",
diff --git a/package.json b/package.json
index 2e0f4df2a7..d86b5d2294 100644
--- a/package.json
+++ b/package.json
@@ -58,8 +58,8 @@
},
"devDependencies": {
"@antfu/eslint-config": "^9.0.0",
- "@commitlint/cli": "^21.0.2",
- "@commitlint/config-conventional": "^21.0.2",
+ "@commitlint/cli": "^21.1.0",
+ "@commitlint/config-conventional": "^21.1.0",
"@eslint-react/eslint-plugin": "^5.9.1",
"@eslint/compat": "^2.1.0",
"@playwright/test": "^1.57.0",
@@ -68,7 +68,7 @@
"@types/react-dom": "19.2.3",
"@univerjs-infra/shared": "workspace:*",
"@univerjs/design": "workspace:*",
- "@univerkit/verso": "1.0.0-alpha.2",
+ "@univerkit/verso": "1.0.0-beta.0",
"eslint": "^10.5.0",
"eslint-plugin-format": "^2.0.1",
"eslint-plugin-react": "^7.37.5",
@@ -76,12 +76,12 @@
"eslint-plugin-react-refresh": "^0.5.3",
"husky": "^9.1.7",
"lint-staged": "^17.0.8",
- "posthog-node": "^5.38.2",
+ "posthog-node": "^5.38.5",
"react": "19.2.7",
"react-dom": "19.2.7",
"serve": "^14.2.6",
"tailwindcss": "3.4.18",
- "turbo": "^2.9.18",
+ "turbo": "^2.10.0",
"typescript": "^6.0.3",
"vitest": "^4.1.9"
},
diff --git a/packages/action-recorder/package.json b/packages/action-recorder/package.json
index c4ecacc5b7..7613f75417 100644
--- a/packages/action-recorder/package.json
+++ b/packages/action-recorder/package.json
@@ -76,7 +76,7 @@
"dependencies": {
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-filter": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
diff --git a/packages/design/package.json b/packages/design/package.json
index eef3ea82e7..9b38beb126 100644
--- a/packages/design/package.json
+++ b/packages/design/package.json
@@ -81,7 +81,7 @@
"@radix-ui/react-popover": "^1.1.16",
"@radix-ui/react-separator": "^1.1.9",
"@radix-ui/react-slot": "^1.2.5",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"react-transition-group": "^4.4.5",
diff --git a/packages/docs-hyper-link-ui/package.json b/packages/docs-hyper-link-ui/package.json
index 2bbaa47907..cd15064baf 100644
--- a/packages/docs-hyper-link-ui/package.json
+++ b/packages/docs-hyper-link-ui/package.json
@@ -80,7 +80,7 @@
"@univerjs/docs-hyper-link": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/ui": "workspace:*"
},
"devDependencies": {
diff --git a/packages/docs-quick-insert-ui/package.json b/packages/docs-quick-insert-ui/package.json
index e9d873c095..18282d548b 100644
--- a/packages/docs-quick-insert-ui/package.json
+++ b/packages/docs-quick-insert-ui/package.json
@@ -83,7 +83,7 @@
"@univerjs/drawing": "workspace:*",
"@univerjs/drawing-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/ui": "workspace:*"
},
"devDependencies": {
diff --git a/packages/docs-thread-comment-ui/package.json b/packages/docs-thread-comment-ui/package.json
index 6cf89acb5d..038dd9b2ac 100644
--- a/packages/docs-thread-comment-ui/package.json
+++ b/packages/docs-thread-comment-ui/package.json
@@ -78,7 +78,7 @@
"@univerjs/docs": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/thread-comment": "workspace:*",
"@univerjs/thread-comment-ui": "workspace:*",
"@univerjs/ui": "workspace:*"
diff --git a/packages/docs-ui/package.json b/packages/docs-ui/package.json
index bbdfd5f9bf..799bd2933f 100644
--- a/packages/docs-ui/package.json
+++ b/packages/docs-ui/package.json
@@ -90,7 +90,7 @@
"@univerjs/docs": "workspace:*",
"@univerjs/drawing": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/ui": "workspace:*"
},
"devDependencies": {
diff --git a/packages/drawing-ui/package.json b/packages/drawing-ui/package.json
index 839c71ebd3..3334cb9fc9 100644
--- a/packages/drawing-ui/package.json
+++ b/packages/drawing-ui/package.json
@@ -78,7 +78,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/drawing": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/ui": "workspace:*"
},
"devDependencies": {
diff --git a/packages/find-replace/package.json b/packages/find-replace/package.json
index 1c326a30f2..7d8ecf173a 100644
--- a/packages/find-replace/package.json
+++ b/packages/find-replace/package.json
@@ -77,7 +77,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/ui": "workspace:*"
},
"devDependencies": {
diff --git a/packages/sheets-conditional-formatting-ui/package.json b/packages/sheets-conditional-formatting-ui/package.json
index fb99e6f0b7..2f7a42fbaa 100644
--- a/packages/sheets-conditional-formatting-ui/package.json
+++ b/packages/sheets-conditional-formatting-ui/package.json
@@ -78,7 +78,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-conditional-formatting": "workspace:*",
"@univerjs/sheets-formula": "workspace:*",
diff --git a/packages/sheets-conditional-formatting/package.json b/packages/sheets-conditional-formatting/package.json
index 6badb01d0f..c04bb68af2 100644
--- a/packages/sheets-conditional-formatting/package.json
+++ b/packages/sheets-conditional-formatting/package.json
@@ -92,7 +92,7 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
- "@univerjs/icons-svg": "^1.12.0",
+ "@univerjs/icons-svg": "^1.13.0",
"@univerjs/sheets-formula": "workspace:*",
"rxjs": "^7.8.2",
"typescript": "^6.0.3",
diff --git a/packages/sheets-crosshair-highlight/package.json b/packages/sheets-crosshair-highlight/package.json
index 3765901cc7..b93f343823 100644
--- a/packages/sheets-crosshair-highlight/package.json
+++ b/packages/sheets-crosshair-highlight/package.json
@@ -88,7 +88,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
"@univerjs/ui": "workspace:*"
diff --git a/packages/sheets-data-validation-ui/package.json b/packages/sheets-data-validation-ui/package.json
index fc8be973a6..3c72c0399d 100644
--- a/packages/sheets-data-validation-ui/package.json
+++ b/packages/sheets-data-validation-ui/package.json
@@ -80,7 +80,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-data-validation": "workspace:*",
"@univerjs/sheets-formula-ui": "workspace:*",
diff --git a/packages/sheets-filter-ui/package.json b/packages/sheets-filter-ui/package.json
index 31b218996c..3b6c1100a4 100644
--- a/packages/sheets-filter-ui/package.json
+++ b/packages/sheets-filter-ui/package.json
@@ -77,7 +77,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/rpc": "workspace:*",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-filter": "workspace:*",
diff --git a/packages/sheets-formula-ui/package.json b/packages/sheets-formula-ui/package.json
index 04fb5942a4..74cd2f433d 100644
--- a/packages/sheets-formula-ui/package.json
+++ b/packages/sheets-formula-ui/package.json
@@ -91,7 +91,7 @@
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-formula": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
diff --git a/packages/sheets-formula-ui/src/views/formula-editor/help-function/HelpFunction.tsx b/packages/sheets-formula-ui/src/views/formula-editor/help-function/HelpFunction.tsx
index 8c08e1ad3b..01dd5224e3 100644
--- a/packages/sheets-formula-ui/src/views/formula-editor/help-function/HelpFunction.tsx
+++ b/packages/sheets-formula-ui/src/views/formula-editor/help-function/HelpFunction.tsx
@@ -19,7 +19,7 @@ import type { IFunctionParam } from '@univerjs/engine-formula';
import type { LocaleKey } from '../../../locale/types';
import { LocaleService, noop } from '@univerjs/core';
import { borderClassName, borderTopClassName, clsx, scrollbarClassName } from '@univerjs/design';
-import { CloseIcon, MoreIcon } from '@univerjs/icons';
+import { CloseIcon, MoreRightIcon } from '@univerjs/icons';
import { IEditorBridgeService } from '@univerjs/sheets-ui';
import { RectPopup, useDependency, useEvent, useObservable } from '@univerjs/ui';
import { useState } from 'react';
@@ -160,7 +160,7 @@ export function HelpFunction(props: IHelpFunctionProps) {
style={{ transform: contentVisible ? 'rotateZ(-90deg)' : 'rotateZ(90deg)' }}
onClick={() => setContentVisible(!contentVisible)}
>
- <MoreIcon />
+ <MoreRightIcon />
</div>
<div
className={`
diff --git a/packages/sheets-hyper-link-ui/package.json b/packages/sheets-hyper-link-ui/package.json
index d27291ac0c..2126f9b1cc 100644
--- a/packages/sheets-hyper-link-ui/package.json
+++ b/packages/sheets-hyper-link-ui/package.json
@@ -91,7 +91,7 @@
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-data-validation": "workspace:*",
"@univerjs/sheets-formula-ui": "workspace:*",
diff --git a/packages/sheets-note-ui/package.json b/packages/sheets-note-ui/package.json
index 97912e369f..3723d74eae 100644
--- a/packages/sheets-note-ui/package.json
+++ b/packages/sheets-note-ui/package.json
@@ -74,7 +74,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-note": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
diff --git a/packages/sheets-numfmt-ui/package.json b/packages/sheets-numfmt-ui/package.json
index 64c4595ade..c8c7ce5a6f 100644
--- a/packages/sheets-numfmt-ui/package.json
+++ b/packages/sheets-numfmt-ui/package.json
@@ -78,7 +78,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-numfmt": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
diff --git a/packages/sheets-sort-ui/package.json b/packages/sheets-sort-ui/package.json
index e8984e744e..4a56475abe 100644
--- a/packages/sheets-sort-ui/package.json
+++ b/packages/sheets-sort-ui/package.json
@@ -77,7 +77,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-sort": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
diff --git a/packages/sheets-table-ui/package.json b/packages/sheets-table-ui/package.json
index 0be26fd8a7..40c5d8b027 100644
--- a/packages/sheets-table-ui/package.json
+++ b/packages/sheets-table-ui/package.json
@@ -79,7 +79,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-formula-ui": "workspace:*",
"@univerjs/sheets-sort": "workspace:*",
diff --git a/packages/sheets-thread-comment-ui/package.json b/packages/sheets-thread-comment-ui/package.json
index 358946503a..e9dfe5a5ea 100644
--- a/packages/sheets-thread-comment-ui/package.json
+++ b/packages/sheets-thread-comment-ui/package.json
@@ -77,7 +77,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-thread-comment": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
diff --git a/packages/sheets-ui/package.json b/packages/sheets-ui/package.json
index 640d0440d2..cefbd6d1c0 100644
--- a/packages/sheets-ui/package.json
+++ b/packages/sheets-ui/package.json
@@ -91,7 +91,7 @@
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/protocol": "workspace:*",
"@univerjs/sheets": "workspace:*",
"@univerjs/telemetry": "workspace:*",
diff --git a/packages/sheets-ui/src/views/sheet-bar/SheetBar.tsx b/packages/sheets-ui/src/views/sheet-bar/SheetBar.tsx
index 50dfa059c4..e12e8e0a3f 100644
--- a/packages/sheets-ui/src/views/sheet-bar/SheetBar.tsx
+++ b/packages/sheets-ui/src/views/sheet-bar/SheetBar.tsx
@@ -23,7 +23,7 @@ import {
IPermissionService,
throttle,
} from '@univerjs/core';
-import { IncreaseIcon, MoreIcon } from '@univerjs/icons';
+import { IncreaseIcon, MoreLeftIcon, MoreRightIcon } from '@univerjs/icons';
import { InsertSheetCommand, WorkbookCreateSheetPermission, WorkbookEditablePermission } from '@univerjs/sheets';
import { useConfigValue, useDependency, useObservable } from '@univerjs/ui';
import { useEffect, useState } from 'react';
@@ -120,10 +120,10 @@ export const SheetBar = () => {
`}
>
<SheetBarButton disabled={leftScrollState} onClick={handleScrollLeft}>
- <MoreIcon className="univer-rotate-180" />
+ <MoreLeftIcon />
</SheetBarButton>
<SheetBarButton disabled={rightScrollState} onClick={handleScrollRight}>
- <MoreIcon />
+ <MoreRightIcon />
</SheetBarButton>
</div>
)}
diff --git a/packages/slides-ui/package.json b/packages/slides-ui/package.json
index 6539a9719a..3a95b662fb 100644
--- a/packages/slides-ui/package.json
+++ b/packages/slides-ui/package.json
@@ -80,7 +80,7 @@
"@univerjs/docs-ui": "workspace:*",
"@univerjs/drawing": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/slides": "workspace:*",
"@univerjs/ui": "workspace:*"
},
diff --git a/packages/thread-comment-ui/package.json b/packages/thread-comment-ui/package.json
index 8a8a8478d0..ff001e2e9f 100644
--- a/packages/thread-comment-ui/package.json
+++ b/packages/thread-comment-ui/package.json
@@ -77,7 +77,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@univerjs/thread-comment": "workspace:*",
"@univerjs/ui": "workspace:*"
},
diff --git a/packages/ui/package.json b/packages/ui/package.json
index fd79f9ddee..153d74c950 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -89,7 +89,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.12.0",
+ "@univerjs/icons": "1.13.0",
"@wendellhu/redi": "1.1.2"
},
"devDependencies": {
diff --git a/packages/ui/src/views/components/context-menu/ContextMenuPanel.tsx b/packages/ui/src/views/components/context-menu/ContextMenuPanel.tsx
index cd0239fd64..a4995874b2 100644
--- a/packages/ui/src/views/components/context-menu/ContextMenuPanel.tsx
+++ b/packages/ui/src/views/components/context-menu/ContextMenuPanel.tsx
@@ -26,7 +26,7 @@ import type {
import type { IMenuSchema } from '../../../services/menu/menu-manager.service';
import { isRealNum, LocaleService } from '@univerjs/core';
import { borderBottomClassName, borderClassName, clsx, cva, scrollbarClassName } from '@univerjs/design';
-import { CheckMarkIcon, MoreIcon } from '@univerjs/icons';
+import { CheckMarkIcon, MoreRightIcon } from '@univerjs/icons';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { createPortal } from 'react-dom';
import { combineLatest, isObservable, of, scan, startWith } from 'rxjs';
@@ -1295,7 +1295,7 @@ function ContextMenuMenuItem(props: IContextMenuMenuItemProps) {
>
{contentNode}
{hasSubmenu && (
- <MoreIcon
+ <MoreRightIcon
className={`
${sizeVariant === 'paragraph-t' ? 'univer-size-4' : 'univer-size-3.5'}
univer-text-gray-400
@@ -1353,7 +1353,7 @@ function ContextMenuMenuItem(props: IContextMenuMenuItemProps) {
>
{contentNode}
{hasSubmenu && !compact && (
- <MoreIcon
+ <MoreRightIcon
className={`
${sizeVariant === 'paragraph-t' ? 'univer-size-4' : 'univer-size-3.5'}
univer-text-gray-400
diff --git a/packages/ui/src/views/components/ribbon/MobileRibbon.tsx b/packages/ui/src/views/components/ribbon/MobileRibbon.tsx
index c52b83b49a..584fd54705 100644
--- a/packages/ui/src/views/components/ribbon/MobileRibbon.tsx
+++ b/packages/ui/src/views/components/ribbon/MobileRibbon.tsx
@@ -16,8 +16,14 @@
import type { ComponentType } from 'react';
import { LocaleService } from '@univerjs/core';
-import { borderBottomClassName, borderClassName, borderRightClassName, clsx, resetButtonClassName } from '@univerjs/design';
-import { MoreIcon, MoreLeftIcon, MoreRightIcon } from '@univerjs/icons';
+import {
+ borderBottomClassName,
+ borderClassName,
+ borderRightClassName,
+ clsx,
+ resetButtonClassName,
+} from '@univerjs/design';
+import { MoreLeftIcon, MoreRightIcon } from '@univerjs/icons';
import { useEffect, useMemo, useRef, useState } from 'react';
import { RibbonPosition } from '../../../services/menu/types';
import { IRibbonService } from '../../../services/ribbon/ribbon.service';
@@ -152,7 +158,7 @@ export function MobileRibbon(props: IMobileRibbonProps) {
aria-label="Previous"
onClick={() => selectTab(activeIndex - 1)}
>
- <MoreIcon className="univer-rotate-180 univer-text-sm" />
+ <MoreLeftIcon className="univer-rotate-180 univer-text-sm" />
</button>
</div>
@@ -214,7 +220,7 @@ export function MobileRibbon(props: IMobileRibbonProps) {
aria-label="Next"
onClick={() => selectTab(activeIndex + 1)}
>
- <MoreIcon className="univer-text-sm" />
+ <MoreRightIcon className="univer-text-sm" />
</button>
{hasHeaderMenu && (
diff --git a/packages/ui/src/views/menu/mobile/MobileMenu.tsx b/packages/ui/src/views/menu/mobile/MobileMenu.tsx
index ab96b56fd5..7183311f72 100644
--- a/packages/ui/src/views/menu/mobile/MobileMenu.tsx
+++ b/packages/ui/src/views/menu/mobile/MobileMenu.tsx
@@ -14,12 +14,19 @@
* limitations under the License.
*/
-import type { IDisplayMenuItem, IMenuButtonItem, IMenuItem, IMenuSelectorItem, IValueOption, MenuItemDefaultValueType } from '../../../services/menu/menu';
+import type {
+ IDisplayMenuItem,
+ IMenuButtonItem,
+ IMenuItem,
+ IMenuSelectorItem,
+ IValueOption,
+ MenuItemDefaultValueType,
+} from '../../../services/menu/menu';
import type { IMenuSchema } from '../../../services/menu/menu-manager.service';
import type { IBaseMenuProps } from '../types';
import { LocaleService } from '@univerjs/core';
import { borderBottomClassName, clsx } from '@univerjs/design';
-import { CheckMarkIcon, MoreIcon, MoreLeftIcon } from '@univerjs/icons';
+import { CheckMarkIcon, MoreLeftIcon, MoreRightIcon } from '@univerjs/icons';
import { useEffect, useMemo, useState } from 'react';
import { combineLatest, isObservable, of } from 'rxjs';
import { scan, startWith } from 'rxjs/operators';
@@ -273,7 +280,7 @@ function MobileSchemaRow(props: {
{currentValueText}
</span>
)}
- {hasSubmenu && <MoreIcon className="univer-shrink-0 univer-text-base univer-text-gray-400" />}
+ {hasSubmenu && <MoreRightIcon className="univer-shrink-0 univer-text-base univer-text-gray-400" />}
</button>
);
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index aa0194d154..4e40165a43 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -19,11 +19,11 @@ importers:
specifier: ^9.0.0
'@commitlint/cli':
- specifier: ^21.0.2
+ specifier: ^21.1.0
'@commitlint/config-conventional':
- specifier: ^21.0.2
- version: 21.0.2
+ specifier: ^21.1.0
+ version: 21.1.0
'@eslint-react/eslint-plugin':
specifier: ^5.9.1
@@ -49,8 +49,8 @@ importers:
specifier: workspace:*
version: link:packages/design
'@univerkit/verso':
- specifier: 1.0.0-alpha.2
- version: 1.0.0-alpha.2
+ specifier: 1.0.0-beta.0
+ version: 1.0.0-beta.0
eslint:
specifier: ^10.5.0
version: 10.5.0([email protected])
@@ -73,8 +73,8 @@ importers:
specifier: ^17.0.8
version: 17.0.8
posthog-node:
- specifier: ^5.38.2
- version: 5.38.2([email protected])
+ specifier: ^5.38.5
+ version: 5.38.5([email protected])
react:
specifier: 19.2.7
version: 19.2.7
@@ -88,8 +88,8 @@ importers:
specifier: 3.4.18
version: 3.4.18
turbo:
- specifier: ^2.9.18
- version: 2.9.18
+ specifier: ^2.10.0
+ version: 2.10.0
typescript:
specifier: ^6.0.3
version: 6.0.3
@@ -112,8 +112,8 @@ importers:
specifier: workspace:*
version: link:../../packages/engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/mockdata':
specifier: workspace:*
version: link:../mockdata
@@ -306,7 +306,7 @@ importers:
specifier: ^0.22.3
'@typescript-eslint/parser':
- specifier: ^8.61.1
+ specifier: ^8.59.2
'@vitest/coverage-istanbul':
specifier: ^4.1.9
@@ -358,11 +358,11 @@ importers:
devDependencies:
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/icons-svg':
- specifier: ^1.12.0
- version: 1.12.0
+ specifier: ^1.13.0
+ version: 1.13.0
typescript:
specifier: ^6.0.3
version: 6.0.3
@@ -503,8 +503,8 @@ importers:
specifier: workspace:*
version: link:../packages/find-replace
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/mockdata':
specifier: workspace:*
version: link:../common/mockdata
@@ -747,8 +747,8 @@ importers:
specifier: workspace:*
version: link:../design
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -885,8 +885,8 @@ importers:
specifier: ^1.2.5
version: 1.2.5(@types/[email protected])([email protected])
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
@@ -1070,8 +1070,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/ui':
specifier: workspace:*
version: link:../ui
@@ -1171,8 +1171,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/ui':
specifier: workspace:*
version: link:../ui
@@ -1214,8 +1214,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/thread-comment':
specifier: workspace:*
version: link:../thread-comment
@@ -1266,8 +1266,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/ui':
specifier: workspace:*
version: link:../ui
@@ -1340,8 +1340,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/ui':
specifier: workspace:*
version: link:../ui
@@ -1454,8 +1454,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/ui':
specifier: workspace:*
version: link:../ui
@@ -1614,8 +1614,8 @@ importers:
specifier: workspace:*
version: link:../../common/shared
'@univerjs/icons-svg':
- specifier: ^1.12.0
- version: 1.12.0
+ specifier: ^1.13.0
+ version: 1.13.0
'@univerjs/sheets-formula':
specifier: workspace:*
version: link:../sheets-formula
@@ -1644,8 +1644,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -1699,8 +1699,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -1785,8 +1785,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -1954,8 +1954,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/rpc':
specifier: workspace:*
version: link:../rpc
@@ -2083,8 +2083,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2169,8 +2169,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2255,8 +2255,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2332,8 +2332,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2403,8 +2403,8 @@ importers:
specifier: workspace:*
version: link:../engine-formula
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2489,8 +2489,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2572,8 +2572,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2636,8 +2636,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/protocol':
specifier: workspace:*
version: link:../protocol
@@ -2719,8 +2719,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/slides':
specifier: workspace:*
version: link:../slides
@@ -2803,8 +2803,8 @@ importers:
specifier: workspace:*
version: link:../docs-ui
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@univerjs/thread-comment':
specifier: workspace:*
version: link:../thread-comment
@@ -2849,8 +2849,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.12.0
+ specifier: 1.13.0
'@wendellhu/redi':
specifier: 1.1.2
version: 1.1.2([email protected])
@@ -4019,61 +4019,61 @@ packages:
resolution: {integrity: sha512-EYlRokl8szrP9Z25qT5aepMdBjzBvHF9ZEhzIiUBc9guz/T31EqRgvD0QSgZcpE93xiwrr+OkB4nz0BZyF6fSA==}
engines: {node: '>= 20.12.0'}
- '@commitlint/[email protected]':
- resolution: {integrity: sha512-YMmfLbqBg+ZRvvmPhc+cilSQFrh/AgzVgCT1U/OifmUZEwPbvCtA8rN//YNaF9d5eoZphxVMGYtmwA2QgQORgg==}
+ '@commitlint/[email protected]':
+ resolution: {integrity: sha512-CVwY6TxGv5naEaWxBdgNHko1xgL95Mb4WcIqp9iik33H0ctVqRv6YtekCntayhEP0T/apuiGvHu5HcCwFuVxEA==}
engines: {node: '>=22.12.0'}
hasBin: true
- '@commitlint/[email protected]':
- resolution: {integrity: sha512-P/ZRhryQmkj0Z0dY9FOoRwe3xkwJyyAdtXwt01NT2kuZttcG2CNYp1q5Ci3u+nDT2jcbJRw2kt13Czl1qKNPfg==}
+ '@commitlint/[email protected]':
+ resolution: {integrity: sha512-BIFl8xM+3SLy3jrblUC3wmQLCVbLty+++6o859BDCmybVrQdXmIWO+dlkGIbv/M2bBoC55wGuh0zGiw3TPjL1g==}
engines: {node: '>=22.12.0'}
- '@commitlint/[email protected]':
- resolution: {integrity: sha512-Zd2UFdndeMMaW2O96HK0tdfT4gOImUvidMpAd/pws2zZ4m1nrAZ/9b/v2JYuE8fs86GpXv9F7LNaIuCIWhY+pA==}
+ '@commitlint/[email protected]':
+ resolution: {integrity: sha512-gHczt1xqQSwfNqBmOI3HjejtTljkiBEUneExMmTBLD0WwTC78lAqDvNMyydbySt3DhpH0F9oX7Vvuks6s5XPFw==}
engines: {node: '>=22.12.0'}
- '@commitlint/[email protected]':
- resolution: {integrity: sha512-jJ1037967wU7YN/xkv+iRlOBlmaOXPhPO5KQSqya6GyXzBlwuLzELBFao16DVg9dZyqmNrhewzwZ3SAibetHBQ==}
+ '@commitlint/[email protected]':
+ resolution: {integrity: sha512-/S8Mo3Q1NtQUYDQjDmyQVPxfIwtnxq+guzMOkuGk8OSdwlzanm1WB9wDPIuuzlbMDDnBNbiAuBEUCcCNlfjrTQ==}
engines: {node: '>=22.12.0'}
'@commitlint/[email protected]':
resolution: {integrity: sha512-RifH+FmImozKBE6mozhF4K3r2RRKP7SMi/Q/zLCmExtp5e05lhHOUYqGBlFBAGNHaZxU/WYw1XuugYK9jQzqnA==}
engines: {node: '>=22.12.0'}
- '@commitlint/[email protected]':
- resolution: {integrity: sha512-ksmG2+cHGtuDPQQbhBbC4unwm444+6TiPw0d1bKf67hntgZqZ8E0g1MuYKUuyT5IH4IMmXZhKq22/Z3jBvtQIw==}
+ '@commitlint/[email protected]':
+ resolution: {integrity: sha512-ySymqKYBfjNrQ5N4W/l1iF2ISW1W7Eu/Oi/wRxlri31N0yjNyzUyUzQwyuZLDzTXIlMs4IZ7hIOfAZx8lO18gA==}
engines: {node: '>=22.12.0'}
- '@commitlint/[email protected]':
- resolution: {integrity: sha512-H5z4t8PC9tUsmZ/o+EptM3Nq8sTFtskAShdcqxCoyzklW5eaVT5xbrDAET2uypzir9Vsj4ZZmBtyKjYe2XqgeQ==}
+ '@commitlint/[email protected]':
+ resolution: {integrity: sha512-RoRh1/YI+fYH+aid5lMQ2UD0vZ3p3Vf1KeUWT1ir3H/p/7T/6SFv1OiXLgLwUT8dP72EVWeEIyOfkiSWLZYVvw==}
engines: {node: '>=22.12.0'}
- '@commitlint/[email protected]':
- resolution: {integrity: sha512-PnUmLYGeGLfW8oVatR9KpNxSHYAnJOEWlMZzfdeFOUq6WUrFx1fGQaWCWJqMoIll/xPM+GdfJV+tKHZVHhl0Fg==}
+ '@commitlint/[email protected]':
+ resolution: {integrity: sha512-0DbfVVUjAWBfixW6v7CXXWVxMcj6Ukf/oB7O8NAbouP3jxmqUaC4eVQphxl3B3M0ii3cCQiR3sRAYxICwU2gAA==}
engines: {node: '>=22.12.0'}
- '@commitlint/[email protected]':
- resolution: {integrity: sha512-lwUE70hN0/qE/ZRROhbaX65ly/FF12DrqfReLCESo37M0OQCFAf2jRS+2tSCSORq+bm4Kdju7qNDj46uc1QzTA==}
+ '@commitlint/[email protected]':
+ resolution: {integrity: sha512-juiClVEcoreNB0TNVkseO2EmNcpEs/Yhnmgbnm/hQAKBFRynKwIaoNIljXkx/3yvZcMO0EE8I2XOEI7d5KZG8Q==}
engines: {node: '>=22.12.0'}
'@commitlint/[email protected]':
resolution: {integrity: sha512-5n4aqHGD/FNnom/D5L8i7cYtV+xjuXcBL832C3w9VglEsZzIsoHpJsvxzJ7cgiOsOdc/2jU4t5+7qMHh7GBX3g==}
engines: {node: '>=22.12.0'}
- '@commitlint/[email protected]':
- resolution: {integrity: sha512-QVZJhGHTm+oiuWyEKOCTQ0ZM3mfJ0eGWFeHuj7WzSKEth+UukcCHac9GD8pgdFlg/qGkFWOtyaNd1T8REgagaw==}
+ '@commitlint/[email protected]':
+ resolution: {integrity: sha512-HdAqbbjQS8eEtbR74Ysg2VNmbvAfeWLVYMkip/lHibNrtjRsC/97XAYN3/H5P0pEJtDfyTb3iLs8x6y0eu4OYA==}
engines: {node: '>=22.12.0'}
- '@commitlint/[email protected]':
- resolution: {integrity: sha512-BtsrnLVycSSKf4Q0gMch4giCj5NNlmcbhc8ra5vONgGtP2IjRDo33bEFtr5Pm+2N+5fXGWb2MksWPrspPfdhdw==}
+ '@commitlint/[email protected]':
+ resolution: {integrity: sha512-ID7m79aw8d0dMlxuXHD2QGxEX3Fhl/mUPA80WwEW5VgeOpUHNahhwWJefDdoBDVZcDfbHuf429NrcK0gxQsQjA==}
engines: {node: '>=22.12.0'}
- '@commitlint/[email protected]':
- resolution: {integrity: sha512-0DhjYWL6uYrY16Efa032fYk3woGJDU4AGWiG1XXltT9AMUNYKyb5cIZU2ivbaMZ3+kKFqUjikD2cjh66Sbh/Sg==}
+ '@commitlint/[email protected]':
+ resolution: {integrity: sha512-SANYkxJDfMl3TvnyALWHEaiF5nc6FFaOnh7VvfxjT4X2vD4i2gVHhmfMm1fsrBwDRX98/XyM1XDo5sAd/KXcyQ==}
engines: {node: '>=22.12.0'}
- '@commitlint/[email protected]':
- resolution: {integrity: sha512-k6tQ69Td7t2qUSIbik8D3TL1q3ZJpkEbV+yLogDzCRAdOxJm4ndhtBNREsLA1/puRfWvzS9eioF2w43WT+hHgQ==}
+ '@commitlint/[email protected]':
+ resolution: {integrity: sha512-fOPEYSmKn1ZJptjLmCEjJfYqz0PUYr8ng6VY2ZW26sB7KtENR90CmAXHEmScBbOIZip+d/+OwqK12DFBuHTqsQ==}
engines: {node: '>=22.12.0'}
'@commitlint/[email protected]':
@@ -4084,8 +4084,8 @@ packages:
resolution: {integrity: sha512-s9KKM+e+mXgFeIh4n7KmOGAVT3mkJ3Fp1bBYHIK5pjeUwlEMzp/tZfb5u0Poa680AsQTXMEMRxZi1vQ9m2X5ug==}
engines: {node: '>=22.12.0'}
- '@commitlint/[email protected]':
- resolution: {integrity: sha512-4u7w8jcoCUFWhjWnASYzZHAP34OqOtuFBN87nQmFvqda03YU0T6z+yB4w0gSAMpekiRqqGk5rt+qSlW+a2vSEg==}
+ '@commitlint/[email protected]':
+ resolution: {integrity: sha512-YodnnnH1Cp+08nP8HGNJAIuB6L3/vdCTHVRTfF8Ik/wRCLOTsU9zwv3yO1cSPQRDa9CLYtE+UJ2K67r7CwMSFw==}
engines: {node: '>=22.12.0'}
'@conventional-changelog/[email protected]':
@@ -4909,6 +4909,12 @@ packages:
'@emnapi/core': ^1.7.1
'@emnapi/runtime': ^1.7.1
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg==}
+ peerDependencies:
+ '@emnapi/core': ^1.7.1
+ '@emnapi/runtime': ^1.7.1
+
'@neoconfetti/[email protected]':
resolution: {integrity: sha512-klcSooChXXOzIm+SE5IISIAn3bYzYfPjbX7D7HoqZL84oAfgREeSg5vSIaSFH+DaGzzvImTyWe1OyrJ67vik4A==}
@@ -5393,11 +5399,11 @@ packages:
engines: {node: '>=18'}
hasBin: true
- '@posthog/[email protected]':
- resolution: {integrity: sha512-EsGPbSLl39Jgo2KZ+kI9UAxFnh5nddaN5bNm2rXvUwF+vGmam9eN1EXeNbxhRU7ulEeIiGdm7XjoU7pzavkgIQ==}
+ '@posthog/[email protected]':
+ resolution: {integrity: sha512-Dvw4CTlRVH4K5ag/B8YIHgG4E27w43MCUsXpn1iKQHIggIMN3Shq9whG4Omm3OvXPF+VikBTmpyMKUjckPxw+g==}
- '@posthog/[email protected]':
- resolution: {integrity: sha512-WcfKz2GNn2vfDX8vXmJYbKxegPxVWHuDQ/pHdAn0HoZDXDFnEp/+x3qBQA+fEvtbPjjtjgAt2wIgJMlM7asx7g==}
+ '@posthog/[email protected]':
+ resolution: {integrity: sha512-ASwd7Nf4pViqdYRYaNRyPYRVKWa1CcHUAUWR0XeQJLGdNnsWACBwe0sSieb/cHnKsRXjRwO/23KIY83lm/Ccpw==}
'@protobufjs/[email protected]':
resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==}
@@ -6213,10 +6219,6 @@ packages:
resolution: {integrity: sha512-3nWd8irxvDI6v856wpPCHZ+08iQR0oHTZfzAZmnbsLzf+Sf1odraP6uKOHDZToXq3RPRV/LbqGVlSCogm9cJjg==}
engines: {node: '>=18'}
- '@simple-libs/[email protected]':
- resolution: {integrity: sha512-6rsHTjodIn/t90lv5snQjRPVtOosM7Vp0AKdrObymq45ojlgVwnpAqdc+0OBBrpEiy31zZ6/TKeIVqV1HwvnuQ==}
- engines: {node: '>=18'}
-
'@simple-libs/[email protected]':
resolution: {integrity: sha512-KxXvfapcixpz6rVEB6HPjOUZT22yN6v0vI0urQSk1L8MlEWPDFCZkhw2xmkyoTGYeFw7tWTZd7e3lVzRZRN/EA==}
engines: {node: '>=18'}
@@ -6497,39 +6499,42 @@ packages:
sass-embedded:
optional: true
- '@turbo/[email protected]':
- resolution: {integrity: sha512-9f27peFu16ur8c0v9nUFUEyBnbKuuFsUTjHFWfmwGfzySBXbHwzU44QhZon6Mznz0cHsIr3984NQj/bVrnGSRw==}
+ '@turbo/[email protected]':
+ resolution: {integrity: sha512-EwvHThXzpY0KGd1/NAmuewI5D+aVa3Rl/OlxE36yfjUKb/+ySrfJrSlEFt8aD1OXwnnaHnQnPKHFndor0Zxlsg==}
cpu: [x64]
os: [darwin]
- '@turbo/[email protected]':
- resolution: {integrity: sha512-9A6TMRq/Ib+QnbhLlgkhOm+624wO4pzSQ/yQviQfWHOlFvaYxdnIAYmu2H6TS6y7kSVL0DvzNe04NbESTOzFVQ==}
+ '@turbo/[email protected]':
+ resolution: {integrity: sha512-9d2fTyyG0lf5Wq1bwJA9qUaeecViMkLcdctWaMMmCkxZ/JqypmqOwK3W6vmejeKVgkr06gSoiX8bD+xN5Jpxcg==}
cpu: [arm64]
os: [darwin]
- '@turbo/[email protected]':
- resolution: {integrity: sha512-zCdIDtz69AnbYh913elJRRoF3QY5aa2HNnf+4rAkc7bQ+tWujiDkCNV7stazOUPggaDvhKIf2Z87qHftTeXSkw==}
+ '@turbo/[email protected]':
+ resolution: {integrity: sha512-sZBtjMuufitanjzi6UssoUpJMnnPlLMcdcJj3m3ptNsSq31Xh7MnjhwA5nWvLDTfEFg8GPcbYFXMo8vSdKRfqQ==}
cpu: [x64]
os: [linux]
- '@turbo/[email protected]':
- resolution: {integrity: sha512-Va1kXI04naMgYwqv/5Dfa36dTDx8015U7oaQAjrXa45ua9OoFjSV4OmvkML4EmXvUclQHCiBRbY8bvd0jV7eAg==}
+ '@turbo/[email protected]':
+ resolution: {integrity: sha512-vkq/Z8R+1DQ+kifWFa810IjRy2NNBVvha3cg9sWA3nFh6nnGrHSMnnJKrzH7c/No9kq4Jb55Ru44YKsCSBgrKg==}
cpu: [arm64]
os: [linux]
- '@turbo/[email protected]':
- resolution: {integrity: sha512-m0kDhZANxSNz9ck1ybogFscHabriAsp4eDFNrN/1H5WrgTF7b3VlcPZnhuO3v2+E2KnCbeAc+UUT10BZZHdDKw==}
+ '@turbo/[email protected]':
+ resolution: {integrity: sha512-CRUEguLWxFQHptYZS7HjPhNhAFawfea07iR+xAQ5e4klgLrPCMdexBkXwSCwOxqTFknJ7RZFN3gOaADsw+Gttg==}
cpu: [x64]
os: [win32]
- '@turbo/[email protected]':
- resolution: {integrity: sha512-nUdR8WqoomUys9iIQmG45TMiizJ+5BV8egSeLLZba/AWblyp3fVBcIH1kSE58OtK4g2YzbMJEth6Ttv9w5rqMA==}
+ '@turbo/[email protected]':
+ resolution: {integrity: sha512-dVHGaf9F8twzgibcBqKoADT/LLqf9++jDb+hq/LPWWaOmRpp4M+/pVOm7vy4z9D++xg8eaxWLT0+wQxFwhYu9A==}
cpu: [arm64]
os: [win32]
resolution: {integrity: sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==}
+ '@tybys/[email protected]':
+ resolution: {integrity: sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==}
+
resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==}
@@ -6857,42 +6862,42 @@ packages:
resolution: {integrity: sha512-6fJ9MHWtK14C1DSkiMlHUSOmrVebL7150xZJBlJiL62jjhIA4JmOq6flwBgDxIdBKKdoiZRel+dfPD5MLfny3w==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- '@univerjs/[email protected]':
- resolution: {integrity: sha512-m2RSIsGaC1y66vIqU2FEUvDQ+3CBKBFwa28PUUpg9Rn93AoFs6LXok/FQxE6pibMbMomTjySyVtxgK4ZexCaaQ==}
+ '@univerjs/[email protected]':
+ resolution: {integrity: sha512-zY427LrbyxeYhTjJ3vxS/qwtAy0rlacnhnbRgrs1dIRHI49MqRHKXKKsMjJqXoUrFHBP9dn3m7A9KImA8CDwpg==}
- '@univerjs/[email protected]':
- resolution: {integrity: sha512-BV+NESaNz1a8YxZzgRID4reIYnpXskwm236a7mDt3dJcJ9sPb0UjCv2YQMRMQ97njwimK/Vk+h3ZqQB4a3fOSg==}
+ '@univerjs/[email protected]':
+ resolution: {integrity: sha512-K1wBl7I+TZa+B8SvQHwojO9c/cYdk+Pkfd7hVB8wd0yMg4neuH4JeOdra2zxoG7qTcBEXSBPZbKLMxuA8/GNZQ==}
peerDependencies:
react: 19.2.7
react-dom: 19.2.7
- '@univerkit/[email protected]':
- resolution: {integrity: sha512-OWqSykhFFytbWC8cyFFgI+0Ji2DTBpbTkszDuu+OSBuXja7i56XgLgu+IAbnwvgkpK0w8fBVTD2+46FF+EuFvQ==}
+ '@univerkit/[email protected]':
+ resolution: {integrity: sha512-Rs7G7h02cu7ksL6798Fpxm2FTlaiaw+jYH2NVLSNWjnTBBAVFWl0BAD8BhI/e1H23qoTdx2jsjDlzTZhsZMSKw==}
cpu: [arm64]
os: [darwin]
- '@univerkit/[email protected]':
- resolution: {integrity: sha512-BPMPzVzrGKVre8Rbu1Hasm0Dp0nHlxR+OkfFZhglJPHxURh2rrMFKvv+af7jsYvGi+rwfBauOOuibUDUaBhljw==}
+ '@univerkit/[email protected]':
+ resolution: {integrity: sha512-P0nsAoyhs12eKxPV71hc9IO5mBq/dfZN8zJKEYk+lvXOZ1v5s6AKjHQksPG3jUkZUMLBYkgIsFQkins77A9qUQ==}
cpu: [x64]
os: [darwin]
- '@univerkit/[email protected]':
- resolution: {integrity: sha512-AW+854poSx6H0+XHRLM9p2k1JclD6Vng8lrwOB+Q6Xk0umo9x0aC8DtDspy86Mh4U6+j26Ztte8sQtodjzOALg==}
+ '@univerkit/[email protected]':
+ resolution: {integrity: sha512-T1B5dhKSlmRHyqFfhk+CbdQNAYPd4sLHP63OjVS+2mT4t/3TAK8B7NpJDG79erLRBg3WXAhJ2u1szCJKxsj7KQ==}
cpu: [arm64]
os: [linux]
- '@univerkit/[email protected]':
- resolution: {integrity: sha512-plTIhzCE+FDO/SORYSXHGUJZ8cxBCFZjdxdGvq5JL0ZKLoOXa3ZD7yqVQFXREj33JFw5fozoXjhM5z3GB5Fbqg==}
+ '@univerkit/[email protected]':
+ resolution: {integrity: sha512-MpvIWleWHKoM7bXGBVBHebBmR5p0/0poJn944GdDXwkz5oJeSDQkYlArF6sukxPrSOv7O37dqtrf4wQt5+yTdg==}
cpu: [x64]
os: [linux]
- '@univerkit/[email protected]':
- resolution: {integrity: sha512-VEwGnC5MaOAX2i4vcQdRYY65HfIHXo6ag7uPRr81xCBwsbKsXwi70RM8SdZpE+dRXEbUOwsYFS+wHKZVOAba2w==}
+ '@univerkit/[email protected]':
+ resolution: {integrity: sha512-zhvO09oalUamgF+7jpxSGuymtCY1NaZ6mNKSYcUEbJhvNf9r9lFu/61nnd71uXoRZbPzjEU34fq+iK9E3l7k4w==}
cpu: [x64]
os: [win32]
- '@univerkit/[email protected]':
- resolution: {integrity: sha512-zAd9wRi5d8KKW3O0OqUi4aWrF4O5q5rAMQIqJ7BlUyDv/Su8rr3ccMl37m/YOD6lHIMeOUZyqa/BEPIPGdsp0g==}
+ '@univerkit/[email protected]':
+ resolution: {integrity: sha512-p7GUHRUIlE4vw5Tfi9dQkFzESgtIk2VbD5RGI6p4nm6wgvVvc6HxSPUUByOT4f8MCc8EbBRyIEM8AeHryT3OHQ==}
engines: {node: '>=22.18.0'}
hasBin: true
@@ -10176,8 +10181,8 @@ packages:
resolution: {integrity: sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==}
engines: {node: ^10 || ^12 || >=14}
- resolution: {integrity: sha512-eiKpU+vX4hVuHbO/EosvPHsmh2AVIdoVmWss/uUOs1t4b0ViCblw2o8OIFqHxKj3mYRnSOBlX0Dw3wBvcCaYpA==}
+ resolution: {integrity: sha512-ZqMK2MFXQWkfdc0PDzPMRBrZXHCZLvl9jbvaaIyXTgbfn802/hMJ8M24BJiChPrMpZejsTzfAq8ZsQYF8zcOoA==}
engines: {node: ^20.20.0 || >=22.22.0}
peerDependencies:
rxjs: ^7.0.0
@@ -11076,8 +11081,8 @@ packages:
engines: {node: '>=18.0.0'}
hasBin: true
- resolution: {integrity: sha512-bwabv6PupzeavybzEoArBAkwq5fnzwf8OFnRtpHwnviFWuwJPFxtyH+aVp36TmIqK3aYYgtTJ3J0m2ysxxSzQg==}
+ resolution: {integrity: sha512-o016H9PPtuH2deb3mh3Vci3Avfi9UYgM/RONQisY7HnloupP0IFSbFS3gFYJgFJP8nwBrByHWFQIDa8T2zIXPw==}
hasBin: true
@@ -11928,14 +11933,15 @@ snapshots:
fast-wrap-ansi: 0.2.2
sisteransi: 1.0.5
dependencies:
- '@commitlint/format': 21.0.1
- '@commitlint/lint': 21.0.2
- '@commitlint/load': 21.0.2(@types/[email protected])([email protected])
- '@commitlint/read': 21.0.2([email protected])([email protected])
- '@commitlint/types': 21.0.1
- tinyexec: 1.2.3
+ '@commitlint/config-conventional': 21.1.0
+ '@commitlint/format': 21.1.0
+ '@commitlint/lint': 21.1.0
+ '@commitlint/load': 21.1.0(@types/[email protected])([email protected])
+ '@commitlint/read': 21.1.0([email protected])([email protected])
+ '@commitlint/types': 21.1.0
+ tinyexec: 1.2.4
yargs: 18.0.0
transitivePeerDependencies:
- '@types/node'
@@ -11943,46 +11949,46 @@ snapshots:
- conventional-commits-parser
- typescript
- '@commitlint/[email protected]':
+ '@commitlint/[email protected]':
dependencies:
- '@commitlint/types': 21.0.1
+ '@commitlint/types': 21.1.0
conventional-changelog-conventionalcommits: 9.3.0
- '@commitlint/[email protected]':
+ '@commitlint/[email protected]':
dependencies:
- '@commitlint/types': 21.0.1
+ '@commitlint/types': 21.1.0
ajv: 8.20.0
- '@commitlint/[email protected]':
+ '@commitlint/[email protected]':
dependencies:
- '@commitlint/types': 21.0.1
+ '@commitlint/types': 21.1.0
es-toolkit: 1.46.1
'@commitlint/[email protected]': {}
- '@commitlint/[email protected]':
+ '@commitlint/[email protected]':
dependencies:
- '@commitlint/types': 21.0.1
+ '@commitlint/types': 21.1.0
picocolors: 1.1.1
- '@commitlint/[email protected]':
+ '@commitlint/[email protected]':
dependencies:
- '@commitlint/types': 21.0.1
- semver: 7.8.1
+ '@commitlint/types': 21.1.0
+ semver: 7.8.5
- '@commitlint/[email protected]':
+ '@commitlint/[email protected]':
dependencies:
- '@commitlint/is-ignored': 21.0.2
- '@commitlint/parse': 21.0.2
- '@commitlint/rules': 21.0.2
- '@commitlint/types': 21.0.1
+ '@commitlint/is-ignored': 21.1.0
+ '@commitlint/parse': 21.1.0
+ '@commitlint/rules': 21.1.0
+ '@commitlint/types': 21.1.0
dependencies:
- '@commitlint/config-validator': 21.0.1
+ '@commitlint/config-validator': 21.1.0
'@commitlint/execute-rule': 21.0.1
- '@commitlint/resolve-extends': 21.0.1
- '@commitlint/types': 21.0.1
+ '@commitlint/resolve-extends': 21.1.0
+ '@commitlint/types': 21.1.0
cosmiconfig: 9.0.1([email protected])
cosmiconfig-typescript-loader: 6.2.0(@types/[email protected])([email protected]([email protected]))([email protected])
es-toolkit: 1.46.1
@@ -11994,36 +12000,36 @@ snapshots:
'@commitlint/[email protected]': {}
- '@commitlint/[email protected]':
+ '@commitlint/[email protected]':
dependencies:
- '@commitlint/types': 21.0.1
+ '@commitlint/types': 21.1.0
conventional-changelog-angular: 8.3.0
conventional-commits-parser: 6.3.0
dependencies:
'@commitlint/top-level': 21.0.2
- '@commitlint/types': 21.0.1
+ '@commitlint/types': 21.1.0
git-raw-commits: 5.0.1([email protected])([email protected])
- tinyexec: 1.2.3
+ tinyexec: 1.2.4
transitivePeerDependencies:
- conventional-commits-filter
- conventional-commits-parser
- '@commitlint/[email protected]':
+ '@commitlint/[email protected]':
dependencies:
- '@commitlint/config-validator': 21.0.1
- '@commitlint/types': 21.0.1
+ '@commitlint/config-validator': 21.1.0
+ '@commitlint/types': 21.1.0
es-toolkit: 1.46.1
global-directory: 5.0.0
resolve-from: 5.0.0
- '@commitlint/[email protected]':
+ '@commitlint/[email protected]':
dependencies:
- '@commitlint/ensure': 21.0.1
+ '@commitlint/ensure': 21.1.0
'@commitlint/message': 21.0.2
'@commitlint/to-lines': 21.0.1
- '@commitlint/types': 21.0.1
+ '@commitlint/types': 21.1.0
'@commitlint/[email protected]': {}
@@ -12031,7 +12037,7 @@ snapshots:
dependencies:
escalade: 3.2.0
- '@commitlint/[email protected]':
+ '@commitlint/[email protected]':
dependencies:
conventional-commits-parser: 6.3.0
picocolors: 1.1.1
@@ -12040,7 +12046,7 @@ snapshots:
dependencies:
'@simple-libs/child-process-utils': 1.0.1
'@simple-libs/stream-utils': 1.2.0
- semver: 7.7.4
+ semver: 7.8.5
optionalDependencies:
conventional-commits-filter: 5.0.0
conventional-commits-parser: 6.3.0
@@ -12887,6 +12893,13 @@ snapshots:
'@tybys/wasm-util': 0.10.2
optional: true
+ dependencies:
+ '@emnapi/core': 1.9.2
+ '@emnapi/runtime': 1.9.2
+ '@tybys/wasm-util': 0.10.3
+ optional: true
+
'@neoconfetti/[email protected]': {}
'@nodelib/[email protected]':
@@ -13164,11 +13177,11 @@ snapshots:
dependencies:
playwright: 1.57.0
- '@posthog/[email protected]':
+ '@posthog/[email protected]':
dependencies:
- '@posthog/types': 1.390.2
+ '@posthog/types': 1.391.1
- '@posthog/[email protected]': {}
+ '@posthog/[email protected]': {}
'@protobufjs/[email protected]': {}
@@ -13625,7 +13638,7 @@ snapshots:
dependencies:
'@emnapi/core': 1.9.2
'@emnapi/runtime': 1.9.2
- '@napi-rs/wasm-runtime': 1.1.5(@emnapi/[email protected])(@emnapi/[email protected])
+ '@napi-rs/wasm-runtime': 1.1.6(@emnapi/[email protected])(@emnapi/[email protected])
optional: true
'@rolldown/[email protected]':
@@ -13760,11 +13773,7 @@ snapshots:
'@simple-libs/[email protected]':
dependencies:
- '@simple-libs/stream-utils': 1.1.0
- '@types/node': 22.19.19
-
- '@simple-libs/[email protected]':
- dependencies:
+ '@simple-libs/stream-utils': 1.2.0
'@types/node': 22.19.19
'@simple-libs/[email protected]': {}
@@ -14056,22 +14065,22 @@ snapshots:
- tsx
- yaml
- '@turbo/[email protected]':
+ '@turbo/[email protected]':
optional: true
- '@turbo/[email protected]':
+ '@turbo/[email protected]':
optional: true
- '@turbo/[email protected]':
+ '@turbo/[email protected]':
optional: true
- '@turbo/[email protected]':
+ '@turbo/[email protected]':
optional: true
- '@turbo/[email protected]':
+ '@turbo/[email protected]':
optional: true
- '@turbo/[email protected]':
+ '@turbo/[email protected]':
optional: true
@@ -14079,6 +14088,11 @@ snapshots:
tslib: 2.8.1
optional: true
+ '@tybys/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
'@types/[email protected]': {}
'@types/[email protected]': {}
@@ -14267,8 +14281,8 @@ snapshots:
'@typescript-eslint/[email protected]([email protected])':
dependencies:
- '@typescript-eslint/tsconfig-utils': 8.61.1([email protected])
- '@typescript-eslint/types': 8.61.1
+ '@typescript-eslint/tsconfig-utils': 8.56.1([email protected])
+ '@typescript-eslint/types': 8.56.1
debug: 4.4.3
typescript: 6.0.3
transitivePeerDependencies:
@@ -14496,35 +14510,35 @@ snapshots:
'@typescript-eslint/types': 8.61.1
eslint-visitor-keys: 5.0.1
- '@univerjs/[email protected]': {}
+ '@univerjs/[email protected]': {}
dependencies:
react: 19.2.7
react-dom: 19.2.7([email protected])
- '@univerkit/[email protected]':
+ '@univerkit/[email protected]':
optional: true
- '@univerkit/[email protected]':
+ '@univerkit/[email protected]':
optional: true
- '@univerkit/[email protected]':
+ '@univerkit/[email protected]':
optional: true
- '@univerkit/[email protected]':
+ '@univerkit/[email protected]':
optional: true
- '@univerkit/[email protected]':
+ '@univerkit/[email protected]':
optional: true
- '@univerkit/[email protected]':
+ '@univerkit/[email protected]':
optionalDependencies:
- '@univerkit/verso-darwin-arm64': 1.0.0-alpha.2
- '@univerkit/verso-darwin-x64': 1.0.0-alpha.2
- '@univerkit/verso-linux-arm64': 1.0.0-alpha.2
- '@univerkit/verso-linux-x64': 1.0.0-alpha.2
- '@univerkit/verso-win32-x64': 1.0.0-alpha.2
+ '@univerkit/verso-darwin-arm64': 1.0.0-beta.0
+ '@univerkit/verso-darwin-x64': 1.0.0-beta.0
+ '@univerkit/verso-linux-arm64': 1.0.0-beta.0
+ '@univerkit/verso-linux-x64': 1.0.0-beta.0
+ '@univerkit/verso-win32-x64': 1.0.0-beta.0
dependencies:
@@ -18388,9 +18402,9 @@ snapshots:
picocolors: 1.1.1
source-map-js: 1.2.1
dependencies:
- '@posthog/core': 1.35.3
+ '@posthog/core': 1.37.3
optionalDependencies:
rxjs: 7.8.2
@@ -19444,14 +19458,14 @@ snapshots:
fsevents: 2.3.3
optional: true
optionalDependencies:
- '@turbo/darwin-64': 2.9.18
- '@turbo/darwin-arm64': 2.9.18
- '@turbo/linux-64': 2.9.18
- '@turbo/linux-arm64': 2.9.18
- '@turbo/windows-64': 2.9.18
- '@turbo/windows-arm64': 2.9.18
+ '@turbo/darwin-64': 2.10.0
+ '@turbo/darwin-arm64': 2.10.0
+ '@turbo/linux-64': 2.10.0
+ '@turbo/linux-arm64': 2.10.0
+ '@turbo/windows-64': 2.10.0
+ '@turbo/windows-arm64': 2.10.0
dependencies:
diff --git a/scripts/coverage-shard.mts b/scripts/coverage-shard.mts
new file mode 100644
index 0000000000..73e8660129
--- /dev/null
+++ b/scripts/coverage-shard.mts
@@ -0,0 +1,230 @@
+import { spawnSync } from 'node:child_process';
+import { readdirSync, readFileSync, statSync } from 'node:fs';
+import { join, relative } from 'node:path';
+import process from 'node:process';
+
+interface IWorkspacePackage {
+ dir: string;
+ name: string;
+ testFiles: number;
+}
+
+const workspaceRoots = [
+ 'common',
+ 'examples',
+ 'mockdata',
+ 'presets',
+ 'presets/packages',
+ 'packages',
+ 'tests',
+];
+
+function parseArgs() {
+ const args = new Map<string, string | boolean>();
+
+ for (const arg of process.argv.slice(2)) {
+ if (arg.startsWith('--') && arg.includes('=')) {
+ const [key, value] = arg.slice(2).split(/=(.*)/s);
+ args.set(key, value);
+ } else if (arg.startsWith('--')) {
+ args.set(arg.slice(2), true);
+ }
+ }
+
+ const shardIndex = Number(args.get('shard-index') ?? process.env.COVERAGE_SHARD_INDEX ?? 1);
+ const shardTotal = Number(args.get('shard-total') ?? process.env.COVERAGE_SHARD_TOTAL ?? 1);
+ const concurrency = String(args.get('concurrency') ?? process.env.COVERAGE_TURBO_CONCURRENCY ?? 2);
+
+ if (!Number.isInteger(shardIndex) || !Number.isInteger(shardTotal) || shardIndex < 1 || shardTotal < 1 || shardIndex > shardTotal) {
+ throw new Error(`Invalid shard arguments: shard-index=${shardIndex}, shard-total=${shardTotal}`);
+ }
+
+ return {
+ shardIndex,
+ shardTotal,
+ concurrency,
+ dryRun: args.has('dry-run'),
+ listOnly: args.has('list-only'),
+ };
+}
+
+function readPackageJson(dir: string) {
+ try {
+ return JSON.parse(readFileSync(join(dir, 'package.json'), 'utf8'));
+ } catch {
+ return null;
+ }
+}
+
+function listPackageDirs(root: string) {
+ const packageDirs: string[] = [];
+
+ for (const workspaceRoot of workspaceRoots) {
+ let rootStat;
+ try {
+ rootStat = statSync(workspaceRoot);
+ } catch {
+ continue;
+ }
+
+ if (!rootStat.isDirectory()) {
+ continue;
+ }
+
+ const rootPackageJson = readPackageJson(workspaceRoot);
+ if (rootPackageJson) {
+ packageDirs.push(workspaceRoot);
+ }
+
+ for (const entry of readdirSync(workspaceRoot)) {
+ const dir = join(workspaceRoot, entry);
+ try {
+ if (statSync(dir).isDirectory() && readPackageJson(dir)) {
+ packageDirs.push(dir);
+ }
+ } catch {
+ // Ignore entries that disappear or cannot be read.
+ }
+ }
+ }
+
+ return [...new Set(packageDirs)].map((dir) => relative(root, dir) || '.').sort();
+}
+
+function countTestFiles(dir: string) {
+ let count = 0;
+
+ function walk(currentDir: string) {
+ for (const entry of readdirSync(currentDir)) {
+ if (entry === 'node_modules' || entry === 'coverage' || entry === 'dist' || entry === 'lib') {
+ continue;
+ }
+
+ const fullPath = join(currentDir, entry);
+ const stat = statSync(fullPath);
+
+ if (stat.isDirectory()) {
+ walk(fullPath);
+ } else if (/[.-](spec|test)\.[cm]?[jt]sx?$/.test(entry)) {
+ count += 1;
+ }
+ }
+ }
+
+ walk(dir);
+ return count;
+}
+
+function getCoveragePackages() {
+ const root = process.cwd();
+
+ return listPackageDirs(root)
+ .map((dir): IWorkspacePackage | null => {
+ const packageJson = readPackageJson(dir);
+ if (!packageJson?.scripts?.coverage || !packageJson.name) {
+ return null;
+ }
+
+ return {
+ dir,
+ name: packageJson.name,
+ testFiles: countTestFiles(dir),
+ };
+ })
+ .filter((pkg): pkg is IWorkspacePackage => pkg !== null)
+ .sort((a, b) => a.name.localeCompare(b.name));
+}
+
+function assignShards(packages: IWorkspacePackage[], shardTotal: number) {
+ const shards = Array.from({ length: shardTotal }, () => ({
+ weight: 0,
+ packages: [] as IWorkspacePackage[],
+ }));
+
+ for (const pkg of [...packages].sort((a, b) => b.testFiles - a.testFiles || a.name.localeCompare(b.name))) {
+ const target = shards.reduce((lowest, shard, index) => {
+ if (shard.weight < shards[lowest].weight) {
+ return index;
+ }
+
+ return lowest;
+ }, 0);
+
+ shards[target].packages.push(pkg);
+ shards[target].weight += Math.max(pkg.testFiles, 1);
+ }
+
+ return shards.map((shard) => ({
+ ...shard,
+ packages: shard.packages.sort((a, b) => a.name.localeCompare(b.name)),
+ }));
+}
+
+const { shardIndex, shardTotal, concurrency, dryRun, listOnly } = parseArgs();
+const packages = getCoveragePackages();
+const totalTestFiles = packages.reduce((total, pkg) => total + pkg.testFiles, 0);
+const heavyPackageThreshold = Math.ceil(totalTestFiles / shardTotal);
+const heavyPackages = packages.filter((pkg) => pkg.testFiles > heavyPackageThreshold);
+const regularPackages = packages.filter((pkg) => !heavyPackages.includes(pkg));
+const shards = assignShards(regularPackages, shardTotal);
+const selected = shards[shardIndex - 1].packages;
+
+console.log(`Coverage shard ${shardIndex}/${shardTotal}: ${selected.length}/${regularPackages.length} regular packages, ${shards[shardIndex - 1].weight} regular test files`);
+for (const pkg of heavyPackages) {
+ console.log(`- ${pkg.name} (${pkg.dir}, ${pkg.testFiles} test files, vitest shard ${shardIndex}/${shardTotal})`);
+}
+for (const pkg of selected) {
+ console.log(`- ${pkg.name} (${pkg.dir}, ${pkg.testFiles} test files)`);
+}
+
+if (heavyPackages.length === 0 && selected.length === 0) {
+ process.exit(0);
+}
+
+if (listOnly) {
+ process.exit(0);
+}
+
+function runPnpm(args: string[]) {
+ const result = spawnSync('pnpm', args, {
+ stdio: 'inherit',
+ shell: process.platform === 'win32',
+ });
+
+ if (result.status !== 0) {
+ process.exit(result.status ?? 1);
+ }
+}
+
+for (const pkg of heavyPackages) {
+ const args = [
+ '--dir',
+ pkg.dir,
+ 'exec',
+ 'vitest',
+ 'run',
+ '--coverage',
+ `--shard=${shardIndex}/${shardTotal}`,
+ '--passWithNoTests',
+ ];
+
+ if (dryRun) {
+ console.log(`[dry-run] pnpm ${args.join(' ')}`);
+ } else {
+ runPnpm(args);
+ }
+}
+
+if (selected.length > 0) {
+ runPnpm([
+ 'turbo',
+ `--concurrency=${concurrency}`,
+ 'coverage',
+ ...selected.map((pkg) => `--filter=${pkg.name}`),
+ ...(dryRun ? ['--dry=json'] : []),
+ '--',
+ '--passWithNoTests',
+ ]);
+}
+
+process.exit(0);
diff --git a/turbo.json b/turbo.json
index b27f031b2a..f8630ba173 100644
--- a/turbo.json
+++ b/turbo.json
@@ -5,7 +5,8 @@
},
"coverage": {
- "outputs": ["coverage/**"]
+ "outputs": ["coverage/**"],
+ "env": ["CI"]
},
"build": {