@useinsider/guido 3.8.0-beta.910d4af → 3.8.0-beta.bf9ea20
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/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +8 -8
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +12 -15
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +5 -5
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +15 -16
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +5 -5
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +37 -42
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +3 -3
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +37 -40
- package/dist/composables/useSave.js +14 -14
- package/dist/composables/validators/useUnsubscribeBlockValidator.js +17 -26
- package/dist/extensions/Blocks/Items/block.js +48 -29
- package/dist/extensions/Blocks/Items/utils/nodeConfigUtils.js +62 -45
- package/dist/extensions/Blocks/Unsubscribe/block.js +37 -40
- package/dist/extensions/Blocks/Unsubscribe/control.js +16 -19
- package/dist/guido.css +1 -1
- package/dist/src/composables/validators/useUnsubscribeBlockValidator.d.ts +0 -1
- package/dist/src/extensions/Blocks/Items/block.d.ts +8 -0
- package/dist/src/extensions/Blocks/Items/utils/nodeConfigUtils.d.ts +1 -1
- package/dist/src/stores/unsubscribe.d.ts +1 -11
- package/dist/stores/unsubscribe.js +7 -8
- package/package.json +1 -1
- package/dist/composables/usePreviewInteractionGuard.js +0 -17
- package/dist/src/composables/usePreviewInteractionGuard.d.ts +0 -3
|
@@ -10,7 +10,6 @@ interface StoreState {
|
|
|
10
10
|
typeSelectionDrawerStatus: boolean;
|
|
11
11
|
isGlobalUnsubscribeDisabled: boolean;
|
|
12
12
|
isSubscriptionPreferencesCenterDisabled: boolean;
|
|
13
|
-
pendingBlockId: string | null;
|
|
14
13
|
}
|
|
15
14
|
export declare const useUnsubscribeStore: import("pinia").StoreDefinition<"guidoUnsubscribe", StoreState, {
|
|
16
15
|
getSelectedCollection: (state: {
|
|
@@ -36,7 +35,6 @@ export declare const useUnsubscribeStore: import("pinia").StoreDefinition<"guido
|
|
|
36
35
|
typeSelectionDrawerStatus: boolean;
|
|
37
36
|
isGlobalUnsubscribeDisabled: boolean;
|
|
38
37
|
isSubscriptionPreferencesCenterDisabled: boolean;
|
|
39
|
-
pendingBlockId: string | null;
|
|
40
38
|
} & import("pinia").PiniaCustomStateProperties<StoreState>) => number[];
|
|
41
39
|
getSelectedTemplateByActiveType: (state: {
|
|
42
40
|
templates: {
|
|
@@ -61,7 +59,6 @@ export declare const useUnsubscribeStore: import("pinia").StoreDefinition<"guido
|
|
|
61
59
|
typeSelectionDrawerStatus: boolean;
|
|
62
60
|
isGlobalUnsubscribeDisabled: boolean;
|
|
63
61
|
isSubscriptionPreferencesCenterDisabled: boolean;
|
|
64
|
-
pendingBlockId: string | null;
|
|
65
62
|
} & import("pinia").PiniaCustomStateProperties<StoreState>) => number;
|
|
66
63
|
getTemplatesByActiveType: (state: {
|
|
67
64
|
templates: {
|
|
@@ -86,7 +83,6 @@ export declare const useUnsubscribeStore: import("pinia").StoreDefinition<"guido
|
|
|
86
83
|
typeSelectionDrawerStatus: boolean;
|
|
87
84
|
isGlobalUnsubscribeDisabled: boolean;
|
|
88
85
|
isSubscriptionPreferencesCenterDisabled: boolean;
|
|
89
|
-
pendingBlockId: string | null;
|
|
90
86
|
} & import("pinia").PiniaCustomStateProperties<StoreState>) => {
|
|
91
87
|
id: number;
|
|
92
88
|
name: string;
|
|
@@ -123,7 +119,6 @@ export declare const useUnsubscribeStore: import("pinia").StoreDefinition<"guido
|
|
|
123
119
|
typeSelectionDrawerStatus: boolean;
|
|
124
120
|
isGlobalUnsubscribeDisabled: boolean;
|
|
125
121
|
isSubscriptionPreferencesCenterDisabled: boolean;
|
|
126
|
-
pendingBlockId: string | null;
|
|
127
122
|
} & import("pinia").PiniaCustomStateProperties<StoreState>) => (id: number) => string;
|
|
128
123
|
getSelectedUnsubscribePagesByCollection: (state: {
|
|
129
124
|
templates: {
|
|
@@ -148,7 +143,6 @@ export declare const useUnsubscribeStore: import("pinia").StoreDefinition<"guido
|
|
|
148
143
|
typeSelectionDrawerStatus: boolean;
|
|
149
144
|
isGlobalUnsubscribeDisabled: boolean;
|
|
150
145
|
isSubscriptionPreferencesCenterDisabled: boolean;
|
|
151
|
-
pendingBlockId: string | null;
|
|
152
146
|
} & import("pinia").PiniaCustomStateProperties<StoreState>) => (collectionType: number) => number[];
|
|
153
147
|
isActiveTypeFirstInCollection: (state: {
|
|
154
148
|
templates: {
|
|
@@ -173,7 +167,6 @@ export declare const useUnsubscribeStore: import("pinia").StoreDefinition<"guido
|
|
|
173
167
|
typeSelectionDrawerStatus: boolean;
|
|
174
168
|
isGlobalUnsubscribeDisabled: boolean;
|
|
175
169
|
isSubscriptionPreferencesCenterDisabled: boolean;
|
|
176
|
-
pendingBlockId: string | null;
|
|
177
170
|
} & import("pinia").PiniaCustomStateProperties<StoreState>) => boolean;
|
|
178
171
|
isActiveTypeLastInCollection: (state: {
|
|
179
172
|
templates: {
|
|
@@ -198,7 +191,6 @@ export declare const useUnsubscribeStore: import("pinia").StoreDefinition<"guido
|
|
|
198
191
|
typeSelectionDrawerStatus: boolean;
|
|
199
192
|
isGlobalUnsubscribeDisabled: boolean;
|
|
200
193
|
isSubscriptionPreferencesCenterDisabled: boolean;
|
|
201
|
-
pendingBlockId: string | null;
|
|
202
194
|
} & import("pinia").PiniaCustomStateProperties<StoreState>) => boolean;
|
|
203
195
|
hasTemplatesByCollectionType: (state: {
|
|
204
196
|
templates: {
|
|
@@ -223,7 +215,6 @@ export declare const useUnsubscribeStore: import("pinia").StoreDefinition<"guido
|
|
|
223
215
|
typeSelectionDrawerStatus: boolean;
|
|
224
216
|
isGlobalUnsubscribeDisabled: boolean;
|
|
225
217
|
isSubscriptionPreferencesCenterDisabled: boolean;
|
|
226
|
-
pendingBlockId: string | null;
|
|
227
218
|
} & import("pinia").PiniaCustomStateProperties<StoreState>) => Record<number, boolean>;
|
|
228
219
|
unsubscribePagesStatus: (state: {
|
|
229
220
|
templates: {
|
|
@@ -248,11 +239,10 @@ export declare const useUnsubscribeStore: import("pinia").StoreDefinition<"guido
|
|
|
248
239
|
typeSelectionDrawerStatus: boolean;
|
|
249
240
|
isGlobalUnsubscribeDisabled: boolean;
|
|
250
241
|
isSubscriptionPreferencesCenterDisabled: boolean;
|
|
251
|
-
pendingBlockId: string | null;
|
|
252
242
|
} & import("pinia").PiniaCustomStateProperties<StoreState>) => boolean;
|
|
253
243
|
}, {
|
|
254
244
|
$reset(): void;
|
|
255
|
-
fetchTemplates(
|
|
245
|
+
fetchTemplates(): Promise<void>;
|
|
256
246
|
setCollection(collectionType: number): void;
|
|
257
247
|
setCollectionWithoutAutoSelection(collectionType: number): void;
|
|
258
248
|
setSelectedTemplate(template: number): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TYPE_COLLECTIONS as i, PAGE_TYPES as p } from "../enums/unsubscribe.js";
|
|
2
2
|
import { useUnsubscribeApi as d } from "../services/unsubscribeApi.js";
|
|
3
|
-
import { defineStore as
|
|
3
|
+
import { defineStore as h } from "pinia";
|
|
4
4
|
let o = null;
|
|
5
5
|
const r = () => ({
|
|
6
6
|
templates: [],
|
|
@@ -12,9 +12,8 @@ const r = () => ({
|
|
|
12
12
|
pageSelectionDrawerStatus: !1,
|
|
13
13
|
typeSelectionDrawerStatus: !1,
|
|
14
14
|
isGlobalUnsubscribeDisabled: !1,
|
|
15
|
-
isSubscriptionPreferencesCenterDisabled: !1
|
|
16
|
-
|
|
17
|
-
}), b = u("guidoUnsubscribe", {
|
|
15
|
+
isSubscriptionPreferencesCenterDisabled: !1
|
|
16
|
+
}), b = h("guidoUnsubscribe", {
|
|
18
17
|
state: () => r(),
|
|
19
18
|
getters: {
|
|
20
19
|
getSelectedCollection: (e) => i[e.selectedCollectionType],
|
|
@@ -63,10 +62,10 @@ const r = () => ({
|
|
|
63
62
|
selectedUnsubscribePages: t
|
|
64
63
|
});
|
|
65
64
|
},
|
|
66
|
-
async fetchTemplates(
|
|
67
|
-
|
|
68
|
-
const { getUnsubscribePages:
|
|
69
|
-
this.templates = await
|
|
65
|
+
async fetchTemplates() {
|
|
66
|
+
this.templates.length || (o || (o = (async () => {
|
|
67
|
+
const { getUnsubscribePages: e } = d();
|
|
68
|
+
this.templates = await e();
|
|
70
69
|
})().finally(() => {
|
|
71
70
|
o = null;
|
|
72
71
|
})), await o);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.8.0-beta.
|
|
3
|
+
"version": "3.8.0-beta.bf9ea20",
|
|
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",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const o = ["click", "auxclick", "submit"], c = (t) => {
|
|
2
|
-
t.preventDefault(), t.stopPropagation();
|
|
3
|
-
}, a = () => ({ blockPreviewInteractions: (r) => {
|
|
4
|
-
try {
|
|
5
|
-
const e = r.contentDocument;
|
|
6
|
-
if (!e)
|
|
7
|
-
return;
|
|
8
|
-
o.forEach((n) => {
|
|
9
|
-
e.addEventListener(n, c, !0);
|
|
10
|
-
});
|
|
11
|
-
} catch (e) {
|
|
12
|
-
console.warn("[usePreviewInteractionGuard] Could not guard preview iframe:", e);
|
|
13
|
-
}
|
|
14
|
-
} });
|
|
15
|
-
export {
|
|
16
|
-
a as usePreviewInteractionGuard
|
|
17
|
-
};
|