@useinsider/guido 1.0.3-beta.830bb2b → 1.0.3-beta.83937b4
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 +137 -3
- package/dist/components/Guido.vue.js +7 -7
- package/dist/components/Guido.vue2.js +36 -35
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue.js +28 -0
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +38 -0
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.js +17 -0
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +37 -0
- package/dist/components/organisms/extensions/recommendation/Filters.vue.js +20 -0
- package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +44 -0
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.js +17 -0
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue2.js +27 -0
- package/dist/components/organisms/header/LeftSlot.vue.js +1 -1
- package/dist/components/organisms/header/LeftSlot.vue2.js +16 -15
- package/dist/components/organisms/header/RightSlot.vue.js +11 -11
- package/dist/composables/useBlocksConfig.js +49 -0
- package/dist/composables/useStripo.js +39 -48
- package/dist/enums/defaults.js +14 -8
- package/dist/enums/extensions/recommendationBlock.js +80 -0
- package/dist/extensions/Blocks/Checkbox/extension.js +2 -2
- package/dist/extensions/Blocks/CouponBlock/extension.js +2 -2
- package/dist/extensions/Blocks/RadioButton/template.js +6 -6
- package/dist/extensions/Blocks/Recommendation/block.js +27 -0
- package/dist/extensions/Blocks/Recommendation/control.js +277 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +10 -0
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +51 -0
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +19 -0
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +32 -0
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +266 -0
- package/dist/extensions/Blocks/Recommendation/template.js +200 -0
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +28 -0
- package/dist/extensions/Blocks/common-control.js +102 -0
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +83 -72
- package/dist/services/recommendationApi.js +43 -0
- package/dist/src/@types/generic.d.ts +13 -0
- package/dist/src/components/organisms/extensions/recommendation/FilterItem.vue.d.ts +19 -0
- package/dist/src/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts +2 -0
- package/dist/src/components/organisms/extensions/recommendation/Filters.vue.d.ts +2 -0
- package/dist/src/components/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +16 -0
- package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
- package/dist/src/composables/useBlocksConfig.d.ts +11 -0
- package/dist/src/enums/extensions/recommendationBlock.d.ts +16 -0
- package/dist/src/extensions/Blocks/Recommendation/block.d.ts +10 -0
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +29 -0
- package/dist/src/extensions/Blocks/Recommendation/extension.d.ts +2 -0
- package/dist/src/extensions/Blocks/Recommendation/iconsRegistry.d.ts +4 -0
- package/dist/src/extensions/Blocks/Recommendation/settingsPanel.d.ts +4 -0
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +555 -0
- package/dist/src/extensions/Blocks/Recommendation/template.d.ts +6 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/filterUtil.d.ts +7 -0
- package/dist/src/extensions/Blocks/common-control.d.ts +66 -0
- package/dist/src/mock/api/recommendation.d.ts +2 -0
- package/dist/src/services/recommendationApi.d.ts +6 -0
- package/dist/src/stores/config.d.ts +6 -0
- package/dist/src/stores/editor.d.ts +21 -0
- package/dist/src/utils/genericUtil.d.ts +1 -0
- package/dist/stores/editor.js +2 -1
- package/dist/utils/genericUtil.js +8 -7
- package/package.json +2 -2
|
@@ -7,6 +7,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
7
7
|
editorVisualMode: string;
|
|
8
8
|
hasChanges: boolean;
|
|
9
9
|
isStripoInitialized: boolean;
|
|
10
|
+
templateId: string;
|
|
10
11
|
}, {
|
|
11
12
|
isUndoButtonDisabled: (state: {
|
|
12
13
|
loadingStatus: boolean;
|
|
@@ -17,6 +18,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
17
18
|
editorVisualMode: string;
|
|
18
19
|
hasChanges: boolean;
|
|
19
20
|
isStripoInitialized: boolean;
|
|
21
|
+
templateId: string;
|
|
20
22
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
21
23
|
loadingStatus: boolean;
|
|
22
24
|
isCodeEditorOpen: boolean;
|
|
@@ -26,6 +28,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
26
28
|
editorVisualMode: string;
|
|
27
29
|
hasChanges: boolean;
|
|
28
30
|
isStripoInitialized: boolean;
|
|
31
|
+
templateId: string;
|
|
29
32
|
}>) => boolean;
|
|
30
33
|
isRedoButtonDisabled: (state: {
|
|
31
34
|
loadingStatus: boolean;
|
|
@@ -36,6 +39,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
36
39
|
editorVisualMode: string;
|
|
37
40
|
hasChanges: boolean;
|
|
38
41
|
isStripoInitialized: boolean;
|
|
42
|
+
templateId: string;
|
|
39
43
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
40
44
|
loadingStatus: boolean;
|
|
41
45
|
isCodeEditorOpen: boolean;
|
|
@@ -45,6 +49,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
45
49
|
editorVisualMode: string;
|
|
46
50
|
hasChanges: boolean;
|
|
47
51
|
isStripoInitialized: boolean;
|
|
52
|
+
templateId: string;
|
|
48
53
|
}>) => boolean;
|
|
49
54
|
isCodeEditorButtonDisabled: (state: {
|
|
50
55
|
loadingStatus: boolean;
|
|
@@ -55,6 +60,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
55
60
|
editorVisualMode: string;
|
|
56
61
|
hasChanges: boolean;
|
|
57
62
|
isStripoInitialized: boolean;
|
|
63
|
+
templateId: string;
|
|
58
64
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
59
65
|
loadingStatus: boolean;
|
|
60
66
|
isCodeEditorOpen: boolean;
|
|
@@ -64,6 +70,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
64
70
|
editorVisualMode: string;
|
|
65
71
|
hasChanges: boolean;
|
|
66
72
|
isStripoInitialized: boolean;
|
|
73
|
+
templateId: string;
|
|
67
74
|
}>) => boolean;
|
|
68
75
|
isPreviewButtonDisabled: (state: {
|
|
69
76
|
loadingStatus: boolean;
|
|
@@ -74,6 +81,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
74
81
|
editorVisualMode: string;
|
|
75
82
|
hasChanges: boolean;
|
|
76
83
|
isStripoInitialized: boolean;
|
|
84
|
+
templateId: string;
|
|
77
85
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
78
86
|
loadingStatus: boolean;
|
|
79
87
|
isCodeEditorOpen: boolean;
|
|
@@ -83,6 +91,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
83
91
|
editorVisualMode: string;
|
|
84
92
|
hasChanges: boolean;
|
|
85
93
|
isStripoInitialized: boolean;
|
|
94
|
+
templateId: string;
|
|
86
95
|
}>) => boolean;
|
|
87
96
|
isViewOptionsDisabled: (state: {
|
|
88
97
|
loadingStatus: boolean;
|
|
@@ -93,6 +102,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
93
102
|
editorVisualMode: string;
|
|
94
103
|
hasChanges: boolean;
|
|
95
104
|
isStripoInitialized: boolean;
|
|
105
|
+
templateId: string;
|
|
96
106
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
97
107
|
loadingStatus: boolean;
|
|
98
108
|
isCodeEditorOpen: boolean;
|
|
@@ -102,6 +112,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
102
112
|
editorVisualMode: string;
|
|
103
113
|
hasChanges: boolean;
|
|
104
114
|
isStripoInitialized: boolean;
|
|
115
|
+
templateId: string;
|
|
105
116
|
}>) => boolean;
|
|
106
117
|
isVersionHistoryButtonDisabled: (state: {
|
|
107
118
|
loadingStatus: boolean;
|
|
@@ -112,6 +123,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
112
123
|
editorVisualMode: string;
|
|
113
124
|
hasChanges: boolean;
|
|
114
125
|
isStripoInitialized: boolean;
|
|
126
|
+
templateId: string;
|
|
115
127
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
116
128
|
loadingStatus: boolean;
|
|
117
129
|
isCodeEditorOpen: boolean;
|
|
@@ -121,6 +133,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
121
133
|
editorVisualMode: string;
|
|
122
134
|
hasChanges: boolean;
|
|
123
135
|
isStripoInitialized: boolean;
|
|
136
|
+
templateId: string;
|
|
124
137
|
}>) => boolean;
|
|
125
138
|
isExportButtonDisabled: (state: {
|
|
126
139
|
loadingStatus: boolean;
|
|
@@ -131,6 +144,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
131
144
|
editorVisualMode: string;
|
|
132
145
|
hasChanges: boolean;
|
|
133
146
|
isStripoInitialized: boolean;
|
|
147
|
+
templateId: string;
|
|
134
148
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
135
149
|
loadingStatus: boolean;
|
|
136
150
|
isCodeEditorOpen: boolean;
|
|
@@ -140,6 +154,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
140
154
|
editorVisualMode: string;
|
|
141
155
|
hasChanges: boolean;
|
|
142
156
|
isStripoInitialized: boolean;
|
|
157
|
+
templateId: string;
|
|
143
158
|
}>) => boolean;
|
|
144
159
|
isSaveAsButtonDisabled: (state: {
|
|
145
160
|
loadingStatus: boolean;
|
|
@@ -150,6 +165,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
150
165
|
editorVisualMode: string;
|
|
151
166
|
hasChanges: boolean;
|
|
152
167
|
isStripoInitialized: boolean;
|
|
168
|
+
templateId: string;
|
|
153
169
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
154
170
|
loadingStatus: boolean;
|
|
155
171
|
isCodeEditorOpen: boolean;
|
|
@@ -159,6 +175,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
159
175
|
editorVisualMode: string;
|
|
160
176
|
hasChanges: boolean;
|
|
161
177
|
isStripoInitialized: boolean;
|
|
178
|
+
templateId: string;
|
|
162
179
|
}>) => boolean;
|
|
163
180
|
isTestButtonDisabled: (state: {
|
|
164
181
|
loadingStatus: boolean;
|
|
@@ -169,6 +186,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
169
186
|
editorVisualMode: string;
|
|
170
187
|
hasChanges: boolean;
|
|
171
188
|
isStripoInitialized: boolean;
|
|
189
|
+
templateId: string;
|
|
172
190
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
173
191
|
loadingStatus: boolean;
|
|
174
192
|
isCodeEditorOpen: boolean;
|
|
@@ -178,6 +196,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
178
196
|
editorVisualMode: string;
|
|
179
197
|
hasChanges: boolean;
|
|
180
198
|
isStripoInitialized: boolean;
|
|
199
|
+
templateId: string;
|
|
181
200
|
}>) => boolean;
|
|
182
201
|
isSaveButtonDisabled: (state: {
|
|
183
202
|
loadingStatus: boolean;
|
|
@@ -188,6 +207,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
188
207
|
editorVisualMode: string;
|
|
189
208
|
hasChanges: boolean;
|
|
190
209
|
isStripoInitialized: boolean;
|
|
210
|
+
templateId: string;
|
|
191
211
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
192
212
|
loadingStatus: boolean;
|
|
193
213
|
isCodeEditorOpen: boolean;
|
|
@@ -197,5 +217,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
197
217
|
editorVisualMode: string;
|
|
198
218
|
hasChanges: boolean;
|
|
199
219
|
isStripoInitialized: boolean;
|
|
220
|
+
templateId: string;
|
|
200
221
|
}>) => boolean;
|
|
201
222
|
}, {}>;
|
|
@@ -6,3 +6,4 @@ export declare const getCsrfToken: () => string;
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const getUrlParams: () => URLSearchParams;
|
|
8
8
|
export declare const getUrlParam: (paramName: string, defaultValue?: string) => string;
|
|
9
|
+
export declare const replaceString: (string?: string, values?: Record<string, string | number>, isRemoveEmptyValues?: boolean) => string;
|
package/dist/stores/editor.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = (e) => e.map((a) => a.format ? {
|
|
2
2
|
label: `${a.text} | ${a.format.key}=${a.format.value}`,
|
|
3
3
|
value: `{{${a.value}|${a.format.key}=${a.format.value}}}`
|
|
4
4
|
} : {
|
|
5
5
|
label: a.fallback ? `${a.text} | ${a.fallback}` : a.text,
|
|
6
6
|
value: a.fallback ? `{{${a.value}|${a.fallback}}}` : `{{${a.value}}}`
|
|
7
|
-
}),
|
|
8
|
-
var
|
|
9
|
-
return ((
|
|
10
|
-
};
|
|
7
|
+
}), f = () => {
|
|
8
|
+
var e;
|
|
9
|
+
return ((e = document.head.querySelector('meta[name="csrf-token"]')) == null ? void 0 : e.getAttribute("content")) ?? "";
|
|
10
|
+
}, $ = (e = "", a = {}, n = !1) => Object.entries(a).reduce((l, [t, r]) => n && (r === "" || r === null || r === void 0) ? l.replace(`&${t}={${t}}`, "") : l.replace(`{${t}}`, String(r)), e);
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
o as dynamicContentToMergeTags,
|
|
13
|
+
f as getCsrfToken,
|
|
14
|
+
$ as replaceString
|
|
14
15
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "1.0.3-beta.
|
|
3
|
+
"version": "1.0.3-beta.83937b4",
|
|
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",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"license": "ISC",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@stripoinc/ui-editor-extensions": "3.0.0",
|
|
35
|
-
"@useinsider/design-system-vue": "0.14.
|
|
35
|
+
"@useinsider/design-system-vue": "0.14.20",
|
|
36
36
|
"@vueuse/core": "11.3.0",
|
|
37
37
|
"lodash-es": "4.17.21",
|
|
38
38
|
"pinia": "2.3.1",
|