@useinsider/guido 1.0.0-beta.afdfab7 → 1.0.0-beta.b79463f

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 (128) hide show
  1. package/README.md +76 -14
  2. package/dist/@types/generic.d.ts +5 -0
  3. package/dist/App.vue.d.ts +1 -1
  4. package/dist/_virtual/AddCustomFont.js +4 -0
  5. package/dist/_virtual/AiAssistantValueType.js +4 -0
  6. package/dist/_virtual/BackgroundColorBuiltInControl.js +4 -0
  7. package/dist/_virtual/BackgroundImageBuiltInControl.js +4 -0
  8. package/dist/_virtual/Block.js +4 -0
  9. package/dist/_virtual/BlockAttributes.js +4 -0
  10. package/dist/_virtual/BlockCompositionType.js +4 -0
  11. package/dist/_virtual/BlockPaddingsBuiltInControl.js +4 -0
  12. package/dist/_virtual/BlockRenderer.js +4 -0
  13. package/dist/_virtual/BlockType.js +4 -0
  14. package/dist/_virtual/BlocksPanel.js +4 -0
  15. package/dist/_virtual/BuiltInControl.js +4 -0
  16. package/dist/_virtual/BuiltInControlTypes.js +4 -0
  17. package/dist/_virtual/ButtonBorderBuiltInControl.js +4 -0
  18. package/dist/_virtual/ButtonColorBuiltInControl.js +4 -0
  19. package/dist/_virtual/ButtonFontColorBuiltInControl.js +4 -0
  20. package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +4 -0
  21. package/dist/_virtual/ButtonTextBuiltInControl.js +4 -0
  22. package/dist/_virtual/ContextAction.js +4 -0
  23. package/dist/_virtual/ContextActionType.js +4 -0
  24. package/dist/_virtual/Control.js +4 -0
  25. package/dist/_virtual/EditorStatePropertyType.js +4 -0
  26. package/dist/_virtual/Extension.js +4 -0
  27. package/dist/_virtual/ExtensionBuilder.js +4 -0
  28. package/dist/_virtual/FontFamilyBuiltInControl.js +4 -0
  29. package/dist/_virtual/LinkColorBuiltInControl.js +4 -0
  30. package/dist/_virtual/ModificationDescription.js +4 -0
  31. package/dist/_virtual/PanelPosition.js +4 -0
  32. package/dist/_virtual/PreviewDeviceMode.js +4 -0
  33. package/dist/_virtual/SettingsPanelRegistry.js +4 -0
  34. package/dist/_virtual/SettingsPanelTab.js +4 -0
  35. package/dist/_virtual/SettingsTab.js +4 -0
  36. package/dist/_virtual/StructureBorderBuiltInControl.js +4 -0
  37. package/dist/_virtual/StructurePaddingsBuiltInControl.js +4 -0
  38. package/dist/_virtual/TextColorBuiltInControl.js +4 -0
  39. package/dist/_virtual/TextLineSpacingBuiltInControl.js +4 -0
  40. package/dist/_virtual/TextSizeBuiltInControl.js +4 -0
  41. package/dist/_virtual/TextStyleBuiltInControl.js +4 -0
  42. package/dist/_virtual/UIElement.js +4 -0
  43. package/dist/_virtual/UIElementTagRegistry.js +4 -0
  44. package/dist/_virtual/UIElementType.js +4 -0
  45. package/dist/_virtual/UIElementsAttributes.js +4 -0
  46. package/dist/_virtual/index.js +5 -0
  47. package/dist/_virtual/index2.js +4 -0
  48. package/dist/components/Guido.vue.d.ts +9 -2
  49. package/dist/components/Guido.vue.js +8 -8
  50. package/dist/components/Guido.vue2.js +38 -27
  51. package/dist/components/organisms/header/RightSlot.vue.d.ts +1 -1
  52. package/dist/components/organisms/header/ViewOptions.vue.d.ts +1 -1
  53. package/dist/components/organisms/header/version-history/RestoreButton.vue.d.ts +1 -1
  54. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.d.ts +1 -1
  55. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.js +1 -1
  56. package/dist/components/organisms/header/version-history/ViewOptions.vue.d.ts +1 -1
  57. package/dist/composables/useActionsApi.d.ts +1 -0
  58. package/dist/composables/useActionsApi.js +14 -12
  59. package/dist/composables/useStripo.js +39 -28
  60. package/dist/extensions/DynamicContent/dynamic-content-modal.d.ts +6 -0
  61. package/dist/extensions/DynamicContent/dynamic-content-modal.js +27 -0
  62. package/dist/extensions/DynamicContent/dynamic-content.css.js +24 -0
  63. package/dist/extensions/DynamicContent/dynamic-content.d.ts +16 -0
  64. package/dist/extensions/DynamicContent/dynamic-content.js +63 -0
  65. package/dist/extensions/DynamicContent/extension.d.ts +2 -0
  66. package/dist/extensions/DynamicContent/extension.js +11 -0
  67. package/dist/guido.css +1 -1
  68. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +51 -0
  69. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +52 -0
  70. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +41 -0
  71. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +18 -0
  72. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +32 -0
  73. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +18 -0
  74. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +8 -0
  75. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +13 -0
  76. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +34 -0
  77. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +13 -0
  78. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +13 -0
  79. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +104 -0
  80. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +13 -0
  81. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +13 -0
  82. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +13 -0
  83. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +13 -0
  84. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +13 -0
  85. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +13 -0
  86. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +45 -0
  87. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +43 -0
  88. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +46 -0
  89. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +44 -0
  90. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +22 -0
  91. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +46 -0
  92. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +46 -0
  93. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +45 -0
  94. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +45 -0
  95. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +45 -0
  96. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +20 -0
  97. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +43 -0
  98. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +45 -0
  99. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +18 -0
  100. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +32 -0
  101. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +46 -0
  102. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +44 -0
  103. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +43 -0
  104. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +43 -0
  105. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +45 -0
  106. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +43 -0
  107. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +266 -0
  108. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +26 -0
  109. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +22 -0
  110. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +18 -0
  111. package/dist/stores/editor.d.ts +0 -1
  112. package/dist/stores/editor.js +1 -2
  113. package/package.json +5 -4
  114. package/dist/components/organisms/base/ModalWrapper.vue.d.ts +0 -72
  115. package/dist/components/organisms/base/ModalWrapper.vue.js +0 -19
  116. package/dist/components/organisms/base/ModalWrapper.vue2.js +0 -43
  117. package/dist/components/organisms/save-template/SaveTemplateModal.vue.d.ts +0 -16
  118. package/dist/components/organisms/save-template/SaveTemplateModal.vue.js +0 -22
  119. package/dist/components/organisms/save-template/SaveTemplateModal.vue2.js +0 -86
  120. package/dist/composables/useSaveAsTemplate.d.ts +0 -17
  121. package/dist/composables/useSaveAsTemplate.js +0 -44
  122. package/dist/composables/useTemplateCategories.d.ts +0 -35
  123. package/dist/composables/useTemplateCategories.js +0 -78
  124. package/dist/composables/useTemplateNameValidation.d.ts +0 -13
  125. package/dist/composables/useTemplateNameValidation.js +0 -57
  126. package/dist/mock/api/template-library.d.ts +0 -2
  127. package/dist/utils/base64.d.ts +0 -1
  128. package/dist/utils/base64.js +0 -14
