flow-mindmap 0.1.1-beta.2 → 0.2.1

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.
@@ -44,10 +44,16 @@ export interface LayoutNode {
44
44
  note?: {
45
45
  text: string;
46
46
  };
47
+ /** Mirrored from MindMapNode.richContent. Read by the renderer
48
+ * to show a small framed body under the node title (code / list /
49
+ * table / paragraph). Undefined means the node is plain text
50
+ * only — the default behaviour, unchanged from before this
51
+ * field was introduced. */
52
+ richContent?: RichContent;
47
53
  children: LayoutNode[];
48
54
  parent: LayoutNode | null;
49
55
  }
50
- import type { MindMapNode, MindMapImage } from '../types';
56
+ import type { MindMapNode, MindMapImage, RichContent } from '../types';
51
57
  /** Return the rendered font size for a node at the given depth, scaled
52
58
  * by the host's `theme.fontSize` (default 14). The base table is
53
59
  * tuned at 14px; values scale linearly so a 30px theme produces
package/dist/entry.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import MindMap from './components/MindMap.vue';
2
2
  import type { App } from 'vue';
3
- import type { MindMapNode, MindMapOptions, MindMapTheme, MindMapExpose, MindMapSettings, NodeStyle, LineStyle, LayoutMode, BranchPalette, BranchPaletteId } from './types';
4
- import { uid, clone, findNode, findParent, removeNode, addChild, addSibling, markdownToMindMap, mindMapToMarkdown } from './tree';
5
- export type { MindMapNode, MindMapOptions, MindMapTheme, MindMapExpose, MindMapSettings, NodeStyle, LineStyle, LayoutMode, BranchPalette, BranchPaletteId };
3
+ import type { MindMapNode, MindMapOptions, MindMapTheme, MindMapExpose, MindMapSettings, NodeStyle, LineStyle, LayoutMode, BranchPalette, BranchPaletteId, RichContent } from './types';
4
+ import { uid, clone, findNode, findParent, removeNode, addChild, addSibling, markdownToMindMap, mindMapToMarkdown, markdownToRichMindMap, richBlockToMarkdown } from './tree';
5
+ export type { MindMapNode, MindMapOptions, MindMapTheme, MindMapExpose, MindMapSettings, NodeStyle, LineStyle, LayoutMode, BranchPalette, BranchPaletteId, RichContent };
6
6
  export { MindMap };
7
- export { uid, clone, findNode, findParent, removeNode, addChild, addSibling, markdownToMindMap, mindMapToMarkdown };
7
+ export { uid, clone, findNode, findParent, removeNode, addChild, addSibling, markdownToMindMap, mindMapToMarkdown, markdownToRichMindMap, richBlockToMarkdown };
8
8
  declare const plugin: {
9
9
  install(app: App): void;
10
10
  };