@useinsider/guido 3.22.0-beta.0523ffa → 3.22.0-beta.092e793
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 +0 -1
- package/dist/@types/config/schemas.js +39 -41
- package/dist/composables/useStripo.js +43 -44
- package/dist/package.json.js +2 -2
- package/dist/src/@types/config/schemas.d.ts +0 -4
- package/dist/src/composables/useConfig.d.ts +0 -2
- package/dist/src/stores/config.d.ts +0 -20
- package/dist/static/stripo-runtime-manifest.json.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -161,7 +161,6 @@ const config: GuidoConfigInput = {
|
|
|
161
161
|
displayConditions?: boolean, // Default: true
|
|
162
162
|
unsubscribe?: boolean, // Default: true
|
|
163
163
|
modulesDisabled?: boolean, // Default: false - Disable modules panel
|
|
164
|
-
buttonTextDecorationsEnabled?: boolean, // Default: false - Show Underline and Strikethrough in the Button block's Text Style settings
|
|
165
164
|
liquidSyntax?: boolean, // Default: false - Enable Liquid template syntax
|
|
166
165
|
autosave?: boolean, // Default: false - Show the Auto Save toggle in the header. See wiki/AUTOSAVE.md.
|
|
167
166
|
allowlistEnabled?: boolean, // Default: false - Pre-save domain-allowlist check (opt-in). Guido self-serves the block toaster (role lookup, deep-link, copy from window.trans).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModuleFolderDefaults as
|
|
2
|
-
import { object as a, number as s, optional as e, string as t, picklist as m, pipe as i, minLength as b, custom as k, boolean as o, array as
|
|
1
|
+
import { ModuleFolderDefaults as f } from "../../enums/defaults.js";
|
|
2
|
+
import { object as a, number as s, optional as e, string as t, picklist as m, pipe as i, minLength as b, custom as k, boolean as o, array as c, transform as y, unknown as r, record as g, fallback as R, literal as u, looseObject as C, variant as I, union as h, lazy as T } from "../../node_modules/valibot/dist/index.js";
|
|
3
3
|
const p = {
|
|
4
4
|
/** Promotional/marketing emails */
|
|
5
5
|
PROMOTIONAL: 1,
|
|
@@ -76,30 +76,30 @@ const p = {
|
|
|
76
76
|
value: t()
|
|
77
77
|
})
|
|
78
78
|
)
|
|
79
|
-
}),
|
|
79
|
+
}), S = T(() => C({
|
|
80
80
|
text: e(t()),
|
|
81
81
|
// eslint-disable-next-line camelcase -- backend field name
|
|
82
82
|
tag_text: e(t()),
|
|
83
83
|
value: e(t()),
|
|
84
|
-
children: e(
|
|
84
|
+
children: e(c(S)),
|
|
85
85
|
// eslint-disable-next-line camelcase -- backend field name
|
|
86
|
-
select_items: e(
|
|
87
|
-
})),
|
|
86
|
+
select_items: e(c(S))
|
|
87
|
+
})), N = g(
|
|
88
88
|
t(),
|
|
89
|
-
R(
|
|
90
|
-
),
|
|
89
|
+
R(c(S), [])
|
|
90
|
+
), P = C({
|
|
91
91
|
/** Block ID (matches the dictionary key and the legacy HTML element id) */
|
|
92
92
|
id: e(s()),
|
|
93
93
|
/** Decimal places for price display (legacy data may use string or number) */
|
|
94
94
|
decimalCount: e(h([t(), s()])),
|
|
95
95
|
/** Pinned product IDs (empty array when filter-driven) */
|
|
96
|
-
productIds: e(
|
|
96
|
+
productIds: e(c(r())),
|
|
97
97
|
/** Whether the block requested live products at send time */
|
|
98
98
|
sendProductRequestFlag: e(o()),
|
|
99
99
|
/** Whether to randomize product order */
|
|
100
100
|
shuffleProducts: e(o()),
|
|
101
101
|
/** Filter rules driving product selection */
|
|
102
|
-
filters: e(
|
|
102
|
+
filters: e(c(r())),
|
|
103
103
|
/** Currency code (e.g. 'EUR') — sometimes absent in legacy data */
|
|
104
104
|
currency: e(t()),
|
|
105
105
|
/** Currency display settings (separators, alignment, decimals) */
|
|
@@ -109,7 +109,7 @@ const p = {
|
|
|
109
109
|
/** Recommendation strategy key (e.g. 'newArrivals') */
|
|
110
110
|
strategy: e(t()),
|
|
111
111
|
/** Snapshot of products as rendered by the legacy block */
|
|
112
|
-
recommendedProducts: e(
|
|
112
|
+
recommendedProducts: e(c(r())),
|
|
113
113
|
/** Number of product cards per row */
|
|
114
114
|
cardsInRow: e(s()),
|
|
115
115
|
/** Mobile-only padding (right) */
|
|
@@ -132,7 +132,7 @@ const p = {
|
|
|
132
132
|
isPriceMovedToNextLine: e(o()),
|
|
133
133
|
/** Legacy "Hide if same as discounted" / delete-price-for-zero-sale toggle */
|
|
134
134
|
isPriceDeletedForZeroSale: e(o())
|
|
135
|
-
}),
|
|
135
|
+
}), v = a({
|
|
136
136
|
/**
|
|
137
137
|
* Legacy recommendation block configs keyed by block ID.
|
|
138
138
|
* Pass this when loading a template authored with the v1
|
|
@@ -140,17 +140,17 @@ const p = {
|
|
|
140
140
|
* strategy, currency, locale, and layout data.
|
|
141
141
|
*/
|
|
142
142
|
recommendationConfigs: e(
|
|
143
|
-
g(t(),
|
|
143
|
+
g(t(), P),
|
|
144
144
|
{}
|
|
145
145
|
)
|
|
146
|
-
}),
|
|
146
|
+
}), x = a({
|
|
147
147
|
/** Initial HTML content */
|
|
148
148
|
html: e(t(), ""),
|
|
149
149
|
/** Initial CSS content */
|
|
150
150
|
css: e(t(), ""),
|
|
151
151
|
/** Preselected dynamic content items */
|
|
152
152
|
preselectedDynamicContent: e(
|
|
153
|
-
|
|
153
|
+
c(M),
|
|
154
154
|
[]
|
|
155
155
|
),
|
|
156
156
|
/**
|
|
@@ -159,11 +159,11 @@ const p = {
|
|
|
159
159
|
* (first) partner's leaf attributes into the label→token map that repairs
|
|
160
160
|
* label-form placeholders (`{{ Phone Number }}`) in dropped saved modules.
|
|
161
161
|
*/
|
|
162
|
-
dynamicContentList: e(
|
|
162
|
+
dynamicContentList: e(N, {}),
|
|
163
163
|
/** Valid custom field attribute names from the partner's categorized fields */
|
|
164
|
-
customFieldAttributes: e(
|
|
164
|
+
customFieldAttributes: e(c(t()), []),
|
|
165
165
|
/** Selected unsubscribe page IDs */
|
|
166
|
-
selectedUnsubscribePages: e(
|
|
166
|
+
selectedUnsubscribePages: e(c(s()), []),
|
|
167
167
|
/** Force recreate template in Stripo storage (use true when updating externally modified templates) */
|
|
168
168
|
forceRecreate: e(o(), !1),
|
|
169
169
|
/**
|
|
@@ -176,7 +176,7 @@ const p = {
|
|
|
176
176
|
trackIdCounter: e(
|
|
177
177
|
i(
|
|
178
178
|
s(),
|
|
179
|
-
y((
|
|
179
|
+
y((n) => Number.isFinite(n) ? Math.max(0, Math.floor(n)) : 0)
|
|
180
180
|
),
|
|
181
181
|
0
|
|
182
182
|
),
|
|
@@ -190,12 +190,12 @@ const p = {
|
|
|
190
190
|
recommendationCampaignUrls: e(
|
|
191
191
|
i(
|
|
192
192
|
r(),
|
|
193
|
-
y((
|
|
193
|
+
y((n) => n && typeof n == "object" ? { ...n } : void 0)
|
|
194
194
|
)
|
|
195
195
|
),
|
|
196
196
|
/** Migration-only inputs (legacy block configs) */
|
|
197
|
-
migration: e(
|
|
198
|
-
}),
|
|
197
|
+
migration: e(v, {})
|
|
198
|
+
}), D = a({
|
|
199
199
|
/** Sender display name */
|
|
200
200
|
senderName: e(t(), ""),
|
|
201
201
|
/** Email subject line */
|
|
@@ -208,11 +208,11 @@ const p = {
|
|
|
208
208
|
/** Migration date for template compatibility */
|
|
209
209
|
migrationDate: e(s(), 1759696858),
|
|
210
210
|
/** Email header settings */
|
|
211
|
-
emailHeader: e(
|
|
211
|
+
emailHeader: e(D, { senderName: "", subject: "" }),
|
|
212
212
|
/** Folder name for user-saved modules (used by Stripo plugin panel for path construction) */
|
|
213
|
-
savedModulesFolderName: e(t(),
|
|
213
|
+
savedModulesFolderName: e(t(), f.SAVED_MODULES),
|
|
214
214
|
/** Folder name for default/prebuilt modules (used by Stripo plugin panel for path construction) */
|
|
215
|
-
defaultModulesFolderName: e(t(),
|
|
215
|
+
defaultModulesFolderName: e(t(), f.DEFAULT_MODULES)
|
|
216
216
|
}), F = a({
|
|
217
217
|
/** Whether to show the header bar */
|
|
218
218
|
showHeader: e(o(), !0),
|
|
@@ -233,8 +233,6 @@ const p = {
|
|
|
233
233
|
unsubscribe: e(o(), !0),
|
|
234
234
|
/** Disable modules panel in the editor */
|
|
235
235
|
modulesDisabled: e(o(), !1),
|
|
236
|
-
/** Show Underline and Strikethrough in the Button block's Text Style settings */
|
|
237
|
-
buttonTextDecorationsEnabled: e(o(), !1),
|
|
238
236
|
/** Enable Liquid template syntax */
|
|
239
237
|
liquidSyntax: e(o(), !1),
|
|
240
238
|
/** Enable autosave (3-min interval + tab-hide). User toggles on/off from the header. */
|
|
@@ -271,12 +269,12 @@ const p = {
|
|
|
271
269
|
]), j = a({
|
|
272
270
|
/** Default blocks to exclude from the editor */
|
|
273
271
|
excludeDefaults: e(
|
|
274
|
-
|
|
272
|
+
c(w),
|
|
275
273
|
[]
|
|
276
274
|
),
|
|
277
275
|
/** Custom blocks to include in the editor */
|
|
278
276
|
includeCustoms: e(
|
|
279
|
-
|
|
277
|
+
c(B),
|
|
280
278
|
[]
|
|
281
279
|
)
|
|
282
280
|
}), d = a({
|
|
@@ -308,23 +306,23 @@ const p = {
|
|
|
308
306
|
...d.entries,
|
|
309
307
|
type: u("remove"),
|
|
310
308
|
/** Strings or patterns to remove */
|
|
311
|
-
targets:
|
|
309
|
+
targets: c(t())
|
|
312
310
|
}), G = a({
|
|
313
311
|
...d.entries,
|
|
314
312
|
type: u("custom"),
|
|
315
313
|
/** Custom processor function */
|
|
316
314
|
processor: k(
|
|
317
|
-
(
|
|
315
|
+
(n) => typeof n == "function",
|
|
318
316
|
"processor must be a function"
|
|
319
317
|
)
|
|
320
|
-
}), V =
|
|
318
|
+
}), V = I("type", [
|
|
321
319
|
H,
|
|
322
320
|
_,
|
|
323
321
|
q,
|
|
324
322
|
G
|
|
325
323
|
]), z = a({
|
|
326
324
|
/** Custom compiler rules to apply */
|
|
327
|
-
customRules: e(
|
|
325
|
+
customRules: e(c(V), []),
|
|
328
326
|
/** Skip default compiler rules */
|
|
329
327
|
ignoreDefaultRules: e(o(), !1)
|
|
330
328
|
}), W = a({
|
|
@@ -334,7 +332,7 @@ const p = {
|
|
|
334
332
|
*/
|
|
335
333
|
externalValidation: e(
|
|
336
334
|
k(
|
|
337
|
-
(
|
|
335
|
+
(n) => typeof n == "function",
|
|
338
336
|
"externalValidation must be a function"
|
|
339
337
|
)
|
|
340
338
|
)
|
|
@@ -346,7 +344,7 @@ const p = {
|
|
|
346
344
|
partner: E,
|
|
347
345
|
// Optional sections (with defaults)
|
|
348
346
|
/** Template content and presets */
|
|
349
|
-
template: e(
|
|
347
|
+
template: e(x, {}),
|
|
350
348
|
/** Editor settings */
|
|
351
349
|
editor: e(O, {}),
|
|
352
350
|
/** UI configuration */
|
|
@@ -368,23 +366,23 @@ export {
|
|
|
368
366
|
B as CustomBlockTypeSchema,
|
|
369
367
|
G as CustomRuleSchema,
|
|
370
368
|
w as DefaultBlockTypeSchema,
|
|
371
|
-
|
|
372
|
-
|
|
369
|
+
N as DynamicContentListSchema,
|
|
370
|
+
S as DynamicContentNodeSchema,
|
|
373
371
|
M as DynamicContentSchema,
|
|
374
372
|
O as EditorSchema,
|
|
375
|
-
|
|
373
|
+
D as EmailHeaderSchema,
|
|
376
374
|
L as FallbackFontSchema,
|
|
377
375
|
U as FeaturesSchema,
|
|
378
376
|
K as GuidoConfigSchema,
|
|
379
377
|
A as IdentitySchema,
|
|
380
|
-
|
|
378
|
+
P as LegacyRecommendationConfigSchema,
|
|
381
379
|
p as MessageType,
|
|
382
380
|
E as PartnerSchema,
|
|
383
381
|
l as ProductType,
|
|
384
382
|
_ as RegexRuleSchema,
|
|
385
383
|
q as RemoveRuleSchema,
|
|
386
384
|
H as ReplaceRuleSchema,
|
|
387
|
-
|
|
388
|
-
|
|
385
|
+
v as TemplateMigrationSchema,
|
|
386
|
+
x as TemplateSchema,
|
|
389
387
|
F as UISchema
|
|
390
388
|
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { useActionsApi as
|
|
2
|
-
import { useBlocksConfig as
|
|
3
|
-
import { useConfig as
|
|
4
|
-
import { useCustomInterfaceAppearance as
|
|
5
|
-
import { useFullStoryBridge as
|
|
6
|
-
import { useModuleRepair as
|
|
7
|
-
import { useStripoEventHandler as
|
|
8
|
-
import { useStripoNotifications as
|
|
9
|
-
import { useToaster as
|
|
10
|
-
import { localePatch as
|
|
11
|
-
import { en as
|
|
12
|
-
import { ToasterTypeOptions as
|
|
13
|
-
import { useStripoApi as
|
|
14
|
-
import
|
|
15
|
-
import { useEditorStore as
|
|
16
|
-
import { buildMergeTagEntries as
|
|
17
|
-
import { getStripoRuntimeBaseUrl as
|
|
18
|
-
let d = null,
|
|
19
|
-
const
|
|
20
|
-
const { features:
|
|
1
|
+
import { useActionsApi as M } from "./useActionsApi.js";
|
|
2
|
+
import { useBlocksConfig as N } from "./useBlocksConfig.js";
|
|
3
|
+
import { useConfig as j } from "./useConfig.js";
|
|
4
|
+
import { useCustomInterfaceAppearance as _ } from "./useCustomInterfaceAppearance.js";
|
|
5
|
+
import { useFullStoryBridge as z } from "./useFullStoryBridge.js";
|
|
6
|
+
import { useModuleRepair as $ } from "./useModuleRepair.js";
|
|
7
|
+
import { useStripoEventHandler as G } from "./useStripoEventHandler.js";
|
|
8
|
+
import { useStripoNotifications as X } from "./useStripoNotifications.js";
|
|
9
|
+
import { useToaster as J } from "./useToaster.js";
|
|
10
|
+
import { localePatch as K } from "../config/i18n/index.js";
|
|
11
|
+
import { en as B } from "../config/i18n/en/index.js";
|
|
12
|
+
import { ToasterTypeOptions as Q } from "../enums/toaster.js";
|
|
13
|
+
import { useStripoApi as W } from "../services/stripoApi.js";
|
|
14
|
+
import Y from "../static/styles/customEditorStyle.css.js";
|
|
15
|
+
import { useEditorStore as v } from "../stores/editor.js";
|
|
16
|
+
import { buildMergeTagEntries as Z, flattenDynamicContentList as ee } from "../utils/genericUtil.js";
|
|
17
|
+
import { getStripoRuntimeBaseUrl as te } from "../utils/stripoRuntime.js";
|
|
18
|
+
let d = null, T = !1;
|
|
19
|
+
const we = (e) => {
|
|
20
|
+
const { features: u, template: m, isFeatureEnabled: p } = j(), { handleError: f, showToaster: F } = J(), { getToken: A, getCustomFonts: P, getSyncModulesStatus: R } = W(), { handleEvent: U } = G(), { handleModuleAdd: V } = $(), { getStripoBlocksConfig: D } = N(), { getStripoNotifications: I } = X(), g = () => d || (d = new Promise((a, s) => {
|
|
21
21
|
if (document.getElementById("UiEditorScript")) {
|
|
22
22
|
a();
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
|
-
const i =
|
|
25
|
+
const i = te();
|
|
26
26
|
if (!i) {
|
|
27
27
|
s(
|
|
28
28
|
new Error("guido.stripo.version is not set in package.json. Please configure the Stripo version.")
|
|
@@ -31,22 +31,22 @@ const ke = (e) => {
|
|
|
31
31
|
}
|
|
32
32
|
const n = `${i}UIEditor.js`, t = document.createElement("script");
|
|
33
33
|
t.id = "UiEditorScript", t.type = "module", t.src = n, t.onload = () => {
|
|
34
|
-
|
|
34
|
+
T = !0, a();
|
|
35
35
|
}, t.onerror = () => {
|
|
36
36
|
t.remove(), s(new Error(`Failed to load Stripo UIEditor script from S3: ${n}`));
|
|
37
37
|
}, document.body.appendChild(t);
|
|
38
38
|
}), d.catch(() => {
|
|
39
39
|
d = null;
|
|
40
40
|
}), d), L = async (a, s, i, n = [], t = !1) => {
|
|
41
|
-
var C,
|
|
42
|
-
const o =
|
|
41
|
+
var C, w, k, b;
|
|
42
|
+
const o = v(), { html: c, css: S } = a, { baseBlocks: y, extensions: q } = await D();
|
|
43
43
|
e.mark("blocks_config_ready");
|
|
44
|
-
const E = ((C =
|
|
45
|
-
e.setTemplate({ html:
|
|
44
|
+
const E = ((C = u.value) == null ? void 0 : C.displayConditions) ?? !0, x = ((w = u.value) == null ? void 0 : w.modulesDisabled) ?? !1, h = !!c || (((k = m.value) == null ? void 0 : k.forceRecreate) ?? !1), O = "https://email-static.useinsider.com https://edge.fullstory.com https://rs.fullstory.com";
|
|
45
|
+
e.setTemplate({ html: c, css: S, forceRecreate: h }), _().importCss(), e.mark("init_editor"), await window.UIEditor.initEditor(
|
|
46
46
|
document.querySelector("#guido-editor"),
|
|
47
47
|
{
|
|
48
48
|
metadata: s,
|
|
49
|
-
html:
|
|
49
|
+
html: c,
|
|
50
50
|
css: S,
|
|
51
51
|
forceRecreate: h,
|
|
52
52
|
locale: "en",
|
|
@@ -58,12 +58,11 @@ const ke = (e) => {
|
|
|
58
58
|
customAppearanceMergetags: !p("liquidSyntax"),
|
|
59
59
|
customAppearanceMergetagsBorderColor: "#f1f3fe",
|
|
60
60
|
customAppearanceMergetagsBackgroundColor: "#f1f3fe",
|
|
61
|
-
customViewStyles:
|
|
61
|
+
customViewStyles: Y,
|
|
62
62
|
conditionsEnabled: E,
|
|
63
63
|
customConditionsEnabled: E,
|
|
64
64
|
enableXSSSecurity: !0,
|
|
65
|
-
modulesDisabled:
|
|
66
|
-
buttonTextDecorationsEnabled: H,
|
|
65
|
+
modulesDisabled: x,
|
|
67
66
|
syncModulesEnabled: t,
|
|
68
67
|
messageSettingsEnabled: !0,
|
|
69
68
|
displayGmailAnnotations: !0,
|
|
@@ -74,7 +73,7 @@ const ke = (e) => {
|
|
|
74
73
|
copyPasteEnabled: !1,
|
|
75
74
|
selectElementAfterDrop: !0,
|
|
76
75
|
sameFontSizeForOutlook: !0,
|
|
77
|
-
allowedScriptSourceDomains:
|
|
76
|
+
allowedScriptSourceDomains: O,
|
|
78
77
|
...y ? { baseBlocks: y } : {},
|
|
79
78
|
editorFonts: {
|
|
80
79
|
showDefaultStandardFonts: !0,
|
|
@@ -83,9 +82,9 @@ const ke = (e) => {
|
|
|
83
82
|
},
|
|
84
83
|
mergeTags: [
|
|
85
84
|
{
|
|
86
|
-
entries:
|
|
85
|
+
entries: Z(
|
|
87
86
|
i.preselectedDynamicContentList,
|
|
88
|
-
|
|
87
|
+
ee((b = m.value) == null ? void 0 : b.dynamicContentList),
|
|
89
88
|
p("liquidSyntax")
|
|
90
89
|
)
|
|
91
90
|
}
|
|
@@ -93,7 +92,7 @@ const ke = (e) => {
|
|
|
93
92
|
async onTokenRefreshRequest(r) {
|
|
94
93
|
try {
|
|
95
94
|
e.mark("token_start");
|
|
96
|
-
const l = await
|
|
95
|
+
const l = await A();
|
|
97
96
|
e.mark("token_end"), r(l);
|
|
98
97
|
} catch (l) {
|
|
99
98
|
f(l, "Failed to refresh token");
|
|
@@ -101,8 +100,8 @@ const ke = (e) => {
|
|
|
101
100
|
},
|
|
102
101
|
onTemplateLoaded() {
|
|
103
102
|
try {
|
|
104
|
-
const { activateCustomViewStyles: r, updateTimerInClonedTemplate: l } =
|
|
105
|
-
|
|
103
|
+
const { activateCustomViewStyles: r, updateTimerInClonedTemplate: l } = M(), { injectFullStory: H } = z();
|
|
104
|
+
_().importCss(), r(), H(), l(), i.onReady(), o.isStripoInitialized = !0, o.loadingStatus = !1, setTimeout(() => {
|
|
106
105
|
o.hasChanges = !1;
|
|
107
106
|
}, 1e3), e.markReady();
|
|
108
107
|
} catch (r) {
|
|
@@ -134,25 +133,25 @@ const ke = (e) => {
|
|
|
134
133
|
".in-toasts-wrapper"
|
|
135
134
|
],
|
|
136
135
|
extensions: q,
|
|
137
|
-
localePatch:
|
|
136
|
+
localePatch: K
|
|
138
137
|
}
|
|
139
138
|
);
|
|
140
139
|
};
|
|
141
140
|
return { initPlugin: async (a, s, i) => {
|
|
142
|
-
const n =
|
|
141
|
+
const n = v();
|
|
143
142
|
try {
|
|
144
|
-
e.mark("plugin_start"), e.setScriptPreloaded(
|
|
143
|
+
e.mark("plugin_start"), e.setScriptPreloaded(T), await g(), e.mark("script_ready");
|
|
145
144
|
const [t, o] = await Promise.all([
|
|
146
145
|
P(),
|
|
147
146
|
R()
|
|
148
147
|
]);
|
|
149
148
|
e.mark("fonts_sync_ready"), n.syncModulesEnabled = o, await L(a, s, i, t, o);
|
|
150
149
|
} catch {
|
|
151
|
-
n.loadingStatus = !1,
|
|
152
|
-
type:
|
|
153
|
-
message:
|
|
150
|
+
n.loadingStatus = !1, F({
|
|
151
|
+
type: Q.Error,
|
|
152
|
+
message: B["An error has occurred. Please report the error code to support."],
|
|
154
153
|
actionButton: {
|
|
155
|
-
text:
|
|
154
|
+
text: B["Reload page"],
|
|
156
155
|
onClick: () => window.location.reload()
|
|
157
156
|
}
|
|
158
157
|
}), e.markFailed();
|
|
@@ -163,5 +162,5 @@ const ke = (e) => {
|
|
|
163
162
|
} };
|
|
164
163
|
};
|
|
165
164
|
export {
|
|
166
|
-
|
|
165
|
+
we as useStripo
|
|
167
166
|
};
|
package/dist/package.json.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const o = "3.22.0-beta.
|
|
1
|
+
const o = "3.22.0-beta.092e793", s = { stripo: { version: "2.83.0" } }, e = {
|
|
2
2
|
version: o,
|
|
3
3
|
guido: s
|
|
4
4
|
};
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default,
|
|
7
7
|
s as guido,
|
|
8
8
|
o as version
|
|
9
9
|
};
|
|
@@ -403,8 +403,6 @@ export declare const FeaturesSchema: v.ObjectSchema<{
|
|
|
403
403
|
readonly unsubscribe: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
404
404
|
/** Disable modules panel in the editor */
|
|
405
405
|
readonly modulesDisabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
406
|
-
/** Show Underline and Strikethrough in the Button block's Text Style settings */
|
|
407
|
-
readonly buttonTextDecorationsEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
408
406
|
/** Enable Liquid template syntax */
|
|
409
407
|
readonly liquidSyntax: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
410
408
|
/** Enable autosave (3-min interval + tab-hide). User toggles on/off from the header. */
|
|
@@ -823,8 +821,6 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
823
821
|
readonly unsubscribe: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
824
822
|
/** Disable modules panel in the editor */
|
|
825
823
|
readonly modulesDisabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
826
|
-
/** Show Underline and Strikethrough in the Button block's Text Style settings */
|
|
827
|
-
readonly buttonTextDecorationsEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
828
824
|
/** Enable Liquid template syntax */
|
|
829
825
|
readonly liquidSyntax: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
830
826
|
/** Enable autosave (3-min interval + tab-hide). User toggles on/off from the header. */
|
|
@@ -98,7 +98,6 @@ export declare const useConfig: () => {
|
|
|
98
98
|
displayConditions: boolean;
|
|
99
99
|
unsubscribe: boolean;
|
|
100
100
|
modulesDisabled: boolean;
|
|
101
|
-
buttonTextDecorationsEnabled: boolean;
|
|
102
101
|
liquidSyntax: boolean;
|
|
103
102
|
autosave: boolean;
|
|
104
103
|
allowlistEnabled: boolean;
|
|
@@ -238,7 +237,6 @@ export declare const useConfig: () => {
|
|
|
238
237
|
displayConditions: boolean;
|
|
239
238
|
unsubscribe: boolean;
|
|
240
239
|
modulesDisabled: boolean;
|
|
241
|
-
buttonTextDecorationsEnabled: boolean;
|
|
242
240
|
liquidSyntax: boolean;
|
|
243
241
|
autosave: boolean;
|
|
244
242
|
allowlistEnabled: boolean;
|
|
@@ -103,7 +103,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
103
103
|
displayConditions: boolean;
|
|
104
104
|
unsubscribe: boolean;
|
|
105
105
|
modulesDisabled: boolean;
|
|
106
|
-
buttonTextDecorationsEnabled: boolean;
|
|
107
106
|
liquidSyntax: boolean;
|
|
108
107
|
autosave: boolean;
|
|
109
108
|
allowlistEnabled: boolean;
|
|
@@ -249,7 +248,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
249
248
|
displayConditions: boolean;
|
|
250
249
|
unsubscribe: boolean;
|
|
251
250
|
modulesDisabled: boolean;
|
|
252
|
-
buttonTextDecorationsEnabled: boolean;
|
|
253
251
|
liquidSyntax: boolean;
|
|
254
252
|
autosave: boolean;
|
|
255
253
|
allowlistEnabled: boolean;
|
|
@@ -395,7 +393,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
395
393
|
displayConditions: boolean;
|
|
396
394
|
unsubscribe: boolean;
|
|
397
395
|
modulesDisabled: boolean;
|
|
398
|
-
buttonTextDecorationsEnabled: boolean;
|
|
399
396
|
liquidSyntax: boolean;
|
|
400
397
|
autosave: boolean;
|
|
401
398
|
allowlistEnabled: boolean;
|
|
@@ -541,7 +538,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
541
538
|
displayConditions: boolean;
|
|
542
539
|
unsubscribe: boolean;
|
|
543
540
|
modulesDisabled: boolean;
|
|
544
|
-
buttonTextDecorationsEnabled: boolean;
|
|
545
541
|
liquidSyntax: boolean;
|
|
546
542
|
autosave: boolean;
|
|
547
543
|
allowlistEnabled: boolean;
|
|
@@ -687,7 +683,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
687
683
|
displayConditions: boolean;
|
|
688
684
|
unsubscribe: boolean;
|
|
689
685
|
modulesDisabled: boolean;
|
|
690
|
-
buttonTextDecorationsEnabled: boolean;
|
|
691
686
|
liquidSyntax: boolean;
|
|
692
687
|
autosave: boolean;
|
|
693
688
|
allowlistEnabled: boolean;
|
|
@@ -833,7 +828,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
833
828
|
displayConditions: boolean;
|
|
834
829
|
unsubscribe: boolean;
|
|
835
830
|
modulesDisabled: boolean;
|
|
836
|
-
buttonTextDecorationsEnabled: boolean;
|
|
837
831
|
liquidSyntax: boolean;
|
|
838
832
|
autosave: boolean;
|
|
839
833
|
allowlistEnabled: boolean;
|
|
@@ -979,7 +973,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
979
973
|
displayConditions: boolean;
|
|
980
974
|
unsubscribe: boolean;
|
|
981
975
|
modulesDisabled: boolean;
|
|
982
|
-
buttonTextDecorationsEnabled: boolean;
|
|
983
976
|
liquidSyntax: boolean;
|
|
984
977
|
autosave: boolean;
|
|
985
978
|
allowlistEnabled: boolean;
|
|
@@ -1125,7 +1118,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1125
1118
|
displayConditions: boolean;
|
|
1126
1119
|
unsubscribe: boolean;
|
|
1127
1120
|
modulesDisabled: boolean;
|
|
1128
|
-
buttonTextDecorationsEnabled: boolean;
|
|
1129
1121
|
liquidSyntax: boolean;
|
|
1130
1122
|
autosave: boolean;
|
|
1131
1123
|
allowlistEnabled: boolean;
|
|
@@ -1271,7 +1263,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1271
1263
|
displayConditions: boolean;
|
|
1272
1264
|
unsubscribe: boolean;
|
|
1273
1265
|
modulesDisabled: boolean;
|
|
1274
|
-
buttonTextDecorationsEnabled: boolean;
|
|
1275
1266
|
liquidSyntax: boolean;
|
|
1276
1267
|
autosave: boolean;
|
|
1277
1268
|
allowlistEnabled: boolean;
|
|
@@ -1417,7 +1408,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1417
1408
|
displayConditions: boolean;
|
|
1418
1409
|
unsubscribe: boolean;
|
|
1419
1410
|
modulesDisabled: boolean;
|
|
1420
|
-
buttonTextDecorationsEnabled: boolean;
|
|
1421
1411
|
liquidSyntax: boolean;
|
|
1422
1412
|
autosave: boolean;
|
|
1423
1413
|
allowlistEnabled: boolean;
|
|
@@ -1563,7 +1553,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1563
1553
|
displayConditions: boolean;
|
|
1564
1554
|
unsubscribe: boolean;
|
|
1565
1555
|
modulesDisabled: boolean;
|
|
1566
|
-
buttonTextDecorationsEnabled: boolean;
|
|
1567
1556
|
liquidSyntax: boolean;
|
|
1568
1557
|
autosave: boolean;
|
|
1569
1558
|
allowlistEnabled: boolean;
|
|
@@ -1709,7 +1698,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1709
1698
|
displayConditions: boolean;
|
|
1710
1699
|
unsubscribe: boolean;
|
|
1711
1700
|
modulesDisabled: boolean;
|
|
1712
|
-
buttonTextDecorationsEnabled: boolean;
|
|
1713
1701
|
liquidSyntax: boolean;
|
|
1714
1702
|
autosave: boolean;
|
|
1715
1703
|
allowlistEnabled: boolean;
|
|
@@ -1855,7 +1843,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1855
1843
|
displayConditions: boolean;
|
|
1856
1844
|
unsubscribe: boolean;
|
|
1857
1845
|
modulesDisabled: boolean;
|
|
1858
|
-
buttonTextDecorationsEnabled: boolean;
|
|
1859
1846
|
liquidSyntax: boolean;
|
|
1860
1847
|
autosave: boolean;
|
|
1861
1848
|
allowlistEnabled: boolean;
|
|
@@ -2001,7 +1988,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2001
1988
|
displayConditions: boolean;
|
|
2002
1989
|
unsubscribe: boolean;
|
|
2003
1990
|
modulesDisabled: boolean;
|
|
2004
|
-
buttonTextDecorationsEnabled: boolean;
|
|
2005
1991
|
liquidSyntax: boolean;
|
|
2006
1992
|
autosave: boolean;
|
|
2007
1993
|
allowlistEnabled: boolean;
|
|
@@ -2147,7 +2133,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2147
2133
|
displayConditions: boolean;
|
|
2148
2134
|
unsubscribe: boolean;
|
|
2149
2135
|
modulesDisabled: boolean;
|
|
2150
|
-
buttonTextDecorationsEnabled: boolean;
|
|
2151
2136
|
liquidSyntax: boolean;
|
|
2152
2137
|
autosave: boolean;
|
|
2153
2138
|
allowlistEnabled: boolean;
|
|
@@ -2293,7 +2278,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2293
2278
|
displayConditions: boolean;
|
|
2294
2279
|
unsubscribe: boolean;
|
|
2295
2280
|
modulesDisabled: boolean;
|
|
2296
|
-
buttonTextDecorationsEnabled: boolean;
|
|
2297
2281
|
liquidSyntax: boolean;
|
|
2298
2282
|
autosave: boolean;
|
|
2299
2283
|
allowlistEnabled: boolean;
|
|
@@ -2439,7 +2423,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2439
2423
|
displayConditions: boolean;
|
|
2440
2424
|
unsubscribe: boolean;
|
|
2441
2425
|
modulesDisabled: boolean;
|
|
2442
|
-
buttonTextDecorationsEnabled: boolean;
|
|
2443
2426
|
liquidSyntax: boolean;
|
|
2444
2427
|
autosave: boolean;
|
|
2445
2428
|
allowlistEnabled: boolean;
|
|
@@ -2597,7 +2580,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2597
2580
|
displayConditions: boolean;
|
|
2598
2581
|
unsubscribe: boolean;
|
|
2599
2582
|
modulesDisabled: boolean;
|
|
2600
|
-
buttonTextDecorationsEnabled: boolean;
|
|
2601
2583
|
liquidSyntax: boolean;
|
|
2602
2584
|
autosave: boolean;
|
|
2603
2585
|
allowlistEnabled: boolean;
|
|
@@ -2743,7 +2725,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2743
2725
|
displayConditions: boolean;
|
|
2744
2726
|
unsubscribe: boolean;
|
|
2745
2727
|
modulesDisabled: boolean;
|
|
2746
|
-
buttonTextDecorationsEnabled: boolean;
|
|
2747
2728
|
liquidSyntax: boolean;
|
|
2748
2729
|
autosave: boolean;
|
|
2749
2730
|
allowlistEnabled: boolean;
|
|
@@ -2891,7 +2872,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2891
2872
|
displayConditions: boolean;
|
|
2892
2873
|
unsubscribe: boolean;
|
|
2893
2874
|
modulesDisabled: boolean;
|
|
2894
|
-
buttonTextDecorationsEnabled: boolean;
|
|
2895
2875
|
liquidSyntax: boolean;
|
|
2896
2876
|
autosave: boolean;
|
|
2897
2877
|
allowlistEnabled: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const s = "2.
|
|
1
|
+
const s = "2.83.0", n = ["UIEditor.js", "zone.js", "styles-BWH3PMR4.css", "polyfills-FF3RLU5F.js", "main-3P7PITDJ.js", "chunk-3DKKMY3L.js", "chunk-62K3AMOD.js", "chunk-ACEQDMED.js", "chunk-CHMLYNXG.js", "chunk-F7B4QLAS.js", "chunk-LHZXKU7W.js", "chunk-MDCDEJUH.js", "chunk-QMDAV6OU.js", "chunk-R5ZH4AOA.js", "chunk-SHLH2ZMM.js", "chunk-UCAXOH7C.js", "chunk-Y4XLNOWD.js", "chunk-YSKQ2TWF.js", "assets/css/uiEditor.css", "assets/i18n/en.json", "assets/icons/ui-editor-icons.sprite.svg", "assets/icons/ui-editor-icons.map.json", "assets/imageeditor/scripts.min.js", "assets/imageeditor/assets/icons/merged.svg"], i = {
|
|
2
2
|
version: s,
|
|
3
3
|
files: n
|
|
4
4
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.22.0-beta.
|
|
3
|
+
"version": "3.22.0-beta.092e793",
|
|
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",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
},
|
|
129
129
|
"guido": {
|
|
130
130
|
"stripo": {
|
|
131
|
-
"version": "2.
|
|
131
|
+
"version": "2.83.0"
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
}
|