@@ -0,0 +1,266 @@
1
+ import { __exports as t } from "../../../../_virtual/index2.js";
2
+ import { __require as J } from "./ui-elements/UIElement.js";
3
+ import { __require as K } from "./controls/Control.js";
4
+ import { __require as Q } from "./controls/SettingsPanelRegistry.js";
5
+ import { __require as W } from "./blocks/ContextAction.js";
6
+ import { __require as X } from "./blocks/BlockRenderer.js";
7
+ import { __require as Y } from "./blocks/Block.js";
8
+ import { __require as Z } from "./ExtensionBuilder.js";
9
+ import { __require as $ } from "./Extension.js";
10
+ import { __require as x } from "./ui-elements/UIElementTagRegistry.js";
11
+ import { __require as ee } from "./modifications/ModificationDescription.js";
12
+ import { __require as re } from "./controls/SettingsPanelTab.js";
13
+ import { __require as te } from "./constants/UIElementType.js";
14
+ import { __require as ne } from "./constants/BuiltInControlTypes.js";
15
+ import { __require as oe } from "./constants/SettingsTab.js";
16
+ import { __require as ie } from "./constants/UIElementsAttributes.js";
17
+ import { __require as ue } from "./constants/BlockType.js";
18
+ import { __require as le } from "./constants/ContextActionType.js";
19
+ import { __require as ae } from "./constants/BlockCompositionType.js";
20
+ import { __require as ce } from "./constants/BlockAttributes.js";
21
+ import { __require as Ce } from "./constants/AiAssistantValueType.js";
22
+ import { __require as me } from "./constants/AddCustomFont.js";
23
+ import { __require as Be } from "./controls/BuiltInControl.js";
24
+ import { __require as fe } from "./controls/FontFamilyBuiltInControl.js";
25
+ import { __require as de } from "./controls/BackgroundColorBuiltInControl.js";
26
+ import { __require as be } from "./controls/BlockPaddingsBuiltInControl.js";
27
+ import { __require as _e } from "./controls/BackgroundImageBuiltInControl.js";
28
+ import { __require as ge } from "./constants/EditorStatePropertyType.js";
29
+ import { __require as Ie } from "./constants/PreviewDeviceMode.js";
30
+ import { __require as ye } from "./controls/StructurePaddingsBuiltInControl.js";
31
+ import { __require as Pe } from "./controls/TextColorBuiltInControl.js";
32
+ import { __require as se } from "./controls/ButtonFontColorBuiltInControl.js";
33
+ import { __require as Te } from "./controls/ButtonColorBuiltInControl.js";
34
+ import { __require as qe } from "./controls/ButtonInternalIndentsBuiltInControl.js";
35
+ import { __require as Oe } from "./controls/StructureBorderBuiltInControl.js";
36
+ import { __require as je } from "./controls/TextSizeBuiltInControl.js";
37
+ import { __require as Se } from "./controls/TextStyleBuiltInControl.js";
38
+ import { __require as ve } from "./controls/LinkColorBuiltInControl.js";
39
+ import { __require as ke } from "./controls/ButtonTextBuiltInControl.js";
40
+ import { __require as pe } from "./controls/ButtonBorderBuiltInControl.js";
41
+ import { __require as Ae } from "./controls/TextLineSpacingBuiltInControl.js";
42
+ import { __require as Ee } from "./blocks/BlocksPanel.js";
43
+ import { __require as Fe } from "./constants/PanelPosition.js";
44
+ var n;
45
+ function Tr() {
46
+ return n ? t : (n = 1, function(e) {
47
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.ButtonTextBuiltInControl = e.LinkColorBuiltInControl = e.BackgroundImageBuiltInControl = e.BackgroundColorBuiltInControl = e.FontFamilyBuiltInControl = e.BuiltInControl = e.ADD_CUSTOM_FONT_OPTION = e.BlockAttr = e.AiAssistantValueType = e.BlockCompositionType = e.AmpFormControls = e.GeneralControls = e.GeneralStylesControls = e.MessageSettingsControls = e.ContainerControls = e.StructureControls = e.StripeControls = e.CarouselControls = e.AccordionControls = e.MenuControls = e.SocialControls = e.CustomTextControls = e.CustomImageControls = e.CustomLinkControls = e.HTMLControls = e.ImageControls = e.SpacerControls = e.TimerControls = e.VideoControls = e.TextControls = e.ButtonControls = e.BannerChildControls = e.BannerControls = e.BlockType = e.SettingsTab = e.BuiltInControlTypes = e.ContextActionType = e.UEAttr = e.UIElementType = e.ModificationDescription = e.Extension = e.ExtensionBuilder = e.SettingsPanelTab = e.Block = e.BlockRenderer = e.ContextAction = e.SettingsPanelRegistry = e.Control = e.UIElementTagRegistry = e.UIElement = void 0, e.TextLineSpacingBuiltInControl = e.ButtonBorderBuiltInControl = e.PanelPosition = e.BlocksPanel = e.StructureBorderBuiltInControl = e.TextStyleBuiltInControl = e.TextSizeBuiltInControl = e.PreviewDeviceMode = e.EditorStatePropertyType = e.ButtonColorBuiltInControl = e.ButtonFontColorBuiltInControl = e.TextColorBuiltInControl = e.ButtonInternalIndentsBuiltInControl = e.StructurePaddingsBuiltInControl = e.BlockPaddingsBuiltInControl = void 0;
48
+ var o = J();
49
+ Object.defineProperty(e, "UIElement", { enumerable: !0, get: function() {
50
+ return o.UIElement;
51
+ } });
52
+ var i = K();
53
+ Object.defineProperty(e, "Control", { enumerable: !0, get: function() {
54
+ return i.Control;
55
+ } });
56
+ var u = Q();
57
+ Object.defineProperty(e, "SettingsPanelRegistry", { enumerable: !0, get: function() {
58
+ return u.SettingsPanelRegistry;
59
+ } });
60
+ var l = W();
61
+ Object.defineProperty(e, "ContextAction", { enumerable: !0, get: function() {
62
+ return l.ContextAction;
63
+ } });
64
+ var a = X();
65
+ Object.defineProperty(e, "BlockRenderer", { enumerable: !0, get: function() {
66
+ return a.BlockRenderer;
67
+ } });
68
+ var c = Y();
69
+ Object.defineProperty(e, "Block", { enumerable: !0, get: function() {
70
+ return c.Block;
71
+ } });
72
+ var C = Z();
73
+ Object.defineProperty(e, "ExtensionBuilder", { enumerable: !0, get: function() {
74
+ return C.ExtensionBuilder;
75
+ } });
76
+ var m = $();
77
+ Object.defineProperty(e, "Extension", { enumerable: !0, get: function() {
78
+ return m.Extension;
79
+ } });
80
+ var B = x();
81
+ Object.defineProperty(e, "UIElementTagRegistry", { enumerable: !0, get: function() {
82
+ return B.UIElementTagRegistry;
83
+ } });
84
+ var f = ee();
85
+ Object.defineProperty(e, "ModificationDescription", { enumerable: !0, get: function() {
86
+ return f.ModificationDescription;
87
+ } });
88
+ var d = re();
89
+ Object.defineProperty(e, "SettingsPanelTab", { enumerable: !0, get: function() {
90
+ return d.SettingsPanelTab;
91
+ } });
92
+ var b = te();
93
+ Object.defineProperty(e, "UIElementType", { enumerable: !0, get: function() {
94
+ return b.UIElementType;
95
+ } });
96
+ var r = ne();
97
+ Object.defineProperty(e, "AccordionControls", { enumerable: !0, get: function() {
98
+ return r.AccordionControls;
99
+ } }), Object.defineProperty(e, "AmpFormControls", { enumerable: !0, get: function() {
100
+ return r.AmpFormControls;
101
+ } }), Object.defineProperty(e, "BannerChildControls", { enumerable: !0, get: function() {
102
+ return r.BannerChildControls;
103
+ } }), Object.defineProperty(e, "BannerControls", { enumerable: !0, get: function() {
104
+ return r.BannerControls;
105
+ } }), Object.defineProperty(e, "BuiltInControlTypes", { enumerable: !0, get: function() {
106
+ return r.BuiltInControlTypes;
107
+ } }), Object.defineProperty(e, "ButtonControls", { enumerable: !0, get: function() {
108
+ return r.ButtonControls;
109
+ } }), Object.defineProperty(e, "CarouselControls", { enumerable: !0, get: function() {
110
+ return r.CarouselControls;
111
+ } }), Object.defineProperty(e, "ContainerControls", { enumerable: !0, get: function() {
112
+ return r.ContainerControls;
113
+ } }), Object.defineProperty(e, "CustomImageControls", { enumerable: !0, get: function() {
114
+ return r.CustomImageControls;
115
+ } }), Object.defineProperty(e, "CustomLinkControls", { enumerable: !0, get: function() {
116
+ return r.CustomLinkControls;
117
+ } }), Object.defineProperty(e, "CustomTextControls", { enumerable: !0, get: function() {
118
+ return r.CustomTextControls;
119
+ } }), Object.defineProperty(e, "GeneralControls", { enumerable: !0, get: function() {
120
+ return r.GeneralControls;
121
+ } }), Object.defineProperty(e, "GeneralStylesControls", { enumerable: !0, get: function() {
122
+ return r.GeneralStylesControls;
123
+ } }), Object.defineProperty(e, "HTMLControls", { enumerable: !0, get: function() {
124
+ return r.HTMLControls;
125
+ } }), Object.defineProperty(e, "ImageControls", { enumerable: !0, get: function() {
126
+ return r.ImageControls;
127
+ } }), Object.defineProperty(e, "MenuControls", { enumerable: !0, get: function() {
128
+ return r.MenuControls;
129
+ } }), Object.defineProperty(e, "MessageSettingsControls", { enumerable: !0, get: function() {
130
+ return r.MessageSettingsControls;
131
+ } }), Object.defineProperty(e, "SocialControls", { enumerable: !0, get: function() {
132
+ return r.SocialControls;
133
+ } }), Object.defineProperty(e, "SpacerControls", { enumerable: !0, get: function() {
134
+ return r.SpacerControls;
135
+ } }), Object.defineProperty(e, "StripeControls", { enumerable: !0, get: function() {
136
+ return r.StripeControls;
137
+ } }), Object.defineProperty(e, "StructureControls", { enumerable: !0, get: function() {
138
+ return r.StructureControls;
139
+ } }), Object.defineProperty(e, "TextControls", { enumerable: !0, get: function() {
140
+ return r.TextControls;
141
+ } }), Object.defineProperty(e, "TimerControls", { enumerable: !0, get: function() {
142
+ return r.TimerControls;
143
+ } }), Object.defineProperty(e, "VideoControls", { enumerable: !0, get: function() {
144
+ return r.VideoControls;
145
+ } });
146
+ var _ = oe();
147
+ Object.defineProperty(e, "SettingsTab", { enumerable: !0, get: function() {
148
+ return _.SettingsTab;
149
+ } });
150
+ var g = ie();
151
+ Object.defineProperty(e, "UEAttr", { enumerable: !0, get: function() {
152
+ return g.UEAttr;
153
+ } });
154
+ var I = ue();
155
+ Object.defineProperty(e, "BlockType", { enumerable: !0, get: function() {
156
+ return I.BlockType;
157
+ } });
158
+ var y = le();
159
+ Object.defineProperty(e, "ContextActionType", { enumerable: !0, get: function() {
160
+ return y.ContextActionType;
161
+ } });
162
+ var P = ae();
163
+ Object.defineProperty(e, "BlockCompositionType", { enumerable: !0, get: function() {
164
+ return P.BlockCompositionType;
165
+ } });
166
+ var s = ce();
167
+ Object.defineProperty(e, "BlockAttr", { enumerable: !0, get: function() {
168
+ return s.BlockAttr;
169
+ } });
170
+ var T = Ce();
171
+ Object.defineProperty(e, "AiAssistantValueType", { enumerable: !0, get: function() {
172
+ return T.AiAssistantValueType;
173
+ } });
174
+ var q = me();
175
+ Object.defineProperty(e, "ADD_CUSTOM_FONT_OPTION", { enumerable: !0, get: function() {
176
+ return q.ADD_CUSTOM_FONT_OPTION;
177
+ } });
178
+ var O = Be();
179
+ Object.defineProperty(e, "BuiltInControl", { enumerable: !0, get: function() {
180
+ return O.BuiltInControl;
181
+ } });
182
+ var j = fe();
183
+ Object.defineProperty(e, "FontFamilyBuiltInControl", { enumerable: !0, get: function() {
184
+ return j.FontFamilyBuiltInControl;
185
+ } });
186
+ var S = de();
187
+ Object.defineProperty(e, "BackgroundColorBuiltInControl", { enumerable: !0, get: function() {
188
+ return S.BackgroundColorBuiltInControl;
189
+ } });
190
+ var v = be();
191
+ Object.defineProperty(e, "BlockPaddingsBuiltInControl", { enumerable: !0, get: function() {
192
+ return v.BlockPaddingsBuiltInControl;
193
+ } });
194
+ var k = _e();
195
+ Object.defineProperty(e, "BackgroundImageBuiltInControl", { enumerable: !0, get: function() {
196
+ return k.BackgroundImageBuiltInControl;
197
+ } });
198
+ var p = ge();
199
+ Object.defineProperty(e, "EditorStatePropertyType", { enumerable: !0, get: function() {
200
+ return p.EditorStatePropertyType;
201
+ } });
202
+ var A = Ie();
203
+ Object.defineProperty(e, "PreviewDeviceMode", { enumerable: !0, get: function() {
204
+ return A.PreviewDeviceMode;
205
+ } });
206
+ var E = ye();
207
+ Object.defineProperty(e, "StructurePaddingsBuiltInControl", { enumerable: !0, get: function() {
208
+ return E.StructurePaddingsBuiltInControl;
209
+ } });
210
+ var F = Pe();
211
+ Object.defineProperty(e, "TextColorBuiltInControl", { enumerable: !0, get: function() {
212
+ return F.TextColorBuiltInControl;
213
+ } });
214
+ var M = se();
215
+ Object.defineProperty(e, "ButtonFontColorBuiltInControl", { enumerable: !0, get: function() {
216
+ return M.ButtonFontColorBuiltInControl;
217
+ } });
218
+ var U = Te();
219
+ Object.defineProperty(e, "ButtonColorBuiltInControl", { enumerable: !0, get: function() {
220
+ return U.ButtonColorBuiltInControl;
221
+ } });
222
+ var D = qe();
223
+ Object.defineProperty(e, "ButtonInternalIndentsBuiltInControl", { enumerable: !0, get: function() {
224
+ return D.ButtonInternalIndentsBuiltInControl;
225
+ } });
226
+ var L = Oe();
227
+ Object.defineProperty(e, "StructureBorderBuiltInControl", { enumerable: !0, get: function() {
228
+ return L.StructureBorderBuiltInControl;
229
+ } });
230
+ var R = je();
231
+ Object.defineProperty(e, "TextSizeBuiltInControl", { enumerable: !0, get: function() {
232
+ return R.TextSizeBuiltInControl;
233
+ } });
234
+ var V = Se();
235
+ Object.defineProperty(e, "TextStyleBuiltInControl", { enumerable: !0, get: function() {
236
+ return V.TextStyleBuiltInControl;
237
+ } });
238
+ var G = ve();
239
+ Object.defineProperty(e, "LinkColorBuiltInControl", { enumerable: !0, get: function() {
240
+ return G.LinkColorBuiltInControl;
241
+ } });
242
+ var N = ke();
243
+ Object.defineProperty(e, "ButtonTextBuiltInControl", { enumerable: !0, get: function() {
244
+ return N.ButtonTextBuiltInControl;
245
+ } });
246
+ var w = pe();
247
+ Object.defineProperty(e, "ButtonBorderBuiltInControl", { enumerable: !0, get: function() {
248
+ return w.ButtonBorderBuiltInControl;
249
+ } });
250
+ var z = Ae();
251
+ Object.defineProperty(e, "TextLineSpacingBuiltInControl", { enumerable: !0, get: function() {
252
+ return z.TextLineSpacingBuiltInControl;
253
+ } });
254
+ var h = Ee();
255
+ Object.defineProperty(e, "BlocksPanel", { enumerable: !0, get: function() {
256
+ return h.BlocksPanel;
257
+ } });
258
+ var H = Fe();
259
+ Object.defineProperty(e, "PanelPosition", { enumerable: !0, get: function() {
260
+ return H.PanelPosition;
261
+ } });
262
+ }(t), t);
263
+ }
264
+ export {
265
+ Tr as __require
266
+ };
@@ -0,0 +1,26 @@
1
+ import { __exports as i } from "../../../../../_virtual/ModificationDescription.js";
2
+ var r;
3
+ function a() {
4
+ if (r) return i;
5
+ r = 1, Object.defineProperty(i, "__esModule", { value: !0 }), i.ModificationDescription = void 0;
6
+ var e = (
7
+ /** @class */
8
+ function() {
9
+ function t(o) {
10
+ this.key = o;
11
+ }
12
+ return t.prototype.withParams = function(o) {
13
+ return this.params = o, this;
14
+ }, t.prototype.getValue = function() {
15
+ return {
16
+ key: this.key,
17
+ params: this.params
18
+ };
19
+ }, t;
20
+ }()
21
+ );
22
+ return i.ModificationDescription = e, i;
23
+ }
24
+ export {
25
+ a as __require
26
+ };
@@ -0,0 +1,22 @@
1
+ import { __exports as t } from "../../../../../_virtual/UIElement.js";
2
+ var n;
3
+ function l() {
4
+ if (n) return t;
5
+ n = 1, Object.defineProperty(t, "__esModule", { value: !0 }), t.UIElement = void 0;
6
+ var r = (
7
+ /** @class */
8
+ function() {
9
+ function e() {
10
+ }
11
+ return e.prototype.onDestroy = function() {
12
+ }, e.prototype.getValue = function() {
13
+ }, e.prototype.setValue = function(o) {
14
+ }, e.prototype.onAttributeUpdated = function(o, u) {
15
+ }, e;
16
+ }()
17
+ );
18
+ return t.UIElement = r, t;
19
+ }
20
+ export {
21
+ l as __require
22
+ };
@@ -0,0 +1,18 @@
1
+ import { __exports as e } from "../../../../../_virtual/UIElementTagRegistry.js";
2
+ var r;
3
+ function g() {
4
+ if (r) return e;
5
+ r = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.UIElementTagRegistry = void 0;
6
+ var t = (
7
+ /** @class */
8
+ /* @__PURE__ */ function() {
9
+ function i() {
10
+ }
11
+ return i;
12
+ }()
13
+ );
14
+ return e.UIElementTagRegistry = t, e;
15
+ }
16
+ export {
17
+ g as __require
18
+ };
@@ -2,5 +2,4 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
2
2
  isCodeEditorOpen: boolean;
