@useinsider/guido 1.0.0-beta.c907a9d → 1.0.0-beta.c99b3ab

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 (208) hide show
  1. package/README.md +2 -26
  2. package/dist/@types/generic.d.ts +0 -33
  3. package/dist/@types/save-as-template.d.ts +0 -18
  4. package/dist/components/Guido.vue.d.ts +3 -5
  5. package/dist/components/Guido.vue.js +11 -11
  6. package/dist/components/Guido.vue2.js +38 -57
  7. package/dist/components/organisms/header/MiddleSlot.vue.js +7 -7
  8. package/dist/components/organisms/header/MiddleSlot.vue2.js +17 -15
  9. package/dist/components/organisms/header/RightSlot.vue.js +9 -10
  10. package/dist/components/organisms/header/RightSlot.vue2.js +28 -27
  11. package/dist/components/organisms/header/ViewOptions.vue.js +9 -9
  12. package/dist/components/organisms/header/ViewOptions.vue2.js +10 -29
  13. package/dist/components/organisms/header/version-history/ViewOptions.vue.js +3 -3
  14. package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +16 -34
  15. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.js +5 -5
  16. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +35 -40
  17. package/dist/composables/useActionsApi.d.ts +1 -4
  18. package/dist/composables/useActionsApi.js +33 -74
  19. package/dist/composables/useCustomInterfaceAppearance.js +13 -15
  20. package/dist/composables/useGuidoActions.d.ts +2 -2
  21. package/dist/composables/useHtmlCompiler.js +8 -9
  22. package/dist/composables/useHttp.js +21 -23
  23. package/dist/composables/usePartner.d.ts +1 -1
  24. package/dist/composables/usePartner.js +14 -9
  25. package/dist/composables/useStripo.js +25 -31
  26. package/dist/composables/useToaster.d.ts +1 -1
  27. package/dist/composables/useToaster.js +11 -11
  28. package/dist/composables/useTranslations.js +2 -3
  29. package/dist/composables/useValidation.d.ts +1 -27
  30. package/dist/composables/useValidation.js +8 -8
  31. package/dist/composables/validators/saveAsTemplate.d.ts +8 -13
  32. package/dist/composables/validators/saveAsTemplate.js +15 -18
  33. package/dist/enums/defaults.d.ts +1 -4
  34. package/dist/enums/defaults.js +6 -21
  35. package/dist/extensions/DynamicContent/dynamic-content.js +15 -13
  36. package/dist/guido.css +1 -1
  37. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +2 -2
  38. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +2 -2
  39. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +2 -2
  40. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +2 -2
  41. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +2 -2
  42. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +2 -2
  43. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +2 -2
  44. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +2 -2
  45. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +2 -2
  46. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +2 -2
  47. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +2 -2
  48. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +2 -2
  49. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +2 -2
  50. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +2 -2
  51. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +2 -2
  52. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +2 -2
  53. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +4 -4
  54. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +4 -4
  55. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +4 -4
  56. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +2 -2
  57. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +4 -4
  58. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +4 -4
  59. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +4 -4
  60. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +4 -4
  61. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +4 -4
  62. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +2 -2
  63. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +4 -4
  64. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +4 -4
  65. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +2 -2
  66. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +2 -2
  67. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +4 -4
  68. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +4 -4
  69. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +4 -4
  70. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +4 -4
  71. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +4 -4
  72. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +4 -4
  73. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +2 -2
  74. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +2 -2
  75. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +2 -2
  76. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +2 -2
  77. package/dist/node_modules/lodash-es/_isMasked.js +2 -2
  78. package/dist/node_modules/valibot/dist/index.js +58 -91
  79. package/dist/static/styles/components/wide-panel.css.js +2 -2
  80. package/dist/stores/editor.d.ts +1 -174
  81. package/dist/stores/editor.js +1 -17
  82. package/dist/stores/save-as-template.d.ts +1 -49
  83. package/dist/stores/save-as-template.js +27 -31
  84. package/package.json +3 -2
  85. package/dist/components/organisms/LoadingWrapper.vue.d.ts +0 -2
  86. package/dist/components/organisms/LoadingWrapper.vue.js +0 -18
  87. package/dist/components/organisms/LoadingWrapper.vue2.js +0 -12
  88. package/dist/components/organisms/email-preview/PreviewContainer.vue.d.ts +0 -2
  89. package/dist/components/organisms/email-preview/PreviewContainer.vue.js +0 -19
  90. package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +0 -18
  91. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -4
  92. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +0 -22
  93. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +0 -30
  94. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -2
  95. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +0 -19
  96. package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +0 -29
  97. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -2
  98. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +0 -22
  99. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +0 -31
  100. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -2
  101. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +0 -17
  102. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +0 -20
  103. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -2
  104. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +0 -18
  105. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue2.js +0 -25
  106. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -4
  107. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +0 -19
  108. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +0 -23
  109. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -4
  110. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +0 -20
  111. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +0 -21
  112. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -2
  113. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +0 -17
  114. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +0 -22
  115. package/dist/components/wrappers/WpModal.vue.d.ts +0 -65
  116. package/dist/components/wrappers/WpModal.vue.js +0 -27
  117. package/dist/components/wrappers/WpModal.vue2.js +0 -22
  118. package/dist/composables/useCodeEditorApi.d.ts +0 -4
  119. package/dist/composables/useCodeEditorApi.js +0 -11
  120. package/dist/composables/useConfig.d.ts +0 -4
  121. package/dist/composables/useConfig.js +0 -7
  122. package/dist/composables/useDebounce.d.ts +0 -4
  123. package/dist/composables/useDebounce.js +0 -12
  124. package/dist/composables/usePreviewMode.d.ts +0 -5
  125. package/dist/composables/usePreviewMode.js +0 -31
  126. package/dist/composables/useResponsivePreview.d.ts +0 -5
  127. package/dist/composables/useResponsivePreview.js +0 -86
  128. package/dist/enums/preview.d.ts +0 -13
  129. package/dist/enums/preview.js +0 -23
  130. package/dist/node_modules/@vueuse/shared/index.js +0 -45
  131. package/dist/node_modules/lodash-es/_Stack.js +0 -18
  132. package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
  133. package/dist/node_modules/lodash-es/_apply.js +0 -16
  134. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -19
  135. package/dist/node_modules/lodash-es/_assignMergeValue.js +0 -8
  136. package/dist/node_modules/lodash-es/_assignValue.js +0 -10
  137. package/dist/node_modules/lodash-es/_baseAssignValue.js +0 -12
  138. package/dist/node_modules/lodash-es/_baseCreate.js +0 -17
  139. package/dist/node_modules/lodash-es/_baseFor.js +0 -5
  140. package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
  141. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -12
  142. package/dist/node_modules/lodash-es/_baseKeysIn.js +0 -15
  143. package/dist/node_modules/lodash-es/_baseMerge.js +0 -20
  144. package/dist/node_modules/lodash-es/_baseMergeDeep.js +0 -31
  145. package/dist/node_modules/lodash-es/_baseRest.js +0 -9
  146. package/dist/node_modules/lodash-es/_baseSetToString.js +0 -14
  147. package/dist/node_modules/lodash-es/_baseTimes.js +0 -8
  148. package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
  149. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  150. package/dist/node_modules/lodash-es/_cloneBuffer.js +0 -9
  151. package/dist/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  152. package/dist/node_modules/lodash-es/_copyArray.js +0 -9
  153. package/dist/node_modules/lodash-es/_copyObject.js +0 -14
  154. package/dist/node_modules/lodash-es/_createAssigner.js +0 -15
  155. package/dist/node_modules/lodash-es/_createBaseFor.js +0 -13
  156. package/dist/node_modules/lodash-es/_defineProperty.js +0 -11
  157. package/dist/node_modules/lodash-es/_getPrototype.js +0 -5
  158. package/dist/node_modules/lodash-es/_initCloneObject.js +0 -9
  159. package/dist/node_modules/lodash-es/_isIndex.js +0 -8
  160. package/dist/node_modules/lodash-es/_isIterateeCall.js +0 -13
  161. package/dist/node_modules/lodash-es/_isPrototype.js +0 -8
  162. package/dist/node_modules/lodash-es/_nativeKeysIn.js +0 -10
  163. package/dist/node_modules/lodash-es/_nodeUtil.js +0 -11
  164. package/dist/node_modules/lodash-es/_overArg.js +0 -8
  165. package/dist/node_modules/lodash-es/_overRest.js +0 -15
  166. package/dist/node_modules/lodash-es/_safeGet.js +0 -7
  167. package/dist/node_modules/lodash-es/_setToString.js +0 -6
  168. package/dist/node_modules/lodash-es/_shortOut.js +0 -16
  169. package/dist/node_modules/lodash-es/_stackClear.js +0 -7
  170. package/dist/node_modules/lodash-es/_stackDelete.js +0 -7
  171. package/dist/node_modules/lodash-es/_stackGet.js +0 -6
  172. package/dist/node_modules/lodash-es/_stackHas.js +0 -6
  173. package/dist/node_modules/lodash-es/_stackSet.js +0 -17
  174. package/dist/node_modules/lodash-es/constant.js +0 -8
  175. package/dist/node_modules/lodash-es/identity.js +0 -6
  176. package/dist/node_modules/lodash-es/isArguments.js +0 -10
  177. package/dist/node_modules/lodash-es/isArray.js +0 -4
  178. package/dist/node_modules/lodash-es/isArrayLike.js +0 -8
  179. package/dist/node_modules/lodash-es/isArrayLikeObject.js +0 -8
  180. package/dist/node_modules/lodash-es/isBuffer.js +0 -6
  181. package/dist/node_modules/lodash-es/isLength.js +0 -7
  182. package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
  183. package/dist/node_modules/lodash-es/isPlainObject.js +0 -16
  184. package/dist/node_modules/lodash-es/isTypedArray.js +0 -7
  185. package/dist/node_modules/lodash-es/keysIn.js +0 -9
  186. package/dist/node_modules/lodash-es/merge.js +0 -8
  187. package/dist/node_modules/lodash-es/stubFalse.js +0 -6
  188. package/dist/node_modules/lodash-es/toPlainObject.js +0 -8
  189. package/dist/node_modules/vue-demi/lib/index.js +0 -7
  190. package/dist/services/templateLibraryApi.d.ts +0 -7
  191. package/dist/services/templateLibraryApi.js +0 -87
  192. package/dist/static/assets/inbox-mockup.svg.js +0 -4
  193. package/dist/static/assets/phone-mockup.svg.js +0 -4
  194. package/dist/static/styles/components/loader.css.js +0 -10
  195. package/dist/stores/dynamic-content.d.ts +0 -27
  196. package/dist/stores/dynamic-content.js +0 -23
  197. package/dist/stores/preview.d.ts +0 -38
  198. package/dist/stores/preview.js +0 -45
  199. package/dist/utils/arrayUtil.d.ts +0 -1
  200. package/dist/utils/arrayUtil.js +0 -10
  201. package/dist/utils/base64.d.ts +0 -1
  202. package/dist/utils/base64.js +0 -7
  203. package/dist/utils/genericUtil.d.ts +0 -3
  204. package/dist/utils/genericUtil.js +0 -11
  205. package/dist/utils/templatePreparation.d.ts +0 -4
  206. package/dist/utils/templatePreparation.js +0 -33
  207. package/dist/utils/tooltipUtils.d.ts +0 -2
  208. package/dist/utils/tooltipUtils.js +0 -11
