@versoly/plugins 0.0.3 → 0.0.4
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.js → index.cjs} +437 -465
- package/dist/{index.d.mts → index.d.cts} +180 -193
- package/dist/index.d.ts +180 -193
- package/dist/index.global.js +437 -465
- package/dist/index.mjs +441 -469
- package/package.json +3 -5
package/dist/index.global.js
CHANGED
|
@@ -5,119 +5,54 @@
|
|
|
5
5
|
return config;
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
// src/plugins/
|
|
9
|
-
var
|
|
10
|
-
name: "
|
|
8
|
+
// src/plugins/calendly.ts
|
|
9
|
+
var calendly_default = defineConfig({
|
|
10
|
+
name: "calendly",
|
|
11
11
|
cdnUrls: [
|
|
12
12
|
{
|
|
13
|
-
url: "https://
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
url: "https://assets.calendly.com/assets/external/widget.js",
|
|
14
|
+
delay: true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
url: "https://assets.calendly.com/assets/external/widget.css",
|
|
18
|
+
delay: true
|
|
16
19
|
}
|
|
17
20
|
],
|
|
18
|
-
js: `
|
|
19
|
-
|
|
21
|
+
js: `
|
|
22
|
+
document.querySelectorAll('[data-calendly-url]').forEach(elem => {
|
|
23
|
+
const url = elem.dataset.calendlyUrl;
|
|
20
24
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
unpinned: 'd-none hidden'
|
|
25
|
-
},
|
|
26
|
-
...options
|
|
27
|
-
});
|
|
25
|
+
if (!url) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
elem.addEventListener('click', e => {
|
|
30
|
+
e.preventDefault();
|
|
31
|
+
window.Calendly.initPopupWidget({ url, parentElement: elem });
|
|
32
|
+
})
|
|
30
33
|
});`,
|
|
31
|
-
checks: [{ plugin: "
|
|
32
|
-
components: []
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
// src/plugins/marquee.ts
|
|
36
|
-
var src = "https://d1pnnwteuly8z3.cloudfront.net/libs/versoly-marquee/0.0.2/versoly-marquee.iife.js";
|
|
37
|
-
var marquee = defineConfig({
|
|
38
|
-
name: "Marquee",
|
|
34
|
+
checks: [{ plugin: "calendly" }, { html: "calendly" }],
|
|
39
35
|
options: {
|
|
40
|
-
name: "
|
|
41
|
-
previewInEditor: true,
|
|
36
|
+
name: "Calendly Options",
|
|
42
37
|
isShown: {
|
|
43
38
|
props: {
|
|
44
|
-
"data-
|
|
39
|
+
"data-calendly-url": true
|
|
45
40
|
}
|
|
46
41
|
},
|
|
47
42
|
fields: [
|
|
48
43
|
{
|
|
49
|
-
name: "
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
defaultValue: true,
|
|
53
|
-
enabledValue: true,
|
|
54
|
-
inHeaderAction: true,
|
|
55
|
-
headerGroup: "Core"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: "Duration",
|
|
59
|
-
type: "SliderPropOption",
|
|
60
|
-
propsName: "data-options.duration",
|
|
61
|
-
min: 1,
|
|
62
|
-
max: 20,
|
|
63
|
-
stepSize: 1,
|
|
64
|
-
defaultValue: 5
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
name: "Direction",
|
|
68
|
-
type: "IconButtonOption",
|
|
69
|
-
propsName: "data-options.direction",
|
|
70
|
-
options: ["ltr", "rtl", "ttb", "btt"],
|
|
71
|
-
defaultValue: "ltr"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
name: "Pauseable",
|
|
75
|
-
type: "BooleanPropOption",
|
|
76
|
-
propsName: "data-options.pauseable",
|
|
77
|
-
defaultValue: true
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
name: "Iterations",
|
|
81
|
-
type: "SliderPropOption",
|
|
82
|
-
propsName: "data-options.iterations",
|
|
83
|
-
min: 1,
|
|
84
|
-
max: 5,
|
|
85
|
-
stepSize: 1,
|
|
86
|
-
defaultValue: 1,
|
|
87
|
-
enabledValue: 1,
|
|
88
|
-
inHeaderAction: true,
|
|
89
|
-
headerGroup: "Core"
|
|
44
|
+
name: "Calendly Url",
|
|
45
|
+
propsName: "data-calendly-url",
|
|
46
|
+
type: "TextOption"
|
|
90
47
|
}
|
|
91
48
|
]
|
|
92
|
-
}
|
|
93
|
-
checks: [{ plugin: "marquee" }],
|
|
94
|
-
src,
|
|
95
|
-
cdnUrls: [
|
|
96
|
-
{
|
|
97
|
-
url: src,
|
|
98
|
-
defer: true
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
js: `window.vMarquees = [];
|
|
102
|
-
window.vGetElementsByToggle('marquee').forEach((elem, index) => {
|
|
103
|
-
const options = window.vGetElementOptions(elem);
|
|
104
|
-
const marquee = new Marquee(elem, options);
|
|
105
|
-
elem.setAttribute('data-marquee-index', index);
|
|
106
|
-
window.vMarquees.push(elem);
|
|
107
|
-
});`,
|
|
108
|
-
displayNames: [
|
|
109
|
-
{
|
|
110
|
-
displayName: "Marquee",
|
|
111
|
-
property: "data-toggle",
|
|
112
|
-
value: "marquee"
|
|
113
|
-
}
|
|
114
|
-
]
|
|
49
|
+
}
|
|
115
50
|
});
|
|
116
51
|
|
|
117
52
|
// src/plugins/swiper.ts
|
|
118
53
|
var js = `
|
|
119
54
|
window.vSwipers = [];
|
|
120
|
-
window.vGetElementsByToggle('swiper').forEach((elem
|
|
55
|
+
window.vGetElementsByToggle('swiper').forEach((elem) => {
|
|
121
56
|
let props = window.vGetElementOptions(elem);
|
|
122
57
|
|
|
123
58
|
if (props.pagination && props.pagination.renderBullet === 'number') {
|
|
@@ -129,11 +64,10 @@ window.vGetElementsByToggle('swiper').forEach((elem, index) => {
|
|
|
129
64
|
}
|
|
130
65
|
}
|
|
131
66
|
|
|
132
|
-
elem.setAttribute('data-swiper-index', index);
|
|
133
67
|
window.vSwipers.push(new Swiper(elem, props));
|
|
134
68
|
});`;
|
|
135
|
-
var
|
|
136
|
-
name: "
|
|
69
|
+
var swiper_default = defineConfig({
|
|
70
|
+
name: "swiper",
|
|
137
71
|
cdnUrls: [
|
|
138
72
|
{
|
|
139
73
|
url: `https://cdnjs.cloudflare.com/ajax/libs/Swiper/9.3.2/swiper-bundle.min.js`,
|
|
@@ -149,8 +83,8 @@ window.vGetElementsByToggle('swiper').forEach((elem, index) => {
|
|
|
149
83
|
});
|
|
150
84
|
|
|
151
85
|
// src/plugins/prism.ts
|
|
152
|
-
var
|
|
153
|
-
name: "
|
|
86
|
+
var prism_default = defineConfig({
|
|
87
|
+
name: "prism",
|
|
154
88
|
cdnUrls: [
|
|
155
89
|
{
|
|
156
90
|
url: "https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/plugins/line-numbers/prism-line-numbers.min.css"
|
|
@@ -191,86 +125,14 @@ window.addEventListener('load', () => {
|
|
|
191
125
|
checks: [{ html: "prism" }]
|
|
192
126
|
});
|
|
193
127
|
|
|
194
|
-
// src/plugins/tailtip.ts
|
|
195
|
-
var js2 = `window.vTailtips = [];
|
|
196
|
-
|
|
197
|
-
document.querySelectorAll('[data-toggle="tooltip"]').forEach((elem) => {
|
|
198
|
-
const tailtip = Tailtip(elem, window.vGetElementOptions(elem));
|
|
199
|
-
window.vTailtips.push(tailtip);
|
|
200
|
-
});`;
|
|
201
|
-
var tailtip = defineConfig({
|
|
202
|
-
name: "Tailtip",
|
|
203
|
-
src: "https://d1pnnwteuly8z3.cloudfront.net/libs/tailtip/1.0.3/tailtip.js",
|
|
204
|
-
cdnUrls: [
|
|
205
|
-
{
|
|
206
|
-
url: "https://d1pnnwteuly8z3.cloudfront.net/libs/tailtip/1.0.3/tailtip.js",
|
|
207
|
-
defer: true
|
|
208
|
-
}
|
|
209
|
-
],
|
|
210
|
-
js: js2,
|
|
211
|
-
checks: [{ plugin: "tailtip" }],
|
|
212
|
-
components: [
|
|
213
|
-
{
|
|
214
|
-
name: "Info Tooltip",
|
|
215
|
-
category: "Plugins",
|
|
216
|
-
html: `<span class="flex w-4 h-4 bg-dark text-white items-center justify-center rounded-full text-xs font-medium" data-toggle="tooltip">i</span>
|
|
217
|
-
<div class="tooltip" role="tooltip">
|
|
218
|
-
<div class="tooltip-inner">
|
|
219
|
-
<span>This is a tooltip that is shown when hovered or clicked.</span>
|
|
220
|
-
</div>
|
|
221
|
-
<div class="tooltip-arrow"></div>
|
|
222
|
-
</div>`
|
|
223
|
-
}
|
|
224
|
-
],
|
|
225
|
-
options: {
|
|
226
|
-
name: "Tailtip Options",
|
|
227
|
-
// isShown: (element) => element['data-toggle'] === 'tooltip',
|
|
228
|
-
isShown: {
|
|
229
|
-
props: {
|
|
230
|
-
"data-toggle": "tooltip"
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
previewInEditor: true,
|
|
234
|
-
fields: [
|
|
235
|
-
{
|
|
236
|
-
name: "tailtip",
|
|
237
|
-
type: "TailtipOption"
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
name: "Placement",
|
|
241
|
-
propsName: "data-options.placement",
|
|
242
|
-
type: "DropdownPropOption",
|
|
243
|
-
inline: true,
|
|
244
|
-
noneDisplayValue: "Default",
|
|
245
|
-
options: [false, "top", "bottom", "left", "right"]
|
|
246
|
-
}
|
|
247
|
-
]
|
|
248
|
-
}
|
|
249
|
-
});
|
|
250
|
-
|
|
251
|
-
// src/plugins/taos.ts
|
|
252
|
-
var js3 = `!function(){const e=(e,t)=>{let s=!1;return()=>{s||(e(),s=!0,setTimeout((()=>s=!1),t))}},t=e=>{e.className!==e.dataset.taosClass&&(e.className=e.dataset.taosClass)},s=e=>e.className=e.className.replaceAll("taos:",""),a=e=>(e.className.includes("taos-init")||(e.dataset.taosClass=e.className+" taos-init",t(e)),e.className+=" !duration-[0ms] !delay-[0ms]",s(e),{element:e,once:"1"===getComputedStyle(e)["animation-iteration-count"],offset:parseInt(e.dataset.taosOffset||0)});let n=[],i=window.innerWidth,o=window.scrollY;const l=e((()=>{n.forEach((e=>e.trigger=e.element.getBoundingClientRect().top-window.innerHeight+e.offset+o))}),250),r=()=>{n=[],document.querySelectorAll('[class*="taos"]').forEach((e=>n.push(a(e)))),l(),requestAnimationFrame(c)},c=()=>{o=window.scrollY,n.forEach((({element:e,trigger:a,once:n})=>{a<o?t(e):!n&&e.className.includes("taos:")&&s(e)})),l()};r(),addEventListener("scroll",e(c,32)),addEventListener("orientationchange",r),addEventListener("resize",((e,t)=>{let s=null;return()=>{clearTimeout(s),s=setTimeout(e,t)}})((()=>{i!==window.innerWidth&&(i=window.innerWidth,r())}),250)),new MutationObserver((e=>{e.forEach((({target:e})=>{e.className&&!e.className.includes("taos-init")&&e.className.includes("taos:")&&n.push(a(e))}))})).observe(document,{attributes:!0,childList:!0,subtree:!0})}();`;
|
|
253
|
-
var taos = defineConfig({
|
|
254
|
-
name: "TAOS",
|
|
255
|
-
css: `
|
|
256
|
-
html.js :where([class*="taos:"]:not(.taos-init)) {
|
|
257
|
-
visibility: hidden;
|
|
258
|
-
}`,
|
|
259
|
-
js: js3,
|
|
260
|
-
checks: [{ plugin: "taos" }, { html: "taos:" }],
|
|
261
|
-
safelist: ["!duration-[0ms]", "!delay-[0ms]"]
|
|
262
|
-
});
|
|
263
|
-
|
|
264
128
|
// src/plugins/tilt.ts
|
|
265
|
-
var
|
|
266
|
-
window.vGetElementsByToggle('tilt').forEach((
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
tiltEle.setAttribute('data-tilt-index', index);
|
|
270
|
-
window.vTilts.push(tiltEle);
|
|
129
|
+
var js2 = `window.vTilts = [];
|
|
130
|
+
window.vGetElementsByToggle('tilt').forEach((elem) => {
|
|
131
|
+
VanillaTilt.init(elem, window.vGetElementOptions(elem));
|
|
132
|
+
window.vTilts.push(elem);
|
|
271
133
|
});`;
|
|
272
|
-
var
|
|
273
|
-
name: "
|
|
134
|
+
var tilt_default = defineConfig({
|
|
135
|
+
name: "tilt",
|
|
274
136
|
options: {
|
|
275
137
|
name: "Tilt",
|
|
276
138
|
previewInEditor: true,
|
|
@@ -440,7 +302,7 @@ window.vGetElementsByToggle('tilt').forEach((tiltEle, index) => {
|
|
|
440
302
|
defer: true
|
|
441
303
|
}
|
|
442
304
|
],
|
|
443
|
-
js:
|
|
305
|
+
js: js2,
|
|
444
306
|
checks: [{ plugin: "tilt" }],
|
|
445
307
|
components: [
|
|
446
308
|
{
|
|
@@ -457,8 +319,8 @@ window.vGetElementsByToggle('tilt').forEach((tiltEle, index) => {
|
|
|
457
319
|
});
|
|
458
320
|
|
|
459
321
|
// src/plugins/typed.ts
|
|
460
|
-
var
|
|
461
|
-
name: "
|
|
322
|
+
var typed_default = defineConfig({
|
|
323
|
+
name: "typed",
|
|
462
324
|
options: {
|
|
463
325
|
name: "Typed Effect Options",
|
|
464
326
|
previewInEditor: true,
|
|
@@ -542,7 +404,7 @@ window.vGetElementsByToggle('tilt').forEach((tiltEle, index) => {
|
|
|
542
404
|
}
|
|
543
405
|
],
|
|
544
406
|
js: `
|
|
545
|
-
window.vGetElementsByToggle('typed').forEach((elem
|
|
407
|
+
window.vGetElementsByToggle('typed').forEach((elem) => {
|
|
546
408
|
let options = window.vGetElementOptions(elem);
|
|
547
409
|
|
|
548
410
|
options.strings = [elem.innerHTML, ...options.strings];
|
|
@@ -574,66 +436,383 @@ window.vGetElementsByToggle('typed').forEach((elem, index) => {
|
|
|
574
436
|
]
|
|
575
437
|
});
|
|
576
438
|
|
|
577
|
-
// src/plugins/
|
|
578
|
-
var
|
|
579
|
-
name: "
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
if (window.versoly) {
|
|
587
|
-
window.versoly.event({name: eventName})
|
|
588
|
-
}
|
|
589
|
-
if (window.gtag) {
|
|
590
|
-
window.gtag('event', eventName)
|
|
439
|
+
// src/plugins/countup.ts
|
|
440
|
+
var countup_default = defineConfig({
|
|
441
|
+
name: "countup",
|
|
442
|
+
cdnUrls: [
|
|
443
|
+
{
|
|
444
|
+
url: "https://cdnjs.cloudflare.com/ajax/libs/scrollReveal.js/3.4.0/scrollreveal.min.js"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
url: "https://cdnjs.cloudflare.com/ajax/libs/countup.js/2.0.8/countUp.umd.min.js"
|
|
591
448
|
}
|
|
592
|
-
|
|
593
|
-
|
|
449
|
+
],
|
|
450
|
+
js: `window.scrollReveal = ScrollReveal();
|
|
451
|
+
|
|
452
|
+
window.countUpStart = (elem) => {
|
|
453
|
+
var startVal = elem.dataset.from ? +elem.dataset.from : 0
|
|
454
|
+
,endVal = elem.dataset.to ? +elem.dataset.to : 0
|
|
455
|
+
,duration = elem.dataset.duration ? +elem.dataset.duration : 2
|
|
456
|
+
,options = window.vGetElementOptions(elem);
|
|
457
|
+
const up = new countUp.CountUp(elem, endVal, {...options, startVal, duration});
|
|
458
|
+
up.start();
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
window.vGetElementsByToggle('countup').forEach(elem => {
|
|
462
|
+
scrollReveal.reveal(elem, {beforeReveal: window.countUpStart, duration: 0});
|
|
463
|
+
});`,
|
|
464
|
+
checks: [{ plugin: "countup" }],
|
|
465
|
+
options: {
|
|
466
|
+
name: "Countup Options",
|
|
467
|
+
isShown: {
|
|
468
|
+
props: {
|
|
469
|
+
"data-toggle": "countup"
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
fields: [
|
|
473
|
+
{
|
|
474
|
+
name: "Count From",
|
|
475
|
+
propsName: "data-from",
|
|
476
|
+
type: "NumberOption"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
name: "Count To",
|
|
480
|
+
propsName: "data-to",
|
|
481
|
+
type: "NumberOption"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
name: "Duration",
|
|
485
|
+
propsName: "data-duration",
|
|
486
|
+
type: "NumberOption",
|
|
487
|
+
placeholder: "2",
|
|
488
|
+
stepSize: 0.1
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
name: "Countup when Visible",
|
|
492
|
+
propsName: "data-aos",
|
|
493
|
+
options: [false, true],
|
|
494
|
+
type: "BooleanPropOption",
|
|
495
|
+
defaultValue: false
|
|
496
|
+
}
|
|
497
|
+
]
|
|
498
|
+
},
|
|
499
|
+
components: [
|
|
500
|
+
{
|
|
501
|
+
name: "Countup",
|
|
502
|
+
category: "Plugins",
|
|
503
|
+
html: `<h2 data-toggle="countup" data-aos data-aos-id="countup:in" data-from="100" data-to="800">100</h2>`
|
|
594
504
|
}
|
|
595
|
-
|
|
596
|
-
}
|
|
597
|
-
}`,
|
|
598
|
-
checks: [{ html: "data-eventid" }]
|
|
505
|
+
]
|
|
599
506
|
});
|
|
600
507
|
|
|
601
|
-
// src/plugins/
|
|
602
|
-
var
|
|
603
|
-
|
|
604
|
-
name: "Versoly Analytics",
|
|
605
|
-
js: js5,
|
|
606
|
-
checks: [{ html: "/api/event" }]
|
|
607
|
-
});
|
|
508
|
+
// src/plugins/countdown.ts
|
|
509
|
+
var js3 = `window.vGetElementsByToggle('countdown').forEach(elem => {
|
|
510
|
+
const deadline = new Date(elem.dataset.countdown).getTime();
|
|
608
511
|
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
let options = window.vGetElementOptions(elem);
|
|
512
|
+
let elementsByType = {};
|
|
513
|
+
elem.querySelectorAll('[data-countdown-type]').forEach(el => {
|
|
514
|
+
elementsByType[el.dataset.countdownType] = el;
|
|
515
|
+
});
|
|
614
516
|
|
|
615
|
-
|
|
616
|
-
|
|
517
|
+
const countdownFunc = () => {
|
|
518
|
+
let t = (deadline - new Date().getTime()) / 1000;
|
|
617
519
|
|
|
618
|
-
if (
|
|
619
|
-
|
|
520
|
+
if (t < 0) {
|
|
521
|
+
clearInterval(x);
|
|
522
|
+
t = 0;
|
|
620
523
|
}
|
|
621
|
-
}
|
|
622
524
|
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
525
|
+
let valuesByType = {
|
|
526
|
+
seconds: t % 60,
|
|
527
|
+
minutes: (t / 60) % 60,
|
|
528
|
+
hours: (t / (60 * 60)) % 24,
|
|
529
|
+
days: t / (60 * 60 * 24),
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
Object.keys(valuesByType).forEach(type => {
|
|
533
|
+
if (elementsByType[type]) {
|
|
534
|
+
let value = Math.floor(valuesByType[type]);
|
|
535
|
+
if (value < 10) {
|
|
536
|
+
value = '0' + value;
|
|
537
|
+
}
|
|
627
538
|
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
js: `window.vPageLoadedAt = Date.now();
|
|
633
|
-
window.vForms = window.vForms || {};
|
|
539
|
+
elementsByType[type].innerHTML = value;
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
}
|
|
634
543
|
|
|
635
|
-
|
|
636
|
-
|
|
544
|
+
var x = setInterval(countdownFunc, 1000);
|
|
545
|
+
countdownFunc();
|
|
546
|
+
});
|
|
547
|
+
`;
|
|
548
|
+
var currentDate = /* @__PURE__ */ new Date();
|
|
549
|
+
var ISODateIn5Days = new Date(currentDate.getTime() + 5 * 24 * 60 * 60 * 1234).toISOString();
|
|
550
|
+
var countdown_default = defineConfig({
|
|
551
|
+
name: "countdown",
|
|
552
|
+
js: js3,
|
|
553
|
+
checks: [{ plugin: "countdown" }],
|
|
554
|
+
options: {
|
|
555
|
+
name: "Countdown",
|
|
556
|
+
isShown: {
|
|
557
|
+
props: {
|
|
558
|
+
"data-toggle": "countdown",
|
|
559
|
+
"data-countdown": true
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
fields: [
|
|
563
|
+
{
|
|
564
|
+
name: "Countdown Timer",
|
|
565
|
+
propsName: "data-countdown",
|
|
566
|
+
type: "DateTimePickerOption"
|
|
567
|
+
}
|
|
568
|
+
]
|
|
569
|
+
},
|
|
570
|
+
components: [
|
|
571
|
+
{
|
|
572
|
+
name: "Countdown",
|
|
573
|
+
category: "Plugins",
|
|
574
|
+
html: `<h2 class="font-semibold" data-toggle="countdown" data-countdown="${ISODateIn5Days}">
|
|
575
|
+
<span data-countdown-type="days">4</span>
|
|
576
|
+
<span class="opacity-20">:</span>
|
|
577
|
+
<span data-countdown-type="hours">1</span>
|
|
578
|
+
<span class="opacity-20">:</span>
|
|
579
|
+
<span data-countdown-type="minutes">0</span>
|
|
580
|
+
<span class="opacity-20">:</span>
|
|
581
|
+
<span data-countdown-type="seconds">0</span>
|
|
582
|
+
</h2>`
|
|
583
|
+
}
|
|
584
|
+
]
|
|
585
|
+
});
|
|
586
|
+
|
|
587
|
+
// src/plugins/finisher-header.ts
|
|
588
|
+
var finisher_header_default = defineConfig({
|
|
589
|
+
name: "finisher-header",
|
|
590
|
+
cdnUrls: [
|
|
591
|
+
{
|
|
592
|
+
url: "https://d1pnnwteuly8z3.cloudfront.net/js/finisher-header.es5.min.js",
|
|
593
|
+
defer: true
|
|
594
|
+
}
|
|
595
|
+
],
|
|
596
|
+
js: `document.querySelectorAll('.finisher-header').forEach(elem => {
|
|
597
|
+
let options = window.vGetElementOptions(elem);
|
|
598
|
+
new FinisherHeader(options);
|
|
599
|
+
});`,
|
|
600
|
+
checks: [{ html: "finisher-header" }],
|
|
601
|
+
components: [
|
|
602
|
+
{
|
|
603
|
+
name: "Finisher Header",
|
|
604
|
+
category: "Plugins",
|
|
605
|
+
html: `<div class="finisher-header" data-toggle="finisher-header" data-options="{'count':15,'size':{'min':2,'max':40,'pulse':0},'speed':{'x':{'min':0,'max':0.8},'y':{'min':0,'max':0.2}},'colors':{'background':'#fff','particles':['#ff926b','#87ddfe','#acaaff','#1bffc2','#f9a5fe']},'blending':'screen','opacity':{'center':1,'edge':1},'skew':-1,'shapes':['c','s','t']}"></div>`
|
|
606
|
+
}
|
|
607
|
+
]
|
|
608
|
+
});
|
|
609
|
+
|
|
610
|
+
// src/plugins/taos.ts
|
|
611
|
+
var js4 = `!function(){const e=(e,t)=>{let s=!1;return()=>{s||(e(),s=!0,setTimeout((()=>s=!1),t))}},t=e=>{e.className!==e.dataset.taosClass&&(e.className=e.dataset.taosClass)},s=e=>e.className=e.className.replaceAll("taos:",""),a=e=>(e.className.includes("taos-init")||(e.dataset.taosClass=e.className+" taos-init",t(e)),e.className+=" !duration-[0ms] !delay-[0ms]",s(e),{element:e,once:"1"===getComputedStyle(e)["animation-iteration-count"],offset:parseInt(e.dataset.taosOffset||0)});let n=[],i=window.innerWidth,o=window.scrollY;const l=e((()=>{n.forEach((e=>e.trigger=e.element.getBoundingClientRect().top-window.innerHeight+e.offset+o))}),250),r=()=>{n=[],document.querySelectorAll('[class*="taos"]').forEach((e=>n.push(a(e)))),l(),requestAnimationFrame(c)},c=()=>{o=window.scrollY,n.forEach((({element:e,trigger:a,once:n})=>{a<o?t(e):!n&&e.className.includes("taos:")&&s(e)})),l()};r(),addEventListener("scroll",e(c,32)),addEventListener("orientationchange",r),addEventListener("resize",((e,t)=>{let s=null;return()=>{clearTimeout(s),s=setTimeout(e,t)}})((()=>{i!==window.innerWidth&&(i=window.innerWidth,r())}),250)),new MutationObserver((e=>{e.forEach((({target:e})=>{e.className&&!e.className.includes("taos-init")&&e.className.includes("taos:")&&n.push(a(e))}))})).observe(document,{attributes:!0,childList:!0,subtree:!0})}();`;
|
|
612
|
+
var taos_default = defineConfig({
|
|
613
|
+
name: "taos",
|
|
614
|
+
css: `
|
|
615
|
+
html.js :where([class*="taos:"]:not(.taos-init)) {
|
|
616
|
+
visibility: hidden;
|
|
617
|
+
}`,
|
|
618
|
+
js: js4,
|
|
619
|
+
checks: [{ plugin: "taos" }, { html: "taos:" }],
|
|
620
|
+
safelist: ["!duration-[0ms]", "!delay-[0ms]"]
|
|
621
|
+
});
|
|
622
|
+
|
|
623
|
+
// src/plugins/tailtip.ts
|
|
624
|
+
var js5 = `window.vTailtips = [];
|
|
625
|
+
|
|
626
|
+
window.vGetElementsByToggle('tooltip').forEach((elem) => {
|
|
627
|
+
const tailtip = Tailtip(elem, window.vGetElementOptions(elem));
|
|
628
|
+
window.vTailtips.push(tailtip);
|
|
629
|
+
});`;
|
|
630
|
+
var tailtip_default = defineConfig({
|
|
631
|
+
name: "tailtip",
|
|
632
|
+
src: "https://d1pnnwteuly8z3.cloudfront.net/libs/tailtip/1.0.3/tailtip.js",
|
|
633
|
+
cdnUrls: [
|
|
634
|
+
{
|
|
635
|
+
url: "https://d1pnnwteuly8z3.cloudfront.net/libs/tailtip/1.0.3/tailtip.js",
|
|
636
|
+
defer: true
|
|
637
|
+
}
|
|
638
|
+
],
|
|
639
|
+
js: js5,
|
|
640
|
+
checks: [{ plugin: "tailtip" }],
|
|
641
|
+
components: [
|
|
642
|
+
{
|
|
643
|
+
name: "Info Tooltip",
|
|
644
|
+
category: "Plugins",
|
|
645
|
+
html: `<span class="flex w-4 h-4 bg-dark text-white items-center justify-center rounded-full text-xs font-medium" data-toggle="tooltip">i</span>
|
|
646
|
+
<div class="tooltip" role="tooltip">
|
|
647
|
+
<div class="tooltip-inner">
|
|
648
|
+
<span>This is a tooltip that is shown when hovered or clicked.</span>
|
|
649
|
+
</div>
|
|
650
|
+
<div class="tooltip-arrow"></div>
|
|
651
|
+
</div>`
|
|
652
|
+
}
|
|
653
|
+
],
|
|
654
|
+
options: {
|
|
655
|
+
name: "Tailtip Options",
|
|
656
|
+
// isShown: (element) => element['data-toggle'] === 'tooltip',
|
|
657
|
+
isShown: {
|
|
658
|
+
props: {
|
|
659
|
+
"data-toggle": "tooltip"
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
previewInEditor: true,
|
|
663
|
+
fields: [
|
|
664
|
+
{
|
|
665
|
+
name: "tailtip",
|
|
666
|
+
type: "TailtipOption"
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
name: "Placement",
|
|
670
|
+
propsName: "data-options.placement",
|
|
671
|
+
type: "DropdownPropOption",
|
|
672
|
+
inline: true,
|
|
673
|
+
noneDisplayValue: "Default",
|
|
674
|
+
options: [false, "top", "bottom", "left", "right"]
|
|
675
|
+
}
|
|
676
|
+
]
|
|
677
|
+
}
|
|
678
|
+
});
|
|
679
|
+
|
|
680
|
+
// src/plugins/versoly-marquee.ts
|
|
681
|
+
var src = "https://d1pnnwteuly8z3.cloudfront.net/libs/versoly-marquee/0.0.2/versoly-marquee.iife.js";
|
|
682
|
+
var versoly_marquee_default = defineConfig({
|
|
683
|
+
name: "versoly-marquee",
|
|
684
|
+
options: {
|
|
685
|
+
name: "Marquee",
|
|
686
|
+
js: `window.vMarquees = [];
|
|
687
|
+
window.vGetElementsByToggle('marquee').forEach((elem) => {
|
|
688
|
+
const marquee = new Marquee(elem, window.vGetElementOptions(elem));
|
|
689
|
+
window.vMarquees.push(marquee);
|
|
690
|
+
});`,
|
|
691
|
+
previewInEditor: true,
|
|
692
|
+
isShown: {
|
|
693
|
+
props: {
|
|
694
|
+
"data-toggle": "marquee"
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
fields: [
|
|
698
|
+
{
|
|
699
|
+
name: "Loop",
|
|
700
|
+
type: "BooleanPropOption",
|
|
701
|
+
propsName: "data-options.loop",
|
|
702
|
+
defaultValue: true,
|
|
703
|
+
enabledValue: true,
|
|
704
|
+
inHeaderAction: true,
|
|
705
|
+
headerGroup: "Core"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
name: "Duration",
|
|
709
|
+
type: "SliderPropOption",
|
|
710
|
+
propsName: "data-options.duration",
|
|
711
|
+
min: 1,
|
|
712
|
+
max: 20,
|
|
713
|
+
stepSize: 1,
|
|
714
|
+
defaultValue: 5
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
name: "Direction",
|
|
718
|
+
type: "IconButtonOption",
|
|
719
|
+
propsName: "data-options.direction",
|
|
720
|
+
options: ["ltr", "rtl", "ttb", "btt"],
|
|
721
|
+
defaultValue: "ltr"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
name: "Pauseable",
|
|
725
|
+
type: "BooleanPropOption",
|
|
726
|
+
propsName: "data-options.pauseable",
|
|
727
|
+
defaultValue: true
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
name: "Iterations",
|
|
731
|
+
type: "SliderPropOption",
|
|
732
|
+
propsName: "data-options.iterations",
|
|
733
|
+
min: 1,
|
|
734
|
+
max: 5,
|
|
735
|
+
stepSize: 1,
|
|
736
|
+
defaultValue: 1,
|
|
737
|
+
enabledValue: 1,
|
|
738
|
+
inHeaderAction: true,
|
|
739
|
+
headerGroup: "Core"
|
|
740
|
+
}
|
|
741
|
+
]
|
|
742
|
+
},
|
|
743
|
+
checks: [{ plugin: "marquee" }],
|
|
744
|
+
src,
|
|
745
|
+
cdnUrls: [
|
|
746
|
+
{
|
|
747
|
+
url: src,
|
|
748
|
+
defer: true
|
|
749
|
+
}
|
|
750
|
+
],
|
|
751
|
+
displayNames: [
|
|
752
|
+
{
|
|
753
|
+
displayName: "Marquee",
|
|
754
|
+
property: "data-toggle",
|
|
755
|
+
value: "marquee"
|
|
756
|
+
}
|
|
757
|
+
]
|
|
758
|
+
});
|
|
759
|
+
|
|
760
|
+
// src/plugins/versoly-ui.ts
|
|
761
|
+
var versoly_ui_default = defineConfig({
|
|
762
|
+
name: "versoly-ui",
|
|
763
|
+
cdnUrls: [
|
|
764
|
+
{
|
|
765
|
+
url: "https://d1pnnwteuly8z3.cloudfront.net/libs/floating-ui/1.0.1/floating-ui.min.js",
|
|
766
|
+
defer: true
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
url: "https://d1pnnwteuly8z3.cloudfront.net/libs/versoly-ui/2.1.1/versoly-ui.js",
|
|
770
|
+
delay: true
|
|
771
|
+
}
|
|
772
|
+
]
|
|
773
|
+
});
|
|
774
|
+
|
|
775
|
+
// src/plugins/versoly-analytics.ts
|
|
776
|
+
var js6 = `!function(e){e.versoly.event=function(t){if(!("visibilityState"in document&&"prerender"===document.visibilityState||/bot|google|baidu|bing|msn|duckduckbot|teoma|slurp|yandex/i.test(navigator.userAgent)||e._phantom||e.__nightmare||e.navigator.webdriver||e.Cypress||""===e.location.host)){var n=new XMLHttpRequest;n.open("POST",e.versoly.url,!0),n.setRequestHeader("Content-Type","application/json; charset=UTF-8"),n.send(JSON.stringify({siteId:e.versoly.id,referrer:document.referrer,paramReferrer:"",hostname:e.location.hostname,pathname:e.location.pathname+e.location.search,width:e.innerWidth,height:e.innerHeight,tz:Intl.DateTimeFormat().resolvedOptions().timeZone,...t}))}}}(window),window.versoly.event({name: 'pageview'});`;
|
|
777
|
+
var versoly_analytics_default = defineConfig({
|
|
778
|
+
name: "Versoly Analytics",
|
|
779
|
+
js: js6,
|
|
780
|
+
checks: [{ html: "/api/event" }]
|
|
781
|
+
});
|
|
782
|
+
|
|
783
|
+
// src/plugins/versoly-events.ts
|
|
784
|
+
var versoly_events_default = defineConfig({
|
|
785
|
+
name: "versoly-events",
|
|
786
|
+
js: `const eventElements = document.querySelectorAll('[data-eventid]');
|
|
787
|
+
for (const eventElement of eventElements) {
|
|
788
|
+
if (eventElement.tagName !== 'FORM') {
|
|
789
|
+
eventElement.addEventListener('click', function(e) {
|
|
790
|
+
const eventName = eventElement.getAttribute('data-eventid');
|
|
791
|
+
|
|
792
|
+
if (window.versoly) {
|
|
793
|
+
window.versoly.event({name: eventName})
|
|
794
|
+
}
|
|
795
|
+
if (window.gtag) {
|
|
796
|
+
window.gtag('event', eventName)
|
|
797
|
+
}
|
|
798
|
+
if (window.amplitude) {
|
|
799
|
+
window.amplitude.getInstance().logEvent(event);
|
|
800
|
+
}
|
|
801
|
+
})
|
|
802
|
+
}
|
|
803
|
+
}`,
|
|
804
|
+
checks: [{ html: "data-eventid" }]
|
|
805
|
+
});
|
|
806
|
+
|
|
807
|
+
// src/plugins/versoly-form.ts
|
|
808
|
+
var versoly_form_default = defineConfig({
|
|
809
|
+
name: "versoly-form",
|
|
810
|
+
checks: [{ plugin: "formid" }],
|
|
811
|
+
js: `window.vPageLoadedAt = Date.now();
|
|
812
|
+
window.vForms = window.vForms || {};
|
|
813
|
+
|
|
814
|
+
setTimeout(() => {
|
|
815
|
+
let inputs = [...document.getElementsByTagName("input")]
|
|
637
816
|
inputs.forEach(i => {
|
|
638
817
|
if (i.name === 'email_second' || i.name === 'name_second') {
|
|
639
818
|
i.setAttribute('aria-hidden', 'true')
|
|
@@ -782,252 +961,45 @@ window.addFormListener && window.addFormListener()
|
|
|
782
961
|
`
|
|
783
962
|
});
|
|
784
963
|
|
|
785
|
-
// src/plugins/
|
|
786
|
-
var
|
|
787
|
-
name: "
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
url: "https://cdnjs.cloudflare.com/ajax/libs/scrollReveal.js/3.4.0/scrollreveal.min.js"
|
|
791
|
-
},
|
|
792
|
-
{
|
|
793
|
-
url: "https://cdnjs.cloudflare.com/ajax/libs/countup.js/2.0.8/countUp.umd.min.js"
|
|
794
|
-
}
|
|
795
|
-
],
|
|
796
|
-
js: `window.scrollReveal = ScrollReveal();
|
|
797
|
-
|
|
798
|
-
window.countStart = e => {
|
|
799
|
-
var startVal = e.dataset.from ? +e.dataset.from : 0
|
|
800
|
-
,endVal = e.dataset.to ? +e.dataset.to : 0
|
|
801
|
-
,duration = e.dataset.duration ? +e.dataset.duration : 2
|
|
802
|
-
,options = e.dataset.options ? JSON.parse(e.dataset.options) : {}
|
|
803
|
-
const up = new countUp.CountUp(e, endVal, {...options, startVal, duration});
|
|
804
|
-
up.start()
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
window.vGetElementsByToggle('countup').forEach(e => {
|
|
808
|
-
scrollReveal.reveal(e, {beforeReveal: window.countStart, duration: 0});
|
|
809
|
-
});`,
|
|
810
|
-
checks: [{ plugin: "countup" }],
|
|
811
|
-
options: {
|
|
812
|
-
name: "Countup Options",
|
|
813
|
-
isShown: {
|
|
814
|
-
props: {
|
|
815
|
-
"data-toggle": "countup"
|
|
816
|
-
}
|
|
817
|
-
},
|
|
818
|
-
fields: [
|
|
819
|
-
{
|
|
820
|
-
name: "Count From",
|
|
821
|
-
propsName: "data-from",
|
|
822
|
-
type: "NumberOption"
|
|
823
|
-
},
|
|
824
|
-
{
|
|
825
|
-
name: "Count To",
|
|
826
|
-
propsName: "data-to",
|
|
827
|
-
type: "NumberOption"
|
|
828
|
-
},
|
|
829
|
-
{
|
|
830
|
-
name: "Duration",
|
|
831
|
-
propsName: "data-duration",
|
|
832
|
-
type: "NumberOption",
|
|
833
|
-
placeholder: "2",
|
|
834
|
-
stepSize: 0.1
|
|
835
|
-
},
|
|
836
|
-
{
|
|
837
|
-
name: "Countup when Visible",
|
|
838
|
-
propsName: "data-aos",
|
|
839
|
-
options: [false, true],
|
|
840
|
-
type: "BooleanPropOption",
|
|
841
|
-
defaultValue: false
|
|
842
|
-
}
|
|
843
|
-
]
|
|
844
|
-
},
|
|
845
|
-
components: [
|
|
846
|
-
{
|
|
847
|
-
name: "Countup",
|
|
848
|
-
category: "Plugins",
|
|
849
|
-
html: `<h2 data-toggle="countup" data-aos data-aos-id="countup:in" data-from="100" data-to="800">100</h2>`
|
|
850
|
-
}
|
|
851
|
-
]
|
|
852
|
-
});
|
|
853
|
-
|
|
854
|
-
// src/plugins/countdown.ts
|
|
855
|
-
var js6 = `window.vGetElementsByToggle('countdown').forEach(e => {
|
|
856
|
-
const deadline = new Date(e.dataset.countdown).getTime();
|
|
857
|
-
|
|
858
|
-
const daysEl = e.querySelector('[data-countdown-type="days"]'),
|
|
859
|
-
hoursEl = e.querySelector('[data-countdown-type="hours"]'),
|
|
860
|
-
minutesEl = e.querySelector('[data-countdown-type="minutes"]'),
|
|
861
|
-
secondsEl = e.querySelector('[data-countdown-type="seconds"]');
|
|
964
|
+
// src/plugins/versoly-modal.ts
|
|
965
|
+
var versoly_modal_default = defineConfig({
|
|
966
|
+
name: "versoly-modal",
|
|
967
|
+
js: `window.vGetElementsByToggle('modal').forEach(elem => {
|
|
968
|
+
let options = window.vGetElementOptions(elem);
|
|
862
969
|
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
let t = deadline - now;
|
|
970
|
+
if (options.globalBlockId && window.vComponents[options.globalBlockId]) {
|
|
971
|
+
elem.dataset.html = window.vComponents[options.globalBlockId];
|
|
866
972
|
|
|
867
|
-
if (
|
|
868
|
-
|
|
869
|
-
t = 0;
|
|
973
|
+
if (window.vComponents[options.globalBlockId].includes('data-formid')) {
|
|
974
|
+
options.beforeShown = 'addFormListener'
|
|
870
975
|
}
|
|
871
|
-
|
|
872
|
-
let seconds = ''+Math.floor((t / 1000) % 60),
|
|
873
|
-
minutes = ''+Math.floor((t / 1000 / 60) % 60),
|
|
874
|
-
hours = ''+Math.floor((t / (1000 * 60 * 60)) % 24),
|
|
875
|
-
days = ''+Math.floor(t / (1000 * 60 * 60 * 24));
|
|
876
|
-
|
|
877
|
-
if (seconds.length === 1) seconds = '0' + seconds;
|
|
878
|
-
if (minutes.length === 1) minutes = '0' + minutes;
|
|
879
|
-
if (hours.length === 1) hours = '0' + hours;
|
|
880
|
-
if (days.length === 1) days = '0' + days;
|
|
881
|
-
|
|
882
|
-
if (secondsEl) secondsEl.innerHTML = seconds;
|
|
883
|
-
if (minutesEl) minutesEl.innerHTML = minutes;
|
|
884
|
-
if (hoursEl) hoursEl.innerHTML = hours;
|
|
885
|
-
if (daysEl) daysEl.innerHTML = days;
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
var x = setInterval(countdownFunc, 1000);
|
|
889
|
-
countdownFunc();
|
|
890
|
-
})
|
|
891
|
-
`;
|
|
892
|
-
var currentDate = /* @__PURE__ */ new Date();
|
|
893
|
-
var ISODateIn5Days = new Date(currentDate.getTime() + 5 * 24 * 60 * 60 * 1234).toISOString();
|
|
894
|
-
var countdown = defineConfig({
|
|
895
|
-
name: "Countdown Options",
|
|
896
|
-
js: js6,
|
|
897
|
-
checks: [{ plugin: "countdown" }],
|
|
898
|
-
options: {
|
|
899
|
-
name: "Countdown",
|
|
900
|
-
isShown: {
|
|
901
|
-
props: {
|
|
902
|
-
"data-toggle": "countdown",
|
|
903
|
-
"data-countdown": true
|
|
904
|
-
}
|
|
905
|
-
},
|
|
906
|
-
fields: [
|
|
907
|
-
{
|
|
908
|
-
name: "Countdown Timer",
|
|
909
|
-
propsName: "data-countdown",
|
|
910
|
-
type: "DateTimePickerOption"
|
|
911
|
-
}
|
|
912
|
-
]
|
|
913
|
-
},
|
|
914
|
-
components: [
|
|
915
|
-
{
|
|
916
|
-
name: "Countdown",
|
|
917
|
-
category: "Plugins",
|
|
918
|
-
html: `<h2 class="font-semibold" data-toggle="countdown" data-countdown="${ISODateIn5Days}">
|
|
919
|
-
<span data-countdown-type="days">4</span>
|
|
920
|
-
<span class="opacity-20">:</span>
|
|
921
|
-
<span data-countdown-type="hours">1</span>
|
|
922
|
-
<span class="opacity-20">:</span>
|
|
923
|
-
<span data-countdown-type="minutes">0</span>
|
|
924
|
-
<span class="opacity-20">:</span>
|
|
925
|
-
<span data-countdown-type="seconds">0</span>
|
|
926
|
-
</h2>`
|
|
927
|
-
}
|
|
928
|
-
]
|
|
929
|
-
});
|
|
930
|
-
|
|
931
|
-
// src/plugins/calendly.ts
|
|
932
|
-
var calendly = defineConfig({
|
|
933
|
-
name: "Calendly",
|
|
934
|
-
cdnUrls: [
|
|
935
|
-
{
|
|
936
|
-
url: "https://assets.calendly.com/assets/external/widget.js",
|
|
937
|
-
delay: true
|
|
938
|
-
},
|
|
939
|
-
{
|
|
940
|
-
url: "https://assets.calendly.com/assets/external/widget.css",
|
|
941
|
-
delay: true
|
|
942
|
-
}
|
|
943
|
-
],
|
|
944
|
-
js: `
|
|
945
|
-
document.querySelectorAll('[data-calendly-url]').forEach(a => {
|
|
946
|
-
const url = a.getAttribute('data-calendly-url')
|
|
947
|
-
|
|
948
|
-
if (!url) {
|
|
949
|
-
return;
|
|
950
976
|
}
|
|
951
977
|
|
|
952
|
-
|
|
953
|
-
e.preventDefault();
|
|
954
|
-
window.Calendly.initPopupWidget({ url, parentElement: a})
|
|
955
|
-
})
|
|
956
|
-
});`,
|
|
957
|
-
checks: [{ plugin: "calendly" }, { html: "calendly" }],
|
|
958
|
-
options: {
|
|
959
|
-
name: "Calendly Options",
|
|
960
|
-
isShown: {
|
|
961
|
-
props: {
|
|
962
|
-
"data-calendly-url": true
|
|
963
|
-
}
|
|
964
|
-
},
|
|
965
|
-
fields: [
|
|
966
|
-
{
|
|
967
|
-
name: "Calendly Url",
|
|
968
|
-
propsName: "data-calendly-url",
|
|
969
|
-
type: "TextOption"
|
|
970
|
-
}
|
|
971
|
-
]
|
|
972
|
-
}
|
|
973
|
-
});
|
|
974
|
-
|
|
975
|
-
// src/plugins/versolyUI.ts
|
|
976
|
-
var versolyUI = defineConfig({
|
|
977
|
-
name: "Versoly UI",
|
|
978
|
-
cdnUrls: [
|
|
979
|
-
{
|
|
980
|
-
url: "https://d1pnnwteuly8z3.cloudfront.net/libs/floating-ui/1.0.1/floating-ui.min.js",
|
|
981
|
-
defer: true
|
|
982
|
-
},
|
|
983
|
-
{
|
|
984
|
-
url: "https://d1pnnwteuly8z3.cloudfront.net/libs/versoly-ui/2.1.1/versoly-ui.js",
|
|
985
|
-
delay: true
|
|
986
|
-
}
|
|
987
|
-
]
|
|
988
|
-
});
|
|
989
|
-
|
|
990
|
-
// src/plugins/finisherHeader.ts
|
|
991
|
-
var finisherHeader = defineConfig({
|
|
992
|
-
name: "Finisher Header",
|
|
993
|
-
cdnUrls: [
|
|
994
|
-
{
|
|
995
|
-
url: "https://d1pnnwteuly8z3.cloudfront.net/js/finisher-header.es5.min.js",
|
|
996
|
-
defer: true
|
|
997
|
-
}
|
|
998
|
-
],
|
|
999
|
-
js: `document.querySelectorAll('.finisher-header').forEach(elem => {
|
|
1000
|
-
let options = window.vGetElementOptions(elem);
|
|
1001
|
-
new FinisherHeader(options);
|
|
978
|
+
elem.dataset.options = JSON.stringify(options);
|
|
1002
979
|
});`,
|
|
1003
|
-
checks: [{
|
|
1004
|
-
components: [
|
|
1005
|
-
{
|
|
1006
|
-
name: "Finisher Header",
|
|
1007
|
-
category: "Plugins",
|
|
1008
|
-
html: `<div class="finisher-header" data-toggle="finisher-header" data-options="{'count':15,'size':{'min':2,'max':40,'pulse':0},'speed':{'x':{'min':0,'max':0.8},'y':{'min':0,'max':0.2}},'colors':{'background':'#fff','particles':['#ff926b','#87ddfe','#acaaff','#1bffc2','#f9a5fe']},'blending':'screen','opacity':{'center':1,'edge':1},'skew':-1,'shapes':['c','s','t']}"></div>`
|
|
1009
|
-
}
|
|
1010
|
-
]
|
|
980
|
+
checks: [{ plugin: "modal" }]
|
|
1011
981
|
});
|
|
1012
982
|
|
|
1013
983
|
// src/plugins/index.ts
|
|
1014
984
|
var plugins = {
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
swiper,
|
|
1018
|
-
prism,
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
985
|
+
// external
|
|
986
|
+
calendly: calendly_default,
|
|
987
|
+
swiper: swiper_default,
|
|
988
|
+
prism: prism_default,
|
|
989
|
+
tilt: tilt_default,
|
|
990
|
+
typed: typed_default,
|
|
991
|
+
countup: countup_default,
|
|
992
|
+
countdown: countdown_default,
|
|
993
|
+
"finisher-header": finisher_header_default,
|
|
994
|
+
taos: taos_default,
|
|
995
|
+
tailtip: tailtip_default,
|
|
996
|
+
// versoly packages
|
|
997
|
+
"versoly-marquee": versoly_marquee_default,
|
|
998
|
+
"versoly-ui": versoly_ui_default,
|
|
999
|
+
// internal
|
|
1000
|
+
"versoly-analytics": versoly_analytics_default,
|
|
1001
|
+
"versoly-events": versoly_events_default,
|
|
1002
|
+
"versoly-form": versoly_form_default,
|
|
1003
|
+
"versoly-modal": versoly_modal_default
|
|
1032
1004
|
};
|
|
1033
1005
|
})();
|