3
3
  isVersionHistoryOpen: boolean;
4
4
  editorVisualMode: string;
5
- isSaveTemplateModalOpen: boolean;
6
5
  }, {}, {}>;
@@ -3,8 +3,7 @@ const t = e("editor", {
3
3
  state: () => ({
4
4
  isCodeEditorOpen: !1,
5
5
  isVersionHistoryOpen: !1,
6
- editorVisualMode: "desktop",
7
- isSaveTemplateModalOpen: !1
6
+ editorVisualMode: "desktop"
8
7
  })
9
8
  });
10
9
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "1.0.0-beta.afdfab7",
3
+ "version": "1.0.0-beta.b79463f",
4
4
  "description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
5
5
  "main": "./dist/guido.umd.cjs",
6
6
  "module": "./dist/library.js",
@@ -10,9 +10,9 @@
10
10
  ],
11
11
  "exports": {
12
12
  ".": {
13
- "import": "./dist/library.js",
14
- "types": "./dist/components/Guido.vue.d.ts",
15
- "require": "./dist/components/Guido.vue.js"
13
+ "import": "./dist/library.js",
14
+ "types": "./dist/components/Guido.vue.d.ts",
15
+ "require": "./dist/components/Guido.vue.js"
16
16
  },
17
17
  "./style": "./dist/guido.css"
18
18
  },
