@useinsider/guido 1.0.0-beta.cd820fb → 1.0.0-beta.cf41937
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 +26 -2
- package/dist/@types/generic.d.ts +18 -0
- package/dist/components/Guido.vue.js +4 -4
- package/dist/components/Guido.vue2.js +8 -10
- package/dist/components/organisms/header/MiddleSlot.vue.js +3 -3
- package/dist/components/organisms/header/MiddleSlot.vue2.js +12 -16
- package/dist/components/organisms/header/RightSlot.vue.js +9 -8
- package/dist/components/organisms/header/RightSlot.vue2.js +26 -23
- package/dist/components/organisms/header/ViewOptions.vue.js +3 -3
- package/dist/components/organisms/header/ViewOptions.vue2.js +30 -12
- 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/composables/useHtmlCompiler.js +9 -8
- package/dist/composables/useTranslations.js +3 -2
- package/dist/enums/defaults.js +5 -0
- package/dist/guido.css +1 -1
- 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/_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/stores/editor.d.ts +1 -0
- package/dist/stores/editor.js +3 -2
- package/dist/stores/preview.d.ts +2 -20
- package/dist/stores/preview.js +11 -7
- package/dist/utils/tooltipUtils.d.ts +2 -0
- package/dist/utils/tooltipUtils.js +11 -0
- package/package.json +1 -1
package/dist/stores/preview.d.ts
CHANGED
|
@@ -10,16 +10,7 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
10
10
|
isAMPErrorModalVisible: boolean;
|
|
11
11
|
isPreviewModeOpen: boolean;
|
|
12
12
|
} & import("pinia").PiniaCustomStateProperties<PreviewState>) => boolean;
|
|
13
|
-
previewHtml
|
|
14
|
-
emailFormat: EmailFormat;
|
|
15
|
-
ampHtml: string;
|
|
16
|
-
ampErrors: string[];
|
|
17
|
-
templateHtml: string;
|
|
18
|
-
isLoading: boolean;
|
|
19
|
-
isLoaded: boolean;
|
|
20
|
-
isAMPErrorModalVisible: boolean;
|
|
21
|
-
isPreviewModeOpen: boolean;
|
|
22
|
-
} & import("pinia").PiniaCustomStateProperties<PreviewState>) => string;
|
|
13
|
+
previewHtml(): string;
|
|
23
14
|
hasAMP: (state: {
|
|
24
15
|
emailFormat: EmailFormat;
|
|
25
16
|
ampHtml: string;
|
|
@@ -40,16 +31,7 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
40
31
|
isAMPErrorModalVisible: boolean;
|
|
41
32
|
isPreviewModeOpen: boolean;
|
|
42
33
|
} & import("pinia").PiniaCustomStateProperties<PreviewState>) => boolean;
|
|
43
|
-
showAMPErrorButton
|
|
44
|
-
emailFormat: EmailFormat;
|
|
45
|
-
ampHtml: string;
|
|
46
|
-
ampErrors: string[];
|
|
47
|
-
templateHtml: string;
|
|
48
|
-
isLoading: boolean;
|
|
49
|
-
isLoaded: boolean;
|
|
50
|
-
isAMPErrorModalVisible: boolean;
|
|
51
|
-
isPreviewModeOpen: boolean;
|
|
52
|
-
} & import("pinia").PiniaCustomStateProperties<PreviewState>) => boolean;
|
|
34
|
+
showAMPErrorButton(): boolean;
|
|
53
35
|
isAMPResponsive(): boolean;
|
|
54
36
|
}, {
|
|
55
37
|
updateAMPData(ampData: {
|
package/dist/stores/preview.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineStore as
|
|
2
|
-
const
|
|
1
|
+
import { defineStore as t } from "pinia";
|
|
2
|
+
const s = () => ({
|
|
3
3
|
emailFormat: "html",
|
|
4
4
|
ampHtml: "",
|
|
5
5
|
ampErrors: [],
|
|
@@ -8,17 +8,21 @@ const t = () => ({
|
|
|
8
8
|
isLoaded: !1,
|
|
9
9
|
isAMPErrorModalVisible: !1,
|
|
10
10
|
isPreviewModeOpen: !1
|
|
11
|
-
}),
|
|
12
|
-
state: () =>
|
|
11
|
+
}), o = t("preview", {
|
|
12
|
+
state: () => s(),
|
|
13
13
|
getters: {
|
|
14
14
|
isAMPModeEnabled: (e) => e.emailFormat === "AMP",
|
|
15
|
-
previewHtml
|
|
15
|
+
previewHtml() {
|
|
16
|
+
return this.isAMPModeEnabled ? this.ampHtml : this.templateHtml;
|
|
17
|
+
},
|
|
16
18
|
hasAMP: (e) => {
|
|
17
19
|
var r;
|
|
18
20
|
return !!((r = e.ampHtml) != null && r.trim());
|
|
19
21
|
},
|
|
20
22
|
hasAMPErrors: (e) => e.ampErrors.length > 0,
|
|
21
|
-
showAMPErrorButton
|
|
23
|
+
showAMPErrorButton() {
|
|
24
|
+
return this.isAMPModeEnabled && this.hasAMPErrors;
|
|
25
|
+
},
|
|
22
26
|
isAMPResponsive() {
|
|
23
27
|
return this.isAMPModeEnabled && this.ampHtml.includes("@media") && this.ampHtml.includes(".adapt-img");
|
|
24
28
|
}
|
|
@@ -45,5 +49,5 @@ const t = () => ({
|
|
|
45
49
|
}
|
|
46
50
|
});
|
|
47
51
|
export {
|
|
48
|
-
|
|
52
|
+
o as usePreviewStore
|
|
49
53
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const e = (s, t = {}) => ({
|
|
2
|
+
id: s,
|
|
3
|
+
dynamicPosition: t.dynamicPosition ?? !1,
|
|
4
|
+
staticPosition: t.staticPosition ?? "bottom center",
|
|
5
|
+
iconStatus: t.iconStatus ?? !1,
|
|
6
|
+
offset: t.offset,
|
|
7
|
+
preventXss: t.preventXss
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
e as getTooltipOptions
|
|
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.cf41937",
|
|
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",
|