@useinsider/guido 3.2.0-beta.e01b42a → 3.2.0-beta.e69fb3b

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 (279) hide show
  1. package/README.md +1 -0
  2. package/dist/@types/config/schemas.js +66 -54
  3. package/dist/@types/config/validator.js +27 -34
  4. package/dist/components/Guido.vue.js +4 -4
  5. package/dist/components/Guido.vue2.js +87 -82
  6. package/dist/components/organisms/base/Toaster.vue2.js +10 -11
  7. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +12 -12
  8. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +7 -7
  9. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue2.js +12 -20
  10. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +6 -6
  11. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +9 -15
  12. package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +31 -40
  13. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +19 -20
  14. package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +11 -14
  15. package/dist/components/organisms/header/EditorActions.vue.js +12 -13
  16. package/dist/components/organisms/header/EditorActions.vue2.js +51 -40
  17. package/dist/components/organisms/header/HeaderWrapper.vue2.js +12 -15
  18. package/dist/components/organisms/header/LeftSlot.vue2.js +16 -19
  19. package/dist/components/organisms/header/MiddleSlot.vue2.js +14 -11
  20. package/dist/components/organisms/header/RightSlot.vue.js +10 -10
  21. package/dist/components/organisms/header/RightSlot.vue2.js +13 -13
  22. package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +11 -12
  23. package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +49 -31
  24. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +12 -13
  25. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +36 -38
  26. package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +12 -13
  27. package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +47 -51
  28. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +18 -21
  29. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +27 -31
  30. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +12 -13
  31. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +33 -46
  32. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +11 -12
  33. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +20 -21
  34. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +18 -18
  35. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +9 -10
  36. package/dist/composables/useActionsApi.js +37 -38
  37. package/dist/composables/useBlocksConfig.js +26 -26
  38. package/dist/composables/useFullStoryBridge.js +13 -0
  39. package/dist/composables/useHtmlCompiler.js +34 -24
  40. package/dist/composables/useHtmlValidator.js +91 -97
  41. package/dist/composables/useHttp.js +30 -30
  42. package/dist/composables/usePartner.js +1 -1
  43. package/dist/composables/usePreviewMode.js +20 -16
  44. package/dist/composables/useRecommendation.js +14 -15
  45. package/dist/composables/useRibbonOffset.js +21 -0
  46. package/dist/composables/useSave.js +23 -16
  47. package/dist/composables/useStripo.js +55 -47
  48. package/dist/composables/useSyncModuleExtractor.js +31 -29
  49. package/dist/composables/useTimerClone.js +24 -25
  50. package/dist/composables/useTranslations.js +2 -3
  51. package/dist/composables/useValidation.js +7 -8
  52. package/dist/composables/validators/useLiquidValidator.js +42 -0
  53. package/dist/config/compiler/liquidCompilerRules.js +15 -0
  54. package/dist/config/compiler/recommendationCompilerRules.js +162 -43
  55. package/dist/config/compiler/unsubscribeCompilerRules.js +45 -44
  56. package/dist/config/compiler/utils/recommendationCompilerUtils.js +51 -46
  57. package/dist/config/migrator/checkboxMigrator.js +23 -22
  58. package/dist/config/migrator/couponBlockMigrator.js +18 -19
  59. package/dist/config/migrator/itemsBlockMigrator.js +87 -89
  60. package/dist/config/migrator/radioButtonMigrator.js +19 -18
  61. package/dist/config/migrator/recommendationMigrator.js +107 -110
  62. package/dist/config/migrator/unsubscribeMigrator.js +10 -11
  63. package/dist/enums/extensions/recommendationBlock.js +14 -11
  64. package/dist/enums/onboarding.js +7 -2
  65. package/dist/enums/recommendation.js +2 -2
  66. package/dist/enums/unsubscribe.js +33 -27
  67. package/dist/extensions/Blocks/CouponBlock/template.js +24 -13
  68. package/dist/extensions/Blocks/Items/block.js +9 -9
  69. package/dist/extensions/Blocks/Items/controls/button/link.js +14 -14
  70. package/dist/extensions/Blocks/Items/controls/cardComposition.js +89 -97
  71. package/dist/extensions/Blocks/Items/controls/image/link.js +14 -14
  72. package/dist/extensions/Blocks/Items/controls/name/trimming.js +23 -24
  73. package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +13 -14
  74. package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +44 -47
  75. package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +38 -38
  76. package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +11 -11
  77. package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +38 -40
  78. package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +35 -35
  79. package/dist/extensions/Blocks/Items/controls/settingsControl.js +155 -162
  80. package/dist/extensions/Blocks/Items/enums/productEnums.js +21 -14
  81. package/dist/extensions/Blocks/Items/template.js +210 -210
  82. package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +1 -1
  83. package/dist/extensions/Blocks/Recommendation/constants/selectors.js +27 -11
  84. package/dist/extensions/Blocks/Recommendation/controls/button/index.js +36 -36
  85. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +208 -200
  86. package/dist/extensions/Blocks/Recommendation/controls/customAttribute/index.js +23 -20
  87. package/dist/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.js +99 -0
  88. package/dist/extensions/Blocks/Recommendation/controls/image/index.js +9 -9
  89. package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +19 -20
  90. package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +4 -6
  91. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +84 -90
  92. package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +18 -18
  93. package/dist/extensions/Blocks/Recommendation/controls/main/productCount.js +4 -4
  94. package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +35 -36
  95. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +127 -126
  96. package/dist/extensions/Blocks/Recommendation/controls/name/index.js +24 -24
  97. package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +27 -57
  98. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +24 -24
  99. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +24 -24
  100. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +4 -4
  101. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +4 -4
  102. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +24 -24
  103. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +4 -4
  104. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +4 -4
  105. package/dist/extensions/Blocks/Recommendation/controls/price/index.js +24 -24
  106. package/dist/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.js +14 -0
  107. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +50 -50
  108. package/dist/extensions/Blocks/Recommendation/controls/syncInfoMessage.js +18 -20
  109. package/dist/extensions/Blocks/Recommendation/extension.js +31 -32
  110. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +25 -32
  111. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +72 -69
  112. package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +24 -23
  113. package/dist/extensions/Blocks/Recommendation/templates/grid/migration.js +10 -10
  114. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +28 -27
  115. package/dist/extensions/Blocks/Recommendation/templates/index.js +9 -9
  116. package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +26 -25
  117. package/dist/extensions/Blocks/Recommendation/templates/list/template.js +21 -21
  118. package/dist/extensions/Blocks/Recommendation/templates/utils.js +53 -48
  119. package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +17 -14
  120. package/dist/extensions/Blocks/Recommendation/validation/filterSchema.js +13 -16
  121. package/dist/extensions/Blocks/Unsubscribe/block.js +11 -11
  122. package/dist/extensions/Blocks/Unsubscribe/control.js +11 -13
  123. package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +16 -18
  124. package/dist/extensions/Blocks/common-control.js +25 -26
  125. package/dist/extensions/DynamicContent/dynamic-content.js +59 -59
  126. package/dist/guido.css +1 -1
  127. package/dist/library.js +11 -12
  128. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +232 -210
  129. package/dist/node_modules/lodash-es/_getValue.js +1 -1
  130. package/dist/node_modules/valibot/dist/index.js +122 -126
  131. package/dist/package.json.js +1 -1
  132. package/dist/services/recommendationApi.js +12 -15
  133. package/dist/services/stripoApi.js +9 -9
  134. package/dist/services/templateLibraryApi.js +49 -48
  135. package/dist/src/@types/config/index.d.ts +1 -1
  136. package/dist/src/@types/config/schemas.d.ts +28 -0
  137. package/dist/src/@types/config/types.d.ts +3 -1
  138. package/dist/src/@types/generic.d.ts +0 -1
  139. package/dist/src/@types/save-as-template.d.ts +1 -0
  140. package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
  141. package/dist/src/composables/useActionsApi.d.ts +1 -1
  142. package/dist/src/composables/useConfig.d.ts +12 -0
  143. package/dist/src/composables/useFullStoryBridge.d.ts +11 -0
  144. package/dist/src/composables/useHtmlCompiler.d.ts +1 -2
  145. package/dist/src/composables/useRibbonOffset.d.ts +4 -0
  146. package/dist/src/composables/validators/useLiquidValidator.d.ts +3 -0
  147. package/dist/src/config/compiler/liquidCompilerRules.d.ts +2 -0
  148. package/dist/src/config/compiler/utils/recommendationCompilerUtils.d.ts +1 -1
  149. package/dist/src/enums/extensions/recommendationBlock.d.ts +3 -0
  150. package/dist/src/enums/onboarding.d.ts +6 -0
  151. package/dist/src/enums/unsubscribe.d.ts +5 -0
  152. package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +2 -0
  153. package/dist/src/extensions/Blocks/Recommendation/constants/controlIds.d.ts +1 -0
  154. package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +1 -1
  155. package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +5 -0
  156. package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +5 -0
  157. package/dist/src/extensions/Blocks/Recommendation/controls/customAttribute/index.d.ts +3 -0
  158. package/dist/src/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.d.ts +35 -0
  159. package/dist/src/extensions/Blocks/Recommendation/controls/name/textTrim.d.ts +3 -20
  160. package/dist/src/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.d.ts +29 -0
  161. package/dist/src/extensions/Blocks/Recommendation/templates/grid/template.d.ts +4 -4
  162. package/dist/src/extensions/Blocks/Recommendation/templates/list/template.d.ts +3 -3
  163. package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +20 -3
  164. package/dist/src/extensions/Blocks/Recommendation/utils/tagName.d.ts +3 -3
  165. package/dist/src/services/templateLibraryApi.d.ts +1 -1
  166. package/dist/src/stores/config.d.ts +108 -0
  167. package/dist/src/stores/dynamic-content.d.ts +3 -3
  168. package/dist/src/stores/onboarding.d.ts +4 -0
  169. package/dist/src/stores/preview.d.ts +3 -0
  170. package/dist/src/utils/genericUtil.d.ts +1 -1
  171. package/dist/src/utils/htmlCompiler.d.ts +2 -1
  172. package/dist/static/styles/base.css.js +7 -2
  173. package/dist/static/styles/components/button.css.js +3 -2
  174. package/dist/static/styles/components/loader.css.js +4 -0
  175. package/dist/stores/config.js +25 -81
  176. package/dist/stores/dynamic-content.js +6 -11
  177. package/dist/stores/onboarding.js +5 -1
  178. package/dist/stores/preview.js +8 -10
  179. package/dist/stores/unsubscribe.js +1 -4
  180. package/dist/utils/dateUtil.js +7 -10
  181. package/dist/utils/genericUtil.js +39 -20
  182. package/dist/utils/htmlCompiler.js +48 -41
  183. package/dist/utils/pairProductVariables.js +13 -14
  184. package/dist/utils/templatePreparation.js +36 -25
  185. package/dist/utils/tooltipUtils.js +4 -5
  186. package/package.json +9 -4
  187. package/dist/node_modules/lodash-es/_DataView.js +0 -6
  188. package/dist/node_modules/lodash-es/_Promise.js +0 -6
  189. package/dist/node_modules/lodash-es/_Set.js +0 -6
  190. package/dist/node_modules/lodash-es/_SetCache.js +0 -13
  191. package/dist/node_modules/lodash-es/_Stack.js +0 -18
  192. package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
  193. package/dist/node_modules/lodash-es/_WeakMap.js +0 -6
  194. package/dist/node_modules/lodash-es/_arrayFilter.js +0 -10
  195. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -20
  196. package/dist/node_modules/lodash-es/_arrayMap.js +0 -8
  197. package/dist/node_modules/lodash-es/_arrayPush.js +0 -8
  198. package/dist/node_modules/lodash-es/_arraySome.js +0 -9
  199. package/dist/node_modules/lodash-es/_baseEach.js +0 -6
  200. package/dist/node_modules/lodash-es/_baseFlatten.js +0 -13
  201. package/dist/node_modules/lodash-es/_baseFor.js +0 -5
  202. package/dist/node_modules/lodash-es/_baseForOwn.js +0 -8
  203. package/dist/node_modules/lodash-es/_baseGet.js +0 -11
  204. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  205. package/dist/node_modules/lodash-es/_baseHasIn.js +0 -6
  206. package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
  207. package/dist/node_modules/lodash-es/_baseIsEqual.js +0 -8
  208. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +0 -32
  209. package/dist/node_modules/lodash-es/_baseIsMatch.js +0 -29
  210. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -12
  211. package/dist/node_modules/lodash-es/_baseIteratee.js +0 -11
  212. package/dist/node_modules/lodash-es/_baseKeys.js +0 -14
  213. package/dist/node_modules/lodash-es/_baseMap.js +0 -11
  214. package/dist/node_modules/lodash-es/_baseMatches.js +0 -12
  215. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
  216. package/dist/node_modules/lodash-es/_baseProperty.js +0 -8
  217. package/dist/node_modules/lodash-es/_basePropertyDeep.js +0 -9
  218. package/dist/node_modules/lodash-es/_baseRange.js +0 -9
  219. package/dist/node_modules/lodash-es/_baseTimes.js +0 -8
  220. package/dist/node_modules/lodash-es/_baseToString.js +0 -18
  221. package/dist/node_modules/lodash-es/_baseTrim.js +0 -8
  222. package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
  223. package/dist/node_modules/lodash-es/_cacheHas.js +0 -6
  224. package/dist/node_modules/lodash-es/_castPath.js +0 -10
  225. package/dist/node_modules/lodash-es/_createBaseEach.js +0 -15
  226. package/dist/node_modules/lodash-es/_createBaseFor.js +0 -13
  227. package/dist/node_modules/lodash-es/_createRange.js +0 -11
  228. package/dist/node_modules/lodash-es/_equalArrays.js +0 -40
  229. package/dist/node_modules/lodash-es/_equalByTag.js +0 -45
  230. package/dist/node_modules/lodash-es/_equalObjects.js +0 -36
  231. package/dist/node_modules/lodash-es/_getAllKeys.js +0 -9
  232. package/dist/node_modules/lodash-es/_getMatchData.js +0 -12
  233. package/dist/node_modules/lodash-es/_getSymbols.js +0 -10
  234. package/dist/node_modules/lodash-es/_getTag.js +0 -28
  235. package/dist/node_modules/lodash-es/_hasPath.js +0 -19
  236. package/dist/node_modules/lodash-es/_isFlattenable.js +0 -10
  237. package/dist/node_modules/lodash-es/_isIndex.js +0 -8
  238. package/dist/node_modules/lodash-es/_isIterateeCall.js +0 -13
  239. package/dist/node_modules/lodash-es/_isKey.js +0 -12
  240. package/dist/node_modules/lodash-es/_isPrototype.js +0 -8
  241. package/dist/node_modules/lodash-es/_isStrictComparable.js +0 -7
  242. package/dist/node_modules/lodash-es/_mapToArray.js +0 -9
  243. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +0 -8
  244. package/dist/node_modules/lodash-es/_memoizeCapped.js +0 -11
  245. package/dist/node_modules/lodash-es/_nativeKeys.js +0 -5
  246. package/dist/node_modules/lodash-es/_nodeUtil.js +0 -11
  247. package/dist/node_modules/lodash-es/_overArg.js +0 -8
  248. package/dist/node_modules/lodash-es/_setCacheAdd.js +0 -7
  249. package/dist/node_modules/lodash-es/_setCacheHas.js +0 -6
  250. package/dist/node_modules/lodash-es/_setToArray.js +0 -9
  251. package/dist/node_modules/lodash-es/_stackClear.js +0 -7
  252. package/dist/node_modules/lodash-es/_stackDelete.js +0 -7
  253. package/dist/node_modules/lodash-es/_stackGet.js +0 -6
  254. package/dist/node_modules/lodash-es/_stackHas.js +0 -6
  255. package/dist/node_modules/lodash-es/_stackSet.js +0 -17
  256. package/dist/node_modules/lodash-es/_stringToPath.js +0 -10
  257. package/dist/node_modules/lodash-es/_toKey.js +0 -10
  258. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
  259. package/dist/node_modules/lodash-es/flatMap.js +0 -8
  260. package/dist/node_modules/lodash-es/get.js +0 -8
  261. package/dist/node_modules/lodash-es/hasIn.js +0 -8
  262. package/dist/node_modules/lodash-es/identity.js +0 -6
  263. package/dist/node_modules/lodash-es/isArguments.js +0 -10
  264. package/dist/node_modules/lodash-es/isArray.js +0 -4
  265. package/dist/node_modules/lodash-es/isArrayLike.js +0 -8
  266. package/dist/node_modules/lodash-es/isBuffer.js +0 -6
  267. package/dist/node_modules/lodash-es/isLength.js +0 -7
  268. package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
  269. package/dist/node_modules/lodash-es/isSymbol.js +0 -9
  270. package/dist/node_modules/lodash-es/isTypedArray.js +0 -7
  271. package/dist/node_modules/lodash-es/keys.js +0 -9
  272. package/dist/node_modules/lodash-es/map.js +0 -11
  273. package/dist/node_modules/lodash-es/property.js +0 -10
  274. package/dist/node_modules/lodash-es/range.js +0 -5
  275. package/dist/node_modules/lodash-es/stubArray.js +0 -6
  276. package/dist/node_modules/lodash-es/stubFalse.js +0 -6
  277. package/dist/node_modules/lodash-es/toFinite.js +0 -14
  278. package/dist/node_modules/lodash-es/toNumber.js +0 -22
  279. package/dist/node_modules/lodash-es/toString.js +0 -7
