efficient-storefront-blocks 0.116.0 → 0.117.1

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +9 -10
  3. package/dist/chunks/EditorPreviewCheckout-75F6QF5U.js +4 -0
  4. package/dist/chunks/{SiteEditorProvider-E5ZSDH4Y.js → SiteEditorProvider-ZVNXSXBQ.js} +1 -1
  5. package/dist/chunks/{chunk-VTAJ6NIH.js → chunk-3XS3LIPN.js} +1 -1
  6. package/dist/chunks/chunk-NMYHWA3M.js +96 -0
  7. package/dist/chunks/chunk-XVPVTQYY.js +342 -0
  8. package/dist/chunks/{chunk-6MJVBHOY.js → chunk-XZPK5PGX.js} +1 -1
  9. package/dist/chunks/{fitment-data-25XLESAA.js → fitment-data-3N56LEBE.js} +1 -1
  10. package/dist/editor/components/HeaderSettingsPanel.js +1 -1
  11. package/dist/editor/components/MenuPicker.d.ts +3 -0
  12. package/dist/editor/components/MenuPicker.js +1 -1
  13. package/dist/editor/lib/storefront-editor-words.d.ts +3 -0
  14. package/dist/editor/lib/storefront-editor-words.js +1 -1
  15. package/dist/editor.css +1 -1
  16. package/dist/index.js +103 -31
  17. package/dist/links.js +1 -1
  18. package/dist/render/built-with.json +1 -1
  19. package/dist/render/components/ChatContext.d.ts +1 -1
  20. package/dist/render/components/ChatContext.js +1 -1
  21. package/dist/render/components/ChatWidget.js +1 -1
  22. package/dist/render/components/DeliveryOptionsSource.js +1 -1
  23. package/dist/render/components/HeaderNavItem.js +1 -1
  24. package/dist/render/components/checkout/CheckoutPageClient.js +1 -1
  25. package/dist/render/components/checkout/checkout-parts.js +1 -1
  26. package/dist/render/components/checkout/checkout-state.d.ts +6 -1
  27. package/dist/render/components/checkout/checkout-state.js +1 -1
  28. package/dist/render/components/fitment/FitmentFinder.js +1 -1
  29. package/dist/render/components/fitment/FitmentPickerGrid.js +1 -1
  30. package/dist/render/components/fitment/PickerField.d.ts +2 -1
  31. package/dist/render/components/fitment/PickerField.js +1 -1
  32. package/dist/render/components/fitment/useFitmentCascade.d.ts +8 -0
  33. package/dist/render/components/fitment/useFitmentCascade.js +1 -1
  34. package/dist/render/components/fitment/useVehicleFit.js +1 -1
  35. package/dist/render/components/fitment/vehicle-level-state.d.ts +1 -0
  36. package/dist/render/components/fitment/vehicle-level-state.js +1 -1
  37. package/dist/render/lib/api/types.d.ts +1 -0
  38. package/dist/render/lib/checkout/wallet-return.d.ts +1 -1
  39. package/dist/render/lib/checkout/wallet-return.js +1 -1
  40. package/dist/words.d.ts +12 -0
  41. package/dist/words.js +4 -4
  42. package/package.json +4 -4
  43. package/dist/chunks/EditorPreviewCheckout-ZLZS26RB.js +0 -4
  44. package/dist/chunks/chunk-57R5GY5W.js +0 -341
  45. package/dist/chunks/chunk-P4KTLII2.js +0 -96
  46. /package/dist/chunks/{chunk-LBW7HOQO.js → chunk-JVAY6GGN.js} +0 -0
  47. /package/dist/chunks/{chunk-57R5GY5W.js.LEGAL.txt → chunk-XVPVTQYY.js.LEGAL.txt} +0 -0
