@useinsider/guido 1.0.0-beta.e8ee5f5 → 1.0.0-beta.eb2a99e
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 -33
- package/dist/components/Guido.vue.d.ts +3 -6
- package/dist/components/Guido.vue.js +8 -8
- package/dist/components/Guido.vue2.js +38 -60
- 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 +8 -9
- package/dist/components/organisms/header/RightSlot.vue2.js +25 -27
- 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/composables/useActionsApi.d.ts +1 -4
- package/dist/composables/useActionsApi.js +33 -74
- package/dist/composables/useExport.js +9 -10
- package/dist/composables/useGuidoActions.d.ts +2 -2
- package/dist/composables/useHtmlCompiler.js +8 -9
- package/dist/composables/useHttp.js +21 -23
- package/dist/composables/usePartner.d.ts +1 -1
- package/dist/composables/usePartner.js +14 -9
- package/dist/composables/useStripo.js +15 -25
- package/dist/composables/useToaster.d.ts +16 -1
- package/dist/composables/useToaster.js +30 -24
- package/dist/composables/useTranslations.js +2 -3
- package/dist/composables/useVersionHistoryApi.js +10 -11
- package/dist/enums/defaults.d.ts +1 -4
- package/dist/enums/defaults.js +6 -21
- package/dist/extensions/DynamicContent/dynamic-content.js +15 -13
- 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/stores/editor.d.ts +0 -3
- package/dist/stores/editor.js +3 -6
- package/package.json +3 -3
- package/dist/@types/save-as-template.d.ts +0 -29
- package/dist/components/organisms/base/Toaster.vue.d.ts +0 -2
- package/dist/components/organisms/base/Toaster.vue.js +0 -17
- package/dist/components/organisms/base/Toaster.vue2.js +0 -15
- 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/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +0 -2
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.js +0 -20
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +0 -63
- package/dist/components/wrappers/WpDrawer.vue.d.ts +0 -63
- package/dist/components/wrappers/WpDrawer.vue.js +0 -25
- package/dist/components/wrappers/WpDrawer.vue2.js +0 -23
- 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/composables/useValidation.d.ts +0 -56
- package/dist/composables/useValidation.js +0 -19
- package/dist/composables/validators/saveAsTemplate.d.ts +0 -31
- package/dist/composables/validators/saveAsTemplate.js +0 -24
- package/dist/enums/preview.d.ts +0 -13
- package/dist/enums/preview.js +0 -23
- package/dist/enums/toaster.d.ts +0 -5
- package/dist/enums/toaster.js +0 -4
- package/dist/mock/api/template-library.d.ts +0 -2
- 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/valibot/dist/index.js +0 -190
- 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 -87
- package/dist/static/assets/inbox-mockup.svg.js +0 -4
- package/dist/static/assets/phone-mockup.svg.js +0 -4
- package/dist/stores/dynamic-content.d.ts +0 -27
- package/dist/stores/dynamic-content.js +0 -23
- package/dist/stores/preview.d.ts +0 -46
- package/dist/stores/preview.js +0 -53
- package/dist/stores/save-as-template.d.ts +0 -73
- package/dist/stores/save-as-template.js +0 -48
- package/dist/stores/toaster.d.ts +0 -18
- package/dist/stores/toaster.js +0 -27
- package/dist/utils/arrayUtil.d.ts +0 -1
- package/dist/utils/arrayUtil.js +0 -10
- package/dist/utils/base64.d.ts +0 -1
- package/dist/utils/base64.js +0 -7
- package/dist/utils/genericUtil.d.ts +0 -3
- package/dist/utils/genericUtil.js +0 -11
- package/dist/utils/templatePreparation.d.ts +0 -4
- package/dist/utils/templatePreparation.js +0 -33
- package/dist/utils/tooltipUtils.d.ts +0 -2
- package/dist/utils/tooltipUtils.js +0 -11
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js
CHANGED
|
@@ -6,7 +6,7 @@ var u;
|
|
|
6
6
|
function k() {
|
|
7
7
|
if (u) return n;
|
|
8
8
|
u = 1;
|
|
9
|
-
var p = n && n.__extends || /* @__PURE__ */
|
|
9
|
+
var p = n && n.__extends || /* @__PURE__ */ function() {
|
|
10
10
|
var t = function(o, r) {
|
|
11
11
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
|
12
12
|
e.__proto__ = i;
|
|
@@ -23,11 +23,11 @@ function k() {
|
|
|
23
23
|
}
|
|
24
24
|
o.prototype = r === null ? Object.create(r) : (e.prototype = r.prototype, new e());
|
|
25
25
|
};
|
|
26
|
-
}
|
|
26
|
+
}();
|
|
27
27
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.LinkColorBuiltInControl = void 0;
|
|
28
28
|
var _ = f(), a = C(), c = y(), s = (
|
|
29
29
|
/** @class */
|
|
30
|
-
|
|
30
|
+
function(t) {
|
|
31
31
|
p(o, t);
|
|
32
32
|
function o() {
|
|
33
33
|
return t !== null && t.apply(this, arguments) || this;
|
|
@@ -36,7 +36,7 @@ function k() {
|
|
|
36
36
|
return a.BuiltInControlTypes[c.BlockType.BLOCK_TEXT].LINKS_COLOR;
|
|
37
37
|
}, o.prototype.getTargetNodes = function(r) {
|
|
38
38
|
}, o;
|
|
39
|
-
}
|
|
39
|
+
}(_.BuiltInControl)
|
|
40
40
|
);
|
|
41
41
|
return n.LinkColorBuiltInControl = s, n;
|
|
42
42
|
}
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js
CHANGED
|
@@ -5,11 +5,11 @@ function s() {
|
|
|
5
5
|
t = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.SettingsPanelRegistry = void 0;
|
|
6
6
|
var r = (
|
|
7
7
|
/** @class */
|
|
8
|
-
/* @__PURE__ */
|
|
8
|
+
/* @__PURE__ */ function() {
|
|
9
9
|
function i() {
|
|
10
10
|
}
|
|
11
11
|
return i;
|
|
12
|
-
}
|
|
12
|
+
}()
|
|
13
13
|
);
|
|
14
14
|
return e.SettingsPanelRegistry = r, e;
|
|
15
15
|
}
|
|
@@ -5,7 +5,7 @@ function l() {
|
|
|
5
5
|
r = 1, Object.defineProperty(s, "__esModule", { value: !0 }), s.SettingsPanelTab = void 0;
|
|
6
6
|
var i = (
|
|
7
7
|
/** @class */
|
|
8
|
-
|
|
8
|
+
function() {
|
|
9
9
|
function n(t, e) {
|
|
10
10
|
this.tabId = t, this.controlsIds = e;
|
|
11
11
|
}
|
|
@@ -23,7 +23,7 @@ function l() {
|
|
|
23
23
|
var e = this.controlsIds.indexOf(t);
|
|
24
24
|
e !== -1 && this.controlsIds.splice(e, 1);
|
|
25
25
|
}, n;
|
|
26
|
-
}
|
|
26
|
+
}()
|
|
27
27
|
);
|
|
28
28
|
return s.SettingsPanelTab = i, s;
|
|
29
29
|
}
|
|
@@ -6,7 +6,7 @@ var l;
|
|
|
6
6
|
function S() {
|
|
7
7
|
if (l) return e;
|
|
8
8
|
l = 1;
|
|
9
|
-
var c = e && e.__extends || /* @__PURE__ */
|
|
9
|
+
var c = e && e.__extends || /* @__PURE__ */ function() {
|
|
10
10
|
var o = function(r, t) {
|
|
11
11
|
return o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, u) {
|
|
12
12
|
n.__proto__ = u;
|
|
@@ -23,11 +23,11 @@ function S() {
|
|
|
23
23
|
}
|
|
24
24
|
r.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
25
25
|
};
|
|
26
|
-
}
|
|
26
|
+
}();
|
|
27
27
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.StructureBorderBuiltInControl = void 0;
|
|
28
28
|
var p = s(), a = B(), _ = y(), f = (
|
|
29
29
|
/** @class */
|
|
30
|
-
|
|
30
|
+
function(o) {
|
|
31
31
|
c(r, o);
|
|
32
32
|
function r() {
|
|
33
33
|
return o !== null && o.apply(this, arguments) || this;
|
|
@@ -37,7 +37,7 @@ function S() {
|
|
|
37
37
|
}, r.prototype.getTargetNodes = function(t) {
|
|
38
38
|
}, r.prototype.getLabels = function() {
|
|
39
39
|
}, r;
|
|
40
|
-
}
|
|
40
|
+
}(p.BuiltInControl)
|
|
41
41
|
);
|
|
42
42
|
return e.StructureBorderBuiltInControl = f, e;
|
|
43
43
|
}
|
|
@@ -5,7 +5,7 @@ var l;
|
|
|
5
5
|
function I() {
|
|
6
6
|
if (l) return o;
|
|
7
7
|
l = 1;
|
|
8
|
-
var a = o && o.__extends || /* @__PURE__ */
|
|
8
|
+
var a = o && o.__extends || /* @__PURE__ */ function() {
|
|
9
9
|
var n = function(t, r) {
|
|
10
10
|
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, u) {
|
|
11
11
|
e.__proto__ = u;
|
|
@@ -22,11 +22,11 @@ function I() {
|
|
|
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(o, "__esModule", { value: !0 }), o.StructurePaddingsBuiltInControl = void 0;
|
|
27
27
|
var s = _(), c = f(), p = (
|
|
28
28
|
/** @class */
|
|
29
|
-
|
|
29
|
+
function(n) {
|
|
30
30
|
a(t, n);
|
|
31
31
|
function t() {
|
|
32
32
|
return n !== null && n.apply(this, arguments) || this;
|
|
@@ -35,7 +35,7 @@ function I() {
|
|
|
35
35
|
return c.BuiltInControlTypes.GENERAL.STRUCTURE_PADDINGS;
|
|
36
36
|
}, t.prototype.getLabels = function() {
|
|
37
37
|
}, t;
|
|
38
|
-
}
|
|
38
|
+
}(s.BuiltInControl)
|
|
39
39
|
);
|
|
40
40
|
return o.StructurePaddingsBuiltInControl = p, o;
|
|
41
41
|
}
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js
CHANGED
|
@@ -5,7 +5,7 @@ var u;
|
|
|
5
5
|
function x() {
|
|
6
6
|
if (u) return n;
|
|
7
7
|
u = 1;
|
|
8
|
-
var a = n && n.__extends || /* @__PURE__ */
|
|
8
|
+
var a = n && n.__extends || /* @__PURE__ */ function() {
|
|
9
9
|
var r = function(t, o) {
|
|
10
10
|
return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, l) {
|
|
11
11
|
e.__proto__ = l;
|
|
@@ -22,11 +22,11 @@ function x() {
|
|
|
22
22
|
}
|
|
23
23
|
t.prototype = o === null ? Object.create(o) : (e.prototype = o.prototype, new e());
|
|
24
24
|
};
|
|
25
|
-
}
|
|
25
|
+
}();
|
|
26
26
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.TextColorBuiltInControl = void 0;
|
|
27
27
|
var _ = p(), s = C(), c = (
|
|
28
28
|
/** @class */
|
|
29
|
-
|
|
29
|
+
function(r) {
|
|
30
30
|
a(t, r);
|
|
31
31
|
function t() {
|
|
32
32
|
return r !== null && r.apply(this, arguments) || this;
|
|
@@ -34,7 +34,7 @@ function x() {
|
|
|
34
34
|
return t.prototype.getParentControlId = function() {
|
|
35
35
|
return s.BuiltInControlTypes.GENERAL.TEXT_COLOR;
|
|
36
36
|
}, t;
|
|
37
|
-
}
|
|
37
|
+
}(_.BuiltInControl)
|
|
38
38
|
);
|
|
39
39
|
return n.TextColorBuiltInControl = c, n;
|
|
40
40
|
}
|
|
@@ -5,7 +5,7 @@ var l;
|
|
|
5
5
|
function x() {
|
|
6
6
|
if (l) return o;
|
|
7
7
|
l = 1;
|
|
8
|
-
var a = o && o.__extends || /* @__PURE__ */
|
|
8
|
+
var a = o && o.__extends || /* @__PURE__ */ function() {
|
|
9
9
|
var r = function(t, n) {
|
|
10
10
|
return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
|
11
11
|
e.__proto__ = i;
|
|
@@ -22,11 +22,11 @@ function x() {
|
|
|
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(o, "__esModule", { value: !0 }), o.TextLineSpacingBuiltInControl = void 0;
|
|
27
27
|
var c = s(), p = f(), _ = (
|
|
28
28
|
/** @class */
|
|
29
|
-
|
|
29
|
+
function(r) {
|
|
30
30
|
a(t, r);
|
|
31
31
|
function t() {
|
|
32
32
|
return r !== null && r.apply(this, arguments) || this;
|
|
@@ -34,7 +34,7 @@ function x() {
|
|
|
34
34
|
return t.prototype.getParentControlId = function() {
|
|
35
35
|
return p.BuiltInControlTypes.GENERAL.TEXT_LINE_SPACING;
|
|
36
36
|
}, t;
|
|
37
|
-
}
|
|
37
|
+
}(c.BuiltInControl)
|
|
38
38
|
);
|
|
39
39
|
return o.TextLineSpacingBuiltInControl = _, o;
|
|
40
40
|
}
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js
CHANGED
|
@@ -5,7 +5,7 @@ var l;
|
|
|
5
5
|
function T() {
|
|
6
6
|
if (l) return o;
|
|
7
7
|
l = 1;
|
|
8
|
-
var c = o && o.__extends || /* @__PURE__ */
|
|
8
|
+
var c = o && o.__extends || /* @__PURE__ */ function() {
|
|
9
9
|
var r = function(t, e) {
|
|
10
10
|
return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
11
11
|
n.__proto__ = i;
|
|
@@ -22,11 +22,11 @@ function T() {
|
|
|
22
22
|
}
|
|
23
23
|
t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
|
|
24
24
|
};
|
|
25
|
-
}
|
|
25
|
+
}();
|
|
26
26
|
Object.defineProperty(o, "__esModule", { value: !0 }), o.TextSizeBuiltInControl = void 0;
|
|
27
27
|
var p = s(), a = _(), f = (
|
|
28
28
|
/** @class */
|
|
29
|
-
|
|
29
|
+
function(r) {
|
|
30
30
|
c(t, r);
|
|
31
31
|
function t() {
|
|
32
32
|
return r !== null && r.apply(this, arguments) || this;
|
|
@@ -36,7 +36,7 @@ function T() {
|
|
|
36
36
|
}, t.prototype.getTargetNodes = function(e) {
|
|
37
37
|
}, t.prototype.getMobileClassSpecificSelector = function() {
|
|
38
38
|
}, t;
|
|
39
|
-
}
|
|
39
|
+
}(p.BuiltInControl)
|
|
40
40
|
);
|
|
41
41
|
return o.TextSizeBuiltInControl = f, o;
|
|
42
42
|
}
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js
CHANGED
|
@@ -5,7 +5,7 @@ var u;
|
|
|
5
5
|
function T() {
|
|
6
6
|
if (u) return n;
|
|
7
7
|
u = 1;
|
|
8
|
-
var a = n && n.__extends || /* @__PURE__ */
|
|
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, l) {
|
|
11
11
|
e.__proto__ = l;
|
|
@@ -22,11 +22,11 @@ function T() {
|
|
|
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.TextStyleBuiltInControl = void 0;
|
|
27
27
|
var _ = p(), s = f(), c = (
|
|
28
28
|
/** @class */
|
|
29
|
-
|
|
29
|
+
function(o) {
|
|
30
30
|
a(t, o);
|
|
31
31
|
function t() {
|
|
32
32
|
return o !== null && o.apply(this, arguments) || this;
|
|
@@ -34,7 +34,7 @@ function T() {
|
|
|
34
34
|
return t.prototype.getParentControlId = function() {
|
|
35
35
|
return s.BuiltInControlTypes.GENERAL.TEXT_STYLE;
|
|
36
36
|
}, t;
|
|
37
|
-
}
|
|
37
|
+
}(_.BuiltInControl)
|
|
38
38
|
);
|
|
39
39
|
return n.TextStyleBuiltInControl = c, n;
|
|
40
40
|
}
|
|
@@ -43,7 +43,7 @@ import { __require as Ee } from "./blocks/BlocksPanel.js";
|
|
|
43
43
|
import { __require as Fe } from "./constants/PanelPosition.js";
|
|
44
44
|
var n;
|
|
45
45
|
function Tr() {
|
|
46
|
-
return n ? t : (n = 1,
|
|
46
|
+
return n ? t : (n = 1, function(e) {
|
|
47
47
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ButtonTextBuiltInControl = e.LinkColorBuiltInControl = e.BackgroundImageBuiltInControl = e.BackgroundColorBuiltInControl = e.FontFamilyBuiltInControl = e.BuiltInControl = e.ADD_CUSTOM_FONT_OPTION = e.BlockAttr = e.AiAssistantValueType = e.BlockCompositionType = e.AmpFormControls = e.GeneralControls = e.GeneralStylesControls = e.MessageSettingsControls = e.ContainerControls = e.StructureControls = e.StripeControls = e.CarouselControls = e.AccordionControls = e.MenuControls = e.SocialControls = e.CustomTextControls = e.CustomImageControls = e.CustomLinkControls = e.HTMLControls = e.ImageControls = e.SpacerControls = e.TimerControls = e.VideoControls = e.TextControls = e.ButtonControls = e.BannerChildControls = e.BannerControls = e.BlockType = e.SettingsTab = e.BuiltInControlTypes = e.ContextActionType = e.UEAttr = e.UIElementType = e.ModificationDescription = e.Extension = e.ExtensionBuilder = e.SettingsPanelTab = e.Block = e.BlockRenderer = e.ContextAction = e.SettingsPanelRegistry = e.Control = e.UIElementTagRegistry = e.UIElement = void 0, e.TextLineSpacingBuiltInControl = e.ButtonBorderBuiltInControl = e.PanelPosition = e.BlocksPanel = e.StructureBorderBuiltInControl = e.TextStyleBuiltInControl = e.TextSizeBuiltInControl = e.PreviewDeviceMode = e.EditorStatePropertyType = e.ButtonColorBuiltInControl = e.ButtonFontColorBuiltInControl = e.TextColorBuiltInControl = e.ButtonInternalIndentsBuiltInControl = e.StructurePaddingsBuiltInControl = e.BlockPaddingsBuiltInControl = void 0;
|
|
48
48
|
var o = J();
|
|
49
49
|
Object.defineProperty(e, "UIElement", { enumerable: !0, get: function() {
|
|
@@ -259,7 +259,7 @@ function Tr() {
|
|
|
259
259
|
Object.defineProperty(e, "PanelPosition", { enumerable: !0, get: function() {
|
|
260
260
|
return H.PanelPosition;
|
|
261
261
|
} });
|
|
262
|
-
}
|
|
262
|
+
}(t), t);
|
|
263
263
|
}
|
|
264
264
|
export {
|
|
265
265
|
Tr as __require
|
|
@@ -5,7 +5,7 @@ function a() {
|
|
|
5
5
|
r = 1, Object.defineProperty(i, "__esModule", { value: !0 }), i.ModificationDescription = void 0;
|
|
6
6
|
var e = (
|
|
7
7
|
/** @class */
|
|
8
|
-
|
|
8
|
+
function() {
|
|
9
9
|
function t(o) {
|
|
10
10
|
this.key = o;
|
|
11
11
|
}
|
|
@@ -17,7 +17,7 @@ function a() {
|
|
|
17
17
|
params: this.params
|
|
18
18
|
};
|
|
19
19
|
}, t;
|
|
20
|
-
}
|
|
20
|
+
}()
|
|
21
21
|
);
|
|
22
22
|
return i.ModificationDescription = e, i;
|
|
23
23
|
}
|
|
@@ -5,7 +5,7 @@ function l() {
|
|
|
5
5
|
n = 1, Object.defineProperty(t, "__esModule", { value: !0 }), t.UIElement = void 0;
|
|
6
6
|
var r = (
|
|
7
7
|
/** @class */
|
|
8
|
-
|
|
8
|
+
function() {
|
|
9
9
|
function e() {
|
|
10
10
|
}
|
|
11
11
|
return e.prototype.onDestroy = function() {
|
|
@@ -13,7 +13,7 @@ function l() {
|
|
|
13
13
|
}, e.prototype.setValue = function(o) {
|
|
14
14
|
}, e.prototype.onAttributeUpdated = function(o, u) {
|
|
15
15
|
}, e;
|
|
16
|
-
}
|
|
16
|
+
}()
|
|
17
17
|
);
|
|
18
18
|
return t.UIElement = r, t;
|
|
19
19
|
}
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js
CHANGED
|
@@ -5,11 +5,11 @@ function g() {
|
|
|
5
5
|
r = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.UIElementTagRegistry = void 0;
|
|
6
6
|
var t = (
|
|
7
7
|
/** @class */
|
|
8
|
-
/* @__PURE__ */
|
|
8
|
+
/* @__PURE__ */ function() {
|
|
9
9
|
function i() {
|
|
10
10
|
}
|
|
11
11
|
return i;
|
|
12
|
-
}
|
|
12
|
+
}()
|
|
13
13
|
);
|
|
14
14
|
return e.UIElementTagRegistry = t, e;
|
|
15
15
|
}
|
package/dist/stores/editor.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
2
2
|
isCodeEditorOpen: boolean;
|
|
3
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
4
3
|
isVersionHistoryOpen: boolean;
|
|
5
|
-
isPreviewModeOpen: boolean;
|
|
6
4
|
editorVisualMode: string;
|
|
7
|
-
hasChanges: boolean;
|
|
8
5
|
}, {}, {}>;
|
package/dist/stores/editor.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { defineStore as e } from "pinia";
|
|
2
|
-
const
|
|
2
|
+
const t = e("editor", {
|
|
3
3
|
state: () => ({
|
|
4
4
|
isCodeEditorOpen: !1,
|
|
5
|
-
isSaveAsTemplateDrawerOpen: !1,
|
|
6
5
|
isVersionHistoryOpen: !1,
|
|
7
|
-
|
|
8
|
-
editorVisualMode: "desktop",
|
|
9
|
-
hasChanges: !1
|
|
6
|
+
editorVisualMode: "desktop"
|
|
10
7
|
})
|
|
11
8
|
});
|
|
12
9
|
export {
|
|
13
|
-
|
|
10
|
+
t as useEditorStore
|
|
14
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.eb2a99e",
|
|
4
4
|
"description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
|
|
5
5
|
"main": "./dist/guido.umd.cjs",
|
|
6
6
|
"module": "./dist/library.js",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@stripoinc/ui-editor-extensions": "^1.0.6",
|
|
33
33
|
"@useinsider/design-system-vue": "0.14.8",
|
|
34
|
-
"@
|
|
34
|
+
"@vuelidate/core": "2.0.3",
|
|
35
|
+
"@vuelidate/validators": "2.0.4",
|
|
35
36
|
"lodash-es": "4.17.21",
|
|
36
37
|
"pinia": "2.3.1",
|
|
37
|
-
"valibot": "1.1.0",
|
|
38
38
|
"vite": "6.3.5",
|
|
39
39
|
"vue": "2.7.14"
|
|
40
40
|
},
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface MappedCategory {
|
|
2
|
-
value: string;
|
|
3
|
-
text: string;
|
|
4
|
-
}
|
|
5
|
-
export interface Category {
|
|
6
|
-
id: number;
|
|
7
|
-
name: string;
|
|
8
|
-
partnerId: number;
|
|
9
|
-
isStripo: boolean;
|
|
10
|
-
templatesCount: number;
|
|
11
|
-
}
|
|
12
|
-
export interface RecommendationCampaignUrls {
|
|
13
|
-
[key: string]: string;
|
|
14
|
-
}
|
|
15
|
-
export interface CreateTemplateRequest {
|
|
16
|
-
name: string;
|
|
17
|
-
categories: number[];
|
|
18
|
-
productId: number;
|
|
19
|
-
editorType: number;
|
|
20
|
-
messageType?: number;
|
|
21
|
-
content: string;
|
|
22
|
-
css?: string;
|
|
23
|
-
stripoConfig: string;
|
|
24
|
-
recommendationConfigs?: string;
|
|
25
|
-
recommendationCampaignUrls?: string;
|
|
26
|
-
unsubscriptionPreferencePages: number[];
|
|
27
|
-
unsubscriptionPreferencePageStatus: boolean;
|
|
28
|
-
isGuido: boolean;
|
|
29
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import e from "./Toaster.vue2.js";
|
|
2
|
-
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var r = function() {
|
|
4
|
-
var o = this, n = o._self._c, t = o._self._setupProxy;
|
|
5
|
-
return n(t.InToasts, { attrs: { "action-buttons-config": t.actionButtonsConfig, status: t.store.status, text: t.store.text, type: t.store.type }, on: { actionButtonClick0: t.handleActionClick } });
|
|
6
|
-
}, a = [], _ = /* @__PURE__ */ s(
|
|
7
|
-
e,
|
|
8
|
-
r,
|
|
9
|
-
a,
|
|
10
|
-
!1,
|
|
11
|
-
null,
|
|
12
|
-
null
|
|
13
|
-
);
|
|
14
|
-
const l = _.exports;
|
|
15
|
-
export {
|
|
16
|
-
l as default
|
|
17
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { defineComponent as n, computed as e } from "vue";
|
|
2
|
-
import { useToasterStore as i } from "../../../stores/toaster.js";
|
|
3
|
-
import { InToasts as c } from "@useinsider/design-system-vue";
|
|
4
|
-
const f = /* @__PURE__ */ n({
|
|
5
|
-
__name: "Toaster",
|
|
6
|
-
setup(s) {
|
|
7
|
-
const t = i(), o = e(() => t.actionButton ? [{ text: t.actionButton.text }] : []);
|
|
8
|
-
return { __sfc: !0, store: t, actionButtonsConfig: o, handleActionClick: () => {
|
|
9
|
-
t.actionButton && t.actionButton.onClick(), t.hideToaster();
|
|
10
|
-
}, InToasts: c };
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
export {
|
|
14
|
-
f as default
|
|
15
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import i from "./PreviewContainer.vue2.js";
|
|
2
|
-
import o from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var t = function() {
|
|
4
|
-
var s = this, e = s._self._c, r = s._self._setupProxy;
|
|
5
|
-
return e("div", { staticClass: "d-f f-d-c h-1 b-c-5 bor-r-2 pb-5" }, [e("div", { staticClass: "f-g-1 d-f p-5 o-a g-4 min-h-600" }, [r.previewStore.isLoading ? [e("div", { staticClass: "d-f a-i-c j-c-c w-1 h-1 f-g-1" }, [e(r.InLoading, { attrs: { "color-class": "i-c-1", size: "32" } })], 1)] : [e(r.DesktopPreview, { staticClass: "f-g-1 min-w-0" }), e(r.MobilePreview, { staticClass: "f-0 min-w-a" })]], 2), r.previewStore.isAMPErrorModalVisible ? e(r.AmpErrorModal, { on: { close: function(l) {
|
|
6
|
-
return r.previewStore.closeErrorModal();
|
|
7
|
-
} } }) : s._e()], 1);
|
|
8
|
-
}, a = [], n = /* @__PURE__ */ o(
|
|
9
|
-
i,
|
|
10
|
-
t,
|
|
11
|
-
a,
|
|
12
|
-
!1,
|
|
13
|
-
null,
|
|
14
|
-
null
|
|
15
|
-
);
|
|
16
|
-
const d = n.exports;
|
|
17
|
-
export {
|
|
18
|
-
d as default
|
|
19
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, onMounted as t } from "vue";
|
|
2
|
-
import { usePreviewMode as i } from "../../../composables/usePreviewMode.js";
|
|
3
|
-
import { usePreviewStore as m } from "../../../stores/preview.js";
|
|
4
|
-
import { InLoading as n } from "@useinsider/design-system-vue";
|
|
5
|
-
import p from "./amp/AmpErrorModal.vue.js";
|
|
6
|
-
import f from "./desktop-preview/DesktopPreview.vue.js";
|
|
7
|
-
import s from "./mobile-preview/MobilePreview.vue.js";
|
|
8
|
-
const l = /* @__PURE__ */ r({
|
|
9
|
-
__name: "PreviewContainer",
|
|
10
|
-
setup(a) {
|
|
11
|
-
const { loadPreviewData: o } = i(), e = m();
|
|
12
|
-
return t(() => {
|
|
13
|
-
o();
|
|
14
|
-
}), { __sfc: !0, loadPreviewData: o, previewStore: e, InLoading: n, AmpErrorModal: p, DesktopPreview: f, MobilePreview: s };
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
export {
|
|
18
|
-
l as default
|
|
19
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
|
|
2
|
-
close: () => void;
|
|
3
|
-
}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
4
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import s from "./AmpErrorModal.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import a from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var n = function() {
|
|
5
|
-
var e = this, r = e._self._c, t = e._self._setupProxy;
|
|
6
|
-
return r(t.WpModal, { attrs: { id: "amp-error-modal", size: "medium", description: t.trans("email-editor.amp-validation-description"), "footer-button-options": t.footerButtonOptions, title: t.trans("email-editor.amp-validation-title") }, on: { close: function(o) {
|
|
7
|
-
return t.emit("close");
|
|
8
|
-
}, "primary-action": t.handleFixInCodeEditor } }, [r("div", { staticClass: "d-f f-d-c" }, [r("div", { staticClass: "mb-3" }, [r("div", { staticClass: "l-s-5 f-s-1 f-w-600 t-c-55 t-t-u" }, [e._v(" " + e._s(t.errorCountText) + " ")])]), r("div", { staticClass: "d-f f-d-c g-13 max-h-21-s o-y-a error-list" }, e._l(t.previewStore.ampErrors, function(o, i) {
|
|
9
|
-
return r(t.InOnPageMessage, { key: i, attrs: { icon: "filled-error-box", size: "medium", type: "alert", text: o } });
|
|
10
|
-
}), 1)])]);
|
|
11
|
-
}, l = [], d = /* @__PURE__ */ a(
|
|
12
|
-
s,
|
|
13
|
-
n,
|
|
14
|
-
l,
|
|
15
|
-
!1,
|
|
16
|
-
null,
|
|
17
|
-
"7a09985c"
|
|
18
|
-
);
|
|
19
|
-
const _ = d.exports;
|
|
20
|
-
export {
|
|
21
|
-
_ as default
|
|
22
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, ref as m, computed as c } from "vue";
|
|
2
|
-
import d from "../../../wrappers/WpModal.vue.js";
|
|
3
|
-
import { useCodeEditorApi as l } from "../../../../composables/useCodeEditorApi.js";
|
|
4
|
-
import { usePreviewMode as u } from "../../../../composables/usePreviewMode.js";
|
|
5
|
-
import { useTranslations as f } from "../../../../composables/useTranslations.js";
|
|
6
|
-
import { usePreviewStore as _ } from "../../../../stores/preview.js";
|
|
7
|
-
import { InOnPageMessage as g } from "@useinsider/design-system-vue";
|
|
8
|
-
const P = /* @__PURE__ */ p({
|
|
9
|
-
__name: "AmpErrorModal",
|
|
10
|
-
emits: ["close"],
|
|
11
|
-
setup(x, { emit: e }) {
|
|
12
|
-
const o = f(), { closePreviewMode: r } = u(), { openCodeEditor: t } = l(), n = _(), s = m({
|
|
13
|
-
cancelOrBackButton: {
|
|
14
|
-
type: "secondary",
|
|
15
|
-
labelText: o("campaign-builder.cancel"),
|
|
16
|
-
styling: "ghost"
|
|
17
|
-
},
|
|
18
|
-
primaryButton: {
|
|
19
|
-
type: "primary",
|
|
20
|
-
labelText: o("email-editor.amp-validation-fix")
|
|
21
|
-
}
|
|
22
|
-
}), i = () => {
|
|
23
|
-
e("close"), r(), t();
|
|
24
|
-
}, a = c(() => `${o("products.errors")}(${n.ampErrors.length})`);
|
|
25
|
-
return { __sfc: !0, emit: e, trans: o, closePreviewMode: r, openCodeEditor: t, previewStore: n, footerButtonOptions: s, handleFixInCodeEditor: i, errorCountText: a, WpModal: d, InOnPageMessage: g };
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
export {
|
|
29
|
-
P as default
|
|
30
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import o from "./AmpToggle.vue2.js";
|
|
2
|
-
import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var s = function() {
|
|
4
|
-
var r = this, t = r._self._c, e = r._self._setupProxy;
|
|
5
|
-
return t("div", [t("div", { staticClass: "d-f a-i-c ml-3" }, [t(e.InSegments, { attrs: { id: "guido__amp-toggle", "segment-list": e.segmentList, selected: e.previewStore.emailFormat }, on: { click: e.handleFormatChange } }), e.previewStore.showAMPErrorButton ? t(e.InButtonV2, { staticClass: "ml-2 d-f a-i-c b-c-11 b-c-h-11 t-c-4 t-c-h-4 i-c-4 bor-w-1 bor-s-s bor-c-11 bor-r-2", attrs: { id: "guido__amp-error-button", "left-icon": "line-error-box", type: "danger", "label-text-status": !1 }, on: { click: function(c) {
|
|
6
|
-
return e.previewStore.openErrorModal();
|
|
7
|
-
} } }) : r._e()], 1)]);
|
|
8
|
-
}, a = [], i = /* @__PURE__ */ n(
|
|
9
|
-
o,
|
|
10
|
-
s,
|
|
11
|
-
a,
|
|
12
|
-
!1,
|
|
13
|
-
null,
|
|
14
|
-
null
|
|
15
|
-
);
|
|
16
|
-
const d = i.exports;
|
|
17
|
-
export {
|
|
18
|
-
d as default
|
|
19
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, computed as n } from "vue";
|
|
2
|
-
import { useTranslations as r } from "../../../../composables/useTranslations.js";
|
|
3
|
-
import { usePreviewStore as i } from "../../../../stores/preview.js";
|
|
4
|
-
import { InButtonV2 as s, InSegments as l } from "@useinsider/design-system-vue";
|
|
5
|
-
const _ = /* @__PURE__ */ m({
|
|
6
|
-
__name: "AmpToggle",
|
|
7
|
-
setup(p) {
|
|
8
|
-
const t = i(), e = r(), o = n(() => [
|
|
9
|
-
{
|
|
10
|
-
text: e("dynamic-creatives.html"),
|
|
11
|
-
value: "html"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
text: e("email-editor.amp-html"),
|
|
15
|
-
value: "AMP",
|
|
16
|
-
tooltipText: t.hasAMP ? "" : e("email-editor.preview-amp-unavailable-tooltip"),
|
|
17
|
-
position: "bottom",
|
|
18
|
-
align: "center",
|
|
19
|
-
disable: !t.hasAMP
|
|
20
|
-
}
|
|
21
|
-
]);
|
|
22
|
-
return { __sfc: !0, previewStore: t, trans: e, segmentList: o, handleFormatChange: (a) => {
|
|
23
|
-
t.setEmailFormat(a);
|
|
24
|
-
}, InSegments: l, InButtonV2: s };
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
export {
|
|
28
|
-
_ as default
|
|
29
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import o from "./DesktopPreview.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import a from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var s = function() {
|
|
5
|
-
var r = this, t = r._self._c, e = r._self._setupProxy;
|
|
6
|
-
return t("div", { ref: "containerRef", staticStyle: { "min-height": "720px", height: "80vh" } }, [t(e.InContainer, { staticClass: "s-2 m-b-5 desktop-preview-container", attrs: { "full-width-content-status": "", "header-status": "", "border-radius": "bor-r-1", "container-type": "default", "footer-status": !1 }, scopedSlots: r._u([{ key: "headerLeftSlot", fn: function() {
|
|
7
|
-
return [t(e.EmailHeaderInfo)];
|
|
8
|
-
}, proxy: !0 }, { key: "headerRightSlot", fn: function() {
|
|
9
|
-
return [t(e.EmailSizeIndicator)];
|
|
10
|
-
}, proxy: !0 }]) }, [e.isContainerReady ? t("iframe", { staticClass: "email-iframe w-1 bor-w-0", style: { height: e.iframeHeight }, attrs: { sandbox: "allow-same-origin allow-popups allow-forms allow-scripts", srcdoc: e.previewStore.previewHtml } }) : r._e()])], 1);
|
|
11
|
-
}, i = [], n = /* @__PURE__ */ a(
|
|
12
|
-
o,
|
|
13
|
-
s,
|
|
14
|
-
i,
|
|
15
|
-
!1,
|
|
16
|
-
null,
|
|
17
|
-
"2dd60b0c"
|
|
18
|
-
);
|
|
19
|
-
const d = n.exports;
|
|
20
|
-
export {
|
|
21
|
-
d as default
|
|
22
|
-
};
|