@u-krupaveho-kraba/form-schemas 0.1.2 → 0.2.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.
@@ -21,101 +21,37 @@
21
21
  "type": "string"
22
22
  }
23
23
  },
24
- "frequency": {
24
+ "schedule": {
25
25
  "type": "object",
26
26
  "properties": {
27
- "minVisitCount": {
28
- "type": "number"
29
- },
30
- "maxDisplays": {
31
- "type": "number"
27
+ "startsAt": {
28
+ "type": "string"
32
29
  },
33
- "minHoursBetweenDisplays": {
34
- "type": "number"
35
- }
36
- },
37
- "additionalProperties": false
38
- }
39
- },
40
- "additionalProperties": false
41
- },
42
- "schedule": {
43
- "type": "object",
44
- "properties": {
45
- "startsAt": {
46
- "type": "string"
47
- },
48
- "endsAt": {
49
- "type": "string"
50
- }
51
- },
52
- "additionalProperties": false
53
- },
54
- "trigger": {
55
- "oneOf": [
56
- {
57
- "type": "object",
58
- "properties": {
59
- "type": {
60
- "type": "string",
61
- "const": "immediate"
30
+ "endsAt": {
31
+ "type": "string"
62
32
  }
63
33
  },
64
- "required": [
65
- "type"
66
- ],
67
34
  "additionalProperties": false
68
35
  },
69
- {
36
+ "frequency": {
70
37
  "type": "object",
71
38
  "properties": {
72
- "type": {
73
- "type": "string",
74
- "const": "delay"
39
+ "minVisitCount": {
40
+ "type": "number"
75
41
  },
76
- "seconds": {
42
+ "maxDisplays": {
77
43
  "type": "number"
78
- }
79
- },
80
- "required": [
81
- "type",
82
- "seconds"
83
- ],
84
- "additionalProperties": false
85
- },
86
- {
87
- "type": "object",
88
- "properties": {
89
- "type": {
90
- "type": "string",
91
- "const": "scroll_depth"
92
44
  },
93
- "percent": {
45
+ "minHoursBetweenDisplays": {
94
46
  "type": "number"
95
47
  }
96
48
  },
97
- "required": [
98
- "type",
99
- "percent"
100
- ],
101
- "additionalProperties": false
102
- },
103
- {
104
- "type": "object",
105
- "properties": {
106
- "type": {
107
- "type": "string",
108
- "const": "exit_intent"
109
- }
110
- },
111
- "required": [
112
- "type"
113
- ],
114
49
  "additionalProperties": false
115
50
  }
116
- ]
51
+ },
52
+ "additionalProperties": false
117
53
  },
118
- "variants": {
54
+ "items": {
119
55
  "type": "array",
120
56
  "items": {
121
57
  "type": "object",
@@ -126,1349 +62,1474 @@
126
62
  "name": {
127
63
  "type": "string"
128
64
  },
129
- "definition": {
130
- "anyOf": [
65
+ "targeting": {
66
+ "type": "object",
67
+ "properties": {
68
+ "urlPatterns": {
69
+ "type": "array",
70
+ "items": {
71
+ "type": "string"
72
+ }
73
+ },
74
+ "schedule": {
75
+ "type": "object",
76
+ "properties": {
77
+ "startsAt": {
78
+ "type": "string"
79
+ },
80
+ "endsAt": {
81
+ "type": "string"
82
+ }
83
+ },
84
+ "additionalProperties": false
85
+ },
86
+ "frequency": {
87
+ "type": "object",
88
+ "properties": {
89
+ "minVisitCount": {
90
+ "type": "number"
91
+ },
92
+ "maxDisplays": {
93
+ "type": "number"
94
+ },
95
+ "minHoursBetweenDisplays": {
96
+ "type": "number"
97
+ }
98
+ },
99
+ "additionalProperties": false
100
+ }
101
+ },
102
+ "additionalProperties": false
103
+ },
104
+ "trigger": {
105
+ "oneOf": [
131
106
  {
132
- "oneOf": [
133
- {
134
- "type": "object",
135
- "properties": {
136
- "language": {
137
- "type": "string",
138
- "enum": [
139
- "cs",
140
- "en"
141
- ]
142
- },
143
- "steps": {
144
- "type": "array",
145
- "items": {
107
+ "type": "object",
108
+ "properties": {
109
+ "type": {
110
+ "type": "string",
111
+ "const": "immediate"
112
+ }
113
+ },
114
+ "required": [
115
+ "type"
116
+ ],
117
+ "additionalProperties": false
118
+ },
119
+ {
120
+ "type": "object",
121
+ "properties": {
122
+ "type": {
123
+ "type": "string",
124
+ "const": "delay"
125
+ },
126
+ "seconds": {
127
+ "type": "number"
128
+ }
129
+ },
130
+ "required": [
131
+ "type",
132
+ "seconds"
133
+ ],
134
+ "additionalProperties": false
135
+ },
136
+ {
137
+ "type": "object",
138
+ "properties": {
139
+ "type": {
140
+ "type": "string",
141
+ "const": "scroll_depth"
142
+ },
143
+ "percent": {
144
+ "type": "number"
145
+ }
146
+ },
147
+ "required": [
148
+ "type",
149
+ "percent"
150
+ ],
151
+ "additionalProperties": false
152
+ },
153
+ {
154
+ "type": "object",
155
+ "properties": {
156
+ "type": {
157
+ "type": "string",
158
+ "const": "exit_intent"
159
+ }
160
+ },
161
+ "required": [
162
+ "type"
163
+ ],
164
+ "additionalProperties": false
165
+ }
166
+ ]
167
+ },
168
+ "exclusiveWith": {
169
+ "type": "string"
170
+ },
171
+ "variants": {
172
+ "type": "array",
173
+ "items": {
174
+ "type": "object",
175
+ "properties": {
176
+ "id": {
177
+ "type": "string"
178
+ },
179
+ "name": {
180
+ "type": "string"
181
+ },
182
+ "definition": {
183
+ "anyOf": [
184
+ {
185
+ "oneOf": [
186
+ {
146
187
  "type": "object",
147
188
  "properties": {
148
- "type": {
189
+ "language": {
149
190
  "type": "string",
150
- "const": "step"
151
- },
152
- "name": {
153
- "type": "string"
191
+ "enum": [
192
+ "cs",
193
+ "en"
194
+ ]
154
195
  },
155
- "elements": {
196
+ "steps": {
156
197
  "type": "array",
157
198
  "items": {
158
- "$ref": "#/$defs/__schema0"
199
+ "type": "object",
200
+ "properties": {
201
+ "type": {
202
+ "type": "string",
203
+ "const": "step"
204
+ },
205
+ "name": {
206
+ "type": "string"
207
+ },
208
+ "elements": {
209
+ "type": "array",
210
+ "items": {
211
+ "$ref": "#/$defs/__schema0"
212
+ }
213
+ },
214
+ "id": {
215
+ "type": "string"
216
+ },
217
+ "displayProperties": {
218
+ "type": "object",
219
+ "properties": {
220
+ "padding": {
221
+ "type": "object",
222
+ "properties": {
223
+ "left": {
224
+ "type": "number"
225
+ },
226
+ "right": {
227
+ "type": "number"
228
+ },
229
+ "top": {
230
+ "type": "number"
231
+ },
232
+ "bottom": {
233
+ "type": "number"
234
+ },
235
+ "independent": {
236
+ "type": "boolean"
237
+ }
238
+ },
239
+ "required": [
240
+ "left",
241
+ "right",
242
+ "top",
243
+ "bottom",
244
+ "independent"
245
+ ],
246
+ "additionalProperties": false
247
+ },
248
+ "backgroundColor": {
249
+ "type": "string",
250
+ "pattern": "^#[\\s\\S]{0,}$"
251
+ },
252
+ "minHeight": {
253
+ "type": "number"
254
+ }
255
+ },
256
+ "required": [
257
+ "padding"
258
+ ],
259
+ "additionalProperties": false
260
+ }
261
+ },
262
+ "required": [
263
+ "type",
264
+ "name",
265
+ "elements",
266
+ "id",
267
+ "displayProperties"
268
+ ],
269
+ "additionalProperties": false
159
270
  }
160
271
  },
161
- "id": {
162
- "type": "string"
163
- },
164
- "displayProperties": {
272
+ "theme": {
165
273
  "type": "object",
166
274
  "properties": {
167
- "padding": {
168
- "type": "object",
169
- "properties": {
170
- "left": {
171
- "type": "number"
172
- },
173
- "right": {
174
- "type": "number"
275
+ "corners": {
276
+ "type": "string",
277
+ "enum": [
278
+ "none",
279
+ "sm",
280
+ "md",
281
+ "lg"
282
+ ]
283
+ },
284
+ "mainColor": {
285
+ "type": "string",
286
+ "pattern": "^#[\\s\\S]{0,}$"
287
+ },
288
+ "secondaryColor": {
289
+ "type": "array",
290
+ "prefixItems": [
291
+ {
292
+ "type": "string",
293
+ "pattern": "^#[\\s\\S]{0,}$"
175
294
  },
176
- "top": {
177
- "type": "number"
295
+ {
296
+ "type": "string",
297
+ "pattern": "^#[\\s\\S]{0,}$"
178
298
  },
179
- "bottom": {
180
- "type": "number"
299
+ {
300
+ "type": "string",
301
+ "pattern": "^#[\\s\\S]{0,}$"
181
302
  },
182
- "independent": {
183
- "type": "boolean"
303
+ {
304
+ "type": "string",
305
+ "pattern": "^#[\\s\\S]{0,}$"
184
306
  }
185
- },
186
- "required": [
187
- "left",
188
- "right",
189
- "top",
190
- "bottom",
191
- "independent"
192
- ],
193
- "additionalProperties": false
307
+ ]
194
308
  },
195
309
  "backgroundColor": {
196
310
  "type": "string",
197
311
  "pattern": "^#[\\s\\S]{0,}$"
198
312
  },
199
- "minHeight": {
200
- "type": "number"
313
+ "fontFamily": {
314
+ "type": "string"
201
315
  }
202
316
  },
203
317
  "required": [
204
- "padding"
318
+ "corners",
319
+ "mainColor",
320
+ "secondaryColor",
321
+ "backgroundColor",
322
+ "fontFamily"
205
323
  ],
206
324
  "additionalProperties": false
207
- }
208
- },
209
- "required": [
210
- "type",
211
- "name",
212
- "elements",
213
- "id",
214
- "displayProperties"
215
- ],
216
- "additionalProperties": false
217
- }
218
- },
219
- "theme": {
220
- "type": "object",
221
- "properties": {
222
- "corners": {
223
- "type": "string",
224
- "enum": [
225
- "none",
226
- "sm",
227
- "md",
228
- "lg"
229
- ]
230
- },
231
- "mainColor": {
232
- "type": "string",
233
- "pattern": "^#[\\s\\S]{0,}$"
234
- },
235
- "secondaryColor": {
236
- "type": "array",
237
- "prefixItems": [
238
- {
239
- "type": "string",
240
- "pattern": "^#[\\s\\S]{0,}$"
241
- },
242
- {
243
- "type": "string",
244
- "pattern": "^#[\\s\\S]{0,}$"
245
- },
246
- {
247
- "type": "string",
248
- "pattern": "^#[\\s\\S]{0,}$"
249
- },
250
- {
251
- "type": "string",
252
- "pattern": "^#[\\s\\S]{0,}$"
253
- }
254
- ]
255
- },
256
- "backgroundColor": {
257
- "type": "string",
258
- "pattern": "^#[\\s\\S]{0,}$"
259
- },
260
- "fontFamily": {
261
- "type": "string"
262
- }
263
- },
264
- "required": [
265
- "corners",
266
- "mainColor",
267
- "secondaryColor",
268
- "backgroundColor",
269
- "fontFamily"
270
- ],
271
- "additionalProperties": false
272
- },
273
- "version": {
274
- "type": "number",
275
- "const": 1
276
- },
277
- "usedFonts": {
278
- "type": "array",
279
- "items": {
280
- "type": "string"
281
- }
282
- },
283
- "type": {
284
- "type": "string",
285
- "const": "basic"
286
- },
287
- "display": {
288
- "type": "object",
289
- "properties": {
290
- "border": {
291
- "type": "object",
292
- "properties": {
293
- "width": {
294
- "type": "number"
295
- },
296
- "color": {
297
- "type": "string",
298
- "pattern": "^#[\\s\\S]{0,}$"
299
- },
300
- "style": {
301
- "type": "string",
302
- "enum": [
303
- "none",
304
- "solid",
305
- "dashed",
306
- "dotted"
307
- ]
308
- },
309
- "sides": {
310
- "type": "string",
311
- "enum": [
312
- "all",
313
- "top",
314
- "right",
315
- "bottom",
316
- "left"
317
- ]
318
- },
319
- "useTheme": {
320
- "type": "boolean"
321
- }
322
325
  },
323
- "required": [
324
- "width",
325
- "color",
326
- "style"
327
- ],
328
- "additionalProperties": false
329
- },
330
- "shadow": {
331
- "type": "object",
332
- "properties": {
333
- "offsetX": {
334
- "type": "number"
335
- },
336
- "offsetY": {
337
- "type": "number"
338
- },
339
- "blur": {
340
- "type": "number"
341
- },
342
- "spread": {
343
- "type": "number"
344
- },
345
- "color": {
346
- "type": "string"
347
- },
348
- "raw": {
326
+ "version": {
327
+ "type": "number",
328
+ "const": 1
329
+ },
330
+ "usedFonts": {
331
+ "type": "array",
332
+ "items": {
349
333
  "type": "string"
350
334
  }
351
335
  },
352
- "required": [
353
- "offsetX",
354
- "offsetY",
355
- "blur",
356
- "spread",
357
- "color"
358
- ],
359
- "additionalProperties": false
360
- },
361
- "maxWidth": {
362
- "type": "number"
363
- }
364
- },
365
- "required": [
366
- "border",
367
- "maxWidth"
368
- ],
369
- "additionalProperties": false
370
- }
371
- },
372
- "required": [
373
- "language",
374
- "steps",
375
- "theme",
376
- "version",
377
- "usedFonts",
378
- "type",
379
- "display"
380
- ],
381
- "additionalProperties": false
382
- },
383
- {
384
- "type": "object",
385
- "properties": {
386
- "language": {
387
- "type": "string",
388
- "enum": [
389
- "cs",
390
- "en"
391
- ]
392
- },
393
- "steps": {
394
- "type": "array",
395
- "items": {
396
- "type": "object",
397
- "properties": {
398
336
  "type": {
399
337
  "type": "string",
400
- "const": "step"
401
- },
402
- "name": {
403
- "type": "string"
404
- },
405
- "elements": {
406
- "type": "array",
407
- "items": {
408
- "$ref": "#/$defs/__schema0"
409
- }
338
+ "const": "basic"
410
339
  },
411
- "id": {
412
- "type": "string"
413
- },
414
- "displayProperties": {
340
+ "display": {
415
341
  "type": "object",
416
342
  "properties": {
417
- "padding": {
343
+ "border": {
418
344
  "type": "object",
419
345
  "properties": {
420
- "left": {
346
+ "width": {
421
347
  "type": "number"
422
348
  },
423
- "right": {
349
+ "color": {
350
+ "type": "string",
351
+ "pattern": "^#[\\s\\S]{0,}$"
352
+ },
353
+ "style": {
354
+ "type": "string",
355
+ "enum": [
356
+ "none",
357
+ "solid",
358
+ "dashed",
359
+ "dotted"
360
+ ]
361
+ },
362
+ "sides": {
363
+ "type": "string",
364
+ "enum": [
365
+ "all",
366
+ "top",
367
+ "right",
368
+ "bottom",
369
+ "left"
370
+ ]
371
+ },
372
+ "useTheme": {
373
+ "type": "boolean"
374
+ }
375
+ },
376
+ "required": [
377
+ "width",
378
+ "color",
379
+ "style"
380
+ ],
381
+ "additionalProperties": false
382
+ },
383
+ "shadow": {
384
+ "type": "object",
385
+ "properties": {
386
+ "offsetX": {
424
387
  "type": "number"
425
388
  },
426
- "top": {
389
+ "offsetY": {
427
390
  "type": "number"
428
391
  },
429
- "bottom": {
392
+ "blur": {
430
393
  "type": "number"
431
394
  },
432
- "independent": {
433
- "type": "boolean"
395
+ "spread": {
396
+ "type": "number"
397
+ },
398
+ "color": {
399
+ "type": "string"
400
+ },
401
+ "raw": {
402
+ "type": "string"
434
403
  }
435
404
  },
436
405
  "required": [
437
- "left",
438
- "right",
439
- "top",
440
- "bottom",
441
- "independent"
406
+ "offsetX",
407
+ "offsetY",
408
+ "blur",
409
+ "spread",
410
+ "color"
442
411
  ],
443
412
  "additionalProperties": false
444
413
  },
445
- "backgroundColor": {
446
- "type": "string",
447
- "pattern": "^#[\\s\\S]{0,}$"
448
- },
449
- "minHeight": {
414
+ "maxWidth": {
450
415
  "type": "number"
451
416
  }
452
417
  },
453
418
  "required": [
454
- "padding"
419
+ "border",
420
+ "maxWidth"
455
421
  ],
456
422
  "additionalProperties": false
457
423
  }
458
424
  },
459
425
  "required": [
426
+ "language",
427
+ "steps",
428
+ "theme",
429
+ "version",
430
+ "usedFonts",
460
431
  "type",
461
- "name",
462
- "elements",
463
- "id",
464
- "displayProperties"
432
+ "display"
465
433
  ],
466
434
  "additionalProperties": false
467
- }
468
- },
469
- "theme": {
470
- "type": "object",
471
- "properties": {
472
- "corners": {
473
- "type": "string",
474
- "enum": [
475
- "none",
476
- "sm",
477
- "md",
478
- "lg"
479
- ]
480
- },
481
- "mainColor": {
482
- "type": "string",
483
- "pattern": "^#[\\s\\S]{0,}$"
484
- },
485
- "secondaryColor": {
486
- "type": "array",
487
- "prefixItems": [
488
- {
489
- "type": "string",
490
- "pattern": "^#[\\s\\S]{0,}$"
491
- },
492
- {
493
- "type": "string",
494
- "pattern": "^#[\\s\\S]{0,}$"
495
- },
496
- {
497
- "type": "string",
498
- "pattern": "^#[\\s\\S]{0,}$"
499
- },
500
- {
501
- "type": "string",
502
- "pattern": "^#[\\s\\S]{0,}$"
503
- }
504
- ]
505
- },
506
- "backgroundColor": {
507
- "type": "string",
508
- "pattern": "^#[\\s\\S]{0,}$"
509
- },
510
- "fontFamily": {
511
- "type": "string"
512
- }
513
435
  },
514
- "required": [
515
- "corners",
516
- "mainColor",
517
- "secondaryColor",
518
- "backgroundColor",
519
- "fontFamily"
520
- ],
521
- "additionalProperties": false
522
- },
523
- "version": {
524
- "type": "number",
525
- "const": 1
526
- },
527
- "usedFonts": {
528
- "type": "array",
529
- "items": {
530
- "type": "string"
531
- }
532
- },
533
- "type": {
534
- "type": "string",
535
- "const": "popup"
536
- },
537
- "display": {
538
- "type": "object",
539
- "properties": {
540
- "border": {
541
- "type": "object",
542
- "properties": {
543
- "width": {
544
- "type": "number"
545
- },
546
- "color": {
547
- "type": "string",
548
- "pattern": "^#[\\s\\S]{0,}$"
549
- },
550
- "style": {
551
- "type": "string",
552
- "enum": [
553
- "none",
554
- "solid",
555
- "dashed",
556
- "dotted"
557
- ]
558
- },
559
- "sides": {
560
- "type": "string",
561
- "enum": [
562
- "all",
563
- "top",
564
- "right",
565
- "bottom",
566
- "left"
567
- ]
568
- },
569
- "useTheme": {
570
- "type": "boolean"
571
- }
572
- },
573
- "required": [
574
- "width",
575
- "color",
576
- "style"
577
- ],
578
- "additionalProperties": false
579
- },
580
- "shadow": {
581
- "type": "object",
582
- "properties": {
583
- "offsetX": {
584
- "type": "number"
585
- },
586
- "offsetY": {
587
- "type": "number"
588
- },
589
- "blur": {
590
- "type": "number"
591
- },
592
- "spread": {
593
- "type": "number"
594
- },
595
- "color": {
596
- "type": "string"
597
- },
598
- "raw": {
599
- "type": "string"
600
- }
436
+ {
437
+ "type": "object",
438
+ "properties": {
439
+ "language": {
440
+ "type": "string",
441
+ "enum": [
442
+ "cs",
443
+ "en"
444
+ ]
601
445
  },
602
- "required": [
603
- "offsetX",
604
- "offsetY",
605
- "blur",
606
- "spread",
607
- "color"
608
- ],
609
- "additionalProperties": false
610
- },
611
- "position": {
612
- "type": "object",
613
- "properties": {
614
- "distance": {
446
+ "steps": {
447
+ "type": "array",
448
+ "items": {
615
449
  "type": "object",
616
450
  "properties": {
617
- "left": {
618
- "type": "number"
451
+ "type": {
452
+ "type": "string",
453
+ "const": "step"
619
454
  },
620
- "right": {
621
- "type": "number"
455
+ "name": {
456
+ "type": "string"
622
457
  },
623
- "top": {
624
- "type": "number"
458
+ "elements": {
459
+ "type": "array",
460
+ "items": {
461
+ "$ref": "#/$defs/__schema0"
462
+ }
625
463
  },
626
- "bottom": {
627
- "type": "number"
464
+ "id": {
465
+ "type": "string"
628
466
  },
629
- "independent": {
630
- "type": "boolean"
467
+ "displayProperties": {
468
+ "type": "object",
469
+ "properties": {
470
+ "padding": {
471
+ "type": "object",
472
+ "properties": {
473
+ "left": {
474
+ "type": "number"
475
+ },
476
+ "right": {
477
+ "type": "number"
478
+ },
479
+ "top": {
480
+ "type": "number"
481
+ },
482
+ "bottom": {
483
+ "type": "number"
484
+ },
485
+ "independent": {
486
+ "type": "boolean"
487
+ }
488
+ },
489
+ "required": [
490
+ "left",
491
+ "right",
492
+ "top",
493
+ "bottom",
494
+ "independent"
495
+ ],
496
+ "additionalProperties": false
497
+ },
498
+ "backgroundColor": {
499
+ "type": "string",
500
+ "pattern": "^#[\\s\\S]{0,}$"
501
+ },
502
+ "minHeight": {
503
+ "type": "number"
504
+ }
505
+ },
506
+ "required": [
507
+ "padding"
508
+ ],
509
+ "additionalProperties": false
631
510
  }
632
511
  },
633
512
  "required": [
634
- "left",
635
- "right",
636
- "top",
637
- "bottom",
638
- "independent"
513
+ "type",
514
+ "name",
515
+ "elements",
516
+ "id",
517
+ "displayProperties"
639
518
  ],
640
519
  "additionalProperties": false
641
- },
642
- "id": {
643
- "type": "number",
644
- "enum": [
645
- 1,
646
- 2,
647
- 3,
648
- 4,
649
- 5,
650
- 6,
651
- 7,
652
- 8,
653
- 9
654
- ]
655
520
  }
656
521
  },
657
- "required": [
658
- "distance",
659
- "id"
660
- ],
661
- "additionalProperties": false
662
- },
663
- "closeIcon": {
664
- "type": "object",
665
- "properties": {
666
- "color": {
667
- "type": "string"
668
- },
669
- "size": {
670
- "type": "number"
522
+ "theme": {
523
+ "type": "object",
524
+ "properties": {
525
+ "corners": {
526
+ "type": "string",
527
+ "enum": [
528
+ "none",
529
+ "sm",
530
+ "md",
531
+ "lg"
532
+ ]
533
+ },
534
+ "mainColor": {
535
+ "type": "string",
536
+ "pattern": "^#[\\s\\S]{0,}$"
537
+ },
538
+ "secondaryColor": {
539
+ "type": "array",
540
+ "prefixItems": [
541
+ {
542
+ "type": "string",
543
+ "pattern": "^#[\\s\\S]{0,}$"
544
+ },
545
+ {
546
+ "type": "string",
547
+ "pattern": "^#[\\s\\S]{0,}$"
548
+ },
549
+ {
550
+ "type": "string",
551
+ "pattern": "^#[\\s\\S]{0,}$"
552
+ },
553
+ {
554
+ "type": "string",
555
+ "pattern": "^#[\\s\\S]{0,}$"
556
+ }
557
+ ]
558
+ },
559
+ "backgroundColor": {
560
+ "type": "string",
561
+ "pattern": "^#[\\s\\S]{0,}$"
562
+ },
563
+ "fontFamily": {
564
+ "type": "string"
565
+ }
671
566
  },
672
- "padding": {
673
- "type": "object",
674
- "properties": {
675
- "left": {
676
- "type": "number"
567
+ "required": [
568
+ "corners",
569
+ "mainColor",
570
+ "secondaryColor",
571
+ "backgroundColor",
572
+ "fontFamily"
573
+ ],
574
+ "additionalProperties": false
575
+ },
576
+ "version": {
577
+ "type": "number",
578
+ "const": 1
579
+ },
580
+ "usedFonts": {
581
+ "type": "array",
582
+ "items": {
583
+ "type": "string"
584
+ }
585
+ },
586
+ "type": {
587
+ "type": "string",
588
+ "const": "popup"
589
+ },
590
+ "display": {
591
+ "type": "object",
592
+ "properties": {
593
+ "border": {
594
+ "type": "object",
595
+ "properties": {
596
+ "width": {
597
+ "type": "number"
598
+ },
599
+ "color": {
600
+ "type": "string",
601
+ "pattern": "^#[\\s\\S]{0,}$"
602
+ },
603
+ "style": {
604
+ "type": "string",
605
+ "enum": [
606
+ "none",
607
+ "solid",
608
+ "dashed",
609
+ "dotted"
610
+ ]
611
+ },
612
+ "sides": {
613
+ "type": "string",
614
+ "enum": [
615
+ "all",
616
+ "top",
617
+ "right",
618
+ "bottom",
619
+ "left"
620
+ ]
621
+ },
622
+ "useTheme": {
623
+ "type": "boolean"
624
+ }
677
625
  },
678
- "right": {
679
- "type": "number"
626
+ "required": [
627
+ "width",
628
+ "color",
629
+ "style"
630
+ ],
631
+ "additionalProperties": false
632
+ },
633
+ "shadow": {
634
+ "type": "object",
635
+ "properties": {
636
+ "offsetX": {
637
+ "type": "number"
638
+ },
639
+ "offsetY": {
640
+ "type": "number"
641
+ },
642
+ "blur": {
643
+ "type": "number"
644
+ },
645
+ "spread": {
646
+ "type": "number"
647
+ },
648
+ "color": {
649
+ "type": "string"
650
+ },
651
+ "raw": {
652
+ "type": "string"
653
+ }
680
654
  },
681
- "top": {
682
- "type": "number"
655
+ "required": [
656
+ "offsetX",
657
+ "offsetY",
658
+ "blur",
659
+ "spread",
660
+ "color"
661
+ ],
662
+ "additionalProperties": false
663
+ },
664
+ "position": {
665
+ "type": "object",
666
+ "properties": {
667
+ "distance": {
668
+ "type": "object",
669
+ "properties": {
670
+ "left": {
671
+ "type": "number"
672
+ },
673
+ "right": {
674
+ "type": "number"
675
+ },
676
+ "top": {
677
+ "type": "number"
678
+ },
679
+ "bottom": {
680
+ "type": "number"
681
+ },
682
+ "independent": {
683
+ "type": "boolean"
684
+ }
685
+ },
686
+ "required": [
687
+ "left",
688
+ "right",
689
+ "top",
690
+ "bottom",
691
+ "independent"
692
+ ],
693
+ "additionalProperties": false
694
+ },
695
+ "id": {
696
+ "type": "number",
697
+ "enum": [
698
+ 1,
699
+ 2,
700
+ 3,
701
+ 4,
702
+ 5,
703
+ 6,
704
+ 7,
705
+ 8,
706
+ 9
707
+ ]
708
+ }
683
709
  },
684
- "bottom": {
685
- "type": "number"
710
+ "required": [
711
+ "distance",
712
+ "id"
713
+ ],
714
+ "additionalProperties": false
715
+ },
716
+ "closeIcon": {
717
+ "type": "object",
718
+ "properties": {
719
+ "color": {
720
+ "type": "string"
721
+ },
722
+ "size": {
723
+ "type": "number"
724
+ },
725
+ "padding": {
726
+ "type": "object",
727
+ "properties": {
728
+ "left": {
729
+ "type": "number"
730
+ },
731
+ "right": {
732
+ "type": "number"
733
+ },
734
+ "top": {
735
+ "type": "number"
736
+ },
737
+ "bottom": {
738
+ "type": "number"
739
+ },
740
+ "independent": {
741
+ "type": "boolean"
742
+ }
743
+ },
744
+ "required": [
745
+ "left",
746
+ "right",
747
+ "top",
748
+ "bottom",
749
+ "independent"
750
+ ],
751
+ "additionalProperties": false
752
+ },
753
+ "position": {
754
+ "type": "object",
755
+ "properties": {
756
+ "top": {
757
+ "type": "number"
758
+ },
759
+ "right": {
760
+ "type": "number"
761
+ }
762
+ },
763
+ "required": [
764
+ "top",
765
+ "right"
766
+ ],
767
+ "additionalProperties": false
768
+ },
769
+ "visibilityDelay": {
770
+ "type": "number"
771
+ },
772
+ "closeOnEscape": {
773
+ "type": "boolean"
774
+ }
686
775
  },
687
- "independent": {
688
- "type": "boolean"
689
- }
776
+ "required": [
777
+ "color",
778
+ "size",
779
+ "padding"
780
+ ],
781
+ "additionalProperties": false
690
782
  },
691
- "required": [
692
- "left",
693
- "right",
694
- "top",
695
- "bottom",
696
- "independent"
697
- ],
698
- "additionalProperties": false
783
+ "teaser": {
784
+ "type": "object",
785
+ "properties": {
786
+ "text": {
787
+ "type": "string"
788
+ },
789
+ "backgroundColor": {
790
+ "type": "string"
791
+ },
792
+ "textColor": {
793
+ "type": "string"
794
+ }
795
+ },
796
+ "required": [
797
+ "text",
798
+ "backgroundColor",
799
+ "textColor"
800
+ ],
801
+ "additionalProperties": false
802
+ }
699
803
  },
700
- "position": {
804
+ "required": [
805
+ "border",
806
+ "position",
807
+ "closeIcon"
808
+ ],
809
+ "additionalProperties": false
810
+ }
811
+ },
812
+ "required": [
813
+ "language",
814
+ "steps",
815
+ "theme",
816
+ "version",
817
+ "usedFonts",
818
+ "type",
819
+ "display"
820
+ ],
821
+ "additionalProperties": false
822
+ },
823
+ {
824
+ "type": "object",
825
+ "properties": {
826
+ "language": {
827
+ "type": "string",
828
+ "enum": [
829
+ "cs",
830
+ "en"
831
+ ]
832
+ },
833
+ "steps": {
834
+ "type": "array",
835
+ "items": {
701
836
  "type": "object",
702
837
  "properties": {
703
- "top": {
704
- "type": "number"
838
+ "type": {
839
+ "type": "string",
840
+ "const": "step"
841
+ },
842
+ "name": {
843
+ "type": "string"
844
+ },
845
+ "elements": {
846
+ "type": "array",
847
+ "items": {
848
+ "$ref": "#/$defs/__schema0"
849
+ }
705
850
  },
706
- "right": {
707
- "type": "number"
851
+ "id": {
852
+ "type": "string"
853
+ },
854
+ "displayProperties": {
855
+ "type": "object",
856
+ "properties": {
857
+ "padding": {
858
+ "type": "object",
859
+ "properties": {
860
+ "left": {
861
+ "type": "number"
862
+ },
863
+ "right": {
864
+ "type": "number"
865
+ },
866
+ "top": {
867
+ "type": "number"
868
+ },
869
+ "bottom": {
870
+ "type": "number"
871
+ },
872
+ "independent": {
873
+ "type": "boolean"
874
+ }
875
+ },
876
+ "required": [
877
+ "left",
878
+ "right",
879
+ "top",
880
+ "bottom",
881
+ "independent"
882
+ ],
883
+ "additionalProperties": false
884
+ },
885
+ "backgroundColor": {
886
+ "type": "string",
887
+ "pattern": "^#[\\s\\S]{0,}$"
888
+ },
889
+ "minHeight": {
890
+ "type": "number"
891
+ }
892
+ },
893
+ "required": [
894
+ "padding"
895
+ ],
896
+ "additionalProperties": false
708
897
  }
709
898
  },
710
899
  "required": [
711
- "top",
712
- "right"
900
+ "type",
901
+ "name",
902
+ "elements",
903
+ "id",
904
+ "displayProperties"
713
905
  ],
714
906
  "additionalProperties": false
715
- },
716
- "visibilityDelay": {
717
- "type": "number"
718
- },
719
- "closeOnEscape": {
720
- "type": "boolean"
721
907
  }
722
908
  },
723
- "required": [
724
- "color",
725
- "size",
726
- "padding"
727
- ],
728
- "additionalProperties": false
729
- },
730
- "teaser": {
731
- "type": "object",
732
- "properties": {
733
- "text": {
734
- "type": "string"
735
- },
736
- "backgroundColor": {
737
- "type": "string"
909
+ "theme": {
910
+ "type": "object",
911
+ "properties": {
912
+ "corners": {
913
+ "type": "string",
914
+ "enum": [
915
+ "none",
916
+ "sm",
917
+ "md",
918
+ "lg"
919
+ ]
920
+ },
921
+ "mainColor": {
922
+ "type": "string",
923
+ "pattern": "^#[\\s\\S]{0,}$"
924
+ },
925
+ "secondaryColor": {
926
+ "type": "array",
927
+ "prefixItems": [
928
+ {
929
+ "type": "string",
930
+ "pattern": "^#[\\s\\S]{0,}$"
931
+ },
932
+ {
933
+ "type": "string",
934
+ "pattern": "^#[\\s\\S]{0,}$"
935
+ },
936
+ {
937
+ "type": "string",
938
+ "pattern": "^#[\\s\\S]{0,}$"
939
+ },
940
+ {
941
+ "type": "string",
942
+ "pattern": "^#[\\s\\S]{0,}$"
943
+ }
944
+ ]
945
+ },
946
+ "backgroundColor": {
947
+ "type": "string",
948
+ "pattern": "^#[\\s\\S]{0,}$"
949
+ },
950
+ "fontFamily": {
951
+ "type": "string"
952
+ }
738
953
  },
739
- "textColor": {
740
- "type": "string"
741
- }
742
- },
743
- "required": [
744
- "text",
745
- "backgroundColor",
746
- "textColor"
747
- ],
748
- "additionalProperties": false
749
- }
750
- },
751
- "required": [
752
- "border",
753
- "position",
754
- "closeIcon"
755
- ],
756
- "additionalProperties": false
757
- }
758
- },
759
- "required": [
760
- "language",
761
- "steps",
762
- "theme",
763
- "version",
764
- "usedFonts",
765
- "type",
766
- "display"
767
- ],
768
- "additionalProperties": false
769
- },
770
- {
771
- "type": "object",
772
- "properties": {
773
- "language": {
774
- "type": "string",
775
- "enum": [
776
- "cs",
777
- "en"
778
- ]
779
- },
780
- "steps": {
781
- "type": "array",
782
- "items": {
783
- "type": "object",
784
- "properties": {
785
- "type": {
786
- "type": "string",
787
- "const": "step"
954
+ "required": [
955
+ "corners",
956
+ "mainColor",
957
+ "secondaryColor",
958
+ "backgroundColor",
959
+ "fontFamily"
960
+ ],
961
+ "additionalProperties": false
788
962
  },
789
- "name": {
790
- "type": "string"
963
+ "version": {
964
+ "type": "number",
965
+ "const": 1
791
966
  },
792
- "elements": {
967
+ "usedFonts": {
793
968
  "type": "array",
794
969
  "items": {
795
- "$ref": "#/$defs/__schema0"
970
+ "type": "string"
796
971
  }
797
972
  },
798
- "id": {
799
- "type": "string"
973
+ "type": {
974
+ "type": "string",
975
+ "const": "slider"
800
976
  },
801
- "displayProperties": {
977
+ "display": {
802
978
  "type": "object",
803
979
  "properties": {
804
- "padding": {
980
+ "border": {
805
981
  "type": "object",
806
982
  "properties": {
807
- "left": {
983
+ "width": {
808
984
  "type": "number"
809
985
  },
810
- "right": {
986
+ "color": {
987
+ "type": "string",
988
+ "pattern": "^#[\\s\\S]{0,}$"
989
+ },
990
+ "style": {
991
+ "type": "string",
992
+ "enum": [
993
+ "none",
994
+ "solid",
995
+ "dashed",
996
+ "dotted"
997
+ ]
998
+ },
999
+ "sides": {
1000
+ "type": "string",
1001
+ "enum": [
1002
+ "all",
1003
+ "top",
1004
+ "right",
1005
+ "bottom",
1006
+ "left"
1007
+ ]
1008
+ },
1009
+ "useTheme": {
1010
+ "type": "boolean"
1011
+ }
1012
+ },
1013
+ "required": [
1014
+ "width",
1015
+ "color",
1016
+ "style"
1017
+ ],
1018
+ "additionalProperties": false
1019
+ },
1020
+ "shadow": {
1021
+ "type": "object",
1022
+ "properties": {
1023
+ "offsetX": {
811
1024
  "type": "number"
812
1025
  },
813
- "top": {
1026
+ "offsetY": {
814
1027
  "type": "number"
815
1028
  },
816
- "bottom": {
1029
+ "blur": {
817
1030
  "type": "number"
818
1031
  },
819
- "independent": {
820
- "type": "boolean"
1032
+ "spread": {
1033
+ "type": "number"
1034
+ },
1035
+ "color": {
1036
+ "type": "string"
1037
+ },
1038
+ "raw": {
1039
+ "type": "string"
821
1040
  }
822
1041
  },
823
1042
  "required": [
824
- "left",
825
- "right",
826
- "top",
827
- "bottom",
828
- "independent"
1043
+ "offsetX",
1044
+ "offsetY",
1045
+ "blur",
1046
+ "spread",
1047
+ "color"
829
1048
  ],
830
1049
  "additionalProperties": false
831
1050
  },
832
- "backgroundColor": {
1051
+ "position": {
833
1052
  "type": "string",
834
- "pattern": "^#[\\s\\S]{0,}$"
1053
+ "enum": [
1054
+ "bottom-left",
1055
+ "bottom-center",
1056
+ "bottom-right"
1057
+ ]
835
1058
  },
836
- "minHeight": {
837
- "type": "number"
1059
+ "closeIcon": {
1060
+ "type": "object",
1061
+ "properties": {
1062
+ "color": {
1063
+ "type": "string"
1064
+ },
1065
+ "size": {
1066
+ "type": "number"
1067
+ },
1068
+ "padding": {
1069
+ "type": "object",
1070
+ "properties": {
1071
+ "left": {
1072
+ "type": "number"
1073
+ },
1074
+ "right": {
1075
+ "type": "number"
1076
+ },
1077
+ "top": {
1078
+ "type": "number"
1079
+ },
1080
+ "bottom": {
1081
+ "type": "number"
1082
+ },
1083
+ "independent": {
1084
+ "type": "boolean"
1085
+ }
1086
+ },
1087
+ "required": [
1088
+ "left",
1089
+ "right",
1090
+ "top",
1091
+ "bottom",
1092
+ "independent"
1093
+ ],
1094
+ "additionalProperties": false
1095
+ },
1096
+ "position": {
1097
+ "type": "object",
1098
+ "properties": {
1099
+ "top": {
1100
+ "type": "number"
1101
+ },
1102
+ "right": {
1103
+ "type": "number"
1104
+ }
1105
+ },
1106
+ "required": [
1107
+ "top",
1108
+ "right"
1109
+ ],
1110
+ "additionalProperties": false
1111
+ },
1112
+ "visibilityDelay": {
1113
+ "type": "number"
1114
+ },
1115
+ "closeOnEscape": {
1116
+ "type": "boolean"
1117
+ }
1118
+ },
1119
+ "required": [
1120
+ "color",
1121
+ "size",
1122
+ "padding"
1123
+ ],
1124
+ "additionalProperties": false
1125
+ },
1126
+ "teaser": {
1127
+ "type": "object",
1128
+ "properties": {
1129
+ "text": {
1130
+ "type": "string"
1131
+ },
1132
+ "backgroundColor": {
1133
+ "type": "string"
1134
+ },
1135
+ "textColor": {
1136
+ "type": "string"
1137
+ }
1138
+ },
1139
+ "required": [
1140
+ "text",
1141
+ "backgroundColor",
1142
+ "textColor"
1143
+ ],
1144
+ "additionalProperties": false
838
1145
  }
839
1146
  },
840
1147
  "required": [
841
- "padding"
1148
+ "border",
1149
+ "position",
1150
+ "closeIcon"
842
1151
  ],
843
1152
  "additionalProperties": false
844
1153
  }
845
1154
  },
846
1155
  "required": [
1156
+ "language",
1157
+ "steps",
1158
+ "theme",
1159
+ "version",
1160
+ "usedFonts",
847
1161
  "type",
848
- "name",
849
- "elements",
850
- "id",
851
- "displayProperties"
1162
+ "display"
852
1163
  ],
853
1164
  "additionalProperties": false
854
- }
855
- },
856
- "theme": {
857
- "type": "object",
858
- "properties": {
859
- "corners": {
860
- "type": "string",
861
- "enum": [
862
- "none",
863
- "sm",
864
- "md",
865
- "lg"
866
- ]
867
- },
868
- "mainColor": {
869
- "type": "string",
870
- "pattern": "^#[\\s\\S]{0,}$"
871
- },
872
- "secondaryColor": {
873
- "type": "array",
874
- "prefixItems": [
875
- {
876
- "type": "string",
877
- "pattern": "^#[\\s\\S]{0,}$"
878
- },
879
- {
880
- "type": "string",
881
- "pattern": "^#[\\s\\S]{0,}$"
882
- },
883
- {
884
- "type": "string",
885
- "pattern": "^#[\\s\\S]{0,}$"
886
- },
887
- {
888
- "type": "string",
889
- "pattern": "^#[\\s\\S]{0,}$"
890
- }
891
- ]
892
- },
893
- "backgroundColor": {
894
- "type": "string",
895
- "pattern": "^#[\\s\\S]{0,}$"
896
- },
897
- "fontFamily": {
898
- "type": "string"
899
- }
900
1165
  },
901
- "required": [
902
- "corners",
903
- "mainColor",
904
- "secondaryColor",
905
- "backgroundColor",
906
- "fontFamily"
907
- ],
908
- "additionalProperties": false
909
- },
910
- "version": {
911
- "type": "number",
912
- "const": 1
913
- },
914
- "usedFonts": {
915
- "type": "array",
916
- "items": {
917
- "type": "string"
918
- }
919
- },
920
- "type": {
921
- "type": "string",
922
- "const": "slider"
923
- },
924
- "display": {
925
- "type": "object",
926
- "properties": {
927
- "border": {
928
- "type": "object",
929
- "properties": {
930
- "width": {
931
- "type": "number"
932
- },
933
- "color": {
934
- "type": "string",
935
- "pattern": "^#[\\s\\S]{0,}$"
936
- },
937
- "style": {
938
- "type": "string",
939
- "enum": [
940
- "none",
941
- "solid",
942
- "dashed",
943
- "dotted"
944
- ]
945
- },
946
- "sides": {
947
- "type": "string",
948
- "enum": [
949
- "all",
950
- "top",
951
- "right",
952
- "bottom",
953
- "left"
954
- ]
955
- },
956
- "useTheme": {
957
- "type": "boolean"
958
- }
959
- },
960
- "required": [
961
- "width",
962
- "color",
963
- "style"
964
- ],
965
- "additionalProperties": false
966
- },
967
- "shadow": {
968
- "type": "object",
969
- "properties": {
970
- "offsetX": {
971
- "type": "number"
972
- },
973
- "offsetY": {
974
- "type": "number"
975
- },
976
- "blur": {
977
- "type": "number"
978
- },
979
- "spread": {
980
- "type": "number"
981
- },
982
- "color": {
983
- "type": "string"
984
- },
985
- "raw": {
986
- "type": "string"
987
- }
1166
+ {
1167
+ "type": "object",
1168
+ "properties": {
1169
+ "language": {
1170
+ "type": "string",
1171
+ "enum": [
1172
+ "cs",
1173
+ "en"
1174
+ ]
988
1175
  },
989
- "required": [
990
- "offsetX",
991
- "offsetY",
992
- "blur",
993
- "spread",
994
- "color"
995
- ],
996
- "additionalProperties": false
997
- },
998
- "position": {
999
- "type": "string",
1000
- "enum": [
1001
- "bottom-left",
1002
- "bottom-center",
1003
- "bottom-right"
1004
- ]
1005
- },
1006
- "closeIcon": {
1007
- "type": "object",
1008
- "properties": {
1009
- "color": {
1010
- "type": "string"
1011
- },
1012
- "size": {
1013
- "type": "number"
1014
- },
1015
- "padding": {
1176
+ "steps": {
1177
+ "type": "array",
1178
+ "items": {
1016
1179
  "type": "object",
1017
1180
  "properties": {
1018
- "left": {
1019
- "type": "number"
1181
+ "type": {
1182
+ "type": "string",
1183
+ "const": "step"
1020
1184
  },
1021
- "right": {
1022
- "type": "number"
1185
+ "name": {
1186
+ "type": "string"
1023
1187
  },
1024
- "top": {
1025
- "type": "number"
1026
- },
1027
- "bottom": {
1028
- "type": "number"
1188
+ "elements": {
1189
+ "type": "array",
1190
+ "items": {
1191
+ "$ref": "#/$defs/__schema0"
1192
+ }
1029
1193
  },
1030
- "independent": {
1031
- "type": "boolean"
1032
- }
1033
- },
1034
- "required": [
1035
- "left",
1036
- "right",
1037
- "top",
1038
- "bottom",
1039
- "independent"
1040
- ],
1041
- "additionalProperties": false
1042
- },
1043
- "position": {
1044
- "type": "object",
1045
- "properties": {
1046
- "top": {
1047
- "type": "number"
1194
+ "id": {
1195
+ "type": "string"
1048
1196
  },
1049
- "right": {
1050
- "type": "number"
1197
+ "displayProperties": {
1198
+ "type": "object",
1199
+ "properties": {
1200
+ "padding": {
1201
+ "type": "object",
1202
+ "properties": {
1203
+ "left": {
1204
+ "type": "number"
1205
+ },
1206
+ "right": {
1207
+ "type": "number"
1208
+ },
1209
+ "top": {
1210
+ "type": "number"
1211
+ },
1212
+ "bottom": {
1213
+ "type": "number"
1214
+ },
1215
+ "independent": {
1216
+ "type": "boolean"
1217
+ }
1218
+ },
1219
+ "required": [
1220
+ "left",
1221
+ "right",
1222
+ "top",
1223
+ "bottom",
1224
+ "independent"
1225
+ ],
1226
+ "additionalProperties": false
1227
+ },
1228
+ "backgroundColor": {
1229
+ "type": "string",
1230
+ "pattern": "^#[\\s\\S]{0,}$"
1231
+ },
1232
+ "minHeight": {
1233
+ "type": "number"
1234
+ }
1235
+ },
1236
+ "required": [
1237
+ "padding"
1238
+ ],
1239
+ "additionalProperties": false
1051
1240
  }
1052
1241
  },
1053
1242
  "required": [
1054
- "top",
1055
- "right"
1243
+ "type",
1244
+ "name",
1245
+ "elements",
1246
+ "id",
1247
+ "displayProperties"
1056
1248
  ],
1057
1249
  "additionalProperties": false
1058
- },
1059
- "visibilityDelay": {
1060
- "type": "number"
1061
- },
1062
- "closeOnEscape": {
1063
- "type": "boolean"
1064
1250
  }
1065
1251
  },
1066
- "required": [
1067
- "color",
1068
- "size",
1069
- "padding"
1070
- ],
1071
- "additionalProperties": false
1072
- },
1073
- "teaser": {
1074
- "type": "object",
1075
- "properties": {
1076
- "text": {
1077
- "type": "string"
1078
- },
1079
- "backgroundColor": {
1080
- "type": "string"
1252
+ "theme": {
1253
+ "type": "object",
1254
+ "properties": {
1255
+ "corners": {
1256
+ "type": "string",
1257
+ "enum": [
1258
+ "none",
1259
+ "sm",
1260
+ "md",
1261
+ "lg"
1262
+ ]
1263
+ },
1264
+ "mainColor": {
1265
+ "type": "string",
1266
+ "pattern": "^#[\\s\\S]{0,}$"
1267
+ },
1268
+ "secondaryColor": {
1269
+ "type": "array",
1270
+ "prefixItems": [
1271
+ {
1272
+ "type": "string",
1273
+ "pattern": "^#[\\s\\S]{0,}$"
1274
+ },
1275
+ {
1276
+ "type": "string",
1277
+ "pattern": "^#[\\s\\S]{0,}$"
1278
+ },
1279
+ {
1280
+ "type": "string",
1281
+ "pattern": "^#[\\s\\S]{0,}$"
1282
+ },
1283
+ {
1284
+ "type": "string",
1285
+ "pattern": "^#[\\s\\S]{0,}$"
1286
+ }
1287
+ ]
1288
+ },
1289
+ "backgroundColor": {
1290
+ "type": "string",
1291
+ "pattern": "^#[\\s\\S]{0,}$"
1292
+ },
1293
+ "fontFamily": {
1294
+ "type": "string"
1295
+ }
1081
1296
  },
1082
- "textColor": {
1083
- "type": "string"
1084
- }
1085
- },
1086
- "required": [
1087
- "text",
1088
- "backgroundColor",
1089
- "textColor"
1090
- ],
1091
- "additionalProperties": false
1092
- }
1093
- },
1094
- "required": [
1095
- "border",
1096
- "position",
1097
- "closeIcon"
1098
- ],
1099
- "additionalProperties": false
1100
- }
1101
- },
1102
- "required": [
1103
- "language",
1104
- "steps",
1105
- "theme",
1106
- "version",
1107
- "usedFonts",
1108
- "type",
1109
- "display"
1110
- ],
1111
- "additionalProperties": false
1112
- },
1113
- {
1114
- "type": "object",
1115
- "properties": {
1116
- "language": {
1117
- "type": "string",
1118
- "enum": [
1119
- "cs",
1120
- "en"
1121
- ]
1122
- },
1123
- "steps": {
1124
- "type": "array",
1125
- "items": {
1126
- "type": "object",
1127
- "properties": {
1128
- "type": {
1129
- "type": "string",
1130
- "const": "step"
1297
+ "required": [
1298
+ "corners",
1299
+ "mainColor",
1300
+ "secondaryColor",
1301
+ "backgroundColor",
1302
+ "fontFamily"
1303
+ ],
1304
+ "additionalProperties": false
1131
1305
  },
1132
- "name": {
1133
- "type": "string"
1306
+ "version": {
1307
+ "type": "number",
1308
+ "const": 1
1134
1309
  },
1135
- "elements": {
1310
+ "usedFonts": {
1136
1311
  "type": "array",
1137
1312
  "items": {
1138
- "$ref": "#/$defs/__schema0"
1313
+ "type": "string"
1139
1314
  }
1140
1315
  },
1141
- "id": {
1142
- "type": "string"
1316
+ "type": {
1317
+ "type": "string",
1318
+ "const": "mobile_popup"
1143
1319
  },
1144
- "displayProperties": {
1320
+ "display": {
1145
1321
  "type": "object",
1146
1322
  "properties": {
1147
- "padding": {
1323
+ "border": {
1148
1324
  "type": "object",
1149
1325
  "properties": {
1150
- "left": {
1326
+ "width": {
1151
1327
  "type": "number"
1152
1328
  },
1153
- "right": {
1329
+ "color": {
1330
+ "type": "string",
1331
+ "pattern": "^#[\\s\\S]{0,}$"
1332
+ },
1333
+ "style": {
1334
+ "type": "string",
1335
+ "enum": [
1336
+ "none",
1337
+ "solid",
1338
+ "dashed",
1339
+ "dotted"
1340
+ ]
1341
+ },
1342
+ "sides": {
1343
+ "type": "string",
1344
+ "enum": [
1345
+ "all",
1346
+ "top",
1347
+ "right",
1348
+ "bottom",
1349
+ "left"
1350
+ ]
1351
+ },
1352
+ "useTheme": {
1353
+ "type": "boolean"
1354
+ }
1355
+ },
1356
+ "required": [
1357
+ "width",
1358
+ "color",
1359
+ "style"
1360
+ ],
1361
+ "additionalProperties": false
1362
+ },
1363
+ "shadow": {
1364
+ "type": "object",
1365
+ "properties": {
1366
+ "offsetX": {
1154
1367
  "type": "number"
1155
1368
  },
1156
- "top": {
1369
+ "offsetY": {
1157
1370
  "type": "number"
1158
1371
  },
1159
- "bottom": {
1372
+ "blur": {
1160
1373
  "type": "number"
1161
1374
  },
1162
- "independent": {
1163
- "type": "boolean"
1375
+ "spread": {
1376
+ "type": "number"
1377
+ },
1378
+ "color": {
1379
+ "type": "string"
1380
+ },
1381
+ "raw": {
1382
+ "type": "string"
1164
1383
  }
1165
1384
  },
1166
1385
  "required": [
1167
- "left",
1168
- "right",
1169
- "top",
1170
- "bottom",
1171
- "independent"
1386
+ "offsetX",
1387
+ "offsetY",
1388
+ "blur",
1389
+ "spread",
1390
+ "color"
1172
1391
  ],
1173
1392
  "additionalProperties": false
1174
1393
  },
1175
- "backgroundColor": {
1176
- "type": "string",
1177
- "pattern": "^#[\\s\\S]{0,}$"
1394
+ "closeIcon": {
1395
+ "type": "object",
1396
+ "properties": {
1397
+ "color": {
1398
+ "type": "string"
1399
+ },
1400
+ "size": {
1401
+ "type": "number"
1402
+ },
1403
+ "padding": {
1404
+ "type": "object",
1405
+ "properties": {
1406
+ "left": {
1407
+ "type": "number"
1408
+ },
1409
+ "right": {
1410
+ "type": "number"
1411
+ },
1412
+ "top": {
1413
+ "type": "number"
1414
+ },
1415
+ "bottom": {
1416
+ "type": "number"
1417
+ },
1418
+ "independent": {
1419
+ "type": "boolean"
1420
+ }
1421
+ },
1422
+ "required": [
1423
+ "left",
1424
+ "right",
1425
+ "top",
1426
+ "bottom",
1427
+ "independent"
1428
+ ],
1429
+ "additionalProperties": false
1430
+ },
1431
+ "position": {
1432
+ "type": "object",
1433
+ "properties": {
1434
+ "top": {
1435
+ "type": "number"
1436
+ },
1437
+ "right": {
1438
+ "type": "number"
1439
+ }
1440
+ },
1441
+ "required": [
1442
+ "top",
1443
+ "right"
1444
+ ],
1445
+ "additionalProperties": false
1446
+ },
1447
+ "visibilityDelay": {
1448
+ "type": "number"
1449
+ },
1450
+ "closeOnEscape": {
1451
+ "type": "boolean"
1452
+ }
1453
+ },
1454
+ "required": [
1455
+ "color",
1456
+ "size",
1457
+ "padding"
1458
+ ],
1459
+ "additionalProperties": false
1178
1460
  },
1179
- "minHeight": {
1180
- "type": "number"
1461
+ "teaser": {
1462
+ "type": "object",
1463
+ "properties": {
1464
+ "text": {
1465
+ "type": "string"
1466
+ },
1467
+ "backgroundColor": {
1468
+ "type": "string"
1469
+ },
1470
+ "textColor": {
1471
+ "type": "string"
1472
+ }
1473
+ },
1474
+ "required": [
1475
+ "text",
1476
+ "backgroundColor",
1477
+ "textColor"
1478
+ ],
1479
+ "additionalProperties": false
1181
1480
  }
1182
1481
  },
1183
1482
  "required": [
1184
- "padding"
1483
+ "border",
1484
+ "closeIcon"
1185
1485
  ],
1186
1486
  "additionalProperties": false
1187
1487
  }
1188
1488
  },
1189
1489
  "required": [
1490
+ "language",
1491
+ "steps",
1492
+ "theme",
1493
+ "version",
1494
+ "usedFonts",
1190
1495
  "type",
1191
- "name",
1192
- "elements",
1193
- "id",
1194
- "displayProperties"
1496
+ "display"
1195
1497
  ],
1196
1498
  "additionalProperties": false
1197
1499
  }
1198
- },
1199
- "theme": {
1200
- "type": "object",
1201
- "properties": {
1202
- "corners": {
1203
- "type": "string",
1204
- "enum": [
1205
- "none",
1206
- "sm",
1207
- "md",
1208
- "lg"
1209
- ]
1210
- },
1211
- "mainColor": {
1212
- "type": "string",
1213
- "pattern": "^#[\\s\\S]{0,}$"
1214
- },
1215
- "secondaryColor": {
1216
- "type": "array",
1217
- "prefixItems": [
1218
- {
1219
- "type": "string",
1220
- "pattern": "^#[\\s\\S]{0,}$"
1221
- },
1222
- {
1223
- "type": "string",
1224
- "pattern": "^#[\\s\\S]{0,}$"
1225
- },
1226
- {
1227
- "type": "string",
1228
- "pattern": "^#[\\s\\S]{0,}$"
1229
- },
1230
- {
1231
- "type": "string",
1232
- "pattern": "^#[\\s\\S]{0,}$"
1233
- }
1234
- ]
1235
- },
1236
- "backgroundColor": {
1237
- "type": "string",
1238
- "pattern": "^#[\\s\\S]{0,}$"
1239
- },
1240
- "fontFamily": {
1241
- "type": "string"
1242
- }
1243
- },
1244
- "required": [
1245
- "corners",
1246
- "mainColor",
1247
- "secondaryColor",
1248
- "backgroundColor",
1249
- "fontFamily"
1250
- ],
1251
- "additionalProperties": false
1252
- },
1253
- "version": {
1254
- "type": "number",
1255
- "const": 1
1256
- },
1257
- "usedFonts": {
1258
- "type": "array",
1259
- "items": {
1500
+ ]
1501
+ },
1502
+ {
1503
+ "type": "object",
1504
+ "properties": {
1505
+ "ref": {
1260
1506
  "type": "string"
1261
1507
  }
1262
1508
  },
1263
- "type": {
1264
- "type": "string",
1265
- "const": "mobile_popup"
1266
- },
1267
- "display": {
1268
- "type": "object",
1269
- "properties": {
1270
- "border": {
1271
- "type": "object",
1272
- "properties": {
1273
- "width": {
1274
- "type": "number"
1275
- },
1276
- "color": {
1277
- "type": "string",
1278
- "pattern": "^#[\\s\\S]{0,}$"
1279
- },
1280
- "style": {
1281
- "type": "string",
1282
- "enum": [
1283
- "none",
1284
- "solid",
1285
- "dashed",
1286
- "dotted"
1287
- ]
1288
- },
1289
- "sides": {
1290
- "type": "string",
1291
- "enum": [
1292
- "all",
1293
- "top",
1294
- "right",
1295
- "bottom",
1296
- "left"
1297
- ]
1298
- },
1299
- "useTheme": {
1300
- "type": "boolean"
1301
- }
1302
- },
1303
- "required": [
1304
- "width",
1305
- "color",
1306
- "style"
1307
- ],
1308
- "additionalProperties": false
1309
- },
1310
- "shadow": {
1311
- "type": "object",
1312
- "properties": {
1313
- "offsetX": {
1314
- "type": "number"
1315
- },
1316
- "offsetY": {
1317
- "type": "number"
1318
- },
1319
- "blur": {
1320
- "type": "number"
1321
- },
1322
- "spread": {
1323
- "type": "number"
1324
- },
1325
- "color": {
1326
- "type": "string"
1327
- },
1328
- "raw": {
1329
- "type": "string"
1330
- }
1331
- },
1332
- "required": [
1333
- "offsetX",
1334
- "offsetY",
1335
- "blur",
1336
- "spread",
1337
- "color"
1338
- ],
1339
- "additionalProperties": false
1340
- },
1341
- "closeIcon": {
1342
- "type": "object",
1343
- "properties": {
1344
- "color": {
1345
- "type": "string"
1346
- },
1347
- "size": {
1348
- "type": "number"
1349
- },
1350
- "padding": {
1351
- "type": "object",
1352
- "properties": {
1353
- "left": {
1354
- "type": "number"
1355
- },
1356
- "right": {
1357
- "type": "number"
1358
- },
1359
- "top": {
1360
- "type": "number"
1361
- },
1362
- "bottom": {
1363
- "type": "number"
1364
- },
1365
- "independent": {
1366
- "type": "boolean"
1367
- }
1368
- },
1369
- "required": [
1370
- "left",
1371
- "right",
1372
- "top",
1373
- "bottom",
1374
- "independent"
1375
- ],
1376
- "additionalProperties": false
1377
- },
1378
- "position": {
1379
- "type": "object",
1380
- "properties": {
1381
- "top": {
1382
- "type": "number"
1383
- },
1384
- "right": {
1385
- "type": "number"
1386
- }
1387
- },
1388
- "required": [
1389
- "top",
1390
- "right"
1391
- ],
1392
- "additionalProperties": false
1393
- },
1394
- "visibilityDelay": {
1395
- "type": "number"
1396
- },
1397
- "closeOnEscape": {
1398
- "type": "boolean"
1399
- }
1400
- },
1401
- "required": [
1402
- "color",
1403
- "size",
1404
- "padding"
1405
- ],
1406
- "additionalProperties": false
1407
- },
1408
- "teaser": {
1409
- "type": "object",
1410
- "properties": {
1411
- "text": {
1412
- "type": "string"
1413
- },
1414
- "backgroundColor": {
1415
- "type": "string"
1416
- },
1417
- "textColor": {
1418
- "type": "string"
1419
- }
1420
- },
1421
- "required": [
1422
- "text",
1423
- "backgroundColor",
1424
- "textColor"
1425
- ],
1426
- "additionalProperties": false
1427
- }
1428
- },
1429
- "required": [
1430
- "border",
1431
- "closeIcon"
1432
- ],
1433
- "additionalProperties": false
1434
- }
1435
- },
1436
- "required": [
1437
- "language",
1438
- "steps",
1439
- "theme",
1440
- "version",
1441
- "usedFonts",
1442
- "type",
1443
- "display"
1444
- ],
1445
- "additionalProperties": false
1446
- }
1447
- ]
1448
- },
1449
- {
1450
- "type": "object",
1451
- "properties": {
1452
- "ref": {
1453
- "type": "string"
1454
- }
1509
+ "required": [
1510
+ "ref"
1511
+ ],
1512
+ "additionalProperties": false
1513
+ }
1514
+ ]
1455
1515
  },
1456
- "required": [
1457
- "ref"
1458
- ],
1459
- "additionalProperties": false
1460
- }
1461
- ]
1462
- },
1463
- "trafficWeight": {
1464
- "type": "number"
1516
+ "trafficWeight": {
1517
+ "type": "number"
1518
+ }
1519
+ },
1520
+ "required": [
1521
+ "id",
1522
+ "name",
1523
+ "definition"
1524
+ ],
1525
+ "additionalProperties": false
1526
+ }
1465
1527
  }
1466
1528
  },
1467
1529
  "required": [
1468
1530
  "id",
1469
- "name",
1470
- "definition",
1471
- "trafficWeight"
1531
+ "trigger",
1532
+ "variants"
1472
1533
  ],
1473
1534
  "additionalProperties": false
1474
1535
  }
@@ -1478,9 +1539,7 @@
1478
1539
  "id",
1479
1540
  "name",
1480
1541
  "version",
1481
- "targeting",
1482
- "trigger",
1483
- "variants"
1542
+ "items"
1484
1543
  ],
1485
1544
  "additionalProperties": false,
1486
1545
  "$defs": {
@@ -1627,7 +1686,7 @@
1627
1686
  "properties": {
1628
1687
  "type": {
1629
1688
  "type": "string",
1630
- "const": "send"
1689
+ "const": "submit"
1631
1690
  }
1632
1691
  },
1633
1692
  "required": [
@@ -2524,6 +2583,9 @@
2524
2583
  "additionalProperties": false
2525
2584
  }
2526
2585
  },
2586
+ "customKey": {
2587
+ "type": "string"
2588
+ },
2527
2589
  "required": {
2528
2590
  "type": "boolean"
2529
2591
  }
@@ -2744,6 +2806,9 @@
2744
2806
  "additionalProperties": false
2745
2807
  }
2746
2808
  },
2809
+ "customKey": {
2810
+ "type": "string"
2811
+ },
2747
2812
  "required": {
2748
2813
  "type": "boolean"
2749
2814
  }
@@ -2964,6 +3029,9 @@
2964
3029
  "additionalProperties": false
2965
3030
  }
2966
3031
  },
3032
+ "customKey": {
3033
+ "type": "string"
3034
+ },
2967
3035
  "required": {
2968
3036
  "type": "boolean"
2969
3037
  },