refactor: remove unused deps (#8259)

auto removed by https://knip.dev/features/auto-fix
This commit is contained in:
EYHN 2024-09-14 14:52:50 +00:00
parent 58025729b0
commit ed63602f01
No known key found for this signature in database
GPG Key ID: 46C9E26A75AB276C
31 changed files with 151 additions and 3672 deletions

View File

@ -53,17 +53,12 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@affine-test/kit": "workspace:*",
"@affine/cli": "workspace:*", "@affine/cli": "workspace:*",
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@faker-js/faker": "^9.0.0", "@faker-js/faker": "^9.0.0",
"@istanbuljs/schema": "^0.1.3", "@istanbuljs/schema": "^0.1.3",
"@magic-works/i18n-codegen": "^0.6.0", "@magic-works/i18n-codegen": "^0.6.0",
"@nx/vite": "^19.5.3",
"@playwright/test": "=1.47.0", "@playwright/test": "=1.47.0",
"@taplo/cli": "^0.7.0", "@taplo/cli": "^0.7.0",
"@testing-library/react": "^16.0.0",
"@toeverything/infra": "workspace:*", "@toeverything/infra": "workspace:*",
"@types/affine__env": "workspace:*", "@types/affine__env": "workspace:*",
"@types/eslint": "^9.0.0", "@types/eslint": "^9.0.0",
@ -71,8 +66,6 @@
"@typescript-eslint/eslint-plugin": "^7.6.0", "@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0", "@typescript-eslint/parser": "^7.6.0",
"@vanilla-extract/vite-plugin": "^4.0.7", "@vanilla-extract/vite-plugin": "^4.0.7",
"@vanilla-extract/webpack-plugin": "^2.3.7",
"@vitejs/plugin-react-swc": "^3.6.0",
"@vitest/coverage-istanbul": "2.1.0", "@vitest/coverage-istanbul": "2.1.0",
"@vitest/ui": "2.1.0", "@vitest/ui": "2.1.0",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
@ -87,29 +80,19 @@
"eslint-plugin-sonarjs": "^0.25.1", "eslint-plugin-sonarjs": "^0.25.1",
"eslint-plugin-unicorn": "^52.0.0", "eslint-plugin-unicorn": "^52.0.0",
"eslint-plugin-unused-imports": "^3.1.0", "eslint-plugin-unused-imports": "^3.1.0",
"eslint-plugin-vue": "^9.24.1",
"fake-indexeddb": "6.0.0",
"happy-dom": "^15.0.0", "happy-dom": "^15.0.0",
"husky": "^9.0.11", "husky": "^9.0.11",
"lint-staged": "^15.2.2", "lint-staged": "^15.2.2",
"msw": "^2.3.0", "msw": "^2.3.0",
"nanoid": "^5.0.7",
"nx": "^19.0.0", "nx": "^19.0.0",
"nyc": "^17.0.0",
"oxlint": "0.9.5", "oxlint": "0.9.5",
"prettier": "^3.3.3", "prettier": "^3.3.3",
"semver": "^7.6.0", "semver": "^7.6.0",
"serve": "^14.2.1", "serve": "^14.2.1",
"string-width": "^7.1.0",
"ts-node": "^10.9.2",
"typescript": "^5.4.5", "typescript": "^5.4.5",
"unplugin-swc": "^1.4.5", "unplugin-swc": "^1.4.5",
"vite": "^5.2.8", "vite": "^5.2.8",
"vite-plugin-istanbul": "^6.0.0", "vitest": "2.1.0"
"vite-plugin-static-copy": "^1.0.2",
"vitest": "2.1.0",
"vitest-fetch-mock": "^0.3.0",
"vitest-mock-extended": "^2.0.0"
}, },
"packageManager": "yarn@4.4.1", "packageManager": "yarn@4.4.1",
"resolutions": { "resolutions": {

View File

@ -25,7 +25,6 @@
"@google-cloud/opentelemetry-cloud-monitoring-exporter": "^0.19.0", "@google-cloud/opentelemetry-cloud-monitoring-exporter": "^0.19.0",
"@google-cloud/opentelemetry-cloud-trace-exporter": "^2.2.0", "@google-cloud/opentelemetry-cloud-trace-exporter": "^2.2.0",
"@google-cloud/opentelemetry-resource-util": "^2.2.0", "@google-cloud/opentelemetry-resource-util": "^2.2.0",
"@keyv/redis": "^3.0.0",
"@nestjs/apollo": "^12.1.0", "@nestjs/apollo": "^12.1.0",
"@nestjs/common": "^10.3.7", "@nestjs/common": "^10.3.7",
"@nestjs/core": "^10.3.7", "@nestjs/core": "^10.3.7",
@ -38,7 +37,6 @@
"@nestjs/websockets": "^10.3.7", "@nestjs/websockets": "^10.3.7",
"@node-rs/argon2": "^1.8.0", "@node-rs/argon2": "^1.8.0",
"@node-rs/crc32": "^1.10.0", "@node-rs/crc32": "^1.10.0",
"@node-rs/jsonwebtoken": "^0.5.2",
"@opentelemetry/api": "^1.9.0", "@opentelemetry/api": "^1.9.0",
"@opentelemetry/core": "^1.25.0", "@opentelemetry/core": "^1.25.0",
"@opentelemetry/exporter-prometheus": "^0.53.0", "@opentelemetry/exporter-prometheus": "^0.53.0",
@ -60,13 +58,11 @@
"@socket.io/redis-adapter": "^8.3.0", "@socket.io/redis-adapter": "^8.3.0",
"cookie-parser": "^1.4.6", "cookie-parser": "^1.4.6",
"dotenv": "^16.4.5", "dotenv": "^16.4.5",
"dotenv-cli": "^7.4.1",
"express": "^4.19.2", "express": "^4.19.2",
"fast-xml-parser": "^4.4.0", "fast-xml-parser": "^4.4.0",
"get-stream": "^9.0.1", "get-stream": "^9.0.1",
"graphql": "^16.8.1", "graphql": "^16.8.1",
"graphql-scalars": "^1.23.0", "graphql-scalars": "^1.23.0",
"graphql-type-json": "^0.3.2",
"graphql-upload": "^16.0.2", "graphql-upload": "^16.0.2",
"html-validate": "^8.20.1", "html-validate": "^8.20.1",
"ioredis": "^5.3.2", "ioredis": "^5.3.2",
@ -81,30 +77,23 @@
"nodemailer": "^6.9.13", "nodemailer": "^6.9.13",
"on-headers": "^1.0.2", "on-headers": "^1.0.2",
"openai": "^4.33.0", "openai": "^4.33.0",
"parse-duration": "^1.1.0",
"piscina": "^4.5.1", "piscina": "^4.5.1",
"pretty-time": "^1.1.0",
"prisma": "^5.12.1", "prisma": "^5.12.1",
"prom-client": "^15.1.1",
"reflect-metadata": "^0.2.2", "reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"semver": "^7.6.0",
"ses": "^1.4.1", "ses": "^1.4.1",
"socket.io": "^4.7.5", "socket.io": "^4.7.5",
"stripe": "^16.0.0", "stripe": "^16.0.0",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"typescript": "^5.4.5", "typescript": "^5.4.5",
"ws": "^8.16.0",
"yjs": "patch:yjs@npm%3A13.6.18#~/.yarn/patches/yjs-npm-13.6.18-ad0d5f7c43.patch", "yjs": "patch:yjs@npm%3A13.6.18#~/.yarn/patches/yjs-npm-13.6.18-ad0d5f7c43.patch",
"zod": "^3.22.4" "zod": "^3.22.4"
}, },
"devDependencies": { "devDependencies": {
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@affine/server-native": "workspace:*", "@affine/server-native": "workspace:*",
"@napi-rs/image": "^1.9.1",
"@nestjs/testing": "^10.3.7", "@nestjs/testing": "^10.3.7",
"@types/cookie-parser": "^1.4.7", "@types/cookie-parser": "^1.4.7",
"@types/engine.io": "^3.1.10",
"@types/express": "^4.17.21", "@types/express": "^4.17.21",
"@types/graphql-upload": "^16.0.7", "@types/graphql-upload": "^16.0.7",
"@types/keyv": "^4.2.0", "@types/keyv": "^4.2.0",
@ -114,10 +103,8 @@
"@types/node": "^20.12.7", "@types/node": "^20.12.7",
"@types/nodemailer": "^6.4.14", "@types/nodemailer": "^6.4.14",
"@types/on-headers": "^1.0.3", "@types/on-headers": "^1.0.3",
"@types/pretty-time": "^1.1.5",
"@types/sinon": "^17.0.3", "@types/sinon": "^17.0.3",
"@types/supertest": "^6.0.2", "@types/supertest": "^6.0.2",
"@types/ws": "^8.5.10",
"ava": "^6.1.2", "ava": "^6.1.2",
"c8": "^10.0.0", "c8": "^10.0.0",
"nodemon": "^3.1.0", "nodemon": "^3.1.0",

View File

@ -5,8 +5,6 @@
"devDependencies": { "devDependencies": {
"@blocksuite/global": "0.17.10", "@blocksuite/global": "0.17.10",
"@blocksuite/store": "0.17.10", "@blocksuite/store": "0.17.10",
"react": "18.3.1",
"react-dom": "18.3.1",
"vitest": "2.1.0" "vitest": "2.1.0"
}, },
"exports": { "exports": {
@ -23,7 +21,6 @@
"@blocksuite/global": "0.11.0-nightly-202401020419-752a5b8" "@blocksuite/global": "0.11.0-nightly-202401020419-752a5b8"
}, },
"dependencies": { "dependencies": {
"lit": "^3.1.2",
"zod": "^3.22.4" "zod": "^3.22.4"
}, },
"version": "0.16.0" "version": "0.16.0"

View File

@ -34,15 +34,11 @@
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*", "@affine-test/fixtures": "workspace:*",
"@affine/templates": "workspace:*", "@affine/templates": "workspace:*",
"@blocksuite/block-std": "0.17.10",
"@blocksuite/presets": "0.17.10", "@blocksuite/presets": "0.17.10",
"@testing-library/react": "^16.0.0", "@testing-library/react": "^16.0.0",
"async-call-rpc": "^6.4.0",
"fake-indexeddb": "^6.0.0", "fake-indexeddb": "^6.0.0",
"react": "^18.2.0", "react": "^18.2.0",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"vite": "^5.2.8",
"vite-plugin-dts": "4.2.1",
"vitest": "2.1.0" "vitest": "2.1.0"
}, },
"peerDependencies": { "peerDependencies": {

View File

@ -5,7 +5,6 @@
"dependencies": { "dependencies": {
"@affine/core": "workspace:*", "@affine/core": "workspace:*",
"@affine/graphql": "workspace:*", "@affine/graphql": "workspace:*",
"@hookform/resolvers": "^3.6.0",
"@radix-ui/react-accordion": "^1.2.0", "@radix-ui/react-accordion": "^1.2.0",
"@radix-ui/react-alert-dialog": "^1.1.1", "@radix-ui/react-alert-dialog": "^1.1.1",
"@radix-ui/react-aspect-ratio": "^1.1.0", "@radix-ui/react-aspect-ratio": "^1.1.0",
@ -36,7 +35,6 @@
"@sentry/react": "^8.9.0", "@sentry/react": "^8.9.0",
"@tanstack/react-table": "^8.19.3", "@tanstack/react-table": "^8.19.3",
"cmdk": "^1.0.0", "cmdk": "^1.0.0",
"date-fns": "^3.6.0",
"embla-carousel-react": "^8.1.5", "embla-carousel-react": "^8.1.5",
"input-otp": "^1.2.4", "input-otp": "^1.2.4",
"lucide-react": "^0.441.0", "lucide-react": "^0.441.0",

View File

@ -26,13 +26,9 @@
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@affine/component": "workspace:*", "@affine/component": "workspace:*",
"@affine/core": "workspace:*", "@affine/core": "workspace:*",
"@affine/env": "workspace:*",
"@affine/i18n": "workspace:*", "@affine/i18n": "workspace:*",
"@affine/native": "workspace:*", "@affine/native": "workspace:*",
"@blocksuite/block-std": "0.17.10", "@blocksuite/global": "0.17.10",
"@blocksuite/blocks": "0.17.10",
"@blocksuite/presets": "0.17.10",
"@blocksuite/store": "0.17.10",
"@electron-forge/cli": "^7.3.0", "@electron-forge/cli": "^7.3.0",
"@electron-forge/core": "^7.3.0", "@electron-forge/core": "^7.3.0",
"@electron-forge/core-utils": "^7.3.0", "@electron-forge/core-utils": "^7.3.0",
@ -59,7 +55,6 @@
"esbuild": "^0.23.0", "esbuild": "^0.23.0",
"fs-extra": "^11.2.0", "fs-extra": "^11.2.0",
"glob": "^11.0.0", "glob": "^11.0.0",
"jotai": "^2.8.0",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"nanoid": "^5.0.7", "nanoid": "^5.0.7",
"react": "^18.2.0", "react": "^18.2.0",
@ -69,10 +64,8 @@
"semver": "^7.6.0", "semver": "^7.6.0",
"tree-kill": "^1.2.2", "tree-kill": "^1.2.2",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"undici": "^6.12.0",
"uuid": "^10.0.0", "uuid": "^10.0.0",
"vitest": "2.1.0", "vitest": "2.1.0",
"which": "^4.0.0",
"zod": "^3.22.4" "zod": "^3.22.4"
}, },
"dependencies": { "dependencies": {

View File

@ -35,7 +35,7 @@ export const showTabContextMenu = async (tabId: string, viewIndex: number) => {
{ {
label: 'Refresh tab', label: 'Refresh tab',
click: () => { click: () => {
reloadView().catch(logger.error); reloadView().catch(err => logger.error(err));
}, },
}, },
{ {
@ -45,7 +45,7 @@ export const showTabContextMenu = async (tabId: string, viewIndex: number) => {
basename: tabMeta.basename, basename: tabMeta.basename,
view: tabMeta.views, view: tabMeta.views,
show: false, show: false,
}).catch(logger.error); }).catch(err => logger.error(err));
}, },
}, },
@ -71,7 +71,7 @@ export const showTabContextMenu = async (tabId: string, viewIndex: number) => {
{ {
label: 'Close tab', label: 'Close tab',
click: () => { click: () => {
closeTab(tabId).catch(logger.error); closeTab(tabId).catch(err => logger.error(err));
}, },
}, },
{ {

View File

@ -359,7 +359,7 @@ export class WebContentViewsManager {
return; return;
} }
this.showTab(activeWorkbenchKey).catch(logger.error); this.showTab(activeWorkbenchKey).catch(error => logger.error(error));
this.patchTabViewsMeta({ this.patchTabViewsMeta({
workbenches, workbenches,
@ -470,7 +470,7 @@ export class WebContentViewsManager {
url.hash = viewMeta.path?.hash ?? ''; url.hash = viewMeta.path?.hash ?? '';
url.search = viewMeta.path?.search ?? ''; url.search = viewMeta.path?.search ?? '';
logger.info(`loading tab ${id} at ${url.href}`); logger.info(`loading tab ${id} at ${url.href}`);
view.webContents.loadURL(url.href).catch(logger.error); view.webContents.loadURL(url.href).catch(err => logger.error(err));
} }
return view; return view;
}; };
@ -593,7 +593,7 @@ export class WebContentViewsManager {
this.updateWorkbenchMeta(tabId, { this.updateWorkbenchMeta(tabId, {
views: tabMeta.views.toSpliced(viewIndex, 1), views: tabMeta.views.toSpliced(viewIndex, 1),
}); });
addTab(newTabMeta).catch(logger.error); addTab(newTabMeta).catch(err => logger.error(err));
}; };
openInSplitView = (payload: OpenInSplitViewAction['payload']) => { openInSplitView = (payload: OpenInSplitViewAction['payload']) => {
@ -668,7 +668,9 @@ export class WebContentViewsManager {
this.mainWindow?.contentView.addChildView(view, idx); this.mainWindow?.contentView.addChildView(view, idx);
}); });
handleWebContentsResize(activeView?.webContents).catch(logger.error); handleWebContentsResize(activeView?.webContents).catch(err =>
logger.error(err)
);
} }
}; };
@ -680,7 +682,7 @@ export class WebContentViewsManager {
const disposables: Unsubscribable[] = []; const disposables: Unsubscribable[] = [];
disposables.push( disposables.push(
windowReadyToShow$.subscribe(w => { windowReadyToShow$.subscribe(w => {
handleWebContentsResize().catch(logger.error); handleWebContentsResize().catch(err => logger.error(err));
const screenSizeChangeEvents = ['resize', 'maximize', 'unmaximize']; const screenSizeChangeEvents = ['resize', 'maximize', 'unmaximize'];
const onResize = () => { const onResize = () => {
if (this.activeWorkbenchView) { if (this.activeWorkbenchView) {
@ -695,7 +697,7 @@ export class WebContentViewsManager {
}); });
// add shell view // add shell view
this.createAndAddView('shell').catch(logger.error); this.createAndAddView('shell').catch(err => logger.error(err));
(async () => { (async () => {
const updateCookies = () => { const updateCookies = () => {
session.defaultSession.cookies session.defaultSession.cookies
@ -721,7 +723,7 @@ export class WebContentViewsManager {
const defaultTabId = this.activeWorkbenchId; const defaultTabId = this.activeWorkbenchId;
if (defaultTabId) await this.showTab(defaultTabId); if (defaultTabId) await this.showTab(defaultTabId);
} }
})().catch(logger.error); })().catch(err => logger.error(err));
}) })
); );
@ -813,7 +815,7 @@ export class WebContentViewsManager {
}); });
}); });
view.webContents.loadURL(shellViewUrl).catch(logger.error); view.webContents.loadURL(shellViewUrl).catch(err => logger.error(err));
if (isDev) { if (isDev) {
view.webContents.openDevTools({ view.webContents.openDevTools({
mode: 'detach', mode: 'detach',
@ -1032,7 +1034,9 @@ export const switchTab = (n: number) => {
n === 9 ? -1 : n - 1 n === 9 ? -1 : n - 1
); );
if (item) { if (item) {
WebContentViewsManager.instance.showTab(item.id).catch(logger.error); WebContentViewsManager.instance
.showTab(item.id)
.catch(err => logger.error(err));
} }
}; };
@ -1044,7 +1048,9 @@ export const switchToNextTab = () => {
activeIndex === length - 1 ? 0 : activeIndex + 1 activeIndex === length - 1 ? 0 : activeIndex + 1
); );
if (item) { if (item) {
WebContentViewsManager.instance.showTab(item.id).catch(logger.error); WebContentViewsManager.instance
.showTab(item.id)
.catch(err => logger.error(err));
} }
}; };
@ -1056,6 +1062,8 @@ export const switchToPreviousTab = () => {
activeIndex === 0 ? length - 1 : activeIndex - 1 activeIndex === 0 ? length - 1 : activeIndex - 1
); );
if (item) { if (item) {
WebContentViewsManager.instance.showTab(item.id).catch(logger.error); WebContentViewsManager.instance
.showTab(item.id)
.catch(err => logger.error(err));
} }
}; };

