@ankhorage/zora 19.0.0 → 20.0.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.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -2
- package/dist/features/accordion/accordionItemMeta.js +1 -1
- package/dist/features/accordion/accordionItemMeta.js.map +1 -1
- package/dist/features/accordion/accordionMeta.js.map +1 -1
- package/dist/features/accordion/adapters/inbound/Accordion.d.ts.map +1 -1
- package/dist/features/accordion/adapters/inbound/Accordion.js +1 -1
- package/dist/features/accordion/adapters/inbound/Accordion.js.map +1 -1
- package/dist/features/accordion/adapters/inbound/AccordionItem.d.ts.map +1 -1
- package/dist/features/accordion/adapters/inbound/AccordionItem.js +1 -1
- package/dist/features/accordion/adapters/inbound/AccordionItem.js.map +1 -1
- package/dist/features/activity-indicator/activityIndicatorMeta.js.map +1 -1
- package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.d.ts.map +1 -1
- package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.js +2 -2
- package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.js.map +1 -1
- package/dist/features/app-bar/adapters/inbound/AppBar.d.ts.map +1 -1
- package/dist/features/app-bar/adapters/inbound/AppBar.js +2 -2
- package/dist/features/app-bar/adapters/inbound/AppBar.js.map +1 -1
- package/dist/features/app-bar/appBarMeta.js.map +1 -1
- package/dist/features/auth/adapters/inbound/AuthForm.d.ts +1 -1
- package/dist/features/auth/adapters/inbound/AuthForm.d.ts.map +1 -1
- package/dist/features/auth/adapters/inbound/AuthForm.js.map +1 -1
- package/dist/features/auth/adapters/inbound/AuthFormField.d.ts +1 -1
- package/dist/features/auth/adapters/inbound/AuthFormField.d.ts.map +1 -1
- package/dist/features/auth/adapters/inbound/AuthFormField.js.map +1 -1
- package/dist/features/auth/adapters/inbound/ForgotPasswordForm.d.ts.map +1 -1
- package/dist/features/auth/adapters/inbound/ForgotPasswordForm.js +1 -1
- package/dist/features/auth/adapters/inbound/ForgotPasswordForm.js.map +1 -1
- package/dist/features/auth/adapters/inbound/OAuthProviderButton.d.ts.map +1 -1
- package/dist/features/auth/adapters/inbound/OAuthProviderButton.js +1 -1
- package/dist/features/auth/adapters/inbound/OAuthProviderButton.js.map +1 -1
- package/dist/features/auth/adapters/inbound/OAuthProviderList.d.ts.map +1 -1
- package/dist/features/auth/adapters/inbound/OAuthProviderList.js +1 -1
- package/dist/features/auth/adapters/inbound/OAuthProviderList.js.map +1 -1
- package/dist/features/auth/adapters/inbound/OtpForm.d.ts.map +1 -1
- package/dist/features/auth/adapters/inbound/OtpForm.js +1 -1
- package/dist/features/auth/adapters/inbound/OtpForm.js.map +1 -1
- package/dist/features/auth/adapters/inbound/SignInForm.d.ts.map +1 -1
- package/dist/features/auth/adapters/inbound/SignInForm.js +1 -1
- package/dist/features/auth/adapters/inbound/SignInForm.js.map +1 -1
- package/dist/features/auth/adapters/inbound/SignUpForm.d.ts.map +1 -1
- package/dist/features/auth/adapters/inbound/SignUpForm.js +1 -1
- package/dist/features/auth/adapters/inbound/SignUpForm.js.map +1 -1
- package/dist/features/auth/forgotPasswordFormMeta.js.map +1 -1
- package/dist/features/auth/oauthProviderButtonMeta.js +1 -1
- package/dist/features/auth/oauthProviderButtonMeta.js.map +1 -1
- package/dist/features/auth/oauthProviderListMeta.js +1 -1
- package/dist/features/auth/oauthProviderListMeta.js.map +1 -1
- package/dist/features/auth/otpFormMeta.js.map +1 -1
- package/dist/features/auth/signInFormMeta.js.map +1 -1
- package/dist/features/auth/signUpFormMeta.js.map +1 -1
- package/dist/features/authoring/allowedChildren.d.ts.map +1 -0
- package/dist/features/authoring/allowedChildren.js.map +1 -0
- package/dist/{metadata → features/authoring}/bindableComponentMeta.d.ts +3 -3
- package/dist/{metadata → features/authoring}/bindableComponentMeta.d.ts.map +1 -1
- package/dist/{metadata → features/authoring}/bindableComponentMeta.js +2 -2
- package/dist/features/authoring/bindableComponentMeta.js.map +1 -0
- package/dist/features/authoring/componentMeta.d.ts +3 -0
- package/dist/features/authoring/componentMeta.d.ts.map +1 -0
- package/dist/features/authoring/componentMeta.js +184 -0
- package/dist/features/authoring/componentMeta.js.map +1 -0
- package/dist/{constants.d.ts → features/authoring/constants.d.ts} +1 -0
- package/dist/features/authoring/constants.d.ts.map +1 -0
- package/dist/{constants.js → features/authoring/constants.js} +7 -0
- package/dist/features/authoring/constants.js.map +1 -0
- package/dist/{metadata → features/authoring}/index.d.ts +7 -6
- package/dist/features/authoring/index.d.ts.map +1 -0
- package/dist/features/authoring/index.js +8 -0
- package/dist/features/authoring/index.js.map +1 -0
- package/dist/features/authoring/themeRecipeMeta.d.ts +3 -0
- package/dist/features/authoring/themeRecipeMeta.d.ts.map +1 -0
- package/dist/features/authoring/themeRecipeMeta.js +13 -0
- package/dist/features/authoring/themeRecipeMeta.js.map +1 -0
- package/dist/{utils → features/authoring/utils}/createManifestBindings.d.ts +1 -1
- package/dist/features/authoring/utils/createManifestBindings.d.ts.map +1 -0
- package/dist/features/authoring/utils/createManifestBindings.js.map +1 -0
- package/dist/{utils → features/authoring/utils}/finalizeFeatureMetadata.d.ts +1 -1
- package/dist/features/authoring/utils/finalizeFeatureMetadata.d.ts.map +1 -0
- package/dist/features/authoring/utils/finalizeFeatureMetadata.js.map +1 -0
- package/dist/features/avatar/adapters/inbound/Avatar.d.ts.map +1 -1
- package/dist/features/avatar/adapters/inbound/Avatar.js +2 -2
- package/dist/features/avatar/adapters/inbound/Avatar.js.map +1 -1
- package/dist/features/avatar/adapters/inbound/AvatarGroup.d.ts.map +1 -1
- package/dist/features/avatar/adapters/inbound/AvatarGroup.js +2 -2
- package/dist/features/avatar/adapters/inbound/AvatarGroup.js.map +1 -1
- package/dist/features/avatar/avatarGroupMeta.js.map +1 -1
- package/dist/features/avatar/avatarMeta.js.map +1 -1
- package/dist/features/badge/adapters/inbound/Badge.d.ts.map +1 -1
- package/dist/features/badge/adapters/inbound/Badge.js +2 -2
- package/dist/features/badge/adapters/inbound/Badge.js.map +1 -1
- package/dist/features/badge/badgeMeta.js.map +1 -1
- package/dist/features/badge/utils/resolveBadgeRecipe.d.ts +10 -0
- package/dist/features/badge/utils/resolveBadgeRecipe.d.ts.map +1 -0
- package/dist/features/badge/utils/resolveBadgeRecipe.js +4 -0
- package/dist/features/badge/utils/resolveBadgeRecipe.js.map +1 -0
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.d.ts.map +1 -1
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.js +3 -3
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.js.map +1 -1
- package/dist/features/bottom-sheet/bottomSheetMeta.js +1 -1
- package/dist/features/bottom-sheet/bottomSheetMeta.js.map +1 -1
- package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.d.ts.map +1 -1
- package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.js +3 -3
- package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.js.map +1 -1
- package/dist/features/breadcrumbs/breadcrumbsMeta.js.map +1 -1
- package/dist/features/button/adapters/inbound/Button.d.ts.map +1 -1
- package/dist/features/button/adapters/inbound/Button.js +2 -2
- package/dist/features/button/adapters/inbound/Button.js.map +1 -1
- package/dist/features/button/adapters/inbound/ButtonGroup.d.ts.map +1 -1
- package/dist/features/button/adapters/inbound/ButtonGroup.js +1 -1
- package/dist/features/button/adapters/inbound/ButtonGroup.js.map +1 -1
- package/dist/features/button/adapters/inbound/IconButton.d.ts.map +1 -1
- package/dist/features/button/adapters/inbound/IconButton.js +2 -2
- package/dist/features/button/adapters/inbound/IconButton.js.map +1 -1
- package/dist/features/button/buttonGroupMeta.js.map +1 -1
- package/dist/features/button/buttonMeta.js +2 -2
- package/dist/features/button/buttonMeta.js.map +1 -1
- package/dist/features/button/iconButtonMeta.js.map +1 -1
- package/dist/features/button/utils/resolveButtonRecipe.d.ts +10 -0
- package/dist/features/button/utils/resolveButtonRecipe.d.ts.map +1 -0
- package/dist/features/button/utils/resolveButtonRecipe.js +4 -0
- package/dist/features/button/utils/resolveButtonRecipe.js.map +1 -0
- package/dist/features/button/utils/resolveButtonThemeRecipe.d.ts +4 -2
- package/dist/features/button/utils/resolveButtonThemeRecipe.d.ts.map +1 -1
- package/dist/features/button/utils/resolveButtonThemeRecipe.js +1 -1
- package/dist/features/button/utils/resolveButtonThemeRecipe.js.map +1 -1
- package/dist/features/button/utils/themeRecipeMeta.js +1 -1
- package/dist/features/button/utils/themeRecipeMeta.js.map +1 -1
- package/dist/features/card/adapters/inbound/Card.d.ts.map +1 -1
- package/dist/features/card/adapters/inbound/Card.js +3 -3
- package/dist/features/card/adapters/inbound/Card.js.map +1 -1
- package/dist/features/card/adapters/inbound/MediaCard.d.ts.map +1 -1
- package/dist/features/card/adapters/inbound/MediaCard.js +2 -2
- package/dist/features/card/adapters/inbound/MediaCard.js.map +1 -1
- package/dist/features/card/adapters/inbound/MetricCard.d.ts.map +1 -1
- package/dist/features/card/adapters/inbound/MetricCard.js +4 -3
- package/dist/features/card/adapters/inbound/MetricCard.js.map +1 -1
- package/dist/features/card/adapters/inbound/PostCard.d.ts.map +1 -1
- package/dist/features/card/adapters/inbound/PostCard.js +2 -2
- package/dist/features/card/adapters/inbound/PostCard.js.map +1 -1
- package/dist/features/card/adapters/inbound/ProductCard.d.ts +1 -1
- package/dist/features/card/adapters/inbound/ProductCard.d.ts.map +1 -1
- package/dist/features/card/adapters/inbound/ProductCard.js +1 -1
- package/dist/features/card/adapters/inbound/ProductCard.js.map +1 -1
- package/dist/features/card/cardMeta.js +2 -2
- package/dist/features/card/cardMeta.js.map +1 -1
- package/dist/features/card/mediaCardMeta.js +1 -1
- package/dist/features/card/mediaCardMeta.js.map +1 -1
- package/dist/features/card/metricCardMeta.js.map +1 -1
- package/dist/features/card/postCardMeta.js +1 -1
- package/dist/features/card/postCardMeta.js.map +1 -1
- package/dist/features/card/productCardMeta.js.map +1 -1
- package/dist/features/card/utils/resolveCardThemeRecipe.d.ts +1 -1
- package/dist/features/card/utils/resolveCardThemeRecipe.d.ts.map +1 -1
- package/dist/features/card/utils/resolveCardThemeRecipe.js.map +1 -1
- package/dist/features/card/utils/resolveCardVariant.d.ts +4 -0
- package/dist/features/card/utils/resolveCardVariant.d.ts.map +1 -0
- package/dist/features/card/utils/resolveCardVariant.js +12 -0
- package/dist/features/card/utils/resolveCardVariant.js.map +1 -0
- package/dist/features/card/utils/themeRecipeMeta.js.map +1 -1
- package/dist/features/chat/adapters/inbound/ChatListItem.d.ts.map +1 -1
- package/dist/features/chat/adapters/inbound/ChatListItem.js +2 -2
- package/dist/features/chat/adapters/inbound/ChatListItem.js.map +1 -1
- package/dist/features/chat/adapters/inbound/MessageBubble.d.ts.map +1 -1
- package/dist/features/chat/adapters/inbound/MessageBubble.js +2 -2
- package/dist/features/chat/adapters/inbound/MessageBubble.js.map +1 -1
- package/dist/features/chat/chatListItemMeta.js.map +1 -1
- package/dist/features/chat/messageBubbleMeta.js +1 -1
- package/dist/features/chat/messageBubbleMeta.js.map +1 -1
- package/dist/features/chip/adapters/inbound/Chip.d.ts.map +1 -1
- package/dist/features/chip/adapters/inbound/Chip.js +3 -3
- package/dist/features/chip/adapters/inbound/Chip.js.map +1 -1
- package/dist/features/chip/adapters/inbound/ChipGroup.d.ts.map +1 -1
- package/dist/features/chip/adapters/inbound/ChipGroup.js +1 -1
- package/dist/features/chip/adapters/inbound/ChipGroup.js.map +1 -1
- package/dist/features/chip/chipGroupMeta.js.map +1 -1
- package/dist/features/chip/chipMeta.js.map +1 -1
- package/dist/features/chip/utils/resolveChipColors.d.ts +1 -1
- package/dist/features/chip/utils/resolveChipColors.d.ts.map +1 -1
- package/dist/features/chip/utils/resolveChipColors.js.map +1 -1
- package/dist/features/collection-editor/adapters/inbound/CollectionEditor.d.ts.map +1 -1
- package/dist/features/collection-editor/adapters/inbound/CollectionEditor.js +1 -1
- package/dist/features/collection-editor/adapters/inbound/CollectionEditor.js.map +1 -1
- package/dist/features/collection-editor/meta.js.map +1 -1
- package/dist/features/content-rail/adapters/inbound/ContentRail.d.ts.map +1 -1
- package/dist/features/content-rail/adapters/inbound/ContentRail.js +2 -2
- package/dist/features/content-rail/adapters/inbound/ContentRail.js.map +1 -1
- package/dist/features/content-rail/adapters/inbound/ContentRailFlow.d.ts.map +1 -1
- package/dist/features/content-rail/adapters/inbound/ContentRailFlow.js +1 -1
- package/dist/features/content-rail/adapters/inbound/ContentRailFlow.js.map +1 -1
- package/dist/features/content-rail/contentRailMeta.js +1 -1
- package/dist/features/content-rail/contentRailMeta.js.map +1 -1
- package/dist/features/data-table/adapters/inbound/DataTable.d.ts.map +1 -1
- package/dist/features/data-table/adapters/inbound/DataTable.js +1 -1
- package/dist/features/data-table/adapters/inbound/DataTable.js.map +1 -1
- package/dist/features/data-table/dataTableMeta.js.map +1 -1
- package/dist/features/date-picker/adapters/inbound/DatePicker.native.d.ts.map +1 -1
- package/dist/features/date-picker/adapters/inbound/DatePicker.native.js +1 -1
- package/dist/features/date-picker/adapters/inbound/DatePicker.native.js.map +1 -1
- package/dist/features/date-picker/adapters/inbound/DatePicker.web.d.ts.map +1 -1
- package/dist/features/date-picker/adapters/inbound/DatePicker.web.js +1 -1
- package/dist/features/date-picker/adapters/inbound/DatePicker.web.js.map +1 -1
- package/dist/features/date-picker/datePickerMeta.js.map +1 -1
- package/dist/features/dialog/adapters/inbound/Dialog.d.ts.map +1 -1
- package/dist/features/dialog/adapters/inbound/Dialog.js +2 -2
- package/dist/features/dialog/adapters/inbound/Dialog.js.map +1 -1
- package/dist/features/dialog/dialogMeta.js +1 -1
- package/dist/features/dialog/dialogMeta.js.map +1 -1
- package/dist/features/dialog/utils/resolveDialogWidth.d.ts +3 -0
- package/dist/features/dialog/utils/resolveDialogWidth.d.ts.map +1 -0
- package/dist/features/dialog/utils/resolveDialogWidth.js +12 -0
- package/dist/features/dialog/utils/resolveDialogWidth.js.map +1 -0
- package/dist/features/empty-state/adapters/inbound/EmptyState.d.ts.map +1 -1
- package/dist/features/empty-state/adapters/inbound/EmptyState.js +1 -1
- package/dist/features/empty-state/adapters/inbound/EmptyState.js.map +1 -1
- package/dist/features/empty-state/emptyStateMeta.js.map +1 -1
- package/dist/features/form/adapters/inbound/Form.d.ts.map +1 -1
- package/dist/features/form/adapters/inbound/Form.js +1 -1
- package/dist/features/form/adapters/inbound/Form.js.map +1 -1
- package/dist/features/form/adapters/inbound/FormActions.d.ts.map +1 -1
- package/dist/features/form/adapters/inbound/FormActions.js +1 -1
- package/dist/features/form/adapters/inbound/FormActions.js.map +1 -1
- package/dist/features/form/adapters/inbound/FormError.d.ts.map +1 -1
- package/dist/features/form/adapters/inbound/FormError.js +2 -2
- package/dist/features/form/adapters/inbound/FormError.js.map +1 -1
- package/dist/features/form/checkbox/adapters/inbound/Checkbox.d.ts.map +1 -1
- package/dist/features/form/checkbox/adapters/inbound/Checkbox.js +1 -1
- package/dist/features/form/checkbox/adapters/inbound/Checkbox.js.map +1 -1
- package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.d.ts.map +1 -1
- package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.js +1 -1
- package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.js.map +1 -1
- package/dist/features/form/checkbox/checkboxMeta.js.map +1 -1
- package/dist/features/form/field/adapters/inbound/Field.d.ts.map +1 -1
- package/dist/features/form/field/adapters/inbound/Field.js +1 -1
- package/dist/features/form/field/adapters/inbound/Field.js.map +1 -1
- package/dist/features/form/field/meta.js.map +1 -1
- package/dist/features/form/formActionsMeta.js.map +1 -1
- package/dist/features/form/formErrorMeta.js.map +1 -1
- package/dist/features/form/formMeta.js.map +1 -1
- package/dist/features/form/radio/adapters/inbound/Radio.d.ts.map +1 -1
- package/dist/features/form/radio/adapters/inbound/Radio.js +1 -1
- package/dist/features/form/radio/adapters/inbound/Radio.js.map +1 -1
- package/dist/features/form/radio/adapters/inbound/RadioGroup.d.ts.map +1 -1
- package/dist/features/form/radio/adapters/inbound/RadioGroup.js +2 -2
- package/dist/features/form/radio/adapters/inbound/RadioGroup.js.map +1 -1
- package/dist/{constants/keyboard.d.ts → features/form/radio/constants.d.ts} +1 -1
- package/dist/features/form/radio/constants.d.ts.map +1 -0
- package/dist/{constants/keyboard.js → features/form/radio/constants.js} +1 -1
- package/dist/features/form/radio/constants.js.map +1 -0
- package/dist/features/form/radio/radioMeta.js +1 -1
- package/dist/features/form/radio/radioMeta.js.map +1 -1
- package/dist/features/form/radio/themeRecipeMeta.js +1 -1
- package/dist/features/form/radio/themeRecipeMeta.js.map +1 -1
- package/dist/features/form/radio/utils/handleRadioOptionKeyDown.js +1 -1
- package/dist/features/form/radio/utils/handleRadioOptionKeyDown.js.map +1 -1
- package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.d.ts +2 -2
- package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.d.ts.map +1 -1
- package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.js.map +1 -1
- package/dist/features/form/search-input/adapters/inbound/SearchInput.d.ts.map +1 -1
- package/dist/features/form/search-input/adapters/inbound/SearchInput.js +1 -1
- package/dist/features/form/search-input/adapters/inbound/SearchInput.js.map +1 -1
- package/dist/features/form/search-input/searchInputMeta.js.map +1 -1
- package/dist/features/form/select/adapters/inbound/Select.native.d.ts.map +1 -1
- package/dist/features/form/select/adapters/inbound/Select.native.js +1 -1
- package/dist/features/form/select/adapters/inbound/Select.native.js.map +1 -1
- package/dist/features/form/select/adapters/inbound/Select.web.d.ts.map +1 -1
- package/dist/features/form/select/adapters/inbound/Select.web.js +1 -1
- package/dist/features/form/select/adapters/inbound/Select.web.js.map +1 -1
- package/dist/features/form/select/selectMeta.js.map +1 -1
- package/dist/features/form/switch/adapters/inbound/Switch.d.ts.map +1 -1
- package/dist/features/form/switch/adapters/inbound/Switch.js +1 -1
- package/dist/features/form/switch/adapters/inbound/Switch.js.map +1 -1
- package/dist/features/form/switch/switchMeta.js.map +1 -1
- package/dist/features/form/text-input/adapters/inbound/TextInput.d.ts.map +1 -1
- package/dist/features/form/text-input/adapters/inbound/TextInput.js +3 -3
- package/dist/features/form/text-input/adapters/inbound/TextInput.js.map +1 -1
- package/dist/features/form/text-input/textInputMeta.js.map +1 -1
- package/dist/features/gradient/adapters/inbound/Gradient.d.ts.map +1 -1
- package/dist/features/gradient/adapters/inbound/Gradient.js +1 -1
- package/dist/features/gradient/adapters/inbound/Gradient.js.map +1 -1
- package/dist/features/gradient/gradientMeta.js +1 -1
- package/dist/features/gradient/gradientMeta.js.map +1 -1
- package/dist/features/hero/adapters/inbound/Hero.d.ts.map +1 -1
- package/dist/features/hero/adapters/inbound/Hero.js +1 -1
- package/dist/features/hero/adapters/inbound/Hero.js.map +1 -1
- package/dist/features/hero/heroMeta.js.map +1 -1
- package/dist/features/icon/adapters/inbound/Icon.d.ts.map +1 -1
- package/dist/features/icon/adapters/inbound/Icon.js +1 -1
- package/dist/features/icon/adapters/inbound/Icon.js.map +1 -1
- package/dist/features/icon/iconMeta.js.map +1 -1
- package/dist/features/icon/utils/resolveIconSize.d.ts +3 -0
- package/dist/features/icon/utils/resolveIconSize.d.ts.map +1 -0
- package/dist/features/icon/utils/resolveIconSize.js +12 -0
- package/dist/features/icon/utils/resolveIconSize.js.map +1 -0
- package/dist/features/image/adapters/inbound/Image.d.ts.map +1 -1
- package/dist/features/image/adapters/inbound/Image.js +2 -2
- package/dist/features/image/adapters/inbound/Image.js.map +1 -1
- package/dist/features/image/imageMeta.js.map +1 -1
- package/dist/features/keyboard-avoiding-view/adapters/inbound/KeyboardAvoidingView.d.ts.map +1 -1
- package/dist/features/keyboard-avoiding-view/adapters/inbound/KeyboardAvoidingView.js +1 -1
- package/dist/features/keyboard-avoiding-view/adapters/inbound/KeyboardAvoidingView.js.map +1 -1
- package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.js +1 -1
- package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.js.map +1 -1
- package/dist/features/layout/adapters/inbound/AppShell.d.ts.map +1 -1
- package/dist/features/layout/adapters/inbound/AppShell.js +1 -1
- package/dist/features/layout/adapters/inbound/AppShell.js.map +1 -1
- package/dist/features/layout/adapters/inbound/Divider.d.ts.map +1 -1
- package/dist/features/layout/adapters/inbound/Divider.js +1 -1
- package/dist/features/layout/adapters/inbound/Divider.js.map +1 -1
- package/dist/features/layout/adapters/inbound/Grid.d.ts.map +1 -1
- package/dist/features/layout/adapters/inbound/Grid.js +1 -1
- package/dist/features/layout/adapters/inbound/Grid.js.map +1 -1
- package/dist/features/layout/adapters/inbound/Screen.d.ts.map +1 -1
- package/dist/features/layout/adapters/inbound/Screen.js +2 -2
- package/dist/features/layout/adapters/inbound/Screen.js.map +1 -1
- package/dist/features/layout/adapters/inbound/ScrollView.d.ts.map +1 -1
- package/dist/features/layout/adapters/inbound/ScrollView.js +1 -1
- package/dist/features/layout/adapters/inbound/ScrollView.js.map +1 -1
- package/dist/features/layout/adapters/inbound/View.d.ts.map +1 -1
- package/dist/features/layout/adapters/inbound/View.js +1 -1
- package/dist/features/layout/adapters/inbound/View.js.map +1 -1
- package/dist/features/layout/appShellMeta.js.map +1 -1
- package/dist/features/layout/constants.js.map +1 -1
- package/dist/features/layout/dividerMeta.js.map +1 -1
- package/dist/features/layout/gridMeta.js +1 -1
- package/dist/features/layout/gridMeta.js.map +1 -1
- package/dist/features/layout/screenMeta.js +1 -1
- package/dist/features/layout/screenMeta.js.map +1 -1
- package/dist/features/layout/scrollViewMeta.js +1 -1
- package/dist/features/layout/scrollViewMeta.js.map +1 -1
- package/dist/features/layout/utils/resolvePageMaxWidth.d.ts +3 -0
- package/dist/features/layout/utils/resolvePageMaxWidth.d.ts.map +1 -0
- package/dist/features/layout/utils/resolvePageMaxWidth.js +12 -0
- package/dist/features/layout/utils/resolvePageMaxWidth.js.map +1 -0
- package/dist/features/layout/viewMeta.js +1 -1
- package/dist/features/layout/viewMeta.js.map +1 -1
- package/dist/features/list/adapters/inbound/FlatList.d.ts.map +1 -1
- package/dist/features/list/adapters/inbound/FlatList.js +1 -1
- package/dist/features/list/adapters/inbound/FlatList.js.map +1 -1
- package/dist/features/list/adapters/inbound/List.d.ts.map +1 -1
- package/dist/features/list/adapters/inbound/List.js +1 -1
- package/dist/features/list/adapters/inbound/List.js.map +1 -1
- package/dist/features/list/adapters/inbound/ListItem.d.ts.map +1 -1
- package/dist/features/list/adapters/inbound/ListItem.js +2 -2
- package/dist/features/list/adapters/inbound/ListItem.js.map +1 -1
- package/dist/features/list/adapters/inbound/ListSection.d.ts.map +1 -1
- package/dist/features/list/adapters/inbound/ListSection.js +1 -1
- package/dist/features/list/adapters/inbound/ListSection.js.map +1 -1
- package/dist/features/list/adapters/inbound/SectionList.d.ts.map +1 -1
- package/dist/features/list/adapters/inbound/SectionList.js +1 -1
- package/dist/features/list/adapters/inbound/SectionList.js.map +1 -1
- package/dist/features/list/flatListMeta.js +1 -1
- package/dist/features/list/flatListMeta.js.map +1 -1
- package/dist/features/list/meta.js.map +1 -1
- package/dist/features/list/sectionListMeta.js.map +1 -1
- package/dist/features/missing-element/adapters/inbound/MissingElement.d.ts.map +1 -1
- package/dist/features/missing-element/adapters/inbound/MissingElement.js +2 -2
- package/dist/features/missing-element/adapters/inbound/MissingElement.js.map +1 -1
- package/dist/features/missing-element/missingElementMeta.js.map +1 -1
- package/dist/features/pagination/adapters/inbound/Pagination.d.ts.map +1 -1
- package/dist/features/pagination/adapters/inbound/Pagination.js +1 -1
- package/dist/features/pagination/adapters/inbound/Pagination.js.map +1 -1
- package/dist/features/pagination/paginationMeta.js.map +1 -1
- package/dist/features/palette-item/adapters/inbound/PaletteItem.d.ts.map +1 -1
- package/dist/features/palette-item/adapters/inbound/PaletteItem.js +2 -2
- package/dist/features/palette-item/adapters/inbound/PaletteItem.js.map +1 -1
- package/dist/features/palette-item/paletteItemMeta.js.map +1 -1
- package/dist/{corePlugin.d.ts → features/plugin/ZORA_CORE_PLUGIN.d.ts} +2 -2
- package/dist/features/plugin/ZORA_CORE_PLUGIN.d.ts.map +1 -0
- package/dist/{corePlugin.js → features/plugin/ZORA_CORE_PLUGIN.js} +3 -3
- package/dist/features/plugin/ZORA_CORE_PLUGIN.js.map +1 -0
- package/dist/features/plugin/ZORA_CORE_PLUGIN_METADATA.d.ts +3 -0
- package/dist/features/plugin/ZORA_CORE_PLUGIN_METADATA.d.ts.map +1 -0
- package/dist/{corePluginMetadata.js → features/plugin/ZORA_CORE_PLUGIN_METADATA.js} +3 -3
- package/dist/features/plugin/ZORA_CORE_PLUGIN_METADATA.js.map +1 -0
- package/dist/features/plugin/application/use-cases/composeZoraPluginMetadata.d.ts +4 -0
- package/dist/features/plugin/application/use-cases/composeZoraPluginMetadata.d.ts.map +1 -0
- package/dist/{pluginComposition.js → features/plugin/application/use-cases/composeZoraPluginMetadata.js} +4 -51
- package/dist/features/plugin/application/use-cases/composeZoraPluginMetadata.js.map +1 -0
- package/dist/features/plugin/application/use-cases/composeZoraPlugins.d.ts +4 -0
- package/dist/features/plugin/application/use-cases/composeZoraPlugins.d.ts.map +1 -0
- package/dist/features/plugin/application/use-cases/composeZoraPlugins.js +41 -0
- package/dist/features/plugin/application/use-cases/composeZoraPlugins.js.map +1 -0
- package/dist/features/plugin/domain/ZoraPluginCompositionError.d.ts +14 -0
- package/dist/features/plugin/domain/ZoraPluginCompositionError.d.ts.map +1 -0
- package/dist/features/plugin/domain/ZoraPluginCompositionError.js +14 -0
- package/dist/features/plugin/domain/ZoraPluginCompositionError.js.map +1 -0
- package/dist/features/plugin/public.d.ts +4 -0
- package/dist/features/plugin/public.d.ts.map +1 -0
- package/dist/features/plugin/public.js +4 -0
- package/dist/features/plugin/public.js.map +1 -0
- package/dist/features/plugin/runtime.d.ts +3 -0
- package/dist/features/plugin/runtime.d.ts.map +1 -0
- package/dist/features/plugin/runtime.js +3 -0
- package/dist/features/plugin/runtime.js.map +1 -0
- package/dist/features/popover-menu/adapters/inbound/PopoverMenu.d.ts.map +1 -1
- package/dist/features/popover-menu/adapters/inbound/PopoverMenu.js +3 -3
- package/dist/features/popover-menu/adapters/inbound/PopoverMenu.js.map +1 -1
- package/dist/features/popover-menu/popoverMenuMeta.js.map +1 -1
- package/dist/features/progress/adapters/inbound/Progress.d.ts.map +1 -1
- package/dist/features/progress/adapters/inbound/Progress.js +2 -2
- package/dist/features/progress/adapters/inbound/Progress.js.map +1 -1
- package/dist/features/progress/adapters/inbound/ProgressRing.d.ts.map +1 -1
- package/dist/features/progress/adapters/inbound/ProgressRing.js +2 -2
- package/dist/features/progress/adapters/inbound/ProgressRing.js.map +1 -1
- package/dist/features/progress/progressMeta.js +1 -1
- package/dist/features/progress/progressMeta.js.map +1 -1
- package/dist/features/rating/adapters/inbound/Rating.d.ts.map +1 -1
- package/dist/features/rating/adapters/inbound/Rating.js +3 -3
- package/dist/features/rating/adapters/inbound/Rating.js.map +1 -1
- package/dist/features/rating/ratingMeta.js.map +1 -1
- package/dist/features/reader/adapters/inbound/ReaderSurface.d.ts.map +1 -1
- package/dist/features/reader/adapters/inbound/ReaderSurface.js +2 -2
- package/dist/features/reader/adapters/inbound/ReaderSurface.js.map +1 -1
- package/dist/features/reader/meta.d.ts +3 -3
- package/dist/features/reader/meta.js +2 -2
- package/dist/features/reader/meta.js.map +1 -1
- package/dist/features/registry/ZORA_COMPONENT_REGISTRY.d.ts +3 -0
- package/dist/features/registry/ZORA_COMPONENT_REGISTRY.d.ts.map +1 -0
- package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js +151 -0
- package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js.map +1 -0
- package/dist/features/registry/public.d.ts +2 -0
- package/dist/features/registry/public.d.ts.map +1 -0
- package/dist/features/registry/public.js +2 -0
- package/dist/features/registry/public.js.map +1 -0
- package/dist/features/scanner/adapters/inbound/BarcodeScannerView.d.ts.map +1 -1
- package/dist/features/scanner/adapters/inbound/BarcodeScannerView.js +2 -2
- package/dist/features/scanner/adapters/inbound/BarcodeScannerView.js.map +1 -1
- package/dist/features/scanner/adapters/inbound/CameraPermissionView.d.ts.map +1 -1
- package/dist/features/scanner/adapters/inbound/CameraPermissionView.js +1 -1
- package/dist/features/scanner/adapters/inbound/CameraPermissionView.js.map +1 -1
- package/dist/features/scanner/adapters/inbound/ScanOverlay.d.ts.map +1 -1
- package/dist/features/scanner/adapters/inbound/ScanOverlay.js +2 -2
- package/dist/features/scanner/adapters/inbound/ScanOverlay.js.map +1 -1
- package/dist/features/scanner/meta.d.ts +9 -9
- package/dist/features/scanner/meta.js +4 -4
- package/dist/features/scanner/meta.js.map +1 -1
- package/dist/features/section/adapters/inbound/ScreenSection.d.ts.map +1 -1
- package/dist/features/section/adapters/inbound/ScreenSection.js +1 -1
- package/dist/features/section/adapters/inbound/ScreenSection.js.map +1 -1
- package/dist/features/section/adapters/inbound/SectionHeader.d.ts.map +1 -1
- package/dist/features/section/adapters/inbound/SectionHeader.js +1 -1
- package/dist/features/section/adapters/inbound/SectionHeader.js.map +1 -1
- package/dist/features/section/screenSectionMeta.js +1 -1
- package/dist/features/section/screenSectionMeta.js.map +1 -1
- package/dist/features/section/sectionHeaderMeta.js.map +1 -1
- package/dist/features/selection/meta.js.map +1 -1
- package/dist/features/skeleton/adapters/inbound/Skeleton.d.ts.map +1 -1
- package/dist/features/skeleton/adapters/inbound/Skeleton.js +2 -2
- package/dist/features/skeleton/adapters/inbound/Skeleton.js.map +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonCard.d.ts.map +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonCard.js +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonCard.js.map +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonList.d.ts.map +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonList.js +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonList.js.map +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonText.d.ts.map +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonText.js +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonText.js.map +1 -1
- package/dist/features/skeleton/skeletonMeta.js.map +1 -1
- package/dist/features/surface/adapters/inbound/Surface.d.ts.map +1 -1
- package/dist/features/surface/adapters/inbound/Surface.js +1 -1
- package/dist/features/surface/adapters/inbound/Surface.js.map +1 -1
- package/dist/features/surface/surfaceMeta.js +1 -1
- package/dist/features/surface/surfaceMeta.js.map +1 -1
- package/dist/features/tabs/adapters/inbound/Tab.d.ts.map +1 -1
- package/dist/features/tabs/adapters/inbound/Tab.js +1 -1
- package/dist/features/tabs/adapters/inbound/Tab.js.map +1 -1
- package/dist/features/tabs/adapters/inbound/TabList.d.ts.map +1 -1
- package/dist/features/tabs/adapters/inbound/TabList.js +1 -1
- package/dist/features/tabs/adapters/inbound/TabList.js.map +1 -1
- package/dist/features/tabs/adapters/inbound/TabPanel.d.ts.map +1 -1
- package/dist/features/tabs/adapters/inbound/TabPanel.js +1 -1
- package/dist/features/tabs/adapters/inbound/TabPanel.js.map +1 -1
- package/dist/features/tabs/adapters/inbound/Tabs.d.ts.map +1 -1
- package/dist/features/tabs/adapters/inbound/Tabs.js +1 -1
- package/dist/features/tabs/adapters/inbound/Tabs.js.map +1 -1
- package/dist/features/tabs/tabListMeta.js.map +1 -1
- package/dist/features/tabs/tabMeta.js.map +1 -1
- package/dist/features/tabs/tabPanelMeta.js +1 -1
- package/dist/features/tabs/tabPanelMeta.js.map +1 -1
- package/dist/features/tabs/tabsMeta.js.map +1 -1
- package/dist/features/theme/ThemeModeToggle.meta.d.ts.map +1 -0
- package/dist/features/theme/ThemeModeToggle.meta.js.map +1 -0
- package/dist/{theme → features/theme/adapters/inbound}/ThemeModeToggle.d.ts +1 -1
- package/dist/features/theme/adapters/inbound/ThemeModeToggle.d.ts.map +1 -0
- package/dist/{theme → features/theme/adapters/inbound}/ThemeModeToggle.js +3 -3
- package/dist/features/theme/adapters/inbound/ThemeModeToggle.js.map +1 -0
- package/dist/{theme → features/theme/adapters/inbound}/ZoraProvider.d.ts +2 -2
- package/dist/features/theme/adapters/inbound/ZoraProvider.d.ts.map +1 -0
- package/dist/{theme → features/theme/adapters/inbound}/ZoraProvider.js +4 -4
- package/dist/features/theme/adapters/inbound/ZoraProvider.js.map +1 -0
- package/dist/{theme → features/theme/adapters/inbound}/ZoraThemeScope.d.ts +2 -2
- package/dist/features/theme/adapters/inbound/ZoraThemeScope.d.ts.map +1 -0
- package/dist/features/theme/adapters/inbound/ZoraThemeScope.js +24 -0
- package/dist/features/theme/adapters/inbound/ZoraThemeScope.js.map +1 -0
- package/dist/{theme → features/theme/adapters/inbound}/withZoraThemeScope.d.ts +1 -1
- package/dist/features/theme/adapters/inbound/withZoraThemeScope.d.ts.map +1 -0
- package/dist/features/theme/adapters/inbound/withZoraThemeScope.js.map +1 -0
- package/dist/{theme → features/theme/application/use-cases}/compileZoraTheme.d.ts +1 -1
- package/dist/features/theme/application/use-cases/compileZoraTheme.d.ts.map +1 -0
- package/dist/{theme → features/theme/application/use-cases}/compileZoraTheme.js +2 -1
- package/dist/features/theme/application/use-cases/compileZoraTheme.js.map +1 -0
- package/dist/{theme → features/theme/application/use-cases}/createZoraThemeConfig.d.ts +1 -1
- package/dist/features/theme/application/use-cases/createZoraThemeConfig.d.ts.map +1 -0
- package/dist/{theme → features/theme/application/use-cases}/createZoraThemeConfig.js +1 -1
- package/dist/features/theme/application/use-cases/createZoraThemeConfig.js.map +1 -0
- package/dist/{internal → features/theme}/colorModel.d.ts +1 -5
- package/dist/features/theme/colorModel.d.ts.map +1 -0
- package/dist/features/theme/colorModel.js +6 -0
- package/dist/features/theme/colorModel.js.map +1 -0
- package/dist/features/theme/composition/ZoraRuntimeCapabilities.d.ts.map +1 -0
- package/dist/features/theme/composition/ZoraRuntimeCapabilities.js.map +1 -0
- package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.native.d.ts +1 -1
- package/dist/features/theme/composition/ZoraRuntimeCapabilities.native.d.ts.map +1 -0
- package/dist/features/theme/composition/ZoraRuntimeCapabilities.native.js.map +1 -0
- package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.web.d.ts +1 -1
- package/dist/features/theme/composition/ZoraRuntimeCapabilities.web.d.ts.map +1 -0
- package/dist/features/theme/composition/ZoraRuntimeCapabilities.web.js.map +1 -0
- package/dist/{theme → features/theme/composition}/ZoraThemeRuntimeContext.d.ts +1 -1
- package/dist/features/theme/composition/ZoraThemeRuntimeContext.d.ts.map +1 -0
- package/dist/{theme → features/theme/composition}/ZoraThemeRuntimeContext.js +1 -1
- package/dist/features/theme/composition/ZoraThemeRuntimeContext.js.map +1 -0
- package/dist/features/theme/composition/useZoraTheme.d.ts +2 -0
- package/dist/features/theme/composition/useZoraTheme.d.ts.map +1 -0
- package/dist/features/theme/composition/useZoraTheme.js.map +1 -0
- package/dist/features/theme/composition/useZoraThemeRecipe.d.ts.map +1 -0
- package/dist/{theme → features/theme/composition}/useZoraThemeRecipe.js +1 -1
- package/dist/features/theme/composition/useZoraThemeRecipe.js.map +1 -0
- package/dist/{theme → features/theme}/public.d.ts +3 -3
- package/dist/features/theme/public.d.ts.map +1 -0
- package/dist/features/theme/public.js +4 -0
- package/dist/features/theme/public.js.map +1 -0
- package/dist/features/theme/runtime.d.ts +10 -0
- package/dist/features/theme/runtime.d.ts.map +1 -0
- package/dist/features/theme/runtime.js +6 -0
- package/dist/features/theme/runtime.js.map +1 -0
- package/dist/{theme → features/theme/utils}/resolveThemeModeToggleState.d.ts +1 -1
- package/dist/features/theme/utils/resolveThemeModeToggleState.d.ts.map +1 -0
- package/dist/features/theme/utils/resolveThemeModeToggleState.js.map +1 -0
- package/dist/{theme → features/theme/utils}/resolveZoraScopedThemeId.d.ts +1 -1
- package/dist/features/theme/utils/resolveZoraScopedThemeId.d.ts.map +1 -0
- package/dist/features/theme/utils/resolveZoraScopedThemeId.js.map +1 -0
- package/dist/features/theme/utils/resolveZoraThemeRecipe.d.ts.map +1 -0
- package/dist/{theme → features/theme/utils}/resolveZoraThemeRecipe.js +1 -1
- package/dist/features/theme/utils/resolveZoraThemeRecipe.js.map +1 -0
- package/dist/features/theme/zoraDefaultTheme.d.ts +3 -0
- package/dist/features/theme/zoraDefaultTheme.d.ts.map +1 -0
- package/dist/features/theme/zoraDefaultTheme.js.map +1 -0
- package/dist/features/time-picker/adapters/inbound/TimePicker.native.d.ts.map +1 -1
- package/dist/features/time-picker/adapters/inbound/TimePicker.native.js +1 -1
- package/dist/features/time-picker/adapters/inbound/TimePicker.native.js.map +1 -1
- package/dist/features/time-picker/adapters/inbound/TimePicker.web.d.ts.map +1 -1
- package/dist/features/time-picker/adapters/inbound/TimePicker.web.js +1 -1
- package/dist/features/time-picker/adapters/inbound/TimePicker.web.js.map +1 -1
- package/dist/features/time-picker/timePickerMeta.js.map +1 -1
- package/dist/features/timeline/adapters/inbound/Timeline.d.ts.map +1 -1
- package/dist/features/timeline/adapters/inbound/Timeline.js +3 -3
- package/dist/features/timeline/adapters/inbound/Timeline.js.map +1 -1
- package/dist/features/timeline/meta.js.map +1 -1
- package/dist/features/toast/adapters/inbound/Toast.d.ts.map +1 -1
- package/dist/features/toast/adapters/inbound/Toast.js +1 -1
- package/dist/features/toast/adapters/inbound/Toast.js.map +1 -1
- package/dist/features/toast/toastMeta.js.map +1 -1
- package/dist/features/toast/toastProviderMeta.js.map +1 -1
- package/dist/features/toolbar/adapters/inbound/Toolbar.d.ts.map +1 -1
- package/dist/features/toolbar/adapters/inbound/Toolbar.js +1 -1
- package/dist/features/toolbar/adapters/inbound/Toolbar.js.map +1 -1
- package/dist/features/toolbar/toolbarMeta.js.map +1 -1
- package/dist/features/tree-view/adapters/inbound/TreeItem.d.ts +1 -1
- package/dist/features/tree-view/adapters/inbound/TreeItem.d.ts.map +1 -1
- package/dist/features/tree-view/adapters/inbound/TreeItem.js +1 -1
- package/dist/features/tree-view/adapters/inbound/TreeItem.js.map +1 -1
- package/dist/features/tree-view/adapters/inbound/TreeView.d.ts.map +1 -1
- package/dist/features/tree-view/adapters/inbound/TreeView.js +1 -1
- package/dist/features/tree-view/adapters/inbound/TreeView.js.map +1 -1
- package/dist/features/tree-view/meta.js.map +1 -1
- package/dist/features/typography/adapters/inbound/Heading.d.ts.map +1 -1
- package/dist/features/typography/adapters/inbound/Heading.js +3 -3
- package/dist/features/typography/adapters/inbound/Heading.js.map +1 -1
- package/dist/features/typography/adapters/inbound/Text.d.ts.map +1 -1
- package/dist/features/typography/adapters/inbound/Text.js +3 -3
- package/dist/features/typography/adapters/inbound/Text.js.map +1 -1
- package/dist/features/typography/headingMeta.js +2 -2
- package/dist/features/typography/headingMeta.js.map +1 -1
- package/dist/features/typography/textMeta.js +2 -2
- package/dist/features/typography/textMeta.js.map +1 -1
- package/dist/features/typography/utils/headingThemeRecipeMeta.js +1 -1
- package/dist/features/typography/utils/headingThemeRecipeMeta.js.map +1 -1
- package/dist/features/typography/utils/resolveHeadingThemeRecipe.d.ts +1 -1
- package/dist/features/typography/utils/resolveTextThemeRecipe.d.ts +1 -1
- package/dist/features/typography/utils/textThemeRecipeMeta.js +1 -1
- package/dist/features/typography/utils/textThemeRecipeMeta.js.map +1 -1
- package/dist/features/uploader/adapters/inbound/Uploader.d.ts.map +1 -1
- package/dist/features/uploader/adapters/inbound/Uploader.js +1 -1
- package/dist/features/uploader/adapters/inbound/Uploader.js.map +1 -1
- package/dist/features/uploader/uploaderMeta.js.map +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/types/accordion.d.ts +1 -1
- package/dist/types/accordion.d.ts.map +1 -1
- package/dist/types/accordion.js.map +1 -1
- package/dist/types/activity-indicator.d.ts +1 -1
- package/dist/types/activity-indicator.d.ts.map +1 -1
- package/dist/types/activity-indicator.js.map +1 -1
- package/dist/types/app-bar.d.ts +1 -1
- package/dist/types/app-bar.d.ts.map +1 -1
- package/dist/types/app-bar.js.map +1 -1
- package/dist/types/auth.d.ts +1 -1
- package/dist/types/auth.d.ts.map +1 -1
- package/dist/types/auth.js.map +1 -1
- package/dist/{metadata/types.d.ts → types/authoring.d.ts} +1 -1
- package/dist/types/authoring.d.ts.map +1 -0
- package/dist/types/authoring.js +2 -0
- package/dist/types/authoring.js.map +1 -0
- package/dist/types/avatar-group.d.ts +2 -2
- package/dist/types/avatar-group.d.ts.map +1 -1
- package/dist/types/avatar-group.js.map +1 -1
- package/dist/types/avatar.d.ts +2 -2
- package/dist/types/avatar.d.ts.map +1 -1
- package/dist/types/avatar.js.map +1 -1
- package/dist/types/badge.d.ts +4 -2
- package/dist/types/badge.d.ts.map +1 -1
- package/dist/types/badge.js.map +1 -1
- package/dist/{theme/ZoraBaseProps.d.ts → types/base.d.ts} +2 -2
- package/dist/types/base.d.ts.map +1 -0
- package/dist/types/base.js +2 -0
- package/dist/types/base.js.map +1 -0
- package/dist/types/breadcrumbs.d.ts +1 -1
- package/dist/types/breadcrumbs.d.ts.map +1 -1
- package/dist/types/breadcrumbs.js.map +1 -1
- package/dist/types/button-group.d.ts +1 -1
- package/dist/types/button-group.d.ts.map +1 -1
- package/dist/types/button-group.js.map +1 -1
- package/dist/types/button.d.ts +4 -2
- package/dist/types/button.d.ts.map +1 -1
- package/dist/types/button.js.map +1 -1
- package/dist/types/card.d.ts +2 -2
- package/dist/types/card.d.ts.map +1 -1
- package/dist/types/card.js.map +1 -1
- package/dist/types/chat.d.ts +2 -2
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/chat.js.map +1 -1
- package/dist/types/checkbox.d.ts +1 -1
- package/dist/types/checkbox.d.ts.map +1 -1
- package/dist/types/checkbox.js.map +1 -1
- package/dist/types/chip-group.d.ts +3 -2
- package/dist/types/chip-group.d.ts.map +1 -1
- package/dist/types/chip-group.js.map +1 -1
- package/dist/types/chip.d.ts +3 -2
- package/dist/types/chip.d.ts.map +1 -1
- package/dist/types/chip.js.map +1 -1
- package/dist/types/collection-editor.d.ts +1 -1
- package/dist/types/collection-editor.d.ts.map +1 -1
- package/dist/types/collection-editor.js.map +1 -1
- package/dist/types/content-rail.d.ts +1 -1
- package/dist/types/content-rail.d.ts.map +1 -1
- package/dist/types/content-rail.js.map +1 -1
- package/dist/types/control.d.ts +3 -0
- package/dist/types/control.d.ts.map +1 -0
- package/dist/types/control.js +2 -0
- package/dist/types/control.js.map +1 -0
- package/dist/types/data-table.d.ts +1 -1
- package/dist/types/data-table.d.ts.map +1 -1
- package/dist/types/data-table.js.map +1 -1
- package/dist/types/date-picker.d.ts +1 -1
- package/dist/types/date-picker.d.ts.map +1 -1
- package/dist/types/date-picker.js.map +1 -1
- package/dist/types/dialog.d.ts +2 -2
- package/dist/types/dialog.d.ts.map +1 -1
- package/dist/types/dialog.js.map +1 -1
- package/dist/types/empty-state.d.ts +3 -2
- package/dist/types/empty-state.d.ts.map +1 -1
- package/dist/types/empty-state.js.map +1 -1
- package/dist/types/form.d.ts +1 -1
- package/dist/types/form.d.ts.map +1 -1
- package/dist/types/form.js.map +1 -1
- package/dist/types/gradient.d.ts +1 -1
- package/dist/types/gradient.d.ts.map +1 -1
- package/dist/types/gradient.js.map +1 -1
- package/dist/types/heading.d.ts +2 -2
- package/dist/types/heading.d.ts.map +1 -1
- package/dist/types/heading.js.map +1 -1
- package/dist/types/hero.d.ts +3 -2
- package/dist/types/hero.d.ts.map +1 -1
- package/dist/types/hero.js.map +1 -1
- package/dist/types/icon-button.d.ts +4 -2
- package/dist/types/icon-button.d.ts.map +1 -1
- package/dist/types/icon-button.js.map +1 -1
- package/dist/types/icon.d.ts +1 -1
- package/dist/types/icon.d.ts.map +1 -1
- package/dist/types/icon.js.map +1 -1
- package/dist/types/image.d.ts +1 -1
- package/dist/types/image.d.ts.map +1 -1
- package/dist/types/image.js.map +1 -1
- package/dist/types/keyboard-avoiding-view.d.ts +1 -1
- package/dist/types/keyboard-avoiding-view.d.ts.map +1 -1
- package/dist/types/keyboard-avoiding-view.js.map +1 -1
- package/dist/types/layout.d.ts +2 -2
- package/dist/types/layout.d.ts.map +1 -1
- package/dist/types/layout.js.map +1 -1
- package/dist/types/list.d.ts +1 -1
- package/dist/types/list.d.ts.map +1 -1
- package/dist/types/list.js.map +1 -1
- package/dist/types/manifest-bottom-sheet.d.ts +1 -1
- package/dist/types/manifest-bottom-sheet.d.ts.map +1 -1
- package/dist/types/manifest-bottom-sheet.js.map +1 -1
- package/dist/types/manifest-list.d.ts +1 -1
- package/dist/types/manifest-list.d.ts.map +1 -1
- package/dist/types/manifest-list.js.map +1 -1
- package/dist/types/media-card.d.ts +2 -2
- package/dist/types/media-card.d.ts.map +1 -1
- package/dist/types/media-card.js.map +1 -1
- package/dist/types/metric-card.d.ts +3 -2
- package/dist/types/metric-card.d.ts.map +1 -1
- package/dist/types/metric-card.js.map +1 -1
- package/dist/types/missing-element.d.ts +1 -1
- package/dist/types/missing-element.d.ts.map +1 -1
- package/dist/types/missing-element.js.map +1 -1
- package/dist/types/pagination.d.ts +1 -1
- package/dist/types/pagination.d.ts.map +1 -1
- package/dist/types/pagination.js.map +1 -1
- package/dist/types/palette-item.d.ts +1 -1
- package/dist/types/palette-item.d.ts.map +1 -1
- package/dist/types/palette-item.js.map +1 -1
- package/dist/{pluginComposition.d.ts → types/plugin.d.ts} +2 -18
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/plugin.js +2 -0
- package/dist/types/plugin.js.map +1 -0
- package/dist/types/popover-menu.d.ts +1 -1
- package/dist/types/popover-menu.d.ts.map +1 -1
- package/dist/types/popover-menu.js.map +1 -1
- package/dist/types/post-card.d.ts +3 -2
- package/dist/types/post-card.d.ts.map +1 -1
- package/dist/types/post-card.js.map +1 -1
- package/dist/types/product-card.d.ts +1 -1
- package/dist/types/product-card.d.ts.map +1 -1
- package/dist/types/product-card.js.map +1 -1
- package/dist/types/progress.d.ts +3 -2
- package/dist/types/progress.d.ts.map +1 -1
- package/dist/types/progress.js.map +1 -1
- package/dist/types/provider.d.ts +1 -1
- package/dist/types/provider.d.ts.map +1 -1
- package/dist/types/provider.js.map +1 -1
- package/dist/types/radio.d.ts +1 -1
- package/dist/types/radio.d.ts.map +1 -1
- package/dist/types/radio.js.map +1 -1
- package/dist/types/rating.d.ts +3 -2
- package/dist/types/rating.d.ts.map +1 -1
- package/dist/types/rating.js.map +1 -1
- package/dist/types/reader.d.ts +1 -1
- package/dist/types/reader.d.ts.map +1 -1
- package/dist/types/reader.js.map +1 -1
- package/dist/{registry.d.ts → types/registry.d.ts} +0 -1
- package/dist/types/registry.d.ts.map +1 -0
- package/dist/types/registry.js +2 -0
- package/dist/types/registry.js.map +1 -0
- package/dist/types/scanner.d.ts +1 -1
- package/dist/types/scanner.d.ts.map +1 -1
- package/dist/types/scanner.js.map +1 -1
- package/dist/types/search-input.d.ts +2 -2
- package/dist/types/search-input.d.ts.map +1 -1
- package/dist/types/search-input.js.map +1 -1
- package/dist/types/section.d.ts +1 -1
- package/dist/types/section.d.ts.map +1 -1
- package/dist/types/section.js.map +1 -1
- package/dist/types/select.d.ts +1 -1
- package/dist/types/select.d.ts.map +1 -1
- package/dist/types/select.js.map +1 -1
- package/dist/types/skeleton.d.ts +1 -1
- package/dist/types/skeleton.d.ts.map +1 -1
- package/dist/types/skeleton.js.map +1 -1
- package/dist/types/surface.d.ts +1 -1
- package/dist/types/surface.d.ts.map +1 -1
- package/dist/types/surface.js.map +1 -1
- package/dist/types/switch.d.ts +1 -1
- package/dist/types/switch.d.ts.map +1 -1
- package/dist/types/switch.js.map +1 -1
- package/dist/types/tabs.d.ts +1 -1
- package/dist/types/tabs.d.ts.map +1 -1
- package/dist/types/tabs.js.map +1 -1
- package/dist/types/text-input.d.ts +2 -2
- package/dist/types/text-input.d.ts.map +1 -1
- package/dist/types/text-input.js.map +1 -1
- package/dist/types/text.d.ts +2 -2
- package/dist/types/text.d.ts.map +1 -1
- package/dist/types/text.js.map +1 -1
- package/dist/{theme/ThemeModeToggleProps.d.ts → types/theme-mode-toggle.d.ts} +1 -1
- package/dist/types/theme-mode-toggle.d.ts.map +1 -0
- package/dist/types/theme-mode-toggle.js +2 -0
- package/dist/types/theme-mode-toggle.js.map +1 -0
- package/dist/{metadata/themeRecipeTypes.d.ts → types/theme-recipe.d.ts} +2 -3
- package/dist/types/theme-recipe.d.ts.map +1 -0
- package/dist/types/theme-recipe.js +2 -0
- package/dist/types/theme-recipe.js.map +1 -0
- package/dist/{theme/types.d.ts → types/theme.d.ts} +6 -1
- package/dist/types/theme.d.ts.map +1 -0
- package/dist/types/theme.js +2 -0
- package/dist/types/theme.js.map +1 -0
- package/dist/types/time-picker.d.ts +1 -1
- package/dist/types/time-picker.d.ts.map +1 -1
- package/dist/types/time-picker.js.map +1 -1
- package/dist/types/timeline.d.ts +2 -2
- package/dist/types/timeline.d.ts.map +1 -1
- package/dist/types/timeline.js.map +1 -1
- package/dist/types/toast.d.ts +1 -1
- package/dist/types/toast.d.ts.map +1 -1
- package/dist/types/toast.js.map +1 -1
- package/dist/types/toolbar.d.ts +1 -1
- package/dist/types/toolbar.d.ts.map +1 -1
- package/dist/types/toolbar.js.map +1 -1
- package/dist/types/tree-view.d.ts +1 -1
- package/dist/types/tree-view.d.ts.map +1 -1
- package/dist/types/tree-view.js.map +1 -1
- package/dist/types/upload.d.ts +1 -1
- package/dist/types/upload.d.ts.map +1 -1
- package/dist/types/upload.js.map +1 -1
- package/package.json +20 -19
- package/src/audit.test.ts +1 -1
- package/src/features/accordion/accordionItemMeta.ts +2 -2
- package/src/features/accordion/accordionMeta.ts +1 -1
- package/src/features/accordion/adapters/inbound/Accordion.tsx +1 -1
- package/src/features/accordion/adapters/inbound/AccordionItem.tsx +1 -1
- package/src/features/activity-indicator/activityIndicatorMeta.ts +1 -1
- package/src/features/activity-indicator/adapters/inbound/ActivityIndicator.tsx +2 -2
- package/src/features/app-bar/adapters/inbound/AppBar.tsx +2 -2
- package/src/features/app-bar/appBarMeta.ts +1 -1
- package/src/features/auth/adapters/inbound/AuthForm.tsx +1 -1
- package/src/features/auth/adapters/inbound/AuthFormField.tsx +1 -1
- package/src/features/auth/adapters/inbound/ForgotPasswordForm.tsx +1 -1
- package/src/features/auth/adapters/inbound/OAuthProviderButton.tsx +1 -1
- package/src/features/auth/adapters/inbound/OAuthProviderList.tsx +1 -1
- package/src/features/auth/adapters/inbound/OtpForm.tsx +1 -1
- package/src/features/auth/adapters/inbound/SignInForm.tsx +1 -1
- package/src/features/auth/adapters/inbound/SignUpForm.tsx +1 -1
- package/src/features/auth/forgotPasswordFormMeta.ts +1 -1
- package/src/features/auth/oauthProviderButtonMeta.ts +2 -2
- package/src/features/auth/oauthProviderListMeta.ts +2 -2
- package/src/features/auth/otpFormMeta.ts +1 -1
- package/src/features/auth/public.test.ts +1 -1
- package/src/features/auth/signInFormMeta.ts +1 -1
- package/src/features/auth/signUpFormMeta.ts +1 -1
- package/src/{metadata → features/authoring}/bindableComponentMeta.ts +2 -2
- package/src/{metadata → features/authoring}/componentMeta.test.ts +4 -4
- package/src/features/authoring/componentMeta.ts +190 -0
- package/src/{constants.ts → features/authoring/constants.ts} +10 -0
- package/src/{featureManifest.test.ts → features/authoring/featureManifest.test.ts} +2 -2
- package/src/{metadata → features/authoring}/index.ts +24 -23
- package/src/features/authoring/themeRecipeMeta.ts +14 -0
- package/src/{utils → features/authoring/utils}/createManifestBindings.ts +1 -1
- package/src/{utils → features/authoring/utils}/finalizeFeatureMetadata.ts +1 -1
- package/src/features/avatar/adapters/inbound/Avatar.tsx +3 -3
- package/src/features/avatar/adapters/inbound/AvatarGroup.tsx +2 -2
- package/src/features/avatar/avatarGroupMeta.ts +1 -1
- package/src/features/avatar/avatarMeta.ts +1 -1
- package/src/features/badge/adapters/inbound/Badge.tsx +2 -2
- package/src/features/badge/badgeMeta.ts +1 -1
- package/src/features/badge/utils/resolveBadgeRecipe.test.ts +9 -0
- package/src/features/badge/utils/resolveBadgeRecipe.ts +17 -0
- package/src/features/bottom-sheet/adapters/inbound/BottomSheet.tsx +3 -3
- package/src/features/bottom-sheet/bottomSheetMeta.ts +2 -2
- package/src/features/bottom-sheet/public.test.ts +3 -3
- package/src/features/breadcrumbs/adapters/inbound/Breadcrumbs.tsx +3 -3
- package/src/features/breadcrumbs/breadcrumbsMeta.ts +1 -1
- package/src/features/button/adapters/inbound/Button.tsx +2 -2
- package/src/features/button/adapters/inbound/ButtonGroup.tsx +1 -1
- package/src/features/button/adapters/inbound/IconButton.tsx +2 -2
- package/src/features/button/buttonGroupMeta.ts +1 -1
- package/src/features/button/buttonMeta.ts +3 -3
- package/src/features/button/iconButtonMeta.ts +1 -1
- package/src/features/button/utils/resolveButtonRecipe.test.ts +9 -0
- package/src/features/button/utils/resolveButtonRecipe.ts +17 -0
- package/src/features/button/utils/resolveButtonThemeRecipe.ts +4 -6
- package/src/features/button/utils/themeRecipeMeta.ts +2 -2
- package/src/features/card/adapters/inbound/Card.tsx +3 -3
- package/src/features/card/adapters/inbound/MediaCard.tsx +2 -2
- package/src/features/card/adapters/inbound/MetricCard.tsx +4 -3
- package/src/features/card/adapters/inbound/PostCard.test.tsx +1 -1
- package/src/features/card/adapters/inbound/PostCard.tsx +2 -2
- package/src/features/card/adapters/inbound/ProductCard.test.tsx +1 -1
- package/src/features/card/adapters/inbound/ProductCard.tsx +2 -2
- package/src/features/card/cardMeta.ts +3 -3
- package/src/features/card/mediaCardMeta.ts +2 -2
- package/src/features/card/metricCardMeta.ts +1 -1
- package/src/features/card/postCardMeta.ts +2 -2
- package/src/features/card/productCardMeta.ts +1 -1
- package/src/features/card/utils/resolveCardThemeRecipe.ts +1 -1
- package/src/features/card/utils/resolveCardVariant.test.ts +11 -0
- package/src/features/card/utils/resolveCardVariant.ts +15 -0
- package/src/features/card/utils/themeRecipeMeta.ts +1 -1
- package/src/features/chat/adapters/inbound/ChatListItem.test.tsx +1 -1
- package/src/features/chat/adapters/inbound/ChatListItem.tsx +2 -2
- package/src/features/chat/adapters/inbound/MessageBubble.tsx +2 -2
- package/src/features/chat/chatListItemMeta.ts +1 -1
- package/src/features/chat/messageBubbleMeta.ts +2 -2
- package/src/features/chip/adapters/inbound/Chip.tsx +3 -3
- package/src/features/chip/adapters/inbound/ChipGroup.tsx +1 -1
- package/src/features/chip/chipGroupMeta.ts +1 -1
- package/src/features/chip/chipMeta.ts +1 -1
- package/src/features/chip/utils/resolveChipColors.ts +1 -1
- package/src/features/collection-editor/adapters/inbound/CollectionEditor.tsx +1 -1
- package/src/features/collection-editor/meta.ts +1 -1
- package/src/features/content-rail/adapters/inbound/ContentRail.tsx +2 -2
- package/src/features/content-rail/adapters/inbound/ContentRailFlow.tsx +1 -1
- package/src/features/content-rail/contentRailMeta.ts +2 -2
- package/src/features/data-table/adapters/inbound/DataTable.tsx +1 -1
- package/src/features/data-table/dataTableMeta.ts +1 -1
- package/src/features/date-picker/adapters/inbound/DatePicker.native.tsx +1 -1
- package/src/features/date-picker/adapters/inbound/DatePicker.web.tsx +1 -1
- package/src/features/date-picker/datePickerMeta.ts +1 -1
- package/src/features/date-picker/public.test.ts +1 -1
- package/src/features/dialog/adapters/inbound/Dialog.tsx +2 -2
- package/src/features/dialog/dialogMeta.ts +2 -2
- package/src/features/dialog/utils/resolveDialogWidth.test.ts +10 -0
- package/src/features/dialog/utils/resolveDialogWidth.ts +13 -0
- package/src/features/empty-state/adapters/inbound/EmptyState.tsx +1 -1
- package/src/features/empty-state/emptyStateMeta.ts +1 -1
- package/src/features/form/adapters/inbound/Form.tsx +1 -1
- package/src/features/form/adapters/inbound/FormActions.tsx +1 -1
- package/src/features/form/adapters/inbound/FormError.tsx +2 -2
- package/src/features/form/checkbox/adapters/inbound/Checkbox.tsx +1 -1
- package/src/features/form/checkbox/adapters/inbound/CheckboxGroup.tsx +1 -1
- package/src/features/form/checkbox/checkboxMeta.ts +1 -1
- package/src/features/form/field/adapters/inbound/Field.tsx +1 -1
- package/src/features/form/field/meta.ts +1 -1
- package/src/features/form/formActionsMeta.ts +1 -1
- package/src/features/form/formErrorMeta.ts +1 -1
- package/src/features/form/formMeta.ts +1 -1
- package/src/features/form/radio/adapters/inbound/Radio.tsx +1 -1
- package/src/features/form/radio/adapters/inbound/RadioGroup.tsx +2 -2
- package/src/features/form/radio/radioMeta.ts +2 -2
- package/src/features/form/radio/themeRecipeMeta.ts +2 -2
- package/src/features/form/radio/utils/handleRadioOptionKeyDown.test.ts +1 -1
- package/src/features/form/radio/utils/handleRadioOptionKeyDown.ts +1 -1
- package/src/features/form/radio/utils/resolveRadioGroupThemeRecipe.ts +1 -1
- package/src/features/form/search-input/adapters/inbound/SearchInput.tsx +1 -1
- package/src/features/form/search-input/searchInputMeta.ts +1 -1
- package/src/features/form/select/adapters/inbound/Select.native.tsx +1 -1
- package/src/features/form/select/adapters/inbound/Select.web.tsx +1 -1
- package/src/features/form/select/selectMeta.ts +1 -1
- package/src/features/form/switch/adapters/inbound/Switch.tsx +1 -1
- package/src/features/form/switch/switchMeta.ts +1 -1
- package/src/features/form/text-input/adapters/inbound/TextInput.tsx +3 -3
- package/src/features/form/text-input/textInputMeta.ts +1 -1
- package/src/features/gradient/adapters/inbound/Gradient.tsx +1 -1
- package/src/features/gradient/gradientMeta.ts +2 -2
- package/src/features/gradient/public.test.ts +1 -1
- package/src/features/hero/adapters/inbound/Hero.tsx +1 -1
- package/src/features/hero/heroMeta.ts +1 -1
- package/src/features/icon/adapters/inbound/Icon.tsx +1 -1
- package/src/features/icon/iconMeta.ts +1 -1
- package/src/features/icon/utils/meta.test.ts +1 -1
- package/src/features/icon/utils/resolveIconSize.test.ts +11 -0
- package/src/features/icon/utils/resolveIconSize.ts +13 -0
- package/src/features/image/adapters/inbound/Image.tsx +2 -2
- package/src/features/image/imageMeta.ts +1 -1
- package/src/features/keyboard-avoiding-view/adapters/inbound/KeyboardAvoidingView.tsx +1 -1
- package/src/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.ts +2 -2
- package/src/features/layout/adapters/inbound/AppShell.tsx +1 -1
- package/src/features/layout/adapters/inbound/Divider.tsx +1 -1
- package/src/features/layout/adapters/inbound/Grid.tsx +1 -1
- package/src/features/layout/adapters/inbound/Screen.tsx +2 -2
- package/src/features/layout/adapters/inbound/ScrollView.tsx +1 -1
- package/src/features/layout/adapters/inbound/View.tsx +1 -1
- package/src/features/layout/appShellMeta.ts +1 -1
- package/src/features/layout/constants.ts +1 -1
- package/src/features/layout/dividerMeta.ts +1 -1
- package/src/features/layout/gridMeta.ts +2 -2
- package/src/features/layout/screenMeta.ts +2 -2
- package/src/features/layout/scrollViewMeta.ts +2 -2
- package/src/features/layout/utils/resolvePageMaxWidth.test.ts +10 -0
- package/src/features/layout/utils/resolvePageMaxWidth.ts +13 -0
- package/src/features/layout/viewMeta.ts +2 -2
- package/src/features/list/adapters/inbound/FlatList.tsx +1 -1
- package/src/features/list/adapters/inbound/List.tsx +1 -1
- package/src/features/list/adapters/inbound/ListItem.tsx +2 -2
- package/src/features/list/adapters/inbound/ListSection.tsx +1 -1
- package/src/features/list/adapters/inbound/SectionList.tsx +1 -1
- package/src/features/list/flatListMeta.ts +2 -2
- package/src/features/list/meta.ts +1 -1
- package/src/features/list/sectionListMeta.ts +1 -1
- package/src/features/missing-element/MissingElement.test.ts +1 -1
- package/src/features/missing-element/adapters/inbound/MissingElement.tsx +2 -2
- package/src/features/missing-element/missingElementMeta.ts +1 -1
- package/src/features/pagination/adapters/inbound/Pagination.tsx +1 -1
- package/src/features/pagination/paginationMeta.ts +1 -1
- package/src/features/palette-item/adapters/inbound/PaletteItem.tsx +2 -2
- package/src/features/palette-item/paletteItemMeta.ts +1 -1
- package/src/{corePlugin.ts → features/plugin/ZORA_CORE_PLUGIN.ts} +3 -3
- package/src/{corePluginMetadata.ts → features/plugin/ZORA_CORE_PLUGIN_METADATA.ts} +4 -4
- package/src/{pluginComposition.ts → features/plugin/application/use-cases/composeZoraPluginMetadata.ts} +10 -122
- package/src/features/plugin/application/use-cases/composeZoraPlugins.ts +76 -0
- package/src/features/plugin/domain/ZoraPluginCompositionError.ts +21 -0
- package/src/{pluginComposition.test.ts → features/plugin/pluginComposition.test.ts} +4 -6
- package/src/features/plugin/public.ts +3 -0
- package/src/features/plugin/runtime.ts +2 -0
- package/src/features/popover-menu/adapters/inbound/PopoverMenu.tsx +3 -3
- package/src/features/popover-menu/popoverMenuMeta.ts +1 -1
- package/src/features/progress/adapters/inbound/Progress.tsx +2 -2
- package/src/features/progress/adapters/inbound/ProgressRing.tsx +2 -2
- package/src/features/progress/progressMeta.ts +2 -2
- package/src/features/rating/adapters/inbound/Rating.tsx +4 -4
- package/src/features/rating/ratingMeta.ts +1 -1
- package/src/features/reader/adapters/inbound/ReaderSurface.tsx +2 -2
- package/src/features/reader/meta.ts +3 -3
- package/src/features/registry/ZORA_COMPONENT_REGISTRY.ts +186 -0
- package/src/features/registry/public.ts +1 -0
- package/src/{registry.test.ts → features/registry/registry.test.ts} +6 -3
- package/src/features/scanner/adapters/inbound/BarcodeScannerView.tsx +2 -2
- package/src/features/scanner/adapters/inbound/CameraPermissionView.tsx +1 -1
- package/src/features/scanner/adapters/inbound/ScanOverlay.tsx +2 -2
- package/src/features/scanner/meta.ts +5 -5
- package/src/features/section/adapters/inbound/ScreenSection.tsx +1 -1
- package/src/features/section/adapters/inbound/SectionHeader.tsx +1 -1
- package/src/features/section/screenSectionMeta.ts +2 -2
- package/src/features/section/sectionHeaderMeta.ts +1 -1
- package/src/features/selection/meta.ts +1 -1
- package/src/features/skeleton/adapters/inbound/Skeleton.tsx +2 -2
- package/src/features/skeleton/adapters/inbound/SkeletonCard.tsx +1 -1
- package/src/features/skeleton/adapters/inbound/SkeletonList.tsx +1 -1
- package/src/features/skeleton/adapters/inbound/SkeletonText.tsx +1 -1
- package/src/features/skeleton/public.test.ts +1 -1
- package/src/features/skeleton/skeletonMeta.ts +1 -1
- package/src/features/surface/adapters/inbound/Surface.tsx +1 -1
- package/src/features/surface/surfaceMeta.ts +2 -2
- package/src/features/tabs/adapters/inbound/Tab.tsx +1 -1
- package/src/features/tabs/adapters/inbound/TabList.tsx +1 -1
- package/src/features/tabs/adapters/inbound/TabPanel.tsx +1 -1
- package/src/features/tabs/adapters/inbound/Tabs.tsx +1 -1
- package/src/features/tabs/tabListMeta.ts +1 -1
- package/src/features/tabs/tabMeta.ts +1 -1
- package/src/features/tabs/tabPanelMeta.ts +2 -2
- package/src/features/tabs/tabsMeta.ts +1 -1
- package/src/{theme → features/theme}/ThemeModeToggle.meta.ts +1 -1
- package/src/{theme → features/theme/adapters/inbound}/ThemeModeToggle.tsx +4 -4
- package/src/{theme → features/theme/adapters/inbound}/ZoraProvider.tsx +6 -6
- package/src/features/theme/adapters/inbound/ZoraThemeScope.tsx +41 -0
- package/src/{theme → features/theme/adapters/inbound}/withZoraThemeScope.tsx +1 -1
- package/src/{theme → features/theme/application/use-cases}/compileZoraTheme.test.ts +5 -1
- package/src/{theme → features/theme/application/use-cases}/compileZoraTheme.ts +3 -2
- package/src/{theme → features/theme/application/use-cases}/createZoraThemeConfig.test.ts +1 -1
- package/src/{theme → features/theme/application/use-cases}/createZoraThemeConfig.ts +2 -2
- package/src/features/theme/colorModel.ts +13 -0
- package/src/{theme → features/theme/composition}/ZoraRuntimeCapabilities.native.tsx +1 -1
- package/src/{theme → features/theme/composition}/ZoraRuntimeCapabilities.web.tsx +1 -1
- package/src/{theme → features/theme/composition}/ZoraThemeRuntimeContext.tsx +2 -2
- package/src/{theme → features/theme/composition}/useZoraThemeRecipe.ts +1 -1
- package/src/{theme → features/theme}/public.ts +3 -3
- package/src/features/theme/runtime.ts +9 -0
- package/src/{theme → features/theme}/themeConfigScope.test.ts +16 -7
- package/src/{theme → features/theme}/themeScopeStructure.test.ts +16 -9
- package/src/{theme → features/theme/utils}/resolveThemeModeToggleState.ts +1 -1
- package/src/{theme → features/theme/utils}/resolveZoraScopedThemeId.ts +1 -1
- package/src/{theme → features/theme/utils}/resolveZoraThemeRecipe.ts +2 -2
- package/src/{theme → features/theme}/zoraDefaultTheme.ts +1 -1
- package/src/features/time-picker/adapters/inbound/TimePicker.native.tsx +1 -1
- package/src/features/time-picker/adapters/inbound/TimePicker.web.tsx +1 -1
- package/src/features/time-picker/public.test.ts +1 -1
- package/src/features/time-picker/timePickerMeta.ts +1 -1
- package/src/features/timeline/adapters/inbound/Timeline.tsx +4 -4
- package/src/features/timeline/meta.ts +1 -1
- package/src/features/toast/adapters/inbound/Toast.tsx +1 -1
- package/src/features/toast/public.test.ts +4 -4
- package/src/features/toast/toastMeta.ts +1 -1
- package/src/features/toast/toastProviderMeta.ts +1 -1
- package/src/features/toolbar/adapters/inbound/Toolbar.tsx +1 -1
- package/src/features/toolbar/toolbarMeta.ts +1 -1
- package/src/features/tree-view/adapters/inbound/TreeItem.tsx +2 -2
- package/src/features/tree-view/adapters/inbound/TreeView.tsx +1 -1
- package/src/features/tree-view/meta.ts +1 -1
- package/src/features/typography/adapters/inbound/Heading.tsx +3 -3
- package/src/features/typography/adapters/inbound/Text.tsx +3 -3
- package/src/features/typography/headingMeta.ts +3 -3
- package/src/features/typography/textMeta.ts +3 -3
- package/src/features/typography/utils/headingThemeRecipeMeta.ts +2 -2
- package/src/features/typography/utils/textThemeRecipeMeta.ts +2 -2
- package/src/features/uploader/adapters/inbound/Uploader.tsx +1 -1
- package/src/features/uploader/public.test.ts +2 -2
- package/src/features/uploader/uploaderMeta.ts +1 -1
- package/src/index.ts +56 -56
- package/src/interactionPolicy.test.ts +3 -3
- package/src/structureOwnership.test.ts +71 -0
- package/src/types/accordion.ts +1 -1
- package/src/types/activity-indicator.ts +1 -1
- package/src/types/app-bar.ts +1 -1
- package/src/types/auth.ts +1 -1
- package/src/types/avatar-group.ts +2 -2
- package/src/types/avatar.ts +2 -2
- package/src/types/badge.ts +5 -2
- package/src/{theme/ZoraBaseProps.ts → types/base.ts} +1 -1
- package/src/types/breadcrumbs.ts +1 -1
- package/src/types/button-group.ts +1 -1
- package/src/types/button.ts +5 -2
- package/src/types/card.ts +3 -2
- package/src/types/chat.ts +2 -2
- package/src/types/checkbox.ts +1 -1
- package/src/types/chip-group.ts +3 -2
- package/src/types/chip.ts +3 -2
- package/src/types/collection-editor.ts +1 -1
- package/src/types/content-rail.ts +1 -1
- package/src/types/control.ts +3 -0
- package/src/types/data-table.ts +1 -1
- package/src/types/date-picker.ts +1 -1
- package/src/types/dialog.ts +2 -2
- package/src/types/empty-state.ts +3 -2
- package/src/types/form.ts +1 -1
- package/src/types/gradient.ts +1 -1
- package/src/types/heading.ts +2 -2
- package/src/types/hero.ts +3 -2
- package/src/types/icon-button.ts +4 -2
- package/src/types/icon.ts +1 -1
- package/src/types/image.ts +1 -1
- package/src/types/keyboard-avoiding-view.ts +1 -1
- package/src/types/layout.ts +3 -2
- package/src/types/list.ts +1 -1
- package/src/types/manifest-bottom-sheet.ts +1 -1
- package/src/types/manifest-list.ts +1 -1
- package/src/types/media-card.ts +2 -2
- package/src/types/metric-card.ts +3 -2
- package/src/types/missing-element.ts +1 -1
- package/src/types/pagination.ts +1 -1
- package/src/types/palette-item.ts +1 -1
- package/src/types/plugin.ts +43 -0
- package/src/types/popover-menu.ts +1 -1
- package/src/types/post-card.ts +3 -2
- package/src/types/product-card.ts +1 -1
- package/src/types/progress.ts +3 -2
- package/src/types/provider.ts +1 -1
- package/src/types/radio.ts +1 -1
- package/src/types/rating.ts +3 -2
- package/src/types/reader.ts +1 -1
- package/src/types/registry.ts +3 -0
- package/src/types/scanner.ts +1 -1
- package/src/types/search-input.ts +2 -2
- package/src/types/section.ts +1 -1
- package/src/types/select.ts +1 -1
- package/src/types/skeleton.ts +1 -1
- package/src/types/surface.ts +1 -1
- package/src/types/switch.ts +1 -1
- package/src/types/tabs.ts +1 -1
- package/src/types/text-input.ts +2 -2
- package/src/types/text.ts +2 -2
- package/src/{metadata/themeRecipeTypes.ts → types/theme-recipe.ts} +1 -9
- package/src/{theme/types.ts → types/theme.ts} +11 -0
- package/src/types/time-picker.ts +1 -1
- package/src/types/timeline.ts +2 -2
- package/src/types/toast.ts +1 -1
- package/src/types/toolbar.ts +1 -1
- package/src/types/tree-view.ts +1 -1
- package/src/types/upload.ts +1 -1
- package/dist/constants/keyboard.d.ts.map +0 -1
- package/dist/constants/keyboard.js.map +0 -1
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js.map +0 -1
- package/dist/corePlugin.d.ts.map +0 -1
- package/dist/corePlugin.js.map +0 -1
- package/dist/corePluginMetadata.d.ts +0 -3
- package/dist/corePluginMetadata.d.ts.map +0 -1
- package/dist/corePluginMetadata.js.map +0 -1
- package/dist/internal/colorModel.d.ts.map +0 -1
- package/dist/internal/colorModel.js +0 -25
- package/dist/internal/colorModel.js.map +0 -1
- package/dist/internal/recipes.d.ts +0 -23
- package/dist/internal/recipes.d.ts.map +0 -1
- package/dist/internal/recipes.js +0 -59
- package/dist/internal/recipes.js.map +0 -1
- package/dist/metadata/allowedChildren.d.ts.map +0 -1
- package/dist/metadata/allowedChildren.js.map +0 -1
- package/dist/metadata/bindableComponentMeta.js.map +0 -1
- package/dist/metadata/componentMeta.d.ts +0 -3
- package/dist/metadata/componentMeta.d.ts.map +0 -1
- package/dist/metadata/componentMeta.js +0 -184
- package/dist/metadata/componentMeta.js.map +0 -1
- package/dist/metadata/index.d.ts.map +0 -1
- package/dist/metadata/index.js +0 -7
- package/dist/metadata/index.js.map +0 -1
- package/dist/metadata/themeRecipeMeta.d.ts +0 -3
- package/dist/metadata/themeRecipeMeta.d.ts.map +0 -1
- package/dist/metadata/themeRecipeMeta.js +0 -13
- package/dist/metadata/themeRecipeMeta.js.map +0 -1
- package/dist/metadata/themeRecipeTypes.d.ts.map +0 -1
- package/dist/metadata/themeRecipeTypes.js +0 -8
- package/dist/metadata/themeRecipeTypes.js.map +0 -1
- package/dist/metadata/types.d.ts.map +0 -1
- package/dist/metadata/types.js +0 -2
- package/dist/metadata/types.js.map +0 -1
- package/dist/pluginComposition.d.ts.map +0 -1
- package/dist/pluginComposition.js.map +0 -1
- package/dist/registry.d.ts.map +0 -1
- package/dist/registry.js +0 -161
- package/dist/registry.js.map +0 -1
- package/dist/theme/ThemeModeToggle.d.ts.map +0 -1
- package/dist/theme/ThemeModeToggle.js.map +0 -1
- package/dist/theme/ThemeModeToggle.meta.d.ts.map +0 -1
- package/dist/theme/ThemeModeToggle.meta.js.map +0 -1
- package/dist/theme/ThemeModeToggleProps.d.ts.map +0 -1
- package/dist/theme/ThemeModeToggleProps.js +0 -2
- package/dist/theme/ThemeModeToggleProps.js.map +0 -1
- package/dist/theme/ZoraBaseProps.d.ts.map +0 -1
- package/dist/theme/ZoraBaseProps.js +0 -2
- package/dist/theme/ZoraBaseProps.js.map +0 -1
- package/dist/theme/ZoraProvider.d.ts.map +0 -1
- package/dist/theme/ZoraProvider.js.map +0 -1
- package/dist/theme/ZoraRuntimeCapabilities.d.ts.map +0 -1
- package/dist/theme/ZoraRuntimeCapabilities.js.map +0 -1
- package/dist/theme/ZoraRuntimeCapabilities.native.d.ts.map +0 -1
- package/dist/theme/ZoraRuntimeCapabilities.native.js.map +0 -1
- package/dist/theme/ZoraRuntimeCapabilities.web.d.ts.map +0 -1
- package/dist/theme/ZoraRuntimeCapabilities.web.js.map +0 -1
- package/dist/theme/ZoraThemeRuntimeContext.d.ts.map +0 -1
- package/dist/theme/ZoraThemeRuntimeContext.js.map +0 -1
- package/dist/theme/ZoraThemeScope.d.ts.map +0 -1
- package/dist/theme/ZoraThemeScope.js +0 -37
- package/dist/theme/ZoraThemeScope.js.map +0 -1
- package/dist/theme/compileZoraTheme.d.ts.map +0 -1
- package/dist/theme/compileZoraTheme.js.map +0 -1
- package/dist/theme/createZoraThemeConfig.d.ts.map +0 -1
- package/dist/theme/createZoraThemeConfig.js.map +0 -1
- package/dist/theme/index.d.ts +0 -11
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/index.js +0 -7
- package/dist/theme/index.js.map +0 -1
- package/dist/theme/public.d.ts.map +0 -1
- package/dist/theme/public.js +0 -4
- package/dist/theme/public.js.map +0 -1
- package/dist/theme/resolveThemeModeToggleState.d.ts.map +0 -1
- package/dist/theme/resolveThemeModeToggleState.js.map +0 -1
- package/dist/theme/resolveZoraScopedThemeId.d.ts.map +0 -1
- package/dist/theme/resolveZoraScopedThemeId.js.map +0 -1
- package/dist/theme/resolveZoraThemeRecipe.d.ts.map +0 -1
- package/dist/theme/resolveZoraThemeRecipe.js.map +0 -1
- package/dist/theme/types.d.ts.map +0 -1
- package/dist/theme/types.js +0 -2
- package/dist/theme/types.js.map +0 -1
- package/dist/theme/useZoraTheme.d.ts +0 -8
- package/dist/theme/useZoraTheme.d.ts.map +0 -1
- package/dist/theme/useZoraTheme.js.map +0 -1
- package/dist/theme/useZoraThemeRecipe.d.ts.map +0 -1
- package/dist/theme/useZoraThemeRecipe.js.map +0 -1
- package/dist/theme/withZoraThemeScope.d.ts.map +0 -1
- package/dist/theme/withZoraThemeScope.js.map +0 -1
- package/dist/theme/zoraDefaultTheme.d.ts +0 -3
- package/dist/theme/zoraDefaultTheme.d.ts.map +0 -1
- package/dist/theme/zoraDefaultTheme.js.map +0 -1
- package/dist/utils/createManifestBindings.d.ts.map +0 -1
- package/dist/utils/createManifestBindings.js.map +0 -1
- package/dist/utils/finalizeFeatureMetadata.d.ts.map +0 -1
- package/dist/utils/finalizeFeatureMetadata.js.map +0 -1
- package/src/internal/colorModel.ts +0 -39
- package/src/internal/recipes.test.ts +0 -46
- package/src/internal/recipes.ts +0 -92
- package/src/metadata/componentMeta.ts +0 -194
- package/src/metadata/themeRecipeMeta.ts +0 -14
- package/src/registry.ts +0 -197
- package/src/theme/ZoraThemeScope.tsx +0 -56
- package/src/theme/index.ts +0 -10
- /package/dist/{metadata → features/authoring}/allowedChildren.d.ts +0 -0
- /package/dist/{metadata → features/authoring}/allowedChildren.js +0 -0
- /package/dist/{utils → features/authoring/utils}/createManifestBindings.js +0 -0
- /package/dist/{utils → features/authoring/utils}/finalizeFeatureMetadata.js +0 -0
- /package/dist/{theme → features/theme}/ThemeModeToggle.meta.d.ts +0 -0
- /package/dist/{theme → features/theme}/ThemeModeToggle.meta.js +0 -0
- /package/dist/{theme → features/theme/adapters/inbound}/withZoraThemeScope.js +0 -0
- /package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.d.ts +0 -0
- /package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.js +0 -0
- /package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.native.js +0 -0
- /package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.web.js +0 -0
- /package/dist/{theme → features/theme/composition}/useZoraTheme.js +0 -0
- /package/dist/{theme → features/theme/composition}/useZoraThemeRecipe.d.ts +0 -0
- /package/dist/{theme → features/theme/utils}/resolveThemeModeToggleState.js +0 -0
- /package/dist/{theme → features/theme/utils}/resolveZoraScopedThemeId.js +0 -0
- /package/dist/{theme → features/theme/utils}/resolveZoraThemeRecipe.d.ts +0 -0
- /package/dist/{theme → features/theme}/zoraDefaultTheme.js +0 -0
- /package/src/{metadata → features/authoring}/allowedChildren.ts +0 -0
- /package/src/{metadata → features/authoring}/authoringMeta.test.ts +0 -0
- /package/src/{metadata → features/authoring}/bindableComponentMeta.test.ts +0 -0
- /package/src/{metadata → features/authoring}/radioGroupReachability.test.ts +0 -0
- /package/src/{metadata → features/authoring}/themeRecipeMeta.test.ts +0 -0
- /package/src/{constants/keyboard.ts → features/form/radio/constants.ts} +0 -0
- /package/src/{theme → features/theme/composition}/ZoraRuntimeCapabilities.tsx +0 -0
- /package/src/{theme → features/theme/composition}/useZoraTheme.ts +0 -0
- /package/src/{theme → features/theme/utils}/resolveThemeModeToggleState.test.ts +0 -0
- /package/src/{theme → features/theme/utils}/resolveZoraScopedThemeId.test.ts +0 -0
- /package/src/{theme → features/theme/utils}/resolveZoraThemeRecipe.test.ts +0 -0
- /package/src/{metadata/types.ts → types/authoring.ts} +0 -0
- /package/src/{theme/ThemeModeToggleProps.ts → types/theme-mode-toggle.ts} +0 -0
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export class ZoraPluginCompositionError extends Error {
|
|
3
|
-
code;
|
|
4
|
-
packageName;
|
|
5
|
-
componentName;
|
|
6
|
-
constructor(args) {
|
|
7
|
-
super(args.message);
|
|
8
|
-
this.name = 'ZoraPluginCompositionError';
|
|
9
|
-
this.code = args.code;
|
|
10
|
-
this.packageName = args.packageName;
|
|
11
|
-
this.componentName = args.componentName;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
1
|
+
import { ZoraPluginCompositionError } from '../../domain/ZoraPluginCompositionError';
|
|
14
2
|
/*** Compose a selected ZORA metadata set for authoring tools that must not load React Native runtime modules. */
|
|
15
3
|
export function composeZoraPluginMetadata(plugins) {
|
|
16
4
|
const descriptors = sortPlugins(plugins);
|
|
@@ -40,29 +28,16 @@ export function composeZoraPluginMetadata(plugins) {
|
|
|
40
28
|
return {
|
|
41
29
|
componentMeta: Object.fromEntries(componentMeta),
|
|
42
30
|
bindableComponentMeta: Object.fromEntries(componentMeta),
|
|
43
|
-
packageManifests: descriptors.map(({ packageName, displayName, componentMeta }) => ({
|
|
31
|
+
packageManifests: descriptors.map(({ packageName, displayName, componentMeta: meta }) => ({
|
|
44
32
|
packageName,
|
|
45
33
|
...(displayName === undefined ? {} : { displayName }),
|
|
46
|
-
components:
|
|
34
|
+
components: meta,
|
|
47
35
|
})),
|
|
48
36
|
interactionPolicySupportedComponents: Object.fromEntries([...interactionPolicySupportedComponents]
|
|
49
37
|
.sort()
|
|
50
38
|
.map((componentName) => [componentName, true])),
|
|
51
39
|
};
|
|
52
40
|
}
|
|
53
|
-
/*** Compose a selected ZORA core/plugin descriptor set into one validated authoring/runtime catalog. */
|
|
54
|
-
export function composeZoraPlugins(plugins) {
|
|
55
|
-
const descriptors = sortPlugins(plugins);
|
|
56
|
-
const componentRegistry = new Map();
|
|
57
|
-
for (const descriptor of descriptors) {
|
|
58
|
-
validateRuntime(descriptor);
|
|
59
|
-
for (const [componentName, component] of sortedEntries(descriptor.componentRegistry)) {
|
|
60
|
-
componentRegistry.set(componentName, component);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
const metadataCatalog = composeZoraPluginMetadata(descriptors);
|
|
64
|
-
return { ...metadataCatalog, componentRegistry: Object.fromEntries(componentRegistry) };
|
|
65
|
-
}
|
|
66
41
|
function validateUniquePackage(descriptor, packages) {
|
|
67
42
|
if (packages.has(descriptor.packageName)) {
|
|
68
43
|
throw compositionError('duplicate-package', descriptor.packageName, `Duplicate ZORA plugin package '${descriptor.packageName}'.`);
|
|
@@ -76,25 +51,6 @@ function validateMetadata(descriptor) {
|
|
|
76
51
|
}
|
|
77
52
|
}
|
|
78
53
|
}
|
|
79
|
-
function validateRuntime(descriptor) {
|
|
80
|
-
const componentMetaNames = new Set(Object.keys(descriptor.componentMeta));
|
|
81
|
-
const runtimeComponentNames = new Set(Object.keys(descriptor.componentRegistry));
|
|
82
|
-
for (const componentName of sortedKeys(descriptor.componentRegistry)) {
|
|
83
|
-
if (!componentMetaNames.has(componentName)) {
|
|
84
|
-
throw compositionError('missing-component-meta', descriptor.packageName, `ZORA plugin '${descriptor.packageName}' registers runtime component '${componentName}' without component metadata.`, componentName);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
for (const [componentName, meta] of sortedEntries(descriptor.componentMeta)) {
|
|
88
|
-
if (meta.directManifestNode && !runtimeComponentNames.has(componentName)) {
|
|
89
|
-
throw compositionError('missing-runtime-component', descriptor.packageName, `ZORA plugin '${descriptor.packageName}' exposes direct manifest node '${componentName}' without a runtime component.`, componentName);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
for (const componentName of descriptor.interactionPolicySupportedComponents ?? []) {
|
|
93
|
-
if (!runtimeComponentNames.has(componentName)) {
|
|
94
|
-
throw compositionError('invalid-interaction-policy-component', descriptor.packageName, `ZORA plugin '${descriptor.packageName}' declares interaction-policy support for unregistered component '${componentName}'.`, componentName);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
54
|
function claimComponent(componentName, packageName, owners) {
|
|
99
55
|
const existingOwner = owners.get(componentName);
|
|
100
56
|
if (existingOwner) {
|
|
@@ -138,9 +94,6 @@ function addAllowedChild(meta, child) {
|
|
|
138
94
|
function appendUnique(values, value) {
|
|
139
95
|
return values.includes(value) ? values : [...values, value];
|
|
140
96
|
}
|
|
141
|
-
function sortedKeys(value) {
|
|
142
|
-
return Object.keys(value).sort();
|
|
143
|
-
}
|
|
144
97
|
function sortedEntries(value) {
|
|
145
98
|
return Object.entries(value).sort(([left], [right]) => left.localeCompare(right));
|
|
146
99
|
}
|
|
@@ -150,4 +103,4 @@ function sortPlugins(plugins) {
|
|
|
150
103
|
function compositionError(code, packageName, message, componentName) {
|
|
151
104
|
return new ZoraPluginCompositionError({ code, packageName, message, componentName });
|
|
152
105
|
}
|
|
153
|
-
//# sourceMappingURL=
|
|
106
|
+
//# sourceMappingURL=composeZoraPluginMetadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composeZoraPluginMetadata.js","sourceRoot":"","sources":["../../../../../src/features/plugin/application/use-cases/composeZoraPluginMetadata.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAErF,iHAAiH;AACjH,MAAM,UAAU,yBAAyB,CACvC,OAAsC;IAEtC,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IACzC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAU,CAAC;IACnC,MAAM,eAAe,GAAG,IAAI,GAAG,EAAkB,CAAC;IAClD,MAAM,aAAa,GAAG,IAAI,GAAG,EAA6B,CAAC;IAC3D,MAAM,cAAc,GAAG,IAAI,GAAG,EAAU,CAAC;IACzC,MAAM,oCAAoC,GAAG,IAAI,GAAG,EAAU,CAAC;IAE/D,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;QACrC,qBAAqB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC5C,gBAAgB,CAAC,UAAU,CAAC,CAAC;QAC7B,KAAK,MAAM,CAAC,aAAa,EAAE,IAAI,CAAC,IAAI,aAAa,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;YAC5E,cAAc,CA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E,CAAC;KACR,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,MAAyB,EAAE,KAAa;IAC5D,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,aAAa,CAAI,KAAkC;IAC1D,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;AACpF,CAAC;AAED,SAAS,WAAW,CAA+B,OAAqB;IACtE,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AAC/F,CAAC;AAED,SAAS,gBAAgB,CACvB,IAAoC,EACpC,WAAmB,EACnB,OAAe,EACf,aAAsB;IAEtB,OAAO,IAAI,0BAA0B,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,CAAC;AACvF,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../../../types/authoring';\nimport type {\n ComposedZoraPluginMetadataCatalog,\n ZoraPluginCompositionErrorCode,\n ZoraPluginMetadata,\n ZoraPluginPlacement,\n} from '../../../../types/plugin';\nimport { ZoraPluginCompositionError } from '../../domain/ZoraPluginCompositionError';\n\n/*** Compose a selected ZORA metadata set for authoring tools that must not load React Native runtime modules. */\nexport function composeZoraPluginMetadata(\n plugins: readonly ZoraPluginMetadata[],\n): ComposedZoraPluginMetadataCatalog {\n const descriptors = sortPlugins(plugins);\n const packages = new Set<string>();\n const componentOwners = new Map<string, string>();\n const componentMeta = new Map<string, ZoraComponentMeta>();\n const extensionHosts = new Set<string>();\n const interactionPolicySupportedComponents = new Set<string>();\n\n for (const descriptor of descriptors) {\n validateUniquePackage(descriptor, packages);\n validateMetadata(descriptor);\n for (const [componentName, meta] of sortedEntries(descriptor.componentMeta)) {\n claimComponent(componentName, descriptor.packageName, componentOwners);\n componentMeta.set(componentName, meta);\n }\n for (const componentName of descriptor.extensionHosts ?? []) extensionHosts.add(componentName);\n for (const componentName of descriptor.interactionPolicySupportedComponents ?? []) {\n interactionPolicySupportedComponents.add(componentName);\n }\n }\n\n for (const descriptor of descriptors) {\n for (const placement of descriptor.placements ?? []) {\n applyPlacement({ descriptor, placement, componentMeta, extensionHosts });\n }\n }\n\n return {\n componentMeta: Object.fromEntries(componentMeta),\n bindableComponentMeta: Object.fromEntries(componentMeta),\n packageManifests: descriptors.map(({ packageName, displayName, componentMeta: meta }) => ({\n packageName,\n ...(displayName === undefined ? {} : { displayName }),\n components: meta,\n })),\n interactionPolicySupportedComponents: Object.fromEntries(\n [...interactionPolicySupportedComponents]\n .sort()\n .map((componentName) => [componentName, true]),\n ),\n };\n}\n\nfunction validateUniquePackage(descriptor: ZoraPluginMetadata, packages: Set<string>): void {\n if (packages.has(descriptor.packageName)) {\n throw compositionError(\n 'duplicate-package',\n descriptor.packageName,\n `Duplicate ZORA plugin package '${descriptor.packageName}'.`,\n );\n }\n packages.add(descriptor.packageName);\n}\n\nfunction validateMetadata(descriptor: ZoraPluginMetadata): void {\n for (const [componentName, meta] of sortedEntries(descriptor.componentMeta)) {\n if (meta.name !== componentName) {\n throw compositionError(\n 'invalid-component-meta',\n descriptor.packageName,\n `ZORA plugin '${descriptor.packageName}' metadata key '${componentName}' does not match meta.name '${meta.name}'.`,\n componentName,\n );\n }\n }\n}\n\nfunction claimComponent(\n componentName: string,\n packageName: string,\n owners: Map<string, string>,\n): void {\n const existingOwner = owners.get(componentName);\n if (existingOwner) {\n throw compositionError(\n 'duplicate-component',\n packageName,\n `ZORA component '${componentName}' is owned by both '${existingOwner}' and '${packageName}'.`,\n componentName,\n );\n }\n owners.set(componentName, packageName);\n}\n\nfunction applyPlacement(args: {\n descriptor: ZoraPluginMetadata;\n placement: ZoraPluginPlacement;\n componentMeta: Map<string, ZoraComponentMeta>;\n extensionHosts: ReadonlySet<string>;\n}): void {\n const { descriptor, placement, componentMeta, extensionHosts } = args;\n const childMeta = descriptor.componentMeta[placement.child];\n if (!childMeta?.directManifestNode) {\n throw compositionError(\n 'invalid-placement-child',\n descriptor.packageName,\n `ZORA plugin '${descriptor.packageName}' placement child '${placement.child}' is not an owned direct manifest node.`,\n placement.child,\n );\n }\n for (const parentName of [...placement.parents].sort()) {\n const parentMeta = componentMeta.get(parentName);\n if (!parentMeta || !extensionHosts.has(parentName)) {\n throw compositionError(\n 'invalid-placement-parent',\n descriptor.packageName,\n `ZORA plugin '${descriptor.packageName}' placement parent '${parentName}' is not a declared extension host.`,\n placement.child,\n );\n }\n componentMeta.set(parentName, addAllowedChild(parentMeta, placement.child));\n }\n}\n\nfunction addAllowedChild(meta: ZoraComponentMeta, child: string): ZoraComponentMeta {\n const allowedChildren = appendUnique(meta.allowedChildren, child);\n const childrenSlot = meta.slots?.children;\n return {\n ...meta,\n allowedChildren,\n ...(childrenSlot\n ? {\n slots: {\n ...meta.slots,\n children: {\n ...childrenSlot,\n allowedChildren: appendUnique(childrenSlot.allowedChildren ?? [], child),\n },\n },\n }\n : {}),\n };\n}\n\nfunction appendUnique(values: readonly string[], value: string): readonly string[] {\n return values.includes(value) ? values : [...values, value];\n}\n\nfunction sortedEntries<T>(value: Readonly<Record<string, T>>): [string, T][] {\n return Object.entries(value).sort(([left], [right]) => left.localeCompare(right));\n}\n\nfunction sortPlugins<T extends ZoraPluginMetadata>(plugins: readonly T[]): T[] {\n return [...plugins].sort((left, right) => left.packageName.localeCompare(right.packageName));\n}\n\nfunction compositionError(\n code: ZoraPluginCompositionErrorCode,\n packageName: string,\n message: string,\n componentName?: string,\n): ZoraPluginCompositionError {\n return new ZoraPluginCompositionError({ code, packageName, message, componentName });\n}\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComposedZoraPluginCatalog, ZoraPluginDescriptor } from '../../../../types/plugin';
|
|
2
|
+
/*** Compose a selected ZORA core/plugin descriptor set into one validated authoring/runtime catalog. */
|
|
3
|
+
export declare function composeZoraPlugins(plugins: readonly ZoraPluginDescriptor[]): ComposedZoraPluginCatalog;
|
|
4
|
+
//# sourceMappingURL=composeZoraPlugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composeZoraPlugins.d.ts","sourceRoot":"","sources":["../../../../../src/features/plugin/application/use-cases/composeZoraPlugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EAEzB,oBAAoB,EACrB,MAAM,0BAA0B,CAAC;AAKlC,wGAAwG;AACxG,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,SAAS,oBAAoB,EAAE,GACvC,yBAAyB,CAe3B"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ZoraPluginCompositionError } from '../../domain/ZoraPluginCompositionError';
|
|
2
|
+
import { composeZoraPluginMetadata } from './composeZoraPluginMetadata';
|
|
3
|
+
/*** Compose a selected ZORA core/plugin descriptor set into one validated authoring/runtime catalog. */
|
|
4
|
+
export function composeZoraPlugins(plugins) {
|
|
5
|
+
const descriptors = [...plugins].sort((left, right) => left.packageName.localeCompare(right.packageName));
|
|
6
|
+
const componentRegistry = new Map();
|
|
7
|
+
for (const descriptor of descriptors) {
|
|
8
|
+
validateRuntime(descriptor);
|
|
9
|
+
for (const [componentName, component] of sortedEntries(descriptor.componentRegistry)) {
|
|
10
|
+
componentRegistry.set(componentName, component);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
const metadataCatalog = composeZoraPluginMetadata(descriptors);
|
|
14
|
+
return { ...metadataCatalog, componentRegistry: Object.fromEntries(componentRegistry) };
|
|
15
|
+
}
|
|
16
|
+
function validateRuntime(descriptor) {
|
|
17
|
+
const componentMetaNames = new Set(Object.keys(descriptor.componentMeta));
|
|
18
|
+
const runtimeComponentNames = new Set(Object.keys(descriptor.componentRegistry));
|
|
19
|
+
for (const componentName of Object.keys(descriptor.componentRegistry).sort()) {
|
|
20
|
+
if (!componentMetaNames.has(componentName)) {
|
|
21
|
+
throw compositionError('missing-component-meta', descriptor.packageName, `ZORA plugin '${descriptor.packageName}' registers runtime component '${componentName}' without component metadata.`, componentName);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
for (const [componentName, meta] of sortedEntries(descriptor.componentMeta)) {
|
|
25
|
+
if (meta.directManifestNode && !runtimeComponentNames.has(componentName)) {
|
|
26
|
+
throw compositionError('missing-runtime-component', descriptor.packageName, `ZORA plugin '${descriptor.packageName}' exposes direct manifest node '${componentName}' without a runtime component.`, componentName);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
for (const componentName of descriptor.interactionPolicySupportedComponents ?? []) {
|
|
30
|
+
if (!runtimeComponentNames.has(componentName)) {
|
|
31
|
+
throw compositionError('invalid-interaction-policy-component', descriptor.packageName, `ZORA plugin '${descriptor.packageName}' declares interaction-policy support for unregistered component '${componentName}'.`, componentName);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function sortedEntries(value) {
|
|
36
|
+
return Object.entries(value).sort(([left], [right]) => left.localeCompare(right));
|
|
37
|
+
}
|
|
38
|
+
function compositionError(code, packageName, message, componentName) {
|
|
39
|
+
return new ZoraPluginCompositionError({ code, packageName, message, componentName });
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=composeZoraPlugins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composeZoraPlugins.js","sourceRoot":"","sources":["../../../../../src/features/plugin/application/use-cases/composeZoraPlugins.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF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oraPluginCatalog,\n ZoraPluginCompositionErrorCode,\n ZoraPluginDescriptor,\n} from '../../../../types/plugin';\nimport type { ZoraComponentRegistry } from '../../../../types/registry';\nimport { ZoraPluginCompositionError } from '../../domain/ZoraPluginCompositionError';\nimport { composeZoraPluginMetadata } from './composeZoraPluginMetadata';\n\n/*** Compose a selected ZORA core/plugin descriptor set into one validated authoring/runtime catalog. */\nexport function composeZoraPlugins(\n plugins: readonly ZoraPluginDescriptor[],\n): ComposedZoraPluginCatalog {\n const descriptors = [...plugins].sort((left, right) =>\n left.packageName.localeCompare(right.packageName),\n );\n const componentRegistry = new Map<string, ZoraComponentRegistry[string]>();\n\n for (const descriptor of descriptors) {\n validateRuntime(descriptor);\n for (const [componentName, component] of sortedEntries(descriptor.componentRegistry)) {\n componentRegistry.set(componentName, component);\n }\n }\n const metadataCatalog = composeZoraPluginMetadata(descriptors);\n\n return { ...metadataCatalog, componentRegistry: Object.fromEntries(componentRegistry) };\n}\n\nfunction validateRuntime(descriptor: ZoraPluginDescriptor): void {\n const componentMetaNames = new Set(Object.keys(descriptor.componentMeta));\n const runtimeComponentNames = new Set(Object.keys(descriptor.componentRegistry));\n for (const componentName of Object.keys(descriptor.componentRegistry).sort()) {\n if (!componentMetaNames.has(componentName)) {\n throw compositionError(\n 'missing-component-meta',\n descriptor.packageName,\n `ZORA plugin '${descriptor.packageName}' registers runtime component '${componentName}' without component metadata.`,\n componentName,\n );\n }\n }\n for (const [componentName, meta] of sortedEntries(descriptor.componentMeta)) {\n if (meta.directManifestNode && !runtimeComponentNames.has(componentName)) {\n throw compositionError(\n 'missing-runtime-component',\n descriptor.packageName,\n `ZORA plugin '${descriptor.packageName}' exposes direct manifest node '${componentName}' without a runtime component.`,\n componentName,\n );\n }\n }\n for (const componentName of descriptor.interactionPolicySupportedComponents ?? []) {\n if (!runtimeComponentNames.has(componentName)) {\n throw compositionError(\n 'invalid-interaction-policy-component',\n descriptor.packageName,\n `ZORA plugin '${descriptor.packageName}' declares interaction-policy support for unregistered component '${componentName}'.`,\n componentName,\n );\n }\n }\n}\n\nfunction sortedEntries<T>(value: Readonly<Record<string, T>>): [string, T][] {\n return Object.entries(value).sort(([left], [right]) => left.localeCompare(right));\n}\n\nfunction compositionError(\n code: ZoraPluginCompositionErrorCode,\n packageName: string,\n message: string,\n componentName?: string,\n): ZoraPluginCompositionError {\n return new ZoraPluginCompositionError({ code, packageName, message, componentName });\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ZoraPluginCompositionErrorCode } from '../../../types/plugin';
|
|
2
|
+
/*** Report one deterministic plugin composition contract violation. */
|
|
3
|
+
export declare class ZoraPluginCompositionError extends Error {
|
|
4
|
+
readonly code: ZoraPluginCompositionErrorCode;
|
|
5
|
+
readonly packageName: string;
|
|
6
|
+
readonly componentName?: string;
|
|
7
|
+
constructor(args: {
|
|
8
|
+
readonly code: ZoraPluginCompositionErrorCode;
|
|
9
|
+
readonly packageName: string;
|
|
10
|
+
readonly message: string;
|
|
11
|
+
readonly componentName?: string;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=ZoraPluginCompositionError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZoraPluginCompositionError.d.ts","sourceRoot":"","sources":["../../../../src/features/plugin/domain/ZoraPluginCompositionError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAC;AAE5E,uEAAuE;AACvE,qBAAa,0BAA2B,SAAQ,KAAK;IACnD,QAAQ,CAAC,IAAI,EAAE,8BAA8B,CAAC;IAC9C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;gBAEpB,IAAI,EAAE;QAChB,QAAQ,CAAC,IAAI,EAAE,8BAA8B,CAAC;QAC9C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;KACjC;CAOF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*** Report one deterministic plugin composition contract violation. */
|
|
2
|
+
export class ZoraPluginCompositionError extends Error {
|
|
3
|
+
code;
|
|
4
|
+
packageName;
|
|
5
|
+
componentName;
|
|
6
|
+
constructor(args) {
|
|
7
|
+
super(args.message);
|
|
8
|
+
this.name = 'ZoraPluginCompositionError';
|
|
9
|
+
this.code = args.code;
|
|
10
|
+
this.packageName = args.packageName;
|
|
11
|
+
this.componentName = args.componentName;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=ZoraPluginCompositionError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZoraPluginCompositionError.js","sourceRoot":"","sources":["../../../../src/features/plugin/domain/ZoraPluginCompositionError.ts"],"names":[],"mappings":"AAEA,uEAAuE;AACvE,MAAM,OAAO,0BAA2B,SAAQ,KAAK;IAC1C,IAAI,CAAiC;IACrC,WAAW,CAAS;IACpB,aAAa,CAAU;IAEhC,YAAY,IAKX;QACC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpB,IAAI,CAAC,IAAI,GAAG,4BAA4B,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;IAC1C,CAAC;CACF","sourcesContent":["import type { ZoraPluginCompositionErrorCode } from '../../../types/plugin';\n\n/*** Report one deterministic plugin composition contract violation. */\nexport class ZoraPluginCompositionError extends Error {\n readonly code: ZoraPluginCompositionErrorCode;\n readonly packageName: string;\n readonly componentName?: string;\n\n constructor(args: {\n readonly code: ZoraPluginCompositionErrorCode;\n readonly packageName: string;\n readonly message: string;\n readonly componentName?: string;\n }) {\n super(args.message);\n this.name = 'ZoraPluginCompositionError';\n this.code = args.code;\n this.packageName = args.packageName;\n this.componentName = args.componentName;\n }\n}\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { composeZoraPluginMetadata } from './application/use-cases/composeZoraPluginMetadata';
|
|
2
|
+
export { ZoraPluginCompositionError } from './domain/ZoraPluginCompositionError';
|
|
3
|
+
export { ZORA_CORE_PLUGIN_METADATA } from './ZORA_CORE_PLUGIN_METADATA';
|
|
4
|
+
//# sourceMappingURL=public.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/features/plugin/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { composeZoraPluginMetadata } from './application/use-cases/composeZoraPluginMetadata';
|
|
2
|
+
export { ZoraPluginCompositionError } from './domain/ZoraPluginCompositionError';
|
|
3
|
+
export { ZORA_CORE_PLUGIN_METADATA } from './ZORA_CORE_PLUGIN_METADATA';
|
|
4
|
+
//# sourceMappingURL=public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/plugin/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["export { composeZoraPluginMetadata } from './application/use-cases/composeZoraPluginMetadata';\nexport { ZoraPluginCompositionError } from './domain/ZoraPluginCompositionError';\nexport { ZORA_CORE_PLUGIN_METADATA } from './ZORA_CORE_PLUGIN_METADATA';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/features/plugin/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/features/plugin/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["export { composeZoraPlugins } from './application/use-cases/composeZoraPlugins';\nexport { ZORA_CORE_PLUGIN } from './ZORA_CORE_PLUGIN';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverMenu.d.ts","sourceRoot":"","sources":["../../../../../src/features/popover-menu/adapters/inbound/PopoverMenu.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PopoverMenu.d.ts","sourceRoot":"","sources":["../../../../../src/features/popover-menu/adapters/inbound/PopoverMenu.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAqB,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAO1F,sFAAsF;AACtF,eAAO,MAAM,WAAW,wDAAuC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PopoverMenu as SurfacePopoverMenu, } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { resolveIconSize } from '../../../../internal/recipes';
|
|
4
|
-
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
5
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
6
3
|
import { Icon } from '../../../icon/public';
|
|
4
|
+
import { resolveIconSize } from '../../../icon/utils/resolveIconSize';
|
|
7
5
|
import { View } from '../../../layout/public';
|
|
6
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
7
|
+
import { useZoraTheme } from '../../../theme/composition/useZoraTheme';
|
|
8
8
|
/*** Presents a ZORA-styled action list through the Surface PopoverMenu capability. */
|
|
9
9
|
export const PopoverMenu = withZoraThemeScope(PopoverMenuInner);
|
|
10
10
|
/*** Maps ZORA action presentation into the Surface action-menu boundary. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverMenu.js","sourceRoot":"","sources":["../../../../../src/features/popover-menu/adapters/inbound/PopoverMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,kBAAkB,GAElC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PopoverMenu.js","sourceRoot":"","sources":["../../../../../src/features/popover-menu/adapters/inbound/PopoverMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,kBAAkB,GAElC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAEvE,sFAAsF;AACtF,MAAM,CAAC,MAAM,WAAW,GAAG,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;AAEhE,4EAA4E;AAC5E,SAAS,gBAA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,SAAS,CAAC;IAChD,OAAO,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,EAAG,CAAC;AACjF,CAAC;AAED,2EAA2E;AAC3E,SAAS,oBAAoB,CAAC,MAAyB;IACrD,OAAO,MAAM,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAC;AACpF,CAAC","sourcesContent":["import {\n PopoverMenu as SurfacePopoverMenu,\n type PopoverMenuAction as SurfacePopoverMenuAction,\n} from '@ankhorage/surface';\nimport React from 'react';\n\nimport type { PopoverMenuAction, PopoverMenuProps } from '../../../../types/popover-menu';\nimport { Icon } from '../../../icon/public';\nimport { resolveIconSize } from '../../../icon/utils/resolveIconSize';\nimport { View } from '../../../layout/public';\nimport { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';\nimport { useZoraTheme } from '../../../theme/composition/useZoraTheme';\n\n/*** Presents a ZORA-styled action list through the Surface PopoverMenu capability. */\nexport const PopoverMenu = withZoraThemeScope(PopoverMenuInner);\n\n/*** Maps ZORA action presentation into the Surface action-menu boundary. */\nfunction PopoverMenuInner({\n themeId: _themeId,\n mode: _mode,\n actions,\n onDismiss,\n ...props\n}: PopoverMenuProps) {\n const { theme } = useZoraTheme();\n const iconColor = theme.semantics.content.muted;\n const surfaceActions = React.useMemo(\n () => actions.map((action) => toSurfaceAction(action, iconColor)),\n [actions, iconColor],\n );\n\n return <SurfacePopoverMenu {...props} actions={surfaceActions} dismiss={onDismiss} />;\n}\n\n/*** Maps one ZORA PopoverMenu action to the Surface action contract. */\nfunction toSurfaceAction(action: PopoverMenuAction, iconColor: string): SurfacePopoverMenuAction {\n return {\n activate: action.onPress,\n description: action.description,\n disabled: action.disabled,\n id: action.id,\n intent: action.intent,\n leading: renderActionLeading(action, iconColor),\n selected: action.selected,\n title: action.title,\n trailing: renderActionTrailing(action),\n };\n}\n\n/*** Resolves explicit leading content or the configured action icon. */\nfunction renderActionLeading(action: PopoverMenuAction, iconColor: string): React.ReactNode {\n if (action.leading !== undefined) return action.leading;\n if (action.icon === undefined) return undefined;\n return <Icon {...action.icon} color={iconColor} size={resolveIconSize('s')} />;\n}\n\n/*** Wraps optional trailing action content in the ZORA layout boundary. */\nfunction renderActionTrailing(action: PopoverMenuAction): React.ReactNode {\n return action.trailing === undefined ? undefined : <View>{action.trailing}</View>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popoverMenuMeta.js","sourceRoot":"","sources":["../../../src/features/popover-menu/popoverMenuMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,iHAAiH;IACvH,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '
|
|
1
|
+
{"version":3,"file":"popoverMenuMeta.js","sourceRoot":"","sources":["../../../src/features/popover-menu/popoverMenuMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,iHAAiH;IACvH,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../authoring';\n\nexport const popoverMenuMeta = {\n name: 'PopoverMenu',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Code-facing anchored action menu; the trigger is a render prop and is not serialized as a direct manifest node.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../../../src/features/progress/adapters/inbound/Progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../../../src/features/progress/adapters/inbound/Progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,4BAA4B,CAAC;AAgDrF;;GAEG;AACH,eAAO,MAAM,QAAQ,qDAAoC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
3
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
4
2
|
import { resolveProgressRole } from '../../../../types/progress';
|
|
5
3
|
import { View } from '../../../layout/public';
|
|
4
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
5
|
+
import { useZoraTheme } from '../../../theme/composition/useZoraTheme';
|
|
6
6
|
import { resolveProgressFraction } from '../../utils/resolveProgressFraction';
|
|
7
7
|
function resolveProgressHeight(size) {
|
|
8
8
|
switch (size) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.js","sourceRoot":"","sources":["../../../../../src/features/progress/adapters/inbound/Progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Progress.js","sourceRoot":"","sources":["../../../../../src/features/progress/adapters/inbound/Progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAsB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,EAAE,IAAI,E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tC;MAAA,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,GAAG,GAAG,GAAG,EAAE,CAAC,EAC9E;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { type ProgressProps, resolveProgressRole } from '../../../../types/progress';\nimport { View } from '../../../layout/public';\nimport { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';\nimport { useZoraTheme } from '../../../theme/composition/useZoraTheme';\nimport { resolveProgressFraction } from '../../utils/resolveProgressFraction';\n\nfunction resolveProgressHeight(size: NonNullable<ProgressProps['size']>): number {\n switch (size) {\n case 's':\n return 4;\n case 'm':\n return 6;\n case 'l':\n default:\n return 8;\n }\n}\n\nfunction ProgressInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy: _interactionPolicy,\n testID,\n value,\n max = 100,\n color = 'primary',\n size = 'm',\n}: ProgressProps) {\n const { theme } = useZoraTheme();\n const fraction = resolveProgressFraction({ value, max });\n const height = resolveProgressHeight(size);\n const role = resolveProgressRole(theme, color);\n\n return (\n <View\n accessibilityRole=\"progressbar\"\n bg={theme.semantics.neutral.surface}\n borderColor={theme.semantics.neutral.divider}\n borderWidth={1}\n radius=\"full\"\n testID={testID}\n style={{ height, overflow: 'hidden' }}\n >\n <View bg={role.base} style={{ height: '100%', width: `${fraction * 100}%` }} />\n </View>\n );\n}\n\n/***\n * Progress indicator for determinate and indeterminate loading states.\n */\nexport const Progress = withZoraThemeScope(ProgressInner);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressRing.d.ts","sourceRoot":"","sources":["../../../../../src/features/progress/adapters/inbound/ProgressRing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ProgressRing.d.ts","sourceRoot":"","sources":["../../../../../src/features/progress/adapters/inbound/ProgressRing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,4BAA4B,CAAC;AAgJzF;;GAEG;AACH,eAAO,MAAM,YAAY,yDAAwC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleSheet, View as ReactNativeView } from 'react-native';
|
|
3
|
-
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
4
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
5
3
|
import { resolveProgressRole } from '../../../../types/progress';
|
|
6
4
|
import { View } from '../../../layout/public';
|
|
5
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
6
|
+
import { useZoraTheme } from '../../../theme/composition/useZoraTheme';
|
|
7
7
|
import { Text } from '../../../typography/public';
|
|
8
8
|
import { resolveProgressFraction } from '../../utils/resolveProgressFraction';
|
|
9
9
|
import { resolveProgressRingGeometry } from '../../utils/resolveProgressRingGeometry';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressRing.js","sourceRoot":"","sources":["../../../../../src/features/progress/adapters/inbound/ProgressRing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AAEnE,OAAO,
|
|
1
|
+
{"version":3,"file":"ProgressRing.js","sourceRoot":"","sources":["../../../../../src/features/progress/adapters/inbound/ProgressRing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,IAA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AC,OAAO,CAAC,SAAS,CACvE;gBAAA,CAAC,WAAW,CACd;cAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,IAAI,CACV;UAAA,EAAE,IAAI,CACR;QAAA,EAAE,eAAe,CAAC,CACnB,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,eAAe,CAAC,CACnB,CAAC;AACJ,CAAC;AAED,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE;QACN,UAAU,EAAE,QAAQ;QACpB,MAAM,EAAE,CAAC;QACT,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,CAAC;QACR,GAAG,EAAE,CAAC;KACP;IACD,YAAY,EAAE;QACZ,MAAM,EAAE,CAAC;QACT,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,CAAC;QACR,GAAG,EAAE,CAAC;KACP;IACD,KAAK,EAAE;QACL,MAAM,EAAE,CAAC;QACT,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,CAAC;QACR,GAAG,EAAE,CAAC;KACP;IACD,MAAM,EAAE;QACN,MAAM,EAAE,CAAC;QACT,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,CAAC;QACR,GAAG,EAAE,CAAC;KACP;CACF,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport { StyleSheet, View as ReactNativeView } from 'react-native';\n\nimport { type ProgressRingProps, resolveProgressRole } from '../../../../types/progress';\nimport { View } from '../../../layout/public';\nimport { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';\nimport { useZoraTheme } from '../../../theme/composition/useZoraTheme';\nimport { Text } from '../../../typography/public';\nimport { resolveProgressFraction } from '../../utils/resolveProgressFraction';\nimport { resolveProgressRingGeometry } from '../../utils/resolveProgressRingGeometry';\n\nfunction ProgressRingInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy: _interactionPolicy,\n accessibilityLabel = 'Progress',\n accessibilityValueText,\n centerLabel,\n centerValue,\n color = 'primary',\n max = 100,\n size = 120,\n testID,\n thickness = 10,\n trackColor = 'neutral',\n value,\n}: ProgressRingProps) {\n const { theme } = useZoraTheme();\n const fraction = resolveProgressFraction({ max, value });\n const geometry = resolveProgressRingGeometry({ fraction, size, thickness });\n const progressRole = resolveProgressRole(theme, color);\n const trackRole = resolveProgressRole(theme, trackColor);\n const accessibilityMaximum = Number.isFinite(max) && max > 0 ? max : 1;\n const accessibilityValue = fraction * accessibilityMaximum;\n const valueText = accessibilityValueText ?? `${Math.round(fraction * 100)}%`;\n const segments = Array.from({ length: geometry.filledSegmentCount });\n\n return (\n <ReactNativeView\n accessibilityLabel={accessibilityLabel}\n accessibilityRole=\"progressbar\"\n accessibilityValue={{\n max: accessibilityMaximum,\n min: 0,\n now: accessibilityValue,\n text: valueText,\n }}\n accessible\n style={{ height: geometry.diameter, width: geometry.diameter }}\n testID={testID}\n >\n <ReactNativeView\n importantForAccessibility=\"no-hide-descendants\"\n pointerEvents=\"none\"\n style={styles.visual}\n >\n <View\n style={[\n styles.track,\n {\n borderColor: trackRole.softBg,\n borderRadius: geometry.diameter / 2,\n borderWidth: geometry.strokeWidth,\n },\n ]}\n />\n\n {segments.map((_, index) => (\n <View\n key={index}\n style={[\n styles.segmentLayer,\n { transform: [{ rotate: `${index * (360 / geometry.segmentCount)}deg` }] },\n ]}\n >\n <View\n style={{\n backgroundColor: progressRole.base,\n borderRadius: geometry.strokeWidth / 2,\n height: geometry.strokeWidth,\n left: (geometry.diameter - geometry.segmentWidth) / 2,\n position: 'absolute',\n top: 0,\n width: geometry.segmentWidth,\n }}\n />\n </View>\n ))}\n </ReactNativeView>\n\n {centerValue !== undefined || centerLabel !== undefined ? (\n <ReactNativeView\n importantForAccessibility=\"no-hide-descendants\"\n pointerEvents=\"none\"\n style={styles.center}\n >\n <View align=\"center\" gap=\"xxs\" px=\"s\">\n {centerValue !== undefined ? (\n <Text align=\"center\" variant=\"lead\" weight=\"bold\">\n {centerValue}\n </Text>\n ) : null}\n {centerLabel !== undefined ? (\n <Text align=\"center\" emphasis=\"muted\" numberOfLines={2} variant=\"caption\">\n {centerLabel}\n </Text>\n ) : null}\n </View>\n </ReactNativeView>\n ) : null}\n </ReactNativeView>\n );\n}\n\nconst styles = StyleSheet.create({\n center: {\n alignItems: 'center',\n bottom: 0,\n justifyContent: 'center',\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n segmentLayer: {\n bottom: 0,\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n track: {\n bottom: 0,\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n visual: {\n bottom: 0,\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n});\n\n/***\n * Circular determinate progress with optional serializable center value and label content.\n */\nexport const ProgressRing = withZoraThemeScope(ProgressRingInner);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progressMeta.js","sourceRoot":"","sources":["../../../src/features/progress/progressMeta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"progressMeta.js","sourceRoot":"","sources":["../../../src/features/progress/progressMeta.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE;QACT,KAAK,EAAE,UAAU;QACjB,YAAY,EAAE;YACZ,KAAK,EAAE,EAAE;YACT,GAAG,EAAE,GAAG;YACR,KAAK,EAAE,SAAS;YAChB,IAAI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,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,UAAU;YACjB,OAAO,EAAE,GAAG;YACZ,SAAS,EAAE,iBAAiB;SAC7B;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,WAAW;YAClB,OAAO,EAAE,EAAE;YACX,SAAS,EAAE,iBAAiB;SAC7B;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../authoring';\nimport { ZORA_COLORS } from '../theme/colorModel';\n\nexport const progressMeta = {\n name: 'Progress',\n category: 'component',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Progress',\n defaultProps: {\n value: 50,\n max: 100,\n color: 'primary',\n size: 'm',\n },\n },\n props: {\n value: {\n type: 'number',\n category: 'State',\n label: 'Value',\n default: 50,\n },\n max: {\n type: 'number',\n category: 'State',\n label: 'Max',\n default: 100,\n },\n color: {\n type: 'enum',\n category: 'Style',\n label: 'Color',\n enum: [...ZORA_COLORS],\n default: 'primary',\n },\n size: {\n type: 'enum',\n category: 'Style',\n label: 'Size',\n enum: ['s', 'm', 'l'],\n default: 'm',\n },\n },\n} as const satisfies ZoraComponentMeta;\n\nconst instanceAuthoring = { authority: 'instance' } as const;\n\nexport const progressRingMeta = {\n name: 'ProgressRing',\n category: 'component',\n description: 'Displays circular determinate progress with optional center value and label text.',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Progress ring',\n defaultProps: {\n value: 68,\n max: 100,\n color: 'primary',\n trackColor: 'neutral',\n size: 120,\n thickness: 10,\n centerValue: '68%',\n centerLabel: 'Complete',\n accessibilityLabel: 'Progress',\n accessibilityValueText: '68% complete',\n },\n },\n props: {\n value: {\n type: 'number',\n category: 'State',\n label: 'Value',\n default: 68,\n authoring: instanceAuthoring,\n },\n max: {\n type: 'number',\n category: 'State',\n label: 'Maximum',\n default: 100,\n authoring: instanceAuthoring,\n },\n centerValue: {\n type: 'string',\n category: 'Content',\n label: 'Center value',\n default: '68%',\n authoring: instanceAuthoring,\n },\n centerLabel: {\n type: 'string',\n category: 'Content',\n label: 'Center label',\n default: 'Complete',\n authoring: instanceAuthoring,\n },\n accessibilityLabel: {\n type: 'string',\n category: 'Accessibility',\n label: 'Accessibility label',\n default: 'Progress',\n authoring: instanceAuthoring,\n },\n accessibilityValueText: {\n type: 'string',\n category: 'Accessibility',\n label: 'Accessibility value text',\n default: '68% complete',\n authoring: instanceAuthoring,\n },\n color: {\n type: 'enum',\n category: 'Style',\n label: 'Progress color',\n enum: [...ZORA_COLORS],\n default: 'primary',\n authoring: instanceAuthoring,\n },\n trackColor: {\n type: 'enum',\n category: 'Style',\n label: 'Track color',\n enum: [...ZORA_COLORS],\n default: 'neutral',\n authoring: instanceAuthoring,\n },\n size: {\n type: 'number',\n category: 'Layout',\n label: 'Diameter',\n default: 120,\n authoring: instanceAuthoring,\n },\n thickness: {\n type: 'number',\n category: 'Style',\n label: 'Thickness',\n default: 10,\n authoring: instanceAuthoring,\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rating.d.ts","sourceRoot":"","sources":["../../../../../src/features/rating/adapters/inbound/Rating.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Rating.d.ts","sourceRoot":"","sources":["../../../../../src/features/rating/adapters/inbound/Rating.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAS5D,kEAAkE;AAClE,eAAO,MAAM,MAAM,mDAAkC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { resolveIconSize } from '../../../../internal/recipes';
|
|
2
|
-
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
3
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
4
1
|
import { Icon } from '../../../icon/public';
|
|
2
|
+
import { resolveIconSize } from '../../../icon/utils/resolveIconSize';
|
|
5
3
|
import { View } from '../../../layout/public';
|
|
4
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
5
|
+
import { useZoraTheme } from '../../../theme/composition/useZoraTheme';
|
|
6
6
|
import { resolveRatingSegments } from '../../utils/resolveRatingSegments';
|
|
7
7
|
/*** Displays a read-only star rating with optional half steps. */
|
|
8
8
|
export const Rating = withZoraThemeScope(RatingInner);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rating.js","sourceRoot":"","sources":["../../../../../src/features/rating/adapters/inbound/Rating.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Rating.js","sourceRoot":"","sources":["../../../../../src/features/rating/adapters/inbound/Rating.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE1E,kEAAkE;AAClE,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC;AAEtD,2DAA2D;AAC3D,SAAS,WAAW,CAAC,EACnB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,iBAAiB,EAAE,kBAAkB,EACrC,MAAM,EACN,KAAK,EACL,GAAG,GAAG,CAAC,EACP,KAAK,GAAG,SAAS,EACjB,IAAI,GAAG,GAAG,GACE;IACZ,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,IAAI,GAAG,iBAAiB,CAA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KAAK,YAAY;YACf,OAAO,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;QACnC,KAAK,OAAO;YACV,OAAO,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC;QAC/B,KAAK,MAAM;YACT,OAAO,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC;QAC9B,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC;QACxC,KAAK,QAAQ;YACX,OAAO,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC;QACjC,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC;QACjC,KAAK,SAAS,CAAC;QACf;YACE,OAAO,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC;IAC1C,CAAC;AACH,CAAC","sourcesContent":["import type { RoleSemantics, SurfaceTheme } from '@ankhorage/surface';\n\nimport type { RatingProps } from '../../../../types/rating';\nimport type { ZoraColor } from '../../../../types/theme';\nimport { Icon } from '../../../icon/public';\nimport { resolveIconSize } from '../../../icon/utils/resolveIconSize';\nimport { View } from '../../../layout/public';\nimport { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';\nimport { useZoraTheme } from '../../../theme/composition/useZoraTheme';\nimport { resolveRatingSegments } from '../../utils/resolveRatingSegments';\n\n/*** Displays a read-only star rating with optional half steps. */\nexport const Rating = withZoraThemeScope(RatingInner);\n\n/*** Resolves rating visuals from the active ZORA theme. */\nfunction RatingInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy: _interactionPolicy,\n testID,\n value,\n max = 5,\n color = 'warning',\n size = 'm',\n}: RatingProps) {\n const { theme } = useZoraTheme();\n const role = resolveRatingRole(theme, color);\n const segments = resolveRatingSegments({ value, max });\n const iconSize = resolveIconSize(size);\n\n return (\n <View direction=\"row\" align=\"center\" gap=\"xxs\" testID={testID} wrap=\"nowrap\">\n {segments.map((segment, index) => {\n const name =\n segment === 'full' ? 'star' : segment === 'half' ? 'star-half' : 'star-outline';\n const segmentColor = segment === 'empty' ? theme.semantics.content.muted : role.base;\n return (\n <Icon key={`${index}-${segment}`} color={segmentColor} name={name} size={iconSize} />\n );\n })}\n </View>\n );\n}\n\n/*** Resolves the semantic theme role for a ZORA rating color. */\nfunction resolveRatingRole(theme: SurfaceTheme, color: ZoraColor): RoleSemantics {\n switch (color) {\n case 'secondary':\n return theme.semantics.secondary;\n case 'tertiary':\n return theme.semantics.accent;\n case 'quaternary':\n return theme.semantics.highlight;\n case 'error':\n return theme.semantics.error;\n case 'info':\n return theme.semantics.info;\n case 'primary':\n return theme.semantics.action.primary;\n case 'danger':\n return theme.semantics.action.danger;\n case 'success':\n return theme.semantics.success;\n case 'warning':\n return theme.semantics.warning;\n case 'neutral':\n default:\n return theme.semantics.action.neutral;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ratingMeta.js","sourceRoot":"","sources":["../../../src/features/rating/ratingMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,WAAW,EAAE,+CAA+C;IAC5D,SAAS,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;IACjG,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,uBAAuB;gBACpC,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,eAAe,EAAE,IAAI;gBACrB,iBAAiB,EAAE,IAAI;aACxB;SACF;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE;QAC3D,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE;QACvE,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE;gBACJ,SAAS;gBACT,SAAS;gBACT,WAAW;gBACX,UAAU;gBACV,YAAY;gBACZ,SAAS;gBACT,SAAS;gBACT,QAAQ;gBACR,OAAO;gBACP,MAAM;aACP;YACD,OAAO,EAAE,SAAS;SACnB;QACD,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE;KAC9F;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../
|
|
1
|
+
{"version":3,"file":"ratingMeta.js","sourceRoot":"","sources":["../../../src/features/rating/ratingMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,WAAW,EAAE,+CAA+C;IAC5D,SAAS,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;IACjG,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,uBAAuB;gBACpC,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,eAAe,EAAE,IAAI;gBACrB,iBAAiB,EAAE,IAAI;aACxB;SACF;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE;QAC3D,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE;QACvE,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE;gBACJ,SAAS;gBACT,SAAS;gBACT,WAAW;gBACX,UAAU;gBACV,YAAY;gBACZ,SAAS;gBACT,SAAS;gBACT,QAAQ;gBACR,OAAO;gBACP,MAAM;aACP;YACD,OAAO,EAAE,SAAS;SACnB;QACD,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE;KAC9F;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\n\nexport const ratingMeta = {\n name: 'Rating',\n category: 'component',\n directManifestNode: true,\n allowedChildren: [],\n description: 'Displays a read-only star-based rating value.',\n blueprint: { label: 'Rating', defaultProps: { color: 'warning', max: 5, size: 'm', value: 4.5 } },\n bindings: {\n props: {\n value: {\n label: 'Value',\n description: 'Current rating value.',\n value: { type: 'number' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n props: {\n value: { type: 'number', category: 'Data', label: 'Value' },\n max: { type: 'number', category: 'Data', label: 'Maximum', default: 5 },\n color: {\n type: 'enum',\n category: 'Style',\n label: 'Color',\n enum: [\n 'neutral',\n 'primary',\n 'secondary',\n 'tertiary',\n 'quaternary',\n 'success',\n 'warning',\n 'danger',\n 'error',\n 'info',\n ],\n default: 'warning',\n },\n size: { type: 'enum', category: 'Style', label: 'Size', enum: ['s', 'm', 'l'], default: 'm' },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReaderSurface.d.ts","sourceRoot":"","sources":["../../../../../src/features/reader/adapters/inbound/ReaderSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ReaderSurface.d.ts","sourceRoot":"","sources":["../../../../../src/features/reader/adapters/inbound/ReaderSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAgB,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAmVjF;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,0DAAyC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
3
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
4
2
|
import { AppBar } from '../../../app-bar/public';
|
|
5
3
|
import { IconButton } from '../../../button/public';
|
|
6
4
|
import { View } from '../../../layout/public';
|
|
7
5
|
import { Progress } from '../../../progress/public';
|
|
8
6
|
import { Surface } from '../../../surface/public';
|
|
7
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
8
|
+
import { useZoraTheme } from '../../../theme/composition/useZoraTheme';
|
|
9
9
|
import { Text } from '../../../typography/public';
|
|
10
10
|
import { resolveReaderProgress } from '../../utils/resolveReaderProgress';
|
|
11
11
|
function resolvePageLabel(page, pageCount) {
|