@useinsider/guido 1.0.0-beta.3012b2b → 1.0.0-beta.30f3236

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 (291) hide show
  1. package/README.md +30 -240
  2. package/dist/@types/generic.d.ts +0 -39
  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 +12 -12
  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 +9 -9
  10. package/dist/components/organisms/header/MiddleSlot.vue2.js +17 -16
  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 +14 -30
  14. package/dist/components/organisms/header/ViewOptions.vue.d.ts +1 -1
  15. package/dist/components/organisms/header/ViewOptions.vue.js +8 -8
  16. package/dist/components/organisms/header/ViewOptions.vue2.js +10 -30
  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/useExport.js +9 -10
  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 +41 -62
  31. package/dist/composables/useTemplates.d.ts +5 -0
  32. package/dist/composables/useTemplates.js +27 -0
  33. package/dist/composables/useToaster.d.ts +16 -1
  34. package/dist/composables/useToaster.js +30 -24
  35. package/dist/composables/useTranslations.js +2 -3
  36. package/dist/composables/useVersionHistoryApi.js +10 -11
  37. package/dist/config/compiler/htmlCompilerRules.js +6 -6
  38. package/dist/enums/defaults.d.ts +1 -4
  39. package/dist/enums/defaults.js +6 -22
  40. package/dist/guido.css +1 -1
  41. package/dist/node_modules/lodash-es/_isMasked.js +2 -2
  42. package/dist/services/stripoApi.d.ts +1 -2
  43. package/dist/services/stripoApi.js +7 -27
  44. package/dist/static/styles/components/wide-panel.css.js +0 -4
  45. package/dist/static/templates/default/index.html.js +5 -0
  46. package/dist/static/templates/default/style.css.js +119 -0
  47. package/dist/stores/editor.d.ts +0 -3
  48. package/dist/stores/editor.js +3 -6
  49. package/package.json +3 -4
  50. package/dist/@types/save-as-template.d.ts +0 -29
  51. package/dist/_virtual/AddCustomFont.js +0 -4
  52. package/dist/_virtual/AiAssistantValueType.js +0 -4
  53. package/dist/_virtual/BackgroundColorBuiltInControl.js +0 -4
  54. package/dist/_virtual/BackgroundImageBuiltInControl.js +0 -4
  55. package/dist/_virtual/Block.js +0 -4
  56. package/dist/_virtual/BlockAttributes.js +0 -4
  57. package/dist/_virtual/BlockCompositionType.js +0 -4
  58. package/dist/_virtual/BlockPaddingsBuiltInControl.js +0 -4
  59. package/dist/_virtual/BlockRenderer.js +0 -4
  60. package/dist/_virtual/BlockType.js +0 -4
  61. package/dist/_virtual/BlocksPanel.js +0 -4
  62. package/dist/_virtual/BuiltInControl.js +0 -4
  63. package/dist/_virtual/BuiltInControlTypes.js +0 -4
  64. package/dist/_virtual/ButtonBorderBuiltInControl.js +0 -4
  65. package/dist/_virtual/ButtonColorBuiltInControl.js +0 -4
  66. package/dist/_virtual/ButtonFontColorBuiltInControl.js +0 -4
  67. package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +0 -4
  68. package/dist/_virtual/ButtonTextBuiltInControl.js +0 -4
  69. package/dist/_virtual/ContextAction.js +0 -4
  70. package/dist/_virtual/ContextActionType.js +0 -4
  71. package/dist/_virtual/Control.js +0 -4
  72. package/dist/_virtual/EditorStatePropertyType.js +0 -4
  73. package/dist/_virtual/Extension.js +0 -4
  74. package/dist/_virtual/ExtensionBuilder.js +0 -4
  75. package/dist/_virtual/FontFamilyBuiltInControl.js +0 -4
  76. package/dist/_virtual/LinkColorBuiltInControl.js +0 -4
  77. package/dist/_virtual/ModificationDescription.js +0 -4
  78. package/dist/_virtual/PanelPosition.js +0 -4
  79. package/dist/_virtual/PreviewDeviceMode.js +0 -4
  80. package/dist/_virtual/SettingsPanelRegistry.js +0 -4
  81. package/dist/_virtual/SettingsPanelTab.js +0 -4
  82. package/dist/_virtual/SettingsTab.js +0 -4
  83. package/dist/_virtual/StructureBorderBuiltInControl.js +0 -4
  84. package/dist/_virtual/StructurePaddingsBuiltInControl.js +0 -4
  85. package/dist/_virtual/TextColorBuiltInControl.js +0 -4
  86. package/dist/_virtual/TextLineSpacingBuiltInControl.js +0 -4
  87. package/dist/_virtual/TextSizeBuiltInControl.js +0 -4
  88. package/dist/_virtual/TextStyleBuiltInControl.js +0 -4
  89. package/dist/_virtual/UIElement.js +0 -4
  90. package/dist/_virtual/UIElementTagRegistry.js +0 -4
  91. package/dist/_virtual/UIElementType.js +0 -4
  92. package/dist/_virtual/UIElementsAttributes.js +0 -4
  93. package/dist/_virtual/index.js +0 -5
  94. package/dist/_virtual/index2.js +0 -4
  95. package/dist/components/organisms/base/Toaster.vue.d.ts +0 -2
  96. package/dist/components/organisms/base/Toaster.vue.js +0 -17
  97. package/dist/components/organisms/base/Toaster.vue2.js +0 -15
  98. package/dist/components/organisms/email-preview/PreviewContainer.vue.d.ts +0 -2
  99. package/dist/components/organisms/email-preview/PreviewContainer.vue.js +0 -19
  100. package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +0 -19
  101. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -4
  102. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +0 -22
  103. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +0 -30
  104. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -2
  105. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +0 -19
  106. package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +0 -29
  107. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -2
  108. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +0 -22
  109. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +0 -31
  110. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -2
  111. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +0 -17
  112. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +0 -20
  113. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -2
  114. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +0 -18
  115. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue2.js +0 -25
  116. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -4
  117. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +0 -19
  118. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +0 -23
  119. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -4
  120. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +0 -20
  121. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +0 -21
  122. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -2
  123. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +0 -17
  124. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +0 -22
  125. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +0 -2
  126. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.js +0 -20
  127. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +0 -63
  128. package/dist/components/wrappers/WpDrawer.vue.d.ts +0 -63
  129. package/dist/components/wrappers/WpDrawer.vue.js +0 -25
  130. package/dist/components/wrappers/WpDrawer.vue2.js +0 -23
  131. package/dist/components/wrappers/WpModal.vue.d.ts +0 -65
  132. package/dist/components/wrappers/WpModal.vue.js +0 -27
  133. package/dist/components/wrappers/WpModal.vue2.js +0 -22
  134. package/dist/composables/useCodeEditorApi.d.ts +0 -4
  135. package/dist/composables/useCodeEditorApi.js +0 -11
  136. package/dist/composables/useConfig.d.ts +0 -4
  137. package/dist/composables/useConfig.js +0 -7
  138. package/dist/composables/useDebounce.d.ts +0 -4
  139. package/dist/composables/useDebounce.js +0 -12
  140. package/dist/composables/useGuidoActions.d.ts +0 -46
  141. package/dist/composables/useGuidoActions.js +0 -37
  142. package/dist/composables/usePreviewMode.d.ts +0 -5
  143. package/dist/composables/usePreviewMode.js +0 -31
  144. package/dist/composables/useProvideInject.d.ts +0 -14
  145. package/dist/composables/useProvideInject.js +0 -17
  146. package/dist/composables/useResponsivePreview.d.ts +0 -5
  147. package/dist/composables/useResponsivePreview.js +0 -86
  148. package/dist/composables/useValidation.d.ts +0 -56
  149. package/dist/composables/useValidation.js +0 -19
  150. package/dist/composables/validators/saveAsTemplate.d.ts +0 -31
  151. package/dist/composables/validators/saveAsTemplate.js +0 -24
  152. package/dist/enums/preview.d.ts +0 -13
  153. package/dist/enums/preview.js +0 -23
  154. package/dist/enums/toaster.d.ts +0 -5
  155. package/dist/enums/toaster.js +0 -4
  156. package/dist/extensions/DynamicContent/dynamic-content-modal.d.ts +0 -6
  157. package/dist/extensions/DynamicContent/dynamic-content-modal.js +0 -27
  158. package/dist/extensions/DynamicContent/dynamic-content.css.js +0 -24
  159. package/dist/extensions/DynamicContent/dynamic-content.d.ts +0 -16
  160. package/dist/extensions/DynamicContent/dynamic-content.js +0 -61
  161. package/dist/extensions/DynamicContent/extension.d.ts +0 -2
  162. package/dist/extensions/DynamicContent/extension.js +0 -11
  163. package/dist/mock/api/default-template.d.ts +0 -2
  164. package/dist/mock/api/template-library.d.ts +0 -2
  165. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +0 -51
  166. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +0 -52
  167. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +0 -41
  168. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +0 -18
  169. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +0 -32
  170. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +0 -18
  171. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +0 -8
  172. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +0 -13
  173. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +0 -34
  174. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +0 -13
  175. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +0 -13
  176. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +0 -104
  177. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +0 -13
  178. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +0 -13
  179. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +0 -13
  180. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +0 -13
  181. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +0 -13
  182. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +0 -13
  183. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +0 -45
  184. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +0 -43
  185. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +0 -46
  186. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +0 -44
  187. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +0 -22
  188. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +0 -46
  189. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +0 -46
  190. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +0 -45
  191. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +0 -45
  192. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +0 -45
  193. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +0 -20
  194. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +0 -43
  195. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +0 -45
  196. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +0 -18
  197. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +0 -32
  198. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +0 -46
  199. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +0 -44
  200. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +0 -43
  201. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +0 -43
  202. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +0 -45
  203. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +0 -43
  204. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +0 -266
  205. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +0 -26
  206. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +0 -22
  207. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +0 -18
  208. package/dist/node_modules/@vueuse/shared/index.js +0 -45
  209. package/dist/node_modules/lodash-es/_Stack.js +0 -18
  210. package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
  211. package/dist/node_modules/lodash-es/_apply.js +0 -16
  212. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -19
  213. package/dist/node_modules/lodash-es/_assignMergeValue.js +0 -8
  214. package/dist/node_modules/lodash-es/_assignValue.js +0 -10
  215. package/dist/node_modules/lodash-es/_baseAssignValue.js +0 -12
  216. package/dist/node_modules/lodash-es/_baseCreate.js +0 -17
  217. package/dist/node_modules/lodash-es/_baseFor.js +0 -5
  218. package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
  219. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -12
  220. package/dist/node_modules/lodash-es/_baseKeysIn.js +0 -15
  221. package/dist/node_modules/lodash-es/_baseMerge.js +0 -20
  222. package/dist/node_modules/lodash-es/_baseMergeDeep.js +0 -31
  223. package/dist/node_modules/lodash-es/_baseRest.js +0 -9
  224. package/dist/node_modules/lodash-es/_baseSetToString.js +0 -14
  225. package/dist/node_modules/lodash-es/_baseTimes.js +0 -8
  226. package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
  227. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  228. package/dist/node_modules/lodash-es/_cloneBuffer.js +0 -9
  229. package/dist/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  230. package/dist/node_modules/lodash-es/_copyArray.js +0 -9
  231. package/dist/node_modules/lodash-es/_copyObject.js +0 -14
  232. package/dist/node_modules/lodash-es/_createAssigner.js +0 -15
  233. package/dist/node_modules/lodash-es/_createBaseFor.js +0 -13
  234. package/dist/node_modules/lodash-es/_defineProperty.js +0 -11
  235. package/dist/node_modules/lodash-es/_getPrototype.js +0 -5
  236. package/dist/node_modules/lodash-es/_initCloneObject.js +0 -9
  237. package/dist/node_modules/lodash-es/_isIndex.js +0 -8
  238. package/dist/node_modules/lodash-es/_isIterateeCall.js +0 -13
  239. package/dist/node_modules/lodash-es/_isPrototype.js +0 -8
  240. package/dist/node_modules/lodash-es/_nativeKeysIn.js +0 -10
  241. package/dist/node_modules/lodash-es/_nodeUtil.js +0 -11
  242. package/dist/node_modules/lodash-es/_overArg.js +0 -8
  243. package/dist/node_modules/lodash-es/_overRest.js +0 -15
  244. package/dist/node_modules/lodash-es/_safeGet.js +0 -7
  245. package/dist/node_modules/lodash-es/_setToString.js +0 -6
  246. package/dist/node_modules/lodash-es/_shortOut.js +0 -16
  247. package/dist/node_modules/lodash-es/_stackClear.js +0 -7
  248. package/dist/node_modules/lodash-es/_stackDelete.js +0 -7
  249. package/dist/node_modules/lodash-es/_stackGet.js +0 -6
  250. package/dist/node_modules/lodash-es/_stackHas.js +0 -6
  251. package/dist/node_modules/lodash-es/_stackSet.js +0 -17
  252. package/dist/node_modules/lodash-es/constant.js +0 -8
  253. package/dist/node_modules/lodash-es/identity.js +0 -6
  254. package/dist/node_modules/lodash-es/isArguments.js +0 -10
  255. package/dist/node_modules/lodash-es/isArray.js +0 -4
  256. package/dist/node_modules/lodash-es/isArrayLike.js +0 -8
  257. package/dist/node_modules/lodash-es/isArrayLikeObject.js +0 -8
  258. package/dist/node_modules/lodash-es/isBuffer.js +0 -6
  259. package/dist/node_modules/lodash-es/isLength.js +0 -7
  260. package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
  261. package/dist/node_modules/lodash-es/isPlainObject.js +0 -16
  262. package/dist/node_modules/lodash-es/isTypedArray.js +0 -7
  263. package/dist/node_modules/lodash-es/keysIn.js +0 -9
  264. package/dist/node_modules/lodash-es/merge.js +0 -8
  265. package/dist/node_modules/lodash-es/stubFalse.js +0 -6
  266. package/dist/node_modules/lodash-es/toPlainObject.js +0 -8
  267. package/dist/node_modules/valibot/dist/index.js +0 -190
  268. package/dist/node_modules/vue-demi/lib/index.js +0 -7
  269. package/dist/services/templateLibraryApi.d.ts +0 -7
  270. package/dist/services/templateLibraryApi.js +0 -87
  271. package/dist/static/assets/inbox-mockup.svg.js +0 -4
  272. package/dist/static/assets/phone-mockup.svg.js +0 -4
  273. package/dist/static/styles/customEditorStyle.css.js +0 -18
  274. package/dist/stores/dynamic-content.d.ts +0 -27
  275. package/dist/stores/dynamic-content.js +0 -23
  276. package/dist/stores/preview.d.ts +0 -46
  277. package/dist/stores/preview.js +0 -53
  278. package/dist/stores/save-as-template.d.ts +0 -73
  279. package/dist/stores/save-as-template.js +0 -48
  280. package/dist/stores/toaster.d.ts +0 -18
  281. package/dist/stores/toaster.js +0 -27
  282. package/dist/utils/arrayUtil.d.ts +0 -1
  283. package/dist/utils/arrayUtil.js +0 -10
  284. package/dist/utils/base64.d.ts +0 -1
  285. package/dist/utils/base64.js +0 -7
  286. package/dist/utils/genericUtil.d.ts +0 -3
  287. package/dist/utils/genericUtil.js +0 -11
  288. package/dist/utils/templatePreparation.d.ts +0 -4
  289. package/dist/utils/templatePreparation.js +0 -33
  290. package/dist/utils/tooltipUtils.d.ts +0 -2
  291. 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,52 +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
