@flamingo-stack/openframe-frontend-core 0.0.792 → 0.0.794

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 (81) hide show
  1. package/dist/{case-study-card-MCAM232N.cjs → case-study-card-KU4ZIONR.cjs} +2 -2
  2. package/dist/{chunk-HMV32LV4.cjs → chunk-2KLYMAHF.cjs} +4 -4
  3. package/dist/{chunk-ZZPGSLMO.cjs → chunk-3XAFK4WH.cjs} +8 -8
  4. package/dist/{chunk-P2JY2XCV.cjs → chunk-43ZVXQJK.cjs} +52 -52
  5. package/dist/{chunk-OKQQJ5TD.cjs → chunk-6TUI5KQS.cjs} +39 -39
  6. package/dist/{chunk-ZW2TS775.cjs → chunk-6VP5UWZG.cjs} +2 -2
  7. package/dist/{chunk-6ZPHUDTP.cjs → chunk-A6E5ZNQR.cjs} +3 -3
  8. package/dist/{chunk-ABZGBMC2.cjs → chunk-BFCGOHQG.cjs} +32 -32
  9. package/dist/{chunk-3AN35WAO.cjs → chunk-CLEZ6TWZ.cjs} +68 -68
  10. package/dist/{chunk-7EH7KKFW.cjs → chunk-F73DM65J.cjs} +71 -71
  11. package/dist/{chunk-IHLGPIFO.cjs → chunk-FOWQ4XTB.cjs} +2 -2
  12. package/dist/{chunk-VUQNTCAL.cjs → chunk-FYHXMHY6.cjs} +13 -13
  13. package/dist/{chunk-OZIPPOSJ.cjs → chunk-FYPVCCCV.cjs} +101 -101
  14. package/dist/{chunk-5MIGBLDC.cjs → chunk-HXL7AUPG.cjs} +17 -17
  15. package/dist/{chunk-UNUJ5YQ5.cjs → chunk-IJ23KNYI.cjs} +4 -4
  16. package/dist/{chunk-YPWFYQFE.cjs → chunk-IQTVKPRG.cjs} +22 -22
  17. package/dist/{chunk-EPWLLLGW.cjs → chunk-KQPU5N7T.cjs} +13 -13
  18. package/dist/{chunk-TBGVWIF7.cjs → chunk-NGGEYE5R.cjs} +2 -2
  19. package/dist/{chunk-W3Q7ZQLS.cjs → chunk-NIW4ETGC.cjs} +4 -4
  20. package/dist/{chunk-SXEIK7RU.cjs → chunk-OK467OQJ.cjs} +2 -2
  21. package/dist/{chunk-FBA6S4ES.cjs → chunk-QDW64E6T.cjs} +99 -99
  22. package/dist/{chunk-YWNXZAQ2.cjs → chunk-U4D4ABXK.cjs} +38 -38
  23. package/dist/{chunk-WWWLOMZI.cjs → chunk-UAZTXYPC.cjs} +81 -79
  24. package/dist/{chunk-C5EPWKM7.cjs → chunk-UN6LC5PK.cjs} +1 -1
  25. package/dist/{chunk-2I2AXIBD.cjs → chunk-YPKAMHYA.cjs} +230 -210
  26. package/dist/{chunk-O4TKEWNW.cjs → chunk-YYKXX5NA.cjs} +11 -11
  27. package/dist/{chunk-4G2KZHZW.cjs → chunk-ZIMPE7D5.cjs} +3 -3
  28. package/dist/{cloud-tenants-CQOD6DDR.cjs → cloud-tenants-Z3AYAXF5.cjs} +7 -7
  29. package/dist/components/case-studies/index.cjs +22 -22
  30. package/dist/components/chat/index.cjs +6 -6
  31. package/dist/components/contact/index.cjs +8 -8
  32. package/dist/components/docs/index.cjs +11 -11
  33. package/dist/components/embeds/index.cjs +8 -8
  34. package/dist/components/faq/index.cjs +9 -9
  35. package/dist/components/features/conversation-card.d.ts.map +1 -1
  36. package/dist/components/features/conversation-card.js +77 -56
  37. package/dist/components/features/index.cjs +7 -7
  38. package/dist/components/help-center-pages/index.cjs +84 -84
  39. package/dist/components/index.cjs +56 -56
  40. package/dist/components/meeting-scheduler/booking-context-summary.d.ts +8 -0
  41. package/dist/components/meeting-scheduler/booking-context-summary.d.ts.map +1 -0
  42. package/dist/components/meeting-scheduler/booking-context-summary.js +54 -0
  43. package/dist/components/meeting-scheduler/booking-form.d.ts +14 -1
  44. package/dist/components/meeting-scheduler/booking-form.d.ts.map +1 -1
  45. package/dist/components/meeting-scheduler/booking-form.js +13 -3
  46. package/dist/components/meeting-scheduler/index.cjs +154 -80
  47. package/dist/components/meeting-scheduler/index.d.ts +6 -2
  48. package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
  49. package/dist/components/meeting-scheduler/index.js +7 -2
  50. package/dist/components/navigation/index.cjs +10 -10
  51. package/dist/components/onboarding-guides/index.cjs +10 -10
  52. package/dist/components/product-demo/index.cjs +16 -16
  53. package/dist/components/related-content/index.cjs +6 -6
  54. package/dist/components/shared/roadmap/roadmap-grid.d.ts.map +1 -1
  55. package/dist/components/shared/roadmap/roadmap-grid.js +3 -1
  56. package/dist/components/tickets/index.cjs +14 -14
  57. package/dist/components/ui/index.cjs +7 -7
  58. package/dist/components/ui/status-badge.d.ts.map +1 -1
  59. package/dist/components/ui/status-badge.js +1 -1
  60. package/dist/{devices-PEBUW34G.cjs → devices-P6XQL23S.cjs} +8 -8
  61. package/dist/{embeddable-chat-54X3TTG4.cjs → embeddable-chat-6BNLOSBB.cjs} +67 -67
  62. package/dist/index.cjs +11 -11
  63. package/dist/{knowledge-KL4BP2YK.cjs → knowledge-IU5ORU7U.cjs} +8 -8
  64. package/dist/loading-standard/engine.d.mts.map +1 -1
  65. package/dist/{logs-TO277M4F.cjs → logs-DCFTQVKA.cjs} +15 -15
  66. package/dist/{policies-6HSKMG4I.cjs → policies-ESC6XCVH.cjs} +11 -11
  67. package/dist/schemas/meeting-booking-schema.cjs +21 -0
  68. package/dist/schemas/meeting-booking-schema.d.ts +43 -0
  69. package/dist/schemas/meeting-booking-schema.d.ts.map +1 -1
  70. package/dist/schemas/meeting-booking-schema.js +21 -0
  71. package/dist/{scripts-4IO2LPMY.cjs → scripts-24PIP2VO.cjs} +12 -12
  72. package/dist/{software-update-RMAWEZKX.cjs → software-update-47GDTKMI.cjs} +10 -10
  73. package/package.json +1 -1
  74. package/src/components/features/conversation-card.tsx +89 -64
  75. package/src/components/meeting-scheduler/booking-context-summary.tsx +100 -0
  76. package/src/components/meeting-scheduler/booking-form.tsx +28 -0
  77. package/src/components/meeting-scheduler/index.tsx +23 -2
  78. package/src/components/shared/roadmap/roadmap-grid.tsx +5 -1
  79. package/src/components/ui/status-badge.tsx +4 -2
  80. package/src/loading-standard/engine.mjs +6 -2
  81. package/src/schemas/meeting-booking-schema.ts +62 -0
