@squeed/flow-sdk 2.0.7 → 2.0.8

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
@@ -275,6 +275,7 @@ export declare function FlowDiagram({ loading, loader, ...props }: FlowDiagramPr
275
275
 
276
276
  /** Event callbacks for the flow diagram */
277
277
  export declare interface FlowDiagramCallbacks {
278
+ onGraphEdgeColorChange?: (color: string) => void;
278
279
  onAllNodesIconLabelChange?: (enabled: boolean) => void;
279
280
  onNodeCreateRequest?: (request: FlowNodeCreationRequest) => boolean;
280
281
  onFormSchemaChange?: (schema: FormSchema | undefined) => void;
@@ -468,6 +469,7 @@ export declare interface FlowDiagramContextValue {
468
469
  backgroundSelected: boolean;
469
470
  setBackgroundSelected: (selected: boolean) => void;
470
471
  edgeColor: string;
472
+ setEdgeColor: (color: string) => void;
471
473
  colorMode: "light" | "dark";
472
474
  direction: string;
473
475
  nodeAlignment: NodeAlignment;
@@ -512,7 +514,7 @@ export declare interface FlowDiagramEdge {
512
514
  };
513
515
  label?: string;
514
516
  icon?: string;
515
- /** Chakra token or hex; overrides the theme/edgeColor line color for this edge */
517
+ /** Chakra token or hex; overrides the default unless a graph-wide edgeColor is selected. */
516
518
  color?: string;
517
519
  isInverted?: boolean;
518
520
  isEdgeAnimated?: boolean;
package/dist/index.d.ts CHANGED
@@ -275,6 +275,7 @@ export declare function FlowDiagram({ loading, loader, ...props }: FlowDiagramPr
275
275
 
276
276
  /** Event callbacks for the flow diagram */
277
277
  export declare interface FlowDiagramCallbacks {
278
+ onGraphEdgeColorChange?: (color: string) => void;
278
279
  onAllNodesIconLabelChange?: (enabled: boolean) => void;
279
280
  onNodeCreateRequest?: (request: FlowNodeCreationRequest) => boolean;
280
281
  onFormSchemaChange?: (schema: FormSchema | undefined) => void;
@@ -468,6 +469,7 @@ export declare interface FlowDiagramContextValue {
468
469
  backgroundSelected: boolean;
469
470
  setBackgroundSelected: (selected: boolean) => void;
470
471
  edgeColor: string;
472
+ setEdgeColor: (color: string) => void;
471
473
  colorMode: "light" | "dark";
472
474
  direction: string;
473
475
  nodeAlignment: NodeAlignment;
@@ -512,7 +514,7 @@ export declare interface FlowDiagramEdge {
512
514
  };
513
515
  label?: string;
514
516
  icon?: string;
515
- /** Chakra token or hex; overrides the theme/edgeColor line color for this edge */
517
+ /** Chakra token or hex; overrides the default unless a graph-wide edgeColor is selected. */
516
518
  color?: string;
517
519
  isInverted?: boolean;
518
520
  isEdgeAnimated?: boolean;