@tmagic/editor 1.8.0-beta.4 → 1.8.0-beta.5

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.
Files changed (57) hide show
  1. package/dist/es/components/CompareForm.vue_vue_type_script_setup_true_lang.js +1 -1
  2. package/dist/es/components/ToolButton.vue_vue_type_script_setup_true_lang.js +6 -6
  3. package/dist/es/index.js +6 -3
  4. package/dist/es/initService.js +1 -1
  5. package/dist/es/layouts/Framework.vue_vue_type_script_setup_true_lang.js +1 -1
  6. package/dist/es/layouts/history-list/Bucket.vue_vue_type_script_setup_true_lang.js +19 -55
  7. package/dist/es/layouts/history-list/BucketTab.vue_vue_type_script_setup_true_lang.js +22 -39
  8. package/dist/es/layouts/history-list/GroupRow.vue_vue_type_script_setup_true_lang.js +149 -103
  9. package/dist/es/layouts/history-list/HistoryDiffDialog.vue_vue_type_script_setup_true_lang.js +32 -8
  10. package/dist/es/layouts/history-list/HistoryListPanel.vue_vue_type_script_setup_true_lang.js +333 -211
  11. package/dist/es/layouts/history-list/InitialRow.vue_vue_type_script_setup_true_lang.js +28 -7
  12. package/dist/es/layouts/history-list/PageTab.vue_vue_type_script_setup_true_lang.js +47 -60
  13. package/dist/es/layouts/history-list/composables.js +73 -32
  14. package/dist/es/layouts/page-bar/PageBar.vue_vue_type_script_setup_true_lang.js +4 -2
  15. package/dist/es/layouts/sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js +5 -1
  16. package/dist/es/services/codeBlock.js +85 -37
  17. package/dist/es/services/dataSource.js +62 -26
  18. package/dist/es/services/editor.js +243 -100
  19. package/dist/es/services/history.js +270 -206
  20. package/dist/es/services/ui.js +3 -0
  21. package/dist/es/style.css +49 -6
  22. package/dist/es/utils/editor.js +35 -1
  23. package/dist/es/utils/history.js +223 -0
  24. package/dist/es/utils/indexed-db.js +86 -0
  25. package/dist/es/utils/undo-redo.js +60 -1
  26. package/dist/style.css +49 -6
  27. package/dist/tmagic-editor.umd.cjs +1799 -905
  28. package/package.json +7 -7
  29. package/src/components/CompareForm.vue +3 -1
  30. package/src/components/ToolButton.vue +2 -2
  31. package/src/index.ts +1 -0
  32. package/src/initService.ts +1 -1
  33. package/src/layouts/Framework.vue +1 -1
  34. package/src/layouts/history-list/Bucket.vue +34 -71
  35. package/src/layouts/history-list/BucketTab.vue +46 -54
  36. package/src/layouts/history-list/GroupRow.vue +146 -111
  37. package/src/layouts/history-list/HistoryDiffDialog.vue +94 -68
  38. package/src/layouts/history-list/HistoryListPanel.vue +296 -113
  39. package/src/layouts/history-list/InitialRow.vue +25 -9
  40. package/src/layouts/history-list/PageTab.vue +57 -51
  41. package/src/layouts/history-list/composables.ts +157 -36
  42. package/src/layouts/page-bar/PageBar.vue +4 -2
  43. package/src/layouts/sidebar/Sidebar.vue +6 -1
  44. package/src/services/codeBlock.ts +107 -37
  45. package/src/services/dataSource.ts +89 -40
  46. package/src/services/editor.ts +370 -134
  47. package/src/services/history.ts +305 -203
  48. package/src/services/ui.ts +7 -0
  49. package/src/theme/history-list-panel.scss +72 -5
  50. package/src/theme/page-bar.scss +0 -4
  51. package/src/type.ts +167 -63
  52. package/src/utils/editor.ts +41 -1
  53. package/src/utils/history.ts +298 -0
  54. package/src/utils/index.ts +2 -0
  55. package/src/utils/indexed-db.ts +122 -0
  56. package/src/utils/undo-redo.ts +88 -0
  57. package/types/index.d.ts +783 -291