@@ -0,0 +1,8 @@
1
+ import { type BookingContext, type BookingContextSlot } from '../../schemas/meeting-booking-schema';
2
+ export declare function BookingContextSummary({ context, slot, loading: loadingProp, }: {
3
+ context?: BookingContext | null;
4
+ slot?: BookingContextSlot;
5
+ /** Draw the loading form outside a loading scope too. */
6
+ loading?: boolean;
7
+ }): import("react").JSX.Element | null;
8
+ //# sourceMappingURL=booking-context-summary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"booking-context-summary.d.ts","sourceRoot":"","sources":["../../../src/components/meeting-scheduler/booking-context-summary.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,kBAAkB,EAAqB,MAAM,sCAAsC,CAAC;AAmBvH,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,IAAI,EACJ,OAAO,EAAE,WAAW,GACrB,EAAE;IACD,OAAO,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IAChC,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,yDAAyD;IACzD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,sCAiDA"}
@@ -0,0 +1,54 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { hasBookingContext } from "../../schemas/meeting-booking-schema.js";
4
+ import { cn } from "../../utils/cn.js";
5
+ import { useLoadingScope } from "../ui/loading-scope.js";
6
+ import { Tag } from "../ui/tag.js";
7
+ const SLOT_GRID_CLASS = "grid grid-cols-1 gap-[var(--spacing-system-xs)] content-md:grid-cols-2";
8
+ const SLOT_CELL_CLASS = "flex min-w-0";
9
+ const LINE_TAG_PROPS = { variant: "outline", size: "sentence", className: "max-w-full" };
10
+ const LOADING_LINE_CLASS = "w-3/4";
11
+ const EMPTY_CLASS = "absolute inset-0 flex items-center justify-center rounded-md border border-dashed border-ods-border px-[var(--spacing-system-sf)] text-center text-ods-text-secondary text-h6";
12
+ const EMPTY_CELL_CLASS = "h-9 w-full rounded-md border border-dashed border-ods-border";
13
+ function BookingContextSummary({
14
+ context,
15
+ slot,
16
+ loading: loadingProp
17
+ }) {
18
+ const loading = useLoadingScope() || loadingProp;
19
+ const items = hasBookingContext(context) ? context.items.filter((item) => item.trim()) : [];
20
+ const label = slot?.label ?? context?.label;
21
+ if (!label || !slot && items.length === 0) return null;
22
+ if (!slot) {
23
+ return /* @__PURE__ */ jsx(SummaryFrame, { label, children: /* @__PURE__ */ jsx("ul", { className: "flex flex-wrap gap-[var(--spacing-system-xs)]", "aria-label": label, children: items.map((item) => /* @__PURE__ */ jsx("li", { className: "min-w-0 max-w-full", children: /* @__PURE__ */ jsx(Tag, { label: item, ...LINE_TAG_PROPS }) }, item)) }) });
24
+ }
25
+ const cells = Array.from({ length: Math.max(slot.slots, items.length) }, (_, index) => items[index]);
26
+ return /* @__PURE__ */ jsx(SummaryFrame, { label, children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
27
+ /* @__PURE__ */ jsx("ul", { className: SLOT_GRID_CLASS, "aria-label": label, children: cells.map((item, index) => {
28
+ const empty = !loading && !item;
29
+ return /* @__PURE__ */ jsx(
30
+ "li",
31
+ {
32
+ className: SLOT_CELL_CLASS,
33
+ "aria-hidden": empty || void 0,
34
+ "data-loading-item": "",
35
+ children: loading ? /* @__PURE__ */ jsx(Tag, { label: "", loading: true, ...LINE_TAG_PROPS, className: LOADING_LINE_CLASS }) : item ? /* @__PURE__ */ jsx(Tag, { label: item, ...LINE_TAG_PROPS }) : (
36
+ // With no line at all the empty state covers every slot; with some, the rest stay as slots.
37
+ /* @__PURE__ */ jsx("span", { className: cn(EMPTY_CELL_CLASS, items.length === 0 && "invisible") })
38
+ )
39
+ },
40
+ item ?? `empty-${index}`
41
+ );
42
+ }) }),
43
+ !loading && items.length === 0 && /* @__PURE__ */ jsx("p", { className: EMPTY_CLASS, children: slot.emptyText })
44
+ ] }) });
45
+ }
46
+ function SummaryFrame({ label, children }) {
47
+ return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
48
+ /* @__PURE__ */ jsx("p", { className: "text-ods-text-secondary text-h6", children: label }),
49
+ children
50
+ ] });
51
+ }
52
+ export {
53
+ BookingContextSummary
54
+ };
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode, Ref } from 'react';
2
- import { type BuiltInBookingFieldName, type DeniedEmailDomains, type MeetingAvailability, type MeetingFormField } from '../../schemas/meeting-booking-schema';
2
+ import { type BuiltInBookingFieldName, type DeniedEmailDomains, type MeetingAvailability, type MeetingFormField, type BookingContext, type BookingContextSlot } from '../../schemas/meeting-booking-schema';
3
3
  import type { FormRescueDefinition } from '../../utils/form-rescue';
