@flamingo-stack/openframe-frontend-core 0.0.635-2194.6263.1 → 0.0.635-2194.6264.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.635-2194.6263.1",
3
+ "version": "0.0.635-2194.6264.1",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -683,19 +683,22 @@ export function BookingFormSkeleton({
683
683
  consent?: boolean;
684
684
  footerNote?: string;
685
685
  }) {
686
+ // `rowCount` rows are one full-width slot each; host rows (or the built-in
687
+ // layout) go through the loaded form's normalisation (`normalizeFieldRows`).
688
+ const rows =
689
+ rowCount !== undefined
690
+ ? Array.from({ length: rowCount }, (_, index): BookingFieldRow => [{ name: `skeleton-row-${index}` }])
691
+ : skeletonRows(fieldRows ?? DEFAULT_FIELD_ROWS);
686
692
  return (
687
693
  <div className={cn('flex-1', FORM_STACK)}>
688
- {/* The host's rows (or the built-in layout) through the SAME grid, column
689
- rule and normalisation as the loaded form — see `normalizeFieldRows`. */}
690
- {rowCount !== undefined
691
- ? Array.from({ length: rowCount }, (_, index) => <Skeleton key={index} className={FIELD_SKELETON_CLASS} />)
692
- : skeletonRows(fieldRows ?? DEFAULT_FIELD_ROWS).map(row => (
693
- <div key={row.map(s => s.name).join('|')} className={ROW_GRID}>
694
- {row.map((slot, slotIndex) => (
695
- <Skeleton key={slot.name} className={cn(FIELD_SKELETON_CLASS, slotColumnClass(row, slot, slotIndex))} />
696
- ))}
697
- </div>
694
+ {/* Every row through the SAME grid and column rule as the loaded form. */}
695
+ {rows.map(row => (
696
+ <div key={row.map(s => s.name).join('|')} className={ROW_GRID}>
697
+ {row.map((slot, slotIndex) => (
698
+ <Skeleton key={slot.name} className={cn(FIELD_SKELETON_CLASS, slotColumnClass(row, slot, slotIndex))} />
698
699
  ))}
700
+ </div>
701
+ ))}
699
702
  {/* Without rows there is no telling how many questions the link declares: one long answer stands for them. */}
700
703
  {rowCount === undefined && !fieldRows && <Skeleton className="h-[7.75rem] w-full" />}
701
704
  {consent && <Skeleton className="h-[4.25rem] w-full" />}