efficient-web-builder 0.7.1 → 0.8.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 +19 -0
- package/README.md +26 -0
- package/dist/chunks/{EditorPreviewCheckout-NMJHO2WR.js → EditorPreviewCheckout-RALICX2M.js} +3 -3
- package/dist/chunks/PreviewFooter-TTWVSN7F.js +1 -0
- package/dist/chunks/SectionEditorShell-QHF74BM4.js +1 -0
- package/dist/chunks/StorefrontEditorChrome-VAFMI23Y.js +1 -0
- package/dist/chunks/{chunk-YMLSAFSM.js → chunk-23HYGLAH.js} +1 -1
- package/dist/chunks/chunk-2Z43RC3L.js +143 -0
- package/dist/chunks/chunk-4MT74TMP.js +1 -0
- package/dist/chunks/{chunk-G3X5WFSD.js → chunk-5WIA75VU.js} +1 -1
- package/dist/chunks/chunk-764WH3TY.js +11 -0
- package/dist/chunks/chunk-DN65SLZM.js +1 -0
- package/dist/chunks/chunk-FEL3RPX5.js +230 -0
- package/dist/chunks/chunk-KZIT3J33.js +1 -0
- package/dist/chunks/chunk-X2DL3VCU.js +15 -0
- package/dist/chunks/chunk-XMRSKZIR.js +2 -0
- package/dist/chunks/{fitment-data-6OYGRNMJ.js → fitment-data-6EHBA26C.js} +1 -1
- package/dist/chunks/render-client-3H6QYWG7.js +1 -0
- package/dist/editor.css +1 -1
- package/dist/index.js +23 -81
- package/dist/links.d.ts +86 -0
- package/dist/links.js +1 -0
- package/package.json +8 -1
- package/dist/chunks/PreviewFooter-E3AVT663.js +0 -1
- package/dist/chunks/SectionEditorShell-CNJJULHO.js +0 -1
- package/dist/chunks/StorefrontEditorChrome-OF6DKLWG.js +0 -1
- package/dist/chunks/chunk-6C5FL63W.js +0 -2
- package/dist/chunks/chunk-A2QNXDQ6.js +0 -11
- package/dist/chunks/chunk-INA2LIFW.js +0 -230
- package/dist/chunks/chunk-JSOIOPWC.js +0 -1
- package/dist/chunks/chunk-NTGUUW2T.js +0 -1
- package/dist/chunks/chunk-PAXN7G3Y.js +0 -1
- package/dist/chunks/chunk-QVG6K5WY.js +0 -15
- package/dist/chunks/chunk-V2G3QFLM.js +0 -143
- package/dist/chunks/render-client-O7623TWA.js +0 -1
- /package/dist/chunks/{chunk-V2G3QFLM.js.LEGAL.txt → chunk-2Z43RC3L.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-QVG6K5WY.js.LEGAL.txt → chunk-X2DL3VCU.js.LEGAL.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{r as A}from"./chunk-V2G3QFLM.js";import"./chunk-6C5FL63W.js";import"./chunk-G3X5WFSD.js";import{Nj as h,hb as m,ib as g,lb as d,of as T}from"./chunk-QVG6K5WY.js";import"./chunk-JSOIOPWC.js";import{Na as y}from"./chunk-A2QNXDQ6.js";import"./chunk-PAXN7G3Y.js";import"./chunk-UBYBQ3KR.js";import"./chunk-Y6SLVHK3.js";import{Render as x}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[p,r]of Object.entries(t)){if(!L(r))continue;let n=r.map(u),s=e.type===d&&n.every(c=>c.type===m)?g(n):n;(s.length!==r.length||s.some((c,a)=>c!==r[a]))&&(o===t&&(o={...t}),o[p]=s,i=!0)}return i?{...e,props:o}:e}function N(e){let t=e;if(!t||typeof t!="object")return e;let o=!1,i={...e};if(Array.isArray(t.content)){let p=t.content.map(u);p.some((r,n)=>r!==t.content[n])&&(i.content=p,o=!0)}if(t.zones&&typeof t.zones=="object"){let p=!1,r=Object.fromEntries(Object.entries(t.zones).map(([n,s])=>{if(!Array.isArray(s))return[n,s];let c=s.map(u);return c.some((a,f)=>a!==s[f])&&(p=!0),[n,c]}));p&&(i.zones=r,o=!0)}return o?i:e}var _=["DocMasthead","AlloyWheelsListing"],O="titleLevel";function k(e){let t=e;if(!t?.content?.length)return e;let o=!1,i=!1,p=t.content.map(r=>_.includes(r?.type??"")?o?(i=!0,{...r,props:{...r.props??{},[O]:2}}):(o=!0,r):r);return i?{...t,content:p}:e}var P=["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||!P.includes(s))return n;let c=h[s];if(!c?.legacy)return n;let a=n.props??{},f=a[c.slot];if(Array.isArray(f)&&f.length>0)return n;let l=c.legacy(a);if(!l.length)return n;o=!0;let R=String(a.id??s),w=l.map((b,D)=>({type:c.childType,props:{id:`${c.childType}-${R}-${D}`,...b}}));return{...n,props:{...a,[c.slot]:w}}}),p=new Set(y(i)),r=p.size?i.filter((n,s)=>!p.has(s)):i;return p.size&&(o=!0),o?{...e,content:r}:e}import{jsx as z}from"react/jsx-runtime";function S({data:e}){return z(x,{config:A,data:k(N(T(E(e))))})}export{S as default};
|
|
File without changes
|
|
File without changes
|