@burdenoff/microfe-headshotmarketing 2026.1030.13 → 2026.1101.1

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 (69) hide show
  1. package/dist/generated/wspace-operations.d.ts +251 -0
  2. package/dist/generated/wspace-operations.d.ts.map +1 -1
  3. package/dist/generated/wspace-operations.js +446 -322
  4. package/dist/generated/wspace-operations.js.map +1 -1
  5. package/dist/generated/wspace-types.d.ts +4370 -34
  6. package/dist/generated/wspace-types.d.ts.map +1 -1
  7. package/dist/generated/wspace-types.js +3 -1
  8. package/dist/generated/wspace-types.js.map +1 -1
  9. package/dist/headshotmarketing/components/TrackedLinksPanel.d.ts +19 -0
  10. package/dist/headshotmarketing/components/TrackedLinksPanel.d.ts.map +1 -0
  11. package/dist/headshotmarketing/components/TrackedLinksPanel.js +246 -0
  12. package/dist/headshotmarketing/components/TrackedLinksPanel.js.map +1 -0
  13. package/dist/headshotmarketing/components/index.d.ts +1 -0
  14. package/dist/headshotmarketing/components/index.d.ts.map +1 -1
  15. package/dist/headshotmarketing/components/index.js +1 -0
  16. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.d.ts.map +1 -1
  17. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +245 -211
  18. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
  19. package/dist/headshotmarketing/pages/ads/AdCreativesPage.d.ts.map +1 -1
  20. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +86 -76
  21. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  22. package/dist/headshotmarketing/pages/analytics/AttributionPage.d.ts.map +1 -1
  23. package/dist/headshotmarketing/pages/analytics/AttributionPage.js +249 -244
  24. package/dist/headshotmarketing/pages/analytics/AttributionPage.js.map +1 -1
  25. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.d.ts +4 -0
  26. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.d.ts.map +1 -0
  27. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +196 -0
  28. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -0
  29. package/dist/headshotmarketing/pages/content/AIGeneratedBadge.d.ts +12 -0
  30. package/dist/headshotmarketing/pages/content/AIGeneratedBadge.d.ts.map +1 -0
  31. package/dist/headshotmarketing/pages/content/AIGeneratedBadge.js +30 -0
  32. package/dist/headshotmarketing/pages/content/AIGeneratedBadge.js.map +1 -0
  33. package/dist/headshotmarketing/pages/content/AIToolsPage.d.ts.map +1 -1
  34. package/dist/headshotmarketing/pages/content/AIToolsPage.js +51 -50
  35. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  36. package/dist/headshotmarketing/pages/content/ContentCreationPage.d.ts.map +1 -1
  37. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +409 -408
  38. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  39. package/dist/headshotmarketing/pages/content/ContentDetailsPage.d.ts.map +1 -1
  40. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +158 -104
  41. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
  42. package/dist/headshotmarketing/pages/content/ContentItemActions.d.ts +5 -0
  43. package/dist/headshotmarketing/pages/content/ContentItemActions.d.ts.map +1 -1
  44. package/dist/headshotmarketing/pages/content/ContentItemActions.js +103 -34
  45. package/dist/headshotmarketing/pages/content/ContentItemActions.js.map +1 -1
  46. package/dist/headshotmarketing/pages/content/ContentLibraryCard.d.ts.map +1 -1
  47. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +102 -102
  48. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
  49. package/dist/headshotmarketing/pages/crm/LeadCreateModal.d.ts.map +1 -1
  50. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +150 -76
  51. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
  52. package/dist/headshotmarketing/pages/social-media/PostsPage.d.ts.map +1 -1
  53. package/dist/headshotmarketing/pages/social-media/PostsPage.js +254 -246
  54. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  55. package/dist/headshotmarketing/types/index.d.ts +17 -0
  56. package/dist/headshotmarketing/types/index.d.ts.map +1 -1
  57. package/dist/headshotmarketing/utils/contentLibrary.d.ts +6 -0
  58. package/dist/headshotmarketing/utils/contentLibrary.d.ts.map +1 -1
  59. package/dist/headshotmarketing/utils/contentLibrary.js +17 -11
  60. package/dist/headshotmarketing/utils/contentLibrary.js.map +1 -1
  61. package/dist/headshotmarketing/utils/contentMapper.d.ts +13 -1
  62. package/dist/headshotmarketing/utils/contentMapper.d.ts.map +1 -1
  63. package/dist/headshotmarketing/utils/contentMapper.js +26 -13
  64. package/dist/headshotmarketing/utils/contentMapper.js.map +1 -1
  65. package/dist/headshotmarketing/utils/trackedLinks.d.ts +75 -0
  66. package/dist/headshotmarketing/utils/trackedLinks.d.ts.map +1 -0
  67. package/dist/headshotmarketing/utils/trackedLinks.js +99 -0
  68. package/dist/headshotmarketing/utils/trackedLinks.js.map +1 -0
  69. package/package.json +1 -1
@@ -1,12 +1,13 @@
1
1
  import { useCreateHeadshotmarketingLeadMutation as e } from "../../../generated/wspace-operations.js";
2
2
  import { HeadshotmarketingLeadSource as t, HeadshotmarketingLeadStatus as n } from "../../../generated/wspace-types.js";
