@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.
- package/README.md +2 -26
- package/dist/@types/generic.d.ts +0 -29
- package/dist/components/Guido.vue.d.ts +1 -2
- package/dist/components/Guido.vue.js +10 -10
- package/dist/components/Guido.vue2.js +44 -51
- package/dist/components/organisms/header/MiddleSlot.vue.js +9 -9
- package/dist/components/organisms/header/MiddleSlot.vue2.js +17 -16
- package/dist/components/organisms/header/RightSlot.vue.js +9 -10
- package/dist/components/organisms/header/RightSlot.vue2.js +24 -28
- package/dist/components/organisms/header/ViewOptions.vue.js +8 -8
- package/dist/components/organisms/header/ViewOptions.vue2.js +10 -30
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +3 -3
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +16 -34
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.js +6 -6
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +35 -40
- package/dist/composables/useActionsApi.d.ts +1 -4
- package/dist/composables/useActionsApi.js +33 -74
- package/dist/composables/useHtmlCompiler.js +8 -9
- package/dist/composables/usePartner.d.ts +1 -1
- package/dist/composables/usePartner.js +14 -9
- package/dist/composables/useToaster.d.ts +1 -1
- package/dist/composables/useToaster.js +11 -11
- package/dist/composables/useTranslations.js +2 -3
- package/dist/composables/useValidation.d.ts +1 -27
- package/dist/composables/useValidation.js +8 -8
- package/dist/composables/validators/saveAsTemplate.d.ts +8 -13
- package/dist/composables/validators/saveAsTemplate.js +15 -18
- package/dist/enums/defaults.d.ts +1 -4
- package/dist/enums/defaults.js +6 -21
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +2 -2
- package/dist/node_modules/lodash-es/_isMasked.js +2 -2
- package/dist/node_modules/valibot/dist/index.js +58 -91
- package/dist/stores/editor.d.ts +0 -1
- package/dist/stores/editor.js +0 -1
- package/dist/stores/save-as-template.d.ts +1 -49
- package/dist/stores/save-as-template.js +28 -32
- package/package.json +3 -2
- package/dist/components/organisms/email-preview/PreviewContainer.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/PreviewContainer.vue.js +0 -19
- package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +0 -19
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -4
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +0 -22
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +0 -30
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +0 -19
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +0 -29
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +0 -22
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +0 -31
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +0 -17
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +0 -20
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +0 -18
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue2.js +0 -25
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -4
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +0 -19
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +0 -23
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -4
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +0 -20
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +0 -21
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +0 -17
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +0 -22
- package/dist/components/wrappers/WpModal.vue.d.ts +0 -65
- package/dist/components/wrappers/WpModal.vue.js +0 -27
- package/dist/components/wrappers/WpModal.vue2.js +0 -22
- package/dist/composables/useCodeEditorApi.d.ts +0 -4
- package/dist/composables/useCodeEditorApi.js +0 -11
- package/dist/composables/useConfig.d.ts +0 -4
- package/dist/composables/useConfig.js +0 -7
- package/dist/composables/useDebounce.d.ts +0 -4
- package/dist/composables/useDebounce.js +0 -12
- package/dist/composables/usePreviewMode.d.ts +0 -5
- package/dist/composables/usePreviewMode.js +0 -31
- package/dist/composables/useResponsivePreview.d.ts +0 -5
- package/dist/composables/useResponsivePreview.js +0 -86
- package/dist/enums/preview.d.ts +0 -13
- package/dist/enums/preview.js +0 -23
- package/dist/node_modules/@vueuse/shared/index.js +0 -45
- package/dist/node_modules/lodash-es/_Stack.js +0 -18
- package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
- package/dist/node_modules/lodash-es/_apply.js +0 -16
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -19
- package/dist/node_modules/lodash-es/_assignMergeValue.js +0 -8
- package/dist/node_modules/lodash-es/_assignValue.js +0 -10
- package/dist/node_modules/lodash-es/_baseAssignValue.js +0 -12
- package/dist/node_modules/lodash-es/_baseCreate.js +0 -17
- package/dist/node_modules/lodash-es/_baseFor.js +0 -5
- package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -12
- package/dist/node_modules/lodash-es/_baseKeysIn.js +0 -15
- package/dist/node_modules/lodash-es/_baseMerge.js +0 -20
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +0 -31
- package/dist/node_modules/lodash-es/_baseRest.js +0 -9
- package/dist/node_modules/lodash-es/_baseSetToString.js +0 -14
- package/dist/node_modules/lodash-es/_baseTimes.js +0 -8
- package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
- package/dist/node_modules/lodash-es/_cloneBuffer.js +0 -9
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +0 -8
- package/dist/node_modules/lodash-es/_copyArray.js +0 -9
- package/dist/node_modules/lodash-es/_copyObject.js +0 -14
- package/dist/node_modules/lodash-es/_createAssigner.js +0 -15
- package/dist/node_modules/lodash-es/_createBaseFor.js +0 -13
- package/dist/node_modules/lodash-es/_defineProperty.js +0 -11
- package/dist/node_modules/lodash-es/_getPrototype.js +0 -5
- package/dist/node_modules/lodash-es/_initCloneObject.js +0 -9
- package/dist/node_modules/lodash-es/_isIndex.js +0 -8
- package/dist/node_modules/lodash-es/_isIterateeCall.js +0 -13
- package/dist/node_modules/lodash-es/_isPrototype.js +0 -8
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +0 -10
- package/dist/node_modules/lodash-es/_nodeUtil.js +0 -11
- package/dist/node_modules/lodash-es/_overArg.js +0 -8
- package/dist/node_modules/lodash-es/_overRest.js +0 -15
- package/dist/node_modules/lodash-es/_safeGet.js +0 -7
- package/dist/node_modules/lodash-es/_setToString.js +0 -6
- package/dist/node_modules/lodash-es/_shortOut.js +0 -16
- package/dist/node_modules/lodash-es/_stackClear.js +0 -7
- package/dist/node_modules/lodash-es/_stackDelete.js +0 -7
- package/dist/node_modules/lodash-es/_stackGet.js +0 -6
- package/dist/node_modules/lodash-es/_stackHas.js +0 -6
- package/dist/node_modules/lodash-es/_stackSet.js +0 -17
- package/dist/node_modules/lodash-es/constant.js +0 -8
- package/dist/node_modules/lodash-es/identity.js +0 -6
- package/dist/node_modules/lodash-es/isArguments.js +0 -10
- package/dist/node_modules/lodash-es/isArray.js +0 -4
- package/dist/node_modules/lodash-es/isArrayLike.js +0 -8
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +0 -8
- package/dist/node_modules/lodash-es/isBuffer.js +0 -6
- package/dist/node_modules/lodash-es/isLength.js +0 -7
- package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/lodash-es/isPlainObject.js +0 -16
- package/dist/node_modules/lodash-es/isTypedArray.js +0 -7
- package/dist/node_modules/lodash-es/keysIn.js +0 -9
- package/dist/node_modules/lodash-es/merge.js +0 -8
- package/dist/node_modules/lodash-es/stubFalse.js +0 -6
- package/dist/node_modules/lodash-es/toPlainObject.js +0 -8
- package/dist/node_modules/vue-demi/lib/index.js +0 -7
- package/dist/services/templateLibraryApi.d.ts +0 -7
- package/dist/services/templateLibraryApi.js +0 -86
- package/dist/static/assets/inbox-mockup.svg.js +0 -4
- package/dist/static/assets/phone-mockup.svg.js +0 -4
- package/dist/stores/preview.d.ts +0 -46
- package/dist/stores/preview.js +0 -53
- package/dist/utils/base64.d.ts +0 -1
- package/dist/utils/base64.js +0 -7
- package/dist/utils/templatePreparation.d.ts +0 -20
- package/dist/utils/templatePreparation.js +0 -31
- package/dist/utils/tooltipUtils.d.ts +0 -2
- package/dist/utils/tooltipUtils.js +0 -11
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import s from "./SaveAsTemplateDrawer.vue2.js";
|
|
2
|
-
import
|
|
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: "
|
|
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
|
-
},
|
|
9
|
+
}, o = [], n = /* @__PURE__ */ l(
|
|
10
10
|
s,
|
|
11
11
|
r,
|
|
12
|
-
|
|
12
|
+
o,
|
|
13
13
|
!1,
|
|
14
14
|
null,
|
|
15
15
|
null
|
|
16
16
|
);
|
|
17
|
-
const
|
|
17
|
+
const c = n.exports;
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
c as default
|
|
20
20
|
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { useTemplateNameValidator as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
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(
|
|
13
|
-
const s =
|
|
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
|
-
})),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
t.templateName = e,
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
t.selectedCategories = e;
|
|
38
|
-
},
|
|
39
|
-
e && (t.selectedCategories = e);
|
|
40
|
-
},
|
|
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
|
-
},
|
|
43
|
-
if (a.value = !0, !
|
|
40
|
+
}, T = () => {
|
|
41
|
+
if (a.value = !0, !n()) {
|
|
44
42
|
a.value = !1;
|
|
45
43
|
return;
|
|
46
44
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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:
|
|
57
|
-
|
|
58
|
-
}), { __sfc: !0, trans: s, editorStore: o, saveAsTemplateStore: t,
|
|
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
|
-
|
|
57
|
+
z as default
|
|
63
58
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import
|
|
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
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
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 +
|
|
8
|
+
priority: o.priority + 1e3 + m
|
|
10
9
|
// Ensure additional rules run after default rules
|
|
11
10
|
}))
|
|
12
|
-
],
|
|
13
|
-
return { compileHtml: (o) =>
|
|
11
|
+
], i = p(t);
|
|
12
|
+
return { compileHtml: (o) => i.compile(o) };
|
|
14
13
|
};
|
|
15
14
|
export {
|
|
16
|
-
|
|
15
|
+
a as useHtmlCompiler
|
|
17
16
|
};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { DefaultProductType as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
15
|
+
p as usePartner
|
|
11
16
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as o, watch as T } from "vue";
|
|
2
2
|
const v = () => {
|
|
3
|
-
const t =
|
|
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,
|
|
9
|
+
t.value = !1, n.value = [], s.value = "";
|
|
10
10
|
}
|
|
11
11
|
function l(e = { message: "" }) {
|
|
12
|
-
u(), s.value = e.message,
|
|
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,
|
|
14
|
+
function f(e, r) {
|
|
15
15
|
const m = e instanceof Error ? e.message : String(e);
|
|
16
16
|
l({
|
|
17
|
-
type: "
|
|
18
|
-
message: `${
|
|
17
|
+
type: "error",
|
|
18
|
+
message: `${r}: ${m}`
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
return T([t, s], ([e,
|
|
22
|
-
i(), e &&
|
|
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:
|
|
29
|
-
toasterActionButton:
|
|
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
|
|
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,
|
|
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
|
|
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 {
|
|
2
|
-
import { unref as
|
|
3
|
-
function
|
|
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:
|
|
7
|
-
var s, t,
|
|
8
|
-
const r =
|
|
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: ((
|
|
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
|
-
|
|
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").
|
|
9
|
-
validate: () =>
|
|
10
|
-
error: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255> |
|
|
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> |
|
|
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
|
|
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> |
|
|
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
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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:
|
|
16
|
-
max:
|
|
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
|
-
|
|
20
|
+
u as useTemplateNameValidator
|
|
24
21
|
};
|
package/dist/enums/defaults.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { GuidoConfig } from '@@/Types/generic';
|
|
2
2
|
export declare const DefaultGuidoConfig: GuidoConfig;
|
|
3
|
-
export declare const DefaultProductType = "
|
|
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>;
|
package/dist/enums/defaults.js
CHANGED
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
translationsPath: "window.trans.en"
|
|
3
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
}
|