View File

@ -12,32 +12,17 @@
"dependencies": { "dependencies": {
"@affine/component": "workspace:*", "@affine/component": "workspace:*",
"@affine/core": "workspace:*", "@affine/core": "workspace:*",
"@affine/env": "workspace:*",
"@affine/graphql": "workspace:*",
"@affine/i18n": "workspace:*", "@affine/i18n": "workspace:*",
"@affine/track": "workspace:*",
"@blocksuite/blocks": "0.17.10", "@blocksuite/blocks": "0.17.10",
"@blocksuite/icons": "^2.1.66", "@blocksuite/icons": "^2.1.67",
"@radix-ui/react-collapsible": "^1.0.3",
"@sentry/react": "^8.0.0", "@sentry/react": "^8.0.0",
"@toeverything/theme": "^1.0.9",
"clsx": "^2.1.1",
"jotai": "^2.9.3",
"jotai-effect": "^1.0.2",
"jotai-scope": "^0.7.2",
"lodash-es": "^4.17.21",
"next-themes": "^0.3.0",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-router-dom": "^6.26.1" "react-router-dom": "^6.26.1"
}, },
"devDependencies": { "devDependencies": {
"@affine/cli": "workspace:*",
"@types/lodash-es": "^4.17.12",
"@types/react": "^18.2.75", "@types/react": "^18.2.75",
"@types/react-dom": "^18.2.24", "@types/react-dom": "^18.2.24",
"@vanilla-extract/css": "^1.15.5",
"@vanilla-extract/dynamic": "^2.1.2",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"typescript": "^5.4.5" "typescript": "^5.4.5"
} }

