@useinsider/guido 1.0.3-beta.63633cd → 1.0.3-beta.63e6005

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 (252) hide show
  1. package/dist/{src/@types → @types}/generic.d.ts +1 -6
  2. package/dist/components/Guido.vue.js +7 -7
  3. package/dist/components/Guido.vue2.js +67 -69
  4. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +1 -1
  5. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +13 -12
  6. package/dist/composables/useStripo.js +39 -44
  7. package/dist/config/compiler/unsubscribeCompilerRules.js +26 -39
  8. package/dist/config/migrator/index.js +6 -7
  9. package/dist/config/migrator/unsubscribeMigrator.js +49 -61
  10. package/dist/{src/enums → enums}/unsubscribe.d.ts +0 -4
  11. package/dist/enums/unsubscribe.js +11 -15
  12. package/dist/{src/extensions → extensions}/Blocks/Checkbox/block.d.ts +0 -1
  13. package/dist/extensions/Blocks/Checkbox/block.js +24 -15
  14. package/dist/extensions/Blocks/Checkbox/control.js +67 -55
  15. package/dist/extensions/Blocks/Checkbox/extension.js +16 -5
  16. package/dist/extensions/Blocks/Checkbox/settingsPanel.js +25 -12
  17. package/dist/extensions/Blocks/Checkbox/template.js +16 -5
  18. package/dist/{src/extensions → extensions}/Blocks/RadioButton/block.d.ts +0 -1
  19. package/dist/extensions/Blocks/RadioButton/block.js +22 -13
  20. package/dist/extensions/Blocks/RadioButton/control.js +52 -40
  21. package/dist/extensions/Blocks/RadioButton/extension.js +15 -4
  22. package/dist/extensions/Blocks/RadioButton/settingsPanel.js +26 -13
  23. package/dist/extensions/Blocks/RadioButton/template.js +24 -13
  24. package/dist/{src/extensions → extensions}/Blocks/Unsubscribe/block.d.ts +0 -1
  25. package/dist/extensions/Blocks/Unsubscribe/block.js +41 -28
  26. package/dist/extensions/Blocks/Unsubscribe/control.js +56 -43
  27. package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +24 -12
  28. package/dist/extensions/Blocks/Unsubscribe/extension.js +21 -10
  29. package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +24 -27
  30. package/dist/extensions/Blocks/Unsubscribe/tagRegistry.js +18 -6
  31. package/dist/extensions/Blocks/Unsubscribe/template.js +20 -9
  32. package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/block.d.ts +0 -1
  33. package/dist/extensions/DynamicContent/dynamic-content.js +45 -31
  34. package/dist/extensions/DynamicContent/extension.js +18 -6
  35. package/dist/guido.css +1 -1
  36. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +75 -0
  37. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +77 -0
  38. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +123 -0
  39. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +7 -0
  40. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +7 -0
  41. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js +12 -0
  42. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +7 -0
  43. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +119 -0
  44. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +7 -0
  45. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +7 -0
  46. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +7 -0
  47. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js +12 -0
  48. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +7 -0
  49. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +7 -0
  50. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +7 -0
  51. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +25 -0
  52. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +24 -0
  53. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +11 -0
  54. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +33 -0
  55. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +22 -0
  56. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +40 -0
  57. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +5 -0
  58. package/dist/{src/stores → stores}/editor.d.ts +0 -21
  59. package/dist/stores/editor.js +1 -2
  60. package/dist/{src/stores → stores}/unsubscribe.d.ts +2 -72
  61. package/dist/stores/unsubscribe.js +42 -43
  62. package/dist/{src/utils → utils}/genericUtil.d.ts +0 -1
  63. package/dist/utils/genericUtil.js +7 -8
  64. package/dist/utils/templatePreparation.js +16 -17
  65. package/package.json +3 -8
  66. package/dist/components/organisms/extensions/recommendation/FilterItem.vue.js +0 -28
  67. package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +0 -38
  68. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.js +0 -17
  69. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +0 -37
  70. package/dist/components/organisms/extensions/recommendation/Filters.vue.js +0 -20
  71. package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +0 -44
  72. package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.js +0 -17
  73. package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue2.js +0 -27
  74. package/dist/config/migrator/couponBlockMigrator.js +0 -67
  75. package/dist/enums/extensions/recommendationBlock.js +0 -80
  76. package/dist/extensions/Blocks/Checkbox/iconsRegistry.js +0 -18
  77. package/dist/extensions/Blocks/CouponBlock/block.js +0 -33
  78. package/dist/extensions/Blocks/CouponBlock/extension.js +0 -8
  79. package/dist/extensions/Blocks/CouponBlock/iconsRegistry.js +0 -33
  80. package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +0 -24
  81. package/dist/extensions/Blocks/CouponBlock/template.js +0 -18
  82. package/dist/extensions/Blocks/RadioButton/iconsRegistry.js +0 -14
  83. package/dist/extensions/Blocks/Recommendation/block.js +0 -27
  84. package/dist/extensions/Blocks/Recommendation/control.js +0 -277
  85. package/dist/extensions/Blocks/Recommendation/extension.js +0 -10
  86. package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +0 -51
  87. package/dist/extensions/Blocks/Recommendation/recommendation.css.js +0 -19
  88. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +0 -32
  89. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +0 -266
  90. package/dist/extensions/Blocks/Recommendation/template.js +0 -200
  91. package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +0 -28
  92. package/dist/extensions/Blocks/Unsubscribe/iconsRegistry.js +0 -21
  93. package/dist/extensions/Blocks/common-control.js +0 -102
  94. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +0 -659
  95. package/dist/package.json.js +0 -7
  96. package/dist/services/recommendationApi.js +0 -43
  97. package/dist/src/components/organisms/extensions/recommendation/FilterItem.vue.d.ts +0 -19
  98. package/dist/src/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts +0 -2
  99. package/dist/src/components/organisms/extensions/recommendation/Filters.vue.d.ts +0 -2
  100. package/dist/src/components/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +0 -16
  101. package/dist/src/config/migrator/couponBlockMigrator.d.ts +0 -1
  102. package/dist/src/enums/extensions/recommendationBlock.d.ts +0 -16
  103. package/dist/src/extensions/Blocks/Checkbox/iconsRegistry.d.ts +0 -4
  104. package/dist/src/extensions/Blocks/CouponBlock/block.d.ts +0 -12
  105. package/dist/src/extensions/Blocks/CouponBlock/iconsRegistry.d.ts +0 -4
  106. package/dist/src/extensions/Blocks/CouponBlock/settingsPanel.d.ts +0 -4
  107. package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +0 -3
  108. package/dist/src/extensions/Blocks/RadioButton/iconsRegistry.d.ts +0 -4
  109. package/dist/src/extensions/Blocks/Recommendation/block.d.ts +0 -10
  110. package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -29
  111. package/dist/src/extensions/Blocks/Recommendation/iconsRegistry.d.ts +0 -4
  112. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +0 -555
  113. package/dist/src/extensions/Blocks/Recommendation/template.d.ts +0 -6
  114. package/dist/src/extensions/Blocks/Recommendation/utils/filterUtil.d.ts +0 -7
  115. package/dist/src/extensions/Blocks/Unsubscribe/iconsRegistry.d.ts +0 -4
  116. package/dist/src/extensions/Blocks/_Boilerplate/extension.d.ts +0 -2
  117. package/dist/src/extensions/Blocks/_Boilerplate/iconsRegistry.d.ts +0 -4
  118. package/dist/src/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +0 -4
  119. package/dist/src/extensions/Blocks/common-control.d.ts +0 -66
  120. package/dist/src/extensions/DynamicContent/extension.d.ts +0 -2
  121. package/dist/src/mock/api/recommendation.d.ts +0 -2
  122. package/dist/src/services/recommendationApi.d.ts +0 -6
  123. package/dist/src/stores/config.d.ts +0 -96
  124. package/dist/stores/config.js +0 -17
  125. /package/dist/{src/@types → @types}/events.d.ts +0 -0
  126. /package/dist/{src/@types → @types}/save-as-template.d.ts +0 -0
  127. /package/dist/{src/App.vue.d.ts → App.vue.d.ts} +0 -0
  128. /package/dist/{src/components → components}/Guido.vue.d.ts +0 -0
  129. /package/dist/{src/components → components}/organisms/LoadingWrapper.vue.d.ts +0 -0
  130. /package/dist/{src/components → components}/organisms/base/Toaster.vue.d.ts +0 -0
  131. /package/dist/{src/components → components}/organisms/email-preview/PreviewContainer.vue.d.ts +0 -0
  132. /package/dist/{src/components → components}/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -0
  133. /package/dist/{src/components → components}/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -0
  134. /package/dist/{src/components → components}/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -0
  135. /package/dist/{src/components → components}/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -0
  136. /package/dist/{src/components → components}/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -0
  137. /package/dist/{src/components → components}/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -0
  138. /package/dist/{src/components → components}/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -0
  139. /package/dist/{src/components → components}/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -0
  140. /package/dist/{src/components → components}/organisms/header/HeaderWrapper.vue.d.ts +0 -0
  141. /package/dist/{src/components → components}/organisms/header/LeftSlot.vue.d.ts +0 -0
  142. /package/dist/{src/components → components}/organisms/header/MiddleSlot.vue.d.ts +0 -0
  143. /package/dist/{src/components → components}/organisms/header/RightSlot.vue.d.ts +0 -0
  144. /package/dist/{src/components → components}/organisms/header/ViewOptions.vue.d.ts +0 -0
  145. /package/dist/{src/components → components}/organisms/header/version-history/RestoreButton.vue.d.ts +0 -0
  146. /package/dist/{src/components → components}/organisms/header/version-history/VersionHistory.vue.d.ts +0 -0
  147. /package/dist/{src/components → components}/organisms/header/version-history/VersionHistoryItem.vue.d.ts +0 -0
  148. /package/dist/{src/components → components}/organisms/header/version-history/ViewOptions.vue.d.ts +0 -0
  149. /package/dist/{src/components → components}/organisms/onboarding/AMPOnboarding.vue.d.ts +0 -0
  150. /package/dist/{src/components → components}/organisms/onboarding/GenericOnboarding.vue.d.ts +0 -0
  151. /package/dist/{src/components → components}/organisms/onboarding/NewVersionPopup.vue.d.ts +0 -0
  152. /package/dist/{src/components → components}/organisms/onboarding/OnboardingWrapper.vue.d.ts +0 -0
  153. /package/dist/{src/components → components}/organisms/onboarding/TextBlockOnboarding.vue.d.ts +0 -0
  154. /package/dist/{src/components → components}/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +0 -0
  155. /package/dist/{src/components → components}/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +0 -0
  156. /package/dist/{src/components → components}/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +0 -0
  157. /package/dist/{src/components → components}/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +0 -0
  158. /package/dist/{src/components → components}/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +0 -0
  159. /package/dist/{src/components → components}/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +0 -0
  160. /package/dist/{src/components → components}/wrappers/WpDrawer.vue.d.ts +0 -0
  161. /package/dist/{src/components → components}/wrappers/WpModal.vue.d.ts +0 -0
  162. /package/dist/{src/composables → composables}/useActionsApi.d.ts +0 -0
  163. /package/dist/{src/composables → composables}/useApiExample.d.ts +0 -0
  164. /package/dist/{src/composables → composables}/useCodeEditorApi.d.ts +0 -0
  165. /package/dist/{src/composables → composables}/useConfig.d.ts +0 -0
  166. /package/dist/{src/composables → composables}/useCustomInterfaceAppearance.d.ts +0 -0
  167. /package/dist/{src/composables → composables}/useDebounce.d.ts +0 -0
  168. /package/dist/{src/composables → composables}/useExport.d.ts +0 -0
  169. /package/dist/{src/composables → composables}/useGuidoActions.d.ts +0 -0
  170. /package/dist/{src/composables → composables}/useHtmlCompiler.d.ts +0 -0
  171. /package/dist/{src/composables → composables}/useHtmlValidator.d.ts +0 -0
  172. /package/dist/{src/composables → composables}/useHttp.d.ts +0 -0
  173. /package/dist/{src/composables → composables}/usePartner.d.ts +0 -0
  174. /package/dist/{src/composables → composables}/usePreviewMode.d.ts +0 -0
  175. /package/dist/{src/composables → composables}/useProvideInject.d.ts +0 -0
  176. /package/dist/{src/composables → composables}/useRecommendation.d.ts +0 -0
  177. /package/dist/{src/composables → composables}/useResponsivePreview.d.ts +0 -0
  178. /package/dist/{src/composables → composables}/useSave.d.ts +0 -0
  179. /package/dist/{src/composables → composables}/useStripo.d.ts +0 -0
  180. /package/dist/{src/composables → composables}/useStripoEventHandler.d.ts +0 -0
  181. /package/dist/{src/composables → composables}/useToaster.d.ts +0 -0
  182. /package/dist/{src/composables → composables}/useTranslations.d.ts +0 -0
  183. /package/dist/{src/composables → composables}/useValidation.d.ts +0 -0
  184. /package/dist/{src/composables → composables}/useVersionHistoryApi.d.ts +0 -0
  185. /package/dist/{src/composables → composables}/validators/saveAsTemplate.d.ts +0 -0
  186. /package/dist/{src/config → config}/compiler/htmlCompilerRules.d.ts +0 -0
  187. /package/dist/{src/config → config}/compiler/outlookCompilerRules.d.ts +0 -0
  188. /package/dist/{src/config → config}/compiler/recommendationCompilerRules.d.ts +0 -0
  189. /package/dist/{src/config → config}/compiler/socialCompilerRules.d.ts +0 -0
  190. /package/dist/{src/config → config}/compiler/unsubscribeCompilerRules.d.ts +0 -0
  191. /package/dist/{src/config → config}/migrator/checkboxMigrator.d.ts +0 -0
  192. /package/dist/{src/config → config}/migrator/index.d.ts +0 -0
  193. /package/dist/{src/config → config}/migrator/radioButtonMigrator.d.ts +0 -0
  194. /package/dist/{src/config → config}/migrator/unsubscribeMigrator.d.ts +0 -0
  195. /package/dist/{src/enums → enums}/defaults.d.ts +0 -0
  196. /package/dist/{src/enums → enums}/displayConditions.d.ts +0 -0
  197. /package/dist/{src/enums → enums}/html-validator.d.ts +0 -0
  198. /package/dist/{src/enums → enums}/onboarding.d.ts +0 -0
  199. /package/dist/{src/enums → enums}/preview.d.ts +0 -0
  200. /package/dist/{src/enums → enums}/recommendation.d.ts +0 -0
  201. /package/dist/{src/enums → enums}/toaster.d.ts +0 -0
  202. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/control.d.ts +0 -0
  203. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/extension.d.ts +0 -0
  204. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/settingsPanel.d.ts +0 -0
  205. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/template.d.ts +0 -0
  206. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/control.d.ts +0 -0
  207. /package/dist/{src/extensions/Blocks/CouponBlock → extensions/Blocks/RadioButton}/extension.d.ts +0 -0
  208. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/settingsPanel.d.ts +0 -0
  209. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/template.d.ts +0 -0
  210. /package/dist/{src/extensions → extensions}/Blocks/Unsubscribe/control.d.ts +0 -0
  211. /package/dist/{src/extensions → extensions}/Blocks/Unsubscribe/elements/preview.d.ts +0 -0
  212. /package/dist/{src/extensions/Blocks/RadioButton → extensions/Blocks/Unsubscribe}/extension.d.ts +0 -0
  213. /package/dist/{src/extensions/Blocks/Recommendation → extensions/Blocks/Unsubscribe}/settingsPanel.d.ts +0 -0
  214. /package/dist/{src/extensions → extensions}/Blocks/Unsubscribe/tagRegistry.d.ts +0 -0
  215. /package/dist/{src/extensions → extensions}/Blocks/Unsubscribe/template.d.ts +0 -0
  216. /package/dist/{src/extensions → extensions}/Blocks/Unsubscribe/utils/constants.d.ts +0 -0
  217. /package/dist/{src/extensions → extensions}/Blocks/Unsubscribe/utils/utils.d.ts +0 -0
  218. /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/control.d.ts +0 -0
  219. /package/dist/{src/extensions/Blocks/Recommendation → extensions/Blocks/_Boilerplate}/extension.d.ts +0 -0
  220. /package/dist/{src/extensions/Blocks/Unsubscribe → extensions/Blocks/_Boilerplate}/settingsPanel.d.ts +0 -0
  221. /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/template.d.ts +0 -0
  222. /package/dist/{src/extensions → extensions}/DynamicContent/dynamic-content-modal.d.ts +0 -0
  223. /package/dist/{src/extensions → extensions}/DynamicContent/dynamic-content.d.ts +0 -0
  224. /package/dist/{src/extensions/Blocks/Unsubscribe → extensions/DynamicContent}/extension.d.ts +0 -0
  225. /package/dist/{src/library.d.ts → library.d.ts} +0 -0
  226. /package/dist/{src/main.d.ts → main.d.ts} +0 -0
  227. /package/dist/{src/mock → mock}/api/auth.d.ts +0 -0
  228. /package/dist/{src/mock → mock}/api/custom-fonts.d.ts +0 -0
  229. /package/dist/{src/mock → mock}/api/default-template.d.ts +0 -0
  230. /package/dist/{src/mock → mock}/api/template-library.d.ts +0 -0
  231. /package/dist/{src/mock → mock}/api/unsubscribe.d.ts +0 -0
  232. /package/dist/{src/mock → mock}/api/user-modal-state.d.ts +0 -0
  233. /package/dist/{src/mock → mock}/api/validator.d.ts +0 -0
  234. /package/dist/{src/mock → mock}/browser.d.ts +0 -0
  235. /package/dist/{src/mock → mock}/handlers.d.ts +0 -0
  236. /package/dist/{src/services → services}/onboardingApi.d.ts +0 -0
  237. /package/dist/{src/services → services}/stripoApi.d.ts +0 -0
  238. /package/dist/{src/services → services}/templateLibraryApi.d.ts +0 -0
  239. /package/dist/{src/services → services}/unsubscribeApi.d.ts +0 -0
  240. /package/dist/{src/stores → stores}/dynamic-content.d.ts +0 -0
  241. /package/dist/{src/stores → stores}/onboarding.d.ts +0 -0
  242. /package/dist/{src/stores → stores}/preview.d.ts +0 -0
  243. /package/dist/{src/stores → stores}/recommendation.d.ts +0 -0
  244. /package/dist/{src/stores → stores}/save-as-template.d.ts +0 -0
  245. /package/dist/{src/stores → stores}/toaster.d.ts +0 -0
  246. /package/dist/{src/stores → stores}/version-history.d.ts +0 -0
  247. /package/dist/{src/utils → utils}/arrayUtil.d.ts +0 -0
  248. /package/dist/{src/utils → utils}/base64.d.ts +0 -0
  249. /package/dist/{src/utils → utils}/dateUtil.d.ts +0 -0
  250. /package/dist/{src/utils → utils}/htmlCompiler.d.ts +0 -0
  251. /package/dist/{src/utils → utils}/templatePreparation.d.ts +0 -0
  252. /package/dist/{src/utils → utils}/tooltipUtils.d.ts +0 -0
