storefront-layouts 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +546 -0
- package/dist/components/auth/LoginForm.d.ts +9 -0
- package/dist/components/auth/LoginForm.d.ts.map +1 -0
- package/dist/components/auth/LoginForm.js +21 -0
- package/dist/components/auth/LoginSheet.d.ts +7 -0
- package/dist/components/auth/LoginSheet.d.ts.map +1 -0
- package/dist/components/auth/LoginSheet.js +8 -0
- package/dist/components/auth/login-form-core.d.ts +11 -0
- package/dist/components/auth/login-form-core.d.ts.map +1 -0
- package/dist/components/auth/login-form-core.js +19 -0
- package/dist/components/auth/login-sheet-header.d.ts +10 -0
- package/dist/components/auth/login-sheet-header.d.ts.map +1 -0
- package/dist/components/auth/login-sheet-header.js +10 -0
- package/dist/components/auth/login-sheet-registry.d.ts +11 -0
- package/dist/components/auth/login-sheet-registry.d.ts.map +1 -0
- package/dist/components/auth/login-sheet-registry.js +9 -0
- package/dist/components/auth/login-sheet-theme.types.d.ts +29 -0
- package/dist/components/auth/login-sheet-theme.types.d.ts.map +1 -0
- package/dist/components/auth/login-sheet-theme.types.js +1 -0
- package/dist/components/auth/login-sheet-themes/booking-agenda.theme.d.ts +3 -0
- package/dist/components/auth/login-sheet-themes/booking-agenda.theme.d.ts.map +1 -0
- package/dist/components/auth/login-sheet-themes/booking-agenda.theme.js +21 -0
- package/dist/components/auth/login-sheet-themes/booking.theme.d.ts +3 -0
- package/dist/components/auth/login-sheet-themes/booking.theme.d.ts.map +1 -0
- package/dist/components/auth/login-sheet-themes/booking.theme.js +20 -0
- package/dist/components/auth/login-sheet-themes/clothing-minimal.theme.d.ts +3 -0
- package/dist/components/auth/login-sheet-themes/clothing-minimal.theme.d.ts.map +1 -0
- package/dist/components/auth/login-sheet-themes/clothing-minimal.theme.js +20 -0
- package/dist/components/auth/login-sheet-themes/clothing.theme.d.ts +3 -0
- package/dist/components/auth/login-sheet-themes/clothing.theme.d.ts.map +1 -0
- package/dist/components/auth/login-sheet-themes/clothing.theme.js +21 -0
- package/dist/components/auth/login-sheet-themes/electronics-grid.theme.d.ts +3 -0
- package/dist/components/auth/login-sheet-themes/electronics-grid.theme.d.ts.map +1 -0
- package/dist/components/auth/login-sheet-themes/electronics-grid.theme.js +20 -0
- package/dist/components/auth/login-sheet-themes/electronics.theme.d.ts +3 -0
- package/dist/components/auth/login-sheet-themes/electronics.theme.d.ts.map +1 -0
- package/dist/components/auth/login-sheet-themes/electronics.theme.js +20 -0
- package/dist/components/auth/login-sheet-themes/food-modern.theme.d.ts +3 -0
- package/dist/components/auth/login-sheet-themes/food-modern.theme.d.ts.map +1 -0
- package/dist/components/auth/login-sheet-themes/food-modern.theme.js +22 -0
- package/dist/components/auth/login-sheet-themes/food.theme.d.ts +3 -0
- package/dist/components/auth/login-sheet-themes/food.theme.d.ts.map +1 -0
- package/dist/components/auth/login-sheet-themes/food.theme.js +22 -0
- package/dist/components/auth/login-sheet-themes/index.d.ts +14 -0
- package/dist/components/auth/login-sheet-themes/index.d.ts.map +1 -0
- package/dist/components/auth/login-sheet-themes/index.js +29 -0
- package/dist/components/auth/login-sheet-themes/motivational-speaker.theme.d.ts +3 -0
- package/dist/components/auth/login-sheet-themes/motivational-speaker.theme.d.ts.map +1 -0
- package/dist/components/auth/login-sheet-themes/motivational-speaker.theme.js +20 -0
- package/dist/components/auth/login-sheet-themes/theme-input-baselines.d.ts +24 -0
- package/dist/components/auth/login-sheet-themes/theme-input-baselines.d.ts.map +1 -0
- package/dist/components/auth/login-sheet-themes/theme-input-baselines.js +23 -0
- package/dist/components/auth/login-sheets/StoreLoginSheetShell.d.ts +13 -0
- package/dist/components/auth/login-sheets/StoreLoginSheetShell.d.ts.map +1 -0
- package/dist/components/auth/login-sheets/StoreLoginSheetShell.js +14 -0
- package/dist/components/auth/use-login-submit.d.ts +22 -0
- package/dist/components/auth/use-login-submit.d.ts.map +1 -0
- package/dist/components/auth/use-login-submit.js +99 -0
- package/dist/components/cart/InventoryHoldCountdown.d.ts +8 -0
- package/dist/components/cart/InventoryHoldCountdown.d.ts.map +1 -0
- package/dist/components/cart/InventoryHoldCountdown.js +73 -0
- package/dist/components/categories/category-masonry-grid.d.ts +18 -0
- package/dist/components/categories/category-masonry-grid.d.ts.map +1 -0
- package/dist/components/categories/category-masonry-grid.js +50 -0
- package/dist/components/categories/category-masonry-utils.d.ts +9 -0
- package/dist/components/categories/category-masonry-utils.d.ts.map +1 -0
- package/dist/components/categories/category-masonry-utils.js +67 -0
- package/dist/components/checkout/CheckoutFeeLines.d.ts +12 -0
- package/dist/components/checkout/CheckoutFeeLines.d.ts.map +1 -0
- package/dist/components/checkout/CheckoutFeeLines.js +9 -0
- package/dist/components/checkout/ShippingOptionsPanel.d.ts +54 -0
- package/dist/components/checkout/ShippingOptionsPanel.d.ts.map +1 -0
- package/dist/components/checkout/ShippingOptionsPanel.js +115 -0
- package/dist/components/learning/CertificateTemplates.d.ts +25 -0
- package/dist/components/learning/CertificateTemplates.d.ts.map +1 -0
- package/dist/components/learning/CertificateTemplates.js +31 -0
- package/dist/components/learning/CertificateViewer.d.ts +11 -0
- package/dist/components/learning/CertificateViewer.d.ts.map +1 -0
- package/dist/components/learning/CertificateViewer.js +114 -0
- package/dist/components/learning/MentorshipProgress.d.ts +18 -0
- package/dist/components/learning/MentorshipProgress.d.ts.map +1 -0
- package/dist/components/learning/MentorshipProgress.js +20 -0
- package/dist/components/product/ProductVariationSelectors.d.ts +12 -0
- package/dist/components/product/ProductVariationSelectors.d.ts.map +1 -0
- package/dist/components/product/ProductVariationSelectors.js +46 -0
- package/dist/components/rich-text/CategoryDescription.d.ts +7 -0
- package/dist/components/rich-text/CategoryDescription.d.ts.map +1 -0
- package/dist/components/rich-text/CategoryDescription.js +11 -0
- package/dist/components/rich-text/ProductDescription.d.ts +9 -0
- package/dist/components/rich-text/ProductDescription.d.ts.map +1 -0
- package/dist/components/rich-text/ProductDescription.js +10 -0
- package/dist/components/rich-text/RichTextExcerpt.d.ts +10 -0
- package/dist/components/rich-text/RichTextExcerpt.d.ts.map +1 -0
- package/dist/components/rich-text/RichTextExcerpt.js +12 -0
- package/dist/components/rich-text/SafeRichHtml.d.ts +14 -0
- package/dist/components/rich-text/SafeRichHtml.d.ts.map +1 -0
- package/dist/components/rich-text/SafeRichHtml.js +15 -0
- package/dist/components/shipping/MerchantHandledDeliveryNotice.d.ts +7 -0
- package/dist/components/shipping/MerchantHandledDeliveryNotice.d.ts.map +1 -0
- package/dist/components/shipping/MerchantHandledDeliveryNotice.js +7 -0
- package/dist/components/shipping/ProductDeliveryInfoSection.d.ts +21 -0
- package/dist/components/shipping/ProductDeliveryInfoSection.d.ts.map +1 -0
- package/dist/components/shipping/ProductDeliveryInfoSection.js +22 -0
- package/dist/components/shipping/ShippingQuoteAddressForm.d.ts +11 -0
- package/dist/components/shipping/ShippingQuoteAddressForm.d.ts.map +1 -0
- package/dist/components/shipping/ShippingQuoteAddressForm.js +66 -0
- package/dist/components/ui/address-selector.d.ts +11 -0
- package/dist/components/ui/address-selector.d.ts.map +1 -0
- package/dist/components/ui/address-selector.js +21 -0
- package/dist/components/ui/alert-modal.d.ts +21 -0
- package/dist/components/ui/alert-modal.d.ts.map +1 -0
- package/dist/components/ui/alert-modal.js +59 -0
- package/dist/components/ui/avatar-image.d.ts +11 -0
- package/dist/components/ui/avatar-image.d.ts.map +1 -0
- package/dist/components/ui/avatar-image.js +39 -0
- package/dist/components/ui/background-patterns.d.ts +27 -0
- package/dist/components/ui/background-patterns.d.ts.map +1 -0
- package/dist/components/ui/background-patterns.js +5 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +20 -0
- package/dist/components/ui/breadcrumbs.d.ts +12 -0
- package/dist/components/ui/breadcrumbs.d.ts.map +1 -0
- package/dist/components/ui/breadcrumbs.js +12 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +34 -0
- package/dist/components/ui/card.d.ts +10 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +24 -0
- package/dist/components/ui/category-tree.d.ts +16 -0
- package/dist/components/ui/category-tree.d.ts.map +1 -0
- package/dist/components/ui/category-tree.js +74 -0
- package/dist/components/ui/checkout-button.d.ts +11 -0
- package/dist/components/ui/checkout-button.d.ts.map +1 -0
- package/dist/components/ui/checkout-button.js +298 -0
- package/dist/components/ui/dynamic-icon.d.ts +11 -0
- package/dist/components/ui/dynamic-icon.d.ts.map +1 -0
- package/dist/components/ui/dynamic-icon.js +77 -0
- package/dist/components/ui/guest-checkout-modal.d.ts +19 -0
- package/dist/components/ui/guest-checkout-modal.d.ts.map +1 -0
- package/dist/components/ui/guest-checkout-modal.js +95 -0
- package/dist/components/ui/image-skeleton.d.ts +7 -0
- package/dist/components/ui/image-skeleton.d.ts.map +1 -0
- package/dist/components/ui/image-skeleton.js +15 -0
- package/dist/components/ui/image-with-fallback.d.ts +10 -0
- package/dist/components/ui/image-with-fallback.d.ts.map +1 -0
- package/dist/components/ui/image-with-fallback.js +165 -0
- package/dist/components/ui/input.d.ts +6 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +8 -0
- package/dist/components/ui/limited-time-offer-badge.d.ts +12 -0
- package/dist/components/ui/limited-time-offer-badge.d.ts.map +1 -0
- package/dist/components/ui/limited-time-offer-badge.js +13 -0
- package/dist/components/ui/loading-skeleton-wrapper.d.ts +6 -0
- package/dist/components/ui/loading-skeleton-wrapper.d.ts.map +1 -0
- package/dist/components/ui/loading-skeleton-wrapper.js +10 -0
- package/dist/components/ui/modal.d.ts +11 -0
- package/dist/components/ui/modal.d.ts.map +1 -0
- package/dist/components/ui/modal.js +26 -0
- package/dist/components/ui/otp-input.d.ts +10 -0
- package/dist/components/ui/otp-input.d.ts.map +1 -0
- package/dist/components/ui/otp-input.js +57 -0
- package/dist/components/ui/out-of-stock-overlay.d.ts +8 -0
- package/dist/components/ui/out-of-stock-overlay.d.ts.map +1 -0
- package/dist/components/ui/out-of-stock-overlay.js +12 -0
- package/dist/components/ui/page-animate-wrapper.d.ts +7 -0
- package/dist/components/ui/page-animate-wrapper.d.ts.map +1 -0
- package/dist/components/ui/page-animate-wrapper.js +13 -0
- package/dist/components/ui/page-content-loader.d.ts +13 -0
- package/dist/components/ui/page-content-loader.d.ts.map +1 -0
- package/dist/components/ui/page-content-loader.js +12 -0
- package/dist/components/ui/page-loader.d.ts +20 -0
- package/dist/components/ui/page-loader.d.ts.map +1 -0
- package/dist/components/ui/page-loader.js +31 -0
- package/dist/components/ui/product-card.d.ts +11 -0
- package/dist/components/ui/product-card.d.ts.map +1 -0
- package/dist/components/ui/product-card.js +139 -0
- package/dist/components/ui/product-rating.d.ts +17 -0
- package/dist/components/ui/product-rating.d.ts.map +1 -0
- package/dist/components/ui/product-rating.js +54 -0
- package/dist/components/ui/product-stock-badge.d.ts +9 -0
- package/dist/components/ui/product-stock-badge.d.ts.map +1 -0
- package/dist/components/ui/product-stock-badge.js +20 -0
- package/dist/components/ui/review-form.d.ts +9 -0
- package/dist/components/ui/review-form.d.ts.map +1 -0
- package/dist/components/ui/review-form.js +28 -0
- package/dist/components/ui/route-skeleton-loader.d.ts +7 -0
- package/dist/components/ui/route-skeleton-loader.d.ts.map +1 -0
- package/dist/components/ui/route-skeleton-loader.js +75 -0
- package/dist/components/ui/sheet.d.ts +29 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +45 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +6 -0
- package/dist/components/ui/skeletons/category-grid-skeleton.d.ts +6 -0
- package/dist/components/ui/skeletons/category-grid-skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeletons/category-grid-skeleton.js +9 -0
- package/dist/components/ui/skeletons/checkout-skeleton.d.ts +2 -0
- package/dist/components/ui/skeletons/checkout-skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeletons/checkout-skeleton.js +4 -0
- package/dist/components/ui/skeletons/index.d.ts +6 -0
- package/dist/components/ui/skeletons/index.d.ts.map +1 -0
- package/dist/components/ui/skeletons/index.js +5 -0
- package/dist/components/ui/skeletons/page-skeleton.d.ts +2 -0
- package/dist/components/ui/skeletons/page-skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeletons/page-skeleton.js +4 -0
- package/dist/components/ui/skeletons/product-card-skeleton.d.ts +2 -0
- package/dist/components/ui/skeletons/product-card-skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeletons/product-card-skeleton.js +4 -0
- package/dist/components/ui/skeletons/product-detail-skeleton.d.ts +2 -0
- package/dist/components/ui/skeletons/product-detail-skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeletons/product-detail-skeleton.js +4 -0
- package/dist/components/ui/skeletons/product-grid-skeleton.d.ts +7 -0
- package/dist/components/ui/skeletons/product-grid-skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeletons/product-grid-skeleton.js +12 -0
- package/dist/components/ui/store-logos.d.ts +43 -0
- package/dist/components/ui/store-logos.d.ts.map +1 -0
- package/dist/components/ui/store-logos.js +83 -0
- package/dist/components/ui/toast.d.ts +20 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/components/ui/toast.js +33 -0
- package/dist/components/ui/video-player.d.ts +48 -0
- package/dist/components/ui/video-player.d.ts.map +1 -0
- package/dist/components/ui/video-player.js +101 -0
- package/dist/editor/alignment-schemas/booking-agenda.d.ts +3 -0
- package/dist/editor/alignment-schemas/booking-agenda.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/booking-agenda.js +145 -0
- package/dist/editor/alignment-schemas/booking-footer-section.d.ts +4 -0
- package/dist/editor/alignment-schemas/booking-footer-section.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/booking-footer-section.js +69 -0
- package/dist/editor/alignment-schemas/booking.d.ts +3 -0
- package/dist/editor/alignment-schemas/booking.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/booking.js +476 -0
- package/dist/editor/alignment-schemas/clothing-minimal.d.ts +3 -0
- package/dist/editor/alignment-schemas/clothing-minimal.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/clothing-minimal.js +363 -0
- package/dist/editor/alignment-schemas/clothing.d.ts +3 -0
- package/dist/editor/alignment-schemas/clothing.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/clothing.js +477 -0
- package/dist/editor/alignment-schemas/electronics-grid.d.ts +3 -0
- package/dist/editor/alignment-schemas/electronics-grid.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/electronics-grid.js +97 -0
- package/dist/editor/alignment-schemas/electronics.d.ts +3 -0
- package/dist/editor/alignment-schemas/electronics.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/electronics.js +145 -0
- package/dist/editor/alignment-schemas/food-modern.d.ts +3 -0
- package/dist/editor/alignment-schemas/food-modern.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/food-modern.js +237 -0
- package/dist/editor/alignment-schemas/food.d.ts +3 -0
- package/dist/editor/alignment-schemas/food.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/food.js +494 -0
- package/dist/editor/alignment-schemas/index.d.ts +15 -0
- package/dist/editor/alignment-schemas/index.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/index.js +50 -0
- package/dist/editor/alignment-schemas/lazy-loader.d.ts +14 -0
- package/dist/editor/alignment-schemas/lazy-loader.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/lazy-loader.js +80 -0
- package/dist/editor/alignment-schemas/metadata.d.ts +25 -0
- package/dist/editor/alignment-schemas/metadata.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/metadata.js +225 -0
- package/dist/editor/alignment-schemas/motivational-speaker.d.ts +3 -0
- package/dist/editor/alignment-schemas/motivational-speaker.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/motivational-speaker.js +185 -0
- package/dist/editor/alignment-schemas/resolve-canvas-inspector-leaf.d.ts +18 -0
- package/dist/editor/alignment-schemas/resolve-canvas-inspector-leaf.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/resolve-canvas-inspector-leaf.js +166 -0
- package/dist/editor/alignment-schemas/resolve-field.d.ts +9 -0
- package/dist/editor/alignment-schemas/resolve-field.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/resolve-field.js +56 -0
- package/dist/editor/alignment-schemas/types.d.ts +53 -0
- package/dist/editor/alignment-schemas/types.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/types.js +1 -0
- package/dist/editor/blocks/defaults/clothing-minimal-home.d.ts +9 -0
- package/dist/editor/blocks/defaults/clothing-minimal-home.d.ts.map +1 -0
- package/dist/editor/blocks/defaults/clothing-minimal-home.js +207 -0
- package/dist/editor/blocks/index.d.ts +4 -0
- package/dist/editor/blocks/index.d.ts.map +1 -0
- package/dist/editor/blocks/index.js +3 -0
- package/dist/editor/blocks/migrate-clothing-minimal.d.ts +5 -0
- package/dist/editor/blocks/migrate-clothing-minimal.d.ts.map +1 -0
- package/dist/editor/blocks/migrate-clothing-minimal.js +140 -0
- package/dist/editor/blocks/nav-outline-utils.d.ts +47 -0
- package/dist/editor/blocks/nav-outline-utils.d.ts.map +1 -0
- package/dist/editor/blocks/nav-outline-utils.js +201 -0
- package/dist/editor/blocks/registry.d.ts +19 -0
- package/dist/editor/blocks/registry.d.ts.map +1 -0
- package/dist/editor/blocks/registry.js +118 -0
- package/dist/editor/blocks/types.d.ts +14 -0
- package/dist/editor/blocks/types.d.ts.map +1 -0
- package/dist/editor/blocks/types.js +14 -0
- package/dist/editor/document/adapter.d.ts +44 -0
- package/dist/editor/document/adapter.d.ts.map +1 -0
- package/dist/editor/document/adapter.js +159 -0
- package/dist/editor/document/block-tree.d.ts +46 -0
- package/dist/editor/document/block-tree.d.ts.map +1 -0
- package/dist/editor/document/block-tree.js +345 -0
- package/dist/editor/document/constants.d.ts +6 -0
- package/dist/editor/document/constants.d.ts.map +1 -0
- package/dist/editor/document/constants.js +14 -0
- package/dist/editor/document/index.d.ts +7 -0
- package/dist/editor/document/index.d.ts.map +1 -0
- package/dist/editor/document/index.js +6 -0
- package/dist/editor/document/layout-id.d.ts +3 -0
- package/dist/editor/document/layout-id.d.ts.map +1 -0
- package/dist/editor/document/layout-id.js +17 -0
- package/dist/editor/document/types.d.ts +91 -0
- package/dist/editor/document/types.d.ts.map +1 -0
- package/dist/editor/document/types.js +1 -0
- package/dist/editor/document/validate.d.ts +11 -0
- package/dist/editor/document/validate.d.ts.map +1 -0
- package/dist/editor/document/validate.js +92 -0
- package/dist/editor/feature-flags.d.ts +11 -0
- package/dist/editor/feature-flags.d.ts.map +1 -0
- package/dist/editor/feature-flags.js +19 -0
- package/dist/editor/index.d.ts +28 -0
- package/dist/editor/index.d.ts.map +1 -0
- package/dist/editor/index.js +72 -0
- package/dist/editor/layout-content-loader.d.ts +13 -0
- package/dist/editor/layout-content-loader.d.ts.map +1 -0
- package/dist/editor/layout-content-loader.js +222 -0
- package/dist/editor/payaza-form/ActiveArrayFocusContext.d.ts +20 -0
- package/dist/editor/payaza-form/ActiveArrayFocusContext.d.ts.map +1 -0
- package/dist/editor/payaza-form/ActiveArrayFocusContext.js +31 -0
- package/dist/editor/payaza-form/ArrayItemManager.d.ts +19 -0
- package/dist/editor/payaza-form/ArrayItemManager.d.ts.map +1 -0
- package/dist/editor/payaza-form/ArrayItemManager.js +62 -0
- package/dist/editor/payaza-form/AssetSelectionContext.d.ts +17 -0
- package/dist/editor/payaza-form/AssetSelectionContext.d.ts.map +1 -0
- package/dist/editor/payaza-form/AssetSelectionContext.js +81 -0
- package/dist/editor/payaza-form/EditorCanvasPreview.d.ts +41 -0
- package/dist/editor/payaza-form/EditorCanvasPreview.d.ts.map +1 -0
- package/dist/editor/payaza-form/EditorCanvasPreview.js +56 -0
- package/dist/editor/payaza-form/EditorLayoutContext.d.ts +8 -0
- package/dist/editor/payaza-form/EditorLayoutContext.d.ts.map +1 -0
- package/dist/editor/payaza-form/EditorLayoutContext.js +6 -0
- package/dist/editor/payaza-form/FieldRenderer.d.ts +16 -0
- package/dist/editor/payaza-form/FieldRenderer.d.ts.map +1 -0
- package/dist/editor/payaza-form/FieldRenderer.js +192 -0
- package/dist/editor/payaza-form/IframePreviewMessageBridge.d.ts +29 -0
- package/dist/editor/payaza-form/IframePreviewMessageBridge.d.ts.map +1 -0
- package/dist/editor/payaza-form/IframePreviewMessageBridge.js +46 -0
- package/dist/editor/payaza-form/PayazaFormEditor.d.ts +12 -0
- package/dist/editor/payaza-form/PayazaFormEditor.d.ts.map +1 -0
- package/dist/editor/payaza-form/PayazaFormEditor.js +1226 -0
- package/dist/editor/payaza-form/PayazaFormEditorFullPage.d.ts +9 -0
- package/dist/editor/payaza-form/PayazaFormEditorFullPage.d.ts.map +1 -0
- package/dist/editor/payaza-form/PayazaFormEditorFullPage.js +6 -0
- package/dist/editor/payaza-form/SliderArrayEditor.d.ts +17 -0
- package/dist/editor/payaza-form/SliderArrayEditor.d.ts.map +1 -0
- package/dist/editor/payaza-form/SliderArrayEditor.js +96 -0
- package/dist/editor/payaza-form/components/ArrayField.d.ts +21 -0
- package/dist/editor/payaza-form/components/ArrayField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/ArrayField.js +18 -0
- package/dist/editor/payaza-form/components/BlockStylesInspector.d.ts +9 -0
- package/dist/editor/payaza-form/components/BlockStylesInspector.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/BlockStylesInspector.js +150 -0
- package/dist/editor/payaza-form/components/BlocksField.d.ts +17 -0
- package/dist/editor/payaza-form/components/BlocksField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/BlocksField.js +108 -0
- package/dist/editor/payaza-form/components/ButtonField.d.ts +15 -0
- package/dist/editor/payaza-form/components/ButtonField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/ButtonField.js +17 -0
- package/dist/editor/payaza-form/components/CanvasGranularInspector.d.ts +16 -0
- package/dist/editor/payaza-form/components/CanvasGranularInspector.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/CanvasGranularInspector.js +32 -0
- package/dist/editor/payaza-form/components/FieldDensityContext.d.ts +10 -0
- package/dist/editor/payaza-form/components/FieldDensityContext.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/FieldDensityContext.js +13 -0
- package/dist/editor/payaza-form/components/IconField.d.ts +12 -0
- package/dist/editor/payaza-form/components/IconField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/IconField.js +42 -0
- package/dist/editor/payaza-form/components/ImageField.d.ts +10 -0
- package/dist/editor/payaza-form/components/ImageField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/ImageField.js +30 -0
- package/dist/editor/payaza-form/components/NumberField.d.ts +14 -0
- package/dist/editor/payaza-form/components/NumberField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/NumberField.js +23 -0
- package/dist/editor/payaza-form/components/ObjectField.d.ts +11 -0
- package/dist/editor/payaza-form/components/ObjectField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/ObjectField.js +7 -0
- package/dist/editor/payaza-form/components/RichTextField.d.ts +15 -0
- package/dist/editor/payaza-form/components/RichTextField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/RichTextField.js +88 -0
- package/dist/editor/payaza-form/components/SectionField.d.ts +14 -0
- package/dist/editor/payaza-form/components/SectionField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/SectionField.js +8 -0
- package/dist/editor/payaza-form/components/SectionSchemaInspector.d.ts +18 -0
- package/dist/editor/payaza-form/components/SectionSchemaInspector.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/SectionSchemaInspector.js +64 -0
- package/dist/editor/payaza-form/components/SegmentedControlField.d.ts +13 -0
- package/dist/editor/payaza-form/components/SegmentedControlField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/SegmentedControlField.js +7 -0
- package/dist/editor/payaza-form/components/StarRatingField.d.ts +13 -0
- package/dist/editor/payaza-form/components/StarRatingField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/StarRatingField.js +16 -0
- package/dist/editor/payaza-form/components/TextField.d.ts +13 -0
- package/dist/editor/payaza-form/components/TextField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/TextField.js +12 -0
- package/dist/editor/payaza-form/components/TextareaField.d.ts +11 -0
- package/dist/editor/payaza-form/components/TextareaField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/TextareaField.js +6 -0
- package/dist/editor/payaza-form/components/ToggleField.d.ts +12 -0
- package/dist/editor/payaza-form/components/ToggleField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/ToggleField.js +15 -0
- package/dist/editor/payaza-form/data-merger.d.ts +28 -0
- package/dist/editor/payaza-form/data-merger.d.ts.map +1 -0
- package/dist/editor/payaza-form/data-merger.js +878 -0
- package/dist/editor/payaza-form/data-transformer.d.ts +28 -0
- package/dist/editor/payaza-form/data-transformer.d.ts.map +1 -0
- package/dist/editor/payaza-form/data-transformer.js +304 -0
- package/dist/editor/payaza-form/engine.d.ts +72 -0
- package/dist/editor/payaza-form/engine.d.ts.map +1 -0
- package/dist/editor/payaza-form/engine.js +140 -0
- package/dist/editor/payaza-form/examples/custom-widgets.example.d.ts +8 -0
- package/dist/editor/payaza-form/examples/custom-widgets.example.d.ts.map +1 -0
- package/dist/editor/payaza-form/examples/custom-widgets.example.js +51 -0
- package/dist/editor/payaza-form/field-renderer-ref.d.ts +4 -0
- package/dist/editor/payaza-form/field-renderer-ref.d.ts.map +1 -0
- package/dist/editor/payaza-form/field-renderer-ref.js +16 -0
- package/dist/editor/payaza-form/index.d.ts +11 -0
- package/dist/editor/payaza-form/index.d.ts.map +1 -0
- package/dist/editor/payaza-form/index.js +8 -0
- package/dist/editor/payaza-form/layout-loader.d.ts +12 -0
- package/dist/editor/payaza-form/layout-loader.d.ts.map +1 -0
- package/dist/editor/payaza-form/layout-loader.js +43 -0
- package/dist/editor/payaza-form/payaza-style-sanitize.d.ts +14 -0
- package/dist/editor/payaza-form/payaza-style-sanitize.d.ts.map +1 -0
- package/dist/editor/payaza-form/payaza-style-sanitize.js +76 -0
- package/dist/editor/payaza-form/preview-message-handler.d.ts +18 -0
- package/dist/editor/payaza-form/preview-message-handler.d.ts.map +1 -0
- package/dist/editor/payaza-form/preview-message-handler.js +89 -0
- package/dist/editor/payaza-form/schema-bridge.d.ts +12 -0
- package/dist/editor/payaza-form/schema-bridge.d.ts.map +1 -0
- package/dist/editor/payaza-form/schema-bridge.js +90 -0
- package/dist/editor/payaza-form/widget-registry.d.ts +94 -0
- package/dist/editor/payaza-form/widget-registry.d.ts.map +1 -0
- package/dist/editor/payaza-form/widget-registry.js +107 -0
- package/dist/editor/shared/AIGenerateModal.d.ts +17 -0
- package/dist/editor/shared/AIGenerateModal.d.ts.map +1 -0
- package/dist/editor/shared/AIGenerateModal.js +59 -0
- package/dist/editor/shared/BlockOutlineTree.d.ts +14 -0
- package/dist/editor/shared/BlockOutlineTree.d.ts.map +1 -0
- package/dist/editor/shared/BlockOutlineTree.js +47 -0
- package/dist/editor/shared/EditorHeader.d.ts +61 -0
- package/dist/editor/shared/EditorHeader.d.ts.map +1 -0
- package/dist/editor/shared/EditorHeader.js +181 -0
- package/dist/editor/shared/EditorNavigator.d.ts +42 -0
- package/dist/editor/shared/EditorNavigator.d.ts.map +1 -0
- package/dist/editor/shared/EditorNavigator.js +44 -0
- package/dist/editor/shared/IframePreview.d.ts +36 -0
- package/dist/editor/shared/IframePreview.d.ts.map +1 -0
- package/dist/editor/shared/IframePreview.js +217 -0
- package/dist/editor/shared/InlineCanvasPreview.d.ts +36 -0
- package/dist/editor/shared/InlineCanvasPreview.d.ts.map +1 -0
- package/dist/editor/shared/InlineCanvasPreview.js +174 -0
- package/dist/editor/shared/LayoutRenderer.d.ts +11 -0
- package/dist/editor/shared/LayoutRenderer.d.ts.map +1 -0
- package/dist/editor/shared/LayoutRenderer.js +7 -0
- package/dist/editor/shared/PageTabs.d.ts +13 -0
- package/dist/editor/shared/PageTabs.d.ts.map +1 -0
- package/dist/editor/shared/PageTabs.js +6 -0
- package/dist/editor/shared/ResizableSidebar.d.ts +14 -0
- package/dist/editor/shared/ResizableSidebar.d.ts.map +1 -0
- package/dist/editor/shared/ResizableSidebar.js +45 -0
- package/dist/editor/shared/index.d.ts +8 -0
- package/dist/editor/shared/index.d.ts.map +1 -0
- package/dist/editor/shared/index.js +7 -0
- package/dist/editor/shared/preview-viewport.d.ts +9 -0
- package/dist/editor/shared/preview-viewport.d.ts.map +1 -0
- package/dist/editor/shared/preview-viewport.js +17 -0
- package/dist/editor/shared/useEditorChromeMetrics.d.ts +15 -0
- package/dist/editor/shared/useEditorChromeMetrics.d.ts.map +1 -0
- package/dist/editor/shared/useEditorChromeMetrics.js +52 -0
- package/dist/editor/types.d.ts +162 -0
- package/dist/editor/types.d.ts.map +1 -0
- package/dist/editor/types.js +1 -0
- package/dist/hooks/use-analytics.d.ts +15 -0
- package/dist/hooks/use-analytics.d.ts.map +1 -0
- package/dist/hooks/use-analytics.js +62 -0
- package/dist/hooks/use-api.d.ts +17 -0
- package/dist/hooks/use-api.d.ts.map +1 -0
- package/dist/hooks/use-api.js +53 -0
- package/dist/hooks/use-cart-api.d.ts +28 -0
- package/dist/hooks/use-cart-api.d.ts.map +1 -0
- package/dist/hooks/use-cart-api.js +116 -0
- package/dist/hooks/use-catalog-loader.d.ts +19 -0
- package/dist/hooks/use-catalog-loader.d.ts.map +1 -0
- package/dist/hooks/use-catalog-loader.js +107 -0
- package/dist/hooks/use-catalog-price-range.d.ts +17 -0
- package/dist/hooks/use-catalog-price-range.d.ts.map +1 -0
- package/dist/hooks/use-catalog-price-range.js +26 -0
- package/dist/hooks/use-checkout-fees.d.ts +16 -0
- package/dist/hooks/use-checkout-fees.d.ts.map +1 -0
- package/dist/hooks/use-checkout-fees.js +105 -0
- package/dist/hooks/use-content-ready.d.ts +17 -0
- package/dist/hooks/use-content-ready.d.ts.map +1 -0
- package/dist/hooks/use-content-ready.js +197 -0
- package/dist/hooks/use-debounce.d.ts +6 -0
- package/dist/hooks/use-debounce.d.ts.map +1 -0
- package/dist/hooks/use-debounce.js +17 -0
- package/dist/hooks/use-multi-store-checkout-fees.d.ts +25 -0
- package/dist/hooks/use-multi-store-checkout-fees.d.ts.map +1 -0
- package/dist/hooks/use-multi-store-checkout-fees.js +116 -0
- package/dist/hooks/use-navigation-loading.d.ts +4 -0
- package/dist/hooks/use-navigation-loading.d.ts.map +1 -0
- package/dist/hooks/use-navigation-loading.js +14 -0
- package/dist/hooks/use-payaza-checkout.d.ts +15 -0
- package/dist/hooks/use-payaza-checkout.d.ts.map +1 -0
- package/dist/hooks/use-payaza-checkout.js +123 -0
- package/dist/hooks/use-product-variation-selection.d.ts +28 -0
- package/dist/hooks/use-product-variation-selection.d.ts.map +1 -0
- package/dist/hooks/use-product-variation-selection.js +53 -0
- package/dist/hooks/use-products-api.d.ts +19 -0
- package/dist/hooks/use-products-api.d.ts.map +1 -0
- package/dist/hooks/use-products-api.js +84 -0
- package/dist/hooks/use-shipping-quote.d.ts +25 -0
- package/dist/hooks/use-shipping-quote.d.ts.map +1 -0
- package/dist/hooks/use-shipping-quote.js +80 -0
- package/dist/hooks/use-store-api.d.ts +12 -0
- package/dist/hooks/use-store-api.d.ts.map +1 -0
- package/dist/hooks/use-store-api.js +73 -0
- package/dist/hooks/usePreviewSlideSync.d.ts +5 -0
- package/dist/hooks/usePreviewSlideSync.d.ts.map +1 -0
- package/dist/hooks/usePreviewSlideSync.js +28 -0
- package/dist/index.d.ts +150 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +164 -0
- package/dist/json/booking-agenda.json +166 -0
- package/dist/json/booking.json +224 -0
- package/dist/json/clothing-minimal.json +203 -0
- package/dist/json/clothing.json +418 -0
- package/dist/json/electronics-grid.json +246 -0
- package/dist/json/electronics.json +303 -0
- package/dist/json/food-modern.json +191 -0
- package/dist/json/food.json +283 -0
- package/dist/json/json-map.d.ts +7 -0
- package/dist/json/json-map.d.ts.map +1 -0
- package/dist/json/json-map.js +36 -0
- package/dist/json/motivational-speaker.json +361 -0
- package/dist/layouts/booking/components/BookingHomePage.d.ts +7 -0
- package/dist/layouts/booking/components/BookingHomePage.d.ts.map +1 -0
- package/dist/layouts/booking/components/BookingHomePage.js +107 -0
- package/dist/layouts/booking/components/BookingMultilineHeading.d.ts +20 -0
- package/dist/layouts/booking/components/BookingMultilineHeading.d.ts.map +1 -0
- package/dist/layouts/booking/components/BookingMultilineHeading.js +32 -0
- package/dist/layouts/booking/components/BookingTestimonialCard.d.ts +10 -0
- package/dist/layouts/booking/components/BookingTestimonialCard.d.ts.map +1 -0
- package/dist/layouts/booking/components/BookingTestimonialCard.js +11 -0
- package/dist/layouts/booking/components/BookingTestimonialsEmptyState.d.ts +9 -0
- package/dist/layouts/booking/components/BookingTestimonialsEmptyState.d.ts.map +1 -0
- package/dist/layouts/booking/components/BookingTestimonialsEmptyState.js +19 -0
- package/dist/layouts/booking/components/booking-about-defaults.d.ts +26 -0
- package/dist/layouts/booking/components/booking-about-defaults.d.ts.map +1 -0
- package/dist/layouts/booking/components/booking-about-defaults.js +99 -0
- package/dist/layouts/booking/components/booking-footer-defaults.d.ts +19 -0
- package/dist/layouts/booking/components/booking-footer-defaults.d.ts.map +1 -0
- package/dist/layouts/booking/components/booking-footer-defaults.js +52 -0
- package/dist/layouts/booking/components/booking-testimonial-defaults.d.ts +21 -0
- package/dist/layouts/booking/components/booking-testimonial-defaults.d.ts.map +1 -0
- package/dist/layouts/booking/components/booking-testimonial-defaults.js +112 -0
- package/dist/layouts/booking/index.d.ts +9 -0
- package/dist/layouts/booking/index.d.ts.map +1 -0
- package/dist/layouts/booking/index.js +9 -0
- package/dist/layouts/booking/pages/AboutPage.d.ts +7 -0
- package/dist/layouts/booking/pages/AboutPage.d.ts.map +1 -0
- package/dist/layouts/booking/pages/AboutPage.js +69 -0
- package/dist/layouts/booking/pages/BookPage.d.ts +8 -0
- package/dist/layouts/booking/pages/BookPage.d.ts.map +1 -0
- package/dist/layouts/booking/pages/BookPage.js +482 -0
- package/dist/layouts/booking/pages/CategoriesPage.d.ts +7 -0
- package/dist/layouts/booking/pages/CategoriesPage.d.ts.map +1 -0
- package/dist/layouts/booking/pages/CategoriesPage.js +30 -0
- package/dist/layouts/booking/pages/CategoryPage.d.ts +8 -0
- package/dist/layouts/booking/pages/CategoryPage.d.ts.map +1 -0
- package/dist/layouts/booking/pages/CategoryPage.js +51 -0
- package/dist/layouts/booking/pages/ContactPage.d.ts +7 -0
- package/dist/layouts/booking/pages/ContactPage.d.ts.map +1 -0
- package/dist/layouts/booking/pages/ContactPage.js +59 -0
- package/dist/layouts/booking/pages/ProductDetailPage.d.ts +8 -0
- package/dist/layouts/booking/pages/ProductDetailPage.d.ts.map +1 -0
- package/dist/layouts/booking/pages/ProductDetailPage.js +456 -0
- package/dist/layouts/booking/pages/ServicesPage.d.ts +9 -0
- package/dist/layouts/booking/pages/ServicesPage.d.ts.map +1 -0
- package/dist/layouts/booking/pages/ServicesPage.js +54 -0
- package/dist/layouts/booking-agenda/components/BookingHomePageAgenda.d.ts +7 -0
- package/dist/layouts/booking-agenda/components/BookingHomePageAgenda.d.ts.map +1 -0
- package/dist/layouts/booking-agenda/components/BookingHomePageAgenda.js +283 -0
- package/dist/layouts/booking-agenda/index.d.ts +9 -0
- package/dist/layouts/booking-agenda/index.d.ts.map +1 -0
- package/dist/layouts/booking-agenda/index.js +9 -0
- package/dist/layouts/booking-agenda/pages/AboutPage.d.ts +7 -0
- package/dist/layouts/booking-agenda/pages/AboutPage.d.ts.map +1 -0
- package/dist/layouts/booking-agenda/pages/AboutPage.js +51 -0
- package/dist/layouts/booking-agenda/pages/BookPage.d.ts +8 -0
- package/dist/layouts/booking-agenda/pages/BookPage.d.ts.map +1 -0
- package/dist/layouts/booking-agenda/pages/BookPage.js +468 -0
- package/dist/layouts/booking-agenda/pages/CategoriesPage.d.ts +7 -0
- package/dist/layouts/booking-agenda/pages/CategoriesPage.d.ts.map +1 -0
- package/dist/layouts/booking-agenda/pages/CategoriesPage.js +23 -0
- package/dist/layouts/booking-agenda/pages/CategoryPage.d.ts +8 -0
- package/dist/layouts/booking-agenda/pages/CategoryPage.d.ts.map +1 -0
- package/dist/layouts/booking-agenda/pages/CategoryPage.js +48 -0
- package/dist/layouts/booking-agenda/pages/ContactPage.d.ts +7 -0
- package/dist/layouts/booking-agenda/pages/ContactPage.d.ts.map +1 -0
- package/dist/layouts/booking-agenda/pages/ContactPage.js +57 -0
- package/dist/layouts/booking-agenda/pages/ProductDetailPage.d.ts +8 -0
- package/dist/layouts/booking-agenda/pages/ProductDetailPage.d.ts.map +1 -0
- package/dist/layouts/booking-agenda/pages/ProductDetailPage.js +456 -0
- package/dist/layouts/booking-agenda/pages/ServicesPage.d.ts +9 -0
- package/dist/layouts/booking-agenda/pages/ServicesPage.d.ts.map +1 -0
- package/dist/layouts/booking-agenda/pages/ServicesPage.js +46 -0
- package/dist/layouts/clothing/components/ClothingHomePage.d.ts +7 -0
- package/dist/layouts/clothing/components/ClothingHomePage.d.ts.map +1 -0
- package/dist/layouts/clothing/components/ClothingHomePage.js +268 -0
- package/dist/layouts/clothing/index.d.ts +8 -0
- package/dist/layouts/clothing/index.d.ts.map +1 -0
- package/dist/layouts/clothing/index.js +8 -0
- package/dist/layouts/clothing/pages/AboutPage.d.ts +7 -0
- package/dist/layouts/clothing/pages/AboutPage.d.ts.map +1 -0
- package/dist/layouts/clothing/pages/AboutPage.js +55 -0
- package/dist/layouts/clothing/pages/CategoriesPage.d.ts +7 -0
- package/dist/layouts/clothing/pages/CategoriesPage.d.ts.map +1 -0
- package/dist/layouts/clothing/pages/CategoriesPage.js +34 -0
- package/dist/layouts/clothing/pages/CategoryPage.d.ts +8 -0
- package/dist/layouts/clothing/pages/CategoryPage.d.ts.map +1 -0
- package/dist/layouts/clothing/pages/CategoryPage.js +77 -0
- package/dist/layouts/clothing/pages/ContactPage.d.ts +7 -0
- package/dist/layouts/clothing/pages/ContactPage.d.ts.map +1 -0
- package/dist/layouts/clothing/pages/ContactPage.js +58 -0
- package/dist/layouts/clothing/pages/ProductDetailPage.d.ts +8 -0
- package/dist/layouts/clothing/pages/ProductDetailPage.d.ts.map +1 -0
- package/dist/layouts/clothing/pages/ProductDetailPage.js +416 -0
- package/dist/layouts/clothing/pages/ProductsPage.d.ts +7 -0
- package/dist/layouts/clothing/pages/ProductsPage.d.ts.map +1 -0
- package/dist/layouts/clothing/pages/ProductsPage.js +269 -0
- package/dist/layouts/clothing/payaza-bindings.d.ts +23 -0
- package/dist/layouts/clothing/payaza-bindings.d.ts.map +1 -0
- package/dist/layouts/clothing/payaza-bindings.js +17 -0
- package/dist/layouts/clothing/styles/clothing.css +80 -0
- package/dist/layouts/clothing-minimal/components/ClothingHomePageMinimal.d.ts +7 -0
- package/dist/layouts/clothing-minimal/components/ClothingHomePageMinimal.d.ts.map +1 -0
- package/dist/layouts/clothing-minimal/components/ClothingHomePageMinimal.js +171 -0
- package/dist/layouts/clothing-minimal/components/clothing-minimal-block-render.d.ts +40 -0
- package/dist/layouts/clothing-minimal/components/clothing-minimal-block-render.d.ts.map +1 -0
- package/dist/layouts/clothing-minimal/components/clothing-minimal-block-render.js +180 -0
- package/dist/layouts/clothing-minimal/index.d.ts +8 -0
- package/dist/layouts/clothing-minimal/index.d.ts.map +1 -0
- package/dist/layouts/clothing-minimal/index.js +8 -0
- package/dist/layouts/clothing-minimal/pages/AboutPage.d.ts +7 -0
- package/dist/layouts/clothing-minimal/pages/AboutPage.d.ts.map +1 -0
- package/dist/layouts/clothing-minimal/pages/AboutPage.js +71 -0
- package/dist/layouts/clothing-minimal/pages/CategoriesPage.d.ts +7 -0
- package/dist/layouts/clothing-minimal/pages/CategoriesPage.d.ts.map +1 -0
- package/dist/layouts/clothing-minimal/pages/CategoriesPage.js +35 -0
- package/dist/layouts/clothing-minimal/pages/CategoryPage.d.ts +8 -0
- package/dist/layouts/clothing-minimal/pages/CategoryPage.d.ts.map +1 -0
- package/dist/layouts/clothing-minimal/pages/CategoryPage.js +56 -0
- package/dist/layouts/clothing-minimal/pages/ContactPage.d.ts +7 -0
- package/dist/layouts/clothing-minimal/pages/ContactPage.d.ts.map +1 -0
- package/dist/layouts/clothing-minimal/pages/ContactPage.js +53 -0
- package/dist/layouts/clothing-minimal/pages/ProductDetailPage.d.ts +8 -0
- package/dist/layouts/clothing-minimal/pages/ProductDetailPage.d.ts.map +1 -0
- package/dist/layouts/clothing-minimal/pages/ProductDetailPage.js +455 -0
- package/dist/layouts/clothing-minimal/pages/ProductsPage.d.ts +7 -0
- package/dist/layouts/clothing-minimal/pages/ProductsPage.d.ts.map +1 -0
- package/dist/layouts/clothing-minimal/pages/ProductsPage.js +274 -0
- package/dist/layouts/electronics/components/ElectronicsCategoriesPage.d.ts +7 -0
- package/dist/layouts/electronics/components/ElectronicsCategoriesPage.d.ts.map +1 -0
- package/dist/layouts/electronics/components/ElectronicsCategoriesPage.js +40 -0
- package/dist/layouts/electronics/components/ElectronicsGridProductCard.d.ts +10 -0
- package/dist/layouts/electronics/components/ElectronicsGridProductCard.d.ts.map +1 -0
- package/dist/layouts/electronics/components/ElectronicsGridProductCard.js +122 -0
- package/dist/layouts/electronics/components/ElectronicsHomePage.d.ts +7 -0
- package/dist/layouts/electronics/components/ElectronicsHomePage.d.ts.map +1 -0
- package/dist/layouts/electronics/components/ElectronicsHomePage.js +104 -0
- package/dist/layouts/electronics/components/ElectronicsPageWrapper.d.ts +8 -0
- package/dist/layouts/electronics/components/ElectronicsPageWrapper.d.ts.map +1 -0
- package/dist/layouts/electronics/components/ElectronicsPageWrapper.js +10 -0
- package/dist/layouts/electronics/components/ElectronicsProductsPage.d.ts +7 -0
- package/dist/layouts/electronics/components/ElectronicsProductsPage.d.ts.map +1 -0
- package/dist/layouts/electronics/components/ElectronicsProductsPage.js +99 -0
- package/dist/layouts/electronics/components/ElectronicsStoreFooter.d.ts +7 -0
- package/dist/layouts/electronics/components/ElectronicsStoreFooter.d.ts.map +1 -0
- package/dist/layouts/electronics/components/ElectronicsStoreFooter.js +11 -0
- package/dist/layouts/electronics/components/ElectronicsStoreHeader.d.ts +7 -0
- package/dist/layouts/electronics/components/ElectronicsStoreHeader.d.ts.map +1 -0
- package/dist/layouts/electronics/components/ElectronicsStoreHeader.js +39 -0
- package/dist/layouts/electronics/index.d.ts +19 -0
- package/dist/layouts/electronics/index.d.ts.map +1 -0
- package/dist/layouts/electronics/index.js +19 -0
- package/dist/layouts/electronics/pages/AboutPage.d.ts +7 -0
- package/dist/layouts/electronics/pages/AboutPage.d.ts.map +1 -0
- package/dist/layouts/electronics/pages/AboutPage.js +51 -0
- package/dist/layouts/electronics/pages/CategoriesPage.d.ts +7 -0
- package/dist/layouts/electronics/pages/CategoriesPage.d.ts.map +1 -0
- package/dist/layouts/electronics/pages/CategoriesPage.js +6 -0
- package/dist/layouts/electronics/pages/CategoryPage.d.ts +8 -0
- package/dist/layouts/electronics/pages/CategoryPage.d.ts.map +1 -0
- package/dist/layouts/electronics/pages/CategoryPage.js +55 -0
- package/dist/layouts/electronics/pages/ContactPage.d.ts +7 -0
- package/dist/layouts/electronics/pages/ContactPage.d.ts.map +1 -0
- package/dist/layouts/electronics/pages/ContactPage.js +57 -0
- package/dist/layouts/electronics/pages/HelpCenterPage.d.ts +7 -0
- package/dist/layouts/electronics/pages/HelpCenterPage.d.ts.map +1 -0
- package/dist/layouts/electronics/pages/HelpCenterPage.js +55 -0
- package/dist/layouts/electronics/pages/PrivacyPolicyPage.d.ts +7 -0
- package/dist/layouts/electronics/pages/PrivacyPolicyPage.d.ts.map +1 -0
- package/dist/layouts/electronics/pages/PrivacyPolicyPage.js +9 -0
- package/dist/layouts/electronics/pages/ProductDetailPage.d.ts +8 -0
- package/dist/layouts/electronics/pages/ProductDetailPage.d.ts.map +1 -0
- package/dist/layouts/electronics/pages/ProductDetailPage.js +453 -0
- package/dist/layouts/electronics/pages/ProductsPage.d.ts +7 -0
- package/dist/layouts/electronics/pages/ProductsPage.d.ts.map +1 -0
- package/dist/layouts/electronics/pages/ProductsPage.js +273 -0
- package/dist/layouts/electronics/pages/ShippingReturnsPage.d.ts +7 -0
- package/dist/layouts/electronics/pages/ShippingReturnsPage.d.ts.map +1 -0
- package/dist/layouts/electronics/pages/ShippingReturnsPage.js +7 -0
- package/dist/layouts/electronics/pages/TermsPage.d.ts +7 -0
- package/dist/layouts/electronics/pages/TermsPage.d.ts.map +1 -0
- package/dist/layouts/electronics/pages/TermsPage.js +9 -0
- package/dist/layouts/electronics/pages/TrackOrderPage.d.ts +7 -0
- package/dist/layouts/electronics/pages/TrackOrderPage.d.ts.map +1 -0
- package/dist/layouts/electronics/pages/TrackOrderPage.js +376 -0
- package/dist/layouts/electronics-grid/components/ElectronicsGridProductCard.d.ts +10 -0
- package/dist/layouts/electronics-grid/components/ElectronicsGridProductCard.d.ts.map +1 -0
- package/dist/layouts/electronics-grid/components/ElectronicsGridProductCard.js +122 -0
- package/dist/layouts/electronics-grid/components/ElectronicsHomePageGrid.d.ts +7 -0
- package/dist/layouts/electronics-grid/components/ElectronicsHomePageGrid.d.ts.map +1 -0
- package/dist/layouts/electronics-grid/components/ElectronicsHomePageGrid.js +112 -0
- package/dist/layouts/electronics-grid/index.d.ts +15 -0
- package/dist/layouts/electronics-grid/index.d.ts.map +1 -0
- package/dist/layouts/electronics-grid/index.js +15 -0
- package/dist/layouts/electronics-grid/pages/AboutPage.d.ts +7 -0
- package/dist/layouts/electronics-grid/pages/AboutPage.d.ts.map +1 -0
- package/dist/layouts/electronics-grid/pages/AboutPage.js +51 -0
- package/dist/layouts/electronics-grid/pages/CategoriesPage.d.ts +7 -0
- package/dist/layouts/electronics-grid/pages/CategoriesPage.d.ts.map +1 -0
- package/dist/layouts/electronics-grid/pages/CategoriesPage.js +6 -0
- package/dist/layouts/electronics-grid/pages/CategoryPage.d.ts +8 -0
- package/dist/layouts/electronics-grid/pages/CategoryPage.d.ts.map +1 -0
- package/dist/layouts/electronics-grid/pages/CategoryPage.js +55 -0
- package/dist/layouts/electronics-grid/pages/ContactPage.d.ts +7 -0
- package/dist/layouts/electronics-grid/pages/ContactPage.d.ts.map +1 -0
- package/dist/layouts/electronics-grid/pages/ContactPage.js +57 -0
- package/dist/layouts/electronics-grid/pages/ElectronicsGridCategoriesPage.d.ts +7 -0
- package/dist/layouts/electronics-grid/pages/ElectronicsGridCategoriesPage.d.ts.map +1 -0
- package/dist/layouts/electronics-grid/pages/ElectronicsGridCategoriesPage.js +26 -0
- package/dist/layouts/electronics-grid/pages/HelpCenterPage.d.ts +7 -0
- package/dist/layouts/electronics-grid/pages/HelpCenterPage.d.ts.map +1 -0
- package/dist/layouts/electronics-grid/pages/HelpCenterPage.js +55 -0
- package/dist/layouts/electronics-grid/pages/PrivacyPolicyPage.d.ts +7 -0
- package/dist/layouts/electronics-grid/pages/PrivacyPolicyPage.d.ts.map +1 -0
- package/dist/layouts/electronics-grid/pages/PrivacyPolicyPage.js +9 -0
- package/dist/layouts/electronics-grid/pages/ProductDetailPage.d.ts +8 -0
- package/dist/layouts/electronics-grid/pages/ProductDetailPage.d.ts.map +1 -0
- package/dist/layouts/electronics-grid/pages/ProductDetailPage.js +453 -0
- package/dist/layouts/electronics-grid/pages/ProductsPage.d.ts +7 -0
- package/dist/layouts/electronics-grid/pages/ProductsPage.d.ts.map +1 -0
- package/dist/layouts/electronics-grid/pages/ProductsPage.js +273 -0
- package/dist/layouts/electronics-grid/pages/ShippingReturnsPage.d.ts +7 -0
- package/dist/layouts/electronics-grid/pages/ShippingReturnsPage.d.ts.map +1 -0
- package/dist/layouts/electronics-grid/pages/ShippingReturnsPage.js +7 -0
- package/dist/layouts/electronics-grid/pages/TermsPage.d.ts +7 -0
- package/dist/layouts/electronics-grid/pages/TermsPage.d.ts.map +1 -0
- package/dist/layouts/electronics-grid/pages/TermsPage.js +9 -0
- package/dist/layouts/electronics-grid/pages/TrackOrderPage.d.ts +7 -0
- package/dist/layouts/electronics-grid/pages/TrackOrderPage.d.ts.map +1 -0
- package/dist/layouts/electronics-grid/pages/TrackOrderPage.js +376 -0
- package/dist/layouts/food/components/FoodHomePage.d.ts +7 -0
- package/dist/layouts/food/components/FoodHomePage.d.ts.map +1 -0
- package/dist/layouts/food/components/FoodHomePage.js +387 -0
- package/dist/layouts/food/index.d.ts +9 -0
- package/dist/layouts/food/index.d.ts.map +1 -0
- package/dist/layouts/food/index.js +9 -0
- package/dist/layouts/food/pages/AboutPage.d.ts +7 -0
- package/dist/layouts/food/pages/AboutPage.d.ts.map +1 -0
- package/dist/layouts/food/pages/AboutPage.js +67 -0
- package/dist/layouts/food/pages/CategoriesPage.d.ts +7 -0
- package/dist/layouts/food/pages/CategoriesPage.d.ts.map +1 -0
- package/dist/layouts/food/pages/CategoriesPage.js +26 -0
- package/dist/layouts/food/pages/CategoryPage.d.ts +8 -0
- package/dist/layouts/food/pages/CategoryPage.d.ts.map +1 -0
- package/dist/layouts/food/pages/CategoryPage.js +65 -0
- package/dist/layouts/food/pages/ContactPage.d.ts +7 -0
- package/dist/layouts/food/pages/ContactPage.d.ts.map +1 -0
- package/dist/layouts/food/pages/ContactPage.js +55 -0
- package/dist/layouts/food/pages/MenuPage.d.ts +8 -0
- package/dist/layouts/food/pages/MenuPage.d.ts.map +1 -0
- package/dist/layouts/food/pages/MenuPage.js +107 -0
- package/dist/layouts/food/pages/ProductDetailPage.d.ts +8 -0
- package/dist/layouts/food/pages/ProductDetailPage.d.ts.map +1 -0
- package/dist/layouts/food/pages/ProductDetailPage.js +506 -0
- package/dist/layouts/food/pages/ProductsPage.d.ts +7 -0
- package/dist/layouts/food/pages/ProductsPage.d.ts.map +1 -0
- package/dist/layouts/food/pages/ProductsPage.js +174 -0
- package/dist/layouts/food-modern/components/FoodHomePageModern.d.ts +7 -0
- package/dist/layouts/food-modern/components/FoodHomePageModern.d.ts.map +1 -0
- package/dist/layouts/food-modern/components/FoodHomePageModern.js +101 -0
- package/dist/layouts/food-modern/index.d.ts +9 -0
- package/dist/layouts/food-modern/index.d.ts.map +1 -0
- package/dist/layouts/food-modern/index.js +9 -0
- package/dist/layouts/food-modern/pages/AboutPage.d.ts +7 -0
- package/dist/layouts/food-modern/pages/AboutPage.d.ts.map +1 -0
- package/dist/layouts/food-modern/pages/AboutPage.js +52 -0
- package/dist/layouts/food-modern/pages/CategoriesPage.d.ts +7 -0
- package/dist/layouts/food-modern/pages/CategoriesPage.d.ts.map +1 -0
- package/dist/layouts/food-modern/pages/CategoriesPage.js +23 -0
- package/dist/layouts/food-modern/pages/CategoryPage.d.ts +8 -0
- package/dist/layouts/food-modern/pages/CategoryPage.d.ts.map +1 -0
- package/dist/layouts/food-modern/pages/CategoryPage.js +64 -0
- package/dist/layouts/food-modern/pages/ContactPage.d.ts +7 -0
- package/dist/layouts/food-modern/pages/ContactPage.d.ts.map +1 -0
- package/dist/layouts/food-modern/pages/ContactPage.js +55 -0
- package/dist/layouts/food-modern/pages/MenuPage.d.ts +8 -0
- package/dist/layouts/food-modern/pages/MenuPage.d.ts.map +1 -0
- package/dist/layouts/food-modern/pages/MenuPage.js +110 -0
- package/dist/layouts/food-modern/pages/ProductDetailPage.d.ts +8 -0
- package/dist/layouts/food-modern/pages/ProductDetailPage.d.ts.map +1 -0
- package/dist/layouts/food-modern/pages/ProductDetailPage.js +450 -0
- package/dist/layouts/food-modern/pages/ProductsPage.d.ts +7 -0
- package/dist/layouts/food-modern/pages/ProductsPage.d.ts.map +1 -0
- package/dist/layouts/food-modern/pages/ProductsPage.js +175 -0
- package/dist/layouts/motivational-speaker/components/MotivationalHomePage.d.ts +7 -0
- package/dist/layouts/motivational-speaker/components/MotivationalHomePage.d.ts.map +1 -0
- package/dist/layouts/motivational-speaker/components/MotivationalHomePage.js +131 -0
- package/dist/layouts/motivational-speaker/components/MotivationalSpeakerPageWrapper.d.ts +3 -0
- package/dist/layouts/motivational-speaker/components/MotivationalSpeakerPageWrapper.d.ts.map +1 -0
- package/dist/layouts/motivational-speaker/components/MotivationalSpeakerPageWrapper.js +7 -0
- package/dist/layouts/motivational-speaker/index.d.ts +10 -0
- package/dist/layouts/motivational-speaker/index.d.ts.map +1 -0
- package/dist/layouts/motivational-speaker/index.js +10 -0
- package/dist/layouts/motivational-speaker/pages/AboutPage.d.ts +7 -0
- package/dist/layouts/motivational-speaker/pages/AboutPage.d.ts.map +1 -0
- package/dist/layouts/motivational-speaker/pages/AboutPage.js +51 -0
- package/dist/layouts/motivational-speaker/pages/CategoryPage.d.ts +8 -0
- package/dist/layouts/motivational-speaker/pages/CategoryPage.d.ts.map +1 -0
- package/dist/layouts/motivational-speaker/pages/CategoryPage.js +72 -0
- package/dist/layouts/motivational-speaker/pages/ContactPage.d.ts +7 -0
- package/dist/layouts/motivational-speaker/pages/ContactPage.d.ts.map +1 -0
- package/dist/layouts/motivational-speaker/pages/ContactPage.js +57 -0
- package/dist/layouts/motivational-speaker/pages/ProductsPage.d.ts +7 -0
- package/dist/layouts/motivational-speaker/pages/ProductsPage.d.ts.map +1 -0
- package/dist/layouts/motivational-speaker/pages/ProductsPage.js +273 -0
- package/dist/layouts/motivational-speaker/pages/ServiceDetailPage.d.ts +8 -0
- package/dist/layouts/motivational-speaker/pages/ServiceDetailPage.d.ts.map +1 -0
- package/dist/layouts/motivational-speaker/pages/ServiceDetailPage.js +153 -0
- package/dist/layouts/motivational-speaker/pages/ServicesPage.d.ts +9 -0
- package/dist/layouts/motivational-speaker/pages/ServicesPage.d.ts.map +1 -0
- package/dist/layouts/motivational-speaker/pages/ServicesPage.js +46 -0
- package/dist/layouts/motivational-speaker/pages/SubscriptionPage.d.ts +7 -0
- package/dist/layouts/motivational-speaker/pages/SubscriptionPage.d.ts.map +1 -0
- package/dist/layouts/motivational-speaker/pages/SubscriptionPage.js +137 -0
- package/dist/layouts/shared/components/BaseStoreLayout.d.ts +8 -0
- package/dist/layouts/shared/components/BaseStoreLayout.d.ts.map +1 -0
- package/dist/layouts/shared/components/BaseStoreLayout.js +49 -0
- package/dist/layouts/shared/components/CartLineQuantityControl.d.ts +12 -0
- package/dist/layouts/shared/components/CartLineQuantityControl.d.ts.map +1 -0
- package/dist/layouts/shared/components/CartLineQuantityControl.js +99 -0
- package/dist/layouts/shared/components/GenericPageWrapper.d.ts +8 -0
- package/dist/layouts/shared/components/GenericPageWrapper.d.ts.map +1 -0
- package/dist/layouts/shared/components/GenericPageWrapper.js +24 -0
- package/dist/layouts/shared/components/ProductPriceFilterSection.d.ts +17 -0
- package/dist/layouts/shared/components/ProductPriceFilterSection.d.ts.map +1 -0
- package/dist/layouts/shared/components/ProductPriceFilterSection.js +128 -0
- package/dist/layouts/shared/components/PromoBanner.d.ts +12 -0
- package/dist/layouts/shared/components/PromoBanner.d.ts.map +1 -0
- package/dist/layouts/shared/components/PromoBanner.js +17 -0
- package/dist/layouts/shared/components/StoreFooter.d.ts +7 -0
- package/dist/layouts/shared/components/StoreFooter.d.ts.map +1 -0
- package/dist/layouts/shared/components/StoreFooter.js +156 -0
- package/dist/layouts/shared/components/StoreHeader.d.ts +8 -0
- package/dist/layouts/shared/components/StoreHeader.d.ts.map +1 -0
- package/dist/layouts/shared/components/StoreHeader.js +111 -0
- package/dist/layouts/shared/components/TestimonialCard.d.ts +8 -0
- package/dist/layouts/shared/components/TestimonialCard.d.ts.map +1 -0
- package/dist/layouts/shared/components/TestimonialCard.js +10 -0
- package/dist/layouts/shared/components/headers/BookingAgendaSidebar.d.ts +8 -0
- package/dist/layouts/shared/components/headers/BookingAgendaSidebar.d.ts.map +1 -0
- package/dist/layouts/shared/components/headers/BookingAgendaSidebar.js +16 -0
- package/dist/layouts/shared/components/headers/ClothingMinimalHeader.d.ts +7 -0
- package/dist/layouts/shared/components/headers/ClothingMinimalHeader.d.ts.map +1 -0
- package/dist/layouts/shared/components/headers/ClothingMinimalHeader.js +39 -0
- package/dist/layouts/shared/components/headers/FoodModernHeader.d.ts +7 -0
- package/dist/layouts/shared/components/headers/FoodModernHeader.d.ts.map +1 -0
- package/dist/layouts/shared/components/headers/FoodModernHeader.js +61 -0
- package/dist/layouts/shared/index.d.ts +23 -0
- package/dist/layouts/shared/index.d.ts.map +1 -0
- package/dist/layouts/shared/index.js +23 -0
- package/dist/layouts/shared/pages/AccountPage.d.ts +7 -0
- package/dist/layouts/shared/pages/AccountPage.d.ts.map +1 -0
- package/dist/layouts/shared/pages/AccountPage.js +549 -0
- package/dist/layouts/shared/pages/CartPage.d.ts +7 -0
- package/dist/layouts/shared/pages/CartPage.d.ts.map +1 -0
- package/dist/layouts/shared/pages/CartPage.js +135 -0
- package/dist/layouts/shared/pages/CheckoutPage.d.ts +7 -0
- package/dist/layouts/shared/pages/CheckoutPage.d.ts.map +1 -0
- package/dist/layouts/shared/pages/CheckoutPage.js +1450 -0
- package/dist/layouts/shared/pages/CookiePolicyPage.d.ts +7 -0
- package/dist/layouts/shared/pages/CookiePolicyPage.d.ts.map +1 -0
- package/dist/layouts/shared/pages/CookiePolicyPage.js +9 -0
- package/dist/layouts/shared/pages/FeatureDisabledPage.d.ts +9 -0
- package/dist/layouts/shared/pages/FeatureDisabledPage.d.ts.map +1 -0
- package/dist/layouts/shared/pages/FeatureDisabledPage.js +8 -0
- package/dist/layouts/shared/pages/HelpCenterPage.d.ts +7 -0
- package/dist/layouts/shared/pages/HelpCenterPage.d.ts.map +1 -0
- package/dist/layouts/shared/pages/HelpCenterPage.js +55 -0
- package/dist/layouts/shared/pages/MaintenancePage.d.ts +7 -0
- package/dist/layouts/shared/pages/MaintenancePage.d.ts.map +1 -0
- package/dist/layouts/shared/pages/MaintenancePage.js +10 -0
- package/dist/layouts/shared/pages/PortfolioPage.d.ts +7 -0
- package/dist/layouts/shared/pages/PortfolioPage.d.ts.map +1 -0
- package/dist/layouts/shared/pages/PortfolioPage.js +130 -0
- package/dist/layouts/shared/pages/PrivacyPolicyPage.d.ts +7 -0
- package/dist/layouts/shared/pages/PrivacyPolicyPage.d.ts.map +1 -0
- package/dist/layouts/shared/pages/PrivacyPolicyPage.js +9 -0
- package/dist/layouts/shared/pages/ShippingReturnsPage.d.ts +7 -0
- package/dist/layouts/shared/pages/ShippingReturnsPage.d.ts.map +1 -0
- package/dist/layouts/shared/pages/ShippingReturnsPage.js +7 -0
- package/dist/layouts/shared/pages/SizeGuidePage.d.ts +7 -0
- package/dist/layouts/shared/pages/SizeGuidePage.d.ts.map +1 -0
- package/dist/layouts/shared/pages/SizeGuidePage.js +10 -0
- package/dist/layouts/shared/pages/StyleGuidePage.d.ts +7 -0
- package/dist/layouts/shared/pages/StyleGuidePage.d.ts.map +1 -0
- package/dist/layouts/shared/pages/StyleGuidePage.js +126 -0
- package/dist/layouts/shared/pages/TeamPage.d.ts +7 -0
- package/dist/layouts/shared/pages/TeamPage.d.ts.map +1 -0
- package/dist/layouts/shared/pages/TeamPage.js +39 -0
- package/dist/layouts/shared/pages/TermsPage.d.ts +7 -0
- package/dist/layouts/shared/pages/TermsPage.d.ts.map +1 -0
- package/dist/layouts/shared/pages/TermsPage.js +9 -0
- package/dist/layouts/shared/pages/TrackOrderPage.d.ts +7 -0
- package/dist/layouts/shared/pages/TrackOrderPage.d.ts.map +1 -0
- package/dist/layouts/shared/pages/TrackOrderPage.js +379 -0
- package/dist/layouts/shared/pages/WishlistPage.d.ts +7 -0
- package/dist/layouts/shared/pages/WishlistPage.d.ts.map +1 -0
- package/dist/layouts/shared/pages/WishlistPage.js +144 -0
- package/dist/layouts/shared/wrappers/BookingAgendaLayout.d.ts +14 -0
- package/dist/layouts/shared/wrappers/BookingAgendaLayout.d.ts.map +1 -0
- package/dist/layouts/shared/wrappers/BookingAgendaLayout.js +152 -0
- package/dist/layouts/shared/wrappers/ClothingLayout.d.ts +10 -0
- package/dist/layouts/shared/wrappers/ClothingLayout.d.ts.map +1 -0
- package/dist/layouts/shared/wrappers/ClothingLayout.js +44 -0
- package/dist/layouts/shared/wrappers/ClothingMinimalLayout.d.ts +8 -0
- package/dist/layouts/shared/wrappers/ClothingMinimalLayout.d.ts.map +1 -0
- package/dist/layouts/shared/wrappers/ClothingMinimalLayout.js +48 -0
- package/dist/layouts/shared/wrappers/ElectronicsLayout.d.ts +8 -0
- package/dist/layouts/shared/wrappers/ElectronicsLayout.d.ts.map +1 -0
- package/dist/layouts/shared/wrappers/ElectronicsLayout.js +40 -0
- package/dist/layouts/shared/wrappers/FoodModernLayout.d.ts +8 -0
- package/dist/layouts/shared/wrappers/FoodModernLayout.d.ts.map +1 -0
- package/dist/layouts/shared/wrappers/FoodModernLayout.js +48 -0
- package/dist/layouts/shared/wrappers/MotivationalLayout.d.ts +8 -0
- package/dist/layouts/shared/wrappers/MotivationalLayout.d.ts.map +1 -0
- package/dist/layouts/shared/wrappers/MotivationalLayout.js +51 -0
- package/dist/layouts/shared/wrappers/StandardLayout.d.ts +8 -0
- package/dist/layouts/shared/wrappers/StandardLayout.d.ts.map +1 -0
- package/dist/layouts/shared/wrappers/StandardLayout.js +45 -0
- package/dist/lib/alignment-schemas.d.ts +51 -0
- package/dist/lib/alignment-schemas.d.ts.map +1 -0
- package/dist/lib/alignment-schemas.js +637 -0
- package/dist/lib/api.d.ts +11 -0
- package/dist/lib/api.d.ts.map +1 -0
- package/dist/lib/api.js +167 -0
- package/dist/lib/auth-context.d.ts +49 -0
- package/dist/lib/auth-context.d.ts.map +1 -0
- package/dist/lib/auth-context.js +296 -0
- package/dist/lib/checkout-availability.d.ts +10 -0
- package/dist/lib/checkout-availability.d.ts.map +1 -0
- package/dist/lib/checkout-availability.js +16 -0
- package/dist/lib/compact-array-items.d.ts +7 -0
- package/dist/lib/compact-array-items.d.ts.map +1 -0
- package/dist/lib/compact-array-items.js +13 -0
- package/dist/lib/content-selectors.d.ts +21 -0
- package/dist/lib/content-selectors.d.ts.map +1 -0
- package/dist/lib/content-selectors.js +75 -0
- package/dist/lib/countries.d.ts +13 -0
- package/dist/lib/countries.d.ts.map +1 -0
- package/dist/lib/countries.js +292 -0
- package/dist/lib/currency-symbols.d.ts +36 -0
- package/dist/lib/currency-symbols.d.ts.map +1 -0
- package/dist/lib/currency-symbols.js +153 -0
- package/dist/lib/guest-user.d.ts +27 -0
- package/dist/lib/guest-user.d.ts.map +1 -0
- package/dist/lib/guest-user.js +71 -0
- package/dist/lib/inventory-utils.d.ts +41 -0
- package/dist/lib/inventory-utils.d.ts.map +1 -0
- package/dist/lib/inventory-utils.js +180 -0
- package/dist/lib/layout-badges.d.ts +4 -0
- package/dist/lib/layout-badges.d.ts.map +1 -0
- package/dist/lib/layout-badges.js +5 -0
- package/dist/lib/layout-config-hydration.d.ts +25 -0
- package/dist/lib/layout-config-hydration.d.ts.map +1 -0
- package/dist/lib/layout-config-hydration.js +264 -0
- package/dist/lib/layout-field-normalize.d.ts +18 -0
- package/dist/lib/layout-field-normalize.d.ts.map +1 -0
- package/dist/lib/layout-field-normalize.js +190 -0
- package/dist/lib/layout-route-utils.d.ts +30 -0
- package/dist/lib/layout-route-utils.d.ts.map +1 -0
- package/dist/lib/layout-route-utils.js +79 -0
- package/dist/lib/limited-time-offer.d.ts +6 -0
- package/dist/lib/limited-time-offer.d.ts.map +1 -0
- package/dist/lib/limited-time-offer.js +24 -0
- package/dist/lib/loading-context.d.ts +20 -0
- package/dist/lib/loading-context.d.ts.map +1 -0
- package/dist/lib/loading-context.js +212 -0
- package/dist/lib/mixpanel.d.ts +11 -0
- package/dist/lib/mixpanel.d.ts.map +1 -0
- package/dist/lib/mixpanel.js +61 -0
- package/dist/lib/mock-stores.d.ts +24 -0
- package/dist/lib/mock-stores.d.ts.map +1 -0
- package/dist/lib/mock-stores.js +2106 -0
- package/dist/lib/order-success-cart.d.ts +5 -0
- package/dist/lib/order-success-cart.d.ts.map +1 -0
- package/dist/lib/order-success-cart.js +50 -0
- package/dist/lib/payaza-checkout.d.ts +147 -0
- package/dist/lib/payaza-checkout.d.ts.map +1 -0
- package/dist/lib/payaza-checkout.js +717 -0
- package/dist/lib/payaza-section-styles.d.ts +16 -0
- package/dist/lib/payaza-section-styles.d.ts.map +1 -0
- package/dist/lib/payaza-section-styles.js +93 -0
- package/dist/lib/preview-data.d.ts +58 -0
- package/dist/lib/preview-data.d.ts.map +1 -0
- package/dist/lib/preview-data.js +2576 -0
- package/dist/lib/product-variation-utils.d.ts +19 -0
- package/dist/lib/product-variation-utils.d.ts.map +1 -0
- package/dist/lib/product-variation-utils.js +185 -0
- package/dist/lib/rich-html.d.ts +38 -0
- package/dist/lib/rich-html.d.ts.map +1 -0
- package/dist/lib/rich-html.js +272 -0
- package/dist/lib/services/analytics.service.d.ts +59 -0
- package/dist/lib/services/analytics.service.d.ts.map +1 -0
- package/dist/lib/services/analytics.service.js +382 -0
- package/dist/lib/services/auth.service.d.ts +63 -0
- package/dist/lib/services/auth.service.d.ts.map +1 -0
- package/dist/lib/services/auth.service.js +101 -0
- package/dist/lib/services/booking.service.d.ts +53 -0
- package/dist/lib/services/booking.service.d.ts.map +1 -0
- package/dist/lib/services/booking.service.js +52 -0
- package/dist/lib/services/category.service.d.ts +21 -0
- package/dist/lib/services/category.service.d.ts.map +1 -0
- package/dist/lib/services/category.service.js +41 -0
- package/dist/lib/services/checkout.service.d.ts +168 -0
- package/dist/lib/services/checkout.service.d.ts.map +1 -0
- package/dist/lib/services/checkout.service.js +48 -0
- package/dist/lib/services/contact.service.d.ts +26 -0
- package/dist/lib/services/contact.service.d.ts.map +1 -0
- package/dist/lib/services/contact.service.js +23 -0
- package/dist/lib/services/customer.service.d.ts +54 -0
- package/dist/lib/services/customer.service.d.ts.map +1 -0
- package/dist/lib/services/customer.service.js +64 -0
- package/dist/lib/services/fees.service.d.ts +85 -0
- package/dist/lib/services/fees.service.d.ts.map +1 -0
- package/dist/lib/services/fees.service.js +147 -0
- package/dist/lib/services/index.d.ts +19 -0
- package/dist/lib/services/index.d.ts.map +1 -0
- package/dist/lib/services/index.js +18 -0
- package/dist/lib/services/location.service.d.ts +31 -0
- package/dist/lib/services/location.service.d.ts.map +1 -0
- package/dist/lib/services/location.service.js +25 -0
- package/dist/lib/services/order.service.d.ts +5 -0
- package/dist/lib/services/order.service.d.ts.map +1 -0
- package/dist/lib/services/order.service.js +12 -0
- package/dist/lib/services/payment.service.d.ts +56 -0
- package/dist/lib/services/payment.service.d.ts.map +1 -0
- package/dist/lib/services/payment.service.js +122 -0
- package/dist/lib/services/product.service.d.ts +92 -0
- package/dist/lib/services/product.service.d.ts.map +1 -0
- package/dist/lib/services/product.service.js +86 -0
- package/dist/lib/services/promo.service.d.ts +31 -0
- package/dist/lib/services/promo.service.d.ts.map +1 -0
- package/dist/lib/services/promo.service.js +29 -0
- package/dist/lib/services/review.service.d.ts +47 -0
- package/dist/lib/services/review.service.d.ts.map +1 -0
- package/dist/lib/services/review.service.js +54 -0
- package/dist/lib/services/service.service.d.ts +55 -0
- package/dist/lib/services/service.service.d.ts.map +1 -0
- package/dist/lib/services/service.service.js +37 -0
- package/dist/lib/services/shipping.service.d.ts +62 -0
- package/dist/lib/services/shipping.service.d.ts.map +1 -0
- package/dist/lib/services/shipping.service.js +39 -0
- package/dist/lib/services/store.service.d.ts +89 -0
- package/dist/lib/services/store.service.d.ts.map +1 -0
- package/dist/lib/services/store.service.js +41 -0
- package/dist/lib/shipping-address.util.d.ts +76 -0
- package/dist/lib/shipping-address.util.d.ts.map +1 -0
- package/dist/lib/shipping-address.util.js +149 -0
- package/dist/lib/shipping-settings.util.d.ts +4 -0
- package/dist/lib/shipping-settings.util.d.ts.map +1 -0
- package/dist/lib/shipping-settings.util.js +6 -0
- package/dist/lib/store-config-utils.d.ts +50 -0
- package/dist/lib/store-config-utils.d.ts.map +1 -0
- package/dist/lib/store-config-utils.js +1737 -0
- package/dist/lib/store-config.d.ts +4 -0
- package/dist/lib/store-config.d.ts.map +1 -0
- package/dist/lib/store-config.js +4 -0
- package/dist/lib/store-context.d.ts +69 -0
- package/dist/lib/store-context.d.ts.map +1 -0
- package/dist/lib/store-context.js +483 -0
- package/dist/lib/store-types.d.ts +921 -0
- package/dist/lib/store-types.d.ts.map +1 -0
- package/dist/lib/store-types.js +1 -0
- package/dist/lib/template-pages.d.ts +8 -0
- package/dist/lib/template-pages.d.ts.map +1 -0
- package/dist/lib/template-pages.js +62 -0
- package/dist/lib/utils/asset-helpers.d.ts +111 -0
- package/dist/lib/utils/asset-helpers.d.ts.map +1 -0
- package/dist/lib/utils/asset-helpers.js +462 -0
- package/dist/lib/utils/catalog-price-bounds.d.ts +13 -0
- package/dist/lib/utils/catalog-price-bounds.d.ts.map +1 -0
- package/dist/lib/utils/catalog-price-bounds.js +24 -0
- package/dist/lib/utils/category-tree.d.ts +25 -0
- package/dist/lib/utils/category-tree.d.ts.map +1 -0
- package/dist/lib/utils/category-tree.js +85 -0
- package/dist/lib/utils/demo-detection.d.ts +23 -0
- package/dist/lib/utils/demo-detection.d.ts.map +1 -0
- package/dist/lib/utils/demo-detection.js +36 -0
- package/dist/lib/utils/editor-preview.d.ts +42 -0
- package/dist/lib/utils/editor-preview.d.ts.map +1 -0
- package/dist/lib/utils/editor-preview.js +214 -0
- package/dist/lib/utils/fee-calculations.d.ts +35 -0
- package/dist/lib/utils/fee-calculations.d.ts.map +1 -0
- package/dist/lib/utils/fee-calculations.js +81 -0
- package/dist/lib/utils/footer-nav-defaults.d.ts +11 -0
- package/dist/lib/utils/footer-nav-defaults.d.ts.map +1 -0
- package/dist/lib/utils/footer-nav-defaults.js +67 -0
- package/dist/lib/utils/idempotency-key.d.ts +15 -0
- package/dist/lib/utils/idempotency-key.d.ts.map +1 -0
- package/dist/lib/utils/idempotency-key.js +22 -0
- package/dist/lib/utils/index.d.ts +45 -0
- package/dist/lib/utils/index.d.ts.map +1 -0
- package/dist/lib/utils/index.js +197 -0
- package/dist/lib/utils/mobile-editor.d.ts +13 -0
- package/dist/lib/utils/mobile-editor.d.ts.map +1 -0
- package/dist/lib/utils/mobile-editor.js +34 -0
- package/dist/lib/utils/phone-format.d.ts +6 -0
- package/dist/lib/utils/phone-format.d.ts.map +1 -0
- package/dist/lib/utils/phone-format.js +17 -0
- package/dist/lib/utils/product-catalog.d.ts +11 -0
- package/dist/lib/utils/product-catalog.d.ts.map +1 -0
- package/dist/lib/utils/product-catalog.js +40 -0
- package/dist/lib/utils/product-images.d.ts +20 -0
- package/dist/lib/utils/product-images.d.ts.map +1 -0
- package/dist/lib/utils/product-images.js +31 -0
- package/dist/lib/utils/product-share.d.ts +17 -0
- package/dist/lib/utils/product-share.d.ts.map +1 -0
- package/dist/lib/utils/product-share.js +48 -0
- package/dist/lib/utils/scroll-to-top.util.d.ts +9 -0
- package/dist/lib/utils/scroll-to-top.util.d.ts.map +1 -0
- package/dist/lib/utils/scroll-to-top.util.js +18 -0
- package/dist/lib/utils/url-helpers.d.ts +30 -0
- package/dist/lib/utils/url-helpers.d.ts.map +1 -0
- package/dist/lib/utils/url-helpers.js +61 -0
- package/dist/lib/utils/video-helpers.d.ts +32 -0
- package/dist/lib/utils/video-helpers.d.ts.map +1 -0
- package/dist/lib/utils/video-helpers.js +210 -0
- package/dist/preview/LayoutPreview.d.ts +14 -0
- package/dist/preview/LayoutPreview.d.ts.map +1 -0
- package/dist/preview/LayoutPreview.js +122 -0
- package/dist/preview/PreviewRouter.d.ts +9 -0
- package/dist/preview/PreviewRouter.d.ts.map +1 -0
- package/dist/preview/PreviewRouter.js +332 -0
- package/dist/preview/ShadowDOMWrapper.d.ts +18 -0
- package/dist/preview/ShadowDOMWrapper.d.ts.map +1 -0
- package/dist/preview/ShadowDOMWrapper.js +80 -0
- package/dist/preview/canvas/PreviewBlockToolbar.d.ts +23 -0
- package/dist/preview/canvas/PreviewBlockToolbar.d.ts.map +1 -0
- package/dist/preview/canvas/PreviewBlockToolbar.js +113 -0
- package/dist/preview/canvas/PreviewCanvasEnhancer.d.ts +17 -0
- package/dist/preview/canvas/PreviewCanvasEnhancer.d.ts.map +1 -0
- package/dist/preview/canvas/PreviewCanvasEnhancer.js +741 -0
- package/dist/preview/canvas/PreviewCanvasStyles.d.ts +4 -0
- package/dist/preview/canvas/PreviewCanvasStyles.d.ts.map +1 -0
- package/dist/preview/canvas/PreviewCanvasStyles.js +51 -0
- package/dist/preview/canvas/extract-editable-plain-text.d.ts +11 -0
- package/dist/preview/canvas/extract-editable-plain-text.d.ts.map +1 -0
- package/dist/preview/canvas/extract-editable-plain-text.js +65 -0
- package/dist/preview/canvas/field-key.d.ts +34 -0
- package/dist/preview/canvas/field-key.d.ts.map +1 -0
- package/dist/preview/canvas/field-key.js +62 -0
- package/dist/preview/canvas/preview-editable-commit.util.d.ts +3 -0
- package/dist/preview/canvas/preview-editable-commit.util.d.ts.map +1 -0
- package/dist/preview/canvas/preview-editable-commit.util.js +11 -0
- package/dist/preview/canvas/preview-flush-await.d.ts +6 -0
- package/dist/preview/canvas/preview-flush-await.d.ts.map +1 -0
- package/dist/preview/canvas/preview-flush-await.js +23 -0
- package/dist/preview/canvas/preview-flush-handle.d.ts +13 -0
- package/dist/preview/canvas/preview-flush-handle.d.ts.map +1 -0
- package/dist/preview/canvas/preview-flush-handle.js +3 -0
- package/dist/preview/canvas/preview-isolation.d.ts +9 -0
- package/dist/preview/canvas/preview-isolation.d.ts.map +1 -0
- package/dist/preview/canvas/preview-isolation.js +10 -0
- package/dist/preview/canvas/preview-messages.d.ts +65 -0
- package/dist/preview/canvas/preview-messages.d.ts.map +1 -0
- package/dist/preview/canvas/preview-messages.js +17 -0
- package/dist/preview/canvas/preview-route.d.ts +4 -0
- package/dist/preview/canvas/preview-route.d.ts.map +1 -0
- package/dist/preview/canvas/preview-route.js +76 -0
- package/dist/preview/index.d.ts +13 -0
- package/dist/preview/index.d.ts.map +1 -0
- package/dist/preview/index.js +12 -0
- package/dist/preview/route-audit.d.ts +17 -0
- package/dist/preview/route-audit.d.ts.map +1 -0
- package/dist/preview/route-audit.js +54 -0
- package/dist/styles/index.css +10602 -0
- package/dist/utils/date.d.ts +20 -0
- package/dist/utils/date.d.ts.map +1 -0
- package/dist/utils/date.js +47 -0
- package/package.json +199 -0
|
@@ -0,0 +1,741 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
4
|
+
import { PreviewBlockToolbar } from './PreviewBlockToolbar.js';
|
|
5
|
+
import { parsePayazaFieldKey } from './field-key.js';
|
|
6
|
+
import { PREVIEW_MSG } from './preview-messages.js';
|
|
7
|
+
import { buildPayazaRichCommitFromEditorHtml, coercePayazaRichLinkHref, sanitizePayazaRichHtml, wrapPlainTextAsParagraph, } from '../../lib/rich-html.js';
|
|
8
|
+
import { extractEditablePlainText, flattenMultilineEditableElement } from './extract-editable-plain-text.js';
|
|
9
|
+
import { shouldDeferEditableFocusOutCommit } from './preview-editable-commit.util.js';
|
|
10
|
+
import { prefersInlineCanvasTextEdit } from '../../lib/utils/mobile-editor.js';
|
|
11
|
+
import { PREVIEW_ACTIVE_EDITABLE_SELECTOR, } from './preview-flush-handle.js';
|
|
12
|
+
function schemaSectionKeyFromElement(el) {
|
|
13
|
+
const root = el?.closest('[data-section]');
|
|
14
|
+
if (!root)
|
|
15
|
+
return null;
|
|
16
|
+
const mapped = root.getAttribute('data-payaza-section-key');
|
|
17
|
+
return mapped || root.getAttribute('data-section');
|
|
18
|
+
}
|
|
19
|
+
function postToParent(payload) {
|
|
20
|
+
if (typeof window !== 'undefined' && window.parent && window.parent !== window) {
|
|
21
|
+
window.parent.postMessage(payload, '*');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export function PreviewCanvasEnhancer({ enabled, interactionMode, children, previewContext = null, onPreviewEvent, scrollRootRef, previewFlushRef, }) {
|
|
25
|
+
const [toolbarVisible, setToolbarVisible] = useState(false);
|
|
26
|
+
const [toolbarRect, setToolbarRect] = useState(null);
|
|
27
|
+
const [toolbarMode, setToolbarMode] = useState('text');
|
|
28
|
+
const selectedElRef = useRef(null);
|
|
29
|
+
const imageFieldRef = useRef(null);
|
|
30
|
+
const editingRef = useRef(false);
|
|
31
|
+
const [isRichFormatting, setIsRichFormatting] = useState(false);
|
|
32
|
+
const [toolbarEditableActive, setToolbarEditableActive] = useState(false);
|
|
33
|
+
const commitEditableElementRef = useRef(null);
|
|
34
|
+
const previewCtxRef = useRef(null);
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
const next = previewContext?.layoutId && previewContext?.pageId ? previewContext : null;
|
|
37
|
+
previewCtxRef.current = next;
|
|
38
|
+
if (typeof window !== 'undefined' && next) {
|
|
39
|
+
window.__PAYAZA_PREVIEW_CTX__ =
|
|
40
|
+
next;
|
|
41
|
+
}
|
|
42
|
+
}, [previewContext]);
|
|
43
|
+
const dispatchPreviewEvent = useCallback((payload) => {
|
|
44
|
+
if (onPreviewEvent) {
|
|
45
|
+
onPreviewEvent(payload);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
postToParent(payload);
|
|
49
|
+
}
|
|
50
|
+
}, [onPreviewEvent]);
|
|
51
|
+
const resolveCtx = useCallback(() => {
|
|
52
|
+
if (previewCtxRef.current?.layoutId && previewCtxRef.current.pageId)
|
|
53
|
+
return previewCtxRef.current;
|
|
54
|
+
if (typeof window !== 'undefined') {
|
|
55
|
+
const w = window;
|
|
56
|
+
if (w.__PAYAZA_PREVIEW_CTX__?.layoutId && w.__PAYAZA_PREVIEW_CTX__.pageId)
|
|
57
|
+
return w.__PAYAZA_PREVIEW_CTX__;
|
|
58
|
+
}
|
|
59
|
+
return null;
|
|
60
|
+
}, []);
|
|
61
|
+
const clearSelection = useCallback(() => {
|
|
62
|
+
if (selectedElRef.current) {
|
|
63
|
+
const el = selectedElRef.current;
|
|
64
|
+
if (el.getAttribute('contenteditable') === 'true') {
|
|
65
|
+
commitEditableElementRef.current?.(el);
|
|
66
|
+
}
|
|
67
|
+
el.removeAttribute('data-payaza-selected');
|
|
68
|
+
if (el.getAttribute('contenteditable') === 'true') {
|
|
69
|
+
el.removeAttribute('contenteditable');
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
selectedElRef.current = null;
|
|
73
|
+
imageFieldRef.current = null;
|
|
74
|
+
setToolbarVisible(false);
|
|
75
|
+
setToolbarRect(null);
|
|
76
|
+
editingRef.current = false;
|
|
77
|
+
setIsRichFormatting(false);
|
|
78
|
+
setToolbarEditableActive(false);
|
|
79
|
+
}, []);
|
|
80
|
+
const updateToolbarPos = useCallback(() => {
|
|
81
|
+
const el = selectedElRef.current;
|
|
82
|
+
if (!el)
|
|
83
|
+
return;
|
|
84
|
+
setToolbarRect(el.getBoundingClientRect());
|
|
85
|
+
}, []);
|
|
86
|
+
useEffect(() => {
|
|
87
|
+
if (!enabled || interactionMode !== 'edit') {
|
|
88
|
+
clearSelection();
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const onScrollOrResize = () => updateToolbarPos();
|
|
92
|
+
const scrollRoot = scrollRootRef?.current;
|
|
93
|
+
if (scrollRoot) {
|
|
94
|
+
scrollRoot.addEventListener('scroll', onScrollOrResize, { passive: true });
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
window.addEventListener('scroll', onScrollOrResize, true);
|
|
98
|
+
}
|
|
99
|
+
window.addEventListener('resize', onScrollOrResize);
|
|
100
|
+
return () => {
|
|
101
|
+
if (scrollRoot) {
|
|
102
|
+
scrollRoot.removeEventListener('scroll', onScrollOrResize);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
window.removeEventListener('scroll', onScrollOrResize, true);
|
|
106
|
+
}
|
|
107
|
+
window.removeEventListener('resize', onScrollOrResize);
|
|
108
|
+
};
|
|
109
|
+
}, [enabled, interactionMode, clearSelection, updateToolbarPos, scrollRootRef]);
|
|
110
|
+
const postElementFocus = useCallback((sectionKey, fieldPath, kind) => {
|
|
111
|
+
const ctx = resolveCtx();
|
|
112
|
+
if (!ctx)
|
|
113
|
+
return;
|
|
114
|
+
dispatchPreviewEvent({
|
|
115
|
+
type: PREVIEW_MSG.ELEMENT_FOCUS,
|
|
116
|
+
layoutId: ctx.layoutId,
|
|
117
|
+
pageId: ctx.pageId,
|
|
118
|
+
sectionKey,
|
|
119
|
+
fieldPath,
|
|
120
|
+
elementKind: kind,
|
|
121
|
+
});
|
|
122
|
+
}, [resolveCtx]);
|
|
123
|
+
useEffect(() => {
|
|
124
|
+
if (!enabled || interactionMode !== 'edit')
|
|
125
|
+
return;
|
|
126
|
+
const commitEditableElement = (t, opts) => {
|
|
127
|
+
const key = t.getAttribute('data-payaza-edit');
|
|
128
|
+
if (!key)
|
|
129
|
+
return;
|
|
130
|
+
const parsed = parsePayazaFieldKey(key);
|
|
131
|
+
if (!parsed)
|
|
132
|
+
return;
|
|
133
|
+
const ctx = resolveCtx();
|
|
134
|
+
if (!ctx?.layoutId || !ctx.pageId)
|
|
135
|
+
return;
|
|
136
|
+
const rich = t.getAttribute('data-payaza-rich') === 'inline';
|
|
137
|
+
const inner = t.innerHTML ?? '';
|
|
138
|
+
if (!opts?.keepEditing) {
|
|
139
|
+
t.removeAttribute('contenteditable');
|
|
140
|
+
editingRef.current = false;
|
|
141
|
+
setToolbarEditableActive(false);
|
|
142
|
+
}
|
|
143
|
+
if (rich) {
|
|
144
|
+
const payload = buildPayazaRichCommitFromEditorHtml(inner, { keepRaw: true });
|
|
145
|
+
dispatchPreviewEvent({
|
|
146
|
+
type: PREVIEW_MSG.FIELD_COMMIT,
|
|
147
|
+
layoutId: ctx.layoutId,
|
|
148
|
+
pageId: ctx.pageId,
|
|
149
|
+
sectionKey: parsed.sectionKey,
|
|
150
|
+
fieldPath: parsed.fieldPath,
|
|
151
|
+
value: payload.plainText ?? '',
|
|
152
|
+
richText: payload,
|
|
153
|
+
elementKind: 'richHtml',
|
|
154
|
+
});
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
const value = extractEditablePlainText(t);
|
|
158
|
+
dispatchPreviewEvent({
|
|
159
|
+
type: PREVIEW_MSG.FIELD_COMMIT,
|
|
160
|
+
layoutId: ctx.layoutId,
|
|
161
|
+
pageId: ctx.pageId,
|
|
162
|
+
sectionKey: parsed.sectionKey,
|
|
163
|
+
fieldPath: parsed.fieldPath,
|
|
164
|
+
value,
|
|
165
|
+
elementKind: 'plainText',
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
commitEditableElementRef.current = commitEditableElement;
|
|
169
|
+
const deselectPrevious = (nextEl) => {
|
|
170
|
+
const prev = selectedElRef.current;
|
|
171
|
+
if (!prev || prev === nextEl)
|
|
172
|
+
return;
|
|
173
|
+
if (prev.getAttribute('contenteditable') === 'true') {
|
|
174
|
+
commitEditableElement(prev);
|
|
175
|
+
}
|
|
176
|
+
prev.removeAttribute('data-payaza-selected');
|
|
177
|
+
};
|
|
178
|
+
const dispatchFlushAck = () => {
|
|
179
|
+
dispatchPreviewEvent({ type: PREVIEW_MSG.FLUSH_EDITS_ACK });
|
|
180
|
+
};
|
|
181
|
+
const onPasteEditable = (e) => {
|
|
182
|
+
const t = e.target;
|
|
183
|
+
const editable = t?.closest?.('[data-payaza-edit][contenteditable="true"]');
|
|
184
|
+
if (!editable)
|
|
185
|
+
return;
|
|
186
|
+
e.preventDefault();
|
|
187
|
+
const plain = e.clipboardData?.getData('text/plain') ?? '';
|
|
188
|
+
const rich = editable.getAttribute('data-payaza-rich') === 'inline';
|
|
189
|
+
if (rich) {
|
|
190
|
+
const html = e.clipboardData?.getData('text/html');
|
|
191
|
+
if (html?.trim()) {
|
|
192
|
+
document.execCommand('insertHTML', false, sanitizePayazaRichHtml(html));
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
document.execCommand('insertHTML', false, wrapPlainTextAsParagraph(plain));
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
document.execCommand('insertText', false, plain);
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
let inputCommitTimer = null;
|
|
203
|
+
const onFlushEditsMessage = (event) => {
|
|
204
|
+
if (event.data?.type !== PREVIEW_MSG.FLUSH_EDITS)
|
|
205
|
+
return;
|
|
206
|
+
if (inputCommitTimer) {
|
|
207
|
+
clearTimeout(inputCommitTimer);
|
|
208
|
+
inputCommitTimer = null;
|
|
209
|
+
}
|
|
210
|
+
const active = document.querySelector(PREVIEW_ACTIVE_EDITABLE_SELECTOR);
|
|
211
|
+
if (active) {
|
|
212
|
+
commitEditableElement(active);
|
|
213
|
+
active.blur();
|
|
214
|
+
}
|
|
215
|
+
// Defer ACK one macrotask so FIELD_COMMIT postMessages are processed before save reads overlay.
|
|
216
|
+
setTimeout(() => dispatchFlushAck(), 0);
|
|
217
|
+
};
|
|
218
|
+
const flushActiveEditsSync = () => {
|
|
219
|
+
if (inputCommitTimer) {
|
|
220
|
+
clearTimeout(inputCommitTimer);
|
|
221
|
+
inputCommitTimer = null;
|
|
222
|
+
}
|
|
223
|
+
const active = document.querySelector(PREVIEW_ACTIVE_EDITABLE_SELECTOR);
|
|
224
|
+
if (!active)
|
|
225
|
+
return false;
|
|
226
|
+
commitEditableElement(active);
|
|
227
|
+
active.blur();
|
|
228
|
+
return true;
|
|
229
|
+
};
|
|
230
|
+
if (previewFlushRef) {
|
|
231
|
+
previewFlushRef.current = { flushActiveEdits: flushActiveEditsSync };
|
|
232
|
+
}
|
|
233
|
+
document.addEventListener('paste', onPasteEditable, true);
|
|
234
|
+
window.addEventListener('message', onFlushEditsMessage);
|
|
235
|
+
const beginTextEditing = (textEl) => {
|
|
236
|
+
if (textEl.getAttribute('data-payaza-multiline') === 'true') {
|
|
237
|
+
flattenMultilineEditableElement(textEl);
|
|
238
|
+
}
|
|
239
|
+
editingRef.current = true;
|
|
240
|
+
setToolbarEditableActive(true);
|
|
241
|
+
textEl.setAttribute('contenteditable', 'true');
|
|
242
|
+
textEl.focus();
|
|
243
|
+
};
|
|
244
|
+
const onPointerDown = (e) => {
|
|
245
|
+
const ctx = resolveCtx();
|
|
246
|
+
const t = e.target;
|
|
247
|
+
if (t.closest('[role="toolbar"]'))
|
|
248
|
+
return;
|
|
249
|
+
const sectionEl = t.closest('[data-section]');
|
|
250
|
+
const ratingStarEl = t.closest('[data-payaza-rating-star]');
|
|
251
|
+
const ratingEl = (ratingStarEl?.closest('[data-payaza-rating]') ??
|
|
252
|
+
t.closest('[data-payaza-rating]'));
|
|
253
|
+
const textEl = t.closest('[data-payaza-edit]');
|
|
254
|
+
const imgEl = t.closest('[data-payaza-image]');
|
|
255
|
+
const iconEl = t.closest('[data-payaza-icon]');
|
|
256
|
+
const groupEl = t.closest('[data-payaza-group]');
|
|
257
|
+
if (!textEl && !imgEl && !iconEl && !ratingEl && !groupEl && !sectionEl) {
|
|
258
|
+
if (editingRef.current && selectedElRef.current?.contains(t))
|
|
259
|
+
return;
|
|
260
|
+
clearSelection();
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
// Icon elements open the icon picker in the sidebar (highest priority after images).
|
|
264
|
+
if (iconEl && !imgEl) {
|
|
265
|
+
deselectPrevious(iconEl);
|
|
266
|
+
selectedElRef.current = iconEl;
|
|
267
|
+
imageFieldRef.current = null;
|
|
268
|
+
setToolbarMode('image'); // reuse image toolbar (no inline editing needed)
|
|
269
|
+
setIsRichFormatting(false);
|
|
270
|
+
setToolbarEditableActive(false);
|
|
271
|
+
iconEl.setAttribute('data-payaza-selected', 'true');
|
|
272
|
+
setToolbarRect(iconEl.getBoundingClientRect());
|
|
273
|
+
setToolbarVisible(true);
|
|
274
|
+
const iconKey = iconEl.getAttribute('data-payaza-icon');
|
|
275
|
+
const parsedIcon = iconKey ? parsePayazaFieldKey(iconKey) : null;
|
|
276
|
+
if (parsedIcon && ctx) {
|
|
277
|
+
postElementFocus(parsedIcon.sectionKey, parsedIcon.fieldPath, 'icon');
|
|
278
|
+
dispatchPreviewEvent({ type: 'SECTION_SELECTED', section: parsedIcon.sectionKey, sectionKey: parsedIcon.sectionKey });
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
const iconSk = schemaSectionKeyFromElement(iconEl);
|
|
282
|
+
if (iconSk)
|
|
283
|
+
dispatchPreviewEvent({ type: 'SECTION_SELECTED', section: iconSk, sectionKey: iconSk });
|
|
284
|
+
}
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
// Star rating controls — click a star to set 1–5 and focus the card in the sidebar.
|
|
288
|
+
if (ratingEl && !imgEl) {
|
|
289
|
+
e.preventDefault();
|
|
290
|
+
deselectPrevious(ratingEl);
|
|
291
|
+
selectedElRef.current = ratingEl;
|
|
292
|
+
imageFieldRef.current = null;
|
|
293
|
+
setToolbarMode('text');
|
|
294
|
+
setIsRichFormatting(false);
|
|
295
|
+
setToolbarEditableActive(false);
|
|
296
|
+
ratingEl.setAttribute('data-payaza-selected', 'true');
|
|
297
|
+
setToolbarRect(ratingEl.getBoundingClientRect());
|
|
298
|
+
setToolbarVisible(true);
|
|
299
|
+
const ratingKey = ratingEl.getAttribute('data-payaza-rating');
|
|
300
|
+
const parsedRating = ratingKey ? parsePayazaFieldKey(ratingKey) : null;
|
|
301
|
+
const ratingSk = schemaSectionKeyFromElement(ratingEl);
|
|
302
|
+
if (ratingSk) {
|
|
303
|
+
dispatchPreviewEvent({ type: 'SECTION_SELECTED', section: ratingSk, sectionKey: ratingSk });
|
|
304
|
+
}
|
|
305
|
+
if (parsedRating && ctx) {
|
|
306
|
+
postElementFocus(parsedRating.sectionKey, parsedRating.fieldPath, 'rating');
|
|
307
|
+
const starValue = ratingStarEl
|
|
308
|
+
? Number(ratingStarEl.getAttribute('data-payaza-rating-star'))
|
|
309
|
+
: NaN;
|
|
310
|
+
if (Number.isFinite(starValue) && starValue >= 1 && starValue <= 5) {
|
|
311
|
+
dispatchPreviewEvent({
|
|
312
|
+
type: PREVIEW_MSG.FIELD_COMMIT,
|
|
313
|
+
layoutId: ctx.layoutId,
|
|
314
|
+
pageId: ctx.pageId,
|
|
315
|
+
sectionKey: parsedRating.sectionKey,
|
|
316
|
+
fieldPath: parsedRating.fieldPath,
|
|
317
|
+
value: String(starValue),
|
|
318
|
+
elementKind: 'rating',
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
324
|
+
// Prefer explicit image bindings over nested section/text targets (e.g. hero photo vs whole block).
|
|
325
|
+
if (imgEl) {
|
|
326
|
+
deselectPrevious(imgEl);
|
|
327
|
+
selectedElRef.current = imgEl;
|
|
328
|
+
const imgKey = imgEl.getAttribute('data-payaza-image');
|
|
329
|
+
const parsedImg = imgKey ? parsePayazaFieldKey(imgKey) : null;
|
|
330
|
+
if (parsedImg) {
|
|
331
|
+
imageFieldRef.current = { sectionKey: parsedImg.sectionKey, fieldPath: parsedImg.fieldPath };
|
|
332
|
+
const skImg = schemaSectionKeyFromElement(imgEl);
|
|
333
|
+
if (skImg && ctx)
|
|
334
|
+
postElementFocus(parsedImg.sectionKey, parsedImg.fieldPath, 'image');
|
|
335
|
+
}
|
|
336
|
+
setToolbarMode('image');
|
|
337
|
+
setIsRichFormatting(false);
|
|
338
|
+
setToolbarEditableActive(false);
|
|
339
|
+
imgEl.setAttribute('data-payaza-selected', 'true');
|
|
340
|
+
setToolbarRect(imgEl.getBoundingClientRect());
|
|
341
|
+
setToolbarVisible(true);
|
|
342
|
+
const imgSk = schemaSectionKeyFromElement(imgEl);
|
|
343
|
+
if (imgSk)
|
|
344
|
+
dispatchPreviewEvent({ type: 'SECTION_SELECTED', section: imgSk, sectionKey: imgSk });
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
if (textEl) {
|
|
348
|
+
const wasSelected = selectedElRef.current === textEl;
|
|
349
|
+
const inlineEditFirstTap = prefersInlineCanvasTextEdit();
|
|
350
|
+
deselectPrevious(textEl);
|
|
351
|
+
selectedElRef.current = textEl;
|
|
352
|
+
imageFieldRef.current = null;
|
|
353
|
+
setToolbarMode('text');
|
|
354
|
+
const richFmt = textEl.getAttribute('data-payaza-rich') === 'inline';
|
|
355
|
+
setIsRichFormatting(richFmt);
|
|
356
|
+
textEl.setAttribute('data-payaza-selected', 'true');
|
|
357
|
+
setToolbarRect(textEl.getBoundingClientRect());
|
|
358
|
+
setToolbarVisible(true);
|
|
359
|
+
const key = textEl.getAttribute('data-payaza-edit');
|
|
360
|
+
const parsed = key ? parsePayazaFieldKey(key) : null;
|
|
361
|
+
const sk = schemaSectionKeyFromElement(textEl);
|
|
362
|
+
// Mobile: first tap edits inline on canvas — do not raise SECTION_SELECTED (opens inspector).
|
|
363
|
+
if (sk && !inlineEditFirstTap) {
|
|
364
|
+
dispatchPreviewEvent({ type: 'SECTION_SELECTED', section: sk, sectionKey: sk });
|
|
365
|
+
}
|
|
366
|
+
if (parsed && ctx) {
|
|
367
|
+
postElementFocus(parsed.sectionKey, parsed.fieldPath, richFmt ? 'richHtml' : 'plainText');
|
|
368
|
+
}
|
|
369
|
+
if (inlineEditFirstTap || (wasSelected && textEl.getAttribute('contenteditable') !== 'true')) {
|
|
370
|
+
beginTextEditing(textEl);
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
setToolbarEditableActive(false);
|
|
374
|
+
editingRef.current = false;
|
|
375
|
+
}
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
if (groupEl && !textEl && !imgEl) {
|
|
379
|
+
deselectPrevious(groupEl);
|
|
380
|
+
selectedElRef.current = groupEl;
|
|
381
|
+
imageFieldRef.current = null;
|
|
382
|
+
setToolbarMode('group');
|
|
383
|
+
setIsRichFormatting(false);
|
|
384
|
+
setToolbarEditableActive(false);
|
|
385
|
+
groupEl.setAttribute('data-payaza-selected', 'group-block');
|
|
386
|
+
setToolbarRect(groupEl.getBoundingClientRect());
|
|
387
|
+
setToolbarVisible(true);
|
|
388
|
+
const groupKey = groupEl.getAttribute('data-payaza-group');
|
|
389
|
+
const parsedGroup = groupKey ? parsePayazaFieldKey(groupKey) : null;
|
|
390
|
+
if (parsedGroup && ctx) {
|
|
391
|
+
postElementFocus(parsedGroup.sectionKey, parsedGroup.fieldPath, 'group');
|
|
392
|
+
dispatchPreviewEvent({ type: 'SECTION_SELECTED', section: parsedGroup.sectionKey, sectionKey: parsedGroup.sectionKey });
|
|
393
|
+
}
|
|
394
|
+
else {
|
|
395
|
+
const gs = schemaSectionKeyFromElement(groupEl);
|
|
396
|
+
if (gs)
|
|
397
|
+
dispatchPreviewEvent({ type: 'SECTION_SELECTED', section: gs, sectionKey: gs });
|
|
398
|
+
}
|
|
399
|
+
return;
|
|
400
|
+
}
|
|
401
|
+
if (sectionEl) {
|
|
402
|
+
deselectPrevious(sectionEl);
|
|
403
|
+
selectedElRef.current = sectionEl;
|
|
404
|
+
imageFieldRef.current = null;
|
|
405
|
+
setToolbarMode('section');
|
|
406
|
+
setIsRichFormatting(false);
|
|
407
|
+
setToolbarEditableActive(false);
|
|
408
|
+
sectionEl.setAttribute('data-payaza-selected', 'section');
|
|
409
|
+
setToolbarRect(sectionEl.getBoundingClientRect());
|
|
410
|
+
setToolbarVisible(true);
|
|
411
|
+
const ss = schemaSectionKeyFromElement(sectionEl);
|
|
412
|
+
if (ss) {
|
|
413
|
+
dispatchPreviewEvent({ type: 'SECTION_SELECTED', section: ss, sectionKey: ss });
|
|
414
|
+
if (ctx)
|
|
415
|
+
postElementFocus(ss, [], 'section');
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
};
|
|
419
|
+
const onDblClick = (e) => {
|
|
420
|
+
const t = e.target;
|
|
421
|
+
const textEl = t.closest('[data-payaza-edit]');
|
|
422
|
+
if (!textEl || interactionMode !== 'edit')
|
|
423
|
+
return;
|
|
424
|
+
e.preventDefault();
|
|
425
|
+
beginTextEditing(textEl);
|
|
426
|
+
const richFmt = textEl.getAttribute('data-payaza-rich') === 'inline';
|
|
427
|
+
setIsRichFormatting(Boolean(richFmt));
|
|
428
|
+
const range = document.createRange();
|
|
429
|
+
range.selectNodeContents(textEl);
|
|
430
|
+
const sel = window.getSelection();
|
|
431
|
+
sel?.removeAllRanges();
|
|
432
|
+
sel?.addRange(range);
|
|
433
|
+
};
|
|
434
|
+
const onFocusOut = (e) => {
|
|
435
|
+
const t = e.target;
|
|
436
|
+
if (!t?.hasAttribute?.('data-payaza-edit') || t.getAttribute('contenteditable') !== 'true')
|
|
437
|
+
return;
|
|
438
|
+
if (shouldDeferEditableFocusOutCommit(e.relatedTarget))
|
|
439
|
+
return;
|
|
440
|
+
const ctx = resolveCtx();
|
|
441
|
+
if (!ctx?.layoutId || !ctx.pageId) {
|
|
442
|
+
t.removeAttribute('contenteditable');
|
|
443
|
+
editingRef.current = false;
|
|
444
|
+
setToolbarEditableActive(false);
|
|
445
|
+
return;
|
|
446
|
+
}
|
|
447
|
+
commitEditableElement(t);
|
|
448
|
+
};
|
|
449
|
+
const onInputEditable = (e) => {
|
|
450
|
+
const t = e.target;
|
|
451
|
+
if (!t?.hasAttribute?.('data-payaza-edit') || t.getAttribute('contenteditable') !== 'true')
|
|
452
|
+
return;
|
|
453
|
+
if (inputCommitTimer)
|
|
454
|
+
clearTimeout(inputCommitTimer);
|
|
455
|
+
inputCommitTimer = setTimeout(() => {
|
|
456
|
+
inputCommitTimer = null;
|
|
457
|
+
commitEditableElement(t, { keepEditing: true });
|
|
458
|
+
}, 300);
|
|
459
|
+
};
|
|
460
|
+
/** Edit mode: never follow links — selection & inline edit only (matches WordPress / Elementor UX). */
|
|
461
|
+
const onAnchorClickCapture = (e) => {
|
|
462
|
+
const t = e.target;
|
|
463
|
+
if (!t || t.closest('[role="toolbar"]'))
|
|
464
|
+
return;
|
|
465
|
+
const a = t.closest('a[href]');
|
|
466
|
+
if (!a?.getAttribute('href'))
|
|
467
|
+
return;
|
|
468
|
+
e.preventDefault();
|
|
469
|
+
e.stopPropagation();
|
|
470
|
+
};
|
|
471
|
+
document.addEventListener('mousedown', onPointerDown, true);
|
|
472
|
+
document.addEventListener('dblclick', onDblClick, true);
|
|
473
|
+
document.addEventListener('focusout', onFocusOut, true);
|
|
474
|
+
document.addEventListener('input', onInputEditable, true);
|
|
475
|
+
document.addEventListener('click', onAnchorClickCapture, true);
|
|
476
|
+
return () => {
|
|
477
|
+
if (inputCommitTimer)
|
|
478
|
+
clearTimeout(inputCommitTimer);
|
|
479
|
+
commitEditableElementRef.current = null;
|
|
480
|
+
if (previewFlushRef) {
|
|
481
|
+
previewFlushRef.current = null;
|
|
482
|
+
}
|
|
483
|
+
document.removeEventListener('paste', onPasteEditable, true);
|
|
484
|
+
window.removeEventListener('message', onFlushEditsMessage);
|
|
485
|
+
document.removeEventListener('mousedown', onPointerDown, true);
|
|
486
|
+
document.removeEventListener('dblclick', onDblClick, true);
|
|
487
|
+
document.removeEventListener('focusout', onFocusOut, true);
|
|
488
|
+
document.removeEventListener('input', onInputEditable, true);
|
|
489
|
+
document.removeEventListener('click', onAnchorClickCapture, true);
|
|
490
|
+
};
|
|
491
|
+
}, [enabled, interactionMode, clearSelection, resolveCtx, postElementFocus, dispatchPreviewEvent, previewFlushRef]);
|
|
492
|
+
const runOnEditable = useCallback((fn) => {
|
|
493
|
+
const el = selectedElRef.current;
|
|
494
|
+
if (!el || el.getAttribute('contenteditable') !== 'true')
|
|
495
|
+
return;
|
|
496
|
+
el.focus();
|
|
497
|
+
fn();
|
|
498
|
+
updateToolbarPos();
|
|
499
|
+
}, [updateToolbarPos]);
|
|
500
|
+
const onBold = useCallback(() => runOnEditable(() => document.execCommand('bold')), [runOnEditable]);
|
|
501
|
+
const onItalic = useCallback(() => runOnEditable(() => document.execCommand('italic')), [runOnEditable]);
|
|
502
|
+
const onUnderline = useCallback(() => runOnEditable(() => document.execCommand('underline')), [runOnEditable]);
|
|
503
|
+
const onLinkApply = useCallback((url, savedRange) => {
|
|
504
|
+
const el = selectedElRef.current;
|
|
505
|
+
if (!el || el.getAttribute('contenteditable') !== 'true')
|
|
506
|
+
return;
|
|
507
|
+
const safe = coercePayazaRichLinkHref(url);
|
|
508
|
+
if (!safe)
|
|
509
|
+
return;
|
|
510
|
+
el.focus();
|
|
511
|
+
if (savedRange) {
|
|
512
|
+
const sel = window.getSelection();
|
|
513
|
+
sel?.removeAllRanges();
|
|
514
|
+
sel?.addRange(savedRange);
|
|
515
|
+
}
|
|
516
|
+
document.execCommand('createLink', false, safe);
|
|
517
|
+
updateToolbarPos();
|
|
518
|
+
}, [updateToolbarPos]);
|
|
519
|
+
const onUnlink = useCallback(() => runOnEditable(() => document.execCommand('unlink')), [runOnEditable]);
|
|
520
|
+
const onBullets = useCallback(() => runOnEditable(() => document.execCommand('insertUnorderedList')), [runOnEditable]);
|
|
521
|
+
const onOrdered = useCallback(() => runOnEditable(() => document.execCommand('insertOrderedList')), [runOnEditable]);
|
|
522
|
+
const onClearFormatting = useCallback(() => {
|
|
523
|
+
runOnEditable(() => {
|
|
524
|
+
document.execCommand('removeFormat');
|
|
525
|
+
document.execCommand('unlink');
|
|
526
|
+
});
|
|
527
|
+
}, [runOnEditable]);
|
|
528
|
+
const onMoveUp = useCallback(() => {
|
|
529
|
+
const ctx = resolveCtx();
|
|
530
|
+
if (!ctx?.layoutId)
|
|
531
|
+
return;
|
|
532
|
+
const sk = schemaSectionKeyFromElement(selectedElRef.current);
|
|
533
|
+
if (!sk)
|
|
534
|
+
return;
|
|
535
|
+
dispatchPreviewEvent({
|
|
536
|
+
type: PREVIEW_MSG.SECTION_REORDER,
|
|
537
|
+
layoutId: ctx.layoutId,
|
|
538
|
+
pageId: ctx.pageId,
|
|
539
|
+
sectionKey: sk,
|
|
540
|
+
direction: 'up',
|
|
541
|
+
});
|
|
542
|
+
}, [resolveCtx]);
|
|
543
|
+
const onMoveDown = useCallback(() => {
|
|
544
|
+
const ctx = resolveCtx();
|
|
545
|
+
if (!ctx?.layoutId)
|
|
546
|
+
return;
|
|
547
|
+
const sk = schemaSectionKeyFromElement(selectedElRef.current);
|
|
548
|
+
if (!sk)
|
|
549
|
+
return;
|
|
550
|
+
dispatchPreviewEvent({
|
|
551
|
+
type: PREVIEW_MSG.SECTION_REORDER,
|
|
552
|
+
layoutId: ctx.layoutId,
|
|
553
|
+
pageId: ctx.pageId,
|
|
554
|
+
sectionKey: sk,
|
|
555
|
+
direction: 'down',
|
|
556
|
+
});
|
|
557
|
+
}, [resolveCtx]);
|
|
558
|
+
const onReplaceImage = useCallback(() => {
|
|
559
|
+
const ctx = resolveCtx();
|
|
560
|
+
if (!imageFieldRef.current || !ctx?.layoutId)
|
|
561
|
+
return;
|
|
562
|
+
const { sectionKey, fieldPath } = imageFieldRef.current;
|
|
563
|
+
dispatchPreviewEvent({
|
|
564
|
+
type: PREVIEW_MSG.IMAGE_ACTIVATE,
|
|
565
|
+
layoutId: ctx.layoutId,
|
|
566
|
+
pageId: ctx.pageId,
|
|
567
|
+
sectionKey,
|
|
568
|
+
fieldPath,
|
|
569
|
+
});
|
|
570
|
+
}, [resolveCtx]);
|
|
571
|
+
const onMore = useCallback(() => {
|
|
572
|
+
const sk = schemaSectionKeyFromElement(selectedElRef.current);
|
|
573
|
+
if (sk) {
|
|
574
|
+
dispatchPreviewEvent({ type: 'PREVIEW_FOCUS_SIDEBAR', sectionKey: sk });
|
|
575
|
+
}
|
|
576
|
+
}, [dispatchPreviewEvent]);
|
|
577
|
+
// Sync canvas selection when List View clicks a section or block element.
|
|
578
|
+
// Refs and setState setters are stable so empty deps is correct.
|
|
579
|
+
useEffect(() => {
|
|
580
|
+
const clearCanvasSelection = () => {
|
|
581
|
+
if (selectedElRef.current) {
|
|
582
|
+
const el = selectedElRef.current;
|
|
583
|
+
if (el.getAttribute('contenteditable') === 'true') {
|
|
584
|
+
commitEditableElementRef.current?.(el);
|
|
585
|
+
}
|
|
586
|
+
el.removeAttribute('data-payaza-selected');
|
|
587
|
+
if (el.getAttribute('contenteditable') === 'true') {
|
|
588
|
+
el.removeAttribute('contenteditable');
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
document.querySelectorAll('[data-payaza-section-active]').forEach((el) => el.removeAttribute('data-payaza-section-active'));
|
|
592
|
+
selectedElRef.current = null;
|
|
593
|
+
imageFieldRef.current = null;
|
|
594
|
+
editingRef.current = false;
|
|
595
|
+
setIsRichFormatting(false);
|
|
596
|
+
setToolbarEditableActive(false);
|
|
597
|
+
setToolbarVisible(false);
|
|
598
|
+
setToolbarRect(null);
|
|
599
|
+
};
|
|
600
|
+
const onSectionSync = (e) => {
|
|
601
|
+
if (e.data?.type !== 'SECTION_SELECTED_SYNC')
|
|
602
|
+
return;
|
|
603
|
+
const key = e.data?.section;
|
|
604
|
+
// If a child element within this section is already the active selection, leave it alone —
|
|
605
|
+
// this message fires after every canvas click too, not just List View clicks.
|
|
606
|
+
if (key && selectedElRef.current) {
|
|
607
|
+
const withinSection = selectedElRef.current.closest(`[data-payaza-section-key="${key}"], [data-section="${key}"]`);
|
|
608
|
+
if (withinSection)
|
|
609
|
+
return;
|
|
610
|
+
}
|
|
611
|
+
clearCanvasSelection();
|
|
612
|
+
if (!key)
|
|
613
|
+
return;
|
|
614
|
+
const sectionEl = document.querySelector(`[data-payaza-section-key="${key}"], [data-section="${key}"]`);
|
|
615
|
+
if (!sectionEl)
|
|
616
|
+
return;
|
|
617
|
+
selectedElRef.current = sectionEl;
|
|
618
|
+
sectionEl.setAttribute('data-payaza-selected', 'section');
|
|
619
|
+
setToolbarMode('section');
|
|
620
|
+
setToolbarRect(sectionEl.getBoundingClientRect());
|
|
621
|
+
setToolbarVisible(true);
|
|
622
|
+
sectionEl.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
|
623
|
+
};
|
|
624
|
+
const onFieldSync = (e) => {
|
|
625
|
+
if (e.data?.type !== PREVIEW_MSG.FIELD_SELECTED_SYNC)
|
|
626
|
+
return;
|
|
627
|
+
const field = e.data?.field;
|
|
628
|
+
if (!field?.sectionKey || !field.fieldPath?.length)
|
|
629
|
+
return;
|
|
630
|
+
if (field.elementKind === 'section')
|
|
631
|
+
return; // handled by SECTION_SELECTED_SYNC
|
|
632
|
+
const { sectionKey, fieldPath, elementKind } = field;
|
|
633
|
+
const encodedKey = [sectionKey, ...fieldPath].join('|');
|
|
634
|
+
const isImage = elementKind === 'image';
|
|
635
|
+
const isGroup = elementKind === 'group';
|
|
636
|
+
const targetEl = isImage
|
|
637
|
+
? document.querySelector(`[data-payaza-image="${encodedKey}"]`)
|
|
638
|
+
: isGroup
|
|
639
|
+
? document.querySelector(`[data-payaza-group="${encodedKey}"]`)
|
|
640
|
+
: document.querySelector(`[data-payaza-edit="${encodedKey}"]`);
|
|
641
|
+
if (!targetEl)
|
|
642
|
+
return;
|
|
643
|
+
// Already selected from a direct canvas click — nothing to do.
|
|
644
|
+
if (selectedElRef.current === targetEl)
|
|
645
|
+
return;
|
|
646
|
+
clearCanvasSelection();
|
|
647
|
+
selectedElRef.current = targetEl;
|
|
648
|
+
if (isImage) {
|
|
649
|
+
targetEl.setAttribute('data-payaza-selected', 'true');
|
|
650
|
+
imageFieldRef.current = { sectionKey, fieldPath };
|
|
651
|
+
setToolbarMode('image');
|
|
652
|
+
setIsRichFormatting(false);
|
|
653
|
+
}
|
|
654
|
+
else if (isGroup) {
|
|
655
|
+
targetEl.setAttribute('data-payaza-selected', 'group-block');
|
|
656
|
+
imageFieldRef.current = null;
|
|
657
|
+
setToolbarMode('group');
|
|
658
|
+
setIsRichFormatting(false);
|
|
659
|
+
}
|
|
660
|
+
else {
|
|
661
|
+
targetEl.setAttribute('data-payaza-selected', 'true');
|
|
662
|
+
imageFieldRef.current = null;
|
|
663
|
+
setToolbarMode('text');
|
|
664
|
+
const richFmt = targetEl.getAttribute('data-payaza-rich') === 'inline';
|
|
665
|
+
setIsRichFormatting(richFmt);
|
|
666
|
+
}
|
|
667
|
+
setToolbarRect(targetEl.getBoundingClientRect());
|
|
668
|
+
setToolbarVisible(true);
|
|
669
|
+
targetEl.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
|
670
|
+
};
|
|
671
|
+
window.addEventListener('message', onSectionSync);
|
|
672
|
+
window.addEventListener('message', onFieldSync);
|
|
673
|
+
return () => {
|
|
674
|
+
window.removeEventListener('message', onSectionSync);
|
|
675
|
+
window.removeEventListener('message', onFieldSync);
|
|
676
|
+
};
|
|
677
|
+
}, []);
|
|
678
|
+
return (_jsxs(_Fragment, { children: [_jsx("style", { children: `
|
|
679
|
+
/* Hover discoverability for editable text fields */
|
|
680
|
+
[data-payaza-edit]:not([data-payaza-selected="true"]):not([contenteditable="true"]) {
|
|
681
|
+
cursor: text;
|
|
682
|
+
border-radius: 2px;
|
|
683
|
+
transition: outline 0.1s ease, box-shadow 0.1s ease;
|
|
684
|
+
}
|
|
685
|
+
[data-payaza-edit]:not([data-payaza-selected="true"]):not([contenteditable="true"]):hover {
|
|
686
|
+
outline: 1px dashed rgba(56, 88, 233, 0.45);
|
|
687
|
+
outline-offset: 2px;
|
|
688
|
+
box-shadow: 0 0 0 3px rgba(56, 88, 233, 0.08);
|
|
689
|
+
}
|
|
690
|
+
/* Hover discoverability for image fields */
|
|
691
|
+
[data-payaza-image]:not([data-payaza-selected="true"]):hover,
|
|
692
|
+
[data-payaza-icon]:not([data-payaza-selected="true"]):hover,
|
|
693
|
+
[data-payaza-rating]:not([data-payaza-selected="true"]):hover {
|
|
694
|
+
cursor: pointer;
|
|
695
|
+
outline: 1px dashed rgba(56, 88, 233, 0.45);
|
|
696
|
+
outline-offset: 2px;
|
|
697
|
+
}
|
|
698
|
+
[data-payaza-rating-star]:hover {
|
|
699
|
+
transform: scale(1.12);
|
|
700
|
+
}
|
|
701
|
+
/* Selected states */
|
|
702
|
+
[data-payaza-selected="true"] {
|
|
703
|
+
outline: 2px solid rgba(56, 88, 233, 0.65);
|
|
704
|
+
outline-offset: 2px;
|
|
705
|
+
box-shadow: 0 0 0 4px rgba(56, 88, 233, 0.16);
|
|
706
|
+
}
|
|
707
|
+
[data-payaza-icon][data-payaza-selected="true"] {
|
|
708
|
+
outline: 2px solid rgba(56, 88, 233, 0.70);
|
|
709
|
+
outline-offset: 3px;
|
|
710
|
+
box-shadow: 0 0 0 5px rgba(56, 88, 233, 0.15);
|
|
711
|
+
background-color: transparent !important;
|
|
712
|
+
}
|
|
713
|
+
[data-payaza-selected="group-block"] {
|
|
714
|
+
outline: 2px solid rgba(56, 88, 233, 0.55);
|
|
715
|
+
outline-offset: 2px;
|
|
716
|
+
}
|
|
717
|
+
[data-payaza-selected="section"] {
|
|
718
|
+
outline: 2px dashed rgba(68, 0, 102, 0.22);
|
|
719
|
+
outline-offset: 2px;
|
|
720
|
+
}
|
|
721
|
+
[data-payaza-section-active="true"] {
|
|
722
|
+
outline: 2px solid rgba(68, 0, 102, 0.18);
|
|
723
|
+
outline-offset: 2px;
|
|
724
|
+
}
|
|
725
|
+
/* Active editing state — outline only on host; typography preserved on outer tags */
|
|
726
|
+
[data-payaza-edit][contenteditable="true"] {
|
|
727
|
+
cursor: text;
|
|
728
|
+
outline: 2px solid rgba(56, 88, 233, 0.8);
|
|
729
|
+
outline-offset: 2px;
|
|
730
|
+
box-shadow: 0 0 0 4px rgba(56, 88, 233, 0.2);
|
|
731
|
+
}
|
|
732
|
+
/* Inner edit wrappers inherit styled parent typography (Fashion Hub / booking pattern) */
|
|
733
|
+
span[data-payaza-edit][contenteditable="true"],
|
|
734
|
+
[data-payaza-edit][contenteditable="true"] > span:only-child {
|
|
735
|
+
font: inherit;
|
|
736
|
+
letter-spacing: inherit;
|
|
737
|
+
line-height: inherit;
|
|
738
|
+
color: inherit;
|
|
739
|
+
}
|
|
740
|
+
` }), children, _jsx(PreviewBlockToolbar, { visible: Boolean(enabled && interactionMode === 'edit' && toolbarVisible), mode: toolbarMode, anchorRect: toolbarRect, richField: toolbarMode === 'text' ? isRichFormatting : false, richEditingActive: toolbarMode === 'text' && toolbarEditableActive, onBold: toolbarMode === 'text' ? onBold : undefined, onItalic: toolbarMode === 'text' ? onItalic : undefined, onUnderline: toolbarMode === 'text' ? onUnderline : undefined, onLinkApply: toolbarMode === 'text' ? onLinkApply : undefined, onUnlink: toolbarMode === 'text' ? onUnlink : undefined, onBullets: toolbarMode === 'text' ? onBullets : undefined, onOrderedList: toolbarMode === 'text' ? onOrdered : undefined, onClearFormatting: toolbarMode === 'text' ? onClearFormatting : undefined, onReplaceImage: toolbarMode === 'image' ? onReplaceImage : undefined })] }));
|
|
741
|
+
}
|