View File

@ -12,18 +12,14 @@
"dependencies": { "dependencies": {
"@affine/component": "workspace:*", "@affine/component": "workspace:*",
"@affine/core": "workspace:*", "@affine/core": "workspace:*",
"@affine/electron-api": "workspace:*",
"@affine/env": "workspace:*",
"@affine/i18n": "workspace:*", "@affine/i18n": "workspace:*",
"@emotion/react": "^11.11.4", "@emotion/react": "^11.11.4",
"@sentry/react": "^8.0.0", "@sentry/react": "^8.0.0",
"jotai": "^2.8.0",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-router-dom": "^6.22.3" "react-router-dom": "^6.22.3"
}, },
"devDependencies": { "devDependencies": {
"@affine/cli": "workspace:*",
"@types/react": "^18.2.75", "@types/react": "^18.2.75",
"@types/react-dom": "^18.2.24", "@types/react-dom": "^18.2.24",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",

View File

@ -15,7 +15,7 @@
"peerDependencies": { "peerDependencies": {
"@blocksuite/blocks": "*", "@blocksuite/blocks": "*",
"@blocksuite/global": "*", "@blocksuite/global": "*",
"@blocksuite/icons": "2.1.66", "@blocksuite/icons": "2.1.67",
"@blocksuite/presets": "*", "@blocksuite/presets": "*",
"@blocksuite/store": "*" "@blocksuite/store": "*"
}, },
@ -27,17 +27,9 @@
"@affine/i18n": "workspace:*", "@affine/i18n": "workspace:*",
"@atlaskit/pragmatic-drag-and-drop": "^1.2.1", "@atlaskit/pragmatic-drag-and-drop": "^1.2.1",
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.3", "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.3",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^7.0.0",
"@dnd-kit/sortable": "^8.0.0",
"@emotion/cache": "^11.11.0",
"@emotion/react": "^11.11.4", "@emotion/react": "^11.11.4",
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.11.5", "@emotion/styled": "^11.11.5",
"@lit/react": "^1.0.4",
"@popperjs/core": "^2.11.8",
"@radix-ui/react-avatar": "^1.0.4", "@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-collapsible": "^1.0.3",
"@radix-ui/react-dialog": "^1.1.1", "@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.1", "@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-popover": "^1.0.7", "@radix-ui/react-popover": "^1.0.7",
@ -47,19 +39,14 @@
"@radix-ui/react-slot": "^1.1.0", "@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tabs": "^1.1.0", "@radix-ui/react-tabs": "^1.1.0",
"@radix-ui/react-toast": "^1.1.5", "@radix-ui/react-toast": "^1.1.5",
"@radix-ui/react-toolbar": "^1.0.4",
"@radix-ui/react-tooltip": "^1.0.7", "@radix-ui/react-tooltip": "^1.0.7",
"@radix-ui/react-visually-hidden": "^1.1.0", "@radix-ui/react-visually-hidden": "^1.1.0",
"@toeverything/theme": "^1.0.9", "@toeverything/theme": "^1.0.9",
"@vanilla-extract/dynamic": "^2.1.0", "@vanilla-extract/dynamic": "^2.1.0",
"bytes": "^3.1.2",
"check-password-strength": "^2.0.10", "check-password-strength": "^2.0.10",
"clsx": "^2.1.0", "clsx": "^2.1.0",
"dayjs": "^1.11.10", "dayjs": "^1.11.10",
"foxact": "^0.2.33",
"jotai": "^2.8.0", "jotai": "^2.8.0",
"jotai-effect": "^1.0.0",
"jotai-scope": "^0.7.0",
"lit": "^3.1.2", "lit": "^3.1.2",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"lottie-react": "^2.4.0", "lottie-react": "^2.4.0",
@ -68,42 +55,27 @@
"next-themes": "^0.3.0", "next-themes": "^0.3.0",
"react": "18.3.1", "react": "18.3.1",
"react-dom": "18.3.1", "react-dom": "18.3.1",
"react-error-boundary": "^4.0.13",
"react-is": "^18.2.0",
"react-paginate": "^8.2.0", "react-paginate": "^8.2.0",
"react-router-dom": "^6.22.3", "react-router-dom": "^6.22.3",
"react-transition-state": "^2.1.1", "react-transition-state": "^2.1.1",
"react-virtuoso": "^4.7.8",
"rxjs": "^7.8.1",
"sonner": "^1.4.41", "sonner": "^1.4.41",
"swr": "^2.2.5", "swr": "^2.2.5",
"uuid": "^10.0.0",
"zod": "^3.22.4" "zod": "^3.22.4"
}, },
"devDependencies": { "devDependencies": {
"@blocksuite/block-std": "0.17.10",
"@blocksuite/blocks": "0.17.10",
"@blocksuite/global": "0.17.10", "@blocksuite/global": "0.17.10",
"@blocksuite/icons": "2.1.67", "@blocksuite/icons": "2.1.67",
"@blocksuite/presets": "0.17.10",
"@blocksuite/store": "0.17.10",
"@chromatic-com/storybook": "^2.0.0", "@chromatic-com/storybook": "^2.0.0",
"@storybook/addon-actions": "^8.2.9",
"@storybook/addon-essentials": "^8.2.9", "@storybook/addon-essentials": "^8.2.9",
"@storybook/addon-interactions": "^8.2.9", "@storybook/addon-interactions": "^8.2.9",
"@storybook/addon-links": "^8.2.9", "@storybook/addon-links": "^8.2.9",
"@storybook/addon-mdx-gfm": "^8.2.9", "@storybook/addon-mdx-gfm": "^8.2.9",
"@storybook/addon-storysource": "^8.2.9",
"@storybook/blocks": "^8.2.9",
"@storybook/react": "^8.2.9", "@storybook/react": "^8.2.9",
"@storybook/react-vite": "^8.2.9", "@storybook/react-vite": "^8.2.9",
"@testing-library/react": "^16.0.0", "@testing-library/react": "^16.0.0",
"@types/bytes": "^3.1.4",
"@types/react": "^18.2.75", "@types/react": "^18.2.75",
"@types/react-dnd": "^3.0.2",
"@types/react-dom": "^18.2.24", "@types/react-dom": "^18.2.24",
"@vanilla-extract/css": "^1.14.2", "@vanilla-extract/css": "^1.14.2",
"fake-indexeddb": "^6.0.0",
"storybook": "^8.2.9", "storybook": "^8.2.9",
"typescript": "^5.4.5", "typescript": "^5.4.5",
"unplugin-swc": "^1.5.1", "unplugin-swc": "^1.5.1",

View File

@ -8,7 +8,6 @@
"./bootstrap": "./src/bootstrap/index.ts" "./bootstrap": "./src/bootstrap/index.ts"
}, },
"dependencies": { "dependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine/component": "workspace:*", "@affine/component": "workspace:*",
"@affine/debug": "workspace:*", "@affine/debug": "workspace:*",
"@affine/electron-api": "workspace:*", "@affine/electron-api": "workspace:*",
@ -27,12 +26,9 @@
"@dnd-kit/core": "^6.1.0", "@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^7.0.0", "@dnd-kit/modifiers": "^7.0.0",
"@dnd-kit/sortable": "^8.0.0", "@dnd-kit/sortable": "^8.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@dotlottie/player-component": "^2.7.12", "@dotlottie/player-component": "^2.7.12",
"@emotion/cache": "^11.11.0", "@emotion/cache": "^11.11.0",
"@emotion/react": "^11.11.4", "@emotion/react": "^11.11.4",
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.11.5",
"@floating-ui/dom": "^1.6.5", "@floating-ui/dom": "^1.6.5",
"@juggle/resize-observer": "^3.4.0", "@juggle/resize-observer": "^3.4.0",
"@marsidev/react-turnstile": "^1.0.0", "@marsidev/react-turnstile": "^1.0.0",
@ -40,26 +36,19 @@
"@radix-ui/react-dialog": "^1.0.5", "@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-popover": "^1.0.7", "@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-scroll-area": "^1.0.5", "@radix-ui/react-scroll-area": "^1.0.5",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-toolbar": "^1.0.4", "@radix-ui/react-toolbar": "^1.0.4",
"@react-hookz/web": "^24.0.4",
"@sentry/integrations": "^7.109.0",
"@sentry/react": "^8.0.0", "@sentry/react": "^8.0.0",
"@sgtpooki/file-type": "^1.0.1",
"@toeverything/theme": "^1.0.9", "@toeverything/theme": "^1.0.9",
"@vanilla-extract/dynamic": "^2.1.0", "@vanilla-extract/dynamic": "^2.1.0",
"animejs": "^3.2.2", "animejs": "^3.2.2",
"async-call-rpc": "^6.4.2",
"bytes": "^3.1.2", "bytes": "^3.1.2",
"clsx": "^2.1.0", "clsx": "^2.1.0",
"cmdk": "^1.0.0", "cmdk": "^1.0.0",
"core-js": "^3.36.1", "core-js": "^3.36.1",
"css-spring": "^4.1.0",
"dayjs": "^1.11.10", "dayjs": "^1.11.10",
"file-type": "^19.1.0", "file-type": "^19.1.0",
"foxact": "^0.2.33", "foxact": "^0.2.33",
"fractional-indexing": "^3.2.0", "fractional-indexing": "^3.2.0",
"fractional-indexing-jittered": "^0.9.1",
"fuse.js": "^7.0.0", "fuse.js": "^7.0.0",
"graphemer": "^1.4.0", "graphemer": "^1.4.0",
"graphql": "^16.8.1", "graphql": "^16.8.1",
@ -70,22 +59,17 @@
"intl-segmenter-polyfill-rs": "^0.1.7", "intl-segmenter-polyfill-rs": "^0.1.7",
"is-svg": "^5.0.0", "is-svg": "^5.0.0",
"jotai": "^2.8.0", "jotai": "^2.8.0",
"jotai-devtools": "^0.10.0",
"jotai-effect": "^1.0.0",
"jotai-scope": "^0.7.0", "jotai-scope": "^0.7.0",
"lib0": "^0.2.95", "lib0": "^0.2.95",
"lit": "^3.1.3", "lit": "^3.1.3",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"lottie-react": "^2.4.0", "lottie-react": "^2.4.0",
"lottie-web": "^5.12.2",
"mixpanel-browser": "^2.49.0",
"nanoid": "^5.0.7", "nanoid": "^5.0.7",
"next-themes": "^0.3.0", "next-themes": "^0.3.0",
"query-string": "^9.1.0", "query-string": "^9.1.0",
"react": "18.3.1", "react": "18.3.1",
"react-dom": "18.3.1", "react-dom": "18.3.1",
"react-error-boundary": "^4.0.13", "react-error-boundary": "^4.0.13",
"react-is": "18.3.1",
"react-router-dom": "^6.22.3", "react-router-dom": "^6.22.3",
"react-transition-state": "^2.1.1", "react-transition-state": "^2.1.1",
"react-virtuoso": "^4.7.8", "react-virtuoso": "^4.7.8",
@ -94,30 +78,19 @@
"socket.io-client": "^4.7.5", "socket.io-client": "^4.7.5",
"swr": "2.2.5", "swr": "2.2.5",
"tinykeys": "patch:tinykeys@npm%3A2.1.0#~/.yarn/patches/tinykeys-npm-2.1.0-819feeaed0.patch", "tinykeys": "patch:tinykeys@npm%3A2.1.0#~/.yarn/patches/tinykeys-npm-2.1.0-819feeaed0.patch",
"uuid": "^10.0.0",
"valtio": "^2.0.0",
"y-protocols": "^1.0.6", "y-protocols": "^1.0.6",
"yjs": "patch:yjs@npm%3A13.6.18#~/.yarn/patches/yjs-npm-13.6.18-ad0d5f7c43.patch", "yjs": "patch:yjs@npm%3A13.6.18#~/.yarn/patches/yjs-npm-13.6.18-ad0d5f7c43.patch",
"zod": "^3.22.4" "zod": "^3.22.4"
}, },
"devDependencies": { "devDependencies": {
"@perfsee/webpack": "^1.12.2",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
"@sentry/webpack-plugin": "^2.16.1",
"@swc/core": "^1.4.13",
"@testing-library/react": "^16.0.0", "@testing-library/react": "^16.0.0",
"@types/animejs": "^3.1.12", "@types/animejs": "^3.1.12",
"@types/bytes": "^3.1.4", "@types/bytes": "^3.1.4",
"@types/image-blob-reduce": "^4.1.4", "@types/image-blob-reduce": "^4.1.4",
"@types/lodash-es": "^4.17.12", "@types/lodash-es": "^4.17.12",
"@types/mixpanel-browser": "^2.49.0",
"@types/uuid": "^10.0.0",
"@vanilla-extract/css": "^1.14.2", "@vanilla-extract/css": "^1.14.2",
"express": "^4.19.2",
"fake-indexeddb": "^6.0.0", "fake-indexeddb": "^6.0.0",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"mime-types": "^2.1.35",
"react-refresh": "^0.14.0",
"vitest": "2.1.0" "vitest": "2.1.0"
} }
} }

