@versoly/plugins 0.0.11 → 0.0.13
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 → index.d.mts} +33 -20
- package/dist/{index.js → index.mjs} +103 -67
- package/package.json +12 -11
|
@@ -30,6 +30,9 @@ declare const plugins: {
|
|
|
30
30
|
};
|
|
31
31
|
swiper: {
|
|
32
32
|
name: string;
|
|
33
|
+
checks: {
|
|
34
|
+
plugin: string;
|
|
35
|
+
}[];
|
|
33
36
|
cdnUrls: ({
|
|
34
37
|
url: string;
|
|
35
38
|
inline: boolean;
|
|
@@ -40,22 +43,22 @@ declare const plugins: {
|
|
|
40
43
|
defer?: undefined;
|
|
41
44
|
})[];
|
|
42
45
|
js: string;
|
|
43
|
-
checks: {
|
|
44
|
-
plugin: string;
|
|
45
|
-
}[];
|
|
46
46
|
};
|
|
47
47
|
prism: {
|
|
48
48
|
name: string;
|
|
49
|
+
checks: {
|
|
50
|
+
html: string;
|
|
51
|
+
}[];
|
|
49
52
|
cdnUrls: {
|
|
50
53
|
url: string;
|
|
51
54
|
}[];
|
|
52
55
|
js: string;
|
|
53
|
-
checks: {
|
|
54
|
-
html: string;
|
|
55
|
-
}[];
|
|
56
56
|
};
|
|
57
57
|
tilt: {
|
|
58
58
|
name: string;
|
|
59
|
+
checks: {
|
|
60
|
+
plugin: string;
|
|
61
|
+
}[];
|
|
59
62
|
options: {
|
|
60
63
|
name: string;
|
|
61
64
|
previewInEditor: true;
|
|
@@ -162,9 +165,6 @@ declare const plugins: {
|
|
|
162
165
|
defer: true;
|
|
163
166
|
}[];
|
|
164
167
|
js: string;
|
|
165
|
-
checks: {
|
|
166
|
-
plugin: string;
|
|
167
|
-
}[];
|
|
168
168
|
components: {
|
|
169
169
|
name: string;
|
|
170
170
|
category: string;
|
|
@@ -173,6 +173,9 @@ declare const plugins: {
|
|
|
173
173
|
};
|
|
174
174
|
typed: {
|
|
175
175
|
name: string;
|
|
176
|
+
checks: {
|
|
177
|
+
plugin: string;
|
|
178
|
+
}[];
|
|
176
179
|
options: {
|
|
177
180
|
name: string;
|
|
178
181
|
previewInEditor: true;
|
|
@@ -232,9 +235,6 @@ declare const plugins: {
|
|
|
232
235
|
defer: true;
|
|
233
236
|
}[];
|
|
234
237
|
js: string;
|
|
235
|
-
checks: {
|
|
236
|
-
plugin: string;
|
|
237
|
-
}[];
|
|
238
238
|
components: never[];
|
|
239
239
|
displayNames: {
|
|
240
240
|
displayName: string;
|
|
@@ -277,9 +277,9 @@ declare const plugins: {
|
|
|
277
277
|
} | {
|
|
278
278
|
name: string;
|
|
279
279
|
propsName: string;
|
|
280
|
-
options: boolean[];
|
|
281
280
|
type: "BooleanPropOption";
|
|
282
|
-
|
|
281
|
+
options: boolean[];
|
|
282
|
+
defaultValue: true;
|
|
283
283
|
placeholder?: undefined;
|
|
284
284
|
stepSize?: undefined;
|
|
285
285
|
})[];
|
|
@@ -332,6 +332,19 @@ declare const plugins: {
|
|
|
332
332
|
html: string;
|
|
333
333
|
}[];
|
|
334
334
|
};
|
|
335
|
+
headroom: {
|
|
336
|
+
name: string;
|
|
337
|
+
cdnUrls: {
|
|
338
|
+
url: string;
|
|
339
|
+
inline: boolean;
|
|
340
|
+
defer: true;
|
|
341
|
+
}[];
|
|
342
|
+
js: string;
|
|
343
|
+
checks: {
|
|
344
|
+
plugin: string;
|
|
345
|
+
}[];
|
|
346
|
+
components: never[];
|
|
347
|
+
};
|
|
335
348
|
taos: {
|
|
336
349
|
name: string;
|
|
337
350
|
css: string;
|
|
@@ -347,15 +360,15 @@ declare const plugins: {
|
|
|
347
360
|
};
|
|
348
361
|
tailtip: {
|
|
349
362
|
name: string;
|
|
363
|
+
checks: {
|
|
364
|
+
plugin: string;
|
|
365
|
+
}[];
|
|
350
366
|
src: string;
|
|
351
367
|
cdnUrls: {
|
|
352
368
|
url: string;
|
|
353
369
|
defer: true;
|
|
354
370
|
}[];
|
|
355
371
|
js: string;
|
|
356
|
-
checks: {
|
|
357
|
-
plugin: string;
|
|
358
|
-
}[];
|
|
359
372
|
components: {
|
|
360
373
|
name: string;
|
|
361
374
|
category: string;
|
|
@@ -388,6 +401,9 @@ declare const plugins: {
|
|
|
388
401
|
};
|
|
389
402
|
'versoly-marquee': {
|
|
390
403
|
name: string;
|
|
404
|
+
checks: {
|
|
405
|
+
plugin: string;
|
|
406
|
+
}[];
|
|
391
407
|
js: string;
|
|
392
408
|
options: {
|
|
393
409
|
name: string;
|
|
@@ -459,9 +475,6 @@ declare const plugins: {
|
|
|
459
475
|
options?: undefined;
|
|
460
476
|
})[];
|
|
461
477
|
};
|
|
462
|
-
checks: {
|
|
463
|
-
plugin: string;
|
|
464
|
-
}[];
|
|
465
478
|
src: string;
|
|
466
479
|
cdnUrls: {
|
|
467
480
|
url: string;
|
|
@@ -41,8 +41,7 @@ document.querySelectorAll('[data-calendly-url]').forEach(elem => {
|
|
|
41
41
|
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/plugins/swiper.ts
|
|
44
|
-
const js$
|
|
45
|
-
window.vSwipers = [];
|
|
44
|
+
const js$10 = `window.vSwipers = [];
|
|
46
45
|
window.vGetElementsByToggle('swiper').forEach((elem) => {
|
|
47
46
|
let props = window.vGetElementOptions(elem);
|
|
48
47
|
|
|
@@ -59,26 +58,18 @@ window.vGetElementsByToggle('swiper').forEach((elem) => {
|
|
|
59
58
|
});`;
|
|
60
59
|
var swiper_default = defineConfig({
|
|
61
60
|
name: "swiper",
|
|
61
|
+
checks: [{ plugin: "swiper" }],
|
|
62
62
|
cdnUrls: [{
|
|
63
|
-
url: `https://
|
|
63
|
+
url: `https://cdn.jsdelivr.net/npm/swiper@9.3.2/swiper-bundle.min.js`,
|
|
64
64
|
inline: false,
|
|
65
65
|
defer: true
|
|
66
66
|
}, { url: `https://d1pnnwteuly8z3.cloudfront.net/libs/swiper/9.3.2/swiper.css` }],
|
|
67
|
-
js: js$
|
|
68
|
-
checks: [{ plugin: "swiper" }]
|
|
67
|
+
js: js$10
|
|
69
68
|
});
|
|
70
69
|
|
|
71
70
|
//#endregion
|
|
72
71
|
//#region src/plugins/prism.ts
|
|
73
|
-
|
|
74
|
-
name: "prism",
|
|
75
|
-
cdnUrls: [
|
|
76
|
-
{ url: "https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/plugins/line-numbers/prism-line-numbers.min.css" },
|
|
77
|
-
{ url: "https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/prism.min.js" },
|
|
78
|
-
{ url: "https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/plugins/autoloader/prism-autoloader.min.js" },
|
|
79
|
-
{ url: "https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/plugins/line-numbers/prism-line-numbers.min.js" }
|
|
80
|
-
],
|
|
81
|
-
js: `
|
|
72
|
+
const js$9 = `
|
|
82
73
|
document.querySelectorAll("pre > code[class^='language-']").forEach((elem) => {
|
|
83
74
|
elem.parentNode.innerHTML = elem.parentNode.innerHTML.trim();
|
|
84
75
|
});
|
|
@@ -86,9 +77,9 @@ document.querySelectorAll("pre > code[class^='language-']").forEach((elem) => {
|
|
|
86
77
|
let themeLink = window.vPrismTheme !== undefined ? window.vPrismTheme : 'default';
|
|
87
78
|
|
|
88
79
|
if (themeLink === 'default') {
|
|
89
|
-
themeLink = 'https://
|
|
80
|
+
themeLink = 'https://cdn.jsdelivr.net/npm/prismjs@1.30.0/themes/prism.min.css';
|
|
90
81
|
} else if (themeLink && !themeLink.includes('https://')) {
|
|
91
|
-
themeLink = 'https://
|
|
82
|
+
themeLink = 'https://cdn.jsdelivr.net/npm/prism-themes@1.9.0/themes/prism-' + themeLink + '.min.css';
|
|
92
83
|
}
|
|
93
84
|
|
|
94
85
|
if (themeLink && themeLink.includes('https://')) {
|
|
@@ -100,19 +91,29 @@ if (themeLink && themeLink.includes('https://')) {
|
|
|
100
91
|
|
|
101
92
|
window.addEventListener('load', () => {
|
|
102
93
|
window.Prism && window.Prism.highlightAll();
|
|
103
|
-
})
|
|
104
|
-
|
|
94
|
+
});`;
|
|
95
|
+
var prism_default = defineConfig({
|
|
96
|
+
name: "prism",
|
|
97
|
+
checks: [{ html: "prism" }],
|
|
98
|
+
cdnUrls: [
|
|
99
|
+
{ url: "https://cdn.jsdelivr.net/npm/prismjs@1.30.0/components/prism-core.min.js" },
|
|
100
|
+
{ url: "https://cdn.jsdelivr.net/npm/prismjs@1.30.0/plugins/autoloader/prism-autoloader.min.js" },
|
|
101
|
+
{ url: "https://cdn.jsdelivr.net/npm/prismjs@1.30.0/plugins/line-numbers/prism-line-numbers.min.js" },
|
|
102
|
+
{ url: "https://cdn.jsdelivr.net/npm/prismjs@1.30.0/plugins/line-numbers/prism-line-numbers.min.css" }
|
|
103
|
+
],
|
|
104
|
+
js: js$9
|
|
105
105
|
});
|
|
106
106
|
|
|
107
107
|
//#endregion
|
|
108
108
|
//#region src/plugins/tilt.ts
|
|
109
|
-
const js$
|
|
109
|
+
const js$8 = `window.vTilts = [];
|
|
110
110
|
window.vGetElementsByToggle('tilt').forEach((elem) => {
|
|
111
111
|
VanillaTilt.init(elem, window.vGetElementOptions(elem));
|
|
112
112
|
window.vTilts.push(elem);
|
|
113
113
|
});`;
|
|
114
114
|
var tilt_default = defineConfig({
|
|
115
115
|
name: "tilt",
|
|
116
|
+
checks: [{ plugin: "tilt" }],
|
|
116
117
|
options: {
|
|
117
118
|
name: "Tilt",
|
|
118
119
|
previewInEditor: true,
|
|
@@ -273,11 +274,10 @@ var tilt_default = defineConfig({
|
|
|
273
274
|
]
|
|
274
275
|
},
|
|
275
276
|
cdnUrls: [{
|
|
276
|
-
url: "https://
|
|
277
|
+
url: "https://cdn.jsdelivr.net/npm/vanilla-tilt@1.8.1/dist/vanilla-tilt.min.js",
|
|
277
278
|
defer: true
|
|
278
279
|
}],
|
|
279
|
-
js: js$
|
|
280
|
-
checks: [{ plugin: "tilt" }],
|
|
280
|
+
js: js$8,
|
|
281
281
|
components: [{
|
|
282
282
|
name: "Tilt Image",
|
|
283
283
|
category: "Plugins",
|
|
@@ -291,8 +291,25 @@ var tilt_default = defineConfig({
|
|
|
291
291
|
|
|
292
292
|
//#endregion
|
|
293
293
|
//#region src/plugins/typed.ts
|
|
294
|
+
const js$7 = `
|
|
295
|
+
window.vGetElementsByToggle('typed').forEach((elem) => {
|
|
296
|
+
let options = window.vGetElementOptions(elem);
|
|
297
|
+
|
|
298
|
+
options.strings = [elem.innerHTML, ...options.strings];
|
|
299
|
+
elem.innerHTML = '';
|
|
300
|
+
|
|
301
|
+
new Typed(elem, {
|
|
302
|
+
typeSpeed: 100,
|
|
303
|
+
backSpeed: 50,
|
|
304
|
+
startDelay: 500,
|
|
305
|
+
backDelay: 1000,
|
|
306
|
+
loop: true,
|
|
307
|
+
...options
|
|
308
|
+
});
|
|
309
|
+
});`;
|
|
294
310
|
var typed_default = defineConfig({
|
|
295
311
|
name: "typed",
|
|
312
|
+
checks: [{ plugin: "typed" }],
|
|
296
313
|
options: {
|
|
297
314
|
name: "Typed Effect Options",
|
|
298
315
|
previewInEditor: true,
|
|
@@ -366,26 +383,10 @@ var typed_default = defineConfig({
|
|
|
366
383
|
]
|
|
367
384
|
},
|
|
368
385
|
cdnUrls: [{
|
|
369
|
-
url: "https://
|
|
386
|
+
url: "https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js",
|
|
370
387
|
defer: true
|
|
371
388
|
}],
|
|
372
|
-
js:
|
|
373
|
-
window.vGetElementsByToggle('typed').forEach((elem) => {
|
|
374
|
-
let options = window.vGetElementOptions(elem);
|
|
375
|
-
|
|
376
|
-
options.strings = [elem.innerHTML, ...options.strings];
|
|
377
|
-
elem.innerHTML = '';
|
|
378
|
-
|
|
379
|
-
new Typed(elem, {
|
|
380
|
-
typeSpeed: 100,
|
|
381
|
-
backSpeed: 50,
|
|
382
|
-
startDelay: 500,
|
|
383
|
-
backDelay: 1000,
|
|
384
|
-
loop: true,
|
|
385
|
-
...options
|
|
386
|
-
});
|
|
387
|
-
});`,
|
|
388
|
-
checks: [{ plugin: "typed" }],
|
|
389
|
+
js: js$7,
|
|
389
390
|
components: [],
|
|
390
391
|
displayNames: [{
|
|
391
392
|
displayName: "Typed Effect",
|
|
@@ -398,20 +399,14 @@ window.vGetElementsByToggle('typed').forEach((elem) => {
|
|
|
398
399
|
//#region src/plugins/countup.ts
|
|
399
400
|
var countup_default = defineConfig({
|
|
400
401
|
name: "countup",
|
|
401
|
-
cdnUrls: [{ url: "https://
|
|
402
|
-
js: `window.
|
|
403
|
-
|
|
404
|
-
window.countUpStart = (elem) => {
|
|
402
|
+
cdnUrls: [{ url: "https://cdn.jsdelivr.net/npm/countup.js@2.9.0/dist/countUp.umd.js" }],
|
|
403
|
+
js: `window.vGetElementsByToggle('countup').forEach(elem => {
|
|
405
404
|
var startVal = elem.dataset.from ? +elem.dataset.from : 0
|
|
406
405
|
,endVal = elem.dataset.to ? +elem.dataset.to : 0
|
|
407
406
|
,duration = elem.dataset.duration ? +elem.dataset.duration : 2
|
|
408
407
|
,options = window.vGetElementOptions(elem);
|
|
409
|
-
const up = new countUp.CountUp(elem, endVal, {...options, startVal, duration});
|
|
408
|
+
const up = new countUp.CountUp(elem, endVal, { enableScrollSpy: true, scrollSpyOnce: true, ...options, startVal, duration });
|
|
410
409
|
up.start();
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
window.vGetElementsByToggle('countup').forEach(elem => {
|
|
414
|
-
scrollReveal.reveal(elem, {beforeReveal: window.countUpStart, duration: 0});
|
|
415
410
|
});`,
|
|
416
411
|
checks: [{ plugin: "countup" }],
|
|
417
412
|
options: {
|
|
@@ -437,17 +432,24 @@ window.vGetElementsByToggle('countup').forEach(elem => {
|
|
|
437
432
|
},
|
|
438
433
|
{
|
|
439
434
|
name: "Countup when Visible",
|
|
440
|
-
propsName: "data-
|
|
435
|
+
propsName: "data-options.enableScrollSpy",
|
|
436
|
+
type: "BooleanPropOption",
|
|
441
437
|
options: [false, true],
|
|
438
|
+
defaultValue: true
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
name: "Animate only once",
|
|
442
|
+
propsName: "data-options.scrollSpyOnce",
|
|
442
443
|
type: "BooleanPropOption",
|
|
443
|
-
|
|
444
|
+
options: [false, true],
|
|
445
|
+
defaultValue: true
|
|
444
446
|
}
|
|
445
447
|
]
|
|
446
448
|
},
|
|
447
449
|
components: [{
|
|
448
450
|
name: "Countup",
|
|
449
451
|
category: "Plugins",
|
|
450
|
-
html: `<h2 data-toggle="countup" data-
|
|
452
|
+
html: `<h2 data-toggle="countup" data-from="100" data-to="800">100</h2>`
|
|
451
453
|
}]
|
|
452
454
|
});
|
|
453
455
|
|
|
@@ -545,6 +547,33 @@ var finisher_header_default = defineConfig({
|
|
|
545
547
|
}]
|
|
546
548
|
});
|
|
547
549
|
|
|
550
|
+
//#endregion
|
|
551
|
+
//#region src/plugins/headroom.ts
|
|
552
|
+
var headroom_default = defineConfig({
|
|
553
|
+
name: "headroom",
|
|
554
|
+
cdnUrls: [{
|
|
555
|
+
url: "https://cdn.jsdelivr.net/npm/headroom.js@0.12.0/dist/headroom.min.js",
|
|
556
|
+
inline: false,
|
|
557
|
+
defer: true
|
|
558
|
+
}],
|
|
559
|
+
js: `window.vGetElementsByToggle('headroom').forEach((elem) => {
|
|
560
|
+
let options = window.vGetElementOptions(elem);
|
|
561
|
+
|
|
562
|
+
var headroom = new Headroom(elem, {
|
|
563
|
+
classes: {
|
|
564
|
+
initial : "headroom transition-transform duration-200",
|
|
565
|
+
pinned: "d-block translate-y-0",
|
|
566
|
+
unpinned: 'd-none -translate-y-full',
|
|
567
|
+
},
|
|
568
|
+
...options
|
|
569
|
+
});
|
|
570
|
+
|
|
571
|
+
headroom.init();
|
|
572
|
+
});`,
|
|
573
|
+
checks: [{ plugin: "headroom" }],
|
|
574
|
+
components: []
|
|
575
|
+
});
|
|
576
|
+
|
|
548
577
|
//#endregion
|
|
549
578
|
//#region src/plugins/taos.ts
|
|
550
579
|
const js$5 = `!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})}();`;
|
|
@@ -562,20 +591,19 @@ html.js :where([class*="taos:"]:not(.taos-init)) {
|
|
|
562
591
|
//#endregion
|
|
563
592
|
//#region src/plugins/tailtip.ts
|
|
564
593
|
const js$4 = `window.vTailtips = [];
|
|
565
|
-
|
|
566
594
|
window.vGetElementsByToggle('tooltip').forEach((elem) => {
|
|
567
595
|
const tailtip = Tailtip(elem, window.vGetElementOptions(elem));
|
|
568
596
|
window.vTailtips.push(tailtip);
|
|
569
597
|
});`;
|
|
570
598
|
var tailtip_default = defineConfig({
|
|
571
599
|
name: "tailtip",
|
|
572
|
-
|
|
600
|
+
checks: [{ plugin: "tailtip" }],
|
|
601
|
+
src: "https://d1pnnwteuly8z3.cloudfront.net/libs/tailtip/1.1.0/tailtip.js",
|
|
573
602
|
cdnUrls: [{
|
|
574
|
-
url: "https://d1pnnwteuly8z3.cloudfront.net/libs/tailtip/1.0
|
|
603
|
+
url: "https://d1pnnwteuly8z3.cloudfront.net/libs/tailtip/1.1.0/tailtip.js",
|
|
575
604
|
defer: true
|
|
576
605
|
}],
|
|
577
606
|
js: js$4,
|
|
578
|
-
checks: [{ plugin: "tailtip" }],
|
|
579
607
|
components: [{
|
|
580
608
|
name: "Info Tooltip",
|
|
581
609
|
category: "Plugins",
|
|
@@ -613,14 +641,15 @@ var tailtip_default = defineConfig({
|
|
|
613
641
|
|
|
614
642
|
//#endregion
|
|
615
643
|
//#region src/plugins/versoly-marquee.ts
|
|
616
|
-
const src = "https://
|
|
644
|
+
const src = "https://cdn.jsdelivr.net/npm/versoly-marquee@1.1.1/dist/versoly-marquee.iife.js";
|
|
617
645
|
const js$3 = `window.vMarquees = [];
|
|
618
646
|
window.vGetElementsByToggle('marquee').forEach((elem) => {
|
|
619
|
-
const marquee = new Marquee(elem, window.vGetElementOptions(elem));
|
|
620
|
-
window.vMarquees.push(marquee);
|
|
647
|
+
const marquee = new Marquee(elem, window.vGetElementOptions(elem));
|
|
648
|
+
window.vMarquees.push(marquee);
|
|
621
649
|
});`;
|
|
622
650
|
var versoly_marquee_default = defineConfig({
|
|
623
651
|
name: "versoly-marquee",
|
|
652
|
+
checks: [{ plugin: "marquee" }],
|
|
624
653
|
js: js$3,
|
|
625
654
|
options: {
|
|
626
655
|
name: "Marquee",
|
|
@@ -677,7 +706,6 @@ var versoly_marquee_default = defineConfig({
|
|
|
677
706
|
}
|
|
678
707
|
]
|
|
679
708
|
},
|
|
680
|
-
checks: [{ plugin: "marquee" }],
|
|
681
709
|
src,
|
|
682
710
|
cdnUrls: [{
|
|
683
711
|
url: src,
|
|
@@ -694,13 +722,20 @@ var versoly_marquee_default = defineConfig({
|
|
|
694
722
|
//#region src/plugins/versoly-ui.ts
|
|
695
723
|
var versoly_ui_default = defineConfig({
|
|
696
724
|
name: "versoly-ui",
|
|
697
|
-
cdnUrls: [
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
725
|
+
cdnUrls: [
|
|
726
|
+
{
|
|
727
|
+
url: "https://cdn.jsdelivr.net/npm/@floating-ui/core@1.7.4/dist/floating-ui.core.umd.min.js",
|
|
728
|
+
defer: true
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
url: "https://cdn.jsdelivr.net/npm/@floating-ui/dom@1.7.4/dist/floating-ui.dom.umd.min.js",
|
|
732
|
+
defer: true
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
url: "https://d1pnnwteuly8z3.cloudfront.net/libs/versoly-ui/2.3.0/versoly-ui.js",
|
|
736
|
+
delay: true
|
|
737
|
+
}
|
|
738
|
+
]
|
|
704
739
|
});
|
|
705
740
|
|
|
706
741
|
//#endregion
|
|
@@ -1007,6 +1042,7 @@ const plugins = {
|
|
|
1007
1042
|
countup: countup_default,
|
|
1008
1043
|
countdown: countdown_default,
|
|
1009
1044
|
"finisher-header": finisher_header_default,
|
|
1045
|
+
headroom: headroom_default,
|
|
1010
1046
|
taos: taos_default,
|
|
1011
1047
|
tailtip: tailtip_default,
|
|
1012
1048
|
"versoly-marquee": versoly_marquee_default,
|
package/package.json
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versoly/plugins",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "Plugins for Versoly",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
|
-
".": "./dist/index.
|
|
8
|
+
".": "./dist/index.mjs",
|
|
9
9
|
"./package.json": "./package.json"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
12
|
-
"module": "./dist/index.js",
|
|
13
|
-
"types": "./dist/index.d.ts",
|
|
11
|
+
"types": "./dist/index-Bq8k_GQ9.d.ts",
|
|
14
12
|
"files": [
|
|
15
13
|
"dist"
|
|
16
14
|
],
|
|
17
15
|
"scripts": {
|
|
18
16
|
"build": "tsdown",
|
|
17
|
+
"build:watch": "tsdown --watch",
|
|
18
|
+
"dev": "vite",
|
|
19
19
|
"cm": "cz",
|
|
20
20
|
"clean": "rimraf lib",
|
|
21
21
|
"lint": "eslint src",
|
|
22
22
|
"prepare": "is-ci || husky",
|
|
23
23
|
"semantic-release": "semantic-release",
|
|
24
24
|
"test": "vitest",
|
|
25
|
-
"coverage": "vitest run --coverage"
|
|
25
|
+
"coverage": "vitest run --coverage",
|
|
26
|
+
"prepack": "pnpm run build"
|
|
26
27
|
},
|
|
27
28
|
"repository": {
|
|
28
29
|
"type": "git",
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
"@semantic-release/npm": "^12.0.0",
|
|
56
57
|
"@semantic-release/release-notes-generator": "^12.1.0",
|
|
57
58
|
"@types/node": "^22.12.0",
|
|
58
|
-
"@vitest/coverage-v8": "^
|
|
59
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
59
60
|
"commitizen": "^4.3.0",
|
|
60
61
|
"cz-conventional-changelog": "^3.3.0",
|
|
61
62
|
"eslint": "npm:eslint-ts-patch@8.56.0-0",
|
|
@@ -66,10 +67,11 @@
|
|
|
66
67
|
"prettier": "^3.2.5",
|
|
67
68
|
"rimraf": "^5.0.5",
|
|
68
69
|
"semantic-release": "^23.0.5",
|
|
69
|
-
"tsdown": "^0.
|
|
70
|
+
"tsdown": "^0.20.3",
|
|
70
71
|
"type-fest": "^4.26.1",
|
|
71
72
|
"typescript": "^5.9.2",
|
|
72
|
-
"
|
|
73
|
+
"vite": "v8.0.0-beta.13",
|
|
74
|
+
"vitest": "^4.0.18"
|
|
73
75
|
},
|
|
74
76
|
"config": {
|
|
75
77
|
"commitizen": {
|
|
@@ -78,6 +80,5 @@
|
|
|
78
80
|
},
|
|
79
81
|
"publishConfig": {
|
|
80
82
|
"access": "public"
|
|
81
|
-
}
|
|
82
|
-
"packageManager": "pnpm@9.15.1+sha512.1acb565e6193efbebda772702950469150cf12bcc764262e7587e71d19dc98a423dff9536e57ea44c49bdf790ff694e83c27be5faa23d67e0c033b583be4bfcf"
|
|
83
|
+
}
|
|
83
84
|
}
|