mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 18:46:19 +08:00
feat: init @affine/copilot (#2511)
This commit is contained in:
Vendored
+3
-1
@@ -5,7 +5,7 @@
|
||||
"module": "./src/index.ts",
|
||||
"devDependencies": {
|
||||
"@blocksuite/global": "0.0.0-20230530061436-d0702cc0-nightly",
|
||||
"next": "^13.4.2",
|
||||
"next": "=13.4.2",
|
||||
"react": "18.3.0-canary-16d053d59-20230506",
|
||||
"react-dom": "18.3.0-canary-16d053d59-20230506",
|
||||
"zod": "^3.21.4"
|
||||
@@ -20,6 +20,8 @@
|
||||
"@blocksuite/global": "0.0.0-20230409084303-221991d4-nightly"
|
||||
},
|
||||
"dependencies": {
|
||||
"@affine/copilot": "workspace:*",
|
||||
"@toeverything/plugin-infra": "workspace:*",
|
||||
"lit": "^2.7.4"
|
||||
},
|
||||
"version": "0.7.0-canary.2"
|
||||
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
import { config, getEnvironment, setupGlobal } from './config';
|
||||
|
||||
if (config.enablePlugin && !getEnvironment().isServer) {
|
||||
import('@affine/copilot');
|
||||
}
|
||||
|
||||
setupGlobal();
|
||||
Vendored
+1
@@ -12,6 +12,7 @@ export const buildFlagsSchema = z.object({
|
||||
* filter feature in the all pages.
|
||||
*/
|
||||
enableAllPageFilter: z.boolean(),
|
||||
enablePlugin: z.boolean(),
|
||||
enableImagePreviewModal: z.boolean(),
|
||||
enableTestProperties: z.boolean(),
|
||||
enableBroadCastChannelProvider: z.boolean(),
|
||||
|
||||
Reference in New Issue
Block a user