@squeed/flow-sdk 2.0.38 → 2.0.39
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/README.md +20 -2
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -17
- package/dist/index.d.ts +43 -17
- package/dist/index.js +9993 -9818
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -323,6 +323,7 @@ export declare interface FlowDiagramCallbacks {
|
|
|
323
323
|
x: number;
|
|
324
324
|
y: number;
|
|
325
325
|
}, modifiers?: NodeSelectionModifiers) => boolean;
|
|
326
|
+
getNodeEditMetadata?: () => NodeEditMetadata | undefined;
|
|
326
327
|
/** Fires when a node is clicked/selected */
|
|
327
328
|
onNodeSelect?: (nodeId: string, nodeData: any, modifiers?: NodeSelectionModifiers) => void;
|
|
328
329
|
onBackgroundClick?: () => void;
|
|
@@ -348,6 +349,15 @@ export declare interface FlowDiagramCallbacks {
|
|
|
348
349
|
onNodeSubtitleChange?: (nodeId: string, subtitle: string) => void;
|
|
349
350
|
onNodeContentChange?: (nodeId: string, content: NodeContent) => void;
|
|
350
351
|
onNodeDimensionChange?: (nodeId: string, dimension: "width" | "height", value: number | undefined) => void;
|
|
352
|
+
onFixedNodePositionsChange?: (positions: Record<string, {
|
|
353
|
+
x: number;
|
|
354
|
+
y: number;
|
|
355
|
+
}>) => void;
|
|
356
|
+
onPromptSubmit?: (request: {
|
|
357
|
+
nodeId: string;
|
|
358
|
+
prompt: string;
|
|
359
|
+
temperature?: number;
|
|
360
|
+
}, signal: AbortSignal) => Promise<void>;
|
|
351
361
|
/** Fires when a node's collapse toggle is clicked */
|
|
352
362
|
onNodeCollapse?: (nodeId: string, collapsed: boolean) => void;
|
|
353
363
|
onNodeParentChange?: (nodeId: string, parentId: string) => void;
|
|
@@ -415,6 +425,8 @@ export declare interface FlowDiagramConfig {
|
|
|
415
425
|
bottomBarExtra?: React.ReactNode;
|
|
416
426
|
bottomBarCollapsed?: boolean;
|
|
417
427
|
bottomBarNavigation?: boolean;
|
|
428
|
+
bottomBarCollision?: boolean;
|
|
429
|
+
bottomBarFill?: boolean;
|
|
418
430
|
/** Animate fit/center/focus actions for 300ms by default. Per-action flags override this; reduced motion stays instant. */
|
|
419
431
|
animateViewport?: boolean;
|
|
420
432
|
disableAnimations?: boolean;
|
|
@@ -436,6 +448,13 @@ export declare interface FlowDiagramConfig {
|
|
|
436
448
|
compactPropertyLayout?: boolean;
|
|
437
449
|
nodeViewModes?: Record<string, NodeViewMode>;
|
|
438
450
|
allNodesIconLabel?: boolean;
|
|
451
|
+
nodeGridSpacing?: "collision" | "layout";
|
|
452
|
+
nodeGridConnections?: boolean;
|
|
453
|
+
nodeGrid?: {
|
|
454
|
+
enabled: boolean;
|
|
455
|
+
options: NodeGridOptions;
|
|
456
|
+
order?: string[];
|
|
457
|
+
};
|
|
439
458
|
workflowContract?: WorkflowContract;
|
|
440
459
|
/** Layout algorithm */
|
|
441
460
|
layout?: LayoutAlgorithm;
|
|
@@ -453,15 +472,6 @@ export declare interface FlowDiagramConfig {
|
|
|
453
472
|
parentNodeStyle?: ParentNodeStyle;
|
|
454
473
|
/** Min zoom level (default: 0.01) */
|
|
455
474
|
minZoom?: number;
|
|
456
|
-
nodeGridSpacing?: "collision" | "layout";
|
|
457
|
-
nodeGridConnections?: boolean;
|
|
458
|
-
nodeGrid?: {
|
|
459
|
-
enabled: boolean;
|
|
460
|
-
options: NodeGridOptions;
|
|
461
|
-
order?: string[];
|
|
462
|
-
};
|
|
463
|
-
bottomBarCollision?: boolean;
|
|
464
|
-
bottomBarFill?: boolean;
|
|
465
475
|
/** Max zoom level (default: 1.5) */
|
|
466
476
|
maxZoom?: number;
|
|
467
477
|
/** Initial viewport position and zoom */
|
|
@@ -472,6 +482,10 @@ export declare interface FlowDiagramConfig {
|
|
|
472
482
|
};
|
|
473
483
|
zoom: number;
|
|
474
484
|
};
|
|
485
|
+
fixedNodePositions?: Record<string, {
|
|
486
|
+
x: number;
|
|
487
|
+
y: number;
|
|
488
|
+
}>;
|
|
475
489
|
/** Enable edge drawing handles (default: true) */
|
|
476
490
|
edgeHandles?: boolean;
|
|
477
491
|
/** Disable all interactions */
|
|
@@ -664,7 +678,7 @@ export declare interface FlowEngine {
|
|
|
664
678
|
/** Set zoom keeping the current pan (like cytoscape `cy.zoom(level)`) */
|
|
665
679
|
zoom(level: number): void;
|
|
666
680
|
pan(): Point;
|
|
667
|
-
pan(p: Point): void;
|
|
681
|
+
pan(p: Point, animate?: boolean): void;
|
|
668
682
|
/** Zoom keeping the model point under `renderedPoint` (container px) fixed */
|
|
669
683
|
zoomAt(level: number, renderedPoint: Point): void;
|
|
670
684
|
/** Fit all elements into the container with `padding` rendered px */
|
|
@@ -696,6 +710,7 @@ export declare interface FlowEngine {
|
|
|
696
710
|
setNodePosition(id: string, position: Point | undefined, options?: {
|
|
697
711
|
persist?: boolean;
|
|
698
712
|
}): boolean;
|
|
713
|
+
getFixedNodePositions(): Record<string, Point>;
|
|
699
714
|
onViewportChange(fn: (vp: ViewportState) => void): () => void;
|
|
700
715
|
}
|
|
701
716
|
|
|
@@ -729,6 +744,8 @@ declare interface FlowViewProps {
|
|
|
729
744
|
edges: FlowDiagramEdge[];
|
|
730
745
|
}
|
|
731
746
|
|
|
747
|
+
export declare function formatTimeAgo(value: string | undefined, now?: number): string;
|
|
748
|
+
|
|
732
749
|
export declare interface FormBinding {
|
|
733
750
|
$type: string;
|
|
734
751
|
$fields?: Record<string, FormFieldConfig>;
|
|
@@ -914,7 +931,7 @@ export declare function LoadingBorder({ active, label, radius, }: {
|
|
|
914
931
|
radius?: number;
|
|
915
932
|
}): JSX_2.Element;
|
|
916
933
|
|
|
917
|
-
export declare const NODE_TYPE_VIEWS: readonly ["", "icon-label", "object", "text", "grid", "parent"];
|
|
934
|
+
export declare const NODE_TYPE_VIEWS: readonly ["", "icon-label", "object", "text", "grid", "parent", "prompt"];
|
|
918
935
|
|
|
919
936
|
export declare type NodeAlignment = "leading" | "center" | "trailing";
|
|
920
937
|
|
|
@@ -950,6 +967,12 @@ export declare function NodeConfigSummary({ nodeAddress, expanded, }: {
|
|
|
950
967
|
|
|
951
968
|
export declare type NodeContent = string | Record<string, unknown>[];
|
|
952
969
|
|
|
970
|
+
export declare interface NodeEditMetadata {
|
|
971
|
+
userId: string;
|
|
972
|
+
name: string;
|
|
973
|
+
at: string;
|
|
974
|
+
}
|
|
975
|
+
|
|
953
976
|
export declare function NodeForm({ nodeAddress, structured, }: {
|
|
954
977
|
nodeAddress: string;
|
|
955
978
|
structured?: boolean;
|
|
@@ -1035,8 +1058,8 @@ export declare interface NodeSelectionModifiers {
|
|
|
1035
1058
|
ctrlKey: boolean;
|
|
1036
1059
|
metaKey: boolean;
|
|
1037
1060
|
altKey: boolean;
|
|
1038
|
-
viewToggle?: boolean;
|
|
1039
1061
|
keyboardNavigation?: boolean;
|
|
1062
|
+
viewToggle?: boolean;
|
|
1040
1063
|
}
|
|
1041
1064
|
|
|
1042
1065
|
export declare type NodeSpacing = number | "compact" | "normal" | "spacious";
|
|
@@ -1045,7 +1068,7 @@ export declare type NodeSpacing = number | "compact" | "normal" | "spacious";
|
|
|
1045
1068
|
export declare function NodeTools({ ids, onClose, afterLabel, }: {
|
|
1046
1069
|
ids: string[];
|
|
1047
1070
|
onClose: () => void;
|
|
1048
|
-
afterLabel?: ReactNode;
|
|
1071
|
+
afterLabel?: React.ReactNode;
|
|
1049
1072
|
}): JSX_2.Element;
|
|
1050
1073
|
|
|
1051
1074
|
export declare type NodeTypeView = Exclude<(typeof NODE_TYPE_VIEWS)[number], "">;
|
|
@@ -1159,7 +1182,7 @@ export declare interface RenderedEdgeRef extends FlowEdgeProperties {
|
|
|
1159
1182
|
};
|
|
1160
1183
|
}
|
|
1161
1184
|
|
|
1162
|
-
export declare function reparentNode(json: SqueedJson, nodeId: string, parentId: string): SqueedJson;
|
|
1185
|
+
export declare function reparentNode(json: SqueedJson, nodeId: string | readonly string[], parentId: string): SqueedJson;
|
|
1163
1186
|
|
|
1164
1187
|
/**
|
|
1165
1188
|
* Resolve which JSON node carries an edge's keys.
|
|
@@ -1215,9 +1238,10 @@ export declare function setNodeProp(json: SqueedJson, address: string, key: Sque
|
|
|
1215
1238
|
|
|
1216
1239
|
/** What changed in the Squeed document (delivered alongside the new JSON) */
|
|
1217
1240
|
export declare interface SqueedChange {
|
|
1218
|
-
type: "
|
|
1241
|
+
type: "documentReplace" | "form" | "nodeLabel" | "nodeContent" | "nodeColor" | "nodeStyle" | "nodeIcon" | "nodeOutline" | "nodeAnimation" | "nodeCollapse" | "nodeCreate" | "nodeDelete" | "edgeLabel" | "edgeStyle" | "edgeColor" | "edgeCreate" | "edgeDelete";
|
|
1219
1242
|
/** Node address affected (new node's address for nodeCreate) */
|
|
1220
1243
|
address?: string;
|
|
1244
|
+
nodeAddresses?: string[];
|
|
1221
1245
|
edge?: RenderedEdgeRef;
|
|
1222
1246
|
/** `$` key written, when a single key changed */
|
|
1223
1247
|
key?: string;
|
|
@@ -1226,7 +1250,7 @@ export declare interface SqueedChange {
|
|
|
1226
1250
|
|
|
1227
1251
|
/** Describes the edit behind an `onJsonChange` */
|
|
1228
1252
|
export declare interface SqueedChangeInfo {
|
|
1229
|
-
type: "nodeReplace" | "nodeLabel" | "nodeContent" | "nodeColor" | "nodeStyle" | "nodeIcon" | "nodeOutline" | "nodeAnimation" | "nodeCollapse" | "nodeCreate" | "nodeDelete" | "edgeLabel" | "edgeStyle" | "edgeColor" | "edgeCreate" | "edgeDelete";
|
|
1253
|
+
type: "documentReplace" | "form" | "nodeReplace" | "nodeLabel" | "nodeContent" | "nodeColor" | "nodeStyle" | "nodeIcon" | "nodeOutline" | "nodeAnimation" | "nodeCollapse" | "nodeCreate" | "nodeDelete" | "edgeLabel" | "edgeStyle" | "edgeColor" | "edgeCreate" | "edgeDelete";
|
|
1230
1254
|
address?: string;
|
|
1231
1255
|
edge?: FlowEdgeProperties & {
|
|
1232
1256
|
source: string;
|
|
@@ -1265,7 +1289,9 @@ export declare type SqueedEdgeKey = "$edgeIcon" | "$edgeType" | "$sourceLabel" |
|
|
|
1265
1289
|
export declare type SqueedJson = Record<string, any> | any[];
|
|
1266
1290
|
|
|
1267
1291
|
/** Schema keys that live on a node */
|
|
1268
|
-
export declare type SqueedNodeKey = "$view" | "$label" | "$subtitle" | "$form" | "$bgColor" | "$textColor" | "$borderColor" | "$borderStyle" | "$borderWidth" | "$borderRadius" | "$
|
|
1292
|
+
export declare type SqueedNodeKey = "$view" | "$label" | "$subtitle" | "$edited" | "$form" | "$bgColor" | "$textColor" | "$borderColor" | "$borderStyle" | "$borderWidth" | "$borderRadius" | "$fontSize" | "$icon" | "$content" | "$contentFormat" | "$media" | "$collapsed" | "$parent" | "$outline" | "$isNodeAnimated" | "$nodeAnimationVariant" | "$connections" | "$ports";
|
|
1293
|
+
|
|
1294
|
+
export declare function stampNodeEdit(json: SqueedJson, address: string, edited?: NodeEditMetadata): SqueedJson;
|
|
1269
1295
|
|
|
1270
1296
|
export declare interface StateFormBinding {
|
|
1271
1297
|
address: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -323,6 +323,7 @@ export declare interface FlowDiagramCallbacks {
|
|
|
323
323
|
x: number;
|
|
324
324
|
y: number;
|
|
325
325
|
}, modifiers?: NodeSelectionModifiers) => boolean;
|
|
326
|
+
getNodeEditMetadata?: () => NodeEditMetadata | undefined;
|
|
326
327
|
/** Fires when a node is clicked/selected */
|
|
327
328
|
onNodeSelect?: (nodeId: string, nodeData: any, modifiers?: NodeSelectionModifiers) => void;
|
|
328
329
|
onBackgroundClick?: () => void;
|
|
@@ -348,6 +349,15 @@ export declare interface FlowDiagramCallbacks {
|
|
|
348
349
|
onNodeSubtitleChange?: (nodeId: string, subtitle: string) => void;
|
|
349
350
|
onNodeContentChange?: (nodeId: string, content: NodeContent) => void;
|
|
350
351
|
onNodeDimensionChange?: (nodeId: string, dimension: "width" | "height", value: number | undefined) => void;
|
|
352
|
+
onFixedNodePositionsChange?: (positions: Record<string, {
|
|
353
|
+
x: number;
|
|
354
|
+
y: number;
|
|
355
|
+
}>) => void;
|
|
356
|
+
onPromptSubmit?: (request: {
|
|
357
|
+
nodeId: string;
|
|
358
|
+
prompt: string;
|
|
359
|
+
temperature?: number;
|
|
360
|
+
}, signal: AbortSignal) => Promise<void>;
|
|
351
361
|
/** Fires when a node's collapse toggle is clicked */
|
|
352
362
|
onNodeCollapse?: (nodeId: string, collapsed: boolean) => void;
|
|
353
363
|
onNodeParentChange?: (nodeId: string, parentId: string) => void;
|
|
@@ -415,6 +425,8 @@ export declare interface FlowDiagramConfig {
|
|
|
415
425
|
bottomBarExtra?: React.ReactNode;
|
|
416
426
|
bottomBarCollapsed?: boolean;
|
|
417
427
|
bottomBarNavigation?: boolean;
|
|
428
|
+
bottomBarCollision?: boolean;
|
|
429
|
+
bottomBarFill?: boolean;
|
|
418
430
|
/** Animate fit/center/focus actions for 300ms by default. Per-action flags override this; reduced motion stays instant. */
|
|
419
431
|
animateViewport?: boolean;
|
|
420
432
|
disableAnimations?: boolean;
|
|
@@ -436,6 +448,13 @@ export declare interface FlowDiagramConfig {
|
|
|
436
448
|
compactPropertyLayout?: boolean;
|
|
437
449
|
nodeViewModes?: Record<string, NodeViewMode>;
|
|
438
450
|
allNodesIconLabel?: boolean;
|
|
451
|
+
nodeGridSpacing?: "collision" | "layout";
|
|
452
|
+
nodeGridConnections?: boolean;
|
|
453
|
+
nodeGrid?: {
|
|
454
|
+
enabled: boolean;
|
|
455
|
+
options: NodeGridOptions;
|
|
456
|
+
order?: string[];
|
|
457
|
+
};
|
|
439
458
|
workflowContract?: WorkflowContract;
|
|
440
459
|
/** Layout algorithm */
|
|
441
460
|
layout?: LayoutAlgorithm;
|
|
@@ -453,15 +472,6 @@ export declare interface FlowDiagramConfig {
|
|
|
453
472
|
parentNodeStyle?: ParentNodeStyle;
|
|
454
473
|
/** Min zoom level (default: 0.01) */
|
|
455
474
|
minZoom?: number;
|
|
456
|
-
nodeGridSpacing?: "collision" | "layout";
|
|
457
|
-
nodeGridConnections?: boolean;
|
|
458
|
-
nodeGrid?: {
|
|
459
|
-
enabled: boolean;
|
|
460
|
-
options: NodeGridOptions;
|
|
461
|
-
order?: string[];
|
|
462
|
-
};
|
|
463
|
-
bottomBarCollision?: boolean;
|
|
464
|
-
bottomBarFill?: boolean;
|
|
465
475
|
/** Max zoom level (default: 1.5) */
|
|
466
476
|
maxZoom?: number;
|
|
467
477
|
/** Initial viewport position and zoom */
|
|
@@ -472,6 +482,10 @@ export declare interface FlowDiagramConfig {
|
|
|
472
482
|
};
|
|
473
483
|
zoom: number;
|
|
474
484
|
};
|
|
485
|
+
fixedNodePositions?: Record<string, {
|
|
486
|
+
x: number;
|
|
487
|
+
y: number;
|
|
488
|
+
}>;
|
|
475
489
|
/** Enable edge drawing handles (default: true) */
|
|
476
490
|
edgeHandles?: boolean;
|
|
477
491
|
/** Disable all interactions */
|
|
@@ -664,7 +678,7 @@ export declare interface FlowEngine {
|
|
|
664
678
|
/** Set zoom keeping the current pan (like cytoscape `cy.zoom(level)`) */
|
|
665
679
|
zoom(level: number): void;
|
|
666
680
|
pan(): Point;
|
|
667
|
-
pan(p: Point): void;
|
|
681
|
+
pan(p: Point, animate?: boolean): void;
|
|
668
682
|
/** Zoom keeping the model point under `renderedPoint` (container px) fixed */
|
|
669
683
|
zoomAt(level: number, renderedPoint: Point): void;
|
|
670
684
|
/** Fit all elements into the container with `padding` rendered px */
|
|
@@ -696,6 +710,7 @@ export declare interface FlowEngine {
|
|
|
696
710
|
setNodePosition(id: string, position: Point | undefined, options?: {
|
|
697
711
|
persist?: boolean;
|
|
698
712
|
}): boolean;
|
|
713
|
+
getFixedNodePositions(): Record<string, Point>;
|
|
699
714
|
onViewportChange(fn: (vp: ViewportState) => void): () => void;
|
|
700
715
|
}
|
|
701
716
|
|
|
@@ -729,6 +744,8 @@ declare interface FlowViewProps {
|
|
|
729
744
|
edges: FlowDiagramEdge[];
|
|
730
745
|
}
|
|
731
746
|
|
|
747
|
+
export declare function formatTimeAgo(value: string | undefined, now?: number): string;
|
|
748
|
+
|
|
732
749
|
export declare interface FormBinding {
|
|
733
750
|
$type: string;
|
|
734
751
|
$fields?: Record<string, FormFieldConfig>;
|
|
@@ -914,7 +931,7 @@ export declare function LoadingBorder({ active, label, radius, }: {
|
|
|
914
931
|
radius?: number;
|
|
915
932
|
}): JSX_2.Element;
|
|
916
933
|
|
|
917
|
-
export declare const NODE_TYPE_VIEWS: readonly ["", "icon-label", "object", "text", "grid", "parent"];
|
|
934
|
+
export declare const NODE_TYPE_VIEWS: readonly ["", "icon-label", "object", "text", "grid", "parent", "prompt"];
|
|
918
935
|
|
|
919
936
|
export declare type NodeAlignment = "leading" | "center" | "trailing";
|
|
920
937
|
|
|
@@ -950,6 +967,12 @@ export declare function NodeConfigSummary({ nodeAddress, expanded, }: {
|
|
|
950
967
|
|
|
951
968
|
export declare type NodeContent = string | Record<string, unknown>[];
|
|
952
969
|
|
|
970
|
+
export declare interface NodeEditMetadata {
|
|
971
|
+
userId: string;
|
|
972
|
+
name: string;
|
|
973
|
+
at: string;
|
|
974
|
+
}
|
|
975
|
+
|
|
953
976
|
export declare function NodeForm({ nodeAddress, structured, }: {
|
|
954
977
|
nodeAddress: string;
|
|
955
978
|
structured?: boolean;
|
|
@@ -1035,8 +1058,8 @@ export declare interface NodeSelectionModifiers {
|
|
|
1035
1058
|
ctrlKey: boolean;
|
|
1036
1059
|
metaKey: boolean;
|
|
1037
1060
|
altKey: boolean;
|
|
1038
|
-
viewToggle?: boolean;
|
|
1039
1061
|
keyboardNavigation?: boolean;
|
|
1062
|
+
viewToggle?: boolean;
|
|
1040
1063
|
}
|
|
1041
1064
|
|
|
1042
1065
|
export declare type NodeSpacing = number | "compact" | "normal" | "spacious";
|
|
@@ -1045,7 +1068,7 @@ export declare type NodeSpacing = number | "compact" | "normal" | "spacious";
|
|
|
1045
1068
|
export declare function NodeTools({ ids, onClose, afterLabel, }: {
|
|
1046
1069
|
ids: string[];
|
|
1047
1070
|
onClose: () => void;
|
|
1048
|
-
afterLabel?: ReactNode;
|
|
1071
|
+
afterLabel?: React.ReactNode;
|
|
1049
1072
|
}): JSX_2.Element;
|
|
1050
1073
|
|
|
1051
1074
|
export declare type NodeTypeView = Exclude<(typeof NODE_TYPE_VIEWS)[number], "">;
|
|
@@ -1159,7 +1182,7 @@ export declare interface RenderedEdgeRef extends FlowEdgeProperties {
|
|
|
1159
1182
|
};
|
|
1160
1183
|
}
|
|
1161
1184
|
|
|
1162
|
-
export declare function reparentNode(json: SqueedJson, nodeId: string, parentId: string): SqueedJson;
|
|
1185
|
+
export declare function reparentNode(json: SqueedJson, nodeId: string | readonly string[], parentId: string): SqueedJson;
|
|
1163
1186
|
|
|
1164
1187
|
/**
|
|
1165
1188
|
* Resolve which JSON node carries an edge's keys.
|
|
@@ -1215,9 +1238,10 @@ export declare function setNodeProp(json: SqueedJson, address: string, key: Sque
|
|
|
1215
1238
|
|
|
1216
1239
|
/** What changed in the Squeed document (delivered alongside the new JSON) */
|
|
1217
1240
|
export declare interface SqueedChange {
|
|
1218
|
-
type: "
|
|
1241
|
+
type: "documentReplace" | "form" | "nodeLabel" | "nodeContent" | "nodeColor" | "nodeStyle" | "nodeIcon" | "nodeOutline" | "nodeAnimation" | "nodeCollapse" | "nodeCreate" | "nodeDelete" | "edgeLabel" | "edgeStyle" | "edgeColor" | "edgeCreate" | "edgeDelete";
|
|
1219
1242
|
/** Node address affected (new node's address for nodeCreate) */
|
|
1220
1243
|
address?: string;
|
|
1244
|
+
nodeAddresses?: string[];
|
|
1221
1245
|
edge?: RenderedEdgeRef;
|
|
1222
1246
|
/** `$` key written, when a single key changed */
|
|
1223
1247
|
key?: string;
|
|
@@ -1226,7 +1250,7 @@ export declare interface SqueedChange {
|
|
|
1226
1250
|
|
|
1227
1251
|
/** Describes the edit behind an `onJsonChange` */
|
|
1228
1252
|
export declare interface SqueedChangeInfo {
|
|
1229
|
-
type: "nodeReplace" | "nodeLabel" | "nodeContent" | "nodeColor" | "nodeStyle" | "nodeIcon" | "nodeOutline" | "nodeAnimation" | "nodeCollapse" | "nodeCreate" | "nodeDelete" | "edgeLabel" | "edgeStyle" | "edgeColor" | "edgeCreate" | "edgeDelete";
|
|
1253
|
+
type: "documentReplace" | "form" | "nodeReplace" | "nodeLabel" | "nodeContent" | "nodeColor" | "nodeStyle" | "nodeIcon" | "nodeOutline" | "nodeAnimation" | "nodeCollapse" | "nodeCreate" | "nodeDelete" | "edgeLabel" | "edgeStyle" | "edgeColor" | "edgeCreate" | "edgeDelete";
|
|
1230
1254
|
address?: string;
|
|
1231
1255
|
edge?: FlowEdgeProperties & {
|
|
1232
1256
|
source: string;
|
|
@@ -1265,7 +1289,9 @@ export declare type SqueedEdgeKey = "$edgeIcon" | "$edgeType" | "$sourceLabel" |
|
|
|
1265
1289
|
export declare type SqueedJson = Record<string, any> | any[];
|
|
1266
1290
|
|
|
1267
1291
|
/** Schema keys that live on a node */
|
|
1268
|
-
export declare type SqueedNodeKey = "$view" | "$label" | "$subtitle" | "$form" | "$bgColor" | "$textColor" | "$borderColor" | "$borderStyle" | "$borderWidth" | "$borderRadius" | "$
|
|
1292
|
+
export declare type SqueedNodeKey = "$view" | "$label" | "$subtitle" | "$edited" | "$form" | "$bgColor" | "$textColor" | "$borderColor" | "$borderStyle" | "$borderWidth" | "$borderRadius" | "$fontSize" | "$icon" | "$content" | "$contentFormat" | "$media" | "$collapsed" | "$parent" | "$outline" | "$isNodeAnimated" | "$nodeAnimationVariant" | "$connections" | "$ports";
|
|
1293
|
+
|
|
1294
|
+
export declare function stampNodeEdit(json: SqueedJson, address: string, edited?: NodeEditMetadata): SqueedJson;
|
|
1269
1295
|
|
|
1270
1296
|
export declare interface StateFormBinding {
|
|
1271
1297
|
address: string;
|