4
4
  /**
5
5
  * One field in a host-supplied row. `name` is a built-in (`email`, `firstName`,
@@ -101,6 +101,19 @@ export interface BookingFormProps {
101
101
  * does not ask is ignored.
102
102
  */
103
103
  answers?: Readonly<Record<string, string>>;
104
+ /**
105
+ * What the visitor told the page before the form, beside the link's questions (the cards they picked): drawn at
106
+ * the top of the form as a summary of tags and sent with the booking (`BOOKING_CONTEXT_FIELD`), whatever questions
107
+ * the link declares. Read live, so a change made above the form shows at once; omitted or empty draws nothing.
108
+ * In `deferSlot` mode the form only shows it: the parent attaches the live context when it POSTs.
109
+ */
110
+ context?: BookingContext | null;
111
+ /**
112
+ * The space the form keeps for `context` from its first paint (loading included), so the page does not jump when
113
+ * a line is added: its label, the most lines, and what it shows while there are none. Omitted: the context takes
114
+ * room only once it has a line.
115
+ */
116
+ contextSlot?: BookingContextSlot;
104
117
  /** Defaults to "Confirm Booking"; details-first says "Continue". */
105
118
  submitLabel?: string;
106
119
  /** Small print beside the submit (details-first sets expectations). */
@@ -1 +1 @@
1
- {"version":3,"file":"booking-form.d.ts","sourceRoot":"","sources":["../../../src/components/meeting-scheduler/booking-form.tsx"],"names":[],"mappings":"AAIA,OA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AED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAiBlD"}
@@ -15,7 +15,8 @@ import {
15
15
  MULTI_VALUE_SEPARATOR,
16
16
  bookingFormAsks,
17
17
  normalizeFormFields,
18
- splitMultiValue
18
+ splitMultiValue,
19
+ bookingContextFields
19
20
  } from "../../schemas/meeting-booking-schema.js";
