@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.
- package/dist/{chunk-ABZGBMC2.cjs → chunk-BI6FE3HO.cjs} +10 -10
- package/dist/{chunk-W3Q7ZQLS.cjs → chunk-BTI4RRU2.cjs} +2 -2
- package/dist/{chunk-3XSWE5FW.cjs → chunk-CASWVIJC.cjs} +8 -4
- package/dist/{chunk-6TPROUHW.cjs → chunk-CB24ILOB.cjs} +24 -14
- package/dist/{chunk-YWNXZAQ2.cjs → chunk-CKSAUEEL.cjs} +16 -16
- package/dist/{chunk-3AN35WAO.cjs → chunk-DWYMZ3LO.cjs} +24 -24
- package/dist/{chunk-DKOLQPE7.cjs → chunk-FDZOE5TL.cjs} +16 -1
- package/dist/{chunk-YPWFYQFE.cjs → chunk-FEARCFP4.cjs} +5 -5
- package/dist/{chunk-STEJZPIO.cjs → chunk-LHV2R6QU.cjs} +3 -3
- package/dist/{chunk-O4TKEWNW.cjs → chunk-LMZICTQW.cjs} +3 -3
- package/dist/{chunk-EPWLLLGW.cjs → chunk-LVBSVUHD.cjs} +2 -2
- package/dist/{chunk-4YIDZCTL.cjs → chunk-SMZWXY4X.cjs} +7 -13
- package/dist/{chunk-6ZPHUDTP.cjs → chunk-XGE2WCOH.cjs} +3 -3
- package/dist/{chunk-MIUFSOUN.cjs → chunk-YDH5OVRQ.cjs} +45 -38
- package/dist/{chunk-2I2AXIBD.cjs → chunk-ZCNEO273.cjs} +75 -55
- package/dist/{cloud-tenants-TTOYIEN3.cjs → cloud-tenants-BISHVU2T.cjs} +12 -12
- package/dist/components/case-studies/index.cjs +11 -11
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/docs/skeletons.d.ts.map +1 -1
- package/dist/components/docs/skeletons.js +11 -1
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/features/conversation-card.d.ts.map +1 -1
- package/dist/components/features/conversation-card.js +77 -56
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/help-center-pages/index.cjs +50 -50
- package/dist/components/help-center-pages/trust-center-sections.js +1 -1
- package/dist/components/index.cjs +18 -18
- package/dist/components/meeting-scheduler/booking-context-summary.d.ts +8 -0
- package/dist/components/meeting-scheduler/booking-context-summary.d.ts.map +1 -0
- package/dist/components/meeting-scheduler/booking-context-summary.js +54 -0
- package/dist/components/meeting-scheduler/booking-form.d.ts +14 -1
- package/dist/components/meeting-scheduler/booking-form.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/booking-form.js +13 -3
- package/dist/components/meeting-scheduler/directory.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/directory.js +3 -1
- package/dist/components/meeting-scheduler/index.cjs +137 -61
- package/dist/components/meeting-scheduler/index.d.ts +6 -2
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +7 -2
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/onboarding-guides/index.cjs +4 -4
- package/dist/components/product-demo/fixtures/devices.d.ts.map +1 -1
- package/dist/components/product-demo/fixtures/devices.js +5 -12
- package/dist/components/product-demo/fixtures/shared.d.ts +89 -0
- package/dist/components/product-demo/fixtures/shared.d.ts.map +1 -1
- package/dist/components/product-demo/fixtures/shared.js +15 -0
- package/dist/components/product-demo/index.cjs +16 -16
- package/dist/components/product-demo/screens/devices-view.d.ts.map +1 -1
- package/dist/components/product-demo/screens/devices-view.js +3 -1
- package/dist/components/shared/roadmap/roadmap-grid.d.ts.map +1 -1
- package/dist/components/shared/roadmap/roadmap-grid.js +15 -8
- package/dist/components/tickets/index.cjs +5 -5
- package/dist/components/ui/index.cjs +2 -2
- package/dist/{devices-SKWJYGUD.cjs → devices-GMR73ZF3.cjs} +8 -8
- package/dist/index.cjs +3 -3
- package/dist/{knowledge-BPB2TROI.cjs → knowledge-XC2K5VQO.cjs} +6 -6
- package/dist/loading-standard/engine.d.mts.map +1 -1
- package/dist/{logs-VIHYNQU4.cjs → logs-LBGQLETC.cjs} +24 -24
- package/dist/{policies-YVNOCNNO.cjs → policies-3XVE6266.cjs} +9 -9
- package/dist/{remote-session-WKLEYACD.cjs → remote-session-4ZNTOLOQ.cjs} +5 -5
- package/dist/schemas/meeting-booking-schema.cjs +21 -0
- package/dist/schemas/meeting-booking-schema.d.ts +43 -0
- package/dist/schemas/meeting-booking-schema.d.ts.map +1 -1
- package/dist/schemas/meeting-booking-schema.js +21 -0
- package/dist/{scripts-MK5FCR7L.cjs → scripts-NE5IL4NC.cjs} +13 -13
- package/dist/{software-update-GDV75A2Z.cjs → software-update-EJDKTFAP.cjs} +13 -13
- package/dist/{tickets-board-URMIIAKD.cjs → tickets-board-X4GHEKPB.cjs} +17 -17
- package/package.json +1 -1
- package/src/components/docs/skeletons.tsx +7 -1
- package/src/components/features/conversation-card.tsx +89 -64
- package/src/components/help-center-pages/trust-center-sections.tsx +1 -1
- package/src/components/meeting-scheduler/booking-context-summary.tsx +100 -0
- package/src/components/meeting-scheduler/booking-form.tsx +28 -0
- package/src/components/meeting-scheduler/directory.tsx +6 -1
- package/src/components/meeting-scheduler/index.tsx +23 -2
- package/src/components/product-demo/fixtures/devices.ts +5 -12
- package/src/components/product-demo/fixtures/shared.ts +20 -0
- package/src/components/product-demo/screens/devices-view.tsx +3 -0
- package/src/components/shared/roadmap/roadmap-grid.tsx +29 -7
- package/src/loading-standard/engine.mjs +6 -2
- package/src/schemas/meeting-booking-schema.ts +62 -0
|
@@ -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,OAAO,KAAK,EAAa,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAKvD,OAAO,EAEL,KAAK,uBAAuB,EAM5B,KAAK,kBAAkB,EAMvB,KAAK,mBAAmB,EAExB,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"booking-form.d.ts","sourceRoot":"","sources":["../../../src/components/meeting-scheduler/booking-form.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAa,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAKvD,OAAO,EAEL,KAAK,uBAAuB,EAM5B,KAAK,kBAAkB,EAMvB,KAAK,mBAAmB,EAExB,KAAK,gBAAgB,EAIrB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACx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,OAAO,CAAC;IACtB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,mFAAmF;IACnF,kBAAkB,EAAE;QAAE,GAAG,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACjE,UAAU,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IAClD;;;6BAGyB;IACzB,MAAM,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACtC;AAED;;;;;;;;;;;;;;;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
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../../../src/components/meeting-scheduler/directory.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAkB,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAYnG,MAAM,WAAW,8BAA8B;IAC7C,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gEAAgE;IAChE,WAAW,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC5C,2EAA2E;IAC3E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oFAAoF;IACpF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAmBD,+DAA+D;AAC/D,eAAO,MAAM,2BAA2B,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../../../src/components/meeting-scheduler/directory.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAkB,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAYnG,MAAM,WAAW,8BAA8B;IAC7C,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gEAAgE;IAChE,WAAW,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC5C,2EAA2E;IAC3E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oFAAoF;IACpF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAmBD,+DAA+D;AAC/D,eAAO,MAAM,2BAA2B,IAAI,CAAC;AA2H7C,wBAAgB,yBAAyB,CAAC,EACxC,UAAe,EACf,WAAkB,EAClB,UAAkB,EAClB,QAAsC,EACtC,eAAoC,EACpC,WAAW,EACX,SAAS,GACV,EAAE,8BAA8B,+BAkGhC"}
|
|
@@ -65,6 +65,8 @@ function DirectoryRow({
|
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
|
+
const NO_HOSTS = [];
|
|
69
|
+
const TYPICAL_HOSTS = 1;
|
|
68
70
|
function MeetingSchedulerDirectoryRowSkeleton(props = {}) {
|
|
69
71
|
return /* @__PURE__ */ jsxs("div", { className: ROW_FRAME_CLASS, "aria-hidden": true, ...loadingItemProps(props), children: [
|
|
70
72
|
/* @__PURE__ */ jsxs("div", { className: ROW_TITLE_COLUMN_CLASS, children: [
|
|
@@ -72,7 +74,7 @@ function MeetingSchedulerDirectoryRowSkeleton(props = {}) {
|
|
|
72
74
|
/* @__PURE__ */ jsx(TextLineSkeleton, { type: "h6", className: "w-1/3" })
|
|
73
75
|
] }),
|
|
74
76
|
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "hidden h-6 w-28 shrink-0 content-sm:block" }),
|
|
75
|
-
/* @__PURE__ */ jsx(
|
|
77
|
+
/* @__PURE__ */ jsx(AvatarStack, { people: NO_HOSTS, loading: true, max: TYPICAL_HOSTS, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
76
78
|
/* @__PURE__ */ jsxs("div", { className: ROW_NEXT_COLUMN_CLASS, children: [
|
|
77
79
|
/* @__PURE__ */ jsx("p", { className: ROW_NEXT_LABEL_CLASS, children: "Next available" }),
|
|
78
80
|
/* @__PURE__ */ jsx(TextLineSkeleton, { type: "h6", className: "w-32" })
|