@huanban/rulego-editor-core 1.4.1 → 2.0.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 +20 -8
- package/dist/ai/ai-chat-options.d.ts +12 -0
- package/dist/api/AIAssistantAPI.d.ts +29 -0
- package/dist/api/AIManager.d.ts +7 -1
- package/dist/api/ApiProvider.d.ts +17 -4
- package/dist/api/DebugSocketClient.d.ts +2 -0
- package/dist/api/GlobalConfigAPI.d.ts +35 -0
- package/dist/api/IoTPointTemplateAPI.d.ts +32 -0
- package/dist/api/MarketplaceAPI.d.ts +39 -0
- package/dist/api/RuleChainAPI.d.ts +23 -4
- package/dist/api/RuleChainVersionsAPI.d.ts +28 -0
- package/dist/api/SkillsAPI.d.ts +31 -0
- package/dist/api/UserAPI.d.ts +39 -0
- package/dist/api/extended-api-shared.d.ts +25 -0
- package/dist/api/index.d.ts +19 -2
- package/dist/api/public-api.test-d.d.ts +87 -0
- package/dist/api/response-utils.d.ts +1 -0
- package/dist/api/types.d.ts +86 -14
- package/dist/chunks/editor-core-api-BQiYFuIO.js +1157 -0
- package/dist/chunks/editor-core-canvas-nodes-BE9eN51s.js +6921 -0
- package/dist/chunks/editor-core-code-editor-DFm5Owtv.js +660 -0
- package/dist/chunks/{editor-core-default-components-BjF65lar.js → editor-core-default-components-BsNP8ma1.js} +98 -98
- package/dist/chunks/editor-core-dialogs-D9YHvzys.js +12009 -0
- package/dist/chunks/{editor-core-locales-i6o28vm2.js → editor-core-locales-CsqTh7Wh.js} +1723 -11
- package/dist/chunks/{editor-core-node-patches-BJTT3TuX.js → editor-core-node-patches-Dbi8XYxu.js} +633 -184
- package/dist/chunks/{editor-core-node-views-BOaPVdmN.js → editor-core-node-views-C8FQYC3E.js} +39 -29
- package/dist/chunks/editor-core-property-drawers-Bqmp9B_J.js +9562 -0
- package/dist/chunks/editor-core-settings-DcGCJSc7.js +4161 -0
- package/dist/chunks/editor-core-standalone-C7pzm8ZB.js +10013 -0
- package/dist/chunks/{editor-core-styles-C1TbLgCK.js → editor-core-styles-CwjFPfAo.js} +1203 -507
- package/dist/chunks/vendor-highlight-acC2fLd8.js +5868 -0
- package/dist/chunks/vendor-logicflow-core-runtime-DpsWXOGl.js +4 -0
- package/dist/chunks/vendor-logicflow-shared-C_kIdBKO.js +4 -0
- package/dist/core/ActionRegistry.d.ts +4 -2
- package/dist/core/DataAdapter.d.ts +17 -1
- package/dist/core/DialogProvider.d.ts +33 -0
- package/dist/core/EditorCore.d.ts +16 -3
- package/dist/core/FieldCapabilityRegistry.d.ts +4 -1
- package/dist/core/FieldChangeRegistry.d.ts +3 -1
- package/dist/core/I18nManager.d.ts +1 -1
- package/dist/core/IdentityProvider.d.ts +32 -0
- package/dist/core/OptionSourceRegistry.d.ts +4 -1
- package/dist/core/PropertyControlRegistry.d.ts +29 -0
- package/dist/core/ThemeManager.d.ts +7 -0
- package/dist/core/anchored-popover.d.ts +16 -0
- package/dist/core/assistant-dsl.d.ts +18 -0
- package/dist/core/business-log-config.d.ts +18 -0
- package/dist/core/clean-snapshot.d.ts +14 -0
- package/dist/core/component-localization.d.ts +17 -0
- package/dist/core/component-palette.d.ts +3 -0
- package/dist/core/connection-status.d.ts +11 -0
- package/dist/core/dialog-styles.d.ts +1 -0
- package/dist/core/editor-capabilities.d.ts +82 -1
- package/dist/core/editor-edge-anchors.d.ts +16 -0
- package/dist/core/endpoint-protocol.d.ts +15 -0
- package/dist/core/expression-preview.d.ts +6 -0
- package/dist/core/field-protocol.d.ts +19 -4
- package/dist/core/global-config.d.ts +47 -0
- package/dist/core/global-search.d.ts +31 -0
- package/dist/core/group-protocol.d.ts +56 -0
- package/dist/core/identity-provider-default.d.ts +32 -0
- package/dist/core/index.d.ts +31 -5
- package/dist/core/keymap.d.ts +10 -0
- package/dist/core/payload-kv.d.ts +7 -0
- package/dist/core/rule-chain-versions.d.ts +143 -0
- package/dist/core/run-analysis.d.ts +126 -0
- package/dist/core/runtime-field-dictionary.d.ts +3 -0
- package/dist/core/save-conflict.d.ts +1 -0
- package/dist/core/server-status.d.ts +1 -0
- package/dist/core/toolbar-icons.d.ts +1 -1
- package/dist/core/variable-completion.d.ts +13 -0
- package/dist/core/websocket-auth.d.ts +2 -0
- package/dist/defaults/analysis-locales.d.ts +241 -0
- package/dist/defaults/component-locale-categories.d.ts +14 -0
- package/dist/defaults/component-locale-data.d.ts +4 -0
- package/dist/defaults/component-locale-en-US.d.ts +10 -0
- package/dist/defaults/component-locale-summaries.d.ts +15 -0
- package/dist/defaults/component-locale-zh-CN.d.ts +10 -0
- package/dist/defaults/editor-shell-locales.d.ts +290 -0
- package/dist/defaults/example-chain.d.ts +2 -0
- package/dist/defaults/field-interaction-locales.d.ts +19 -0
- package/dist/defaults/global-config-locales.d.ts +166 -0
- package/dist/defaults/official-component-fallbacks.d.ts +2 -1
- package/dist/defaults/point-template-locales.d.ts +64 -0
- package/dist/index.cjs +2897 -2115
- package/dist/index.d.ts +33 -10
- package/dist/index.esm.js +1184 -809
- package/dist/index.umd.js +2874 -2092
- package/dist/nodes/UnknownNodeModel.d.ts +12 -1
- package/dist/standalone/HuanbanRulegoEditor.d.ts +145 -13
- package/dist/standalone/auth-fetch.d.ts +1 -0
- package/dist/standalone/auth-ui-defaults.d.ts +15 -0
- package/dist/standalone/code-editor.d.ts +7 -5
- package/dist/standalone/connection-status-binding.d.ts +3 -2
- package/dist/standalone/custom-nodes.d.ts +13 -0
- package/dist/standalone/drawer-locale.d.ts +12 -0
- package/dist/standalone/drawer-unsaved-guard.d.ts +6 -1
- package/dist/standalone/dynamic-field-browse.d.ts +25 -0
- package/dist/standalone/edge-label-quick-editor.d.ts +2 -1
- package/dist/standalone/editor-actions.d.ts +1 -0
- package/dist/standalone/editor-canvas-anchors.d.ts +19 -0
- package/dist/standalone/editor-canvas-shortcuts.d.ts +1 -0
- package/dist/standalone/editor-chain-info.d.ts +1 -0
- package/dist/standalone/editor-debug-data.d.ts +18 -0
- package/dist/standalone/editor-debug-ws.d.ts +2 -0
- package/dist/standalone/editor-delete.d.ts +5 -3
- package/dist/standalone/editor-dialog-provider.d.ts +3 -0
- package/dist/standalone/editor-dialogs.d.ts +25 -2
- package/dist/standalone/editor-global-config.d.ts +44 -0
- package/dist/standalone/editor-group-interactions.d.ts +1 -0
- package/dist/standalone/editor-host-region-styles.d.ts +1 -0
- package/dist/standalone/editor-host-regions.d.ts +53 -0
- package/dist/standalone/editor-login.d.ts +15 -0
- package/dist/standalone/editor-overlays.d.ts +5 -0
- package/dist/standalone/editor-property-drawers.d.ts +3 -1
- package/dist/standalone/editor-run-analysis.d.ts +81 -0
- package/dist/standalone/editor-run-compare.d.ts +20 -0
- package/dist/standalone/editor-run-waterfall.d.ts +11 -0
- package/dist/standalone/editor-toast.d.ts +1 -1
- package/dist/standalone/editor-toolbar-presentation.d.ts +12 -0
- package/dist/standalone/editor-toolbar.d.ts +5 -1
- package/dist/standalone/editor-ui-configuration.d.ts +55 -0
- package/dist/standalone/editor-ui-settings.d.ts +26 -0
- package/dist/standalone/editor-user-menu.d.ts +8 -0
- package/dist/standalone/editor-version-history.d.ts +82 -0
- package/dist/standalone/editor-workspace-shell.d.ts +47 -0
- package/dist/standalone/editor-workspace-styles.d.ts +1 -0
- package/dist/standalone/field-expression-preview.d.ts +12 -0
- package/dist/standalone/group-node.d.ts +19 -3
- package/dist/standalone/icon-utils.d.ts +7 -0
- package/dist/standalone/index.d.ts +17 -5
- package/dist/standalone/keyboard-events.d.ts +3 -0
- package/dist/standalone/multi-select-popover.d.ts +16 -0
- package/dist/standalone/node-copy.d.ts +1 -0
- package/dist/standalone/node-definitions.d.ts +4 -0
- package/dist/standalone/node-renderer-utils.d.ts +21 -0
- package/dist/standalone/node-theme.d.ts +2 -1
- package/dist/standalone/point-template-actions.d.ts +43 -0
- package/dist/standalone/property-field-draft.d.ts +5 -0
- package/dist/standalone/question-list-editor.d.ts +35 -0
- package/dist/standalone/shared-node-manager.d.ts +14 -0
- package/dist/standalone/single-select-popover.d.ts +6 -0
- package/dist/standalone/theme-scope.d.ts +15 -0
- package/dist/standalone/themes.d.ts +8 -0
- package/dist/standalone/variable-completion-dropdown.d.ts +18 -0
- package/dist/types/component.d.ts +24 -1
- package/dist/types/editor.d.ts +41 -0
- package/dist/utils/relation-utils.d.ts +19 -1
- package/dist/version.d.ts +2 -2
- package/package.json +3 -3
- package/vite-chunks.mjs +66 -0
- package/dist/chunks/editor-core-code-editor-CRki2wA_.js +0 -512
- package/dist/chunks/editor-core-dialogs-BMWb0WRN.js +0 -17228
- package/dist/chunks/editor-core-property-drawers-BPh-jj1b.js +0 -7998
- package/dist/chunks/editor-core-standalone-CJDytHO9.js +0 -11269
- package/dist/chunks/vendor-logicflow-core-runtime-Cp6IBEjB.js +0 -217
- package/dist/chunks/vendor-logicflow-shared-C7YynLDn.js +0 -4
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
export declare const globalConfigZhCN: {
|
|
2
|
+
globalConfig: {
|
|
3
|
+
title: string;
|
|
4
|
+
add: string;
|
|
5
|
+
refresh: string;
|
|
6
|
+
key: string;
|
|
7
|
+
value: string;
|
|
8
|
+
actions: string;
|
|
9
|
+
save: string;
|
|
10
|
+
cancel: string;
|
|
11
|
+
close: string;
|
|
12
|
+
edit: string;
|
|
13
|
+
remove: string;
|
|
14
|
+
revert: string;
|
|
15
|
+
addTitle: string;
|
|
16
|
+
editTitle: string;
|
|
17
|
+
empty: string;
|
|
18
|
+
loading: string;
|
|
19
|
+
overridden: string;
|
|
20
|
+
inherited: string;
|
|
21
|
+
unknown: string;
|
|
22
|
+
overrideTitle: string;
|
|
23
|
+
valuePlaceholder: string;
|
|
24
|
+
secretPlaceholder: string;
|
|
25
|
+
sensitive: string;
|
|
26
|
+
reference: string;
|
|
27
|
+
environment: string;
|
|
28
|
+
saved: string;
|
|
29
|
+
noReferences: string;
|
|
30
|
+
reloadedChains: string;
|
|
31
|
+
reloadedNodes: string;
|
|
32
|
+
failedChains: string;
|
|
33
|
+
failedNodes: string;
|
|
34
|
+
loadFailed: string;
|
|
35
|
+
overridesFailed: string;
|
|
36
|
+
saveFailed: string;
|
|
37
|
+
removeFailed: string;
|
|
38
|
+
revertFailed: string;
|
|
39
|
+
readbackFailed: string;
|
|
40
|
+
keyRequired: string;
|
|
41
|
+
valueRequired: string;
|
|
42
|
+
maskedPlaceholder: string;
|
|
43
|
+
duplicateKey: string;
|
|
44
|
+
invalidResponse: string;
|
|
45
|
+
missingApiBase: string;
|
|
46
|
+
contextChanged: string;
|
|
47
|
+
unchangedSecret: string;
|
|
48
|
+
readOnly: string;
|
|
49
|
+
busy: string;
|
|
50
|
+
confirmRemove: string;
|
|
51
|
+
confirmRevert: string;
|
|
52
|
+
confirmDiscard: string;
|
|
53
|
+
confirm: string;
|
|
54
|
+
};
|
|
55
|
+
businessLog: {
|
|
56
|
+
nodeTitle: string;
|
|
57
|
+
chainTitle: string;
|
|
58
|
+
before: string;
|
|
59
|
+
after: string;
|
|
60
|
+
handler: string;
|
|
61
|
+
handlerPlaceholder: string;
|
|
62
|
+
chainEnd: string;
|
|
63
|
+
clear: string;
|
|
64
|
+
apply: string;
|
|
65
|
+
cancel: string;
|
|
66
|
+
close: string;
|
|
67
|
+
templates: string;
|
|
68
|
+
maskedGlobal: string;
|
|
69
|
+
noHandler: string;
|
|
70
|
+
saved: string;
|
|
71
|
+
missingNode: string;
|
|
72
|
+
missingChain: string;
|
|
73
|
+
changedChain: string;
|
|
74
|
+
changedLog: string;
|
|
75
|
+
applyFailed: string;
|
|
76
|
+
listFailed: string;
|
|
77
|
+
unknownHandler: string;
|
|
78
|
+
confirmClear: string;
|
|
79
|
+
confirmDiscard: string;
|
|
80
|
+
readOnly: string;
|
|
81
|
+
loading: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export declare const globalConfigEnUS: {
|
|
85
|
+
globalConfig: {
|
|
86
|
+
title: string;
|
|
87
|
+
add: string;
|
|
88
|
+
refresh: string;
|
|
89
|
+
key: string;
|
|
90
|
+
value: string;
|
|
91
|
+
actions: string;
|
|
92
|
+
save: string;
|
|
93
|
+
cancel: string;
|
|
94
|
+
close: string;
|
|
95
|
+
edit: string;
|
|
96
|
+
remove: string;
|
|
97
|
+
revert: string;
|
|
98
|
+
addTitle: string;
|
|
99
|
+
editTitle: string;
|
|
100
|
+
empty: string;
|
|
101
|
+
loading: string;
|
|
102
|
+
overridden: string;
|
|
103
|
+
inherited: string;
|
|
104
|
+
unknown: string;
|
|
105
|
+
overrideTitle: string;
|
|
106
|
+
valuePlaceholder: string;
|
|
107
|
+
secretPlaceholder: string;
|
|
108
|
+
sensitive: string;
|
|
109
|
+
reference: string;
|
|
110
|
+
environment: string;
|
|
111
|
+
saved: string;
|
|
112
|
+
noReferences: string;
|
|
113
|
+
reloadedChains: string;
|
|
114
|
+
reloadedNodes: string;
|
|
115
|
+
failedChains: string;
|
|
116
|
+
failedNodes: string;
|
|
117
|
+
loadFailed: string;
|
|
118
|
+
overridesFailed: string;
|
|
119
|
+
saveFailed: string;
|
|
120
|
+
removeFailed: string;
|
|
121
|
+
revertFailed: string;
|
|
122
|
+
readbackFailed: string;
|
|
123
|
+
keyRequired: string;
|
|
124
|
+
valueRequired: string;
|
|
125
|
+
maskedPlaceholder: string;
|
|
126
|
+
duplicateKey: string;
|
|
127
|
+
invalidResponse: string;
|
|
128
|
+
missingApiBase: string;
|
|
129
|
+
contextChanged: string;
|
|
130
|
+
unchangedSecret: string;
|
|
131
|
+
readOnly: string;
|
|
132
|
+
busy: string;
|
|
133
|
+
confirmRemove: string;
|
|
134
|
+
confirmRevert: string;
|
|
135
|
+
confirmDiscard: string;
|
|
136
|
+
confirm: string;
|
|
137
|
+
};
|
|
138
|
+
businessLog: {
|
|
139
|
+
nodeTitle: string;
|
|
140
|
+
chainTitle: string;
|
|
141
|
+
before: string;
|
|
142
|
+
after: string;
|
|
143
|
+
handler: string;
|
|
144
|
+
handlerPlaceholder: string;
|
|
145
|
+
chainEnd: string;
|
|
146
|
+
clear: string;
|
|
147
|
+
apply: string;
|
|
148
|
+
cancel: string;
|
|
149
|
+
close: string;
|
|
150
|
+
templates: string;
|
|
151
|
+
maskedGlobal: string;
|
|
152
|
+
noHandler: string;
|
|
153
|
+
saved: string;
|
|
154
|
+
missingNode: string;
|
|
155
|
+
missingChain: string;
|
|
156
|
+
changedChain: string;
|
|
157
|
+
changedLog: string;
|
|
158
|
+
applyFailed: string;
|
|
159
|
+
listFailed: string;
|
|
160
|
+
unknownHandler: string;
|
|
161
|
+
confirmClear: string;
|
|
162
|
+
confirmDiscard: string;
|
|
163
|
+
readOnly: string;
|
|
164
|
+
loading: string;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ComponentDefinition } from '../types/component';
|
|
2
|
-
export declare const OFFICIAL_COMPONENT_FALLBACK_TYPES: readonly ["
|
|
2
|
+
export declare const OFFICIAL_COMPONENT_FALLBACK_TYPES: readonly ["ai/jev", "ai/jevFilter"];
|
|
3
|
+
export declare const LEGACY_COMPONENT_FALLBACK_TYPES: readonly ["endpoint/beanstalkdTubeset", "iterator", "ci/exec", "x/beanstalkdTube", "x/beanstalkdWorker", "ai/transform/documentLoader", "ai/transform/textChunker", "ai/embedding/openai", "ai/indexer/milvus", "ai/indexer/redis", "ai/retriever/milvus", "ai/retriever/redis"];
|
|
3
4
|
export declare function createOfficialComponentFallback(type: string): ComponentDefinition | null;
|
|
4
5
|
export declare function appendOfficialComponentFallbacks<T extends ComponentDefinition>(components: T[]): ComponentDefinition[];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const pointTemplateMessagesEnUS: {
|
|
2
|
+
import: string;
|
|
3
|
+
saveTemplate: string;
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
protocol: string;
|
|
7
|
+
category: string;
|
|
8
|
+
points: string;
|
|
9
|
+
close: string;
|
|
10
|
+
cancel: string;
|
|
11
|
+
save: string;
|
|
12
|
+
loading: string;
|
|
13
|
+
saving: string;
|
|
14
|
+
empty: string;
|
|
15
|
+
emptyPoints: string;
|
|
16
|
+
required: string;
|
|
17
|
+
unconfigured: string;
|
|
18
|
+
invalidResponse: string;
|
|
19
|
+
httpError: string;
|
|
20
|
+
loadFailed: string;
|
|
21
|
+
saveFailed: string;
|
|
22
|
+
importFailed: string;
|
|
23
|
+
apply: string;
|
|
24
|
+
imported: string;
|
|
25
|
+
saved: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const pointTemplateMessagesZhCN: Record<keyof typeof pointTemplateMessagesEnUS, string>;
|
|
28
|
+
export declare const pointTemplateLocales: {
|
|
29
|
+
'zh-CN': {
|
|
30
|
+
editor: {
|
|
31
|
+
pointTemplates: Record<"apply" | "name" | "empty" | "id" | "category" | "close" | "required" | "protocol" | "save" | "import" | "points" | "invalidResponse" | "saveTemplate" | "cancel" | "loading" | "saving" | "emptyPoints" | "unconfigured" | "httpError" | "loadFailed" | "saveFailed" | "importFailed" | "imported" | "saved", string>;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
'en-US': {
|
|
35
|
+
editor: {
|
|
36
|
+
pointTemplates: {
|
|
37
|
+
import: string;
|
|
38
|
+
saveTemplate: string;
|
|
39
|
+
id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
protocol: string;
|
|
42
|
+
category: string;
|
|
43
|
+
points: string;
|
|
44
|
+
close: string;
|
|
45
|
+
cancel: string;
|
|
46
|
+
save: string;
|
|
47
|
+
loading: string;
|
|
48
|
+
saving: string;
|
|
49
|
+
empty: string;
|
|
50
|
+
emptyPoints: string;
|
|
51
|
+
required: string;
|
|
52
|
+
unconfigured: string;
|
|
53
|
+
invalidResponse: string;
|
|
54
|
+
httpError: string;
|
|
55
|
+
loadFailed: string;
|
|
56
|
+
saveFailed: string;
|
|
57
|
+
importFailed: string;
|
|
58
|
+
apply: string;
|
|
59
|
+
imported: string;
|
|
60
|
+
saved: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|