email-builder-online 4.1.19 → 4.2.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.
- package/dist/{index-qDMlUngh.js → index-CrVwCk1x.js} +26803 -24161
- package/dist/{index-DIcf45Mt.cjs → index-CsrBck_I.cjs} +243 -177
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{lazyThumbnailGenerator-DlNggS0H.cjs → lazyThumbnailGenerator-BkwIvDE0.cjs} +1 -1
- package/dist/{lazyThumbnailGenerator-BhRsrnNI.js → lazyThumbnailGenerator-CdrMpzg5.js} +1 -1
- package/dist/{lazyThumbnailGenerator-CUHoTySf.js → lazyThumbnailGenerator-CuNXH8F0.js} +1 -1
- package/dist/{seedLocalLibrary-DsJx4F-7.js → seedLocalLibrary-B-F34PyF.js} +1 -1
- package/dist/{seedLocalLibrary-DyVZUxIj.cjs → seedLocalLibrary-D287--Uq.cjs} +1 -1
- package/dist/{seedLocalLibrary-Bq4-B3Eb.js → seedLocalLibrary-O8AZv1w5.js} +1 -1
- package/dist/{standalone-B4y2TPl9.js → standalone-coVs_e2L.js} +46863 -44221
- package/dist/standalone.js +329 -263
- package/dist/standalone.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +7 -5
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("react/jsx-runtime");const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("react/jsx-runtime");const e=require("./index-CsrBck_I.cjs");require("react");exports.BLOCK_TYPES=e.BLOCK_TYPES;exports.ButtonPropsSchema=e.ButtonPropsSchema;exports.COLOR_SCHEMA=e.COLOR_SCHEMA;exports.ColumnsContainerPropsSchema=e.ColumnsContainerPropsSchema;exports.ContainerPropsSchema=e.ContainerPropsSchema;exports.DividerPropsSchema=e.DividerPropsSchema;exports.EditorBlockSchema=e.EditorBlockSchema;exports.EditorConfigurationSchema=e.EditorConfigurationSchema;exports.EmailBuilder=e.EmailBuilder;exports.EmailLayoutPropsSchema=e.EmailLayoutPropsSchema;exports.FONT_FAMILY_NAMES=e.FONT_FAMILY_NAMES;exports.FONT_FAMILY_SCHEMA=e.FONT_FAMILY_SCHEMA;exports.ImagePropsSchema=e.ImagePropsSchema;exports.NotionTextPropsSchema=e.NotionTextPropsSchema;exports.PADDING_SCHEMA=e.PADDING_SCHEMA;exports.SHAPE_SCHEMA=e.SHAPE_SCHEMA;exports.SocialMediaPropsSchema=e.SocialMediaPropsSchema;exports.SpacerPropsSchema=e.SpacerPropsSchema;exports.default=e.EmailBuilder;exports.registerEmailBuilder=e.registerEmailBuilder;exports.validateDocument=e.validateDocument;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { n as r, B as i, C as m, e as S, f as t, D as c, l as E, m as p, E as P, i as h, d as l, F as n, I as C, N as d, P as A, S as u, j as M, k as _, E as B, r as N, v as D } from "./index-
|
|
2
|
+
import { n as r, B as i, C as m, e as S, f as t, D as c, l as E, m as p, E as P, i as h, d as l, F as n, I as C, N as d, P as A, S as u, j as M, k as _, E as B, r as N, v as D } from "./index-CrVwCk1x.js";
|
|
3
3
|
import "react";
|
|
4
4
|
export {
|
|
5
5
|
r as BLOCK_TYPES,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-CsrBck_I.cjs"),d=200,g=6e3;let i=!1,y=!1;function T(e){return new Promise((t,a)=>{const o=new FileReader;o.onload=()=>t(o.result),o.onerror=a,o.readAsDataURL(e)})}function u(e){return new Promise(t=>setTimeout(t,e))}function p(e){try{const t=localStorage.getItem(e),a=t?JSON.parse(t):[];return Array.isArray(a)?a:[]}catch{return[]}}async function h(){if(i||r.getComponentsStorageMode()!=="local")return;i=!0;let e=0;try{const t=[{storageKey:"eb:lib:sections",isTemplate:!1},{storageKey:"eb:lib:layouts",isTemplate:!1},{storageKey:"eb:lib:templates",isTemplate:!0}];for(const{storageKey:a,isTemplate:o}of t){const b=p(a);for(const n of b)if(!(r.hasLocalThumbnail(n.id)||!n.blocks?.length)){for(;y;)await u(500);try{const l={};for(const s of n.blocks)l[s.id]=s.block;const m=o?"root":n.blocks[0].id,f=r.buildSubtreeHtml(l,m),c=await r.captureSubtreeThumbnail(f,{timeoutMs:g});if(c){const s=await T(c);r.setLocalThumbnail(n.id,s),e++}}catch{}await u(d)}}}finally{i=!1,e>0&&r.bumpComponentsLibraryRefresh()}}exports.generateMissingThumbnails=h;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as d } from "./standalone-
|
|
1
|
+
import { b as d } from "./standalone-coVs_e2L.js";
|
|
2
2
|
const m = "eb:lib:templates", a = "eb:lib:themes", b = "eb:lib:sections", p = "eb:lib:layouts", g = "eb:lib:primitives", c = "eb:lib:seeded";
|
|
3
3
|
function l(e) {
|
|
4
4
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-CsrBck_I.cjs"),b="eb:lib:templates",a="eb:lib:themes",m="eb:lib:sections",g="eb:lib:layouts",S="eb:lib:primitives",c="eb:lib:seeded";function l(t){try{const s=localStorage.getItem(t),r=s?JSON.parse(s):[];return Array.isArray(r)?r:[]}catch{return[]}}function o(t,s){if(!s?.length)return;const r=l(t),n=new Set(r.map(e=>e.id)),i=s.filter(e=>!n.has(e.id));i.length&&localStorage.setItem(t,JSON.stringify([...r,...i]))}async function u(){const{default:t}=await Promise.resolve().then(()=>require("./localPresets-CdsQZFO1.cjs")),s=t.version??"1";if(localStorage.getItem(c)!==s){if(o(b,t.templates),o(m,t.sections),o(g,t.layouts),o(S,t.primitives),t.themes?.length){const r=l(a),n=new Set(r.map(e=>e.id)),i=t.themes.filter(e=>!n.has(e.id)).map(e=>({id:e.id,name:e.name,description:e.description,createdAt:e.createdAt,updatedAt:e.updatedAt,globals:e.globals,blocks:e.blocks}));i.length&&localStorage.setItem(a,JSON.stringify([...r,...i]))}localStorage.setItem(c,s),d.bumpComponentsLibraryRefresh()}}exports.seedLocalLibrary=u;
|