efficient-storefront-blocks 0.97.0 → 0.99.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/CHANGELOG.md +61 -0
- package/dist/chunks/EditorPreviewCheckout-J76THKIJ.js +4 -0
- package/dist/chunks/{SiteEditorProvider-VZUU5OPZ.js → SiteEditorProvider-YAIB64UV.js} +1 -1
- package/dist/chunks/chunk-B2IYTOE3.js +1 -0
- package/dist/chunks/chunk-EIBYUCDE.js +1 -0
- package/dist/chunks/chunk-GOVYQQA4.js +1 -0
- package/dist/chunks/chunk-KRMWJLBM.js +412 -0
- package/dist/chunks/{fitment-data-MCGKHSA4.js → fitment-data-OUHMES66.js} +1 -1
- package/dist/consent.js +1 -1
- package/dist/contract.js +11 -3
- package/dist/editor/components/EditorPreviewCheckout.js +1 -1
- package/dist/editor/components/GalleryShowcaseSource.js +1 -1
- package/dist/editor/components/HeaderSettingsPanel.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/Collections/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/SearchBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/SpecTable/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/WheelDiagram/fields.d.ts +2 -0
- package/dist/editor/lib/document/blocks/commerce/WheelDiagram/fields.js +1 -0
- package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
- package/dist/editor/lib/document/blocks/commerce/index.js +1 -1
- package/dist/editor/lib/document/blocks/service/BookingBox/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/ContactCards/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/SiteHeader/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/SubmitBox/fields.js +1 -1
- package/dist/editor/lib/document/box-header-for-site.d.ts +5 -0
- package/dist/editor/lib/document/box-header-for-site.js +1 -1
- package/dist/editor/lib/document/box-header.d.ts +2 -0
- package/dist/editor/lib/document/box-header.js +1 -1
- package/dist/editor/lib/document/config.d.ts +1 -0
- package/dist/editor/lib/document/config.js +1 -1
- package/dist/editor/lib/document/popup-look-fields.d.ts +1 -0
- package/dist/editor/lib/document/popup-look-fields.js +1 -1
- package/dist/editor/lib/document/text-kind-style-rows.d.ts +5 -0
- package/dist/editor/lib/document/text-kind-style-rows.js +1 -0
- package/dist/editor/lib/efficient-block-sources.js +1 -1
- package/dist/editor/lib/header-settings-source.js +1 -1
- package/dist/editor/lib/storefront-editor-words.d.ts +6 -3
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/editor.css +1 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +212 -44
- package/dist/links.js +1 -1
- package/dist/render/app/globals.css +136 -12
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/BundleCard.js +1 -1
- package/dist/render/components/CatalogFilterBarSection.js +1 -1
- package/dist/render/components/ChatWidget.js +1 -1
- package/dist/render/components/CollectionCard.d.ts +3 -0
- package/dist/render/components/CollectionCard.js +1 -1
- package/dist/render/components/Collections.d.ts +2 -1
- package/dist/render/components/Collections.js +1 -1
- package/dist/render/components/CompatibleTyres.js +1 -1
- package/dist/render/components/CountrySelect.js +1 -1
- package/dist/render/components/CurrencyContext.d.ts +3 -0
- package/dist/render/components/CurrencyContext.js +1 -1
- package/dist/render/components/FooterGroup.js +1 -1
- package/dist/render/components/FooterLogo.js +1 -1
- package/dist/render/components/FooterMenu.d.ts +5 -3
- package/dist/render/components/FooterMenu.js +1 -1
- package/dist/render/components/FooterPayment.js +1 -1
- package/dist/render/components/FooterSection.js +1 -1
- package/dist/render/components/FooterSocial.js +1 -1
- package/dist/render/components/FooterText.js +1 -1
- package/dist/render/components/FormBlock.d.ts +4 -1
- package/dist/render/components/FormBlock.js +1 -1
- package/dist/render/components/Header.js +1 -1
- package/dist/render/components/HeaderToolBlocks.d.ts +4 -2
- package/dist/render/components/HeaderToolBlocks.js +1 -1
- package/dist/render/components/HeaderTools.d.ts +7 -2
- package/dist/render/components/HeaderTools.js +1 -1
- package/dist/render/components/PhoneSheet.d.ts +16 -0
- package/dist/render/components/PhoneSheet.js +1 -0
- package/dist/render/components/PreOrderPanel.js +1 -1
- package/dist/render/components/ProductGridSection.js +1 -1
- package/dist/render/components/ProductRef.js +1 -1
- package/dist/render/components/SectionGroupBody.d.ts +2 -1
- package/dist/render/components/SectionGroupBody.js +1 -1
- package/dist/render/components/SpecTable.d.ts +2 -1
- package/dist/render/components/SpecTable.js +1 -1
- package/dist/render/components/Subscribe.d.ts +1 -0
- package/dist/render/components/Subscribe.js +1 -1
- package/dist/render/components/WheelCardFrame.js +1 -1
- package/dist/render/components/WheelDiagram.d.ts +16 -0
- package/dist/render/components/WheelDiagram.js +1 -0
- package/dist/render/components/card-pieces/CardName.js +1 -1
- package/dist/render/components/card-pieces/CardPrice.js +1 -1
- package/dist/render/components/card-pieces/CardSurfaceFrame.d.ts +1 -1
- package/dist/render/components/card-pieces/ProductCardState.d.ts +1 -0
- package/dist/render/components/card-pieces/ProductCardState.js +1 -1
- package/dist/render/components/catalog/CatalogFilterBar.d.ts +5 -1
- package/dist/render/components/catalog/CatalogFilterBar.js +1 -1
- package/dist/render/components/catalog/CatalogFilterContext.d.ts +2 -0
- package/dist/render/components/catalog/CatalogFilterContext.js +1 -1
- package/dist/render/components/catalog/FilterPill.js +1 -1
- package/dist/render/components/catalog/PriceRange.d.ts +6 -1
- package/dist/render/components/catalog/PriceRange.js +1 -1
- package/dist/render/components/catalog/ShopperFilters.js +1 -1
- package/dist/render/components/checkout/CheckoutPageClient.js +1 -1
- package/dist/render/components/checkout/checkout-parts.js +1 -1
- package/dist/render/components/checkout/checkout-state.d.ts +5 -0
- package/dist/render/components/checkout/checkout-state.js +3 -3
- package/dist/render/components/fitment/PickerField.js +1 -1
- package/dist/render/components/formSubmission.d.ts +4 -2
- package/dist/render/components/formSubmission.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicSpecTable.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicWheelDiagram.d.ts +6 -0
- package/dist/render/components/pdp-dynamic/DynamicWheelDiagram.js +1 -0
- package/dist/render/components/pdp-dynamic/KindGate.d.ts +2 -1
- package/dist/render/components/pdp-dynamic/KindGate.js +1 -1
- package/dist/render/components/submit/SubmitRegions.js +1 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
- package/dist/render/components/wheels-plp/PlpActiveChips.d.ts +2 -1
- package/dist/render/components/wheels-plp/PlpActiveChips.js +1 -1
- package/dist/render/components/wheels-plp/PlpSidebar.d.ts +15 -7
- package/dist/render/components/wheels-plp/PlpSidebar.js +1 -1
- package/dist/render/components/wheels-plp/useVehicleCatalog.d.ts +6 -1
- package/dist/render/components/wheels-plp/useVehicleCatalog.js +1 -1
- package/dist/render/lib/api/index.d.ts +4 -1
- package/dist/render/lib/api/index.js +1 -1
- package/dist/render/lib/booking/text-kinds.js +1 -1
- package/dist/render/lib/checkout/pay-first.d.ts +1 -0
- package/dist/render/lib/checkout/pay-first.js +1 -1
- package/dist/render/lib/consent/rules.js +1 -1
- package/dist/render/lib/content/article-page-seed.js +1 -1
- package/dist/render/lib/content/collection-card-look.d.ts +13 -0
- package/dist/render/lib/content/collection-card-look.js +1 -0
- package/dist/render/lib/content/menu-row.d.ts +16 -0
- package/dist/render/lib/content/menu-row.js +1 -1
- package/dist/render/lib/content/text-kind-vars.d.ts +4 -0
- package/dist/render/lib/content/text-kind-vars.js +1 -0
- package/dist/render/lib/countries.js +1 -1
- package/dist/render/lib/document/blocks/commerce/Collections/meta.d.ts +4 -0
- package/dist/render/lib/document/blocks/commerce/Collections/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/Collections/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/SearchBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/WheelDiagram/meta.d.ts +2 -0
- package/dist/render/lib/document/blocks/commerce/WheelDiagram/meta.js +1 -0
- package/dist/render/lib/document/blocks/commerce/WheelDiagram/render.d.ts +2 -0
- package/dist/render/lib/document/blocks/commerce/WheelDiagram/render.js +1 -0
- package/dist/render/lib/document/blocks/commerce/metas.d.ts +1 -0
- package/dist/render/lib/document/blocks/commerce/metas.js +1 -1
- package/dist/render/lib/document/blocks/commerce/renders.d.ts +1 -0
- package/dist/render/lib/document/blocks/commerce/renders.js +1 -1
- package/dist/render/lib/document/blocks/service/SiteHeader/render.js +1 -1
- package/dist/render/lib/document/card-templates.d.ts +2 -0
- package/dist/render/lib/document/card-templates.js +1 -1
- package/dist/render/lib/document/current-record.js +1 -1
- package/dist/render/lib/document/footer-page-blocks.js +1 -1
- package/dist/render/lib/document/lazy-draws.js +1 -1
- package/dist/render/lib/document/render-config.d.ts +4 -0
- package/dist/render/lib/document/render-config.js +1 -1
- package/dist/render/lib/document/section-to-box-rows-collections.d.ts +1 -0
- package/dist/render/lib/document/section-to-box-rows-collections.js +1 -0
- package/dist/render/lib/document/section-to-box-rows-service.js +1 -1
- package/dist/render/lib/document/section-to-box-rows-spec.js +1 -1
- package/dist/render/lib/document/template-product-kind.d.ts +1 -0
- package/dist/render/lib/document/template-product-kind.js +1 -1
- package/dist/render/lib/next-fonts.js +1 -1
- package/dist/render/lib/popup/text-kind-style.js +1 -1
- package/dist/render/lib/sections/gallery-toolbar.js +1 -1
- package/dist/render/lib/storefront-page-groups.js +1 -1
- package/dist/render/lib/submit/text-kinds.js +1 -1
- package/dist/render/lib/wheels/catalog-filters-to-listing.d.ts +1 -1
- package/dist/render/lib/wheels/catalog-filters-to-listing.js +1 -1
- package/dist/render/lib/wheels/fitments.js +1 -1
- package/dist/render/lib/wheels/plp-filters.d.ts +5 -0
- package/dist/render/lib/wheels/plp-filters.js +1 -1
- package/dist/render/lib/wheels/price-display.d.ts +5 -1
- package/dist/render/lib/wheels/price-display.js +1 -1
- package/dist/render/lib/wheels/wheel-sheet.d.ts +3 -0
- package/dist/render/lib/wheels/wheel-sheet.js +1 -0
- package/dist/render/lib/wheels/wheel-specs.js +1 -1
- package/dist/words.d.ts +13 -3
- package/dist/words.js +4 -4
- package/package.json +5 -4
- package/dist/chunks/EditorPreviewCheckout-O7F36ZXB.js +0 -4
- package/dist/chunks/chunk-AOZEO73W.js +0 -401
- package/dist/chunks/chunk-MXWQOFM6.js +0 -1
- package/dist/chunks/chunk-NYEB6V2R.js +0 -1
- package/dist/chunks/chunk-SQ62RGWV.js +0 -1
- /package/dist/chunks/{chunk-AOZEO73W.js.LEGAL.txt → chunk-KRMWJLBM.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-UFEEFZ5M.js → chunk-QP2F42DV.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={fields:{}};export{e as WheelDiagramFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const commerceBlocks: Record<"FilterBlock" | "FilterChipsBlock" | "ProductGrid" | "AlloyWheelsListing" | "CatalogFilterBar" | "StockFitment" | "ProductEyebrow" | "ProductName" | "Gallery" | "GalleryB" | "Header" | "ProductPrice" | "ProductHero" | "ProductPicture" | "ProductSpecs" | "ProductBuy" | "ProductColour" | "ProductSize" | "SpecTable" | "DetailRows" | "RelatedProducts" | "BundleOffer" | "SearchBlock" | "CountrySwitchBlock" | "ThemeSwitchBlock" | "AccountBlock" | "CartBlock" | "
|
|
1
|
+
export declare const commerceBlocks: Record<"FilterBlock" | "FilterChipsBlock" | "ProductGrid" | "AlloyWheelsListing" | "CatalogFilterBar" | "StockFitment" | "ProductEyebrow" | "ProductName" | "Gallery" | "GalleryB" | "Header" | "ProductPrice" | "ProductHero" | "ProductPicture" | "ProductSpecs" | "ProductBuy" | "ProductColour" | "ProductSize" | "Collections" | "SpecTable" | "DetailRows" | "RelatedProducts" | "BundleOffer" | "SearchBlock" | "CountrySwitchBlock" | "ThemeSwitchBlock" | "AccountBlock" | "CartBlock" | "CollectionCard" | "ProductRef" | "GalleryItem" | "EuTyreLabelBlock" | "WheelDiagram" | "CheckoutCTA" | "CompatibleTyres" | "DeliveryOptions" | "FitmentFinder" | "FitmentTable" | "ProductBuyButton" | "TyreFitment" | "TyreSizes" | "EuTyreLabel" | "ProductGallery" | "FitmentPicker", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{assembleBlocks as
|
|
1
|
+
import{assembleBlocks as r}from"efficient-web-builder/format/lib/document/blocks/block-types";import{AccountBlockFields as o}from"./AccountBlock/fields.js";import{AlloyWheelsListingFields as e}from"./AlloyWheelsListing/fields.js";import{BundleOfferFields as i}from"./BundleOffer/fields.js";import{CartBlockFields as t}from"./CartBlock/fields.js";import{CatalogFilterBarFields as l}from"./CatalogFilterBar/fields.js";import{CheckoutCTAFields as m}from"./CheckoutCTA/fields.js";import{CollectionCardFields as d}from"./CollectionCard/fields.js";import{CollectionsFields as c}from"./Collections/fields.js";import{CompatibleTyresFields as s}from"./CompatibleTyres/fields.js";import{CountrySwitchBlockFields as F}from"./CountrySwitchBlock/fields.js";import{DeliveryOptionsFields as p}from"./DeliveryOptions/fields.js";import{DetailRowsFields as f}from"./DetailRows/fields.js";import{EuTyreLabelFields as u}from"./EuTyreLabel/fields.js";import{EuTyreLabelBlockFields as a}from"./EuTyreLabelBlock/fields.js";import{WheelDiagramFields as P}from"./WheelDiagram/fields.js";import{FitmentFinderFields as n}from"./FitmentFinder/fields.js";import{FitmentPickerFields as y}from"./FitmentPicker/fields.js";import{FitmentTableFields as B}from"./FitmentTable/fields.js";import{GalleryFields as C}from"./Gallery/fields.js";import{GalleryBFields as k}from"./GalleryB/fields.js";import{GalleryItemFields as S}from"./GalleryItem/fields.js";import{HeaderFields as T}from"./Header/fields.js";import{ProductGalleryFields as h}from"./ProductGallery/fields.js";import{ProductGridFields as b}from"./ProductGrid/fields.js";import{ProductHeroFields as E}from"./ProductHero/fields.js";import{ProductRefFields as G}from"./ProductRef/fields.js";import{RelatedProductsFields as R}from"./RelatedProducts/fields.js";import{SearchBlockFields as w}from"./SearchBlock/fields.js";import{SpecTableFields as D}from"./SpecTable/fields.js";import{ThemeSwitchBlockFields as L}from"./ThemeSwitchBlock/fields.js";import{TyreFitmentFields as g}from"./TyreFitment/fields.js";import{TyreSizesFields as A}from"./TyreSizes/fields.js";import{ProductSizeFields as O}from"./ProductSize/fields.js";import{ProductColourFields as z}from"./ProductColour/fields.js";import{ProductBuyButtonFields as H}from"./ProductBuyButton/fields.js";import{ProductPriceFields as M}from"./ProductPrice/fields.js";import{FilterBlockFields as W}from"./FilterBlock/fields.js";import{FilterChipsBlockFields as I}from"./FilterChipsBlock/fields.js";import{StockFitmentFields as N}from"./StockFitment/fields.js";import{ProductPictureFields as v}from"./ProductPicture/fields.js";import{ProductSpecsFields as _}from"./ProductSpecs/fields.js";import{ProductBuyFields as x}from"./ProductBuy/fields.js";import{ProductEyebrowFields as j}from"./ProductEyebrow/fields.js";import{ProductNameFields as q}from"./ProductName/fields.js";import{COMMERCE_RENDERS as J}from"../../../../../render/lib/document/blocks/commerce/renders.js";const K={AccountBlock:o,AlloyWheelsListing:e,BundleOffer:i,CartBlock:t,CatalogFilterBar:l,CheckoutCTA:m,CollectionCard:d,Collections:c,CompatibleTyres:s,CountrySwitchBlock:F,DeliveryOptions:p,DetailRows:f,EuTyreLabel:u,EuTyreLabelBlock:a,WheelDiagram:P,FitmentFinder:n,FitmentTable:B,Gallery:C,GalleryB:k,GalleryItem:S,Header:T,ProductGallery:h,ProductGrid:b,ProductHero:E,ProductRef:G,RelatedProducts:R,SearchBlock:w,SpecTable:D,ThemeSwitchBlock:L,TyreFitment:g,TyreSizes:A,ProductSize:O,ProductColour:z,ProductPrice:M,ProductBuyButton:H,FilterBlock:W,FilterChipsBlock:I,FitmentPicker:y,StockFitment:N,ProductPicture:v,ProductSpecs:_,ProductBuy:x,ProductEyebrow:j,ProductName:q},Nr=r(J,K);export{Nr as commerceBlocks};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BOOKING_TEXT_KINDS as r,BOOKING_KIND_PROP as a,BOOKING_TEXT_KIND_LABELS as
|
|
1
|
+
import{textKindStyleRows as f}from"../../../text-kind-style-rows.js";import{BOOKING_TEXT_KINDS as r,BOOKING_KIND_PROP as a,BOOKING_TEXT_KIND_LABELS as g}from"../../../../../../render/lib/booking/text-kinds.js";import{plainText as l,plainTextarea as t}from"efficient-web-builder/editor/lib/document/controls";import{group as u}from"efficient-easel/screen/lib/document/box-fields";import{withRowRules as m}from"efficient-web-builder/render/lib/document/show-when";import{BookingBoxMeta as c}from"../../../../../../render/lib/document/blocks/service/BookingBox/meta.js";const b={eyebrow:"head",heading:"head",intro:"head",buttonLabel:"details",successMessage:"confirm",serviceTemplate:"booking",timeTemplate:"booking"},p={any:[]};function d(n){const o=r.map(e=>a[e]),i=[];for(const e of Object.keys(n)){if(e.startsWith("_")||o.includes(e))continue;const s=b[e];i.push([[e],s?{field:"region",is:s}:p])}return i}const h={fields:{...m(c.fields??{},d(c.fields??{})),...f(r,a,g,{unsetLabel:"Section's own"}),_gContent:u("Content"),eyebrow:l("Eyebrow"),heading:t("Heading"),intro:t("Introduction"),buttonLabel:l("Submit button"),successMessage:t("Confirmation message")},resolveFields:(n,{fields:o})=>m(o,d(o))};export{h as BookingBoxFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as m}from"react/jsx-runtime";import{PhoneIcon as n}from"efficient-easel/icons";import{copyText as a,textarea as t}from"efficient-web-builder/editor/lib/document/controls";import{select as s}from"efficient-web-builder/editor/lib/document/box-fields";import{CONTACT_KIND_FALLBACK as e,CONTACT_KIND_OPTIONS as i}from"../../../../../../render/lib/document/blocks/service/ContactCards/meta.js";import{CONTACTS_MAX as d,CONTACT_KIND_NAMES as r}from"../../../../../../render/lib/sections/messaging.js";const f={fields:{title:t("Heading","Who to ask"),description:t("Body",""),contacts:{type:"array",label:"Contacts",max:d,arrayFields:{name:a("Name","Who to ask for"),kind:s("Reach by",m(n,{}),i,e),value:a("Number or ID","A number, @name or an ID")},defaultItemProps:{name:"",kind:e,value:""},getItemSummary:o=>o.name||(o.kind&&Object.hasOwn(r,o.kind)?r[o.kind]:"Contact")}}};export{f as ContactCardsFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{chromeOwnWidthFields as a}from"efficient-web-builder/editor/lib/document/section-own-width-fields";import{CaseIcon as r,ContrastIcon as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{chromeOwnWidthFields as a}from"efficient-web-builder/editor/lib/document/section-own-width-fields";import{CaseIcon as r,ContrastIcon as s,HeightIcon as i,LayoutIcon as n,StickyIcon as m}from"efficient-easel/icons";import{sectionThemeFields as p}from"efficient-web-builder/editor/lib/document/controls";import{segmented as o,slider as c}from"efficient-web-builder/editor/lib/document/box-fields";import{HEADER_THEME_FOLLOW as u,resolveHeaderTheme as d}from"../../../../../../render/lib/content/header-theme.js";import{HEADER_HEIGHT_PX as t}from"efficient-web-builder/render/lib/document/header-clearance";import{SiteHeaderSlots as h}from"../../../../../../render/lib/document/blocks/service/SiteHeader/meta.js";import{textKindStyleRows as w}from"../../../text-kind-style-rows.js";const{sectionAccent:v}=p(l=>d(l)??u,"Follow the site theme"),g={fields:{heightPx:c("Height",e(i,{}),t.min,t.max,2,t.default,"px"),...a(),sectionAccent:v,topTextColor:o("Text color at the top",e(s,{}),[{label:"Auto",value:"auto"},{label:"Light",value:"light"},{label:"Dark",value:"dark"}],"auto"),navTextCase:o("Letters",e(r,{}),[{label:"Uppercase",value:"uppercase"},{label:"Capitalised",value:"capitalised"}],"uppercase"),menuRow:o("Menu row",e(n,{}),[{label:"Own row",value:"top"},{label:"Same row",value:"inline"}],"top"),sticky:o("Sticky header",e(m,{}),[{label:"None",value:"none"},{label:"Always",value:"always"},{label:"On scroll up",value:"on_scroll_up"}],"always"),...w(["tools"],{tools:"toolTextStyle"},{tools:"Tool words"},{unsetLabel:"Header's own"}),sections:h.sections}};export{g as SiteHeaderFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{textKindStyleRows as d}from"../../../text-kind-style-rows.js";import{SUBMIT_DEFAULTS as o}from"../../../../../../render/lib/sections/submit-build-copy.js";import{SUBMIT_TEXT_KINDS as r,SUBMIT_KIND_PROP as l,SUBMIT_TEXT_KIND_LABELS as b}from"../../../../../../render/lib/submit/text-kinds.js";import{text as m,textarea as s}from"efficient-web-builder/editor/lib/document/controls";import{group as _}from"efficient-easel/screen/lib/document/box-fields";import{formPicker as p}from"../controls.js";import{withRowRules as T}from"efficient-web-builder/render/lib/document/show-when";const u={field:"region",is:"head"},a={not:u},y={any:[]};function S(i){const e=r.map(t=>l[t]),c=["eyebrow","title"],f=["body","formSlug","buttonText","consent"],n=[];for(const t of Object.keys(i))t.startsWith("_")||(c.includes(t)?n.push([[t],u]):f.includes(t)||e.includes(t)?n.push([[t],a]):n.push([[t],y]));return n}const h={fields:{...d(r,l,b,{unsetLabel:"Section's own"}),_gContent:_("Content"),eyebrow:m("Eyebrow",o.eyebrow),title:s("Heading",o.title),body:s("Body",o.body),formSlug:p(),buttonText:m("Button",o.buttonText),consent:s("Consent line",o.consent)},resolveFields:(i,{fields:e})=>T(e,S(e))};export{h as SubmitBoxFields};
|
|
@@ -4,6 +4,11 @@ type GroupNode = {
|
|
|
4
4
|
type: string;
|
|
5
5
|
props: Record<string, unknown>;
|
|
6
6
|
};
|
|
7
|
+
export declare function headerLogoPx(row: {
|
|
8
|
+
logo_size_px?: number | null;
|
|
9
|
+
logo_size?: string | null;
|
|
10
|
+
logo_size_unit?: unknown;
|
|
11
|
+
}): number | undefined;
|
|
7
12
|
export declare function boxHeaderForSite(token: string, siteId: string | null, make: MakeNode, id: string): Promise<GroupNode>;
|
|
8
13
|
export declare const STOREFRONT_SEEDS: EditorSeeds;
|
|
9
14
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{HEADER_LOGO_PX as
|
|
1
|
+
import{HEADER_LOGO_PX as i}from"efficient-web-builder/format/lib/logo/logo-size";import{boxHeaderFromRow as l,pxLength as a}from"./box-header.js";import{loadHeaderSettings as u}from"../header-settings-source.js";function g(o){const e=a(o.logo_size_px,o.logo_size_unit);return e??(o.logo_size!=null&&c(o.logo_size)?i[o.logo_size]:void 0)}function c(o){return Object.hasOwn(i,o)}async function _(o,e,t,n){const r=await u(o,e),s=g(r);return l(r,t,n,{logoHeightPx:s})}const p={siteHeader:async({make:o,id:e,siteId:t,token:n})=>n?_(n,t,o,e):null};export{p as STOREFRONT_SEEDS,_ as boxHeaderForSite,g as headerLogoPx};
|
|
@@ -31,7 +31,9 @@ export interface HeaderRowForBox {
|
|
|
31
31
|
menu_position?: "left" | "right" | "center" | "beside" | null;
|
|
32
32
|
menu_split?: number | null;
|
|
33
33
|
menu_gap_px?: number | null;
|
|
34
|
+
menu_gap_unit?: unknown;
|
|
34
35
|
}
|
|
36
|
+
export declare function pxLength(value: number | null | undefined, unit: unknown): number | null;
|
|
35
37
|
export declare function boxHeaderFromRow(row: HeaderRowForBox, make: MakeNode, groupId: string, { logoHeightPx }?: {
|
|
36
38
|
logoHeightPx?: number;
|
|
37
39
|
}): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SECTION_WIDTH_KEYS as
|
|
1
|
+
import{SECTION_WIDTH_KEYS as C}from"efficient-web-builder/format/lib/content/section-width";import{resolveMenuRow as y}from"../../../render/lib/content/header-bar.js";import{resolveHeaderTheme as M}from"../../../render/lib/content/header-theme.js";import{buildSectionGroup as D,SITE_HEADER_TYPE as G}from"efficient-web-builder/format/lib/document/section-groups";import{resolveCountryShowAs as H}from"../../../render/lib/content/country-show-as.js";import{templateOnInsert as I}from"efficient-web-builder/format/lib/content/card-template";import"../../../render/lib/document/card-templates.js";import{storedUnit as F}from"efficient-web-builder/format/lib/content/css-length";import{HEADER_MENU_GAP_PX as L}from"efficient-web-builder/render/lib/document/header-clearance";function O(e,n){return e!=null&&F(n)==="px"?e:null}const R="Flex",E=10;function J(e,n,T,{logoHeightPx:u}={}){const s=e.util_style==="text"?"text":"icon",a={...e.menu?{id:e.menu}:{},...e.menu_handle?{handle:e.menu_handle}:{},...e.menu_name?{name:e.menu_name}:{},items:(e.menu_items??[]).map(({label:t,url:o,dropdown_items:l})=>({label:t,url:o,...l?.length?{dropdown_items:l.map(b=>({label:b.label,url:b.url}))}:{}}))},p=e.search_enabled?n("SearchBlock",{style:s}):null,m=e.search_position==="left",c=[m?p:null,e.country_selector_enabled?n("CountrySwitchBlock",{showAs:H(e.country_selector_show_as)}):null,n("ThemeSwitchBlock"),e.account_enabled!==!1?n("AccountBlock",{style:s}):null,e.cart_enabled!==!1?n("CartBlock",{style:s}):null,m?null:p].filter(t=>t!==null),_=n("LogoBlock",{...u?{heightPx:u}:{},...e.reverse_logo!=null?{reverse:e.reverse_logo?"auto":"off"}:{}}),i=t=>{const o=n("MenuBlock",{menu:a,direction:"row",...t}),l=I("MenuBlock",o.props);return l===o.props?o:{...o,props:l}},k=y(e.menu_row)==="inline"?32:20,h=t=>n(R,{direction:"row",justify:"end",align:"center",share:"content",wrap:"nowrap",phoneRow:3,gap:k,content:t}),r=Math.min(Math.max(e.menu_split??3,1),4),g=e.logo_position==="center"&&a.items.length>r,d=e.menu_position==="center"?"center":e.menu_position==="beside"?"left":"right",f=L.default,v=!g&&d==="left"?O(e.menu_gap_px,e.menu_gap_unit)??f:f,S=g?[i({linkAlign:"left",linkRange:{from:1,to:r}}),_,h([i({linkAlign:"right",linkRange:{from:r+1}}),...c])]:[_,i({linkAlign:d}),...c.length?[h(c)]:[]],P=n(R,{direction:"row",justify:"between",align:"center",share:"content",wrap:"nowrap",phoneRow:3,sectionPaddingTop:E,sectionPaddingBottom:E,gap:v,content:S}),x=D(G,T,[P]),B=M(e.theme),A=y(e.menu_row);return{...x,props:{...x.props,sticky:e.sticky??"always",topTextColor:e.top_text_color??"auto",...e.height_px!=null?{heightPx:e.height_px}:{},...e.width==="full"?{[C.content]:"full"}:{},...B!==null?{sectionAccent:B}:{},...e.nav_text_case?{navTextCase:e.nav_text_case}:{},...A?{menuRow:A}:{}}}}export{J as boxHeaderFromRow,O as pxLength};
|
|
@@ -6,6 +6,7 @@ import "../../../render/lib/document/section-to-box-rows-reviews.js";
|
|
|
6
6
|
import "../../../render/lib/document/section-to-box-rows-spec.js";
|
|
7
7
|
import "../../../render/lib/document/section-to-box-rows-productgrid.js";
|
|
8
8
|
import "../../../render/lib/document/section-to-box-rows-events.js";
|
|
9
|
+
import "../../../render/lib/document/section-to-box-rows-collections.js";
|
|
9
10
|
import "../../../render/lib/document/section-to-box-rows-detail.js";
|
|
10
11
|
import "../../../render/lib/document/section-to-box-rows-service.js";
|
|
11
12
|
import "../../../render/lib/document/section-to-box-rows-listing.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as l,Fragment as j,jsxs as q}from"react/jsx-runtime";import{assignSectionGroups as L,reseatBucketTabs as O}from"efficient-web-builder/editor/lib/document/field-groups";import{buildBlockCategories as z}from"efficient-web-builder/format/lib/document/section-catalog";import{FONT_ROLES as V,FONT_ROLE_LABELS as X}from"efficient-web-builder/format/lib/fonts";import{CONTAINER_DIRECTION_LABELS as C}from"efficient-web-builder/format/lib/content/container-direction";import{SITE_FOOTER_TYPE as Q,SITE_HEADER_TYPE as J}from"efficient-web-builder/format/lib/document/section-groups";import Z from"../../components/MenuLinkRangeField.js";import $ from"../../components/EditorPreviewChat.js";import ee from"../../components/EditorPreviewSurface.js";import{isSystemPageSlug as te,POPUP_DAYS_RANGE as R,POPUP_DELAY_RANGE as v,POPUP_HIDE_AFTER as oe,POPUP_SCROLL_RANGE as A,POPUP_SHOW_ON as re,POPUP_TRIGGERS as w,SUBSCRIBE_POPUP_DEFAULTS as ie,SUBSCRIBE_POPUP_KIND as ae}from"efficient-web-builder/format/lib/content/subscribe";import{shownForOption as h,withRowRules as le,withShowWhen as y}from"efficient-web-builder/render/lib/document/show-when";import{POPUP_KIND_PROP as ne,POPUP_TEXT_KIND_LABELS as D,POPUP_TEXT_KINDS as se}from"efficient-web-builder/format/lib/popup/text-kinds";import{loadPages as ce}from"efficient-web-builder/editor/components/StorefrontLinkField";import{pagePath as me}from"../../../render/lib/links/link-rules.js";import{getEditorSiteId as ue}from"efficient-web-builder/render/lib/editor-site";import{CART_DRAWER_DEFAULTS as de,CART_DRAWER_KIND as T}from"efficient-web-builder/format/lib/content/cart-drawer";import{POPUP_PAGE_KIND as I}from"efficient-web-builder/format/lib/popup/look";import{popupLookFields as pe}from"./popup-look-fields.js";import{CONSENT_BANNER_KIND as N}from"efficient-web-builder/format/lib/content/consent-banner";import{consentBannerLayoutField as ge}from"../../components/ConsentBannerLayoutTiles.js";import{CategoryIcon as Pe,CheckIcon as fe,ClockIcon as B,ColumnsIcon as be,DirectionIcon as Se,EyeIcon as he,ListIcon as ye,PageIcon as Te,PlacementIcon as Be,ScrollPointIcon as ke,TabsIcon as Fe,TriggerIcon as Ee}from"efficient-easel/icons";import{deviceField as x}from"efficient-easel/screen/lib/document/device-fields";import{FieldGlyph as _e}from"efficient-web-builder/editor/components/FieldGlyph";import{DisplayRow as Le,multiSelect as Oe,panelNote as Ce,plainText as a,plainTextarea as p,sectionShapeFields as Re,sectionThemeFields as ve,textList as k,toggle as H}from"efficient-web-builder/editor/lib/document/controls";import{group as m}from"efficient-easel/screen/lib/document/box-fields";import{segmented as g,select as M,slider as F}from"efficient-web-builder/editor/lib/document/box-fields";import{blockAlignRow as Ae}from"./block-align-row.js";import{formPicker as we}from"./blocks/service/controls.js";import{SECTION_THEME_FOLLOW_LABEL as De}from"efficient-web-builder/editor/components/SectionThemePicker";import{nestedAccentValue as Ie}from"efficient-web-builder/format/lib/content/section-surface";import{isEditorOnDynamicPage as Ne}from"efficient-web-builder/format/lib/document/editor-page-context";import{TEMPLATE_PRODUCT_TYPE_PROP as xe}from"efficient-web-builder/format/lib/content/product-page";import{PRODUCT_KIND_OPTIONS as He}from"../../../render/lib/catalog/plp-item.js";import{PH as E}from"efficient-web-builder/format/lib/document/blocks/placeholders";import{textKindGlyph as Me}from"efficient-web-builder/editor/lib/document/blocks/shared-fields";import{NO_BLOCK_SOURCE as Ge,blockSourceField as Ue,blockSourceFields as Ke}from"efficient-web-builder/editor/lib/document/block-source-fields";import{menuTemplateFollowsContent as We}from"../../../render/lib/content/menu-card-seed.js";import"../efficient-backend.js";import"../../../render/lib/document/slot-seeds.js";import"../../../render/lib/document/card-templates.js";import"../../../render/lib/document/section-to-box-rows-reviews.js";import"../../../render/lib/document/section-to-box-rows-spec.js";import"../../../render/lib/document/section-to-box-rows-productgrid.js";import"../../../render/lib/document/section-to-box-rows-events.js";import"../../../render/lib/document/section-to-box-rows-detail.js";import"../../../render/lib/document/section-to-box-rows-service.js";import"../../../render/lib/document/section-to-box-rows-listing.js";import"./section-text-regions.js";import{generalBlocks as e}from"efficient-web-builder/editor/lib/document/blocks/general/index";import{commerceBlocks as t}from"./blocks/commerce/index.js";import{serviceBlocks as i}from"./blocks/service/index.js";import{EditorThemedBody as Ye,suppressPreviewNav as je}from"efficient-web-builder/editor/lib/document/page-root";import qe from"../../components/HeaderSection.js";import{addPageBlocksFromFooter as ze,PAGE_MENU_DIRECTION_DEFAULT as _}from"../../../render/lib/document/footer-page-blocks.js";import{MENU_STYLE_PLAIN as G,MENU_STYLE_TABS as U}from"../../../render/components/FooterMenu.js";import{drawPopupPage as Ve,drawPublishedStorefrontRoot as Xe,drawSystemPage as Qe,StorefrontPageProviders as Je}from"../../../render/lib/document/storefront-root.js";import{GENERAL_ROOT_FIELDS as Ze}from"efficient-web-builder/editor/lib/document/page-root-fields";import{finishRegistry as $e}from"efficient-web-builder/editor/lib/document/registry";const et="Newsletter (built in)",tt=[{id:"currentPage",label:"Current page"}],So=[{value:"00",label:E.label},{value:"00",label:E.label},{value:"00",label:E.label}],r=ie,P={field:"autoOpen",is:!0},ot={all:[h("hideAfter",oe,r.hideAfter,["days"]),{not:{all:[{field:"hideAfter",is:null,default:null},{field:"oncePerSession",in:[!0,!1]}]}}]},rt=[[["trigger","showOn","hideAfter"],P],[["autoOpenDelaySec"],{all:[P,h("trigger",w,r.trigger,["delay","exit"])]}],[["scrollPercent"],{all:[P,h("trigger",w,r.trigger,["scroll"])]}],[["showOnPages"],{all:[P,h("showOn",re,r.showOn,["chosen"])]}],[["hideDays"],{all:[P,ot]}]],it=le({formSlug:we(void 0,et),_gLeft:m("Left panel"),metaLabel:a("Meta label",r.metaLabel),issueLabel:a("Issue label",r.issueLabel),issueNumber:a("Issue number",r.issueNumber),kicker:a("Eyebrow",r.kicker),heading:p("Heading",r.heading),deck:p("Deck",r.deck),stats:{type:"array",label:"Stats",arrayFields:{label:a("Label"),value:a("Value")},getItemSummary:o=>o?.label||o?.value||"Stat"},_gForm:m("Right panel · form"),formLabel:a("Section label",r.formLabel),formHeading:a("Heading",r.formHeading),formIntro:p("Intro",r.formIntro),firstNameLabel:a("First-name label",r.firstNameLabel),firstNamePlaceholder:a("First-name placeholder",r.firstNamePlaceholder),emailLabel:a("Email label",r.emailLabel),emailPlaceholder:a("Email placeholder",r.emailPlaceholder),_gChoices:m("Right panel · choices"),interestsLabel:a("Interests label",r.interestsLabel),interests:k("Interest chips",l(_e,{noun:"tag"}),"Chip label","verbatim"),frequencyLabel:a("Frequency label",r.frequencyLabel),frequencies:k("Frequency options",l(ye,{}),"Option label","verbatim"),_gActions:m("Right panel · actions"),submitText:a("Submit button",r.submitText),finePrint:a("Fine print",r.finePrint),dismissText:a("Dismiss link",r.dismissText),emailInvalidText:a("Invalid-email error",r.emailInvalidText),submitErrorText:a("Submit-failed error",r.submitErrorText),_gSuccess:m("Success state"),successHeading:a("Heading",r.successHeading),successBody:p("Message",r.successBody),keepBrowsingText:a("Dismiss button",r.keepBrowsingText),...ve(Ie,De),...Re(),_gTextStyle:m("Text style"),...Object.fromEntries(se.map(o=>[ne[o],M(D[o],Me(D[o]),[{label:"Popup's own",value:""},...V.map(n=>({label:X[n],value:n}))],"")])),_gBehaviour:m("Behavior"),autoOpen:H("Show by itself",r.autoOpen,l(he,{})),trigger:g("Trigger",l(Ee,{}),[{label:"Delay",value:"delay"},{label:"Scroll",value:"scroll"},{label:"Exit",value:"exit"}],r.trigger),autoOpenDelaySec:F("Delay",l(B,{}),v.min,v.max,1,r.autoOpenDelaySec,"s"),scrollPercent:F("Scroll",l(ke,{}),A.min,A.max,5,r.scrollPercent,"%"),showOn:g("Pages",l(Te,{}),[{label:"All",value:"all"},{label:"Chosen",value:"chosen"}],r.showOn),showOnPages:Oe("Chosen pages",[],"None"),hideAfter:g("After close",l(B,{}),[{label:"This visit",value:"visit"},{label:"Days",value:"days"},{label:"Never",value:"never"}],r.hideAfter),hideDays:F("Days",l(B,{}),R.min,R.max,1,r.hideDays),_gArrangement:m("Arrangement"),formSide:g("Form side",l(Be,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],r.formSide),_gPhone:x("mobile",m("On a phone")),valuePanelOnPhone:x("mobile",H("Left panel",r.valuePanelOnPhone,l(be,{})))},rt),K=L(it,"SubscribePopup");async function at(){return(await ce(ue()??"")).filter(n=>!te(n.slug)).map(n=>({label:n.label,value:me(n.slug)}))}async function lt(){return O({...K,showOnPages:{...K.showOnPages,options:await at().catch(()=>[])}})}const d=de,nt={_gHeader:m("Header"),kickerBadge:a("Eyebrow badge",d.kickerBadge),kickerText:a("Eyebrow text",d.kickerText),titleLead:a("Heading",d.titleLead),titleAccent:a("Heading accent",d.titleAccent),subtitleEmpty:p("Sub-line · empty",d.subtitleEmpty),subtitleOne:p("Sub-line · one set",d.subtitleOne),subtitleMany:p("Sub-line · several sets",d.subtitleMany,"{count} becomes the number of sets"),_gStatus:m("Status rail"),leadTimeValue:a("Lead time",d.leadTimeValue),shipsToFallback:a("Ships to · fallback",d.shipsToFallback,"Shown only while the site serves no countries — otherwise the site's default country is stated"),_gPromises:m("Promise row"),promises:k("Trust markers",l(fe,{}),"Marker","verbatim"),_gEmpty:m("Empty basket"),emptyKicker:a("Eyebrow",d.emptyKicker),emptyBody:p("Message",d.emptyBody)},W=(o,n,u)=>O({...o,...L(pe(n),u)}),st=W(nt,T,"CartDrawer"),ct={layout:ge,_nConsentWhere:Ce("The banner's words follow each visitor's country. Turn consent on or off, and pick the privacy page, in Admin › Storefront › Marketing › Privacy.")};function mt({kind:o}){return l("div",{style:{padding:"14px 18px",fontFamily:"var(--font-mono, monospace)",fontSize:12,letterSpacing:"0.18em",textTransform:"uppercase",color:"var(--fg-dim)",borderBottom:"1px solid var(--site-line)"},children:o===T?"This is the cart drawer — edit its copy in the Settings panel →":o===N?"This is the cookie banner — pick its layout in the Settings panel →":"This is the site popup — edit it in the Settings panel →"})}const f={root:{fields:{...Ze},resolveFields:async(o,{fields:n})=>{if(o?.props?.kind===ae)return lt();if(o?.props?.kind===I)return W(n,I,"PopupPage");if(o?.props?.kind===T)return st;if(o?.props?.kind===N)return ct;const u=n;return Ne()?{[xe]:M("Product type",l(Pe,{}),He,"alloy-wheel"),...u}:u},render:o=>{const{editor:n,pageBackground:u,theme:b,fonts:S}=o;if(!n?.isEditing)return Xe(o);const s=Qe(o,l(mt,{kind:o.kind}));if(s)return s;const c=Ve(o,!0);return l(Ye,{propsTheme:b,propsFonts:S,pageBackground:typeof u=="string"?u:void 0,suppressPreviewNav:je,overlay:q(j,{children:[l($,{}),l(ee,{})]}),children:c??l(Je,{rootProps:o,children:o.children})})}},categories:z(),components:{Heading:e.Heading,Text:e.Text,Eyebrow:e.Eyebrow,ImageBlock:e.ImageBlock,LogoBlock:e.LogoBlock,ButtonBlock:e.ButtonBlock,Spacer:e.Spacer,Divider:e.Divider,Grid:e.Grid,Flex:e.Flex,Breadcrumb:e.Breadcrumb,Masthead:e.Masthead,CategoryBar:e.CategoryBar,FeaturedCover:e.FeaturedCover,LongRead:e.LongRead,Series:e.Series,Subscribe:i.Subscribe,SubscribeBlogs:i.SubscribeBlogs,Banner:e.Banner,ParagraphsA:e.ParagraphsA,StatsParagraph:e.StatsParagraph,Timeline:e.Timeline,Footprint:e.Footprint,TimelineTrack:e.TimelineTrack,TitleWithButtons:e.TitleWithButtons,Stats:e.Stats,Integrations:e.Integrations,Mockup:e.Mockup,Chart:e.Chart,KeyFeatures:e.KeyFeatures,Testimonials:e.Testimonials,Reviews:i.Reviews,RatingBlock:i.RatingBlock,Prose:e.Prose,Cards:e.Cards,Logos:e.Logos,Ticker:e.Ticker,ContactRouting:i.ContactRouting,ContactLocations:e.ContactLocations,HeroSingle:e.HeroSingle,Hero:e.Hero,HeroSlide:e.HeroSlide,HeroGroup:e.HeroGroup,Collections:t.Collections,CollectionCard:t.CollectionCard,Events:i.Events,RateTable:i.RateTable,MessagingCards:i.MessagingCards,ContactCards:i.ContactCards,OpeningHours:i.OpeningHours,PostCard:e.PostCard,DocMetaCards:e.DocMetaCards,DocTabs:e.DocTabs,DocMasthead:e.DocMasthead,DocBody:e.DocBody,Contents:e.Contents,ListSearch:e.ListSearch,FAQ:e.FAQ,Gallery:t.Gallery,GalleryB:t.GalleryB,SpecStrip:e.SpecStrip,GalleryItem:t.GalleryItem,Manifesto:e.Manifesto,SectionHeader:e.SectionHeader,IntroBleed:e.IntroBleed,Split:e.Split,SubmitBuild:i.SubmitBuild,SubmitBox:i.SubmitBox,ReviewForm:i.ReviewForm,Form:i.Form,AppointmentBooking:i.AppointmentBooking,BookingBox:i.BookingBox,CatalogFilterBar:t.CatalogFilterBar,AlloyWheelsListing:t.AlloyWheelsListing,ProductGrid:t.ProductGrid,ProductHero:t.ProductHero,ProductGallery:t.ProductGallery,SpecTable:t.SpecTable,ProcessSteps:e.ProcessSteps,DetailRows:t.DetailRows,FitmentTable:t.FitmentTable,RelatedProducts:t.RelatedProducts,BundleOffer:t.BundleOffer,CompatibleTyres:t.CompatibleTyres,TyreSizes:t.TyreSizes,TyreFitment:t.TyreFitment,EuTyreLabel:t.EuTyreLabel,EuTyreLabelBlock:t.EuTyreLabelBlock,ProductSize:t.ProductSize,ProductColour:t.ProductColour,ProductPrice:t.ProductPrice,ProductBuyButton:t.ProductBuyButton,FilterBlock:t.FilterBlock,FilterChipsBlock:t.FilterChipsBlock,ProductPicture:t.ProductPicture,ProductSpecs:t.ProductSpecs,ProductBuy:t.ProductBuy,ProductEyebrow:t.ProductEyebrow,ProductName:t.ProductName,FitmentFinder:t.FitmentFinder,FitmentPicker:t.FitmentPicker,StockFitment:t.StockFitment,OrderSummary:e.OrderSummary,DeliveryOptions:t.DeliveryOptions,PaymentBadges:e.PaymentBadges,CheckoutCTA:t.CheckoutCTA,ProductRef:t.ProductRef,CustomHTML:e.CustomHTML,CardList:e.CardList,Header:t.Header,Footer:i.Footer,FooterLogo:i.FooterLogo,FooterMenu:i.FooterMenu,ArticleBody:i.ArticleBody,MenuLinkBlock:i.MenuLinkBlock,FooterDivider:i.FooterDivider,FooterGroup:i.FooterGroup,FooterText:i.FooterText,FooterEmailSignup:i.FooterEmailSignup,FooterSocial:i.FooterSocial,FooterMessaging:i.FooterMessaging,FooterPayment:i.FooterPayment,LegalLineBlock:i.LegalLineBlock,SearchBlock:t.SearchBlock,CartBlock:t.CartBlock,CountrySwitchBlock:t.CountrySwitchBlock,AccountBlock:t.AccountBlock,ThemeSwitchBlock:t.ThemeSwitchBlock,[J]:i.SiteHeader,[Q]:i.SiteFooter}};ze(f.components);{const o=f.components.MenuBlock;o.fields={...o.fields,direction:g("Direction",l(Se,{}),[{label:C.column,value:"column"},{label:C.row,value:"row"}],_)};const n={type:"custom",render:({value:s,onChange:c})=>l(Z,{value:s,onChange:c})},u=y({type:"custom",render:({value:s,onChange:c})=>l(Le,{parts:tt,changed:s===!0,shown:()=>s===!0,onPress:(dt,Y)=>c(Y),onReset:()=>c(void 0)})},{not:{field:"direction",is:"column",default:_}});o.fields=Object.fromEntries(Object.entries(o.fields).flatMap(([s,c])=>s==="menu"?[["dataSource",Ue("Menu content","Manual")],[s,c],["linkRange",n],["currentPage",u]]:[[s,c]]));const b=o;b.resolveFields=(s,{fields:c})=>Ke("MenuBlock",c,s.props,{hides:["menu"]}),b.resolveData=s=>{const c=We(s.props);return c===s.props?s:{...s,props:c}},o.fields={...o.fields,linkAlign:Ae({label:"Link alignment"}),menuStyle:y(g("Menu style",l(Fe,{}),[{label:"Plain",value:G},{label:"Tabs",value:U}],G),{not:{field:"direction",is:"column",default:_}})};const S={not:{field:"menuStyle",is:U}};o.fields.linkRange=y(o.fields.linkRange,{all:[S,Ge]}),o.fields.linkAlign=y(o.fields.linkAlign,S)}{const o=f.components.Header,n=o.render;o.render=u=>u.editor?.isEditing?l(qe,{editing:!0}):n(u)}const ut=$e(f),ho=ut.sectionGroupAllow;var yo=f;export{ho as SECTION_GROUP_ALLOW,f as config,yo as default,it as subscribePopupFields};
|
|
1
|
+
import{jsx as a,Fragment as Y,jsxs as q}from"react/jsx-runtime";import{textKindStyleRows as z}from"./text-kind-style-rows.js";import{assignSectionGroups as A,reseatBucketTabs as R}from"efficient-web-builder/editor/lib/document/field-groups";import{buildBlockCategories as V}from"efficient-web-builder/format/lib/document/section-catalog";import{CONTAINER_DIRECTION_LABELS as v}from"efficient-web-builder/format/lib/content/container-direction";import{SITE_FOOTER_TYPE as X,SITE_HEADER_TYPE as Q}from"efficient-web-builder/format/lib/document/section-groups";import J from"../../components/MenuLinkRangeField.js";import Z from"../../components/EditorPreviewChat.js";import $ from"../../components/EditorPreviewSurface.js";import{isSystemPageSlug as ee,POPUP_DAYS_RANGE as D,POPUP_DELAY_RANGE as w,POPUP_HIDE_AFTER as te,POPUP_SCROLL_RANGE as I,POPUP_SHOW_ON as oe,POPUP_TRIGGERS as N,SUBSCRIBE_POPUP_DEFAULTS as re,SUBSCRIBE_POPUP_KIND as ie}from"efficient-web-builder/format/lib/content/subscribe";import{shownForOption as y,withRowRules as le,withShowWhen as g}from"efficient-web-builder/render/lib/document/show-when";import{POPUP_KIND_PROP as ae,POPUP_TEXT_KIND_LABELS as ne,POPUP_TEXT_KINDS as se}from"efficient-web-builder/format/lib/popup/text-kinds";import{loadPages as ce}from"efficient-web-builder/editor/components/StorefrontLinkField";import{pagePath as me}from"../../../render/lib/links/link-rules.js";import{getEditorSiteId as ue}from"efficient-web-builder/render/lib/editor-site";import{CART_DRAWER_DEFAULTS as de,CART_DRAWER_KIND as B}from"efficient-web-builder/format/lib/content/cart-drawer";import{POPUP_PAGE_KIND as x}from"efficient-web-builder/format/lib/popup/look";import{menuPanelLookFields as pe,popupLookFields as ge}from"./popup-look-fields.js";import{MENU_PANEL_TINT_OPACITY_DEFAULT as Pe,MENU_PANEL_WIDTH_DEFAULT as fe,MENU_STYLE_BUTTON as M,MENU_STYLE_PLAIN as k,MENU_STYLE_TABS as E}from"../../../render/lib/content/menu-row.js";import{CONSENT_BANNER_KIND as H}from"efficient-web-builder/format/lib/content/consent-banner";import{consentBannerLayoutField as be}from"../../components/ConsentBannerLayoutTiles.js";import{CategoryIcon as Se,CheckIcon as Te,ClockIcon as F,ColumnsIcon as he,DirectionIcon as ye,EyeIcon as ke,ListIcon as Be,PageIcon as Ee,PlacementIcon as Fe,ScrollPointIcon as _e,TabsIcon as Le,TriggerIcon as Oe}from"efficient-easel/icons";import{deviceField as U}from"efficient-easel/screen/lib/document/device-fields";import{FieldGlyph as Ce}from"efficient-web-builder/editor/components/FieldGlyph";import{DisplayRow as Ae,multiSelect as Re,panelNote as ve,plainText as l,plainTextarea as p,sectionShapeFields as De,sectionThemeFields as we,textList as _,toggle as G}from"efficient-web-builder/editor/lib/document/controls";import{group as u,phoneTwinFields as Ie}from"efficient-easel/screen/lib/document/box-fields";import{segmented as P,select as Ne,slider as L}from"efficient-web-builder/editor/lib/document/box-fields";import{blockAlignRow as xe}from"./block-align-row.js";import{formPicker as Me}from"./blocks/service/controls.js";import{SECTION_THEME_FOLLOW_LABEL as He}from"efficient-web-builder/editor/components/SectionThemePicker";import{nestedAccentValue as Ue}from"efficient-web-builder/format/lib/content/section-surface";import{isEditorOnDynamicPage as Ge}from"efficient-web-builder/format/lib/document/editor-page-context";import{TEMPLATE_PRODUCT_TYPE_PROP as We}from"efficient-web-builder/format/lib/content/product-page";import{PRODUCT_KIND_OPTIONS as Ke}from"../../../render/lib/catalog/plp-item.js";import{PH as O}from"efficient-web-builder/format/lib/document/blocks/placeholders";import{NO_BLOCK_SOURCE as je,blockSourceField as Ye,blockSourceFields as qe}from"efficient-web-builder/editor/lib/document/block-source-fields";import{menuTemplateFollowsContent as ze}from"../../../render/lib/content/menu-card-seed.js";import"../efficient-backend.js";import"../../../render/lib/document/slot-seeds.js";import"../../../render/lib/document/card-templates.js";import"../../../render/lib/document/section-to-box-rows-reviews.js";import"../../../render/lib/document/section-to-box-rows-spec.js";import"../../../render/lib/document/section-to-box-rows-productgrid.js";import"../../../render/lib/document/section-to-box-rows-events.js";import"../../../render/lib/document/section-to-box-rows-collections.js";import"../../../render/lib/document/section-to-box-rows-detail.js";import"../../../render/lib/document/section-to-box-rows-service.js";import"../../../render/lib/document/section-to-box-rows-listing.js";import"./section-text-regions.js";import{generalBlocks as e}from"efficient-web-builder/editor/lib/document/blocks/general/index";import{commerceBlocks as t}from"./blocks/commerce/index.js";import{serviceBlocks as i}from"./blocks/service/index.js";import{EditorThemedBody as Ve,suppressPreviewNav as Xe}from"efficient-web-builder/editor/lib/document/page-root";import Qe from"../../components/HeaderSection.js";import{addPageBlocksFromFooter as Je,PAGE_MENU_DIRECTION_DEFAULT as C}from"../../../render/lib/document/footer-page-blocks.js";import{drawPopupPage as Ze,drawPublishedStorefrontRoot as $e,drawSystemPage as et,StorefrontPageProviders as tt}from"../../../render/lib/document/storefront-root.js";import{GENERAL_ROOT_FIELDS as ot}from"efficient-web-builder/editor/lib/document/page-root-fields";import{finishRegistry as rt}from"efficient-web-builder/editor/lib/document/registry";const it="Newsletter (built in)",lt=[{id:"currentPage",label:"Current page"}],ko=[{value:"00",label:O.label},{value:"00",label:O.label},{value:"00",label:O.label}],r=re,b={field:"autoOpen",is:!0},at={all:[y("hideAfter",te,r.hideAfter,["days"]),{not:{all:[{field:"hideAfter",is:null,default:null},{field:"oncePerSession",in:[!0,!1]}]}}]},nt=[[["trigger","showOn","hideAfter"],b],[["autoOpenDelaySec"],{all:[b,y("trigger",N,r.trigger,["delay","exit"])]}],[["scrollPercent"],{all:[b,y("trigger",N,r.trigger,["scroll"])]}],[["showOnPages"],{all:[b,y("showOn",oe,r.showOn,["chosen"])]}],[["hideDays"],{all:[b,at]}]],st=le({formSlug:Me(void 0,it),_gLeft:u("Left panel"),metaLabel:l("Meta label",r.metaLabel),issueLabel:l("Issue label",r.issueLabel),issueNumber:l("Issue number",r.issueNumber),kicker:l("Eyebrow",r.kicker),heading:p("Heading",r.heading),deck:p("Deck",r.deck),stats:{type:"array",label:"Stats",arrayFields:{label:l("Label"),value:l("Value")},getItemSummary:o=>o?.label||o?.value||"Stat"},_gForm:u("Right panel · form"),formLabel:l("Section label",r.formLabel),formHeading:l("Heading",r.formHeading),formIntro:p("Intro",r.formIntro),firstNameLabel:l("First-name label",r.firstNameLabel),firstNamePlaceholder:l("First-name placeholder",r.firstNamePlaceholder),emailLabel:l("Email label",r.emailLabel),emailPlaceholder:l("Email placeholder",r.emailPlaceholder),_gChoices:u("Right panel · choices"),interestsLabel:l("Interests label",r.interestsLabel),interests:_("Interest chips",a(Ce,{noun:"tag"}),"Chip label","verbatim"),frequencyLabel:l("Frequency label",r.frequencyLabel),frequencies:_("Frequency options",a(Be,{}),"Option label","verbatim"),_gActions:u("Right panel · actions"),submitText:l("Submit button",r.submitText),finePrint:l("Fine print",r.finePrint),dismissText:l("Dismiss link",r.dismissText),emailInvalidText:l("Invalid-email error",r.emailInvalidText),submitErrorText:l("Submit-failed error",r.submitErrorText),_gSuccess:u("Success state"),successHeading:l("Heading",r.successHeading),successBody:p("Message",r.successBody),keepBrowsingText:l("Dismiss button",r.keepBrowsingText),...we(Ue,He),...De(),...z(se,ae,ne,{unsetLabel:"Popup's own"}),_gBehaviour:u("Behavior"),autoOpen:G("Show by itself",r.autoOpen,a(ke,{})),trigger:P("Trigger",a(Oe,{}),[{label:"Delay",value:"delay"},{label:"Scroll",value:"scroll"},{label:"Exit",value:"exit"}],r.trigger),autoOpenDelaySec:L("Delay",a(F,{}),w.min,w.max,1,r.autoOpenDelaySec,"s"),scrollPercent:L("Scroll",a(_e,{}),I.min,I.max,5,r.scrollPercent,"%"),showOn:P("Pages",a(Ee,{}),[{label:"All",value:"all"},{label:"Chosen",value:"chosen"}],r.showOn),showOnPages:Re("Chosen pages",[],"None"),hideAfter:P("After close",a(F,{}),[{label:"This visit",value:"visit"},{label:"Days",value:"days"},{label:"Never",value:"never"}],r.hideAfter),hideDays:L("Days",a(F,{}),D.min,D.max,1,r.hideDays),_gArrangement:u("Arrangement"),formSide:P("Form side",a(Fe,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],r.formSide),_gPhone:U("mobile",u("On a phone")),valuePanelOnPhone:U("mobile",G("Left panel",r.valuePanelOnPhone,a(he,{})))},nt),W=A(st,"SubscribePopup");async function ct(){return(await ce(ue()??"")).filter(c=>!ee(c.slug)).map(c=>({label:c.label,value:me(c.slug)}))}async function mt(){return R({...W,showOnPages:{...W.showOnPages,options:await ct().catch(()=>[])}})}const d=de,ut={_gHeader:u("Header"),kickerBadge:l("Eyebrow badge",d.kickerBadge),kickerText:l("Eyebrow text",d.kickerText),titleLead:l("Heading",d.titleLead),titleAccent:l("Heading accent",d.titleAccent),subtitleEmpty:p("Sub-line · empty",d.subtitleEmpty),subtitleOne:p("Sub-line · one set",d.subtitleOne),subtitleMany:p("Sub-line · several sets",d.subtitleMany,"{count} becomes the number of sets"),_gStatus:u("Status rail"),leadTimeValue:l("Lead time",d.leadTimeValue),shipsToFallback:l("Ships to · fallback",d.shipsToFallback,"Shown only while the site serves no countries — otherwise the site's default country is stated"),_gPromises:u("Promise row"),promises:_("Trust markers",a(Te,{}),"Marker","verbatim"),_gEmpty:u("Empty basket"),emptyKicker:l("Eyebrow",d.emptyKicker),emptyBody:p("Message",d.emptyBody)},K=(o,c,m)=>R({...o,...A(ge(c),m)}),dt=K(ut,B,"CartDrawer"),pt={layout:be,_nConsentWhere:ve("The banner's words follow each visitor's country. Turn consent on or off, and pick the privacy page, in Admin › Storefront › Marketing › Privacy.")};function gt({kind:o}){return a("div",{style:{padding:"14px 18px",fontFamily:"var(--font-mono, monospace)",fontSize:12,letterSpacing:"0.18em",textTransform:"uppercase",color:"var(--fg-dim)",borderBottom:"1px solid var(--site-line)"},children:o===B?"This is the cart drawer — edit its copy in the Settings panel →":o===H?"This is the cookie banner — pick its layout in the Settings panel →":"This is the site popup — edit it in the Settings panel →"})}const S={root:{fields:{...ot},resolveFields:async(o,{fields:c})=>{if(o?.props?.kind===ie)return mt();if(o?.props?.kind===x)return K(c,x,"PopupPage");if(o?.props?.kind===B)return dt;if(o?.props?.kind===H)return pt;const m=c;return Ge()?{[We]:Ne("Product type",a(Se,{}),Ke,"alloy-wheel"),...m}:m},render:o=>{const{editor:c,pageBackground:m,theme:T,fonts:h}=o;if(!c?.isEditing)return $e(o);const f=et(o,a(gt,{kind:o.kind}));if(f)return f;const n=Ze(o,!0);return a(Ve,{propsTheme:T,propsFonts:h,pageBackground:typeof m=="string"?m:void 0,suppressPreviewNav:Xe,overlay:q(Y,{children:[a(Z,{}),a($,{})]}),children:n??a(tt,{rootProps:o,children:o.children})})}},categories:V(),components:{Heading:e.Heading,Text:e.Text,Eyebrow:e.Eyebrow,ImageBlock:e.ImageBlock,LogoBlock:e.LogoBlock,ButtonBlock:e.ButtonBlock,Spacer:e.Spacer,Divider:e.Divider,Grid:e.Grid,Flex:e.Flex,Breadcrumb:e.Breadcrumb,Masthead:e.Masthead,CategoryBar:e.CategoryBar,FeaturedCover:e.FeaturedCover,LongRead:e.LongRead,Series:e.Series,Subscribe:i.Subscribe,SubscribeBlogs:i.SubscribeBlogs,Banner:e.Banner,ParagraphsA:e.ParagraphsA,StatsParagraph:e.StatsParagraph,Timeline:e.Timeline,Footprint:e.Footprint,TimelineTrack:e.TimelineTrack,TitleWithButtons:e.TitleWithButtons,Stats:e.Stats,Integrations:e.Integrations,Mockup:e.Mockup,Chart:e.Chart,KeyFeatures:e.KeyFeatures,Testimonials:e.Testimonials,Reviews:i.Reviews,RatingBlock:i.RatingBlock,Prose:e.Prose,Cards:e.Cards,Logos:e.Logos,Ticker:e.Ticker,ContactRouting:i.ContactRouting,ContactLocations:e.ContactLocations,HeroSingle:e.HeroSingle,Hero:e.Hero,HeroSlide:e.HeroSlide,HeroGroup:e.HeroGroup,Collections:t.Collections,CollectionCard:t.CollectionCard,Events:i.Events,RateTable:i.RateTable,MessagingCards:i.MessagingCards,ContactCards:i.ContactCards,OpeningHours:i.OpeningHours,PostCard:e.PostCard,DocMetaCards:e.DocMetaCards,DocTabs:e.DocTabs,DocMasthead:e.DocMasthead,DocBody:e.DocBody,Contents:e.Contents,ListSearch:e.ListSearch,FAQ:e.FAQ,Gallery:t.Gallery,GalleryB:t.GalleryB,SpecStrip:e.SpecStrip,GalleryItem:t.GalleryItem,Manifesto:e.Manifesto,SectionHeader:e.SectionHeader,IntroBleed:e.IntroBleed,Split:e.Split,SubmitBuild:i.SubmitBuild,SubmitBox:i.SubmitBox,ReviewForm:i.ReviewForm,Form:i.Form,AppointmentBooking:i.AppointmentBooking,BookingBox:i.BookingBox,CatalogFilterBar:t.CatalogFilterBar,AlloyWheelsListing:t.AlloyWheelsListing,ProductGrid:t.ProductGrid,ProductHero:t.ProductHero,ProductGallery:t.ProductGallery,SpecTable:t.SpecTable,ProcessSteps:e.ProcessSteps,DetailRows:t.DetailRows,FitmentTable:t.FitmentTable,RelatedProducts:t.RelatedProducts,BundleOffer:t.BundleOffer,CompatibleTyres:t.CompatibleTyres,TyreSizes:t.TyreSizes,TyreFitment:t.TyreFitment,EuTyreLabel:t.EuTyreLabel,EuTyreLabelBlock:t.EuTyreLabelBlock,WheelDiagram:t.WheelDiagram,ProductSize:t.ProductSize,ProductColour:t.ProductColour,ProductPrice:t.ProductPrice,ProductBuyButton:t.ProductBuyButton,FilterBlock:t.FilterBlock,FilterChipsBlock:t.FilterChipsBlock,ProductPicture:t.ProductPicture,ProductSpecs:t.ProductSpecs,ProductBuy:t.ProductBuy,ProductEyebrow:t.ProductEyebrow,ProductName:t.ProductName,FitmentFinder:t.FitmentFinder,FitmentPicker:t.FitmentPicker,StockFitment:t.StockFitment,OrderSummary:e.OrderSummary,DeliveryOptions:t.DeliveryOptions,PaymentBadges:e.PaymentBadges,CheckoutCTA:t.CheckoutCTA,ProductRef:t.ProductRef,CustomHTML:e.CustomHTML,CardList:e.CardList,Header:t.Header,Footer:i.Footer,FooterLogo:i.FooterLogo,FooterMenu:i.FooterMenu,ArticleBody:i.ArticleBody,MenuLinkBlock:i.MenuLinkBlock,FooterDivider:i.FooterDivider,FooterGroup:i.FooterGroup,FooterText:i.FooterText,FooterEmailSignup:i.FooterEmailSignup,FooterSocial:i.FooterSocial,FooterMessaging:i.FooterMessaging,FooterPayment:i.FooterPayment,LegalLineBlock:i.LegalLineBlock,SearchBlock:t.SearchBlock,CartBlock:t.CartBlock,CountrySwitchBlock:t.CountrySwitchBlock,AccountBlock:t.AccountBlock,ThemeSwitchBlock:t.ThemeSwitchBlock,[Q]:i.SiteHeader,[X]:i.SiteFooter}};Je(S.components);{const o=S.components.MenuBlock;o.fields={...o.fields,direction:P("Direction",a(ye,{}),[{label:v.column,value:"column"},{label:v.row,value:"row"}],C)};const c={type:"custom",render:({value:n,onChange:s})=>a(J,{value:n,onChange:s})},m=g({type:"custom",render:({value:n,onChange:s})=>a(Ae,{parts:lt,changed:n===!0,shown:()=>n===!0,onPress:(ft,j)=>s(j),onReset:()=>s(void 0)})},{not:{field:"direction",is:"column",default:C}});o.fields=Object.fromEntries(Object.entries(o.fields).flatMap(([n,s])=>n==="menu"?[["dataSource",Ye("Menu content","Manual")],[n,s],["linkRange",c],["currentPage",m]]:[[n,s]]));const T=o;T.resolveFields=(n,{fields:s})=>qe("MenuBlock",s,n.props,{hides:["menu"]}),T.resolveData=n=>{const s=ze(n.props);return s===n.props?n:{...n,props:s}},o.fields={...o.fields,linkAlign:xe({label:"Link alignment"}),...Object.fromEntries(Object.entries(Ie("menuStyle",P("Menu style",a(Le,{}),[{label:"Plain",value:k},{label:"Tabs",value:E},{label:"Menu button",value:M}],k))).map(([n,s])=>[n,g(s,{not:{field:"direction",is:"column",default:C}})])),...Object.fromEntries(Object.entries(pe(fe,Pe)).map(([n,s])=>[n,g(s,{all:[{not:{field:"menuStyle",is:k,default:k}},{not:{field:"menuStyle",is:E}}]})]))};const h={not:{field:"menuStyle",is:E}},f={not:{field:"menuStyle",is:M}};o.fields.linkRange=g(o.fields.linkRange,{all:[h,je]}),o.fields.linkAlign=g(o.fields.linkAlign,{all:[h,f]}),o.fields.direction=g(o.fields.direction,f)}{const o=S.components.Header,c=o.render;o.render=m=>m.editor?.isEditing?a(Qe,{editing:!0}):c(m)}const Pt=rt(S),Bo=Pt.sectionGroupAllow;var Eo=S;export{Bo as SECTION_GROUP_ALLOW,S as config,Eo as default,st as subscribePopupFields};
|
|
@@ -2,3 +2,4 @@ import { CART_DRAWER_KIND } from "efficient-web-builder/format/lib/content/cart-
|
|
|
2
2
|
import { POPUP_PAGE_KIND } from "efficient-web-builder/format/lib/popup/look";
|
|
3
3
|
export type FrameKind = typeof POPUP_PAGE_KIND | typeof CART_DRAWER_KIND;
|
|
4
4
|
export declare function popupLookFields(kind: FrameKind): Record<string, unknown>;
|
|
5
|
+
export declare function menuPanelLookFields(width: number, tintOpacity: number): Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{CloseIcon as P,CursorClickIcon as _,EyeIcon as C,FullWidthIcon as I,HeightIcon as g,OpacityIcon as s,PlacementIcon as T,WidthIcon as w}from"efficient-easel/icons";import{group as n}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as b}from"efficient-easel/screen/lib/document/device-fields";import{placementField as v,select as r,slider as c}from"efficient-web-builder/editor/lib/document/box-fields";import{colorInput as d,toggle as u}from"efficient-web-builder/editor/lib/document/controls";import{CART_DRAWER_KIND as E,resolveCartDrawerLook as R}from"efficient-web-builder/format/lib/content/cart-drawer";import{POPUP_LOOK_DEFAULTS as p,POPUP_TINT_OPACITY_RANGE as l,POPUP_WIDTH_RANGE as h}from"efficient-web-builder/format/lib/popup/look";import{withRowRules as k}from"efficient-web-builder/render/lib/document/show-when";const W={label:"Inside",value:"inside"},L={label:"None",value:"none"};function a(o){return Object.fromEntries(Object.entries(o).map(([t,i])=>[t,b("desktop",i)]))}function f(o,t){return{_gDesign:n("Color"),tintColor:d("Tint color",o),tintOpacity:c("Tint opacity",e(s,{}),l.min,l.max,5,t,"%")}}function O(o,t){return{_gBehavior:n("Behavior"),outsideClick:u("Outside click",o,e(_,{})),...t}}const N=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function m(o){return c("Width",e(w,{}),h.min,h.max,4,o,"px")}function H(o){if(o===E){const i=R(void 0);return a({_gSize:n("Width"),width:m(i.width),_gPosition:n("Placement"),placement:r("Placement",e(T,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],i.placement),...f(i.tintColor,i.tintOpacity),...O(i.outsideClick,{autoOpen:u("Auto open",i.autoOpen,e(C,{}))})})}const t=p;return k(a({_gSize:n("Width"),width:m(t.width),height:r("Height",e(g,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:n("Placement"),placement:v("Placement",{fallback:t.placement}),fullWidth:u("Full width",t.fullWidth,e(I,{})),...f(t.tintColor,t.tintOpacity),...O(t.outsideClick,{closeButton:r("Close button",e(P,{}),[W,{label:"Outside",value:"outside"},L],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],N])}function K(o,t){return a({menuPanelWidth:m(o),menuPanelTintColor:d("Tint color",p.tintColor),menuPanelTintOpacity:c("Tint opacity",e(s,{}),l.min,l.max,5,t,"%")})}export{K as menuPanelLookFields,H as popupLookFields};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function textKindStyleRows<K extends string>(kinds: readonly K[], propOf: Readonly<Record<K, string>>, labelOf: Readonly<Record<K, string>>, { unsetLabel }: {
|
|
2
|
+
readonly unsetLabel: string;
|
|
3
|
+
}): {
|
|
4
|
+
_gTextStyle: import("efficient-easel/screen/lib/document/box-fields").BoxField<undefined>;
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{FONT_ROLES as l,FONT_ROLE_LABELS as i}from"efficient-web-builder/format/lib/fonts";import{group as a}from"efficient-easel/screen/lib/document/box-fields";import{select as f}from"efficient-web-builder/editor/lib/document/box-fields";import{textKindGlyph as u}from"efficient-web-builder/editor/lib/document/blocks/shared-fields";function E(o,m,e,{unsetLabel:p}){return{_gTextStyle:a("Text style"),...Object.fromEntries(o.map(t=>[m[t],f(e[t],u(e[t]),[{label:p,value:""},...l.map(r=>({label:i[r],value:r}))],"")]))}}export{E as textKindStyleRows};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{registerBlockSources as
|
|
1
|
+
import{registerBlockSources as p}from"efficient-web-builder/format/lib/content/block-sources";import{cardTemplateFields as y,hasCardTemplate as k}from"efficient-web-builder/format/lib/content/card-template";import{say as e}from"efficient-web-builder/format/lib/editor-words";import{OPENING_SAMPLE_WEEK as S}from"../../render/lib/sections/opening-hours.js";import{PRODUCT_REVIEWS_SOURCE as b}from"../../render/lib/sections/reviews.js";import{MENU_BLOG_CATEGORIES_SOURCE as E,MENU_COUNT_FIELD as l}from"../../render/lib/content/menu-card-seed.js";const g=[{key:"group-offices",label:"Group offices",blocks:["Footprint"]},{key:b,label:"Product reviews",blocks:["Reviews"]}];p(g);const d="+00 000 0000",h={rooms:()=>[{key:"sample-1",title:e("First room"),excerpt:e("What this room has.")},{key:"sample-2",title:e("Second room"),excerpt:e("What this room has.")},{key:"sample-3",title:e("Third room"),excerpt:e("What this room has.")}],"location-contact":()=>[{key:"location",name:e("Location name"),address:e("Street address"),state:e("State"),country:e("Country"),phone:d,hours:e("Opening hours")}],"location-cards":()=>[{key:"where",name:e("Address"),note:e("Street address")},{key:"hours",name:e("Opening hours"),note:e("A line about it appears here.")},{key:"call",name:e("Phone"),note:d}],"location-footer":()=>[{text:e("Street address")},{text:d},{text:e("Opening hours")}],"location-rate-table":()=>{const o=t=>JSON.stringify([{column:e("Standard"),amount:"$000",standard:!1},{column:e("VIP"),amount:"$000",standard:t}]);return[{group:e("In-house"),label:e("Session · 60 min"),cells:o(!1)},{group:e("In-house"),label:e("Session · 60 min · Night"),cells:o(!0)},{group:e("Away"),label:e("Session · 60 min"),cells:o(!1)}]},"location-opening":()=>[{week:S,zone:"Australia/Sydney",hours:""}],"site-messaging":()=>[{app:"wechat",name:"WeChat",handle:"yourvenue",href:"",qr:"https://u.wechat.com/yourvenue"},{app:"telegram",name:"Telegram",handle:"@yourvenue",href:"https://t.me/yourvenue",qr:"https://t.me/yourvenue"},{app:"whatsapp",name:"WhatsApp",handle:"0400 000 000",href:"https://wa.me/61400000000",qr:"https://wa.me/61400000000"},{app:"line",name:"LINE",handle:"yourvenue",href:"https://line.me/ti/p/~yourvenue",qr:"https://line.me/ti/p/~yourvenue"}],[E]:()=>[{label:e("First category"),href:"/journal",[l]:"12"},{label:e("Second category"),href:"/journal",[l]:"8"},{label:e("Third category"),href:"/journal",[l]:"3"}],"location-payment-methods":()=>[{label:e("Cash"),kind:"cash"},{label:e("Card"),kind:"card"}],"shop-payment-methods":()=>[{label:"Visa / Mastercard / American Express",kind:"card"},{label:"PayPal",kind:""},{label:e("Bank transfer"),kind:"wire"}]},m=new Set(["Cards","MenuBlock"]),f={[l]:()=>e("Count"),name:()=>e("Name"),note:()=>e("Note"),price:()=>e("Price"),time:()=>e("Time")},O=o=>o.replace(/_([a-z0-9])/g,(t,s)=>s.toUpperCase());function _(o){const t=Array.isArray(o.blocks)?o.blocks:[];if(!t.some(r=>m.has(r))||t.some(r=>!m.has(r)&&k(r))||!Array.isArray(o.fields))return;const s=t.filter(r=>m.has(r)).flatMap(r=>y(r)),n=[];for(const r of o.fields){if(typeof r!="string"||!r.trim())continue;const a=O(r.trim());if(a==="key"||n.some(c=>c.key===a))continue;const i=s.find(c=>c.key===a),u=i?.kind==="image"||i?.kind==="link"?i.kind:void 0;n.push({key:a,label:i?.label??(Object.hasOwn(f,a)?f[a]():void 0)??a,...u?{kind:u}:{}})}return n.length?n:void 0}function v(o){if(Array.isArray(o))for(const t of o){const s=typeof t?.key=="string"&&Object.hasOwn(h,t.key)?h[t.key]():void 0;try{const n=_(t);p([{key:t.key,label:t.label,blocks:t.blocks,...s?{sample:s}:{},...n?{fields:n}:{}}])}catch{}}}export{g as EFFICIENT_BLOCK_SOURCES,v as registerServedBlockSources};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{storefrontAdmin as a}from"../../render/lib/api/index.js";import{absolutizeApiUrl as
|
|
1
|
+
import{storefrontAdmin as a}from"../../render/lib/api/index.js";import{absolutizeApiUrl as u}from"efficient-web-builder/render/lib/media";const t=new Map,i=e=>e??"";function p(e,r,l=!1){const n=i(r);l&&t.delete(n);let o=t.get(n);return o||(o=a.getHeaderSettings(e,r??void 0),t.set(n,o),o.catch(()=>{t.get(n)===o&&t.delete(n)})),o}function g(e,r){t.set(i(r),Promise.resolve(e))}function s(e){t.delete(i(e))}function m(e){return{logoUrl:u(e.effective_logo_url),reverseLogo:e.reverse_logo,logoPosition:e.logo_position,logoSize:e.logo_size,logoSizePx:e.logo_size_px,logoSizeUnit:e.logo_size_unit??null,menuItems:e.menu_items??[],menuSplit:e.menu_split??3,menuPosition:e.menu_position,menuRow:e.menu_row,menuGapPx:e.menu_gap_px??null,menuGapUnit:e.menu_gap_unit??null,searchEnabled:e.search_enabled,searchPosition:e.search_position,searchRow:e.search_row,countrySelectorEnabled:e.country_selector_enabled,countrySelectorShowAs:e.country_selector_show_as,countryUrls:e.country_urls??{},accountEnabled:e.account_enabled??!0,cartEnabled:e.cart_enabled??!0,utilStyle:e.util_style,navTextCase:e.nav_text_case,lightReverseText:e.light_reverse_text,topTextColor:e.top_text_color,transparentTop:e.transparent_top,surface:e.surface,theme:e.theme,width:e.width,heightPx:e.height_px,sticky:e.sticky,callButton:e.call_button??!1}}export{s as clearHeaderSettingsCache,p as loadHeaderSettings,g as primeHeaderSettings,m as toPreviewHeaderSettings};
|
|
@@ -44,7 +44,6 @@ export declare const STOREFRONT_BLOCKS_WORDS: {
|
|
|
44
44
|
readonly "Alloy wheels": "Alloy wheels";
|
|
45
45
|
readonly "Also filters the grids below": "Also filters the grids below";
|
|
46
46
|
readonly "Alt name": "Alt name";
|
|
47
|
-
readonly Always: "Always";
|
|
48
47
|
readonly "Always 2 lines": "Always 2 lines";
|
|
49
48
|
readonly "Always 2 lines keeps every name in a row the same height. Fit the name uses only the lines the name needs.": "Always 2 lines keeps every name in a row the same height. Fit the name uses only the lines the name needs.";
|
|
50
49
|
readonly Analytics: "Analytics";
|
|
@@ -126,6 +125,7 @@ export declare const STOREFRONT_BLOCKS_WORDS: {
|
|
|
126
125
|
readonly Colour: "Colour";
|
|
127
126
|
readonly "Column heading": "Column heading";
|
|
128
127
|
readonly "Columns per line": "Columns per line";
|
|
128
|
+
readonly "Company (optional)": "Company (optional)";
|
|
129
129
|
readonly "Compatible *tyres.*": "Compatible *tyres.*";
|
|
130
130
|
readonly "Compatible tyres": "Compatible tyres";
|
|
131
131
|
readonly "Compatible wheels": "Compatible wheels";
|
|
@@ -200,6 +200,7 @@ export declare const STOREFRONT_BLOCKS_WORDS: {
|
|
|
200
200
|
readonly "Every spec row (lug count, bolt pattern, offset, center bore, load rating, bump profile\u2026) comes from the product record \u2014 edit its part numbers in the Products database and this table updates to match. You still choose which finish to picture and an optional size.": "Every spec row (lug count, bolt pattern, offset, center bore, load rating, bump profile…) comes from the product record — edit its part numbers in the Products database and this table updates to match. You still choose which finish to picture and an optional size.";
|
|
201
201
|
readonly "Example form \u2014 add an active service in {place}.": "Example form — add an active service in {place}.";
|
|
202
202
|
readonly Exit: "Exit";
|
|
203
|
+
readonly Explore: "Explore";
|
|
203
204
|
readonly Express: "Express";
|
|
204
205
|
readonly "Eyebrow badge": "Eyebrow badge";
|
|
205
206
|
readonly "Eyebrow text": "Eyebrow text";
|
|
@@ -276,6 +277,7 @@ export declare const STOREFRONT_BLOCKS_WORDS: {
|
|
|
276
277
|
readonly "Header settings": "Header settings";
|
|
277
278
|
readonly "Header shows \u201C{name}\u201D \u2014 {n} link.": "Header shows “{name}” — {n} link.";
|
|
278
279
|
readonly "Header shows \u201C{name}\u201D \u2014 {n} links.": "Header shows “{name}” — {n} links.";
|
|
280
|
+
readonly "Header's own": "Header's own";
|
|
279
281
|
readonly "Heading accent": "Heading accent";
|
|
280
282
|
readonly "Heading override": "Heading override";
|
|
281
283
|
readonly "Heading size": "Heading size";
|
|
@@ -286,6 +288,7 @@ export declare const STOREFRONT_BLOCKS_WORDS: {
|
|
|
286
288
|
readonly "Hours from": "Hours from";
|
|
287
289
|
readonly "How much room the menu leaves the logo. Only the logo moves away; the space between the menu words stays as it is.": "How much room the menu leaves the logo. Only the logo moves away; the space between the menu words stays as it is.";
|
|
288
290
|
readonly "Hub bore": "Hub bore";
|
|
291
|
+
readonly "Icon and text": "Icon and text";
|
|
289
292
|
readonly "Icon size": "Icon size";
|
|
290
293
|
readonly "Icon style": "Icon style";
|
|
291
294
|
readonly "Image / buy ratio": "Image / buy ratio";
|
|
@@ -360,9 +363,9 @@ export declare const STOREFRONT_BLOCKS_WORDS: {
|
|
|
360
363
|
readonly Make: "Make";
|
|
361
364
|
readonly "Manage menus \u2192": "Manage menus →";
|
|
362
365
|
readonly Marker: "Marker";
|
|
363
|
-
readonly Max: "Max";
|
|
364
366
|
readonly "Media group": "Media group";
|
|
365
367
|
readonly "Menu Item": "Menu Item";
|
|
368
|
+
readonly "Menu button": "Menu button";
|
|
366
369
|
readonly "Menu content": "Menu content";
|
|
367
370
|
readonly "Menu link": "Menu link";
|
|
368
371
|
readonly "Menu row": "Menu row";
|
|
@@ -375,7 +378,6 @@ export declare const STOREFRONT_BLOCKS_WORDS: {
|
|
|
375
378
|
readonly "Meta label": "Meta label";
|
|
376
379
|
readonly "Meta lines": "Meta lines";
|
|
377
380
|
readonly "Methods from": "Methods from";
|
|
378
|
-
readonly Min: "Min";
|
|
379
381
|
readonly Model: "Model";
|
|
380
382
|
readonly "Month YYYY": "Month YYYY";
|
|
381
383
|
readonly "More images": "More images";
|
|
@@ -728,6 +730,7 @@ export declare const STOREFRONT_BLOCKS_WORDS: {
|
|
|
728
730
|
readonly "What this room has.": "What this room has.";
|
|
729
731
|
readonly "What would you like to cover?": "What would you like to cover?";
|
|
730
732
|
readonly Wheel: "Wheel";
|
|
733
|
+
readonly "Wheel Diagram": "Wheel Diagram";
|
|
731
734
|
readonly "Wheel Spec": "Wheel Spec";
|
|
732
735
|
readonly Wheels: "Wheels";
|
|
733
736
|
readonly "Where the answers go": "Where the answers go";
|