@useinsider/guido 1.0.3-beta.d6f4719 → 1.0.3-beta.d8a9e56

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 (236) hide show
  1. package/README.md +0 -126
  2. package/dist/{src/@types → @types}/generic.d.ts +0 -20
  3. package/dist/{src/components → components}/Guido.vue.d.ts +2 -2
  4. package/dist/components/Guido.vue.js +7 -7
  5. package/dist/components/Guido.vue2.js +68 -74
  6. package/dist/components/organisms/header/LeftSlot.vue.js +1 -1
  7. package/dist/components/organisms/header/LeftSlot.vue2.js +15 -16
  8. package/dist/components/organisms/header/RightSlot.vue.js +5 -5
  9. package/dist/components/organisms/header/RightSlot.vue2.js +19 -20
  10. package/dist/{src/components → components}/wrappers/WpDrawer.vue.d.ts +4 -6
  11. package/dist/components/wrappers/WpDrawer.vue.js +4 -6
  12. package/dist/{src/composables → composables}/usePartner.d.ts +0 -1
  13. package/dist/composables/usePartner.js +5 -9
  14. package/dist/composables/useStripo.js +42 -40
  15. package/dist/config/compiler/unsubscribeCompilerRules.js +29 -42
  16. package/dist/config/migrator/index.d.ts +1 -0
  17. package/dist/config/migrator/index.js +6 -7
  18. package/dist/enums/defaults.js +7 -15
  19. package/dist/enums/unsubscribe.d.ts +15 -0
  20. package/dist/enums/unsubscribe.js +6 -43
  21. package/dist/extensions/Blocks/Checkbox/control.js +53 -55
  22. package/dist/extensions/Blocks/RadioButton/control.js +42 -44
  23. package/dist/extensions/Blocks/RadioButton/template.js +6 -6
  24. package/dist/guido.css +1 -1
  25. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +71 -83
  26. package/dist/{src/stores → stores}/editor.d.ts +0 -21
  27. package/dist/stores/editor.js +1 -2
  28. package/dist/stores/unsubscribe.d.ts +8 -0
  29. package/dist/stores/unsubscribe.js +6 -126
  30. package/dist/{src/utils → utils}/genericUtil.d.ts +0 -1
  31. package/dist/utils/genericUtil.js +7 -8
  32. package/dist/utils/templatePreparation.js +16 -17
  33. package/package.json +2 -7
  34. package/dist/components/organisms/extensions/recommendation/FilterItem.vue.js +0 -28
  35. package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +0 -38
  36. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.js +0 -17
  37. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +0 -37
  38. package/dist/components/organisms/extensions/recommendation/Filters.vue.js +0 -20
  39. package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +0 -44
  40. package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.js +0 -17
  41. package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue2.js +0 -27
  42. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +0 -18
  43. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +0 -16
  44. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +0 -24
  45. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +0 -64
  46. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +0 -18
  47. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +0 -107
  48. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +0 -18
  49. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue2.js +0 -12
  50. package/dist/composables/useBlocksConfig.js +0 -58
  51. package/dist/config/migrator/unsubscribeMigrator.js +0 -124
  52. package/dist/enums/extensions/recommendationBlock.js +0 -80
  53. package/dist/extensions/Blocks/Recommendation/block.js +0 -27
  54. package/dist/extensions/Blocks/Recommendation/control.js +0 -277
  55. package/dist/extensions/Blocks/Recommendation/extension.js +0 -10
  56. package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +0 -51
  57. package/dist/extensions/Blocks/Recommendation/recommendation.css.js +0 -19
  58. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +0 -32
  59. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +0 -266
  60. package/dist/extensions/Blocks/Recommendation/template.js +0 -200
  61. package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +0 -28
  62. package/dist/extensions/Blocks/Unsubscribe/block.js +0 -131
  63. package/dist/extensions/Blocks/Unsubscribe/control.js +0 -167
  64. package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +0 -42
  65. package/dist/extensions/Blocks/Unsubscribe/extension.js +0 -21
  66. package/dist/extensions/Blocks/Unsubscribe/iconsRegistry.js +0 -21
  67. package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +0 -35
  68. package/dist/extensions/Blocks/Unsubscribe/styles.css.js +0 -42
  69. package/dist/extensions/Blocks/Unsubscribe/tagRegistry.js +0 -10
  70. package/dist/extensions/Blocks/Unsubscribe/template.js +0 -22
  71. package/dist/extensions/Blocks/Unsubscribe/utils/constants.js +0 -11
  72. package/dist/extensions/Blocks/Unsubscribe/utils/utils.js +0 -6
  73. package/dist/extensions/Blocks/common-control.js +0 -102
  74. package/dist/package.json.js +0 -7
  75. package/dist/services/recommendationApi.js +0 -43
  76. package/dist/services/unsubscribeApi.js +0 -16
  77. package/dist/src/components/organisms/extensions/recommendation/FilterItem.vue.d.ts +0 -19
  78. package/dist/src/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts +0 -2
  79. package/dist/src/components/organisms/extensions/recommendation/Filters.vue.d.ts +0 -2
  80. package/dist/src/components/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +0 -16
  81. package/dist/src/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +0 -2
  82. package/dist/src/components/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +0 -2
  83. package/dist/src/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +0 -2
  84. package/dist/src/components/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +0 -2
  85. package/dist/src/composables/useBlocksConfig.d.ts +0 -11
  86. package/dist/src/config/migrator/index.d.ts +0 -1
  87. package/dist/src/config/migrator/unsubscribeMigrator.d.ts +0 -1
  88. package/dist/src/enums/extensions/recommendationBlock.d.ts +0 -16
  89. package/dist/src/enums/unsubscribe.d.ts +0 -38
  90. package/dist/src/extensions/Blocks/Recommendation/block.d.ts +0 -10
  91. package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -29
  92. package/dist/src/extensions/Blocks/Recommendation/iconsRegistry.d.ts +0 -4
  93. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +0 -555
  94. package/dist/src/extensions/Blocks/Recommendation/template.d.ts +0 -6
  95. package/dist/src/extensions/Blocks/Recommendation/utils/filterUtil.d.ts +0 -7
  96. package/dist/src/extensions/Blocks/Unsubscribe/block.d.ts +0 -32
  97. package/dist/src/extensions/Blocks/Unsubscribe/control.d.ts +0 -29
  98. package/dist/src/extensions/Blocks/Unsubscribe/elements/preview.d.ts +0 -11
  99. package/dist/src/extensions/Blocks/Unsubscribe/iconsRegistry.d.ts +0 -4
  100. package/dist/src/extensions/Blocks/Unsubscribe/settingsPanel.d.ts +0 -4
  101. package/dist/src/extensions/Blocks/Unsubscribe/tagRegistry.d.ts +0 -4
  102. package/dist/src/extensions/Blocks/Unsubscribe/template.d.ts +0 -12
  103. package/dist/src/extensions/Blocks/Unsubscribe/utils/constants.d.ts +0 -9
  104. package/dist/src/extensions/Blocks/Unsubscribe/utils/utils.d.ts +0 -7
  105. package/dist/src/extensions/Blocks/_Boilerplate/extension.d.ts +0 -2
  106. package/dist/src/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +0 -4
  107. package/dist/src/extensions/Blocks/common-control.d.ts +0 -66
  108. package/dist/src/extensions/DynamicContent/extension.d.ts +0 -2
  109. package/dist/src/mock/api/recommendation.d.ts +0 -2
  110. package/dist/src/services/recommendationApi.d.ts +0 -6
  111. package/dist/src/services/unsubscribeApi.d.ts +0 -4
  112. package/dist/src/stores/config.d.ts +0 -100
  113. package/dist/src/stores/unsubscribe.d.ts +0 -256
  114. package/dist/stores/config.js +0 -17
  115. package/dist/{src/@types → @types}/events.d.ts +0 -0
  116. package/dist/{src/@types → @types}/save-as-template.d.ts +0 -0
  117. package/dist/{src/App.vue.d.ts → App.vue.d.ts} +0 -0
  118. package/dist/{src/components → components}/organisms/LoadingWrapper.vue.d.ts +0 -0
  119. package/dist/{src/components → components}/organisms/base/Toaster.vue.d.ts +0 -0
  120. package/dist/{src/components → components}/organisms/email-preview/PreviewContainer.vue.d.ts +0 -0
  121. package/dist/{src/components → components}/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -0
  122. package/dist/{src/components → components}/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -0
  123. package/dist/{src/components → components}/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -0
  124. package/dist/{src/components → components}/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -0
  125. package/dist/{src/components → components}/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -0
  126. package/dist/{src/components → components}/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -0
  127. package/dist/{src/components → components}/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -0
  128. package/dist/{src/components → components}/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -0
  129. package/dist/{src/components → components}/organisms/header/HeaderWrapper.vue.d.ts +0 -0
  130. package/dist/{src/components → components}/organisms/header/LeftSlot.vue.d.ts +0 -0
  131. package/dist/{src/components → components}/organisms/header/MiddleSlot.vue.d.ts +0 -0
  132. package/dist/{src/components → components}/organisms/header/RightSlot.vue.d.ts +0 -0
  133. package/dist/{src/components → components}/organisms/header/ViewOptions.vue.d.ts +0 -0
  134. package/dist/{src/components → components}/organisms/header/version-history/RestoreButton.vue.d.ts +0 -0
  135. package/dist/{src/components → components}/organisms/header/version-history/VersionHistory.vue.d.ts +0 -0
  136. package/dist/{src/components → components}/organisms/header/version-history/VersionHistoryItem.vue.d.ts +0 -0
  137. package/dist/{src/components → components}/organisms/header/version-history/ViewOptions.vue.d.ts +0 -0
  138. package/dist/{src/components → components}/organisms/onboarding/AMPOnboarding.vue.d.ts +0 -0
  139. package/dist/{src/components → components}/organisms/onboarding/GenericOnboarding.vue.d.ts +0 -0
  140. package/dist/{src/components → components}/organisms/onboarding/NewVersionPopup.vue.d.ts +0 -0
  141. package/dist/{src/components → components}/organisms/onboarding/OnboardingWrapper.vue.d.ts +0 -0
  142. package/dist/{src/components → components}/organisms/onboarding/TextBlockOnboarding.vue.d.ts +0 -0
  143. package/dist/{src/components → components}/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +0 -0
  144. package/dist/{src/components → components}/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +0 -0
  145. package/dist/{src/components → components}/wrappers/WpModal.vue.d.ts +1 -1
  146. /package/dist/{src/composables → composables}/useActionsApi.d.ts +0 -0
  147. /package/dist/{src/composables → composables}/useApiExample.d.ts +0 -0
  148. /package/dist/{src/composables → composables}/useCodeEditorApi.d.ts +0 -0
  149. /package/dist/{src/composables → composables}/useConfig.d.ts +0 -0
  150. /package/dist/{src/composables → composables}/useCustomInterfaceAppearance.d.ts +0 -0
  151. /package/dist/{src/composables → composables}/useDebounce.d.ts +0 -0
  152. /package/dist/{src/composables → composables}/useExport.d.ts +0 -0
  153. /package/dist/{src/composables → composables}/useGuidoActions.d.ts +0 -0
  154. /package/dist/{src/composables → composables}/useHtmlCompiler.d.ts +0 -0
  155. /package/dist/{src/composables → composables}/useHtmlValidator.d.ts +0 -0
  156. /package/dist/{src/composables → composables}/useHttp.d.ts +0 -0
  157. /package/dist/{src/composables → composables}/usePreviewMode.d.ts +0 -0
  158. /package/dist/{src/composables → composables}/useProvideInject.d.ts +0 -0
  159. /package/dist/{src/composables → composables}/useRecommendation.d.ts +0 -0
  160. /package/dist/{src/composables → composables}/useResponsivePreview.d.ts +0 -0
  161. /package/dist/{src/composables → composables}/useSave.d.ts +0 -0
  162. /package/dist/{src/composables → composables}/useStripo.d.ts +0 -0
  163. /package/dist/{src/composables → composables}/useStripoEventHandler.d.ts +0 -0
  164. /package/dist/{src/composables → composables}/useToaster.d.ts +0 -0
  165. /package/dist/{src/composables → composables}/useTranslations.d.ts +0 -0
  166. /package/dist/{src/composables → composables}/useValidation.d.ts +0 -0
  167. /package/dist/{src/composables → composables}/useVersionHistoryApi.d.ts +0 -0
  168. /package/dist/{src/composables → composables}/validators/saveAsTemplate.d.ts +0 -0
  169. /package/dist/{src/config → config}/compiler/htmlCompilerRules.d.ts +0 -0
  170. /package/dist/{src/config → config}/compiler/outlookCompilerRules.d.ts +0 -0
  171. /package/dist/{src/config → config}/compiler/recommendationCompilerRules.d.ts +0 -0
  172. /package/dist/{src/config → config}/compiler/socialCompilerRules.d.ts +0 -0
  173. /package/dist/{src/config → config}/compiler/unsubscribeCompilerRules.d.ts +0 -0
  174. /package/dist/{src/config → config}/migrator/checkboxMigrator.d.ts +0 -0
  175. /package/dist/{src/config → config}/migrator/couponBlockMigrator.d.ts +0 -0
  176. /package/dist/{src/config → config}/migrator/radioButtonMigrator.d.ts +0 -0
  177. /package/dist/{src/enums → enums}/defaults.d.ts +0 -0
  178. /package/dist/{src/enums → enums}/displayConditions.d.ts +0 -0
  179. /package/dist/{src/enums → enums}/html-validator.d.ts +0 -0
  180. /package/dist/{src/enums → enums}/onboarding.d.ts +0 -0
  181. /package/dist/{src/enums → enums}/preview.d.ts +0 -0
  182. /package/dist/{src/enums → enums}/recommendation.d.ts +0 -0
  183. /package/dist/{src/enums → enums}/toaster.d.ts +0 -0
  184. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/block.d.ts +0 -0
  185. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/control.d.ts +0 -0
  186. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/extension.d.ts +0 -0
  187. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/iconsRegistry.d.ts +0 -0
  188. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/settingsPanel.d.ts +0 -0
  189. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/template.d.ts +0 -0
  190. /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/block.d.ts +0 -0
  191. /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/extension.d.ts +0 -0
  192. /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/iconsRegistry.d.ts +0 -0
  193. /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/settingsPanel.d.ts +0 -0
  194. /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/template.d.ts +0 -0
  195. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/block.d.ts +0 -0
  196. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/control.d.ts +0 -0
  197. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/extension.d.ts +0 -0
  198. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/iconsRegistry.d.ts +0 -0
  199. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/settingsPanel.d.ts +0 -0
  200. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/template.d.ts +0 -0
  201. /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/block.d.ts +0 -0
  202. /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/control.d.ts +0 -0
  203. /package/dist/{src/extensions/Blocks/Recommendation → extensions/Blocks/_Boilerplate}/extension.d.ts +0 -0
  204. /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/iconsRegistry.d.ts +0 -0
  205. /package/dist/{src/extensions/Blocks/Recommendation → extensions/Blocks/_Boilerplate}/settingsPanel.d.ts +0 -0
  206. /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/template.d.ts +0 -0
  207. /package/dist/{src/extensions → extensions}/DynamicContent/dynamic-content-modal.d.ts +0 -0
  208. /package/dist/{src/extensions → extensions}/DynamicContent/dynamic-content.d.ts +0 -0
  209. /package/dist/{src/extensions/Blocks/Unsubscribe → extensions/DynamicContent}/extension.d.ts +0 -0
  210. /package/dist/{src/library.d.ts → library.d.ts} +0 -0
  211. /package/dist/{src/main.d.ts → main.d.ts} +0 -0
  212. /package/dist/{src/mock → mock}/api/auth.d.ts +0 -0
  213. /package/dist/{src/mock → mock}/api/custom-fonts.d.ts +0 -0
  214. /package/dist/{src/mock → mock}/api/default-template.d.ts +0 -0
  215. /package/dist/{src/mock → mock}/api/template-library.d.ts +0 -0
  216. /package/dist/{src/mock → mock}/api/unsubscribe.d.ts +0 -0
  217. /package/dist/{src/mock → mock}/api/user-modal-state.d.ts +0 -0
  218. /package/dist/{src/mock → mock}/api/validator.d.ts +0 -0
  219. /package/dist/{src/mock → mock}/browser.d.ts +0 -0
  220. /package/dist/{src/mock → mock}/handlers.d.ts +0 -0
  221. /package/dist/{src/services → services}/onboardingApi.d.ts +0 -0
  222. /package/dist/{src/services → services}/stripoApi.d.ts +0 -0
  223. /package/dist/{src/services → services}/templateLibraryApi.d.ts +0 -0
  224. /package/dist/{src/stores → stores}/dynamic-content.d.ts +0 -0
  225. /package/dist/{src/stores → stores}/onboarding.d.ts +0 -0
  226. /package/dist/{src/stores → stores}/preview.d.ts +0 -0
  227. /package/dist/{src/stores → stores}/recommendation.d.ts +0 -0
  228. /package/dist/{src/stores → stores}/save-as-template.d.ts +0 -0
  229. /package/dist/{src/stores → stores}/toaster.d.ts +0 -0
  230. /package/dist/{src/stores → stores}/version-history.d.ts +0 -0
  231. /package/dist/{src/utils → utils}/arrayUtil.d.ts +0 -0
  232. /package/dist/{src/utils → utils}/base64.d.ts +0 -0
  233. /package/dist/{src/utils → utils}/dateUtil.d.ts +0 -0
  234. /package/dist/{src/utils → utils}/htmlCompiler.d.ts +0 -0
  235. /package/dist/{src/utils → utils}/templatePreparation.d.ts +0 -0
  236. /package/dist/{src/utils → utils}/tooltipUtils.d.ts +0 -0
