@tmagic/editor 1.8.0-beta.14 → 1.8.0-beta.16

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.
@@ -16,9 +16,6 @@
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
18
  */
19
-
20
- import type { AppContext } from 'vue';
21
-
22
19
  import {
23
20
  HookType,
24
21
  NODE_CONDS_KEY,
@@ -27,18 +24,7 @@ import {
27
24
  NODE_DISABLE_DATA_SOURCE_KEY,
28
25
  } from '@tmagic/core';
29
26
  import { tMagicMessage } from '@tmagic/design';
30
- import type {
31
- ChildConfig,
32
- DisplayCondsConfig,
33
- FormConfig,
34
- FormState,
35
- FormValue,
36
- TabConfig,
37
- TabPaneConfig,
38
- } from '@tmagic/form';
39
- import { validateForm } from '@tmagic/form';
40
-
41
- import type { Services } from '@editor/type';
27
+ import type { ChildConfig, DisplayCondsConfig, FormConfig, TabConfig, TabPaneConfig } from '@tmagic/form';
42
28
 
43
29
  export const arrayOptions = [
44
30
  { text: '包含', value: 'include' },
@@ -403,86 +389,3 @@ export const removeStyleDisplayConfig = (formConfig: FormConfig): FormConfig =>
403
389
  }),
404
390
  };
405
391
  });
406
-
407
- // #region ValidatePropsFormOptions
408
- /**
409
- * validatePropsForm 参数
410
- */
411
- export interface ValidatePropsFormOptions {
412
- /** 组件属性表单配置 */
413
- config: FormConfig;
414
- /** 待校验的表单值 */
415
- values: FormValue;
416
- /**
417
- * 当前组件实例的 appContext(通常为 `getCurrentInstance()?.appContext`)。
418
- * 会与 services 一并合入临时 MForm 的 appContext,使编辑器字段组件(DataSourceInput 等)能正常 inject。
419
- */
420
- appContext?: AppContext | null;
421
- /** 编辑器服务集合,注入到临时表单的 formState */
422
- services?: Services;
423
- /** stage 实例,注入到临时表单的 formState */
424
- stage?: any;
425
- /** 外部扩展的 formState */
426
- extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
427
- /**
428
- * 调试模式,默认 `true`:以弹层形式可见地渲染表单,点击「确定」才触发校验。
429
- * 置为 `false` 时静默挂载后自动校验。
430
- */
431
- debug?: boolean;
432
- typeMatchValid?: boolean;
433
- }
434
- // #endregion ValidatePropsFormOptions
435
-
436
- /**
437
- * 对一份「组件属性表单配置 + 值」做一次独立的校验,**不复用也不污染页面上正在展示的表单**。
438
- *
439
- * 内部基于 `@tmagic/form` 的 `validateForm` 另建一个独立的 MForm 实例完成校验,并统一处理
440
- * 编辑器场景所需的上下文注入:将当前组件实例的 provides 合入 appContext,并向 formState 注入
441
- * stage / services 及外部扩展状态,保证校验规则依赖的上下文可用。
442
- *
443
- * 常用于源码编辑器保存后,对最新配置做一次校验,并将校验结果(错误信息)随提交一并抛给上层记录,
444
- * 使源码保存的错误状态与表单编辑保持一致。
445
- *
446
- * @returns 校验通过返回空字符串 `''`,否则返回以 `<br>` 拼接的错误文案。
447
- * 仅在初始化超时或挂载失败等异常情况下才会 reject。
448
- *
449
- * @example
450
- * ```ts
451
- * const error = await validatePropsForm({
452
- * config,
453
- * values,
454
- * appContext: getCurrentInstance()?.appContext,
455
- * services,
456
- * stage: editorService.get('stage'),
457
- * extendState,
458
- * });
459
- * if (error) {
460
- * // 配置不合法,error 为错误文案
461
- * }
462
- * ```
463
- */
464
- export const validatePropsForm = ({
465
- config,
466
- values,
467
- appContext = null,
468
- services,
469
- stage,
470
- extendState,
471
- debug,
472
- typeMatchValid,
473
- }: ValidatePropsFormOptions): Promise<string> =>
474
- validateForm({
475
- config,
476
- debug,
477
- typeMatchValid,
478
- initValues: values,
479
- // 将当前组件实例的 provides(含 Editor 顶层的 services / codeOptions 等组件级 provide)
480
- // 合入 appContext,使临时 MForm 中的编辑器字段组件(DataSourceInput 等)能正常 inject
481
- appContext: appContext ? { ...appContext, provides: { services } } : null,
482
- // 与页面表单保持一致:注入 stage/services 及外部扩展状态,保证校验规则依赖的上下文可用
483
- extendState: async (state) => ({
484
- ...((await extendState?.(state)) || {}),
485
- stage,
486
- services,
487
- }),
488
- });
@@ -20,6 +20,7 @@ import type { DataSourceFieldType, DataSourceSchema, Id } from '@tmagic/core';
20
20
  import { NodeType } from '@tmagic/core';