- useHeader: boolean
149
- emailHeader: {
150
- senderName: string;
151
- subject: string;
152
- };
153
- partner: {
154
- partnerName: string;
155
- productType: number;
156
- messageType: number;
157
- };
158
- features: {
159
- dynamicContent: boolean;
160
- saveAsTemplate: boolean;
161
- versionHistory: boolean;
162
- };
73
+ htmlCompilerRules: CompilerRule[];
74
+ ignoreDefaultHtmlCompilerRules: boolean;
163
75
  }
164
76
  ```
165
77
 
@@ -168,26 +80,6 @@ interface GuidoConfig {
168
80
  | `translationsPath` | `string` | `'window.trans.en'` | JavaScript path to the translations object |
169
81
  | `htmlCompilerRules` | `CompilerRule[]` | `[]` | Additional compiler rules to apply to HTML content. See [HTML Compiler Rules](#-html-compiler-rules) section below |
170
82
  | `ignoreDefaultHtmlCompilerRules` | `boolean` | `false` | Skip default compiler rules and only use custom rules. Default rules: `src/config/compiler/htmlCompilerRules.ts` |
171
- | `useHeader` | `boolean` | `true` | Adds extra spaces to height for adjusting. If you don't use Inone Page header, override as `false` |
172
- | `features` | `Features` | `{ dynamicContent: true, saveAsTemplate: true, versionHistory: true }` | Feature flags to enable/disable editor functionality |
173
- | `features.dynamicContent` | `boolean` | `true` | Enable dynamic content insertion feature |
174
- | `features.saveAsTemplate` | `boolean` | `true` | Enable save as template feature |
175
- | `features.versionHistory` | `boolean` | `true` | Enable version history feature |
176
-
177
- ```typescript
178
- interface DynamicContent {
179
- value: string;
180
- text: string;
181
- fallback?: string;
182
- }
183
- ```
184
- ---
185
-
186
- | Property | Type | Default | Description |
187
- |----------|------|---------|-------------|
188
- | `value` | `string` | '' | Value of the dynamic content |
189
- | `text` | `string` | '' | Visible value of the dynamic content |
190
- | `fallback?` | `string` | '' | Fallback value of the dynamic content. Optional |
191
83
 
192
84
  ### TypeScript Types
193
85
 
@@ -202,6 +94,19 @@ import type { GuidoConfig } from '@useinsider/guido';
202
94
  import type { StripoEventType } from '@useinsider/guido';
203
95
  ```
