@useinsider/guido 3.15.0-beta.4134a24 → 3.15.0-beta.6b05db3

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/components/Guido.vue.js +1 -1
  2. package/dist/components/Guido.vue2.js +12 -12
  3. package/dist/components/organisms/header/EditorActions.vue.js +1 -1
  4. package/dist/components/organisms/header/EditorActions.vue2.js +39 -47
  5. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +28 -30
  6. package/dist/composables/useCortexBlueprintBridge.js +79 -43
  7. package/dist/composables/useEmailTemplateApplier.js +84 -44
  8. package/dist/composables/useHtmlValidator.js +50 -50
  9. package/dist/composables/useHttp.js +59 -66
  10. package/dist/config/i18n/en/labels.json.js +7 -3
  11. package/dist/config/migrator/recommendation/compositionMapper.js +26 -23
  12. package/dist/config/migrator/recommendation/htmlBuilder.js +156 -155
  13. package/dist/extensions/Blocks/Recommendation/constants/selectors.js +18 -15
  14. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +363 -322
  15. package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +8 -8
  16. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +271 -231
  17. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +16 -16
  18. package/dist/extensions/Blocks/Recommendation/templates/list/template.js +16 -16
  19. package/dist/extensions/Blocks/Recommendation/templates/utils.js +120 -120
  20. package/dist/extensions/Blocks/Recommendation/utils/captureStyleTemplates.js +55 -54
  21. package/dist/extensions/Blocks/Recommendation/utils/compositionKeys.js +89 -0
  22. package/dist/extensions/Blocks/common-control.js +42 -35
  23. package/dist/guido.css +1 -1
  24. package/dist/{composables → src/composables}/useCortexBlueprintBridge.d.ts +12 -5
  25. package/dist/{composables → src/composables}/useEmailTemplateApplier.d.ts +20 -2
  26. package/dist/{composables → src/composables}/useHtmlValidator.d.ts +3 -2
  27. package/dist/{composables → src/composables}/useHttp.d.ts +0 -6
  28. package/dist/{config → src/config}/migrator/recommendation/types.d.ts +1 -0
  29. package/dist/{extensions → src/extensions}/Blocks/Recommendation/constants/index.d.ts +1 -1
  30. package/dist/{extensions → src/extensions}/Blocks/Recommendation/constants/selectors.d.ts +6 -0
  31. package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/cardComposition/index.d.ts +27 -5
  32. package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/utils.d.ts +4 -2
  33. package/dist/{extensions → src/extensions}/Blocks/Recommendation/templates/utils.d.ts +12 -11
  34. package/dist/src/extensions/Blocks/Recommendation/utils/compositionKeys.d.ts +47 -0
  35. package/dist/{extensions → src/extensions}/Blocks/common-control.d.ts +3 -1
  36. package/dist/{stores → src/stores}/guido-email-editor.d.ts +32 -0
  37. package/dist/stores/guido-email-editor.js +9 -1
  38. package/package.json +1 -1
  39. /package/dist/{@types → src/@types}/config/defaults.d.ts +0 -0
  40. /package/dist/{@types → src/@types}/config/index.d.ts +0 -0
  41. /package/dist/{@types → src/@types}/config/schemas.d.ts +0 -0
  42. /package/dist/{@types → src/@types}/config/types.d.ts +0 -0
  43. /package/dist/{@types → src/@types}/config/validator.d.ts +0 -0
  44. /package/dist/{@types → src/@types}/events.d.ts +0 -0
  45. /package/dist/{@types → src/@types}/extensions/block.d.ts +0 -0
  46. /package/dist/{@types → src/@types}/generic.d.ts +0 -0
  47. /package/dist/{@types → src/@types}/save-as-template.d.ts +0 -0
  48. /package/dist/{App.vue.d.ts → src/App.vue.d.ts} +0 -0
  49. /package/dist/{components → src/components}/Guido.vue.d.ts +0 -0
  50. /package/dist/{components → src/components}/organisms/AutoSaveController.vue.d.ts +0 -0
  51. /package/dist/{components → src/components}/organisms/LoadingWrapper.vue.d.ts +0 -0
  52. /package/dist/{components → src/components}/organisms/base/Toaster.vue.d.ts +0 -0
  53. /package/dist/{components → src/components}/organisms/email-preview/PreviewContainer.vue.d.ts +0 -0
  54. /package/dist/{components → src/components}/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -0
  55. /package/dist/{components → src/components}/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -0
  56. /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/DesktopBrowserHeader.vue.d.ts +0 -0
  57. /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -0
  58. /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -0
  59. /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -0
  60. /package/dist/{components → src/components}/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -0
  61. /package/dist/{components → src/components}/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -0
  62. /package/dist/{components → src/components}/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -0
  63. /package/dist/{components → src/components}/organisms/extensions/recommendation/FilterItem.vue.d.ts +0 -0
  64. /package/dist/{components → src/components}/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts +0 -0
  65. /package/dist/{components → src/components}/organisms/extensions/recommendation/Filters.vue.d.ts +0 -0
  66. /package/dist/{components → src/components}/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +0 -0
  67. /package/dist/{components → src/components}/organisms/header/AutoSaveToggle.vue.d.ts +0 -0
  68. /package/dist/{components → src/components}/organisms/header/EditorActions.vue.d.ts +0 -0
  69. /package/dist/{components → src/components}/organisms/header/EditorToolbar.vue.d.ts +0 -0
  70. /package/dist/{components → src/components}/organisms/header/HeaderWrapper.vue.d.ts +0 -0
  71. /package/dist/{components → src/components}/organisms/header/LeftSlot.vue.d.ts +0 -0
  72. /package/dist/{components → src/components}/organisms/header/MiddleSlot.vue.d.ts +0 -0
  73. /package/dist/{components → src/components}/organisms/header/MigrationConfirmModal.vue.d.ts +0 -0
  74. /package/dist/{components → src/components}/organisms/header/RightSlot.vue.d.ts +0 -0
  75. /package/dist/{components → src/components}/organisms/header/ViewOptions.vue.d.ts +0 -0
  76. /package/dist/{components → src/components}/organisms/header/version-history/RestoreButton.vue.d.ts +0 -0
  77. /package/dist/{components → src/components}/organisms/header/version-history/VersionHistory.vue.d.ts +0 -0
  78. /package/dist/{components → src/components}/organisms/header/version-history/VersionHistoryItem.vue.d.ts +0 -0
  79. /package/dist/{components → src/components}/organisms/header/version-history/ViewOptions.vue.d.ts +0 -0
  80. /package/dist/{components → src/components}/organisms/onboarding/AMPOnboarding.vue.d.ts +0 -0
  81. /package/dist/{components → src/components}/organisms/onboarding/GenericOnboarding.vue.d.ts +0 -0
  82. /package/dist/{components → src/components}/organisms/onboarding/ItemsOnboarding.vue.d.ts +0 -0
  83. /package/dist/{components → src/components}/organisms/onboarding/NewVersionPopup.vue.d.ts +0 -0
  84. /package/dist/{components → src/components}/organisms/onboarding/OnboardingWrapper.vue.d.ts +0 -0
  85. /package/dist/{components → src/components}/organisms/onboarding/TextBlockOnboarding.vue.d.ts +0 -0
  86. /package/dist/{components → src/components}/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +0 -0
  87. /package/dist/{components → src/components}/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +0 -0
  88. /package/dist/{components → src/components}/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +0 -0
  89. /package/dist/{components → src/components}/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +0 -0
  90. /package/dist/{components → src/components}/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +0 -0
  91. /package/dist/{components → src/components}/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +0 -0
  92. /package/dist/{components → src/components}/wrappers/WpDrawer.vue.d.ts +0 -0
  93. /package/dist/{components → src/components}/wrappers/WpModal.vue.d.ts +0 -0
  94. /package/dist/{composables → src/composables}/useActionsApi.d.ts +0 -0
  95. /package/dist/{composables → src/composables}/useAllowlist.d.ts +0 -0
  96. /package/dist/{composables → src/composables}/useAutoSave.d.ts +0 -0
  97. /package/dist/{composables → src/composables}/useBlocksConfig.d.ts +0 -0
  98. /package/dist/{composables → src/composables}/useCodeEditorApi.d.ts +0 -0
  99. /package/dist/{composables → src/composables}/useConfig.d.ts +0 -0
  100. /package/dist/{composables → src/composables}/useCustomInterfaceAppearance.d.ts +0 -0
  101. /package/dist/{composables → src/composables}/useDebounce.d.ts +0 -0
  102. /package/dist/{composables → src/composables}/useExport.d.ts +0 -0
  103. /package/dist/{composables → src/composables}/useFullStoryBridge.d.ts +0 -0
  104. /package/dist/{composables → src/composables}/useGuidoActions.d.ts +0 -0
  105. /package/dist/{composables → src/composables}/useGuidoStateBridge.d.ts +0 -0
  106. /package/dist/{composables → src/composables}/useHtmlCompiler.d.ts +0 -0
  107. /package/dist/{composables → src/composables}/useModuleDynamicContentRepair.d.ts +0 -0
  108. /package/dist/{composables → src/composables}/usePartner.d.ts +0 -0
  109. /package/dist/{composables → src/composables}/usePreviewInteractionGuard.d.ts +0 -0
  110. /package/dist/{composables → src/composables}/usePreviewMode.d.ts +0 -0
  111. /package/dist/{composables → src/composables}/useProvideInject.d.ts +0 -0
  112. /package/dist/{composables → src/composables}/useRecommendation.d.ts +0 -0
  113. /package/dist/{composables → src/composables}/useRecommendationPreview.d.ts +0 -0
  114. /package/dist/{composables → src/composables}/useResponsivePreview.d.ts +0 -0
  115. /package/dist/{composables → src/composables}/useRibbonOffset.d.ts +0 -0
  116. /package/dist/{composables → src/composables}/useSave.d.ts +0 -0
  117. /package/dist/{composables → src/composables}/useStripo.d.ts +0 -0
  118. /package/dist/{composables → src/composables}/useStripoEventHandler.d.ts +0 -0
  119. /package/dist/{composables → src/composables}/useStripoNotifications.d.ts +0 -0
  120. /package/dist/{composables → src/composables}/useSyncModuleExtractor.d.ts +0 -0
  121. /package/dist/{composables → src/composables}/useTimerClone.d.ts +0 -0
  122. /package/dist/{composables → src/composables}/useToaster.d.ts +0 -0
  123. /package/dist/{composables → src/composables}/useTranslations.d.ts +0 -0
  124. /package/dist/{composables → src/composables}/useUserRole.d.ts +0 -0
  125. /package/dist/{composables → src/composables}/useValidation.d.ts +0 -0
  126. /package/dist/{composables → src/composables}/useVersionHistoryApi.d.ts +0 -0
  127. /package/dist/{composables → src/composables}/validators/saveAsTemplate.d.ts +0 -0
  128. /package/dist/{composables → src/composables}/validators/useCouponBlockValidator.d.ts +0 -0
  129. /package/dist/{composables → src/composables}/validators/useLiquidValidator.d.ts +0 -0
  130. /package/dist/{composables → src/composables}/validators/useUnsubscribeBlockValidator.d.ts +0 -0
  131. /package/dist/{config → src/config}/compiler/htmlCompilerRules.d.ts +0 -0
  132. /package/dist/{config → src/config}/compiler/itemsCompilerRules.d.ts +0 -0
  133. /package/dist/{config → src/config}/compiler/liquidCompilerRules.d.ts +0 -0
  134. /package/dist/{config → src/config}/compiler/outlookCompilerRules.d.ts +0 -0
  135. /package/dist/{config → src/config}/compiler/recommendationCompilerRules.d.ts +0 -0
  136. /package/dist/{config → src/config}/compiler/socialCompilerRules.d.ts +0 -0
  137. /package/dist/{config → src/config}/compiler/unsubscribeCompilerRules.d.ts +0 -0
  138. /package/dist/{config → src/config}/compiler/utils/itemsCompilerUtils.d.ts +0 -0
  139. /package/dist/{config → src/config}/compiler/utils/recommendationCompilerUtils.d.ts +0 -0
  140. /package/dist/{config → src/config}/compiler/utils/recommendationIgnoreUtils.d.ts +0 -0
  141. /package/dist/{config → src/config}/i18n/en/index.d.ts +0 -0
  142. /package/dist/{config → src/config}/i18n/index.d.ts +0 -0
  143. /package/dist/{config → src/config}/migrator/checkboxMigrator.d.ts +0 -0
  144. /package/dist/{config → src/config}/migrator/couponBlockMigrator.d.ts +0 -0
  145. /package/dist/{config → src/config}/migrator/index.d.ts +0 -0
  146. /package/dist/{config → src/config}/migrator/itemsBlockMigrator.d.ts +0 -0
  147. /package/dist/{config → src/config}/migrator/productNameLinkMigrator.d.ts +0 -0
  148. /package/dist/{config → src/config}/migrator/radioButtonMigrator.d.ts +0 -0
  149. /package/dist/{config → src/config}/migrator/recommendation/compositionMapper.d.ts +0 -0
  150. /package/dist/{config → src/config}/migrator/recommendation/extractors.d.ts +0 -0
  151. /package/dist/{config → src/config}/migrator/recommendation/htmlBuilder.d.ts +0 -0
  152. /package/dist/{config → src/config}/migrator/recommendation/parseLegacyConfig.d.ts +0 -0
  153. /package/dist/{config → src/config}/migrator/recommendation/settingsMapper.d.ts +0 -0
  154. /package/dist/{config → src/config}/migrator/recommendation/themeMapper.d.ts +0 -0
  155. /package/dist/{config → src/config}/migrator/recommendationMigrator.d.ts +0 -0
  156. /package/dist/{config → src/config}/migrator/socialIconMigrator.d.ts +0 -0
  157. /package/dist/{config → src/config}/migrator/textBlockMigration.d.ts +0 -0
  158. /package/dist/{config → src/config}/migrator/unsubscribeMigrator.d.ts +0 -0
  159. /package/dist/{enums → src/enums}/academy.d.ts +0 -0
  160. /package/dist/{enums → src/enums}/block.d.ts +0 -0
  161. /package/dist/{enums → src/enums}/date.d.ts +0 -0
  162. /package/dist/{enums → src/enums}/defaults.d.ts +0 -0
  163. /package/dist/{enums → src/enums}/extensions/recommendationBlock.d.ts +0 -0
  164. /package/dist/{enums → src/enums}/html-validator.d.ts +0 -0
  165. /package/dist/{enums → src/enums}/onboarding.d.ts +0 -0
  166. /package/dist/{enums → src/enums}/preview.d.ts +0 -0
  167. /package/dist/{enums → src/enums}/recommendation.d.ts +0 -0
  168. /package/dist/{enums → src/enums}/roles.d.ts +0 -0
  169. /package/dist/{enums → src/enums}/toaster.d.ts +0 -0
  170. /package/dist/{enums → src/enums}/unsubscribe.d.ts +0 -0
  171. /package/dist/{extensions → src/extensions}/Blocks/Checkbox/block.d.ts +0 -0
  172. /package/dist/{extensions → src/extensions}/Blocks/Checkbox/control.d.ts +0 -0
  173. /package/dist/{extensions → src/extensions}/Blocks/Checkbox/extension.d.ts +0 -0
  174. /package/dist/{extensions → src/extensions}/Blocks/Checkbox/iconsRegistry.d.ts +0 -0
  175. /package/dist/{extensions → src/extensions}/Blocks/Checkbox/settingsPanel.d.ts +0 -0
  176. /package/dist/{extensions → src/extensions}/Blocks/Checkbox/template.d.ts +0 -0
  177. /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/block.d.ts +0 -0
  178. /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/constants.d.ts +0 -0
  179. /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/controls/index.d.ts +0 -0
  180. /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/extension.d.ts +0 -0
  181. /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/iconsRegistry.d.ts +0 -0
  182. /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/settingsPanel.d.ts +0 -0
  183. /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/template.d.ts +0 -0
  184. /package/dist/{extensions → src/extensions}/Blocks/Items/block.d.ts +0 -0
  185. /package/dist/{extensions → src/extensions}/Blocks/Items/controls/button/link.d.ts +0 -0
  186. /package/dist/{extensions → src/extensions}/Blocks/Items/controls/cardComposition.d.ts +0 -0
  187. /package/dist/{extensions → src/extensions}/Blocks/Items/controls/image/link.d.ts +0 -0
  188. /package/dist/{extensions → src/extensions}/Blocks/Items/controls/index.d.ts +0 -0
  189. /package/dist/{extensions → src/extensions}/Blocks/Items/controls/name/trimming.d.ts +0 -0
  190. /package/dist/{extensions → src/extensions}/Blocks/Items/controls/price/currencyLocation.d.ts +0 -0
  191. /package/dist/{extensions → src/extensions}/Blocks/Items/controls/price/currencySymbol.d.ts +0 -0
  192. /package/dist/{extensions → src/extensions}/Blocks/Items/controls/price/formattedPrice.d.ts +0 -0
  193. /package/dist/{extensions → src/extensions}/Blocks/Items/controls/price/hideDiscount.d.ts +0 -0
  194. /package/dist/{extensions → src/extensions}/Blocks/Items/controls/price/priceOrientation.d.ts +0 -0
  195. /package/dist/{extensions → src/extensions}/Blocks/Items/controls/price/singlePrice.d.ts +0 -0
  196. /package/dist/{extensions → src/extensions}/Blocks/Items/controls/settingsControl.d.ts +0 -0
  197. /package/dist/{extensions → src/extensions}/Blocks/Items/enums/controlEnums.d.ts +0 -0
  198. /package/dist/{extensions → src/extensions}/Blocks/Items/enums/productEnums.d.ts +0 -0
  199. /package/dist/{extensions → src/extensions}/Blocks/Items/enums/settingsEnums.d.ts +0 -0
  200. /package/dist/{extensions → src/extensions}/Blocks/Items/extension.d.ts +0 -0
  201. /package/dist/{extensions → src/extensions}/Blocks/Items/iconsRegistry.d.ts +0 -0
  202. /package/dist/{extensions → src/extensions}/Blocks/Items/settingsPanel.d.ts +0 -0
  203. /package/dist/{extensions → src/extensions}/Blocks/Items/template.d.ts +0 -0
  204. /package/dist/{extensions → src/extensions}/Blocks/Items/utils/nameNode.d.ts +0 -0
  205. /package/dist/{extensions → src/extensions}/Blocks/Items/utils/nodeConfigUtils.d.ts +0 -0
  206. /package/dist/{extensions → src/extensions}/Blocks/RadioButton/block.d.ts +0 -0
  207. /package/dist/{extensions → src/extensions}/Blocks/RadioButton/control.d.ts +0 -0
  208. /package/dist/{extensions → src/extensions}/Blocks/RadioButton/extension.d.ts +0 -0
  209. /package/dist/{extensions → src/extensions}/Blocks/RadioButton/iconsRegistry.d.ts +0 -0
  210. /package/dist/{extensions → src/extensions}/Blocks/RadioButton/settingsPanel.d.ts +0 -0
  211. /package/dist/{extensions → src/extensions}/Blocks/RadioButton/template.d.ts +0 -0
  212. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/block.d.ts +0 -0
  213. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/constants/blockIds.d.ts +0 -0
  214. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/constants/controlIds.d.ts +0 -0
  215. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/constants/defaultConfig.d.ts +0 -0
  216. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/constants/layout.d.ts +0 -0
  217. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/blockBackground/index.d.ts +0 -0
  218. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/button/index.d.ts +0 -0
  219. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/cardBackground/index.d.ts +0 -0
  220. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/customAttribute/index.d.ts +0 -0
  221. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/customAttribute/textTrim.d.ts +0 -0
  222. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/image/index.d.ts +0 -0
  223. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/index.d.ts +0 -0
  224. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/algorithm.d.ts +0 -0
  225. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/currency.d.ts +0 -0
  226. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/filters.d.ts +0 -0
  227. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/index.d.ts +0 -0
  228. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/layoutOrientation.d.ts +0 -0
  229. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/locale.d.ts +0 -0
  230. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/pricePlacement.d.ts +0 -0
  231. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/productCount.d.ts +0 -0
  232. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/productLayout.d.ts +0 -0
  233. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/shuffle.d.ts +0 -0
  234. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/mobileLayout/cssRules.d.ts +0 -0
  235. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/name/index.d.ts +0 -0
  236. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/name/textTrim.d.ts +0 -0
  237. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/oldPrice/index.d.ts +0 -0
  238. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/omnibusDiscount/index.d.ts +0 -0
  239. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/omnibusDiscount/textAfter.d.ts +0 -0
  240. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/omnibusDiscount/textBefore.d.ts +0 -0
  241. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/omnibusPrice/index.d.ts +0 -0
  242. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/omnibusPrice/textAfter.d.ts +0 -0
  243. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/omnibusPrice/textBefore.d.ts +0 -0
  244. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/price/index.d.ts +0 -0
  245. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/shared/textTrimCssRules.d.ts +0 -0
  246. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/spacing/index.d.ts +0 -0
  247. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/syncInfoMessage.d.ts +0 -0
  248. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/extension.d.ts +0 -0
  249. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/iconsRegistry.d.ts +0 -0
  250. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/services/configService.d.ts +0 -0
  251. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/services/index.d.ts +0 -0
  252. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/settingsPanel.d.ts +0 -0
  253. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/store/recommendation.d.ts +0 -0
  254. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/templates/grid/elementRenderer.d.ts +0 -0
  255. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/templates/grid/migration.d.ts +0 -0
  256. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/templates/grid/template.d.ts +0 -0
  257. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/templates/index.d.ts +0 -0
  258. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/templates/list/elementRenderer.d.ts +0 -0
  259. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/templates/list/migration.d.ts +0 -0
  260. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/templates/list/template.d.ts +0 -0
  261. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/types/index.d.ts +0 -0
  262. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/types/nodeConfig.d.ts +0 -0
  263. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/useRecommendationBlockWarning.d.ts +0 -0
  264. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/utils/captureStyleTemplates.d.ts +0 -0
  265. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/utils/filterUtil.d.ts +0 -0
  266. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/utils/legacyStrategyMap.d.ts +0 -0
  267. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/utils/partnerCustomizations.d.ts +0 -0
  268. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/utils/priceFormatter.d.ts +0 -0
  269. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/utils/recommendationBlockCount.d.ts +0 -0
  270. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/utils/tagName.d.ts +0 -0
  271. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/validation/filterSchema.d.ts +0 -0
  272. /package/dist/{extensions → src/extensions}/Blocks/Recommendation/validation/requiredFields.d.ts +0 -0
  273. /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/block.d.ts +0 -0
  274. /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/control.d.ts +0 -0
  275. /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/elements/preview.d.ts +0 -0
  276. /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/extension.d.ts +0 -0
  277. /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/iconsRegistry.d.ts +0 -0
  278. /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/settingsPanel.d.ts +0 -0
  279. /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/tagRegistry.d.ts +0 -0
  280. /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/template.d.ts +0 -0
  281. /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/utils/constants.d.ts +0 -0
  282. /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/utils/utils.d.ts +0 -0
  283. /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/block.d.ts +0 -0
  284. /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/control.d.ts +0 -0
  285. /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/extension.d.ts +0 -0
  286. /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/iconsRegistry.d.ts +0 -0
  287. /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/settingsPanel.d.ts +0 -0
  288. /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/template.d.ts +0 -0
  289. /package/dist/{extensions → src/extensions}/Blocks/controlFactories.d.ts +0 -0
  290. /package/dist/{extensions → src/extensions}/DynamicContent/dynamic-content-modal.d.ts +0 -0
  291. /package/dist/{extensions → src/extensions}/DynamicContent/dynamic-content.d.ts +0 -0
  292. /package/dist/{extensions → src/extensions}/DynamicContent/extension.d.ts +0 -0
  293. /package/dist/{extensions → src/extensions}/ModulesTabIcons/extension.d.ts +0 -0
  294. /package/dist/{library.d.ts → src/library.d.ts} +0 -0
  295. /package/dist/{main.d.ts → src/main.d.ts} +0 -0
  296. /package/dist/{mock → src/mock}/api/auth.d.ts +0 -0
  297. /package/dist/{mock → src/mock}/api/custom-fonts.d.ts +0 -0
  298. /package/dist/{mock → src/mock}/api/default-template.d.ts +0 -0
  299. /package/dist/{mock → src/mock}/api/recommendation.d.ts +0 -0
  300. /package/dist/{mock → src/mock}/api/settings.d.ts +0 -0
  301. /package/dist/{mock → src/mock}/api/template-library.d.ts +0 -0
  302. /package/dist/{mock → src/mock}/api/unsubscribe.d.ts +0 -0
  303. /package/dist/{mock → src/mock}/api/user-modal-state.d.ts +0 -0
  304. /package/dist/{mock → src/mock}/api/validator.d.ts +0 -0
  305. /package/dist/{mock → src/mock}/browser.d.ts +0 -0
  306. /package/dist/{mock → src/mock}/handlers.d.ts +0 -0
  307. /package/dist/{services → src/services}/allowlistApi.d.ts +0 -0
  308. /package/dist/{services → src/services}/blankTemplate.d.ts +0 -0
  309. /package/dist/{services → src/services}/onboardingApi.d.ts +0 -0
  310. /package/dist/{services → src/services}/recommendationApi.d.ts +0 -0
  311. /package/dist/{services → src/services}/stripoApi.d.ts +0 -0
  312. /package/dist/{services → src/services}/templateLibraryApi.d.ts +0 -0
  313. /package/dist/{services → src/services}/unsubscribeApi.d.ts +0 -0
  314. /package/dist/{stores → src/stores}/autosave.d.ts +0 -0
  315. /package/dist/{stores → src/stores}/config.d.ts +0 -0
  316. /package/dist/{stores → src/stores}/dynamic-content.d.ts +0 -0
  317. /package/dist/{stores → src/stores}/editor.d.ts +0 -0
  318. /package/dist/{stores → src/stores}/onboarding.d.ts +0 -0
  319. /package/dist/{stores → src/stores}/preview.d.ts +0 -0
  320. /package/dist/{stores → src/stores}/recommendation.d.ts +0 -0
  321. /package/dist/{stores → src/stores}/save-as-template.d.ts +0 -0
  322. /package/dist/{stores → src/stores}/template.d.ts +0 -0
  323. /package/dist/{stores → src/stores}/toaster.d.ts +0 -0
  324. /package/dist/{stores → src/stores}/unsubscribe.d.ts +0 -0
  325. /package/dist/{stores → src/stores}/version-history.d.ts +0 -0
  326. /package/dist/{utils → src/utils}/ampErrorFilter.d.ts +0 -0
  327. /package/dist/{utils → src/utils}/arrayUtil.d.ts +0 -0
  328. /package/dist/{utils → src/utils}/base64.d.ts +0 -0
  329. /package/dist/{utils → src/utils}/dateUtil.d.ts +0 -0
  330. /package/dist/{utils → src/utils}/dynamicContentConverter.d.ts +0 -0
  331. /package/dist/{utils → src/utils}/environmentUtil.d.ts +0 -0
  332. /package/dist/{utils → src/utils}/genericUtil.d.ts +0 -0
  333. /package/dist/{utils → src/utils}/htmlCompiler.d.ts +0 -0
  334. /package/dist/{utils → src/utils}/htmlEscape.d.ts +0 -0
  335. /package/dist/{utils → src/utils}/migrationBannerHtml.d.ts +0 -0
  336. /package/dist/{utils → src/utils}/pairProductVariables.d.ts +0 -0
  337. /package/dist/{utils → src/utils}/preserveTextStyles.d.ts +0 -0
  338. /package/dist/{utils → src/utils}/registerUsedDynamicContent.d.ts +0 -0
  339. /package/dist/{utils → src/utils}/stripFontTags.d.ts +0 -0
  340. /package/dist/{utils → src/utils}/templatePreparation.d.ts +0 -0
  341. /package/dist/{utils → src/utils}/timeUtil.d.ts +0 -0
  342. /package/dist/{utils → src/utils}/tooltipUtils.d.ts +0 -0
  343. /package/dist/{utils → src/utils}/unwrapProductNameLink.d.ts +0 -0
  344. /package/dist/{utils → src/utils}/urlSchemes.d.ts +0 -0
