@dineug/erd-editor 3.1.8 → 3.2.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.
- package/README.md +2 -429
- package/dist/components/appContext.d.ts +8 -7
- package/dist/components/customElementRegistry.d.ts +0 -1
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +1 -2
- package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +2 -2
- package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.d.ts +1 -1
- package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.template.d.ts +1 -1
- package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +1 -1
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +1 -1
- package/dist/components/erd/canvas/memo/Memo.d.ts +1 -1
- package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +1 -1
- package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.d.ts +1 -1
- package/dist/components/erd/canvas/table/Table.d.ts +1 -1
- package/dist/components/erd/canvas/table/column/Column.d.ts +2 -2
- package/dist/components/erd/canvas/table/column/column-data-type/ColumnDataType.d.ts +1 -1
- package/dist/components/erd/canvas/table/useFocusTable.d.ts +2 -2
- package/dist/components/erd/canvas/table/useMoveTable.d.ts +1 -1
- package/dist/components/erd/diff-viewer/DiffViewer.d.ts +9 -0
- package/dist/components/erd/diff-viewer/DiffViewer.styles.d.ts +3 -0
- package/dist/components/erd/diff-viewer/diff.d.ts +19 -0
- package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.d.ts +10 -0
- package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.styles.d.ts +1 -0
- package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +11 -0
- package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.styles.d.ts +5 -0
- package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +1 -1
- package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +1 -1
- package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +2 -2
- package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +1 -1
- package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +1 -1
- package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +1 -1
- package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +1 -1
- package/dist/components/erd/erdShortcutPerformCheck.d.ts +1 -1
- package/dist/components/erd/minimap/memo/Memo.d.ts +1 -1
- package/dist/components/erd/minimap/table/Table.d.ts +1 -1
- package/dist/components/erd/minimap/useMinimapScroll.d.ts +1 -1
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +1 -1
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +1 -1
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +1 -1
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +1 -1
- package/dist/components/erd/time-travel/TimeTravel.d.ts +9 -0
- package/dist/components/erd/time-travel/TimeTravel.styles.d.ts +4 -0
- package/dist/components/erd/useErdShortcut.d.ts +1 -1
- package/dist/components/erd/virtual-scroll/useVirtualScroll.d.ts +1 -1
- package/dist/components/erd-editor/ErdEditor.d.ts +6 -5
- package/dist/components/erd-editor/ErdEditor.stories.d.ts +0 -1
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +5 -5
- package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +1 -1
- package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +1 -1
- package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +1 -1
- package/dist/components/primitives/code-block/CodeBlock.d.ts +1 -1
- package/dist/components/primitives/color-picker/ColorPicker.d.ts +1 -1
- package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +1 -1
- package/dist/components/primitives/icon/icons.d.ts +1 -1
- package/dist/components/primitives/sash/Sash.d.ts +2 -2
- package/dist/components/primitives/slider/Slider.d.ts +9 -0
- package/dist/components/primitives/slider/Slider.stories.d.ts +23 -0
- package/dist/components/primitives/slider/Slider.styles.d.ts +4 -0
- package/dist/components/quick-search/actions.d.ts +1 -1
- package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +1 -1
- package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +1 -1
- package/dist/components/theme/Theme.d.ts +1 -1
- package/dist/components/theme-builder/ThemeBuilder.d.ts +1 -1
- package/dist/components/visualization/createVisualization.d.ts +1 -1
- package/dist/components/visualization/table/Table.d.ts +1 -1
- package/dist/components/visualization/table/column/Column.d.ts +1 -1
- package/dist/constants/layout.d.ts +1 -0
- package/dist/constants/open.d.ts +3 -1
- package/dist/constants/sql/dataType/MSSQL.d.ts +1 -1
- package/dist/constants/sql/dataType/MariaDB.d.ts +1 -1
- package/dist/constants/sql/dataType/MySQL.d.ts +1 -1
- package/dist/constants/sql/dataType/Oracle.d.ts +1 -1
- package/dist/constants/sql/dataType/PostgreSQL.d.ts +1 -1
- package/dist/constants/sql/dataType/SQLite.d.ts +1 -1
- package/dist/constants/sql/dataType/index.d.ts +1 -1
- package/dist/constants/sql/database.d.ts +1 -1
- package/dist/engine/actions.d.ts +24 -24
- package/dist/engine/generator.actions.d.ts +2 -2
- package/dist/engine/history.actions.d.ts +3 -3
- package/dist/engine/history.d.ts +24 -10
- package/dist/engine/hooks.d.ts +2 -2
- package/dist/engine/modules/editor/actions.d.ts +3 -3
- package/dist/engine/modules/editor/generator.actions.d.ts +2 -2
- package/dist/engine/modules/editor/history.d.ts +1 -1
- package/dist/engine/modules/editor/state.d.ts +1 -1
- package/dist/engine/modules/editor/utils/focus.d.ts +3 -3
- package/dist/engine/modules/index/actions.d.ts +3 -3
- package/dist/engine/modules/index/generator.actions.d.ts +1 -1
- package/dist/engine/modules/index/history.d.ts +1 -1
- package/dist/engine/modules/index-column/actions.d.ts +3 -3
- package/dist/engine/modules/index-column/generator.actions.d.ts +1 -1
- package/dist/engine/modules/index-column/history.d.ts +1 -1
- package/dist/engine/modules/memo/actions.d.ts +3 -3
- package/dist/engine/modules/memo/generator.actions.d.ts +1 -1
- package/dist/engine/modules/memo/history.d.ts +1 -1
- package/dist/engine/modules/relationship/actions.d.ts +3 -3
- package/dist/engine/modules/relationship/history.d.ts +1 -1
- package/dist/engine/modules/relationship/hooks.d.ts +1 -1
- package/dist/engine/modules/settings/actions.d.ts +3 -3
- package/dist/engine/modules/settings/generator.actions.d.ts +1 -1
- package/dist/engine/modules/settings/history.d.ts +1 -1
- package/dist/engine/modules/table/actions.d.ts +3 -3
- package/dist/engine/modules/table/generator.actions.d.ts +2 -2
- package/dist/engine/modules/table/history.d.ts +1 -1
- package/dist/engine/modules/table/hooks.d.ts +1 -1
- package/dist/engine/modules/table-column/actions.d.ts +3 -3
- package/dist/engine/modules/table-column/generator.actions.d.ts +2 -2
- package/dist/engine/modules/table-column/history.d.ts +1 -1
- package/dist/engine/modules/table-column/hooks.d.ts +1 -1
- package/dist/engine/modules/table-column/utils/dataType.d.ts +2 -2
- package/dist/engine/replication-store.d.ts +2 -2
- package/dist/engine/rx-store.d.ts +10 -3
- package/dist/engine/shared-store.d.ts +2 -2
- package/dist/engine/state.d.ts +1 -1
- package/dist/engine/store-hooks.d.ts +1 -1
- package/dist/engine/store.d.ts +2 -2
- package/dist/engine/tag.d.ts +1 -1
- package/dist/engine.js +8 -8
- package/dist/erd-editor.js +8876 -8205
- package/dist/hooks/useKeyBindingMap.d.ts +1 -1
- package/dist/hooks/useUnmounted.d.ts +1 -1
- package/dist/index.d.ts +4 -5
- package/dist/{schemaGCService-Cyip5lJB.js → schemaGCService-tEI4URA5.js} +500 -499
- package/dist/services/schema-gc/procGC.d.ts +1 -1
- package/dist/services/schema-gc/schemaGCService.d.ts +1 -1
- package/dist/themes/radix-ui-theme.config.d.ts +1 -1
- package/dist/themes/radix-ui-theme.d.ts +2 -2
- package/dist/themes/tokens.d.ts +6 -0
- package/dist/utils/calcMemo.d.ts +1 -1
- package/dist/utils/calcTable.d.ts +3 -3
- package/dist/utils/collection/index.entity.d.ts +1 -1
- package/dist/utils/collection/indexColumn.entity.d.ts +1 -1
- package/dist/utils/collection/memo.entity.d.ts +1 -1
- package/dist/utils/collection/relationship.entity.d.ts +1 -1
- package/dist/utils/collection/table.entity.d.ts +1 -1
- package/dist/utils/collection/tableColumn.entity.d.ts +1 -1
- package/dist/utils/dragSelect.d.ts +1 -1
- package/dist/utils/draw-relationship/calc.d.ts +3 -3
- package/dist/utils/draw-relationship/draw.d.ts +3 -3
- package/dist/utils/draw-relationship/index.d.ts +1 -1
- package/dist/utils/draw-relationship/pathFinding.d.ts +2 -2
- package/dist/utils/draw-relationship/sort.d.ts +1 -1
- package/dist/utils/emitter.d.ts +15 -2
- package/dist/utils/file/importFile.d.ts +3 -1
- package/dist/utils/focus.d.ts +1 -1
- package/dist/utils/generator-code/csharp.d.ts +1 -1
- package/dist/utils/generator-code/graphql.d.ts +1 -1
- package/dist/utils/generator-code/index.d.ts +2 -2
- package/dist/utils/generator-code/java.d.ts +1 -1
- package/dist/utils/generator-code/jpa.d.ts +1 -1
- package/dist/utils/generator-code/kotlin.d.ts +1 -1
- package/dist/utils/generator-code/scala.d.ts +1 -1
- package/dist/utils/generator-code/typescript.d.ts +1 -1
- package/dist/utils/generator-code/utils.d.ts +2 -2
- package/dist/utils/globalEmitter.d.ts +4 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/internalEvents.d.ts +1 -1
- package/dist/utils/keyboard-shortcut/index.d.ts +1 -1
- package/dist/utils/rx-operators/fromCopy.d.ts +1 -1
- package/dist/utils/rx-operators/fromPaste.d.ts +1 -1
- package/dist/utils/schema-sql/MSSQL.d.ts +1 -1
- package/dist/utils/schema-sql/MariaDB.d.ts +1 -1
- package/dist/utils/schema-sql/MySQL.d.ts +1 -1
- package/dist/utils/schema-sql/Oracle.d.ts +1 -1
- package/dist/utils/schema-sql/PostgreSQL.d.ts +1 -1
- package/dist/utils/schema-sql/SQLite.d.ts +1 -1
- package/dist/utils/schema-sql/index.d.ts +2 -2
- package/dist/utils/schema-sql/utils.d.ts +4 -2
- package/dist/utils/schema-sql-parser/index.d.ts +1 -1
- package/dist/utils/table-clipboard/copy.d.ts +1 -1
- package/dist/utils/table-clipboard/index.d.ts +1 -1
- package/dist/utils/table-clipboard/paste.d.ts +2 -2
- package/package.json +14 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AppContext } from
|
|
2
|
-
import { KeyBindingName } from
|
|
1
|
+
import { AppContext } from '../../../appContext';
|
|
2
|
+
import { KeyBindingName } from '../../../../utils/keyboard-shortcut';
|
|
3
3
|
type Menu = {
|
|
4
4
|
iconName: string;
|
|
5
5
|
name: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC, Ref } from '@dineug/r-html';
|
|
2
|
+
import { AppContext } from '../../appContext';
|
|
3
|
+
export type TimeTravelProps = {
|
|
4
|
+
app: Ref<AppContext>;
|
|
5
|
+
onChange: (cursor: number) => void;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
};
|
|
8
|
+
declare const TimeTravel: FC<TimeTravelProps>;
|
|
9
|
+
export default TimeTravel;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const root: import("@dineug/r-html").CSSTemplateLiterals;
|
|
2
|
+
export declare const container: import("@dineug/r-html").CSSTemplateLiterals;
|
|
3
|
+
export declare const slider: import("@dineug/r-html").CSSTemplateLiterals;
|
|
4
|
+
export declare const vertical: import("@dineug/r-html").CSSTemplateLiterals;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ctx } from
|
|
1
|
+
import { Ctx } from '../../internal-types';
|
|
2
2
|
export declare function useErdShortcut(ctx: Ctx): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DatabaseVendor } from
|
|
2
|
-
import { SharedStore, SharedStoreConfig } from
|
|
3
|
-
import { ThemeOptions } from
|
|
4
|
-
import { Theme as ThemeType } from
|
|
5
|
-
import { KeyBindingMap, KeyBindingName } from
|
|
1
|
+
import { DatabaseVendor } from '../../constants/sql/database';
|
|
2
|
+
import { SharedStore, SharedStoreConfig } from '../../engine/shared-store';
|
|
3
|
+
import { ThemeOptions } from '../../themes/radix-ui-theme';
|
|
4
|
+
import { Theme as ThemeType } from '../../themes/tokens';
|
|
5
|
+
import { KeyBindingMap, KeyBindingName } from '../../utils/keyboard-shortcut';
|
|
6
6
|
declare global {
|
|
7
7
|
interface HTMLElementTagNameMap {
|
|
8
8
|
'erd-editor': ErdEditorElement;
|
|
@@ -28,4 +28,5 @@ export interface ErdEditorElement extends ErdEditorProps, HTMLElement {
|
|
|
28
28
|
getSharedStore: (config?: SharedStoreConfig & {
|
|
29
29
|
mouseTracker?: boolean;
|
|
30
30
|
}) => SharedStore;
|
|
31
|
+
setDiffValue: (value: string) => void;
|
|
31
32
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Ref } from '@dineug/r-html';
|
|
2
|
-
import { AppContext } from
|
|
3
|
-
import { Unsubscribe } from
|
|
4
|
-
import { ThemeOptions } from
|
|
5
|
-
import { Theme } from
|
|
2
|
+
import { AppContext } from '../appContext';
|
|
3
|
+
import { Unsubscribe } from '../../internal-types';
|
|
4
|
+
import { ThemeOptions } from '../../themes/radix-ui-theme';
|
|
5
|
+
import { Theme } from '../../themes/tokens';
|
|
6
6
|
import { ErdEditorElement, ErdEditorProps } from './ErdEditor';
|
|
7
7
|
type Props = {
|
|
8
8
|
props: ErdEditorProps;
|
|
@@ -10,7 +10,7 @@ type Props = {
|
|
|
10
10
|
app: AppContext;
|
|
11
11
|
root: Ref<HTMLDivElement>;
|
|
12
12
|
};
|
|
13
|
-
export declare function useErdEditorAttachElement({ props, ctx, app
|
|
13
|
+
export declare function useErdEditorAttachElement({ props, ctx, app, root }: Props): {
|
|
14
14
|
theme: Theme;
|
|
15
15
|
themeState: {
|
|
16
16
|
options: ThemeOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from '@dineug/r-html';
|
|
2
|
-
import { ShikiService } from
|
|
2
|
+
import { ShikiService } from '../../../services/shikiService';
|
|
3
3
|
export type CodeBlockProps = {
|
|
4
4
|
value: string;
|
|
5
5
|
lang: Parameters<ShikiService['codeToHtml']>[1]['lang'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValuesType } from
|
|
1
|
+
import { ValuesType } from '../../../internal-types';
|
|
2
2
|
export declare const BASE_64_ICON: {
|
|
3
3
|
/** @deprecated */
|
|
4
4
|
readonly ZeroOneN: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Q0RFRDI1RjI0ODY0MTFFN0JEQTA4NTA5QjY4NEI4MzAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Q0RFRDI1RjM0ODY0MTFFN0JEQTA4NTA5QjY4NEI4MzAiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpCQTE2QzQzRDQ4NjQxMUU3QkRBMDg1MDlCNjg0QjgzMCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpCQTE2QzQzRTQ4NjQxMUU3QkRBMDg1MDlCNjg0QjgzMCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PnTT5ywAAAJMSURBVHja7Fc9T2JBFB3MZq1IqLSgsRM6G6TcAmK7VNoRK4yBxE6XP/CsNxBohc6G5w+AoCU0aEWpBfAD4AeM55AZMjvvg2dClsRwkxOeb+7ce+6dmTPPmJRSbNP2xJZtR2DrBH6k0+ndEkSxBHAD9AGpMAJc4Lfh1zDGn4GLgHglNb8kqANhSKVSTiaTkY7jyMFgILWNx2PZ7XZluVyW8BkBJWA1PhwO+f7ZinUO9DmH8xl3XfIGnefzuQwzBsvlcjKIAH4PWAh9zCLq9Xp48mq16knGwASTmkaShULBQ0B1ZlSr1TyFtFqtwOS3xWLxH2eyZctUUOKVFTGRtslk4iHAODZZ/k2yLDKIwLsZjJ2gM3Bo+V0wieu6vsvCCu0ucS+RPHC1vId8kp+YrWRwvHsIWaosO7Nun3DDqn1yD+zr+RQiz3WYz+dXz6iCP82g84lKB4jxF0Rv0G7P+Gw2E6ha9Ho9/eoPsRJAucbUzl53Wi79NmwU25QSJuLx+ObugkqlInD+l8+oTsAny1aHxDlKJpOBgzhBot1ui8Vi4R3cwCY8jbIJeap4JOHvAmd6flDQj+l06ncMD/yktdPp+AoW59nEeBqUnjjAzyACd7YQUcnUxL7CyJZWk7QWIs6xdcLQg6cvSzETEl+Q4iyXkAWZBHU3/stlpLvKpaWkm0sb5Tq+19exqfvWdbyU1gjX8SGLIlnKNJ9jPGYRP0gugQLwS717Az6AB+DJ+CC5Vs8vSkEffeIdK79mVALf95swtvvXbEdg2wQ+BRgAvLABcxKvek4AAAAASUVORK5CYII=";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from '@dineug/r-html';
|
|
2
|
-
import { ValuesType } from
|
|
3
|
-
import { DragMove } from
|
|
2
|
+
import { ValuesType } from '../../../internal-types';
|
|
3
|
+
import { DragMove } from '../../../utils/globalEventObservable';
|
|
4
4
|
export declare const Cursor: {
|
|
5
5
|
readonly default: "default";
|
|
6
6
|
readonly ewResize: "ew-resize";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/html';
|
|
2
|
+
import { SliderProps } from './Slider';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
render: (args: SliderProps) => DocumentFragment;
|
|
6
|
+
argTypes: {
|
|
7
|
+
min: {
|
|
8
|
+
control: string;
|
|
9
|
+
};
|
|
10
|
+
max: {
|
|
11
|
+
control: string;
|
|
12
|
+
};
|
|
13
|
+
value: {
|
|
14
|
+
control: string;
|
|
15
|
+
};
|
|
16
|
+
onChange: {
|
|
17
|
+
action: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default meta;
|
|
22
|
+
type Story = StoryObj<SliderProps>;
|
|
23
|
+
export declare const Normal: Story;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const root: import("@dineug/r-html").CSSTemplateLiterals;
|
|
2
|
+
export declare const track: import("@dineug/r-html").CSSTemplateLiterals;
|
|
3
|
+
export declare const range: import("@dineug/r-html").CSSTemplateLiterals;
|
|
4
|
+
export declare const thumb: import("@dineug/r-html").CSSTemplateLiterals;
|
package/dist/constants/open.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { ValuesType } from
|
|
1
|
+
import { ValuesType } from '../internal-types';
|
|
2
2
|
export declare const Open: {
|
|
3
3
|
readonly automaticTablePlacement: "automaticTablePlacement";
|
|
4
4
|
readonly tableProperties: "tableProperties";
|
|
5
5
|
readonly search: "search";
|
|
6
6
|
readonly themeBuilder: "themeBuilder";
|
|
7
|
+
readonly diffViewer: "diffViewer";
|
|
8
|
+
readonly timeTravel: "timeTravel";
|
|
7
9
|
};
|
|
8
10
|
export type Open = ValuesType<typeof Open>;
|
package/dist/engine/actions.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { ActionMap as EditorActionMap } from
|
|
2
|
-
import { actions as editorActions } from
|
|
3
|
-
import { actions$ as editorActions$ } from
|
|
4
|
-
import { ActionMap as IndexActionMap } from
|
|
5
|
-
import { actions as indexActions } from
|
|
6
|
-
import { actions$ as indexActions$ } from
|
|
7
|
-
import { ActionMap as IndexColumnActionMap } from
|
|
8
|
-
import { actions as indexColumnActions } from
|
|
9
|
-
import { actions$ as indexColumnActions$ } from
|
|
10
|
-
import { ActionMap as MemoActionMap } from
|
|
11
|
-
import { actions as memoActions } from
|
|
12
|
-
import { actions$ as memoActions$ } from
|
|
13
|
-
import { ActionMap as RelationshipActionMap } from
|
|
14
|
-
import { actions as relationshipActions } from
|
|
15
|
-
import { actions$ as relationshipActions$ } from
|
|
16
|
-
import { ActionMap as SettingsActionMap } from
|
|
17
|
-
import { actions as settingsActions } from
|
|
18
|
-
import { actions$ as settingsActions$ } from
|
|
19
|
-
import { ActionMap as TableActionMap } from
|
|
20
|
-
import { actions as tableActions } from
|
|
21
|
-
import { actions$ as tableActions$ } from
|
|
22
|
-
import { ActionMap as TableColumnActionMap } from
|
|
23
|
-
import { actions as tableColumnActions } from
|
|
24
|
-
import { actions$ as tableColumnActions$ } from
|
|
1
|
+
import { ActionMap as EditorActionMap } from './modules/editor/actions';
|
|
2
|
+
import { actions as editorActions } from './modules/editor/atom.actions';
|
|
3
|
+
import { actions$ as editorActions$ } from './modules/editor/generator.actions';
|
|
4
|
+
import { ActionMap as IndexActionMap } from './modules/index/actions';
|
|
5
|
+
import { actions as indexActions } from './modules/index/atom.actions';
|
|
6
|
+
import { actions$ as indexActions$ } from './modules/index/generator.actions';
|
|
7
|
+
import { ActionMap as IndexColumnActionMap } from './modules/index-column/actions';
|
|
8
|
+
import { actions as indexColumnActions } from './modules/index-column/atom.actions';
|
|
9
|
+
import { actions$ as indexColumnActions$ } from './modules/index-column/generator.actions';
|
|
10
|
+
import { ActionMap as MemoActionMap } from './modules/memo/actions';
|
|
11
|
+
import { actions as memoActions } from './modules/memo/atom.actions';
|
|
12
|
+
import { actions$ as memoActions$ } from './modules/memo/generator.actions';
|
|
13
|
+
import { ActionMap as RelationshipActionMap } from './modules/relationship/actions';
|
|
14
|
+
import { actions as relationshipActions } from './modules/relationship/atom.actions';
|
|
15
|
+
import { actions$ as relationshipActions$ } from './modules/relationship/generator.actions';
|
|
16
|
+
import { ActionMap as SettingsActionMap } from './modules/settings/actions';
|
|
17
|
+
import { actions as settingsActions } from './modules/settings/atom.actions';
|
|
18
|
+
import { actions$ as settingsActions$ } from './modules/settings/generator.actions';
|
|
19
|
+
import { ActionMap as TableActionMap } from './modules/table/actions';
|
|
20
|
+
import { actions as tableActions } from './modules/table/atom.actions';
|
|
21
|
+
import { actions$ as tableActions$ } from './modules/table/generator.actions';
|
|
22
|
+
import { ActionMap as TableColumnActionMap } from './modules/table-column/actions';
|
|
23
|
+
import { actions as tableColumnActions } from './modules/table-column/atom.actions';
|
|
24
|
+
import { actions$ as tableColumnActions$ } from './modules/table-column/generator.actions';
|
|
25
25
|
export type Actions = typeof editorActions & typeof editorActions$ & typeof indexActions & typeof indexActions$ & typeof indexColumnActions & typeof indexColumnActions$ & typeof memoActions & typeof memoActions$ & typeof relationshipActions & typeof relationshipActions$ & typeof settingsActions & typeof settingsActions$ & typeof tableActions & typeof tableActions$ & typeof tableColumnActions & typeof tableColumnActions$;
|
|
26
26
|
export type RootActionMap = EditorActionMap & TableActionMap & TableColumnActionMap & MemoActionMap & RelationshipActionMap & SettingsActionMap & IndexActionMap & IndexColumnActionMap;
|
|
27
27
|
export type ActionType = keyof RootActionMap;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AnyAction, GeneratorActionCreator } from '@dineug/r-html';
|
|
2
|
-
import { EngineContext } from
|
|
3
|
-
import { RootState } from
|
|
2
|
+
import { EngineContext } from './context';
|
|
3
|
+
import { RootState } from './state';
|
|
4
4
|
export type GeneratorAction = GeneratorActionCreator<AnyAction, RootState, EngineContext>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnyAction } from '@dineug/r-html';
|
|
2
|
-
import { History } from
|
|
3
|
-
import { RootState } from
|
|
4
|
-
import { Store } from
|
|
2
|
+
import { History } from './history';
|
|
3
|
+
import { RootState } from './state';
|
|
4
|
+
import { Store } from './store';
|
|
5
5
|
export type PushUndoHistory = (undoActions: AnyAction[], action: AnyAction, state: RootState) => void;
|
|
6
6
|
export type PushStreamHistory = (undoActions: AnyAction[], redoActions: AnyAction[], actions: AnyAction[]) => void;
|
|
7
7
|
export declare const pushUndoHistoryMap: Record<string, PushUndoHistory>;
|
package/dist/engine/history.d.ts
CHANGED
|
@@ -1,20 +1,34 @@
|
|
|
1
|
+
import { AnyAction } from '@dineug/r-html';
|
|
2
|
+
type Dispatch = (actions: AnyAction[]) => void;
|
|
1
3
|
export type Command = {
|
|
2
|
-
undo(
|
|
3
|
-
redo(
|
|
4
|
+
undo: (dispatch: Dispatch) => void;
|
|
5
|
+
redo: (dispatch: Dispatch) => void;
|
|
4
6
|
};
|
|
5
7
|
export type CommandKey = keyof Command;
|
|
6
8
|
export type History = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
readonly cursor: number;
|
|
10
|
+
readonly size: number;
|
|
11
|
+
hasUndo: () => boolean;
|
|
12
|
+
hasRedo: () => boolean;
|
|
13
|
+
undo: () => void;
|
|
14
|
+
redo: () => void;
|
|
15
|
+
push: (command: Command) => void;
|
|
16
|
+
clear: () => void;
|
|
17
|
+
setLimit: (limit: number) => void;
|
|
18
|
+
clone: (options: HistoryOptions) => History;
|
|
14
19
|
};
|
|
15
20
|
type HasHistory = {
|
|
16
21
|
hasRedo: boolean;
|
|
17
22
|
hasUndo: boolean;
|
|
18
23
|
};
|
|
19
|
-
export
|
|
24
|
+
export type HistoryOptions = {
|
|
25
|
+
notify: (has: HasHistory) => void;
|
|
26
|
+
dispatch: Dispatch;
|
|
27
|
+
};
|
|
28
|
+
type HistoryState = {
|
|
29
|
+
commands: Command[];
|
|
30
|
+
cursor: number;
|
|
31
|
+
limit: number;
|
|
32
|
+
};
|
|
33
|
+
export declare function createHistory({ notify, dispatch }: HistoryOptions, initialState?: HistoryState): History;
|
|
20
34
|
export {};
|
package/dist/engine/hooks.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Channel, CoroutineCreator } from '@dineug/go';
|
|
2
2
|
import { type AnyAction, createAction } from '@dineug/r-html';
|
|
3
|
-
import type { EngineContext } from
|
|
4
|
-
import type { RootState } from
|
|
3
|
+
import type { EngineContext } from './context';
|
|
4
|
+
import type { RootState } from './state';
|
|
5
5
|
type ActionCreator = ReturnType<typeof createAction<any>>;
|
|
6
6
|
export type CO = (channel: Channel<AnyAction>, state: RootState, ctx: EngineContext) => ReturnType<CoroutineCreator>;
|
|
7
7
|
export type Hook = [Array<ActionCreator | string>, CO];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Reducer } from '@dineug/r-html';
|
|
2
|
-
import { EngineContext } from
|
|
3
|
-
import { RootState } from
|
|
4
|
-
import { ValuesType } from
|
|
2
|
+
import { EngineContext } from '../../context';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { ValuesType } from '../../../internal-types';
|
|
5
5
|
import { FocusType, MoveKey, SelectType } from './state';
|
|
6
6
|
export declare const ActionType: {
|
|
7
7
|
readonly changeHasHistory: "editor.changeHasHistory";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GeneratorAction } from
|
|
2
|
-
import { Rect } from
|
|
1
|
+
import { GeneratorAction } from '../../generator.actions';
|
|
2
|
+
import { Rect } from '../../../utils/dragSelect';
|
|
3
3
|
import { MoveKey } from './state';
|
|
4
4
|
export declare const loadJsonAction$: (value: string) => GeneratorAction;
|
|
5
5
|
export declare const initialLoadJsonAction$: (value: string) => GeneratorAction;
|