@@ -0,0 +1,40 @@
1
+ var u = Object.defineProperty;
2
+ var n = (t, e, a) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
+ var l = (t, e, a) => n(t, typeof e != "symbol" ? e + "" : e, a);
4
+ class s {
5
+ constructor() {
6
+ /** Provides access to editor functionalities specific to this UI element instance. */
7
+ l(this, "api");
8
+ }
9
+ /**
10
+ * Optional cleanup hook called when the UI element is being destroyed.
11
+ * Use this to remove event listeners or perform other cleanup tasks.
12
+ */
13
+ onDestroy() {
14
+ }
15
+ /**
16
+ * Optional method to get the current value of the UI element.
17
+ * Implement this if the element manages a state or value (e.g., input fields).
18
+ * @returns The current value of the element.
19
+ */
20
+ getValue() {
21
+ }
22
+ /**
23
+ * Optional method to set the value of the UI element.
24
+ * Implement this if the element manages a state or value and needs to be updated externally.
25
+ * @param value - The new value to set.
26
+ */
27
+ setValue(e) {
28
+ }
29
+ /**
30
+ * @description Optional hook called when one of the element's supported attributes ({@link UEAttr}) gets updated externally.
31
+ * Implement this to react to attribute changes (e.g., visibility, disabled state).
32
+ * @param name - The name of the attribute that was updated.
33
+ * @param value - The new value of the attribute.
34
+ */
35
+ onAttributeUpdated(e, a) {
36
+ }
37
+ }
38
+ export {
39
+ s as UIElement
40
+ };
@@ -0,0 +1,5 @@
1
+ class s {
2
+ }
3
+ export {
4
+ s as UIElementTagRegistry
5
+ };
@@ -7,7 +7,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
7
7
  editorVisualMode: string;