package/types/index.d.ts CHANGED
@@ -69,6 +69,16 @@ declare const canUsePluginMethods$7: {
69
69
  type AsyncMethodName$4 = Writable<(typeof canUsePluginMethods$7)['async']>;
70
70
  declare class CodeBlock extends BaseService {
71
71
  private state;
72
+ /**
73
+ * 最近一次写入历史栈的代码块历史记录 uuid(单条写入场景:新增 / 更新)。
74
+ * 供 setCodeDslById(Sync)AndGetHistoryId 取回,普通方法不读取它。
75
+ */
76
+ private lastPushedHistoryId;
77
+ /**
78
+ * deleteCodeDslByIds 一次删除多个代码块时,按写入顺序收集的历史记录 uuid 列表。
79
+ * 在 deleteCodeDslByIds 入口处重置,供 deleteCodeDslByIdsAndGetHistoryId 取回。
80
+ */
81
+ private lastDeletedHistoryIds;
72
82
  constructor();
73
83
  /**
74
84
  * 设置活动的代码块dsl数据源
@@ -184,6 +194,22 @@ declare class CodeBlock extends BaseService {
184
194
  historyDescription,
185
195
  historySource
186
196
  }?: HistoryOpOptions): Promise<void>;
197
+ /**
198
+ * 下列 *AndGetHistoryId 方法与对应的写入方法行为完全一致,
199
+ * 唯一区别是返回值为本次写入历史栈的历史记录 uuid({@link CodeBlockStepValue.uuid}),
200
+ * 可用于精确引用 / 定位该条历史记录(埋点、revert、跨端同步等)。
201
+ *
202
+ * 当本次操作未写入历史(doNotPushHistory 为 true、或无对应记录)时:单条写入返回 null,批量删除返回空数组。
203
+ */
204
+ /** 等价于 {@link setCodeDslById},但返回本次写入历史记录的 uuid(未入栈时返回 null)。 */
205
+ setCodeDslByIdAndGetHistoryId(id: Id, codeConfig: Partial<CodeBlockContent>, options?: HistoryOpOptionsWithChangeRecords): Promise<string | null>;
206
+ /** 等价于 {@link setCodeDslByIdSync},但返回本次写入历史记录的 uuid(未入栈时返回 null)。 */
207
+ setCodeDslByIdSyncAndGetHistoryId(id: Id, codeConfig: Partial<CodeBlockContent>, force?: boolean, options?: HistoryOpOptionsWithChangeRecords): string | null;
208
+ /**
209
+ * 等价于 {@link deleteCodeDslByIds},但返回本次写入的全部历史记录 uuid(按删除顺序)。
210
+ * 一次删除多个代码块会产生多条历史记录,因此返回数组;未写入任何历史时返回空数组。
211
+ */
212
+ deleteCodeDslByIdsAndGetHistoryId(codeIds: Id[], options?: HistoryOpOptions): Promise<string[]>;
187
213
  setParamsColConfig(config: TableColumnConfig): void;
188
214
  getParamsColConfig(): TableColumnConfig | undefined;
189
215
  /**
@@ -227,6 +253,15 @@ declare class CodeBlock extends BaseService {
227
253
  * @returns 反向后产生的新 step;目标不存在 / 未应用时返回 null
228
254
  */
229
255
  revert(id: Id, index: number): Promise<CodeBlockStepValue | null>;
256
+ /**
257
+ * 通过历史记录 uuid 回滚某条代码块历史步骤,语义同 {@link revert},
258
+ * 仅无需调用方再传 codeBlockId 与 index:内部会按 uuid({@link CodeBlockStepValue.uuid})
259
+ * 在全部代码块栈中定位对应步骤后再回滚。
260
+ *
261
+ * @param uuid 目标历史记录的 uuid,通常由 {@link setCodeDslByIdAndGetHistoryId} 等方法返回
262
+ * @returns 反向后产生的新 step;找不到对应 uuid / 未应用时返回 null
263
+ */
264
+ revertById(uuid: string): Promise<CodeBlockStepValue | null>;
230
265
  /**
231
266
  * 生成代码块唯一id
232
267
  * @returns {Id} 代码块唯一id
@@ -268,7 +303,7 @@ declare class CodeBlock extends BaseService {
268
303
  private applyHistoryStep;
269
304
  }
270
305
  type CodeBlockService = CodeBlock;
271
- declare const _default$37: CodeBlock;
306
+ declare const _default$38: CodeBlock;
272
307
  //#endregion
273
308
  //#region temp/packages/editor/src/services/componentList.d.ts
274
309
  declare class ComponentList extends BaseService {
@@ -302,6 +337,12 @@ declare const canUsePluginMethods$6: {
302
337
  type SyncMethodName$4 = Writable<(typeof canUsePluginMethods$6)['sync']>;
303
338
  declare class DataSource extends BaseService {
304
339
  private state;
340
+ /**
341
+ * 最近一次写入历史栈的数据源历史记录 uuid。
342
+ * 供 *AndGetHistoryId 系列方法在调用 add / update / remove 后取回本次产生的历史记录 id;
343
+ * 普通方法不读取它,调用前由 *AndGetHistoryId 重置为 null。
344
+ */
345
+ private lastPushedHistoryId;
305
346
  constructor();
306
347
  set<K extends StateKey$1, T extends State$2[K]>(name: K, value: T): void;
307
348
  get<K extends StateKey$1>(name: K): State$2[K];
@@ -361,6 +402,19 @@ declare class DataSource extends BaseService {
361
402
  historyDescription,
362
403
  historySource
363
404
  }?: HistoryOpOptions): void;
405
+ /**
406
+ * 下列 *AndGetHistoryId 方法与对应的 add / update / remove 行为完全一致,
407
+ * 唯一区别是返回值为本次写入历史栈的历史记录 uuid({@link DataSourceStepValue.uuid}),
408
+ * 而非数据源配置。可用于精确引用 / 定位该条历史记录(埋点、revert、跨端同步等)。
409
+ *
410
+ * 当本次操作未写入历史(doNotPushHistory 为 true、或无对应记录)时返回 null。
411
+ */
412
+ /** 等价于 {@link add},但返回本次写入历史记录的 uuid(未入栈时返回 null)。 */
413
+ addAndGetHistoryId(config: DataSourceSchema, options?: HistoryOpOptions): string | null;
414
+ /** 等价于 {@link update},但返回本次写入历史记录的 uuid(未入栈时返回 null)。 */
415
+ updateAndGetHistoryId(config: DataSourceSchema, options?: HistoryOpOptionsWithChangeRecords): string | null;
416
+ /** 等价于 {@link remove},但返回本次写入历史记录的 uuid(未入栈时返回 null)。 */
417
+ removeAndGetHistoryId(id: string, options?: HistoryOpOptions): string | null;
364
418
  /**
365
419
  * 撤销指定数据源的最近一次变更。
366
420
  *
@@ -401,6 +455,15 @@ declare class DataSource extends BaseService {
401
455
  * @returns 反向后产生的新 step;目标不存在 / 未应用时返回 null
402
456
  */
403
457
  revert(id: Id, index: number): DataSourceStepValue | null;
458
+ /**
459
+ * 通过历史记录 uuid 回滚某条数据源历史步骤,语义同 {@link revert},
460
+ * 仅无需调用方再传 dataSourceId 与 index:内部会按 uuid({@link DataSourceStepValue.uuid})
461
+ * 在全部数据源栈中定位对应步骤后再回滚。
462
+ *
463
+ * @param uuid 目标历史记录的 uuid,通常由 {@link addAndGetHistoryId} 等方法返回
464
+ * @returns 反向后产生的新 step;找不到对应 uuid / 未应用时返回 null
465
+ */
466
+ revertById(uuid: string): DataSourceStepValue | null;
404
467
  createId(): string;
405
468
  getDataSourceById(id: string): DataSourceSchema | undefined;
406
469
  resetState(): void;
@@ -439,7 +502,7 @@ declare class DataSource extends BaseService {
439
502
  private applyHistoryStep;
440
503
  }
441
504
  type DataSourceService = DataSource;
442
- declare const _default$38: DataSource;
505
+ declare const _default$39: DataSource;
443
506
  //#endregion
444
507
  //#region temp/packages/editor/src/services/dep.d.ts
445
508
  interface DepEvents {
@@ -492,19 +555,28 @@ declare class Dep extends BaseService {
492
555
  private enqueueTask;
493
556
  }
494
557
  type DepService = Dep;
495
- declare const _default$40: Dep;
558
+ declare const _default$41: Dep;
496
559
  //#endregion
497
560
  //#region temp/packages/editor/src/services/editor.d.ts
498
561
  declare class Editor extends BaseService {
499
562
  state: StoreState;
500
563
  private selectionBeforeOp;
564
+ /**
565
+ * 最近一次 pushOpHistory 写入的历史记录 uuid。
566
+ * 供 *AndGetHistoryId 系列方法在调用普通操作后取回本次产生的历史记录 id;
567
+ * 普通操作不会读取它,调用前由 *AndGetHistoryId 重置为 null。
568
+ */
569
+ private lastPushedHistoryId;
501
570
  constructor();
502
571
  /**
503
572
  * 设置当前指点节点配置
504
573
  * @param name 'root' | 'page' | 'parent' | 'node' | 'highlightNode' | 'nodes' | 'stage' | 'modifiedNodeIds' | 'pageLength' | 'pageFragmentLength
505
574
  * @param value MNode
575
+ * @param options.historySource 设置 root 时,本次变更写入历史记录的「操作来源」(仅 name === 'root' 时生效)
506
576
  */
507
- set<K extends StoreStateKey, T extends StoreState[K]>(name: K, value: T): void;
577
+ set<K extends StoreStateKey, T extends StoreState[K]>(name: K, value: T, options?: {
578
+ historySource?: HistoryOpSource;
579
+ }): void;
508
580
  /**
509
581
  * 获取当前指点节点配置
510
582
  * @param name 'root' | 'page' | 'parent' | 'node' | 'highlightNode' | 'nodes' | 'stage' | 'modifiedNodeIds' | 'pageLength' | 'pageFragmentLength'
@@ -601,9 +673,11 @@ declare class Editor extends BaseService {
601
673
  historySource
602
674
  }?: DslOpOptions): Promise<void>;
603
675
  doUpdate(config: MNode, {
604
- changeRecords
676
+ changeRecords,
677
+ historySource
605
678
  }?: {
606
679
  changeRecords?: ChangeRecord[];
680
+ historySource?: HistoryOpSource;
607
681
  }): Promise<{
608
682
  newNode: MNode;
609
683
  oldNode: MNode;
@@ -725,6 +799,31 @@ declare class Editor extends BaseService {
725
799
  historyDescription,
726
800
  historySource
727
801
  }?: DslOpOptions): Promise<void>;
802
+ /**
803
+ * 下列 *AndGetHistoryId 方法与对应的普通操作(add / remove / update ...)行为完全一致,
804
+ * 唯一区别是返回值为本次写入历史栈的历史记录 uuid({@link StepValue.uuid}),
805
+ * 而非节点 / 节点数组。可用于精确引用 / 定位该条历史记录(埋点、revert、跨端同步等)。
806
+ *
807
+ * 当本次操作未写入历史(doNotPushHistory 为 true、或操作无实际变更 / 提前返回)时返回 null。
808
+ */
809
+ /** 等价于 {@link add},但返回本次写入历史记录的 uuid(未入栈时返回 null)。 */
810
+ addAndGetHistoryId(addNode: AddMNode | MNode[], parent?: MContainer | null, options?: DslOpOptions): Promise<string | null>;
811
+ /** 等价于 {@link remove},但返回本次写入历史记录的 uuid(未入栈时返回 null)。 */
812
+ removeAndGetHistoryId(nodeOrNodeList: MNode | MNode[], options?: DslOpOptions): Promise<string | null>;
813
+ /** 等价于 {@link update},但返回本次写入历史记录的 uuid(未入栈时返回 null)。 */
814
+ updateAndGetHistoryId(config: MNode | MNode[], data?: {
815
+ changeRecords?: ChangeRecord[];
816
+ changeRecordList?: ChangeRecord[][];
817
+ doNotPushHistory?: boolean;
818
+ historyDescription?: string;
819
+ historySource?: HistoryOpSource;
820
+ }): Promise<string | null>;
821
+ /** 等价于 {@link moveLayer},但返回本次写入历史记录的 uuid(未入栈时返回 null)。 */
822
+ moveLayerAndGetHistoryId(offset: number | LayerOffset, options?: DslOpOptions): Promise<string | null>;
823
+ /** 等价于 {@link moveToContainer},但返回本次写入历史记录的 uuid(未入栈时返回 null)。 */
824
+ moveToContainerAndGetHistoryId(config: MNode | MNode[], targetId: Id, options?: DslOpOptions): Promise<string | null>;
825
+ /** 等价于 {@link dragTo},但返回本次写入历史记录的 uuid(未入栈时返回 null)。 */
826
+ dragToAndGetHistoryId(config: MNode | MNode[], targetParent: MContainer, targetIndex: number, options?: DslOpOptions): Promise<string | null>;
728
827
  /**
729
828
  * 撤销当前操作
730
829
  * @returns 被撤销的操作
@@ -752,6 +851,15 @@ declare class Editor extends BaseService {
752
851
  * @returns 反向后产生的新 step;目标不存在 / 未应用 / 反向失败时返回 null
753
852
  */
754
853
  revertPageStep(index: number): Promise<StepValue | null>;
854
+ /**
855
+ * 通过历史记录 uuid 回滚当前页面的某条历史步骤,语义与 {@link revertPageStep} 完全一致,
856
+ * 仅入参从 index 改为 uuid({@link StepValue.uuid})。uuid 不随栈内步骤增删而变化,
857
+ * 更适合业务侧持有引用后再回滚(埋点、跨端同步等场景)。
858
+ *
859
+ * @param uuid 目标历史记录的 uuid,通常由 *AndGetHistoryId 方法返回
860
+ * @returns 反向后产生的新 step;找不到对应 uuid / 未应用 / 反向失败时返回 null
861
+ */
862
+ revertPageStepById(uuid: string): Promise<StepValue | null>;
755
863
  /**
756
864
  * 跳转当前页面历史栈到指定游标位置。
757
865
  *
@@ -776,6 +884,24 @@ declare class Editor extends BaseService {
776
884
  emit<Name extends keyof EditorEvents, Param extends EditorEvents[Name]>(eventName: Name, ...args: Param): boolean;
777
885
  private addModifiedNodeId;
778
886
  private captureSelectionBeforeOp;
887
+ /**
888
+ * 比较「上一次 root」与「新 root」的页面 / 页面片,按页面粒度把整体替换拆成历史记录:
889
+ * - 新旧都存在且内容变化的页面 → 一条 `update`(整页快照替换,无 changeRecords);
890
+ * - 仅新 root 存在的页面 → 一条 `add`;
891
+ * - 仅旧 root 存在的页面 → 一条 `remove`。
892
+ *
893
+ * 每条记录落到对应页面自己的历史栈(与普通节点操作一致),并标记来源 `source`。
894
+ * 内容未变化的页面不产生记录,避免重复设置相同 DSL 时产生噪声。
895
+ */
896
+ private pushRootDiffHistory;
897
+ /**
898
+ * 构造一条页面级「set root」历史记录(不携带选区 / modifiedNodeIds 上下文)并落到该页面自己的栈。
899
+ *
900
+ * 连续 set root 替换:若该页栈最新一条已是**同来源**的 set root 记录({@link StepValue.rootStep} 且 `source` 相同),
901
+ * 则用本次记录**替换**它而非新增,避免源码反复保存 / 外部重设 DSL 时堆积多条 root 记录;
902
+ * 来源不同则照常新增(initial 基线不是 rootStep,不在此列)。
903
+ */
904
+ private pushPageDiffStep;
779
905
  private pushOpHistory;
780
906
  /**
781
907
  * 应用历史操作(撤销 / 重做)
@@ -793,7 +919,7 @@ declare class Editor extends BaseService {
793
919
  private selectedConfigExceptionHandler;
794
920
  }
795
921
  type EditorService = Editor;
796
- declare const _default$41: Editor;
922
+ declare const _default$42: Editor;
797
923
  //#endregion
798
924
  //#region temp/packages/editor/src/services/events.d.ts
799
925
  declare const canUsePluginMethods$5: {
@@ -815,14 +941,40 @@ declare class Events extends BaseService {
815
941
  usePlugin(options: AsyncHookPlugin<AsyncMethodName$3, Events> & SyncHookPlugin<SyncMethodName$3, Events>): void;
816
942
  }
817
943
  type EventsService = Events;
818
- declare const _default$42: Events;
944
+ declare const _default$43: Events;
819
945
  //#endregion
820
946
  //#region temp/packages/editor/src/utils/undo-redo.d.ts
947
+ /**
948
+ * UndoRedo 栈的可序列化快照,用于持久化(如写入 IndexedDB)后再还原。
949
+ */
950
+ interface SerializedUndoRedo<T = any> {
951
+ /** 栈内全部元素(按时间正序,索引 0 为最早一步)。 */
952
+ elementList: T[];
953
+ /** 游标位置(已应用步骤数量)。 */
954
+ listCursor: number;
955
+ /** 栈容量上限。 */
956
+ listMaxSize: number;
957
+ }
821
958
  declare class UndoRedo<T = any> {
959
+ /**
960
+ * 由 {@link UndoRedo.serialize} 产出的快照重建一个 UndoRedo 实例。
961
+ * 游标会被夹紧到 [0, length] 区间,避免脏数据导致越界。
962
+ *
963
+ * @param options.isSavedStep 可选谓词:若提供,则把游标定位到「最近一条满足该谓词的记录」之后
964
+ * (即恢复到最近一个已保存点);找不到匹配记录时退回快照中的原游标。
965
+ */
966
+ static fromSerialized<T = any>(data: SerializedUndoRedo<T>, options?: {
967
+ isSavedStep?: (element: T) => boolean;
968
+ }): UndoRedo<T>;
822
969
  private elementList;
823
970
  private listCursor;
824
971
  private listMaxSize;
825
972
  constructor(listMaxSize?: number);
973
+ /**
974
+ * 导出当前栈的可序列化快照(深克隆,避免外部改动污染内部状态)。
975
+ * 配合 {@link UndoRedo.fromSerialized} 可在持久化后完整还原撤销/重做栈。
976
+ */
977
+ serialize(): SerializedUndoRedo<T>;
826
978
  pushElement(element: T): void;
827
979
  canUndo(): boolean;
828
980
  /** 返回被撤销的操作 */
@@ -831,6 +983,19 @@ declare class UndoRedo<T = any> {
831
983
  /** 返回被重做的操作 */
832
984
  redo(): T | null;
833
985
  getCurrentElement(): T | null;
986
+ /**
987
+ * 用 `element` 替换当前游标所在元素(cursor - 1),并丢弃其后的重做尾部(与 {@link pushElement} 的丢尾一致),
988
+ * 游标位置保持不变(元素数量不增)。cursor 为 0(无已应用元素)时不做任何操作并返回 false。
989
+ * 用于「连续同类记录合并」等就地替换最新一条的场景。
990
+ */
991
+ replaceCurrentElement(element: T): boolean;
992
+ /**
993
+ * 对当前游标所在元素(cursor - 1)做就地更新;cursor 为 0(全部已撤销)时不做任何操作。
994
+ * 用于给「当前步骤」打标记(如标记为已保存)等元数据写入场景。
995
+ */
996
+ updateCurrentElement(updater: (element: T) => void): void;
997
+ /** 对栈内全部元素做就地更新。用于批量清理元数据(如清空所有元素的已保存标记)。 */
998
+ updateElements(updater: (element: T, index: number) => void): void;
834
999
  /**
835
1000
  * 返回栈内全部元素的浅克隆数组(按时间顺序,索引 0 为最早一步)。
836
1001
  * 仅用于历史面板等只读展示场景,不应直接修改返回值。
@@ -849,32 +1014,6 @@ declare class UndoRedo<T = any> {
849
1014
  //#endregion
850
1015
  //#region temp/packages/editor/src/services/history.d.ts
851
1016
  declare class History extends BaseService {
852
- /**
853
- * 把单个代码块栈拆成若干 group:
854
- * - 把"新增/删除"独立成组(语义上属于一次性事件,不应与 update 合并);
855
- * - 连续 'update' 合并到同一组,组内 steps 顺序就是发生顺序。
856
- */
857
- private static mergeCodeBlockSteps;
858
- private static mergeDataSourceSteps;
859
- /**
860
- * 根据 old/new 是否为 null 推断 opType(与 push 时的约定一致)。
861
- */
862
- private static detectOpType;
863
- /**
864
- * 把页面栈拆成若干 group:
865
- * - 单节点的 'update' 按 targetId 与相邻同 targetId 的 update 合并到一个 group;
866
- * - 'add' / 'remove' 始终独立成组(语义上是结构变更,不应被收纳进单节点修改组);
867
- * - 多节点 'update'(如批量改属性)也独立成组(无明确单一目标,避免误合并)。
868
- */
869
- private static mergePageSteps;
870
- /**
871
- * 解析 StepValue 中的"目标节点 id"用于合并:
872
- * - 单节点 update:取唯一一项 updatedItems 的节点 id;
873
- * - 其它情形(多节点 update / add / remove):返回 undefined,表示不参与合并。
874
- */
875
- private static detectPageTargetId;
876
- /** 解析 StepValue 中的目标节点可读名(用于 UI 展示)。 */
877
- private static detectPageTargetName;
878
1017
  state: {
879
1018
  pageId?: Id | undefined;
880
1019
  pageSteps: Record<Id, UndoRedo<StepValue>>;
@@ -888,6 +1027,27 @@ declare class History extends BaseService {
888
1027
  resetPage(): void;
889
1028
  changePage(page: MPage | MPageFragment): void;
890
1029
  resetState(): void;
1030
+ /**
1031
+ * 为指定页面 / 页面片种入一条「初始基线」记录(如加载 DSL 时的「初始 / 加载」基线)。
1032
+ *
1033
+ * 该记录是一条 `opType: 'initial'` 的 {@link StepValue},作为页面历史栈 **index 0 的固定底线**:
1034
+ * - 它是一条真实入栈的 step(随栈一起持久化),但被钉为撤销/回滚的下限——cursor 永不低于它,
1035
+ * 因此不会被 undo / goto / revert 触达(详见 {@link undo} / {@link setCanUndoRedo});
1036
+ * - 历史面板把它过滤出分组列表(见 {@link getPageHistoryGroups}),改由底部「初始」行展示。
1037
+ *
1038
+ * 仅当目标页面栈为空时种入(保证 initial 一定位于 index 0);已存在 initial 底线时默认不重复种入,
1039
+ * 传 `force=true` 且栈为空时按新基线种入。
1040
+ */
1041
+ setPageMarker(pageId: Id, options?: {
1042
+ name?: string;
1043
+ description?: string;
1044
+ source?: HistoryOpSource;
1045
+ }): StepValue | null;
1046
+ /**
1047
+ * 读取指定页面(缺省当前活动页)的初始基线 step(页面栈 index 0 且 `opType: 'initial'`);
1048
+ * 不存在时返回 undefined。
1049
+ */
1050
+ getPageMarker(pageId?: Id): StepValue | undefined;
891
1051
  /**
892
1052
  * 把一条步骤推入指定页面的栈;不指定 pageId 时落到当前活动页。
893
1053
  *
@@ -895,6 +1055,13 @@ declare class History extends BaseService {
895
1055
  * 否则会把记录错误地落到操作发起页 / 当前激活页,破坏目标页 / 源页的撤销栈语义。
896
1056
  */
897
1057
  push(state: StepValue, pageId?: Id): StepValue | null;
1058
+ /** 读取指定页面(缺省当前活动页)历史栈当前游标所在的 step(cursor - 1);无则返回 null。 */
1059
+ getCurrentPageStep(pageId?: Id): StepValue | null;
1060
+ /**
1061
+ * 用 `state` 替换指定页面栈当前游标所在的 step(并丢弃其后的重做尾部),游标不变。
1062
+ * 用于「连续 set root 记录合并」等就地替换最新一条的场景;替换成功后按需刷新 / 通知。
1063
+ */
1064
+ replaceCurrentPageStep(state: StepValue, pageId?: Id): StepValue | null;
898
1065
  /**
899
1066
  * 推入一条代码块变更记录(与页面/节点完全无关),按 `codeBlockId` 维度独立一份 UndoRedo 栈。
900
1067
  *
@@ -941,6 +1108,54 @@ declare class History extends BaseService {
941
1108
  undo(): StepValue | null;
942
1109
  redo(): StepValue | null;
943
1110
  destroy(): void;
1111
+ /**
1112
+ * 清空指定页面(缺省当前活动页)的历史记录栈。
1113
+ * 仅删除撤销/重做记录,不会改动当前 DSL;清空后该页将无法再撤销/重做之前的操作。
1114
+ */
1115
+ clearPage(pageId?: Id): void;
1116
+ /**
1117
+ * 清空数据源历史记录栈:传入 `dataSourceId` 仅清空该数据源,缺省清空全部数据源。
1118
+ * 仅删除撤销/重做记录,不会改动数据源本身。
1119
+ */
1120
+ clearDataSource(dataSourceId?: Id): void;
1121
+ /**
1122
+ * 清空代码块历史记录栈:传入 `codeBlockId` 仅清空该代码块,缺省清空全部代码块。
1123
+ * 仅删除撤销/重做记录,不会改动代码块本身。
1124
+ */
1125
+ clearCodeBlock(codeBlockId?: Id): void;
1126
+ /**
1127
+ * 标记「整份 DSL 已保存」:把页面 / 代码块 / 数据源所有栈当前游标所在的记录都标为 `saved`。
1128
+ * 适用于「整体落库」场景;若只保存了其中一类,请改用更细粒度的
1129
+ * {@link markPageSaved} / {@link markCodeBlockSaved} / {@link markDataSourceSaved}。
1130
+ */
1131
+ markSaved(): void;
1132
+ /**
1133
+ * 标记指定页面(缺省为当前活动页)的历史栈当前记录为已保存。
1134
+ * 仅影响该页面自己的栈,不波及代码块 / 数据源 / 其它页面。
1135
+ */
1136
+ markPageSaved(pageId?: Id): void;
1137
+ /** 标记指定代码块的历史栈当前记录为已保存,仅影响该代码块自己的栈。 */
1138
+ markCodeBlockSaved(codeBlockId: Id): void;
1139
+ /** 标记指定数据源的历史栈当前记录为已保存,仅影响该数据源自己的栈。 */
1140
+ markDataSourceSaved(dataSourceId: Id): void;
1141
+ /**
1142
+ * 把当前内存中的全部历史栈(页面 / 代码块 / 数据源)序列化后写入本地 IndexedDB。
1143
+ *
1144
+ * - 每个 UndoRedo 栈连同其游标、容量一并保存,恢复后可继续 undo/redo;
1145
+ * - `key` 用于区分不同活动页 / 项目(同一 store 下可保存多份快照),缺省为 `default`;
1146
+ * - 返回写入成功的快照对象,便于调用方记录 savedAt 等信息;
1147
+ * - 不支持 IndexedDB 的环境(如 SSR)会 reject。
1148
+ */
1149
+ saveToIndexedDB(options?: HistoryPersistOptions): Promise<PersistedHistoryState>;
1150
+ /**
1151
+ * 从本地 IndexedDB 读取此前保存的历史快照并重建全部撤销/重做栈。
1152
+ *
1153
+ * - 读取到的每个栈都会经 {@link UndoRedo.fromSerialized} 还原(含游标),随后可直接 undo/redo;
1154
+ * - 会整体覆盖当前内存中的历史状态,并把活动页恢复为快照中的 pageId;
1155
+ * - 找不到对应记录时返回 null,且不改动当前状态;
1156
+ * - 不支持 IndexedDB 的环境(如 SSR)会 reject。
1157
+ */
1158
+ restoreFromIndexedDB(options?: HistoryPersistOptions): Promise<PersistedHistoryState | null>;
944
1159
  /**
945
1160
  * 取出当前活动页的历史步骤平铺列表(包含已应用 + 已撤销)。
946
1161
  * 列表按时间正序,最早一步在最前面。
@@ -987,6 +1202,27 @@ declare class History extends BaseService {
987
1202
  index: number;
988
1203
  applied: boolean;
989
1204
  }[];
1205
+ /**
1206
+ * 按历史记录 uuid 在指定页面(默认当前活动页)的栈中查找其索引。
1207
+ * 找不到时返回 -1。供「按 uuid 回滚」等需要把 uuid 映射回 index 的场景使用。
1208
+ */
1209
+ getPageStepIndexByUuid(uuid: string, pageId?: Id): number;
1210
+ /**
1211
+ * 按历史记录 uuid 在全部代码块栈中查找其所属 codeBlockId 与索引。
1212
+ * 找不到时返回 null。
1213
+ */
1214
+ findCodeBlockStepLocationByUuid(uuid: string): {
1215
+ id: Id;
1216
+ index: number;
1217
+ } | null;
1218
+ /**
1219
+ * 按历史记录 uuid 在全部数据源栈中查找其所属 dataSourceId 与索引。
1220
+ * 找不到时返回 null。
1221
+ */
1222
+ findDataSourceStepLocationByUuid(uuid: string): {
1223
+ id: Id;
1224
+ index: number;
1225
+ } | null;
990
1226
  /**
991
1227
  * 取出全部数据源的历史栈,按 dataSourceId 分组。同上。
992
1228
  */
@@ -998,18 +1234,15 @@ declare class History extends BaseService {
998
1234
  * 这样切到目标页时 Ctrl+Z 也能撤回该步骤。
999
1235
  */
1000
1236
  private getUndoRedo;
1001
- private setCanUndoRedo;
1002
- /**
1003
- * 按 id 获取(或创建)指定代码块的 UndoRedo 栈。
1004
- */
1005
- private getCodeBlockUndoRedo;
1006
1237
  /**
1007
- * id 获取(或创建)指定数据源的 UndoRedo 栈。
1238
+ * 把基础 dbName 与当前 DSL(root app)的 id 拼成最终库名,实现不同应用历史隔离。
1239
+ * 取不到 app id(如尚未加载 DSL)时退回基础 dbName。
1008
1240
  */
1009
- private getDataSourceUndoRedo;
1241
+ private resolveDbName;
1242
+ private setCanUndoRedo;
1010
1243
  }
1011
1244
  type HistoryService = History;
1012
- declare const _default$43: History;
1245
+ declare const _default$44: History;
1013
1246
  //#endregion
1014
1247
  //#region temp/packages/editor/src/services/keybinding.d.ts
1015
1248
  declare class Keybinding extends BaseService {
@@ -1147,7 +1380,7 @@ declare class Props extends BaseService {
1147
1380
  private setRelateId;
1148
1381
  }
1149
1382
  type PropsService = Props;
1150
- declare const _default$45: Props;
1383
+ declare const _default$46: Props;
1151
1384
  //#endregion
1152
1385
  //#region temp/packages/editor/src/services/stageOverlay.d.ts
1153
1386
  declare const canUsePluginMethods$3: {
@@ -1174,7 +1407,7 @@ declare class StageOverlay extends BaseService {
1174
1407
  private updateSelectStatus;
1175
1408
  }
1176
1409
  type StageOverlayService = StageOverlay;
1177
- declare const _default$46: StageOverlay;
1410
+ declare const _default$47: StageOverlay;
1178
1411
  //#endregion
1179
1412
  //#region temp/packages/editor/src/services/storage.d.ts
1180
1413
  interface Options$1 {
@@ -1237,7 +1470,7 @@ declare class WebStorage extends BaseService {
1237
1470
  private getValueAndProtocol;
1238
1471
  }
1239
1472
  type StorageService = WebStorage;
1240
- declare const _default$47: WebStorage;
1473
+ declare const _default$48: WebStorage;
1241
1474
  //#endregion
1242
1475
  //#region temp/packages/editor/src/services/ui.d.ts
1243
1476
  declare const canUsePluginMethods$1: {
@@ -1257,7 +1490,7 @@ declare class Ui extends BaseService {
1257
1490
  private setStageRect;
1258
1491
  }
1259
1492
  type UiService = Ui;
1260
- declare const _default$48: Ui;
1493
+ declare const _default$49: Ui;
1261
1494
  //#endregion
1262
1495
  //#region temp/packages/editor/src/type.d.ts
1263
1496
  type EditorSlots = FrameworkSlots & WorkspaceSlots & SidebarSlots & PropsPanelSlots & {
@@ -1502,6 +1735,8 @@ interface UiState {
1502
1735
  hideSlideBar: boolean;
1503
1736
  /** 侧边栏面板配置 */
1504
1737
  sideBarItems: SideComponent[];
1738
+ /** 当前激活的侧边栏面板 */
1739
+ sideBarActiveTabName: string;
1505
1740
  navMenuRect: {
1506
1741
  left: number;
1507
1742
  top: number;
@@ -1569,6 +1804,9 @@ interface MenuButton {
1569
1804
  items?: MenuButton[];
1570
1805
  /** 唯一标识,用于高亮 */
1571
1806
  id?: string | number;
1807
+ buttonProps?: {
1808
+ type?: string;
1809
+ };
1572
1810
  }
1573
1811
  interface MenuComponent {
1574
1812
  type: 'component';
@@ -1783,7 +2021,13 @@ interface CodeParamStatement {
1783
2021
  type?: string | TypeFunction<string>;
1784
2022
  [key: string]: any;
1785
2023
  }
1786
- type HistoryOpType = 'add' | 'remove' | 'update';
2024
+ /**
2025
+ * 历史记录操作类型:
2026
+ * - `add` / `remove` / `update`:普通可撤销/重做的节点变更;
2027
+ * - `initial`:页面「未修改的初始状态」基线(设置 root 时生成),作为页面栈 index 0 的固定底线 step。
2028
+ * 该 step 不可被撤销/回滚(cursor 不会低于它),仅用于历史面板底部的初始行展示。
2029
+ */
2030
+ type HistoryOpType = 'add' | 'remove' | 'update' | 'initial';
1787
2031
  /**
1788
2032
  * 历史记录的「操作途径」——标记本次变更由哪条交互入口触发,仅用于历史面板展示 / 业务埋点,
1789
2033
  * 不影响 undo/redo 行为。缺省(未传)时 UI 视为「未知」。
@@ -1804,42 +2048,52 @@ type HistoryOpType = 'add' | 'remove' | 'update';
1804
2048
  *
1805
2049
  * 通过 `(string & {})` 允许业务侧扩展自定义途径字符串,同时保留内置值的自动补全。
1806
2050
  */
1807
- type HistoryOpSource = 'stage' | 'tree' | 'component-panel' | 'props' | 'code' | 'stage-contextmenu' | 'tree-contextmenu' | 'toolbar' | 'shortcut' | 'rollback' | 'api' | 'ai' | 'unknown' | (string & {});
1808
- interface StepValue {
1809
- /** 页面信息 */
1810
- data: {
1811
- name: string;
1812
- id: Id;
1813
- };
1814
- opType: HistoryOpType;
1815
- /** 操作前选中的节点 ID,用于撤销后恢复选择状态 */
1816
- selectedBefore: Id[];
1817
- /** 操作后选中的节点 ID,用于重做后恢复选择状态 */
1818
- selectedAfter: Id[];
1819
- modifiedNodeIds: Map<Id, Id>;
1820
- /** opType 'add': 新增的节点 */
1821
- nodes?: MNode[];
1822
- /** opType 'add': 父节点 ID */
2051
+ type HistoryOpSource = 'initial' | 'stage' | 'tree' | 'component-panel' | 'props' | 'code' | 'root-code' | 'stage-contextmenu' | 'tree-contextmenu' | 'toolbar' | 'shortcut' | 'rollback' | 'api' | 'ai' | 'sync' | 'unknown' | (string & {});
2052
+ /**
2053
+ * 单条变更的 diff 描述,统一表达「页面节点 / 代码块 / 数据源」的变化内容,
2054
+ * 被 {@link StepValue} / {@link CodeBlockStepValue} / {@link DataSourceStepValue} 的 `diff` 复用。
2055
+ *
2056
+ * 按 `opType` 区分携带的字段:
2057
+ * - `add`:仅 `newSchema`(页面节点还带 `parentId` / `index`);
2058
+ * - `remove`:仅 `oldSchema`(页面节点还带 `parentId` / `index`);
2059
+ * - `update`:`oldSchema` + `newSchema`,并可带 `changeRecords` 做局部更新。
2060
+ *
2061
+ * 泛型 `T` 为变化内容的快照类型:页面节点为 `MNode`,代码块为 `CodeBlockContent`,数据源为 `DataSourceSchema`。
2062
+ */
2063
+ interface StepDiffItem<T = unknown> {
2064
+ /** 变更后的内容快照。`opType` 为 `add` / `update` 时有,`remove` 时无。 */
2065
+ newSchema?: T;
2066
+ /** 变更前的内容快照。`opType` 为 `remove` / `update` 时有,`add` 时无。 */
2067
+ oldSchema?: T;
2068
+ /** 父节点 id。仅页面节点有(数据源 / 代码块没有父节点)。 */
1823
2069
  parentId?: Id;
1824
- /** opType 'add': 每个新增节点在父节点 items 中的索引 */
1825
- indexMap?: Record<string, number>;
1826
- /** opType 'remove': 被删除的节点及其位置信息 */
1827
- removedItems?: {
1828
- node: MNode;
1829
- parentId: Id;
1830
- index: number;
1831
- }[];
2070
+ /** 在父节点 items 数组中的索引。仅页面节点有(数据源 / 代码块无需排序)。 */
2071
+ index?: number;
1832
2072
  /**
1833
- * opType 'update': 变更前后的节点快照
1834
- *
1835
- * `changeRecords` 来自 form 端的 propPath/value 列表,撤销/重做时只对这些 propPath 做局部更新;
1836
- * 缺省(未传 / 空数组)才退化为整节点替换。
2073
+ * form 端 propPath/value 变更列表,仅 `opType` 为 `update` 时有;
2074
+ * 撤销/重做时若有则按 propPath 局部更新,缺省才退化为整内容替换。
1837
2075
  */
1838
- updatedItems?: {
1839
- oldNode: MNode;
1840
- newNode: MNode;
1841
- changeRecords?: ChangeRecord[];
1842
- }[];
2076
+ changeRecords?: ChangeRecord[];
2077
+ }
2078
+ /**
2079
+ * 历史记录条目公共字段,被 {@link StepValue} / {@link CodeBlockStepValue} / {@link DataSourceStepValue} 复用。
2080
+ *
2081
+ * 泛型 `T` 为 `diff` 中变化内容的快照类型(页面节点 `MNode` / 代码块 `CodeBlockContent` / 数据源 `DataSourceSchema`)。
2082
+ */
2083
+ interface BaseStepValue<T = unknown> {
2084
+ /**
2085
+ * 历史记录唯一标识(uuid)。入栈时自动写入(若调用方未指定),
2086
+ * 用于精确定位 / 引用某一条历史记录(如 revert、埋点、跨端同步等)。
2087
+ * 注意与各自的 `id`(关联的页面 / 代码块 / 数据源 id)区分。
2088
+ */
2089
+ uuid: string;
2090
+ /** 操作类型:新增 / 删除 / 更新(三类历史记录统一携带)。 */
2091
+ opType: HistoryOpType;
2092
+ /**
2093
+ * 本次变更的内容(统一 diff 表达),每项见 {@link StepDiffItem}。
2094
+ * 页面节点(add/remove 多节点、update 多节点)会有多项,代码块 / 数据源通常只有一项。
2095
+ */
2096
+ diff: StepDiffItem<T>[];
1843
2097
  /**
1844
2098
  * 调用方可选传入的人类可读描述(如「调整按钮颜色」),用于历史面板展示。
1845
2099
  * 不影响 undo/redo 行为;缺省时面板会根据节点 / propPath 自动生成描述。
@@ -1852,59 +2106,54 @@ interface StepValue {
1852
2106
  */
1853
2107
  source?: HistoryOpSource;
1854
2108
  /**
1855
- * 入栈时间戳(毫秒)。在 historyService.push 时自动写入(若调用方未指定),仅用于历史面板展示。
2109
+ * 入栈时间戳(毫秒)。入栈时自动写入(若调用方未指定),仅用于历史面板展示。
1856
2110
  */
1857
2111
  timestamp?: number;
2112
+ /**
2113
+ * 是否为「已保存」记录:DSL 落库(如保存到后端 / 本地)时由 historyService.markSaved 标记。
2114
+ * 同一栈内任意时刻最多只有一条记录为 true;从 IndexedDB 恢复时游标会被定位到最近一条已保存记录之后。
2115
+ */
2116
+ saved?: boolean;
2117
+ /**
2118
+ * 是否为「整体设置 root」(set root)产生的记录(由 {@link Editor.pushRootDiffHistory} 写入)。
2119
+ * 用于「连续 set root 合并」:当某页栈最新一条已是 root 记录时,下一条 set root 会替换它而非新增,
2120
+ * 避免源码反复保存 / 外部重设 DSL 时堆积多条 root 记录。
2121
+ */
2122
+ rootStep?: boolean;
2123
+ }
2124
+ interface StepValue extends BaseStepValue<MNode> {
2125
+ /** 页面信息 */
2126
+ data: {
2127
+ name: string;
2128
+ id: Id;
2129
+ };
2130
+ /** 操作前选中的节点 ID,用于撤销后恢复选择状态 */
2131
+ selectedBefore: Id[];
2132
+ /** 操作后选中的节点 ID,用于重做后恢复选择状态 */
2133
+ selectedAfter: Id[];
2134
+ modifiedNodeIds: Map<Id, Id>;
1858
2135
  }
1859
2136
  /**
1860
2137
  * 代码块历史记录条目。按 codeBlock.id 分组保存到 historyState.codeBlockState。
1861
- * - 新增:oldContent = null,newContent = 新内容
1862
- * - 更新:oldContent / newContent 都为对应内容
1863
- * - 删除:newContent = null,oldContent = 删除前内容
2138
+ * 变更内容统一由 `diff`(单项)表达,每项见 {@link StepDiffItem}:
2139
+ * - 新增(opType 'add'):仅 `newSchema`(新内容);
2140
+ * - 更新(opType 'update'):`oldSchema` + `newSchema`,并可带 `changeRecords` 做局部更新;
2141
+ * - 删除(opType 'remove'):仅 `oldSchema`(删除前内容)。
1864
2142
  */
1865
- interface CodeBlockStepValue {
2143
+ interface CodeBlockStepValue extends BaseStepValue<CodeBlockContent> {
1866
2144
  /** 关联的代码块 id */
1867
2145
  id: Id;
1868
- /** 变更前的代码块内容,新增时为 null */
1869
- oldContent: CodeBlockContent | null;
1870
- /** 变更后的代码块内容,删除时为 null */
1871
- newContent: CodeBlockContent | null;
1872
- /**
1873
- * form 端 propPath/value 列表。撤销/重做时若有则按 propPath 局部更新;
1874
- * 缺省才退化为整内容替换。新增/删除场景通常无 changeRecords。
1875
- */
1876
- changeRecords?: ChangeRecord[];
1877
- /** 调用方可选传入的人类可读描述,用于历史面板展示;不影响 undo/redo 行为。 */
1878
- historyDescription?: string;
1879
- /** 操作途径:标记本次变更由哪条交互入口触发,取值见 {@link HistoryOpSource};仅用于历史面板展示与埋点,不影响 undo/redo 行为。 */
1880
- source?: HistoryOpSource;
1881
- /** 入栈时间戳(毫秒),入栈时自动写入,仅用于历史面板展示。 */
1882
- timestamp?: number;
1883
2146
  }
1884
2147
  /**
1885
2148
  * 数据源历史记录条目。按 dataSource.id 分组保存到 historyState.dataSourceState。
1886
- * - 新增:oldSchema = null,newSchema = 新 schema
1887
- * - 更新:oldSchema / newSchema 都为对应 schema
1888
- * - 删除:newSchema = null,oldSchema = 删除前 schema
2149
+ * 变更内容统一由 `diff`(单项)表达,每项见 {@link StepDiffItem}:
2150
+ * - 新增(opType 'add'):仅 `newSchema`(新 schema);
2151
+ * - 更新(opType 'update'):`oldSchema` + `newSchema`,并可带 `changeRecords` 做局部更新;
2152
+ * - 删除(opType 'remove'):仅 `oldSchema`(删除前 schema)。
1889
2153
  */
1890
- interface DataSourceStepValue {
2154
+ interface DataSourceStepValue extends BaseStepValue<DataSourceSchema> {
1891
2155
  /** 关联的数据源 id */
1892
2156
  id: Id;
1893
- /** 变更前的数据源 schema,新增时为 null */
1894
- oldSchema: DataSourceSchema | null;
1895
- /** 变更后的数据源 schema,删除时为 null */
1896
- newSchema: DataSourceSchema | null;
1897
- /**
1898
- * form 端 propPath/value 列表。撤销/重做时若有则按 propPath 局部更新;
1899
- * 缺省才退化为整 schema 替换。新增/删除场景通常无 changeRecords。
1900
- */
1901
- changeRecords?: ChangeRecord[];
1902
- /** 调用方可选传入的人类可读描述,用于历史面板展示;不影响 undo/redo 行为。 */
1903
- historyDescription?: string;
1904
- /** 操作途径:标记本次变更由哪条交互入口触发,取值见 {@link HistoryOpSource};仅用于历史面板展示与埋点,不影响 undo/redo 行为。 */
1905
- source?: HistoryOpSource;
1906
- /** 入栈时间戳(毫秒),入栈时自动写入,仅用于历史面板展示。 */
1907
- timestamp?: number;
1908
2157
  }
1909
2158
  interface HistoryState {
1910
2159
  pageId?: Id;
@@ -1922,6 +2171,39 @@ interface HistoryState {
1922
2171
  */
1923
2172
  dataSourceState: Record<Id, UndoRedo<DataSourceStepValue>>;
1924
2173
  }
2174
+ /**
2175
+ * 历史记录的可持久化快照。由 historyService.saveToIndexedDB 写入 IndexedDB,
2176
+ * 再由 historyService.restoreFromIndexedDB 读出并重建各 UndoRedo 栈。
2177
+ */
2178
+ interface PersistedHistoryState {
2179
+ /** 快照结构版本号,便于后续兼容升级。 */
2180
+ version: number;
2181
+ /** 保存时的活动页 id。 */
2182
+ pageId?: Id;
2183
+ /** 各页面历史栈的序列化快照,按 pageId 分组。 */
2184
+ pageSteps: Record<Id, SerializedUndoRedo<StepValue>>;
2185
+ /** 各代码块历史栈的序列化快照,按 codeBlockId 分组。 */
2186
+ codeBlockState: Record<Id, SerializedUndoRedo<CodeBlockStepValue>>;
2187
+ /** 各数据源历史栈的序列化快照,按 dataSourceId 分组。 */
2188
+ dataSourceState: Record<Id, SerializedUndoRedo<DataSourceStepValue>>;
2189
+ /** 保存时间戳(毫秒)。 */
2190
+ savedAt: number;
2191
+ }
2192
+ /** historyService 持久化相关 API 的可选配置。 */
2193
+ interface HistoryPersistOptions {
2194
+ /** IndexedDB 数据库名,默认 `tmagic-editor`(最终库名会拼上当前 DSL app id)。 */
2195
+ dbName?: string;
2196
+ /** objectStore 名,默认 `history`。 */
2197
+ storeName?: string;
2198
+ /** 记录 key,用于区分不同活动页 / 项目,默认 `default`。 */
2199
+ key?: IDBValidKey;
2200
+ /**
2201
+ * 显式指定用于库名隔离的 DSL app id。
2202
+ * 缺省时回退到当前 editorService 的 `root.id`;在「先恢复历史再 set root」场景下 root 尚未设置,
2203
+ * 需由调用方(如从待加载 DSL 取 id)显式传入,否则会读 / 写到未按 app 隔离的默认库。
2204
+ */
2205
+ appId?: Id;
2206
+ }
1925
2207
  /**
1926
2208
  * 历史面板用:当前页面的一条历史步骤(包含位置和是否已应用)。
1927
2209
  */
@@ -2205,6 +2487,35 @@ interface DiffDialogPayload {
2205
2487
  /** 用于标题展示的目标 id */
2206
2488
  id?: string | number;
2207
2489
  }
2490
+ /**
2491
+ * 一组「描述 + 可操作性」的判定函数集合。页面 / 数据源 / 代码块及业务自定义历史
2492
+ * 各自实现一份,作为整体注入,避免把 describe* / isStep* 拆成多个独立 props 反复透传。
2493
+ */
2494
+ interface HistoryRowDescriptor<T extends BaseStepValue = BaseStepValue> {
2495
+ /** 组级描述文案生成器,接收一个 group,返回展示文本。 */
2496
+ describeGroup: (_group: any) => string;
2497
+ /** 单步描述文案生成器,接收一个 step,返回展示文本(合并组展开后的子步列表用)。 */
2498
+ describeStep: (_step: T) => string;
2499
+ /** 判断某个 step 是否可查看差异(前后值都存在)。不传则一律不展示差异入口。 */
2500
+ isStepDiffable?: (_step: T) => boolean;
2501
+ /** 判断某个 step 是否支持回滚(如更新需带 changeRecords)。不传则已应用即可回滚。 */
2502
+ isStepRevertable?: (_step: T) => boolean;
2503
+ }
2504
+ /**
2505
+ * 通用 bucket(数据源 / 代码块 / 业务自定义历史)的整体渲染配置。
2506
+ * 把原先散落在 Bucket / BucketTab 上的 title / prefix / describe* / isStep* / showInitial / gotoEnabled
2507
+ * 收敛成一个对象作为单一 prop 传递,调用方一次配齐、组件内部按需读取。
2508
+ */
2509
+ interface HistoryBucketConfig<T extends BaseStepValue = BaseStepValue> extends HistoryRowDescriptor<T> {
2510
+ /** bucket 头部标题,例如 "数据源" / "代码块"。 */
2511
+ title: string;
2512
+ /** 子项 key 的命名空间前缀(`ds` 数据源 / `cb` 代码块 / 业务自定义如 `mod`)。 */
2513
+ prefix: string;
2514
+ /** 是否展示底部「回到初始状态」入口,默认 true。无 undo cursor 语义的自定义历史可传 false。 */
2515
+ showInitial?: boolean;
2516
+ /** 是否支持「跳转到该记录」(goto),默认 true。 */
2517
+ gotoEnabled?: boolean;
2518
+ }
2208
2519
  //#endregion
2209
2520
  //#region temp/packages/editor/src/hooks/use-code-block-edit.d.ts
2210
2521
  declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"]) => {
@@ -2228,8 +2539,8 @@ declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"])
2228
2539
  onClose?: (() => any) | undefined;
2229
2540
  onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData) => any) | undefined;
2230
2541
  onOpen?: (() => any) | undefined;
2231
- "onUpdate:width"?: ((value: number) => any) | undefined;
2232
2542
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
2543
+ "onUpdate:width"?: ((value: number) => any) | undefined;
2233
2544
  }>, {
2234
2545
  show(): Promise<void>;
2235
2546
  hide(): Promise<void>;
@@ -2237,8 +2548,8 @@ declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"])
2237
2548
  close: () => any;
2238
2549
  submit: (values: CodeBlockContent, eventData: ContainerChangeEventData) => any;
2239
2550
  open: () => any;
2240
- "update:width": (value: number) => any;
2241
2551
  "update:visible": (value: boolean) => any;
2552
+ "update:width": (value: number) => any;
2242
2553
  }, import("@vue/runtime-core").PublicProps, {}, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
2243
2554
  P: {};
2244
2555
  B: {};
@@ -2260,8 +2571,8 @@ declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"])
2260
2571
  onClose?: (() => any) | undefined;
2261
2572
  onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData) => any) | undefined;
2262
2573
  onOpen?: (() => any) | undefined;
2263
- "onUpdate:width"?: ((value: number) => any) | undefined;
2264
2574
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
2575
+ "onUpdate:width"?: ((value: number) => any) | undefined;
2265
2576
  }>, {
2266
2577
  show(): Promise<void>;
2267
2578
  hide(): Promise<void>;
@@ -2565,6 +2876,11 @@ interface DragClassification {
2565
2876
  * @returns 分类结果,包含同容器索引列表和跨容器节点列表
2566
2877
  */
2567
2878
  declare const classifyDragSources: (configs: MNode[], targetParent: MContainer, getNodeInfo: (id: Id, raw?: boolean) => EditorNodeInfo) => DragClassification;
2879
+ /**
2880
+ * 给「回滚」生成的新 step 用的简短描述生成器。
2881
+ * 与 UI 层 `describePageStep` 同义,但避免 service 反向依赖 layouts/,故放在此工具函数中。
2882
+ */
2883
+ declare const describeStepForRevert: (step: StepValue) => string;
2568
2884
  //#endregion
2569
2885
  //#region temp/packages/editor/src/utils/operator.d.ts
2570
2886
  /**
@@ -2664,6 +2980,120 @@ declare const updateStatus: (nodeStatusMap: Map<Id, LayerNodeStatus>, id: Id, st
2664
2980
  /** 默认的组件树节点是否可展开的判断函数:当节点的子项中至少存在一个可见节点时认为可展开 */
2665
2981
  declare const defaultIsExpandable: IsExpandableFunction;
2666
2982
  //#endregion
2983
+ //#region temp/packages/editor/src/utils/indexed-db.d.ts
2984
+ /**
2985
+ * 一组极简的、基于原生 IndexedDB 的 Promise KV 工具,避免引入额外依赖。
2986
+ * 仅用于浏览器环境;在不支持 IndexedDB 的环境(如 SSR / 部分测试环境)下会 reject。
2987
+ */
2988
+ /** 是否处于支持 IndexedDB 的环境。 */
2989
+ declare const isIndexedDBSupported: () => boolean;
2990
+ /**
2991
+ * 打开(必要时升级)数据库,确保目标 objectStore 存在后返回连接。
2992
+ *
2993
+ * 由于 objectStore 只能在 `onupgradeneeded` 内创建,这里先以当前版本打开,
2994
+ * 若发现 store 不存在则关闭连接、以更高版本重开来按需创建,兼容动态 storeName。
2995
+ */
2996
+ declare const openIndexedDB: (dbName: string, storeName: string) => Promise<IDBDatabase>;
2997
+ /** 写入(覆盖)一条记录。value 通过结构化克隆存储,支持 Map / Set 等结构。 */
2998
+ declare const idbSet: (dbName: string, storeName: string, key: IDBValidKey, value: unknown) => Promise<void>;
2999
+ /** 读取一条记录,不存在时返回 undefined。 */
3000
+ declare const idbGet: <T = unknown>(dbName: string, storeName: string, key: IDBValidKey) => Promise<T | undefined>;
3001
+ /** 删除一条记录。 */
3002
+ declare const idbDelete: (dbName: string, storeName: string, key: IDBValidKey) => Promise<void>;
3003
+ //#endregion
3004
+ //#region temp/packages/editor/src/utils/history.d.ts
3005
+ /**
3006
+ * 「回滚」生成的新 step 简短描述。代码块 / 数据源共用。
3007
+ * 二者逻辑一致,仅展示名取值字段不同(代码块取 `name`,数据源取 `title`),
3008
+ * 因此通过 `getLabel` 注入取值方式。
3009
+ *
3010
+ * @param id 关联的代码块 / 数据源 id
3011
+ * @param diff 单条变更 diff(缺省视为空)
3012
+ * @param getLabel 从快照取展示名
3013
+ */
3014
+ declare const describeRevertStep: <T extends object>(id: Id, {
3015
+ oldSchema,
3016
+ newSchema,
3017
+ changeRecords
3018
+ }: StepDiffItem<T> | undefined, getLabel: (schema: T) => string | undefined) => string;
3019
+ /**
3020
+ * 根据 old/new 是否为 null 推断 opType(与 push 时的约定一致)。
3021
+ */
3022
+ declare const detectStackOpType: (oldVal: unknown, newVal: unknown) => "add" | "remove" | "update";
3023
+ /**
3024
+ * 构造一条代码块 / 数据源「按 id 分栈」的历史记录:两者除 payload 字段命名外完全一致。
3025
+ *
3026
+ * - `add`:oldValue = null;`remove`:newValue = null;`update`:两者都有,可带 changeRecords 做局部更新。
3027
+ * - 内容会做 cloneDeep 防止后续被外部引用篡改;opType 依据 old/new 是否为 null 推断。
3028
+ * - 仅负责构造 step 并返回,入栈与事件 emit 由各公共方法(pushCodeBlock / pushDataSource)自行处理。
3029
+ * - 不直接驱动业务 service,调用方负责实际写回。
3030
+ */
3031
+ declare const createStackStep: <T, S extends BaseStepValue<T> & {
3032
+ id: Id;
3033
+ }>(id: Id, payload: {
3034
+ oldValue: T | null;
3035
+ newValue: T | null;
3036
+ changeRecords?: ChangeRecord[];
3037
+ historyDescription?: string;
3038
+ source?: HistoryOpSource;
3039
+ }) => S | null;
3040
+ declare const markStackSaved: <S extends {
3041
+ saved?: boolean;
3042
+ }>(undoRedo?: UndoRedo<S>) => void;
3043
+ /**
3044
+ * 把单个「按 id 分栈」的历史栈(代码块 / 数据源)拆成若干 group:
3045
+ * - 把"新增/删除"独立成组(语义上属于一次性事件,不应与 update 合并);
3046
+ * - 连续 'update' 合并到同一组,组内 steps 顺序就是发生顺序。
3047
+ *
3048
+ * 代码块与数据源除 `kind` 外结构完全一致,统一由本方法处理;`kind` 决定返回的具体分组类型。
3049
+ */
3050
+ declare const mergeStackSteps: <S extends BaseStepValue, K extends "code-block" | "data-source">(kind: K, id: Id, list: S[], cursor: number) => {
3051
+ kind: K;
3052
+ id: Id;
3053
+ opType: HistoryOpType;
3054
+ steps: {
3055
+ step: S;
3056
+ index: number;
3057
+ applied: boolean;
3058
+ isCurrent?: boolean;
3059
+ }[];
3060
+ applied: boolean;
3061
+ isCurrent?: boolean;
3062
+ }[];
3063
+ /**
3064
+ * 把页面栈拆成若干 group:
3065
+ * - 单节点的 'update' 按 targetId 与相邻同 targetId 的 update 合并到一个 group;
3066
+ * - 'add' / 'remove' 始终独立成组(语义上是结构变更,不应被收纳进单节点修改组);
3067
+ * - 多节点 'update'(如批量改属性)也独立成组(无明确单一目标,避免误合并)。
3068
+ */
3069
+ declare const mergePageSteps: (pageId: Id, list: StepValue[], cursor: number) => PageHistoryGroup[];
3070
+ /**
3071
+ * 解析 StepValue 中的"目标节点 id"用于合并:
3072
+ * - 单节点 update:取唯一一项 updatedItems 的节点 id;
3073
+ * - 其它情形(多节点 update / add / remove):返回 undefined,表示不参与合并。
3074
+ */
3075
+ declare const detectPageTargetId: (step: StepValue) => Id | undefined;
3076
+ /** 解析 StepValue 中的目标节点可读名(用于 UI 展示)。 */
3077
+ declare const detectPageTargetName: (step: StepValue) => string | undefined;
3078
+ /** 把 `Record<Id, UndoRedo>` 整体序列化为 `Record<Id, SerializedUndoRedo>`。 */
3079
+ declare const serializeStacks: <T>(stacks: Record<Id, UndoRedo<T>>) => Record<Id, SerializedUndoRedo<T>>;
3080
+ /**
3081
+ * 把 `Record<Id, SerializedUndoRedo>` 整体还原为 `Record<Id, UndoRedo>`。
3082
+ * 还原时把每个栈的游标定位到最近一条已保存(`saved === true`)记录之后。
3083
+ */
3084
+ declare const deserializeStacks: <T extends {
3085
+ saved?: boolean;
3086
+ }>(stacks?: Record<Id, ReturnType<UndoRedo<T>["serialize"]>>) => Record<Id, UndoRedo<T>>;
3087
+ /**
3088
+ * 按 id 从「按 id 分栈」的记录表(代码块 / 数据源)中获取(或创建)对应的 UndoRedo 栈。
3089
+ */
3090
+ declare const getOrCreateStack: <T>(stacks: Record<Id, UndoRedo<T>>, id: Id) => UndoRedo<T>;
3091
+ /**
3092
+ * 撤销下限:当页面栈 index 0 是 `opType: 'initial'` 的基线 step 时为 1(基线不可被撤销),否则为 0。
3093
+ * 用于把 cursor 钉在基线之上,保证 undo / canUndo / goto 都不会越过初始基线。
3094
+ */
3095
+ declare const undoFloor: (undoRedo: UndoRedo<StepValue>) => number;
3096
+ //#endregion
2667
3097
  //#region temp/packages/editor/src/utils/const.d.ts
2668
3098
  /** 当uiService.get('uiSelectMode')为true,点击组件(包括任何形式,组件树/画布)时触发的事件名 */
2669
3099
  declare const UI_SELECT_MODE_EVENT_NAME = "ui-select";
@@ -2679,7 +3109,7 @@ declare const H_GUIDE_LINE_STORAGE_KEY = "$MagicStageHorizontalGuidelinesData";
2679
3109
  declare const V_GUIDE_LINE_STORAGE_KEY = "$MagicStageVerticalGuidelinesData";
2680
3110
  //#endregion
2681
3111
  //#region temp/packages/editor/src/utils/monaco-editor.d.ts
2682
- declare const _default$44: () => Promise<typeof import("monaco-editor")>;
3112
+ declare const _default$45: () => Promise<typeof import("monaco-editor")>;
2683
3113
  //#endregion
2684
3114
  //#region temp/packages/form/src/schema.d.ts
2685
3115
  interface ChangeRecord$1 {
@@ -3743,6 +4173,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
3743
4173
  disabledCodeBlock: boolean;
3744
4174
  disabledMultiSelect: boolean;
3745
4175
  alwaysMultiSelect: boolean;
4176
+ disabledFlashTip: boolean;
3746
4177
  disabledPageFragment: boolean;
3747
4178
  historyListExtraTabs: HistoryListExtraTab[];
3748
4179
  disabledShowSrc: boolean;
@@ -3764,11 +4195,10 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
3764
4195
  datasourceConfigs: Record<string, import("@tmagic/form-schema").FormConfig>;
3765
4196
  containerHighlightDuration: number;
3766
4197
  containerHighlightType: import("@tmagic/stage").ContainerHighlightType;
3767
- disabledFlashTip: boolean;
3768
4198
  canSelect: (el: HTMLElement) => boolean | Promise<boolean>;
3769
4199
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3770
- declare const __VLS_export$36: __VLS_WithSlots$12<typeof __VLS_base$12, __VLS_Slots$12>;
3771
- declare const _default$33: typeof __VLS_export$36;
4200
+ declare const __VLS_export$37: __VLS_WithSlots$12<typeof __VLS_base$12, __VLS_Slots$12>;
4201
+ declare const _default$34: typeof __VLS_export$37;
3772
4202
  type __VLS_WithSlots$12<T, S> = T & {
3773
4203
  new (): {
3774
4204
  $slots: S;
@@ -3776,7 +4206,7 @@ type __VLS_WithSlots$12<T, S> = T & {
3776
4206
  };
3777
4207
  //#endregion
3778
4208
  //#region temp/packages/editor/src/layouts/CodeEditor.vue.d.ts
3779
- type __VLS_Props$33 = {
4209
+ type __VLS_Props$32 = {
3780
4210
  initValues?: any;
3781
4211
  modifiedValues?: any;
3782
4212
  type?: 'diff';
@@ -3792,7 +4222,7 @@ type __VLS_Props$33 = {
3792
4222
  };
3793
4223
  editorCustomType?: string;
3794
4224
  };
3795
- declare const __VLS_export$35: import("@vue/runtime-core").DefineComponent<__VLS_Props$33, {
4225
+ declare const __VLS_export$36: import("@vue/runtime-core").DefineComponent<__VLS_Props$32, {
3796
4226
  values: import("@vue/reactivity").Ref<string, string>;
3797
4227
  getEditor(): Monaco.editor.IStandaloneCodeEditor | Monaco.editor.IStandaloneDiffEditor | null;
3798
4228
  getVsEditor(): Monaco.editor.IStandaloneCodeEditor | null;
@@ -3803,7 +4233,7 @@ declare const __VLS_export$35: import("@vue/runtime-core").DefineComponent<__VLS
3803
4233
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3804
4234
  save: (...args: any[]) => void;
3805
4235
  initd: (...args: any[]) => void;
3806
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$33> & Readonly<{
4236
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$32> & Readonly<{
3807
4237
  onSave?: ((...args: any[]) => any) | undefined;
3808
4238
  onInitd?: ((...args: any[]) => any) | undefined;
3809
4239
  }>, {
@@ -3814,13 +4244,13 @@ declare const __VLS_export$35: import("@vue/runtime-core").DefineComponent<__VLS
3814
4244
  autoSave: boolean;
3815
4245
  disabledFullScreen: boolean;
3816
4246
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3817
- declare const _default$32: typeof __VLS_export$35;
4247
+ declare const _default$33: typeof __VLS_export$36;
3818
4248
  //#endregion
3819
4249
  //#region temp/packages/editor/src/layouts/sidebar/ComponentListPanel.vue.d.ts
3820
4250
  type __VLS_Slots$11 = ComponentListPanelSlots;
3821
4251
  declare const __VLS_base$11: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
3822
- declare const __VLS_export$34: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;
3823
- declare const _default$6: typeof __VLS_export$34;
4252
+ declare const __VLS_export$35: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;
4253
+ declare const _default$6: typeof __VLS_export$35;
3824
4254
  type __VLS_WithSlots$11<T, S> = T & {
3825
4255
  new (): {
3826
4256
  $slots: S;
@@ -3829,7 +4259,7 @@ type __VLS_WithSlots$11<T, S> = T & {
3829
4259
  //#endregion
3830
4260
  //#region temp/packages/editor/src/layouts/sidebar/layer/LayerPanel.vue.d.ts
3831
4261
  type __VLS_Slots$10 = LayerPanelSlots;
3832
- type __VLS_Props$32 = {
4262
+ type __VLS_Props$31 = {
3833
4263
  layerContentMenu: (MenuButton | MenuComponent)[];
3834
4264
  indent?: number;
3835
4265
  nextLevelIndentIncrement?: number;
@@ -3838,13 +4268,13 @@ type __VLS_Props$32 = {
3838
4268
  canDropIn?: CanDropInFunction; /** 组件树节点双击前的钩子函数,返回 false 则阻止默认的双击行为 */
3839
4269
  beforeNodeDblclick?: (_event: MouseEvent, _data: TreeNodeData) => Promise<boolean | void> | boolean | void;
3840
4270
  };
3841
- declare const __VLS_base$10: import("@vue/runtime-core").DefineComponent<__VLS_Props$32, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4271
+ declare const __VLS_base$10: import("@vue/runtime-core").DefineComponent<__VLS_Props$31, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3842
4272
  "node-dblclick": (event: MouseEvent, data: TreeNodeData) => any;
3843
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$32> & Readonly<{
4273
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$31> & Readonly<{
3844
4274
  "onNode-dblclick"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
3845
4275
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3846
- declare const __VLS_export$33: __VLS_WithSlots$10<typeof __VLS_base$10, __VLS_Slots$10>;
3847
- declare const _default$25: typeof __VLS_export$33;
4276
+ declare const __VLS_export$34: __VLS_WithSlots$10<typeof __VLS_base$10, __VLS_Slots$10>;
4277
+ declare const _default$26: typeof __VLS_export$34;
3848
4278
  type __VLS_WithSlots$10<T, S> = T & {
3849
4279
  new (): {
3850
4280
  $slots: S;
@@ -3852,151 +4282,151 @@ type __VLS_WithSlots$10<T, S> = T & {
3852
4282
  };
3853
4283
  //#endregion
3854
4284
  //#region temp/packages/editor/src/fields/CodeSelect.vue.d.ts
3855
- type __VLS_Props$31 = FieldProps<CodeSelectConfig>;
3856
- declare const __VLS_export$32: import("@vue/runtime-core").DefineComponent<__VLS_Props$31, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4285
+ type __VLS_Props$30 = FieldProps<CodeSelectConfig>;
4286
+ declare const __VLS_export$33: import("@vue/runtime-core").DefineComponent<__VLS_Props$30, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3857
4287
  change: (v: any, eventData: ContainerChangeEventData) => any;
3858
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$31> & Readonly<{
4288
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$30> & Readonly<{
3859
4289
  onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
3860
4290
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3861
- declare const _default$3: typeof __VLS_export$32;
4291
+ declare const _default$3: typeof __VLS_export$33;
3862
4292
  //#endregion
3863
4293
  //#region temp/packages/editor/src/fields/CodeSelectCol.vue.d.ts
3864
- type __VLS_Props$30 = FieldProps<CodeSelectColConfig>;
3865
- declare const __VLS_export$31: import("@vue/runtime-core").DefineComponent<__VLS_Props$30, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4294
+ type __VLS_Props$29 = FieldProps<CodeSelectColConfig>;
4295
+ declare const __VLS_export$32: import("@vue/runtime-core").DefineComponent<__VLS_Props$29, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3866
4296
  change: (v: any, eventData: ContainerChangeEventData) => any;
3867
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$30> & Readonly<{
4297
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$29> & Readonly<{
3868
4298
  onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
3869
4299
  }>, {
3870
4300
  disabled: boolean;
3871
4301
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3872
- declare const _default$4: typeof __VLS_export$31;
4302
+ declare const _default$4: typeof __VLS_export$32;
3873
4303
  //#endregion
3874
4304
  //#region temp/packages/editor/src/fields/DataSourceFields.vue.d.ts
3875
- type __VLS_Props$29 = FieldProps<DataSourceFieldsConfig>;
4305
+ type __VLS_Props$28 = FieldProps<DataSourceFieldsConfig>;
3876
4306
  type __VLS_ModelProps$4 = {
3877
4307
  'width'?: number;
3878
4308
  'visible'?: boolean;
3879
4309
  'visible1'?: boolean;
3880
4310
  };
3881
- type __VLS_PublicProps$4 = __VLS_Props$29 & __VLS_ModelProps$4;
3882
- declare const __VLS_export$30: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$4, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4311
+ type __VLS_PublicProps$4 = __VLS_Props$28 & __VLS_ModelProps$4;
4312
+ declare const __VLS_export$31: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$4, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3883
4313
  change: (v: any, eventData?: ContainerChangeEventData | undefined) => any;
3884
- "update:width": (value: number) => any;
3885
4314
  "update:visible": (value: boolean) => any;
4315
+ "update:width": (value: number) => any;
3886
4316
  "update:visible1": (value: boolean) => any;
3887
4317
  }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps$4> & Readonly<{
3888
4318
  onChange?: ((v: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
3889
- "onUpdate:width"?: ((value: number) => any) | undefined;
3890
4319
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
4320
+ "onUpdate:width"?: ((value: number) => any) | undefined;
3891
4321
  "onUpdate:visible1"?: ((value: boolean) => any) | undefined;
3892
4322
  }>, {
3893
4323
  disabled: boolean;
3894
4324
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3895
- declare const _default$12: typeof __VLS_export$30;
4325
+ declare const _default$12: typeof __VLS_export$31;
3896
4326
  //#endregion
3897
4327
  //#region temp/packages/editor/src/fields/DataSourceMocks.vue.d.ts
3898
- type __VLS_Props$28 = FieldProps<DataSourceMocksConfig>;
4328
+ type __VLS_Props$27 = FieldProps<DataSourceMocksConfig>;
3899
4329
  type __VLS_ModelProps$3 = {
3900
4330
  'width'?: number;
3901
4331
  'visible'?: boolean;
3902
4332
  };
3903
- type __VLS_PublicProps$3 = __VLS_Props$28 & __VLS_ModelProps$3;
3904
- declare const __VLS_export$29: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$3, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4333
+ type __VLS_PublicProps$3 = __VLS_Props$27 & __VLS_ModelProps$3;
4334
+ declare const __VLS_export$30: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$3, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3905
4335
  change: (...args: any[]) => void;
3906
- "update:width": (value: number) => void;
3907
4336
  "update:visible": (value: boolean) => void;
4337
+ "update:width": (value: number) => void;
3908
4338
  }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps$3> & Readonly<{
3909
4339
  onChange?: ((...args: any[]) => any) | undefined;
3910
- "onUpdate:width"?: ((value: number) => any) | undefined;
3911
4340
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
4341
+ "onUpdate:width"?: ((value: number) => any) | undefined;
3912
4342
  }>, {
3913
4343
  disabled: boolean;
3914
4344
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3915
- declare const _default$16: typeof __VLS_export$29;
4345
+ declare const _default$16: typeof __VLS_export$30;
3916
4346
  //#endregion
3917
4347
  //#region temp/packages/editor/src/fields/DataSourceMethods.vue.d.ts
3918
- type __VLS_Props$27 = FieldProps<DataSourceMethodsConfig>;
3919
- declare const __VLS_export$28: import("@vue/runtime-core").DefineComponent<__VLS_Props$27, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4348
+ type __VLS_Props$26 = FieldProps<DataSourceMethodsConfig>;
4349
+ declare const __VLS_export$29: import("@vue/runtime-core").DefineComponent<__VLS_Props$26, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3920
4350
  change: (...args: any[]) => void;
3921
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$27> & Readonly<{
4351
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$26> & Readonly<{
3922
4352
  onChange?: ((...args: any[]) => any) | undefined;
3923
4353
  }>, {
3924
4354
  disabled: boolean;
3925
4355
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3926
- declare const _default$15: typeof __VLS_export$28;
4356
+ declare const _default$15: typeof __VLS_export$29;
3927
4357
  //#endregion
3928
4358
  //#region temp/packages/editor/src/fields/DataSourceInput.vue.d.ts
3929
- type __VLS_Props$26 = FieldProps<DataSourceInputConfig>;
3930
- declare const __VLS_export$27: import("@vue/runtime-core").DefineComponent<__VLS_Props$26, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4359
+ type __VLS_Props$25 = FieldProps<DataSourceInputConfig>;
4360
+ declare const __VLS_export$28: import("@vue/runtime-core").DefineComponent<__VLS_Props$25, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3931
4361
  change: (value: string) => any;
3932
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$26> & Readonly<{
4362
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$25> & Readonly<{
3933
4363
  onChange?: ((value: string) => any) | undefined;
3934
4364
  }>, {
3935
4365
  disabled: boolean;
3936
4366
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3937
- declare const _default$13: typeof __VLS_export$27;
4367
+ declare const _default$13: typeof __VLS_export$28;
3938
4368
  //#endregion
3939
4369
  //#region temp/packages/editor/src/fields/DataSourceSelect.vue.d.ts
3940
- type __VLS_Props$25 = FieldProps<DataSourceSelect>;
3941
- declare const __VLS_export$26: import("@vue/runtime-core").DefineComponent<__VLS_Props$25, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4370
+ type __VLS_Props$24 = FieldProps<DataSourceSelect>;
4371
+ declare const __VLS_export$27: import("@vue/runtime-core").DefineComponent<__VLS_Props$24, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3942
4372
  change: (...args: any[]) => void;
3943
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$25> & Readonly<{
4373
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$24> & Readonly<{
3944
4374
  onChange?: ((...args: any[]) => any) | undefined;
3945
4375
  }>, {
3946
4376
  disabled: boolean;
3947
4377
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3948
- declare const _default$17: typeof __VLS_export$26;
4378
+ declare const _default$17: typeof __VLS_export$27;
3949
4379
  //#endregion
3950
4380
  //#region temp/packages/editor/src/fields/DataSourceMethodSelect.vue.d.ts
3951
- type __VLS_Props$24 = FieldProps<DataSourceMethodSelectConfig>;
3952
- declare const __VLS_export$25: import("@vue/runtime-core").DefineComponent<__VLS_Props$24, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4381
+ type __VLS_Props$23 = FieldProps<DataSourceMethodSelectConfig>;
4382
+ declare const __VLS_export$26: import("@vue/runtime-core").DefineComponent<__VLS_Props$23, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3953
4383
  change: (...args: any[]) => void;
3954
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$24> & Readonly<{
4384
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$23> & Readonly<{
3955
4385
  onChange?: ((...args: any[]) => any) | undefined;
3956
4386
  }>, {
3957
4387
  disabled: boolean;
3958
4388
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3959
- declare const _default$14: typeof __VLS_export$25;
4389
+ declare const _default$14: typeof __VLS_export$26;
3960
4390
  //#endregion
3961
4391
  //#region temp/packages/editor/src/fields/DataSourceFieldSelect/Index.vue.d.ts
3962
- type __VLS_Props$23 = FieldProps<DataSourceFieldSelectConfig>;
3963
- declare const __VLS_export$24: import("@vue/runtime-core").DefineComponent<__VLS_Props$23, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4392
+ type __VLS_Props$22 = FieldProps<DataSourceFieldSelectConfig>;
4393
+ declare const __VLS_export$25: import("@vue/runtime-core").DefineComponent<__VLS_Props$22, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3964
4394
  change: (...args: any[]) => void;
3965
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$23> & Readonly<{
4395
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$22> & Readonly<{
3966
4396
  onChange?: ((...args: any[]) => any) | undefined;
3967
4397
  }>, {
3968
4398
  disabled: boolean;
3969
4399
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3970
- declare const _default$11: typeof __VLS_export$24;
4400
+ declare const _default$11: typeof __VLS_export$25;
3971
4401
  //#endregion
3972
4402
  //#region temp/packages/editor/src/fields/EventSelect.vue.d.ts
3973
- type __VLS_Props$22 = FieldProps<EventSelectConfig>;
3974
- declare const __VLS_export$23: import("@vue/runtime-core").DefineComponent<__VLS_Props$22, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4403
+ type __VLS_Props$21 = FieldProps<EventSelectConfig>;
4404
+ declare const __VLS_export$24: import("@vue/runtime-core").DefineComponent<__VLS_Props$21, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3975
4405
  change: (v: any, eventData?: ContainerChangeEventData | undefined) => any;
3976
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$22> & Readonly<{
4406
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$21> & Readonly<{
3977
4407
  onChange?: ((v: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
3978
4408
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3979
- declare const _default$19: typeof __VLS_export$23;
4409
+ declare const _default$19: typeof __VLS_export$24;
3980
4410
  //#endregion
3981
4411
  //#region temp/packages/editor/src/fields/KeyValue.vue.d.ts
3982
- type __VLS_Props$21 = FieldProps<KeyValueConfig>;
3983
- declare const __VLS_export$22: import("@vue/runtime-core").DefineComponent<__VLS_Props$21, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4412
+ type __VLS_Props$20 = FieldProps<KeyValueConfig>;
4413
+ declare const __VLS_export$23: import("@vue/runtime-core").DefineComponent<__VLS_Props$20, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3984
4414
  change: (value: Record<string, any>) => any;
3985
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$21> & Readonly<{
4415
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$20> & Readonly<{
3986
4416
  onChange?: ((value: Record<string, any>) => any) | undefined;
3987
4417
  }>, {
3988
4418
  disabled: boolean;
3989
4419
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3990
- declare const _default$24: typeof __VLS_export$22;
4420
+ declare const _default$25: typeof __VLS_export$23;
3991
4421
  //#endregion
3992
4422
  //#region temp/packages/editor/src/layouts/sidebar/code-block/CodeBlockList.vue.d.ts
3993
4423
  type __VLS_Slots$9 = CodeBlockListSlots;
3994
- type __VLS_Props$20 = {
4424
+ type __VLS_Props$19 = {
3995
4425
  indent?: number;
3996
4426
  nextLevelIndentIncrement?: number;
3997
4427
  customError?: (_id: Id, _errorType: CodeDeleteErrorType) => any;
3998
4428
  };
3999
- declare const __VLS_base$9: import("@vue/runtime-core").DefineComponent<__VLS_Props$20, {
4429
+ declare const __VLS_base$9: import("@vue/runtime-core").DefineComponent<__VLS_Props$19, {
4000
4430
  nodeStatusMap: import("@vue/reactivity").Ref<Map<Id, {
4001
4431
  visible: boolean;
4002
4432
  expand: boolean;
@@ -4020,15 +4450,15 @@ declare const __VLS_base$9: import("@vue/runtime-core").DefineComponent<__VLS_Pr
4020
4450
  }) => any;
4021
4451
  edit: (id: string) => any;
4022
4452
  "node-contextmenu": (event: MouseEvent, data: TreeNodeData) => any;
4023
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$20> & Readonly<{
4453
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$19> & Readonly<{
4024
4454
  onRemove?: ((id: string, args_1: {
4025
4455
  historySource?: HistoryOpSource;
4026
4456
  }) => any) | undefined;
4027
4457
  onEdit?: ((id: string) => any) | undefined;
4028
4458
  "onNode-contextmenu"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
4029
4459
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
4030
- declare const __VLS_export$21: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
4031
- declare const _default$1: typeof __VLS_export$21;
4460
+ declare const __VLS_export$22: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
4461
+ declare const _default$1: typeof __VLS_export$22;
4032
4462
  type __VLS_WithSlots$9<T, S> = T & {
4033
4463
  new (): {
4034
4464
  $slots: S;
@@ -4037,15 +4467,15 @@ type __VLS_WithSlots$9<T, S> = T & {
4037
4467
  //#endregion
4038
4468
  //#region temp/packages/editor/src/layouts/sidebar/code-block/CodeBlockListPanel.vue.d.ts
4039
4469
  type __VLS_Slots$8 = CodeBlockListPanelSlots;
4040
- type __VLS_Props$19 = {
4470
+ type __VLS_Props$18 = {
4041
4471
  indent?: number;
4042
4472
  nextLevelIndentIncrement?: number;
4043
4473
  customError?: (_id: Id, _errorType: CodeDeleteErrorType) => any;
4044
4474
  customContentMenu: CustomContentMenuFunction;
4045
4475
  };
4046
- declare const __VLS_base$8: import("@vue/runtime-core").DefineComponent<__VLS_Props$19, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$19> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
4047
- declare const __VLS_export$20: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
4048
- declare const _default$2: typeof __VLS_export$20;
4476
+ declare const __VLS_base$8: import("@vue/runtime-core").DefineComponent<__VLS_Props$18, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$18> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
4477
+ declare const __VLS_export$21: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
4478
+ declare const _default$2: typeof __VLS_export$21;
4049
4479
  type __VLS_WithSlots$8<T, S> = T & {
4050
4480
  new (): {
4051
4481
  $slots: S;
@@ -4053,7 +4483,7 @@ type __VLS_WithSlots$8<T, S> = T & {
4053
4483
  };
4054
4484
  //#endregion
4055
4485
  //#region temp/packages/editor/src/layouts/sidebar/data-source/DataSourceConfigPanel.vue.d.ts
4056
- type __VLS_Props$18 = {
4486
+ type __VLS_Props$17 = {
4057
4487
  title?: string;
4058
4488
  values: any;
4059
4489
  disabled: boolean;
@@ -4062,27 +4492,27 @@ type __VLS_ModelProps$2 = {
4062
4492
  'visible'?: boolean;
4063
4493
  'width'?: number;
4064
4494
  };
4065
- type __VLS_PublicProps$2 = __VLS_Props$18 & __VLS_ModelProps$2;
4066
- declare const __VLS_export$19: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$2, {
4495
+ type __VLS_PublicProps$2 = __VLS_Props$17 & __VLS_ModelProps$2;
4496
+ declare const __VLS_export$20: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$2, {
4067
4497
  show(): void;
4068
4498
  hide(): void;
4069
4499
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4070
4500
  close: () => any;
4071
4501
  submit: (v: any, eventData: ContainerChangeEventData) => any;
4072
4502
  open: (id: string) => any;
4073
- "update:width": (value: number) => any;
4074
4503
  "update:visible": (value: boolean) => any;
4504
+ "update:width": (value: number) => any;
4075
4505
  }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps$2> & Readonly<{
4076
4506
  onClose?: (() => any) | undefined;
4077
4507
  onSubmit?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
4078
4508
  onOpen?: ((id: string) => any) | undefined;
4079
- "onUpdate:width"?: ((value: number) => any) | undefined;
4080
4509
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
4510
+ "onUpdate:width"?: ((value: number) => any) | undefined;
4081
4511
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
4082
- declare const _default$10: typeof __VLS_export$19;
4512
+ declare const _default$10: typeof __VLS_export$20;
4083
4513
  //#endregion
4084
4514
  //#region temp/packages/editor/src/layouts/sidebar/data-source/DataSourceAddButton.vue.d.ts
4085
- type __VLS_Props$17 = {
4515
+ type __VLS_Props$16 = {
4086
4516
  datasourceTypeList: {
4087
4517
  text: string;
4088
4518
  type: string;
@@ -4090,20 +4520,20 @@ type __VLS_Props$17 = {
4090
4520
  addButtonConfig?: ButtonProps;
4091
4521
  addButtonText?: string;
4092
4522
  };
4093
- declare const __VLS_export$18: import("@vue/runtime-core").DefineComponent<__VLS_Props$17, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4523
+ declare const __VLS_export$19: import("@vue/runtime-core").DefineComponent<__VLS_Props$16, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4094
4524
  add: (type: string) => any;
4095
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$17> & Readonly<{
4525
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$16> & Readonly<{
4096
4526
  onAdd?: ((type: string) => any) | undefined;
4097
4527
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
4098
- declare const _default$9: typeof __VLS_export$18;
4528
+ declare const _default$9: typeof __VLS_export$19;
4099
4529
  //#endregion
4100
4530
  //#region temp/packages/editor/src/layouts/props-panel/PropsPanel.vue.d.ts
4101
4531
  type __VLS_Slots$7 = PropsPanelSlots;
4102
- type __VLS_Props$16 = {
4532
+ type __VLS_Props$15 = {
4103
4533
  disabledShowSrc?: boolean;
4104
4534
  extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4105
4535
  };
4106
- declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Props$16, {
4536
+ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Props$15, {
4107
4537
  getFormState(): FormState | undefined;
4108
4538
  submit: (v: MNode, eventData?: ContainerChangeEventData) => Promise<void>;
4109
4539
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
@@ -4556,7 +4986,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
4556
4986
  unmounted: () => any;
4557
4987
  "submit-error": (e: any) => any;
4558
4988
  "form-error": (e: any) => any;
4559
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$16> & Readonly<{
4989
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$15> & Readonly<{
4560
4990
  onMounted?: ((internalInstance: {
4561
4991
  $: import("@vue/runtime-core").ComponentInternalInstance;
4562
4992
  $data: {};
@@ -5007,8 +5437,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
5007
5437
  "onSubmit-error"?: ((e: any) => any) | undefined;
5008
5438
  "onForm-error"?: ((e: any) => any) | undefined;
5009
5439
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5010
- declare const __VLS_export$17: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
5011
- declare const _default$29: typeof __VLS_export$17;
5440
+ declare const __VLS_export$18: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
5441
+ declare const _default$30: typeof __VLS_export$18;
5012
5442
  type __VLS_WithSlots$7<T, S> = T & {
5013
5443
  new (): {
5014
5444
  $slots: S;
@@ -5019,7 +5449,7 @@ type __VLS_WithSlots$7<T, S> = T & {
5019
5449
  type __VLS_Slots$6 = {
5020
5450
  'props-form-panel-header'(_props: {}): any;
5021
5451
  };
5022
- type __VLS_Props$15 = {
5452
+ type __VLS_Props$14 = {
5023
5453
  config: FormConfig;
5024
5454
  values: FormValue;
5025
5455
  disabledShowSrc?: boolean;
@@ -5028,7 +5458,7 @@ type __VLS_Props$15 = {
5028
5458
  labelPosition?: string;
5029
5459
  extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
5030
5460
  };
5031
- declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Props$15, {
5461
+ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Props$14, {
5032
5462
  configForm: Readonly<import("@vue/reactivity").ShallowRef<({
5033
5463
  $: import("@vue/runtime-core").ComponentInternalInstance;
5034
5464
  $data: {};
@@ -5213,15 +5643,15 @@ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Pr
5213
5643
  submit: (values: any, eventData?: ContainerChangeEventData | undefined) => any;
5214
5644
  "submit-error": (e: any) => any;
5215
5645
  "form-error": (e: any) => any;
5216
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$15> & Readonly<{
5646
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$14> & Readonly<{
5217
5647
  onMounted?: ((internalInstance: any) => any) | undefined;
5218
5648
  onUnmounted?: (() => any) | undefined;
5219
5649
  onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
5220
5650
  "onSubmit-error"?: ((e: any) => any) | undefined;
5221
5651
  "onForm-error"?: ((e: any) => any) | undefined;
5222
5652
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5223
- declare const __VLS_export$16: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
5224
- declare const _default$28: typeof __VLS_export$16;
5653
+ declare const __VLS_export$17: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
5654
+ declare const _default$29: typeof __VLS_export$17;
5225
5655
  type __VLS_WithSlots$6<T, S> = T & {
5226
5656
  new (): {
5227
5657
  $slots: S;
@@ -5229,20 +5659,20 @@ type __VLS_WithSlots$6<T, S> = T & {
5229
5659
  };
5230
5660
  //#endregion
5231
5661
  //#region temp/packages/editor/src/components/ToolButton.vue.d.ts
5232
- type __VLS_Props$14 = {
5662
+ type __VLS_Props$13 = {
5233
5663
  data?: MenuButton | MenuComponent;
5234
5664
  eventType?: 'mousedown' | 'mouseup' | 'click';
5235
5665
  };
5236
- declare const __VLS_export$15: import("@vue/runtime-core").DefineComponent<__VLS_Props$14, {
5666
+ declare const __VLS_export$16: import("@vue/runtime-core").DefineComponent<__VLS_Props$13, {
5237
5667
  getElRef: () => Readonly<import("@vue/reactivity").ShallowRef<HTMLDivElement | null>>;
5238
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$14> & Readonly<{}>, {
5668
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$13> & Readonly<{}>, {
5239
5669
  data: MenuButton | MenuComponent;
5240
5670
  eventType: "mousedown" | "mouseup" | "click";
5241
5671
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5242
- declare const _default$34: typeof __VLS_export$15;
5672
+ declare const _default$35: typeof __VLS_export$16;
5243
5673
  //#endregion
5244
5674
  //#region temp/packages/editor/src/components/ContentMenu.vue.d.ts
5245
- type __VLS_Props$13 = {
5675
+ type __VLS_Props$12 = {
5246
5676
  menuData?: (MenuButton | MenuComponent)[];
5247
5677
  isSubMenu?: boolean;
5248
5678
  active?: string | number;
@@ -5252,7 +5682,7 @@ declare var __VLS_7$1: {};
5252
5682
  type __VLS_Slots$5 = {} & {
5253
5683
  title?: (props: typeof __VLS_7$1) => any;
5254
5684
  };
5255
- declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Props$13, {
5685
+ declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Props$12, {
5256
5686
  menu: Readonly<import("@vue/reactivity").ShallowRef<HTMLDivElement | null>>;
5257
5687
  menuPosition: Ref<{
5258
5688
  left: number;
@@ -5278,7 +5708,7 @@ declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Pr
5278
5708
  mouseenter: () => any;
5279
5709
  show: () => any;
5280
5710
  hide: () => any;
5281
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$13> & Readonly<{
5711
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$12> & Readonly<{
5282
5712
  onMouseenter?: (() => any) | undefined;
5283
5713
  onShow?: (() => any) | undefined;
5284
5714
  onHide?: (() => any) | undefined;
@@ -5287,8 +5717,8 @@ declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Pr
5287
5717
  isSubMenu: boolean;
5288
5718
  autoHide: boolean;
5289
5719
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5290
- declare const __VLS_export$14: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
5291
- declare const _default$8: typeof __VLS_export$14;
5720
+ declare const __VLS_export$15: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
5721
+ declare const _default$8: typeof __VLS_export$15;
5292
5722
  type __VLS_WithSlots$5<T, S> = T & {
5293
5723
  new (): {
5294
5724
  $slots: S;
@@ -5296,14 +5726,14 @@ type __VLS_WithSlots$5<T, S> = T & {
5296
5726
  };
5297
5727
  //#endregion
5298
5728
  //#region temp/packages/editor/src/components/Icon.vue.d.ts
5299
- type __VLS_Props$12 = {
5729
+ type __VLS_Props$11 = {
5300
5730
  icon?: any;
5301
5731
  };
5302
- declare const __VLS_export$13: import("@vue/runtime-core").DefineComponent<__VLS_Props$12, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$12> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5303
- declare const _default$23: typeof __VLS_export$13;
5732
+ declare const __VLS_export$14: import("@vue/runtime-core").DefineComponent<__VLS_Props$11, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$11> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5733
+ declare const _default$24: typeof __VLS_export$14;
5304
5734
  //#endregion
5305
5735
  //#region temp/packages/editor/src/components/SplitView.vue.d.ts
5306
- type __VLS_Props$11 = {
5736
+ type __VLS_Props$10 = {
5307
5737
  width?: number;
5308
5738
  left?: number;
5309
5739
  right?: number;
@@ -5322,13 +5752,13 @@ type __VLS_Slots$4 = {} & {
5322
5752
  } & {
5323
5753
  right?: (props: typeof __VLS_19) => any;
5324
5754
  };
5325
- declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Props$11, {
5755
+ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Props$10, {
5326
5756
  updateWidth(): void;
5327
5757
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
5328
5758
  change: (...args: any[]) => void;
5329
5759
  "update:left": (...args: any[]) => void;
5330
5760
  "update:right": (...args: any[]) => void;
5331
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$11> & Readonly<{
5761
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$10> & Readonly<{
5332
5762
  onChange?: ((...args: any[]) => any) | undefined;
5333
5763
  "onUpdate:left"?: ((...args: any[]) => any) | undefined;
5334
5764
  "onUpdate:right"?: ((...args: any[]) => any) | undefined;
@@ -5337,8 +5767,8 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
5337
5767
  minRight: number;
5338
5768
  minCenter: number;
5339
5769
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5340
- declare const __VLS_export$12: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
5341
- declare const _default$26: typeof __VLS_export$12;
5770
+ declare const __VLS_export$13: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
5771
+ declare const _default$27: typeof __VLS_export$13;
5342
5772
  type __VLS_WithSlots$4<T, S> = T & {
5343
5773
  new (): {
5344
5774
  $slots: S;
@@ -5355,8 +5785,8 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<{}, {},
5355
5785
  }, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{
5356
5786
  onChange?: ((e: OnDrag$1<import("gesto").default>) => any) | undefined;
5357
5787
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
5358
- declare const __VLS_export$11: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
5359
- declare const _default$30: typeof __VLS_export$11;
5788
+ declare const __VLS_export$12: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
5789
+ declare const _default$31: typeof __VLS_export$12;
5360
5790
  type __VLS_WithSlots$3<T, S> = T & {
5361
5791
  new (): {
5362
5792
  $slots: S;
@@ -5364,7 +5794,7 @@ type __VLS_WithSlots$3<T, S> = T & {
5364
5794
  };
5365
5795
  //#endregion
5366
5796
  //#region temp/packages/editor/src/components/CodeBlockEditor.vue.d.ts
5367
- type __VLS_Props$10 = {
5797
+ type __VLS_Props$9 = {
5368
5798
  content: Omit<CodeBlockContent, 'content'> & {
5369
5799
  content: string;
5370
5800
  };
@@ -5376,27 +5806,27 @@ type __VLS_ModelProps$1 = {
5376
5806
  'width'?: number;
5377
5807
  'visible'?: boolean;
5378
5808
  };
5379
- type __VLS_PublicProps$1 = __VLS_Props$10 & __VLS_ModelProps$1;
5380
- declare const __VLS_export$10: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$1, {
5809
+ type __VLS_PublicProps$1 = __VLS_Props$9 & __VLS_ModelProps$1;
5810
+ declare const __VLS_export$11: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$1, {
5381
5811
  show(): Promise<void>;
5382
5812
  hide(): Promise<void>;
5383
5813
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
5384
5814
  close: () => any;
5385
5815
  submit: (values: CodeBlockContent, eventData: ContainerChangeEventData) => any;
5386
5816
  open: () => any;
5387
- "update:width": (value: number) => any;
5388
5817
  "update:visible": (value: boolean) => any;
5818
+ "update:width": (value: number) => any;
5389
5819
  }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps$1> & Readonly<{
5390
5820
  onClose?: (() => any) | undefined;
5391
5821
  onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData) => any) | undefined;
5392
5822
  onOpen?: (() => any) | undefined;
5393
- "onUpdate:width"?: ((value: number) => any) | undefined;
5394
5823
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
5824
+ "onUpdate:width"?: ((value: number) => any) | undefined;
5395
5825
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5396
- declare const _default: typeof __VLS_export$10;
5826
+ declare const _default: typeof __VLS_export$11;
5397
5827
  //#endregion
5398
5828
  //#region temp/packages/editor/src/components/CompareForm.vue.d.ts
5399
- type __VLS_Props$9 = {
5829
+ type __VLS_Props$8 = {
5400
5830
  /** 当前值(修改后的值) */value: Partial<MNode> | Partial<DataSourceSchema> | Partial<CodeBlockContent> | Record<string, any>; /** 用于对比的旧值(修改前的值) */
5401
5831
  lastValue?: Partial<MNode> | Partial<DataSourceSchema> | Partial<CodeBlockContent> | Record<string, any>;
5402
5832
  /**
@@ -5428,61 +5858,121 @@ type __VLS_Props$9 = {
5428
5858
  */
5429
5859
  loadConfig?: CompareFormLoadConfig;
5430
5860
  };
5431
- declare const __VLS_export$9: import("@vue/runtime-core").DefineComponent<__VLS_Props$9, {
5861
+ declare const __VLS_export$10: import("@vue/runtime-core").DefineComponent<__VLS_Props$8, {
5432
5862
  form: ShallowRef<InstanceType<typeof MForm> | null>;
5433
5863
  config: Ref<FormConfig>;
5434
5864
  reload: () => Promise<void>;
5435
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$9> & Readonly<{}>, {
5865
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$8> & Readonly<{}>, {
5436
5866
  labelWidth: string;
5437
5867
  category: CompareCategory;
5438
5868
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5439
- declare const _default$5: typeof __VLS_export$9;
5869
+ declare const _default$5: typeof __VLS_export$10;
5440
5870
  //#endregion
5441
- //#region temp/packages/editor/src/layouts/history-list/Bucket.vue.d.ts
5442
- type __VLS_Props$8 = {
5443
- /** Bucket 标题,例如 "数据源" / "代码块",渲染在 bucket 头部。 */title: string; /** 当前 bucket 对应的目标 id(dataSource.id 或 codeBlock.id),同时用于组装子项的 key。 */
5444
- bucketId: string | number;
5445
- /**
5446
- * 子项 key 的命名空间前缀:内置 `ds` 表示数据源,`cb` 表示代码块;
5447
- * 业务方复用 Bucket 时可传入自定义前缀(如 `mod`)。与上层折叠状态 key 保持一致。
5448
- */
5449
- prefix: string; /** 是否展示底部「回到初始状态」入口,默认 true。无 undo cursor 语义的自定义历史可传 false 关闭。 */
5450
- showInitial?: boolean; /** 当前 bucket 下的所有历史分组,按时间倒序展示(最近的操作在前)。 */
5451
- groups: {
5871
+ //#region temp/packages/editor/src/layouts/history-list/composables.d.ts
5872
+ /**
5873
+ * 通用 bucket 分组(数据源 / 代码块及业务自定义历史)在面板中的展示结构。
5874
+ * Bucket / BucketTab 复用,step 类型通过泛型 T 收窄(约束为 {@link BaseStepValue})。
5875
+ */
5876
+ interface HistoryBucketGroup<T extends BaseStepValue = BaseStepValue> {
5877
+ /** 组内最后一步是否已应用 */
5878
+ applied: boolean;
5879
+ /** 是否为当前所在的分组 */
5880
+ isCurrent?: boolean;
5881
+ /** 该分组的操作类型 */
5882
+ opType: HistoryOpType;
5883
+ /** 组内所有步骤 */
5884
+ steps: {
5885
+ index: number;
5452
5886
  applied: boolean;
5453
5887
  isCurrent?: boolean;
5454
- opType: HistoryOpType;
5455
- steps: {
5456
- index: number;
5457
- applied: boolean;
5458
- isCurrent?: boolean;
5459
- step: any;
5888
+ step: T;
5889
+ }[];
5890
+ }
5891
+ //#endregion
5892
+ //#region temp/packages/editor/src/layouts/history-list/Bucket.vue.d.ts
5893
+ declare const __VLS_export$9: <T extends BaseStepValue = BaseStepValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$1<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5894
+ props: import("vue").PublicProps & __VLS_PrettifyLocal$1<{
5895
+ /**
5896
+ * 该类历史的整体渲染配置(title / prefix / describe* / isStep* / showInitial / gotoEnabled)。
5897
+ * 由父组件按业务类型注入,组件内部按需读取,避免逐项透传多个 props。
5898
+ */
5899
+ config: HistoryBucketConfig<T>; /** 当前 bucket 对应的目标 id(dataSource.id 或 codeBlock.id),同时用于组装子项的 key。 */
5900
+ bucketId: string | number; /** 当前 bucket 下的所有历史分组,按时间倒序展示(最近的操作在前)。 */
5901
+ groups: HistoryBucketGroup<T>[]; /** 共享的折叠状态表(key -> 是否展开,缺省或 true 为展开、false 为收起),由顶层 panel 统一维护以便跨 tab 复用。 */
5902
+ expanded: Record<string, boolean>;
5903
+ } & {
5904
+ onToggle?: ((_key: string) => any) | undefined;
5905
+ onGoto?: ((_bucketId: string | number, _index: number) => any) | undefined;
5906
+ "onDiff-step"?: ((_bucketId: string | number, _index: number) => any) | undefined;
5907
+ "onRevert-step"?: ((_bucketId: string | number, _index: number) => any) | undefined;
5908
+ "onGoto-initial"?: ((_bucketId: string | number) => any) | undefined;
5909
+ }> & (typeof globalThis extends {
5910
+ __VLS_PROPS_FALLBACK: infer P;
5911
+ } ? P : {});
5912
+ expose: (exposed: {}) => void;
5913
+ attrs: any;
5914
+ slots: {};
5915
+ emit: {
5916
+ (_e: "toggle", _key: string): void;
5917
+ (_e: "goto", _bucketId: string | number, _index: number): void;
5918
+ (_e: "goto-initial", _bucketId: string | number): void;
5919
+ (_e: "diff-step", _bucketId: string | number, _index: number): void;
5920
+ (_e: "revert-step", _bucketId: string | number, _index: number): void;
5921
+ };
5922
+ }>) => import("vue").VNode & {
5923
+ __ctx?: Awaited<typeof __VLS_setup>;
5924
+ };
5925
+ declare const _default$22: typeof __VLS_export$9;
5926
+ type __VLS_PrettifyLocal$1<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
5927
+ //#endregion
5928
+ //#region temp/packages/editor/src/layouts/history-list/BucketTab.vue.d.ts
5929
+ declare const __VLS_export$8: <T extends BaseStepValue = BaseStepValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5930
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
5931
+ /**
5932
+ * 该类历史的整体渲染配置(title / prefix / describe* / isStep* / showInitial / gotoEnabled),
5933
+ * 由父组件按业务类型注入并整体透传给 Bucket,避免逐项透传多个 props。
5934
+ */
5935
+ config: HistoryBucketConfig<T>;
5936
+ /**
5937
+ * 已按目标 id 聚拢成的 bucket 列表,每个 bucket 内部的 groups 已按时间倒序排好。
5938
+ * 空数组时显示空态。
5939
+ */
5940
+ buckets: {
5941
+ id: string | number;
5942
+ groups: HistoryBucketGroup<T>[];
5460
5943
  }[];
5461
- }[]; /** 组级描述文案生成器,接收一个 group,返回展示文本。由父组件按业务类型注入。 */
5462
- describeGroup: (_group: any) => string; /** 单步描述文案生成器,接收一个 step,返回展示文本。用于合并组展开后的子步列表。 */
5463
- describeStep: (_step: any) => string; /** 判断某个 step 是否可查看差异(前后值都存在)。由父组件按业务类型注入;不传则一律不展示差异入口。 */
5464
- isStepDiffable?: (_step: any) => boolean; /** 判断某个 step 是否支持回滚(如更新需带 changeRecords)。由父组件按业务类型注入;不传则已应用即可回滚。 */
5465
- isStepRevertable?: (_step: any) => boolean; /** 共享的折叠状态表(key -> 是否展开),由顶层 panel 统一维护以便跨 tab 复用。 */
5466
- expanded: Record<string, boolean>; /** 是否支持「跳转到该记录」(goto)。默认 true。 */
5467
- gotoEnabled?: boolean;
5944
+ /**
5945
+ * 共享的折叠状态表(key -> 是否展开),由顶层 panel 统一维护。
5946
+ * key 形如 `${prefix}-${id}-${组内首步 index}`——以稳定的 step 索引而非展示位置标识分组,
5947
+ * 这样历史数据更新后已展开的分组状态仍能正确保持。
5948
+ */
5949
+ expanded: Record<string, boolean>;
5950
+ } & {
5951
+ onClear?: (() => any) | undefined;
5952
+ onToggle?: ((_key: string) => any) | undefined;
5953
+ onGoto?: ((_targetId: string | number, _index: number) => any) | undefined;
5954
+ "onDiff-step"?: ((_targetId: string | number, _index: number) => any) | undefined;
5955
+ "onRevert-step"?: ((_targetId: string | number, _index: number) => any) | undefined;
5956
+ "onGoto-initial"?: ((_targetId: string | number) => any) | undefined;
5957
+ }> & (typeof globalThis extends {
5958
+ __VLS_PROPS_FALLBACK: infer P;
5959
+ } ? P : {});
5960
+ expose: (exposed: {}) => void;
5961
+ attrs: any;
5962
+ slots: {};
5963
+ emit: {
5964
+ (_e: "toggle", _key: string): void;
5965
+ (_e: "goto", _targetId: string | number, _index: number): void;
5966
+ (_e: "goto-initial", _targetId: string | number): void;
5967
+ (_e: "diff-step", _targetId: string | number, _index: number): void;
5968
+ (_e: "revert-step", _targetId: string | number, _index: number): void;
5969
+ (_e: "clear"): void;
5970
+ };
5971
+ }>) => import("vue").VNode & {
5972
+ __ctx?: Awaited<typeof __VLS_setup>;
5468
5973
  };
5469
- declare const __VLS_export$8: import("@vue/runtime-core").DefineComponent<__VLS_Props$8, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
5470
- toggle: (_key: string) => any;
5471
- goto: (_bucketId: string | number, _index: number) => any;
5472
- "diff-step": (_bucketId: string | number, _index: number) => any;
5473
- "revert-step": (_bucketId: string | number, _index: number) => any;
5474
- "goto-initial": (_bucketId: string | number) => any;
5475
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$8> & Readonly<{
5476
- onToggle?: ((_key: string) => any) | undefined;
5477
- onGoto?: ((_bucketId: string | number, _index: number) => any) | undefined;
5478
- "onDiff-step"?: ((_bucketId: string | number, _index: number) => any) | undefined;
5479
- "onRevert-step"?: ((_bucketId: string | number, _index: number) => any) | undefined;
5480
- "onGoto-initial"?: ((_bucketId: string | number) => any) | undefined;
5481
- }>, {
5482
- gotoEnabled: boolean;
5483
- showInitial: boolean;
5484
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5485
- declare const _default$22: typeof __VLS_export$8;
5974
+ declare const _default$23: typeof __VLS_export$8;
5975
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
5486
5976
  //#endregion
5487
5977
  //#region temp/packages/editor/src/layouts/history-list/HistoryDiffDialog.vue.d.ts
5488
5978
  type __VLS_Props$7 = {
@@ -5498,11 +5988,13 @@ type __VLS_Props$7 = {
5498
5988
  */
5499
5989
  loadConfig?: CompareFormLoadConfig;
5500
5990
  width?: string;
5991
+ isConfirm?: boolean;
5501
5992
  onConfirm?: () => void;
5502
5993
  selfDiffFieldTypes?: string[];
5503
5994
  };
5504
5995
  declare const __VLS_export$7: import("@vue/runtime-core").DefineComponent<__VLS_Props$7, {
5505
5996
  open: (p: DiffDialogPayload) => void;
5997
+ confirm: (p: DiffDialogPayload) => Promise<boolean>;
5506
5998
  close: () => void;
5507
5999
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
5508
6000
  close: (...args: any[]) => void;
@@ -5540,13 +6032,13 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pu
5540
6032
  target: Readonly<import("@vue/reactivity").ShallowRef<HTMLDivElement | null>>;
5541
6033
  titleEl: Readonly<import("@vue/reactivity").ShallowRef<HTMLDivElement | null>>;
5542
6034
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
6035
+ "update:visible": (value: boolean) => any;
5543
6036
  "update:width": (value: number) => any;
5544
6037
  "update:height": (value: number) => any;
5545
- "update:visible": (value: boolean) => any;
5546
6038
  }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
6039
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
5547
6040
  "onUpdate:width"?: ((value: number) => any) | undefined;
5548
6041
  "onUpdate:height"?: ((value: number) => any) | undefined;
5549
- "onUpdate:visible"?: ((value: boolean) => any) | undefined;
5550
6042
  }>, {
5551
6043
  title: string;
5552
6044
  position: Position;
@@ -5602,7 +6094,7 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
5602
6094
  indent: number;
5603
6095
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5604
6096
  declare const __VLS_export$5: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
5605
- declare const _default$35: typeof __VLS_export$5;
6097
+ declare const _default$36: typeof __VLS_export$5;
5606
6098
  type __VLS_WithSlots$1<T, S> = T & {
5607
6099
  new (): {
5608
6100
  $slots: S;
@@ -5653,7 +6145,7 @@ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Prop
5653
6145
  isExpandable: IsExpandableFunction;
5654
6146
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5655
6147
  declare const __VLS_export$4: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
5656
- declare const _default$36: typeof __VLS_export$4;
6148
+ declare const _default$37: typeof __VLS_export$4;
5657
6149
  type __VLS_WithSlots<T, S> = T & {
5658
6150
  new (): {
5659
6151
  $slots: S;
@@ -5669,7 +6161,7 @@ declare const __VLS_export$3: import("@vue/runtime-core").DefineComponent<__VLS_
5669
6161
  }>, {
5670
6162
  disabled: boolean;
5671
6163
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5672
- declare const _default$27: typeof __VLS_export$3;
6164
+ declare const _default$28: typeof __VLS_export$3;
5673
6165
  //#endregion
5674
6166
  //#region temp/packages/editor/src/fields/DisplayConds.vue.d.ts
5675
6167
  type __VLS_Props$2 = FieldProps<DisplayCondsConfig>;
@@ -5700,11 +6192,11 @@ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Pr
5700
6192
  onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
5701
6193
  onAddDiffCount?: (() => any) | undefined;
5702
6194
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5703
- declare const _default$31: typeof __VLS_export;
6195
+ declare const _default$32: typeof __VLS_export;
5704
6196
  //#endregion
5705
6197
  //#region temp/packages/editor/src/plugin.d.ts
5706
- declare const _default$39: {
6198
+ declare const _default$40: {
5707
6199
  install: (app: App, opt?: Partial<EditorInstallOptions | DesignPluginOptions | FormInstallOptions>) => void;
5708
6200
  };
5709
6201
  //#endregion
5710
- export { AddMNode, AddPrefixToObject, AsyncAfterHook, AsyncBeforeHook, AsyncHookPlugin, AsyncMethodName, BeforeAdd, CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, CanDropInFunction, CanDropInScene, _default as CodeBlockEditor, CodeBlockHistoryGroup, _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, CompareFormLoadConfig, CompareFormLoadConfigContext, ComponentGroup, ComponentGroupState, ComponentItem, _default$6 as ComponentListPanel, ComponentListPanelSlots, _default$7 as CondOpSelect, _default$8 as ContentMenu, CustomContentMenuFunction, DEFAULT_LEFT_COLUMN_WIDTH, DEFAULT_RIGHT_COLUMN_WIDTH, _default$9 as DataSourceAddButton, _default$10 as DataSourceConfigPanel, _default$11 as DataSourceFieldSelect, _default$12 as DataSourceFields, DataSourceHistoryGroup, _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, EditorEvents, EditorInstallOptions, EditorNodeInfo, EditorSlots, EventBus, EventBusEvent, _default$19 as EventSelect, Fixed2Other, _default$20 as FloatingBox, FrameworkSlots, GetCodeBlockFormConfigOptions, GetColumnWidth, GetConfig, H_GUIDE_LINE_STORAGE_KEY, _default$21 as HistoryDiffDialog, _default$22 as HistoryListBucket, HistoryListExtraTab, HistoryOpOptions, HistoryOpOptionsWithChangeRecords, HistoryOpSource, HistoryOpType, HistoryState, _default$23 as Icon, IdleTask, IdleTaskEvents, IsExpandableFunction, KeyBindingCacheItem, KeyBindingCommand, KeyBindingItem, _default$24 as KeyValue, Keys, LEFT_COLUMN_WIDTH_STORAGE_KEY, LayerNodeSlots, LayerNodeStatus, LayerOffset, _default$25 as LayerPanel, LayerPanelSlots, Layout, _default$26 as LayoutContainer, _default$26 as SplitView, ListState, MIN_CENTER_COLUMN_WIDTH, MIN_LEFT_COLUMN_WIDTH, MIN_RIGHT_COLUMN_WIDTH, MenuBarData, MenuButton, MenuComponent, MenuItem, type OnDrag, PROPS_PANEL_WIDTH_STORAGE_KEY, PageBarSortOptions, _default$27 as PageFragmentSelect, PageHistoryGroup, PageHistoryStepEntry, PartSortableOptions, PastePosition, PropsFormConfigFunction, _default$28 as PropsFormPanel, PropsFormValueFunction, _default$29 as PropsPanel, PropsPanelSlots, PropsState, RIGHT_COLUMN_WIDTH_STORAGE_KEY, _default$30 as Resizer, ScrollViewer, ScrollViewerEvent, ScrollViewerSlots, Services, SetColumnWidth, SideBarData, SideComponent, SideItem, SideItemKey, SidebarSlots, StageCore, StageOptions, StageOverlayState, StageRect, StageSlots, StepValue, StoreState, StoreStateKey, _default$31 as StyleSetter, SyncAfterHook, SyncBeforeHook, SyncHookPlugin, _default$32 as TMagicCodeEditor, _default$33 as TMagicEditor, _default$34 as ToolButton, _default$35 as Tree, _default$36 as TreeNode, TreeNodeData, UI_SELECT_MODE_EVENT_NAME, UiState, UndoRedo, V_GUIDE_LINE_STORAGE_KEY, WorkspaceSlots, advancedTabConfig, arrayOptions, beforePaste, buildChangeRecords, calcAlignCenterStyle, calcLayerTargetIndex, calcMoveStyle, canUsePluginMethods, change2Fixed, classifyDragSources, _default$37 as codeBlockService, collectRelatedNodes, _default$38 as dataSourceService, debug, _default$39 as default, defaultIsExpandable, _default$40 as depService, designPlugin, displayTabConfig, editorNodeMergeCustomizer, _default$41 as editorService, eqOptions, error, eventTabConfig, _default$42 as eventsService, fillConfig, fixNodeLeft, fixNodePosition, formPlugin, generatePageName, generatePageNameByApp, getAddParent, getCascaderOptionsFromFields, getCodeBlockFormConfig, getDefaultConfig, getDisplayField, getEditorConfig, getFieldType, getFormConfig, getFormValue, getGuideLineFromCache, getInitPositionStyle, getNodeIndex, getPageFragmentList, getPageList, getPageNameList, getPositionInContainer, getRelativeStyle, _default$43 as historyService, info, isIncludeDataSource, _default$44 as loadMonaco, log, moveItemsInContainer, numberOptions, _default$45 as propsService, resolveSelectedNode, serializeConfig, setChildrenLayout, setEditorConfig, setLayout, _default$46 as stageOverlayService, _default$47 as storageService, styleTabConfig, tablePlugin, toggleFixedPosition, _default$48 as uiService, updateStatus, useCodeBlockEdit, useEditorContentHeight, useFilter, useFloatBox, useGetSo, useNextFloatBoxPosition, useNodeStatus, useServices, useStage, useWindowRect, warn };
6202
+ export { 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, CodeBlockHistoryGroup, _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, CompareFormLoadConfig, CompareFormLoadConfigContext, ComponentGroup, ComponentGroupState, ComponentItem, _default$6 as ComponentListPanel, ComponentListPanelSlots, _default$7 as CondOpSelect, _default$8 as ContentMenu, CustomContentMenuFunction, DEFAULT_LEFT_COLUMN_WIDTH, DEFAULT_RIGHT_COLUMN_WIDTH, _default$9 as DataSourceAddButton, _default$10 as DataSourceConfigPanel, _default$11 as DataSourceFieldSelect, _default$12 as DataSourceFields, DataSourceHistoryGroup, _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, EditorEvents, EditorInstallOptions, EditorNodeInfo, EditorSlots, EventBus, EventBusEvent, _default$19 as EventSelect, Fixed2Other, _default$20 as FloatingBox, FrameworkSlots, GetCodeBlockFormConfigOptions, GetColumnWidth, GetConfig, H_GUIDE_LINE_STORAGE_KEY, HistoryBucketConfig, _default$21 as HistoryDiffDialog, _default$22 as HistoryListBucket, _default$23 as HistoryListBucketTab, HistoryListExtraTab, HistoryOpOptions, HistoryOpOptionsWithChangeRecords, HistoryOpSource, HistoryOpType, HistoryPersistOptions, HistoryRowDescriptor, HistoryState, _default$24 as Icon, IdleTask, IdleTaskEvents, IsExpandableFunction, KeyBindingCacheItem, KeyBindingCommand, KeyBindingItem, _default$25 as KeyValue, Keys, LEFT_COLUMN_WIDTH_STORAGE_KEY, LayerNodeSlots, LayerNodeStatus, LayerOffset, _default$26 as LayerPanel, LayerPanelSlots, Layout, _default$27 as LayoutContainer, _default$27 as SplitView, ListState, MIN_CENTER_COLUMN_WIDTH, MIN_LEFT_COLUMN_WIDTH, MIN_RIGHT_COLUMN_WIDTH, MenuBarData, MenuButton, MenuComponent, MenuItem, type OnDrag, PROPS_PANEL_WIDTH_STORAGE_KEY, PageBarSortOptions, _default$28 as PageFragmentSelect, PageHistoryGroup, PageHistoryStepEntry, PartSortableOptions, PastePosition, PersistedHistoryState, PropsFormConfigFunction, _default$29 as PropsFormPanel, PropsFormValueFunction, _default$30 as PropsPanel, PropsPanelSlots, PropsState, RIGHT_COLUMN_WIDTH_STORAGE_KEY, _default$31 as Resizer, ScrollViewer, ScrollViewerEvent, ScrollViewerSlots, SerializedUndoRedo, Services, SetColumnWidth, SideBarData, SideComponent, SideItem, SideItemKey, SidebarSlots, StageCore, StageOptions, StageOverlayState, StageRect, StageSlots, StepDiffItem, StepValue, StoreState, StoreStateKey, _default$32 as StyleSetter, SyncAfterHook, SyncBeforeHook, SyncHookPlugin, _default$33 as TMagicCodeEditor, _default$34 as TMagicEditor, _default$35 as ToolButton, _default$36 as Tree, _default$37 as TreeNode, TreeNodeData, UI_SELECT_MODE_EVENT_NAME, UiState, UndoRedo, V_GUIDE_LINE_STORAGE_KEY, WorkspaceSlots, advancedTabConfig, arrayOptions, beforePaste, buildChangeRecords, calcAlignCenterStyle, calcLayerTargetIndex, calcMoveStyle, canUsePluginMethods, change2Fixed, classifyDragSources, _default$38 as codeBlockService, collectRelatedNodes, createStackStep, _default$39 as dataSourceService, debug, _default$40 as default, defaultIsExpandable, _default$41 as depService, describeRevertStep, describeStepForRevert, deserializeStacks, designPlugin, detectPageTargetId, detectPageTargetName, detectStackOpType, displayTabConfig, editorNodeMergeCustomizer, _default$42 as editorService, eqOptions, error, eventTabConfig, _default$43 as eventsService, fillConfig, fixNodeLeft, fixNodePosition, formPlugin, generatePageName, generatePageNameByApp, getAddParent, getCascaderOptionsFromFields, getCodeBlockFormConfig, getDefaultConfig, getDisplayField, getEditorConfig, getFieldType, getFormConfig, getFormValue, getGuideLineFromCache, getInitPositionStyle, getNodeIndex, getOrCreateStack, getPageFragmentList, getPageList, getPageNameList, getPositionInContainer, getRelativeStyle, _default$44 as historyService, idbDelete, idbGet, idbSet, info, isIncludeDataSource, isIndexedDBSupported, _default$45 as loadMonaco, log, markStackSaved, mergePageSteps, mergeStackSteps, moveItemsInContainer, numberOptions, openIndexedDB, _default$46 as propsService, resolveSelectedNode, serializeConfig, serializeStacks, setChildrenLayout, setEditorConfig, setLayout, _default$47 as stageOverlayService, _default$48 as storageService, styleTabConfig, tablePlugin, toggleFixedPosition, _default$49 as uiService, undoFloor, updateStatus, useCodeBlockEdit, useEditorContentHeight, useFilter, useFloatBox, useGetSo, useNextFloatBoxPosition, useNodeStatus, useServices, useStage, useWindowRect, warn };