@useinsider/guido 1.0.2-beta.ad1dcd9 → 1.0.2-beta.b3c5fc9

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 (250) hide show
  1. package/README.md +2 -44
  2. package/dist/@types/events.d.ts +0 -6
  3. package/dist/@types/generic.d.ts +0 -13
  4. package/dist/_virtual/AddCustomFont.js +4 -0
  5. package/dist/_virtual/AiAssistantValueType.js +4 -0
  6. package/dist/_virtual/BackgroundColorBuiltInControl.js +4 -0
  7. package/dist/_virtual/BackgroundImageBuiltInControl.js +4 -0
  8. package/dist/_virtual/Block.js +4 -0
  9. package/dist/_virtual/BlockAttributes.js +4 -0
  10. package/dist/_virtual/BlockCompositionType.js +4 -0
  11. package/dist/_virtual/BlockPaddingsBuiltInControl.js +4 -0
  12. package/dist/_virtual/BlockRenderer.js +4 -0
  13. package/dist/_virtual/BlockType.js +4 -0
  14. package/dist/_virtual/BlocksPanel.js +4 -0
  15. package/dist/_virtual/BuiltInControl.js +4 -0
  16. package/dist/_virtual/BuiltInControlTypes.js +4 -0
  17. package/dist/_virtual/ButtonBorderBuiltInControl.js +4 -0
  18. package/dist/_virtual/ButtonColorBuiltInControl.js +4 -0
  19. package/dist/_virtual/ButtonFontColorBuiltInControl.js +4 -0
  20. package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +4 -0
  21. package/dist/_virtual/ButtonTextBuiltInControl.js +4 -0
  22. package/dist/_virtual/ContextAction.js +4 -0
  23. package/dist/_virtual/ContextActionType.js +4 -0
  24. package/dist/_virtual/Control.js +4 -0
  25. package/dist/_virtual/EditorStatePropertyType.js +4 -0
  26. package/dist/_virtual/Extension.js +4 -0
  27. package/dist/_virtual/ExtensionBuilder.js +4 -0
  28. package/dist/_virtual/FontFamilyBuiltInControl.js +4 -0
  29. package/dist/_virtual/LinkColorBuiltInControl.js +4 -0
  30. package/dist/_virtual/ModificationDescription.js +4 -0
  31. package/dist/_virtual/PanelPosition.js +4 -0
  32. package/dist/_virtual/PreviewDeviceMode.js +4 -0
  33. package/dist/_virtual/SettingsPanelRegistry.js +4 -0
  34. package/dist/_virtual/SettingsPanelTab.js +4 -0
  35. package/dist/_virtual/SettingsTab.js +4 -0
  36. package/dist/_virtual/StructureBorderBuiltInControl.js +4 -0
  37. package/dist/_virtual/StructurePaddingsBuiltInControl.js +4 -0
  38. package/dist/_virtual/TextColorBuiltInControl.js +4 -0
  39. package/dist/_virtual/TextLineSpacingBuiltInControl.js +4 -0
  40. package/dist/_virtual/TextSizeBuiltInControl.js +4 -0
  41. package/dist/_virtual/TextStyleBuiltInControl.js +4 -0
  42. package/dist/_virtual/UIElement.js +4 -0
  43. package/dist/_virtual/UIElementTagRegistry.js +4 -0
  44. package/dist/_virtual/UIElementType.js +4 -0
  45. package/dist/_virtual/UIElementsAttributes.js +4 -0
  46. package/dist/_virtual/index.js +5 -0
  47. package/dist/_virtual/index2.js +4 -0
  48. package/dist/components/Guido.vue.d.ts +2 -5
  49. package/dist/components/Guido.vue.js +10 -10
  50. package/dist/components/Guido.vue2.js +61 -85
  51. package/dist/components/organisms/email-preview/PreviewContainer.vue.js +12 -12
  52. package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +8 -7
  53. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +2 -3
  54. package/dist/components/organisms/header/HeaderWrapper.vue.d.ts +1 -3
  55. package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
  56. package/dist/components/organisms/header/HeaderWrapper.vue2.js +9 -15
  57. package/dist/components/organisms/header/LeftSlot.vue.js +9 -10
  58. package/dist/components/organisms/header/MiddleSlot.vue.js +6 -6
  59. package/dist/components/organisms/header/MiddleSlot.vue2.js +16 -15
  60. package/dist/components/organisms/header/RightSlot.vue.d.ts +1 -3
  61. package/dist/components/organisms/header/RightSlot.vue.js +4 -6
  62. package/dist/components/organisms/header/RightSlot.vue2.js +28 -26
  63. package/dist/components/organisms/header/ViewOptions.vue.js +11 -11
  64. package/dist/components/organisms/header/ViewOptions.vue2.js +15 -14
  65. package/dist/components/organisms/header/version-history/ViewOptions.vue.js +11 -11
  66. package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +5 -5
  67. package/dist/components/wrappers/WpDrawer.vue.d.ts +4 -6
  68. package/dist/components/wrappers/WpDrawer.vue.js +4 -6
  69. package/dist/composables/useCustomInterfaceAppearance.js +19 -25
  70. package/dist/composables/useHtmlCompiler.js +9 -17
  71. package/dist/composables/usePartner.d.ts +0 -1
  72. package/dist/composables/usePartner.js +9 -16
  73. package/dist/composables/usePreviewMode.js +13 -13
  74. package/dist/composables/useStripo.js +52 -61
  75. package/dist/composables/useToaster.js +17 -17
  76. package/dist/config/compiler/outlookCompilerRules.d.ts +0 -2
  77. package/dist/enums/defaults.d.ts +1 -6
  78. package/dist/enums/defaults.js +10 -50
  79. package/dist/extensions/DynamicContent/dynamic-content.js +27 -41
  80. package/dist/extensions/DynamicContent/extension.js +6 -18
  81. package/dist/guido.css +1 -1
  82. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +48 -72
  83. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +49 -74
  84. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +38 -120
  85. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +18 -0
  86. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +32 -0
  87. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +18 -0
  88. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +8 -0
  89. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +11 -5
  90. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +34 -0
  91. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +11 -5
  92. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +11 -5
  93. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +101 -116
  94. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +11 -5
  95. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +11 -5
  96. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +11 -5
  97. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +11 -5
  98. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +11 -5
  99. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +11 -5
  100. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +43 -23
  101. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +43 -0
  102. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +46 -0
  103. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +44 -0
  104. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +22 -0
  105. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +46 -0
  106. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +46 -0
  107. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +45 -0
  108. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +45 -0
  109. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +45 -0
  110. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +17 -21
  111. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +43 -0
  112. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +45 -0
  113. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +15 -8
  114. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +29 -30
  115. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +46 -0
  116. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +44 -0
  117. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +43 -0
  118. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +43 -0
  119. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +45 -0
  120. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +43 -0
  121. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +266 -0
  122. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +23 -19
  123. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +19 -37
  124. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +15 -2
  125. package/dist/static/styles/components/alert-message.css.js +2 -32
  126. package/dist/static/styles/components/button.css.js +2 -32
  127. package/dist/static/styles/components/wide-panel.css.js +2 -15
  128. package/dist/static/styles/variables.css.js +0 -10
  129. package/dist/stores/dynamic-content.d.ts +0 -12
  130. package/dist/stores/dynamic-content.js +6 -7
  131. package/dist/stores/editor.d.ts +1 -194
  132. package/dist/stores/editor.js +2 -18
  133. package/dist/stores/preview.d.ts +8 -0
  134. package/dist/stores/preview.js +20 -12
  135. package/dist/utils/genericUtil.js +6 -9
  136. package/dist/utils/templatePreparation.js +14 -21
  137. package/package.json +3 -5
  138. package/dist/components/organisms/LoadingWrapper.vue.d.ts +0 -2
  139. package/dist/components/organisms/LoadingWrapper.vue.js +0 -18
  140. package/dist/components/organisms/LoadingWrapper.vue2.js +0 -12
  141. package/dist/components/organisms/onboarding/AMPOnboarding.vue.d.ts +0 -2
  142. package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +0 -20
  143. package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +0 -37
  144. package/dist/components/organisms/onboarding/GenericOnboarding.vue.d.ts +0 -2
  145. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +0 -21
  146. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +0 -83
  147. package/dist/components/organisms/onboarding/NewVersionPopup.vue.d.ts +0 -2
  148. package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +0 -17
  149. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +0 -30
  150. package/dist/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +0 -2
  151. package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +0 -19
  152. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +0 -43
  153. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.d.ts +0 -2
  154. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +0 -21
  155. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +0 -74
  156. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +0 -2
  157. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +0 -20
  158. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +0 -37
  159. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +0 -2
  160. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +0 -18
  161. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +0 -16
  162. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +0 -2
  163. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +0 -24
  164. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +0 -64
  165. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +0 -2
  166. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +0 -18
  167. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +0 -108
  168. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +0 -2
  169. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +0 -18
  170. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue2.js +0 -12
  171. package/dist/composables/useHtmlValidator.d.ts +0 -4
  172. package/dist/composables/useHtmlValidator.js +0 -139
  173. package/dist/composables/useRecommendation.d.ts +0 -19
  174. package/dist/composables/useRecommendation.js +0 -27
  175. package/dist/composables/useSave.d.ts +0 -4
  176. package/dist/composables/useSave.js +0 -15
  177. package/dist/composables/useStripoEventHandler.d.ts +0 -3
  178. package/dist/composables/useStripoEventHandler.js +0 -20
  179. package/dist/config/compiler/outlookCompilerRules.js +0 -36
  180. package/dist/config/compiler/recommendationCompilerRules.d.ts +0 -2
  181. package/dist/config/compiler/recommendationCompilerRules.js +0 -83
  182. package/dist/config/compiler/socialCompilerRules.d.ts +0 -2
  183. package/dist/config/compiler/socialCompilerRules.js +0 -21
  184. package/dist/config/compiler/unsubscribeCompilerRules.d.ts +0 -2
  185. package/dist/config/compiler/unsubscribeCompilerRules.js +0 -64
  186. package/dist/config/migrator/checkboxMigrator.d.ts +0 -1
  187. package/dist/config/migrator/checkboxMigrator.js +0 -83
  188. package/dist/config/migrator/index.d.ts +0 -1
  189. package/dist/config/migrator/index.js +0 -9
  190. package/dist/config/migrator/unsubscribeMigrator.d.ts +0 -1
  191. package/dist/config/migrator/unsubscribeMigrator.js +0 -112
  192. package/dist/enums/html-validator.d.ts +0 -6
  193. package/dist/enums/html-validator.js +0 -7
  194. package/dist/enums/onboarding.d.ts +0 -1
  195. package/dist/enums/onboarding.js +0 -8
  196. package/dist/enums/recommendation.d.ts +0 -54
  197. package/dist/enums/recommendation.js +0 -56
  198. package/dist/enums/unsubscribe.d.ts +0 -34
  199. package/dist/enums/unsubscribe.js +0 -50
  200. package/dist/extensions/Blocks/Checkbox/block.d.ts +0 -10
  201. package/dist/extensions/Blocks/Checkbox/block.js +0 -39
  202. package/dist/extensions/Blocks/Checkbox/control.d.ts +0 -22
  203. package/dist/extensions/Blocks/Checkbox/control.js +0 -104
  204. package/dist/extensions/Blocks/Checkbox/extension.d.ts +0 -2
  205. package/dist/extensions/Blocks/Checkbox/extension.js +0 -20
  206. package/dist/extensions/Blocks/Checkbox/settingsPanel.d.ts +0 -4
  207. package/dist/extensions/Blocks/Checkbox/settingsPanel.js +0 -38
  208. package/dist/extensions/Blocks/Checkbox/template.d.ts +0 -6
  209. package/dist/extensions/Blocks/Checkbox/template.js +0 -75
  210. package/dist/extensions/Blocks/Unsubscribe/block.d.ts +0 -30
  211. package/dist/extensions/Blocks/Unsubscribe/block.js +0 -141
  212. package/dist/extensions/Blocks/Unsubscribe/control.d.ts +0 -29
  213. package/dist/extensions/Blocks/Unsubscribe/control.js +0 -180
  214. package/dist/extensions/Blocks/Unsubscribe/elements/preview.d.ts +0 -11
  215. package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +0 -54
  216. package/dist/extensions/Blocks/Unsubscribe/extension.d.ts +0 -2
  217. package/dist/extensions/Blocks/Unsubscribe/extension.js +0 -21
  218. package/dist/extensions/Blocks/Unsubscribe/settingsPanel.d.ts +0 -4
  219. package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +0 -32
  220. package/dist/extensions/Blocks/Unsubscribe/template.d.ts +0 -3
  221. package/dist/extensions/Blocks/Unsubscribe/template.js +0 -28
  222. package/dist/extensions/Blocks/Unsubscribe/utils/constants.d.ts +0 -9
  223. package/dist/extensions/Blocks/Unsubscribe/utils/constants.js +0 -11
  224. package/dist/extensions/Blocks/Unsubscribe/utils/utils.d.ts +0 -7
  225. package/dist/extensions/Blocks/Unsubscribe/utils/utils.js +0 -6
  226. package/dist/extensions/Blocks/_Boilerplate/block.d.ts +0 -10
  227. package/dist/extensions/Blocks/_Boilerplate/control.d.ts +0 -17
  228. package/dist/extensions/Blocks/_Boilerplate/extension.d.ts +0 -2
  229. package/dist/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +0 -4
  230. package/dist/extensions/Blocks/_Boilerplate/template.d.ts +0 -6
  231. package/dist/mock/api/unsubscribe.d.ts +0 -2
  232. package/dist/mock/api/user-modal-state.d.ts +0 -2
  233. package/dist/mock/api/validator.d.ts +0 -2
  234. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js +0 -12
  235. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js +0 -12
  236. package/dist/services/onboardingApi.d.ts +0 -4
  237. package/dist/services/onboardingApi.js +0 -23
  238. package/dist/services/unsubscribeApi.d.ts +0 -4
  239. package/dist/services/unsubscribeApi.js +0 -16
  240. package/dist/static/assets/onboarding-img.svg.js +0 -4
  241. package/dist/static/styles/components/loader.css.js +0 -10
  242. package/dist/static/styles/components/notification.css.js +0 -55
  243. package/dist/static/styles/components/popup.css.js +0 -68
  244. package/dist/static/styles/customEditorStyle.css.js +0 -24
  245. package/dist/stores/onboarding.d.ts +0 -1068
  246. package/dist/stores/onboarding.js +0 -95
  247. package/dist/stores/recommendation.d.ts +0 -10
  248. package/dist/stores/recommendation.js +0 -9
  249. package/dist/stores/unsubscribe.d.ts +0 -186
  250. package/dist/stores/unsubscribe.js +0 -128
