@dineug/erd-editor 3.0.4 → 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 CHANGED
@@ -33,7 +33,7 @@ const editor = document.createElement('erd-editor');
33
33
  const editor = document.createElement('erd-editor');
34
34
  </script>
35
35
  <!-- or -->
36
- <script src="https://cdn.jsdelivr.net/npm/@dineug/erd-editor/dist/erd-editor.min.js"></script>
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,6 +344,6 @@ editor.setTheme({...});
343
344
 
344
345
  ## Document
345
346
 
346
- - [vscode extension](https://marketplace.visualstudio.com/items?itemName=dineug.vuerd-vscode)
347
+ - [Web App](https://erd-editor.io)
348
+ - [VSCode Extension](https://marketplace.visualstudio.com/items?itemName=dineug.vuerd-vscode)
347
349
  - [Editing Guide](https://docs.erd-editor.io/docs/category/guides)
348
- - [Import Schema SQL Support Syntax](https://github.com/dineug/erd-editor/blob/main/packages/schema-sql-parser/src/schema_sql_test_case.md)
@@ -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 {};
@@ -0,0 +1,2 @@
1
+ export { type Actions, actions } from './actions';
2
+ export { createRxStore, type RxStore } from './rx-store';
package/dist/engine.js ADDED
@@ -0,0 +1,11 @@
1
+ import { E as o, C as r } from "./index-dVzXEMES.js";
2
+ /*!
3
+ * @dineug/erd-editor
4
+ * @version 3.0.5 | Thu Dec 28 2023
5
+ * @author SeungHwan-Lee <dineug2@gmail.com>
6
+ * @license MIT
7
+ */
8
+ export {
9
+ o as actions,
10
+ r as createRxStore
11
+ };