@burdenoff/microfe-headshotmarketing 2026.1013.1 → 2026.1029.2
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/generated/global-types.d.ts +5145 -1627
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/generated/wspace-operations.d.ts +512 -248
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +349 -292
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +21251 -468
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.js +20 -20
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/components/PageLayout.d.ts +5 -0
- package/dist/headshotmarketing/components/PageLayout.d.ts.map +1 -1
- package/dist/headshotmarketing/components/PageLayout.js +12 -6
- package/dist/headshotmarketing/components/PageLayout.js.map +1 -1
- package/dist/headshotmarketing/components/StatusBadge.d.ts.map +1 -1
- package/dist/headshotmarketing/components/StatusBadge.js +3 -0
- package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +172 -167
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +127 -143
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowActions.d.ts +16 -16
- package/dist/headshotmarketing/pages/automation/WorkflowActions.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js +104 -221
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.d.ts +16 -0
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +470 -549
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.d.ts +2 -0
- package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js +19 -19
- package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +341 -164
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.d.ts +13 -0
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +294 -0
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -0
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.d.ts +2 -0
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +198 -220
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/useAutomationData.d.ts +24 -0
- package/dist/headshotmarketing/pages/automation/useAutomationData.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/automation/useAutomationData.js +77 -0
- package/dist/headshotmarketing/pages/automation/useAutomationData.js.map +1 -0
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.d.ts +73 -16
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +220 -80
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/workflowCompiler.d.ts +51 -0
- package/dist/headshotmarketing/pages/automation/workflowCompiler.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/automation/workflowCompiler.js +453 -0
- package/dist/headshotmarketing/pages/automation/workflowCompiler.js.map +1 -0
- package/dist/headshotmarketing/pages/social-media/PostsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +267 -194
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/types/index.d.ts +6 -0
- package/dist/headshotmarketing/types/index.d.ts.map +1 -1
- package/dist/headshotmarketing/utils/automationMapper.d.ts +50 -29
- package/dist/headshotmarketing/utils/automationMapper.d.ts.map +1 -1
- package/dist/headshotmarketing/utils/automationMapper.js +55 -99
- package/dist/headshotmarketing/utils/automationMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/socialMapper.d.ts +8 -0
- package/dist/headshotmarketing/utils/socialMapper.d.ts.map +1 -1
- package/dist/headshotmarketing/utils/socialMapper.js +27 -15
- package/dist/headshotmarketing/utils/socialMapper.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,213 +1,390 @@
|
|
|
1
1
|
import { cn as e } from "../../utils/helpers.js";
|
|
2
|
-
import { CHIP_TONE as t,
|
|
3
|
-
import { Settings as
|
|
4
|
-
import { jsx as
|
|
2
|
+
import { CHIP_TONE as t, CONDITION_FIELDS as n, CONDITION_OPERATORS as r, TRIGGER_TYPES as i, UPDATABLE_FIELDS as a, actionMeta as o, isBuilderTriggerType as s, nodeIcon as c, nodeTone as l, triggerLabel as u } from "./workflowBuilderModel.js";
|
|
3
|
+
import { Settings as d, X as f } from "lucide-react";
|
|
4
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
5
5
|
//#region src/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.tsx
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
var g = "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", _ = "block text-xs font-medium text-text-primary mb-1", v = "mt-1 text-[11px] text-text-secondary", y = ({ id: e, label: t, hint: n, children: r }) => /* @__PURE__ */ h("div", { children: [
|
|
7
|
+
/* @__PURE__ */ m("label", {
|
|
8
|
+
htmlFor: e,
|
|
9
|
+
className: _,
|
|
10
|
+
children: t
|
|
11
|
+
}),
|
|
12
|
+
r,
|
|
13
|
+
n && /* @__PURE__ */ m("p", {
|
|
14
|
+
className: v,
|
|
15
|
+
children: n
|
|
16
|
+
})
|
|
17
|
+
] });
|
|
18
|
+
function b(e) {
|
|
19
|
+
if (e.trim() === "") return;
|
|
20
|
+
let t = Number(e);
|
|
21
|
+
return Number.isFinite(t) ? t : void 0;
|
|
22
|
+
}
|
|
23
|
+
var x = ({ node: d, onLabelChange: _, onConfigChange: x, onTriggerChange: S, onClose: C }) => {
|
|
24
|
+
let w = c(d), T = l(d), E = d.kind === "trigger", D = o(d.actionType), O = d.config, k = (e) => `wf-${d.id}-${e}`, A = E ? "Trigger" : D?.label ?? d.actionType;
|
|
25
|
+
return /* @__PURE__ */ h("div", {
|
|
15
26
|
className: "rounded-card border border-border-seam bg-gloss-card shadow-pop p-4",
|
|
16
|
-
children: [/* @__PURE__ */
|
|
27
|
+
children: [/* @__PURE__ */ h("div", {
|
|
17
28
|
className: "mb-4 flex items-center justify-between gap-2",
|
|
18
|
-
children: [/* @__PURE__ */
|
|
29
|
+
children: [/* @__PURE__ */ h("div", {
|
|
19
30
|
className: "flex min-w-0 items-center gap-2",
|
|
20
|
-
children: [/* @__PURE__ */
|
|
21
|
-
className: e("flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg ring-1 ring-inset", t[
|
|
22
|
-
children: /* @__PURE__ */
|
|
23
|
-
}), /* @__PURE__ */
|
|
31
|
+
children: [/* @__PURE__ */ m("span", {
|
|
32
|
+
className: e("flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg ring-1 ring-inset", t[T]),
|
|
33
|
+
children: /* @__PURE__ */ m(w, { className: "h-4 w-4" })
|
|
34
|
+
}), /* @__PURE__ */ h("div", {
|
|
24
35
|
className: "min-w-0",
|
|
25
|
-
children: [/* @__PURE__ */
|
|
36
|
+
children: [/* @__PURE__ */ m("p", {
|
|
26
37
|
className: "truncate text-sm font-semibold text-text-primary",
|
|
27
38
|
children: "Configure step"
|
|
28
|
-
}), /* @__PURE__ */
|
|
39
|
+
}), /* @__PURE__ */ m("p", {
|
|
29
40
|
className: "truncate text-xs text-text-secondary",
|
|
30
|
-
children:
|
|
41
|
+
children: A
|
|
31
42
|
})]
|
|
32
43
|
})]
|
|
33
|
-
}),
|
|
44
|
+
}), C && /* @__PURE__ */ m("button", {
|
|
34
45
|
type: "button",
|
|
35
|
-
onClick:
|
|
46
|
+
onClick: C,
|
|
36
47
|
"aria-label": "Close configuration",
|
|
37
48
|
className: "rounded-md p-1 text-text-secondary transition-colors hover:bg-bg-sunken hover:text-text-primary",
|
|
38
|
-
children: /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ m(f, { className: "h-4 w-4" })
|
|
39
50
|
})]
|
|
40
|
-
}), /* @__PURE__ */
|
|
51
|
+
}), /* @__PURE__ */ h("div", {
|
|
41
52
|
className: "space-y-4",
|
|
42
53
|
children: [
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
54
|
+
E ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(y, {
|
|
55
|
+
id: k("trigger"),
|
|
56
|
+
label: "Starts when",
|
|
57
|
+
children: /* @__PURE__ */ h("select", {
|
|
58
|
+
id: k("trigger"),
|
|
59
|
+
value: d.actionType,
|
|
60
|
+
onChange: (e) => S(e.target.value),
|
|
61
|
+
className: g,
|
|
62
|
+
children: [!s(d.actionType) && /* @__PURE__ */ m("option", {
|
|
63
|
+
value: d.actionType,
|
|
64
|
+
children: u(d.actionType)
|
|
65
|
+
}), i.map((e) => /* @__PURE__ */ m("option", {
|
|
66
|
+
value: e.type,
|
|
67
|
+
children: e.label
|
|
68
|
+
}, e.type))]
|
|
69
|
+
})
|
|
70
|
+
}), d.actionType === "SCORE_THRESHOLD" && /* @__PURE__ */ m(y, {
|
|
71
|
+
id: k("threshold"),
|
|
72
|
+
label: "Score threshold",
|
|
73
|
+
hint: "Runs when a lead's score rises to this value or above.",
|
|
74
|
+
children: /* @__PURE__ */ m("input", {
|
|
75
|
+
id: k("threshold"),
|
|
76
|
+
type: "number",
|
|
77
|
+
value: O.scoreThreshold ?? "",
|
|
78
|
+
onChange: (e) => x({ scoreThreshold: b(e.target.value) }),
|
|
79
|
+
className: g,
|
|
80
|
+
placeholder: "80"
|
|
81
|
+
})
|
|
82
|
+
})] }) : /* @__PURE__ */ m(y, {
|
|
83
|
+
id: k("label"),
|
|
84
|
+
label: "Step name",
|
|
85
|
+
children: /* @__PURE__ */ m("input", {
|
|
86
|
+
id: k("label"),
|
|
87
|
+
type: "text",
|
|
88
|
+
value: d.label,
|
|
89
|
+
onChange: (e) => _(e.target.value),
|
|
90
|
+
className: g,
|
|
91
|
+
placeholder: D?.label ?? "Step name"
|
|
92
|
+
})
|
|
93
|
+
}),
|
|
94
|
+
d.actionType === "send_email" && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(y, {
|
|
95
|
+
id: k("subject"),
|
|
96
|
+
label: "Subject",
|
|
97
|
+
hint: "Use {{field}} to insert lead or contact data, e.g. {{title}}.",
|
|
98
|
+
children: /* @__PURE__ */ m("input", {
|
|
99
|
+
id: k("subject"),
|
|
100
|
+
type: "text",
|
|
101
|
+
value: O.subject ?? "",
|
|
102
|
+
onChange: (e) => x({ subject: e.target.value }),
|
|
103
|
+
className: g,
|
|
104
|
+
placeholder: "Welcome aboard"
|
|
105
|
+
})
|
|
106
|
+
}), /* @__PURE__ */ m(y, {
|
|
107
|
+
id: k("body"),
|
|
108
|
+
label: "Body",
|
|
109
|
+
children: /* @__PURE__ */ m("textarea", {
|
|
110
|
+
id: k("body"),
|
|
111
|
+
value: O.body ?? "",
|
|
112
|
+
onChange: (e) => x({ body: e.target.value }),
|
|
113
|
+
rows: 4,
|
|
114
|
+
className: e(g, "resize-y"),
|
|
115
|
+
placeholder: "Email body"
|
|
116
|
+
})
|
|
86
117
|
})] }),
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
118
|
+
d.actionType === "notify" && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(y, {
|
|
119
|
+
id: k("title"),
|
|
120
|
+
label: "Title",
|
|
121
|
+
hint: "Sent in-app to the lead's assigned owner.",
|
|
122
|
+
children: /* @__PURE__ */ m("input", {
|
|
123
|
+
id: k("title"),
|
|
124
|
+
type: "text",
|
|
125
|
+
value: O.title ?? "",
|
|
126
|
+
onChange: (e) => x({ title: e.target.value }),
|
|
127
|
+
className: g,
|
|
128
|
+
placeholder: "Follow up with {{title}}"
|
|
129
|
+
})
|
|
130
|
+
}), /* @__PURE__ */ m(y, {
|
|
131
|
+
id: k("body"),
|
|
132
|
+
label: "Message",
|
|
133
|
+
children: /* @__PURE__ */ m("textarea", {
|
|
134
|
+
id: k("body"),
|
|
135
|
+
value: O.body ?? "",
|
|
136
|
+
onChange: (e) => x({ body: e.target.value }),
|
|
137
|
+
rows: 3,
|
|
138
|
+
className: e(g, "resize-y"),
|
|
139
|
+
placeholder: "Message"
|
|
140
|
+
})
|
|
96
141
|
})] }),
|
|
97
|
-
|
|
142
|
+
d.actionType === "wait" && /* @__PURE__ */ h("div", {
|
|
98
143
|
className: "grid grid-cols-2 gap-2",
|
|
99
|
-
children: [/* @__PURE__ */
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
144
|
+
children: [/* @__PURE__ */ m(y, {
|
|
145
|
+
id: k("duration"),
|
|
146
|
+
label: "Wait for",
|
|
147
|
+
children: /* @__PURE__ */ m("input", {
|
|
148
|
+
id: k("duration"),
|
|
149
|
+
type: "number",
|
|
150
|
+
min: 1,
|
|
151
|
+
value: O.waitDuration ?? "",
|
|
152
|
+
onChange: (e) => x({ waitDuration: b(e.target.value) }),
|
|
153
|
+
className: g,
|
|
154
|
+
placeholder: "2"
|
|
155
|
+
})
|
|
156
|
+
}), /* @__PURE__ */ m(y, {
|
|
157
|
+
id: k("unit"),
|
|
158
|
+
label: "Unit",
|
|
159
|
+
children: /* @__PURE__ */ h("select", {
|
|
160
|
+
id: k("unit"),
|
|
161
|
+
value: O.waitUnit ?? "days",
|
|
162
|
+
onChange: (e) => x({ waitUnit: e.target.value }),
|
|
163
|
+
className: g,
|
|
164
|
+
children: [
|
|
165
|
+
/* @__PURE__ */ m("option", {
|
|
166
|
+
value: "minutes",
|
|
167
|
+
children: "Minutes"
|
|
168
|
+
}),
|
|
169
|
+
/* @__PURE__ */ m("option", {
|
|
170
|
+
value: "hours",
|
|
171
|
+
children: "Hours"
|
|
172
|
+
}),
|
|
173
|
+
/* @__PURE__ */ m("option", {
|
|
174
|
+
value: "days",
|
|
175
|
+
children: "Days"
|
|
176
|
+
})
|
|
177
|
+
]
|
|
178
|
+
})
|
|
179
|
+
})]
|
|
131
180
|
}),
|
|
132
|
-
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
|
|
135
|
-
|
|
181
|
+
d.actionType === "condition" && /* @__PURE__ */ h(p, { children: [
|
|
182
|
+
/* @__PURE__ */ h(y, {
|
|
183
|
+
id: k("field"),
|
|
184
|
+
label: "Field",
|
|
185
|
+
children: [/* @__PURE__ */ m("input", {
|
|
186
|
+
id: k("field"),
|
|
187
|
+
type: "text",
|
|
188
|
+
list: k("fields"),
|
|
189
|
+
value: O.field ?? "",
|
|
190
|
+
onChange: (e) => x({ field: e.target.value }),
|
|
191
|
+
className: g,
|
|
192
|
+
placeholder: "score"
|
|
193
|
+
}), /* @__PURE__ */ m("datalist", {
|
|
194
|
+
id: k("fields"),
|
|
195
|
+
children: n.map((e) => /* @__PURE__ */ m("option", {
|
|
196
|
+
value: e.value,
|
|
197
|
+
children: e.label
|
|
198
|
+
}, e.value))
|
|
199
|
+
})]
|
|
136
200
|
}),
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
201
|
+
/* @__PURE__ */ h("div", {
|
|
202
|
+
className: "grid grid-cols-2 gap-2",
|
|
203
|
+
children: [/* @__PURE__ */ m(y, {
|
|
204
|
+
id: k("operator"),
|
|
205
|
+
label: "Comparison",
|
|
206
|
+
children: /* @__PURE__ */ m("select", {
|
|
207
|
+
id: k("operator"),
|
|
208
|
+
value: O.operator ?? "eq",
|
|
209
|
+
onChange: (e) => x({ operator: e.target.value }),
|
|
210
|
+
className: g,
|
|
211
|
+
children: r.map((e) => /* @__PURE__ */ m("option", {
|
|
212
|
+
value: e.value,
|
|
213
|
+
children: e.label
|
|
214
|
+
}, e.value))
|
|
215
|
+
})
|
|
216
|
+
}), /* @__PURE__ */ m(y, {
|
|
217
|
+
id: k("value"),
|
|
218
|
+
label: "Value",
|
|
219
|
+
children: /* @__PURE__ */ m("input", {
|
|
220
|
+
id: k("value"),
|
|
221
|
+
type: "text",
|
|
222
|
+
value: O.value ?? "",
|
|
223
|
+
onChange: (e) => x({ value: e.target.value }),
|
|
224
|
+
className: g,
|
|
225
|
+
placeholder: "50"
|
|
226
|
+
})
|
|
227
|
+
})]
|
|
143
228
|
}),
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
className:
|
|
229
|
+
/* @__PURE__ */ h("p", {
|
|
230
|
+
className: v,
|
|
146
231
|
children: [
|
|
147
|
-
"
|
|
232
|
+
"True continues on the",
|
|
148
233
|
" ",
|
|
149
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ m("span", {
|
|
150
235
|
className: "text-status-success-text",
|
|
151
236
|
children: "Yes"
|
|
152
237
|
}),
|
|
153
|
-
"
|
|
154
|
-
|
|
155
|
-
/* @__PURE__ */ c("span", {
|
|
238
|
+
" path. False takes the ",
|
|
239
|
+
/* @__PURE__ */ m("span", {
|
|
156
240
|
className: "text-status-error-text",
|
|
157
241
|
children: "No"
|
|
158
242
|
}),
|
|
159
|
-
"
|
|
243
|
+
" path, or ends the run when it has no steps."
|
|
160
244
|
]
|
|
161
245
|
})
|
|
162
246
|
] }),
|
|
163
|
-
|
|
164
|
-
className:
|
|
165
|
-
children:
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
247
|
+
d.actionType === "webhook" && /* @__PURE__ */ h("div", {
|
|
248
|
+
className: "grid grid-cols-[minmax(0,1fr)_96px] gap-2",
|
|
249
|
+
children: [/* @__PURE__ */ m(y, {
|
|
250
|
+
id: k("url"),
|
|
251
|
+
label: "Webhook URL",
|
|
252
|
+
children: /* @__PURE__ */ m("input", {
|
|
253
|
+
id: k("url"),
|
|
254
|
+
type: "url",
|
|
255
|
+
value: O.webhookUrl ?? "",
|
|
256
|
+
onChange: (e) => x({ webhookUrl: e.target.value }),
|
|
257
|
+
className: g,
|
|
258
|
+
placeholder: "https://example.com/hook"
|
|
259
|
+
})
|
|
260
|
+
}), /* @__PURE__ */ m(y, {
|
|
261
|
+
id: k("method"),
|
|
262
|
+
label: "Method",
|
|
263
|
+
children: /* @__PURE__ */ h("select", {
|
|
264
|
+
id: k("method"),
|
|
265
|
+
value: O.method ?? "POST",
|
|
266
|
+
onChange: (e) => x({ method: e.target.value }),
|
|
267
|
+
className: g,
|
|
268
|
+
children: [
|
|
269
|
+
/* @__PURE__ */ m("option", {
|
|
270
|
+
value: "POST",
|
|
271
|
+
children: "POST"
|
|
272
|
+
}),
|
|
273
|
+
/* @__PURE__ */ m("option", {
|
|
274
|
+
value: "PUT",
|
|
275
|
+
children: "PUT"
|
|
276
|
+
}),
|
|
277
|
+
/* @__PURE__ */ m("option", {
|
|
278
|
+
value: "PATCH",
|
|
279
|
+
children: "PATCH"
|
|
280
|
+
})
|
|
281
|
+
]
|
|
282
|
+
})
|
|
283
|
+
})]
|
|
284
|
+
}),
|
|
285
|
+
d.actionType === "update_field" && /* @__PURE__ */ h("div", {
|
|
286
|
+
className: "grid grid-cols-2 gap-2",
|
|
287
|
+
children: [/* @__PURE__ */ m(y, {
|
|
288
|
+
id: k("update-field"),
|
|
289
|
+
label: "Field",
|
|
290
|
+
children: /* @__PURE__ */ m("select", {
|
|
291
|
+
id: k("update-field"),
|
|
292
|
+
value: O.updateField ?? "score",
|
|
293
|
+
onChange: (e) => x({ updateField: e.target.value }),
|
|
294
|
+
className: g,
|
|
295
|
+
children: a.map((e) => /* @__PURE__ */ m("option", {
|
|
296
|
+
value: e.value,
|
|
297
|
+
children: e.label
|
|
298
|
+
}, e.value))
|
|
299
|
+
})
|
|
300
|
+
}), /* @__PURE__ */ m(y, {
|
|
301
|
+
id: k("update-value"),
|
|
302
|
+
label: "New value",
|
|
303
|
+
children: /* @__PURE__ */ m("input", {
|
|
304
|
+
id: k("update-value"),
|
|
305
|
+
type: "text",
|
|
306
|
+
value: O.value ?? "",
|
|
307
|
+
onChange: (e) => x({ value: e.target.value }),
|
|
308
|
+
className: g,
|
|
309
|
+
placeholder: O.updateField === "score" ? "80" : "Value"
|
|
310
|
+
})
|
|
311
|
+
})]
|
|
312
|
+
}),
|
|
313
|
+
d.actionType === "add_tag" && /* @__PURE__ */ m(y, {
|
|
314
|
+
id: k("tag"),
|
|
315
|
+
label: "Tag",
|
|
316
|
+
children: /* @__PURE__ */ m("input", {
|
|
317
|
+
id: k("tag"),
|
|
318
|
+
type: "text",
|
|
319
|
+
value: O.tag ?? "",
|
|
320
|
+
onChange: (e) => x({ tag: e.target.value }),
|
|
321
|
+
className: g,
|
|
322
|
+
placeholder: "engaged-lead"
|
|
323
|
+
})
|
|
324
|
+
}),
|
|
325
|
+
d.actionType === "goal" && /* @__PURE__ */ m(y, {
|
|
326
|
+
id: k("goal"),
|
|
327
|
+
label: "Goal",
|
|
328
|
+
hint: "Recorded on the run when this point is reached.",
|
|
329
|
+
children: /* @__PURE__ */ m("input", {
|
|
330
|
+
id: k("goal"),
|
|
331
|
+
type: "text",
|
|
332
|
+
value: O.description ?? "",
|
|
333
|
+
onChange: (e) => x({ description: e.target.value }),
|
|
334
|
+
className: g,
|
|
335
|
+
placeholder: "Lead nurtured"
|
|
336
|
+
})
|
|
337
|
+
}),
|
|
338
|
+
D?.retryable && /* @__PURE__ */ h("div", {
|
|
339
|
+
className: "grid grid-cols-2 gap-2 border-t border-border-subtle pt-3",
|
|
340
|
+
children: [/* @__PURE__ */ m(y, {
|
|
341
|
+
id: k("retry"),
|
|
342
|
+
label: "Attempts on failure",
|
|
343
|
+
hint: "1 means no automatic retry.",
|
|
344
|
+
children: /* @__PURE__ */ m("input", {
|
|
345
|
+
id: k("retry"),
|
|
346
|
+
type: "number",
|
|
347
|
+
min: 1,
|
|
348
|
+
max: 10,
|
|
349
|
+
value: O.retryMaxAttempts ?? "",
|
|
350
|
+
onChange: (e) => x({ retryMaxAttempts: b(e.target.value) }),
|
|
351
|
+
className: g,
|
|
352
|
+
placeholder: "1"
|
|
353
|
+
})
|
|
354
|
+
}), /* @__PURE__ */ m(y, {
|
|
355
|
+
id: k("backoff"),
|
|
356
|
+
label: "Retry after (min)",
|
|
357
|
+
hint: "Doubles on each attempt.",
|
|
358
|
+
children: /* @__PURE__ */ m("input", {
|
|
359
|
+
id: k("backoff"),
|
|
360
|
+
type: "number",
|
|
361
|
+
min: 1,
|
|
362
|
+
max: 1440,
|
|
363
|
+
value: O.retryBackoffMinutes ?? "",
|
|
364
|
+
onChange: (e) => x({ retryBackoffMinutes: b(e.target.value) }),
|
|
365
|
+
className: g,
|
|
366
|
+
placeholder: "5"
|
|
367
|
+
})
|
|
368
|
+
})]
|
|
369
|
+
})
|
|
193
370
|
]
|
|
194
371
|
})]
|
|
195
372
|
});
|
|
196
|
-
},
|
|
373
|
+
}, S = () => /* @__PURE__ */ h("div", {
|
|
197
374
|
className: "rounded-card border border-dashed border-border-subtle bg-bg-surface p-6 text-center",
|
|
198
375
|
children: [
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
/* @__PURE__ */
|
|
376
|
+
/* @__PURE__ */ m(d, { className: "mx-auto mb-2 h-8 w-8 text-text-secondary" }),
|
|
377
|
+
/* @__PURE__ */ m("p", {
|
|
201
378
|
className: "text-sm font-medium text-text-primary",
|
|
202
379
|
children: "No step selected"
|
|
203
380
|
}),
|
|
204
|
-
/* @__PURE__ */
|
|
381
|
+
/* @__PURE__ */ m("p", {
|
|
205
382
|
className: "mt-1 text-xs text-text-secondary",
|
|
206
|
-
children: "Click a node — or its gear icon — to configure it."
|
|
383
|
+
children: "Click a node — or its gear icon — to configure it. New steps are added after the selected node."
|
|
207
384
|
})
|
|
208
385
|
]
|
|
209
386
|
});
|
|
210
387
|
//#endregion
|
|
211
|
-
export {
|
|
388
|
+
export { S as WorkflowConfigEmpty, x as WorkflowNodeConfigPanel };
|
|
212
389
|
|
|
213
390
|
//# sourceMappingURL=WorkflowNodeConfigPanel.js.map
|