@topol.io/editor 0.2.1 → 1.0.0-alpha.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.
Files changed (55) hide show
  1. package/LICENSE +1 -1
  2. package/dist/topol-plugin.es.js +107 -20
  3. package/dist/topol-plugin.umd.js +1 -1
  4. package/dist/types/src/core/script-loader.d.ts +7 -0
  5. package/dist/types/src/email-editor/constants.d.ts +7 -0
  6. package/dist/types/src/email-editor/index.d.ts +97 -0
  7. package/dist/types/src/landing-page-editor/constants.d.ts +1 -0
  8. package/dist/types/src/landing-page-editor/index.d.ts +55 -0
  9. package/dist/types/src/landing-page-editor/schemas/ai/aiSchema.d.ts +15 -0
  10. package/dist/types/src/landing-page-editor/schemas/api/apiSchema.d.ts +33 -0
  11. package/dist/types/src/landing-page-editor/schemas/authHeaderConfig/authHeaderConfigScheme.d.ts +3 -0
  12. package/dist/types/src/landing-page-editor/schemas/autosave/autosaveSchema.d.ts +33 -0
  13. package/dist/types/src/landing-page-editor/schemas/comments/commentsSchema.d.ts +91 -0
  14. package/dist/types/src/landing-page-editor/schemas/contentBlock/contentBlockScheme.d.ts +470 -0
  15. package/dist/types/src/landing-page-editor/schemas/font/fontSchema.d.ts +12 -0
  16. package/dist/types/src/landing-page-editor/schemas/helpdesk/helpdeskSchema.d.ts +8 -0
  17. package/dist/types/src/landing-page-editor/schemas/image/imageSchema.d.ts +26 -0
  18. package/dist/types/src/landing-page-editor/schemas/language/languageSchema.d.ts +3 -0
  19. package/dist/types/src/landing-page-editor/schemas/mjmlStore/mjmlStoreSchema.d.ts +31 -0
  20. package/dist/types/src/landing-page-editor/schemas/notification/notificationSchema.d.ts +16 -0
  21. package/dist/types/src/landing-page-editor/schemas/openAI/openAISchema.d.ts +7 -0
  22. package/dist/types/src/landing-page-editor/schemas/pluginOptions/pluginOptionsSchema.d.ts +81 -0
  23. package/dist/types/src/landing-page-editor/schemas/premadeBlock/premadeBlockSchema.d.ts +59750 -0
  24. package/dist/types/src/landing-page-editor/schemas/premadeTemplates/premadeTemplatesSchema.d.ts +65 -0
  25. package/dist/types/src/landing-page-editor/schemas/savedBlock/savedBlockApiSchema.d.ts +44831 -0
  26. package/dist/types/src/landing-page-editor/schemas/savedBlock/savedBlockSchema.d.ts +59725 -0
  27. package/dist/types/src/landing-page-editor/schemas/template/blocks/buttonBlockSchema.d.ts +700 -0
  28. package/dist/types/src/landing-page-editor/schemas/template/blocks/carouselBlockSchema.d.ts +74 -0
  29. package/dist/types/src/landing-page-editor/schemas/template/blocks/dividerBlockSchema.d.ts +362 -0
  30. package/dist/types/src/landing-page-editor/schemas/template/blocks/imageAnGifBlockSchema.d.ts +1157 -0
  31. package/dist/types/src/landing-page-editor/schemas/template/blocks/index.d.ts +12 -0
  32. package/dist/types/src/landing-page-editor/schemas/template/blocks/rawBlockSchema.d.ts +45 -0
  33. package/dist/types/src/landing-page-editor/schemas/template/blocks/socialBlockSchema.d.ts +637 -0
  34. package/dist/types/src/landing-page-editor/schemas/template/blocks/spacerBlockSchema.d.ts +392 -0
  35. package/dist/types/src/landing-page-editor/schemas/template/blocks/textBlockSchema.d.ts +480 -0
  36. package/dist/types/src/landing-page-editor/schemas/template/blocks/videoBlockSchema.d.ts +333 -0
  37. package/dist/types/src/landing-page-editor/schemas/template/commonSchema.d.ts +265 -0
  38. package/dist/types/src/landing-page-editor/schemas/template/settingsSchema.d.ts +4812 -0
  39. package/dist/types/src/landing-page-editor/schemas/template/structure/blockSchema.d.ts +7502 -0
  40. package/dist/types/src/landing-page-editor/schemas/template/structure/columnSchema.d.ts +7983 -0
  41. package/dist/types/src/landing-page-editor/schemas/template/structure/sectionSchema.d.ts +15074 -0
  42. package/dist/types/src/landing-page-editor/schemas/template/styleSchema.d.ts +185 -0
  43. package/dist/types/src/landing-page-editor/schemas/templateSchema.d.ts +58720 -0
  44. package/dist/types/src/landing-page-editor/schemas/templateSettings/templateSettingsSchema.d.ts +4959 -0
  45. package/dist/types/src/landing-page-editor/schemas/theme/themeSchema.d.ts +40 -0
  46. package/dist/types/src/landing-page-editor/schemas/user/userSchema.d.ts +13 -0
  47. package/dist/types/src/landing-page-editor/schemas/utils/transformBorder.d.ts +9 -0
  48. package/dist/types/src/main.d.ts +78 -24
  49. package/dist/types/types/Callbacks/ICallbackPayloads.d.ts +29 -0
  50. package/dist/types/types/Callbacks/IEmailCallbacks.d.ts +109 -0
  51. package/dist/types/types/ITopolOptions.d.ts +20 -38
  52. package/dist/types/types/ITopolPlugin.d.ts +7 -0
  53. package/dist/types/types/landing-page/ILandingPageEditorInstance.d.ts +19 -0
  54. package/dist/types/types/landing-page/ILandingPageOptions.d.ts +114 -0
  55. package/package.json +12 -6
