@squeed/flow-sdk 2.0.39 → 2.0.41
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/{_virtual_content-preview-runtime-Deui59HN.cjs → _virtual_content-preview-runtime-B1jAs7C4.cjs} +2 -2
- package/dist/_virtual_content-preview-runtime-B1jAs7C4.cjs.map +1 -0
- package/dist/{_virtual_content-preview-runtime-X_KtOyFO.js → _virtual_content-preview-runtime-BPainLNr.js} +2 -2
- package/dist/_virtual_content-preview-runtime-BPainLNr.js.map +1 -0
- package/dist/{contentPreviewDocument-i1zWN5gw.cjs → contentPreviewDocument-26_hwvOv.cjs} +2 -2
- package/dist/{contentPreviewDocument-i1zWN5gw.cjs.map → contentPreviewDocument-26_hwvOv.cjs.map} +1 -1
- package/dist/{contentPreviewDocument-Bhsc4K4s.js → contentPreviewDocument-DdAq-RL0.js} +2 -2
- package/dist/{contentPreviewDocument-Bhsc4K4s.js.map → contentPreviewDocument-DdAq-RL0.js.map} +1 -1
- package/dist/index.cjs +9 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +4645 -4521
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/_virtual_content-preview-runtime-Deui59HN.cjs.map +0 -1
- package/dist/_virtual_content-preview-runtime-X_KtOyFO.js.map +0 -1
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;
|