@ankhorage/zora 28.8.3 → 28.10.0

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 (102) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -1
  3. package/dist/capabilities/index.js +133 -5
  4. package/dist/capabilities/index.js.map +8 -7
  5. package/dist/constants/authoring.d.ts +4 -3
  6. package/dist/constants/authoring.d.ts.map +1 -1
  7. package/dist/constants/authoring.js +3 -0
  8. package/dist/constants/authoring.js.map +1 -1
  9. package/dist/features/accordion/accordionItemMeta.d.ts +1 -1
  10. package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
  11. package/dist/features/calendar/adapters/inbound/Calendar.d.ts +1 -1
  12. package/dist/features/calendar/adapters/inbound/Calendar.d.ts.map +1 -1
  13. package/dist/features/calendar/adapters/inbound/Calendar.js +207 -75
  14. package/dist/features/calendar/adapters/inbound/Calendar.js.map +1 -1
  15. package/dist/features/calendar/calendarMeta.d.ts +106 -4
  16. package/dist/features/calendar/calendarMeta.d.ts.map +1 -1
  17. package/dist/features/calendar/calendarMeta.js +44 -4
  18. package/dist/features/calendar/calendarMeta.js.map +1 -1
  19. package/dist/features/calendar/public.d.ts +1 -1
  20. package/dist/features/calendar/public.d.ts.map +1 -1
  21. package/dist/features/calendar/public.js.map +1 -1
  22. package/dist/features/card/cardMeta.d.ts +1 -1
  23. package/dist/features/card/mediaCardMeta.d.ts +1 -1
  24. package/dist/features/card/postCardMeta.d.ts +1 -1
  25. package/dist/features/chat/messageBubbleMeta.d.ts +1 -1
  26. package/dist/features/data-table/dataTableMeta.d.ts +10 -0
  27. package/dist/features/data-table/dataTableMeta.d.ts.map +1 -1
  28. package/dist/features/data-table/dataTableMeta.js +7 -0
  29. package/dist/features/data-table/dataTableMeta.js.map +1 -1
  30. package/dist/features/dialog/dialogMeta.d.ts +2 -2
  31. package/dist/features/gradient/gradientMeta.d.ts +1 -1
  32. package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
  33. package/dist/features/layout/gridMeta.d.ts +1 -1
  34. package/dist/features/layout/screenMeta.d.ts +1 -1
  35. package/dist/features/layout/scrollViewMeta.d.ts +1 -1
  36. package/dist/features/layout/viewMeta.d.ts +1 -1
  37. package/dist/features/list/flatListMeta.d.ts +1 -1
  38. package/dist/features/list/sectionListMeta.d.ts +1 -1
  39. package/dist/features/master-detail/masterDetailMeta.d.ts +1 -1
  40. package/dist/features/popover/adapters/inbound/Popover.js +6 -3
  41. package/dist/features/popover/adapters/inbound/Popover.js.map +1 -1
  42. package/dist/features/popover/popoverMeta.d.ts +101 -0
  43. package/dist/features/popover/popoverMeta.d.ts.map +1 -0
  44. package/dist/features/popover/popoverMeta.js +78 -0
  45. package/dist/features/popover/popoverMeta.js.map +1 -0
  46. package/dist/features/reader/meta.d.ts +2 -2
  47. package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.d.ts.map +1 -1
  48. package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.js +2 -0
  49. package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.js.map +1 -1
  50. package/dist/features/registry/bindableComponentMeta.d.ts +2 -2
  51. package/dist/features/registry/componentMeta.d.ts.map +1 -1
  52. package/dist/features/registry/componentMeta.js +2 -0
  53. package/dist/features/registry/componentMeta.js.map +1 -1
  54. package/dist/features/scanner/meta.d.ts +2 -2
  55. package/dist/features/section/screenSectionMeta.d.ts +1 -1
  56. package/dist/features/surface/surfaceMeta.d.ts +1 -1
  57. package/dist/features/tabs/tabPanelMeta.d.ts +1 -1
  58. package/dist/readerFree.d.ts +1 -0
  59. package/dist/readerFree.d.ts.map +1 -1
  60. package/dist/readerFree.js +1 -0
  61. package/dist/readerFree.js.map +1 -1
  62. package/dist/types/calendar.d.ts +40 -19
  63. package/dist/types/calendar.d.ts.map +1 -1
  64. package/dist/types/calendar.js.map +1 -1
  65. package/dist/types/popover.d.ts +4 -1
  66. package/dist/types/popover.d.ts.map +1 -1
  67. package/dist/types/popover.js.map +1 -1
  68. package/package.json +102 -1
  69. package/src/constants/authoring.ts +3 -0
  70. package/src/features/calendar/adapters/inbound/Calendar.interaction.test.tsx +95 -0
  71. package/src/features/calendar/adapters/inbound/Calendar.tsx +425 -135
  72. package/src/features/calendar/calendarMeta.ts +44 -4
  73. package/src/features/calendar/public.test.ts +8 -5
  74. package/src/features/calendar/public.ts +4 -0
  75. package/src/features/data-table/adapters/inbound/DataTable.test.tsx +52 -1
  76. package/src/features/data-table/dataTableMeta.test.ts +8 -1
  77. package/src/features/data-table/dataTableMeta.ts +7 -0
  78. package/src/features/popover/adapters/inbound/Popover.tsx +17 -2
  79. package/src/features/popover/manifest.test.tsx +153 -0
  80. package/src/features/popover/popoverMeta.ts +79 -0
  81. package/src/features/popover/public.test.ts +2 -1
  82. package/src/features/registry/ZORA_BASE_COMPONENT_REGISTRY.ts +2 -0
  83. package/src/features/registry/componentMeta.test.ts +2 -0
  84. package/src/features/registry/componentMeta.ts +2 -0
  85. package/src/features/registry/featureManifest.test.ts +11 -0
  86. package/src/readerFree.ts +6 -0
  87. package/src/types/calendar.ts +44 -19
  88. package/src/types/popover.ts +5 -1
  89. package/src/webPackageExports.test.ts +1 -0
  90. package/web-dist/chunks/Accordion-59x6e7bs.js +200 -0
  91. package/web-dist/chunks/Accordion-q2yxtdzc.js +426 -0
  92. package/web-dist/components/calendar/Calendar.d.ts +2 -2
  93. package/web-dist/components/calendar/Calendar.dependency-2.d.ts +165 -0
  94. package/web-dist/components/calendar/Calendar.js +2 -1
  95. package/web-dist/components/calendar/Calendar.types-0.d.ts +45 -19
  96. package/web-dist/components/calendar/index.d.ts +1 -1
  97. package/web-dist/components/date-picker/DatePicker.js +2 -1
  98. package/web-dist/components/popover/Popover.js +10 -2
  99. package/web-dist/components/popover/Popover.types-0.d.ts +4 -1
  100. package/web-dist/components/time-grid/TimeGrid.js +4 -198
  101. package/web-dist/manifest.json +6 -2
  102. package/web-dist/chunks/Accordion-v3bmbnfh.js +0 -237
