@ankhorage/zora 28.8.3 → 28.9.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 (64) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/dist/capabilities/index.js +82 -1
  4. package/dist/capabilities/index.js.map +6 -5
  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/card/cardMeta.d.ts +1 -1
  12. package/dist/features/card/mediaCardMeta.d.ts +1 -1
  13. package/dist/features/card/postCardMeta.d.ts +1 -1
  14. package/dist/features/chat/messageBubbleMeta.d.ts +1 -1
  15. package/dist/features/dialog/dialogMeta.d.ts +2 -2
  16. package/dist/features/gradient/gradientMeta.d.ts +1 -1
  17. package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
  18. package/dist/features/layout/gridMeta.d.ts +1 -1
  19. package/dist/features/layout/screenMeta.d.ts +1 -1
  20. package/dist/features/layout/scrollViewMeta.d.ts +1 -1
  21. package/dist/features/layout/viewMeta.d.ts +1 -1
  22. package/dist/features/list/flatListMeta.d.ts +1 -1
  23. package/dist/features/list/sectionListMeta.d.ts +1 -1
  24. package/dist/features/master-detail/masterDetailMeta.d.ts +1 -1
  25. package/dist/features/popover/adapters/inbound/Popover.js +6 -3
  26. package/dist/features/popover/adapters/inbound/Popover.js.map +1 -1
  27. package/dist/features/popover/popoverMeta.d.ts +101 -0
  28. package/dist/features/popover/popoverMeta.d.ts.map +1 -0
  29. package/dist/features/popover/popoverMeta.js +78 -0
  30. package/dist/features/popover/popoverMeta.js.map +1 -0
  31. package/dist/features/reader/meta.d.ts +2 -2
  32. package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.d.ts.map +1 -1
  33. package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.js +2 -0
  34. package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.js.map +1 -1
  35. package/dist/features/registry/bindableComponentMeta.d.ts +2 -2
  36. package/dist/features/registry/componentMeta.d.ts.map +1 -1
  37. package/dist/features/registry/componentMeta.js +2 -0
  38. package/dist/features/registry/componentMeta.js.map +1 -1
  39. package/dist/features/scanner/meta.d.ts +2 -2
  40. package/dist/features/section/screenSectionMeta.d.ts +1 -1
  41. package/dist/features/surface/surfaceMeta.d.ts +1 -1
  42. package/dist/features/tabs/tabPanelMeta.d.ts +1 -1
  43. package/dist/readerFree.d.ts +1 -0
  44. package/dist/readerFree.d.ts.map +1 -1
  45. package/dist/readerFree.js +1 -0
  46. package/dist/readerFree.js.map +1 -1
  47. package/dist/types/popover.d.ts +4 -1
  48. package/dist/types/popover.d.ts.map +1 -1
  49. package/dist/types/popover.js.map +1 -1
  50. package/package.json +27 -1
  51. package/src/constants/authoring.ts +3 -0
  52. package/src/features/popover/adapters/inbound/Popover.tsx +17 -2
  53. package/src/features/popover/manifest.test.tsx +153 -0
  54. package/src/features/popover/popoverMeta.ts +79 -0
  55. package/src/features/popover/public.test.ts +2 -1
  56. package/src/features/registry/ZORA_BASE_COMPONENT_REGISTRY.ts +2 -0
  57. package/src/features/registry/componentMeta.test.ts +1 -0
  58. package/src/features/registry/componentMeta.ts +2 -0
  59. package/src/features/registry/featureManifest.test.ts +11 -0
  60. package/src/readerFree.ts +6 -0
  61. package/src/types/popover.ts +5 -1
  62. package/src/webPackageExports.test.ts +1 -0
  63. package/web-dist/components/popover/Popover.js +10 -2
  64. package/web-dist/components/popover/Popover.types-0.d.ts +4 -1
