@useinsider/guido 1.0.3-beta.3e280d4 → 1.0.3-beta.40a19f6

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 (344) hide show
  1. package/dist/{src/@types → @types}/generic.d.ts +0 -13
  2. package/dist/{src/components → components}/Guido.vue.d.ts +2 -2
  3. package/dist/components/Guido.vue.js +7 -7
  4. package/dist/components/Guido.vue2.js +68 -74
  5. package/dist/{src/components → components}/wrappers/WpDrawer.vue.d.ts +4 -6
  6. package/dist/components/wrappers/WpDrawer.vue.js +4 -6
  7. package/dist/composables/useStripo.js +33 -42
  8. package/dist/config/compiler/unsubscribeCompilerRules.js +29 -42
  9. package/dist/config/migrator/couponBlockMigrator.js +32 -32
  10. package/dist/config/migrator/index.d.ts +1 -0
  11. package/dist/config/migrator/index.js +6 -8
  12. package/dist/enums/defaults.js +3 -6
  13. package/dist/enums/unsubscribe.d.ts +15 -0
  14. package/dist/enums/unsubscribe.js +6 -43
  15. package/dist/{src/extensions → extensions}/Blocks/Checkbox/block.d.ts +0 -1
  16. package/dist/extensions/Blocks/Checkbox/block.js +24 -15
  17. package/dist/extensions/Blocks/Checkbox/control.js +67 -55
  18. package/dist/extensions/Blocks/Checkbox/extension.js +16 -5
  19. package/dist/extensions/Blocks/Checkbox/settingsPanel.js +25 -12
  20. package/dist/extensions/Blocks/Checkbox/template.js +16 -5
  21. package/dist/{src/extensions → extensions}/Blocks/CouponBlock/block.d.ts +0 -1
  22. package/dist/extensions/Blocks/CouponBlock/block.js +24 -14
  23. package/dist/extensions/Blocks/CouponBlock/extension.js +16 -5
  24. package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +29 -16
  25. package/dist/extensions/Blocks/CouponBlock/template.d.ts +3 -0
  26. package/dist/extensions/Blocks/CouponBlock/template.js +8 -6
  27. package/dist/{src/extensions → extensions}/Blocks/RadioButton/block.d.ts +0 -1
  28. package/dist/extensions/Blocks/RadioButton/block.js +22 -13
  29. package/dist/extensions/Blocks/RadioButton/control.js +52 -40
  30. package/dist/extensions/Blocks/RadioButton/extension.js +15 -4
  31. package/dist/extensions/Blocks/RadioButton/settingsPanel.js +26 -13
  32. package/dist/extensions/Blocks/RadioButton/template.js +24 -13
  33. package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/block.d.ts +0 -1
  34. package/dist/extensions/DynamicContent/dynamic-content.js +45 -31
  35. package/dist/extensions/DynamicContent/extension.js +18 -6
  36. package/dist/guido.css +1 -1
  37. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +75 -0
  38. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +77 -0
  39. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +123 -0
  40. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +7 -0
  41. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +7 -0
  42. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js +12 -0
  43. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +7 -0
  44. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +119 -0
  45. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +7 -0
  46. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +7 -0
  47. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +7 -0
  48. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js +12 -0
  49. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +7 -0
  50. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +7 -0
  51. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +7 -0
  52. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +24 -0
  53. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +24 -0
  54. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +11 -0
  55. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +33 -0
  56. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +22 -0
  57. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +40 -0
  58. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +5 -0
  59. package/dist/static/assets/icons/coupon.svg.js +4 -0
  60. package/dist/static/styles/customEditorStyle.css.js +0 -5
  61. package/dist/{src/stores → stores}/editor.d.ts +0 -21
  62. package/dist/stores/editor.js +1 -2
  63. package/dist/stores/unsubscribe.d.ts +8 -0
  64. package/dist/stores/unsubscribe.js +6 -126
  65. package/dist/{src/utils → utils}/genericUtil.d.ts +0 -1
  66. package/dist/utils/genericUtil.js +7 -8
  67. package/dist/utils/templatePreparation.js +16 -17
  68. package/package.json +3 -8
  69. package/dist/components/organisms/extensions/recommendation/FilterItem.vue.js +0 -28
  70. package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +0 -38
  71. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.js +0 -17
  72. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +0 -37
  73. package/dist/components/organisms/extensions/recommendation/Filters.vue.js +0 -20
  74. package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +0 -44
  75. package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.js +0 -17
  76. package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue2.js +0 -27
  77. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +0 -18
  78. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +0 -16
  79. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +0 -24
  80. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +0 -64
  81. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +0 -18
  82. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +0 -107
  83. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +0 -18
  84. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue2.js +0 -12
  85. package/dist/config/migrator/recommendationMigrator.js +0 -203
  86. package/dist/config/migrator/unsubscribeMigrator.js +0 -124
  87. package/dist/enums/extensions/recommendationBlock.js +0 -80
  88. package/dist/extensions/Blocks/Checkbox/iconsRegistry.js +0 -18
  89. package/dist/extensions/Blocks/CouponBlock/iconsRegistry.js +0 -33
  90. package/dist/extensions/Blocks/RadioButton/iconsRegistry.js +0 -14
  91. package/dist/extensions/Blocks/Recommendation/block.js +0 -30
  92. package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +0 -335
  93. package/dist/extensions/Blocks/Recommendation/constants.js +0 -5
  94. package/dist/extensions/Blocks/Recommendation/control.js +0 -305
  95. package/dist/extensions/Blocks/Recommendation/controls/button/align.js +0 -13
  96. package/dist/extensions/Blocks/Recommendation/controls/button/border.js +0 -13
  97. package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +0 -13
  98. package/dist/extensions/Blocks/Recommendation/controls/button/color.js +0 -13
  99. package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +0 -13
  100. package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +0 -13
  101. package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +0 -13
  102. package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +0 -13
  103. package/dist/extensions/Blocks/Recommendation/controls/button/text.js +0 -13
  104. package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +0 -13
  105. package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +0 -13
  106. package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +0 -13
  107. package/dist/extensions/Blocks/Recommendation/controls/image/size.js +0 -13
  108. package/dist/extensions/Blocks/Recommendation/controls/name/align.js +0 -13
  109. package/dist/extensions/Blocks/Recommendation/controls/name/background.js +0 -13
  110. package/dist/extensions/Blocks/Recommendation/controls/name/color.js +0 -13
  111. package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +0 -13
  112. package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +0 -13
  113. package/dist/extensions/Blocks/Recommendation/controls/name/size.js +0 -13
  114. package/dist/extensions/Blocks/Recommendation/controls/name/style.js +0 -13
  115. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +0 -13
  116. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +0 -13
  117. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +0 -13
  118. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +0 -13
  119. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +0 -13
  120. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +0 -13
  121. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +0 -13
  122. package/dist/extensions/Blocks/Recommendation/controls/price/align.js +0 -13
  123. package/dist/extensions/Blocks/Recommendation/controls/price/background.js +0 -13
  124. package/dist/extensions/Blocks/Recommendation/controls/price/color.js +0 -13
  125. package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +0 -13
  126. package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +0 -13
  127. package/dist/extensions/Blocks/Recommendation/controls/price/size.js +0 -13
  128. package/dist/extensions/Blocks/Recommendation/controls/price/style.js +0 -13
  129. package/dist/extensions/Blocks/Recommendation/extension.js +0 -45
  130. package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +0 -51
  131. package/dist/extensions/Blocks/Recommendation/recommendation.css.js +0 -19
  132. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +0 -117
  133. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +0 -266
  134. package/dist/extensions/Blocks/Recommendation/template.js +0 -365
  135. package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +0 -28
  136. package/dist/extensions/Blocks/Unsubscribe/block.js +0 -131
  137. package/dist/extensions/Blocks/Unsubscribe/control.js +0 -167
  138. package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +0 -42
  139. package/dist/extensions/Blocks/Unsubscribe/extension.js +0 -21
  140. package/dist/extensions/Blocks/Unsubscribe/iconsRegistry.js +0 -21
  141. package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +0 -35
  142. package/dist/extensions/Blocks/Unsubscribe/styles.css.js +0 -42
  143. package/dist/extensions/Blocks/Unsubscribe/tagRegistry.js +0 -10
  144. package/dist/extensions/Blocks/Unsubscribe/template.js +0 -22
  145. package/dist/extensions/Blocks/Unsubscribe/utils/constants.js +0 -11
  146. package/dist/extensions/Blocks/Unsubscribe/utils/utils.js +0 -6
  147. package/dist/extensions/Blocks/common-control.js +0 -184
  148. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +0 -866
  149. package/dist/package.json.js +0 -7
  150. package/dist/services/recommendationApi.js +0 -43
  151. package/dist/services/unsubscribeApi.js +0 -16
  152. package/dist/src/components/organisms/extensions/recommendation/FilterItem.vue.d.ts +0 -19
  153. package/dist/src/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts +0 -2
  154. package/dist/src/components/organisms/extensions/recommendation/Filters.vue.d.ts +0 -2
  155. package/dist/src/components/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +0 -16
  156. package/dist/src/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +0 -2
  157. package/dist/src/components/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +0 -2
  158. package/dist/src/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +0 -2
  159. package/dist/src/components/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +0 -2
  160. package/dist/src/config/migrator/index.d.ts +0 -1
  161. package/dist/src/config/migrator/recommendationMigrator.d.ts +0 -1
  162. package/dist/src/config/migrator/unsubscribeMigrator.d.ts +0 -1
  163. package/dist/src/enums/extensions/recommendationBlock.d.ts +0 -16
  164. package/dist/src/enums/unsubscribe.d.ts +0 -38
  165. package/dist/src/extensions/Blocks/Checkbox/iconsRegistry.d.ts +0 -4
  166. package/dist/src/extensions/Blocks/CouponBlock/iconsRegistry.d.ts +0 -4
  167. package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +0 -3
  168. package/dist/src/extensions/Blocks/RadioButton/iconsRegistry.d.ts +0 -4
  169. package/dist/src/extensions/Blocks/Recommendation/block.d.ts +0 -11
  170. package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +0 -65
  171. package/dist/src/extensions/Blocks/Recommendation/constants.d.ts +0 -51
  172. package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -35
  173. package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +0 -5
  174. package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +0 -5
  175. package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +0 -5
  176. package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +0 -5
  177. package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +0 -5
  178. package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +0 -5
  179. package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +0 -5
  180. package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +0 -5
  181. package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +0 -5
  182. package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +0 -5
  183. package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +0 -5
  184. package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +0 -5
  185. package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +0 -5
  186. package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +0 -5
  187. package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +0 -5
  188. package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +0 -5
  189. package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +0 -5
  190. package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +0 -5
  191. package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +0 -5
  192. package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +0 -5
  193. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +0 -5
  194. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +0 -5
  195. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +0 -5
  196. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +0 -5
  197. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +0 -5
  198. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +0 -5
  199. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +0 -5
  200. package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +0 -5
  201. package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +0 -5
  202. package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +0 -5
  203. package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +0 -5
  204. package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +0 -5
  205. package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +0 -5
  206. package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +0 -5
  207. package/dist/src/extensions/Blocks/Recommendation/iconsRegistry.d.ts +0 -4
  208. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +0 -555
  209. package/dist/src/extensions/Blocks/Recommendation/template.d.ts +0 -43
  210. package/dist/src/extensions/Blocks/Recommendation/utils/filterUtil.d.ts +0 -7
  211. package/dist/src/extensions/Blocks/Unsubscribe/block.d.ts +0 -32
  212. package/dist/src/extensions/Blocks/Unsubscribe/control.d.ts +0 -29
  213. package/dist/src/extensions/Blocks/Unsubscribe/elements/preview.d.ts +0 -11
  214. package/dist/src/extensions/Blocks/Unsubscribe/iconsRegistry.d.ts +0 -4
  215. package/dist/src/extensions/Blocks/Unsubscribe/settingsPanel.d.ts +0 -4
  216. package/dist/src/extensions/Blocks/Unsubscribe/tagRegistry.d.ts +0 -4
  217. package/dist/src/extensions/Blocks/Unsubscribe/template.d.ts +0 -12
  218. package/dist/src/extensions/Blocks/Unsubscribe/utils/constants.d.ts +0 -9
  219. package/dist/src/extensions/Blocks/Unsubscribe/utils/utils.d.ts +0 -7
  220. package/dist/src/extensions/Blocks/_Boilerplate/extension.d.ts +0 -2
  221. package/dist/src/extensions/Blocks/_Boilerplate/iconsRegistry.d.ts +0 -4
  222. package/dist/src/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +0 -4
  223. package/dist/src/extensions/Blocks/common-control.d.ts +0 -87
  224. package/dist/src/extensions/DynamicContent/extension.d.ts +0 -2
  225. package/dist/src/mock/api/recommendation.d.ts +0 -2
  226. package/dist/src/services/recommendationApi.d.ts +0 -6
  227. package/dist/src/services/unsubscribeApi.d.ts +0 -4
  228. package/dist/src/stores/config.d.ts +0 -96
  229. package/dist/src/stores/unsubscribe.d.ts +0 -256
  230. package/dist/stores/config.js +0 -17
  231. /package/dist/{src/@types → @types}/events.d.ts +0 -0
  232. /package/dist/{src/@types → @types}/save-as-template.d.ts +0 -0
  233. /package/dist/{src/App.vue.d.ts → App.vue.d.ts} +0 -0
  234. /package/dist/{src/components → components}/organisms/LoadingWrapper.vue.d.ts +0 -0
  235. /package/dist/{src/components → components}/organisms/base/Toaster.vue.d.ts +0 -0
  236. /package/dist/{src/components → components}/organisms/email-preview/PreviewContainer.vue.d.ts +0 -0
  237. /package/dist/{src/components → components}/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -0
  238. /package/dist/{src/components → components}/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -0
  239. /package/dist/{src/components → components}/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -0
  240. /package/dist/{src/components → components}/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -0
  241. /package/dist/{src/components → components}/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -0
  242. /package/dist/{src/components → components}/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -0
  243. /package/dist/{src/components → components}/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -0
  244. /package/dist/{src/components → components}/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -0
  245. /package/dist/{src/components → components}/organisms/header/HeaderWrapper.vue.d.ts +0 -0
  246. /package/dist/{src/components → components}/organisms/header/LeftSlot.vue.d.ts +0 -0
  247. /package/dist/{src/components → components}/organisms/header/MiddleSlot.vue.d.ts +0 -0
  248. /package/dist/{src/components → components}/organisms/header/RightSlot.vue.d.ts +0 -0
  249. /package/dist/{src/components → components}/organisms/header/ViewOptions.vue.d.ts +0 -0
  250. /package/dist/{src/components → components}/organisms/header/version-history/RestoreButton.vue.d.ts +0 -0
  251. /package/dist/{src/components → components}/organisms/header/version-history/VersionHistory.vue.d.ts +0 -0
  252. /package/dist/{src/components → components}/organisms/header/version-history/VersionHistoryItem.vue.d.ts +0 -0
  253. /package/dist/{src/components → components}/organisms/header/version-history/ViewOptions.vue.d.ts +0 -0
  254. /package/dist/{src/components → components}/organisms/onboarding/AMPOnboarding.vue.d.ts +0 -0
  255. /package/dist/{src/components → components}/organisms/onboarding/GenericOnboarding.vue.d.ts +0 -0
  256. /package/dist/{src/components → components}/organisms/onboarding/NewVersionPopup.vue.d.ts +0 -0
  257. /package/dist/{src/components → components}/organisms/onboarding/OnboardingWrapper.vue.d.ts +0 -0
  258. /package/dist/{src/components → components}/organisms/onboarding/TextBlockOnboarding.vue.d.ts +0 -0
  259. /package/dist/{src/components → components}/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +0 -0
  260. /package/dist/{src/components → components}/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +0 -0
  261. /package/dist/{src/components → components}/wrappers/WpModal.vue.d.ts +0 -0
  262. /package/dist/{src/composables → composables}/useActionsApi.d.ts +0 -0
  263. /package/dist/{src/composables → composables}/useApiExample.d.ts +0 -0
  264. /package/dist/{src/composables → composables}/useCodeEditorApi.d.ts +0 -0
  265. /package/dist/{src/composables → composables}/useConfig.d.ts +0 -0
  266. /package/dist/{src/composables → composables}/useCustomInterfaceAppearance.d.ts +0 -0
  267. /package/dist/{src/composables → composables}/useDebounce.d.ts +0 -0
  268. /package/dist/{src/composables → composables}/useExport.d.ts +0 -0
  269. /package/dist/{src/composables → composables}/useGuidoActions.d.ts +0 -0
  270. /package/dist/{src/composables → composables}/useHtmlCompiler.d.ts +0 -0
  271. /package/dist/{src/composables → composables}/useHtmlValidator.d.ts +0 -0
  272. /package/dist/{src/composables → composables}/useHttp.d.ts +0 -0
  273. /package/dist/{src/composables → composables}/usePartner.d.ts +0 -0
  274. /package/dist/{src/composables → composables}/usePreviewMode.d.ts +0 -0
  275. /package/dist/{src/composables → composables}/useProvideInject.d.ts +0 -0
  276. /package/dist/{src/composables → composables}/useRecommendation.d.ts +0 -0
  277. /package/dist/{src/composables → composables}/useResponsivePreview.d.ts +0 -0
  278. /package/dist/{src/composables → composables}/useSave.d.ts +0 -0
  279. /package/dist/{src/composables → composables}/useStripo.d.ts +0 -0
  280. /package/dist/{src/composables → composables}/useStripoEventHandler.d.ts +0 -0
  281. /package/dist/{src/composables → composables}/useToaster.d.ts +0 -0
  282. /package/dist/{src/composables → composables}/useTranslations.d.ts +0 -0
  283. /package/dist/{src/composables → composables}/useValidation.d.ts +0 -0
  284. /package/dist/{src/composables → composables}/useVersionHistoryApi.d.ts +0 -0
  285. /package/dist/{src/composables → composables}/validators/saveAsTemplate.d.ts +0 -0
  286. /package/dist/{src/config → config}/compiler/htmlCompilerRules.d.ts +0 -0
  287. /package/dist/{src/config → config}/compiler/outlookCompilerRules.d.ts +0 -0
  288. /package/dist/{src/config → config}/compiler/recommendationCompilerRules.d.ts +0 -0
  289. /package/dist/{src/config → config}/compiler/socialCompilerRules.d.ts +0 -0
  290. /package/dist/{src/config → config}/compiler/unsubscribeCompilerRules.d.ts +0 -0
  291. /package/dist/{src/config → config}/migrator/checkboxMigrator.d.ts +0 -0
  292. /package/dist/{src/config → config}/migrator/couponBlockMigrator.d.ts +0 -0
  293. /package/dist/{src/config → config}/migrator/radioButtonMigrator.d.ts +0 -0
  294. /package/dist/{src/enums → enums}/defaults.d.ts +0 -0
  295. /package/dist/{src/enums → enums}/displayConditions.d.ts +0 -0
  296. /package/dist/{src/enums → enums}/html-validator.d.ts +0 -0
  297. /package/dist/{src/enums → enums}/onboarding.d.ts +0 -0
  298. /package/dist/{src/enums → enums}/preview.d.ts +0 -0
  299. /package/dist/{src/enums → enums}/recommendation.d.ts +0 -0
  300. /package/dist/{src/enums → enums}/toaster.d.ts +0 -0
  301. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/control.d.ts +0 -0
  302. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/extension.d.ts +0 -0
  303. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/settingsPanel.d.ts +0 -0
  304. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/template.d.ts +0 -0
  305. /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/extension.d.ts +0 -0
  306. /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/settingsPanel.d.ts +0 -0
  307. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/control.d.ts +0 -0
  308. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/extension.d.ts +0 -0
  309. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/settingsPanel.d.ts +0 -0
  310. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/template.d.ts +0 -0
  311. /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/control.d.ts +0 -0
  312. /package/dist/{src/extensions/Blocks/Recommendation → extensions/Blocks/_Boilerplate}/extension.d.ts +0 -0
  313. /package/dist/{src/extensions/Blocks/Recommendation → extensions/Blocks/_Boilerplate}/settingsPanel.d.ts +0 -0
  314. /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/template.d.ts +0 -0
  315. /package/dist/{src/extensions → extensions}/DynamicContent/dynamic-content-modal.d.ts +0 -0
  316. /package/dist/{src/extensions → extensions}/DynamicContent/dynamic-content.d.ts +0 -0
  317. /package/dist/{src/extensions/Blocks/Unsubscribe → extensions/DynamicContent}/extension.d.ts +0 -0
  318. /package/dist/{src/library.d.ts → library.d.ts} +0 -0
  319. /package/dist/{src/main.d.ts → main.d.ts} +0 -0
  320. /package/dist/{src/mock → mock}/api/auth.d.ts +0 -0
  321. /package/dist/{src/mock → mock}/api/custom-fonts.d.ts +0 -0
  322. /package/dist/{src/mock → mock}/api/default-template.d.ts +0 -0
  323. /package/dist/{src/mock → mock}/api/template-library.d.ts +0 -0
  324. /package/dist/{src/mock → mock}/api/unsubscribe.d.ts +0 -0
  325. /package/dist/{src/mock → mock}/api/user-modal-state.d.ts +0 -0
  326. /package/dist/{src/mock → mock}/api/validator.d.ts +0 -0
  327. /package/dist/{src/mock → mock}/browser.d.ts +0 -0
  328. /package/dist/{src/mock → mock}/handlers.d.ts +0 -0
  329. /package/dist/{src/services → services}/onboardingApi.d.ts +0 -0
  330. /package/dist/{src/services → services}/stripoApi.d.ts +0 -0
  331. /package/dist/{src/services → services}/templateLibraryApi.d.ts +0 -0
  332. /package/dist/{src/stores → stores}/dynamic-content.d.ts +0 -0
  333. /package/dist/{src/stores → stores}/onboarding.d.ts +0 -0
  334. /package/dist/{src/stores → stores}/preview.d.ts +0 -0
  335. /package/dist/{src/stores → stores}/recommendation.d.ts +0 -0
  336. /package/dist/{src/stores → stores}/save-as-template.d.ts +0 -0
  337. /package/dist/{src/stores → stores}/toaster.d.ts +0 -0
  338. /package/dist/{src/stores → stores}/version-history.d.ts +0 -0
  339. /package/dist/{src/utils → utils}/arrayUtil.d.ts +0 -0
  340. /package/dist/{src/utils → utils}/base64.d.ts +0 -0
  341. /package/dist/{src/utils → utils}/dateUtil.d.ts +0 -0
  342. /package/dist/{src/utils → utils}/htmlCompiler.d.ts +0 -0
  343. /package/dist/{src/utils → utils}/templatePreparation.d.ts +0 -0
  344. /package/dist/{src/utils → utils}/tooltipUtils.d.ts +0 -0
