@ankhorage/zora 19.0.0 → 19.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -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.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.js +1 -1
- 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.js +1 -1
- 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 +14 -14
- 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/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 +2 -2
- 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 +2 -2
- 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/{metadata → features/authoring}/bindableComponentMeta.d.ts +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}/componentMeta.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
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ComposedZoraPluginCatalog,
|
|
3
|
+
ZoraPluginCompositionErrorCode,
|
|
4
|
+
ZoraPluginDescriptor,
|
|
5
|
+
} from '../../../../types/plugin';
|
|
6
|
+
import type { ZoraComponentRegistry } from '../../../../types/registry';
|
|
7
|
+
import { ZoraPluginCompositionError } from '../../domain/ZoraPluginCompositionError';
|
|
8
|
+
import { composeZoraPluginMetadata } from './composeZoraPluginMetadata';
|
|
9
|
+
|
|
10
|
+
/*** Compose a selected ZORA core/plugin descriptor set into one validated authoring/runtime catalog. */
|
|
11
|
+
export function composeZoraPlugins(
|
|
12
|
+
plugins: readonly ZoraPluginDescriptor[],
|
|
13
|
+
): ComposedZoraPluginCatalog {
|
|
14
|
+
const descriptors = [...plugins].sort((left, right) =>
|
|
15
|
+
left.packageName.localeCompare(right.packageName),
|
|
16
|
+
);
|
|
17
|
+
const componentRegistry = new Map<string, ZoraComponentRegistry[string]>();
|
|
18
|
+
|
|
19
|
+
for (const descriptor of descriptors) {
|
|
20
|
+
validateRuntime(descriptor);
|
|
21
|
+
for (const [componentName, component] of sortedEntries(descriptor.componentRegistry)) {
|
|
22
|
+
componentRegistry.set(componentName, component);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
const metadataCatalog = composeZoraPluginMetadata(descriptors);
|
|
26
|
+
|
|
27
|
+
return { ...metadataCatalog, componentRegistry: Object.fromEntries(componentRegistry) };
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function validateRuntime(descriptor: ZoraPluginDescriptor): void {
|
|
31
|
+
const componentMetaNames = new Set(Object.keys(descriptor.componentMeta));
|
|
32
|
+
const runtimeComponentNames = new Set(Object.keys(descriptor.componentRegistry));
|
|
33
|
+
for (const componentName of Object.keys(descriptor.componentRegistry).sort()) {
|
|
34
|
+
if (!componentMetaNames.has(componentName)) {
|
|
35
|
+
throw compositionError(
|
|
36
|
+
'missing-component-meta',
|
|
37
|
+
descriptor.packageName,
|
|
38
|
+
`ZORA plugin '${descriptor.packageName}' registers runtime component '${componentName}' without component metadata.`,
|
|
39
|
+
componentName,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
for (const [componentName, meta] of sortedEntries(descriptor.componentMeta)) {
|
|
44
|
+
if (meta.directManifestNode && !runtimeComponentNames.has(componentName)) {
|
|
45
|
+
throw compositionError(
|
|
46
|
+
'missing-runtime-component',
|
|
47
|
+
descriptor.packageName,
|
|
48
|
+
`ZORA plugin '${descriptor.packageName}' exposes direct manifest node '${componentName}' without a runtime component.`,
|
|
49
|
+
componentName,
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
for (const componentName of descriptor.interactionPolicySupportedComponents ?? []) {
|
|
54
|
+
if (!runtimeComponentNames.has(componentName)) {
|
|
55
|
+
throw compositionError(
|
|
56
|
+
'invalid-interaction-policy-component',
|
|
57
|
+
descriptor.packageName,
|
|
58
|
+
`ZORA plugin '${descriptor.packageName}' declares interaction-policy support for unregistered component '${componentName}'.`,
|
|
59
|
+
componentName,
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function sortedEntries<T>(value: Readonly<Record<string, T>>): [string, T][] {
|
|
66
|
+
return Object.entries(value).sort(([left], [right]) => left.localeCompare(right));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function compositionError(
|
|
70
|
+
code: ZoraPluginCompositionErrorCode,
|
|
71
|
+
packageName: string,
|
|
72
|
+
message: string,
|
|
73
|
+
componentName?: string,
|
|
74
|
+
): ZoraPluginCompositionError {
|
|
75
|
+
return new ZoraPluginCompositionError({ code, packageName, message, componentName });
|
|
76
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ZoraPluginCompositionErrorCode } from '../../../types/plugin';
|
|
2
|
+
|
|
3
|
+
/*** Report one deterministic plugin composition contract violation. */
|
|
4
|
+
export class ZoraPluginCompositionError extends Error {
|
|
5
|
+
readonly code: ZoraPluginCompositionErrorCode;
|
|
6
|
+
readonly packageName: string;
|
|
7
|
+
readonly componentName?: string;
|
|
8
|
+
|
|
9
|
+
constructor(args: {
|
|
10
|
+
readonly code: ZoraPluginCompositionErrorCode;
|
|
11
|
+
readonly packageName: string;
|
|
12
|
+
readonly message: string;
|
|
13
|
+
readonly componentName?: string;
|
|
14
|
+
}) {
|
|
15
|
+
super(args.message);
|
|
16
|
+
this.name = 'ZoraPluginCompositionError';
|
|
17
|
+
this.code = args.code;
|
|
18
|
+
this.packageName = args.packageName;
|
|
19
|
+
this.componentName = args.componentName;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { describe, expect, test } from 'bun:test';
|
|
2
2
|
|
|
3
|
-
import type { ZoraComponentMeta } from '
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type ZoraPluginDescriptor,
|
|
8
|
-
} from './pluginComposition';
|
|
3
|
+
import type { ZoraComponentMeta } from '../../types/authoring';
|
|
4
|
+
import type { ZoraPluginDescriptor } from '../../types/plugin';
|
|
5
|
+
import { composeZoraPlugins } from './application/use-cases/composeZoraPlugins';
|
|
6
|
+
import { ZoraPluginCompositionError } from './domain/ZoraPluginCompositionError';
|
|
9
7
|
|
|
10
8
|
const pluginLeafMeta: ZoraComponentMeta = {
|
|
11
9
|
name: 'PluginLeaf',
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from '@ankhorage/surface';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
|
-
import { resolveIconSize } from '../../../../internal/recipes';
|
|
8
|
-
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
9
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
10
7
|
import type { PopoverMenuAction, PopoverMenuProps } from '../../../../types/popover-menu';
|
|
11
8
|
import { Icon } from '../../../icon/public';
|
|
9
|
+
import { resolveIconSize } from '../../../icon/utils/resolveIconSize';
|
|
12
10
|
import { View } from '../../../layout/public';
|
|
11
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
12
|
+
import { useZoraTheme } from '../../../theme/composition/useZoraTheme';
|
|
13
13
|
|
|
14
14
|
/*** Presents a ZORA-styled action list through the Surface PopoverMenu capability. */
|
|
15
15
|
export const PopoverMenu = withZoraThemeScope(PopoverMenuInner);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
4
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
5
3
|
import { type ProgressProps, 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 { resolveProgressFraction } from '../../utils/resolveProgressFraction';
|
|
8
8
|
|
|
9
9
|
function resolveProgressHeight(size: NonNullable<ProgressProps['size']>): number {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleSheet, View as ReactNativeView } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
5
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
6
4
|
import { type ProgressRingProps, resolveProgressRole } from '../../../../types/progress';
|
|
7
5
|
import { View } from '../../../layout/public';
|
|
6
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
7
|
+
import { useZoraTheme } from '../../../theme/composition/useZoraTheme';
|
|
8
8
|
import { Text } from '../../../typography/public';
|
|
9
9
|
import { resolveProgressFraction } from '../../utils/resolveProgressFraction';
|
|
10
10
|
import { resolveProgressRingGeometry } from '../../utils/resolveProgressRingGeometry';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { ZoraComponentMeta } from '../authoring';
|
|
2
|
+
import { ZORA_COLORS } from '../theme/colorModel';
|
|
3
3
|
|
|
4
4
|
export const progressMeta = {
|
|
5
5
|
name: 'Progress',
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { RoleSemantics, SurfaceTheme } from '@ankhorage/surface';
|
|
2
2
|
|
|
3
|
-
import type { ZoraColor } from '../../../../internal/recipes';
|
|
4
|
-
import { resolveIconSize } from '../../../../internal/recipes';
|
|
5
|
-
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
6
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
7
3
|
import type { RatingProps } from '../../../../types/rating';
|
|
4
|
+
import type { ZoraColor } from '../../../../types/theme';
|
|
8
5
|
import { Icon } from '../../../icon/public';
|
|
6
|
+
import { resolveIconSize } from '../../../icon/utils/resolveIconSize';
|
|
9
7
|
import { View } from '../../../layout/public';
|
|
8
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
9
|
+
import { useZoraTheme } from '../../../theme/composition/useZoraTheme';
|
|
10
10
|
import { resolveRatingSegments } from '../../utils/resolveRatingSegments';
|
|
11
11
|
|
|
12
12
|
/*** Displays a read-only star rating with optional half steps. */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
4
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
5
3
|
import type { ReaderStatus, ReaderSurfaceProps } from '../../../../types/reader';
|
|
6
4
|
import { AppBar } from '../../../app-bar/public';
|
|
7
5
|
import { IconButton } from '../../../button/public';
|
|
8
6
|
import { View } from '../../../layout/public';
|
|
9
7
|
import { Progress } from '../../../progress/public';
|
|
10
8
|
import { Surface } from '../../../surface/public';
|
|
9
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
10
|
+
import { useZoraTheme } from '../../../theme/composition/useZoraTheme';
|
|
11
11
|
import { Text } from '../../../typography/public';
|
|
12
12
|
import { resolveReaderProgress } from '../../utils/resolveReaderProgress';
|
|
13
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ZoraComponentMeta } from '
|
|
2
|
-
import { CONTAINER_ALLOWED_CHILDREN } from '
|
|
1
|
+
import type { ZoraComponentMeta } from '../authoring';
|
|
2
|
+
import { CONTAINER_ALLOWED_CHILDREN } from '../authoring/allowedChildren';
|
|
3
3
|
|
|
4
4
|
const EMPTY_EVENT_FIELDS = [] as const;
|
|
5
5
|
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import type { InteractionPolicyProps } from '@ankhorage/surface';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
|
|
4
|
+
import type { ZoraComponentRegistry } from '../../types/registry';
|
|
5
|
+
import { Accordion, AccordionItem } from '../accordion/public';
|
|
6
|
+
import { ActivityIndicator } from '../activity-indicator/public';
|
|
7
|
+
import { AppBar } from '../app-bar/public';
|
|
8
|
+
import {
|
|
9
|
+
ForgotPasswordForm,
|
|
10
|
+
OAuthProviderButton,
|
|
11
|
+
OAuthProviderList,
|
|
12
|
+
OtpForm,
|
|
13
|
+
SignInForm,
|
|
14
|
+
SignUpForm,
|
|
15
|
+
} from '../auth/public';
|
|
16
|
+
import { Avatar, AvatarGroup } from '../avatar/public';
|
|
17
|
+
import { Badge } from '../badge/public';
|
|
18
|
+
import { BottomSheet } from '../bottom-sheet/public';
|
|
19
|
+
import { Breadcrumbs } from '../breadcrumbs/public';
|
|
20
|
+
import { Button, ButtonGroup, IconButton } from '../button/public';
|
|
21
|
+
import { Card, MediaCard, MetricCard, PostCard, ProductCard } from '../card/public';
|
|
22
|
+
import { ChatListItem, MessageBubble } from '../chat/public';
|
|
23
|
+
import { Chip, ChipGroup } from '../chip/public';
|
|
24
|
+
import { CollectionEditor } from '../collection-editor/public';
|
|
25
|
+
import { ContentRail } from '../content-rail/public';
|
|
26
|
+
import { DataTable } from '../data-table/public';
|
|
27
|
+
import { DatePicker } from '../date-picker/public';
|
|
28
|
+
import { Dialog } from '../dialog/public';
|
|
29
|
+
import { EmptyState } from '../empty-state/public';
|
|
30
|
+
import { Checkbox, CheckboxGroup } from '../form/checkbox/public';
|
|
31
|
+
import { Field, Form, FormActions, FormError } from '../form/public';
|
|
32
|
+
import { Radio, RadioGroup } from '../form/radio/public';
|
|
33
|
+
import { SearchInput } from '../form/search-input/public';
|
|
34
|
+
import { Select } from '../form/select/public';
|
|
35
|
+
import { Switch } from '../form/switch/public';
|
|
36
|
+
import { TextInput } from '../form/text-input/public';
|
|
37
|
+
import { Gradient } from '../gradient/public';
|
|
38
|
+
import { Hero } from '../hero/public';
|
|
39
|
+
import { Icon } from '../icon/public';
|
|
40
|
+
import { Image } from '../image/public';
|
|
41
|
+
import { KeyboardAvoidingView } from '../keyboard-avoiding-view/public';
|
|
42
|
+
import { AppShell, Divider, Grid, Screen, ScrollView, View } from '../layout/public';
|
|
43
|
+
import { FlatList, List, ListItem, ListSection, SectionList } from '../list/public';
|
|
44
|
+
import { MissingElement } from '../missing-element/public';
|
|
45
|
+
import { Pagination } from '../pagination/public';
|
|
46
|
+
import { PaletteItem } from '../palette-item/public';
|
|
47
|
+
import { PopoverMenu } from '../popover-menu/public';
|
|
48
|
+
import { Progress, ProgressRing } from '../progress/public';
|
|
49
|
+
import { Rating } from '../rating/public';
|
|
50
|
+
import { ReaderSurface } from '../reader/public';
|
|
51
|
+
import { BarcodeScannerView, CameraPermissionView, ScanOverlay } from '../scanner/public';
|
|
52
|
+
import { ScreenSection, SectionHeader } from '../section/public';
|
|
53
|
+
import { SelectableItem } from '../selection/public';
|
|
54
|
+
import { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from '../skeleton/public';
|
|
55
|
+
import { Surface } from '../surface/public';
|
|
56
|
+
import { Tab, TabList, TabPanel, Tabs } from '../tabs/public';
|
|
57
|
+
import { ThemeModeToggle } from '../theme/adapters/inbound/ThemeModeToggle';
|
|
58
|
+
import { TimePicker } from '../time-picker/public';
|
|
59
|
+
import { Timeline } from '../timeline/public';
|
|
60
|
+
import { Toast } from '../toast/public';
|
|
61
|
+
import { Toolbar } from '../toolbar/public';
|
|
62
|
+
import { TreeItem, TreeView } from '../tree-view/public';
|
|
63
|
+
import { Heading, Text } from '../typography/public';
|
|
64
|
+
import { Uploader } from '../uploader/public';
|
|
65
|
+
|
|
66
|
+
type ComponentPropsFor<K extends keyof typeof _ZORA_COMPONENT_REGISTRY> = React.ComponentProps<
|
|
67
|
+
(typeof _ZORA_COMPONENT_REGISTRY)[K]
|
|
68
|
+
>;
|
|
69
|
+
|
|
70
|
+
type AcceptsSurfaceInteractionPolicyProps<P> = 'interactionPolicy' extends keyof P
|
|
71
|
+
? InteractionPolicyProps extends Pick<P, 'interactionPolicy'>
|
|
72
|
+
? Pick<P, 'interactionPolicy'> extends InteractionPolicyProps
|
|
73
|
+
? true
|
|
74
|
+
: false
|
|
75
|
+
: false
|
|
76
|
+
: false;
|
|
77
|
+
|
|
78
|
+
type RegistryInteractionPolicyContract = {
|
|
79
|
+
[K in keyof typeof _ZORA_COMPONENT_REGISTRY]: AcceptsSurfaceInteractionPolicyProps<
|
|
80
|
+
ComponentPropsFor<K>
|
|
81
|
+
>;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
type _AssertTrue<T extends true> = T;
|
|
85
|
+
type _RegistryInteractionPolicyCheck = _AssertTrue<
|
|
86
|
+
RegistryInteractionPolicyContract[keyof typeof _ZORA_COMPONENT_REGISTRY]
|
|
87
|
+
>;
|
|
88
|
+
|
|
89
|
+
const _ZORA_COMPONENT_REGISTRY = {
|
|
90
|
+
Accordion,
|
|
91
|
+
AccordionItem,
|
|
92
|
+
ActivityIndicator,
|
|
93
|
+
AppBar,
|
|
94
|
+
Avatar,
|
|
95
|
+
AvatarGroup,
|
|
96
|
+
Badge,
|
|
97
|
+
Breadcrumbs,
|
|
98
|
+
Button,
|
|
99
|
+
ButtonGroup,
|
|
100
|
+
Card,
|
|
101
|
+
Checkbox,
|
|
102
|
+
CheckboxGroup,
|
|
103
|
+
Chip,
|
|
104
|
+
ChipGroup,
|
|
105
|
+
DataTable,
|
|
106
|
+
DatePicker,
|
|
107
|
+
Dialog,
|
|
108
|
+
Form,
|
|
109
|
+
FormActions,
|
|
110
|
+
FormError,
|
|
111
|
+
Field,
|
|
112
|
+
Gradient,
|
|
113
|
+
Heading,
|
|
114
|
+
Icon,
|
|
115
|
+
IconButton,
|
|
116
|
+
Image,
|
|
117
|
+
KeyboardAvoidingView,
|
|
118
|
+
TextInput,
|
|
119
|
+
MediaCard,
|
|
120
|
+
MetricCard,
|
|
121
|
+
Pagination,
|
|
122
|
+
PopoverMenu,
|
|
123
|
+
Progress,
|
|
124
|
+
ProgressRing,
|
|
125
|
+
Radio,
|
|
126
|
+
RadioGroup,
|
|
127
|
+
Rating,
|
|
128
|
+
SearchInput,
|
|
129
|
+
Select,
|
|
130
|
+
Switch,
|
|
131
|
+
Skeleton,
|
|
132
|
+
SkeletonCard,
|
|
133
|
+
SkeletonList,
|
|
134
|
+
SkeletonText,
|
|
135
|
+
Tab,
|
|
136
|
+
TabList,
|
|
137
|
+
TabPanel,
|
|
138
|
+
Tabs,
|
|
139
|
+
Text,
|
|
140
|
+
TimePicker,
|
|
141
|
+
Toast,
|
|
142
|
+
Toolbar,
|
|
143
|
+
Uploader,
|
|
144
|
+
BottomSheet,
|
|
145
|
+
FlatList,
|
|
146
|
+
SectionList,
|
|
147
|
+
ScrollView,
|
|
148
|
+
View,
|
|
149
|
+
ThemeModeToggle,
|
|
150
|
+
Divider,
|
|
151
|
+
Grid,
|
|
152
|
+
Surface,
|
|
153
|
+
AppShell,
|
|
154
|
+
Screen,
|
|
155
|
+
ScreenSection,
|
|
156
|
+
ForgotPasswordForm,
|
|
157
|
+
OAuthProviderButton,
|
|
158
|
+
OAuthProviderList,
|
|
159
|
+
OtpForm,
|
|
160
|
+
SignInForm,
|
|
161
|
+
SignUpForm,
|
|
162
|
+
ChatListItem,
|
|
163
|
+
CollectionEditor,
|
|
164
|
+
ContentRail,
|
|
165
|
+
EmptyState,
|
|
166
|
+
Hero,
|
|
167
|
+
List,
|
|
168
|
+
ListItem,
|
|
169
|
+
ListSection,
|
|
170
|
+
MessageBubble,
|
|
171
|
+
MissingElement,
|
|
172
|
+
PostCard,
|
|
173
|
+
ProductCard,
|
|
174
|
+
ReaderSurface,
|
|
175
|
+
BarcodeScannerView,
|
|
176
|
+
CameraPermissionView,
|
|
177
|
+
ScanOverlay,
|
|
178
|
+
SectionHeader,
|
|
179
|
+
SelectableItem,
|
|
180
|
+
PaletteItem,
|
|
181
|
+
Timeline,
|
|
182
|
+
TreeItem,
|
|
183
|
+
TreeView,
|
|
184
|
+
} as const satisfies ZoraComponentRegistry;
|
|
185
|
+
|
|
186
|
+
export const ZORA_COMPONENT_REGISTRY: ZoraComponentRegistry = _ZORA_COMPONENT_REGISTRY;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ZORA_COMPONENT_REGISTRY } from './ZORA_COMPONENT_REGISTRY';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { describe, expect, test } from 'bun:test';
|
|
2
2
|
|
|
3
|
-
import type { ZoraComponentRegistry } from '
|
|
3
|
+
import type { ZoraComponentRegistry } from '../../types/registry';
|
|
4
4
|
|
|
5
5
|
const NON_RUNTIME_COMPONENT_EXPORTS = new Set([
|
|
6
6
|
'GradientRendererProvider',
|
|
7
7
|
'SelectionProvider',
|
|
8
8
|
'ToastProvider',
|
|
9
|
+
'ZoraPluginCompositionError',
|
|
9
10
|
]);
|
|
10
11
|
const RUNTIME_THEME_COMPONENT_EXPORTS = ['ThemeModeToggle'] as const;
|
|
11
12
|
const REGISTRY_SNAPSHOT_PREFIX = 'ZORA_REGISTRY_SNAPSHOT:';
|
|
@@ -75,8 +76,10 @@ describe('ZORA_COMPONENT_REGISTRY', () => {
|
|
|
75
76
|
expect(registry).toEqual({});
|
|
76
77
|
expect(registryEntries).toContain('Screen');
|
|
77
78
|
expect(registryEntries).toContain('View');
|
|
78
|
-
expect(source).toContain("export type { ZoraComponentRegistry } from './registry';");
|
|
79
|
-
expect(source).toContain(
|
|
79
|
+
expect(source).toContain("export type { ZoraComponentRegistry } from './types/registry';");
|
|
80
|
+
expect(source).toContain(
|
|
81
|
+
"export { ZORA_COMPONENT_REGISTRY } from './features/registry/public';",
|
|
82
|
+
);
|
|
80
83
|
});
|
|
81
84
|
|
|
82
85
|
test('covers every public concrete ZORA component export supported for runtime rendering', async () => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
5
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
6
4
|
import type { BarcodeScannerViewProps } from '../../../../types/scanner';
|
|
7
5
|
import { Card } from '../../../card/public';
|
|
8
6
|
import { View } from '../../../layout/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 { CameraPermissionView } from './CameraPermissionView';
|
|
11
11
|
import { ScanOverlay } from './ScanOverlay';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
4
3
|
import type { CameraPermissionViewProps } from '../../../../types/scanner';
|
|
5
4
|
import { Button } from '../../../button/public';
|
|
6
5
|
import { Card } from '../../../card/public';
|
|
7
6
|
import { View } from '../../../layout/public';
|
|
7
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
8
8
|
import { Text } from '../../../typography/public';
|
|
9
9
|
|
|
10
10
|
function resolvePermissionCopy(status: CameraPermissionViewProps['status']) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
5
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
6
4
|
import type { ScanOverlayProps } from '../../../../types/scanner';
|
|
7
5
|
import { Badge } from '../../../badge/public';
|
|
8
6
|
import { View } from '../../../layout/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
|
|
|
11
11
|
function ScanOverlayInner({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ZoraComponentMeta } from '
|
|
2
|
-
import { CONTAINER_ALLOWED_CHILDREN } from '
|
|
1
|
+
import type { ZoraComponentMeta } from '../authoring';
|
|
2
|
+
import { CONTAINER_ALLOWED_CHILDREN } from '../authoring/allowedChildren';
|
|
3
3
|
|
|
4
4
|
export const scanOverlayMeta = {
|
|
5
5
|
name: 'ScanOverlay',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
4
3
|
import type { ScreenSectionProps } from '../../../../types/section';
|
|
5
4
|
import { View } from '../../../layout/public';
|
|
5
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
6
6
|
import { SectionHeader } from './SectionHeader';
|
|
7
7
|
|
|
8
8
|
function ScreenSectionInner({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
4
3
|
import type { SectionHeaderProps } from '../../../../types/section';
|
|
5
4
|
import { View } from '../../../layout/public';
|
|
5
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
6
6
|
import { Heading } from '../../../typography/public';
|
|
7
7
|
import { Text } from '../../../typography/public';
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ZoraComponentMeta } from '
|
|
2
|
-
import { SCREEN_SECTION_ALLOWED_CHILDREN } from '
|
|
1
|
+
import type { ZoraComponentMeta } from '../authoring';
|
|
2
|
+
import { SCREEN_SECTION_ALLOWED_CHILDREN } from '../authoring/allowedChildren';
|
|
3
3
|
|
|
4
4
|
export const screenSectionMeta = {
|
|
5
5
|
name: 'ScreenSection',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
4
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
5
3
|
import type { SkeletonProps } from '../../../../types/skeleton';
|
|
6
4
|
import { View } from '../../../layout/public';
|
|
5
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
6
|
+
import { useZoraTheme } from '../../../theme/composition/useZoraTheme';
|
|
7
7
|
|
|
8
8
|
function SkeletonInner({
|
|
9
9
|
themeId: _themeId,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
4
3
|
import type { SkeletonCardProps } from '../../../../types/skeleton';
|
|
5
4
|
import { ButtonGroup } from '../../../button/public';
|
|
6
5
|
import { Card } from '../../../card/public';
|
|
7
6
|
import { View } from '../../../layout/public';
|
|
7
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
8
8
|
import { Skeleton } from './Skeleton';
|
|
9
9
|
import { SkeletonText } from './SkeletonText';
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
4
3
|
import type { SkeletonListProps } from '../../../../types/skeleton';
|
|
5
4
|
import { List, type ListItemProps } from '../../../list/public';
|
|
5
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
6
6
|
import { Skeleton } from './Skeleton';
|
|
7
7
|
import { SkeletonText } from './SkeletonText';
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
4
3
|
import type { SkeletonTextProps } from '../../../../types/skeleton';
|
|
5
4
|
import { View } from '../../../layout/public';
|
|
5
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
6
6
|
import { Skeleton } from './Skeleton';
|
|
7
7
|
|
|
8
8
|
function clampLines(lines: number): number {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { expect, test } from 'bun:test';
|
|
2
2
|
|
|
3
|
-
import { ZORA_COMPONENT_META } from '
|
|
3
|
+
import { ZORA_COMPONENT_META } from '../authoring/componentMeta';
|
|
4
4
|
|
|
5
5
|
test('skeletons support direct authoring and automatic feature loading states', async () => {
|
|
6
6
|
const [dataTableSource, publicSource] = await Promise.all([
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Surface as SurfaceSurface } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
5
4
|
import type { SurfaceProps } from '../../../../types/surface';
|
|
5
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
6
6
|
|
|
7
7
|
/*** Adapts the themed Surface Surface primitive to ZORA scope and interaction props. */
|
|
8
8
|
export const Surface = withZoraThemeScope(SurfaceInner);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { ZoraComponentMeta } from '../../types/authoring';
|
|
2
|
+
import { CONTAINER_ALLOWED_CHILDREN } from '../authoring/allowedChildren';
|
|
3
3
|
import { LAYOUT_PROPS } from '../layout/constants';
|
|
4
4
|
|
|
5
5
|
export const surfaceMeta = {
|