@useinsider/guido 1.0.3-beta.367d151 → 1.0.3-beta.3757462
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/@types/generic.d.ts +0 -14
- package/dist/components/Guido.vue.d.ts +2 -3
- package/dist/components/Guido.vue.js +9 -11
- package/dist/components/Guido.vue2.js +69 -75
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.d.ts +1 -3
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +9 -9
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +17 -30
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +1 -3
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +10 -12
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +18 -19
- package/dist/components/wrappers/WpDrawer.vue.d.ts +4 -6
- package/dist/components/wrappers/WpDrawer.vue.js +4 -6
- package/dist/composables/useStripo.js +18 -26
- package/dist/config/compiler/unsubscribeCompilerRules.js +29 -42
- package/dist/config/migrator/index.d.ts +1 -1
- package/dist/config/migrator/index.js +6 -7
- package/dist/enums/defaults.js +0 -4
- package/dist/enums/unsubscribe.d.ts +0 -23
- package/dist/enums/unsubscribe.js +6 -43
- package/dist/extensions/Blocks/Checkbox/control.js +54 -53
- package/dist/extensions/Blocks/RadioButton/control.js +45 -44
- package/dist/extensions/Blocks/RadioButton/template.js +6 -6
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +71 -83
- package/dist/stores/editor.d.ts +0 -21
- package/dist/stores/editor.js +1 -2
- package/dist/stores/unsubscribe.d.ts +5 -253
- package/dist/stores/unsubscribe.js +6 -126
- package/dist/utils/dateUtil.d.ts +0 -4
- package/dist/utils/dateUtil.js +12 -8
- package/dist/utils/genericUtil.d.ts +0 -1
- package/dist/utils/genericUtil.js +7 -8
- package/dist/utils/templatePreparation.js +16 -17
- package/package.json +2 -2
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue.d.ts +0 -19
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue.js +0 -28
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +0 -38
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts +0 -2
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.js +0 -17
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +0 -37
- package/dist/components/organisms/extensions/recommendation/Filters.vue.d.ts +0 -2
- package/dist/components/organisms/extensions/recommendation/Filters.vue.js +0 -20
- package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +0 -44
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +0 -16
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.js +0 -17
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue2.js +0 -27
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +0 -2
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +0 -18
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +0 -16
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +0 -2
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +0 -24
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +0 -64
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +0 -2
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +0 -18
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +0 -107
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +0 -2
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +0 -18
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue2.js +0 -12
- package/dist/config/migrator/unsubscribeMigrator.d.ts +0 -1
- package/dist/config/migrator/unsubscribeMigrator.js +0 -124
- package/dist/enums/date.d.ts +0 -13
- package/dist/enums/date.js +0 -16
- package/dist/enums/extensions/recommendationBlock.d.ts +0 -16
- package/dist/enums/extensions/recommendationBlock.js +0 -80
- package/dist/extensions/Blocks/Recommendation/block.d.ts +0 -10
- package/dist/extensions/Blocks/Recommendation/block.js +0 -27
- package/dist/extensions/Blocks/Recommendation/control.d.ts +0 -29
- package/dist/extensions/Blocks/Recommendation/control.js +0 -277
- package/dist/extensions/Blocks/Recommendation/extension.d.ts +0 -2
- package/dist/extensions/Blocks/Recommendation/extension.js +0 -10
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.d.ts +0 -4
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +0 -51
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +0 -19
- package/dist/extensions/Blocks/Recommendation/settingsPanel.d.ts +0 -4
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +0 -32
- package/dist/extensions/Blocks/Recommendation/store/recommendation.d.ts +0 -555
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +0 -266
- package/dist/extensions/Blocks/Recommendation/template.d.ts +0 -6
- package/dist/extensions/Blocks/Recommendation/template.js +0 -200
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.d.ts +0 -7
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +0 -28
- package/dist/extensions/Blocks/Unsubscribe/block.d.ts +0 -32
- package/dist/extensions/Blocks/Unsubscribe/block.js +0 -131
- package/dist/extensions/Blocks/Unsubscribe/control.d.ts +0 -29
- package/dist/extensions/Blocks/Unsubscribe/control.js +0 -167
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.d.ts +0 -11
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +0 -42
- package/dist/extensions/Blocks/Unsubscribe/extension.d.ts +0 -2
- package/dist/extensions/Blocks/Unsubscribe/extension.js +0 -21
- package/dist/extensions/Blocks/Unsubscribe/iconsRegistry.d.ts +0 -4
- package/dist/extensions/Blocks/Unsubscribe/iconsRegistry.js +0 -21
- package/dist/extensions/Blocks/Unsubscribe/settingsPanel.d.ts +0 -4
- package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +0 -35
- package/dist/extensions/Blocks/Unsubscribe/styles.css.js +0 -42
- package/dist/extensions/Blocks/Unsubscribe/tagRegistry.d.ts +0 -4
- package/dist/extensions/Blocks/Unsubscribe/tagRegistry.js +0 -10
- package/dist/extensions/Blocks/Unsubscribe/template.d.ts +0 -12
- package/dist/extensions/Blocks/Unsubscribe/template.js +0 -22
- package/dist/extensions/Blocks/Unsubscribe/utils/constants.d.ts +0 -9
- package/dist/extensions/Blocks/Unsubscribe/utils/constants.js +0 -11
- package/dist/extensions/Blocks/Unsubscribe/utils/utils.d.ts +0 -7
- package/dist/extensions/Blocks/Unsubscribe/utils/utils.js +0 -6
- package/dist/extensions/Blocks/common-control.d.ts +0 -66
- package/dist/extensions/Blocks/common-control.js +0 -102
- package/dist/mock/api/recommendation.d.ts +0 -2
- package/dist/services/recommendationApi.d.ts +0 -6
- package/dist/services/recommendationApi.js +0 -43
- package/dist/services/unsubscribeApi.d.ts +0 -4
- package/dist/services/unsubscribeApi.js +0 -16
- package/dist/stores/config.d.ts +0 -97
- package/dist/stores/config.js +0 -17
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { useHttp as c } from "../composables/useHttp.js";
|
|
2
|
-
import { URLS as a } from "../enums/extensions/recommendationBlock.js";
|
|
3
|
-
import { useEditorStore as m } from "../stores/editor.js";
|
|
4
|
-
import { replaceString as s } from "../utils/genericUtil.js";
|
|
5
|
-
const l = () => {
|
|
6
|
-
const { get: o } = c();
|
|
7
|
-
return {
|
|
8
|
-
fetchRecommendationCreateData: async () => {
|
|
9
|
-
const e = m();
|
|
10
|
-
try {
|
|
11
|
-
return (await o(s(
|
|
12
|
-
"/newsletter/{id}/recommendations/get-campaign-create-data",
|
|
13
|
-
{ id: e.templateId }
|
|
14
|
-
))).data;
|
|
15
|
-
} catch (t) {
|
|
16
|
-
throw console.error("fetchUserModalState error:", t), t;
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
fetchRecommendationFilters: async () => {
|
|
20
|
-
try {
|
|
21
|
-
const { data: e } = await o("/stripo/email-recommendation-attributes");
|
|
22
|
-
return e;
|
|
23
|
-
} catch (e) {
|
|
24
|
-
throw console.error("fetchRecommendationFilters error:", e), e;
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
fetchRecommendationProducts: async (e, t) => {
|
|
28
|
-
try {
|
|
29
|
-
const r = decodeURIComponent(new URLSearchParams(Object.entries(t)).toString());
|
|
30
|
-
console.debug("🏁 Recommendation API Query:", r);
|
|
31
|
-
const n = await o(
|
|
32
|
-
`${a.RECOMMENDATION_API_URL}/v2/${e}?${r}`
|
|
33
|
-
);
|
|
34
|
-
return (n == null ? void 0 : n.data) ?? [];
|
|
35
|
-
} catch (r) {
|
|
36
|
-
throw console.error("fetchRecommendationProducts error:", r), r;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
l as useRecommendationApi
|
|
43
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useHttp as t } from "../composables/useHttp.js";
|
|
2
|
-
import { useToaster as n } from "../composables/useToaster.js";
|
|
3
|
-
const u = () => {
|
|
4
|
-
const { get: r } = t(), { handleError: s } = n();
|
|
5
|
-
return { getUnsubscribePages: async () => {
|
|
6
|
-
try {
|
|
7
|
-
const { data: e = [] } = await r("/unsubscribe-pages/get-all");
|
|
8
|
-
return e;
|
|
9
|
-
} catch (e) {
|
|
10
|
-
return s(e, "Failed to fetch unsubscribe pages"), [];
|
|
11
|
-
}
|
|
12
|
-
} };
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
u as useUnsubscribeApi
|
|
16
|
-
};
|
package/dist/stores/config.d.ts
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import type { GuidoConfig, TemplateConfig } from '@@/Types/generic';
|
|
2
|
-
interface StoreState {
|
|
3
|
-
guidoConfig: GuidoConfig;
|
|
4
|
-
templateConfig?: TemplateConfig;
|
|
5
|
-
}
|
|
6
|
-
export declare const useConfigStore: import("pinia").StoreDefinition<"config", StoreState, {
|
|
7
|
-
getVariationId: (state: {
|
|
8
|
-
guidoConfig: {
|
|
9
|
-
translationsPath: string;
|
|
10
|
-
htmlCompilerRules?: ({
|
|
11
|
-
type: "replace";
|
|
12
|
-
search: string;
|
|
13
|
-
replacement: string;
|
|
14
|
-
replaceAll?: boolean | undefined;
|
|
15
|
-
id: string;
|
|
16
|
-
description?: string | undefined;
|
|
17
|
-
priority: number;
|
|
18
|
-
} | {
|
|
19
|
-
type: "regex";
|
|
20
|
-
pattern: string;
|
|
21
|
-
replacement: string;
|
|
22
|
-
flags?: string | undefined;
|
|
23
|
-
id: string;
|
|
24
|
-
description?: string | undefined;
|
|
25
|
-
priority: number;
|
|
26
|
-
} | {
|
|
27
|
-
type: "remove";
|
|
28
|
-
targets: string[] | {
|
|
29
|
-
exec: (string: string) => RegExpExecArray | null;
|
|
30
|
-
test: (string: string) => boolean;
|
|
31
|
-
readonly source: string;
|
|
32
|
-
readonly global: boolean;
|
|
33
|
-
readonly ignoreCase: boolean;
|
|
34
|
-
readonly multiline: boolean;
|
|
35
|
-
lastIndex: number;
|
|
36
|
-
compile: (pattern: string, flags?: string) => RegExp;
|
|
37
|
-
readonly flags: string;
|
|
38
|
-
readonly sticky: boolean;
|
|
39
|
-
readonly unicode: boolean;
|
|
40
|
-
readonly dotAll: boolean;
|
|
41
|
-
readonly hasIndices: boolean;
|
|
42
|
-
[Symbol.match]: (string: string) => RegExpMatchArray | null;
|
|
43
|
-
[Symbol.replace]: {
|
|
44
|
-
(string: string, replaceValue: string): string;
|
|
45
|
-
(string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
46
|
-
};
|
|
47
|
-
[Symbol.search]: (string: string) => number;
|
|
48
|
-
[Symbol.split]: (string: string, limit?: number) => string[];
|
|
49
|
-
[Symbol.matchAll]: (str: string) => IterableIterator<RegExpMatchArray>;
|
|
50
|
-
}[];
|
|
51
|
-
id: string;
|
|
52
|
-
description?: string | undefined;
|
|
53
|
-
priority: number;
|
|
54
|
-
} | {
|
|
55
|
-
type: "custom";
|
|
56
|
-
processor: (html: string) => string;
|
|
57
|
-
id: string;
|
|
58
|
-
description?: string | undefined;
|
|
59
|
-
priority: number;
|
|
60
|
-
})[] | undefined;
|
|
61
|
-
ignoreDefaultHtmlCompilerRules?: boolean | undefined;
|
|
62
|
-
useHeader?: boolean | undefined;
|
|
63
|
-
emailHeader: {
|
|
64
|
-
senderName: string;
|
|
65
|
-
subject: string;
|
|
66
|
-
};
|
|
67
|
-
migrationDate: number;
|
|
68
|
-
partner?: {
|
|
69
|
-
partnerName: string;
|
|
70
|
-
productType: number;
|
|
71
|
-
messageType: number;
|
|
72
|
-
} | undefined;
|
|
73
|
-
extensions?: {
|
|
74
|
-
unsubscribe?: boolean | undefined;
|
|
75
|
-
} | undefined;
|
|
76
|
-
features?: {
|
|
77
|
-
dynamicContent?: boolean | undefined;
|
|
78
|
-
saveAsTemplate?: boolean | undefined;
|
|
79
|
-
versionHistory?: boolean | undefined;
|
|
80
|
-
} | undefined;
|
|
81
|
-
};
|
|
82
|
-
templateConfig?: {
|
|
83
|
-
preselectedDynamicContentList?: {
|
|
84
|
-
value: string;
|
|
85
|
-
text: string;
|
|
86
|
-
fallback?: string | undefined;
|
|
87
|
-
format?: {
|
|
88
|
-
key: string;
|
|
89
|
-
value: string;
|
|
90
|
-
} | undefined;
|
|
91
|
-
}[] | undefined;
|
|
92
|
-
selectedUnsubscribePages?: number[] | undefined;
|
|
93
|
-
variationId?: string | undefined;
|
|
94
|
-
} | undefined;
|
|
95
|
-
} & import("pinia").PiniaCustomStateProperties<StoreState>) => string;
|
|
96
|
-
}, {}>;
|
|
97
|
-
export {};
|
package/dist/stores/config.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DefaultGuidoConfig as e } from "../enums/defaults.js";
|
|
2
|
-
import { defineStore as i } from "pinia";
|
|
3
|
-
const r = i("config", {
|
|
4
|
-
state: () => ({
|
|
5
|
-
guidoConfig: e,
|
|
6
|
-
templateConfig: {}
|
|
7
|
-
}),
|
|
8
|
-
getters: {
|
|
9
|
-
getVariationId: (t) => {
|
|
10
|
-
var o;
|
|
11
|
-
return ((o = t.templateConfig) == null ? void 0 : o.variationId) ?? "";
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
export {
|
|
16
|
-
r as useConfigStore
|
|
17
|
-
};
|