@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.
Files changed (72) hide show
  1. package/dist/generated/global-types.d.ts +5145 -1627
  2. package/dist/generated/global-types.d.ts.map +1 -1
  3. package/dist/generated/wspace-operations.d.ts +512 -248
  4. package/dist/generated/wspace-operations.d.ts.map +1 -1
  5. package/dist/generated/wspace-operations.js +349 -292
  6. package/dist/generated/wspace-operations.js.map +1 -1
  7. package/dist/generated/wspace-types.d.ts +21251 -468
  8. package/dist/generated/wspace-types.d.ts.map +1 -1
  9. package/dist/generated/wspace-types.js +20 -20
  10. package/dist/generated/wspace-types.js.map +1 -1
  11. package/dist/headshotmarketing/components/PageLayout.d.ts +5 -0
  12. package/dist/headshotmarketing/components/PageLayout.d.ts.map +1 -1
  13. package/dist/headshotmarketing/components/PageLayout.js +12 -6
  14. package/dist/headshotmarketing/components/PageLayout.js.map +1 -1
  15. package/dist/headshotmarketing/components/StatusBadge.d.ts.map +1 -1
  16. package/dist/headshotmarketing/components/StatusBadge.js +3 -0
  17. package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
  18. package/dist/headshotmarketing/pages/automation/AutomationPage.d.ts.map +1 -1
  19. package/dist/headshotmarketing/pages/automation/AutomationPage.js +172 -167
  20. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  21. package/dist/headshotmarketing/pages/automation/TriggersPage.d.ts.map +1 -1
  22. package/dist/headshotmarketing/pages/automation/TriggersPage.js +127 -143
  23. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  24. package/dist/headshotmarketing/pages/automation/WorkflowActions.d.ts +16 -16
  25. package/dist/headshotmarketing/pages/automation/WorkflowActions.d.ts.map +1 -1
  26. package/dist/headshotmarketing/pages/automation/WorkflowActions.js +104 -221
  27. package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -1
  28. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.d.ts +16 -0
  29. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.d.ts.map +1 -1
  30. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +470 -549
  31. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  32. package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.d.ts +2 -0
  33. package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.d.ts.map +1 -1
  34. package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js +19 -19
  35. package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js.map +1 -1
  36. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.d.ts.map +1 -1
  37. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +341 -164
  38. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -1
  39. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.d.ts +13 -0
  40. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.d.ts.map +1 -0
  41. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +294 -0
  42. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -0
  43. package/dist/headshotmarketing/pages/automation/WorkflowsPage.d.ts +2 -0
  44. package/dist/headshotmarketing/pages/automation/WorkflowsPage.d.ts.map +1 -1
  45. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +198 -220
  46. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/automation/useAutomationData.d.ts +24 -0
  48. package/dist/headshotmarketing/pages/automation/useAutomationData.d.ts.map +1 -0
  49. package/dist/headshotmarketing/pages/automation/useAutomationData.js +77 -0
  50. package/dist/headshotmarketing/pages/automation/useAutomationData.js.map +1 -0
  51. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.d.ts +73 -16
  52. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.d.ts.map +1 -1
  53. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +220 -80
  54. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -1
  55. package/dist/headshotmarketing/pages/automation/workflowCompiler.d.ts +51 -0
  56. package/dist/headshotmarketing/pages/automation/workflowCompiler.d.ts.map +1 -0
  57. package/dist/headshotmarketing/pages/automation/workflowCompiler.js +453 -0
  58. package/dist/headshotmarketing/pages/automation/workflowCompiler.js.map +1 -0
  59. package/dist/headshotmarketing/pages/social-media/PostsPage.d.ts.map +1 -1
  60. package/dist/headshotmarketing/pages/social-media/PostsPage.js +267 -194
  61. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  62. package/dist/headshotmarketing/types/index.d.ts +6 -0
  63. package/dist/headshotmarketing/types/index.d.ts.map +1 -1
  64. package/dist/headshotmarketing/utils/automationMapper.d.ts +50 -29
  65. package/dist/headshotmarketing/utils/automationMapper.d.ts.map +1 -1
  66. package/dist/headshotmarketing/utils/automationMapper.js +55 -99
  67. package/dist/headshotmarketing/utils/automationMapper.js.map +1 -1
  68. package/dist/headshotmarketing/utils/socialMapper.d.ts +8 -0
  69. package/dist/headshotmarketing/utils/socialMapper.d.ts.map +1 -1
  70. package/dist/headshotmarketing/utils/socialMapper.js +27 -15
  71. package/dist/headshotmarketing/utils/socialMapper.js.map +1 -1
  72. 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, TRIGGER_TYPES as n, actionMeta as r, nodeIcon as i, nodeTone as a } from "./workflowBuilderModel.js";
