@squeed/flow-sdk 2.0.48 → 2.0.50

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/dist/index.d.cts CHANGED
@@ -514,7 +514,13 @@ export declare interface FlowDiagramConfig {
514
514
  /** Built-in node/edge selection toolbars (bottom bar swaps to them on select). `false` disables. */
515
515
  selectionToolbar?: SelectionToolbarConfig | false;
516
516
  /** Custom views: objectView, arrayView, text, parentContainer; jsxContent receives JsxContentRendererProps. */
517
- customViews?: Record<string, React.ComponentType<any>>;
517
+ /**
518
+ * Views keyed by node type. A view that only wraps the default rendering can
519
+ * declare `wrapsDefault` so the toolbar keeps its type-view switch.
520
+ */
521
+ customViews?: Record<string, React.ComponentType<any> & {
522
+ wrapsDefault?: boolean;
523
+ }>;
518
524
  /** Disable built-in keyboard shortcuts (Z/M/D) when the consumer handles its own */
519
525
  disableKeyboardShortcuts?: boolean;
520
526
  /** Externally controlled zoom mode (overrides internal state when provided) */
@@ -1039,12 +1045,14 @@ export declare interface NodeGridOptions extends NodeCollisionOptions {
1039
1045
  padding?: number;
1040
1046
  }
1041
1047
 
1042
- export declare function NodeIconPicker({ nodeId, edgeId, value, open: requestedOpen, onOpenChange, }: {
1048
+ export declare function NodeIconPicker({ nodeId, edgeId, value, open: requestedOpen, onOpenChange, onSelect, }: {
1043
1049
  nodeId?: string;
1044
1050
  edgeId?: string;
1045
1051
  value?: string;
1046
1052
  open?: boolean;
1047
1053
  onOpenChange?: (open: boolean) => void;
1054
+ /** Reports the chosen icon instead of writing it to a node or edge. */
1055
+ onSelect?: (icon: string) => void;
1048
1056
  }): JSX_2.Element;
1049
1057
 
1050
1058
  /** Actions shown in the hover overlay above nodes */
package/dist/index.d.ts CHANGED
@@ -514,7 +514,13 @@ export declare interface FlowDiagramConfig {
514
514
  /** Built-in node/edge selection toolbars (bottom bar swaps to them on select). `false` disables. */
515
515
  selectionToolbar?: SelectionToolbarConfig | false;
516
516
  /** Custom views: objectView, arrayView, text, parentContainer; jsxContent receives JsxContentRendererProps. */
517
- customViews?: Record<string, React.ComponentType<any>>;
517
+ /**
518
+ * Views keyed by node type. A view that only wraps the default rendering can
519
+ * declare `wrapsDefault` so the toolbar keeps its type-view switch.
520
+ */
521
+ customViews?: Record<string, React.ComponentType<any> & {
522
+ wrapsDefault?: boolean;
523
+ }>;
518
524
  /** Disable built-in keyboard shortcuts (Z/M/D) when the consumer handles its own */
519
525
  disableKeyboardShortcuts?: boolean;
520
526
  /** Externally controlled zoom mode (overrides internal state when provided) */
@@ -1039,12 +1045,14 @@ export declare interface NodeGridOptions extends NodeCollisionOptions {
1039
1045
  padding?: number;
1040
1046
  }
1041
1047
 
1042
- export declare function NodeIconPicker({ nodeId, edgeId, value, open: requestedOpen, onOpenChange, }: {
1048
+ export declare function NodeIconPicker({ nodeId, edgeId, value, open: requestedOpen, onOpenChange, onSelect, }: {
1043
1049
  nodeId?: string;
1044
1050
  edgeId?: string;
1045
1051
  value?: string;
1046
1052
  open?: boolean;
1047
1053
  onOpenChange?: (open: boolean) => void;
1054
+ /** Reports the chosen icon instead of writing it to a node or edge. */
1055
+ onSelect?: (icon: string) => void;
1048
1056
  }): JSX_2.Element;
1049
1057
 
1050
1058
  /** Actions shown in the hover overlay above nodes */