@burdenoff/microfe-headshotmarketing 2026.704.4 β†’ 2026.704.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.
Files changed (178) hide show
  1. package/dist/generated/wspace-operations.js +215 -111
  2. package/dist/generated/wspace-operations.js.map +1 -1
  3. package/dist/generated/wspace-types.js +27 -19
  4. package/dist/generated/wspace-types.js.map +1 -1
  5. package/dist/headshotmarketing/components/Toast.js +56 -2
  6. package/dist/headshotmarketing/components/Toast.js.map +1 -0
  7. package/dist/headshotmarketing/pages/HomeFunnel.js +54 -0
  8. package/dist/headshotmarketing/pages/HomeFunnel.js.map +1 -0
  9. package/dist/headshotmarketing/pages/HomePage.js +423 -259
  10. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  11. package/dist/headshotmarketing/pages/HomeStatCard.js +79 -0
  12. package/dist/headshotmarketing/pages/HomeStatCard.js.map +1 -0
  13. package/dist/headshotmarketing/pages/ads/AdPlatformChips.js +93 -0
  14. package/dist/headshotmarketing/pages/ads/AdPlatformChips.js.map +1 -0
  15. package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js +147 -0
  16. package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js.map +1 -0
  17. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +461 -388
  18. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  19. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +405 -115
  20. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  21. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +565 -345
  22. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  23. package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js +107 -0
  24. package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js.map +1 -0
  25. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +213 -0
  26. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -0
  27. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +150 -0
  28. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -0
  29. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +380 -371
  30. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  31. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +92 -0
  32. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -0
  33. package/dist/headshotmarketing/pages/builder/SectionContent.js +346 -0
  34. package/dist/headshotmarketing/pages/builder/SectionContent.js.map +1 -0
  35. package/dist/headshotmarketing/pages/builder/SectionInspector.js +358 -0
  36. package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -0
  37. package/dist/headshotmarketing/pages/builder/builderCatalog.js +274 -0
  38. package/dist/headshotmarketing/pages/builder/builderCatalog.js.map +1 -0
  39. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +123 -233
  40. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/campaigns/TemplateCard.js +81 -0
  42. package/dist/headshotmarketing/pages/campaigns/TemplateCard.js.map +1 -0
  43. package/dist/headshotmarketing/pages/content/AIToolsPage.js +479 -193
  44. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  45. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +492 -197
  46. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/content/AssetThumbnail.js +37 -0
  48. package/dist/headshotmarketing/pages/content/AssetThumbnail.js.map +1 -0
  49. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +672 -219
  50. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  51. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +200 -0
  52. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -0
  53. package/dist/headshotmarketing/pages/content/ContentPage.js +224 -204
  54. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  55. package/dist/headshotmarketing/pages/content/ContentSubNav.js +51 -0
  56. package/dist/headshotmarketing/pages/content/ContentSubNav.js.map +1 -0
  57. package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js +107 -0
  58. package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js.map +1 -0
  59. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +232 -0
  60. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -0
  61. package/dist/headshotmarketing/pages/crm/LeadsPage.js +330 -177
  62. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  63. package/dist/headshotmarketing/pages/crm/LeadsWidgets.js +179 -0
  64. package/dist/headshotmarketing/pages/crm/LeadsWidgets.js.map +1 -0
  65. package/dist/headshotmarketing/pages/events/CreateEventPage.js +631 -379
  66. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  67. package/dist/headshotmarketing/pages/events/EventImageUpload.js +123 -0
  68. package/dist/headshotmarketing/pages/events/EventImageUpload.js.map +1 -0
  69. package/dist/headshotmarketing/pages/events/EventPagePreview.js +99 -0
  70. package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -0
  71. package/dist/headshotmarketing/pages/events/EventsPage.js +267 -228
  72. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  73. package/dist/headshotmarketing/pages/seo/SeoScoreGauge.js +50 -0
  74. package/dist/headshotmarketing/pages/seo/SeoScoreGauge.js.map +1 -0
  75. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +147 -0
  76. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -0
  77. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +562 -419
  78. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  79. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +108 -0
  80. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -0
  81. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +100 -0
  82. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -0
  83. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +315 -250
  84. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  85. package/dist/headshotmarketing/pages/social-media/socialComposerMeta.js +60 -0
  86. package/dist/headshotmarketing/pages/social-media/socialComposerMeta.js.map +1 -0
  87. package/dist/headshotmarketing/utils/adsMapper.js +2 -2
  88. package/dist/headshotmarketing/utils/adsMapper.js.map +1 -1
  89. package/dist/headshotmarketing/utils/automationMapper.js +1 -1
  90. package/dist/headshotmarketing/utils/automationMapper.js.map +1 -1
  91. package/dist/headshotmarketing/utils/campaignMapper.js +1 -22
  92. package/dist/headshotmarketing/utils/campaignMapper.js.map +1 -1
  93. package/dist/headshotmarketing/utils/contentMapper.js +4 -24
  94. package/dist/headshotmarketing/utils/contentMapper.js.map +1 -1
  95. package/dist/headshotmarketing/utils/crmMapper.js +2 -2
  96. package/dist/headshotmarketing/utils/crmMapper.js.map +1 -1
  97. package/dist/headshotmarketing/utils/eventsMapper.js +9 -9
  98. package/dist/headshotmarketing/utils/eventsMapper.js.map +1 -1
  99. package/dist/headshotmarketing/utils/helpers.js +7 -4
  100. package/dist/headshotmarketing/utils/helpers.js.map +1 -1
  101. package/dist/headshotmarketing/utils/influencerMapper.js +1 -1
  102. package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
  103. package/dist/node_modules/lodash/_arrayEach.js +14 -0
  104. package/dist/node_modules/lodash/_arrayEach.js.map +1 -0
  105. package/dist/node_modules/lodash/_assignValue.js +17 -0
  106. package/dist/node_modules/lodash/_assignValue.js.map +1 -0
  107. package/dist/node_modules/lodash/_baseAssign.js +16 -0
  108. package/dist/node_modules/lodash/_baseAssign.js.map +1 -0
  109. package/dist/node_modules/lodash/_baseAssignIn.js +16 -0
  110. package/dist/node_modules/lodash/_baseAssignIn.js.map +1 -0
  111. package/dist/node_modules/lodash/_baseClone.js +64 -0
  112. package/dist/node_modules/lodash/_baseClone.js.map +1 -0
  113. package/dist/node_modules/lodash/_baseCreate.js +21 -0
  114. package/dist/node_modules/lodash/_baseCreate.js.map +1 -0
  115. package/dist/node_modules/lodash/_baseIsMap.js +16 -0
  116. package/dist/node_modules/lodash/_baseIsMap.js.map +1 -0
  117. package/dist/node_modules/lodash/_baseIsSet.js +16 -0
  118. package/dist/node_modules/lodash/_baseIsSet.js.map +1 -0
  119. package/dist/node_modules/lodash/_baseKeysIn.js +20 -0
  120. package/dist/node_modules/lodash/_baseKeysIn.js.map +1 -0
  121. package/dist/node_modules/lodash/_baseUnset.js +26 -0
  122. package/dist/node_modules/lodash/_baseUnset.js.map +1 -0
  123. package/dist/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  124. package/dist/node_modules/lodash/_cloneArrayBuffer.js.map +1 -0
  125. package/dist/node_modules/lodash/_cloneBuffer.js +17 -0
  126. package/dist/node_modules/lodash/_cloneBuffer.js.map +1 -0
  127. package/dist/node_modules/lodash/_cloneDataView.js +16 -0
  128. package/dist/node_modules/lodash/_cloneDataView.js.map +1 -0
  129. package/dist/node_modules/lodash/_cloneRegExp.js +15 -0
  130. package/dist/node_modules/lodash/_cloneRegExp.js.map +1 -0
  131. package/dist/node_modules/lodash/_cloneSymbol.js +15 -0
  132. package/dist/node_modules/lodash/_cloneSymbol.js.map +1 -0
  133. package/dist/node_modules/lodash/_cloneTypedArray.js +16 -0
  134. package/dist/node_modules/lodash/_cloneTypedArray.js.map +1 -0
  135. package/dist/node_modules/lodash/_copyArray.js +15 -0
  136. package/dist/node_modules/lodash/_copyArray.js.map +1 -0
  137. package/dist/node_modules/lodash/_copyObject.js +22 -0
  138. package/dist/node_modules/lodash/_copyObject.js.map +1 -0
  139. package/dist/node_modules/lodash/_copySymbols.js +16 -0
  140. package/dist/node_modules/lodash/_copySymbols.js.map +1 -0
  141. package/dist/node_modules/lodash/_copySymbolsIn.js +16 -0
  142. package/dist/node_modules/lodash/_copySymbolsIn.js.map +1 -0
  143. package/dist/node_modules/lodash/_customOmitClone.js +15 -0
  144. package/dist/node_modules/lodash/_customOmitClone.js.map +1 -0
  145. package/dist/node_modules/lodash/_flatRest.js +17 -0
  146. package/dist/node_modules/lodash/_flatRest.js.map +1 -0
  147. package/dist/node_modules/lodash/_getAllKeysIn.js +17 -0
  148. package/dist/node_modules/lodash/_getAllKeysIn.js.map +1 -0
  149. package/dist/node_modules/lodash/_getSymbolsIn.js +18 -0
  150. package/dist/node_modules/lodash/_getSymbolsIn.js.map +1 -0
  151. package/dist/node_modules/lodash/_initCloneArray.js +15 -0
  152. package/dist/node_modules/lodash/_initCloneArray.js.map +1 -0
  153. package/dist/node_modules/lodash/_initCloneByTag.js +40 -0
  154. package/dist/node_modules/lodash/_initCloneByTag.js.map +1 -0
  155. package/dist/node_modules/lodash/_initCloneObject.js +17 -0
  156. package/dist/node_modules/lodash/_initCloneObject.js.map +1 -0
  157. package/dist/node_modules/lodash/_nativeKeysIn.js +15 -0
  158. package/dist/node_modules/lodash/_nativeKeysIn.js.map +1 -0
  159. package/dist/node_modules/lodash/_parent.js +16 -0
  160. package/dist/node_modules/lodash/_parent.js.map +1 -0
  161. package/dist/node_modules/lodash/flatten.js +15 -0
  162. package/dist/node_modules/lodash/flatten.js.map +1 -0
  163. package/dist/node_modules/lodash/isMap.js +14 -0
  164. package/dist/node_modules/lodash/isMap.js.map +1 -0
  165. package/dist/node_modules/lodash/isSet.js +14 -0
  166. package/dist/node_modules/lodash/isSet.js.map +1 -0
  167. package/dist/node_modules/lodash/keysIn.js +17 -0
  168. package/dist/node_modules/lodash/keysIn.js.map +1 -0
  169. package/dist/node_modules/lodash/omit.js +28 -0
  170. package/dist/node_modules/lodash/omit.js.map +1 -0
  171. package/dist/node_modules/recharts/es6/chart/FunnelChart.js +15 -0
  172. package/dist/node_modules/recharts/es6/chart/FunnelChart.js.map +1 -0
  173. package/dist/node_modules/recharts/es6/numberAxis/Funnel.js +370 -0
  174. package/dist/node_modules/recharts/es6/numberAxis/Funnel.js.map +1 -0
  175. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +1 -1
  176. package/dist/node_modules/recharts/es6/util/FunnelUtils.js +81 -0
  177. package/dist/node_modules/recharts/es6/util/FunnelUtils.js.map +1 -0
  178. package/package.json +1 -1
