flow-mindmap 0.3.2 → 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.
@@ -10,8 +10,12 @@ type __VLS_Props = {
10
10
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
11
11
  close: () => any;
12
12
  openSettings: () => any;
13
+ openData: () => any;
14
+ openImport: (mode: "markdown" | "txt" | "json") => any;
13
15
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
16
  onClose?: (() => any) | undefined;
15
17
  onOpenSettings?: (() => any) | undefined;
18
+ onOpenData?: (() => any) | undefined;
19
+ onOpenImport?: ((mode: "markdown" | "txt" | "json") => any) | undefined;
16
20
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
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;
@@ -0,0 +1,25 @@
1
+ type __VLS_Props = {
2
+ value: unknown;
3
+ /** Initial key for this node; empty string when rendering the root. */
4
+ keyName?: string;
5
+ /** When true, the node is at the root of the tree. */
6
+ isRoot?: boolean;
7
+ /** Dot-separated path from the root. Auto-derived when nested. */
8
+ path?: string;
9
+ /** Current depth in the tree (root = 0). */
10
+ depth?: number;
11
+ /** Current filter query (case-insensitive substring). */
12
+ query?: string;
13
+ /** Pre-computed set of collapsed paths (so the parent's state survives
14
+ * across re-renders when a different subtree is expanded). */
15
+ collapsedPaths?: Set<string>;
16
+ };
17
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
18
+ path: string;
19
+ depth: number;
20
+ isRoot: boolean;
21
+ keyName: string;
22
+ query: string;
23
+ collapsedPaths: Set<string>;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ export default _default;
@@ -77,12 +77,16 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {
77
77
  "edit-note": (nodeId: string) => any;
78
78
  markdownChange: (markdown: string) => any;
79
79
  "canvas-settings": () => any;
80
+ "canvas-data": () => any;
81
+ "canvas-import": (mode: "markdown" | "txt" | "json") => any;
80
82
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
81
83
  onSelect?: ((node: MindMapNode | null) => any) | undefined;
82
84
  onChange?: ((data: MindMapNode) => any) | undefined;
83
85
  "onEdit-note"?: ((nodeId: string) => any) | undefined;
84
86
  onMarkdownChange?: ((markdown: string) => any) | undefined;
85
87
  "onCanvas-settings"?: (() => any) | undefined;
88
+ "onCanvas-data"?: (() => any) | undefined;
89
+ "onCanvas-import"?: ((mode: "markdown" | "txt" | "json") => any) | undefined;
86
90
  }>, {
87
91
  previewMode: boolean;
88
92
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;