@versoly/plugins 0.0.7 → 0.0.9

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,635 +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-pricing': {
488
- name: string;
489
- js: string;
490
- checks: ({
491
- plugin: string;
492
- html?: undefined;
493
- } | {
494
- html: string;
495
- plugin?: undefined;
496
- })[];
497
- };
498
- 'versoly-analytics': {
499
- name: string;
500
- js: string;
501
- checks: {
502
- html: string;
503
- }[];
504
- };
505
- 'versoly-events': {
506
- name: string;
507
- js: string;
508
- checks: {
509
- html: string;
510
- }[];
511
- };
512
- 'versoly-form': {
513
- name: string;
514
- checks: {
515
- plugin: string;
516
- }[];
517
- js: string;
518
- };
519
- 'versoly-modal': {
520
- name: string;
521
- js: string;
522
- checks: {
523
- plugin: string;
524
- }[];
525
- };
526
- };
527
-
528
- type TooltipProps = {
529
- content: string;
530
- };
531
- type TextFieldOption = {
532
- type: 'TextOption';
533
- name: string;
534
- tooltipProps?: TooltipProps;
535
- placeholder?: string;
536
- propsName: string;
537
- isArray?: boolean;
538
- };
539
- type NumberFieldOption = {
540
- type: 'NumberOption';
541
- name: string;
542
- propsName: string;
543
- placeholder?: string;
544
- stepSize?: number;
545
- };
546
- type SliderPropFieldOption = {
547
- type: 'SliderPropOption';
548
- name: string;
549
- propsName: string;
550
- min: number;
551
- max: number;
552
- stepSize: number;
553
- defaultValue: number;
554
- enabledValue?: number;
555
- inHeaderAction?: boolean;
556
- headerGroup?: string;
557
- };
558
- type BooleanPropFieldOption = {
559
- type: 'BooleanPropOption';
560
- name: string;
561
- propsName: string;
562
- options?: (string | boolean)[];
563
- defaultValue: boolean;
564
- enabledValue?: boolean;
565
- inHeaderAction?: boolean;
566
- headerGroup?: string;
567
- };
568
- type DateTimePickerFieldOption = {
569
- type: 'DateTimePickerOption';
570
- name: string;
571
- propsName: string;
572
- };
573
- type IconButtonOption = {
574
- type: 'IconButtonOption';
575
- name: string;
576
- propsName: string;
577
- options: string[];
578
- defaultValue: string | null;
579
- enabledValue?: string;
580
- inHeaderAction?: boolean;
581
- headerGroup?: string;
582
- };
583
- type DropdownPropOption = {
584
- type: 'DropdownPropOption';
585
- name: string;
586
- propsName: string;
587
- inline?: boolean;
588
- noneDisplayValue?: string;
589
- options: (string | boolean | null)[];
590
- };
591
- type TailtipOption = {
592
- name: 'tailtip';
593
- type: 'TailtipOption';
594
- };
595
- type FieldOption = TextFieldOption | NumberFieldOption | BooleanPropFieldOption | DateTimePickerFieldOption | SliderPropFieldOption | IconButtonOption | DropdownPropOption | TailtipOption;
596
- type VersolyPluginConfig = {
597
- name: string;
598
- cdnUrls?: {
599
- url: string;
600
- delay?: boolean;
601
- defer?: boolean;
602
- }[];
603
- css?: string;
604
- js?: string;
605
- safelist?: string[];
606
- checks?: ({
607
- plugin: string;
608
- } | {
609
- html: string;
610
- })[];
611
- options?: {
612
- name: string;
613
- previewInEditor?: boolean;
614
- isShown?: {
615
- props?: {
616
- [key: string]: boolean | string;
617
- };
618
- };
619
- fields: FieldOption[];
620
- };
621
- components?: {
622
- name: string;
623
- category: string;
624
- html: string;
625
- }[];
626
- displayNames?: {
627
- displayName: string;
628
- property: string;
629
- value: string;
630
- }[];
631
- };
632
-
633
- declare const defineConfig: <T extends VersolyPluginConfig>(config: T) => T;
634
-
635
- export { defineConfig, plugins };