@emailmaker/emailmaker 1.0.106 → 1.0.107-dev.2
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/README.md +1 -1
- package/cli/lib/config.js +1 -1
- package/emailmaker-esm.js +7 -7
- package/emailmaker.d.ts +44 -213
- package/emailmaker.js +2 -2
- package/iframe/js/amp.CBamu9Jy.js +1 -0
- package/iframe/js/chunk.oX6nCJbK.js +1 -1
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.BSaCN7eK.js +1 -1
- package/iframe/js/sanitize-html.Dy7Uwo8P.js +1 -1
- package/package.json +3 -4
- package/react/index.js +4 -4
- package/runtime/@ant-design/cssinjs/index.js +1 -1
- package/runtime/@ant-design/pro-layout/index.js +1 -1
- package/runtime/antd/index.js +1 -1
- package/runtime/chunks/es-86-u14x5.js +407 -0
- package/runtime/chunks/{es-CO7WpZVp.js → es-BRjT21eG.js} +1 -1
- package/runtime/chunks/es-C3X1_iRJ.js +4 -0
- package/static/amd/{3410ae4c.js → 106c1c44.js} +3 -3
- package/static/amd/{f1412d1b.js → 19494006.js} +1 -1
- package/static/amd/{e8b0ce702.js → 28f4634f2.js} +1 -1
- package/static/amd/{34ee9141.js → 2f60af9f.js} +1 -1
- package/static/amd/{bdff951a.js → 368d792c.js} +1 -1
- package/static/amd/{1dca3566.js → 3b4d5d23.js} +2 -2
- package/static/amd/401182d4.js +1 -0
- package/static/amd/{3f397bbd.js → 502761e0.js} +3 -3
- package/static/amd/{2f1e7ffb.js → 50c7eb6c.js} +1 -1
- package/static/amd/{5c18d97d2.js → 534fa9082.js} +1 -1
- package/static/amd/626c39be.js +1 -0
- package/static/amd/{62985723.js → 75616837.js} +2 -2
- package/static/amd/{ad924d2d2.js → 7683aed32.js} +1 -1
- package/static/amd/76cadc91.js +1 -0
- package/static/amd/{2e738d66.js → 846684a0.js} +1 -1
- package/static/amd/{cf56bf8e.js → 8678c217.js} +1 -1
- package/static/amd/{d3e49443.js → 8af477e8.js} +35 -35
- package/static/amd/{647aeb89.js → 8c80ca60.js} +1 -1
- package/static/amd/{59f1eb21.js → 91174af6.js} +1 -1
- package/static/amd/{db53b13b2.js → a0db9bc52.js} +1 -1
- package/static/amd/{3c045c05.js → a208672b.js} +1 -1
- package/static/amd/{51f74c23.js → b3ea6c2b.js} +1 -1
- package/static/amd/{3a544ab7.js → be8bfd98.js} +1 -1
- package/static/amd/{4f7b7e7b.js → d6ebf258.js} +1 -1
- package/static/amd/da5e5be92.js +47 -0
- package/static/amd/{45fc63362.js → dd3a2c7f2.js} +5 -5
- package/static/amd/{da3c98572.js → ddbaadd22.js} +1 -1
- package/static/amd/f0773d02.js +1 -0
- package/static/amd/{ea7fcdd22.js → f0a443f72.js} +1 -1
- package/static/amd/{edf12452.js → fd51d75b.js} +1 -1
- package/static/amd/{127166bb.js → fd995713.js} +25 -25
- package/static/core/{7478008a2.js → 112814fb2.js} +5 -5
- package/static/core/{3c58018a.js → 12623967.js} +23 -0
- package/static/core/12d586d6.js +2 -0
- package/static/core/{3aa1accd.js → 175a42e3.js} +2 -2
- package/static/core/{3929de6a.js → 2b2c49f5.js} +1 -1
- package/static/core/{b43d62502.js → 3106db502.js} +1 -1
- package/static/core/{7ede5bb32.js → 36a93fbc2.js} +1 -1
- package/static/core/{a42cb1892.js → 3a3fd9482.js} +7160 -7206
- package/static/core/{dd1b48732.js → 3ef8b3172.js} +44 -62
- package/static/core/404e7156.js +25 -0
- package/static/core/{950736cb.js → 42607e0b.js} +2 -2
- package/static/core/{37f5c2e2.js → 4d4236d42.js} +6 -8
- package/static/core/{f402cdb02.js → 4ef9e9292.js} +2 -2
- package/static/core/{f8b68b562.js → 4f5874c32.js} +9 -9
- package/static/core/{356406472.js → 5daae05b2.js} +4 -4
- package/static/core/648686e8.js +3 -0
- package/static/core/6a07fdd9.js +17 -0
- package/static/core/{dd819c97.js → 71a549aa.js} +2 -2
- package/static/core/{dff461712.js → 75c365b22.js} +2 -2
- package/static/core/869ed3c1.js +88 -0
- package/static/core/{da0c7c5f2.js → 87e43e8f2.js} +165 -164
- package/static/core/{c714cdff2.js → 88a09d732.js} +57 -66
- package/static/core/{85bd6ac0.js → 9608479b.js} +33 -37
- package/static/core/970aa3c0.js +3 -0
- package/static/core/{2898e7aa2.js → 9f5c7c092.js} +2 -2
- package/static/core/{a8844025.js → b09f9769.js} +2 -2
- package/static/core/b19a3fa4.js +54 -0
- package/static/core/{239366ec2.js → bb1ecd2f2.js} +1 -1
- package/static/core/{84829538.js → c6b9e0932.js} +14 -21
- package/static/core/cc53df61.js +3 -0
- package/static/core/{2dc46694.js → d32193e5.js} +2 -2
- package/static/core/{c615024a2.js → d81bea0e2.js} +13 -12
- package/static/core/e3ca5f72.js +3 -0
- package/static/core/{f4b3eea52.js → e735ab4e2.js} +4 -4
- package/static/core/{e61f10d22.js → efaf9d352.js} +2 -2
- package/static/core/{9238a7c32.js → f8a0a5292.js} +2 -2
- package/static/core/{408b13ec2.js → fddc1ad02.js} +10 -10
- package/iframe/js/amp.Hj8A4hcJ.js +0 -1
- package/runtime/chunks/es-CEL9YonN.js +0 -4
- package/runtime/chunks/es-Dc0YYbhY.js +0 -407
- package/static/amd/7634e85e2.js +0 -47
- package/static/amd/90fc6abd.js +0 -1
- package/static/amd/b6593123.js +0 -1
- package/static/amd/e459f307.js +0 -1
- package/static/amd/f2ec6999.js +0 -1
- package/static/core/3cd7aecb.js +0 -3
- package/static/core/56649294.js +0 -3
- package/static/core/5cdc0d83.js +0 -3
- package/static/core/9eb43b50.js +0 -2
- package/static/core/de2a198b.js +0 -3
- package/static/core/f33680b1.js +0 -28
- /package/iframe/{iframe-eblock.986ee288.html → iframe-eblock.abd61d56.html} +0 -0
- /package/iframe/{iframe.986ee288.html → iframe.abd61d56.html} +0 -0
- /package/static/core/{1b08a9cc.js → 0a8c3cd4.js} +0 -0
- /package/static/core/{dc11e0c2.js → 13a32c93.js} +0 -0
- /package/static/core/{aa6d1b3c.js → 15c3e303.js} +0 -0
- /package/static/core/{432a48e72.js → 1c83f7f62.js} +0 -0
- /package/static/core/{73a54dd5.js → 2423f182.js} +0 -0
- /package/static/core/{16d77cfa.js → 26bcc803.js} +0 -0
- /package/static/core/{5e245313.js → 3301f9b2.js} +0 -0
- /package/static/core/{8e816ff3.js → 3ce618bb.js} +0 -0
- /package/static/core/{75260591.js → 68bb7a74.js} +0 -0
- /package/static/core/{71a2973c.js → 88f5cc0f.js} +0 -0
- /package/static/core/{8d0a7b7c.js → 9ac04a2e.js} +0 -0
- /package/static/core/{4dedb700.js → 9faf360e.js} +0 -0
- /package/static/core/{cb527115.js → a1f54cad.js} +0 -0
- /package/static/core/{ac7a72f4.js → a3aeb012.js} +0 -0
- /package/static/core/{a8632524.js → aa66c7a7.js} +0 -0
- /package/static/core/{ef18be3f.js → ba484ecf.js} +0 -0
- /package/static/core/{f2efcf13.js → baa68b06.js} +0 -0
- /package/static/core/{a453cd4e.js → c0f2f2c0.js} +0 -0
- /package/static/core/{bba72d91.js → f03fa3a22.js} +0 -0
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.setAttribute(`data-emailmaker`,`true`),e.appendChild(document.createTextNode(`.blocks-app .user-list{z-index:10;background:#fff0;padding:1px;display:flex;position:absolute;bottom:10px;left:10px}.blocks-app .user{text-align:center;align-items:center;width:0;height:35px;margin-left:20px;transition:all .4s cubic-bezier(.645,.045,.355,1);display:flex;position:relative}.blocks-app .user:first-child{margin-left:0}.blocks-app .user-list.open .user:not(:first-child){margin-left:38px}.blocks-app .user:before{content:"";background:var(--user-color,white);border:1.5px solid var(--border-color,white);border-radius:50%;width:34px;height:34px;transition:all .2s cubic-bezier(.645,.045,.355,1);display:block;position:absolute}.blocks-app .user div{width:34px;color:var(--text-color,white);cursor:default;border-radius:50%;font-weight:600;line-height:40px;text-decoration:none;position:absolute}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { $ as e } from "./
|
|
2
|
-
import { g as t, h as n, m as r, o as i, p as a } from "./
|
|
3
|
-
import { s as o } from "./
|
|
4
|
-
import { Pt as s, _t as c } from "./
|
|
5
|
-
import { _t as l, t as u } from "./
|
|
6
|
-
import { createContext as d, useContext as
|
|
7
|
-
import { Fragment as
|
|
8
|
-
import
|
|
9
|
-
import { Space as g, Spin as _, Tooltip as re } from "@emailmaker/runtime/antd";
|
|
10
|
-
import { LoadingOutlined as v } from "@emailmaker/runtime/@ant-design/icons";
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.setAttribute(`data-emailmaker`,`true`),e.appendChild(document.createTextNode(`.blocks-app .user-list{z-index:10;background:#fff0;padding:1px;display:flex;position:absolute;bottom:10px;left:10px}.blocks-app .user{text-align:center;align-items:center;width:0;height:35px;margin-left:20px;transition:all .4s cubic-bezier(.645,.045,.355,1);display:flex;position:relative}.blocks-app .user:first-child{margin-left:0}.blocks-app .user-list.open .user:not(:first-child){margin-left:38px}.blocks-app .user:before{content:"";background:var(--user-color,white);border:1.5px solid var(--border-color,white);border-radius:50%;width:34px;height:34px;transition:all .2s cubic-bezier(.645,.045,.355,1);display:block;position:absolute}.blocks-app .user div{width:34px;color:var(--text-color,white);cursor:default;border-radius:50%;font-weight:600;line-height:40px;text-decoration:none;position:absolute}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { $ as e } from "./12623967.js";
|
|
2
|
+
import { g as t, h as n, m as r, o as i, p as a } from "./9608479b.js";
|
|
3
|
+
import { s as o } from "./4d4236d42.js";
|
|
4
|
+
import { Pt as s, _t as c } from "./9f5c7c092.js";
|
|
5
|
+
import { _t as l, t as u } from "./5daae05b2.js";
|
|
6
|
+
import { createContext as d, useContext as f, useEffect as p, useMemo as m, useState as h } from "@emailmaker/runtime/react";
|
|
7
|
+
import { Fragment as g, jsx as _ } from "@emailmaker/runtime/react/jsx-runtime";
|
|
8
|
+
import { Tooltip as ee } from "@emailmaker/runtime/antd";
|
|
11
9
|
//#region src/helpers/monaco/prepareWorkerUrl.ts
|
|
12
|
-
var
|
|
13
|
-
function
|
|
10
|
+
var v = "emailmaker".replace(/-/g, "") + "emailmakerMonacoEnvironment", y = "__monaco_worker_url_initialized__";
|
|
11
|
+
function b() {
|
|
14
12
|
if (window[y]) return;
|
|
15
13
|
let e = "monacoeditorwork/", t = ".bundle.js", n = {
|
|
16
14
|
editorWorkerService: `${e}editor.worker${t}`,
|
|
@@ -42,15 +40,15 @@ function ae() {
|
|
|
42
40
|
if (c.protocol !== window.location.protocol || c.hostname !== window.location.hostname || c.hostname === "localhost" && (c.port || "80") !== (window.location.port || "80")) return i(s, t);
|
|
43
41
|
} else if (l === "file:") return i(s, t);
|
|
44
42
|
return s;
|
|
45
|
-
}, o = window[
|
|
43
|
+
}, o = window[v] || window.emailmakerMonacoEnvironment;
|
|
46
44
|
o || (o = {}, window.emailmakerMonacoEnvironment = o), o.getWorkerUrl = a, window[y] = !0;
|
|
47
45
|
}
|
|
48
46
|
//#endregion
|
|
49
47
|
//#region src/helpers/monaco/setupMonacoEnvironment.ts
|
|
50
|
-
|
|
48
|
+
b();
|
|
51
49
|
//#endregion
|
|
52
50
|
//#region src/helpers/monaco/monacoInstance.ts
|
|
53
|
-
var
|
|
51
|
+
var x = i, S = s({
|
|
54
52
|
invalidateBlockId: null,
|
|
55
53
|
isCodeMode: !1,
|
|
56
54
|
codeModeDirection: "right",
|
|
@@ -74,9 +72,9 @@ var b = i, x = s({
|
|
|
74
72
|
isAmp: !1
|
|
75
73
|
},
|
|
76
74
|
monacoDidMount: !1
|
|
77
|
-
}),
|
|
78
|
-
name:
|
|
79
|
-
initialState:
|
|
75
|
+
}), C = "blockSlice", w = o({
|
|
76
|
+
name: C,
|
|
77
|
+
initialState: S,
|
|
80
78
|
reducers: {
|
|
81
79
|
switchCodeMode: (e) => {
|
|
82
80
|
e.isCodeMode = !e.isCodeMode;
|
|
@@ -103,7 +101,7 @@ var b = i, x = s({
|
|
|
103
101
|
setBlockHtml: (e, t) => {
|
|
104
102
|
e.block.html = t.payload;
|
|
105
103
|
},
|
|
106
|
-
resetBlockSlice: () =>
|
|
104
|
+
resetBlockSlice: () => S,
|
|
107
105
|
setBlockIsAmp: (e, t) => {
|
|
108
106
|
e.block.isAmp = t.payload;
|
|
109
107
|
}
|
|
@@ -117,7 +115,7 @@ var b = i, x = s({
|
|
|
117
115
|
}
|
|
118
116
|
}), e.addMatcher((e) => e.type === "blocksApi/invalidateTags", (e, t) => {
|
|
119
117
|
if (t.payload[0].id === +e.invalidateBlockId) return {
|
|
120
|
-
...
|
|
118
|
+
...S,
|
|
121
119
|
isCodeMode: e?.isCodeMode,
|
|
122
120
|
codeModeDirection: e.codeModeDirection
|
|
123
121
|
};
|
|
@@ -131,29 +129,29 @@ var b = i, x = s({
|
|
|
131
129
|
e?.block.id?.toString() === t.payload.id?.toString() && (e.block.html = t.payload.html);
|
|
132
130
|
}), e.addMatcher(c.endpoints.getBlock.matchFulfilled, (e, { payload: t }) => {
|
|
133
131
|
e.block = {
|
|
134
|
-
...
|
|
132
|
+
...S.block,
|
|
135
133
|
...t
|
|
136
134
|
};
|
|
137
135
|
});
|
|
138
136
|
}
|
|
139
|
-
}), { switchCodeMode:
|
|
137
|
+
}), { switchCodeMode: te, setEditorThemeColor: T, setBlockSettings: E, setElementSettings: D, setBlockSettingsDisable: O, setSearchFilters: k, setBlockHtml: ne, resetBlockSlice: A, setBlockIsAmp: re } = w.actions, j = (e) => e[C].block, M = (e) => e[C].isCodeMode, N = (e) => e[C].settings, P = (e) => e[C].searchFilters, F = (e) => e[C].elementSettings, I = (e) => e[C].editorThemeColor, L = (e) => e[C].isSettingsDisabled, R = s({
|
|
140
138
|
isCollapsed: !0,
|
|
141
139
|
isMonacoFocusing: !1
|
|
142
|
-
}),
|
|
143
|
-
name:
|
|
144
|
-
initialState:
|
|
140
|
+
}), z = "defaultModePanesSlice", B = o({
|
|
141
|
+
name: z,
|
|
142
|
+
initialState: R,
|
|
145
143
|
reducers: {
|
|
146
144
|
setMonacoFocusing: (e, t) => {
|
|
147
145
|
e.isMonacoFocusing = t.payload;
|
|
148
146
|
},
|
|
149
|
-
resetPanes: () =>
|
|
147
|
+
resetPanes: () => R
|
|
150
148
|
}
|
|
151
|
-
}), { resetPanes:
|
|
149
|
+
}), { resetPanes: V, setMonacoFocusing: H } = B.actions, ie = (e) => e[z].isMonacoFocusing;
|
|
152
150
|
//#endregion
|
|
153
151
|
//#region src/hooks/useListenPostMessage.ts
|
|
154
152
|
function U(e, t) {
|
|
155
153
|
let n = l();
|
|
156
|
-
|
|
154
|
+
p(() => {
|
|
157
155
|
let r = n.addListener(e, t);
|
|
158
156
|
return () => {
|
|
159
157
|
r.dispose();
|
|
@@ -175,7 +173,7 @@ function G() {
|
|
|
175
173
|
//#endregion
|
|
176
174
|
//#region src/helpers/monaco/createModel.js
|
|
177
175
|
function K(e, t, n) {
|
|
178
|
-
return
|
|
176
|
+
return x.editor.createModel(e || "", t, n);
|
|
179
177
|
}
|
|
180
178
|
//#endregion
|
|
181
179
|
//#region src/helpers/monaco/monacoHelpers.ts
|
|
@@ -183,11 +181,11 @@ function q() {
|
|
|
183
181
|
G()._updateThemeOrColorMap();
|
|
184
182
|
}
|
|
185
183
|
function J(e) {
|
|
186
|
-
let t = W(), [n, r] =
|
|
184
|
+
let t = W(), [n, r] = h({
|
|
187
185
|
canUndo: t.canUndo(e.uri),
|
|
188
186
|
canRedo: t.canRedo(e.uri)
|
|
189
187
|
});
|
|
190
|
-
return
|
|
188
|
+
return p(() => {
|
|
191
189
|
let n = e.onDidChangeContent(() => {
|
|
192
190
|
setTimeout(() => r({
|
|
193
191
|
canUndo: t.canUndo(e.uri),
|
|
@@ -217,30 +215,30 @@ function X(e) {
|
|
|
217
215
|
restoreSnapshot: (e) => t.restoreSnapshot(e)
|
|
218
216
|
};
|
|
219
217
|
}
|
|
220
|
-
function
|
|
221
|
-
return
|
|
218
|
+
function Z(e) {
|
|
219
|
+
return m(() => X(e), [e]);
|
|
222
220
|
}
|
|
223
|
-
function
|
|
221
|
+
function ae(e = "") {
|
|
224
222
|
let t = K(e, "html");
|
|
225
223
|
return t.setEOL(0), t;
|
|
226
224
|
}
|
|
227
225
|
//#endregion
|
|
228
226
|
//#region src/helpers/monaco/index.ts
|
|
229
|
-
var
|
|
230
|
-
function
|
|
231
|
-
return
|
|
227
|
+
var Q = d(null);
|
|
228
|
+
function oe() {
|
|
229
|
+
return f(Q);
|
|
232
230
|
}
|
|
233
231
|
//#endregion
|
|
234
232
|
//#region src/modules/components/CollaborateEditor/constants.ts
|
|
235
|
-
var
|
|
236
|
-
let [a, o] =
|
|
233
|
+
var $ = "wss://yjs.emailmaker.ru", se = 5e3, ce = 2e4, le = "3769995", ue = "Not available for collaborative editing", de = "Problem with internet connection", fe = ({ users: t, isEditor: n, isPlugin: r, token: i }) => {
|
|
234
|
+
let [a, o] = h(!1), s = window.localStorage.getItem(e.em_color_scheme), c = (e) => {
|
|
237
235
|
let { first_name: t, last_name: n, email: r } = e.user.name;
|
|
238
236
|
return t ? `${t.split("")[0]}${n ? `${n.split("")[0]}` : ""}` : r?.split("")[0].toUpperCase() || " ";
|
|
239
237
|
}, l = (e) => {
|
|
240
238
|
let { first_name: t, last_name: n, email: r } = e.user.name;
|
|
241
239
|
return t && n ? `${t} ${n}` : t || r;
|
|
242
|
-
}, u = (e) => /* @__PURE__ */
|
|
243
|
-
return /* @__PURE__ */
|
|
240
|
+
}, u = (e) => /* @__PURE__ */ _("span", { children: l(e) });
|
|
241
|
+
return /* @__PURE__ */ _(g, { children: t.length > 0 && n && /* @__PURE__ */ _("div", {
|
|
244
242
|
className: `user-list ${a ? "open" : ""}`,
|
|
245
243
|
style: r ? {
|
|
246
244
|
left: "60px",
|
|
@@ -248,38 +246,22 @@ var fe = "wss://yjs.emailmaker.ru", pe = 5e3, me = 2e4, Q = "3769995", he = "Not
|
|
|
248
246
|
} : {},
|
|
249
247
|
onMouseOver: () => o(!0),
|
|
250
248
|
onMouseOut: () => o(!1),
|
|
251
|
-
children: t.map((e) => /* @__PURE__ */
|
|
249
|
+
children: t.map((e) => /* @__PURE__ */ _("div", {
|
|
252
250
|
className: "user",
|
|
253
251
|
style: {
|
|
254
252
|
"--user-color": e.user.color,
|
|
255
253
|
"--border-color": i?.colorBgContainer,
|
|
256
254
|
"--text-color": s === "dark" ? i?.colorIconHover : i?.colorWhite
|
|
257
255
|
},
|
|
258
|
-
children: /* @__PURE__ */
|
|
256
|
+
children: /* @__PURE__ */ _(ee, {
|
|
259
257
|
title: u(e),
|
|
260
258
|
placement: "topLeft",
|
|
261
259
|
trigger: "hover",
|
|
262
260
|
color: i?.colorBgSpotlight,
|
|
263
|
-
children: /* @__PURE__ */
|
|
261
|
+
children: /* @__PURE__ */ _("div", { children: c(e) })
|
|
264
262
|
})
|
|
265
263
|
}, e.user.color))
|
|
266
264
|
}) });
|
|
267
|
-
}
|
|
268
|
-
size: "large",
|
|
269
|
-
style: {
|
|
270
|
-
width: e ? "100%" : "100vw",
|
|
271
|
-
height: "80vh",
|
|
272
|
-
display: "flex",
|
|
273
|
-
justifyContent: "center",
|
|
274
|
-
alignItems: "center",
|
|
275
|
-
...t
|
|
276
|
-
},
|
|
277
|
-
wrap: n,
|
|
278
|
-
children: /* @__PURE__ */ m(_, { indicator: /* @__PURE__ */ m(v, {
|
|
279
|
-
style: { fontSize: 48 },
|
|
280
|
-
spin: !0
|
|
281
|
-
}) })
|
|
282
|
-
});
|
|
283
|
-
$.propTypes = { style: h.any };
|
|
265
|
+
};
|
|
284
266
|
//#endregion
|
|
285
|
-
export {
|
|
267
|
+
export { E as A, j as C, F as D, I as E, x as F, T as M, D as N, M as O, k as P, A as S, N as T, B as _, le as a, H as b, Q as c, q as d, X as f, U as g, W as h, de as i, O as j, L as k, oe as l, J as m, se as n, ce as o, Z as p, ue as r, $ as s, fe as t, ae as u, V as v, P as w, w as x, ie as y };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "@emailmaker/runtime/react";
|
|
2
|
+
import { jsx as e } from "@emailmaker/runtime/react/jsx-runtime";
|
|
3
|
+
import t from "@emailmaker/runtime/prop-types";
|
|
4
|
+
import { Space as n, Spin as r } from "@emailmaker/runtime/antd";
|
|
5
|
+
import { LoadingOutlined as i } from "@emailmaker/runtime/@ant-design/icons";
|
|
6
|
+
//#region src/modules/components/PageLoader/index.jsx
|
|
7
|
+
var a = ({ small: t = !1, style: a = {}, wrap: o = !1 }) => /* @__PURE__ */ e(n, {
|
|
8
|
+
size: "large",
|
|
9
|
+
style: {
|
|
10
|
+
width: t ? "100%" : "100vw",
|
|
11
|
+
height: "80vh",
|
|
12
|
+
display: "flex",
|
|
13
|
+
justifyContent: "center",
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
...a
|
|
16
|
+
},
|
|
17
|
+
wrap: o,
|
|
18
|
+
children: /* @__PURE__ */ e(r, { indicator: /* @__PURE__ */ e(i, {
|
|
19
|
+
style: { fontSize: 48 },
|
|
20
|
+
spin: !0
|
|
21
|
+
}) })
|
|
22
|
+
});
|
|
23
|
+
a.propTypes = { style: t.any };
|
|
24
|
+
//#endregion
|
|
25
|
+
export { a as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as e, S as t, _ as n, a as r, b as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b, x, y as S } from "./
|
|
2
|
-
import "./
|
|
1
|
+
import { C as e, S as t, _ as n, a as r, b as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b, x, y as S } from "./2b2c49f5.js";
|
|
2
|
+
import "./9608479b.js";
|
|
3
3
|
export { v as Adapter, p as CodeActionAdaptor, g as DefinitionAdapter, u as DiagnosticsAdapter, r as FormatAdapter, m as FormatHelper, _ as FormatOnTypeAdapter, a as InlayHintsAdapter, d as Kind, y as LibFiles, o as OccurrencesAdapter, s as OutlineAdapter, h as QuickInfoAdapter, f as ReferenceAdapter, l as RenameAdapter, c as SignatureHelpAdapter, n as SuggestAdapter, b as WorkerManager, S as flattenDiagnosticMessageText, i as getJavaScriptWorker, x as getTypeScriptWorker, t as setupJavaScript, e as setupTypeScript };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./305249fe.js";
|
|
2
|
-
import { C as t, S as n } from "./
|
|
3
|
-
import { u as r } from "./
|
|
2
|
+
import { C as t, S as n } from "./9608479b.js";
|
|
3
|
+
import { u as r } from "./c6b9e0932.js";
|
|
4
4
|
import i, { useCallback as a, useContext as o, useDebugValue as s, useEffect as c, useLayoutEffect as l, useMemo as u, useReducer as d, useRef as f, useState as p } from "@emailmaker/runtime/react";
|
|
5
5
|
import { unstable_batchedUpdates as m } from "@emailmaker/runtime/react-dom";
|
|
6
6
|
import "@emailmaker/runtime/prop-types";
|
|
@@ -802,9 +802,7 @@ function Le() {
|
|
|
802
802
|
}
|
|
803
803
|
});
|
|
804
804
|
}
|
|
805
|
-
var Re, ze, Be = typeof Symbol < "u" && typeof Symbol("x") == "symbol", Ve = typeof Map < "u", He = typeof Set < "u", Ue = typeof Proxy < "u" && Proxy.revocable !== void 0 && typeof Reflect < "u", We = Be ? Symbol.for("immer-nothing") : ((Re = {})["immer-nothing"] = !0, Re), Ge = Be ? Symbol.for("immer-draftable") : "__$immer_draftable", V = Be ? Symbol.for("immer-state") : "__$immer_state"
|
|
806
|
-
typeof Symbol < "u" && Symbol.iterator;
|
|
807
|
-
var Ke = "" + Object.prototype.constructor, qe = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getOwnPropertySymbols === void 0 ? Object.getOwnPropertyNames : function(e) {
|
|
805
|
+
var Re, ze, Be = typeof Symbol < "u" && typeof Symbol("x") == "symbol", Ve = typeof Map < "u", He = typeof Set < "u", Ue = typeof Proxy < "u" && Proxy.revocable !== void 0 && typeof Reflect < "u", We = Be ? Symbol.for("immer-nothing") : ((Re = {})["immer-nothing"] = !0, Re), Ge = Be ? Symbol.for("immer-draftable") : "__$immer_draftable", V = Be ? Symbol.for("immer-state") : "__$immer_state", Ke = "" + Object.prototype.constructor, qe = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getOwnPropertySymbols === void 0 ? Object.getOwnPropertyNames : function(e) {
|
|
808
806
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
809
807
|
}, Je = Object.getOwnPropertyDescriptors || function(e) {
|
|
810
808
|
var t = {};
|
|
@@ -3677,7 +3675,7 @@ var ui = /* @__PURE__ */ Symbol(), di = /* @__PURE__ */ wr(Br(), function(e) {
|
|
|
3677
3675
|
} };
|
|
3678
3676
|
}
|
|
3679
3677
|
};
|
|
3680
|
-
}()), fi = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, $ = globalThis, pi = "10.
|
|
3678
|
+
}()), fi = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, $ = globalThis, pi = "10.45.0";
|
|
3681
3679
|
//#endregion
|
|
3682
3680
|
//#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/carrier.js
|
|
3683
3681
|
function mi() {
|
|
@@ -3685,10 +3683,10 @@ function mi() {
|
|
|
3685
3683
|
}
|
|
3686
3684
|
function hi(e) {
|
|
3687
3685
|
let t = e.__SENTRY__ = e.__SENTRY__ || {};
|
|
3688
|
-
return t.version = t.version || "10.
|
|
3686
|
+
return t.version = t.version || "10.45.0", t[pi] = t["10.45.0"] || {};
|
|
3689
3687
|
}
|
|
3690
3688
|
function gi(e, t, n = $) {
|
|
3691
|
-
let r = n.__SENTRY__ = n.__SENTRY__ || {}, i = r[pi] = r["10.
|
|
3689
|
+
let r = n.__SENTRY__ = n.__SENTRY__ || {}, i = r[pi] = r["10.45.0"] || {};
|
|
3692
3690
|
return i[e] || (i[e] = t());
|
|
3693
3691
|
}
|
|
3694
3692
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as e } from "./
|
|
2
|
-
import { Pt as t, T as n, c as r, t as i } from "./
|
|
1
|
+
import { s as e } from "./4d4236d42.js";
|
|
2
|
+
import { Pt as t, T as n, c as r, t as i } from "./9f5c7c092.js";
|
|
3
3
|
//#region src/slices/emailSlice.ts
|
|
4
4
|
var a = t({
|
|
5
5
|
invalidateEmailId: null,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.setAttribute(`data-emailmaker`,`true`),e.appendChild(document.createTextNode(`.blocks-app .ant-modal.file-manager{z-index:12;justify-content:center;align-items:center;width:100vw;max-width:none;height:100vh;padding:10px;display:flex;top:0}.blocks-app .ant-modal.file-manager>div,.blocks-app .ant-modal.file-manager .ant-modal-body,.blocks-app .ant-modal.file-manager .ant-spin-nested-loading,.blocks-app .ant-modal.file-manager .ant-spin-container{height:100%}.blocks-app .ant-modal.file-manager>div>.ant-modal-content,.blocks-app .ant-modal.file-manager>.ant-modal-content{border-radius:calc(var(--borderRadiusXL) * 1px);width:100%;max-width:1560px;height:100%;max-height:1020px;padding:0}.blocks-app .ant-modal.file-manager>div>.ant-modal-content .file-manager-layout,.blocks-app .ant-modal.file-manager>.ant-modal-content .file-manager-layout{border-top-right-radius:calc(var(--borderRadiusXL) * 1px);border-top-left-radius:calc(var(--borderRadiusXL) * 1px)}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { d as e, l as t, rt as n } from "./
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.setAttribute(`data-emailmaker`,`true`),e.appendChild(document.createTextNode(`.blocks-app .ant-modal.file-manager{z-index:12;justify-content:center;align-items:center;width:100vw;max-width:none;height:100vh;padding:10px;display:flex;top:0}.blocks-app .ant-modal.file-manager>div,.blocks-app .ant-modal.file-manager .ant-modal-body,.blocks-app .ant-modal.file-manager .ant-spin-nested-loading,.blocks-app .ant-modal.file-manager .ant-spin-container{height:100%}.blocks-app .ant-modal.file-manager>div>.ant-modal-content,.blocks-app .ant-modal.file-manager>.ant-modal-content{border-radius:calc(var(--borderRadiusXL) * 1px);width:100%;max-width:1560px;height:100%;max-height:1020px;padding:0}.blocks-app .ant-modal.file-manager>div>.ant-modal-content .file-manager-layout,.blocks-app .ant-modal.file-manager>.ant-modal-content .file-manager-layout{border-top-right-radius:calc(var(--borderRadiusXL) * 1px);border-top-left-radius:calc(var(--borderRadiusXL) * 1px)}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { d as e, l as t, rt as n } from "./12623967.js";
|
|
2
2
|
import { n as r } from "./89c71a33.js";
|
|
3
|
-
import { b as i, x as a } from "./
|
|
4
|
-
import "./
|
|
5
|
-
import { d as o, l as s, u as c } from "./
|
|
6
|
-
import { o as l, s as u } from "./
|
|
7
|
-
import { A as d, qt as f } from "./
|
|
8
|
-
import { C as p, O as m, f as h, h as g, l as _, o as v, r as y, s as ee, t as te, u as ne, v as re } from "./
|
|
9
|
-
import { C as ie, _ as b, at as ae, b as oe, h as x, i as se, v as ce, x as le } from "./
|
|
10
|
-
import { a as ue, i as de, n as fe, o as pe, t as me } from "./
|
|
3
|
+
import { b as i, x as a } from "./9608479b.js";
|
|
4
|
+
import "./b09f9769.js";
|
|
5
|
+
import { d as o, l as s, u as c } from "./4d4236d42.js";
|
|
6
|
+
import { o as l, s as u } from "./c6b9e0932.js";
|
|
7
|
+
import { A as d, qt as f } from "./9f5c7c092.js";
|
|
8
|
+
import { C as p, O as m, f as h, h as g, l as _, o as v, r as y, s as ee, t as te, u as ne, v as re } from "./112814fb2.js";
|
|
9
|
+
import { C as ie, _ as b, at as ae, b as oe, h as x, i as se, v as ce, x as le } from "./5daae05b2.js";
|
|
10
|
+
import { a as ue, i as de, n as fe, o as pe, t as me } from "./f8a0a5292.js";
|
|
11
11
|
import { memo as S, useCallback as C, useEffect as he, useMemo as w, useState as T } from "@emailmaker/runtime/react";
|
|
12
12
|
import { Fragment as ge, jsx as E, jsxs as _e } from "@emailmaker/runtime/react/jsx-runtime";
|
|
13
13
|
import { useParams as ve } from "@emailmaker/runtime/react-router-dom";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { o as e } from "./305249fe.js";
|
|
2
|
-
import { Gt as t, J as n, Kt as r, S as i, T as a, Wt as o, Yt as s, d as c, h as l, it as u, kt as d } from "./
|
|
2
|
+
import { Gt as t, J as n, Kt as r, S as i, T as a, Wt as o, Yt as s, d as c, h as l, it as u, kt as d } from "./12623967.js";
|
|
3
3
|
import { f } from "./89c71a33.js";
|
|
4
|
-
import { an as ee, in as te, nn as p, on as ne } from "./
|
|
5
|
-
import { d as m, l as re, o as ie, s as h } from "./
|
|
6
|
-
import { A as ae, Dt as g, Pt as _, T as v, c as oe, qt as se, zt as ce } from "./
|
|
4
|
+
import { an as ee, in as te, nn as p, on as ne } from "./b09f9769.js";
|
|
5
|
+
import { d as m, l as re, o as ie, s as h } from "./4d4236d42.js";
|
|
6
|
+
import { A as ae, Dt as g, Pt as _, T as v, c as oe, qt as se, zt as ce } from "./9f5c7c092.js";
|
|
7
7
|
import { createIdentifier as le } from "@emailmaker/runtime/di";
|
|
8
8
|
import { createContext as y, createElement as ue, useCallback as b, useContext as x, useEffect as S, useMemo as C, useReducer as de } from "@emailmaker/runtime/react";
|
|
9
9
|
import { jsx as w } from "@emailmaker/runtime/react/jsx-runtime";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "@emailmaker/runtime/react";
|
|
2
|
+
import { jsx as e } from "@emailmaker/runtime/react/jsx-runtime";
|
|
3
|
+
import { Tag as t } from "@emailmaker/runtime/antd";
|
|
4
|
+
//#region src/modules/common/Tag/index.tsx
|
|
5
|
+
var n = ({ className: n, style: r, color: i, text: a, bordered: o, ...s }) => {
|
|
6
|
+
let c = a || "";
|
|
7
|
+
return /* @__PURE__ */ e(t, {
|
|
8
|
+
style: r,
|
|
9
|
+
color: i,
|
|
10
|
+
bordered: o,
|
|
11
|
+
className: n,
|
|
12
|
+
...s,
|
|
13
|
+
children: c
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { n as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { At as e, Ct as t, Dt as n, Et as r, Ft as i, It as a, Lt as o, Mt as s, Nt as c, Ot as l, Pt as u, Rt as d, St as f, Tt as p, bt as m, jt as h, kt as g, vt as _, wt as v, xt as y, yt as b, zt as x } from "./
|
|
2
|
-
import "./
|
|
1
|
+
import { At as e, Ct as t, Dt as n, Et as r, Ft as i, It as a, Lt as o, Mt as s, Nt as c, Ot as l, Pt as u, Rt as d, St as f, Tt as p, bt as m, jt as h, kt as g, vt as _, wt as v, xt as y, yt as b, zt as x } from "./2b2c49f5.js";
|
|
2
|
+
import "./9608479b.js";
|
|
3
3
|
export { _ as CloseTagAdapter, b as CompletionAdapter, m as DefinitionAdapter, y as DiagnosticsAdapter, f as DocumentColorAdapter, t as DocumentFormattingEditProvider, v as DocumentHighlightAdapter, p as DocumentLinkAdapter, r as DocumentRangeFormattingEditProvider, n as DocumentSymbolAdapter, l as FoldingRangeAdapter, g as HoverAdapter, e as ReferenceAdapter, h as RenameAdapter, s as SelectionRangeAdapter, c as SignatureHelpAdapter, u as WorkerManager, i as fromPosition, a as fromRange, o as setupMode, d as toRange, x as toTextEdit };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as e, _ as t, h as n } from "./
|
|
2
|
-
import { h as r, m as i, p as a } from "./
|
|
1
|
+
import { S as e, _ as t, h as n } from "./12623967.js";
|
|
2
|
+
import { h as r, m as i, p as a } from "./b09f9769.js";
|
|
3
3
|
import { Disposable as o } from "@emailmaker/runtime/disposable";
|
|
4
4
|
import s from "@emailmaker/runtime/jszip";
|
|
5
5
|
//#region packages/escaping/rules.ts
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { i as e, r as t } from "./305249fe.js";
|
|
2
|
+
import { a as n, i as r, n as i, r as a, t as o } from "./b19a3fa4.js";
|
|
3
|
+
import { t as s } from "./6a07fdd9.js";
|
|
4
|
+
import { t as c } from "./404e7156.js";
|
|
5
|
+
import { DependencyResolver as l } from "@emailmaker/runtime/di";
|
|
6
|
+
import * as u from "@emailmaker/runtime/react";
|
|
7
|
+
import d from "@emailmaker/runtime/react";
|
|
8
|
+
import * as f from "@emailmaker/runtime/react-dom";
|
|
9
|
+
import * as p from "@emailmaker/runtime/react-dom/client";
|
|
10
|
+
import * as m from "@emailmaker/runtime/react/jsx-runtime";
|
|
11
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "@emailmaker/runtime/react/jsx-runtime";
|
|
12
|
+
import * as v from "@emailmaker/runtime/react/jsx-dev-runtime";
|
|
13
|
+
import * as y from "@emailmaker/runtime/prop-types";
|
|
14
|
+
import * as b from "@emailmaker/runtime/react-router-dom";
|
|
15
|
+
import * as x from "@emailmaker/runtime/antd";
|
|
16
|
+
import { Carousel as S, Checkbox as C, theme as w } from "@emailmaker/runtime/antd";
|
|
17
|
+
import * as T from "@emailmaker/runtime/@ant-design/icons";
|
|
18
|
+
import * as E from "@emailmaker/runtime/@ant-design/cssinjs";
|
|
19
|
+
import * as D from "@emailmaker/runtime/@ant-design/pro-layout";
|
|
20
|
+
import * as O from "@emailmaker/runtime/classnames";
|
|
21
|
+
import * as k from "@emailmaker/runtime/dayjs";
|
|
22
|
+
import * as A from "@emailmaker/runtime/uuid";
|
|
23
|
+
//#region src/extensions/ui-kit/src/ColorPicker/index.tsx
|
|
24
|
+
var j = d.forwardRef((e, t) => /* @__PURE__ */ g(l.getInstance(i), { ...e }));
|
|
25
|
+
j.displayName = "ColorPicker";
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/extensions/ui-kit/src/EmIcons/index.tsx
|
|
28
|
+
var M = (e) => /* @__PURE__ */ g(l.getInstance(r), { ...e }), N = (e) => /* @__PURE__ */ g(l.getInstance(n), { ...e }), P = (e) => /* @__PURE__ */ g(l.getInstance(a), { ...e }), F = ({ ...e }) => /* @__PURE__ */ g(C, {
|
|
29
|
+
...e,
|
|
30
|
+
children: "Checkbox"
|
|
31
|
+
}), I = w.useToken, L = {}, R = {
|
|
32
|
+
width: 1012,
|
|
33
|
+
color: "#fff",
|
|
34
|
+
textAlign: "center",
|
|
35
|
+
height: "100%"
|
|
36
|
+
}, z = /* @__PURE__ */ function(e) {
|
|
37
|
+
return e.fade = "fade", e.scrollx = "scrollx", e;
|
|
38
|
+
}(z || {}), B = ({ data: e = [], sliderStyle: t = L, coruselStyle: n = R, customDots: r = !1, carouselRef: i, effect: a = z.fade, header: o = !1, ...s }) => {
|
|
39
|
+
let { token: c } = I();
|
|
40
|
+
return /* @__PURE__ */ _(h, { children: [r && /* @__PURE__ */ g("div", {
|
|
41
|
+
className: "custom-dot",
|
|
42
|
+
children: e.length
|
|
43
|
+
}), /* @__PURE__ */ g(S, {
|
|
44
|
+
style: n,
|
|
45
|
+
ref: i,
|
|
46
|
+
effect: a,
|
|
47
|
+
...s,
|
|
48
|
+
children: e.map((e) => /* @__PURE__ */ _("div", {
|
|
49
|
+
style: n,
|
|
50
|
+
className: "slide",
|
|
51
|
+
children: [o && /* @__PURE__ */ g("div", {
|
|
52
|
+
className: "slide-title",
|
|
53
|
+
style: {
|
|
54
|
+
color: c.colorText,
|
|
55
|
+
fontWeight: 700,
|
|
56
|
+
lineHeight: "1.2",
|
|
57
|
+
textAlign: "center",
|
|
58
|
+
marginTop: 10,
|
|
59
|
+
marginBottom: 20,
|
|
60
|
+
marginLeft: "auto",
|
|
61
|
+
marginRight: "auto"
|
|
62
|
+
},
|
|
63
|
+
children: e?.textHeader
|
|
64
|
+
}), e?.content]
|
|
65
|
+
}, e.id))
|
|
66
|
+
})] });
|
|
67
|
+
}, V = (e) => /* @__PURE__ */ g(B, { ...e }), H = /* @__PURE__ */ t({
|
|
68
|
+
Carousel: () => V,
|
|
69
|
+
Checkbox: () => F,
|
|
70
|
+
ColorPicker: () => j,
|
|
71
|
+
ControlFontFamily: () => P,
|
|
72
|
+
DraggableInputNumber: () => o,
|
|
73
|
+
EmIcons: () => M,
|
|
74
|
+
LimitsCounter: () => N,
|
|
75
|
+
PageLoader: () => c,
|
|
76
|
+
Slider: () => V,
|
|
77
|
+
Tag: () => s
|
|
78
|
+
}), U = /* @__PURE__ */ t({});
|
|
79
|
+
import * as W from "@emailmaker/runtime/di";
|
|
80
|
+
e(U, W);
|
|
81
|
+
import * as G from "@emailmaker/runtime/disposable";
|
|
82
|
+
e(U, G);
|
|
83
|
+
import * as K from "@emailmaker/runtime/guid";
|
|
84
|
+
e(U, K);
|
|
85
|
+
import * as q from "@emailmaker/runtime/app-core";
|
|
86
|
+
e(U, q);
|
|
87
|
+
//#endregion
|
|
88
|
+
export { E as AntDesignCssinjs, T as AntDesignIcons, D as AntDesignProLayout, x as Antd, O as Classnames, U as Core, k as Dayjs, H as EmailmakerUiKit, y as PropTypes, u as React, f as ReactDom, p as ReactDomClient, v as ReactJsxDevRuntime, m as ReactJsxRuntime, b as ReactRouterDom, A as Uuid };
|