@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/dist/index.d.ts
CHANGED
|
@@ -1,62 +1,40 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file index.ts
|
|
3
|
-
* @description @huanban/rulego-editor-core 包的统一入口
|
|
4
|
-
*
|
|
5
|
-
* 这是 @huanban/rulego-editor-core 包的公开 API 入口点。
|
|
6
|
-
* 所有外部消费者 (Vue 适配层、React 适配层、原生 JS 用户)
|
|
7
|
-
* 都通过此文件导入所需的类、类型和工具函数。
|
|
8
|
-
*
|
|
9
|
-
* 导出分为六个部分:
|
|
10
|
-
* 1. 核心模块 — 编辑器运行时的所有核心类
|
|
11
|
-
* 2. 类型定义 — TypeScript 类型和接口
|
|
12
|
-
* 3. 工具函数 — 通用的辅助函数
|
|
13
|
-
* 4. 默认数据 — 内置组件、语言包等
|
|
14
|
-
* 5. 独立编辑器 — HuanbanRulegoEditor + 调试工具
|
|
15
|
-
* 6. API 客户端 — 请求层 + 类型 + 路由映射
|
|
16
|
-
*
|
|
17
|
-
* 使用方式:
|
|
18
|
-
* ```typescript
|
|
19
|
-
* // 导入核心类
|
|
20
|
-
* import { EditorCore, ThemeManager, I18nManager } from '@huanban/rulego-editor-core'
|
|
21
|
-
*
|
|
22
|
-
* // 导入独立编辑器
|
|
23
|
-
* import { HuanbanRulegoEditor, setDebug } from '@huanban/rulego-editor-core'
|
|
24
|
-
*
|
|
25
|
-
* // 导入类型
|
|
26
|
-
* import type { RuleChainData, EditorOptions, ComponentDefinition } from '@huanban/rulego-editor-core'
|
|
27
|
-
*
|
|
28
|
-
* // 导入工具函数
|
|
29
|
-
* import { generateUUID, adapterComponents } from '@huanban/rulego-editor-core'
|
|
30
|
-
*
|
|
31
|
-
* // 导入默认数据
|
|
32
|
-
* import { defaultComponents, localeZhCN } from '@huanban/rulego-editor-core'
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* 注意: CSS 样式通过 editor-styles.ts 动态注入,无需单独导入样式文件。
|
|
36
|
-
*
|
|
37
|
-
* @module @huanban/rulego-editor-core
|
|
38
|
-
* @version see HUANBAN_RULEGO_EDITOR_VERSION
|
|
39
|
-
*/
|
|
40
1
|
export { HUANBAN_RULEGO_EDITOR_VERSION, EDITOR_VERSION, } from './version';
|
|
41
|
-
export { EditorCore, StateStore, EventBus, DataAdapter, ComponentRegistry, HistoryManager, BatchCommand, ValidationEngine, ThemeManager, THEME_LIGHT, THEME_DARK, THEME_BLUE, I18nManager, i18nText, RuleChainValidator, } from './core';
|
|
2
|
+
export { EditorCore, StateStore, EventBus, DataAdapter, ComponentRegistry, HistoryManager, BatchCommand, ValidationEngine, ThemeManager, THEME_LIGHT, THEME_DARK, THEME_BLUE, I18nManager, i18nText, RuleChainValidator, ActionRegistry, FieldCapabilityRegistry, FieldChangeHandlerNotFoundError, FieldChangeRegistry, OptionSourceRegistry, buildOptionSourceRequestKey, getFieldChangeHandlerName, DiagnosticService, ComponentDocService, RuntimeFieldDictionary, DEFAULT_RUNTIME_FIELD_MAX_DEPTH, DEFAULT_RUNTIME_FIELD_MAX_PATHS, DEFAULT_RUNTIME_FIELD_SAMPLE_LENGTH, extractRuntimeFieldPaths, mergeRuntimeFieldCompletions, ExplorerTreeStore, buildExplorerTree, expandedExplorerKeys, explorerAncestorKeys, findExplorerNode, normalizeExplorerExpandedKeys, EXPLORER_SECTION_ROOT, EXPLORER_SECTION_SUB, SIMPLE_ARRAY_DELIMITER, mergeSimpleArrayValues, normalizeSimpleArrayValues, parseSimpleArrayInput, buildFieldAttachments, buildDefaultConfiguration, cloneConfiguration, evaluateFieldDependency, formatMapEntryValue, getFieldAttachmentTarget, getFieldPathValue, getMapValueMode, getVisibleComponentFields, isFieldDependencySatisfied, parseUnknownConfiguration, parseMapEntryValue, resolveComponentFields, sanitizeConfigurationByFields, validateComponentFields, validateFieldValue, alignGraphNodes, cloneGraphSelection, insertGraphNodeOnEdge, reserveUniqueGraphElementId, distributeGraphNodes, selectConnectedNodeIds, snapGraphNodesToGrid, groupDiagnosticsByElement, validateTopology, buildComponentPalette, DEFAULT_COMPONENT_CATEGORY_ORDER, normalizeComponentCategory, calculateVirtualWindow, DEFAULT_VIRTUAL_WINDOW_ITEM_HEIGHT, DEFAULT_VIRTUAL_WINDOW_VIEWPORT_HEIGHT, DEFAULT_VIRTUAL_WINDOW_OVERSCAN, DEFAULT_VIRTUAL_WINDOW_THRESHOLD, createEmptyTableRow, coerceTableCellValue, decodeTableRowsForEditing, encodeTableRowsForStorage, findDuplicateRowValues, generatePointRows, getPointTableImportDecision, getTableColumns, getTableDetailFields, isPointTableFields, normalizeTableRows, paginateTableRows, parseCsvTable, serializeCsvTable, parseExcelTable, serializeExcelTable, cronPresetToRuleGoCron, nextRuleGoCronRuns, normalizeRuleGoCron, ruleGoCronToPreset, validateRuleGoCron, getEditorWorkspaceTabActions, getWorkspaceTabLifecycleState, isWorkspaceTabDisabled, isWorkspaceTabPinned, createDebugPanelRequestSnapshot, isDebugPanelRequestCurrent, getRuleChainErrorTexts, isRuleChainNotDeployedError, resolveRuleChainDeployState, createRuleChainSaveFingerprint, hasRuleChainSaveConflict, normalizeRuleChainSaveSnapshot, extractRunMessageFields, extractRunMessageTypes, inferRunInput, extractMsgFields, extractMsgTypes, isEditorNodeRunTarget, clampContextMenuPosition, resolveContextSubmenuPosition, getEditorToolbarIconSvg, isEditorToolbarIconName, } from './core';
|
|
3
|
+
export type { EditorToolbarIconName } from './core';
|
|
42
4
|
export { RUNTIME_LIMITS, RuntimeLimitError, assertGraphWithinLimits, assertComponentsWithinLimits, assertTextWithinBytes, truncateText, assertObjectDepth, } from './core/runtime-limits';
|
|
43
|
-
export
|
|
44
|
-
export
|
|
5
|
+
export { streamOpenAiChatCompletion, filterCopilotSuccessfulTurns, mergeCopilotToolCallDelta, settleCopilotToolCalls, } from './ai/copilot-transport';
|
|
6
|
+
export { bindCopilotCodeInteractions, getCopilotCodeBlockCode, renderCopilotCodeHtml, renderCopilotMarkdown, resolveCopilotCodeBlockAction, setCopilotCodeBlockPanel, } from './ai/copilot-markdown';
|
|
7
|
+
export type { CopilotCodeBlockAction, CopilotCodeBlockPanel, CopilotCodeInteractionOptions, CopilotMarkdownOptions, } from './ai/copilot-markdown';
|
|
8
|
+
export type { CopilotChatRole, CopilotChatMessage, CopilotConversationMessage, CopilotChatToolCallStatus, CopilotChatToolCallDelta, CopilotChatToolCall, CopilotChatTransportOptions, } from './ai/copilot-transport';
|
|
9
|
+
export type { LFNodeData, LFEdgeData, LFGraphData, LFPoint, Command, ValidationError, ValidationResult, ValidationRule, ValidationContext, ThemeVariables, ThemeDefinition, LocaleMessages, TranslationSource, ValidationIssue, RuleChainValidationResult, IssueSeverity, DebugPanelRequestSnapshot, ResolveRuleChainDeployStateOptions, RuleChainDeployState, RuntimeFieldCompletionItem, RuntimeFieldConnection, RuntimeFieldDictionaryListener, RuntimeFieldDictionaryOptions, RuntimeFieldEvent, RuntimeFieldMessage, RuntimeFieldPath, RuntimeFieldSlot, RuntimeNodeFieldEntry, EditorAction, EditorActionContext, EditorActionRuntime, EditorActionSource, EditorSelectionSnapshot, EditorShortcut, FieldCapabilityContext, FieldCapabilityHandler, FieldChangeContext, FieldChangeExecutionResult, FieldChangeExecutionStatus, FieldChangeHandler, FieldChangeResolveContext, FieldChangeResult, OptionSourceContext, OptionSourceResolveContext, OptionSourceResolver, FieldAttachmentEntry, FieldValidationError, ResolveComponentFieldsContext, AlignMode, CloneGraphSelectionOptions, ClonedGraphSelection, DistributeMode, InsertGraphNodeOnEdgeOptions, InsertGraphNodeOnEdgeResult, DiagnosticItem, TopologyContext, ComponentPaletteBuildOptions, ComponentPaletteGroup, ComponentPaletteSubgroup, ComponentDoc, ComponentDocMeta, ComponentDocProvider, VirtualWindow, VirtualWindowOptions, PointGenerationOptions, TablePage, TableRow, RuleGoCronBuildResult, RuleGoCronError, RuleGoCronErrorCode, RuleGoCronNextRunsOptions, RuleGoCronNextRunsResult, RuleGoCronPreset, RuleGoCronPresetParseResult, RuleGoCronValidationResult, EditorWorkspaceTabAction, EditorWorkspaceTabActionDescriptor, EditorWorkspaceTabLifecycleState, RunInputInference, ContextMenuPosition, ContextMenuRect, ContextMenuSize, ContextMenuViewport, } from './core';
|
|
10
|
+
export type { RuleChainConfig, RuleNodeConfig, RuleConnectionConfig, RuleEndpointConfig, RuleChainData, RuleChainMetadata, AdditionalInfo, LayoutInfo, ComponentDefinition, ComponentField, ComponentGroup, FieldValidation, FieldDependencyOperator, FieldDependency, FieldAttachment, FieldOptionsSource, AiProviderCapability, ComponentFieldControl, ComponentFieldOption, ComponentFieldControlOption, ComponentFieldGroup, DynamicFieldReference, DynamicFieldsDefinition, ComponentCategory, RawComponentData, ComponentRegistryOptions, EditorOptions, EditorState, EditorInternalData, EditorPlugin, ApiEndpoints, RequestConfig, ToolbarConfig, GridConfig, AiProviderOption, PanelType, EditorRuntimeOptionsPatch, EditorEventMap, EditorEventName, EventListener, NodeEventPayload, EdgeEventPayload, SaveEventPayload, HistoryChangePayload, ValidationPayload, } from './types';
|
|
11
|
+
export { isComponentFieldOption } from './types';
|
|
45
12
|
export { getNodeByID, getEdgeBySourceNodeIdAndTargetNodeId, getNodeSeq, getBytesLength, generateUUID, adapterComponents, toComponentMap, defaultIdGenerator, } from './utils';
|
|
46
13
|
export { defaultComponents, localeZhCN, localeEnUS, } from './defaults';
|
|
47
14
|
export { DEFAULT_AI_PROVIDERS, getAiProviders, getAiEmbeddingProviders, } from './standalone/ai-providers';
|
|
48
15
|
export { TOOL_SCHEMA_ITEM_TYPES, TOOL_SCHEMA_TYPES, cloneSchemaRows, emptySchemaEditorRow, extractBuiltinToolOptionsFromPayload, generateToolSchemaFromRows, getBuiltinToolOptionsFromSources, getSkillPathFromSources, normalizeBuiltinToolOption, normalizeToolRows, parseJsonObjectText, parseToolSchemaRows, renumberSchemaRowOrders, resolveSchemaRowsByParent, stringifyToolJson, updateSchemaRowsAtParent, } from './tools/tool-editor';
|
|
49
16
|
export type { BuiltinToolOption, SchemaEditorRow, ToolEditorMode, ToolEditorType, ToolRow, } from './tools/tool-editor';
|
|
50
|
-
export { HuanbanRulegoEditor, applyComponentsRuntimePayloadOptions, debugLog, setDebug, isDebug, escapeHtml, escapeAttr, setSafeText, safeUrl, safeImageUrl, safeCssColor, sanitizeRichHtml, sanitizeDescription, redactSensitive, formatJsonBounded, normalizeComponentsPayload, normalizeComponentsRawPayload, DEFAULT_ICON_URL, HUANBAN_FAVICON_DATA_URI, HUANBAN_FAVICON_SVG, HUANBAN_FAVICON_SVG_PATH, HUANBAN_LOGO_DATA_URI, HUANBAN_LOGO_SVG, HUANBAN_LOGO_SVG_PATH, normalizeIconTheme, getThemeList, normalizeEditorTheme, THEME_PRESETS, resolveIconUrl, parseJsonBounded, } from './standalone';
|
|
17
|
+
export { HuanbanRulegoEditor, applyComponentsRuntimePayloadOptions, debugLog, setDebug, isDebug, escapeHtml, escapeAttr, setSafeText, safeUrl, safeImageUrl, safeCssColor, sanitizeRichHtml, sanitizeDescription, redactSensitive, formatJsonBounded, normalizeComponentsPayload, normalizeComponentsRawPayload, DEFAULT_ICON_URL, HUANBAN_FAVICON_DATA_URI, HUANBAN_FAVICON_SVG, HUANBAN_FAVICON_SVG_PATH, HUANBAN_LOGO_DATA_URI, HUANBAN_LOGO_SVG, HUANBAN_LOGO_SVG_PATH, normalizeIconTheme, getThemeList, normalizeEditorTheme, THEME_PRESETS, resolveIconUrl, adapterComponentsLocal, adapterRuntimeComponent, closeEditorTour, isEditorTourDone, parseJsonBounded, startEditorTour, confirmDrawerUnsavedClose, } from './standalone';
|
|
18
|
+
export type { RuntimeComponentAdapterOptions } from './standalone';
|
|
51
19
|
export { cloneNodePropertiesForCopy, } from './standalone/node-copy';
|
|
52
20
|
export { isLogicFlowVisualNodeType, normalizeEditableNodeModel, resolveRuleGoNodeType, } from './standalone/node-identity';
|
|
53
21
|
export type { CloneNodePropertiesOptions, } from './standalone/node-copy';
|
|
54
22
|
export type { NormalizeEditableNodeModelOptions, } from './standalone/node-identity';
|
|
55
|
-
export type { AIAssistantOpenOptions, HuanbanRulegoEditorOptions, RichHtmlPolicy, RedactOptions, FormatJsonBoundedOptions, IconThemeName, ParseJsonBoundedOptions, ResolveIconUrlOptions, ThemeVars, } from './standalone';
|
|
56
|
-
export { RuleChainAPI, DEFAULT_ROUTES, ApiProvider, apiProvider, normalizeApiProviderBaseUrl, normalizeApiV1BaseUrl, normalizePagedResponse, unwrapApiEnvelope, AIManager, aiManager, DebugSocketClient, } from './api';
|
|
57
|
-
export type {
|
|
23
|
+
export type { AIAssistantOpenOptions, HuanbanRulegoEditorLoadOptions, HuanbanRulegoEditorOptions, EditorSaveHandler, EditorSaveHandlerResult, EditorSaveConflictContext, EditorSaveMode, EditorSaveResult, EditorOptionsUpdateResult, ExternalDataUpdatePolicy, EditorShellPersistenceOptions, EditorRecentComponentsOptions, EditorRunTestCasesOptions, RichHtmlPolicy, RedactOptions, FormatJsonBoundedOptions, IconThemeName, ParseJsonBoundedOptions, ResolveIconUrlOptions, ThemeVars, NodePickerOpenOptions, ComponentManageDialogTab, SettingsDialogTab, DrawerCloseDecision, DrawerGuardI18nContext, EditorTourHandle, DebugWsCallbacks, DebugWsStatusDetails, DebugWsStatusReason, DebugWebSocketOptions, WsStatus, } from './standalone';
|
|
24
|
+
export { RuleChainAPI, RuleChainApiError, DEFAULT_ROUTES, ApiProvider, apiProvider, normalizeApiProviderBaseUrl, normalizeApiV1BaseUrl, ComponentCatalogCache, componentCatalogCache, normalizePagedResponse, unwrapApiEnvelope, AIManager, aiManager, DebugSocketClient, } from './api';
|
|
25
|
+
export type { DebugSocketClientOptions, ComponentCatalogCacheOptions, ComponentCatalogLoadOptions, } from './api';
|
|
26
|
+
export { EditorWorkspace, EditorDockStore, DEFAULT_EDITOR_DOCK_STATE, buildEditorPersistenceKey, buildEditorChatHistoryKey, readEditorChatHistory, writeEditorChatHistory, clearEditorChatHistory, EditorPanelRegistry, DEFAULT_EDITOR_PANELS, DEFAULT_EDITOR_OPEN_PANEL_IDS, DEFAULT_NODE_CONFIG_DOCK_WIDTH, ServerStatusStore, deriveWsUrl, ConnectionStatusController, ConnectionStatusStore, normalizeConnectionStatusMap, resolveConnectionStatusView, resolveEditorCapabilities, resolveCapabilities, CAPABILITY_BASE, CAPABILITY_PROFILES, EDITOR_OVERLAY_LAYERS, EDITOR_OVERLAY_LAYER_CSS_VARIABLES, EDITOR_OVERLAY_LAYER_CSS_TEXT, } from './core';
|
|
27
|
+
export type { ConnectionStatusControllerOptions, ConnectionStatusMap, ConnectionStatusPhase, ConnectionStatusProvider, ConnectionStatusSemanticKind, ConnectionStatusState, ConnectionStatusTranslator, ConnectionStatusView, NodeConnectionState, NodeConnectionStatus, EditorOverlayLayerName, } from './core';
|
|
28
|
+
export { normalizeKeyValueSelection, removeKeyValueEntriesAtIndexes, } from './core';
|
|
29
|
+
export type { KeyValueEditorEntry } from './core';
|
|
30
|
+
export type { EditorMode, EditorUiCapabilities, EditorCapabilities, EditorCapabilitiesOverride, EditorCapabilityInput, } from './core';
|
|
31
|
+
export { EditorTestCasesStore } from './core';
|
|
32
|
+
export type { EditorTestCasePayload, EditorTestCaseEntry, EditorTestCasesPersistenceOptions, EditorTestCasesOptions, EditorTestCasesResult, } from './core';
|
|
33
|
+
export type { EditorWorkspaceTab, EditorWorkspaceState, OpenWorkspaceTabInput, WorkspaceCloseDecision, WorkspaceCloseResultReason, WorkspaceSaveResponse, WorkspaceSaveOutcome, WorkspaceSaveHandlerResult, WorkspaceSaveHandler, CloseWorkspaceTabOptions, CloseWorkspaceTabDecisionOptions, CloseWorkspaceTabResult, WorkspaceConflictResolution, WorkspaceConflictResult, WorkspaceListener, EditorDockId, EditorWidthDockId, EditorWidthDockState, EditorHeightDockState, EditorDockState, EditorDockBounds, EditorDockPersistenceState, EditorDockOptions, EditorPersistenceScope, EditorPersistenceAdapter, EditorPersistenceNamespace, EditorPersistenceMigrationContext, EditorStatePersistenceOptions, EditorChatHistoryMode, EditorChatHistoryPersistenceOptions, EditorPanelId, EditorPanelDefinition, EditorPanelState, EditorPanelPersistenceState, EditorPanelRegistryOptions, ServerStatus, ServerApiStatus, ServerWsStatus, ServerWsEventStatus, ServerStatusState, ServerStatusOptions, } from './core';
|
|
34
|
+
export type { EditorHoverToolPosition, EditorHoverToolTarget, EditorNodeRunTarget, EditorNodeHoverAction, EditorEdgeHoverAction, } from './core';
|
|
35
|
+
export type { WorkflowItem, PagedResponse, ListAllResult, ApiResult, SharedNode, SharedNodeFetcher, WorkflowFetcher, RuleChainAPIOptions, RuleChainRoutes, WorkflowListIcons, WorkflowInfoIcons, WorkflowTheme, RuleMaintenanceSeverity, RuleMaintenanceCategory, RuleMaintenanceIssue, RuleMaintenanceRuntimeInfo, RuleValidateUpstreamRequest, RuleValidateUpstreamResponse, RuleSchemaDiffResponse, RuleRepairPlanResponse, JSONPatchOperation, RulePatchPreviewResponse, ApiAuthRequiredDetails, ApiAuthRequiredHandler, ApiCacheKey, EditorApiConfig, } from './api';
|
|
36
|
+
export type { ExplorerTreeNode, ExplorerTreeNodeKind, ExplorerTreeLabels, ExplorerTreeOptions, ExplorerTreePersistenceState, ExplorerTreeStoreOptions, ExplorerTreeState, } from './core';
|
|
58
37
|
export * from './models';
|
|
59
38
|
export * from './nodes/AgentOrchestrationNode';
|
|
60
39
|
export * from './nodes/GroupNode';
|
|
61
40
|
export * from './nodes/SwitchNode';
|
|
62
|
-
//# sourceMappingURL=index.d.ts.map
|