@useinsider/guido 1.0.0-beta.6b8d127 → 1.0.0-beta.6ebce36

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 (286) hide show
  1. package/README.md +30 -229
  2. package/dist/@types/generic.d.ts +0 -38
  3. package/dist/App.vue.d.ts +1 -1
  4. package/dist/components/Guido.vue.d.ts +4 -20
  5. package/dist/components/Guido.vue.js +11 -11
  6. package/dist/components/Guido.vue2.js +25 -84
  7. package/dist/components/organisms/header/LeftSlot.vue.js +5 -5
  8. package/dist/components/organisms/header/LeftSlot.vue2.js +8 -10
  9. package/dist/components/organisms/header/MiddleSlot.vue.js +7 -7
  10. package/dist/components/organisms/header/MiddleSlot.vue2.js +17 -15
  11. package/dist/components/organisms/header/RightSlot.vue.d.ts +1 -1
  12. package/dist/components/organisms/header/RightSlot.vue.js +8 -9
  13. package/dist/components/organisms/header/RightSlot.vue2.js +13 -28
  14. package/dist/components/organisms/header/ViewOptions.vue.d.ts +1 -1
  15. package/dist/components/organisms/header/ViewOptions.vue.js +9 -9
  16. package/dist/components/organisms/header/ViewOptions.vue2.js +10 -29
  17. package/dist/components/organisms/header/version-history/RestoreButton.vue.d.ts +1 -1
  18. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.d.ts +1 -1
  19. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.js +1 -1
  20. package/dist/components/organisms/header/version-history/ViewOptions.vue.d.ts +1 -1
  21. package/dist/components/organisms/header/version-history/ViewOptions.vue.js +3 -3
  22. package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +16 -34
  23. package/dist/composables/useActionsApi.d.ts +1 -5
  24. package/dist/composables/useActionsApi.js +31 -74
  25. package/dist/composables/useCustomInterfaceAppearance.js +13 -15
  26. package/dist/composables/useHtmlCompiler.js +8 -9
  27. package/dist/composables/useHttp.js +21 -23
  28. package/dist/composables/usePartner.d.ts +1 -1
  29. package/dist/composables/usePartner.js +14 -9
  30. package/dist/composables/useStripo.js +31 -53
  31. package/dist/composables/useTemplates.d.ts +5 -0
  32. package/dist/composables/useTemplates.js +27 -0
  33. package/dist/composables/useToaster.d.ts +1 -1
  34. package/dist/composables/useToaster.js +11 -11
  35. package/dist/composables/useTranslations.js +2 -3
  36. package/dist/config/compiler/htmlCompilerRules.js +6 -6
  37. package/dist/enums/defaults.d.ts +1 -4
  38. package/dist/enums/defaults.js +6 -21
  39. package/dist/guido.css +1 -1
  40. package/dist/node_modules/lodash-es/_isMasked.js +2 -2
  41. package/dist/services/stripoApi.d.ts +1 -2
  42. package/dist/services/stripoApi.js +7 -27
  43. package/dist/static/styles/components/wide-panel.css.js +2 -2
  44. package/dist/static/templates/default/index.html.js +5 -0
  45. package/dist/static/templates/default/style.css.js +119 -0
  46. package/dist/stores/editor.d.ts +1 -176
  47. package/dist/stores/editor.js +4 -22
  48. package/package.json +7 -8
  49. package/dist/@types/save-as-template.d.ts +0 -29
  50. package/dist/_virtual/AddCustomFont.js +0 -4
  51. package/dist/_virtual/AiAssistantValueType.js +0 -4
  52. package/dist/_virtual/BackgroundColorBuiltInControl.js +0 -4
  53. package/dist/_virtual/BackgroundImageBuiltInControl.js +0 -4
  54. package/dist/_virtual/Block.js +0 -4
  55. package/dist/_virtual/BlockAttributes.js +0 -4
  56. package/dist/_virtual/BlockCompositionType.js +0 -4
  57. package/dist/_virtual/BlockPaddingsBuiltInControl.js +0 -4
  58. package/dist/_virtual/BlockRenderer.js +0 -4
  59. package/dist/_virtual/BlockType.js +0 -4
  60. package/dist/_virtual/BlocksPanel.js +0 -4
  61. package/dist/_virtual/BuiltInControl.js +0 -4
  62. package/dist/_virtual/BuiltInControlTypes.js +0 -4
  63. package/dist/_virtual/ButtonBorderBuiltInControl.js +0 -4
  64. package/dist/_virtual/ButtonColorBuiltInControl.js +0 -4
  65. package/dist/_virtual/ButtonFontColorBuiltInControl.js +0 -4
  66. package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +0 -4
  67. package/dist/_virtual/ButtonTextBuiltInControl.js +0 -4
  68. package/dist/_virtual/ContextAction.js +0 -4
  69. package/dist/_virtual/ContextActionType.js +0 -4
  70. package/dist/_virtual/Control.js +0 -4
  71. package/dist/_virtual/EditorStatePropertyType.js +0 -4
  72. package/dist/_virtual/Extension.js +0 -4
  73. package/dist/_virtual/ExtensionBuilder.js +0 -4
  74. package/dist/_virtual/FontFamilyBuiltInControl.js +0 -4
  75. package/dist/_virtual/LinkColorBuiltInControl.js +0 -4
  76. package/dist/_virtual/ModificationDescription.js +0 -4
  77. package/dist/_virtual/PanelPosition.js +0 -4
  78. package/dist/_virtual/PreviewDeviceMode.js +0 -4
  79. package/dist/_virtual/SettingsPanelRegistry.js +0 -4
  80. package/dist/_virtual/SettingsPanelTab.js +0 -4
  81. package/dist/_virtual/SettingsTab.js +0 -4
  82. package/dist/_virtual/StructureBorderBuiltInControl.js +0 -4
  83. package/dist/_virtual/StructurePaddingsBuiltInControl.js +0 -4
  84. package/dist/_virtual/TextColorBuiltInControl.js +0 -4
  85. package/dist/_virtual/TextLineSpacingBuiltInControl.js +0 -4
  86. package/dist/_virtual/TextSizeBuiltInControl.js +0 -4
  87. package/dist/_virtual/TextStyleBuiltInControl.js +0 -4
  88. package/dist/_virtual/UIElement.js +0 -4
  89. package/dist/_virtual/UIElementTagRegistry.js +0 -4
  90. package/dist/_virtual/UIElementType.js +0 -4
  91. package/dist/_virtual/UIElementsAttributes.js +0 -4
  92. package/dist/_virtual/index.js +0 -5
  93. package/dist/_virtual/index2.js +0 -4
  94. package/dist/components/organisms/LoadingWrapper.vue.d.ts +0 -2
  95. package/dist/components/organisms/LoadingWrapper.vue.js +0 -18
  96. package/dist/components/organisms/LoadingWrapper.vue2.js +0 -12
  97. package/dist/components/organisms/email-preview/PreviewContainer.vue.d.ts +0 -2
  98. package/dist/components/organisms/email-preview/PreviewContainer.vue.js +0 -19
  99. package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +0 -18
  100. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -4
  101. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +0 -22
  102. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +0 -30
  103. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -2
  104. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +0 -19
  105. package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +0 -29
  106. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -2
  107. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +0 -22
  108. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +0 -31
  109. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -2
  110. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +0 -17
  111. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +0 -20
  112. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -2
  113. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +0 -18
  114. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue2.js +0 -25
  115. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -4
  116. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +0 -19
  117. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +0 -23
  118. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -4
  119. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +0 -20
  120. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +0 -21
  121. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -2
  122. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +0 -17
  123. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +0 -22
  124. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +0 -2
  125. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.js +0 -20
  126. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +0 -63
  127. package/dist/components/wrappers/WpDrawer.vue.d.ts +0 -63
  128. package/dist/components/wrappers/WpDrawer.vue.js +0 -25
  129. package/dist/components/wrappers/WpDrawer.vue2.js +0 -23
  130. package/dist/components/wrappers/WpModal.vue.d.ts +0 -65
  131. package/dist/components/wrappers/WpModal.vue.js +0 -27
  132. package/dist/components/wrappers/WpModal.vue2.js +0 -22
  133. package/dist/composables/useCodeEditorApi.d.ts +0 -4
  134. package/dist/composables/useCodeEditorApi.js +0 -11
  135. package/dist/composables/useConfig.d.ts +0 -4
  136. package/dist/composables/useConfig.js +0 -7
  137. package/dist/composables/useDebounce.d.ts +0 -4
  138. package/dist/composables/useDebounce.js +0 -12
  139. package/dist/composables/useGuidoActions.d.ts +0 -46
  140. package/dist/composables/useGuidoActions.js +0 -37
  141. package/dist/composables/usePreviewMode.d.ts +0 -5
  142. package/dist/composables/usePreviewMode.js +0 -31
  143. package/dist/composables/useProvideInject.d.ts +0 -14
  144. package/dist/composables/useProvideInject.js +0 -17
  145. package/dist/composables/useResponsivePreview.d.ts +0 -5
  146. package/dist/composables/useResponsivePreview.js +0 -86
  147. package/dist/composables/useValidation.d.ts +0 -56
  148. package/dist/composables/useValidation.js +0 -19
  149. package/dist/composables/validators/saveAsTemplate.d.ts +0 -31
  150. package/dist/composables/validators/saveAsTemplate.js +0 -24
  151. package/dist/enums/preview.d.ts +0 -13
  152. package/dist/enums/preview.js +0 -23
  153. package/dist/extensions/DynamicContent/dynamic-content-modal.d.ts +0 -6
  154. package/dist/extensions/DynamicContent/dynamic-content-modal.js +0 -27
  155. package/dist/extensions/DynamicContent/dynamic-content.css.js +0 -24
  156. package/dist/extensions/DynamicContent/dynamic-content.d.ts +0 -16
  157. package/dist/extensions/DynamicContent/dynamic-content.js +0 -61
  158. package/dist/extensions/DynamicContent/extension.d.ts +0 -2
  159. package/dist/extensions/DynamicContent/extension.js +0 -11
  160. package/dist/mock/api/default-template.d.ts +0 -2
  161. package/dist/mock/api/template-library.d.ts +0 -2
  162. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +0 -51
  163. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +0 -52
  164. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +0 -41
  165. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +0 -18
  166. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +0 -32
  167. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +0 -18
  168. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +0 -8
  169. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +0 -13
  170. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +0 -34
  171. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +0 -13
  172. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +0 -13
  173. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +0 -104
  174. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +0 -13
  175. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +0 -13
  176. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +0 -13
  177. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +0 -13
  178. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +0 -13
  179. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +0 -13
  180. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +0 -45
  181. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +0 -43
  182. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +0 -46
  183. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +0 -44
  184. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +0 -22
  185. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +0 -46
  186. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +0 -46
  187. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +0 -45
  188. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +0 -45
  189. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +0 -45
  190. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +0 -20
  191. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +0 -43
  192. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +0 -45
  193. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +0 -18
  194. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +0 -32
  195. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +0 -46
  196. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +0 -44
  197. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +0 -43
  198. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +0 -43
  199. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +0 -45
  200. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +0 -43
  201. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +0 -266
  202. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +0 -26
  203. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +0 -22
  204. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +0 -18
  205. package/dist/node_modules/@vueuse/shared/index.js +0 -45
  206. package/dist/node_modules/lodash-es/_Stack.js +0 -18
  207. package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
  208. package/dist/node_modules/lodash-es/_apply.js +0 -16
  209. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -19
  210. package/dist/node_modules/lodash-es/_assignMergeValue.js +0 -8
  211. package/dist/node_modules/lodash-es/_assignValue.js +0 -10
  212. package/dist/node_modules/lodash-es/_baseAssignValue.js +0 -12
  213. package/dist/node_modules/lodash-es/_baseCreate.js +0 -17
  214. package/dist/node_modules/lodash-es/_baseFor.js +0 -5
  215. package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
  216. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -12
  217. package/dist/node_modules/lodash-es/_baseKeysIn.js +0 -15
  218. package/dist/node_modules/lodash-es/_baseMerge.js +0 -20
  219. package/dist/node_modules/lodash-es/_baseMergeDeep.js +0 -31
  220. package/dist/node_modules/lodash-es/_baseRest.js +0 -9
  221. package/dist/node_modules/lodash-es/_baseSetToString.js +0 -14
  222. package/dist/node_modules/lodash-es/_baseTimes.js +0 -8
  223. package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
  224. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  225. package/dist/node_modules/lodash-es/_cloneBuffer.js +0 -9
  226. package/dist/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  227. package/dist/node_modules/lodash-es/_copyArray.js +0 -9
  228. package/dist/node_modules/lodash-es/_copyObject.js +0 -14
  229. package/dist/node_modules/lodash-es/_createAssigner.js +0 -15
  230. package/dist/node_modules/lodash-es/_createBaseFor.js +0 -13
  231. package/dist/node_modules/lodash-es/_defineProperty.js +0 -11
  232. package/dist/node_modules/lodash-es/_getPrototype.js +0 -5
  233. package/dist/node_modules/lodash-es/_initCloneObject.js +0 -9
  234. package/dist/node_modules/lodash-es/_isIndex.js +0 -8
  235. package/dist/node_modules/lodash-es/_isIterateeCall.js +0 -13
  236. package/dist/node_modules/lodash-es/_isPrototype.js +0 -8
  237. package/dist/node_modules/lodash-es/_nativeKeysIn.js +0 -10
  238. package/dist/node_modules/lodash-es/_nodeUtil.js +0 -11
  239. package/dist/node_modules/lodash-es/_overArg.js +0 -8
  240. package/dist/node_modules/lodash-es/_overRest.js +0 -15
  241. package/dist/node_modules/lodash-es/_safeGet.js +0 -7
  242. package/dist/node_modules/lodash-es/_setToString.js +0 -6
  243. package/dist/node_modules/lodash-es/_shortOut.js +0 -16
  244. package/dist/node_modules/lodash-es/_stackClear.js +0 -7
  245. package/dist/node_modules/lodash-es/_stackDelete.js +0 -7
  246. package/dist/node_modules/lodash-es/_stackGet.js +0 -6
  247. package/dist/node_modules/lodash-es/_stackHas.js +0 -6
  248. package/dist/node_modules/lodash-es/_stackSet.js +0 -17
  249. package/dist/node_modules/lodash-es/constant.js +0 -8
  250. package/dist/node_modules/lodash-es/identity.js +0 -6
  251. package/dist/node_modules/lodash-es/isArguments.js +0 -10
  252. package/dist/node_modules/lodash-es/isArray.js +0 -4
  253. package/dist/node_modules/lodash-es/isArrayLike.js +0 -8
  254. package/dist/node_modules/lodash-es/isArrayLikeObject.js +0 -8
  255. package/dist/node_modules/lodash-es/isBuffer.js +0 -6
  256. package/dist/node_modules/lodash-es/isLength.js +0 -7
  257. package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
  258. package/dist/node_modules/lodash-es/isPlainObject.js +0 -16
  259. package/dist/node_modules/lodash-es/isTypedArray.js +0 -7
  260. package/dist/node_modules/lodash-es/keysIn.js +0 -9
  261. package/dist/node_modules/lodash-es/merge.js +0 -8
  262. package/dist/node_modules/lodash-es/stubFalse.js +0 -6
  263. package/dist/node_modules/lodash-es/toPlainObject.js +0 -8
  264. package/dist/node_modules/valibot/dist/index.js +0 -190
  265. package/dist/node_modules/vue-demi/lib/index.js +0 -7
  266. package/dist/services/templateLibraryApi.d.ts +0 -7
  267. package/dist/services/templateLibraryApi.js +0 -87
  268. package/dist/static/assets/inbox-mockup.svg.js +0 -4
  269. package/dist/static/assets/phone-mockup.svg.js +0 -4
  270. package/dist/static/styles/components/loader.css.js +0 -10
  271. package/dist/stores/dynamic-content.d.ts +0 -27
  272. package/dist/stores/dynamic-content.js +0 -23
  273. package/dist/stores/preview.d.ts +0 -38
  274. package/dist/stores/preview.js +0 -45
  275. package/dist/stores/save-as-template.d.ts +0 -73
  276. package/dist/stores/save-as-template.js +0 -48
  277. package/dist/utils/arrayUtil.d.ts +0 -1
  278. package/dist/utils/arrayUtil.js +0 -10
  279. package/dist/utils/base64.d.ts +0 -1
  280. package/dist/utils/base64.js +0 -7
  281. package/dist/utils/genericUtil.d.ts +0 -3
  282. package/dist/utils/genericUtil.js +0 -11
  283. package/dist/utils/templatePreparation.d.ts +0 -4
  284. package/dist/utils/templatePreparation.js +0 -33
  285. package/dist/utils/tooltipUtils.d.ts +0 -2
  286. package/dist/utils/tooltipUtils.js +0 -11