@@ -1 +1 @@
1
- {"version":3,"file":"Calendar.js","sourceRoot":"","sources":["../../../../../src/features/calendar/adapters/inbound/Calendar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAElF,MAAM,YAAY,GAAG,CAAC,CAAC;AACvB,MAAM,SAAS,GAAG,CAAC,CAAC;AAEpB,4FAA4F;AAC5F,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC;AAE1D,iFAAiF;AACjF,SAAS,aAAa,CAAC,EACrB,qBAAqB,EACrB,OAAO,GAAG,SAAS,EACnB,aAAa,GAAG,EAAE,EAClB,cAAc,EAAE,wBAAwB,EACxC,iBAAiB,EACjB,cAAc,EACd,MAAM,EACN,OAAO,EACP,OAAO,EACP,sBAAsB,EACtB,oBAAoB,EACpB,YAAY,EACZ,MAAM,EACN,YAAY,GAAG,CAAC,GACF;IACd,MAAM,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CACtF,iBAAiB,CAAC,qBAAqB,IAAI,YAAY,IAAI,OAAO,IAAI,IAAI,IAAI,EAAE,CAAC,CAClF,CAAC;IACF,MAAM,cAAc,GAAG,iBAAiB,CAAC,wBAAwB,IAAI,0BAA0B,CAAC,CAAC;IACjG,MAAM,QA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,IAAU,EAAE,KAAW;IAC7C,OAAO,kBAAkB,CAAC,IAAI,CAAC,KAAK,kBAAkB,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,yDAAyD;AACzD,SAAS,gBAAgB,CAAC,KAAW,EAAE,MAA0B;IAC/D,OAAO,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC3F,CAAC","sourcesContent":["import type { GridRectItem } from '@ankhorage/grid-view';\nimport React from 'react';\n\nimport type { CalendarProps } from '../../../../types/calendar';\nimport { Button } from '../../../button/public';\nimport { GridView } from '../../../grid-view/public';\nimport { View } from '../../../layout/public';\nimport { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';\nimport { Text } from '../../../typography/public';\nimport { createCalendarMonth } from '../../application/createCalendarMonth';\nimport { isCalendarDateDisabled } from '../../application/isCalendarDateDisabled';\n\nconst GRID_COLUMNS = 7;\nconst GRID_ROWS = 6;\n\n/*** Renders a locale-aware, accessible month calendar using canonical GridView geometry. */\nexport const Calendar = withZoraThemeScope(CalendarInner);\n\n/*** Connects controlled Calendar state to the shared month grid presentation. */\nfunction CalendarInner({\n defaultDisplayedMonth,\n density = 'regular',\n disabledDates = [],\n displayedMonth: controlledDisplayedMonth,\n interactionPolicy,\n isDateDisabled,\n locale,\n maxDate,\n minDate,\n onDisplayedMonthChange,\n onSelectedDateChange,\n selectedDate,\n testID,\n weekStartsOn = 0,\n}: CalendarProps) {\n const [uncontrolledDisplayedMonth, setUncontrolledDisplayedMonth] = React.useState(() =>\n startOfLocalMonth(defaultDisplayedMonth ?? selectedDate ?? minDate ?? new Date()),\n );\n const displayedMonth = startOfLocalMonth(controlledDisplayedMonth ?? uncontrolledDisplayedMonth);\n const cellSize = density === 'compact' ? 42 : 48;\n const gridWidth = cellSize * GRID_COLUMNS;\n const gridHeight = cellSize * GRID_ROWS;\n const cells = React.useMemo(\n () => createCalendarMonth(displayedMonth, weekStartsOn),\n [displayedMonth, weekStartsOn],\n );\n const gridItems = React.useMemo<readonly GridRectItem[]>(\n () =>\n cells.map((cell, index) => ({\n height: cellSize,\n id: cell.id,\n width: cellSize,\n x: (index % GRID_COLUMNS) * cellSize,\n y: Math.floor(index / GRID_COLUMNS) * cellSize,\n })),\n [cellSize, cells],\n );\n const cellsById = React.useMemo(() => new Map(cells.map((cell) => [cell.id, cell])), [cells]);\n const disabledDateIds = React.useMemo(\n () => new Set(disabledDates.map(formatCalendarDate)),\n [disabledDates],\n );\n const weekdays = React.useMemo(\n () => createWeekdayLabels(locale, weekStartsOn),\n [locale, weekStartsOn],\n );\n const setDisplayedMonth = React.useCallback(\n (month: Date) => {\n const nextMonth = startOfLocalMonth(month);\n if (controlledDisplayedMonth === undefined) setUncontrolledDisplayedMonth(nextMonth);\n onDisplayedMonthChange?.(nextMonth);\n },\n [controlledDisplayedMonth, onDisplayedMonthChange],\n );\n const previousMonth = addMonths(displayedMonth, -1);\n const nextMonth = addMonths(displayedMonth, 1);\n\n return (\n <View accessibilityLabel=\"Calendar\" gap={density === 'compact' ? 's' : 'm'} testID={testID}>\n <View align=\"center\" direction=\"row\" justify=\"space-between\">\n <Button\n disabled={!monthIntersectsRange(previousMonth, minDate, maxDate)}\n interactionPolicy={interactionPolicy}\n onPress={() => setDisplayedMonth(previousMonth)}\n size=\"s\"\n variant=\"ghost\"\n >\n Previous\n </Button>\n <Text accessibilityRole=\"header\" align=\"center\" variant=\"label\" weight=\"semiBold\">\n {formatMonthLabel(displayedMonth, locale)}\n </Text>\n <Button\n disabled={!monthIntersectsRange(nextMonth, minDate, maxDate)}\n interactionPolicy={interactionPolicy}\n onPress={() => setDisplayedMonth(nextMonth)}\n size=\"s\"\n variant=\"ghost\"\n >\n Next\n </Button>\n </View>\n <View direction=\"row\">\n {weekdays.map((weekday) => (\n <View key={weekday.id} width={cellSize}>\n <Text align=\"center\" emphasis=\"muted\" variant=\"caption\" weight=\"semiBold\">\n {weekday.label}\n </Text>\n </View>\n ))}\n </View>\n <GridView\n contentHeight={gridHeight}\n contentWidth={gridWidth}\n height={gridHeight}\n interactionPolicy={interactionPolicy}\n items={gridItems}\n overscanPixels={0}\n renderItem={(item) => {\n const cell = cellsById.get(item.id);\n if (!cell) return null;\n const selected =\n selectedDate !== null &&\n selectedDate !== undefined &&\n isSameLocalDay(selectedDate, cell.date);\n const disabled = isCalendarDateDisabled({\n date: cell.date,\n disabledDateIds,\n isDateDisabled,\n maxDate,\n minDate,\n });\n const selectCell = () => {\n if (!cell.inDisplayedMonth) setDisplayedMonth(cell.date);\n onSelectedDateChange?.(cell.date);\n };\n return (\n <Button\n accessibilityState={{ disabled, selected }}\n color={selected ? 'primary' : 'neutral'}\n disabled={disabled}\n interactionPolicy={interactionPolicy}\n onPress={selectCell}\n size=\"s\"\n testID={testID ? `${testID}-day-${cell.id}` : undefined}\n variant={selected ? 'solid' : cell.inDisplayedMonth ? 'ghost' : 'outline'}\n >\n {cell.date.getDate()}\n </Button>\n );\n }}\n testID={testID ? `${testID}-grid` : undefined}\n viewportInteraction=\"locked\"\n width={gridWidth}\n />\n </View>\n );\n}\n\n/*** Produces the ordered weekday labels for one local calendar week. */\nfunction createWeekdayLabels(locale: string | undefined, weekStartsOn: number) {\n const formatter = new Intl.DateTimeFormat(locale, { weekday: 'short' });\n const sunday = new Date(2023, 0, 1);\n return Array.from({ length: GRID_COLUMNS }, (_, index) => {\n const day = new Date(\n sunday.getFullYear(),\n sunday.getMonth(),\n sunday.getDate() + ((weekStartsOn + index) % GRID_COLUMNS),\n );\n return { id: String(index), label: formatter.format(day) };\n });\n}\n\n/*** Moves a local month without carrying a day-of-month overflow into the target month. */\nfunction addMonths(month: Date, count: number): Date {\n return new Date(month.getFullYear(), month.getMonth() + count, 1);\n}\n\n/*** Normalizes a value to the first local day of its month. */\nfunction startOfLocalMonth(value: Date): Date {\n return new Date(value.getFullYear(), value.getMonth(), 1);\n}\n\n/*** Formats a Date as a timezone-independent local calendar identifier. */\nfunction formatCalendarDate(value: Date): string {\n const year = String(value.getFullYear()).padStart(4, '0');\n const month = String(value.getMonth() + 1).padStart(2, '0');\n const day = String(value.getDate()).padStart(2, '0');\n return `${year}-${month}-${day}`;\n}\n\n/*** Compares local calendar dates using their canonical date-only identifiers. */\nfunction compareLocalDates(left: Date, right: Date): number {\n return formatCalendarDate(left).localeCompare(formatCalendarDate(right));\n}\n\n/*** Reports whether a candidate month contains at least one date inside the configured range. */\nfunction monthIntersectsRange(\n month: Date,\n minDate: Date | undefined,\n maxDate: Date | undefined,\n): boolean {\n const first = startOfLocalMonth(month);\n const last = new Date(first.getFullYear(), first.getMonth() + 1, 0);\n return (\n (!minDate || compareLocalDates(last, minDate) >= 0) &&\n (!maxDate || compareLocalDates(first, maxDate) <= 0)\n );\n}\n\n/*** Reports whether two values identify the same local calendar day. */\nfunction isSameLocalDay(left: Date, right: Date): boolean {\n return formatCalendarDate(left) === formatCalendarDate(right);\n}\n\n/*** Formats a display month with the caller's locale. */\nfunction formatMonthLabel(value: Date, locale: string | undefined): string {\n return new Intl.DateTimeFormat(locale, { month: 'long', year: 'numeric' }).format(value);\n}\n"]}
1
+ {"version":3,"file":"Calendar.js","sourceRoot":"","sources":["../../../../../src/features/calendar/adapters/inbound/Calendar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAA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;AAChE,CAAC;AACD,0CAA0C;AAC1C,SAAS,eAAe,CAAC,KAAW,EAAE,MAA0B,EAAE,IAAkB;IAClF,OAAO,IAAI,IAAI,CAAC,cAAc,CAC5B,MAAM,EACN,IAAI,KAAK,OAAO;QACd,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;QACpC,CAAC,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CACxD,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAClB,CAAC;AACD,4DAA4D;AAC5D,SAAS,cAAc,CAAC,KAAW,EAAE,MAA0B;IAC7D,OAAO,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC7F,CAAC;AACD,4EAA4E;AAC5E,SAAS,UAAU,CAAC,MAA0B,EAAE,MAAc;IAC5D,OAAO,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;AAClE,CAAC","sourcesContent":["import type { GridRectItem } from '@ankhorage/grid-view';\nimport React from 'react';\n\nimport type { CalendarProps, CalendarView } from '../../../../types/calendar';\nimport type {\n TemporalDate,\n TemporalEvent,\n TemporalTimedEvent,\n TemporalTimeZone,\n} from '../../../../types/temporal';\nimport { Button } from '../../../button/public';\nimport { GridView } from '../../../grid-view/public';\nimport { View } from '../../../layout/public';\nimport { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';\nimport { TimeGrid } from '../../../time-grid/public';\nimport { Text } from '../../../typography/public';\nimport { createCalendarMonth } from '../../application/createCalendarMonth';\nimport { isCalendarDateDisabled } from '../../application/isCalendarDateDisabled';\n\nconst GRID_COLUMNS = 7;\nconst GRID_ROWS = 6;\nconst MINUTES_PER_DAY = 24 * 60;\n\n/*** Renders controlled month, week, and day Calendar views through GridView and TimeGrid. */\nexport const Calendar = withZoraThemeScope(CalendarInner);\n\n/*** Connects serializable manifest state and the DatePicker-compatible code API to Calendar views. */\nfunction CalendarInner(props: CalendarProps) {\n const {\n defaultDisplayedDate,\n defaultDisplayedMonth,\n defaultView = 'month',\n density = 'regular',\n displayedDate: controlledDisplayedDate,\n displayedMonth: controlledDisplayedMonth,\n events = [],\n locale,\n onDateChange,\n onDisplayedMonthChange,\n onEventActivate,\n onViewChange,\n timeZone,\n view: controlledView,\n weekStartsOn = 0,\n } = props;\n const [uncontrolledDate, setUncontrolledDate] = React.useState(\n () =>\n parseCalendarDate(defaultDisplayedDate) ??\n startOfLocalDay(defaultDisplayedMonth ?? props.selectedDate ?? props.minDate ?? new Date()),\n );\n const [uncontrolledView, setUncontrolledView] = React.useState<CalendarView>(defaultView);\n const displayedDate =\n parseCalendarDate(controlledDisplayedDate) ??\n startOfLocalDay(controlledDisplayedMonth ?? uncontrolledDate);\n const view = controlledView ?? uncontrolledView;\n const setDisplayedDate = React.useCallback(\n (value: Date) => {\n const next = startOfLocalDay(value);\n if (controlledDisplayedDate === undefined && controlledDisplayedMonth === undefined)\n setUncontrolledDate(next);\n onDisplayedMonthChange?.(startOfLocalMonth(next));\n onDateChange?.({ date: formatCalendarDate(next) });\n },\n [controlledDisplayedDate, controlledDisplayedMonth, onDateChange, onDisplayedMonthChange],\n );\n const setView = React.useCallback(\n (next: CalendarView) => {\n if (controlledView === undefined) setUncontrolledView(next);\n onViewChange?.({ view: next });\n },\n [controlledView, onViewChange],\n );\n const navigate = React.useCallback(\n (offset: number) =>\n setDisplayedDate(\n view === 'month'\n ? addMonths(displayedDate, offset)\n : addDays(displayedDate, offset * (view === 'week' ? 7 : 1)),\n ),\n [displayedDate, setDisplayedDate, view],\n );\n return (\n <View\n accessibilityLabel=\"Calendar\"\n gap={density === 'compact' ? 's' : 'm'}\n testID={props.testID}\n >\n <View align=\"center\" direction=\"row\" justify=\"space-between\">\n <Button\n interactionPolicy={props.interactionPolicy}\n onPress={() => navigate(-1)}\n size=\"s\"\n testID={withTestId(props.testID, 'previous')}\n variant=\"ghost\"\n >\n Previous\n </Button>\n <Text accessibilityRole=\"header\" align=\"center\" variant=\"label\" weight=\"semiBold\">\n {formatViewLabel(displayedDate, locale, view)}\n </Text>\n <Button\n interactionPolicy={props.interactionPolicy}\n onPress={() => navigate(1)}\n size=\"s\"\n testID={withTestId(props.testID, 'next')}\n variant=\"ghost\"\n >\n Next\n </Button>\n </View>\n <View direction=\"row\" justify=\"space-between\">\n {(['day', 'week', 'month'] as const).map((candidate) => (\n <Button\n key={candidate}\n interactionPolicy={props.interactionPolicy}\n onPress={() => setView(candidate)}\n size=\"s\"\n testID={withTestId(props.testID, `view-${candidate}`)}\n variant={view === candidate ? 'solid' : 'ghost'}\n >\n {candidate}\n </Button>\n ))}\n <Button\n interactionPolicy={props.interactionPolicy}\n onPress={() => setDisplayedDate(new Date())}\n size=\"s\"\n testID={withTestId(props.testID, 'today')}\n variant=\"ghost\"\n >\n Today\n </Button>\n </View>\n {view === 'month' ? (\n <CalendarMonth\n {...props}\n activateEvent={(id) => onEventActivate?.({ eventId: id })}\n cellSize={density === 'compact' ? 42 : 48}\n displayedDate={displayedDate}\n events={events}\n timeZone={timeZone}\n weekStartsOn={weekStartsOn}\n onSelectDate={(date) => {\n setDisplayedDate(date);\n props.onSelectedDateChange?.(date);\n }}\n />\n ) : (\n <CalendarTimeView\n activateEvent={(id) => onEventActivate?.({ eventId: id })}\n displayedDate={displayedDate}\n events={events}\n interactionPolicy={props.interactionPolicy}\n locale={locale}\n testID={props.testID}\n timeZone={timeZone}\n view={view}\n weekStartsOn={weekStartsOn}\n />\n )}\n </View>\n );\n}\n\n/*** Renders the canonical GridView month geometry with stable event activation. */\nfunction CalendarMonth({\n activateEvent,\n cellSize,\n displayedDate,\n events,\n onSelectDate,\n timeZone,\n weekStartsOn,\n ...props\n}: Omit<CalendarProps, 'displayedDate'> & {\n readonly activateEvent: (eventId: string) => void;\n readonly cellSize: number;\n readonly displayedDate: Date;\n readonly events: readonly TemporalEvent[];\n readonly onSelectDate: (date: Date) => void;\n readonly timeZone: TemporalTimeZone | undefined;\n readonly weekStartsOn: number;\n}) {\n const cells = React.useMemo(\n () => createCalendarMonth(displayedDate, weekStartsOn),\n [displayedDate, weekStartsOn],\n );\n const gridItems = React.useMemo<readonly GridRectItem[]>(\n () =>\n cells.map((cell, index) => ({\n height: cellSize,\n id: cell.id,\n width: cellSize,\n x: (index % GRID_COLUMNS) * cellSize,\n y: Math.floor(index / GRID_COLUMNS) * cellSize,\n })),\n [cellSize, cells],\n );\n const cellsById = React.useMemo(() => new Map(cells.map((cell) => [cell.id, cell])), [cells]);\n const disabledDateIds = React.useMemo(\n () => new Set((props.disabledDates ?? []).map(formatCalendarDate)),\n [props.disabledDates],\n );\n const eventsByDate = React.useMemo(\n () =>\n createEventsByDate(\n events,\n cells.map((cell) => cell.date),\n timeZone,\n ),\n [cells, events, timeZone],\n );\n return (\n <>\n <View direction=\"row\">\n {createWeekdayLabels(props.locale, weekStartsOn).map((weekday) => (\n <View key={weekday.id} width={cellSize}>\n <Text align=\"center\" emphasis=\"muted\" variant=\"caption\" weight=\"semiBold\">\n {weekday.label}\n </Text>\n </View>\n ))}\n </View>\n <GridView\n contentHeight={cellSize * GRID_ROWS}\n contentWidth={cellSize * GRID_COLUMNS}\n height={cellSize * GRID_ROWS}\n interactionPolicy={props.interactionPolicy}\n items={gridItems}\n overscanPixels={0}\n renderItem={(item) => {\n const cell = cellsById.get(item.id);\n if (!cell) return null;\n const selected =\n props.selectedDate !== null &&\n props.selectedDate !== undefined &&\n isSameLocalDay(props.selectedDate, cell.date);\n const disabled = isCalendarDateDisabled({\n date: cell.date,\n disabledDateIds,\n isDateDisabled: props.isDateDisabled,\n maxDate: props.maxDate,\n minDate: props.minDate,\n });\n const event = eventsByDate.get(cell.id)?.[0];\n return (\n <View gap=\"xxs\">\n <Button\n accessibilityState={{ disabled, selected }}\n color={selected ? 'primary' : 'neutral'}\n disabled={disabled}\n interactionPolicy={props.interactionPolicy}\n onPress={() => onSelectDate(cell.date)}\n size=\"s\"\n testID={withTestId(props.testID, `day-${cell.id}`)}\n variant={selected ? 'solid' : cell.inDisplayedMonth ? 'ghost' : 'outline'}\n >\n {cell.date.getDate()}\n </Button>\n {props.density !== 'compact' && event ? (\n <Button\n interactionPolicy={props.interactionPolicy}\n onPress={() => activateEvent(event.id)}\n size=\"s\"\n testID={withTestId(props.testID, `event-${event.id}`)}\n variant=\"outline\"\n >\n {event.title}\n </Button>\n ) : null}\n </View>\n );\n }}\n testID={withTestId(props.testID, 'grid')}\n viewportInteraction=\"locked\"\n width={cellSize * GRID_COLUMNS}\n />\n </>\n );\n}\n\n/*** Renders day and week event lanes through the existing TimeGrid foundation. */\nfunction CalendarTimeView({\n activateEvent,\n displayedDate,\n events,\n interactionPolicy,\n locale,\n testID,\n timeZone,\n view,\n weekStartsOn,\n}: {\n readonly activateEvent: (eventId: string) => void;\n readonly displayedDate: Date;\n readonly events: readonly TemporalEvent[];\n readonly interactionPolicy: CalendarProps['interactionPolicy'];\n readonly locale: string | undefined;\n readonly testID: string | undefined;\n readonly timeZone: TemporalTimeZone | undefined;\n readonly view: Exclude<CalendarView, 'month'>;\n readonly weekStartsOn: number;\n}) {\n const dates = view === 'day' ? [displayedDate] : createWeek(displayedDate, weekStartsOn);\n const eventById = new Map(events.map((event) => [event.id, event]));\n return (\n <TimeGrid\n contentWidth={MINUTES_PER_DAY}\n height={Math.min(56 * dates.length, 336)}\n interactionPolicy={interactionPolicy}\n intervals={createTimeGridIntervals(events, dates, timeZone)}\n lanes={dates.map((date) => ({ height: 56, id: formatCalendarDate(date) }))}\n onIntervalPress={(interval) => activateEvent(interval.id)}\n overscanPixels={0}\n renderInterval={(interval) => (\n <Text variant=\"caption\">{eventById.get(interval.id)?.title}</Text>\n )}\n renderLaneLabel={(lane) => (\n <Text variant=\"caption\">\n {formatDayLabel(parseCalendarDate(lane.id) ?? displayedDate, locale)}\n </Text>\n )}\n testID={withTestId(testID, view)}\n width={320}\n />\n );\n}\n\n/*** Produces weekday labels for one local calendar week. */\nfunction createWeekdayLabels(locale: string | undefined, weekStartsOn: number) {\n const formatter = new Intl.DateTimeFormat(locale, { weekday: 'short' });\n return Array.from({ length: GRID_COLUMNS }, (_, index) => ({\n id: String(index),\n label: formatter.format(addDays(new Date(2023, 0, 1), (weekStartsOn + index) % GRID_COLUMNS)),\n }));\n}\n\n/*** Creates the visible local dates for a week view. */\nfunction createWeek(date: Date, weekStartsOn: number): readonly Date[] {\n const first = addDays(date, -((date.getDay() - weekStartsOn + GRID_COLUMNS) % GRID_COLUMNS));\n return Array.from({ length: GRID_COLUMNS }, (_, index) => addDays(first, index));\n}\n\n/*** Indexes events by each displayed local date they intersect in the Calendar timezone. */\nfunction createEventsByDate(\n events: readonly TemporalEvent[],\n dates: readonly Date[],\n timeZone: TemporalTimeZone | undefined,\n): ReadonlyMap<string, readonly TemporalEvent[]> {\n return new Map(\n dates.map((date) => [\n formatCalendarDate(date),\n events.filter((event) => eventIntersectsDate(event, formatCalendarDate(date), timeZone)),\n ]),\n );\n}\n\n/*** Maps timed events into TimeGrid lane-local minute coordinates. */\nfunction createTimeGridIntervals(\n events: readonly TemporalEvent[],\n dates: readonly Date[],\n timeZone: TemporalTimeZone | undefined,\n) {\n return dates.flatMap((date) =>\n events.flatMap((event) => {\n const dateId = formatCalendarDate(date);\n if (!isTemporalTimedEvent(event)) return [];\n if (!eventIntersectsDate(event, dateId, timeZone)) return [];\n const zone = timeZone ?? event.range.timeZone;\n const start = getZonedDateTimeParts(event.range.start, zone);\n const end = getZonedDateTimeParts(resolveTimedEnd(event), zone);\n const startMinute = start.date === dateId ? start.hour * 60 + start.minute : 0;\n const endMinute = end.date === dateId ? end.hour * 60 + end.minute : MINUTES_PER_DAY;\n return [\n {\n extent: Math.max(1, endMinute - startMinute),\n id: event.id,\n laneId: dateId,\n start: startMinute,\n },\n ];\n }),\n );\n}\n\n/*** Reports whether an event overlaps one local Calendar date. */\nfunction eventIntersectsDate(\n event: TemporalEvent,\n date: TemporalDate,\n timeZone: TemporalTimeZone | undefined,\n): boolean {\n if (!isTemporalTimedEvent(event))\n return (\n event.range.start <= date &&\n date < (event.range.end ?? addDaysToDate(event.range.start, event.range.duration))\n );\n const zone = timeZone ?? event.range.timeZone;\n return (\n getZonedDateTimeParts(event.range.start, zone).date <= date &&\n date <= getZonedDateTimeParts(resolveTimedEnd(event), zone).date\n );\n}\n\n/*** Narrows a serializable Calendar event to the instant-based timed variant. */\nfunction isTemporalTimedEvent(event: TemporalEvent): event is TemporalTimedEvent {\n return event.range.allDay === false;\n}\n\n/*** Resolves the exclusive timed end, including the existing duration alternative. */\nfunction resolveTimedEnd(event: TemporalTimedEvent): string {\n return (\n event.range.end ??\n new Date(\n Date.parse(event.range.start) + parseDurationMinutes(event.range.duration) * 60_000,\n ).toISOString()\n );\n}\n\n/*** Reads a UTC instant as a local date and wall-clock time in an IANA timezone. */\nfunction getZonedDateTimeParts(\n instant: string,\n timeZone: TemporalTimeZone,\n): { date: TemporalDate; hour: number; minute: number } {\n const parts = new Intl.DateTimeFormat('en-CA', {\n day: '2-digit',\n hour: '2-digit',\n hourCycle: 'h23',\n minute: '2-digit',\n month: '2-digit',\n timeZone,\n year: 'numeric',\n }).formatToParts(new Date(instant));\n const values = Object.fromEntries(parts.map((part) => [part.type, part.value]));\n return {\n date: `${values.year}-${values.month}-${values.day}` as TemporalDate,\n hour: Number(values.hour),\n minute: Number(values.minute),\n };\n}\n\n/*** Parses the bounded hour-and-minute duration form used for Calendar placement. */\nfunction parseDurationMinutes(duration: string | undefined): number {\n const match = /^PT(?:(\\d+)H)?(?:(\\d+)M)?$/.exec(duration ?? 'PT60M');\n return match ? Number(match[1] ?? 0) * 60 + Number(match[2] ?? 0) : 60;\n}\n\n/*** Adds a date-only duration without introducing a timezone. */\nfunction addDaysToDate(start: TemporalDate, duration: string | undefined): TemporalDate {\n return formatCalendarDate(\n addDays(\n parseCalendarDate(start) ?? new Date(),\n Math.max(1, Math.ceil(parseDurationMinutes(duration) / MINUTES_PER_DAY)),\n ),\n );\n}\n\n/*** Parses a local YYYY-MM-DD date without UTC conversion. */\nfunction parseCalendarDate(value: string | undefined): Date | undefined {\n if (!value || !/^\\d{4}-\\d{2}-\\d{2}$/.test(value)) return undefined;\n const [year, month, day] = value.split('-').map(Number);\n return year === undefined || month === undefined || day === undefined\n ? undefined\n : new Date(year, month - 1, day);\n}\n\n/*** Moves a local calendar day. */\nfunction addDays(date: Date, count: number): Date {\n return new Date(date.getFullYear(), date.getMonth(), date.getDate() + count);\n}\n/*** Moves a local month without day overflow. */\nfunction addMonths(month: Date, count: number): Date {\n const year = month.getFullYear();\n const targetMonth = month.getMonth() + count;\n const lastDay = new Date(year, targetMonth + 1, 0).getDate();\n return new Date(year, targetMonth, Math.min(month.getDate(), lastDay));\n}\n/*** Normalizes a value to the first local day of its month. */\nfunction startOfLocalMonth(value: Date): Date {\n return new Date(value.getFullYear(), value.getMonth(), 1);\n}\n/*** Normalizes a value to its local calendar date. */\nfunction startOfLocalDay(value: Date): Date {\n return new Date(value.getFullYear(), value.getMonth(), value.getDate());\n}\n/*** Formats a Date as a timezone-independent local calendar identifier. */\nfunction formatCalendarDate(value: Date): TemporalDate {\n return `${String(value.getFullYear()).padStart(4, '0')}-${String(value.getMonth() + 1).padStart(2, '0')}-${String(value.getDate()).padStart(2, '0')}` as TemporalDate;\n}\n/*** Compares local calendar dates using their canonical date-only identifiers. */\nfunction isSameLocalDay(left: Date, right: Date): boolean {\n return formatCalendarDate(left) === formatCalendarDate(right);\n}\n/*** Formats the controlled view title. */\nfunction formatViewLabel(value: Date, locale: string | undefined, view: CalendarView): string {\n return new Intl.DateTimeFormat(\n locale,\n view === 'month'\n ? { month: 'long', year: 'numeric' }\n : { day: 'numeric', month: 'short', year: 'numeric' },\n ).format(value);\n}\n/*** Formats a compact lane label for day and week views. */\nfunction formatDayLabel(value: Date, locale: string | undefined): string {\n return new Intl.DateTimeFormat(locale, { day: 'numeric', weekday: 'short' }).format(value);\n}\n/*** Resolves a test identifier suffix only when a test root is provided. */\nfunction withTestId(testID: string | undefined, suffix: string): string | undefined {\n return testID === undefined ? undefined : `${testID}-${suffix}`;\n}\n"]}
@@ -1,10 +1,112 @@
1
1
  export declare const calendarMeta: {
2
2
  readonly name: "Calendar";
3
3
  readonly category: "component";
4
- readonly description: "Reusable local-date calendar with a month view backed by GridView geometry.";
5
- readonly directManifestNode: false;
6
- readonly note: "Uses Date values and executable change callbacks; available through the public code API.";
4
+ readonly description: "Serializable Calendar with GridView month and TimeGrid day/week views.";
5
+ readonly directManifestNode: true;
7
6
  readonly allowedChildren: readonly [];
8
- readonly props: {};
7
+ readonly blueprint: {
8
+ readonly label: "Calendar";
9
+ readonly defaultProps: {
10
+ readonly displayedDate: "2026-12-04";
11
+ readonly events: readonly [];
12
+ readonly view: "month";
13
+ };
14
+ };
15
+ readonly events: {
16
+ readonly dateChange: {
17
+ readonly label: "Date change";
18
+ readonly eventType: "calendar.dateChange";
19
+ readonly payloadFields: readonly [{
20
+ readonly path: "date";
21
+ readonly type: "string";
22
+ readonly label: "Date";
23
+ }];
24
+ };
25
+ readonly viewChange: {
26
+ readonly label: "View change";
27
+ readonly eventType: "calendar.viewChange";
28
+ readonly payloadFields: readonly [{
29
+ readonly path: "view";
30
+ readonly type: "string";
31
+ readonly label: "View";
32
+ }];
33
+ };
34
+ readonly eventActivate: {
35
+ readonly label: "Activate event";
36
+ readonly eventType: "calendar.eventActivate";
37
+ readonly payloadFields: readonly [{
38
+ readonly path: "eventId";
39
+ readonly type: "string";
40
+ readonly label: "Event ID";
41
+ }];
42
+ };
43
+ };
44
+ readonly bindings: {
45
+ readonly props: {
46
+ readonly displayedDate: {
47
+ readonly value: {
48
+ readonly type: "string";
49
+ };
50
+ readonly acceptsFallback: true;
51
+ readonly acceptsTransforms: true;
52
+ };
53
+ readonly events: {
54
+ readonly value: {
55
+ readonly type: "array";
56
+ readonly itemType: "object";
57
+ };
58
+ readonly acceptsFallback: true;
59
+ readonly acceptsTransforms: true;
60
+ };
61
+ readonly view: {
62
+ readonly value: {
63
+ readonly type: "string";
64
+ };
65
+ readonly acceptsFallback: true;
66
+ };
67
+ };
68
+ };
69
+ readonly props: {
70
+ readonly displayedDate: {
71
+ readonly type: "string";
72
+ readonly category: "State";
73
+ readonly label: "Displayed date";
74
+ };
75
+ readonly defaultDisplayedDate: {
76
+ readonly type: "string";
77
+ readonly category: "State";
78
+ readonly label: "Initial displayed date";
79
+ };
80
+ readonly view: {
81
+ readonly type: "enum";
82
+ readonly category: "State";
83
+ readonly enum: readonly ["day", "week", "month"];
84
+ };
85
+ readonly timeZone: {
86
+ readonly type: "string";
87
+ readonly category: "State";
88
+ readonly label: "Timezone";
89
+ };
90
+ readonly events: {
91
+ readonly type: "array";
92
+ readonly category: "Data";
93
+ readonly label: "Events";
94
+ };
95
+ readonly locale: {
96
+ readonly type: "string";
97
+ readonly category: "Content";
98
+ readonly label: "Locale";
99
+ };
100
+ readonly weekStartsOn: {
101
+ readonly type: "number";
102
+ readonly category: "Layout";
103
+ readonly label: "Week starts on";
104
+ };
105
+ readonly density: {
106
+ readonly type: "enum";
107
+ readonly category: "Layout";
108
+ readonly enum: readonly ["regular", "compact"];
109
+ };
110
+ };
9
111
  };
10
112
  //# sourceMappingURL=calendarMeta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"calendarMeta.d.ts","sourceRoot":"","sources":["../../../src/features/calendar/calendarMeta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;CAQa,CAAC"}
1
+ {"version":3,"file":"calendarMeta.d.ts","sourceRoot":"","sources":["../../../src/features/calendar/calendarMeta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDa,CAAC"}
@@ -1,10 +1,50 @@
1
1
  export const calendarMeta = {
2
2
  name: 'Calendar',
3
3
  category: 'component',
4
- description: 'Reusable local-date calendar with a month view backed by GridView geometry.',
5
- directManifestNode: false,
6
- note: 'Uses Date values and executable change callbacks; available through the public code API.',
4
+ description: 'Serializable Calendar with GridView month and TimeGrid day/week views.',
5
+ directManifestNode: true,
7
6
  allowedChildren: [],
8
- props: {},
7
+ blueprint: {
8
+ label: 'Calendar',
9
+ defaultProps: { displayedDate: '2026-12-04', events: [], view: 'month' },
10
+ },
11
+ events: {
12
+ dateChange: {
13
+ label: 'Date change',
14
+ eventType: 'calendar.dateChange',
15
+ payloadFields: [{ path: 'date', type: 'string', label: 'Date' }],
16
+ },
17
+ viewChange: {
18
+ label: 'View change',
19
+ eventType: 'calendar.viewChange',
20
+ payloadFields: [{ path: 'view', type: 'string', label: 'View' }],
21
+ },
22
+ eventActivate: {
23
+ label: 'Activate event',
24
+ eventType: 'calendar.eventActivate',
25
+ payloadFields: [{ path: 'eventId', type: 'string', label: 'Event ID' }],
26
+ },
27
+ },
28
+ bindings: {
29
+ props: {
30
+ displayedDate: { value: { type: 'string' }, acceptsFallback: true, acceptsTransforms: true },
31
+ events: {
32
+ value: { type: 'array', itemType: 'object' },
33
+ acceptsFallback: true,
34
+ acceptsTransforms: true,
35
+ },
36
+ view: { value: { type: 'string' }, acceptsFallback: true },
37
+ },
38
+ },
39
+ props: {
40
+ displayedDate: { type: 'string', category: 'State', label: 'Displayed date' },
41
+ defaultDisplayedDate: { type: 'string', category: 'State', label: 'Initial displayed date' },
42
+ view: { type: 'enum', category: 'State', enum: ['day', 'week', 'month'] },
43
+ timeZone: { type: 'string', category: 'State', label: 'Timezone' },
44
+ events: { type: 'array', category: 'Data', label: 'Events' },
45
+ locale: { type: 'string', category: 'Content', label: 'Locale' },
46
+ weekStartsOn: { type: 'number', category: 'Layout', label: 'Week starts on' },
47
+ density: { type: 'enum', category: 'Layout', enum: ['regular', 'compact'] },
48
+ },
9
49
  };
10
50
  //# sourceMappingURL=calendarMeta.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"calendarMeta.js","sourceRoot":"","sources":["../../../src/features/calendar/calendarMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,6EAA6E;IAC1F,kBAAkB,EAAE,KAAK;IACzB,IAAI,EAAE,0FAA0F;IAChG,eAAe,EAAE,EAAE;IACnB,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\n\nexport const calendarMeta = {\n name: 'Calendar',\n category: 'component',\n description: 'Reusable local-date calendar with a month view backed by GridView geometry.',\n directManifestNode: false,\n note: 'Uses Date values and executable change callbacks; available through the public code API.',\n allowedChildren: [],\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"calendarMeta.js","sourceRoot":"","sources":["../../../src/features/calendar/calendarMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,wEAAwE;IACrF,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE;QACT,KAAK,EAAE,UAAU;QACjB,YAAY,EAAE,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;KACzE;IACD,MAAM,EAAE;QACN,UAAU,EAAE;YACV,KAAK,EAAE,aAAa;YACpB,SAAS,EAAE,qBAAqB;YAChC,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,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,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE;QAClE,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE;QAC5D,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE;QAChE,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAAgB,EAAE;QAC7E,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE;KAC5E;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\n\nexport const calendarMeta = {\n name: 'Calendar',\n category: 'component',\n description: 'Serializable Calendar with GridView month and TimeGrid day/week views.',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Calendar',\n defaultProps: { displayedDate: '2026-12-04', events: [], view: 'month' },\n },\n events: {\n dateChange: {\n label: 'Date change',\n eventType: 'calendar.dateChange',\n payloadFields: [{ path: 'date', type: 'string', label: 'Date' }],\n },\n viewChange: {\n label: 'View change',\n eventType: 'calendar.viewChange',\n payloadFields: [{ path: 'view', type: 'string', label: 'View' }],\n },\n eventActivate: {\n label: 'Activate event',\n eventType: 'calendar.eventActivate',\n payloadFields: [{ path: 'eventId', type: 'string', label: 'Event ID' }],\n },\n },\n bindings: {\n props: {\n displayedDate: { value: { type: 'string' }, acceptsFallback: true, acceptsTransforms: true },\n events: {\n value: { type: 'array', itemType: 'object' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n view: { value: { type: 'string' }, acceptsFallback: true },\n },\n },\n props: {\n displayedDate: { type: 'string', category: 'State', label: 'Displayed date' },\n defaultDisplayedDate: { type: 'string', category: 'State', label: 'Initial displayed date' },\n view: { type: 'enum', category: 'State', enum: ['day', 'week', 'month'] },\n timeZone: { type: 'string', category: 'State', label: 'Timezone' },\n events: { type: 'array', category: 'Data', label: 'Events' },\n locale: { type: 'string', category: 'Content', label: 'Locale' },\n weekStartsOn: { type: 'number', category: 'Layout', label: 'Week starts on' },\n density: { type: 'enum', category: 'Layout', enum: ['regular', 'compact'] },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1,4 +1,4 @@
1
- export type { CalendarDensity, CalendarProps, CalendarView, CalendarWeekStart, } from '../../types/calendar';
1
+ export type { CalendarDateChangeEvent, CalendarDensity, CalendarEventActivateEvent, CalendarManifestProps, CalendarProps, CalendarView, CalendarViewChangeEvent, CalendarWeekStart, } from '../../types/calendar';
2
2
  export type { TemporalAllDayEvent, TemporalAllDayRange, TemporalAvailability, TemporalDataValue, TemporalDate, TemporalDuration, TemporalEvent, TemporalEventStatus, TemporalInstant, TemporalInteroperabilityData, TemporalParticipant, TemporalRange, TemporalRecurrence, TemporalRecurrenceException, TemporalRecurrenceRule, TemporalReminder, TemporalTimedEvent, TemporalTimedRange, TemporalTimeZone, TemporalTone, } from '../../types/temporal';
3
3
  export { Calendar } from './adapters/inbound/Calendar';
4
4
  //# sourceMappingURL=public.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/features/calendar/public.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,eAAe,EACf,aAAa,EACb,YAAY,EACZ,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,4BAA4B,EAC5B,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,2BAA2B,EAC3B,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,GACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/features/calendar/public.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,uBAAuB,EACvB,eAAe,EACf,0BAA0B,EAC1B,qBAAqB,EACrB,aAAa,EACb,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,4BAA4B,EAC5B,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,2BAA2B,EAC3B,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,GACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/calendar/public.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["export type {\n CalendarDensity,\n CalendarProps,\n CalendarView,\n CalendarWeekStart,\n} from '../../types/calendar';\nexport type {\n TemporalAllDayEvent,\n TemporalAllDayRange,\n TemporalAvailability,\n TemporalDataValue,\n TemporalDate,\n TemporalDuration,\n TemporalEvent,\n TemporalEventStatus,\n TemporalInstant,\n TemporalInteroperabilityData,\n TemporalParticipant,\n TemporalRange,\n TemporalRecurrence,\n TemporalRecurrenceException,\n TemporalRecurrenceRule,\n TemporalReminder,\n TemporalTimedEvent,\n TemporalTimedRange,\n TemporalTimeZone,\n TemporalTone,\n} from '../../types/temporal';\nexport { Calendar } from './adapters/inbound/Calendar';\n"]}
1
+ {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/calendar/public.ts"],"names":[],"mappings":"AAgCA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["export type {\n CalendarDateChangeEvent,\n CalendarDensity,\n CalendarEventActivateEvent,\n CalendarManifestProps,\n CalendarProps,\n CalendarView,\n CalendarViewChangeEvent,\n CalendarWeekStart,\n} from '../../types/calendar';\nexport type {\n TemporalAllDayEvent,\n TemporalAllDayRange,\n TemporalAvailability,\n TemporalDataValue,\n TemporalDate,\n TemporalDuration,\n TemporalEvent,\n TemporalEventStatus,\n TemporalInstant,\n TemporalInteroperabilityData,\n TemporalParticipant,\n TemporalRange,\n TemporalRecurrence,\n TemporalRecurrenceException,\n TemporalRecurrenceRule,\n TemporalReminder,\n TemporalTimedEvent,\n TemporalTimedRange,\n TemporalTimeZone,\n TemporalTone,\n} from '../../types/temporal';\nexport { Calendar } from './adapters/inbound/Calendar';\n"]}
@@ -2,7 +2,7 @@ export declare const cardMeta: {
2
2
  readonly name: "Card";
3
3
  readonly category: "component";
4
4
  readonly directManifestNode: true;
5
- readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
5
+ readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
6
6
  readonly blueprint: {
7
7
  readonly label: "Card";
8
8
  readonly defaultProps: {
@@ -2,7 +2,7 @@ export declare const mediaCardMeta: {
2
2
  readonly name: "MediaCard";
3
3
  readonly category: "component";
4
4
  readonly directManifestNode: true;
5
- readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
5
+ readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
6
6
  readonly events: {
7
7
  readonly press: {
8
8
  readonly label: "Press";
@@ -3,7 +3,7 @@ export declare const postCardMeta: {
3
3
  readonly category: "pattern";
4
4
  readonly description: "Social/content post card with author identity, body, media, actions, and comment previews.";
5
5
  readonly directManifestNode: true;
6
- readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
6
+ readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
7
7
  readonly blueprint: {
8
8
  readonly label: "Post card";
9
9
  readonly icon: {
@@ -3,7 +3,7 @@ export declare const messageBubbleMeta: {
3
3
  readonly category: "pattern";
4
4
  readonly description: "Chat/message bubble with direction, author, text, meta, and delivery status presentation.";
5
5
  readonly directManifestNode: true;
6
- readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
6
+ readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
7
7
  readonly blueprint: {
8
8
  readonly label: "Message bubble";
9
9
  readonly icon: {
@@ -44,6 +44,16 @@ export declare const dataTableMeta: {
44
44
  };
45
45
  readonly bindings: {
46
46
  readonly props: {
47
+ readonly rows: {
48
+ readonly label: "Rows";
49
+ readonly description: "Reactive serializable rows rendered by the data table.";
50
+ readonly value: {
51
+ readonly type: "array";
52
+ readonly itemType: "object";
53
+ };
54
+ readonly acceptsFallback: true;
55
+ readonly acceptsTransforms: true;
56
+ };
47
57
  readonly sort: {
48
58
  readonly value: {
49
59
  readonly type: "object";
@@ -1 +1 @@
1
- {"version":3,"file":"dataTableMeta.d.ts","sourceRoot":"","sources":["../../../src/features/data-table/dataTableMeta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiGY,CAAC"}
1
+ {"version":3,"file":"dataTableMeta.d.ts","sourceRoot":"","sources":["../../../src/features/data-table/dataTableMeta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwGY,CAAC"}
@@ -26,6 +26,13 @@ export const dataTableMeta = {
26
26
  },
27
27
  bindings: {
28
28
  props: {
29
+ rows: {
30
+ label: 'Rows',
31
+ description: 'Reactive serializable rows rendered by the data table.',
32
+ value: { type: 'array', itemType: 'object' },
33
+ acceptsFallback: true,
34
+ acceptsTransforms: true,
35
+ },
29
36
  sort: {
30
37
  value: {
31
38
  type: 'object',
@@ -1 +1 @@
1
- {"version":3,"file":"dataTableMeta.js","sourceRoot":"","sources":["../../../src/features/data-table/dataTableMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;IACzF,MAAM,EAAE;QACN,UAAU,EAAE;YACV,KAAK,EAAE,aAAa;YACpB,SAAS,EAAE,sBAAsB;YACjC,aAAa,EAAE;gBACb,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACpC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;aACtC;SACF;QACD,eAAe,EAAE;YACf,KAAK,EAAE,kBAAkB;YACzB,SAAS,EAAE,2BAA2B;YACtC,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC;SACxF;QACD,WAAW,EAAE;YACX,KAAK,EAAE,cAAc;YACrB,SAAS,EAAE,uBAAuB;YAClC,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;SACpE;KACF;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,IAAI,EAAE;gBACJ,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,MAAM,EAAE;wBACN,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,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,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,aAAa,EAAE,SAAS,CAAC,EAAE;KAChF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\n\nexport const dataTableMeta = {\n name: 'DataTable',\n category: 'component',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: { label: 'Data table', defaultProps: { rows: [], columns: [], rowKey: 'id' } },\n events: {\n sortChange: {\n label: 'Sort change',\n eventType: 'dataTable.sortChange',\n payloadFields: [\n { path: 'columnId', type: 'string' },\n { path: 'direction', type: 'string' },\n ],\n },\n selectionChange: {\n label: 'Selection change',\n eventType: 'dataTable.selectionChange',\n payloadFields: [{ path: 'selectedRowIds', type: 'unknown', label: 'Selected row IDs' }],\n },\n rowActivate: {\n label: 'Activate row',\n eventType: 'dataTable.rowActivate',\n payloadFields: [{ path: 'rowId', type: 'string', label: 'Row ID' }],\n },\n },\n bindings: {\n props: {\n sort: {\n value: {\n type: 'object',\n fields: [\n { path: 'columnId', type: 'string' },\n { path: 'direction', type: 'string' },\n ],\n },\n acceptsFallback: true,\n },\n selectedRowIds: {\n label: 'Selected row IDs',\n description: 'Controlled stable row identities selected with the checkbox column.',\n value: { type: 'array' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n events: {\n selectionChange: {\n label: 'Selection change',\n payload: {\n eventType: 'dataTable.selectionChange',\n fields: [{ path: 'selectedRowIds', type: 'unknown', label: 'Selected row IDs' }],\n },\n },\n rowActivate: {\n label: 'Activate row',\n payload: {\n eventType: 'dataTable.rowActivate',\n fields: [{ path: 'rowId', type: 'string', label: 'Row ID' }],\n },\n },\n },\n },\n props: {\n rows: { type: 'array', category: 'Data' },\n rowKey: { type: 'string', category: 'Identity', label: 'Row identity field' },\n columns: {\n type: 'array',\n category: 'Data',\n itemSchema: [\n { key: 'id', schema: { type: 'string', category: 'Identity' } },\n { key: 'header', schema: { type: 'string', category: 'Content' } },\n { key: 'accessor', schema: { type: 'string', category: 'Data' } },\n {\n key: 'align',\n schema: { type: 'enum', category: 'Layout', enum: ['start', 'center', 'end'] },\n },\n { key: 'width', schema: { type: 'number', category: 'Layout' } },\n { key: 'minWidth', schema: { type: 'number', category: 'Layout' } },\n { key: 'sortable', schema: { type: 'boolean', category: 'Behavior' } },\n {\n key: 'cell',\n schema: {\n type: 'object',\n category: 'Content',\n label: 'Portable cell presentation',\n },\n },\n ],\n },\n selectedRowIds: { type: 'array', category: 'Selection', label: 'Selected row IDs' },\n loading: { type: 'boolean', category: 'State' },\n loadingRows: { type: 'number', category: 'State' },\n emptyTitle: { type: 'string', category: 'Content' },\n emptyDescription: { type: 'string', category: 'Content' },\n density: { type: 'enum', category: 'Layout', enum: ['comfortable', 'compact'] },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"dataTableMeta.js","sourceRoot":"","sources":["../../../src/features/data-table/dataTableMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;IACzF,MAAM,EAAE;QACN,UAAU,EAAE;YACV,KAAK,EAAE,aAAa;YACpB,SAAS,EAAE,sBAAsB;YACjC,aAAa,EAAE;gBACb,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACpC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;aACtC;SACF;QACD,eAAe,EAAE;YACf,KAAK,EAAE,kBAAkB;YACzB,SAAS,EAAE,2BAA2B;YACtC,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EA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,EAAE,UAAU,EAAE,EAAE;gBACtE;oBACE,GAAG,EAAE,MAAM;oBACX,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,QAAQ,EAAE,SAAS;wBACnB,KAAK,EAAE,4BAA4B;qBACpC;iBACF;aACF;SACF;QACD,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,kBAAkB,EAAE;QACnF,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE;QAC/C,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE;QAClD,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE;QACnD,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE;QACzD,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,aAAa,EAAE,SAAS,CAAC,EAAE;KAChF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\n\nexport const dataTableMeta = {\n name: 'DataTable',\n category: 'component',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: { label: 'Data table', defaultProps: { rows: [], columns: [], rowKey: 'id' } },\n events: {\n sortChange: {\n label: 'Sort change',\n eventType: 'dataTable.sortChange',\n payloadFields: [\n { path: 'columnId', type: 'string' },\n { path: 'direction', type: 'string' },\n ],\n },\n selectionChange: {\n label: 'Selection change',\n eventType: 'dataTable.selectionChange',\n payloadFields: [{ path: 'selectedRowIds', type: 'unknown', label: 'Selected row IDs' }],\n },\n rowActivate: {\n label: 'Activate row',\n eventType: 'dataTable.rowActivate',\n payloadFields: [{ path: 'rowId', type: 'string', label: 'Row ID' }],\n },\n },\n bindings: {\n props: {\n rows: {\n label: 'Rows',\n description: 'Reactive serializable rows rendered by the data table.',\n value: { type: 'array', itemType: 'object' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n sort: {\n value: {\n type: 'object',\n fields: [\n { path: 'columnId', type: 'string' },\n { path: 'direction', type: 'string' },\n ],\n },\n acceptsFallback: true,\n },\n selectedRowIds: {\n label: 'Selected row IDs',\n description: 'Controlled stable row identities selected with the checkbox column.',\n value: { type: 'array' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n events: {\n selectionChange: {\n label: 'Selection change',\n payload: {\n eventType: 'dataTable.selectionChange',\n fields: [{ path: 'selectedRowIds', type: 'unknown', label: 'Selected row IDs' }],\n },\n },\n rowActivate: {\n label: 'Activate row',\n payload: {\n eventType: 'dataTable.rowActivate',\n fields: [{ path: 'rowId', type: 'string', label: 'Row ID' }],\n },\n },\n },\n },\n props: {\n rows: { type: 'array', category: 'Data' },\n rowKey: { type: 'string', category: 'Identity', label: 'Row identity field' },\n columns: {\n type: 'array',\n category: 'Data',\n itemSchema: [\n { key: 'id', schema: { type: 'string', category: 'Identity' } },\n { key: 'header', schema: { type: 'string', category: 'Content' } },\n { key: 'accessor', schema: { type: 'string', category: 'Data' } },\n {\n key: 'align',\n schema: { type: 'enum', category: 'Layout', enum: ['start', 'center', 'end'] },\n },\n { key: 'width', schema: { type: 'number', category: 'Layout' } },\n { key: 'minWidth', schema: { type: 'number', category: 'Layout' } },\n { key: 'sortable', schema: { type: 'boolean', category: 'Behavior' } },\n {\n key: 'cell',\n schema: {\n type: 'object',\n category: 'Content',\n label: 'Portable cell presentation',\n },\n },\n ],\n },\n selectedRowIds: { type: 'array', category: 'Selection', label: 'Selected row IDs' },\n loading: { type: 'boolean', category: 'State' },\n loadingRows: { type: 'number', category: 'State' },\n emptyTitle: { type: 'string', category: 'Content' },\n emptyDescription: { type: 'string', category: 'Content' },\n density: { type: 'enum', category: 'Layout', enum: ['comfortable', 'compact'] },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -2,7 +2,7 @@ export declare const dialogMeta: {
2
2
  readonly name: "Dialog";
3
3
  readonly category: "component";
4
4
  readonly directManifestNode: true;
5
- readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
5
+ readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
6
6
  readonly description: "Modal dialog composition with title, description, content, and optional footer.";
7
7
  readonly blueprint: {
8
8
  readonly label: "Dialog";
@@ -45,7 +45,7 @@ export declare const dialogMeta: {
45
45
  readonly slots: {
46
46
  readonly children: {
47
47
  readonly label: "Content";
48
- readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
48
+ readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
49
49
  };
50
50
  readonly footer: {
51
51
  readonly label: "Footer";
@@ -3,7 +3,7 @@ export declare const gradientMeta: {
3
3
  readonly category: "component";
4
4
  readonly description: "Renders a host-backed gradient container for nested manifest content.";
5
5
  readonly directManifestNode: true;
6
- readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
6
+ readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
7
7
  readonly blueprint: {
8
8
  readonly label: "Gradient";
9
9
  };
@@ -2,7 +2,7 @@ export declare const keyboardAvoidingViewMeta: {
2
2
  readonly name: "KeyboardAvoidingView";
3
3
  readonly category: "layout";
4
4
  readonly directManifestNode: true;
5
- readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
5
+ readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
6
6
  readonly blueprint: {
7
7
  readonly label: "Keyboard avoiding view";
8
8
  readonly defaultProps: {
@@ -2,7 +2,7 @@ export declare const gridMeta: {
2
2
  readonly name: "Grid";
3
3
  readonly category: "foundation";
4
4
  readonly directManifestNode: true;
5
- readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
5
+ readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
6
6
  readonly props: {
7
7
  readonly cols: {
8
8
  readonly type: "number";
@@ -2,7 +2,7 @@ export declare const screenMeta: {
2
2
  readonly name: "Screen";
3
3
  readonly category: "layout";
4
4
  readonly directManifestNode: true;
5
- readonly allowedChildren: readonly ["ScreenSection", "ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
5
+ readonly allowedChildren: readonly ["ScreenSection", "ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
6
6
  readonly blueprint: {
7
7
  readonly label: "Screen";
8
8
  };