package/README.md CHANGED
@@ -57,11 +57,6 @@ export default {
57
57
  translationsPath: 'window.trans.en',
58
58
  htmlCompilerRules: [],
59
59
  ignoreDefaultHtmlCompilerRules: false,
60
- features: {
61
- dynamicContent: true,
62
- saveAsTemplate: true,
63
- versionHistory: true
64
- }
65
60
  },
66
61
  dynamicContentModalVisible: false
67
62
  };
@@ -143,13 +138,8 @@ dynamicContent.close();
143
138
  ```typescript
144
139
  interface GuidoConfig {
145
140
  translationsPath: string;
146
- htmlCompilerRules?: CompilerRule[];
147
- ignoreDefaultHtmlCompilerRules?: boolean;
148
- features: {
149
- dynamicContent: boolean;
150
- saveAsTemplate: boolean;
151
- versionHistory: boolean;
152
- };
141
+ htmlCompilerRules: CompilerRule[];
142
+ ignoreDefaultHtmlCompilerRules: boolean;
153
143
  }
154
144
  ```
155
145
 
@@ -158,10 +148,6 @@ interface GuidoConfig {
158
148
  | `translationsPath` | `string` | `'window.trans.en'` | JavaScript path to the translations object |
159
149
  | `htmlCompilerRules` | `CompilerRule[]` | `[]` | Additional compiler rules to apply to HTML content. See [HTML Compiler Rules](#-html-compiler-rules) section below |
160
150
  | `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
151
 
166
152
  ```typescript
167
153
  interface DynamicContent {
@@ -269,11 +255,6 @@ Define complex transformation logic with a custom processor function.
269
255
  ```typescript
270
256
  const guidoConfig = {
271
257
  translationsPath: 'window.trans.en',
272
- features: {
273
- dynamicContent: true,
274
- saveAsTemplate: true,
275
- versionHistory: false // Disable version history
276
- },
277
258
  htmlCompilerRules: [
278
259
  {
279
260
  id: 'replace-domain',
@@ -302,11 +283,6 @@ const guidoConfig = {
302
283
  ```typescript
303
284
  const guidoConfig = {
304
285
  translationsPath: 'window.trans.en',
305
- features: {
306
- dynamicContent: true,
307
- saveAsTemplate: true,
308
- versionHistory: true
309
- },
310
286
  ignoreDefaultHtmlCompilerRules: true, // Skip all default rules
311
287
  htmlCompilerRules: [
312
288
  // Only your custom rules will be applied
@@ -1,44 +1,11 @@
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
6
  };
20
7
  export type DynamicContent = {
21
8
  value: string;
22
9
  text: string;
23
10
  fallback?: string;
24
11
  };
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
- };
44
- export {};
@@ -9,21 +9,3 @@ export interface Category {
9
9
  isStripo: boolean;
10
10
  templatesCount: number;
11
11
  }
12
- export interface RecommendationCampaignUrls {
13
- [key: string]: string;
14
- }
15
- export interface CreateTemplateRequest {
16
- name: string;
17
- categories: number[];
18
- productId: number;
19
- editorType: number;
20
- messageType?: number;
21
- content: string;
22
- css?: string;
23
- stripoConfig: string;
24
- recommendationConfigs?: string;
25
- recommendationCampaignUrls?: string;
26
- unsubscriptionPreferencePages: number[];
27
- unsubscriptionPreferencePageStatus: boolean;
28
- isGuido: boolean;
29
- }
@@ -1,15 +1,13 @@
1
1
  import type { DynamicContent, GuidoConfig } from '@@/Types/generic';
2
- import type { SavedTemplateDetails } from '@@/Types/stripo';
2
+ import type { Template } from '@@/Types/stripo';
3
3
  type __VLS_Props = {
4
4
  templateId: string;
5
5
  userId: string;
6
- messageType?: number;
7
6
  partnerName?: string;
8
- productType?: number;
7
+ productType?: string;
9
8
  username?: string;
10
9
  html?: string;
11
10
  css?: string;
12
- preselectedDynamicContentList: DynamicContent[];
13
11
  guidoConfig: GuidoConfig;
14
12
  };
15
13
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {
@@ -22,7 +20,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__
22
20
  "dynamic-content:open": (detail: DynamicContent | null) => void;
23
21
  back: () => void;
24
22
  "save:start": () => void;
25
- "save:complete": (data: Omit<SavedTemplateDetails, "forceRecreate">) => void;
23
+ "save:complete": (template: Omit<Template, "forceRecreate">) => void;
26
24
  }, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
27
25
  export default _default;
28
26
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : 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 a 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" } }), r(t.SaveAsTemplateDrawer)], 1);
7
+ }, i = [], _ = /* @__PURE__ */ a(
8
+ o,
10
9
  s,
10
+ i,
11
11
  !1,
12
12
  null,
13
- "384396b5"
13
+ "202b6818"
14
14
  );
15
- const c = d.exports;
15
+ const m = _.exports;
16
16
  export {
17
- c as default
17
+ m as default
18
18
  };
@@ -1,59 +1,42 @@
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 w, computed as D, onMounted as E } from "vue";
2
+ import { provideGuidoActions as _ } from "../composables/useGuidoActions.js";
3
+ import { usePartner as G } from "../composables/usePartner.js";
4
+ import { useStripo as I } from "../composables/useStripo.js";
5
+ import { DefaultUsername as T, DefaultGuidoConfig as k } from "../enums/defaults.js";
6
+ import P from "./organisms/header/HeaderWrapper.vue.js";
7
+ import A from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
8
+ import { useStripoApi as N } from "../services/stripoApi.js";
9
+ import { useEditorStore as x } from "../stores/editor.js";
10
+ const U = /* @__PURE__ */ w({
15
11
  __name: "Guido",
16
12
  props: {
17
13
  templateId: null,
18
14
  userId: null,
19
- messageType: null,
20
15
  partnerName: null,
21
16
  productType: null,
22
17
  username: null,
23
18
  html: null,
24
19
  css: null,
25
- preselectedDynamicContentList: null,
26
20
  guidoConfig: null
27
21
  },
28
22
  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
23
+ setup(b, { expose: S, emit: t }) {
24
+ const o = b, n = x(), a = D(() => n.hasChanges), { getPartnerName: c, getProductType: s } = G(), {
25
+ templateId: r,
26
+ userId: i,
27
+ guidoConfig: d,
28
+ html: l = "",
29
+ css: u = "",
30
+ partnerName: m = c(),
31
+ productType: p = s(),
32
+ username: g = T
42
33
  } = o;
43
- window.GuidoConfig = q(M, u), window.GuidoConfig.partner = {
44
- partnerName: i,
45
- productType: s,
46
- messageType: y
34
+ window.GuidoConfig = {
35
+ ...k,
36
+ ...d
47
37
  };
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({
38
+ const { initPlugin: f } = I({ emailId: r, userId: i, username: g, partnerName: m, productType: p }), { getDefaultTemplate: y } = N();
39
+ _({
57
40
  onBack: () => {
58
41
  console.debug("guido:back"), t("back");
59
42
  },
@@ -64,21 +47,21 @@ const ie = /* @__PURE__ */ I({
64
47
  console.debug("guido:save:complete", e), t("save:complete", e);
65
48
  }
66
49
  });
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 = () => {
50
+ const v = (e) => {
51
+ console.debug("dynamic-content:close", e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
52
+ }, C = () => {
70
53
  console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
71
54
  };
72
- return _(async () => {
55
+ return E(async () => {
73
56
  console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow");
74
57
  try {
75
58
  let e = {
76
- html: g,
77
- css: f,
59
+ html: l,
60
+ css: u,
78
61
  forceRecreate: !0
79
62
  // TODO: It should be false for old templates. We will communicate with Stripo
80
63
  };
81
- e.html || (e = await w()), await v(e), n.selectedDynamicContentList = r;
64
+ e.html || (e = await y()), await f(e);
82
65
  } catch (e) {
83
66
  console.error("Failed to initialize Stripo editor:", e);
84
67
  }
@@ -86,17 +69,15 @@ const ie = /* @__PURE__ */ I({
86
69
  const h = e;
87
70
  console.debug("dynamic-content:open", h.detail), t("dynamic-content:open", h.detail);
88
71
  });
89
- }), k(() => {
90
- window.UIEditor.removeEditor();
91
- }), E({
72
+ }), S({
92
73
  dynamicContent: {
93
- insert: D,
94
- close: S
74
+ insert: v,
75
+ close: C
95
76
  },
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 };
77
+ hasChanges: a
78
+ }), { __sfc: !0, props: o, editorStore: n, hasChanges: a, getPartnerName: c, getProductType: s, templateId: r, userId: i, guidoConfig: d, html: l, css: u, partnerName: m, productType: p, username: g, emit: t, initPlugin: f, getDefaultTemplate: y, insertDynamicContent: v, closeDynamicContent: C, HeaderWrapper: P, SaveAsTemplateDrawer: A };
98
79
  }
99
80
  });
100
81
  export {
101
- ie as default
82
+ U as default
102
83
  };
@@ -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", "data-testid": "Code Editor", "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
  };
@@ -1,20 +1,22 @@
1
- import { defineComponent as p, computed as i } from "vue";
2
- import { usePreviewMode as m } from "../../../composables/usePreviewMode.js";
3
- import { useTranslations as l } from "../../../composables/useTranslations.js";
4
- import d from "../email-preview/amp/AmpToggle.vue.js";
5
- import { useEditorStore as w } from "../../../stores/editor.js";
6
- import { getTooltipOptions as c } from "../../../utils/tooltipUtils.js";
7
- import { InButtonV2 as f } from "@useinsider/design-system-vue";
8
- import a from "./version-history/VersionHistory.vue.js";
9
- import v from "./version-history/ViewOptions.vue.js";
10
- import u from "./ViewOptions.vue.js";
11
- const C = /* @__PURE__ */ p({
1
+ import { defineComponent as r } from "vue";
2
+ import { useTranslations as s } from "../../../composables/useTranslations.js";
3
+ import { useEditorStore as n } from "../../../stores/editor.js";
4
+ import { InButtonV2 as e } from "@useinsider/design-system-vue";
5
+ import m from "./version-history/VersionHistory.vue.js";
6
+ import p from "./version-history/ViewOptions.vue.js";
7
+ import f from "./ViewOptions.vue.js";
8
+ const y = /* @__PURE__ */ r({
12
9
  __name: "MiddleSlot",
13
- setup(T) {
14
- const o = w(), e = l(), { openPreviewMode: t, closePreviewMode: r } = m(), s = i(() => o.isPreviewModeOpen ? e("newsletter.close-email-preview") : e("newsletter.email-preview")), n = i(() => o.isCodeEditorOpen ? e("newsletter.close-html-editor") : e("newsletter.html-editor"));
15
- return { __sfc: !0, editorStore: o, trans: e, openPreviewMode: t, closePreviewMode: r, previewTooltipText: s, codeEditorTooltipText: n, handlePreviewToggle: () => o.isPreviewModeOpen ? r() : t(), AmpToggle: d, getTooltipOptions: c, InButtonV2: f, VersionHistory: a, VersionHistoryViewOptions: v, ViewOptions: u };
10
+ setup(a) {
11
+ const o = n(), t = s();
12
+ return { __sfc: !0, editorStore: o, trans: t, getTooltipOptions: (i) => ({
13
+ id: `${i}-tooltip`,
14
+ dynamicPosition: !1,
15
+ staticPosition: "bottom center",
16
+ iconStatus: !1
17
+ }), InButtonV2: e, VersionHistory: m, VersionHistoryViewOptions: p, ViewOptions: f };
16
18
  }
17
19
  });
18
20
  export {
19
- C as default
21
+ y as default
20
22
  };
@@ -1,18 +1,17 @@
1
- import n from "./RightSlot.vue2.js";
2
- import a from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var l = function() {
4
- var s, i;
5
- var o = this, e = o._self._c, t = o._self._setupProxy;
6
- return e("div", { staticClass: "d-f" }, [(s = t.config.features) != null && s.versionHistory ? e(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen, "tooltip-options": t.getTooltipOptions("guido__history-button"), "tooltip-text": t.versionHistoryTooltipText }, on: { click: t.handleVersionHistory } }) : o._e(), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isExportButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__export-button"), "tooltip-text": t.trans("newsletter.export") }, on: { click: t.exportHtml } }), (i = t.config.features) != null && i.saveAsTemplate ? e(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isSaveAsButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__save-as-button"), "tooltip-text": t.trans("newsletter.save-templates") }, on: { click: t.handleSaveAs } }) : o._e(), e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isTestButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__test-button"), "tooltip-text": t.trans("newsletter.test-email") } }), e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "label-text": "Save", "disabled-status": !t.isSaving && t.editorStore.isSaveButtonDisabled, "loading-status": t.isSaving }, on: { click: t.handleSave } })], 1);
7
- }, r = [], d = /* @__PURE__ */ a(
1
+ import o from "./RightSlot.vue2.js";
2
+ import i from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var n = function() {
4
+ var s = this, e = s._self._c, t = s._self._setupProxy;
5
+ return e("div", { staticClass: "d-f" }, [e(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen }, on: { click: t.handleVersionHistory } }), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 }, on: { click: t.exportHtml } }), e(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 }, on: { click: t.handleSaveAs } }), e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 } }), e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "label-text": "Save", "disabled-status": t.editorStore.isVersionHistoryOpen }, on: { click: t.handleSave } })], 1);
6
+ }, r = [], a = /* @__PURE__ */ i(
7
+ o,
8
8
  n,
9
- l,
10
9
  r,
11
10
  !1,
12
11
  null,
13
12
  null
14
13
  );