21
21
  import { appendValidateSuggestion } from '@tmagic/design';
22
22
  import type { TypeMatchValidateContext, TypeMatchValidator } from '@tmagic/form';
23
+ import { validateTypeMatch } from '@tmagic/form';
23
24
  import {
24
25
  DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX,
25
26
  DATA_SOURCE_SET_DATA_METHOD_NAME,
@@ -57,7 +58,7 @@ const stringifyExampleValue = (value: any): string => {
57
58
  };
58
59
 
59
60
  // 参考建议中最多展示的可选值个数,超出以「等」省略。
60
- const MAX_SUGGESTION_OPTIONS = 5;
61
+ const MAX_SUGGESTION_OPTIONS = 20;
61
62
 
62
63
  /**
63
64
  * 生成「请使用以下某一个值:xxx;xxx」形式的参考建议;无可选值时返回空字符串(不追加建议)。
@@ -261,16 +262,20 @@ const validateDataSourceFieldPath = (
261
262
 
262
263
  const ds = findDataSource(`${dsId}`);
263
264
  if (!ds) {
264
- return defaultMessage(options.message, '值不在可选项中', dataSourceIdSuggestion());
265
+ return defaultMessage(options.message, `数据源(${dsId})不存在`, dataSourceIdSuggestion());
265
266
  }
266
267
 
267
268
  if (!fieldNames.length) {
268
269
  return undefined;
269
270
  }
270
271
 
271
- const { field, ok } = resolveFieldByPath(ds.fields, fieldNames);
272
+ const { field, ok, fields, failedName } = resolveFieldByPath(ds.fields, fieldNames);
272
273
  if (!ok) {
273
- return defaultMessage(options.message, '值不在可选项中', dataSourceIdSuggestion());
274
+ return defaultMessage(
275
+ options.message,
276
+ `数据源字段(${failedName})不存在`,
277
+ listSuggestion(fields.map((item) => item.name)),
278
+ );
274
279
  }
275
280
 
276
281
  const allowedTypes = options.dataSourceFieldType || ['any'];
@@ -471,11 +476,12 @@ const isDataSourceFieldPathValue = (value: any, config: any): value is string[]
471
476
  return `${value[0]}`.startsWith(DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX);
472
477
  };
473
478
 
474
- const validateDataSourceFieldSelect: TypeMatchValidator = (value, { message, props }) => {
479
+ const validateDataSourceFieldSelect: TypeMatchValidator = (value, { mForm, message, props }) => {
475
480
  const config = props.config || {};
476
481
 
477
482
  if (config.fieldConfig && !isDataSourceFieldPathValue(value, config)) {
478
- return undefined;
483
+ // 值不是数据源字段路径时,按 fieldConfig 的类型校验(与表单项自身 typeMatch 行为一致)
484
+ return validateTypeMatch(value, mForm, { ...props, config: { name: config.name, ...config.fieldConfig } }, message);
479
485
  }
480
486
 
481
487
  if (!Array.isArray(value) || value.some((item) => typeof item !== 'string')) {
package/types/index.d.ts CHANGED
@@ -1214,6 +1214,22 @@ declare class History extends BaseService {
1214
1214
  * @param id 目标栈 id;缺省表示标记全部类型 / 全部栈
1215
1215
  */
1216
1216
  markSaved(stepType: HistoryStepType, id?: Id): void;
1217
+ /**
1218
+ * 派发「页面 / 页面片结构变更」事件(`page-structure-change`)。
1219
+ *
1220
+ * 常规 `editorService.add` / `remove` 页面节点不会写入 `page` 历史栈(见 editor.add / remove 中
1221
+ * 对 isPage / isPageFragment 的分支),因此不会产生任何 historyService 事件。该方法用于在这些
1222
+ * 场景(以及 setRoot 整体替换 DSL 增删页面)下,向外统一通知页面结构的增删变化,供业务方感知。
1223
+ *
1224
+ * 一次操作涉及多个页面时,调用方应把本次增删的页面**合并为一个 change 一次性传入**,
1225
+ * 使一次操作只派发一个事件;`add` / `remove` 分别为本次新增与删除的页面列表(其一可为空数组)。
1226
+ *
1227
+ * @param change 本次结构变更:{ add: 新增的页面列表, remove: 删除的页面列表 }
1228
+ */
1229
+ notifyPageStructureChange(change: {
1230
+ add: (MPage | MPageFragment)[];
1231
+ remove: (MPage | MPageFragment)[];
1232
+ }): void;
1217
1233
  /**
1218
1234
  * 把当前内存中的全部历史栈(页面 / 代码块 / 数据源 / 扩展类型)序列化后写入本地 IndexedDB。
1219
1235
  *
@@ -2694,6 +2710,15 @@ interface HistoryEvents {
2694
2710
  marker: StepValue;
2695
2711
  stepType: HistoryStepType;
2696
2712
  }];
2713
+ /**
2714
+ * 页面 / 页面片结构变更(新增 / 删除)时派发,见 {@link HistoryService.notifyPageStructureChange}。
2715
+ * 一次操作(add / remove / setRoot 整体替换)涉及多个页面时合并为**一个**事件;
2716
+ * `add` / `remove` 分别为本次新增与删除的页面列表(其一可为空数组)。
2717
+ */
2718
+ 'page-structure-change': [change: {
2719
+ add: (MPage | MPageFragment)[];
2720
+ remove: (MPage | MPageFragment)[];
2721
+ }];
2697
2722
  }