@@ -0,0 +1,150 @@
1
+ import { Bell as e, Clock as t, GitBranch as n, Mail as r, MessageSquare as i, Tag as a, Webhook as o, Zap as s } from "lucide-react";
2
+ var c = {
3
+ info: "bg-status-info-bg text-status-info-text ring-status-info-border",
4
+ success: "bg-status-success-bg text-status-success-text ring-status-success-border",
5
+ warning: "bg-status-warning-bg text-status-warning-text ring-status-warning-border",
6
+ error: "bg-status-error-bg text-status-error-text ring-status-error-border",
7
+ accent: "bg-[var(--color-accent-soft)] text-action-primary-bg ring-border-seam"
8
+ }, l = [
9
+ {
10
+ type: "send_email",
11
+ label: "Send Email",
12
+ icon: r,
13
+ tone: "info"
14
+ },
15
+ {
16
+ type: "send_sms",
17
+ label: "Send SMS",
18
+ icon: i,
19
+ tone: "accent"
20
+ },
21
+ {
22
+ type: "wait",
23
+ label: "Wait / Delay",
24
+ icon: t,
25
+ tone: "warning"
26
+ },
27
+ {
28
+ type: "condition",
29
+ label: "Condition",
30
+ icon: n,
31
+ tone: "accent",
32
+ isCondition: !0
33
+ },
34
+ {
35
+ type: "notify",
36
+ label: "Send Notification",
37
+ icon: e,
38
+ tone: "success"
39
+ },
40
+ {
41
+ type: "webhook",
42
+ label: "Webhook",
43
+ icon: o,
44
+ tone: "info"
45
+ },
46
+ {
47
+ type: "add_tag",
48
+ label: "Add Tag",
49
+ icon: a,
50
+ tone: "warning"
51
+ },
52
+ {
53
+ type: "update_score",
54
+ label: "Update Score",
55
+ icon: s,
56
+ tone: "error"
57
+ }
58
+ ], u = [
59
+ {
60
+ type: "form_submit",
61
+ label: "Form Submission",
62
+ icon: "πŸ“"
63
+ },
64
+ {
65
+ type: "event",
66
+ label: "Event Triggered",
67
+ icon: "⚑"
68
+ },
69
+ {
70
+ type: "schedule",
71
+ label: "Schedule",
72
+ icon: "πŸ“…"
73
+ },
74
+ {
75
+ type: "tag_added",
76
+ label: "Tag Added",
77
+ icon: "🏷️"
78
+ },
79
+ {
80
+ type: "webhook",
81
+ label: "Webhook",
82
+ icon: "πŸ”—"
83
+ },
84
+ {
85
+ type: "score_change",
86
+ label: "Score Change",
87
+ icon: "πŸ“Š"
88
+ }
89
+ ];
90
+ function d(e) {
91
+ return l.find((t) => t.type === e);
92
+ }
93
+ function f(e) {
94
+ return u.find((t) => t.type === e)?.label ?? "Trigger";
95
+ }
96
+ function p(e) {
97
+ return e.kind === "trigger" ? "success" : d(e.actionType)?.tone ?? "accent";
98
+ }
99
+ function m(e) {
100
+ return e.kind === "trigger" ? s : d(e.actionType)?.icon ?? s;
101
+ }
102
+ function h(e) {
103
+ return e.kind === "action" && e.actionType === "condition";
104
+ }
105
+ function g(e, t) {
106
+ let n = e.y + 78;
107
+ return t === "yes" ? {
108
+ x: e.x + 240 * .28,
109
+ y: n
110
+ } : t === "no" ? {
111
+ x: e.x + 240 * .72,
112
+ y: n
113
+ } : {
114
+ x: e.x + 240 / 2,
115
+ y: n
116
+ };
117
+ }
118
+ function _(e) {
119
+ return {
120
+ x: e.x + 240 / 2,
121
+ y: e.y
122
+ };
123
+ }
124
+ function v(e, t) {
125
+ return {
126
+ version: 2,
127
+ nodes: e.map((e, t) => ({
128
+ id: e.id,
129
+ kind: e.kind,
130
+ actionType: e.actionType,
131
+ label: e.label,
132
+ order: t,
133
+ position: {
134
+ x: Math.round(e.x),
135
+ y: Math.round(e.y)
136
+ },
137
+ config: e.config
138
+ })),
139
+ edges: t.map((e) => ({
140
+ id: e.id,
141
+ source: e.source,
142
+ target: e.target,
143
+ branch: e.branch
144
+ }))
145
+ };
146
+ }
147
+ //#endregion
148
+ export { l as ACTION_TYPES, c as CHIP_TONE, u as TRIGGER_TYPES, d as actionMeta, _ as inPort, h as isConditionNode, m as nodeIcon, p as nodeTone, g as outPort, v as serializeGraph, f as triggerLabel };
149
+
150
+ //# sourceMappingURL=workflowBuilderModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowBuilderModel.js","names":[],"sources":["../../../../src/headshotmarketing/pages/automation/workflowBuilderModel.ts"],"sourcesContent":["/**\n * Shared model + metadata for the visual Workflow Builder canvas.\n * @module headshotmarketing/pages/automation\n *\n * The canvas persists a node-graph ({ nodes[], edges[] }) into the workflow's\n * `steps` JSON so the graph round-trips through createHeadshotmarketingWorkflow.\n */\nimport {\n Mail,\n MessageSquare,\n Clock,\n GitBranch,\n Bell,\n Tag,\n Zap,\n Webhook,\n type LucideIcon,\n} from \"lucide-react\";\n\n/** Fixed node footprint (world units) β€” used for edge port geometry. */\nexport const NODE_W = 240;\nexport const NODE_H = 78;\n\nexport type NodeKind = \"trigger\" | \"action\";\n\n/** Per-node configuration captured by the right-hand config panel. */\nexport interface NodeConfig {\n description?: string;\n emailTemplate?: string;\n message?: string;\n waitDuration?: number;\n waitUnit?: string;\n conditionRule?: string;\n webhookUrl?: string;\n tag?: string;\n points?: number;\n source?: string;\n}\n\nexport interface CanvasNode {\n id: string;\n kind: NodeKind;\n /** trigger id (form_submit…) or action id (send_email…). */\n actionType: string;\n label: string;\n x: number;\n y: number;\n config: NodeConfig;\n}\n\nexport type BranchKind = \"yes\" | \"no\" | null;\n\nexport interface CanvasEdge {\n id: string;\n source: string;\n target: string;\n branch: BranchKind;\n}\n\n/** Semantic-token tones for the node icon chips (never raw colors). */\nexport type ChipTone = \"info\" | \"success\" | \"warning\" | \"error\" | \"accent\";\n\nexport const CHIP_TONE: Record<ChipTone, string> = {\n info: \"bg-status-info-bg text-status-info-text ring-status-info-border\",\n success:\n \"bg-status-success-bg text-status-success-text ring-status-success-border\",\n warning:\n \"bg-status-warning-bg text-status-warning-text ring-status-warning-border\",\n error: \"bg-status-error-bg text-status-error-text ring-status-error-border\",\n accent:\n \"bg-[var(--color-accent-soft)] text-action-primary-bg ring-border-seam\",\n};\n\nexport interface ActionMeta {\n type: string;\n label: string;\n icon: LucideIcon;\n tone: ChipTone;\n /** True for branching nodes that expose Yes/No output ports. */\n isCondition?: boolean;\n}\n\nexport const ACTION_TYPES: ActionMeta[] = [\n { type: \"send_email\", label: \"Send Email\", icon: Mail, tone: \"info\" },\n { type: \"send_sms\", label: \"Send SMS\", icon: MessageSquare, tone: \"accent\" },\n { type: \"wait\", label: \"Wait / Delay\", icon: Clock, tone: \"warning\" },\n {\n type: \"condition\",\n label: \"Condition\",\n icon: GitBranch,\n tone: \"accent\",\n isCondition: true,\n },\n { type: \"notify\", label: \"Send Notification\", icon: Bell, tone: \"success\" },\n { type: \"webhook\", label: \"Webhook\", icon: Webhook, tone: \"info\" },\n { type: \"add_tag\", label: \"Add Tag\", icon: Tag, tone: \"warning\" },\n { type: \"update_score\", label: \"Update Score\", icon: Zap, tone: \"error\" },\n];\n\nexport const TRIGGER_TYPES: { type: string; label: string; icon: string }[] = [\n { type: \"form_submit\", label: \"Form Submission\", icon: \"πŸ“\" },\n { type: \"event\", label: \"Event Triggered\", icon: \"⚑\" },\n { type: \"schedule\", label: \"Schedule\", icon: \"πŸ“…\" },\n { type: \"tag_added\", label: \"Tag Added\", icon: \"🏷️\" },\n { type: \"webhook\", label: \"Webhook\", icon: \"πŸ”—\" },\n { type: \"score_change\", label: \"Score Change\", icon: \"πŸ“Š\" },\n];\n\nexport function actionMeta(type: string): ActionMeta | undefined {\n return ACTION_TYPES.find((a) => a.type === type);\n}\n\nexport function triggerLabel(type: string): string {\n return TRIGGER_TYPES.find((t) => t.type === type)?.label ?? \"Trigger\";\n}\n\n/** Chip tone for a node (trigger nodes read as success/green, like the mock). */\nexport function nodeTone(node: CanvasNode): ChipTone {\n if (node.kind === \"trigger\") return \"success\";\n return actionMeta(node.actionType)?.tone ?? \"accent\";\n}\n\nexport function nodeIcon(node: CanvasNode): LucideIcon {\n if (node.kind === \"trigger\") return Zap;\n return actionMeta(node.actionType)?.icon ?? Zap;\n}\n\nexport function isConditionNode(node: CanvasNode): boolean {\n return node.kind === \"action\" && node.actionType === \"condition\";\n}\n\n/** Output port (bottom) for an edge leaving `node` on the given branch. */\nexport function outPort(\n node: CanvasNode,\n branch: BranchKind,\n): {\n x: number;\n y: number;\n} {\n const y = node.y + NODE_H;\n if (branch === \"yes\") return { x: node.x + NODE_W * 0.28, y };\n if (branch === \"no\") return { x: node.x + NODE_W * 0.72, y };\n return { x: node.x + NODE_W / 2, y };\n}\n\n/** Input port (top-center) for edges arriving at `node`. */\nexport function inPort(node: CanvasNode): { x: number; y: number } {\n return { x: node.x + NODE_W / 2, y: node.y };\n}\n\n/**\n * Serialize the graph into the `steps` JSON shape persisted by\n * createHeadshotmarketingWorkflow. Positions + config + edges all round-trip.\n */\nexport function serializeGraph(\n nodes: CanvasNode[],\n edges: CanvasEdge[],\n): Record<string, unknown> {\n return {\n version: 2,\n nodes: nodes.map((n, index) => ({\n id: n.id,\n kind: n.kind,\n actionType: n.actionType,\n label: n.label,\n order: index,\n position: { x: Math.round(n.x), y: Math.round(n.y) },\n config: n.config,\n })),\n edges: edges.map((e) => ({\n id: e.id,\n source: e.source,\n target: e.target,\n branch: e.branch,\n })),\n };\n}\n"],"mappings":";AA8DA,IAAa,IAAsC;CACjD,MAAM;CACN,SACE;CACF,SACE;CACF,OAAO;CACP,QACE;CACH,EAWY,IAA6B;CACxC;EAAE,MAAM;EAAc,OAAO;EAAc,MAAM;EAAM,MAAM;EAAQ;CACrE;EAAE,MAAM;EAAY,OAAO;EAAY,MAAM;EAAe,MAAM;EAAU;CAC5E;EAAE,MAAM;EAAQ,OAAO;EAAgB,MAAM;EAAO,MAAM;EAAW;CACrE;EACE,MAAM;EACN,OAAO;EACP,MAAM;EACN,MAAM;EACN,aAAa;EACd;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