@useinsider/guido 3.0.0-beta.b989f28 → 3.0.0-beta.de55333
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/src/App.vue.d.ts +0 -1
- package/dist/src/main.d.ts +3 -1
- package/dist/utils/templatePreparation.js +25 -32
- package/package.json +1 -1
package/dist/src/App.vue.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import '../node_modules/@useinsider/design-system-vue/dist/design-system-vue.css';
|
|
2
1
|
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
3
2
|
export default _default;
|
package/dist/src/main.d.ts
CHANGED
|
@@ -1,49 +1,42 @@
|
|
|
1
|
-
import { useActionsApi as
|
|
2
|
-
import { useHtmlCompiler as
|
|
3
|
-
import { useRecommendationExtensionStore as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const r = new DOMParser().parseFromString(s, "text/html").querySelectorAll(h), t = [];
|
|
9
|
-
return r.forEach((n) => {
|
|
10
|
-
const i = n.getAttribute(A.PAGE_LIST);
|
|
11
|
-
i && i.split(",").map((e) => Number(e.trim())).filter((e) => !Number.isNaN(e) && e > 0).forEach((e) => t.push(e));
|
|
12
|
-
}), [...new Set(t)];
|
|
13
|
-
}, I = () => {
|
|
14
|
-
const s = D(), c = U(), { getCompiledEmail: m, getTemplateData: r, editorSave: t } = C(), { compileHtml: n } = E();
|
|
1
|
+
import { useActionsApi as f } from "../composables/useActionsApi.js";
|
|
2
|
+
import { useHtmlCompiler as C } from "../composables/useHtmlCompiler.js";
|
|
3
|
+
import { useRecommendationExtensionStore as T } from "../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
4
|
+
import { useDynamicContentStore as x } from "../stores/dynamic-content.js";
|
|
5
|
+
import { useUnsubscribeStore as y } from "../stores/unsubscribe.js";
|
|
6
|
+
const E = () => {
|
|
7
|
+
const o = x(), t = y(), { getCompiledEmail: i, getTemplateData: n, editorSave: s } = f(), { compileHtml: m } = C();
|
|
15
8
|
return {
|
|
16
9
|
prepareTemplateDetails: async () => {
|
|
17
|
-
const { html:
|
|
10
|
+
const { html: a, ampHtml: r = "", ampErrors: c = [] } = await i({
|
|
18
11
|
minimize: !0,
|
|
19
12
|
resetDataSavedFlag: !1
|
|
20
|
-
}), { html: l, css:
|
|
21
|
-
return
|
|
22
|
-
originalSize:
|
|
23
|
-
compiledSize:
|
|
24
|
-
reduction: `${
|
|
25
|
-
appliedRules:
|
|
26
|
-
executionTime: `${
|
|
13
|
+
}), { html: l, css: p, syncModulesIds: u = [] } = await n(), { compiledHtml: d, stats: e, appliedRules: S } = m(a), g = o.getSelectedDynamicContentList, b = T();
|
|
14
|
+
return s(), console.debug("HTML Compilation Stats:", {
|
|
15
|
+
originalSize: e.originalSize,
|
|
16
|
+
compiledSize: e.compiledSize,
|
|
17
|
+
reduction: `${e.reductionPercentage.toFixed(2)}%`,
|
|
18
|
+
appliedRules: S,
|
|
19
|
+
executionTime: `${e.executionTime.toFixed(2)}ms`
|
|
27
20
|
}), {
|
|
28
|
-
dynamicContentList:
|
|
29
|
-
compiledHtml:
|
|
21
|
+
dynamicContentList: g,
|
|
22
|
+
compiledHtml: d,
|
|
30
23
|
rawHtml: l,
|
|
31
|
-
css:
|
|
32
|
-
ampHtml:
|
|
33
|
-
ampErrors:
|
|
34
|
-
modules:
|
|
24
|
+
css: p,
|
|
25
|
+
ampHtml: r,
|
|
26
|
+
ampErrors: c,
|
|
27
|
+
modules: u.map(Number),
|
|
35
28
|
recommendation: {
|
|
36
|
-
campaignUrls:
|
|
29
|
+
campaignUrls: b.recommendationCampaignUrls,
|
|
37
30
|
configs: {}
|
|
38
31
|
},
|
|
39
32
|
unsubscribe: {
|
|
40
|
-
status:
|
|
41
|
-
config:
|
|
33
|
+
status: t.unsubscribePagesStatus,
|
|
34
|
+
config: t.selectedUnsubscribePages
|
|
42
35
|
}
|
|
43
36
|
};
|
|
44
37
|
}
|
|
45
38
|
};
|
|
46
39
|
};
|
|
47
40
|
export {
|
|
48
|
-
|
|
41
|
+
E as useTemplatePreparation
|
|
49
42
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.de55333",
|
|
4
4
|
"description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
|
|
5
5
|
"main": "./dist/guido.umd.cjs",
|
|
6
6
|
"module": "./dist/library.js",
|