View File

@ -6,9 +6,5 @@
"main": "./src/index.ts", "main": "./src/index.ts",
"exports": { "exports": {
".": "./src/index.ts" ".": "./src/index.ts"
},
"devDependencies": {
"@toeverything/infra": "workspace:*",
"electron": "^32.0.0"
} }
} }

View File

@ -26,8 +26,7 @@
"@affine/env": "workspace:*", "@affine/env": "workspace:*",
"graphql": "^16.8.1", "graphql": "^16.8.1",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21"
"nanoid": "^5.0.7"
}, },
"installConfig": { "installConfig": {
"hoistingLimits": "workspaces" "hoistingLimits": "workspaces"

View File

@ -37,15 +37,10 @@
"devDependencies": { "devDependencies": {
"@napi-rs/cli": "3.0.0-alpha.62", "@napi-rs/cli": "3.0.0-alpha.62",
"@types/node": "^20.12.7", "@types/node": "^20.12.7",
"@types/uuid": "^10.0.0",
"ava": "^6.1.2", "ava": "^6.1.2",
"cross-env": "^7.0.3",
"nx": "^19.0.0", "nx": "^19.0.0",
"nx-cloud": "^19.0.0",
"rxjs": "^7.8.1",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"typescript": "^5.4.5", "typescript": "^5.4.5"
"uuid": "^10.0.0"
}, },
"engines": { "engines": {
"node": ">= 10" "node": ">= 10"

View File

@ -14,7 +14,6 @@
"./build-edgeless": "./build-edgeless.mjs" "./build-edgeless": "./build-edgeless.mjs"
}, },
"devDependencies": { "devDependencies": {
"glob": "^11.0.0",
"jszip": "^3.10.1" "jszip": "^3.10.1"
} }
} }