8
8
  hasChanges: boolean;
9
9
  isStripoInitialized: boolean;
10
- templateId: string;
11
10
  }, {
12
11
  isUndoButtonDisabled: (state: {
13
12
  loadingStatus: boolean;
@@ -18,7 +17,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
18
17
  editorVisualMode: string;
19
18
  hasChanges: boolean;
20
19
  isStripoInitialized: boolean;
21
- templateId: string;
22
20
  } & import("pinia").PiniaCustomStateProperties<{
23
21
  loadingStatus: boolean;
24
22
  isCodeEditorOpen: boolean;
@@ -28,7 +26,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
28
26
  editorVisualMode: string;
29
27
  hasChanges: boolean;
30
28
  isStripoInitialized: boolean;
31
- templateId: string;
32
29
  }>) => boolean;
33
30
  isRedoButtonDisabled: (state: {
34
31
  loadingStatus: boolean;
@@ -39,7 +36,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
39
36
  editorVisualMode: string;
40
37
  hasChanges: boolean;
41
38
  isStripoInitialized: boolean;
42
- templateId: string;
43
39
  } & import("pinia").PiniaCustomStateProperties<{
44
40
  loadingStatus: boolean;
45
41
  isCodeEditorOpen: boolean;
@@ -49,7 +45,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
49
45
  editorVisualMode: string;
50
46
  hasChanges: boolean;
51
47
  isStripoInitialized: boolean;
52
- templateId: string;
53
48
  }>) => boolean;
54
49
  isCodeEditorButtonDisabled: (state: {
55
50
  loadingStatus: boolean;
@@ -60,7 +55,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
60
55
  editorVisualMode: string;
61
56
  hasChanges: boolean;
62
57
  isStripoInitialized: boolean;
63
- templateId: string;
64
58
  } & import("pinia").PiniaCustomStateProperties<{
65
59
  loadingStatus: boolean;
66
60
  isCodeEditorOpen: boolean;
@@ -70,7 +64,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
70
64
  editorVisualMode: string;
71
65
  hasChanges: boolean;
72
66
  isStripoInitialized: boolean;
73
- templateId: string;
74
67
  }>) => boolean;
75
68
  isPreviewButtonDisabled: (state: {
76
69
  loadingStatus: boolean;
@@ -81,7 +74,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
81
74
  editorVisualMode: string;
82
75
  hasChanges: boolean;
83
76
  isStripoInitialized: boolean;
84
- templateId: string;
85
77
  } & import("pinia").PiniaCustomStateProperties<{
86
78
  loadingStatus: boolean;
87
79
  isCodeEditorOpen: boolean;
@@ -91,7 +83,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
91
83
  editorVisualMode: string;
92
84
  hasChanges: boolean;
93
85
  isStripoInitialized: boolean;
94
- templateId: string;
95
86
  }>) => boolean;
96
87
  isViewOptionsDisabled: (state: {
97
88
  loadingStatus: boolean;
@@ -102,7 +93,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
102
93
  editorVisualMode: string;
103
94
  hasChanges: boolean;
104
95
  isStripoInitialized: boolean;
105
- templateId: string;
106
96
  } & import("pinia").PiniaCustomStateProperties<{
107
97
  loadingStatus: boolean;
108
98
  isCodeEditorOpen: boolean;
@@ -112,7 +102,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
112
102
  editorVisualMode: string;
113
103
  hasChanges: boolean;
114
104
  isStripoInitialized: boolean;
115
- templateId: string;
116
105
  }>) => boolean;
117
106
  isVersionHistoryButtonDisabled: (state: {
118
107
  loadingStatus: boolean;
@@ -123,7 +112,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
123
112
  editorVisualMode: string;
124
113
  hasChanges: boolean;
125
114
  isStripoInitialized: boolean;
126
- templateId: string;
127
115
  } & import("pinia").PiniaCustomStateProperties<{
128
116
  loadingStatus: boolean;
129
117
  isCodeEditorOpen: boolean;
@@ -133,7 +121,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
133
121
  editorVisualMode: string;
134
122
  hasChanges: boolean;
135
123
  isStripoInitialized: boolean;
136
- templateId: string;
137
124
  }>) => boolean;
138
125
  isExportButtonDisabled: (state: {
139
126
  loadingStatus: boolean;
@@ -144,7 +131,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
144
131
  editorVisualMode: string;
145
132
  hasChanges: boolean;
146
133
  isStripoInitialized: boolean;
147
- templateId: string;
148
134
  } & import("pinia").PiniaCustomStateProperties<{
149
135
  loadingStatus: boolean;
150
136
  isCodeEditorOpen: boolean;
@@ -154,7 +140,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
154
140
  editorVisualMode: string;
155
141
  hasChanges: boolean;
156
142
  isStripoInitialized: boolean;
157
- templateId: string;
158
143
  }>) => boolean;
159
144
  isSaveAsButtonDisabled: (state: {
160
145
  loadingStatus: boolean;
@@ -165,7 +150,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
165
150
  editorVisualMode: string;
166
151
  hasChanges: boolean;
167
152
  isStripoInitialized: boolean;
168
- templateId: string;
169
153
  } & import("pinia").PiniaCustomStateProperties<{
170
154
  loadingStatus: boolean;
171
155
  isCodeEditorOpen: boolean;
@@ -175,7 +159,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
175
159
  editorVisualMode: string;
176
160
  hasChanges: boolean;
177
161
  isStripoInitialized: boolean;
178
- templateId: string;
179
162
  }>) => boolean;
180
163
  isTestButtonDisabled: (state: {
181
164
  loadingStatus: boolean;
@@ -186,7 +169,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
186
169
  editorVisualMode: string;
187
170
  hasChanges: boolean;
188
171
  isStripoInitialized: boolean;
189
- templateId: string;
190
172
  } & import("pinia").PiniaCustomStateProperties<{
191
173
  loadingStatus: boolean;
192
174
  isCodeEditorOpen: boolean;
@@ -196,7 +178,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
196
178
  editorVisualMode: string;
197
179
  hasChanges: boolean;
198
180
  isStripoInitialized: boolean;
199
- templateId: string;
200
181
  }>) => boolean;
201
182
  isSaveButtonDisabled: (state: {
202
183
  loadingStatus: boolean;
@@ -207,7 +188,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
207
188
  editorVisualMode: string;
208
189
  hasChanges: boolean;
209
190
  isStripoInitialized: boolean;
210
- templateId: string;
211
191
  } & import("pinia").PiniaCustomStateProperties<{
212
192
  loadingStatus: boolean;
213
193
  isCodeEditorOpen: boolean;
@@ -217,6 +197,5 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
217
197
  editorVisualMode: string;
218
198
  hasChanges: boolean;
219
199
  isStripoInitialized: boolean;
220
- templateId: string;
221
200
  }>) => boolean;
222
201
  }, {}>;
