@drawbridge/components 0.1.14 → 0.1.15

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 (27) hide show
  1. package/dist/bridge/form-subdomain-missions.js +77 -38
  2. package/dist/bridge/form-subdomain-missions.mjs +76 -38
  3. package/dist/dashboard/card-campaign-switch.js +55 -43
  4. package/dist/dashboard/card-campaign-switch.mjs +56 -44
  5. package/dist/dashboard/card-order.js +216 -31
  6. package/dist/dashboard/card-order.mjs +216 -31
  7. package/dist/dashboard/connection-workflows.js +13 -4
  8. package/dist/dashboard/connection-workflows.mjs +13 -4
  9. package/dist/dashboard/form-organization-campaign-field-select.js +51 -5
  10. package/dist/dashboard/form-organization-campaign-field-select.mjs +51 -5
  11. package/dist/dashboard/form-organization-campaign-field-textarea.js +46 -8
  12. package/dist/dashboard/form-organization-campaign-field-textarea.mjs +46 -8
  13. package/dist/dashboard/form-organization-campaign-section.js +24 -4
  14. package/dist/dashboard/form-organization-campaign-section.mjs +24 -4
  15. package/dist/dashboard/form-organization-workflow.js +222 -33
  16. package/dist/dashboard/form-organization-workflow.mjs +219 -33
  17. package/dist/input-code.js +35 -53
  18. package/dist/input-code.mjs +26 -54
  19. package/dist/shared/button.js +1 -1
  20. package/dist/shared/button.mjs +1 -1
  21. package/dist/shared/lib/campaign.js +9 -3
  22. package/dist/shared/lib/campaign.mjs +7 -2
  23. package/package.json +1 -1
  24. package/types/bridge/form-subdomain-missions.d.ts +3 -1
  25. package/types/dashboard/card-order.d.ts +15 -2
  26. package/types/dashboard/form-organization-campaign-section.d.ts +2 -0
  27. package/types/dashboard/form-organization-workflow.d.ts +13 -0
@@ -28,10 +28,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
28
28
  var form_organization_workflow_exports = {};
29
29
  __export(form_organization_workflow_exports, {
30
30
  FormOrganizationWorkflowEdit: () => FormOrganizationWorkflowEdit,
31
+ SAMPLE: () => SAMPLE,
31
32
  prefillRow: () => prefillRow,
32
33
  stepReason: () => stepReason,
33
34
  stepRow: () => stepRow,
34
35
  stepVariables: () => stepVariables,
36
+ teamSample: () => teamSample,
37
+ webhookSample: () => webhookSample,
35
38
  workflowSchema: () => workflowSchema
36
39
  });
37
40
  module.exports = __toCommonJS(form_organization_workflow_exports);
@@ -54,6 +57,8 @@ var import_input_combobox = __toESM(require("./input-combobox"));
54
57
  var import_form_notification = require("./form-notification");
55
58
  var import_input_array = require("./input-array");
56
59
  var import_badge = __toESM(require("../shared/badge"));
60
+ var import_input_switch = __toESM(require("../shared/input-switch"));
61
+ var import_tooltip = __toESM(require("../shared/tooltip"));
57
62
  var import_card_section = __toESM(require("./card-section"));
58
63
  var import_accordion = __toESM(require("./accordion"));
59
64
  var import_preview = __toESM(require("./preview"));