package/README.md CHANGED
@@ -14,10 +14,7 @@ Guido is a Vue 2 + TypeScript wrapper for the Stripo Email Editor plugin. Easily
14
14
  ```bash
15
15
  npm install @useinsider/guido
16
16
  ```
17
- ### Prerequisites
18
- 🍍 Your project should have `pinia`
19
17
 
20
- ---
21
18
  ## 🚀 Usage
22
19
 
23
20
  ### Basic Usage
@@ -26,16 +23,9 @@ npm install @useinsider/guido
26
23
  <template>
27
24
  <div>
28
25
  <Guido
29
- ref="guidoEditor"
30
- :template-id="templateId"
26
+ :email-id="emailId"
31
27
  :user-id="userId"
32
28
  :guido-config="guidoConfig"
33
- :html="initialHtml"
34
- :css="initialCss"
35
- @dynamic-content:open="handleDynamicContentOpen"
36
- @back="handleBack"
37
- @save:start="handleSaveStart"
38
- @save:complete="handleSaveComplete"
39
29
  />
40
30
  </div>
41
31
  </template>
@@ -49,60 +39,14 @@ export default {
49
39
  },
50
40
  data() {
51
41
  return {
52
- templateId: 'template-123',
53
- userId: 'user-456',
54
- initialHtml: '<p>Initial HTML content</p>',
55
- initialCss: 'p { color: #333; }',
42
+ emailId: 'abc123',
43
+ userId: '12345',
56
44
  guidoConfig: {
57
- translationsPath: 'window.trans.en',
45
+ translationsPath: 'window.trans.en'
58
46
  htmlCompilerRules: [],
59
47
  ignoreDefaultHtmlCompilerRules: false,
60
- features: {
61
- dynamicContent: true,
62
- saveAsTemplate: true,
63
- versionHistory: true
64
- }
65
- },
66
- dynamicContentModalVisible: false
48
+ }
67
49
  };
