@useinsider/guido 1.0.2-beta.94d67e3 → 1.0.2-beta.9fa711f
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/dist/components/Guido.vue.js +2 -2
- package/dist/components/Guido.vue2.js +25 -27
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +14 -15
- package/dist/components/organisms/header/RightSlot.vue.js +1 -1
- package/dist/components/organisms/header/RightSlot.vue2.js +21 -27
- package/dist/components/organisms/header/ViewOptions.vue.js +11 -11
- package/dist/components/organisms/header/ViewOptions.vue2.js +14 -14
- package/dist/composables/useHtmlCompiler.js +17 -9
- package/dist/composables/useHtmlValidator.d.ts +3 -0
- package/dist/composables/useHtmlValidator.js +120 -0
- package/dist/composables/usePartner.d.ts +0 -1
- package/dist/composables/usePartner.js +9 -16
- package/dist/composables/usePreviewMode.js +14 -15
- package/dist/composables/useRecommendation.d.ts +19 -0
- package/dist/composables/useRecommendation.js +27 -0
- package/dist/composables/useSave.d.ts +3 -0
- package/dist/composables/useSave.js +14 -0
- package/dist/composables/useStripo.js +35 -37
- package/dist/config/compiler/outlookCompilerRules.d.ts +2 -0
- package/dist/config/compiler/outlookCompilerRules.js +36 -0
- package/dist/config/compiler/recommendationCompilerRules.d.ts +2 -0
- package/dist/config/compiler/recommendationCompilerRules.js +83 -0
- package/dist/config/compiler/socialCompilerRules.d.ts +2 -0
- package/dist/config/compiler/socialCompilerRules.js +21 -0
- package/dist/config/compiler/unsubscribeCompilerRules.d.ts +2 -0
- package/dist/config/compiler/unsubscribeCompilerRules.js +64 -0
- package/dist/enums/defaults.d.ts +5 -2
- package/dist/enums/defaults.js +9 -37
- package/dist/enums/html-validator.d.ts +6 -0
- package/dist/enums/html-validator.js +7 -0
- package/dist/enums/recommendation.d.ts +54 -0
- package/dist/enums/recommendation.js +56 -0
- package/dist/enums/unsubscribe.d.ts +15 -0
- package/dist/enums/unsubscribe.js +17 -0
- package/dist/guido.css +1 -1
- package/dist/stores/editor.d.ts +0 -21
- package/dist/stores/editor.js +1 -2
- package/dist/stores/preview.js +6 -14
- package/dist/stores/recommendation.d.ts +10 -0
- package/dist/stores/recommendation.js +9 -0
- package/dist/stores/unsubscribe.d.ts +8 -0
- package/dist/stores/unsubscribe.js +9 -0
- package/dist/utils/templatePreparation.js +21 -14
- package/package.json +4 -2
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +0 -20
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +0 -39
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +0 -21
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +0 -85
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +0 -17
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +0 -30
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +0 -19
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +0 -27
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +0 -21
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +0 -64
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +0 -20
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +0 -39
- package/dist/composables/useStripoEventHandler.d.ts +0 -3
- package/dist/composables/useStripoEventHandler.js +0 -20
- package/dist/enums/onboarding.d.ts +0 -1
- package/dist/enums/onboarding.js +0 -8
- package/dist/services/onboardingApi.d.ts +0 -4
- package/dist/services/onboardingApi.js +0 -23
- package/dist/static/assets/onboarding-img.svg.js +0 -4
- package/dist/stores/onboarding.d.ts +0 -1527
- package/dist/stores/onboarding.js +0 -112
- /package/dist/mock/api/{user-modal-state.d.ts → validator.d.ts} +0 -0
package/dist/stores/editor.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
6
6
|
isPreviewModeOpen: boolean;
|
|
7
7
|
editorVisualMode: string;
|
|
8
8
|
hasChanges: boolean;
|
|
9
|
-
isStripoInitialized: boolean;
|
|
10
9
|
}, {
|
|
11
10
|
isUndoButtonDisabled: (state: {
|
|
12
11
|
loadingStatus: boolean;
|
|
@@ -16,7 +15,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
16
15
|
isPreviewModeOpen: boolean;
|
|
17
16
|
editorVisualMode: string;
|
|
18
17
|
hasChanges: boolean;
|
|
19
|
-
isStripoInitialized: boolean;
|
|
20
18
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
21
19
|
loadingStatus: boolean;
|
|
22
20
|
isCodeEditorOpen: boolean;
|
|
@@ -25,7 +23,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
25
23
|
isPreviewModeOpen: boolean;
|
|
26
24
|
editorVisualMode: string;
|
|
27
25
|
hasChanges: boolean;
|
|
28
|
-
isStripoInitialized: boolean;
|
|
29
26
|
}>) => boolean;
|
|
30
27
|
isRedoButtonDisabled: (state: {
|
|
31
28
|
loadingStatus: boolean;
|
|
@@ -35,7 +32,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
35
32
|
isPreviewModeOpen: boolean;
|
|
36
33
|
editorVisualMode: string;
|
|
37
34
|
hasChanges: boolean;
|
|
38
|
-
isStripoInitialized: boolean;
|
|
39
35
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
40
36
|
loadingStatus: boolean;
|
|
41
37
|
isCodeEditorOpen: boolean;
|
|
@@ -44,7 +40,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
44
40
|
isPreviewModeOpen: boolean;
|
|
45
41
|
editorVisualMode: string;
|
|
46
42
|
hasChanges: boolean;
|
|
47
|
-
isStripoInitialized: boolean;
|
|
48
43
|
}>) => boolean;
|
|
49
44
|
isCodeEditorButtonDisabled: (state: {
|
|
50
45
|
loadingStatus: boolean;
|
|
@@ -54,7 +49,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
54
49
|
isPreviewModeOpen: boolean;
|
|
55
50
|
editorVisualMode: string;
|
|
56
51
|
hasChanges: boolean;
|
|
57
|
-
isStripoInitialized: boolean;
|
|
58
52
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
59
53
|
loadingStatus: boolean;
|
|
60
54
|
isCodeEditorOpen: boolean;
|
|
@@ -63,7 +57,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
63
57
|
isPreviewModeOpen: boolean;
|
|
64
58
|
editorVisualMode: string;
|
|
65
59
|
hasChanges: boolean;
|
|
66
|
-
isStripoInitialized: boolean;
|
|
67
60
|
}>) => boolean;
|
|
68
61
|
isPreviewButtonDisabled: (state: {
|
|
69
62
|
loadingStatus: boolean;
|
|
@@ -73,7 +66,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
73
66
|
isPreviewModeOpen: boolean;
|
|
74
67
|
editorVisualMode: string;
|
|
75
68
|
hasChanges: boolean;
|
|
76
|
-
isStripoInitialized: boolean;
|
|
77
69
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
78
70
|
loadingStatus: boolean;
|
|
79
71
|
isCodeEditorOpen: boolean;
|
|
@@ -82,7 +74,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
82
74
|
isPreviewModeOpen: boolean;
|
|
83
75
|
editorVisualMode: string;
|
|
84
76
|
hasChanges: boolean;
|
|
85
|
-
isStripoInitialized: boolean;
|
|
86
77
|
}>) => boolean;
|
|
87
78
|
isViewOptionsDisabled: (state: {
|
|
88
79
|
loadingStatus: boolean;
|
|
@@ -92,7 +83,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
92
83
|
isPreviewModeOpen: boolean;
|
|
93
84
|
editorVisualMode: string;
|
|
94
85
|
hasChanges: boolean;
|
|
95
|
-
isStripoInitialized: boolean;
|
|
96
86
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
97
87
|
loadingStatus: boolean;
|
|
98
88
|
isCodeEditorOpen: boolean;
|
|
@@ -101,7 +91,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
101
91
|
isPreviewModeOpen: boolean;
|
|
102
92
|
editorVisualMode: string;
|
|
103
93
|
hasChanges: boolean;
|
|
104
|
-
isStripoInitialized: boolean;
|
|
105
94
|
}>) => boolean;
|
|
106
95
|
isVersionHistoryButtonDisabled: (state: {
|
|
107
96
|
loadingStatus: boolean;
|
|
@@ -111,7 +100,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
111
100
|
isPreviewModeOpen: boolean;
|
|
112
101
|
editorVisualMode: string;
|
|
113
102
|
hasChanges: boolean;
|
|
114
|
-
isStripoInitialized: boolean;
|
|
115
103
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
116
104
|
loadingStatus: boolean;
|
|
117
105
|
isCodeEditorOpen: boolean;
|
|
@@ -120,7 +108,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
120
108
|
isPreviewModeOpen: boolean;
|
|
121
109
|
editorVisualMode: string;
|
|
122
110
|
hasChanges: boolean;
|
|
123
|
-
isStripoInitialized: boolean;
|
|
124
111
|
}>) => boolean;
|
|
125
112
|
isExportButtonDisabled: (state: {
|
|
126
113
|
loadingStatus: boolean;
|
|
@@ -130,7 +117,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
130
117
|
isPreviewModeOpen: boolean;
|
|
131
118
|
editorVisualMode: string;
|
|
132
119
|
hasChanges: boolean;
|
|
133
|
-
isStripoInitialized: boolean;
|
|
134
120
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
135
121
|
loadingStatus: boolean;
|
|
136
122
|
isCodeEditorOpen: boolean;
|
|
@@ -139,7 +125,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
139
125
|
isPreviewModeOpen: boolean;
|
|
140
126
|
editorVisualMode: string;
|
|
141
127
|
hasChanges: boolean;
|
|
142
|
-
isStripoInitialized: boolean;
|
|
143
128
|
}>) => boolean;
|
|
144
129
|
isSaveAsButtonDisabled: (state: {
|
|
145
130
|
loadingStatus: boolean;
|
|
@@ -149,7 +134,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
149
134
|
isPreviewModeOpen: boolean;
|
|
150
135
|
editorVisualMode: string;
|
|
151
136
|
hasChanges: boolean;
|
|
152
|
-
isStripoInitialized: boolean;
|
|
153
137
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
154
138
|
loadingStatus: boolean;
|
|
155
139
|
isCodeEditorOpen: boolean;
|
|
@@ -158,7 +142,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
158
142
|
isPreviewModeOpen: boolean;
|
|
159
143
|
editorVisualMode: string;
|
|
160
144
|
hasChanges: boolean;
|
|
161
|
-
isStripoInitialized: boolean;
|
|
162
145
|
}>) => boolean;
|
|
163
146
|
isTestButtonDisabled: (state: {
|
|
164
147
|
loadingStatus: boolean;
|
|
@@ -168,7 +151,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
168
151
|
isPreviewModeOpen: boolean;
|
|
169
152
|
editorVisualMode: string;
|
|
170
153
|
hasChanges: boolean;
|
|
171
|
-
isStripoInitialized: boolean;
|
|
172
154
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
173
155
|
loadingStatus: boolean;
|
|
174
156
|
isCodeEditorOpen: boolean;
|
|
@@ -177,7 +159,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
177
159
|
isPreviewModeOpen: boolean;
|
|
178
160
|
editorVisualMode: string;
|
|
179
161
|
hasChanges: boolean;
|
|
180
|
-
isStripoInitialized: boolean;
|
|
181
162
|
}>) => boolean;
|
|
182
163
|
isSaveButtonDisabled: (state: {
|
|
183
164
|
loadingStatus: boolean;
|
|
@@ -187,7 +168,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
187
168
|
isPreviewModeOpen: boolean;
|
|
188
169
|
editorVisualMode: string;
|
|
189
170
|
hasChanges: boolean;
|
|
190
|
-
isStripoInitialized: boolean;
|
|
191
171
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
192
172
|
loadingStatus: boolean;
|
|
193
173
|
isCodeEditorOpen: boolean;
|
|
@@ -196,6 +176,5 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
196
176
|
isPreviewModeOpen: boolean;
|
|
197
177
|
editorVisualMode: string;
|
|
198
178
|
hasChanges: boolean;
|
|
199
|
-
isStripoInitialized: boolean;
|
|
200
179
|
}>) => boolean;
|
|
201
180
|
}, {}>;
|
package/dist/stores/editor.js
CHANGED
package/dist/stores/preview.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const m = () => ({
|
|
1
|
+
import { defineStore as e } from "pinia";
|
|
2
|
+
const s = () => ({
|
|
4
3
|
emailFormat: "html",
|
|
5
4
|
ampHtml: "",
|
|
6
5
|
ampErrors: [],
|
|
7
6
|
templateHtml: "",
|
|
8
7
|
isLoaded: !1,
|
|
9
8
|
isAMPErrorModalVisible: !1
|
|
10
|
-
}),
|
|
11
|
-
state: () =>
|
|
9
|
+
}), a = e("preview", {
|
|
10
|
+
state: () => s(),
|
|
12
11
|
getters: {
|
|
13
12
|
isAMPModeEnabled: (t) => t.emailFormat === "AMP",
|
|
14
13
|
previewHtml() {
|
|
@@ -28,14 +27,7 @@ const m = () => ({
|
|
|
28
27
|
},
|
|
29
28
|
actions: {
|
|
30
29
|
updateAMPData(t) {
|
|
31
|
-
|
|
32
|
-
const r = !!((s = this.ampHtml) != null && s.trim());
|
|
33
|
-
this.ampHtml = t.ampHtml ?? "", this.ampErrors = t.ampErrors ?? [];
|
|
34
|
-
const o = t.ampHtml ? "AMP" : "html";
|
|
35
|
-
if (this.emailFormat = o, !r && o === "AMP") {
|
|
36
|
-
const e = i();
|
|
37
|
-
e.shouldShowOnboarding("ampOnboarding") && e.start("ampOnboarding");
|
|
38
|
-
}
|
|
30
|
+
this.ampHtml = t.ampHtml ?? "", this.ampErrors = t.ampErrors ?? [], this.emailFormat = t.ampHtml ? "AMP" : "html";
|
|
39
31
|
},
|
|
40
32
|
setEmailFormat(t) {
|
|
41
33
|
this.emailFormat = t;
|
|
@@ -49,5 +41,5 @@ const m = () => ({
|
|
|
49
41
|
}
|
|
50
42
|
});
|
|
51
43
|
export {
|
|
52
|
-
|
|
44
|
+
a as usePreviewStore
|
|
53
45
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type RecommendationConfig = {
|
|
2
|
+
filters: {
|
|
3
|
+
value: string;
|
|
4
|
+
}[];
|
|
5
|
+
};
|
|
6
|
+
interface StoreState {
|
|
7
|
+
recommendationConfigs: RecommendationConfig[];
|
|
8
|
+
}
|
|
9
|
+
export declare const useRecommendationStore: import("pinia").StoreDefinition<"recommendation", StoreState, {}, {}>;
|
|
10
|
+
export {};
|
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { useActionsApi as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { useActionsApi as g } from "../composables/useActionsApi.js";
|
|
2
|
+
import { useHtmlCompiler as S } from "../composables/useHtmlCompiler.js";
|
|
3
|
+
import { useDynamicContentStore as f } from "../stores/dynamic-content.js";
|
|
4
|
+
const H = () => {
|
|
5
|
+
const t = f(), { getCompiledEmail: i, getTemplateData: o } = g(), { compileHtml: n } = S();
|
|
5
6
|
return {
|
|
6
7
|
prepareTemplateDetails: async () => {
|
|
7
|
-
const { html:
|
|
8
|
+
const { html: a, ampHtml: s = "", ampErrors: m = [] } = await i({
|
|
8
9
|
minimize: !0,
|
|
9
10
|
resetDataSavedFlag: !1
|
|
10
|
-
}), { html:
|
|
11
|
-
return {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
}), { html: r, css: c, syncModulesIds: l = [] } = await o(), { compiledHtml: p, stats: e, appliedRules: d } = n(a), u = t.getSelectedDynamicContentList;
|
|
12
|
+
return console.debug("HTML Compilation Stats:", {
|
|
13
|
+
originalSize: e.originalSize,
|
|
14
|
+
compiledSize: e.compiledSize,
|
|
15
|
+
reduction: `${e.reductionPercentage.toFixed(2)}%`,
|
|
16
|
+
appliedRules: d,
|
|
17
|
+
executionTime: `${e.executionTime.toFixed(2)}ms`
|
|
18
|
+
}), {
|
|
19
|
+
dynamicContentList: u,
|
|
20
|
+
compiledHtml: p,
|
|
21
|
+
rawHtml: r,
|
|
22
|
+
css: c,
|
|
16
23
|
ampHtml: s,
|
|
17
|
-
ampErrors:
|
|
18
|
-
modules:
|
|
24
|
+
ampErrors: m,
|
|
25
|
+
modules: l,
|
|
19
26
|
recommendation: {
|
|
20
27
|
campaignUrls: {},
|
|
21
28
|
configs: {}
|
|
@@ -29,5 +36,5 @@ const y = () => {
|
|
|
29
36
|
};
|
|
30
37
|
};
|
|
31
38
|
export {
|
|
32
|
-
|
|
39
|
+
H as useTemplatePreparation
|
|
33
40
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "1.0.2-beta.
|
|
3
|
+
"version": "1.0.2-beta.9fa711f",
|
|
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",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"lint": "NODE_OPTIONS=--max-old-space-size=2048 eslint ./ && bun run type-check",
|
|
25
25
|
"lint:fix": "NODE_OPTIONS=--max-old-space-size=2048 eslint --fix ./",
|
|
26
26
|
"type-check": "vue-tsc --noEmit --project tsconfig.config.json && vue-tsc --noEmit --project tsconfig.app.json",
|
|
27
|
-
"test:visual-update": "npx playwright test --update-snapshots --reporter html"
|
|
27
|
+
"test:visual-update": "npx playwright test --update-snapshots --reporter html",
|
|
28
|
+
"prepare": "husky"
|
|
28
29
|
},
|
|
29
30
|
"keywords": [],
|
|
30
31
|
"author": "",
|
|
@@ -65,6 +66,7 @@
|
|
|
65
66
|
"eslint-plugin-vue": "10.1.0",
|
|
66
67
|
"eslint-plugin-vue-scoped-css": "2.6.1",
|
|
67
68
|
"globals": "16.0.0",
|
|
69
|
+
"husky": "9.1.7",
|
|
68
70
|
"msw": "2.10.3",
|
|
69
71
|
"sass": "1.69.7",
|
|
70
72
|
"typescript": "5.5.4",
|
|
@@ -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,20 +0,0 @@
|
|
|
1
|
-
import l from "./AMPOnboarding.vue2.js";
|
|
2
|
-
import p from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var u = function() {
|
|
4
|
-
var r, n, e, i, s, a;
|
|
5
|
-
var o = this, c = o._self._c, t = o._self._setupProxy;
|
|
6
|
-
return t.isVisible && t.status ? c(t.InOnboard, { key: "guido-amp-onboard", staticClass: "w-21-s p-a z-11", class: (r = t.currentCard) == null ? void 0 : r.classes, attrs: { id: "guido-amp-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = t.currentCard) == null ? void 0 : n.bottom, "left-position": (e = t.currentCard) == null ? void 0 : e.left, "pages-config": t.config, "pointer-position": (i = t.currentCard) == null ? void 0 : i.position, "right-position": (s = t.currentCard) == null ? void 0 : s.right, "top-position": (a = t.currentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(f) {
|
|
7
|
-
return t.store.close("ampOnboarding");
|
|
8
|
-
}, nextButtonClick: t.handleNext } }) : o._e();
|
|
9
|
-
}, d = [], _ = /* @__PURE__ */ p(
|
|
10
|
-
l,
|
|
11
|
-
u,
|
|
12
|
-
d,
|
|
13
|
-
!1,
|
|
14
|
-
null,
|
|
15
|
-
null
|
|
16
|
-
);
|
|
17
|
-
const C = _.exports;
|
|
18
|
-
export {
|
|
19
|
-
C as default
|
|
20
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { defineComponent as l, computed as o, watch as g } from "vue";
|
|
2
|
-
import { useTranslations as f } from "../../../composables/useTranslations.js";
|
|
3
|
-
import { useOnboardingStore as b } from "../../../stores/onboarding.js";
|
|
4
|
-
import { InOnboard as C } from "@useinsider/design-system-vue";
|
|
5
|
-
const h = /* @__PURE__ */ l({
|
|
6
|
-
__name: "AMPOnboarding",
|
|
7
|
-
setup(x) {
|
|
8
|
-
const e = f(), n = b(), r = o(() => `${window.innerWidth / 2 - 110}px`), s = o(() => [
|
|
9
|
-
{
|
|
10
|
-
classes: "guido-amp-onboarding",
|
|
11
|
-
left: r.value,
|
|
12
|
-
top: "70px",
|
|
13
|
-
position: "Top Center",
|
|
14
|
-
title: e("email-editor.onboarding-amp-title"),
|
|
15
|
-
description: e("email-editor.onboarding-amp-description"),
|
|
16
|
-
imageSource: "",
|
|
17
|
-
backButtonClick: () => {
|
|
18
|
-
},
|
|
19
|
-
nextButtonType: "text",
|
|
20
|
-
nextButtonText: e("roi-statistics.onboard-modal-finish"),
|
|
21
|
-
nextButtonClick: () => void n.close("ampOnboarding")
|
|
22
|
-
}
|
|
23
|
-
]), d = o(() => n.ampOnboarding.config.length > 0), c = o(() => n.ampOnboarding.isActive), m = o(() => n.ampOnboarding.config), a = o(() => n.ampCurrentCard), p = () => {
|
|
24
|
-
var t, i;
|
|
25
|
-
(i = (t = a.value) == null ? void 0 : t.nextButtonClick) == null || i.call(t);
|
|
26
|
-
}, u = () => {
|
|
27
|
-
var t, i;
|
|
28
|
-
(i = (t = a.value) == null ? void 0 : t.backButtonClick) == null || i.call(t);
|
|
29
|
-
};
|
|
30
|
-
return g(c, (t) => {
|
|
31
|
-
t && setTimeout(() => {
|
|
32
|
-
n.setConfig("ampOnboarding", s.value);
|
|
33
|
-
}, 500);
|
|
34
|
-
}, { immediate: !0 }), { __sfc: !0, trans: e, store: n, centerLeft: r, onboardingCardsConfig: s, isVisible: d, status: c, config: m, currentCard: a, handleNext: p, handleBack: u, InOnboard: C };
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
export {
|
|
38
|
-
h as default
|
|
39
|
-
};
|
|
@@ -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,21 +0,0 @@
|
|
|
1
|
-
import d from "./GenericOnboarding.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import l from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var p = function() {
|
|
5
|
-
var r, e, n, i, s, a;
|
|
6
|
-
var o = this, c = o._self._c, t = o._self._setupProxy;
|
|
7
|
-
return t.isVisible && t.status ? c(t.InOnboard, { key: "guido-editor-onboard", staticClass: "w-21-s p-a z-11", class: (r = t.currentCard) == null ? void 0 : r.classes, attrs: { id: "guido-editor-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (e = t.currentCard) == null ? void 0 : e.bottom, "left-position": (n = t.currentCard) == null ? void 0 : n.left, "pages-config": t.config, "pointer-position": (i = t.currentCard) == null ? void 0 : i.position, "right-position": (s = t.currentCard) == null ? void 0 : s.right, "top-position": (a = t.currentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(m) {
|
|
8
|
-
return t.onboardingStore.close("genericOnboarding");
|
|
9
|
-
}, nextButtonClick: t.handleNext } }) : o._e();
|
|
10
|
-
}, u = [], _ = /* @__PURE__ */ l(
|
|
11
|
-
d,
|
|
12
|
-
p,
|
|
13
|
-
u,
|
|
14
|
-
!1,
|
|
15
|
-
null,
|
|
16
|
-
"037dda0b"
|
|
17
|
-
);
|
|
18
|
-
const v = _.exports;
|
|
19
|
-
export {
|
|
20
|
-
v as default
|
|
21
|
-
};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, computed as i, watch as f } from "vue";
|
|
2
|
-
import { useTranslations as k } from "../../../composables/useTranslations.js";
|
|
3
|
-
import { SERVICE_HOVER_SELECTORS as B } from "../../../enums/onboarding.js";
|
|
4
|
-
import { useOnboardingStore as C } from "../../../stores/onboarding.js";
|
|
5
|
-
import { InOnboard as T } from "@useinsider/design-system-vue";
|
|
6
|
-
const y = /* @__PURE__ */ m({
|
|
7
|
-
__name: "GenericOnboarding",
|
|
8
|
-
setup(O) {
|
|
9
|
-
const e = k(), o = C(), s = i(() => `${window.innerWidth / 2 - 160}px`), c = () => {
|
|
10
|
-
const t = document.querySelector("ui-editor");
|
|
11
|
-
t != null && t.shadowRoot && B.forEach((n) => {
|
|
12
|
-
var u;
|
|
13
|
-
const p = (u = t.shadowRoot) == null ? void 0 : u.querySelector(n);
|
|
14
|
-
p && p.classList.add("hover");
|
|
15
|
-
});
|
|
16
|
-
}, a = i(() => [
|
|
17
|
-
{
|
|
18
|
-
classes: "guido-onboarding-blocks",
|
|
19
|
-
left: "90px",
|
|
20
|
-
top: "90px",
|
|
21
|
-
position: "Left Top",
|
|
22
|
-
title: e("email-editor.onboarding-blocks-title"),
|
|
23
|
-
description: e("email-editor.onboarding-blocks-description"),
|
|
24
|
-
imageSource: "",
|
|
25
|
-
backButtonClick: () => {
|
|
26
|
-
},
|
|
27
|
-
nextButtonType: "text",
|
|
28
|
-
nextButtonText: e("products.next"),
|
|
29
|
-
nextButtonClick: () => {
|
|
30
|
-
c(), o.next("genericOnboarding");
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
classes: "guido-onboarding-stripes",
|
|
35
|
-
right: "450px",
|
|
36
|
-
bottom: "50px",
|
|
37
|
-
position: "Right Top",
|
|
38
|
-
title: e("email-editor.onboarding-stripes-title"),
|
|
39
|
-
description: e("email-editor.onboarding-stripes-description"),
|
|
40
|
-
imageSource: "",
|
|
41
|
-
backButtonType: "text",
|
|
42
|
-
backButtonText: e("ds-steps.back"),
|
|
43
|
-
backButtonClick: () => {
|
|
44
|
-
o.previous("genericOnboarding");
|
|
45
|
-
},
|
|
46
|
-
nextButtonType: "text",
|
|
47
|
-
nextButtonText: e("products.next"),
|
|
48
|
-
nextButtonClick: () => {
|
|
49
|
-
o.next("genericOnboarding");
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
classes: "guido-onboarding-preview",
|
|
54
|
-
left: s.value,
|
|
55
|
-
top: "90px",
|
|
56
|
-
position: "Top Center",
|
|
57
|
-
title: e("email-editor.onboarding-preview-title"),
|
|
58
|
-
description: e("email-editor.onboarding-preview-description"),
|
|
59
|
-
imageSource: "",
|
|
60
|
-
backButtonType: "text",
|
|
61
|
-
backButtonText: e("ds-steps.back"),
|
|
62
|
-
backButtonClick: () => o.previous("genericOnboarding"),
|
|
63
|
-
nextButtonType: "text",
|
|
64
|
-
nextButtonText: e("roi-statistics.onboard-modal-finish"),
|
|
65
|
-
nextButtonClick: () => {
|
|
66
|
-
o.close("genericOnboarding");
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
]), g = i(() => o.genericOnboarding.config.length > 0), d = i(() => o.genericOnboarding.isActive), l = i(() => o.genericOnboarding.config), r = i(() => o.genericCurrentCard), b = () => {
|
|
70
|
-
var t, n;
|
|
71
|
-
(n = (t = r.value) == null ? void 0 : t.nextButtonClick) == null || n.call(t);
|
|
72
|
-
}, x = () => {
|
|
73
|
-
var t, n;
|
|
74
|
-
(n = (t = r.value) == null ? void 0 : t.backButtonClick) == null || n.call(t);
|
|
75
|
-
};
|
|
76
|
-
return f(d, (t) => {
|
|
77
|
-
t && setTimeout(() => {
|
|
78
|
-
o.setConfig("genericOnboarding", a.value);
|
|
79
|
-
}, 500);
|
|
80
|
-
}, { immediate: !0 }), { __sfc: !0, trans: e, onboardingStore: o, centerLeft: s, addHoverToServiceElements: c, onboardingCardsConfig: a, isVisible: g, status: d, config: l, currentCard: r, handleNext: b, handleBack: x, InOnboard: T };
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
export {
|
|
84
|
-
y as default
|
|
85
|
-
};
|
|
@@ -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 s from "./NewVersionPopup.vue2.js";
|
|
2
|
-
import n from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var r = function() {
|
|
4
|
-
var e = this, t = e._self._c, o = e._self._setupProxy;
|
|
5
|
-
return o.isVisible ? t(o.WpModal, { attrs: { id: "new-version-popup", "close-on-outside-click": !1, "footer-button-options": o.footerButtonOptions, title: o.trans("email-editor.onboarding-title") }, on: { close: o.handleClose, "primary-action": o.handleDiscoverNow, "secondary-action": o.handleRemindLater } }, [t("div", { staticClass: "d-f f-d-c" }, [t("img", { staticClass: "w-1 h-1 d-b p-e-n mb-5", attrs: { src: o.onboardingImageSvg } }), t("p", { staticClass: "f-s-2 f-w-400", domProps: { innerHTML: e._s(o.trans("email-editor.onboarding-description")) } })])]) : e._e();
|
|
6
|
-
}, i = [], a = /* @__PURE__ */ n(
|
|
7
|
-
s,
|
|
8
|
-
r,
|
|
9
|
-
i,
|
|
10
|
-
!1,
|
|
11
|
-
null,
|
|
12
|
-
null
|
|
13
|
-
);
|
|
14
|
-
const p = a.exports;
|
|
15
|
-
export {
|
|
16
|
-
p as default
|
|
17
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, ref as r } from "vue";
|
|
2
|
-
import a from "../../wrappers/WpModal.vue.js";
|
|
3
|
-
import { useTranslations as i } from "../../../composables/useTranslations.js";
|
|
4
|
-
import l from "../../../static/assets/onboarding-img.svg.js";
|
|
5
|
-
import { useOnboardingStore as m } from "../../../stores/onboarding.js";
|
|
6
|
-
const w = /* @__PURE__ */ s({
|
|
7
|
-
__name: "NewVersionPopup",
|
|
8
|
-
setup(p) {
|
|
9
|
-
const n = i(), e = m(), o = r(!0), t = r({
|
|
10
|
-
primaryButton: {
|
|
11
|
-
type: "primary",
|
|
12
|
-
labelText: n("left-menu.discover-now")
|
|
13
|
-
},
|
|
14
|
-
secondaryButton: {
|
|
15
|
-
type: "subtle-primary",
|
|
16
|
-
labelText: n("products.remind-me-later")
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
return { __sfc: !0, trans: n, onboardingStore: e, isVisible: o, footerButtonOptions: t, handleDiscoverNow: () => {
|
|
20
|
-
e.onDiscoverNowClicked(), o.value = !1;
|
|
21
|
-
}, handleRemindLater: () => {
|
|
22
|
-
e.onRemindMeLater(), o.value = !1;
|
|
23
|
-
}, handleClose: () => {
|
|
24
|
-
e.onNewVersionPopupClose(), o.value = !1;
|
|
25
|
-
}, WpModal: a, onboardingImageSvg: l };
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
export {
|
|
29
|
-
w 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 "./OnboardingWrapper.vue2.js";
|
|
2
|
-
import _ from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var s = function() {
|
|
4
|
-
var n = this, e = n._self._c, t = n._self._setupProxy;
|
|
5
|
-
return e("div", n._l(t.visibleOnboardings, function(r) {
|
|
6
|
-
return e(r.component, { key: r.type, tag: "component" });
|
|
7
|
-
}), 1);
|
|
8
|
-
}, a = [], p = /* @__PURE__ */ _(
|
|
9
|
-
o,
|
|
10
|
-
s,
|
|
11
|
-
a,
|
|
12
|
-
!1,
|
|
13
|
-
null,
|
|
14
|
-
null
|
|
15
|
-
);
|
|
16
|
-
const m = p.exports;
|
|
17
|
-
export {
|
|
18
|
-
m as default
|
|
19
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, computed as r, onMounted as d } from "vue";
|
|
2
|
-
import { usePartner as f } from "../../../composables/usePartner.js";
|
|
3
|
-
import { useEditorStore as u } from "../../../stores/editor.js";
|
|
4
|
-
import { useOnboardingStore as g } from "../../../stores/onboarding.js";
|
|
5
|
-
import b from "./AMPOnboarding.vue.js";
|
|
6
|
-
import l from "./GenericOnboarding.vue.js";
|
|
7
|
-
import O from "./NewVersionPopup.vue.js";
|
|
8
|
-
import S from "./TextBlockOnboarding.vue.js";
|
|
9
|
-
import y from "./VersionHistoryOnboarding.vue.js";
|
|
10
|
-
const k = /* @__PURE__ */ c({
|
|
11
|
-
__name: "OnboardingWrapper",
|
|
12
|
-
setup(_) {
|
|
13
|
-
const n = g(), e = u(), { isTestPartner: t } = f(), i = r(() => e.isStripoInitialized), s = r(() => t()), p = [
|
|
14
|
-
{ type: "newVersionPopup", component: O },
|
|
15
|
-
{ type: "genericOnboarding", component: l },
|
|
16
|
-
{ type: "textBlockOnboarding", component: S },
|
|
17
|
-
{ type: "versionHistoryOnboarding", component: y },
|
|
18
|
-
{ type: "ampOnboarding", component: b }
|
|
19
|
-
], a = (o) => s.value || !i.value ? !1 : o === "newVersionPopup" ? n.shouldShowOnboarding(o) : n.isActive(o), m = r(() => p.filter((o) => a(o.type)));
|
|
20
|
-
return d(async () => {
|
|
21
|
-
await n.fetchUserModalState();
|
|
22
|
-
}), { __sfc: !0, onboardingStore: n, editorStore: e, isTestPartner: t, isStripoReady: i, isTestPartnerActive: s, onboardingConfigs: p, shouldShow: a, visibleOnboardings: m };
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
export {
|
|
26
|
-
k as default
|
|
27
|
-
};
|
|
@@ -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,21 +0,0 @@
|
|
|
1
|
-
import l from "./TextBlockOnboarding.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import p from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var d = function() {
|
|
5
|
-
var e, r, n, i, s, a;
|
|
6
|
-
var o = this, c = o._self._c, t = o._self._setupProxy;
|
|
7
|
-
return t.isVisible && t.status ? c(t.InOnboard, { key: "guido-text-block-onboard", staticClass: "w-21-s p-a z-11", class: (e = t.currentCard) == null ? void 0 : e.classes, attrs: { id: "guido-text-block-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (r = t.currentCard) == null ? void 0 : r.bottom, "left-position": (n = t.currentCard) == null ? void 0 : n.left, "pages-config": t.config, "pointer-position": (i = t.currentCard) == null ? void 0 : i.position, "right-position": (s = t.currentCard) == null ? void 0 : s.right, "top-position": (a = t.currentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(m) {
|
|
8
|
-
return t.store.close("textBlockOnboarding");
|
|
9
|
-
}, nextButtonClick: t.handleNext } }) : o._e();
|
|
10
|
-
}, u = [], _ = /* @__PURE__ */ p(
|
|
11
|
-
l,
|
|
12
|
-
d,
|
|
13
|
-
u,
|
|
14
|
-
!1,
|
|
15
|
-
null,
|
|
16
|
-
"ff363cd1"
|
|
17
|
-
);
|
|
18
|
-
const k = _.exports;
|
|
19
|
-
export {
|
|
20
|
-
k as default
|
|
21
|
-
};
|