@flamingo-stack/openframe-frontend-core 0.0.791 → 0.0.793

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 (83) hide show
  1. package/dist/{chunk-ABZGBMC2.cjs → chunk-BI6FE3HO.cjs} +10 -10
  2. package/dist/{chunk-W3Q7ZQLS.cjs → chunk-BTI4RRU2.cjs} +2 -2
  3. package/dist/{chunk-3XSWE5FW.cjs → chunk-CASWVIJC.cjs} +8 -4
  4. package/dist/{chunk-6TPROUHW.cjs → chunk-CB24ILOB.cjs} +24 -14
  5. package/dist/{chunk-YWNXZAQ2.cjs → chunk-CKSAUEEL.cjs} +16 -16
  6. package/dist/{chunk-3AN35WAO.cjs → chunk-DWYMZ3LO.cjs} +24 -24
  7. package/dist/{chunk-DKOLQPE7.cjs → chunk-FDZOE5TL.cjs} +16 -1
  8. package/dist/{chunk-YPWFYQFE.cjs → chunk-FEARCFP4.cjs} +5 -5
  9. package/dist/{chunk-STEJZPIO.cjs → chunk-LHV2R6QU.cjs} +3 -3
  10. package/dist/{chunk-O4TKEWNW.cjs → chunk-LMZICTQW.cjs} +3 -3
  11. package/dist/{chunk-EPWLLLGW.cjs → chunk-LVBSVUHD.cjs} +2 -2
  12. package/dist/{chunk-4YIDZCTL.cjs → chunk-SMZWXY4X.cjs} +7 -13
  13. package/dist/{chunk-6ZPHUDTP.cjs → chunk-XGE2WCOH.cjs} +3 -3
  14. package/dist/{chunk-MIUFSOUN.cjs → chunk-YDH5OVRQ.cjs} +45 -38
  15. package/dist/{chunk-2I2AXIBD.cjs → chunk-ZCNEO273.cjs} +75 -55
  16. package/dist/{cloud-tenants-TTOYIEN3.cjs → cloud-tenants-BISHVU2T.cjs} +12 -12
  17. package/dist/components/case-studies/index.cjs +11 -11
  18. package/dist/components/contact/index.cjs +3 -3
  19. package/dist/components/docs/index.cjs +5 -5
  20. package/dist/components/docs/skeletons.d.ts.map +1 -1
  21. package/dist/components/docs/skeletons.js +11 -1
  22. package/dist/components/embeds/index.cjs +3 -3
  23. package/dist/components/faq/index.cjs +3 -3
  24. package/dist/components/features/conversation-card.d.ts.map +1 -1
  25. package/dist/components/features/conversation-card.js +77 -56
  26. package/dist/components/features/index.cjs +2 -2
  27. package/dist/components/help-center-pages/index.cjs +50 -50
  28. package/dist/components/help-center-pages/trust-center-sections.js +1 -1
  29. package/dist/components/index.cjs +18 -18
  30. package/dist/components/meeting-scheduler/booking-context-summary.d.ts +8 -0
  31. package/dist/components/meeting-scheduler/booking-context-summary.d.ts.map +1 -0
  32. package/dist/components/meeting-scheduler/booking-context-summary.js +54 -0
  33. package/dist/components/meeting-scheduler/booking-form.d.ts +14 -1
  34. package/dist/components/meeting-scheduler/booking-form.d.ts.map +1 -1
  35. package/dist/components/meeting-scheduler/booking-form.js +13 -3
  36. package/dist/components/meeting-scheduler/directory.d.ts.map +1 -1
  37. package/dist/components/meeting-scheduler/directory.js +3 -1
  38. package/dist/components/meeting-scheduler/index.cjs +137 -61
  39. package/dist/components/meeting-scheduler/index.d.ts +6 -2
  40. package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
  41. package/dist/components/meeting-scheduler/index.js +7 -2
  42. package/dist/components/navigation/index.cjs +3 -3
  43. package/dist/components/onboarding-guides/index.cjs +4 -4
  44. package/dist/components/product-demo/fixtures/devices.d.ts.map +1 -1
  45. package/dist/components/product-demo/fixtures/devices.js +5 -12
  46. package/dist/components/product-demo/fixtures/shared.d.ts +89 -0
  47. package/dist/components/product-demo/fixtures/shared.d.ts.map +1 -1
  48. package/dist/components/product-demo/fixtures/shared.js +15 -0
  49. package/dist/components/product-demo/index.cjs +16 -16
  50. package/dist/components/product-demo/screens/devices-view.d.ts.map +1 -1
  51. package/dist/components/product-demo/screens/devices-view.js +3 -1
  52. package/dist/components/shared/roadmap/roadmap-grid.d.ts.map +1 -1
  53. package/dist/components/shared/roadmap/roadmap-grid.js +15 -8
  54. package/dist/components/tickets/index.cjs +5 -5
  55. package/dist/components/ui/index.cjs +2 -2
  56. package/dist/{devices-SKWJYGUD.cjs → devices-GMR73ZF3.cjs} +8 -8
  57. package/dist/index.cjs +3 -3
  58. package/dist/{knowledge-BPB2TROI.cjs → knowledge-XC2K5VQO.cjs} +6 -6
  59. package/dist/loading-standard/engine.d.mts.map +1 -1
  60. package/dist/{logs-VIHYNQU4.cjs → logs-LBGQLETC.cjs} +24 -24
  61. package/dist/{policies-YVNOCNNO.cjs → policies-3XVE6266.cjs} +9 -9
  62. package/dist/{remote-session-WKLEYACD.cjs → remote-session-4ZNTOLOQ.cjs} +5 -5
  63. package/dist/schemas/meeting-booking-schema.cjs +21 -0
  64. package/dist/schemas/meeting-booking-schema.d.ts +43 -0
  65. package/dist/schemas/meeting-booking-schema.d.ts.map +1 -1
  66. package/dist/schemas/meeting-booking-schema.js +21 -0
  67. package/dist/{scripts-MK5FCR7L.cjs → scripts-NE5IL4NC.cjs} +13 -13
  68. package/dist/{software-update-GDV75A2Z.cjs → software-update-EJDKTFAP.cjs} +13 -13
  69. package/dist/{tickets-board-URMIIAKD.cjs → tickets-board-X4GHEKPB.cjs} +17 -17
  70. package/package.json +1 -1
  71. package/src/components/docs/skeletons.tsx +7 -1
  72. package/src/components/features/conversation-card.tsx +89 -64
  73. package/src/components/help-center-pages/trust-center-sections.tsx +1 -1
  74. package/src/components/meeting-scheduler/booking-context-summary.tsx +100 -0
  75. package/src/components/meeting-scheduler/booking-form.tsx +28 -0
  76. package/src/components/meeting-scheduler/directory.tsx +6 -1
  77. package/src/components/meeting-scheduler/index.tsx +23 -2
  78. package/src/components/product-demo/fixtures/devices.ts +5 -12
  79. package/src/components/product-demo/fixtures/shared.ts +20 -0
  80. package/src/components/product-demo/screens/devices-view.tsx +3 -0
  81. package/src/components/shared/roadmap/roadmap-grid.tsx +29 -7
  82. package/src/loading-standard/engine.mjs +6 -2
  83. package/src/schemas/meeting-booking-schema.ts +62 -0
