efficient-storefront-blocks 0.13.0 → 0.15.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 +46 -0
  2. package/README.md +17 -9
  3. package/dist/chunks/EditorPreviewCheckout-J7MWTEHJ.js +4 -0
  4. package/dist/chunks/{PreviewFooter-WL76Z4NK.js → PreviewFooter-CZAS77OV.js} +1 -1
  5. package/dist/chunks/SectionEditorShell-JUUJQRZP.js +1 -0
  6. package/dist/chunks/SiteEditorProvider-PFM6CCPW.js +1 -0
  7. package/dist/chunks/chunk-2I435NJQ.js +1 -0
  8. package/dist/chunks/chunk-2PHC572K.js +153 -0
  9. package/dist/chunks/chunk-2PHC572K.js.LEGAL.txt +5 -0
  10. package/dist/chunks/chunk-GC3WZ5PJ.js +1 -0
  11. package/dist/chunks/chunk-HBULIX4L.js +1 -0
  12. package/dist/chunks/{chunk-QL3UVEEM.js → chunk-O6RPIOGL.js} +1 -1
  13. package/dist/chunks/chunk-VG7NDFTL.js +16 -0
  14. package/dist/chunks/{chunk-I5J42GI3.js.LEGAL.txt → chunk-VG7NDFTL.js.LEGAL.txt} +1 -1
  15. package/dist/chunks/chunk-VPRUR365.js +230 -0
  16. package/dist/chunks/{fitment-data-3PTG4BJX.js → fitment-data-FSXAUWXQ.js} +1 -1
  17. package/dist/chunks/render-client-VEVVM4IW.js +1 -0
  18. package/dist/contract.js +1 -1
  19. package/dist/editor.css +1 -1
  20. package/dist/index.js +970 -3069
  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-5HGJJCOZ.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-MSHAAJSK.js +0 -230
  29. package/dist/chunks/chunk-NQIIJI3Z.js +0 -1
  30. package/dist/chunks/chunk-R2JQPRJX.js +0 -1
  31. package/dist/chunks/chunk-XNYKOAQ3.js +0 -153
  32. package/dist/chunks/chunk-XNYKOAQ3.js.LEGAL.txt +0 -4
  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,4 +0,0 @@
1
- Bundled license information:
2
-
3
- dompurify/dist/purify.cjs.js:
4
- /*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */
@@ -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};