@@ -1,42 +0,0 @@
1
- const n = `/* Unsubscribe Extension Styles */
2
-
3
- .unsubscribe-preview-container {
4
- /* Container styling handled by parent classes */
5
- }
6
-
7
- .unsubscribe-preview-header {
8
- display: flex;
9
- justify-content: space-between;
10
- margin-bottom: 8px;
11
- }
12
-
13
- .unsubscribe-preview-title {
14
- font-weight: 500;
15
- }
16
-
17
- .unsubscribe-preview-controls {
18
- display: flex;
19
- gap: 2px;
20
- align-items: center;
21
- color: #666;
22
- }
23
-
24
- /* Preview image container and image */
25
- .unsubscribe-preview-image-container {
26
- width: 100%;
27
- max-height: 400px;
28
- overflow: hidden;
29
- display: flex;
30
- align-items: center;
31
- justify-content: center;
32
- }
33
-
34
- .unsubscribe-preview-image {
35
- object-fit: cover;
36
- width: 100%;
37
- height: auto;
38
- }
39
- `;
40
- export {
41
- n as default
42
- };
@@ -1,10 +0,0 @@
1
- import { UIElementTagRegistry as s } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { PREVIEW_UI_ELEMENT_ID as e } from "./elements/preview.js";
3
- class m extends s {
4
- registerUiElements(r) {
5
- r[e] = e;
6
- }
7
- }
8
- export {
9
- m as UnsubscribeTagRegistry
10
- };
@@ -1,22 +0,0 @@
1
- import { BlockType as e } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- const s = "unsubscribe", n = "{{ins-unsubscribe-link}}", t = `
3
- <${e.BLOCK_TEXT}
4
- class="unsubscribe-block-v2 esd-block-unsubscribe es-p0"
5
- align="center"
6
- data-unsubscribe-page-type=""
7
- data-unsubscribe-page-list=""
8
- >
9
- <p>You can <strong><a
10
- href="${n}"
11
- class="unsubscribe-link"
12
- target="_blank"
13
- data-unsubscribe-link="true"
14
- >${s}</a></strong> from our emails, if you need to.</p>
15
- </${e.BLOCK_TEXT}>
16
- `;
17
- function r() {
18
- return t;
19
- }
20
- export {
21
- r as getDefaultTemplate
22
- };
@@ -1,11 +0,0 @@
1
- const s = {
2
- SELECT: "unsubscribe:select",
3
- CANCEL: "unsubscribe:cancel"
4
- }, e = {
5
- PAGE_TYPE: "data-unsubscribe-page-type",
6
- PAGE_LIST: "data-unsubscribe-page-list"
7
- };
8
- export {
9
- e as DATA_ATTRIBUTES,
10
- s as UNSUBSCRIBE_EVENTS
11
- };
@@ -1,6 +0,0 @@
1
- function t(e) {
2
- return e.split(",").map((r) => Number(r.trim())).filter((r) => !Number.isNaN(r) && r > 0);
3
- }
4
- export {
5
- t as parsePageList
6
- };
@@ -1,102 +0,0 @@
1
- var l = Object.defineProperty;
2
- var C = (E, o, e) => o in E ? l(E, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : E[o] = e;
3
- var u = (E, o, e) => C(E, typeof o != "symbol" ? o + "" : o, e);
4
- import { Control as c, UIElementType as $, UEAttr as t } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
5
- class L extends c {
6
- constructor() {
7
- super(...arguments);
8
- u(this, "currentNode");
9
- }
10
- getContainer() {
11
- var e;
12
- return (e = document.querySelector("ui-editor")) == null ? void 0 : e.shadowRoot;
13
- }
14
- onTemplateNodeUpdated(e) {
15
- this.currentNode = e;
16
- }
17
- _GuLabel({ text: e, name: T = "", position: n = "top" }) {
18
- return `
19
- <${$.LABEL}
20
- style="${n === "top" ? "margin-bottom: 8px;" : ""}"
21
- ${t.LABEL.text}="${e}"
22
- ${t.LABEL.name}="${T || `${e} Label`}">
23
- </${$.LABEL}>
24
- `;
25
- }
26
- _GuToggle(e) {
27
- return `
28
- <${$.SWITCHER}
29
- ${t.SWITCHER.name}="${e}">
30
- </${$.SWITCHER}>
31
- `;
32
- }
33
- _GuSelectItem({ text: e, value: T }) {
34
- return `
35
- <${$.SELECT_ITEM}
36
- ${t.SELECT_ITEM.text}="${e}"
37
- ${t.SELECT_ITEM.value}="${T}">
38
- </${$.SELECT_ITEM}>`;
39
- }
40
- _GuSelect({ name: e, placeholder: T, options: n, className: r = "es-180w" }) {
41
- return `
42
- <${$.SELECTPICKER}
43
- class="${r}"
44
- ${t.SELECTPICKER.name}="${e}"
45
- ${t.SELECTPICKER.placeholder}="${T}">
46
- ${n.map((a) => this._GuSelectItem(a)).join("")}
47
- </${$.SELECTPICKER}>
48
- `;
49
- }
50
- _GuTextInput({ name: e, placeholder: T, className: n = "" }) {
51
- return `
52
- <${$.TEXT}
53
- class=${n}
54
- ${t.TEXT.name}="${e}"
55
- placeholder="${T || e}">
56
- </${$.TEXT}>
57
- `;
58
- }
59
- _GuCounter({ name: e, maxValue: T, minValue: n = 1, step: r = 1 }) {
60
- return `
61
- <${$.COUNTER}
62
- ${t.COUNTER.name}="${e}"
63
- ${t.COUNTER.minValue}="${n}"
64
- ${t.COUNTER.maxValue}="${T}"
65
- ${t.COUNTER.step}="${r}">
66
- </${$.COUNTER}>
67
- `;
68
- }
69
- _GuButton({ name: e, label: T, id: n = "" }) {
70
- return `
71
- <${$.BUTTON}
72
- ${t.BUTTON.name}="${e}"
73
- ${n ? `id="${n}"` : ""}
74
- ${t.BUTTON.caption}="${T}"}>
75
- </${$.BUTTON}>
76
- `;
77
- }
78
- /**
79
- *
80
- * @param param0
81
- * @returns It returns a button with an icon.
82
- */
83
- _GuIconButton({ name: e, icon: T, className: n = "" }) {
84
- return `
85
- <${$.BUTTON}
86
- class="${n}"
87
- ${t.BUTTON.name}="${e}"
88
- ${t.BUTTON.icon}="${T}">
89
- </${$.BUTTON}>
90
- `;
91
- }
92
- _GuTwoColumns(e) {
93
- return `
94
- <div class="checkbox-select-container container two-columns">
95
- ${e.join("")}
96
- </div>
97
- `;
98
- }
99
- }
100
- export {
101
- L as CommonControl
102
- };
@@ -1,7 +0,0 @@
1
- const o = { stripo: { version: "2.42.0" } }, s = {
2
- guido: o
3
- };
4
- export {
5
- s as default,
6
- o as guido
7
- };
@@ -1,43 +0,0 @@
1
- import { useHttp as c } from "../composables/useHttp.js";
2
- import { URLS as a } from "../enums/extensions/recommendationBlock.js";
3
- import { useEditorStore as m } from "../stores/editor.js";
4
- import { replaceString as s } from "../utils/genericUtil.js";
5
- const l = () => {
6
- const { get: o } = c();
7
- return {
8
- fetchRecommendationCreateData: async () => {
9
- const e = m();
10
- try {
11
- return (await o(s(
12
- "/newsletter/{id}/recommendations/get-campaign-create-data",
13
- { id: e.templateId }
14
- ))).data;
15
- } catch (t) {
16
- throw console.error("fetchUserModalState error:", t), t;
17
- }
18
- },
19
- fetchRecommendationFilters: async () => {
20
- try {
21
- const { data: e } = await o("/stripo/email-recommendation-attributes");
22
- return e;
23
- } catch (e) {
24
- throw console.error("fetchRecommendationFilters error:", e), e;
25
- }
26
- },
27
- fetchRecommendationProducts: async (e, t) => {
28
- try {
29
- const r = decodeURIComponent(new URLSearchParams(Object.entries(t)).toString());
30
- console.debug("🏁 Recommendation API Query:", r);
31
- const n = await o(
32
- `${a.RECOMMENDATION_API_URL}/v2/${e}?${r}`
33
- );
34
- return (n == null ? void 0 : n.data) ?? [];
35
- } catch (r) {
36
- throw console.error("fetchRecommendationProducts error:", r), r;
37
- }
38
- }
39
- };
40
- };
41
- export {
42
- l as useRecommendationApi
43
- };
@@ -1,16 +0,0 @@
1
- import { useHttp as t } from "../composables/useHttp.js";
2
- import { useToaster as n } from "../composables/useToaster.js";
3
- const u = () => {
4
- const { get: r } = t(), { handleError: s } = n();
5
- return { getUnsubscribePages: async () => {
6
- try {
7
- const { data: e = [] } = await r("/unsubscribe-pages/get-all");
8
- return e;
9
- } catch (e) {
10
- return s(e, "Failed to fetch unsubscribe pages"), [];
11
- }
12
- } };
13
- };
14
- export {
15
- u as useUnsubscribeApi
16
- };
@@ -1,19 +0,0 @@
1
- import type { Filter } from '@@/Types/recommendation';
2
- type __VLS_Props = {
3
- filter: Filter;
4
- index: number;
5
- hasLogicAdapter?: boolean;
6
- };
7
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
8
- "delete-filter": (filter: Filter) => void;
9
- }, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
10
- export default _default;
11
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
- type __VLS_TypePropsToOption<T> = {
13
- [K in keyof T]-?: {} extends Pick<T, K> ? {
14
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
- } : {
16
- type: import('vue').PropType<T[K]>;
17
- required: true;
18
- };
19
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
- export default _default;
@@ -1,16 +0,0 @@
1
- type __VLS_Props = {
2
- logic?: string;
3
- };
4
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
5
- change: (value: string) => void;
6
- }, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
7
- export default _default;
8
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
- type __VLS_TypePropsToOption<T> = {
10
- [K in keyof T]-?: {} extends Pick<T, K> ? {
11
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
- } : {
13
- type: import('vue').PropType<T[K]>;
14
- required: true;
15
- };
16
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
- export default _default;
@@ -1,11 +0,0 @@
1
- import type { Extension } from '@stripoinc/ui-editor-extensions';
2
- /**
3
- * Composable for managing Guido blocks configuration
4
- * Converts GuidoConfig blocks settings to Stripo-compatible format
5
- */
6
- export declare const useBlocksConfig: () => {
7
- getStripoBlocksConfig: () => {
8
- baseBlocks: Record<string, boolean>;
9
- extensions: Extension[];
10
- };
11
- };
@@ -1 +0,0 @@
1
- export declare const migrate: (html: string) => Promise<string>;
@@ -1 +0,0 @@
1
- export declare function migrateUnsubscribe(html: string): Promise<string>;
@@ -1,16 +0,0 @@
1
- import type { TextValueObject } from '@@/Types/generic';
2
- import type { RecommendationFeedItem } from '@@/Types/recommendation';
3
- export declare const URLS: {
4
- RECOMMENDATION_API_URL: string;
5
- };
6
- export declare const RecommendationFeedSourceMaps: RecommendationFeedItem[];
7
- export declare const PriceAttributes: string[];
8
- export declare const currencyLocationMaps: TextValueObject[];
9
- export declare const currencyOperators: TextValueObject[];
10
- export declare const currencyDecimalCounts: TextValueObject[];
11
- export declare const operatorOptionsForStrings: TextValueObject[];
12
- export declare const operatorOptionsForArrayOfStrings: TextValueObject[];
13
- export declare const operatorOptionsForNumbers: TextValueObject[];
14
- export declare const operatorOptionsForDates: TextValueObject[];
15
- export declare const operatorOptionsForBooleans: TextValueObject[];
16
- export declare const getOperatorOptions: (type?: string) => TextValueObject[];
@@ -1,38 +0,0 @@
1
- export declare const LINK_TYPES: {
2
- UNSUBSCRIBE_LINK_TYPE: number;
3
- PREFERENCES_LINK_TYPE: number;
4
- };
5
- export declare const LINK_REGEXES: {
6
- UNSUBSCRIBE_LINK_REGEX: RegExp;
7
- DATA_OGSB_BUTTON_CSS_REGEX: string;
8
- GLOBAL_UNSUBSCRIBE_LINK_REGEX: RegExp;
9
- PREFERENCES_UNSUBSCRIBE_LINK_REGEX: RegExp;
10
- };
11
- export declare const URLS: {
12
- UNSUBSCRIBE_URL: string;
13
- PREFERENCES_URL: string;
14
- };
15
- export declare const INSIDER_ID = "iid";
16
- export declare const DEFAULT_UNSUBSCRIBE_GROUP: {
17
- readonly name: "Global Unsubscribe";
18
- readonly sendGridId: "G";
19
- };
20
- export declare const ACADEMY_LINK = "https://academy.useinsider.com/docs/global-unsubscribe-preference-center";
21
- export declare const UNSUBSCRIBE_PAGES_LINK = "/email/unsubscribe-pages";
22
- export declare const PAGE_TYPES: {
23
- GLOBAL_UNSUBSCRIBE: number;
24
- GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE: number;
25
- SUBSCRIPTION_PREFERENCE_CENTER: number;
26
- SUBSCRIPTION_PREFERENCE_CONFIRMATION: number;
27
- RESUBSCRIBE: number;
28
- };
29
- export declare const TYPE_COLLECTIONS: {
30
- [x: number]: number[];
31
- };
32
- export declare const TYPE_TRANSLATIONS: {
33
- [x: number]: string;
34
- };
35
- export declare const MERGE_TAGS: {
36
- [x: number]: string;
37
- default: string;
38
- };
@@ -1,10 +0,0 @@
1
- import { Block, BlockCompositionType } from '@stripoinc/ui-editor-extensions';
2
- export declare const BLOCK_ID = "recommendation-block";
3
- export declare class RecommendationBlock extends Block {
4
- getId(): string;
5
- getIcon(): string;
6
- getBlockCompositionType(): BlockCompositionType;
7
- getName(): string;
8
- getDescription(): string;
9
- getTemplate(): string;
10
- }
@@ -1,29 +0,0 @@
1
- import { CommonControl } from '../common-control';
2
- export declare const CONTROL_BLOCK_ID = "ui-elements-recommendation-block";
3
- export declare class RecommendationBlockControl extends CommonControl {
4
- private store;
5
- private storeUnsubscription;
6
- private addFilterListener;
7
- private addFilterButton;
8
- getId(): string;
9
- getTemplate(): string;
10
- onRender(): Promise<void>;
11
- onDestroy(): void;
12
- _setFormValues(): void;
13
- _initializeSelectItems(): void;
14
- _getAlgorithms(): string;
15
- _getLanguages(): string;
16
- _getCurrency(): string;
17
- _getProductLayout(): string;
18
- _getFilterStatus(): string;
19
- _getShuffleProducts(): string;
20
- _getResponsive(): string;
21
- _onFilterChange(value: boolean): void;
22
- _onFilterSelectClick(): void;
23
- _onDataChange(item: string, value: string | number | string[]): void;
24
- _onCurrencyConfigChange(item: string, value: string | number): void;
25
- _onCurrencyChange(value: string): void;
26
- _setProductIdsVisibility(): void;
27
- _listenToFormUpdates(): void;
28
- _listenStateUpdates(): void;
29
- }
@@ -1,4 +0,0 @@
1
- import { IconsRegistry } from '@stripoinc/ui-editor-extensions';
2
- export declare class RecommendationIconsRegistry extends IconsRegistry {
3
- registerIconsSvg(iconsMap: Record<string, string>): void;
4
- }