20
21
  import { cn } from "../../utils/cn.js";
21
22
  import { HUBSPOT_DO_NOT_COLLECT_FORM_PROPS } from "../../utils/hubspot-collected-forms.js";
@@ -42,6 +43,7 @@ import {
42
43
  import { HoneypotField } from "../ui/honeypot-field.js";
43
44
  import { LOADING_NOOP, useLoadingScope } from "../ui/loading-scope.js";
44
45
  import { TOGGLE_SIZE_CLASS } from "../ui/toggle.js";
46
+ import { BookingContextSummary } from "./booking-context-summary.js";
45
47
  const FORM_STACK = "flex flex-col gap-[var(--spacing-system-l)]";
46
48
  const ROW_GRID = "grid grid-cols-2 gap-x-[var(--spacing-system-m)] gap-y-[var(--spacing-system-lf)] content-md:grid-cols-4";
47
49
  const HOST_CONSENT_KEY = "hostConsent";
@@ -280,7 +282,8 @@ function BookingForm(props) {
280
282
  fieldCopy: props.fieldCopy,
281
283
  consent: props.consent,
282
284
  footerNote: props.footerNote,
283
- submitLabel: props.submitLabel
285
+ submitLabel: props.submitLabel,
286
+ contextSlot: props.contextSlot
284
287
  }
285
288
  );
286
289
  }
@@ -295,6 +298,8 @@ function BookingFormBody({
295
298
  deferSlot = false,
296
299
  initialValues,
297
300
  answers,
301
+ context,
302
+ contextSlot,
298
303
  submitLabel,
299
304
  footerNote,
300
305
  fieldRows,
@@ -427,6 +432,8 @@ function BookingFormBody({
427
432
  startTimeMs,
428
433
  durationMs,
429
434
  timezone,
435
+ // The page's context rides beside the answers, never inside them: the server strips it from the booking.
436
+ ...bookingContextFields(context),
430
437
  ...getSignals(),
431
438
  ...formRescue.submitFields()
432
439
  });
@@ -494,6 +501,7 @@ function BookingFormBody({
494
501
  );
495
502
  return /* @__PURE__ */ jsxs("form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ...HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
496
503
  /* @__PURE__ */ jsx(HoneypotField, { ...honeypotInputProps }),
504
+ /* @__PURE__ */ jsx(BookingContextSummary, { context, slot: contextSlot }),
497
505
  fieldRows ? /* @__PURE__ */ jsxs(Fragment, { children: [
498
506
  placedRows.map((row) => /* @__PURE__ */ jsx("div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ jsx("div", { className: slotColumnClass(row, slot, slotIndex), children: slotNode(slot.name) }, slot.name)) }, row.map((s) => s.name).join("|"))),
499
507
  [...unplacedBuiltIns, ...unplacedFields].map((field) => /* @__PURE__ */ jsx(Fragment2, { children: slotNode(field.name) }, field.name))
@@ -573,13 +581,15 @@ function BookingFormPending({
573
581
  fieldCopy,
574
582
  consent,
575
583
  footerNote,
576
- submitLabel = DEFAULT_SUBMIT_LABEL
584
+ submitLabel = DEFAULT_SUBMIT_LABEL,
585
+ contextSlot
577
586
  }) {
578
587
  const consentId = useId();
579
588
  const submitButton = /* @__PURE__ */ jsx(Button, { type: "button", tabIndex: -1, className: footerNote ? SUBMIT_WIDE_CLASS : void 0, children: submitLabel });
580
589
  return (
581
590
  // Inert: the fields are the form's own controls, drawn so each is its loaded size; none takes focus.
582
591
  /* @__PURE__ */ jsxs("div", { className: cn("flex-1", FORM_STACK), "aria-hidden": true, inert: true, children: [
592
+ /* @__PURE__ */ jsx(BookingContextSummary, { slot: contextSlot, loading: true }),
583
593
  skeletonRows(fieldRows ?? DEFAULT_FIELD_ROWS, optionalFields).map((row) => /* @__PURE__ */ jsx("div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ jsx(
584
594
  FieldSkeleton,
585
595
  {