@dineug/erd-editor 3.1.7 → 3.2.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 +0 -427
- package/dist/components/appContext.d.ts +1 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +0 -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-editor/ErdEditor.d.ts +1 -0
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +1 -1
- package/dist/constants/layout.d.ts +1 -0
- package/dist/constants/open.d.ts +1 -0
- package/dist/engine.js +9 -9
- package/dist/erd-editor.js +8581 -8122
- package/dist/{schemaGCService-EsSIGYdr.js → schemaGCService-8ppNbFYF.js} +1773 -1752
- package/dist/themes/tokens.d.ts +6 -0
- package/dist/utils/emitter.d.ts +13 -0
- package/dist/utils/file/importFile.d.ts +2 -0
- package/dist/utils/globalEmitter.d.ts +3 -0
- package/dist/utils/schema-sql/utils.d.ts +3 -1
- package/package.json +1 -1
package/dist/themes/tokens.d.ts
CHANGED
|
@@ -58,6 +58,12 @@ export type Theme = {
|
|
|
58
58
|
keyPK: string;
|
|
59
59
|
keyFK: string;
|
|
60
60
|
keyPFK: string;
|
|
61
|
+
diffInsertBackground: string;
|
|
62
|
+
diffDeleteBackground: string;
|
|
63
|
+
diffCrossBackground: string;
|
|
64
|
+
diffInsertForeground: string;
|
|
65
|
+
diffDeleteForeground: string;
|
|
66
|
+
diffCrossForeground: string;
|
|
61
67
|
};
|
|
62
68
|
export declare const ThemeTokens: ReadonlyArray<keyof Theme>;
|
|
63
69
|
export declare const themeToTokensString: (theme: Theme) => string;
|
package/dist/utils/emitter.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ declare const InternalActionType: {
|
|
|
16
16
|
readonly setThemeOptions: "setThemeOptions";
|
|
17
17
|
readonly mouseTrackerStart: "mouseTrackerStart";
|
|
18
18
|
readonly mouseTrackerEnd: "mouseTrackerEnd";
|
|
19
|
+
readonly openDiffViewer: "openDiffViewer";
|
|
19
20
|
};
|
|
20
21
|
type InternalActionType = ValuesType<typeof InternalActionType>;
|
|
21
22
|
type InternalActionMap = {
|
|
@@ -46,6 +47,9 @@ type InternalActionMap = {
|
|
|
46
47
|
[InternalActionType.setThemeOptions]: Partial<ThemeOptions>;
|
|
47
48
|
[InternalActionType.mouseTrackerStart]: void;
|
|
48
49
|
[InternalActionType.mouseTrackerEnd]: void;
|
|
50
|
+
[InternalActionType.openDiffViewer]: {
|
|
51
|
+
value: string;
|
|
52
|
+
};
|
|
49
53
|
};
|
|
50
54
|
type Reducer<K extends keyof M, M> = (action: Action<K, M>) => void;
|
|
51
55
|
type ReducerRecord<K extends keyof M, M> = {
|
|
@@ -153,4 +157,13 @@ export declare const mouseTrackerEndAction: {
|
|
|
153
157
|
toString(): string;
|
|
154
158
|
type: string;
|
|
155
159
|
};
|
|
160
|
+
export declare const openDiffViewerAction: {
|
|
161
|
+
(payload: {
|
|
162
|
+
value: string;
|
|
163
|
+
}): AnyAction<{
|
|
164
|
+
value: string;
|
|
165
|
+
}>;
|
|
166
|
+
toString(): string;
|
|
167
|
+
type: string;
|
|
168
|
+
};
|
|
156
169
|
export {};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { AppContext } from "../../components/appContext";
|
|
2
2
|
type ImportOptions = {
|
|
3
3
|
type: 'json' | 'sql';
|
|
4
|
+
op: 'set' | 'diff';
|
|
4
5
|
accept: string;
|
|
5
6
|
};
|
|
6
7
|
type ImportFileCallback = (options: ImportOptions) => void;
|
|
7
8
|
export declare function setImportFileCallback(callback: ImportFileCallback | null): void;
|
|
8
9
|
export declare function importJSON({ store, emitter }: AppContext): void;
|
|
9
10
|
export declare function importSchemaSQL({ store, emitter }: AppContext): void;
|
|
11
|
+
export declare function importDiffJSON({ emitter }: AppContext): void;
|
|
10
12
|
export {};
|
|
@@ -45,7 +45,9 @@ export declare function primaryKeyColumns(columns: Column[]): Column[];
|
|
|
45
45
|
export declare function unique(columns: Column[]): boolean;
|
|
46
46
|
export declare function uniqueColumns(columns: Column[]): Column[];
|
|
47
47
|
export declare function getBracket(bracketType: number): string;
|
|
48
|
-
export declare function orderByNameASC
|
|
48
|
+
export declare function orderByNameASC<T extends {
|
|
49
|
+
name: string;
|
|
50
|
+
}>(a: T, b: T): 1 | -1 | 0;
|
|
49
51
|
export declare function autoName<T extends {
|
|
50
52
|
id: string;
|
|
51
53
|
name: string;
|