15
- const c = d.exports;
14
+ const u = a.exports;
16
15
  export {
17
- c as default
16
+ u as default
18
17
  };
@@ -1,36 +1,37 @@
1
- import { defineComponent as v, ref as S, computed as d } from "vue";
2
- import { useConfig as y } from "../../../composables/useConfig.js";
3
- import { useExport as g } from "../../../composables/useExport.js";
4
- import { useSaveStart as h, useSaveComplete as H } from "../../../composables/useGuidoActions.js";
5
- import { useTranslations as _ } from "../../../composables/useTranslations.js";
6
- import { useVersionHistoryApi as T } from "../../../composables/useVersionHistoryApi.js";
7
- import { useEditorStore as V } from "../../../stores/editor.js";
8
- import { useTemplatePreparation as w } from "../../../utils/templatePreparation.js";
9
- import { getTooltipOptions as x } from "../../../utils/tooltipUtils.js";
10
- import { InButtonV2 as C } from "@useinsider/design-system-vue";
11
- const q = /* @__PURE__ */ v({
1
+ import { defineComponent as m } from "vue";
2
+ import { useActionsApi as p } from "../../../composables/useActionsApi.js";
3
+ import { useExport as c } from "../../../composables/useExport.js";
4
+ import { useSaveStart as l, useSaveComplete as d } from "../../../composables/useGuidoActions.js";
5
+ import { useVersionHistoryApi as f } from "../../../composables/useVersionHistoryApi.js";
6
+ import { useEditorStore as u } from "../../../stores/editor.js";
7
+ import { InButtonV2 as S } from "@useinsider/design-system-vue";
8
+ const w = /* @__PURE__ */ m({
12
9
  __name: "RightSlot",
13
- setup(O) {
14
- const { config: p } = y(), { exportHtml: m } = g(), s = h(), n = H(), { openVersionHistory: i, closeVersionHistory: a } = T(), t = V(), e = _(), o = S(!1), l = () => {
15
- if (t.isVersionHistoryOpen) {
16
- a();
10
+ setup(h) {
11
+ const { exportHtml: a } = c(), { getCompiledEmail: o } = p(), r = l(), s = d(), { openVersionHistory: n, closeVersionHistory: i } = f(), e = u();
12
+ return { __sfc: !0, exportHtml: a, getCompiledEmail: o, saveStart: r, saveComplete: s, openVersionHistory: n, closeVersionHistory: i, editorStore: e, handleVersionHistory: () => {
13
+ if (e.isVersionHistoryOpen) {
14
+ i();
17
15
  return;
18
16
  }
19
- i();
20
- }, c = () => {
21
- t.isSaveAsTemplateDrawerOpen = !0;
22
- }, f = d(() => t.isVersionHistoryOpen ? e("newsletter.close-version-history") : e("newsletter.version-history"));
23
- return { __sfc: !0, config: p, exportHtml: m, saveStart: s, saveComplete: n, openVersionHistory: i, closeVersionHistory: a, editorStore: t, trans: e, isSaving: o, handleVersionHistory: l, handleSaveAs: c, versionHistoryTooltipText: f, handleSave: async () => {
24
- o.value = !0, t.loadingStatus = !0, s();
17
+ n();
18
+ }, handleSaveAs: () => {
19
+ e.isSaveAsTemplateDrawerOpen = !0;
20
+ }, handleSave: async () => {
21
+ r();
25
22
  try {
26
- const { prepareTemplateDetails: r } = w(), u = await r();
27
- n(u), o.value = !1, t.loadingStatus = !1;
28
- } catch (r) {
29
- console.error("Failed to get template data for save:", r);
23
+ const { html: t } = await o();
24
+ s({
25
+ html: t || "",
26
+ css: ""
27
+ // CSS is embedded in HTML from Stripo
28
+ });
29
+ } catch (t) {
30
+ console.error("Failed to get template data for save:", t);
30
31
  }
31
- }, getTooltipOptions: x, InButtonV2: C };
32
+ }, InButtonV2: S };
32
33
  }
33
34
  });
34
35
  export {
35
- q as default
36
+ w as default
36
37
  };
@@ -1,18 +1,18 @@
1
- import o from "./ViewOptions.vue2.js";
1
+ import r from "./ViewOptions.vue2.js";
2
2
  /* empty css */
3
3
  import s from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var r = function() {
5
- var t = this, i = t._self._c, e = t._self._setupProxy;
6
- return i(e.InSegments, { attrs: { id: "guido__view-option-selection", "with-icon": "", disable: e.editorStore.isViewOptionsDisabled, "segment-list": e.segmentList, selected: e.editorStore.editorVisualMode } });
7
- }, n = [], _ = /* @__PURE__ */ s(
8
- o,
4
+ var n = function() {
5
+ var t = this, o = t._self._c, e = t._self._setupProxy;
6
+ return o(e.InSegments, { attrs: { id: "guido__view-option-selection", "with-icon": "", "segment-list": e.segmentList, selected: e.editorStore.editorVisualMode } });
7
+ }, i = [], _ = /* @__PURE__ */ s(
9
8
  r,
10
9
  n,
10
+ i,
11
11
  !1,
12
12
  null,
13
- "ad3cf7cc"
13
+ "0fff376c"
14
14
  );
15
- const m = _.exports;
15
+ const l = _.exports;
16
16
  export {
17
- m as default
17
+ l as default
18
18
  };
@@ -1,34 +1,15 @@
1
- import { defineComponent as n } from "vue";
2
- import { useTranslations as p } from "../../../composables/useTranslations.js";
3
- import { useEditorStore as s } from "../../../stores/editor.js";
4
- import { getTooltipOptions as o } from "../../../utils/tooltipUtils.js";
5
- import { InSegments as r } from "@useinsider/design-system-vue";
6
- const d = /* @__PURE__ */ n({
1
+ import { defineComponent as e } from "vue";
2
+ import { useEditorStore as t } from "../../../stores/editor.js";
3
+ import { InSegments as o } from "@useinsider/design-system-vue";
4
+ const u = /* @__PURE__ */ e({
7
5
  __name: "ViewOptions",
8
- setup(m) {
9
- const e = s(), t = p(), i = [
10
- {
11
- text: "",
12
- icon: "line-desktop",
13
- value: "desktop",
14
- position: "bottom",
15
- align: "center",
16
- tooltipText: t("newsletter.desktop"),
17
- tooltipOptions: o("guido__view-option-desktop")
18
- },
19
- {
20
- text: "",
21
- icon: "line-menu-mobileapp",
22
- value: "mobile",
23
- position: "bottom",
24
- align: "center",
25
- tooltipText: t("newsletter.mobile"),
26
- tooltipOptions: o("guido__view-option-mobile")
27
- }
28
- ];
29
- return { __sfc: !0, editorStore: e, trans: t, segmentList: i, InSegments: r };
6
+ setup(n) {
7
+ return { __sfc: !0, editorStore: t(), segmentList: [
8
+ { text: "", icon: "line-desktop", value: "desktop" },
9
+ { text: "", icon: "line-menu-mobileapp", value: "mobile" }
10
+ ], InSegments: o };
30
11
  }
31
12
  });
32
13
  export {
33
- d as default
14
+ u as default
34
15
  };
@@ -10,9 +10,9 @@ var r = function() {
10
10
  n,
11
11
  !1,
12
12
  null,
13
- "421ffc13"
13
+ "6a2bde67"
14
14
  );
15
- const f = _.exports;
15
+ const d = _.exports;
16
16
  export {
17
- f as default
17
+ d as default
18
18
  };