flow-mindmap 0.5.7 → 0.5.9

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.
@@ -8,6 +8,8 @@ type __VLS_Props = {
8
8
  collapsedIds?: Set<string>;
9
9
  /** Read-only — disables editing / add / drag. Default false. */
10
10
  readonly?: boolean;
11
+ /** Show sibling index (1., 2., …) next to each row. Default false. */
12
+ showIndex?: boolean;
11
13
  };
12
14
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
13
15
  select: (node: MindMapNode) => any;
@@ -41,5 +43,6 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
41
43
  selectedId: string | null;
42
44
  collapsedIds: Set<string>;
43
45
  readonly: boolean;
46
+ showIndex: boolean;
44
47
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
48
  export default _default;
@@ -47,6 +47,13 @@ export interface KeyboardOptions {
47
47
  * dy = +1 → select next sibling
48
48
  */
49
49
  onNavigate: (dx: number, dy: number) => void;
50
+ /** Move the currently selected node one slot up (dy=-1) or down
51
+ * (dy=+1) among its siblings. The host is responsible for
52
+ * mapping the visual direction to the correct data-level
53
+ * before/after, taking into account the left/right side
54
+ * reversal of root children. No-op when the node is the root
55
+ * or already at the boundary. */
56
+ onMoveSibling: (dy: number) => void;
50
57
  onSelectRoot: () => void;
51
58
  }
52
59
  export declare function useKeyboard(opts: KeyboardOptions): void;