feat: isolated plugin system (#2742)

(cherry picked from commit f2ac2e5b84)
This commit is contained in:
Himself65
2023-06-09 16:43:46 +08:00
committed by himself65
parent c2c2ccbf5d
commit b79a63ce0a
51 changed files with 489 additions and 209 deletions

View File

@@ -34,6 +34,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@affine/bookmark-block@workspace:plugins/bookmark-block"
dependencies:
"@affine/component": "workspace:*"
"@toeverything/plugin-infra": "workspace:*"
foxact: ^0.2.7
link-preview-js: ^3.0.4
@@ -86,6 +87,7 @@ __metadata:
"@radix-ui/react-radio-group": ^1.1.3
"@radix-ui/react-toast": ^1.1.4
"@toeverything/hooks": "workspace:*"
"@toeverything/plugin-infra": "workspace:*"
"@toeverything/theme": ^0.6.1
"@types/react": ^18.2.6
"@types/react-datepicker": ^4.11.2
@@ -121,6 +123,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@affine/copilot@workspace:plugins/copilot"
dependencies:
"@affine/component": "workspace:*"
"@toeverything/plugin-infra": "workspace:*"
"@types/marked": ^5.0.0
"@types/react": ^18.2.6
@@ -162,8 +165,10 @@ __metadata:
"@electron-forge/shared-types": ^6.1.1
"@electron/remote": 2.0.9
"@toeverything/infra": "workspace:*"
"@toeverything/plugin-infra": "workspace:*"
"@types/fs-extra": ^11.0.1
"@types/uuid": ^9.0.1
async-call-rpc: ^6.3.1
cheerio: ^1.0.0-rc.12
cross-env: 7.0.3
electron: =25.0.1
@@ -441,6 +446,7 @@ __metadata:
"@affine/debug": "workspace:*"
"@affine/env": "workspace:*"
"@toeverything/hooks": "workspace:*"
"@toeverything/plugin-infra": "workspace:*"
"@toeverything/y-indexeddb": "workspace:*"
"@types/ws": ^8.5.4
firebase: ^9.22.1
@@ -9080,15 +9086,14 @@ __metadata:
version: 0.0.0-use.local
resolution: "@toeverything/plugin-infra@workspace:packages/plugin-infra"
dependencies:
"@affine/component": "workspace:*"
"@affine/env": "workspace:*"
"@affine/workspace": "workspace:*"
"@blocksuite/blocks": 0.0.0-20230607055421-9b20fcaf-nightly
"@blocksuite/editor": 0.0.0-20230607055421-9b20fcaf-nightly
"@blocksuite/global": 0.0.0-20230607055421-9b20fcaf-nightly
"@blocksuite/lit": 0.0.0-20230607055421-9b20fcaf-nightly
"@blocksuite/store": 0.0.0-20230607055421-9b20fcaf-nightly
jotai: ^2.1.1
vite: ^4.3.9
vite-plugin-dts: ^2.3.0
peerDependencies:
"@blocksuite/blocks": "*"
"@blocksuite/editor": "*"
@@ -11332,6 +11337,13 @@ __metadata:
languageName: node
linkType: hard
"async-call-rpc@npm:^6.3.1":
version: 6.3.1
resolution: "async-call-rpc@npm:6.3.1"
checksum: 024e1bab4752b3aa66145977d534e6dc4c316e1d746c11a6a5076b30b16d42fa0ce4793be5a330319644f1335b01cbe13ee4ac28454cded37b1c803608400934
languageName: node
linkType: hard
"async-limiter@npm:~1.0.0":
version: 1.0.1
resolution: "async-limiter@npm:1.0.1"