@emailmaker/emailmaker 1.1.45 → 1.1.49
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/{emailmaker-core.33dc7c79.js → emailmaker-core.686599cb.js} +78 -72
- package/emailmaker-esm.js +620 -3189
- package/emailmaker.d.ts +190 -52
- package/emailmaker.js +818 -12587
- package/iframe/js/amp.V09Q6hy6.js +1 -0
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.B-wCbIo7.js +1 -1
- package/monacoeditorwork/css.worker.bundle.js +40524 -40442
- package/monacoeditorwork/editor.worker.bundle.js +9740 -9697
- package/monacoeditorwork/html.worker.bundle.js +50513 -50431
- package/monacoeditorwork/json.worker.bundle.js +14570 -14527
- package/monacoeditorwork/ts.worker.bundle.js +119593 -119455
- package/npm-publish.manifest.json +7 -7
- package/package.json +1 -1
- package/runtime/@ant-design/cssinjs/index.js +1 -1
- package/runtime/@ant-design/icons/index.js +2 -2
- package/runtime/README.md +1 -1
- package/runtime/THIRD_PARTY_LICENSES.txt +70 -42
- package/runtime/antd/index.js +1 -1
- package/runtime/react/index.js +3 -3
- package/runtime/react/jsx-runtime/index.js +1 -1
- package/runtime/react-dom/client/index.js +4 -4
- package/runtime/react-dom/index.js +3 -3
- package/runtime/react-router-dom/index.js +2 -2
- package/singlepage_headless_plugin.html +1 -1
- package/static/core/1724d302.js +649 -0
- package/static/core/{521b410c2.js → 23692b142.js} +184 -155
- package/static/core/{f34c0a04.js → 2638406e.js} +3 -3
- package/static/core/{260206b4.js → 28d0ee07.js} +353 -334
- package/static/core/{2012a200.js → 2c90e83d.js} +243 -225
- package/static/core/{2fc2fdef.js → 35b2febf.js} +3 -3
- package/static/core/5a79f04d.js +924 -0
- package/static/core/{e8d51fcb.js → 5cd9928a.js} +51 -51
- package/static/core/{5def6229.js → 67b72215.js} +1349 -1297
- package/static/core/{855e2647.js → 7b48c5bf.js} +3949 -3707
- package/static/core/{817fa7b9.js → b61ea992.js} +7752 -6675
- package/static/core/{41282200.js → bfec1c65.js} +9673 -9544
- package/static/core/c78634e5.js +2090 -0
- package/static/core/{58db1140.js → c9f81757.js} +7 -7
- package/static/core/{3684652a.js → cf9b492f.js} +20 -20
- package/static/core/{34070d7f.js → dde3447a.js} +15703 -15249
- package/static/core/{799c65f1.js → e19a9688.js} +745 -664
- package/static/core/{a5701653.js → f5401fe7.js} +24 -24
- package/static/esm/{e21389f1.js → 1ce2bc32.js} +50 -47
- package/static/esm/{c951742a.js → c9e541a3.js} +70 -70
- package/static/runtime/{DownloadOutlined-CgJ8OpH_.js → DownloadOutlined-Dg_G2xO7.js} +4 -4
- package/static/runtime/client-CfXgU5Vo.js +7580 -0
- package/static/runtime/{defineProperty-B-FyVNQF.js → defineProperty-C_9hhJHt.js} +1 -1
- package/static/runtime/dom-export-CHgQ7Ws9.js +8069 -0
- package/static/runtime/{es-DnZp8dh1.js → es-BPfImJ0x.js} +5 -5
- package/static/runtime/{es-B2DS-PLP.js → es-DcH6fwd6.js} +2 -2
- package/static/runtime/{es-deqzngIL.js → es-_OY-D9g1.js} +2 -2
- package/static/runtime/{jsx-dev-runtime-Wj1_6O79.js → jsx-dev-runtime-DDukXY54.js} +2 -2
- package/static/runtime/jsx-runtime-BodCQYDg.js +22 -0
- package/static/runtime/react-BHNx_xzv.js +290 -0
- package/static/runtime/react-dom-CyByzibb.js +127 -0
- package/two_step_headless_plugin.html +1 -1
- package/vite/index.cjs +46 -21
- package/vite/index.d.ts +0 -1
- package/vite/index.js +46 -21
- package/vite/pluginDev/index.d.ts +0 -1
- package/webpack/index.cjs +46 -21
- package/webpack/index.d.ts +0 -1
- package/webpack/index.js +46 -21
- package/webpack/pluginDev/index.d.ts +0 -1
- package/iframe/js/amp.Op4DZt9X.js +0 -1
- package/static/core/7d16db79.js +0 -46
- package/static/core/8384a3ed.js +0 -2046
- package/static/core/9053f080.js +0 -869
- package/static/esm/352121c5.js +0 -55
- package/static/esm/64966e1c.js +0 -18
- package/static/esm/b8792b4f.js +0 -3480
- package/static/runtime/client-CM3WFcip.js +0 -7
- package/static/runtime/dist-DUS42Hru.js +0 -3421
- package/static/runtime/jsx-runtime-DmPQfqtr.js +0 -28
- package/static/runtime/react-DIf5CLST.js +0 -258
- package/static/runtime/react-dom-Cc3IcUkg.js +0 -5604
- /package/iframe/{iframe-eblock.33dc7c79.html → iframe-eblock.686599cb.html} +0 -0
- /package/iframe/{iframe.33dc7c79.html → iframe.686599cb.html} +0 -0
package/webpack/index.cjs
CHANGED
|
@@ -30,6 +30,51 @@ function toPascalCase(str) {
|
|
|
30
30
|
return `${str}`.toLowerCase().replace(/[-_]+/g, " ").replace(/[^\w\s]/g, "").replace(/\s+(.)(\w*)/g, (_m, a, b) => `${a.toUpperCase()}${b}`).replace(/\w/, (s) => s.toUpperCase());
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
|
+
//#region src/shared/publicPathResolve.ts
|
|
34
|
+
/**
|
|
35
|
+
* Build-time mirror of build-tools/plugins/shared/publicPathResolve.ts (SSOT).
|
|
36
|
+
* bundler-plugins tsc emits declarations with rootDir = src/, so shared helpers must live here.
|
|
37
|
+
*/
|
|
38
|
+
/** JS-выражение: document.baseURI с fallback на location.href */
|
|
39
|
+
var PUBLIC_PATH_RESOLUTION_BASE_EXPRESSION = `(
|
|
40
|
+
typeof document !== 'undefined' && document.baseURI
|
|
41
|
+
? document.baseURI
|
|
42
|
+
: (typeof window !== 'undefined' && window.location ? window.location.href : '')
|
|
43
|
+
)`;
|
|
44
|
+
/**
|
|
45
|
+
* Тело IIFE для нормализации publicPath в сгенерированном bootstrap-коде.
|
|
46
|
+
* `rawPathExpression` — JS-выражение, дающее сырой путь.
|
|
47
|
+
*/
|
|
48
|
+
function generateNormalizePublicPathBody(rawPathExpression) {
|
|
49
|
+
return `
|
|
50
|
+
var rawPath = ${rawPathExpression};
|
|
51
|
+
if (!rawPath) {
|
|
52
|
+
rawPath = './';
|
|
53
|
+
}
|
|
54
|
+
try {
|
|
55
|
+
var normalizedPath = String(rawPath);
|
|
56
|
+
if (/^[a-zA-Z][a-zA-Z\\d+\\-.]*:/.test(normalizedPath) || normalizedPath.indexOf('//') === 0) {
|
|
57
|
+
return normalizedPath.charAt(normalizedPath.length - 1) === '/'
|
|
58
|
+
? normalizedPath
|
|
59
|
+
: normalizedPath + '/';
|
|
60
|
+
}
|
|
61
|
+
var baseUrl = ${PUBLIC_PATH_RESOLUTION_BASE_EXPRESSION};
|
|
62
|
+
var resolved = baseUrl ? new URL(normalizedPath, baseUrl).href : normalizedPath;
|
|
63
|
+
return resolved.charAt(resolved.length - 1) === '/'
|
|
64
|
+
? resolved
|
|
65
|
+
: resolved + '/';
|
|
66
|
+
} catch (e) {
|
|
67
|
+
var fallback = String(rawPath);
|
|
68
|
+
return fallback.charAt(fallback.length - 1) === '/'
|
|
69
|
+
? fallback
|
|
70
|
+
: fallback + '/';
|
|
71
|
+
}`.trim();
|
|
72
|
+
}
|
|
73
|
+
function generateNormalizePublicPathIIFE(rawPathExpression) {
|
|
74
|
+
return `(function() {${generateNormalizePublicPathBody(rawPathExpression)}
|
|
75
|
+
})()`;
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
33
78
|
//#region src/shared/hostBootstrap.ts
|
|
34
79
|
/**
|
|
35
80
|
* Joins an integrator-provided `publicPath` prefix with the product `outputFolder`
|
|
@@ -61,27 +106,7 @@ function joinHostPublicPath(publicPath, outputFolder, defaultOutputFolder) {
|
|
|
61
106
|
* `publicPath` is still unset — plugin-dev must rely on host prepend, not detection.
|
|
62
107
|
*/
|
|
63
108
|
function createNormalizedPublicPathAssignment(environmentVariable, rawPath) {
|
|
64
|
-
|
|
65
|
-
return [
|
|
66
|
-
`if (!window.${environmentVariable}.publicPath) window.${environmentVariable}.publicPath = (function() {`,
|
|
67
|
-
` var rawPath = ${literal};`,
|
|
68
|
-
" if (!rawPath) {",
|
|
69
|
-
" rawPath = './';",
|
|
70
|
-
" }",
|
|
71
|
-
" try {",
|
|
72
|
-
" var normalizedPath = String(rawPath);",
|
|
73
|
-
" if (/^[a-zA-Z][a-zA-Z\\d+\\-.]*:/.test(normalizedPath) || normalizedPath.indexOf('//') === 0) {",
|
|
74
|
-
" return normalizedPath;",
|
|
75
|
-
" }",
|
|
76
|
-
" var baseUrl = typeof document !== 'undefined' && document.baseURI",
|
|
77
|
-
" ? document.baseURI",
|
|
78
|
-
" : (typeof window !== 'undefined' && window.location ? window.location.href : '');",
|
|
79
|
-
" return baseUrl ? new URL(normalizedPath, baseUrl).href : normalizedPath;",
|
|
80
|
-
" } catch (_error) {",
|
|
81
|
-
" return String(rawPath);",
|
|
82
|
-
" }",
|
|
83
|
-
"})();"
|
|
84
|
-
].join(" ");
|
|
109
|
+
return `if (!window.${environmentVariable}.publicPath) window.${environmentVariable}.publicPath = ${generateNormalizePublicPathIIFE(JSON.stringify(String(rawPath || "")))};`;
|
|
85
110
|
}
|
|
86
111
|
function createInitFragment(environmentVariable, publicPath, startupPrefetchMode) {
|
|
87
112
|
return [
|
package/webpack/index.d.ts
CHANGED
package/webpack/index.js
CHANGED
|
@@ -6,6 +6,51 @@ function toPascalCase(str) {
|
|
|
6
6
|
return `${str}`.toLowerCase().replace(/[-_]+/g, " ").replace(/[^\w\s]/g, "").replace(/\s+(.)(\w*)/g, (_m, a, b) => `${a.toUpperCase()}${b}`).replace(/\w/, (s) => s.toUpperCase());
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
|
+
//#region src/shared/publicPathResolve.ts
|
|
10
|
+
/**
|
|
11
|
+
* Build-time mirror of build-tools/plugins/shared/publicPathResolve.ts (SSOT).
|
|
12
|
+
* bundler-plugins tsc emits declarations with rootDir = src/, so shared helpers must live here.
|
|
13
|
+
*/
|
|
14
|
+
/** JS-выражение: document.baseURI с fallback на location.href */
|
|
15
|
+
var PUBLIC_PATH_RESOLUTION_BASE_EXPRESSION = `(
|
|
16
|
+
typeof document !== 'undefined' && document.baseURI
|
|
17
|
+
? document.baseURI
|
|
18
|
+
: (typeof window !== 'undefined' && window.location ? window.location.href : '')
|
|
19
|
+
)`;
|
|
20
|
+
/**
|
|
21
|
+
* Тело IIFE для нормализации publicPath в сгенерированном bootstrap-коде.
|
|
22
|
+
* `rawPathExpression` — JS-выражение, дающее сырой путь.
|
|
23
|
+
*/
|
|
24
|
+
function generateNormalizePublicPathBody(rawPathExpression) {
|
|
25
|
+
return `
|
|
26
|
+
var rawPath = ${rawPathExpression};
|
|
27
|
+
if (!rawPath) {
|
|
28
|
+
rawPath = './';
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
var normalizedPath = String(rawPath);
|
|
32
|
+
if (/^[a-zA-Z][a-zA-Z\\d+\\-.]*:/.test(normalizedPath) || normalizedPath.indexOf('//') === 0) {
|
|
33
|
+
return normalizedPath.charAt(normalizedPath.length - 1) === '/'
|
|
34
|
+
? normalizedPath
|
|
35
|
+
: normalizedPath + '/';
|
|
36
|
+
}
|
|
37
|
+
var baseUrl = ${PUBLIC_PATH_RESOLUTION_BASE_EXPRESSION};
|
|
38
|
+
var resolved = baseUrl ? new URL(normalizedPath, baseUrl).href : normalizedPath;
|
|
39
|
+
return resolved.charAt(resolved.length - 1) === '/'
|
|
40
|
+
? resolved
|
|
41
|
+
: resolved + '/';
|
|
42
|
+
} catch (e) {
|
|
43
|
+
var fallback = String(rawPath);
|
|
44
|
+
return fallback.charAt(fallback.length - 1) === '/'
|
|
45
|
+
? fallback
|
|
46
|
+
: fallback + '/';
|
|
47
|
+
}`.trim();
|
|
48
|
+
}
|
|
49
|
+
function generateNormalizePublicPathIIFE(rawPathExpression) {
|
|
50
|
+
return `(function() {${generateNormalizePublicPathBody(rawPathExpression)}
|
|
51
|
+
})()`;
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
9
54
|
//#region src/shared/hostBootstrap.ts
|
|
10
55
|
/**
|
|
11
56
|
* Joins an integrator-provided `publicPath` prefix with the product `outputFolder`
|
|
@@ -37,27 +82,7 @@ function joinHostPublicPath(publicPath, outputFolder, defaultOutputFolder) {
|
|
|
37
82
|
* `publicPath` is still unset — plugin-dev must rely on host prepend, not detection.
|
|
38
83
|
*/
|
|
39
84
|
function createNormalizedPublicPathAssignment(environmentVariable, rawPath) {
|
|
40
|
-
|
|
41
|
-
return [
|
|
42
|
-
`if (!window.${environmentVariable}.publicPath) window.${environmentVariable}.publicPath = (function() {`,
|
|
43
|
-
` var rawPath = ${literal};`,
|
|
44
|
-
" if (!rawPath) {",
|
|
45
|
-
" rawPath = './';",
|
|
46
|
-
" }",
|
|
47
|
-
" try {",
|
|
48
|
-
" var normalizedPath = String(rawPath);",
|
|
49
|
-
" if (/^[a-zA-Z][a-zA-Z\\d+\\-.]*:/.test(normalizedPath) || normalizedPath.indexOf('//') === 0) {",
|
|
50
|
-
" return normalizedPath;",
|
|
51
|
-
" }",
|
|
52
|
-
" var baseUrl = typeof document !== 'undefined' && document.baseURI",
|
|
53
|
-
" ? document.baseURI",
|
|
54
|
-
" : (typeof window !== 'undefined' && window.location ? window.location.href : '');",
|
|
55
|
-
" return baseUrl ? new URL(normalizedPath, baseUrl).href : normalizedPath;",
|
|
56
|
-
" } catch (_error) {",
|
|
57
|
-
" return String(rawPath);",
|
|
58
|
-
" }",
|
|
59
|
-
"})();"
|
|
60
|
-
].join(" ");
|
|
85
|
+
return `if (!window.${environmentVariable}.publicPath) window.${environmentVariable}.publicPath = ${generateNormalizePublicPathIIFE(JSON.stringify(String(rawPath || "")))};`;
|
|
61
86
|
}
|
|
62
87
|
function createInitFragment(environmentVariable, publicPath, startupPrefetchMode) {
|
|
63
88
|
return [
|