68
- },
69
-
70
- methods: {
71
- handleDynamicContentOpen(detail) {
72
- console.log('Dynamic content requested:', detail);
73
- this.dynamicContentModalVisible = true;
74
- },
75
-
76
- handleBack() {
77
- console.log('User clicked back button');
78
- // Handle navigation back
79
- },
80
-
81
- handleSaveStart() {
82
- console.log('Save process started');
83
- // Show loading indicator
84
- },
85
-
86
- handleSaveComplete(template) {
87
- console.log('Save completed:', template);
88
- // Handle saved template data
89
- },
90
-
91
- // ⚠️ Your own Dynamic Content Modal should have this id: #guido-dynamic-content-modal
92
- handleDynamicContentInsert() {
93
- this.$refs.guidoEditor?.dynamicContent.insert({
94
- text: 'Display Text',
95
- value: 'actual-value',
96
- fallback: 'Fallback Text'
97
- });
98
-
99
- this.dynamicContentModalVisible = false;
100
- },
101
-
102
- // ⚠️ It's mandatory. There is no way to understand if user closes the modal without selection.
103
- handleDynamicContentClose() {
104
- this.$refs.guidoEditor?.dynamicContent.close();
105
- }
106
50
  }
107
51
  };
108
52
  </script>
@@ -114,42 +58,20 @@ export default {
114
58
 
115
59
  | Prop | Type | Required | Default | Description |
116
60
  |------|------|----------|---------|-------------|
117
- | `templateId` | `string` | ✅ | - | Unique identifier for the email template |
118
- | `userId` | `string` | ✅ | - | Unique identifier for the user |
61
+ | `emailId` | `string` | ✅ | - | Unique identifier for the email draft |
62
+ | `userId` | `string` | ✅ | - | Unique identifier for the user draft |
63
+ | `username` | `string` | ⚪ | Guido User | User name |
64
+ | `partnerName` | `string` | ⚪ | Getting from URL host | Unique identifier for the partner draft |
65
+ | `productType` | `string` | ⚪ | Getting from URL path | Unique identifier for the product draft |
119
66
  | `guidoConfig` | `GuidoConfig` | ✅ | - | Configuration object for the editor |
120
- | `partnerName` | `string` | ⚪ | From URL host | Partner identifier |
121
- | `productType` | `string` | ⚪ | From URL path | Product type identifier |
122
- | `username` | `string` | ⚪ | `'Guido User'` | Display name for the user |
123
- | `html` | `string` | ⚪ | `''` | Initial HTML content for the template |
124
- | `css` | `string` | ⚪ | `''` | Initial CSS styles for the template |
125
-
126
- ### Guido Component Events
127
-
128
- | Event | Payload | Description |
129
- |-------|---------|-------------|
130
- | `dynamic-content:open` | `DynamicContent \| null` | Fired when user requests to insert dynamic content |
131
- | `back` | - | Fired when user clicks the back button |
132
- | `save:start` | - | Fired when the save process begins |
133
- | `save:complete` | `Omit<Template, 'forceRecreate'>` | Fired when template is successfully saved |
134
-
135
- ### Guido Exposed Methods
136
- ```typescript
137
- dynamicContent.insert(DynamicContent);
138
- dynamicContent.close();
139
- ```
140
67
 
141
- ### Guido Interfaces
68
+ ### GuidoConfig Interface
142
69
 
143
70
  ```typescript
144
71
  interface GuidoConfig {
145
72
  translationsPath: string;
146
- htmlCompilerRules?: CompilerRule[];
147
- ignoreDefaultHtmlCompilerRules?: boolean;
148
- features: {
149
- dynamicContent: boolean;
150
- saveAsTemplate: boolean;
151
- versionHistory: boolean;
152
- };
73
+ htmlCompilerRules: CompilerRule[];
74
+ ignoreDefaultHtmlCompilerRules: boolean;
153
75
  }
154
76
  ```
155
77
 
@@ -158,25 +80,6 @@ interface GuidoConfig {
158
80
  | `translationsPath` | `string` | `'window.trans.en'` | JavaScript path to the translations object |
159
81
  | `htmlCompilerRules` | `CompilerRule[]` | `[]` | Additional compiler rules to apply to HTML content. See [HTML Compiler Rules](#-html-compiler-rules) section below |
160
82
  | `ignoreDefaultHtmlCompilerRules` | `boolean` | `false` | Skip default compiler rules and only use custom rules. Default rules: `src/config/compiler/htmlCompilerRules.ts` |
161
- | `features` | `Features` | `{ dynamicContent: true, saveAsTemplate: true, versionHistory: true }` | Feature flags to enable/disable editor functionality |
162
- | `features.dynamicContent` | `boolean` | `true` | Enable dynamic content insertion feature |
163
- | `features.saveAsTemplate` | `boolean` | `true` | Enable save as template feature |
164
- | `features.versionHistory` | `boolean` | `true` | Enable version history feature |
165
-
166
- ```typescript
167
- interface DynamicContent {
168
- value: string;
169
- text: string;
170
- fallback?: string;
171
- }
172
- ```
173
- ---
174
-
175
- | Property | Type | Default | Description |
176
- |----------|------|---------|-------------|
177
- | `value` | `string` | '' | Value of the dynamic content |
178
- | `text` | `string` | '' | Visible value of the dynamic content |
179
- | `fallback?` | `string` | '' | Fallback value of the dynamic content. Optional |
180
83
 
181
84
  ### TypeScript Types
182
85
 
@@ -191,6 +94,19 @@ import type { GuidoConfig } from '@useinsider/guido';
191
94
  import type { StripoEventType } from '@useinsider/guido';
192
95
  ```
193
96
 
97
+ ### StripoEventType
98
+
99
+ ```typescript
100
+ type StripoEventType =
101
+ | 'save'
102
+ | 'export'
103
+ | 'close'
104
+ | 'autosave'
105
+ | 'publish'
106
+ | 'export:requested'
107
+ | 'export:ready';
108
+ ```
109
+
194
110
  ## 🔨 HTML Compiler Rules
195
111
 
196
112
  Guido includes a powerful HTML compiler system that allows you to transform HTML content with custom rules. You can define additional rules and optionally ignore the default rules.
@@ -269,11 +185,6 @@ Define complex transformation logic with a custom processor function.
269
185
  ```typescript
270
186
  const guidoConfig = {
271
187
  translationsPath: 'window.trans.en',
272
- features: {
273
- dynamicContent: true,
274
- saveAsTemplate: true,
275
- versionHistory: false // Disable version history
276
- },
277
188
  htmlCompilerRules: [
278
189
  {
279
190
  id: 'replace-domain',
@@ -302,11 +213,6 @@ const guidoConfig = {
302
213
  ```typescript
303
214
  const guidoConfig = {
304
215
  translationsPath: 'window.trans.en',
305
- features: {
306
- dynamicContent: true,
307
- saveAsTemplate: true,
308
- versionHistory: true
309
- },
310
216
  ignoreDefaultHtmlCompilerRules: true, // Skip all default rules
311
217
  htmlCompilerRules: [
312
218
  // Only your custom rules will be applied
@@ -436,87 +342,6 @@ src/
436
342
  └── library.ts # Main export
437
343
  ```
438
344
 
439
- ## 🔌 Provide/Inject Utilities
440
-
441
- Guido includes type-safe utilities for Vue's provide/inject system to facilitate dependency injection between components.
442
-
443
- ### useProvideInject
444
-
445
- The `useProvideInject` composable provides two helper functions for type-safe dependency injection:
446
-
447
- #### Basic Usage
448
-
449
- ```typescript
450
- // Parent component
451
- import { provideValue } from '@useinsider/guido';
452
- import { InjectionKey } from 'vue';
453
-
454
- // Define a typed injection key
455
- const MyServiceKey: InjectionKey<MyService> = Symbol('MyService');
456
-
457
- // Provide the value
458
- const myService = new MyService();
459
- provideValue(MyServiceKey, myService);
460
-
461
- // Child component
462
- import { useInjectedValue } from '@useinsider/guido';
463
-
464
- // Inject the value with type safety
465
- const myService = useInjectedValue(MyServiceKey);
466
- ```
467
-
468
- #### With Default Value
469
-
470
- ```typescript
471
- // Inject with a fallback value
472
- const myService = useInjectedValue(MyServiceKey, new DefaultService());
473
- ```
474
-
475
- #### Error Handling
476
-
477
- The `useInjectedValue` function will throw a descriptive error if no provider is found and no default value is provided:
478
-
479
- ```typescript
480
- // This will throw an error if no provider exists
481
- try {
482
- const myService = useInjectedValue(MyServiceKey);
483
- } catch (error) {
484
- console.error('No provider found for MyService');
485
- }
486
- ```
487
-
488
- ### API Reference
489
-
490
- #### `provideValue`
491
-
492
- ```typescript
493
- provideValue<T>(key: InjectionKey<T>, value: T): void
494
- ```
495
-
496
- Provides a value using Vue's provide system with type safety.
497
-
498
- | Parameter | Type | Description |
499
- |-----------|------|-------------|
500
- | `key` | `InjectionKey<T>` | The typed injection key |
501
- | `value` | `T` | The value to provide |
502
-
503
- #### `useInjectedValue`
504
-
505
- ```typescript
506
- useInjectedValue<T>(key: InjectionKey<T>, defaultValue?: T): T
507
- ```
508
-
509
- Injects a value using Vue's inject system with type safety and error handling.
510
-
511
- | Parameter | Type | Required | Description |
512
- |-----------|------|----------|-------------|
513
- | `key` | `InjectionKey<T>` | ✅ | The typed injection key |
514
- | `defaultValue` | `T` | ⚪ | Optional fallback value |
515
-
516
- **Returns:** `T` - The injected value
517
-
518
- **Throws:** `Error` - When no provider is found and no default value is provided
519
-
520
345
  ## 🌐 i18n
521
346
  Before running the project, it sends to request to inone.useinsider.com/translations and writes the JSON file into - [trans.json](src/mock/responses/trans.json).
522
347
  It allows to use production or local translations on your code. 🚀
@@ -530,34 +355,6 @@ const trans = useTranslations();
530
355
  trans('foo.bar')
531
356
  ```
532
357
 
533
- ## 📦 Local Building (Recommended)
534
-
535
- Run this commands if you want to test the package on your local before sending to NPM.
536
- ```sh
537
- bun run build
538
- ```
539
-
540
- Since bun does not have packaging yet, use npm here: 🥲
541
- ```sh
542
- npm pack
543
- ```
544
-
545
- It'll crate like `useinsider-guido-1.0.0.tgz` file.
546
-
547
- Move this file to your project path like: `email-fe` via:
548
- ```sh
549
- cp useinsider-guido-1.0.0.tgz ../email-fe
550
- ```
551
-
552
- Install the file to your project:
553
- ```sh
554
- npm i ./useinsider-guido-1.0.0.tgz
555
- ```
556
-
557
- Then you just need to rebuild to your project or restart the Container. 🎉
558
-
559
- For Future, we can create a shell script for it. Feel free to help 🙃
560
-
561
358
  ## 📦 Build Output
562
359
 
563
360
  The library builds to multiple formats:
@@ -603,4 +400,8 @@ ISC License
603
400
  - Master Version Generator should be fixed.
604
401
  - Playwright integration
605
402
  - Commitlint & Precommit Hooks integration
403
+ - We need to emit save event and we should return template config to it
404
+ - Default template should be same with production
405
+ - Open Guido with saved template
406
+ - Get User ID, Email and Unique Template ID as dynamic from props
606
407
  - Get Pre-built display conditions from API
@@ -1,44 +1,6 @@
1
1
  import type { CompilerRule } from './html-compiler';
2
- type Features = {
3
- dynamicContent?: boolean;
4
- saveAsTemplate?: boolean;
5
- versionHistory?: boolean;
6
- };
7
- type Partner = {
8
- partnerName: string;
9
- productType: number;
10
- messageType: number;
11
- };
12
2
  export type GuidoConfig = {
13
3
  translationsPath: string;
14
4
  htmlCompilerRules?: CompilerRule[];
15
5
  ignoreDefaultHtmlCompilerRules?: boolean;
16
- emailHeader: EmailHeader;
17
- partner?: Partner;
18
- features?: Features;
19
- };
20
- export type DynamicContent = {
21
- value: string;
22
- text: string;
23
- fallback?: string;
24
- };
25
- export interface EmailHeader {
26
- senderName: string;
27
- subject: string;
28
- }
29
- export interface TooltipOptions {
30
- id: string;
31
- dynamicPosition: boolean;
32
- staticPosition: 'top center' | 'top left' | 'top right' | 'bottom center' | 'bottom left' | 'bottom right' | 'right center' | 'right top' | 'right bottom' | 'left center' | 'left top' | 'left bottom';
33
- iconStatus: boolean;
34
- offset?: {
35
- x: number;
36
- y: number;
37
- };
38
- preventXss?: boolean;
39
- }
40
- export type MergeTag = {
41
- label: string;
42
- value: string;
43
6
  };
44
- export {};
package/dist/App.vue.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import '../node_modules/@useinsider/design-system-vue/dist/design-system-vue.css';
2
- 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
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
3
3
  export default _default;
@@ -1,29 +1,13 @@
1
- import type { DynamicContent, GuidoConfig } from '@@/Types/generic';
2
- import type { SavedTemplateDetails } from '@@/Types/stripo';
1
+ import type { GuidoConfig } from '@@/Types/generic';
3
2
  type __VLS_Props = {
4
- templateId: string;
3
+ emailId: string;
5
4
  userId: string;
6
- messageType?: number;
7
5
  partnerName?: string;
8
- productType?: number;
6
+ productType?: string;
9
7
  username?: string;
10
- html?: string;
11
- css?: string;
12
- preselectedDynamicContentList: DynamicContent[];
13
8
  guidoConfig: GuidoConfig;
14
9
  };
15
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {
16
- dynamicContent: {
17
- insert: (data: DynamicContent) => void;
18
- close: () => void;
19
- };
20
- hasChanges: import("vue").ComputedRef<boolean>;
21
- }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
22
- "dynamic-content:open": (detail: DynamicContent | null) => void;
23
- back: () => void;
24
- "save:start": () => void;
25
- "save:complete": (data: Omit<SavedTemplateDetails, "forceRecreate">) => void;
26
- }, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
10
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
27
11
  export default _default;
28
12
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
13
  type __VLS_TypePropsToOption<T> = {
@@ -1,18 +1,18 @@
1
- import i from "./Guido.vue2.js";
1
+ import o from "./Guido.vue2.js";
2
2
  /* empty css */
3
- import t from "../_virtual/_plugin-vue2_normalizer.js";
4
- var a = function() {
5
- var o = this, e = o._self._c, r = o._self._setupProxy;
6
- return e("div", { staticClass: "guido-editor__wrapper" }, [e(r.HeaderWrapper), r.editorStore.isPreviewModeOpen ? e(r.PreviewContainer) : o._e(), e("div", { directives: [{ name: "show", rawName: "v-show", value: !r.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", attrs: { id: "guido-editor" } }), e(r.SaveAsTemplateDrawer), e(r.LoadingWrapper)], 1);
7
- }, s = [], d = /* @__PURE__ */ t(
8
- i,
9
- a,
3
+ import i from "../_virtual/_plugin-vue2_normalizer.js";
4
+ var s = function() {
5
+ var e = this, r = e._self._c, t = e._self._setupProxy;
6
+ return r("div", { staticClass: "guido-editor__wrapper" }, [r(t.HeaderWrapper), r("div", { staticClass: "guido-editor__container", attrs: { id: "guido-editor" } })], 1);
7
+ }, _ = [], a = /* @__PURE__ */ i(
8
+ o,
10
9
  s,
10
+ _,
11
11
  !1,
12
12
  null,
13
- "384396b5"
13
+ "8e229594"
14
14
  );
15
- const c = d.exports;
15
+ const f = a.exports;
16
16
  export {
17
- c as default
17
+ f as default
18
18
  };
@@ -1,102 +1,43 @@
1
- import { defineComponent as I, defineAsyncComponent as L, computed as P, onMounted as _, onUnmounted as k } from "vue";
2
- import { provideGuidoActions as A } from "../composables/useGuidoActions.js";
3
- import { usePartner as N } from "../composables/usePartner.js";
4
- import { useStripo as U } from "../composables/useStripo.js";
5
- import { DefaultUsername as W, DefaultMessageType as x, DefaultGuidoConfig as M } from "../enums/defaults.js";
6
- import z from "./organisms/header/HeaderWrapper.vue.js";
7
- import B from "./organisms/LoadingWrapper.vue.js";
8
- import F from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
9
- import { useStripoApi as H } from "../services/stripoApi.js";
10
- import { useDynamicContentStore as K } from "../stores/dynamic-content.js";
11
- import { useEditorStore as R } from "../stores/editor.js";
12
- import { usePreviewStore as j } from "../stores/preview.js";
13
- import q from "../node_modules/lodash-es/merge.js";
14
- const ie = /* @__PURE__ */ I({
1
+ import { defineComponent as f, onMounted as c } from "vue";
2
+ import { usePartner as g } from "../composables/usePartner.js";
3
+ import { useStripo as _ } from "../composables/useStripo.js";
4
+ import { useTemplates as y } from "../composables/useTemplates.js";
5
+ import { DefaultUsername as C, DefaultGuidoConfig as T } from "../enums/defaults.js";
6
+ import w from "./organisms/header/HeaderWrapper.vue.js";
7
+ const h = /* @__PURE__ */ f({
15
8
  __name: "Guido",
16
9
  props: {
17
- templateId: null,
10
+ emailId: null,
18
11
  userId: null,
19
- messageType: null,
20
12
  partnerName: null,
21
13
  productType: null,
22
14
  username: null,
23
- html: null,
24
- css: null,
25
- preselectedDynamicContentList: null,
26
15
  guidoConfig: null
27
16
  },
28
- emits: ["dynamic-content:open", "back", "save:start", "save:complete"],
29
- setup(b, { expose: E, emit: t }) {
30
- const o = b, T = L(
31
- () => import("./organisms/email-preview/PreviewContainer.vue.js")
32
- ), n = K(), a = R(), G = j(), c = P(() => a.hasChanges), r = o.preselectedDynamicContentList || [], { getPartnerName: m, getProductType: d } = N(), {
33
- templateId: l,
34
- userId: p,
35
- guidoConfig: u,
36
- html: g = "",
37
- css: f = "",
38
- partnerName: i = m(),
39
- productType: s = d(),
40
- messageType: y = x,
41
- username: C = W
17
+ setup(d) {
18
+ const o = d, { getPartnerName: r, getProductType: t } = g(), {
19
+ emailId: n,
20
+ userId: i,
21
+ guidoConfig: a,
22
+ partnerName: u = r(),
23
+ productType: p = t(),
24
+ username: m = C
42
25
  } = o;
43
- window.GuidoConfig = q(M, u), window.GuidoConfig.partner = {
44
- partnerName: i,
45
- productType: s,
46
- messageType: y
26
+ window.GuidoConfig = {
27
+ ...T,
28
+ ...a
47
29
  };
48
- const { initPlugin: v } = U({
49
- emailId: l,
50
- userId: p,
51
- username: C,
52
- partnerName: i,
53
- productType: s,
54
- preselectedDynamicContentList: r
55
- }), { getDefaultTemplate: w } = H();
56
- A({
57
- onBack: () => {
58
- console.debug("guido:back"), t("back");
59
- },
60
- onSaveStart: () => {
61
- console.debug("guido:save:start"), t("save:start");
62
- },
63
- onSaveComplete: (e) => {
64
- console.debug("guido:save:complete", e), t("save:complete", e);
65
- }
66
- });
67
- const D = (e) => {
68
- console.debug("dynamic-content:close", e), n.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
69
- }, S = () => {
70
- console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
71
- };
72
- return _(async () => {
73
- console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow");
30
+ const { initPlugin: l } = _({ emailId: n, userId: i, username: m, partnerName: u, productType: p }), { getDefaultTemplate: s } = y();
31
+ return c(async () => {
74
32
  try {
75
- let e = {
76
- html: g,
77
- css: f,
78
- forceRecreate: !0
79
- // TODO: It should be false for old templates. We will communicate with Stripo
80
- };
81
- e.html || (e = await w()), await v(e), n.selectedDynamicContentList = r;
33
+ const e = await s();
34
+ await l(e);
82
35
  } catch (e) {
83
36
  console.error("Failed to initialize Stripo editor:", e);
84
37
  }
85
- document.addEventListener("dynamic-content:open", (e) => {
86
- const h = e;
87
- console.debug("dynamic-content:open", h.detail), t("dynamic-content:open", h.detail);
88
- });
89
- }), k(() => {
90
- window.UIEditor.removeEditor();
91
- }), E({
92
- dynamicContent: {
93
- insert: D,
94
- close: S
95
- },
96
- hasChanges: c
97
- }), { __sfc: !0, PreviewContainer: T, dynamicContentStore: n, props: o, editorStore: a, previewStore: G, hasChanges: c, preselectedDynamicContentList: r, getPartnerName: m, getProductType: d, templateId: l, userId: p, guidoConfig: u, html: g, css: f, partnerName: i, productType: s, messageType: y, username: C, emit: t, initPlugin: v, getDefaultTemplate: w, insertDynamicContent: D, closeDynamicContent: S, HeaderWrapper: z, LoadingWrapper: B, SaveAsTemplateDrawer: F };
38
+ }), { __sfc: !0, props: o, getPartnerName: r, getProductType: t, emailId: n, userId: i, guidoConfig: a, partnerName: u, productType: p, username: m, initPlugin: l, getDefaultTemplate: s, HeaderWrapper: w };
98
39
  }
99
40
  });
100
41
  export {
101
- ie as default
42
+ h as default
102
43
  };
@@ -1,11 +1,11 @@
1
- import n from "./LeftSlot.vue2.js";
1
+ import r from "./LeftSlot.vue2.js";
2
2
  import o from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var r = function() {
4
- var e = this, s = e._self._c, t = e._self._setupProxy;
5
- return s("div", { staticClass: "d-f a-i-c" }, [s(t.InButtonV2, { staticClass: "p-2", attrs: { id: "guido__back-button", "label-text": "Back", "left-icon": "line-arrow-left", styling: "text", type: "secondary" }, on: { click: t.handleBack } }), t.editorStore.isVersionHistoryOpen ? s(t.RestoreButton, { staticClass: "ml-3" }) : e._e()], 1);
3
+ var n = function() {
4
+ var t = this, e = t._self._c, s = t._self._setupProxy;
5
+ return e("div", { staticClass: "d-f a-i-c" }, [e(s.InButtonV2, { staticClass: "p-2", attrs: { id: "guido__back-button", "label-text": "Back", "left-icon": "line-arrow-left", styling: "text", type: "secondary" } }), s.editorStore.isVersionHistoryOpen ? e(s.RestoreButton, { staticClass: "ml-3" }) : t._e()], 1);
6
6
  }, a = [], i = /* @__PURE__ */ o(
7
- n,
8
7
  r,
8
+ n,
9
9
  a,
10
10
  !1,
11
11
  null,
@@ -1,15 +1,13 @@
1
- import { defineComponent as r } from "vue";
2
- import { useBack as e } from "../../../composables/useGuidoActions.js";
3
- import { useEditorStore as m } from "../../../stores/editor.js";
4
- import { InButtonV2 as n } from "@useinsider/design-system-vue";
5
- import s from "./version-history/RestoreButton.vue.js";
6
- const c = /* @__PURE__ */ r({
1
+ import { defineComponent as t } from "vue";
2
+ import { useEditorStore as o } from "../../../stores/editor.js";
3
+ import { InButtonV2 as r } from "@useinsider/design-system-vue";
4
+ import e from "./version-history/RestoreButton.vue.js";
5
+ const _ = /* @__PURE__ */ t({
7
6
  __name: "LeftSlot",
8
- setup(f) {
9
- const o = m(), t = e();
10
- return { __sfc: !0, editorStore: o, handleBack: t, InButtonV2: n, RestoreButton: s };
7
+ setup(m) {
8
+ return { __sfc: !0, editorStore: o(), InButtonV2: r, RestoreButton: e };
11
9
  }
12
10
  });
13
11
  export {
14
- c as default
12
+ _ as default
15
13
  };
@@ -1,17 +1,17 @@
1
- import i from "./MiddleSlot.vue2.js";
2
- import s from "../../../_virtual/_plugin-vue2_normalizer.js";
1
+ import s from "./MiddleSlot.vue2.js";
2
+ import i from "../../../_virtual/_plugin-vue2_normalizer.js";
3
3
  var n = function() {
4
4
  var e = this, o = e._self._c, t = e._self._setupProxy;
5
- return t.editorStore.isVersionHistoryOpen ? o("div", { staticClass: "d-f" }, [o(t.VersionHistory), o(t.VersionHistoryViewOptions)], 1) : o("div", { staticClass: "d-f" }, [o(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isUndoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__undo-button"), "tooltip-text": t.trans("action-builder.undo") } }), o(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isRedoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__redo-button"), "tooltip-text": t.trans("action-builder.redo") } }), o(t.InButtonV2, { attrs: { id: "guido__code-button", "data-testid": "Code Editor", "left-icon": "line-code", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isCodeEditorButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__code-button"), "tooltip-text": t.codeEditorTooltipText } }), o(t.InButtonV2, { attrs: { id: "guido__preview-button", "left-icon": "line-show-on", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isPreviewButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isPreviewModeOpen, "tooltip-options": t.getTooltipOptions("guido__preview-button"), "tooltip-text": t.previewTooltipText }, on: { click: t.handlePreviewToggle } }), o(t.ViewOptions, { staticClass: "ml-3" }), t.editorStore.isPreviewModeOpen ? o(t.AmpToggle) : e._e()], 1);
6
- }, d = [], l = /* @__PURE__ */ s(
7
- i,
5
+ return t.editorStore.isVersionHistoryOpen ? o("div", { staticClass: "d-f" }, [o(t.VersionHistory), o(t.VersionHistoryViewOptions)], 1) : o("div", { staticClass: "d-f" }, [o(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "label-text-status": !1 } }), o(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "label-text-status": !1 } }), o(t.InButtonV2, { attrs: { id: "guido__code-button", "left-icon": "line-code", styling: "ghost", "tooltip-text": "Code Editor", type: "secondary", "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__code-button") } }), o(t.InButtonV2, { attrs: { id: "guido__preview-button", "left-icon": "line-show-on", styling: "ghost", type: "secondary", "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__preview-button"), "tooltip-text": t.trans("newsletter.email-preview") } }), o(t.ViewOptions, { staticClass: "ml-3" })], 1);
6
+ }, l = [], r = /* @__PURE__ */ i(
7
+ s,
8
8
  n,
9
- d,
9
+ l,
10
10
  !1,
11
11
  null,
12
12
  null
13
13
  );
14
- const p = l.exports;
14
+ const p = r.exports;
15
15
  export {
16
16
  p as default
17
17
  };