@@ -1,7 +1,4 @@
1
1
  import type { CompilerRule } from './html-compiler';
2
- type Extensions = {
3
- unsubscribe?: boolean;
4
- };
5
2
  type Features = {
6
3
  dynamicContent?: boolean;
7
4
  saveAsTemplate?: boolean;
@@ -19,14 +16,8 @@ export type GuidoConfig = {
19
16
  useHeader?: boolean;
20
17
  emailHeader: EmailHeader;
21
18
  partner?: Partner;
22
- extensions?: Extensions;
23
19
  features?: Features;
24
20
  };
25
- export type TemplateConfig = {
26
- preselectedDynamicContentList?: DynamicContent[];
27
- selectedUnsubscribePages?: number[];
28
- variationId?: string;
29
- };
30
21
  export type DynamicContent = {
31
22
  value: string;
32
23
  text: string;
@@ -55,8 +46,4 @@ export type MergeTag = {
55
46
  label: string;
56
47
  value: string;
57
48
  };
58
- export type TextValueObject = {
59
- text: string;
60
- value: string;
61
- };
62
49
  export {};
@@ -1,4 +1,4 @@
1
- import type { DynamicContent, GuidoConfig, TemplateConfig } from '@@/Types/generic';
1
+ import type { DynamicContent, GuidoConfig } from '@@/Types/generic';
2
2
  import type { SavedTemplateDetails } from '@@/Types/stripo';
3
3
  type __VLS_Props = {
4
4
  templateId: string;
@@ -9,8 +9,8 @@ type __VLS_Props = {
9
9
  username?: string;
10
10
  html?: string;
11
11
  css?: string;
12
+ preselectedDynamicContentList: DynamicContent[];
12
13
  guidoConfig: GuidoConfig;
13
- templateConfig?: TemplateConfig;
14
14
  };
15
15
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {
16
16
  dynamicContent: {
@@ -1,18 +1,18 @@
1
- import a from "./Guido.vue2.js";
1
+ import o from "./Guido.vue2.js";
2
2
  /* empty css */
3
3
  import i from "../_virtual/_plugin-vue2_normalizer.js";
4
4
  var t = function() {
5
- var o = this, r = o._self._c, e = o._self._setupProxy;
6
- return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef" }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.FilterSelectionDrawer), r(e.SaveAsTemplateDrawer), e.isTestPartner() ? o._e() : r(e.OnboardingWrapper), r(e.UnsubscribeWrapper), r(e.LoadingWrapper)], 1);
5
+ var a = this, r = a._self._c, e = a._self._setupProxy;
6
+ return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef" }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : a._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.SaveAsTemplateDrawer), e.isTestPartner() ? a._e() : r(e.OnboardingWrapper), r(e.LoadingWrapper)], 1);
7
7
  }, s = [], d = /* @__PURE__ */ i(
8
- a,
8
+ o,
9
9
  t,
10
10
  s,
11
11
  !1,
12
12
  null,
13
- "e8d51dec"
13
+ "aca05338"
14
14
  );
15
- const l = d.exports;
15
+ const v = d.exports;
16
16
  export {
17
- l as default
17
+ v as default
18
18
  };
@@ -1,23 +1,19 @@
1
- import { defineComponent as R, defineAsyncComponent as I, ref as x, computed as U, watch as M, onMounted as z, onUnmounted as B } from "vue";
2
- import { provideGuidoActions as K } from "../composables/useGuidoActions.js";
3
- import { usePartner as O } from "../composables/usePartner.js";
4
- import { useStripo as j } from "../composables/useStripo.js";
5
- import { migrate as W } from "../config/migrator/index.js";
6
- import { DefaultUsername as q, DefaultMessageType as J, DefaultGuidoConfig as Q } from "../enums/defaults.js";
7
- import V from "./organisms/base/Toaster.vue.js";
8
- import X from "./organisms/extensions/recommendation/FilterSelectionDrawer.vue.js";
9
- import Y from "./organisms/header/HeaderWrapper.vue.js";
10
- import Z from "./organisms/LoadingWrapper.vue.js";
11
- import $ from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
12
- import ee from "./organisms/unsubscribe/UnsubscribeWrapper.vue.js";
13
- import { useStripoApi as oe } from "../services/stripoApi.js";
14
- import { useConfigStore as te } from "../stores/config.js";
15
- import { useDynamicContentStore as ne } from "../stores/dynamic-content.js";
16
- import { useEditorStore as re } from "../stores/editor.js";
17
- import { usePreviewStore as ae } from "../stores/preview.js";
18
- import { useUnsubscribeStore as se } from "../stores/unsubscribe.js";
19
- import ie from "../node_modules/lodash-es/merge.js";
20
- const Ge = /* @__PURE__ */ R({
1
+ import { defineComponent as H, defineAsyncComponent as E, ref as R, computed as G, watch as U, onMounted as x, onUnmounted as F } from "vue";
2
+ import { provideGuidoActions as M } from "../composables/useGuidoActions.js";
3
+ import { usePartner as z } from "../composables/usePartner.js";
4
+ import { useStripo as B } from "../composables/useStripo.js";
5
+ import { migrate as P } from "../config/migrator/index.js";
6
+ import { DefaultUsername as K, DefaultMessageType as O, DefaultGuidoConfig as j } from "../enums/defaults.js";
7
+ import q from "./organisms/base/Toaster.vue.js";
8
+ import J from "./organisms/header/HeaderWrapper.vue.js";
9
+ import Q from "./organisms/LoadingWrapper.vue.js";
10
+ import V from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
11
+ import { useStripoApi as X } from "../services/stripoApi.js";
12
+ import { useDynamicContentStore as Y } from "../stores/dynamic-content.js";
13
+ import { useEditorStore as Z } from "../stores/editor.js";
14
+ import { usePreviewStore as $ } from "../stores/preview.js";
15
+ import ee from "../node_modules/lodash-es/merge.js";
16
+ const ye = /* @__PURE__ */ H({
21
17
  __name: "Guido",
22
18
  props: {
23
19
  templateId: null,
@@ -28,86 +24,84 @@ const Ge = /* @__PURE__ */ R({
28
24
  username: null,
29
25
  html: null,
30
26
  css: null,
31
- guidoConfig: null,
32
- templateConfig: null
27
+ preselectedDynamicContentList: null,
28
+ guidoConfig: null
33
29
  },
34
30
  emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready"],
35
- setup(_, { expose: L, emit: t }) {
36
- const u = _, k = I(
31
+ setup(I, { expose: L, emit: o }) {
32
+ const r = I, _ = E(
37
33
  () => import("./organisms/email-preview/PreviewContainer.vue.js")
38
- ), A = I(
34
+ ), W = E(
39
35
  () => import("./organisms/onboarding/OnboardingWrapper.vue.js")
40
- ), l = x(), a = ne(), p = se(), g = te(), s = re(), N = ae(), n = U(() => s.hasChanges), { getPartnerName: f, getProductType: y, isTestPartner: F } = O(), v = () => {
36
+ ), d = R(), a = Y(), m = Z(), k = $(), t = G(() => m.hasChanges), i = r.preselectedDynamicContentList || [], { getPartnerName: l, getProductType: u, isTestPartner: A } = z(), p = () => {
41
37
  var e;
42
- return (e = l.value) == null ? void 0 : e.handleSave(!0);
38
+ return (e = d.value) == null ? void 0 : e.handleSave(!0);
43
39
  }, {
44
- templateId: i,
45
- userId: b,
46
- guidoConfig: C,
47
- templateConfig: o,
48
- html: r = "",
49
- css: h = "",
50
- partnerName: c = f(),
51
- productType: m = y(),
52
- messageType: S = J,
53
- username: w = q
54
- } = u, d = (o == null ? void 0 : o.preselectedDynamicContentList) || [];
55
- s.templateId = i, window.GuidoConfig = ie(Q, C), window.GuidoConfig.partner = {
56
- partnerName: c,
57
- productType: m,
58
- messageType: S
59
- }, g.templateConfig = o;
60
- const { initPlugin: D } = j({
61
- emailId: i,
62
- userId: b,
63
- username: w,
64
- partnerName: c,
65
- productType: m,
66
- preselectedDynamicContentList: d,
40
+ templateId: g,
41
+ userId: f,
42
+ guidoConfig: y,
43
+ html: n = "",
44
+ css: v = "",
45
+ partnerName: s = l(),
46
+ productType: c = u(),
47
+ messageType: C = O,
48
+ username: h = K
49
+ } = r;
50
+ window.GuidoConfig = ee(j, y), window.GuidoConfig.partner = {
51
+ partnerName: s,
52
+ productType: c,
53
+ messageType: C
54
+ };
55
+ const { initPlugin: w } = B({
56
+ emailId: g,
57
+ userId: f,
58
+ username: h,
59
+ partnerName: s,
60
+ productType: c,
61
+ preselectedDynamicContentList: i,
67
62
  onReady: () => {
68
- console.debug("guido:ready"), t("ready");
63
+ console.debug("guido:ready"), o("ready");
69
64
  }
70
- }), { getDefaultTemplate: T } = oe(), H = U(() => {
65
+ }), { getDefaultTemplate: S } = X(), N = G(() => {
71
66
  var e;
72
67
  return !((e = window.GuidoConfig) != null && e.useHeader);
73
68
  });
74
- K({
69
+ M({
75
70
  onBack: () => {
76
- console.debug("guido:back"), t("back");
71
+ console.debug("guido:back"), o("back");
77
72
  },
78
73
  onSaveStart: () => {
79
- console.debug("guido:save:start"), t("save:start");
74
+ console.debug("guido:save:start"), o("save:start");
80
75
  },
81
76
  onSaveComplete: (e) => {
82
- console.debug("guido:save:complete", e), t("save:complete", e);
77
+ console.debug("guido:save:complete", e), o("save:complete", e);
83
78
  }
84
79
  });
85
- const E = (e) => {
80
+ const b = (e) => {
86
81
  console.debug("dynamic-content:close", e), a.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
87
- }, P = () => {
82
+ }, D = () => {
88
83
  console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
89
84
  };
90
- return M(() => n.value, () => {
91
- t("on-change", n.value);
92
- }), z(async () => {
85
+ return U(() => t.value, () => {
86
+ o("on-change", t.value);
87
+ }), x(async () => {
93
88
  console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow");
94
89
  try {
95
- p.selectedUnsubscribePages = (o == null ? void 0 : o.selectedUnsubscribePages) || [];
96
90
  let e = {
97
- html: r && await W(r),
98
- css: h,
91
+ html: n && P(n),
92
+ css: v,
99
93
  forceRecreate: !0
100
94
  // TODO: It should be false for old templates. We will communicate with Stripo
101
95
  };
102
- e.html || (e = await T(), e.html = await W(e.html)), await D(e), a.selectedDynamicContentList = d;
96
+ e.html || (e = await S(), e.html = P(e.html)), await w(e), a.selectedDynamicContentList = i;
103
97
  } catch (e) {
104
98
  console.error("Failed to initialize Stripo editor:", e);
105
99
  }
106
100
  document.addEventListener("dynamic-content:open", (e) => {
107
- const G = e;
108
- console.debug("dynamic-content:open", G.detail), t("dynamic-content:open", G.detail);
101
+ const T = e;
102
+ console.debug("dynamic-content:open", T.detail), o("dynamic-content:open", T.detail);
109
103
  });
110
- }), B(() => {
104
+ }), F(() => {
111
105
  try {
112
106
  window.UIEditor.removeEditor();
113
107
  } catch {
@@ -115,14 +109,14 @@ const Ge = /* @__PURE__ */ R({
115
109
  }
116
110
  }), L({
117
111
  dynamicContent: {
118
- insert: E,
119
- close: P
112
+ insert: b,
113
+ close: D
120
114
  },
121
- hasChanges: n,
122
- saveSilent: v
123
- }), { __sfc: !0, PreviewContainer: k, OnboardingWrapper: A, headerWrapperRef: l, dynamicContentStore: a, unsubscribeStore: p, props: u, configStore: g, editorStore: s, previewStore: N, hasChanges: n, getPartnerName: f, getProductType: y, isTestPartner: F, saveSilent: v, templateId: i, userId: b, guidoConfig: C, templateConfig: o, html: r, css: h, partnerName: c, productType: m, messageType: S, username: w, preselectedDynamicContentList: d, emit: t, initPlugin: D, getDefaultTemplate: T, noHeader: H, insertDynamicContent: E, closeDynamicContent: P, Toaster: V, FilterSelectionDrawer: X, HeaderWrapper: Y, LoadingWrapper: Z, SaveAsTemplateDrawer: $, UnsubscribeWrapper: ee };
115
+ hasChanges: t,
116
+ saveSilent: p
117
+ }), { __sfc: !0, PreviewContainer: _, OnboardingWrapper: W, headerWrapperRef: d, dynamicContentStore: a, props: r, editorStore: m, previewStore: k, hasChanges: t, preselectedDynamicContentList: i, getPartnerName: l, getProductType: u, isTestPartner: A, saveSilent: p, templateId: g, userId: f, guidoConfig: y, html: n, css: v, partnerName: s, productType: c, messageType: C, username: h, emit: o, initPlugin: w, getDefaultTemplate: S, noHeader: N, insertDynamicContent: b, closeDynamicContent: D, Toaster: q, HeaderWrapper: J, LoadingWrapper: Q, SaveAsTemplateDrawer: V };
124
118
  }
125
119
  });
126
120
  export {
127
- Ge as default
121
+ ye as default
128
122
  };
@@ -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,29 +1,26 @@
1
1
  import { useActionsApi as f } from "./useActionsApi.js";
2
- import { useCustomInterfaceAppearance as E } from "./useCustomInterfaceAppearance.js";
3
- import { useStripoEventHandler as S } from "./useStripoEventHandler.js";
2
+ import { useCustomInterfaceAppearance as S } from "./useCustomInterfaceAppearance.js";
3
+ import { useStripoEventHandler as E } from "./useStripoEventHandler.js";
4
4
  import { useToaster as C } from "./useToaster.js";
5
5
  import { displayConditions as y } from "../enums/displayConditions.js";
6
6
  import h from "../extensions/Blocks/Checkbox/extension.js";
7
7
  import w from "../extensions/Blocks/CouponBlock/extension.js";
8
8
  import b from "../extensions/Blocks/RadioButton/extension.js";
9
- import V from "../extensions/Blocks/Recommendation/extension.js";
10
- import _ from "../extensions/Blocks/Unsubscribe/extension.js";
11
9
  import k from "../extensions/DynamicContent/extension.js";
12
10
  import { useStripoApi as B } from "../services/stripoApi.js";
13
- import x from "../static/styles/customEditorStyle.css.js";
14
- import { useEditorStore as F } from "../stores/editor.js";
15
- import { dynamicContentToMergeTags as A } from "../utils/genericUtil.js";
16
- import T from "../package.json.js";
17
- const G = (a) => {
18
- const { handleError: d } = C(), { getToken: u, getCustomFonts: m } = B(), { handleEvent: p } = S(), l = (r, i = []) => {
19
- const t = F(), { html: n, css: c, forceRecreate: s } = r;
11
+ import V from "../static/styles/customEditorStyle.css.js";
12
+ import { useEditorStore as _ } from "../stores/editor.js";
13
+ import { dynamicContentToMergeTags as F } from "../utils/genericUtil.js";
14
+ const j = (s) => {
15
+ const { handleError: d } = C(), { getToken: c, getCustomFonts: u } = B(), { handleEvent: l } = E(), m = (r, i = []) => {
16
+ const t = _(), { html: e, css: a, forceRecreate: g } = r;
20
17
  window.UIEditor.initEditor(
21
18
  document.querySelector("#guido-editor"),
22
19
  {
23
- metadata: a,
24
- html: n,
25
- css: c,
26
- forceRecreate: s,
20
+ metadata: s,
21
+ html: e,
22
+ css: a,
23
+ forceRecreate: g,
27
24
  locale: "en",
28
25
  undoButtonSelector: "#guido__undo-button",
29
26
  redoButtonSelector: "#guido__redo-button",
@@ -33,7 +30,7 @@ const G = (a) => {
33
30
  customAppearanceMergetags: !0,
34
31
  customAppearanceMergetagsBorderColor: "#f1f3fe",
35
32
  customAppearanceMergetagsBackgroundColor: "#f1f3fe",
36
- customViewStyles: x,
33
+ customViewStyles: V,
37
34
  conditionsEnabled: !0,
38
35
  customConditionsEnabled: !0,
39
36
  conditionCategories: y,
@@ -47,21 +44,21 @@ const G = (a) => {
47
44
  },
48
45
  mergeTags: [
49
46
  {
50
- entries: A(a.preselectedDynamicContentList)
47
+ entries: F(s.preselectedDynamicContentList)
51
48
  }
52
49
  ],
53
50
  async onTokenRefreshRequest(o) {
54
51
  try {
55
- const e = await u();
56
- o(e);
57
- } catch (e) {
58
- d(e, "Failed to refresh token");
52
+ const n = await c();
53
+ o(n);
54
+ } catch (n) {
55
+ d(n, "Failed to refresh token");
59
56
  }
60
57
  },
61
58
  onTemplateLoaded() {
62
59
  try {
63
- const { importCss: o } = E(), { activateCustomViewStyles: e } = f();
64
- o(), e(), a.onReady(), t.isStripoInitialized = !0, t.loadingStatus = !1, setTimeout(() => {
60
+ const { importCss: o } = S(), { activateCustomViewStyles: n } = f();
61
+ o(), n(), s.onReady(), t.isStripoInitialized = !0, t.loadingStatus = !1, setTimeout(() => {
65
62
  t.hasChanges = !1;
66
63
  }, 1e3);
67
64
  } catch (o) {
@@ -80,42 +77,36 @@ const G = (a) => {
80
77
  onDataChanged() {
81
78
  t.hasChanges = !0;
82
79
  },
83
- onEvent: p,
84
- ignoreClickOutsideSelectors: [
85
- "#guido-dynamic-content-modal",
86
- ".in-on-board-wrapper",
87
- ".in-drawer__container"
88
- ],
80
+ onEvent: l,
81
+ ignoreClickOutsideSelectors: ["#guido-dynamic-content-modal", ".in-on-board-wrapper"],
89
82
  extensions: [
90
83
  k,
91
84
  h,
92
85
  b,
93
- V,
94
- _,
95
86
  w
96
87
  ]
97
88
  }
98
89
  );
99
- }, g = (r) => new Promise((i, t) => {
100
- var e;
90
+ }, p = (r) => new Promise((i, t) => {
101
91
  if (document.getElementById("UiEditorScript")) {
102
92
  r(), i();
103
93
  return;
104
94
  }
105
- const n = T.guido, s = `https://email-static.useinsider.com/guido/${(e = n == null ? void 0 : n.stripo) == null ? void 0 : e.version}/UIEditor.js`, o = document.createElement("script");
106
- o.id = "UiEditorScript", o.type = "module", o.src = s, o.onload = () => {
95
+ const e = document.createElement("script");
96
+ e.id = "UiEditorScript", e.type = "module", e.src = "https://plugins.stripo.email/resources/uieditor/latest/UIEditor.js", e.onload = () => {
107
97
  r(), i();
108
- }, o.onerror = () => {
109
- t(new Error(`Failed to load Stripo UIEditor script from S3: ${s}`));
110
- }, document.body.appendChild(o);
98
+ }, e.onerror = () => {
99
+ const a = new Error("Failed to load Stripo UIEditor script");
100
+ t(a);
101
+ }, document.body.appendChild(e);
111
102
  });
112
103
  return { initPlugin: async (r) => {
113
- await g(async () => {
114
- const i = await m();
115
- l(r, i);
104
+ await p(async () => {
105
+ const i = await u();
106
+ m(r, i);
116
107
  });
117
108
  } };
118
109
  };
119
110
  export {
120
- G as useStripo
111
+ j as useStripo
121
112
  };
@@ -1,36 +1,23 @@
1
- import { usePartner as U } from "../../composables/usePartner.js";
2
- import { LINK_REGEXES as l, LINK_TYPES as b, URLS as f } from "../../enums/unsubscribe.js";
3
- import { parsePageList as B } from "../../extensions/Blocks/Unsubscribe/utils/utils.js";
4
- import { useConfigStore as N } from "../../stores/config.js";
5
- import { useUnsubscribeStore as I } from "../../stores/unsubscribe.js";
6
- const T = [
1
+ import { usePartner as m } from "../../composables/usePartner.js";
2
+ import { LINK_REGEXES as c, LINK_TYPES as p, URLS as E } from "../../enums/unsubscribe.js";
3
+ import { useUnsubscribeStore as b } from "../../stores/unsubscribe.js";
4
+ const S = [
7
5
  {
8
6
  id: "add-unsubscribe-link-values",
9
7
  description: "Adding unsubscribe link values",
10
8
  type: "custom",
11
- processor: (t) => {
12
- const { getPartnerName: i } = U(), a = N(), n = I(), u = a.getVariationId;
13
- if (!u)
14
- return t;
15
- let o = t;
16
- const e = `/${i()}/email/${u}?user={{iid}}`;
17
- return new DOMParser().parseFromString(o, "text/html").querySelectorAll(".unsubscribe-block-v2[data-unsubscribe-page-list]").forEach((p) => {
18
- var g;
19
- const d = p.getAttribute("data-unsubscribe-page-list");
20
- if (!d)
21
- return;
22
- const S = B(d), m = ((g = n.templates) == null ? void 0 : g.filter(
23
- (c) => S.includes(c.id)
24
- )) ?? [], R = m.some((c) => c.type === b.UNSUBSCRIBE_LINK_TYPE), _ = m.some((c) => c.type === b.PREFERENCES_LINK_TYPE), E = p.outerHTML;
25
- let s = E;
26
- R && (s = s.replace(
27
- l.GLOBAL_UNSUBSCRIBE_LINK_REGEX,
28
- f.UNSUBSCRIBE_URL + e
29
- )), _ && (s = s.replace(
30
- l.PREFERENCES_UNSUBSCRIBE_LINK_REGEX,
31
- f.PREFERENCES_URL + e
32
- )), s = s.replace(l.UNSUBSCRIBE_LINK_REGEX, ""), o = o.replace(E, s);
33
- }), o;
9
+ processor: (n) => {
10
+ var a, u;
11
+ const { getPartnerName: i } = m(), t = b();
12
+ let e = n;
13
+ const o = `/${i()}/email/0?user={{iid}}`, r = (a = t.selectedUnsubscribePages) == null ? void 0 : a.find((l) => l.type === p.UNSUBSCRIBE_LINK_TYPE), s = (u = t.selectedUnsubscribePages) == null ? void 0 : u.find((l) => l.type === p.PREFERENCES_LINK_TYPE);
14
+ return r && (e = e.replace(
15
+ c.GLOBAL_UNSUBSCRIBE_LINK_REGEX,
16
+ E.UNSUBSCRIBE_URL + o
17
+ )), s && (e = e.replace(
18
+ c.PREFERENCES_UNSUBSCRIBE_LINK_REGEX,
19
+ E.PREFERENCES_URL + o
20
+ )), e.replace(c.UNSUBSCRIBE_LINK_REGEX, "");
34
21
  },
35
22
  priority: 60
36
23
  },
@@ -38,7 +25,7 @@ const T = [
38
25
  id: "remove-data-ogsb-button-styles",
39
26
  description: "Removing styles like [data-ogsb] .es-button.es-button-123 { background: red; }",
40
27
  type: "regex",
41
- pattern: l.DATA_OGSB_BUTTON_CSS_REGEX,
28
+ pattern: c.DATA_OGSB_BUTTON_CSS_REGEX,
42
29
  replacement: "",
43
30
  flags: "g",
44
31
  priority: 61
@@ -47,25 +34,25 @@ const T = [
47
34
  id: "format-comment-braces",
48
35
  description: "Adding spaces around comment braces for proper formatting",
49
36
  type: "custom",
50
- processor: (t) => t.replace(/{#/g, "{ #").replace(/#}/g, "# }"),
37
+ processor: (n) => n.replace(/{#/g, "{ #").replace(/#}/g, "# }"),
51
38
  priority: 62
52
39
  },
53
40
  {
54
41
  id: "add-universal-link-flags",
55
42
  description: "Adding universal link flags",
56
43
  type: "custom",
57
- processor: (t) => {
58
- let i = t;
59
- const a = i.match(/<a[^>]+>(.*?)<\/a>/gm);
60
- return a && a.forEach((n) => {
61
- if (n.includes("insEmail=1"))
44
+ processor: (n) => {
45
+ let i = n;
46
+ const t = i.match(/<a[^>]+>(.*?)<\/a>/gm);
47
+ return t && t.forEach((e) => {
48
+ if (e.includes("insEmail=1"))
62
49
  return;
63
- if (n.match(/<a\s+(?:[^>]*?\s+)?href=(["'`”])(.*?)\1\s+(?:[^>]*?\s+)?universal=(["'`”])true\3/gm)) {
64
- const o = n.replace(/href=(["'`”])(.*?)\1/gm, (e) => {
65
- const r = e.slice(6, e.length - 1).trim();
66
- return e.includes("?") || e.includes("#") ? r.slice(-1) === "&" ? e.replace(r, `${r}insEmail=1`) : e.replace(r, `${r}&insEmail=1`) : e.replace(r, `${r}?insEmail=1`);
50
+ if (e.match(/<a\s+(?:[^>]*?\s+)?href=(["'`”])(.*?)\1\s+(?:[^>]*?\s+)?universal=(["'`”])true\3/gm)) {
51
+ const o = e.replace(/href=(["'`”])(.*?)\1/gm, (r) => {
52
+ const s = r.slice(6, r.length - 1).trim();
53
+ return r.includes("?") || r.includes("#") ? s.slice(-1) === "&" ? r.replace(s, `${s}insEmail=1`) : r.replace(s, `${s}&insEmail=1`) : r.replace(s, `${s}?insEmail=1`);
67
54
  });
68
- i = i.replace(n, o);
55
+ i = i.replace(e, o);
69
56
  }
70
57
  }), i;
71
58
  },
@@ -73,5 +60,5 @@ const T = [
73
60
  }
74
61
  ];
75
62
  export {
76
- T as unsubscribeCompilerRules
63
+ S as unsubscribeCompilerRules
77
64
  };