View File

@ -12,6 +12,7 @@
"mixpanel-browser": "^2.49.0" "mixpanel-browser": "^2.49.0"
}, },
"devDependencies": { "devDependencies": {
"@types/mixpanel-browser": "^2.49.0",
"vitest": "^2.0.5" "vitest": "^2.0.5"
} }
} }

View File

@ -5,7 +5,6 @@
"e2e": "yarn playwright test" "e2e": "yarn playwright test"
}, },
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@playwright/test": "=1.47.0" "@playwright/test": "=1.47.0"
}, },

View File

@ -5,11 +5,8 @@
"e2e": "yarn playwright test" "e2e": "yarn playwright test"
}, },
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@playwright/test": "=1.47.0", "@playwright/test": "=1.47.0"
"@types/fs-extra": "^11.0.4",
"fs-extra": "^11.2.0"
}, },
"version": "0.16.0" "version": "0.16.0"
} }

View File

@ -5,7 +5,6 @@
"e2e": "yarn playwright test" "e2e": "yarn playwright test"
}, },
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@affine/electron-api": "workspace:*", "@affine/electron-api": "workspace:*",
"@playwright/test": "=1.47.0", "@playwright/test": "=1.47.0",

View File

@ -7,7 +7,6 @@
"e2e": "yarn playwright test" "e2e": "yarn playwright test"
}, },
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@playwright/test": "=1.47.0", "@playwright/test": "=1.47.0",
"express": "^4.19.2", "express": "^4.19.2",