2698
2723
  declare const canUsePluginMethods: {
2699
2724
  async: readonly ["getLayout", "highlight", "select", "multiSelect", "doAdd", "add", "doRemove", "remove", "doUpdate", "update", "sort", "copy", "paste", "doPaste", "doAlignCenter", "alignCenter", "moveLayer", "moveToContainer", "dragTo", "undo", "redo", "move"];
@@ -3084,70 +3109,6 @@ declare const fillConfig: (config?: FormConfig, {
3084
3109
  * @returns 处理后的表单配置(不修改入参,返回浅拷贝)
3085
3110
  */
3086
3111
  declare const removeStyleDisplayConfig: (formConfig: FormConfig) => FormConfig;
3087
- /**
3088
- * validatePropsForm 参数
3089
- */
3090
- interface ValidatePropsFormOptions {
3091
- /** 组件属性表单配置 */
3092
- config: FormConfig;
3093
- /** 待校验的表单值 */
3094
- values: FormValue;
3095
- /**
3096
- * 当前组件实例的 appContext(通常为 `getCurrentInstance()?.appContext`)。
3097
- * 会与 services 一并合入临时 MForm 的 appContext,使编辑器字段组件(DataSourceInput 等)能正常 inject。
3098
- */
3099
- appContext?: AppContext | null;
3100
- /** 编辑器服务集合,注入到临时表单的 formState */
3101
- services?: Services;
3102
- /** stage 实例,注入到临时表单的 formState */
3103
- stage?: any;
3104
- /** 外部扩展的 formState */
3105
- extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
3106
- /**
3107
- * 调试模式,默认 `true`:以弹层形式可见地渲染表单,点击「确定」才触发校验。
3108
- * 置为 `false` 时静默挂载后自动校验。
3109
- */
3110
- debug?: boolean;
3111
- typeMatchValid?: boolean;
3112
- }
3113
- /**
3114
- * 对一份「组件属性表单配置 + 值」做一次独立的校验,**不复用也不污染页面上正在展示的表单**。
3115
- *
3116
- * 内部基于 `@tmagic/form` 的 `validateForm` 另建一个独立的 MForm 实例完成校验,并统一处理
3117
- * 编辑器场景所需的上下文注入:将当前组件实例的 provides 合入 appContext,并向 formState 注入
3118
- * stage / services 及外部扩展状态,保证校验规则依赖的上下文可用。
3119
- *
3120
- * 常用于源码编辑器保存后,对最新配置做一次校验,并将校验结果(错误信息)随提交一并抛给上层记录,
3121
- * 使源码保存的错误状态与表单编辑保持一致。
3122
- *
3123
- * @returns 校验通过返回空字符串 `''`,否则返回以 `<br>` 拼接的错误文案。
3124
- * 仅在初始化超时或挂载失败等异常情况下才会 reject。
3125
- *
3126
- * @example
3127
- * ```ts
3128
- * const error = await validatePropsForm({
3129
- * config,
3130
- * values,
3131
- * appContext: getCurrentInstance()?.appContext,
3132
- * services,
3133
- * stage: editorService.get('stage'),
3134
- * extendState,
3135
- * });
3136
- * if (error) {
3137
- * // 配置不合法,error 为错误文案
3138
- * }
3139
- * ```
3140
- */
3141
- declare const validatePropsForm: ({
3142
- config,
3143
- values,
3144
- appContext,
3145
- services,
3146
- stage,
3147
- extendState,
3148
- debug,
3149
- typeMatchValid
3150
- }: ValidatePropsFormOptions) => Promise<string>;
3151
3112
  //#endregion
3152
3113
  //#region temp/packages/editor/src/utils/code-block.d.ts
3153
3114
  /**
@@ -3196,7 +3157,7 @@ declare const getCodeBlockFormConfig: (options?: GetCodeBlockFormConfigOptions)
3196
3157
  declare const log: (...args: any[]) => void;
3197
3158
  declare const info: (...args: any[]) => void;
3198
3159
  declare const warn: (...args: any[]) => void;
3199
- declare const debug$1: (...args: any[]) => void;
3160
+ declare const debug: (...args: any[]) => void;
3200
3161
  declare const error: (...args: any[]) => void;
3201
3162
  //#endregion
3202
3163
  //#region temp/packages/editor/src/utils/editor.d.ts
@@ -3370,6 +3331,7 @@ declare const resolveFieldByPath: (fields: DataSchema[] | undefined, fieldNames:
3370
3331
  ok: boolean;
3371
3332
  field?: DataSchema;
3372
3333
  fields: DataSchema[];
3334
+ failedName?: string;
3373
3335
  };
3374
3336
  declare const getFieldType: (ds: DataSourceSchema | undefined, fieldNames: string[]) => "" | DataSourceFieldType;
3375
3337
  //#endregion
@@ -6880,4 +6842,4 @@ declare const _default$43: {
6880
6842
  install: (app: App, opt?: Partial<EditorInstallOptions | DesignPluginOptions | FormInstallOptions>) => void;
6881
6843
  };
6882
6844
  //#endregion
6883
- export { ALL_COND_OPS, AddMNode, AddPrefixToObject, AsyncAfterHook, AsyncBeforeHook, AsyncHookPlugin, AsyncMethodName, BaseStepValue, BeforeAdd, CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, CanDropInFunction, CanDropInScene, _default as CodeBlockEditor, _default$1 as CodeBlockList, _default$2 as CodeBlockListPanel, CodeBlockListPanelSlots, CodeBlockListSlots, CodeBlockStepValue, CodeDeleteErrorType, CodeDslItem, CodeParamStatement, CodeRelation, _default$3 as CodeSelect, _default$4 as CodeSelectCol, CodeState, ColumnLayout, CombineInfo, CompareCategory, _default$5 as CompareForm, CompareFormBaseProps, CompareFormLoadConfig, CompareFormLoadConfigContext, ComponentGroup, ComponentGroupState, ComponentItem, _default$6 as ComponentListPanel, ComponentListPanelSlots, _default$7 as CondOpSelect, ConfirmAndRevertOptions, _default$8 as ContentMenu, ContentMenuTarget, ContentMenuType, CustomContentMenuFunction, CustomDiffFormOptions, DEFAULT_LEFT_COLUMN_WIDTH, DEFAULT_RIGHT_COLUMN_WIDTH, _default$9 as DataSourceAddButton, _default$10 as DataSourceConfigPanel, _default$11 as DataSourceFieldSelect, _default$12 as DataSourceFields, _default$13 as DataSourceInput, DataSourceListSlots, _default$14 as DataSourceMethodSelect, _default$15 as DataSourceMethods, _default$16 as DataSourceMocks, _default$17 as DataSourceSelect, DataSourceStepValue, DatasourceTypeOption, DepTargetType, DiffDialogPayload, _default$18 as DisplayConds, DragClassification, DragType, DslOpOptions, DslOpWithHistoryIdsResult, EVENT_NAME_VALUE_SEPARATOR, EditorChangeEvent, EditorChangeEventHistoryMeta, EditorChangeItem, EditorEvents, EditorInstallOptions, EditorNodeInfo, EditorSlots, EditorUpdateChangeItem, EventBus, EventBusEvent, EventNameOption, EventNameSelectOption, _default$19 as EventSelect, Fixed2Other, _default$20 as FloatingBox, FrameworkSlots, GetCodeBlockFormConfigOptions, GetColumnWidth, GetConfig, H_GUIDE_LINE_STORAGE_KEY, HistoryBucketConfig, _default$21 as HistoryDiffDialog, HistoryEvents, HistoryGroup, _default$22 as HistoryListBucket, _default$23 as HistoryListBucketTab, HistoryListExtraTab, HistoryOpOptions, HistoryOpOptionsWithChangeRecords, HistoryOpSource, HistoryOpType, HistoryPersistOptions, HistoryRowDescriptor, HistoryState, HistoryStepEntry, HistoryStepType, HistorySteps, _default$24 as Icon, IdleTask, IdleTaskEvents, IsExpandableFunction, KeyBindingCacheItem, KeyBindingCommand, KeyBindingItem, _default$25 as KeyValue, Keys, LEFT_COLUMN_WIDTH_STORAGE_KEY, _default$26 as LayerNodeContent, LayerNodeSlots, LayerNodeStatus, LayerOffset, _default$27 as LayerPanel, LayerPanelSlots, Layout, _default$28 as LayoutContainer, _default$28 as SplitView, ListState, MIN_CENTER_COLUMN_WIDTH, MIN_LEFT_COLUMN_WIDTH, MIN_RIGHT_COLUMN_WIDTH, MenuBarData, MenuButton, MenuComponent, MenuItem, NodeInvalidInfo, NodeInvalidSource, type OnDrag, PROPS_PANEL_WIDTH_STORAGE_KEY, PageBarSortOptions, _default$29 as PageFragmentSelect, PartSortableOptions, PastePosition, PersistedHistoryState, PropsFormConfigFunction, _default$30 as PropsFormPanel, PropsFormValueFunction, _default$31 as PropsPanel, PropsPanelSlots, PropsState, RIGHT_COLUMN_WIDTH_STORAGE_KEY, _default$32 as Resizer, ScrollViewer, ScrollViewerEvent, ScrollViewerSlots, SerializedUndoRedo, Services, SetColumnWidth, SideBarData, SideComponent, SideItem, SideItemKey, SidebarSlots, StageCore, StageOptions, StageOverlayState, StageRect, StageSlots, StepDiffItem, StepExtra, StepValue, StoreState, StoreStateKey, _default$33 as StyleSetter, SyncAfterHook, SyncBeforeHook, SyncHookPlugin, _default$34 as TMagicCodeEditor, _default$35 as TMagicEditor, _default$36 as ToolButton, _default$37 as Tree, _default$38 as TreeNode, TreeNodeData, type TypeMatchValidateContext, UI_SELECT_MODE_EVENT_NAME, UiState, UndoRedo, UseCompareFormReturn, UseHistoryRevertOptions, V_GUIDE_LINE_STORAGE_KEY, ValidatePropsFormOptions, _default$39 as ViewForm, WorkspaceSlots, advancedTabConfig, arrayOptions, beforePaste, booleanOptions, buildChangeRecords, calcAlignCenterStyle, calcLayerTargetIndex, calcMoveStyle, canUsePluginMethods, change2Fixed, classifyDragSources, _default$40 as codeBlockService, collectEventNameOptionValues, collectRelatedNodes, _default$41 as componentListService, confirmHistoryAction, createStackStep, _default$42 as dataSourceService, debug$1 as debug, _default$43 as default, defaultIsExpandable, _default$44 as depService, describeRevertStep, describeStepForRevert, deserializeStacks, designPlugin, detectStackOpType, detectTargetId, detectTargetName, displayTabConfig, editorNodeMergeCustomizer, _default$45 as editorService, editorTypeMatchRules, eqOptions, error, eventTabConfig, _default$46 as eventsService, fillConfig, fixNodeLeft, fixNodePosition, formPlugin, generatePageName, generatePageNameByApp, getAddParent, getCascaderOptionsFromFields, getCodeBlockFormConfig, getCompActionAllowedValues, getCompActionOptions, getCondOpOptionsByFieldType, getDefaultConfig, getDisplayField, getEditorConfig, getEventNameAllowedValues, getEventNameOptions, getFieldType, getFormConfig, getFormValue, getGuideLineFromCache, getInitPositionStyle, getLastPushedHistoryIds, getNodeIndex, getOrCreateStack, getPageFragmentList, getPageList, getPageNameList, getPositionInContainer, getRelativeStyle, _default$47 as historyService, idbDelete, idbGet, idbSet, info, isEventNameCheckStrictly, isGlobalFlat, isIncludeDataSource, isIndexedDBSupported, _default$48 as keybindingService, _default$49 as loadMonaco, log, markStackSaved, mergeSteps, moveItemsInContainer, normalizeCompActionValue, numberOptions, openIndexedDB, _default$50 as propsService, removeStyleDisplayConfig, resolveFieldByPath, resolveSelectedNode, serializeConfig, serializeStacks, setChildrenLayout, setEditorConfig, setLayout, _default$51 as stageOverlayService, _default$52 as storageService, styleTabConfig, tablePlugin, toggleFixedPosition, _default$53 as uiService, undoFloor, updateStatus, useCodeBlockEdit, useCompareForm, useEditorContentHeight, useFilter, useFloatBox, useGetSo, useHistoryRevert, useNextFloatBoxPosition, useNodeStatus, useServices, useStage, useWindowRect, validatePropsForm, warn };
6845
+ export { ALL_COND_OPS, AddMNode, AddPrefixToObject, AsyncAfterHook, AsyncBeforeHook, AsyncHookPlugin, AsyncMethodName, BaseStepValue, BeforeAdd, CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, CanDropInFunction, CanDropInScene, _default as CodeBlockEditor, _default$1 as CodeBlockList, _default$2 as CodeBlockListPanel, CodeBlockListPanelSlots, CodeBlockListSlots, CodeBlockStepValue, CodeDeleteErrorType, CodeDslItem, CodeParamStatement, CodeRelation, _default$3 as CodeSelect, _default$4 as CodeSelectCol, CodeState, ColumnLayout, CombineInfo, CompareCategory, _default$5 as CompareForm, CompareFormBaseProps, CompareFormLoadConfig, CompareFormLoadConfigContext, ComponentGroup, ComponentGroupState, ComponentItem, _default$6 as ComponentListPanel, ComponentListPanelSlots, _default$7 as CondOpSelect, ConfirmAndRevertOptions, _default$8 as ContentMenu, ContentMenuTarget, ContentMenuType, CustomContentMenuFunction, CustomDiffFormOptions, DEFAULT_LEFT_COLUMN_WIDTH, DEFAULT_RIGHT_COLUMN_WIDTH, _default$9 as DataSourceAddButton, _default$10 as DataSourceConfigPanel, _default$11 as DataSourceFieldSelect, _default$12 as DataSourceFields, _default$13 as DataSourceInput, DataSourceListSlots, _default$14 as DataSourceMethodSelect, _default$15 as DataSourceMethods, _default$16 as DataSourceMocks, _default$17 as DataSourceSelect, DataSourceStepValue, DatasourceTypeOption, DepTargetType, DiffDialogPayload, _default$18 as DisplayConds, DragClassification, DragType, DslOpOptions, DslOpWithHistoryIdsResult, EVENT_NAME_VALUE_SEPARATOR, EditorChangeEvent, EditorChangeEventHistoryMeta, EditorChangeItem, EditorEvents, EditorInstallOptions, EditorNodeInfo, EditorSlots, EditorUpdateChangeItem, EventBus, EventBusEvent, EventNameOption, EventNameSelectOption, _default$19 as EventSelect, Fixed2Other, _default$20 as FloatingBox, FrameworkSlots, GetCodeBlockFormConfigOptions, GetColumnWidth, GetConfig, H_GUIDE_LINE_STORAGE_KEY, HistoryBucketConfig, _default$21 as HistoryDiffDialog, HistoryEvents, HistoryGroup, _default$22 as HistoryListBucket, _default$23 as HistoryListBucketTab, HistoryListExtraTab, HistoryOpOptions, HistoryOpOptionsWithChangeRecords, HistoryOpSource, HistoryOpType, HistoryPersistOptions, HistoryRowDescriptor, HistoryState, HistoryStepEntry, HistoryStepType, HistorySteps, _default$24 as Icon, IdleTask, IdleTaskEvents, IsExpandableFunction, KeyBindingCacheItem, KeyBindingCommand, KeyBindingItem, _default$25 as KeyValue, Keys, LEFT_COLUMN_WIDTH_STORAGE_KEY, _default$26 as LayerNodeContent, LayerNodeSlots, LayerNodeStatus, LayerOffset, _default$27 as LayerPanel, LayerPanelSlots, Layout, _default$28 as LayoutContainer, _default$28 as SplitView, ListState, MIN_CENTER_COLUMN_WIDTH, MIN_LEFT_COLUMN_WIDTH, MIN_RIGHT_COLUMN_WIDTH, MenuBarData, MenuButton, MenuComponent, MenuItem, NodeInvalidInfo, NodeInvalidSource, type OnDrag, PROPS_PANEL_WIDTH_STORAGE_KEY, PageBarSortOptions, _default$29 as PageFragmentSelect, PartSortableOptions, PastePosition, PersistedHistoryState, PropsFormConfigFunction, _default$30 as PropsFormPanel, PropsFormValueFunction, _default$31 as PropsPanel, PropsPanelSlots, PropsState, RIGHT_COLUMN_WIDTH_STORAGE_KEY, _default$32 as Resizer, ScrollViewer, ScrollViewerEvent, ScrollViewerSlots, SerializedUndoRedo, Services, SetColumnWidth, SideBarData, SideComponent, SideItem, SideItemKey, SidebarSlots, StageCore, StageOptions, StageOverlayState, StageRect, StageSlots, StepDiffItem, StepExtra, StepValue, StoreState, StoreStateKey, _default$33 as StyleSetter, SyncAfterHook, SyncBeforeHook, SyncHookPlugin, _default$34 as TMagicCodeEditor, _default$35 as TMagicEditor, _default$36 as ToolButton, _default$37 as Tree, _default$38 as TreeNode, TreeNodeData, type TypeMatchValidateContext, UI_SELECT_MODE_EVENT_NAME, UiState, UndoRedo, UseCompareFormReturn, UseHistoryRevertOptions, V_GUIDE_LINE_STORAGE_KEY, _default$39 as ViewForm, WorkspaceSlots, advancedTabConfig, arrayOptions, beforePaste, booleanOptions, buildChangeRecords, calcAlignCenterStyle, calcLayerTargetIndex, calcMoveStyle, canUsePluginMethods, change2Fixed, classifyDragSources, _default$40 as codeBlockService, collectEventNameOptionValues, collectRelatedNodes, _default$41 as componentListService, confirmHistoryAction, createStackStep, _default$42 as dataSourceService, debug, _default$43 as default, defaultIsExpandable, _default$44 as depService, describeRevertStep, describeStepForRevert, deserializeStacks, designPlugin, detectStackOpType, detectTargetId, detectTargetName, displayTabConfig, editorNodeMergeCustomizer, _default$45 as editorService, editorTypeMatchRules, eqOptions, error, eventTabConfig, _default$46 as eventsService, fillConfig, fixNodeLeft, fixNodePosition, formPlugin, generatePageName, generatePageNameByApp, getAddParent, getCascaderOptionsFromFields, getCodeBlockFormConfig, getCompActionAllowedValues, getCompActionOptions, getCondOpOptionsByFieldType, getDefaultConfig, getDisplayField, getEditorConfig, getEventNameAllowedValues, getEventNameOptions, getFieldType, getFormConfig, getFormValue, getGuideLineFromCache, getInitPositionStyle, getLastPushedHistoryIds, getNodeIndex, getOrCreateStack, getPageFragmentList, getPageList, getPageNameList, getPositionInContainer, getRelativeStyle, _default$47 as historyService, idbDelete, idbGet, idbSet, info, isEventNameCheckStrictly, isGlobalFlat, isIncludeDataSource, isIndexedDBSupported, _default$48 as keybindingService, _default$49 as loadMonaco, log, markStackSaved, mergeSteps, moveItemsInContainer, normalizeCompActionValue, numberOptions, openIndexedDB, _default$50 as propsService, removeStyleDisplayConfig, resolveFieldByPath, resolveSelectedNode, serializeConfig, serializeStacks, setChildrenLayout, setEditorConfig, setLayout, _default$51 as stageOverlayService, _default$52 as storageService, styleTabConfig, tablePlugin, toggleFixedPosition, _default$53 as uiService, undoFloor, updateStatus, useCodeBlockEdit, useCompareForm, useEditorContentHeight, useFilter, useFloatBox, useGetSo, useHistoryRevert, useNextFloatBoxPosition, useNodeStatus, useServices, useStage, useWindowRect, warn };