@useinsider/guido 1.0.0-beta.61cf684 → 1.0.0-beta.63d99fe

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 (191) hide show
  1. package/README.md +2 -26
  2. package/dist/@types/generic.d.ts +0 -29
  3. package/dist/components/Guido.vue.d.ts +1 -2
  4. package/dist/components/Guido.vue.js +10 -10
  5. package/dist/components/Guido.vue2.js +44 -51
  6. package/dist/components/organisms/header/MiddleSlot.vue.js +9 -9
  7. package/dist/components/organisms/header/MiddleSlot.vue2.js +17 -16
  8. package/dist/components/organisms/header/RightSlot.vue.js +9 -10
  9. package/dist/components/organisms/header/RightSlot.vue2.js +24 -28
  10. package/dist/components/organisms/header/ViewOptions.vue.js +8 -8
  11. package/dist/components/organisms/header/ViewOptions.vue2.js +10 -30
  12. package/dist/components/organisms/header/version-history/ViewOptions.vue.js +3 -3
  13. package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +16 -34
  14. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.js +6 -6
  15. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +35 -40
  16. package/dist/composables/useActionsApi.d.ts +1 -4
  17. package/dist/composables/useActionsApi.js +33 -74
  18. package/dist/composables/useHtmlCompiler.js +8 -9
  19. package/dist/composables/usePartner.d.ts +1 -1
  20. package/dist/composables/usePartner.js +14 -9
  21. package/dist/composables/useToaster.d.ts +1 -1
  22. package/dist/composables/useToaster.js +11 -11
  23. package/dist/composables/useTranslations.js +2 -3
  24. package/dist/composables/useValidation.d.ts +1 -27
  25. package/dist/composables/useValidation.js +8 -8
  26. package/dist/composables/validators/saveAsTemplate.d.ts +8 -13
  27. package/dist/composables/validators/saveAsTemplate.js +15 -18
  28. package/dist/enums/defaults.d.ts +1 -4
  29. package/dist/enums/defaults.js +6 -21
  30. package/dist/guido.css +1 -1
  31. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +2 -2
  32. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +2 -2
  33. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +2 -2
  34. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +2 -2
  35. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +2 -2
  36. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +2 -2
  37. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +2 -2
  38. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +2 -2
  39. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +2 -2
  40. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +2 -2
  41. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +2 -2
  42. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +2 -2
  43. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +2 -2
  44. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +2 -2
  45. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +2 -2
  46. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +2 -2
  47. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +4 -4
  48. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +4 -4
  49. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +4 -4
  50. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +2 -2
  51. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +4 -4
  52. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +4 -4
  53. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +4 -4
  54. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +4 -4
  55. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +4 -4
  56. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +2 -2
  57. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +4 -4
  58. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +4 -4
  59. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +2 -2
  60. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +2 -2
  61. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +4 -4
  62. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +4 -4
  63. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +4 -4
  64. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +4 -4
  65. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +4 -4
  66. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +4 -4
  67. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +2 -2
  68. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +2 -2
  69. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +2 -2
  70. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +2 -2
  71. package/dist/node_modules/lodash-es/_isMasked.js +2 -2
  72. package/dist/node_modules/valibot/dist/index.js +58 -91
  73. package/dist/stores/editor.d.ts +0 -1
  74. package/dist/stores/editor.js +0 -1
  75. package/dist/stores/save-as-template.d.ts +1 -49
  76. package/dist/stores/save-as-template.js +28 -32
  77. package/package.json +3 -2
  78. package/dist/components/organisms/email-preview/PreviewContainer.vue.d.ts +0 -2
  79. package/dist/components/organisms/email-preview/PreviewContainer.vue.js +0 -19
  80. package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +0 -19
  81. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -4
  82. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +0 -22
  83. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +0 -30
  84. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -2
  85. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +0 -19
  86. package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +0 -29
  87. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -2
  88. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +0 -22
  89. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +0 -31
  90. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -2
  91. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +0 -17
  92. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +0 -20
  93. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -2
  94. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +0 -18
  95. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue2.js +0 -25
  96. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -4
  97. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +0 -19
  98. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +0 -23
  99. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -4
  100. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +0 -20
  101. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +0 -21
  102. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -2
  103. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +0 -17
  104. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +0 -22
  105. package/dist/components/wrappers/WpModal.vue.d.ts +0 -65
  106. package/dist/components/wrappers/WpModal.vue.js +0 -27
  107. package/dist/components/wrappers/WpModal.vue2.js +0 -22
  108. package/dist/composables/useCodeEditorApi.d.ts +0 -4
  109. package/dist/composables/useCodeEditorApi.js +0 -11
  110. package/dist/composables/useConfig.d.ts +0 -4
  111. package/dist/composables/useConfig.js +0 -7
  112. package/dist/composables/useDebounce.d.ts +0 -4
  113. package/dist/composables/useDebounce.js +0 -12
  114. package/dist/composables/usePreviewMode.d.ts +0 -5
  115. package/dist/composables/usePreviewMode.js +0 -31
  116. package/dist/composables/useResponsivePreview.d.ts +0 -5
  117. package/dist/composables/useResponsivePreview.js +0 -86
  118. package/dist/enums/preview.d.ts +0 -13
  119. package/dist/enums/preview.js +0 -23
  120. package/dist/node_modules/@vueuse/shared/index.js +0 -45
  121. package/dist/node_modules/lodash-es/_Stack.js +0 -18
  122. package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
  123. package/dist/node_modules/lodash-es/_apply.js +0 -16
  124. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -19
  125. package/dist/node_modules/lodash-es/_assignMergeValue.js +0 -8
  126. package/dist/node_modules/lodash-es/_assignValue.js +0 -10
  127. package/dist/node_modules/lodash-es/_baseAssignValue.js +0 -12
  128. package/dist/node_modules/lodash-es/_baseCreate.js +0 -17
  129. package/dist/node_modules/lodash-es/_baseFor.js +0 -5
  130. package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
  131. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -12
  132. package/dist/node_modules/lodash-es/_baseKeysIn.js +0 -15
  133. package/dist/node_modules/lodash-es/_baseMerge.js +0 -20
  134. package/dist/node_modules/lodash-es/_baseMergeDeep.js +0 -31
  135. package/dist/node_modules/lodash-es/_baseRest.js +0 -9
  136. package/dist/node_modules/lodash-es/_baseSetToString.js +0 -14
  137. package/dist/node_modules/lodash-es/_baseTimes.js +0 -8
  138. package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
  139. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  140. package/dist/node_modules/lodash-es/_cloneBuffer.js +0 -9
  141. package/dist/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  142. package/dist/node_modules/lodash-es/_copyArray.js +0 -9
  143. package/dist/node_modules/lodash-es/_copyObject.js +0 -14
  144. package/dist/node_modules/lodash-es/_createAssigner.js +0 -15
  145. package/dist/node_modules/lodash-es/_createBaseFor.js +0 -13
  146. package/dist/node_modules/lodash-es/_defineProperty.js +0 -11
  147. package/dist/node_modules/lodash-es/_getPrototype.js +0 -5
  148. package/dist/node_modules/lodash-es/_initCloneObject.js +0 -9
  149. package/dist/node_modules/lodash-es/_isIndex.js +0 -8
  150. package/dist/node_modules/lodash-es/_isIterateeCall.js +0 -13
  151. package/dist/node_modules/lodash-es/_isPrototype.js +0 -8
  152. package/dist/node_modules/lodash-es/_nativeKeysIn.js +0 -10
  153. package/dist/node_modules/lodash-es/_nodeUtil.js +0 -11
  154. package/dist/node_modules/lodash-es/_overArg.js +0 -8
  155. package/dist/node_modules/lodash-es/_overRest.js +0 -15
  156. package/dist/node_modules/lodash-es/_safeGet.js +0 -7
  157. package/dist/node_modules/lodash-es/_setToString.js +0 -6
  158. package/dist/node_modules/lodash-es/_shortOut.js +0 -16
  159. package/dist/node_modules/lodash-es/_stackClear.js +0 -7
  160. package/dist/node_modules/lodash-es/_stackDelete.js +0 -7
  161. package/dist/node_modules/lodash-es/_stackGet.js +0 -6
  162. package/dist/node_modules/lodash-es/_stackHas.js +0 -6
  163. package/dist/node_modules/lodash-es/_stackSet.js +0 -17
  164. package/dist/node_modules/lodash-es/constant.js +0 -8
  165. package/dist/node_modules/lodash-es/identity.js +0 -6
  166. package/dist/node_modules/lodash-es/isArguments.js +0 -10
  167. package/dist/node_modules/lodash-es/isArray.js +0 -4
  168. package/dist/node_modules/lodash-es/isArrayLike.js +0 -8
  169. package/dist/node_modules/lodash-es/isArrayLikeObject.js +0 -8
  170. package/dist/node_modules/lodash-es/isBuffer.js +0 -6
  171. package/dist/node_modules/lodash-es/isLength.js +0 -7
  172. package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
  173. package/dist/node_modules/lodash-es/isPlainObject.js +0 -16
  174. package/dist/node_modules/lodash-es/isTypedArray.js +0 -7
  175. package/dist/node_modules/lodash-es/keysIn.js +0 -9
  176. package/dist/node_modules/lodash-es/merge.js +0 -8
  177. package/dist/node_modules/lodash-es/stubFalse.js +0 -6
  178. package/dist/node_modules/lodash-es/toPlainObject.js +0 -8
  179. package/dist/node_modules/vue-demi/lib/index.js +0 -7
  180. package/dist/services/templateLibraryApi.d.ts +0 -7
  181. package/dist/services/templateLibraryApi.js +0 -86
  182. package/dist/static/assets/inbox-mockup.svg.js +0 -4
  183. package/dist/static/assets/phone-mockup.svg.js +0 -4
  184. package/dist/stores/preview.d.ts +0 -46
  185. package/dist/stores/preview.js +0 -53
  186. package/dist/utils/base64.d.ts +0 -1
  187. package/dist/utils/base64.js +0 -7
  188. package/dist/utils/templatePreparation.d.ts +0 -20
  189. package/dist/utils/templatePreparation.js +0 -31
  190. package/dist/utils/tooltipUtils.d.ts +0 -2
  191. package/dist/utils/tooltipUtils.js +0 -11
