@dineug/erd-editor 3.2.7 → 3.3.1

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 (240) hide show
  1. package/dist/components/appContext.d.ts +6 -7
  2. package/dist/components/customElementRegistry.d.ts +0 -1
  3. package/dist/components/erd/Erd.d.ts +0 -1
  4. package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +1 -2
  5. package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +1 -2
  6. package/dist/components/erd/canvas/Canvas.d.ts +0 -1
  7. package/dist/components/erd/canvas/canvas-svg/CanvasSvg.d.ts +0 -1
  8. package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.d.ts +1 -2
  9. package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.template.d.ts +1 -2
  10. package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +1 -2
  11. package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +1 -2
  12. package/dist/components/erd/canvas/memo/Memo.d.ts +1 -2
  13. package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +1 -2
  14. package/dist/components/erd/canvas/shared-mouse-tracker/SharedMouseTracker.d.ts +0 -1
  15. package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.d.ts +1 -2
  16. package/dist/components/erd/canvas/table/Table.d.ts +1 -2
  17. package/dist/components/erd/canvas/table/column/Column.d.ts +2 -3
  18. package/dist/components/erd/canvas/table/column/column-data-type/ColumnDataType.d.ts +1 -2
  19. package/dist/components/erd/canvas/table/column/column-key/ColumnKey.d.ts +0 -1
  20. package/dist/components/erd/canvas/table/column/column-not-null/ColumnNotNull.d.ts +0 -1
  21. package/dist/components/erd/canvas/table/column/column-option/ColumnOption.d.ts +0 -1
  22. package/dist/components/erd/canvas/table/useFocusTable.d.ts +1 -2
  23. package/dist/components/erd/canvas/table/useMoveTable.d.ts +0 -1
  24. package/dist/components/erd/diff-viewer/DiffViewer.d.ts +1 -2
  25. package/dist/components/erd/diff-viewer/diff.d.ts +1 -2
  26. package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.d.ts +2 -3
  27. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +2 -3
  28. package/dist/components/erd/drag-select/DragSelect.d.ts +0 -1
  29. package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +1 -2
  30. package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +0 -1
  31. package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +1 -2
  32. package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +0 -1
  33. package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +0 -1
  34. package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +0 -1
  35. package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +0 -1
  36. package/dist/components/erd/erdShortcutPerformCheck.d.ts +1 -2
  37. package/dist/components/erd/hide-sign/HideSign.d.ts +0 -1
  38. package/dist/components/erd/minimap/Minimap.d.ts +0 -1
  39. package/dist/components/erd/minimap/memo/Memo.d.ts +1 -2
  40. package/dist/components/erd/minimap/table/Table.d.ts +1 -2
  41. package/dist/components/erd/minimap/useMinimapScroll.d.ts +0 -1
  42. package/dist/components/erd/minimap/viewport/Viewport.d.ts +0 -1
  43. package/dist/components/erd/table-properties/TableProperties.d.ts +0 -1
  44. package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +0 -1
  45. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +1 -2
  46. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +1 -2
  47. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +1 -2
  48. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +1 -2
  49. package/dist/components/erd/time-travel/TimeTravel.d.ts +1 -2
  50. package/dist/components/erd/useErdShortcut.d.ts +0 -1
  51. package/dist/components/erd/virtual-scroll/VirtualScroll.d.ts +0 -1
  52. package/dist/components/erd/virtual-scroll/useVirtualScroll.d.ts +1 -2
  53. package/dist/components/erd-editor/ErdEditor.d.ts +4 -5
  54. package/dist/components/erd-editor/ErdEditor.stories.d.ts +1 -2
  55. package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +5 -6
  56. package/dist/components/generator-code/GeneratorCode.d.ts +0 -1
  57. package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +0 -1
  58. package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +0 -1
  59. package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +0 -1
  60. package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +0 -1
  61. package/dist/components/global-styles/GlobalStyles.d.ts +0 -1
  62. package/dist/components/primitives/button/Button.d.ts +0 -1
  63. package/dist/components/primitives/button/Button.stories.d.ts +1 -2
  64. package/dist/components/primitives/code-block/CodeBlock.d.ts +1 -2
  65. package/dist/components/primitives/code-block/CodeBlock.stories.d.ts +1 -2
  66. package/dist/components/primitives/color-picker/ColorPicker.d.ts +1 -2
  67. package/dist/components/primitives/color-picker/ColorPicker.stories.d.ts +1 -2
  68. package/dist/components/primitives/context-menu/ContextMenu.d.ts +2 -3
  69. package/dist/components/primitives/context-menu/ContextMenu.stories.d.ts +0 -1
  70. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +0 -1
  71. package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.d.ts +0 -1
  72. package/dist/components/primitives/context-menu/context-menu-root/ContextMenuRoot.d.ts +0 -1
  73. package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +1 -2
  74. package/dist/components/primitives/context-menu/menu/Menu.d.ts +0 -1
  75. package/dist/components/primitives/edit-input/EditInput.d.ts +0 -1
  76. package/dist/components/primitives/edit-input/EditInput.stories.d.ts +1 -2
  77. package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +1 -2
  78. package/dist/components/primitives/highlighted-text/HighlightedText.stories.d.ts +1 -2
  79. package/dist/components/primitives/icon/Icon.d.ts +0 -1
  80. package/dist/components/primitives/icon/Icon.stories.d.ts +1 -2
  81. package/dist/components/primitives/icon/icons.d.ts +0 -1
  82. package/dist/components/primitives/kbd/Kbd.d.ts +0 -1
  83. package/dist/components/primitives/kbd/Kbd.stories.d.ts +1 -2
  84. package/dist/components/primitives/sash/Sash.d.ts +2 -3
  85. package/dist/components/primitives/sash/Sash.stories.d.ts +1 -2
  86. package/dist/components/primitives/separator/Separator.d.ts +0 -1
  87. package/dist/components/primitives/separator/Separator.stories.d.ts +1 -2
  88. package/dist/components/primitives/slider/Slider.d.ts +0 -1
  89. package/dist/components/primitives/slider/Slider.stories.d.ts +1 -2
  90. package/dist/components/primitives/switch/Switch.d.ts +0 -1
  91. package/dist/components/primitives/switch/Switch.stories.d.ts +1 -2
  92. package/dist/components/primitives/text-input/TextInput.d.ts +0 -1
  93. package/dist/components/primitives/text-input/TextInput.stories.d.ts +1 -2
  94. package/dist/components/primitives/toast/Toast.d.ts +0 -1
  95. package/dist/components/primitives/toast/Toast.stories.d.ts +1 -2
  96. package/dist/components/quick-search/QuickSearch.d.ts +0 -1
  97. package/dist/components/quick-search/actions.d.ts +1 -2
  98. package/dist/components/schema-sql/SchemaSQL.d.ts +0 -1
  99. package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +0 -1
  100. package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +0 -1
  101. package/dist/components/settings/Settings.d.ts +0 -1
  102. package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +1 -2
  103. package/dist/components/settings/shortcuts/Shortcuts.d.ts +0 -1
  104. package/dist/components/theme/Theme.d.ts +1 -2
  105. package/dist/components/theme-builder/ThemeBuilder.d.ts +1 -2
  106. package/dist/components/toast-container/ToastContainer.d.ts +0 -1
  107. package/dist/components/toolbar/Toolbar.d.ts +0 -1
  108. package/dist/components/visualization/Visualization.d.ts +0 -1
  109. package/dist/components/visualization/createVisualization.d.ts +0 -1
  110. package/dist/components/visualization/table/Table.d.ts +1 -2
  111. package/dist/components/visualization/table/column/Column.d.ts +1 -2
  112. package/dist/constants/open.d.ts +0 -1
  113. package/dist/constants/sql/dataType/MSSQL.d.ts +0 -1
  114. package/dist/constants/sql/dataType/MariaDB.d.ts +0 -1
  115. package/dist/constants/sql/dataType/MySQL.d.ts +0 -1
  116. package/dist/constants/sql/dataType/Oracle.d.ts +0 -1
  117. package/dist/constants/sql/dataType/PostgreSQL.d.ts +0 -1
  118. package/dist/constants/sql/dataType/SQLite.d.ts +0 -1
  119. package/dist/constants/sql/dataType/index.d.ts +0 -1
  120. package/dist/constants/sql/database.d.ts +0 -1
  121. package/dist/engine/actions.d.ts +23 -24
  122. package/dist/engine/clock.d.ts +6 -0
  123. package/dist/engine/context.d.ts +3 -1
  124. package/dist/engine/generator.actions.d.ts +2 -3
  125. package/dist/engine/history.actions.d.ts +3 -4
  126. package/dist/engine/history.d.ts +0 -1
  127. package/dist/engine/hooks.d.ts +3 -4
  128. package/dist/engine/modules/editor/actions.d.ts +10 -5
  129. package/dist/engine/modules/editor/atom.actions.d.ts +39 -10
  130. package/dist/engine/modules/editor/generator.actions.d.ts +2 -3
  131. package/dist/engine/modules/editor/history.d.ts +0 -1
  132. package/dist/engine/modules/editor/state.d.ts +0 -1
  133. package/dist/engine/modules/editor/utils/findRelationshipColumn.d.ts +0 -1
  134. package/dist/engine/modules/editor/utils/focus.d.ts +2 -3
  135. package/dist/engine/modules/index/actions.d.ts +3 -4
  136. package/dist/engine/modules/index/atom.actions.d.ts +0 -1
  137. package/dist/engine/modules/index/generator.actions.d.ts +0 -1
  138. package/dist/engine/modules/index/history.d.ts +0 -1
  139. package/dist/engine/modules/index-column/actions.d.ts +3 -4
  140. package/dist/engine/modules/index-column/atom.actions.d.ts +0 -1
  141. package/dist/engine/modules/index-column/generator.actions.d.ts +0 -1
  142. package/dist/engine/modules/index-column/history.d.ts +0 -1
  143. package/dist/engine/modules/memo/actions.d.ts +3 -4
  144. package/dist/engine/modules/memo/atom.actions.d.ts +0 -1
  145. package/dist/engine/modules/memo/generator.actions.d.ts +0 -1
  146. package/dist/engine/modules/memo/history.d.ts +0 -1
  147. package/dist/engine/modules/relationship/actions.d.ts +3 -4
  148. package/dist/engine/modules/relationship/atom.actions.d.ts +0 -1
  149. package/dist/engine/modules/relationship/history.d.ts +0 -1
  150. package/dist/engine/modules/relationship/hooks.d.ts +0 -1
  151. package/dist/engine/modules/settings/actions.d.ts +3 -4
  152. package/dist/engine/modules/settings/atom.actions.d.ts +0 -1
  153. package/dist/engine/modules/settings/generator.actions.d.ts +0 -1
  154. package/dist/engine/modules/settings/history.d.ts +0 -1
  155. package/dist/engine/modules/table/actions.d.ts +3 -4
  156. package/dist/engine/modules/table/atom.actions.d.ts +0 -1
  157. package/dist/engine/modules/table/generator.actions.d.ts +1 -2
  158. package/dist/engine/modules/table/history.d.ts +0 -1
  159. package/dist/engine/modules/table/hooks.d.ts +0 -1
  160. package/dist/engine/modules/table-column/actions.d.ts +3 -4
  161. package/dist/engine/modules/table-column/atom.actions.d.ts +0 -1
  162. package/dist/engine/modules/table-column/generator.actions.d.ts +2 -3
  163. package/dist/engine/modules/table-column/history.d.ts +0 -1
  164. package/dist/engine/modules/table-column/hooks.d.ts +0 -1
  165. package/dist/engine/modules/table-column/utils/dataType.d.ts +1 -2
  166. package/dist/engine/replication-store.d.ts +3 -4
  167. package/dist/engine/rx-operators/actionsFilter.d.ts +1 -2
  168. package/dist/engine/rx-operators/bufferCircuitBreaker.d.ts +1 -2
  169. package/dist/engine/rx-operators/groupByStreamActions.d.ts +1 -2
  170. package/dist/engine/rx-operators/ignoreTagFilter.d.ts +1 -2
  171. package/dist/engine/rx-operators/notEmptyActions.d.ts +0 -1
  172. package/dist/engine/rx-operators/readonlyIgnoreFilter.d.ts +1 -2
  173. package/dist/engine/rx-operators/sharedStreamActionsCompressor.d.ts +1 -2
  174. package/dist/engine/rx-store.d.ts +4 -5
  175. package/dist/engine/shared-store.d.ts +2 -3
  176. package/dist/engine/state.d.ts +2 -2
  177. package/dist/engine/store-hooks.d.ts +0 -1
  178. package/dist/engine/store.d.ts +2 -3
  179. package/dist/engine/tag.d.ts +1 -2
  180. package/dist/engine.js +30 -21
  181. package/dist/erd-editor.js +15614 -14614
  182. package/dist/hooks/useFlipAnimation.d.ts +0 -1
  183. package/dist/hooks/useKeyBindingMap.d.ts +1 -2
  184. package/dist/hooks/useUnmounted.d.ts +1 -2
  185. package/dist/index.d.ts +0 -1
  186. package/dist/internal-types/index.d.ts +2 -4
  187. package/dist/{schemaGCService-AAKKj104.js → schemaGCService-Br6jn6B2.js} +6321 -5966
  188. package/dist/services/schema-gc/index.d.ts +0 -1
  189. package/dist/services/schema-gc/procGC.d.ts +2 -3
  190. package/dist/services/schema-gc/schemaGCService.d.ts +0 -1
  191. package/dist/themes/radix-ui-theme.config.d.ts +0 -1
  192. package/dist/themes/radix-ui-theme.d.ts +1 -2
  193. package/dist/themes/textColor.d.ts +0 -1
  194. package/dist/utils/calcMemo.d.ts +0 -1
  195. package/dist/utils/calcTable.d.ts +2 -3
  196. package/dist/utils/collection/index.entity.d.ts +0 -1
  197. package/dist/utils/collection/indexColumn.entity.d.ts +0 -1
  198. package/dist/utils/collection/memo.entity.d.ts +0 -1
  199. package/dist/utils/collection/relationship.entity.d.ts +0 -1
  200. package/dist/utils/collection/table.entity.d.ts +0 -1
  201. package/dist/utils/collection/tableColumn.entity.d.ts +0 -1
  202. package/dist/utils/dragSelect.d.ts +0 -1
  203. package/dist/utils/draw-relationship/calc.d.ts +2 -3
  204. package/dist/utils/draw-relationship/draw.d.ts +2 -3
  205. package/dist/utils/draw-relationship/index.d.ts +0 -1
  206. package/dist/utils/draw-relationship/pathFinding.d.ts +1 -2
  207. package/dist/utils/draw-relationship/sort.d.ts +0 -1
  208. package/dist/utils/emitter.d.ts +4 -5
  209. package/dist/utils/file/importFile.d.ts +0 -1
  210. package/dist/utils/flipAnimation.d.ts +0 -1
  211. package/dist/utils/focus.d.ts +0 -1
  212. package/dist/utils/generator-code/csharp.d.ts +1 -2
  213. package/dist/utils/generator-code/graphql.d.ts +1 -2
  214. package/dist/utils/generator-code/index.d.ts +1 -2
  215. package/dist/utils/generator-code/java.d.ts +1 -2
  216. package/dist/utils/generator-code/jpa.d.ts +1 -2
  217. package/dist/utils/generator-code/kotlin.d.ts +1 -2
  218. package/dist/utils/generator-code/scala.d.ts +1 -2
  219. package/dist/utils/generator-code/typescript.d.ts +1 -2
  220. package/dist/utils/generator-code/utils.d.ts +1 -2
  221. package/dist/utils/globalEmitter.d.ts +0 -1
  222. package/dist/utils/index.d.ts +0 -1
  223. package/dist/utils/internalEvents.d.ts +0 -1
  224. package/dist/utils/keyboard-shortcut/index.d.ts +1 -2
  225. package/dist/utils/rx-operators/fromCopy.d.ts +1 -2
  226. package/dist/utils/rx-operators/fromPaste.d.ts +1 -2
  227. package/dist/utils/rx-operators/takeUnsubscribe.d.ts +0 -1
  228. package/dist/utils/schema-sql/MSSQL.d.ts +1 -2
  229. package/dist/utils/schema-sql/MariaDB.d.ts +1 -2
  230. package/dist/utils/schema-sql/MySQL.d.ts +1 -2
  231. package/dist/utils/schema-sql/Oracle.d.ts +1 -2
  232. package/dist/utils/schema-sql/PostgreSQL.d.ts +1 -2
  233. package/dist/utils/schema-sql/SQLite.d.ts +1 -2
  234. package/dist/utils/schema-sql/index.d.ts +1 -2
  235. package/dist/utils/schema-sql/utils.d.ts +0 -1
  236. package/dist/utils/schema-sql-parser/index.d.ts +1 -2
  237. package/dist/utils/table-clipboard/copy.d.ts +0 -1
  238. package/dist/utils/table-clipboard/index.d.ts +0 -1
  239. package/dist/utils/table-clipboard/paste.d.ts +1 -2
  240. package/package.json +6 -6