204
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
+
205
110
  ## 🔨 HTML Compiler Rules
206
111
 
207
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.
@@ -280,11 +185,6 @@ Define complex transformation logic with a custom processor function.
280
185
  ```typescript
281
186
  const guidoConfig = {
282
187
  translationsPath: 'window.trans.en',
283
- features: {
284
- dynamicContent: true,
285
- saveAsTemplate: true,
286
- versionHistory: false // Disable version history
287
- },
288
188
  htmlCompilerRules: [
289
189
  {
290
190
  id: 'replace-domain',
@@ -313,11 +213,6 @@ const guidoConfig = {
313
213
  ```typescript
314
214
  const guidoConfig = {
315
215
  translationsPath: 'window.trans.en',
316
- features: {
317
- dynamicContent: true,
318
- saveAsTemplate: true,
319
- versionHistory: true
320
- },
321
216
  ignoreDefaultHtmlCompilerRules: true, // Skip all default rules
322
217
  htmlCompilerRules: [
323
218
  // Only your custom rules will be applied
@@ -447,87 +342,6 @@ src/
447
342
  └── library.ts # Main export
448
343
  ```
449
344
 
450
- ## 🔌 Provide/Inject Utilities
451
-
452
- Guido includes type-safe utilities for Vue's provide/inject system to facilitate dependency injection between components.
453
-
454
- ### useProvideInject
455
-
456
- The `useProvideInject` composable provides two helper functions for type-safe dependency injection:
457
-
458
- #### Basic Usage
459
-
460
- ```typescript
461
- // Parent component
462
- import { provideValue } from '@useinsider/guido';
463
- import { InjectionKey } from 'vue';
464
-
465
- // Define a typed injection key
466
- const MyServiceKey: InjectionKey<MyService> = Symbol('MyService');
467
-
468
- // Provide the value
469
- const myService = new MyService();
470
- provideValue(MyServiceKey, myService);
471
-
472
- // Child component
473
- import { useInjectedValue } from '@useinsider/guido';
474
-
475
- // Inject the value with type safety
476
- const myService = useInjectedValue(MyServiceKey);
477
- ```
478
-
479
- #### With Default Value
480
-
481
- ```typescript
482
- // Inject with a fallback value
483
- const myService = useInjectedValue(MyServiceKey, new DefaultService());
484
- ```
485
-
486
- #### Error Handling
487
-
488
- The `useInjectedValue` function will throw a descriptive error if no provider is found and no default value is provided:
489
-
490
- ```typescript
491
- // This will throw an error if no provider exists
492
- try {
493
- const myService = useInjectedValue(MyServiceKey);
494
- } catch (error) {
495
- console.error('No provider found for MyService');
496
- }
497
- ```
498
-
499
- ### API Reference
500
-
501
- #### `provideValue`
502
-
503
- ```typescript
504
- provideValue<T>(key: InjectionKey<T>, value: T): void
505
- ```
506
-
507
- Provides a value using Vue's provide system with type safety.
508
-
509
- | Parameter | Type | Description |
510
- |-----------|------|-------------|
511
- | `key` | `InjectionKey<T>` | The typed injection key |
512
- | `value` | `T` | The value to provide |
513
-
514
- #### `useInjectedValue`
515
-
516
- ```typescript
517
- useInjectedValue<T>(key: InjectionKey<T>, defaultValue?: T): T
518
- ```
519
-
520
- Injects a value using Vue's inject system with type safety and error handling.
521
-
522
- | Parameter | Type | Required | Description |
523
- |-----------|------|----------|-------------|
524
- | `key` | `InjectionKey<T>` | ✅ | The typed injection key |
525
- | `defaultValue` | `T` | ⚪ | Optional fallback value |
526
-
527
- **Returns:** `T` - The injected value
528
-
529
- **Throws:** `Error` - When no provider is found and no default value is provided
530
-
531
345
  ## 🌐 i18n
532
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).
533
347
  It allows to use production or local translations on your code. 🚀
@@ -541,34 +355,6 @@ const trans = useTranslations();
541
355
  trans('foo.bar')
542
356
  ```
543
357
 
544
- ## 📦 Local Building (Recommended)
545
-
546
- Run this commands if you want to test the package on your local before sending to NPM.
547
- ```sh
548
- bun run build
549
- ```
550
-
551
- Since bun does not have packaging yet, use npm here: 🥲
552
- ```sh
553
- npm pack
554
- ```
555
-
556
- It'll crate like `useinsider-guido-1.0.0.tgz` file.
557
-
558
- Move this file to your project path like: `email-fe` via:
559
- ```sh
560
- cp useinsider-guido-1.0.0.tgz ../email-fe
561
- ```
562
-
563
- Install the file to your project:
564
- ```sh
565
- npm i ./useinsider-guido-1.0.0.tgz
566
- ```
567
-
568
- Then you just need to rebuild to your project or restart the Container. 🎉
569
-
570
- For Future, we can create a shell script for it. Feel free to help 🙃
571
-
572
358
  ## 📦 Build Output
573
359
 
574
360
  The library builds to multiple formats:
@@ -614,4 +400,8 @@ ISC License
614
400
  - Master Version Generator should be fixed.
615
401
  - Playwright integration
616
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
617
407
  - Get Pre-built display conditions from API
@@ -1,45 +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
- useHeader?: boolean;
17
- emailHeader: EmailHeader;
18
- partner?: Partner;
19
- features?: Features;
20
- };
21
- export type DynamicContent = {
22
- value: string;
23
- text: string;
24
- fallback?: string;
25
- };
26
- export interface EmailHeader {
27
- senderName: string;
28
- subject: string;
29
- }
30
- export interface TooltipOptions {
31
- id: string;
32
- dynamicPosition: boolean;
33
- 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';
34
- iconStatus: boolean;
35
- offset?: {
36
- x: number;
37
- y: number;
38
- };
39
- preventXss?: boolean;
40
- }
41
- export type MergeTag = {
42
- label: string;
43
- value: string;
44
6
  };
45
- 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 s from "../_virtual/_plugin-vue2_normalizer.js";
4
- var a = function() {
5
- var o = this, r = o._self._c, e = o._self._setupProxy;
6
- return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": !e.guidoConfig.useHeader } }, [r(e.HeaderWrapper), e.previewStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isPreviewModeOpen, expression: "!previewStore.isPreviewModeOpen" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": !e.guidoConfig.useHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.SaveAsTemplateDrawer)], 1);
7
- }, t = [], d = /* @__PURE__ */ s(
8
- i,
9
- a,
10
- t,
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,
9
+ s,
10
+ _,
11
11
  !1,
12
12
  null,
13
- "9fa9554d"
13
+ "8e229594"
14
14
  );
