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