@@ -1,6 +1,5 @@
1
- import { FocusType, SelectType } from './state';
2
1
  import { ReducerType } from './actions';
3
-
2
+ import { FocusType, MoveKey, SelectType } from './state';
4
3
  export declare const changeHasHistoryAction: {
5
4
  (payload: {
6
5
  hasUndo: boolean;
@@ -69,10 +68,10 @@ export declare const initialLoadJsonAction: {
69
68
  export declare const focusTableAction: {
70
69
  (payload: {
71
70
  tableId: string;
72
- focusType?: FocusType | undefined;
71
+ focusType?: FocusType;
73
72
  }): import('@dineug/r-html').AnyAction<{
74
73
  tableId: string;
75
- focusType?: FocusType | undefined;
74
+ focusType?: FocusType;
76
75
  }>;
77
76
  toString(): string;
78
77
  type: string;
@@ -101,10 +100,10 @@ export declare const focusTableEndAction: {
101
100
  };
102
101
  export declare const focusMoveTableAction: {
103
102
  (payload: {
104
- moveKey: string;
103
+ moveKey: MoveKey;
105
104
  shiftKey: boolean;
106
105
  }): import('@dineug/r-html').AnyAction<{
107
- moveKey: string;
106
+ moveKey: MoveKey;
108
107
  shiftKey: boolean;
109
108
  }>;
110
109
  toString(): string;
@@ -214,6 +213,20 @@ export declare const validationIdsAction: {
214
213
  toString(): string;
215
214
  type: string;
216
215
  };
216
+ export declare const getLWWAction: {
217
+ (payload: void): import('@dineug/r-html').AnyAction<void>;
218
+ toString(): string;
219
+ type: string;
220
+ };
221
+ export declare const mergeLWWAction: {
222
+ (payload: {
223
+ lww: import('@dineug/erd-editor-schema').LWW;
224
+ }): import('@dineug/r-html').AnyAction<{
225
+ lww: import('@dineug/erd-editor-schema').LWW;
226
+ }>;
227
+ toString(): string;
228
+ type: string;
229
+ };
217
230
  export declare const editorReducers: {
218
231
  "editor.changeHasHistory": ReducerType<"editor.changeHasHistory">;
219
232
  "editor.selectAll": ReducerType<"editor.selectAll">;
@@ -242,6 +255,8 @@ export declare const editorReducers: {
242
255
  "editor.dragendColumn": ReducerType<"editor.dragendColumn">;
243
256
  "editor.sharedMouseTracker": ReducerType<"editor.sharedMouseTracker">;
244
257
  "editor.validationIds": ReducerType<"editor.validationIds">;
258
+ "editor.getLWW": ReducerType<"editor.getLWW">;
259
+ "editor.mergeLWW": ReducerType<"editor.mergeLWW">;
245
260
  };
246
261
  export declare const actions: {
247
262
  changeHasHistoryAction: {
@@ -312,10 +327,10 @@ export declare const actions: {
312
327
  focusTableAction: {
313
328
  (payload: {
314
329
  tableId: string;
315
- focusType?: FocusType | undefined;
330
+ focusType?: FocusType;
316
331
  }): import('@dineug/r-html').AnyAction<{
317
332
  tableId: string;
318
- focusType?: FocusType | undefined;
333
+ focusType?: FocusType;
319
334
  }>;
320
335
  toString(): string;
321
336
  type: string;
@@ -344,10 +359,10 @@ export declare const actions: {
344
359
  };
345
360
  focusMoveTableAction: {
346
361
  (payload: {
347
- moveKey: string;
362
+ moveKey: MoveKey;
348
363
  shiftKey: boolean;
349
364
  }): import('@dineug/r-html').AnyAction<{
350
- moveKey: string;
365
+ moveKey: MoveKey;
351
366
  shiftKey: boolean;
352
367
  }>;
353
368
  toString(): string;
@@ -457,4 +472,18 @@ export declare const actions: {
457
472
  toString(): string;
458
473
  type: string;
459
474
  };
475
+ getLWWAction: {
476
+ (payload: void): import('@dineug/r-html').AnyAction<void>;
477
+ toString(): string;
478
+ type: string;
479
+ };
480
+ mergeLWWAction: {
481
+ (payload: {
482
+ lww: import('@dineug/erd-editor-schema').LWW;
483
+ }): import('@dineug/r-html').AnyAction<{
484
+ lww: import('@dineug/erd-editor-schema').LWW;
485
+ }>;
486
+ toString(): string;
487
+ type: string;
488
+ };
460
489
  };
@@ -1,7 +1,6 @@
1
- import { MoveKey } from './state';
2
- import { Rect } from '../../../utils/dragSelect';
3
1
  import { GeneratorAction } from '../../generator.actions';
4
-
2
+ import { Rect } from '../../../utils/dragSelect';
3
+ import { MoveKey } from './state';
5
4
  export declare const loadJsonAction$: (value: string) => GeneratorAction;
6
5
  export declare const initialLoadJsonAction$: (value: string) => GeneratorAction;
7
6
  export declare const moveAllAction$: (movementX: number, movementY: number) => GeneratorAction;
@@ -1,5 +1,4 @@
1
1
  import { PushUndoHistory } from '../../history.actions';
2
-
3
2
  export declare const editorPushUndoHistoryMap: {
4
3
  "editor.loadJson": PushUndoHistory;
5
4
  "editor.clear": PushUndoHistory;
@@ -1,5 +1,4 @@
1
1
  import { Point, ValuesType } from '../../../internal-types';
2
-
3
2
  export type Editor = {
4
3
  id: string;
5
4
  selectedMap: Record<string, SelectType>;
@@ -1,5 +1,4 @@
1
1
  import { RootState } from '../../../state';
2
-
3
2
  type TargetSource = {
4
3
  columnId: string;
5
4
  relationshipIds: string[];
@@ -1,7 +1,6 @@
1
- import { RootState } from '../../../state';
2
- import { FocusType } from '../state';
3
1
  import { ActionMap, ActionType } from '../actions';
4
-
2
+ import { FocusType } from '../state';
3
+ import { RootState } from '../../../state';
5
4
  type Payload = ActionMap[typeof ActionType.focusMoveTable];
6
5
  export declare function isColumns({ collections, editor: { focusTable } }: RootState): boolean;
7
6
  export declare function isLastColumn(state: RootState): boolean;
@@ -1,8 +1,7 @@
1
- import { ValuesType } from '../../../internal-types';
2
- import { RootState } from '../../state';
3
- import { EngineContext } from '../../context';
4
1
  import { Reducer } from '@dineug/r-html';
5
-
2
+ import { EngineContext } from '../../context';
3
+ import { RootState } from '../../state';
4
+ import { ValuesType } from '../../../internal-types';
6
5
  export declare const ActionType: {
7
6
  readonly addIndex: "index.add";
8
7
  readonly removeIndex: "index.remove";
@@ -1,5 +1,4 @@
1
1
  import { ReducerType } from './actions';
2
-
3
2
  export declare const addIndexAction: {
4
3
  (payload: {
5
4
  id: string;
@@ -1,5 +1,4 @@
1
1
  import { GeneratorAction } from '../../generator.actions';
2
-
3
2
  export declare const addIndexAction$: (tableId: string) => GeneratorAction;
4
3
  export declare const changeIndexUniqueAction$: (indexId: string) => GeneratorAction;
5
4
  export declare const actions$: {
@@ -1,5 +1,4 @@
1
1
  import { PushUndoHistory } from '../../history.actions';
2
-
3
2
  export declare const indexPushUndoHistoryMap: {
4
3
  "index.add": PushUndoHistory;
5
4
  "index.remove": PushUndoHistory;
@@ -1,8 +1,7 @@
1
- import { ValuesType } from '../../../internal-types';
2
- import { RootState } from '../../state';
3
- import { EngineContext } from '../../context';
4
1
  import { Reducer } from '@dineug/r-html';
5
-
2
+ import { EngineContext } from '../../context';
3
+ import { RootState } from '../../state';
4
+ import { ValuesType } from '../../../internal-types';
6
5
  export declare const ActionType: {
7
6
  readonly addIndexColumn: "indexColumn.add";
8
7
  readonly removeIndexColumn: "indexColumn.remove";
@@ -1,5 +1,4 @@
1
1
  import { ReducerType } from './actions';
2
-
3
2
  export declare const addIndexColumnAction: {
4
3
  (payload: {
5
4
  id: string;
@@ -1,5 +1,4 @@
1
1
  import { GeneratorAction } from '../../generator.actions';
2
-
3
2
  export declare const addIndexColumnAction$: (indexId: string, columnId: string) => GeneratorAction;
4
3
  export declare const removeIndexColumnAction$: (indexId: string, columnId: string) => GeneratorAction;
5
4
  export declare const changeIndexColumnOrderTypeAction$: (indexColumnId: string) => GeneratorAction;
@@ -1,5 +1,4 @@
1
1
  import { PushUndoHistory } from '../../history.actions';
2
-
3
2
  export declare const indexColumnPushUndoHistoryMap: {
4
3
  "indexColumn.add": PushUndoHistory;
5
4
  "indexColumn.remove": PushUndoHistory;
@@ -1,8 +1,7 @@
1
- import { ValuesType } from '../../../internal-types';
2
- import { RootState } from '../../state';
3
- import { EngineContext } from '../../context';
4
1
  import { Reducer } from '@dineug/r-html';
5
-
2
+ import { EngineContext } from '../../context';
3
+ import { RootState } from '../../state';
4
+ import { ValuesType } from '../../../internal-types';
6
5
  export declare const ActionType: {
7
6
  readonly addMemo: "memo.add";
8
7
  readonly moveMemo: "memo.move";
@@ -1,5 +1,4 @@
1
1
  import { ReducerType } from './actions';
2
-
3
2
  export declare const addMemoAction: {
4
3
  (payload: {
5
4
  id: string;
@@ -1,5 +1,4 @@
1
1
  import { GeneratorAction } from '../../generator.actions';
2
-
3
2
  export declare const addMemoAction$: () => GeneratorAction;
4
3
  export declare const removeMemoAction$: (id?: string) => GeneratorAction;
5
4
  export declare const selectMemoAction$: (id: string, $mod: boolean) => GeneratorAction;
@@ -1,5 +1,4 @@
1
1
  import { PushStreamHistory, PushUndoHistory } from '../../history.actions';
2
-
3
2
  export declare const memoPushUndoHistoryMap: {
4
3
  "memo.add": PushUndoHistory;
5
4
  "memo.remove": PushUndoHistory;
@@ -1,8 +1,7 @@
1
- import { ValuesType } from '../../../internal-types';
2
- import { RootState } from '../../state';
3
- import { EngineContext } from '../../context';
4
1
  import { Reducer } from '@dineug/r-html';
5
-
2
+ import { EngineContext } from '../../context';
3
+ import { RootState } from '../../state';
4
+ import { ValuesType } from '../../../internal-types';
6
5
  export declare const ActionType: {
7
6
  readonly addRelationship: "relationship.add";
8
7
  readonly removeRelationship: "relationship.remove";
@@ -1,5 +1,4 @@
1
1
  import { ReducerType } from './actions';
2
-
3
2
  export declare const addRelationshipAction: {
4
3
  (payload: {
5
4
  id: string;
@@ -1,5 +1,4 @@
1
1
  import { PushUndoHistory } from '../../history.actions';
2
-
3
2
  export declare const relationshipPushUndoHistoryMap: {
4
3
  "relationship.add": PushUndoHistory;
5
4
  "relationship.remove": PushUndoHistory;
@@ -1,3 +1,2 @@
1
1
  import { Hook } from '../../hooks';
2
-
3
2
  export declare const hooks: Hook[];
@@ -1,8 +1,7 @@
1
- import { ValuesType } from '../../../internal-types';
2
- import { RootState } from '../../state';
3
- import { EngineContext } from '../../context';
4
1
  import { Reducer } from '@dineug/r-html';
5
-
2
+ import { EngineContext } from '../../context';
3
+ import { RootState } from '../../state';
4
+ import { ValuesType } from '../../../internal-types';
6
5
  export declare const ActionType: {
7
6
  readonly changeDatabaseName: "settings.changeDatabaseName";
8
7
  readonly resize: "settings.resize";
@@ -1,5 +1,4 @@
1
1
  import { ReducerType } from './actions';
2
-
3
2
  export declare const changeDatabaseNameAction: {
4
3
  (payload: {
5
4
  value: string;
@@ -1,5 +1,4 @@
1
1
  import { GeneratorAction } from '../../generator.actions';
2
-
3
2
  export declare const changeZoomLevelAction$: (value: number) => GeneratorAction;
4
3
  export declare const streamZoomLevelAction$: (value: number) => GeneratorAction;
5
4
  export declare const actions$: {
@@ -1,5 +1,4 @@
1
1
  import { PushStreamHistory, PushUndoHistory } from '../../history.actions';
2
-
3
2
  export declare const settingsPushUndoHistoryMap: {
4
3
  "settings.resize": PushUndoHistory;
5
4
  "settings.scrollTo": PushUndoHistory;
@@ -1,8 +1,7 @@
1
- import { ValuesType } from '../../../internal-types';
2
- import { RootState } from '../../state';
3
- import { EngineContext } from '../../context';
4
1
  import { Reducer } from '@dineug/r-html';
5
-
2
+ import { EngineContext } from '../../context';
3
+ import { RootState } from '../../state';
4
+ import { ValuesType } from '../../../internal-types';
6
5
  export declare const ActionType: {
7
6
  readonly addTable: "table.add";
8
7
  readonly moveTable: "table.move";
@@ -1,5 +1,4 @@
1
1
  import { ReducerType } from './actions';
2
-
3
2
  export declare const addTableAction: {
4
3
  (payload: {
5
4
  id: string;
@@ -1,6 +1,5 @@
1
- import { Column } from '../../../internal-types';
2
1
  import { GeneratorAction } from '../../generator.actions';
3
-
2
+ import { Column } from '../../../internal-types';
4
3
  export declare const addTableAction$: () => GeneratorAction;
5
4
  export declare const removeTableAction$: (id?: string) => GeneratorAction;
6
5
  export declare const selectTableAction$: (id: string, $mod: boolean) => GeneratorAction;
@@ -1,5 +1,4 @@
1
1
  import { PushStreamHistory, PushUndoHistory } from '../../history.actions';
2
-
3
2
  export declare const tablePushUndoHistoryMap: {
4
3
  "table.add": PushUndoHistory;
5
4
  "table.remove": PushUndoHistory;
@@ -1,3 +1,2 @@
1
1
  import { Hook } from '../../hooks';
2
-
3
2
  export declare const hooks: Hook[];
@@ -1,8 +1,7 @@
1
- import { ValuesType } from '../../../internal-types';
2
- import { RootState } from '../../state';
3
- import { EngineContext } from '../../context';
4
1
  import { Reducer } from '@dineug/r-html';
5
-
2
+ import { EngineContext } from '../../context';
3
+ import { RootState } from '../../state';
4
+ import { ValuesType } from '../../../internal-types';
6
5
  export declare const ActionType: {
7
6
  readonly addColumn: "column.add";
8
7
  readonly removeColumn: "column.remove";
@@ -1,5 +1,4 @@
1
1
  import { ReducerType } from './actions';
2
-
3
2
  export declare const addColumnAction: {
4
3
  (payload: {
5
4
  id: string;
@@ -1,7 +1,6 @@
1
- import { ChangeColumnValuePayload } from './actions';
2
- import { FocusType } from '../editor/state';
3
1
  import { GeneratorAction } from '../../generator.actions';
4
-
2
+ import { FocusType } from '../editor/state';
3
+ import { ChangeColumnValuePayload } from './actions';
5
4
  export declare const isToggleColumnTypes: (value: FocusType) => boolean;
6
5
  export declare const isChangeColumnTypes: (value: FocusType) => boolean;
7
6
  export declare const addColumnAction$: (tableId?: string) => GeneratorAction;
@@ -1,5 +1,4 @@
1
1
  import { PushUndoHistory } from '../../history.actions';
2
-
3
2
  export declare const tableColumnPushUndoHistoryMap: {
4
3
  "column.add": PushUndoHistory;
5
4
  "column.remove": PushUndoHistory;
@@ -1,3 +1,2 @@
1
1
  import { Hook } from '../../hooks';
2
-
3
2
  export declare const hooks: Hook[];
@@ -1,4 +1,3 @@
1
- import { RootState } from '../../../state';
2
1
  import { ChangeColumnValuePayload } from '../actions';
3
-
2
+ import { RootState } from '../../../state';
4
3
  export declare function getDataTypeSyncColumns(stack: ChangeColumnValuePayload[], state: RootState, payload: ChangeColumnValuePayload, payloads?: ChangeColumnValuePayload[]): ChangeColumnValuePayload[];
@@ -1,7 +1,6 @@
1
- import { Unsubscribe, ValuesType } from '../internal-types';
2
- import { EngineContext } from './context';
3
1
  import { AnyAction } from '@dineug/r-html';
4
-
2
+ import { InjectEngineContext } from './context';
3
+ import { Unsubscribe, ValuesType } from '../internal-types';
5
4
  type ListenerRecord = {
6
5
  [P in keyof InternalActionMap]: (payload: InternalActionMap[P]) => void;
7
6
  };
@@ -20,5 +19,5 @@ export type ReplicationStore = {
20
19
  dispatchSync: (actions: Array<AnyAction> | AnyAction) => void;
21
20
  destroy: () => void;
22
21
  };
23
- export declare function createReplicationStore(context: EngineContext): ReplicationStore;
22
+ export declare function createReplicationStore(context: InjectEngineContext): ReplicationStore;
24
23
  export {};
@@ -1,4 +1,3 @@
1
- import { Observable } from 'rxjs';
2
1
  import { AnyAction } from '@dineug/r-html';
3
-
2
+ import { Observable } from 'rxjs';
4
3
  export declare const actionsFilter: (actionTypes: Array<string> | ReadonlyArray<string>) => (source$: Observable<Array<AnyAction>>) => Observable<AnyAction[]>;
@@ -1,4 +1,3 @@
1
- import { Observable } from 'rxjs';
2
1
  import { AnyAction } from '@dineug/r-html';
3
-
2
+ import { Observable } from 'rxjs';
4
3
  export declare const bufferCircuitBreaker: (openingNotifier$: Observable<any>, closingNotifier$: Observable<any>) => (source$: Observable<Array<AnyAction>>) => Observable<AnyAction[]>;
@@ -1,6 +1,5 @@
1
- import { MonoTypeOperatorFunction, Observable } from 'rxjs';
2
1
  import { AnyAction } from '@dineug/r-html';
3
-
2
+ import { MonoTypeOperatorFunction, Observable } from 'rxjs';
4
3
  type Regroup = [string, Array<string> | ReadonlyArray<string>];
5
4
  export declare const groupByStreamActions: (streamActionTypes: Array<string> | ReadonlyArray<string>, regroups?: Regroup[], bufferClosingNotifierOperator?: MonoTypeOperatorFunction<Array<AnyAction>>) => (source$: Observable<Array<AnyAction>>) => Observable<AnyAction[]>;
6
5
  export {};
@@ -1,4 +1,3 @@
1
- import { Observable } from 'rxjs';
2
1
  import { AnyAction } from '@dineug/r-html';
3
-
2
+ import { Observable } from 'rxjs';
4
3
  export declare const ignoreTagFilter: (tags: number[]) => (source$: Observable<Array<AnyAction>>) => Observable<AnyAction[]>;
@@ -1,3 +1,2 @@
1
1
  import { AnyAction } from '@dineug/r-html';
2
-
3
2
  export declare const notEmptyActions: import('rxjs').MonoTypeOperatorFunction<AnyAction[]>;
@@ -1,4 +1,3 @@
1
- import { Observable } from 'rxjs';
2
1
  import { AnyAction } from '@dineug/r-html';
3
-
2
+ import { Observable } from 'rxjs';
4
3
  export declare const readonlyIgnoreFilter: (getReadonly: () => boolean, passTags?: number[]) => (source$: Observable<Array<AnyAction>>) => Observable<AnyAction[]>;
@@ -1,4 +1,3 @@
1
- import { Observable } from 'rxjs';
2
1
  import { AnyAction } from '@dineug/r-html';
3
-
2
+ import { Observable } from 'rxjs';
4
3
  export declare const sharedStreamActionsCompressor: (source$: Observable<Array<AnyAction>>) => Observable<AnyAction[]>;
@@ -1,9 +1,8 @@
1
- import { Store } from './store';
2
- import { History, HistoryOptions } from './history';
3
- import { EngineContext } from './context';
4
- import { Observable } from 'rxjs';
5
1
  import { AnyAction } from '@dineug/r-html';
6
-
2
+ import { Observable } from 'rxjs';
3
+ import { EngineContext } from './context';
4
+ import { History, HistoryOptions } from './history';
5
+ import { Store } from './store';
7
6
  export type RxStore = Store & {
8
7
  undo: () => void;
9
8
  redo: () => void;
@@ -1,7 +1,6 @@
1
- import { Unsubscribe } from '../internal-types';
2
- import { RxStore } from './rx-store';
3
1
  import { AnyAction } from '@dineug/r-html';
4
-
2
+ import { RxStore } from './rx-store';
3
+ import { Unsubscribe } from '../internal-types';
5
4
  export type SharedStore = {
6
5
  connection: () => void;
7
6
  disconnect: () => void;
@@ -1,6 +1,6 @@
1
+ import { ERDEditorSchemaV3, LWW } from '@dineug/erd-editor-schema';
1
2
  import { Editor } from './modules/editor/state';
2
- import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
3
-
4
3
  export type RootState = ERDEditorSchemaV3 & {
5
4
  editor: Editor;
5
+ lww: LWW;
6
6
  };
@@ -1,5 +1,4 @@
1
1
  import { Store } from './store';
2
-
3
2
  export declare function createHooks(store: Store): {
4
3
  destroy: () => void;
5
4
  };
@@ -1,6 +1,5 @@
1
- import { RootState } from './state';
2
- import { EngineContext } from './context';
3
1
  import { Store as StoreType } from '@dineug/r-html';
4
-
2
+ import { EngineContext } from './context';
3
+ import { RootState } from './state';
5
4
  export type Store = StoreType<RootState, EngineContext>;
6
5
  export declare function createStore(context: EngineContext, enableObservable?: boolean): Store;
@@ -1,6 +1,5 @@
1
- import { GeneratorAction } from './generator.actions';
2
1
  import { AnyAction, CompositionActions } from '@dineug/r-html';
3
-
2
+ import { GeneratorAction } from './generator.actions';
4
3
  export declare const Tag: {
5
4
  readonly shared: 1;
6
5
  readonly changeOnly: 2;
package/dist/engine.js CHANGED
@@ -1,44 +1,53 @@
1
- import { D as C, E as w, w as A, O as x, G as d, K as E, s as G, bv as h, J as l, Y as I, d4 as O, bu as T, aB as V, d9 as $, da as j, V as k, db as J, cY as R } from "./schemaGCService-AAKKj104.js";
1
+ import { Z as x, D as w, E as A, w as E, O as G, F as d, J as I, s as O, bv as h, I as l, Y as T, V, d6 as $, bu as j, aB as k, cX as F, da as J, db as R, dc as z } from "./schemaGCService-Br6jn6B2.js";
2
2
  /*!
3
3
  * @dineug/erd-editor
4
- * @version 3.2.7 | Fri Feb 28 2025
4
+ * @version 3.3.1 | Sat Aug 08 2026
5
5
  * @author SeungHwan-Lee <dineug2@gmail.com>
6
6
  * @license MIT
7
7
  */
8
- const Y = {
8
+ const B = {
9
9
  change: "change"
10
10
  };
11
- function B(p) {
12
- const o = /* @__PURE__ */ new Set(), t = C(p, !1), b = w(t), c = new A(), u = new x((e) => t.subscribe((a) => e.next(a))).pipe(d(l), E(200)), n = /* @__PURE__ */ new Set(), m = new R(), S = (e) => (n.has(e) || n.add(e), () => {
13
- n.delete(e);
14
- }), f = (e, a) => {
15
- n.forEach((s) => {
11
+ function H(p) {
12
+ const o = /* @__PURE__ */ new Set(), b = x(p), t = w(b, !1), u = A(t), c = new E(), m = new G(
13
+ (e) => t.subscribe((n) => e.next(n))
14
+ ).pipe(d(l), I(200)), a = /* @__PURE__ */ new Set(), S = new F(), g = (e) => (a.has(e) || a.add(e), () => {
15
+ a.delete(e);
16
+ }), f = (e, n) => {
17
+ a.forEach((s) => {
16
18
  const r = Reflect.get(s, e);
17
- I(r, a);
19
+ T(r, n);
18
20
  });
19
- }, g = (e) => {
20
- const a = O(e);
21
- t.dispatchSync(T(V(a) ? "{}" : a)), m.run(h(t.state)).then((s) => {
22
- (s.tableIds.length || s.tableColumnIds.length || s.relationshipIds.length || s.indexIds.length || s.indexColumnIds.length || s.memoIds.length) && ($(t.state, s), t.dispatchSync(j()));
21
+ }, y = (e) => {
22
+ const n = $(e);
23
+ t.dispatchSync(
24
+ j(k(n) ? "{}" : n)
25
+ ), S.run(h(t.state)).then((s) => {
26
+ (s.tableIds.length || s.tableColumnIds.length || s.relationshipIds.length || s.indexIds.length || s.indexColumnIds.length || s.memoIds.length) && (J(t.state, s), t.dispatchSync(R()));
23
27
  });
24
28
  }, i = (e) => {
25
29
  c.next([e].flat());
26
- }, y = (e) => {
27
- k(() => i(e));
30
+ }, C = (e) => {
31
+ V(() => i(e));
28
32
  }, v = () => {
29
- Array.from(o).forEach((e) => e.unsubscribe()), o.clear(), n.clear(), t.destroy(), b.destroy();
33
+ Array.from(o).forEach((e) => e.unsubscribe()), o.clear(), a.clear(), t.destroy(), u.destroy();
30
34
  };
31
- return o.add(u.subscribe(() => f(Y.change, void 0))).add(c.pipe(d(l), G((e) => e.map((a) => J(a, "tags")))).subscribe(t.dispatchSync)), Object.freeze({
35
+ return o.add(m.subscribe(() => f(B.change, void 0))).add(
36
+ c.pipe(
37
+ d(l),
38
+ O((e) => e.map((n) => z(n, "tags")))
39
+ ).subscribe(t.dispatchSync)
40
+ ), Object.freeze({
32
41
  get value() {
33
42
  return h(t.state);
34
43
  },
35
- on: S,
36
- setInitialValue: g,
37
- dispatch: y,
44
+ on: g,
45
+ setInitialValue: y,
46
+ dispatch: C,
38
47
  dispatchSync: i,
39
48
  destroy: v
40
49
  });
41
50
  }
42
51
  export {
43
- B as createReplicationStore
52
+ H as createReplicationStore
44
53
  };