storefront-layouts 1.0.3 → 1.0.4
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/dist/components/auth/LoginForm.js +2 -2
- package/dist/components/auth/LoginSheet.js +2 -2
- package/dist/components/auth/login-form-core.js +3 -3
- package/dist/components/auth/login-sheet-header.js +3 -3
- package/dist/components/auth/login-sheet-registry.js +2 -2
- package/dist/components/auth/login-sheet-themes/booking-agenda.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/booking.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/clothing-minimal.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/clothing.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/electronics-grid.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/electronics.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/food-modern.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/food.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/index.js +9 -9
- package/dist/components/auth/login-sheet-themes/motivational-speaker.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/theme-input-baselines.d.ts +2 -2
- package/dist/components/auth/login-sheet-themes/theme-input-baselines.d.ts.map +1 -1
- package/dist/components/auth/login-sheet-themes/theme-input-baselines.js +2 -2
- package/dist/components/auth/login-sheets/StoreLoginSheetShell.d.ts.map +1 -1
- package/dist/components/auth/login-sheets/StoreLoginSheetShell.js +6 -6
- package/dist/components/auth/use-login-submit.js +3 -3
- package/dist/components/cart/InventoryHoldCountdown.js +2 -2
- package/dist/components/categories/category-masonry-grid.js +3 -3
- package/dist/components/checkout/CheckoutFeeLines.js +1 -1
- package/dist/components/checkout/ShippingOptionsPanel.js +3 -3
- package/dist/components/learning/CertificateTemplates.js +2 -2
- package/dist/components/learning/CertificateViewer.js +3 -3
- package/dist/components/learning/MentorshipProgress.d.ts.map +1 -1
- package/dist/components/learning/MentorshipProgress.js +4 -4
- package/dist/components/product/ProductVariationSelectors.js +1 -1
- package/dist/components/rich-text/CategoryDescription.js +2 -2
- package/dist/components/rich-text/ProductDescription.js +2 -2
- package/dist/components/rich-text/RichTextExcerpt.js +1 -1
- package/dist/components/rich-text/SafeRichHtml.d.ts +8 -11
- package/dist/components/rich-text/SafeRichHtml.d.ts.map +1 -1
- package/dist/components/rich-text/SafeRichHtml.js +3 -5
- package/dist/components/shipping/ProductDeliveryInfoSection.d.ts.map +1 -1
- package/dist/components/shipping/ProductDeliveryInfoSection.js +7 -4
- package/dist/components/shipping/ShippingQuoteAddressForm.js +3 -3
- package/dist/components/ui/alert-modal.js +2 -2
- package/dist/components/ui/avatar-image.js +1 -1
- package/dist/components/ui/badge.js +1 -1
- package/dist/components/ui/breadcrumbs.js +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/category-tree.js +2 -2
- package/dist/components/ui/checkout-button.d.ts.map +1 -1
- package/dist/components/ui/checkout-button.js +11 -283
- package/dist/components/ui/guest-checkout-modal.js +3 -3
- package/dist/components/ui/image-skeleton.js +2 -2
- package/dist/components/ui/image-with-fallback.d.ts +3 -1
- package/dist/components/ui/image-with-fallback.d.ts.map +1 -1
- package/dist/components/ui/image-with-fallback.js +55 -139
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/limited-time-offer-badge.js +2 -2
- package/dist/components/ui/loading-skeleton-wrapper.js +1 -1
- package/dist/components/ui/modal.js +2 -2
- package/dist/components/ui/otp-input.js +1 -1
- package/dist/components/ui/out-of-stock-overlay.js +1 -1
- package/dist/components/ui/page-animate-wrapper.js +2 -2
- package/dist/components/ui/page-content-loader.js +2 -2
- package/dist/components/ui/page-loader.js +1 -1
- package/dist/components/ui/product-card.d.ts.map +1 -1
- package/dist/components/ui/product-card.js +17 -17
- package/dist/components/ui/product-rating.js +1 -1
- package/dist/components/ui/product-stock-badge.js +2 -2
- package/dist/components/ui/review-form.js +2 -2
- package/dist/components/ui/route-skeleton-loader.js +6 -6
- package/dist/components/ui/sheet.d.ts +2 -1
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +4 -4
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/skeletons/index.js +5 -5
- package/dist/components/ui/skeletons/product-grid-skeleton.js +1 -1
- package/dist/components/ui/store-logos.d.ts.map +1 -1
- package/dist/components/ui/store-logos.js +4 -4
- package/dist/components/ui/toast.js +1 -1
- package/dist/components/ui/video-player.js +2 -2
- package/dist/editor/alignment-schemas/booking.js +1 -1
- package/dist/editor/alignment-schemas/clothing-minimal.js +1 -1
- package/dist/editor/alignment-schemas/index.js +20 -20
- package/dist/editor/alignment-schemas/lazy-loader.js +1 -1
- package/dist/editor/alignment-schemas/metadata.js +1 -1
- package/dist/editor/alignment-schemas/resolve-canvas-inspector-leaf.js +3 -3
- package/dist/editor/blocks/index.js +3 -3
- package/dist/editor/blocks/migrate-clothing-minimal.js +3 -3
- package/dist/editor/blocks/nav-outline-utils.js +2 -2
- package/dist/editor/blocks/registry.js +1 -1
- package/dist/editor/document/adapter.js +4 -4
- package/dist/editor/document/block-tree.js +1 -1
- package/dist/editor/document/index.js +6 -6
- package/dist/editor/document/validate.js +1 -1
- package/dist/editor/index.js +12 -12
- package/dist/editor/layout-content-loader.js +3 -3
- package/dist/editor/payaza-form/ArrayItemManager.js +2 -2
- package/dist/editor/payaza-form/EditorCanvasPreview.js +5 -5
- package/dist/editor/payaza-form/FieldRenderer.js +17 -17
- package/dist/editor/payaza-form/IframePreviewMessageBridge.js +3 -3
- package/dist/editor/payaza-form/PayazaFormEditor.js +31 -31
- package/dist/editor/payaza-form/PayazaFormEditorFullPage.js +2 -2
- package/dist/editor/payaza-form/SliderArrayEditor.js +3 -3
- package/dist/editor/payaza-form/components/ArrayField.js +1 -1
- package/dist/editor/payaza-form/components/BlockStylesInspector.js +1 -1
- package/dist/editor/payaza-form/components/BlocksField.js +9 -9
- package/dist/editor/payaza-form/components/ButtonField.js +3 -3
- package/dist/editor/payaza-form/components/CanvasGranularInspector.js +11 -11
- package/dist/editor/payaza-form/components/IconField.js +2 -2
- package/dist/editor/payaza-form/components/ImageField.js +1 -1
- package/dist/editor/payaza-form/components/NumberField.js +1 -1
- package/dist/editor/payaza-form/components/RichTextField.js +2 -2
- package/dist/editor/payaza-form/components/SectionField.js +1 -1
- package/dist/editor/payaza-form/components/SectionSchemaInspector.js +3 -3
- package/dist/editor/payaza-form/components/StarRatingField.js +2 -2
- package/dist/editor/payaza-form/components/TextField.js +1 -1
- package/dist/editor/payaza-form/data-merger.js +6 -6
- package/dist/editor/payaza-form/data-transformer.js +3 -3
- package/dist/editor/payaza-form/engine.js +1 -1
- package/dist/editor/payaza-form/examples/custom-widgets.example.js +1 -1
- package/dist/editor/payaza-form/index.js +8 -8
- package/dist/editor/payaza-form/layout-loader.js +2 -2
- package/dist/editor/payaza-form/preview-message-handler.js +3 -3
- package/dist/editor/payaza-form/schema-bridge.js +3 -3
- package/dist/editor/payaza-form/widget-registry.js +1 -1
- package/dist/editor/shared/BlockOutlineTree.js +2 -2
- package/dist/editor/shared/EditorHeader.js +2 -2
- package/dist/editor/shared/EditorNavigator.js +2 -2
- package/dist/editor/shared/IframePreview.js +6 -6
- package/dist/editor/shared/InlineCanvasPreview.js +8 -8
- package/dist/editor/shared/LayoutRenderer.js +1 -1
- package/dist/editor/shared/ResizableSidebar.js +1 -1
- package/dist/editor/shared/index.js +7 -7
- package/dist/hooks/use-analytics.js +3 -3
- package/dist/hooks/use-api.js +1 -1
- package/dist/hooks/use-cart-api.d.ts.map +1 -1
- package/dist/hooks/use-cart-api.js +8 -3
- package/dist/hooks/use-catalog-loader.js +3 -3
- package/dist/hooks/use-catalog-price-range.d.ts +2 -5
- package/dist/hooks/use-catalog-price-range.d.ts.map +1 -1
- package/dist/hooks/use-catalog-price-range.js +20 -5
- package/dist/hooks/use-category-products.d.ts +8 -0
- package/dist/hooks/use-category-products.d.ts.map +1 -0
- package/dist/hooks/use-category-products.js +43 -0
- package/dist/hooks/use-checkout-fees.d.ts +3 -4
- package/dist/hooks/use-checkout-fees.d.ts.map +1 -1
- package/dist/hooks/use-checkout-fees.js +1 -1
- package/dist/hooks/use-content-ready.js +1 -1
- package/dist/hooks/use-featured-products.d.ts +3 -0
- package/dist/hooks/use-featured-products.d.ts.map +1 -0
- package/dist/hooks/use-featured-products.js +25 -0
- package/dist/hooks/use-multi-store-checkout-fees.d.ts +3 -4
- package/dist/hooks/use-multi-store-checkout-fees.d.ts.map +1 -1
- package/dist/hooks/use-multi-store-checkout-fees.js +1 -1
- package/dist/hooks/use-navigation-loading.js +1 -1
- package/dist/hooks/use-payaza-checkout.d.ts +1 -1
- package/dist/hooks/use-payaza-checkout.d.ts.map +1 -1
- package/dist/hooks/use-payaza-checkout.js +9 -3
- package/dist/hooks/use-product-brands.d.ts +5 -0
- package/dist/hooks/use-product-brands.d.ts.map +1 -0
- package/dist/hooks/use-product-brands.js +25 -0
- package/dist/hooks/use-product-by-slug.d.ts +7 -0
- package/dist/hooks/use-product-by-slug.d.ts.map +1 -0
- package/dist/hooks/use-product-by-slug.js +38 -0
- package/dist/hooks/use-product-reviews.d.ts +15 -0
- package/dist/hooks/use-product-reviews.d.ts.map +1 -0
- package/dist/hooks/use-product-reviews.js +75 -0
- package/dist/hooks/use-product-variation-selection.d.ts +2 -8
- package/dist/hooks/use-product-variation-selection.d.ts.map +1 -1
- package/dist/hooks/use-product-variation-selection.js +1 -1
- package/dist/hooks/use-products-api.js +3 -3
- package/dist/hooks/use-shipping-quote.js +2 -2
- package/dist/hooks/use-store-api.js +4 -4
- package/dist/hooks/usePreviewSlideSync.js +1 -1
- package/dist/index.d.ts +62 -74
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +141 -153
- package/dist/layouts/booking/components/BookingHomePage.d.ts.map +1 -1
- package/dist/layouts/booking/components/BookingHomePage.js +68 -74
- package/dist/layouts/booking/components/BookingMultilineHeading.js +1 -1
- package/dist/layouts/booking/components/BookingTestimonialCard.js +2 -2
- package/dist/layouts/booking/components/BookingTestimonialsEmptyState.js +1 -1
- package/dist/layouts/booking/components/booking-footer-defaults.js +2 -2
- package/dist/layouts/booking/index.js +8 -8
- package/dist/layouts/booking/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/booking/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/booking/pages/AboutPage.js +39 -60
- package/dist/layouts/booking/pages/BookPage.d.ts.map +1 -1
- package/dist/layouts/booking/pages/BookPage.js +16 -22
- package/dist/layouts/booking/pages/CategoriesPage.js +6 -6
- package/dist/layouts/booking/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/booking/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/booking/pages/CategoryPage.js +17 -26
- package/dist/layouts/booking/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/booking/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/booking/pages/ContactPage.js +5 -12
- package/dist/layouts/booking/pages/ProductDetailPage.d.ts +1 -1
- package/dist/layouts/booking/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/booking/pages/ProductDetailPage.js +203 -150
- package/dist/layouts/booking/pages/ServicesPage.d.ts +1 -1
- package/dist/layouts/booking/pages/ServicesPage.d.ts.map +1 -1
- package/dist/layouts/booking/pages/ServicesPage.js +11 -31
- package/dist/layouts/booking-agenda/components/BookingHomePageAgenda.d.ts.map +1 -1
- package/dist/layouts/booking-agenda/components/BookingHomePageAgenda.js +21 -30
- package/dist/layouts/booking-agenda/index.js +8 -8
- package/dist/layouts/booking-agenda/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/booking-agenda/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/booking-agenda/pages/AboutPage.js +11 -14
- package/dist/layouts/booking-agenda/pages/BookPage.d.ts.map +1 -1
- package/dist/layouts/booking-agenda/pages/BookPage.js +15 -21
- package/dist/layouts/booking-agenda/pages/CategoriesPage.js +5 -5
- package/dist/layouts/booking-agenda/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/booking-agenda/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/booking-agenda/pages/CategoryPage.js +12 -18
- package/dist/layouts/booking-agenda/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/booking-agenda/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/booking-agenda/pages/ContactPage.js +8 -13
- package/dist/layouts/booking-agenda/pages/ProductDetailPage.d.ts +1 -1
- package/dist/layouts/booking-agenda/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/booking-agenda/pages/ProductDetailPage.js +202 -149
- package/dist/layouts/booking-agenda/pages/ServicesPage.d.ts +1 -1
- package/dist/layouts/booking-agenda/pages/ServicesPage.d.ts.map +1 -1
- package/dist/layouts/booking-agenda/pages/ServicesPage.js +8 -23
- package/dist/layouts/clothing/components/ClothingHomePage.d.ts.map +1 -1
- package/dist/layouts/clothing/components/ClothingHomePage.js +199 -136
- package/dist/layouts/clothing/index.js +7 -7
- package/dist/layouts/clothing/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/clothing/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/clothing/pages/AboutPage.js +19 -33
- package/dist/layouts/clothing/pages/CategoriesPage.js +8 -8
- package/dist/layouts/clothing/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/clothing/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/clothing/pages/CategoryPage.js +15 -41
- package/dist/layouts/clothing/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/clothing/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/clothing/pages/ContactPage.js +5 -8
- package/dist/layouts/clothing/pages/ProductDetailPage.d.ts +1 -1
- package/dist/layouts/clothing/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/clothing/pages/ProductDetailPage.js +256 -167
- package/dist/layouts/clothing/pages/ProductsPage.d.ts +1 -1
- package/dist/layouts/clothing/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/clothing/pages/ProductsPage.js +125 -59
- package/dist/layouts/clothing/payaza-bindings.js +2 -2
- package/dist/layouts/clothing-minimal/components/ClothingHomePageMinimal.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/components/ClothingHomePageMinimal.js +32 -131
- package/dist/layouts/clothing-minimal/components/clothing-minimal-block-render.js +8 -8
- package/dist/layouts/clothing-minimal/index.js +7 -7
- package/dist/layouts/clothing-minimal/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/clothing-minimal/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/pages/AboutPage.js +37 -61
- package/dist/layouts/clothing-minimal/pages/CategoriesPage.js +7 -7
- package/dist/layouts/clothing-minimal/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/clothing-minimal/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/pages/CategoryPage.js +13 -18
- package/dist/layouts/clothing-minimal/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/clothing-minimal/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/pages/ContactPage.js +5 -8
- package/dist/layouts/clothing-minimal/pages/ProductDetailPage.d.ts +1 -1
- package/dist/layouts/clothing-minimal/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/pages/ProductDetailPage.js +202 -143
- package/dist/layouts/clothing-minimal/pages/ProductsPage.d.ts +1 -1
- package/dist/layouts/clothing-minimal/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/pages/ProductsPage.js +126 -57
- package/dist/layouts/electronics/components/ElectronicsCategoriesPage.js +7 -7
- package/dist/layouts/electronics/components/ElectronicsGridProductCard.js +10 -10
- package/dist/layouts/electronics/components/ElectronicsHomePage.d.ts.map +1 -1
- package/dist/layouts/electronics/components/ElectronicsHomePage.js +29 -31
- package/dist/layouts/electronics/components/ElectronicsPageWrapper.js +4 -4
- package/dist/layouts/electronics/components/ElectronicsProductsPage.d.ts.map +1 -1
- package/dist/layouts/electronics/components/ElectronicsProductsPage.js +81 -23
- package/dist/layouts/electronics/components/ElectronicsStoreFooter.js +2 -2
- package/dist/layouts/electronics/components/ElectronicsStoreHeader.js +6 -6
- package/dist/layouts/electronics/index.js +18 -18
- package/dist/layouts/electronics/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/electronics/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/electronics/pages/AboutPage.js +11 -14
- package/dist/layouts/electronics/pages/CategoriesPage.js +1 -1
- package/dist/layouts/electronics/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/electronics/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/electronics/pages/CategoryPage.js +14 -20
- package/dist/layouts/electronics/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/electronics/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/electronics/pages/ContactPage.js +8 -13
- package/dist/layouts/electronics/pages/HelpCenterPage.js +1 -1
- package/dist/layouts/electronics/pages/PrivacyPolicyPage.js +1 -1
- package/dist/layouts/electronics/pages/ProductDetailPage.d.ts +1 -1
- package/dist/layouts/electronics/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/electronics/pages/ProductDetailPage.js +201 -142
- package/dist/layouts/electronics/pages/ProductsPage.d.ts +1 -1
- package/dist/layouts/electronics/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/electronics/pages/ProductsPage.js +119 -49
- package/dist/layouts/electronics/pages/TermsPage.js +1 -1
- package/dist/layouts/electronics/pages/TrackOrderPage.js +4 -4
- package/dist/layouts/electronics-grid/components/ElectronicsGridProductCard.js +10 -10
- package/dist/layouts/electronics-grid/components/ElectronicsHomePageGrid.d.ts.map +1 -1
- package/dist/layouts/electronics-grid/components/ElectronicsHomePageGrid.js +75 -33
- package/dist/layouts/electronics-grid/index.js +14 -14
- package/dist/layouts/electronics-grid/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/electronics-grid/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/electronics-grid/pages/AboutPage.js +11 -14
- package/dist/layouts/electronics-grid/pages/CategoriesPage.js +1 -1
- package/dist/layouts/electronics-grid/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/electronics-grid/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/electronics-grid/pages/CategoryPage.js +14 -20
- package/dist/layouts/electronics-grid/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/electronics-grid/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/electronics-grid/pages/ContactPage.js +8 -13
- package/dist/layouts/electronics-grid/pages/ElectronicsGridCategoriesPage.js +6 -6
- package/dist/layouts/electronics-grid/pages/HelpCenterPage.js +1 -1
- package/dist/layouts/electronics-grid/pages/PrivacyPolicyPage.js +1 -1
- package/dist/layouts/electronics-grid/pages/ProductDetailPage.d.ts +1 -1
- package/dist/layouts/electronics-grid/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/electronics-grid/pages/ProductDetailPage.js +201 -142
- package/dist/layouts/electronics-grid/pages/ProductsPage.d.ts +1 -1
- package/dist/layouts/electronics-grid/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/electronics-grid/pages/ProductsPage.js +121 -52
- package/dist/layouts/electronics-grid/pages/TermsPage.js +1 -1
- package/dist/layouts/electronics-grid/pages/TrackOrderPage.js +4 -4
- package/dist/layouts/food/components/FoodHomePage.d.ts.map +1 -1
- package/dist/layouts/food/components/FoodHomePage.js +42 -41
- package/dist/layouts/food/index.js +8 -8
- package/dist/layouts/food/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/food/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/food/pages/AboutPage.js +44 -45
- package/dist/layouts/food/pages/CategoriesPage.js +6 -6
- package/dist/layouts/food/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/food/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/food/pages/CategoryPage.js +23 -21
- package/dist/layouts/food/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/food/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/food/pages/ContactPage.js +5 -7
- package/dist/layouts/food/pages/MenuPage.d.ts +1 -1
- package/dist/layouts/food/pages/MenuPage.d.ts.map +1 -1
- package/dist/layouts/food/pages/MenuPage.js +81 -42
- package/dist/layouts/food/pages/ProductDetailPage.d.ts +1 -1
- package/dist/layouts/food/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/food/pages/ProductDetailPage.js +209 -171
- package/dist/layouts/food/pages/ProductsPage.d.ts +1 -1
- package/dist/layouts/food/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/food/pages/ProductsPage.js +130 -45
- package/dist/layouts/food-modern/components/FoodHomePageModern.js +10 -10
- package/dist/layouts/food-modern/index.js +8 -8
- package/dist/layouts/food-modern/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/food-modern/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/food-modern/pages/AboutPage.js +11 -14
- package/dist/layouts/food-modern/pages/CategoriesPage.js +5 -5
- package/dist/layouts/food-modern/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/food-modern/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/food-modern/pages/CategoryPage.js +23 -20
- package/dist/layouts/food-modern/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/food-modern/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/food-modern/pages/ContactPage.js +5 -7
- package/dist/layouts/food-modern/pages/MenuPage.d.ts +1 -1
- package/dist/layouts/food-modern/pages/MenuPage.d.ts.map +1 -1
- package/dist/layouts/food-modern/pages/MenuPage.js +81 -46
- package/dist/layouts/food-modern/pages/ProductDetailPage.d.ts +1 -1
- package/dist/layouts/food-modern/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/food-modern/pages/ProductDetailPage.js +202 -143
- package/dist/layouts/food-modern/pages/ProductsPage.d.ts +1 -1
- package/dist/layouts/food-modern/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/food-modern/pages/ProductsPage.js +117 -33
- package/dist/layouts/motivational-speaker/components/MotivationalHomePage.d.ts.map +1 -1
- package/dist/layouts/motivational-speaker/components/MotivationalHomePage.js +32 -23
- package/dist/layouts/motivational-speaker/components/MotivationalSpeakerPageWrapper.js +1 -1
- package/dist/layouts/motivational-speaker/index.js +9 -9
- package/dist/layouts/motivational-speaker/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/motivational-speaker/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/motivational-speaker/pages/AboutPage.js +6 -9
- package/dist/layouts/motivational-speaker/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/motivational-speaker/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/motivational-speaker/pages/CategoryPage.js +18 -22
- package/dist/layouts/motivational-speaker/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/motivational-speaker/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/motivational-speaker/pages/ContactPage.js +9 -13
- package/dist/layouts/motivational-speaker/pages/ProductsPage.d.ts +1 -1
- package/dist/layouts/motivational-speaker/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/motivational-speaker/pages/ProductsPage.js +121 -52
- package/dist/layouts/motivational-speaker/pages/ServiceDetailPage.d.ts +1 -1
- package/dist/layouts/motivational-speaker/pages/ServiceDetailPage.d.ts.map +1 -1
- package/dist/layouts/motivational-speaker/pages/ServiceDetailPage.js +15 -24
- package/dist/layouts/motivational-speaker/pages/ServicesPage.d.ts +1 -1
- package/dist/layouts/motivational-speaker/pages/ServicesPage.d.ts.map +1 -1
- package/dist/layouts/motivational-speaker/pages/ServicesPage.js +8 -23
- package/dist/layouts/motivational-speaker/pages/SubscriptionPage.js +7 -7
- package/dist/layouts/shared/components/BaseStoreLayout.js +9 -9
- package/dist/layouts/shared/components/CartLineQuantityControl.js +1 -1
- package/dist/layouts/shared/components/GenericPageWrapper.js +3 -3
- package/dist/layouts/shared/components/ProductPriceFilterSection.js +4 -4
- package/dist/layouts/shared/components/PromoBanner.d.ts +1 -4
- package/dist/layouts/shared/components/PromoBanner.d.ts.map +1 -1
- package/dist/layouts/shared/components/PromoBanner.js +12 -8
- package/dist/layouts/shared/components/StoreFooter.js +10 -10
- package/dist/layouts/shared/components/StoreHeader.js +7 -7
- package/dist/layouts/shared/components/TestimonialCard.d.ts.map +1 -1
- package/dist/layouts/shared/components/TestimonialCard.js +2 -2
- package/dist/layouts/shared/components/headers/BookingAgendaSidebar.js +2 -2
- package/dist/layouts/shared/components/headers/ClothingMinimalHeader.js +11 -11
- package/dist/layouts/shared/components/headers/FoodModernHeader.js +7 -7
- package/dist/layouts/shared/index.js +22 -22
- package/dist/layouts/shared/pages/AccountPage.d.ts.map +1 -1
- package/dist/layouts/shared/pages/AccountPage.js +101 -27
- package/dist/layouts/shared/pages/CartPage.d.ts.map +1 -1
- package/dist/layouts/shared/pages/CartPage.js +39 -90
- package/dist/layouts/shared/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/layouts/shared/pages/CheckoutPage.js +349 -868
- package/dist/layouts/shared/pages/CookiePolicyPage.js +1 -1
- package/dist/layouts/shared/pages/FeatureDisabledPage.js +1 -1
- package/dist/layouts/shared/pages/HelpCenterPage.js +1 -1
- package/dist/layouts/shared/pages/MaintenancePage.d.ts.map +1 -1
- package/dist/layouts/shared/pages/MaintenancePage.js +2 -3
- package/dist/layouts/shared/pages/PortfolioPage.d.ts.map +1 -1
- package/dist/layouts/shared/pages/PortfolioPage.js +2 -2
- package/dist/layouts/shared/pages/PrivacyPolicyPage.js +1 -1
- package/dist/layouts/shared/pages/SizeGuidePage.js +1 -1
- package/dist/layouts/shared/pages/StyleGuidePage.js +3 -3
- package/dist/layouts/shared/pages/TeamPage.d.ts.map +1 -1
- package/dist/layouts/shared/pages/TeamPage.js +1 -1
- package/dist/layouts/shared/pages/TermsPage.js +1 -1
- package/dist/layouts/shared/pages/TrackOrderPage.js +4 -4
- package/dist/layouts/shared/pages/WishlistPage.d.ts.map +1 -1
- package/dist/layouts/shared/pages/WishlistPage.js +44 -29
- package/dist/layouts/shared/wrappers/BookingAgendaLayout.d.ts.map +1 -1
- package/dist/layouts/shared/wrappers/BookingAgendaLayout.js +80 -35
- package/dist/layouts/shared/wrappers/ClothingLayout.js +8 -8
- package/dist/layouts/shared/wrappers/ClothingMinimalLayout.js +7 -7
- package/dist/layouts/shared/wrappers/ElectronicsLayout.js +5 -5
- package/dist/layouts/shared/wrappers/FoodModernLayout.js +6 -6
- package/dist/layouts/shared/wrappers/MotivationalLayout.js +9 -9
- package/dist/layouts/shared/wrappers/StandardLayout.js +8 -8
- package/dist/lib/api.d.ts +3 -4
- package/dist/lib/api.d.ts.map +1 -1
- package/dist/lib/api.js +69 -109
- package/dist/lib/auth-context.js +2 -2
- package/dist/lib/content-selectors.d.ts +1 -1
- package/dist/lib/content-selectors.d.ts.map +1 -1
- package/dist/lib/content-selectors.js +8 -0
- package/dist/lib/layout-config-hydration.js +2 -2
- package/dist/lib/loading-context.d.ts.map +1 -1
- package/dist/lib/loading-context.js +11 -21
- package/dist/lib/payaza-checkout.d.ts.map +1 -1
- package/dist/lib/payaza-checkout.js +2 -4
- package/dist/lib/payaza-public-key.d.ts +6 -0
- package/dist/lib/payaza-public-key.d.ts.map +1 -0
- package/dist/lib/payaza-public-key.js +10 -0
- package/dist/lib/rich-html.d.ts +31 -26
- package/dist/lib/rich-html.d.ts.map +1 -1
- package/dist/lib/rich-html.js +1 -0
- package/dist/lib/services/analytics.service.js +1 -1
- package/dist/lib/services/auth.service.js +1 -1
- package/dist/lib/services/booking.service.js +1 -1
- package/dist/lib/services/category.service.js +1 -1
- package/dist/lib/services/checkout.service.d.ts +3 -0
- package/dist/lib/services/checkout.service.d.ts.map +1 -1
- package/dist/lib/services/checkout.service.js +1 -1
- package/dist/lib/services/contact.service.js +1 -1
- package/dist/lib/services/customer.service.js +1 -1
- package/dist/lib/services/fees.service.d.ts +17 -63
- package/dist/lib/services/fees.service.d.ts.map +1 -1
- package/dist/lib/services/fees.service.js +4 -138
- package/dist/lib/services/index.js +13 -13
- package/dist/lib/services/location.service.js +1 -1
- package/dist/lib/services/order.service.js +1 -1
- package/dist/lib/services/payment.service.js +1 -1
- package/dist/lib/services/product.service.d.ts +7 -2
- package/dist/lib/services/product.service.d.ts.map +1 -1
- package/dist/lib/services/product.service.js +13 -1
- package/dist/lib/services/promo.service.js +1 -1
- package/dist/lib/services/review.service.js +1 -1
- package/dist/lib/services/service.service.js +1 -1
- package/dist/lib/services/shipping.service.js +1 -1
- package/dist/lib/services/store.service.js +1 -1
- package/dist/lib/store-config-utils.d.ts +1 -10
- package/dist/lib/store-config-utils.d.ts.map +1 -1
- package/dist/lib/store-config-utils.js +73 -261
- package/dist/lib/store-config.js +1 -1
- package/dist/lib/store-context.d.ts +1 -23
- package/dist/lib/store-context.d.ts.map +1 -1
- package/dist/lib/store-context.js +89 -111
- package/dist/lib/store-types.d.ts +9 -91
- package/dist/lib/store-types.d.ts.map +1 -1
- package/dist/lib/utils/asset-helpers.js +1 -1
- package/dist/lib/utils/catalog-price-bounds.d.ts +16 -6
- package/dist/lib/utils/catalog-price-bounds.d.ts.map +1 -1
- package/dist/lib/utils/catalog-price-bounds.js +58 -14
- package/dist/lib/utils/category-tree.d.ts +9 -0
- package/dist/lib/utils/category-tree.d.ts.map +1 -1
- package/dist/lib/utils/category-tree.js +26 -0
- package/dist/lib/utils/editor-preview.d.ts +5 -0
- package/dist/lib/utils/editor-preview.d.ts.map +1 -1
- package/dist/lib/utils/editor-preview.js +17 -3
- package/dist/lib/utils/fee-calculations.d.ts +5 -1
- package/dist/lib/utils/fee-calculations.d.ts.map +1 -1
- package/dist/lib/utils/fee-calculations.js +28 -31
- package/dist/lib/utils/index.d.ts +1 -1
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/lib/utils/index.js +4 -4
- package/dist/lib/utils/product-images.js +1 -1
- package/dist/lib/utils/product-share.js +1 -1
- package/dist/lib/utils/url-helpers.d.ts +6 -0
- package/dist/lib/utils/url-helpers.d.ts.map +1 -1
- package/dist/lib/utils/url-helpers.js +20 -4
- package/dist/preview/LayoutPreview.js +6 -6
- package/dist/preview/PreviewRouter.js +4 -4
- package/dist/preview/canvas/PreviewCanvasEnhancer.js +8 -8
- package/dist/preview/canvas/preview-flush-await.js +1 -1
- package/dist/preview/canvas/preview-isolation.js +1 -1
- package/dist/preview/canvas/preview-route.js +2 -2
- package/dist/preview/index.js +5 -5
- package/dist/styles/index.css +190 -149
- package/package.json +31 -43
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { memo } from 'react';
|
|
3
|
-
import { generateArrayItem } from './engine
|
|
4
|
-
import { TextField } from './components/TextField
|
|
5
|
-
import { TextareaField } from './components/TextareaField
|
|
6
|
-
import { RichTextField } from './components/RichTextField
|
|
7
|
-
import { ToggleField } from './components/ToggleField
|
|
8
|
-
import { ImageField } from './components/ImageField
|
|
9
|
-
import { NumberField } from './components/NumberField
|
|
10
|
-
import { StarRatingField } from './components/StarRatingField
|
|
11
|
-
import { IconField } from './components/IconField
|
|
12
|
-
import { ButtonField } from './components/ButtonField
|
|
13
|
-
import { ArrayField } from './components/ArrayField
|
|
14
|
-
import { ObjectField } from './components/ObjectField
|
|
15
|
-
import { SectionField } from './components/SectionField
|
|
16
|
-
import { BlocksField } from './components/BlocksField
|
|
17
|
-
import { getWidget } from './widget-registry
|
|
18
|
-
import { PAYAZA_BLOCK_IDS } from '../blocks/types
|
|
19
|
-
import { registerFieldRenderer } from './field-renderer-ref
|
|
3
|
+
import { generateArrayItem } from './engine';
|
|
4
|
+
import { TextField } from './components/TextField';
|
|
5
|
+
import { TextareaField } from './components/TextareaField';
|
|
6
|
+
import { RichTextField } from './components/RichTextField';
|
|
7
|
+
import { ToggleField } from './components/ToggleField';
|
|
8
|
+
import { ImageField } from './components/ImageField';
|
|
9
|
+
import { NumberField } from './components/NumberField';
|
|
10
|
+
import { StarRatingField } from './components/StarRatingField';
|
|
11
|
+
import { IconField } from './components/IconField';
|
|
12
|
+
import { ButtonField } from './components/ButtonField';
|
|
13
|
+
import { ArrayField } from './components/ArrayField';
|
|
14
|
+
import { ObjectField } from './components/ObjectField';
|
|
15
|
+
import { SectionField } from './components/SectionField';
|
|
16
|
+
import { BlocksField } from './components/BlocksField';
|
|
17
|
+
import { getWidget } from './widget-registry';
|
|
18
|
+
import { PAYAZA_BLOCK_IDS } from '../blocks/types';
|
|
19
|
+
import { registerFieldRenderer } from './field-renderer-ref';
|
|
20
20
|
export const FieldRenderer = memo(({ schemaField, value, path, sectionKey, onChange, onArrayItemChange, onArrayItemAdd, onArrayItemRemove, onArrayItemReorder, }) => {
|
|
21
21
|
const rawEditor = schemaField.type ?? schemaField._editor;
|
|
22
22
|
// Normalize so persisted / hand-authored schemas ("Toggle") still resolve
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useEffect, useCallback } from 'react';
|
|
3
|
-
import { useAssetSelection } from './AssetSelectionContext
|
|
4
|
-
import { processPreviewMessage } from './preview-message-handler
|
|
5
|
-
import { normalizeEditorLayoutId } from '../document/layout-id
|
|
3
|
+
import { useAssetSelection } from './AssetSelectionContext';
|
|
4
|
+
import { processPreviewMessage } from './preview-message-handler';
|
|
5
|
+
import { normalizeEditorLayoutId } from '../document/layout-id';
|
|
6
6
|
/**
|
|
7
7
|
* Handles postMessage from the layout preview iframe (field commit, image replace, reorder).
|
|
8
8
|
* Must render under AssetSelectionProvider for image replacement.
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useMemo, useEffect, useLayoutEffect, useRef, useCallback } from 'react';
|
|
3
|
-
import { previewRouteToPageId } from '../../preview/canvas/preview-route
|
|
4
|
-
import { EditorHeader } from '../shared/EditorHeader
|
|
5
|
-
import { useEditorChromeMetrics } from '../shared/useEditorChromeMetrics
|
|
6
|
-
import { EditorNavigator } from '../shared/EditorNavigator
|
|
7
|
-
import { ResizableSidebar } from '../shared/ResizableSidebar
|
|
8
|
-
import { moveSectionKeyInPageOrder, normalizeEditorLayoutId, resolveSectionKeyOrderForPage, storeConfigToEnvelope, } from '../document
|
|
9
|
-
import { applyEditorCatalogOverlay } from '../../lib/utils/editor-preview
|
|
10
|
-
import { payazaSectionStyleKey, getPayazaSectionStyleEntries } from '../../lib/payaza-section-styles
|
|
11
|
-
import { getPageSchema } from './engine
|
|
12
|
-
import { loadLayoutJSON } from './layout-loader
|
|
13
|
-
import { transformToStoreConfig, updateOverlayData, addArrayItem, removeArrayItem, updateArrayItem, readOverlayFieldValue } from './data-transformer
|
|
14
|
-
import { generateArrayItem } from './engine
|
|
15
|
-
import { initializeWidgetRegistry, clearWidgets } from './widget-registry
|
|
16
|
-
import { mergeRequirementAllPagesWithActualData, mergeAllPagesWithActualData, } from './data-merger
|
|
3
|
+
import { previewRouteToPageId } from '../../preview/canvas/preview-route';
|
|
4
|
+
import { EditorHeader } from '../shared/EditorHeader';
|
|
5
|
+
import { useEditorChromeMetrics } from '../shared/useEditorChromeMetrics';
|
|
6
|
+
import { EditorNavigator } from '../shared/EditorNavigator';
|
|
7
|
+
import { ResizableSidebar } from '../shared/ResizableSidebar';
|
|
8
|
+
import { moveSectionKeyInPageOrder, normalizeEditorLayoutId, resolveSectionKeyOrderForPage, storeConfigToEnvelope, } from '../document';
|
|
9
|
+
import { applyEditorCatalogOverlay } from '../../lib/utils/editor-preview';
|
|
10
|
+
import { payazaSectionStyleKey, getPayazaSectionStyleEntries } from '../../lib/payaza-section-styles';
|
|
11
|
+
import { getPageSchema } from './engine';
|
|
12
|
+
import { loadLayoutJSON } from './layout-loader';
|
|
13
|
+
import { transformToStoreConfig, updateOverlayData, addArrayItem, removeArrayItem, updateArrayItem, readOverlayFieldValue } from './data-transformer';
|
|
14
|
+
import { generateArrayItem } from './engine';
|
|
15
|
+
import { initializeWidgetRegistry, clearWidgets } from './widget-registry';
|
|
16
|
+
import { mergeRequirementAllPagesWithActualData, mergeAllPagesWithActualData, } from './data-merger';
|
|
17
17
|
import { Settings2, Box, Palette, Layers, Monitor, PanelLeft, ChevronLeft } from 'lucide-react';
|
|
18
|
-
import { useDebounce } from '../../hooks/use-debounce
|
|
19
|
-
import { AIGenerateModal } from '../shared/AIGenerateModal
|
|
20
|
-
import { useAlertModal } from '../../components/ui/alert-modal
|
|
21
|
-
import { AssetSelectionProvider } from './AssetSelectionContext
|
|
22
|
-
import { IframePreviewMessageBridge } from './IframePreviewMessageBridge
|
|
23
|
-
import { EditorCanvasPreview } from './EditorCanvasPreview
|
|
24
|
-
import { awaitPreviewFlushAck } from '../../preview/canvas/preview-flush-await
|
|
25
|
-
import { BlockStylesInspector } from './components/BlockStylesInspector
|
|
26
|
-
import { CanvasGranularInspector } from './components/CanvasGranularInspector
|
|
27
|
-
import { SectionSchemaInspector } from './components/SectionSchemaInspector
|
|
28
|
-
import { isLayoutPageEditable } from '../alignment-schemas/metadata
|
|
29
|
-
import { resolveCanvasInspectorLeaf } from '../alignment-schemas/resolve-canvas-inspector-leaf
|
|
30
|
-
import { isInlineCanvasTextElementKind } from '../../lib/utils/mobile-editor
|
|
31
|
-
import { granularPathForArrayItem, granularPathForBlockFirstAttr, outlineTreeForSectionPayload, } from '../blocks/nav-outline-utils
|
|
32
|
-
import { ActiveArrayFocusProvider, } from './ActiveArrayFocusContext
|
|
33
|
-
import { EditorLayoutProvider } from './EditorLayoutContext
|
|
34
|
-
import { isMobileEditorViewport, shouldUseInlineEditorPreview } from '../../lib/utils/mobile-editor
|
|
18
|
+
import { useDebounce } from '../../hooks/use-debounce';
|
|
19
|
+
import { AIGenerateModal } from '../shared/AIGenerateModal';
|
|
20
|
+
import { useAlertModal } from '../../components/ui/alert-modal';
|
|
21
|
+
import { AssetSelectionProvider } from './AssetSelectionContext';
|
|
22
|
+
import { IframePreviewMessageBridge } from './IframePreviewMessageBridge';
|
|
23
|
+
import { EditorCanvasPreview } from './EditorCanvasPreview';
|
|
24
|
+
import { awaitPreviewFlushAck } from '../../preview/canvas/preview-flush-await';
|
|
25
|
+
import { BlockStylesInspector } from './components/BlockStylesInspector';
|
|
26
|
+
import { CanvasGranularInspector } from './components/CanvasGranularInspector';
|
|
27
|
+
import { SectionSchemaInspector } from './components/SectionSchemaInspector';
|
|
28
|
+
import { isLayoutPageEditable } from '../alignment-schemas/metadata';
|
|
29
|
+
import { resolveCanvasInspectorLeaf } from '../alignment-schemas/resolve-canvas-inspector-leaf';
|
|
30
|
+
import { isInlineCanvasTextElementKind } from '../../lib/utils/mobile-editor';
|
|
31
|
+
import { granularPathForArrayItem, granularPathForBlockFirstAttr, outlineTreeForSectionPayload, } from '../blocks/nav-outline-utils';
|
|
32
|
+
import { ActiveArrayFocusProvider, } from './ActiveArrayFocusContext';
|
|
33
|
+
import { EditorLayoutProvider } from './EditorLayoutContext';
|
|
34
|
+
import { isMobileEditorViewport, shouldUseInlineEditorPreview } from '../../lib/utils/mobile-editor';
|
|
35
35
|
/** Lightweight fingerprint for undo history on mobile — avoids JSON.stringify on large configs. */
|
|
36
36
|
function lightweightConfigFingerprint(config) {
|
|
37
37
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { PayazaFormEditor } from './PayazaFormEditor
|
|
3
|
-
import { AlertModalProvider } from '../../components/ui/alert-modal
|
|
2
|
+
import { PayazaFormEditor } from './PayazaFormEditor';
|
|
3
|
+
import { AlertModalProvider } from '../../components/ui/alert-modal';
|
|
4
4
|
export const PayazaFormEditorFullPage = (props) => {
|
|
5
5
|
return (_jsx(AlertModalProvider, { children: _jsx("div", { className: "fixed inset-0 z-50 flex h-[100dvh] max-h-[100dvh] flex-col overflow-hidden bg-[#F7F5F0]", children: _jsx("main", { className: "relative flex min-h-0 flex-1 flex-col overflow-hidden", children: _jsx(PayazaFormEditor, { ...props }) }) }) }));
|
|
6
6
|
};
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { memo, useCallback, useEffect, useRef } from 'react';
|
|
4
4
|
import { ChevronLeft, ChevronRight, Copy, Image as ImageIcon, Plus, Trash2, } from 'lucide-react';
|
|
5
|
-
import { cn } from '../../lib/utils
|
|
6
|
-
import { getFieldRenderer } from './field-renderer-ref
|
|
7
|
-
import { useActiveArrayFocus } from './ActiveArrayFocusContext
|
|
5
|
+
import { cn } from '../../lib/utils';
|
|
6
|
+
import { getFieldRenderer } from './field-renderer-ref';
|
|
7
|
+
import { useActiveArrayFocus } from './ActiveArrayFocusContext';
|
|
8
8
|
function slideLabel(item, index) {
|
|
9
9
|
if (!item)
|
|
10
10
|
return `Slide ${index + 1}`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
import { List } from 'lucide-react';
|
|
4
|
-
import { ArrayItemManager } from '../ArrayItemManager
|
|
4
|
+
import { ArrayItemManager } from '../ArrayItemManager';
|
|
5
5
|
export const ArrayField = memo(({ label, value, onChange, itemSchema, itemEditor, sectionKey, arrayFieldKey, minSlides, maxSlides, onItemChange, onItemAdd, onItemRemove, onItemReorder, onItemDuplicate, }) => {
|
|
6
6
|
const handleItemDuplicate = (index) => {
|
|
7
7
|
if (onItemDuplicate) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useMemo } from 'react';
|
|
3
|
-
import { resolveStyleSupports, sanitizePayazaStyleMap } from '../payaza-style-sanitize
|
|
3
|
+
import { resolveStyleSupports, sanitizePayazaStyleMap } from '../payaza-style-sanitize';
|
|
4
4
|
const inputCls = 'w-full rounded-[2px] border border-[#dcdcde] bg-white px-2 py-1.5 text-[13px] text-[#1b0029] outline-none focus-visible:ring-2 focus-visible:ring-[#440066]/35';
|
|
5
5
|
const labelCls = 'mb-1 block text-[11px] font-medium text-[#646970]';
|
|
6
6
|
const sectionTitle = 'text-[11px] font-semibold uppercase tracking-[0.08em] text-[#787c82]';
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React, { memo, useCallback } from 'react';
|
|
4
4
|
import { ChevronDown, ChevronRight, Plus, Trash2 } from 'lucide-react';
|
|
5
|
-
import { cn } from '../../../lib/utils
|
|
6
|
-
import { createPayazaEmptyBlock, getPayazaBlockDefinition } from '../../blocks/registry
|
|
7
|
-
import { deepClone } from '../../../lib/utils
|
|
8
|
-
import { RichTextField } from './RichTextField
|
|
9
|
-
import { TextField } from './TextField
|
|
10
|
-
import { ImageField } from './ImageField
|
|
11
|
-
import { NumberField } from './NumberField
|
|
12
|
-
import { IconField } from './IconField
|
|
13
|
-
import { FieldDensityProvider } from './FieldDensityContext
|
|
5
|
+
import { cn } from '../../../lib/utils';
|
|
6
|
+
import { createPayazaEmptyBlock, getPayazaBlockDefinition } from '../../blocks/registry';
|
|
7
|
+
import { deepClone } from '../../../lib/utils';
|
|
8
|
+
import { RichTextField } from './RichTextField';
|
|
9
|
+
import { TextField } from './TextField';
|
|
10
|
+
import { ImageField } from './ImageField';
|
|
11
|
+
import { NumberField } from './NumberField';
|
|
12
|
+
import { IconField } from './IconField';
|
|
13
|
+
import { FieldDensityProvider } from './FieldDensityContext';
|
|
14
14
|
function normalizeBlocks(v) {
|
|
15
15
|
if (!Array.isArray(v))
|
|
16
16
|
return [];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Link2 } from 'lucide-react';
|
|
4
|
-
import { TextField } from './TextField
|
|
5
|
-
import { useEditorLayout } from '../EditorLayoutContext
|
|
6
|
-
import { getTemplatePages } from '../../../lib/template-pages
|
|
4
|
+
import { TextField } from './TextField';
|
|
5
|
+
import { useEditorLayout } from '../EditorLayoutContext';
|
|
6
|
+
import { getTemplatePages } from '../../../lib/template-pages';
|
|
7
7
|
export const ButtonField = ({ label, value, onChange }) => {
|
|
8
8
|
const { layoutId } = useEditorLayout();
|
|
9
9
|
const pages = getTemplatePages(layoutId);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { memo, useMemo } from 'react';
|
|
4
|
-
import { readOverlayFieldValue } from '../data-transformer
|
|
5
|
-
import { resolveCanvasInspectorLeaf, } from '../../alignment-schemas/resolve-canvas-inspector-leaf
|
|
6
|
-
import { coerceRichSidebarEditorString } from '../../../lib/rich-html
|
|
7
|
-
import { TextField } from './TextField
|
|
8
|
-
import { TextareaField } from './TextareaField
|
|
9
|
-
import { RichTextField } from './RichTextField
|
|
10
|
-
import { ImageField } from './ImageField
|
|
11
|
-
import { IconField } from './IconField
|
|
12
|
-
import { NumberField } from './NumberField
|
|
13
|
-
import { StarRatingField } from './StarRatingField
|
|
14
|
-
import { ToggleField } from './ToggleField
|
|
4
|
+
import { readOverlayFieldValue } from '../data-transformer';
|
|
5
|
+
import { resolveCanvasInspectorLeaf, } from '../../alignment-schemas/resolve-canvas-inspector-leaf';
|
|
6
|
+
import { coerceRichSidebarEditorString } from '../../../lib/rich-html';
|
|
7
|
+
import { TextField } from './TextField';
|
|
8
|
+
import { TextareaField } from './TextareaField';
|
|
9
|
+
import { RichTextField } from './RichTextField';
|
|
10
|
+
import { ImageField } from './ImageField';
|
|
11
|
+
import { IconField } from './IconField';
|
|
12
|
+
import { NumberField } from './NumberField';
|
|
13
|
+
import { StarRatingField } from './StarRatingField';
|
|
14
|
+
import { ToggleField } from './ToggleField';
|
|
15
15
|
export const CanvasGranularInspector = memo(({ layoutJson, activePageId, sectionKey, fieldPath, elementKind, pageSchemaRecord, sectionData, onChange, }) => {
|
|
16
16
|
const meta = useMemo(() => resolveCanvasInspectorLeaf(pageSchemaRecord, sectionKey, fieldPath, sectionData, elementKind), [pageSchemaRecord, sectionKey, fieldPath, sectionData, elementKind]);
|
|
17
17
|
const rawValue = useMemo(() => readOverlayFieldValue(layoutJson, activePageId, sectionKey, fieldPath), [layoutJson, activePageId, sectionKey, fieldPath]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { ChevronDown, Search, HelpCircle } from 'lucide-react';
|
|
4
|
-
import { ICON_MAP, COMMON_ICON_NAMES } from '../../../components/ui/dynamic-icon
|
|
5
|
-
import { resolveFieldDensity } from './FieldDensityContext
|
|
4
|
+
import { ICON_MAP, COMMON_ICON_NAMES } from '../../../components/ui/dynamic-icon';
|
|
5
|
+
import { resolveFieldDensity } from './FieldDensityContext';
|
|
6
6
|
/** Match persisted / hand-typed icon ids to Lucide map keys (case-insensitive). */
|
|
7
7
|
function resolveIconMapKey(raw) {
|
|
8
8
|
if (!raw?.trim())
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Link2, X, Upload } from 'lucide-react';
|
|
4
|
-
import { useAssetSelection } from '../AssetSelectionContext
|
|
4
|
+
import { useAssetSelection } from '../AssetSelectionContext';
|
|
5
5
|
export const ImageField = ({ label, value, onChange, placeholder, }) => {
|
|
6
6
|
const hasImage = value && value.startsWith('http');
|
|
7
7
|
const [isHovered, setIsHovered] = React.useState(false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Plus, Minus } from 'lucide-react';
|
|
3
|
-
import { resolveFieldDensity } from './FieldDensityContext
|
|
3
|
+
import { resolveFieldDensity } from './FieldDensityContext';
|
|
4
4
|
export const NumberField = ({ label, value, onChange, placeholder, min, max, density: densityProp, }) => {
|
|
5
5
|
const density = resolveFieldDensity(densityProp);
|
|
6
6
|
const compact = density === 'compact';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { memo, useRef, useCallback, useLayoutEffect, useState } from 'react';
|
|
3
|
-
import { buildPayazaRichCommitFromEditorHtml, coercePayazaRichLinkHref, normalizeStoredRichValue, coerceRichSidebarEditorString, PAYAZA_RICH_HTML_POLICY_VERSION, sanitizePayazaRichHtml, wrapPlainTextAsParagraph, } from '../../../lib/rich-html
|
|
4
|
-
import { resolveFieldDensity } from './FieldDensityContext
|
|
3
|
+
import { buildPayazaRichCommitFromEditorHtml, coercePayazaRichLinkHref, normalizeStoredRichValue, coerceRichSidebarEditorString, PAYAZA_RICH_HTML_POLICY_VERSION, sanitizePayazaRichHtml, wrapPlainTextAsParagraph, } from '../../../lib/rich-html';
|
|
4
|
+
import { resolveFieldDensity } from './FieldDensityContext';
|
|
5
5
|
function runCmd(cmd, val) {
|
|
6
6
|
document.execCommand(cmd, false, val);
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { FieldRenderer } from '../FieldRenderer
|
|
3
|
-
import { BlocksField } from './BlocksField
|
|
4
|
-
import { PAYAZA_BLOCK_IDS } from '../../blocks/types
|
|
2
|
+
import { FieldRenderer } from '../FieldRenderer';
|
|
3
|
+
import { BlocksField } from './BlocksField';
|
|
4
|
+
import { PAYAZA_BLOCK_IDS } from '../../blocks/types';
|
|
5
5
|
function fieldTypeOf(field) {
|
|
6
6
|
const raw = field.type ?? field._editor;
|
|
7
7
|
if (raw === undefined || raw === null)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Star } from 'lucide-react';
|
|
3
|
-
import { cn } from '../../../lib/utils
|
|
4
|
-
import { resolveFieldDensity } from './FieldDensityContext
|
|
3
|
+
import { cn } from '../../../lib/utils';
|
|
4
|
+
import { resolveFieldDensity } from './FieldDensityContext';
|
|
5
5
|
function clampRating(value, min, max) {
|
|
6
6
|
if (!Number.isFinite(value))
|
|
7
7
|
return max;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { memo } from 'react';
|
|
3
|
-
import { resolveFieldDensity } from './FieldDensityContext
|
|
3
|
+
import { resolveFieldDensity } from './FieldDensityContext';
|
|
4
4
|
export const TextField = memo(({ label, value, onChange, placeholder, type = 'text', density: densityProp, }) => {
|
|
5
5
|
const density = resolveFieldDensity(densityProp);
|
|
6
6
|
const compact = density === 'compact';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { deepClone } from '../../lib/utils
|
|
2
|
-
import { transformToStoreConfig } from './data-transformer
|
|
3
|
-
import { ensureClothingMinimalHomeBlocksInPageData } from '../blocks/migrate-clothing-minimal
|
|
4
|
-
import { BOOKING_DEFAULT_TESTIMONIALS, normalizeBookingTestimonialItems, } from '../../layouts/booking/components/booking-testimonial-defaults
|
|
5
|
-
import { BOOKING_DEFAULT_ABOUT_STATS, BOOKING_DEFAULT_ABOUT_VALUES, mergeBookingAboutItemsSection, } from '../../layouts/booking/components/booking-about-defaults
|
|
6
|
-
import { mergeBookingFooterSection } from '../../layouts/booking/components/booking-footer-defaults
|
|
1
|
+
import { deepClone } from '../../lib/utils';
|
|
2
|
+
import { transformToStoreConfig } from './data-transformer';
|
|
3
|
+
import { ensureClothingMinimalHomeBlocksInPageData } from '../blocks/migrate-clothing-minimal';
|
|
4
|
+
import { BOOKING_DEFAULT_TESTIMONIALS, normalizeBookingTestimonialItems, } from '../../layouts/booking/components/booking-testimonial-defaults';
|
|
5
|
+
import { BOOKING_DEFAULT_ABOUT_STATS, BOOKING_DEFAULT_ABOUT_VALUES, mergeBookingAboutItemsSection, } from '../../layouts/booking/components/booking-about-defaults';
|
|
6
|
+
import { mergeBookingFooterSection } from '../../layouts/booking/components/booking-footer-defaults';
|
|
7
7
|
function sliderHasUsableContent(slider) {
|
|
8
8
|
if (!slider)
|
|
9
9
|
return false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { deepClone } from '../../lib/utils
|
|
2
|
-
import { normalizeLayoutConfigFieldShapes } from '../../lib/layout-field-normalize
|
|
3
|
-
import { sanitizeBookingTestimonialItemsForSave } from '../../layouts/booking/components/booking-testimonial-defaults
|
|
1
|
+
import { deepClone } from '../../lib/utils';
|
|
2
|
+
import { normalizeLayoutConfigFieldShapes } from '../../lib/layout-field-normalize';
|
|
3
|
+
import { sanitizeBookingTestimonialItemsForSave } from '../../layouts/booking/components/booking-testimonial-defaults';
|
|
4
4
|
/**
|
|
5
5
|
* Helper to set value at deep path in object
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { registerWidget, registerWidgets, PayazaFormEditorFullPage } from '../index
|
|
2
|
+
import { registerWidget, registerWidgets, PayazaFormEditorFullPage } from '../index';
|
|
3
3
|
// Example 1: Custom Text Field Widget
|
|
4
4
|
const CustomTextField = ({ label, value, onChange }) => {
|
|
5
5
|
return (_jsxs("div", { className: "custom-text-field", children: [_jsx("label", { className: "text-sm font-semibold text-gray-700 mb-1 block", children: label }), _jsx("input", { type: "text", value: value || '', onChange: (e) => onChange(e.target.value), className: "w-full px-4 py-2 border-2 border-blue-300 rounded-lg focus:border-blue-500 focus:outline-none", placeholder: `Enter ${label.toLowerCase()}...` })] }));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { PayazaFormEditor } from './PayazaFormEditor
|
|
2
|
-
export { PayazaFormEditorFullPage } from './PayazaFormEditorFullPage
|
|
3
|
-
export { getGlobalAssetSelectionHandler, setGlobalAssetSelectionHandler } from './AssetSelectionContext
|
|
4
|
-
export * from './engine
|
|
5
|
-
export * from './data-transformer
|
|
6
|
-
export * from './layout-loader
|
|
7
|
-
export * from './widget-registry
|
|
8
|
-
export * from '../document
|
|
1
|
+
export { PayazaFormEditor } from './PayazaFormEditor';
|
|
2
|
+
export { PayazaFormEditorFullPage } from './PayazaFormEditorFullPage';
|
|
3
|
+
export { getGlobalAssetSelectionHandler, setGlobalAssetSelectionHandler } from './AssetSelectionContext';
|
|
4
|
+
export * from './engine';
|
|
5
|
+
export * from './data-transformer';
|
|
6
|
+
export * from './layout-loader';
|
|
7
|
+
export * from './widget-registry';
|
|
8
|
+
export * from '../document';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parseLayoutJSON } from './engine
|
|
2
|
-
import { bridgeRequirementToOverlayJSONAsync, getBridgedPayazaFormRequirement } from './schema-bridge
|
|
1
|
+
import { parseLayoutJSON } from './engine';
|
|
2
|
+
import { bridgeRequirementToOverlayJSONAsync, getBridgedPayazaFormRequirement } from './schema-bridge';
|
|
3
3
|
/**
|
|
4
4
|
* Async layout loader — primary path.
|
|
5
5
|
* Lazily loads only the alignment schema for the active layout.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PREVIEW_MSG, } from '../../preview/canvas/preview-messages
|
|
2
|
-
import { previewCommitsMatchEditorContext } from '../../preview/canvas/preview-isolation
|
|
3
|
-
import { resolvePreviewFlushAck } from '../../preview/canvas/preview-flush-await
|
|
1
|
+
import { PREVIEW_MSG, } from '../../preview/canvas/preview-messages';
|
|
2
|
+
import { previewCommitsMatchEditorContext } from '../../preview/canvas/preview-isolation';
|
|
3
|
+
import { resolvePreviewFlushAck } from '../../preview/canvas/preview-flush-await';
|
|
4
4
|
/** Shared handler for iframe postMessage and inline preview events. */
|
|
5
5
|
export function processPreviewMessage(d, ctx) {
|
|
6
6
|
if (d.type === PREVIEW_MSG.FLUSH_EDITS_ACK) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { loadAlignmentSchemaAsync, getLoadedAlignmentSchema, } from '../alignment-schemas/lazy-loader
|
|
2
|
-
import { getLayoutMetadata } from '../alignment-schemas/metadata
|
|
3
|
-
import { normalizeEditorLayoutId } from '../document/layout-id
|
|
1
|
+
import { loadAlignmentSchemaAsync, getLoadedAlignmentSchema, } from '../alignment-schemas/lazy-loader';
|
|
2
|
+
import { getLayoutMetadata } from '../alignment-schemas/metadata';
|
|
3
|
+
import { normalizeEditorLayoutId } from '../document/layout-id';
|
|
4
4
|
const _overlayCache = {};
|
|
5
5
|
function buildOverlayJSON(metadata, alignmentSchema) {
|
|
6
6
|
return {
|
|
@@ -15,7 +15,7 @@ const widgetRegistry = new Map();
|
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```tsx
|
|
18
|
-
* import { registerWidget } from './widget-registry
|
|
18
|
+
* import { registerWidget } from './widget-registry';
|
|
19
19
|
*
|
|
20
20
|
* const MyCustomTextField = ({ label, value, onChange }) => (
|
|
21
21
|
* <div>
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { AlignLeft, ChevronDown, ChevronRight, Eye, EyeOff, Image as ImageIcon, Layers, MapPin, Minus, MousePointer2, Square, Star, Tag, Type, } from 'lucide-react';
|
|
5
|
-
import { cn } from '../../lib/utils
|
|
6
|
-
import { isGranularPathUnderBlock } from '../blocks/nav-outline-utils
|
|
5
|
+
import { cn } from '../../lib/utils';
|
|
6
|
+
import { isGranularPathUnderBlock } from '../blocks/nav-outline-utils';
|
|
7
7
|
const BLOCK_ICON_MAP = {
|
|
8
8
|
'payaza/heading': Type,
|
|
9
9
|
'payaza/paragraph': AlignLeft,
|
|
@@ -2,9 +2,9 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
4
|
import { motion, AnimatePresence } from 'framer-motion';
|
|
5
|
-
import { cn } from '../../lib/utils
|
|
5
|
+
import { cn } from '../../lib/utils';
|
|
6
6
|
import { ArrowLeft, Layout, Save, Smartphone, Monitor, Tablet, Eye, Pencil, PanelLeft, ChevronDown, Home, ShoppingBag, ShoppingCart, FileText, Settings, Undo2, Redo2, Send, Sparkles, Image as ImageIcon, Palette, Check, ZoomIn, } from 'lucide-react';
|
|
7
|
-
import { PREVIEW_ZOOM_OPTIONS } from './preview-viewport
|
|
7
|
+
import { PREVIEW_ZOOM_OPTIONS } from './preview-viewport';
|
|
8
8
|
const Tooltip = ({ text, children }) => {
|
|
9
9
|
const [isVisible, setIsVisible] = useState(false);
|
|
10
10
|
const [coords, setCoords] = useState({ top: 0, left: 0 });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
-
import { cn } from '../../lib/utils
|
|
3
|
+
import { cn } from '../../lib/utils';
|
|
4
4
|
import { ChevronDown, ChevronRight, Eye, EyeOff, Layers, List } from 'lucide-react';
|
|
5
|
-
import { BlockOutlineTree } from './BlockOutlineTree
|
|
5
|
+
import { BlockOutlineTree } from './BlockOutlineTree';
|
|
6
6
|
/**
|
|
7
7
|
* Full-template outline (pages → blocks). Reorder controls apply to the active page only.
|
|
8
8
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useImperativeHandle, useMemo, useRef, useState, forwardRef } from 'react';
|
|
3
|
-
import { isDeepEqual } from '../../lib/utils
|
|
4
|
-
import { normalizeEditorLayoutId } from '../document/layout-id
|
|
5
|
-
import { previewPageIdToRoute } from '../../preview/canvas/preview-route
|
|
6
|
-
import { PREVIEW_MSG } from '../../preview/canvas/preview-messages
|
|
7
|
-
import { DESKTOP_PREVIEW_WIDTH, resolvePreviewScale, } from './preview-viewport
|
|
8
|
-
export { DESKTOP_PREVIEW_WIDTH } from './preview-viewport
|
|
3
|
+
import { isDeepEqual } from '../../lib/utils';
|
|
4
|
+
import { normalizeEditorLayoutId } from '../document/layout-id';
|
|
5
|
+
import { previewPageIdToRoute } from '../../preview/canvas/preview-route';
|
|
6
|
+
import { PREVIEW_MSG } from '../../preview/canvas/preview-messages';
|
|
7
|
+
import { DESKTOP_PREVIEW_WIDTH, resolvePreviewScale, } from './preview-viewport';
|
|
8
|
+
export { DESKTOP_PREVIEW_WIDTH } from './preview-viewport';
|
|
9
9
|
export const IframePreview = forwardRef(function IframePreview({ layoutId, config, activePageId, viewMode, selectedSection, focusedField = null, interactionMode = 'edit', slideIndexSync = null, flushRequestId = 0, previewZoom = 'fit', desktopCanvasWidth = DESKTOP_PREVIEW_WIDTH, className = '', }, ref) {
|
|
10
10
|
const iframeRef = useRef(null);
|
|
11
11
|
const viewportContainerRef = useRef(null);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
4
|
-
import { LayoutPreview } from '../../preview/LayoutPreview
|
|
5
|
-
import { PreviewCanvasEnhancer } from '../../preview/canvas/PreviewCanvasEnhancer
|
|
6
|
-
import { PreviewCanvasStyles } from '../../preview/canvas/PreviewCanvasStyles
|
|
7
|
-
import { previewPageIdToRoute } from '../../preview/canvas/preview-route
|
|
8
|
-
import { PREVIEW_MSG } from '../../preview/canvas/preview-messages
|
|
9
|
-
import { normalizeEditorLayoutId } from '../document/layout-id
|
|
10
|
-
import { DESKTOP_PREVIEW_WIDTH, resolvePreviewScale, } from './preview-viewport
|
|
11
|
-
import { MOBILE_INLINE_DESKTOP_MAX_WIDTH, shouldUseInlineEditorPreview, } from '../../lib/utils/mobile-editor
|
|
4
|
+
import { LayoutPreview } from '../../preview/LayoutPreview';
|
|
5
|
+
import { PreviewCanvasEnhancer } from '../../preview/canvas/PreviewCanvasEnhancer';
|
|
6
|
+
import { PreviewCanvasStyles } from '../../preview/canvas/PreviewCanvasStyles';
|
|
7
|
+
import { previewPageIdToRoute } from '../../preview/canvas/preview-route';
|
|
8
|
+
import { PREVIEW_MSG } from '../../preview/canvas/preview-messages';
|
|
9
|
+
import { normalizeEditorLayoutId } from '../document/layout-id';
|
|
10
|
+
import { DESKTOP_PREVIEW_WIDTH, resolvePreviewScale, } from './preview-viewport';
|
|
11
|
+
import { MOBILE_INLINE_DESKTOP_MAX_WIDTH, shouldUseInlineEditorPreview, } from '../../lib/utils/mobile-editor';
|
|
12
12
|
const MOBILE_INLINE_MIN_LAYOUT_HEIGHT = 480;
|
|
13
13
|
/**
|
|
14
14
|
* Same-document layout preview for mobile editors — avoids iframe memory overhead on WebKit.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { LayoutPreview } from '../../preview/LayoutPreview
|
|
2
|
+
import { LayoutPreview } from '../../preview/LayoutPreview';
|
|
3
3
|
export const LayoutRenderer = ({ layoutId, config, activePageId, className = '', }) => {
|
|
4
4
|
// Map the pageId to a route for LayoutPreview
|
|
5
5
|
const route = activePageId === 'home' ? '/' : `/${activePageId}`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback, useEffect, useRef } from 'react';
|
|
3
|
-
import { cn } from '../../lib/utils
|
|
3
|
+
import { cn } from '../../lib/utils';
|
|
4
4
|
import { GripVertical } from 'lucide-react';
|
|
5
5
|
export const ResizableSidebar = ({ children, initialWidth = 400, minWidth = 300, maxWidth = 600, className = '', side = 'right', onWidthChange, }) => {
|
|
6
6
|
const [width, setWidth] = useState(initialWidth);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './EditorHeader
|
|
2
|
-
export * from './EditorNavigator
|
|
3
|
-
export * from './IframePreview
|
|
4
|
-
export * from './InlineCanvasPreview
|
|
5
|
-
export * from './LayoutRenderer
|
|
6
|
-
export * from './PageTabs
|
|
7
|
-
export * from './ResizableSidebar
|
|
1
|
+
export * from './EditorHeader';
|
|
2
|
+
export * from './EditorNavigator';
|
|
3
|
+
export * from './IframePreview';
|
|
4
|
+
export * from './InlineCanvasPreview';
|
|
5
|
+
export * from './LayoutRenderer';
|
|
6
|
+
export * from './PageTabs';
|
|
7
|
+
export * from './ResizableSidebar';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useEffect, useCallback, useRef } from 'react';
|
|
3
3
|
import { usePathname } from 'next/navigation';
|
|
4
|
-
import { analyticsService } from '../lib/services/analytics.service
|
|
5
|
-
import { useStore } from '../lib/store-context
|
|
6
|
-
import { useAuth } from '../lib/auth-context
|
|
4
|
+
import { analyticsService } from '../lib/services/analytics.service';
|
|
5
|
+
import { useStore } from '../lib/store-context';
|
|
6
|
+
import { useAuth } from '../lib/auth-context';
|
|
7
7
|
/**
|
|
8
8
|
* React hook for analytics tracking
|
|
9
9
|
* Automatically tracks page views and provides trackEvent function
|
package/dist/hooks/use-api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-cart-api.d.ts","sourceRoot":"","sources":["../../src/hooks/use-cart-api.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"use-cart-api.d.ts","sourceRoot":"","sources":["../../src/hooks/use-cart-api.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMhD,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,GAAG,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/F,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,GAAG,gBAAgB,CAwH5E"}
|