@useinsider/guido 3.11.0 → 3.12.0
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 +29 -0
- package/dist/@types/config/schemas.js +104 -84
- package/dist/components/organisms/header/EditorActions.vue.js +1 -1
- package/dist/components/organisms/header/HeaderWrapper.vue.js +3 -3
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +2 -0
- package/dist/components/organisms/header/version-history/VersionHistory.vue.js +1 -1
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +11 -10
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +1 -1
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +6 -6
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +20 -23
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +3 -3
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +8 -7
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +5 -5
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +2 -2
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +3 -3
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +9 -9
- package/dist/composables/useModuleDynamicContentRepair.js +37 -0
- package/dist/composables/useStripo.js +70 -67
- package/dist/config/migrator/index.js +7 -6
- package/dist/config/migrator/socialIconMigrator.js +29 -0
- package/dist/enums/academy.js +1 -1
- package/dist/enums/date.js +3 -4
- package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +43 -41
- package/dist/guido.css +1 -1
- package/dist/node_modules/valibot/dist/index.js +148 -112
- package/dist/src/@types/config/schemas.d.ts +30 -0
- package/dist/src/@types/generic.d.ts +18 -0
- package/dist/src/composables/useConfig.d.ts +6 -0
- package/dist/src/composables/useModuleDynamicContentRepair.d.ts +18 -0
- package/dist/src/config/migrator/socialIconMigrator.d.ts +1 -0
- package/dist/src/enums/academy.d.ts +3 -3
- package/dist/src/library.d.ts +1 -1
- package/dist/src/stores/config.d.ts +54 -0
- package/dist/src/utils/dynamicContentConverter.d.ts +27 -0
- package/dist/src/utils/environmentUtil.d.ts +5 -2
- package/dist/src/utils/genericUtil.d.ts +18 -1
- package/dist/utils/dateUtil.js +10 -23
- package/dist/utils/dynamicContentConverter.js +31 -0
- package/dist/utils/environmentUtil.js +3 -2
- package/dist/utils/genericUtil.js +42 -21
- package/package.json +10 -1
- package/dist/src/composables/useHtmlValidator.test.d.ts +0 -1
- package/dist/src/config/compiler/utils/recommendationIgnoreUtils.test.d.ts +0 -1
package/README.md
CHANGED
|
@@ -113,6 +113,14 @@ const config: GuidoConfigInput = {
|
|
|
113
113
|
html?: string,
|
|
114
114
|
css?: string,
|
|
115
115
|
preselectedDynamicContent?: DynamicContent[],
|
|
116
|
+
// Partner-keyed catalog of the account's dynamic-content attributes, e.g.
|
|
117
|
+
// { [partnerName]: [{ text, value, children }] } (architect is multi-partner).
|
|
118
|
+
// Guido flattens the active (first) partner's leaf attributes and uses them to
|
|
119
|
+
// repair label-form tokens (`{{ Phone Number }}` -> `{{phone_number}}`) in
|
|
120
|
+
// dropped saved modules; an unresolvable token raises a single warning toaster
|
|
121
|
+
// (translation key `dynamic-content.unresolved-attributes-on-drop`, registered
|
|
122
|
+
// host-side). Omit it and the repair is a silent no-op. Default: {}.
|
|
123
|
+
dynamicContentList?: DynamicContentList,
|
|
116
124
|
selectedUnsubscribePages?: number[],
|
|
117
125
|
forceRecreate?: boolean, // Default: false - Force recreate template in Stripo storage
|
|
118
126
|
migration?: {
|
|
@@ -520,6 +528,8 @@ import type {
|
|
|
520
528
|
BlocksConfig,
|
|
521
529
|
CompilerConfig,
|
|
522
530
|
DynamicContent,
|
|
531
|
+
DynamicContentList,
|
|
532
|
+
DynamicContentNode,
|
|
523
533
|
DefaultBlockType,
|
|
524
534
|
CustomBlockType,
|
|
525
535
|
} from '@useinsider/guido';
|
|
@@ -584,6 +594,25 @@ const closeModal = () => {
|
|
|
584
594
|
</script>
|
|
585
595
|
```
|
|
586
596
|
|
|
597
|
+
### Saved-module token repair
|
|
598
|
+
|
|
599
|
+
Legacy **saved modules** may serialize their merge-tag chips by display label
|
|
600
|
+
(`{{ Phone Number }}`) instead of the canonical token (`{{phone_number}}`), which the
|
|
601
|
+
backend can't resolve. When such a module is dropped or copied into the editor, Guido
|
|
602
|
+
repairs these automatically using the `template.dynamicContentList` catalog (see
|
|
603
|
+
[Configuration](#configuration)):
|
|
604
|
+
|
|
605
|
+
- **Label match** → canonical value: `{{ Phone Number }}` → `{{phone_number}}` (any author `| default:` / format tail is preserved).
|
|
606
|
+
- Already-canonical values, Liquid nested tokens (`coupon.code`), recommendation-block variables (`123_0_price`), allowed system tokens, and `data-*` product tags are left untouched.
|
|
607
|
+
- An **unresolvable** token is left in place and raises a single **warning toaster** (translation key `dynamic-content.unresolved-attributes-on-drop`; register the copy host-side).
|
|
608
|
+
|
|
609
|
+
Pass `template.dynamicContentList` as a **partner-keyed** tree
|
|
610
|
+
(`{ [partnerName]: DynamicContentNode[] }`, where a node is `{ text, value, children? }`).
|
|
611
|
+
Guido flattens the **active (first) partner's** leaf attributes. Products that manage
|
|
612
|
+
multiple partners (e.g. architect) should key by partner and place the active partner
|
|
613
|
+
first. Omit the prop and the repair is a safe no-op — nothing is rewritten and no
|
|
614
|
+
toaster fires (useful before the host has wired the catalog).
|
|
615
|
+
|
|
587
616
|
---
|
|
588
617
|
|
|
589
618
|
## Development
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModuleFolderDefaults as
|
|
2
|
-
import { object as a, number as
|
|
1
|
+
import { ModuleFolderDefaults as y } from "../../enums/defaults.js";
|
|
2
|
+
import { object as a, number as n, optional as e, string as t, picklist as l, pipe as p, minLength as b, custom as f, boolean as o, array as c, record as k, fallback as C, literal as i, looseObject as g, variant as R, union as h, unknown as s, lazy as T } from "../../node_modules/valibot/dist/index.js";
|
|
3
3
|
const d = {
|
|
4
4
|
/** Promotional/marketing emails */
|
|
5
5
|
PROMOTIONAL: 1,
|
|
@@ -12,7 +12,7 @@ const d = {
|
|
|
12
12
|
ARCHITECT: 49,
|
|
13
13
|
/** Unsubscribe page builder */
|
|
14
14
|
UNSUBSCRIBE_PAGES: 97
|
|
15
|
-
},
|
|
15
|
+
}, A = a({
|
|
16
16
|
/** Unique identifier for the template being edited */
|
|
17
17
|
templateId: p(
|
|
18
18
|
t(),
|
|
@@ -25,12 +25,12 @@ const d = {
|
|
|
25
25
|
),
|
|
26
26
|
/** Optional variation ID for A/B testing */
|
|
27
27
|
variationId: e(t())
|
|
28
|
-
}),
|
|
28
|
+
}), I = a({
|
|
29
29
|
/** Fallback font name (e.g., "Georgia") */
|
|
30
30
|
name: t(),
|
|
31
31
|
/** Fallback font family (e.g., "serif" or "sans-serif") */
|
|
32
32
|
family: t()
|
|
33
|
-
}),
|
|
33
|
+
}), L = a({
|
|
34
34
|
/** Partner/organization name (required) */
|
|
35
35
|
name: p(
|
|
36
36
|
t(),
|
|
@@ -53,8 +53,8 @@ const d = {
|
|
|
53
53
|
/** Display name for the current user */
|
|
54
54
|
username: e(t(), "Guido User"),
|
|
55
55
|
/** Fallback font settings from partner settings — used to match backend size calculation */
|
|
56
|
-
fallbackFont: e(
|
|
57
|
-
}),
|
|
56
|
+
fallbackFont: e(I)
|
|
57
|
+
}), v = a({
|
|
58
58
|
/** Display text for the dynamic content */
|
|
59
59
|
text: t(),
|
|
60
60
|
/** Template variable value (e.g., {{username}}) */
|
|
@@ -68,35 +68,46 @@ const d = {
|
|
|
68
68
|
value: t()
|
|
69
69
|
})
|
|
70
70
|
)
|
|
71
|
-
}),
|
|
71
|
+
}), S = T(() => g({
|
|
72
|
+
text: e(t()),
|
|
73
|
+
// eslint-disable-next-line camelcase -- backend field name
|
|
74
|
+
tag_text: e(t()),
|
|
75
|
+
value: e(t()),
|
|
76
|
+
children: e(c(S)),
|
|
77
|
+
// eslint-disable-next-line camelcase -- backend field name
|
|
78
|
+
select_items: e(c(S))
|
|
79
|
+
})), P = k(
|
|
80
|
+
t(),
|
|
81
|
+
C(c(S), [])
|
|
82
|
+
), D = g({
|
|
72
83
|
/** Block ID (matches the dictionary key and the legacy HTML element id) */
|
|
73
|
-
id: e(
|
|
84
|
+
id: e(n()),
|
|
74
85
|
/** Decimal places for price display (legacy data may use string or number) */
|
|
75
|
-
decimalCount: e(
|
|
86
|
+
decimalCount: e(h([t(), n()])),
|
|
76
87
|
/** Pinned product IDs (empty array when filter-driven) */
|
|
77
|
-
productIds: e(c(
|
|
88
|
+
productIds: e(c(s())),
|
|
78
89
|
/** Whether the block requested live products at send time */
|
|
79
90
|
sendProductRequestFlag: e(o()),
|
|
80
91
|
/** Whether to randomize product order */
|
|
81
92
|
shuffleProducts: e(o()),
|
|
82
93
|
/** Filter rules driving product selection */
|
|
83
|
-
filters: e(c(
|
|
94
|
+
filters: e(c(s())),
|
|
84
95
|
/** Currency code (e.g. 'EUR') — sometimes absent in legacy data */
|
|
85
96
|
currency: e(t()),
|
|
86
97
|
/** Currency display settings (separators, alignment, decimals) */
|
|
87
|
-
currencySettings: e(
|
|
98
|
+
currencySettings: e(s()),
|
|
88
99
|
/** Locale (e.g. 'nl_NL') */
|
|
89
100
|
language: e(t()),
|
|
90
101
|
/** Recommendation strategy key (e.g. 'newArrivals') */
|
|
91
102
|
strategy: e(t()),
|
|
92
103
|
/** Snapshot of products as rendered by the legacy block */
|
|
93
|
-
recommendedProducts: e(c(
|
|
104
|
+
recommendedProducts: e(c(s())),
|
|
94
105
|
/** Number of product cards per row */
|
|
95
|
-
cardsInRow: e(
|
|
106
|
+
cardsInRow: e(n()),
|
|
96
107
|
/** Mobile-only padding (right) */
|
|
97
|
-
mobileRightPadding: e(
|
|
108
|
+
mobileRightPadding: e(n()),
|
|
98
109
|
/** Mobile-only padding (left) */
|
|
99
|
-
mobileLeftPadding: e(
|
|
110
|
+
mobileLeftPadding: e(n()),
|
|
100
111
|
/** Disable responsive scaling */
|
|
101
112
|
unresponsive: e(o()),
|
|
102
113
|
/** Layout orientation ('vertical' | 'horizontal') */
|
|
@@ -106,14 +117,14 @@ const d = {
|
|
|
106
117
|
/** Block type marker used by some legacy variants */
|
|
107
118
|
blockType: e(t()),
|
|
108
119
|
/** Size variant marker (legacy data may use string or number) */
|
|
109
|
-
size: e(
|
|
120
|
+
size: e(h([t(), n()])),
|
|
110
121
|
/** Vertical responsiveness flag (legacy size=1 variants) */
|
|
111
122
|
verticalResponsiveness: e(o()),
|
|
112
123
|
/** Legacy "Move to next line" price placement toggle (cardPricePlacement.js) */
|
|
113
124
|
isPriceMovedToNextLine: e(o()),
|
|
114
125
|
/** Legacy "Hide if same as discounted" / delete-price-for-zero-sale toggle */
|
|
115
126
|
isPriceDeletedForZeroSale: e(o())
|
|
116
|
-
}),
|
|
127
|
+
}), E = a({
|
|
117
128
|
/**
|
|
118
129
|
* Legacy recommendation block configs keyed by block ID.
|
|
119
130
|
* Pass this when loading a template authored with the v1
|
|
@@ -121,51 +132,58 @@ const d = {
|
|
|
121
132
|
* strategy, currency, locale, and layout data.
|
|
122
133
|
*/
|
|
123
134
|
recommendationConfigs: e(
|
|
124
|
-
k(t(),
|
|
135
|
+
k(t(), D),
|
|
125
136
|
{}
|
|
126
137
|
)
|
|
127
|
-
}),
|
|
138
|
+
}), M = a({
|
|
128
139
|
/** Initial HTML content */
|
|
129
140
|
html: e(t(), ""),
|
|
130
141
|
/** Initial CSS content */
|
|
131
142
|
css: e(t(), ""),
|
|
132
143
|
/** Preselected dynamic content items */
|
|
133
144
|
preselectedDynamicContent: e(
|
|
134
|
-
c(
|
|
145
|
+
c(v),
|
|
135
146
|
[]
|
|
136
147
|
),
|
|
148
|
+
/**
|
|
149
|
+
* Partner-keyed set of dynamic-content items the account offers, e.g.
|
|
150
|
+
* `{ [partnerName]: [{ text, value, children }] }`. Guido flattens the active
|
|
151
|
+
* (first) partner's leaf attributes into the label→token map that repairs
|
|
152
|
+
* label-form placeholders (`{{ Phone Number }}`) in dropped saved modules.
|
|
153
|
+
*/
|
|
154
|
+
dynamicContentList: e(P, {}),
|
|
137
155
|
/** Valid custom field attribute names from the partner's categorized fields */
|
|
138
156
|
customFieldAttributes: e(c(t()), []),
|
|
139
157
|
/** Selected unsubscribe page IDs */
|
|
140
|
-
selectedUnsubscribePages: e(c(
|
|
158
|
+
selectedUnsubscribePages: e(c(n()), []),
|
|
141
159
|
/** Force recreate template in Stripo storage (use true when updating externally modified templates) */
|
|
142
160
|
forceRecreate: e(o(), !1),
|
|
143
161
|
/** Migration-only inputs (legacy block configs) */
|
|
144
|
-
migration: e(
|
|
145
|
-
}),
|
|
162
|
+
migration: e(E, {})
|
|
163
|
+
}), N = a({
|
|
146
164
|
/** Sender display name */
|
|
147
165
|
senderName: e(t(), ""),
|
|
148
166
|
/** Email subject line */
|
|
149
167
|
subject: e(t(), "")
|
|
150
|
-
}),
|
|
168
|
+
}), O = a({
|
|
151
169
|
/** Locale for the editor UI */
|
|
152
170
|
locale: e(t(), "en"),
|
|
153
171
|
/** Path to translations object */
|
|
154
172
|
translationsPath: e(t(), "window.trans[Object.keys(window.trans)[0]]"),
|
|
155
173
|
/** Migration date for template compatibility */
|
|
156
|
-
migrationDate: e(
|
|
174
|
+
migrationDate: e(n(), 1759696858),
|
|
157
175
|
/** Email header settings */
|
|
158
|
-
emailHeader: e(
|
|
176
|
+
emailHeader: e(N, { senderName: "", subject: "" }),
|
|
159
177
|
/** Folder name for user-saved modules (used by Stripo plugin panel for path construction) */
|
|
160
|
-
savedModulesFolderName: e(t(),
|
|
178
|
+
savedModulesFolderName: e(t(), y.SAVED_MODULES),
|
|
161
179
|
/** Folder name for default/prebuilt modules (used by Stripo plugin panel for path construction) */
|
|
162
|
-
defaultModulesFolderName: e(t(),
|
|
163
|
-
}),
|
|
180
|
+
defaultModulesFolderName: e(t(), y.DEFAULT_MODULES)
|
|
181
|
+
}), x = a({
|
|
164
182
|
/** Whether to show the header bar */
|
|
165
183
|
showHeader: e(o(), !0),
|
|
166
184
|
/** Custom label for back button (if shown) */
|
|
167
185
|
backButtonLabel: e(t())
|
|
168
|
-
}),
|
|
186
|
+
}), F = a({
|
|
169
187
|
/** Enable dynamic content insertion */
|
|
170
188
|
dynamicContent: e(o(), !0),
|
|
171
189
|
/** Enable save as template functionality */
|
|
@@ -184,7 +202,7 @@ const d = {
|
|
|
184
202
|
liquidSyntax: e(o(), !1),
|
|
185
203
|
/** Enable autosave (3-min interval + tab-hide). User toggles on/off from the header. */
|
|
186
204
|
autosave: e(o(), !1)
|
|
187
|
-
}),
|
|
205
|
+
}), U = l([
|
|
188
206
|
"amp-accordion",
|
|
189
207
|
"amp-carousel",
|
|
190
208
|
"amp-form-controls",
|
|
@@ -198,7 +216,7 @@ const d = {
|
|
|
198
216
|
"text-block",
|
|
199
217
|
"timer-block",
|
|
200
218
|
"video-block"
|
|
201
|
-
]),
|
|
219
|
+
]), B = l([
|
|
202
220
|
"dynamic-content",
|
|
203
221
|
"checkbox-block",
|
|
204
222
|
"radio-button-block",
|
|
@@ -206,15 +224,15 @@ const d = {
|
|
|
206
224
|
"unsubscribe-block",
|
|
207
225
|
"coupon-block",
|
|
208
226
|
"items-block"
|
|
209
|
-
]),
|
|
227
|
+
]), w = a({
|
|
210
228
|
/** Default blocks to exclude from the editor */
|
|
211
229
|
excludeDefaults: e(
|
|
212
|
-
c(
|
|
230
|
+
c(U),
|
|
213
231
|
[]
|
|
214
232
|
),
|
|
215
233
|
/** Custom blocks to include in the editor */
|
|
216
234
|
includeCustoms: e(
|
|
217
|
-
c(
|
|
235
|
+
c(B),
|
|
218
236
|
[]
|
|
219
237
|
)
|
|
220
238
|
}), m = a({
|
|
@@ -223,8 +241,8 @@ const d = {
|
|
|
223
241
|
/** Human-readable description */
|
|
224
242
|
description: e(t()),
|
|
225
243
|
/** Priority for rule ordering (lower = earlier) */
|
|
226
|
-
priority:
|
|
227
|
-
}),
|
|
244
|
+
priority: n()
|
|
245
|
+
}), H = a({
|
|
228
246
|
...m.entries,
|
|
229
247
|
type: i("replace"),
|
|
230
248
|
/** String to search for */
|
|
@@ -233,7 +251,7 @@ const d = {
|
|
|
233
251
|
replacement: t(),
|
|
234
252
|
/** Replace all occurrences (default: false) */
|
|
235
253
|
replaceAll: e(o())
|
|
236
|
-
}),
|
|
254
|
+
}), _ = a({
|
|
237
255
|
...m.entries,
|
|
238
256
|
type: i("regex"),
|
|
239
257
|
/** Regex pattern string */
|
|
@@ -242,85 +260,87 @@ const d = {
|
|
|
242
260
|
replacement: t(),
|
|
243
261
|
/** Regex flags (e.g., 'gi') */
|
|
244
262
|
flags: e(t())
|
|
245
|
-
}),
|
|
263
|
+
}), j = a({
|
|
246
264
|
...m.entries,
|
|
247
265
|
type: i("remove"),
|
|
248
266
|
/** Strings or patterns to remove */
|
|
249
267
|
targets: c(t())
|
|
250
|
-
}),
|
|
268
|
+
}), q = a({
|
|
251
269
|
...m.entries,
|
|
252
270
|
type: i("custom"),
|
|
253
271
|
/** Custom processor function */
|
|
254
|
-
processor:
|
|
272
|
+
processor: f(
|
|
255
273
|
(u) => typeof u == "function",
|
|
256
274
|
"processor must be a function"
|
|
257
275
|
)
|
|
258
|
-
}),
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
]),
|
|
276
|
+
}), G = R("type", [
|
|
277
|
+
H,
|
|
278
|
+
_,
|
|
279
|
+
j,
|
|
280
|
+
q
|
|
281
|
+
]), V = a({
|
|
264
282
|
/** Custom compiler rules to apply */
|
|
265
|
-
customRules: e(c(
|
|
283
|
+
customRules: e(c(G), []),
|
|
266
284
|
/** Skip default compiler rules */
|
|
267
285
|
ignoreDefaultRules: e(o(), !1)
|
|
268
|
-
}),
|
|
286
|
+
}), z = a({
|
|
269
287
|
/**
|
|
270
288
|
* External validation handler called before save completes.
|
|
271
289
|
* Return false to cancel the save operation.
|
|
272
290
|
*/
|
|
273
291
|
externalValidation: e(
|
|
274
|
-
|
|
292
|
+
f(
|
|
275
293
|
(u) => typeof u == "function",
|
|
276
294
|
"externalValidation must be a function"
|
|
277
295
|
)
|
|
278
296
|
)
|
|
279
|
-
}),
|
|
297
|
+
}), K = a({
|
|
280
298
|
// Required sections
|
|
281
299
|
/** Identity configuration (required) */
|
|
282
|
-
identity:
|
|
300
|
+
identity: A,
|
|
283
301
|
/** Partner configuration (required) */
|
|
284
|
-
partner:
|
|
302
|
+
partner: L,
|
|
285
303
|
// Optional sections (with defaults)
|
|
286
304
|
/** Template content and presets */
|
|
287
|
-
template: e(
|
|
305
|
+
template: e(M, {}),
|
|
288
306
|
/** Editor settings */
|
|
289
|
-
editor: e(
|
|
307
|
+
editor: e(O, {}),
|
|
290
308
|
/** UI configuration */
|
|
291
|
-
ui: e(
|
|
309
|
+
ui: e(x, {}),
|
|
292
310
|
/** Feature toggles */
|
|
293
|
-
features: e(
|
|
311
|
+
features: e(F, {}),
|
|
294
312
|
/** Block configuration */
|
|
295
|
-
blocks: e(
|
|
313
|
+
blocks: e(w, {}),
|
|
296
314
|
/** Compiler configuration */
|
|
297
|
-
compiler: e(
|
|
315
|
+
compiler: e(V, {}),
|
|
298
316
|
/** Callbacks and event handlers */
|
|
299
|
-
callbacks: e(
|
|
317
|
+
callbacks: e(z, {})
|
|
300
318
|
});
|
|
301
319
|
export {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
v as
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
320
|
+
w as BlocksSchema,
|
|
321
|
+
z as CallbacksSchema,
|
|
322
|
+
G as CompilerRuleSchema,
|
|
323
|
+
V as CompilerSchema,
|
|
324
|
+
B as CustomBlockTypeSchema,
|
|
325
|
+
q as CustomRuleSchema,
|
|
326
|
+
U as DefaultBlockTypeSchema,
|
|
327
|
+
P as DynamicContentListSchema,
|
|
328
|
+
S as DynamicContentNodeSchema,
|
|
329
|
+
v as DynamicContentSchema,
|
|
330
|
+
O as EditorSchema,
|
|
331
|
+
N as EmailHeaderSchema,
|
|
332
|
+
I as FallbackFontSchema,
|
|
333
|
+
F as FeaturesSchema,
|
|
334
|
+
K as GuidoConfigSchema,
|
|
335
|
+
A as IdentitySchema,
|
|
336
|
+
D as LegacyRecommendationConfigSchema,
|
|
317
337
|
d as MessageType,
|
|
318
|
-
|
|
338
|
+
L as PartnerSchema,
|
|
319
339
|
r as ProductType,
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
340
|
+
_ as RegexRuleSchema,
|
|
341
|
+
j as RemoveRuleSchema,
|
|
342
|
+
H as ReplaceRuleSchema,
|
|
343
|
+
E as TemplateMigrationSchema,
|
|
344
|
+
M as TemplateSchema,
|
|
345
|
+
x as UISchema
|
|
326
346
|
};
|
|
@@ -8,6 +8,8 @@ const c = /* @__PURE__ */ n({
|
|
|
8
8
|
setup(l, { expose: r }) {
|
|
9
9
|
const e = m(null);
|
|
10
10
|
return r({
|
|
11
|
+
// Stryker disable next-line OptionalChaining: RightSlot is always rendered (no
|
|
12
|
+
// v-if), so rightSlotRef.value is never null and `?.` cannot short-circuit.
|
|
11
13
|
handleSave: (t) => {
|
|
12
14
|
var o;
|
|
13
15
|
return (o = e.value) == null ? void 0 : o.handleSave(t);
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import d from "./AMPOnboarding.vue2.js";
|
|
2
|
+
/* empty css */
|
|
2
3
|
import g from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
return o.isVisible ? p(o.InOnboard, { key: "guido__amp-onboard", staticClass: "w-21-s p-a z-11", class: (
|
|
4
|
+
var c = function() {
|
|
5
|
+
var n, r, e, i, a, s;
|
|
6
|
+
var t = this, p = t._self._c, o = t._self._setupProxy;
|
|
7
|
+
return o.isVisible ? p(o.InOnboard, { key: "guido__amp-onboard", staticClass: "w-21-s p-a z-11", class: (n = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : n.classes, attrs: { id: "guido__amp-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (r = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : r.bottom, "left-position": (e = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : e.left, "pages-config": o.onboardingStore.onboardings.ampOnboarding.config, "pointer-position": (i = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : i.position, "right-position": (a = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : a.right, "top-position": (s = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : s.top }, on: { backButtonClick: o.handleBack, close: function(b) {
|
|
7
8
|
return o.onboardingStore.close("ampOnboarding");
|
|
8
|
-
}, nextButtonClick: o.handleNext } }) :
|
|
9
|
-
}, m = [],
|
|
9
|
+
}, nextButtonClick: o.handleNext } }) : t._e();
|
|
10
|
+
}, m = [], l = /* @__PURE__ */ g(
|
|
10
11
|
d,
|
|
11
|
-
|
|
12
|
+
c,
|
|
12
13
|
m,
|
|
13
14
|
!1,
|
|
14
15
|
null,
|
|
15
|
-
|
|
16
|
+
"6bcaca8a"
|
|
16
17
|
);
|
|
17
|
-
const
|
|
18
|
+
const S = l.exports;
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
S as default
|
|
20
21
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import g from "./ItemsOnboarding.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import m from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var
|
|
4
|
+
var c = function() {
|
|
5
5
|
var e, n, r, i, s, a;
|
|
6
6
|
var o = this, d = o._self._c, t = o._self._setupProxy;
|
|
7
|
-
return t.isVisible ? d(t.InOnboard, { key: "guido__items-onboard", staticClass: "w-21-s p-a z-11", class: (e = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : e.classes, attrs: { id: "guido__items-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : n.bottom, "left-position": (r = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : r.left, "pages-config": t.onboardingStore.onboardings.itemsOnboarding.config, "pointer-position": (i = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : i.position, "right-position": (s = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : s.right, "top-position": (a = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(
|
|
7
|
+
return t.isVisible ? d(t.InOnboard, { key: "guido__items-onboard", staticClass: "w-21-s p-a z-11", class: (e = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : e.classes, attrs: { id: "guido__items-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : n.bottom, "left-position": (r = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : r.left, "pages-config": t.onboardingStore.onboardings.itemsOnboarding.config, "pointer-position": (i = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : i.position, "right-position": (s = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : s.right, "top-position": (a = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(_) {
|
|
8
8
|
return t.onboardingStore.close("itemsOnboarding");
|
|
9
9
|
}, nextButtonClick: t.handleNext } }) : o._e();
|
|
10
|
-
},
|
|
10
|
+
}, l = [], b = /* @__PURE__ */ m(
|
|
11
11
|
g,
|
|
12
|
-
l,
|
|
13
12
|
c,
|
|
13
|
+
l,
|
|
14
14
|
!1,
|
|
15
15
|
null,
|
|
16
|
-
"
|
|
16
|
+
"bb3cca55"
|
|
17
17
|
);
|
|
18
|
-
const I =
|
|
18
|
+
const I = b.exports;
|
|
19
19
|
export {
|
|
20
20
|
I as default
|
|
21
21
|
};
|
|
@@ -1,46 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useConfig as
|
|
1
|
+
import { defineComponent as b, ref as v, computed as o } from "vue";
|
|
2
|
+
import D from "../../wrappers/WpModal.vue.js";
|
|
3
|
+
import { useConfig as _ } from "../../../composables/useConfig.js";
|
|
4
4
|
import { useTranslations as y } from "../../../composables/useTranslations.js";
|
|
5
|
-
import { ACADEMY_LINKS as
|
|
5
|
+
import { ACADEMY_LINKS as m } from "../../../enums/academy.js";
|
|
6
6
|
import L from "../../../static/assets/onboarding-img.svg.js";
|
|
7
|
-
import { useOnboardingStore as
|
|
8
|
-
import { isAfterDate as
|
|
9
|
-
const
|
|
7
|
+
import { useOnboardingStore as h } from "../../../stores/onboarding.js";
|
|
8
|
+
import { isAfterDate as C } from "../../../utils/dateUtil.js";
|
|
9
|
+
const x = /* @__PURE__ */ b({
|
|
10
10
|
__name: "NewVersionPopup",
|
|
11
11
|
emits: ["onboarding-finished"],
|
|
12
|
-
setup(
|
|
13
|
-
const e = y(), t =
|
|
14
|
-
var l,
|
|
15
|
-
return (
|
|
16
|
-
}), n = o(() =>
|
|
17
|
-
|
|
18
|
-
)), f = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-title") : e("email-editor.onboarding-title")), g = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-description", {
|
|
19
|
-
sunsetDate: d.value,
|
|
20
|
-
academyLink: c.EMAIL_EDITOR
|
|
12
|
+
setup(w, { emit: i }) {
|
|
13
|
+
const e = y(), t = h(), a = v(!0), { config: s } = _(), p = o(() => {
|
|
14
|
+
var l, u;
|
|
15
|
+
return (u = (l = s.value) == null ? void 0 : l.editor) == null ? void 0 : u.migrationDate;
|
|
16
|
+
}), n = o(() => C(p.value || 0)), c = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-title") : e("email-editor.onboarding-title")), f = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-description", {
|
|
17
|
+
academyLink: m.EMAIL_EDITOR
|
|
21
18
|
}) : e("email-editor.onboarding-description", {
|
|
22
|
-
academyLink:
|
|
23
|
-
})),
|
|
19
|
+
academyLink: m.EMAIL_EDITOR
|
|
20
|
+
})), d = o(() => n.value ? e("products.cancel") : e("products.remind-me-later")), g = o(() => ({
|
|
24
21
|
primaryButton: {
|
|
25
22
|
type: "primary",
|
|
26
23
|
labelText: e("left-menu.discover-now")
|
|
27
24
|
},
|
|
28
25
|
secondaryButton: {
|
|
29
26
|
type: "subtle-primary",
|
|
30
|
-
labelText:
|
|
27
|
+
labelText: d.value
|
|
31
28
|
}
|
|
32
29
|
})), r = () => {
|
|
33
|
-
|
|
30
|
+
a.value = !1, i("onboarding-finished");
|
|
34
31
|
};
|
|
35
|
-
return { __sfc: !0, emit:
|
|
32
|
+
return { __sfc: !0, emit: i, trans: e, onboardingStore: t, isVisible: a, config: s, migrationDate: p, isAfterMigrationDate: n, popupTitle: c, popupDescription: f, secondaryButtonLabel: d, footerButtonOptions: g, closePopup: r, handleDiscoverNow: () => {
|
|
36
33
|
t.onDiscoverNowClicked(), r();
|
|
37
34
|
}, handleRemindLater: () => {
|
|
38
35
|
t.onRemindMeLater(), r();
|
|
39
36
|
}, handleClose: () => {
|
|
40
37
|
t.onNewVersionPopupClose(), r();
|
|
41
|
-
}, WpModal:
|
|
38
|
+
}, WpModal: D, onboardingImageSvg: L };
|
|
42
39
|
}
|
|
43
40
|
});
|
|
44
41
|
export {
|
|
45
|
-
|
|
42
|
+
x as default
|
|
46
43
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import g from "./VersionHistoryOnboarding.vue2.js";
|
|
2
|
+
/* empty css */
|
|
2
3
|
import l from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
4
|
var c = function() {
|
|
4
|
-
var
|
|
5
|
+
var t, n, i, e, s, a;
|
|
5
6
|
var r = this, d = r._self._c, o = r._self._setupProxy;
|
|
6
|
-
return o.isVisible ? d(o.InOnboard, { key: "guido__version-history-onboard", staticClass: "w-21-s p-a z-11", class: (
|
|
7
|
+
return o.isVisible ? d(o.InOnboard, { key: "guido__version-history-onboard", staticClass: "w-21-s p-a z-11", class: (t = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : t.classes, attrs: { id: "guido__version-history-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : n.bottom, "left-position": (i = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : i.left, "pages-config": o.onboardingStore.onboardings.versionHistoryOnboarding.config, "pointer-position": (e = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : e.position, "right-position": (s = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : s.right, "top-position": (a = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : a.top }, on: { backButtonClick: o.handleBack, close: function(u) {
|
|
7
8
|
return o.onboardingStore.close("versionHistoryOnboarding");
|
|
8
9
|
}, nextButtonClick: o.handleNext } }) : r._e();
|
|
9
|
-
},
|
|
10
|
+
}, p = [], _ = /* @__PURE__ */ l(
|
|
10
11
|
g,
|
|
11
12
|
c,
|
|
12
|
-
|
|
13
|
+
p,
|
|
13
14
|
!1,
|
|
14
15
|
null,
|
|
15
|
-
|
|
16
|
+
"9bdef600"
|
|
16
17
|
);
|
|
17
|
-
const
|
|
18
|
+
const y = _.exports;
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
y as default
|
|
20
21
|
};
|