@versoly/plugins 0.0.1

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.
@@ -0,0 +1,637 @@
1
+ declare const plugins: {
2
+ headroom: {
3
+ name: string;
4
+ cdnUrls: {
5
+ url: string;
6
+ inline: boolean;
7
+ defer: true;
8
+ }[];
9
+ js: string;
10
+ checks: {
11
+ plugin: string;
12
+ }[];
13
+ components: never[];
14
+ };
15
+ marquee: {
16
+ name: string;
17
+ options: {
18
+ name: string;
19
+ previewInEditor: true;
20
+ isShown: {
21
+ props: {
22
+ 'data-toggle': string;
23
+ };
24
+ };
25
+ fields: ({
26
+ name: string;
27
+ type: "BooleanPropOption";
28
+ propsName: string;
29
+ defaultValue: true;
30
+ enabledValue: true;
31
+ inHeaderAction: true;
32
+ headerGroup: string;
33
+ min?: undefined;
34
+ max?: undefined;
35
+ stepSize?: undefined;
36
+ options?: undefined;
37
+ } | {
38
+ name: string;
39
+ type: "SliderPropOption";
40
+ propsName: string;
41
+ min: number;
42
+ max: number;
43
+ stepSize: number;
44
+ defaultValue: number;
45
+ enabledValue?: undefined;
46
+ inHeaderAction?: undefined;
47
+ headerGroup?: undefined;
48
+ options?: undefined;
49
+ } | {
50
+ name: string;
51
+ type: "IconButtonOption";
52
+ propsName: string;
53
+ options: string[];
54
+ defaultValue: string;
55
+ enabledValue?: undefined;
56
+ inHeaderAction?: undefined;
57
+ headerGroup?: undefined;
58
+ min?: undefined;
59
+ max?: undefined;
60
+ stepSize?: undefined;
61
+ } | {
62
+ name: string;
63
+ type: "BooleanPropOption";
64
+ propsName: string;
65
+ defaultValue: true;
66
+ enabledValue?: undefined;
67
+ inHeaderAction?: undefined;
68
+ headerGroup?: undefined;
69
+ min?: undefined;
70
+ max?: undefined;
71
+ stepSize?: undefined;
72
+ options?: undefined;
73
+ } | {
74
+ name: string;
75
+ type: "SliderPropOption";
76
+ propsName: string;
77
+ min: number;
78
+ max: number;
79
+ stepSize: number;
80
+ defaultValue: number;
81
+ enabledValue: number;
82
+ inHeaderAction: true;
83
+ headerGroup: string;
84
+ options?: undefined;
85
+ })[];
86
+ };
87
+ checks: {
88
+ plugin: string;
89
+ }[];
90
+ src: string;
91
+ cdnUrls: {
92
+ url: string;
93
+ defer: true;
94
+ }[];
95
+ js: string;
96
+ displayNames: {
97
+ displayName: string;
98
+ property: string;
99
+ value: string;
100
+ }[];
101
+ };
102
+ swiper: {
103
+ name: string;
104
+ cdnUrls: ({
105
+ url: string;
106
+ inline: boolean;
107
+ defer: true;
108
+ } | {
109
+ url: string;
110
+ inline?: undefined;
111
+ defer?: undefined;
112
+ })[];
113
+ js: string;
114
+ checks: {
115
+ plugin: string;
116
+ }[];
117
+ };
118
+ prism: {
119
+ name: string;
120
+ cdnUrls: {
121
+ url: string;
122
+ }[];
123
+ js: string;
124
+ checks: {
125
+ html: string;
126
+ }[];
127
+ };
128
+ tailtip: {
129
+ name: string;
130
+ src: string;
131
+ cdnUrls: {
132
+ url: string;
133
+ defer: true;
134
+ }[];
135
+ js: string;
136
+ checks: {
137
+ plugin: string;
138
+ }[];
139
+ components: {
140
+ name: string;
141
+ category: string;
142
+ html: string;
143
+ }[];
144
+ options: {
145
+ name: string;
146
+ isShown: {
147
+ props: {
148
+ 'data-toggle': string;
149
+ };
150
+ };
151
+ previewInEditor: true;
152
+ fields: ({
153
+ name: "tailtip";
154
+ type: "TailtipOption";
155
+ propsName?: undefined;
156
+ inline?: undefined;
157
+ noneDisplayValue?: undefined;
158
+ options?: undefined;
159
+ } | {
160
+ name: string;
161
+ propsName: string;
162
+ type: "DropdownPropOption";
163
+ inline: true;
164
+ noneDisplayValue: string;
165
+ options: (string | false)[];
166
+ })[];
167
+ };
168
+ };
169
+ taos: {
170
+ name: string;
171
+ css: string;
172
+ js: string;
173
+ checks: ({
174
+ plugin: string;
175
+ html?: undefined;
176
+ } | {
177
+ html: string;
178
+ plugin?: undefined;
179
+ })[];
180
+ safelist: string[];
181
+ };
182
+ tilt: {
183
+ name: string;
184
+ options: {
185
+ name: string;
186
+ previewInEditor: true;
187
+ isShown: {
188
+ props: {
189
+ 'data-toggle': string;
190
+ };
191
+ };
192
+ fields: ({
193
+ name: string;
194
+ type: "SliderPropOption";
195
+ propsName: string;
196
+ min: number;
197
+ max: number;
198
+ stepSize: number;
199
+ defaultValue: number;
200
+ enabledValue?: undefined;
201
+ inHeaderAction?: undefined;
202
+ headerGroup?: undefined;
203
+ label?: undefined;
204
+ options?: undefined;
205
+ } | {
206
+ name: string;
207
+ type: "BooleanPropOption";
208
+ propsName: string;
209
+ defaultValue: false;
210
+ enabledValue: true;
211
+ inHeaderAction: true;
212
+ headerGroup: string;
213
+ min?: undefined;
214
+ max?: undefined;
215
+ stepSize?: undefined;
216
+ label?: undefined;
217
+ options?: undefined;
218
+ } | {
219
+ name: string;
220
+ type: "BooleanPropOption";
221
+ propsName: string;
222
+ defaultValue: true;
223
+ enabledValue: false;
224
+ inHeaderAction: true;
225
+ headerGroup: string;
226
+ min?: undefined;
227
+ max?: undefined;
228
+ stepSize?: undefined;
229
+ label?: undefined;
230
+ options?: undefined;
231
+ } | {
232
+ label: string;
233
+ name: string;
234
+ propsName: string;
235
+ type: "TextOption";
236
+ defaultValue: string;
237
+ enabledValue: string;
238
+ inHeaderAction: boolean;
239
+ headerGroup: string;
240
+ min?: undefined;
241
+ max?: undefined;
242
+ stepSize?: undefined;
243
+ options?: undefined;
244
+ } | {
245
+ name: string;
246
+ type: "SliderPropOption";
247
+ propsName: string;
248
+ min: number;
249
+ max: number;
250
+ stepSize: number;
251
+ defaultValue: number;
252
+ enabledValue: number;
253
+ inHeaderAction: true;
254
+ headerGroup: string;
255
+ label?: undefined;
256
+ options?: undefined;
257
+ } | {
258
+ name: string;
259
+ type: "IconButtonOption";
260
+ propsName: string;
261
+ options: string[];
262
+ defaultValue: null;
263
+ enabledValue: string;
264
+ inHeaderAction: true;
265
+ headerGroup: string;
266
+ min?: undefined;
267
+ max?: undefined;
268
+ stepSize?: undefined;
269
+ label?: undefined;
270
+ } | {
271
+ name: string;
272
+ type: "BooleanPropOption";
273
+ propsName: string;
274
+ defaultValue: true;
275
+ enabledValue: true;
276
+ inHeaderAction: true;
277
+ headerGroup: string;
278
+ min?: undefined;
279
+ max?: undefined;
280
+ stepSize?: undefined;
281
+ label?: undefined;
282
+ options?: undefined;
283
+ })[];
284
+ };
285
+ cdnUrls: {
286
+ url: string;
287
+ defer: true;
288
+ }[];
289
+ js: string;
290
+ checks: {
291
+ plugin: string;
292
+ }[];
293
+ components: {
294
+ name: string;
295
+ category: string;
296
+ html: string;
297
+ }[];
298
+ };
299
+ typed: {
300
+ name: string;
301
+ options: {
302
+ name: string;
303
+ previewInEditor: true;
304
+ isShown: {
305
+ props: {
306
+ 'data-toggle': string;
307
+ };
308
+ };
309
+ fields: ({
310
+ type: "TextOption";
311
+ name: string;
312
+ tooltipProps: {
313
+ content: string;
314
+ };
315
+ placeholder: string;
316
+ propsName: string;
317
+ isArray: true;
318
+ defaultValue?: undefined;
319
+ enabledValue?: undefined;
320
+ inHeaderAction?: undefined;
321
+ headerGroup?: undefined;
322
+ min?: undefined;
323
+ max?: undefined;
324
+ stepSize?: undefined;
325
+ } | {
326
+ name: string;
327
+ type: "BooleanPropOption";
328
+ propsName: string;
329
+ defaultValue: true;
330
+ enabledValue: true;
331
+ inHeaderAction: true;
332
+ headerGroup: string;
333
+ tooltipProps?: undefined;
334
+ placeholder?: undefined;
335
+ isArray?: undefined;
336
+ min?: undefined;
337
+ max?: undefined;
338
+ stepSize?: undefined;
339
+ } | {
340
+ name: string;
341
+ type: "SliderPropOption";
342
+ propsName: string;
343
+ min: number;
344
+ max: number;
345
+ stepSize: number;
346
+ defaultValue: number;
347
+ enabledValue: number;
348
+ inHeaderAction: true;
349
+ headerGroup: string;
350
+ tooltipProps?: undefined;
351
+ placeholder?: undefined;
352
+ isArray?: undefined;
353
+ })[];
354
+ };
355
+ cdnUrls: {
356
+ url: string;
357
+ defer: true;
358
+ }[];
359
+ js: string;
360
+ checks: {
361
+ plugin: string;
362
+ }[];
363
+ components: never[];
364
+ displayNames: {
365
+ displayName: string;
366
+ property: string;
367
+ value: string;
368
+ }[];
369
+ };
370
+ modal: {
371
+ name: string;
372
+ js: string;
373
+ checks: {
374
+ plugin: string;
375
+ }[];
376
+ };
377
+ form: {
378
+ name: string;
379
+ checks: {
380
+ plugin: string;
381
+ }[];
382
+ js: string;
383
+ };
384
+ finisherHeader: {
385
+ name: string;
386
+ cdnUrls: {
387
+ url: string;
388
+ defer: true;
389
+ }[];
390
+ js: string;
391
+ checks: {
392
+ html: string;
393
+ }[];
394
+ components: {
395
+ name: string;
396
+ category: string;
397
+ html: string;
398
+ }[];
399
+ };
400
+ countup: {
401
+ name: string;
402
+ cdnUrls: {
403
+ url: string;
404
+ }[];
405
+ js: string;
406
+ checks: {
407
+ plugin: string;
408
+ }[];
409
+ options: {
410
+ name: string;
411
+ isShown: {
412
+ props: {
413
+ 'data-toggle': string;
414
+ };
415
+ };
416
+ fields: ({
417
+ name: string;
418
+ propsName: string;
419
+ type: "NumberOption";
420
+ placeholder?: undefined;
421
+ stepSize?: undefined;
422
+ options?: undefined;
423
+ defaultValue?: undefined;
424
+ } | {
425
+ name: string;
426
+ propsName: string;
427
+ type: "NumberOption";
428
+ placeholder: string;
429
+ stepSize: number;
430
+ options?: undefined;
431
+ defaultValue?: undefined;
432
+ } | {
433
+ name: string;
434
+ propsName: string;
435
+ options: boolean[];
436
+ type: "BooleanPropOption";
437
+ defaultValue: false;
438
+ placeholder?: undefined;
439
+ stepSize?: undefined;
440
+ })[];
441
+ };
442
+ components: {
443
+ name: string;
444
+ category: string;
445
+ html: string;
446
+ }[];
447
+ };
448
+ countdown: {
449
+ name: string;
450
+ js: string;
451
+ checks: {
452
+ plugin: string;
453
+ }[];
454
+ options: {
455
+ name: string;
456
+ isShown: {
457
+ props: {
458
+ 'data-toggle': string;
459
+ 'data-countdown': true;
460
+ };
461
+ };
462
+ fields: {
463
+ name: string;
464
+ propsName: string;
465
+ type: "DateTimePickerOption";
466
+ }[];
467
+ };
468
+ components: {
469
+ name: string;
470
+ category: string;
471
+ html: string;
472
+ }[];
473
+ };
474
+ eventAnalytics: {
475
+ name: string;
476
+ js: string;
477
+ checks: {
478
+ html: string;
479
+ }[];
480
+ };
481
+ versolyAnalytics: {
482
+ name: string;
483
+ js: string;
484
+ checks: {
485
+ html: string;
486
+ }[];
487
+ };
488
+ versolyUI: {
489
+ name: string;
490
+ cdnUrls: ({
491
+ url: string;
492
+ defer: true;
493
+ delay?: undefined;
494
+ } | {
495
+ url: string;
496
+ delay: true;
497
+ defer?: undefined;
498
+ })[];
499
+ };
500
+ calendly: {
501
+ name: string;
502
+ cdnUrls: {
503
+ url: string;
504
+ delay: true;
505
+ }[];
506
+ js: string;
507
+ checks: ({
508
+ plugin: string;
509
+ html?: undefined;
510
+ } | {
511
+ html: string;
512
+ plugin?: undefined;
513
+ })[];
514
+ options: {
515
+ name: string;
516
+ isShown: {
517
+ props: {
518
+ 'data-calendly-url': true;
519
+ };
520
+ };
521
+ fields: {
522
+ name: string;
523
+ propsName: string;
524
+ type: "TextOption";
525
+ }[];
526
+ };
527
+ };
528
+ };
529
+
530
+ type TooltipProps = {
531
+ content: string;
532
+ };
533
+ type TextFieldOption = {
534
+ type: 'TextOption';
535
+ name: string;
536
+ tooltipProps?: TooltipProps;
537
+ placeholder?: string;
538
+ propsName: string;
539
+ isArray?: boolean;
540
+ };
541
+ type NumberFieldOption = {
542
+ type: 'NumberOption';
543
+ name: string;
544
+ propsName: string;
545
+ placeholder?: string;
546
+ stepSize?: number;
547
+ };
548
+ type SliderPropFieldOption = {
549
+ type: 'SliderPropOption';
550
+ name: string;
551
+ propsName: string;
552
+ min: number;
553
+ max: number;
554
+ stepSize: number;
555
+ defaultValue: number;
556
+ enabledValue?: number;
557
+ inHeaderAction?: boolean;
558
+ headerGroup?: string;
559
+ };
560
+ type BooleanPropFieldOption = {
561
+ type: 'BooleanPropOption';
562
+ name: string;
563
+ propsName: string;
564
+ options?: (string | boolean)[];
565
+ defaultValue: boolean;
566
+ enabledValue?: boolean;
567
+ inHeaderAction?: boolean;
568
+ headerGroup?: string;
569
+ };
570
+ type DateTimePickerFieldOption = {
571
+ type: 'DateTimePickerOption';
572
+ name: string;
573
+ propsName: string;
574
+ };
575
+ type IconButtonOption = {
576
+ type: 'IconButtonOption';
577
+ name: string;
578
+ propsName: string;
579
+ options: string[];
580
+ defaultValue: string | null;
581
+ enabledValue?: string;
582
+ inHeaderAction?: boolean;
583
+ headerGroup?: string;
584
+ };
585
+ type DropdownPropOption = {
586
+ type: 'DropdownPropOption';
587
+ name: string;
588
+ propsName: string;
589
+ inline?: boolean;
590
+ noneDisplayValue?: string;
591
+ options: (string | boolean | null)[];
592
+ };
593
+ type TailtipOption = {
594
+ name: 'tailtip';
595
+ type: 'TailtipOption';
596
+ };
597
+ type FieldOption = TextFieldOption | NumberFieldOption | BooleanPropFieldOption | DateTimePickerFieldOption | SliderPropFieldOption | IconButtonOption | DropdownPropOption | TailtipOption;
598
+ type VersolyPluginConfig = {
599
+ name: string;
600
+ cdnUrls?: {
601
+ url: string;
602
+ delay?: boolean;
603
+ defer?: boolean;
604
+ }[];
605
+ css?: string;
606
+ js?: string;
607
+ safelist?: string[];
608
+ checks?: ({
609
+ plugin: string;
610
+ } | {
611
+ html: string;
612
+ })[];
613
+ options?: {
614
+ name: string;
615
+ previewInEditor?: boolean;
616
+ isShown?: {
617
+ props?: {
618
+ [key: string]: boolean | string;
619
+ };
620
+ };
621
+ fields: FieldOption[];
622
+ };
623
+ components?: {
624
+ name: string;
625
+ category: string;
626
+ html: string;
627
+ }[];
628
+ displayNames?: {
629
+ displayName: string;
630
+ property: string;
631
+ value: string;
632
+ }[];
633
+ };
634
+
635
+ declare const defineConfig: <T extends VersolyPluginConfig>(config: T) => T;
636
+
637
+ export { defineConfig, plugins };