@versoly/plugins 0.0.6 → 0.0.8

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