email-builder-online 4.1.13 → 4.1.14
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-BORDx2NL.cjs → index-4qATIPiQ.cjs} +169 -169
- package/dist/{index-BGFPP7q7.js → index-BbHkacvu.js} +21802 -22423
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/lazyThumbnailGenerator-CX6mKn28.cjs +1 -0
- package/dist/lazyThumbnailGenerator-Dr9ut-T5.js +55 -0
- package/dist/lazyThumbnailGenerator-NA9zDY4t.js +55 -0
- package/dist/localPresets-57l3x2SK.js +11 -0
- package/dist/localPresets-CdsQZFO1.cjs +1 -0
- package/dist/seedLocalLibrary-BWf9l6fp.js +36 -0
- package/dist/seedLocalLibrary-COo1vQ2c.cjs +1 -0
- package/dist/seedLocalLibrary-Dj3Ua-eO.js +36 -0
- package/dist/{standalone-QpPEEu_A.js → standalone-Dal2ieNb.js} +24965 -25586
- package/dist/standalone.js +218 -218
- package/dist/standalone.mjs +1 -1
- package/package.json +6 -6
- package/dist/lazyThumbnailGenerator-B_X8zwAa.cjs +0 -1
- package/dist/lazyThumbnailGenerator-Bb9drzyo.js +0 -64
- package/dist/lazyThumbnailGenerator-CDFvk5_J.js +0 -64
- package/dist/localPresets-Bqt2Z5-T.cjs +0 -1
- package/dist/localPresets-zfQXhBg0.js +0 -17
- package/dist/seedLocalLibrary-BEbXcwJY.js +0 -36
- package/dist/seedLocalLibrary-C4qVLhqT.cjs +0 -1
- package/dist/seedLocalLibrary-DSdtiOMs.js +0 -36
package/dist/standalone.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "email-builder-online",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -109,14 +109,14 @@
|
|
|
109
109
|
"react-dom": "^19.2.1",
|
|
110
110
|
"typescript": "^5.2.2",
|
|
111
111
|
"vite": "^7.2.7",
|
|
112
|
-
"@eb/block-button": "1.0.0",
|
|
113
|
-
"@eb/block-columns-container": "1.0.0",
|
|
114
112
|
"@eb/block-container": "1.0.0",
|
|
115
|
-
"@eb/block-divider": "1.0.0",
|
|
116
113
|
"@eb/block-notion-text": "1.0.0",
|
|
117
|
-
"@eb/block-image": "1.0.0",
|
|
118
114
|
"@eb/block-spacer": "1.0.0",
|
|
119
|
-
"@eb/
|
|
115
|
+
"@eb/block-divider": "1.0.0",
|
|
116
|
+
"@eb/block-columns-container": "1.0.0",
|
|
117
|
+
"@eb/email-builder": "1.0.0",
|
|
118
|
+
"@eb/block-button": "1.0.0",
|
|
119
|
+
"@eb/block-image": "1.0.0"
|
|
120
120
|
},
|
|
121
121
|
"keywords": [
|
|
122
122
|
"email-builder",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-BORDx2NL.cjs"),T=200;let s=!1,l=!1;function g(){l=!0}function h(){l=!1}function y(e){return new Promise((t,i)=>{const n=new FileReader;n.onload=()=>t(n.result),n.onerror=i,n.readAsDataURL(e)})}function b(e){return new Promise(t=>setTimeout(t,e))}function p(e){try{const t=localStorage.getItem(e);return t?JSON.parse(t):[]}catch{return[]}}async function w(){if(s||a.getComponentsStorageMode()!=="local")return;s=!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:i,isTemplate:n}of t){const m=p(i);for(const o of m)if(!a.hasCachedThumbnail(o.id)&&o.blocks?.length){for(;l;)await b(500);try{const u={};for(const r of o.blocks)u[r.id]=r.block;const f=n?"root":o.blocks[0].id,d=a.buildSubtreeHtml(u,f),c=await a.captureSubtreeThumbnail(d,{timeoutMs:6e3});if(c){const r=await y(c);a.setThumbnailDataUrl(o.id,r),e++}}catch{}await b(T)}}}finally{s=!1,e>0&&a.bumpLocalSeedVersion()}}exports.generateMissingThumbnails=w;exports.pauseThumbnailGeneration=g;exports.resumeThumbnailGeneration=h;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { g as d, h as g, a as h, c as p, s as y, b as T } from "./standalone-QpPEEu_A.js";
|
|
2
|
-
const w = 200;
|
|
3
|
-
let s = !1, i = !1;
|
|
4
|
-
function A() {
|
|
5
|
-
i = !0;
|
|
6
|
-
}
|
|
7
|
-
function D() {
|
|
8
|
-
i = !1;
|
|
9
|
-
}
|
|
10
|
-
function S(e) {
|
|
11
|
-
return new Promise((t, r) => {
|
|
12
|
-
const a = new FileReader();
|
|
13
|
-
a.onload = () => t(a.result), a.onerror = r, a.readAsDataURL(e);
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
function u(e) {
|
|
17
|
-
return new Promise((t) => setTimeout(t, e));
|
|
18
|
-
}
|
|
19
|
-
function k(e) {
|
|
20
|
-
try {
|
|
21
|
-
const t = localStorage.getItem(e);
|
|
22
|
-
return t ? JSON.parse(t) : [];
|
|
23
|
-
} catch {
|
|
24
|
-
return [];
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
async function K() {
|
|
28
|
-
if (s || d() !== "local") return;
|
|
29
|
-
s = !0;
|
|
30
|
-
let e = 0;
|
|
31
|
-
try {
|
|
32
|
-
const t = [
|
|
33
|
-
{ storageKey: "eb:lib:sections", isTemplate: !1 },
|
|
34
|
-
{ storageKey: "eb:lib:layouts", isTemplate: !1 },
|
|
35
|
-
{ storageKey: "eb:lib:templates", isTemplate: !0 }
|
|
36
|
-
];
|
|
37
|
-
for (const { storageKey: r, isTemplate: a } of t) {
|
|
38
|
-
const f = k(r);
|
|
39
|
-
for (const o of f)
|
|
40
|
-
if (!g(o.id) && o.blocks?.length) {
|
|
41
|
-
for (; i; ) await u(500);
|
|
42
|
-
try {
|
|
43
|
-
const l = {};
|
|
44
|
-
for (const n of o.blocks)
|
|
45
|
-
l[n.id] = n.block;
|
|
46
|
-
const b = a ? "root" : o.blocks[0].id, m = h(l, b), c = await p(m, { timeoutMs: 6e3 });
|
|
47
|
-
if (c) {
|
|
48
|
-
const n = await S(c);
|
|
49
|
-
y(o.id, n), e++;
|
|
50
|
-
}
|
|
51
|
-
} catch {
|
|
52
|
-
}
|
|
53
|
-
await u(w);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
} finally {
|
|
57
|
-
s = !1, e > 0 && T();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
export {
|
|
61
|
-
K as generateMissingThumbnails,
|
|
62
|
-
A as pauseThumbnailGeneration,
|
|
63
|
-
D as resumeThumbnailGeneration
|
|
64
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { g as d, h as g, a as h, c as p, s as y, b as T } from "./index-BGFPP7q7.js";
|
|
2
|
-
const w = 200;
|
|
3
|
-
let s = !1, i = !1;
|
|
4
|
-
function A() {
|
|
5
|
-
i = !0;
|
|
6
|
-
}
|
|
7
|
-
function D() {
|
|
8
|
-
i = !1;
|
|
9
|
-
}
|
|
10
|
-
function S(e) {
|
|
11
|
-
return new Promise((t, r) => {
|
|
12
|
-
const a = new FileReader();
|
|
13
|
-
a.onload = () => t(a.result), a.onerror = r, a.readAsDataURL(e);
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
function u(e) {
|
|
17
|
-
return new Promise((t) => setTimeout(t, e));
|
|
18
|
-
}
|
|
19
|
-
function k(e) {
|
|
20
|
-
try {
|
|
21
|
-
const t = localStorage.getItem(e);
|
|
22
|
-
return t ? JSON.parse(t) : [];
|
|
23
|
-
} catch {
|
|
24
|
-
return [];
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
async function K() {
|
|
28
|
-
if (s || d() !== "local") return;
|
|
29
|
-
s = !0;
|
|
30
|
-
let e = 0;
|
|
31
|
-
try {
|
|
32
|
-
const t = [
|
|
33
|
-
{ storageKey: "eb:lib:sections", isTemplate: !1 },
|
|
34
|
-
{ storageKey: "eb:lib:layouts", isTemplate: !1 },
|
|
35
|
-
{ storageKey: "eb:lib:templates", isTemplate: !0 }
|
|
36
|
-
];
|
|
37
|
-
for (const { storageKey: r, isTemplate: a } of t) {
|
|
38
|
-
const f = k(r);
|
|
39
|
-
for (const o of f)
|
|
40
|
-
if (!g(o.id) && o.blocks?.length) {
|
|
41
|
-
for (; i; ) await u(500);
|
|
42
|
-
try {
|
|
43
|
-
const l = {};
|
|
44
|
-
for (const n of o.blocks)
|
|
45
|
-
l[n.id] = n.block;
|
|
46
|
-
const b = a ? "root" : o.blocks[0].id, m = h(l, b), c = await p(m, { timeoutMs: 6e3 });
|
|
47
|
-
if (c) {
|
|
48
|
-
const n = await S(c);
|
|
49
|
-
y(o.id, n), e++;
|
|
50
|
-
}
|
|
51
|
-
} catch {
|
|
52
|
-
}
|
|
53
|
-
await u(w);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
} finally {
|
|
57
|
-
s = !1, e > 0 && T();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
export {
|
|
61
|
-
K as generateMissingThumbnails,
|
|
62
|
-
A as pauseThumbnailGeneration,
|
|
63
|
-
D as resumeThumbnailGeneration
|
|
64
|
-
};
|