storefront-layouts-staging 1.0.0-staging.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 +539 -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 +10 -0
- package/dist/components/product/ProductVariationSelectors.d.ts.map +1 -0
- package/dist/components/product/ProductVariationSelectors.js +27 -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 +124 -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 +26 -0
- package/dist/hooks/use-product-variation-selection.d.ts.map +1 -0
- package/dist/hooks/use-product-variation-selection.js +26 -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 +433 -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 +433 -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 +260 -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 +393 -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 +268 -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 +163 -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 +432 -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 +107 -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 +96 -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 +430 -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 +107 -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 +111 -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 +430 -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 +485 -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 +427 -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/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 +38 -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 +121 -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 +1430 -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/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 +8 -0
- package/dist/lib/product-variation-utils.d.ts.map +1 -0
- package/dist/lib/product-variation-utils.js +101 -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 +1713 -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 +456 -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 +10598 -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 +192 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { X, Sparkles, Store, FileText, PlusCircle, Loader2, Image as ImageIcon } from 'lucide-react';
|
|
4
|
+
import { motion, AnimatePresence } from 'framer-motion';
|
|
5
|
+
export const AIGenerateModal = ({ isOpen, onClose, onGenerate, initialContext, isGenerating }) => {
|
|
6
|
+
const [context, setContext] = useState({
|
|
7
|
+
storeName: initialContext.storeName || '',
|
|
8
|
+
storeDescription: initialContext.storeDescription || '',
|
|
9
|
+
additionalContext: '',
|
|
10
|
+
assets: initialContext.assets || [],
|
|
11
|
+
});
|
|
12
|
+
// Update context if initialContext changes
|
|
13
|
+
React.useEffect(() => {
|
|
14
|
+
setContext(prev => ({
|
|
15
|
+
...prev,
|
|
16
|
+
storeName: initialContext.storeName || prev.storeName,
|
|
17
|
+
storeDescription: initialContext.storeDescription || prev.storeDescription,
|
|
18
|
+
assets: initialContext.assets || prev.assets,
|
|
19
|
+
}));
|
|
20
|
+
}, [initialContext.storeName, initialContext.storeDescription, initialContext.assets]);
|
|
21
|
+
if (!isOpen)
|
|
22
|
+
return null;
|
|
23
|
+
const handleSubmit = (e) => {
|
|
24
|
+
e.preventDefault();
|
|
25
|
+
onGenerate(context);
|
|
26
|
+
};
|
|
27
|
+
const hasDefaultContext = !!(initialContext.storeName && initialContext.storeDescription);
|
|
28
|
+
return (_jsx("div", { className: "fixed inset-0 z-[200] flex items-center justify-center p-4 bg-slate-900/40 backdrop-blur-sm animate-in fade-in duration-200", children: _jsxs("div", { className: "bg-white w-full max-w-xl rounded-3xl shadow-2xl border border-slate-200 overflow-hidden flex flex-col max-h-[90vh] relative animate-in zoom-in-95 duration-200", children: [_jsx(AnimatePresence, { children: isGenerating && (_jsxs(motion.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, className: "absolute inset-0 z-[210] bg-white/90 backdrop-blur-md flex flex-col items-center justify-center p-8 text-center", children: [_jsxs("div", { className: "relative", children: [_jsx(motion.div, { animate: {
|
|
29
|
+
scale: [1, 1.2, 1],
|
|
30
|
+
rotate: [0, 180, 360],
|
|
31
|
+
opacity: [0.3, 0.6, 0.3]
|
|
32
|
+
}, transition: { duration: 4, repeat: Infinity, ease: "linear" }, className: "absolute inset-[-40px] bg-gradient-to-tr from-blue-400 via-purple-400 to-pink-400 blur-3xl opacity-30 rounded-full" }), [...Array(6)].map((_, i) => (_jsx(motion.div, { animate: {
|
|
33
|
+
y: [0, -40, 0],
|
|
34
|
+
x: [0, (i % 2 === 0 ? 30 : -30), 0],
|
|
35
|
+
scale: [0, 1, 0],
|
|
36
|
+
opacity: [0, 1, 0]
|
|
37
|
+
}, transition: {
|
|
38
|
+
duration: 2 + Math.random(),
|
|
39
|
+
repeat: Infinity,
|
|
40
|
+
delay: i * 0.4,
|
|
41
|
+
ease: "easeInOut"
|
|
42
|
+
}, className: "absolute text-purple-400", style: {
|
|
43
|
+
top: '50%',
|
|
44
|
+
left: '50%',
|
|
45
|
+
marginTop: -8,
|
|
46
|
+
marginLeft: -8
|
|
47
|
+
}, children: _jsx(Sparkles, { size: 16, fill: "currentColor" }) }, i))), _jsx(motion.div, { animate: {
|
|
48
|
+
scale: [1, 1.05, 1],
|
|
49
|
+
y: [0, -10, 0]
|
|
50
|
+
}, transition: { duration: 2, repeat: Infinity, ease: "easeInOut" }, className: "relative w-24 h-24 bg-slate-900 rounded-[2.5rem] flex items-center justify-center shadow-2xl shadow-purple-200", children: _jsx(Sparkles, { className: "w-10 h-10 text-white animate-pulse", strokeWidth: 2.5 }) })] }), _jsxs(motion.div, { initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { delay: 0.2 }, className: "mt-12 space-y-4", children: [_jsx("h3", { className: "text-2xl font-black text-slate-900 tracking-tight", children: "AI is crafting your store..." }), _jsx("p", { className: "text-slate-500 font-bold text-xs uppercase tracking-[0.2em]", children: "Writing copy \u2022 Sourcing assets \u2022 Designing sections" }), _jsx("div", { className: "w-64 h-1.5 bg-slate-100 rounded-full overflow-hidden mx-auto mt-6", children: _jsx(motion.div, { animate: {
|
|
51
|
+
x: [-256, 256]
|
|
52
|
+
}, transition: {
|
|
53
|
+
duration: 2,
|
|
54
|
+
repeat: Infinity,
|
|
55
|
+
ease: "easeInOut"
|
|
56
|
+
}, className: "w-full h-full bg-gradient-to-r from-blue-500 via-purple-500 to-pink-500" }) }), _jsx("p", { className: "text-[10px] text-slate-400 font-bold uppercase tracking-widest animate-pulse mt-4", children: "This may take a moment while AI crafts your store" })] })] })) }), _jsxs("div", { className: "px-8 py-6 border-b border-slate-100 flex items-center justify-between bg-slate-50/50", children: [_jsxs("div", { className: "flex items-center gap-4", children: [_jsx("div", { className: "w-12 h-12 bg-slate-900 rounded-2xl flex items-center justify-center shadow-lg shadow-slate-200", children: _jsx(Sparkles, { className: "w-6 h-6 text-white", strokeWidth: 2.5 }) }), _jsxs("div", { children: [_jsx("h2", { className: "text-xl font-black text-slate-900 tracking-tight", children: "AI Magic Generator" }), _jsx("p", { className: "text-[11px] font-bold text-slate-400 uppercase tracking-widest mt-0.5", children: "Powered by Gemini AI" })] })] }), _jsx("button", { onClick: onClose, className: "w-10 h-10 flex items-center justify-center rounded-xl hover:bg-slate-100 text-slate-400 hover:text-slate-600 transition-all", children: _jsx(X, { size: 20, strokeWidth: 2.5 }) })] }), _jsxs("div", { className: "flex-1 overflow-y-auto p-8", children: [_jsx("div", { className: "bg-blue-50/50 border border-blue-100 rounded-2xl p-5 mb-8", children: _jsxs("div", { className: "flex gap-4", children: [_jsx("div", { className: "w-10 h-10 bg-blue-100 rounded-xl flex-shrink-0 flex items-center justify-center", children: _jsx(Sparkles, { className: "w-5 h-5 text-blue-600" }) }), _jsx("p", { className: "text-[13px] text-blue-800 font-medium leading-relaxed", children: hasDefaultContext
|
|
57
|
+
? "We've detected your store details. The AI will use these and your assets to populate your layout. You can add more context below."
|
|
58
|
+
: "Our AI will use your store name, description, and assets to automatically populate your entire layout with high-quality content." })] }) }), _jsxs("form", { id: "ai-generate-form", onSubmit: handleSubmit, className: "space-y-6", children: [!hasDefaultContext && (_jsxs(_Fragment, { children: [_jsxs("div", { className: "space-y-2", children: [_jsxs("label", { className: "text-[11px] font-black text-slate-900 uppercase tracking-widest flex items-center gap-2", children: [_jsx(Store, { size: 14, className: "text-slate-400" }), "Store Name"] }), _jsx("input", { type: "text", value: context.storeName, onChange: (e) => setContext({ ...context, storeName: e.target.value }), placeholder: "e.g. Fashion Hub", className: "w-full h-12 px-4 bg-slate-50 border border-slate-200 rounded-xl text-sm font-bold text-slate-700 focus:outline-none focus:ring-4 focus:ring-slate-900/5 focus:border-slate-900/20 transition-all", required: true })] }), _jsxs("div", { className: "space-y-2", children: [_jsxs("label", { className: "text-[11px] font-black text-slate-900 uppercase tracking-widest flex items-center gap-2", children: [_jsx(FileText, { size: 14, className: "text-slate-400" }), "Store Description"] }), _jsx("textarea", { value: context.storeDescription, onChange: (e) => setContext({ ...context, storeDescription: e.target.value }), placeholder: "Briefly describe what your store sells...", rows: 3, className: "w-full p-4 bg-slate-50 border border-slate-200 rounded-xl text-sm font-bold text-slate-700 focus:outline-none focus:ring-4 focus:ring-slate-900/5 focus:border-slate-900/20 transition-all resize-none", required: true })] })] })), _jsxs("div", { className: "space-y-2", children: [_jsxs("label", { className: "text-[11px] font-black text-slate-900 uppercase tracking-widest flex items-center gap-2", children: [_jsx(PlusCircle, { size: 14, className: "text-slate-400" }), "Additional Context (Optional)"] }), _jsx("textarea", { value: context.additionalContext, onChange: (e) => setContext({ ...context, additionalContext: e.target.value }), placeholder: "e.g. Target audience, preferred color scheme, specific sections to highlight...", rows: 4, className: "w-full p-4 bg-slate-50 border border-slate-200 rounded-xl text-sm font-bold text-slate-700 focus:outline-none focus:ring-4 focus:ring-slate-900/5 focus:border-slate-900/20 transition-all resize-none" })] }), context.assets && context.assets.length > 0 && (_jsxs("div", { className: "flex items-center gap-3 p-4 bg-green-50 rounded-2xl border border-green-100", children: [_jsx(ImageIcon, { className: "w-5 h-5 text-green-600" }), _jsxs("div", { className: "flex-1", children: [_jsxs("p", { className: "text-[11px] font-black text-slate-900 uppercase tracking-tight", children: [context.assets.length, " Assets Detected"] }), _jsx("p", { className: "text-[10px] text-slate-500 font-bold uppercase tracking-widest", children: "AI will prioritize using your uploaded images" })] })] })), _jsxs("div", { className: "flex items-center gap-3 p-4 bg-slate-50 rounded-2xl border border-slate-100", children: [_jsx(Sparkles, { className: "w-5 h-5 text-slate-400" }), _jsxs("div", { className: "flex-1", children: [_jsx("p", { className: "text-[11px] font-black text-slate-900 uppercase tracking-tight", children: "Auto-Sourcing Enabled" }), _jsx("p", { className: "text-[10px] text-slate-400 font-bold uppercase tracking-widest", children: "AI will source high-quality images for missing assets" })] })] })] })] }), _jsxs("div", { className: "px-8 py-6 border-t border-slate-100 bg-slate-50/50 flex gap-4", children: [_jsx("button", { onClick: onClose, className: "flex-1 h-12 rounded-2xl border border-slate-200 bg-white font-black text-[12px] uppercase tracking-widest text-slate-600 hover:bg-slate-50 transition-all active:scale-[0.98]", disabled: isGenerating, children: "Cancel" }), _jsx("button", { type: "submit", form: "ai-generate-form", className: "flex-[2] h-12 rounded-2xl bg-slate-900 font-black text-[12px] uppercase tracking-widest text-white hover:bg-black transition-all shadow-xl shadow-slate-200 flex items-center justify-center gap-3 active:scale-[0.98] disabled:opacity-70", disabled: isGenerating, children: isGenerating ? (_jsxs(_Fragment, { children: [_jsx(Loader2, { className: "w-4 h-4 animate-spin" }), "Generating Magic..."] })) : (_jsxs(_Fragment, { children: [_jsx(Sparkles, { className: "w-4 h-4" }), "Generate Layout"] })) })] })] }) }));
|
|
59
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { OutlineBlockTreeNode } from '../blocks/nav-outline-utils';
|
|
2
|
+
export interface BlockOutlineTreeProps {
|
|
3
|
+
nodes: OutlineBlockTreeNode[];
|
|
4
|
+
depth?: number;
|
|
5
|
+
/** Highlights rows when granular path edits this subtree */
|
|
6
|
+
granularityPath?: string[] | null;
|
|
7
|
+
onActivateNode?: (node: OutlineBlockTreeNode) => void;
|
|
8
|
+
onToggleNodeVisibility?: (node: OutlineBlockTreeNode) => void;
|
|
9
|
+
/** Default expand nesting up to this depth when no user toggles yet */
|
|
10
|
+
defaultExpandDepth?: number;
|
|
11
|
+
variant?: 'navigator' | 'inspector';
|
|
12
|
+
}
|
|
13
|
+
export declare function BlockOutlineTree({ nodes, depth, granularityPath, onActivateNode, onToggleNodeVisibility, defaultExpandDepth, variant, }: BlockOutlineTreeProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=BlockOutlineTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockOutlineTree.d.ts","sourceRoot":"","sources":["../../../src/editor/shared/BlockOutlineTree.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAoBxE,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,eAAe,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAClC,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACtD,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC9D,uEAAuE;IACvE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,WAAW,GAAG,WAAW,CAAC;CACrC;AA0HD,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,KAAS,EACT,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,kBAAsB,EACtB,OAAqB,GACtB,EAAE,qBAAqB,2CAoBvB"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import React from 'react';
|
|
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/index.js';
|
|
6
|
+
import { isGranularPathUnderBlock } from '../blocks/nav-outline-utils.js';
|
|
7
|
+
const BLOCK_ICON_MAP = {
|
|
8
|
+
'payaza/heading': Type,
|
|
9
|
+
'payaza/paragraph': AlignLeft,
|
|
10
|
+
'payaza/image': ImageIcon,
|
|
11
|
+
'payaza/button': MousePointer2,
|
|
12
|
+
'payaza/spacer': Minus,
|
|
13
|
+
'payaza/group': Layers,
|
|
14
|
+
'payaza/feature-item': Star,
|
|
15
|
+
'payaza/hotspot': MapPin,
|
|
16
|
+
'payaza/badge': Tag,
|
|
17
|
+
};
|
|
18
|
+
function BlockIcon({ typeId, className }) {
|
|
19
|
+
const Icon = BLOCK_ICON_MAP[typeId] ?? Square;
|
|
20
|
+
return _jsx(Icon, { className: className, strokeWidth: 2, "aria-hidden": true });
|
|
21
|
+
}
|
|
22
|
+
function TreeLevel({ nodes, depth, granularityPath, onActivateNode, onToggleNodeVisibility, defaultExpandDepth, variant, expandedById, setExpandedById, }) {
|
|
23
|
+
const nav = variant === 'navigator';
|
|
24
|
+
const textMain = nav ? 'text-[12px]' : 'text-[13px]';
|
|
25
|
+
const isOpen = (id) => expandedById[id] !== undefined ? expandedById[id] : depth < (defaultExpandDepth ?? 3);
|
|
26
|
+
return (_jsx("ul", { role: "tree", className: cn('space-y-0', depth > 0 && (nav ? 'ml-[10px] border-l border-[#ececec] pl-2' : 'ml-[12px] border-l border-[#e8e9ec] pl-2.5')), children: nodes.map((node) => {
|
|
27
|
+
const hasKids = node.children.length > 0;
|
|
28
|
+
const open = hasKids && isOpen(node.id);
|
|
29
|
+
const active = granularityPath ? isGranularPathUnderBlock(granularityPath, node.blockPathInSection) : false;
|
|
30
|
+
return (_jsxs("li", { role: "treeitem", "aria-expanded": hasKids ? open : undefined, className: "group select-none py-px", children: [_jsxs("div", { className: "flex items-stretch gap-0.5", children: [hasKids ? (_jsx("button", { type: "button", className: cn('flex h-[26px] w-7 shrink-0 items-center justify-center rounded-[2px] text-[#787c82] hover:bg-[#f6f7f7] hover:text-[#1b0029]', nav && 'h-6 w-6'), "aria-label": open ? `Collapse ${node.label}` : `Expand ${node.label}`, onClick: (e) => {
|
|
31
|
+
e.stopPropagation();
|
|
32
|
+
setExpandedById((prev) => ({ ...prev, [node.id]: !isOpen(node.id) }));
|
|
33
|
+
}, children: open ? (_jsx(ChevronDown, { className: "h-4 w-4", strokeWidth: 2, "aria-hidden": true })) : (_jsx(ChevronRight, { className: "h-4 w-4", strokeWidth: 2, "aria-hidden": true })) })) : (_jsx("span", { className: cn('inline-flex w-7 shrink-0 items-center justify-center opacity-45', nav && 'w-6'), children: _jsx(BlockIcon, { typeId: node.typeId, className: "h-3.5 w-3.5" }) })), _jsxs("button", { type: "button", disabled: !onActivateNode, onClick: () => onActivateNode?.(node), className: cn('-ml-px min-w-0 flex-1 rounded-[2px] px-2 py-1 text-left leading-snug transition-colors', textMain, active
|
|
34
|
+
? 'bg-[#ebe4f5] font-semibold text-[#440066]'
|
|
35
|
+
: 'text-[#2c3338] hover:bg-[#f6f7f7]', !onActivateNode && 'cursor-default hover:bg-transparent', variant === 'inspector' && 'py-1.5', !node.visible && 'opacity-50'), children: [_jsx("span", { className: "truncate", children: node.label }), _jsx("span", { className: cn('mt-px block truncate text-[10px] font-normal capitalize text-[#787c82]'), children: node.typeId.replace(/^payaza\//, '').replace(/-/g, ' ') })] }), onToggleNodeVisibility && (_jsx("div", { className: "flex shrink-0 flex-col justify-center pr-0.5 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100", children: _jsx("button", { type: "button", "aria-label": node.visible ? `Hide ${node.label}` : `Show ${node.label}`, onClick: (e) => {
|
|
36
|
+
e.preventDefault();
|
|
37
|
+
e.stopPropagation();
|
|
38
|
+
onToggleNodeVisibility(node);
|
|
39
|
+
}, className: "rounded-sm p-0.5 text-[#787c82] hover:bg-[#f0f0f1] hover:text-[#1b0029]", title: node.visible ? 'Hide block' : 'Show block', children: node.visible ? (_jsx(Eye, { className: "h-3.5 w-3.5", strokeWidth: 2 })) : (_jsx(EyeOff, { className: "h-3.5 w-3.5", strokeWidth: 2 })) }) }))] }), hasKids && open ? (_jsx(TreeLevel, { nodes: node.children, depth: depth + 1, granularityPath: granularityPath, onActivateNode: onActivateNode, onToggleNodeVisibility: onToggleNodeVisibility, defaultExpandDepth: defaultExpandDepth, variant: variant, expandedById: expandedById, setExpandedById: setExpandedById })) : null] }, node.id));
|
|
40
|
+
}) }));
|
|
41
|
+
}
|
|
42
|
+
export function BlockOutlineTree({ nodes, depth = 0, granularityPath, onActivateNode, onToggleNodeVisibility, defaultExpandDepth = 3, variant = 'inspector', }) {
|
|
43
|
+
const [expandedById, setExpandedById] = React.useState({});
|
|
44
|
+
if (!nodes.length)
|
|
45
|
+
return null;
|
|
46
|
+
return (_jsx("div", { className: "overflow-x-auto", children: _jsx(TreeLevel, { nodes: nodes, depth: depth, granularityPath: granularityPath, onActivateNode: onActivateNode, onToggleNodeVisibility: onToggleNodeVisibility, defaultExpandDepth: defaultExpandDepth, variant: variant, expandedById: expandedById, setExpandedById: setExpandedById }) }));
|
|
47
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PreviewZoom } from './preview-viewport';
|
|
3
|
+
interface EditorHeaderProps {
|
|
4
|
+
layoutName: string;
|
|
5
|
+
storeName?: string;
|
|
6
|
+
storeLogo?: string;
|
|
7
|
+
activePage: string;
|
|
8
|
+
isSaving?: boolean;
|
|
9
|
+
isPublishing?: boolean;
|
|
10
|
+
onSave: () => void;
|
|
11
|
+
onPublish?: () => void;
|
|
12
|
+
onBack?: () => void;
|
|
13
|
+
onBackToSettings?: () => void;
|
|
14
|
+
onOpenAssets?: () => void;
|
|
15
|
+
onBackToTheme?: () => void;
|
|
16
|
+
onUndo?: () => void;
|
|
17
|
+
onRedo?: () => void;
|
|
18
|
+
canUndo?: boolean;
|
|
19
|
+
canRedo?: boolean;
|
|
20
|
+
onGenerateAI?: () => void;
|
|
21
|
+
isGeneratingAI?: boolean;
|
|
22
|
+
pages: {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
}[];
|
|
26
|
+
onPageSwitch: (pageId: string) => void;
|
|
27
|
+
viewMode?: 'desktop' | 'tablet' | 'mobile';
|
|
28
|
+
onViewModeChange?: (mode: 'desktop' | 'tablet' | 'mobile') => void;
|
|
29
|
+
previewZoom?: PreviewZoom;
|
|
30
|
+
onPreviewZoomChange?: (zoom: PreviewZoom) => void;
|
|
31
|
+
editorType?: 'payaza-form';
|
|
32
|
+
publishButtonText?: string;
|
|
33
|
+
centerTemplateLabel?: string;
|
|
34
|
+
showPageSwitcher?: boolean;
|
|
35
|
+
showPageContextCard?: boolean;
|
|
36
|
+
currentPageLabel?: string;
|
|
37
|
+
outlinePanelOpen?: boolean;
|
|
38
|
+
onToggleOutlinePanel?: () => void;
|
|
39
|
+
/** @deprecated Use outlinePanelOpen / onToggleOutlinePanel */
|
|
40
|
+
listViewOpen?: boolean;
|
|
41
|
+
/** @deprecated Use onToggleOutlinePanel */
|
|
42
|
+
onToggleListView?: () => void;
|
|
43
|
+
interactionMode?: 'edit' | 'preview';
|
|
44
|
+
onInteractionModeChange?: (mode: 'edit' | 'preview') => void;
|
|
45
|
+
/** When true, hide desktop-only toolbar clusters (real phones + narrow viewports). */
|
|
46
|
+
isMobileChrome?: boolean;
|
|
47
|
+
/** Ref for measuring header height (mobile overlay positioning). */
|
|
48
|
+
headerRef?: React.RefObject<HTMLElement | null>;
|
|
49
|
+
/** Short status note shown below toolbar on mobile. */
|
|
50
|
+
headerStatusNote?: string;
|
|
51
|
+
/** Blocking/informational banner below toolbar on mobile. */
|
|
52
|
+
mobileStatusBanner?: {
|
|
53
|
+
tone: 'info' | 'warning';
|
|
54
|
+
message: string;
|
|
55
|
+
};
|
|
56
|
+
/** Host draft save lifecycle for subtle status hints. */
|
|
57
|
+
draftSaveStatus?: 'idle' | 'dirty' | 'saving' | 'saved';
|
|
58
|
+
}
|
|
59
|
+
export declare const EditorHeader: React.FC<EditorHeaderProps>;
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=EditorHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorHeader.d.ts","sourceRoot":"","sources":["../../../src/editor/shared/EditorHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoE,MAAM,OAAO,CAAC;AA6BzF,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAsI5E,UAAU,iBAAiB;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACtC,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC3C,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,KAAK,IAAI,CAAC;IACnE,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAClD,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,8DAA8D;IAC9D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,2CAA2C;IAC3C,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,uBAAuB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC7D,sFAAsF;IACtF,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oEAAoE;IACpE,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAChD,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,6DAA6D;IAC7D,kBAAkB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACnE,yDAAyD;IACzD,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACzD;AA8ID,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA4fpD,CAAC"}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
3
|
+
import { createPortal } from 'react-dom';
|
|
4
|
+
import { motion, AnimatePresence } from 'framer-motion';
|
|
5
|
+
import { cn } from '../../lib/utils/index.js';
|
|
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.js';
|
|
8
|
+
const Tooltip = ({ text, children }) => {
|
|
9
|
+
const [isVisible, setIsVisible] = useState(false);
|
|
10
|
+
const [coords, setCoords] = useState({ top: 0, left: 0 });
|
|
11
|
+
const showTimeoutRef = useRef(null);
|
|
12
|
+
const hideTimeoutRef = useRef(null);
|
|
13
|
+
const triggerRef = useRef(null);
|
|
14
|
+
const visibleRef = useRef(false);
|
|
15
|
+
const updatePosition = useCallback(() => {
|
|
16
|
+
const el = triggerRef.current;
|
|
17
|
+
if (!el)
|
|
18
|
+
return;
|
|
19
|
+
const r = el.getBoundingClientRect();
|
|
20
|
+
setCoords({ top: r.bottom + 8, left: r.left + r.width / 2 });
|
|
21
|
+
}, []);
|
|
22
|
+
useLayoutEffect(() => {
|
|
23
|
+
if (!isVisible)
|
|
24
|
+
return;
|
|
25
|
+
updatePosition();
|
|
26
|
+
const onReposition = () => updatePosition();
|
|
27
|
+
window.addEventListener('scroll', onReposition, true);
|
|
28
|
+
window.addEventListener('resize', onReposition);
|
|
29
|
+
return () => {
|
|
30
|
+
window.removeEventListener('scroll', onReposition, true);
|
|
31
|
+
window.removeEventListener('resize', onReposition);
|
|
32
|
+
};
|
|
33
|
+
}, [isVisible, text, updatePosition]);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
return () => {
|
|
36
|
+
if (showTimeoutRef.current)
|
|
37
|
+
clearTimeout(showTimeoutRef.current);
|
|
38
|
+
if (hideTimeoutRef.current)
|
|
39
|
+
clearTimeout(hideTimeoutRef.current);
|
|
40
|
+
};
|
|
41
|
+
}, []);
|
|
42
|
+
const cancelHide = () => {
|
|
43
|
+
if (hideTimeoutRef.current) {
|
|
44
|
+
clearTimeout(hideTimeoutRef.current);
|
|
45
|
+
hideTimeoutRef.current = null;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const scheduleHide = () => {
|
|
49
|
+
cancelHide();
|
|
50
|
+
hideTimeoutRef.current = setTimeout(() => {
|
|
51
|
+
visibleRef.current = false;
|
|
52
|
+
setIsVisible(false);
|
|
53
|
+
}, 140);
|
|
54
|
+
};
|
|
55
|
+
const onTriggerEnter = () => {
|
|
56
|
+
cancelHide();
|
|
57
|
+
if (showTimeoutRef.current)
|
|
58
|
+
clearTimeout(showTimeoutRef.current);
|
|
59
|
+
if (visibleRef.current) {
|
|
60
|
+
updatePosition();
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
showTimeoutRef.current = setTimeout(() => {
|
|
64
|
+
updatePosition();
|
|
65
|
+
visibleRef.current = true;
|
|
66
|
+
setIsVisible(true);
|
|
67
|
+
}, 400);
|
|
68
|
+
};
|
|
69
|
+
const onTriggerLeave = () => {
|
|
70
|
+
if (showTimeoutRef.current) {
|
|
71
|
+
clearTimeout(showTimeoutRef.current);
|
|
72
|
+
showTimeoutRef.current = null;
|
|
73
|
+
}
|
|
74
|
+
scheduleHide();
|
|
75
|
+
};
|
|
76
|
+
const tooltipBubble = typeof document !== 'undefined' ? (createPortal(_jsx(AnimatePresence, { children: isVisible && (_jsx(motion.div, { initial: { opacity: 0, y: 6, scale: 0.97 }, animate: { opacity: 1, y: 0, scale: 1 }, exit: { opacity: 0, y: 6, scale: 0.97 }, transition: { duration: 0.15, ease: [0.23, 1, 0.32, 1] }, style: {
|
|
77
|
+
position: 'fixed',
|
|
78
|
+
top: coords.top,
|
|
79
|
+
left: coords.left,
|
|
80
|
+
transform: 'translateX(-50%)',
|
|
81
|
+
zIndex: 200000,
|
|
82
|
+
}, className: "pointer-events-auto", onMouseEnter: cancelHide, onMouseLeave: scheduleHide, children: _jsx("div", { "data-payaza-header-tooltip": true, className: "max-w-[min(92vw,22rem)] rounded-lg border border-white/12 border-l-[3px] border-l-shopaza-green bg-shopaza-ink px-3 py-2 text-left text-[12px] font-medium leading-relaxed tracking-tight text-white shadow-[0_12px_40px_rgba(27,0,41,0.38)] ring-1 ring-black/20", children: text }) }, text)) }), document.body)) : null;
|
|
83
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { ref: triggerRef, className: "relative flex items-center justify-center", onMouseEnter: onTriggerEnter, onMouseLeave: onTriggerLeave, onFocusCapture: onTriggerEnter, onBlurCapture: onTriggerLeave, children: children }), tooltipBubble] }));
|
|
84
|
+
};
|
|
85
|
+
/* ─── Helpers ────────────────────────────────────────────────────────────── */
|
|
86
|
+
const getPageIcon = (pageId) => {
|
|
87
|
+
switch (pageId) {
|
|
88
|
+
case 'home': return _jsx(Home, { className: "h-4 w-4" });
|
|
89
|
+
case 'products': return _jsx(ShoppingBag, { className: "h-4 w-4" });
|
|
90
|
+
case 'cart': return _jsx(ShoppingCart, { className: "h-4 w-4" });
|
|
91
|
+
default: return _jsx(FileText, { className: "h-4 w-4" });
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
/** Visually consistent icon-only toolbar button. */
|
|
95
|
+
function IconBtn(props) {
|
|
96
|
+
const { className, active, disabled, compact, children, ...rest } = props;
|
|
97
|
+
return (_jsx("button", { type: "button", disabled: disabled, className: cn('flex shrink-0 items-center justify-center rounded-lg border border-transparent transition-colors', compact ? 'h-8 w-8' : 'h-9 w-9', !disabled && !active && 'text-[#5b6470] hover:border-[#e6e9ee] hover:bg-[#f8fafc] hover:text-[#1f2937]', active && !disabled && 'border-[#ece7f9] bg-[#f7f3ff] text-[#440066]', disabled && 'cursor-not-allowed text-[#c3c4c7]', className), ...rest, children: children }));
|
|
98
|
+
}
|
|
99
|
+
/** Pill/chip used to visually group a cluster of controls. */
|
|
100
|
+
function Cluster({ children, className }) {
|
|
101
|
+
return (_jsx("div", { className: cn('flex items-center rounded-xl border border-[#e6e9ee] bg-white p-1 shadow-[0_1px_2px_rgba(15,23,42,0.05)]', className), children: children }));
|
|
102
|
+
}
|
|
103
|
+
/** Thin vertical divider for inside a cluster. */
|
|
104
|
+
function Divider() {
|
|
105
|
+
return _jsx("span", { className: "mx-1 inline-block h-6 w-px shrink-0 bg-[#eef1f5]", "aria-hidden": true });
|
|
106
|
+
}
|
|
107
|
+
function PreviewZoomDropdown({ previewZoom, onPreviewZoomChange }) {
|
|
108
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
109
|
+
const activeLabel = PREVIEW_ZOOM_OPTIONS.find((option) => option.value === previewZoom)?.label ?? 'Fit';
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
const onClickOutside = (e) => {
|
|
112
|
+
if (!e.target.closest('.zoom-dropdown-container')) {
|
|
113
|
+
setIsOpen(false);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
if (isOpen)
|
|
117
|
+
document.addEventListener('mousedown', onClickOutside);
|
|
118
|
+
return () => document.removeEventListener('mousedown', onClickOutside);
|
|
119
|
+
}, [isOpen]);
|
|
120
|
+
return (_jsxs("div", { className: "zoom-dropdown-container relative", children: [_jsx(Tooltip, { text: "Preview zoom level", children: _jsxs("button", { type: "button", onClick: () => setIsOpen((v) => !v), "aria-haspopup": "listbox", "aria-expanded": isOpen, "aria-label": `Preview zoom: ${activeLabel}`, className: "flex h-8 min-w-[4.75rem] items-center gap-1.5 rounded-lg border border-[#e6e9ee] bg-white px-2.5 text-[12px] font-semibold text-[#374151] shadow-[0_1px_2px_rgba(15,23,42,0.05)] transition-colors hover:border-[#d4dae3] hover:bg-[#fcfdff]", children: [_jsx(ZoomIn, { className: "h-3.5 w-3.5 shrink-0 text-[#440066]", strokeWidth: 2 }), _jsx("span", { className: "tabular-nums", children: activeLabel }), _jsx(ChevronDown, { className: cn('ml-auto h-3.5 w-3.5 shrink-0 text-[#9aa3b2] transition-transform', isOpen && 'rotate-180'), strokeWidth: 2 })] }) }), _jsx(AnimatePresence, { children: isOpen && (_jsxs(motion.div, { initial: { opacity: 0, y: 6 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: 6 }, transition: { duration: 0.12 }, role: "listbox", "aria-label": "Preview zoom options", className: "absolute right-0 top-full z-[200] mt-1.5 w-[8.5rem] rounded-xl border border-[#e6e9ee] bg-white py-1 shadow-[0_12px_24px_rgba(15,23,42,0.08)]", children: [_jsx("div", { className: "border-b border-[#f3f4f6] px-3 py-2", children: _jsx("span", { className: "text-[11px] font-semibold uppercase tracking-wide text-[#8a94a5]", children: "Zoom" }) }), _jsx("div", { className: "py-1", children: PREVIEW_ZOOM_OPTIONS.map((option) => (_jsxs("button", { type: "button", role: "option", "aria-selected": previewZoom === option.value, onClick: () => {
|
|
121
|
+
onPreviewZoomChange(option.value);
|
|
122
|
+
setIsOpen(false);
|
|
123
|
+
}, className: cn('flex w-full items-center gap-2 px-3 py-2 text-left text-[13px] transition-colors hover:bg-[#f8fafc]', previewZoom === option.value && 'bg-[#f5f0ff] font-medium text-[#440066] hover:bg-[#ede9ff]'), children: [_jsx("span", { className: "flex-1 tabular-nums", children: option.label }), previewZoom === option.value && (_jsx(Check, { className: "h-4 w-4 shrink-0 text-[#440066]", strokeWidth: 2.5 }))] }, String(option.value)))) })] })) })] }));
|
|
124
|
+
}
|
|
125
|
+
/* ─── Component ──────────────────────────────────────────────────────────── */
|
|
126
|
+
export const EditorHeader = ({ layoutName, storeName, storeLogo, activePage, isSaving, isPublishing, onSave, onPublish, onBack, onBackToSettings, onOpenAssets, onBackToTheme, onUndo, onRedo, canUndo, canRedo, onGenerateAI, isGeneratingAI, pages, onPageSwitch, viewMode = 'desktop', onViewModeChange, previewZoom = 'fit', onPreviewZoomChange, publishButtonText = 'Publish', centerTemplateLabel, showPageSwitcher = true, showPageContextCard = true, currentPageLabel, outlinePanelOpen, onToggleOutlinePanel, listViewOpen = true, onToggleListView, interactionMode = 'edit', onInteractionModeChange, isMobileChrome = false, headerRef, headerStatusNote, mobileStatusBanner, draftSaveStatus = 'idle', }) => {
|
|
127
|
+
const navigatorOpen = outlinePanelOpen !== undefined ? outlinePanelOpen : listViewOpen;
|
|
128
|
+
const toggleNavigator = onToggleOutlinePanel ?? onToggleListView;
|
|
129
|
+
const [isPageDropdownOpen, setIsPageDropdownOpen] = useState(false);
|
|
130
|
+
const [logoError, setLogoError] = useState(false);
|
|
131
|
+
useEffect(() => {
|
|
132
|
+
const onClickOutside = (e) => {
|
|
133
|
+
if (!e.target.closest('.page-switcher-container')) {
|
|
134
|
+
setIsPageDropdownOpen(false);
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
if (isPageDropdownOpen)
|
|
138
|
+
document.addEventListener('mousedown', onClickOutside);
|
|
139
|
+
return () => document.removeEventListener('mousedown', onClickOutside);
|
|
140
|
+
}, [isPageDropdownOpen]);
|
|
141
|
+
useEffect(() => { setLogoError(false); }, [storeLogo]);
|
|
142
|
+
// isPublishing should NOT disable the button visually — it just shows the spinner while keeping
|
|
143
|
+
// the active purple styling so the loading state is visible against the colored background.
|
|
144
|
+
const publishDisabled = !onPublish;
|
|
145
|
+
const hasUtilityTools = onBackToSettings || onOpenAssets || onBackToTheme || onGenerateAI;
|
|
146
|
+
const draftStatusLabel = draftSaveStatus === 'saving'
|
|
147
|
+
? 'Saving draft…'
|
|
148
|
+
: draftSaveStatus === 'saved'
|
|
149
|
+
? 'Draft saved'
|
|
150
|
+
: draftSaveStatus === 'dirty'
|
|
151
|
+
? 'Unsaved changes'
|
|
152
|
+
: null;
|
|
153
|
+
const showMobileStatusRow = isMobileChrome && (headerStatusNote || mobileStatusBanner);
|
|
154
|
+
return (_jsxs("header", { ref: headerRef, className: cn('sticky top-0 z-[100] flex shrink-0 flex-col border-b border-[#e6e9ee] bg-white/95 font-sans antialiased text-[#1f2937] backdrop-blur supports-[backdrop-filter]:bg-white/88', isMobileChrome ? 'min-h-0' : 'min-h-[52px] md:min-h-[72px]'), style: { paddingTop: 'env(safe-area-inset-top, 0px)' }, children: [_jsxs("div", { className: cn('flex w-full flex-1 items-center overflow-x-auto', isMobileChrome ? 'min-h-[48px] gap-2 px-3 py-1.5' : 'min-h-[52px] gap-3 px-3 py-2 md:min-h-[72px] md:px-5'), children: [_jsxs("div", { className: cn('flex min-w-0 shrink-0 items-center', isMobileChrome ? 'gap-1' : 'gap-1.5'), children: [onBack && (_jsx(Tooltip, { text: "Close editor and return to dashboard", children: _jsxs("button", { type: "button", onClick: onBack, "aria-label": "Close editor", className: cn('flex shrink-0 items-center gap-1.5 rounded-lg border border-transparent text-[12px] font-medium text-[#5b6470] transition-colors hover:border-[#e6e9ee] hover:bg-[#f4f5f7] hover:text-[#1f2937] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#440066]/35 focus-visible:ring-offset-2', isMobileChrome ? 'h-9 px-2' : 'h-9 px-2 min-[900px]:px-2.5'), children: [_jsx(ArrowLeft, { className: "h-4 w-4 shrink-0", strokeWidth: 2.25, "aria-hidden": true }), _jsx("span", { className: "hidden min-[900px]:inline", children: "Close" })] }) })), toggleNavigator && (_jsx(Tooltip, { text: navigatorOpen ? 'Hide outline panel' : 'Show outline panel', children: _jsx(IconBtn, { active: navigatorOpen, onClick: toggleNavigator, "aria-label": navigatorOpen ? 'Hide outline panel' : 'Show outline panel', children: _jsx(PanelLeft, { className: "h-4 w-4", strokeWidth: 2 }) }) })), (toggleNavigator || onUndo || onRedo) && (_jsx("span", { className: cn('inline-block w-px shrink-0 bg-[#eef1f5]', isMobileChrome ? 'mx-0.5 h-5' : 'mx-0.5 h-5'), "aria-hidden": true })), _jsx(Tooltip, { text: "Undo last change (Ctrl+Z)", children: _jsx(IconBtn, { onClick: onUndo, disabled: !canUndo, "aria-label": "Undo", children: _jsx(Undo2, { className: "h-4 w-4", strokeWidth: 2 }) }) }), _jsx(Tooltip, { text: "Redo last change (Ctrl+Y)", children: _jsx(IconBtn, { onClick: onRedo, disabled: !canRedo, "aria-label": "Redo", children: _jsx(Redo2, { className: "h-4 w-4", strokeWidth: 2 }) }) }), _jsxs("div", { className: "hidden min-w-0 items-center gap-2.5 min-[900px]:flex", children: [_jsx("span", { className: "h-7 w-px shrink-0 bg-[#e8ecf2]", "aria-hidden": true }), _jsx("div", { className: cn('flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-lg border border-[#e6e9ee] bg-white shadow-sm', storeLogo && !logoError && storeLogo.trim() !== '' ? '' : 'bg-[#f6f7f7]'), children: storeLogo && !logoError && storeLogo.trim() !== '' ? (_jsx("img", { src: storeLogo, alt: "", className: "h-full w-full object-cover", onError: () => setLogoError(true) })) : (_jsx(Layout, { className: "h-4 w-4 text-[#9ca3af]", strokeWidth: 2 })) }), _jsxs("div", { className: "min-w-0 max-w-[11rem]", children: [_jsx("p", { className: "truncate text-[13px] font-semibold leading-tight text-[#1b0029]", children: storeName || layoutName }), _jsx("p", { className: "truncate text-[11px] leading-tight text-[#7b8492]", children: layoutName })] })] })] }), _jsx("div", { className: "hidden min-w-0 flex-1 items-center justify-center px-1 md:flex md:px-4", children: showPageSwitcher ? (_jsxs("div", { className: "page-switcher-container relative", children: [_jsxs("button", { type: "button", onClick: () => setIsPageDropdownOpen((v) => !v), className: "flex max-w-[min(92vw,360px)] items-center gap-2.5 rounded-xl border border-[#e6e9ee] bg-white px-3.5 py-2.5 text-left shadow-[0_1px_2px_rgba(15,23,42,0.05)] transition-colors hover:border-[#d4dae3] hover:bg-[#fcfdff]", children: [_jsx("span", { className: "shrink-0 text-[#440066]", children: getPageIcon(activePage) }), _jsx("span", { className: "truncate text-[13px] font-semibold text-[#1f2937]", children: pages.find((p) => p.id === activePage)?.name || activePage }), _jsx(ChevronDown, { className: cn('ml-auto h-4 w-4 shrink-0 text-[#9aa3b2] transition-transform', isPageDropdownOpen && 'rotate-180'), strokeWidth: 2 })] }), _jsx(AnimatePresence, { children: isPageDropdownOpen && (_jsxs(motion.div, { initial: { opacity: 0, y: 6 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: 6 }, transition: { duration: 0.12 }, className: "absolute left-1/2 top-full z-[200] mt-1.5 w-[min(calc(100vw-24px),17rem)] -translate-x-1/2 rounded-xl border border-[#e6e9ee] bg-white py-1 shadow-[0_12px_24px_rgba(15,23,42,0.08)]", children: [_jsx("div", { className: "border-b border-[#f3f4f6] px-3.5 py-2.5", children: _jsx("span", { className: "text-[11px] font-semibold uppercase tracking-wide text-[#8a94a5]", children: "Pages" }) }), _jsx("div", { className: "max-h-[280px] overflow-y-auto py-1", children: pages.map((page) => (_jsxs("button", { type: "button", onClick: () => { onPageSwitch(page.id); setIsPageDropdownOpen(false); }, className: cn('flex w-full items-center gap-3 px-3.5 py-2.5 text-left text-[13px] transition-colors hover:bg-[#f8fafc]', activePage === page.id && 'bg-[#f5f0ff] font-medium text-[#440066] hover:bg-[#ede9ff]'), children: [_jsx("span", { className: activePage === page.id ? 'text-[#440066]' : 'text-[#9ca3af]', children: getPageIcon(page.id) }), _jsx("span", { className: "flex-1", children: page.name }), activePage === page.id && (_jsx(Check, { className: "h-4 w-4 shrink-0 text-[#440066]", strokeWidth: 2.5 }))] }, page.id))) })] })) })] })) : showPageContextCard ? (_jsxs("div", { className: "flex max-w-[min(92vw,400px)] items-center gap-2.5 rounded-lg border border-[#e8ecf2] bg-white px-3 py-1.5 shadow-[0_1px_2px_rgba(15,23,42,0.04)]", children: [_jsx("span", { className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-[#f7f3ff] text-[#440066]", children: getPageIcon(activePage) }), _jsxs("div", { className: "min-w-0", children: [_jsx("p", { className: "text-[9px] font-semibold uppercase tracking-[0.07em] text-[#8a94a5]", children: interactionMode === 'preview' ? 'Previewing page' : 'Current page' }), _jsx("p", { className: "truncate text-[12px] font-semibold text-[#1f2937]", children: centerTemplateLabel ||
|
|
155
|
+
currentPageLabel ||
|
|
156
|
+
pages.find((p) => p.id === activePage)?.name ||
|
|
157
|
+
activePage })] })] })) : null }), _jsxs("div", { className: cn('ml-auto flex shrink-0 items-center', isMobileChrome ? 'gap-1.5' : 'gap-2'), children: [!isMobileChrome && (_jsx("div", { className: "hidden md:block", children: onInteractionModeChange && (_jsxs(Cluster, { children: [_jsx(Tooltip, { text: "Edit mode \u2014 click elements on the canvas to edit them", children: _jsxs("button", { type: "button", onClick: () => onInteractionModeChange('edit'), "aria-pressed": interactionMode === 'edit', "aria-label": "Edit mode", className: cn('flex h-8 items-center gap-1.5 rounded-lg px-3 text-[12px] font-medium transition-colors', interactionMode === 'edit'
|
|
158
|
+
? 'bg-[#440066] text-white shadow-sm'
|
|
159
|
+
: 'text-[#5b6470] hover:bg-[#f8fafc] hover:text-[#1f2937]'), children: [_jsx(Pencil, { className: cn('h-3.5 w-3.5 shrink-0', interactionMode === 'edit' && 'text-[#80FF73]'), strokeWidth: 2 }), _jsx("span", { className: "hidden min-[940px]:inline", children: "Edit" })] }) }), _jsx(Tooltip, { text: "Preview mode \u2014 browse your store as a visitor would", children: _jsxs("button", { type: "button", onClick: () => onInteractionModeChange('preview'), "aria-pressed": interactionMode === 'preview', "aria-label": "Preview mode", className: cn('flex h-8 items-center gap-1.5 rounded-lg px-3 text-[12px] font-medium transition-colors', interactionMode === 'preview'
|
|
160
|
+
? 'bg-[#440066] text-white shadow-sm'
|
|
161
|
+
: 'text-[#5b6470] hover:bg-[#f8fafc] hover:text-[#1f2937]'), children: [_jsx(Eye, { className: cn('h-3.5 w-3.5 shrink-0', interactionMode === 'preview' && 'text-[#80FF73]'), strokeWidth: 2 }), _jsx("span", { className: "hidden min-[940px]:inline", children: "Preview" })] }) })] })) })), !isMobileChrome && (_jsx("div", { className: "hidden md:block", children: _jsxs(Cluster, { children: [_jsx(Tooltip, { text: "Desktop view", children: _jsx(IconBtn, { onClick: () => onViewModeChange?.('desktop'), active: viewMode === 'desktop', "aria-pressed": viewMode === 'desktop', "aria-label": "Desktop view", children: _jsx(Monitor, { className: "h-4 w-4", strokeWidth: 2 }) }) }), _jsx(Tooltip, { text: "Tablet view", children: _jsx(IconBtn, { onClick: () => onViewModeChange?.('tablet'), active: viewMode === 'tablet', "aria-pressed": viewMode === 'tablet', "aria-label": "Tablet view", children: _jsx(Tablet, { className: "h-4 w-4", strokeWidth: 2 }) }) }), _jsx(Tooltip, { text: "Mobile view", children: _jsx(IconBtn, { onClick: () => onViewModeChange?.('mobile'), active: viewMode === 'mobile', "aria-pressed": viewMode === 'mobile', "aria-label": "Mobile view", children: _jsx(Smartphone, { className: "h-4 w-4", strokeWidth: 2 }) }) })] }) })), !isMobileChrome && (_jsx("div", { className: "hidden md:block", children: viewMode === 'desktop' && onPreviewZoomChange && (_jsx(PreviewZoomDropdown, { previewZoom: previewZoom, onPreviewZoomChange: onPreviewZoomChange })) })), !isMobileChrome && (_jsx("div", { className: "hidden md:block", children: hasUtilityTools && (_jsxs(Cluster, { children: [onBackToSettings && (_jsx(Tooltip, { text: "Store settings", children: _jsx(IconBtn, { onClick: onBackToSettings, "aria-label": "Store settings", children: _jsx(Settings, { className: "h-4 w-4", strokeWidth: 2 }) }) })), onOpenAssets && (_jsx(Tooltip, { text: "Media library \u2014 browse and upload images", children: _jsx(IconBtn, { onClick: onOpenAssets, "aria-label": "Media library", children: _jsx(ImageIcon, { className: "h-4 w-4", strokeWidth: 2 }) }) })), onBackToTheme && (_jsx(Tooltip, { text: "Change template \u2014 switch to a different layout template", children: _jsx(IconBtn, { onClick: onBackToTheme, "aria-label": "Change template", children: _jsx(Palette, { className: "h-4 w-4", strokeWidth: 2 }) }) })), onGenerateAI && (onBackToSettings || onOpenAssets || onBackToTheme) && (_jsx(Divider, {})), onGenerateAI && (_jsx(Tooltip, { text: "AI assistant \u2014 generate and improve content with AI", children: _jsx(IconBtn, { id: "tour-ai-button", onClick: onGenerateAI, disabled: isGeneratingAI, "aria-label": "AI assistant", className: "text-[#440066] hover:bg-[#f5f0ff] hover:text-[#440066]", children: isGeneratingAI ? (_jsx("span", { className: "h-4 w-4 animate-spin rounded-full border-2 border-[#440066]/25 border-t-[#440066]" })) : (_jsx(Sparkles, { className: "h-4 w-4", strokeWidth: 2 })) }) }))] })) })), _jsxs("div", { className: cn('flex shrink-0 items-center', isMobileChrome ? 'gap-1.5' : 'gap-2 pl-1'), children: [_jsx(Tooltip, { text: isMobileChrome && draftStatusLabel
|
|
162
|
+
? draftStatusLabel
|
|
163
|
+
: 'Save your current changes as a draft (not yet live)', children: _jsxs("button", { type: "button", onClick: onSave, disabled: isSaving, "aria-label": draftStatusLabel ? `Save draft — ${draftStatusLabel}` : 'Save draft', className: cn('relative flex shrink-0 items-center gap-2 whitespace-nowrap rounded-xl border border-[#e6e9ee] bg-white text-[13px] font-semibold text-[#374151] shadow-[0_1px_2px_rgba(15,23,42,0.05)] transition-colors hover:border-[#d2d9e3] hover:bg-[#f8fafc] disabled:opacity-50', isMobileChrome ? 'h-9 px-2.5' : 'h-8 px-2 md:h-10 md:px-4'), children: [isMobileChrome && draftSaveStatus === 'dirty' && (_jsx("span", { className: "absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-amber-400 ring-2 ring-white", "aria-hidden": true })), isSaving ? (_jsx("span", { className: "h-3.5 w-3.5 animate-spin rounded-full border-2 border-[#d1d5db] border-t-[#6b7280]" })) : (_jsx(Save, { className: "h-3.5 w-3.5", strokeWidth: 2.5 })), _jsx("span", { className: isMobileChrome ? 'sr-only' : 'hidden md:inline', children: "Save draft" })] }) }), _jsx(Tooltip, { text: publishDisabled
|
|
164
|
+
? 'No pending changes to publish'
|
|
165
|
+
: isPublishing
|
|
166
|
+
? 'Publishing your changes…'
|
|
167
|
+
: publishButtonText === 'Update'
|
|
168
|
+
? 'Publish your latest changes — makes them live instantly'
|
|
169
|
+
: 'Publish your store and make it live for visitors', children: _jsxs("button", { type: "button", id: "tour-launch-button", onClick: !publishDisabled && !isPublishing ? onPublish : undefined, disabled: publishDisabled, "aria-label": publishButtonText, className: cn('flex h-8 shrink-0 items-center gap-2 whitespace-nowrap rounded-xl px-2 text-[13px] font-semibold transition-colors', !isMobileChrome && 'md:h-10 md:px-4', publishDisabled
|
|
170
|
+
? 'cursor-not-allowed border-2 border-[#c3c4c7] bg-[#e4e6ea] text-[#787c82] opacity-80'
|
|
171
|
+
: isPublishing
|
|
172
|
+
? 'cursor-wait border border-transparent !bg-shopaza-indigo !text-white shadow-[0_1px_3px_rgba(68,0,102,0.3),0_4px_12px_rgba(68,0,102,0.15)] opacity-90'
|
|
173
|
+
: 'border border-transparent !bg-shopaza-indigo !text-white shadow-[0_1px_3px_rgba(68,0,102,0.3),0_4px_12px_rgba(68,0,102,0.15)] hover:!bg-[#370055] active:!bg-[#2d0044]'), children: [isPublishing ? (_jsx("span", { className: "h-3.5 w-3.5 animate-spin rounded-full border-2 border-white/30 border-t-white" })) : (_jsx(Send, { className: "h-3.5 w-3.5", strokeWidth: 2.5 })), _jsx("span", { className: isMobileChrome ? 'sr-only' : 'hidden md:inline', children: isPublishing ? (publishButtonText === 'Update' ? 'Updating…' : 'Publishing…') : publishButtonText })] }) })] })] })] }), showMobileStatusRow && (_jsx("div", { className: "border-t border-[#eef1f5] px-2 py-1", children: mobileStatusBanner ? (_jsx("p", { role: "status", className: cn('text-[11px] font-medium leading-snug', mobileStatusBanner.tone === 'warning'
|
|
174
|
+
? 'text-amber-800'
|
|
175
|
+
: 'text-[#50575e]'), children: mobileStatusBanner.message })) : headerStatusNote ? (_jsx("p", { role: "status", className: "text-[11px] font-medium leading-snug text-[#50575e]", children: headerStatusNote })) : draftStatusLabel ? (_jsx("p", { role: "status", className: "text-[11px] font-medium leading-snug text-[#787c82]", children: draftStatusLabel })) : null })), _jsx("style", { dangerouslySetInnerHTML: {
|
|
176
|
+
__html: `
|
|
177
|
+
.overflow-x-auto::-webkit-scrollbar { display: none; }
|
|
178
|
+
.overflow-x-auto { -ms-overflow-style: none; scrollbar-width: none; }
|
|
179
|
+
`,
|
|
180
|
+
} })] }));
|
|
181
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { OutlineBlockTreeNode } from '../blocks/nav-outline-utils';
|
|
3
|
+
export interface NavigatorSectionItem {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
/** Whether this section is currently shown (show !== false in data). */
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
/** Nested block / array slide tree under this section. */
|
|
9
|
+
nested?: OutlineBlockTreeNode[];
|
|
10
|
+
}
|
|
11
|
+
export interface OutlinePageGroup {
|
|
12
|
+
pageId: string;
|
|
13
|
+
pageLabel: string;
|
|
14
|
+
sections: NavigatorSectionItem[];
|
|
15
|
+
}
|
|
16
|
+
interface EditorNavigatorProps {
|
|
17
|
+
outlinePages: OutlinePageGroup[];
|
|
18
|
+
activePageId: string;
|
|
19
|
+
onSelectPage: (pageId: string) => void;
|
|
20
|
+
selectedSectionId: string | null;
|
|
21
|
+
onSelectSectionInPage: (pageId: string, sectionId: string) => void;
|
|
22
|
+
onHoverSection?: (id: string | null) => void;
|
|
23
|
+
onReorderSection?: (sectionId: string, direction: 'up' | 'down') => void;
|
|
24
|
+
onToggleSectionVisibility?: (sectionId: string) => void;
|
|
25
|
+
/** When set, granular field path can highlight nested block rows when it matches canvas focus. */
|
|
26
|
+
outlineGranularity?: {
|
|
27
|
+
pageId: string;
|
|
28
|
+
sectionKey: string;
|
|
29
|
+
fieldPath: string[];
|
|
30
|
+
} | null;
|
|
31
|
+
/** Click a nested block row (opens first editable attribute in the sidebar). */
|
|
32
|
+
onOutlineTreeActivate?: (pageId: string, sectionId: string, node: OutlineBlockTreeNode) => void;
|
|
33
|
+
/** Toggle visibility of a nested block node. */
|
|
34
|
+
onToggleNodeVisibility?: (pageId: string, sectionId: string, node: OutlineBlockTreeNode) => void;
|
|
35
|
+
className?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Full-template outline (pages → blocks). Reorder controls apply to the active page only.
|
|
39
|
+
*/
|
|
40
|
+
export declare const EditorNavigator: React.FC<EditorNavigatorProps>;
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=EditorNavigator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorNavigator.d.ts","sourceRoot":"","sources":["../../../src/editor/shared/EditorNavigator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGxE,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,oBAAoB,EAAE,CAAC;CAClC;AAED,UAAU,oBAAoB;IAC5B,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,qBAAqB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACnE,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C,gBAAgB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,GAAG,MAAM,KAAK,IAAI,CAAC;IACzE,yBAAyB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,kGAAkG;IAClG,kBAAkB,CAAC,EAAE;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,EAAE,CAAC;KACrB,GAAG,IAAI,CAAC;IACT,gFAAgF;IAChF,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAChG,gDAAgD;IAChD,sBAAsB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACjG,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAoL1D,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { cn } from '../../lib/utils/index.js';
|
|
4
|
+
import { ChevronDown, ChevronRight, Eye, EyeOff, Layers, List } from 'lucide-react';
|
|
5
|
+
import { BlockOutlineTree } from './BlockOutlineTree.js';
|
|
6
|
+
/**
|
|
7
|
+
* Full-template outline (pages → blocks). Reorder controls apply to the active page only.
|
|
8
|
+
*/
|
|
9
|
+
export const EditorNavigator = ({ outlinePages, activePageId, onSelectPage, selectedSectionId, onSelectSectionInPage, onHoverSection, onReorderSection, onToggleSectionVisibility, outlineGranularity, onOutlineTreeActivate, onToggleNodeVisibility, className, }) => {
|
|
10
|
+
const [expandedOutlinePages, setExpandedOutlinePages] = useState({});
|
|
11
|
+
const isOutlineExpanded = (pageId) => expandedOutlinePages[pageId] !== undefined ? expandedOutlinePages[pageId] : pageId === activePageId;
|
|
12
|
+
const toggleOutlinePage = (pageId) => {
|
|
13
|
+
setExpandedOutlinePages((prev) => {
|
|
14
|
+
const open = prev[pageId] !== undefined ? prev[pageId] : pageId === activePageId;
|
|
15
|
+
return { ...prev, [pageId]: !open };
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
return (_jsxs("aside", { "data-payaza-sidebar": "navigator", className: cn('flex h-full w-[220px] min-w-[200px] shrink-0 flex-col border-r border-[#dcdcde] bg-[#fffefb]', '[contain:layout_style]', className), "aria-label": "Template outline", children: [_jsxs("div", { "data-payaza-sidebar-tabs": true, className: "flex shrink-0 items-center gap-2 border-b border-[#dcdcde] bg-[#f6f7f7] px-2.5 py-2", children: [_jsx(List, { className: "h-3.5 w-3.5 shrink-0 text-[#787c82]", strokeWidth: 2, "aria-hidden": true }), _jsx("span", { className: "text-[11px] font-semibold uppercase tracking-[0.06em] text-[#646970]", children: "List View" })] }), _jsx("div", { className: "min-h-0 flex-1 bg-white", children: _jsx("nav", { className: "custom-scrollbar h-full overflow-y-auto px-1.5 py-2", "aria-label": "Template outline", children: _jsx("ul", { className: "space-y-0.5", children: outlinePages.map((page) => {
|
|
19
|
+
const expanded = isOutlineExpanded(page.pageId);
|
|
20
|
+
const pageActive = page.pageId === activePageId;
|
|
21
|
+
const isCurrentPage = page.pageId === activePageId;
|
|
22
|
+
return (_jsxs("li", { className: "select-none", children: [_jsxs("div", { className: "flex items-stretch gap-0.5", children: [_jsx("button", { type: "button", className: "flex h-9 w-8 shrink-0 items-center justify-center text-[#787c82] hover:text-[#1b0029]", "aria-expanded": expanded, onClick: () => toggleOutlinePage(page.pageId), children: expanded ? (_jsx(ChevronDown, { className: "h-4 w-4", strokeWidth: 2 })) : (_jsx(ChevronRight, { className: "h-4 w-4", strokeWidth: 2 })) }), _jsx("button", { type: "button", "data-selected": pageActive && !selectedSectionId ? 'page' : pageActive ? 'page-context' : undefined, onClick: () => onSelectPage(page.pageId), className: cn('min-w-0 flex-1 rounded-[2px] px-2 py-1.5 text-left text-[12px] font-semibold transition-colors', pageActive && !selectedSectionId
|
|
23
|
+
? 'bg-[#ebe4f5] text-[#440066]'
|
|
24
|
+
: pageActive
|
|
25
|
+
? 'text-[#1b0029]'
|
|
26
|
+
: 'text-[#50575e] hover:bg-[#f6f7f7]'), children: page.pageLabel })] }), expanded && (_jsx("ul", { className: "ml-5 border-l border-[#e8e8e8] pl-2", children: page.sections.map((s, index) => {
|
|
27
|
+
const active = selectedSectionId === s.id && activePageId === page.pageId;
|
|
28
|
+
const isVisible = s.visible !== false;
|
|
29
|
+
return (_jsxs("li", { className: "group", children: [_jsxs("div", { className: "flex items-stretch gap-0.5", children: [_jsx("span", { className: "w-5 shrink-0", "aria-hidden": true }), _jsx("button", { type: "button", "data-selected": active ? 'true' : undefined, onClick: () => onSelectSectionInPage(page.pageId, s.id), onMouseEnter: () => onHoverSection?.(s.id), onMouseLeave: () => onHoverSection?.(null), className: cn('min-w-0 flex-1 rounded-[2px] px-2 py-1 text-left text-[11px] leading-snug transition-colors', active
|
|
30
|
+
? 'bg-[#e8ecf1] font-medium text-[#1b0029] shadow-[inset_3px_0_0_0_#440066]'
|
|
31
|
+
: 'text-[#2c3338] hover:bg-[#f6f7f7]', !isVisible && 'opacity-50'), children: _jsxs("span", { className: "flex items-start gap-2", children: [_jsx(Layers, { className: cn('payaza-nav-icon mt-0.5 h-4 w-4 shrink-0', active ? 'text-[#440066]' : 'text-[#787c82]'), strokeWidth: 2, "aria-hidden": true }), _jsx("span", { className: "line-clamp-2", children: s.label?.trim() || s.id })] }) }), onToggleSectionVisibility && (_jsx("div", { className: "flex shrink-0 flex-col justify-center pr-0.5 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100", children: _jsx("button", { type: "button", "aria-label": isVisible ? `Hide ${s.label}` : `Show ${s.label}`, onClick: (e) => {
|
|
32
|
+
e.preventDefault();
|
|
33
|
+
e.stopPropagation();
|
|
34
|
+
onToggleSectionVisibility(s.id);
|
|
35
|
+
}, className: "rounded-sm p-0.5 text-[#787c82] hover:bg-[#f0f0f1] hover:text-[#1b0029]", title: isVisible ? 'Hide section' : 'Show section', children: isVisible ? (_jsx(Eye, { className: "h-3.5 w-3.5", strokeWidth: 2 })) : (_jsx(EyeOff, { className: "h-3.5 w-3.5", strokeWidth: 2 })) }) }))] }), active && s.nested && s.nested.length > 0 && onOutlineTreeActivate && (_jsx("div", { className: "ml-5 border-l border-[#ececec] pl-1 pb-1", children: _jsx(BlockOutlineTree, { nodes: s.nested, variant: "navigator", defaultExpandDepth: 1, granularityPath: outlineGranularity?.sectionKey === s.id &&
|
|
36
|
+
isCurrentPage &&
|
|
37
|
+
outlineGranularity?.fieldPath?.length
|
|
38
|
+
? outlineGranularity.fieldPath
|
|
39
|
+
: null, onActivateNode: (node) => onOutlineTreeActivate(page.pageId, s.id, node), onToggleNodeVisibility: onToggleNodeVisibility
|
|
40
|
+
? (node) => onToggleNodeVisibility(page.pageId, s.id, node)
|
|
41
|
+
: undefined }) }))] }, `${page.pageId}-${s.id}`));
|
|
42
|
+
}) }))] }, page.pageId));
|
|
43
|
+
}) }) }) })] }));
|
|
44
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StoreConfig } from '../../lib/store-types';
|
|
3
|
+
import type { InteractionMode } from '../document/types';
|
|
4
|
+
import type { IframePreviewFlushHandle } from '../../preview/canvas/preview-flush-handle';
|
|
5
|
+
import { type PreviewZoom } from './preview-viewport';
|
|
6
|
+
export type { PreviewZoom } from './preview-viewport';
|
|
7
|
+
export { DESKTOP_PREVIEW_WIDTH } from './preview-viewport';
|
|
8
|
+
interface IframePreviewProps {
|
|
9
|
+
layoutId: string;
|
|
10
|
+
config: StoreConfig;
|
|
11
|
+
activePageId: string;
|
|
12
|
+
viewMode: 'desktop' | 'tablet' | 'mobile';
|
|
13
|
+
selectedSection?: string | null;
|
|
14
|
+
/** When set, tells the iframe to highlight this specific field element (List View click). */
|
|
15
|
+
focusedField?: {
|
|
16
|
+
sectionKey: string;
|
|
17
|
+
fieldPath: string[];
|
|
18
|
+
elementKind: string;
|
|
19
|
+
} | null;
|
|
20
|
+
/** edit = suppress link navigation in iframe; preview = browse-like */
|
|
21
|
+
interactionMode?: InteractionMode;
|
|
22
|
+
/** When set, syncs hero carousel in preview to this slide index */
|
|
23
|
+
slideIndexSync?: {
|
|
24
|
+
sectionKey: string;
|
|
25
|
+
arrayField: string;
|
|
26
|
+
index: number;
|
|
27
|
+
} | null;
|
|
28
|
+
/** Increment to flush in-flight canvas edits before slide navigation */
|
|
29
|
+
flushRequestId?: number;
|
|
30
|
+
/** Desktop canvas zoom — fit scales to available width; numeric values are 0–1.25+ */
|
|
31
|
+
previewZoom?: PreviewZoom;
|
|
32
|
+
desktopCanvasWidth?: number;
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare const IframePreview: React.ForwardRefExoticComponent<IframePreviewProps & React.RefAttributes<IframePreviewFlushHandle>>;
|
|
36
|
+
//# sourceMappingURL=IframePreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IframePreview.d.ts","sourceRoot":"","sources":["../../../src/editor/shared/IframePreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgF,MAAM,OAAO,CAAC;AACrG,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAEL,KAAK,WAAW,EAEjB,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,WAAW,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC1C,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,6FAA6F;IAC7F,YAAY,CAAC,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,EAAE,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACvF,uEAAuE;IACvE,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,mEAAmE;IACnE,cAAc,CAAC,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAClF,wEAAwE;IACxE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sFAAsF;IACtF,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,qGA6TxB,CAAC"}
|