@useinsider/guido 1.4.4-beta.b4adc85 → 1.4.4

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.
Files changed (80) hide show
  1. package/README.md +664 -295
  2. package/dist/components/Guido.vue.js +1 -1
  3. package/dist/components/Guido.vue2.js +89 -63
  4. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +13 -13
  5. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +5 -5
  6. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +13 -13
  7. package/dist/components/organisms/header/LeftSlot.vue.js +1 -1
  8. package/dist/components/organisms/header/LeftSlot.vue2.js +15 -18
  9. package/dist/components/organisms/header/RightSlot.vue.js +10 -10
  10. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +19 -22
  11. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +4 -4
  12. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +8 -8
  13. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +3 -3
  14. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +17 -17
  15. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +10 -10
  16. package/dist/composables/useBlocksConfig.js +20 -23
  17. package/dist/composables/useConfig.js +5 -51
  18. package/dist/composables/useHtmlCompiler.js +19 -20
  19. package/dist/composables/useHtmlValidator.js +41 -41
  20. package/dist/composables/usePartner.js +9 -19
  21. package/dist/composables/useStripo.js +11 -11
  22. package/dist/composables/useTranslations.js +2 -3
  23. package/dist/config/compiler/unsubscribeCompilerRules.js +1 -1
  24. package/dist/enums/defaults.js +67 -3
  25. package/dist/enums/unsubscribe.js +20 -23
  26. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +11 -12
  27. package/dist/guido.css +1 -1
  28. package/dist/library.js +2 -12
  29. package/dist/node_modules/lodash-es/_apply.js +16 -0
  30. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +10 -10
  31. package/dist/node_modules/lodash-es/_assignMergeValue.js +8 -0
  32. package/dist/node_modules/lodash-es/_assignValue.js +10 -0
  33. package/dist/node_modules/lodash-es/_baseAssignValue.js +12 -0
  34. package/dist/node_modules/lodash-es/_baseCreate.js +17 -0
  35. package/dist/node_modules/lodash-es/_baseKeysIn.js +15 -0
  36. package/dist/node_modules/lodash-es/_baseMerge.js +20 -0
  37. package/dist/node_modules/lodash-es/_baseMergeDeep.js +31 -0
  38. package/dist/node_modules/lodash-es/_baseRest.js +9 -0
  39. package/dist/node_modules/lodash-es/_baseSetToString.js +14 -0
  40. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  41. package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -0
  42. package/dist/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  43. package/dist/node_modules/lodash-es/_copyArray.js +9 -0
  44. package/dist/node_modules/lodash-es/_copyObject.js +14 -0
  45. package/dist/node_modules/lodash-es/_createAssigner.js +15 -0
  46. package/dist/node_modules/lodash-es/_defineProperty.js +11 -0
  47. package/dist/node_modules/lodash-es/_getPrototype.js +5 -0
  48. package/dist/node_modules/lodash-es/_initCloneObject.js +9 -0
  49. package/dist/node_modules/lodash-es/_nativeKeysIn.js +10 -0
  50. package/dist/node_modules/lodash-es/_overRest.js +15 -0
  51. package/dist/node_modules/lodash-es/_safeGet.js +7 -0
  52. package/dist/node_modules/lodash-es/_setToString.js +6 -0
  53. package/dist/node_modules/lodash-es/_shortOut.js +16 -0
  54. package/dist/node_modules/lodash-es/constant.js +8 -0
  55. package/dist/node_modules/lodash-es/isArrayLikeObject.js +8 -0
  56. package/dist/node_modules/lodash-es/isPlainObject.js +16 -0
  57. package/dist/node_modules/lodash-es/keysIn.js +9 -0
  58. package/dist/node_modules/lodash-es/merge.js +8 -0
  59. package/dist/node_modules/lodash-es/toPlainObject.js +8 -0
  60. package/dist/node_modules/valibot/dist/index.js +103 -476
  61. package/dist/services/templateLibraryApi.js +18 -18
  62. package/dist/src/@types/generic.d.ts +45 -4
  63. package/dist/src/components/Guido.vue.d.ts +12 -13
  64. package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
  65. package/dist/src/composables/useConfig.d.ts +2 -184
  66. package/dist/src/composables/usePartner.d.ts +0 -8
  67. package/dist/src/enums/defaults.d.ts +6 -4
  68. package/dist/src/enums/unsubscribe.d.ts +1 -5
  69. package/dist/src/library.d.ts +1 -3
  70. package/dist/src/stores/config.d.ts +102 -1547
  71. package/dist/stores/config.js +9 -141
  72. package/package.json +1 -1
  73. package/dist/@types/config/defaults.js +0 -44
  74. package/dist/@types/config/schemas.js +0 -229
  75. package/dist/@types/config/validator.js +0 -56
  76. package/dist/src/@types/config/defaults.d.ts +0 -68
  77. package/dist/src/@types/config/index.d.ts +0 -14
  78. package/dist/src/@types/config/schemas.d.ts +0 -505
  79. package/dist/src/@types/config/types.d.ts +0 -142
  80. package/dist/src/@types/config/validator.d.ts +0 -119
