flow-mindmap 0.3.3 → 0.3.4

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.
@@ -4,9 +4,6 @@ type __VLS_Props = {
4
4
  /** Cursor Y in viewport coords (clientY). */
5
5
  y: number;
6
6
  /** Container the menu should not escape. Used to clamp the
7
-
8
-
9
-
10
7
  * position so the menu stays on-screen. */
11
8
  container: HTMLElement | null;
12
9
  };
@@ -14,9 +11,11 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
14
11
  close: () => any;
15
12
  openSettings: () => any;
16
13
  openData: () => any;
14
+ openImport: (mode: "markdown" | "txt" | "json") => any;
17
15
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
16
  onClose?: (() => any) | undefined;
19
17
  onOpenSettings?: (() => any) | undefined;
20
18
  onOpenData?: (() => any) | undefined;
19
+ onOpenImport?: ((mode: "markdown" | "txt" | "json") => any) | undefined;
21
20
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
21
  export default _default;
@@ -1,10 +1,19 @@
1
1
  import type { MindMapNode } from '../types';
2
2
  type __VLS_Props = {
3
3
  data: MindMapNode;
4
+ /** Optional hint from the parent: when set, the paste panel
5
+ * auto-opens on next mount with this mode preselected. Used
6
+ * by the canvas right-click 'Import' submenu. Cleared by
7
+ * the parent after we emit 'consumed-mode'. */
8
+ pendingMode?: 'json' | 'markdown' | 'txt' | null;
4
9
  };
5
10
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
11
  import: (data: MindMapNode) => any;
12
+ "consumed-mode": () => any;
7
13
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
14
  onImport?: ((data: MindMapNode) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ "onConsumed-mode"?: (() => any) | undefined;
16
+ }>, {
17
+ pendingMode: "json" | "markdown" | "txt" | null;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
19
  export default _default;
@@ -78,6 +78,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {
78
78
  markdownChange: (markdown: string) => any;
79
79
  "canvas-settings": () => any;
80
80
  "canvas-data": () => any;
81
+ "canvas-import": (mode: "markdown" | "txt" | "json") => any;
81
82
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
82
83
  onSelect?: ((node: MindMapNode | null) => any) | undefined;
83
84
  onChange?: ((data: MindMapNode) => any) | undefined;
@@ -85,6 +86,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {
85
86
  onMarkdownChange?: ((markdown: string) => any) | undefined;
86
87
  "onCanvas-settings"?: (() => any) | undefined;
87
88
  "onCanvas-data"?: (() => any) | undefined;
89
+ "onCanvas-import"?: ((mode: "markdown" | "txt" | "json") => any) | undefined;
88
90
  }>, {
89
91
  previewMode: boolean;
90
92
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;