@useinsider/guido 1.0.2-beta.ad1dcd9 → 1.0.2-beta.b11c72f

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 (162) hide show
  1. package/README.md +1 -1
  2. package/dist/@types/generic.d.ts +0 -8
  3. package/dist/_virtual/AddCustomFont.js +4 -0
  4. package/dist/_virtual/AiAssistantValueType.js +4 -0
  5. package/dist/_virtual/BackgroundColorBuiltInControl.js +4 -0
  6. package/dist/_virtual/BackgroundImageBuiltInControl.js +4 -0
  7. package/dist/_virtual/Block.js +4 -0
  8. package/dist/_virtual/BlockAttributes.js +4 -0
  9. package/dist/_virtual/BlockCompositionType.js +4 -0
  10. package/dist/_virtual/BlockPaddingsBuiltInControl.js +4 -0
  11. package/dist/_virtual/BlockRenderer.js +4 -0
  12. package/dist/_virtual/BlockType.js +4 -0
  13. package/dist/_virtual/BlocksPanel.js +4 -0
  14. package/dist/_virtual/BuiltInControl.js +4 -0
  15. package/dist/_virtual/BuiltInControlTypes.js +4 -0
  16. package/dist/_virtual/ButtonBorderBuiltInControl.js +4 -0
  17. package/dist/_virtual/ButtonColorBuiltInControl.js +4 -0
  18. package/dist/_virtual/ButtonFontColorBuiltInControl.js +4 -0
  19. package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +4 -0
  20. package/dist/_virtual/ButtonTextBuiltInControl.js +4 -0
  21. package/dist/_virtual/ContextAction.js +4 -0
  22. package/dist/_virtual/ContextActionType.js +4 -0
  23. package/dist/_virtual/Control.js +4 -0
  24. package/dist/_virtual/EditorStatePropertyType.js +4 -0
  25. package/dist/_virtual/Extension.js +4 -0
  26. package/dist/_virtual/ExtensionBuilder.js +4 -0
  27. package/dist/_virtual/FontFamilyBuiltInControl.js +4 -0
  28. package/dist/_virtual/LinkColorBuiltInControl.js +4 -0
  29. package/dist/_virtual/ModificationDescription.js +4 -0
  30. package/dist/_virtual/PanelPosition.js +4 -0
  31. package/dist/_virtual/PreviewDeviceMode.js +4 -0
  32. package/dist/_virtual/SettingsPanelRegistry.js +4 -0
  33. package/dist/_virtual/SettingsPanelTab.js +4 -0
  34. package/dist/_virtual/SettingsTab.js +4 -0
  35. package/dist/_virtual/StructureBorderBuiltInControl.js +4 -0
  36. package/dist/_virtual/StructurePaddingsBuiltInControl.js +4 -0
  37. package/dist/_virtual/TextColorBuiltInControl.js +4 -0
  38. package/dist/_virtual/TextLineSpacingBuiltInControl.js +4 -0
  39. package/dist/_virtual/TextSizeBuiltInControl.js +4 -0
  40. package/dist/_virtual/TextStyleBuiltInControl.js +4 -0
  41. package/dist/_virtual/UIElement.js +4 -0
  42. package/dist/_virtual/UIElementTagRegistry.js +4 -0
  43. package/dist/_virtual/UIElementType.js +4 -0
  44. package/dist/_virtual/UIElementsAttributes.js +4 -0
  45. package/dist/_virtual/index.js +5 -0
  46. package/dist/_virtual/index2.js +4 -0
  47. package/dist/components/Guido.vue.d.ts +2 -2
  48. package/dist/components/Guido.vue.js +5 -5
  49. package/dist/components/Guido.vue2.js +63 -68
  50. package/dist/components/wrappers/WpDrawer.vue.d.ts +4 -6
  51. package/dist/components/wrappers/WpDrawer.vue.js +4 -6
  52. package/dist/composables/useHtmlValidator.d.ts +1 -2
  53. package/dist/composables/useHtmlValidator.js +95 -114
  54. package/dist/composables/useSave.js +6 -6
  55. package/dist/composables/useStripo.js +29 -35
  56. package/dist/config/compiler/unsubscribeCompilerRules.js +19 -19
  57. package/dist/enums/defaults.js +3 -6
  58. package/dist/enums/unsubscribe.d.ts +0 -19
  59. package/dist/enums/unsubscribe.js +6 -39
  60. package/dist/extensions/DynamicContent/dynamic-content.js +27 -41
  61. package/dist/extensions/DynamicContent/extension.js +6 -18
  62. package/dist/guido.css +1 -1
  63. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +48 -72
  64. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +49 -74
  65. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +38 -120
  66. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +18 -0
  67. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +32 -0
  68. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +18 -0
  69. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +8 -0
  70. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +11 -5
  71. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +34 -0
  72. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +11 -5
  73. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +11 -5
  74. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +101 -116
  75. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +11 -5
  76. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +11 -5
  77. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +11 -5
  78. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +11 -5
  79. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +11 -5
  80. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +11 -5
  81. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +43 -23
  82. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +43 -0
  83. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +46 -0
  84. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +44 -0
  85. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +22 -0
  86. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +46 -0
  87. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +46 -0
  88. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +45 -0
  89. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +45 -0
  90. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +45 -0
  91. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +17 -21
  92. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +43 -0
  93. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +45 -0
  94. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +15 -8
  95. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +29 -30
  96. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +46 -0
  97. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +44 -0
  98. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +43 -0
  99. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +43 -0
  100. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +45 -0
  101. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +43 -0
  102. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +266 -0
  103. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +23 -19
  104. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +19 -37
  105. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +15 -2
  106. package/dist/stores/unsubscribe.d.ts +5 -183
  107. package/dist/stores/unsubscribe.js +6 -125
  108. package/package.json +2 -2
  109. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +0 -2
  110. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +0 -18
  111. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +0 -16
  112. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +0 -2
  113. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +0 -24
  114. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +0 -64
  115. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +0 -2
  116. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +0 -18
  117. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +0 -108
  118. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +0 -2
  119. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +0 -18
  120. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue2.js +0 -12
  121. package/dist/config/migrator/checkboxMigrator.d.ts +0 -1
  122. package/dist/config/migrator/checkboxMigrator.js +0 -83
  123. package/dist/config/migrator/index.d.ts +0 -1
  124. package/dist/config/migrator/index.js +0 -9
  125. package/dist/config/migrator/unsubscribeMigrator.d.ts +0 -1
  126. package/dist/config/migrator/unsubscribeMigrator.js +0 -112
  127. package/dist/extensions/Blocks/Checkbox/block.d.ts +0 -10
  128. package/dist/extensions/Blocks/Checkbox/block.js +0 -39
  129. package/dist/extensions/Blocks/Checkbox/control.d.ts +0 -22
  130. package/dist/extensions/Blocks/Checkbox/control.js +0 -104
  131. package/dist/extensions/Blocks/Checkbox/extension.d.ts +0 -2
  132. package/dist/extensions/Blocks/Checkbox/extension.js +0 -20
  133. package/dist/extensions/Blocks/Checkbox/settingsPanel.d.ts +0 -4
  134. package/dist/extensions/Blocks/Checkbox/settingsPanel.js +0 -38
  135. package/dist/extensions/Blocks/Checkbox/template.d.ts +0 -6
  136. package/dist/extensions/Blocks/Checkbox/template.js +0 -75
  137. package/dist/extensions/Blocks/Unsubscribe/block.d.ts +0 -30
  138. package/dist/extensions/Blocks/Unsubscribe/block.js +0 -141
  139. package/dist/extensions/Blocks/Unsubscribe/control.d.ts +0 -29
  140. package/dist/extensions/Blocks/Unsubscribe/control.js +0 -180
  141. package/dist/extensions/Blocks/Unsubscribe/elements/preview.d.ts +0 -11
  142. package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +0 -54
  143. package/dist/extensions/Blocks/Unsubscribe/extension.d.ts +0 -2
  144. package/dist/extensions/Blocks/Unsubscribe/extension.js +0 -21
  145. package/dist/extensions/Blocks/Unsubscribe/settingsPanel.d.ts +0 -4
  146. package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +0 -32
  147. package/dist/extensions/Blocks/Unsubscribe/template.d.ts +0 -3
  148. package/dist/extensions/Blocks/Unsubscribe/template.js +0 -28
  149. package/dist/extensions/Blocks/Unsubscribe/utils/constants.d.ts +0 -9
  150. package/dist/extensions/Blocks/Unsubscribe/utils/constants.js +0 -11
  151. package/dist/extensions/Blocks/Unsubscribe/utils/utils.d.ts +0 -7
  152. package/dist/extensions/Blocks/Unsubscribe/utils/utils.js +0 -6
  153. package/dist/extensions/Blocks/_Boilerplate/block.d.ts +0 -10
  154. package/dist/extensions/Blocks/_Boilerplate/control.d.ts +0 -17
  155. package/dist/extensions/Blocks/_Boilerplate/extension.d.ts +0 -2
  156. package/dist/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +0 -4
  157. package/dist/extensions/Blocks/_Boilerplate/template.d.ts +0 -6
  158. package/dist/mock/api/unsubscribe.d.ts +0 -2
  159. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js +0 -12
  160. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js +0 -12
  161. package/dist/services/unsubscribeApi.d.ts +0 -4
  162. package/dist/services/unsubscribeApi.js +0 -16