@@ -12,7 +12,7 @@ var t = function() {
12
12
  n,
13
13
  !1,
14
14
  null,
15
- "5079a1c8"
15
+ "4316a203"
16
16
  );
17
17
  const l = s.exports;
18
18
  export {
@@ -37,11 +37,11 @@ const xe = /* @__PURE__ */ q({
37
37
  () => import("./organisms/onboarding/OnboardingWrapper.vue.js")
38
38
  ), g = U(), l = U(), u = le(), S = fe(), o = me();
39
39
  i.ready && o.init(i.config);
40
- const d = O(), G = ue(), m = _(() => d.hasChanges), { isTestPartner: H } = X(), h = () => {
40
+ const c = O(), $ = ue(), m = _(() => c.hasChanges), { isTestPartner: G } = X(), h = () => {
41
41
  var t;
42
42
  return (t = g.value) == null ? void 0 : t.handleSave(!0);
43
43
  }, b = (t) => {
44
- d.loadingStatus = t;
44
+ c.loadingStatus = t;
45
45
  };
46
46
  j(), Q();
47
47
  const p = () => {
@@ -54,7 +54,7 @@ const xe = /* @__PURE__ */ q({
54
54
  savedModulesFolderName: ((t = o.editor) == null ? void 0 : t.savedModulesFolderName) || N.SAVED_MODULES,
55
55
  defaultModulesFolderName: ((e = o.editor) == null ? void 0 : e.defaultModulesFolderName) || N.DEFAULT_MODULES
56
56
  };
57
- }, { initPlugin: E, preloadRuntime: w } = Y(), { getDefaultTemplate: C } = de(), { cloneTimersOnSave: D, hasTimerBlocks: T } = Z(), $ = _(() => {
57
+ }, { initPlugin: E, preloadRuntime: w } = Y(), { getDefaultTemplate: C } = de(), { cloneTimersOnSave: D, hasTimerBlocks: T } = Z(), H = _(() => {
58
58
  var t;
59
59
  return !((t = o.ui) != null && t.showHeader);
60
60
  });
@@ -82,8 +82,8 @@ const xe = /* @__PURE__ */ q({
82
82
  n("on-change", m.value);
83
83
  });
84
84
  const f = (t) => {
85
- const e = t, { attribute: s, position: c } = e.detail;
86
- console.debug("dynamic-content:open", e.detail), n("dynamic-content:open", s, c);
85
+ const e = t, { attribute: s, position: d } = e.detail;
86
+ console.debug("dynamic-content:open", e.detail), n("dynamic-content:open", s, d);
87
87
  };
88
88
  let a = null;
89
89
  const y = () => {
@@ -93,13 +93,13 @@ const xe = /* @__PURE__ */ q({
93
93
  }, v = async () => {
94
94
  var t;
95
95
  try {
96
- o.initialized || o.init(i.config), d.templateId = o.templateId;
97
- const e = o.template, s = (e == null ? void 0 : e.html) || "", c = (e == null ? void 0 : e.css) || "", k = (e == null ? void 0 : e.preselectedDynamicContent) || [];
96
+ o.initialized || o.init(i.config), c.templateId = o.templateId;
97
+ const e = o.template, s = (e == null ? void 0 : e.html) || "", d = (e == null ? void 0 : e.css) || "", k = (e == null ? void 0 : e.preselectedDynamicContent) || [];
98
98
  S.selectedUnsubscribePages = (e == null ? void 0 : e.selectedUnsubscribePages) || [];
99
99
  const F = ((t = e == null ? void 0 : e.migration) == null ? void 0 : t.recommendationConfigs) ?? {};
100
100
  let r = {
101
101
  html: s && await I(s, F),
102
- css: c
102
+ css: d
103
103
  };
104
104
  r.html || (r = await C(), r.html = await I(r.html, F)), T(r.html) && (r.html = await D(r.html));
105
105
  const z = {
@@ -120,8 +120,8 @@ const xe = /* @__PURE__ */ q({
120
120
  if (t && (a = new ResizeObserver(y), a.observe(t)), w(), i.ready)
121
121
  await v();
122
122
  else {
123
- const s = B(() => i.ready, (c) => {
124
- c && (s(), v());
123
+ const s = B(() => i.ready, (d) => {
124
+ d && (s(), v());
125
125
  });
126
126
  }
127
127
  document.addEventListener("dynamic-content:open", f);
@@ -132,7 +132,7 @@ const xe = /* @__PURE__ */ q({
132
132
  } catch {
133
133
  console.debug("Failed to remove Stripo editor: No editor found");
134
134
  }
135
- o.reset();
135
+ c.$reset(), o.reset();
136
136
  }), A({
137
137
  dynamicContent: {
138
138
  insert: L,
@@ -141,7 +141,7 @@ const xe = /* @__PURE__ */ q({
141
141
  hasChanges: m,
142
142
  saveSilent: h,
143
143
  setLoading: b
144
- }), { __sfc: !0, PreviewContainer: W, OnboardingWrapper: x, headerWrapperRef: g, wrapperRef: l, dynamicContentStore: u, unsubscribeStore: S, props: i, configStore: o, editorStore: d, previewStore: G, hasChanges: m, isTestPartner: H, saveSilent: h, setLoading: b, emit: n, buildMetadata: p, initPlugin: E, preloadRuntime: w, getDefaultTemplate: C, cloneTimersOnSave: D, hasTimerBlocks: T, noHeader: $, insertDynamicContent: L, closeDynamicContent: R, handleDynamicContentOpen: f, ribbonObserver: a, updateRibbonOffset: y, startEditor: v, AutoSaveController: oe, Toaster: ne, FilterSelectionDrawer: re, HeaderWrapper: se, LoadingWrapper: ie, SaveAsTemplateDrawer: ae, UnsubscribeWrapper: ce };
144
+ }), { __sfc: !0, PreviewContainer: W, OnboardingWrapper: x, headerWrapperRef: g, wrapperRef: l, dynamicContentStore: u, unsubscribeStore: S, props: i, configStore: o, editorStore: c, previewStore: $, hasChanges: m, isTestPartner: G, saveSilent: h, setLoading: b, emit: n, buildMetadata: p, initPlugin: E, preloadRuntime: w, getDefaultTemplate: C, cloneTimersOnSave: D, hasTimerBlocks: T, noHeader: H, insertDynamicContent: L, closeDynamicContent: R, handleDynamicContentOpen: f, ribbonObserver: a, updateRibbonOffset: y, startEditor: v, AutoSaveController: oe, Toaster: ne, FilterSelectionDrawer: re, HeaderWrapper: se, LoadingWrapper: ie, SaveAsTemplateDrawer: ae, UnsubscribeWrapper: ce };
145
145
  }
146
146
  });
147
147
  export {
@@ -15,7 +15,7 @@ var u = function() {
15
15
  p,
16
16
  !1,
17
17
  null,
18
- "4c9f1588"
18
+ "6e711fd7"
19
19
  );
20
20
  const v = c.exports;
21
21
  export {
@@ -1,74 +1,66 @@
1
- import { defineComponent as q, ref as a, computed as T } from "vue";
2
- import { useActionsApi as D } from "../../../composables/useActionsApi.js";
3
- import { useConfig as F } from "../../../composables/useConfig.js";
4
- import { useExport as b } from "../../../composables/useExport.js";
5
- import { useTestEmailClick as k } from "../../../composables/useGuidoActions.js";
6
- import { useHtmlCompiler as B } from "../../../composables/useHtmlCompiler.js";
7
- import { useSave as I } from "../../../composables/useSave.js";
8
- import { useToaster as L } from "../../../composables/useToaster.js";
9
- import { useTranslations as R } from "../../../composables/useTranslations.js";
10
- import { useVersionHistoryApi as z } from "../../../composables/useVersionHistoryApi.js";
11
- import { useLiquidValidator as G } from "../../../composables/validators/useLiquidValidator.js";
12
- import { useEditorStore as P } from "../../../stores/editor.js";
13
- import { useTemplateStore as U } from "../../../stores/template.js";
1
+ import { defineComponent as O, ref as n, computed as h } from "vue";
2
+ import { useActionsApi as q } from "../../../composables/useActionsApi.js";
3
+ import { useConfig as b } from "../../../composables/useConfig.js";
4
+ import { useExport as k } from "../../../composables/useExport.js";
5
+ import { useTestEmailClick as B } from "../../../composables/useGuidoActions.js";
6
+ import { useHtmlCompiler as D } from "../../../composables/useHtmlCompiler.js";
7
+ import { useSave as F } from "../../../composables/useSave.js";
8
+ import { useTranslations as L } from "../../../composables/useTranslations.js";
9
+ import { useVersionHistoryApi as R } from "../../../composables/useVersionHistoryApi.js";
10
+ import { useLiquidValidator as z } from "../../../composables/validators/useLiquidValidator.js";
11
+ import { useEditorStore as I } from "../../../stores/editor.js";
12
+ import { useTemplateStore as P } from "../../../stores/template.js";
14
13
  import { getTooltipOptions as j } from "../../../utils/tooltipUtils.js";
15
- import { InButtonV2 as J } from "@useinsider/design-system-vue";
16
- import { storeToRefs as K } from "pinia";
17
- import N from "./MigrationConfirmModal.vue.js";
18
- const pt = /* @__PURE__ */ q({
14
+ import { InButtonV2 as G } from "@useinsider/design-system-vue";
15
+ import { storeToRefs as J } from "pinia";
16
+ import K from "./MigrationConfirmModal.vue.js";
17
+ const ut = /* @__PURE__ */ O({
19
18
  __name: "EditorActions",
20
- setup(Q, { expose: x }) {
21
- const { config: n, isFeatureEnabled: l } = F(), { exportHtml: m } = b(), { save: u } = I(), { openVersionHistory: c, closeVersionHistory: f } = z(), { getCompiledEmail: p } = D(), { compileHtml: d } = B(), { validateLiquidSyntax: v } = G(), { handleError: y } = L(), e = P(), g = U(), { hasMigrations: S } = K(g), r = R(), s = a(!1), i = a(!1), H = a(), V = k(), _ = () => {
19
+ setup(N, { expose: x }) {
20
+ const { config: a, isFeatureEnabled: l } = b(), { exportHtml: m } = k(), { save: u } = F(), { openVersionHistory: c, closeVersionHistory: p } = R(), { getCompiledEmail: f } = q(), { compileHtml: d } = D(), { validateLiquidSyntax: v } = z(), e = I(), y = P(), { hasMigrations: g } = J(y), s = L(), i = n(!1), r = n(!1), S = n(), H = B(), T = () => {
22
21
  if (e.isVersionHistoryOpen) {
23
- f();
22
+ p();
24
23
  return;
25
24
  }
26
25
  c();
27
26
  }, w = async () => {
28
- s.value = !0, await m(), s.value = !1;
29
- }, A = () => {
27
+ i.value = !0, await m(), i.value = !1;
28
+ }, _ = () => {
30
29
  e.isSaveAsTemplateDrawerOpen = !0;
31
- }, C = T(() => e.isVersionHistoryOpen ? r("newsletter.close-version-history") : r("newsletter.version-history")), O = T(
30
+ }, C = h(() => e.isVersionHistoryOpen ? s("newsletter.close-version-history") : s("newsletter.version-history")), A = h(
32
31
  () => {
33
- var o, t;
34
- return ((t = (o = n.value) == null ? void 0 : o.features) == null ? void 0 : t.versionHistory) && !e.isPreviewModeOpen;
32
+ var t, o;
33
+ return ((o = (t = a.value) == null ? void 0 : t.features) == null ? void 0 : o.versionHistory) && !e.isPreviewModeOpen;
35
34
  }
36
- ), E = async (o) => {
37
- i.value = !0, o || (e.loadingStatus = !0);
38
- try {
39
- const t = await u(o);
40
- return !o && !t && (e.loadingStatus = !1), t;
41
- } catch (t) {
42
- console.error("[GUIDO_SAVE] save failed", t), y(t, "Failed to save template"), o || (e.loadingStatus = !1);
35
+ ), V = async (t) => {
36
+ r.value = !0, t || (e.loadingStatus = !0);
37
+ const o = await u(t);
38
+ return r.value = !1, !t && !o && (e.loadingStatus = !1), o;
39
+ }, E = (t) => {
40
+ var o;
41
+ if (!t && g.value) {
42
+ (o = S.value) == null || o.open();
43
43
  return;
44
- } finally {
45
- i.value = !1;
46
44
  }
47
- }, h = (o) => {
48
- var t;
49
- if (!o && S.value) {
50
- (t = H.value) == null || t.open();
51
- return;
52
- }
53
- return E(o);
45
+ return V(t);
54
46
  }, M = async () => {
55
47
  if (l("liquidSyntax")) {
56
48
  e.loadingStatus = !0;
57
49
  try {
58
- const { html: o } = await p({ minimize: !0, resetDataSavedFlag: !1 }), { compiledHtml: t } = d(o);
59
- if (!await v(t))
50
+ const { html: t } = await f({ minimize: !0, resetDataSavedFlag: !1 }), { compiledHtml: o } = d(t);
51
+ if (!await v(o))
60
52
  return;
61
53
  } finally {
62
54
  e.loadingStatus = !1;
63
55
  }
64
56
  }
65
- V();
57
+ H();
66
58
  };
67
59
  return x({
68
- handleSave: h
69
- }), { __sfc: !0, config: n, isFeatureEnabled: l, exportHtml: m, save: u, openVersionHistory: c, closeVersionHistory: f, getCompiledEmail: p, compileHtml: d, validateLiquidSyntax: v, handleError: y, editorStore: e, templateStore: g, hasMigrations: S, trans: r, isExporting: s, isSaving: i, migrationModalRef: H, testEmailClick: V, handleVersionHistory: _, handleExport: w, handleSaveAs: A, versionHistoryTooltipText: C, isVersionHistoryButtonVisible: O, executeSave: E, handleSave: h, handleTestEmail: M, getTooltipOptions: j, InButtonV2: J, MigrationConfirmModal: N };
60
+ handleSave: E
61
+ }), { __sfc: !0, config: a, isFeatureEnabled: l, exportHtml: m, save: u, openVersionHistory: c, closeVersionHistory: p, getCompiledEmail: f, compileHtml: d, validateLiquidSyntax: v, editorStore: e, templateStore: y, hasMigrations: g, trans: s, isExporting: i, isSaving: r, migrationModalRef: S, testEmailClick: H, handleVersionHistory: T, handleExport: w, handleSaveAs: _, versionHistoryTooltipText: C, isVersionHistoryButtonVisible: A, executeSave: V, handleSave: E, handleTestEmail: M, getTooltipOptions: j, InButtonV2: G, MigrationConfirmModal: K };
70
62
  }
71
63
  });
72
64
  export {
73
- pt as default
65
+ ut as default
74
66
  };
@@ -1,48 +1,46 @@
1
- import { defineComponent as O, computed as e, onMounted as b, watch as t } from "vue";
1
+ import { defineComponent as b, computed as e, onMounted as O, watch as t } from "vue";
2
2
  import u from "./AMPOnboarding.vue.js";
3
- import l from "./GenericOnboarding.vue.js";
4
- import v from "./ItemsOnboarding.vue.js";
5
- import h from "./NewVersionPopup.vue.js";
6
- import y from "./TextBlockOnboarding.vue.js";
7
- import S from "./VersionHistoryOnboarding.vue.js";
8
- import { usePartner as P } from "../../../composables/usePartner.js";
9
- import { useEditorStore as w } from "../../../stores/editor.js";
3
+ import v from "./GenericOnboarding.vue.js";
4
+ import l from "./ItemsOnboarding.vue.js";
5
+ import y from "./NewVersionPopup.vue.js";
6
+ import S from "./TextBlockOnboarding.vue.js";
7
+ import h from "./VersionHistoryOnboarding.vue.js";
8
+ import { usePartner as w } from "../../../composables/usePartner.js";
9
+ import { useEditorStore as P } from "../../../stores/editor.js";
10
10
  import { useOnboardingStore as _ } from "../../../stores/onboarding.js";
11
11
  import { usePreviewStore as A } from "../../../stores/preview.js";
12
- const R = /* @__PURE__ */ O({
12
+ const G = /* @__PURE__ */ b({
13
13
  __name: "OnboardingWrapper",
14
14
  emits: ["onboarding-finished"],
15
15
  setup(H, { emit: f }) {
16
- const r = _(), n = w(), s = A(), { isTestPartner: a } = P(), p = e(() => n.isStripoInitialized), d = e(() => a()), m = [
17
- { type: "newVersionPopup", component: h },
18
- { type: "genericOnboarding", component: l },
19
- { type: "textBlockOnboarding", component: y },
20
- { type: "versionHistoryOnboarding", component: S },
16
+ const o = _(), r = P(), s = A(), { isTestPartner: a } = w(), p = e(() => r.isStripoInitialized), d = e(() => a()), m = [
17
+ { type: "newVersionPopup", component: y },
18
+ { type: "genericOnboarding", component: v },
19
+ { type: "textBlockOnboarding", component: S },
20
+ { type: "versionHistoryOnboarding", component: h },
21
21
  { type: "ampOnboarding", component: u },
22
- { type: "itemsOnboarding", component: v }
23
- ], c = (o) => d.value || !p.value ? !1 : o === "newVersionPopup" ? r.shouldShowOnboarding(o) : r.isActive(o), g = e(() => m.filter((o) => c(o.type)));
24
- return b(() => {
25
- r.fetchUserModalState().catch((o) => {
26
- console.error("[GUIDO_ONBOARDING] user modal state prefetch failed", o);
27
- });
22
+ { type: "itemsOnboarding", component: l }
23
+ ], c = (n) => d.value || !p.value ? !1 : n === "newVersionPopup" ? o.shouldShowOnboarding(n) : o.isActive(n), g = e(() => m.filter((n) => c(n.type)));
24
+ return O(async () => {
25
+ await o.fetchUserModalState();
28
26
  }), t(
29
- () => n.isVersionHistoryOpen,
30
- (o, i) => {
31
- o && !i && r.shouldShowOnboarding("versionHistoryOnboarding") && r.start("versionHistoryOnboarding"), !o && i && r.isActive("versionHistoryOnboarding") && r.close("versionHistoryOnboarding");
27
+ () => r.isVersionHistoryOpen,
28
+ (n, i) => {
29
+ n && !i && o.shouldShowOnboarding("versionHistoryOnboarding") && o.start("versionHistoryOnboarding"), !n && i && o.isActive("versionHistoryOnboarding") && o.close("versionHistoryOnboarding");
32
30
  }
33
31
  ), t(
34
32
  () => s.emailFormat,
35
- (o, i) => {
36
- i !== "AMP" && o === "AMP" && r.shouldShowOnboarding("ampOnboarding") && r.start("ampOnboarding");
33
+ (n, i) => {
34
+ i !== "AMP" && n === "AMP" && o.shouldShowOnboarding("ampOnboarding") && o.start("ampOnboarding");
37
35
  }
38
36
  ), t(
39
- () => n.isPreviewModeOpen,
40
- (o) => {
41
- !o && r.isActive("ampOnboarding") && r.close("ampOnboarding");
37
+ () => r.isPreviewModeOpen,
38
+ (n) => {
39
+ !n && o.isActive("ampOnboarding") && o.close("ampOnboarding");
42
40
  }
43
- ), { __sfc: !0, emit: f, onboardingStore: r, editorStore: n, previewStore: s, isTestPartner: a, isStripoReady: p, isTestPartnerActive: d, onboardingConfigs: m, shouldShow: c, visibleOnboardings: g };
41
+ ), { __sfc: !0, emit: f, onboardingStore: o, editorStore: r, previewStore: s, isTestPartner: a, isStripoReady: p, isTestPartnerActive: d, onboardingConfigs: m, shouldShow: c, visibleOnboardings: g };
44
42
  }
45
43
  });
46
44
  export {
47
- R as default
45
+ G as default
48
46
  };
@@ -1,59 +1,95 @@
1
- import { useEmailTemplateApplier as w, resetEmailTemplateApplier as _ } from "./useEmailTemplateApplier.js";
2
- import { useToaster as I } from "./useToaster.js";
3
- import { useTranslations as P } from "./useTranslations.js";
4
- import { ToasterTypeOptions as S } from "../enums/toaster.js";
5
- import { getActivePinia as v } from "pinia";
6
- import { watch as B, onUnmounted as D } from "vue";
7
- const x = "email_template", L = "chat", M = "guido:debug:ai", R = () => {
1
+ import { resetEmailTemplateApplier as R, useEmailTemplateApplier as q } from "./useEmailTemplateApplier.js";
2
+ import { useToaster as x } from "./useToaster.js";
3
+ import { useTranslations as H } from "./useTranslations.js";
4
+ import { ToasterTypeOptions as K } from "../enums/toaster.js";
5
+ import { useGuidoEmailEditorStore as L } from "../stores/guido-email-editor.js";
6
+ import { getActivePinia as g } from "pinia";
7
+ import { onUnmounted as k, watch as G } from "vue";
8
+ const U = "email_template", C = "chat", F = "guido:debug:ai", O = () => {
8
9
  if (typeof window > "u")
9
10
  return !1;
10
11
  try {
11
- return window.localStorage.getItem(M) === "1";
12
+ return window.localStorage.getItem(F) === "1";
12
13
  } catch {
13
14
  return !1;
14
15
  }
15
- }, H = () => {
16
- const c = v();
17
- if (!c)
16
+ }, X = () => {
17
+ const T = g();
18
+ if (!T)
18
19
  return;
19
- const l = c._s, p = l == null ? void 0 : l.get(L);
20
- if (!p)
20
+ const s = L();
21
+ s.$patch((e) => {
22
+ e.bridgeActive = !0, e.applyAcks = {};
23
+ }), k(() => {
24
+ s.$patch((e) => {
25
+ e.bridgeActive = !1, e.applyAcks = {};
26
+ }), R();
27
+ });
28
+ const u = T._s, d = u == null ? void 0 : u.get(C);
29
+ if (!d)
21
30
  return;
22
- const { markPending: d, applyTemplate: f, applyTemplateDebounced: T } = w(), { showToaster: E } = I(), h = P(), y = (r, t) => {
23
- const e = h(r);
24
- return e === r ? t : e;
25
- }, i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), u = R(), A = (r, t) => {
26
- u && console.debug(`[guido:cortex] msg=${r ?? "?"} type=${(t == null ? void 0 : t.type) ?? "?"}`, t);
27
- }, b = (r) => {
28
- if (r.blueprintType !== x)
31
+ const { markPending: v, applyTemplate: _, applyTemplateDebounced: S } = q(), { showToaster: $ } = x(), M = H(), B = (e, t) => {
32
+ const i = M(e);
33
+ return i === e ? t : i;
34
+ }, a = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Set(), b = O(), D = (e, t) => {
35
+ b && console.debug(`[guido:cortex] msg=${e ?? "?"} type=${(t == null ? void 0 : t.type) ?? "?"}`, t);
36
+ }, A = (e, t, i, r) => {
37
+ s.$patch((n) => {
38
+ const o = n.applyAcks[e], l = Math.max(Date.now(), ((o == null ? void 0 : o.ackAt) ?? 0) + 1);
39
+ n.applyAcks = {
40
+ ...n.applyAcks,
41
+ [e]: { status: t, ackAt: l, requestedAt: i, ...r !== void 0 ? { error: r } : {} }
42
+ };
43
+ });
44
+ }, I = (e) => {
45
+ if (e.blueprintType !== U)
46
+ return;
47
+ const t = e.blueprintId, i = e.blueprintData;
48
+ if (!t || !(i != null && i.html))
29
49
  return;
30
- const t = r.blueprintId, e = r.blueprintData;
31
- if (!t || !(e != null && e.html))
50
+ if (!e.applyRequested) {
51
+ v(t);
32
52
  return;
33
- if (!r.applyRequested) {
34
- d(t);
53
+ }
54
+ const r = `${t}:${e.version ?? 1}`, n = e.applyRequestedAt ?? 0, { html: o } = i, l = a.get(t), y = p.get(r);
55
+ if (l === void 0 && y === void 0 && (d.appliedBlueprintKeys ?? []).includes(r)) {
56
+ a.set(t, o), p.set(r, n), c.set(r, o);
35
57
  return;
36
58
  }
37
- const o = i.get(t);
38
- o === void 0 ? (i.set(t, e.html), f(t, e)) : o !== e.html && (i.set(t, e.html), T(t, e));
39
- }, s = (r) => r === void 0 || a.has(r) ? !1 : (a.add(r), E({
40
- type: S.Error,
41
- message: y("newsletter.ai-template-failed", "AI couldn't generate the template. Please try again.")
42
- }), !0), m = B(
43
- () => p.messages,
44
- (r) => {
45
- Array.isArray(r) && r.forEach((t) => {
46
- const e = t == null ? void 0 : t.id;
47
- (t == null ? void 0 : t.isError) === !0 && s(e) && u && console.debug(`[guido:cortex] message-level error id=${e}`, t);
48
- const o = t == null ? void 0 : t.segments;
49
- Array.isArray(o) && o.forEach((n) => {
59
+ const h = (m) => {
60
+ if (c.set(r, o), l === o) {
61
+ A(r, "applied", n);
62
+ return;
63
+ }
64
+ (m ? _(t, i) : S(t, i)).then((E) => {
65
+ if (E.status !== "superseded") {
66
+ if (E.status === "applied") {
67
+ a.set(t, o), A(r, "applied", n);
68
+ return;
69
+ }
70
+ A(r, "failed", n, E.error);
71
+ }
72
+ });
73
+ };
74
+ y === void 0 || n > y ? (p.set(r, n), h(!0)) : l !== o && c.get(r) !== o && h(!1);
75
+ }, w = (e) => e === void 0 || f.has(e) ? !1 : (f.add(e), $({
76
+ type: K.Error,
77
+ message: B("newsletter.ai-template-failed", "AI couldn't generate the template. Please try again.")
78
+ }), !0), P = G(
79
+ () => d.messages,
80
+ (e) => {
81
+ Array.isArray(e) && e.forEach((t) => {
82
+ const i = t == null ? void 0 : t.id;
83
+ (t == null ? void 0 : t.isError) === !0 && w(i) && b && console.debug(`[guido:cortex] message-level error id=${i}`, t);
84
+ const r = t == null ? void 0 : t.segments;
85
+ Array.isArray(r) && r.forEach((n) => {
50
86
  if (n)
51
- switch (A(e, n), n.type) {
87
+ switch (D(i, n), n.type) {
52
88
  case "blueprint":
53
- b(n);
89
+ I(n);
54
90
  break;
55
91
  case "error":
56
- s(e);
92
+ w(i);
57
93
  break;
58
94
  }
59
95
  });
@@ -61,10 +97,10 @@ const x = "email_template", L = "chat", M = "guido:debug:ai", R = () => {
61
97
  },
62
98
  { deep: !0, immediate: !0 }
63
99
  );
64
- D(() => {
65
- m(), i.clear(), a.clear(), _();
100
+ k(() => {
101
+ P(), a.clear(), p.clear(), c.clear(), f.clear();
66
102
  });
67
103
  };
68
104
  export {
69
- H as useCortexBlueprintBridge
105
+ X as useCortexBlueprintBridge
70
106
  };
@@ -1,57 +1,97 @@
1
- import { useActionsApi as d } from "./useActionsApi.js";
2
- import { useConfig as D } from "./useConfig.js";
3
- import { useToaster as h } from "./useToaster.js";
4
- import { useTranslations as E } from "./useTranslations.js";
5
- import { ToasterTypeOptions as f } from "../enums/toaster.js";
6
- import { useDynamicContentStore as A } from "../stores/dynamic-content.js";
7
- import { flattenDynamicContentList as S } from "../utils/genericUtil.js";
8
- import { extractUsedDynamicContent as O } from "../utils/registerUsedDynamicContent.js";
9
- import { ref as U } from "vue";
10
- const w = 250, o = U({}), s = {}, u = /* @__PURE__ */ new Map(), z = () => {
11
- const { updateHtmlAndCss: c } = d(), { showToaster: m } = h(), y = E(), { template: T } = D(), v = A(), g = (e, t) => {
12
- const a = y(e);
13
- return a === e ? t : a;
14
- }, C = (e) => {
1
+ import { useActionsApi as P } from "./useActionsApi.js";
2
+ import { useConfig as U } from "./useConfig.js";
3
+ import { useToaster as O } from "./useToaster.js";
4
+ import { useTranslations as M } from "./useTranslations.js";
5
+ import { ToasterTypeOptions as p } from "../enums/toaster.js";
6
+ import { useDynamicContentStore as Q } from "../stores/dynamic-content.js";
7
+ import { useEditorStore as _ } from "../stores/editor.js";
8
+ import { flattenDynamicContentList as k } from "../utils/genericUtil.js";
9
+ import { extractUsedDynamicContent as z } from "../utils/registerUsedDynamicContent.js";
10
+ import { ref as H, watch as N } from "vue";
11
+ const j = 250, x = 12e4, o = H({}), m = {}, n = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), B = () => {
12
+ var r, l;
13
+ return typeof ((l = (r = window.StripoEditorApi) == null ? void 0 : r.actionsApi) == null ? void 0 : l.updateHtmlAndCss) == "function";
14
+ }, b = () => {
15
+ const { updateHtmlAndCss: r } = P(), { showToaster: l } = O(), h = M(), { template: C } = U(), w = Q(), u = _(), f = (e, t) => {
16
+ const s = h(e);
17
+ return s === e ? t : s;
18
+ }, A = (e) => {
15
19
  o.value[e] === void 0 && (o.value = { ...o.value, [e]: "pending" });
16
- }, l = (e, t, a) => {
17
- var n;
20
+ }, d = (e, t, s) => {
21
+ var c;
18
22
  o.value = { ...o.value, [e]: "applying" };
19
23
  try {
20
- c(t, a), o.value = { ...o.value, [e]: "applied" };
24
+ r(t, s), o.value = { ...o.value, [e]: "applied" };
21
25
  try {
22
- const r = S((n = T.value) == null ? void 0 : n.dynamicContentList), p = O(t, r);
23
- p.length > 0 && v.registerDynamicContent(p);
26
+ const a = k((c = C.value) == null ? void 0 : c.dynamicContentList), i = z(t, a);
27
+ i.length > 0 && w.registerDynamicContent(i);
24
28
  } catch {
25
29
  }
26
- u.get(e) !== t && (u.set(e, t), m({
27
- type: f.Success,
28
- message: g("newsletter.ai-template-applied", "Template applied to the editor")
29
- }));
30
- } catch (r) {
31
- o.value = { ...o.value, [e]: "failed" }, m({
32
- type: f.Error,
33
- message: r instanceof Error ? r.message : "Failed to apply template"
34
- });
30
+ return g.get(e) !== t && (g.set(e, t), l({
31
+ type: p.Success,
32
+ message: f("newsletter.ai-template-applied", "Template applied to the editor")
33
+ })), { status: "applied" };
34
+ } catch (a) {
35
+ const i = a instanceof Error ? a.message : "Failed to apply template";
36
+ return o.value = { ...o.value, [e]: "failed" }, l({
37
+ type: p.Error,
38
+ message: i
39
+ }), { status: "failed", error: i };
35
40
  }
36
- }, i = (e) => {
37
- const t = s[e];
38
- t && (clearTimeout(t), delete s[e]);
41
+ }, y = (e) => {
42
+ const t = n.get(e);
43
+ t && (n.delete(e), clearTimeout(t.timeoutTimer), t.resolve({ status: "superseded" }));
44
+ }, S = (e, t, s) => (y(e), new Promise((c) => {
45
+ const a = setTimeout(() => {
46
+ n.delete(e), o.value = { ...o.value, [e]: "failed" };
47
+ const i = f(
48
+ "newsletter.ai-template-apply-timeout",
49
+ "The editor took too long to load. Please try applying again."
50
+ );
51
+ l({ type: p.Error, message: i }), c({ status: "failed", error: i });
52
+ }, x);
53
+ n.set(e, { html: t, css: s, resolve: c, timeoutTimer: a });
54
+ })), T = () => u.isStripoInitialized && B(), D = () => {
55
+ if (!T() || n.size === 0)
56
+ return;
57
+ const e = [...n.entries()];
58
+ n.clear(), e.forEach(([t, s]) => {
59
+ clearTimeout(s.timeoutTimer), s.resolve(d(t, s.html, s.css));
60
+ });
39
61
  };
40
- return { applyStatus: o, markPending: C, applyTemplate: (e, t) => {
41
- t.html && (i(e), l(e, t.html, t.css ?? ""));
42
- }, applyTemplateDebounced: (e, t) => {
62
+ N(
63
+ () => u.isStripoInitialized,
64
+ (e) => {
65
+ e && D();
66
+ },
67
+ { immediate: !0 }
68
+ );
69
+ const v = (e) => {
70
+ const t = m[e];
71
+ t && (clearTimeout(t.timer), delete m[e], t.resolve({ status: "superseded" }));
72
+ }, E = (e, t, s) => T() ? (y(e), Promise.resolve(d(e, t, s))) : S(e, t, s);
73
+ return { applyStatus: o, markPending: A, applyTemplate: (e, t) => t.html ? (v(e), E(e, t.html, t.css ?? "")) : Promise.resolve({ status: "superseded" }), applyTemplateDebounced: (e, t) => {
43
74
  if (!t.html)
44
- return;
45
- i(e);
46
- const { html: a } = t, n = t.css ?? "";
47
- s[e] = setTimeout(() => {
48
- delete s[e], l(e, a, n);
49
- }, w);
75
+ return Promise.resolve({ status: "superseded" });
76
+ v(e);
77
+ const { html: s } = t, c = t.css ?? "";
78
+ return new Promise((a) => {
79
+ m[e] = {
80
+ resolve: a,
81
+ timer: setTimeout(() => {
82
+ delete m[e], a(E(e, s, c));
83
+ }, j)
84
+ };
85
+ });
50
86
  } };
51
- }, G = () => {
52
- Object.values(s).forEach(clearTimeout), Object.keys(s).forEach((c) => delete s[c]), o.value = {};
87
+ }, I = () => {
88
+ Object.values(m).forEach((r) => {
89
+ clearTimeout(r.timer), r.resolve({ status: "superseded" });
90
+ }), Object.keys(m).forEach((r) => delete m[r]), n.forEach((r) => {
91
+ clearTimeout(r.timeoutTimer), r.resolve({ status: "superseded" });
92
+ }), n.clear(), o.value = {};
53
93
  };
54
94
  export {
55
- G as resetEmailTemplateApplier,
56
- z as useEmailTemplateApplier
95
+ I as resetEmailTemplateApplier,
96
+ b as useEmailTemplateApplier
57
97
  };