@useinsider/guido 3.1.1-beta.f3b45b9 → 3.1.1-beta.f9482a3

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 (43) hide show
  1. package/dist/@types/config/schemas.js +61 -69
  2. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +7 -7
  3. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue2.js +20 -12
  4. package/dist/composables/useHtmlCompiler.js +20 -20
  5. package/dist/composables/usePreviewMode.js +16 -20
  6. package/dist/composables/useSave.js +13 -15
  7. package/dist/config/compiler/recommendationCompilerRules.js +152 -44
  8. package/dist/config/compiler/utils/recommendationCompilerUtils.js +59 -58
  9. package/dist/config/migrator/checkboxMigrator.js +3 -5
  10. package/dist/config/migrator/radioButtonMigrator.js +12 -14
  11. package/dist/extensions/Blocks/Recommendation/block.js +1 -1
  12. package/dist/extensions/Blocks/Recommendation/constants/selectors.js +11 -27
  13. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +172 -185
  14. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +93 -95
  15. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +73 -75
  16. package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +5 -7
  17. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +29 -30
  18. package/dist/extensions/Blocks/Recommendation/templates/index.js +7 -7
  19. package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +1 -3
  20. package/dist/extensions/Blocks/Recommendation/templates/list/template.js +20 -20
  21. package/dist/extensions/Blocks/Recommendation/templates/utils.js +50 -57
  22. package/dist/extensions/Blocks/Recommendation/utils/tagName.js +6 -6
  23. package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +17 -16
  24. package/dist/guido.css +1 -1
  25. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +218 -324
  26. package/dist/package.json.js +1 -1
  27. package/dist/src/@types/config/index.d.ts +1 -1
  28. package/dist/src/@types/config/schemas.d.ts +0 -20
  29. package/dist/src/@types/config/types.d.ts +1 -3
  30. package/dist/src/composables/useConfig.d.ts +0 -8
  31. package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +1 -1
  32. package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +0 -5
  33. package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +0 -5
  34. package/dist/src/extensions/Blocks/Recommendation/templates/grid/template.d.ts +4 -4
  35. package/dist/src/extensions/Blocks/Recommendation/templates/list/template.d.ts +3 -3
  36. package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +3 -20
  37. package/dist/src/stores/config.d.ts +0 -72
  38. package/dist/src/stores/preview.d.ts +0 -3
  39. package/dist/src/utils/htmlCompiler.d.ts +1 -2
  40. package/dist/stores/preview.js +3 -4
  41. package/dist/utils/htmlCompiler.js +41 -48
  42. package/dist/utils/templatePreparation.js +20 -20
  43. package/package.json +3 -3
@@ -1,32 +1,32 @@
1
- import { useActionsApi as S } from "../composables/useActionsApi.js";
2
- import { useHtmlCompiler as f } from "../composables/useHtmlCompiler.js";
3
- import { useRecommendationExtensionStore as C } from "../extensions/Blocks/Recommendation/store/recommendation.js";
4
- import { useDynamicContentStore as T } from "../stores/dynamic-content.js";
5
- import { useUnsubscribeStore as x } from "../stores/unsubscribe.js";
6
- const h = () => {
7
- const o = T(), e = x(), { getCompiledEmail: i, getTemplateData: s } = S(), { compileHtml: n } = f();
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 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: m = "", ampErrors: r = [] } = await i({
10
+ const { html: m, ampHtml: r = "", ampErrors: c = [] } = await i({
11
11
  minimize: !0,
12
12
  resetDataSavedFlag: !1
13
- }), { html: c, css: l, syncModulesIds: p = [] } = await s();
13
+ }), { html: l, css: p, syncModulesIds: u = [] } = await s();
14
14
  e.selectedUnsubscribePages.length && await e.fetchTemplates();
15
- const { compiledHtml: u, stats: t, appliedRules: d } = n(a), g = o.getSelectedDynamicContentList, b = C();
16
- return console.debug("HTML Compilation Stats:", {
15
+ const { compiledHtml: d, stats: t, appliedRules: g } = a(m), S = o.getSelectedDynamicContentList, b = T();
16
+ return n(), console.debug("HTML Compilation Stats:", {
17
17
  originalSize: t.originalSize,
18
18
  compiledSize: t.compiledSize,
19
19
  reduction: `${t.reductionPercentage.toFixed(2)}%`,
20
- appliedRules: d,
20
+ appliedRules: g,
21
21
  executionTime: `${t.executionTime.toFixed(2)}ms`
22
22
  }), {
23
- dynamicContentList: g,
24
- compiledHtml: u,
25
- rawHtml: c,
26
- css: l,
27
- ampHtml: m,
28
- ampErrors: r,
29
- modules: p.map(Number),
23
+ dynamicContentList: S,
24
+ compiledHtml: d,
25
+ rawHtml: l,
26
+ css: p,
27
+ ampHtml: r,
28
+ ampErrors: c,
29
+ modules: u.map(Number),
30
30
  recommendation: {
31
31
  campaignUrls: b.recommendationCampaignUrls,
32
32
  configs: {}
@@ -40,5 +40,5 @@ const h = () => {
40
40
  };
41
41
  };
42
42
  export {
43
- h as useTemplatePreparation
43
+ w as useTemplatePreparation
44
44
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.1.1-beta.f3b45b9",
3
+ "version": "3.1.1-beta.f9482a3",
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",
@@ -32,7 +32,7 @@
32
32
  "author": "",
33
33
  "license": "ISC",
34
34
  "dependencies": {
35
- "@stripoinc/ui-editor-extensions": "3.7.0",
35
+ "@stripoinc/ui-editor-extensions": "3.5.0",
36
36
  "@useinsider/design-system-vue": "0.14.28",
37
37
  "@vueuse/core": "11.3.0",
38
38
  "lodash-es": "4.17.21",
@@ -86,7 +86,7 @@
86
86
  },
87
87
  "guido": {
88
88
  "stripo": {
89
- "version": "2.59.2"
89
+ "version": "2.54.0"
90
90
  }
91
91
  }
92
92
  }