@@ -1,20 +1,21 @@
1
- import { defineComponent as n } from "vue";
2
- import { useTranslations as p } from "../../../composables/useTranslations.js";
1
+ import { defineComponent as p } from "vue";
2
+ import { useTranslations as r } from "../../../composables/useTranslations.js";
3
3
  import { useEditorStore as s } from "../../../stores/editor.js";
4
- import { getTooltipOptions as o } from "../../../utils/tooltipUtils.js";
5
- import { InChips as r, InSegments as m } from "@useinsider/design-system-vue";
6
- const f = /* @__PURE__ */ n({
4
+ import { usePreviewStore as m } from "../../../stores/preview.js";
5
+ import { getTooltipOptions as t } from "../../../utils/tooltipUtils.js";
6
+ import { InSegments as l } from "@useinsider/design-system-vue";
7
+ const w = /* @__PURE__ */ p({
7
8
  __name: "ViewOptions",
8
- setup(l) {
9
- const e = s(), t = p(), i = [
9
+ setup(a) {
10
+ const e = s(), o = r(), i = [
10
11
  {
11
12
  text: "",
12
13
  icon: "line-desktop",
13
14
  value: "desktop",
14
15
  position: "bottom",
15
16
  align: "center",
16
- tooltipText: t("newsletter.desktop"),
17
- tooltipOptions: o("guido__view-option-desktop")
17
+ tooltipText: o("newsletter.desktop"),
18
+ tooltipOptions: t("guido__view-option-desktop")
18
19
  },
19
20
  {
20
21
  text: "",
@@ -22,13 +23,13 @@ const f = /* @__PURE__ */ n({
22
23
  value: "mobile",
23
24
  position: "bottom",
24
25
  align: "center",
25
- tooltipText: t("newsletter.mobile"),
26
- tooltipOptions: o("guido__view-option-mobile")
26
+ tooltipText: o("newsletter.mobile"),
27
+ tooltipOptions: t("guido__view-option-mobile")
27
28
  }
28
- ];
29
- return { __sfc: !0, editorStore: e, trans: t, segmentList: i, InSegments: m, InChips: r };
29
+ ], n = m();
30
+ return { __sfc: !0, editorStore: e, trans: o, segmentList: i, previewStore: n, InSegments: l };
30
31
  }
31
32
  });
32
33
  export {
33
- f as default
34
+ w as default
34
35
  };
@@ -1,18 +1,18 @@
1
- import i from "./ViewOptions.vue2.js";
1
+ import s from "./ViewOptions.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
- var n = function() {
5
- var s = this, t = s._self._c, e = s._self._setupProxy;
6
- return t("div", { staticClass: "view-options-wrapper" }, [t(e.InSegments, { attrs: { id: "guido__verion-history-view-option-selection", "with-icon": "", "segment-list": e.segmentList, selected: e.versionHistoryStore.editorVisualMode }, on: { click: e.changeVisualMode } }), t(e.InChips, { staticClass: "new-tag", attrs: { id: "guido__view-options-new-tag", styles: "stroke", value: "chips", "close-button": !1, interactive: !1, text: e.trans("settings.new") } })], 1);
7
- }, r = [], a = /* @__PURE__ */ o(
8
- i,
9
- n,
3
+ import i from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var r = function() {
5
+ var t = this, o = t._self._c, e = t._self._setupProxy;
6
+ return o(e.InSegments, { attrs: { id: "guido__verion-history-view-option-selection", "with-icon": "", "segment-list": e.segmentList, selected: e.versionHistoryStore.editorVisualMode }, on: { click: e.changeVisualMode } });
7
+ }, n = [], _ = /* @__PURE__ */ i(
8
+ s,
10
9
  r,
10
+ n,
11
11
  !1,
12
12
  null,
13
- "d405ca59"
13
+ "421ffc13"
14
14
  );
15
- const d = a.exports;
15
+ const f = _.exports;
16
16
  export {
17
- d as default
17
+ f as default
18
18
  };
@@ -3,10 +3,10 @@ import { useTranslations as m } from "../../../../composables/useTranslations.js
3
3
  import { useVersionHistoryApi as l } from "../../../../composables/useVersionHistoryApi.js";
4
4
  import { useVersionHistoryStore as a } from "../../../../stores/version-history.js";
5
5
  import { getTooltipOptions as n } from "../../../../utils/tooltipUtils.js";
6
- import { InChips as c, InSegments as u } from "@useinsider/design-system-vue";
7
- const T = /* @__PURE__ */ p({
6
+ import { InSegments as c } from "@useinsider/design-system-vue";
7
+ const h = /* @__PURE__ */ p({
8
8
  __name: "ViewOptions",
9
- setup(_) {
9
+ setup(u) {
10
10
  const t = a(), { switchToDesktopPreview: e, switchToMobilePreview: i } = l(), o = m(), r = [
11
11
  {
12
12
  text: "",
@@ -33,9 +33,9 @@ const T = /* @__PURE__ */ p({
33
33
  return;
34
34
  }
35
35
  e();
36
- }, InSegments: u, InChips: c };
36
+ }, InSegments: c };
37
37
  }
38
38
  });
39
39
  export {
40
- T as default
40
+ h as default
41
41
  };
@@ -2,7 +2,7 @@ import type { FooterButtonGroupOptions } from '@@/Types/wrappers/wp-drawer';
2
2
  interface Props {
3
3
  id: string;
4
4
  className?: string;
5
- size?: 'small' | 'medium' | 'large';
5
+ size?: string;
6
6
  closeOnOutsideClick?: boolean;
7
7
  descriptionStatus?: boolean;
8
8
  descriptionText?: string;
@@ -10,11 +10,9 @@ interface Props {
10
10
  status: boolean;
11
11
  titleText: string;
12
12
  }
13
- declare var __VLS_12: {}, __VLS_14: {};
13
+ declare var __VLS_12: {};
14
14
  type __VLS_Slots = {} & {
15
- headerBottomSlot?: (props: typeof __VLS_12) => any;
16
- } & {
17
- default?: (props: typeof __VLS_14) => any;
15
+ default?: (props: typeof __VLS_12) => any;
18
16
  };
19
17
  declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
20
18
  className: string;
@@ -34,7 +32,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
34
32
  descriptionText: string;
35
33
  }>>>, {
36
34
  className: string;
37
- size: "small" | "medium" | "large";
35
+ size: string;
38
36
  closeOnOutsideClick: boolean;
39
37
  descriptionStatus: boolean;
40
38
  descriptionText: string;
@@ -1,6 +1,6 @@
1
1
  import r from "./WpDrawer.vue2.js";
2
2
  import s from "../../_virtual/_plugin-vue2_normalizer.js";
3
- var u = function() {
3
+ var i = function() {
4
4
  var t = this, n = t._self._c, e = t._self._setupProxy;
5
5
  return n(e.InDrawer, { class: t.className, attrs: { id: t.id, "footer-status": "", "close-on-outside-click": t.closeOnOutsideClick, "description-status": t.descriptionStatus, "description-text": t.descriptionText, "footer-button-group-options": t.footerButtonGroupOptions, size: t.size, status: t.status, "title-text": t.titleText }, on: { cancelOrBackButtonEvent: function(o) {
6
6
  return e.emit("cancelOrBackButtonEvent");
@@ -8,15 +8,13 @@ var u = function() {
8
8
  return e.emit("onCloseEvent");
9
9
  }, primaryButtonEvent: function(o) {
10
10
  return e.emit("primaryButtonEvent");
11
- } }, scopedSlots: t._u([t.$slots.headerBottomSlot ? { key: "headerBottomSlot", fn: function() {
12
- return [t._t("headerBottomSlot")];
13
- }, proxy: !0 } : null, { key: "contentSlot", fn: function() {
11
+ } }, scopedSlots: t._u([{ key: "contentSlot", fn: function() {
14
12
  return [n("div", [t._t("default")], 2)];
15
13
  }, proxy: !0 }], null, !0) });
16
- }, i = [], c = /* @__PURE__ */ s(
14
+ }, u = [], c = /* @__PURE__ */ s(
17
15
  r,
18
- u,
19
16
  i,
17
+ u,
20
18
  !1,
21
19
  null,
22
20
  null
@@ -1,49 +1,43 @@
1
1
  import S from "../static/styles/base.css.js";
2
- import m from "../static/styles/components/alert-message.css.js";
3
- import e from "../static/styles/components/amp-block.css.js";
2
+ import e from "../static/styles/components/alert-message.css.js";
3
+ import m from "../static/styles/components/amp-block.css.js";
4
4
  import i from "../static/styles/components/base-input.css.js";
5
5
  import p from "../static/styles/components/button-group.css.js";
6
6
  import n from "../static/styles/components/button.css.js";
7
- import C from "../static/styles/components/combobox.css.js";
8
- import s from "../static/styles/components/counter.css.js";
7
+ import s from "../static/styles/components/combobox.css.js";
8
+ import C from "../static/styles/components/counter.css.js";
9
9
  import f from "../static/styles/components/dropdown-menu.css.js";
10
- import a from "../static/styles/components/loader.css.js";
11
- import u from "../static/styles/components/narrow-panel.css.js";
12
- import c from "../static/styles/components/notification.css.js";
13
- import d from "../static/styles/components/popup.css.js";
14
- import l from "../static/styles/components/switcher.css.js";
15
- import h from "../static/styles/components/tabs.css.js";
16
- import w from "../static/styles/components/tools.css.js";
17
- import y from "../static/styles/components/version-history.css.js";
18
- import B from "../static/styles/components/wide-panel.css.js";
19
- import b from "../static/styles/variables.css.js";
20
- const A = [
21
- b,
10
+ import a from "../static/styles/components/narrow-panel.css.js";
11
+ import u from "../static/styles/components/switcher.css.js";
12
+ import c from "../static/styles/components/tabs.css.js";
13
+ import d from "../static/styles/components/tools.css.js";
14
+ import l from "../static/styles/components/version-history.css.js";
15
+ import h from "../static/styles/components/wide-panel.css.js";
16
+ import w from "../static/styles/variables.css.js";
17
+ const y = [
18
+ w,
22
19
  // Must be on top
23
20
  S,
24
21
  // Must be on top
25
- m,
26
22
  e,
23
+ m,
27
24
  i,
28
25
  p,
29
26
  n,
30
- C,
31
27
  s,
28
+ C,
32
29
  f,
33
30
  a,
34
31
  u,
35
32
  c,
36
33
  d,
37
34
  l,
38
- h,
39
- w,
40
- y,
41
- B
35
+ h
42
36
  ].join(`
43
37
 
44
- `), F = () => ({ importCss: () => {
38
+ `), N = () => ({ importCss: () => {
45
39
  const o = new CSSStyleSheet();
46
- o.replaceSync(A);
40
+ o.replaceSync(y);
47
41
  const r = document.querySelector("ui-editor");
48
42
  if (!r)
49
43
  return;
@@ -51,5 +45,5 @@ const A = [
51
45
  t && (t.adoptedStyleSheets = [o]);
52
46
  } });
53
47
  export {
54
- F as useCustomInterfaceAppearance
48
+ N as useCustomInterfaceAppearance
55
49
  };
@@ -1,25 +1,17 @@
1
- import { defaultHtmlCompilerRules as t } from "../config/compiler/htmlCompilerRules.js";
2
- import { outlookCompilerRules as p } from "../config/compiler/outlookCompilerRules.js";
3
- import { recommendationCompilerRules as s } from "../config/compiler/recommendationCompilerRules.js";
4
- import { socialCompilerRules as u } from "../config/compiler/socialCompilerRules.js";
5
- import { unsubscribeCompilerRules as n } from "../config/compiler/unsubscribeCompilerRules.js";
6
- import { createHtmlCompiler as c } from "../utils/htmlCompiler.js";
7
- import { useConfig as f } from "./useConfig.js";
8
- const h = () => {
9
- const { config: e } = f(), l = e.htmlCompilerRules || [], m = [
10
- ...!!e.ignoreDefaultHtmlCompilerRules ? [] : t,
11
- ...s,
12
- ...n,
13
- ...p,
14
- ...u,
1
+ import { defaultHtmlCompilerRules as r } from "../config/compiler/htmlCompilerRules.js";
2
+ import { createHtmlCompiler as p } from "../utils/htmlCompiler.js";
3
+ import { useConfig as s } from "./useConfig.js";
4
+ const R = () => {
5
+ const { config: e } = s(), l = e.htmlCompilerRules || [], t = [
6
+ ...!!e.ignoreDefaultHtmlCompilerRules ? [] : r,
15
7
  ...l.map((o, i) => ({
16
8
  ...o,
17
9
  priority: o.priority + 1e3 + i
18
10
  // Ensure additional rules run after default rules
19
11
  }))
20
- ], r = c(m);
21
- return { compileHtml: (o) => r.compile(o) };
12
+ ], m = p(t);
13
+ return { compileHtml: (o) => m.compile(o) };
22
14
  };
23
15
  export {
24
- h as useHtmlCompiler
16
+ R as useHtmlCompiler
25
17
  };
@@ -1,5 +1,4 @@
1
1
  export declare const usePartner: () => {
2
2
  getPartnerName: () => string;
3
3
  getProductType: () => number;
4
- isTestPartner: () => boolean;
5
4
  };
@@ -1,18 +1,11 @@
1
- import { TEST_PARTNER_LIST as r, DefaultProductType as o, ProductIds as n } from "../enums/defaults.js";
2
- const i = () => {
3
- const e = () => window.location.hostname.split(".")[0] || "";
4
- return {
5
- getPartnerName: e,
6
- getProductType: () => {
7
- const t = window.location.pathname.split("/").filter(Boolean)[0] || o;
8
- return n[t] || 0;
9
- },
10
- isTestPartner: () => {
11
- const t = e();
12
- return r.includes(t);
13
- }
14
- };
15
- };
1
+ import { DefaultProductType as e, ProductIds as o } from "../enums/defaults.js";
2
+ const c = () => ({
3
+ getPartnerName: () => window.location.hostname.split(".")[0] || "",
4
+ getProductType: () => {
5
+ const t = window.location.pathname.split("/").filter(Boolean)[0] || e;
6
+ return o[t] || 0;
7
+ }
8
+ });
16
9
  export {
17
- i as usePartner
10
+ c as usePartner
18
11
  };
@@ -1,26 +1,26 @@
1
1
  import { useEditorStore as n } from "../stores/editor.js";
2
- import { usePreviewStore as l } from "../stores/preview.js";
3
- import { useActionsApi as m } from "./useActionsApi.js";
4
- import { useCodeEditorApi as p } from "./useCodeEditorApi.js";
2
+ import { usePreviewStore as m } from "../stores/preview.js";
3
+ import { useActionsApi as p } from "./useActionsApi.js";
4
+ import { useCodeEditorApi as l } from "./useCodeEditorApi.js";
5
5
  const E = () => {
6
- const o = n(), e = l(), { closeCodeEditor: a } = p(), { getPreviewData: s } = m(), r = () => {
7
- o.isPreviewModeOpen = !1, e.$reset();
6
+ const i = n(), e = m(), { closeCodeEditor: s } = l(), { getPreviewData: a } = p(), r = () => {
7
+ e.isPreviewModeOpen = !1, e.$reset();
8
8
  };
9
9
  return {
10
10
  closePreviewMode: r,
11
11
  openPreviewMode: () => {
12
- o.isCodeEditorOpen && a(), o.isPreviewModeOpen = !0;
12
+ i.isCodeEditorOpen && s(), e.isPreviewModeOpen = !0;
13
13
  },
14
14
  loadPreviewData: async () => {
15
- if (!(o.loadingStatus || e.isLoaded)) {
16
- o.loadingStatus = !0;
15
+ if (!(e.isLoading || e.isLoaded)) {
16
+ e.isLoading = !0;
17
17
  try {
18
- const { html: t, ampHtml: i, ampErrors: d } = await s();
19
- e.templateHtml = t || "", e.ampHtml = i || "", e.ampErrors = d || [], e.setEmailFormat(i ? "AMP" : "html"), e.isLoaded = !0;
20
- } catch (t) {
21
- console.error("Failed to load preview data:", t), r();
18
+ const { html: o, ampHtml: t, ampErrors: d } = await a();
19
+ e.templateHtml = o || "", e.ampHtml = t || "", e.ampErrors = d || [], e.setEmailFormat(t ? "AMP" : "html"), e.isLoaded = !0;
20
+ } catch (o) {
21
+ console.error("Failed to load preview data:", o), r();
22
22
  } finally {
23
- o.loadingStatus = !1;
23
+ e.isLoading = !1;
24
24
  }
25
25
  }
26
26
  }
@@ -1,25 +1,21 @@
1
- import { useActionsApi as f } from "./useActionsApi.js";
2
- import { useCustomInterfaceAppearance as S } from "./useCustomInterfaceAppearance.js";
3
- import { useStripoEventHandler as E } from "./useStripoEventHandler.js";
4
- import { useToaster as C } from "./useToaster.js";
5
- import { displayConditions as y } from "../enums/displayConditions.js";
6
- import h from "../extensions/Blocks/Checkbox/extension.js";
7
- import w from "../extensions/Blocks/Unsubscribe/extension.js";
8
- import b from "../extensions/DynamicContent/extension.js";
9
- import { useStripoApi as _ } from "../services/stripoApi.js";
10
- import k from "../static/styles/customEditorStyle.css.js";
11
- import { useEditorStore as V } from "../stores/editor.js";
12
- import { dynamicContentToMergeTags as B } from "../utils/genericUtil.js";
13
- const q = (s) => {
14
- const { handleError: d } = C(), { getToken: c, getCustomFonts: u } = _(), { handleEvent: l } = E(), m = (r, i = []) => {
15
- const o = V(), { html: e, css: a, forceRecreate: g } = r;
1
+ import { useActionsApi as g } from "./useActionsApi.js";
2
+ import { useCustomInterfaceAppearance as f } from "./useCustomInterfaceAppearance.js";
3
+ import { useToaster as S } from "./useToaster.js";
4
+ import { displayConditions as C } from "../enums/displayConditions.js";
5
+ import y from "../extensions/DynamicContent/extension.js";
6
+ import { useStripoApi as E } from "../services/stripoApi.js";
7
+ import { useEditorStore as h } from "../stores/editor.js";
8
+ import { dynamicContentToMergeTags as w } from "../utils/genericUtil.js";
9
+ const M = (d) => {
10
+ const { handleError: a } = S(), { getToken: c, getCustomFonts: u } = E(), l = (e, r = []) => {
11
+ const i = h(), { html: t, css: s, forceRecreate: p } = e;
16
12
  window.UIEditor.initEditor(
17
13
  document.querySelector("#guido-editor"),
18
14
  {
19
- metadata: s,
20
- html: e,
21
- css: a,
22
- forceRecreate: g,
15
+ metadata: d,
16
+ html: t,
17
+ css: s,
18
+ forceRecreate: p,
23
19
  locale: "en",
24
20
  undoButtonSelector: "#guido__undo-button",
25
21
  redoButtonSelector: "#guido__redo-button",
@@ -29,82 +25,77 @@ const q = (s) => {
29
25
  customAppearanceMergetags: !0,
30
26
  customAppearanceMergetagsBorderColor: "#f1f3fe",
31
27
  customAppearanceMergetagsBackgroundColor: "#f1f3fe",
32
- customViewStyles: k,
28
+ customViewStyles: `
29
+ .esd-x, .esd-merge-tag {color: #0a2ecc !important; box-shadow: none !important;}
30
+ .esd-merge-tag {border: 1px solid #b5c1f1; border-radius: 4px !important;}
31
+ `,
33
32
  conditionsEnabled: !0,
34
33
  customConditionsEnabled: !0,
35
- conditionCategories: y,
34
+ conditionCategories: C,
36
35
  enableXSSSecurity: !0,
37
36
  messageSettingsEnabled: !1,
38
- selectBlockAfterDropFromSettingsPanel: !0,
39
37
  editorFonts: {
40
38
  showDefaultStandardFonts: !0,
41
39
  showDefaultNotStandardFonts: !0,
42
- customFonts: i
40
+ customFonts: r
43
41
  },
44
42
  mergeTags: [
45
43
  {
46
- entries: B(s.preselectedDynamicContentList)
44
+ entries: w(d.preselectedDynamicContentList)
47
45
  }
48
46
  ],
49
- async onTokenRefreshRequest(t) {
47
+ async onTokenRefreshRequest(o) {
50
48
  try {
51
49
  const n = await c();
52
- t(n);
50
+ o(n);
53
51
  } catch (n) {
54
- d(n, "Failed to refresh token");
52
+ a(n, "Failed to refresh token");
55
53
  }
56
54
  },
57
55
  onTemplateLoaded() {
58
56
  try {
59
- const { importCss: t } = S(), { activateCustomViewStyles: n } = f();
60
- t(), n(), s.onReady(), o.isStripoInitialized = !0, o.loadingStatus = !1, setTimeout(() => {
61
- o.hasChanges = !1;
62
- }, 1e3);
63
- } catch (t) {
64
- d(t, "Failed to load custom interface appearance");
57
+ const { importCss: o } = f(), { activateCustomViewStyles: n } = g();
58
+ o(), n();
59
+ } catch (o) {
60
+ a(o, "Failed to load custom interface appearance");
65
61
  }
66
62
  },
67
- onCodeEditorVisibilityChanged(t) {
68
- o.isCodeEditorOpen = t;
63
+ onCodeEditorVisibilityChanged(o) {
64
+ i.isCodeEditorOpen = o;
69
65
  },
70
- onEditorVisualModeChanged(t) {
71
- o.editorVisualMode = t.toLowerCase();
66
+ onEditorVisualModeChanged(o) {
67
+ i.editorVisualMode = o.toLowerCase();
72
68
  },
73
- onVersionHistoryVisibilityChanged(t) {
74
- o.isVersionHistoryOpen = t;
69
+ onVersionHistoryVisibilityChanged(o) {
70
+ i.isVersionHistoryOpen = o;
75
71
  },
76
72
  onDataChanged() {
77
- o.hasChanges = !0;
73
+ i.hasChanges = !0;
78
74
  },
79
- onEvent: l,
80
- ignoreClickOutsideSelectors: [
81
- "#guido-dynamic-content-modal",
82
- ".in-on-board-wrapper",
83
- ".in-drawer__container"
84
- ],
85
- extensions: [b, h, w]
75
+ ignoreClickOutsideSelectors: ["#guido-dynamic-content-modal"],
76
+ extensions: [y]
86
77
  }
87
78
  );
88
- }, p = (r) => new Promise((i, o) => {
79
+ }, m = (e) => new Promise((r, i) => {
89
80
  if (document.getElementById("UiEditorScript")) {
90
- r(), i();
81
+ e(), r();
91
82
  return;
92
83
  }
93
- const e = document.createElement("script");
94
- e.id = "UiEditorScript", e.type = "module", e.src = "https://plugins.stripo.email/resources/uieditor/latest/UIEditor.js", e.onload = () => {
95
- r(), i();
96
- }, e.onerror = () => {
97
- const a = new Error("Failed to load Stripo UIEditor script");
98
- o(a);
99
- }, document.body.appendChild(e);
84
+ const t = document.createElement("script");
85
+ t.id = "UiEditorScript", t.type = "module", t.src = "https://plugins.stripo.email/resources/uieditor/latest/UIEditor.js", t.onload = () => {
86
+ e(), r();
87
+ }, t.onerror = () => {
88
+ const s = new Error("Failed to load Stripo UIEditor script");
89
+ i(s);
90
+ }, document.body.appendChild(t);
100
91
  });
101
- return { initPlugin: async (r) => {
102
- await p(async () => {
103
- const i = await u();
104
- m(r, i);
92
+ return { initPlugin: async (e) => {
93
+ await m(async () => {
94
+ const r = await u();
95
+ l(e, r);
105
96
  });
106
97
  } };
107
98
  };
108
99
  export {
109
- q as useStripo
100
+ M as useStripo
110
101
  };
@@ -1,31 +1,31 @@
1
- import { ToasterTypeOptions as T } from "../enums/toaster.js";
2
- import { useToasterStore as u } from "../stores/toaster.js";
3
- import { watch as c } from "vue";
4
- const d = () => {
5
- const t = u();
6
- let o = null;
7
- const s = () => {
8
- o && (clearTimeout(o), o = null);
1
+ import { ToasterTypeOptions as u } from "../enums/toaster.js";
2
+ import { useToasterStore as T } from "../stores/toaster.js";
3
+ import { watch as c, onUnmounted as l } from "vue";
4
+ const p = () => {
5
+ const t = T();
6
+ let s = null;
7
+ const o = () => {
8
+ s && (clearTimeout(s), s = null);
9
9
  };
10
10
  function r(e = { message: "" }) {
11
- s(), t.hideToaster(), t.showToaster(e);
11
+ o(), t.hideToaster(), t.showToaster(e);
12
12
  }
13
- function i() {
14
- s(), t.hideToaster();
13
+ function n() {
14
+ o(), t.hideToaster();
15
15
  }
16
- function a(e, n) {
16
+ function i(e, a) {
17
17
  const m = e instanceof Error ? e.message : String(e);
18
- r({ type: T.Alert, message: `${n}: ${m}` });
18
+ r({ type: u.Alert, message: `${a}: ${m}` });
19
19
  }
20
20
  return c(
21
21
  () => t.shouldAutoHide,
22
22
  (e) => {
23
- s(), e && (o = setTimeout(() => {
24
- t.hideToaster(), s();
23
+ o(), e && (s = setTimeout(() => {
24
+ t.hideToaster(), o();
25
25
  }, 6e3));
26
26
  }
27
- ), { showToaster: r, hideToaster: i, handleError: a };
27
+ ), l(o), { showToaster: r, hideToaster: n, handleError: i };
28
28
  };
29
29
  export {
30
- d as useToaster
30
+ p as useToaster
31
31
  };
@@ -1,2 +0,0 @@
1
- import type { CompilerRule } from '@@/Types/html-compiler';
2
- export declare const outlookCompilerRules: CompilerRule[];
@@ -1,12 +1,7 @@
1
1
  import type { GuidoConfig } from '@@/Types/generic';
2
2
  export declare const DefaultGuidoConfig: GuidoConfig;
3
- export declare const TemplateTypes: {
4
- promotional: number;
5
- transactional: number;
6
- };
7
3
  export declare const DefaultProductType = "email";
8
4
  export declare const DefaultUsername = "Guido User";
9
- export declare const DefaultMessageType: number;
5
+ export declare const DefaultMessageType = 1;
10
6
  export declare const EditorType: number;
11
7
  export declare const ProductIds: Record<string, number>;
12
- export declare const TEST_PARTNER_LIST: string[];