@@ -146,8 +151,14 @@ const stepReason = ({ entry, saved = [], type }) => {
146
151
  const stepRow = (step = {}, members = []) => {
147
152
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
148
153
  return {
154
+ // @story workflows/entry-confirmation
155
+ // The System email: no remove and no switch ( the api keeps it on ).
156
+ confirmation: Boolean(step.confirmation),
149
157
  connectionId: step.connectionId || "",
150
158
  discount: ((_a = step.settings) == null ? void 0 : _a.discount) || null,
159
+ // @story workflows/step-switch
160
+ // The step's own switch; absent reads on.
161
+ enabled: step.enabled !== false,
151
162
  // Stored as ids, picked as documents. Hydrating through the fetched list
152
163
  // also drops ids whose member no longer exists — a removed teammate
153
164
  // leaves their id on the step, and an id with nothing behind it would
@@ -232,8 +243,8 @@ const samples = [
232
243
  value: "verified"
233
244
  }
234
245
  ];
235
- const useEmailPreview = ({ campaign, event, message, organization, sample, subject, text }) => {
236
- const asked = JSON.stringify({ message, sample, subject, text });
246
+ const useEmailPreview = ({ campaign, confirmation = false, event, message, organization, sample, subject, text }) => {
247
+ const asked = JSON.stringify({ ...confirmation && { confirmation }, message, sample, subject, text });
237
248
  const [settled, setSettled] = (0, import_react.useState)(asked);
238
249
  (0, import_react.useEffect)(() => {
239
250
  const timer = setTimeout(() => setSettled(asked), 400);
@@ -258,8 +269,10 @@ const EmailStepCard = ({
258
269
  card,
259
270
  children,
260
271
  control,
272
+ off,
261
273
  email: {
262
274
  campaign,
275
+ confirmation,
263
276
  event,
264
277
  name,
265
278
  organization
@@ -270,7 +283,7 @@ const EmailStepCard = ({
270
283
  control,
271
284
  name: [name + ".subject", name + ".message", name + ".text"]
272
285
  });
273
- const preview = useEmailPreview({ campaign, event, message, organization, sample, subject, text });
286
+ const preview = useEmailPreview({ campaign, confirmation, event, message, organization, sample, subject, text });
274
287
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
275
288
  import_card_section.default,
276
289
  {
@@ -310,24 +323,32 @@ const EmailStepCard = ({
310
323
  }
311
324
  ),
312
325
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
313
- import_preview.default,
326
+ "div",
314
327
  {
315
328
  ...{
316
- states: {
317
- onChange: setSample,
318
- options: samples,
319
- value: sample
320
- }
329
+ className: off ? "opacity-50" : ""
321
330
  },
322
331
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
323
- "iframe",
332
+ import_preview.default,
324
333
  {
325
334
  ...{
326
- // The rendered email, as a mail app shows it.
327
- className: "block w-full h-full border-0 bg-white",
328
- srcDoc: (preview == null ? void 0 : preview.html) || "",
329
- title: "Send email"
330
- }
335
+ states: {
336
+ onChange: setSample,
337
+ options: samples,
338
+ value: sample
339
+ }
340
+ },
341
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
342
+ "iframe",
343
+ {
344
+ ...{
345
+ // The rendered email, as a mail app shows it.
346
+ className: "block w-full h-full border-0 bg-white",
347
+ srcDoc: (preview == null ? void 0 : preview.html) || "",
348
+ title: "Send email"
349
+ }
350
+ }
351
+ )
331
352
  }
332
353
  )
333
354
  }
@@ -336,10 +357,74 @@ const EmailStepCard = ({
336
357
  }
337
358
  );
338
359
  };
360
+ const SAMPLE = {
361
+ email: "sam.rivera@example.com",
362
+ name: "Sam Rivera",
363
+ order: "House espresso \xD7 2, Holiday blend \xD7 1",
364
+ phone: "+14165550142"
365
+ };
366
+ const webhookSample = ({ campaign }) => JSON.stringify({
367
+ campaign: {
368
+ id: (campaign == null ? void 0 : campaign.id) || "cmp_sample",
369
+ title: (campaign == null ? void 0 : campaign.title) || "Your campaign"
370
+ },
371
+ email: SAMPLE.email,
372
+ id: "lead_sample",
373
+ name: SAMPLE.name,
374
+ phone: {
375
+ number: SAMPLE.phone
376
+ }
377
+ }, null, 2);
378
+ const teamSample = ({ campaign, event, organization }) => event === "order.insert" ? {
379
+ lines: ["New order for " + ((campaign == null ? void 0 : campaign.title) || "your campaign") + " at " + ((organization == null ? void 0 : organization.title) || "your organization") + ": " + SAMPLE.order + ".", "Estimated total $55.00.", "Pickup: Saturday, 9 am to noon.", "Note: Please grind the Holiday blend for a French press."],
380
+ title: "New order \u2014 " + ((campaign == null ? void 0 : campaign.title) || "your campaign")
381
+ } : {
382
+ lines: [SAMPLE.name + " (" + SAMPLE.email + ") entered " + ((campaign == null ? void 0 : campaign.title) || "your campaign") + "."],
383
+ title: "1 new entry \u2014 " + ((campaign == null ? void 0 : campaign.title) || "your campaign")
384
+ };
385
+ const StepPreview = ({ campaign, control, event, image, name, organization, type }) => {
386
+ const [message] = (0, import_form.useWatch)({
387
+ control,
388
+ name: [name + ".message"]
389
+ });
390
+ if (type === "step.sms.send") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "p-6 font-sans", children: [
391
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "mb-4 text-xs text-center text-gray-dark", children: organization == null ? void 0 : organization.title }),
392
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "max-w-xs px-4 py-3 rounded-2xl rounded-bl-sm bg-gray-light text-black", children: [
393
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "whitespace-pre-wrap", children: message }),
394
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "mt-2", children: "Reply STOP to opt out" })
395
+ ] })
396
+ ] });
397
+ if (type === "step.webhook.send") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", { className: "p-6 text-xs whitespace-pre-wrap break-all font-mono", children: "X-Drawbridge-Signature: t=\u2026,v1=\u2026\n\n" + webhookSample({ campaign }) });
398
+ if (teamSteps.includes(type)) {
399
+ const { lines, title } = teamSample({ campaign, event, organization });
400
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "p-6 space-y-3 font-sans", children: [
401
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-lg font-bold", children: title }),
402
+ lines.map((line) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: line }, line))
403
+ ] });
404
+ }
405
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "min-h-screen flex flex-col items-center justify-center gap-3 p-6 text-gray-dark", children: [
406
+ image && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
407
+ import_image.default,
408
+ {
409
+ ...{
410
+ alt: "",
411
+ className: "w-12 h-12 object-contain",
412
+ height: 48,
413
+ src: image,
414
+ unoptimized: true,
415
+ width: 48
416
+ }
417
+ }
418
+ ),
419
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "No preview available" })
420
+ ] });
421
+ };
339
422
  const StepCard = ({
340
423
  children,
341
424
  control,
342
425
  email,
426
+ off,
427
+ preview,
343
428
  ...card
344
429
  }) => email ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