View File

@ -7,7 +7,6 @@
"e2e": "yarn playwright test" "e2e": "yarn playwright test"
}, },
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@playwright/test": "=1.47.0", "@playwright/test": "=1.47.0",
"express": "^4.19.2", "express": "^4.19.2",

View File

@ -7,7 +7,6 @@
"e2e": "yarn playwright test" "e2e": "yarn playwright test"
}, },
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@playwright/test": "=1.47.0", "@playwright/test": "=1.47.0",
"express": "^4.19.2", "express": "^4.19.2",

View File

@ -7,7 +7,6 @@
"e2e": "yarn playwright test" "e2e": "yarn playwright test"
}, },
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@playwright/test": "=1.47.0", "@playwright/test": "=1.47.0",
"express": "^4.19.2", "express": "^4.19.2",

View File

@ -5,7 +5,6 @@
"e2e": "yarn playwright test" "e2e": "yarn playwright test"
}, },
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@playwright/test": "=1.47.0" "@playwright/test": "=1.47.0"
}, },

View File

@ -5,7 +5,6 @@
"e2e": "yarn playwright test" "e2e": "yarn playwright test"
}, },
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@playwright/test": "=1.47.0" "@playwright/test": "=1.47.0"
}, },

View File

@ -5,7 +5,6 @@
"e2e": "yarn playwright test" "e2e": "yarn playwright test"
}, },
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@playwright/test": "=1.47.0" "@playwright/test": "=1.47.0"
}, },

