@flamingo-stack/openframe-frontend-core 0.0.633 → 0.0.634
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/index.cjs +11 -4
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.d.ts +10 -24
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +11 -4
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/meeting-scheduler/index.tsx +26 -29
package/package.json
CHANGED
|
@@ -236,31 +236,17 @@ const STEP_PANEL_CLASS = cn('flex flex-1 flex-col', PANEL_STEP_CLASS);
|
|
|
236
236
|
export const MEETING_SCHEDULER_H = 'md:h-[34.375rem] lg:h-[23.75rem]';
|
|
237
237
|
|
|
238
238
|
/**
|
|
239
|
-
* The
|
|
240
|
-
*
|
|
241
|
-
*
|
|
239
|
+
* The box for `flow="details-first"`'s CALENDAR and confirmation stages (and its
|
|
240
|
+
* degraded stand-in), 638px from `md` (`4904:118213`), 812px on phones (the
|
|
241
|
+
* calendar stage's natural height at 375px: header strip + six fixed weeks +
|
|
242
|
+
* the 9.75rem chip cap). Fixed, not a floor, for the slot-first reason: the
|
|
243
|
+
* times column scrolls inside a stated height.
|
|
242
244
|
*
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
* ONE number from `md` up, not two: 638px, the card both mocks draw
|
|
249
|
-
* (`4904:117130` form-only, `4904:118213` three columns). The form stage has no
|
|
250
|
-
* sidebar to stack into a header strip, so nothing about it changes between
|
|
251
|
-
* tablet and desktop, and the calendar stage fits the same box at both — the
|
|
252
|
-
* times column scrolls inside it as it always has.
|
|
253
|
-
*
|
|
254
|
-
* PHONES get a stated height too — the one place this flow departs from
|
|
255
|
-
* slot-first's "the page is the scroller". Slot-first's two stages are the
|
|
256
|
-
* same shape on a phone (calendar + a capped times list either way), so it
|
|
257
|
-
* needs none. Details-first's are not: the form stage, the calendar stage and
|
|
258
|
-
* the two-line confirmation each have their own natural height, and a paid
|
|
259
|
-
* landing page that grows and shrinks by tens of pixels on every step reads as
|
|
260
|
-
* broken. 812px is the calendar stage's natural height at 375px (header strip
|
|
261
|
-
* + six fixed weeks + the 9.75rem chip cap), so that stage fits exactly and the
|
|
262
|
-
* form stage — shorter on the shipped links — sits in it; a link declaring more
|
|
263
|
-
* questions scrolls the form inside the card, as it already does from `md`.
|
|
245
|
+
* The FORM stage is NOT boxed. It renders at its natural height, so every
|
|
246
|
+
* question the HubSpot link declares is on the page instead of scrolling inside
|
|
247
|
+
* a card cut off mid-consent. What keeps that from jumping is the form's own
|
|
248
|
+
* footprint discipline: the SSR seed renders the real form on first paint, and
|
|
249
|
+
* the cold-start `BookingFormSkeleton` draws the same rows through the same grid.
|
|
264
250
|
*
|
|
265
251
|
* Hosts read it through `SCHEDULER_FLOW_PRESETS[flow].height`, never directly.
|
|
266
252
|
*/
|
|
@@ -688,12 +674,23 @@ export function HubSpotMeetingScheduler({
|
|
|
688
674
|
* last-wins, so appending it after would make a host's own `h-*` unreachable,
|
|
689
675
|
* which is the override the height-inside-CARD_CLASS arrangement allows today.
|
|
690
676
|
*/
|
|
691
|
-
|
|
677
|
+
// details-first's form stage grows with the link's questions (see
|
|
678
|
+
// MEETING_SCHEDULER_DETAILS_FIRST_H); every other stage keeps the stated box.
|
|
679
|
+
// `formOnly` is exactly that stage (`detailsFirst && step === 'details'`), so
|
|
680
|
+
// slot-first, the calendar, the confirmation and the skeleton of either stay boxed.
|
|
681
|
+
const boxed = !formOnly;
|
|
682
|
+
const cardClass = cn(
|
|
683
|
+
CARD_CLASS,
|
|
684
|
+
boxed ? preset.height : 'md:h-auto',
|
|
685
|
+
detailsFirst && 'flex flex-col',
|
|
686
|
+
formOnly && 'bg-ods-bg',
|
|
687
|
+
className,
|
|
688
|
+
);
|
|
692
689
|
/** details-first states a height on phones too (see MEETING_SCHEDULER_DETAILS_FIRST_H), so
|
|
693
|
-
* the wrappers that let content shrink into a stated height run at every width
|
|
694
|
-
const innerClass = cn(CARD_INNER_CLASS, detailsFirst && 'min-h-0 flex-1');
|
|
695
|
-
const actionPanelClass = cn(ACTION_PANEL_CLASS, detailsFirst && 'min-h-0 overflow-y-auto');
|
|
696
|
-
const stepPanelClass = cn(STEP_PANEL_CLASS, detailsFirst && 'min-h-0 overflow-y-auto');
|
|
690
|
+
* the wrappers that let content shrink into a stated height run at every width there. */
|
|
691
|
+
const innerClass = cn(CARD_INNER_CLASS, detailsFirst && boxed && 'min-h-0 flex-1');
|
|
692
|
+
const actionPanelClass = cn(ACTION_PANEL_CLASS, detailsFirst && boxed && 'min-h-0 overflow-y-auto');
|
|
693
|
+
const stepPanelClass = cn(STEP_PANEL_CLASS, detailsFirst && boxed && 'min-h-0 overflow-y-auto');
|
|
697
694
|
|
|
698
695
|
/** One card SHAPE for every degraded return below. */
|
|
699
696
|
const degraded = (message: string) => (
|