efficient-storefront-blocks 0.12.0 → 0.14.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/README.md +11 -6
  3. package/dist/chunks/EditorPreviewCheckout-B2WE4PQG.js +4 -0
  4. package/dist/chunks/{PreviewFooter-WL76Z4NK.js → PreviewFooter-WMJGEJ4V.js} +1 -1
  5. package/dist/chunks/SectionEditorShell-CS47KTY2.js +1 -0
  6. package/dist/chunks/SiteEditorProvider-SL2RMYRJ.js +1 -0
  7. package/dist/chunks/chunk-7LORPJCG.js +230 -0
  8. package/dist/chunks/chunk-AVM4NCES.js +16 -0
  9. package/dist/chunks/{chunk-I5J42GI3.js.LEGAL.txt → chunk-AVM4NCES.js.LEGAL.txt} +1 -1
  10. package/dist/chunks/chunk-F3PA63EP.js +1 -0
  11. package/dist/chunks/chunk-HHGLC5XH.js +153 -0
  12. package/dist/chunks/chunk-HHGLC5XH.js.LEGAL.txt +5 -0
  13. package/dist/chunks/chunk-MWOOPV76.js +1 -0
  14. package/dist/chunks/{chunk-QL3UVEEM.js → chunk-TCRMUJVM.js} +1 -1
  15. package/dist/chunks/chunk-Y2YO7JHE.js +1 -0
  16. package/dist/chunks/{fitment-data-3PTG4BJX.js → fitment-data-XD2SVBL7.js} +1 -1
  17. package/dist/chunks/render-client-LEJJONKA.js +1 -0
  18. package/dist/contract.js +1 -1
  19. package/dist/editor.css +1 -1
  20. package/dist/index.js +806 -991
  21. package/dist/links.js +1 -1
  22. package/package.json +6 -6
  23. package/dist/chunks/EditorPreviewCheckout-D2J57RZY.js +0 -4
  24. package/dist/chunks/SectionEditorShell-U3CXCPYO.js +0 -1
  25. package/dist/chunks/SiteEditorProvider-N7LE6HYF.js +0 -1
  26. package/dist/chunks/chunk-BAXOL3AI.js +0 -1
  27. package/dist/chunks/chunk-I5J42GI3.js +0 -16
  28. package/dist/chunks/chunk-NQIIJI3Z.js +0 -1
  29. package/dist/chunks/chunk-R2JQPRJX.js +0 -1
  30. package/dist/chunks/chunk-XNYKOAQ3.js +0 -153
  31. package/dist/chunks/chunk-XNYKOAQ3.js.LEGAL.txt +0 -4
  32. package/dist/chunks/chunk-YARJ4IUJ.js +0 -230
  33. package/dist/chunks/render-client-DYF6CWVJ.js +0 -1
  34. /package/dist/chunks/{gallery-builds-data-SWA6XKFF.js → gallery-builds-data-VVHHVNYW.js} +0 -0
  35. /package/dist/chunks/{headers-VF4VTX37.js → headers-UYHEZDAT.js} +0 -0
@@ -1 +0,0 @@
1
- "use client";import{Y as R,l as A}from"./chunk-XNYKOAQ3.js";import{I as g,J as m,M as d,S as T,V as h}from"./chunk-I5J42GI3.js";import"./chunk-R2JQPRJX.js";import"./chunk-QL3UVEEM.js";import"./chunk-BAXOL3AI.js";import"./chunk-NQIIJI3Z.js";import"./chunk-Y6SLVHK3.js";import{Render as S}from"efficient-easel/render";function L(e){return Array.isArray(e)&&e.length>0&&e.every(t=>!!t&&typeof t=="object"&&typeof t.type=="string")}function u(e){let t=e.props;if(!t)return e;let o=t,i=!1;for(let[c,r]of Object.entries(t)){if(!L(r))continue;let n=r.map(u),s=e.type===d&&n.every(p=>p.type===g)?m(n):n;(s.length!==r.length||s.some((p,a)=>p!==r[a]))&&(o===t&&(o={...t}),o[c]=s,i=!0)}return i?{...e,props:o}:e}function k(e){let t=e;if(!t||typeof t!="object")return e;let o=!1,i={...e};if(Array.isArray(t.content)){let c=t.content.map(u);c.some((r,n)=>r!==t.content[n])&&(i.content=c,o=!0)}if(t.zones&&typeof t.zones=="object"){let c=!1,r=Object.fromEntries(Object.entries(t.zones).map(([n,s])=>{if(!Array.isArray(s))return[n,s];let p=s.map(u);return p.some((a,f)=>a!==s[f])&&(c=!0),[n,p]}));c&&(i.zones=r,o=!0)}return o?i:e}var _=["DocMasthead","AlloyWheelsListing"],O="titleLevel";function N(e){let t=e;if(!t?.content?.length)return e;let o=!1,i=!1,c=t.content.map(r=>_.includes(r?.type??"")?o?(i=!0,{...r,props:{...r.props??{},[O]:2}}):(o=!0,r):r);return i?{...t,content:c}:e}var x=["GalleryB"];function E(e){let t=e.content;if(!Array.isArray(t))return e;let o=!1,i=t.map(n=>{let s=n?.type;if(!s||!x.includes(s))return n;let p=h[s];if(!p?.legacy)return n;let a=n.props??{},f=a[p.slot];if(Array.isArray(f)&&f.length>0)return n;let y=p.legacy(a);if(!y.length)return n;o=!0;let w=String(a.id??s),b=y.map((P,D)=>({type:p.childType,props:{id:`${p.childType}-${w}-${D}`,...P}}));return{...n,props:{...a,[p.slot]:b}}}),c=new Set(T(i)),r=c.size?i.filter((n,s)=>!c.has(s)):i;return c.size&&(o=!0),o?{...e,content:r}:e}import{jsx as z}from"react/jsx-runtime";function l({config:e,data:t}){return z(S,{config:e,data:N(k(A(E(t))))})}import{jsx as H}from"react/jsx-runtime";function G({data:e}){return H(l,{config:R,data:e})}export{G as default};