package/README.md CHANGED
@@ -643,6 +643,6 @@ ISC License
643
643
  ## 🎯 TODO:
644
644
  - CSS part should be optimized with variables & `sass-loader`.
645
645
  - Master Version Generator should be fixed.
646
- - Playwright integrationBoilerplate/control.ts
646
+ - Playwright integration
647
647
  - Commitlint & Precommit Hooks integration
648
648
  - Get Pre-built display conditions from API
@@ -1,7 +1,4 @@
1
1
  import type { CompilerRule } from './html-compiler';
2
- type Extensions = {
3
- unsubscribe?: boolean;
4
- };
5
2
  type Features = {
6
3
  dynamicContent?: boolean;
7
4
  saveAsTemplate?: boolean;
@@ -19,13 +16,8 @@ export type GuidoConfig = {
19
16
  useHeader?: boolean;
20
17
  emailHeader: EmailHeader;
21
18
  partner?: Partner;
22
- extensions?: Extensions;
23
19
  features?: Features;
24
20
  };
25
- export type TemplateConfig = {
26
- preselectedDynamicContentList: DynamicContent[];
27
- selectedUnsubscribePages?: number[];
28
- };
29
21
  export type DynamicContent = {
30
22
  value: string;
31
23
  text: string;
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var s = {};
2
+ export {
3
+ s as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var t = {};
2
+ export {
3
+ t as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var a = {};
2
+ export {
3
+ a as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var t = {};
2
+ export {
3
+ t as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var t = {};
2
+ export {
3
+ t as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var t = {};
2
+ export {
3
+ t as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var t = {};
2
+ export {
3
+ t as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var i = {};
2
+ export {
3
+ i as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var a = {};
2
+ export {
3
+ a as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var t = {};
2
+ export {
3
+ t as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var t = {};
2
+ export {
3
+ t as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var t = {};
2
+ export {
3
+ t as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var t = {};
2
+ export {
3
+ t as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var t = {};
2
+ export {
3
+ t as __exports
4
+ };
@@ -0,0 +1,5 @@
1
+ import { __require as r } from "../node_modules/@stripoinc/ui-editor-extensions/dist/index.js";
2
+ var i = r();
3
+ export {
4
+ i as d
5
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -1,4 +1,4 @@
1
- import type { DynamicContent, GuidoConfig, TemplateConfig } from '@@/Types/generic';
1
+ import type { DynamicContent, GuidoConfig } from '@@/Types/generic';
2
2
  import type { SavedTemplateDetails } from '@@/Types/stripo';
3
3
  type __VLS_Props = {
4
4
  templateId: string;
@@ -9,8 +9,8 @@ type __VLS_Props = {
9
9
  username?: string;
10
10
  html?: string;
11
11
  css?: string;
12
+ preselectedDynamicContentList: DynamicContent[];
12
13
  guidoConfig: GuidoConfig;
13
- templateConfig?: TemplateConfig;
14
14
  };
15
15
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {
16
16
  dynamicContent: {
@@ -1,16 +1,16 @@
1
1
  import a from "./Guido.vue2.js";
2
2
  /* empty css */
3
3
  import i from "../_virtual/_plugin-vue2_normalizer.js";
4
- var s = function() {
4
+ var t = function() {
5
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.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef" }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.SaveAsTemplateDrawer), e.isTestPartner() ? o._e() : r(e.OnboardingWrapper), r(e.UnsubscribeWrapper), r(e.LoadingWrapper)], 1);
7
- }, t = [], d = /* @__PURE__ */ i(
6
+ return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef" }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.SaveAsTemplateDrawer), e.isTestPartner() ? o._e() : r(e.OnboardingWrapper), r(e.LoadingWrapper)], 1);
7
+ }, s = [], d = /* @__PURE__ */ i(
8
8
  a,
9
- s,
10
9
  t,
10
+ s,
11
11
  !1,
12
12
  null,
13
- "85d64228"
13
+ "cc1f9260"
14
14
  );
15
15
  const v = d.exports;
16
16
  export {
@@ -1,21 +1,18 @@
1
- import { defineComponent as R, defineAsyncComponent as G, ref as x, computed as U, watch as F, onMounted as M, onUnmounted as z } from "vue";
2
- import { provideGuidoActions as B } from "../composables/useGuidoActions.js";
3
- import { usePartner as K } from "../composables/usePartner.js";
4
- import { useStripo as O } from "../composables/useStripo.js";
5
- import { migrate as I } from "../config/migrator/index.js";
6
- import { DefaultUsername as j, DefaultMessageType as q, DefaultGuidoConfig as J } from "../enums/defaults.js";
7
- import Q from "./organisms/base/Toaster.vue.js";
8
- import V from "./organisms/header/HeaderWrapper.vue.js";
9
- import X from "./organisms/LoadingWrapper.vue.js";
10
- import Y from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
11
- import Z from "./organisms/unsubscribe/UnsubscribeWrapper.vue.js";
12
- import { useStripoApi as $ } from "../services/stripoApi.js";
13
- import { useDynamicContentStore as ee } from "../stores/dynamic-content.js";
14
- import { useEditorStore as oe } from "../stores/editor.js";
15
- import { usePreviewStore as te } from "../stores/preview.js";
16
- import { useUnsubscribeStore as ne } from "../stores/unsubscribe.js";
17
- import re from "../node_modules/lodash-es/merge.js";
18
- const Se = /* @__PURE__ */ R({
1
+ import { defineComponent as N, defineAsyncComponent as E, ref as H, computed as G, watch as R, onMounted as U, onUnmounted as x } from "vue";
2
+ import { provideGuidoActions as F } from "../composables/useGuidoActions.js";
3
+ import { usePartner as M } from "../composables/usePartner.js";
4
+ import { useStripo as z } from "../composables/useStripo.js";
5
+ import { DefaultUsername as B, DefaultMessageType as K, DefaultGuidoConfig as O } from "../enums/defaults.js";
6
+ import j from "./organisms/base/Toaster.vue.js";
7
+ import q from "./organisms/header/HeaderWrapper.vue.js";
8
+ import J from "./organisms/LoadingWrapper.vue.js";
9
+ import Q from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
10
+ import { useStripoApi as V } from "../services/stripoApi.js";
11
+ import { useDynamicContentStore as X } from "../stores/dynamic-content.js";
12
+ import { useEditorStore as Y } from "../stores/editor.js";
13
+ import { usePreviewStore as Z } from "../stores/preview.js";
14
+ import $ from "../node_modules/lodash-es/merge.js";
15
+ const ge = /* @__PURE__ */ N({
19
16
  __name: "Guido",
20
17
  props: {
21
18
  templateId: null,
@@ -26,50 +23,49 @@ const Se = /* @__PURE__ */ R({
26
23
  username: null,
27
24
  html: null,
28
25
  css: null,
29
- guidoConfig: null,
30
- templateConfig: null
26
+ preselectedDynamicContentList: null,
27
+ guidoConfig: null
31
28
  },
32
29
  emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready"],
33
- setup(W, { expose: _, emit: o }) {
34
- const d = W, L = G(
30
+ setup(P, { expose: I, emit: o }) {
31
+ const n = P, L = E(
35
32
  () => import("./organisms/email-preview/PreviewContainer.vue.js")
36
- ), k = G(
33
+ ), _ = E(
37
34
  () => import("./organisms/onboarding/OnboardingWrapper.vue.js")
38
- ), m = x(), s = ee(), u = ne(), l = oe(), A = te(), n = U(() => l.hasChanges), { getPartnerName: p, getProductType: g, isTestPartner: N } = K(), f = () => {
35
+ ), c = H(), r = X(), d = Y(), W = Z(), t = G(() => d.hasChanges), a = n.preselectedDynamicContentList || [], { getPartnerName: m, getProductType: l, isTestPartner: k } = M(), u = () => {
39
36
  var e;
40
- return (e = m.value) == null ? void 0 : e.handleSave(!0);
37
+ return (e = c.value) == null ? void 0 : e.handleSave(!0);
41
38
  }, {
42
- templateId: y,
43
- userId: v,
44
- guidoConfig: b,
45
- templateConfig: t,
46
- html: r = "",
47
- css: h = "",
48
- partnerName: a = p(),
49
- productType: i = g(),
50
- messageType: C = q,
51
- username: w = j
52
- } = d, c = (t == null ? void 0 : t.preselectedDynamicContentList) || [];
53
- window.GuidoConfig = re(J, b), window.GuidoConfig.partner = {
54
- partnerName: a,
55
- productType: i,
39
+ templateId: p,
40
+ userId: g,
41
+ guidoConfig: f,
42
+ html: y = "",
43
+ css: v = "",
44
+ partnerName: i = m(),
45
+ productType: s = l(),
46
+ messageType: C = K,
47
+ username: h = B
48
+ } = n;
49
+ window.GuidoConfig = $(O, f), window.GuidoConfig.partner = {
50
+ partnerName: i,
51
+ productType: s,
56
52
  messageType: C
57
53
  };
58
- const { initPlugin: S } = O({
59
- emailId: y,
60
- userId: v,
61
- username: w,
62
- partnerName: a,
63
- productType: i,
64
- preselectedDynamicContentList: c,
54
+ const { initPlugin: w } = z({
55
+ emailId: p,
56
+ userId: g,
57
+ username: h,
58
+ partnerName: i,
59
+ productType: s,
60
+ preselectedDynamicContentList: a,
65
61
  onReady: () => {
66
62
  console.debug("guido:ready"), o("ready");
67
63
  }
68
- }), { getDefaultTemplate: D } = $(), H = U(() => {
64
+ }), { getDefaultTemplate: S } = V(), A = G(() => {
69
65
  var e;
70
66
  return !((e = window.GuidoConfig) != null && e.useHeader);
71
67
  });
72
- B({
68
+ F({
73
69
  onBack: () => {
74
70
  console.debug("guido:back"), o("back");
75
71
  },
@@ -80,47 +76,46 @@ const Se = /* @__PURE__ */ R({
80
76
  console.debug("guido:save:complete", e), o("save:complete", e);
81
77
  }
82
78
  });
83
- const T = (e) => {
84
- console.debug("dynamic-content:close", e), s.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
85
- }, E = () => {
79
+ const b = (e) => {
80
+ console.debug("dynamic-content:close", e), r.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
81
+ }, D = () => {
86
82
  console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
87
83
  };
88
- return F(() => n.value, () => {
89
- o("on-change", n.value);
90
- }), M(async () => {
84
+ return R(() => t.value, () => {
85
+ o("on-change", t.value);
86
+ }), U(async () => {
91
87
  console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow");
92
88
  try {
93
- u.selectedUnsubscribePages = (t == null ? void 0 : t.selectedUnsubscribePages) || [];
94
89
  let e = {
95
- html: r && await I(r),
96
- css: h,
90
+ html: y,
91
+ css: v,
97
92
  forceRecreate: !0
98
93
  // TODO: It should be false for old templates. We will communicate with Stripo
99
94
  };
100
- e.html || (e = await D(), e.html = await I(e.html)), await S(e), s.selectedDynamicContentList = c;
95
+ e.html || (e = await S()), await w(e), r.selectedDynamicContentList = a;
101
96
  } catch (e) {
102
97
  console.error("Failed to initialize Stripo editor:", e);
103
98
  }
104
99
  document.addEventListener("dynamic-content:open", (e) => {
105
- const P = e;
106
- console.debug("dynamic-content:open", P.detail), o("dynamic-content:open", P.detail);
100
+ const T = e;
101
+ console.debug("dynamic-content:open", T.detail), o("dynamic-content:open", T.detail);
107
102
  });
108
- }), z(() => {
103
+ }), x(() => {
109
104
  try {
110
105
  window.UIEditor.removeEditor();
111
106
  } catch {
112
107
  console.debug("Failed to remove Stripo editor: No editor found");
113
108
  }
114
- }), _({
109
+ }), I({
115
110
  dynamicContent: {
116
- insert: T,
117
- close: E
111
+ insert: b,
112
+ close: D
118
113
  },
119
- hasChanges: n,
120
- saveSilent: f
121
- }), { __sfc: !0, PreviewContainer: L, OnboardingWrapper: k, headerWrapperRef: m, dynamicContentStore: s, unsubscribeStore: u, props: d, editorStore: l, previewStore: A, hasChanges: n, getPartnerName: p, getProductType: g, isTestPartner: N, saveSilent: f, templateId: y, userId: v, guidoConfig: b, templateConfig: t, html: r, css: h, partnerName: a, productType: i, messageType: C, username: w, preselectedDynamicContentList: c, emit: o, initPlugin: S, getDefaultTemplate: D, noHeader: H, insertDynamicContent: T, closeDynamicContent: E, Toaster: Q, HeaderWrapper: V, LoadingWrapper: X, SaveAsTemplateDrawer: Y, UnsubscribeWrapper: Z };
114
+ hasChanges: t,
115
+ saveSilent: u
116
+ }), { __sfc: !0, PreviewContainer: L, OnboardingWrapper: _, headerWrapperRef: c, dynamicContentStore: r, props: n, editorStore: d, previewStore: W, hasChanges: t, preselectedDynamicContentList: a, getPartnerName: m, getProductType: l, isTestPartner: k, saveSilent: u, templateId: p, userId: g, guidoConfig: f, html: y, css: v, partnerName: i, productType: s, messageType: C, username: h, emit: o, initPlugin: w, getDefaultTemplate: S, noHeader: A, insertDynamicContent: b, closeDynamicContent: D, Toaster: j, HeaderWrapper: q, LoadingWrapper: J, SaveAsTemplateDrawer: Q };
122
117
  }
123
118
  });
124
119
  export {
125
- Se as default
120
+ ge as default
126
121
  };
@@ -2,7 +2,7 @@ import type { FooterButtonGroupOptions } from '@@/Types/wrappers/wp-drawer';
2
2
  interface Props {
3
3
  id: string;
4
4
  className?: string;
5
- size?: 'small' | 'medium' | 'large';
5
+ size?: string;
6
6
  closeOnOutsideClick?: boolean;
7
7
  descriptionStatus?: boolean;
8
8
  descriptionText?: string;
@@ -10,11 +10,9 @@ interface Props {
10
10
  status: boolean;
11
11
  titleText: string;
12
12
  }
13
- declare var __VLS_12: {}, __VLS_14: {};
13
+ declare var __VLS_12: {};
14
14
  type __VLS_Slots = {} & {
15
- headerBottomSlot?: (props: typeof __VLS_12) => any;
16
- } & {
17
- default?: (props: typeof __VLS_14) => any;
15
+ default?: (props: typeof __VLS_12) => any;
18
16
  };
19
17
  declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
20
18
  className: string;
@@ -34,7 +32,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
34
32
  descriptionText: string;
35
33
  }>>>, {
36
34
  className: string;
37
- size: "small" | "medium" | "large";
35
+ size: string;
38
36
  closeOnOutsideClick: boolean;
39
37
  descriptionStatus: boolean;
40
38
  descriptionText: string;
@@ -1,6 +1,6 @@
1
1
  import r from "./WpDrawer.vue2.js";
2
2
  import s from "../../_virtual/_plugin-vue2_normalizer.js";
3
- var u = function() {
3
+ var i = function() {
4
4
  var t = this, n = t._self._c, e = t._self._setupProxy;
5
5
  return n(e.InDrawer, { class: t.className, attrs: { id: t.id, "footer-status": "", "close-on-outside-click": t.closeOnOutsideClick, "description-status": t.descriptionStatus, "description-text": t.descriptionText, "footer-button-group-options": t.footerButtonGroupOptions, size: t.size, status: t.status, "title-text": t.titleText }, on: { cancelOrBackButtonEvent: function(o) {
6
6
  return e.emit("cancelOrBackButtonEvent");
@@ -8,15 +8,13 @@ var u = function() {
8
8
  return e.emit("onCloseEvent");
9
9
  }, primaryButtonEvent: function(o) {
10
10
  return e.emit("primaryButtonEvent");
11
- } }, scopedSlots: t._u([t.$slots.headerBottomSlot ? { key: "headerBottomSlot", fn: function() {
12
- return [t._t("headerBottomSlot")];
13
- }, proxy: !0 } : null, { key: "contentSlot", fn: function() {
11
+ } }, scopedSlots: t._u([{ key: "contentSlot", fn: function() {
14
12
  return [n("div", [t._t("default")], 2)];
15
13
  }, proxy: !0 }], null, !0) });
16
- }, i = [], c = /* @__PURE__ */ s(
14
+ }, u = [], c = /* @__PURE__ */ s(
17
15
  r,
18
- u,
19
16
  i,
17
+ u,
20
18
  !1,
21
19
  null,
22
20
  null
@@ -1,4 +1,3 @@
1
- import type { DynamicContent } from '@@/Types/generic';
2
1
  export declare const useHtmlValidator: () => {
3
- validateHtml: (html: string, customFields: DynamicContent[], isOnSaveValidation?: boolean) => Promise<boolean>;
2
+ validateHtml: (html: string, customFields: string[], isOnSaveValidation?: boolean) => Promise<boolean>;
4
3
  };