email-builder-online 4.1.13 → 4.1.15
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/LICENSE +661 -661
- package/README.md +1034 -1034
- package/dist/{index-BORDx2NL.cjs → index-BatJsONT.cjs} +169 -169
- package/dist/{index-BGFPP7q7.js → index-DFHcCVv7.js} +22450 -23140
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +1 -1
- package/dist/lazyThumbnailGenerator-BZlGvJjL.js +55 -0
- package/dist/lazyThumbnailGenerator-CPvTa1OS.js +55 -0
- package/dist/lazyThumbnailGenerator-CxousRtK.cjs +1 -0
- package/dist/localPresets-57l3x2SK.js +11 -0
- package/dist/localPresets-CdsQZFO1.cjs +1 -0
- package/dist/seedLocalLibrary-CKIQbOie.js +36 -0
- package/dist/seedLocalLibrary-Ct5I8GHM.js +36 -0
- package/dist/seedLocalLibrary-Dp3QfNd2.cjs +1 -0
- package/dist/{standalone-QpPEEu_A.js → standalone-DwQRIC9h.js} +28457 -29146
- package/dist/standalone.js +218 -218
- package/dist/standalone.mjs +1 -1
- package/package.json +3 -3
- package/vite.config.standalone.ts +95 -95
- 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
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { b as d } from "./standalone-QpPEEu_A.js";
|
|
2
|
-
const g = "eb:lib:templates", a = "eb:lib:themes", m = "eb:lib:sections", b = "eb:lib:layouts", S = "eb:lib:primitives", c = "eb:lib:seeded";
|
|
3
|
-
function l(t) {
|
|
4
|
-
try {
|
|
5
|
-
const s = localStorage.getItem(t), i = s ? JSON.parse(s) : [];
|
|
6
|
-
return Array.isArray(i) ? i : [];
|
|
7
|
-
} catch {
|
|
8
|
-
return [];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
function n(t, s) {
|
|
12
|
-
if (!s?.length) return;
|
|
13
|
-
const i = l(t), r = new Set(i.map((e) => e.id)), o = s.filter((e) => !r.has(e.id));
|
|
14
|
-
o.length && localStorage.setItem(t, JSON.stringify([...i, ...o]));
|
|
15
|
-
}
|
|
16
|
-
async function E() {
|
|
17
|
-
const { default: t } = await import("./localPresets-zfQXhBg0.js"), s = t.version ?? "1";
|
|
18
|
-
if (localStorage.getItem(c) !== s) {
|
|
19
|
-
if (n(g, t.templates), n(m, t.sections), n(b, t.layouts), n(S, t.primitives), t.themes?.length) {
|
|
20
|
-
const i = l(a), r = new Set(i.map((e) => e.id)), o = t.themes.filter((e) => !r.has(e.id)).map((e) => ({
|
|
21
|
-
id: e.id,
|
|
22
|
-
name: e.name,
|
|
23
|
-
description: e.description,
|
|
24
|
-
createdAt: e.createdAt,
|
|
25
|
-
updatedAt: e.updatedAt,
|
|
26
|
-
globals: e.globals,
|
|
27
|
-
blocks: e.blocks
|
|
28
|
-
}));
|
|
29
|
-
o.length && localStorage.setItem(a, JSON.stringify([...i, ...o]));
|
|
30
|
-
}
|
|
31
|
-
localStorage.setItem(c, s), d();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
E as seedLocalLibrary
|
|
36
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-BORDx2NL.cjs"),g="eb:lib:templates",a="eb:lib:themes",b="eb:lib:sections",m="eb:lib:layouts",S="eb:lib:primitives",c="eb:lib:seeded";function l(t){try{const s=localStorage.getItem(t),i=s?JSON.parse(s):[];return Array.isArray(i)?i:[]}catch{return[]}}function o(t,s){if(!s?.length)return;const i=l(t),r=new Set(i.map(e=>e.id)),n=s.filter(e=>!r.has(e.id));n.length&&localStorage.setItem(t,JSON.stringify([...i,...n]))}async function u(){const{default:t}=await Promise.resolve().then(()=>require("./localPresets-Bqt2Z5-T.cjs")),s=t.version??"1";if(localStorage.getItem(c)!==s){if(o(g,t.templates),o(b,t.sections),o(m,t.layouts),o(S,t.primitives),t.themes?.length){const i=l(a),r=new Set(i.map(e=>e.id)),n=t.themes.filter(e=>!r.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}));n.length&&localStorage.setItem(a,JSON.stringify([...i,...n]))}localStorage.setItem(c,s),d.bumpLocalSeedVersion()}}exports.seedLocalLibrary=u;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { b as d } from "./index-BGFPP7q7.js";
|
|
2
|
-
const g = "eb:lib:templates", a = "eb:lib:themes", m = "eb:lib:sections", b = "eb:lib:layouts", S = "eb:lib:primitives", c = "eb:lib:seeded";
|
|
3
|
-
function l(t) {
|
|
4
|
-
try {
|
|
5
|
-
const s = localStorage.getItem(t), i = s ? JSON.parse(s) : [];
|
|
6
|
-
return Array.isArray(i) ? i : [];
|
|
7
|
-
} catch {
|
|
8
|
-
return [];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
function n(t, s) {
|
|
12
|
-
if (!s?.length) return;
|
|
13
|
-
const i = l(t), r = new Set(i.map((e) => e.id)), o = s.filter((e) => !r.has(e.id));
|
|
14
|
-
o.length && localStorage.setItem(t, JSON.stringify([...i, ...o]));
|
|
15
|
-
}
|
|
16
|
-
async function E() {
|
|
17
|
-
const { default: t } = await import("./localPresets-zfQXhBg0.js"), s = t.version ?? "1";
|
|
18
|
-
if (localStorage.getItem(c) !== s) {
|
|
19
|
-
if (n(g, t.templates), n(m, t.sections), n(b, t.layouts), n(S, t.primitives), t.themes?.length) {
|
|
20
|
-
const i = l(a), r = new Set(i.map((e) => e.id)), o = t.themes.filter((e) => !r.has(e.id)).map((e) => ({
|
|
21
|
-
id: e.id,
|
|
22
|
-
name: e.name,
|
|
23
|
-
description: e.description,
|
|
24
|
-
createdAt: e.createdAt,
|
|
25
|
-
updatedAt: e.updatedAt,
|
|
26
|
-
globals: e.globals,
|
|
27
|
-
blocks: e.blocks
|
|
28
|
-
}));
|
|
29
|
-
o.length && localStorage.setItem(a, JSON.stringify([...i, ...o]));
|
|
30
|
-
}
|
|
31
|
-
localStorage.setItem(c, s), d();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
E as seedLocalLibrary
|
|
36
|
-
};
|