3
- import { Settings as o, X as s } from "lucide-react";
4
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
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 u = "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)]", d = "block text-xs font-medium text-text-primary mb-1", f = [
7
- "Welcome Email",
8
- "Onboarding Tips",
9
- "Follow-up",
10
- "Case Study",
11
- "Newsletter"
12
- ], p = ({ node: o, onLabelChange: p, onConfigChange: m, onTriggerChange: h, onClose: g }) => {
13
- let _ = i(o), v = a(o), y = o.kind === "trigger", b = o.config, x = y ? "Trigger" : r(o.actionType)?.label ?? o.actionType;
14
- return /* @__PURE__ */ l("div", {
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__ */ l("div", {
27
+ children: [/* @__PURE__ */ h("div", {
17
28
  className: "mb-4 flex items-center justify-between gap-2",
18
- children: [/* @__PURE__ */ l("div", {
29
+ children: [/* @__PURE__ */ h("div", {
19
30
  className: "flex min-w-0 items-center gap-2",
20
- children: [/* @__PURE__ */ c("span", {
21
- className: e("flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg ring-1 ring-inset", t[v]),
22
- children: /* @__PURE__ */ c(_, { className: "h-4 w-4" })
23
- }), /* @__PURE__ */ l("div", {
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__ */ c("p", {
36
+ children: [/* @__PURE__ */ m("p", {
26
37
  className: "truncate text-sm font-semibold text-text-primary",
27
38
  children: "Configure step"
28
- }), /* @__PURE__ */ c("p", {
39
+ }), /* @__PURE__ */ m("p", {
29
40
  className: "truncate text-xs text-text-secondary",
30
- children: x
41
+ children: A
31
42
  })]
32
43
  })]
33
- }), g && /* @__PURE__ */ c("button", {
44
+ }), C && /* @__PURE__ */ m("button", {
34
45
  type: "button",
35
- onClick: g,
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__ */ c(s, { className: "h-4 w-4" })
49
+ children: /* @__PURE__ */ m(f, { className: "h-4 w-4" })
39
50
  })]
40
- }), /* @__PURE__ */ l("div", {
51
+ }), /* @__PURE__ */ h("div", {
41
52
  className: "space-y-4",
42
53
  children: [
43
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
44
- className: d,
45
- children: "Label"
46
- }), /* @__PURE__ */ c("input", {
47
- type: "text",
48
- value: o.label,
49
- onChange: (e) => p(e.target.value),
50
- className: u,
51
- placeholder: "Step name"
52
- })] }),
53
- y && /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
54
- className: d,
55
- children: "Trigger type"
56
- }), /* @__PURE__ */ c("select", {
57
- value: o.actionType,
58
- onChange: (e) => h(e.target.value),
59
- className: u,
60
- children: n.map((e) => /* @__PURE__ */ c("option", {
61
- value: e.type,
62
- children: e.label
63
- }, e.type))
64
- })] }),
65
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
66
- className: d,
67
- children: "Description"
68
- }), /* @__PURE__ */ c("input", {
69
- type: "text",
70
- value: b.description ?? "",
71
- onChange: (e) => m({ description: e.target.value }),
72
- className: u,
73
- placeholder: "What this step does"
74
- })] }),
75
- o.actionType === "send_email" && /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
76
- className: d,
77
- children: "Email template"
78
- }), /* @__PURE__ */ c("select", {
79
- value: b.emailTemplate ?? f[0],
80
- onChange: (e) => m({ emailTemplate: e.target.value }),
81
- className: u,
82
- children: f.map((e) => /* @__PURE__ */ c("option", {
83
- value: e,
84
- children: e
85
- }, e))
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
- (o.actionType === "send_sms" || o.actionType === "notify") && /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
88
- className: d,
89
- children: "Message"
90
- }), /* @__PURE__ */ c("textarea", {
91
- value: b.message ?? "",
92
- onChange: (e) => m({ message: e.target.value }),
93
- rows: 3,
94
- className: e(u, "resize-none"),
95
- placeholder: "Message body"
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
- o.actionType === "wait" && /* @__PURE__ */ l("div", {
142
+ d.actionType === "wait" && /* @__PURE__ */ h("div", {
98
143
  className: "grid grid-cols-2 gap-2",
99
- children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
100
- className: d,
101
- children: "Duration"
102
- }), /* @__PURE__ */ c("input", {
103
- type: "number",
104
- min: 1,
105
- value: b.waitDuration ?? "",
106
- onChange: (e) => m({ waitDuration: e.target.value === "" ? void 0 : Number(e.target.value) }),
107
- className: u,
108
- placeholder: "3"
109
- })] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
110
- className: d,
111
- children: "Unit"
112
- }), /* @__PURE__ */ l("select", {
113
- value: b.waitUnit ?? "Days",
114
- onChange: (e) => m({ waitUnit: e.target.value }),
115
- className: u,
116
- children: [
117
- /* @__PURE__ */ c("option", {
118
- value: "Hours",
119
- children: "Hours"
120
- }),
121
- /* @__PURE__ */ c("option", {
122
- value: "Days",
123
- children: "Days"
124
- }),
125
- /* @__PURE__ */ c("option", {
126
- value: "Weeks",
127
- children: "Weeks"
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
- o.actionType === "condition" && /* @__PURE__ */ l("div", { children: [
133
- /* @__PURE__ */ c("label", {
134
- className: d,
135
- children: "Condition rule"
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__ */ c("input", {
138
- type: "text",
139
- value: b.conditionRule ?? "",
140
- onChange: (e) => m({ conditionRule: e.target.value }),
141
- className: u,
142
- placeholder: "e.g. Opened email"
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__ */ l("p", {
145
- className: "mt-1.5 text-[11px] text-text-secondary",
229
+ /* @__PURE__ */ h("p", {
230
+ className: v,
146
231
  children: [
147
- "Branches into",
232
+ "True continues on the",
148
233
  " ",
149
- /* @__PURE__ */ c("span", {
234
+ /* @__PURE__ */ m("span", {
150
235
  className: "text-status-success-text",
151
236
  children: "Yes"
152
237
  }),
153
- " and",
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
- " paths."
243
+ " path, or ends the run when it has no steps."
160
244
  ]
161
245
  })
162
246
  ] }),
163
- o.actionType === "webhook" && /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
164
- className: d,
165
- children: "Webhook URL"
166
- }), /* @__PURE__ */ c("input", {
167
- type: "url",
168
- value: b.webhookUrl ?? "",
169
- onChange: (e) => m({ webhookUrl: e.target.value }),
170
- className: u,
171
- placeholder: "https://example.com/hook"
172
- })] }),
173
- o.actionType === "add_tag" && /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
174
- className: d,
175
- children: "Tag"
176
- }), /* @__PURE__ */ c("input", {
177
- type: "text",
178
- value: b.tag ?? "",
179
- onChange: (e) => m({ tag: e.target.value }),
180
- className: u,
181
- placeholder: "e.g. engaged-lead"
182
- })] }),
183
- o.actionType === "update_score" && /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
184
- className: d,
185
- children: "Points"
186
- }), /* @__PURE__ */ c("input", {
187
- type: "number",
188
- value: b.points ?? "",
189
- onChange: (e) => m({ points: e.target.value === "" ? void 0 : Number(e.target.value) }),
190
- className: u,
191
- placeholder: "10"
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
- }, m = () => /* @__PURE__ */ l("div", {
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__ */ c(o, { className: "mx-auto mb-2 h-8 w-8 text-text-secondary" }),
200
- /* @__PURE__ */ c("p", {
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__ */ c("p", {
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 { m as WorkflowConfigEmpty, p as WorkflowNodeConfigPanel };
388
+ export { S as WorkflowConfigEmpty, x as WorkflowNodeConfigPanel };
212
389
 
213
390
  //# sourceMappingURL=WorkflowNodeConfigPanel.js.map