aptechka 0.47.0 → 0.47.2
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/lib/billboard/BillboardBulletsElement.d.ts +10 -0
- package/lib/billboard/BillboardElement.d.ts +21 -0
- package/lib/billboard/index.cjs +1 -1
- package/lib/billboard/index.d.ts +2 -12
- package/lib/billboard/index.js +97 -38
- package/lib/device/Device.d.ts +0 -2
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +52 -60
- package/package.json +96 -96
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class BillboardBulletsElement extends HTMLElement {
|
|
2
|
+
#private;
|
|
3
|
+
protected connectedCallback(): void;
|
|
4
|
+
protected disconnectedCallback(): void;
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
interface HTMLElementTagNameMap {
|
|
8
|
+
'e-billboard-bullets': BillboardBulletsElement;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface BillboardEvents {
|
|
2
|
+
billboardChange: CustomEvent<{
|
|
3
|
+
counter: number;
|
|
4
|
+
}>;
|
|
5
|
+
}
|
|
6
|
+
export declare class BillboardElement extends HTMLElement {
|
|
7
|
+
#private;
|
|
8
|
+
get counter(): number;
|
|
9
|
+
get itemElements(): HTMLElement[];
|
|
10
|
+
set(value: number): void;
|
|
11
|
+
shift(value: number): void;
|
|
12
|
+
protected connectedCallback(): void;
|
|
13
|
+
protected disconnectedCallback(): void;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
'e-billboard': BillboardElement;
|
|
18
|
+
}
|
|
19
|
+
interface HTMLElementEventMap extends BillboardEvents {
|
|
20
|
+
}
|
|
21
|
+
}
|
package/lib/billboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var q=s=>{throw TypeError(s)};var I=(s,i,t)=>i.has(s)||q("Cannot "+t);var e=(s,i,t)=>(I(s,i,"read from private field"),t?t.call(s):i.get(s)),n=(s,i,t)=>i.has(s)?q("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(s):i.set(s,t),d=(s,i,t,r)=>(I(s,i,"write to private field"),r?r.call(s,t):i.set(s,t),t),k=(s,i,t)=>(I(s,i,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../index-Cqw2NKev.cjs"),T=require("../dom-JBOkFLTh.cjs"),w=require("../css-property/index.cjs"),M=require("../events-KVanG9sR.cjs"),P=require("../number-0243DApo.cjs");var b,u,m,o,h,v,E,g,y,p;class B extends HTMLElement{constructor(){super(...arguments);n(this,g);n(this,b,new w.CSSProperty(this,"--delay","2s"));n(this,u);n(this,m,!1);n(this,o,[]);n(this,h,0);n(this,v,t=>{d(this,m,t.isIntersecting),e(this,m)?e(this,E).call(this):clearInterval(e(this,u))});n(this,E,()=>{clearInterval(e(this,u)),e(this,m)&&d(this,u,setInterval(e(this,p),parseFloat(e(this,b).current||"0")*1e3))});n(this,p,()=>{k(this,g,y).call(this,e(this,h)+1)})}get counter(){return e(this,h)}get itemElements(){return e(this,o)}set(t){k(this,g,y).call(this,t),e(this,E).call(this)}shift(t){this.set(e(this,h)+t)}connectedCallback(){var t;d(this,o,[...this.querySelectorAll("[data-billboard-item]")]),(t=e(this,o)[0])==null||t.classList.add("current"),e(this,b).subscribe(()=>{e(this,E).call(this)}),e(this,b).observe(),x.intersector.subscribe(this,e(this,v))}disconnectedCallback(){e(this,b).unobserve(),x.intersector.unsubscribe(e(this,v)),clearInterval(e(this,u))}}b=new WeakMap,u=new WeakMap,m=new WeakMap,o=new WeakMap,h=new WeakMap,v=new WeakMap,E=new WeakMap,g=new WeakSet,y=function(t){d(this,h,P.loopNumber(t,e(this,o).length)),e(this,o).forEach((r,c)=>{c===e(this,h)?r.classList.add("current"):r.classList.remove("current")}),M.dispatchEvent(this,"billboardChange",{detail:{counter:e(this,h)}})},p=new WeakMap;customElements.get("e-billboard")||customElements.define("e-billboard",B);var l,a,L,f;class S extends HTMLElement{constructor(){super(...arguments);n(this,l,null);n(this,a,[]);n(this,L,t=>{const r=t.currentTarget,c=e(this,a).findIndex(C=>C===r);c>=0&&e(this,l).set(c)});n(this,f,()=>{e(this,a).forEach((t,r)=>{r===e(this,l).counter?t.classList.add("current"):t.classList.remove("current")})})}connectedCallback(){d(this,l,T.findParentElement(this,B)),e(this,l)&&customElements.whenDefined("e-billboard").then(()=>{var t;if(this.isConnected){const r=e(this,l).itemElements.length;for(let c=0;c<r;c++){const C=document.createElement("button");e(this,a).push(C),this.appendChild(C)}e(this,a).forEach(c=>{c.addEventListener("click",e(this,L))}),(t=e(this,l))==null||t.addEventListener("billboardChange",e(this,f)),e(this,f).call(this)}})}disconnectedCallback(){var t;e(this,a).forEach(r=>{r.removeEventListener("click",e(this,L))}),(t=e(this,l))==null||t.removeEventListener("billboardChange",e(this,f)),this.innerHTML="",d(this,a,[])}}l=new WeakMap,a=new WeakMap,L=new WeakMap,f=new WeakMap;x.isBrowser&&!customElements.get("e-billboard-bullets")&&customElements.define("e-billboard-bullets",S);exports.BillboardBulletsElement=S;exports.BillboardElement=B;
|
package/lib/billboard/index.d.ts
CHANGED
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
set(value: number): void;
|
|
4
|
-
shift(value: number): void;
|
|
5
|
-
protected connectedCallback(): void;
|
|
6
|
-
protected disconnectedCallback(): void;
|
|
7
|
-
}
|
|
8
|
-
declare global {
|
|
9
|
-
interface HTMLElementTagNameMap {
|
|
10
|
-
'e-billboard': BillboardElement;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
1
|
+
export { BillboardBulletsElement } from './BillboardBulletsElement';
|
|
2
|
+
export { BillboardElement, type BillboardEvents } from './BillboardElement';
|
package/lib/billboard/index.js
CHANGED
|
@@ -1,58 +1,117 @@
|
|
|
1
|
-
var
|
|
1
|
+
var w = (s) => {
|
|
2
2
|
throw TypeError(s);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
var I = (s, i, e) => i.has(s) || w("Cannot " + e);
|
|
5
|
+
var t = (s, i, e) => (I(s, i, "read from private field"), e ? e.call(s) : i.get(s)), n = (s, i, e) => i.has(s) ? w("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, e), d = (s, i, e, r) => (I(s, i, "write to private field"), r ? r.call(s, e) : i.set(s, e), e), k = (s, i, e) => (I(s, i, "access private method"), e);
|
|
6
|
+
import { a as y, i as S } from "../index-euf5anj6.js";
|
|
7
|
+
import { b as T } from "../dom-CVWzyXPH.js";
|
|
8
|
+
import { CSSProperty as H } from "../css-property/index.js";
|
|
9
|
+
import { d as M } from "../events-CsVF98U6.js";
|
|
10
|
+
import { l as A } from "../number-DwCxt_Ck.js";
|
|
11
|
+
var b, m, u, o, a, v, f, p, x, C;
|
|
12
|
+
class B extends HTMLElement {
|
|
11
13
|
constructor() {
|
|
12
14
|
super(...arguments);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
n(this, p);
|
|
16
|
+
n(this, b, new H(this, "--delay", "2s"));
|
|
17
|
+
n(this, m);
|
|
18
|
+
n(this, u, !1);
|
|
19
|
+
n(this, o, []);
|
|
20
|
+
n(this, a, 0);
|
|
21
|
+
n(this, v, (e) => {
|
|
22
|
+
d(this, u, e.isIntersecting), t(this, u) ? t(this, f).call(this) : clearInterval(t(this, m));
|
|
21
23
|
});
|
|
22
|
-
|
|
23
|
-
clearInterval(
|
|
24
|
-
|
|
25
|
-
parseFloat(
|
|
24
|
+
n(this, f, () => {
|
|
25
|
+
clearInterval(t(this, m)), t(this, u) && d(this, m, setInterval(
|
|
26
|
+
t(this, C),
|
|
27
|
+
parseFloat(t(this, b).current || "0") * 1e3
|
|
26
28
|
));
|
|
27
29
|
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
n(this, C, () => {
|
|
31
|
+
k(this, p, x).call(this, t(this, a) + 1);
|
|
30
32
|
});
|
|
31
33
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
get counter() {
|
|
35
|
+
return t(this, a);
|
|
34
36
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
get itemElements() {
|
|
38
|
+
return t(this, o);
|
|
39
|
+
}
|
|
40
|
+
set(e) {
|
|
41
|
+
k(this, p, x).call(this, e), t(this, f).call(this);
|
|
42
|
+
}
|
|
43
|
+
shift(e) {
|
|
44
|
+
this.set(t(this, a) + e);
|
|
37
45
|
}
|
|
38
46
|
connectedCallback() {
|
|
39
|
-
var
|
|
40
|
-
|
|
47
|
+
var e;
|
|
48
|
+
d(this, o, [
|
|
41
49
|
...this.querySelectorAll("[data-billboard-item]")
|
|
42
|
-
]), (
|
|
43
|
-
|
|
44
|
-
}),
|
|
50
|
+
]), (e = t(this, o)[0]) == null || e.classList.add("current"), t(this, b).subscribe(() => {
|
|
51
|
+
t(this, f).call(this);
|
|
52
|
+
}), t(this, b).observe(), y.subscribe(this, t(this, v));
|
|
45
53
|
}
|
|
46
54
|
disconnectedCallback() {
|
|
47
|
-
|
|
55
|
+
t(this, b).unobserve(), y.unsubscribe(t(this, v)), clearInterval(t(this, m));
|
|
48
56
|
}
|
|
49
57
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
b = new WeakMap(), m = new WeakMap(), u = new WeakMap(), o = new WeakMap(), a = new WeakMap(), v = new WeakMap(), f = new WeakMap(), p = new WeakSet(), x = function(e) {
|
|
59
|
+
d(this, a, A(e, t(this, o).length)), t(this, o).forEach((r, h) => {
|
|
60
|
+
h === t(this, a) ? r.classList.add("current") : r.classList.remove("current");
|
|
61
|
+
}), M(this, "billboardChange", {
|
|
62
|
+
detail: {
|
|
63
|
+
counter: t(this, a)
|
|
64
|
+
}
|
|
53
65
|
});
|
|
54
|
-
},
|
|
55
|
-
customElements.get("e-billboard") || customElements.define("e-billboard",
|
|
66
|
+
}, C = new WeakMap();
|
|
67
|
+
customElements.get("e-billboard") || customElements.define("e-billboard", B);
|
|
68
|
+
var l, c, L, E;
|
|
69
|
+
class P extends HTMLElement {
|
|
70
|
+
constructor() {
|
|
71
|
+
super(...arguments);
|
|
72
|
+
n(this, l, null);
|
|
73
|
+
n(this, c, []);
|
|
74
|
+
n(this, L, (e) => {
|
|
75
|
+
const r = e.currentTarget, h = t(this, c).findIndex((g) => g === r);
|
|
76
|
+
h >= 0 && t(this, l).set(h);
|
|
77
|
+
});
|
|
78
|
+
n(this, E, () => {
|
|
79
|
+
t(this, c).forEach((e, r) => {
|
|
80
|
+
r === t(this, l).counter ? e.classList.add("current") : e.classList.remove("current");
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
connectedCallback() {
|
|
85
|
+
d(this, l, T(this, B)), t(this, l) && customElements.whenDefined("e-billboard").then(() => {
|
|
86
|
+
var e;
|
|
87
|
+
if (this.isConnected) {
|
|
88
|
+
const r = t(this, l).itemElements.length;
|
|
89
|
+
for (let h = 0; h < r; h++) {
|
|
90
|
+
const g = document.createElement("button");
|
|
91
|
+
t(this, c).push(g), this.appendChild(g);
|
|
92
|
+
}
|
|
93
|
+
t(this, c).forEach((h) => {
|
|
94
|
+
h.addEventListener("click", t(this, L));
|
|
95
|
+
}), (e = t(this, l)) == null || e.addEventListener(
|
|
96
|
+
"billboardChange",
|
|
97
|
+
t(this, E)
|
|
98
|
+
), t(this, E).call(this);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
disconnectedCallback() {
|
|
103
|
+
var e;
|
|
104
|
+
t(this, c).forEach((r) => {
|
|
105
|
+
r.removeEventListener("click", t(this, L));
|
|
106
|
+
}), (e = t(this, l)) == null || e.removeEventListener(
|
|
107
|
+
"billboardChange",
|
|
108
|
+
t(this, E)
|
|
109
|
+
), this.innerHTML = "", d(this, c, []);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
l = new WeakMap(), c = new WeakMap(), L = new WeakMap(), E = new WeakMap();
|
|
113
|
+
S && !customElements.get("e-billboard-bullets") && customElements.define("e-billboard-bullets", P);
|
|
56
114
|
export {
|
|
57
|
-
|
|
115
|
+
P as BillboardBulletsElement,
|
|
116
|
+
B as BillboardElement
|
|
58
117
|
};
|
package/lib/device/Device.d.ts
CHANGED
package/lib/device/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var v=t=>{throw TypeError(t)};var E=(t,i,n)=>i.has(t)||v("Cannot "+n);var s=(t,i,n)=>(E(t,i,"read from private field"),n?n.call(t):i.get(t)),o=(t,i,n)=>i.has(t)?v("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(t):i.set(t,n),e=(t,i,n,b)=>(E(t,i,"write to private field"),b?b.call(t,n):i.set(t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("../order/index.cjs"),S=require("../window-resizer/index.cjs"),W=require("../index-Cqw2NKev.cjs"),R=require("../Store-DRp_K37w.cjs");var r,d,a,l,m,c;class D{constructor(){o(this,r);o(this,d);o(this,a);o(this,l);o(this,m);o(this,c);var i,n;if(e(this,r,"unknown"),e(this,d,!1),e(this,a,!1),e(this,l,!1),e(this,m,!1),e(this,c,!1),this.resize=()=>{e(this,d,/Mobi|Android/i.test(navigator.userAgent)),e(this,a,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{e(this,a,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},W.isBrowser){this.resize(),S.windowResizer.subscribe(this.resize,P.RESIZE_ORDER.DEVICE);{const g=document.createElement("canvas"),f=g.getContext("webgl")||g.getContext("experimental-webgl");e(this,l,f&&f instanceof WebGLRenderingContext||!1)}{const g=document.createElement("canvas");g.getContext("2d")&&e(this,m,g.toDataURL("image/webp").indexOf("data:image/webp")==0)}const b=window.navigator.userAgent,p=((n=(i=window.navigator)==null?void 0:i.userAgentData)==null?void 0:n.platform)||window.navigator.platform,O=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],k=["Win32","Win64","Windows","WinCE"],C=["iPhone","iPad","iPod"];O.includes(p)?(e(this,r,"macOS"),e(this,c,!0)):C.includes(p)?(e(this,r,"iOS"),e(this,c,!0)):k.includes(p)?e(this,r,"Windows"):/Android/.test(b)?e(this,r,"Android"):/Linux/.test(p)?e(this,r,"Linux"):e(this,r,"unknown")}}get OS(){return s(this,r)}get isMobile(){return s(this,d)}get isTouch(){return s(this,a)}get isWebgl(){return s(this,l)}get isWebp(){return s(this,m)}get isApple(){return s(this,c)}}r=new WeakMap,d=new WeakMap,a=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap;const M=new D;var z=(t=>(t.mobile="600px",t.tablet="1024px",t.notebook="1280px",t.desktop="1281px",t))(z||{}),A=(t=>(t["<=mobile"]="(max-width: 600px)",t[">=mobile"]="(min-width: 601px)",t["<=tablet"]="(max-width: 1024px)",t[">=tablet"]="(min-width: 1025px)",t["<=notebook"]="(max-width: 1280px)",t[">=notebook"]="(min-width: 1281px)",t["<=desktop"]="(max-width: 1280px)",t[">=desktop"]="(min-width: 1281px)",t))(A||{}),u,w,x,h;class T{constructor(){o(this,u);o(this,w);o(this,x);o(this,h);e(this,u,0),e(this,w,0),e(this,x,0),e(this,h,new R.Store(void 0)),this.resize=()=>{e(this,u,document.documentElement.clientWidth),e(this,w,innerHeight),e(this,x,devicePixelRatio),matchMedia("(max-width: 600px)").matches?s(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?s(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?s(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(s(this,h).current="desktop")},W.isBrowser&&(this.resize(),S.windowResizer.subscribe(this.resize,P.RESIZE_ORDER.DEVICE))}get width(){return s(this,u)}get height(){return s(this,w)}get type(){return s(this,h)}get pixelRatio(){return s(this,x)}}u=new WeakMap,w=new WeakMap,x=new WeakMap,h=new WeakMap;const I=new T;exports.ViewportBreakpoints=z;exports.ViewportMediaRules=A;exports.device=M;exports.viewport=I;
|
package/lib/device/index.js
CHANGED
|
@@ -1,116 +1,108 @@
|
|
|
1
|
-
var
|
|
1
|
+
var v = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { RESIZE_ORDER as
|
|
7
|
-
import { windowResizer as
|
|
8
|
-
import { i as
|
|
9
|
-
import { S as
|
|
10
|
-
var h,
|
|
11
|
-
class
|
|
4
|
+
var E = (t, e, n) => e.has(t) || v("Cannot " + n);
|
|
5
|
+
var s = (t, e, n) => (E(t, e, "read from private field"), n ? n.call(t) : e.get(t)), o = (t, e, n) => e.has(t) ? v("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), i = (t, e, n, f) => (E(t, e, "write to private field"), f ? f.call(t, n) : e.set(t, n), n);
|
|
6
|
+
import { RESIZE_ORDER as P } from "../order/index.js";
|
|
7
|
+
import { windowResizer as W } from "../window-resizer/index.js";
|
|
8
|
+
import { i as A } from "../index-euf5anj6.js";
|
|
9
|
+
import { S as z } from "../Store-D2xCXENW.js";
|
|
10
|
+
var h, m, r, d, l, c;
|
|
11
|
+
class O {
|
|
12
12
|
constructor() {
|
|
13
13
|
o(this, h);
|
|
14
|
-
o(this, w);
|
|
15
|
-
o(this, f);
|
|
16
14
|
o(this, m);
|
|
17
|
-
o(this,
|
|
15
|
+
o(this, r);
|
|
18
16
|
o(this, d);
|
|
19
17
|
o(this, l);
|
|
20
18
|
o(this, c);
|
|
21
|
-
var
|
|
22
|
-
if (i(this, h, "unknown"), i(this,
|
|
23
|
-
i(this, m, /Mobi|Android/i.test(navigator.userAgent)), i(this,
|
|
24
|
-
i(this,
|
|
19
|
+
var e, n;
|
|
20
|
+
if (i(this, h, "unknown"), i(this, m, !1), i(this, r, !1), i(this, d, !1), i(this, l, !1), i(this, c, !1), this.resize = () => {
|
|
21
|
+
i(this, m, /Mobi|Android/i.test(navigator.userAgent)), i(this, r, "ontouchstart" in window || navigator.maxTouchPoints > 0), setTimeout(() => {
|
|
22
|
+
i(this, r, "ontouchstart" in window || navigator.maxTouchPoints > 0);
|
|
25
23
|
}, 0);
|
|
26
|
-
},
|
|
27
|
-
this.resize(),
|
|
24
|
+
}, A) {
|
|
25
|
+
this.resize(), W.subscribe(this.resize, P.DEVICE);
|
|
28
26
|
{
|
|
29
|
-
const
|
|
30
|
-
i(this, d,
|
|
27
|
+
const w = document.createElement("canvas"), b = w.getContext("webgl") || w.getContext("experimental-webgl");
|
|
28
|
+
i(this, d, b && b instanceof WebGLRenderingContext || !1);
|
|
31
29
|
}
|
|
32
30
|
{
|
|
33
|
-
const
|
|
34
|
-
|
|
31
|
+
const w = document.createElement("canvas");
|
|
32
|
+
w.getContext("2d") && i(this, l, w.toDataURL("image/webp").indexOf("data:image/webp") == 0);
|
|
35
33
|
}
|
|
36
|
-
const
|
|
34
|
+
const f = window.navigator.userAgent, p = ((n = (e = window.navigator) == null ? void 0 : e.userAgentData) == null ? void 0 : n.platform) || window.navigator.platform, C = [
|
|
37
35
|
"Macintosh",
|
|
38
36
|
"MacIntel",
|
|
39
37
|
"MacPPC",
|
|
40
38
|
"Mac68K",
|
|
41
39
|
"macOS"
|
|
42
|
-
],
|
|
43
|
-
|
|
40
|
+
], S = ["Win32", "Win64", "Windows", "WinCE"], k = ["iPhone", "iPad", "iPod"];
|
|
41
|
+
C.includes(p) ? (i(this, h, "macOS"), i(this, c, !0)) : k.includes(p) ? (i(this, h, "iOS"), i(this, c, !0)) : S.includes(p) ? i(this, h, "Windows") : /Android/.test(f) ? i(this, h, "Android") : /Linux/.test(p) ? i(this, h, "Linux") : i(this, h, "unknown");
|
|
44
42
|
}
|
|
45
43
|
}
|
|
46
44
|
get OS() {
|
|
47
|
-
return
|
|
48
|
-
}
|
|
49
|
-
get gpu() {
|
|
50
|
-
return e(this, w);
|
|
51
|
-
}
|
|
52
|
-
get gpuTier() {
|
|
53
|
-
return e(this, f);
|
|
45
|
+
return s(this, h);
|
|
54
46
|
}
|
|
55
47
|
get isMobile() {
|
|
56
|
-
return
|
|
48
|
+
return s(this, m);
|
|
57
49
|
}
|
|
58
50
|
get isTouch() {
|
|
59
|
-
return
|
|
51
|
+
return s(this, r);
|
|
60
52
|
}
|
|
61
53
|
get isWebgl() {
|
|
62
|
-
return
|
|
54
|
+
return s(this, d);
|
|
63
55
|
}
|
|
64
56
|
get isWebp() {
|
|
65
|
-
return
|
|
57
|
+
return s(this, l);
|
|
66
58
|
}
|
|
67
59
|
get isApple() {
|
|
68
|
-
return
|
|
60
|
+
return s(this, c);
|
|
69
61
|
}
|
|
70
62
|
}
|
|
71
|
-
h = new WeakMap(),
|
|
72
|
-
const
|
|
73
|
-
var
|
|
74
|
-
class
|
|
63
|
+
h = new WeakMap(), m = new WeakMap(), r = new WeakMap(), d = new WeakMap(), l = new WeakMap(), c = new WeakMap();
|
|
64
|
+
const H = new O();
|
|
65
|
+
var D = /* @__PURE__ */ ((t) => (t.mobile = "600px", t.tablet = "1024px", t.notebook = "1280px", t.desktop = "1281px", t))(D || {}), T = /* @__PURE__ */ ((t) => (t["<=mobile"] = "(max-width: 600px)", t[">=mobile"] = "(min-width: 601px)", t["<=tablet"] = "(max-width: 1024px)", t[">=tablet"] = "(min-width: 1025px)", t["<=notebook"] = "(max-width: 1280px)", t[">=notebook"] = "(min-width: 1281px)", t["<=desktop"] = "(max-width: 1280px)", t[">=desktop"] = "(min-width: 1281px)", t))(T || {}), u, x, g, a;
|
|
66
|
+
class I {
|
|
75
67
|
constructor() {
|
|
76
68
|
o(this, u);
|
|
77
|
-
o(this, g);
|
|
78
69
|
o(this, x);
|
|
79
|
-
o(this,
|
|
80
|
-
|
|
81
|
-
|
|
70
|
+
o(this, g);
|
|
71
|
+
o(this, a);
|
|
72
|
+
i(this, u, 0), i(this, x, 0), i(this, g, 0), i(this, a, new z(void 0)), this.resize = () => {
|
|
73
|
+
i(this, u, document.documentElement.clientWidth), i(this, x, innerHeight), i(this, g, devicePixelRatio), matchMedia(
|
|
82
74
|
"(max-width: 600px)"
|
|
83
75
|
/* <=mobile */
|
|
84
|
-
).matches ?
|
|
76
|
+
).matches ? s(this, a).current = "mobile" : matchMedia(
|
|
85
77
|
"(max-width: 1024px)"
|
|
86
78
|
/* <=tablet */
|
|
87
|
-
).matches ?
|
|
79
|
+
).matches ? s(this, a).current = "tablet" : matchMedia(
|
|
88
80
|
"(max-width: 1280px)"
|
|
89
81
|
/* <=notebook */
|
|
90
|
-
).matches ?
|
|
82
|
+
).matches ? s(this, a).current = "notebook" : matchMedia(
|
|
91
83
|
"(min-width: 1281px)"
|
|
92
84
|
/* >=desktop */
|
|
93
|
-
).matches && (
|
|
94
|
-
},
|
|
85
|
+
).matches && (s(this, a).current = "desktop");
|
|
86
|
+
}, A && (this.resize(), W.subscribe(this.resize, P.DEVICE));
|
|
95
87
|
}
|
|
96
88
|
get width() {
|
|
97
|
-
return
|
|
89
|
+
return s(this, u);
|
|
98
90
|
}
|
|
99
91
|
get height() {
|
|
100
|
-
return
|
|
92
|
+
return s(this, x);
|
|
101
93
|
}
|
|
102
94
|
get type() {
|
|
103
|
-
return
|
|
95
|
+
return s(this, a);
|
|
104
96
|
}
|
|
105
97
|
get pixelRatio() {
|
|
106
|
-
return
|
|
98
|
+
return s(this, g);
|
|
107
99
|
}
|
|
108
100
|
}
|
|
109
|
-
u = new WeakMap(),
|
|
110
|
-
const
|
|
101
|
+
u = new WeakMap(), x = new WeakMap(), g = new WeakMap(), a = new WeakMap();
|
|
102
|
+
const K = new I();
|
|
111
103
|
export {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
104
|
+
D as ViewportBreakpoints,
|
|
105
|
+
T as ViewportMediaRules,
|
|
106
|
+
H as device,
|
|
107
|
+
K as viewport
|
|
116
108
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aptechka",
|
|
3
|
-
"version": "0.47.
|
|
3
|
+
"version": "0.47.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/denisavitski/aptechka.git"
|
|
@@ -19,224 +19,224 @@
|
|
|
19
19
|
"type": "module",
|
|
20
20
|
"exports": {
|
|
21
21
|
"./accordion": {
|
|
22
|
+
"types": "./lib/accordion/index.d.ts",
|
|
22
23
|
"require": "./lib/accordion/index.cjs",
|
|
23
|
-
"default": "./lib/accordion/index.js"
|
|
24
|
-
"types": "./lib/accordion/index.d.ts"
|
|
24
|
+
"default": "./lib/accordion/index.js"
|
|
25
25
|
},
|
|
26
26
|
"./animation": {
|
|
27
|
+
"types": "./lib/animation/index.d.ts",
|
|
27
28
|
"require": "./lib/animation/index.cjs",
|
|
28
|
-
"default": "./lib/animation/index.js"
|
|
29
|
-
"types": "./lib/animation/index.d.ts"
|
|
29
|
+
"default": "./lib/animation/index.js"
|
|
30
30
|
},
|
|
31
31
|
"./attribute": {
|
|
32
|
+
"types": "./lib/attribute/index.d.ts",
|
|
32
33
|
"require": "./lib/attribute/index.cjs",
|
|
33
|
-
"default": "./lib/attribute/index.js"
|
|
34
|
-
"types": "./lib/attribute/index.d.ts"
|
|
34
|
+
"default": "./lib/attribute/index.js"
|
|
35
35
|
},
|
|
36
36
|
"./billboard": {
|
|
37
|
+
"types": "./lib/billboard/index.d.ts",
|
|
37
38
|
"require": "./lib/billboard/index.cjs",
|
|
38
|
-
"default": "./lib/billboard/index.js"
|
|
39
|
-
"types": "./lib/billboard/index.d.ts"
|
|
39
|
+
"default": "./lib/billboard/index.js"
|
|
40
40
|
},
|
|
41
41
|
"./canvas": {
|
|
42
|
+
"types": "./lib/canvas/index.d.ts",
|
|
42
43
|
"require": "./lib/canvas/index.cjs",
|
|
43
|
-
"default": "./lib/canvas/index.js"
|
|
44
|
-
"types": "./lib/canvas/index.d.ts"
|
|
44
|
+
"default": "./lib/canvas/index.js"
|
|
45
45
|
},
|
|
46
46
|
"./class-linked-status": {
|
|
47
|
+
"types": "./lib/class-linked-status/index.d.ts",
|
|
47
48
|
"require": "./lib/class-linked-status/index.cjs",
|
|
48
|
-
"default": "./lib/class-linked-status/index.js"
|
|
49
|
-
"types": "./lib/class-linked-status/index.d.ts"
|
|
49
|
+
"default": "./lib/class-linked-status/index.js"
|
|
50
50
|
},
|
|
51
51
|
"./connector": {
|
|
52
|
+
"types": "./lib/connector/index.d.ts",
|
|
52
53
|
"require": "./lib/connector/index.cjs",
|
|
53
|
-
"default": "./lib/connector/index.js"
|
|
54
|
-
"types": "./lib/connector/index.d.ts"
|
|
54
|
+
"default": "./lib/connector/index.js"
|
|
55
55
|
},
|
|
56
56
|
"./controls": {
|
|
57
|
+
"types": "./lib/controls/index.d.ts",
|
|
57
58
|
"require": "./lib/controls/index.cjs",
|
|
58
|
-
"default": "./lib/controls/index.js"
|
|
59
|
-
"types": "./lib/controls/index.d.ts"
|
|
59
|
+
"default": "./lib/controls/index.js"
|
|
60
60
|
},
|
|
61
61
|
"./css-property": {
|
|
62
|
+
"types": "./lib/css-property/index.d.ts",
|
|
62
63
|
"require": "./lib/css-property/index.cjs",
|
|
63
|
-
"default": "./lib/css-property/index.js"
|
|
64
|
-
"types": "./lib/css-property/index.d.ts"
|
|
64
|
+
"default": "./lib/css-property/index.js"
|
|
65
65
|
},
|
|
66
66
|
"./css-unit-parser": {
|
|
67
|
+
"types": "./lib/css-unit-parser/index.d.ts",
|
|
67
68
|
"require": "./lib/css-unit-parser/index.cjs",
|
|
68
|
-
"default": "./lib/css-unit-parser/index.js"
|
|
69
|
-
"types": "./lib/css-unit-parser/index.d.ts"
|
|
69
|
+
"default": "./lib/css-unit-parser/index.js"
|
|
70
70
|
},
|
|
71
71
|
"./css-value-parser": {
|
|
72
|
+
"types": "./lib/css-value-parser/index.d.ts",
|
|
72
73
|
"require": "./lib/css-value-parser/index.cjs",
|
|
73
|
-
"default": "./lib/css-value-parser/index.js"
|
|
74
|
-
"types": "./lib/css-value-parser/index.d.ts"
|
|
74
|
+
"default": "./lib/css-value-parser/index.js"
|
|
75
75
|
},
|
|
76
76
|
"./custom-scrollbar": {
|
|
77
|
+
"types": "./lib/custom-scrollbar/index.d.ts",
|
|
77
78
|
"require": "./lib/custom-scrollbar/index.cjs",
|
|
78
|
-
"default": "./lib/custom-scrollbar/index.js"
|
|
79
|
-
"types": "./lib/custom-scrollbar/index.d.ts"
|
|
79
|
+
"default": "./lib/custom-scrollbar/index.js"
|
|
80
80
|
},
|
|
81
81
|
"./dev": {
|
|
82
|
+
"types": "./lib/dev/index.d.ts",
|
|
82
83
|
"require": "./lib/dev/index.cjs",
|
|
83
|
-
"default": "./lib/dev/index.js"
|
|
84
|
-
"types": "./lib/dev/index.d.ts"
|
|
84
|
+
"default": "./lib/dev/index.js"
|
|
85
85
|
},
|
|
86
86
|
"./device": {
|
|
87
|
+
"types": "./lib/device/index.d.ts",
|
|
87
88
|
"require": "./lib/device/index.cjs",
|
|
88
|
-
"default": "./lib/device/index.js"
|
|
89
|
-
"types": "./lib/device/index.d.ts"
|
|
89
|
+
"default": "./lib/device/index.js"
|
|
90
90
|
},
|
|
91
91
|
"./element-resizer": {
|
|
92
|
+
"types": "./lib/element-resizer/index.d.ts",
|
|
92
93
|
"require": "./lib/element-resizer/index.cjs",
|
|
93
|
-
"default": "./lib/element-resizer/index.js"
|
|
94
|
-
"types": "./lib/element-resizer/index.d.ts"
|
|
94
|
+
"default": "./lib/element-resizer/index.js"
|
|
95
95
|
},
|
|
96
96
|
"./en3": {
|
|
97
|
+
"types": "./lib/en3/index.d.ts",
|
|
97
98
|
"require": "./lib/en3/index.cjs",
|
|
98
|
-
"default": "./lib/en3/index.js"
|
|
99
|
-
"types": "./lib/en3/index.d.ts"
|
|
99
|
+
"default": "./lib/en3/index.js"
|
|
100
100
|
},
|
|
101
101
|
"./iframe": {
|
|
102
|
+
"types": "./lib/iframe/index.d.ts",
|
|
102
103
|
"require": "./lib/iframe/index.cjs",
|
|
103
|
-
"default": "./lib/iframe/index.js"
|
|
104
|
-
"types": "./lib/iframe/index.d.ts"
|
|
104
|
+
"default": "./lib/iframe/index.js"
|
|
105
105
|
},
|
|
106
106
|
"./image": {
|
|
107
|
+
"types": "./lib/image/index.d.ts",
|
|
107
108
|
"require": "./lib/image/index.cjs",
|
|
108
|
-
"default": "./lib/image/index.js"
|
|
109
|
-
"types": "./lib/image/index.d.ts"
|
|
109
|
+
"default": "./lib/image/index.js"
|
|
110
110
|
},
|
|
111
111
|
"./intersector": {
|
|
112
|
+
"types": "./lib/intersector/index.d.ts",
|
|
112
113
|
"require": "./lib/intersector/index.cjs",
|
|
113
|
-
"default": "./lib/intersector/index.js"
|
|
114
|
-
"types": "./lib/intersector/index.d.ts"
|
|
114
|
+
"default": "./lib/intersector/index.js"
|
|
115
115
|
},
|
|
116
116
|
"./ladder": {
|
|
117
|
+
"types": "./lib/ladder/index.d.ts",
|
|
117
118
|
"require": "./lib/ladder/index.cjs",
|
|
118
|
-
"default": "./lib/ladder/index.js"
|
|
119
|
-
"types": "./lib/ladder/index.d.ts"
|
|
119
|
+
"default": "./lib/ladder/index.js"
|
|
120
120
|
},
|
|
121
121
|
"./layout-box": {
|
|
122
|
+
"types": "./lib/layout-box/index.d.ts",
|
|
122
123
|
"require": "./lib/layout-box/index.cjs",
|
|
123
|
-
"default": "./lib/layout-box/index.js"
|
|
124
|
-
"types": "./lib/layout-box/index.d.ts"
|
|
124
|
+
"default": "./lib/layout-box/index.js"
|
|
125
125
|
},
|
|
126
126
|
"./loading": {
|
|
127
|
+
"types": "./lib/loading/index.d.ts",
|
|
127
128
|
"require": "./lib/loading/index.cjs",
|
|
128
|
-
"default": "./lib/loading/index.js"
|
|
129
|
-
"types": "./lib/loading/index.d.ts"
|
|
129
|
+
"default": "./lib/loading/index.js"
|
|
130
130
|
},
|
|
131
131
|
"./masonry-layout": {
|
|
132
|
+
"types": "./lib/masonry-layout/index.d.ts",
|
|
132
133
|
"require": "./lib/masonry-layout/index.cjs",
|
|
133
|
-
"default": "./lib/masonry-layout/index.js"
|
|
134
|
-
"types": "./lib/masonry-layout/index.d.ts"
|
|
134
|
+
"default": "./lib/masonry-layout/index.js"
|
|
135
135
|
},
|
|
136
136
|
"./media": {
|
|
137
|
+
"types": "./lib/media/index.d.ts",
|
|
137
138
|
"require": "./lib/media/index.cjs",
|
|
138
|
-
"default": "./lib/media/index.js"
|
|
139
|
-
"types": "./lib/media/index.d.ts"
|
|
139
|
+
"default": "./lib/media/index.js"
|
|
140
140
|
},
|
|
141
141
|
"./morph": {
|
|
142
|
+
"types": "./lib/morph/index.d.ts",
|
|
142
143
|
"require": "./lib/morph/index.cjs",
|
|
143
|
-
"default": "./lib/morph/index.js"
|
|
144
|
-
"types": "./lib/morph/index.d.ts"
|
|
144
|
+
"default": "./lib/morph/index.js"
|
|
145
145
|
},
|
|
146
146
|
"./notifier": {
|
|
147
|
+
"types": "./lib/notifier/index.d.ts",
|
|
147
148
|
"require": "./lib/notifier/index.cjs",
|
|
148
|
-
"default": "./lib/notifier/index.js"
|
|
149
|
-
"types": "./lib/notifier/index.d.ts"
|
|
149
|
+
"default": "./lib/notifier/index.js"
|
|
150
150
|
},
|
|
151
151
|
"./order": {
|
|
152
|
+
"types": "./lib/order/index.d.ts",
|
|
152
153
|
"require": "./lib/order/index.cjs",
|
|
153
|
-
"default": "./lib/order/index.js"
|
|
154
|
-
"types": "./lib/order/index.d.ts"
|
|
154
|
+
"default": "./lib/order/index.js"
|
|
155
155
|
},
|
|
156
156
|
"./pointer": {
|
|
157
|
+
"types": "./lib/pointer/index.d.ts",
|
|
157
158
|
"require": "./lib/pointer/index.cjs",
|
|
158
|
-
"default": "./lib/pointer/index.js"
|
|
159
|
-
"types": "./lib/pointer/index.d.ts"
|
|
159
|
+
"default": "./lib/pointer/index.js"
|
|
160
160
|
},
|
|
161
161
|
"./popover": {
|
|
162
|
+
"types": "./lib/popover/index.d.ts",
|
|
162
163
|
"require": "./lib/popover/index.cjs",
|
|
163
|
-
"default": "./lib/popover/index.js"
|
|
164
|
-
"types": "./lib/popover/index.d.ts"
|
|
164
|
+
"default": "./lib/popover/index.js"
|
|
165
165
|
},
|
|
166
166
|
"./router": {
|
|
167
|
+
"types": "./lib/router/index.d.ts",
|
|
167
168
|
"require": "./lib/router/index.cjs",
|
|
168
|
-
"default": "./lib/router/index.js"
|
|
169
|
-
"types": "./lib/router/index.d.ts"
|
|
169
|
+
"default": "./lib/router/index.js"
|
|
170
170
|
},
|
|
171
171
|
"./scroll": {
|
|
172
|
+
"types": "./lib/scroll/index.d.ts",
|
|
172
173
|
"require": "./lib/scroll/index.cjs",
|
|
173
|
-
"default": "./lib/scroll/index.js"
|
|
174
|
-
"types": "./lib/scroll/index.d.ts"
|
|
174
|
+
"default": "./lib/scroll/index.js"
|
|
175
175
|
},
|
|
176
176
|
"./scroll-entries": {
|
|
177
|
+
"types": "./lib/scroll-entries/index.d.ts",
|
|
177
178
|
"require": "./lib/scroll-entries/index.cjs",
|
|
178
|
-
"default": "./lib/scroll-entries/index.js"
|
|
179
|
-
"types": "./lib/scroll-entries/index.d.ts"
|
|
179
|
+
"default": "./lib/scroll-entries/index.js"
|
|
180
180
|
},
|
|
181
181
|
"./scroll-segment": {
|
|
182
|
+
"types": "./lib/scroll-segment/index.d.ts",
|
|
182
183
|
"require": "./lib/scroll-segment/index.cjs",
|
|
183
|
-
"default": "./lib/scroll-segment/index.js"
|
|
184
|
-
"types": "./lib/scroll-segment/index.d.ts"
|
|
184
|
+
"default": "./lib/scroll-segment/index.js"
|
|
185
185
|
},
|
|
186
186
|
"./sequence": {
|
|
187
|
+
"types": "./lib/sequence/index.d.ts",
|
|
187
188
|
"require": "./lib/sequence/index.cjs",
|
|
188
|
-
"default": "./lib/sequence/index.js"
|
|
189
|
-
"types": "./lib/sequence/index.d.ts"
|
|
189
|
+
"default": "./lib/sequence/index.js"
|
|
190
190
|
},
|
|
191
191
|
"./size-element": {
|
|
192
|
+
"types": "./lib/size-element/index.d.ts",
|
|
192
193
|
"require": "./lib/size-element/index.cjs",
|
|
193
|
-
"default": "./lib/size-element/index.js"
|
|
194
|
-
"types": "./lib/size-element/index.d.ts"
|
|
194
|
+
"default": "./lib/size-element/index.js"
|
|
195
195
|
},
|
|
196
196
|
"./slicer": {
|
|
197
|
+
"types": "./lib/slicer/index.d.ts",
|
|
197
198
|
"require": "./lib/slicer/index.cjs",
|
|
198
|
-
"default": "./lib/slicer/index.js"
|
|
199
|
-
"types": "./lib/slicer/index.d.ts"
|
|
199
|
+
"default": "./lib/slicer/index.js"
|
|
200
200
|
},
|
|
201
201
|
"./source": {
|
|
202
|
+
"types": "./lib/source/index.d.ts",
|
|
202
203
|
"require": "./lib/source/index.cjs",
|
|
203
|
-
"default": "./lib/source/index.js"
|
|
204
|
-
"types": "./lib/source/index.d.ts"
|
|
204
|
+
"default": "./lib/source/index.js"
|
|
205
205
|
},
|
|
206
206
|
"./store": {
|
|
207
|
+
"types": "./lib/store/index.d.ts",
|
|
207
208
|
"require": "./lib/store/index.cjs",
|
|
208
|
-
"default": "./lib/store/index.js"
|
|
209
|
-
"types": "./lib/store/index.d.ts"
|
|
209
|
+
"default": "./lib/store/index.js"
|
|
210
210
|
},
|
|
211
211
|
"./ticker": {
|
|
212
|
+
"types": "./lib/ticker/index.d.ts",
|
|
212
213
|
"require": "./lib/ticker/index.cjs",
|
|
213
|
-
"default": "./lib/ticker/index.js"
|
|
214
|
-
"types": "./lib/ticker/index.d.ts"
|
|
214
|
+
"default": "./lib/ticker/index.js"
|
|
215
215
|
},
|
|
216
216
|
"./need_redo_tweaker": {
|
|
217
|
+
"types": "./lib/need_redo_tweaker/index.d.ts",
|
|
217
218
|
"require": "./lib/need_redo_tweaker/index.cjs",
|
|
218
|
-
"default": "./lib/need_redo_tweaker/index.js"
|
|
219
|
-
"types": "./lib/need_redo_tweaker/index.d.ts"
|
|
219
|
+
"default": "./lib/need_redo_tweaker/index.js"
|
|
220
220
|
},
|
|
221
221
|
"./utils": {
|
|
222
|
+
"types": "./lib/utils/index.d.ts",
|
|
222
223
|
"require": "./lib/utils/index.cjs",
|
|
223
|
-
"default": "./lib/utils/index.js"
|
|
224
|
-
"types": "./lib/utils/index.d.ts"
|
|
224
|
+
"default": "./lib/utils/index.js"
|
|
225
225
|
},
|
|
226
226
|
"./video": {
|
|
227
|
+
"types": "./lib/video/index.d.ts",
|
|
227
228
|
"require": "./lib/video/index.cjs",
|
|
228
|
-
"default": "./lib/video/index.js"
|
|
229
|
-
"types": "./lib/video/index.d.ts"
|
|
229
|
+
"default": "./lib/video/index.js"
|
|
230
230
|
},
|
|
231
231
|
"./window-resizer": {
|
|
232
|
+
"types": "./lib/window-resizer/index.d.ts",
|
|
232
233
|
"require": "./lib/window-resizer/index.cjs",
|
|
233
|
-
"default": "./lib/window-resizer/index.js"
|
|
234
|
-
"types": "./lib/window-resizer/index.d.ts"
|
|
234
|
+
"default": "./lib/window-resizer/index.js"
|
|
235
235
|
},
|
|
236
236
|
"./youtube": {
|
|
237
|
+
"types": "./lib/youtube/index.d.ts",
|
|
237
238
|
"require": "./lib/youtube/index.cjs",
|
|
238
|
-
"default": "./lib/youtube/index.js"
|
|
239
|
-
"types": "./lib/youtube/index.d.ts"
|
|
239
|
+
"default": "./lib/youtube/index.js"
|
|
240
240
|
}
|
|
241
241
|
},
|
|
242
242
|
"typesVersions": {
|
|
@@ -385,19 +385,19 @@
|
|
|
385
385
|
"dev": "vite --host --mode site"
|
|
386
386
|
},
|
|
387
387
|
"devDependencies": {
|
|
388
|
-
"@types/node": "^22.
|
|
389
|
-
"@types/three": "^0.
|
|
390
|
-
"tsx": "^4.19.
|
|
391
|
-
"vite": "^
|
|
392
|
-
"vite-plugin-dts": "^4.
|
|
388
|
+
"@types/node": "^22.10.1",
|
|
389
|
+
"@types/three": "^0.170.0",
|
|
390
|
+
"tsx": "^4.19.2",
|
|
391
|
+
"vite": "^6.0.1",
|
|
392
|
+
"vite-plugin-dts": "^4.3.0",
|
|
393
393
|
"vite-plugin-htmc": "0.1.15"
|
|
394
394
|
},
|
|
395
395
|
"dependencies": {
|
|
396
|
-
"three": "^0.
|
|
396
|
+
"three": "^0.170.0",
|
|
397
397
|
"urlpattern-polyfill": "^10.0.0"
|
|
398
398
|
},
|
|
399
399
|
"peerDependencies": {
|
|
400
|
-
"three": "^0.
|
|
400
|
+
"three": "^0.170.0",
|
|
401
401
|
"urlpattern-polyfill": "^10.0.0"
|
|
402
402
|
}
|
|
403
403
|
}
|