@flamingo-stack/openframe-frontend-core 0.0.634 → 0.0.635-2194.6263.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/meeting-scheduler/booking-form.d.ts +8 -1
- package/dist/components/meeting-scheduler/booking-form.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +6 -3
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.d.ts +7 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +6 -3
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/meeting-scheduler/booking-form.tsx +17 -7
- package/src/components/meeting-scheduler/index.tsx +8 -0
|
@@ -65,6 +65,12 @@ export interface HubSpotMeetingSchedulerProps {
|
|
|
65
65
|
* can pass it across the RSC boundary where a component cannot.
|
|
66
66
|
*/
|
|
67
67
|
detailsFormProps?: Pick<BookingFormProps, 'fieldRows' | 'consent'>;
|
|
68
|
+
/**
|
|
69
|
+
* `flow="details-first"`: how many full-width field rows the cold-start form
|
|
70
|
+
* skeleton draws (see `BookingFormSkeleton`'s `rowCount`). Omit for the
|
|
71
|
+
* `fieldRows` / built-in footprint.
|
|
72
|
+
*/
|
|
73
|
+
skeletonRowCount?: number;
|
|
68
74
|
}
|
|
69
75
|
type Step = 'slot' | 'details' | 'confirmed';
|
|
70
76
|
/**
|
|
@@ -160,7 +166,7 @@ export declare function SchedulerDegradedCard({ flow, className, message, action
|
|
|
160
166
|
action?: ReactNode;
|
|
161
167
|
children?: ReactNode;
|
|
162
168
|
}): import("react").JSX.Element;
|
|
163
|
-
export declare function HubSpotMeetingScheduler({ meetingId, apiBaseUrl, initialAvailability, title, description, hosts, displayTimezone, fallbackUrl, onBack, onBooked, className, flow, detailsForm: DetailsForm, detailsFormProps, }: HubSpotMeetingSchedulerProps): import("react").JSX.Element;
|
|
169
|
+
export declare function HubSpotMeetingScheduler({ meetingId, apiBaseUrl, initialAvailability, title, description, hosts, displayTimezone, fallbackUrl, onBack, onBooked, className, flow, detailsForm: DetailsForm, detailsFormProps, skeletonRowCount, }: HubSpotMeetingSchedulerProps): import("react").JSX.Element;
|
|
164
170
|
export { BookingForm, BookingFormSkeleton, type BookingFormProps, type BookingFieldRow, type BookingFieldSlot, type BookingFormConsent, } from './booking-form';
|
|
165
171
|
export { MeetingSchedulerDirectory, MeetingSchedulerDirectoryRowSkeleton, type MeetingSchedulerDirectoryProps, } from './directory';
|
|
166
172
|
export type { MeetingAvailability, BookingConfirmation, MeetingBookingErrorCode, MeetingHost };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/meeting-scheduler/index.tsx"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtD,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EACjB,MAAM,sCAAsC,CAAC;AAI9C,OAAO,EAA0D,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAwB/G,MAAM,WAAW,4BAA4B;IAC3C,kFAAkF;IAClF,SAAS,EAAE,MAAM,CAAC;IAClB,2FAA2F;IAC3F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,mEAAmE;IACnE,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,sFAAsF;IACtF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yFAAyF;IACzF,WAAW,CAAC,EAAE,MAAM,CAAC;IACr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gHAAgH;IAChH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,+BAQA;AAkBD,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,UAAe,EACf,mBAAmB,EACnB,KAAK,EACL,WAAW,EACX,KAAK,EACL,eAAe,EACf,WAAW,EACX,MAAM,EACN,QAAQ,EACR,SAAS,EACT,IAA6B,EAC7B,WAAW,EAAE,WAAyB,EACtC,gBAAgB,EAChB,gBAAgB,GACjB,EAAE,4BAA4B,+BAwiB9B;AAKD,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,yBAAyB,EACzB,oCAAoC,EACpC,KAAK,8BAA8B,GACpC,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,WAAW,EAAE,CAAC;AAC/F,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC"}
|
|
@@ -667,12 +667,13 @@ function BookingForm({
|
|
|
667
667
|
}
|
|
668
668
|
function BookingFormSkeleton({
|
|
669
669
|
fieldRows,
|
|
670
|
+
rowCount,
|
|
670
671
|
consent,
|
|
671
672
|
footerNote
|
|
672
673
|
}) {
|
|
673
674
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex-1", FORM_STACK), children: [
|
|
674
|
-
skeletonRows(fieldRows ?? DEFAULT_FIELD_ROWS).map((row) => /* @__PURE__ */ jsx("div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ jsx(Skeleton, { className: cn(FIELD_SKELETON_CLASS, slotColumnClass(row, slot, slotIndex)) }, slot.name)) }, row.map((s) => s.name).join("|"))),
|
|
675
|
-
!fieldRows && /* @__PURE__ */ jsx(Skeleton, { className: "h-[7.75rem] w-full" }),
|
|
675
|
+
rowCount !== void 0 ? Array.from({ length: rowCount }, (_, index) => /* @__PURE__ */ jsx(Skeleton, { className: FIELD_SKELETON_CLASS }, index)) : skeletonRows(fieldRows ?? DEFAULT_FIELD_ROWS).map((row) => /* @__PURE__ */ jsx("div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ jsx(Skeleton, { className: cn(FIELD_SKELETON_CLASS, slotColumnClass(row, slot, slotIndex)) }, slot.name)) }, row.map((s) => s.name).join("|"))),
|
|
676
|
+
rowCount === void 0 && !fieldRows && /* @__PURE__ */ jsx(Skeleton, { className: "h-[7.75rem] w-full" }),
|
|
676
677
|
consent && /* @__PURE__ */ jsx(Skeleton, { className: "h-[4.25rem] w-full" }),
|
|
677
678
|
footerNote ? /* @__PURE__ */ jsxs("div", { className: FOOTER_ROW_CLASS, children: [
|
|
678
679
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 min-w-40 flex-1" }),
|
|
@@ -1332,7 +1333,8 @@ function HubSpotMeetingScheduler({
|
|
|
1332
1333
|
className,
|
|
1333
1334
|
flow = DEFAULT_SCHEDULER_FLOW,
|
|
1334
1335
|
detailsForm: DetailsForm = BookingForm,
|
|
1335
|
-
detailsFormProps
|
|
1336
|
+
detailsFormProps,
|
|
1337
|
+
skeletonRowCount
|
|
1336
1338
|
}) {
|
|
1337
1339
|
const {
|
|
1338
1340
|
availability,
|
|
@@ -1497,6 +1499,7 @@ function HubSpotMeetingScheduler({
|
|
|
1497
1499
|
BookingFormSkeleton,
|
|
1498
1500
|
{
|
|
1499
1501
|
fieldRows: detailsFormProps?.fieldRows,
|
|
1502
|
+
rowCount: skeletonRowCount,
|
|
1500
1503
|
consent: Boolean(detailsFormProps?.consent),
|
|
1501
1504
|
footerNote: preset.footerNote
|
|
1502
1505
|
}
|