aptechka 0.82.6 → 0.83.1
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/Composed-C-TV9te3.cjs +1 -0
- package/lib/Composed-DyAWjEXE.js +121 -0
- package/lib/{LocalLinks-Baf0xWZ3.cjs → LocalLinks-BxhSFv_Q.cjs} +1 -1
- package/lib/{LocalLinks-Z9pxKguG.js → LocalLinks-DFZFpbjs.js} +2 -2
- package/lib/api-fetcher/index.cjs +1 -0
- package/lib/api-fetcher/index.d.ts +16 -0
- package/lib/api-fetcher/index.js +100 -0
- package/lib/jsx/h.d.ts +15 -0
- package/lib/jsx/hydrate.d.ts +1 -0
- package/lib/jsx/index.cjs +1 -1
- package/lib/jsx/index.d.ts +4 -1
- package/lib/jsx/index.js +312 -87
- package/lib/jsx/integrations/astro/client.cjs +1 -0
- package/lib/jsx/integrations/astro/client.d.ts +2 -0
- package/lib/jsx/integrations/astro/client.js +50 -0
- package/lib/jsx/integrations/astro/index.cjs +1 -0
- package/lib/jsx/integrations/astro/index.d.ts +2 -0
- package/lib/jsx/integrations/astro/index.js +54 -0
- package/lib/jsx/integrations/astro/server.cjs +1 -0
- package/lib/jsx/integrations/astro/server.d.ts +3 -0
- package/lib/jsx/integrations/astro/server.js +35 -0
- package/lib/jsx/plugins/vite.d.ts +21 -0
- package/lib/jsx/render.d.ts +1 -1
- package/lib/jsx/type.d.ts +190 -221
- package/lib/jsx/utils/children/createElement.d.ts +1 -0
- package/lib/jsx/utils/children/hydrateTextNode.d.ts +1 -0
- package/lib/local-links/index.cjs +1 -1
- package/lib/local-links/index.js +1 -1
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +72 -72
- package/lib/{morph-D_ybmXWR.js → morph-BQErz7qP.js} +8 -8
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +1 -1
- package/lib/render-DQs7rIoN.cjs +1 -0
- package/lib/render-D_0FCWEu.js +18 -0
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +3 -3
- package/lib/spa/index.cjs +1 -1
- package/lib/spa/index.js +3 -3
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +6 -7
- package/lib/url-CHgcNwJ1.cjs +1 -0
- package/lib/url-CYgo5vrG.js +113 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +45 -43
- package/lib/utils/polyfills.d.ts +1 -1
- package/lib/utils/url.d.ts +6 -0
- package/lib/vite-C-i3hVDL.js +75 -0
- package/lib/vite-DzanPumM.cjs +44 -0
- package/package.json +40 -7
- package/lib/Composed-C-mnUGX6.js +0 -70
- package/lib/Composed-RFcm2x5c.cjs +0 -1
- package/lib/DerivedArray-DdCR-Oy7.cjs +0 -1
- package/lib/DerivedArray-opbeygTL.js +0 -59
- package/lib/jsx/plugins/hmr.d.ts +0 -13
- package/lib/render-1u700s93.js +0 -212
- package/lib/render-BIOfUddT.cjs +0 -1
- package/lib/url-CPgw9bd5.cjs +0 -1
- package/lib/url-DAl-mgbC.js +0 -97
package/lib/spa/index.js
CHANGED
|
@@ -41,14 +41,14 @@ var I = (i, e, t) => new Promise((l, m) => {
|
|
|
41
41
|
});
|
|
42
42
|
import { Cache as J } from "../cache/index.js";
|
|
43
43
|
import { History as K } from "../history/index.js";
|
|
44
|
-
import { L as N } from "../LocalLinks-
|
|
44
|
+
import { L as N } from "../LocalLinks-DFZFpbjs.js";
|
|
45
45
|
import { P as Q } from "../PageAnnouncerElement-0LxZjtVH.js";
|
|
46
46
|
import { P as W } from "../PageScroll-0LxFblry.js";
|
|
47
47
|
import { d as V } from "../events-CsVF98U6.js";
|
|
48
|
-
import { m as F } from "../morph-
|
|
48
|
+
import { m as F } from "../morph-BQErz7qP.js";
|
|
49
49
|
import "construct-style-sheets-polyfill";
|
|
50
50
|
import "../index-e9eDuagL.js";
|
|
51
|
-
import { a as Y, n as Z, b as _ } from "../url-
|
|
51
|
+
import { a as Y, n as Z, b as _ } from "../url-CYgo5vrG.js";
|
|
52
52
|
var P, k, r, o, S, w, v, b;
|
|
53
53
|
const y = class y {
|
|
54
54
|
constructor(e) {
|
package/lib/store/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../Store-Blf4msDz.cjs"),e=require("../Composed-C-TV9te3.cjs");exports.Store=r.Store;exports.activeStores=r.activeStores;exports.storeRegistry=r.storeRegistry;exports.Composed=e.Composed;exports.Derived=e.Derived;exports.DerivedArray=e.DerivedArray;exports.Resource=e.Resource;
|
package/lib/store/index.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { S as s, a
|
|
2
|
-
import { C as i, D as m, R as p } from "../Composed-
|
|
3
|
-
import { D as d } from "../DerivedArray-opbeygTL.js";
|
|
1
|
+
import { S as s, a, s as o } from "../Store-ZThXYBQd.js";
|
|
2
|
+
import { C as i, D as d, a as m, R as p } from "../Composed-DyAWjEXE.js";
|
|
4
3
|
export {
|
|
5
4
|
i as Composed,
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
d as Derived,
|
|
6
|
+
m as DerivedArray,
|
|
8
7
|
p as Resource,
|
|
9
8
|
s as Store,
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
a as activeStores,
|
|
10
|
+
o as storeRegistry
|
|
12
11
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var U=Object.defineProperty,y=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var m=(t,e,r)=>e in t?U(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e||(e={}))$.call(e,r)&&m(t,r,e[r]);if(p)for(var r of p(e))W.call(e,r)&&m(t,r,e[r]);return t},g=(t,e)=>y(t,w(e));function j(t,{base:e="",trailingSlash:r=!1,mergeParams:n,removeParams:s}={}){e=e.endsWith("/")?e.slice(0,-1):e,t=t.replace(e,""),t.startsWith("/")&&(t=t.slice(1));const i=t.split("#"),l=i[0].split("?");let a=l[0].startsWith("/")?l[0]:"/"+l[0];r?a=!a.endsWith("/")&&a!=="/"?a+"/":a:a=a.endsWith("/")&&a!=="/"?a.slice(0,-1):a;let c=l[1]||"";if(n){const o=new URLSearchParams(c),P=new URLSearchParams(n);for(const[h,R]of P)o.has(h)||o.set(h,R);s==null||s.split(",").forEach(h=>{o.has(h)&&o.delete(h)}),c=o.toString()}const u=e+a,f=i[1],L=`${u}${c?"?"+c:""}${f?"#"+f:""}`;return{leaf:a,pathname:u,parameters:c,hash:f,path:L}}function z(t="/"){return t.endsWith("/")||(t+="/"),t.startsWith("/")||(t+="/"),t}function O(t){if(t.action==="none")return;const e=t==null?void 0:t.searchParameters,r=t.hash?t.hash.startsWith("#")?t.hash:"#"+t.hash:"",n=e?e.startsWith("?")?e:"?"+e:"",s=`${t.pathname}${n}${r}`,i=g(S({},t.state),{path:s});t.action==="push"?history.pushState(i,"",s):t.action==="replace"&&history.replaceState(i,"",s)}function A(t){const e=new URLSearchParams(t),r={};for(const[n,s]of e)r[n]=s;return r}function k(t,e){const r=new URL(location.href),n=(e==null?void 0:e.toString())||"";r.searchParams.set(t,n),history.replaceState(history.state,"",r.href)}function d(t,e,r){t.setAttribute(e,new URL(t.getAttribute(e),r).pathname)}function T(t,e){t.querySelectorAll('[href^="./"], [href^="../"]').forEach(r=>d(r,"href",e)),t.querySelectorAll('[src^="./"], [src^="../"]').forEach(r=>d(r,"src",e))}function E(t,{base:e="",trailingSlash:r=!1}={}){e=e.replace(/^\/|\/$/g,"");const n=typeof t=="string"?t.replace(/^\/|\/$/g,""):t.pathname.replace(/^\/|\/$/g,"");let s="";return n.includes(e)?s=`/${n}`:s=`${e}/${n}`,r&&!s.endsWith("/")&&(s+="/"),new URL(s,location.origin)}function q(t){try{const e=new URL(t);if(window.location.origin===e.origin)return e.pathname===window.location.pathname?!e.hash:!0}catch(e){}return!1}function B(t){if(!t)return"";const e=new URLSearchParams;for(const[r,n]of Object.entries(t))n!=null&&n!==!1&&n!==""&&e.append(r,String(n));return e.toString()}function H(t){const e={};for(const[r,n]of t.entries())n!=null&&(e[r]=n);return e}exports.changeHistory=O;exports.isLocalUrl=q;exports.normalizeBase=z;exports.normalizeRelativeURLs=T;exports.normalizeURL=E;exports.parseSearchParameters=A;exports.searchParamsObjectToString=B;exports.searchParamsToObject=H;exports.splitPath=j;exports.updateSearchParameter=k;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
var R = Object.defineProperty, U = Object.defineProperties;
|
|
2
|
+
var $ = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var p = Object.getOwnPropertySymbols;
|
|
4
|
+
var P = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var S = (t, e, n) => e in t ? R(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, g = (t, e) => {
|
|
6
|
+
for (var n in e || (e = {}))
|
|
7
|
+
P.call(e, n) && S(t, n, e[n]);
|
|
8
|
+
if (p)
|
|
9
|
+
for (var n of p(e))
|
|
10
|
+
W.call(e, n) && S(t, n, e[n]);
|
|
11
|
+
return t;
|
|
12
|
+
}, d = (t, e) => U(t, $(e));
|
|
13
|
+
function k(t, {
|
|
14
|
+
base: e = "",
|
|
15
|
+
trailingSlash: n = !1,
|
|
16
|
+
mergeParams: s,
|
|
17
|
+
removeParams: r
|
|
18
|
+
} = {}) {
|
|
19
|
+
e = e.endsWith("/") ? e.slice(0, -1) : e, t = t.replace(e, ""), t.startsWith("/") && (t = t.slice(1));
|
|
20
|
+
const i = t.split("#"), f = i[0].split("?");
|
|
21
|
+
let a = f[0].startsWith("/") ? f[0] : "/" + f[0];
|
|
22
|
+
n ? a = !a.endsWith("/") && a !== "/" ? a + "/" : a : a = a.endsWith("/") && a !== "/" ? a.slice(0, -1) : a;
|
|
23
|
+
let o = f[1] || "";
|
|
24
|
+
if (s) {
|
|
25
|
+
const c = new URLSearchParams(o), w = new URLSearchParams(s);
|
|
26
|
+
for (const [h, L] of w)
|
|
27
|
+
c.has(h) || c.set(h, L);
|
|
28
|
+
r == null || r.split(",").forEach((h) => {
|
|
29
|
+
c.has(h) && c.delete(h);
|
|
30
|
+
}), o = c.toString();
|
|
31
|
+
}
|
|
32
|
+
const u = e + a, l = i[1], y = `${u}${o ? "?" + o : ""}${l ? "#" + l : ""}`;
|
|
33
|
+
return {
|
|
34
|
+
leaf: a,
|
|
35
|
+
pathname: u,
|
|
36
|
+
parameters: o,
|
|
37
|
+
hash: l,
|
|
38
|
+
path: y
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function O(t = "/") {
|
|
42
|
+
return t.endsWith("/") || (t += "/"), t.startsWith("/") || (t += "/"), t;
|
|
43
|
+
}
|
|
44
|
+
function z(t) {
|
|
45
|
+
if (t.action === "none")
|
|
46
|
+
return;
|
|
47
|
+
const e = t == null ? void 0 : t.searchParameters, n = t.hash ? t.hash.startsWith("#") ? t.hash : "#" + t.hash : "", s = e ? e.startsWith("?") ? e : "?" + e : "", r = `${t.pathname}${s}${n}`, i = d(g({}, t.state), { path: r });
|
|
48
|
+
t.action === "push" ? history.pushState(i, "", r) : t.action === "replace" && history.replaceState(i, "", r);
|
|
49
|
+
}
|
|
50
|
+
function E(t) {
|
|
51
|
+
const e = new URLSearchParams(t), n = {};
|
|
52
|
+
for (const [s, r] of e)
|
|
53
|
+
n[s] = r;
|
|
54
|
+
return n;
|
|
55
|
+
}
|
|
56
|
+
function q(t, e) {
|
|
57
|
+
const n = new URL(location.href), s = (e == null ? void 0 : e.toString()) || "";
|
|
58
|
+
n.searchParams.set(t, s), history.replaceState(history.state, "", n.href);
|
|
59
|
+
}
|
|
60
|
+
function m(t, e, n) {
|
|
61
|
+
t.setAttribute(e, new URL(t.getAttribute(e), n).pathname);
|
|
62
|
+
}
|
|
63
|
+
function x(t, e) {
|
|
64
|
+
t.querySelectorAll('[href^="./"], [href^="../"]').forEach(
|
|
65
|
+
(n) => m(n, "href", e)
|
|
66
|
+
), t.querySelectorAll('[src^="./"], [src^="../"]').forEach(
|
|
67
|
+
(n) => m(n, "src", e)
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
function T(t, {
|
|
71
|
+
base: e = "",
|
|
72
|
+
trailingSlash: n = !1
|
|
73
|
+
} = {}) {
|
|
74
|
+
e = e.replace(/^\/|\/$/g, "");
|
|
75
|
+
const s = typeof t == "string" ? t.replace(/^\/|\/$/g, "") : t.pathname.replace(/^\/|\/$/g, "");
|
|
76
|
+
let r = "";
|
|
77
|
+
return s.includes(e) ? r = `/${s}` : r = `${e}/${s}`, n && !r.endsWith("/") && (r += "/"), new URL(r, location.origin);
|
|
78
|
+
}
|
|
79
|
+
function B(t) {
|
|
80
|
+
try {
|
|
81
|
+
const e = new URL(t);
|
|
82
|
+
if (window.location.origin === e.origin)
|
|
83
|
+
return e.pathname === window.location.pathname ? !e.hash : !0;
|
|
84
|
+
} catch (e) {
|
|
85
|
+
}
|
|
86
|
+
return !1;
|
|
87
|
+
}
|
|
88
|
+
function H(t) {
|
|
89
|
+
if (!t)
|
|
90
|
+
return "";
|
|
91
|
+
const e = new URLSearchParams();
|
|
92
|
+
for (const [n, s] of Object.entries(t))
|
|
93
|
+
s != null && s !== !1 && s !== "" && e.append(n, String(s));
|
|
94
|
+
return e.toString();
|
|
95
|
+
}
|
|
96
|
+
function C(t) {
|
|
97
|
+
const e = {};
|
|
98
|
+
for (const [n, s] of t.entries())
|
|
99
|
+
s != null && (e[n] = s);
|
|
100
|
+
return e;
|
|
101
|
+
}
|
|
102
|
+
export {
|
|
103
|
+
O as a,
|
|
104
|
+
x as b,
|
|
105
|
+
z as c,
|
|
106
|
+
k as d,
|
|
107
|
+
C as e,
|
|
108
|
+
B as i,
|
|
109
|
+
T as n,
|
|
110
|
+
E as p,
|
|
111
|
+
H as s,
|
|
112
|
+
q as u
|
|
113
|
+
};
|
package/lib/utils/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("../attributes-Bf2svn4j.cjs"),y=require("../index-OE2INULi.cjs"),C=require("../canvas-CU5Xjahf.cjs"),b=require("../coordinates-D8Np3cPD.cjs"),v=require("../custom-elements-Dh4TWRDJ.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("../attributes-Bf2svn4j.cjs"),y=require("../index-OE2INULi.cjs"),C=require("../canvas-CU5Xjahf.cjs"),b=require("../coordinates-D8Np3cPD.cjs"),v=require("../custom-elements-Dh4TWRDJ.cjs"),d=require("../dom-CBLlqORw.cjs"),s=require("../easings-GegIwET5.cjs"),D=require("../element-yhcBhsho.cjs"),q=require("../events-KVanG9sR.cjs"),P=require("../file-DSpfWdd9.cjs"),N=require("../function-MthRj-GJ.cjs"),w=require("../gestures-C7gbKx11.cjs"),S=require("../stylesheet-5_o7PFzM.cjs"),O=require("../layout-Ctc2p3uz.cjs"),l=require("../math-GDWEqu7y.cjs"),M=require("../metadata-BcYZ5w3T.cjs"),a=require("../morph-B6sGhLCi.cjs"),p=require("../number-ChAm68cm.cjs"),m=require("../object-baN9pgbU.cjs"),A=require("../polyfills-Df4r-ETT.cjs"),x=require("../scroll-BA2WnUrb.cjs"),c=require("../string-DUXXtU8v.cjs"),R=require("../style-At6aDoqG.cjs"),u=require("../url-CHgcNwJ1.cjs");function Q(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function B(t,e){const n=t.length;e=e%n;const r=new Array(n);for(let o=0;o<n;o++){const i=(o+e)%n;r[i]=t[o]}return r}function U(t,e=2){if(!+t)return"0 Bytes";const n=1024,r=e<0?0:e,o=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,i)).toFixed(r))} ${o[i]}`}function z(t){if(navigator.clipboard)navigator.clipboard.writeText(t).then(()=>{console.log("Text copied to clipboard successfully!")}).catch(e=>{console.error("Failed to copy text to clipboard:",e)});else{const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.top="0",e.style.left="0",document.body.appendChild(e),e.select();try{document.execCommand("copy")?console.log("Text copied to clipboard successfully!"):console.error("Failed to copy text to clipboard.")}catch(n){console.error("Failed to copy text to clipboard:",n)}document.body.removeChild(e)}}function V(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function j(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function L(t,e){let n=!1;const{x:r,y:o}=t;for(let i=0,E=e.length-1;i<e.length;E=i++){const T=e[i].x,f=e[i].y,h=e[E].x,g=e[E].y;f>o!=g>o&&r<(h-T)*(o-f)/(g-f)+T&&(n=!n)}return n}function _(t,e){const n=t.style.getPropertyValue(e);if(n){const r=n.toString();return r.startsWith("var")?_(t,r.slice(4,-1)):r}}function Y(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(r=>{r instanceof CSSStyleRule&&r.selectorText===":root"&&t.forEach(o=>{const i=_(r,o);i&&(e[o]=i)})})}),t.forEach(n=>{e[n]||console.warn(`variable named ${n} not found`)}),e}function k(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function F(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}const $=/^(\+?\d{1,3}[-.\s]?)?(\(?\d{3}\)?[-.\s]?)?\d{1,4}[-.\s]?\d{2,4}[-.\s]?\d{2,4}$/,H=/^[\w.-]+@[a-zA-Z\d.-]+\.[a-zA-Z]{2,}$/;function K(t){let e,n;return H.test(t)?(e=`mailto:${t.trim()}`,n="email"):$.test(t)&&(e=`tel:${t.replace(/[^0-9\\.\\+]+/g,"")}`,n="phone"),{href:e,type:n,contact:t}}function W(t,e){if(t){const r=t.content.cloneNode(!0).firstElementChild;return r&&(e==null||e(r)),r}return null}function Z(t,e,n,r){let o,i=!1,E=0;const T=()=>{clearInterval(o),r!=null&&r.restartCounter&&(E=0),i&&(o=setInterval(()=>{n(E++)},e))},f=y.intersector.subscribe(t,h=>{i=h.isIntersecting,T()});return()=>{f(),clearInterval(o)}}exports.parseAttribute=I.parseAttribute;exports.parseAttributeValue=I.parseAttributeValue;exports.isBrowser=y.isBrowser;exports.contain=C.contain;exports.cover=C.cover;exports.fixPosition=C.fixPosition;exports.measureText=C.measureText;exports.getPointerPosition=b.getPointerPosition;exports.normalize=b.normalize;exports.screenToCartesian=b.screenToCartesian;exports.whenDefined=v.whenDefined;exports.createScriptElement=d.createScriptElement;exports.excludeElements=d.excludeElements;exports.findParentElement=d.findParentElement;exports.findScrollParentElement=d.findScrollParentElement;exports.getAllParentElements=d.getAllParentElements;exports.getElement=d.getElement;exports.intersectElements=d.intersectElements;exports.traverseNodes=d.traverseNodes;exports.traverseShadowRoots=d.traverseShadowRoots;exports.easeInCubic=s.easeInCubic;exports.easeInExpo=s.easeInExpo;exports.easeInOutCubic=s.easeInOutCubic;exports.easeInOutExpo=s.easeInOutExpo;exports.easeInOutQuad=s.easeInOutQuad;exports.easeInOutQuart=s.easeInOutQuart;exports.easeInOutQuint=s.easeInOutQuint;exports.easeInQuad=s.easeInQuad;exports.easeInQuart=s.easeInQuart;exports.easeInQuint=s.easeInQuint;exports.easeOutCubic=s.easeOutCubic;exports.easeOutExpo=s.easeOutExpo;exports.easeOutQuad=s.easeOutQuad;exports.easeOutQuart=s.easeOutQuart;exports.easeOutQuint=s.easeOutQuint;exports.linear=s.linear;exports.isElementVisible=D.isElementVisible;exports.dispatchEvent=q.dispatchEvent;exports.createJSONAndSave=P.createJSONAndSave;exports.downloadURI=P.downloadURI;exports.debounce=N.debounce;exports.throttle=N.throttle;exports.setupDrag=w.setupDrag;exports.createStylesheet=S.createStylesheet;exports.styleToString=S.styleToString;exports.getCumulativeOffsetLeft=O.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=O.getCumulativeOffsetTop;exports.getCumulativePosition=O.getCumulativePosition;exports.getStickyOffset=O.getStickyOffset;exports.calculateDistance=l.calculateDistance;exports.calculateDistanceWithRadius=l.calculateDistanceWithRadius;exports.clamp=l.clamp;exports.damp=l.damp;exports.lerp=l.lerp;exports.mapRange=l.mapRange;exports.round=l.round;exports.smootherstep=l.smootherstep;exports.smoothstep=l.smoothstep;exports.step=l.step;exports.formatMediaDuration=M.formatMediaDuration;exports.ACTION_CREATE=a.ACTION_CREATE;exports.ACTION_PRESERVE=a.ACTION_PRESERVE;exports.ACTION_REMOVE=a.ACTION_REMOVE;exports.ACTION_REMOVE_ATTR=a.ACTION_REMOVE_ATTR;exports.ACTION_REPLACE=a.ACTION_REPLACE;exports.ACTION_SET_ATTR=a.ACTION_SET_ATTR;exports.ACTION_SKIP=a.ACTION_SKIP;exports.ACTION_UPDATE=a.ACTION_UPDATE;exports.NODE_TYPE_COMMENT=a.NODE_TYPE_COMMENT;exports.NODE_TYPE_DOCUMENT=a.NODE_TYPE_DOCUMENT;exports.NODE_TYPE_ELEMENT=a.NODE_TYPE_ELEMENT;exports.NODE_TYPE_TEXT=a.NODE_TYPE_TEXT;exports.diff=a.diff;exports.morph=a.morph;exports.patch=a.patch;exports.beautifyNumber=p.beautifyNumber;exports.loopNumber=p.loopNumber;exports.preciseNumber=p.preciseNumber;exports.roundNumberTo=p.roundNumberTo;exports.toStep=p.toStep;exports.cloneDeep=m.cloneDeep;exports.compareObjects=m.compareObjects;exports.isESClass=m.isESClass;exports.isNullish=m.isNullish;exports.isObject=m.isObject;exports.mergeDeep=m.mergeDeep;exports.mixin=m.mixin;exports.omit=m.omit;exports.pick=m.pick;exports.nullishCoalescing=A.nullishCoalescing;exports.requestIdleCallback=A.requestIdleCallback;exports.scrollToElement=x.scrollToElement;exports.wait=x.wait;exports.camelToKebab=c.camelToKebab;exports.capitalize=c.capitalize;exports.declension=c.declension;exports.decodeHtmlEntities=c.decodeHtmlEntities;exports.generateId=c.generateId;exports.isUppercase=c.isUppercase;exports.kebabToCamel=c.kebabToCamel;exports.snakeToDotted=c.snakeToDotted;exports.toPascalCase=c.toPascalCase;exports.uncapitalize=c.uncapitalize;exports.getElementTransitionDurationMS=R.getElementTransitionDurationMS;exports.getElementTransitionDurationS=R.getElementTransitionDurationS;exports.changeHistory=u.changeHistory;exports.isLocalUrl=u.isLocalUrl;exports.normalizeBase=u.normalizeBase;exports.normalizeRelativeURLs=u.normalizeRelativeURLs;exports.normalizeURL=u.normalizeURL;exports.parseSearchParameters=u.parseSearchParameters;exports.searchParamsObjectToString=u.searchParamsObjectToString;exports.searchParamsToObject=u.searchParamsToObject;exports.splitPath=u.splitPath;exports.updateSearchParameter=u.updateSearchParameter;exports.cloneTemplateContent=W;exports.copyTextToClipboard=z;exports.decode=F;exports.dotCircleCollision=j;exports.dotPolygonCollision=L;exports.dotRectCollision=V;exports.encode=k;exports.formatBytes=U;exports.getRootVariables=Y;exports.insert=Q;exports.setIntervalOnIntersection=Z;exports.shiftArray=B;exports.tryCreateHrefFromContact=K;
|
package/lib/utils/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { a as _, p as D } from "../attributes-69we3byR.js";
|
|
2
2
|
import { a as d } from "../index-e9eDuagL.js";
|
|
3
3
|
import { i as B } from "../index-e9eDuagL.js";
|
|
4
|
-
import { a as
|
|
4
|
+
import { a as z, c as Q, f as U, m as V } from "../canvas-DeZ0SLUJ.js";
|
|
5
5
|
import { g as F, n as L, s as k } from "../coordinates-CgdGoSYs.js";
|
|
6
6
|
import { w as q } from "../custom-elements-DBnCK7Zx.js";
|
|
7
7
|
import { c as K, e as Z, b as W, f as G, a as J, g as X, i as ee, t as te, d as se } from "../dom-BETkVSSZ.js";
|
|
8
8
|
import { d as oe, o as re, g as ne, q as ie, c as ce, j as le, n as ue, a as fe, h as de, k as me, f as pe, p as xe, b as Ee, i as he, m as Te, l as be } from "../easings-BEmRlrDd.js";
|
|
9
9
|
import { i as Ce } from "../element-CGVl1jA-.js";
|
|
10
|
-
import { d as
|
|
11
|
-
import { c as Ae, d as
|
|
12
|
-
import { d as
|
|
10
|
+
import { d as Oe } from "../events-CsVF98U6.js";
|
|
11
|
+
import { c as Ae, d as Pe } from "../file-GHShUlue.js";
|
|
12
|
+
import { d as Ne, t as ve } from "../function-C10DGppn.js";
|
|
13
13
|
import { s as we } from "../gestures-CcXV6fCp.js";
|
|
14
14
|
import { c as De, s as Me } from "../stylesheet-DdBzowZY.js";
|
|
15
|
-
import { g as
|
|
15
|
+
import { g as je, a as ze, c as Qe, b as Ue } from "../layout-BSMtwCga.js";
|
|
16
16
|
import { e as $e, f as Fe, c as Le, d as ke, l as Ye, m as qe, r as He, b as Ke, a as Ze, s as We } from "../math-BOBiC4TN.js";
|
|
17
17
|
import { f as Je } from "../metadata-jfowcCyz.js";
|
|
18
|
-
import { A as et,
|
|
18
|
+
import { A as et, j as tt, d as st, h as at, e as ot, g as rt, i as nt, f as it, b as ct, c as lt, N as ut, a as ft, k as dt, m as mt, p as pt } from "../morph-BQErz7qP.js";
|
|
19
19
|
import { b as Et, l as ht, p as Tt, r as bt, t as gt } from "../number-CumqY64S.js";
|
|
20
|
-
import { c as yt, d as
|
|
20
|
+
import { c as yt, d as Ot, i as It, b as At, a as Pt, m as St, e as Nt, o as vt, p as Rt } from "../object-CcMK4y_r.js";
|
|
21
21
|
import { n as _t, r as Dt } from "../polyfills-DJrTJQky.js";
|
|
22
|
-
import { s as Bt, w as
|
|
23
|
-
import { c as
|
|
22
|
+
import { s as Bt, w as jt } from "../scroll-DY5senkF.js";
|
|
23
|
+
import { c as Qt, a as Ut, b as Vt, d as $t, g as Ft, i as Lt, k as kt, s as Yt, t as qt, u as Ht } from "../string-BlMQbe8b.js";
|
|
24
24
|
import { g as Zt, a as Wt } from "../style-j2TwriJ_.js";
|
|
25
|
-
import { c as Jt, i as Xt, a as es, b as ts, n as ss, p as as, s as os,
|
|
25
|
+
import { c as Jt, i as Xt, a as es, b as ts, n as ss, p as as, s as os, e as rs, d as ns, u as is } from "../url-CYgo5vrG.js";
|
|
26
26
|
function h(t, e, ...s) {
|
|
27
27
|
return [...t.slice(0, e), ...s, ...t.slice(e)];
|
|
28
28
|
}
|
|
@@ -75,7 +75,7 @@ function C(t, e) {
|
|
|
75
75
|
function y(t, e) {
|
|
76
76
|
return Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2) < e.radius;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function O(t, e) {
|
|
79
79
|
let s = !1;
|
|
80
80
|
const { x: a, y: o } = t;
|
|
81
81
|
for (let r = 0, n = e.length - 1; r < e.length; n = r++) {
|
|
@@ -91,7 +91,7 @@ function f(t, e) {
|
|
|
91
91
|
return a.startsWith("var") ? f(t, a.slice(4, -1)) : a;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function I(...t) {
|
|
95
95
|
const e = {};
|
|
96
96
|
return Array.from(document.styleSheets).forEach((s) => {
|
|
97
97
|
Array.from(s.cssRules).forEach((a) => {
|
|
@@ -108,7 +108,7 @@ function A(t) {
|
|
|
108
108
|
const e = window.atob(t);
|
|
109
109
|
return decodeURIComponent(window.escape(e));
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function P(t) {
|
|
112
112
|
const e = window.unescape(encodeURIComponent(t));
|
|
113
113
|
return window.btoa(e);
|
|
114
114
|
}
|
|
@@ -117,14 +117,14 @@ function S(t) {
|
|
|
117
117
|
let e, s;
|
|
118
118
|
return p.test(t) ? (e = `mailto:${t.trim()}`, s = "email") : m.test(t) && (e = `tel:${t.replace(/[^0-9\\.\\+]+/g, "")}`, s = "phone"), { href: e, type: s, contact: t };
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function N(t, e) {
|
|
121
121
|
if (t) {
|
|
122
122
|
const a = t.content.cloneNode(!0).firstElementChild;
|
|
123
123
|
return a && (e == null || e(a)), a;
|
|
124
124
|
}
|
|
125
125
|
return null;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function v(t, e, s, a) {
|
|
128
128
|
let o, r = !1, n = 0;
|
|
129
129
|
const c = () => {
|
|
130
130
|
clearInterval(o), a != null && a.restartCounter && (n = 0), r && (o = setInterval(() => {
|
|
@@ -153,30 +153,30 @@ export {
|
|
|
153
153
|
Et as beautifyNumber,
|
|
154
154
|
$e as calculateDistance,
|
|
155
155
|
Fe as calculateDistanceWithRadius,
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
Qt as camelToKebab,
|
|
157
|
+
Ut as capitalize,
|
|
158
158
|
Jt as changeHistory,
|
|
159
159
|
Le as clamp,
|
|
160
160
|
yt as cloneDeep,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
N as cloneTemplateContent,
|
|
162
|
+
Ot as compareObjects,
|
|
163
|
+
z as contain,
|
|
164
164
|
g as copyTextToClipboard,
|
|
165
|
-
|
|
165
|
+
Q as cover,
|
|
166
166
|
Ae as createJSONAndSave,
|
|
167
167
|
K as createScriptElement,
|
|
168
168
|
De as createStylesheet,
|
|
169
169
|
ke as damp,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
Ne as debounce,
|
|
171
|
+
Vt as declension,
|
|
172
|
+
P as decode,
|
|
173
173
|
$t as decodeHtmlEntities,
|
|
174
174
|
dt as diff,
|
|
175
|
-
|
|
175
|
+
Oe as dispatchEvent,
|
|
176
176
|
y as dotCircleCollision,
|
|
177
|
-
|
|
177
|
+
O as dotPolygonCollision,
|
|
178
178
|
C as dotRectCollision,
|
|
179
|
-
|
|
179
|
+
Pe as downloadURI,
|
|
180
180
|
oe as easeInCubic,
|
|
181
181
|
re as easeInExpo,
|
|
182
182
|
ne as easeInOutCubic,
|
|
@@ -196,44 +196,44 @@ export {
|
|
|
196
196
|
Z as excludeElements,
|
|
197
197
|
W as findParentElement,
|
|
198
198
|
G as findScrollParentElement,
|
|
199
|
-
|
|
199
|
+
U as fixPosition,
|
|
200
200
|
b as formatBytes,
|
|
201
201
|
Je as formatMediaDuration,
|
|
202
202
|
Ft as generateId,
|
|
203
203
|
J as getAllParentElements,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
je as getCumulativeOffsetLeft,
|
|
205
|
+
ze as getCumulativeOffsetTop,
|
|
206
|
+
Qe as getCumulativePosition,
|
|
207
207
|
X as getElement,
|
|
208
208
|
Zt as getElementTransitionDurationMS,
|
|
209
209
|
Wt as getElementTransitionDurationS,
|
|
210
210
|
F as getPointerPosition,
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
I as getRootVariables,
|
|
212
|
+
Ue as getStickyOffset,
|
|
213
213
|
h as insert,
|
|
214
214
|
ee as intersectElements,
|
|
215
215
|
B as isBrowser,
|
|
216
|
-
|
|
216
|
+
It as isESClass,
|
|
217
217
|
Ce as isElementVisible,
|
|
218
218
|
Xt as isLocalUrl,
|
|
219
219
|
At as isNullish,
|
|
220
|
-
|
|
220
|
+
Pt as isObject,
|
|
221
221
|
Lt as isUppercase,
|
|
222
222
|
kt as kebabToCamel,
|
|
223
223
|
Ye as lerp,
|
|
224
224
|
be as linear,
|
|
225
225
|
ht as loopNumber,
|
|
226
226
|
qe as mapRange,
|
|
227
|
-
|
|
227
|
+
V as measureText,
|
|
228
228
|
St as mergeDeep,
|
|
229
|
-
|
|
229
|
+
Nt as mixin,
|
|
230
230
|
mt as morph,
|
|
231
231
|
L as normalize,
|
|
232
232
|
es as normalizeBase,
|
|
233
233
|
ts as normalizeRelativeURLs,
|
|
234
234
|
ss as normalizeURL,
|
|
235
235
|
_t as nullishCoalescing,
|
|
236
|
-
|
|
236
|
+
vt as omit,
|
|
237
237
|
_ as parseAttribute,
|
|
238
238
|
D as parseAttributeValue,
|
|
239
239
|
as as parseSearchParameters,
|
|
@@ -245,23 +245,25 @@ export {
|
|
|
245
245
|
bt as roundNumberTo,
|
|
246
246
|
k as screenToCartesian,
|
|
247
247
|
Bt as scrollToElement,
|
|
248
|
-
|
|
248
|
+
os as searchParamsObjectToString,
|
|
249
|
+
rs as searchParamsToObject,
|
|
250
|
+
v as setIntervalOnIntersection,
|
|
249
251
|
we as setupDrag,
|
|
250
252
|
T as shiftArray,
|
|
251
253
|
Ke as smootherstep,
|
|
252
254
|
Ze as smoothstep,
|
|
253
255
|
Yt as snakeToDotted,
|
|
254
|
-
|
|
256
|
+
ns as splitPath,
|
|
255
257
|
We as step,
|
|
256
258
|
Me as styleToString,
|
|
257
|
-
|
|
259
|
+
ve as throttle,
|
|
258
260
|
qt as toPascalCase,
|
|
259
261
|
gt as toStep,
|
|
260
262
|
te as traverseNodes,
|
|
261
263
|
se as traverseShadowRoots,
|
|
262
264
|
S as tryCreateHrefFromContact,
|
|
263
265
|
Ht as uncapitalize,
|
|
264
|
-
|
|
265
|
-
|
|
266
|
+
is as updateSearchParameter,
|
|
267
|
+
jt as wait,
|
|
266
268
|
q as whenDefined
|
|
267
269
|
};
|
package/lib/utils/polyfills.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function nullishCoalescing<D, V = D>(value: V, defaultValue: D): D | (V & ({} | null));
|
|
2
|
-
export declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
|
|
2
|
+
export declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number | NodeJS.Timeout;
|
package/lib/utils/url.d.ts
CHANGED
|
@@ -34,3 +34,9 @@ export declare function normalizeURL(url: URL | string, { base, trailingSlash, }
|
|
|
34
34
|
trailingSlash?: boolean;
|
|
35
35
|
}): URL;
|
|
36
36
|
export declare function isLocalUrl(href: string): boolean;
|
|
37
|
+
export declare function searchParamsObjectToString(parameters?: {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}): string;
|
|
40
|
+
export declare function searchParamsToObject(params: URLSearchParams): {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
function r(t) {
|
|
2
|
+
const n = t != null && t.__dev ? "@packages" : "aptechka";
|
|
3
|
+
return {
|
|
4
|
+
name: "jsx-hmr-plugin",
|
|
5
|
+
apply: "serve",
|
|
6
|
+
transform(o, e) {
|
|
7
|
+
if ((e.endsWith(".jsx") || e.endsWith(".tsx")) && !e.endsWith("render.tsx")) {
|
|
8
|
+
let l = o;
|
|
9
|
+
return l += `
|
|
10
|
+
|
|
11
|
+
if (import.meta.hot) {
|
|
12
|
+
import.meta.hot.accept(async (Module) => {
|
|
13
|
+
const { render } = await import('${n}/jsx')
|
|
14
|
+
const { camelToKebab } = await import('${n}/utils')
|
|
15
|
+
for (const key in Module) {
|
|
16
|
+
if (Object.prototype.hasOwnProperty.call(Module, key)) {
|
|
17
|
+
if (typeof Module[key] === 'function') {
|
|
18
|
+
const tag = \`e-\${camelToKebab(Module[key].name)}\`
|
|
19
|
+
const foundedElements = [...document.querySelectorAll(tag)]
|
|
20
|
+
|
|
21
|
+
foundedElements.forEach((el) => {
|
|
22
|
+
const nestElements = el.querySelectorAll('[data-nest]')
|
|
23
|
+
|
|
24
|
+
const container = document.createElement('div')
|
|
25
|
+
|
|
26
|
+
render(container, Module[key], el.__props__)
|
|
27
|
+
const componentElement = container.firstElementChild
|
|
28
|
+
|
|
29
|
+
if (componentElement) {
|
|
30
|
+
el.dispatchEvent(new CustomEvent('__hmrInstanceReplace', {
|
|
31
|
+
'detail': {
|
|
32
|
+
element: componentElement
|
|
33
|
+
}
|
|
34
|
+
}))
|
|
35
|
+
|
|
36
|
+
el.replaceWith(componentElement)
|
|
37
|
+
|
|
38
|
+
componentElement
|
|
39
|
+
.querySelectorAll('[data-nest]')
|
|
40
|
+
.forEach((el, i) => {
|
|
41
|
+
if (nestElements[i]) {
|
|
42
|
+
el.replaceWith(nestElements[i])
|
|
43
|
+
}
|
|
44
|
+
})
|
|
45
|
+
}
|
|
46
|
+
})
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
}
|
|
52
|
+
`, {
|
|
53
|
+
code: l,
|
|
54
|
+
map: null
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
return null;
|
|
58
|
+
},
|
|
59
|
+
config(o, e) {
|
|
60
|
+
return {
|
|
61
|
+
esbuild: {
|
|
62
|
+
jsxFactory: "h",
|
|
63
|
+
jsxFragment: "Fragment",
|
|
64
|
+
jsxInject: `import { h, Fragment } from '${n}/jsx'`
|
|
65
|
+
},
|
|
66
|
+
define: {
|
|
67
|
+
__JSX_HMR_DEV__: e.command === "serve"
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export {
|
|
74
|
+
r as a
|
|
75
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";function r(t){const n=t!=null&&t.__dev?"@packages":"aptechka";return{name:"jsx-hmr-plugin",apply:"serve",transform(o,e){if((e.endsWith(".jsx")||e.endsWith(".tsx"))&&!e.endsWith("render.tsx")){let l=o;return l+=`
|
|
2
|
+
|
|
3
|
+
if (import.meta.hot) {
|
|
4
|
+
import.meta.hot.accept(async (Module) => {
|
|
5
|
+
const { render } = await import('${n}/jsx')
|
|
6
|
+
const { camelToKebab } = await import('${n}/utils')
|
|
7
|
+
for (const key in Module) {
|
|
8
|
+
if (Object.prototype.hasOwnProperty.call(Module, key)) {
|
|
9
|
+
if (typeof Module[key] === 'function') {
|
|
10
|
+
const tag = \`e-\${camelToKebab(Module[key].name)}\`
|
|
11
|
+
const foundedElements = [...document.querySelectorAll(tag)]
|
|
12
|
+
|
|
13
|
+
foundedElements.forEach((el) => {
|
|
14
|
+
const nestElements = el.querySelectorAll('[data-nest]')
|
|
15
|
+
|
|
16
|
+
const container = document.createElement('div')
|
|
17
|
+
|
|
18
|
+
render(container, Module[key], el.__props__)
|
|
19
|
+
const componentElement = container.firstElementChild
|
|
20
|
+
|
|
21
|
+
if (componentElement) {
|
|
22
|
+
el.dispatchEvent(new CustomEvent('__hmrInstanceReplace', {
|
|
23
|
+
'detail': {
|
|
24
|
+
element: componentElement
|
|
25
|
+
}
|
|
26
|
+
}))
|
|
27
|
+
|
|
28
|
+
el.replaceWith(componentElement)
|
|
29
|
+
|
|
30
|
+
componentElement
|
|
31
|
+
.querySelectorAll('[data-nest]')
|
|
32
|
+
.forEach((el, i) => {
|
|
33
|
+
if (nestElements[i]) {
|
|
34
|
+
el.replaceWith(nestElements[i])
|
|
35
|
+
}
|
|
36
|
+
})
|
|
37
|
+
}
|
|
38
|
+
})
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
})
|
|
43
|
+
}
|
|
44
|
+
`,{code:l,map:null}}return null},config(o,e){return{esbuild:{jsxFactory:"h",jsxFragment:"Fragment",jsxInject:`import { h, Fragment } from '${n}/jsx'`},define:{__JSX_HMR_DEV__:e.command==="serve"}}}}}exports.aptechkaVite=r;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aptechka",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.83.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/denisavitski/aptechka.git"
|
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
"require": "./lib/animation/index.cjs",
|
|
29
29
|
"default": "./lib/animation/index.js"
|
|
30
30
|
},
|
|
31
|
+
"./api-fetcher": {
|
|
32
|
+
"types": "./lib/api-fetcher/index.d.ts",
|
|
33
|
+
"require": "./lib/api-fetcher/index.cjs",
|
|
34
|
+
"default": "./lib/api-fetcher/index.js"
|
|
35
|
+
},
|
|
31
36
|
"./attribute": {
|
|
32
37
|
"types": "./lib/attribute/index.d.ts",
|
|
33
38
|
"require": "./lib/attribute/index.cjs",
|
|
@@ -123,6 +128,21 @@
|
|
|
123
128
|
"require": "./lib/jsx/index.cjs",
|
|
124
129
|
"default": "./lib/jsx/index.js"
|
|
125
130
|
},
|
|
131
|
+
"./jsx/integrations/astro": {
|
|
132
|
+
"types": "./lib/jsx/integrations/astro/index.d.ts",
|
|
133
|
+
"require": "./lib/jsx/integrations/astro/index.cjs",
|
|
134
|
+
"default": "./lib/jsx/integrations/astro/index.js"
|
|
135
|
+
},
|
|
136
|
+
"./jsx/integrations/astro/client": {
|
|
137
|
+
"types": "./lib/jsx/integrations/astro/client.d.ts",
|
|
138
|
+
"require": "./lib/jsx/integrations/astro/client.cjs",
|
|
139
|
+
"default": "./lib/jsx/integrations/astro/client.js"
|
|
140
|
+
},
|
|
141
|
+
"./jsx/integrations/astro/server": {
|
|
142
|
+
"types": "./lib/jsx/integrations/astro/server.d.ts",
|
|
143
|
+
"require": "./lib/jsx/integrations/astro/server.cjs",
|
|
144
|
+
"default": "./lib/jsx/integrations/astro/server.js"
|
|
145
|
+
},
|
|
126
146
|
"./ladder": {
|
|
127
147
|
"types": "./lib/ladder/index.d.ts",
|
|
128
148
|
"require": "./lib/ladder/index.cjs",
|
|
@@ -287,6 +307,9 @@
|
|
|
287
307
|
"animation": [
|
|
288
308
|
"lib/animation/index.d.ts"
|
|
289
309
|
],
|
|
310
|
+
"api-fetcher": [
|
|
311
|
+
"lib/api-fetcher/index.d.ts"
|
|
312
|
+
],
|
|
290
313
|
"attribute": [
|
|
291
314
|
"lib/attribute/index.d.ts"
|
|
292
315
|
],
|
|
@@ -347,6 +370,15 @@
|
|
|
347
370
|
"jsx": [
|
|
348
371
|
"lib/jsx/index.d.ts"
|
|
349
372
|
],
|
|
373
|
+
"jsx/integrations/astro": [
|
|
374
|
+
"lib/jsx/integrations/astro/index.d.ts"
|
|
375
|
+
],
|
|
376
|
+
"jsx/integrations/astro/client": [
|
|
377
|
+
"lib/jsx/integrations/astro/client.d.ts"
|
|
378
|
+
],
|
|
379
|
+
"jsx/integrations/astro/server": [
|
|
380
|
+
"lib/jsx/integrations/astro/server.d.ts"
|
|
381
|
+
],
|
|
350
382
|
"ladder": [
|
|
351
383
|
"lib/ladder/index.d.ts"
|
|
352
384
|
],
|
|
@@ -449,14 +481,15 @@
|
|
|
449
481
|
"dev": "vite --host --mode site"
|
|
450
482
|
},
|
|
451
483
|
"devDependencies": {
|
|
452
|
-
"@types/node": "^24.
|
|
484
|
+
"@types/node": "^24.3.0",
|
|
453
485
|
"@types/three": "^0.179.0",
|
|
454
|
-
"
|
|
455
|
-
"
|
|
456
|
-
"vite-plugin-dts": "^4.5.4",
|
|
457
|
-
"vite-plugin-htmc": "0.1.16",
|
|
486
|
+
"astro": "^5.13.5",
|
|
487
|
+
"csstype": "^3.1.3",
|
|
458
488
|
"prettier-plugin-organize-imports": "^4.2.0",
|
|
459
|
-
"
|
|
489
|
+
"tsx": "^4.20.5",
|
|
490
|
+
"vite": "^7.1.3",
|
|
491
|
+
"vite-plugin-dts": "^4.5.4",
|
|
492
|
+
"vite-plugin-htmc": "0.1.17"
|
|
460
493
|
},
|
|
461
494
|
"dependencies": {
|
|
462
495
|
"construct-style-sheets-polyfill": "^3.1.0",
|