From 233004f867c730caa5c60add83240312ab23144e Mon Sep 17 00:00:00 2001 From: DarkSky <25152247+darkskygit@users.noreply.github.com> Date: Fri, 3 Apr 2026 03:36:52 +0800 Subject: [PATCH] chore: bump oxlint & enable more supported rules (#14769) --- .github/workflows/build-test.yml | 8 +- .oxlintrc.json | 92 +- .prettierignore | 1 + .vscode/settings.template.json | 2 + blocksuite/affine/all/package.json | 3 +- blocksuite/affine/all/src/store/index.ts | 2 +- .../affine/blocks/attachment/package.json | 5 +- .../blocks/attachment/src/configs/toolbar.ts | 4 +- .../affine/blocks/bookmark/package.json | 4 +- .../blocks/bookmark/src/configs/toolbar.ts | 10 +- blocksuite/affine/blocks/callout/package.json | 10 +- .../blocks/callout/src/configs/tooltips.ts | 2 +- .../affine/blocks/callout/tsconfig.json | 1 - blocksuite/affine/blocks/code/package.json | 3 - .../affine/blocks/data-view/package.json | 7 +- .../affine/blocks/database/package.json | 2 - .../database/src/properties/converts.ts | 2 +- blocksuite/affine/blocks/divider/package.json | 9 +- .../affine/blocks/divider/tsconfig.json | 1 - .../affine/blocks/edgeless-text/package.json | 10 +- .../affine/blocks/edgeless-text/tsconfig.json | 2 - .../affine/blocks/embed-doc/package.json | 9 +- .../embed-doc/src/common/render-linked-doc.ts | 2 +- .../embed-linked-doc-block/configs/toolbar.ts | 8 +- .../embed-synced-doc-block/configs/toolbar.ts | 4 +- blocksuite/affine/blocks/embed/package.json | 13 +- .../blocks/embed/src/configs/toolbar.ts | 10 +- .../src/embed-iframe-block/configs/toolbar.ts | 6 +- .../src/embed-loom-block/configs/tooltips.ts | 2 +- blocksuite/affine/blocks/embed/tsconfig.json | 3 - blocksuite/affine/blocks/frame/package.json | 7 +- blocksuite/affine/blocks/image/package.json | 6 +- blocksuite/affine/blocks/latex/package.json | 10 +- .../blocks/latex/src/configs/tooltips.ts | 5 +- blocksuite/affine/blocks/latex/tsconfig.json | 2 - blocksuite/affine/blocks/list/package.json | 10 +- blocksuite/affine/blocks/note/package.json | 1 - .../affine/blocks/note/src/configs/toolbar.ts | 2 +- .../blocks/note/src/configs/tooltips.ts | 2 +- .../affine/blocks/paragraph/package.json | 3 - .../blocks/paragraph/src/adapters/html.ts | 2 +- .../paragraph/src/adapters/notion-html.ts | 2 +- .../blocks/paragraph/src/paragraph-block.ts | 18 +- blocksuite/affine/blocks/root/package.json | 8 +- .../root/src/edgeless/clipboard/clipboard.ts | 4 +- blocksuite/affine/blocks/root/tsconfig.json | 1 - .../affine/blocks/surface-ref/package.json | 11 +- .../surface-ref/src/configs/tooltips.ts | 4 +- blocksuite/affine/blocks/surface/package.json | 7 +- .../blocks/surface/src/tool/default-tool.ts | 2 +- .../affine/blocks/surface/src/utils/a-star.ts | 2 +- .../affine/blocks/surface/tsconfig.json | 2 - blocksuite/affine/blocks/table/package.json | 4 - .../blocks/table/src/selection-controller.ts | 2 +- .../affine/blocks/table/src/table-cell.ts | 2 +- blocksuite/affine/blocks/table/tsconfig.json | 1 - blocksuite/affine/components/package.json | 10 +- .../card-style-dropdown-menu/dropdown-menu.ts | 6 +- .../components/src/context-menu/button.ts | 2 +- .../components/src/context-menu/menu.ts | 2 +- .../open-doc-dropdown-menu/dropdown-menu.ts | 6 +- blocksuite/affine/components/src/peek/type.ts | 2 +- .../src/size-dropdown-menu/dropdown-menu.ts | 6 +- .../src/view-dropdown-menu/dropdown-menu.ts | 6 +- blocksuite/affine/data-view/package.json | 2 - .../src/core/logical/composite-type.ts | 2 +- .../data-view/src/core/logical/type-system.ts | 2 +- blocksuite/affine/foundation/package.json | 11 - blocksuite/affine/foundation/tsconfig.json | 1 - .../fragments/adapter-panel/package.json | 5 +- .../fragments/adapter-panel/tsconfig.json | 2 - .../affine/fragments/doc-title/package.json | 11 +- .../affine/fragments/doc-title/tsconfig.json | 3 - .../affine/fragments/frame-panel/package.json | 8 +- .../fragments/frame-panel/tsconfig.json | 1 - .../affine/fragments/outline/package.json | 7 +- .../affine/fragments/outline/tsconfig.json | 2 - blocksuite/affine/gfx/brush/package.json | 12 +- blocksuite/affine/gfx/brush/tsconfig.json | 4 +- blocksuite/affine/gfx/connector/package.json | 5 +- .../gfx/connector/src/connector-manager.ts | 2 +- blocksuite/affine/gfx/group/package.json | 10 +- blocksuite/affine/gfx/group/tsconfig.json | 3 +- blocksuite/affine/gfx/link/package.json | 16 +- blocksuite/affine/gfx/link/tsconfig.json | 7 +- blocksuite/affine/gfx/mindmap/package.json | 7 +- blocksuite/affine/gfx/mindmap/tsconfig.json | 2 - blocksuite/affine/gfx/note/package.json | 9 +- blocksuite/affine/gfx/note/tsconfig.json | 3 +- blocksuite/affine/gfx/pointer/package.json | 12 +- blocksuite/affine/gfx/pointer/tsconfig.json | 5 +- blocksuite/affine/gfx/shape/package.json | 4 +- blocksuite/affine/gfx/template/package.json | 10 +- .../template/src/toolbar/builtin-templates.ts | 8 +- .../template/src/toolbar/template-panel.ts | 11 +- blocksuite/affine/gfx/template/tsconfig.json | 2 - blocksuite/affine/gfx/text/package.json | 8 +- .../affine/gfx/text/src/toolbar/actions.ts | 2 +- blocksuite/affine/gfx/text/tsconfig.json | 3 +- .../affine/inlines/comment/package.json | 7 - .../affine/inlines/comment/tsconfig.json | 1 - .../affine/inlines/footnote/package.json | 9 - .../affine/inlines/footnote/tsconfig.json | 1 - blocksuite/affine/inlines/latex/package.json | 12 - blocksuite/affine/inlines/latex/tsconfig.json | 1 - blocksuite/affine/inlines/link/package.json | 8 - .../link/src/link-node/configs/toolbar.ts | 2 +- .../affine/inlines/mention/package.json | 14 - .../affine/inlines/mention/tsconfig.json | 2 - blocksuite/affine/inlines/preset/package.json | 16 - .../affine/inlines/preset/tsconfig.json | 1 - .../affine/inlines/reference/package.json | 7 - .../src/reference-node/configs/toolbar.ts | 2 +- blocksuite/affine/model/package.json | 1 - blocksuite/affine/rich-text/package.json | 9 - blocksuite/affine/rich-text/src/hooks.ts | 2 +- blocksuite/affine/rich-text/src/rich-text.ts | 2 +- blocksuite/affine/shared/package.json | 1 - blocksuite/affine/shared/src/utils/index.ts | 1 + .../affine/shared/src/utils/safe-html.ts | 22 + .../affine/widgets/drag-handle/package.json | 7 +- .../edgeless-auto-connect/package.json | 6 +- .../edgeless-auto-connect/tsconfig.json | 1 - .../edgeless-dragging-area/package.json | 11 +- .../edgeless-dragging-area/tsconfig.json | 4 - .../edgeless-selected-rect/package.json | 3 - .../edgeless-selected-rect/tsconfig.json | 1 - .../widgets/edgeless-toolbar/package.json | 1 - .../widgets/edgeless-toolbar/tsconfig.json | 1 - .../edgeless-zoom-toolbar/package.json | 3 +- .../affine/widgets/frame-title/package.json | 4 +- .../widgets/keyboard-toolbar/package.json | 9 +- .../widgets/keyboard-toolbar/tsconfig.json | 4 +- .../affine/widgets/linked-doc/package.json | 3 - .../affine/widgets/linked-doc/tsconfig.json | 1 - .../affine/widgets/note-slicer/package.json | 8 +- .../affine/widgets/note-slicer/tsconfig.json | 1 - .../widgets/page-dragging-area/package.json | 13 +- .../widgets/page-dragging-area/src/utils.ts | 2 +- .../widgets/page-dragging-area/tsconfig.json | 5 +- .../widgets/remote-selection/package.json | 6 +- .../widgets/remote-selection/tsconfig.json | 2 - .../widgets/scroll-anchoring/package.json | 3 +- .../affine/widgets/slash-menu/package.json | 4 +- .../affine/widgets/toolbar/package.json | 4 +- .../widgets/viewport-overlay/package.json | 12 +- .../widgets/viewport-overlay/tsconfig.json | 3 - blocksuite/docs/package.json | 3 - blocksuite/docs/tsconfig.json | 2 +- blocksuite/framework/global/package.json | 3 +- .../framework/global/src/gfx/model/vec.ts | 4 +- .../framework/std/src/event/control/range.ts | 2 +- .../std/src/inline/services/delta.ts | 2 +- .../std/src/inline/utils/range-conversion.ts | 2 +- .../src/view/element/gfx-block-component.ts | 4 +- blocksuite/framework/store/package.json | 4 - .../src/__tests__/collection.unit.spec.ts | 2 +- .../framework/store/src/reactive/proxy.ts | 4 +- .../framework/store/src/reactive/text/text.ts | 2 +- blocksuite/integration-test/package.json | 9 +- .../src/__tests__/edgeless/layer.spec.ts | 2 +- .../_common/components/starter-debug-menu.ts | 2 +- blocksuite/playground/package.json | 7 - blocksuite/playground/tsconfig.json | 1 - eslint.config.mjs | 81 +- nyc.config.js | 2 +- package.json | 9 +- packages/backend/server/package.json | 4 +- .../__tests__/copilot/native-provider.spec.ts | 2 +- .../backend/server/src/base/utils/request.ts | 15 +- .../server/src/core/doc/storage/lock.ts | 2 +- .../src/plugins/calendar/providers/caldav.ts | 6 +- .../plugins/copilot/transcript/resolver.ts | 2 +- packages/common/graphql/package.json | 2 - .../src/graphql/access-token/create.gql | 2 +- .../src/graphql/access-token/revoke.gql | 2 +- .../graphql/src/graphql/admin/config.gql | 2 +- .../src/graphql/admin/import-users.gql | 2 +- .../src/graphql/admin/send-test-email.gql | 29 +- .../src/graphql/admin/update-config.gql | 2 +- .../graphql/src/graphql/blob-upload-abort.gql | 6 +- .../src/graphql/blob-upload-complete.gql | 14 +- .../src/graphql/blob-upload-create.gql | 14 +- .../src/graphql/blob-upload-part-url.gql | 7 +- .../calendar/update-calendar-account.gql | 10 +- .../src/graphql/comment-change-list.gql | 6 +- .../graphql/src/graphql/comment-list.gql | 6 +- .../src/graphql/comment-upload-attachment.gql | 12 +- .../src/graphql/copilot-apply-doc-updates.gql | 16 +- .../src/graphql/copilot-context-match-all.gql | 23 +- .../graphql/copilot-context-match-docs.gql | 18 +- .../graphql/copilot-context-match-files.gql | 16 +- .../copilot-history-list-pinned-session.gql | 14 +- .../copilot-jobs-transcription-add.gql | 16 +- .../copilot-session-get-latest-doc.gql | 5 +- .../src/graphql/copilot-session-get.gql | 10 +- .../graphql/copilot-workspace-file-get.gql | 5 +- .../graphql/copilot-workspace-file-remove.gql | 5 +- .../copilot-workspace-ignored-docs-add.gql | 5 +- .../copilot-workspace-ignored-docs-get.gql | 5 +- .../copilot-workspace-ignored-docs-remove.gql | 10 +- .../create-self-host-customer-portal.gql | 2 +- .../get-doc-created-by-updated-by-list.gql | 9 +- .../src/graphql/get-doc-default-role.gql | 2 +- .../graphql/src/graphql/get-doc-summary.gql | 2 +- .../graphql/get-members-by-workspace-id.gql | 7 +- .../graphql/get-page-granted-users-list.gql | 8 +- .../src/graphql/get-public-user-by-id.gql | 12 +- .../src/graphql/get-recently-update-docs.gql | 5 +- .../src/graphql/grant-doc-user-roles.gql | 2 +- .../src/graphql/license/activate-license.gql | 2 +- .../graphql/license/deactivate-license.gql | 2 +- .../src/graphql/license/install-license.gql | 2 +- .../src/graphql/license/license-body.gql | 2 +- .../src/graphql/list-notifications.gql | 2 +- .../graphql/src/graphql/mention-user.gql | 2 +- .../graphql/src/graphql/read-notification.gql | 2 +- .../src/graphql/revoke-doc-user-roles.gql | 2 +- .../src/graphql/update-doc-default-role.gql | 2 +- .../src/graphql/update-doc-user-role.gql | 2 +- .../graphql/workspace-intive-by-emails.gql | 10 +- .../workspace-invite-accept-by-invite-id.gql | 10 +- packages/common/graphql/tsconfig.json | 6 +- packages/common/infra/package.json | 7 - .../infra/src/framework/core/provider.ts | 2 +- .../common/infra/src/livedata/livedata.ts | 4 +- packages/common/nbstore/package.json | 1 - .../src/impls/idb/indexer/inverted-index.ts | 6 +- packages/common/nbstore/src/storage/lock.ts | 2 +- .../common/nbstore/src/sync/blob/index.ts | 2 +- packages/common/nbstore/src/sync/blob/peer.ts | 4 +- packages/common/s3-compat/package.json | 3 +- packages/frontend/admin/package.json | 6 +- packages/frontend/admin/src/index.tsx | 2 +- .../components/use-user-management.ts | 2 +- packages/frontend/admin/tsconfig.json | 3 +- packages/frontend/apps/android/package.json | 3 - .../apps/electron-renderer/package.json | 7 +- .../apps/electron-renderer/tsconfig.json | 3 +- packages/frontend/apps/electron/package.json | 3 - packages/frontend/apps/ios/package.json | 7 +- packages/frontend/apps/ios/tsconfig.json | 3 +- packages/frontend/apps/mobile/package.json | 4 - packages/frontend/apps/mobile/tsconfig.json | 1 - packages/frontend/apps/web/package.json | 3 - packages/frontend/apps/web/tsconfig.json | 1 - packages/frontend/component/package.json | 3 - .../auth-components/onboarding-page.tsx | 2 +- packages/frontend/component/tsconfig.json | 4 +- packages/frontend/core/package.json | 9 - .../ai/components/ai-tools/code-artifact.ts | 4 +- .../ai/components/playground/content.ts | 4 +- .../block-suite-editor/lit-adaper.tsx | 2 +- .../block-suite-page-list/utils.tsx | 5 +- .../code-block-preview/html-preview.ts | 6 +- .../editor-config/toolbar/index.ts | 2 +- .../comment-editor/linked-widget-config.ts | 2 +- .../editor/edgeless/snapshot.tsx | 2 +- .../integration/mcp-server/setting-panel.tsx | 2 +- .../core/src/mobile/pages/sign-in.tsx | 2 +- .../modules/at-menu-config/services/index.ts | 2 +- .../frontend/core/src/modules/cloud/index.ts | 2 +- .../src/modules/desktop-api/impl/index.ts | 2 +- .../src/modules/search-menu/services/index.ts | 2 +- .../core/src/modules/storage/impls/storage.ts | 2 +- .../modules/workbench/view/browser-adapter.ts | 2 +- .../modules/workbench/view/desktop-adapter.ts | 2 +- .../core/src/utils/navigable-history.ts | 2 +- packages/frontend/electron-api/package.json | 3 - .../media-capture-playground/server/main.ts | 2 +- .../web/components/saved-recording-item.tsx | 2 +- .../frontend/native/__tests__/pool.spec.mts | 3 +- packages/frontend/routes/package.json | 1 - tests/affine-local/package.json | 2 - tests/affine-local/tsconfig.json | 6 +- tests/blocksuite/e2e/code/copy-paste.spec.ts | 2 +- tests/blocksuite/e2e/selection/block.spec.ts | 2 +- tests/blocksuite/e2e/utils/actions/misc.ts | 4 +- tests/blocksuite/package.json | 3 +- tests/kit/package.json | 4 +- tests/kit/src/utils/keyboard.ts | 2 +- tools/cli/src/rspack-shared/error-handler.js | 2 +- tools/utils/src/workspace.gen.ts | 82 +- tsconfig.json | 1 - yarn.lock | 1276 +++++------------ 285 files changed, 937 insertions(+), 1983 deletions(-) create mode 100644 blocksuite/affine/shared/src/utils/safe-html.ts diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 9d843ac71..b3a5cca02 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -82,17 +82,13 @@ jobs: run: | set -euo pipefail "$(go env GOPATH)/bin/actionlint" - - name: Run oxlint - # oxlint is fast, so wrong code will fail quickly - run: | - set -euo pipefail - oxlint_version="$(node -e "console.log(require('./package.json').devDependencies.oxlint)")" - yarn dlx "oxlint@${oxlint_version}" --deny-warnings - name: Setup Node.js uses: ./.github/actions/setup-node with: electron-install: false full-cache: true + - name: Run oxlint + run: yarn lint:ox - name: Run i18n codegen run: yarn affine @affine/i18n build - name: Run ESLint diff --git a/.oxlintrc.json b/.oxlintrc.json index ecd026bb7..cb667d815 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -1,10 +1,18 @@ { "$schema": "./node_modules/oxlint/configuration_schema.json", + "jsPlugins": [ + "eslint-plugin-simple-import-sort", + "eslint-plugin-sonarjs", + "eslint-plugin-lit" + ], "plugins": ["import", "react", "typescript", "unicorn", "promise"], "categories": { "correctness": "error", "perf": "error" }, + "options": { + "typeAware": true + }, "env": { "builtin": true, "es2026": true @@ -15,6 +23,7 @@ ".github/helm", ".git", ".vscode", + ".context/**/*.js", ".yarnrc.yml", ".docker", "**/.storybook", @@ -56,9 +65,31 @@ "react/display-name": "error", "react/rules-of-hooks": "error", "react/exhaustive-deps": "warn", - "@typescript-eslint/prefer-for-of": "error", - "@typescript-eslint/no-unsafe-function-type": "error", - "@typescript-eslint/no-wrapper-object-types": "error", + "typescript/prefer-for-of": "error", + "typescript/no-unsafe-function-type": "error", + "typescript/no-wrapper-object-types": "error", + "typescript/unified-signatures": "error", + "typescript/await-thenable": "allow", + "typescript/no-floating-promises": "allow", + "typescript/no-misused-promises": "allow", + "typescript/prefer-readonly": "allow", + "typescript/require-array-sort-compare": "allow", + "typescript/return-await": ["error", "error-handling-correctness-only"], + "typescript/no-array-delete": "allow", + "typescript/no-base-to-string": "allow", + "typescript/no-duplicate-type-constituents": "allow", + "typescript/no-for-in-array": "allow", + "typescript/no-implied-eval": "allow", + "typescript/no-meaningless-void-operator": "allow", + "typescript/no-misused-spread": "allow", + "typescript/no-redundant-type-constituents": "allow", + "typescript/no-unnecessary-parameter-property-assignment": "allow", + "typescript/no-unsafe-unary-minus": "allow", + "typescript/no-useless-empty-export": "allow", + "typescript/prefer-namespace-keyword": "allow", + "typescript/prefer-string-starts-ends-with": "allow", + "typescript/restrict-template-expressions": "allow", + "typescript/unbound-method": "allow", "no-restricted-imports": [ "error", { @@ -167,6 +198,29 @@ "react/jsx-no-target-blank": "error", "react/jsx-no-comment-textnodes": "error", "react/no-array-index-key": "off", + "simple-import-sort/imports": "error", + "simple-import-sort/exports": "error", + "sonarjs/no-all-duplicated-branches": "error", + "sonarjs/no-element-overwrite": "error", + "sonarjs/no-empty-collection": "error", + "sonarjs/no-extra-arguments": "error", + "sonarjs/no-identical-conditions": "error", + "sonarjs/no-identical-expressions": "error", + "sonarjs/no-ignored-return": "error", + "sonarjs/no-use-of-empty-return-value": "error", + "sonarjs/non-existent-operator": "error", + "sonarjs/no-collapsible-if": "error", + "sonarjs/no-same-line-conditional": "error", + "sonarjs/no-duplicated-branches": "error", + "sonarjs/no-collection-size-mischeck": "error", + "sonarjs/no-identical-functions": "error", + "sonarjs/no-gratuitous-expressions": "error", + "lit/attribute-value-entities": "error", + "lit/binding-positions": "error", + "lit/no-duplicate-template-bindings": "error", + "lit/no-invalid-html": "error", + "lit/no-legacy-template-syntax": "error", + "lit/no-property-change-update": "error", "typescript/consistent-type-imports": "error", "typescript/no-non-null-assertion": "error", "typescript/triple-slash-reference": "error", @@ -174,7 +228,6 @@ "typescript/no-duplicate-enum-values": "error", "typescript/no-extra-non-null-assertion": "error", "typescript/no-misused-new": "error", - "typescript/prefer-for-of": "error", "typescript/no-unsafe-declaration-merging": "error", "typescript/no-unnecessary-type-constraint": "error", "typescript/no-this-alias": [ @@ -226,11 +279,10 @@ "ignoreTypes": true } ], - "import/sort-imports": "error", "import/namespace": "off", "import/no-webpack-loader-syntax": "error", "import/no-duplicates": "error", - "import/no-import-assign": "error", + "no-import-assign": "error", "import/no-self-import": "error" }, "overrides": [ @@ -269,7 +321,7 @@ { "files": ["blocksuite/**/*.ts"], "rules": { - "eslint/eqeqeq": "off", + "eqeqeq": "off", "typescript/no-non-null-assertion": "off", "unicorn/prefer-array-some": "off" } @@ -290,6 +342,17 @@ "blocksuite/**/*.{ts,tsx}" ], "rules": { + "typescript/await-thenable": "error", + "typescript/no-floating-promises": [ + "error", + { + "ignoreVoid": false, + "ignoreIIFE": false + } + ], + "typescript/no-misused-promises": "error", + "typescript/prefer-readonly": "error", + "typescript/require-array-sort-compare": "error", "react/exhaustive-deps": [ "warn", { @@ -310,6 +373,14 @@ "**/e2e/**/*" ], "rules": { + "typescript/no-floating-promises": [ + "error", + { + "ignoreVoid": true, + "ignoreIIFE": false + } + ], + "typescript/no-misused-promises": "off", "no-restricted-imports": "off" } }, @@ -318,6 +389,13 @@ "rules": { "react/rules-of-hooks": "off" } + }, + { + "files": ["blocksuite/framework/std/src/view/element/lit-host.ts"], + "rules": { + "lit/binding-positions": "off", + "lit/no-invalid-html": "off" + } } ] } diff --git a/.prettierignore b/.prettierignore index 38a1ef684..55f12213b 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,6 +4,7 @@ .github/helm .git .vscode +.context/**/*.js .yarnrc.yml .docker **/.storybook diff --git a/.vscode/settings.template.json b/.vscode/settings.template.json index 0bff7d69b..619d5a9f8 100644 --- a/.vscode/settings.template.json +++ b/.vscode/settings.template.json @@ -32,6 +32,8 @@ "editor.defaultFormatter": "esbenp.prettier-vscode" }, "vitest.include": ["packages/**/*.spec.ts", "packages/**/*.spec.tsx"], + "eslint.runtime": "node", + "eslint.execArgv": ["--max_old_space_size=16384"], "rust-analyzer.check.extraEnv": { "DATABASE_URL": "sqlite:affine.db" }, diff --git a/blocksuite/affine/all/package.json b/blocksuite/affine/all/package.json index 3494b132c..c0b2ac422 100644 --- a/blocksuite/affine/all/package.json +++ b/blocksuite/affine/all/package.json @@ -78,8 +78,7 @@ "@blocksuite/global": "workspace:*", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@blocksuite/sync": "workspace:*", - "rxjs": "^7.8.2" + "@blocksuite/sync": "workspace:*" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/all/src/store/index.ts b/blocksuite/affine/all/src/store/index.ts index c8021b01f..1fc8dd5ab 100644 --- a/blocksuite/affine/all/src/store/index.ts +++ b/blocksuite/affine/all/src/store/index.ts @@ -1,3 +1,3 @@ -/* eslint-disable @typescript-eslint/no-restricted-imports */ +/* oxlint-disable no-restricted-imports */ export * from '@blocksuite/store'; diff --git a/blocksuite/affine/blocks/attachment/package.json b/blocksuite/affine/blocks/attachment/package.json index 863986dd6..63acdf6f7 100644 --- a/blocksuite/affine/blocks/attachment/package.json +++ b/blocksuite/affine/blocks/attachment/package.json @@ -21,13 +21,10 @@ "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", "file-type": "^21.0.0", "lit": "^3.2.0", - "rxjs": "^7.8.2", - "zod": "^3.25.76" + "rxjs": "^7.8.2" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/blocks/attachment/src/configs/toolbar.ts b/blocksuite/affine/blocks/attachment/src/configs/toolbar.ts index 875629ad0..3476e905d 100644 --- a/blocksuite/affine/blocks/attachment/src/configs/toolbar.ts +++ b/blocksuite/affine/blocks/attachment/src/configs/toolbar.ts @@ -144,7 +144,7 @@ export const attachmentViewDropdownMenu = { @toggle=${onToggle} .actions=${actions.value} .context=${ctx} - .viewType$=${viewType$} + .viewTypeSignal=${viewType$} >`; }, } as const satisfies ToolbarActionGroup; @@ -366,7 +366,7 @@ const builtinSurfaceToolbarConfig = { @toggle=${onToggle} .actions=${actions} .context=${ctx} - .style$=${style$} + .styleSignal=${style$} >` )}`; }, diff --git a/blocksuite/affine/blocks/bookmark/package.json b/blocksuite/affine/blocks/bookmark/package.json index 20b4d4c62..a957d4b8f 100644 --- a/blocksuite/affine/blocks/bookmark/package.json +++ b/blocksuite/affine/blocks/bookmark/package.json @@ -22,13 +22,11 @@ "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", "lit": "^3.2.0", "rxjs": "^7.8.2", - "yjs": "^13.6.27", - "zod": "^3.25.76" + "yjs": "^13.6.27" }, "devDependencies": { "@vitest/browser-playwright": "^4.0.18", diff --git a/blocksuite/affine/blocks/bookmark/src/configs/toolbar.ts b/blocksuite/affine/blocks/bookmark/src/configs/toolbar.ts index fea47f1b5..207393657 100644 --- a/blocksuite/affine/blocks/bookmark/src/configs/toolbar.ts +++ b/blocksuite/affine/blocks/bookmark/src/configs/toolbar.ts @@ -237,7 +237,7 @@ const builtinToolbarConfig = { @toggle=${onToggle} .actions=${actions} .context=${ctx} - .viewType$=${viewType$} + .viewTypeSignal=${viewType$} >` )}`; }, @@ -282,7 +282,7 @@ const builtinToolbarConfig = { @toggle=${onToggle} .actions=${actions} .context=${ctx} - .style$=${model.props.style$} + .styleSignal=${model.props.style$} >` )}`; }, @@ -472,7 +472,7 @@ const builtinSurfaceToolbarConfig = { @toggle=${onToggle} .actions=${actions} .context=${ctx} - .viewType$=${viewType$} + .viewTypeSignal=${viewType$} >` )}`; }, @@ -534,7 +534,7 @@ const builtinSurfaceToolbarConfig = { @toggle=${onToggle} .actions=${actions} .context=${ctx} - .style$=${style$} + .styleSignal=${style$} >` )}`; }, @@ -591,7 +591,7 @@ const builtinSurfaceToolbarConfig = { @select=${onSelect} @toggle=${onToggle} .format=${format} - .size$=${scale$} + .sizeSignal=${scale$} >` )}`; }, diff --git a/blocksuite/affine/blocks/callout/package.json b/blocksuite/affine/blocks/callout/package.json index ba2897676..ff4225069 100644 --- a/blocksuite/affine/blocks/callout/package.json +++ b/blocksuite/affine/blocks/callout/package.json @@ -17,21 +17,13 @@ "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/affine-widget-slash-menu": "workspace:*", - "@blocksuite/global": "workspace:*", "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@emoji-mart/data": "^1.2.1", "@emotion/css": "^11.13.5", - "@floating-ui/dom": "^1.6.10", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", - "@types/mdast": "^4.0.4", - "emoji-mart": "^5.6.0", - "lit": "^3.2.0", - "rxjs": "^7.8.2", - "zod": "^3.25.76" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/blocks/callout/src/configs/tooltips.ts b/blocksuite/affine/blocks/callout/src/configs/tooltips.ts index f1900c85b..3a1449f74 100644 --- a/blocksuite/affine/blocks/callout/src/configs/tooltips.ts +++ b/blocksuite/affine/blocks/callout/src/configs/tooltips.ts @@ -25,4 +25,4 @@ export const calloutTooltip = html` { const options: Record = {}; - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions const getTag = (name: string) => { if (options[name]) return options[name]; const tag: SelectTag = { diff --git a/blocksuite/affine/blocks/divider/package.json b/blocksuite/affine/blocks/divider/package.json index 8f6c4fc3e..0d29c8a51 100644 --- a/blocksuite/affine/blocks/divider/package.json +++ b/blocksuite/affine/blocks/divider/package.json @@ -15,17 +15,10 @@ "@blocksuite/affine-model": "workspace:*", "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", - "@blocksuite/global": "workspace:*", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", - "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", "@types/mdast": "^4.0.4", - "lit": "^3.2.0", - "rxjs": "^7.8.2", - "zod": "^3.25.76" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/blocks/divider/tsconfig.json b/blocksuite/affine/blocks/divider/tsconfig.json index 45d028d7e..6584e42bb 100644 --- a/blocksuite/affine/blocks/divider/tsconfig.json +++ b/blocksuite/affine/blocks/divider/tsconfig.json @@ -12,7 +12,6 @@ { "path": "../../model" }, { "path": "../../rich-text" }, { "path": "../../shared" }, - { "path": "../../../framework/global" }, { "path": "../../../framework/std" }, { "path": "../../../framework/store" } ] diff --git a/blocksuite/affine/blocks/edgeless-text/package.json b/blocksuite/affine/blocks/edgeless-text/package.json index 88a4b22d7..b70202e3a 100644 --- a/blocksuite/affine/blocks/edgeless-text/package.json +++ b/blocksuite/affine/blocks/edgeless-text/package.json @@ -11,25 +11,17 @@ "license": "MIT", "dependencies": { "@blocksuite/affine-block-surface": "workspace:*", - "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", "@blocksuite/affine-gfx-text": "workspace:*", "@blocksuite/affine-inline-preset": "workspace:*", "@blocksuite/affine-model": "workspace:*", "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", - "@blocksuite/affine-widget-edgeless-toolbar": "workspace:*", "@blocksuite/global": "workspace:*", - "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "lit": "^3.2.0", - "rxjs": "^7.8.2", - "zod": "^3.25.76" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/blocks/edgeless-text/tsconfig.json b/blocksuite/affine/blocks/edgeless-text/tsconfig.json index 4ea1bf1b3..6c3efba63 100644 --- a/blocksuite/affine/blocks/edgeless-text/tsconfig.json +++ b/blocksuite/affine/blocks/edgeless-text/tsconfig.json @@ -8,14 +8,12 @@ "include": ["./src"], "references": [ { "path": "../surface" }, - { "path": "../../components" }, { "path": "../../ext-loader" }, { "path": "../../gfx/text" }, { "path": "../../inlines/preset" }, { "path": "../../model" }, { "path": "../../rich-text" }, { "path": "../../shared" }, - { "path": "../../widgets/edgeless-toolbar" }, { "path": "../../../framework/global" }, { "path": "../../../framework/std" }, { "path": "../../../framework/store" } diff --git a/blocksuite/affine/blocks/embed-doc/package.json b/blocksuite/affine/blocks/embed-doc/package.json index 71bbf4d3a..2e187b0b4 100644 --- a/blocksuite/affine/blocks/embed-doc/package.json +++ b/blocksuite/affine/blocks/embed-doc/package.json @@ -23,19 +23,12 @@ "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", "@types/lodash-es": "^4.17.12", "lit": "^3.2.0", "lodash-es": "^4.17.23", "rxjs": "^7.8.2", - "yjs": "^13.6.27", - "zod": "^3.25.76" - }, - "devDependencies": { - "vitest": "^4.0.18" + "yjs": "^13.6.27" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/blocks/embed-doc/src/common/render-linked-doc.ts b/blocksuite/affine/blocks/embed-doc/src/common/render-linked-doc.ts index 8f00fd4c7..7cb28cc4b 100644 --- a/blocksuite/affine/blocks/embed-doc/src/common/render-linked-doc.ts +++ b/blocksuite/affine/blocks/embed-doc/src/common/render-linked-doc.ts @@ -25,7 +25,7 @@ export function renderLinkedDocInCard( return; } - // eslint-disable-next-line sonarjs/no-collapsible-if + // oxlint-disable-next-line sonarjs/no-collapsible-if if ('bannerContainer' in card) { if (card.editorMode === 'page') { renderPageAsBanner(card).catch(e => { diff --git a/blocksuite/affine/blocks/embed-doc/src/embed-linked-doc-block/configs/toolbar.ts b/blocksuite/affine/blocks/embed-doc/src/embed-linked-doc-block/configs/toolbar.ts index 7d6854557..46dcec548 100644 --- a/blocksuite/affine/blocks/embed-doc/src/embed-linked-doc-block/configs/toolbar.ts +++ b/blocksuite/affine/blocks/embed-doc/src/embed-linked-doc-block/configs/toolbar.ts @@ -247,7 +247,7 @@ const conversionsActionGroup = { @toggle=${onToggle} .actions=${actions} .context=${ctx} - .viewType$=${viewType$} + .viewTypeSignal=${viewType$} >` )}`; }, @@ -299,7 +299,7 @@ const builtinToolbarConfig = { @toggle=${onToggle} .actions=${actions} .context=${ctx} - .style$=${model.props.style$} + .styleSignal=${model.props.style$} >` )}`; }, @@ -423,7 +423,7 @@ const builtinSurfaceToolbarConfig = { @toggle=${onToggle} .actions=${actions} .context=${ctx} - .style$=${style$} + .styleSignal=${style$} >` )}`; }, @@ -479,7 +479,7 @@ const builtinSurfaceToolbarConfig = { @select=${onSelect} @toggle=${onToggle} .format=${format} - .size$=${scale$} + .sizeSignal=${scale$} >` )}`; }, diff --git a/blocksuite/affine/blocks/embed-doc/src/embed-synced-doc-block/configs/toolbar.ts b/blocksuite/affine/blocks/embed-doc/src/embed-synced-doc-block/configs/toolbar.ts index 80071ea64..c0c1aa712 100644 --- a/blocksuite/affine/blocks/embed-doc/src/embed-synced-doc-block/configs/toolbar.ts +++ b/blocksuite/affine/blocks/embed-doc/src/embed-synced-doc-block/configs/toolbar.ts @@ -199,7 +199,7 @@ const conversionsActionGroup = { @toggle=${onToggle} .actions=${actions} .context=${ctx} - .viewType$=${viewType$} + .viewTypeSignal=${viewType$} >` )}`; }, @@ -466,7 +466,7 @@ const builtinSurfaceToolbarConfig = { @select=${onSelect} @toggle=${onToggle} .format=${format} - .size$=${scale$} + .sizeSignal=${scale$} >` )}`; }, diff --git a/blocksuite/affine/blocks/embed/package.json b/blocksuite/affine/blocks/embed/package.json index 5ee9d71d1..bcf20a50e 100644 --- a/blocksuite/affine/blocks/embed/package.json +++ b/blocksuite/affine/blocks/embed/package.json @@ -13,10 +13,7 @@ "@blocksuite/affine-block-surface": "workspace:*", "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", - "@blocksuite/affine-gfx-pointer": "workspace:*", - "@blocksuite/affine-inline-reference": "workspace:*", "@blocksuite/affine-model": "workspace:*", - "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/affine-widget-slash-menu": "workspace:*", "@blocksuite/global": "workspace:*", @@ -24,18 +21,10 @@ "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", - "yjs": "^13.6.27", - "zod": "^3.25.76" - }, - "devDependencies": { - "vitest": "^4.0.18" + "yjs": "^13.6.27" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/blocks/embed/src/configs/toolbar.ts b/blocksuite/affine/blocks/embed/src/configs/toolbar.ts index 81ce40f61..1d9d2e2d6 100644 --- a/blocksuite/affine/blocks/embed/src/configs/toolbar.ts +++ b/blocksuite/affine/blocks/embed/src/configs/toolbar.ts @@ -281,7 +281,7 @@ function createBuiltinToolbarConfigForExternal( @toggle=${onToggle} .actions=${actions} .context=${ctx} - .viewType$=${viewType$} + .viewTypeSignal=${viewType$} >` )}`; }, @@ -329,7 +329,7 @@ function createBuiltinToolbarConfigForExternal( @toggle=${onToggle} .actions=${actions} .context=${ctx} - .style$=${model.props.style$} + .styleSignal=${model.props.style$} >` )}`; }, @@ -514,7 +514,7 @@ const createBuiltinSurfaceToolbarConfigForExternal = ( @toggle=${onToggle} .actions=${actions} .context=${ctx} - .viewType$=${viewType$} + .viewTypeSignal=${viewType$} >` )}`; }, @@ -579,7 +579,7 @@ const createBuiltinSurfaceToolbarConfigForExternal = ( @toggle=${onToggle} .actions=${actions} .context=${ctx} - .style$=${style$} + .styleSignal=${style$} >` )}`; }, @@ -646,7 +646,7 @@ const createBuiltinSurfaceToolbarConfigForExternal = ( @select=${onSelect} @toggle=${onToggle} .format=${format} - .size$=${scale$} + .sizeSignal=${scale$} >` )}`; }, diff --git a/blocksuite/affine/blocks/embed/src/embed-iframe-block/configs/toolbar.ts b/blocksuite/affine/blocks/embed/src/embed-iframe-block/configs/toolbar.ts index 1820c1442..4f6e1c2c8 100644 --- a/blocksuite/affine/blocks/embed/src/embed-iframe-block/configs/toolbar.ts +++ b/blocksuite/affine/blocks/embed/src/embed-iframe-block/configs/toolbar.ts @@ -202,7 +202,7 @@ export const builtinToolbarConfig = { .actions=${actions} .context=${ctx} .toggle=${toggle} - .viewType$=${signal(actions[2].label)} + .viewTypeSignal=${signal(actions[2].label)} >` )}`; }, @@ -408,7 +408,7 @@ export const builtinSurfaceToolbarConfig = { @toggle=${onToggle} .actions=${actions} .context=${ctx} - .viewType$=${signal(actions[1].label)} + .viewTypeSignal=${signal(actions[1].label)} >` )}`; }, @@ -465,7 +465,7 @@ export const builtinSurfaceToolbarConfig = { @select=${onSelect} @toggle=${onToggle} .format=${format} - .size$=${scale$} + .sizeSignal=${scale$} >` )}`; }, diff --git a/blocksuite/affine/blocks/embed/src/embed-loom-block/configs/tooltips.ts b/blocksuite/affine/blocks/embed/src/embed-loom-block/configs/tooltips.ts index 251bf1030..311f848fe 100644 --- a/blocksuite/affine/blocks/embed/src/embed-loom-block/configs/tooltips.ts +++ b/blocksuite/affine/blocks/embed/src/embed-loom-block/configs/tooltips.ts @@ -27,4 +27,4 @@ export const LoomTooltip = html` -` +`; diff --git a/blocksuite/affine/blocks/embed/tsconfig.json b/blocksuite/affine/blocks/embed/tsconfig.json index e387f0a9c..f2718e775 100644 --- a/blocksuite/affine/blocks/embed/tsconfig.json +++ b/blocksuite/affine/blocks/embed/tsconfig.json @@ -10,10 +10,7 @@ { "path": "../surface" }, { "path": "../../components" }, { "path": "../../ext-loader" }, - { "path": "../../gfx/pointer" }, - { "path": "../../inlines/reference" }, { "path": "../../model" }, - { "path": "../../rich-text" }, { "path": "../../shared" }, { "path": "../../widgets/slash-menu" }, { "path": "../../../framework/global" }, diff --git a/blocksuite/affine/blocks/frame/package.json b/blocksuite/affine/blocks/frame/package.json index 356e53f23..dde92a43c 100644 --- a/blocksuite/affine/blocks/frame/package.json +++ b/blocksuite/affine/blocks/frame/package.json @@ -22,15 +22,10 @@ "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", - "@types/mdast": "^4.0.4", "lit": "^3.2.0", - "rxjs": "^7.8.2", - "yjs": "^13.6.27", - "zod": "^3.25.76" + "yjs": "^13.6.27" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/blocks/image/package.json b/blocksuite/affine/blocks/image/package.json index a8bbccd45..ec607fff3 100644 --- a/blocksuite/affine/blocks/image/package.json +++ b/blocksuite/affine/blocks/image/package.json @@ -22,14 +22,10 @@ "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", "file-type": "^21.0.0", - "lit": "^3.2.0", - "rxjs": "^7.8.2", - "zod": "^3.25.76" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/blocks/latex/package.json b/blocksuite/affine/blocks/latex/package.json index 114bf1ec8..f57e15c17 100644 --- a/blocksuite/affine/blocks/latex/package.json +++ b/blocksuite/affine/blocks/latex/package.json @@ -15,24 +15,16 @@ "@blocksuite/affine-ext-loader": "workspace:*", "@blocksuite/affine-inline-latex": "workspace:*", "@blocksuite/affine-model": "workspace:*", - "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/affine-widget-slash-menu": "workspace:*", - "@blocksuite/global": "workspace:*", "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "@types/katex": "^0.16.7", - "@types/mdast": "^4.0.4", "katex": "^0.16.27", "lit": "^3.2.0", - "remark-math": "^6.0.0", - "rxjs": "^7.8.2", - "zod": "^3.25.76" + "remark-math": "^6.0.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/blocks/latex/src/configs/tooltips.ts b/blocksuite/affine/blocks/latex/src/configs/tooltips.ts index 9c49fcc46..f7d257f88 100644 --- a/blocksuite/affine/blocks/latex/src/configs/tooltips.ts +++ b/blocksuite/affine/blocks/latex/src/configs/tooltips.ts @@ -1,7 +1,7 @@ import { unsafeCSSVarV2 } from '@blocksuite/affine-shared/theme'; +import { unsafeHTML } from '@blocksuite/affine-shared/utils'; import katex from 'katex'; import { html } from 'lit'; -import { unsafeHTML } from 'lit/directives/unsafe-html.js'; export const LatexTooltip = ( str: string, @@ -35,7 +35,8 @@ export const LatexTooltip = ( katex.renderToString(latex, { displayMode, output: 'mathml', - }) + }), + { USE_PROFILES: { html: true, mathMl: true } } )} `; diff --git a/blocksuite/affine/blocks/latex/tsconfig.json b/blocksuite/affine/blocks/latex/tsconfig.json index 774bffbed..bafaed6fb 100644 --- a/blocksuite/affine/blocks/latex/tsconfig.json +++ b/blocksuite/affine/blocks/latex/tsconfig.json @@ -12,10 +12,8 @@ { "path": "../../ext-loader" }, { "path": "../../inlines/latex" }, { "path": "../../model" }, - { "path": "../../rich-text" }, { "path": "../../shared" }, { "path": "../../widgets/slash-menu" }, - { "path": "../../../framework/global" }, { "path": "../../../framework/std" }, { "path": "../../../framework/store" } ] diff --git a/blocksuite/affine/blocks/list/package.json b/blocksuite/affine/blocks/list/package.json index ab21e70b5..46d2f676b 100644 --- a/blocksuite/affine/blocks/list/package.json +++ b/blocksuite/affine/blocks/list/package.json @@ -21,17 +21,9 @@ "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", "@types/mdast": "^4.0.4", - "lit": "^3.2.0", - "rxjs": "^7.8.2", - "zod": "^3.25.76" - }, - "devDependencies": { - "vitest": "^4.0.18" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/blocks/note/package.json b/blocksuite/affine/blocks/note/package.json index 63aa1294c..b93be27d8 100644 --- a/blocksuite/affine/blocks/note/package.json +++ b/blocksuite/affine/blocks/note/package.json @@ -33,7 +33,6 @@ "@vanilla-extract/css": "^1.17.0", "lit": "^3.2.0", "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", "zod": "^3.25.76" }, "exports": { diff --git a/blocksuite/affine/blocks/note/src/configs/toolbar.ts b/blocksuite/affine/blocks/note/src/configs/toolbar.ts index 3d44fcfd6..bb800f076 100644 --- a/blocksuite/affine/blocks/note/src/configs/toolbar.ts +++ b/blocksuite/affine/blocks/note/src/configs/toolbar.ts @@ -273,7 +273,7 @@ const builtinSurfaceToolbarConfig = { @select=${onSelect} @toggle=${onToggle} .format=${format} - .size$=${scale$} + .sizeSignal=${scale$} >`; }, }, diff --git a/blocksuite/affine/blocks/note/src/configs/tooltips.ts b/blocksuite/affine/blocks/note/src/configs/tooltips.ts index 2a5c79b19..8008933fc 100644 --- a/blocksuite/affine/blocks/note/src/configs/tooltips.ts +++ b/blocksuite/affine/blocks/note/src/configs/tooltips.ts @@ -240,7 +240,7 @@ export const TodoTooltip = html`Make a list for building preview. -` +`; export const tooltips: Record = { Text: { diff --git a/blocksuite/affine/blocks/paragraph/package.json b/blocksuite/affine/blocks/paragraph/package.json index a784d17c7..dae194827 100644 --- a/blocksuite/affine/blocks/paragraph/package.json +++ b/blocksuite/affine/blocks/paragraph/package.json @@ -20,13 +20,10 @@ "@blocksuite/global": "workspace:*", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", "@types/mdast": "^4.0.4", "lit": "^3.2.0", - "rxjs": "^7.8.2", "zod": "^3.25.76" }, "exports": { diff --git a/blocksuite/affine/blocks/paragraph/src/adapters/html.ts b/blocksuite/affine/blocks/paragraph/src/adapters/html.ts index 7dc12c14f..58a32738f 100644 --- a/blocksuite/affine/blocks/paragraph/src/adapters/html.ts +++ b/blocksuite/affine/blocks/paragraph/src/adapters/html.ts @@ -283,7 +283,7 @@ export const paragraphBlockHtmlAdapterMatcher: BlockHtmlAdapterMatcher = { const { walkerContext } = context; switch (o.node.tagName) { case 'div': { - // eslint-disable-next-line sonarjs/no-collapsible-if + // oxlint-disable-next-line sonarjs/no-collapsible-if if ( o.parent?.node.type === 'element' && o.parent.node.tagName !== 'li' && diff --git a/blocksuite/affine/blocks/paragraph/src/adapters/notion-html.ts b/blocksuite/affine/blocks/paragraph/src/adapters/notion-html.ts index 070ac1e61..cf6ae8630 100644 --- a/blocksuite/affine/blocks/paragraph/src/adapters/notion-html.ts +++ b/blocksuite/affine/blocks/paragraph/src/adapters/notion-html.ts @@ -193,7 +193,7 @@ export const paragraphBlockNotionHtmlAdapterMatcher: BlockNotionHtmlAdapterMatch const { walkerContext } = context; switch (o.node.tagName) { case 'div': { - // eslint-disable-next-line sonarjs/no-collapsible-if + // oxlint-disable-next-line sonarjs/no-collapsible-if if ( o.parent?.node.type === 'element' && !( diff --git a/blocksuite/affine/blocks/paragraph/src/paragraph-block.ts b/blocksuite/affine/blocks/paragraph/src/paragraph-block.ts index 103458b31..590d9c6c8 100644 --- a/blocksuite/affine/blocks/paragraph/src/paragraph-block.ts +++ b/blocksuite/affine/blocks/paragraph/src/paragraph-block.ts @@ -29,7 +29,6 @@ import { query, state } from 'lit/decorators.js'; import { classMap } from 'lit/directives/class-map.js'; import { repeat } from 'lit/directives/repeat.js'; import { styleMap } from 'lit/directives/style-map.js'; -import { unsafeHTML } from 'lit/directives/unsafe-html.js'; import { ParagraphBlockConfigExtension } from './paragraph-block-config.js'; import { paragraphBlockStyles } from './styles.js'; @@ -251,15 +250,18 @@ export class ParagraphBlockComponent extends CaptionedBlockComponent ` + [data-block-id="${sibling.id}"] { + display: none !important; + } + ` + ) + .join('\n'); style = html` `; } diff --git a/blocksuite/affine/blocks/root/package.json b/blocksuite/affine/blocks/root/package.json index 87fd88b22..693b677a4 100644 --- a/blocksuite/affine/blocks/root/package.json +++ b/blocksuite/affine/blocks/root/package.json @@ -34,25 +34,19 @@ "@blocksuite/affine-model": "workspace:*", "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", - "@blocksuite/affine-widget-edgeless-selected-rect": "workspace:*", "@blocksuite/affine-widget-edgeless-toolbar": "workspace:*", "@blocksuite/data-view": "workspace:*", "@blocksuite/global": "workspace:*", "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", "@types/lodash-es": "^4.17.12", "dompurify": "^3.3.0", "html2canvas": "^1.4.1", "lit": "^3.2.0", "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", - "yjs": "^13.6.27", - "zod": "^3.25.76" + "yjs": "^13.6.27" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/blocks/root/src/edgeless/clipboard/clipboard.ts b/blocksuite/affine/blocks/root/src/edgeless/clipboard/clipboard.ts index eb817190b..4e3a056ec 100644 --- a/blocksuite/affine/blocks/root/src/edgeless/clipboard/clipboard.ts +++ b/blocksuite/affine/blocks/root/src/edgeless/clipboard/clipboard.ts @@ -544,7 +544,7 @@ export class EdgelessClipboardController extends PageClipboard { } }); - // eslint-disable-next-line @typescript-eslint/prefer-for-of + // oxlint-disable-next-line @typescript-eslint/prefer-for-of for (let i = 0; i < blocksInsideFrame.length; i++) { const element = blocksInsideFrame[i]; await _drawTopLevelBlock(element, true); @@ -645,7 +645,7 @@ export class EdgelessClipboardController extends PageClipboard { ); }); } else { - // eslint-disable-next-line @typescript-eslint/prefer-for-of + // oxlint-disable-next-line @typescript-eslint/prefer-for-of for (let index = 0; index < content.length; index++) { const blockSnapshot = content[index]; if (blockSnapshot.flavour === 'affine:note') { diff --git a/blocksuite/affine/blocks/root/tsconfig.json b/blocksuite/affine/blocks/root/tsconfig.json index 1e9dd0cab..66dea5d4f 100644 --- a/blocksuite/affine/blocks/root/tsconfig.json +++ b/blocksuite/affine/blocks/root/tsconfig.json @@ -31,7 +31,6 @@ { "path": "../../model" }, { "path": "../../rich-text" }, { "path": "../../shared" }, - { "path": "../../widgets/edgeless-selected-rect" }, { "path": "../../widgets/edgeless-toolbar" }, { "path": "../../data-view" }, { "path": "../../../framework/global" }, diff --git a/blocksuite/affine/blocks/surface-ref/package.json b/blocksuite/affine/blocks/surface-ref/package.json index c1f1c1671..9826203fa 100644 --- a/blocksuite/affine/blocks/surface-ref/package.json +++ b/blocksuite/affine/blocks/surface-ref/package.json @@ -22,17 +22,8 @@ "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", - "fractional-indexing": "^3.2.0", - "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "nanoid": "^5.1.6", - "rxjs": "^7.8.2", - "zod": "^3.25.76" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/blocks/surface-ref/src/configs/tooltips.ts b/blocksuite/affine/blocks/surface-ref/src/configs/tooltips.ts index d2b37c2c9..fc9270640 100644 --- a/blocksuite/affine/blocks/surface-ref/src/configs/tooltips.ts +++ b/blocksuite/affine/blocks/surface-ref/src/configs/tooltips.ts @@ -42,7 +42,7 @@ export const FrameTooltip = html` @@ -108,4 +108,4 @@ export const MindMapTooltip = html` { drag?.onEnd(); window.removeEventListener('mousemove', onMove); diff --git a/blocksuite/affine/blocks/table/src/table-cell.ts b/blocksuite/affine/blocks/table/src/table-cell.ts index a13a987fa..d57d61071 100644 --- a/blocksuite/affine/blocks/table/src/table-cell.ts +++ b/blocksuite/affine/blocks/table/src/table-cell.ts @@ -418,7 +418,7 @@ export class TableCell extends SignalWatcher( name: 'Paste', prefix: PasteIcon(), select: () => { - // eslint-disable-next-line @typescript-eslint/no-floating-promises + // oxlint-disable-next-line @typescript-eslint/no-floating-promises navigator.clipboard.readText().then(text => { this.selectionController.doPaste(text, selected); }); diff --git a/blocksuite/affine/blocks/table/tsconfig.json b/blocksuite/affine/blocks/table/tsconfig.json index 8533452b9..0caa1c0d5 100644 --- a/blocksuite/affine/blocks/table/tsconfig.json +++ b/blocksuite/affine/blocks/table/tsconfig.json @@ -15,7 +15,6 @@ { "path": "../../rich-text" }, { "path": "../../shared" }, { "path": "../../widgets/slash-menu" }, - { "path": "../../data-view" }, { "path": "../../../framework/global" }, { "path": "../../../framework/std" }, { "path": "../../../framework/store" } diff --git a/blocksuite/affine/components/package.json b/blocksuite/affine/components/package.json index e7fdcfb02..ff954ba33 100644 --- a/blocksuite/affine/components/package.json +++ b/blocksuite/affine/components/package.json @@ -22,21 +22,13 @@ "@lottiefiles/dotlottie-wc": "^0.9.4", "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", - "@types/hast": "^3.0.4", - "@types/katex": "^0.16.7", "@types/lodash-es": "^4.17.12", - "@types/mdast": "^4.0.4", - "collapse-white-space": "^2.1.0", "date-fns": "^4.0.0", - "katex": "^0.16.27", "lit": "^3.2.0", "lit-html": "^3.2.1", "lodash-es": "^4.17.23", - "remark-math": "^6.0.0", "rxjs": "^7.8.2", - "shiki": "^3.19.0", - "yjs": "^13.6.27", - "zod": "^3.25.76" + "yjs": "^13.6.27" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/components/src/card-style-dropdown-menu/dropdown-menu.ts b/blocksuite/affine/components/src/card-style-dropdown-menu/dropdown-menu.ts index ad4052e40..aea40c880 100644 --- a/blocksuite/affine/components/src/card-style-dropdown-menu/dropdown-menu.ts +++ b/blocksuite/affine/components/src/card-style-dropdown-menu/dropdown-menu.ts @@ -50,7 +50,7 @@ const cardStyleMap: Record> = { @requiredProperties({ actions: PropTypes.array, context: PropTypes.instanceOf(ToolbarContext), - style$: PropTypes.object, + styleSignal: PropTypes.object, }) export class CardStyleDropdownMenu extends SignalWatcher(LitElement) { @property({ attribute: false }) @@ -60,7 +60,7 @@ export class CardStyleDropdownMenu extends SignalWatcher(LitElement) { accessor context!: ToolbarContext; @property({ attribute: false }) - accessor style$!: Signal | ReadonlySignal; + accessor styleSignal!: Signal | ReadonlySignal; icons$ = computed(() => cardStyleMap[this.context.theme.theme$.value]); @@ -68,7 +68,7 @@ export class CardStyleDropdownMenu extends SignalWatcher(LitElement) { const { actions, context, - style$: { value: style }, + styleSignal: { value: style }, icons$: { value: icons }, } = this; diff --git a/blocksuite/affine/components/src/context-menu/button.ts b/blocksuite/affine/components/src/context-menu/button.ts index 1ea4bdf69..f0342c9fa 100644 --- a/blocksuite/affine/components/src/context-menu/button.ts +++ b/blocksuite/affine/components/src/context-menu/button.ts @@ -149,7 +149,7 @@ export class MobileMenuButton extends MenuFocusable { this.disposables.addFromEvent(this, 'click', this.onClick); } - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions onClick() { if (this.data.select(this) !== false) { this.menu.options.onComplete?.(); diff --git a/blocksuite/affine/components/src/context-menu/menu.ts b/blocksuite/affine/components/src/context-menu/menu.ts index 2a682443b..bc631b585 100644 --- a/blocksuite/affine/components/src/context-menu/menu.ts +++ b/blocksuite/affine/components/src/context-menu/menu.ts @@ -149,7 +149,7 @@ export class Menu { renderItems(items: MenuConfig[]) { const result = []; - // eslint-disable-next-line @typescript-eslint/prefer-for-of + // oxlint-disable-next-line @typescript-eslint/prefer-for-of for (let i = 0; i < items.length; i++) { const item = items[i]; const template = item(this, result.length); diff --git a/blocksuite/affine/components/src/open-doc-dropdown-menu/dropdown-menu.ts b/blocksuite/affine/components/src/open-doc-dropdown-menu/dropdown-menu.ts index 4aca76df9..e80f41667 100644 --- a/blocksuite/affine/components/src/open-doc-dropdown-menu/dropdown-menu.ts +++ b/blocksuite/affine/components/src/open-doc-dropdown-menu/dropdown-menu.ts @@ -17,7 +17,7 @@ import { EditorChevronDown } from '../toolbar'; @requiredProperties({ actions: PropTypes.array, context: PropTypes.instanceOf(ToolbarContext), - openDocMode$: PropTypes.object, + openDocModeSignal: PropTypes.object, updateOpenDocMode: PropTypes.instanceOf(Function), }) export class OpenDocDropdownMenu extends SignalWatcher( @@ -59,13 +59,13 @@ export class OpenDocDropdownMenu extends SignalWatcher( accessor context!: ToolbarContext; @property({ attribute: false }) - accessor openDocMode$!: ReadonlySignal; + accessor openDocModeSignal!: ReadonlySignal; @property({ attribute: false }) accessor updateOpenDocMode!: (mode: OpenDocMode) => void; currentAction$ = computed(() => { - const currentOpenDocMode = this.openDocMode$.value; + const currentOpenDocMode = this.openDocModeSignal.value; return ( this.actions.find(a => a.mode === currentOpenDocMode) ?? this.actions[0] ); diff --git a/blocksuite/affine/components/src/peek/type.ts b/blocksuite/affine/components/src/peek/type.ts index 8e39b5653..7effc773a 100644 --- a/blocksuite/affine/components/src/peek/type.ts +++ b/blocksuite/affine/components/src/peek/type.ts @@ -40,7 +40,7 @@ export interface PeekViewService { * @returns A promise that resolves when the peek view is closed. */ peek( - // eslint-disable-next-line @typescript-eslint/unified-signatures + // oxlint-disable-next-line @typescript-eslint/unified-signatures element: { target: HTMLElement; template?: TemplateResult }, options?: PeekOptions ): Promise; diff --git a/blocksuite/affine/components/src/size-dropdown-menu/dropdown-menu.ts b/blocksuite/affine/components/src/size-dropdown-menu/dropdown-menu.ts index cc6ad8ead..f5d34e4f5 100644 --- a/blocksuite/affine/components/src/size-dropdown-menu/dropdown-menu.ts +++ b/blocksuite/affine/components/src/size-dropdown-menu/dropdown-menu.ts @@ -22,7 +22,7 @@ const SIZE_LIST: SizeItem[] = [ ] as const; @requiredProperties({ - size$: PropTypes.object, + sizeSignal: PropTypes.object, }) export class SizeDropdownMenu extends SignalWatcher( WithDisposable(LitElement) @@ -68,7 +68,7 @@ export class SizeDropdownMenu extends SignalWatcher( accessor sizes: readonly SizeItem[] = SIZE_LIST; @property({ attribute: false }) - accessor size$!: Signal | ReadonlySignal; + accessor sizeSignal!: Signal | ReadonlySignal; @property({ attribute: false }) accessor maxSize: number = MAX_SIZE; @@ -144,7 +144,7 @@ export class SizeDropdownMenu extends SignalWatcher( type, icon, label, - size$: { value: size }, + sizeSignal: { value: size }, } = this; const isCheckType = type === 'check'; const placeholder = format?.(Math.trunc(size)) ?? Math.trunc(size); diff --git a/blocksuite/affine/components/src/view-dropdown-menu/dropdown-menu.ts b/blocksuite/affine/components/src/view-dropdown-menu/dropdown-menu.ts index cd7b55e8e..8ffaa9295 100644 --- a/blocksuite/affine/components/src/view-dropdown-menu/dropdown-menu.ts +++ b/blocksuite/affine/components/src/view-dropdown-menu/dropdown-menu.ts @@ -16,7 +16,7 @@ import { EditorChevronDown } from '../toolbar'; @requiredProperties({ actions: PropTypes.array, context: PropTypes.instanceOf(ToolbarContext), - viewType$: PropTypes.object, + viewTypeSignal: PropTypes.object, }) export class ViewDropdownMenu extends SignalWatcher(LitElement) { @property({ attribute: false }) @@ -26,13 +26,13 @@ export class ViewDropdownMenu extends SignalWatcher(LitElement) { accessor context!: ToolbarContext; @property({ attribute: false }) - accessor viewType$!: Signal | ReadonlySignal; + accessor viewTypeSignal!: Signal | ReadonlySignal; override render() { const { actions, context, - viewType$: { value: viewType }, + viewTypeSignal: { value: viewType }, } = this; return html` diff --git a/blocksuite/affine/data-view/package.json b/blocksuite/affine/data-view/package.json index 1ade75c73..752a63732 100644 --- a/blocksuite/affine/data-view/package.json +++ b/blocksuite/affine/data-view/package.json @@ -19,7 +19,6 @@ "@emotion/css": "^11.13.5", "@emotion/hash": "^0.9.2", "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", "@types/lodash-es": "^4.17.12", @@ -27,7 +26,6 @@ "date-fns": "^4.0.0", "lit": "^3.2.0", "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", "yjs": "^13.6.27", "zod": "^3.25.76" }, diff --git a/blocksuite/affine/data-view/src/core/logical/composite-type.ts b/blocksuite/affine/data-view/src/core/logical/composite-type.ts index 80aaf2e34..16483e7de 100644 --- a/blocksuite/affine/data-view/src/core/logical/composite-type.ts +++ b/blocksuite/affine/data-view/src/core/logical/composite-type.ts @@ -60,7 +60,7 @@ export class FnTypeInstance< if (arg == null) { return false; } - // eslint-disable-next-line sonarjs/no-collapsible-if + // oxlint-disable-next-line sonarjs/no-collapsible-if if (realArg != null) { if (!unify(newCtx, realArg, arg)) { return false; diff --git a/blocksuite/affine/data-view/src/core/logical/type-system.ts b/blocksuite/affine/data-view/src/core/logical/type-system.ts index b0d7c086e..4914771d7 100644 --- a/blocksuite/affine/data-view/src/core/logical/type-system.ts +++ b/blocksuite/affine/data-view/src/core/logical/type-system.ts @@ -180,7 +180,7 @@ export class TypeSystem { if (arg == null) { return; } - // eslint-disable-next-line sonarjs/no-collapsible-if + // oxlint-disable-next-line sonarjs/no-collapsible-if if (realArg != null) { if (!this._unify(newCtx, realArg, arg)) { return; diff --git a/blocksuite/affine/foundation/package.json b/blocksuite/affine/foundation/package.json index e043cdb1e..d46b7f5f8 100644 --- a/blocksuite/affine/foundation/package.json +++ b/blocksuite/affine/foundation/package.json @@ -15,19 +15,8 @@ "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/data-view": "workspace:*", - "@blocksuite/global": "workspace:*", - "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", - "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", - "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", - "yjs": "^13.6.27", "zod": "^3.25.76" }, "exports": { diff --git a/blocksuite/affine/foundation/tsconfig.json b/blocksuite/affine/foundation/tsconfig.json index 99feedf99..d662e4f91 100644 --- a/blocksuite/affine/foundation/tsconfig.json +++ b/blocksuite/affine/foundation/tsconfig.json @@ -13,7 +13,6 @@ { "path": "../rich-text" }, { "path": "../shared" }, { "path": "../data-view" }, - { "path": "../../framework/global" }, { "path": "../../framework/std" }, { "path": "../../framework/store" } ] diff --git a/blocksuite/affine/fragments/adapter-panel/package.json b/blocksuite/affine/fragments/adapter-panel/package.json index 173f95356..87c825ac4 100644 --- a/blocksuite/affine/fragments/adapter-panel/package.json +++ b/blocksuite/affine/fragments/adapter-panel/package.json @@ -12,18 +12,15 @@ "dependencies": { "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", - "@blocksuite/affine-model": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/global": "workspace:*", "@blocksuite/icons": "^2.2.17", - "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", "@floating-ui/dom": "^1.6.13", "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", - "lit": "^3.2.0", - "rxjs": "^7.8.2" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/fragments/adapter-panel/tsconfig.json b/blocksuite/affine/fragments/adapter-panel/tsconfig.json index d60ba97d5..48d57133c 100644 --- a/blocksuite/affine/fragments/adapter-panel/tsconfig.json +++ b/blocksuite/affine/fragments/adapter-panel/tsconfig.json @@ -9,10 +9,8 @@ "references": [ { "path": "../../components" }, { "path": "../../ext-loader" }, - { "path": "../../model" }, { "path": "../../shared" }, { "path": "../../../framework/global" }, - { "path": "../../../framework/std" }, { "path": "../../../framework/store" } ] } diff --git a/blocksuite/affine/fragments/doc-title/package.json b/blocksuite/affine/fragments/doc-title/package.json index eab5bfb34..f0ab02ac5 100644 --- a/blocksuite/affine/fragments/doc-title/package.json +++ b/blocksuite/affine/fragments/doc-title/package.json @@ -10,24 +10,15 @@ "author": "toeverything", "license": "MIT", "dependencies": { - "@blocksuite/affine-block-frame": "workspace:*", - "@blocksuite/affine-block-surface": "workspace:*", - "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", "@blocksuite/affine-model": "workspace:*", "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/global": "workspace:*", - "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "lit": "^3.2.0", - "rxjs": "^7.8.2", - "zod": "^3.25.76" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/fragments/doc-title/tsconfig.json b/blocksuite/affine/fragments/doc-title/tsconfig.json index b82c1a413..de7e9fde3 100644 --- a/blocksuite/affine/fragments/doc-title/tsconfig.json +++ b/blocksuite/affine/fragments/doc-title/tsconfig.json @@ -7,9 +7,6 @@ }, "include": ["./src"], "references": [ - { "path": "../../blocks/frame" }, - { "path": "../../blocks/surface" }, - { "path": "../../components" }, { "path": "../../ext-loader" }, { "path": "../../model" }, { "path": "../../rich-text" }, diff --git a/blocksuite/affine/fragments/frame-panel/package.json b/blocksuite/affine/fragments/frame-panel/package.json index 7c2f2cbcb..2ffd3e299 100644 --- a/blocksuite/affine/fragments/frame-panel/package.json +++ b/blocksuite/affine/fragments/frame-panel/package.json @@ -12,7 +12,6 @@ "dependencies": { "@blocksuite/affine-block-frame": "workspace:*", "@blocksuite/affine-block-surface": "workspace:*", - "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", "@blocksuite/affine-model": "workspace:*", "@blocksuite/affine-rich-text": "workspace:*", @@ -21,15 +20,10 @@ "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", - "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", "@types/lodash-es": "^4.17.12", "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", - "zod": "^3.25.76" + "lodash-es": "^4.17.23" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/fragments/frame-panel/tsconfig.json b/blocksuite/affine/fragments/frame-panel/tsconfig.json index b82c1a413..23d6809b7 100644 --- a/blocksuite/affine/fragments/frame-panel/tsconfig.json +++ b/blocksuite/affine/fragments/frame-panel/tsconfig.json @@ -9,7 +9,6 @@ "references": [ { "path": "../../blocks/frame" }, { "path": "../../blocks/surface" }, - { "path": "../../components" }, { "path": "../../ext-loader" }, { "path": "../../model" }, { "path": "../../rich-text" }, diff --git a/blocksuite/affine/fragments/outline/package.json b/blocksuite/affine/fragments/outline/package.json index f357b0d34..b8967a029 100644 --- a/blocksuite/affine/fragments/outline/package.json +++ b/blocksuite/affine/fragments/outline/package.json @@ -11,24 +11,19 @@ "license": "MIT", "dependencies": { "@blocksuite/affine-block-note": "workspace:*", - "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", "@blocksuite/affine-fragment-doc-title": "workspace:*", "@blocksuite/affine-model": "workspace:*", - "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/global": "workspace:*", "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", "@vanilla-extract/css": "^1.17.0", - "lit": "^3.2.0", - "rxjs": "^7.8.2", - "zod": "^3.25.76" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/fragments/outline/tsconfig.json b/blocksuite/affine/fragments/outline/tsconfig.json index 8efff0db6..18898ef5a 100644 --- a/blocksuite/affine/fragments/outline/tsconfig.json +++ b/blocksuite/affine/fragments/outline/tsconfig.json @@ -8,11 +8,9 @@ "include": ["./src"], "references": [ { "path": "../../blocks/note" }, - { "path": "../../components" }, { "path": "../../ext-loader" }, { "path": "../doc-title" }, { "path": "../../model" }, - { "path": "../../rich-text" }, { "path": "../../shared" }, { "path": "../../../framework/global" }, { "path": "../../../framework/std" }, diff --git a/blocksuite/affine/gfx/brush/package.json b/blocksuite/affine/gfx/brush/package.json index 210c0c9e6..6b1ff2530 100644 --- a/blocksuite/affine/gfx/brush/package.json +++ b/blocksuite/affine/gfx/brush/package.json @@ -14,22 +14,12 @@ "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", "@blocksuite/affine-model": "workspace:*", - "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/affine-widget-edgeless-toolbar": "workspace:*", "@blocksuite/global": "workspace:*", - "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", - "@blocksuite/store": "workspace:*", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", - "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", - "yjs": "^13.6.27", - "zod": "^3.25.76" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/gfx/brush/tsconfig.json b/blocksuite/affine/gfx/brush/tsconfig.json index 05c8f632c..c5af4eeca 100644 --- a/blocksuite/affine/gfx/brush/tsconfig.json +++ b/blocksuite/affine/gfx/brush/tsconfig.json @@ -11,11 +11,9 @@ { "path": "../../components" }, { "path": "../../ext-loader" }, { "path": "../../model" }, - { "path": "../../rich-text" }, { "path": "../../shared" }, { "path": "../../widgets/edgeless-toolbar" }, { "path": "../../../framework/global" }, - { "path": "../../../framework/std" }, - { "path": "../../../framework/store" } + { "path": "../../../framework/std" } ] } diff --git a/blocksuite/affine/gfx/connector/package.json b/blocksuite/affine/gfx/connector/package.json index 1c82f29b4..407000d6a 100644 --- a/blocksuite/affine/gfx/connector/package.json +++ b/blocksuite/affine/gfx/connector/package.json @@ -24,13 +24,10 @@ "@blocksuite/store": "workspace:*", "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", "@types/lodash-es": "^4.17.12", "lit": "^3.2.0", "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", - "yjs": "^13.6.27", - "zod": "^3.25.76" + "yjs": "^13.6.27" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/gfx/connector/src/connector-manager.ts b/blocksuite/affine/gfx/connector/src/connector-manager.ts index f93f167fa..574dca11d 100644 --- a/blocksuite/affine/gfx/connector/src/connector-manager.ts +++ b/blocksuite/affine/gfx/connector/src/connector-manager.ts @@ -963,7 +963,7 @@ export class ConnectionOverlay extends Overlay { this._clearRect(); let result: Connection | null = null; - // eslint-disable-next-line @typescript-eslint/prefer-for-of + // oxlint-disable-next-line @typescript-eslint/prefer-for-of for (let i = 0; i < connectables.length; i++) { const connectable = connectables[i]; // first check if in excluedIds diff --git a/blocksuite/affine/gfx/group/package.json b/blocksuite/affine/gfx/group/package.json index 3388ccf65..cfc23d95f 100644 --- a/blocksuite/affine/gfx/group/package.json +++ b/blocksuite/affine/gfx/group/package.json @@ -21,17 +21,9 @@ "@blocksuite/global": "workspace:*", "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", - "@blocksuite/store": "workspace:*", "@lit/context": "^1.1.2", - "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", "fractional-indexing": "^3.2.0", - "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", - "yjs": "^13.6.27", - "zod": "^3.25.76" + "lit": "^3.2.0" }, "devDependencies": { "vitest": "^4.0.18" diff --git a/blocksuite/affine/gfx/group/tsconfig.json b/blocksuite/affine/gfx/group/tsconfig.json index cfca82fae..d6bfdecec 100644 --- a/blocksuite/affine/gfx/group/tsconfig.json +++ b/blocksuite/affine/gfx/group/tsconfig.json @@ -16,7 +16,6 @@ { "path": "../../shared" }, { "path": "../../widgets/edgeless-toolbar" }, { "path": "../../../framework/global" }, - { "path": "../../../framework/std" }, - { "path": "../../../framework/store" } + { "path": "../../../framework/std" } ] } diff --git a/blocksuite/affine/gfx/link/package.json b/blocksuite/affine/gfx/link/package.json index 3c9673982..40bd7d711 100644 --- a/blocksuite/affine/gfx/link/package.json +++ b/blocksuite/affine/gfx/link/package.json @@ -15,24 +15,10 @@ "@blocksuite/affine-block-surface": "workspace:*", "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", - "@blocksuite/affine-gfx-pointer": "workspace:*", - "@blocksuite/affine-model": "workspace:*", - "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/affine-widget-edgeless-toolbar": "workspace:*", - "@blocksuite/global": "workspace:*", - "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", - "@blocksuite/store": "workspace:*", - "@lit/context": "^1.1.2", - "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", - "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", - "yjs": "^13.6.27", - "zod": "^3.25.76" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/gfx/link/tsconfig.json b/blocksuite/affine/gfx/link/tsconfig.json index f57151ece..15d81f6d5 100644 --- a/blocksuite/affine/gfx/link/tsconfig.json +++ b/blocksuite/affine/gfx/link/tsconfig.json @@ -12,13 +12,8 @@ { "path": "../../blocks/surface" }, { "path": "../../components" }, { "path": "../../ext-loader" }, - { "path": "../pointer" }, - { "path": "../../model" }, - { "path": "../../rich-text" }, { "path": "../../shared" }, { "path": "../../widgets/edgeless-toolbar" }, - { "path": "../../../framework/global" }, - { "path": "../../../framework/std" }, - { "path": "../../../framework/store" } + { "path": "../../../framework/std" } ] } diff --git a/blocksuite/affine/gfx/mindmap/package.json b/blocksuite/affine/gfx/mindmap/package.json index 46410369b..59a7d24a1 100644 --- a/blocksuite/affine/gfx/mindmap/package.json +++ b/blocksuite/affine/gfx/mindmap/package.json @@ -11,7 +11,6 @@ "license": "MIT", "dependencies": { "@blocksuite/affine-block-attachment": "workspace:*", - "@blocksuite/affine-block-edgeless-text": "workspace:*", "@blocksuite/affine-block-image": "workspace:*", "@blocksuite/affine-block-surface": "workspace:*", "@blocksuite/affine-components": "workspace:*", @@ -21,7 +20,6 @@ "@blocksuite/affine-gfx-shape": "workspace:*", "@blocksuite/affine-gfx-text": "workspace:*", "@blocksuite/affine-model": "workspace:*", - "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/affine-widget-edgeless-toolbar": "workspace:*", "@blocksuite/global": "workspace:*", @@ -30,14 +28,11 @@ "@blocksuite/store": "workspace:*", "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", "@types/lodash-es": "^4.17.12", "lit": "^3.2.0", "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", "simple-xml-to-json": "^1.2.2", - "yjs": "^13.6.27", - "zod": "^3.25.76" + "yjs": "^13.6.27" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/gfx/mindmap/tsconfig.json b/blocksuite/affine/gfx/mindmap/tsconfig.json index 802a768ef..a2e1cbf6e 100644 --- a/blocksuite/affine/gfx/mindmap/tsconfig.json +++ b/blocksuite/affine/gfx/mindmap/tsconfig.json @@ -8,7 +8,6 @@ "include": ["./src"], "references": [ { "path": "../../blocks/attachment" }, - { "path": "../../blocks/edgeless-text" }, { "path": "../../blocks/image" }, { "path": "../../blocks/surface" }, { "path": "../../components" }, @@ -18,7 +17,6 @@ { "path": "../shape" }, { "path": "../text" }, { "path": "../../model" }, - { "path": "../../rich-text" }, { "path": "../../shared" }, { "path": "../../widgets/edgeless-toolbar" }, { "path": "../../../framework/global" }, diff --git a/blocksuite/affine/gfx/note/package.json b/blocksuite/affine/gfx/note/package.json index df064c444..9f889134a 100644 --- a/blocksuite/affine/gfx/note/package.json +++ b/blocksuite/affine/gfx/note/package.json @@ -23,16 +23,9 @@ "@blocksuite/global": "workspace:*", "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", - "@blocksuite/store": "workspace:*", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", - "yjs": "^13.6.27", - "zod": "^3.25.76" + "rxjs": "^7.8.2" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/gfx/note/tsconfig.json b/blocksuite/affine/gfx/note/tsconfig.json index 84abda762..f79e521c2 100644 --- a/blocksuite/affine/gfx/note/tsconfig.json +++ b/blocksuite/affine/gfx/note/tsconfig.json @@ -18,7 +18,6 @@ { "path": "../../shared" }, { "path": "../../widgets/edgeless-toolbar" }, { "path": "../../../framework/global" }, - { "path": "../../../framework/std" }, - { "path": "../../../framework/store" } + { "path": "../../../framework/std" } ] } diff --git a/blocksuite/affine/gfx/pointer/package.json b/blocksuite/affine/gfx/pointer/package.json index fdf0a0e40..2985e9cff 100644 --- a/blocksuite/affine/gfx/pointer/package.json +++ b/blocksuite/affine/gfx/pointer/package.json @@ -11,25 +11,15 @@ "license": "MIT", "dependencies": { "@blocksuite/affine-block-surface": "workspace:*", - "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", "@blocksuite/affine-model": "workspace:*", - "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/affine-widget-edgeless-toolbar": "workspace:*", "@blocksuite/global": "workspace:*", "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", - "@blocksuite/store": "workspace:*", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", - "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", - "yjs": "^13.6.27", - "zod": "^3.25.76" + "lit": "^3.2.0" }, "devDependencies": { "vitest": "^4.0.18" diff --git a/blocksuite/affine/gfx/pointer/tsconfig.json b/blocksuite/affine/gfx/pointer/tsconfig.json index 05c8f632c..a979d6ae0 100644 --- a/blocksuite/affine/gfx/pointer/tsconfig.json +++ b/blocksuite/affine/gfx/pointer/tsconfig.json @@ -8,14 +8,11 @@ "include": ["./src"], "references": [ { "path": "../../blocks/surface" }, - { "path": "../../components" }, { "path": "../../ext-loader" }, { "path": "../../model" }, - { "path": "../../rich-text" }, { "path": "../../shared" }, { "path": "../../widgets/edgeless-toolbar" }, { "path": "../../../framework/global" }, - { "path": "../../../framework/std" }, - { "path": "../../../framework/store" } + { "path": "../../../framework/std" } ] } diff --git a/blocksuite/affine/gfx/shape/package.json b/blocksuite/affine/gfx/shape/package.json index 4dd6f3a3f..730761bdb 100644 --- a/blocksuite/affine/gfx/shape/package.json +++ b/blocksuite/affine/gfx/shape/package.json @@ -24,13 +24,11 @@ "@blocksuite/store": "workspace:*", "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", "@types/lodash-es": "^4.17.12", "lit": "^3.2.0", "lodash-es": "^4.17.23", "rxjs": "^7.8.2", - "yjs": "^13.6.27", - "zod": "^3.25.76" + "yjs": "^13.6.27" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/gfx/template/package.json b/blocksuite/affine/gfx/template/package.json index 66b389497..8622f8846 100644 --- a/blocksuite/affine/gfx/template/package.json +++ b/blocksuite/affine/gfx/template/package.json @@ -13,25 +13,17 @@ "@blocksuite/affine-block-surface": "workspace:*", "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", - "@blocksuite/affine-gfx-text": "workspace:*", "@blocksuite/affine-model": "workspace:*", - "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/affine-widget-edgeless-toolbar": "workspace:*", "@blocksuite/global": "workspace:*", - "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", - "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", "lit": "^3.2.0", - "lodash-es": "^4.17.23", "rxjs": "^7.8.2", - "yjs": "^13.6.27", - "zod": "^3.25.76" + "yjs": "^13.6.27" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/gfx/template/src/toolbar/builtin-templates.ts b/blocksuite/affine/gfx/template/src/toolbar/builtin-templates.ts index ae5dc428a..bb7565552 100644 --- a/blocksuite/affine/gfx/template/src/toolbar/builtin-templates.ts +++ b/blocksuite/affine/gfx/template/src/toolbar/builtin-templates.ts @@ -1,4 +1,4 @@ -/* eslint-disable @typescript-eslint/await-thenable */ +/* oxlint-disable @typescript-eslint/await-thenable */ import type { Template, TemplateCategory, @@ -44,7 +44,7 @@ export const builtInTemplates = { await Promise.all(extendTemplate.map(manager => manager.list(category))) ); - // eslint-disable-next-line sonarjs/no-empty-collection + // oxlint-disable-next-line sonarjs/no-empty-collection const cate = templates.find(cate => cate.name === category); if (!cate) return extendTemplates; @@ -61,7 +61,7 @@ export const builtInTemplates = { await Promise.all(extendTemplate.map(manager => manager.categories())) ); - // eslint-disable-next-line sonarjs/no-empty-collection + // oxlint-disable-next-line sonarjs/no-empty-collection return templates.map(cate => cate.name).concat(extendCates); }, @@ -75,7 +75,7 @@ export const builtInTemplates = { keyword = keyword.trim().toLocaleLowerCase(); await Promise.all( - // eslint-disable-next-line sonarjs/no-empty-collection + // oxlint-disable-next-line sonarjs/no-empty-collection templates.map(async categroy => { if (cateName && cateName !== categroy.name) { return; diff --git a/blocksuite/affine/gfx/template/src/toolbar/template-panel.ts b/blocksuite/affine/gfx/template/src/toolbar/template-panel.ts index 0874eb7b1..0fc13d2b9 100644 --- a/blocksuite/affine/gfx/template/src/toolbar/template-panel.ts +++ b/blocksuite/affine/gfx/template/src/toolbar/template-panel.ts @@ -21,7 +21,6 @@ import { css, html, LitElement, nothing, unsafeCSS } from 'lit'; import { property, state } from 'lit/decorators.js'; import { repeat } from 'lit/directives/repeat.js'; import { styleMap } from 'lit/directives/style-map.js'; -import { unsafeSVG } from 'lit/directives/unsafe-svg.js'; import { createTemplateJob } from '../services/template.js'; import { builtInTemplates } from './builtin-templates.js'; @@ -29,6 +28,10 @@ import { defaultPreview, Triangle } from './cards.js'; import type { Template } from './template-type.js'; import { cloneDeep } from './utils.js'; +function toSvgPreviewDataUrl(svg: string) { + return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`; +} + export class EdgelessTemplatePanel extends WithDisposable(LitElement) { static override styles = css` :host { @@ -433,7 +436,11 @@ export class EdgelessTemplatePanel extends WithDisposable(LitElement) { template => { const preview = template.preview ? template.preview.startsWith('` : html``; }, }, diff --git a/blocksuite/affine/gfx/text/tsconfig.json b/blocksuite/affine/gfx/text/tsconfig.json index 05c8f632c..11848b29f 100644 --- a/blocksuite/affine/gfx/text/tsconfig.json +++ b/blocksuite/affine/gfx/text/tsconfig.json @@ -15,7 +15,6 @@ { "path": "../../shared" }, { "path": "../../widgets/edgeless-toolbar" }, { "path": "../../../framework/global" }, - { "path": "../../../framework/std" }, - { "path": "../../../framework/store" } + { "path": "../../../framework/std" } ] } diff --git a/blocksuite/affine/inlines/comment/package.json b/blocksuite/affine/inlines/comment/package.json index a33e0b258..8a3f16f5c 100644 --- a/blocksuite/affine/inlines/comment/package.json +++ b/blocksuite/affine/inlines/comment/package.json @@ -11,7 +11,6 @@ "license": "MIT", "dependencies": { "@blocksuite/affine-ext-loader": "workspace:*", - "@blocksuite/affine-model": "workspace:*", "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/global": "workspace:*", @@ -19,18 +18,12 @@ "@blocksuite/store": "workspace:*", "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", "@types/lodash-es": "^4.17.12", "lit": "^3.2.0", "lit-html": "^3.2.1", "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", - "yjs": "^13.6.27", "zod": "^3.25.76" }, - "devDependencies": { - "vitest": "^4.0.18" - }, "exports": { ".": "./src/index.ts", "./view": "./src/view.ts", diff --git a/blocksuite/affine/inlines/comment/tsconfig.json b/blocksuite/affine/inlines/comment/tsconfig.json index de7e9fde3..6d9f858c3 100644 --- a/blocksuite/affine/inlines/comment/tsconfig.json +++ b/blocksuite/affine/inlines/comment/tsconfig.json @@ -8,7 +8,6 @@ "include": ["./src"], "references": [ { "path": "../../ext-loader" }, - { "path": "../../model" }, { "path": "../../rich-text" }, { "path": "../../shared" }, { "path": "../../../framework/global" }, diff --git a/blocksuite/affine/inlines/footnote/package.json b/blocksuite/affine/inlines/footnote/package.json index 5eca7348f..56b3fae85 100644 --- a/blocksuite/affine/inlines/footnote/package.json +++ b/blocksuite/affine/inlines/footnote/package.json @@ -12,25 +12,16 @@ "dependencies": { "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", - "@blocksuite/affine-inline-reference": "workspace:*", "@blocksuite/affine-model": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/global": "workspace:*", - "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", - "collapse-white-space": "^2.1.0", - "date-fns": "^4.0.0", "lit": "^3.2.0", "lit-html": "^3.2.1", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", - "yjs": "^13.6.27", "zod": "^3.25.76" }, "devDependencies": { diff --git a/blocksuite/affine/inlines/footnote/tsconfig.json b/blocksuite/affine/inlines/footnote/tsconfig.json index 2aa5c154f..d60ba97d5 100644 --- a/blocksuite/affine/inlines/footnote/tsconfig.json +++ b/blocksuite/affine/inlines/footnote/tsconfig.json @@ -9,7 +9,6 @@ "references": [ { "path": "../../components" }, { "path": "../../ext-loader" }, - { "path": "../reference" }, { "path": "../../model" }, { "path": "../../shared" }, { "path": "../../../framework/global" }, diff --git a/blocksuite/affine/inlines/latex/package.json b/blocksuite/affine/inlines/latex/package.json index c54a78f8e..d05fcde03 100644 --- a/blocksuite/affine/inlines/latex/package.json +++ b/blocksuite/affine/inlines/latex/package.json @@ -12,7 +12,6 @@ "dependencies": { "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", - "@blocksuite/affine-inline-reference": "workspace:*", "@blocksuite/affine-model": "workspace:*", "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", @@ -20,21 +19,10 @@ "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "@types/hast": "^3.0.4", - "@types/katex": "^0.16.7", - "@types/lodash-es": "^4.17.12", - "collapse-white-space": "^2.1.0", - "date-fns": "^4.0.0", "katex": "^0.16.27", "lit": "^3.2.0", - "lit-html": "^3.2.1", - "lodash-es": "^4.17.23", "remark-math": "^6.0.0", - "rxjs": "^7.8.2", "shiki": "^3.19.0", "yjs": "^13.6.27", "zod": "^3.25.76" diff --git a/blocksuite/affine/inlines/latex/tsconfig.json b/blocksuite/affine/inlines/latex/tsconfig.json index 0a33c7d79..45d028d7e 100644 --- a/blocksuite/affine/inlines/latex/tsconfig.json +++ b/blocksuite/affine/inlines/latex/tsconfig.json @@ -9,7 +9,6 @@ "references": [ { "path": "../../components" }, { "path": "../../ext-loader" }, - { "path": "../reference" }, { "path": "../../model" }, { "path": "../../rich-text" }, { "path": "../../shared" }, diff --git a/blocksuite/affine/inlines/link/package.json b/blocksuite/affine/inlines/link/package.json index 9b53d193d..b597a50cf 100644 --- a/blocksuite/affine/inlines/link/package.json +++ b/blocksuite/affine/inlines/link/package.json @@ -20,17 +20,9 @@ "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", - "collapse-white-space": "^2.1.0", - "date-fns": "^4.0.0", "lit": "^3.2.0", "lit-html": "^3.2.1", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", - "yjs": "^13.6.27", "zod": "^3.25.76" }, "exports": { diff --git a/blocksuite/affine/inlines/link/src/link-node/configs/toolbar.ts b/blocksuite/affine/inlines/link/src/link-node/configs/toolbar.ts index 325e29cc3..680607bed 100644 --- a/blocksuite/affine/inlines/link/src/link-node/configs/toolbar.ts +++ b/blocksuite/affine/inlines/link/src/link-node/configs/toolbar.ts @@ -288,7 +288,7 @@ export const builtinInlineLinkToolbarConfig = { .actions=${actions} .context=${ctx} .onToggle=${onToggle} - .viewType$=${viewType$} + .viewTypeSignal=${viewType$} >` )}`; }, diff --git a/blocksuite/affine/inlines/mention/package.json b/blocksuite/affine/inlines/mention/package.json index ccfd19c85..906394336 100644 --- a/blocksuite/affine/inlines/mention/package.json +++ b/blocksuite/affine/inlines/mention/package.json @@ -10,26 +10,12 @@ "author": "toeverything", "license": "MIT", "dependencies": { - "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", - "@blocksuite/affine-model": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/global": "workspace:*", - "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", - "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", - "collapse-white-space": "^2.1.0", - "date-fns": "^4.0.0", "lit": "^3.2.0", - "lit-html": "^3.2.1", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", - "yjs": "^13.6.27", "zod": "^3.25.76" }, "exports": { diff --git a/blocksuite/affine/inlines/mention/tsconfig.json b/blocksuite/affine/inlines/mention/tsconfig.json index d60ba97d5..4de99ff77 100644 --- a/blocksuite/affine/inlines/mention/tsconfig.json +++ b/blocksuite/affine/inlines/mention/tsconfig.json @@ -7,9 +7,7 @@ }, "include": ["./src"], "references": [ - { "path": "../../components" }, { "path": "../../ext-loader" }, - { "path": "../../model" }, { "path": "../../shared" }, { "path": "../../../framework/global" }, { "path": "../../../framework/std" }, diff --git a/blocksuite/affine/inlines/preset/package.json b/blocksuite/affine/inlines/preset/package.json index 76fde6326..c4300535b 100644 --- a/blocksuite/affine/inlines/preset/package.json +++ b/blocksuite/affine/inlines/preset/package.json @@ -21,28 +21,12 @@ "@blocksuite/affine-model": "workspace:*", "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", - "@blocksuite/global": "workspace:*", - "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", - "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", "@types/hast": "^3.0.4", - "@types/katex": "^0.16.7", - "@types/lodash-es": "^4.17.12", - "@types/mdast": "^4.0.4", "collapse-white-space": "^2.1.0", - "date-fns": "^4.0.0", - "katex": "^0.16.27", "lit": "^3.2.0", - "lit-html": "^3.2.1", - "lodash-es": "^4.17.23", - "remark-math": "^6.0.0", - "rxjs": "^7.8.2", - "shiki": "^3.19.0", - "yjs": "^13.6.27", "zod": "^3.25.76" }, "exports": { diff --git a/blocksuite/affine/inlines/preset/tsconfig.json b/blocksuite/affine/inlines/preset/tsconfig.json index 58eb4b570..5b6d181dc 100644 --- a/blocksuite/affine/inlines/preset/tsconfig.json +++ b/blocksuite/affine/inlines/preset/tsconfig.json @@ -18,7 +18,6 @@ { "path": "../../model" }, { "path": "../../rich-text" }, { "path": "../../shared" }, - { "path": "../../../framework/global" }, { "path": "../../../framework/std" }, { "path": "../../../framework/store" } ] diff --git a/blocksuite/affine/inlines/reference/package.json b/blocksuite/affine/inlines/reference/package.json index 6bdfb702a..0bd44577c 100644 --- a/blocksuite/affine/inlines/reference/package.json +++ b/blocksuite/affine/inlines/reference/package.json @@ -19,17 +19,10 @@ "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", - "collapse-white-space": "^2.1.0", - "date-fns": "^4.0.0", "lit": "^3.2.0", "lit-html": "^3.2.1", - "lodash-es": "^4.17.23", "rxjs": "^7.8.2", - "yjs": "^13.6.27", "zod": "^3.25.76" }, "exports": { diff --git a/blocksuite/affine/inlines/reference/src/reference-node/configs/toolbar.ts b/blocksuite/affine/inlines/reference/src/reference-node/configs/toolbar.ts index 2689ebbf7..2eff668e8 100644 --- a/blocksuite/affine/inlines/reference/src/reference-node/configs/toolbar.ts +++ b/blocksuite/affine/inlines/reference/src/reference-node/configs/toolbar.ts @@ -206,7 +206,7 @@ export const builtinInlineReferenceToolbarConfig = { .actions=${actions} .context=${ctx} .onToggle=${onToggle} - .viewType$=${viewType$} + .viewTypeSignal=${viewType$} >` )}`; }, diff --git a/blocksuite/affine/model/package.json b/blocksuite/affine/model/package.json index 1165d64d9..9b2b99a89 100644 --- a/blocksuite/affine/model/package.json +++ b/blocksuite/affine/model/package.json @@ -17,7 +17,6 @@ "@types/lodash-es": "^4.17.12", "fractional-indexing": "^3.2.0", "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", "yjs": "^13.6.27", "zod": "^3.25.76" }, diff --git a/blocksuite/affine/rich-text/package.json b/blocksuite/affine/rich-text/package.json index 78de8477c..433d7fde9 100644 --- a/blocksuite/affine/rich-text/package.json +++ b/blocksuite/affine/rich-text/package.json @@ -17,17 +17,8 @@ "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", - "collapse-white-space": "^2.1.0", - "date-fns": "^4.0.0", "lit": "^3.2.0", - "lit-html": "^3.2.1", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", "yjs": "^13.6.27", "zod": "^3.25.76" }, diff --git a/blocksuite/affine/rich-text/src/hooks.ts b/blocksuite/affine/rich-text/src/hooks.ts index 9520c2163..46e058d46 100644 --- a/blocksuite/affine/rich-text/src/hooks.ts +++ b/blocksuite/affine/rich-text/src/hooks.ts @@ -65,7 +65,7 @@ function handleExtendedAttributes( ) { const { data, inlineEditor, inlineRange } = ctx; const deltas = inlineEditor.getDeltasByInlineRange(inlineRange); - // eslint-disable-next-line sonarjs/no-collapsible-if + // oxlint-disable-next-line sonarjs/no-collapsible-if if (data && data.length > 0 && data !== '\n') { if ( // cursor is in the between of two deltas diff --git a/blocksuite/affine/rich-text/src/rich-text.ts b/blocksuite/affine/rich-text/src/rich-text.ts index 0e6e18bdb..4a5a288af 100644 --- a/blocksuite/affine/rich-text/src/rich-text.ts +++ b/blocksuite/affine/rich-text/src/rich-text.ts @@ -342,7 +342,7 @@ export class RichText extends WithDisposable(ShadowlessElement) { if (this.enableUndoRedo) { this.disposables.addFromEvent(this, 'keydown', (e: KeyboardEvent) => { - // eslint-disable-next-line sonarjs/no-collapsible-if + // oxlint-disable-next-line sonarjs/no-collapsible-if if (e.ctrlKey || e.metaKey) { if (e.key === 'z' || e.key === 'Z') { if (e.shiftKey) { diff --git a/blocksuite/affine/shared/package.json b/blocksuite/affine/shared/package.json index 948c4d8bb..af6cd42be 100644 --- a/blocksuite/affine/shared/package.json +++ b/blocksuite/affine/shared/package.json @@ -16,7 +16,6 @@ "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", "@types/bytes": "^3.1.5", diff --git a/blocksuite/affine/shared/src/utils/index.ts b/blocksuite/affine/shared/src/utils/index.ts index 2c1862ccc..b2dccdad4 100644 --- a/blocksuite/affine/shared/src/utils/index.ts +++ b/blocksuite/affine/shared/src/utils/index.ts @@ -20,6 +20,7 @@ export * from './popper-position'; export * from './print-to-pdf'; export * from './reference'; export * from './reordering'; +export * from './safe-html'; export * from './signal'; export * from './string'; export * from './title'; diff --git a/blocksuite/affine/shared/src/utils/safe-html.ts b/blocksuite/affine/shared/src/utils/safe-html.ts new file mode 100644 index 000000000..8770dfdce --- /dev/null +++ b/blocksuite/affine/shared/src/utils/safe-html.ts @@ -0,0 +1,22 @@ +import DOMPurify from 'dompurify'; +import { unsafeHTML as unsafeLitHtml } from 'lit/directives/unsafe-html.js'; + +type DOMPurifyOptions = NonNullable[1]>; + +type SanitizeOptions = Omit< + DOMPurifyOptions, + 'IN_PLACE' | 'RETURN_DOM' | 'RETURN_DOM_FRAGMENT' | 'RETURN_TRUSTED_TYPE' +> & { + IN_PLACE?: false | undefined; + RETURN_DOM?: false | undefined; + RETURN_DOM_FRAGMENT?: false | undefined; + RETURN_TRUSTED_TYPE?: false | undefined; +}; + +export function sanitizeHTML(html: string, options?: SanitizeOptions): string { + return DOMPurify.sanitize(html, options); +} + +export function unsafeHTML(html: string, options?: SanitizeOptions) { + return unsafeLitHtml(sanitizeHTML(html, options)); +} diff --git a/blocksuite/affine/widgets/drag-handle/package.json b/blocksuite/affine/widgets/drag-handle/package.json index cfaefad72..40f61c7ae 100644 --- a/blocksuite/affine/widgets/drag-handle/package.json +++ b/blocksuite/affine/widgets/drag-handle/package.json @@ -24,15 +24,10 @@ "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", "@types/lodash-es": "^4.17.12", "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2", - "zod": "^3.25.76" + "lodash-es": "^4.17.23" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/widgets/edgeless-auto-connect/package.json b/blocksuite/affine/widgets/edgeless-auto-connect/package.json index 54b64cca3..4c28cb5ae 100644 --- a/blocksuite/affine/widgets/edgeless-auto-connect/package.json +++ b/blocksuite/affine/widgets/edgeless-auto-connect/package.json @@ -10,7 +10,6 @@ "author": "toeverything", "license": "MIT", "dependencies": { - "@blocksuite/affine-block-note": "workspace:*", "@blocksuite/affine-block-surface": "workspace:*", "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", @@ -19,10 +18,7 @@ "@blocksuite/global": "workspace:*", "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", - "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "lit": "^3.2.0", - "rxjs": "^7.8.2" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/widgets/edgeless-auto-connect/tsconfig.json b/blocksuite/affine/widgets/edgeless-auto-connect/tsconfig.json index 79dd9d95d..e0af3b05c 100644 --- a/blocksuite/affine/widgets/edgeless-auto-connect/tsconfig.json +++ b/blocksuite/affine/widgets/edgeless-auto-connect/tsconfig.json @@ -7,7 +7,6 @@ }, "include": ["./src"], "references": [ - { "path": "../../blocks/note" }, { "path": "../../blocks/surface" }, { "path": "../../components" }, { "path": "../../ext-loader" }, diff --git a/blocksuite/affine/widgets/edgeless-dragging-area/package.json b/blocksuite/affine/widgets/edgeless-dragging-area/package.json index e6e209c8f..a6d95a311 100644 --- a/blocksuite/affine/widgets/edgeless-dragging-area/package.json +++ b/blocksuite/affine/widgets/edgeless-dragging-area/package.json @@ -10,21 +10,12 @@ "author": "toeverything", "license": "MIT", "dependencies": { - "@blocksuite/affine-block-note": "workspace:*", "@blocksuite/affine-block-surface": "workspace:*", - "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", "@blocksuite/affine-model": "workspace:*", - "@blocksuite/affine-shared": "workspace:*", - "@blocksuite/global": "workspace:*", - "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", - "@lit/context": "^1.1.2", - "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", - "lit": "^3.2.0", - "rxjs": "^7.8.2", - "yjs": "^13.6.27" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/widgets/edgeless-dragging-area/tsconfig.json b/blocksuite/affine/widgets/edgeless-dragging-area/tsconfig.json index 79dd9d95d..385c66094 100644 --- a/blocksuite/affine/widgets/edgeless-dragging-area/tsconfig.json +++ b/blocksuite/affine/widgets/edgeless-dragging-area/tsconfig.json @@ -7,13 +7,9 @@ }, "include": ["./src"], "references": [ - { "path": "../../blocks/note" }, { "path": "../../blocks/surface" }, - { "path": "../../components" }, { "path": "../../ext-loader" }, { "path": "../../model" }, - { "path": "../../shared" }, - { "path": "../../../framework/global" }, { "path": "../../../framework/std" } ] } diff --git a/blocksuite/affine/widgets/edgeless-selected-rect/package.json b/blocksuite/affine/widgets/edgeless-selected-rect/package.json index 836a5cfe3..899c2a32f 100644 --- a/blocksuite/affine/widgets/edgeless-selected-rect/package.json +++ b/blocksuite/affine/widgets/edgeless-selected-rect/package.json @@ -11,7 +11,6 @@ "license": "MIT", "dependencies": { "@blocksuite/affine-block-frame": "workspace:*", - "@blocksuite/affine-block-note": "workspace:*", "@blocksuite/affine-block-surface": "workspace:*", "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", @@ -24,10 +23,8 @@ "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@lit/context": "^1.1.2", - "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", "lit": "^3.2.0", - "rxjs": "^7.8.2", "yjs": "^13.6.27" }, "exports": { diff --git a/blocksuite/affine/widgets/edgeless-selected-rect/tsconfig.json b/blocksuite/affine/widgets/edgeless-selected-rect/tsconfig.json index b102b54ee..5f94ec4f9 100644 --- a/blocksuite/affine/widgets/edgeless-selected-rect/tsconfig.json +++ b/blocksuite/affine/widgets/edgeless-selected-rect/tsconfig.json @@ -8,7 +8,6 @@ "include": ["./src"], "references": [ { "path": "../../blocks/frame" }, - { "path": "../../blocks/note" }, { "path": "../../blocks/surface" }, { "path": "../../components" }, { "path": "../../ext-loader" }, diff --git a/blocksuite/affine/widgets/edgeless-toolbar/package.json b/blocksuite/affine/widgets/edgeless-toolbar/package.json index fc8cba6c2..a5bf11f39 100644 --- a/blocksuite/affine/widgets/edgeless-toolbar/package.json +++ b/blocksuite/affine/widgets/edgeless-toolbar/package.json @@ -14,7 +14,6 @@ "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", "@blocksuite/affine-model": "workspace:*", - "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/global": "workspace:*", "@blocksuite/icons": "^2.2.17", diff --git a/blocksuite/affine/widgets/edgeless-toolbar/tsconfig.json b/blocksuite/affine/widgets/edgeless-toolbar/tsconfig.json index 179c2edda..e0af3b05c 100644 --- a/blocksuite/affine/widgets/edgeless-toolbar/tsconfig.json +++ b/blocksuite/affine/widgets/edgeless-toolbar/tsconfig.json @@ -11,7 +11,6 @@ { "path": "../../components" }, { "path": "../../ext-loader" }, { "path": "../../model" }, - { "path": "../../rich-text" }, { "path": "../../shared" }, { "path": "../../../framework/global" }, { "path": "../../../framework/std" } diff --git a/blocksuite/affine/widgets/edgeless-zoom-toolbar/package.json b/blocksuite/affine/widgets/edgeless-zoom-toolbar/package.json index 4e5012c25..0fe15be24 100644 --- a/blocksuite/affine/widgets/edgeless-zoom-toolbar/package.json +++ b/blocksuite/affine/widgets/edgeless-zoom-toolbar/package.json @@ -23,8 +23,7 @@ "@toeverything/theme": "^1.1.23", "@types/lodash-es": "^4.17.12", "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2" + "lodash-es": "^4.17.23" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/widgets/frame-title/package.json b/blocksuite/affine/widgets/frame-title/package.json index 2b1341ebf..11f09793a 100644 --- a/blocksuite/affine/widgets/frame-title/package.json +++ b/blocksuite/affine/widgets/frame-title/package.json @@ -19,10 +19,8 @@ "@blocksuite/global": "workspace:*", "@blocksuite/std": "workspace:*", "@lit/context": "^1.1.2", - "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", - "lit": "^3.2.0", - "rxjs": "^7.8.2" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/widgets/keyboard-toolbar/package.json b/blocksuite/affine/widgets/keyboard-toolbar/package.json index 0d40644ea..43f1a155e 100644 --- a/blocksuite/affine/widgets/keyboard-toolbar/package.json +++ b/blocksuite/affine/widgets/keyboard-toolbar/package.json @@ -27,7 +27,6 @@ "@blocksuite/affine-inline-latex": "workspace:*", "@blocksuite/affine-inline-link": "workspace:*", "@blocksuite/affine-inline-preset": "workspace:*", - "@blocksuite/affine-inline-reference": "workspace:*", "@blocksuite/affine-model": "workspace:*", "@blocksuite/affine-rich-text": "workspace:*", "@blocksuite/affine-shared": "workspace:*", @@ -35,15 +34,9 @@ "@blocksuite/global": "workspace:*", "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", - "@blocksuite/store": "workspace:*", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", - "fflate": "^0.8.2", - "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/widgets/keyboard-toolbar/tsconfig.json b/blocksuite/affine/widgets/keyboard-toolbar/tsconfig.json index e3dcb277c..4b4fc7bd5 100644 --- a/blocksuite/affine/widgets/keyboard-toolbar/tsconfig.json +++ b/blocksuite/affine/widgets/keyboard-toolbar/tsconfig.json @@ -24,13 +24,11 @@ { "path": "../../inlines/latex" }, { "path": "../../inlines/link" }, { "path": "../../inlines/preset" }, - { "path": "../../inlines/reference" }, { "path": "../../model" }, { "path": "../../rich-text" }, { "path": "../../shared" }, { "path": "../../data-view" }, { "path": "../../../framework/global" }, - { "path": "../../../framework/std" }, - { "path": "../../../framework/store" } + { "path": "../../../framework/std" } ] } diff --git a/blocksuite/affine/widgets/linked-doc/package.json b/blocksuite/affine/widgets/linked-doc/package.json index 8e8f8aa07..ceceef916 100644 --- a/blocksuite/affine/widgets/linked-doc/package.json +++ b/blocksuite/affine/widgets/linked-doc/package.json @@ -10,7 +10,6 @@ "author": "toeverything", "license": "MIT", "dependencies": { - "@blocksuite/affine-block-image": "workspace:*", "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", "@blocksuite/affine-inline-reference": "workspace:*", @@ -21,7 +20,6 @@ "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", - "@lit/context": "^1.1.2", "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", "@types/lodash-es": "^4.17.12", @@ -30,7 +28,6 @@ "lit": "^3.2.0", "lodash-es": "^4.17.23", "mammoth": "^1.11.0", - "rxjs": "^7.8.2", "zod": "^3.25.76" }, "exports": { diff --git a/blocksuite/affine/widgets/linked-doc/tsconfig.json b/blocksuite/affine/widgets/linked-doc/tsconfig.json index e3c10ec68..fca23b0ec 100644 --- a/blocksuite/affine/widgets/linked-doc/tsconfig.json +++ b/blocksuite/affine/widgets/linked-doc/tsconfig.json @@ -7,7 +7,6 @@ }, "include": ["./src"], "references": [ - { "path": "../../blocks/image" }, { "path": "../../components" }, { "path": "../../ext-loader" }, { "path": "../../inlines/reference" }, diff --git a/blocksuite/affine/widgets/note-slicer/package.json b/blocksuite/affine/widgets/note-slicer/package.json index 3eef19c5e..4c2bac630 100644 --- a/blocksuite/affine/widgets/note-slicer/package.json +++ b/blocksuite/affine/widgets/note-slicer/package.json @@ -12,7 +12,6 @@ "dependencies": { "@blocksuite/affine-block-note": "workspace:*", "@blocksuite/affine-block-surface": "workspace:*", - "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", "@blocksuite/affine-model": "workspace:*", "@blocksuite/affine-shared": "workspace:*", @@ -20,12 +19,7 @@ "@blocksuite/global": "workspace:*", "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", - "@lit/context": "^1.1.2", - "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "lit": "^3.2.0", - "rxjs": "^7.8.2", - "yjs": "^13.6.27" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/widgets/note-slicer/tsconfig.json b/blocksuite/affine/widgets/note-slicer/tsconfig.json index 6d8b0780d..e23516da4 100644 --- a/blocksuite/affine/widgets/note-slicer/tsconfig.json +++ b/blocksuite/affine/widgets/note-slicer/tsconfig.json @@ -9,7 +9,6 @@ "references": [ { "path": "../../blocks/note" }, { "path": "../../blocks/surface" }, - { "path": "../../components" }, { "path": "../../ext-loader" }, { "path": "../../model" }, { "path": "../../shared" }, diff --git a/blocksuite/affine/widgets/page-dragging-area/package.json b/blocksuite/affine/widgets/page-dragging-area/package.json index 1445b092b..8cabad2a2 100644 --- a/blocksuite/affine/widgets/page-dragging-area/package.json +++ b/blocksuite/affine/widgets/page-dragging-area/package.json @@ -10,22 +10,11 @@ "author": "toeverything", "license": "MIT", "dependencies": { - "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", "@blocksuite/affine-model": "workspace:*", "@blocksuite/affine-shared": "workspace:*", - "@blocksuite/global": "workspace:*", - "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", - "@blocksuite/store": "workspace:*", - "@lit/context": "^1.1.2", - "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", - "fflate": "^0.8.2", - "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/widgets/page-dragging-area/src/utils.ts b/blocksuite/affine/widgets/page-dragging-area/src/utils.ts index 41f126ebd..24aba7a65 100644 --- a/blocksuite/affine/widgets/page-dragging-area/src/utils.ts +++ b/blocksuite/affine/widgets/page-dragging-area/src/utils.ts @@ -115,7 +115,7 @@ export function getSelectingBlockPaths( } // Filter out the blocks which parent is in the blocks - // eslint-disable-next-line @typescript-eslint/prefer-for-of + // oxlint-disable-next-line @typescript-eslint/prefer-for-of for (let i = 0; i < blocks.length; i++) { const block = blocks[i]; const parent = blocks[i].element.store.getParent(block.element.model); diff --git a/blocksuite/affine/widgets/page-dragging-area/tsconfig.json b/blocksuite/affine/widgets/page-dragging-area/tsconfig.json index d60ba97d5..0f800488c 100644 --- a/blocksuite/affine/widgets/page-dragging-area/tsconfig.json +++ b/blocksuite/affine/widgets/page-dragging-area/tsconfig.json @@ -7,12 +7,9 @@ }, "include": ["./src"], "references": [ - { "path": "../../components" }, { "path": "../../ext-loader" }, { "path": "../../model" }, { "path": "../../shared" }, - { "path": "../../../framework/global" }, - { "path": "../../../framework/std" }, - { "path": "../../../framework/store" } + { "path": "../../../framework/std" } ] } diff --git a/blocksuite/affine/widgets/remote-selection/package.json b/blocksuite/affine/widgets/remote-selection/package.json index 197e44c3d..83db9b950 100644 --- a/blocksuite/affine/widgets/remote-selection/package.json +++ b/blocksuite/affine/widgets/remote-selection/package.json @@ -11,19 +11,15 @@ "license": "MIT", "dependencies": { "@blocksuite/affine-block-surface": "workspace:*", - "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", "@blocksuite/affine-model": "workspace:*", "@blocksuite/affine-shared": "workspace:*", - "@blocksuite/global": "workspace:*", "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", "@types/lodash-es": "^4.17.12", "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2" + "lodash-es": "^4.17.23" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/widgets/remote-selection/tsconfig.json b/blocksuite/affine/widgets/remote-selection/tsconfig.json index e0af3b05c..59e37953b 100644 --- a/blocksuite/affine/widgets/remote-selection/tsconfig.json +++ b/blocksuite/affine/widgets/remote-selection/tsconfig.json @@ -8,11 +8,9 @@ "include": ["./src"], "references": [ { "path": "../../blocks/surface" }, - { "path": "../../components" }, { "path": "../../ext-loader" }, { "path": "../../model" }, { "path": "../../shared" }, - { "path": "../../../framework/global" }, { "path": "../../../framework/std" } ] } diff --git a/blocksuite/affine/widgets/scroll-anchoring/package.json b/blocksuite/affine/widgets/scroll-anchoring/package.json index 9313b165a..de60b7af4 100644 --- a/blocksuite/affine/widgets/scroll-anchoring/package.json +++ b/blocksuite/affine/widgets/scroll-anchoring/package.json @@ -17,8 +17,7 @@ "@blocksuite/std": "workspace:*", "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", - "lit": "^3.2.0", - "rxjs": "^7.8.2" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/widgets/slash-menu/package.json b/blocksuite/affine/widgets/slash-menu/package.json index 97379a2cf..366667e77 100644 --- a/blocksuite/affine/widgets/slash-menu/package.json +++ b/blocksuite/affine/widgets/slash-menu/package.json @@ -19,12 +19,10 @@ "@blocksuite/std": "workspace:*", "@blocksuite/store": "workspace:*", "@floating-ui/dom": "^1.6.13", - "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", "@types/lodash-es": "^4.17.12", "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2" + "lodash-es": "^4.17.23" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/widgets/toolbar/package.json b/blocksuite/affine/widgets/toolbar/package.json index 556272726..efb5f84ca 100644 --- a/blocksuite/affine/widgets/toolbar/package.json +++ b/blocksuite/affine/widgets/toolbar/package.json @@ -22,11 +22,9 @@ "@blocksuite/std": "workspace:*", "@floating-ui/dom": "^1.6.13", "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", "@types/lodash-es": "^4.17.12", "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2" + "lodash-es": "^4.17.23" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/widgets/viewport-overlay/package.json b/blocksuite/affine/widgets/viewport-overlay/package.json index dc4b996a9..b14dc4d44 100644 --- a/blocksuite/affine/widgets/viewport-overlay/package.json +++ b/blocksuite/affine/widgets/viewport-overlay/package.json @@ -10,20 +10,10 @@ "author": "toeverything", "license": "MIT", "dependencies": { - "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-ext-loader": "workspace:*", "@blocksuite/affine-model": "workspace:*", - "@blocksuite/affine-shared": "workspace:*", - "@blocksuite/global": "workspace:*", - "@blocksuite/icons": "^2.2.17", "@blocksuite/std": "workspace:*", - "@floating-ui/dom": "^1.6.13", - "@preact/signals-core": "^1.8.0", - "@toeverything/theme": "^1.1.23", - "@types/lodash-es": "^4.17.12", - "lit": "^3.2.0", - "lodash-es": "^4.17.23", - "rxjs": "^7.8.2" + "lit": "^3.2.0" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/widgets/viewport-overlay/tsconfig.json b/blocksuite/affine/widgets/viewport-overlay/tsconfig.json index 52ac5011b..34d95ab55 100644 --- a/blocksuite/affine/widgets/viewport-overlay/tsconfig.json +++ b/blocksuite/affine/widgets/viewport-overlay/tsconfig.json @@ -7,11 +7,8 @@ }, "include": ["./src"], "references": [ - { "path": "../../components" }, { "path": "../../ext-loader" }, { "path": "../../model" }, - { "path": "../../shared" }, - { "path": "../../../framework/global" }, { "path": "../../../framework/std" } ] } diff --git a/blocksuite/docs/package.json b/blocksuite/docs/package.json index 7eeec8331..d62f681d5 100644 --- a/blocksuite/docs/package.json +++ b/blocksuite/docs/package.json @@ -14,8 +14,5 @@ "scripts": { "build": "typedoc" }, - "dependencies": { - "@blocksuite/affine": "workspace:*" - }, "version": "0.26.3" } diff --git a/blocksuite/docs/tsconfig.json b/blocksuite/docs/tsconfig.json index 3bcce54b1..a21ea69ed 100644 --- a/blocksuite/docs/tsconfig.json +++ b/blocksuite/docs/tsconfig.json @@ -7,5 +7,5 @@ "tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo" }, "include": ["./.vitepress"], - "references": [{ "path": "../affine/all" }] + "references": [] } diff --git a/blocksuite/framework/global/package.json b/blocksuite/framework/global/package.json index d6ea27a6b..67daef669 100644 --- a/blocksuite/framework/global/package.json +++ b/blocksuite/framework/global/package.json @@ -58,8 +58,7 @@ "@preact/signals-core": "^1.8.0", "lib0": "^0.2.114", "lit": "^3.2.0", - "rxjs": "^7.8.2", - "zod": "^3.25.76" + "rxjs": "^7.8.2" }, "devDependencies": { "vitest": "^4.0.18" diff --git a/blocksuite/framework/global/src/gfx/model/vec.ts b/blocksuite/framework/global/src/gfx/model/vec.ts index d4e5dfcaa..ceee302ab 100644 --- a/blocksuite/framework/global/src/gfx/model/vec.ts +++ b/blocksuite/framework/global/src/gfx/model/vec.ts @@ -553,7 +553,7 @@ export class Vec { */ static clamp(n: number, min: number): number; - // eslint-disable-next-line @typescript-eslint/unified-signatures + // oxlint-disable-next-line @typescript-eslint/unified-signatures static clamp(n: number, min: number, max: number): number; static clamp(n: number, min: number, max?: number): number { @@ -569,7 +569,7 @@ export class Vec { static clampV(A: number[], min: number): number[]; - // eslint-disable-next-line @typescript-eslint/unified-signatures + // oxlint-disable-next-line @typescript-eslint/unified-signatures static clampV(A: number[], min: number, max: number): number[]; static clampV(A: number[], min: number, max?: number): number[] { diff --git a/blocksuite/framework/std/src/event/control/range.ts b/blocksuite/framework/std/src/event/control/range.ts index 51ab67e09..3e2e72082 100644 --- a/blocksuite/framework/std/src/event/control/range.ts +++ b/blocksuite/framework/std/src/event/control/range.ts @@ -110,7 +110,7 @@ export class RangeControl { if (current === start) { startRecorded = true; } - // eslint-disable-next-line sonarjs/no-collapsible-if + // oxlint-disable-next-line sonarjs/no-collapsible-if if (startRecorded) { if ( current.nodeType === Node.TEXT_NODE || diff --git a/blocksuite/framework/std/src/inline/services/delta.ts b/blocksuite/framework/std/src/inline/services/delta.ts index 7e5614a78..307e02def 100644 --- a/blocksuite/framework/std/src/inline/services/delta.ts +++ b/blocksuite/framework/std/src/inline/services/delta.ts @@ -123,7 +123,7 @@ export class DeltaService { const deltas = this.editor.embedDeltas; const result: Result[] = []; - // eslint-disable-next-line sonarjs/no-ignored-return + // oxlint-disable-next-line sonarjs/no-ignored-return deltas.reduce((rangeIndex, delta, deltaIndex) => { const length = delta.insert.length; const from = inlineRange.index - length; diff --git a/blocksuite/framework/std/src/inline/utils/range-conversion.ts b/blocksuite/framework/std/src/inline/utils/range-conversion.ts index 02e647efc..1bf5191a4 100644 --- a/blocksuite/framework/std/src/inline/utils/range-conversion.ts +++ b/blocksuite/framework/std/src/inline/utils/range-conversion.ts @@ -260,7 +260,7 @@ export function inlineRangeToDomRange( let focusOffset = 0; let index = 0; - // eslint-disable-next-line @typescript-eslint/prefer-for-of + // oxlint-disable-next-line @typescript-eslint/prefer-for-of for (let i = 0; i < lineElements.length; i++) { if (startText && endText) { break; diff --git a/blocksuite/framework/std/src/view/element/gfx-block-component.ts b/blocksuite/framework/std/src/view/element/gfx-block-component.ts index 9231eb754..17b6a1605 100644 --- a/blocksuite/framework/std/src/view/element/gfx-block-component.ts +++ b/blocksuite/framework/std/src/view/element/gfx-block-component.ts @@ -248,7 +248,7 @@ export function toGfxBlockComponent< return GfxBlockComponent.prototype.getCSSTransform.call(this); } - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions getRenderingRect(): { x: number; y: number; @@ -290,7 +290,7 @@ export function toGfxBlockComponent< return super.renderBlock(); } - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions override async scheduleUpdate() { const parent = this.parentElement; diff --git a/blocksuite/framework/store/package.json b/blocksuite/framework/store/package.json index 7bebb8120..f6f8bf93d 100644 --- a/blocksuite/framework/store/package.json +++ b/blocksuite/framework/store/package.json @@ -16,9 +16,7 @@ "@types/lodash.ismatch": "^4.4.9", "file-type": "^21.0.0", "lib0": "^0.2.114", - "lodash.clonedeep": "^4.5.0", "lodash.ismatch": "^4.4.0", - "lodash.merge": "^4.6.2", "minimatch": "^10.2.2", "nanoid": "^5.1.6", "rxjs": "^7.8.2", @@ -27,8 +25,6 @@ "zod": "^3.25.76" }, "devDependencies": { - "@types/lodash.clonedeep": "^4.5.9", - "@types/lodash.merge": "^4.6.9", "vitest": "^4.0.18" }, "exports": { diff --git a/blocksuite/framework/store/src/__tests__/collection.unit.spec.ts b/blocksuite/framework/store/src/__tests__/collection.unit.spec.ts index b0f9b4171..0730cb5bd 100644 --- a/blocksuite/framework/store/src/__tests__/collection.unit.spec.ts +++ b/blocksuite/framework/store/src/__tests__/collection.unit.spec.ts @@ -382,7 +382,7 @@ describe('addBlock', () => { const doc0 = collection.createDoc('doc:home'); const doc1 = collection.createDoc('space:doc1'); - // eslint-disable-next-line @typescript-eslint/await-thenable + // oxlint-disable-next-line @typescript-eslint/await-thenable await Promise.all([doc0.load(), doc1.load()]); assert.equal(collection.docs.size, 2); const store0 = doc0.getStore({ diff --git a/blocksuite/framework/store/src/reactive/proxy.ts b/blocksuite/framework/store/src/reactive/proxy.ts index 43fbb3c09..23548787c 100644 --- a/blocksuite/framework/store/src/reactive/proxy.ts +++ b/blocksuite/framework/store/src/reactive/proxy.ts @@ -325,7 +325,7 @@ export class ReactiveYMap extends BaseReactiveYData> { protected readonly _proxy: UnRecord; - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions constructor( protected readonly _source: UnRecord, protected readonly _ySource: YMap, @@ -337,7 +337,7 @@ export class ReactiveYMap extends BaseReactiveYData> { _ySource.observe(this._observer); } - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions pop(prop: string) { const value = this._source[prop]; this._stashed.delete(prop); diff --git a/blocksuite/framework/store/src/reactive/text/text.ts b/blocksuite/framework/store/src/reactive/text/text.ts index a2b8acd68..0a5250552 100644 --- a/blocksuite/framework/store/src/reactive/text/text.ts +++ b/blocksuite/framework/store/src/reactive/text/text.ts @@ -331,7 +331,7 @@ export class Text< if (delta && delta instanceof Array) { let charNum = 0; - // eslint-disable-next-line @typescript-eslint/prefer-for-of + // oxlint-disable-next-line @typescript-eslint/prefer-for-of for (let i = 0; i < delta.length; i++) { const content = delta[i]; let contentText: string = content.insert || ''; diff --git a/blocksuite/integration-test/package.json b/blocksuite/integration-test/package.json index 6d19a051b..3d0469d7c 100644 --- a/blocksuite/integration-test/package.json +++ b/blocksuite/integration-test/package.json @@ -14,17 +14,11 @@ "license": "MIT", "dependencies": { "@blocksuite/affine": "workspace:*", - "@blocksuite/icons": "^2.2.17", - "@floating-ui/dom": "^1.6.13", - "@lit/context": "^1.1.3", - "@lottiefiles/dotlottie-wc": "^0.9.4", "@preact/signals-core": "^1.8.0", "@toeverything/theme": "^1.1.23", - "@vanilla-extract/css": "^1.17.0", "lit": "^3.2.0", "rxjs": "^7.8.2", - "yjs": "^13.6.27", - "zod": "^3.25.76" + "yjs": "^13.6.27" }, "exports": { ".": "./src/index.ts", @@ -44,7 +38,6 @@ "@vitest/browser-playwright": "^4.0.18", "playwright": "=1.58.2", "vite": "^7.2.7", - "vite-plugin-istanbul": "^7.2.1", "vite-plugin-wasm": "^3.5.0", "vitest": "^4.0.18" }, diff --git a/blocksuite/integration-test/src/__tests__/edgeless/layer.spec.ts b/blocksuite/integration-test/src/__tests__/edgeless/layer.spec.ts index a3d82ff14..af2725722 100644 --- a/blocksuite/integration-test/src/__tests__/edgeless/layer.spec.ts +++ b/blocksuite/integration-test/src/__tests__/edgeless/layer.spec.ts @@ -647,7 +647,7 @@ describe('compare function', () => { const createGroup = ( service: EdgelessRootBlockComponent['service'], childIds: string[] - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions ) => { const children = new Y.Map(); childIds.forEach(id => children.set(id, true)); diff --git a/blocksuite/playground/apps/_common/components/starter-debug-menu.ts b/blocksuite/playground/apps/_common/components/starter-debug-menu.ts index 15abde883..00419c226 100644 --- a/blocksuite/playground/apps/_common/components/starter-debug-menu.ts +++ b/blocksuite/playground/apps/_common/components/starter-debug-menu.ts @@ -1,4 +1,4 @@ -/* eslint-disable @typescript-eslint/no-restricted-imports */ +/* oxlint-disable no-restricted-imports */ import '@shoelace-style/shoelace/dist/components/button/button.js'; import '@shoelace-style/shoelace/dist/components/button-group/button-group.js'; import '@shoelace-style/shoelace/dist/components/color-picker/color-picker.js'; diff --git a/blocksuite/playground/package.json b/blocksuite/playground/package.json index d99fba7d3..cfdb3855f 100644 --- a/blocksuite/playground/package.json +++ b/blocksuite/playground/package.json @@ -10,7 +10,6 @@ }, "dependencies": { "@blocksuite/affine": "workspace:*", - "@blocksuite/affine-components": "workspace:*", "@blocksuite/affine-model": "workspace:*", "@blocksuite/affine-shared": "workspace:*", "@blocksuite/data-view": "workspace:*", @@ -20,16 +19,11 @@ "@shoelace-style/shoelace": "2.20.1", "@toeverything/pdf-viewer": "^0.1.1", "@toeverything/pdfium": "^0.1.1", - "@toeverything/y-indexeddb": "0.10.0-canary.9", - "@types/katex": "^0.16.7", - "browser-fs-access": "^0.37.0", - "jszip": "^3.10.1", "katex": "^0.16.27", "lit": "^3.2.0", "lz-string": "^1.5.0", "rxjs": "^7.8.2", "tweakpane": "^4.0.5", - "y-indexeddb": "^9.0.12", "y-protocols": "^1.0.6", "yjs": "^13.6.27", "zod": "^3.25.76" @@ -39,7 +33,6 @@ "@tweakpane/core": "^2.0.4", "@types/micromatch": "^4.0.9", "@vanilla-extract/vite-plugin": "^5.0.0", - "graphql": "^16.9.0", "magic-string": "^0.30.21", "vite": "^7.2.7", "vite-plugin-istanbul": "^7.2.1", diff --git a/blocksuite/playground/tsconfig.json b/blocksuite/playground/tsconfig.json index 1a12f583a..46d39d6fb 100644 --- a/blocksuite/playground/tsconfig.json +++ b/blocksuite/playground/tsconfig.json @@ -9,7 +9,6 @@ "include": ["./apps", "./examples"], "references": [ { "path": "../affine/all" }, - { "path": "../affine/components" }, { "path": "../affine/model" }, { "path": "../affine/shared" }, { "path": "../affine/data-view" }, diff --git a/eslint.config.mjs b/eslint.config.mjs index 48795357b..53a530c61 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -8,9 +8,6 @@ import importX from 'eslint-plugin-import-x'; import oxlint from 'eslint-plugin-oxlint'; import react from 'eslint-plugin-react'; import reactHooks from 'eslint-plugin-react-hooks'; -import simpleImportSort from 'eslint-plugin-simple-import-sort'; -import sonarjs from 'eslint-plugin-sonarjs'; -import unicorn from 'eslint-plugin-unicorn'; import tseslint from 'typescript-eslint'; const __require = createRequire(import.meta.url); @@ -28,6 +25,7 @@ const ignoreList = readFileSync( // types are resolved, and 2) it would mask an unresolved // `.ts`/`.tsx`/`.js`/`.jsx` implementation. const typeScriptExtensions = ['.ts', '.tsx', '.cts', '.mts']; +const oxlintConfigs = oxlint.buildFromOxlintConfigFile('./.oxlintrc.json'); export default tseslint.config( { @@ -56,22 +54,16 @@ export default tseslint.config( }, { plugins: { - '@typescript-eslint': tseslint.plugin, react, 'react-hooks': reactHooks, - sonarjs, 'import-x': importX, - 'simple-import-sort': simpleImportSort, rxjs, - unicorn, - oxlint, }, rules: { ...eslint.configs.recommended.rules, ...react.configs.recommended.rules, ...react.configs['jsx-runtime'].rules, ...reactHooks.configs.recommended.rules, - ...oxlint.configs.recommended.rules, // covered by TypeScript 'no-dupe-args': 'off', // the following rules are disabled because they are covered by oxlint @@ -97,51 +89,17 @@ export default tseslint.config( 'react/no-unescaped-entities': 'off', 'react/jsx-no-target-blank': 'off', 'react/jsx-no-comment-textnodes': 'off', + 'react/jsx-uses-vars': 'off', 'react/prop-types': 'off', 'react-hooks/immutability': 'off', 'react-hooks/refs': 'off', 'react-hooks/set-state-in-effect': 'off', 'react-hooks/static-components': 'off', 'react-hooks/use-memo': 'off', - 'sonarjs/no-useless-catch': 'off', - '@typescript-eslint/consistent-type-imports': 'off', - '@typescript-eslint/no-unused-vars': 'off', - '@typescript-eslint/no-non-null-assertion': 'off', - '@typescript-eslint/ban-ts-comment': 'off', - '@typescript-eslint/prefer-for-of': 'error', - '@typescript-eslint/no-var-requires': 'off', - '@typescript-eslint/no-namespace': 'off', - '@typescript-eslint/no-unnecessary-type-constraint': 'off', - '@typescript-eslint/no-array-constructor': 'off', - '@typescript-eslint/no-explicit-any': 'off', - '@typescript-eslint/no-empty-function': 'off', - // rules that are not supported by oxlint + // rules that are not supported by oxlint, or are not enabled by our + // current oxlint setup 'no-unreachable-loop': 'error', - '@typescript-eslint/no-unsafe-function-type': 'error', - '@typescript-eslint/unified-signatures': 'error', - '@typescript-eslint/return-await': [ - 'error', - 'error-handling-correctness-only', - ], - 'sonarjs/no-all-duplicated-branches': 'error', - 'sonarjs/no-element-overwrite': 'error', - 'sonarjs/no-empty-collection': 'error', - 'sonarjs/no-extra-arguments': 'error', - 'sonarjs/no-identical-conditions': 'error', - 'sonarjs/no-identical-expressions': 'error', - 'sonarjs/no-ignored-return': 'error', - 'sonarjs/no-use-of-empty-return-value': 'error', - 'sonarjs/non-existent-operator': 'error', - 'sonarjs/no-collapsible-if': 'error', - 'sonarjs/no-same-line-conditional': 'error', - 'sonarjs/no-duplicated-branches': 'error', - 'sonarjs/no-collection-size-mischeck': 'error', - 'sonarjs/no-identical-functions': 'error', - 'sonarjs/no-gratuitous-expressions': 'error', - - 'simple-import-sort/imports': 'error', - 'simple-import-sort/exports': 'error', }, }, { @@ -151,17 +109,6 @@ export default tseslint.config( 'blocksuite/**/*.{ts,tsx}', ], rules: { - '@typescript-eslint/no-floating-promises': [ - 'error', - { - ignoreVoid: false, - ignoreIIFE: false, - }, - ], - '@typescript-eslint/await-thenable': 'error', - '@typescript-eslint/require-array-sort-compare': 'error', - '@typescript-eslint/no-misused-promises': ['error'], - '@typescript-eslint/prefer-readonly': 'error', 'import-x/no-extraneous-dependencies': [ 'error', { includeInternal: true }, @@ -212,25 +159,6 @@ export default tseslint.config( ], }, }, - { - files: [ - '**/__tests__/**/*', - '**/*.stories.tsx', - '**/*.spec.ts', - '**/tests/**/*', - 'scripts/**/*', - '**/benchmark/**/*', - '**/__debug__/**/*', - '**/e2e/**/*', - ], - rules: { - '@typescript-eslint/no-floating-promises': [ - 'error', - { ignoreVoid: true }, - ], - '@typescript-eslint/no-misused-promises': 0, - }, - }, { files: ['**/*.{ts,js,mjs}'], rules: { @@ -253,5 +181,6 @@ export default tseslint.config( 'rxjs/finnish': 'off', }, }, + ...oxlintConfigs, eslintConfigPrettier ); diff --git a/nyc.config.js b/nyc.config.js index 8ae468fbd..d195111e4 100644 --- a/nyc.config.js +++ b/nyc.config.js @@ -1,6 +1,6 @@ 'use strict'; -// eslint-disable-next-line @typescript-eslint/no-var-requires +// oxlint-disable-next-line @typescript-eslint/no-var-requires const defaultExclude = require('@istanbuljs/schema/default-exclude'); module.exports = { diff --git a/package.json b/package.json index a4e28abea..f2e273b3b 100644 --- a/package.json +++ b/package.json @@ -73,17 +73,18 @@ "eslint-config-prettier": "^10.1.8", "eslint-import-resolver-typescript": "^4.4.4", "eslint-plugin-import-x": "^4.16.1", - "eslint-plugin-oxlint": "^1.46.0", + "eslint-plugin-lit": "^2.2.1", + "eslint-plugin-oxlint": "1.58.0", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-simple-import-sort": "^12.1.1", - "eslint-plugin-sonarjs": "^3.0.7", - "eslint-plugin-unicorn": "^63.0.0", + "eslint-plugin-sonarjs": "^4.0.2", "happy-dom": "^20.0.0", "husky": "^9.1.7", "lint-staged": "^16.0.0", "msw": "^2.12.4", - "oxlint": "^1.47.0", + "oxlint": "1.58.0", + "oxlint-tsgolint": "^0.19.0", "prettier": "^3.7.4", "semver": "^7.7.3", "typescript": "^5.9.3", diff --git a/packages/backend/server/package.json b/packages/backend/server/package.json index 9a29d52ac..e6891d2cb 100644 --- a/packages/backend/server/package.json +++ b/packages/backend/server/package.json @@ -91,7 +91,7 @@ "nest-commander": "^3.15.0", "nest-winston": "^1.9.7", "nestjs-cls": "^6.0.0", - "nodemailer": "^7.0.11", + "nodemailer": "^8.0.4", "on-headers": "^1.1.0", "piscina": "^5.1.4", "prisma": "^6.6.0", @@ -100,7 +100,6 @@ "reflect-metadata": "^0.2.2", "rxjs": "^7.8.2", "semver": "^7.7.3", - "ses": "^1.14.0", "socket.io": "^4.8.1", "stripe": "^17.7.0", "tldts": "^7.0.19", @@ -127,7 +126,6 @@ "@types/nodemailer": "^7.0.0", "@types/on-headers": "^1.0.3", "@types/react": "^19.0.1", - "@types/react-dom": "^19.0.2", "@types/semver": "^7.5.8", "@types/sinon": "^21.0.0", "@types/supertest": "^7.0.0", diff --git a/packages/backend/server/src/__tests__/copilot/native-provider.spec.ts b/packages/backend/server/src/__tests__/copilot/native-provider.spec.ts index 1f66c5f2d..6f0bb6c40 100644 --- a/packages/backend/server/src/__tests__/copilot/native-provider.spec.ts +++ b/packages/backend/server/src/__tests__/copilot/native-provider.spec.ts @@ -247,7 +247,7 @@ class TestGeminiVertexProvider extends GeminiVertexProvider { }; } - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions protected override async fetchRemoteAttach( url: string, signal?: AbortSignal diff --git a/packages/backend/server/src/base/utils/request.ts b/packages/backend/server/src/base/utils/request.ts index eebdb1e94..e9ac6a4c2 100644 --- a/packages/backend/server/src/base/utils/request.ts +++ b/packages/backend/server/src/base/utils/request.ts @@ -8,7 +8,14 @@ import type { Request, Response } from 'express'; import { ClsServiceManager } from 'nestjs-cls'; import type { Socket } from 'socket.io'; -export function getRequestResponseFromHost(host: ArgumentsHost) { +type RequestResponse = { + req: Request; + res?: Response; +}; + +export function getRequestResponseFromHost( + host: ArgumentsHost +): RequestResponse { switch (host.getType()) { case 'graphql': { const gqlContext = GqlArgumentsHost.create(host).getContext<{ @@ -44,11 +51,13 @@ export function getRequestResponseFromHost(host: ArgumentsHost) { } } -export function getRequestFromHost(host: ArgumentsHost) { +export function getRequestFromHost(host: ArgumentsHost): Request { return getRequestResponseFromHost(host).req; } -export function getRequestResponseFromContext(ctx: ExecutionContext) { +export function getRequestResponseFromContext( + ctx: ExecutionContext +): RequestResponse { return getRequestResponseFromHost(ctx); } diff --git a/packages/backend/server/src/core/doc/storage/lock.ts b/packages/backend/server/src/core/doc/storage/lock.ts index c4fcf45f3..3ca10cae9 100644 --- a/packages/backend/server/src/core/doc/storage/lock.ts +++ b/packages/backend/server/src/core/doc/storage/lock.ts @@ -24,7 +24,7 @@ export class Lock { private release: () => void = () => {}; async acquire() { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + // oxlint-disable-next-line @typescript-eslint/no-non-null-assertion let release: () => void = null!; const nextLock = new Promise(resolve => { release = resolve; diff --git a/packages/backend/server/src/plugins/calendar/providers/caldav.ts b/packages/backend/server/src/plugins/calendar/providers/caldav.ts index 8c7210ede..b8fef45fb 100644 --- a/packages/backend/server/src/plugins/calendar/providers/caldav.ts +++ b/packages/backend/server/src/plugins/calendar/providers/caldav.ts @@ -820,7 +820,7 @@ export class CalDAVProvider extends CalendarProvider { }); } - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions override async exchangeCode(): Promise { throw new GraphqlBadRequest({ code: 'caldav_oauth_unsupported', @@ -828,7 +828,7 @@ export class CalDAVProvider extends CalendarProvider { }); } - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions override async refreshTokens(): Promise { throw new GraphqlBadRequest({ code: 'caldav_oauth_unsupported', @@ -836,7 +836,7 @@ export class CalDAVProvider extends CalendarProvider { }); } - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions override async getAccountProfile(): Promise { throw new GraphqlBadRequest({ code: 'caldav_oauth_unsupported', diff --git a/packages/backend/server/src/plugins/copilot/transcript/resolver.ts b/packages/backend/server/src/plugins/copilot/transcript/resolver.ts index d17555b85..e2584d136 100644 --- a/packages/backend/server/src/plugins/copilot/transcript/resolver.ts +++ b/packages/backend/server/src/plugins/copilot/transcript/resolver.ts @@ -344,7 +344,7 @@ export class CopilotTranscriptionResolver { user.id, workspaceId, blobId, - // eslint-disable-next-line @typescript-eslint/await-thenable + // oxlint-disable-next-line @typescript-eslint/await-thenable await Promise.all(allBlobs), input ?? undefined ); diff --git a/packages/common/graphql/package.json b/packages/common/graphql/package.json index 226090f79..0b076ce2b 100644 --- a/packages/common/graphql/package.json +++ b/packages/common/graphql/package.json @@ -12,7 +12,6 @@ }, "sideEffects": false, "devDependencies": { - "@graphql-codegen/add": "^5.0.3", "@graphql-codegen/cli": "^5.0.7", "@graphql-codegen/typescript": "^4.1.6", "@graphql-codegen/typescript-operations": "^4.6.1", @@ -25,7 +24,6 @@ }, "dependencies": { "@affine/debug": "workspace:*", - "@affine/env": "workspace:*", "@affine/error": "workspace:*", "graphql": "^16.9.0", "lodash": "^4.17.23", diff --git a/packages/common/graphql/src/graphql/access-token/create.gql b/packages/common/graphql/src/graphql/access-token/create.gql index 00b5e0f03..804b879d7 100644 --- a/packages/common/graphql/src/graphql/access-token/create.gql +++ b/packages/common/graphql/src/graphql/access-token/create.gql @@ -6,4 +6,4 @@ mutation generateUserAccessToken($input: GenerateAccessTokenInput!) { createdAt expiresAt } -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/access-token/revoke.gql b/packages/common/graphql/src/graphql/access-token/revoke.gql index ccd5a126a..187c18f1f 100644 --- a/packages/common/graphql/src/graphql/access-token/revoke.gql +++ b/packages/common/graphql/src/graphql/access-token/revoke.gql @@ -1,3 +1,3 @@ mutation revokeUserAccessToken($id: String!) { revokeUserAccessToken(id: $id) -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/admin/config.gql b/packages/common/graphql/src/graphql/admin/config.gql index 017ccb83e..0e3108849 100644 --- a/packages/common/graphql/src/graphql/admin/config.gql +++ b/packages/common/graphql/src/graphql/admin/config.gql @@ -1,3 +1,3 @@ query appConfig { appConfig -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/admin/import-users.gql b/packages/common/graphql/src/graphql/admin/import-users.gql index deebdc38e..c3cddd68f 100644 --- a/packages/common/graphql/src/graphql/admin/import-users.gql +++ b/packages/common/graphql/src/graphql/admin/import-users.gql @@ -11,4 +11,4 @@ mutation ImportUsers($input: ImportUsersInput!) { error } } -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/admin/send-test-email.gql b/packages/common/graphql/src/graphql/admin/send-test-email.gql index 7b0e94e9f..2af841df2 100644 --- a/packages/common/graphql/src/graphql/admin/send-test-email.gql +++ b/packages/common/graphql/src/graphql/admin/send-test-email.gql @@ -1,10 +1,19 @@ -mutation sendTestEmail($host: String!, $port: Int!, $sender: String!, $username: String!, $password: String!, $ignoreTLS: Boolean!) { - sendTestEmail(config: { - host: $host, - port: $port, - sender: $sender, - username: $username, - password: $password, - ignoreTLS: $ignoreTLS, - }) -} \ No newline at end of file +mutation sendTestEmail( + $host: String! + $port: Int! + $sender: String! + $username: String! + $password: String! + $ignoreTLS: Boolean! +) { + sendTestEmail( + config: { + host: $host + port: $port + sender: $sender + username: $username + password: $password + ignoreTLS: $ignoreTLS + } + ) +} diff --git a/packages/common/graphql/src/graphql/admin/update-config.gql b/packages/common/graphql/src/graphql/admin/update-config.gql index 25bfd10ec..6d0e49f13 100644 --- a/packages/common/graphql/src/graphql/admin/update-config.gql +++ b/packages/common/graphql/src/graphql/admin/update-config.gql @@ -1,3 +1,3 @@ mutation updateAppConfig($updates: [UpdateAppConfigInput!]!) { updateAppConfig(updates: $updates) -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/blob-upload-abort.gql b/packages/common/graphql/src/graphql/blob-upload-abort.gql index da4e8a1cc..d404cbaac 100644 --- a/packages/common/graphql/src/graphql/blob-upload-abort.gql +++ b/packages/common/graphql/src/graphql/blob-upload-abort.gql @@ -1,3 +1,7 @@ -mutation abortBlobUpload($workspaceId: String!, $key: String!, $uploadId: String!) { +mutation abortBlobUpload( + $workspaceId: String! + $key: String! + $uploadId: String! +) { abortBlobUpload(workspaceId: $workspaceId, key: $key, uploadId: $uploadId) } diff --git a/packages/common/graphql/src/graphql/blob-upload-complete.gql b/packages/common/graphql/src/graphql/blob-upload-complete.gql index f9cb1b264..196fe92d4 100644 --- a/packages/common/graphql/src/graphql/blob-upload-complete.gql +++ b/packages/common/graphql/src/graphql/blob-upload-complete.gql @@ -1,3 +1,13 @@ -mutation completeBlobUpload($workspaceId: String!, $key: String!, $uploadId: String, $parts: [BlobUploadPartInput!]) { - completeBlobUpload(workspaceId: $workspaceId, key: $key, uploadId: $uploadId, parts: $parts) +mutation completeBlobUpload( + $workspaceId: String! + $key: String! + $uploadId: String + $parts: [BlobUploadPartInput!] +) { + completeBlobUpload( + workspaceId: $workspaceId + key: $key + uploadId: $uploadId + parts: $parts + ) } diff --git a/packages/common/graphql/src/graphql/blob-upload-create.gql b/packages/common/graphql/src/graphql/blob-upload-create.gql index 2f6cd9c68..259307044 100644 --- a/packages/common/graphql/src/graphql/blob-upload-create.gql +++ b/packages/common/graphql/src/graphql/blob-upload-create.gql @@ -1,5 +1,15 @@ -mutation createBlobUpload($workspaceId: String!, $key: String!, $size: Int!, $mime: String!) { - createBlobUpload(workspaceId: $workspaceId, key: $key, size: $size, mime: $mime) { +mutation createBlobUpload( + $workspaceId: String! + $key: String! + $size: Int! + $mime: String! +) { + createBlobUpload( + workspaceId: $workspaceId + key: $key + size: $size + mime: $mime + ) { method blobKey alreadyUploaded diff --git a/packages/common/graphql/src/graphql/blob-upload-part-url.gql b/packages/common/graphql/src/graphql/blob-upload-part-url.gql index 837fb84fd..2ef2f449f 100644 --- a/packages/common/graphql/src/graphql/blob-upload-part-url.gql +++ b/packages/common/graphql/src/graphql/blob-upload-part-url.gql @@ -1,4 +1,9 @@ -query getBlobUploadPartUrl($workspaceId: String!, $key: String!, $uploadId: String!, $partNumber: Int!) { +query getBlobUploadPartUrl( + $workspaceId: String! + $key: String! + $uploadId: String! + $partNumber: Int! +) { workspace(id: $workspaceId) { blobUploadPartUrl(key: $key, uploadId: $uploadId, partNumber: $partNumber) { uploadUrl diff --git a/packages/common/graphql/src/graphql/calendar/update-calendar-account.gql b/packages/common/graphql/src/graphql/calendar/update-calendar-account.gql index 4bdf19412..4f4c2b6c2 100644 --- a/packages/common/graphql/src/graphql/calendar/update-calendar-account.gql +++ b/packages/common/graphql/src/graphql/calendar/update-calendar-account.gql @@ -1,5 +1,11 @@ -mutation updateCalendarAccount($accountId: String!, $refreshIntervalMinutes: Int!) { - updateCalendarAccount(accountId: $accountId, refreshIntervalMinutes: $refreshIntervalMinutes) { +mutation updateCalendarAccount( + $accountId: String! + $refreshIntervalMinutes: Int! +) { + updateCalendarAccount( + accountId: $accountId + refreshIntervalMinutes: $refreshIntervalMinutes + ) { id provider providerAccountId diff --git a/packages/common/graphql/src/graphql/comment-change-list.gql b/packages/common/graphql/src/graphql/comment-change-list.gql index eebf75fca..5bd325164 100644 --- a/packages/common/graphql/src/graphql/comment-change-list.gql +++ b/packages/common/graphql/src/graphql/comment-change-list.gql @@ -1,4 +1,8 @@ -query listCommentChanges($workspaceId: String!, $docId: String!, $pagination: PaginationInput!) { +query listCommentChanges( + $workspaceId: String! + $docId: String! + $pagination: PaginationInput! +) { workspace(id: $workspaceId) { commentChanges(docId: $docId, pagination: $pagination) { totalCount diff --git a/packages/common/graphql/src/graphql/comment-list.gql b/packages/common/graphql/src/graphql/comment-list.gql index 5e2a1ed2f..635f11eae 100644 --- a/packages/common/graphql/src/graphql/comment-list.gql +++ b/packages/common/graphql/src/graphql/comment-list.gql @@ -1,4 +1,8 @@ -query listComments($workspaceId: String!, $docId: String!, $pagination: PaginationInput) { +query listComments( + $workspaceId: String! + $docId: String! + $pagination: PaginationInput +) { workspace(id: $workspaceId) { comments(docId: $docId, pagination: $pagination) { totalCount diff --git a/packages/common/graphql/src/graphql/comment-upload-attachment.gql b/packages/common/graphql/src/graphql/comment-upload-attachment.gql index 2d1bf3cdf..1016f8265 100644 --- a/packages/common/graphql/src/graphql/comment-upload-attachment.gql +++ b/packages/common/graphql/src/graphql/comment-upload-attachment.gql @@ -1,3 +1,11 @@ -mutation uploadCommentAttachment($workspaceId: String!, $docId: String!, $attachment: Upload!) { - uploadCommentAttachment(workspaceId: $workspaceId, docId: $docId, attachment: $attachment) +mutation uploadCommentAttachment( + $workspaceId: String! + $docId: String! + $attachment: Upload! +) { + uploadCommentAttachment( + workspaceId: $workspaceId + docId: $docId + attachment: $attachment + ) } diff --git a/packages/common/graphql/src/graphql/copilot-apply-doc-updates.gql b/packages/common/graphql/src/graphql/copilot-apply-doc-updates.gql index 1d67e3ed7..016adeb92 100644 --- a/packages/common/graphql/src/graphql/copilot-apply-doc-updates.gql +++ b/packages/common/graphql/src/graphql/copilot-apply-doc-updates.gql @@ -1,3 +1,13 @@ -mutation applyDocUpdates($workspaceId: String!, $docId: String!, $op: String!, $updates: String!) { - applyDocUpdates(workspaceId: $workspaceId, docId: $docId, op: $op, updates: $updates) -} +mutation applyDocUpdates( + $workspaceId: String! + $docId: String! + $op: String! + $updates: String! +) { + applyDocUpdates( + workspaceId: $workspaceId + docId: $docId + op: $op + updates: $updates + ) +} diff --git a/packages/common/graphql/src/graphql/copilot-context-match-all.gql b/packages/common/graphql/src/graphql/copilot-context-match-all.gql index ba39cd04f..01d5f35a1 100644 --- a/packages/common/graphql/src/graphql/copilot-context-match-all.gql +++ b/packages/common/graphql/src/graphql/copilot-context-match-all.gql @@ -1,8 +1,20 @@ -query matchContext($contextId: String, $workspaceId: String, $content: String!, $limit: SafeInt, $scopedThreshold: Float, $threshold: Float) { +query matchContext( + $contextId: String + $workspaceId: String + $content: String! + $limit: SafeInt + $scopedThreshold: Float + $threshold: Float +) { currentUser { copilot(workspaceId: $workspaceId) { contexts(contextId: $contextId) { - matchFiles(content: $content, limit: $limit, scopedThreshold: $scopedThreshold, threshold: $threshold) { + matchFiles( + content: $content + limit: $limit + scopedThreshold: $scopedThreshold + threshold: $threshold + ) { fileId blobId name @@ -11,7 +23,12 @@ query matchContext($contextId: String, $workspaceId: String, $content: String!, content distance } - matchWorkspaceDocs(content: $content, limit: $limit, scopedThreshold: $scopedThreshold, threshold: $threshold) { + matchWorkspaceDocs( + content: $content + limit: $limit + scopedThreshold: $scopedThreshold + threshold: $threshold + ) { docId chunk content diff --git a/packages/common/graphql/src/graphql/copilot-context-match-docs.gql b/packages/common/graphql/src/graphql/copilot-context-match-docs.gql index cd3b50b4e..e7e410a66 100644 --- a/packages/common/graphql/src/graphql/copilot-context-match-docs.gql +++ b/packages/common/graphql/src/graphql/copilot-context-match-docs.gql @@ -1,8 +1,20 @@ -query matchWorkspaceDocs($contextId: String, $workspaceId: String, $content: String!, $limit: SafeInt, $scopedThreshold: Float, $threshold: Float) { +query matchWorkspaceDocs( + $contextId: String + $workspaceId: String + $content: String! + $limit: SafeInt + $scopedThreshold: Float + $threshold: Float +) { currentUser { copilot(workspaceId: $workspaceId) { contexts(contextId: $contextId) { - matchWorkspaceDocs(content: $content, limit: $limit, scopedThreshold: $scopedThreshold, threshold: $threshold) { + matchWorkspaceDocs( + content: $content + limit: $limit + scopedThreshold: $scopedThreshold + threshold: $threshold + ) { docId chunk content @@ -11,4 +23,4 @@ query matchWorkspaceDocs($contextId: String, $workspaceId: String, $content: Str } } } -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/copilot-context-match-files.gql b/packages/common/graphql/src/graphql/copilot-context-match-files.gql index b2e8b7617..4b374f34d 100644 --- a/packages/common/graphql/src/graphql/copilot-context-match-files.gql +++ b/packages/common/graphql/src/graphql/copilot-context-match-files.gql @@ -1,8 +1,20 @@ -query matchFiles($contextId: String, $workspaceId: String, $content: String!, $limit: SafeInt, $scopedThreshold: Float, $threshold: Float) { +query matchFiles( + $contextId: String + $workspaceId: String + $content: String! + $limit: SafeInt + $scopedThreshold: Float + $threshold: Float +) { currentUser { copilot(workspaceId: $workspaceId) { contexts(contextId: $contextId) { - matchFiles(content: $content, limit: $limit, scopedThreshold: $scopedThreshold, threshold: $threshold) { + matchFiles( + content: $content + limit: $limit + scopedThreshold: $scopedThreshold + threshold: $threshold + ) { fileId blobId chunk diff --git a/packages/common/graphql/src/graphql/copilot-history-list-pinned-session.gql b/packages/common/graphql/src/graphql/copilot-history-list-pinned-session.gql index 9373957d8..15ea9c4c3 100644 --- a/packages/common/graphql/src/graphql/copilot-history-list-pinned-session.gql +++ b/packages/common/graphql/src/graphql/copilot-history-list-pinned-session.gql @@ -8,11 +8,15 @@ query getCopilotPinnedSessions( ) { currentUser { copilot(workspaceId: $workspaceId) { - chats(pagination: { first: 1 }, docId: $docId, options: { - pinned: true, - messageOrder: $messageOrder, - withPrompt: $withPrompt - }) { + chats( + pagination: { first: 1 } + docId: $docId + options: { + pinned: true + messageOrder: $messageOrder + withPrompt: $withPrompt + } + ) { ...PaginatedCopilotChats } } diff --git a/packages/common/graphql/src/graphql/copilot-jobs-transcription-add.gql b/packages/common/graphql/src/graphql/copilot-jobs-transcription-add.gql index 093d9e425..5e320532e 100644 --- a/packages/common/graphql/src/graphql/copilot-jobs-transcription-add.gql +++ b/packages/common/graphql/src/graphql/copilot-jobs-transcription-add.gql @@ -1,5 +1,17 @@ -mutation submitAudioTranscription($workspaceId: String!, $blobId: String!, $blob: Upload, $blobs: [Upload!], $input: SubmitAudioTranscriptionInput) { - submitAudioTranscription(blob: $blob, blobs: $blobs, blobId: $blobId, workspaceId: $workspaceId, input: $input) { +mutation submitAudioTranscription( + $workspaceId: String! + $blobId: String! + $blob: Upload + $blobs: [Upload!] + $input: SubmitAudioTranscriptionInput +) { + submitAudioTranscription( + blob: $blob + blobs: $blobs + blobId: $blobId + workspaceId: $workspaceId + input: $input + ) { id status } diff --git a/packages/common/graphql/src/graphql/copilot-session-get-latest-doc.gql b/packages/common/graphql/src/graphql/copilot-session-get-latest-doc.gql index 3698aab85..fc0f6abdc 100644 --- a/packages/common/graphql/src/graphql/copilot-session-get-latest-doc.gql +++ b/packages/common/graphql/src/graphql/copilot-session-get-latest-doc.gql @@ -1,9 +1,6 @@ #import "./fragments/paginated-copilot-chats.gql" -query getCopilotLatestDocSession( - $workspaceId: String! - $docId: String! -) { +query getCopilotLatestDocSession($workspaceId: String!, $docId: String!) { currentUser { copilot(workspaceId: $workspaceId) { chats( diff --git a/packages/common/graphql/src/graphql/copilot-session-get.gql b/packages/common/graphql/src/graphql/copilot-session-get.gql index 9bf014245..c5af38391 100644 --- a/packages/common/graphql/src/graphql/copilot-session-get.gql +++ b/packages/common/graphql/src/graphql/copilot-session-get.gql @@ -1,15 +1,9 @@ #import "./fragments/paginated-copilot-chats.gql" -query getCopilotSession( - $workspaceId: String! - $sessionId: String! -) { +query getCopilotSession($workspaceId: String!, $sessionId: String!) { currentUser { copilot(workspaceId: $workspaceId) { - chats( - pagination: { first: 1 } - options: { sessionId: $sessionId } - ) { + chats(pagination: { first: 1 }, options: { sessionId: $sessionId }) { ...PaginatedCopilotChats } } diff --git a/packages/common/graphql/src/graphql/copilot-workspace-file-get.gql b/packages/common/graphql/src/graphql/copilot-workspace-file-get.gql index b058022ab..c857d7391 100644 --- a/packages/common/graphql/src/graphql/copilot-workspace-file-get.gql +++ b/packages/common/graphql/src/graphql/copilot-workspace-file-get.gql @@ -1,4 +1,7 @@ -query getWorkspaceEmbeddingFiles($workspaceId: String!, $pagination: PaginationInput!) { +query getWorkspaceEmbeddingFiles( + $workspaceId: String! + $pagination: PaginationInput! +) { workspace(id: $workspaceId) { embedding { files(pagination: $pagination) { diff --git a/packages/common/graphql/src/graphql/copilot-workspace-file-remove.gql b/packages/common/graphql/src/graphql/copilot-workspace-file-remove.gql index 19652cee1..3e0c869b9 100644 --- a/packages/common/graphql/src/graphql/copilot-workspace-file-remove.gql +++ b/packages/common/graphql/src/graphql/copilot-workspace-file-remove.gql @@ -1,3 +1,6 @@ -mutation removeWorkspaceEmbeddingFiles($workspaceId: String!, $fileId: String!) { +mutation removeWorkspaceEmbeddingFiles( + $workspaceId: String! + $fileId: String! +) { removeWorkspaceEmbeddingFiles(workspaceId: $workspaceId, fileId: $fileId) } diff --git a/packages/common/graphql/src/graphql/copilot-workspace-ignored-docs-add.gql b/packages/common/graphql/src/graphql/copilot-workspace-ignored-docs-add.gql index e73e612b0..c14b1830c 100644 --- a/packages/common/graphql/src/graphql/copilot-workspace-ignored-docs-add.gql +++ b/packages/common/graphql/src/graphql/copilot-workspace-ignored-docs-add.gql @@ -1,3 +1,6 @@ -mutation addWorkspaceEmbeddingIgnoredDocs($workspaceId: String!, $add: [String!]!) { +mutation addWorkspaceEmbeddingIgnoredDocs( + $workspaceId: String! + $add: [String!]! +) { updateWorkspaceEmbeddingIgnoredDocs(workspaceId: $workspaceId, add: $add) } diff --git a/packages/common/graphql/src/graphql/copilot-workspace-ignored-docs-get.gql b/packages/common/graphql/src/graphql/copilot-workspace-ignored-docs-get.gql index ec43bda6f..4f09755ce 100644 --- a/packages/common/graphql/src/graphql/copilot-workspace-ignored-docs-get.gql +++ b/packages/common/graphql/src/graphql/copilot-workspace-ignored-docs-get.gql @@ -1,4 +1,7 @@ -query getWorkspaceEmbeddingIgnoredDocs($workspaceId: String!, $pagination: PaginationInput!) { +query getWorkspaceEmbeddingIgnoredDocs( + $workspaceId: String! + $pagination: PaginationInput! +) { workspace(id: $workspaceId) { embedding { ignoredDocs(pagination: $pagination) { diff --git a/packages/common/graphql/src/graphql/copilot-workspace-ignored-docs-remove.gql b/packages/common/graphql/src/graphql/copilot-workspace-ignored-docs-remove.gql index 51659dfbe..8f40b08ea 100644 --- a/packages/common/graphql/src/graphql/copilot-workspace-ignored-docs-remove.gql +++ b/packages/common/graphql/src/graphql/copilot-workspace-ignored-docs-remove.gql @@ -1,3 +1,9 @@ -mutation removeWorkspaceEmbeddingIgnoredDocs($workspaceId: String!, $remove: [String!]!) { - updateWorkspaceEmbeddingIgnoredDocs(workspaceId: $workspaceId, remove: $remove) +mutation removeWorkspaceEmbeddingIgnoredDocs( + $workspaceId: String! + $remove: [String!]! +) { + updateWorkspaceEmbeddingIgnoredDocs( + workspaceId: $workspaceId + remove: $remove + ) } diff --git a/packages/common/graphql/src/graphql/create-self-host-customer-portal.gql b/packages/common/graphql/src/graphql/create-self-host-customer-portal.gql index de280ab03..003a60180 100644 --- a/packages/common/graphql/src/graphql/create-self-host-customer-portal.gql +++ b/packages/common/graphql/src/graphql/create-self-host-customer-portal.gql @@ -1,3 +1,3 @@ -mutation createSelfhostCustomerPortal ($workspaceId: String!) { +mutation createSelfhostCustomerPortal($workspaceId: String!) { createSelfhostWorkspaceCustomerPortal(workspaceId: $workspaceId) } diff --git a/packages/common/graphql/src/graphql/get-doc-created-by-updated-by-list.gql b/packages/common/graphql/src/graphql/get-doc-created-by-updated-by-list.gql index 7fe4fe960..8f9478e0a 100644 --- a/packages/common/graphql/src/graphql/get-doc-created-by-updated-by-list.gql +++ b/packages/common/graphql/src/graphql/get-doc-created-by-updated-by-list.gql @@ -1,9 +1,12 @@ -query getDocCreatedByUpdatedByList($workspaceId: String!, $pagination: PaginationInput!) { +query getDocCreatedByUpdatedByList( + $workspaceId: String! + $pagination: PaginationInput! +) { workspace(id: $workspaceId) { docs(pagination: $pagination) { totalCount pageInfo { - endCursor + endCursor hasNextPage } edges { @@ -15,4 +18,4 @@ query getDocCreatedByUpdatedByList($workspaceId: String!, $pagination: Paginatio } } } -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/get-doc-default-role.gql b/packages/common/graphql/src/graphql/get-doc-default-role.gql index 0a0d94719..8c3e1854f 100644 --- a/packages/common/graphql/src/graphql/get-doc-default-role.gql +++ b/packages/common/graphql/src/graphql/get-doc-default-role.gql @@ -4,4 +4,4 @@ query getDocDefaultRole($workspaceId: String!, $docId: String!) { defaultRole } } -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/get-doc-summary.gql b/packages/common/graphql/src/graphql/get-doc-summary.gql index ecafddab7..37ef98279 100644 --- a/packages/common/graphql/src/graphql/get-doc-summary.gql +++ b/packages/common/graphql/src/graphql/get-doc-summary.gql @@ -4,4 +4,4 @@ query getDocSummary($workspaceId: String!, $docId: String!) { summary } } -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/get-members-by-workspace-id.gql b/packages/common/graphql/src/graphql/get-members-by-workspace-id.gql index e2e2ff885..cd653c100 100644 --- a/packages/common/graphql/src/graphql/get-members-by-workspace-id.gql +++ b/packages/common/graphql/src/graphql/get-members-by-workspace-id.gql @@ -1,4 +1,9 @@ -query getMembersByWorkspaceId($workspaceId: String!, $skip: Int, $take: Int, $query: String) { +query getMembersByWorkspaceId( + $workspaceId: String! + $skip: Int + $take: Int + $query: String +) { workspace(id: $workspaceId) { memberCount members(skip: $skip, take: $take, query: $query) { diff --git a/packages/common/graphql/src/graphql/get-page-granted-users-list.gql b/packages/common/graphql/src/graphql/get-page-granted-users-list.gql index b75d430f2..e507165ef 100644 --- a/packages/common/graphql/src/graphql/get-page-granted-users-list.gql +++ b/packages/common/graphql/src/graphql/get-page-granted-users-list.gql @@ -1,4 +1,8 @@ -query getPageGrantedUsersList($pagination: PaginationInput!, $docId: String!, $workspaceId: String!) { +query getPageGrantedUsersList( + $pagination: PaginationInput! + $docId: String! + $workspaceId: String! +) { workspace(id: $workspaceId) { doc(docId: $docId) { grantedUsersList(pagination: $pagination) { @@ -21,4 +25,4 @@ query getPageGrantedUsersList($pagination: PaginationInput!, $docId: String!, $w } } } -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/get-public-user-by-id.gql b/packages/common/graphql/src/graphql/get-public-user-by-id.gql index 0a3ed0bfa..c9c683b7c 100644 --- a/packages/common/graphql/src/graphql/get-public-user-by-id.gql +++ b/packages/common/graphql/src/graphql/get-public-user-by-id.gql @@ -1,7 +1,7 @@ query getPublicUserById($id: String!) { - publicUserById(id: $id) { - id - avatarUrl - name - } -} \ No newline at end of file + publicUserById(id: $id) { + id + avatarUrl + name + } +} diff --git a/packages/common/graphql/src/graphql/get-recently-update-docs.gql b/packages/common/graphql/src/graphql/get-recently-update-docs.gql index 4355d0aa6..56dffd97b 100644 --- a/packages/common/graphql/src/graphql/get-recently-update-docs.gql +++ b/packages/common/graphql/src/graphql/get-recently-update-docs.gql @@ -1,4 +1,7 @@ -query getRecentlyUpdatedDocs($workspaceId: String!, $pagination: PaginationInput!) { +query getRecentlyUpdatedDocs( + $workspaceId: String! + $pagination: PaginationInput! +) { workspace(id: $workspaceId) { recentlyUpdatedDocs(pagination: $pagination) { totalCount diff --git a/packages/common/graphql/src/graphql/grant-doc-user-roles.gql b/packages/common/graphql/src/graphql/grant-doc-user-roles.gql index 2b7b85b78..0e3127aba 100644 --- a/packages/common/graphql/src/graphql/grant-doc-user-roles.gql +++ b/packages/common/graphql/src/graphql/grant-doc-user-roles.gql @@ -1,3 +1,3 @@ mutation grantDocUserRoles($input: GrantDocUserRolesInput!) { grantDocUserRoles(input: $input) -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/license/activate-license.gql b/packages/common/graphql/src/graphql/license/activate-license.gql index 1679c1fe4..bdb6f996d 100644 --- a/packages/common/graphql/src/graphql/license/activate-license.gql +++ b/packages/common/graphql/src/graphql/license/activate-license.gql @@ -4,4 +4,4 @@ mutation activateLicense($workspaceId: String!, $license: String!) { activateLicense(workspaceId: $workspaceId, license: $license) { ...licenseBody } -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/license/deactivate-license.gql b/packages/common/graphql/src/graphql/license/deactivate-license.gql index 304ca7782..7860ab6e4 100644 --- a/packages/common/graphql/src/graphql/license/deactivate-license.gql +++ b/packages/common/graphql/src/graphql/license/deactivate-license.gql @@ -1,3 +1,3 @@ mutation deactivateLicense($workspaceId: String!) { deactivateLicense(workspaceId: $workspaceId) -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/license/install-license.gql b/packages/common/graphql/src/graphql/license/install-license.gql index 15caf141c..8f247ac41 100644 --- a/packages/common/graphql/src/graphql/license/install-license.gql +++ b/packages/common/graphql/src/graphql/license/install-license.gql @@ -4,4 +4,4 @@ mutation installLicense($workspaceId: String!, $license: Upload!) { installLicense(workspaceId: $workspaceId, license: $license) { ...licenseBody } -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/license/license-body.gql b/packages/common/graphql/src/graphql/license/license-body.gql index fca875f48..b32b1bd96 100644 --- a/packages/common/graphql/src/graphql/license/license-body.gql +++ b/packages/common/graphql/src/graphql/license/license-body.gql @@ -5,4 +5,4 @@ fragment licenseBody on License { recurring validatedAt variant -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/list-notifications.gql b/packages/common/graphql/src/graphql/list-notifications.gql index 30f153f6b..43e12b6e9 100644 --- a/packages/common/graphql/src/graphql/list-notifications.gql +++ b/packages/common/graphql/src/graphql/list-notifications.gql @@ -22,4 +22,4 @@ query listNotifications($pagination: PaginationInput!) { } } } -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/mention-user.gql b/packages/common/graphql/src/graphql/mention-user.gql index 01d1db9e7..5ca5659a3 100644 --- a/packages/common/graphql/src/graphql/mention-user.gql +++ b/packages/common/graphql/src/graphql/mention-user.gql @@ -1,3 +1,3 @@ mutation mentionUser($input: MentionInput!) { mentionUser(input: $input) -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/read-notification.gql b/packages/common/graphql/src/graphql/read-notification.gql index d46a43828..9da5d1050 100644 --- a/packages/common/graphql/src/graphql/read-notification.gql +++ b/packages/common/graphql/src/graphql/read-notification.gql @@ -1,3 +1,3 @@ mutation readNotification($id: String!) { readNotification(id: $id) -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/revoke-doc-user-roles.gql b/packages/common/graphql/src/graphql/revoke-doc-user-roles.gql index cf43d0505..2d78fa4ad 100644 --- a/packages/common/graphql/src/graphql/revoke-doc-user-roles.gql +++ b/packages/common/graphql/src/graphql/revoke-doc-user-roles.gql @@ -1,3 +1,3 @@ mutation revokeDocUserRoles($input: RevokeDocUserRoleInput!) { revokeDocUserRoles(input: $input) -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/update-doc-default-role.gql b/packages/common/graphql/src/graphql/update-doc-default-role.gql index db639ff71..056422e7a 100644 --- a/packages/common/graphql/src/graphql/update-doc-default-role.gql +++ b/packages/common/graphql/src/graphql/update-doc-default-role.gql @@ -1,3 +1,3 @@ mutation updateDocDefaultRole($input: UpdateDocDefaultRoleInput!) { updateDocDefaultRole(input: $input) -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/update-doc-user-role.gql b/packages/common/graphql/src/graphql/update-doc-user-role.gql index 8e68b5f86..1a4a3020f 100644 --- a/packages/common/graphql/src/graphql/update-doc-user-role.gql +++ b/packages/common/graphql/src/graphql/update-doc-user-role.gql @@ -1,3 +1,3 @@ mutation updateDocUserRole($input: UpdateDocUserRoleInput!) { updateDocUserRole(input: $input) -} \ No newline at end of file +} diff --git a/packages/common/graphql/src/graphql/workspace-intive-by-emails.gql b/packages/common/graphql/src/graphql/workspace-intive-by-emails.gql index 43a4cb3b9..e0b525ed1 100644 --- a/packages/common/graphql/src/graphql/workspace-intive-by-emails.gql +++ b/packages/common/graphql/src/graphql/workspace-intive-by-emails.gql @@ -1,11 +1,5 @@ -mutation inviteByEmails( - $workspaceId: String! - $emails: [String!]! -) { - inviteMembers( - workspaceId: $workspaceId - emails: $emails - ) { +mutation inviteByEmails($workspaceId: String!, $emails: [String!]!) { + inviteMembers(workspaceId: $workspaceId, emails: $emails) { email inviteId sentSuccess diff --git a/packages/common/graphql/src/graphql/workspace-invite-accept-by-invite-id.gql b/packages/common/graphql/src/graphql/workspace-invite-accept-by-invite-id.gql index 9d499dddf..1138ddf32 100644 --- a/packages/common/graphql/src/graphql/workspace-invite-accept-by-invite-id.gql +++ b/packages/common/graphql/src/graphql/workspace-invite-accept-by-invite-id.gql @@ -1,9 +1,3 @@ -mutation acceptInviteByInviteId( - $workspaceId: String! - $inviteId: String! -) { - acceptInviteById( - workspaceId: $workspaceId - inviteId: $inviteId - ) +mutation acceptInviteByInviteId($workspaceId: String!, $inviteId: String!) { + acceptInviteById(workspaceId: $workspaceId, inviteId: $inviteId) } diff --git a/packages/common/graphql/tsconfig.json b/packages/common/graphql/tsconfig.json index 605949f39..feeda20ed 100644 --- a/packages/common/graphql/tsconfig.json +++ b/packages/common/graphql/tsconfig.json @@ -6,9 +6,5 @@ "outDir": "./dist", "tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo" }, - "references": [ - { "path": "../debug" }, - { "path": "../env" }, - { "path": "../error" } - ] + "references": [{ "path": "../debug" }, { "path": "../error" }] } diff --git a/packages/common/infra/package.json b/packages/common/infra/package.json index 6a177214c..5975781a6 100644 --- a/packages/common/infra/package.json +++ b/packages/common/infra/package.json @@ -18,11 +18,7 @@ "@affine/templates": "workspace:*", "@preact/signals-core": "^1.8.0", "eventemitter2": "^6.4.9", - "foxact": "^0.2.49", "fractional-indexing": "^3.2.0", - "fuse.js": "^7.0.0", - "graphemer": "^1.4.0", - "idb": "^8.0.0", "jotai": "^2.10.3", "jotai-effect": "^2.0.0", "lodash-es": "^4.17.23", @@ -32,12 +28,9 @@ "zod": "^3.25.76" }, "devDependencies": { - "@affine/templates": "workspace:*", - "@emotion/react": "^11.14.0", "@testing-library/dom": "^10.4.0", "@testing-library/react": "^16.1.0", "@types/react": "^19.0.1", - "fake-indexeddb": "^6.0.0", "rxjs": "^7.8.2", "vitest": "^4.0.18" }, diff --git a/packages/common/infra/src/framework/core/provider.ts b/packages/common/infra/src/framework/core/provider.ts index 4322cf64e..1bc175952 100644 --- a/packages/common/infra/src/framework/core/provider.ts +++ b/packages/common/infra/src/framework/core/provider.ts @@ -226,7 +226,7 @@ class Resolver extends FrameworkProvider { const result = new Map(); for (const [variant, factory] of vars) { - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions const runFactory = () => { const nextResolver = this.track(identifier); try { diff --git a/packages/common/infra/src/livedata/livedata.ts b/packages/common/infra/src/livedata/livedata.ts index 384b9c8c9..febf4968b 100644 --- a/packages/common/infra/src/livedata/livedata.ts +++ b/packages/common/infra/src/livedata/livedata.ts @@ -516,7 +516,7 @@ export class LiveData const subscription = this.subscribe(v => { if (predicate(v)) { resolve(v as any); - // eslint-disable-next-line @typescript-eslint/no-floating-promises + // oxlint-disable-next-line @typescript-eslint/no-floating-promises Promise.resolve().then(() => { subscription.unsubscribe(); }); @@ -554,7 +554,7 @@ export class LiveData throw this.poisonedError; } this.ops$.next('watch'); - // eslint-disable-next-line @typescript-eslint/no-floating-promises -- never throw + // oxlint-disable-next-line @typescript-eslint/no-floating-promises -- never throw Promise.resolve().then(() => { this.ops$.next('unwatch'); }); diff --git a/packages/common/nbstore/package.json b/packages/common/nbstore/package.json index 631278b23..843a61779 100644 --- a/packages/common/nbstore/package.json +++ b/packages/common/nbstore/package.json @@ -22,7 +22,6 @@ "@toeverything/infra": "workspace:*", "eventemitter2": "^6.4.9", "graphemer": "^1.4.0", - "lib0": "^0.2.114", "lodash-es": "^4.17.23", "nanoid": "^5.1.6", "rxjs": "^7.8.2", diff --git a/packages/common/nbstore/src/impls/idb/indexer/inverted-index.ts b/packages/common/nbstore/src/impls/idb/indexer/inverted-index.ts index 3680c5f53..470684ed2 100644 --- a/packages/common/nbstore/src/impls/idb/indexer/inverted-index.ts +++ b/packages/common/nbstore/src/impls/idb/indexer/inverted-index.ts @@ -102,7 +102,7 @@ export class IntegerInvertedIndex implements InvertedIndex { return match; } - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions async all(trx: DataStructROTransaction): Promise { const objs = await trx .objectStore('invertedIndex') @@ -149,7 +149,7 @@ export class BooleanInvertedIndex implements InvertedIndex { readonly fieldKey: string ) {} - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions async all(trx: DataStructROTransaction): Promise { const objs = await trx .objectStore('invertedIndex') @@ -350,7 +350,7 @@ export class FullTextInvertedIndex implements InvertedIndex { return match; } - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions async all(trx: DataStructROTransaction): Promise { const objs = await trx .objectStore('invertedIndex') diff --git a/packages/common/nbstore/src/storage/lock.ts b/packages/common/nbstore/src/storage/lock.ts index fe485e0a1..ae0f4c009 100644 --- a/packages/common/nbstore/src/storage/lock.ts +++ b/packages/common/nbstore/src/storage/lock.ts @@ -26,7 +26,7 @@ export class Lock { private release: () => void = () => {}; async acquire() { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + // oxlint-disable-next-line @typescript-eslint/no-non-null-assertion let release: () => void = null!; const nextLock = new Promise(resolve => { release = resolve; diff --git a/packages/common/nbstore/src/sync/blob/index.ts b/packages/common/nbstore/src/sync/blob/index.ts index c2a99f26d..3deeb8310 100644 --- a/packages/common/nbstore/src/sync/blob/index.ts +++ b/packages/common/nbstore/src/sync/blob/index.ts @@ -190,7 +190,7 @@ export class BlobSyncImpl implements BlobSync { ): Promise { return Promise.race([ Promise.all( - // eslint-disable-next-line @typescript-eslint/await-thenable + // oxlint-disable-next-line @typescript-eslint/await-thenable peerId ? [this.fullDownloadPeer(peerId)] : this.peers.map(p => this.fullDownloadPeer(p.peerId)) diff --git a/packages/common/nbstore/src/sync/blob/peer.ts b/packages/common/nbstore/src/sync/blob/peer.ts index 984b86218..a1c087d87 100644 --- a/packages/common/nbstore/src/sync/blob/peer.ts +++ b/packages/common/nbstore/src/sync/blob/peer.ts @@ -94,7 +94,7 @@ export class BlobSyncPeer { Math.pow(2, attempts - 1) * backoffRetry.delay, backoffRetry.maxDelay ); - // eslint-disable-next-line @typescript-eslint/no-misused-promises + // oxlint-disable-next-line @typescript-eslint/no-misused-promises setTimeout(attempt, waitTime); } else { // reach the max retry times, resolve the promise with false @@ -107,7 +107,7 @@ export class BlobSyncPeer { } }; - // eslint-disable-next-line @typescript-eslint/no-floating-promises + // oxlint-disable-next-line @typescript-eslint/no-floating-promises attempt(); }) .catch(error => { diff --git a/packages/common/s3-compat/package.json b/packages/common/s3-compat/package.json index 0dfd592a7..6eca7af6e 100644 --- a/packages/common/s3-compat/package.json +++ b/packages/common/s3-compat/package.json @@ -11,8 +11,7 @@ "s3mini": "^0.9.1" }, "devDependencies": { - "@types/aws4": "^1.11.6", - "vitest": "^4.0.18" + "@types/aws4": "^1.11.6" }, "version": "0.26.3" } diff --git a/packages/frontend/admin/package.json b/packages/frontend/admin/package.json index 013826621..94cdee2e5 100644 --- a/packages/frontend/admin/package.json +++ b/packages/frontend/admin/package.json @@ -39,7 +39,6 @@ "@radix-ui/react-tooltip": "^1.1.5", "@sentry/react": "^10.40.0", "@tanstack/react-table": "^8.20.5", - "@toeverything/infra": "workspace:*", "@toeverything/theme": "^1.1.23", "cmdk": "^1.0.4", "embla-carousel-react": "^8.5.1", @@ -56,16 +55,13 @@ "recharts": "^2.15.4", "sonner": "^2.0.7", "swr": "^2.3.7", - "vaul": "^1.1.2", - "zod": "^3.25.76" + "vaul": "^1.1.2" }, "devDependencies": { "@testing-library/react": "^16.3.2", "@types/lodash-es": "^4.17.12", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", - "cross-env": "^10.1.0", - "shadcn-ui": "^0.9.5", "tailwind-merge": "^3.4.0", "tailwindcss": "^4.1.17", "tailwindcss-animate": "^1.0.7", diff --git a/packages/frontend/admin/src/index.tsx b/packages/frontend/admin/src/index.tsx index cbe23db83..fc8db485e 100644 --- a/packages/frontend/admin/src/index.tsx +++ b/packages/frontend/admin/src/index.tsx @@ -5,5 +5,5 @@ import { createRoot } from 'react-dom/client'; import { App } from './app'; -// eslint-disable-next-line @typescript-eslint/no-non-null-assertion +// oxlint-disable-next-line @typescript-eslint/no-non-null-assertion createRoot(document.getElementById('app')!).render(); diff --git a/packages/frontend/admin/src/modules/accounts/components/use-user-management.ts b/packages/frontend/admin/src/modules/accounts/components/use-user-management.ts index cc2343cad..ca7a3fa04 100644 --- a/packages/frontend/admin/src/modules/accounts/components/use-user-management.ts +++ b/packages/frontend/admin/src/modules/accounts/components/use-user-management.ts @@ -323,7 +323,7 @@ export const useExportUsers = () => { }); dataToCopy.push(row); }); - // eslint-disable-next-line @typescript-eslint/no-floating-promises + // oxlint-disable-next-line @typescript-eslint/no-floating-promises navigator.clipboard.writeText(JSON.stringify(dataToCopy, null, 2)); callback?.(); }, diff --git a/packages/frontend/admin/tsconfig.json b/packages/frontend/admin/tsconfig.json index f94199c0e..34b0c5dc3 100644 --- a/packages/frontend/admin/tsconfig.json +++ b/packages/frontend/admin/tsconfig.json @@ -13,7 +13,6 @@ { "path": "../core" }, { "path": "../../common/error" }, { "path": "../../common/graphql" }, - { "path": "../routes" }, - { "path": "../../common/infra" } + { "path": "../routes" } ] } diff --git a/packages/frontend/apps/android/package.json b/packages/frontend/apps/android/package.json index 9762a7554..1d160839d 100644 --- a/packages/frontend/apps/android/package.json +++ b/packages/frontend/apps/android/package.json @@ -19,14 +19,12 @@ "@affine/nbstore": "workspace:*", "@affine/track": "workspace:*", "@blocksuite/affine": "workspace:*", - "@blocksuite/icons": "^2.2.17", "@capacitor/android": "^7.0.0", "@capacitor/app": "^7.0.0", "@capacitor/core": "^7.0.0", "@capacitor/keyboard": "^7.0.0", "@capacitor/status-bar": "^7.0.0", "@capgo/inappbrowser": "^8.0.0", - "@sentry/react": "^10.40.0", "@toeverything/infra": "workspace:*", "async-call-rpc": "^6.4.2", "idb": "^8.0.0", @@ -39,7 +37,6 @@ "@capacitor/cli": "^7.0.0", "@types/react": "^19.0.1", "@types/react-dom": "^19.0.2", - "cross-env": "^10.1.0", "typescript": "^5.9.3" } } diff --git a/packages/frontend/apps/electron-renderer/package.json b/packages/frontend/apps/electron-renderer/package.json index 18434dbb5..1e0beb81f 100644 --- a/packages/frontend/apps/electron-renderer/package.json +++ b/packages/frontend/apps/electron-renderer/package.json @@ -17,23 +17,18 @@ "@affine/track": "workspace:*", "@blocksuite/affine": "workspace:*", "@emotion/react": "^11.14.0", - "@sentry/react": "^10.40.0", "@toeverything/infra": "workspace:*", "@toeverything/theme": "^1.1.23", "@vanilla-extract/css": "^1.17.0", - "async-call-rpc": "^6.4.2", "next-themes": "^0.4.4", "react": "^19.2.1", "react-dom": "^19.2.1", "react-router-dom": "^6.30.3", - "uuid": "^13.0.0", - "webm-muxer": "^5.0.3" + "uuid": "^13.0.0" }, "devDependencies": { - "@affine-tools/utils": "workspace:*", "@types/react": "^19.0.1", "@types/react-dom": "^19.0.2", - "cross-env": "^10.1.0", "typescript": "^5.9.3" } } diff --git a/packages/frontend/apps/electron-renderer/tsconfig.json b/packages/frontend/apps/electron-renderer/tsconfig.json index c81ab6cca..392c6e8e4 100644 --- a/packages/frontend/apps/electron-renderer/tsconfig.json +++ b/packages/frontend/apps/electron-renderer/tsconfig.json @@ -16,7 +16,6 @@ { "path": "../../../common/nbstore" }, { "path": "../../track" }, { "path": "../../../../blocksuite/affine/all" }, - { "path": "../../../common/infra" }, - { "path": "../../../../tools/utils" } + { "path": "../../../common/infra" } ] } diff --git a/packages/frontend/apps/electron/package.json b/packages/frontend/apps/electron/package.json index 5eea310dc..e35432abf 100644 --- a/packages/frontend/apps/electron/package.json +++ b/packages/frontend/apps/electron/package.json @@ -49,10 +49,8 @@ "@reforged/maker-appimage": "^5.2.0", "@sentry/electron": "^7.9.0", "@sentry/esbuild-plugin": "^5.1.1", - "@sentry/react": "^10.40.0", "@toeverything/infra": "workspace:*", "@types/set-cookie-parser": "^2.4.10", - "@types/uuid": "^11.0.0", "@vitejs/plugin-react-swc": "^4.0.0", "app-builder-lib": "^26.8.1", "builder-util-runtime": "^9.5.1", @@ -80,7 +78,6 @@ "async-call-rpc": "^6.4.2", "electron-updater": "^6.8.3", "link-preview-js": "^4.0.0", - "next-themes": "^0.4.4", "set-cookie-parser": "^2.7.1", "yjs": "^13.6.27" }, diff --git a/packages/frontend/apps/ios/package.json b/packages/frontend/apps/ios/package.json index f07220e77..210b20033 100644 --- a/packages/frontend/apps/ios/package.json +++ b/packages/frontend/apps/ios/package.json @@ -23,14 +23,12 @@ "@affine/nbstore": "workspace:*", "@affine/track": "workspace:*", "@blocksuite/affine": "workspace:*", - "@blocksuite/icons": "^2.2.17", "@capacitor/app": "^7.0.0", "@capacitor/browser": "^7.0.0", "@capacitor/core": "^7.0.0", "@capacitor/haptics": "^7.0.0", "@capacitor/ios": "^7.0.0", "@capacitor/keyboard": "^7.0.0", - "@sentry/react": "^10.40.0", "@toeverything/infra": "workspace:^", "async-call-rpc": "^6.4.2", "capacitor-plugin-app-tracking-transparency": "^2.0.5", @@ -38,17 +36,14 @@ "next-themes": "^0.4.4", "react": "^19.2.1", "react-dom": "^19.2.1", - "react-router-dom": "^6.30.3", - "yjs": "^13.6.27" + "react-router-dom": "^6.30.3" }, "devDependencies": { "@affine-tools/cli": "workspace:*", "@affine-tools/utils": "workspace:*", - "@affine/native": "workspace:*", "@capacitor/cli": "^7.0.0", "@types/react": "^19.0.1", "@types/react-dom": "^19.0.2", - "cross-env": "^10.1.0", "typescript": "^5.9.3" } } diff --git a/packages/frontend/apps/ios/tsconfig.json b/packages/frontend/apps/ios/tsconfig.json index 40a503552..a65ce9131 100644 --- a/packages/frontend/apps/ios/tsconfig.json +++ b/packages/frontend/apps/ios/tsconfig.json @@ -18,7 +18,6 @@ { "path": "../../../../blocksuite/affine/all" }, { "path": "../../../common/infra" }, { "path": "../../../../tools/cli" }, - { "path": "../../../../tools/utils" }, - { "path": "../../native" } + { "path": "../../../../tools/utils" } ] } diff --git a/packages/frontend/apps/mobile/package.json b/packages/frontend/apps/mobile/package.json index b1998b619..aaf1ad781 100644 --- a/packages/frontend/apps/mobile/package.json +++ b/packages/frontend/apps/mobile/package.json @@ -12,12 +12,9 @@ "@affine/component": "workspace:*", "@affine/core": "workspace:*", "@affine/env": "workspace:*", - "@affine/i18n": "workspace:*", "@affine/nbstore": "workspace:*", "@affine/track": "workspace:*", "@blocksuite/affine": "workspace:*", - "@blocksuite/icons": "^2.2.17", - "@sentry/react": "^10.40.0", "@toeverything/infra": "workspace:*", "react": "^19.2.1", "react-dom": "^19.2.1", @@ -26,7 +23,6 @@ "devDependencies": { "@types/react": "^19.0.1", "@types/react-dom": "^19.0.2", - "cross-env": "^10.1.0", "typescript": "^5.9.3" } } diff --git a/packages/frontend/apps/mobile/tsconfig.json b/packages/frontend/apps/mobile/tsconfig.json index d78e2256c..324f63721 100644 --- a/packages/frontend/apps/mobile/tsconfig.json +++ b/packages/frontend/apps/mobile/tsconfig.json @@ -10,7 +10,6 @@ { "path": "../../component" }, { "path": "../../core" }, { "path": "../../../common/env" }, - { "path": "../../i18n" }, { "path": "../../../common/nbstore" }, { "path": "../../track" }, { "path": "../../../../blocksuite/affine/all" }, diff --git a/packages/frontend/apps/web/package.json b/packages/frontend/apps/web/package.json index cdff43e9e..970f2e54c 100644 --- a/packages/frontend/apps/web/package.json +++ b/packages/frontend/apps/web/package.json @@ -12,11 +12,9 @@ "@affine/component": "workspace:*", "@affine/core": "workspace:*", "@affine/env": "workspace:*", - "@affine/i18n": "workspace:*", "@affine/nbstore": "workspace:*", "@affine/track": "workspace:*", "@emotion/react": "^11.14.0", - "@sentry/react": "^10.40.0", "@toeverything/infra": "workspace:*", "react": "^19.2.1", "react-dom": "^19.2.1", @@ -25,7 +23,6 @@ "devDependencies": { "@types/react": "^19.0.1", "@types/react-dom": "^19.0.2", - "cross-env": "^10.1.0", "typescript": "^5.9.3" } } diff --git a/packages/frontend/apps/web/tsconfig.json b/packages/frontend/apps/web/tsconfig.json index d0d86fdeb..f169b82c7 100644 --- a/packages/frontend/apps/web/tsconfig.json +++ b/packages/frontend/apps/web/tsconfig.json @@ -10,7 +10,6 @@ { "path": "../../component" }, { "path": "../../core" }, { "path": "../../../common/env" }, - { "path": "../../i18n" }, { "path": "../../../common/nbstore" }, { "path": "../../track" }, { "path": "../../../common/infra" } diff --git a/packages/frontend/component/package.json b/packages/frontend/component/package.json index 7caa099a1..22dcdfcc4 100644 --- a/packages/frontend/component/package.json +++ b/packages/frontend/component/package.json @@ -21,7 +21,6 @@ }, "dependencies": { "@affine/debug": "workspace:*", - "@affine/electron-api": "workspace:*", "@affine/error": "workspace:*", "@affine/graphql": "workspace:*", "@affine/i18n": "workspace:*", @@ -51,7 +50,6 @@ "check-password-strength": "^3.0.0", "clsx": "^2.1.1", "dayjs": "^1.11.13", - "emoji-mart": "^5.6.0", "emojibase-data": "^16.0.3", "foxact": "^0.2.49", "jotai": "^2.10.3", @@ -72,7 +70,6 @@ }, "devDependencies": { "@affine-tools/utils": "workspace:*", - "@blocksuite/affine": "workspace:*", "@storybook/react": "^10.2.14", "@storybook/react-vite": "^10.2.14", "@testing-library/dom": "^10.4.0", diff --git a/packages/frontend/component/src/components/auth-components/onboarding-page.tsx b/packages/frontend/component/src/components/auth-components/onboarding-page.tsx index ea75c99bd..4c4cd609c 100644 --- a/packages/frontend/component/src/components/auth-components/onboarding-page.tsx +++ b/packages/frontend/component/src/components/auth-components/onboarding-page.tsx @@ -216,7 +216,7 @@ export const OnboardingPage = ({ ], }; - // eslint-disable-next-line @typescript-eslint/no-floating-promises + // oxlint-disable-next-line @typescript-eslint/no-floating-promises fetch('/api/worker/questionnaire', { method: 'POST', body: JSON.stringify(answer), diff --git a/packages/frontend/component/tsconfig.json b/packages/frontend/component/tsconfig.json index cd67ccdb7..8ac020187 100644 --- a/packages/frontend/component/tsconfig.json +++ b/packages/frontend/component/tsconfig.json @@ -13,11 +13,9 @@ }, "references": [ { "path": "../../common/debug" }, - { "path": "../electron-api" }, { "path": "../../common/error" }, { "path": "../../common/graphql" }, { "path": "../i18n" }, - { "path": "../../../tools/utils" }, - { "path": "../../../blocksuite/affine/all" } + { "path": "../../../tools/utils" } ] } diff --git a/packages/frontend/core/package.json b/packages/frontend/core/package.json index d4f103dcf..3b5de3e2d 100644 --- a/packages/frontend/core/package.json +++ b/packages/frontend/core/package.json @@ -28,10 +28,8 @@ "@blocksuite/std": "workspace:*", "@emotion/cache": "^11.14.0", "@emotion/css": "^11.13.5", - "@emotion/react": "^11.14.0", "@floating-ui/dom": "^1.6.13", "@juggle/resize-observer": "^3.4.0", - "@lit/context": "^1.1.4", "@lottiefiles/dotlottie-wc": "^0.9.4", "@marsidev/react-turnstile": "^1.1.0", "@myriaddreamin/typst-ts-renderer": "^0.7.0-rc2", @@ -39,7 +37,6 @@ "@myriaddreamin/typst.ts": "^0.7.0-rc2", "@preact/signals-core": "^1.8.0", "@radix-ui/react-collapsible": "^1.1.2", - "@radix-ui/react-context-menu": "^2.1.15", "@radix-ui/react-dialog": "^1.1.3", "@radix-ui/react-popover": "^1.1.3", "@radix-ui/react-scroll-area": "^1.2.2", @@ -51,7 +48,6 @@ "@toeverything/pdf-viewer": "^0.1.1", "@toeverything/theme": "^1.1.23", "@vanilla-extract/dynamic": "^2.1.2", - "@webcontainer/api": "^1.6.1", "animejs": "^4.0.0", "bytes": "^3.1.2", "clsx": "^2.1.1", @@ -68,13 +64,11 @@ "graphql": "^16.9.0", "history": "^5.3.0", "idb": "^8.0.0", - "idb-keyval": "^6.2.2", "image-blob-reduce": "^4.1.0", "is-svg": "^6.1.0", "jotai": "^2.10.3", "jotai-scope": "^0.7.2", "katex": "^0.16.27", - "lib0": "^0.2.114", "lit": "^3.2.1", "lodash-es": "^4.17.23", "lottie-react": "^2.4.0", @@ -92,7 +86,6 @@ "recharts": "^2.15.4", "rxjs": "^7.8.2", "semver": "^7.7.3", - "ses": "^1.14.0", "shiki": "^3.19.0", "socket.io-client": "^4.8.3", "swr": "^2.3.7", @@ -105,7 +98,6 @@ "@blocksuite/affine-ext-loader": "workspace:*", "@testing-library/dom": "^10.4.0", "@testing-library/react": "^16.1.0", - "@types/animejs": "^3.1.12", "@types/bytes": "^3.1.5", "@types/image-blob-reduce": "^4.1.4", "@types/lodash-es": "^4.17.12", @@ -113,7 +105,6 @@ "@vanilla-extract/css": "^1.17.0", "fake-indexeddb": "^6.0.0", "happy-dom": "^20.3.0", - "lodash-es": "^4.17.23", "vitest": "^4.0.18" } } diff --git a/packages/frontend/core/src/blocksuite/ai/components/ai-tools/code-artifact.ts b/packages/frontend/core/src/blocksuite/ai/components/ai-tools/code-artifact.ts index 65497cf0d..df99f3ac3 100644 --- a/packages/frontend/core/src/blocksuite/ai/components/ai-tools/code-artifact.ts +++ b/packages/frontend/core/src/blocksuite/ai/components/ai-tools/code-artifact.ts @@ -376,7 +376,7 @@ export class CodeArtifactTool extends ArtifactTool< flex-direction: column; } - .code-artifact-preview > html-preview { + .code-artifact-preview > affine-html-preview { height: 100%; } @@ -487,7 +487,7 @@ export class CodeArtifactTool extends ArtifactTool< return html`
${this.mode === 'preview' - ? html`` + ? html`` : html` { - // eslint-disable-next-line @typescript-eslint/no-misused-promises + // oxlint-disable-next-line @typescript-eslint/no-misused-promises button.removeEventListener('click', handleSendClick); }); } diff --git a/packages/frontend/core/src/blocksuite/block-suite-editor/lit-adaper.tsx b/packages/frontend/core/src/blocksuite/block-suite-editor/lit-adaper.tsx index 73a4b2e71..af698edbd 100644 --- a/packages/frontend/core/src/blocksuite/block-suite-editor/lit-adaper.tsx +++ b/packages/frontend/core/src/blocksuite/block-suite-editor/lit-adaper.tsx @@ -1,4 +1,4 @@ -// eslint-disable-next-line @typescript-eslint/no-restricted-imports +// oxlint-disable-next-line no-restricted-imports import 'katex/dist/katex.min.css'; import { useConfirmModal, useLitPortalFactory } from '@affine/component'; diff --git a/packages/frontend/core/src/blocksuite/block-suite-page-list/utils.tsx b/packages/frontend/core/src/blocksuite/block-suite-page-list/utils.tsx index 356894a3d..0405f012a 100644 --- a/packages/frontend/core/src/blocksuite/block-suite-page-list/utils.tsx +++ b/packages/frontend/core/src/blocksuite/block-suite-page-list/utils.tsx @@ -50,10 +50,7 @@ export const usePageHelper = (docCollection: Workspace) => { const createEdgelessAndOpen = useCallback( ( - options: { - at?: 'new-tab' | 'tail' | 'active'; - show?: boolean; - } = { + options: { at?: 'new-tab' | 'tail' | 'active'; show?: boolean } = { at: 'active', show: true, } diff --git a/packages/frontend/core/src/blocksuite/view-extensions/code-block-preview/html-preview.ts b/packages/frontend/core/src/blocksuite/view-extensions/code-block-preview/html-preview.ts index c679f4105..0397313d2 100644 --- a/packages/frontend/core/src/blocksuite/view-extensions/code-block-preview/html-preview.ts +++ b/packages/frontend/core/src/blocksuite/view-extensions/code-block-preview/html-preview.ts @@ -12,7 +12,7 @@ import { linkIframe } from './iframe-container'; export const CodeBlockHtmlPreview = CodeBlockPreviewExtension( 'html', - model => html`` + model => html`` ); export class HTMLPreview extends SignalWatcher( @@ -153,11 +153,11 @@ export class HTMLPreview extends SignalWatcher( } export function effects() { - customElements.define('html-preview', HTMLPreview); + customElements.define('affine-html-preview', HTMLPreview); } declare global { interface HTMLElementTagNameMap { - 'html-preview': HTMLPreview; + 'affine-html-preview': HTMLPreview; } } diff --git a/packages/frontend/core/src/blocksuite/view-extensions/editor-config/toolbar/index.ts b/packages/frontend/core/src/blocksuite/view-extensions/editor-config/toolbar/index.ts index 433c1256a..4884b88ad 100644 --- a/packages/frontend/core/src/blocksuite/view-extensions/editor-config/toolbar/index.ts +++ b/packages/frontend/core/src/blocksuite/view-extensions/editor-config/toolbar/index.ts @@ -734,7 +734,7 @@ function renderOpenDocMenu( diff --git a/packages/frontend/core/src/components/comment/comment-editor/linked-widget-config.ts b/packages/frontend/core/src/components/comment/comment-editor/linked-widget-config.ts index 5e0f556a7..9f764fcaa 100644 --- a/packages/frontend/core/src/components/comment/comment-editor/linked-widget-config.ts +++ b/packages/frontend/core/src/components/comment/comment-editor/linked-widget-config.ts @@ -7,6 +7,7 @@ import type { LinkedMenuItem, LinkedWidgetConfig, } from '@blocksuite/affine/widgets/linked-doc'; +import { unsafeHTML } from '@blocksuite/affine-shared/utils'; import { UserIcon } from '@blocksuite/icons/lit'; import { BLOCK_ID_ATTR, type BlockComponent } from '@blocksuite/std'; import { computed } from '@preact/signals-core'; @@ -15,7 +16,6 @@ import { cssVarV2 } from '@toeverything/theme/v2'; import Fuse, { type FuseResultMatch } from 'fuse.js'; import { html } from 'lit'; import { styleMap } from 'lit/directives/style-map.js'; -import { unsafeHTML } from 'lit/directives/unsafe-html.js'; export const createCommentLinkedWidgetConfig = ( framework: FrameworkProvider diff --git a/packages/frontend/core/src/desktop/dialogs/setting/general-setting/editor/edgeless/snapshot.tsx b/packages/frontend/core/src/desktop/dialogs/setting/general-setting/editor/edgeless/snapshot.tsx index facddb7a2..31b857b47 100644 --- a/packages/frontend/core/src/desktop/dialogs/setting/general-setting/editor/edgeless/snapshot.tsx +++ b/packages/frontend/core/src/desktop/dialogs/setting/general-setting/editor/edgeless/snapshot.tsx @@ -130,7 +130,7 @@ export const EdgelessSnapshot = (props: Props) => { }, [docName, extensions, firstUpdate, updateElements]); useEffect(() => { - // eslint-disable-next-line @typescript-eslint/no-floating-promises + // oxlint-disable-next-line @typescript-eslint/no-floating-promises renderEditor(); return () => editorHostRef.current?.remove(); }, [renderEditor]); diff --git a/packages/frontend/core/src/desktop/dialogs/setting/workspace-setting/integration/mcp-server/setting-panel.tsx b/packages/frontend/core/src/desktop/dialogs/setting/workspace-setting/integration/mcp-server/setting-panel.tsx index 89c962eea..4ffd9517e 100644 --- a/packages/frontend/core/src/desktop/dialogs/setting/workspace-setting/integration/mcp-server/setting-panel.tsx +++ b/packages/frontend/core/src/desktop/dialogs/setting/workspace-setting/integration/mcp-server/setting-panel.tsx @@ -174,7 +174,7 @@ const McpServerSetting = () => { variant="primary" onClick={() => { if (!code) return; - // eslint-disable-next-line @typescript-eslint/no-floating-promises + // oxlint-disable-next-line @typescript-eslint/no-floating-promises navigator.clipboard.writeText(code); notify.success({ title: t['Copied to clipboard'](), diff --git a/packages/frontend/core/src/mobile/pages/sign-in.tsx b/packages/frontend/core/src/mobile/pages/sign-in.tsx index 9df2c216d..ae99b88cd 100644 --- a/packages/frontend/core/src/mobile/pages/sign-in.tsx +++ b/packages/frontend/core/src/mobile/pages/sign-in.tsx @@ -1,4 +1,4 @@ -// eslint-disable-next-line @typescript-eslint/no-restricted-imports +// oxlint-disable-next-line no-restricted-imports import { useNavigate } from 'react-router-dom'; import { MobileSignInPanel } from '../components/sign-in'; diff --git a/packages/frontend/core/src/modules/at-menu-config/services/index.ts b/packages/frontend/core/src/modules/at-menu-config/services/index.ts index ec971e20f..423d5d4e6 100644 --- a/packages/frontend/core/src/modules/at-menu-config/services/index.ts +++ b/packages/frontend/core/src/modules/at-menu-config/services/index.ts @@ -22,6 +22,7 @@ import { type LinkedWidgetConfig, LinkedWidgetUtils, } from '@blocksuite/affine/widgets/linked-doc'; +import { unsafeHTML } from '@blocksuite/affine-shared/utils'; import { DateTimeIcon, NewXxxEdgelessIcon, @@ -35,7 +36,6 @@ import type { FuseResultMatch } from 'fuse.js'; import Fuse from 'fuse.js'; import { html } from 'lit'; import { styleMap } from 'lit/directives/style-map.js'; -import { unsafeHTML } from 'lit/directives/unsafe-html.js'; import { createAbsolutePositionFromRelativePosition, createRelativePositionFromTypeIndex, diff --git a/packages/frontend/core/src/modules/cloud/index.ts b/packages/frontend/core/src/modules/cloud/index.ts index adedec6f7..fb5c1736f 100644 --- a/packages/frontend/core/src/modules/cloud/index.ts +++ b/packages/frontend/core/src/modules/cloud/index.ts @@ -36,7 +36,7 @@ export { WorkspaceServerService } from './services/workspace-server'; export { WorkspaceSubscriptionService } from './services/workspace-subscription'; export type { ServerConfig } from './types'; -// eslint-disable-next-line simple-import-sort/imports +// oxlint-disable-next-line simple-import-sort/imports import { type Framework } from '@toeverything/infra'; import { GlobalCache, GlobalState } from '../storage/providers/global'; diff --git a/packages/frontend/core/src/modules/desktop-api/impl/index.ts b/packages/frontend/core/src/modules/desktop-api/impl/index.ts index 5f546a799..e7b54e857 100644 --- a/packages/frontend/core/src/modules/desktop-api/impl/index.ts +++ b/packages/frontend/core/src/modules/desktop-api/impl/index.ts @@ -1,4 +1,4 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ +/* oxlint-disable @typescript-eslint/no-non-null-assertion */ import { apis, appInfo, events, sharedStorage } from '@affine/electron-api'; import { Service } from '@toeverything/infra'; diff --git a/packages/frontend/core/src/modules/search-menu/services/index.ts b/packages/frontend/core/src/modules/search-menu/services/index.ts index 5ff249b56..8c2e8f1fc 100644 --- a/packages/frontend/core/src/modules/search-menu/services/index.ts +++ b/packages/frontend/core/src/modules/search-menu/services/index.ts @@ -7,13 +7,13 @@ import type { LinkedMenuGroup, LinkedMenuItem, } from '@blocksuite/affine/widgets/linked-doc'; +import { unsafeHTML } from '@blocksuite/affine-shared/utils'; import { CollectionsIcon, WarningIcon } from '@blocksuite/icons/lit'; import { computed, signal } from '@preact/signals-core'; import { Service } from '@toeverything/infra'; import { cssVarV2 } from '@toeverything/theme/v2'; import Fuse, { type FuseResultMatch } from 'fuse.js'; import { html } from 'lit'; -import { unsafeHTML } from 'lit/directives/unsafe-html.js'; import { catchError, map, of } from 'rxjs'; import { normalizeSearchText } from '../../../utils/normalize-search-text'; diff --git a/packages/frontend/core/src/modules/storage/impls/storage.ts b/packages/frontend/core/src/modules/storage/impls/storage.ts index a98abccc0..c90d04d61 100644 --- a/packages/frontend/core/src/modules/storage/impls/storage.ts +++ b/packages/frontend/core/src/modules/storage/impls/storage.ts @@ -156,7 +156,7 @@ export class AsyncStorageMemento implements AsyncMemento { this.eventEmitter.on(key, eventEmitterCb); // Listen for cross-tab events - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions const channelCb = (event: MessageEvent) => { if (event.data.key === key) { subscriber.next(event.data.value); diff --git a/packages/frontend/core/src/modules/workbench/view/browser-adapter.ts b/packages/frontend/core/src/modules/workbench/view/browser-adapter.ts index b140042ab..de3c1c53c 100644 --- a/packages/frontend/core/src/modules/workbench/view/browser-adapter.ts +++ b/packages/frontend/core/src/modules/workbench/view/browser-adapter.ts @@ -1,7 +1,7 @@ import { useLiveData } from '@toeverything/infra'; import type { Location } from 'history'; import { useEffect } from 'react'; -// eslint-disable-next-line @typescript-eslint/no-restricted-imports +// oxlint-disable-next-line no-restricted-imports import { useLocation, useNavigate } from 'react-router-dom'; import type { Workbench } from '../entities/workbench'; diff --git a/packages/frontend/core/src/modules/workbench/view/desktop-adapter.ts b/packages/frontend/core/src/modules/workbench/view/desktop-adapter.ts index 110334712..5fbe9caf9 100644 --- a/packages/frontend/core/src/modules/workbench/view/desktop-adapter.ts +++ b/packages/frontend/core/src/modules/workbench/view/desktop-adapter.ts @@ -1,6 +1,6 @@ import type { Location } from 'history'; import { useEffect } from 'react'; -// eslint-disable-next-line @typescript-eslint/no-restricted-imports +// oxlint-disable-next-line no-restricted-imports import { useLocation } from 'react-router-dom'; import type { Workbench } from '../entities/workbench'; diff --git a/packages/frontend/core/src/utils/navigable-history.ts b/packages/frontend/core/src/utils/navigable-history.ts index 825b8b1b1..a2b2d0f42 100644 --- a/packages/frontend/core/src/utils/navigable-history.ts +++ b/packages/frontend/core/src/utils/navigable-history.ts @@ -199,7 +199,7 @@ type Events = { call: (arg: any) => void; }; -// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type +// oxlint-disable-next-line @typescript-eslint/no-unsafe-function-type function createEvents(): Events { let handlers: F[] = []; diff --git a/packages/frontend/electron-api/package.json b/packages/frontend/electron-api/package.json index c950a8155..32df48d7d 100644 --- a/packages/frontend/electron-api/package.json +++ b/packages/frontend/electron-api/package.json @@ -8,9 +8,6 @@ ".": "./src/index.ts", "./web-worker": "./src/web-worker.ts" }, - "dependencies": { - "async-call-rpc": "^6.4.2" - }, "devDependencies": { "@affine/electron": "workspace:*" } diff --git a/packages/frontend/media-capture-playground/server/main.ts b/packages/frontend/media-capture-playground/server/main.ts index b81d38955..febd17214 100644 --- a/packages/frontend/media-capture-playground/server/main.ts +++ b/packages/frontend/media-capture-playground/server/main.ts @@ -1,4 +1,4 @@ -/* eslint-disable @typescript-eslint/no-misused-promises */ +/* oxlint-disable @typescript-eslint/no-misused-promises */ import { createServer } from 'node:http'; import path from 'node:path'; diff --git a/packages/frontend/media-capture-playground/web/components/saved-recording-item.tsx b/packages/frontend/media-capture-playground/web/components/saved-recording-item.tsx index 988f7308a..78931fbb6 100644 --- a/packages/frontend/media-capture-playground/web/components/saved-recording-item.tsx +++ b/packages/frontend/media-capture-playground/web/components/saved-recording-item.tsx @@ -727,7 +727,7 @@ export function SavedRecordingItem({ const handlePlayPause = React.useCallback(() => { if (audioRef.current) { if (audioRef.current.paused) { - // eslint-disable-next-line @typescript-eslint/no-floating-promises + // oxlint-disable-next-line @typescript-eslint/no-floating-promises void audioRef.current.play(); } else { audioRef.current.pause(); diff --git a/packages/frontend/native/__tests__/pool.spec.mts b/packages/frontend/native/__tests__/pool.spec.mts index 7079afaab..ce8eb19f0 100644 --- a/packages/frontend/native/__tests__/pool.spec.mts +++ b/packages/frontend/native/__tests__/pool.spec.mts @@ -1,6 +1,7 @@ -import { DocStoragePool } from '../index'; import test from 'ava'; +import { DocStoragePool } from '../index'; + test('can batch read/write pool', async t => { const pool = new DocStoragePool(); await pool.connect('test', ':memory:'); diff --git a/packages/frontend/routes/package.json b/packages/frontend/routes/package.json index c41f06b9d..900a5d379 100644 --- a/packages/frontend/routes/package.json +++ b/packages/frontend/routes/package.json @@ -13,7 +13,6 @@ "@affine-tools/cli": "workspace:*", "@affine-tools/utils": "workspace:*", "path-to-regexp": "^8.3.0", - "query-string": "^9.1.1", "vitest": "^4.0.18" }, "peerDependencies": { diff --git a/tests/affine-local/package.json b/tests/affine-local/package.json index c1c40781d..3d129cc36 100644 --- a/tests/affine-local/package.json +++ b/tests/affine-local/package.json @@ -7,8 +7,6 @@ }, "devDependencies": { "@affine-test/kit": "workspace:*", - "@affine-tools/cli": "workspace:*", - "@affine-tools/utils": "workspace:*", "@playwright/test": "=1.58.2" }, "version": "0.26.3" diff --git a/tests/affine-local/tsconfig.json b/tests/affine-local/tsconfig.json index 3e289affd..95f29c8ef 100644 --- a/tests/affine-local/tsconfig.json +++ b/tests/affine-local/tsconfig.json @@ -6,9 +6,5 @@ "tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo" }, "include": ["./e2e"], - "references": [ - { "path": "../kit" }, - { "path": "../../tools/cli" }, - { "path": "../../tools/utils" } - ] + "references": [{ "path": "../kit" }] } diff --git a/tests/blocksuite/e2e/code/copy-paste.spec.ts b/tests/blocksuite/e2e/code/copy-paste.spec.ts index 9e7a9cd3d..a2947bb29 100644 --- a/tests/blocksuite/e2e/code/copy-paste.spec.ts +++ b/tests/blocksuite/e2e/code/copy-paste.spec.ts @@ -90,7 +90,7 @@ test.skip('use keyboard copy inside code block copy', async ({ await type(page, 'use'); await page.keyboard.down('Shift'); - // eslint-disable-next-line @typescript-eslint/prefer-for-of + // oxlint-disable-next-line @typescript-eslint/prefer-for-of for (let i = 0; i < 'use'.length; i++) { await page.keyboard.press('ArrowLeft'); } diff --git a/tests/blocksuite/e2e/selection/block.spec.ts b/tests/blocksuite/e2e/selection/block.spec.ts index de4ed24ca..b3899624b 100644 --- a/tests/blocksuite/e2e/selection/block.spec.ts +++ b/tests/blocksuite/e2e/selection/block.spec.ts @@ -1376,7 +1376,7 @@ test('scroll should update dragging area and select blocks when dragging', async await initParagraphsByCount(page, 20); await page.mouse.click(0, 0); - // eslint-disable-next-line sonarjs/no-identical-functions + // oxlint-disable-next-line sonarjs/no-identical-functions async function getViewportScrollTop() { return page.evaluate(() => { const viewport = document.querySelector('.affine-page-viewport'); diff --git a/tests/blocksuite/e2e/utils/actions/misc.ts b/tests/blocksuite/e2e/utils/actions/misc.ts index edf597851..6e6b7f96a 100644 --- a/tests/blocksuite/e2e/utils/actions/misc.ts +++ b/tests/blocksuite/e2e/utils/actions/misc.ts @@ -240,7 +240,7 @@ export async function enterPlaygroundWithList( title: new window.$blocksuite.store.Text(), }); const noteId = doc.addBlock('affine:note', {}, rootId); - // eslint-disable-next-line @typescript-eslint/prefer-for-of + // oxlint-disable-next-line @typescript-eslint/prefer-for-of for (let i = 0; i < contents.length; i++) { doc.addBlock( 'affine:list', @@ -799,7 +799,7 @@ export async function getClipboardHTML(page: Page) { const indentAfter = ' '.repeat(level >= 2 ? level - 2 : 0); let textNode; - // eslint-disable-next-line @typescript-eslint/prefer-for-of + // oxlint-disable-next-line @typescript-eslint/prefer-for-of for (let i = 0; i < node.children.length; i++) { textNode = document.createTextNode('\n' + indentBefore); node.insertBefore(textNode, node.children[i]); diff --git a/tests/blocksuite/package.json b/tests/blocksuite/package.json index af474a2fb..04fc55587 100644 --- a/tests/blocksuite/package.json +++ b/tests/blocksuite/package.json @@ -11,8 +11,7 @@ "@blocksuite/integration-test": "workspace:*", "@playwright/test": "=1.58.2", "@toeverything/theme": "^1.1.23", - "json-stable-stringify": "^1.2.1", - "rxjs": "^7.8.2" + "json-stable-stringify": "^1.2.1" }, "version": "0.26.3" } diff --git a/tests/kit/package.json b/tests/kit/package.json index f91ac9e86..a723d89b9 100644 --- a/tests/kit/package.json +++ b/tests/kit/package.json @@ -16,8 +16,8 @@ "@node-rs/argon2": "^2.0.2", "@playwright/test": "=1.58.2", "@toeverything/infra": "workspace:*", - "express": "^5.0.0", - "http-proxy-middleware": "^3.0.3" + "express": "^5.1.0", + "http-proxy-middleware": "^3.0.5" }, "peerDependencies": { "@playwright/test": "*", diff --git a/tests/kit/src/utils/keyboard.ts b/tests/kit/src/utils/keyboard.ts index 7ed9ff71b..339258fc5 100644 --- a/tests/kit/src/utils/keyboard.ts +++ b/tests/kit/src/utils/keyboard.ts @@ -114,7 +114,7 @@ export async function writeTextToClipboard( // paste the url await page.evaluate( async ([text]) => { - // eslint-disable-next-line @typescript-eslint/no-floating-promises + // oxlint-disable-next-line @typescript-eslint/no-floating-promises navigator.clipboard.writeText(''); const e = new ClipboardEvent('paste', { clipboardData: new DataTransfer(), diff --git a/tools/cli/src/rspack-shared/error-handler.js b/tools/cli/src/rspack-shared/error-handler.js index 989dda9d1..4ade66acf 100644 --- a/tools/cli/src/rspack-shared/error-handler.js +++ b/tools/cli/src/rspack-shared/error-handler.js @@ -101,7 +101,7 @@ 'MutationObserver', ]; - // eslint-disable-next-line @typescript-eslint/prefer-for-of + // oxlint-disable-next-line @typescript-eslint/prefer-for-of for (let i = 0; i < globals.length; i++) { if (!(globals[i] in globalThis)) { showGlobalErrorPage(); diff --git a/tools/utils/src/workspace.gen.ts b/tools/utils/src/workspace.gen.ts index 5115f6f65..98faf5aec 100644 --- a/tools/utils/src/workspace.gen.ts +++ b/tools/utils/src/workspace.gen.ts @@ -119,7 +119,6 @@ export const PackageList = [ 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', 'blocksuite/affine/widgets/slash-menu', - 'blocksuite/framework/global', 'blocksuite/framework/std', 'blocksuite/framework/store', ], @@ -188,7 +187,6 @@ export const PackageList = [ 'blocksuite/affine/model', 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', - 'blocksuite/framework/global', 'blocksuite/framework/std', 'blocksuite/framework/store', ], @@ -198,14 +196,12 @@ export const PackageList = [ name: '@blocksuite/affine-block-edgeless-text', workspaceDependencies: [ 'blocksuite/affine/blocks/surface', - 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', 'blocksuite/affine/gfx/text', 'blocksuite/affine/inlines/preset', 'blocksuite/affine/model', 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', - 'blocksuite/affine/widgets/edgeless-toolbar', 'blocksuite/framework/global', 'blocksuite/framework/std', 'blocksuite/framework/store', @@ -218,10 +214,7 @@ export const PackageList = [ 'blocksuite/affine/blocks/surface', 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', - 'blocksuite/affine/gfx/pointer', - 'blocksuite/affine/inlines/reference', 'blocksuite/affine/model', - 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', 'blocksuite/affine/widgets/slash-menu', 'blocksuite/framework/global', @@ -290,10 +283,8 @@ export const PackageList = [ 'blocksuite/affine/ext-loader', 'blocksuite/affine/inlines/latex', 'blocksuite/affine/model', - 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', 'blocksuite/affine/widgets/slash-menu', - 'blocksuite/framework/global', 'blocksuite/framework/std', 'blocksuite/framework/store', ], @@ -378,7 +369,6 @@ export const PackageList = [ 'blocksuite/affine/model', 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', - 'blocksuite/affine/widgets/edgeless-selected-rect', 'blocksuite/affine/widgets/edgeless-toolbar', 'blocksuite/affine/data-view', 'blocksuite/framework/global', @@ -390,10 +380,8 @@ export const PackageList = [ location: 'blocksuite/affine/blocks/surface', name: '@blocksuite/affine-block-surface', workspaceDependencies: [ - 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', 'blocksuite/affine/model', - 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', 'blocksuite/framework/global', 'blocksuite/framework/std', @@ -428,7 +416,6 @@ export const PackageList = [ 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', 'blocksuite/affine/widgets/slash-menu', - 'blocksuite/affine/data-view', 'blocksuite/framework/global', 'blocksuite/framework/std', 'blocksuite/framework/store', @@ -474,7 +461,6 @@ export const PackageList = [ 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', 'blocksuite/affine/data-view', - 'blocksuite/framework/global', 'blocksuite/framework/std', 'blocksuite/framework/store', ], @@ -485,10 +471,8 @@ export const PackageList = [ workspaceDependencies: [ 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', - 'blocksuite/affine/model', 'blocksuite/affine/shared', 'blocksuite/framework/global', - 'blocksuite/framework/std', 'blocksuite/framework/store', ], }, @@ -496,9 +480,6 @@ export const PackageList = [ location: 'blocksuite/affine/fragments/doc-title', name: '@blocksuite/affine-fragment-doc-title', workspaceDependencies: [ - 'blocksuite/affine/blocks/frame', - 'blocksuite/affine/blocks/surface', - 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', 'blocksuite/affine/model', 'blocksuite/affine/rich-text', @@ -514,7 +495,6 @@ export const PackageList = [ workspaceDependencies: [ 'blocksuite/affine/blocks/frame', 'blocksuite/affine/blocks/surface', - 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', 'blocksuite/affine/model', 'blocksuite/affine/rich-text', @@ -529,11 +509,9 @@ export const PackageList = [ name: '@blocksuite/affine-fragment-outline', workspaceDependencies: [ 'blocksuite/affine/blocks/note', - 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', 'blocksuite/affine/fragments/doc-title', 'blocksuite/affine/model', - 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', 'blocksuite/framework/global', 'blocksuite/framework/std', @@ -548,12 +526,10 @@ export const PackageList = [ 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', 'blocksuite/affine/model', - 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', 'blocksuite/affine/widgets/edgeless-toolbar', 'blocksuite/framework/global', 'blocksuite/framework/std', - 'blocksuite/framework/store', ], }, { @@ -587,7 +563,6 @@ export const PackageList = [ 'blocksuite/affine/widgets/edgeless-toolbar', 'blocksuite/framework/global', 'blocksuite/framework/std', - 'blocksuite/framework/store', ], }, { @@ -599,14 +574,9 @@ export const PackageList = [ 'blocksuite/affine/blocks/surface', 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', - 'blocksuite/affine/gfx/pointer', - 'blocksuite/affine/model', - 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', 'blocksuite/affine/widgets/edgeless-toolbar', - 'blocksuite/framework/global', 'blocksuite/framework/std', - 'blocksuite/framework/store', ], }, { @@ -614,7 +584,6 @@ export const PackageList = [ name: '@blocksuite/affine-gfx-mindmap', workspaceDependencies: [ 'blocksuite/affine/blocks/attachment', - 'blocksuite/affine/blocks/edgeless-text', 'blocksuite/affine/blocks/image', 'blocksuite/affine/blocks/surface', 'blocksuite/affine/components', @@ -624,7 +593,6 @@ export const PackageList = [ 'blocksuite/affine/gfx/shape', 'blocksuite/affine/gfx/text', 'blocksuite/affine/model', - 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', 'blocksuite/affine/widgets/edgeless-toolbar', 'blocksuite/framework/global', @@ -648,7 +616,6 @@ export const PackageList = [ 'blocksuite/affine/widgets/edgeless-toolbar', 'blocksuite/framework/global', 'blocksuite/framework/std', - 'blocksuite/framework/store', ], }, { @@ -656,15 +623,12 @@ export const PackageList = [ name: '@blocksuite/affine-gfx-pointer', workspaceDependencies: [ 'blocksuite/affine/blocks/surface', - 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', 'blocksuite/affine/model', - 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', 'blocksuite/affine/widgets/edgeless-toolbar', 'blocksuite/framework/global', 'blocksuite/framework/std', - 'blocksuite/framework/store', ], }, { @@ -691,9 +655,7 @@ export const PackageList = [ 'blocksuite/affine/blocks/surface', 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', - 'blocksuite/affine/gfx/text', 'blocksuite/affine/model', - 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', 'blocksuite/affine/widgets/edgeless-toolbar', 'blocksuite/framework/global', @@ -714,7 +676,6 @@ export const PackageList = [ 'blocksuite/affine/widgets/edgeless-toolbar', 'blocksuite/framework/global', 'blocksuite/framework/std', - 'blocksuite/framework/store', ], }, { @@ -731,7 +692,6 @@ export const PackageList = [ name: '@blocksuite/affine-inline-comment', workspaceDependencies: [ 'blocksuite/affine/ext-loader', - 'blocksuite/affine/model', 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', 'blocksuite/framework/global', @@ -745,7 +705,6 @@ export const PackageList = [ workspaceDependencies: [ 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', - 'blocksuite/affine/inlines/reference', 'blocksuite/affine/model', 'blocksuite/affine/shared', 'blocksuite/framework/global', @@ -759,7 +718,6 @@ export const PackageList = [ workspaceDependencies: [ 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', - 'blocksuite/affine/inlines/reference', 'blocksuite/affine/model', 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', @@ -786,9 +744,7 @@ export const PackageList = [ location: 'blocksuite/affine/inlines/mention', name: '@blocksuite/affine-inline-mention', workspaceDependencies: [ - 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', - 'blocksuite/affine/model', 'blocksuite/affine/shared', 'blocksuite/framework/global', 'blocksuite/framework/std', @@ -810,7 +766,6 @@ export const PackageList = [ 'blocksuite/affine/model', 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', - 'blocksuite/framework/global', 'blocksuite/framework/std', 'blocksuite/framework/store', ], @@ -882,7 +837,6 @@ export const PackageList = [ location: 'blocksuite/affine/widgets/edgeless-auto-connect', name: '@blocksuite/affine-widget-edgeless-auto-connect', workspaceDependencies: [ - 'blocksuite/affine/blocks/note', 'blocksuite/affine/blocks/surface', 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', @@ -896,13 +850,9 @@ export const PackageList = [ location: 'blocksuite/affine/widgets/edgeless-dragging-area', name: '@blocksuite/affine-widget-edgeless-dragging-area', workspaceDependencies: [ - 'blocksuite/affine/blocks/note', 'blocksuite/affine/blocks/surface', - 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', 'blocksuite/affine/model', - 'blocksuite/affine/shared', - 'blocksuite/framework/global', 'blocksuite/framework/std', ], }, @@ -911,7 +861,6 @@ export const PackageList = [ name: '@blocksuite/affine-widget-edgeless-selected-rect', workspaceDependencies: [ 'blocksuite/affine/blocks/frame', - 'blocksuite/affine/blocks/note', 'blocksuite/affine/blocks/surface', 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', @@ -932,7 +881,6 @@ export const PackageList = [ 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', 'blocksuite/affine/model', - 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', 'blocksuite/framework/global', 'blocksuite/framework/std', @@ -986,21 +934,18 @@ export const PackageList = [ 'blocksuite/affine/inlines/latex', 'blocksuite/affine/inlines/link', 'blocksuite/affine/inlines/preset', - 'blocksuite/affine/inlines/reference', 'blocksuite/affine/model', 'blocksuite/affine/rich-text', 'blocksuite/affine/shared', 'blocksuite/affine/data-view', 'blocksuite/framework/global', 'blocksuite/framework/std', - 'blocksuite/framework/store', ], }, { location: 'blocksuite/affine/widgets/linked-doc', name: '@blocksuite/affine-widget-linked-doc', workspaceDependencies: [ - 'blocksuite/affine/blocks/image', 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', 'blocksuite/affine/inlines/reference', @@ -1018,7 +963,6 @@ export const PackageList = [ workspaceDependencies: [ 'blocksuite/affine/blocks/note', 'blocksuite/affine/blocks/surface', - 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', 'blocksuite/affine/model', 'blocksuite/affine/shared', @@ -1031,13 +975,10 @@ export const PackageList = [ location: 'blocksuite/affine/widgets/page-dragging-area', name: '@blocksuite/affine-widget-page-dragging-area', workspaceDependencies: [ - 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', 'blocksuite/affine/model', 'blocksuite/affine/shared', - 'blocksuite/framework/global', 'blocksuite/framework/std', - 'blocksuite/framework/store', ], }, { @@ -1045,11 +986,9 @@ export const PackageList = [ name: '@blocksuite/affine-widget-remote-selection', workspaceDependencies: [ 'blocksuite/affine/blocks/surface', - 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', 'blocksuite/affine/model', 'blocksuite/affine/shared', - 'blocksuite/framework/global', 'blocksuite/framework/std', ], }, @@ -1096,18 +1035,15 @@ export const PackageList = [ location: 'blocksuite/affine/widgets/viewport-overlay', name: '@blocksuite/affine-widget-viewport-overlay', workspaceDependencies: [ - 'blocksuite/affine/components', 'blocksuite/affine/ext-loader', 'blocksuite/affine/model', - 'blocksuite/affine/shared', - 'blocksuite/framework/global', 'blocksuite/framework/std', ], }, { location: 'blocksuite/docs', name: '@blocksuite/bs-docs', - workspaceDependencies: ['blocksuite/affine/all'], + workspaceDependencies: [], }, { location: 'blocksuite/framework/global', @@ -1145,7 +1081,6 @@ export const PackageList = [ name: '@blocksuite/playground', workspaceDependencies: [ 'blocksuite/affine/all', - 'blocksuite/affine/components', 'blocksuite/affine/model', 'blocksuite/affine/shared', 'blocksuite/affine/data-view', @@ -1191,11 +1126,7 @@ export const PackageList = [ { location: 'packages/common/graphql', name: '@affine/graphql', - workspaceDependencies: [ - 'packages/common/debug', - 'packages/common/env', - 'packages/common/error', - ], + workspaceDependencies: ['packages/common/debug', 'packages/common/error'], }, { location: 'packages/common/infra', @@ -1237,7 +1168,6 @@ export const PackageList = [ 'packages/common/error', 'packages/common/graphql', 'packages/frontend/routes', - 'packages/common/infra', ], }, { @@ -1279,7 +1209,6 @@ export const PackageList = [ 'packages/frontend/track', 'blocksuite/affine/all', 'packages/common/infra', - 'tools/utils', ], }, { @@ -1298,7 +1227,6 @@ export const PackageList = [ 'packages/common/infra', 'tools/cli', 'tools/utils', - 'packages/frontend/native', ], }, { @@ -1308,7 +1236,6 @@ export const PackageList = [ 'packages/frontend/component', 'packages/frontend/core', 'packages/common/env', - 'packages/frontend/i18n', 'packages/common/nbstore', 'packages/frontend/track', 'blocksuite/affine/all', @@ -1327,7 +1254,6 @@ export const PackageList = [ 'packages/frontend/component', 'packages/frontend/core', 'packages/common/env', - 'packages/frontend/i18n', 'packages/common/nbstore', 'packages/frontend/track', 'packages/common/infra', @@ -1338,12 +1264,10 @@ export const PackageList = [ name: '@affine/component', workspaceDependencies: [ 'packages/common/debug', - 'packages/frontend/electron-api', 'packages/common/error', 'packages/common/graphql', 'packages/frontend/i18n', 'tools/utils', - 'blocksuite/affine/all', ], }, { @@ -1433,7 +1357,7 @@ export const PackageList = [ { location: 'tests/affine-local', name: '@affine-test/affine-local', - workspaceDependencies: ['tests/kit', 'tools/cli', 'tools/utils'], + workspaceDependencies: ['tests/kit'], }, { location: 'tests/affine-mobile', diff --git a/tsconfig.json b/tsconfig.json index a894d3145..573847c47 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -26,7 +26,6 @@ "declaration": true, "declarationMap": true, "sourceMap": true, - "importsNotUsedAsValues": "remove", // Interop Constraints "forceConsistentCasingInFileNames": true, diff --git a/yarn.lock b/yarn.lock index ccf750cf4..a792d4451 100644 --- a/yarn.lock +++ b/yarn.lock @@ -64,8 +64,6 @@ __metadata: resolution: "@affine-test/affine-local@workspace:tests/affine-local" dependencies: "@affine-test/kit": "workspace:*" - "@affine-tools/cli": "workspace:*" - "@affine-tools/utils": "workspace:*" "@playwright/test": "npm:=1.58.2" languageName: unknown linkType: soft @@ -89,7 +87,6 @@ __metadata: "@playwright/test": "npm:=1.58.2" "@toeverything/theme": "npm:^1.1.23" json-stable-stringify: "npm:^1.2.1" - rxjs: "npm:^7.8.2" languageName: unknown linkType: soft @@ -102,8 +99,8 @@ __metadata: "@node-rs/argon2": "npm:^2.0.2" "@playwright/test": "npm:=1.58.2" "@toeverything/infra": "workspace:*" - express: "npm:^5.0.0" - http-proxy-middleware: "npm:^3.0.3" + express: "npm:^5.1.0" + http-proxy-middleware: "npm:^3.0.5" peerDependencies: "@playwright/test": "*" express: "*" @@ -209,13 +206,11 @@ __metadata: "@sentry/react": "npm:^10.40.0" "@tanstack/react-table": "npm:^8.20.5" "@testing-library/react": "npm:^16.3.2" - "@toeverything/infra": "workspace:*" "@toeverything/theme": "npm:^1.1.23" "@types/lodash-es": "npm:^4.17.12" class-variance-authority: "npm:^0.7.1" clsx: "npm:^2.1.1" cmdk: "npm:^1.0.4" - cross-env: "npm:^10.1.0" embla-carousel-react: "npm:^8.5.1" input-otp: "npm:^1.4.1" lodash-es: "npm:^4.17.23" @@ -228,7 +223,6 @@ __metadata: react-resizable-panels: "npm:^3.0.6" react-router-dom: "npm:^7.12.0" recharts: "npm:^2.15.4" - shadcn-ui: "npm:^0.9.5" sonner: "npm:^2.0.7" swr: "npm:^2.3.7" tailwind-merge: "npm:^3.4.0" @@ -236,7 +230,6 @@ __metadata: tailwindcss-animate: "npm:^1.0.7" vaul: "npm:^1.1.2" vitest: "npm:^4.0.18" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -252,7 +245,6 @@ __metadata: "@affine/nbstore": "workspace:*" "@affine/track": "workspace:*" "@blocksuite/affine": "workspace:*" - "@blocksuite/icons": "npm:^2.2.17" "@capacitor/android": "npm:^7.0.0" "@capacitor/app": "npm:^7.0.0" "@capacitor/cli": "npm:^7.0.0" @@ -260,12 +252,10 @@ __metadata: "@capacitor/keyboard": "npm:^7.0.0" "@capacitor/status-bar": "npm:^7.0.0" "@capgo/inappbrowser": "npm:^8.0.0" - "@sentry/react": "npm:^10.40.0" "@toeverything/infra": "workspace:*" "@types/react": "npm:^19.0.1" "@types/react-dom": "npm:^19.0.2" async-call-rpc: "npm:^6.4.2" - cross-env: "npm:^10.1.0" idb: "npm:^8.0.0" next-themes: "npm:^0.4.4" react: "npm:^19.2.1" @@ -304,13 +294,11 @@ __metadata: dependencies: "@affine-tools/utils": "workspace:*" "@affine/debug": "workspace:*" - "@affine/electron-api": "workspace:*" "@affine/error": "workspace:*" "@affine/graphql": "workspace:*" "@affine/i18n": "workspace:*" "@atlaskit/pragmatic-drag-and-drop": "npm:^1.7.7" "@atlaskit/pragmatic-drag-and-drop-hitbox": "npm:^1.1.0" - "@blocksuite/affine": "workspace:*" "@blocksuite/icons": "npm:^2.2.17" "@emotion/react": "npm:^11.14.0" "@emotion/styled": "npm:^11.14.0" @@ -343,7 +331,6 @@ __metadata: check-password-strength: "npm:^3.0.0" clsx: "npm:^2.1.1" dayjs: "npm:^1.11.13" - emoji-mart: "npm:^5.6.0" emojibase-data: "npm:^16.0.3" foxact: "npm:^0.2.49" jotai: "npm:^2.10.3" @@ -410,10 +397,8 @@ __metadata: "@blocksuite/std": "workspace:*" "@emotion/cache": "npm:^11.14.0" "@emotion/css": "npm:^11.13.5" - "@emotion/react": "npm:^11.14.0" "@floating-ui/dom": "npm:^1.6.13" "@juggle/resize-observer": "npm:^3.4.0" - "@lit/context": "npm:^1.1.4" "@lottiefiles/dotlottie-wc": "npm:^0.9.4" "@marsidev/react-turnstile": "npm:^1.1.0" "@myriaddreamin/typst-ts-renderer": "npm:^0.7.0-rc2" @@ -421,7 +406,6 @@ __metadata: "@myriaddreamin/typst.ts": "npm:^0.7.0-rc2" "@preact/signals-core": "npm:^1.8.0" "@radix-ui/react-collapsible": "npm:^1.1.2" - "@radix-ui/react-context-menu": "npm:^2.1.15" "@radix-ui/react-dialog": "npm:^1.1.3" "@radix-ui/react-popover": "npm:^1.1.3" "@radix-ui/react-scroll-area": "npm:^1.2.2" @@ -434,14 +418,12 @@ __metadata: "@toeverything/mermaid-wasm": "npm:^0.1.0" "@toeverything/pdf-viewer": "npm:^0.1.1" "@toeverything/theme": "npm:^1.1.23" - "@types/animejs": "npm:^3.1.12" "@types/bytes": "npm:^3.1.5" "@types/image-blob-reduce": "npm:^4.1.4" "@types/lodash-es": "npm:^4.17.12" "@types/semver": "npm:^7" "@vanilla-extract/css": "npm:^1.17.0" "@vanilla-extract/dynamic": "npm:^2.1.2" - "@webcontainer/api": "npm:^1.6.1" animejs: "npm:^4.0.0" bytes: "npm:^3.1.2" clsx: "npm:^2.1.1" @@ -460,13 +442,11 @@ __metadata: happy-dom: "npm:^20.3.0" history: "npm:^5.3.0" idb: "npm:^8.0.0" - idb-keyval: "npm:^6.2.2" image-blob-reduce: "npm:^4.1.0" is-svg: "npm:^6.1.0" jotai: "npm:^2.10.3" jotai-scope: "npm:^0.7.2" katex: "npm:^0.16.27" - lib0: "npm:^0.2.114" lit: "npm:^3.2.1" lodash-es: "npm:^4.17.23" lottie-react: "npm:^2.4.0" @@ -484,7 +464,6 @@ __metadata: recharts: "npm:^2.15.4" rxjs: "npm:^7.8.2" semver: "npm:^7.7.3" - ses: "npm:^1.14.0" shiki: "npm:^3.19.0" socket.io-client: "npm:^4.8.3" swr: "npm:^2.3.7" @@ -532,7 +511,6 @@ __metadata: resolution: "@affine/electron-api@workspace:packages/frontend/electron-api" dependencies: "@affine/electron": "workspace:*" - async-call-rpc: "npm:^6.4.2" languageName: unknown linkType: soft @@ -540,7 +518,6 @@ __metadata: version: 0.0.0-use.local resolution: "@affine/electron-renderer@workspace:packages/frontend/apps/electron-renderer" dependencies: - "@affine-tools/utils": "workspace:*" "@affine/component": "workspace:*" "@affine/core": "workspace:*" "@affine/debug": "workspace:*" @@ -550,21 +527,17 @@ __metadata: "@affine/track": "workspace:*" "@blocksuite/affine": "workspace:*" "@emotion/react": "npm:^11.14.0" - "@sentry/react": "npm:^10.40.0" "@toeverything/infra": "workspace:*" "@toeverything/theme": "npm:^1.1.23" "@types/react": "npm:^19.0.1" "@types/react-dom": "npm:^19.0.2" "@vanilla-extract/css": "npm:^1.17.0" - async-call-rpc: "npm:^6.4.2" - cross-env: "npm:^10.1.0" next-themes: "npm:^0.4.4" react: "npm:^19.2.1" react-dom: "npm:^19.2.1" react-router-dom: "npm:^6.30.3" typescript: "npm:^5.9.3" uuid: "npm:^13.0.0" - webm-muxer: "npm:^5.0.3" languageName: unknown linkType: soft @@ -589,10 +562,8 @@ __metadata: "@reforged/maker-appimage": "npm:^5.2.0" "@sentry/electron": "npm:^7.9.0" "@sentry/esbuild-plugin": "npm:^5.1.1" - "@sentry/react": "npm:^10.40.0" "@toeverything/infra": "workspace:*" "@types/set-cookie-parser": "npm:^2.4.10" - "@types/uuid": "npm:^11.0.0" "@vitejs/plugin-react-swc": "npm:^4.0.0" app-builder-lib: "npm:^26.8.1" async-call-rpc: "npm:^6.4.2" @@ -611,7 +582,6 @@ __metadata: lodash-es: "npm:^4.17.23" msw: "npm:^2.12.4" nanoid: "npm:^5.1.6" - next-themes: "npm:^0.4.4" rxjs: "npm:^7.8.2" semver: "npm:^7.7.3" set-cookie-parser: "npm:^2.7.1" @@ -652,9 +622,7 @@ __metadata: resolution: "@affine/graphql@workspace:packages/common/graphql" dependencies: "@affine/debug": "workspace:*" - "@affine/env": "workspace:*" "@affine/error": "workspace:*" - "@graphql-codegen/add": "npm:^5.0.3" "@graphql-codegen/cli": "npm:^5.0.7" "@graphql-codegen/typescript": "npm:^4.1.6" "@graphql-codegen/typescript-operations": "npm:^4.6.1" @@ -696,11 +664,9 @@ __metadata: "@affine/graphql": "workspace:*" "@affine/i18n": "workspace:*" "@affine/mobile-shared": "workspace:*" - "@affine/native": "workspace:*" "@affine/nbstore": "workspace:*" "@affine/track": "workspace:*" "@blocksuite/affine": "workspace:*" - "@blocksuite/icons": "npm:^2.2.17" "@capacitor/app": "npm:^7.0.0" "@capacitor/browser": "npm:^7.0.0" "@capacitor/cli": "npm:^7.0.0" @@ -708,20 +674,17 @@ __metadata: "@capacitor/haptics": "npm:^7.0.0" "@capacitor/ios": "npm:^7.0.0" "@capacitor/keyboard": "npm:^7.0.0" - "@sentry/react": "npm:^10.40.0" "@toeverything/infra": "workspace:^" "@types/react": "npm:^19.0.1" "@types/react-dom": "npm:^19.0.2" async-call-rpc: "npm:^6.4.2" capacitor-plugin-app-tracking-transparency: "npm:^2.0.5" - cross-env: "npm:^10.1.0" idb: "npm:^8.0.0" next-themes: "npm:^0.4.4" react: "npm:^19.2.1" react-dom: "npm:^19.2.1" react-router-dom: "npm:^6.30.3" typescript: "npm:^5.9.3" - yjs: "npm:^13.6.27" languageName: unknown linkType: soft @@ -774,16 +737,12 @@ __metadata: "@affine/component": "workspace:*" "@affine/core": "workspace:*" "@affine/env": "workspace:*" - "@affine/i18n": "workspace:*" "@affine/nbstore": "workspace:*" "@affine/track": "workspace:*" "@blocksuite/affine": "workspace:*" - "@blocksuite/icons": "npm:^2.2.17" - "@sentry/react": "npm:^10.40.0" "@toeverything/infra": "workspace:*" "@types/react": "npm:^19.0.1" "@types/react-dom": "npm:^19.0.2" - cross-env: "npm:^10.1.0" react: "npm:^19.2.1" react-dom: "npm:^19.2.1" react-router-dom: "npm:^6.30.3" @@ -818,17 +777,18 @@ __metadata: eslint-config-prettier: "npm:^10.1.8" eslint-import-resolver-typescript: "npm:^4.4.4" eslint-plugin-import-x: "npm:^4.16.1" - eslint-plugin-oxlint: "npm:^1.46.0" + eslint-plugin-lit: "npm:^2.2.1" + eslint-plugin-oxlint: "npm:1.58.0" eslint-plugin-react: "npm:^7.37.5" eslint-plugin-react-hooks: "npm:^7.0.1" eslint-plugin-simple-import-sort: "npm:^12.1.1" - eslint-plugin-sonarjs: "npm:^3.0.7" - eslint-plugin-unicorn: "npm:^63.0.0" + eslint-plugin-sonarjs: "npm:^4.0.2" happy-dom: "npm:^20.0.0" husky: "npm:^9.1.7" lint-staged: "npm:^16.0.0" msw: "npm:^2.12.4" - oxlint: "npm:^1.47.0" + oxlint: "npm:1.58.0" + oxlint-tsgolint: "npm:^0.19.0" prettier: "npm:^3.7.4" semver: "npm:^7.7.3" typescript: "npm:^5.9.3" @@ -865,7 +825,6 @@ __metadata: fake-indexeddb: "npm:^6.0.0" graphemer: "npm:^1.4.0" idb: "npm:^8.0.0" - lib0: "npm:^0.2.114" lodash-es: "npm:^4.17.23" nanoid: "npm:^5.1.6" rxjs: "npm:^7.8.2" @@ -926,7 +885,6 @@ __metadata: "@affine-tools/cli": "workspace:*" "@affine-tools/utils": "workspace:*" path-to-regexp: "npm:^8.3.0" - query-string: "npm:^9.1.1" vitest: "npm:^4.0.18" peerDependencies: react: ^19.2.1 @@ -942,7 +900,6 @@ __metadata: aws4: "npm:^1.13.2" fast-xml-parser: "npm:^5.5.7" s3mini: "npm:^0.9.1" - vitest: "npm:^4.0.18" languageName: unknown linkType: soft @@ -1018,7 +975,6 @@ __metadata: "@types/nodemailer": "npm:^7.0.0" "@types/on-headers": "npm:^1.0.3" "@types/react": "npm:^19.0.1" - "@types/react-dom": "npm:^19.0.2" "@types/semver": "npm:^7.5.8" "@types/sinon": "npm:^21.0.0" "@types/supertest": "npm:^7.0.0" @@ -1051,7 +1007,7 @@ __metadata: nest-commander: "npm:^3.15.0" nest-winston: "npm:^1.9.7" nestjs-cls: "npm:^6.0.0" - nodemailer: "npm:^7.0.11" + nodemailer: "npm:^8.0.4" nodemon: "npm:^3.1.14" on-headers: "npm:^1.1.0" piscina: "npm:^5.1.4" @@ -1062,7 +1018,6 @@ __metadata: reflect-metadata: "npm:^0.2.2" rxjs: "npm:^7.8.2" semver: "npm:^7.7.3" - ses: "npm:^1.14.0" sinon: "npm:^21.0.1" socket.io: "npm:^4.8.1" socket.io-client: "npm:^4.8.3" @@ -1105,15 +1060,12 @@ __metadata: "@affine/component": "workspace:*" "@affine/core": "workspace:*" "@affine/env": "workspace:*" - "@affine/i18n": "workspace:*" "@affine/nbstore": "workspace:*" "@affine/track": "workspace:*" "@emotion/react": "npm:^11.14.0" - "@sentry/react": "npm:^10.40.0" "@toeverything/infra": "workspace:*" "@types/react": "npm:^19.0.1" "@types/react-dom": "npm:^19.0.2" - cross-env: "npm:^10.1.0" react: "npm:^19.2.1" react-dom: "npm:^19.2.1" react-router-dom: "npm:^6.30.3" @@ -1700,13 +1652,10 @@ __metadata: "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" file-type: "npm:^21.0.0" lit: "npm:^3.2.0" rxjs: "npm:^7.8.2" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -1726,7 +1675,6 @@ __metadata: "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" "@vitest/browser-playwright": "npm:^4.0.18" @@ -1735,7 +1683,6 @@ __metadata: rxjs: "npm:^7.8.2" vitest: "npm:^4.0.18" yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -1750,21 +1697,13 @@ __metadata: "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/affine-widget-slash-menu": "workspace:*" - "@blocksuite/global": "workspace:*" "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@emoji-mart/data": "npm:^1.2.1" "@emotion/css": "npm:^11.13.5" - "@floating-ui/dom": "npm:^1.6.10" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" - "@types/mdast": "npm:^4.0.4" - emoji-mart: "npm:^5.6.0" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -1788,12 +1727,9 @@ __metadata: "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" "@types/mdast": "npm:^4.0.4" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" shiki: "npm:^3.19.0" zod: "npm:^3.25.76" languageName: unknown @@ -1814,14 +1750,9 @@ __metadata: "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/mdast": "npm:^4.0.4" lit: "npm:^3.2.0" rxjs: "npm:^7.8.2" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -1845,13 +1776,11 @@ __metadata: "@blocksuite/store": "workspace:*" "@emotion/css": "npm:^11.13.5" "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" "@types/mdast": "npm:^4.0.4" date-fns: "npm:^4.0.0" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" yjs: "npm:^13.6.27" zod: "npm:^3.25.76" languageName: unknown @@ -1866,17 +1795,10 @@ __metadata: "@blocksuite/affine-model": "workspace:*" "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" - "@blocksuite/global": "workspace:*" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" - "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" "@types/mdast": "npm:^4.0.4" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -1885,25 +1807,17 @@ __metadata: resolution: "@blocksuite/affine-block-edgeless-text@workspace:blocksuite/affine/blocks/edgeless-text" dependencies: "@blocksuite/affine-block-surface": "workspace:*" - "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" "@blocksuite/affine-gfx-text": "workspace:*" "@blocksuite/affine-inline-preset": "workspace:*" "@blocksuite/affine-model": "workspace:*" "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" - "@blocksuite/affine-widget-edgeless-toolbar": "workspace:*" "@blocksuite/global": "workspace:*" - "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -1924,17 +1838,12 @@ __metadata: "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" lodash-es: "npm:^4.17.23" rxjs: "npm:^7.8.2" - vitest: "npm:^4.0.18" yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -1945,10 +1854,7 @@ __metadata: "@blocksuite/affine-block-surface": "workspace:*" "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" - "@blocksuite/affine-gfx-pointer": "workspace:*" - "@blocksuite/affine-inline-reference": "workspace:*" "@blocksuite/affine-model": "workspace:*" - "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/affine-widget-slash-menu": "workspace:*" "@blocksuite/global": "workspace:*" @@ -1956,16 +1862,10 @@ __metadata: "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" - lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" - vitest: "npm:^4.0.18" yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -1985,15 +1885,10 @@ __metadata: "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" - "@types/mdast": "npm:^4.0.4" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2013,14 +1908,10 @@ __metadata: "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" file-type: "npm:^21.0.0" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2033,24 +1924,16 @@ __metadata: "@blocksuite/affine-ext-loader": "workspace:*" "@blocksuite/affine-inline-latex": "workspace:*" "@blocksuite/affine-model": "workspace:*" - "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/affine-widget-slash-menu": "workspace:*" - "@blocksuite/global": "workspace:*" "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/katex": "npm:^0.16.7" - "@types/mdast": "npm:^4.0.4" katex: "npm:^0.16.27" lit: "npm:^3.2.0" remark-math: "npm:^6.0.0" - rxjs: "npm:^7.8.2" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2069,15 +1952,9 @@ __metadata: "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" "@types/mdast": "npm:^4.0.4" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" - vitest: "npm:^4.0.18" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2108,7 +1985,6 @@ __metadata: "@vanilla-extract/css": "npm:^1.17.0" lit: "npm:^3.2.0" lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2127,13 +2003,10 @@ __metadata: "@blocksuite/global": "workspace:*" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" "@types/mdast": "npm:^4.0.4" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2166,25 +2039,19 @@ __metadata: "@blocksuite/affine-model": "workspace:*" "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" - "@blocksuite/affine-widget-edgeless-selected-rect": "workspace:*" "@blocksuite/affine-widget-edgeless-toolbar": "workspace:*" "@blocksuite/data-view": "workspace:*" "@blocksuite/global": "workspace:*" "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" "@types/lodash-es": "npm:^4.17.12" dompurify: "npm:^3.3.0" html2canvas: "npm:^1.4.1" lit: "npm:^3.2.0" lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2204,17 +2071,8 @@ __metadata: "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" - fractional-indexing: "npm:^3.2.0" lit: "npm:^3.2.0" - lodash-es: "npm:^4.17.23" - nanoid: "npm:^5.1.6" - rxjs: "npm:^7.8.2" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2222,17 +2080,13 @@ __metadata: version: 0.0.0-use.local resolution: "@blocksuite/affine-block-surface@workspace:blocksuite/affine/blocks/surface" dependencies: - "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" "@blocksuite/affine-model": "workspace:*" - "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/global": "workspace:*" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" "@types/lodash-es": "npm:^4.17.12" fractional-indexing: "npm:^3.2.0" html2canvas: "npm:^1.4.1" @@ -2243,7 +2097,6 @@ __metadata: rxjs: "npm:^7.8.2" vitest: "npm:^4.0.18" yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2251,7 +2104,6 @@ __metadata: version: 0.0.0-use.local resolution: "@blocksuite/affine-block-table@workspace:blocksuite/affine/blocks/table" dependencies: - "@atlaskit/pragmatic-drag-and-drop": "npm:^1.7.7" "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" "@blocksuite/affine-inline-preset": "workspace:*" @@ -2259,7 +2111,6 @@ __metadata: "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/affine-widget-slash-menu": "workspace:*" - "@blocksuite/data-view": "workspace:*" "@blocksuite/global": "workspace:*" "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" @@ -2268,8 +2119,6 @@ __metadata: "@floating-ui/dom": "npm:^1.6.13" "@preact/signals-core": "npm:^1.8.0" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" - yjs: "npm:^13.6.27" zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2290,21 +2139,13 @@ __metadata: "@lottiefiles/dotlottie-wc": "npm:^0.9.4" "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" - "@types/hast": "npm:^3.0.4" - "@types/katex": "npm:^0.16.7" "@types/lodash-es": "npm:^4.17.12" - "@types/mdast": "npm:^4.0.4" - collapse-white-space: "npm:^2.1.0" date-fns: "npm:^4.0.0" - katex: "npm:^0.16.27" lit: "npm:^3.2.0" lit-html: "npm:^3.2.1" lodash-es: "npm:^4.17.23" - remark-math: "npm:^6.0.0" rxjs: "npm:^7.8.2" - shiki: "npm:^3.19.0" yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2328,19 +2169,8 @@ __metadata: "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/data-view": "workspace:*" - "@blocksuite/global": "workspace:*" - "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" - "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" - lit: "npm:^3.2.0" - lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" - yjs: "npm:^13.6.27" zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2351,18 +2181,15 @@ __metadata: dependencies: "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" - "@blocksuite/affine-model": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/global": "workspace:*" "@blocksuite/icons": "npm:^2.2.17" - "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" "@floating-ui/dom": "npm:^1.6.13" "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" languageName: unknown linkType: soft @@ -2370,24 +2197,15 @@ __metadata: version: 0.0.0-use.local resolution: "@blocksuite/affine-fragment-doc-title@workspace:blocksuite/affine/fragments/doc-title" dependencies: - "@blocksuite/affine-block-frame": "workspace:*" - "@blocksuite/affine-block-surface": "workspace:*" - "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" "@blocksuite/affine-model": "workspace:*" "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/global": "workspace:*" - "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2397,7 +2215,6 @@ __metadata: dependencies: "@blocksuite/affine-block-frame": "workspace:*" "@blocksuite/affine-block-surface": "workspace:*" - "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" "@blocksuite/affine-model": "workspace:*" "@blocksuite/affine-rich-text": "workspace:*" @@ -2406,15 +2223,10 @@ __metadata: "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" - "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2423,24 +2235,19 @@ __metadata: resolution: "@blocksuite/affine-fragment-outline@workspace:blocksuite/affine/fragments/outline" dependencies: "@blocksuite/affine-block-note": "workspace:*" - "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" "@blocksuite/affine-fragment-doc-title": "workspace:*" "@blocksuite/affine-model": "workspace:*" - "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/global": "workspace:*" "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" "@vanilla-extract/css": "npm:^1.17.0" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2452,22 +2259,12 @@ __metadata: "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" "@blocksuite/affine-model": "workspace:*" - "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/affine-widget-edgeless-toolbar": "workspace:*" "@blocksuite/global": "workspace:*" - "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" - "@blocksuite/store": "workspace:*" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" - lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" - yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2489,13 +2286,10 @@ __metadata: "@blocksuite/store": "workspace:*" "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2514,18 +2308,10 @@ __metadata: "@blocksuite/global": "workspace:*" "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" - "@blocksuite/store": "workspace:*" "@lit/context": "npm:^1.1.2" - "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" fractional-indexing: "npm:^3.2.0" lit: "npm:^3.2.0" - lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" vitest: "npm:^4.0.18" - yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2538,24 +2324,10 @@ __metadata: "@blocksuite/affine-block-surface": "workspace:*" "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" - "@blocksuite/affine-gfx-pointer": "workspace:*" - "@blocksuite/affine-model": "workspace:*" - "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/affine-widget-edgeless-toolbar": "workspace:*" - "@blocksuite/global": "workspace:*" - "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" - "@blocksuite/store": "workspace:*" - "@lit/context": "npm:^1.1.2" - "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" - lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" - yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2564,7 +2336,6 @@ __metadata: resolution: "@blocksuite/affine-gfx-mindmap@workspace:blocksuite/affine/gfx/mindmap" dependencies: "@blocksuite/affine-block-attachment": "workspace:*" - "@blocksuite/affine-block-edgeless-text": "workspace:*" "@blocksuite/affine-block-image": "workspace:*" "@blocksuite/affine-block-surface": "workspace:*" "@blocksuite/affine-components": "workspace:*" @@ -2574,7 +2345,6 @@ __metadata: "@blocksuite/affine-gfx-shape": "workspace:*" "@blocksuite/affine-gfx-text": "workspace:*" "@blocksuite/affine-model": "workspace:*" - "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/affine-widget-edgeless-toolbar": "workspace:*" "@blocksuite/global": "workspace:*" @@ -2583,14 +2353,11 @@ __metadata: "@blocksuite/store": "workspace:*" "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" simple-xml-to-json: "npm:^1.2.2" yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2611,16 +2378,9 @@ __metadata: "@blocksuite/global": "workspace:*" "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" - "@blocksuite/store": "workspace:*" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" - lodash-es: "npm:^4.17.23" rxjs: "npm:^7.8.2" - yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2629,26 +2389,16 @@ __metadata: resolution: "@blocksuite/affine-gfx-pointer@workspace:blocksuite/affine/gfx/pointer" dependencies: "@blocksuite/affine-block-surface": "workspace:*" - "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" "@blocksuite/affine-model": "workspace:*" - "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/affine-widget-edgeless-toolbar": "workspace:*" "@blocksuite/global": "workspace:*" "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" - "@blocksuite/store": "workspace:*" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" - lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" vitest: "npm:^4.0.18" - yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2670,13 +2420,11 @@ __metadata: "@blocksuite/store": "workspace:*" "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" lodash-es: "npm:^4.17.23" rxjs: "npm:^7.8.2" yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2687,25 +2435,17 @@ __metadata: "@blocksuite/affine-block-surface": "workspace:*" "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" - "@blocksuite/affine-gfx-text": "workspace:*" "@blocksuite/affine-model": "workspace:*" - "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/affine-widget-edgeless-toolbar": "workspace:*" "@blocksuite/global": "workspace:*" - "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" - "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" - lodash-es: "npm:^4.17.23" rxjs: "npm:^7.8.2" yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2723,16 +2463,10 @@ __metadata: "@blocksuite/global": "workspace:*" "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" - "@blocksuite/store": "workspace:*" "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" - lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2752,7 +2486,6 @@ __metadata: resolution: "@blocksuite/affine-inline-comment@workspace:blocksuite/affine/inlines/comment" dependencies: "@blocksuite/affine-ext-loader": "workspace:*" - "@blocksuite/affine-model": "workspace:*" "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/global": "workspace:*" @@ -2760,14 +2493,10 @@ __metadata: "@blocksuite/store": "workspace:*" "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" lit-html: "npm:^3.2.1" lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" - vitest: "npm:^4.0.18" - yjs: "npm:^13.6.27" zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2778,28 +2507,19 @@ __metadata: dependencies: "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" - "@blocksuite/affine-inline-reference": "workspace:*" "@blocksuite/affine-model": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/global": "workspace:*" - "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" "@vitest/browser-playwright": "npm:^4.0.18" - collapse-white-space: "npm:^2.1.0" - date-fns: "npm:^4.0.0" lit: "npm:^3.2.0" lit-html: "npm:^3.2.1" - lodash-es: "npm:^4.17.23" playwright: "npm:=1.58.2" - rxjs: "npm:^7.8.2" vitest: "npm:^4.0.18" - yjs: "npm:^13.6.27" zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2810,7 +2530,6 @@ __metadata: dependencies: "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" - "@blocksuite/affine-inline-reference": "workspace:*" "@blocksuite/affine-model": "workspace:*" "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" @@ -2818,21 +2537,10 @@ __metadata: "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/hast": "npm:^3.0.4" - "@types/katex": "npm:^0.16.7" - "@types/lodash-es": "npm:^4.17.12" - collapse-white-space: "npm:^2.1.0" - date-fns: "npm:^4.0.0" katex: "npm:^0.16.27" lit: "npm:^3.2.0" - lit-html: "npm:^3.2.1" - lodash-es: "npm:^4.17.23" remark-math: "npm:^6.0.0" - rxjs: "npm:^7.8.2" shiki: "npm:^3.19.0" yjs: "npm:^13.6.27" zod: "npm:^3.25.76" @@ -2853,17 +2561,9 @@ __metadata: "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" - collapse-white-space: "npm:^2.1.0" - date-fns: "npm:^4.0.0" lit: "npm:^3.2.0" lit-html: "npm:^3.2.1" - lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" - yjs: "npm:^13.6.27" zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2872,26 +2572,12 @@ __metadata: version: 0.0.0-use.local resolution: "@blocksuite/affine-inline-mention@workspace:blocksuite/affine/inlines/mention" dependencies: - "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" - "@blocksuite/affine-model": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/global": "workspace:*" - "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" - "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" - collapse-white-space: "npm:^2.1.0" - date-fns: "npm:^4.0.0" lit: "npm:^3.2.0" - lit-html: "npm:^3.2.1" - lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" - yjs: "npm:^13.6.27" zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2911,28 +2597,12 @@ __metadata: "@blocksuite/affine-model": "workspace:*" "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" - "@blocksuite/global": "workspace:*" - "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" - "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" "@types/hast": "npm:^3.0.4" - "@types/katex": "npm:^0.16.7" - "@types/lodash-es": "npm:^4.17.12" - "@types/mdast": "npm:^4.0.4" collapse-white-space: "npm:^2.1.0" - date-fns: "npm:^4.0.0" - katex: "npm:^0.16.27" lit: "npm:^3.2.0" - lit-html: "npm:^3.2.1" - lodash-es: "npm:^4.17.23" - remark-math: "npm:^6.0.0" - rxjs: "npm:^7.8.2" - shiki: "npm:^3.19.0" - yjs: "npm:^13.6.27" zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2950,17 +2620,10 @@ __metadata: "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" - collapse-white-space: "npm:^2.1.0" - date-fns: "npm:^4.0.0" lit: "npm:^3.2.0" lit-html: "npm:^3.2.1" - lodash-es: "npm:^4.17.23" rxjs: "npm:^7.8.2" - yjs: "npm:^13.6.27" zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -2976,7 +2639,6 @@ __metadata: "@types/lodash-es": "npm:^4.17.12" fractional-indexing: "npm:^3.2.0" lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" yjs: "npm:^13.6.27" zod: "npm:^3.25.76" languageName: unknown @@ -2993,17 +2655,8 @@ __metadata: "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" - collapse-white-space: "npm:^2.1.0" - date-fns: "npm:^4.0.0" lit: "npm:^3.2.0" - lit-html: "npm:^3.2.1" - lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" yjs: "npm:^13.6.27" zod: "npm:^3.25.76" languageName: unknown @@ -3019,7 +2672,6 @@ __metadata: "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" "@types/bytes": "npm:^3.1.5" @@ -3078,15 +2730,10 @@ __metadata: "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -3094,7 +2741,6 @@ __metadata: version: 0.0.0-use.local resolution: "@blocksuite/affine-widget-edgeless-auto-connect@workspace:blocksuite/affine/widgets/edgeless-auto-connect" dependencies: - "@blocksuite/affine-block-note": "workspace:*" "@blocksuite/affine-block-surface": "workspace:*" "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" @@ -3103,10 +2749,7 @@ __metadata: "@blocksuite/global": "workspace:*" "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" - "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" languageName: unknown linkType: soft @@ -3114,21 +2757,12 @@ __metadata: version: 0.0.0-use.local resolution: "@blocksuite/affine-widget-edgeless-dragging-area@workspace:blocksuite/affine/widgets/edgeless-dragging-area" dependencies: - "@blocksuite/affine-block-note": "workspace:*" "@blocksuite/affine-block-surface": "workspace:*" - "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" "@blocksuite/affine-model": "workspace:*" - "@blocksuite/affine-shared": "workspace:*" - "@blocksuite/global": "workspace:*" - "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" - "@lit/context": "npm:^1.1.2" - "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" - yjs: "npm:^13.6.27" languageName: unknown linkType: soft @@ -3137,7 +2771,6 @@ __metadata: resolution: "@blocksuite/affine-widget-edgeless-selected-rect@workspace:blocksuite/affine/widgets/edgeless-selected-rect" dependencies: "@blocksuite/affine-block-frame": "workspace:*" - "@blocksuite/affine-block-note": "workspace:*" "@blocksuite/affine-block-surface": "workspace:*" "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" @@ -3150,10 +2783,8 @@ __metadata: "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@lit/context": "npm:^1.1.2" - "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" yjs: "npm:^13.6.27" languageName: unknown linkType: soft @@ -3166,7 +2797,6 @@ __metadata: "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" "@blocksuite/affine-model": "workspace:*" - "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/global": "workspace:*" "@blocksuite/icons": "npm:^2.2.17" @@ -3200,7 +2830,6 @@ __metadata: "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" languageName: unknown linkType: soft @@ -3217,10 +2846,8 @@ __metadata: "@blocksuite/global": "workspace:*" "@blocksuite/std": "workspace:*" "@lit/context": "npm:^1.1.2" - "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" languageName: unknown linkType: soft @@ -3245,7 +2872,6 @@ __metadata: "@blocksuite/affine-inline-latex": "workspace:*" "@blocksuite/affine-inline-link": "workspace:*" "@blocksuite/affine-inline-preset": "workspace:*" - "@blocksuite/affine-inline-reference": "workspace:*" "@blocksuite/affine-model": "workspace:*" "@blocksuite/affine-rich-text": "workspace:*" "@blocksuite/affine-shared": "workspace:*" @@ -3253,15 +2879,9 @@ __metadata: "@blocksuite/global": "workspace:*" "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" - "@blocksuite/store": "workspace:*" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" - fflate: "npm:^0.8.2" lit: "npm:^3.2.0" - lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" languageName: unknown linkType: soft @@ -3269,7 +2889,6 @@ __metadata: version: 0.0.0-use.local resolution: "@blocksuite/affine-widget-linked-doc@workspace:blocksuite/affine/widgets/linked-doc" dependencies: - "@blocksuite/affine-block-image": "workspace:*" "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" "@blocksuite/affine-inline-reference": "workspace:*" @@ -3280,7 +2899,6 @@ __metadata: "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" "@types/lodash-es": "npm:^4.17.12" @@ -3289,7 +2907,6 @@ __metadata: lit: "npm:^3.2.0" lodash-es: "npm:^4.17.23" mammoth: "npm:^1.11.0" - rxjs: "npm:^7.8.2" zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -3300,7 +2917,6 @@ __metadata: dependencies: "@blocksuite/affine-block-note": "workspace:*" "@blocksuite/affine-block-surface": "workspace:*" - "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" "@blocksuite/affine-model": "workspace:*" "@blocksuite/affine-shared": "workspace:*" @@ -3308,12 +2924,7 @@ __metadata: "@blocksuite/global": "workspace:*" "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" - "@lit/context": "npm:^1.1.2" - "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" - yjs: "npm:^13.6.27" languageName: unknown linkType: soft @@ -3321,22 +2932,11 @@ __metadata: version: 0.0.0-use.local resolution: "@blocksuite/affine-widget-page-dragging-area@workspace:blocksuite/affine/widgets/page-dragging-area" dependencies: - "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" "@blocksuite/affine-model": "workspace:*" "@blocksuite/affine-shared": "workspace:*" - "@blocksuite/global": "workspace:*" - "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" - "@blocksuite/store": "workspace:*" - "@lit/context": "npm:^1.1.2" - "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" - fflate: "npm:^0.8.2" lit: "npm:^3.2.0" - lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" languageName: unknown linkType: soft @@ -3345,19 +2945,15 @@ __metadata: resolution: "@blocksuite/affine-widget-remote-selection@workspace:blocksuite/affine/widgets/remote-selection" dependencies: "@blocksuite/affine-block-surface": "workspace:*" - "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" "@blocksuite/affine-model": "workspace:*" "@blocksuite/affine-shared": "workspace:*" - "@blocksuite/global": "workspace:*" "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" languageName: unknown linkType: soft @@ -3373,7 +2969,6 @@ __metadata: "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" lit: "npm:^3.2.0" - rxjs: "npm:^7.8.2" languageName: unknown linkType: soft @@ -3390,12 +2985,10 @@ __metadata: "@blocksuite/std": "workspace:*" "@blocksuite/store": "workspace:*" "@floating-ui/dom": "npm:^1.6.13" - "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" languageName: unknown linkType: soft @@ -3415,11 +3008,9 @@ __metadata: "@blocksuite/std": "workspace:*" "@floating-ui/dom": "npm:^1.6.13" "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" languageName: unknown linkType: soft @@ -3427,20 +3018,10 @@ __metadata: version: 0.0.0-use.local resolution: "@blocksuite/affine-widget-viewport-overlay@workspace:blocksuite/affine/widgets/viewport-overlay" dependencies: - "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-ext-loader": "workspace:*" "@blocksuite/affine-model": "workspace:*" - "@blocksuite/affine-shared": "workspace:*" - "@blocksuite/global": "workspace:*" - "@blocksuite/icons": "npm:^2.2.17" "@blocksuite/std": "workspace:*" - "@floating-ui/dom": "npm:^1.6.13" - "@preact/signals-core": "npm:^1.8.0" - "@toeverything/theme": "npm:^1.1.23" - "@types/lodash-es": "npm:^4.17.12" lit: "npm:^3.2.0" - lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" languageName: unknown linkType: soft @@ -3519,7 +3100,6 @@ __metadata: "@blocksuite/sync": "workspace:*" "@vanilla-extract/vite-plugin": "npm:^5.0.0" msw: "npm:^2.12.4" - rxjs: "npm:^7.8.2" vitest: "npm:^4.0.18" languageName: unknown linkType: soft @@ -3528,7 +3108,6 @@ __metadata: version: 0.0.0-use.local resolution: "@blocksuite/bs-docs@workspace:blocksuite/docs" dependencies: - "@blocksuite/affine": "workspace:*" typedoc: "npm:^0.28.15" typedoc-plugin-markdown: "npm:^4.5.0" languageName: unknown @@ -3547,7 +3126,6 @@ __metadata: "@emotion/css": "npm:^11.13.5" "@emotion/hash": "npm:^0.9.2" "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.2" "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" "@types/lodash-es": "npm:^4.17.12" @@ -3555,7 +3133,6 @@ __metadata: date-fns: "npm:^4.0.0" lit: "npm:^3.2.0" lodash-es: "npm:^4.17.23" - rxjs: "npm:^7.8.2" vitest: "npm:^4.0.18" yjs: "npm:^13.6.27" zod: "npm:^3.25.76" @@ -3571,7 +3148,6 @@ __metadata: lit: "npm:^3.2.0" rxjs: "npm:^7.8.2" vitest: "npm:^4.0.18" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -3597,24 +3173,17 @@ __metadata: resolution: "@blocksuite/integration-test@workspace:blocksuite/integration-test" dependencies: "@blocksuite/affine": "workspace:*" - "@blocksuite/icons": "npm:^2.2.17" - "@floating-ui/dom": "npm:^1.6.13" - "@lit/context": "npm:^1.1.3" - "@lottiefiles/dotlottie-wc": "npm:^0.9.4" "@preact/signals-core": "npm:^1.8.0" "@toeverything/theme": "npm:^1.1.23" - "@vanilla-extract/css": "npm:^1.17.0" "@vanilla-extract/vite-plugin": "npm:^5.0.0" "@vitest/browser-playwright": "npm:^4.0.18" lit: "npm:^3.2.0" playwright: "npm:=1.58.2" rxjs: "npm:^7.8.2" vite: "npm:^7.2.7" - vite-plugin-istanbul: "npm:^7.2.1" vite-plugin-wasm: "npm:^3.5.0" vitest: "npm:^4.0.18" yjs: "npm:^13.6.27" - zod: "npm:^3.25.76" languageName: unknown linkType: soft @@ -3623,7 +3192,6 @@ __metadata: resolution: "@blocksuite/playground@workspace:blocksuite/playground" dependencies: "@blocksuite/affine": "workspace:*" - "@blocksuite/affine-components": "workspace:*" "@blocksuite/affine-model": "workspace:*" "@blocksuite/affine-shared": "workspace:*" "@blocksuite/data-view": "workspace:*" @@ -3633,14 +3201,9 @@ __metadata: "@shoelace-style/shoelace": "npm:2.20.1" "@toeverything/pdf-viewer": "npm:^0.1.1" "@toeverything/pdfium": "npm:^0.1.1" - "@toeverything/y-indexeddb": "npm:0.10.0-canary.9" "@tweakpane/core": "npm:^2.0.4" - "@types/katex": "npm:^0.16.7" "@types/micromatch": "npm:^4.0.9" "@vanilla-extract/vite-plugin": "npm:^5.0.0" - browser-fs-access: "npm:^0.37.0" - graphql: "npm:^16.9.0" - jszip: "npm:^3.10.1" katex: "npm:^0.16.27" lit: "npm:^3.2.0" lz-string: "npm:^1.5.0" @@ -3651,7 +3214,6 @@ __metadata: vite-plugin-istanbul: "npm:^7.2.1" vite-plugin-wasm: "npm:^3.5.0" vite-plugin-web-components-hmr: "npm:^0.1.3" - y-indexeddb: "npm:^9.0.12" y-protocols: "npm:^1.0.6" yjs: "npm:^13.6.27" zod: "npm:^3.25.76" @@ -3696,14 +3258,10 @@ __metadata: "@blocksuite/global": "workspace:*" "@blocksuite/sync": "workspace:*" "@preact/signals-core": "npm:^1.8.0" - "@types/lodash.clonedeep": "npm:^4.5.9" "@types/lodash.ismatch": "npm:^4.4.9" - "@types/lodash.merge": "npm:^4.6.9" file-type: "npm:^21.0.0" lib0: "npm:^0.2.114" - lodash.clonedeep: "npm:^4.5.0" lodash.ismatch: "npm:^4.4.0" - lodash.merge: "npm:^4.6.2" minimatch: "npm:^10.2.2" nanoid: "npm:^5.1.6" rxjs: "npm:^7.8.2" @@ -4701,13 +4259,6 @@ __metadata: languageName: node linkType: hard -"@emoji-mart/data@npm:^1.2.1": - version: 1.2.1 - resolution: "@emoji-mart/data@npm:1.2.1" - checksum: 10/a9f50edaf354aadfede604fb26d80055a085e9160db2c924fd5e6afc27033cd5beb0006a9ee48240ce9c543e58e1bf1cf9ed83baba5db83a395154984b30bd91 - languageName: node - linkType: hard - "@emotion/babel-plugin@npm:^11.13.5": version: 11.13.5 resolution: "@emotion/babel-plugin@npm:11.13.5" @@ -4867,27 +4418,6 @@ __metadata: languageName: node linkType: hard -"@endo/cache-map@npm:^1.1.0": - version: 1.1.0 - resolution: "@endo/cache-map@npm:1.1.0" - checksum: 10/1cf2ebae70e9983edd30e830933df52ab9a0140fdecd420325fd20f1633b9afeb377b5cac548c7b7d04beb4cd1a14e672055ad25145119b2b151db78ffaa0b2f - languageName: node - linkType: hard - -"@endo/env-options@npm:^1.1.11": - version: 1.1.11 - resolution: "@endo/env-options@npm:1.1.11" - checksum: 10/a85326b2f422ebb3f5895ed263d230bf9c4915ed2f798210bebb3941daf94d97495f4767f4113bab8f3781b0534ecbe1d29067d7806478fd6237ab69e97fe5c1 - languageName: node - linkType: hard - -"@endo/immutable-arraybuffer@npm:^1.1.2": - version: 1.1.2 - resolution: "@endo/immutable-arraybuffer@npm:1.1.2" - checksum: 10/99159e4a04aad1dbe633b54b90f4591ff527c301ff2dc6585b65949e9c98b8942d726a23815470e6e4641c447bc94368cc96282f8fb50fb78f326b670c48cd16 - languageName: node - linkType: hard - "@envelop/core@npm:^5.2.3": version: 5.2.3 resolution: "@envelop/core@npm:5.2.3" @@ -5291,7 +4821,7 @@ __metadata: languageName: node linkType: hard -"@eslint-community/eslint-utils@npm:^4.8.0, @eslint-community/eslint-utils@npm:^4.9.0, @eslint-community/eslint-utils@npm:^4.9.1": +"@eslint-community/eslint-utils@npm:^4.8.0, @eslint-community/eslint-utils@npm:^4.9.1": version: 4.9.1 resolution: "@eslint-community/eslint-utils@npm:4.9.1" dependencies: @@ -5302,7 +4832,7 @@ __metadata: languageName: node linkType: hard -"@eslint-community/regexpp@npm:4.12.2, @eslint-community/regexpp@npm:^4.12.1, @eslint-community/regexpp@npm:^4.12.2, @eslint-community/regexpp@npm:^4.8.0": +"@eslint-community/regexpp@npm:^4.12.1, @eslint-community/regexpp@npm:^4.12.2, @eslint-community/regexpp@npm:^4.8.0": version: 4.12.2 resolution: "@eslint-community/regexpp@npm:4.12.2" checksum: 10/049b280fddf71dd325514e0a520024969431dc3a8b02fa77476e6820e9122f28ab4c9168c11821f91a27982d2453bcd7a66193356ea84e84fb7c8d793be1ba0c @@ -5448,7 +4978,7 @@ __metadata: languageName: node linkType: hard -"@floating-ui/dom@npm:^1.0.0, @floating-ui/dom@npm:^1.6.10, @floating-ui/dom@npm:^1.6.12, @floating-ui/dom@npm:^1.6.13": +"@floating-ui/dom@npm:^1.0.0, @floating-ui/dom@npm:^1.6.12, @floating-ui/dom@npm:^1.6.13": version: 1.7.0 resolution: "@floating-ui/dom@npm:1.7.0" dependencies: @@ -7186,22 +6716,6 @@ __metadata: languageName: node linkType: hard -"@isaacs/balanced-match@npm:^4.0.1": - version: 4.0.1 - resolution: "@isaacs/balanced-match@npm:4.0.1" - checksum: 10/102fbc6d2c0d5edf8f6dbf2b3feb21695a21bc850f11bc47c4f06aa83bd8884fde3fe9d6d797d619901d96865fdcb4569ac2a54c937992c48885c5e3d9967fe8 - languageName: node - linkType: hard - -"@isaacs/brace-expansion@npm:^5.0.1": - version: 5.0.1 - resolution: "@isaacs/brace-expansion@npm:5.0.1" - dependencies: - "@isaacs/balanced-match": "npm:^4.0.1" - checksum: 10/aec226065bc4285436a27379e08cc35bf94ef59f5098ac1c026495c9ba4ab33d851964082d3648d56d63eb90f2642867bd15a3e1b810b98beb1a8c14efce6a94 - languageName: node - linkType: hard - "@isaacs/cliui@npm:^8.0.2": version: 8.0.2 resolution: "@isaacs/cliui@npm:8.0.2" @@ -7386,7 +6900,7 @@ __metadata: languageName: node linkType: hard -"@lit/context@npm:^1.1.2, @lit/context@npm:^1.1.3, @lit/context@npm:^1.1.4": +"@lit/context@npm:^1.1.2": version: 1.1.5 resolution: "@lit/context@npm:1.1.5" dependencies: @@ -10490,135 +10004,177 @@ __metadata: languageName: node linkType: hard -"@oxlint/binding-android-arm-eabi@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-android-arm-eabi@npm:1.47.0" - conditions: os=android & cpu=arm - languageName: node - linkType: hard - -"@oxlint/binding-android-arm64@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-android-arm64@npm:1.47.0" - conditions: os=android & cpu=arm64 - languageName: node - linkType: hard - -"@oxlint/binding-darwin-arm64@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-darwin-arm64@npm:1.47.0" +"@oxlint-tsgolint/darwin-arm64@npm:0.19.0": + version: 0.19.0 + resolution: "@oxlint-tsgolint/darwin-arm64@npm:0.19.0" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@oxlint/binding-darwin-x64@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-darwin-x64@npm:1.47.0" +"@oxlint-tsgolint/darwin-x64@npm:0.19.0": + version: 0.19.0 + resolution: "@oxlint-tsgolint/darwin-x64@npm:0.19.0" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@oxlint/binding-freebsd-x64@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-freebsd-x64@npm:1.47.0" - conditions: os=freebsd & cpu=x64 +"@oxlint-tsgolint/linux-arm64@npm:0.19.0": + version: 0.19.0 + resolution: "@oxlint-tsgolint/linux-arm64@npm:0.19.0" + conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"@oxlint/binding-linux-arm-gnueabihf@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-linux-arm-gnueabihf@npm:1.47.0" - conditions: os=linux & cpu=arm +"@oxlint-tsgolint/linux-x64@npm:0.19.0": + version: 0.19.0 + resolution: "@oxlint-tsgolint/linux-x64@npm:0.19.0" + conditions: os=linux & cpu=x64 languageName: node linkType: hard -"@oxlint/binding-linux-arm-musleabihf@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-linux-arm-musleabihf@npm:1.47.0" - conditions: os=linux & cpu=arm - languageName: node - linkType: hard - -"@oxlint/binding-linux-arm64-gnu@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-linux-arm64-gnu@npm:1.47.0" - conditions: os=linux & cpu=arm64 & libc=glibc - languageName: node - linkType: hard - -"@oxlint/binding-linux-arm64-musl@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-linux-arm64-musl@npm:1.47.0" - conditions: os=linux & cpu=arm64 & libc=musl - languageName: node - linkType: hard - -"@oxlint/binding-linux-ppc64-gnu@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-linux-ppc64-gnu@npm:1.47.0" - conditions: os=linux & cpu=ppc64 & libc=glibc - languageName: node - linkType: hard - -"@oxlint/binding-linux-riscv64-gnu@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-linux-riscv64-gnu@npm:1.47.0" - conditions: os=linux & cpu=riscv64 & libc=glibc - languageName: node - linkType: hard - -"@oxlint/binding-linux-riscv64-musl@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-linux-riscv64-musl@npm:1.47.0" - conditions: os=linux & cpu=riscv64 & libc=musl - languageName: node - linkType: hard - -"@oxlint/binding-linux-s390x-gnu@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-linux-s390x-gnu@npm:1.47.0" - conditions: os=linux & cpu=s390x & libc=glibc - languageName: node - linkType: hard - -"@oxlint/binding-linux-x64-gnu@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-linux-x64-gnu@npm:1.47.0" - conditions: os=linux & cpu=x64 & libc=glibc - languageName: node - linkType: hard - -"@oxlint/binding-linux-x64-musl@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-linux-x64-musl@npm:1.47.0" - conditions: os=linux & cpu=x64 & libc=musl - languageName: node - linkType: hard - -"@oxlint/binding-openharmony-arm64@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-openharmony-arm64@npm:1.47.0" - conditions: os=openharmony & cpu=arm64 - languageName: node - linkType: hard - -"@oxlint/binding-win32-arm64-msvc@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-win32-arm64-msvc@npm:1.47.0" +"@oxlint-tsgolint/win32-arm64@npm:0.19.0": + version: 0.19.0 + resolution: "@oxlint-tsgolint/win32-arm64@npm:0.19.0" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@oxlint/binding-win32-ia32-msvc@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-win32-ia32-msvc@npm:1.47.0" +"@oxlint-tsgolint/win32-x64@npm:0.19.0": + version: 0.19.0 + resolution: "@oxlint-tsgolint/win32-x64@npm:0.19.0" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + +"@oxlint/binding-android-arm-eabi@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-android-arm-eabi@npm:1.58.0" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + +"@oxlint/binding-android-arm64@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-android-arm64@npm:1.58.0" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + +"@oxlint/binding-darwin-arm64@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-darwin-arm64@npm:1.58.0" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + +"@oxlint/binding-darwin-x64@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-darwin-x64@npm:1.58.0" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"@oxlint/binding-freebsd-x64@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-freebsd-x64@npm:1.58.0" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + +"@oxlint/binding-linux-arm-gnueabihf@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-linux-arm-gnueabihf@npm:1.58.0" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + +"@oxlint/binding-linux-arm-musleabihf@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-linux-arm-musleabihf@npm:1.58.0" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + +"@oxlint/binding-linux-arm64-gnu@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-linux-arm64-gnu@npm:1.58.0" + conditions: os=linux & cpu=arm64 & libc=glibc + languageName: node + linkType: hard + +"@oxlint/binding-linux-arm64-musl@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-linux-arm64-musl@npm:1.58.0" + conditions: os=linux & cpu=arm64 & libc=musl + languageName: node + linkType: hard + +"@oxlint/binding-linux-ppc64-gnu@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-linux-ppc64-gnu@npm:1.58.0" + conditions: os=linux & cpu=ppc64 & libc=glibc + languageName: node + linkType: hard + +"@oxlint/binding-linux-riscv64-gnu@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-linux-riscv64-gnu@npm:1.58.0" + conditions: os=linux & cpu=riscv64 & libc=glibc + languageName: node + linkType: hard + +"@oxlint/binding-linux-riscv64-musl@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-linux-riscv64-musl@npm:1.58.0" + conditions: os=linux & cpu=riscv64 & libc=musl + languageName: node + linkType: hard + +"@oxlint/binding-linux-s390x-gnu@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-linux-s390x-gnu@npm:1.58.0" + conditions: os=linux & cpu=s390x & libc=glibc + languageName: node + linkType: hard + +"@oxlint/binding-linux-x64-gnu@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-linux-x64-gnu@npm:1.58.0" + conditions: os=linux & cpu=x64 & libc=glibc + languageName: node + linkType: hard + +"@oxlint/binding-linux-x64-musl@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-linux-x64-musl@npm:1.58.0" + conditions: os=linux & cpu=x64 & libc=musl + languageName: node + linkType: hard + +"@oxlint/binding-openharmony-arm64@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-openharmony-arm64@npm:1.58.0" + conditions: os=openharmony & cpu=arm64 + languageName: node + linkType: hard + +"@oxlint/binding-win32-arm64-msvc@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-win32-arm64-msvc@npm:1.58.0" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + +"@oxlint/binding-win32-ia32-msvc@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-win32-ia32-msvc@npm:1.58.0" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@oxlint/binding-win32-x64-msvc@npm:1.47.0": - version: 1.47.0 - resolution: "@oxlint/binding-win32-x64-msvc@npm:1.47.0" +"@oxlint/binding-win32-x64-msvc@npm:1.58.0": + version: 1.58.0 + resolution: "@oxlint/binding-win32-x64-msvc@npm:1.58.0" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -11132,7 +10688,7 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-context-menu@npm:^2.1.15, @radix-ui/react-context-menu@npm:^2.2.16, @radix-ui/react-context-menu@npm:^2.2.3": +"@radix-ui/react-context-menu@npm:^2.2.16, @radix-ui/react-context-menu@npm:^2.2.3": version: 2.2.16 resolution: "@radix-ui/react-context-menu@npm:2.2.16" dependencies: @@ -15740,18 +15296,12 @@ __metadata: "@affine/env": "workspace:*" "@affine/error": "workspace:*" "@affine/templates": "workspace:*" - "@emotion/react": "npm:^11.14.0" "@preact/signals-core": "npm:^1.8.0" "@testing-library/dom": "npm:^10.4.0" "@testing-library/react": "npm:^16.1.0" "@types/react": "npm:^19.0.1" eventemitter2: "npm:^6.4.9" - fake-indexeddb: "npm:^6.0.0" - foxact: "npm:^0.2.49" fractional-indexing: "npm:^3.2.0" - fuse.js: "npm:^7.0.0" - graphemer: "npm:^1.4.0" - idb: "npm:^8.0.0" jotai: "npm:^2.10.3" jotai-effect: "npm:^2.0.0" lodash-es: "npm:^4.17.23" @@ -15805,19 +15355,6 @@ __metadata: languageName: node linkType: hard -"@toeverything/y-indexeddb@npm:0.10.0-canary.9": - version: 0.10.0-canary.9 - resolution: "@toeverything/y-indexeddb@npm:0.10.0-canary.9" - dependencies: - idb: "npm:^7.1.1" - nanoid: "npm:^5.0.1" - y-provider: "npm:0.10.0-canary.9" - peerDependencies: - yjs: ^13 - checksum: 10/126a234f0ef64c24fa8b7a2ab398a14de0e3f34187cd931af07c30551a336e240d58b8236aa78d69544adb429b1457be8d071a04109f86441b39c4a0c98a446e - languageName: node - linkType: hard - "@tokenizer/inflate@npm:^0.4.1": version: 0.4.1 resolution: "@tokenizer/inflate@npm:0.4.1" @@ -15908,13 +15445,6 @@ __metadata: languageName: unknown linkType: soft -"@types/animejs@npm:^3.1.12": - version: 3.1.13 - resolution: "@types/animejs@npm:3.1.13" - checksum: 10/18481e2a6c829693fe7edfc7e3f3e6f5542c6d996a405d67acf595adbcfa15ba5c930aa416fe7ba563564220931eaba4ba8f8151c8358346719b0e72d5ef5e48 - languageName: node - linkType: hard - "@types/appdmg@npm:^0.5.5": version: 0.5.5 resolution: "@types/appdmg@npm:0.5.5" @@ -16426,7 +15956,7 @@ __metadata: languageName: node linkType: hard -"@types/dom-webcodecs@npm:^0.1.4, @types/dom-webcodecs@npm:^0.1.6": +"@types/dom-webcodecs@npm:^0.1.6": version: 0.1.15 resolution: "@types/dom-webcodecs@npm:0.1.15" checksum: 10/0d1ce12007803b92594968c657e3bcdb24c5f4b7b89a3b094670bcc39f5c3b395adba1ab64a930007bd947ae6be1689ddd64ccc48127d1acf3ef7be63f3cdc98 @@ -16470,14 +16000,14 @@ __metadata: linkType: hard "@types/express-serve-static-core@npm:*, @types/express-serve-static-core@npm:^5.0.0, @types/express-serve-static-core@npm:^5.0.6": - version: 5.0.6 - resolution: "@types/express-serve-static-core@npm:5.0.6" + version: 5.1.1 + resolution: "@types/express-serve-static-core@npm:5.1.1" dependencies: "@types/node": "npm:*" "@types/qs": "npm:*" "@types/range-parser": "npm:*" "@types/send": "npm:*" - checksum: 10/9dc51bdee7da9ad4792e97dd1be5b3071b5128f26d3b87a753070221bb36c8f9d16074b95a8b972acc965641e987b1e279a44675e7312ac8f3e18ec9abe93940 + checksum: 10/7f3d8cf7e68764c9f3e8f6a12825b69ccf5287347fc1c20b29803d4f08a4abc1153ae11d7258852c61aad50f62ef72d4c1b9c97092b0a90462c3dddec2f6026c languageName: node linkType: hard @@ -16602,11 +16132,11 @@ __metadata: linkType: hard "@types/http-proxy@npm:^1.17.15, @types/http-proxy@npm:^1.17.8": - version: 1.17.16 - resolution: "@types/http-proxy@npm:1.17.16" + version: 1.17.17 + resolution: "@types/http-proxy@npm:1.17.17" dependencies: "@types/node": "npm:*" - checksum: 10/a054ac8f5301acfcfdcec3a775f52dc371180bbe60037906534312f10cceb3799b4a16e46c56c22f9925d078e11dcda1723c38f1ddd124be8169a4cccca69c8c + checksum: 10/893e46e12be576baa471cf2fc13a4f0e413eaf30a5850de8fdbea3040e138ad4171234c59b986cf7137ff20a1582b254bf0c44cfd715d5ed772e1ab94dd75cd1 languageName: node linkType: hard @@ -16659,7 +16189,7 @@ __metadata: languageName: node linkType: hard -"@types/katex@npm:^0.16.0, @types/katex@npm:^0.16.7": +"@types/katex@npm:^0.16.0": version: 0.16.7 resolution: "@types/katex@npm:0.16.7" checksum: 10/4fd15d93553be97c02c064e16be18d7ccbabf66ec72a9dc7fd5bfa47f0c7581da2f942f693c7cb59499de4c843c2189796e49c9647d336cbd52b777b6722a95a @@ -16716,15 +16246,6 @@ __metadata: languageName: node linkType: hard -"@types/lodash.clonedeep@npm:^4.5.9": - version: 4.5.9 - resolution: "@types/lodash.clonedeep@npm:4.5.9" - dependencies: - "@types/lodash": "npm:*" - checksum: 10/ef85512b7dce7a4f981a818ae44d11982907e1f26b5b26bedf0957c35e8591eb8e1d24fa31ca851d4b40e0a1ee88563853d762412691fe5f357e8335cead2325 - languageName: node - linkType: hard - "@types/lodash.ismatch@npm:^4.4.9": version: 4.4.9 resolution: "@types/lodash.ismatch@npm:4.4.9" @@ -16734,15 +16255,6 @@ __metadata: languageName: node linkType: hard -"@types/lodash.merge@npm:^4.6.9": - version: 4.6.9 - resolution: "@types/lodash.merge@npm:4.6.9" - dependencies: - "@types/lodash": "npm:*" - checksum: 10/d0dd6654547c9d8d905184d14aa5c2a37a1ed1c3204f5ab20b7d591a05f34859ef09d3b72c065e94ca1989abf9109eb8230f67c4d64a5768b1d65b9ed8baf8e7 - languageName: node - linkType: hard - "@types/lodash@npm:*, @types/lodash@npm:^4.17.0, @types/lodash@npm:^4.17.15": version: 4.17.21 resolution: "@types/lodash@npm:4.17.21" @@ -17165,15 +16677,6 @@ __metadata: languageName: node linkType: hard -"@types/uuid@npm:^11.0.0": - version: 11.0.0 - resolution: "@types/uuid@npm:11.0.0" - dependencies: - uuid: "npm:*" - checksum: 10/9f94bd34e5d220c53cc58ea9f48a0061d3bc343e29bc33a17edc705f5e21fedda21553318151f2bc227c2b2b03727bbb536da2b82a61f84d2e1ca38abc5e5c3f - languageName: node - linkType: hard - "@types/whatwg-mimetype@npm:^3.0.2": version: 3.0.2 resolution: "@types/whatwg-mimetype@npm:3.0.2" @@ -18008,13 +17511,6 @@ __metadata: languageName: node linkType: hard -"@webcontainer/api@npm:^1.6.1": - version: 1.6.1 - resolution: "@webcontainer/api@npm:1.6.1" - checksum: 10/c5502da3a86425199f1171665f4c32bdb73cc5b8291abdee3a934023c2f276bb35382e0a36b067f9bd41d96a722419048ee89847852dcc3f60cba70bccf51ca6 - languageName: node - linkType: hard - "@whatwg-node/disposablestack@npm:^0.0.6": version: 0.0.6 resolution: "@whatwg-node/disposablestack@npm:0.0.6" @@ -18057,9 +17553,9 @@ __metadata: linkType: hard "@xmldom/xmldom@npm:^0.8.6, @xmldom/xmldom@npm:^0.8.8": - version: 0.8.10 - resolution: "@xmldom/xmldom@npm:0.8.10" - checksum: 10/62400bc5e0e75b90650e33a5ceeb8d94829dd11f9b260962b71a784cd014ddccec3e603fe788af9c1e839fa4648d8c521ebd80d8b752878d3a40edabc9ce7ccf + version: 0.8.12 + resolution: "@xmldom/xmldom@npm:0.8.12" + checksum: 10/0fc20bc72a057a939ed17afc3fb35d6be2eb19e42aa9ba3c78aa8bdf471da0b4b17c2710581ce6a2cd68ce3995c2ee7d689593a70a26df1273c0c9c29dfca257 languageName: node linkType: hard @@ -19091,12 +18587,12 @@ __metadata: languageName: node linkType: hard -"brace-expansion@npm:^5.0.2": - version: 5.0.2 - resolution: "brace-expansion@npm:5.0.2" +"brace-expansion@npm:^5.0.5": + version: 5.0.5 + resolution: "brace-expansion@npm:5.0.5" dependencies: balanced-match: "npm:^4.0.2" - checksum: 10/18d382c0919c68f8bb56fbe4a9cb1181a0bf10e6786b5683e586493dfbb517bdcf972f4a3a8d560486627fd9c9c6ecef0a2b8fd454eb6082780307ffd5586251 + checksum: 10/f259b2ddf04489da9512ad637ba6b4ef2d77abd4445d20f7f1714585f153435200a53fa6a2e4a5ee974df14ddad4cd16421f6f803e96e8b452bd48598878d0ee languageName: node linkType: hard @@ -19118,13 +18614,6 @@ __metadata: languageName: node linkType: hard -"browser-fs-access@npm:^0.37.0": - version: 0.37.0 - resolution: "browser-fs-access@npm:0.37.0" - checksum: 10/31384a36b08d243b2fa2458745f06a53046f01bd1808f2f8d933db9112e2879e92b2ac59f050b5f12175acbff248452b7ed9cc1a294c3967be04544bf2de5e59 - languageName: node - linkType: hard - "browserslist@npm:^4.0.0, browserslist@npm:^4.24.0, browserslist@npm:^4.24.4, browserslist@npm:^4.24.5, browserslist@npm:^4.28.1": version: 4.28.1 resolution: "browserslist@npm:4.28.1" @@ -19214,20 +18703,13 @@ __metadata: languageName: node linkType: hard -"builtin-modules@npm:3.3.0": +"builtin-modules@npm:^3.3.0": version: 3.3.0 resolution: "builtin-modules@npm:3.3.0" checksum: 10/62e063ab40c0c1efccbfa9ffa31873e4f9d57408cb396a2649981a0ecbce56aabc93c28feaccbc5658c95aab2703ad1d11980e62ec2e5e72637404e1eb60f39e languageName: node linkType: hard -"builtin-modules@npm:^5.0.0": - version: 5.0.0 - resolution: "builtin-modules@npm:5.0.0" - checksum: 10/85ba92a4cbd794174dae48c867d27f5529a03c9c073ccb029f106e62861eb48e09231f17a7290645e16a0a22d7401ca269ff73b760a6ddb9a3b7d1b9ceba81ac - languageName: node - linkType: hard - "bullmq@npm:^5.40.2": version: 5.53.0 resolution: "bullmq@npm:5.53.0" @@ -19620,13 +19102,6 @@ __metadata: languageName: node linkType: hard -"change-case@npm:^5.4.4": - version: 5.4.4 - resolution: "change-case@npm:5.4.4" - checksum: 10/446e5573f3c854290a91292afef92b957d2e43a928260c91989b482aa860caaa29711b6725fc40c200af68061cbab357b033446d16a17bc5c553636994074e92 - languageName: node - linkType: hard - "changelogen@npm:0.5.7": version: 0.5.7 resolution: "changelogen@npm:0.5.7" @@ -19852,7 +19327,7 @@ __metadata: languageName: node linkType: hard -"ci-info@npm:^4.3.1, ci-info@npm:^4.4.0": +"ci-info@npm:^4.4.0": version: 4.4.0 resolution: "ci-info@npm:4.4.0" checksum: 10/dfded0c630267d89660c8abb988ac8395a382bdfefedcc03e3e2858523312c5207db777c239c34774e3fcff11f015477c19d2ac8a58ea58aa476614a2e64f434 @@ -19900,15 +19375,6 @@ __metadata: languageName: node linkType: hard -"clean-regexp@npm:^1.0.0": - version: 1.0.0 - resolution: "clean-regexp@npm:1.0.0" - dependencies: - escape-string-regexp: "npm:^1.0.5" - checksum: 10/0b1ce281b07da2463c6882ea2e8409119b6cabbd9f687cdbdcee942c45b2b9049a2084f7b5f228c63ef9f21e722963ae0bfe56a735dbdbdd92512867625a7e40 - languageName: node - linkType: hard - "clean-stack@npm:^2.0.0": version: 2.2.0 resolution: "clean-stack@npm:2.2.0" @@ -20618,15 +20084,6 @@ __metadata: languageName: node linkType: hard -"core-js-compat@npm:^3.46.0": - version: 3.48.0 - resolution: "core-js-compat@npm:3.48.0" - dependencies: - browserslist: "npm:^4.28.1" - checksum: 10/83c326dcfef5e174fd3f8f33c892c66e06d567ce27f323a1197a6c280c0178fe18d3e9c5fb95b00c18b98d6c53fba5c646def5fedaa77310a4297d16dfbe2029 - languageName: node - linkType: hard - "core-js@npm:^3.39.0": version: 3.42.0 resolution: "core-js@npm:3.42.0" @@ -22306,13 +21763,6 @@ __metadata: languageName: node linkType: hard -"emoji-mart@npm:^5.6.0": - version: 5.6.0 - resolution: "emoji-mart@npm:5.6.0" - checksum: 10/fbbd6ce6fe6bc30020a7de4bfd6375f3c00da9880a147fdbee37303d985856e5463a48a61177166ad056a355e0bd589df9c0866bd54f9c065d60a9efa80639dd - languageName: node - linkType: hard - "emoji-regex@npm:^10.3.0": version: 10.4.0 resolution: "emoji-regex@npm:10.4.0" @@ -22846,12 +22296,26 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-oxlint@npm:^1.46.0": - version: 1.46.0 - resolution: "eslint-plugin-oxlint@npm:1.46.0" +"eslint-plugin-lit@npm:^2.2.1": + version: 2.2.1 + resolution: "eslint-plugin-lit@npm:2.2.1" + dependencies: + parse5: "npm:^6.0.1" + parse5-htmlparser2-tree-adapter: "npm:^6.0.1" + peerDependencies: + eslint: ">= 8" + checksum: 10/fc0f3c2bec52c2c1c2467b373a71e68f2bb101b3872b30be9f439660e735684bec016c6b83cea1ed71e6d94f9ec9621a805f3a188b618b84c2e25ae1adbde192 + languageName: node + linkType: hard + +"eslint-plugin-oxlint@npm:1.58.0": + version: 1.58.0 + resolution: "eslint-plugin-oxlint@npm:1.58.0" dependencies: jsonc-parser: "npm:^3.3.1" - checksum: 10/385f537a380d9e227be4a9eb31e331cad06560ddabbbd369c00010f795648ecb9dd9f003615d37f5d42be16a6f076a449e27feaf267ba56ca5114822e05b4d10 + peerDependencies: + oxlint: ~1.58.0 + checksum: 10/673d5c2402b793b91ffbabfaa040100fae498f7d18fb840c5717fe96f0160fe9e15cad21cb0757264b024ea24f51466a6c294fa63a7b8a33164a373352c53351 languageName: node linkType: hard @@ -22907,49 +22371,25 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-sonarjs@npm:^3.0.7": - version: 3.0.7 - resolution: "eslint-plugin-sonarjs@npm:3.0.7" +"eslint-plugin-sonarjs@npm:^4.0.2": + version: 4.0.2 + resolution: "eslint-plugin-sonarjs@npm:4.0.2" dependencies: - "@eslint-community/regexpp": "npm:4.12.2" - builtin-modules: "npm:3.3.0" - bytes: "npm:3.1.2" - functional-red-black-tree: "npm:1.0.1" - jsx-ast-utils-x: "npm:0.1.0" - lodash.merge: "npm:4.6.2" - minimatch: "npm:10.1.2" - scslre: "npm:0.3.0" - semver: "npm:7.7.4" + "@eslint-community/regexpp": "npm:^4.12.2" + builtin-modules: "npm:^3.3.0" + bytes: "npm:^3.1.2" + functional-red-black-tree: "npm:^1.0.1" + globals: "npm:^17.4.0" + jsx-ast-utils-x: "npm:^0.1.0" + lodash.merge: "npm:^4.6.2" + minimatch: "npm:^10.2.4" + scslre: "npm:^0.3.0" + semver: "npm:^7.7.4" + ts-api-utils: "npm:^2.4.0" typescript: "npm:>=5" peerDependencies: - eslint: ^8.0.0 || ^9.0.0 - checksum: 10/1e457c16fe200f36361595f96ef46681b1c7797c81471093edccb944a29d96434650d3800de9962707579a9f357586d090e56694e72060024a2bd80d56b537a9 - languageName: node - linkType: hard - -"eslint-plugin-unicorn@npm:^63.0.0": - version: 63.0.0 - resolution: "eslint-plugin-unicorn@npm:63.0.0" - dependencies: - "@babel/helper-validator-identifier": "npm:^7.28.5" - "@eslint-community/eslint-utils": "npm:^4.9.0" - change-case: "npm:^5.4.4" - ci-info: "npm:^4.3.1" - clean-regexp: "npm:^1.0.0" - core-js-compat: "npm:^3.46.0" - find-up-simple: "npm:^1.0.1" - globals: "npm:^16.4.0" - indent-string: "npm:^5.0.0" - is-builtin-module: "npm:^5.0.0" - jsesc: "npm:^3.1.0" - pluralize: "npm:^8.0.0" - regexp-tree: "npm:^0.1.27" - regjsparser: "npm:^0.13.0" - semver: "npm:^7.7.3" - strip-indent: "npm:^4.1.1" - peerDependencies: - eslint: ">=9.38.0" - checksum: 10/bfcaf383e8e244c13311900d4e152b1a4134f844ddc8514d86aca7da932a4663b144fceca7a32a796faaf53a84a203dcd3052ef846c05990dd285c19ed6c9f17 + eslint: ^8.0.0 || ^9.0.0 || ^10.0.0 + checksum: 10/54b70fb2fde6d940ba993fa9533b4ba1bf08d4ee3b54723cc81138ea6c3c42abf12247ad4c4ccddbb40ab607645eb94e7ec271d33eff097279bf49a1f01b54a3 languageName: node linkType: hard @@ -23266,7 +22706,7 @@ __metadata: languageName: node linkType: hard -"express@npm:5.2.1, express@npm:^5.0.0, express@npm:^5.0.1": +"express@npm:5.2.1, express@npm:^5.0.0, express@npm:^5.0.1, express@npm:^5.1.0": version: 5.2.1 resolution: "express@npm:5.2.1" dependencies: @@ -23726,7 +23166,7 @@ __metadata: languageName: node linkType: hard -"find-up-simple@npm:^1.0.0, find-up-simple@npm:^1.0.1": +"find-up-simple@npm:^1.0.0": version: 1.0.1 resolution: "find-up-simple@npm:1.0.1" checksum: 10/6e374bffda9f8425314eab47ef79752b6e77dcc95c0ad17d257aef48c32fe07bbc41bcafbd22941c25bb94fffaaaa8e178d928867d844c58100c7fe19ec82f72 @@ -24100,7 +23540,7 @@ __metadata: languageName: node linkType: hard -"functional-red-black-tree@npm:1.0.1": +"functional-red-black-tree@npm:^1.0.1": version: 1.0.1 resolution: "functional-red-black-tree@npm:1.0.1" checksum: 10/debe73e92204341d1fa5f89614e44284d3add26dee660722978d8c50829170f87d1c74768f68c251d215ae461c11db7bac13101c77f4146ff051da75466f7a12 @@ -24486,10 +23926,10 @@ __metadata: languageName: node linkType: hard -"globals@npm:^16.4.0": - version: 16.5.0 - resolution: "globals@npm:16.5.0" - checksum: 10/f9e8a2a13f50222c127030a619e283e7bbfe32966316bdde0715af1d15a7e40cb9c24ff52cad59671f97762ed8b515353c2f8674f560c63d9385f19ee26735a6 +"globals@npm:^17.4.0": + version: 17.4.0 + resolution: "globals@npm:17.4.0" + checksum: 10/ffad244617e94efcb3da72b7beefc941167c21316148ce378f322db7af72db06468f370e23224b3c7b17b5173a7c75b134e5e7b0949f2828519054a76892508d languageName: node linkType: hard @@ -25243,7 +24683,7 @@ __metadata: languageName: node linkType: hard -"http-proxy-middleware@npm:^3.0.3": +"http-proxy-middleware@npm:^3.0.5": version: 3.0.5 resolution: "http-proxy-middleware@npm:3.0.5" dependencies: @@ -25819,15 +25259,6 @@ __metadata: languageName: node linkType: hard -"is-builtin-module@npm:^5.0.0": - version: 5.0.0 - resolution: "is-builtin-module@npm:5.0.0" - dependencies: - builtin-modules: "npm:^5.0.0" - checksum: 10/fcb1e458fa08e6d7e8763abaa84bc539ca943b298e15448ba92b79ab8f08c382664b8b1d5e32c59358e87026fed7b1e56e457b955436d7cc860cf0653002e4c6 - languageName: node - linkType: hard - "is-bun-module@npm:^2.0.0": version: 2.0.0 resolution: "is-bun-module@npm:2.0.0" @@ -26475,7 +25906,7 @@ __metadata: languageName: node linkType: hard -"jsesc@npm:^3.0.2, jsesc@npm:^3.1.0, jsesc@npm:~3.1.0": +"jsesc@npm:^3.0.2": version: 3.1.0 resolution: "jsesc@npm:3.1.0" bin: @@ -26625,7 +26056,7 @@ __metadata: languageName: node linkType: hard -"jsx-ast-utils-x@npm:0.1.0": +"jsx-ast-utils-x@npm:^0.1.0": version: 0.1.0 resolution: "jsx-ast-utils-x@npm:0.1.0" checksum: 10/ca28d2f2c9cf7e1c971f4a21d1f73197bb528659a9da50ab84065cdeedad422dacdf835e83cbc4264da4d84d41303f0c8fcca78d430d3fdbf22e10b7c7bf4724 @@ -26802,7 +26233,7 @@ __metadata: languageName: node linkType: hard -"lib0@npm:^0.2.114, lib0@npm:^0.2.74, lib0@npm:^0.2.85, lib0@npm:^0.2.98": +"lib0@npm:^0.2.114, lib0@npm:^0.2.85, lib0@npm:^0.2.98": version: 0.2.114 resolution: "lib0@npm:0.2.114" dependencies: @@ -27164,13 +26595,20 @@ __metadata: languageName: node linkType: hard -"lodash-es@npm:4.17.23, lodash-es@npm:^4.17.21, lodash-es@npm:^4.17.23": +"lodash-es@npm:4.17.23": version: 4.17.23 resolution: "lodash-es@npm:4.17.23" checksum: 10/1feae200df22eb0bd93ca86d485e77784b8a9fb1d13e91b66e9baa7a7e5e04be088c12a7e20c2250fc0bd3db1bc0ef0affc7d9e3810b6af2455a3c6bf6dde59e languageName: node linkType: hard +"lodash-es@npm:^4.17.21, lodash-es@npm:^4.17.23": + version: 4.18.1 + resolution: "lodash-es@npm:4.18.1" + checksum: 10/8bfad225ef09ef42b04283cdaf7830efcc2ba29ae41b56501c74422155ee1ccaa1f0f6e8319def3451a1fe54dec501c8e4bee622bae2b2d98ac993731e0a5cce + languageName: node + linkType: hard + "lodash.camelcase@npm:^4.3.0": version: 4.3.0 resolution: "lodash.camelcase@npm:4.3.0" @@ -27178,13 +26616,6 @@ __metadata: languageName: node linkType: hard -"lodash.clonedeep@npm:^4.5.0": - version: 4.5.0 - resolution: "lodash.clonedeep@npm:4.5.0" - checksum: 10/957ed243f84ba6791d4992d5c222ffffca339a3b79dbe81d2eaf0c90504160b500641c5a0f56e27630030b18b8e971ea10b44f928a977d5ced3c8948841b555f - languageName: node - linkType: hard - "lodash.defaults@npm:^4.2.0": version: 4.2.0 resolution: "lodash.defaults@npm:4.2.0" @@ -27283,7 +26714,7 @@ __metadata: languageName: node linkType: hard -"lodash.merge@npm:4.6.2, lodash.merge@npm:^4.6.2": +"lodash.merge@npm:^4.6.2": version: 4.6.2 resolution: "lodash.merge@npm:4.6.2" checksum: 10/d0ea2dd0097e6201be083865d50c3fb54fbfbdb247d9cc5950e086c991f448b7ab0cdab0d57eacccb43473d3f2acd21e134db39f22dac2d6c9ba6bf26978e3d6 @@ -28608,15 +28039,6 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:10.1.2": - version: 10.1.2 - resolution: "minimatch@npm:10.1.2" - dependencies: - "@isaacs/brace-expansion": "npm:^5.0.1" - checksum: 10/6f0ef975463739207144e411bdd54f7205ce38770b162fa3bc4c9be4987a16cb20d0962a82f26c2372598cfba90faa97b327239d303b529b774f17681c163b46 - languageName: node - linkType: hard - "minimatch@npm:3.1.2": version: 3.1.2 resolution: "minimatch@npm:3.1.2" @@ -28626,12 +28048,12 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^10.0.3, minimatch@npm:^10.1.1, minimatch@npm:^10.2.1, minimatch@npm:^10.2.2, minimatch@npm:^9.0.3 || ^10.0.1": - version: 10.2.4 - resolution: "minimatch@npm:10.2.4" +"minimatch@npm:^10.0.3, minimatch@npm:^10.1.1, minimatch@npm:^10.2.1, minimatch@npm:^10.2.2, minimatch@npm:^10.2.4, minimatch@npm:^9.0.3 || ^10.0.1": + version: 10.2.5 + resolution: "minimatch@npm:10.2.5" dependencies: - brace-expansion: "npm:^5.0.2" - checksum: 10/aea4874e521c55bb60744685bbffe3d152e5460f84efac3ea936e6bbe2ceba7deb93345fec3f9bb17f7b6946776073a64d40ae32bf5f298ad690308121068a1f + brace-expansion: "npm:^5.0.5" + checksum: 10/19e87a931aff60ee7b9d80f39f817b8bfc54f61f8356ee3549fbf636dbccacacfec8d803eac73293955c4527cd085247dfc064bce4a5e349f8f3b85e2bf5da0f languageName: node linkType: hard @@ -29051,7 +28473,7 @@ __metadata: languageName: node linkType: hard -"nanoid@npm:^5.0.1, nanoid@npm:^5.1.6": +"nanoid@npm:^5.1.6": version: 5.1.6 resolution: "nanoid@npm:5.1.6" bin: @@ -29362,10 +28784,10 @@ __metadata: languageName: node linkType: hard -"nodemailer@npm:^7.0.11": - version: 7.0.13 - resolution: "nodemailer@npm:7.0.13" - checksum: 10/4ae37bfb6896f1555de150c1098a7c1b28eb1da240a4c7adede81a8af0dcc184298cfbf804930599c076ea574428e0c18c6b28f0dc2072cebb30c1da5fd0b688 +"nodemailer@npm:^8.0.4": + version: 8.0.4 + resolution: "nodemailer@npm:8.0.4" + checksum: 10/b396d52b1faf3ee73a6eca1b7febdb8ea16df50d6c41efbf0f1e500e6a42a73cea5e0db9e52d64b34f509ac3dbf4c10fe828de6cb3f66899b493be38b8abe926 languageName: node linkType: hard @@ -29817,31 +29239,60 @@ __metadata: languageName: node linkType: hard -"oxlint@npm:^1.47.0": - version: 1.47.0 - resolution: "oxlint@npm:1.47.0" +"oxlint-tsgolint@npm:^0.19.0": + version: 0.19.0 + resolution: "oxlint-tsgolint@npm:0.19.0" dependencies: - "@oxlint/binding-android-arm-eabi": "npm:1.47.0" - "@oxlint/binding-android-arm64": "npm:1.47.0" - "@oxlint/binding-darwin-arm64": "npm:1.47.0" - "@oxlint/binding-darwin-x64": "npm:1.47.0" - "@oxlint/binding-freebsd-x64": "npm:1.47.0" - "@oxlint/binding-linux-arm-gnueabihf": "npm:1.47.0" - "@oxlint/binding-linux-arm-musleabihf": "npm:1.47.0" - "@oxlint/binding-linux-arm64-gnu": "npm:1.47.0" - "@oxlint/binding-linux-arm64-musl": "npm:1.47.0" - "@oxlint/binding-linux-ppc64-gnu": "npm:1.47.0" - "@oxlint/binding-linux-riscv64-gnu": "npm:1.47.0" - "@oxlint/binding-linux-riscv64-musl": "npm:1.47.0" - "@oxlint/binding-linux-s390x-gnu": "npm:1.47.0" - "@oxlint/binding-linux-x64-gnu": "npm:1.47.0" - "@oxlint/binding-linux-x64-musl": "npm:1.47.0" - "@oxlint/binding-openharmony-arm64": "npm:1.47.0" - "@oxlint/binding-win32-arm64-msvc": "npm:1.47.0" - "@oxlint/binding-win32-ia32-msvc": "npm:1.47.0" - "@oxlint/binding-win32-x64-msvc": "npm:1.47.0" + "@oxlint-tsgolint/darwin-arm64": "npm:0.19.0" + "@oxlint-tsgolint/darwin-x64": "npm:0.19.0" + "@oxlint-tsgolint/linux-arm64": "npm:0.19.0" + "@oxlint-tsgolint/linux-x64": "npm:0.19.0" + "@oxlint-tsgolint/win32-arm64": "npm:0.19.0" + "@oxlint-tsgolint/win32-x64": "npm:0.19.0" + dependenciesMeta: + "@oxlint-tsgolint/darwin-arm64": + optional: true + "@oxlint-tsgolint/darwin-x64": + optional: true + "@oxlint-tsgolint/linux-arm64": + optional: true + "@oxlint-tsgolint/linux-x64": + optional: true + "@oxlint-tsgolint/win32-arm64": + optional: true + "@oxlint-tsgolint/win32-x64": + optional: true + bin: + tsgolint: bin/tsgolint.js + checksum: 10/b87f9650029b8f4b2cd9ca4042a7807965453f0cae7842d56d5ad2068d6d15475f726dad94d6d7ac31224bec0bfdf28a60765c16f620ebd0602974bbe5c5b5dd + languageName: node + linkType: hard + +"oxlint@npm:1.58.0": + version: 1.58.0 + resolution: "oxlint@npm:1.58.0" + dependencies: + "@oxlint/binding-android-arm-eabi": "npm:1.58.0" + "@oxlint/binding-android-arm64": "npm:1.58.0" + "@oxlint/binding-darwin-arm64": "npm:1.58.0" + "@oxlint/binding-darwin-x64": "npm:1.58.0" + "@oxlint/binding-freebsd-x64": "npm:1.58.0" + "@oxlint/binding-linux-arm-gnueabihf": "npm:1.58.0" + "@oxlint/binding-linux-arm-musleabihf": "npm:1.58.0" + "@oxlint/binding-linux-arm64-gnu": "npm:1.58.0" + "@oxlint/binding-linux-arm64-musl": "npm:1.58.0" + "@oxlint/binding-linux-ppc64-gnu": "npm:1.58.0" + "@oxlint/binding-linux-riscv64-gnu": "npm:1.58.0" + "@oxlint/binding-linux-riscv64-musl": "npm:1.58.0" + "@oxlint/binding-linux-s390x-gnu": "npm:1.58.0" + "@oxlint/binding-linux-x64-gnu": "npm:1.58.0" + "@oxlint/binding-linux-x64-musl": "npm:1.58.0" + "@oxlint/binding-openharmony-arm64": "npm:1.58.0" + "@oxlint/binding-win32-arm64-msvc": "npm:1.58.0" + "@oxlint/binding-win32-ia32-msvc": "npm:1.58.0" + "@oxlint/binding-win32-x64-msvc": "npm:1.58.0" peerDependencies: - oxlint-tsgolint: ">=0.11.2" + oxlint-tsgolint: ">=0.18.0" dependenciesMeta: "@oxlint/binding-android-arm-eabi": optional: true @@ -29886,7 +29337,7 @@ __metadata: optional: true bin: oxlint: bin/oxlint - checksum: 10/c3bd7f11ecf52f8682ca026578a7e96f343b7b08a910978049cf835d0b033ff7624ad66c71fdcb93b55eb0d14a626ed037e77478d8f083bc415018290a6ccf7a + checksum: 10/2b2395b2fcda6fc79d367fe57620e18440d0c7b97774a3c6d548e41f9f484e500e9173957e58c007579a2dd8fce609b657154495602b621a2c810531cc37ad4a languageName: node linkType: hard @@ -30189,6 +29640,15 @@ __metadata: languageName: node linkType: hard +"parse5-htmlparser2-tree-adapter@npm:^6.0.1": + version: 6.0.1 + resolution: "parse5-htmlparser2-tree-adapter@npm:6.0.1" + dependencies: + parse5: "npm:^6.0.1" + checksum: 10/3400a2cd1ad450b2fe148544154f86ea53d3ed6b6eab56c78bb43b9629d3dfe9f580dffd75bbf32be134ffef645b68081fc764bf75c210f236ab9c5c8c38c252 + languageName: node + linkType: hard + "parse5-htmlparser2-tree-adapter@npm:^7.0.0": version: 7.1.0 resolution: "parse5-htmlparser2-tree-adapter@npm:7.1.0" @@ -30199,6 +29659,13 @@ __metadata: languageName: node linkType: hard +"parse5@npm:^6.0.1": + version: 6.0.1 + resolution: "parse5@npm:6.0.1" + checksum: 10/dfb110581f62bd1425725a7c784ae022a24669bd0efc24b58c71fc731c4d868193e2ebd85b74cde2dbb965e4dcf07059b1e651adbec1b3b5267531bd132fdb75 + languageName: node + linkType: hard + "parse5@npm:^7.0.0": version: 7.3.0 resolution: "parse5@npm:7.3.0" @@ -30661,13 +30128,6 @@ __metadata: languageName: node linkType: hard -"pluralize@npm:^8.0.0": - version: 8.0.0 - resolution: "pluralize@npm:8.0.0" - checksum: 10/17877fdfdb7ddb3639ce257ad73a7c51a30a966091e40f56ea9f2f545b5727ce548d4928f8cb3ce38e7dc0c5150407d318af6a4ed0ea5265d378473b4c2c61ec - languageName: node - linkType: hard - "png-js@npm:^1.0.0": version: 1.0.0 resolution: "png-js@npm:1.0.0" @@ -32261,15 +31721,6 @@ __metadata: languageName: node linkType: hard -"regexp-tree@npm:^0.1.27": - version: 0.1.27 - resolution: "regexp-tree@npm:0.1.27" - bin: - regexp-tree: bin/regexp-tree - checksum: 10/08c70c8adb5a0d4af1061bf9eb05d3b6e1d948c433d6b7008e4b5eb12a49429c2d6ca8e9106339a432aa0d07bd6e1bccc638d8f4ab0d045f3adad22182b300a2 - languageName: node - linkType: hard - "registry-auth-token@npm:3.3.2": version: 3.3.2 resolution: "registry-auth-token@npm:3.3.2" @@ -32289,17 +31740,6 @@ __metadata: languageName: node linkType: hard -"regjsparser@npm:^0.13.0": - version: 0.13.0 - resolution: "regjsparser@npm:0.13.0" - dependencies: - jsesc: "npm:~3.1.0" - bin: - regjsparser: bin/parser - checksum: 10/eeaabd3454f59394cbb3bfeb15fd789e638040f37d0bee9071a9b0b85524ddc52b5f7aaaaa4847304c36fa37429e53d109c4dbf6b878cb5ffa4f4198c1042fb7 - languageName: node - linkType: hard - "rehype-parse@npm:^9.0.0": version: 9.0.1 resolution: "rehype-parse@npm:9.0.1" @@ -32941,7 +32381,7 @@ __metadata: languageName: node linkType: hard -"scslre@npm:0.3.0": +"scslre@npm:^0.3.0": version: 0.3.0 resolution: "scslre@npm:0.3.0" dependencies: @@ -33008,15 +32448,6 @@ __metadata: languageName: node linkType: hard -"semver@npm:7.7.4, semver@npm:^7.0.0, semver@npm:^7.1.1, semver@npm:^7.1.3, semver@npm:^7.2.1, semver@npm:^7.3.2, semver@npm:^7.3.5, semver@npm:^7.3.8, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0, semver@npm:^7.6.3, semver@npm:^7.7.1, semver@npm:^7.7.2, semver@npm:^7.7.3, semver@npm:~7.7.3": - version: 7.7.4 - resolution: "semver@npm:7.7.4" - bin: - semver: bin/semver.js - checksum: 10/26bdc6d58b29528f4142d29afb8526bc335f4fc04c4a10f2b98b217f277a031c66736bf82d3d3bb354a2f6a3ae50f18fd62b053c4ac3f294a3d10a61f5075b75 - languageName: node - linkType: hard - "semver@npm:^6.2.0, semver@npm:^6.3.1": version: 6.3.1 resolution: "semver@npm:6.3.1" @@ -33026,6 +32457,15 @@ __metadata: languageName: node linkType: hard +"semver@npm:^7.0.0, semver@npm:^7.1.1, semver@npm:^7.1.3, semver@npm:^7.2.1, semver@npm:^7.3.2, semver@npm:^7.3.5, semver@npm:^7.3.8, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0, semver@npm:^7.6.3, semver@npm:^7.7.1, semver@npm:^7.7.2, semver@npm:^7.7.3, semver@npm:^7.7.4, semver@npm:~7.7.3": + version: 7.7.4 + resolution: "semver@npm:7.7.4" + bin: + semver: bin/semver.js + checksum: 10/26bdc6d58b29528f4142d29afb8526bc335f4fc04c4a10f2b98b217f277a031c66736bf82d3d3bb354a2f6a3ae50f18fd62b053c4ac3f294a3d10a61f5075b75 + languageName: node + linkType: hard + "send@npm:^1.1.0, send@npm:^1.2.0": version: 1.2.0 resolution: "send@npm:1.2.0" @@ -33177,17 +32617,6 @@ __metadata: languageName: node linkType: hard -"ses@npm:^1.14.0": - version: 1.14.0 - resolution: "ses@npm:1.14.0" - dependencies: - "@endo/cache-map": "npm:^1.1.0" - "@endo/env-options": "npm:^1.1.11" - "@endo/immutable-arraybuffer": "npm:^1.1.2" - checksum: 10/bee10b958938fb3d153ea8f1b4514f8ddb390dc7533fe9cfc382dcc046bebd5fca02d80836bfb8f98e94609ffbe3580a0bb65428eb7e39d523315eacdc052300 - languageName: node - linkType: hard - "set-cookie-parser@npm:^2.6.0, set-cookie-parser@npm:^2.7.1": version: 2.7.1 resolution: "set-cookie-parser@npm:2.7.1" @@ -33229,17 +32658,6 @@ __metadata: languageName: node linkType: hard -"shadcn-ui@npm:^0.9.5": - version: 0.9.5 - resolution: "shadcn-ui@npm:0.9.5" - dependencies: - chalk: "npm:^5.4.1" - bin: - shadcn-ui: dist/index.js - checksum: 10/86427dd6f3ddc70bfa9217e39b8afdd65220c7ee41911ef0afd06b9f1b6ce00d9cb5056210070854177561a3fa08ac90d3f2d8621812628345e3a25774538398 - languageName: node - linkType: hard - "shebang-command@npm:^1.2.0": version: 1.2.0 resolution: "shebang-command@npm:1.2.0" @@ -34027,7 +33445,7 @@ __metadata: languageName: node linkType: hard -"strip-indent@npm:^4.0.0, strip-indent@npm:^4.1.1": +"strip-indent@npm:^4.0.0": version: 4.1.1 resolution: "strip-indent@npm:4.1.1" checksum: 10/d322bfdc59855006791a4aebe2a66e0892eab7004a5c064d74b86a0c6ecff2818974c9a5eda54b16d8af6aadbc90a6c02635ffcbec11ab33dd8979b1a6346fc0 @@ -35642,15 +35060,6 @@ __metadata: languageName: node linkType: hard -"uuid@npm:*, uuid@npm:^13.0.0": - version: 13.0.0 - resolution: "uuid@npm:13.0.0" - bin: - uuid: dist-node/bin/uuid - checksum: 10/2742b24d1e00257e60612572e4d28679423469998cafbaf1fe9f1482e3edf9c40754b31bfdb3d08d71b29239f227a304588f75210b3b48f2609f0673f1feccef - languageName: node - linkType: hard - "uuid@npm:^11.1.0": version: 11.1.0 resolution: "uuid@npm:11.1.0" @@ -35660,6 +35069,15 @@ __metadata: languageName: node linkType: hard +"uuid@npm:^13.0.0": + version: 13.0.0 + resolution: "uuid@npm:13.0.0" + bin: + uuid: dist-node/bin/uuid + checksum: 10/2742b24d1e00257e60612572e4d28679423469998cafbaf1fe9f1482e3edf9c40754b31bfdb3d08d71b29239f227a304588f75210b3b48f2609f0673f1feccef + languageName: node + linkType: hard + "uuid@npm:^8.3.2": version: 8.3.2 resolution: "uuid@npm:8.3.2" @@ -36067,16 +35485,6 @@ __metadata: languageName: node linkType: hard -"webm-muxer@npm:^5.0.3": - version: 5.1.2 - resolution: "webm-muxer@npm:5.1.2" - dependencies: - "@types/dom-webcodecs": "npm:^0.1.4" - "@types/wicg-file-system-access": "npm:^2020.9.5" - checksum: 10/7b6f01a5ddae45516bd5099cd59ef3681e5990f7e96194bf3a8148a7fe560181f54fd1fd4ab9ee5058e141908bdfd349419ff24831a7503274278d0de84459ad - languageName: node - linkType: hard - "webpack-dev-middleware@npm:^7.4.2": version: 7.4.2 resolution: "webpack-dev-middleware@npm:7.4.2" @@ -36499,17 +35907,6 @@ __metadata: languageName: node linkType: hard -"y-indexeddb@npm:^9.0.12": - version: 9.0.12 - resolution: "y-indexeddb@npm:9.0.12" - dependencies: - lib0: "npm:^0.2.74" - peerDependencies: - yjs: ^13.0.0 - checksum: 10/6468ebdcb2936a5fe10e4fb57cbe2d90260c44b63c6ecf6a26cc3652d21bd3be58bb76dfb56dbe56dd71b320042bfd3663274217b89300f2f0db92611fc9e7c6 - languageName: node - linkType: hard - "y-protocols@npm:^1.0.6": version: 1.0.6 resolution: "y-protocols@npm:1.0.6" @@ -36521,15 +35918,6 @@ __metadata: languageName: node linkType: hard -"y-provider@npm:0.10.0-canary.9": - version: 0.10.0-canary.9 - resolution: "y-provider@npm:0.10.0-canary.9" - peerDependencies: - yjs: ^13 - checksum: 10/ab27477a2a67c6f743d811d95352720b2e3471cff6c566d74782c28c11e457a38d9b522055fa13527c77018b6d2c5735ead81e87c018b44a6c58f2a005f7cb26 - languageName: node - linkType: hard - "y18n@npm:^5.0.5": version: 5.0.8 resolution: "y18n@npm:5.0.8"