@dineug/erd-editor 3.9.2 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +321 -133
- package/dist/components/appContext.d.ts +4 -0
- package/dist/components/erd/Erd.d.ts +4 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +2 -1
- package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +38 -2
- package/dist/components/erd/automatic-table-placement/elkPlacement.d.ts +42 -0
- package/dist/components/erd/automatic-table-placement/flowPlacement.d.ts +21 -0
- package/dist/components/erd/automatic-table-placement/placementActions.d.ts +14 -0
- package/dist/components/erd/automatic-table-placement/runElkPlacement.d.ts +0 -11
- package/dist/components/erd/canvas/SceneIcon.template.d.ts +2 -2
- package/dist/components/erd/canvas/entityDrag.d.ts +17 -1
- package/dist/components/erd/canvas/middleButtonPan.d.ts +11 -0
- package/dist/components/erd/canvas/relationship-group/relationship/Relationship.d.ts +2 -0
- package/dist/components/erd/canvas/relationship-group/relationship/RelationshipActionLabel.d.ts +32 -0
- package/dist/components/erd/canvas/sceneTokens.d.ts +38 -0
- package/dist/components/erd/canvas/table/Table.d.ts +9 -1
- package/dist/components/erd/canvas/table/cellLayout.d.ts +11 -0
- package/dist/components/erd/canvas/table/column/Column.d.ts +7 -0
- package/dist/components/erd/canvas/table/doubleClick.d.ts +3 -4
- package/dist/components/erd/canvas/table/goToErd.d.ts +3 -10
- package/dist/components/erd/canvas/table-group/TableGroup.d.ts +17 -0
- package/dist/components/erd/canvas/table-group/TableGroupBody.d.ts +17 -0
- package/dist/components/erd/canvas/table-group/TableGroupDropTarget.d.ts +10 -0
- package/dist/components/erd/canvas/table-group/TableGroupSash.d.ts +35 -0
- package/dist/components/erd/canvas/table-group/TableGroups.d.ts +10 -0
- package/dist/components/erd/canvas/table-group/tableGroupBox.d.ts +40 -0
- package/dist/components/erd/canvas/table-group/titleLayout.d.ts +45 -0
- package/dist/components/erd/canvas/useMoveEntity.d.ts +2 -0
- package/dist/components/erd/draw-target/DrawTargetButtons.d.ts +16 -0
- package/dist/components/erd/draw-target/DrawTargetButtons.styles.d.ts +14 -0
- package/dist/components/erd/draw-target/drawTargetState.d.ts +26 -0
- package/dist/components/erd/draw-target/findDrawTarget.d.ts +29 -0
- package/dist/components/erd/draw-target/placePill.d.ts +49 -0
- package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +6 -0
- package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +3 -0
- package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +7 -2
- package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +5 -1
- package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +16 -1
- package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +3 -1
- package/dist/components/erd/erd-context-menu/menus/tablePlacementMenus.d.ts +3 -0
- package/dist/components/erd/floating-toolbar/ToolbarCompass.template.d.ts +3 -1
- package/dist/components/erd/goToErdTarget.d.ts +85 -0
- package/dist/components/erd/hitTest.d.ts +16 -1
- package/dist/components/erd/minimap/MinimapScene.d.ts +1 -1
- package/dist/components/erd/minimap/table/Table.d.ts +3 -3
- package/dist/components/erd/minimap/table-group/TableGroup.d.ts +17 -0
- package/dist/components/erd/table-group/TableGroupDraft.d.ts +15 -0
- package/dist/components/erd/table-group/TableGroupDraft.styles.d.ts +6 -0
- package/dist/components/erd/table-group/tableGroupName.d.ts +21 -0
- package/dist/components/erd/table-group/useTableGroupDraw.d.ts +25 -0
- package/dist/components/erd/table-properties/TableProperties.d.ts +2 -0
- package/dist/components/erd/table-properties/TableProperties.styles.d.ts +24 -2
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +2 -0
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.styles.d.ts +32 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +7 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.styles.d.ts +5 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +7 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.styles.d.ts +3 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +7 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.styles.d.ts +6 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-key/IndexesKey.d.ts +21 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-key/IndexesKey.styles.d.ts +13 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +3 -0
- package/dist/components/erd/welcome-screen/WelcomeScreen.d.ts +17 -0
- package/dist/components/erd/welcome-screen/WelcomeScreen.styles.d.ts +17 -0
- package/dist/components/erd/welcome-screen/welcome-hints/WelcomeHints.d.ts +21 -0
- package/dist/components/erd/welcome-screen/welcome-hints/WelcomeHints.styles.d.ts +14 -0
- package/dist/components/erd/welcome-screen/welcome-hints/hintArrows.d.ts +10 -0
- package/dist/components/erd/welcome-screen/welcomeLayout.d.ts +87 -0
- package/dist/components/erd-editor/ErdEditor.d.ts +67 -7
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +14 -1
- package/dist/components/export-image/ExportImage.d.ts +23 -0
- package/dist/components/export-image/ExportImage.styles.d.ts +34 -0
- package/dist/components/export-image/exportImageActions.d.ts +48 -0
- package/dist/components/find-replace/FindReplace.d.ts +13 -0
- package/dist/components/find-replace/FindReplace.styles.d.ts +27 -0
- package/dist/components/find-replace/fieldIcon.d.ts +5 -0
- package/dist/components/find-replace/matchTarget.d.ts +26 -0
- package/dist/components/find-replace/panelLayout.d.ts +20 -0
- package/dist/components/generator-code/GeneratorCode.d.ts +1 -0
- package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +3 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +3 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +8 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +3 -0
- package/dist/components/generator-code/generator-code-options/GeneratorCodeOptions.d.ts +17 -0
- package/dist/components/generator-code/generator-code-options/GeneratorCodeOptions.styles.d.ts +5 -0
- package/dist/components/generator-code/generatorCodeView.d.ts +12 -0
- package/dist/components/generator-code/languageSettings.d.ts +14 -0
- package/dist/components/locale-picker/LocalePicker.d.ts +13 -0
- package/dist/components/locale-picker/LocalePicker.styles.d.ts +19 -0
- package/dist/components/localeContext.d.ts +10 -0
- package/dist/components/localized/Localized.d.ts +18 -0
- package/dist/components/map-columns/MapColumnsBody.d.ts +24 -0
- package/dist/components/map-columns/MapColumnsDialog.d.ts +13 -0
- package/dist/components/map-columns/MapColumnsDialog.styles.d.ts +38 -0
- package/dist/components/map-columns/mapColumnsAction.d.ts +13 -0
- package/dist/components/map-columns/nameOf.d.ts +6 -0
- package/dist/components/map-columns/openMapColumns.d.ts +9 -0
- package/dist/components/primitives/code-block/CodeBlock.d.ts +6 -1
- package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +2 -0
- package/dist/components/primitives/color-picker/ColorPicker.d.ts +10 -1
- package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +25 -0
- package/dist/components/primitives/color-picker/colorModel.d.ts +36 -0
- package/dist/components/primitives/color-picker/presetColors.d.ts +13 -0
- package/dist/components/primitives/color-picker/resolveColor.d.ts +7 -0
- package/dist/components/primitives/context-menu/ContextMenu.d.ts +2 -0
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-content/fitMenu.d.ts +4 -4
- package/dist/components/primitives/context-menu/context-menu-separator/ContextMenuSeparator.d.ts +8 -0
- package/dist/components/primitives/context-menu/context-menu-separator/ContextMenuSeparator.styles.d.ts +2 -0
- package/dist/components/primitives/context-menu/menu/Menu.d.ts +2 -0
- package/dist/components/primitives/context-menu/submenu-chevron/SubmenuChevron.d.ts +5 -0
- package/dist/components/primitives/dialog/Dialog.d.ts +21 -0
- package/dist/components/primitives/dialog/Dialog.styles.d.ts +12 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +2 -5
- package/dist/components/primitives/icon/icons.d.ts +27 -1
- package/dist/components/primitives/select/Select.d.ts +18 -0
- package/dist/components/primitives/select/Select.styles.d.ts +13 -0
- package/dist/components/primitives/text-input/TextInput.d.ts +2 -0
- package/dist/components/primitives/toast/Toast.d.ts +5 -1
- package/dist/components/primitives/toast/Toast.styles.d.ts +2 -2
- package/dist/components/quick-search/QuickSearch.d.ts +2 -1
- package/dist/components/quick-search/QuickSearch.styles.d.ts +6 -0
- package/dist/components/quick-search/actions.d.ts +60 -2
- package/dist/components/quick-search/hangul.d.ts +79 -0
- package/dist/components/quick-search/paletteQuery.d.ts +38 -0
- package/dist/components/quick-search/scopedActions.d.ts +42 -0
- package/dist/components/schema-sql/SchemaSQL.d.ts +2 -0
- package/dist/components/schema-sql/SchemaSQL.styles.d.ts +7 -0
- package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +3 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +3 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/headerMenus.d.ts +29 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/statementsMenus.d.ts +27 -0
- package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.d.ts +24 -0
- package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.styles.d.ts +45 -0
- package/dist/components/schema-sql/schema-sql-options/ScriptEditor.d.ts +20 -0
- package/dist/components/schema-sql/schema-sql-options/ScriptEditor.styles.d.ts +13 -0
- package/dist/components/schema-sql/schema-sql-options/dropWarning.d.ts +8 -0
- package/dist/components/schema-sql/schemaSQLView.d.ts +71 -0
- package/dist/components/settings/Settings.styles.d.ts +7 -0
- package/dist/components/settings/columnTypeLabels.d.ts +8 -0
- package/dist/components/settings/lockSettingRows.d.ts +16 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +3 -0
- package/dist/components/settings/settingsPage.d.ts +10 -0
- package/dist/components/theme-builder/ThemeBuilder.d.ts +9 -1
- package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +8 -5
- package/dist/components/toast-container/openStatusToast.d.ts +29 -0
- package/dist/components/toast-container/openToastWhileRunning.d.ts +1 -1
- package/dist/components/toolbar/Toolbar.d.ts +1 -0
- package/dist/components/visualization/graph-node/GraphNode.d.ts +2 -2
- package/dist/components/visualization/graphPan.d.ts +12 -0
- package/dist/components/visualization/table/column/Column.d.ts +4 -0
- package/dist/components/visualization/visualizationView.d.ts +2 -2
- package/dist/constants/language.d.ts +1 -1
- package/dist/constants/layout.d.ts +47 -0
- package/dist/constants/open.d.ts +4 -0
- package/dist/constants/schema.d.ts +38 -4
- package/dist/constants/sql/dataType/PostgreSQL.d.ts +2 -1
- package/dist/constants/sql/dataType/SQLite.d.ts +3 -1
- package/dist/engine/actions.d.ts +20 -2
- package/dist/engine/context.d.ts +6 -0
- package/dist/engine/index.d.ts +1 -1
- package/dist/engine/index.js +29 -18
- package/dist/engine/modules/editor/actions.d.ts +10 -2
- package/dist/engine/modules/editor/atom.actions.d.ts +49 -11
- package/dist/engine/modules/editor/generator.actions.d.ts +107 -8
- package/dist/engine/modules/editor/state.d.ts +16 -3
- package/dist/engine/modules/editor/utils/color.d.ts +21 -0
- package/dist/engine/modules/editor/utils/duplicate.d.ts +28 -1
- package/dist/engine/modules/editor/utils/focus.d.ts +16 -0
- package/dist/engine/modules/editor/utils/releaseHidden.d.ts +16 -0
- package/dist/engine/modules/editor/utils/selection.d.ts +12 -0
- package/dist/engine/modules/relationship/actions.d.ts +19 -0
- package/dist/engine/modules/relationship/atom.actions.d.ts +111 -1
- package/dist/engine/modules/relationship/endFlags.d.ts +14 -0
- package/dist/engine/modules/relationship/fkColumns.d.ts +40 -4
- package/dist/engine/modules/relationship/generator.actions.d.ts +5 -2
- package/dist/engine/modules/relationship/history.d.ts +3 -0
- package/dist/engine/modules/relationship/referenceType.d.ts +12 -0
- package/dist/engine/modules/settings/actions.d.ts +17 -4
- package/dist/engine/modules/settings/atom.actions.d.ts +63 -19
- package/dist/engine/modules/settings/generator.actions.d.ts +7 -0
- package/dist/engine/modules/settings/history.d.ts +1 -0
- package/dist/engine/modules/table/actions.d.ts +8 -0
- package/dist/engine/modules/table/atom.actions.d.ts +31 -0
- package/dist/engine/modules/table/generator.actions.d.ts +3 -3
- package/dist/engine/modules/table/history.d.ts +1 -0
- package/dist/engine/modules/table-column/generator.actions.d.ts +8 -0
- package/dist/engine/modules/table-column/keys.d.ts +14 -0
- package/dist/engine/modules/table-column/utils/dataType.d.ts +19 -1
- package/dist/engine/modules/table-group/actions.d.ts +63 -0
- package/dist/engine/modules/table-group/atom.actions.d.ts +238 -0
- package/dist/engine/modules/table-group/generator.actions.d.ts +111 -0
- package/dist/engine/modules/table-group/history.d.ts +13 -0
- package/dist/engine/peer-store.d.ts +9 -3
- package/dist/engine/replication-store.d.ts +18 -1
- package/dist/engine/rx-operators/groupByStreamActions.d.ts +5 -1
- package/dist/engine/rx-operators/lockIgnoreFilter.d.ts +8 -0
- package/dist/engine/rx-store.d.ts +2 -0
- package/dist/engine/settle.d.ts +9 -0
- package/dist/erd-editor.umd.js +2523 -4060
- package/dist/hooks/useNavigatorLanguages.d.ts +7 -0
- package/dist/i18n/locales.d.ts +126 -0
- package/dist/i18n/menuLabel.d.ts +12 -0
- package/dist/i18n/messages/ar-SA.d.ts +399 -0
- package/dist/i18n/messages/de-DE.d.ts +375 -0
- package/dist/i18n/messages/en/code.d.ts +17 -0
- package/dist/i18n/messages/en/colorPicker.d.ts +35 -0
- package/dist/i18n/messages/en/common.d.ts +65 -0
- package/dist/i18n/messages/en/contextMenu.d.ts +29 -0
- package/dist/i18n/messages/en/exportImage.d.ts +25 -0
- package/dist/i18n/messages/en/feedback.d.ts +11 -0
- package/dist/i18n/messages/en/findReplace.d.ts +36 -0
- package/dist/i18n/messages/en/floatingToolbar.d.ts +12 -0
- package/dist/i18n/messages/en/index.d.ts +378 -0
- package/dist/i18n/messages/en/mapColumns.d.ts +39 -0
- package/dist/i18n/messages/en/palette.d.ts +40 -0
- package/dist/i18n/messages/en/schemaSql.d.ts +28 -0
- package/dist/i18n/messages/en/settings.d.ts +22 -0
- package/dist/i18n/messages/en/shortcuts.d.ts +32 -0
- package/dist/i18n/messages/en/tableProperties.d.ts +34 -0
- package/dist/i18n/messages/en/themeBuilder.d.ts +7 -0
- package/dist/i18n/messages/en/toolbar.d.ts +9 -0
- package/dist/i18n/messages/en/visualization.d.ts +12 -0
- package/dist/i18n/messages/en/welcome.d.ts +13 -0
- package/dist/i18n/messages/es-ES.d.ts +381 -0
- package/dist/i18n/messages/eu-ES.d.ts +375 -0
- package/dist/i18n/messages/fa-IR.d.ts +375 -0
- package/dist/i18n/messages/fr-FR.d.ts +381 -0
- package/dist/i18n/messages/he-IL.d.ts +381 -0
- package/dist/i18n/messages/id-ID.d.ts +369 -0
- package/dist/i18n/messages/index.d.ts +11 -0
- package/dist/i18n/messages/it-IT.d.ts +381 -0
- package/dist/i18n/messages/ja-JP.d.ts +369 -0
- package/dist/i18n/messages/ko-KR.d.ts +369 -0
- package/dist/i18n/messages/nl-NL.d.ts +375 -0
- package/dist/i18n/messages/pl-PL.d.ts +387 -0
- package/dist/i18n/messages/pt-BR.d.ts +381 -0
- package/dist/i18n/messages/pt-PT.d.ts +381 -0
- package/dist/i18n/messages/ro-RO.d.ts +381 -0
- package/dist/i18n/messages/ru-RU.d.ts +387 -0
- package/dist/i18n/messages/sk-SK.d.ts +387 -0
- package/dist/i18n/messages/sl-SI.d.ts +387 -0
- package/dist/i18n/messages/sv-SE.d.ts +375 -0
- package/dist/i18n/messages/tr-TR.d.ts +375 -0
- package/dist/i18n/messages/uk-UA.d.ts +387 -0
- package/dist/i18n/messages/zh-CN.d.ts +369 -0
- package/dist/i18n/messages/zh-TW.d.ts +369 -0
- package/dist/i18n/resolveLocale.d.ts +11 -0
- package/dist/i18n/source.d.ts +7 -0
- package/dist/i18n/translate.d.ts +58 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +28966 -11220
- package/dist/internal-types/index.d.ts +2 -4
- package/dist/konva/scene/contentBounds.d.ts +18 -12
- package/dist/konva/scene/metrics.d.ts +7 -0
- package/dist/konva/scene/renderScene.d.ts +10 -4
- package/dist/konva/scene/stacking.d.ts +21 -0
- package/dist/konva/scene/viewLayout.d.ts +2 -1
- package/dist/loadValue-B3EFSe9k.js +12925 -0
- package/dist/peer/index.d.ts +6 -3
- package/dist/peer/index.js +87 -83
- package/dist/services/elk-layout/elkGraph.d.ts +6 -4
- package/dist/services/elk-layout/elkLayoutOptions.d.ts +20 -0
- package/dist/services/elk-layout/elkLayoutService.d.ts +3 -3
- package/dist/services/export-png/ExportScene.d.ts +3 -3
- package/dist/services/export-png/documentScene.d.ts +14 -9
- package/dist/services/export-png/exportBox.d.ts +40 -5
- package/dist/services/export-png/exportPngService.d.ts +15 -0
- package/dist/services/export-png/exportTheme.d.ts +26 -0
- package/dist/services/export-png/index.d.ts +44 -11
- package/dist/services/export-png/renderPng.d.ts +18 -10
- package/dist/services/export-png/renderSvg.d.ts +22 -0
- package/dist/services/export-png/sceneSvg.d.ts +54 -0
- package/dist/services/shiki/graphqlGrammar.d.ts +8 -0
- package/dist/shared-store-fUggY7sI.js +1341 -0
- package/dist/themes/radix-ui-theme.d.ts +11 -3
- package/dist/themes/tokens.d.ts +9 -0
- package/dist/utils/calcTable.d.ts +18 -1
- package/dist/utils/clipboard.d.ts +9 -0
- package/dist/utils/collection/tableGroup.entity.d.ts +3 -0
- package/dist/utils/contrastText.d.ts +21 -0
- package/dist/utils/deepMerge.d.ts +8 -0
- package/dist/utils/device-detect/index.d.ts +2 -6
- package/dist/utils/domEvent.d.ts +18 -0
- package/dist/utils/dragSelect.d.ts +2 -0
- package/dist/utils/draw-relationship/bezier.d.ts +2 -0
- package/dist/utils/draw-relationship/corner.d.ts +9 -0
- package/dist/utils/draw-relationship/index.d.ts +18 -18
- package/dist/utils/draw-relationship/loop.d.ts +29 -0
- package/dist/utils/draw-relationship/pathFinding.d.ts +1 -1
- package/dist/utils/draw-relationship/sort.d.ts +8 -1
- package/dist/utils/draw-relationship/stub.d.ts +4 -3
- package/dist/utils/emitter.d.ts +64 -4
- package/dist/utils/file/exportFile.d.ts +15 -5
- package/dist/utils/file/importFile.d.ts +9 -5
- package/dist/utils/file/importSchema.d.ts +45 -0
- package/dist/utils/find-replace/findMatches.d.ts +90 -0
- package/dist/utils/find-replace/index.d.ts +5 -0
- package/dist/utils/find-replace/matcher.d.ts +53 -0
- package/dist/utils/find-replace/present.d.ts +24 -0
- package/dist/utils/find-replace/replaceActions.d.ts +20 -0
- package/dist/utils/generator-code/columnTypes.d.ts +99 -0
- package/dist/utils/generator-code/doctrine.d.ts +6 -0
- package/dist/utils/generator-code/doctrineReservedWords.d.ts +7 -0
- package/dist/utils/generator-code/graphql.d.ts +6 -0
- package/dist/utils/generator-code/heck.d.ts +5 -0
- package/dist/utils/generator-code/java.d.ts +28 -0
- package/dist/utils/generator-code/jsonSchema.d.ts +50 -0
- package/dist/utils/generator-code/jsonShape.d.ts +37 -0
- package/dist/utils/generator-code/kotlin.d.ts +1 -0
- package/dist/utils/generator-code/mermaid.d.ts +5 -0
- package/dist/utils/generator-code/php.d.ts +28 -0
- package/dist/utils/generator-code/rust.d.ts +13 -0
- package/dist/utils/generator-code/rustTypes.d.ts +44 -0
- package/dist/utils/generator-code/scala.d.ts +1 -0
- package/dist/utils/generator-code/seaorm.d.ts +22 -0
- package/dist/utils/generator-code/swift.d.ts +44 -0
- package/dist/utils/generator-code/utils.d.ts +31 -1
- package/dist/utils/generator-code/zod.d.ts +25 -0
- package/dist/utils/globalEventObservable.d.ts +10 -1
- package/dist/utils/highlightWords.d.ts +29 -0
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/keyboard-shortcut/bindKeys.d.ts +9 -0
- package/dist/utils/keyboard-shortcut/index.d.ts +15 -1
- package/dist/utils/keyboard-shortcut/utils.d.ts +21 -0
- package/dist/utils/loadValue.d.ts +7 -0
- package/dist/utils/map-columns/alignTypes.d.ts +37 -0
- package/dist/utils/map-columns/buildRows.d.ts +102 -0
- package/dist/utils/map-columns/candidateKeys.d.ts +24 -0
- package/dist/utils/map-columns/index.d.ts +8 -0
- package/dist/utils/map-columns/mapping.d.ts +67 -0
- package/dist/utils/map-columns/prefill.d.ts +26 -0
- package/dist/utils/map-columns/toMapColumnsActions.d.ts +10 -0
- package/dist/utils/map-columns/validate.d.ts +45 -0
- package/dist/utils/memo.d.ts +4 -0
- package/dist/utils/referentialAction.d.ts +21 -0
- package/dist/utils/schema-aml-parser/types.d.ts +8 -0
- package/dist/utils/schema-dbml-parser/tokenizer.d.ts +2 -0
- package/dist/utils/schema-dbml-parser/types.d.ts +14 -0
- package/dist/utils/schema-sql/Databricks.d.ts +13 -3
- package/dist/utils/schema-sql/MSSQL.d.ts +19 -2
- package/dist/utils/schema-sql/MariaDB.d.ts +10 -4
- package/dist/utils/schema-sql/MySQL.d.ts +18 -4
- package/dist/utils/schema-sql/Oracle.d.ts +23 -4
- package/dist/utils/schema-sql/PostgreSQL.d.ts +16 -4
- package/dist/utils/schema-sql/SQLite.d.ts +16 -4
- package/dist/utils/schema-sql/Snowflake.d.ts +8 -3
- package/dist/utils/schema-sql/index.d.ts +21 -1
- package/dist/utils/schema-sql/options.d.ts +57 -0
- package/dist/utils/schema-sql/utils.d.ts +120 -2
- package/dist/utils/schema-sql-parser/index.d.ts +5 -1
- package/dist/utils/stageCursor.d.ts +20 -0
- package/dist/utils/table-clipboard/payload.d.ts +3 -0
- package/dist/utils/table-clipboard/placement.d.ts +2 -0
- package/dist/utils/tableColor.d.ts +29 -0
- package/dist/utils/tableGroup.d.ts +142 -0
- package/dist/utils/tableKeys.d.ts +54 -0
- package/dist/workers/elkLayout.shared-worker.js +1 -1
- package/dist/workers/exportPng.shared-worker.js +30 -28
- package/dist/workers/shiki.shared-worker.js +1 -1
- package/dist/workers/spawn.d.ts +1 -2
- package/dist/workers/spawn.inline.d.ts +0 -1
- package/package.json +12 -18
- package/dist/components/generator-code/GeneratorCode.styles.d.ts +0 -2
- package/dist/schemaGCService-BagQ1wfF.js +0 -38
- package/dist/services/schema-gc/index.d.ts +0 -18
- package/dist/services/schema-gc/procGC.d.ts +0 -4
- package/dist/services/schema-gc/schemaGC.shared-worker.d.ts +0 -2
- package/dist/services/schema-gc/schemaGCService.d.ts +0 -5
- package/dist/shared-store-BqPSXAEf.js +0 -1072
- package/dist/store-hooks-DuzDVhPy.js +0 -10282
- package/dist/styles/colorPicker.style.d.ts +0 -7
- package/dist/utils/draw-relationship/chamfer.d.ts +0 -3
- package/dist/workers/schemaGC.shared-worker.js +0 -1
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { ReducerType } from './actions';
|
|
2
|
+
export declare const addTableGroupAction: {
|
|
3
|
+
(payload: {
|
|
4
|
+
id: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
ui: {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
zIndex: number;
|
|
12
|
+
};
|
|
13
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
14
|
+
id: string;
|
|
15
|
+
color?: string;
|
|
16
|
+
ui: {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
zIndex: number;
|
|
22
|
+
};
|
|
23
|
+
}>;
|
|
24
|
+
toString(): string;
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const moveTableGroupAction: {
|
|
28
|
+
(payload: {
|
|
29
|
+
movementX: number;
|
|
30
|
+
movementY: number;
|
|
31
|
+
ids: string[];
|
|
32
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
33
|
+
movementX: number;
|
|
34
|
+
movementY: number;
|
|
35
|
+
ids: string[];
|
|
36
|
+
}>;
|
|
37
|
+
toString(): string;
|
|
38
|
+
type: string;
|
|
39
|
+
};
|
|
40
|
+
export declare const moveToTableGroupAction: {
|
|
41
|
+
(payload: {
|
|
42
|
+
id: string;
|
|
43
|
+
x: number;
|
|
44
|
+
y: number;
|
|
45
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
46
|
+
id: string;
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
}>;
|
|
50
|
+
toString(): string;
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
export declare const removeTableGroupAction: {
|
|
54
|
+
(payload: {
|
|
55
|
+
id: string;
|
|
56
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
57
|
+
id: string;
|
|
58
|
+
}>;
|
|
59
|
+
toString(): string;
|
|
60
|
+
type: string;
|
|
61
|
+
};
|
|
62
|
+
export declare const resizeTableGroupAction: {
|
|
63
|
+
(payload: {
|
|
64
|
+
id: string;
|
|
65
|
+
x: number;
|
|
66
|
+
y: number;
|
|
67
|
+
width: number;
|
|
68
|
+
height: number;
|
|
69
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
70
|
+
id: string;
|
|
71
|
+
x: number;
|
|
72
|
+
y: number;
|
|
73
|
+
width: number;
|
|
74
|
+
height: number;
|
|
75
|
+
}>;
|
|
76
|
+
toString(): string;
|
|
77
|
+
type: string;
|
|
78
|
+
};
|
|
79
|
+
export declare const changeTableGroupNameAction: {
|
|
80
|
+
(payload: {
|
|
81
|
+
id: string;
|
|
82
|
+
value: string;
|
|
83
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
84
|
+
id: string;
|
|
85
|
+
value: string;
|
|
86
|
+
}>;
|
|
87
|
+
toString(): string;
|
|
88
|
+
type: string;
|
|
89
|
+
};
|
|
90
|
+
export declare const changeTableGroupColorAction: {
|
|
91
|
+
(payload: {
|
|
92
|
+
id: string;
|
|
93
|
+
color: string;
|
|
94
|
+
prevColor: string;
|
|
95
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
96
|
+
id: string;
|
|
97
|
+
color: string;
|
|
98
|
+
prevColor: string;
|
|
99
|
+
}>;
|
|
100
|
+
toString(): string;
|
|
101
|
+
type: string;
|
|
102
|
+
};
|
|
103
|
+
export declare const changeTableGroupZIndexAction: {
|
|
104
|
+
(payload: {
|
|
105
|
+
id: string;
|
|
106
|
+
zIndex: number;
|
|
107
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
108
|
+
id: string;
|
|
109
|
+
zIndex: number;
|
|
110
|
+
}>;
|
|
111
|
+
toString(): string;
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
export declare const tableGroupReducers: {
|
|
115
|
+
"tableGroup.add": ReducerType<"tableGroup.add">;
|
|
116
|
+
"tableGroup.move": ReducerType<"tableGroup.move">;
|
|
117
|
+
"tableGroup.moveTo": ReducerType<"tableGroup.moveTo">;
|
|
118
|
+
"tableGroup.remove": ReducerType<"tableGroup.remove">;
|
|
119
|
+
"tableGroup.resize": ReducerType<"tableGroup.resize">;
|
|
120
|
+
"tableGroup.changeName": ReducerType<"tableGroup.changeName">;
|
|
121
|
+
"tableGroup.changeColor": ReducerType<"tableGroup.changeColor">;
|
|
122
|
+
"tableGroup.changeZIndex": ReducerType<"tableGroup.changeZIndex">;
|
|
123
|
+
};
|
|
124
|
+
export declare const actions: {
|
|
125
|
+
addTableGroupAction: {
|
|
126
|
+
(payload: {
|
|
127
|
+
id: string;
|
|
128
|
+
color?: string;
|
|
129
|
+
ui: {
|
|
130
|
+
x: number;
|
|
131
|
+
y: number;
|
|
132
|
+
width: number;
|
|
133
|
+
height: number;
|
|
134
|
+
zIndex: number;
|
|
135
|
+
};
|
|
136
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
137
|
+
id: string;
|
|
138
|
+
color?: string;
|
|
139
|
+
ui: {
|
|
140
|
+
x: number;
|
|
141
|
+
y: number;
|
|
142
|
+
width: number;
|
|
143
|
+
height: number;
|
|
144
|
+
zIndex: number;
|
|
145
|
+
};
|
|
146
|
+
}>;
|
|
147
|
+
toString(): string;
|
|
148
|
+
type: string;
|
|
149
|
+
};
|
|
150
|
+
moveTableGroupAction: {
|
|
151
|
+
(payload: {
|
|
152
|
+
movementX: number;
|
|
153
|
+
movementY: number;
|
|
154
|
+
ids: string[];
|
|
155
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
156
|
+
movementX: number;
|
|
157
|
+
movementY: number;
|
|
158
|
+
ids: string[];
|
|
159
|
+
}>;
|
|
160
|
+
toString(): string;
|
|
161
|
+
type: string;
|
|
162
|
+
};
|
|
163
|
+
moveToTableGroupAction: {
|
|
164
|
+
(payload: {
|
|
165
|
+
id: string;
|
|
166
|
+
x: number;
|
|
167
|
+
y: number;
|
|
168
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
169
|
+
id: string;
|
|
170
|
+
x: number;
|
|
171
|
+
y: number;
|
|
172
|
+
}>;
|
|
173
|
+
toString(): string;
|
|
174
|
+
type: string;
|
|
175
|
+
};
|
|
176
|
+
removeTableGroupAction: {
|
|
177
|
+
(payload: {
|
|
178
|
+
id: string;
|
|
179
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
180
|
+
id: string;
|
|
181
|
+
}>;
|
|
182
|
+
toString(): string;
|
|
183
|
+
type: string;
|
|
184
|
+
};
|
|
185
|
+
resizeTableGroupAction: {
|
|
186
|
+
(payload: {
|
|
187
|
+
id: string;
|
|
188
|
+
x: number;
|
|
189
|
+
y: number;
|
|
190
|
+
width: number;
|
|
191
|
+
height: number;
|
|
192
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
193
|
+
id: string;
|
|
194
|
+
x: number;
|
|
195
|
+
y: number;
|
|
196
|
+
width: number;
|
|
197
|
+
height: number;
|
|
198
|
+
}>;
|
|
199
|
+
toString(): string;
|
|
200
|
+
type: string;
|
|
201
|
+
};
|
|
202
|
+
changeTableGroupNameAction: {
|
|
203
|
+
(payload: {
|
|
204
|
+
id: string;
|
|
205
|
+
value: string;
|
|
206
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
207
|
+
id: string;
|
|
208
|
+
value: string;
|
|
209
|
+
}>;
|
|
210
|
+
toString(): string;
|
|
211
|
+
type: string;
|
|
212
|
+
};
|
|
213
|
+
changeTableGroupColorAction: {
|
|
214
|
+
(payload: {
|
|
215
|
+
id: string;
|
|
216
|
+
color: string;
|
|
217
|
+
prevColor: string;
|
|
218
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
219
|
+
id: string;
|
|
220
|
+
color: string;
|
|
221
|
+
prevColor: string;
|
|
222
|
+
}>;
|
|
223
|
+
toString(): string;
|
|
224
|
+
type: string;
|
|
225
|
+
};
|
|
226
|
+
changeTableGroupZIndexAction: {
|
|
227
|
+
(payload: {
|
|
228
|
+
id: string;
|
|
229
|
+
zIndex: number;
|
|
230
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
231
|
+
id: string;
|
|
232
|
+
zIndex: number;
|
|
233
|
+
}>;
|
|
234
|
+
toString(): string;
|
|
235
|
+
type: string;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
//# sourceMappingURL=atom.actions.d.ts.map
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { AnyAction } from '@dineug/r-html';
|
|
2
|
+
import { GeneratorAction } from '../../generator.actions';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { Table } from '../../../internal-types';
|
|
5
|
+
import { Rect } from '../../../konva/scene/metrics';
|
|
6
|
+
/** What a new group starts with besides its rect: no name and no color unless given. */
|
|
7
|
+
export type NewTableGroupFields = {
|
|
8
|
+
name?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Adds a group drawn over the canvas: the tables in no group whose centre lies
|
|
13
|
+
* in the rect join it, and a table in another group stays where it is.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* store.dispatch(addTableGroupAction$({ x: 0, y: 0, width: 600, height: 400 }));
|
|
17
|
+
*/
|
|
18
|
+
export declare const addTableGroupAction$: (rect: Rect, fields?: NewTableGroupFields) => GeneratorAction;
|
|
19
|
+
/**
|
|
20
|
+
* Adds a group around the tables given, or the selected ones, their bounds and
|
|
21
|
+
* the padding its rect: each joins it, leaving any group it was in. No table
|
|
22
|
+
* the document lists, and nothing is added.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* store.dispatch(addTableGroupFromTablesAction$());
|
|
26
|
+
*/
|
|
27
|
+
export declare const addTableGroupFromTablesAction$: (tableIds?: string[], fields?: NewTableGroupFields) => GeneratorAction;
|
|
28
|
+
/**
|
|
29
|
+
* Removes the group named, or every selected one the document lists, each with
|
|
30
|
+
* its members' groupId cleared in the same dispatch, so one undo brings back
|
|
31
|
+
* the group and its members together.
|
|
32
|
+
*/
|
|
33
|
+
export declare const removeTableGroupAction$: (id?: string) => GeneratorAction;
|
|
34
|
+
/**
|
|
35
|
+
* The tables a move of groups and tables carries: the tables given and every
|
|
36
|
+
* member of those groups, a table both given and a member once.
|
|
37
|
+
*/
|
|
38
|
+
export declare function getCarriedTableIds(state: RootState, groupIds: string[], tableIds: string[]): string[];
|
|
39
|
+
/**
|
|
40
|
+
* The drag step of groups and the tables they carry (getCarriedTableIds): each
|
|
41
|
+
* group and each table by the same step, tagged as drags.
|
|
42
|
+
*/
|
|
43
|
+
export declare function toMoveTableGroupActions(groupIds: string[], tableIds: string[], movementX: number, movementY: number): AnyAction[];
|
|
44
|
+
/**
|
|
45
|
+
* Moves groups by a step in scene units, their member tables with them, in one
|
|
46
|
+
* dispatch: moves are relative, so a peer's concurrent move adds up.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* store.dispatch(moveTableGroupAction$(['g1'], 40, 0));
|
|
50
|
+
*/
|
|
51
|
+
export declare const moveTableGroupAction$: (ids: string[], movementX: number, movementY: number) => GeneratorAction;
|
|
52
|
+
/**
|
|
53
|
+
* Puts the tables in the group, or in none for '': a group the document does
|
|
54
|
+
* not list, and nothing is sent, nor for a table already where it goes.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* store.dispatch(setTableGroupAction$(['users', 'orders'], 'g1'));
|
|
58
|
+
*/
|
|
59
|
+
export declare const setTableGroupAction$: (tableIds: string[], groupId: string) => GeneratorAction;
|
|
60
|
+
/** A table a drop judges, the group it lands in, '' for none, and that group's box, null for none. */
|
|
61
|
+
export type TableGroupDrop = {
|
|
62
|
+
table: Table;
|
|
63
|
+
groupId: string;
|
|
64
|
+
box: Rect | null;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* The box each group showed as a drag began, by group id, held for the drag's
|
|
68
|
+
* length: a member that grew past the stored rect stays in the box the reader
|
|
69
|
+
* saw while its centre does, though only its own padding drew the box there.
|
|
70
|
+
*/
|
|
71
|
+
export type HeldTableGroupBoxes = ReadonlyMap<string, Rect>;
|
|
72
|
+
/**
|
|
73
|
+
* Where a drop puts each selected table no selected group carries: in the topmost group whose box
|
|
74
|
+
* without them, and for a group the drag leaves standing the box it held too, holds its centre, or
|
|
75
|
+
* in none. With groups hidden or no table to judge, a drag of groups alone, it reads no box.
|
|
76
|
+
*/
|
|
77
|
+
export declare function getTableGroupDrops(state: RootState, held?: HeldTableGroupBoxes | null): TableGroupDrop[];
|
|
78
|
+
/**
|
|
79
|
+
* Ends a drag of the selection: each table getTableGroupDrops judges, given the boxes the drag held,
|
|
80
|
+
* joins the group it landed in or leaves its own, tagged as the drag, so the history closes the
|
|
81
|
+
* membership into the drag's undo entry; its undo reads prevValue.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* store.dispatch(dropTablesIntoGroupsAction$(held));
|
|
85
|
+
*/
|
|
86
|
+
export declare const dropTablesIntoGroupsAction$: (held?: HeldTableGroupBoxes | null) => GeneratorAction;
|
|
87
|
+
/**
|
|
88
|
+
* Selects a group, alone unless $mod, and draws it over every other group and its tables over every
|
|
89
|
+
* other table and memo in their own order, as a press on a table raises it. Otherwise a group drag
|
|
90
|
+
* would lift its tables over the rest and drop them back under it.
|
|
91
|
+
*/
|
|
92
|
+
export declare const selectTableGroupAction$: (id: string, $mod: boolean) => GeneratorAction;
|
|
93
|
+
/**
|
|
94
|
+
* Selects the group's member tables alone, the group itself left out, so what
|
|
95
|
+
* a table command reaches next is its tables.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* store.dispatch(selectTableGroupTablesAction$('g1'));
|
|
99
|
+
*/
|
|
100
|
+
export declare const selectTableGroupTablesAction$: (id: string) => GeneratorAction;
|
|
101
|
+
export declare const actions$: {
|
|
102
|
+
addTableGroupAction$: (rect: Rect, fields?: NewTableGroupFields) => GeneratorAction;
|
|
103
|
+
addTableGroupFromTablesAction$: (tableIds?: string[], fields?: NewTableGroupFields) => GeneratorAction;
|
|
104
|
+
removeTableGroupAction$: (id?: string) => GeneratorAction;
|
|
105
|
+
moveTableGroupAction$: (ids: string[], movementX: number, movementY: number) => GeneratorAction;
|
|
106
|
+
setTableGroupAction$: (tableIds: string[], groupId: string) => GeneratorAction;
|
|
107
|
+
dropTablesIntoGroupsAction$: (held?: HeldTableGroupBoxes | null) => GeneratorAction;
|
|
108
|
+
selectTableGroupAction$: (id: string, $mod: boolean) => GeneratorAction;
|
|
109
|
+
selectTableGroupTablesAction$: (id: string) => GeneratorAction;
|
|
110
|
+
};
|
|
111
|
+
//# sourceMappingURL=generator.actions.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PushStreamHistory, PushUndoHistory } from '../../history.actions';
|
|
2
|
+
export declare const tableGroupPushUndoHistoryMap: {
|
|
3
|
+
"tableGroup.add": PushUndoHistory;
|
|
4
|
+
"tableGroup.remove": PushUndoHistory;
|
|
5
|
+
"tableGroup.changeName": PushUndoHistory;
|
|
6
|
+
"tableGroup.moveTo": PushUndoHistory;
|
|
7
|
+
"tableGroup.resize": PushUndoHistory;
|
|
8
|
+
};
|
|
9
|
+
export declare const tableGroupPushStreamHistoryMap: {
|
|
10
|
+
"tableGroup.move": PushStreamHistory;
|
|
11
|
+
"tableGroup.changeColor": PushStreamHistory;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=history.d.ts.map
|
|
@@ -55,16 +55,22 @@ export declare class PeerStoreError extends Error {
|
|
|
55
55
|
}
|
|
56
56
|
export type PeerStore = {
|
|
57
57
|
readonly editorId: string;
|
|
58
|
-
/** The document as the element would save it. */
|
|
58
|
+
/** The document as the element would save it, in the form a file holds. */
|
|
59
59
|
readonly value: string;
|
|
60
|
+
/**
|
|
61
|
+
* The document as this peer holds it, removed entities included, for another
|
|
62
|
+
* peer's setInitialValue, so an undo of a removal restores the entity whole there.
|
|
63
|
+
*/
|
|
64
|
+
readonly runtimeValue: string;
|
|
60
65
|
/** The live state, for readers that serialize it another way. */
|
|
61
66
|
readonly state: RootState;
|
|
62
67
|
readonly isReadonly: boolean;
|
|
63
68
|
readonly isDestroyed: boolean;
|
|
64
69
|
setReadonly: (readonly: boolean) => void;
|
|
65
70
|
/**
|
|
66
|
-
* Replaces the document and forgets every undo entry and
|
|
67
|
-
* since those were taken against the old one
|
|
71
|
+
* Replaces the document and forgets every undo entry, label and register with
|
|
72
|
+
* it, since those were taken against the old one, and once subscribed asks the
|
|
73
|
+
* other peers for their registers again. The one reseed operation.
|
|
68
74
|
*/
|
|
69
75
|
setInitialValue: (value: string) => void;
|
|
70
76
|
mergeClock: (version: number) => void;
|
|
@@ -9,10 +9,27 @@ declare const InternalActionType: {
|
|
|
9
9
|
};
|
|
10
10
|
type InternalActionType = ValuesType<typeof InternalActionType>;
|
|
11
11
|
type InternalActionMap = {
|
|
12
|
-
[InternalActionType.change]:
|
|
12
|
+
[InternalActionType.change]: ReplicationChange;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* What a change hands its listeners: the document in the form a file holds,
|
|
16
|
+
* and whether the change actions since the last change, or since the load,
|
|
17
|
+
* left that form byte for byte as it was, as a scroll under its lock does.
|
|
18
|
+
*/
|
|
19
|
+
export type ReplicationChange = {
|
|
20
|
+
value: string;
|
|
21
|
+
changed: boolean;
|
|
13
22
|
};
|
|
14
23
|
export type ReplicationStore = {
|
|
24
|
+
/** The document in the form a file holds. */
|
|
15
25
|
readonly value: string;
|
|
26
|
+
/** The document as the replica holds it, removed entities included, to seed a peer. */
|
|
27
|
+
readonly runtimeValue: string;
|
|
28
|
+
/**
|
|
29
|
+
* A change comes 200 ms after the last change action, even one that left the
|
|
30
|
+
* value as it was (changed false): a hub waits for each as a save, and a host
|
|
31
|
+
* writes nothing for such a one, whatever bytes its file holds.
|
|
32
|
+
*/
|
|
16
33
|
on: (listeners: Partial<ListenerRecord>) => Unsubscribe;
|
|
17
34
|
setInitialValue: (value: string) => void;
|
|
18
35
|
dispatch: (actions: Array<AnyAction> | AnyAction) => void;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { AnyAction } from '@dineug/r-html';
|
|
2
2
|
import { MonoTypeOperatorFunction, Observable } from 'rxjs';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A group's key and the types it takes, and optionally a tag that brings any
|
|
5
|
+
* action carrying it into the group whatever its type.
|
|
6
|
+
*/
|
|
7
|
+
type Regroup = [string, Array<string> | ReadonlyArray<string>, number?];
|
|
4
8
|
/** Runs on a stream group's batches; each value it emits closes the buffer. */
|
|
5
9
|
export type StreamBufferOperator = MonoTypeOperatorFunction<Array<AnyAction>>;
|
|
6
10
|
export declare const groupByStreamActions: (streamActionTypes: Array<string> | ReadonlyArray<string>, regroups?: Regroup[], bufferClosingNotifierOperator?: StreamBufferOperator) => (source$: Observable<Array<AnyAction>>) => Observable<AnyAction[]>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AnyAction } from '@dineug/r-html';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
/**
|
|
4
|
+
* Drops each setting action whose lock is on, read as the batch passes: it
|
|
5
|
+
* moved the screen alone, since the file keeps the value the lock holds.
|
|
6
|
+
*/
|
|
7
|
+
export declare const lockIgnoreFilter: (getLockSettings: () => number) => (source$: Observable<Array<AnyAction>>) => Observable<AnyAction[]>;
|
|
8
|
+
//# sourceMappingURL=lockIgnoreFilter.d.ts.map
|
|
@@ -14,6 +14,8 @@ export type RxStore = Store & {
|
|
|
14
14
|
* unless the store was created with manualStreamFlush.
|
|
15
15
|
*/
|
|
16
16
|
flushStreamBuffers: () => void;
|
|
17
|
+
/** Whether the editor is readonly now, which drops every edit of the document. */
|
|
18
|
+
getReadonly: () => boolean;
|
|
17
19
|
};
|
|
18
20
|
export type RxStoreOptions = {
|
|
19
21
|
getReadonly?: () => boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EngineContext } from './context';
|
|
2
|
+
import { RootState } from './state';
|
|
3
|
+
/**
|
|
4
|
+
* Writes every value a document derives from what it holds: the key marks, the
|
|
5
|
+
* widths as this store measures them, the anchors, the routes where it draws,
|
|
6
|
+
* and each relationship's flags. A load runs it before its reducer returns.
|
|
7
|
+
*/
|
|
8
|
+
export declare function settleDocument(state: RootState, ctx: EngineContext): void;
|
|
9
|
+
//# sourceMappingURL=settle.d.ts.map
|