efficient-storefront-blocks 0.94.0 → 0.95.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 +24 -0
- package/README.md +1 -0
- package/dist/chunks/{EditorPreviewCheckout-OPDSFBJH.js → EditorPreviewCheckout-3F3CP5MR.js} +1 -1
- package/dist/chunks/{SiteEditorProvider-ZP6NAWYT.js → SiteEditorProvider-HN7TFLUJ.js} +1 -1
- package/dist/chunks/chunk-7SMQDDLZ.js +1 -0
- package/dist/chunks/{chunk-ATCBSW73.js → chunk-CYLLSHDF.js} +1 -1
- package/dist/chunks/chunk-SUKEQRMP.js +389 -0
- package/dist/chunks/{chunk-CEFKTE5A.js → chunk-WLMM7L6N.js} +1 -1
- package/dist/chunks/{fitment-data-IPAMN5IH.js → fitment-data-Z62WUQGC.js} +1 -1
- package/dist/editor/lib/document/blocks/commerce/AlloyWheelsListing/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/AppointmentBooking/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/BookingBox/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/ContactRouting/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/index.d.ts +1 -1
- package/dist/editor/lib/storefront-editor-words.d.ts +1 -1
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.js +33 -33
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/AppointmentBooking.d.ts +3 -1
- package/dist/render/components/AppointmentBooking.js +1 -1
- package/dist/render/components/ContactRouting.d.ts +9 -1
- package/dist/render/components/ContactRouting.js +1 -1
- package/dist/render/components/CountrySelect.js +1 -1
- package/dist/render/components/FooterMenu.js +1 -1
- package/dist/render/components/MenuLinkBlock.js +1 -1
- package/dist/render/components/SpecTable.js +1 -1
- package/dist/render/components/booking/BookingBox.d.ts +5 -1
- package/dist/render/components/booking/BookingBox.js +1 -1
- package/dist/render/components/booking/BookingFormState.d.ts +9 -0
- package/dist/render/components/booking/BookingFormState.js +1 -1
- package/dist/render/components/booking/BookingRegions.d.ts +9 -1
- package/dist/render/components/booking/BookingRegions.js +1 -1
- package/dist/render/components/card-ground-cell.d.ts +2 -0
- package/dist/render/components/card-ground-cell.js +1 -0
- package/dist/render/components/wheels-plp/AlloyWheelsListing.d.ts +2 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
- package/dist/render/components/wheels-plp/PlpFacetRows.d.ts +14 -0
- package/dist/render/components/wheels-plp/PlpFacetRows.js +1 -0
- package/dist/render/components/wheels-plp/PlpSidebar.d.ts +7 -1
- package/dist/render/components/wheels-plp/PlpSidebar.js +1 -1
- package/dist/render/components/wheels-plp/PlpTypePicker.d.ts +8 -2
- package/dist/render/components/wheels-plp/PlpTypePicker.js +1 -1
- package/dist/render/lib/booking/appointment-time.d.ts +1 -0
- package/dist/render/lib/booking/appointment-time.js +1 -1
- package/dist/render/lib/content/booking-card-seed.d.ts +31 -0
- package/dist/render/lib/content/booking-card-seed.js +1 -0
- package/dist/render/lib/content/contact-card-seed.d.ts +11 -0
- package/dist/render/lib/content/contact-card-seed.js +1 -0
- package/dist/render/lib/content/copy-mark.d.ts +1 -0
- package/dist/render/lib/content/copy-mark.js +1 -0
- package/dist/render/lib/content/facet-row-seed.d.ts +139 -0
- package/dist/render/lib/content/facet-row-seed.js +1 -0
- package/dist/render/lib/content/tab-strip.d.ts +3 -2
- package/dist/render/lib/content/tab-strip.js +1 -1
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/meta.d.ts +4 -0
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/render.js +1 -1
- package/dist/render/lib/document/blocks/service/AppointmentBooking/meta.d.ts +8 -0
- package/dist/render/lib/document/blocks/service/AppointmentBooking/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/AppointmentBooking/render.js +1 -1
- package/dist/render/lib/document/blocks/service/BookingBox/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/BookingBox/render.js +1 -1
- package/dist/render/lib/document/blocks/service/ContactRouting/meta.d.ts +14 -0
- package/dist/render/lib/document/blocks/service/ContactRouting/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/ContactRouting/render.js +1 -1
- package/dist/render/lib/document/card-templates.js +1 -1
- package/dist/render/lib/document/storefront-root.js +1 -1
- package/dist/render/lib/menu-link.d.ts +1 -0
- package/dist/render/lib/menu-link.js +1 -1
- package/dist/render/lib/sections/filter-option-rows.d.ts +5 -4
- package/dist/render/lib/sections/filter-option-rows.js +1 -1
- package/dist/render/lib/wheels/plp-filters.d.ts +4 -0
- package/dist/render/lib/wheels/plp-filters.js +1 -1
- package/dist/words.d.ts +12 -1
- package/dist/words.js +4 -4
- package/package.json +2 -2
- package/dist/chunks/chunk-JKJ76CRT.js +0 -388
- package/dist/chunks/chunk-JTDOMQMQ.js +0 -1
- /package/dist/chunks/{chunk-LRLOANKA.js → chunk-GW5M2ATK.js} +0 -0
- /package/dist/chunks/{chunk-JKJ76CRT.js.LEGAL.txt → chunk-SUKEQRMP.js.LEGAL.txt} +0 -0
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SlotComponent } from "efficient-easel/blocks";
|
|
2
|
+
import { type PlpTypeOption } from "../../lib/wheels/plp-filters.js";
|
|
2
3
|
import type { ProductKind } from "../../lib/api/index.js";
|
|
3
|
-
export default function PlpTypePicker({ options, noun, onPick, }: {
|
|
4
|
+
export default function PlpTypePicker({ options, noun, onPick, owner, editing, }: {
|
|
4
5
|
options: PlpTypeOption[];
|
|
5
6
|
noun: string;
|
|
6
7
|
onPick: (kind: ProductKind | null) => void;
|
|
8
|
+
owner: {
|
|
9
|
+
id: string;
|
|
10
|
+
facetTemplate?: SlotComponent;
|
|
11
|
+
};
|
|
12
|
+
editing?: boolean;
|
|
7
13
|
}): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{isDeadPlpOption as s}from"../../lib/wheels/plp-filters.js";import{typeRow as p}from"../../lib/content/facet-row-seed.js";import{optionCardRows as i}from"../../lib/sections/filter-option-rows.js";import m from"./PlpFacetRows.js";function f({options:r,noun:c,onPick:a,owner:l,editing:o=!1}){if(r.length===0)return null;const d=i(r,{item:e=>p(e,e.checked),selected:e=>e.checked,press:e=>()=>a(e.kind),label:e=>`${e.label} (${e.count} ${c})`,disabled:s});return n("fieldset",{className:"rounded-lg border border-accent/35 bg-accent/[0.05] px-3 pb-3 pt-3",children:[t("legend",{className:"px-0 font-mono text-[11px] uppercase tracking-[0.2em] text-accent",children:"Product type"}),t(m,{owner:l,rows:d,dead:r.map(s),className:"pt-2",editing:o})]})}export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const i=void 0,r={hour:"numeric",minute:"2-digit"},o={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"};function a(t,e){try{return new Intl.DateTimeFormat(void 0,{...r,timeZone:e}).format(new Date(t))}catch{return new Date(t).toLocaleTimeString([],r)}}function m(t,e){try{return new Intl.DateTimeFormat(void 0,{...o,timeZone:e}).format(new Date(t))}catch{return new Date(t).toLocaleString()}}function c(t,e){const n=Date.parse(t);return Number.isFinite(n)&&n<=e}export{m as formatAppointment,a as formatAppointmentTime,c as startHasPassed};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type CardRowFieldSpec } from "efficient-web-builder/format/lib/content/card-template";
|
|
2
|
+
import { type SeededNode } from "efficient-web-builder/format/lib/document/seed-parts";
|
|
3
|
+
type Props = Record<string, unknown>;
|
|
4
|
+
export declare const BOOKING_SERVICE_SLOT = "serviceTemplate";
|
|
5
|
+
export declare const BOOKING_TIME_SLOT = "timeTemplate";
|
|
6
|
+
export declare const BOOKING_TEMPLATE_SLOTS: readonly [{
|
|
7
|
+
readonly slot: "serviceTemplate";
|
|
8
|
+
readonly label: "Service template";
|
|
9
|
+
}, {
|
|
10
|
+
readonly slot: "timeTemplate";
|
|
11
|
+
readonly label: "Time template";
|
|
12
|
+
}];
|
|
13
|
+
export declare const BOOKING_OPTION_FIELDS: readonly CardRowFieldSpec[];
|
|
14
|
+
export declare const BOOKING_OPTION_ALLOW: readonly ["Text", "Flex"];
|
|
15
|
+
export declare const BOOKING_TEMPLATE_SLOT_FIELDS: {
|
|
16
|
+
serviceTemplate: {
|
|
17
|
+
type: "slot";
|
|
18
|
+
allow: ("Flex" | "Text")[];
|
|
19
|
+
};
|
|
20
|
+
timeTemplate: {
|
|
21
|
+
type: "slot";
|
|
22
|
+
allow: ("Flex" | "Text")[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare const BOOKING_BOX_TYPE = "BookingBox";
|
|
26
|
+
export declare const APPOINTMENT_BOOKING_TYPE = "AppointmentBooking";
|
|
27
|
+
export declare function bookingServiceSeed(nodeId: string, props?: Props): SeededNode[];
|
|
28
|
+
export declare function bookingTimeSeed(nodeId: string, props?: Props): SeededNode[];
|
|
29
|
+
export declare function drawsBookingStep(type: string, props: Props): boolean;
|
|
30
|
+
export declare function withBookingTemplates(type: string, props: Props): Props;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{BOX_HIDE_WHEN_ROW_EMPTY as d}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as o,CONTAINER_BLOCKS_SLOT as s}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as a}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{BOX as T,DIM as O,INNER_BOX as g,TEXT as _,boxPadding as f,seedNodes as S}from"efficient-web-builder/format/lib/document/seed-parts";import{parseSectionHeadPlacement as x}from"efficient-web-builder/format/lib/sections/section-head-placement";import{BOOKING_KIND_PROP as I,bookingKindRole as b}from"../booking/text-kinds.js";const p="serviceTemplate",u="timeTemplate",X=[{slot:p,label:"Service template"},{slot:u,label:"Time template"}],$=[{key:"name",label:"Service"},{key:"meta",label:"Duration · price"},{key:"description",label:"Service description",multiline:!0},{key:"time",label:"Time"},{key:"businessTime",label:"Business time"}],B=["Text",o],W={[p]:{type:"slot",allow:[...B]},[u]:{type:"slot",allow:[...B]}},P="BookingBox",k="AppointmentBooking",l=(e,t,n={})=>({fontRole:e,size:t,...n});function c(e,t,n,i=!1){const r=b(n[I[t]]);if(!r)return e;const{fontRole:w,size:N,...E}=e;return{...E,role:r,...i?{size:N}:{}}}const m={lineHeight:1.5};function y(e){return{type:o,props:{...T,direction:"column",name:"Service",justify:"center",gap:12,gapPhone:12,...f(16,16),sectionBorder:{width:1}},slots:{[s]:[{type:o,props:{...g,name:"Words",gap:4,gapPhone:4},slots:{[s]:[a("name",{..._,tag:"span"},c(l("heading",18,{weight:500,...m}),"name",e)),a("meta",{...O,tag:"span"},c(l("label",11,{case:"upper",letterSpacing:.14,...m}),"value",e))]}},{type:o,props:{...g,name:"Description",[d]:["description"]},slots:{[s]:[a("description",{...O,tag:"span"},c(l("heading",14,m),"note",e))]}}]}}}function h(e){return{type:o,props:{...T,direction:"column",name:"Time",align:"center",justify:"center",gap:2,gapPhone:2,...f(8,12),sectionBorder:{width:1},sectionHeightMode:"fixed",sectionHeightValue:44,sectionHeightUnit:"px"},slots:{[s]:[a("time",{..._,tag:"span"},c(l("label",12,{weight:600,case:"upper",letterSpacing:.12,align:"center",...m}),"value",e)),{type:o,props:{...g,name:"Business time",align:"center",[d]:["businessTime"]},slots:{[s]:[a("businessTime",{...O,tag:"span"},c(l("label",9,{case:"upper",letterSpacing:.08,align:"center",...m}),"value",e,!0))]}}]}}}function L(e,t={}){return S([y(t)],(n,i)=>i==="0"?`${e}~service`:`${e}~service.${i.slice(2)}`)}function v(e,t={}){return S([h(t)],(n,i)=>i==="0"?`${e}~time`:`${e}~time.${i.slice(2)}`)}function K(e,t){return e===P?t.region==="booking":e===k?t.layout!=="boxes"||x(t.headPlacement)==="own-box":!1}function Y(e,t){if(!K(e,t))return t;const n=t[p]===void 0,i=t[u]===void 0;if(!n&&!i)return t;const r=typeof t.id=="string"&&t.id.trim()?t.id:e;return{...t,...n?{[p]:L(r,t)}:{},...i?{[u]:v(r,t)}:{}}}export{k as APPOINTMENT_BOOKING_TYPE,P as BOOKING_BOX_TYPE,B as BOOKING_OPTION_ALLOW,$ as BOOKING_OPTION_FIELDS,p as BOOKING_SERVICE_SLOT,X as BOOKING_TEMPLATE_SLOTS,W as BOOKING_TEMPLATE_SLOT_FIELDS,u as BOOKING_TIME_SLOT,L as bookingServiceSeed,v as bookingTimeSeed,K as drawsBookingStep,Y as withBookingTemplates};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type BlockSeed } from "efficient-web-builder/format/lib/document/seed-parts";
|
|
2
|
+
type Props = Record<string, unknown>;
|
|
3
|
+
export declare const CONTACT_TOPIC_SLOT = "template";
|
|
4
|
+
export declare const CONTACT_REASON_SLOT = "reasonTemplate";
|
|
5
|
+
export declare const CONTACT_CHANNEL_SLOT = "channelTemplate";
|
|
6
|
+
export declare const CONTACT_TEMPLATE_ALLOW: readonly ["Text", "ImageBlock", "Flex"];
|
|
7
|
+
export declare const contactTopicSeed: () => BlockSeed;
|
|
8
|
+
export declare const contactReasonSeed: () => BlockSeed;
|
|
9
|
+
export declare const contactChannelSeed: () => BlockSeed;
|
|
10
|
+
export declare function withContactTemplates(props: Props): Props;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{BOX_HIDE_WHEN_ROW_EMPTY as m,CARD_ROW_LINK_PROP as C}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as o,CONTAINER_BLOCKS_SLOT as s}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as n}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{BOX as E,DIM as d,INNER_BOX as S,LABEL_FACE as P,TEXT as l,boxPadding as r,seedNodes as N,token as g}from"efficient-web-builder/format/lib/document/seed-parts";const T="template",_="reasonTemplate",L="channelTemplate",M=["Text","ImageBlock",o],p=(t,e)=>({...P,...g("label",t),letterSpacing:e,lineHeight:1.5}),u={...p(12,.24),color:"main"},w={textStyle:"heading-3",...g("headingSmall",26),weight:500,case:"upper",lineHeight:1.05,letterSpacing:-.02},x={textStyle:"heading-1",...g("body",14),weight:400,case:"none",lineHeight:1.5,letterSpacing:0,color:"muted"},f=p(12,.22),y=p(12,.2),A={...p(12,.3),color:"main"},R={textStyle:"heading-3",...g("headingSmall",24),weight:500,case:"none",lineHeight:1.2,letterSpacing:-.02},H={...p(12,.2),color:"muted"},c=(t,e,i={})=>({...S,name:t,gap:e,gapPhone:e,...i}),b=()=>({type:o,props:c("Topic",16,{justify:"between",...r(40,32),sectionHeightMode:"fixed",sectionHeightValue:240,sectionHeightUnit:"px"}),slots:{[s]:[{type:o,props:c("Head",16),slots:{[s]:[n("eyebrow",{...l,tag:"p",widthFit:"fill"},u),n("title",{...l,tag:"h3",widthFit:"fill"},w)]}},{type:o,props:c("Foot",24),slots:{[s]:[n("copy",{...d,tag:"p",widthFit:"fill"},x),{type:o,props:{...E,name:"Response",direction:"row",justify:"between",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",...r(0,0),sectionPaddingTop:16,sectionPaddingTopPhone:16,sectionBorder:{top:1},[m]:["response"]},slots:{[s]:[{type:"Text",props:{...d,tag:"p",text:"Response",_partStyles:{text:f}}},n("response",{...l,tag:"p"},f)]}}]}}]}}),B=()=>({type:o,props:{...c("Reason",0),...r(12,16),sectionBorder:{width:1}},slots:{[s]:[n("title",{...d,tag:"p"},y)]}}),K=()=>({type:o,props:{...c("Channel",12),...r(32,20,20,20),sectionPaddingLeft:22,sectionPaddingTopTablet:20,sectionPaddingRightTablet:20,sectionPaddingBottomTablet:20,sectionPaddingLeftTablet:20,sectionBorder:{bottom:1}},slots:{[s]:[n("label",{...l,tag:"p",widthFit:"fill"},A),{type:o,props:{...c("Value",0),[C]:"href"},slots:{[s]:[n("value",{...l,tag:"p",widthFit:"fill"},R)]}},n("sub",{...d,tag:"p",widthFit:"fill"},H)]}});function h(t,e,i){return N([t],(O,a)=>a==="0"?`${e}~${i}`:`${e}~${i}.${a.slice(2)}`)}const F=t=>typeof t.id=="string"&&t.id.trim()?t.id:"ContactRouting";function Y(t){const e=t[T]===void 0,i=t[_]===void 0,O=t[L]===void 0;if(!e&&!i&&!O)return t;const a=F(t);return{...t,...e?{[T]:h(b(),a,"topic")}:{},...i?{[_]:h(B(),a,"reason")}:{},...O?{[L]:h(K(),a,"channel")}:{}}}export{L as CONTACT_CHANNEL_SLOT,_ as CONTACT_REASON_SLOT,M as CONTACT_TEMPLATE_ALLOW,T as CONTACT_TOPIC_SLOT,K as contactChannelSeed,B as contactReasonSeed,b as contactTopicSeed,Y as withContactTemplates};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const COPY_MARK: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t="[&_sup.text-accent.tracking-normal]:static [&_sup.text-accent.tracking-normal]:align-baseline [&_sup.text-accent.tracking-normal]:[font-size:inherit] [&_sup.text-accent.tracking-normal]:text-current [&_sup.text-accent.tracking-normal]:tracking-[inherit]";export{t as COPY_MARK};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { type SeededNode } from "efficient-web-builder/format/lib/document/seed-parts";
|
|
2
|
+
type Props = Record<string, unknown>;
|
|
3
|
+
export declare const FACET_TEMPLATE_SLOT = "facetTemplate";
|
|
4
|
+
export declare const FACET_TEMPLATE_LABEL = "Filter option template";
|
|
5
|
+
export declare const FACET_ROW_FIELDS: readonly [{
|
|
6
|
+
readonly key: "facetLabel";
|
|
7
|
+
readonly label: "Filter option";
|
|
8
|
+
}, {
|
|
9
|
+
readonly key: "facetName";
|
|
10
|
+
readonly label: "Type name";
|
|
11
|
+
}, {
|
|
12
|
+
readonly key: "facetCount";
|
|
13
|
+
readonly label: "Option count";
|
|
14
|
+
}, {
|
|
15
|
+
readonly key: "facetColour";
|
|
16
|
+
readonly label: "Option colour";
|
|
17
|
+
readonly kind: "colour";
|
|
18
|
+
}, {
|
|
19
|
+
readonly key: "facetTickFill";
|
|
20
|
+
readonly label: "Tick box fill";
|
|
21
|
+
readonly kind: "colour";
|
|
22
|
+
}, {
|
|
23
|
+
readonly key: "facetTick";
|
|
24
|
+
readonly label: "Tick mark";
|
|
25
|
+
readonly kind: "image";
|
|
26
|
+
}, {
|
|
27
|
+
readonly key: "facetTickMark";
|
|
28
|
+
readonly label: "Tick box shown";
|
|
29
|
+
}, {
|
|
30
|
+
readonly key: "facetRadioMark";
|
|
31
|
+
readonly label: "Round mark shown";
|
|
32
|
+
}, {
|
|
33
|
+
readonly key: "facetDot";
|
|
34
|
+
readonly label: "Round mark dot";
|
|
35
|
+
readonly kind: "colour";
|
|
36
|
+
}];
|
|
37
|
+
export declare const FACET_TICK_MARK = "sf-facet-tick-picture";
|
|
38
|
+
export declare const FACET_TICK: string;
|
|
39
|
+
export declare const FACET_TICK_VAR = "--sf-facet-tick";
|
|
40
|
+
export declare const FACET_TICK_INK_CLASS: string;
|
|
41
|
+
export type FacetRow = Record<(typeof FACET_ROW_FIELDS)[number]["key"], string>;
|
|
42
|
+
export declare function facetRow(option: {
|
|
43
|
+
label: string;
|
|
44
|
+
count: number;
|
|
45
|
+
swatch: string | null;
|
|
46
|
+
}, picked: boolean): FacetRow;
|
|
47
|
+
export declare function typeRow(option: {
|
|
48
|
+
label: string;
|
|
49
|
+
count: number;
|
|
50
|
+
}, picked: boolean): FacetRow;
|
|
51
|
+
export declare const FACET_TEMPLATE_ALLOW: readonly ["Text", "ImageBlock", "Flex"];
|
|
52
|
+
export declare const NAMED_EXCEPTIONS: readonly [{
|
|
53
|
+
readonly part: "facetLabel";
|
|
54
|
+
readonly kind: "size";
|
|
55
|
+
readonly value: 13;
|
|
56
|
+
readonly reason: "The old rail's option words were 13 px; kept so no facet word moves.";
|
|
57
|
+
readonly owner: "storefront sections owner";
|
|
58
|
+
readonly due: "2026-12-18";
|
|
59
|
+
}, {
|
|
60
|
+
readonly part: "facetName";
|
|
61
|
+
readonly kind: "size";
|
|
62
|
+
readonly value: 13;
|
|
63
|
+
readonly reason: "A type's name takes the facet words' 13 px, so the type picker has the same rail look.";
|
|
64
|
+
readonly owner: "storefront sections owner";
|
|
65
|
+
readonly due: "2026-12-18";
|
|
66
|
+
}, {
|
|
67
|
+
readonly part: "Option";
|
|
68
|
+
readonly kind: "gap";
|
|
69
|
+
readonly value: 10;
|
|
70
|
+
readonly reason: "The old rail's 10 px between the option and its count; kept so no word moves.";
|
|
71
|
+
readonly owner: "storefront sections owner";
|
|
72
|
+
readonly due: "2026-12-18";
|
|
73
|
+
}, {
|
|
74
|
+
readonly part: "Choice";
|
|
75
|
+
readonly kind: "gap";
|
|
76
|
+
readonly value: 10;
|
|
77
|
+
readonly reason: "The old rail's 10 px between tick box, dot and words; kept so no word moves.";
|
|
78
|
+
readonly owner: "storefront sections owner";
|
|
79
|
+
readonly due: "2026-12-18";
|
|
80
|
+
}, {
|
|
81
|
+
readonly part: "Tick box";
|
|
82
|
+
readonly kind: "padding";
|
|
83
|
+
readonly value: 1;
|
|
84
|
+
readonly reason: "The 1 px ring round the tick box, drawn as the Box's own Fill inside 1 px padding.";
|
|
85
|
+
readonly owner: "storefront sections owner";
|
|
86
|
+
readonly due: "2026-12-18";
|
|
87
|
+
}, {
|
|
88
|
+
readonly part: "Radio";
|
|
89
|
+
readonly kind: "padding";
|
|
90
|
+
readonly value: 1;
|
|
91
|
+
readonly reason: "The 1 px ring round the round mark, drawn as the Box's own Fill inside 1 px padding.";
|
|
92
|
+
readonly owner: "storefront sections owner";
|
|
93
|
+
readonly due: "2026-12-18";
|
|
94
|
+
}, {
|
|
95
|
+
readonly part: "Radio ground";
|
|
96
|
+
readonly kind: "padding";
|
|
97
|
+
readonly value: 3;
|
|
98
|
+
readonly reason: "The 3 px between the round mark's ring and its 8 px dot, as the browser's own radio.";
|
|
99
|
+
readonly owner: "storefront sections owner";
|
|
100
|
+
readonly due: "2026-12-18";
|
|
101
|
+
}, {
|
|
102
|
+
readonly part: "Tick";
|
|
103
|
+
readonly kind: "box";
|
|
104
|
+
readonly value: 14;
|
|
105
|
+
readonly reason: "The tick box's ground inside its 1 px ring: 16 px less the ring each side, the browser's own checkbox size.";
|
|
106
|
+
readonly owner: "storefront sections owner";
|
|
107
|
+
readonly due: "2026-12-18";
|
|
108
|
+
}, {
|
|
109
|
+
readonly part: "Radio ground";
|
|
110
|
+
readonly kind: "box";
|
|
111
|
+
readonly value: 14;
|
|
112
|
+
readonly reason: "The round mark's ground inside its 1 px ring: 16 px less the ring each side, the browser's own radio size.";
|
|
113
|
+
readonly owner: "storefront sections owner";
|
|
114
|
+
readonly due: "2026-12-18";
|
|
115
|
+
}, {
|
|
116
|
+
readonly part: "Ring";
|
|
117
|
+
readonly kind: "box";
|
|
118
|
+
readonly value: 13;
|
|
119
|
+
readonly reason: "The colour dot's 1 px ring as the old rail drew it (13 px round); kept so no swatch or word moves.";
|
|
120
|
+
readonly owner: "storefront sections owner";
|
|
121
|
+
readonly due: "2026-12-18";
|
|
122
|
+
}, {
|
|
123
|
+
readonly part: "Colour";
|
|
124
|
+
readonly kind: "box";
|
|
125
|
+
readonly value: 11;
|
|
126
|
+
readonly reason: "The colour dot inside its 1 px ring (13 px less the ring each side), as the old rail drew it.";
|
|
127
|
+
readonly owner: "storefront sections owner";
|
|
128
|
+
readonly due: "2026-12-18";
|
|
129
|
+
}, {
|
|
130
|
+
readonly part: "aside";
|
|
131
|
+
readonly kind: "padding";
|
|
132
|
+
readonly value: 22;
|
|
133
|
+
readonly reason: "The rail box's right padding at lg (PlpSidebar lg:pr-[22px]): 12 px room for the picked frame plus main's 10 px scrollbar room, so the content stays main's 258 px wide.";
|
|
134
|
+
readonly owner: "storefront sections owner";
|
|
135
|
+
readonly due: "2026-12-18";
|
|
136
|
+
}];
|
|
137
|
+
export declare function facetRowSeed(nodeId: string): SeededNode[];
|
|
138
|
+
export declare function withFacetTemplate(props: Props): Props;
|
|
139
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{BOX_SWATCH_PROP as d}from"efficient-web-builder/format/lib/content/box-background";import{BOX_ROW_IMAGE_PROP as x}from"efficient-web-builder/format/lib/content/box-card-rule";import{BOX_HIDE_WHEN_ROW_EMPTY as p}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as t,CONTAINER_BLOCKS_SLOT as n}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as k}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{BOX as _,DIM as C,INNER_BOX as s,TEXT as m,boxPadding as c,seedNodes as b}from"efficient-web-builder/format/lib/document/seed-parts";const T="facetTemplate",I="Filter option template",B=[{key:"facetLabel",label:"Filter option"},{key:"facetName",label:"Type name"},{key:"facetCount",label:"Option count"},{key:"facetColour",label:"Option colour",kind:"colour"},{key:"facetTickFill",label:"Tick box fill",kind:"colour"},{key:"facetTick",label:"Tick mark",kind:"image"},{key:"facetTickMark",label:"Tick box shown"},{key:"facetRadioMark",label:"Round mark shown"},{key:"facetDot",label:"Round mark dot",kind:"colour"}],y="sf-facet-tick-picture",E="data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%271%200.75%2014%2014%27%20id%3D%27"+y+"%27%3E%3Cpath%20d%3D%27M3.2%208%206.4%2011.2%2012.8%203.2%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.56%27%2F%3E%3C%2Fsvg%3E",W="--sf-facet-tick",K="[&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[background-image:none]! [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[background-color:var(--accent-ink)]! [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[-webkit-mask:var(--sf-facet-tick)_center/cover_no-repeat] [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[mask:var(--sf-facet-tick)_center/cover_no-repeat]";function X(e,r){return{facetLabel:e.label,facetName:"",facetCount:String(e.count),facetColour:e.swatch??"",facetTickFill:r?"main":"",facetTick:r?E:"",facetTickMark:"tick",facetRadioMark:"",facetDot:""}}function H(e,r){return{facetLabel:"",facetName:e.label,facetCount:String(e.count),facetColour:"",facetTickFill:r?"main":"",facetTick:"",facetTickMark:"",facetRadioMark:"radio",facetDot:r?"main":""}}const z=["Text","ImageBlock",t],h={..._,direction:"row",align:"center",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap"},i=(e,r)=>({...s,widthFit:"fixed",width:e,minWidth:e,sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",...r}),f=13,l=10,o="2026-12-18",a="storefront sections owner",G=[{part:"facetLabel",kind:"size",value:f,reason:"The old rail's option words were 13 px; kept so no facet word moves.",owner:a,due:o},{part:"facetName",kind:"size",value:f,reason:"A type's name takes the facet words' 13 px, so the type picker has the same rail look.",owner:a,due:o},{part:"Option",kind:"gap",value:l,reason:"The old rail's 10 px between the option and its count; kept so no word moves.",owner:a,due:o},{part:"Choice",kind:"gap",value:l,reason:"The old rail's 10 px between tick box, dot and words; kept so no word moves.",owner:a,due:o},{part:"Tick box",kind:"padding",value:1,reason:"The 1 px ring round the tick box, drawn as the Box's own Fill inside 1 px padding.",owner:a,due:o},{part:"Radio",kind:"padding",value:1,reason:"The 1 px ring round the round mark, drawn as the Box's own Fill inside 1 px padding.",owner:a,due:o},{part:"Radio ground",kind:"padding",value:3,reason:"The 3 px between the round mark's ring and its 8 px dot, as the browser's own radio.",owner:a,due:o},{part:"Tick",kind:"box",value:14,reason:"The tick box's ground inside its 1 px ring: 16 px less the ring each side, the browser's own checkbox size.",owner:a,due:o},{part:"Radio ground",kind:"box",value:14,reason:"The round mark's ground inside its 1 px ring: 16 px less the ring each side, the browser's own radio size.",owner:a,due:o},{part:"Ring",kind:"box",value:13,reason:"The colour dot's 1 px ring as the old rail drew it (13 px round); kept so no swatch or word moves.",owner:a,due:o},{part:"Colour",kind:"box",value:11,reason:"The colour dot inside its 1 px ring (13 px less the ring each side), as the old rail drew it.",owner:a,due:o},{part:"aside",kind:"padding",value:22,reason:"The rail box's right padding at lg (PlpSidebar lg:pr-[22px]): 12 px room for the picked frame plus main's 10 px scrollbar room, so the content stays main's 258 px wide.",owner:a,due:o}],R={size:f,case:"capitalize",lineHeight:1.5},O={size:f,case:"none",lineHeight:1.5},A={textStyle:"body-5",size:11,case:"none",letterSpacing:0,lineHeight:1.5},w="muted",g="surface",F=()=>({type:t,props:{...h,name:"Option",justify:"between",gap:l,gapPhone:l,...c(4,12)},slots:{[n]:[{type:t,props:{...h,name:"Choice",gap:l,gapPhone:l,minWidth:0},slots:{[n]:[{type:t,props:{...s,name:"Tick mark",[p]:["facetTickMark"]},slots:{[n]:[{type:t,props:{...i(16,{sectionCorners:2,fillColor:w,[d]:"facetTickFill",...c(1,1)}),name:"Tick box"},slots:{[n]:[{type:t,props:{...i(14,{sectionCorners:1,fillColor:g,[d]:"facetTickFill",[x]:"facetTick",...c(0,0)}),name:"Tick"}}]}}]}},{type:t,props:{...s,name:"Round mark",[p]:["facetRadioMark"]},slots:{[n]:[{type:t,props:{...i(16,{sectionCorners:8,fillColor:w,[d]:"facetTickFill",...c(1,1)}),name:"Radio"},slots:{[n]:[{type:t,props:{...i(14,{sectionCorners:7,fillColor:g,...c(3,3)}),name:"Radio ground"},slots:{[n]:[{type:t,props:{...i(8,{sectionCorners:4,[d]:"facetDot",...c(0,0)}),name:"Dot"}}]}}]}}]}},{type:t,props:{...s,name:"Swatch",[p]:["facetColour"]},slots:{[n]:[{type:t,props:{...i(13,{sectionCorners:7,sectionBorder:{width:1}}),name:"Ring"},slots:{[n]:[{type:t,props:{...i(11,{sectionCorners:6,[d]:"facetColour"}),name:"Colour"}}]}}]}},{type:t,props:{...s,name:"Label",[p]:["facetLabel"]},slots:{[n]:[k("facetLabel",{...m,tag:"span",minWidth:0},R)]}},{type:t,props:{...s,name:"Name",[p]:["facetName"]},slots:{[n]:[k("facetName",{...m,tag:"span",minWidth:0},O)]}}]}},k("facetCount",{...C,tag:"span"},A)]}});function L(e){return b([F()],(r,u)=>u==="0"?`${e}~facet`:`${e}~facet.${u.slice(2)}`)}function U(e){if(e[T]!==void 0)return e;const r=typeof e.id=="string"&&e.id.trim()?e.id:"AlloyWheelsListing";return{...e,[T]:L(r)}}export{B as FACET_ROW_FIELDS,z as FACET_TEMPLATE_ALLOW,I as FACET_TEMPLATE_LABEL,T as FACET_TEMPLATE_SLOT,E as FACET_TICK,K as FACET_TICK_INK_CLASS,y as FACET_TICK_MARK,W as FACET_TICK_VAR,G as NAMED_EXCEPTIONS,X as facetRow,L as facetRowSeed,H as typeRow,U as withFacetTemplate};
|
|
@@ -5,8 +5,8 @@ export declare const CURRENT_LINE: {
|
|
|
5
5
|
};
|
|
6
6
|
export declare const TAB_CELLS: {
|
|
7
7
|
readonly list: "m-0 flex list-none items-stretch gap-0 overflow-auto p-0 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden";
|
|
8
|
-
readonly item:
|
|
9
|
-
readonly tab: (
|
|
8
|
+
readonly item: (first: boolean, editing: boolean) => string;
|
|
9
|
+
readonly tab: (current: boolean) => string;
|
|
10
10
|
readonly underline: "absolute inset-x-0 -bottom-px h-[2px] bg-accent";
|
|
11
11
|
};
|
|
12
12
|
export declare const TAB_PILLS: {
|
|
@@ -15,3 +15,4 @@ export declare const TAB_PILLS: {
|
|
|
15
15
|
readonly tab: (current: boolean) => string;
|
|
16
16
|
};
|
|
17
17
|
export declare function currentLinkIndex(hrefs: readonly string[], pagePath: string | null | undefined): number;
|
|
18
|
+
export declare function showCurrentTab(strip: HTMLElement | null, behavior: ScrollBehavior): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{normalizePath as
|
|
1
|
+
import{normalizePath as l}from"efficient-web-builder/format/lib/popup/rules";import{menuLinkKind as a}from"../menu-link.js";const c="[scrollbar-width:none] [&::-webkit-scrollbar]:hidden",x="text-[length:var(--size-label,13px)]",s={rowLink:"relative opacity-100",row:"pointer-events-none absolute inset-x-0 -bottom-2 h-[2px] bg-accent",tab:"absolute inset-x-0 -bottom-px h-[2px] bg-accent"},f={list:`m-0 flex list-none items-stretch gap-0 overflow-auto p-0 ${c}`,item:(e,o)=>[`relative isolate flex whitespace-nowrap border-r border-line px-[26px] py-[18px] font-mono ${x} uppercase tracking-[0.22em]`,e?"border-l border-line":"",o?"":"[&_*]:pointer-events-none [&_a]:pointer-events-auto"].join(" "),tab:e=>["block transition-colors after:absolute after:inset-0 after:-z-1",e?"text-fg":"text-fg-dim hover:text-fg"].join(" "),underline:s.tab},d={nav:"-mx-1 [scrollbar-width:none] max-view-wide:overflow-x-auto [&::-webkit-scrollbar]:hidden",list:"flex flex-wrap gap-2 px-1 pb-1 max-view-wide:min-w-max max-view-wide:flex-nowrap",tab:e=>`flex flex-col gap-0.5 rounded-[var(--sf-button-radius,999px)] border px-5 py-2.5 transition-colors ${e?"border-accent bg-accent text-accent-ink":"border-line text-fg hover:border-accent hover:text-accent"}`};function m(e,o){if(!o)return-1;const t=l(o);return e.findIndex(n=>a(n)==="page"&&l(n)===t)}function u(e,o){let t=e?.querySelector('[aria-current="page"]')??null;if(!e||!t)return;for(;t.parentElement&&t.parentElement!==e;)t=t.parentElement;const n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=r.left<n.left?r.left-n.left:r.right>n.right?Math.min(r.right-n.right,r.left-n.left):0;i!==0&&e.scrollBy({left:i,behavior:o})}export{s as CURRENT_LINE,f as TAB_CELLS,d as TAB_PILLS,m as currentLinkIndex,u as showCurrentTab};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{PLP_DEFAULT_KINDS as t}from"../../../../catalog/plp-item.js";import{PLP_COLUMNS_DEFAULT as
|
|
1
|
+
import{PLP_DEFAULT_KINDS as t}from"../../../../catalog/plp-item.js";import{PLP_COLUMNS_DEFAULT as o}from"../../../../wheels/plp-grid.js";import{ProductGridSlots as e}from"../ProductGrid/meta.js";import{FACET_TEMPLATE_ALLOW as r,FACET_TEMPLATE_SLOT as l}from"../../../../content/facet-row-seed.js";const i={template:e.template,[l]:{type:"slot",allow:[...r]}},d={heading:"Alloy wheels",intro:"Filter by brand, colour, size and fitment to find your set."},m={label:"List",fields:i,defaultProps:{heading:"",intro:"",askForCar:!0,gateHeading:"",gateIntro:"",kinds:[...t],perPage:24,columns:o,defaultSort:"recommended",showInStock:!0,showCollection:!0,showPrice:!0}};export{d as ALLOYWHEELSLISTING_PH,m as AlloyWheelsListingMeta,i as AlloyWheelsListingSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as d}from"react/jsx-runtime";import l from"../../../../../components/wheels-plp/AlloyWheelsListing.js";import{hidableText as t}from"efficient-easel/screen/lib/document/hidable";import{asPlpSortKey as n,listingHiddenFacets as o}from"../../../../wheels/plp-filters.js";import{cardHoverOf as
|
|
1
|
+
import{jsx as d}from"react/jsx-runtime";import l from"../../../../../components/wheels-plp/AlloyWheelsListing.js";import{hidableText as t}from"efficient-easel/screen/lib/document/hidable";import{asPlpSortKey as n,listingHiddenFacets as o}from"../../../../wheels/plp-filters.js";import{cardHoverOf as r}from"efficient-web-builder/format/lib/animation/hover";import{phHide as i}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{FACET_TEMPLATE_SLOT as g}from"../../../../content/facet-row-seed.js";import{AlloyWheelsListingMeta as m,ALLOYWHEELSLISTING_PH as a}from"./meta.js";const A={...m,render:e=>d(l,{titleLevel:e.titleLevel,heading:i(e.heading,a.heading,e.editor),intro:i(e.intro,a.intro,e.editor),askForCar:e.askForCar!==!1,gateHeading:t(e.gateHeading),gateIntro:t(e.gateIntro),perPage:e.perPage,columns:e.columns,defaultSort:n(e.defaultSort),ownerId:typeof e.id=="string"?e.id:"",template:e.template,facetTemplate:e[g],cardImage:e.cardImage,hover:r(e,"AlloyWheelsListing"),hiddenFacets:o(e),showPrice:e.showPrice,showInStock:e.showInStock!==!1,kinds:e.kinds,products:e.products,wheels:e.wheels,fieldUsage:e.fieldUsage,editing:e.editor?.isEditing})};export{A as AlloyWheelsListingRender};
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { BlockRender } from "efficient-web-builder/format/lib/document/blocks/block-types";
|
|
2
2
|
export declare const AppointmentBookingSlots: {
|
|
3
|
+
serviceTemplate: {
|
|
4
|
+
type: "slot";
|
|
5
|
+
allow: ("Flex" | "Text")[];
|
|
6
|
+
};
|
|
7
|
+
timeTemplate: {
|
|
8
|
+
type: "slot";
|
|
9
|
+
allow: ("Flex" | "Text")[];
|
|
10
|
+
};
|
|
3
11
|
boxes: {
|
|
4
12
|
type: "slot";
|
|
5
13
|
allow: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{BOOKING_TEMPLATE_SLOT_FIELDS as o}from"../../../../content/booking-card-seed.js";const e={boxes:{type:"slot",allow:["BookingBox"]},...o},n={label:"Booking Form",fields:e,defaultProps:{eyebrow:"",heading:"",intro:"",buttonLabel:"",successMessage:""}};export{n as AppointmentBookingMeta,e as AppointmentBookingSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as m}from"react/jsx-runtime";import a from"../../../../../components/AppointmentBooking.js";import{PH as
|
|
1
|
+
import{jsx as m}from"react/jsx-runtime";import a from"../../../../../components/AppointmentBooking.js";import{PH as t}from"efficient-web-builder/format/lib/document/blocks/placeholders";import{parseSectionHeadPlacement as r}from"efficient-web-builder/format/lib/sections/section-head-placement";import{phHide as i}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{AppointmentBookingMeta as b}from"./meta.js";const s={...b,render:e=>{const o=r(e.headPlacement)==="own-box",n=d=>o?void 0:d;return m(a,{eyebrow:n(i(e.eyebrow,t.eyebrow,e.editor)),heading:n(i(e.heading,t.heading,e.editor)),intro:n(i(e.intro,t.body,e.editor)),omitHead:o,buttonLabel:i(e.buttonLabel,t.button,e.editor),successMessage:i(e.successMessage,t.bookingConfirmation,e.editor),boxes:e.boxes,serviceTemplate:e.serviceTemplate,timeTemplate:e.timeTemplate,inBoxes:e.layout==="boxes",nodeId:typeof e.id=="string"?e.id:void 0,editing:e.editor?.isEditing})}};export{s as AppointmentBookingRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{BOOKING_TEMPLATE_SLOT_FIELDS as o}from"../../../../content/booking-card-seed.js";const t={label:"Booking box",fields:o,defaultProps:{}};export{t as BookingBoxMeta};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import n from"../../../../../components/booking/BookingBox.js";import{PH as t}from"efficient-web-builder/format/lib/document/blocks/placeholders";import{phHide as i}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{BookingBoxMeta as d}from"./meta.js";const r={...d,render:e=>o(n,{region:typeof e.region=="string"?e.region:void 0,nodeId:typeof e.id=="string"?e.id:void 0,serviceTemplate:e.serviceTemplate,timeTemplate:e.timeTemplate,eyebrow:i(e.eyebrow,t.eyebrow,e.editor),heading:i(e.heading,t.heading,e.editor),intro:i(e.intro,t.body,e.editor),buttonLabel:i(e.buttonLabel,t.button,e.editor),successMessage:i(e.successMessage,t.bookingConfirmation,e.editor),styleStep:e.styleStep,styleName:e.styleName,styleValue:e.styleValue,styleNote:e.styleNote})};export{r as BookingBoxRender};
|
|
@@ -1,2 +1,16 @@
|
|
|
1
1
|
import type { BlockRender } from "efficient-web-builder/format/lib/document/blocks/block-types";
|
|
2
|
+
export declare const ContactRoutingSlots: {
|
|
3
|
+
template: {
|
|
4
|
+
type: "slot";
|
|
5
|
+
allow: ("Flex" | "Text" | "ImageBlock")[];
|
|
6
|
+
};
|
|
7
|
+
reasonTemplate: {
|
|
8
|
+
type: "slot";
|
|
9
|
+
allow: ("Flex" | "Text" | "ImageBlock")[];
|
|
10
|
+
};
|
|
11
|
+
channelTemplate: {
|
|
12
|
+
type: "slot";
|
|
13
|
+
allow: ("Flex" | "Text" | "ImageBlock")[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
2
16
|
export declare const ContactRoutingMeta: Omit<BlockRender, "render">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CONTACT_ROUTING_DEFAULTS as t}from"efficient-web-builder/format/lib/content/contact";const r={label:"Contact Form",defaultProps:{routingNumber:t.routingNumber,routingTagline:t.routingTagline,groups:t.groups,formSlug:"",formNumber:t.formNumber,formHeading:t.formHeading,metaItems:t.metaLines.map(e=>({text:e})),showOther:t.showOther,otherLabel:t.otherLabel,otherNoteTitle:t.otherNoteTitle,otherNoteBody:t.otherNoteBody,buttonText:t.buttonText,consent:t.consent,channels:t.channels}};export{
|
|
1
|
+
import{CONTACT_ROUTING_DEFAULTS as t}from"efficient-web-builder/format/lib/content/contact";import{CONTACT_CHANNEL_SLOT as r,CONTACT_REASON_SLOT as n,CONTACT_TEMPLATE_ALLOW as o,CONTACT_TOPIC_SLOT as T}from"../../../../content/contact-card-seed.js";const l={[T]:{type:"slot",allow:[...o]},[n]:{type:"slot",allow:[...o]},[r]:{type:"slot",allow:[...o]}},s={label:"Contact Form",fields:l,defaultProps:{routingNumber:t.routingNumber,routingTagline:t.routingTagline,groups:t.groups,formSlug:"",formNumber:t.formNumber,formHeading:t.formHeading,metaItems:t.metaLines.map(e=>({text:e})),showOther:t.showOther,otherLabel:t.otherLabel,otherNoteTitle:t.otherNoteTitle,otherNoteBody:t.otherNoteBody,buttonText:t.buttonText,consent:t.consent,channels:t.channels}};export{s as ContactRoutingMeta,l as ContactRoutingSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a}from"react/jsx-runtime";import d from"../../../../../components/ContactRouting.js";import{CONTACT_ROUTING_DEFAULTS as t}from"efficient-web-builder/format/lib/content/contact";import{hidableText as i}from"efficient-easel/screen/lib/document/hidable";import{parseSectionHeadPlacement as u}from"efficient-web-builder/format/lib/sections/section-head-placement";import{phHide as o}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import d from"../../../../../components/ContactRouting.js";import{CONTACT_ROUTING_DEFAULTS as t}from"efficient-web-builder/format/lib/content/contact";import{hidableText as i}from"efficient-easel/screen/lib/document/hidable";import{parseSectionHeadPlacement as u}from"efficient-web-builder/format/lib/sections/section-head-placement";import{phHide as o}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{CONTACT_CHANNEL_SLOT as T,CONTACT_REASON_SLOT as g,CONTACT_TOPIC_SLOT as f}from"../../../../content/contact-card-seed.js";import{ContactRoutingMeta as h}from"./meta.js";const S={...h,render:e=>{const r=u(e.headPlacement)==="own-box",m=n=>r?void 0:n;return a(d,{routingNumber:m(o(e.routingNumber,t.routingNumber,e.editor)),routingTagline:m(o(e.routingTagline,t.routingTagline,e.editor)),omitHead:r,templates:{ownerId:String(e.id??""),topic:e[f],reason:e[g],channel:e[T]},groups:e.groups??[],formNumber:o(e.formNumber,t.formNumber,e.editor),formHeading:o(e.formHeading,t.formHeading,e.editor),metaLines:(e.metaItems??[]).map(n=>n?.text??"").filter(Boolean),showOther:e.showOther,otherLabel:i(e.otherLabel)||t.otherLabel,otherNoteTitle:o(e.otherNoteTitle,t.otherNoteTitle,e.editor),otherNoteBody:o(e.otherNoteBody,t.otherNoteBody,e.editor),buttonText:i(e.buttonText)||t.buttonText,consent:o(e.consent,t.consent,e.editor),channels:e.channels??[],formSlug:i(e.formSlug)||void 0,form:e.form,editing:e.editor?.isEditing})}};export{S as ContactRoutingRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CARD_ROW_FIELD_PROP as
|
|
1
|
+
import{CARD_LIST_TYPE as T,CARD_ROW_FIELD_PROP as y,CARD_ROW_LINK_PROP as h,CARD_TEMPLATE_SLOT as P,registerCardTemplates as w}from"efficient-web-builder/format/lib/content/card-template";import{DIM as o,INNER_BOX as a,TEXT as s,boxPadding as d,fillSlot as B,labelLook as I,labelStyle as D,seedNodes as F,token as E}from"efficient-web-builder/format/lib/document/seed-parts";import{BOX_TYPE as i,CONTAINER_BLOCKS_SLOT as n}from"efficient-web-builder/format/lib/document/container-blocks";import{BOX_ROW_IMAGE_PROP as K}from"efficient-web-builder/format/lib/content/box-card-rule";import{POST_CARD_HEIGHT as H}from"efficient-web-builder/format/lib/post-card-layout";import{EVENTS_FEATURED_DARKEN as U,EVENTS_FEATURED_DARKEN_STYLE as u,EVENTS_FEATURED_PLACEMENT as M}from"../content/events-featured-look.js";import{SH_LINK as x}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{rowFieldTextSeed as l}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{withRelatedTabletColumns as p}from"../sections/product-grid-columns.js";import{bundleColumns as V}from"../sections/bundle-to-grid.js";import{HERO_PRICE_BLOCK as v,withHeroPriceTemplate as G}from"../content/hero-price-seed.js";import{HERO_OPTION_FIELDS as W,HERO_OPTION_SLOT as Y,HERO_OPTION_SLOT_LABEL as X,withHeroOptionTemplate as $}from"../content/hero-option-seed.js";import{FILTER_OPTIONS_FIELD as j,withFilterChipsTemplate as z,withFilterTemplate as q}from"../content/filter-card-seed.js";import{FACET_ROW_FIELDS as Q,FACET_TEMPLATE_LABEL as Z,FACET_TEMPLATE_SLOT as J,withFacetTemplate as ee}from"../content/facet-row-seed.js";import{MENU_LINK_BLOCK as te,withMenuTemplate as le}from"../content/menu-card-seed.js";import{CONTACT_CHANNEL_SLOT as oe,CONTACT_REASON_SLOT as ae,CONTACT_TOPIC_SLOT as ie,withContactTemplates as ne}from"../content/contact-card-seed.js";import{ARTICLE_BODY_BLOCK as re,withArticleBodyTemplate as se}from"../content/article-body-seed.js";import{APPOINTMENT_BOOKING_TYPE as de,BOOKING_BOX_TYPE as ce,BOOKING_OPTION_FIELDS as Te,BOOKING_TEMPLATE_SLOTS as Ee,withBookingTemplates as pe}from"../content/booking-card-seed.js";import{PRODUCT_BUY_BLOCK as be,PRODUCT_CARD_FIELDS as C,PRODUCT_COLOUR_BLOCK as _e,PRODUCT_EYEBROW_BLOCK as me,PRODUCT_NAME_BLOCK as Oe,PRODUCT_PICTURE_BLOCK as ke,PRODUCT_PRICE_BLOCK as ye,PRODUCT_SIZE_BLOCK as he,PRODUCT_SPECS_BLOCK as Pe,productCardSeed as ue,withKitCardTemplate as b,withListingCardTemplate as Ce,withProductCardTemplate as _}from"../content/product-card-seed.js";const L="tags",r=I(12),g={textStyle:"heading-3",...E("headingSmall",20),weight:500,lineHeight:1.2,letterSpacing:-.02},R={textStyle:"body-1",...E("body",14),lineHeight:1.55},Le={...g,...E("headingSmall",30)},ge={sectionPaddingTop:24,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:24,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},Re=H.fallback,Se=480,fe=70,Ne=()=>({type:i,props:{...a,name:"Featured",[K]:"cover",darken:U,darkenStyle:u,darkenPhone:fe,darkenStylePhone:u,placement:M,direction:"column",gap:8,gapPhone:8,...d(32,32,20,20),sectionHeightMode:"fixed",sectionHeightValue:Re,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:Se,sectionHeightUnitPhone:"px",[h]:"href"},slots:{[n]:[l("meta",{...s,tag:"p"},r,!0),l("title",{...s,tag:"h3",widthFit:"fill"},Le),l("excerpt",{...o,tag:"p",widthFit:"fill",maxWidth:384},R),l("dateLabel",{...o,tag:"p"},{...r,color:"muted"})]}}),Ae=()=>({type:i,props:{...a,name:"Post",gap:0,gapPhone:0,...d(0,0,0,0),...B("surface"),shadow:!0},slots:{[n]:[{type:"ImageBlock",props:{[y]:"cover",aspect:"16/10",contained:!1}},{type:i,props:{...a,name:"Words",gap:12,gapPhone:12,...ge},slots:{[n]:[{type:i,props:{...a,name:"Meta",direction:"row",wrap:!0,share:"content",sharePhone:"content",phoneRow:2,gap:12,gapPhone:12,...d(0,0,0,0)},slots:{[n]:[l("meta",{...s,tag:"p"},r,!0),l("dateLabel",{...o,tag:"p"},{...r,color:"muted"},!0)]}},l("title",{...s,tag:"h3",widthFit:"fill"},g),l("excerpt",{...o,tag:"p",widthFit:"fill"},R),{type:T,props:{[y]:L},slots:{template:[{type:i,props:{...a,name:"Chip",...d(4,8,4,8),sectionBorder:{width:1}},slots:{[n]:[l("label",{...o,tag:"p"},r)]}}]}},{type:"ButtonBlock",props:{variant:"ghost",label:"Read more",href:"",[h]:"href",...x,icon:"arrow-right",iconPosition:"after",_partStyles:{label:D(12)}}}]}}]}}),we=()=>[Ne(),Ae()];function Be(e){if(e.template!==void 0)return e;const t=typeof e.id=="string"&&e.id.trim()?e.id:"Events",N=["featured","post"];return{...e,template:F(we(),(He,A)=>{const[m,...O]=A.split("."),k=N[Number(m)]??`card${m}`;return O.length?`${t}~${k}.${O.join(".")}`:`${t}~${k}`})}}const Ie={fields:[{key:"cover",label:"Cover",kind:"image",alt:"title"},{key:"meta",label:"Eyebrow"},{key:"dateLabel",label:"Date"},{key:"title",label:"Title"},{key:"excerpt",label:"Excerpt",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:L,label:"Tags",kind:"list",fields:[{key:"label",label:"Tag"}]}],blocks:[{type:T,label:"Card list"}],seedOnInsert:Be},De=["showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],Fe=e=>Object.fromEntries(Object.entries(e).filter(([t])=>!De.includes(t))),S={fields:[{key:"label",label:"Label"},{key:"href",label:"Link",kind:"link"}],blocks:[{type:te,label:"Menu link"}],seed:le},f=e=>e.dynamic===!0&&e.relationship==="bundles",ot=(e={})=>ue(e),c={fields:C,blocks:[{type:ke,label:"Picture"},{type:me,label:"Eyebrow"},{type:Oe,label:"Name"},{type:Pe,label:"Specs"},{type:ye,label:"Price"},{type:_e,label:"Colour"},{type:he,label:"Size"},{type:be,label:"Buy"}],seed:e=>{if(e.dynamic!==!0)return _(e);const t=p(e);return f(e)?b(t):_(t)}},Ke=[{block:"Reviews",fields:[{key:"quote",label:"Quote"},{key:"title",label:"Title"},{key:"name",label:"Name"},{key:"role",label:"Role · location"},{key:"rating",label:"Rating"},{key:"dateLabel",label:"Date"}],blocks:[{type:"RatingBlock",label:"Rating"}]},{block:"SpecTable",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]},{block:"DetailRows",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"}]},{block:"FooterMenu",...S},{block:"MenuBlock",...S},{block:"ProductGrid",...c},{block:"AlloyWheelsListing",...c,slots:[{slot:P},{slot:J,label:Z}],fields:[...C,...Q],seed:e=>ee(Ce(e))},{block:"RelatedProducts",...c,seed:e=>{const t=p({...Fe(e),dynamic:!0});return f(t)?b(t):_(t,{legacyWellHonoured:!0})}},{block:"BundleOffer",...c,seed:e=>b(p({...e,columns:V(e),dynamic:!0}))},{block:"ProductHero",slots:[{slot:P},{slot:Y,label:X}],fields:W,blocks:[{type:v,label:"Price"}],seed:e=>$(G(e))},{block:"FilterBlock",fields:[{key:"label",label:"Filter name"},{key:j,label:"Options",kind:"list",fields:[{key:"label",label:"Option"},{key:"count",label:"Count"}]}],blocks:[{type:T,label:"Card list"}],seed:q},{block:"FilterChipsBlock",fields:[{key:"label",label:"Pick"},{key:"mark",label:"Remove mark"}],seed:z},{block:"ContactRouting",slots:[{slot:ie,label:"Topic card"},{slot:ae,label:"Reason chip"},{slot:oe,label:"Channel row"}],fields:[{key:"eyebrow",label:"Eyebrow",plain:!0},{key:"title",label:"Title",plain:!0},{key:"copy",label:"Body",multiline:!0},{key:"response",label:"Response time"},{key:"label",label:"Label",plain:!0},{key:"value",label:"Value",plain:!0},{key:"sub",label:"Sub line",plain:!0},{key:"href",label:"Link",kind:"link"}],seed:ne},{block:re,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:se},...[ce,de].map(e=>({block:e,slots:Ee,fields:Te,seed:t=>pe(e,t)})),{block:"Events",...Ie}];w(Ke);export{Ke as STOREFRONT_CARD_TEMPLATES,f as drawsKits,we as eventsCardSeeds,ot as productGridCardSeed,Be as withEventsTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as c}from"react/jsx-runtime";import{CatalogFilterProvider as u}from"../../components/catalog/CatalogFilterContext.js";import a from"../../components/CartDrawer.js";import{CartProvider as f}from"../../components/CartContext.js";import{CurrencyProvider as p}from"../../components/CurrencyContext.js";import{SubscribePopupView as s}from"../../components/SubscribePopup.js";import{ConsentBannerPreview as g}from"../../components/ConsentBanner.js";import{CART_DRAWER_KIND as h,resolveCartDrawerContent as v,resolveCartDrawerLook as P}from"efficient-web-builder/format/lib/content/cart-drawer";import{CONSENT_BANNER_KIND as k,resolveConsentBannerContent as b}from"efficient-web-builder/format/lib/content/consent-banner";import{SITE_FOOTER_KIND as y}from"efficient-web-builder/format/lib/content/footer";import{isPageBackgroundAuthored as C}from"efficient-web-builder/format/lib/content/page-background";import{templateProductKind as _}from"efficient-web-builder/format/lib/content/product-page";import{resolveSubscribeContent as w,SUBSCRIBE_POPUP_KIND as D}from"efficient-web-builder/format/lib/content/subscribe";import{DeclaredRecordTypeProvider as R}from"./current-record.js";import{declaredRecordType as B}from"efficient-web-builder/format/lib/content/record-types";import{PublishedPageFrame as N}from"efficient-web-builder/render/lib/document/page-frame";import{POPUP_PAGE_KIND as S,resolvePopupLook as x}from"efficient-web-builder/format/lib/popup/look";import E from"../../components/PopupFrame.js";import{PreviewProductProvider as K}from"./preview-product.js";import{TemplateProductKindProvider as I}from"./template-product-kind.js";import{selectedRangesOf as T}from"../wheels/selected-ranges.js";function O(r,n){const{kind:t}=r;if(t===D){const i=w(r);return c("div",{style:{background:"var(--bg)",minHeight:"100%"},children:[n??null,e(s,{inline:!0,content:i})]})}if(t===h){const i=v(r);return c("div",{style:{background:"var(--bg)",minHeight:"100%"},children:[n??null,e(p,{children:e(f,{preview:!0,children:e(a,{content:i,look:P(r)})})})]})}return t===k?c("div",{style:{background:"var(--bg)",minHeight:"100%"},children:[n??null,e(g,{layout:b(r).layout})]}):null}function A(r,n){if(r.kind!==S)return null;const t=e(m,{rootProps:r,children:r.children});if(!n)return t;const i=typeof r.title=="string"&&r.title.trim()?r.title:"Popup";return e(E,{inline:!0,look:x(r),label:i,children:t})}function m({rootProps:r,children:n}){const{kind:t,editor:i,previewProduct:o}=r,d=!!i?.isEditing,l=_(typeof t=="string"?t:"",r);return e(R,{type:B(r),children:e(I,{kind:l,children:e(K,{slug:d?o:null,children:e(u,{address:T(r),editing:d,children:n})})})})}function ir(r){const n=A(r,!1);if(n)return n;const t=O(r);if(t)return t;const{children:i,pageBackground:o,kind:d}=r,l=d===y;return e(N,{pageBackground:o,inheritBackground:l&&!C(o),chrome:l,children:e(m,{rootProps:r,children:i})})}export{m as StorefrontPageProviders,A as drawPopupPage,ir as drawPublishedStorefrontRoot,O as drawSystemPage};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare function isLabelOnlyMenuUrl(url: string | null | undefined): boolean;
|
|
2
2
|
export type MenuLinkKind = "none" | "off-site" | "app" | "page";
|
|
3
3
|
export declare function menuLinkKind(url: string | null | undefined): MenuLinkKind;
|
|
4
|
+
export declare function regionSwitchHref(url: string | null | undefined, base: string): string | null;
|
|
4
5
|
export interface FooterMenuItem {
|
|
5
6
|
label: string;
|
|
6
7
|
url: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function o(r){const t=(r??"").trim();return t===""||t==="#"}function i(r){const t=(r??"").trim();return o(t)?"none":/^(?:https?:)?\/\//i.test(t)?"off-site":/^[a-z][a-z0-9+.-]*:/i.test(t)?"app":"page"}function u(r,t){const e=(r??"").replace(/[\t\r\n]/g,"").trim();if(!e)return null;try{const n=new URL(e,t);return n.protocol==="http:"||n.protocol==="https:"?n.href:null}catch{return null}}export{o as isLabelOnlyMenuUrl,i as menuLinkKind,u as regionSwitchHref};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CardItemAction } from "efficient-web-builder/format/lib/content/card-state";
|
|
1
2
|
import { plpActiveChips, type PlpChip, type PlpFacetKey, type PlpFilterState } from "../wheels/plp-filters.js";
|
|
2
3
|
export declare const FILTER_IN_STOCK_KEY: "inStock";
|
|
3
4
|
export declare const FILTER_IN_STOCK_LABEL = "Availability";
|
|
@@ -39,13 +40,13 @@ export interface OptionCardRows<I> {
|
|
|
39
40
|
states: {
|
|
40
41
|
selected: boolean;
|
|
41
42
|
}[];
|
|
42
|
-
actions:
|
|
43
|
-
press: () => void;
|
|
44
|
-
}[];
|
|
43
|
+
actions: CardItemAction[];
|
|
45
44
|
}
|
|
46
|
-
export declare function optionCardRows<T, I>(options: readonly T[], { item, selected, press }: {
|
|
45
|
+
export declare function optionCardRows<T, I>(options: readonly T[], { item, selected, press, label, disabled }: {
|
|
47
46
|
item: (option: T, index: number) => I;
|
|
48
47
|
selected: (option: T, index: number) => boolean;
|
|
49
48
|
press: (option: T, index: number) => () => void;
|
|
49
|
+
label?: (option: T, index: number) => string;
|
|
50
|
+
disabled?: (option: T, index: number) => boolean;
|
|
50
51
|
}): OptionCardRows<I>;
|
|
51
52
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{plpActiveChips as
|
|
1
|
+
import{plpActiveChips as c}from"../wheels/plp-filters.js";import{STOCK_WORDS as p}from"../content/stock-words.js";const s="inStock",f="Availability",S="price";function o(r,e,t){if(e===s)return r.inStockOnly===!0;if(e===S)return!1;if(e==="lugs")return(r.lugs??[]).map(String).includes(t);const n=r[e];return Array.isArray(n)&&n.map(String).includes(t)}function y(r,e,t){const n=r.map(l=>({key:l.key,label:l.label,options:l.options.map(i=>({value:i.value,label:i.label,count:String(i.count),state:{selected:o(e,l.key,i.value)}}))}));return t!==null&&n.push({key:s,label:f,options:[{value:s,label:p.inStock,count:String(t),state:{selected:o(e,s,s)}}]}),n}function d(r,e,t){return c(r,e,t).map(n=>({key:n.key,value:String(n.value),label:n.label}))}function g(r,e){const t={...r,page:1};switch(e.key){case"price":return{...t,priceMax:null};case"priceMin":return{...t,priceMin:null};case"inStock":return{...t,inStockOnly:!1};case"kind":return{...t,kind:null};case"lugs":return{...t,lugs:(r.lugs??[]).filter(n=>String(n)!==e.value)};default:{const n=r[e.key].filter(l=>String(l)!==e.value);return{...t,[e.key]:n}}}}function x(r,{item:e,selected:t,press:n,label:l,disabled:i}){return{items:r.map(e),states:r.map((u,a)=>({selected:t(u,a)})),actions:r.map((u,a)=>({press:n(u,a),...l?{label:l(u,a)}:null,...i?{disabled:i(u,a)}:null}))}}export{s as FILTER_IN_STOCK_KEY,f as FILTER_IN_STOCK_LABEL,S as FILTER_PRICE_KEY,d as filterChipItems,y as filterGroupItems,o as filterOptionSelected,g as filterStateWithoutChip,x as optionCardRows};
|
|
@@ -51,6 +51,10 @@ export interface PlpFacetGroup {
|
|
|
51
51
|
label: string;
|
|
52
52
|
options: PlpFacetOption[];
|
|
53
53
|
}
|
|
54
|
+
export declare const isDeadPlpOption: (option: {
|
|
55
|
+
count: number;
|
|
56
|
+
checked: boolean;
|
|
57
|
+
}) => boolean;
|
|
54
58
|
export declare const PLP_FACET_LABELS: Record<PlpFacetKey, string>;
|
|
55
59
|
export declare function buildPlpFacets(items: readonly PlpItem[], f: PlpFilterState, currency: Currency, kinds?: readonly ProductKind[], fieldUsage?: readonly FieldUsageAnswer[], otherKinds?: "fail" | "pass"): PlpFacetGroup[];
|
|
56
60
|
export declare const PLP_ONE_VALUE_MAX = 1;
|