@@ -8,8 +8,7 @@ const o = e("editor", {
8
8
  isPreviewModeOpen: !1,
9
9
  editorVisualMode: "desktop",
10
10
  hasChanges: !1,
11
- isStripoInitialized: !1,
12
- templateId: ""
11
+ isStripoInitialized: !1
13
12
  }),
14
13
  getters: {
15
14
  // Middle Slot
@@ -96,54 +96,6 @@ export declare const useUnsubscribeStore: import("pinia").StoreDefinition<"unsub
96
96
  updatedAt: string;
97
97
  status: number;
98
98
  }[];
99
- getThumbnailByTemplateId: (state: {
100
- templates: {
101
- id: number;
102
- name: string;
103
- type: number;
104
- isVisible: number;
105
- html: string;
106
- originalHtml: string;
107
- css: string;
108
- thumbnail: string;
109
- createdAt: string;
110
- updatedAt: string;
111
- status: number;
112
- }[];
113
- selectedTemplates: Record<number, number>;
114
- selectedUnsubscribePages: number[];
115
- selectedCollectionType: number;
116
- activeType: number;
117
- pageSelectionUpdateStatus: boolean;
118
- pageSelectionDrawerStatus: boolean;
119
- typeSelectionDrawerStatus: boolean;
120
- isGlobalUnsubscribeDisabled: boolean;
121
- isSubscriptionPreferencesCenterDisabled: boolean;
122
- } & import("pinia").PiniaCustomStateProperties<StoreState>) => (id: number) => string;
123
- getSelectedUnsubscribePagesByCollection: (state: {
124
- templates: {
125
- id: number;
126
- name: string;
127
- type: number;
128
- isVisible: number;
129
- html: string;
130
- originalHtml: string;
131
- css: string;
132
- thumbnail: string;
133
- createdAt: string;
134
- updatedAt: string;
135
- status: number;
136
- }[];
137
- selectedTemplates: Record<number, number>;
138
- selectedUnsubscribePages: number[];
139
- selectedCollectionType: number;
140
- activeType: number;
141
- pageSelectionUpdateStatus: boolean;
142
- pageSelectionDrawerStatus: boolean;
143
- typeSelectionDrawerStatus: boolean;
144
- isGlobalUnsubscribeDisabled: boolean;
145
- isSubscriptionPreferencesCenterDisabled: boolean;
146
- } & import("pinia").PiniaCustomStateProperties<StoreState>) => (collectionType: number) => number[];
147
99
  isActiveTypeFirstInCollection: (state: {
148
100
  templates: {
149
101
  id: number;
@@ -216,30 +168,6 @@ export declare const useUnsubscribeStore: import("pinia").StoreDefinition<"unsub
216
168
  isGlobalUnsubscribeDisabled: boolean;
217
169
  isSubscriptionPreferencesCenterDisabled: boolean;
218
170
  } & import("pinia").PiniaCustomStateProperties<StoreState>) => Record<number, boolean>;
219
- unsubscribePagesStatus: (state: {
220
- templates: {
221
- id: number;
222
- name: string;
223
- type: number;
224
- isVisible: number;
225
- html: string;
226
- originalHtml: string;
227
- css: string;
228
- thumbnail: string;
229
- createdAt: string;
230
- updatedAt: string;
231
- status: number;
232
- }[];
233
- selectedTemplates: Record<number, number>;
234
- selectedUnsubscribePages: number[];
235
- selectedCollectionType: number;
236
- activeType: number;
237
- pageSelectionUpdateStatus: boolean;
238
- pageSelectionDrawerStatus: boolean;
239
- typeSelectionDrawerStatus: boolean;
240
- isGlobalUnsubscribeDisabled: boolean;
241
- isSubscriptionPreferencesCenterDisabled: boolean;
242
- } & import("pinia").PiniaCustomStateProperties<StoreState>) => boolean;
243
171
  }, {
244
172
  $reset(): void;
245
173
  fetchTemplates(): Promise<void>;
@@ -249,8 +177,10 @@ export declare const useUnsubscribeStore: import("pinia").StoreDefinition<"unsub
249
177
  setNextType(): void;
250
178
  setPreviousType(): void;
251
179
  loadSelectedTemplates(templates: number[]): void;
180
+ getThumbnailByTemplateId(id: number): string;
252
181
  getSelectedTemplatesByCollection(type: number): number[];
253
182
  addUnsubscribePages(pageIds: number[]): void;
254
183
  removeUnsubscribePages(pageIds: number[]): void;
184
+ getSelectedUnsubscribePagesByCollection(collectionType: number): number[];
255
185
  }>;
