@dineug/erd-editor 3.0.3 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/dist/components/erd/canvas/Canvas.d.ts +1 -0
- package/dist/components/erd-editor/ErdEditor.d.ts +1 -0
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +3 -1
- package/dist/engine/index.d.ts +2 -0
- package/dist/engine.js +11 -0
- package/dist/erd-editor.js +12608 -22914
- package/dist/index-dVzXEMES.js +10581 -0
- package/dist/utils/globalEventObservable.d.ts +1 -0
- package/package.json +14 -13
- package/dist/components/visualization/table/Table.styles.d.ts +0 -1
- package/dist/erd-editor.min.js +0 -7131
- /package/dist/{workers → services/schema-gc}/schemaGC.shared-worker.d.ts +0 -0
- /package/dist/{workers → services/schema-gc}/schemaGC.worker.d.ts +0 -0
package/README.md
CHANGED
|
@@ -12,8 +12,6 @@ npm install @dineug/erd-editor
|
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
|
-
### javascript
|
|
16
|
-
|
|
17
15
|
```js
|
|
18
16
|
import '@dineug/erd-editor';
|
|
19
17
|
|
|
@@ -34,6 +32,8 @@ const editor = document.createElement('erd-editor');
|
|
|
34
32
|
|
|
35
33
|
const editor = document.createElement('erd-editor');
|
|
36
34
|
</script>
|
|
35
|
+
<!-- or -->
|
|
36
|
+
<script type="module" src="https://esm.run/@dineug/erd-editor"></script>
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
## ErdEditorElement
|
|
@@ -47,6 +47,7 @@ interface ErdEditorElement extends HTMLElement {
|
|
|
47
47
|
focus: () => void;
|
|
48
48
|
blur: () => void;
|
|
49
49
|
clear: () => void;
|
|
50
|
+
destroy: () => void;
|
|
50
51
|
setInitialValue: (value: string) => void;
|
|
51
52
|
setPresetTheme: (themeOptions: Partial<ThemeOptions>) => void;
|
|
52
53
|
setTheme: (theme: Partial<Theme>) => void;
|
|
@@ -343,5 +344,6 @@ editor.setTheme({...});
|
|
|
343
344
|
|
|
344
345
|
## Document
|
|
345
346
|
|
|
346
|
-
- [
|
|
347
|
-
- [
|
|
347
|
+
- [Web App](https://erd-editor.io)
|
|
348
|
+
- [VSCode Extension](https://marketplace.visualstudio.com/items?itemName=dineug.vuerd-vscode)
|
|
349
|
+
- [Editing Guide](https://docs.erd-editor.io/docs/category/guides)
|
|
@@ -17,6 +17,7 @@ export interface ErdEditorElement extends ErdEditorProps, HTMLElement {
|
|
|
17
17
|
focus: () => void;
|
|
18
18
|
blur: () => void;
|
|
19
19
|
clear: () => void;
|
|
20
|
+
destroy: () => void;
|
|
20
21
|
setInitialValue: (value: string) => void;
|
|
21
22
|
setPresetTheme: (themeOptions: Partial<ThemeOptions>) => void;
|
|
22
23
|
setTheme: (theme: Partial<ThemeType>) => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Ref } from '@dineug/r-html';
|
|
2
2
|
import { AppContext } from "../appContext";
|
|
3
|
+
import { Unsubscribe } from "../../internal-types";
|
|
3
4
|
import { ThemeOptions } from "../../themes/radix-ui-theme";
|
|
4
5
|
import { Theme } from "../../themes/tokens";
|
|
5
6
|
import { ErdEditorElement, ErdEditorProps } from './ErdEditor';
|
|
@@ -9,13 +10,14 @@ type Props = {
|
|
|
9
10
|
app: AppContext;
|
|
10
11
|
root: Ref<HTMLDivElement>;
|
|
11
12
|
};
|
|
12
|
-
export declare function useErdEditorAttachElement({ props, ctx, app: { store, keyBindingMap, emitter }, root, }: Props): {
|
|
13
|
+
export declare function useErdEditorAttachElement({ props, ctx, app: { store, keyBindingMap, emitter, shortcut$, keydown$ }, root, }: Props): {
|
|
13
14
|
theme: Theme;
|
|
14
15
|
themeState: {
|
|
15
16
|
options: ThemeOptions;
|
|
16
17
|
preset: Theme;
|
|
17
18
|
custom: Partial<Theme>;
|
|
18
19
|
};
|
|
20
|
+
destroySet: Set<Unsubscribe>;
|
|
19
21
|
hasDarkMode: () => boolean;
|
|
20
22
|
};
|
|
21
23
|
export {};
|
package/dist/engine.js
ADDED