@squeed/flow-sdk 2.0.24 → 2.0.26

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
@@ -51,7 +51,9 @@ export declare type BackgroundVariant = BackgroundPattern | "transparent";
51
51
  export declare function bindSqueedCallbacks(json: SqueedJson, compiledEdges: FlowDiagramEdge[], callbacks: FlowDiagramCallbacks, onJsonChange?: (json: SqueedJson, change: SqueedChange) => void, formSchema?: FormSchema): FlowDiagramCallbacks;
52
52
 
53
53
  export declare const BottomBar: MemoExoticComponent< {
54
- (): JSX_2.Element;
54
+ ({ nodeGridControlsTarget, }?: {
55
+ nodeGridControlsTarget?: HTMLElement | null;
56
+ }): JSX_2.Element;
55
57
  displayName: string;
56
58
  }>;
57
59
 
@@ -442,6 +444,12 @@ export declare interface FlowDiagramConfig {
442
444
  minZoom?: number;
443
445
  nodeGridSpacing?: "collision" | "layout";
444
446
  nodeGridConnections?: boolean;
447
+ nodeGrid?: {
448
+ enabled: boolean;
449
+ options: NodeGridOptions;
450
+ order?: string[];
451
+ };
452
+ bottomBarCollision?: boolean;
445
453
  bottomBarFill?: boolean;
446
454
  /** Max zoom level (default: 1.5) */
447
455
  maxZoom?: number;
@@ -882,7 +890,7 @@ export declare type LayoutAlgorithm = "dagre" | "elk" | "tidytree" | "concentric
882
890
 
883
891
  export declare const LIGHT_BLACK = "#c6c6c6";
884
892
 
885
- export declare function LoadingBorder({ active, label, radius }: {
893
+ export declare function LoadingBorder({ active, label, radius, }: {
886
894
  active?: boolean;
887
895
  label?: string;
888
896
  radius?: number;
@@ -1008,9 +1016,10 @@ export declare interface NodeSelectionModifiers {
1008
1016
  export declare type NodeSpacing = number | "compact" | "normal" | "spacious";
1009
1017
 
1010
1018
  /** Bottom-bar contents while one or more nodes are selected */
1011
- export declare function NodeTools({ ids, onClose, }: {
1019
+ export declare function NodeTools({ ids, onClose, afterLabel, }: {
1012
1020
  ids: string[];
1013
1021
  onClose: () => void;
1022
+ afterLabel?: ReactNode;
1014
1023
  }): JSX_2.Element;
1015
1024
 
1016
1025
  export declare type NodeTypeView = Exclude<(typeof NODE_TYPE_VIEWS)[number], "">;
package/dist/index.d.ts CHANGED
@@ -51,7 +51,9 @@ export declare type BackgroundVariant = BackgroundPattern | "transparent";
51
51
  export declare function bindSqueedCallbacks(json: SqueedJson, compiledEdges: FlowDiagramEdge[], callbacks: FlowDiagramCallbacks, onJsonChange?: (json: SqueedJson, change: SqueedChange) => void, formSchema?: FormSchema): FlowDiagramCallbacks;
52
52
 
53
53
  export declare const BottomBar: MemoExoticComponent< {
54
- (): JSX_2.Element;
54
+ ({ nodeGridControlsTarget, }?: {
55
+ nodeGridControlsTarget?: HTMLElement | null;
56
+ }): JSX_2.Element;
55
57
  displayName: string;
56
58
  }>;
57
59
 
@@ -442,6 +444,12 @@ export declare interface FlowDiagramConfig {
442
444
  minZoom?: number;
443
445
  nodeGridSpacing?: "collision" | "layout";
444
446
  nodeGridConnections?: boolean;
447
+ nodeGrid?: {
448
+ enabled: boolean;
449
+ options: NodeGridOptions;
450
+ order?: string[];
451
+ };
452
+ bottomBarCollision?: boolean;
445
453
  bottomBarFill?: boolean;
446
454
  /** Max zoom level (default: 1.5) */
447
455
  maxZoom?: number;
@@ -882,7 +890,7 @@ export declare type LayoutAlgorithm = "dagre" | "elk" | "tidytree" | "concentric
882
890
 
883
891
  export declare const LIGHT_BLACK = "#c6c6c6";
884
892
 
885
- export declare function LoadingBorder({ active, label, radius }: {
893
+ export declare function LoadingBorder({ active, label, radius, }: {
886
894
  active?: boolean;
887
895
  label?: string;
888
896
  radius?: number;
@@ -1008,9 +1016,10 @@ export declare interface NodeSelectionModifiers {
1008
1016
  export declare type NodeSpacing = number | "compact" | "normal" | "spacious";
1009
1017
 
1010
1018
  /** Bottom-bar contents while one or more nodes are selected */
1011
- export declare function NodeTools({ ids, onClose, }: {
1019
+ export declare function NodeTools({ ids, onClose, afterLabel, }: {
1012
1020
  ids: string[];
1013
1021
  onClose: () => void;
1022
+ afterLabel?: ReactNode;
1014
1023
  }): JSX_2.Element;
1015
1024
 
1016
1025
  export declare type NodeTypeView = Exclude<(typeof NODE_TYPE_VIEWS)[number], "">;