256
186
  export {};
@@ -1,62 +1,43 @@
1
- import { TYPE_COLLECTIONS as i, PAGE_TYPES as a } from "../enums/unsubscribe.js";
2
- import { useUnsubscribeApi as r } from "../services/unsubscribeApi.js";
3
- import { defineStore as d } from "pinia";
4
- const p = () => ({
1
+ import { TYPE_COLLECTIONS as l, PAGE_TYPES as o } from "../enums/unsubscribe.js";
2
+ import { useUnsubscribeApi as p } from "../services/unsubscribeApi.js";
3
+ import { defineStore as r } from "pinia";
4
+ const a = () => ({
5
5
  templates: [],
6
6
  selectedTemplates: {},
7
7
  selectedUnsubscribePages: [],
8
- selectedCollectionType: a.GLOBAL_UNSUBSCRIBE,
9
- activeType: a.GLOBAL_UNSUBSCRIBE,
8
+ selectedCollectionType: o.GLOBAL_UNSUBSCRIBE,
9
+ activeType: o.GLOBAL_UNSUBSCRIBE,
10
10
  pageSelectionUpdateStatus: !1,
11
11
  pageSelectionDrawerStatus: !1,
12
12
  typeSelectionDrawerStatus: !1,
13
13
  isGlobalUnsubscribeDisabled: !1,
14
14
  isSubscriptionPreferencesCenterDisabled: !1
15
- }), g = d("unsubscribe", {
16
- state: () => p(),
15
+ }), u = r("unsubscribe", {
16
+ state: () => a(),
17
17
  getters: {
18
- getSelectedCollection: (e) => i[e.selectedCollectionType],
18
+ getSelectedCollection: (e) => l[e.selectedCollectionType],
19
19
  getSelectedTemplateByActiveType: (e) => e.selectedTemplates[e.activeType],
20
20
  getTemplatesByActiveType: (e) => e.templates.filter((t) => t.type === e.activeType),
21
- getThumbnailByTemplateId: (e) => (t) => {
22
- var c;
23
- return ((c = e.templates.find((s) => s.id === t)) == null ? void 0 : c.thumbnail) ?? "";
24
- },
25
- getSelectedUnsubscribePagesByCollection: (e) => (t) => {
26
- const c = i[t];
27
- if (!c)
28
- return [];
29
- const s = /* @__PURE__ */ new Map();
30
- e.templates.forEach((n) => {
31
- s.set(n.id, n.type);
32
- });
33
- const l = new Set(c);
34
- return e.selectedUnsubscribePages.filter((n) => {
35
- const o = s.get(n);
36
- return o !== void 0 && l.has(o);
37
- });
38
- },
39
21
  isActiveTypeFirstInCollection: (e) => {
40
- const t = i[e.selectedCollectionType];
22
+ const t = l[e.selectedCollectionType];
41
23
  return e.activeType === t[0];
42
24
  },
43
25
  isActiveTypeLastInCollection: (e) => {
44
- const t = i[e.selectedCollectionType];
26
+ const t = l[e.selectedCollectionType];
45
27
  return e.activeType === t[t.length - 1];
46
28
  },
47
29
  hasTemplatesByCollectionType: (e) => {
48
30
  const t = {};
49
- return i[e.selectedCollectionType].forEach((s) => {
50
- t[s] = e.templates.some((l) => l.type === s);
31
+ return l[e.selectedCollectionType].forEach((s) => {
32
+ t[s] = e.templates.some((i) => i.type === s);
51
33
  }), t;
52
- },
53
- unsubscribePagesStatus: (e) => e.selectedUnsubscribePages.length > 0
34
+ }
54
35
  },
55
36
  actions: {
56
37
  $reset() {
57
38
  const { templates: e, selectedUnsubscribePages: t } = this;
58
39
  Object.assign(this, {
59
- ...p(),
40
+ ...a(),
60
41
  templates: e,
61
42
  selectedUnsubscribePages: t
62
43
  });
@@ -64,26 +45,26 @@ const p = () => ({
64
45
  async fetchTemplates() {
65
46
  if (this.templates.length)
66
47
  return;
67
- const { getUnsubscribePages: e } = r(), t = await e();
48
+ const { getUnsubscribePages: e } = p(), t = await e();
68
49
  this.templates = t;
69
50
  },
70
51
  setCollection(e) {
71
52
  this.selectedCollectionType = e;
72
- const t = i[e];
53
+ const t = l[e];
73
54
  if (t && t.length > 0) {
74
55
  [this.activeType] = t;
75
56
  const c = { ...this.selectedTemplates };
76
57
  t.forEach((s) => {
77
58
  if (!c[s]) {
78
- const l = this.templates.find((n) => n.type === s);
79
- l && (c[s] = l.id);
59
+ const i = this.templates.find((n) => n.type === s);
60
+ i && (c[s] = i.id);
80
61
  }
81
62
  }), this.selectedTemplates = c;
82
63
  }
83
64
  },
84
65
  setCollectionWithoutAutoSelection(e) {
85
66
  this.selectedCollectionType = e;
86
- const t = i[e];
67
+ const t = l[e];
87
68
  t && t.length > 0 && ([this.activeType] = t);
88
69
  },
89
70
  setSelectedTemplate(e) {
@@ -103,12 +84,16 @@ const p = () => ({
103
84
  loadSelectedTemplates(e) {
104
85
  const t = new Map(this.templates.map((s) => [s.id, s.type])), c = { ...this.selectedTemplates };
105
86
  e.forEach((s) => {
106
- const l = t.get(s);
107
- l !== void 0 && (c[l] = s);
87
+ const i = t.get(s);
88
+ i !== void 0 && (c[i] = s);
108
89
  }), this.selectedTemplates = c;
109
90
  },
91
+ getThumbnailByTemplateId(e) {
92
+ var t;
93
+ return ((t = this.templates.find((c) => c.id === e)) == null ? void 0 : t.thumbnail) ?? "";
94
+ },
110
95
  getSelectedTemplatesByCollection(e) {
111
- const t = i[e], c = [];
96
+ const t = l[e], c = [];
112
97
  return t.forEach((s) => {
113
98
  this.selectedTemplates[s] && c.push(this.selectedTemplates[s]);
114
99
  }), c;
@@ -121,9 +106,23 @@ const p = () => ({
121
106
  this.selectedUnsubscribePages = this.selectedUnsubscribePages.filter(
122
107
  (t) => !e.includes(t)
123
108
  );
109
+ },
110
+ getSelectedUnsubscribePagesByCollection(e) {
111
+ const t = l[e];
112
+ if (!t)
113
+ return [];
114
+ const c = /* @__PURE__ */ new Map();
115
+ this.templates.forEach((i) => {
116
+ c.set(i.id, i.type);
117
+ });
118
+ const s = new Set(t);
119
+ return this.selectedUnsubscribePages.filter((i) => {
120
+ const n = c.get(i);
121
+ return n !== void 0 && s.has(n);
122
+ });
124
123
  }
125
124
  }
126
125
  });
127
126
  export {
128
- g as useUnsubscribeStore
127
+ u as useUnsubscribeStore
129
128
  };
@@ -6,4 +6,3 @@ export declare const getCsrfToken: () => string;
6
6
  */
7
7
  export declare const getUrlParams: () => URLSearchParams;
8
8
  export declare const getUrlParam: (paramName: string, defaultValue?: string) => string;
9
- export declare const replaceString: (string?: string, values?: Record<string, string | number>, isRemoveEmptyValues?: boolean) => string;
@@ -1,15 +1,14 @@
1
- const o = (e) => e.map((a) => a.format ? {
1
+ const e = (l) => l.map((a) => a.format ? {
2
2
  label: `${a.text} | ${a.format.key}=${a.format.value}`,
3
3
  value: `{{${a.value}|${a.format.key}=${a.format.value}}}`
4
4
  } : {
5
5
  label: a.fallback ? `${a.text} | ${a.fallback}` : a.text,
6
6
  value: a.fallback ? `{{${a.value}|${a.fallback}}}` : `{{${a.value}}}`
7
- }), f = () => {
8
- var e;
9
- return ((e = document.head.querySelector('meta[name="csrf-token"]')) == null ? void 0 : e.getAttribute("content")) ?? "";
10
- }, $ = (e = "", a = {}, n = !1) => Object.entries(a).reduce((l, [t, r]) => n && (r === "" || r === null || r === void 0) ? l.replace(`&${t}={${t}}`, "") : l.replace(`{${t}}`, String(r)), e);
7
+ }), r = () => {
8
+ var l;
9
+ return ((l = document.head.querySelector('meta[name="csrf-token"]')) == null ? void 0 : l.getAttribute("content")) ?? "";
10
+ };
11
11
  export {
12
- o as dynamicContentToMergeTags,
13
- f as getCsrfToken,
14
- $ as replaceString
12
+ e as dynamicContentToMergeTags,
13
+ r as getCsrfToken
15
14
  };
@@ -1,15 +1,14 @@
1
- import { useActionsApi as S } from "../composables/useActionsApi.js";
2
- import { useHtmlCompiler as b } from "../composables/useHtmlCompiler.js";
1
+ import { useActionsApi as g } from "../composables/useActionsApi.js";
2
+ import { useHtmlCompiler as S } from "../composables/useHtmlCompiler.js";
3
3
  import { useDynamicContentStore as f } from "../stores/dynamic-content.js";
4
- import { useUnsubscribeStore as C } from "../stores/unsubscribe.js";
5
- const z = () => {
6
- const i = f(), t = C(), { getCompiledEmail: o, getTemplateData: s } = S(), { compileHtml: n } = b();
4
+ const H = () => {
5
+ const t = f(), { getCompiledEmail: i, getTemplateData: o } = g(), { compileHtml: n } = S();
7
6
  return {
8
7
  prepareTemplateDetails: async () => {
9
- const { html: a, ampHtml: m = "", ampErrors: r = [] } = await o({
8
+ const { html: a, ampHtml: s = "", ampErrors: m = [] } = await i({
10
9
  minimize: !0,
11
10
  resetDataSavedFlag: !1
12
- }), { html: c, css: l, syncModulesIds: p = [] } = await s(), { compiledHtml: u, stats: e, appliedRules: d } = n(a), g = i.getSelectedDynamicContentList;
11
+ }), { html: r, css: c, syncModulesIds: l = [] } = await o(), { compiledHtml: p, stats: e, appliedRules: d } = n(a), u = t.getSelectedDynamicContentList;
13
12
  return console.debug("HTML Compilation Stats:", {
14
13
  originalSize: e.originalSize,
15
14
  compiledSize: e.compiledSize,
@@ -17,25 +16,25 @@ const z = () => {
17
16
  appliedRules: d,
18
17
  executionTime: `${e.executionTime.toFixed(2)}ms`
19
18
  }), {
20
- dynamicContentList: g,
21
- compiledHtml: u,
22
- rawHtml: c,
23
- css: l,
24
- ampHtml: m,
25
- ampErrors: r,
26
- modules: p,
19
+ dynamicContentList: u,
20
+ compiledHtml: p,
21
+ rawHtml: r,
22
+ css: c,
23
+ ampHtml: s,
24
+ ampErrors: m,
25
+ modules: l,
27
26
  recommendation: {
28
27
  campaignUrls: {},
29
28
  configs: {}
30
29
  },
31
30
  unsubscribe: {
32
- status: t.unsubscribePagesStatus,
33
- config: t.selectedUnsubscribePages
31
+ status: !1,
32
+ config: []
34
33
  }
35
34
  };
36
35
  }
37
36
  };
38
37
  };
39
38
  export {
40
- z as useTemplatePreparation
39
+ H as useTemplatePreparation
41
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "1.0.3-beta.63633cd",
3
+ "version": "1.0.3-beta.63e6005",
4
4
  "description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
5
5
  "main": "./dist/guido.umd.cjs",
6
6
  "module": "./dist/library.js",
@@ -31,8 +31,8 @@
31
31
  "author": "",
32
32
  "license": "ISC",
33
33
  "dependencies": {
34
- "@stripoinc/ui-editor-extensions": "3.0.0",
35
- "@useinsider/design-system-vue": "0.14.20",
34
+ "@stripoinc/ui-editor-extensions": "2.0.2",
35
+ "@useinsider/design-system-vue": "0.14.8",
36
36
  "@vueuse/core": "11.3.0",
37
37
  "lodash-es": "4.17.21",
38
38
  "pinia": "2.3.1",
@@ -80,10 +80,5 @@
80
80
  },
81
81
  "msw": {
82
82
  "workerDirectory": "public"
83
- },
84
- "guido": {
85
- "stripo": {
86
- "version": "2.42.0"
87
- }
88
83
  }
89
84
  }
@@ -1,28 +0,0 @@
1
- import r from "./FilterItem.vue2.js";
2
- /* empty css */
3
- import i from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
- var l = function() {
5
- var a = this, e = a._self._c, t = a._self._setupProxy;
6
- return e("div", { staticClass: "d-f f-d-c w-1 gap-16" }, [e("div", { staticClass: "d-f a-i-c j-c-s-b pt-4", class: { "bor-t-s-s bor-t-w-1 bor-t-c-50": a.index === 0 } }, [e("p", [a._v(" " + a._s(t.trans("newsletter.filter")) + " " + a._s(a.index + 1) + " ")]), e(t.InButtonV2, { attrs: { id: "guido__delete-filter-group-button", "left-icon": "line-delete", styling: "text", type: "danger", "label-text-status": !1 }, on: { click: function(s) {
7
- return t.emit("delete-filter", t.props.filter);
8
- } } })], 1), e("div", { staticClass: "w-1 d-f a-i-s j-c-s-b gap-16" }, [e(t.InSelect, { staticClass: "w-2", attrs: { "disabled-status": "", "search-status": "", "button-status": !1, "label-text": t.trans("action-builder.filter-type"), options: t.filterTypeOptions, value: [t.filterTypeOptions[0]] } }), e(t.InSelect, { staticClass: "w-2", attrs: { id: "filter-item-input--attribute-type", "search-status": "", "static-position": "bottom right", "button-status": !1, "label-text": t.trans("condition.attribute"), options: t.store.getFilterList, value: [t.selectedAttributeType] }, on: { select: function(s) {
9
- return t.updateFilter({ text: "attribute", value: s.value });
10
- } } })], 1), e("div", { staticClass: "w-1 d-f a-i-s j-c-s-b gap-16" }, [e(t.InSelect, { staticClass: "w-2", attrs: { "button-status": !1, "label-text": t.trans("condition.operator"), options: t.getOperatorOptions(t.selectedAttributeType.type), value: [t.selectedOperatorType] }, on: { select: function(s) {
11
- return t.updateFilter({ text: "operator", value: s.value });
12
- } } }), e(t.InBasicTextInput, { staticClass: "w-2", attrs: { id: "filter-item-input--value", name: "imageUrl", type: "text", "character-counter-status": !1, "label-text": t.trans("condition.value"), "max-character-length": 25, "placeholder-text": t.trans("condition.enter-value-placeholder"), "tooltip-status": !1, value: decodeURIComponent(t.props.filter.value) }, on: { input: function(s) {
13
- t.updateFilter({ text: "value", value: encodeURIComponent(s) });
14
- } } })], 1), t.props.hasLogicAdapter ? e("div", { staticClass: "w-1 d-f a-i-c j-c-c p-r bor-b-s-s bor-b-w-1 bor-b-c-50 mt-4" }, [e(t.LogicAdapter, { staticClass: "p-a", attrs: { logic: t.props.filter.innerGroupOperator }, on: { change: function(s) {
15
- return t.updateFilter({ text: "innerGroupOperator", value: s });
16
- } } })], 1) : a._e()]);
17
- }, n = [], o = /* @__PURE__ */ i(
18
- r,
19
- l,
20
- n,
21
- !1,
22
- null,
23
- "6562e38c"
24
- );
25
- const f = o.exports;
26
- export {
27
- f as default
28
- };
@@ -1,38 +0,0 @@
1
- import { defineComponent as f, computed as i } from "vue";
2
- import { useTranslations as v } from "../../../../composables/useTranslations.js";
3
- import { getOperatorOptions as a } from "../../../../enums/extensions/recommendationBlock.js";
4
- import { useRecommendationExtensionStore as x } from "../../../../extensions/Blocks/Recommendation/store/recommendation.js";
5
- import { InButtonV2 as y, InSelect as F, InBasicTextInput as T } from "@useinsider/design-system-vue";
6
- import _ from "./LogicAdapter.vue.js";
7
- import { useDebounceFn as b } from "../../../../node_modules/@vueuse/shared/index.js";
8
- const h = /* @__PURE__ */ f({
9
- __name: "FilterItem",
10
- props: {
11
- filter: null,
12
- index: null,
13
- hasLogicAdapter: { type: Boolean }
14
- },
15
- emits: ["delete-filter"],
16
- setup(p, { emit: u }) {
17
- const e = p, n = v(), r = x(), m = [
18
- {
19
- text: n("email-editor.standard-filter"),
20
- value: "standardFilter"
21
- }
22
- ], s = i(() => e.filter.attribute || ""), l = i(() => r.getFilterList.find((t) => t.value === s.value) || { text: "", value: "", type: "" }), c = i(() => {
23
- var t;
24
- return a((t = l.value) == null ? void 0 : t.type).find((o) => o.value === e.filter.operator);
25
- }), d = b((t) => {
26
- console.debug("updateFilter: ", t);
27
- const o = {
28
- ...e.filter,
29
- [t.text]: t.value
30
- };
31
- r.updateFilter(o);
32
- }, 500);
33
- return { __sfc: !0, trans: n, store: r, props: e, filterTypeOptions: m, attributeType: s, selectedAttributeType: l, selectedOperatorType: c, emit: u, updateFilter: d, getOperatorOptions: a, InBasicTextInput: T, InSelect: F, InButtonV2: y, LogicAdapter: _ };
34
- }
35
- });
36
- export {
37
- h as default
38
- };