@@ -1 +1 @@
1
- {"version":3,"file":"readerFree.js","sourceRoot":"","sources":["../src/readerFree.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,aAAa,GAMd,MAAM,6BAA6B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E,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,OAAO,EAAqB,MAAM,2BAA2B,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAkBjE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAUpD,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC","sourcesContent":["export {\n Accordion,\n AccordionItem,\n type AccordionItemProps,\n type AccordionMode,\n type AccordionMultipleProps,\n type AccordionProps,\n type AccordionSingleProps,\n} from './features/accordion/public';\nexport {\n ActivityIndicator,\n type ActivityIndicatorProps,\n} from './features/activity-indicator/public';\nexport type { AppBarMode, AppBarOverflowMenu, AppBarProps } from './features/app-bar/public';\nexport { AppBar } from './features/app-bar/public';\nexport { AppHeader, type AppHeaderProps } from './features/app-header/public';\nexport {\n Audio,\n type AudioManifestProps,\n type AudioProps,\n type AudioResolvedSource,\n} from './features/audio/public';\nexport type {\n AuthFormBaseProps,\n AuthIdentifierKind,\n AuthScreenMode,\n AuthScreenProps,\n ForgotPasswordFormProps,\n ForgotPasswordFormValues,\n OAuthProviderButtonProps,\n OAuthProviderIconSpec,\n OAuthProviderItem,\n OAuthProviderListLayout,\n OAuthProviderListProps,\n OtpFormProps,\n OtpFormValues,\n SignInFormProps,\n SignInFormValues,\n SignUpFormField,\n SignUpFormProps,\n SignUpFormValues,\n} from './features/auth/public';\nexport {\n AuthScreen,\n DEFAULT_OAUTH_PROVIDER_ICONS,\n ForgotPasswordForm,\n OAuthProviderButton,\n OAuthProviderList,\n OtpForm,\n resolveOAuthProviderIcon,\n resolveOAuthProviderLabel,\n SignInForm,\n SignUpForm,\n} from './features/auth/public';\nexport type { AvatarProps, AvatarShape, AvatarSize } from './features/avatar/public';\nexport type { AvatarGroupItem, AvatarGroupProps } from './features/avatar/public';\nexport { Avatar, resolveAvatarInitials } from './features/avatar/public';\nexport { AvatarGroup } from './features/avatar/public';\nexport type { BadgeProps } from './features/badge/public';\nexport { Badge } from './features/badge/public';\nexport type { BottomSheetProps } from './features/bottom-sheet/public';\nexport { BottomSheet } from './features/bottom-sheet/public';\nexport {\n type BreadcrumbItem,\n type BreadcrumbPressEvent,\n Breadcrumbs,\n type BreadcrumbsProps,\n} from './features/breadcrumbs/public';\nexport type { ButtonProps } from './features/button/public';\nexport type {\n ButtonGroupAlign,\n ButtonGroupOrientation,\n ButtonGroupProps,\n} from './features/button/public';\nexport type { IconButtonProps } from './features/button/public';\nexport { Button } from './features/button/public';\nexport { ButtonGroup } from './features/button/public';\nexport { IconButton } from './features/button/public';\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 './features/calendar/public';\nexport {\n Calendar,\n type CalendarDensity,\n type CalendarProps,\n type CalendarView,\n type CalendarWeekStart,\n} from './features/calendar/public';\nexport type { CardProps } from './features/card/public';\nexport type { MediaCardImageProps, MediaCardProps } from './features/card/public';\nexport type { MetricCardProps } from './features/card/public';\nexport type {\n PostAction,\n PostAuthor,\n PostAuthorAvatar,\n PostCardMedia,\n PostCardProps,\n} from './features/card/public';\nexport type { ProductCardProps } from './features/card/public';\nexport { Card } from './features/card/public';\nexport { MediaCard } from './features/card/public';\nexport { MetricCard } from './features/card/public';\nexport { PostCard } from './features/card/public';\nexport { ProductCard } from './features/card/public';\nexport type {\n ChatListAvatar,\n ChatListItemProps,\n MessageBubbleAuthor,\n MessageBubbleAvatar,\n MessageBubbleDirection,\n MessageBubbleProps,\n MessageBubbleStatus,\n} from './features/chat/public';\nexport { ChatListItem, MessageBubble } from './features/chat/public';\nexport type {\n ChessBoardCell,\n ChessBoardColorOverrides,\n ChessBoardColorScheme,\n ChessBoardDimensions,\n ChessBoardOrientation,\n ChessBoardProps,\n ChessMoveAttempt,\n ChessPieceCode,\n ChessPieceRenderContext,\n ChessPieceRenderer,\n ChessPieceState,\n OpeningBookColorOverrides,\n OpeningBookColorScheme,\n OpeningBookMove,\n OpeningBookProps,\n} from './features/chess/public';\nexport type { ChessColorThemeShape } from './features/chess/public';\nexport { ChessBoard, chessBoardMeta, OpeningBook, openingBookMeta } from './features/chess/public';\nexport { createChessBoardColorScheme, createOpeningBookColorScheme } from './features/chess/public';\nexport type { ChipProps } from './features/chip/public';\nexport type { ChipGroupItem, ChipGroupProps } from './features/chip/public';\nexport { Chip } from './features/chip/public';\nexport { ChipGroup } from './features/chip/public';\nexport type {\n CollectionEditorProps,\n CollectionEditorRenderItemProps,\n} from './features/collection-editor/public';\nexport { CollectionEditor } from './features/collection-editor/public';\nexport type {\n ContentRailControlPressEvent,\n ContentRailDirection,\n ContentRailItemSize,\n ContentRailMotion,\n ContentRailProps,\n ContentRailSpacing,\n ContentRailVisibleRangeChangeEvent,\n} from './features/content-rail/public';\nexport { ContentRail } from './features/content-rail/public';\nexport type {\n DataTableCellContext,\n DataTableCellSpec,\n DataTableColumn,\n DataTableColumnAlign,\n DataTableDensity,\n DataTableProps,\n DataTableRowAction,\n DataTableRowActivateEvent,\n DataTableRowField,\n DataTableSelectionChangeEvent,\n DataTableSortDirection,\n DataTableSortState,\n} from './features/data-table/public';\nexport { DataTable } from './features/data-table/public';\nexport {\n DatePicker,\n type DatePickerProps,\n type DatePickerValue,\n} from './features/date-picker/public';\nexport { Dialog, type DialogProps } from './features/dialog/public';\nexport {\n EmptyState,\n type EmptyStateAction,\n type EmptyStateProps,\n} from './features/empty-state/public';\nexport type {\n ExplorerActivateEvent,\n ExplorerItem,\n ExplorerItemKind,\n ExplorerProps,\n ExplorerSelectionChangeEvent,\n ExplorerSelectionMode,\n} from './features/explorer/public';\nexport {\n Explorer,\n FileExplorer,\n MediaExplorer,\n resolveExplorerSelection,\n} from './features/explorer/public';\nexport {\n Checkbox,\n CheckboxGroup,\n type CheckboxGroupOption,\n type CheckboxGroupProps,\n type CheckboxProps,\n} from './features/form/checkbox/public';\nexport type {\n FieldProps,\n FormActionsProps,\n FormErrorProps,\n FormErrors,\n FormFieldConfig,\n FormFieldInputType,\n FormProps,\n FormValidationErrors,\n FormValidationResult,\n FormValues,\n UseFormControllerOptions,\n UseFormControllerResult,\n ValidationRule,\n} from './features/form/public';\nexport {\n Field,\n Form,\n FormActions,\n FormError,\n hasRequiredRule,\n useFormController,\n validateField,\n validateFields,\n validateValue,\n} from './features/form/public';\nexport {\n Radio,\n RadioGroup,\n type RadioGroupOption,\n type RadioGroupProps,\n type RadioProps,\n} from './features/form/radio/public';\nexport { SearchInput, type SearchInputProps } from './features/form/search-input/public';\nexport { Select, type SelectOption, type SelectProps } from './features/form/select/public';\nexport { Switch, type SwitchProps } from './features/form/switch/public';\nexport {\n TextInput,\n type TextInputProps,\n type TextInputTrailingAction,\n} from './features/form/text-input/public';\nexport type {\n GameEntityEasing,\n GameEntityMotionProps,\n GameEntityProps,\n GameFieldProps,\n GameInputZoneProps,\n GameKeyboardBinding,\n GameMeasurementProbeProps,\n GameOverlayPlacement,\n GameOverlayProps,\n GamePointerEvents,\n GameProps,\n} from './features/game/public';\nexport {\n Game,\n GameEntity,\n GameField,\n GameInputZone,\n GameMeasurementProbe,\n GameOverlay,\n} from './features/game/public';\nexport type {\n GradientColor,\n GradientColors,\n GradientLocations,\n GradientPoint,\n GradientProps,\n GradientRenderer,\n GradientRendererProps,\n GradientRendererProviderProps,\n} from './features/gradient/public';\nexport { Gradient, GradientRendererProvider } from './features/gradient/public';\nexport {\n createGridInteractionsController,\n type GridInteractionIntent,\n type GridInteractionItem,\n type GridInteractionPointer,\n GridInteractions,\n type GridInteractionsController,\n type GridInteractionsControllerProps,\n type GridInteractionSnap,\n type GridInteractionsProps,\n} from './features/grid-interactions/public';\nexport type {\n GridGuide,\n GridLineOverlayProps,\n GridRulerMark,\n GridRulerProps,\n GridRulerTickSource,\n} from './features/grid-rulers/public';\nexport { GridLineOverlay, GridRuler, resolveGridRulerMarks } from './features/grid-rulers/public';\nexport type { GridViewProps, TileGridItem, TileGridProps } from './features/grid-view/public';\nexport { GridView, layoutTileGrid, TileGrid } from './features/grid-view/public';\nexport {\n Hero,\n type HeroAction,\n type HeroAlign,\n type HeroLayout,\n type HeroProps,\n type HeroTone,\n} from './features/hero/public';\nexport type { IconProps } from './features/icon/public';\nexport { Icon } from './features/icon/public';\nexport type { ImageFit, ImageProps, SurfaceImageSource } from './features/image/public';\nexport { Image } from './features/image/public';\nexport {\n KeyboardAvoidingView,\n type KeyboardAvoidingViewBehavior,\n type KeyboardAvoidingViewProps,\n} from './features/keyboard-avoiding-view/public';\nexport type {\n AppShellProps,\n DividerProps,\n GridProps,\n ScreenProps,\n ScrollViewProps,\n ViewProps,\n} from './features/layout/public';\nexport { AppShell, Divider, Grid, Screen, ScrollView, View } from './features/layout/public';\nexport type { LinkPressEvent, LinkProps, LinkTarget } from './features/link/public';\nexport { Link } from './features/link/public';\nexport type {\n ManifestListProps,\n ManifestListSection,\n ManifestSectionListProps,\n} from './features/list/public';\nexport type {\n ListChildrenProps,\n ListItemProps,\n ListItemsProps,\n ListItemVariant,\n ListProps,\n ListSectionProps,\n} from './features/list/public';\nexport { FlatList, SectionList } from './features/list/public';\nexport { List, ListItem, ListSection } from './features/list/public';\nexport type {\n MasterDetailActivePane,\n MasterDetailDesktopMode,\n MasterDetailMasterWidth,\n MasterDetailProps,\n} from './features/master-detail/public';\nexport { MasterDetail } from './features/master-detail/public';\nexport type { MatrixGridProps } from './features/matrix-grid/public';\nexport { MatrixGrid } from './features/matrix-grid/public';\nexport { MissingElement, type MissingElementProps } from './features/missing-element/public';\nexport { Pagination, type PaginationProps } from './features/pagination/public';\nexport type { PaletteItemProps } from './features/palette-item/public';\nexport { PaletteItem } from './features/palette-item/public';\nexport {\n PopoverMenu,\n type PopoverMenuAction,\n type PopoverMenuActionIntent,\n type PopoverMenuProps,\n} from './features/popover-menu/public';\nexport {\n Progress,\n type ProgressProps,\n ProgressRing,\n type ProgressRingProps,\n} from './features/progress/public';\nexport { Rating, type RatingProps } from './features/rating/public';\nexport type {\n ZoraBindableComponentType,\n ZoraComponentBlueprint,\n ZoraComponentCategory,\n ZoraComponentEventMeta,\n ZoraComponentEventPayloadFieldMeta,\n ZoraComponentEventPayloadFieldType,\n ZoraComponentEventPayloadKind,\n ZoraComponentI18nMeta,\n ZoraComponentManifestPolicy,\n ZoraComponentMeta,\n ZoraComponentMetaRegistry,\n ZoraComponentPropArrayItemSchema,\n ZoraComponentPropAuthoring,\n ZoraComponentPropSchema,\n ZoraComponentPropType,\n ZoraComponentPropValue,\n ZoraComponentSlotMeta,\n ZoraThemeRecipeBooleanFieldMeta,\n ZoraThemeRecipeChoiceFieldMeta,\n ZoraThemeRecipeFieldMeta,\n ZoraThemeRecipeKind,\n ZoraThemeRecipeMeta,\n ZoraThemeRecipeMetaRegistry,\n ZoraThemeRecipeTokenFieldMeta,\n ZoraThemeTokenFamily,\n} from './features/registry';\nexport {\n ZORA_BINDABLE_COMPONENT_META,\n ZORA_COMPONENT_META,\n ZORA_THEME_RECIPE_META,\n ZORA_THEME_TOKEN_FAMILIES,\n} from './features/registry';\nexport {\n createZoraComponentRegistry,\n ZORA_BASE_COMPONENT_REGISTRY,\n} from './features/registry/readerFreeRegistry';\nexport { RichText, type RichTextProps } from './features/rich-text/public';\nexport type {\n BarcodeScannerViewProps,\n BarcodeScanResult,\n CameraPermissionStatus,\n CameraPermissionViewProps,\n ScanOverlayProps,\n} from './features/scanner/public';\nexport { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './features/scanner/public';\nexport {\n ScreenSection,\n type ScreenSectionProps,\n SectionHeader,\n type SectionHeaderProps,\n} from './features/section/public';\nexport type {\n CreateRuntimeAuthoringOverlayAdapterOptions,\n RuntimeAuthoringOverlayProps,\n SelectableItemProps,\n SelectableItemState,\n SelectionIntent,\n SelectionMode,\n SelectionProviderProps,\n SelectionTrigger,\n UseSelectionResult,\n} from './features/selection/public';\nexport {\n createRuntimeAuthoringOverlayAdapter,\n RuntimeAuthoringOverlay,\n SelectableItem,\n SelectionProvider,\n useSelection,\n} from './features/selection/public';\nexport {\n Skeleton,\n SkeletonCard,\n type SkeletonCardProps,\n type SkeletonDimension,\n SkeletonList,\n type SkeletonListProps,\n type SkeletonListVariant,\n type SkeletonProps,\n type SkeletonRadius,\n SkeletonText,\n type SkeletonTextProps,\n} from './features/skeleton/public';\nexport type {\n SpatialGridItem,\n SpatialGridItemState,\n SpatialGridProps,\n} from './features/spatial-grid/public';\nexport { SpatialGrid } from './features/spatial-grid/public';\nexport type { SurfaceProps, SurfaceVariant } from './features/surface/public';\nexport { Surface } from './features/surface/public';\nexport type {\n CardBackProps,\n CardHandProps,\n CreatePokerTrainingTableStateOptions,\n CreateTabletopGameSeatsInput,\n PlayingCardProps,\n PlayingCardSuit,\n PlayingCardValue,\n PokerTrainingPlayer,\n PokerTrainingTableProps,\n PokerTrainingTableSize,\n PokerTrainingTableState,\n PokerTrainingTaskTableData,\n TabletopCardSize,\n TabletopColorOverrides,\n TabletopColorScheme,\n TabletopGameParticipantState,\n TabletopGameSeatDefinition,\n TabletopGameSeatPresentation,\n TabletopSeatCount,\n TabletopSeatState,\n TabletopShape,\n TabletopTableProps,\n} from './features/tabletop/public';\nexport {\n CardBack,\n CardHand,\n createPokerTrainingTableState,\n createTabletopColorScheme,\n createTabletopGameSeats,\n PlayingCard,\n PokerTrainingTable,\n pokerTrainingTableMeta,\n TabletopTable,\n tabletopTableMeta,\n} from './features/tabletop/public';\nexport {\n Tab,\n TabList,\n type TabListProps,\n TabPanel,\n type TabPanelProps,\n type TabProps,\n Tabs,\n type TabsProps,\n} from './features/tabs/public';\nexport type {\n ZoraColor,\n ZoraEmphasis,\n ZoraPaletteColor,\n ZoraStatusColor,\n} from './features/theme/colorModel';\nexport {\n ZORA_COLORS,\n ZORA_EMPHASES,\n ZORA_PALETTE_COLORS,\n ZORA_STATUS_COLORS,\n} from './features/theme/colorModel';\nexport * from './features/theme/public';\nexport * from './features/theme/runtime';\nexport type { TimeGridInterval, TimeGridLane, TimeGridProps } from './features/time-grid/public';\nexport { resolveTimeGridVisibleIntervals, TimeGrid } from './features/time-grid/public';\nexport {\n TimePicker,\n type TimePickerProps,\n type TimePickerValue,\n} from './features/time-picker/public';\nexport type {\n TimelineItem,\n TimelineManifestItem,\n TimelineManifestProps,\n TimelineProps,\n} from './features/timeline/public';\nexport { Timeline } from './features/timeline/public';\nexport type {\n ToastController,\n ToastOptions,\n ToastProps,\n ToastProviderProps,\n ToastStatus,\n} from './features/toast/public';\nexport { Toast, ToastProvider, useToast } from './features/toast/public';\nexport { Toolbar, type ToolbarProps } from './features/toolbar/public';\nexport type { TreeItemNode, TreeItemRenderProps, TreeViewProps } from './features/tree-view/public';\nexport { TreeItem, TreeView } from './features/tree-view/public';\nexport type {\n HeadingAlign,\n HeadingColor,\n HeadingEmphasis,\n HeadingLevel,\n HeadingProps,\n HeadingSize,\n HeadingWeight,\n} from './features/typography/public';\nexport type {\n TextAlign,\n TextColor,\n TextEmphasis,\n TextProps,\n TextVariant,\n TextWeight,\n} from './features/typography/public';\nexport { Heading } from './features/typography/public';\nexport { Text } from './features/typography/public';\nexport type {\n UploadAsset,\n UploadAssetBase,\n UploaderExplorerItem,\n UploaderProps,\n UploadProgressContext,\n UploadType,\n ValidateUploadAssetInput,\n} from './features/uploader/public';\nexport { Uploader, validateUploadAsset } from './features/uploader/public';\nexport type {\n VideoContentFit,\n VideoManifestProps,\n VideoProps,\n VideoResolvedSource,\n} from './features/video/public';\nexport { Video } from './features/video/public';\nexport type { ZoraComponentReg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QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACxF,OAAO,EACL,UAAU,GAGX,MAAM,+BAA+B,CAAC;AAOvC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAQtD,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,OAAO,EAAqB,MAAM,2BAA2B,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAkBjE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAUpD,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC","sourcesContent":["export {\n Accordion,\n AccordionItem,\n type AccordionItemProps,\n type AccordionMode,\n type AccordionMultipleProps,\n type AccordionProps,\n type AccordionSingleProps,\n} from './features/accordion/public';\nexport {\n ActivityIndicator,\n type ActivityIndicatorProps,\n} from './features/activity-indicator/public';\nexport type { AppBarMode, AppBarOverflowMenu, AppBarProps } from './features/app-bar/public';\nexport { AppBar } from './features/app-bar/public';\nexport { AppHeader, type AppHeaderProps } from './features/app-header/public';\nexport {\n Audio,\n type AudioManifestProps,\n type AudioProps,\n type AudioResolvedSource,\n} from './features/audio/public';\nexport type {\n AuthFormBaseProps,\n AuthIdentifierKind,\n AuthScreenMode,\n AuthScreenProps,\n ForgotPasswordFormProps,\n ForgotPasswordFormValues,\n OAuthProviderButtonProps,\n OAuthProviderIconSpec,\n OAuthProviderItem,\n OAuthProviderListLayout,\n OAuthProviderListProps,\n OtpFormProps,\n OtpFormValues,\n SignInFormProps,\n SignInFormValues,\n SignUpFormField,\n SignUpFormProps,\n SignUpFormValues,\n} from './features/auth/public';\nexport {\n AuthScreen,\n DEFAULT_OAUTH_PROVIDER_ICONS,\n ForgotPasswordForm,\n OAuthProviderButton,\n OAuthProviderList,\n OtpForm,\n resolveOAuthProviderIcon,\n resolveOAuthProviderLabel,\n SignInForm,\n SignUpForm,\n} from './features/auth/public';\nexport type { AvatarProps, AvatarShape, AvatarSize } from './features/avatar/public';\nexport type { AvatarGroupItem, AvatarGroupProps } from './features/avatar/public';\nexport { Avatar, resolveAvatarInitials } from './features/avatar/public';\nexport { AvatarGroup } from './features/avatar/public';\nexport type { BadgeProps } from './features/badge/public';\nexport { Badge } from './features/badge/public';\nexport type { BottomSheetProps } from './features/bottom-sheet/public';\nexport { BottomSheet } from './features/bottom-sheet/public';\nexport {\n type BreadcrumbItem,\n type BreadcrumbPressEvent,\n Breadcrumbs,\n type BreadcrumbsProps,\n} from './features/breadcrumbs/public';\nexport type { ButtonProps } from './features/button/public';\nexport type {\n ButtonGroupAlign,\n ButtonGroupOrientation,\n ButtonGroupProps,\n} from './features/button/public';\nexport type { IconButtonProps } from './features/button/public';\nexport { Button } from './features/button/public';\nexport { ButtonGroup } from './features/button/public';\nexport { IconButton } from './features/button/public';\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 './features/calendar/public';\nexport {\n Calendar,\n type CalendarDensity,\n type CalendarProps,\n type CalendarView,\n type CalendarWeekStart,\n} from './features/calendar/public';\nexport type { CardProps } from './features/card/public';\nexport type { MediaCardImageProps, MediaCardProps } from './features/card/public';\nexport type { MetricCardProps } from './features/card/public';\nexport type {\n PostAction,\n PostAuthor,\n PostAuthorAvatar,\n PostCardMedia,\n PostCardProps,\n} from './features/card/public';\nexport type { ProductCardProps } from './features/card/public';\nexport { Card } from './features/card/public';\nexport { MediaCard } from './features/card/public';\nexport { MetricCard } from './features/card/public';\nexport { PostCard } from './features/card/public';\nexport { ProductCard } from './features/card/public';\nexport type {\n ChatListAvatar,\n ChatListItemProps,\n MessageBubbleAuthor,\n MessageBubbleAvatar,\n MessageBubbleDirection,\n MessageBubbleProps,\n MessageBubbleStatus,\n} from './features/chat/public';\nexport { ChatListItem, MessageBubble } from './features/chat/public';\nexport type {\n ChessBoardCell,\n ChessBoardColorOverrides,\n ChessBoardColorScheme,\n ChessBoardDimensions,\n ChessBoardOrientation,\n ChessBoardProps,\n ChessMoveAttempt,\n ChessPieceCode,\n ChessPieceRenderContext,\n ChessPieceRenderer,\n ChessPieceState,\n OpeningBookColorOverrides,\n OpeningBookColorScheme,\n OpeningBookMove,\n OpeningBookProps,\n} from './features/chess/public';\nexport type { ChessColorThemeShape } from './features/chess/public';\nexport { ChessBoard, chessBoardMeta, OpeningBook, openingBookMeta } from './features/chess/public';\nexport { createChessBoardColorScheme, createOpeningBookColorScheme } from './features/chess/public';\nexport type { ChipProps } from './features/chip/public';\nexport type { ChipGroupItem, ChipGroupProps } from './features/chip/public';\nexport { Chip } from './features/chip/public';\nexport { ChipGroup } from './features/chip/public';\nexport type {\n CollectionEditorProps,\n CollectionEditorRenderItemProps,\n} from './features/collection-editor/public';\nexport { CollectionEditor } from './features/collection-editor/public';\nexport type {\n ContentRailControlPressEvent,\n ContentRailDirection,\n ContentRailItemSize,\n ContentRailMotion,\n ContentRailProps,\n ContentRailSpacing,\n ContentRailVisibleRangeChangeEvent,\n} from './features/content-rail/public';\nexport { ContentRail } from './features/content-rail/public';\nexport type {\n DataTableCellContext,\n DataTableCellSpec,\n DataTableColumn,\n DataTableColumnAlign,\n DataTableDensity,\n DataTableProps,\n DataTableRowAction,\n DataTableRowActivateEvent,\n DataTableRowField,\n DataTableSelectionChangeEvent,\n DataTableSortDirection,\n DataTableSortState,\n} from './features/data-table/public';\nexport { DataTable } from './features/data-table/public';\nexport {\n DatePicker,\n type DatePickerProps,\n type DatePickerValue,\n} from './features/date-picker/public';\nexport { Dialog, type DialogProps } from './features/dialog/public';\nexport {\n EmptyState,\n type EmptyStateAction,\n type EmptyStateProps,\n} from './features/empty-state/public';\nexport type {\n ExplorerActivateEvent,\n ExplorerItem,\n ExplorerItemKind,\n ExplorerProps,\n ExplorerSelectionChangeEvent,\n ExplorerSelectionMode,\n} from './features/explorer/public';\nexport {\n Explorer,\n FileExplorer,\n MediaExplorer,\n resolveExplorerSelection,\n} from './features/explorer/public';\nexport {\n Checkbox,\n CheckboxGroup,\n type CheckboxGroupOption,\n type CheckboxGroupProps,\n type CheckboxProps,\n} from './features/form/checkbox/public';\nexport type {\n FieldProps,\n FormActionsProps,\n FormErrorProps,\n FormErrors,\n FormFieldConfig,\n FormFieldInputType,\n FormProps,\n FormValidationErrors,\n FormValidationResult,\n FormValues,\n UseFormControllerOptions,\n UseFormControllerResult,\n ValidationRule,\n} from './features/form/public';\nexport {\n Field,\n Form,\n FormActions,\n FormError,\n hasRequiredRule,\n useFormController,\n validateField,\n validateFields,\n validateValue,\n} from './features/form/public';\nexport {\n Radio,\n RadioGroup,\n type RadioGroupOption,\n type RadioGroupProps,\n type RadioProps,\n} from './features/form/radio/public';\nexport { SearchInput, type SearchInputProps } from './features/form/search-input/public';\nexport { Select, type SelectOption, type SelectProps } from './features/form/select/public';\nexport { Switch, type SwitchProps } from './features/form/switch/public';\nexport {\n TextInput,\n type TextInputProps,\n type TextInputTrailingAction,\n} from './features/form/text-input/public';\nexport type {\n GameEntityEasing,\n GameEntityMotionProps,\n GameEntityProps,\n GameFieldProps,\n GameInputZoneProps,\n GameKeyboardBinding,\n GameMeasurementProbeProps,\n GameOverlayPlacement,\n GameOverlayProps,\n GamePointerEvents,\n GameProps,\n} from './features/game/public';\nexport {\n Game,\n GameEntity,\n GameField,\n GameInputZone,\n GameMeasurementProbe,\n GameOverlay,\n} from './features/game/public';\nexport type {\n GradientColor,\n GradientColors,\n GradientLocations,\n GradientPoint,\n GradientProps,\n GradientRenderer,\n GradientRendererProps,\n GradientRendererProviderProps,\n} from './features/gradient/public';\nexport { Gradient, GradientRendererProvider } from './features/gradient/public';\nexport {\n createGridInteractionsController,\n type GridInteractionIntent,\n type GridInteractionItem,\n type GridInteractionPointer,\n GridInteractions,\n type GridInteractionsController,\n type GridInteractionsControllerProps,\n type GridInteractionSnap,\n type GridInteractionsProps,\n} from './features/grid-interactions/public';\nexport type {\n GridGuide,\n GridLineOverlayProps,\n GridRulerMark,\n GridRulerProps,\n GridRulerTickSource,\n} from './features/grid-rulers/public';\nexport { GridLineOverlay, GridRuler, resolveGridRulerMarks } from './features/grid-rulers/public';\nexport type { GridViewProps, TileGridItem, TileGridProps } from './features/grid-view/public';\nexport { GridView, layoutTileGrid, TileGrid } from './features/grid-view/public';\nexport {\n Hero,\n type HeroAction,\n type HeroAlign,\n type HeroLayout,\n type HeroProps,\n type HeroTone,\n} from './features/hero/public';\nexport type { IconProps } from './features/icon/public';\nexport { Icon } from './features/icon/public';\nexport type { ImageFit, ImageProps, SurfaceImageSource } from './features/image/public';\nexport { Image } from './features/image/public';\nexport {\n KeyboardAvoidingView,\n type KeyboardAvoidingViewBehavior,\n type KeyboardAvoidingViewProps,\n} from './features/keyboard-avoiding-view/public';\nexport type {\n AppShellProps,\n DividerProps,\n GridProps,\n ScreenProps,\n ScrollViewProps,\n ViewProps,\n} from './features/layout/public';\nexport { AppShell, Divider, Grid, Screen, ScrollView, View } from './features/layout/public';\nexport type { LinkPressEvent, LinkProps, LinkTarget } from './features/link/public';\nexport { Link } from './features/link/public';\nexport type {\n ManifestListProps,\n ManifestListSection,\n ManifestSectionListProps,\n} from './features/list/public';\nexport type {\n ListChildrenProps,\n ListItemProps,\n ListItemsProps,\n ListItemVariant,\n ListProps,\n ListSectionProps,\n} from './features/list/public';\nexport { FlatList, SectionList } from './features/list/public';\nexport { List, ListItem, ListSection } from './features/list/public';\nexport type {\n MasterDetailActivePane,\n MasterDetailDesktopMode,\n MasterDetailMasterWidth,\n MasterDetailProps,\n} from './features/master-detail/public';\nexport { MasterDetail } from './features/master-detail/public';\nexport type { MatrixGridProps } from './features/matrix-grid/public';\nexport { MatrixGrid } from './features/matrix-grid/public';\nexport { MissingElement, type MissingElementProps } from './features/missing-element/public';\nexport { Pagination, type PaginationProps } from './features/pagination/public';\nexport type { PaletteItemProps } from './features/palette-item/public';\nexport { PaletteItem } from './features/palette-item/public';\nexport {\n Popover,\n type PopoverAnchorRenderProps,\n type PopoverPlacement,\n type PopoverProps,\n} from './features/popover/public';\nexport {\n PopoverMenu,\n type PopoverMenuAction,\n type PopoverMenuActionIntent,\n type PopoverMenuProps,\n} from './features/popover-menu/public';\nexport {\n Progress,\n type ProgressProps,\n ProgressRing,\n type ProgressRingProps,\n} from './features/progress/public';\nexport { Rating, type RatingProps } from './features/rating/public';\nexport type {\n ZoraBindableComponentType,\n ZoraComponentBlueprint,\n ZoraComponentCategory,\n ZoraComponentEventMeta,\n ZoraComponentEventPayloadFieldMeta,\n ZoraComponentEventPayloadFieldType,\n ZoraComponentEventPayloadKind,\n ZoraComponentI18nMeta,\n ZoraComponentManifestPolicy,\n ZoraComponentMeta,\n ZoraComponentMetaRegistry,\n ZoraComponentPropArrayItemSchema,\n ZoraComponentPropAuthoring,\n ZoraComponentPropSchema,\n ZoraComponentPropType,\n ZoraComponentPropValue,\n ZoraComponentSlotMeta,\n ZoraThemeRecipeBooleanFieldMeta,\n ZoraThemeRecipeChoiceFieldMeta,\n ZoraThemeRecipeFieldMeta,\n ZoraThemeRecipeKind,\n ZoraThemeRecipeMeta,\n ZoraThemeRecipeMetaRegistry,\n ZoraThemeRecipeTokenFieldMeta,\n ZoraThemeTokenFamily,\n} from './features/registry';\nexport {\n ZORA_BINDABLE_COMPONENT_META,\n ZORA_COMPONENT_META,\n ZORA_THEME_RECIPE_META,\n ZORA_THEME_TOKEN_FAMILIES,\n} from './features/registry';\nexport {\n createZoraComponentRegistry,\n ZORA_BASE_COMPONENT_REGISTRY,\n} from './features/registry/readerFreeRegistry';\nexport { RichText, type RichTextProps } from './features/rich-text/public';\nexport type {\n BarcodeScannerViewProps,\n BarcodeScanResult,\n CameraPermissionStatus,\n CameraPermissionViewProps,\n ScanOverlayProps,\n} from './features/scanner/public';\nexport { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './features/scanner/public';\nexport {\n ScreenSection,\n type ScreenSectionProps,\n SectionHeader,\n type SectionHeaderProps,\n} from './features/section/public';\nexport type {\n CreateRuntimeAuthoringOverlayAdapterOptions,\n RuntimeAuthoringOverlayProps,\n SelectableItemProps,\n SelectableItemState,\n SelectionIntent,\n SelectionMode,\n SelectionProviderProps,\n SelectionTrigger,\n UseSelectionResult,\n} from './features/selection/public';\nexport {\n createRuntimeAuthoringOverlayAdapter,\n RuntimeAuthoringOverlay,\n SelectableItem,\n SelectionProvider,\n useSelection,\n} from './features/selection/public';\nexport {\n Skeleton,\n SkeletonCard,\n type SkeletonCardProps,\n type SkeletonDimension,\n SkeletonList,\n type SkeletonListProps,\n type SkeletonListVariant,\n type SkeletonProps,\n type SkeletonRadius,\n SkeletonText,\n type SkeletonTextProps,\n} from './features/skeleton/public';\nexport type {\n SpatialGridItem,\n SpatialGridItemState,\n SpatialGridProps,\n} from './features/spatial-grid/public';\nexport { SpatialGrid } from './features/spatial-grid/public';\nexport type { SurfaceProps, SurfaceVariant } from './features/surface/public';\nexport { Surface } from './features/surface/public';\nexport type {\n CardBackProps,\n CardHandProps,\n CreatePokerTrainingTableStateOptions,\n CreateTabletopGameSeatsInput,\n PlayingCardProps,\n PlayingCardSuit,\n PlayingCardValue,\n PokerTrainingPlayer,\n PokerTrainingTableProps,\n PokerTrainingTableSize,\n PokerTrainingTableState,\n PokerTrainingTaskTableData,\n TabletopCardSize,\n TabletopColorOverrides,\n TabletopColorScheme,\n TabletopGameParticipantState,\n TabletopGameSeatDefinition,\n TabletopGameSeatPresentation,\n TabletopSeatCount,\n TabletopSeatState,\n TabletopShape,\n TabletopTableProps,\n} from './features/tabletop/public';\nexport {\n CardBack,\n CardHand,\n createPokerTrainingTableState,\n createTabletopColorScheme,\n createTabletopGameSeats,\n PlayingCard,\n PokerTrainingTable,\n pokerTrainingTableMeta,\n TabletopTable,\n tabletopTableMeta,\n} from './features/tabletop/public';\nexport {\n Tab,\n TabList,\n type TabListProps,\n TabPanel,\n type TabPanelProps,\n type TabProps,\n Tabs,\n type TabsProps,\n} from './features/tabs/public';\nexport type {\n ZoraColor,\n ZoraEmphasis,\n ZoraPaletteColor,\n ZoraStatusColor,\n} from './features/theme/colorModel';\nexport {\n ZORA_COLORS,\n ZORA_EMPHASES,\n ZORA_PALETTE_COLORS,\n ZORA_STATUS_COLORS,\n} from './features/theme/colorModel';\nexport * from './features/theme/public';\nexport * from './features/theme/runtime';\nexport type { TimeGridInterval, TimeGridLane, TimeGridProps } from './features/time-grid/public';\nexport { resolveTimeGridVisibleIntervals, TimeGrid } from './features/time-grid/public';\nexport {\n TimePicker,\n type TimePickerProps,\n type TimePickerValue,\n} from './features/time-picker/public';\nexport type {\n TimelineItem,\n TimelineManifestItem,\n TimelineManifestProps,\n TimelineProps,\n} from './features/timeline/public';\nexport { Timeline } from './features/timeline/public';\nexport type {\n ToastController,\n ToastOptions,\n ToastProps,\n ToastProviderProps,\n ToastStatus,\n} from './features/toast/public';\nexport { Toast, ToastProvider, useToast } from './features/toast/public';\nexport { Toolbar, type ToolbarProps } from './features/toolbar/public';\nexport type { TreeItemNode, TreeItemRenderProps, TreeViewProps } from './features/tree-view/public';\nexport { TreeItem, TreeView } from './features/tree-view/public';\nexport type {\n HeadingAlign,\n HeadingColor,\n HeadingEmphasis,\n HeadingLevel,\n HeadingProps,\n HeadingSize,\n HeadingWeight,\n} from './features/typography/public';\nexport type {\n TextAlign,\n TextColor,\n TextEmphasis,\n TextProps,\n TextVariant,\n TextWeight,\n} from './features/typography/public';\nexport { Heading } from './features/typography/public';\nexport { Text } from './features/typography/public';\nexport type {\n UploadAsset,\n UploadAssetBase,\n UploaderExplorerItem,\n UploaderProps,\n UploadProgressContext,\n UploadType,\n ValidateUploadAssetInput,\n} from './features/uploader/public';\nexport { Uploader, validateUploadAsset } from './features/uploader/public';\nexport type {\n VideoContentFit,\n VideoManifestProps,\n VideoProps,\n VideoResolvedSource,\n} from './features/video/public';\nexport { Video } from './features/video/public';\nexport type { ZoraComponentRegistry } from './types/registry';\n"]}
@@ -2,6 +2,9 @@ import type { PopoverAnchorRenderProps as SurfacePopoverAnchorRenderProps, Popov
2
2
  import type { ZoraBaseProps } from './base';
3
3
  export type PopoverAnchorRenderProps = SurfacePopoverAnchorRenderProps;
4
4
  export type PopoverPlacement = SurfacePopoverPlacement;
5
- export interface PopoverProps extends SurfacePopoverProps, ZoraBaseProps {
5
+ export interface PopoverProps extends Omit<SurfacePopoverProps, 'anchor'>, ZoraBaseProps {
6
+ anchor?: SurfacePopoverProps['anchor'];
7
+ disabled?: boolean;
8
+ triggerLabel?: string;
6
9
  }
7
10
  //# sourceMappingURL=popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/types/popover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,IAAI,+BAA+B,EAC3D,gBAAgB,IAAI,uBAAuB,EAC3C,YAAY,IAAI,mBAAmB,EACpC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,MAAM,wBAAwB,GAAG,+BAA+B,CAAC;AACvE,MAAM,MAAM,gBAAgB,GAAG,uBAAuB,CAAC;AAEvD,MAAM,WAAW,YAAa,SAAQ,mBAAmB,EAAE,aAAa;CAAG"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/types/popover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,IAAI,+BAA+B,EAC3D,gBAAgB,IAAI,uBAAuB,EAC3C,YAAY,IAAI,mBAAmB,EACpC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,MAAM,wBAAwB,GAAG,+BAA+B,CAAC;AACvE,MAAM,MAAM,gBAAgB,GAAG,uBAAuB,CAAC;AAEvD,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC,EAAE,aAAa;IACtF,MAAM,CAAC,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"popover.js","sourceRoot":"","sources":["../../src/types/popover.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n PopoverAnchorRenderProps as SurfacePopoverAnchorRenderProps,\n PopoverPlacement as SurfacePopoverPlacement,\n PopoverProps as SurfacePopoverProps,\n} from '@ankhorage/surface';\n\nimport type { ZoraBaseProps } from './base';\n\nexport type PopoverAnchorRenderProps = SurfacePopoverAnchorRenderProps;\nexport type PopoverPlacement = SurfacePopoverPlacement;\n\nexport interface PopoverProps extends SurfacePopoverProps, ZoraBaseProps {}\n"]}
1
+ {"version":3,"file":"popover.js","sourceRoot":"","sources":["../../src/types/popover.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n PopoverAnchorRenderProps as SurfacePopoverAnchorRenderProps,\n PopoverPlacement as SurfacePopoverPlacement,\n PopoverProps as SurfacePopoverProps,\n} from '@ankhorage/surface';\n\nimport type { ZoraBaseProps } from './base';\n\nexport type PopoverAnchorRenderProps = SurfacePopoverAnchorRenderProps;\nexport type PopoverPlacement = SurfacePopoverPlacement;\n\nexport interface PopoverProps extends Omit<SurfacePopoverProps, 'anchor'>, ZoraBaseProps {\n anchor?: SurfacePopoverProps['anchor'];\n disabled?: boolean;\n triggerLabel?: string;\n}\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ankhorage/zora",
3
3
  "type": "module",
4
- "version": "28.8.3",
4
+ "version": "28.9.0",
5
5
  "description": "Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.",
6
6
  "homepage": "https://github.com/ankhorage/zora#readme",
7
7
  "bugs": {
@@ -1276,6 +1276,32 @@
1276
1276
  }
1277
1277
  }
1278
1278
  },
1279
+ {
1280
+ "id": "popover.openChange",
1281
+ "owner": "@ankhorage/zora",
1282
+ "access": [
1283
+ "emit"
1284
+ ],
1285
+ "binding": {
1286
+ "kind": "event",
1287
+ "bindableAs": [
1288
+ "source"
1289
+ ]
1290
+ },
1291
+ "label": "Open change",
1292
+ "description": "Emitted when the popover requests a controlled open-state change.",
1293
+ "output": {
1294
+ "schema": {
1295
+ "type": "object",
1296
+ "properties": {
1297
+ "open": {
1298
+ "type": "boolean",
1299
+ "title": "Open"
1300
+ }
1301
+ }
1302
+ }
1303
+ }
1304
+ },
1279
1305
  {
1280
1306
  "id": "productCard.press",
1281
1307
  "owner": "@ankhorage/zora",
@@ -31,6 +31,7 @@ export const FEATURE_MANIFEST_ELEMENTS = {
31
31
  'date-picker': ['DatePicker'],
32
32
  explorer: ['MediaExplorer', 'FileExplorer'],
33
33
  dialog: ['Dialog'],
34
+ popover: ['Popover'],
34
35
  form: ['Form', 'FormError', 'Field'],
35
36
  gradient: ['Gradient'],
36
37
  button: ['Button', 'IconButton', 'ButtonGroup'],
@@ -98,6 +99,8 @@ export const CONTAINER_ALLOWED_CHILDREN = [
98
99
  'FlatList',
99
100
  'SectionList',
100
101
  'BottomSheet',
102
+ 'Popover',
103
+ 'Select',
101
104
  'ProductCard',
102
105
  'View',
103
106
  'ScrollView',
@@ -1,4 +1,4 @@
1
- import { Popover as SurfacePopover } from '@ankhorage/surface';
1
+ import { Button as SurfaceButton, Popover as SurfacePopover } from '@ankhorage/surface';
2
2
 
3
3
  import type { PopoverProps } from '../../../../types/popover';
4
4
  import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
@@ -11,7 +11,22 @@ function PopoverInner({
11
11
  inverted: _inverted,
12
12
  mode: _mode,
13
13
  themeId: _themeId,
14
+ anchor,
15
+ disabled,
16
+ triggerLabel,
14
17
  ...props
15
18
  }: PopoverProps) {
16
- return <SurfacePopover {...props} />;
19
+ return (
20
+ <SurfacePopover
21
+ {...props}
22
+ anchor={
23
+ anchor ??
24
+ (({ toggle }) => (
25
+ <SurfaceButton disabled={disabled} onPress={toggle}>
26
+ {triggerLabel}
27
+ </SurfaceButton>
28
+ ))
29
+ }
30
+ />
31
+ );
17
32
  }
@@ -0,0 +1,153 @@
1
+ import type { ComponentDataBindingRegistry, UiNode } from '@ankhorage/contracts';
2
+ import { expect, mock, test } from 'bun:test';
3
+ import React from 'react';
4
+ import { renderToStaticMarkup } from 'react-dom/server';
5
+
6
+ interface CapturedPopoverProps {
7
+ readonly anchor: (controls: {
8
+ close: () => void;
9
+ open: boolean;
10
+ toggle: () => void;
11
+ }) => React.ReactNode;
12
+ readonly children?: React.ReactNode;
13
+ readonly onOpenChange?: (open: boolean) => void;
14
+ readonly open?: boolean;
15
+ }
16
+
17
+ let capturedPopoverProps: CapturedPopoverProps | undefined;
18
+
19
+ await mock.module('@ankhorage/surface', () => ({
20
+ Button: ({ children, disabled }: React.PropsWithChildren<{ readonly disabled?: boolean }>) => (
21
+ <button disabled={disabled}>{children}</button>
22
+ ),
23
+ Divider: () => <hr />,
24
+ Grid: ({ children }: React.PropsWithChildren) => <div>{children}</div>,
25
+ IconButton: () => <button />,
26
+ Popover: (props: CapturedPopoverProps) => {
27
+ capturedPopoverProps = props;
28
+ return (
29
+ <section>
30
+ {props.anchor({
31
+ close: () => props.onOpenChange?.(false),
32
+ open: props.open ?? false,
33
+ toggle: () => undefined,
34
+ })}
35
+ {props.children}
36
+ </section>
37
+ );
38
+ },
39
+ ThemeScope: ({ children }: React.PropsWithChildren) => children,
40
+ View: ({ children }: React.PropsWithChildren) => <div>{children}</div>,
41
+ ScrollView: ({ children }: React.PropsWithChildren) => <div>{children}</div>,
42
+ useTheme: () => ({
43
+ colors: {},
44
+ config: {},
45
+ radii: {},
46
+ shadows: {},
47
+ spacing: {},
48
+ typography: { headings: {}, sizes: {}, weights: {} },
49
+ }),
50
+ }));
51
+
52
+ await mock.module('react-native', () => ({
53
+ Platform: { OS: 'web' },
54
+ StyleSheet: { create: <T,>(styles: T) => styles },
55
+ Text: ({ children }: React.PropsWithChildren) => <span>{children}</span>,
56
+ View: ({ children }: React.PropsWithChildren) => <div>{children}</div>,
57
+ }));
58
+
59
+ const [
60
+ { RuntimeRenderer, composeRuntimeCapabilityExecutor, createRuntimeMemoryStateAdapter },
61
+ { Popover },
62
+ ] = await Promise.all([import('@ankhorage/runtime'), import('./public')]);
63
+
64
+ const popoverNode = {
65
+ id: 'popover',
66
+ type: 'Popover',
67
+ props: { disabled: true, triggerLabel: 'Filter options' },
68
+ children: [
69
+ {
70
+ id: 'nested-select',
71
+ type: 'Select',
72
+ props: {
73
+ options: [{ label: 'Open', value: 'open' }],
74
+ searchable: true,
75
+ },
76
+ },
77
+ ],
78
+ } as const satisfies UiNode;
79
+
80
+ const popoverBindings = {
81
+ popover: {
82
+ componentId: 'popover',
83
+ events: {
84
+ openChange: [
85
+ {
86
+ target: {
87
+ capability: 'state.set',
88
+ input: {
89
+ path: { kind: 'literal', value: 'popover.open' },
90
+ value: { capability: 'popover.openChange', path: 'payload.open' },
91
+ },
92
+ },
93
+ },
94
+ ],
95
+ },
96
+ props: {
97
+ open: {
98
+ value: { kind: 'state', path: { kind: 'literal', value: 'popover.open' } },
99
+ },
100
+ },
101
+ },
102
+ } as const satisfies ComponentDataBindingRegistry;
103
+
104
+ /*** Allows the Runtime event dispatch scheduled by a component callback to complete. */
105
+ async function flushRuntimeEvent(): Promise<void> {
106
+ await new Promise<void>((resolve) => setTimeout(resolve, 0));
107
+ }
108
+
109
+ test('drives controlled manifest Popover opening and closing through StateAdapter with a nested searchable Select', async () => {
110
+ const stateAdapter = createRuntimeMemoryStateAdapter({
111
+ initialState: { popover: { open: false } },
112
+ });
113
+ const executeCapability = composeRuntimeCapabilityExecutor({ stateAdapter });
114
+ const diagnostics: unknown[] = [];
115
+ const render = () =>
116
+ renderToStaticMarkup(
117
+ <RuntimeRenderer
118
+ dataBindings={popoverBindings}
119
+ executeCapability={executeCapability}
120
+ isRoot
121
+ node={popoverNode}
122
+ onDiagnostics={(nextDiagnostics) => diagnostics.push(...nextDiagnostics)}
123
+ resolveEventCapability={({ eventName }) =>
124
+ eventName === 'openChange' ? 'popover.openChange' : undefined
125
+ }
126
+ registry={{
127
+ Popover,
128
+ Select: ({ searchable }: { readonly searchable?: boolean }) => (
129
+ <output data-searchable={searchable}>Searchable select</output>
130
+ ),
131
+ }}
132
+ stateAdapter={stateAdapter}
133
+ />,
134
+ );
135
+
136
+ const initialMarkup = render();
137
+ expect(initialMarkup).toContain('Filter options');
138
+ expect(initialMarkup).toContain('disabled=""');
139
+ expect(initialMarkup).toContain('data-searchable="true"');
140
+ expect(capturedPopoverProps?.open).toBe(false);
141
+
142
+ capturedPopoverProps?.onOpenChange?.(true);
143
+ await flushRuntimeEvent();
144
+ expect(diagnostics).toEqual([]);
145
+ expect(stateAdapter.get<boolean>('popover.open')).toEqual({ data: true, ok: true });
146
+
147
+ render();
148
+ expect(capturedPopoverProps?.open).toBe(true);
149
+
150
+ capturedPopoverProps?.onOpenChange?.(false);
151
+ await flushRuntimeEvent();
152
+ expect(stateAdapter.get<boolean>('popover.open')).toEqual({ data: false, ok: true });
153
+ });
@@ -0,0 +1,79 @@
1
+ import { CONTAINER_ALLOWED_CHILDREN } from '../../constants/authoring';
2
+ import type { ZoraComponentMeta } from '../../types/authoring';
3
+
4
+ export const popoverMeta = {
5
+ name: 'Popover',
6
+ category: 'component',
7
+ directManifestNode: true,
8
+ allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],
9
+ description: 'Controlled anchored presentation with an ordinary manifest-content subtree.',
10
+ blueprint: {
11
+ label: 'Popover',
12
+ defaultProps: { disabled: false, open: false, triggerLabel: 'Open popover' },
13
+ },
14
+ bindings: {
15
+ props: {
16
+ triggerLabel: {
17
+ label: 'Trigger label',
18
+ description: 'Label for the declarative popover trigger.',
19
+ value: { type: 'string' },
20
+ acceptsFallback: true,
21
+ acceptsTransforms: true,
22
+ },
23
+ open: {
24
+ label: 'Open',
25
+ description: 'Whether the popover is currently open.',
26
+ value: { type: 'boolean' },
27
+ acceptsFallback: true,
28
+ acceptsTransforms: true,
29
+ },
30
+ disabled: {
31
+ label: 'Disabled',
32
+ description: 'Whether the declarative trigger is disabled.',
33
+ value: { type: 'boolean' },
34
+ acceptsFallback: true,
35
+ acceptsTransforms: true,
36
+ },
37
+ },
38
+ events: {
39
+ openChange: {
40
+ label: 'Open change',
41
+ description: 'Runs when the popover requests a controlled open-state change.',
42
+ payload: {
43
+ eventType: 'popover.openChange',
44
+ fields: [{ path: 'open', type: 'boolean', label: 'Open' }],
45
+ },
46
+ },
47
+ },
48
+ },
49
+ events: {
50
+ openChange: {
51
+ label: 'Open change',
52
+ eventType: 'popover.openChange',
53
+ description: 'Emitted when the popover requests a controlled open-state change.',
54
+ payloadFields: [{ path: 'open', type: 'boolean', label: 'Open' }],
55
+ },
56
+ },
57
+ props: {
58
+ triggerLabel: {
59
+ type: 'string',
60
+ category: 'Content',
61
+ label: 'Trigger label',
62
+ authoring: { authority: 'instance' },
63
+ },
64
+ open: {
65
+ type: 'boolean',
66
+ category: 'State',
67
+ label: 'Open',
68
+ default: false,
69
+ authoring: { authority: 'instance' },
70
+ },
71
+ disabled: {
72
+ type: 'boolean',
73
+ category: 'State',
74
+ label: 'Disabled',
75
+ default: false,
76
+ authoring: { authority: 'instance' },
77
+ },
78
+ },
79
+ } as const satisfies ZoraComponentMeta;
@@ -3,7 +3,8 @@ import { expect, test } from 'bun:test';
3
3
  test('Popover exposes the narrow ZORA-owned Surface overlay boundary', async () => {
4
4
  const source = await Bun.file('src/features/popover/adapters/inbound/Popover.tsx').text();
5
5
 
6
- expect(source).toContain('Popover as SurfacePopover');
6
+ expect(source).toContain('Button as SurfaceButton, Popover as SurfacePopover');
7
7
  expect(source).toContain('<SurfacePopover');
8
+ expect(source).toContain('<SurfaceButton');
8
9
  expect(source).toContain('withZoraThemeScope');
9
10
  });
@@ -64,6 +64,7 @@ import { MatrixGrid } from '../matrix-grid/public';
64
64
  import { MissingElement } from '../missing-element/public';
65
65
  import { Pagination } from '../pagination/public';
66
66
  import { PaletteItem } from '../palette-item/public';
67
+ import { Popover } from '../popover/public';
67
68
  import { PopoverMenu } from '../popover-menu/public';
68
69
  import { Progress, ProgressRing } from '../progress/public';
69
70
  import { Rating } from '../rating/public';
@@ -159,6 +160,7 @@ const _ZORA_BASE_COMPONENT_REGISTRY = {
159
160
  MediaCard,
160
161
  MetricCard,
161
162
  Pagination,
163
+ Popover,
162
164
  PopoverMenu,
163
165
  Progress,
164
166
  ProgressRing,
@@ -341,6 +341,7 @@ describe('ZORA_COMPONENT_META invariants', () => {
341
341
  'TabList',
342
342
  'TabPanel',
343
343
  'Toolbar',
344
+ 'Popover',
344
345
  ]);
345
346
 
346
347
  for (const [key, meta] of Object.entries(ZORA_COMPONENT_META)) {
@@ -77,6 +77,7 @@ import { matrixGridMeta } from '../matrix-grid/meta';
77
77
  import { missingElementMeta } from '../missing-element/missingElementMeta';
78
78
  import { paginationMeta } from '../pagination/paginationMeta';
79
79
  import { paletteItemMeta } from '../palette-item/paletteItemMeta';
80
+ import { popoverMeta } from '../popover/popoverMeta';
80
81
  import { popoverMenuMeta } from '../popover-menu/popoverMenuMeta';
81
82
  import { progressMeta, progressRingMeta } from '../progress/progressMeta';
82
83
  import { ratingMeta } from '../rating/ratingMeta';
@@ -168,6 +169,7 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
168
169
  MediaCard: mediaCardMeta,
169
170
  MetricCard: metricCardMeta,
170
171
  Pagination: paginationMeta,
172
+ Popover: popoverMeta,
171
173
  PopoverMenu: popoverMenuMeta,
172
174
  Progress: progressMeta,
173
175
  ProgressRing: progressRingMeta,
@@ -69,6 +69,17 @@ test('final ownership data components retain bindings in core metadata', () => {
69
69
  expect(meta.Rating?.bindings?.props?.value?.value.type).toBe('number');
70
70
  });
71
71
 
72
+ test('Popover retains declarative manifest bindings and nested Select support', () => {
73
+ const meta = ZORA_COMPONENT_META;
74
+ expect(meta.Popover?.bindings?.props?.open?.value.type).toBe('boolean');
75
+ expect(meta.Popover?.bindings?.events?.openChange?.payload?.fields).toContainEqual({
76
+ label: 'Open',
77
+ path: 'open',
78
+ type: 'boolean',
79
+ });
80
+ expect(meta.Popover?.allowedChildren).toContain('Select');
81
+ });
82
+
72
83
  test('final ownership form and tab components retain bindings in core metadata', () => {
73
84
  const meta = ZORA_COMPONENT_META;
74
85
  expect(meta.SearchInput?.bindings?.props?.value?.value.type).toBe('string');
package/src/readerFree.ts CHANGED
@@ -367,6 +367,12 @@ export { MissingElement, type MissingElementProps } from './features/missing-ele
367
367
  export { Pagination, type PaginationProps } from './features/pagination/public';
368
368
  export type { PaletteItemProps } from './features/palette-item/public';
369
369
  export { PaletteItem } from './features/palette-item/public';
370
+ export {
371
+ Popover,
372
+ type PopoverAnchorRenderProps,
373
+ type PopoverPlacement,
374
+ type PopoverProps,
375
+ } from './features/popover/public';
370
376
  export {
371
377
  PopoverMenu,
372
378
  type PopoverMenuAction,
@@ -9,4 +9,8 @@ import type { ZoraBaseProps } from './base';
9
9
  export type PopoverAnchorRenderProps = SurfacePopoverAnchorRenderProps;
10
10
  export type PopoverPlacement = SurfacePopoverPlacement;
11
11
 
12
- export interface PopoverProps extends SurfacePopoverProps, ZoraBaseProps {}
12
+ export interface PopoverProps extends Omit<SurfacePopoverProps, 'anchor'>, ZoraBaseProps {
13
+ anchor?: SurfacePopoverProps['anchor'];
14
+ disabled?: boolean;
15
+ triggerLabel?: string;
16
+ }
@@ -293,6 +293,7 @@ test('publishes SSR-safe ordinary UI through canonical web subpaths', async () =
293
293
  "export { DataTable } from '@ankhorage/zora/web/data-table';",
294
294
  "export { Dialog } from '@ankhorage/zora/web/dialog';",
295
295
  "export { MetricCard } from '@ankhorage/zora/web/metric-card';",
296
+ "export { Popover } from '@ankhorage/zora/web/popover';",
296
297
  "export { PopoverMenu } from '@ankhorage/zora/web/popover-menu';",
297
298
  "export { Select } from '@ankhorage/zora/web/select';",
298
299
  "export { TextInput } from '@ankhorage/zora/web/text-input';",
@@ -5,17 +5,25 @@ import {
5
5
  } from "../../chunks/Accordion-zhgty1ae.js";
6
6
 
7
7
  // src/features/popover/adapters/inbound/Popover.tsx
8
- import { Popover as SurfacePopover } from "@ankhorage/surface/web";
8
+ import { Button as SurfaceButton, Popover as SurfacePopover } from "@ankhorage/surface/web";
9
9
  import { jsx } from "react/jsx-runtime";
10
10
  var Popover = withZoraThemeScope(PopoverInner);
11
11
  function PopoverInner({
12
12
  inverted: _inverted,
13
13
  mode: _mode,
14
14
  themeId: _themeId,
15
+ anchor,
16
+ disabled,
17
+ triggerLabel,
15
18
  ...props
16
19
  }) {
17
20
  return /* @__PURE__ */ jsx(SurfacePopover, {
18
- ...props
21
+ ...props,
22
+ anchor: anchor ?? (({ toggle }) => /* @__PURE__ */ jsx(SurfaceButton, {
23
+ disabled,
24
+ onPress: toggle,
25
+ children: triggerLabel
26
+ }))
19
27
  });
20
28
  }
21
29
  export {
@@ -6,5 +6,8 @@ export type PopoverAnchorRenderProps = SurfacePopoverAnchorRenderProps;
6
6
 
7
7
  export type PopoverPlacement = SurfacePopoverPlacement;
8
8
 
9
- export interface PopoverProps extends SurfacePopoverProps, ZoraBaseProps {
9
+ export interface PopoverProps extends Omit<SurfacePopoverProps, 'anchor'>, ZoraBaseProps {
10
+ anchor?: SurfacePopoverProps['anchor'];
11
+ disabled?: boolean;
12
+ triggerLabel?: string;
10
13
  }