@@ -1,149 +1,17 @@
1
- import "../@types/config/schemas.js";
2
- import "../@types/config/defaults.js";
3
- import { parseConfig as n } from "../@types/config/validator.js";
4
- import { defineStore as o } from "pinia";
5
- const s = o("guido-config", {
1
+ import { DefaultGuidoConfig as i } from "../enums/defaults.js";
2
+ import { defineStore as e } from "pinia";
3
+ const n = e("guidoConfig", {
6
4
  state: () => ({
7
- initialized: !1,
8
- config: null
5
+ guidoConfig: i,
6
+ templateConfig: {}
9
7
  }),
10
8
  getters: {
11
- /**
12
- * Get the identity configuration
13
- */
14
- identity: (i) => {
15
- var e;
16
- return ((e = i.config) == null ? void 0 : e.identity) ?? null;
17
- },
18
- /**
19
- * Get the partner configuration
20
- */
21
- partner: (i) => {
22
- var e;
23
- return ((e = i.config) == null ? void 0 : e.partner) ?? null;
24
- },
25
- /**
26
- * Get the template configuration
27
- */
28
- template: (i) => {
29
- var e;
30
- return ((e = i.config) == null ? void 0 : e.template) ?? null;
31
- },
32
- /**
33
- * Get the editor configuration
34
- */
35
- editor: (i) => {
36
- var e;
37
- return ((e = i.config) == null ? void 0 : e.editor) ?? null;
38
- },
39
- /**
40
- * Get the UI configuration
41
- */
42
- ui: (i) => {
43
- var e;
44
- return ((e = i.config) == null ? void 0 : e.ui) ?? null;
45
- },
46
- /**
47
- * Get the features configuration
48
- */
49
- features: (i) => {
50
- var e;
51
- return ((e = i.config) == null ? void 0 : e.features) ?? null;
52
- },
53
- /**
54
- * Get the blocks configuration
55
- */
56
- blocks: (i) => {
57
- var e;
58
- return ((e = i.config) == null ? void 0 : e.blocks) ?? null;
59
- },
60
- /**
61
- * Get the compiler configuration
62
- */
63
- compiler: (i) => {
64
- var e;
65
- return ((e = i.config) == null ? void 0 : e.compiler) ?? null;
66
- },
67
- /**
68
- * Get the template ID
69
- */
70
- templateId: (i) => {
71
- var e;
72
- return ((e = i.config) == null ? void 0 : e.identity.templateId) ?? "";
73
- },
74
- /**
75
- * Get the user ID
76
- */
77
- userId: (i) => {
78
- var e;
79
- return ((e = i.config) == null ? void 0 : e.identity.userId) ?? "";
80
- },
81
- /**
82
- * Get the variation ID
83
- */
84
- variationId: (i) => {
85
- var e;
86
- return ((e = i.config) == null ? void 0 : e.identity.variationId) ?? "";
87
- },
88
- /**
89
- * Get the partner name
90
- */
91
- partnerName: (i) => {
92
- var e;
93
- return ((e = i.config) == null ? void 0 : e.partner.name) ?? "";
94
- },
95
- /**
96
- * Get the product type
97
- */
98
- productType: (i) => {
99
- var e;
100
- return ((e = i.config) == null ? void 0 : e.partner.productType) ?? 60;
101
- },
102
- /**
103
- * Get the message type
104
- */
105
- messageType: (i) => {
106
- var e;
107
- return ((e = i.config) == null ? void 0 : e.partner.messageType) ?? 1;
108
- },
109
- /**
110
- * Get the username
111
- */
112
- username: (i) => {
113
- var e;
114
- return ((e = i.config) == null ? void 0 : e.partner.username) ?? "Guido User";
115
- },
116
- /**
117
- * Check if header should be shown
118
- */
119
- showHeader: (i) => {
120
- var e;
121
- return ((e = i.config) == null ? void 0 : e.ui.showHeader) ?? !0;
122
- },
123
- /**
124
- * Check if a specific feature is enabled
125
- */
126
- isFeatureEnabled: (i) => (e) => {
127
- var t;
128
- return ((t = i.config) == null ? void 0 : t.features[e]) ?? !0;
129
- }
130
- },
131
- actions: {
132
- /**
133
- * Initialize the config store with validated configuration
134
- */
135
- init(i) {
136
- const e = n(i);
137
- this.config = e, this.initialized = !0;
138
- },
139
- /**
140
- * Reset the config store
141
- */
142
- reset() {
143
- this.initialized = !1, this.config = null;
9
+ getVariationId: (t) => {
10
+ var o;
11
+ return ((o = t.templateConfig) == null ? void 0 : o.variationId) ?? "";
144
12
  }
145
13
  }
146
14
  });
147
15
  export {
148
- s as useConfigStore
16
+ n as useConfigStore
149
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "1.4.4-beta.b4adc85",
3
+ "version": "1.4.4",
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",
@@ -1,44 +0,0 @@
1
- import { ProductType as a, MessageType as o } from "./schemas.js";
2
- a.EMAIL;
3
- o.PROMOTIONAL;
4
- const e = [
5
- "alfredtesting",
6
- "electio",
7
- "eurekatest",
8
- "gachapontestpart",
9
- "gluautomation1",
10
- "gluautomation2",
11
- "gluautomation3",
12
- "gluautomation4",
13
- "inone",
14
- "inshoppingcart",
15
- "krakentest",
16
- "leeroy",
17
- "newsletteruat",
18
- "ozaspava",
19
- "piratesquad",
20
- "qaautomation1",
21
- "qaautomation2",
22
- "qaautomation3",
23
- "qaautomation4",
24
- "roiautomation",
25
- "seleniumautomation",
26
- "seleniumautomation1",
27
- "seleniumautomation2",
28
- "seleniumautomation3",
29
- "shopbagg",
30
- "shopifytest",
31
- "singlepageqa",
32
- "testqa",
33
- "vikingsankara",
34
- "stripoeditorlivetest"
35
- ];
36
- function n(t) {
37
- return e.includes(t);
38
- }
39
- export {
40
- o as MessageType,
41
- a as ProductType,
42
- e as TEST_PARTNERS,
43
- n as isTestPartner
44
- };
@@ -1,229 +0,0 @@
1
- import { object as o, number as p, optional as e, string as t, pipe as m, picklist as n, boolean as c, array as a, minLength as u, literal as r, custom as d, variant as S } from "../../node_modules/valibot/dist/index.js";
2
- const i = {
3
- /** Promotional/marketing emails */
4
- PROMOTIONAL: 1,
5
- /** Transactional/system emails */
6
- TRANSACTIONAL: 2
7
- }, s = {
8
- /** Standard email campaigns */
9
- EMAIL: 60,
10
- /** Architect journey builder */
11
- ARCHITECT: 49,
12
- /** Unsubscribe page builder */
13
- UNSUBSCRIBE_PAGES: 97
14
- }, h = o({
15
- /** Unique identifier for the template being edited */
16
- templateId: m(
17
- t(),
18
- u(1, "templateId is required")
19
- ),
20
- /** Unique identifier for the user editing the template */
21
- userId: m(
22
- t(),
23
- u(1, "userId is required")
24
- ),
25
- /** Optional variation ID for A/B testing */
26
- variationId: e(t())
27
- }), k = o({
28
- /** Partner/organization name (required) */
29
- name: m(
30
- t(),
31
- u(1, "partner.name is required")
32
- ),
33
- /** Product type identifier */
34
- productType: e(
35
- n([
36
- s.EMAIL,
37
- s.ARCHITECT,
38
- s.UNSUBSCRIBE_PAGES
39
- ]),
40
- s.EMAIL
41
- ),
42
- /** Message type (promotional or transactional) */
43
- messageType: e(
44
- n([i.PROMOTIONAL, i.TRANSACTIONAL]),
45
- i.PROMOTIONAL
46
- ),
47
- /** Display name for the current user */
48
- username: e(t(), "Guido User")
49
- }), y = o({
50
- /** Display text for the dynamic content */
51
- text: t(),
52
- /** Template variable value (e.g., {{username}}) */
53
- value: t(),
54
- /** Fallback value if variable is empty */
55
- fallback: e(t()),
56
- /** Optional formatting options */
57
- format: e(
58
- o({
59
- key: t(),
60
- value: t()
61
- })
62
- )
63
- }), R = o({
64
- /** Initial HTML content */
65
- html: e(t(), ""),
66
- /** Initial CSS content */
67
- css: e(t(), ""),
68
- /** Preselected dynamic content items */
69
- preselectedDynamicContent: e(
70
- a(y),
71
- []
72
- ),
73
- /** Selected unsubscribe page IDs */
74
- selectedUnsubscribePages: e(a(p()), [])
75
- }), C = o({
76
- /** Sender display name */
77
- senderName: e(t(), ""),
78
- /** Email subject line */
79
- subject: e(t(), "")
80
- }), I = o({
81
- /** Locale for the editor UI */
82
- locale: e(t(), "en"),
83
- /** Path to translations object */
84
- translationsPath: e(t(), "window.trans.en"),
85
- /** Migration date for template compatibility */
86
- migrationDate: e(p(), 1759696858),
87
- /** Email header settings */
88
- emailHeader: e(C, { senderName: "", subject: "" })
89
- }), T = o({
90
- /** Whether to show the header bar */
91
- showHeader: e(c(), !0),
92
- /** Custom label for back button (if shown) */
93
- backButtonLabel: e(t())
94
- }), A = o({
95
- /** Enable dynamic content insertion */
96
- dynamicContent: e(c(), !0),
97
- /** Enable save as template functionality */
98
- saveAsTemplate: e(c(), !0),
99
- /** Enable version history */
100
- versionHistory: e(c(), !0),
101
- /** Enable test message sending */
102
- testMessage: e(c(), !0),
103
- /** Enable display conditions */
104
- displayConditions: e(c(), !0),
105
- /** Enable unsubscribe block */
106
- unsubscribe: e(c(), !0)
107
- }), f = n([
108
- "amp-accordion",
109
- "amp-carousel",
110
- "amp-form-controls",
111
- "banner-block",
112
- "button-block",
113
- "html-block",
114
- "image-block",
115
- "menu-block",
116
- "social-block",
117
- "spacer-block",
118
- "text-block",
119
- "timer-block",
120
- "video-block"
121
- ]), g = n([
122
- "dynamic-content",
123
- "checkbox-block",
124
- "radio-button-block",
125
- "recommendation-block",
126
- "unsubscribe-block",
127
- "coupon-block",
128
- "items-block"
129
- ]), E = o({
130
- /** Default blocks to exclude from the editor */
131
- excludeDefaults: e(
132
- a(f),
133
- []
134
- ),
135
- /** Custom blocks to include in the editor */
136
- includeCustoms: e(
137
- a(g),
138
- []
139
- )
140
- }), l = o({
141
- /** Unique identifier for the rule */
142
- id: t(),
143
- /** Human-readable description */
144
- description: e(t()),
145
- /** Priority for rule ordering (lower = earlier) */
146
- priority: p()
147
- }), N = o({
148
- ...l.entries,
149
- type: r("replace"),
150
- /** String to search for */
151
- search: t(),
152
- /** Replacement string */
153
- replacement: t(),
154
- /** Replace all occurrences (default: false) */
155
- replaceAll: e(c())
156
- }), O = o({
157
- ...l.entries,
158
- type: r("regex"),
159
- /** Regex pattern string */
160
- pattern: t(),
161
- /** Replacement string (supports $1, $2, etc.) */
162
- replacement: t(),
163
- /** Regex flags (e.g., 'gi') */
164
- flags: e(t())
165
- }), L = o({
166
- ...l.entries,
167
- type: r("remove"),
168
- /** Strings or patterns to remove */
169
- targets: a(t())
170
- }), v = o({
171
- ...l.entries,
172
- type: r("custom"),
173
- /** Custom processor function */
174
- processor: d(
175
- (b) => typeof b == "function",
176
- "processor must be a function"
177
- )
178
- }), B = S("type", [
179
- N,
180
- O,
181
- L,
182
- v
183
- ]), P = o({
184
- /** Custom compiler rules to apply */
185
- customRules: e(a(B), []),
186
- /** Skip default compiler rules */
187
- ignoreDefaultRules: e(c(), !1)
188
- }), x = o({
189
- // Required sections
190
- /** Identity configuration (required) */
191
- identity: h,
192
- /** Partner configuration (required) */
193
- partner: k,
194
- // Optional sections (with defaults)
195
- /** Template content and presets */
196
- template: e(R, {}),
197
- /** Editor settings */
198
- editor: e(I, {}),
199
- /** UI configuration */
200
- ui: e(T, {}),
201
- /** Feature toggles */
202
- features: e(A, {}),
203
- /** Block configuration */
204
- blocks: e(E, {}),
205
- /** Compiler configuration */
206
- compiler: e(P, {})
207
- });
208
- export {
209
- E as BlocksSchema,
210
- B as CompilerRuleSchema,
211
- P as CompilerSchema,
212
- g as CustomBlockTypeSchema,
213
- v as CustomRuleSchema,
214
- f as DefaultBlockTypeSchema,
215
- y as DynamicContentSchema,
216
- I as EditorSchema,
217
- C as EmailHeaderSchema,
218
- A as FeaturesSchema,
219
- x as GuidoConfigSchema,
220
- h as IdentitySchema,
221
- i as MessageType,
222
- k as PartnerSchema,
223
- s as ProductType,
224
- O as RegexRuleSchema,
225
- L as RemoveRuleSchema,
226
- N as ReplaceRuleSchema,
227
- R as TemplateSchema,
228
- T as UISchema
229
- };
@@ -1,56 +0,0 @@
1
- import { safeParse as n } from "../../node_modules/valibot/dist/index.js";
2
- import { GuidoConfigSchema as o } from "./schemas.js";
3
- function i(s) {
4
- return s.map((r) => {
5
- var e;
6
- return `[${((e = r.path) == null ? void 0 : e.map((a) => a.key).join(".")) || "root"}] ${r.message}`;
7
- });
8
- }
9
- function c(s) {
10
- return s.map((r) => {
11
- var t;
12
- return {
13
- path: ((t = r.path) == null ? void 0 : t.map((e) => e.key).join(".")) || "root",
14
- message: r.message
15
- };
16
- });
17
- }
18
- function u(s) {
19
- const r = n(o, s);
20
- return r.success ? {
21
- success: !0,
22
- data: r.output
23
- } : {
24
- success: !1,
25
- errors: i(r.issues)
26
- };
27
- }
28
- function p(s) {
29
- var t;
30
- const r = u(s);
31
- if (!r.success)
32
- throw new Error(
33
- `Invalid GuidoConfig:
34
- ${(t = r.errors) == null ? void 0 : t.join(`
35
- `)}`
36
- );
37
- return r.data;
38
- }
39
- function m(s) {
40
- const r = u(s);
41
- return r.success ? r.data : (console.error("[Guido] Invalid configuration:", r.errors), null);
42
- }
43
- function d(s) {
44
- const r = n(o, s);
45
- return r.success ? [] : c(r.issues);
46
- }
47
- function g(s) {
48
- return n(o, s).success;
49
- }
50
- export {
51
- d as getValidationErrors,
52
- g as isValidConfig,
53
- p as parseConfig,
54
- m as parseConfigSafe,
55
- u as validateConfig
56
- };
@@ -1,68 +0,0 @@
1
- /**
2
- * Guido Configuration Defaults
3
- *
4
- * Default values for optional configuration sections.
5
- * These are applied during validation when values are not provided.
6
- * @module @types/config/defaults
7
- */
8
- import type { TemplateConfig, EditorConfig, UIConfig, FeaturesConfig, BlocksConfig, CompilerConfig, EmailHeader } from './types';
9
- /**
10
- * Default email header values
11
- */
12
- export declare const DEFAULT_EMAIL_HEADER: EmailHeader;
13
- /**
14
- * Default template configuration
15
- */
16
- export declare const DEFAULT_TEMPLATE: TemplateConfig;
17
- /**
18
- * Default editor configuration
19
- */
20
- export declare const DEFAULT_EDITOR: EditorConfig;
21
- /**
22
- * Default UI configuration
23
- */
24
- export declare const DEFAULT_UI: UIConfig;
25
- /**
26
- * Default features configuration (all enabled)
27
- */
28
- export declare const DEFAULT_FEATURES: FeaturesConfig;
29
- /**
30
- * Default blocks configuration
31
- */
32
- export declare const DEFAULT_BLOCKS: BlocksConfig;
33
- /**
34
- * Default compiler configuration
35
- */
36
- export declare const DEFAULT_COMPILER: CompilerConfig;
37
- /**
38
- * Default product type (Email)
39
- */
40
- export declare const DEFAULT_PRODUCT_TYPE: 60;
41
- /**
42
- * Default message type (Promotional)
43
- */
44
- export declare const DEFAULT_MESSAGE_TYPE: 1;
45
- /**
46
- * Default username
47
- */
48
- export declare const DEFAULT_USERNAME = "Guido User";
49
- /**
50
- * Re-export message type constants
51
- */
52
- export { MessageType } from './schemas';
53
- /**
54
- * Re-export product type constants
55
- */
56
- export { ProductType } from './schemas';
57
- /**
58
- * Stripo editor type identifier
59
- */
60
- export declare const EDITOR_TYPE = 2;
61
- /**
62
- * Test partner names for development/QA
63
- */
64
- export declare const TEST_PARTNERS: readonly ["alfredtesting", "electio", "eurekatest", "gachapontestpart", "gluautomation1", "gluautomation2", "gluautomation3", "gluautomation4", "inone", "inshoppingcart", "krakentest", "leeroy", "newsletteruat", "ozaspava", "piratesquad", "qaautomation1", "qaautomation2", "qaautomation3", "qaautomation4", "roiautomation", "seleniumautomation", "seleniumautomation1", "seleniumautomation2", "seleniumautomation3", "shopbagg", "shopifytest", "singlepageqa", "testqa", "vikingsankara", "stripoeditorlivetest"];
65
- /**
66
- * Check if a partner is a test partner
67
- */
68
- export declare function isTestPartner(partnerName: string): boolean;
@@ -1,14 +0,0 @@
1
- /**
2
- * Guido Configuration Module
3
- *
4
- * This module provides a complete configuration system for Guido with:
5
- * - Valibot schemas for runtime validation
6
- * - TypeScript types inferred from schemas
7
- * - Default values for optional configuration
8
- * - Validation utilities
9
- */
10
- export { MessageType, ProductType, GuidoConfigSchema, IdentitySchema, PartnerSchema, TemplateSchema, EditorSchema, UISchema, FeaturesSchema, BlocksSchema, CompilerSchema, DynamicContentSchema, EmailHeaderSchema, DefaultBlockTypeSchema, CustomBlockTypeSchema, CompilerRuleSchema, CompilerRuleTypeSchema, ReplaceRuleSchema, RegexRuleSchema, RemoveRuleSchema, CustomRuleSchema, } from './schemas';
11
- export type { GuidoConfig, GuidoConfigInput, IdentityConfig, IdentityConfigInput, PartnerConfig, PartnerConfigInput, TemplateConfig, TemplateConfigInput, EditorConfig, EditorConfigInput, UIConfig, UIConfigInput, FeaturesConfig, FeaturesConfigInput, BlocksConfig, BlocksConfigInput, CompilerConfig, CompilerConfigInput, EmailHeader, DynamicContent, DefaultBlockType, CustomBlockType, BlockType, FeatureName, CompilerRule, ReplaceRule, RegexRule, RemoveRule, CustomRule, DeepPartial, ConfigOverrides, } from './types';
12
- export { DEFAULT_EMAIL_HEADER, DEFAULT_TEMPLATE, DEFAULT_EDITOR, DEFAULT_UI, DEFAULT_FEATURES, DEFAULT_BLOCKS, DEFAULT_COMPILER, DEFAULT_PRODUCT_TYPE, DEFAULT_MESSAGE_TYPE, DEFAULT_USERNAME, EDITOR_TYPE, TEST_PARTNERS, isTestPartner, } from './defaults';
13
- export { validateConfig, parseConfig, parseConfigSafe, getValidationErrors, isValidConfig, validateIdentity, validatePartner, } from './validator';
14
- export type { ValidationResult, ValidationError, } from './validator';