journey-flow-editor 0.0.1 → 0.0.6
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/App.d.ts +3 -0
- package/dist/App.d.ts.map +1 -0
- package/dist/FlowEditor.d.ts +8 -0
- package/dist/FlowEditor.d.ts.map +1 -0
- package/dist/flow/FlowEditorInner.d.ts +6 -0
- package/dist/flow/FlowEditorInner.d.ts.map +1 -0
- package/dist/flow/edges/PlusEdge.d.ts +4 -0
- package/dist/flow/edges/PlusEdge.d.ts.map +1 -0
- package/dist/flow/initialGraph.d.ts +4 -0
- package/dist/flow/initialGraph.d.ts.map +1 -0
- package/dist/flow/layout/layoutWorkflow.d.ts +3 -0
- package/dist/flow/layout/layoutWorkflow.d.ts.map +1 -0
- package/dist/flow/menus/EdgeMenu.d.ts +26 -0
- package/dist/flow/menus/EdgeMenu.d.ts.map +1 -0
- package/dist/flow/menus/NodeDrawer.d.ts +14 -0
- package/dist/flow/menus/NodeDrawer.d.ts.map +1 -0
- package/dist/flow/menus/forms/GenericNodeDrawerForm.d.ts +3 -0
- package/dist/flow/menus/forms/GenericNodeDrawerForm.d.ts.map +1 -0
- package/dist/flow/nodes/ActionNode.d.ts +4 -0
- package/dist/flow/nodes/ActionNode.d.ts.map +1 -0
- package/dist/flow/nodes/ConditionalNode.d.ts +4 -0
- package/dist/flow/nodes/ConditionalNode.d.ts.map +1 -0
- package/dist/flow/nodes/EndNode.d.ts +4 -0
- package/dist/flow/nodes/EndNode.d.ts.map +1 -0
- package/dist/flow/nodes/MultiChoiceNode.d.ts +5 -0
- package/dist/flow/nodes/MultiChoiceNode.d.ts.map +1 -0
- package/dist/flow/nodes/StartNode.d.ts +4 -0
- package/dist/flow/nodes/StartNode.d.ts.map +1 -0
- package/dist/flow/registry.d.ts +14 -0
- package/dist/flow/registry.d.ts.map +1 -0
- package/dist/flow/types.d.ts +45 -0
- package/dist/flow/types.d.ts.map +1 -0
- package/dist/flow/ui/BaseLayout.d.ts +7 -0
- package/dist/flow/ui/BaseLayout.d.ts.map +1 -0
- package/dist/flow/ui/Iconify.d.ts +10 -0
- package/dist/flow/ui/Iconify.d.ts.map +1 -0
- package/dist/flow/ui/NodeBody.d.ts +5 -0
- package/dist/flow/ui/NodeBody.d.ts.map +1 -0
- package/dist/flow/utils/polyline.d.ts +7 -0
- package/dist/flow/utils/polyline.d.ts.map +1 -0
- package/dist/flow/utils/prune.d.ts +11 -0
- package/dist/flow/utils/prune.d.ts.map +1 -0
- package/dist/forms/EmailNodeDrawerForm.d.ts +3 -0
- package/dist/forms/EmailNodeDrawerForm.d.ts.map +1 -0
- package/dist/forms/TrackedEventForm.d.ts +3 -0
- package/dist/forms/TrackedEventForm.d.ts.map +1 -0
- package/dist/index.cjs +45 -50
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6035 -6296
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/package.json +11 -5
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAEA,iBAAS,GAAG,4CAMX;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "@xyflow/react/dist/style.css";
|
|
2
|
+
import type { NodeDefinition } from "./flow/types";
|
|
3
|
+
export type FlowEditorProps = {
|
|
4
|
+
nodeDefinitions?: NodeDefinition[];
|
|
5
|
+
extendNodeDefinitions?: NodeDefinition[];
|
|
6
|
+
};
|
|
7
|
+
export default function FlowEditor({ nodeDefinitions, extendNodeDefinitions, }: FlowEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=FlowEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowEditor.d.ts","sourceRoot":"","sources":["../src/FlowEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,8BAA8B,CAAC;AAOtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG;IAC3B,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,qBAAqB,CAAC,EAAE,cAAc,EAAE,CAAC;CAC3C,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAChC,eAAe,EACf,qBAA0B,GAC5B,EAAE,eAAe,2CAWjB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { NodeDefinition } from "./types";
|
|
2
|
+
/** -------------------- Editor -------------------- */
|
|
3
|
+
export declare function FlowEditorInner({ nodeDefinitions, }: {
|
|
4
|
+
nodeDefinitions?: NodeDefinition[];
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=FlowEditorInner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowEditorInner.d.ts","sourceRoot":"","sources":["../../src/flow/FlowEditorInner.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAIT,cAAc,EAKhB,MAAM,SAAS,CAAC;AAmFjB,uDAAuD;AAEvD,wBAAgB,eAAe,CAAC,EAC7B,eAA0C,GAC5C,EAAE;IACA,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;CACrC,2CAm9BA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlusEdge.d.ts","sourceRoot":"","sources":["../../../src/flow/edges/PlusEdge.tsx"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,IAAI,EACT,KAAK,SAAS,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AA8BzC,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,2CA8FxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initialGraph.d.ts","sourceRoot":"","sources":["../../src/flow/initialGraph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAG9C,eAAO,MAAM,YAAY,EAAE,MAAM,EAyBhC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,EAUhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layoutWorkflow.d.ts","sourceRoot":"","sources":["../../../src/flow/layout/layoutWorkflow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAoB/C,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,YA2G9D"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { NodeDefinition } from "../types";
|
|
2
|
+
export type PickerMode = "choose" | "redirect";
|
|
3
|
+
export type EdgeMenuState = {
|
|
4
|
+
edgeId: string;
|
|
5
|
+
mode: PickerMode;
|
|
6
|
+
anchorPosition: {
|
|
7
|
+
top: number;
|
|
8
|
+
left: number;
|
|
9
|
+
};
|
|
10
|
+
relinkSolid?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type RedirectCandidate = {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
nodeLabel: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function EdgeMenu({ menu, onClose, definitions, onChooseKind, redirectCandidates, onChooseRedirectTarget, onSwitchMode, }: {
|
|
18
|
+
menu: EdgeMenuState | null;
|
|
19
|
+
onClose: () => void;
|
|
20
|
+
definitions: NodeDefinition[];
|
|
21
|
+
onChooseKind: (edgeId: string, kind: NodeDefinition["kind"]) => void;
|
|
22
|
+
redirectCandidates: RedirectCandidate[];
|
|
23
|
+
onChooseRedirectTarget: (edgeId: string, nodeId: string, makeRedirect: boolean) => void;
|
|
24
|
+
onSwitchMode: (mode: PickerMode, relinkSolid?: boolean) => void;
|
|
25
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=EdgeMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeMenu.d.ts","sourceRoot":"","sources":["../../../src/flow/menus/EdgeMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAI/C,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,UAAU,CAAC;IACjB,cAAc,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjF,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,OAAO,EACP,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,sBAAsB,EACtB,YAAY,GACb,EAAE;IACD,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACrE,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,sBAAsB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;IACxF,YAAY,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,WAAW,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACjE,2CAmFA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import type { NodeDefinition, NodeMetaData, RFNode } from "../types";
|
|
3
|
+
export declare function NodeDrawer({ open, onClose, selectedNode, selectedDefinition, nodeLabel, setNodeLabel, nodeMetaData, setNodeMetaData, onSave, }: {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
selectedNode: RFNode | undefined;
|
|
7
|
+
selectedDefinition: NodeDefinition | undefined;
|
|
8
|
+
nodeLabel: string;
|
|
9
|
+
setNodeLabel: Dispatch<SetStateAction<string>>;
|
|
10
|
+
nodeMetaData: NodeMetaData;
|
|
11
|
+
setNodeMetaData: Dispatch<SetStateAction<NodeMetaData>>;
|
|
12
|
+
onSave: () => void;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=NodeDrawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeDrawer.d.ts","sourceRoot":"","sources":["../../../src/flow/menus/NodeDrawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGrE,wBAAgB,UAAU,CAAC,EACxB,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,MAAM,GACR,EAAE;IACA,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,kBAAkB,EAAE,cAAc,GAAG,SAAS,CAAC;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/C,YAAY,EAAE,YAAY,CAAC;IAC3B,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;IACxD,MAAM,EAAE,MAAM,IAAI,CAAC;CACrB,2CAkDA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { NodeDrawerFormComponentProps } from "../../types";
|
|
2
|
+
export declare function GenericNodeDrawerForm({ node, nodeLabel, setNodeLabel, nodeMetaData, setNodeMetaData, }: NodeDrawerFormComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=GenericNodeDrawerForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericNodeDrawerForm.d.ts","sourceRoot":"","sources":["../../../../src/flow/menus/forms/GenericNodeDrawerForm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAKhE,wBAAgB,qBAAqB,CAAC,EACpC,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,eAAe,GAChB,EAAE,4BAA4B,2CAqF9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionNode.d.ts","sourceRoot":"","sources":["../../../src/flow/nodes/ActionNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAE,KAAK,IAAI,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIzC,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,2CAUvE"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type NodeProps, type Node } from "@xyflow/react";
|
|
2
|
+
import type { NodeData } from "../types";
|
|
3
|
+
export declare function ConditionalNode({ data }: NodeProps<Node<NodeData, "conditional">>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=ConditionalNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConditionalNode.d.ts","sourceRoot":"","sources":["../../../src/flow/nodes/ConditionalNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAE,KAAK,IAAI,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAOzC,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC,2CAgCjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EndNode.d.ts","sourceRoot":"","sources":["../../../src/flow/nodes/EndNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAE,KAAK,IAAI,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAKzC,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,2CASjE"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type NodeProps, type Node } from "@xyflow/react";
|
|
2
|
+
import type { NodeData } from "../types";
|
|
3
|
+
/** Multi choice node (2..5 branches c1..cN) */
|
|
4
|
+
export declare function MultiChoiceNode({ data }: NodeProps<Node<NodeData, "multiChoice">>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=MultiChoiceNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiChoiceNode.d.ts","sourceRoot":"","sources":["../../../src/flow/nodes/MultiChoiceNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAE,KAAK,IAAI,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAKzC,+CAA+C;AAC/C,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC,2CA0CjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StartNode.d.ts","sourceRoot":"","sources":["../../../src/flow/nodes/StartNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAE,KAAK,IAAI,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAKzC,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,2CASrE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { NodeDefinition, NodeKind, NodeCategory, NodeType } from "./types";
|
|
2
|
+
export declare const START_ID = "start";
|
|
3
|
+
export declare const END_ID = "end";
|
|
4
|
+
export declare const START_END_ICON = "mingcute:entrance-fill";
|
|
5
|
+
export declare const DEFAULT_MULTI_CHOICE_COUNT = 2;
|
|
6
|
+
export declare const DEFAULT_NODE_DEFINITIONS: NodeDefinition[];
|
|
7
|
+
/** Backwards-compatible alias */
|
|
8
|
+
export declare const NODE_DEFINITIONS: NodeDefinition[];
|
|
9
|
+
export declare function createNodeDefinitionMap(defs: NodeDefinition[]): Map<NodeKind, NodeDefinition>;
|
|
10
|
+
export declare function mergeNodeDefinitions(base: NodeDefinition[], extensions: NodeDefinition[]): NodeDefinition[];
|
|
11
|
+
export declare const CATEGORIES: NodeCategory[];
|
|
12
|
+
export declare function groupDefinitions(defs?: NodeDefinition[]): Record<NodeCategory, NodeDefinition[]>;
|
|
13
|
+
export declare function kindToNodeType(kind: Exclude<NodeKind, "start" | "end">, defs?: NodeDefinition[]): Exclude<NodeType, "start" | "end">;
|
|
14
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/flow/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKhF,eAAO,MAAM,QAAQ,UAAU,CAAC;AAChC,eAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,eAAO,MAAM,cAAc,2BAA2B,CAAC;AACvD,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAwB5C,eAAO,MAAM,wBAAwB,EAAE,cAAc,EAmFpD,CAAC;AAEF,iCAAiC;AACjC,eAAO,MAAM,gBAAgB,kBAA2B,CAAC;AAEzD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,cAAc,EAAE,iCAE7D;AAED,wBAAgB,oBAAoB,CACjC,IAAI,EAAE,cAAc,EAAE,EACtB,UAAU,EAAE,cAAc,EAAE,oBAgB9B;AAED,eAAO,MAAM,UAAU,EAAE,YAAY,EAKpC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,IAAI,mBAA2B,0CAS/D;AAED,wBAAgB,cAAc,CAC3B,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,OAAO,GAAG,KAAK,CAAC,EACxC,IAAI,mBAA2B,GAC/B,OAAO,CAAC,QAAQ,EAAE,OAAO,GAAG,KAAK,CAAC,CAEpC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Edge, Node } from "@xyflow/react";
|
|
2
|
+
import type { ComponentType, Dispatch, SetStateAction } from "react";
|
|
3
|
+
export type NodeType = "start" | "end" | "conditional" | "action" | "multiChoice";
|
|
4
|
+
export type NodeKind = "start" | "end" | "email" | "sms" | "push" | "tag" | "note" | "delay" | "smartFilter" | "waitForEvent" | "abTest" | "multiChoice";
|
|
5
|
+
export type NodeMetaData = any;
|
|
6
|
+
export type ChildNodeIds = Record<string, string>;
|
|
7
|
+
export type NodeData = {
|
|
8
|
+
label: string;
|
|
9
|
+
nodeLabel?: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
kind?: NodeKind;
|
|
12
|
+
nodeMetaData: NodeMetaData;
|
|
13
|
+
parentNodeId?: string;
|
|
14
|
+
childNodeIds?: ChildNodeIds;
|
|
15
|
+
};
|
|
16
|
+
export type EdgeKind = "default" | "yes" | "no" | "branch";
|
|
17
|
+
export type EdgeData = {
|
|
18
|
+
kind: EdgeKind;
|
|
19
|
+
isRedirect?: boolean;
|
|
20
|
+
branch?: number;
|
|
21
|
+
baseTarget?: string;
|
|
22
|
+
baseTargetHandle?: string;
|
|
23
|
+
_onPlusClick?: (edgeId: string) => void;
|
|
24
|
+
};
|
|
25
|
+
export type RFNode = Node<NodeData, NodeType>;
|
|
26
|
+
export type RFEdge = Edge<EdgeData>;
|
|
27
|
+
export type NodeCategory = "Send Message" | "Update" | "Action" | "Event";
|
|
28
|
+
export type NodeDrawerFormComponentProps = {
|
|
29
|
+
node: RFNode;
|
|
30
|
+
nodeLabel: string;
|
|
31
|
+
setNodeLabel: Dispatch<SetStateAction<string>>;
|
|
32
|
+
nodeMetaData: NodeMetaData;
|
|
33
|
+
setNodeMetaData: Dispatch<SetStateAction<NodeMetaData>>;
|
|
34
|
+
};
|
|
35
|
+
export type NodeDefinition = {
|
|
36
|
+
kind: Exclude<NodeKind, "start" | "end">;
|
|
37
|
+
title: string;
|
|
38
|
+
category: NodeCategory;
|
|
39
|
+
nodeType: Exclude<NodeType, "start" | "end">;
|
|
40
|
+
icon: string;
|
|
41
|
+
enabled?: boolean;
|
|
42
|
+
drawerFormComponent?: ComponentType<NodeDrawerFormComponentProps>;
|
|
43
|
+
createInitialNodeMetaData?: () => NodeMetaData;
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/flow/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAErE,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAC;AAElF,MAAM,MAAM,QAAQ,GAChB,OAAO,GACP,KAAK,GACL,OAAO,GACP,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,OAAO,GACP,aAAa,GACb,cAAc,GACd,QAAQ,GACR,aAAa,CAAC;AAElB,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC;AAC/B,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAElD,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,KAAK,GAAG,IAAI,GAAG,QAAQ,CAAC;AAE3D,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,QAAQ,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAC9C,MAAM,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;AAEpC,MAAM,MAAM,YAAY,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE1E,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/C,YAAY,EAAE,YAAY,CAAC;IAC3B,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,OAAO,GAAG,KAAK,CAAC,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,OAAO,GAAG,KAAK,CAAC,CAAC;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mBAAmB,CAAC,EAAE,aAAa,CAAC,4BAA4B,CAAC,CAAC;IAClE,yBAAyB,CAAC,EAAE,MAAM,YAAY,CAAC;CAChD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseLayout.d.ts","sourceRoot":"","sources":["../../../src/flow/ui/BaseLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,IAAI,EACJ,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,2CA4BA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Box } from "@mui/material";
|
|
3
|
+
type IconifyProps = string;
|
|
4
|
+
interface IconifyBoxProps extends React.ComponentProps<typeof Box> {
|
|
5
|
+
icon: IconifyProps;
|
|
6
|
+
width?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const Iconify: React.ForwardRefExoticComponent<Omit<IconifyBoxProps, "ref"> & React.RefAttributes<SVGElement>>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=Iconify.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Iconify.d.ts","sourceRoot":"","sources":["../../../src/flow/ui/Iconify.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAGpC,KAAK,YAAY,GAAG,MAAM,CAAC;AAE3B,UAAU,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC;IAChE,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,OAAO,iGAWnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeBody.d.ts","sourceRoot":"","sources":["../../../src/flow/ui/NodeBody.tsx"],"names":[],"mappings":"AAqCA,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,YAAY,GACb,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,2CAuCA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polyline.d.ts","sourceRoot":"","sources":["../../../src/flow/utils/polyline.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAElD,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,UAIhD;AAYD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAmBtE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RFEdge, RFNode } from "../types";
|
|
2
|
+
export declare function pruneOrphanedSubtreesFromRemovedHandles(args: {
|
|
3
|
+
nodeId: string;
|
|
4
|
+
removedHandles: string[];
|
|
5
|
+
nodes: RFNode[];
|
|
6
|
+
edges: RFEdge[];
|
|
7
|
+
}): {
|
|
8
|
+
nodes: RFNode[];
|
|
9
|
+
edges: RFEdge[];
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=prune.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prune.d.ts","sourceRoot":"","sources":["../../../src/flow/utils/prune.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAG/C,wBAAgB,uCAAuC,CAAC,IAAI,EAAE;IAC5D,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;;;EAiFA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { NodeDrawerFormComponentProps } from "../flow/types";
|
|
2
|
+
export declare function EmailNodeDrawerForm({ nodeLabel, setNodeLabel, nodeMetaData, setNodeMetaData, }: NodeDrawerFormComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=EmailNodeDrawerForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmailNodeDrawerForm.d.ts","sourceRoot":"","sources":["../../src/forms/EmailNodeDrawerForm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAElE,wBAAgB,mBAAmB,CAAC,EACjC,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,eAAe,GACjB,EAAE,4BAA4B,2CA+C9B"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { NodeDrawerFormComponentProps } from "../flow/types";
|
|
2
|
+
export declare function TrackedEventForm({ node, setNodeLabel, nodeMetaData, setNodeMetaData, }: NodeDrawerFormComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=TrackedEventForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrackedEventForm.d.ts","sourceRoot":"","sources":["../../src/forms/TrackedEventForm.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAElE,wBAAgB,gBAAgB,CAAC,EAC9B,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,eAAe,GACjB,EAAE,4BAA4B,2CAqG9B"}
|