@@ -0,0 +1,470 @@
1
+ import { z } from "zod";
2
+ export declare const TopolBlockOptionsSchema: z.ZodObject<{
3
+ disabled: z.ZodOptional<z.ZodBoolean>;
4
+ disabledText: z.ZodOptional<z.ZodString>;
5
+ hidden: z.ZodOptional<z.ZodBoolean>;
6
+ disabledBadge: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ export declare const TopolBlockTypeSchema: z.ZodEnum<{
9
+ text: "text";
10
+ image: "image";
11
+ gif: "gif";
12
+ button: "button";
13
+ divider: "divider";
14
+ spacer: "spacer";
15
+ social: "social";
16
+ video: "video";
17
+ html: "html";
18
+ raw: "raw";
19
+ "custom-raw": "custom-raw";
20
+ }>;
21
+ export declare const TopolContentBlockOptionsSchema: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
22
+ text: "text";
23
+ image: "image";
24
+ gif: "gif";
25
+ button: "button";
26
+ divider: "divider";
27
+ spacer: "spacer";
28
+ social: "social";
29
+ video: "video";
30
+ html: "html";
31
+ raw: "raw";
32
+ "custom-raw": "custom-raw";
33
+ }>, z.ZodNever]> & z.core.$partial, z.ZodObject<{
34
+ disabled: z.ZodOptional<z.ZodBoolean>;
35
+ disabledText: z.ZodOptional<z.ZodString>;
36
+ hidden: z.ZodOptional<z.ZodBoolean>;
37
+ disabledBadge: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$strip>>;
39
+ export type IContentBlockOptions = z.infer<typeof TopolContentBlockOptionsSchema>;
40
+ export default TopolContentBlockOptionsSchema;
41
+ export declare const TextAttributesSchema: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
42
+ "background-color": "background-color";
43
+ color: "color";
44
+ transform: "transform";
45
+ filter: "filter";
46
+ display: "display";
47
+ width: "width";
48
+ height: "height";
49
+ "max-width": "max-width";
50
+ "min-width": "min-width";
51
+ "max-height": "max-height";
52
+ "min-height": "min-height";
53
+ padding: "padding";
54
+ margin: "margin";
55
+ "line-height": "line-height";
56
+ "background-image": "background-image";
57
+ "background-size": "background-size";
58
+ "background-repeat": "background-repeat";
59
+ "background-position": "background-position";
60
+ "background-attachment": "background-attachment";
61
+ "background-clip": "background-clip";
62
+ "border-radius": "border-radius";
63
+ "border-width": "border-width";
64
+ "border-style": "border-style";
65
+ "border-color": "border-color";
66
+ overflow: "overflow";
67
+ opacity: "opacity";
68
+ "mix-blend-mode": "mix-blend-mode";
69
+ cursor: "cursor";
70
+ "box-shadow": "box-shadow";
71
+ "text-shadow": "text-shadow";
72
+ "backdrop-filter": "backdrop-filter";
73
+ transition: "transition";
74
+ "transform-origin": "transform-origin";
75
+ "backface-visibility": "backface-visibility";
76
+ "css-class": "css-class";
77
+ align: "align";
78
+ }>, z.ZodNever]> & z.core.$partial, z.ZodUnion<[z.ZodObject<{
79
+ value: z.ZodAny;
80
+ disabled: z.ZodOptional<z.ZodBoolean>;
81
+ validator: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
82
+ validatorErrorMessage: z.ZodOptional<z.ZodString>;
83
+ }, z.core.$strip>, z.ZodAny]>>;
84
+ export declare const TextStyleAttributesSchema: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
85
+ "background-color": "background-color";
86
+ color: "color";
87
+ transform: "transform";
88
+ filter: "filter";
89
+ display: "display";
90
+ width: "width";
91
+ height: "height";
92
+ "max-width": "max-width";
93
+ "min-width": "min-width";
94
+ "max-height": "max-height";
95
+ "min-height": "min-height";
96
+ padding: "padding";
97
+ margin: "margin";
98
+ "line-height": "line-height";
99
+ "background-image": "background-image";
100
+ "background-size": "background-size";
101
+ "background-repeat": "background-repeat";
102
+ "background-position": "background-position";
103
+ "background-attachment": "background-attachment";
104
+ "background-clip": "background-clip";
105
+ "border-radius": "border-radius";
106
+ "border-width": "border-width";
107
+ "border-style": "border-style";
108
+ "border-color": "border-color";
109
+ overflow: "overflow";
110
+ opacity: "opacity";
111
+ "mix-blend-mode": "mix-blend-mode";
112
+ cursor: "cursor";
113
+ "box-shadow": "box-shadow";
114
+ "text-shadow": "text-shadow";
115
+ "backdrop-filter": "backdrop-filter";
116
+ transition: "transition";
117
+ "transform-origin": "transform-origin";
118
+ "backface-visibility": "backface-visibility";
119
+ align: "align";
120
+ }>, z.ZodNever]> & z.core.$partial, z.ZodUnion<[z.ZodObject<{
121
+ value: z.ZodAny;
122
+ disabled: z.ZodOptional<z.ZodBoolean>;
123
+ validator: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
124
+ validatorErrorMessage: z.ZodOptional<z.ZodString>;
125
+ }, z.core.$strip>, z.ZodAny]>>;
126
+ export declare const ButtonAttributesSchema: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
127
+ "font-family": "font-family";
128
+ "font-size": "font-size";
129
+ "font-weight": "font-weight";
130
+ "font-style": "font-style";
131
+ "letter-spacing": "letter-spacing";
132
+ "text-transform": "text-transform";
133
+ "text-decoration": "text-decoration";
134
+ "background-color": "background-color";
135
+ color: "color";
136
+ transform: "transform";
137
+ filter: "filter";
138
+ display: "display";
139
+ width: "width";
140
+ height: "height";
141
+ "max-width": "max-width";
142
+ "min-width": "min-width";
143
+ "max-height": "max-height";
144
+ "min-height": "min-height";
145
+ padding: "padding";
146
+ margin: "margin";
147
+ "text-align": "text-align";
148
+ "line-height": "line-height";
149
+ "background-image": "background-image";
150
+ "background-size": "background-size";
151
+ "background-repeat": "background-repeat";
152
+ "background-position": "background-position";
153
+ "background-attachment": "background-attachment";
154
+ "background-clip": "background-clip";
155
+ "border-radius": "border-radius";
156
+ "border-width": "border-width";
157
+ "border-style": "border-style";
158
+ "border-color": "border-color";
159
+ overflow: "overflow";
160
+ opacity: "opacity";
161
+ "mix-blend-mode": "mix-blend-mode";
162
+ cursor: "cursor";
163
+ "box-shadow": "box-shadow";
164
+ "text-shadow": "text-shadow";
165
+ "backdrop-filter": "backdrop-filter";
166
+ transition: "transition";
167
+ "transform-origin": "transform-origin";
168
+ "backface-visibility": "backface-visibility";
169
+ href: "href";
170
+ target: "target";
171
+ "css-class": "css-class";
172
+ align: "align";
173
+ "inner-padding": "inner-padding";
174
+ border: "border";
175
+ }>, z.ZodNever]> & z.core.$partial, z.ZodUnion<[z.ZodObject<{
176
+ value: z.ZodAny;
177
+ disabled: z.ZodOptional<z.ZodBoolean>;
178
+ validator: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
179
+ validatorErrorMessage: z.ZodOptional<z.ZodString>;
180
+ }, z.core.$strip>, z.ZodAny]>>;
181
+ export declare const ButtonStyleAttributesSchema: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
182
+ "font-family": "font-family";
183
+ "font-size": "font-size";
184
+ "font-weight": "font-weight";
185
+ "font-style": "font-style";
186
+ "letter-spacing": "letter-spacing";
187
+ "text-transform": "text-transform";
188
+ "text-decoration": "text-decoration";
189
+ "background-color": "background-color";
190
+ color: "color";
191
+ transform: "transform";
192
+ filter: "filter";
193
+ display: "display";
194
+ width: "width";
195
+ height: "height";
196
+ "max-width": "max-width";
197
+ "min-width": "min-width";
198
+ "max-height": "max-height";
199
+ "min-height": "min-height";
200
+ padding: "padding";
201
+ margin: "margin";
202
+ "text-align": "text-align";
203
+ "line-height": "line-height";
204
+ "background-image": "background-image";
205
+ "background-size": "background-size";
206
+ "background-repeat": "background-repeat";
207
+ "background-position": "background-position";
208
+ "background-attachment": "background-attachment";
209
+ "background-clip": "background-clip";
210
+ "border-radius": "border-radius";
211
+ "border-width": "border-width";
212
+ "border-style": "border-style";
213
+ "border-color": "border-color";
214
+ overflow: "overflow";
215
+ opacity: "opacity";
216
+ "mix-blend-mode": "mix-blend-mode";
217
+ cursor: "cursor";
218
+ "box-shadow": "box-shadow";
219
+ "text-shadow": "text-shadow";
220
+ "backdrop-filter": "backdrop-filter";
221
+ transition: "transition";
222
+ "transform-origin": "transform-origin";
223
+ "backface-visibility": "backface-visibility";
224
+ }>, z.ZodNever]> & z.core.$partial, z.ZodUnion<[z.ZodObject<{
225
+ value: z.ZodAny;
226
+ disabled: z.ZodOptional<z.ZodBoolean>;
227
+ validator: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
228
+ validatorErrorMessage: z.ZodOptional<z.ZodString>;
229
+ }, z.core.$strip>, z.ZodAny]>>;
230
+ export declare const ImageAttributesSchema: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
231
+ src: "src";
232
+ transform: "transform";
233
+ title: "title";
234
+ filter: "filter";
235
+ display: "display";
236
+ width: "width";
237
+ height: "height";
238
+ "max-width": "max-width";
239
+ "min-width": "min-width";
240
+ "max-height": "max-height";
241
+ "min-height": "min-height";
242
+ padding: "padding";
243
+ margin: "margin";
244
+ "border-radius": "border-radius";
245
+ "border-width": "border-width";
246
+ "border-style": "border-style";
247
+ "border-color": "border-color";
248
+ overflow: "overflow";
249
+ opacity: "opacity";
250
+ "mix-blend-mode": "mix-blend-mode";
251
+ cursor: "cursor";
252
+ "box-shadow": "box-shadow";
253
+ "text-shadow": "text-shadow";
254
+ "backdrop-filter": "backdrop-filter";
255
+ transition: "transition";
256
+ "transform-origin": "transform-origin";
257
+ "backface-visibility": "backface-visibility";
258
+ href: "href";
259
+ target: "target";
260
+ "css-class": "css-class";
261
+ align: "align";
262
+ alt: "alt";
263
+ "fluid-on-mobile": "fluid-on-mobile";
264
+ }>, z.ZodNever]> & z.core.$partial, z.ZodUnion<[z.ZodObject<{
265
+ value: z.ZodAny;
266
+ disabled: z.ZodOptional<z.ZodBoolean>;
267
+ validator: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
268
+ validatorErrorMessage: z.ZodOptional<z.ZodString>;
269
+ }, z.core.$strip>, z.ZodAny]>>;
270
+ export declare const ImageStyleAttributesSchema: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
271
+ transform: "transform";
272
+ filter: "filter";
273
+ display: "display";
274
+ width: "width";
275
+ height: "height";
276
+ "max-width": "max-width";
277
+ "min-width": "min-width";
278
+ "max-height": "max-height";
279
+ "min-height": "min-height";
280
+ padding: "padding";
281
+ margin: "margin";
282
+ "border-radius": "border-radius";
283
+ "border-width": "border-width";
284
+ "border-style": "border-style";
285
+ "border-color": "border-color";
286
+ overflow: "overflow";
287
+ opacity: "opacity";
288
+ "mix-blend-mode": "mix-blend-mode";
289
+ cursor: "cursor";
290
+ "box-shadow": "box-shadow";
291
+ "text-shadow": "text-shadow";
292
+ "backdrop-filter": "backdrop-filter";
293
+ transition: "transition";
294
+ "transform-origin": "transform-origin";
295
+ "backface-visibility": "backface-visibility";
296
+ }>, z.ZodNever]> & z.core.$partial, z.ZodUnion<[z.ZodObject<{
297
+ value: z.ZodAny;
298
+ disabled: z.ZodOptional<z.ZodBoolean>;
299
+ validator: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
300
+ validatorErrorMessage: z.ZodOptional<z.ZodString>;
301
+ }, z.core.$strip>, z.ZodAny]>>;
302
+ export declare const TopolCustomBlockMixContentSchema: z.ZodObject<{
303
+ type: z.ZodEnum<{
304
+ text: "text";
305
+ image: "image";
306
+ button: "button";
307
+ video: "video";
308
+ }>;
309
+ attributes: z.ZodAny;
310
+ mdAttributes: z.ZodOptional<z.ZodAny>;
311
+ smAttributes: z.ZodOptional<z.ZodAny>;
312
+ xsAttributes: z.ZodOptional<z.ZodAny>;
313
+ content: z.ZodOptional<z.ZodString>;
314
+ }, z.core.$strip>;
315
+ export declare const TopolCustomBlockDataSchema: z.ZodObject<{
316
+ key: z.ZodString;
317
+ name: z.ZodString;
318
+ dialog: z.ZodOptional<z.ZodLiteral<true>>;
319
+ icon: z.ZodOptional<z.ZodString>;
320
+ content: z.ZodOptional<z.ZodString>;
321
+ dialogButtonText: z.ZodOptional<z.ZodString>;
322
+ beta: z.ZodOptional<z.ZodBoolean>;
323
+ disabled: z.ZodOptional<z.ZodBoolean>;
324
+ disabledBadge: z.ZodOptional<z.ZodString>;
325
+ type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
326
+ text: "text";
327
+ image: "image";
328
+ button: "button";
329
+ video: "video";
330
+ }>, z.ZodLiteral<"mix">]>>;
331
+ attributes: z.ZodOptional<z.ZodAny>;
332
+ mdAttributes: z.ZodOptional<z.ZodAny>;
333
+ smAttributes: z.ZodOptional<z.ZodAny>;
334
+ xsAttributes: z.ZodOptional<z.ZodAny>;
335
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
336
+ type: z.ZodEnum<{
337
+ text: "text";
338
+ image: "image";
339
+ button: "button";
340
+ video: "video";
341
+ }>;
342
+ attributes: z.ZodAny;
343
+ mdAttributes: z.ZodOptional<z.ZodAny>;
344
+ smAttributes: z.ZodOptional<z.ZodAny>;
345
+ xsAttributes: z.ZodOptional<z.ZodAny>;
346
+ content: z.ZodOptional<z.ZodString>;
347
+ }, z.core.$strip>>>;
348
+ }, z.core.$strip>;
349
+ export declare const TopolCustomBlocksDataSchema: z.ZodArray<z.ZodObject<{
350
+ key: z.ZodString;
351
+ name: z.ZodString;
352
+ dialog: z.ZodOptional<z.ZodLiteral<true>>;
353
+ icon: z.ZodOptional<z.ZodString>;
354
+ content: z.ZodOptional<z.ZodString>;
355
+ dialogButtonText: z.ZodOptional<z.ZodString>;
356
+ beta: z.ZodOptional<z.ZodBoolean>;
357
+ disabled: z.ZodOptional<z.ZodBoolean>;
358
+ disabledBadge: z.ZodOptional<z.ZodString>;
359
+ type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
360
+ text: "text";
361
+ image: "image";
362
+ button: "button";
363
+ video: "video";
364
+ }>, z.ZodLiteral<"mix">]>>;
365
+ attributes: z.ZodOptional<z.ZodAny>;
366
+ mdAttributes: z.ZodOptional<z.ZodAny>;
367
+ smAttributes: z.ZodOptional<z.ZodAny>;
368
+ xsAttributes: z.ZodOptional<z.ZodAny>;
369
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
370
+ type: z.ZodEnum<{
371
+ text: "text";
372
+ image: "image";
373
+ button: "button";
374
+ video: "video";
375
+ }>;
376
+ attributes: z.ZodAny;
377
+ mdAttributes: z.ZodOptional<z.ZodAny>;
378
+ smAttributes: z.ZodOptional<z.ZodAny>;
379
+ xsAttributes: z.ZodOptional<z.ZodAny>;
380
+ content: z.ZodOptional<z.ZodString>;
381
+ }, z.core.$strip>>>;
382
+ }, z.core.$strip>>;
383
+ export declare const TopolCustomBlockMixContentWithKeySchema: z.ZodObject<{
384
+ name: z.ZodString;
385
+ dialog: z.ZodOptional<z.ZodLiteral<true>>;
386
+ icon: z.ZodOptional<z.ZodString>;
387
+ content: z.ZodOptional<z.ZodString>;
388
+ dialogButtonText: z.ZodOptional<z.ZodString>;
389
+ beta: z.ZodOptional<z.ZodBoolean>;
390
+ disabled: z.ZodOptional<z.ZodBoolean>;
391
+ disabledBadge: z.ZodOptional<z.ZodString>;
392
+ type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
393
+ text: "text";
394
+ image: "image";
395
+ button: "button";
396
+ video: "video";
397
+ }>, z.ZodLiteral<"mix">]>>;
398
+ attributes: z.ZodOptional<z.ZodAny>;
399
+ mdAttributes: z.ZodOptional<z.ZodAny>;
400
+ smAttributes: z.ZodOptional<z.ZodAny>;
401
+ xsAttributes: z.ZodOptional<z.ZodAny>;
402
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
403
+ type: z.ZodEnum<{
404
+ text: "text";
405
+ image: "image";
406
+ button: "button";
407
+ video: "video";
408
+ }>;
409
+ attributes: z.ZodAny;
410
+ mdAttributes: z.ZodOptional<z.ZodAny>;
411
+ smAttributes: z.ZodOptional<z.ZodAny>;
412
+ xsAttributes: z.ZodOptional<z.ZodAny>;
413
+ content: z.ZodOptional<z.ZodString>;
414
+ }, z.core.$strip>>>;
415
+ key: z.ZodString;
416
+ }, z.core.$strip>;
417
+ export declare const TopolBlockClickedEventSchema: z.ZodObject<{
418
+ type: z.ZodEnum<{
419
+ text: "text";
420
+ image: "image";
421
+ gif: "gif";
422
+ button: "button";
423
+ divider: "divider";
424
+ spacer: "spacer";
425
+ social: "social";
426
+ video: "video";
427
+ html: "html";
428
+ raw: "raw";
429
+ "custom-raw": "custom-raw";
430
+ }>;
431
+ customBlockData: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
432
+ key: z.ZodString;
433
+ name: z.ZodString;
434
+ dialog: z.ZodOptional<z.ZodLiteral<true>>;
435
+ icon: z.ZodOptional<z.ZodString>;
436
+ content: z.ZodOptional<z.ZodString>;
437
+ dialogButtonText: z.ZodOptional<z.ZodString>;
438
+ beta: z.ZodOptional<z.ZodBoolean>;
439
+ disabled: z.ZodOptional<z.ZodBoolean>;
440
+ disabledBadge: z.ZodOptional<z.ZodString>;
441
+ type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
442
+ text: "text";
443
+ image: "image";
444
+ button: "button";
445
+ video: "video";
446
+ }>, z.ZodLiteral<"mix">]>>;
447
+ attributes: z.ZodOptional<z.ZodAny>;
448
+ mdAttributes: z.ZodOptional<z.ZodAny>;
449
+ smAttributes: z.ZodOptional<z.ZodAny>;
450
+ xsAttributes: z.ZodOptional<z.ZodAny>;
451
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
452
+ type: z.ZodEnum<{
453
+ text: "text";
454
+ image: "image";
455
+ button: "button";
456
+ video: "video";
457
+ }>;
458
+ attributes: z.ZodAny;
459
+ mdAttributes: z.ZodOptional<z.ZodAny>;
460
+ smAttributes: z.ZodOptional<z.ZodAny>;
461
+ xsAttributes: z.ZodOptional<z.ZodAny>;
462
+ content: z.ZodOptional<z.ZodString>;
463
+ }, z.core.$strip>>>;
464
+ }, z.core.$strip>, z.ZodString]>>;
465
+ }, z.core.$strip>;
466
+ export type TopolBlockType = z.infer<typeof TopolBlockTypeSchema>;
467
+ export type TopolCustomBlockData = z.infer<typeof TopolCustomBlockDataSchema>;
468
+ export type TopolCustomBlockMixContent = z.infer<typeof TopolCustomBlockMixContentSchema>;
469
+ export type TopolCustomBlockMixContentWithKey = z.infer<typeof TopolCustomBlockMixContentWithKeySchema>;
470
+ export type TopolBlockClickedEvent = z.infer<typeof TopolBlockClickedEventSchema>;
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export declare const FontSchema: z.ZodObject<{
3
+ label: z.ZodString;
4
+ style: z.ZodString;
5
+ url: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ export declare const FontsSchema: z.ZodArray<z.ZodObject<{
8
+ label: z.ZodString;
9
+ style: z.ZodString;
10
+ url: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>>;
12
+ export type IFont = z.infer<typeof FontSchema>;
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ export declare const HelpSchema: z.ZodObject<{
3
+ text: z.ZodString;
4
+ url: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export declare const HelpdeskSchema: z.ZodObject<{}, z.core.$strip>;
7
+ export type IHelp = z.infer<typeof HelpSchema>;
8
+ export type IHelpdesk = z.infer<typeof HelpdeskSchema>;
@@ -0,0 +1,26 @@
1
+ import z from "zod";
2
+ export declare const ImageSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ type: z.ZodUnion<readonly [z.ZodLiteral<"file">, z.ZodLiteral<"folder">]>;
5
+ path: z.ZodString;
6
+ new: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
7
+ url: z.ZodCatch<z.ZodOptional<z.ZodString>>;
8
+ size: z.ZodCatch<z.ZodOptional<z.ZodString>>;
9
+ contentType: z.ZodCatch<z.ZodOptional<z.ZodString>>;
10
+ extension: z.ZodCatch<z.ZodOptional<z.ZodString>>;
11
+ all: z.ZodCatch<z.ZodOptional<z.ZodUnknown>>;
12
+ date: z.ZodCatch<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
13
+ }, z.core.$strip>;
14
+ export declare const ImagesSchema: z.ZodArray<z.ZodObject<{
15
+ name: z.ZodString;
16
+ type: z.ZodUnion<readonly [z.ZodLiteral<"file">, z.ZodLiteral<"folder">]>;
17
+ path: z.ZodString;
18
+ new: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
19
+ url: z.ZodCatch<z.ZodOptional<z.ZodString>>;
20
+ size: z.ZodCatch<z.ZodOptional<z.ZodString>>;
21
+ contentType: z.ZodCatch<z.ZodOptional<z.ZodString>>;
22
+ extension: z.ZodCatch<z.ZodOptional<z.ZodString>>;
23
+ all: z.ZodCatch<z.ZodOptional<z.ZodUnknown>>;
24
+ date: z.ZodCatch<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
25
+ }, z.core.$strip>>;
26
+ export type IImage = z.infer<typeof ImageSchema>;
@@ -0,0 +1,3 @@
1
+ import z from "zod";
2
+ export declare const LanguageSchema: z.ZodUnion<readonly [z.ZodLiteral<"en">, z.ZodLiteral<"fr">, z.ZodLiteral<"pt">, z.ZodLiteral<"es">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ru">, z.ZodLiteral<"tr">, z.ZodLiteral<"de">, z.ZodLiteral<"sv">, z.ZodLiteral<"nl">, z.ZodLiteral<"it">, z.ZodLiteral<"fi">, z.ZodLiteral<"ro">, z.ZodLiteral<"cs">, z.ZodLiteral<"pl">, z.ZodLiteral<"ko">, z.ZodLiteral<"vi">, z.ZodLiteral<"he">, z.ZodLiteral<"ar">]>;
3
+ export type ILanguage = z.infer<typeof LanguageSchema>;
@@ -0,0 +1,31 @@
1
+ import { z } from "zod";
2
+ import { topolTemplateSchema } from "../templateSchema";
3
+ import type { TopolSection } from "../template/structure/sectionSchema";
4
+ import type { TopolColumn } from "../template/structure/columnSchema";
5
+ import type { TopolBlock } from "../template/structure/blockSchema";
6
+ export declare const MjmlStateSchema: z.ZodObject<{
7
+ mjml: typeof topolTemplateSchema;
8
+ selectedPath: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
9
+ edittedWithoutSave: z.ZodDefault<z.ZodBoolean>;
10
+ redoSnapshots: z.ZodDefault<z.ZodArray<typeof topolTemplateSchema>>;
11
+ snapshots: z.ZodDefault<z.ZodArray<typeof topolTemplateSchema>>;
12
+ productTab: z.ZodDefault<z.ZodString>;
13
+ defaultTemplate: typeof topolTemplateSchema;
14
+ }>;
15
+ export type Element = TopolSection | TopolColumn | TopolBlock | TopolSection["container"] | undefined;
16
+ export type baseAttributesKeys = keyof z.infer<typeof topolTemplateSchema>["attributes"];
17
+ export type TopolStyleKeys = keyof z.infer<typeof topolTemplateSchema>["style"];
18
+ export type MjmlState = z.infer<typeof MjmlStateSchema>;
19
+ export type MjmlStateGetters = {
20
+ getBase: any;
21
+ getElementByPath: (path: Array<string | number>) => Element;
22
+ getActiveElement: Element | null;
23
+ getSettingsElementAttribute: (elementName: string, prop: string, hover?: boolean) => any;
24
+ getSettingsElementHoverAttribute: (elementName: string, prop: string) => any;
25
+ getActiveElementHoverAttribute: (prop: string) => any;
26
+ getActiveElementAttribute: (prop: string) => any;
27
+ getSettingsContainerAttribute: (prop: string) => any;
28
+ getBlockAttribute: (block: Element | null, prop: string) => any;
29
+ getSettingsContainerWasChanged: () => boolean;
30
+ };
31
+ export type MjmlStateWithGetters = MjmlState & MjmlStateGetters;
@@ -0,0 +1,16 @@
1
+ import z from "zod";
2
+ export declare const NotificationSchema: z.ZodObject<{
3
+ title: z.ZodOptional<z.ZodString>;
4
+ text: z.ZodString;
5
+ expectSideEffect: z.ZodOptional<z.ZodBoolean>;
6
+ persistent: z.ZodOptional<z.ZodBoolean>;
7
+ type: z.ZodEnum<{
8
+ info: "info";
9
+ error: "error";
10
+ success: "success";
11
+ }>;
12
+ extarnalUse: z.ZodOptional<z.ZodBoolean>;
13
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
14
+ }, z.core.$strip>;
15
+ export type Notification = z.infer<typeof NotificationSchema>;
16
+ export type INotification = Notification;
@@ -0,0 +1,7 @@
1
+ import { z } from "zod";
2
+ declare const OpenAIMessageSchema: z.ZodObject<{
3
+ role: z.ZodString;
4
+ content: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export type IOpenAIMessage = z.infer<typeof OpenAIMessageSchema>;
7
+ export {};
@@ -0,0 +1,81 @@
1
+ import { type IAuthHeaderConfig } from "../authHeaderConfig/authHeaderConfigScheme";
2
+ import { type IAPI } from "../api/apiSchema";
3
+ import { type IFont } from "../font/fontSchema";
4
+ import { type ILanguage } from "../language/languageSchema";
5
+ import { type ISavedBlocks } from "../savedBlock/savedBlockSchema";
6
+ import { type ITheme } from "../theme/themeSchema";
7
+ import { type IContentBlockOptions, type TopolCustomBlockData } from "../contentBlock/contentBlockScheme";
8
+ import { type IHelpdesk } from "../helpdesk/helpdeskSchema";
9
+ import { type IOptionsUser } from "../user/userSchema";
10
+ import { type TopolTemplateSettings } from "../templateSettings/templateSettingsSchema";
11
+ import z from "zod";
12
+ import { type IOptionsPremadeBlock } from "../premadeBlock/premadeBlockSchema";
13
+ export declare const PluginOptionsSchema: z.ZodTypeAny;
14
+ export type LambdaStage = "local" | "production" | "stage1" | "stage2" | "stage3";
15
+ export type UserRole = "manager" | "editor" | "reader";
16
+ export interface IPluginOptions {
17
+ authorize: {
18
+ apiKey: string;
19
+ userId: string | number;
20
+ };
21
+ api?: IAPI;
22
+ apiAuthorizationHeader?: IAuthHeaderConfig | string;
23
+ autosaveInterval?: number;
24
+ chatAI?: boolean;
25
+ colors?: string[];
26
+ contentBlocks?: IContentBlockOptions;
27
+ currentUser?: IOptionsUser;
28
+ customBlocks?: TopolCustomBlockData[];
29
+ customFileManager?: boolean;
30
+ customFonts?: {
31
+ override?: boolean;
32
+ fonts: IFont[];
33
+ };
34
+ defaultTemplateSettings?: TopolTemplateSettings;
35
+ disableAiAssistant?: boolean;
36
+ disableAlerts?: boolean;
37
+ disableExtendedComparators?: boolean;
38
+ enableAutosaves?: boolean;
39
+ enableComments?: boolean;
40
+ fileManagerPreferences?: {
41
+ defaultTilesView?: boolean;
42
+ };
43
+ fontSizes?: number[];
44
+ googleApiKey?: string;
45
+ helpdesk?: IHelpdesk;
46
+ hideSettingsTab?: boolean;
47
+ hideTopbarControls?: string[];
48
+ htmlMinified?: boolean;
49
+ imageCompressionOptions?: {
50
+ qualityJpeg?: number;
51
+ qualityPng?: number;
52
+ enableAutoResize?: boolean;
53
+ enableCompression?: boolean;
54
+ };
55
+ imageEditor?: boolean;
56
+ imageMaxSize?: number;
57
+ lambdaStage?: LambdaStage;
58
+ language?: ILanguage;
59
+ light?: boolean;
60
+ premadeBlocks?: IOptionsPremadeBlock;
61
+ premadeTemplates?: boolean;
62
+ premadeTemplatesOptions?: {
63
+ hideSearch?: boolean;
64
+ showDelete?: boolean;
65
+ };
66
+ removeTopBar?: boolean;
67
+ renameTemplate?: boolean;
68
+ role?: UserRole;
69
+ savedBlocks?: ISavedBlocks;
70
+ showUnsavedDialogBeforeExit?: boolean;
71
+ syncedSectionsEnabled?: boolean;
72
+ teamUsers?: IOptionsUser[];
73
+ templateId?: number | string;
74
+ textOverride?: Record<string, string>;
75
+ theme?: ITheme;
76
+ title?: string;
77
+ windowBar?: string[];
78
+ }
79
+ export type IPluginOptionsPartial = Omit<IPluginOptions, "authorize" | "callbacks">;
80
+ export declare const XpropsSchema: z.ZodTypeAny;
81
+ export type IXprops = z.infer<typeof XpropsSchema>;