@fayz-ai/storefront 0.9.0 → 0.10.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 +3 -3
- package/dist/app/createStorefrontApp.d.ts +65 -0
- package/dist/app/createStorefrontApp.d.ts.map +1 -0
- package/dist/{define.d.ts → app/define.d.ts} +3 -3
- package/dist/app/define.d.ts.map +1 -0
- package/dist/app/hydration.d.ts +37 -0
- package/dist/app/hydration.d.ts.map +1 -0
- package/dist/app/prerender.d.ts +57 -0
- package/dist/app/prerender.d.ts.map +1 -0
- package/dist/{router.d.ts → app/router.d.ts} +140 -113
- package/dist/app/router.d.ts.map +1 -0
- package/dist/{scaffold.d.ts → app/scaffold.d.ts} +2 -2
- package/dist/app/scaffold.d.ts.map +1 -0
- package/dist/app/serving.d.ts +70 -0
- package/dist/app/serving.d.ts.map +1 -0
- package/dist/app/static-render.d.ts +46 -0
- package/dist/app/static-render.d.ts.map +1 -0
- package/dist/blocks/block-at-path.d.ts +59 -0
- package/dist/blocks/block-at-path.d.ts.map +1 -0
- package/dist/blocks/page-blocks.d.ts +163 -0
- package/dist/blocks/page-blocks.d.ts.map +1 -0
- package/dist/blocks/page-data.d.ts +105 -0
- package/dist/blocks/page-data.d.ts.map +1 -0
- package/dist/{blocks.d.ts → blocks/registry.d.ts} +1 -1
- package/dist/blocks/registry.d.ts.map +1 -0
- package/dist/{sections.d.ts → blocks/sections.d.ts} +40 -2
- package/dist/blocks/sections.d.ts.map +1 -0
- package/dist/chunk-6B7H3IZ6.js +10232 -0
- package/dist/chunk-6B7H3IZ6.js.map +1 -0
- package/dist/chunk-6IXTENLB.js +162 -0
- package/dist/chunk-6IXTENLB.js.map +1 -0
- package/dist/components/PaymentTerms.d.ts +34 -0
- package/dist/components/PaymentTerms.d.ts.map +1 -0
- package/dist/components/SmoothImage.d.ts +1 -1
- package/dist/components/SmoothImage.d.ts.map +1 -1
- package/dist/components/account/CustomerAccountShell.d.ts.map +1 -0
- package/dist/components/account/SignInModal.d.ts.map +1 -0
- package/dist/components/cart/CartDrawer.d.ts.map +1 -0
- package/dist/components/cart/QuantityInput.d.ts.map +1 -0
- package/dist/components/checkout/DeliveryEstimator.d.ts.map +1 -0
- package/dist/components/collection/CategoryShowcase.d.ts +44 -0
- package/dist/components/collection/CategoryShowcase.d.ts.map +1 -0
- package/dist/components/collection/FiltersPanel.d.ts +19 -0
- package/dist/components/collection/FiltersPanel.d.ts.map +1 -0
- package/dist/components/collection/ProductGrid.d.ts.map +1 -0
- package/dist/components/layout/PageBodyBlocks.d.ts +40 -0
- package/dist/components/layout/PageBodyBlocks.d.ts.map +1 -0
- package/dist/components/layout/SearchOverlay.d.ts +13 -0
- package/dist/components/layout/SearchOverlay.d.ts.map +1 -0
- package/dist/components/layout/StorefrontErrorBoundary.d.ts.map +1 -0
- package/dist/components/layout/StorefrontFooter.d.ts.map +1 -0
- package/dist/components/layout/StorefrontHeader.d.ts.map +1 -0
- package/dist/components/layout/Toaster.d.ts.map +1 -0
- package/dist/components/marketing/CollectionSections.d.ts +463 -0
- package/dist/components/marketing/CollectionSections.d.ts.map +1 -0
- package/dist/components/marketing/ConversionSections.d.ts +221 -0
- package/dist/components/marketing/ConversionSections.d.ts.map +1 -0
- package/dist/components/marketing/EditorialSections.d.ts +248 -0
- package/dist/components/marketing/EditorialSections.d.ts.map +1 -0
- package/dist/components/marketing/EntityList.d.ts +97 -0
- package/dist/components/marketing/EntityList.d.ts.map +1 -0
- package/dist/components/marketing/FormBlock.d.ts +167 -0
- package/dist/components/marketing/FormBlock.d.ts.map +1 -0
- package/dist/components/marketing/HeroSection.d.ts +125 -0
- package/dist/components/marketing/HeroSection.d.ts.map +1 -0
- package/dist/components/marketing/MediaCarousel.d.ts +135 -0
- package/dist/components/marketing/MediaCarousel.d.ts.map +1 -0
- package/dist/components/marketing/MiscSections.d.ts +252 -0
- package/dist/components/marketing/MiscSections.d.ts.map +1 -0
- package/dist/components/order/OrderTrackingTimeline.d.ts.map +1 -0
- package/dist/components/product/ProductCard.d.ts +14 -0
- package/dist/components/product/ProductCard.d.ts.map +1 -0
- package/dist/components/product/ProductEnquiryForm.d.ts.map +1 -0
- package/dist/components/product/ProductGallery.d.ts +36 -0
- package/dist/components/product/ProductGallery.d.ts.map +1 -0
- package/dist/components/{ProductOptionSelector.d.ts → product/ProductOptionSelector.d.ts} +1 -1
- package/dist/components/product/ProductOptionSelector.d.ts.map +1 -0
- package/dist/components/product/ProductRail.d.ts +93 -0
- package/dist/components/product/ProductRail.d.ts.map +1 -0
- package/dist/components/product/ProductReviews.d.ts +39 -0
- package/dist/components/product/ProductReviews.d.ts.map +1 -0
- package/dist/components/product/ProductSlider.d.ts +169 -0
- package/dist/components/product/ProductSlider.d.ts.map +1 -0
- package/dist/components/product/ProductSpecs.d.ts.map +1 -0
- package/dist/components/product/RelatedProducts.d.ts.map +1 -0
- package/dist/{auth.d.ts → data/auth.d.ts} +9 -0
- package/dist/data/auth.d.ts.map +1 -0
- package/dist/data/facets.d.ts +39 -0
- package/dist/data/facets.d.ts.map +1 -0
- package/dist/data/loaders.d.ts +56 -0
- package/dist/data/loaders.d.ts.map +1 -0
- package/dist/data/order-status.d.ts.map +1 -0
- package/dist/data/product-options.d.ts +36 -0
- package/dist/data/product-options.d.ts.map +1 -0
- package/dist/diagnostics/seo-audit.d.ts +54 -0
- package/dist/diagnostics/seo-audit.d.ts.map +1 -0
- package/dist/diagnostics/seo-audit.js +3 -0
- package/dist/diagnostics/seo-audit.js.map +1 -0
- package/dist/document/change.d.ts +100 -0
- package/dist/document/change.d.ts.map +1 -0
- package/dist/{config.d.ts → document/config.d.ts} +126 -7
- package/dist/document/config.d.ts.map +1 -0
- package/dist/document/describe.d.ts +135 -0
- package/dist/document/describe.d.ts.map +1 -0
- package/dist/document/overlay.d.ts +58 -0
- package/dist/document/overlay.d.ts.map +1 -0
- package/dist/{presets.d.ts → document/presets.d.ts} +2 -2
- package/dist/document/presets.d.ts.map +1 -0
- package/dist/document/render.d.ts +171 -0
- package/dist/document/render.d.ts.map +1 -0
- package/dist/document/round-trip.d.ts +46 -0
- package/dist/document/round-trip.d.ts.map +1 -0
- package/dist/document/sections.d.ts +194 -0
- package/dist/document/sections.d.ts.map +1 -0
- package/dist/document/upgrade.d.ts +112 -0
- package/dist/document/upgrade.d.ts.map +1 -0
- package/dist/document/validate.d.ts +24 -0
- package/dist/document/validate.d.ts.map +1 -0
- package/dist/{component-contracts.d.ts → extend/component-contracts.d.ts} +74 -22
- package/dist/extend/component-contracts.d.ts.map +1 -0
- package/dist/extend/component-override.d.ts +38 -0
- package/dist/extend/component-override.d.ts.map +1 -0
- package/dist/extend/component-selectors.d.ts.map +1 -0
- package/dist/extend/editor-bridge.d.ts +59 -0
- package/dist/extend/editor-bridge.d.ts.map +1 -0
- package/dist/extend/extension-points.d.ts +103 -0
- package/dist/extend/extension-points.d.ts.map +1 -0
- package/dist/extend/slots.d.ts +216 -0
- package/dist/extend/slots.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +25 -6
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/use-address.d.ts +26 -0
- package/dist/hooks/use-address.d.ts.map +1 -0
- package/dist/hooks/use-cart.d.ts +3 -0
- package/dist/hooks/use-cart.d.ts.map +1 -0
- package/dist/hooks/use-catalog.d.ts +24 -0
- package/dist/hooks/use-catalog.d.ts.map +1 -0
- package/dist/hooks/use-categories.d.ts +19 -0
- package/dist/hooks/use-categories.d.ts.map +1 -0
- package/dist/hooks/use-checkout.d.ts +41 -0
- package/dist/hooks/use-checkout.d.ts.map +1 -0
- package/dist/hooks/use-discount-validator.d.ts +20 -0
- package/dist/hooks/use-discount-validator.d.ts.map +1 -0
- package/dist/hooks/use-enquiry.d.ts +7 -0
- package/dist/hooks/use-enquiry.d.ts.map +1 -0
- package/dist/hooks/{useMyOrders.d.ts → use-my-orders.d.ts} +1 -1
- package/dist/hooks/use-my-orders.d.ts.map +1 -0
- package/dist/hooks/use-order.d.ts +17 -0
- package/dist/hooks/use-order.d.ts.map +1 -0
- package/dist/hooks/use-payment-methods.d.ts +19 -0
- package/dist/hooks/use-payment-methods.d.ts.map +1 -0
- package/dist/hooks/use-policies.d.ts +25 -0
- package/dist/hooks/use-policies.d.ts.map +1 -0
- package/dist/hooks/use-product.d.ts +15 -0
- package/dist/hooks/use-product.d.ts.map +1 -0
- package/dist/hooks/{useProducts.d.ts → use-products.d.ts} +1 -1
- package/dist/hooks/use-products.d.ts.map +1 -0
- package/dist/hooks/use-region.d.ts +15 -0
- package/dist/hooks/use-region.d.ts.map +1 -0
- package/dist/hooks/use-shipping.d.ts +29 -0
- package/dist/hooks/use-shipping.d.ts.map +1 -0
- package/dist/hooks/use-storefront-actions.d.ts +12 -0
- package/dist/hooks/use-storefront-actions.d.ts.map +1 -0
- package/dist/hooks/use-storefront-head.d.ts +19 -0
- package/dist/hooks/use-storefront-head.d.ts.map +1 -0
- package/dist/hooks/use-storefront.d.ts +3 -0
- package/dist/hooks/use-storefront.d.ts.map +1 -0
- package/dist/index.d.ts +123 -54
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1311 -5012
- package/dist/index.js.map +1 -1
- package/dist/lib/format.d.ts.map +1 -0
- package/dist/lib/motion.d.ts.map +1 -0
- package/dist/lib/seo.d.ts +26 -0
- package/dist/lib/seo.d.ts.map +1 -0
- package/dist/{testids.d.ts → lib/testids.d.ts} +21 -0
- package/dist/lib/testids.d.ts.map +1 -0
- package/dist/{theme.d.ts → lib/theme.d.ts} +41 -3
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/render.d.ts +5 -0
- package/dist/render.d.ts.map +1 -0
- package/dist/render.js +359 -0
- package/dist/render.js.map +1 -0
- package/dist/stores/cart.store.d.ts +6 -2
- package/dist/stores/cart.store.d.ts.map +1 -1
- package/dist/stores/catalog.store.d.ts +11 -0
- package/dist/stores/catalog.store.d.ts.map +1 -1
- package/dist/views/CatalogPage.d.ts.map +1 -0
- package/dist/views/CheckoutPage.d.ts.map +1 -0
- package/dist/views/ContentPage.d.ts +11 -0
- package/dist/views/ContentPage.d.ts.map +1 -0
- package/dist/views/HomePage.d.ts +9 -0
- package/dist/views/HomePage.d.ts.map +1 -0
- package/dist/views/MyPurchasesPage.d.ts.map +1 -0
- package/dist/views/NotFoundPage.d.ts.map +1 -0
- package/dist/{pages → views}/OrderConfirmationPage.d.ts.map +1 -1
- package/dist/{pages → views}/PolicyPage.d.ts.map +1 -1
- package/dist/views/ProductDetailPage.d.ts.map +1 -0
- package/dist/views/StorefrontPage.d.ts +35 -0
- package/dist/views/StorefrontPage.d.ts.map +1 -0
- package/dist/workflows/checkout.d.ts +1 -1
- package/dist/workflows/checkout.d.ts.map +1 -1
- package/package.json +21 -14
- package/dist/auth.d.ts.map +0 -1
- package/dist/blocks.d.ts.map +0 -1
- package/dist/component-contracts.d.ts.map +0 -1
- package/dist/component-selectors.d.ts.map +0 -1
- package/dist/components/CartDrawer.d.ts.map +0 -1
- package/dist/components/CustomerAccountShell.d.ts.map +0 -1
- package/dist/components/DeliveryEstimator.d.ts.map +0 -1
- package/dist/components/FiltersPanel.d.ts +0 -3
- package/dist/components/FiltersPanel.d.ts.map +0 -1
- package/dist/components/OrderTrackingTimeline.d.ts.map +0 -1
- package/dist/components/ProductCard.d.ts +0 -4
- package/dist/components/ProductCard.d.ts.map +0 -1
- package/dist/components/ProductEnquiryForm.d.ts.map +0 -1
- package/dist/components/ProductGallery.d.ts +0 -22
- package/dist/components/ProductGallery.d.ts.map +0 -1
- package/dist/components/ProductGrid.d.ts.map +0 -1
- package/dist/components/ProductOptionSelector.d.ts.map +0 -1
- package/dist/components/ProductSpecs.d.ts.map +0 -1
- package/dist/components/QuantityInput.d.ts.map +0 -1
- package/dist/components/RelatedProducts.d.ts.map +0 -1
- package/dist/components/SignInModal.d.ts.map +0 -1
- package/dist/components/StorefrontErrorBoundary.d.ts.map +0 -1
- package/dist/components/StorefrontFooter.d.ts.map +0 -1
- package/dist/components/StorefrontHeader.d.ts.map +0 -1
- package/dist/components/Toaster.d.ts.map +0 -1
- package/dist/components/sections/CategoryShowcase.d.ts +0 -6
- package/dist/components/sections/CategoryShowcase.d.ts.map +0 -1
- package/dist/components/sections/HeroSection.d.ts +0 -9
- package/dist/components/sections/HeroSection.d.ts.map +0 -1
- package/dist/components/sections/MediaCarousel.d.ts +0 -11
- package/dist/components/sections/MediaCarousel.d.ts.map +0 -1
- package/dist/components/sections/MiscSections.d.ts +0 -33
- package/dist/components/sections/MiscSections.d.ts.map +0 -1
- package/dist/components/sections/ProductRail.d.ts +0 -9
- package/dist/components/sections/ProductRail.d.ts.map +0 -1
- package/dist/components/sections/ProductSlider.d.ts +0 -15
- package/dist/components/sections/ProductSlider.d.ts.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/createStorefrontApp.d.ts +0 -28
- package/dist/createStorefrontApp.d.ts.map +0 -1
- package/dist/define.d.ts.map +0 -1
- package/dist/format.d.ts.map +0 -1
- package/dist/hooks/useCategories.d.ts +0 -6
- package/dist/hooks/useCategories.d.ts.map +0 -1
- package/dist/hooks/useDiscountValidator.d.ts +0 -14
- package/dist/hooks/useDiscountValidator.d.ts.map +0 -1
- package/dist/hooks/useMyOrders.d.ts.map +0 -1
- package/dist/hooks/useProduct.d.ts +0 -7
- package/dist/hooks/useProduct.d.ts.map +0 -1
- package/dist/hooks/useProducts.d.ts.map +0 -1
- package/dist/hooks/useStorefront.d.ts +0 -35
- package/dist/hooks/useStorefront.d.ts.map +0 -1
- package/dist/hooks/useStorefrontHead.d.ts +0 -11
- package/dist/hooks/useStorefrontHead.d.ts.map +0 -1
- package/dist/motion.d.ts.map +0 -1
- package/dist/order-status.d.ts.map +0 -1
- package/dist/pages/CatalogPage.d.ts.map +0 -1
- package/dist/pages/CheckoutPage.d.ts.map +0 -1
- package/dist/pages/HomePage.d.ts +0 -9
- package/dist/pages/HomePage.d.ts.map +0 -1
- package/dist/pages/MyPurchasesPage.d.ts.map +0 -1
- package/dist/pages/NotFoundPage.d.ts.map +0 -1
- package/dist/pages/ProductDetailPage.d.ts.map +0 -1
- package/dist/presets.d.ts.map +0 -1
- package/dist/product-options.d.ts +0 -12
- package/dist/product-options.d.ts.map +0 -1
- package/dist/router.d.ts.map +0 -1
- package/dist/scaffold.d.ts.map +0 -1
- package/dist/sections.d.ts.map +0 -1
- package/dist/testids.d.ts.map +0 -1
- package/dist/theme.d.ts.map +0 -1
- package/src/auth.ts +0 -227
- package/src/blocks.tsx +0 -51
- package/src/catalog.ts +0 -3
- package/src/component-contracts.ts +0 -154
- package/src/component-selectors.ts +0 -31
- package/src/components/CartDrawer.tsx +0 -279
- package/src/components/CustomerAccountShell.tsx +0 -102
- package/src/components/DeliveryEstimator.tsx +0 -157
- package/src/components/FiltersPanel.tsx +0 -109
- package/src/components/OrderTrackingTimeline.tsx +0 -135
- package/src/components/Price.tsx +0 -32
- package/src/components/ProductCard.tsx +0 -120
- package/src/components/ProductEnquiryForm.tsx +0 -175
- package/src/components/ProductGallery.tsx +0 -174
- package/src/components/ProductGrid.tsx +0 -43
- package/src/components/ProductOptionSelector.tsx +0 -50
- package/src/components/ProductSpecs.tsx +0 -75
- package/src/components/QuantityInput.tsx +0 -52
- package/src/components/RelatedProducts.tsx +0 -40
- package/src/components/SignInModal.tsx +0 -120
- package/src/components/SmoothImage.tsx +0 -59
- package/src/components/StorefrontErrorBoundary.tsx +0 -51
- package/src/components/StorefrontFooter.tsx +0 -110
- package/src/components/StorefrontHeader.tsx +0 -477
- package/src/components/Toaster.tsx +0 -60
- package/src/components/sections/CategoryShowcase.tsx +0 -80
- package/src/components/sections/HeroSection.tsx +0 -193
- package/src/components/sections/MediaCarousel.tsx +0 -141
- package/src/components/sections/MiscSections.tsx +0 -158
- package/src/components/sections/ProductRail.tsx +0 -81
- package/src/components/sections/ProductSlider.tsx +0 -119
- package/src/config.ts +0 -229
- package/src/createStorefrontApp.tsx +0 -247
- package/src/define.ts +0 -34
- package/src/format.ts +0 -7
- package/src/hooks/index.ts +0 -6
- package/src/hooks/useCategories.ts +0 -26
- package/src/hooks/useDiscountValidator.ts +0 -43
- package/src/hooks/useMyOrders.ts +0 -41
- package/src/hooks/useProduct.ts +0 -36
- package/src/hooks/useProducts.ts +0 -39
- package/src/hooks/useStorefront.ts +0 -58
- package/src/hooks/useStorefrontHead.ts +0 -25
- package/src/index.ts +0 -202
- package/src/motion.tsx +0 -94
- package/src/order-status.ts +0 -33
- package/src/pages/CatalogPage.tsx +0 -118
- package/src/pages/CheckoutPage.tsx +0 -689
- package/src/pages/HomePage.tsx +0 -16
- package/src/pages/MyPurchasesPage.tsx +0 -311
- package/src/pages/NotFoundPage.tsx +0 -25
- package/src/pages/OrderConfirmationPage.tsx +0 -190
- package/src/pages/PolicyPage.tsx +0 -47
- package/src/pages/ProductDetailPage.tsx +0 -264
- package/src/presets.ts +0 -324
- package/src/product-options.ts +0 -63
- package/src/router.ts +0 -49
- package/src/scaffold.tsx +0 -115
- package/src/sections.ts +0 -116
- package/src/shop.ts +0 -4
- package/src/stores/cart.store.ts +0 -185
- package/src/stores/catalog.store.ts +0 -39
- package/src/stores/delivery.store.ts +0 -152
- package/src/stores/session.store.ts +0 -28
- package/src/stores/toast.store.ts +0 -43
- package/src/testids.ts +0 -136
- package/src/theme.ts +0 -194
- package/src/ui.ts +0 -5
- package/src/workflows/checkout.ts +0 -119
- /package/dist/components/{CustomerAccountShell.d.ts → account/CustomerAccountShell.d.ts} +0 -0
- /package/dist/components/{SignInModal.d.ts → account/SignInModal.d.ts} +0 -0
- /package/dist/components/{CartDrawer.d.ts → cart/CartDrawer.d.ts} +0 -0
- /package/dist/components/{QuantityInput.d.ts → cart/QuantityInput.d.ts} +0 -0
- /package/dist/components/{DeliveryEstimator.d.ts → checkout/DeliveryEstimator.d.ts} +0 -0
- /package/dist/components/{ProductGrid.d.ts → collection/ProductGrid.d.ts} +0 -0
- /package/dist/components/{StorefrontErrorBoundary.d.ts → layout/StorefrontErrorBoundary.d.ts} +0 -0
- /package/dist/components/{StorefrontFooter.d.ts → layout/StorefrontFooter.d.ts} +0 -0
- /package/dist/components/{StorefrontHeader.d.ts → layout/StorefrontHeader.d.ts} +0 -0
- /package/dist/components/{Toaster.d.ts → layout/Toaster.d.ts} +0 -0
- /package/dist/components/{OrderTrackingTimeline.d.ts → order/OrderTrackingTimeline.d.ts} +0 -0
- /package/dist/components/{ProductEnquiryForm.d.ts → product/ProductEnquiryForm.d.ts} +0 -0
- /package/dist/components/{ProductSpecs.d.ts → product/ProductSpecs.d.ts} +0 -0
- /package/dist/components/{RelatedProducts.d.ts → product/RelatedProducts.d.ts} +0 -0
- /package/dist/{order-status.d.ts → data/order-status.d.ts} +0 -0
- /package/dist/{component-selectors.d.ts → extend/component-selectors.d.ts} +0 -0
- /package/dist/{format.d.ts → lib/format.d.ts} +0 -0
- /package/dist/{motion.d.ts → lib/motion.d.ts} +0 -0
- /package/dist/{pages → views}/CatalogPage.d.ts +0 -0
- /package/dist/{pages → views}/CheckoutPage.d.ts +0 -0
- /package/dist/{pages → views}/MyPurchasesPage.d.ts +0 -0
- /package/dist/{pages → views}/NotFoundPage.d.ts +0 -0
- /package/dist/{pages → views}/OrderConfirmationPage.d.ts +0 -0
- /package/dist/{pages → views}/PolicyPage.d.ts +0 -0
- /package/dist/{pages → views}/ProductDetailPage.d.ts +0 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SealItem {
|
|
3
|
+
top?: string;
|
|
4
|
+
value: string;
|
|
5
|
+
bottom?: string;
|
|
6
|
+
tone?: 'primary' | 'accent';
|
|
7
|
+
}
|
|
8
|
+
export declare function SealsBand({ items }: {
|
|
9
|
+
items?: SealItem[];
|
|
10
|
+
}): React.JSX.Element | null;
|
|
11
|
+
export declare const sealsBlockMeta: {
|
|
12
|
+
label: string;
|
|
13
|
+
description: string;
|
|
14
|
+
settings: {
|
|
15
|
+
id: string;
|
|
16
|
+
type: "list";
|
|
17
|
+
label: string;
|
|
18
|
+
required: true;
|
|
19
|
+
help: string;
|
|
20
|
+
of: ({
|
|
21
|
+
id: string;
|
|
22
|
+
type: "text";
|
|
23
|
+
label: string;
|
|
24
|
+
help: string;
|
|
25
|
+
required?: undefined;
|
|
26
|
+
default?: undefined;
|
|
27
|
+
options?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
id: string;
|
|
30
|
+
type: "text";
|
|
31
|
+
label: string;
|
|
32
|
+
help: string;
|
|
33
|
+
required: true;
|
|
34
|
+
default?: undefined;
|
|
35
|
+
options?: undefined;
|
|
36
|
+
} | {
|
|
37
|
+
id: string;
|
|
38
|
+
type: "select";
|
|
39
|
+
label: string;
|
|
40
|
+
default: string;
|
|
41
|
+
options: {
|
|
42
|
+
value: string;
|
|
43
|
+
label: string;
|
|
44
|
+
}[];
|
|
45
|
+
help?: undefined;
|
|
46
|
+
required?: undefined;
|
|
47
|
+
})[];
|
|
48
|
+
}[];
|
|
49
|
+
presets: {
|
|
50
|
+
name: string;
|
|
51
|
+
props: {
|
|
52
|
+
items: {
|
|
53
|
+
top: string;
|
|
54
|
+
value: string;
|
|
55
|
+
bottom: string;
|
|
56
|
+
tone: string;
|
|
57
|
+
}[];
|
|
58
|
+
};
|
|
59
|
+
}[];
|
|
60
|
+
enabledOn: string[];
|
|
61
|
+
};
|
|
62
|
+
export interface StoryQuoteProps {
|
|
63
|
+
eyebrow?: string;
|
|
64
|
+
quote: string;
|
|
65
|
+
attribution?: string;
|
|
66
|
+
image?: string;
|
|
67
|
+
}
|
|
68
|
+
export declare function StoryQuote({ eyebrow, quote, attribution, image }: StoryQuoteProps): React.JSX.Element;
|
|
69
|
+
export declare const storyQuoteBlockMeta: {
|
|
70
|
+
label: string;
|
|
71
|
+
description: string;
|
|
72
|
+
settings: ({
|
|
73
|
+
id: string;
|
|
74
|
+
type: "text";
|
|
75
|
+
label: string;
|
|
76
|
+
help: string;
|
|
77
|
+
required?: undefined;
|
|
78
|
+
} | {
|
|
79
|
+
id: string;
|
|
80
|
+
type: "richtext";
|
|
81
|
+
label: string;
|
|
82
|
+
help: string;
|
|
83
|
+
required: true;
|
|
84
|
+
} | {
|
|
85
|
+
id: string;
|
|
86
|
+
type: "image";
|
|
87
|
+
label: string;
|
|
88
|
+
help: string;
|
|
89
|
+
required?: undefined;
|
|
90
|
+
})[];
|
|
91
|
+
presets: {
|
|
92
|
+
name: string;
|
|
93
|
+
props: {
|
|
94
|
+
eyebrow: string;
|
|
95
|
+
quote: string;
|
|
96
|
+
attribution: string;
|
|
97
|
+
};
|
|
98
|
+
}[];
|
|
99
|
+
enabledOn: string[];
|
|
100
|
+
};
|
|
101
|
+
export interface ImageTile {
|
|
102
|
+
image: string;
|
|
103
|
+
label: string;
|
|
104
|
+
href?: string;
|
|
105
|
+
}
|
|
106
|
+
export interface ImageTilesProps {
|
|
107
|
+
title?: string;
|
|
108
|
+
eyebrow?: string;
|
|
109
|
+
tiles?: ImageTile[];
|
|
110
|
+
columns?: number;
|
|
111
|
+
aspect?: 'portrait' | 'square' | 'wide';
|
|
112
|
+
}
|
|
113
|
+
export declare function ImageTiles({ title, eyebrow, tiles, columns, aspect }: ImageTilesProps): React.JSX.Element | null;
|
|
114
|
+
export declare const imageTilesBlockMeta: {
|
|
115
|
+
label: string;
|
|
116
|
+
description: string;
|
|
117
|
+
settings: ({
|
|
118
|
+
id: string;
|
|
119
|
+
type: "text";
|
|
120
|
+
label: string;
|
|
121
|
+
required?: undefined;
|
|
122
|
+
of?: undefined;
|
|
123
|
+
min?: undefined;
|
|
124
|
+
max?: undefined;
|
|
125
|
+
default?: undefined;
|
|
126
|
+
options?: undefined;
|
|
127
|
+
} | {
|
|
128
|
+
id: string;
|
|
129
|
+
type: "list";
|
|
130
|
+
label: string;
|
|
131
|
+
required: true;
|
|
132
|
+
of: ({
|
|
133
|
+
id: string;
|
|
134
|
+
type: "image";
|
|
135
|
+
label: string;
|
|
136
|
+
required: true;
|
|
137
|
+
help?: undefined;
|
|
138
|
+
} | {
|
|
139
|
+
id: string;
|
|
140
|
+
type: "text";
|
|
141
|
+
label: string;
|
|
142
|
+
required: true;
|
|
143
|
+
help?: undefined;
|
|
144
|
+
} | {
|
|
145
|
+
id: string;
|
|
146
|
+
type: "url";
|
|
147
|
+
label: string;
|
|
148
|
+
help: string;
|
|
149
|
+
required?: undefined;
|
|
150
|
+
})[];
|
|
151
|
+
min?: undefined;
|
|
152
|
+
max?: undefined;
|
|
153
|
+
default?: undefined;
|
|
154
|
+
options?: undefined;
|
|
155
|
+
} | {
|
|
156
|
+
id: string;
|
|
157
|
+
type: "number";
|
|
158
|
+
label: string;
|
|
159
|
+
min: number;
|
|
160
|
+
max: number;
|
|
161
|
+
default: number;
|
|
162
|
+
required?: undefined;
|
|
163
|
+
of?: undefined;
|
|
164
|
+
options?: undefined;
|
|
165
|
+
} | {
|
|
166
|
+
id: string;
|
|
167
|
+
type: "select";
|
|
168
|
+
label: string;
|
|
169
|
+
default: string;
|
|
170
|
+
options: {
|
|
171
|
+
value: string;
|
|
172
|
+
label: string;
|
|
173
|
+
}[];
|
|
174
|
+
required?: undefined;
|
|
175
|
+
of?: undefined;
|
|
176
|
+
min?: undefined;
|
|
177
|
+
max?: undefined;
|
|
178
|
+
})[];
|
|
179
|
+
presets: {
|
|
180
|
+
name: string;
|
|
181
|
+
props: {
|
|
182
|
+
title: string;
|
|
183
|
+
tiles: {
|
|
184
|
+
image: string;
|
|
185
|
+
label: string;
|
|
186
|
+
href: string;
|
|
187
|
+
}[];
|
|
188
|
+
};
|
|
189
|
+
}[];
|
|
190
|
+
enabledOn: string[];
|
|
191
|
+
};
|
|
192
|
+
export interface FaqItem {
|
|
193
|
+
q: string;
|
|
194
|
+
a: string;
|
|
195
|
+
}
|
|
196
|
+
export declare function FaqSection({ title, subtitle, items }: {
|
|
197
|
+
title?: string;
|
|
198
|
+
subtitle?: string;
|
|
199
|
+
items?: FaqItem[];
|
|
200
|
+
}): React.JSX.Element | null;
|
|
201
|
+
export declare const faqBlockMeta: {
|
|
202
|
+
label: string;
|
|
203
|
+
description: string;
|
|
204
|
+
settings: ({
|
|
205
|
+
id: string;
|
|
206
|
+
type: "text";
|
|
207
|
+
label: string;
|
|
208
|
+
default: string;
|
|
209
|
+
required?: undefined;
|
|
210
|
+
of?: undefined;
|
|
211
|
+
} | {
|
|
212
|
+
id: string;
|
|
213
|
+
type: "text";
|
|
214
|
+
label: string;
|
|
215
|
+
default?: undefined;
|
|
216
|
+
required?: undefined;
|
|
217
|
+
of?: undefined;
|
|
218
|
+
} | {
|
|
219
|
+
id: string;
|
|
220
|
+
type: "list";
|
|
221
|
+
label: string;
|
|
222
|
+
required: true;
|
|
223
|
+
of: ({
|
|
224
|
+
id: string;
|
|
225
|
+
type: "text";
|
|
226
|
+
label: string;
|
|
227
|
+
required: true;
|
|
228
|
+
} | {
|
|
229
|
+
id: string;
|
|
230
|
+
type: "richtext";
|
|
231
|
+
label: string;
|
|
232
|
+
required: true;
|
|
233
|
+
})[];
|
|
234
|
+
default?: undefined;
|
|
235
|
+
})[];
|
|
236
|
+
presets: {
|
|
237
|
+
name: string;
|
|
238
|
+
props: {
|
|
239
|
+
title: string;
|
|
240
|
+
items: {
|
|
241
|
+
q: string;
|
|
242
|
+
a: string;
|
|
243
|
+
}[];
|
|
244
|
+
};
|
|
245
|
+
}[];
|
|
246
|
+
enabledOn: string[];
|
|
247
|
+
};
|
|
248
|
+
//# sourceMappingURL=EditorialSections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorialSections.d.ts","sourceRoot":"","sources":["../../../src/components/marketing/EditorialSections.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAyBvC,MAAM,WAAW,QAAQ;IACvB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;CAC5B;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAU,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAA;CAAE,4BAuB/D;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCkB,CAAA;AAI7C,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,eAAe,qBA4BjF;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBa,CAAA;AAI7C,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,SAAS,EAAE,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAA;CACxC;AAQD,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAU,EAAE,OAAW,EAAE,MAAmB,EAAE,EAAE,eAAe,4BA4C3G;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8Ca,CAAA;AAI7C,MAAM,WAAW,OAAO;IACtB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAU,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;CAAE,4BAkCnH;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCoB,CAAA"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BlockNode } from '@fayz-ai/core';
|
|
3
|
+
export declare function EntityListBlock({ entity, title, subtitle, fields, limit, node, }: {
|
|
4
|
+
/** The defineEntity key this block lists. */
|
|
5
|
+
entity: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
/** Fields to show per record; empty falls back to the declaration's displayFields. */
|
|
9
|
+
fields?: Array<{
|
|
10
|
+
field: string;
|
|
11
|
+
}>;
|
|
12
|
+
limit?: number;
|
|
13
|
+
node?: BlockNode;
|
|
14
|
+
}): React.JSX.Element | null;
|
|
15
|
+
export declare const entityListBlockMeta: {
|
|
16
|
+
label: string;
|
|
17
|
+
description: string;
|
|
18
|
+
settings: ({
|
|
19
|
+
id: string;
|
|
20
|
+
type: "entity";
|
|
21
|
+
label: string;
|
|
22
|
+
help: string;
|
|
23
|
+
required: true;
|
|
24
|
+
of?: undefined;
|
|
25
|
+
min?: undefined;
|
|
26
|
+
max?: undefined;
|
|
27
|
+
default?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
id: string;
|
|
30
|
+
type: "text";
|
|
31
|
+
label: string;
|
|
32
|
+
help?: undefined;
|
|
33
|
+
required?: undefined;
|
|
34
|
+
of?: undefined;
|
|
35
|
+
min?: undefined;
|
|
36
|
+
max?: undefined;
|
|
37
|
+
default?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
id: string;
|
|
40
|
+
type: "text";
|
|
41
|
+
label: string;
|
|
42
|
+
help: string;
|
|
43
|
+
required?: undefined;
|
|
44
|
+
of?: undefined;
|
|
45
|
+
min?: undefined;
|
|
46
|
+
max?: undefined;
|
|
47
|
+
default?: undefined;
|
|
48
|
+
} | {
|
|
49
|
+
id: string;
|
|
50
|
+
type: "list";
|
|
51
|
+
label: string;
|
|
52
|
+
help: string;
|
|
53
|
+
of: {
|
|
54
|
+
id: string;
|
|
55
|
+
type: "text";
|
|
56
|
+
label: string;
|
|
57
|
+
required: true;
|
|
58
|
+
}[];
|
|
59
|
+
required?: undefined;
|
|
60
|
+
min?: undefined;
|
|
61
|
+
max?: undefined;
|
|
62
|
+
default?: undefined;
|
|
63
|
+
} | {
|
|
64
|
+
id: string;
|
|
65
|
+
type: "number";
|
|
66
|
+
label: string;
|
|
67
|
+
help: string;
|
|
68
|
+
min: number;
|
|
69
|
+
max: number;
|
|
70
|
+
default: number;
|
|
71
|
+
required?: undefined;
|
|
72
|
+
of?: undefined;
|
|
73
|
+
})[];
|
|
74
|
+
presets: {
|
|
75
|
+
name: string;
|
|
76
|
+
props: {
|
|
77
|
+
entity: string;
|
|
78
|
+
title: string;
|
|
79
|
+
limit: number;
|
|
80
|
+
};
|
|
81
|
+
}[];
|
|
82
|
+
enabledOn: string[];
|
|
83
|
+
data: {
|
|
84
|
+
records: {
|
|
85
|
+
loader: string;
|
|
86
|
+
params: {
|
|
87
|
+
entity: {
|
|
88
|
+
$prop: string;
|
|
89
|
+
};
|
|
90
|
+
limit: {
|
|
91
|
+
$prop: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=EntityList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityList.d.ts","sourceRoot":"","sources":["../../../src/components/marketing/EntityList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,SAAS,EAAgD,MAAM,eAAe,CAAA;AAmF5F,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,KAAK,EACL,QAAQ,EACR,MAAM,EACN,KAAU,EACV,IAAI,GACL,EAAE;IACD,6CAA6C;IAC7C,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sFAAsF;IACtF,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACjC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB,4BAuCA;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDa,CAAA"}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CreateProductEnquiryInput } from '@fayz-ai/shop/types';
|
|
3
|
+
export type FormBlockFieldType = 'text' | 'email' | 'phone' | 'textarea' | 'select';
|
|
4
|
+
export interface FormBlockField {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
type?: FormBlockFieldType;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
/** `select` only. */
|
|
11
|
+
options?: readonly {
|
|
12
|
+
value: string;
|
|
13
|
+
label: string;
|
|
14
|
+
}[];
|
|
15
|
+
}
|
|
16
|
+
export interface FormBlockProps {
|
|
17
|
+
eyebrow?: string;
|
|
18
|
+
title?: string;
|
|
19
|
+
subtitle?: string;
|
|
20
|
+
/** Enquiry subject — how this form's submissions are recognized in the inbox. */
|
|
21
|
+
subject?: string;
|
|
22
|
+
fields?: readonly FormBlockField[];
|
|
23
|
+
submitLabel?: string;
|
|
24
|
+
successMessage?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Fold submitted values into the enquiry contract.
|
|
28
|
+
*
|
|
29
|
+
* Reserved semantics (documented in the block's settings help):
|
|
30
|
+
* · the first `email` field → customerEmail
|
|
31
|
+
* · the first `phone` field → customerPhone
|
|
32
|
+
* · a field with id 'name', else the first plain text field → customerName
|
|
33
|
+
* · every remaining field → a "Label: value" line of the message
|
|
34
|
+
*
|
|
35
|
+
* Pure and exported so the mapping — the part that silently eats data when it
|
|
36
|
+
* is wrong — is unit-testable without a DOM.
|
|
37
|
+
*/
|
|
38
|
+
export declare function buildEnquiryFromForm(fields: readonly FormBlockField[], values: Record<string, string>, subject: string, sourceUrl?: string): CreateProductEnquiryInput;
|
|
39
|
+
export declare function FormBlock({ eyebrow, title, subtitle, subject, fields, submitLabel, successMessage, }: FormBlockProps): React.JSX.Element | null;
|
|
40
|
+
export declare const formBlockMeta: {
|
|
41
|
+
label: string;
|
|
42
|
+
description: string;
|
|
43
|
+
settings: ({
|
|
44
|
+
id: string;
|
|
45
|
+
type: "text";
|
|
46
|
+
label: string;
|
|
47
|
+
help: string;
|
|
48
|
+
default?: undefined;
|
|
49
|
+
required?: undefined;
|
|
50
|
+
of?: undefined;
|
|
51
|
+
} | {
|
|
52
|
+
id: string;
|
|
53
|
+
type: "text";
|
|
54
|
+
label: string;
|
|
55
|
+
help?: undefined;
|
|
56
|
+
default?: undefined;
|
|
57
|
+
required?: undefined;
|
|
58
|
+
of?: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
id: string;
|
|
61
|
+
type: "text";
|
|
62
|
+
label: string;
|
|
63
|
+
help: string;
|
|
64
|
+
default: string;
|
|
65
|
+
required?: undefined;
|
|
66
|
+
of?: undefined;
|
|
67
|
+
} | {
|
|
68
|
+
id: string;
|
|
69
|
+
type: "list";
|
|
70
|
+
label: string;
|
|
71
|
+
required: true;
|
|
72
|
+
help: string;
|
|
73
|
+
of: ({
|
|
74
|
+
id: string;
|
|
75
|
+
type: "text";
|
|
76
|
+
label: string;
|
|
77
|
+
help: string;
|
|
78
|
+
required: true;
|
|
79
|
+
default?: undefined;
|
|
80
|
+
options?: undefined;
|
|
81
|
+
of?: undefined;
|
|
82
|
+
} | {
|
|
83
|
+
id: string;
|
|
84
|
+
type: "text";
|
|
85
|
+
label: string;
|
|
86
|
+
required: true;
|
|
87
|
+
help?: undefined;
|
|
88
|
+
default?: undefined;
|
|
89
|
+
options?: undefined;
|
|
90
|
+
of?: undefined;
|
|
91
|
+
} | {
|
|
92
|
+
id: string;
|
|
93
|
+
type: "select";
|
|
94
|
+
label: string;
|
|
95
|
+
default: string;
|
|
96
|
+
options: {
|
|
97
|
+
value: string;
|
|
98
|
+
label: string;
|
|
99
|
+
}[];
|
|
100
|
+
help?: undefined;
|
|
101
|
+
required?: undefined;
|
|
102
|
+
of?: undefined;
|
|
103
|
+
} | {
|
|
104
|
+
id: string;
|
|
105
|
+
type: "boolean";
|
|
106
|
+
label: string;
|
|
107
|
+
default: boolean;
|
|
108
|
+
help?: undefined;
|
|
109
|
+
required?: undefined;
|
|
110
|
+
options?: undefined;
|
|
111
|
+
of?: undefined;
|
|
112
|
+
} | {
|
|
113
|
+
id: string;
|
|
114
|
+
type: "text";
|
|
115
|
+
label: string;
|
|
116
|
+
help?: undefined;
|
|
117
|
+
required?: undefined;
|
|
118
|
+
default?: undefined;
|
|
119
|
+
options?: undefined;
|
|
120
|
+
of?: undefined;
|
|
121
|
+
} | {
|
|
122
|
+
id: string;
|
|
123
|
+
type: "list";
|
|
124
|
+
label: string;
|
|
125
|
+
help: string;
|
|
126
|
+
of: {
|
|
127
|
+
id: string;
|
|
128
|
+
type: "text";
|
|
129
|
+
label: string;
|
|
130
|
+
required: true;
|
|
131
|
+
}[];
|
|
132
|
+
required?: undefined;
|
|
133
|
+
default?: undefined;
|
|
134
|
+
options?: undefined;
|
|
135
|
+
})[];
|
|
136
|
+
default?: undefined;
|
|
137
|
+
} | {
|
|
138
|
+
id: string;
|
|
139
|
+
type: "text";
|
|
140
|
+
label: string;
|
|
141
|
+
default: string;
|
|
142
|
+
help?: undefined;
|
|
143
|
+
required?: undefined;
|
|
144
|
+
of?: undefined;
|
|
145
|
+
})[];
|
|
146
|
+
presets: {
|
|
147
|
+
name: string;
|
|
148
|
+
props: {
|
|
149
|
+
title: string;
|
|
150
|
+
subtitle: string;
|
|
151
|
+
subject: string;
|
|
152
|
+
fields: ({
|
|
153
|
+
id: string;
|
|
154
|
+
label: string;
|
|
155
|
+
type: string;
|
|
156
|
+
required: boolean;
|
|
157
|
+
} | {
|
|
158
|
+
id: string;
|
|
159
|
+
label: string;
|
|
160
|
+
type: string;
|
|
161
|
+
required?: undefined;
|
|
162
|
+
})[];
|
|
163
|
+
};
|
|
164
|
+
}[];
|
|
165
|
+
enabledOn: string[];
|
|
166
|
+
};
|
|
167
|
+
//# sourceMappingURL=FormBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormBlock.d.ts","sourceRoot":"","sources":["../../../src/components/marketing/FormBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA;AAgBpE,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAA;AAEnF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qBAAqB;IACrB,OAAO,CAAC,EAAE,SAAS;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CACtD;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iFAAiF;IACjF,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;IAClC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,SAAS,cAAc,EAAE,EACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,MAAM,GACjB,yBAAyB,CAwB3B;AAkDD,wBAAgB,SAAS,CAAC,EACxB,OAAO,EACP,KAAK,EACL,QAAQ,EACR,OAAmB,EACnB,MAAW,EACX,WAAsB,EACtB,cAAoD,GACrD,EAAE,cAAc,4BAwEhB;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8EmB,CAAA"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HeroSlide } from '../../blocks/sections';
|
|
3
|
+
import type { HeroVariant } from '../../lib/theme';
|
|
4
|
+
export declare function HeroSection({ variant, slides, height, }: {
|
|
5
|
+
variant: HeroVariant;
|
|
6
|
+
slides: HeroSlide[];
|
|
7
|
+
height?: 'tall' | 'medium';
|
|
8
|
+
}): React.JSX.Element | null;
|
|
9
|
+
export declare const heroBlockMeta: {
|
|
10
|
+
label: string;
|
|
11
|
+
description: string;
|
|
12
|
+
settings: ({
|
|
13
|
+
id: string;
|
|
14
|
+
type: "select";
|
|
15
|
+
label: string;
|
|
16
|
+
help: string;
|
|
17
|
+
default: string;
|
|
18
|
+
options: {
|
|
19
|
+
value: string;
|
|
20
|
+
label: string;
|
|
21
|
+
}[];
|
|
22
|
+
required?: undefined;
|
|
23
|
+
of?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
id: string;
|
|
26
|
+
type: "list";
|
|
27
|
+
label: string;
|
|
28
|
+
help: string;
|
|
29
|
+
required: true;
|
|
30
|
+
of: ({
|
|
31
|
+
id: string;
|
|
32
|
+
type: "text";
|
|
33
|
+
label: string;
|
|
34
|
+
required: true;
|
|
35
|
+
help?: undefined;
|
|
36
|
+
min?: undefined;
|
|
37
|
+
max?: undefined;
|
|
38
|
+
default?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
id: string;
|
|
41
|
+
type: "text";
|
|
42
|
+
label: string;
|
|
43
|
+
required?: undefined;
|
|
44
|
+
help?: undefined;
|
|
45
|
+
min?: undefined;
|
|
46
|
+
max?: undefined;
|
|
47
|
+
default?: undefined;
|
|
48
|
+
} | {
|
|
49
|
+
id: string;
|
|
50
|
+
type: "text";
|
|
51
|
+
label: string;
|
|
52
|
+
help: string;
|
|
53
|
+
required?: undefined;
|
|
54
|
+
min?: undefined;
|
|
55
|
+
max?: undefined;
|
|
56
|
+
default?: undefined;
|
|
57
|
+
} | {
|
|
58
|
+
id: string;
|
|
59
|
+
type: "url";
|
|
60
|
+
label: string;
|
|
61
|
+
help: string;
|
|
62
|
+
required?: undefined;
|
|
63
|
+
min?: undefined;
|
|
64
|
+
max?: undefined;
|
|
65
|
+
default?: undefined;
|
|
66
|
+
} | {
|
|
67
|
+
id: string;
|
|
68
|
+
type: "image";
|
|
69
|
+
label: string;
|
|
70
|
+
help: string;
|
|
71
|
+
required?: undefined;
|
|
72
|
+
min?: undefined;
|
|
73
|
+
max?: undefined;
|
|
74
|
+
default?: undefined;
|
|
75
|
+
} | {
|
|
76
|
+
id: string;
|
|
77
|
+
type: "number";
|
|
78
|
+
label: string;
|
|
79
|
+
help: string;
|
|
80
|
+
min: number;
|
|
81
|
+
max: number;
|
|
82
|
+
default: number;
|
|
83
|
+
required?: undefined;
|
|
84
|
+
} | {
|
|
85
|
+
id: string;
|
|
86
|
+
type: "boolean";
|
|
87
|
+
label: string;
|
|
88
|
+
help: string;
|
|
89
|
+
default: boolean;
|
|
90
|
+
required?: undefined;
|
|
91
|
+
min?: undefined;
|
|
92
|
+
max?: undefined;
|
|
93
|
+
})[];
|
|
94
|
+
default?: undefined;
|
|
95
|
+
options?: undefined;
|
|
96
|
+
})[];
|
|
97
|
+
presets: ({
|
|
98
|
+
name: string;
|
|
99
|
+
props: {
|
|
100
|
+
variant: string;
|
|
101
|
+
height: string;
|
|
102
|
+
slides: {
|
|
103
|
+
title: string;
|
|
104
|
+
subtitle: string;
|
|
105
|
+
cta: string;
|
|
106
|
+
href: string;
|
|
107
|
+
hue: number;
|
|
108
|
+
}[];
|
|
109
|
+
};
|
|
110
|
+
} | {
|
|
111
|
+
name: string;
|
|
112
|
+
props: {
|
|
113
|
+
variant: string;
|
|
114
|
+
slides: {
|
|
115
|
+
title: string;
|
|
116
|
+
subtitle: string;
|
|
117
|
+
href: string;
|
|
118
|
+
hue: number;
|
|
119
|
+
}[];
|
|
120
|
+
height?: undefined;
|
|
121
|
+
};
|
|
122
|
+
})[];
|
|
123
|
+
enabledOn: string[];
|
|
124
|
+
};
|
|
125
|
+
//# sourceMappingURL=HeroSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeroSection.d.ts","sourceRoot":"","sources":["../../../src/components/marketing/HeroSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAG1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AA+ClD,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EAIP,MAAW,EACX,MAAe,GAChB,EAAE;IACD,OAAO,EAAE,WAAW,CAAA;IACpB,MAAM,EAAE,SAAS,EAAE,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAC3B,4BAsIA;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkGmB,CAAA"}
|