345
430
  EmailStepCard,
@@ -347,15 +432,38 @@ const StepCard = ({
347
432
  ...{
348
433
  card,
349
434
  control,
350
- email
435
+ email,
436
+ off
351
437
  },
352
438
  children
353
439
  }
354
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
440
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
355
441
  import_card_section.default,
356
442
  {
357
- ...card,
358
- children
443
+ ...{
444
+ ...card,
445
+ columns: preview ? 2 : 1
446
+ },
447
+ children: [
448
+ children,
449
+ preview && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
450
+ "div",
451
+ {
452
+ ...{
453
+ className: off ? "opacity-50" : ""
454
+ },
455
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_preview.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
456
+ StepPreview,
457
+ {
458
+ ...{
459
+ control,
460
+ ...preview
461
+ }
462
+ }
463
+ ) })
464
+ }
465
+ )
466
+ ]
359
467
  }
360
468
  );
361
469
  const FormOrganizationWorkflowEdit = ({
@@ -540,7 +648,7 @@ const FormOrganizationWorkflowEdit = ({
540
648
  }) => {
541
649
  try {
542
650
  const body = {
543
- steps: steps.map(({ connectionId, discount, members, message, score, slug, subject, text, type, url }, index) => {
651
+ steps: steps.map(({ confirmation, connectionId, discount, enabled, members, message, score, slug, subject, text, type, url }, index) => {
544
652
  const settings = {};
545
653
  if (type === "step.webhook.send") settings.url = url;
546
654
  if (emailSteps.includes(type)) settings.subject = subject;
@@ -557,7 +665,10 @@ const FormOrganizationWorkflowEdit = ({
557
665
  const resolvedConnectionId = (catalogStep == null ? void 0 : catalogStep.connectionId) || connectionId || null;
558
666
  const resolvedSlug = (catalogStep == null ? void 0 : catalogStep.slug) || slug || null;
559
667
  return {
668
+ // The System email row names itself; the api keeps it only where it was.
669
+ ...confirmation && { confirmation: true },
560
670
  ...resolvedConnectionId && { connectionId: resolvedConnectionId },
671
+ enabled: enabled !== false,
561
672
  ...resolvedSlug && { slug: resolvedSlug },
562
673
  settings,
563
674
  type
@@ -645,6 +756,7 @@ const FormOrganizationWorkflowEdit = ({
645
756
  )
646
757
  },
647
758
  children: ({ field, handle, index, remove }) => {
759
+ var _a2;
648
760
  const step = (watchedSteps == null ? void 0 : watchedSteps[index]) || field;
649
761
  return (
650
762
  // @story workflows/edit
@@ -659,8 +771,19 @@ const FormOrganizationWorkflowEdit = ({
659
771
  control,
660
772
  // @story workflows/send-email
661
773
  // A Send email step shows its email beside its form.
774
+ off: step.enabled === false,
775
+ // Every other step with a type has its preview too.
776
+ preview: step.type && !emailSteps.includes(step.type) && {
777
+ campaign: queryClient.getQueryData(["campaign", values == null ? void 0 : values.campaign]),
778
+ event,
779
+ image: ((_a2 = ((catalog == null ? void 0 : catalog.steps) || []).find((entry) => entry.value === step.type)) == null ? void 0 : _a2.image) || null,
780
+ name: `steps.${index}`,
781
+ organization: organizationData,
782
+ type: step.type
783
+ },
662
784
  email: emailSteps.includes(step.type) && {
663
785
  campaign: values == null ? void 0 : values.campaign,
786
+ confirmation: step.confirmation,
664
787
  event,
665
788
  name: `steps.${index}`,
666
789
  organization: values == null ? void 0 : values.organization
@@ -673,7 +796,7 @@ const FormOrganizationWorkflowEdit = ({
673
796
  },
674
797
  children: [
675
798
  renderStepBadge(step),
676
- !lockedStep(index) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
799
+ !lockedStep(index) && !step.confirmation && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
677
800
  import_input_array.InputArrayControl,
678
801
  {
679
802
  ...{
@@ -682,6 +805,58 @@ const FormOrganizationWorkflowEdit = ({
682
805
  }
683
806
  },
684
807
  "remove"
808
+ ),
809
+ step.confirmation ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
810
+ import_tooltip.default,
811
+ {
812
+ ...{
813
+ content: "System email"
814
+ },
815
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
816
+ "span",
817
+ {
818
+ ...{
819
+ className: "inline-flex pointer-events-none"
820
+ },
821
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
822
+ import_input_switch.default,
823
+ {
824
+ ...{
825
+ "aria-label": "System email, always on",
826
+ disabled: true,
827
+ onChange: () => {
828
+ },
829
+ small: true,
830
+ value: true
831
+ }
832
+ }
833
+ )
834
+ }
835
+ )
836
+ }
837
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
838
+ import_form.Controller,
839
+ {
840
+ ...{
841
+ control,
842
+ name: `steps.${index}.enabled`,
843
+ render: ({ field: { onChange, value } }) => {
844
+ var _a3;
845
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
846
+ import_input_switch.default,
847
+ {
848
+ ...{
849
+ "aria-label": ((_a3 = ((catalog == null ? void 0 : catalog.steps) || []).find((entry) => entry.value === step.type)) == null ? void 0 : _a3.key) || "Step " + (index + 1),
850
+ disabled: disabled || (formState == null ? void 0 : formState.isSubmitting),
851
+ onChange,
852
+ small: true,
853
+ value: value !== false
854
+ }
855
+ }
856
+ );
857
+ }
858
+ }
859
+ }
685
860
  )
686
861
  ]
687
862
  }
@@ -704,7 +879,8 @@ const FormOrganizationWorkflowEdit = ({
704
879
  "div",
705
880
  {
706
881
  ...{
707
- className: "space-y-3"
882
+ // A step switched off is greyed; its settings are kept.
883
+ className: "space-y-3" + (step.enabled === false ? " opacity-50" : "")
708
884
  },
709
885
  children: [
710
886
  issueIndex === index && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -722,12 +898,12 @@ const FormOrganizationWorkflowEdit = ({
722
898
  control,
723
899
  name: `steps.${index}.type`,
724
900
  render: ({ field: { onChange } }) => {
725
- var _a2, _b2, _c2, _d2;
901
+ var _a3, _b2, _c2, _d2;
726
902
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
727
903
  import_input_group.default,
728
904
  {
729
905
  ...{
730
- error: (_d2 = (_c2 = (_b2 = (_a2 = formState == null ? void 0 : formState.errors) == null ? void 0 : _a2.steps) == null ? void 0 : _b2[index]) == null ? void 0 : _c2.type) == null ? void 0 : _d2.message,
906
+ error: (_d2 = (_c2 = (_b2 = (_a3 = formState == null ? void 0 : formState.errors) == null ? void 0 : _a3.steps) == null ? void 0 : _b2[index]) == null ? void 0 : _c2.type) == null ? void 0 : _d2.message,
731
907
  input: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
732
908
  import_input_combobox.default,
733
909
  {
@@ -739,7 +915,8 @@ const FormOrganizationWorkflowEdit = ({
739
915
  setValue(`steps.${index}.connectionId`, (option == null ? void 0 : option.connectionId) || "");
740
916
  setValue(`steps.${index}.slug`, (option == null ? void 0 : option.slug) || "");
741
917
  },
742
- disabled: lockedStep(index),
918
+ // The System email is always a Send email.
919
+ disabled: lockedStep(index) || Boolean(step.confirmation),
743
920
  options: getStepOptions(index),
744
921
  // Resolved from the WHOLE ROW, not from this path: the
745
922
  // option value carries a connection the type alone cannot
@@ -763,12 +940,12 @@ const FormOrganizationWorkflowEdit = ({
763
940
  control,
764
941
  name: `steps.${index}.url`,
765
942
  render: ({ field: { value, onChange } }) => {
766
- var _a2, _b2, _c2, _d2;
943
+ var _a3, _b2, _c2, _d2;
767
944
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
768
945
  import_input_group.default,
769
946
  {
770
947
  ...{
771
- error: (_d2 = (_c2 = (_b2 = (_a2 = formState == null ? void 0 : formState.errors) == null ? void 0 : _a2.steps) == null ? void 0 : _b2[index]) == null ? void 0 : _c2.url) == null ? void 0 : _d2.message,
948
+ error: (_d2 = (_c2 = (_b2 = (_a3 = formState == null ? void 0 : formState.errors) == null ? void 0 : _a3.steps) == null ? void 0 : _b2[index]) == null ? void 0 : _c2.url) == null ? void 0 : _d2.message,
772
949
  input: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
773
950
  import_input_url.default,
774
951
  {
@@ -794,12 +971,12 @@ const FormOrganizationWorkflowEdit = ({
794
971
  control,
795
972
  name: `steps.${index}.members`,
796
973
  render: ({ field: { value, onChange } }) => {
797
- var _a2, _b2, _c2, _d2;
974
+ var _a3, _b2, _c2, _d2;
798
975
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
799
976
  import_input_group.default,
800
977
  {
801
978
  ...{
802
- error: (_d2 = (_c2 = (_b2 = (_a2 = formState == null ? void 0 : formState.errors) == null ? void 0 : _a2.steps) == null ? void 0 : _b2[index]) == null ? void 0 : _c2.members) == null ? void 0 : _d2.message,
979
+ error: (_d2 = (_c2 = (_b2 = (_a3 = formState == null ? void 0 : formState.errors) == null ? void 0 : _a3.steps) == null ? void 0 : _b2[index]) == null ? void 0 : _c2.members) == null ? void 0 : _d2.message,
803
980
  input: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
804
981
  import_input_resource.default,
805
982
  {
@@ -855,6 +1032,15 @@ const FormOrganizationWorkflowEdit = ({
855
1032
  }
856
1033
  }
857
1034
  ),
1035
+ step.confirmation && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1036
+ "p",
1037
+ {
1038
+ ...{
1039
+ className: "text-sm text-gray-dark"
1040
+ },
1041
+ children: "Drawbridge adds the entrant's order and missions under your message. You can't edit or remove them."
1042
+ }
1043
+ ),
858
1044
  step.type === "step.sms.send" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
859
1045
  import_form.Controller,
860
1046
  {
@@ -862,12 +1048,12 @@ const FormOrganizationWorkflowEdit = ({
862
1048
  control,
863
1049
  name: `steps.${index}.message`,
864
1050
  render: ({ field: { value, onChange } }) => {
865
- var _a2, _b2, _c2, _d2;
1051
+ var _a3, _b2, _c2, _d2;
866
1052
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
867
1053
  import_input_group.default,
868
1054
  {
869
1055
  ...{
870
- error: (_d2 = (_c2 = (_b2 = (_a2 = formState == null ? void 0 : formState.errors) == null ? void 0 : _a2.steps) == null ? void 0 : _b2[index]) == null ? void 0 : _c2.message) == null ? void 0 : _d2.message,
1056
+ error: (_d2 = (_c2 = (_b2 = (_a3 = formState == null ? void 0 : formState.errors) == null ? void 0 : _a3.steps) == null ? void 0 : _b2[index]) == null ? void 0 : _c2.message) == null ? void 0 : _d2.message,
871
1057
  input: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
872
1058
  import_input_textarea.default,
873
1059
  {
@@ -893,12 +1079,12 @@ const FormOrganizationWorkflowEdit = ({
893
1079
  control,
894
1080
  name: `steps.${index}.discount`,
895
1081
  render: ({ field: { value, onChange } }) => {
896
- var _a2, _b2, _c2, _d2;
1082
+ var _a3, _b2, _c2, _d2;
897
1083
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
898
1084
  import_input_group.default,
899
1085
  {
900
1086
  ...{
901
- error: (_d2 = (_c2 = (_b2 = (_a2 = formState == null ? void 0 : formState.errors) == null ? void 0 : _a2.steps) == null ? void 0 : _b2[index]) == null ? void 0 : _c2.discount) == null ? void 0 : _d2.message,
1087
+ error: (_d2 = (_c2 = (_b2 = (_a3 = formState == null ? void 0 : formState.errors) == null ? void 0 : _a3.steps) == null ? void 0 : _b2[index]) == null ? void 0 : _c2.discount) == null ? void 0 : _d2.message,
902
1088
  input: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
903
1089
  import_input_resource.default,
904
1090
  {
@@ -989,9 +1175,12 @@ const FormOrganizationWorkflowEdit = ({
989
1175
  // Annotate the CommonJS export names for ESM import in node:
990
1176
  0 && (module.exports = {
991
1177
  FormOrganizationWorkflowEdit,
1178
+ SAMPLE,
992
1179
  prefillRow,
993
1180
  stepReason,
994
1181
  stepRow,
995
1182
  stepVariables,
1183
+ teamSample,
1184
+ webhookSample,
996
1185
  workflowSchema
997
1186
  });