@@ -1 +1 @@
1
- "use client";import{jsx as s,jsxs as p}from"react/jsx-runtime";import{PickerField as t}from"./PickerField.js";import{vehicleLevelStates as b}from"./vehicle-level-state.js";import{VEHICLE_FIELD_LABEL as a}from"../../lib/wheels/vehicle-field-focus.js";import{HideTaker as g}from"efficient-web-builder/render/components/ViewHideRoot";const u={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"},f={1:"max-view-tablet:grid-cols-1",2:"max-view-tablet:grid-cols-2",3:"max-view-tablet:grid-cols-3",4:"max-view-tablet:grid-cols-4"},c=e=>e===1||e===2||e===3||e===4?e:void 0;function h(e,i,r){const d=c(i),n=c(r);if(d===void 0&&n===void 0)return e?"grid-cols-1 @min-[20rem]:grid-cols-2 @min-[39rem]:grid-cols-4":"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1";const l=d!==void 0?u[d]:e?"grid-cols-1 @min-[20rem]:grid-cols-2 @min-[39rem]:grid-cols-4":"grid-cols-4 max-view-desktop:grid-cols-2";return n!==void 0?`${l} ${f[n]}`:l}function x({cascade:e,compact:i=!1,editing:r=!1,columns:d,columnsPhone:n}){const{vehicle:l}=e,o=b(e),m=p(g,{className:["grid gap-[2px] border border-line bg-line",h(i,d,n)].join(" "),children:[s(t,{label:a.make,placeholder:o.make.placeholder,disabled:o.make.disabled,value:l.make,options:e.makeOptions,onChange:e.setMake,compact:i,editing:r}),s(t,{label:a.model,placeholder:o.model.placeholder,disabled:o.model.disabled,value:l.model,options:e.modelOptions,onChange:e.setModel,compact:i,editing:r}),s(t,{label:a.year,placeholder:o.year.placeholder,disabled:o.year.disabled,value:l.year!==null?String(l.year):"",options:e.yearOptions,onChange:e.setYear,compact:i,editing:r}),s(t,{label:a.trim,placeholder:o.trim.placeholder,disabled:o.trim.disabled,value:l.modification,options:e.modOptions,onChange:e.setModification,compact:i,editing:r})]});return i?s(g,{className:"@container",children:m}):m}export{x as default,h as pickerGridColumns};
1
+ "use client";import{jsx as s,jsxs as p}from"react/jsx-runtime";import{PickerField as a}from"./PickerField.js";import{vehicleLevelStates as f}from"./vehicle-level-state.js";import{VEHICLE_FIELD_LABEL as t}from"../../lib/wheels/vehicle-field-focus.js";import{HideTaker as g}from"efficient-web-builder/render/components/ViewHideRoot";const b={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"},u={1:"max-view-tablet:grid-cols-1",2:"max-view-tablet:grid-cols-2",3:"max-view-tablet:grid-cols-3",4:"max-view-tablet:grid-cols-4"},c=e=>e===1||e===2||e===3||e===4?e:void 0;function h(e,l,r){const d=c(l),n=c(r);if(d===void 0&&n===void 0)return e?"grid-cols-1 @min-[20rem]:grid-cols-2 @min-[39rem]:grid-cols-4":"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1";const o=d!==void 0?b[d]:e?"grid-cols-1 @min-[20rem]:grid-cols-2 @min-[39rem]:grid-cols-4":"grid-cols-4 max-view-desktop:grid-cols-2";return n!==void 0?`${o} ${u[n]}`:o}function x({cascade:e,compact:l=!1,editing:r=!1,columns:d,columnsPhone:n}){const{vehicle:o}=e,i=f(e),m=p(g,{className:["grid gap-[2px] border border-line bg-line",h(l,d,n)].join(" "),children:[s(a,{label:t.make,placeholder:i.make.placeholder,disabled:i.make.disabled,failed:i.make.failed,value:o.make,options:e.makeOptions,onChange:e.setMake,compact:l,editing:r}),s(a,{label:t.model,placeholder:i.model.placeholder,disabled:i.model.disabled,failed:i.model.failed,value:o.model,options:e.modelOptions,onChange:e.setModel,compact:l,editing:r}),s(a,{label:t.year,placeholder:i.year.placeholder,disabled:i.year.disabled,failed:i.year.failed,value:o.year!==null?String(o.year):"",options:e.yearOptions,onChange:e.setYear,compact:l,editing:r}),s(a,{label:t.trim,placeholder:i.trim.placeholder,disabled:i.trim.disabled,failed:i.trim.failed,value:o.modification,options:e.modOptions,onChange:e.setModification,compact:l,editing:r})]});return l?s(g,{className:"@container",children:m}):m}export{x as default,h as pickerGridColumns};
@@ -4,13 +4,14 @@ export interface PickerOption {
4
4
  label: string;
5
5
  }
6
6
  export declare function pickerItems(options: readonly PickerOption[], placeholder?: string): SelectItem[];
7
- export declare function PickerField({ label, value, options, onChange, placeholder, disabled, compact, editing, }: {
7
+ export declare function PickerField({ label, value, options, onChange, placeholder, disabled, failed, compact, editing, }: {
8
8
  label: string;
9
9
  value: string;
10
10
  options: PickerOption[];
11
11
  onChange: (v: string) => void;
12
12
  placeholder?: string;
13
13
  disabled?: boolean;
14
+ failed?: boolean;
14
15
  compact?: boolean;
15
16
  editing?: boolean;
16
17
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{jsx as a,jsxs as f}from"react/jsx-runtime";import g from"efficient-web-builder/render/components/PartStyledKind";import{ThemedSelectList as y,useThemedSelect as I}from"../ThemedSelect.js";import{PART_KIND_ATTR as u}from"efficient-web-builder/render/lib/document/text-parts";import{TEXT_KIND_BODY as b,TEXT_KIND_NAME as h}from"efficient-web-builder/format/lib/sections/section-text-kinds";const n={body:"text-[length:var(--size-body,15px)]",headingSmall:"text-[length:var(--size-headingSmall,24px)]",labelXs:"text-[length:var(--size-label,10px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]",labelXl:"text-[length:var(--size-label,14px)]"};function T(o,l){return[{value:"",label:l??"—"},...o.map(i=>({value:i.value,label:i.label}))]}function X({label:o,value:l,options:i,onChange:v,placeholder:d,disabled:t,compact:s=!1,editing:m=!1}){const c=(i.find(r=>r.value===l)?.label??l)||d||"—",x=T(i,d),e=I({items:x,value:l,onPick:v}),p=e.open;return f("div",{ref:e.wrapRef,className:"relative min-w-0",children:[f("div",{ref:r=>{e.triggerRef.current=r},role:"button",tabIndex:t?-1:0,"aria-haspopup":"listbox","aria-expanded":p,"aria-controls":p?e.listId:void 0,"aria-activedescendant":e.activeId,"aria-label":`${o}, ${c}`,"aria-disabled":t||void 0,onClick:()=>!t&&e.toggle(),onKeyDown:r=>!t&&e.onTriggerKeyDown(r),className:["relative flex h-full flex-col bg-bg transition-colors",s?"gap-1 px-3 py-3":"min-h-[160px] gap-4 px-6 py-8",t?"opacity-50":"cursor-pointer hover:bg-surface"].join(" "),children:[a("span",{...m?{[u]:h}:{},className:["font-mono uppercase text-accent",s?`${n.labelXs} tracking-[0.2em]`:`${n.labelLarge} tracking-[0.3em]`].join(" "),children:a(g,{kind:h,children:o})}),a("span",{title:c,className:["truncate font-display font-medium tracking-[-0.02em]",s?`${n.body} leading-[1.2]`:`mt-auto ${n.headingSmall} leading-[1.1]`,l?"text-fg":"text-fg-dim"].join(" "),...m?{[u]:b}:{},children:a(g,{kind:b,children:c})}),a("span",{className:["pointer-events-none absolute font-mono text-accent",s?`right-3 top-3 ${n.labelSmall}`:`right-[22px] top-[22px] ${n.labelXl}`].join(" "),children:"▾"})]}),p&&!t&&a(y,{id:e.listId,tone:"cell",items:x,value:l,focusIdx:e.focusIdx,onFocus:e.setFocusIdx,onPick:e.pick,listRef:e.listRef})]})}export{X as PickerField,T as pickerItems};
1
+ "use client";import{jsx as a,jsxs as g}from"react/jsx-runtime";import u from"efficient-web-builder/render/components/PartStyledKind";import{ThemedSelectList as I,useThemedSelect as T}from"../ThemedSelect.js";import{PART_KIND_ATTR as b}from"efficient-web-builder/render/lib/document/text-parts";import{TEXT_KIND_BODY as h,TEXT_KIND_NAME as v}from"efficient-web-builder/format/lib/sections/section-text-kinds";const n={body:"text-[length:var(--size-body,15px)]",headingSmall:"text-[length:var(--size-headingSmall,24px)]",labelXs:"text-[length:var(--size-label,10px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]",labelXl:"text-[length:var(--size-label,14px)]"};function k(o,t){return[{value:"",label:t??"—"},...o.map(i=>({value:i.value,label:i.label}))]}function z({label:o,value:t,options:i,onChange:y,placeholder:d,disabled:l,failed:x=!1,compact:s=!1,editing:m=!1}){const c=(i.find(r=>r.value===t)?.label??t)||d||"—",f=k(i,d),e=T({items:f,value:t,onPick:y}),p=e.open;return g("div",{ref:e.wrapRef,className:"relative min-w-0",children:[g("div",{ref:r=>{e.triggerRef.current=r},role:"button",tabIndex:l?-1:0,"aria-haspopup":"listbox","aria-expanded":p,"aria-controls":p?e.listId:void 0,"aria-activedescendant":e.activeId,"aria-label":`${o}, ${c}`,"aria-disabled":l||void 0,onClick:()=>!l&&e.toggle(),onKeyDown:r=>!l&&e.onTriggerKeyDown(r),className:["relative flex h-full flex-col bg-bg transition-colors",s?"gap-1 px-3 py-3":"min-h-[160px] gap-4 px-6 py-8",x?"":l?"opacity-50":"cursor-pointer hover:bg-surface"].join(" "),children:[a("span",{...m?{[b]:v}:{},className:["font-mono uppercase text-accent",s?`${n.labelXs} tracking-[0.2em]`:`${n.labelLarge} tracking-[0.3em]`].join(" "),children:a(u,{kind:v,children:o})}),a("span",{title:c,className:["truncate font-display font-medium tracking-[-0.02em]",s?`${n.body} leading-[1.2]`:`mt-auto ${n.headingSmall} leading-[1.1]`,t?"text-fg":x?"text-alert":"text-fg-dim"].join(" "),...m?{[b]:h}:{},children:a(u,{kind:h,children:c})}),a("span",{className:["pointer-events-none absolute font-mono text-accent",s?`right-3 top-3 ${n.labelSmall}`:`right-[22px] top-[22px] ${n.labelXl}`].join(" "),children:"▾"})]}),p&&!l&&a(I,{id:e.listId,tone:"cell",items:f,value:t,focusIdx:e.focusIdx,onFocus:e.setFocusIdx,onPick:e.pick,listRef:e.listRef})]})}export{z as PickerField,k as pickerItems};
@@ -20,6 +20,8 @@ export interface FitmentCascade {
20
20
  yearOptions: PickerOption[];
21
21
  modOptions: PickerOption[];
22
22
  loading: CascadeLoading;
23
+ failed: CascadeFailed;
24
+ stockError: string | null;
23
25
  cascadeError: string | null;
24
26
  stock: StockFitment | null;
25
27
  fullyPicked: boolean;
@@ -27,5 +29,11 @@ export interface FitmentCascade {
27
29
  modelName: string;
28
30
  modName: string;
29
31
  }
32
+ export interface CascadeFailed {
33
+ makes?: boolean;
34
+ models?: boolean;
35
+ years?: boolean;
36
+ modifications?: boolean;
37
+ }
30
38
  export declare function useFitmentCascade(initialMakes?: FitmentMake[], enabled?: boolean): FitmentCascade;
31
39
  export {};
@@ -1 +1 @@
1
- import{useCallback as d,useEffect as c,useMemo as u,useState as i}from"react";import{fitment as f}from"../../lib/api/index.js";import{DEFAULT_VEHICLE as _}from"../../lib/wheels/fitment-options.js";function k(l){return l instanceof Error?l.message:String(l)}function z(l=[],y=!0){const[e,s]=i(_),[g,v]=i(l),[h,p]=i([]),[M,E]=i([]),[m,S]=i([]),[C,b]=i(null),[N,o]=i({makes:y&&l.length===0}),[O,r]=i(null);c(()=>{y&&l.length===0&&(o(t=>({...t,makes:!0})),f.listMakes().then(v).catch(()=>{}).finally(()=>o(t=>({...t,makes:!1}))))},[y,l.length]),c(()=>{if(!e.make){p([]);return}let t=!1;return o(a=>({...a,models:!0})),f.listModels(e.make).then(a=>{t||p(a)}).catch(a=>{t||r(k(a))}).finally(()=>{t||o(a=>({...a,models:!1}))}),()=>{t=!0}},[e.make]),c(()=>{if(!e.make||!e.model){E([]);return}let t=!1;return o(a=>({...a,years:!0})),f.listYears(e.make,e.model).then(a=>{t||E(a)}).catch(a=>{t||r(k(a))}).finally(()=>{t||o(a=>({...a,years:!1}))}),()=>{t=!0}},[e.make,e.model]),c(()=>{if(!e.make||!e.model||e.year===null){S([]);return}let t=!1;return o(a=>({...a,modifications:!0})),f.listModifications(e.make,e.model,e.year).then(a=>{t||S(a)}).catch(a=>{t||r(k(a))}).finally(()=>{t||o(a=>({...a,modifications:!1}))}),()=>{t=!0}},[e.make,e.model,e.year]),c(()=>{if(!(e.year!==null&&e.make&&e.model&&e.modification)){b(null);return}let a=!1;return o(n=>({...n,stock:!0})),r(null),f.getStockFitment(e.make,e.model,e.year,e.modification).then(n=>{a||b(n)}).catch(n=>{a||r(k(n))}).finally(()=>{a||o(n=>({...n,stock:!1}))}),()=>{a=!0}},[e.make,e.model,e.year,e.modification]),c(()=>{e.year!==null&&e.make&&e.model&&!e.modification&&m.length===1&&s(t=>({...t,modification:m[0].slug}))},[e.year,e.make,e.model,e.modification,m]);const F=d(t=>s(a=>({...a,make:t,model:"",year:null,modification:""})),[]),L=d(t=>s(a=>({...a,model:t,year:null,modification:""})),[]),Y=d(t=>s(a=>({...a,year:t?Number(t):null,modification:""})),[]),V=d(t=>s(a=>({...a,modification:t})),[]),x=u(()=>M.map(t=>({value:String(t),label:String(t)})),[M]),A=u(()=>g.map(t=>({value:t.slug,label:t.name})),[g]),D=u(()=>h.map(t=>({value:t.slug,label:t.name})),[h]),H=u(()=>m.map(t=>({value:t.slug,label:t.name})),[m]),I=e.year!==null&&!!e.make&&!!e.model&&!!e.modification,P=g.find(t=>t.slug===e.make)?.name??e.make,T=h.find(t=>t.slug===e.model)?.name??e.model,U=m.find(t=>t.slug===e.modification)?.name??e.modification;return{vehicle:e,setVehicle:s,setMake:F,setModel:L,setYear:Y,setModification:V,makeOptions:A,modelOptions:D,yearOptions:x,modOptions:H,loading:N,cascadeError:O,stock:C,fullyPicked:I,makeName:P,modelName:T,modName:U}}export{z as useFitmentCascade};
1
+ import{useCallback as u,useEffect as r,useMemo as k,useState as o}from"react";import{fitment as f}from"../../lib/api/index.js";import{DEFAULT_VEHICLE as Q}from"../../lib/wheels/fitment-options.js";function R(i){return i instanceof Error?i.message:String(i)}function ee(i=[],y=!0){const[t,m]=o(Q),[g,L]=o(i),[h,p]=o([]),[S,M]=o([]),[c,E]=o([]),[N,T]=o(null),[O,l]=o({makes:y&&i.length===0}),[d,Y]=o({}),[b,F]=o(null),n=(e,a)=>Y(s=>!!s[e]===a?s:{...s,[e]:a}),[v,C]=o(0),[V,x]=o(0),[A,D]=o(0);r(()=>{y&&i.length===0&&(l(e=>({...e,makes:!0})),f.listMakes().then(e=>{L(e),n("makes",!1)}).catch(()=>n("makes",!0)).finally(()=>l(e=>({...e,makes:!1}))))},[y,i.length]),r(()=>{if(n("models",!1),!t.make){p([]);return}let e=!1;return l(a=>({...a,models:!0})),f.listModels(t.make).then(a=>{e||p(a)}).catch(()=>{e||(p([]),n("models",!0))}).finally(()=>{e||l(a=>({...a,models:!1}))}),()=>{e=!0}},[t.make,v]),r(()=>{if(n("years",!1),!t.make||!t.model){M([]);return}let e=!1;return l(a=>({...a,years:!0})),f.listYears(t.make,t.model).then(a=>{e||M(a)}).catch(()=>{e||(M([]),n("years",!0))}).finally(()=>{e||l(a=>({...a,years:!1}))}),()=>{e=!0}},[t.make,t.model,V]),r(()=>{if(n("modifications",!1),!t.make||!t.model||t.year===null){E([]);return}let e=!1;return l(a=>({...a,modifications:!0})),f.listModifications(t.make,t.model,t.year).then(a=>{e||E(a)}).catch(()=>{e||(E([]),n("modifications",!0))}).finally(()=>{e||l(a=>({...a,modifications:!1}))}),()=>{e=!0}},[t.make,t.model,t.year,A]),r(()=>{const e=t.year!==null&&t.make&&t.model&&t.modification;if(F(null),!e){T(null);return}let a=!1;return l(s=>({...s,stock:!0})),f.getStockFitment(t.make,t.model,t.year,t.modification).then(s=>{a||T(s)}).catch(s=>{a||F(R(s))}).finally(()=>{a||l(s=>({...s,stock:!1}))}),()=>{a=!0}},[t.make,t.model,t.year,t.modification]),r(()=>{t.year!==null&&t.make&&t.model&&!t.modification&&c.length===1&&m(e=>({...e,modification:c[0].slug}))},[t.year,t.make,t.model,t.modification,c]);const H=u(e=>{m(a=>({...a,make:e,model:"",year:null,modification:""})),C(a=>a+1)},[]),I=u(e=>{m(a=>({...a,model:e,year:null,modification:""})),x(a=>a+1)},[]),P=u(e=>{m(a=>({...a,year:e?Number(e):null,modification:""})),D(a=>a+1)},[]),U=u(e=>m(a=>({...a,modification:e})),[]),_=k(()=>S.map(e=>({value:String(e),label:String(e)})),[S]),j=k(()=>g.map(e=>({value:e.slug,label:e.name})),[g]),q=k(()=>h.map(e=>({value:e.slug,label:e.name})),[h]),w=k(()=>c.map(e=>({value:e.slug,label:e.name})),[c]),z=t.year!==null&&!!t.make&&!!t.model&&!!t.modification,B=g.find(e=>e.slug===t.make)?.name??t.make,G=h.find(e=>e.slug===t.model)?.name??t.model,J=c.find(e=>e.slug===t.modification)?.name??t.modification,K=!!(d.makes||d.models||d.years||d.modifications);return{vehicle:t,setVehicle:m,setMake:H,setModel:I,setYear:P,setModification:U,makeOptions:j,modelOptions:q,yearOptions:_,modOptions:w,loading:O,failed:d,stockError:b,cascadeError:b??(K?"Vehicle data could not be loaded":null),stock:N,fullyPicked:z,makeName:B,modelName:G,modName:J}}export{ee as useFitmentCascade};
@@ -1 +1 @@
1
- "use client";import{useCallback as k,useEffect as h,useMemo as x,useRef as F,useState as S}from"react";import{useFitmentCascade as M}from"./useFitmentCascade.js";import{DEFAULT_VEHICLE as L}from"../../lib/wheels/fitment-options.js";import{vehicleFitmentFromStock as P}from"../../lib/wheels/plp-fitment-match.js";import{clearAppliedVehicle as j}from"../../lib/wheels/applied-vehicle.js";import{isCompleteVehicle as p,vehicleFromParams as B}from"../../lib/wheels/plp-vehicle-params.js";import{storefrontVehicleMemory as a}from"../../lib/wheels/vehicle-memory.js";function b(t,c,r){return t!==c?t:r||c}function D(t,c){return t.make===c.make&&t.model===c.model&&t.modification===c.modification}function m(t,c){return t.make===c.make&&t.model===c.model&&t.year===c.year&&t.modification===c.modification}function z({initialMakes:t=[],editing:c=!1,enabled:r=!0,autoApply:N=!1,shareStock:y=!1}={}){const e=M(t,r),{setVehicle:n}=e,[l,f]=S(null),[C,w]=S(!1),u=k(()=>({make:e.makeName,model:e.modelName,modification:e.modName}),[e.makeName,e.modelName,e.modName]);h(()=>{if(c||!r){w(!0);return}const o=B(new URLSearchParams(window.location.search)),s=o?null:a.read(),i=o??s?.vehicle??null;i&&(n(i),f({vehicle:i,labels:s?.labels??{make:i.make,model:i.model,modification:i.modification},stock:null})),w(!0)},[c,r,n]),h(()=>{if(!(c||!r))return a.subscribe(()=>{const o=a.read();f(i=>o?i&&m(i.vehicle,o.vehicle)?D(i.labels,o.labels)?i:{...i,labels:o.labels}:{vehicle:o.vehicle,labels:o.labels,stock:null}:null);const s=o?.vehicle??L;n(i=>m(i,s)?i:s)})},[c,r,n]),h(()=>{!N||!p(e.vehicle)||l&&m(l.vehicle,e.vehicle)||f({vehicle:e.vehicle,labels:u(),stock:e.stock})},[N,l,e.vehicle,e.stock,u]),h(()=>{if(!l||!m(e.vehicle,l.vehicle))return;const o={make:b(e.makeName,e.vehicle.make,l.labels.make),model:b(e.modelName,e.vehicle.model,l.labels.model),modification:b(e.modName,e.vehicle.modification,l.labels.modification)};(l.stock!==e.stock||l.labels.make!==o.make||l.labels.model!==o.model||l.labels.modification!==o.modification)&&f(i=>i&&m(e.vehicle,i.vehicle)?{...i,stock:e.stock,labels:o}:i)},[l,e.vehicle,e.stock,e.makeName,e.modelName,e.modName]);const d=F("");h(()=>{if(!(c||!r))try{if(!l){d.current!==""&&(a.clear(),d.current="");return}const o=JSON.stringify({vehicle:l.vehicle,labels:l.labels});if(o===d.current)return;a.write({vehicle:l.vehicle,labels:l.labels}),d.current=o}catch{}},[l,c,r]);const v=F(!1);h(()=>{if(!y||!r)return;if(!l){v.current&&a.writeStock(null),v.current=!1;return}if(!m(e.vehicle,l.vehicle))return;const o=e.loading.stock!==!1,s=a.readStock();s&&m(s.vehicle,l.vehicle)&&s.stock===e.stock&&s.loading===o&&s.error===e.cascadeError||(a.writeStock({vehicle:l.vehicle,stock:e.stock,loading:o,error:e.cascadeError}),v.current=!0)},[y,r,l,e.vehicle,e.stock,e.loading.stock,e.cascadeError]);const A=k(()=>{p(e.vehicle)&&f({vehicle:e.vehicle,labels:u(),stock:e.stock})},[e.vehicle,e.stock,u]),R=k(()=>{f(null),n(L),!c&&r&&j()},[c,r,n]),E=x(()=>P(l?.stock),[l?.stock]),V=!!l&&m(e.vehicle,l.vehicle)&&e.loading.stock!==!1,U=l?[l.vehicle.year,l.labels.make,l.labels.model,l.labels.modification].filter(Boolean).join(" "):"";return{cascade:e,applied:l,fit:E,resolving:V,unresolved:!!l&&E===null&&!V,apply:A,clear:R,canApply:p(e.vehicle),appliedName:U,restored:C}}export{z as useVehicleFit};
1
+ "use client";import{useCallback as d,useEffect as h,useMemo as x,useRef as F,useState as S}from"react";import{useFitmentCascade as M}from"./useFitmentCascade.js";import{DEFAULT_VEHICLE as L}from"../../lib/wheels/fitment-options.js";import{vehicleFitmentFromStock as P}from"../../lib/wheels/plp-fitment-match.js";import{clearAppliedVehicle as j}from"../../lib/wheels/applied-vehicle.js";import{isCompleteVehicle as p,vehicleFromParams as B}from"../../lib/wheels/plp-vehicle-params.js";import{storefrontVehicleMemory as a}from"../../lib/wheels/vehicle-memory.js";function b(t,i,r){return t!==i?t:r||i}function D(t,i){return t.make===i.make&&t.model===i.model&&t.modification===i.modification}function m(t,i){return t.make===i.make&&t.model===i.model&&t.year===i.year&&t.modification===i.modification}function z({initialMakes:t=[],editing:i=!1,enabled:r=!0,autoApply:N=!1,shareStock:y=!1}={}){const e=M(t,r),{setVehicle:n}=e,[l,f]=S(null),[C,w]=S(!1),k=d(()=>({make:e.makeName,model:e.modelName,modification:e.modName}),[e.makeName,e.modelName,e.modName]);h(()=>{if(i||!r){w(!0);return}const o=B(new URLSearchParams(window.location.search)),s=o?null:a.read(),c=o??s?.vehicle??null;c&&(n(c),f({vehicle:c,labels:s?.labels??{make:c.make,model:c.model,modification:c.modification},stock:null})),w(!0)},[i,r,n]),h(()=>{if(!(i||!r))return a.subscribe(()=>{const o=a.read();f(c=>o?c&&m(c.vehicle,o.vehicle)?D(c.labels,o.labels)?c:{...c,labels:o.labels}:{vehicle:o.vehicle,labels:o.labels,stock:null}:null);const s=o?.vehicle??L;n(c=>m(c,s)?c:s)})},[i,r,n]),h(()=>{!N||!p(e.vehicle)||l&&m(l.vehicle,e.vehicle)||f({vehicle:e.vehicle,labels:k(),stock:e.stock})},[N,l,e.vehicle,e.stock,k]),h(()=>{if(!l||!m(e.vehicle,l.vehicle))return;const o={make:b(e.makeName,e.vehicle.make,l.labels.make),model:b(e.modelName,e.vehicle.model,l.labels.model),modification:b(e.modName,e.vehicle.modification,l.labels.modification)};(l.stock!==e.stock||l.labels.make!==o.make||l.labels.model!==o.model||l.labels.modification!==o.modification)&&f(c=>c&&m(e.vehicle,c.vehicle)?{...c,stock:e.stock,labels:o}:c)},[l,e.vehicle,e.stock,e.makeName,e.modelName,e.modName]);const u=F("");h(()=>{if(!(i||!r))try{if(!l){u.current!==""&&(a.clear(),u.current="");return}const o=JSON.stringify({vehicle:l.vehicle,labels:l.labels});if(o===u.current)return;a.write({vehicle:l.vehicle,labels:l.labels}),u.current=o}catch{}},[l,i,r]);const v=F(!1);h(()=>{if(!y||!r)return;if(!l){v.current&&a.writeStock(null),v.current=!1;return}if(!m(e.vehicle,l.vehicle))return;const o=e.loading.stock!==!1,s=a.readStock();s&&m(s.vehicle,l.vehicle)&&s.stock===e.stock&&s.loading===o&&s.error===e.stockError||(a.writeStock({vehicle:l.vehicle,stock:e.stock,loading:o,error:e.stockError}),v.current=!0)},[y,r,l,e.vehicle,e.stock,e.loading.stock,e.stockError]);const A=d(()=>{p(e.vehicle)&&f({vehicle:e.vehicle,labels:k(),stock:e.stock})},[e.vehicle,e.stock,k]),R=d(()=>{f(null),n(L),!i&&r&&j()},[i,r,n]),E=x(()=>P(l?.stock),[l?.stock]),V=!!l&&m(e.vehicle,l.vehicle)&&e.loading.stock!==!1,U=l?[l.vehicle.year,l.labels.make,l.labels.model,l.labels.modification].filter(Boolean).join(" "):"";return{cascade:e,applied:l,fit:E,resolving:V,unresolved:!!l&&E===null&&!V,apply:A,clear:R,canApply:p(e.vehicle),appliedName:U,restored:C}}export{z as useVehicleFit};
@@ -4,6 +4,7 @@ import { VEHICLE_FIELD_ORDER, type VehicleField } from "../../lib/wheels/vehicle
4
4
  export interface VehicleLevelState {
5
5
  placeholder: string;
6
6
  disabled: boolean;
7
+ failed?: boolean;
7
8
  }
8
9
  export declare const VEHICLE_FIELD_NEEDED: Record<VehicleField, string>;
9
10
  export declare function vehicleLevelStates(cascade: FitmentCascade): Record<VehicleField, VehicleLevelState>;
@@ -1 +1 @@
1
- import{VEHICLE_FIELD_ORDER as d}from"../../lib/wheels/vehicle-field-focus.js";const o={make:"Pick a make first",model:"Pick a model first",year:"Pick a year first",trim:"Pick a trim first"};function l({parentPicked:e,loading:i,options:t,waiting:r,loadingLabel:a,readyLabel:n,emptyLabel:m}){return e?i?{placeholder:a,disabled:!0}:t.length===0?{placeholder:m,disabled:!0}:{placeholder:n,disabled:!1}:{placeholder:r,disabled:!0}}function p(e){const{vehicle:i,loading:t}=e;return{make:l({parentPicked:!0,loading:t.makes,options:e.makeOptions,waiting:"",loadingLabel:"Loading makes…",readyLabel:"Select make",emptyLabel:"Vehicle list unavailable"}),model:l({parentPicked:!!i.make,loading:t.models,options:e.modelOptions,waiting:o.make,loadingLabel:"Loading models…",readyLabel:"Select model",emptyLabel:"No models listed"}),year:l({parentPicked:!!i.model,loading:t.years,options:e.yearOptions,waiting:o.model,loadingLabel:"Loading years…",readyLabel:"Select year",emptyLabel:"No years listed"}),trim:l({parentPicked:i.year!==null,loading:t.modifications,options:e.modOptions,waiting:o.year,loadingLabel:"Loading trims…",readyLabel:"Select trim",emptyLabel:"No trims listed"})}}function y(e){return{make:e.makeOptions,model:e.modelOptions,year:e.yearOptions,trim:e.modOptions}}function k(e){return{make:e.setMake,model:e.setModel,year:e.setYear,trim:e.setModification}}function L(e){const{vehicle:i}=e;return{make:i.make,model:i.model,year:i.year!==null?String(i.year):"",trim:i.modification}}function u(e){const{vehicle:i}=e;return{make:i.make?e.makeName:"",model:i.model?e.modelName:"",year:i.year!==null?String(i.year):"",trim:i.modification?e.modName:""}}export{o as VEHICLE_FIELD_NEEDED,d as VEHICLE_FIELD_ORDER,u as vehicleLevelNames,y as vehicleLevelOptions,k as vehicleLevelSetters,p as vehicleLevelStates,L as vehicleLevelValues};
1
+ import{VEHICLE_FIELD_ORDER as p}from"../../lib/wheels/vehicle-field-focus.js";const o={make:"Pick a make first",model:"Pick a model first",year:"Pick a year first",trim:"Pick a trim first"};function a({parentPicked:e,loading:i,failed:l,options:t,waiting:r,loadingLabel:n,readyLabel:d,emptyLabel:m,failedLabel:s}){return e?i?{placeholder:n,disabled:!0}:l?{placeholder:s,disabled:!0,failed:!0}:t.length===0?{placeholder:m,disabled:!0}:{placeholder:d,disabled:!1}:{placeholder:r,disabled:!0}}function u(e){const{vehicle:i,loading:l,failed:t}=e;return{make:a({parentPicked:!0,loading:l.makes,failed:t.makes,failedLabel:"Couldn't load makes",options:e.makeOptions,waiting:"",loadingLabel:"Loading makes…",readyLabel:"Select make",emptyLabel:"Vehicle list unavailable"}),model:a({parentPicked:!!i.make,loading:l.models,failed:t.models,failedLabel:"Couldn't load models",options:e.modelOptions,waiting:o.make,loadingLabel:"Loading models…",readyLabel:"Select model",emptyLabel:"No models listed"}),year:a({parentPicked:!!i.model,loading:l.years,failed:t.years,failedLabel:"Couldn't load years",options:e.yearOptions,waiting:o.model,loadingLabel:"Loading years…",readyLabel:"Select year",emptyLabel:"No years listed"}),trim:a({parentPicked:i.year!==null,loading:l.modifications,failed:t.modifications,failedLabel:"Couldn't load trims",options:e.modOptions,waiting:o.year,loadingLabel:"Loading trims…",readyLabel:"Select trim",emptyLabel:"No trims listed"})}}function y(e){return{make:e.makeOptions,model:e.modelOptions,year:e.yearOptions,trim:e.modOptions}}function L(e){return{make:e.setMake,model:e.setModel,year:e.setYear,trim:e.setModification}}function k(e){const{vehicle:i}=e;return{make:i.make,model:i.model,year:i.year!==null?String(i.year):"",trim:i.modification}}function b(e){const{vehicle:i}=e;return{make:i.make?e.makeName:"",model:i.model?e.modelName:"",year:i.year!==null?String(i.year):"",trim:i.modification?e.modName:""}}export{o as VEHICLE_FIELD_NEEDED,p as VEHICLE_FIELD_ORDER,b as vehicleLevelNames,y as vehicleLevelOptions,L as vehicleLevelSetters,u as vehicleLevelStates,k as vehicleLevelValues};
@@ -2036,6 +2036,7 @@ export interface components {
2036
2036
  country: string;
2037
2037
  openingHours: string;
2038
2038
  instructions: string;
2039
+ readyIn?: string;
2039
2040
  };
2040
2041
  DeliveryOption: {
2041
2042
  id: string;
@@ -50,7 +50,7 @@ export interface WalletReturnPage {
50
50
  setConfirming(on: boolean): void;
51
51
  land(order: LandingOrder): void;
52
52
  markPaid(): void;
53
- note(message: string): void;
53
+ note(message: string, warning: boolean): void;
54
54
  fail(message: string): void;
55
55
  clearCart(): void;
56
56
  lostChange(): void;
@@ -1 +1 @@
1
- const u="checkout-afterpay-context",s="checkout-gocardless-context",m="checkout-zip-context",d="checkout-klarna-context";function p(e){return e?.lostChange===!0}function g({evidence:e,parked:t}){return e?{action:"capture",evidence:e,parked:t}:t?{action:"settle",parked:t}:{action:"ignore"}}function f(e,t){const r=e.getItem(t);if(e.removeItem(t),!r)return null;try{return JSON.parse(r)}catch{return null}}function y(e){const t=e.words?.declined??`${e.name} declined the payment — our team will follow up on payment.`;return{settled:e.words?.settled??`The ${e.name} payment was not completed — our team will follow up on payment.`,declined:t,collecting:e.words?.collecting??t,unconfirmed:e.words?.unconfirmed??`We could not confirm the ${e.name} payment — our team will follow up on payment.`}}const k={name:"Afterpay",legParam:"afterpay",legValues:["confirm","cancel"],storageKey:u,evidenceFrom(e,t){return t==="cancel"||(e.get("status")??"").toUpperCase()==="CANCELLED"?null:e.get("orderToken")},requestFrom:e=>({token:e})},h={name:"Zip",legParam:"zip",legValues:["return"],storageKey:m,evidenceFrom(e){const t=(e.get("result")??"").toLowerCase();return t==="cancelled"||t==="declined"?null:e.get("checkoutId")},requestFrom:e=>({checkoutId:e})},w={name:"GoCardless",legParam:"gocardless",legValues:["confirm","cancel"],storageKey:s,evidenceFrom:(e,t)=>t==="confirm"?t:null,requestFrom:(e,t)=>({idempotencyKey:t?.idempotencyKey??""}),keyedByParked:!0,words:{settled:"The direct debit was not set up — our team will follow up on payment.",declined:"The direct debit was declined — our team will follow up on payment.",collecting:"Your direct debit is set up — the payment is collecting and will clear in a few days.",unconfirmed:"We could not confirm the direct debit — our team will follow up on payment."}},E={name:"Klarna",legParam:"klarna",legValues:["confirm","cancel"],storageKey:d,evidenceFrom:(e,t)=>t==="confirm"?e.get("authorization_token"):null,requestFrom:(e,t)=>({idempotencyKey:t?.idempotencyKey??"",authorizationToken:e}),keyedByParked:!0,words:{collecting:"Your Klarna payment is being reviewed — we'll confirm the outcome shortly."}};async function T(e,t){const r=new URLSearchParams(t.search),a=r.get(e.legParam);if(!a||!e.legValues.includes(a))return;const i=f(t.storage,e.storageKey),l=e.evidenceFrom(r,a);t.scrubQuery();const n=g({evidence:l,parked:i});if(n.action==="ignore"||e.keyedByParked&&!n.parked)return;const o=y(e);if(t.page.clearCart(),p(n.parked)&&t.page.lostChange(),n.action==="settle"){t.page.note(o.settled),t.page.land(n.parked.confirmation);return}t.page.setConfirming(!0);try{const c=await t.capture(e.requestFrom(n.evidence,n.parked));c.status==="paid"?t.page.markPaid():t.page.note(c.status==="collecting"?o.collecting:o.declined),t.page.land(n.parked?.confirmation??c)}catch{n.parked?(t.page.note(o.unconfirmed),t.page.land(n.parked.confirmation)):t.page.fail(`We could not confirm your ${e.name} payment. Please contact us before trying again — your payment may already have been taken.`)}finally{t.page.setConfirming(!1)}}export{u as AFTERPAY_CONTEXT_KEY,k as AFTERPAY_RETURN,s as GOCARDLESS_CONTEXT_KEY,w as GOCARDLESS_RETURN,d as KLARNA_CONTEXT_KEY,E as KLARNA_RETURN,m as ZIP_CONTEXT_KEY,h as ZIP_RETURN,p as parkedLostChange,f as readParked,g as resolveWalletReturn,T as runWalletReturn};
1
+ const u="checkout-afterpay-context",s="checkout-gocardless-context",m="checkout-zip-context",d="checkout-klarna-context";function g(e){return e?.lostChange===!0}function p({evidence:e,parked:t}){return e?{action:"capture",evidence:e,parked:t}:t?{action:"settle",parked:t}:{action:"ignore"}}function f(e,t){const r=e.getItem(t);if(e.removeItem(t),!r)return null;try{return JSON.parse(r)}catch{return null}}function y(e){const t=e.words?.declined??`${e.name} declined the payment — our team will follow up on payment.`;return{settled:e.words?.settled??`The ${e.name} payment was not completed — our team will follow up on payment.`,declined:t,collecting:e.words?.collecting??t,unconfirmed:e.words?.unconfirmed??`We could not confirm the ${e.name} payment — our team will follow up on payment.`}}const k={name:"Afterpay",legParam:"afterpay",legValues:["confirm","cancel"],storageKey:u,evidenceFrom(e,t){return t==="cancel"||(e.get("status")??"").toUpperCase()==="CANCELLED"?null:e.get("orderToken")},requestFrom:e=>({token:e})},h={name:"Zip",legParam:"zip",legValues:["return"],storageKey:m,evidenceFrom(e){const t=(e.get("result")??"").toLowerCase();return t==="cancelled"||t==="declined"?null:e.get("checkoutId")},requestFrom:e=>({checkoutId:e})},w={name:"GoCardless",legParam:"gocardless",legValues:["confirm","cancel"],storageKey:s,evidenceFrom:(e,t)=>t==="confirm"?t:null,requestFrom:(e,t)=>({idempotencyKey:t?.idempotencyKey??""}),keyedByParked:!0,words:{settled:"The direct debit was not set up — our team will follow up on payment.",declined:"The direct debit was declined — our team will follow up on payment.",collecting:"Your direct debit is set up — the payment is collecting and will clear in a few days.",unconfirmed:"We could not confirm the direct debit — our team will follow up on payment."}},E={name:"Klarna",legParam:"klarna",legValues:["confirm","cancel"],storageKey:d,evidenceFrom:(e,t)=>t==="confirm"?e.get("authorization_token"):null,requestFrom:(e,t)=>({idempotencyKey:t?.idempotencyKey??"",authorizationToken:e}),keyedByParked:!0,words:{collecting:"Your Klarna payment is being reviewed — we'll confirm the outcome shortly."}};async function T(e,t){const r=new URLSearchParams(t.search),a=r.get(e.legParam);if(!a||!e.legValues.includes(a))return;const i=f(t.storage,e.storageKey),l=e.evidenceFrom(r,a);t.scrubQuery();const n=p({evidence:l,parked:i});if(n.action==="ignore"||e.keyedByParked&&!n.parked)return;const o=y(e);if(t.page.clearCart(),g(n.parked)&&t.page.lostChange(),n.action==="settle"){t.page.note(o.settled,!0),t.page.land(n.parked.confirmation);return}t.page.setConfirming(!0);try{const c=await t.capture(e.requestFrom(n.evidence,n.parked));c.status==="paid"?t.page.markPaid():c.status==="collecting"?t.page.note(o.collecting,!e.words?.collecting):t.page.note(o.declined,!0),t.page.land(n.parked?.confirmation??c)}catch{n.parked?(t.page.note(o.unconfirmed,!0),t.page.land(n.parked.confirmation)):t.page.fail(`We could not confirm your ${e.name} payment. Please contact us before trying again — your payment may already have been taken.`)}finally{t.page.setConfirming(!1)}}export{u as AFTERPAY_CONTEXT_KEY,k as AFTERPAY_RETURN,s as GOCARDLESS_CONTEXT_KEY,w as GOCARDLESS_RETURN,d as KLARNA_CONTEXT_KEY,E as KLARNA_RETURN,m as ZIP_CONTEXT_KEY,h as ZIP_RETURN,g as parkedLostChange,f as readParked,p as resolveWalletReturn,T as runWalletReturn};
package/dist/words.d.ts CHANGED
@@ -135,9 +135,11 @@ export type WebBuilderPhrase =
135
135
  | "Add your answer here. Keep it clear and concise so it stays easy to scan."
136
136
  | "Add your first question"
137
137
  | "Add your numbers."
138
+ | "Add “{name}”"
138
139
  | "Address"
139
140
  | "After"
140
141
  | "All"
142
+ | "All pages"
141
143
  | "Alt text"
142
144
  | "Alternating"
143
145
  | "Alternating (zig-zag)"
@@ -208,6 +210,7 @@ export type WebBuilderPhrase =
208
210
  | "Big stat"
209
211
  | "Black and white"
210
212
  | "Black and white logos"
213
+ | "Blank page"
211
214
  | "Block"
212
215
  | "Block gap"
213
216
  | "Block spacing"
@@ -303,6 +306,7 @@ export type WebBuilderPhrase =
303
306
  | "Chip label"
304
307
  | "Chips"
305
308
  | "Choose a page"
309
+ | "Choose a page and change the text, images and more."
306
310
  | "Choose a popup"
307
311
  | "Choose a post"
308
312
  | "Choose a product"
@@ -359,6 +363,7 @@ export type WebBuilderPhrase =
359
363
  | "Couldn’t delete the page — please retry."
360
364
  | "Couldn’t duplicate the section — please retry"
361
365
  | "Couldn’t load pages"
366
+ | "Couldn’t load the pages — please retry."
362
367
  | "Couldn’t open this section."
363
368
  | "Couldn’t reach {place}."
364
369
  | "Count"
@@ -556,6 +561,7 @@ export type WebBuilderPhrase =
556
561
  | "Frequently *asked.*"
557
562
  | "From"
558
563
  | "From the bottom"
564
+ | "From your template"
559
565
  | "Full"
560
566
  | "Full width"
561
567
  | "Full-bleed intro image the next section scrolls over."
@@ -825,6 +831,7 @@ export type WebBuilderPhrase =
825
831
  | "No match (gray ✕)"
826
832
  | "No other pages"
827
833
  | "No pages match your search"
834
+ | "No pages to start from"
828
835
  | "No pages yet. Add one with + above."
829
836
  | "No place found. Try another postcode."
830
837
  | "No question matches your search."
@@ -912,6 +919,7 @@ export type WebBuilderPhrase =
912
919
  | "Page settings for “{name}”"
913
920
  | "Page width"
914
921
  | "Pages"
922
+ | "Pages for your site"
915
923
  | "Panel heading"
916
924
  | "Panels & cards"
917
925
  | "Panels and cards"
@@ -1171,6 +1179,7 @@ export type WebBuilderPhrase =
1171
1179
  | "Stacked"
1172
1180
  | "Stacks below"
1173
1181
  | "Standard"
1182
+ | "Start with a blank page, then add sections."
1174
1183
  | "Starts open"
1175
1184
  | "Stat"
1176
1185
  | "Stat & note"
@@ -1684,7 +1693,10 @@ export type StorefrontBlocksPhrase =
1684
1693
  | "Copyright"
1685
1694
  | "Could not load header settings."
1686
1695
  | "Could not save. Please retry."
1696
+ | "Couldn’t load menus"
1697
+ | "Couldn’t load this site’s menus."
1687
1698
  | "Couldn’t reach the product catalog."
1699
+ | "Couldn’t update the links. Try again:"
1688
1700
  | "Country name"
1689
1701
  | "Country selector"
1690
1702
  | "Counts visits and pages so we can improve the site. Google Analytics and our own visit count."