@@ -1,20 +1,20 @@
1
1
  import s from "./SaveAsTemplateDrawer.vue2.js";
2
- import o from "../../../_virtual/_plugin-vue2_normalizer.js";
2
+ import l from "../../../_virtual/_plugin-vue2_normalizer.js";
3
3
  var r = function() {
4
4
  var a = this, e = a._self._c, t = a._self._setupProxy;
5
- return e(t.WpDrawer, { attrs: { id: "save-as-template-modal", "description-status": "", "description-text": t.trans("newsletter.save-template-description"), "footer-button-group-options": t.footerButtonGroupOptions, status: t.editorStore.isSaveAsTemplateDrawerOpen, "title-text": t.trans("products.save-template") }, on: { cancelOrBackButtonEvent: t.closeModal, onCloseEvent: t.closeModal, primaryButtonEvent: t.saveTemplate } }, [e(t.InBasicTextInput, { staticClass: "mb-5 w-1", attrs: { id: "guido__template-name-input", name: "templateName", "character-counter-status": !1, "disabled-status": t.isSaving, "label-text": t.trans("products.template-name"), "max-character-length": 1e3, "placeholder-text": t.trans("newsletter.enter-template-name"), "skeleton-sizing": { width: 495, height: 44 }, "skeleton-status": t.saveAsTemplateStore.skeletonStatus, "state-message": t.templateNameError, states: t.templateNameError ? "error" : "default", "tooltip-status": !1, value: t.saveAsTemplateStore.templateName }, on: { input: t.handleTemplateName } }), e(t.InMultiSelect, { staticClass: "template-category-dropdown mb-5 w-1", attrs: { id: "guido__template-category-dropdown", "create-option-status": "", "search-status": "", "button-status": !1, "character-limit-validation-text": t.trans("validation-v2.duration-value", {
5
+ return e(t.WpDrawer, { attrs: { id: "save-as-template-modal", "description-status": "", "description-text": t.trans("newsletter.save-template-description"), "footer-button-group-options": t.footerButtonGroupOptions, status: t.editorStore.isSaveAsTemplateDrawerOpen, "title-text": t.trans("products.save-template") }, on: { cancelOrBackButtonEvent: t.closeModal, onCloseEvent: t.closeModal, primaryButtonEvent: t.saveTemplate } }, [e(t.InBasicTextInput, { staticClass: "mb-5 w-1", attrs: { id: "template-name-input", name: "templateName", "character-counter-status": !1, "disabled-status": t.isSaving, "label-text": t.trans("products.template-name"), "placeholder-text": t.trans("newsletter.enter-template-name"), "skeleton-sizing": { width: 495, height: 44 }, "skeleton-status": t.saveAsTemplateStore.skeletonStatus, "state-message": t.templateNameError, states: t.templateNameError ? "error" : "default", "tooltip-status": !1, value: t.saveAsTemplateStore.templateName }, on: { input: t.handleTemplateName } }), 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", {
6
6
  min: 1,
7
7
  max: 25
8
8
  }), "create-button-label": t.trans("products.create-new-category"), "disabled-status": t.isSaving, "label-text": t.trans("products.template-category"), "loading-state": t.isAddingOption, "max-character-limit": 25, options: t.saveAsTemplateStore.categories, "placeholder-text": t.trans("products.select-template-category"), "skeleton-sizing": { width: 495, height: 44 }, "skeleton-status": t.saveAsTemplateStore.skeletonStatus, value: t.saveAsTemplateStore.selectedCategories }, on: { addOption: t.handleAddOption, change: t.handleCategoryChange, resetAllOptions: t.handleResetAllOptions, selectAllOptions: t.handleSelectAllOptions } })], 1);
9
- }, l = [], n = /* @__PURE__ */ o(
9
+ }, o = [], n = /* @__PURE__ */ l(
10
10
  s,
11
11
  r,
12
- l,
12
+ o,
13
13
  !1,
14
14
  null,
15
15
  null
16
16
  );
17
- const m = n.exports;
17
+ const c = n.exports;
18
18
  export {
19
- m as default
19
+ c as default
20
20
  };
@@ -1,16 +1,14 @@
1
- import { defineComponent as A, ref as c, computed as b, toRef as h, nextTick as C } from "vue";
2
- import N from "../../wrappers/WpDrawer.vue.js";
3
- import { useTranslations as O } from "../../../composables/useTranslations.js";
4
- import { useTemplateNameValidator as x } from "../../../composables/validators/saveAsTemplate.js";
5
- import { useTemplateLibraryApi as B } from "../../../services/templateLibraryApi.js";
6
- import { useEditorStore as D } from "../../../stores/editor.js";
7
- import { useSaveAsTemplateStore as k } from "../../../stores/save-as-template.js";
8
- import { InMultiSelect as I, InBasicTextInput as M } from "@useinsider/design-system-vue";
9
- import { useDebounceFn as V } from "../../../node_modules/@vueuse/shared/index.js";
10
- const H = /* @__PURE__ */ A({
1
+ import { defineComponent as N, ref as i, computed as _, toRef as h } from "vue";
2
+ import A from "../../wrappers/WpDrawer.vue.js";
3
+ import { useTranslations as C } from "../../../composables/useTranslations.js";
4
+ import { useTemplateNameValidator as b } from "../../../composables/validators/saveAsTemplate.js";
5
+ import { useEditorStore as w } from "../../../stores/editor.js";
6
+ import { useSaveAsTemplateStore as O } from "../../../stores/save-as-template.js";
7
+ import { InMultiSelect as B, InBasicTextInput as x } from "@useinsider/design-system-vue";
8
+ const z = /* @__PURE__ */ N({
11
9
  __name: "SaveAsTemplateDrawer",
12
- setup(E) {
13
- const s = O(), o = D(), t = k(), { createTemplate: m } = B(), a = c(!1), n = c(!1), r = c(""), f = b(() => ({
10
+ setup(D) {
11
+ const s = C(), o = w(), t = O(), a = i(!1), l = i(!1), u = _(() => ({
14
12
  primaryButton: {
15
13
  styling: "solid",
16
14
  type: "primary",
@@ -24,40 +22,37 @@ const H = /* @__PURE__ */ A({
24
22
  labelText: s("products.cancel"),
25
23
  disabledStatus: a.value
26
24
  }
27
- })), p = () => {
28
- r.value = "", o.isSaveAsTemplateDrawerOpen = !1;
29
- }, l = async () => {
30
- const e = h(t, "templateName"), { success: i, errorMessage: _ } = await x(e).validate();
31
- return r.value = _, i;
32
- }, v = V(async (e) => {
33
- t.templateName = e, await l();
34
- }, 500), g = async (e) => {
35
- n.value = !0, await t.addCategory(e), n.value = !1;
36
- }, y = (e) => {
37
- t.selectedCategories = e;
38
- }, S = (e) => {
39
- e && (t.selectedCategories = e);
40
- }, T = () => {
25
+ })), r = i(""), c = b(h(t, "templateName")), n = () => {
26
+ const e = c.validate();
27
+ return r.value = e.errorMessage, e.success;
28
+ }, m = () => {
29
+ o.isSaveAsTemplateDrawerOpen = !1;
30
+ }, d = (e) => {
31
+ t.templateName = e, r.value && n();
32
+ }, f = async (e) => {
33
+ l.value = !0, await t.createCategory(e), l.value = !1;
34
+ }, v = (e) => {
35
+ t.selectedCategories = [...e];
36
+ }, g = (e) => {
37
+ e && (t.selectedCategories = [...e]);
38
+ }, S = () => {
41
39
  t.selectedCategories = [];
42
- }, w = async () => {
43
- if (a.value = !0, !await l()) {
40
+ }, T = () => {
41
+ if (a.value = !0, !n()) {
44
42
  a.value = !1;
45
43
  return;
46
44
  }
47
- await m(), a.value = !1, p();
48
- }, u = () => {
49
- C(() => {
50
- const e = document.querySelector("input#guido__template-name-input");
51
- e == null || e.focus();
52
- });
53
- }, d = async () => {
54
- t.$reset(), await t.fetchCategories(), t.skeletonStatus = !1, u();
45
+ setTimeout(() => {
46
+ console.debug("💾 Saved", t.getTemplateName), a.value = !1, m();
47
+ }, 3e3);
48
+ }, p = async () => {
49
+ t.$reset(), await t.fetchCategories(), t.skeletonStatus = !1;
55
50
  };
56
- return o.$subscribe((e, { isSaveAsTemplateDrawerOpen: i }) => {
57
- i && d();
58
- }), { __sfc: !0, trans: s, editorStore: o, saveAsTemplateStore: t, createTemplate: m, isSaving: a, isAddingOption: n, templateNameError: r, footerButtonGroupOptions: f, closeModal: p, validateTemplateName: l, handleTemplateName: v, handleAddOption: g, handleCategoryChange: y, handleSelectAllOptions: S, handleResetAllOptions: T, saveTemplate: w, focusToInput: u, initializeDrawer: d, WpDrawer: N, InBasicTextInput: M, InMultiSelect: I };
51
+ return o.$subscribe((e, { isSaveAsTemplateDrawerOpen: y }) => {
52
+ y && p();
53
+ }), { __sfc: !0, trans: s, editorStore: o, saveAsTemplateStore: t, isSaving: a, isAddingOption: l, footerButtonGroupOptions: u, templateNameError: r, nameValidator: c, validateTemplateName: n, closeModal: m, handleTemplateName: d, handleAddOption: f, handleCategoryChange: v, handleSelectAllOptions: g, handleResetAllOptions: S, saveTemplate: T, initializeDrawer: p, WpDrawer: A, InBasicTextInput: x, InMultiSelect: B };
59
54
  }
60
55
  });
61
56
  export {
62
- H as default
57
+ z as default
63
58
  };
@@ -1,8 +1,5 @@
1
- import type { CompileEmailOptions } from '@@/Types/actions-api';
2
- import { GetCompiledEmailOptions, CompiledEmailResult, TemplateData } from '@@/Types/actions-api';
1
+ import { GetCompiledEmailOptions, CompiledEmailResult } from '@@/Types/actions-api';
3
2
  export declare const useActionsApi: () => {
4
3
  getCompiledEmail: (options?: GetCompiledEmailOptions) => Promise<CompiledEmailResult>;
5
- getTemplateData: () => Promise<TemplateData>;
6
4
  activateCustomViewStyles: (isActive?: boolean) => void;
7
- getPreviewData: (options?: CompileEmailOptions) => Promise<CompiledEmailResult>;
8
5
  };
@@ -1,79 +1,38 @@
1
- import { useToaster as g } from "./useToaster.js";
2
- const A = () => {
3
- const { handleError: l } = g(), n = (t = {}) => new Promise((e, a) => {
4
- const i = { ...{
5
- minimize: !0,
6
- utmEntity: {
7
- utmSource: "",
8
- utmMedium: "",
9
- utmCampaign: "",
10
- utmContent: "",
11
- utmTerm: "",
12
- customUtms: [
13
- {
14
- name1: "val1",
15
- name2: "val2"
16
- }
17
- ]
18
- },
19
- mergeTags: ["Tag1", "Tag2"],
20
- forseAmp: !1,
21
- resetDataSavedFlag: !1,
22
- disableLineHeightsReplace: !0
23
- }, ...t }, m = {
24
- callback: (s, c, p, u, d) => {
25
- s ? a(s) : e({
26
- html: c,
27
- ampHtml: p,
28
- ampErrors: u,
29
- displayConditions: d
30
- });
31
- },
32
- ...i
33
- };
34
- window.StripoEditorApi.actionsApi.compileEmail(m);
35
- });
36
- return {
37
- getCompiledEmail: n,
38
- getTemplateData: () => new Promise((t) => {
39
- const e = ({ html: a, css: o, width: i, height: r, utmParams: m, syncModulesIds: s }) => t({
40
- html: a,
41
- css: o,
42
- width: i,
43
- height: r,
44
- utmParams: m,
45
- syncModulesIds: s
1
+ const g = () => ({ getCompiledEmail: (t = {}) => new Promise((i, a) => {
2
+ const s = { ...{
3
+ minimize: !0,
4
+ utmEntity: {
5
+ utmSource: "",
6
+ utmMedium: "",
7
+ utmCampaign: "",
8
+ utmContent: "",
9
+ utmTerm: "",
10
+ customUtms: [
11
+ {
12
+ name1: "val1",
13
+ name2: "val2"
14
+ }
15
+ ]
16
+ },
17
+ mergeTags: ["Tag1", "Tag2"],
18
+ forseAmp: !1,
19
+ resetDataSavedFlag: !1,
20
+ disableLineHeightsReplace: !0
21
+ }, ...t }, o = {
22
+ callback: (e, m, l, n, c) => {
23
+ e ? a(e) : i({
24
+ html: m,
25
+ ampHtml: l,
26
+ ampErrors: n,
27
+ displayConditions: c
46
28
  });
47
- window.StripoEditorApi.actionsApi.getTemplateData(e);
48
- }),
49
- activateCustomViewStyles: (t = !0) => {
50
- window.StripoEditorApi.actionsApi.activateCustomViewStyles(t);
51
29
  },
52
- getPreviewData: async (t) => {
53
- try {
54
- const {
55
- html: e,
56
- displayConditions: a,
57
- ampHtml: o = "",
58
- ampErrors: i = []
59
- } = await n({ minimize: !1, resetDataSavedFlag: !1, ...t });
60
- return {
61
- html: e,
62
- ampHtml: o,
63
- ampErrors: i,
64
- displayConditions: a
65
- };
66
- } catch (e) {
67
- return l(e, "Error loading preview"), {
68
- html: "",
69
- ampHtml: "",
70
- ampErrors: [],
71
- displayConditions: []
72
- };
73
- }
74
- }
30
+ ...s
75
31
  };
76
- };
32
+ window.StripoEditorApi.actionsApi.compileEmail(o);
33
+ }), activateCustomViewStyles: (t = !0) => {
34
+ window.StripoEditorApi.actionsApi.activateCustomViewStyles(t);
35
+ } });
77
36
  export {
78
- A as useActionsApi
37
+ g as useActionsApi
79
38
  };
@@ -1,17 +1,16 @@
1
1
  import { defaultHtmlCompilerRules as r } from "../config/compiler/htmlCompilerRules.js";
2
2
  import { createHtmlCompiler as p } from "../utils/htmlCompiler.js";
3
- import { useConfig as s } from "./useConfig.js";
4
- const R = () => {
5
- const { config: e } = s(), l = e.htmlCompilerRules || [], t = [
6
- ...!!e.ignoreDefaultHtmlCompilerRules ? [] : r,
7
- ...l.map((o, i) => ({
3
+ const a = () => {
4
+ const e = typeof window < "u" ? window.GuidoConfig : void 0, l = (e == null ? void 0 : e.htmlCompilerRules) || [], t = [
5
+ ...!!(e != null && e.ignoreDefaultHtmlCompilerRules) ? [] : r,
6
+ ...l.map((o, m) => ({
8
7
  ...o,
9
- priority: o.priority + 1e3 + i
8
+ priority: o.priority + 1e3 + m
10
9
  // Ensure additional rules run after default rules
11
10
  }))
12
- ], m = p(t);
13
- return { compileHtml: (o) => m.compile(o) };
11
+ ], i = p(t);
12
+ return { compileHtml: (o) => i.compile(o) };
14
13
  };
15
14
  export {
16
- R as useHtmlCompiler
15
+ a as useHtmlCompiler
17
16
  };
@@ -1,4 +1,4 @@
1
1
  export declare const usePartner: () => {
2
2
  getPartnerName: () => string;
3
- getProductType: () => number;
3
+ getProductType: () => string;
4
4
  };
@@ -1,11 +1,16 @@
1
- import { DefaultProductType as e, ProductIds as o } from "../enums/defaults.js";
2
- const c = () => ({
3
- getPartnerName: () => window.location.hostname.split(".")[0] || "",
4
- getProductType: () => {
5
- const t = window.location.pathname.split("/").filter(Boolean)[0] || e;
6
- return o[t] || 0;
7
- }
8
- });
1
+ import { DefaultProductType as o } from "../enums/defaults.js";
2
+ const p = () => {
3
+ const e = {
4
+ email: "newsletter"
5
+ };
6
+ return {
7
+ getPartnerName: () => window.location.hostname.split(".")[0] || "",
8
+ getProductType: () => {
9
+ const t = window.location.pathname.split("/").filter(Boolean)[0] || o;
10
+ return e[t] || t;
11
+ }
12
+ };
13
+ };
9
14
  export {
10
- c as usePartner
15
+ p as usePartner
11
16
  };
@@ -1,4 +1,4 @@
1
- export type ToasterType = 'success' | 'error' | 'info' | 'warning' | 'alert';
1
+ export type ToasterType = 'success' | 'error' | 'info' | 'warning';
2
2
  export type ToasterOptions = {
3
3
  type?: ToasterType;
4
4
  message: string;
@@ -1,32 +1,32 @@
1
- import { ref as n, watch as T } from "vue";
1
+ import { ref as o, watch as T } from "vue";
2
2
  const v = () => {
3
- const t = n(!1), s = n(""), r = n("success"), o = n([]);
3
+ const t = o(!1), s = o(""), c = o("success"), n = o([]);
4
4
  let a = null;
5
5
  function i() {
6
6
  a && (clearTimeout(a), a = null);
7
7
  }
8
8
  function u() {
9
- t.value = !1, o.value = [], s.value = "";
9
+ t.value = !1, n.value = [], s.value = "";
10
10
  }
11
11
  function l(e = { message: "" }) {
12
- u(), s.value = e.message, r.value = e.type || "success", o.value = e.actionButton ? [e.actionButton] : [], t.value = !0;
12
+ u(), s.value = e.message, c.value = e.type || "success", n.value = e.actionButton ? [e.actionButton] : [], t.value = !0;
13
13
  }
14
- function f(e, c) {
14
+ function f(e, r) {
15
15
  const m = e instanceof Error ? e.message : String(e);
16
16
  l({
17
- type: "alert",
18
- message: `${c}: ${m}`
17
+ type: "error",
18
+ message: `${r}: ${m}`
19
19
  });
20
20
  }
21
- return T([t, s], ([e, c]) => {
22
- i(), e && c && (a = setTimeout(() => {
21
+ return T([t, s], ([e, r]) => {
22
+ i(), e && r && (a = setTimeout(() => {
23
23
  u();
24
24
  }, 6e3));
25
25
  }), {
26
26
  isToasterVisible: t,
27
27
  toasterMessage: s,
28
- toasterType: r,
29
- toasterActionButton: o,
28
+ toasterType: c,
29
+ toasterActionButton: n,
30
30
  showToaster: l,
31
31
  hideToaster: u,
32
32
  handleError: f
@@ -1,11 +1,10 @@
1
1
  import memoize from "../node_modules/lodash-es/memoize.js";
2
2
  import { ref } from "vue";
3
- import { useConfig } from "./useConfig.js";
4
3
  const useTranslations = () => {
5
- const { config } = useConfig(), translations = ref(eval(config.translationsPath)), trans = (n, t) => {
4
+ const translations = ref(eval(window.GuidoConfig.translationsPath)), trans = (n, t) => {
6
5
  const r = translations.value[n];
7
6
  return r ? t ? Object.entries(t).reduce(
8
- (e, [o, s]) => e.replace(new RegExp(`{${o}}`, "g"), String(s)),
7
+ (e, [o, i]) => e.replace(new RegExp(`{${o}}`, "g"), String(i)),
9
8
  r
10
9
  ) : r : (console.warn(`Translation key not found: ${n}`), n);
11
10
  };
@@ -1,7 +1,6 @@
1
- import { type BaseIssue, type BaseSchema, type BaseSchemaAsync } from 'valibot';
1
+ import { type BaseIssue, type BaseSchema } from 'valibot';
2
2
  import { type Ref } from 'vue';
3
3
  type Base = BaseSchema<unknown, unknown, BaseIssue<unknown>>;
4
- type BaseAsync = BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>;
5
4
  type MaybeRefOrGetter<T> = T | Ref<T> | (() => T);
6
5
  export declare function useValidation<const Schema extends Base = Base>(input: MaybeRefOrGetter<unknown>, schema: Schema): {
7
6
  schema: Schema;
@@ -28,29 +27,4 @@ export declare function useValidation<const Schema extends Base = Base>(input: M
28
27
  issues: [import("valibot").InferIssue<Schema>, ...import("valibot").InferIssue<Schema>[]];
29
28
  };
30
29
  };
31
- export declare function useAsyncValidation<const Schema extends BaseAsync = BaseAsync>(input: MaybeRefOrGetter<unknown>, schema: Schema): {
32
- schema: Schema;
33
- validate: () => Promise<{
34
- error: import("valibot").InferIssue<Schema> | undefined;
35
- errorMessage: string;
36
- typed: true;
37
- success: true;
38
- output: import("valibot").InferOutput<Schema>;
39
- issues: undefined;
40
- } | {
41
- error: import("valibot").InferIssue<Schema> | undefined;
42
- errorMessage: string;
43
- typed: true;
44
- success: false;
45
- output: import("valibot").InferOutput<Schema>;
46
- issues: [import("valibot").InferIssue<Schema>, ...import("valibot").InferIssue<Schema>[]];
47
- } | {
48
- error: import("valibot").InferIssue<Schema> | undefined;
49
- errorMessage: string;
50
- typed: false;
51
- success: false;
52
- output: unknown;
53
- issues: [import("valibot").InferIssue<Schema>, ...import("valibot").InferIssue<Schema>[]];
54
- }>;
55
- };
56
30
  export {};
@@ -1,19 +1,19 @@
1
- import { safeParseAsync as i } from "../node_modules/valibot/dist/index.js";
2
- import { unref as n } from "vue";
3
- function c(o, e) {
1
+ import { safeParse as i } from "../node_modules/valibot/dist/index.js";
2
+ import { unref as u } from "vue";
3
+ function l(a, e) {
4
4
  return {
5
5
  schema: e,
6
- validate: async () => {
7
- var s, t, a;
8
- const r = await i(e, n(o), { abortPipeEarly: !0 });
6
+ validate: () => {
7
+ var s, t, o;
8
+ const r = i(e, u(a), { abortPipeEarly: !0 });
9
9
  return {
10
10
  ...r,
11
11
  error: (s = r.issues) == null ? void 0 : s[0],
12
- errorMessage: ((a = (t = r.issues) == null ? void 0 : t[0]) == null ? void 0 : a.message) || ""
12
+ errorMessage: ((o = (t = r.issues) == null ? void 0 : t[0]) == null ? void 0 : o.message) || ""
13
13
  };
14
14
  }
15
15
  };
16
16
  }
17
17
  export {
18
- c as useAsyncValidation
18
+ l as useValidation
19
19
  };
@@ -1,31 +1,26 @@
1
1
  import type { Ref } from 'vue';
2
- /**
3
- * @description Validates template name with basic checks and availability.
4
- * @param name - Input value
5
- * @returns Combined validation with name availability check
6
- */
7
2
  export declare const useTemplateNameValidator: (name: Ref<string>) => {
8
- schema: import("valibot").SchemaWithPipeAsync<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, string>, import("valibot").MaxLengthAction<string, 255, string>, import("valibot").CheckActionAsync<string, string>]>;
9
- validate: () => Promise<{
10
- error: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").CheckIssue<string> | undefined;
3
+ schema: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, string>, import("valibot").MaxLengthAction<string, 255, string>]>;
4
+ validate: () => {
5
+ error: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255> | undefined;
11
6
  errorMessage: string;
12
7
  typed: true;
13
8
  success: true;
14
9
  output: string;
15
10
  issues: undefined;
16
11
  } | {
17
- error: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").CheckIssue<string> | undefined;
12
+ error: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255> | undefined;
18
13
  errorMessage: string;
19
14
  typed: true;
20
15
  success: false;
21
16
  output: string;
22
- issues: [import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").CheckIssue<string>, ...(import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").CheckIssue<string>)[]];
17
+ issues: [import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255>, ...(import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255>)[]];
23
18
  } | {
24
- error: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").CheckIssue<string> | undefined;
19
+ error: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255> | undefined;
25
20
  errorMessage: string;
26
21
  typed: false;
27
22
  success: false;
28
23
  output: unknown;
29
- issues: [import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").CheckIssue<string>, ...(import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").CheckIssue<string>)[]];
30
- }>;
24
+ issues: [import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255>, ...(import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255>)[]];
25
+ };
31
26
  };
@@ -1,24 +1,21 @@
1
- import { useTemplateLibraryApi as i } from "../../services/templateLibraryApi.js";
2
- import { pipeAsync as m, checkAsync as s, maxLength as n, nonEmpty as o, trim as c, string as p } from "../../node_modules/valibot/dist/index.js";
3
- import { useTranslations as l } from "../useTranslations.js";
4
- import { useAsyncValidation as u } from "../useValidation.js";
5
- const x = (a) => {
6
- const e = l(), { checkTemplateNameAvailability: r } = i(), t = 255;
7
- return u(a, m(
8
- p(),
9
- c(),
10
- o(e("whatsapp-business.template-name-required")),
11
- n(
12
- t,
13
- e("validations.enter-up-to-x-characters", {
1
+ import { pipe as r, maxLength as i, nonEmpty as n, string as o } from "../../node_modules/valibot/dist/index.js";
2
+ import { useTranslations as s } from "../useTranslations.js";
3
+ import { useValidation as m } from "../useValidation.js";
4
+ const u = (e) => {
5
+ const t = s(), a = 255;
6
+ return m(e, r(
7
+ o(),
8
+ n(t("whatsapp-business.template-name-required")),
9
+ i(
10
+ a,
11
+ t("validations.enter-up-to-x-characters", {
14
12
  article: "a",
15
- field: e("products.template-name"),
16
- max: t
13
+ field: t("products.template-name"),
14
+ max: a
17
15
  })
18
- ),
19
- s(r, e("save-product-card.name-error"))
16
+ )
20
17
  ));
21
18
  };
22
19
  export {
23
- x as useTemplateNameValidator
20
+ u as useTemplateNameValidator
24
21
  };
@@ -1,7 +1,4 @@
1
1
  import type { GuidoConfig } from '@@/Types/generic';
2
2
  export declare const DefaultGuidoConfig: GuidoConfig;
3
- export declare const DefaultProductType = "email";
3
+ export declare const DefaultProductType = "newsletter";
4
4
  export declare const DefaultUsername = "Guido User";
5
- export declare const DefaultMessageType = 1;
6
- export declare const EditorType: number;
7
- export declare const ProductIds: Record<string, number>;
@@ -1,23 +1,8 @@
1
- const e = {
2
- translationsPath: "window.trans.en",
3
- emailHeader: {
4
- senderName: "",
5
- subject: ""
6
- },
7
- features: {
8
- dynamicContent: !0,
9
- saveAsTemplate: !0,
10
- versionHistory: !0
11
- }
12
- }, t = "email", s = "Guido User", a = 1, n = 2, o = {
13
- email: 60,
14
- architect: 49
15
- };
1
+ const t = {
2
+ translationsPath: "window.trans.en"
3
+ }, e = "newsletter", n = "Guido User";
16
4
  export {
17
- e as DefaultGuidoConfig,
18
- a as DefaultMessageType,
19
- t as DefaultProductType,
20
- s as DefaultUsername,
21
- n as EditorType,
22
- o as ProductIds
5
+ t as DefaultGuidoConfig,
6
+ e as DefaultProductType,
7
+ n as DefaultUsername
23
8
  };
package/dist/guido.css CHANGED
@@ -1 +1 @@
1
- .version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}[data-v-421ffc13] .guido__verion-history-view-option-selection-desktop svg,[data-v-421ffc13] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-421ffc13] .in-segments-wrapper__button_selected,[data-v-421ffc13] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-421ffc13] .in-tooltip-wrapper__icon{cursor:pointer}[data-v-aad05c54] .guido__view-option-selection-desktop svg,[data-v-aad05c54] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-aad05c54] .in-segments-wrapper__button_selected,[data-v-aad05c54] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-aad05c54] .in-tooltip-wrapper__icon{cursor:pointer}.guido-editor__wrapper[data-v-3ae5b820],.guido-editor__container[data-v-3ae5b820]{width:100%;height:calc(100vh - 75px)}.error-list[data-v-7a09985c]{gap:16px}[data-v-c2adc57d] .in-progress-wrapper__progress p span:last-child{display:none!important}.desktop-preview-container[data-v-2dd60b0c],[data-v-2dd60b0c] .desktop-preview-container .in-container{min-height:720px!important;height:100%}.cropped-text[data-v-f20b3a9b]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
1
+ .version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}[data-v-6a2bde67] .guido__verion-history-view-option-selection-desktop svg,[data-v-6a2bde67] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6a2bde67] .in-segments-wrapper__button_selected,[data-v-6a2bde67] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-0fff376c] .guido__view-option-selection-desktop svg,[data-v-0fff376c] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-0fff376c] .in-segments-wrapper__button_selected,[data-v-0fff376c] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.guido-editor__wrapper[data-v-ac2711fd],.guido-editor__container[data-v-ac2711fd]{width:100%;height:calc(100vh - 75px)}
@@ -5,7 +5,7 @@ function m() {
5
5
  o = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.Extension = void 0;
6
6
  var a = (
7
7
  /** @class */
8
- (function() {
8
+ function() {
9
9
  function t(u, l, i, y, n, p, r, s, h, g, c, f, x, E, d) {
10
10
  i === void 0 && (i = []), n === void 0 && (n = []), r === void 0 && (r = []), s === void 0 && (s = []), this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = u, this.styles = l, this.previewStyles = c, this.uiElements = i, this.uiElementTagRegistry = y, this.controls = n, this.settingsPanelRegistry = p, this.contextActions = r, this.blocks = s, this.externalSmartElementsLibrary = h, this.externalImageLibrary = g, this.externalAiAssistant = f, this.externalDisplayConditionsLibrary = x, this.externalVideoLibrary = E, this.blocksPanel = d, this.id = Math.random().toString(36).substring(2);
11
11
  }
@@ -42,7 +42,7 @@ function m() {
42
42
  }, t.prototype.getBlocksPanel = function() {
43
43
  return this.blocksPanel;
44
44
  }, t;
45
- })()
45
+ }()
46
46
  );
47
47
  return e.Extension = a, e;
48
48
  }
@@ -6,7 +6,7 @@ function l() {
6
6
  n = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.ExtensionBuilder = void 0;
7
7
  var r = o(), s = (
8
8
  /** @class */
9
- (function() {
9
+ function() {
10
10
  function i() {
11
11
  this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [];
12
12
  }
@@ -43,7 +43,7 @@ function l() {
43
43
  }, i.prototype.build = function() {
44
44
  return new r.Extension(this.i18n, this.styles, this.uiElements, this.uiElementTagRegistry, this.controls, this.settingsPanelRegistry, this.contextActions, this.blocks, this.externalSmartElementsLibrary, this.externalImageLibrary, this.previewStyles, this.externalAiAssistant, this.externalDisplayConditionsLibrary, this.externalVideoLibrary, this.blocksPanel);
45
45
  }, i;
46
- })()
46
+ }()
47
47
  );
48
48
  return e.ExtensionBuilder = s, e;
49
49
  }
@@ -6,7 +6,7 @@ function f() {
6
6
  n = 1, Object.defineProperty(o, "__esModule", { value: !0 }), o.Block = void 0;
7
7
  var r = i(), u = (
8
8
  /** @class */
9
- (function() {
9
+ function() {
10
10
  function e() {
11
11
  }
12
12
  return e.prototype.isEnabled = function() {
@@ -32,7 +32,7 @@ function f() {
32
32
  }, e.prototype.allowInnerBlocksDND = function() {
33
33
  return !0;
34
34
  }, e;
35
- })()
35
+ }()
36
36
  );
37
37
  return o.Block = u, o;
38
38
  }