@useinsider/guido 2.1.0-beta.67fc452 → 2.1.0-beta.bc18abc
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { object as o, number as b, optional as e, string as t, pipe as u, picklist as n, custom as d, boolean as c, array as a, minLength as p, literal as r, variant as
|
|
1
|
+
import { object as o, number as b, optional as e, string as t, pipe as u, picklist as n, custom as d, boolean as c, array as a, minLength as p, literal as r, variant as k } from "../../node_modules/valibot/dist/index.js";
|
|
2
2
|
const m = {
|
|
3
3
|
/** Promotional/marketing emails */
|
|
4
4
|
PROMOTIONAL: 1,
|
|
@@ -11,7 +11,7 @@ const m = {
|
|
|
11
11
|
ARCHITECT: 49,
|
|
12
12
|
/** Unsubscribe page builder */
|
|
13
13
|
UNSUBSCRIBE_PAGES: 97
|
|
14
|
-
},
|
|
14
|
+
}, S = o({
|
|
15
15
|
/** Unique identifier for the template being edited */
|
|
16
16
|
templateId: u(
|
|
17
17
|
t(),
|
|
@@ -24,7 +24,7 @@ const m = {
|
|
|
24
24
|
),
|
|
25
25
|
/** Optional variation ID for A/B testing */
|
|
26
26
|
variationId: e(t())
|
|
27
|
-
}),
|
|
27
|
+
}), h = o({
|
|
28
28
|
/** Partner/organization name (required) */
|
|
29
29
|
name: u(
|
|
30
30
|
t(),
|
|
@@ -83,7 +83,7 @@ const m = {
|
|
|
83
83
|
/** Locale for the editor UI */
|
|
84
84
|
locale: e(t(), "en"),
|
|
85
85
|
/** Path to translations object */
|
|
86
|
-
translationsPath: e(t(), "window.trans.
|
|
86
|
+
translationsPath: e(t(), "window.trans[Object.keys(window.trans)[0]]"),
|
|
87
87
|
/** Migration date for template compatibility */
|
|
88
88
|
migrationDate: e(b(), 1759696858),
|
|
89
89
|
/** Email header settings */
|
|
@@ -130,7 +130,7 @@ const m = {
|
|
|
130
130
|
"unsubscribe-block",
|
|
131
131
|
"coupon-block",
|
|
132
132
|
"items-block"
|
|
133
|
-
]),
|
|
133
|
+
]), O = o({
|
|
134
134
|
/** Default blocks to exclude from the editor */
|
|
135
135
|
excludeDefaults: e(
|
|
136
136
|
a(A),
|
|
@@ -148,7 +148,7 @@ const m = {
|
|
|
148
148
|
description: e(t()),
|
|
149
149
|
/** Priority for rule ordering (lower = earlier) */
|
|
150
150
|
priority: b()
|
|
151
|
-
}),
|
|
151
|
+
}), E = o({
|
|
152
152
|
...l.entries,
|
|
153
153
|
type: r("replace"),
|
|
154
154
|
/** String to search for */
|
|
@@ -157,7 +157,7 @@ const m = {
|
|
|
157
157
|
replacement: t(),
|
|
158
158
|
/** Replace all occurrences (default: false) */
|
|
159
159
|
replaceAll: e(c())
|
|
160
|
-
}),
|
|
160
|
+
}), N = o({
|
|
161
161
|
...l.entries,
|
|
162
162
|
type: r("regex"),
|
|
163
163
|
/** Regex pattern string */
|
|
@@ -179,9 +179,9 @@ const m = {
|
|
|
179
179
|
(i) => typeof i == "function",
|
|
180
180
|
"processor must be a function"
|
|
181
181
|
)
|
|
182
|
-
}), x =
|
|
182
|
+
}), x = k("type", [
|
|
183
|
+
E,
|
|
183
184
|
N,
|
|
184
|
-
O,
|
|
185
185
|
L,
|
|
186
186
|
v
|
|
187
187
|
]), B = o({
|
|
@@ -203,9 +203,9 @@ const m = {
|
|
|
203
203
|
}), D = o({
|
|
204
204
|
// Required sections
|
|
205
205
|
/** Identity configuration (required) */
|
|
206
|
-
identity:
|
|
206
|
+
identity: S,
|
|
207
207
|
/** Partner configuration (required) */
|
|
208
|
-
partner:
|
|
208
|
+
partner: h,
|
|
209
209
|
// Optional sections (with defaults)
|
|
210
210
|
/** Template content and presets */
|
|
211
211
|
template: e(R, {}),
|
|
@@ -216,14 +216,14 @@ const m = {
|
|
|
216
216
|
/** Feature toggles */
|
|
217
217
|
features: e(T, {}),
|
|
218
218
|
/** Block configuration */
|
|
219
|
-
blocks: e(
|
|
219
|
+
blocks: e(O, {}),
|
|
220
220
|
/** Compiler configuration */
|
|
221
221
|
compiler: e(B, {}),
|
|
222
222
|
/** Callbacks and event handlers */
|
|
223
223
|
callbacks: e(P, {})
|
|
224
224
|
});
|
|
225
225
|
export {
|
|
226
|
-
|
|
226
|
+
O as BlocksSchema,
|
|
227
227
|
P as CallbacksSchema,
|
|
228
228
|
x as CompilerRuleSchema,
|
|
229
229
|
B as CompilerSchema,
|
|
@@ -235,13 +235,13 @@ export {
|
|
|
235
235
|
f as EmailHeaderSchema,
|
|
236
236
|
T as FeaturesSchema,
|
|
237
237
|
D as GuidoConfigSchema,
|
|
238
|
-
|
|
238
|
+
S as IdentitySchema,
|
|
239
239
|
m as MessageType,
|
|
240
|
-
|
|
240
|
+
h as PartnerSchema,
|
|
241
241
|
s as ProductType,
|
|
242
|
-
|
|
242
|
+
N as RegexRuleSchema,
|
|
243
243
|
L as RemoveRuleSchema,
|
|
244
|
-
|
|
244
|
+
E as ReplaceRuleSchema,
|
|
245
245
|
R as TemplateSchema,
|
|
246
246
|
I as UISchema
|
|
247
247
|
};
|
package/dist/package.json.js
CHANGED
|
@@ -116,7 +116,7 @@ export declare const EditorSchema: v.ObjectSchema<{
|
|
|
116
116
|
/** Locale for the editor UI */
|
|
117
117
|
readonly locale: v.OptionalSchema<v.StringSchema<undefined>, "en">;
|
|
118
118
|
/** Path to translations object */
|
|
119
|
-
readonly translationsPath: v.OptionalSchema<v.StringSchema<undefined>, "window.trans.
|
|
119
|
+
readonly translationsPath: v.OptionalSchema<v.StringSchema<undefined>, "window.trans[Object.keys(window.trans)[0]]">;
|
|
120
120
|
/** Migration date for template compatibility */
|
|
121
121
|
readonly migrationDate: v.OptionalSchema<v.NumberSchema<undefined>, 1759696858>;
|
|
122
122
|
/** Email header settings */
|
|
@@ -428,7 +428,7 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
428
428
|
/** Locale for the editor UI */
|
|
429
429
|
readonly locale: v.OptionalSchema<v.StringSchema<undefined>, "en">;
|
|
430
430
|
/** Path to translations object */
|
|
431
|
-
readonly translationsPath: v.OptionalSchema<v.StringSchema<undefined>, "window.trans.
|
|
431
|
+
readonly translationsPath: v.OptionalSchema<v.StringSchema<undefined>, "window.trans[Object.keys(window.trans)[0]]">;
|
|
432
432
|
/** Migration date for template compatibility */
|
|
433
433
|
readonly migrationDate: v.OptionalSchema<v.NumberSchema<undefined>, 1759696858>;
|
|
434
434
|
/** Email header settings */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.bc18abc",
|
|
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",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
"guido": {
|
|
87
87
|
"stripo": {
|
|
88
|
-
"version": "2.
|
|
88
|
+
"version": "2.54.0"
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}
|