@useinsider/guido 3.1.0-beta.65e69dd → 3.1.1-beta.02e79d6

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.
Files changed (34) hide show
  1. package/dist/@types/config/schemas.js +10 -8
  2. package/dist/components/Guido.vue.js +4 -4
  3. package/dist/components/Guido.vue2.js +81 -91
  4. package/dist/composables/useHtmlValidator.js +40 -38
  5. package/dist/config/compiler/unsubscribeCompilerRules.js +37 -37
  6. package/dist/config/i18n/en/tooltips.json.js +2 -1
  7. package/dist/extensions/Blocks/Recommendation/block.js +1 -1
  8. package/dist/extensions/Blocks/Recommendation/constants/selectors.js +27 -11
  9. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +185 -172
  10. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +95 -93
  11. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +75 -73
  12. package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +7 -5
  13. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +30 -29
  14. package/dist/extensions/Blocks/Recommendation/templates/index.js +7 -7
  15. package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +3 -1
  16. package/dist/extensions/Blocks/Recommendation/templates/list/template.js +20 -20
  17. package/dist/extensions/Blocks/Recommendation/templates/utils.js +57 -50
  18. package/dist/extensions/Blocks/Recommendation/utils/tagName.js +6 -6
  19. package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +16 -17
  20. package/dist/guido.css +1 -1
  21. package/dist/src/@types/config/schemas.d.ts +4 -0
  22. package/dist/src/@types/generic.d.ts +0 -1
  23. package/dist/src/composables/useConfig.d.ts +2 -0
  24. package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +1 -1
  25. package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +5 -0
  26. package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +5 -0
  27. package/dist/src/extensions/Blocks/Recommendation/templates/grid/template.d.ts +4 -4
  28. package/dist/src/extensions/Blocks/Recommendation/templates/list/template.d.ts +3 -3
  29. package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +20 -3
  30. package/dist/src/stores/config.d.ts +18 -0
  31. package/dist/static/styles/base.css.js +2 -7
  32. package/dist/utils/templatePreparation.js +16 -14
  33. package/dist/utils/tooltipUtils.js +4 -5
  34. package/package.json +2 -2
@@ -3,22 +3,24 @@ import { useHtmlCompiler as C } from "../composables/useHtmlCompiler.js";
3
3
  import { useRecommendationExtensionStore as T } from "../extensions/Blocks/Recommendation/store/recommendation.js";
4
4
  import { useDynamicContentStore as x } from "../stores/dynamic-content.js";
5
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();
6
+ const w = () => {
7
+ const o = x(), e = y(), { getCompiledEmail: i, getTemplateData: s, editorSave: n } = f(), { compileHtml: a } = C();
8
8
  return {
9
9
  prepareTemplateDetails: async () => {
10
- const { html: a, ampHtml: r = "", ampErrors: c = [] } = await i({
10
+ const { html: m, ampHtml: r = "", ampErrors: c = [] } = await i({
11
11
  minimize: !0,
12
12
  resetDataSavedFlag: !1
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`
13
+ }), { html: l, css: p, syncModulesIds: u = [] } = await s();
14
+ e.selectedUnsubscribePages.length && await e.fetchTemplates();
15
+ const { compiledHtml: d, stats: t, appliedRules: g } = a(m), S = o.getSelectedDynamicContentList, b = T();
16
+ return n(), console.debug("HTML Compilation Stats:", {
17
+ originalSize: t.originalSize,
18
+ compiledSize: t.compiledSize,
19
+ reduction: `${t.reductionPercentage.toFixed(2)}%`,
20
+ appliedRules: g,
21
+ executionTime: `${t.executionTime.toFixed(2)}ms`
20
22
  }), {
21
- dynamicContentList: g,
23
+ dynamicContentList: S,
22
24
  compiledHtml: d,
23
25
  rawHtml: l,
24
26
  css: p,
@@ -30,13 +32,13 @@ const E = () => {
30
32
  configs: {}
31
33
  },
32
34
  unsubscribe: {
33
- status: t.unsubscribePagesStatus,
34
- config: t.selectedUnsubscribePages
35
+ status: e.unsubscribePagesStatus,
36
+ config: e.selectedUnsubscribePages
35
37
  }
36
38
  };
37
39
  }
38
40
  };
39
41
  };
40
42
  export {
41
- E as useTemplatePreparation
43
+ w as useTemplatePreparation
42
44
  };
@@ -1,11 +1,10 @@
1
- const e = (s, t = {}) => ({
2
- id: s,
1
+ const o = (i, t = {}) => ({
2
+ id: i,
3
3
  dynamicPosition: t.dynamicPosition ?? !1,
4
4
  staticPosition: t.staticPosition ?? "bottom center",
5
5
  iconStatus: t.iconStatus ?? !1,
6
- offset: t.offset,
7
- preventXss: t.preventXss
6
+ offset: t.offset
8
7
  });
9
8
  export {
10
- e as getTooltipOptions
9
+ o as getTooltipOptions
11
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.1.0-beta.65e69dd",
3
+ "version": "3.1.1-beta.02e79d6",
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",
@@ -33,7 +33,7 @@
33
33
  "license": "ISC",
34
34
  "dependencies": {
35
35
  "@stripoinc/ui-editor-extensions": "3.5.0",
36
- "@useinsider/design-system-vue": "0.14.28",
36
+ "@useinsider/design-system-vue": "1.1.0-beta.73ec2fa",
37
37
  "@vueuse/core": "11.3.0",
38
38
  "lodash-es": "4.17.21",
39
39
  "pinia": "2.3.1",