3
3
  import { Modal as r } from "../../components/Modal.js";
4
+ import { LEAD_CAPTURE_SNIPPET as i, TRACKED_CLICK_ID_PARAM as a, extractTrackedClickId as o } from "../../utils/trackedLinks.js";
4
5
  import "../../components/index.js";
5
- import { useState as i } from "react";
6
- import { Plus as a } from "lucide-react";
7
- import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
6
+ import { useState as s } from "react";
7
+ import { Plus as c } from "lucide-react";
8
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
8
9
  //#region src/headshotmarketing/pages/crm/LeadCreateModal.tsx
9
- var l = "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", u = "block text-sm font-medium text-text-primary mb-1", d = [
10
+ var f = "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", p = "block text-sm font-medium text-text-primary mb-1", m = [
10
11
  {
11
12
  value: t.Website,
12
13
  label: "Website"
@@ -39,7 +40,7 @@ var l = "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 t
39
40
  value: t.Other,
40
41
  label: "Other"
41
42
  }
42
- ], f = [
43
+ ], h = [
43
44
  {
44
45
  value: n.New,
45
46
  label: "New"
@@ -64,169 +65,242 @@ var l = "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 t
64
65
  value: n.Lost,
65
66
  label: "Lost"
66
67
  }
67
- ], p = {
68
+ ], g = {
68
69
  title: "",
69
70
  contactId: "",
70
71
  source: t.Website,
71
72
  estimatedValue: "",
72
- status: n.New
73
- }, m = ({ open: t, onClose: n, contacts: m, onCreated: h }) => {
74
- let [g, _] = i(p), [v, y] = i(null), [b, { loading: x }] = e(), S = () => {
75
- x || (y(null), n());
76
- }, C = async () => {
77
- if (!g.title.trim()) {
78
- y("Lead title is required.");
73
+ status: n.New,
74
+ clickId: ""
75
+ }, _ = ({ open: t, onClose: n, contacts: _, onCreated: v }) => {
76
+ let [y, b] = s(g), [x, S] = s(null), [C, { loading: w }] = e(), T = () => {
77
+ w || (S(null), n());
78
+ }, E = async () => {
79
+ if (!y.title.trim()) {
80
+ S("Lead title is required.");
79
81
  return;
80
82
  }
81
83
  let e = null;
82
- if (g.estimatedValue.trim()) {
83
- let t = Number(g.estimatedValue);
84
+ if (y.estimatedValue.trim()) {
85
+ let t = Number(y.estimatedValue);
84
86
  if (!Number.isFinite(t) || t < 0) {
85
- y("Estimated value must be a non-negative number.");
87
+ S("Estimated value must be a non-negative number.");
86
88
  return;
87
89
  }
88
90
  e = t;
89
91
  }
90
- y(null);
92
+ let t = null;
93
+ if (y.clickId.trim() && (t = o(y.clickId), !t)) {
94
+ S(`Tracked click id must be the ${a} value or a URL that contains it.`);
95
+ return;
96
+ }
97
+ S(null);
91
98
  try {
92
- await b({ variables: { input: {
93
- title: g.title.trim(),
94
- contactId: g.contactId || null,
95
- source: g.source,
96
- status: g.status,
97
- estimatedValue: e
98
- } } }), _(p), h(), n();
99
+ await C({ variables: { input: {
100
+ title: y.title.trim(),
101
+ contactId: y.contactId || null,
102
+ source: y.source,
103
+ status: y.status,
104
+ estimatedValue: e,
105
+ attributionClickId: t
106
+ } } }), b(g), v(), n();
99
107
  } catch (e) {
100
- y(e instanceof Error ? e.message : "Failed to create lead.");
108
+ S(e instanceof Error ? e.message : "Failed to create lead.");
101
109
  }
102
- }, w = (e) => {
110
+ }, D = (e) => {
103
111
  let t = `${e.firstName} ${e.lastName}`.trim() || "Contact";
104
112
  return e.company ? `${t} · ${e.company}` : t;
105
113
  };
106
- return /* @__PURE__ */ s(r, {
114
+ return /* @__PURE__ */ u(r, {
107
115
  open: t,
108
- onClose: S,
116
+ onClose: T,
109
117
  title: "New lead",
110
118
  description: "Capture a prospect and route it into your pipeline.",
111
119
  size: "lg",
112
- footer: /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("button", {
120
+ footer: /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("button", {
113
121
  type: "button",
114
- onClick: S,
122
+ onClick: T,
115
123
  className: "inline-flex items-center gap-2 rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
116
124
  children: "Cancel"
117
- }), /* @__PURE__ */ c("button", {
125
+ }), /* @__PURE__ */ d("button", {
118
126
  type: "button",
119
- onClick: () => void C(),
120
- disabled: x,
127
+ onClick: () => void E(),
128
+ disabled: w,
121
129
  className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60",
122
- children: [/* @__PURE__ */ s(a, { className: "h-4 w-4" }), x ? "Creating…" : "Create lead"]
130
+ children: [/* @__PURE__ */ u(c, { className: "h-4 w-4" }), w ? "Creating…" : "Create lead"]
123
131
  })] }),
124
- children: /* @__PURE__ */ c("div", {
132
+ children: /* @__PURE__ */ d("div", {
125
133
  className: "space-y-4",
126
134
  children: [
127
- /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("label", {
128
- className: u,
135
+ /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("label", {
136
+ className: p,
129
137
  htmlFor: "new-lead-title",
130
138
  children: "Title"
131
- }), /* @__PURE__ */ s("input", {
139
+ }), /* @__PURE__ */ u("input", {
132
140
  id: "new-lead-title",
133
- className: l,
141
+ className: f,
134
142
  placeholder: "e.g. Website enquiry — corporate headshots",
135
- value: g.title,
136
- onChange: (e) => _((t) => ({
143
+ value: y.title,
144
+ onChange: (e) => b((t) => ({
137
145
  ...t,
138
146
  title: e.target.value
139
147
  }))
140
148
  })] }),
141
- /* @__PURE__ */ c("div", { children: [
142
- /* @__PURE__ */ s("label", {
143
- className: u,
149
+ /* @__PURE__ */ d("div", { children: [
150
+ /* @__PURE__ */ u("label", {
151
+ className: p,
144
152
  htmlFor: "new-lead-contact",
145
153
  children: "Linked contact"
146
154
  }),
147
- /* @__PURE__ */ c("select", {
155
+ /* @__PURE__ */ d("select", {
148
156
  id: "new-lead-contact",
149
- className: l,
150
- value: g.contactId,
151
- onChange: (e) => _((t) => ({
157
+ className: f,
158
+ value: y.contactId,
159
+ onChange: (e) => b((t) => ({
152
160
  ...t,
153
161
  contactId: e.target.value
154
162
  })),
155
- children: [/* @__PURE__ */ s("option", {
163
+ children: [/* @__PURE__ */ u("option", {
156
164
  value: "",
157
165
  children: "No linked contact"
158
- }), m.map((e) => /* @__PURE__ */ s("option", {
166
+ }), _.map((e) => /* @__PURE__ */ u("option", {
159
167
  value: e.id,
160
- children: w(e)
168
+ children: D(e)
161
169
  }, e.id))]
162
170
  }),
163
- m.length === 0 && /* @__PURE__ */ s("p", {
171
+ _.length === 0 && /* @__PURE__ */ u("p", {
164
172
  className: "mt-1 text-xs text-text-secondary",
165
173
  children: "No contacts yet — you can link one later from the contact record."
166
174
  })
167
175
  ] }),
168
- /* @__PURE__ */ c("div", {
176
+ /* @__PURE__ */ d("div", {
169
177
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
170
- children: [/* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("label", {
171
- className: u,
178
+ children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("label", {
179
+ className: p,
172
180
  htmlFor: "new-lead-source",
173
181
  children: "Source"
174
- }), /* @__PURE__ */ s("select", {
182
+ }), /* @__PURE__ */ u("select", {
175
183
  id: "new-lead-source",
176
- className: l,
177
- value: g.source,
178
- onChange: (e) => _((t) => ({
184
+ className: f,
185
+ value: y.source,
186
+ onChange: (e) => b((t) => ({
179
187
  ...t,
180
188
  source: e.target.value
181
189
  })),
182
- children: d.map((e) => /* @__PURE__ */ s("option", {
190
+ children: m.map((e) => /* @__PURE__ */ u("option", {
183
191
  value: e.value,
184
192
  children: e.label
185
193
  }, e.value))
186
- })] }), /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("label", {
187
- className: u,
194
+ })] }), /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("label", {
195
+ className: p,
188
196
  htmlFor: "new-lead-status",
189
197
  children: "Status"
190
- }), /* @__PURE__ */ s("select", {
198
+ }), /* @__PURE__ */ u("select", {
191
199
  id: "new-lead-status",
192
- className: l,
193
- value: g.status,
194
- onChange: (e) => _((t) => ({
200
+ className: f,
201
+ value: y.status,
202
+ onChange: (e) => b((t) => ({
195
203
  ...t,
196
204
  status: e.target.value
197
205
  })),
198
- children: f.map((e) => /* @__PURE__ */ s("option", {
206
+ children: h.map((e) => /* @__PURE__ */ u("option", {
199
207
  value: e.value,
200
208
  children: e.label
201
209
  }, e.value))
202
210
  })] })]
203
211
  }),
204
- /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("label", {
205
- className: u,
212
+ /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("label", {
213
+ className: p,
206
214
  htmlFor: "new-lead-value",
207
215
  children: "Estimated value ($)"
208
- }), /* @__PURE__ */ s("input", {
216
+ }), /* @__PURE__ */ u("input", {
209
217
  id: "new-lead-value",
210
218
  type: "number",
211
219
  min: "0",
212
220
  step: "1",
213
- className: l,
221
+ className: f,
214
222
  placeholder: "Optional",
215
- value: g.estimatedValue,
216
- onChange: (e) => _((t) => ({
223
+ value: y.estimatedValue,
224
+ onChange: (e) => b((t) => ({
217
225
  ...t,
218
226
  estimatedValue: e.target.value
219
227
  }))
220
228
  })] }),
221
- v && /* @__PURE__ */ s("div", {
229
+ /* @__PURE__ */ d("div", { children: [
230
+ /* @__PURE__ */ u("label", {
231
+ className: p,
232
+ htmlFor: "new-lead-click-id",
233
+ children: "Tracked click id (optional)"
234
+ }),
235
+ /* @__PURE__ */ u("input", {
236
+ id: "new-lead-click-id",
237
+ className: f,
238
+ placeholder: `${a} value or the landing page URL`,
239
+ value: y.clickId,
240
+ onChange: (e) => b((t) => ({
241
+ ...t,
242
+ clickId: e.target.value
243
+ }))
244
+ }),
245
+ /* @__PURE__ */ d("p", {
246
+ className: "mt-1 text-xs text-text-secondary",
247
+ children: [
248
+ "Tracked social and ad links add",
249
+ " ",
250
+ /* @__PURE__ */ u("code", {
251
+ className: "font-mono",
252
+ children: a
253
+ }),
254
+ " to the landing page URL. Paste it here (or the whole URL) to attribute the click to this lead."
255
+ ]
256
+ }),
257
+ /* @__PURE__ */ d("details", {
258
+ className: "mt-2 rounded-md border border-border-subtle bg-bg-sunken/40 px-3 py-2",
259
+ children: [
260
+ /* @__PURE__ */ u("summary", {
261
+ className: "cursor-pointer text-xs font-medium text-text-primary",
262
+ children: "Capture it automatically from your lead form"
263
+ }),
264
+ /* @__PURE__ */ d("p", {
265
+ className: "mt-2 text-xs text-text-secondary",
266
+ children: [
267
+ "On the landing page, read",
268
+ " ",
269
+ /* @__PURE__ */ u("code", {
270
+ className: "font-mono",
271
+ children: a
272
+ }),
273
+ " from the URL and pass it as",
274
+ " ",
275
+ /* @__PURE__ */ u("code", {
276
+ className: "font-mono",
277
+ children: "attributionClickId"
278
+ }),
279
+ " to",
280
+ " ",
281
+ /* @__PURE__ */ u("code", {
282
+ className: "font-mono",
283
+ children: "createHeadshotmarketingLead"
284
+ }),
285
+ ". Unknown, expired or already-used ids are ignored."
286
+ ]
287
+ }),
288
+ /* @__PURE__ */ u("pre", {
289
+ className: "mt-2 overflow-x-auto rounded bg-bg-surface p-2 font-mono text-[11px] text-text-primary",
290
+ children: i
291
+ })
292
+ ]
293
+ })
294
+ ] }),
295
+ x && /* @__PURE__ */ u("div", {
222
296
  className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
223
- children: v
297
+ children: x
224
298
  })
225
299
  ]
226
300
  })
227
301
  });
228
302
  };
229
303
  //#endregion
230
- export { m as LeadCreateModal };
304
+ export { _ as LeadCreateModal };
231
305
 
232
306
  //# sourceMappingURL=LeadCreateModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LeadCreateModal.js","names":[],"sources":["../../../../src/headshotmarketing/pages/crm/LeadCreateModal.tsx"],"sourcesContent":["/**\n * New-lead creation modal\n *\n * Co-located with LeadsPage. Opens from the page header \"New Lead\" button and\n * captures the minimum a lead needs — a title, an optional link to an existing\n * bootstrap contact, a source, an estimated value and a status — then writes it\n * through the real `useCreateHeadshotmarketingLeadMutation`. On success it calls\n * `onCreated()` (the page's bootstrap `refetch`) so the new row appears, then\n * closes. All fields map straight to `CreateHeadshotmarketingLeadInput`; nothing\n * is mocked.\n *\n * @module headshotmarketing/pages/crm\n */\n\nimport { useState, type FC } from \"react\";\nimport { Plus } from \"lucide-react\";\nimport { Modal } from \"../../components\";\nimport {\n HeadshotmarketingLeadSource,\n HeadshotmarketingLeadStatus,\n} from \"../../../generated/wspace-types\";\nimport { useCreateHeadshotmarketingLeadMutation } from \"../../../generated/wspace-operations\";\nimport type { Contact } from \"../../types\";\n\nconst inputClass =\n \"w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]\";\nconst labelClass = \"block text-sm font-medium text-text-primary mb-1\";\n\nconst LEAD_SOURCE_OPTIONS: {\n value: HeadshotmarketingLeadSource;\n label: string;\n}[] = [\n { value: HeadshotmarketingLeadSource.Website, label: \"Website\" },\n { value: HeadshotmarketingLeadSource.SocialMedia, label: \"Social media\" },\n { value: HeadshotmarketingLeadSource.AdCampaign, label: \"Ad campaign\" },\n { value: HeadshotmarketingLeadSource.Email, label: \"Email\" },\n { value: HeadshotmarketingLeadSource.Referral, label: \"Referral\" },\n { value: HeadshotmarketingLeadSource.Event, label: \"Event\" },\n { value: HeadshotmarketingLeadSource.ColdOutreach, label: \"Cold outreach\" },\n { value: HeadshotmarketingLeadSource.Other, label: \"Other\" },\n];\n\nconst LEAD_STATUS_OPTIONS: {\n value: HeadshotmarketingLeadStatus;\n label: string;\n}[] = [\n { value: HeadshotmarketingLeadStatus.New, label: \"New\" },\n { value: HeadshotmarketingLeadStatus.Contacted, label: \"Contacted\" },\n { value: HeadshotmarketingLeadStatus.Qualified, label: \"Qualified\" },\n { value: HeadshotmarketingLeadStatus.Unqualified, label: \"Unqualified\" },\n { value: HeadshotmarketingLeadStatus.Converted, label: \"Converted\" },\n { value: HeadshotmarketingLeadStatus.Lost, label: \"Lost\" },\n];\n\nconst EMPTY_FORM = {\n title: \"\",\n contactId: \"\",\n source: HeadshotmarketingLeadSource.Website,\n estimatedValue: \"\",\n status: HeadshotmarketingLeadStatus.New,\n};\n\nexport interface LeadCreateModalProps {\n open: boolean;\n onClose: () => void;\n /** Existing bootstrap contacts the new lead can be linked to. */\n contacts: Contact[];\n /** Called after a successful create (wire to the page's bootstrap refetch). */\n onCreated: () => void;\n}\n\nexport const LeadCreateModal: FC<LeadCreateModalProps> = ({\n open,\n onClose,\n contacts,\n onCreated,\n}) => {\n const [form, setForm] = useState(EMPTY_FORM);\n const [error, setError] = useState<string | null>(null);\n const [createLead, { loading: saving }] =\n useCreateHeadshotmarketingLeadMutation();\n\n const handleClose = (): void => {\n if (saving) return;\n setError(null);\n onClose();\n };\n\n const handleSave = async (): Promise<void> => {\n if (!form.title.trim()) {\n setError(\"Lead title is required.\");\n return;\n }\n let estimatedValue: number | null = null;\n if (form.estimatedValue.trim()) {\n const parsed = Number(form.estimatedValue);\n if (!Number.isFinite(parsed) || parsed < 0) {\n setError(\"Estimated value must be a non-negative number.\");\n return;\n }\n estimatedValue = parsed;\n }\n setError(null);\n try {\n await createLead({\n variables: {\n input: {\n title: form.title.trim(),\n contactId: form.contactId || null,\n source: form.source,\n status: form.status,\n estimatedValue,\n },\n },\n });\n setForm(EMPTY_FORM);\n onCreated();\n onClose();\n } catch (err) {\n setError(err instanceof Error ? err.message : \"Failed to create lead.\");\n }\n };\n\n const contactLabel = (contact: Contact): string => {\n const name = `${contact.firstName} ${contact.lastName}`.trim() || \"Contact\";\n return contact.company ? `${name} · ${contact.company}` : name;\n };\n\n return (\n <Modal\n open={open}\n onClose={handleClose}\n title=\"New lead\"\n description=\"Capture a prospect and route it into your pipeline.\"\n size=\"lg\"\n footer={\n <>\n <button\n type=\"button\"\n onClick={handleClose}\n className=\"inline-flex items-center gap-2 rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken\"\n >\n Cancel\n </button>\n <button\n type=\"button\"\n onClick={() => void handleSave()}\n disabled={saving}\n className=\"inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60\"\n >\n <Plus className=\"h-4 w-4\" />\n {saving ? \"Creating…\" : \"Create lead\"}\n </button>\n </>\n }\n >\n <div className=\"space-y-4\">\n <div>\n <label className={labelClass} htmlFor=\"new-lead-title\">\n Title\n </label>\n <input\n id=\"new-lead-title\"\n className={inputClass}\n placeholder=\"e.g. Website enquiry — corporate headshots\"\n value={form.title}\n onChange={(e) => setForm((p) => ({ ...p, title: e.target.value }))}\n />\n </div>\n\n <div>\n <label className={labelClass} htmlFor=\"new-lead-contact\">\n Linked contact\n </label>\n <select\n id=\"new-lead-contact\"\n className={inputClass}\n value={form.contactId}\n onChange={(e) =>\n setForm((p) => ({ ...p, contactId: e.target.value }))\n }\n >\n <option value=\"\">No linked contact</option>\n {contacts.map((contact) => (\n <option key={contact.id} value={contact.id}>\n {contactLabel(contact)}\n </option>\n ))}\n </select>\n {contacts.length === 0 && (\n <p className=\"mt-1 text-xs text-text-secondary\">\n No contacts yet — you can link one later from the contact record.\n </p>\n )}\n </div>\n\n <div className=\"grid grid-cols-1 gap-4 sm:grid-cols-2\">\n <div>\n <label className={labelClass} htmlFor=\"new-lead-source\">\n Source\n </label>\n <select\n id=\"new-lead-source\"\n className={inputClass}\n value={form.source}\n onChange={(e) =>\n setForm((p) => ({\n ...p,\n source: e.target.value as HeadshotmarketingLeadSource,\n }))\n }\n >\n {LEAD_SOURCE_OPTIONS.map((o) => (\n <option key={o.value} value={o.value}>\n {o.label}\n </option>\n ))}\n </select>\n </div>\n <div>\n <label className={labelClass} htmlFor=\"new-lead-status\">\n Status\n </label>\n <select\n id=\"new-lead-status\"\n className={inputClass}\n value={form.status}\n onChange={(e) =>\n setForm((p) => ({\n ...p,\n status: e.target.value as HeadshotmarketingLeadStatus,\n }))\n }\n >\n {LEAD_STATUS_OPTIONS.map((o) => (\n <option key={o.value} value={o.value}>\n {o.label}\n </option>\n ))}\n </select>\n </div>\n </div>\n\n <div>\n <label className={labelClass} htmlFor=\"new-lead-value\">\n Estimated value ($)\n </label>\n <input\n id=\"new-lead-value\"\n type=\"number\"\n min=\"0\"\n step=\"1\"\n className={inputClass}\n placeholder=\"Optional\"\n value={form.estimatedValue}\n onChange={(e) =>\n setForm((p) => ({ ...p, estimatedValue: e.target.value }))\n }\n />\n </div>\n\n {error && (\n <div className=\"rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text\">\n {error}\n </div>\n )}\n </div>\n </Modal>\n );\n};\n"],"mappings":";;;;;;;;AAwBA,IAAM,IACJ,wMACI,IAAa,oDAEb,IAGA;CACJ;EAAE,OAAO,EAA4B;EAAS,OAAO;EAAW;CAChE;EAAE,OAAO,EAA4B;EAAa,OAAO;EAAgB;CACzE;EAAE,OAAO,EAA4B;EAAY,OAAO;EAAe;CACvE;EAAE,OAAO,EAA4B;EAAO,OAAO;EAAS;CAC5D;EAAE,OAAO,EAA4B;EAAU,OAAO;EAAY;CAClE;EAAE,OAAO,EAA4B;EAAO,OAAO;EAAS;CAC5D;EAAE,OAAO,EAA4B;EAAc,OAAO;EAAiB;CAC3E;EAAE,OAAO,EAA4B;EAAO,OAAO;EAAS;CAC7D,EAEK,IAGA;CACJ;EAAE,OAAO,EAA4B;EAAK,OAAO;EAAO;CACxD;EAAE,OAAO,EAA4B;EAAW,OAAO;EAAa;CACpE;EAAE,OAAO,EAA4B;EAAW,OAAO;EAAa;CACpE;EAAE,OAAO,EAA4B;EAAa,OAAO;EAAe;CACxE;EAAE,OAAO,EAA4B;EAAW,OAAO;EAAa;CACpE;EAAE,OAAO,EAA4B;EAAM,OAAO;EAAQ;CAC3D,EAEK,IAAa;CACjB,OAAO;CACP,WAAW;CACX,QAAQ,EAA4B;CACpC,gBAAgB;CAChB,QAAQ,EAA4B;CACrC,EAWY,KAA6C,EACxD,SACA,YACA,aACA,mBACI;CACJ,IAAM,CAAC,GAAM,KAAW,EAAS,EAAW,EACtC,CAAC,GAAO,KAAY,EAAwB,KAAK,EACjD,CAAC,GAAY,EAAE,SAAS,OAC5B,GAAwC,EAEpC,UAA0B;AAC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AS,OAAO;OACd,GAAG;OACH,QAAQ,EAAE,OAAO;OAClB,EAAE;gBAGJ,EAAoB,KAAK,MACxB,kBAAC,UAAD;OAAsB,OAAO,EAAE;iBAC5B,EAAE;OACI,EAFI,EAAE,MAEN,CACT;MACK,CAAA,CACL,EAAA,CAAA,CACF;;IAEN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,SAAD;KAAO,WAAW;KAAY,SAAQ;eAAiB;KAE/C,CAAA,EACR,kBAAC,SAAD;KACE,IAAG;KACH,MAAK;KACL,KAAI;KACJ,MAAK;KACL,WAAW;KACX,aAAY;KACZ,OAAO,EAAK;KACZ,WAAW,MACT,GAAS,OAAO;MAAE,GAAG;MAAG,gBAAgB,EAAE,OAAO;MAAO,EAAE;KAE5D,CAAA,CACE,EAAA,CAAA;IAEL,KACC,kBAAC,OAAD;KAAK,WAAU;eACZ;KACG,CAAA;IAEJ;;EACA,CAAA"}
1
+ {"version":3,"file":"LeadCreateModal.js","names":[],"sources":["../../../../src/headshotmarketing/pages/crm/LeadCreateModal.tsx"],"sourcesContent":["/**\n * New-lead creation modal\n *\n * Co-located with LeadsPage. Opens from the page header \"New Lead\" button and\n * captures the minimum a lead needs — a title, an optional link to an existing\n * bootstrap contact, a source, an estimated value and a status — then writes it\n * through the real `useCreateHeadshotmarketingLeadMutation`. On success it calls\n * `onCreated()` (the page's bootstrap `refetch`) so the new row appears, then\n * closes. All fields map straight to `CreateHeadshotmarketingLeadInput`; nothing\n * is mocked. The optional tracked click id (BOFF-10496) accepts the `hm_cid`\n * value or the landing-page URL that carries it and is sent as\n * `attributionClickId`, so the click that produced the lead is attributed.\n *\n * @module headshotmarketing/pages/crm\n */\n\nimport { useState, type FC } from \"react\";\nimport { Plus } from \"lucide-react\";\nimport { Modal } from \"../../components\";\nimport {\n LEAD_CAPTURE_SNIPPET,\n TRACKED_CLICK_ID_PARAM,\n extractTrackedClickId,\n} from \"../../utils/trackedLinks\";\nimport {\n HeadshotmarketingLeadSource,\n HeadshotmarketingLeadStatus,\n} from \"../../../generated/wspace-types\";\nimport { useCreateHeadshotmarketingLeadMutation } from \"../../../generated/wspace-operations\";\nimport type { Contact } from \"../../types\";\n\nconst inputClass =\n \"w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]\";\nconst labelClass = \"block text-sm font-medium text-text-primary mb-1\";\n\nconst LEAD_SOURCE_OPTIONS: {\n value: HeadshotmarketingLeadSource;\n label: string;\n}[] = [\n { value: HeadshotmarketingLeadSource.Website, label: \"Website\" },\n { value: HeadshotmarketingLeadSource.SocialMedia, label: \"Social media\" },\n { value: HeadshotmarketingLeadSource.AdCampaign, label: \"Ad campaign\" },\n { value: HeadshotmarketingLeadSource.Email, label: \"Email\" },\n { value: HeadshotmarketingLeadSource.Referral, label: \"Referral\" },\n { value: HeadshotmarketingLeadSource.Event, label: \"Event\" },\n { value: HeadshotmarketingLeadSource.ColdOutreach, label: \"Cold outreach\" },\n { value: HeadshotmarketingLeadSource.Other, label: \"Other\" },\n];\n\nconst LEAD_STATUS_OPTIONS: {\n value: HeadshotmarketingLeadStatus;\n label: string;\n}[] = [\n { value: HeadshotmarketingLeadStatus.New, label: \"New\" },\n { value: HeadshotmarketingLeadStatus.Contacted, label: \"Contacted\" },\n { value: HeadshotmarketingLeadStatus.Qualified, label: \"Qualified\" },\n { value: HeadshotmarketingLeadStatus.Unqualified, label: \"Unqualified\" },\n { value: HeadshotmarketingLeadStatus.Converted, label: \"Converted\" },\n { value: HeadshotmarketingLeadStatus.Lost, label: \"Lost\" },\n];\n\nconst EMPTY_FORM = {\n title: \"\",\n contactId: \"\",\n source: HeadshotmarketingLeadSource.Website,\n estimatedValue: \"\",\n status: HeadshotmarketingLeadStatus.New,\n clickId: \"\",\n};\n\nexport interface LeadCreateModalProps {\n open: boolean;\n onClose: () => void;\n /** Existing bootstrap contacts the new lead can be linked to. */\n contacts: Contact[];\n /** Called after a successful create (wire to the page's bootstrap refetch). */\n onCreated: () => void;\n}\n\nexport const LeadCreateModal: FC<LeadCreateModalProps> = ({\n open,\n onClose,\n contacts,\n onCreated,\n}) => {\n const [form, setForm] = useState(EMPTY_FORM);\n const [error, setError] = useState<string | null>(null);\n const [createLead, { loading: saving }] =\n useCreateHeadshotmarketingLeadMutation();\n\n const handleClose = (): void => {\n if (saving) return;\n setError(null);\n onClose();\n };\n\n const handleSave = async (): Promise<void> => {\n if (!form.title.trim()) {\n setError(\"Lead title is required.\");\n return;\n }\n let estimatedValue: number | null = null;\n if (form.estimatedValue.trim()) {\n const parsed = Number(form.estimatedValue);\n if (!Number.isFinite(parsed) || parsed < 0) {\n setError(\"Estimated value must be a non-negative number.\");\n return;\n }\n estimatedValue = parsed;\n }\n let attributionClickId: string | null = null;\n if (form.clickId.trim()) {\n attributionClickId = extractTrackedClickId(form.clickId);\n if (!attributionClickId) {\n setError(\n `Tracked click id must be the ${TRACKED_CLICK_ID_PARAM} value or a URL that contains it.`,\n );\n return;\n }\n }\n setError(null);\n try {\n await createLead({\n variables: {\n input: {\n title: form.title.trim(),\n contactId: form.contactId || null,\n source: form.source,\n status: form.status,\n estimatedValue,\n attributionClickId,\n },\n },\n });\n setForm(EMPTY_FORM);\n onCreated();\n onClose();\n } catch (err) {\n setError(err instanceof Error ? err.message : \"Failed to create lead.\");\n }\n };\n\n const contactLabel = (contact: Contact): string => {\n const name = `${contact.firstName} ${contact.lastName}`.trim() || \"Contact\";\n return contact.company ? `${name} · ${contact.company}` : name;\n };\n\n return (\n <Modal\n open={open}\n onClose={handleClose}\n title=\"New lead\"\n description=\"Capture a prospect and route it into your pipeline.\"\n size=\"lg\"\n footer={\n <>\n <button\n type=\"button\"\n onClick={handleClose}\n className=\"inline-flex items-center gap-2 rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken\"\n >\n Cancel\n </button>\n <button\n type=\"button\"\n onClick={() => void handleSave()}\n disabled={saving}\n className=\"inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60\"\n >\n <Plus className=\"h-4 w-4\" />\n {saving ? \"Creating…\" : \"Create lead\"}\n </button>\n </>\n }\n >\n <div className=\"space-y-4\">\n <div>\n <label className={labelClass} htmlFor=\"new-lead-title\">\n Title\n </label>\n <input\n id=\"new-lead-title\"\n className={inputClass}\n placeholder=\"e.g. Website enquiry — corporate headshots\"\n value={form.title}\n onChange={(e) => setForm((p) => ({ ...p, title: e.target.value }))}\n />\n </div>\n\n <div>\n <label className={labelClass} htmlFor=\"new-lead-contact\">\n Linked contact\n </label>\n <select\n id=\"new-lead-contact\"\n className={inputClass}\n value={form.contactId}\n onChange={(e) =>\n setForm((p) => ({ ...p, contactId: e.target.value }))\n }\n >\n <option value=\"\">No linked contact</option>\n {contacts.map((contact) => (\n <option key={contact.id} value={contact.id}>\n {contactLabel(contact)}\n </option>\n ))}\n </select>\n {contacts.length === 0 && (\n <p className=\"mt-1 text-xs text-text-secondary\">\n No contacts yet — you can link one later from the contact record.\n </p>\n )}\n </div>\n\n <div className=\"grid grid-cols-1 gap-4 sm:grid-cols-2\">\n <div>\n <label className={labelClass} htmlFor=\"new-lead-source\">\n Source\n </label>\n <select\n id=\"new-lead-source\"\n className={inputClass}\n value={form.source}\n onChange={(e) =>\n setForm((p) => ({\n ...p,\n source: e.target.value as HeadshotmarketingLeadSource,\n }))\n }\n >\n {LEAD_SOURCE_OPTIONS.map((o) => (\n <option key={o.value} value={o.value}>\n {o.label}\n </option>\n ))}\n </select>\n </div>\n <div>\n <label className={labelClass} htmlFor=\"new-lead-status\">\n Status\n </label>\n <select\n id=\"new-lead-status\"\n className={inputClass}\n value={form.status}\n onChange={(e) =>\n setForm((p) => ({\n ...p,\n status: e.target.value as HeadshotmarketingLeadStatus,\n }))\n }\n >\n {LEAD_STATUS_OPTIONS.map((o) => (\n <option key={o.value} value={o.value}>\n {o.label}\n </option>\n ))}\n </select>\n </div>\n </div>\n\n <div>\n <label className={labelClass} htmlFor=\"new-lead-value\">\n Estimated value ($)\n </label>\n <input\n id=\"new-lead-value\"\n type=\"number\"\n min=\"0\"\n step=\"1\"\n className={inputClass}\n placeholder=\"Optional\"\n value={form.estimatedValue}\n onChange={(e) =>\n setForm((p) => ({ ...p, estimatedValue: e.target.value }))\n }\n />\n </div>\n\n <div>\n <label className={labelClass} htmlFor=\"new-lead-click-id\">\n Tracked click id (optional)\n </label>\n <input\n id=\"new-lead-click-id\"\n className={inputClass}\n placeholder={`${TRACKED_CLICK_ID_PARAM} value or the landing page URL`}\n value={form.clickId}\n onChange={(e) =>\n setForm((p) => ({ ...p, clickId: e.target.value }))\n }\n />\n <p className=\"mt-1 text-xs text-text-secondary\">\n Tracked social and ad links add{\" \"}\n <code className=\"font-mono\">{TRACKED_CLICK_ID_PARAM}</code> to the\n landing page URL. Paste it here (or the whole URL) to attribute the\n click to this lead.\n </p>\n <details className=\"mt-2 rounded-md border border-border-subtle bg-bg-sunken/40 px-3 py-2\">\n <summary className=\"cursor-pointer text-xs font-medium text-text-primary\">\n Capture it automatically from your lead form\n </summary>\n <p className=\"mt-2 text-xs text-text-secondary\">\n On the landing page, read{\" \"}\n <code className=\"font-mono\">{TRACKED_CLICK_ID_PARAM}</code> from\n the URL and pass it as{\" \"}\n <code className=\"font-mono\">attributionClickId</code> to{\" \"}\n <code className=\"font-mono\">createHeadshotmarketingLead</code>.\n Unknown, expired or already-used ids are ignored.\n </p>\n <pre className=\"mt-2 overflow-x-auto rounded bg-bg-surface p-2 font-mono text-[11px] text-text-primary\">\n {LEAD_CAPTURE_SNIPPET}\n </pre>\n </details>\n </div>\n\n {error && (\n <div className=\"rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text\">\n {error}\n </div>\n )}\n </div>\n </Modal>\n );\n};\n"],"mappings":";;;;;;;;;AA+BA,IAAM,IACJ,wMACI,IAAa,o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PostsPage.d.ts","sourceRoot":"","sources":["../../../../src/headshotmarketing/pages/social-media/PostsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAoF9D,eAAO,MAAM,SAAS,EAAE,EA0uBvB,CAAC"}
1
+ {"version":3,"file":"PostsPage.d.ts","sourceRoot":"","sources":["../../../../src/headshotmarketing/pages/social-media/PostsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAqF9D,eAAO,MAAM,SAAS,EAAE,EAsvBvB,CAAC"}