@useinsider/guido 1.0.0-beta.e760ea9 → 1.0.0-beta.e8ee5f5
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 +159 -23
- package/dist/@types/generic.d.ts +33 -0
- package/dist/@types/save-as-template.d.ts +29 -0
- package/dist/components/Guido.vue.d.ts +6 -3
- package/dist/components/Guido.vue.js +8 -8
- package/dist/components/Guido.vue2.js +60 -38
- package/dist/components/organisms/base/Toaster.vue.d.ts +2 -0
- package/dist/components/organisms/base/Toaster.vue.js +17 -0
- package/dist/components/organisms/base/Toaster.vue2.js +15 -0
- package/dist/components/organisms/email-preview/PreviewContainer.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/PreviewContainer.vue.js +19 -0
- package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +19 -0
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +4 -0
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +22 -0
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +30 -0
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +19 -0
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +29 -0
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +22 -0
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +31 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +17 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +20 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +18 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue2.js +25 -0
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +4 -0
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +19 -0
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +23 -0
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +4 -0
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +20 -0
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +21 -0
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +17 -0
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +22 -0
- package/dist/components/organisms/header/LeftSlot.vue2.js +7 -9
- package/dist/components/organisms/header/MiddleSlot.vue.js +9 -9
- package/dist/components/organisms/header/MiddleSlot.vue2.js +16 -17
- package/dist/components/organisms/header/RightSlot.vue.js +9 -8
- package/dist/components/organisms/header/RightSlot.vue2.js +27 -25
- package/dist/components/organisms/header/ViewOptions.vue.js +8 -8
- package/dist/components/organisms/header/ViewOptions.vue2.js +30 -10
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +3 -3
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +34 -16
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +2 -0
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.js +20 -0
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +63 -0
- package/dist/components/wrappers/WpDrawer.vue.d.ts +63 -0
- package/dist/components/wrappers/WpDrawer.vue.js +25 -0
- package/dist/components/wrappers/WpDrawer.vue2.js +23 -0
- package/dist/components/wrappers/WpModal.vue.d.ts +65 -0
- package/dist/components/wrappers/WpModal.vue.js +27 -0
- package/dist/components/wrappers/WpModal.vue2.js +22 -0
- package/dist/composables/useActionsApi.d.ts +4 -1
- package/dist/composables/useActionsApi.js +74 -33
- package/dist/composables/useCodeEditorApi.d.ts +4 -0
- package/dist/composables/useCodeEditorApi.js +11 -0
- package/dist/composables/useConfig.d.ts +4 -0
- package/dist/composables/useConfig.js +7 -0
- package/dist/composables/useDebounce.d.ts +4 -0
- package/dist/composables/useDebounce.js +12 -0
- package/dist/composables/useExport.js +10 -9
- package/dist/composables/useGuidoActions.d.ts +2 -2
- package/dist/composables/useHtmlCompiler.js +9 -8
- package/dist/composables/useHttp.js +23 -21
- package/dist/composables/usePartner.d.ts +1 -1
- package/dist/composables/usePartner.js +9 -14
- package/dist/composables/usePreviewMode.d.ts +5 -0
- package/dist/composables/usePreviewMode.js +31 -0
- package/dist/composables/useResponsivePreview.d.ts +5 -0
- package/dist/composables/useResponsivePreview.js +86 -0
- package/dist/composables/useStripo.js +25 -15
- package/dist/composables/useToaster.d.ts +1 -16
- package/dist/composables/useToaster.js +24 -30
- package/dist/composables/useTranslations.js +3 -2
- package/dist/composables/useValidation.d.ts +56 -0
- package/dist/composables/useValidation.js +19 -0
- package/dist/composables/useVersionHistoryApi.js +11 -10
- package/dist/composables/validators/saveAsTemplate.d.ts +31 -0
- package/dist/composables/validators/saveAsTemplate.js +24 -0
- package/dist/enums/defaults.d.ts +4 -1
- package/dist/enums/defaults.js +21 -6
- package/dist/enums/preview.d.ts +13 -0
- package/dist/enums/preview.js +23 -0
- package/dist/enums/toaster.d.ts +5 -0
- package/dist/enums/toaster.js +4 -0
- package/dist/extensions/DynamicContent/dynamic-content.js +13 -15
- package/dist/guido.css +1 -1
- package/dist/mock/api/template-library.d.ts +2 -0
- 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/@vueuse/shared/index.js +45 -0
- package/dist/node_modules/lodash-es/_Stack.js +18 -0
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/lodash-es/_apply.js +16 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +19 -0
- package/dist/node_modules/lodash-es/_assignMergeValue.js +8 -0
- package/dist/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/lodash-es/_baseCreate.js +17 -0
- package/dist/node_modules/lodash-es/_baseFor.js +5 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +12 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.js +15 -0
- package/dist/node_modules/lodash-es/_baseMerge.js +20 -0
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +31 -0
- package/dist/node_modules/lodash-es/_baseRest.js +9 -0
- package/dist/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/node_modules/lodash-es/_baseTimes.js +8 -0
- package/dist/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/lodash-es/_copyArray.js +9 -0
- package/dist/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/lodash-es/_createAssigner.js +15 -0
- package/dist/node_modules/lodash-es/_createBaseFor.js +13 -0
- package/dist/node_modules/lodash-es/_defineProperty.js +11 -0
- package/dist/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/lodash-es/_isIterateeCall.js +13 -0
- package/dist/node_modules/lodash-es/_isMasked.js +2 -2
- package/dist/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +10 -0
- package/dist/node_modules/lodash-es/_nodeUtil.js +11 -0
- package/dist/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/lodash-es/_overRest.js +15 -0
- package/dist/node_modules/lodash-es/_safeGet.js +7 -0
- package/dist/node_modules/lodash-es/_setToString.js +6 -0
- package/dist/node_modules/lodash-es/_shortOut.js +16 -0
- package/dist/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/lodash-es/_stackSet.js +17 -0
- package/dist/node_modules/lodash-es/constant.js +8 -0
- package/dist/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +8 -0
- package/dist/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/lodash-es/isPlainObject.js +16 -0
- package/dist/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/lodash-es/merge.js +8 -0
- package/dist/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/lodash-es/toPlainObject.js +8 -0
- package/dist/node_modules/valibot/dist/index.js +190 -0
- package/dist/node_modules/vue-demi/lib/index.js +7 -0
- package/dist/services/templateLibraryApi.d.ts +7 -0
- package/dist/services/templateLibraryApi.js +87 -0
- package/dist/static/assets/inbox-mockup.svg.js +4 -0
- package/dist/static/assets/phone-mockup.svg.js +4 -0
- package/dist/stores/dynamic-content.d.ts +27 -0
- package/dist/stores/dynamic-content.js +23 -0
- package/dist/stores/editor.d.ts +3 -0
- package/dist/stores/editor.js +6 -3
- package/dist/stores/preview.d.ts +46 -0
- package/dist/stores/preview.js +53 -0
- package/dist/stores/save-as-template.d.ts +73 -0
- package/dist/stores/save-as-template.js +48 -0
- package/dist/stores/toaster.d.ts +18 -0
- package/dist/stores/toaster.js +27 -0
- package/dist/utils/arrayUtil.d.ts +1 -0
- package/dist/utils/arrayUtil.js +10 -0
- package/dist/utils/base64.d.ts +1 -0
- package/dist/utils/base64.js +7 -0
- package/dist/utils/genericUtil.d.ts +3 -0
- package/dist/utils/genericUtil.js +11 -0
- package/dist/utils/templatePreparation.d.ts +4 -0
- package/dist/utils/templatePreparation.js +33 -0
- package/dist/utils/tooltipUtils.d.ts +2 -0
- package/dist/utils/tooltipUtils.js +11 -0
- package/package.json +3 -3
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ToasterTypeOptions as t } from "../enums/toaster.js";
|
|
2
|
+
import { useVersionHistoryStore as c } from "../stores/version-history.js";
|
|
3
|
+
import { useToaster as w } from "./useToaster.js";
|
|
4
|
+
const S = () => {
|
|
5
|
+
const i = c(), { showToaster: s } = w(), n = (e) => {
|
|
5
6
|
i.$reset(), i.updateState(e);
|
|
6
|
-
},
|
|
7
|
+
}, p = () => {
|
|
7
8
|
i.$reset();
|
|
8
9
|
};
|
|
9
10
|
return {
|
|
10
11
|
openVersionHistory: () => {
|
|
11
|
-
window.StripoEditorApi.versionHistoryApi.openVersionHistory(
|
|
12
|
+
window.StripoEditorApi.versionHistoryApi.openVersionHistory(n, p);
|
|
12
13
|
},
|
|
13
14
|
closeVersionHistory: () => {
|
|
14
15
|
window.StripoEditorApi.versionHistoryApi.closeVersionHistory();
|
|
@@ -23,7 +24,7 @@ const l = () => {
|
|
|
23
24
|
window.StripoEditorApi.versionHistoryApi.previewVersion(e, (o) => {
|
|
24
25
|
const r = o instanceof Error ? o.message : String(o);
|
|
25
26
|
s({
|
|
26
|
-
type:
|
|
27
|
+
type: t.Alert,
|
|
27
28
|
message: `Error compiling email: ${r}`
|
|
28
29
|
});
|
|
29
30
|
});
|
|
@@ -33,14 +34,14 @@ const l = () => {
|
|
|
33
34
|
e,
|
|
34
35
|
() => {
|
|
35
36
|
s({
|
|
36
|
-
type:
|
|
37
|
+
type: t.Success,
|
|
37
38
|
message: `${e} patch restored successfully.`
|
|
38
39
|
});
|
|
39
40
|
},
|
|
40
41
|
(o) => {
|
|
41
42
|
const r = o instanceof Error ? o.message : String(o);
|
|
42
43
|
s({
|
|
43
|
-
type:
|
|
44
|
+
type: t.Alert,
|
|
44
45
|
message: `Error compiling email: ${r}`
|
|
45
46
|
});
|
|
46
47
|
}
|
|
@@ -49,5 +50,5 @@ const l = () => {
|
|
|
49
50
|
};
|
|
50
51
|
};
|
|
51
52
|
export {
|
|
52
|
-
|
|
53
|
+
S as useVersionHistoryApi
|
|
53
54
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
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;
|
|
11
|
+
errorMessage: string;
|
|
12
|
+
typed: true;
|
|
13
|
+
success: true;
|
|
14
|
+
output: string;
|
|
15
|
+
issues: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
error: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").CheckIssue<string> | undefined;
|
|
18
|
+
errorMessage: string;
|
|
19
|
+
typed: true;
|
|
20
|
+
success: false;
|
|
21
|
+
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>)[]];
|
|
23
|
+
} | {
|
|
24
|
+
error: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").CheckIssue<string> | undefined;
|
|
25
|
+
errorMessage: string;
|
|
26
|
+
typed: false;
|
|
27
|
+
success: false;
|
|
28
|
+
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
|
+
}>;
|
|
31
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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", {
|
|
14
|
+
article: "a",
|
|
15
|
+
field: e("products.template-name"),
|
|
16
|
+
max: t
|
|
17
|
+
})
|
|
18
|
+
),
|
|
19
|
+
s(r, e("save-product-card.name-error"))
|
|
20
|
+
));
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
x as useTemplateNameValidator
|
|
24
|
+
};
|
package/dist/enums/defaults.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
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 = "email";
|
|
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,8 +1,23 @@
|
|
|
1
|
-
const
|
|
2
|
-
translationsPath: "window.trans.en"
|
|
3
|
-
|
|
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
|
+
};
|
|
4
16
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
17
|
+
e as DefaultGuidoConfig,
|
|
18
|
+
a as DefaultMessageType,
|
|
19
|
+
t as DefaultProductType,
|
|
20
|
+
s as DefaultUsername,
|
|
21
|
+
n as EditorType,
|
|
22
|
+
o as ProductIds
|
|
8
23
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const ResponsivePreviewConfig: {
|
|
2
|
+
DEFAULT_WIDTH: number;
|
|
3
|
+
MIN_SCALE: number;
|
|
4
|
+
RESIZE_DEBOUNCE_MS: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const ResponsivePreviewRegex: {
|
|
7
|
+
INLINE_WIDTH: RegExp;
|
|
8
|
+
TABLE_WIDTH: RegExp;
|
|
9
|
+
META_VIEWPORT: RegExp;
|
|
10
|
+
};
|
|
11
|
+
export declare const ResponsivePreviewSelectors: {
|
|
12
|
+
CONTAINERS: string[];
|
|
13
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
DEFAULT_WIDTH: 600,
|
|
3
|
+
MIN_SCALE: 0.2,
|
|
4
|
+
RESIZE_DEBOUNCE_MS: 100
|
|
5
|
+
}, i = {
|
|
6
|
+
INLINE_WIDTH: /width\s*:\s*(\d+(\.\d+)?)px/i,
|
|
7
|
+
TABLE_WIDTH: /^(\d+(\.\d+)?)(px)?$/i,
|
|
8
|
+
META_VIEWPORT: /width\s*=\s*device-width/i
|
|
9
|
+
}, n = {
|
|
10
|
+
CONTAINERS: [
|
|
11
|
+
".wrapper",
|
|
12
|
+
".container",
|
|
13
|
+
"#wrapper",
|
|
14
|
+
"#container",
|
|
15
|
+
"[data-email-container]",
|
|
16
|
+
'[role="presentation"]'
|
|
17
|
+
]
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
e as ResponsivePreviewConfig,
|
|
21
|
+
i as ResponsivePreviewRegex,
|
|
22
|
+
n as ResponsivePreviewSelectors
|
|
23
|
+
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var r = (i, t, e) =>
|
|
1
|
+
var o = Object.defineProperty;
|
|
2
|
+
var m = (i, t, e) => t in i ? o(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var r = (i, t, e) => m(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { dynamicContentToMergeTags as l } from "../../utils/genericUtil.js";
|
|
4
5
|
import { d as n } from "../../_virtual/index.js";
|
|
5
|
-
import { ExternalMergeTagsLibrary as
|
|
6
|
-
const a = "external-dynamic-content-ui-element",
|
|
7
|
-
class
|
|
6
|
+
import { ExternalMergeTagsLibrary as g } from "./dynamic-content-modal.js";
|
|
7
|
+
const a = "external-dynamic-content-ui-element", c = "button-add-dynamic-content";
|
|
8
|
+
class p extends n.UIElementTagRegistry {
|
|
8
9
|
registerUiElements(t) {
|
|
9
10
|
t[n.UIElementType.MERGETAGS] = a;
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
|
-
class
|
|
13
|
+
class u extends n.UIElement {
|
|
13
14
|
constructor() {
|
|
14
15
|
super(...arguments);
|
|
15
16
|
r(this, "mergeTagsButton", null);
|
|
@@ -33,13 +34,10 @@ class b extends n.UIElement {
|
|
|
33
34
|
this.openMergeTagLibrary();
|
|
34
35
|
}
|
|
35
36
|
openMergeTagLibrary() {
|
|
36
|
-
this.mergeTagsLibrary || (this.mergeTagsLibrary = new
|
|
37
|
+
this.mergeTagsLibrary || (this.mergeTagsLibrary = new g()), this.mergeTagsLibrary.openMergeTagsLibrary(
|
|
37
38
|
this.selectedDynamicContent,
|
|
38
39
|
(e) => {
|
|
39
|
-
this.api.onValueChanged(
|
|
40
|
-
label: e.fallback ? `${e.text} | ${e.fallback}` : e.text,
|
|
41
|
-
value: e.fallback ? `{{${e.value}|${e.fallback}}}` : `{{${e.value}}}`
|
|
42
|
-
});
|
|
40
|
+
this.api.onValueChanged(l([e])[0]);
|
|
43
41
|
}
|
|
44
42
|
);
|
|
45
43
|
}
|
|
@@ -49,7 +47,7 @@ class b extends n.UIElement {
|
|
|
49
47
|
<${n.UIElementType.BUTTON}
|
|
50
48
|
id="guido__btn-add-dynamic-content"
|
|
51
49
|
class="btn btn-primary"
|
|
52
|
-
${n.UEAttr.BUTTON.name}="${
|
|
50
|
+
${n.UEAttr.BUTTON.name}="${c}">
|
|
53
51
|
<${n.UIElementType.ICON} src="plus" class="icon icon-button color-primary">
|
|
54
52
|
</${n.UIElementType.ICON}>
|
|
55
53
|
${this.api.translate("Add Dynamic Content")}
|
|
@@ -58,6 +56,6 @@ class b extends n.UIElement {
|
|
|
58
56
|
}
|
|
59
57
|
}
|
|
60
58
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
p as DynamicContentTagRegistry,
|
|
60
|
+
u as DynamicContentUiElementExtension
|
|
63
61
|
};
|
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-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-84c43576],.guido-editor__container[data-v-84c43576]{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}
|
|
@@ -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
|
}
|
|
@@ -5,11 +5,11 @@ function u() {
|
|
|
5
5
|
r = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.BlockRenderer = void 0;
|
|
6
6
|
var n = (
|
|
7
7
|
/** @class */
|
|
8
|
-
/* @__PURE__ */ function() {
|
|
8
|
+
/* @__PURE__ */ (function() {
|
|
9
9
|
function o() {
|
|
10
10
|
}
|
|
11
11
|
return o;
|
|
12
|
-
}()
|
|
12
|
+
})()
|
|
13
13
|
);
|
|
14
14
|
return e.BlockRenderer = n, e;
|
|
15
15
|
}
|
|
@@ -5,7 +5,7 @@ function l() {
|
|
|
5
5
|
o = 1, Object.defineProperty(t, "__esModule", { value: !0 }), t.BlocksPanel = void 0;
|
|
6
6
|
var r = (
|
|
7
7
|
/** @class */
|
|
8
|
-
function() {
|
|
8
|
+
(function() {
|
|
9
9
|
function e() {
|
|
10
10
|
}
|
|
11
11
|
return e.prototype.getBlockItemHtml = function(n) {
|
|
@@ -23,7 +23,7 @@ function l() {
|
|
|
23
23
|
}, e.prototype.getHintDelay = function() {
|
|
24
24
|
}, e.prototype.getModulesPanelHint = function() {
|
|
25
25
|
}, e;
|
|
26
|
-
}()
|
|
26
|
+
})()
|
|
27
27
|
);
|
|
28
28
|
return t.BlocksPanel = r, t;
|
|
29
29
|
}
|
|
@@ -5,11 +5,11 @@ function i() {
|
|
|
5
5
|
e = 1, Object.defineProperty(t, "__esModule", { value: !0 }), t.ContextAction = void 0;
|
|
6
6
|
var n = (
|
|
7
7
|
/** @class */
|
|
8
|
-
/* @__PURE__ */ function() {
|
|
8
|
+
/* @__PURE__ */ (function() {
|
|
9
9
|
function o() {
|
|
10
10
|
}
|
|
11
11
|
return o;
|
|
12
|
-
}()
|
|
12
|
+
})()
|
|
13
13
|
);
|
|
14
14
|
return t.ContextAction = n, t;
|
|
15
15
|
}
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js
CHANGED
|
@@ -4,9 +4,9 @@ function a() {
|
|
|
4
4
|
if (i) return e;
|
|
5
5
|
i = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.AiAssistantValueType = void 0;
|
|
6
6
|
var r;
|
|
7
|
-
return function(t) {
|
|
7
|
+
return (function(t) {
|
|
8
8
|
t.SUBJECT = "subject", t.HIDDEN_PREHEADER = "hiddenPreheader", t.TEXT_BLOCK = "textBlock";
|
|
9
|
-
}(r || (e.AiAssistantValueType = r = {})), e;
|
|
9
|
+
})(r || (e.AiAssistantValueType = r = {})), e;
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
12
|
a as __require
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js
CHANGED
|
@@ -4,9 +4,9 @@ function p() {
|
|
|
4
4
|
if (r) return o;
|
|
5
5
|
r = 1, Object.defineProperty(o, "__esModule", { value: !0 }), o.BlockCompositionType = void 0;
|
|
6
6
|
var e;
|
|
7
|
-
return function(i) {
|
|
7
|
+
return (function(i) {
|
|
8
8
|
i.BLOCK = "BLOCK", i.STRUCTURE = "STRUCTURE";
|
|
9
|
-
}(e || (o.BlockCompositionType = e = {})), o;
|
|
9
|
+
})(e || (o.BlockCompositionType = e = {})), o;
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
12
|
p as __require
|
|
@@ -4,9 +4,9 @@ function K() {
|
|
|
4
4
|
if (L) return C;
|
|
5
5
|
L = 1, Object.defineProperty(C, "__esModule", { value: !0 }), C.BlockType = void 0;
|
|
6
6
|
var _;
|
|
7
|
-
return function(O) {
|
|
7
|
+
return (function(O) {
|
|
8
8
|
O.BLOCK_IMAGE = "BLOCK_IMAGE", O.BLOCK_TEXT = "BLOCK_TEXT", O.BLOCK_BUTTON = "BLOCK_BUTTON", O.BLOCK_SPACER = "BLOCK_SPACER", O.BLOCK_VIDEO = "BLOCK_VIDEO", O.BLOCK_SOCIAL = "BLOCK_SOCIAL", O.BLOCK_BANNER = "BLOCK_BANNER", O.BLOCK_TIMER = "BLOCK_TIMER", O.BLOCK_MENU = "BLOCK_MENU", O.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", O.BLOCK_HTML = "BLOCK_HTML", O.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", O.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", O.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", O.CONTAINER = "CONTAINER", O.FORM_CONTAINER = "FORM_CONTAINER", O.STRUCTURE = "STRUCTURE", O.STRIPE = "STRIPE", O.EMPTY_CONTAINER = "EMPTY_CONTAINER", O.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", O.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", O.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT";
|
|
9
|
-
}(_ || (C.BlockType = _ = {})), C;
|
|
9
|
+
})(_ || (C.BlockType = _ = {})), C;
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
12
|
K as __require
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js
CHANGED
|
@@ -95,9 +95,9 @@ function b() {
|
|
|
95
95
|
T.DISPLAY_OFFER_BADGE = "displayOfferBadgeForm", T.DISPLAY_PROMO_CODE_BADGE = "displayPromoCodeBadgeForm", T.END_DISCOUNT_OFFER = "endDiscountOfferForm", T.GMAIL_PROMOTIONS_TAB = "gmailPromotionsTabForm", T.HIDDEN_PRE_HEADER = "hiddenPreHeaderForm", T.INCLUDE_PROMO_IMAGE = "includePromoImageForm", T.INCLUDE_SENDER_LOGO = "includeSenderLogoForm", T.SUBJECT_TITLE = "subjectTitleForm", T.UTM_PARAMETERS = "utmParametersForm", T.UTM_PARAMETERS_CAMPAIGN = "utmParameterCampaignForm", T.UTM_PARAMETERS_CUSTOM = "utmParametersCustomForm", T.UTM_PARAMETERS_CUSTOM_ITEM = "utmParametersCustomItemForm";
|
|
96
96
|
})(B || (E.MessageSettingsControls = B = {}));
|
|
97
97
|
var C;
|
|
98
|
-
return function(T) {
|
|
98
|
+
return (function(T) {
|
|
99
99
|
T.BUTTONS_ADJUST_TO_WIDTH_CONTAINER = "buttonsAdjustToWidthFormContainer", T.BUTTONS_BORDER = "buttonsBorder", T.BUTTONS_BORDER_RADIUS_CONTAINER = "buttonsBorderRadiusContainer", T.BUTTONS_COLOR_CONTAINER = "buttonsColorContainer", T.BUTTONS_FONT_FAMILY_CONTAINER = "buttonsFontFamilyContainer", T.BUTTONS_FONT_SIZE_CONTAINER = "buttonsFontSizeFormContainer", T.BUTTONS_HOVERED_BUTTON_STYLE = "buttonsHoveredButtonStyleForm", T.BUTTONS_INTERNAL_INDENTS_CONTAINER = "buttonsInternalIndentsContainer", T.BUTTONS_LETTER_SPACING_CONTAINER = "buttonsLetterSpacingContainer", T.BUTTONS_OUTLOOK_SUPPORT_CONTAINER = "buttonsOutlookSupportContainer", T.BUTTONS_TEXT_STYLE_AND_COLOR_CONTAINER = "buttonsTextStyleAndColorFormContainer", T.DEFAULT_STRUCTURE_INTERNAL_INDENTS = "defaultStructureInternalIndents", T.GENERAL_BACKGROUND_COLOR_CONTAINER = "generalBackgroundColorContainer", T.GENERAL_IMAGE_CONTAINER = "generalImageContainer", T.HEADINGS_FONT_FAMILY_CONTAINER = "headingsFontFamilyContainer", T.HEADINGS_H1_CONTROLS_CONTAINER = "headingH1controlsContainer", T.HEADINGS_H2_CONTROLS_CONTAINER = "headingH2controlsContainer", T.HEADINGS_H3_CONTROLS_CONTAINER = "headingH3controlsContainer", T.HEADINGS_H4_CONTROLS_CONTAINER = "headingH4controlsContainer", T.HEADINGS_H5_CONTROLS_CONTAINER = "headingH5controlsContainer", T.HEADINGS_H6_CONTROLS_CONTAINER = "headingH6controlsContainer", T.HEADINGS_LETTER_SPACING_CONTAINER = "headingsLetterSpacingFormContainer", T.HEADINGS_PARAGRAPH_BOTTOM_MARGIN = "headingsParagraphBottomMarginForm", T.HEADINGS_TYPES_BUTTON_BAR = "headingsTypesButtonBarForm", T.LISTS_STYLES = "listsStyles", T.MARGIN_AROUND_MESSAGE = "marginAroundMessage", T.MESSAGE_ALIGNMENT = "messageAlignment", T.MESSAGE_CONTENT_WIDTH = "messageContentWidth", T.RESPONSIVE_DESIGN = "responsiveDesign", T.RIGHT_TO_LEFT_CONTAINER = "rightToLeftContainer", T.STRIPES_CONTENT_CONTROLS_CONTAINER = "stripesContentControlsContainer", T.STRIPES_FONT_FAMILY_CONTAINER = "stripesFontFamilyFormContainer", T.STRIPES_FOOTER_CONTROLS_CONTAINER = "stripesFooterControlsContainer", T.STRIPES_HEADER_CONTROLS_CONTAINER = "stripesHeaderControlsContainer", T.STRIPES_INFO_AREA_CONTROLS_CONTAINER = "stripesInfoAreaControlsContainer", T.STRIPES_LETTER_SPACING_CONTAINER = "stripesLetterSpacingFormContainer", T.STRIPES_LINE_HEIGHT_CONTAINER = "stripesLineHeightFormContainer", T.STRIPE_TYPES_BUTTON_BAR = "stripeTypesButtonBarForm", T.UNDERLINE_LINKS_CONTAINER = "underlineLinksContainer";
|
|
100
|
-
}(C || (E.GeneralStylesControls = C = {})), E.BuiltInControlTypes = (I = {}, I[_.BlockType.BLOCK_BANNER] = e, I[_.BlockType.BLOCK_BUTTON] = A, I[_.BlockType.BLOCK_TEXT] = i, I[_.BlockType.BLOCK_VIDEO] = m, I[_.BlockType.BLOCK_TIMER] = a, I[_.BlockType.BLOCK_SPACER] = L, I[_.BlockType.BLOCK_IMAGE] = r, I[_.BlockType.BLOCK_HTML] = F, I[_.BlockType.BLOCK_SOCIAL] = o, I[_.BlockType.BLOCK_MENU] = M, I[_.BlockType.BLOCK_AMP_FORM] = R, I[_.BlockType.BLOCK_AMP_ACCORDION] = D, I[_.BlockType.BLOCK_AMP_CAROUSEL] = c, I[_.BlockType.STRIPE] = p, I[_.BlockType.STRUCTURE] = d, I[_.BlockType.CONTAINER] = u, I[_.BlockType.CUSTOM_BLOCK_LINK] = n, I[_.BlockType.CUSTOM_BLOCK_IMAGE] = t, I[_.BlockType.CUSTOM_BLOCK_TEXT] = S, I.BANNER_CHILD = O, I.MESSAGE_SETTINGS = B, I.GENERAL_STYLES = C, I.GENERAL = N, I), E;
|
|
100
|
+
})(C || (E.GeneralStylesControls = C = {})), E.BuiltInControlTypes = (I = {}, I[_.BlockType.BLOCK_BANNER] = e, I[_.BlockType.BLOCK_BUTTON] = A, I[_.BlockType.BLOCK_TEXT] = i, I[_.BlockType.BLOCK_VIDEO] = m, I[_.BlockType.BLOCK_TIMER] = a, I[_.BlockType.BLOCK_SPACER] = L, I[_.BlockType.BLOCK_IMAGE] = r, I[_.BlockType.BLOCK_HTML] = F, I[_.BlockType.BLOCK_SOCIAL] = o, I[_.BlockType.BLOCK_MENU] = M, I[_.BlockType.BLOCK_AMP_FORM] = R, I[_.BlockType.BLOCK_AMP_ACCORDION] = D, I[_.BlockType.BLOCK_AMP_CAROUSEL] = c, I[_.BlockType.STRIPE] = p, I[_.BlockType.STRUCTURE] = d, I[_.BlockType.CONTAINER] = u, I[_.BlockType.CUSTOM_BLOCK_LINK] = n, I[_.BlockType.CUSTOM_BLOCK_IMAGE] = t, I[_.BlockType.CUSTOM_BLOCK_TEXT] = S, I.BANNER_CHILD = O, I.MESSAGE_SETTINGS = B, I.GENERAL_STYLES = C, I.GENERAL = N, I), E;
|
|
101
101
|
}
|
|
102
102
|
export {
|
|
103
103
|
b as __require
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js
CHANGED
|
@@ -4,9 +4,9 @@ function i() {
|
|
|
4
4
|
if (E) return r;
|
|
5
5
|
E = 1, Object.defineProperty(r, "__esModule", { value: !0 }), r.ContextActionType = void 0;
|
|
6
6
|
var o;
|
|
7
|
-
return function(e) {
|
|
7
|
+
return (function(e) {
|
|
8
8
|
e.SAVE_AS_MODULE = "saveAsModule", e.UPDATE_MODULE = "updateModule", e.IMPROVE_WITH_AI = "improveWithAI", e.MOVE = "move", e.COPY = "copy", e.REMOVE = "remove", e.CLEAR_CONTAINER = "clearContainer", e.REMOVE_CONTAINER = "removeContainer", e.EXTERNAL_DISPLAY_CONDITION = "externalDisplayCondition";
|
|
9
|
-
}(o || (r.ContextActionType = o = {})), r;
|
|
9
|
+
})(o || (r.ContextActionType = o = {})), r;
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
12
|
i as __require
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js
CHANGED
|
@@ -4,9 +4,9 @@ function p() {
|
|
|
4
4
|
if (t) return e;
|
|
5
5
|
t = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.EditorStatePropertyType = void 0;
|
|
6
6
|
var r;
|
|
7
|
-
return function(o) {
|
|
7
|
+
return (function(o) {
|
|
8
8
|
o.previewDeviceMode = "previewDeviceMode";
|
|
9
|
-
}(r || (e.EditorStatePropertyType = r = {})), e;
|
|
9
|
+
})(r || (e.EditorStatePropertyType = r = {})), e;
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
12
|
p as __require
|
|
@@ -4,9 +4,9 @@ function t() {
|
|
|
4
4
|
if (r) return e;
|
|
5
5
|
r = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.PanelPosition = void 0;
|
|
6
6
|
var i;
|
|
7
|
-
return function(o) {
|
|
7
|
+
return (function(o) {
|
|
8
8
|
o.BLOCKS_SETTINGS = "BLOCKS_SETTINGS", o.SETTINGS_BLOCKS = "SETTINGS_BLOCKS";
|
|
9
|
-
}(i || (e.PanelPosition = i = {})), e;
|
|
9
|
+
})(i || (e.PanelPosition = i = {})), e;
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
12
|
t as __require
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js
CHANGED
|
@@ -4,9 +4,9 @@ function t() {
|
|
|
4
4
|
if (o) return e;
|
|
5
5
|
o = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.PreviewDeviceMode = void 0;
|
|
6
6
|
var r;
|
|
7
|
-
return function(i) {
|
|
7
|
+
return (function(i) {
|
|
8
8
|
i.DESKTOP = "DESKTOP", i.MOBILE = "MOBILE";
|
|
9
|
-
}(r || (e.PreviewDeviceMode = r = {})), e;
|
|
9
|
+
})(r || (e.PreviewDeviceMode = r = {})), e;
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
12
|
t as __require
|
|
@@ -4,9 +4,9 @@ function a() {
|
|
|
4
4
|
if (i) return e;
|
|
5
5
|
i = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.SettingsTab = void 0;
|
|
6
6
|
var r;
|
|
7
|
-
return function(t) {
|
|
7
|
+
return (function(t) {
|
|
8
8
|
t.SETTINGS = "settings", t.STYLES = "styles", t.DATA = "data";
|
|
9
|
-
}(r || (e.SettingsTab = r = {})), e;
|
|
9
|
+
})(r || (e.SettingsTab = r = {})), e;
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
12
|
a as __require
|
|
@@ -4,9 +4,9 @@ function S() {
|
|
|
4
4
|
if (O) return T;
|
|
5
5
|
O = 1, Object.defineProperty(T, "__esModule", { value: !0 }), T.UIElementType = void 0;
|
|
6
6
|
var C;
|
|
7
|
-
return function(E) {
|
|
7
|
+
return (function(E) {
|
|
8
8
|
E.BUTTON = "UE-BUTTON", E.CHECKBOX = "UE-CHECKBOX", E.CHECK_BUTTONS = "UE-CHECK-BUTTONS", E.COLOR = "UE-COLOR", E.COUNTER = "UE-COUNTER", E.DATEPICKER = "UE-DATEPICKER", E.LABEL = "UE-LABEL", E.MESSAGE = "UE-MESSAGE", E.RADIO_BUTTONS = "UE-RADIO-BUTTONS", E.SELECTPICKER = "UE-SELECT", E.SWITCHER = "UE-SWITCHER", E.TEXT = "UE-TEXT", E.TEXTAREA = "UE-TEXTAREA", E.CHECK_ITEM = "UE-CHECK-ITEM", E.RADIO_ITEM = "UE-RADIO-ITEM", E.SELECT_ITEM = "UE-SELECT-ITEM", E.ICON = "UE-ICON", E.MERGETAGS = "UE-MERGETAGS", E.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", E.NESTED_CONTROL = "UE-NESTED-CONTROL";
|
|
9
|
-
}(C || (T.UIElementType = C = {})), T;
|
|
9
|
+
})(C || (T.UIElementType = C = {})), T;
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
12
|
S as __require
|
|
@@ -5,7 +5,7 @@ var i;
|
|
|
5
5
|
function d() {
|
|
6
6
|
if (i) return n;
|
|
7
7
|
i = 1;
|
|
8
|
-
var a = n && n.__extends || /* @__PURE__ */ function() {
|
|
8
|
+
var a = n && n.__extends || /* @__PURE__ */ (function() {
|
|
9
9
|
var t = function(o, r) {
|
|
10
10
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, u) {
|
|
11
11
|
e.__proto__ = u;
|
|
@@ -22,11 +22,11 @@ function d() {
|
|
|
22
22
|
}
|
|
23
23
|
o.prototype = r === null ? Object.create(r) : (e.prototype = r.prototype, new e());
|
|
24
24
|
};
|
|
25
|
-
}();
|
|
25
|
+
})();
|
|
26
26
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.BackgroundColorBuiltInControl = void 0;
|
|
27
27
|
var c = C(), _ = p(), s = (
|
|
28
28
|
/** @class */
|
|
29
|
-
function(t) {
|
|
29
|
+
(function(t) {
|
|
30
30
|
a(o, t);
|
|
31
31
|
function o() {
|
|
32
32
|
return t !== null && t.apply(this, arguments) || this;
|
|
@@ -34,7 +34,7 @@ function d() {
|
|
|
34
34
|
return o.prototype.getParentControlId = function() {
|
|
35
35
|
return _.BuiltInControlTypes.GENERAL.BACKGROUND_COLOR;
|
|
36
36
|
}, o;
|
|
37
|
-
}(c.BuiltInControl)
|
|
37
|
+
})(c.BuiltInControl)
|
|
38
38
|
);
|
|
39
39
|
return n.BackgroundColorBuiltInControl = s, n;
|
|
40
40
|
}
|
|
@@ -5,7 +5,7 @@ var l;
|
|
|
5
5
|
function d() {
|
|
6
6
|
if (l) return n;
|
|
7
7
|
l = 1;
|
|
8
|
-
var a = n && n.__extends || /* @__PURE__ */ function() {
|
|
8
|
+
var a = n && n.__extends || /* @__PURE__ */ (function() {
|
|
9
9
|
var o = function(t, r) {
|
|
10
10
|
return o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, u) {
|
|
11
11
|
e.__proto__ = u;
|
|
@@ -22,11 +22,11 @@ function d() {
|
|
|
22
22
|
}
|
|
23
23
|
t.prototype = r === null ? Object.create(r) : (e.prototype = r.prototype, new e());
|
|
24
24
|
};
|
|
25
|
-
}();
|
|
25
|
+
})();
|
|
26
26
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.BackgroundImageBuiltInControl = void 0;
|
|
27
27
|
var c = f(), p = _(), s = (
|
|
28
28
|
/** @class */
|
|
29
|
-
function(o) {
|
|
29
|
+
(function(o) {
|
|
30
30
|
a(t, o);
|
|
31
31
|
function t() {
|
|
32
32
|
return o !== null && o.apply(this, arguments) || this;
|
|
@@ -37,7 +37,7 @@ function d() {
|
|
|
37
37
|
return { targetNodes: [this.api.getDocumentRootHtmlNode().querySelector(".es-wrapper-color>table")] };
|
|
38
38
|
}, t.prototype.getLabels = function() {
|
|
39
39
|
}, t;
|
|
40
|
-
}(c.BuiltInControl)
|
|
40
|
+
})(c.BuiltInControl)
|
|
41
41
|
);
|
|
42
42
|
return n.BackgroundImageBuiltInControl = s, n;
|
|
43
43
|
}
|
|
@@ -5,7 +5,7 @@ var u;
|
|
|
5
5
|
function C() {
|
|
6
6
|
if (u) return r;
|
|
7
7
|
u = 1;
|
|
8
|
-
var a = r && r.__extends || /* @__PURE__ */ function() {
|
|
8
|
+
var a = r && r.__extends || /* @__PURE__ */ (function() {
|
|
9
9
|
var o = function(t, n) {
|
|
10
10
|
return o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
|
11
11
|
e.__proto__ = i;
|
|
@@ -22,11 +22,11 @@ function C() {
|
|
|
22
22
|
}
|
|
23
23
|
t.prototype = n === null ? Object.create(n) : (e.prototype = n.prototype, new e());
|
|
24
24
|
};
|
|
25
|
-
}();
|
|
25
|
+
})();
|
|
26
26
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.BlockPaddingsBuiltInControl = void 0;
|
|
27
27
|
var s = _(), c = f(), p = (
|
|
28
28
|
/** @class */
|
|
29
|
-
function(o) {
|
|
29
|
+
(function(o) {
|
|
30
30
|
a(t, o);
|
|
31
31
|
function t() {
|
|
32
32
|
return o !== null && o.apply(this, arguments) || this;
|
|
@@ -35,7 +35,7 @@ function C() {
|
|
|
35
35
|
return c.BuiltInControlTypes.GENERAL.BLOCK_PADDINGS;
|
|
36
36
|
}, t.prototype.getLabels = function() {
|
|
37
37
|
}, t;
|
|
38
|
-
}(s.BuiltInControl)
|
|
38
|
+
})(s.BuiltInControl)
|
|
39
39
|
);
|
|
40
40
|
return r.BlockPaddingsBuiltInControl = p, r;
|
|
41
41
|
}
|
|
@@ -5,7 +5,7 @@ function u() {
|
|
|
5
5
|
o = 1, Object.defineProperty(n, "__esModule", { value: !0 }), n.BuiltInControl = void 0;
|
|
6
6
|
var e = (
|
|
7
7
|
/** @class */
|
|
8
|
-
function() {
|
|
8
|
+
(function() {
|
|
9
9
|
function t() {
|
|
10
10
|
}
|
|
11
11
|
return t.prototype.getTargetNodes = function(r) {
|
|
@@ -13,7 +13,7 @@ function u() {
|
|
|
13
13
|
}, t.prototype.getModificationDescription = function() {
|
|
14
14
|
}, t.prototype.getAdditionalModifications = function(r) {
|
|
15
15
|
}, t;
|
|
16
|
-
}()
|
|
16
|
+
})()
|
|
17
17
|
);
|
|
18
18
|
return n.BuiltInControl = e, n;
|
|
19
19
|
}
|