@@ -2,20 +2,20 @@
2
2
  "use client";
3
3
 
4
4
 
5
- var _chunk4YIDZCTLcjs = require('./chunk-4YIDZCTL.cjs');
5
+ var _chunkSMZWXY4Xcjs = require('./chunk-SMZWXY4X.cjs');
6
6
 
7
7
 
8
- var _chunkSTEJZPIOcjs = require('./chunk-STEJZPIO.cjs');
8
+ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
12
+ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
13
13
 
14
14
 
15
15
 
16
16
 
17
17
 
18
- var _chunk2I2AXIBDcjs = require('./chunk-2I2AXIBD.cjs');
18
+ var _chunkZCNEO273cjs = require('./chunk-ZCNEO273.cjs');
19
19
  require('./chunk-PQIWR4Q2.cjs');
20
20
  require('./chunk-HJBJHQKE.cjs');
21
21
 
@@ -1891,25 +1891,25 @@ var timing = {
1891
1891
  TONIGHT_11_PM,
1892
1892
  { value: "23:30", label: "11:30 PM" }
1893
1893
  ],
1894
- getEarliestDay: _chunkDKOLQPE7cjs.demoDay,
1894
+ getEarliestDay: _chunkFDZOE5TLcjs.demoDay,
1895
1895
  getStartError: () => void 0
1896
1896
  };
1897
1897
  var initialValues = {
1898
1898
  rows: [{ key: "row-0", packageManager: "WINGET", pkg: chrome }],
1899
1899
  mode: "schedule",
1900
- date: _chunkDKOLQPE7cjs.demoDay.call(void 0, ),
1900
+ date: _chunkFDZOE5TLcjs.demoDay.call(void 0, ),
1901
1901
  time: TONIGHT_11_PM.value,
1902
1902
  timeReference: "SERVER"
1903
1903
  };
1904
1904
  function buildSoftwareUpdateFixture(cast) {
1905
- const devices = _chunk4YIDZCTLcjs.buildDevicesFixture.call(void 0, cast).devices.filter((device) => device.osType === "WINDOWS");
1905
+ const devices = _chunkSMZWXY4Xcjs.buildDevicesFixture.call(void 0, cast).devices.filter((device) => device.osType === "WINDOWS");
1906
1906
  return {
1907
1907
  action: "UPDATE",
1908
1908
  package: chrome,
1909
1909
  timing,
1910
1910
  initialValues,
1911
1911
  devices,
1912
- selectedIds: /* @__PURE__ */ new Set([_chunkDKOLQPE7cjs.DEMO_DEVICES.reception.id, _chunkDKOLQPE7cjs.DEMO_DEVICES.samT14.id, _chunkDKOLQPE7cjs.DEMO_DEVICES.frontDesk.id])
1912
+ selectedIds: /* @__PURE__ */ new Set([_chunkFDZOE5TLcjs.DEMO_DEVICES.reception.id, _chunkFDZOE5TLcjs.DEMO_DEVICES.samT14.id, _chunkFDZOE5TLcjs.DEMO_DEVICES.frontDesk.id])
1913
1913
  };
1914
1914
  }
1915
1915
 
