@squeed/flow-sdk 2.0.39 → 2.0.40

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
@@ -348,6 +348,8 @@ export declare interface FlowDiagramCallbacks {
348
348
  onNodeLabelChange?: (nodeId: string, newLabel: string) => void;
349
349
  onNodeSubtitleChange?: (nodeId: string, subtitle: string) => void;
350
350
  onNodeContentChange?: (nodeId: string, content: NodeContent) => void;
351
+ /** Fires when a node's content format changes (markdown | html | jsx) */
352
+ onNodeContentFormatChange?: (nodeId: string, format: ContentFormat) => void;
351
353
  onNodeDimensionChange?: (nodeId: string, dimension: "width" | "height", value: number | undefined) => void;
352
354
  onFixedNodePositionsChange?: (positions: Record<string, {
353
355
  x: number;
@@ -427,6 +429,13 @@ export declare interface FlowDiagramConfig {
427
429
  bottomBarNavigation?: boolean;
428
430
  bottomBarCollision?: boolean;
429
431
  bottomBarFill?: boolean;
432
+ /** Live placeholder for an empty node's content, e.g. workflow step status during a run. */
433
+ nodePlaceholder?: (nodeId: string, data: FlowDiagramNode["data"]) => string | undefined;
434
+ /** Prompt token allowance for the header-divider budget overlay. */
435
+ promptBudget?: (nodeId: string) => {
436
+ used: number;
437
+ limit: number;
438
+ } | undefined;
430
439
  /** Animate fit/center/focus actions for 300ms by default. Per-action flags override this; reduced motion stays instant. */
431
440
  animateViewport?: boolean;
432
441
  disableAnimations?: boolean;
package/dist/index.d.ts CHANGED
@@ -348,6 +348,8 @@ export declare interface FlowDiagramCallbacks {
348
348
  onNodeLabelChange?: (nodeId: string, newLabel: string) => void;
349
349
  onNodeSubtitleChange?: (nodeId: string, subtitle: string) => void;
350
350
  onNodeContentChange?: (nodeId: string, content: NodeContent) => void;
351
+ /** Fires when a node's content format changes (markdown | html | jsx) */
352
+ onNodeContentFormatChange?: (nodeId: string, format: ContentFormat) => void;
351
353
  onNodeDimensionChange?: (nodeId: string, dimension: "width" | "height", value: number | undefined) => void;
352
354
  onFixedNodePositionsChange?: (positions: Record<string, {
353
355
  x: number;
@@ -427,6 +429,13 @@ export declare interface FlowDiagramConfig {
427
429
  bottomBarNavigation?: boolean;
428
430
  bottomBarCollision?: boolean;
429
431
  bottomBarFill?: boolean;
432
+ /** Live placeholder for an empty node's content, e.g. workflow step status during a run. */
433
+ nodePlaceholder?: (nodeId: string, data: FlowDiagramNode["data"]) => string | undefined;
434
+ /** Prompt token allowance for the header-divider budget overlay. */
435
+ promptBudget?: (nodeId: string) => {
436
+ used: number;
437
+ limit: number;
438
+ } | undefined;
430
439
  /** Animate fit/center/focus actions for 300ms by default. Per-action flags override this; reduced motion stays instant. */
431
440
  animateViewport?: boolean;
432
441
  disableAnimations?: boolean;