View File

@ -10,7 +10,6 @@
"./e2e-enhance/*": "./e2e-enhance/*.ts" "./e2e-enhance/*": "./e2e-enhance/*.ts"
}, },
"devDependencies": { "devDependencies": {
"@affine/electron-api": "workspace:*",
"@node-rs/argon2": "^1.8.0", "@node-rs/argon2": "^1.8.0",
"@playwright/test": "=1.47.0", "@playwright/test": "=1.47.0",
"express": "^4.19.2", "express": "^4.19.2",

View File

@ -8,7 +8,6 @@
"dependencies": { "dependencies": {
"@napi-rs/simple-git": "^0.1.18", "@napi-rs/simple-git": "^0.1.18",
"@slack/web-api": "^7.3.4", "@slack/web-api": "^7.3.4",
"chalk": "^5.3.0",
"changelogithub": "^0.13.9", "changelogithub": "^0.13.9",
"jsx-slack": "^6.1.1", "jsx-slack": "^6.1.1",
"marked": "^14.0.0" "marked": "^14.0.0"

View File

@ -28,17 +28,15 @@
"mini-css-extract-plugin": "^2.8.1", "mini-css-extract-plugin": "^2.8.1",
"postcss": "^8.4.38", "postcss": "^8.4.38",
"postcss-loader": "^8.1.1", "postcss-loader": "^8.1.1",
"raw-loader": "^4.0.2", "react-refresh": "^0.14.2",
"source-map-loader": "^5.0.0", "source-map-loader": "^5.0.0",
"style-loader": "^4.0.0", "style-loader": "^4.0.0",
"swc-loader": "^0.2.6", "swc-loader": "^0.2.6",
"tailwindcss": "^3.4.4", "tailwindcss": "^3.4.4",
"terser-webpack-plugin": "^5.3.10", "terser-webpack-plugin": "^5.3.10",
"thread-loader": "^4.0.2",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"vite": "^5.2.8", "vite": "^5.2.8",
"webpack": "^5.91.0", "webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4", "webpack-dev-server": "^5.0.4",
"webpack-merge": "^6.0.0" "webpack-merge": "^6.0.0"
}, },

3623
yarn.lock

File diff suppressed because it is too large Load Diff