efficient-storefront-blocks 0.23.0 → 0.25.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 (30) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +3 -0
  3. package/dist/chunks/{EditorPreviewCheckout-54OF6GQB.js → EditorPreviewCheckout-URFSPLP6.js} +1 -1
  4. package/dist/chunks/PreviewFooter-SMYEU6AT.js +1 -0
  5. package/dist/chunks/SiteEditorProvider-ZSJ42NW3.js +1 -0
  6. package/dist/chunks/{chunk-YSV4ASRS.js → chunk-5FWFXNTA.js} +1 -1
  7. package/dist/chunks/chunk-D42IBF3T.js +230 -0
  8. package/dist/chunks/chunk-E27PWVTV.js +16 -0
  9. package/dist/chunks/{chunk-HURDX4EH.js.LEGAL.txt → chunk-E27PWVTV.js.LEGAL.txt} +3 -0
  10. package/dist/chunks/{chunk-NYX4XTRE.js → chunk-RVAMC6AG.js} +1 -1
  11. package/dist/chunks/chunk-V5ANFR4Q.js +154 -0
  12. package/dist/chunks/chunk-XMRDC5JK.js +1 -0
  13. package/dist/chunks/{fitment-data-AFUGFEWT.js → fitment-data-QCRJYMQI.js} +1 -1
  14. package/dist/chunks/render-client-GS5UA2Q7.js +1 -0
  15. package/dist/contract.js +1 -1
  16. package/dist/editor.css +1 -1
  17. package/dist/index.d.ts +8 -0
  18. package/dist/index.js +21 -123
  19. package/dist/links.js +1 -1
  20. package/package.json +3 -3
  21. package/dist/chunks/PreviewFooter-FVRZAZLF.js +0 -1
  22. package/dist/chunks/SiteEditorProvider-F6KKDLMD.js +0 -1
  23. package/dist/chunks/chunk-6EH27IKS.js +0 -230
  24. package/dist/chunks/chunk-HURDX4EH.js +0 -16
  25. package/dist/chunks/chunk-HYLRHFHP.js +0 -1
  26. package/dist/chunks/chunk-MZOOSHH4.js +0 -153
  27. package/dist/chunks/render-client-KQRL2HNU.js +0 -1
  28. /package/dist/chunks/{SectionEditorShell-6KCRQP6C.js → SectionEditorShell-KPJJGNME.js} +0 -0
  29. /package/dist/chunks/{chunk-EJ2NLQYY.js → chunk-BXKNNBHR.js} +0 -0
  30. /package/dist/chunks/{chunk-MZOOSHH4.js.LEGAL.txt → chunk-V5ANFR4Q.js.LEGAL.txt} +0 -0
@@ -1 +0,0 @@
1
- "use client";import{_ as E,l as A}from"./chunk-MZOOSHH4.js";import{I as m,J as y,M as g,S as d,V as h}from"./chunk-HURDX4EH.js";import"./chunk-YSV4ASRS.js";import"./chunk-NYX4XTRE.js";import"./chunk-HYLRHFHP.js";import"./chunk-EJ2NLQYY.js";import"./chunk-Y6SLVHK3.js";import{jsx as G}from"react/jsx-runtime";import{Render as D}from"efficient-easel/render";function H(e){return Array.isArray(e)&&e.length>0&&e.every(r=>!!r&&typeof r=="object"&&typeof r.type=="string")}function u(e){let r=e.props;if(!r)return e;let n=r,a=!1;for(let[i,o]of Object.entries(r)){if(!H(o))continue;let t=o.map(u),s=e.type===g&&t.every(c=>c.type===m)?y(t):t;(s.length!==o.length||s.some((c,p)=>c!==o[p]))&&(n===r&&(n={...r}),n[i]=s,a=!0)}return a?{...e,props:n}:e}function P(e){let r=e;if(!r||typeof r!="object")return e;let n=!1,a={...e};if(Array.isArray(r.content)){let i=r.content.map(u);i.some((o,t)=>o!==r.content[t])&&(a.content=i,n=!0)}if(r.zones&&typeof r.zones=="object"){let i=!1,o=Object.fromEntries(Object.entries(r.zones).map(([t,s])=>{if(!Array.isArray(s))return[t,s];let c=s.map(u);return c.some((p,f)=>p!==s[f])&&(i=!0),[t,c]}));i&&(a.zones=o,n=!0)}return n?a:e}var j=["DocMasthead","AlloyWheelsListing"],x="titleLevel";function O(e){let r=e;if(!r?.content?.length)return e;let n=!1,a=!1,i=r.content.map(o=>j.includes(o?.type??"")?n?(a=!0,{...o,props:{...o.props??{},[x]:2}}):(n=!0,o):o);return a?{...r,content:i}:e}var z=["GalleryB"];function S(e){let r=e.content;if(!Array.isArray(r))return e;let n=!1,a=r.map(t=>{let s=t?.type;if(!s||!z.includes(s))return t;let c=h[s];if(!c?.legacy)return t;let p=t.props??{},f=p[c.slot];if(Array.isArray(f)&&f.length>0)return t;let l=c.legacy(p);if(!l.length)return t;n=!0;let b=String(p.id??s),L=l.map((T,R)=>({type:c.childType,props:{id:`${c.childType}-${b}-${R}`,...T}}));return{...t,props:{...p,[c.slot]:L}}}),i=new Set(d(a)),o=i.size?a.filter((t,s)=>!i.has(s)):a;return i.size&&(n=!0),n?{...e,content:o}:e}function _({config:e,data:r}){return G(D,{config:e,data:O(P(A(S(r))))})}import{jsx as C}from"react/jsx-runtime";function I({data:e}){return C(_,{config:E,data:e})}export{I as default};