@@ -1,42 +1,53 @@
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();
1
+ import { useActionsApi as T } from "../composables/useActionsApi.js";
2
+ import { useHtmlCompiler as P } from "../composables/useHtmlCompiler.js";
3
+ import { useRecommendationExtensionStore as A } from "../extensions/Blocks/Recommendation/store/recommendation.js";
4
+ import { DATA_ATTRIBUTES as l } from "../extensions/Blocks/Unsubscribe/utils/constants.js";
5
+ import { parsePageList as h } from "../extensions/Blocks/Unsubscribe/utils/utils.js";
6
+ import { useDynamicContentStore as C } from "../stores/dynamic-content.js";
7
+ import { useUnsubscribeStore as D } from "../stores/unsubscribe.js";
8
+ function x(i, e) {
9
+ const r = new DOMParser().parseFromString(i, "text/html").querySelectorAll(`[${l.PAGE_LIST}]`), n = [];
10
+ return r.forEach((t) => {
11
+ const o = t.getAttribute(l.PAGE_LIST);
12
+ o && n.push(...h(o));
13
+ }), e.filter((t) => n.includes(t));
14
+ }
15
+ const I = () => {
16
+ const i = C(), e = D(), { getCompiledEmail: a, getTemplateData: m } = T(), { compileHtml: r } = P();
8
17
  return {
9
18
  prepareTemplateDetails: async () => {
10
- const { html: a, ampHtml: r = "", ampErrors: c = [] } = await i({
19
+ const { html: t, ampHtml: o = "", ampErrors: p = [] } = await a({
11
20
  minimize: !0,
12
21
  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)}%`,
22
+ }), { html: u, css: d, syncModulesIds: g = [] } = await m();
23
+ e.selectedUnsubscribePages.length && await e.fetchTemplates();
24
+ const { compiledHtml: c, stats: s, appliedRules: S } = r(t), b = i.getSelectedDynamicContentList, f = A();
25
+ return console.debug("HTML Compilation Stats:", {
26
+ originalSize: s.originalSize,
27
+ compiledSize: s.compiledSize,
28
+ reduction: `${s.reductionPercentage.toFixed(2)}%`,
18
29
  appliedRules: S,
19
- executionTime: `${e.executionTime.toFixed(2)}ms`
30
+ executionTime: `${s.executionTime.toFixed(2)}ms`
20
31
  }), {
21
- dynamicContentList: g,
22
- compiledHtml: d,
23
- rawHtml: l,
24
- css: p,
25
- ampHtml: r,
26
- ampErrors: c,
27
- modules: u.map(Number),
32
+ dynamicContentList: b,
33
+ compiledHtml: c,
34
+ rawHtml: u,
35
+ css: d,
36
+ ampHtml: o,
37
+ ampErrors: p,
38
+ modules: g.map(Number),
28
39
  recommendation: {
29
- campaignUrls: b.recommendationCampaignUrls,
40
+ campaignUrls: f.recommendationCampaignUrls,
30
41
  configs: {}
31
42
  },
32
43
  unsubscribe: {
33
- status: t.unsubscribePagesStatus,
34
- config: t.selectedUnsubscribePages
44
+ status: e.unsubscribePagesStatus,
45
+ config: x(c, e.selectedUnsubscribePages)
35
46
  }
36
47
  };
37
48
  }
38
49
  };
39
50
  };
40
51
  export {
41
- E as useTemplatePreparation
52
+ I as useTemplatePreparation
42
53
  };
@@ -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,10 +1,15 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.2.0-beta.e01b42a",
3
+ "version": "3.2.0-beta.e69fb3b",
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",
7
7
  "type": "module",
8
+ "sideEffects": [
9
+ "*.css",
10
+ "*.scss",
11
+ "*.vue"
12
+ ],
8
13
  "files": [
9
14
  "dist"
10
15
  ],
@@ -32,8 +37,8 @@
32
37
  "author": "",
33
38
  "license": "ISC",
34
39
  "dependencies": {
35
- "@stripoinc/ui-editor-extensions": "3.7.0",
36
- "@useinsider/design-system-vue": "0.14.28",
40
+ "@stripoinc/ui-editor-extensions": "3.8.0",
41
+ "@useinsider/design-system-vue": "1.1.0-beta.73ec2fa",
37
42
  "@vueuse/core": "11.3.0",
38
43
  "lodash-es": "4.17.21",
39
44
  "pinia": "2.3.1",
@@ -86,7 +91,7 @@
86
91
  },
87
92
  "guido": {
88
93
  "stripo": {
89
- "version": "2.59.0"
94
+ "version": "2.62.0"
90
95
  }
91
96
  }
92
97
  }
@@ -1,6 +0,0 @@
1
- import t from "./_getNative.js";
2
- import a from "./_root.js";
3
- var e = t(a, "DataView");
4
- export {
5
- e as default
6
- };
@@ -1,6 +0,0 @@
1
- import o from "./_getNative.js";
2
- import r from "./_root.js";
3
- var m = o(r, "Promise");
4
- export {
5
- m as default
6
- };
@@ -1,6 +0,0 @@
1
- import t from "./_getNative.js";
2
- import o from "./_root.js";
3
- var a = t(o, "Set");
4
- export {
5
- a as default
6
- };
@@ -1,13 +0,0 @@
1
- import p from "./_MapCache.js";
2
- import h from "./_setCacheAdd.js";
3
- import r from "./_setCacheHas.js";
4
- function e(t) {
5
- var o = -1, a = t == null ? 0 : t.length;
6
- for (this.__data__ = new p(); ++o < a; )
7
- this.add(t[o]);
8
- }
9
- e.prototype.add = e.prototype.push = h;
10
- e.prototype.has = r;
11
- export {
12
- e as default
13
- };
@@ -1,18 +0,0 @@
1
- import r from "./_ListCache.js";
2
- import a from "./_stackClear.js";
3
- import p from "./_stackDelete.js";
4
- import s from "./_stackGet.js";
5
- import i from "./_stackHas.js";
6
- import m from "./_stackSet.js";
7
- function t(o) {
8
- var e = this.__data__ = new r(o);
9
- this.size = e.size;
10
- }
11
- t.prototype.clear = a;
12
- t.prototype.delete = p;
13
- t.prototype.get = s;
14
- t.prototype.has = i;
15
- t.prototype.set = m;
16
- export {
17
- t as default
18
- };
@@ -1,5 +0,0 @@
1
- import r from "./_root.js";
2
- var a = r.Uint8Array;
3
- export {
4
- a as default
5
- };
@@ -1,6 +0,0 @@
1
- import a from "./_getNative.js";
2
- import o from "./_root.js";
3
- var e = a(o, "WeakMap");
4
- export {
5
- e as default
6
- };
@@ -1,10 +0,0 @@
1
- function d(e, i) {
2
- for (var n = -1, r = e == null ? 0 : e.length, u = 0, t = []; ++n < r; ) {
3
- var l = e[n];
4
- i(l, n, e) && (t[u++] = l);
5
- }
6
- return t;
7
- }
8
- export {
9
- d as default
10
- };
@@ -1,20 +0,0 @@
1
- import m from "./_baseTimes.js";
2
- import a from "./isArguments.js";
3
- import h from "./isArray.js";
4
- import g from "./isBuffer.js";
5
- import b from "./_isIndex.js";
6
- import d from "./isTypedArray.js";
7
- var A = Object.prototype, c = A.hasOwnProperty;
8
- function l(t, O) {
9
- var i = h(t), o = !i && a(t), s = !i && !o && g(t), e = !i && !o && !s && d(t), n = i || o || s || e, f = n ? m(t.length, String) : [], p = f.length;
10
- for (var r in t)
11
- c.call(t, r) && !(n && // Safari 9 has enumerable `arguments.length` in strict mode.
12
- (r == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
13
- s && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
14
- e && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
15
- b(r, p))) && f.push(r);
16
- return f;
17
- }
18
- export {
19
- l as default
20
- };
@@ -1,8 +0,0 @@
1
- function h(e, u) {
2
- for (var l = -1, n = e == null ? 0 : e.length, t = Array(n); ++l < n; )
3
- t[l] = u(e[l], l, e);
4
- return t;
5
- }
6
- export {
7
- h as default
8
- };
@@ -1,8 +0,0 @@
1
- function l(e, n) {
2
- for (var t = -1, h = n.length, f = e.length; ++t < h; )
3
- e[f + t] = n[t];
4
- return e;
5
- }
6
- export {
7
- l as default
8
- };
@@ -1,9 +0,0 @@
1
- function u(e, t) {
2
- for (var n = -1, l = e == null ? 0 : e.length; ++n < l; )
3
- if (t(e[n], n, e))
4
- return !0;
5
- return !1;
6
- }
7
- export {
8
- u as default
9
- };
@@ -1,6 +0,0 @@
1
- import a from "./_baseForOwn.js";
2
- import r from "./_createBaseEach.js";
3
- var t = r(a);
4
- export {
5
- t as default
6
- };
@@ -1,13 +0,0 @@
1
- import a from "./_arrayPush.js";
2
- import e from "./_isFlattenable.js";
3
- function l(h, m, t, g, n) {
4
- var o = -1, f = h.length;
5
- for (t || (t = e), n || (n = []); ++o < f; ) {
6
- var i = h[o];
7
- t(i) ? a(n, i) : n[n.length] = i;
8
- }
9
- return n;
10
- }
11
- export {
12
- l as default
13
- };
@@ -1,5 +0,0 @@
1
- import r from "./_createBaseFor.js";
2
- var e = r();
3
- export {
4
- e as default
5
- };
@@ -1,8 +0,0 @@
1
- import e from "./_baseFor.js";
2
- import t from "./keys.js";
3
- function m(r, o) {
4
- return r && e(r, o, t);
5
- }
6
- export {
7
- m as default
8
- };
@@ -1,11 +0,0 @@
1
- import l from "./_castPath.js";
2
- import f from "./_toKey.js";
3
- function d(n, e) {
4
- e = l(e, n);
5
- for (var r = 0, i = e.length; n != null && r < i; )
6
- n = n[f(e[r++])];
7
- return r && r == i ? n : void 0;
8
- }
9
- export {
10
- d as default
11
- };
@@ -1,9 +0,0 @@
1
- import e from "./_arrayPush.js";
2
- import u from "./isArray.js";
3
- function l(r, s, t) {
4
- var a = s(r);
5
- return u(r) ? a : e(a, t(r));
6
- }
7
- export {
8
- l as default
9
- };
@@ -1,6 +0,0 @@
1
- function e(n, a) {
2
- return n != null && a in Object(n);
3
- }
4
- export {
5
- e as default
6
- };
@@ -1,9 +0,0 @@
1
- import t from "./_baseGetTag.js";
2
- import e from "./isObjectLike.js";
3
- var s = "[object Arguments]";
4
- function m(r) {
5
- return e(r) && t(r) == s;
6
- }
7
- export {
8
- m as default
9
- };
@@ -1,8 +0,0 @@
1
- import u from "./_baseIsEqualDeep.js";
2
- import r from "./isObjectLike.js";
3
- function m(i, n, f, s, t) {
4
- return i === n ? !0 : i == null || n == null || !r(i) && !r(n) ? i !== i && n !== n : u(i, n, f, s, m, t);
5
- }
6
- export {
7
- m as default
8
- };
@@ -1,32 +0,0 @@
1
- import v from "./_Stack.js";
2
- import B from "./_equalArrays.js";
3
- import E from "./_equalByTag.js";
4
- import L from "./_equalObjects.js";
5
- import _ from "./_getTag.js";
6
- import O from "./isArray.js";
7
- import u from "./isBuffer.js";
8
- import R from "./isTypedArray.js";
9
- var S = 1, w = "[object Arguments]", P = "[object Array]", l = "[object Object]", q = Object.prototype, I = q.hasOwnProperty;
10
- function K(r, f, p, i, g, a) {
11
- var m = O(r), j = O(f), e = m ? P : _(r), o = j ? P : _(f);
12
- e = e == w ? l : e, o = o == w ? l : o;
13
- var A = e == l, d = o == l, n = e == o;
14
- if (n && u(r)) {
15
- if (!u(f))
16
- return !1;
17
- m = !0, A = !1;
18
- }
19
- if (n && !A)
20
- return a || (a = new v()), m || R(r) ? B(r, f, p, i, g, a) : E(r, f, e, p, i, g, a);
21
- if (!(p & S)) {
22
- var y = A && I.call(r, "__wrapped__"), T = d && I.call(f, "__wrapped__");
23
- if (y || T) {
24
- var s = y ? r.value() : r, t = T ? f.value() : f;
25
- return a || (a = new v()), g(s, t, p, i, a);
26
- }
27
- }
28
- return n ? (a || (a = new v()), L(r, f, p, i, g, a)) : !1;
29
- }
30
- export {
31
- K as default
32
- };
@@ -1,29 +0,0 @@
1
- import R from "./_Stack.js";
2
- import O from "./_baseIsEqual.js";
3
- var _ = 1, h = 2;
4
- function L(e, p, i, v) {
5
- var n = i.length, f = n;
6
- if (e == null)
7
- return !f;
8
- for (e = Object(e); n--; ) {
9
- var r = i[n];
10
- if (r[2] ? r[1] !== e[r[0]] : !(r[0] in e))
11
- return !1;
12
- }
13
- for (; ++n < f; ) {
14
- r = i[n];
15
- var u = r[0], l = e[u], A = r[1];
16
- if (r[2]) {
17
- if (l === void 0 && !(u in e))
18
- return !1;
19
- } else {
20
- var E = new R(), s;
21
- if (!(s === void 0 ? O(A, l, _ | h, v, E) : s))
22
- return !1;
23
- }
24
- }
25
- return !0;
26
- }
27
- export {
28
- L as default
29
- };
@@ -1,12 +0,0 @@
1
- import e from "./_baseGetTag.js";
2
- import r from "./isLength.js";
3
- import o from "./isObjectLike.js";
4
- var g = "[object Arguments]", b = "[object Array]", c = "[object Boolean]", j = "[object Date]", n = "[object Error]", T = "[object Function]", i = "[object Map]", y = "[object Number]", p = "[object Object]", A = "[object RegExp]", f = "[object Set]", u = "[object String]", m = "[object WeakMap]", s = "[object ArrayBuffer]", l = "[object DataView]", d = "[object Float32Array]", I = "[object Float64Array]", U = "[object Int8Array]", k = "[object Int16Array]", w = "[object Int32Array]", x = "[object Uint8Array]", B = "[object Uint8ClampedArray]", F = "[object Uint16Array]", M = "[object Uint32Array]", a = {};
5
- a[d] = a[I] = a[U] = a[k] = a[w] = a[x] = a[B] = a[F] = a[M] = !0;
6
- a[g] = a[b] = a[s] = a[c] = a[l] = a[j] = a[n] = a[T] = a[i] = a[y] = a[p] = a[A] = a[f] = a[u] = a[m] = !1;
7
- function E(t) {
8
- return o(t) && r(t.length) && !!a[e(t)];
9
- }
10
- export {
11
- E as default
12
- };
@@ -1,11 +0,0 @@
1
- import t from "./_baseMatches.js";
2
- import o from "./_baseMatchesProperty.js";
3
- import f from "./identity.js";
4
- import i from "./isArray.js";
5
- import e from "./property.js";
6
- function c(r) {
7
- return typeof r == "function" ? r : r == null ? f : typeof r == "object" ? i(r) ? o(r[0], r[1]) : t(r) : e(r);
8
- }
9
- export {
10
- c as default
11
- };
@@ -1,14 +0,0 @@
1
- import a from "./_isPrototype.js";
2
- import e from "./_nativeKeys.js";
3
- var s = Object.prototype, n = s.hasOwnProperty;
4
- function f(r) {
5
- if (!a(r))
6
- return e(r);
7
- var o = [];
8
- for (var t in Object(r))
9
- n.call(r, t) && t != "constructor" && o.push(t);
10
- return o;
11
- }
12
- export {
13
- f as default
14
- };
@@ -1,11 +0,0 @@
1
- import s from "./_baseEach.js";
2
- import u from "./isArrayLike.js";
3
- function o(r, e) {
4
- var t = -1, a = u(r) ? Array(r.length) : [];
5
- return s(r, function(f, i, n) {
6
- a[++t] = e(f, i, n);
7
- }), a;
8
- }
9
- export {
10
- o as default
11
- };
@@ -1,12 +0,0 @@
1
- import e from "./_baseIsMatch.js";
2
- import m from "./_getMatchData.js";
3
- import n from "./_matchesStrictComparable.js";
4
- function h(a) {
5
- var t = m(a);
6
- return t.length == 1 && t[0][2] ? n(t[0][0], t[0][1]) : function(r) {
7
- return r === a || e(r, a, t);
8
- };
9
- }
10
- export {
11
- h as default
12
- };
@@ -1,17 +0,0 @@
1
- import i from "./_baseIsEqual.js";
2
- import e from "./get.js";
3
- import f from "./hasIn.js";
4
- import n from "./_isKey.js";
5
- import a from "./_isStrictComparable.js";
6
- import p from "./_matchesStrictComparable.js";
7
- import s from "./_toKey.js";
8
- var u = 1, A = 2;
9
- function y(r, o) {
10
- return n(r) && a(o) ? p(s(r), o) : function(m) {
11
- var t = e(m, r);
12
- return t === void 0 && t === o ? f(m, r) : i(o, t, u | A);
13
- };
14
- }
15
- export {
16
- y as default
17
- };
@@ -1,8 +0,0 @@
1
- function r(e) {
2
- return function(n) {
3
- return n == null ? void 0 : n[e];
4
- };
5
- }
6
- export {
7
- r as default
8
- };
@@ -1,9 +0,0 @@
1
- import t from "./_baseGet.js";
2
- function o(e) {
3
- return function(r) {
4
- return t(r, e);
5
- };
6
- }
7
- export {
8
- o as default
9
- };
@@ -1,9 +0,0 @@
1
- var t = Math.ceil, h = Math.max;
2
- function v(e, r, a, u) {
3
- for (var l = -1, i = h(t((r - e) / (a || 1)), 0), n = Array(i); i--; )
4
- n[++l] = e, e += a;
5
- return n;
6
- }
7
- export {
8
- v as default
9
- };
@@ -1,8 +0,0 @@
1
- function i(r, t) {
2
- for (var e = -1, a = Array(r); ++e < r; )
3
- a[e] = t(e);
4
- return a;
5
- }
6
- export {
7
- i as default
8
- };
@@ -1,18 +0,0 @@
1
- import t from "./_Symbol.js";
2
- import f from "./_arrayMap.js";
3
- import m from "./isArray.js";
4
- import p from "./isSymbol.js";
5
- var i = t ? t.prototype : void 0, n = i ? i.toString : void 0;
6
- function y(r) {
7
- if (typeof r == "string")
8
- return r;
9
- if (m(r))
10
- return f(r, y) + "";
11
- if (p(r))
12
- return n ? n.call(r) : "";
13
- var o = r + "";
14
- return o == "0" && 1 / r == -1 / 0 ? "-0" : o;
15
- }
16
- export {
17
- y as default
18
- };
@@ -1,8 +0,0 @@
1
- import r from "./_trimmedEndIndex.js";
2
- var a = /^\s+/;
3
- function t(e) {
4
- return e && e.slice(0, r(e) + 1).replace(a, "");
5
- }
6
- export {
7
- t as default
8
- };
@@ -1,8 +0,0 @@
1
- function t(n) {
2
- return function(r) {
3
- return n(r);
4
- };
5
- }
6
- export {
7
- t as default
8
- };
@@ -1,6 +0,0 @@
1
- function t(a, e) {
2
- return a.has(e);
3
- }
4
- export {
5
- t as default
6
- };
@@ -1,10 +0,0 @@
1
- import o from "./isArray.js";
2
- import i from "./_isKey.js";
3
- import m from "./_stringToPath.js";
4
- import f from "./toString.js";
5
- function c(r, t) {
6
- return o(r) ? r : i(r, t) ? [r] : m(f(r));
7
- }
8
- export {
9
- c as default
10
- };
@@ -1,15 +0,0 @@
1
- import n from "./isArrayLike.js";
2
- function s(u, h) {
3
- return function(r, a) {
4
- if (r == null)
5
- return r;
6
- if (!n(r))
7
- return u(r, a);
8
- for (var t = r.length, e = -1, f = Object(r); ++e < t && a(f[e], e, f) !== !1; )
9
- ;
10
- return r;
11
- };
12
- }
13
- export {
14
- s as default
15
- };
@@ -1,13 +0,0 @@
1
- function h(u) {
2
- return function(e, n, i) {
3
- for (var f = -1, r = Object(e), t = i(e), l = t.length; l--; ) {
4
- var a = t[++f];
5
- if (n(r[a], a, r) === !1)
6
- break;
7
- }
8
- return e;
9
- };
10
- }
11
- export {
12
- h as default
13
- };
@@ -1,11 +0,0 @@
1
- import n from "./_baseRange.js";
2
- import r from "./_isIterateeCall.js";
3
- import e from "./toFinite.js";
4
- function g(u) {
5
- return function(o, i, f) {
6
- return f && typeof f != "number" && r(o, i, f) && (i = f = void 0), o = e(o), i === void 0 ? (i = o, o = 0) : i = e(i), f = f === void 0 ? o < i ? 1 : -1 : e(f), n(o, i, f);
7
- };
8
- }
9
- export {
10
- g as default
11
- };