15
- const u = d.exports;
15
+ const f = a.exports;
16
16
  export {
17
- u as default
17
+ f as default
18
18
  };
@@ -1,102 +1,43 @@
1
- import { defineComponent as I, defineAsyncComponent as P, computed as _, onMounted as L, 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 x, DefaultMessageType as M, DefaultGuidoConfig as W } from "../enums/defaults.js";
6
- import z from "./organisms/base/Toaster.vue.js";
7
- import B from "./organisms/header/HeaderWrapper.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 se = /* @__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 = P(
31
- () => import("./organisms/email-preview/PreviewContainer.vue.js")
32
- ), n = K(), c = R(), a = _(() => c.hasChanges), r = o.preselectedDynamicContentList || [], { getPartnerName: m, getProductType: d } = N(), G = j(), {
33
- templateId: l,
34
- userId: u,
35
- guidoConfig: p,
36
- html: f = "",
37
- css: g = "",
38
- partnerName: s = m(),
39
- productType: i = d(),
40
- messageType: y = M,
41
- username: C = x
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(W, p), window.GuidoConfig.partner = {
44
- partnerName: s,
45
- productType: i,
46
- messageType: y
26
+ window.GuidoConfig = {
27
+ ...T,
28
+ ...a
47
29
  };
48
- const { initPlugin: v } = U({
49
- emailId: l,
50
- userId: u,
51
- username: C,
52
- partnerName: s,
53
- productType: i,
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 L(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: f,
77
- css: g,
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: a
97
- }), { __sfc: !0, PreviewContainer: T, dynamicContentStore: n, props: o, editorStore: c, hasChanges: a, preselectedDynamicContentList: r, getPartnerName: m, getProductType: d, previewStore: G, templateId: l, userId: u, guidoConfig: p, html: f, css: g, partnerName: s, productType: i, messageType: y, username: C, emit: t, initPlugin: v, getDefaultTemplate: w, insertDynamicContent: D, closeDynamicContent: S, Toaster: z, HeaderWrapper: 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
- se 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
  };