@huanban/rulego-editor-core 1.3.18 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +153 -2
- package/assets/images/discovery-dark.svg +1 -0
- package/assets/images/discovery.svg +1 -0
- package/assets/images/nacos-dark.svg +1 -0
- package/assets/images/nacos.svg +1 -0
- package/assets/theme-icons/ant-blue/discovery-dark.svg +1 -0
- package/assets/theme-icons/ant-blue/discovery.svg +1 -0
- package/assets/theme-icons/ant-blue/nacos-dark.svg +1 -0
- package/assets/theme-icons/ant-blue/nacos.svg +1 -0
- package/assets/theme-icons/apple/discovery-dark.svg +1 -0
- package/assets/theme-icons/apple/discovery.svg +1 -0
- package/assets/theme-icons/apple/nacos-dark.svg +1 -0
- package/assets/theme-icons/apple/nacos.svg +1 -0
- package/assets/theme-icons/colorful/discovery-dark.svg +1 -0
- package/assets/theme-icons/colorful/discovery.svg +1 -0
- package/assets/theme-icons/colorful/nacos-dark.svg +1 -0
- package/assets/theme-icons/colorful/nacos.svg +1 -0
- package/assets/theme-icons/dark/discovery-dark.svg +1 -0
- package/assets/theme-icons/dark/discovery.svg +1 -0
- package/assets/theme-icons/dark/nacos-dark.svg +1 -0
- package/assets/theme-icons/dark/nacos.svg +1 -0
- package/assets/theme-icons/default/discovery-dark.svg +1 -0
- package/assets/theme-icons/default/discovery.svg +1 -0
- package/assets/theme-icons/default/nacos-dark.svg +1 -0
- package/assets/theme-icons/default/nacos.svg +1 -0
- package/assets/theme-icons/elegant/discovery-dark.svg +1 -0
- package/assets/theme-icons/elegant/discovery.svg +1 -0
- package/assets/theme-icons/elegant/nacos-dark.svg +1 -0
- package/assets/theme-icons/elegant/nacos.svg +1 -0
- package/assets/theme-icons/github/discovery-dark.svg +1 -0
- package/assets/theme-icons/github/discovery.svg +1 -0
- package/assets/theme-icons/github/nacos-dark.svg +1 -0
- package/assets/theme-icons/github/nacos.svg +1 -0
- package/assets/theme-icons/icon-theme-manifest.json +30 -14
- package/assets/theme-icons/icon-theme-overview.svg +1599 -1287
- package/assets/theme-icons/material/discovery-dark.svg +1 -0
- package/assets/theme-icons/material/discovery.svg +1 -0
- package/assets/theme-icons/material/nacos-dark.svg +1 -0
- package/assets/theme-icons/material/nacos.svg +1 -0
- package/assets/theme-icons/modern/discovery-dark.svg +1 -0
- package/assets/theme-icons/modern/discovery.svg +1 -0
- package/assets/theme-icons/modern/nacos-dark.svg +1 -0
- package/assets/theme-icons/modern/nacos.svg +1 -0
- package/assets/theme-icons/nature/discovery-dark.svg +1 -0
- package/assets/theme-icons/nature/discovery.svg +1 -0
- package/assets/theme-icons/nature/nacos-dark.svg +1 -0
- package/assets/theme-icons/nature/nacos.svg +1 -0
- package/assets/theme-icons/tailwind/discovery-dark.svg +1 -0
- package/assets/theme-icons/tailwind/discovery.svg +1 -0
- package/assets/theme-icons/tailwind/nacos-dark.svg +1 -0
- package/assets/theme-icons/tailwind/nacos.svg +1 -0
- package/assets/theme-icons/tech/discovery-dark.svg +1 -0
- package/assets/theme-icons/tech/discovery.svg +1 -0
- package/assets/theme-icons/tech/nacos-dark.svg +1 -0
- package/assets/theme-icons/tech/nacos.svg +1 -0
- package/assets/theme-icons/vscode/discovery-dark.svg +1 -0
- package/assets/theme-icons/vscode/discovery.svg +1 -0
- package/assets/theme-icons/vscode/nacos-dark.svg +1 -0
- package/assets/theme-icons/vscode/nacos.svg +1 -0
- package/dist/ai/copilot-markdown.d.ts +40 -0
- package/dist/ai/copilot-transport.d.ts +39 -0
- package/dist/api/AIManager.d.ts +5 -4
- package/dist/api/ApiProvider.d.ts +17 -69
- package/dist/api/ComponentCatalogCache.d.ts +27 -0
- package/dist/api/DebugSocketClient.d.ts +18 -25
- package/dist/api/RuleChainAPI.d.ts +24 -145
- package/dist/api/StreamParser.d.ts +0 -10
- package/dist/api/index.d.ts +4 -14
- package/dist/api/response-utils.d.ts +4 -22
- package/dist/api/types.d.ts +44 -179
- package/dist/chunks/editor-core-code-editor-CRki2wA_.js +512 -0
- package/dist/chunks/editor-core-default-components-BjF65lar.js +9448 -0
- package/dist/chunks/editor-core-dialogs-CkFLaC8Q.js +17176 -0
- package/dist/chunks/editor-core-icons-BqeFofNA.js +668 -0
- package/dist/chunks/editor-core-json-diff-RHsPeX-w.js +199 -0
- package/dist/chunks/editor-core-locales-i6o28vm2.js +4159 -0
- package/dist/chunks/editor-core-node-patches-BJTT3TuX.js +8060 -0
- package/dist/chunks/editor-core-node-views-BOaPVdmN.js +1288 -0
- package/dist/chunks/editor-core-property-drawers-lLsBIoCa.js +8035 -0
- package/dist/chunks/editor-core-standalone-CHXk3ukc.js +11270 -0
- package/dist/chunks/editor-core-styles-C1TbLgCK.js +8841 -0
- package/dist/chunks/vendor-logicflow-core-runtime-Cp6IBEjB.js +217 -0
- package/dist/chunks/vendor-logicflow-shared-C7YynLDn.js +4 -0
- package/dist/chunks/xlsx-BopDBbWb.js +24176 -0
- package/dist/core/ActionRegistry.d.ts +47 -0
- package/dist/core/AutoLayout.d.ts +1 -48
- package/dist/core/ComponentDocService.d.ts +28 -0
- package/dist/core/ComponentRegistry.d.ts +1 -125
- package/dist/core/DataAdapter.d.ts +4 -89
- package/dist/core/DiagnosticService.d.ts +15 -0
- package/dist/core/EditorCore.d.ts +22 -212
- package/dist/core/EditorWorkspace.d.ts +111 -0
- package/dist/core/EventBus.d.ts +0 -86
- package/dist/core/ExplorerTreeStore.d.ts +43 -0
- package/dist/core/FieldCapabilityRegistry.d.ts +16 -0
- package/dist/core/FieldChangeRegistry.d.ts +48 -0
- package/dist/core/HistoryManager.d.ts +0 -123
- package/dist/core/I18nManager.d.ts +0 -120
- package/dist/core/Optimizations.d.ts +0 -14
- package/dist/core/OptionSourceRegistry.d.ts +38 -0
- package/dist/core/RuleChainChatManager.d.ts +0 -37
- package/dist/core/RuleChainValidator.d.ts +0 -79
- package/dist/core/StateStore.d.ts +4 -140
- package/dist/core/ThemeManager.d.ts +0 -141
- package/dist/core/ValidationEngine.d.ts +0 -103
- package/dist/core/component-palette.d.ts +20 -0
- package/dist/core/component-payload.d.ts +0 -9
- package/dist/core/connection-status.d.ts +77 -0
- package/dist/core/context-menu-position.d.ts +27 -0
- package/dist/core/cron-schedule.d.ts +85 -0
- package/dist/core/debug-panel.d.ts +6 -0
- package/dist/core/editor-capabilities.d.ts +95 -0
- package/dist/core/editor-dock.d.ts +100 -0
- package/dist/core/editor-panel.d.ts +68 -0
- package/dist/core/explorer-tree.d.ts +27 -0
- package/dist/core/field-protocol.d.ts +32 -0
- package/dist/core/foundation-tokens.d.ts +38 -0
- package/dist/core/graph-operations.d.ts +34 -0
- package/dist/core/hover-tools.d.ts +26 -0
- package/dist/core/index.d.ts +68 -16
- package/dist/core/infer-run-input.d.ts +11 -0
- package/dist/core/key-value-editor.d.ts +6 -0
- package/dist/core/overlay-layers.d.ts +28 -0
- package/dist/core/recent-components.d.ts +51 -0
- package/dist/core/run-guard.d.ts +7 -0
- package/dist/core/runtime-field-dictionary.d.ts +68 -0
- package/dist/core/runtime-limits.d.ts +0 -5
- package/dist/core/save-conflict.d.ts +4 -0
- package/dist/core/server-status.d.ts +34 -0
- package/dist/core/simple-array.d.ts +4 -0
- package/dist/core/table-protocol.d.ts +36 -0
- package/dist/core/table-spreadsheet.d.ts +3 -0
- package/dist/core/test-cases.d.ts +54 -0
- package/dist/core/toolbar-icons.d.ts +4 -0
- package/dist/core/topology-rules.d.ts +17 -0
- package/dist/core/virtual-window.d.ts +20 -0
- package/dist/core/workspace-tab-actions.d.ts +13 -0
- package/dist/defaults/components.d.ts +0 -9
- package/dist/defaults/index.d.ts +0 -15
- package/dist/defaults/locale-en-US.d.ts +0 -24
- package/dist/defaults/locale-zh-CN.d.ts +0 -39
- package/dist/defaults/official-component-fallbacks.d.ts +0 -8
- package/dist/extensions/ClipboardExtension.d.ts +0 -23
- package/dist/extensions/KeyboardExtension.d.ts +0 -17
- package/dist/extensions/MenuExtension.d.ts +0 -23
- package/dist/iconRegistry.d.ts +0 -22
- package/dist/index.cjs +11320 -0
- package/dist/index.d.ts +25 -47
- package/dist/index.esm.js +1123 -99614
- package/dist/index.umd.js +3380 -1471
- package/dist/models/BaseNodeModel.d.ts +0 -32
- package/dist/models/index.d.ts +0 -1
- package/dist/nodes/AgentOrchestrationNode.d.ts +0 -24
- package/dist/nodes/GroupNode.d.ts +0 -38
- package/dist/nodes/HeadlessHtmlNode.d.ts +0 -16
- package/dist/nodes/SwitchNode.d.ts +0 -22
- package/dist/nodes/UnknownNodeModel.d.ts +0 -19
- package/dist/standalone/HuanbanRulegoEditor.d.ts +202 -401
- package/dist/standalone/ai-model-policy.d.ts +0 -1
- package/dist/standalone/ai-providers.d.ts +0 -1
- package/dist/standalone/auth-fetch.d.ts +2 -46
- package/dist/standalone/browser-assets.d.ts +0 -8
- package/dist/standalone/canvas-view.d.ts +6 -0
- package/dist/standalone/code-editor-language-loaders.d.ts +2 -0
- package/dist/standalone/code-editor-language-loaders.legacy.d.ts +7 -0
- package/dist/standalone/code-editor.d.ts +3 -87
- package/dist/standalone/connection-status-binding.d.ts +8 -0
- package/dist/standalone/custom-nodes.d.ts +0 -26
- package/dist/standalone/drawer-unsaved-guard.d.ts +2 -9
- package/dist/standalone/edge-label-quick-editor.d.ts +2 -0
- package/dist/standalone/editor-actions.d.ts +4 -0
- package/dist/standalone/editor-chain-info.d.ts +5 -38
- package/dist/standalone/editor-context-menu.d.ts +0 -21
- package/dist/standalone/editor-debug-ws.d.ts +37 -145
- package/dist/standalone/editor-delete.d.ts +0 -1
- package/dist/standalone/editor-dialogs.d.ts +16 -66
- package/dist/standalone/editor-events.d.ts +0 -27
- package/dist/standalone/editor-overlays.d.ts +14 -0
- package/dist/standalone/editor-property-drawers.d.ts +13 -71
- package/dist/standalone/editor-route-settings.d.ts +7 -55
- package/dist/standalone/editor-sidebar.d.ts +0 -18
- package/dist/standalone/editor-styles.d.ts +0 -11
- package/dist/standalone/editor-toast.d.ts +1 -2
- package/dist/standalone/editor-toolbar.d.ts +5 -80
- package/dist/standalone/editor-tour.d.ts +7 -0
- package/dist/standalone/editor-trace-overlay.d.ts +0 -5
- package/dist/standalone/full-json-dialog.d.ts +5 -1
- package/dist/standalone/group-node.d.ts +1 -51
- package/dist/standalone/icon-utils.d.ts +0 -20
- package/dist/standalone/index.d.ts +10 -7
- package/dist/standalone/json-diff.d.ts +0 -1
- package/dist/standalone/keyboard-events.d.ts +0 -1
- package/dist/standalone/layout-scheduler.d.ts +0 -6
- package/dist/standalone/lifecycle.d.ts +0 -5
- package/dist/standalone/logger.d.ts +0 -32
- package/dist/standalone/models-dev-catalog.d.ts +0 -1
- package/dist/standalone/node-copy.d.ts +7 -4
- package/dist/standalone/node-definitions.d.ts +0 -63
- package/dist/standalone/node-identity.d.ts +0 -1
- package/dist/standalone/node-theme.d.ts +8 -0
- package/dist/standalone/node-views-data.d.ts +0 -20
- package/dist/standalone/official-node-view-patches.d.ts +1 -14
- package/dist/standalone/outline-style.d.ts +7 -0
- package/dist/standalone/run-history-format.d.ts +0 -1
- package/dist/standalone/security-utils.d.ts +1 -5
- package/dist/standalone/shared-node-manager.d.ts +31 -0
- package/dist/standalone/themes.d.ts +0 -48
- package/dist/tools/tool-editor.d.ts +0 -1
- package/dist/types/component.d.ts +105 -87
- package/dist/types/editor.d.ts +16 -169
- package/dist/types/events.d.ts +30 -107
- package/dist/types/index.d.ts +3 -10
- package/dist/types/rule-chain.d.ts +0 -90
- package/dist/utils/GraphUtils.d.ts +0 -10
- package/dist/utils/helpers.d.ts +0 -80
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/pinyin-search.d.ts +0 -57
- package/dist/utils/relation-utils.d.ts +0 -1
- package/dist/utils/textUtils.d.ts +0 -12
- package/dist/version.d.ts +2 -3
- package/dist/xlsx-qn1xoUuv.cjs +105 -0
- package/package.json +19 -5
- package/vite-chunks.d.ts +11 -0
- package/vite-chunks.mjs +120 -0
- package/dist/index.cjs.js +0 -9515
package/package.json
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huanban/rulego-editor-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "RuleGo 规则链编辑器核心库 - 框架无关的 Headless 编辑器引擎 + API 抽象层 (WorkflowFetcher)",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/index.cjs
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.esm.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"import": "./dist/index.esm.js",
|
|
13
|
-
"require": "./dist/index.cjs
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./vite": {
|
|
16
|
+
"types": "./vite-chunks.d.ts",
|
|
17
|
+
"import": "./vite-chunks.mjs",
|
|
18
|
+
"default": "./vite-chunks.mjs"
|
|
14
19
|
},
|
|
15
20
|
"./assets/images/logo.svg": "./assets/images/logo.svg",
|
|
16
21
|
"./assets/images/favicon.svg": "./assets/images/favicon.svg"
|
|
@@ -21,9 +26,13 @@
|
|
|
21
26
|
"assets/theme-icons/**/*.png",
|
|
22
27
|
"assets/theme-icons/**/*.json",
|
|
23
28
|
"dist/**/*.js",
|
|
29
|
+
"dist/**/*.cjs",
|
|
24
30
|
"dist/**/*.d.ts",
|
|
31
|
+
"vite-chunks.mjs",
|
|
32
|
+
"vite-chunks.d.ts",
|
|
25
33
|
"!dist/test/**",
|
|
26
34
|
"!dist/**/*.js.map",
|
|
35
|
+
"!dist/**/*.cjs.map",
|
|
27
36
|
"!dist/**/*.d.ts.map"
|
|
28
37
|
],
|
|
29
38
|
"publishConfig": {
|
|
@@ -38,7 +47,7 @@
|
|
|
38
47
|
"homepage": "https://github.com/openclaw/rulego-editor#readme",
|
|
39
48
|
"scripts": {
|
|
40
49
|
"dev": "vite build --watch",
|
|
41
|
-
"build": "vite build && tsc --emitDeclarationOnly --outDir dist",
|
|
50
|
+
"build": "vite build && vite build --config vite.legacy.config.ts && tsc --emitDeclarationOnly --outDir dist && node ../../scripts/validate-build-artifacts.mjs --core",
|
|
42
51
|
"test": "vitest run",
|
|
43
52
|
"test:watch": "vitest",
|
|
44
53
|
"lint": "tsc --noEmit",
|
|
@@ -49,7 +58,9 @@
|
|
|
49
58
|
"@codemirror/commands": "^6.10.3",
|
|
50
59
|
"@codemirror/lang-javascript": "^6.2.5",
|
|
51
60
|
"@codemirror/lang-json": "^6.0.2",
|
|
61
|
+
"@codemirror/lang-python": "^6.2.1",
|
|
52
62
|
"@codemirror/language": "^6.12.2",
|
|
63
|
+
"@codemirror/legacy-modes": "^6.5.2",
|
|
53
64
|
"@codemirror/lint": "^6.9.5",
|
|
54
65
|
"@codemirror/search": "^6.6.0",
|
|
55
66
|
"@codemirror/state": "^6.6.0",
|
|
@@ -59,7 +70,10 @@
|
|
|
59
70
|
"@logicflow/core": "2.1.11",
|
|
60
71
|
"@logicflow/extension": "2.1.11",
|
|
61
72
|
"codemirror": "^6.0.2",
|
|
62
|
-
"
|
|
73
|
+
"croner": "^10.0.1",
|
|
74
|
+
"highlight.js": "^11.11.1",
|
|
75
|
+
"jsondiffpatch": "^0.7.6",
|
|
76
|
+
"xlsx": "^0.18.5"
|
|
63
77
|
},
|
|
64
78
|
"devDependencies": {
|
|
65
79
|
"typescript": "^5.4.0",
|
package/vite-chunks.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Stable Rollup/Vite chunk classifier for editor-core source and npm dist files. */
|
|
2
|
+
export declare function huanbanRulegoEditorManualChunks(id: string): string | undefined
|
|
3
|
+
|
|
4
|
+
/** Measured warning boundary for the non-compressible LogicFlow core runtime chunk. */
|
|
5
|
+
export declare const HUANBAN_RULEGO_EDITOR_CHUNK_SIZE_WARNING_LIMIT: number
|
|
6
|
+
|
|
7
|
+
/** Shared runtime packages that should resolve to one host-side module instance. */
|
|
8
|
+
export declare const DEDUPE_PACKAGES: string[]
|
|
9
|
+
|
|
10
|
+
/** Merge the editor defaults with host-specific package names without duplicates. */
|
|
11
|
+
export declare function buildDedupe(extra?: unknown[]): string[]
|
package/vite-chunks.mjs
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
const CORE_CHUNKS = [
|
|
2
|
+
'vendor-logicflow-core-runtime',
|
|
3
|
+
'vendor-logicflow-components',
|
|
4
|
+
'vendor-logicflow-group',
|
|
5
|
+
'vendor-logicflow-tools',
|
|
6
|
+
'vendor-logicflow-shared',
|
|
7
|
+
'vendor-logicflow-reactive',
|
|
8
|
+
'vendor-logicflow-utils',
|
|
9
|
+
'vendor-codemirror',
|
|
10
|
+
'vendor-jsondiff',
|
|
11
|
+
'editor-core-icons',
|
|
12
|
+
'editor-core-default-components',
|
|
13
|
+
'editor-core-locales',
|
|
14
|
+
'editor-core-node-patches',
|
|
15
|
+
'editor-core-node-views',
|
|
16
|
+
'editor-core-dialogs',
|
|
17
|
+
'editor-core-property-drawers',
|
|
18
|
+
'editor-core-code-editor',
|
|
19
|
+
'editor-core-json-diff',
|
|
20
|
+
'editor-core-styles',
|
|
21
|
+
'editor-core-standalone',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Packages that should resolve to one host-side instance when a consumer
|
|
26
|
+
* aliases the editor to source during development. This is intentionally
|
|
27
|
+
* exported from the published `./vite` helper so a file/workspace consumer
|
|
28
|
+
* does not need to duplicate the list in every application.
|
|
29
|
+
*
|
|
30
|
+
* Keep package names (not subpath imports or versions) here. The default list
|
|
31
|
+
* contains runtimes that a framework consumer is expected to own directly.
|
|
32
|
+
* CodeMirror/Lezer remain valid explicit extras for hosts that also import
|
|
33
|
+
* those packages; keeping them out of the default avoids forcing Vite to
|
|
34
|
+
* resolve transitive editor dependencies from the host application root.
|
|
35
|
+
*/
|
|
36
|
+
export const DEDUPE_PACKAGES = [
|
|
37
|
+
'react',
|
|
38
|
+
'react-dom',
|
|
39
|
+
'vue',
|
|
40
|
+
'@logicflow/core',
|
|
41
|
+
'@logicflow/extension',
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Merge host-specific entries without replacing the editor defaults.
|
|
46
|
+
* Consumers should pass only the framework entries they actually use when
|
|
47
|
+
* they want a narrower config; duplicate values are removed deterministically.
|
|
48
|
+
*/
|
|
49
|
+
export function buildDedupe(extra = []) {
|
|
50
|
+
return [...new Set([
|
|
51
|
+
...DEDUPE_PACKAGES,
|
|
52
|
+
...(Array.isArray(extra) ? extra : []),
|
|
53
|
+
].filter((item) => typeof item === 'string' && item.trim()))]
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// LogicFlow's core is intentionally kept as one strongly connected runtime
|
|
57
|
+
// chunk. After extracting its reusable dependencies it is about 510 kB
|
|
58
|
+
// minified (roughly 115 kB gzip), so 550 kB is the measured warning boundary.
|
|
59
|
+
export const HUANBAN_RULEGO_EDITOR_CHUNK_SIZE_WARNING_LIMIT = 550
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Stable Rollup/Vite chunk classifier for editor-core source and npm dist files.
|
|
63
|
+
* Compose it with the host application's own React/Vue/vendor classifier.
|
|
64
|
+
*/
|
|
65
|
+
export function huanbanRulegoEditorManualChunks(id) {
|
|
66
|
+
const normalized = String(id || '').replaceAll('\\', '/')
|
|
67
|
+
|
|
68
|
+
if (
|
|
69
|
+
normalized.includes('/node_modules/preact/')
|
|
70
|
+
|| normalized.includes('/node_modules/mobx/')
|
|
71
|
+
|| normalized.includes('/node_modules/mobx-preact/')
|
|
72
|
+
|| normalized.includes('/node_modules/mobx-utils/')
|
|
73
|
+
) return 'vendor-logicflow-reactive'
|
|
74
|
+
|
|
75
|
+
if (
|
|
76
|
+
normalized.includes('/node_modules/lodash-es/')
|
|
77
|
+
|| normalized.includes('/node_modules/classnames/')
|
|
78
|
+
|| normalized.includes('/node_modules/mousetrap/')
|
|
79
|
+
|| normalized.includes('/node_modules/uuid/')
|
|
80
|
+
) return 'vendor-logicflow-utils'
|
|
81
|
+
|
|
82
|
+
const isLogicFlow = normalized.includes('/node_modules/@logicflow/') || normalized.includes('/node_modules/.pnpm/@logicflow+')
|
|
83
|
+
if (isLogicFlow) {
|
|
84
|
+
if (normalized.includes('@logicflow/core')) {
|
|
85
|
+
return 'vendor-logicflow-core-runtime'
|
|
86
|
+
}
|
|
87
|
+
if (normalized.includes('/extension/es/components/') || normalized.includes('/extension/lib/components/')) return 'vendor-logicflow-components'
|
|
88
|
+
if (normalized.includes('/extension/es/dynamic-group/') || normalized.includes('/extension/lib/dynamic-group/')) return 'vendor-logicflow-group'
|
|
89
|
+
if (normalized.includes('/extension/es/tools/') || normalized.includes('/extension/lib/tools/')) return 'vendor-logicflow-tools'
|
|
90
|
+
return 'vendor-logicflow-shared'
|
|
91
|
+
}
|
|
92
|
+
if (normalized.includes('/node_modules/@codemirror/') || normalized.includes('/node_modules/codemirror/') || normalized.includes('/node_modules/@lezer/')) return 'vendor-codemirror'
|
|
93
|
+
if (normalized.includes('/node_modules/jsondiffpatch/')) return 'vendor-jsondiff'
|
|
94
|
+
|
|
95
|
+
if (normalized.includes('/packages/editor-core/src/iconRegistry')) return 'editor-core-icons'
|
|
96
|
+
if (normalized.includes('/packages/editor-core/src/defaults/components')) return 'editor-core-default-components'
|
|
97
|
+
if (normalized.includes('/packages/editor-core/src/defaults/locale-')) return 'editor-core-locales'
|
|
98
|
+
if (normalized.includes('/packages/editor-core/src/standalone/official-node-view-patches')) return 'editor-core-node-patches'
|
|
99
|
+
if (normalized.includes('/packages/editor-core/src/standalone/node-views-data')) return 'editor-core-node-views'
|
|
100
|
+
if (normalized.includes('/packages/editor-core/src/standalone/editor-dialogs')) return 'editor-core-dialogs'
|
|
101
|
+
if (normalized.includes('/packages/editor-core/src/standalone/editor-property-drawers')) return 'editor-core-property-drawers'
|
|
102
|
+
if (normalized.includes('/packages/editor-core/src/standalone/code-editor')) return 'editor-core-code-editor'
|
|
103
|
+
if (normalized.includes('/packages/editor-core/src/standalone/json-diff')) return 'editor-core-json-diff'
|
|
104
|
+
if (normalized.includes('/packages/editor-core/src/standalone/editor-styles') || normalized.includes('/packages/editor-core/src/standalone/themes')) return 'editor-core-styles'
|
|
105
|
+
if (normalized.includes('/packages/editor-core/src/standalone/HuanbanRulegoEditor')) return 'editor-core-standalone'
|
|
106
|
+
|
|
107
|
+
if (
|
|
108
|
+
normalized.includes('/@huanban/rulego-editor-core/dist/chunks/')
|
|
109
|
+
|| normalized.includes('/packages/editor-core/dist/chunks/')
|
|
110
|
+
) {
|
|
111
|
+
const file = normalized.slice(normalized.lastIndexOf('/') + 1)
|
|
112
|
+
return CORE_CHUNKS.find(name => file === `${name}.js` || file.startsWith(`${name}-`))
|
|
113
|
+
}
|
|
114
|
+
if (
|
|
115
|
+
normalized.endsWith('/@huanban/rulego-editor-core/dist/index.esm.js')
|
|
116
|
+
|| normalized.endsWith('/packages/editor-core/dist/index.esm.js')
|
|
117
|
+
) return 'editor-core-runtime'
|
|
118
|
+
|
|
119
|
+
return undefined
|
|
120
|
+
}
|