@@ -30,6 +30,7 @@
30
30
  "author": "",
31
31
  "license": "ISC",
32
32
  "dependencies": {
33
+ "@stripoinc/ui-editor-extensions": "^1.0.6",
33
34
  "@useinsider/design-system-vue": "0.14.8",
34
35
  "@vuelidate/core": "2.0.3",
35
36
  "@vuelidate/validators": "2.0.4",
@@ -1,72 +0,0 @@
1
- interface ModalWrapperProps {
2
- isOpen: boolean;
3
- title: string;
4
- description?: string;
5
- size?: 'small' | 'medium' | 'large';
6
- primaryButtonText?: string;
7
- primaryButtonDisabled?: boolean;
8
- primaryButtonLoading?: boolean;
9
- cancelButtonText?: string;
10
- showCancelButton?: boolean;
11
- className?: string;
12
- }
13
- declare var __VLS_12: {};
14
- type __VLS_Slots = {} & {
15
- default?: (props: typeof __VLS_12) => any;
16
- };
17
- declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ModalWrapperProps>, {
18
- description: string;
19
- size: string;
20
- primaryButtonText: string;
21
- primaryButtonDisabled: boolean;
22
- primaryButtonLoading: boolean;
23
- cancelButtonText: string;
24
- showCancelButton: boolean;
25
- className: string;
26
- }>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
27
- close: () => void;
28
- save: () => void;
29
- cancel: () => void;
30
- }, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ModalWrapperProps>, {
31
- description: string;
32
- size: string;
33
- primaryButtonText: string;
34
- primaryButtonDisabled: boolean;
35
- primaryButtonLoading: boolean;
36
- cancelButtonText: string;
37
- showCancelButton: boolean;
38
- className: string;
39
- }>>>, {
40
- className: string;
41
- size: "small" | "medium" | "large";
42
- description: string;
43
- primaryButtonText: string;
44
- primaryButtonDisabled: boolean;
45
- primaryButtonLoading: boolean;
46
- cancelButtonText: string;
47
- showCancelButton: boolean;
48
- }>;
49
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
50
- export default _default;
51
- type __VLS_WithDefaults<P, D> = {
52
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
53
- default: D[K];
54
- }> : P[K];
55
- };
56
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
57
- type __VLS_TypePropsToOption<T> = {
58
- [K in keyof T]-?: {} extends Pick<T, K> ? {
59
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
60
- } : {
61
- type: import('vue').PropType<T[K]>;
62
- required: true;
63
- };
64
- };
65
- type __VLS_WithSlots<T, S> = T & {
66
- new (): {
67
- $scopedSlots: S;
68
- };
69
- };
70
- type __VLS_PrettifyLocal<T> = {
71
- [K in keyof T]: T[K];
72
- } & {};
@@ -1,19 +0,0 @@
1
- import r from "./ModalWrapper.vue2.js";
2
- import o from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var s = function() {
4
- var t = this, n = t._self._c, e = t._self._setupProxy;
5
- return n(e.InDrawer, { attrs: { id: "modal-wrapper", "description-text": t.description, "footer-button-group-options": e.drawerFooterOptions, size: t.size, status: t.isOpen, "title-text": t.title }, on: { cancelOrBackButtonEvent: e.handleCancel, onCloseEvent: e.handleClose, primaryButtonEvent: e.handleSave }, scopedSlots: t._u([{ key: "contentSlot", fn: function() {
6
- return [n("div", { staticClass: "modal-content-wrapper", class: t.className }, [t._t("default")], 2)];
7
- }, proxy: !0 }], null, !0) });
8
- }, a = [], l = /* @__PURE__ */ o(
9
- r,
10
- s,
11
- a,
12
- !1,
13
- null,
14
- null
15
- );
16
- const u = l.exports;
17
- export {
18
- u as default
19
- };
@@ -1,43 +0,0 @@
1
- import { defineComponent as o, computed as l } from "vue";
2
- import { InDrawer as s } from "@useinsider/design-system-vue";
3
- const i = /* @__PURE__ */ o({
4
- __name: "ModalWrapper",
5
- props: {
6
- isOpen: { type: Boolean },
7
- title: null,
8
- description: { default: "" },
9
- size: { default: "small" },
10
- primaryButtonText: { default: "" },
11
- primaryButtonDisabled: { type: Boolean, default: !1 },
12
- primaryButtonLoading: { type: Boolean, default: !1 },
13
- cancelButtonText: { default: "" },
14
- showCancelButton: { type: Boolean, default: !0 },
15
- className: { default: "" }
16
- },
17
- emits: ["close", "save", "cancel"],
18
- setup(a, { emit: t }) {
19
- const e = a, n = l(() => ({
20
- primaryButton: {
21
- styling: "solid",
22
- type: "primary",
23
- labelText: e.primaryButtonText,
24
- disabled: e.primaryButtonDisabled || e.primaryButtonLoading
25
- },
26
- cancelOrBackButton: e.showCancelButton ? {
27
- type: "secondary",
28
- styling: "ghost",
29
- labelText: e.cancelButtonText
30
- } : void 0
31
- }));
32
- return { __sfc: !0, props: e, emit: t, drawerFooterOptions: n, handleClose: () => {
33
- t("close");
34
- }, handleSave: () => {
35
- t("save");
36
- }, handleCancel: () => {
37
- t("cancel");
38
- }, InDrawer: s };
39
- }
40
- });
41
- export {
42
- i as default
43
- };
@@ -1,16 +0,0 @@
1
- interface TemplateModalProps {
2
- isOpen: boolean;
3
- }
4
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<TemplateModalProps>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
5
- close: () => void;
6
- }, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<TemplateModalProps>>>, {}>;
7
- export default _default;
8
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
- type __VLS_TypePropsToOption<T> = {
10
- [K in keyof T]-?: {} extends Pick<T, K> ? {
11
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
- } : {
13
- type: import('vue').PropType<T[K]>;
14
- required: true;
15
- };
16
- };
@@ -1,22 +0,0 @@
1
- import s from "./SaveTemplateModal.vue2.js";
2
- import l from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var n = function() {
4
- var r = this, e = r._self._c, t = r._self._setupProxy;
5
- return e(t.ModalWrapper, { attrs: { "cancel-button-text": t.trans("products.cancel"), description: t.trans("newsletter.save-template-description"), "is-open": t.props.isOpen, "primary-button-loading": t.saveState.saving || t.isLoadingHtml, "primary-button-text": t.trans("products.save"), title: t.trans("products.save-template") }, on: { cancel: t.closeModal, close: t.closeModal, save: t.saveTemplate } }, [e(t.InTextInput, { staticClass: "mb-5 w-1", attrs: { id: "template-name-input", "with-label": "", name: "templateName", invalid: !!t.validationError, "invalid-message": t.validationError, label: t.trans("products.template-name"), placeholder: t.trans("newsletter.enter-template-name") }, model: { value: t.templateNameInput, callback: function(a) {
6
- t.templateNameInput = typeof a == "string" ? a.trim() : a;
7
- }, expression: "templateNameInput" } }), e(t.InMultiSelect, { staticClass: "template-category-dropdown mb-5 w-1", attrs: { "create-option-status": "", "search-status": "", "button-status": !1, "character-limit-validation-text": t.trans("validation-v2.duration-value", {
8
- min: 1,
9
- max: t.templateCategorySearchInputLimit
10
- }), "create-button-label": t.trans("products.create-new-category"), "label-text": t.trans("products.template-category"), "loading-state": t.categoriesData.loading || t.categoriesData.loadingCreate, "max-character-limit": t.templateCategorySearchInputLimit, options: t.categoriesData.mappedCategories, "placeholder-text": t.trans("products.select-template-category"), value: t.categoriesData.selectedCategories }, on: { addOption: t.addOption, change: t.setSelectedCategories, resetAllOptions: t.setSelectedCategories, selectAllOptions: t.setSelectedCategories } })], 1);
11
- }, o = [], i = /* @__PURE__ */ l(
12
- s,
13
- n,
14
- o,
15
- !1,
16
- null,
17
- null
18
- );
19
- const d = i.exports;
20
- export {
21
- d as default
22
- };
@@ -1,86 +0,0 @@
1
- import { defineComponent as N, ref as o, watch as C } from "vue";
2
- import { useActionsApi as O } from "../../../composables/useActionsApi.js";
3
- import { useTemplateCategories as j } from "../../../composables/useTemplateCategories.js";
4
- import { useToaster as x } from "../../../composables/useToaster.js";
5
- import { useTranslations as E } from "../../../composables/useTranslations.js";
6
- import H from "../base/ModalWrapper.vue.js";
7
- import { InMultiSelect as R, InTextInput as V } from "@useinsider/design-system-vue";
8
- import { useSaveAsTemplate as B } from "../../../composables/useSaveAsTemplate.js";
9
- import { useTemplateNameValidation as P } from "../../../composables/useTemplateNameValidation.js";
10
- const X = /* @__PURE__ */ N({
11
- __name: "SaveTemplateModal",
12
- props: {
13
- isOpen: { type: Boolean }
14
- },
15
- emits: ["close"],
16
- setup(I, { emit: u }) {
17
- const p = I, l = E(), { showToaster: r } = x(), { getCompiledEmail: v } = O(), {
18
- data: w,
19
- fetchCategories: f,
20
- createCategory: d,
21
- setSelectedCategories: _,
22
- resetSelection: y,
23
- getSelectedCategoryIds: g
24
- } = j(), {
25
- state: M,
26
- saveTemplate: T
27
- } = B(), {
28
- validationError: b,
29
- validateTemplateName: n,
30
- clearValidation: i
31
- } = P(), t = o(""), a = o(!1), c = o(!1), s = o(""), A = 40, m = () => {
32
- t.value = "", s.value = "", y(), i();
33
- }, h = () => {
34
- m(), u("close");
35
- }, D = async () => {
36
- a.value = !0;
37
- try {
38
- if (!(await n(t.value)).isValid) {
39
- a.value = !1;
40
- return;
41
- }
42
- await T({
43
- name: t.value,
44
- htmlContent: s.value,
45
- categoryIds: g.value
46
- }) && (r({
47
- message: l(
48
- "journey-builder.template-saved-successfully",
49
- { name: t.value }
50
- ),
51
- type: "success"
52
- }), h(), a.value = !1);
53
- } catch {
54
- r({
55
- message: l("journey-builder.template-save-error", { name: t.value }),
56
- type: "error"
57
- }), a.value = !1;
58
- }
59
- };
60
- C(t, (e) => {
61
- e.trim() ? n(e) : i();
62
- });
63
- const S = async () => {
64
- c.value = !0;
65
- try {
66
- const { html: e } = await v();
67
- s.value = e || "";
68
- } catch {
69
- s.value = "";
70
- } finally {
71
- c.value = !1;
72
- }
73
- }, L = async (e) => {
74
- await d(e);
75
- };
76
- return C(() => p.isOpen, async (e) => {
77
- e ? await Promise.all([
78
- S(),
79
- f()
80
- ]) : m();
81
- }), { __sfc: !0, props: p, emit: u, trans: l, showToaster: r, getCompiledEmail: v, categoriesData: w, fetchCategories: f, createCategory: d, setSelectedCategories: _, resetSelection: y, getSelectedCategoryIds: g, saveState: M, saveTemplateToLibrary: T, validationError: b, validateTemplateName: n, clearValidation: i, templateNameInput: t, isSaving: a, isLoadingHtml: c, htmlData: s, templateCategorySearchInputLimit: A, resetModalState: m, closeModal: h, saveTemplate: D, fetchHtmlData: S, addOption: L, ModalWrapper: H, InTextInput: V, InMultiSelect: R };
82
- }
83
- });
84
- export {
85
- X as default
86
- };
@@ -1,17 +0,0 @@
1
- import type { StripoConfig, RecommendationConfig, RecommendationCampaignUrls } from '@@/Types/template-save';
2
- interface SaveTemplateData {
3
- name: string;
4
- htmlContent: string;
5
- categoryIds: number[];
6
- css?: string;
7
- stripoConfig?: StripoConfig;
8
- recommendationConfigs?: RecommendationConfig;
9
- recommendationCampaignUrls?: RecommendationCampaignUrls;
10
- }
11
- export declare const useSaveAsTemplate: () => {
12
- state: {
13
- saving: boolean;
14
- };
15
- saveTemplate: (data: SaveTemplateData) => Promise<boolean>;
16
- };
17
- export {};