@@ -1922,26 +1922,26 @@ function StaticPackageField({ value }) {
1922
1922
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1923
1923
  _chunkRPC4P7GYcjs.Autocomplete,
1924
1924
  {
1925
- label: _chunk2I2AXIBDcjs.PACKAGE_SEARCH_LABEL,
1925
+ label: _chunkZCNEO273cjs.PACKAGE_SEARCH_LABEL,
1926
1926
  labelVariant: "large",
1927
1927
  options: value ? [{ value: value.id, label: value.name, description: _nullishCoalesce(value.description, () => ( void 0)) }] : [],
1928
1928
  value: _nullishCoalesce(_optionalChain([value, 'optionalAccess', _ => _.id]), () => ( null)),
1929
1929
  onChange: noop,
1930
- placeholder: _chunk2I2AXIBDcjs.PACKAGE_SEARCH_PLACEHOLDER
1930
+ placeholder: _chunkZCNEO273cjs.PACKAGE_SEARCH_PLACEHOLDER
1931
1931
  }
1932
1932
  );
1933
1933
  }
1934
1934
  var renderPackageSearch = (field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StaticPackageField, { ...field });
1935
1935
  var NO_NARROWING = { columnFilters: [], tags: [] };
1936
1936
  function SoftwareUpdateScreen({ compact = false }) {
1937
- const cast = _chunkSTEJZPIOcjs.useProductDemoCast.call(void 0, );
1937
+ const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
1938
1938
  const fixture = _react.useMemo.call(void 0, () => buildSoftwareUpdateFixture(cast), [cast]);
1939
1939
  const selected = _react.useMemo.call(void 0,
1940
1940
  () => fixture.devices.filter((device) => fixture.selectedIds.has(device.id)),
1941
1941
  [fixture.devices, fixture.selectedIds]
1942
1942
  );
1943
1943
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1944
- _chunk2I2AXIBDcjs.SoftwareActionForm,
1944
+ _chunkZCNEO273cjs.SoftwareActionForm,
1945
1945
  {
1946
1946
  action: fixture.action,
1947
1947
  showHeader: false,
@@ -1953,7 +1953,7 @@ function SoftwareUpdateScreen({ compact = false }) {
1953
1953
  initialValues: fixture.initialValues,
1954
1954
  renderPackageSearch,
1955
1955
  renderDevicePicker: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1956
- _chunk2I2AXIBDcjs.DeviceSelector,
1956
+ _chunkZCNEO273cjs.DeviceSelector,
1957
1957
  {
1958
1958
  devices: selected,
1959
1959
  loading: false,
@@ -2,11 +2,11 @@
2
2
  "use client";
3
3
 
4
4
 
5
- var _chunkSTEJZPIOcjs = require('./chunk-STEJZPIO.cjs');
5
+ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
9
+ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
10
10
 
11
11
 
12
12
 
@@ -1844,8 +1844,8 @@ function buildTicketsBoardFixture(cast) {
1844
1844
  ticket("tk-1051", "Printer offline at the front desk", "ACTIVE", {
1845
1845
  ticketNumber: "1051",
1846
1846
  agent: "fae",
1847
- deviceHostnames: [_chunkDKOLQPE7cjs.DEMO_DEVICES.frontDesk.hostname],
1848
- organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.harbor.name,
1847
+ deviceHostnames: [_chunkFDZOE5TLcjs.DEMO_DEVICES.frontDesk.hostname],
1848
+ organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.harbor.name,
1849
1849
  priority: "medium",
1850
1850
  hasNewMessage: true,
1851
1851
  activity: { kind: "ai-working" }
@@ -1853,7 +1853,7 @@ function buildTicketsBoardFixture(cast) {
1853
1853
  ticket("tk-1052", "New hire starts Monday", "ACTIVE", {
1854
1854
  ticketNumber: "1052",
1855
1855
  agent: "mingo",
1856
- organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.acme.name,
1856
+ organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.acme.name,
1857
1857
  priority: "low",
1858
1858
  tags: ["onboarding"]
1859
1859
  })
@@ -1862,8 +1862,8 @@ function buildTicketsBoardFixture(cast) {
1862
1862
  ticket("tk-1049", "Acrobat Pro for Maya", "TECH_REQUIRED", {
1863
1863
  ticketNumber: "1049",
1864
1864
  agent: "fae",
1865
- deviceHostnames: [_chunkDKOLQPE7cjs.DEMO_DEVICES.mayaAir.hostname],
1866
- organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.northbridge.name,
1865
+ deviceHostnames: [_chunkFDZOE5TLcjs.DEMO_DEVICES.mayaAir.hostname],
1866
+ organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.northbridge.name,
1867
1867
  priority: "high",
1868
1868
  assignees: [dana],
1869
1869
  pendingApproval: {
@@ -1875,8 +1875,8 @@ function buildTicketsBoardFixture(cast) {
1875
1875
  ticket("tk-1050", "VPN keeps dropping on the train", "TECH_REQUIRED", {
1876
1876
  ticketNumber: "1050",
1877
1877
  agent: "fae",
1878
- deviceHostnames: [_chunkDKOLQPE7cjs.DEMO_DEVICES.samT14.hostname],
1879
- organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.northbridge.name,
1878
+ deviceHostnames: [_chunkFDZOE5TLcjs.DEMO_DEVICES.samT14.hostname],
1879
+ organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.northbridge.name,
1880
1880
  priority: "medium",
1881
1881
  assignees: [alex],
1882
1882
  escalatedByUser: true
@@ -1885,7 +1885,7 @@ function buildTicketsBoardFixture(cast) {
1885
1885
  _chunkPQIWR4Q2cjs.columnFromTicketStatus.call(void 0, "ON_HOLD", [
1886
1886
  ticket("tk-1046", "Replace the conference room display", "ON_HOLD", {
1887
1887
  ticketNumber: "1046",
1888
- organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.acme.name,
1888
+ organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.acme.name,
1889
1889
  priority: "low",
1890
1890
  assignees: [alex],
1891
1891
  activity: { kind: "waiting-external" }
@@ -1897,20 +1897,20 @@ function buildTicketsBoardFixture(cast) {
1897
1897
  ticket("tk-1048", "Slow laptop", "RESOLVED", {
1898
1898
  ticketNumber: "1048",
1899
1899
  agent: "fae",
1900
- deviceHostnames: [_chunkDKOLQPE7cjs.DEMO_DEVICES.samT14.hostname],
1901
- organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.northbridge.name
1900
+ deviceHostnames: [_chunkFDZOE5TLcjs.DEMO_DEVICES.samT14.hostname],
1901
+ organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.northbridge.name
1902
1902
  }),
1903
1903
  ticket("tk-1047", "Teams will not open", "RESOLVED", {
1904
1904
  ticketNumber: "1047",
1905
1905
  agent: "fae",
1906
- deviceHostnames: [_chunkDKOLQPE7cjs.DEMO_DEVICES.mayaAir.hostname],
1907
- organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.northbridge.name
1906
+ deviceHostnames: [_chunkFDZOE5TLcjs.DEMO_DEVICES.mayaAir.hostname],
1907
+ organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.northbridge.name
1908
1908
  }),
1909
1909
  ticket("tk-1045", "Turned the firewall back on", "RESOLVED", {
1910
1910
  ticketNumber: "1045",
1911
1911
  agent: "mingo",
1912
- deviceHostnames: [_chunkDKOLQPE7cjs.DEMO_DEVICES.leoThinkPad.hostname],
1913
- organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.harbor.name
1912
+ deviceHostnames: [_chunkFDZOE5TLcjs.DEMO_DEVICES.leoThinkPad.hostname],
1913
+ organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.harbor.name
1914
1914
  })
1915
1915
  ],
1916
1916
  { total: 14 }
@@ -1924,7 +1924,7 @@ var noop = () => {
1924
1924
  };
1925
1925
  var FOLDED = { ON_HOLD: true, RESOLVED: true };
1926
1926
  function TicketsBoardScreen({ compact = false }) {
1927
- const cast = _chunkSTEJZPIOcjs.useProductDemoCast.call(void 0, );
1927
+ const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
1928
1928
  const board = _react.useMemo.call(void 0, () => buildTicketsBoardFixture(cast), [cast]);
1929
1929
  const columns = compact ? board.filter((column) => column.id !== "ON_HOLD") : board;
1930
1930
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQIWR4Q2cjs.Board, { columns, onChange: noop, initialCollapsed: compact ? void 0 : FOLDED }) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.791",
3
+ "version": "0.0.793",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -43,8 +43,14 @@ export function MarkdownSkeleton({
43
43
  <TextLineSkeleton type="inherit" as="span" className="w-1/3" />
44
44
  </h2>
45
45
  ) : (
46
+ // The last block ends the body with no margin, like the rendered one. Its own `last:mb-0` does not apply here:
47
+ // the region's status line follows the blocks, so the paragraph is not the last child.
46
48
  // biome-ignore lint/suspicious/noArrayIndexKey: skeleton blocks never reorder
47
- <p key={i} className={MARKDOWN_SKELETON_P_CLASS} aria-hidden>
49
+ <p
50
+ key={i}
51
+ className={cn(MARKDOWN_SKELETON_P_CLASS, i === MARKDOWN_SKELETON_BLOCKS.length - 1 && 'mb-0')}
52
+ aria-hidden
53
+ >
48
54
  <TextLineSkeleton type="inherit" as="span" lines={block.lines} className="w-full" />
49
55
  </p>
50
56
  ),
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import { type CSSProperties, type ReactNode, useId } from 'react';
3
+ import { type ComponentProps, type CSSProperties, type ReactNode, useId } from 'react';
4
4
  import { cn } from '../../utils/cn';
5
5
  import { isOwnClick } from '../../utils/own-click';
6
6
  import { useAgentTint } from '../agent-identity';
@@ -10,7 +10,7 @@ import { CheckIcon } from '../icons-v2-generated/signs-and-symbols/check-icon';
10
10
  import { PlusIcon } from '../icons-v2-generated/signs-and-symbols/plus-icon';
11
11
  import { LoadingRegion } from '../loading/loading-region';
12
12
  import { TextLineSkeleton } from '../loading/unified-skeleton';
13
- import { BUTTON_ICON_SM_SIZE, Button } from '../ui/button/button';
13
+ import { Button } from '../ui/button/button';
14
14
  import { InertWhileLoading, useLoadingScope } from '../ui/loading-scope';
15
15
  import { Tag } from '../ui/tag';
16
16
 
@@ -50,12 +50,14 @@ const OUTCOME_CHECK_CLASS = 'flex shrink-0 items-center';
50
50
  const OUTCOME_CHECK_STYLE = { height: '1lh' } as const;
51
51
  /** The request's quote: two lines at least, cut at two. Read by the card and its skeleton. */
52
52
  const REQUEST_TEXT_CLASS = 'm-0 line-clamp-2 min-h-[2lh] text-ods-text-primary text-h3';
53
- /** The request clears the corner toggle when the card is pickable: the toggle's width plus a gap. */
54
- const REQUEST_CLEAR_TOGGLE_STYLE = {
55
- paddingRight: `calc(${BUTTON_ICON_SM_SIZE} + var(--spacing-system-xsf))`,
56
- } as const;
57
- /** The selection toggle's place, in the card's corner. */
58
- const SELECTION_TOGGLE_CLASS = 'absolute right-[var(--spacing-system-mf)] top-[var(--spacing-system-mf)] z-10';
53
+ /**
54
+ * A pickable card's first row: the asker's turn, then the selection toggle in its own column at the row's end. The
55
+ * toggle is part of the layout, never drawn over it (the selectable-card practice of Carbon, Salt and PatternFly: the
56
+ * mark always visible, in a place of its own), so the asker's name and time make room for it instead of running under it.
57
+ */
58
+ const REQUESTER_ROW_CLASS = 'flex items-start gap-[var(--spacing-system-xsf)]';
59
+ const REQUESTER_TURN_CLASS = 'min-w-0 flex-1';
60
+ const SELECTION_TOGGLE_CLASS = 'shrink-0';
59
61
  /** The context's label ("Today"): copy the page states, drawn for real in both forms. */
60
62
  const CONTEXT_LABEL_CLASS = 'text-ods-text-secondary text-h6';
61
63
  /** The speakers' avatar corner as the skeleton draws it. */
@@ -186,36 +188,35 @@ export function ConversationCard({
186
188
  })
187
189
  }
188
190
  >
189
- {selection && (
190
- // The toggle is a regular boxed Button in the card's corner, named by the
191
- // request; a click anywhere on the card toggles it too (a pointer
192
- // convenience: the Button is the control keyboards and screen readers use).
193
- <Button
194
- type="button"
195
- variant={selection.pressed ? 'accent' : 'outline'}
196
- size="icon-sm"
197
- aria-pressed={selection.pressed}
198
- aria-labelledby={requestId}
199
- onClick={event => {
200
- event.stopPropagation();
201
- selection.onToggle();
202
- }}
203
- className={SELECTION_TOGGLE_CLASS}
204
- >
205
- {selection.pressed ? <CheckIcon /> : <PlusIcon />}
206
- </Button>
207
- )}
208
191
  {/* Every part keeps at least its number of lines, so cards in a row or a carousel line up part by part. */}
209
- <ChatTurn avatar={requester.avatar} name={requester.name} meta={requester.meta} time={requester.time}>
210
- <p
211
- id={requestId}
212
- className={REQUEST_TEXT_CLASS}
213
- style={selection ? REQUEST_CLEAR_TOGGLE_STYLE : undefined}
214
- title={request}
192
+ <RequesterRow
193
+ selection={
194
+ // A regular boxed Button, named by the request; a click anywhere on the card toggles it too (a pointer
195
+ // convenience: the Button is the control keyboards and screen readers use).
196
+ selection && (
197
+ <SelectionToggle
198
+ pressed={selection.pressed}
199
+ aria-labelledby={requestId}
200
+ onClick={event => {
201
+ event.stopPropagation();
202
+ selection.onToggle();
203
+ }}
204
+ />
205
+ )
206
+ }
207
+ >
208
+ <ChatTurn
209
+ avatar={requester.avatar}
210
+ name={requester.name}
211
+ meta={requester.meta}
212
+ time={requester.time}
213
+ className={selection ? REQUESTER_TURN_CLASS : undefined}
215
214
  >
216
- &ldquo;{request}&rdquo;
217
- </p>
218
- </ChatTurn>
215
+ <p id={requestId} className={REQUEST_TEXT_CLASS} title={request}>
216
+ &ldquo;{request}&rdquo;
217
+ </p>
218
+ </ChatTurn>
219
+ </RequesterRow>
219
220
  {context && (
220
221
  <div className={CONTEXT_BLOCK_CLASS}>
221
222
  <span className={CONTEXT_LABEL_CLASS}>{context.label}</span>
@@ -304,34 +305,28 @@ function ConversationCardSkeleton({
304
305
  const outcomeLines = partLines(lines?.outcome);
305
306
  return (
306
307
  <LoadingRegion label={label} announce={announce} className={cn(CARD_FRAME_CLASS, className)}>
307
- {selection && (
308
- <InertWhileLoading className="contents">
309
- <Button
310
- type="button"
311
- variant={selection.pressed ? 'accent' : 'outline'}
312
- size="icon-sm"
313
- aria-pressed={selection.pressed}
314
- className={SELECTION_TOGGLE_CLASS}
315
- >
316
- {selection.pressed ? <CheckIcon /> : <PlusIcon />}
317
- </Button>
318
- </InertWhileLoading>
319
- )}
320
- <ChatTurn
321
- loading
322
- name=""
323
- skeleton={{
324
- avatarPx,
325
- avatarShape: SKELETON_AVATAR_SHAPE,
326
- meta: requesterMeta,
327
- time: requesterTime,
328
- body: (
329
- <div style={selection ? REQUEST_CLEAR_TOGGLE_STYLE : undefined}>
330
- <TextLineSkeleton lines={2} type="h3" />
331
- </div>
332
- ),
333
- }}
334
- />
308
+ <RequesterRow
309
+ selection={
310
+ selection && (
311
+ <InertWhileLoading className="contents">
312
+ <SelectionToggle pressed={selection.pressed} />
313
+ </InertWhileLoading>
314
+ )
315
+ }
316
+ >
317
+ <ChatTurn
318
+ loading
319
+ name=""
320
+ className={selection ? REQUESTER_TURN_CLASS : undefined}
321
+ skeleton={{
322
+ avatarPx,
323
+ avatarShape: SKELETON_AVATAR_SHAPE,
324
+ meta: requesterMeta,
325
+ time: requesterTime,
326
+ body: <TextLineSkeleton lines={2} type="h3" />,
327
+ }}
328
+ />
329
+ </RequesterRow>
335
330
  {context && (
336
331
  <div className={CONTEXT_BLOCK_CLASS}>
337
332
  {typeof context === 'string' ? (
@@ -377,3 +372,33 @@ function ConversationCardSkeleton({
377
372
  </LoadingRegion>
378
373
  );
379
374
  }
375
+
376
+ /** The asker's turn, and the selection toggle at the row's end when the card is pickable (`REQUESTER_ROW_CLASS`). */
377
+ function RequesterRow({ selection, children }: { selection?: ReactNode; children: ReactNode }) {
378
+ if (!selection) return <>{children}</>;
379
+ return (
380
+ <div className={REQUESTER_ROW_CLASS}>
381
+ {children}
382
+ {selection}
383
+ </div>
384
+ );
385
+ }
386
+
387
+ /** The selection toggle: ONE element for the card and its skeleton, a "+" until picked and a check once picked. */
388
+ function SelectionToggle({
389
+ pressed,
390
+ ...props
391
+ }: { pressed: boolean } & Pick<ComponentProps<typeof Button>, 'onClick' | 'aria-labelledby'>) {
392
+ return (
393
+ <Button
394
+ type="button"
395
+ variant={pressed ? 'accent' : 'outline'}
396
+ size="icon-sm"
397
+ aria-pressed={pressed}
398
+ className={SELECTION_TOGGLE_CLASS}
399
+ {...props}
400
+ >
401
+ {pressed ? <CheckIcon /> : <PlusIcon />}
402
+ </Button>
403
+ );
404
+ }
@@ -662,7 +662,7 @@ const TRUST_PANEL_SHAPES: Record<
662
662
  compliance: { mark: 'logo', action: 'badge', lines: { phone: 4, wide: 1 } },
663
663
  documents: { mark: 'glyph', action: 'button', lines: { phone: 1, wide: 1 } },
664
664
  subprocessors: { mark: 'glyph', action: 'none', lines: { phone: 1, wide: 1 } },
665
- ai: { mark: 'glyph', action: 'none', lines: { phone: 6, wide: 2 } },
665
+ ai: { mark: 'glyph', action: 'none', lines: { phone: 7, wide: 2 } },
666
666
  };
667
667
 
668
668
  /**
@@ -0,0 +1,100 @@
1
+ 'use client';
2
+
3
+ /**
4
+ * The booking form's summary of what the visitor told the page before it (a `BookingContext`): its label, then one
5
+ * tag per line. Read only: the visitor changes it where they gave it (the page above the form).
6
+ *
7
+ * With a `slot` (`BookingContextSlot`) the block keeps the space of its most lines from its first paint: a grid of
8
+ * that many cells, one line each. Loading, every cell is a tag's skeleton; loaded, the given lines fill the cells in
9
+ * order, and with none an empty state (the slot's `emptyText`) fills the whole space. The block is one height in all
10
+ * three, so picking a card never moves the page. Without a slot it takes room only once it has a line.
11
+ */
12
+ import type { ReactNode } from 'react';
13
+ import { type BookingContext, type BookingContextSlot, hasBookingContext } from '../../schemas/meeting-booking-schema';
14
+ import { cn } from '../../utils/cn';
15
+ import { useLoadingScope } from '../ui/loading-scope';
16
+ import { Tag } from '../ui/tag';
17
+
18
+ /** The cells: one column on a phone, two from `content-md`. ONE class for every state. */
19
+ const SLOT_GRID_CLASS = 'grid grid-cols-1 gap-[var(--spacing-system-xs)] content-md:grid-cols-2';
20
+ /** A cell: a flex row, so a tag (or its inline skeleton) is the cell's whole height, with no line box around it. */
21
+ const SLOT_CELL_CLASS = 'flex min-w-0';
22
+ /** A line's tag: the sentence tag, never wider than its cell (a longer line clips, whole in the tag's tooltip). */
23
+ const LINE_TAG_PROPS = { variant: 'outline', size: 'sentence', className: 'max-w-full' } as const;
24
+ /** A line while loading: a typical sentence's width, not the tag skeleton's label width. */
25
+ const LOADING_LINE_CLASS = 'w-3/4';
26
+ /** The empty state, over the whole reserved space (its slots hidden under it). */
27
+ const EMPTY_CLASS =
28
+ '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';
29
+ /** A cell no line has filled yet: a dashed slot at a tag's height, so the reserved space reads as places to fill. */
30
+ const EMPTY_CELL_CLASS = 'h-9 w-full rounded-md border border-dashed border-ods-border';
31
+
32
+ export function BookingContextSummary({
33
+ context,
34
+ slot,
35
+ loading: loadingProp,
36
+ }: {
37
+ context?: BookingContext | null;
38
+ slot?: BookingContextSlot;
39
+ /** Draw the loading form outside a loading scope too. */
40
+ loading?: boolean;
41
+ }) {
42
+ const loading = useLoadingScope() || loadingProp;
43
+ const items = hasBookingContext(context) ? context.items.filter(item => item.trim()) : [];
44
+ const label = slot?.label ?? context?.label;
45
+ if (!label || (!slot && items.length === 0)) return null;
46
+ if (!slot) {
47
+ return (
48
+ <SummaryFrame label={label}>
49
+ <ul className="flex flex-wrap gap-[var(--spacing-system-xs)]" aria-label={label}>
50
+ {items.map(item => (
51
+ <li key={item} className="min-w-0 max-w-full">
52
+ <Tag label={item} {...LINE_TAG_PROPS} />
53
+ </li>
54
+ ))}
55
+ </ul>
56
+ </SummaryFrame>
57
+ );
58
+ }
59
+ const cells = Array.from({ length: Math.max(slot.slots, items.length) }, (_, index) => items[index]);
60
+ return (
61
+ <SummaryFrame label={label}>
62
+ <div className="relative">
63
+ <ul className={SLOT_GRID_CLASS} aria-label={label}>
64
+ {cells.map((item, index) => {
65
+ const empty = !loading && !item;
66
+ return (
67
+ <li
68
+ key={item ?? `empty-${index}`}
69
+ className={SLOT_CELL_CLASS}
70
+ aria-hidden={empty || undefined}
71
+ // Each cell is an item of the list in every state, so loading and loaded count the same cells.
72
+ data-loading-item=""
73
+ >
74
+ {loading ? (
75
+ <Tag label="" loading {...LINE_TAG_PROPS} className={LOADING_LINE_CLASS} />
76
+ ) : item ? (
77
+ <Tag label={item} {...LINE_TAG_PROPS} />
78
+ ) : (
79
+ // With no line at all the empty state covers every slot; with some, the rest stay as slots.
80
+ <span className={cn(EMPTY_CELL_CLASS, items.length === 0 && 'invisible')} />
81
+ )}
82
+ </li>
83
+ );
84
+ })}
85
+ </ul>
86
+ {!loading && items.length === 0 && <p className={EMPTY_CLASS}>{slot.emptyText}</p>}
87
+ </div>
88
+ </SummaryFrame>
89
+ );
90
+ }
91
+
92
+ function SummaryFrame({ label, children }: { label: string; children: ReactNode }) {
93
+ return (
94
+ <div className="flex flex-col gap-[var(--spacing-system-xs)]">
95
+ {/* The label is the page's copy: drawn for real while loading too. */}
96
+ <p className="text-ods-text-secondary text-h6">{label}</p>
97
+ {children}
98
+ </div>
99
+ );
100
+ }
@@ -26,6 +26,9 @@ import {
26
26
  type MeetingFormField,
27
27
  type SupportedMeetingFormField,
28
28
  type BookingFormValues,
29
+ bookingContextFields,
30
+ type BookingContext,
31
+ type BookingContextSlot,
29
32
  } from '../../schemas/meeting-booking-schema';
30
33
  import { cn } from '../../utils/cn';
31
34
  import type { FormRescueDefinition } from '../../utils/form-rescue';
@@ -53,6 +56,7 @@ import {
53
56
  import { HoneypotField } from '../ui/honeypot-field';
54
57
  import { LOADING_NOOP, useLoadingScope } from '../ui/loading-scope';
55
58
  import { TOGGLE_SIZE_CLASS } from '../ui/toggle';
59
+ import { BookingContextSummary } from './booking-context-summary';
56
60
 
57
61
  /**
58
62
  * One field in a host-supplied row. `name` is a built-in (`email`, `firstName`,
@@ -466,6 +470,19 @@ export interface BookingFormProps {
466
470
  * does not ask is ignored.
467
471
  */
468
472
  answers?: Readonly<Record<string, string>>;
473
+ /**
474
+ * What the visitor told the page before the form, beside the link's questions (the cards they picked): drawn at
475
+ * the top of the form as a summary of tags and sent with the booking (`BOOKING_CONTEXT_FIELD`), whatever questions
476
+ * the link declares. Read live, so a change made above the form shows at once; omitted or empty draws nothing.
477
+ * In `deferSlot` mode the form only shows it: the parent attaches the live context when it POSTs.
478
+ */
479
+ context?: BookingContext | null;
480
+ /**
481
+ * The space the form keeps for `context` from its first paint (loading included), so the page does not jump when
482
+ * a line is added: its label, the most lines, and what it shows while there are none. Omitted: the context takes
483
+ * room only once it has a line.
484
+ */
485
+ contextSlot?: BookingContextSlot;
469
486
  /** Defaults to "Confirm Booking"; details-first says "Continue". */
470
487
  submitLabel?: string;
471
488
  /** Small print beside the submit (details-first sets expectations). */
@@ -546,6 +563,7 @@ export function BookingForm(props: BookingFormProps) {
546
563
  consent={props.consent}
547
564
  footerNote={props.footerNote}
548
565
  submitLabel={props.submitLabel}
566
+ contextSlot={props.contextSlot}
549
567
  />
550
568
  );
551
569
  }
@@ -561,6 +579,8 @@ function BookingFormBody({
561
579
  deferSlot = false,
562
580
  initialValues,
563
581
  answers,
582
+ context,
583
+ contextSlot,
564
584
  submitLabel,
565
585
  footerNote,
566
586
  fieldRows,
@@ -738,6 +758,7 @@ function BookingFormBody({
738
758
  // must do so synchronously in this call — this form and its honeypot are
739
759
  // still mounted here, and `getSignals()` reads a detached ref once they
740
760
  // unmount, which would silently disable the decoy.
761
+ // No context here: it can change while the visitor picks a time, so the parent attaches it live at the POST.
741
762
  await onSubmit({ ...data, meetingId, [HOST_CONSENT_KEY]: consented, ...formRescue.submitFields() });
742
763
  return;
743
764
  }
@@ -748,6 +769,8 @@ function BookingFormBody({
748
769
  startTimeMs,
749
770
  durationMs,
750
771
  timezone,
772
+ // The page's context rides beside the answers, never inside them: the server strips it from the booking.
773
+ ...bookingContextFields(context),
751
774
  ...getSignals(),
752
775
  ...formRescue.submitFields(),
753
776
  });
@@ -851,6 +874,7 @@ function BookingFormBody({
851
874
  return (
852
875
  <form id={formId} onSubmit={submit} className={FORM_STACK} noValidate {...HUBSPOT_DO_NOT_COLLECT_FORM_PROPS}>
853
876
  <HoneypotField {...honeypotInputProps} />
877
+ <BookingContextSummary context={context} slot={contextSlot} />
854
878
 
855
879
  {/* Email first, name pair below — the order the desktop and mobile mocks
856
880
  both draw. The pair stays TWO columns even on a phone (164px each at
@@ -1000,6 +1024,7 @@ function BookingFormPending({
1000
1024
  consent,
1001
1025
  footerNote,
1002
1026
  submitLabel = DEFAULT_SUBMIT_LABEL,
1027
+ contextSlot,
1003
1028
  }: {
1004
1029
  fieldRows?: BookingFieldRow[];
1005
1030
  /** The optional questions the form asks (`BookingForm`'s `optionalFields`): a row slot naming another optional
@@ -1015,6 +1040,8 @@ function BookingFormPending({
1015
1040
  footerNote?: string;
1016
1041
  /** The submit button's label (`BookingForm`'s `submitLabel`): the button is drawn for real at its own size. */
1017
1042
  submitLabel?: string;
1043
+ /** The context's reserved space (`BookingForm`'s `contextSlot`), drawn as its loading form at its full size. */
1044
+ contextSlot?: BookingContextSlot;
1018
1045
  }) {
1019
1046
  const consentId = useId();
1020
1047
  // The real submit button (static copy), inert with the rest of the form.
@@ -1026,6 +1053,7 @@ function BookingFormPending({
1026
1053
  return (
1027
1054
  // Inert: the fields are the form's own controls, drawn so each is its loaded size; none takes focus.
1028
1055
  <div className={cn('flex-1', FORM_STACK)} aria-hidden inert>
1056
+ <BookingContextSummary slot={contextSlot} loading />
1029
1057
  {/* The host's rows (or the built-in layout) through the SAME grid, column
1030
1058
  rule and normalisation as the loaded form — see `normalizeFieldRows`. */}
1031
1059
  {skeletonRows(fieldRows ?? DEFAULT_FIELD_ROWS, optionalFields).map(row => (
@@ -144,6 +144,10 @@ function DirectoryRow({
144
144
  );
145
145
  }
146
146
 
147
+ const NO_HOSTS: SchedulingLink['hosts'] = [];
148
+ /** Hosts a loading row draws: a typical link's (measured 2026-10: every public link has one host). */
149
+ const TYPICAL_HOSTS = 1;
150
+
147
151
  /**
148
152
  * Same-shell loading row (co-located-skeleton convention): the row's frame, "Next available" and the chevron box
149
153
  * real, the title, subtitle, audience chip, hosts and next time as shapes.
@@ -156,7 +160,8 @@ function MeetingSchedulerDirectoryRowSkeleton(props: { [marker: `data-${string}`
156
160
  <TextLineSkeleton type="h6" className="w-1/3" />
157
161
  </div>
158
162
  <UnifiedSkeleton className="hidden h-6 w-28 shrink-0 content-sm:block" />
159
- <UnifiedSkeleton className="h-10 w-10 shrink-0 rounded-full" />
163
+ {/* The hosts in the stack's own loading form: one face, the typical link's host count. */}
164
+ <AvatarStack people={NO_HOSTS} loading max={TYPICAL_HOSTS} size="md" label="Hosts" className="flex shrink-0" />
160
165
  <div className={ROW_NEXT_COLUMN_CLASS}>
161
166
  <p className={ROW_NEXT_LABEL_CLASS}>Next available</p>
162
167
  <TextLineSkeleton type="h6" className="w-32" />