aptechka 0.83.0 → 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-DRAQ-fxE.js → LocalLinks-DFZFpbjs.js} +1 -1
- 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.js +1 -1
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +71 -71
- package/lib/{morph-D_ybmXWR.js → morph-BQErz7qP.js} +8 -8
- 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 +2 -2
- package/lib/spa/index.js +2 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +6 -7
- package/lib/utils/index.js +1 -1
- package/lib/utils/polyfills.d.ts +1 -1
- package/lib/vite-C-i3hVDL.js +75 -0
- package/lib/vite-DzanPumM.cjs +44 -0
- package/package.json +29 -4
- 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/jsx/index.js
CHANGED
|
@@ -1,140 +1,365 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var X = Object.defineProperty, z = Object.defineProperties;
|
|
2
|
+
var J = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var _ = Object.getOwnPropertySymbols;
|
|
4
|
+
var Q = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var $ = (t) => {
|
|
6
|
+
throw TypeError(t);
|
|
7
|
+
};
|
|
8
|
+
var L = (t, e, n) => e in t ? X(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, m = (t, e) => {
|
|
5
9
|
for (var n in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var n of
|
|
9
|
-
|
|
10
|
+
Q.call(e, n) && L(t, n, e[n]);
|
|
11
|
+
if (_)
|
|
12
|
+
for (var n of _(e))
|
|
13
|
+
U.call(e, n) && L(t, n, e[n]);
|
|
10
14
|
return t;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
+
}, H = (t, e) => z(t, J(e));
|
|
16
|
+
var O = (t, e, n) => e.has(t) || $("Cannot " + n);
|
|
17
|
+
var y = (t, e, n) => (O(t, e, "read from private field"), n ? n.call(t) : e.get(t)), x = (t, e, n) => e.has(t) ? $("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), D = (t, e, n, r) => (O(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
|
|
18
|
+
import { S } from "../Store-ZThXYBQd.js";
|
|
19
|
+
import { c as M } from "../string-BlMQbe8b.js";
|
|
20
|
+
import { k as Y, p as Z } from "../morph-BQErz7qP.js";
|
|
15
21
|
import "construct-style-sheets-polyfill";
|
|
16
22
|
import "../index-e9eDuagL.js";
|
|
17
|
-
import {
|
|
18
|
-
import { C, D as
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
import { connector as k } from "../connector/index.js";
|
|
24
|
+
import { b as P, C as v, a as j, D as V, R as G } from "../Composed-DyAWjEXE.js";
|
|
25
|
+
import { r as Tt } from "../render-D_0FCWEu.js";
|
|
26
|
+
import { a as Mt } from "../vite-C-i3hVDL.js";
|
|
27
|
+
const f = { current: null };
|
|
28
|
+
var b, p;
|
|
29
|
+
class tt extends HTMLElement {
|
|
30
|
+
constructor() {
|
|
31
|
+
super();
|
|
32
|
+
x(this, b, []);
|
|
33
|
+
x(this, p, []);
|
|
34
|
+
f.current = this;
|
|
35
|
+
}
|
|
36
|
+
addConnectCallback(n) {
|
|
37
|
+
y(this, b).push(n);
|
|
38
|
+
}
|
|
39
|
+
addDisconnectCallback(n) {
|
|
40
|
+
y(this, p).push(n);
|
|
41
|
+
}
|
|
42
|
+
connectedCallback() {
|
|
43
|
+
y(this, b).forEach((n) => {
|
|
44
|
+
const r = n(this);
|
|
45
|
+
r && y(this, p).push(r);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
disconnectedCallback() {
|
|
49
|
+
y(this, p).forEach((n) => {
|
|
50
|
+
n(this);
|
|
51
|
+
}), D(this, b, []), D(this, p, []);
|
|
52
|
+
}
|
|
22
53
|
}
|
|
23
|
-
|
|
24
|
-
|
|
54
|
+
b = new WeakMap(), p = new WeakMap();
|
|
55
|
+
function C(t, e, n) {
|
|
56
|
+
const r = e.subscribe((c) => {
|
|
57
|
+
n(c);
|
|
58
|
+
});
|
|
59
|
+
k.subscribe(t, {
|
|
60
|
+
disconnectCallback: () => {
|
|
61
|
+
r();
|
|
62
|
+
},
|
|
63
|
+
maxWaitSec: 20,
|
|
64
|
+
unsubscribeAfterDisconnect: !0
|
|
65
|
+
});
|
|
25
66
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
67
|
+
function W(t, e) {
|
|
68
|
+
e && (e instanceof S ? C(t, e, (n) => {
|
|
69
|
+
n.previous && t.classList.remove(n.previous.toString()), n.current && t.classList.add(n.current.toString());
|
|
70
|
+
}) : typeof e == "object" && !Array.isArray(e) ? Object.entries(e).forEach(([n, r]) => {
|
|
71
|
+
r instanceof S ? C(t, r, (c) => {
|
|
72
|
+
t.classList.toggle(n, !!c.current);
|
|
73
|
+
}) : r && t.classList.add(n);
|
|
74
|
+
}) : Array.isArray(e) ? e.forEach((n) => {
|
|
75
|
+
typeof n == "string" ? t.classList.add(n) : W(t, n);
|
|
76
|
+
}) : e.toString().split(" ").map((n) => t.classList.add(n.trim())));
|
|
77
|
+
}
|
|
78
|
+
function et(t, e) {
|
|
79
|
+
e && (typeof e == "object" ? Object.entries(e).forEach(([n, r]) => {
|
|
80
|
+
r instanceof S ? C(t, r, (c) => {
|
|
81
|
+
var o;
|
|
82
|
+
t.style[n] = (o = c.current) == null ? void 0 : o.toString();
|
|
83
|
+
}) : (typeof r == "number" || typeof r == "string" || typeof r == "boolean") && (t.style[n] = r.toString());
|
|
84
|
+
}) : typeof e == "string" && (t.style = e));
|
|
85
|
+
}
|
|
86
|
+
function w(t, e, n) {
|
|
87
|
+
e === "ref" && n ? Array.isArray(n) ? n.forEach((r) => {
|
|
88
|
+
typeof r == "object" && "value" in r && (r.value = t);
|
|
89
|
+
}) : typeof n == "object" && "value" in n && (n.value = t) : e === "className" || e === "class" ? W(t, n) : e === "style" ? et(t, n) : e === "setHtml" ? t.innerHTML = n : typeof n == "number" ? e === "tabIndex" ? t.setAttribute("tabindex", n.toString()) : w(t, e, n.toString()) : typeof n == "string" ? e === "htmlFor" ? t.setAttribute("for", n) : t.setAttribute(e, n) : typeof n == "boolean" ? n ? t.setAttribute(e, "") : t.removeAttribute(e) : n instanceof S && C(t, n, (r) => {
|
|
90
|
+
e in t ? t[e] = r.current : w(t, e, r.current);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function nt(t, e) {
|
|
94
|
+
for (const [n, r] of Object.entries(e != null ? e : {}))
|
|
95
|
+
typeof r == "function" && n.startsWith("on") ? t.addEventListener(
|
|
96
|
+
n.replace("on", "").toLowerCase(),
|
|
97
|
+
r
|
|
98
|
+
) : w(t, n, r);
|
|
99
|
+
}
|
|
100
|
+
function I(t, e) {
|
|
101
|
+
return t === "svg" ? document.createElementNS("http://www.w3.org/2000/svg", "svg") : e ? document.createElementNS("http://www.w3.org/2000/svg", t) : document.createElement(t);
|
|
102
|
+
}
|
|
103
|
+
function B(t) {
|
|
104
|
+
const e = [];
|
|
105
|
+
return (Array.isArray(t) ? t : [t]).forEach((r) => {
|
|
106
|
+
r != null && (typeof r == "number" ? e.push(r.toString()) : Array.isArray(r) ? r.forEach((c) => {
|
|
107
|
+
e.push(...B(c));
|
|
108
|
+
}) : e.push(r));
|
|
109
|
+
}), e;
|
|
110
|
+
}
|
|
111
|
+
function rt(t, e, n) {
|
|
112
|
+
const r = t.childNodes[n];
|
|
113
|
+
r && r.nodeType === Node.TEXT_NODE ? r.textContent !== String(e) && (console.warn(
|
|
114
|
+
`Hydration text mismatch: expected "${e}", got "${r.textContent}"`
|
|
115
|
+
), r.textContent = String(e)) : e != null && e !== "" && t.insertBefore(
|
|
116
|
+
document.createTextNode(String(e)),
|
|
117
|
+
t.childNodes[n] || null
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
function ot(t, e) {
|
|
121
|
+
const n = [...t.childNodes].filter((i) => i.__storeId === e.id), r = e.current, c = Array.isArray(r) ? r : [r], o = [];
|
|
122
|
+
if (c.forEach((i) => {
|
|
123
|
+
let s = null;
|
|
124
|
+
typeof i == "boolean" || typeof i == "number" || typeof i == "string" ? s = document.createTextNode(i.toString()) : i instanceof Node && (s = i), s && (s.__storeId = e.id, o.push(s));
|
|
125
|
+
}), e instanceof P) {
|
|
126
|
+
const i = [];
|
|
127
|
+
o.forEach((s, a) => {
|
|
128
|
+
const d = n.find(
|
|
129
|
+
(u) => u.__key === s.__key
|
|
130
|
+
);
|
|
131
|
+
d ? d.isEqualNode(s) ? i.push(d) : (d.replaceWith(s), i.push(s)) : (i.push(s), t.appendChild(s));
|
|
132
|
+
}), n.forEach((s) => {
|
|
133
|
+
i.includes(s) || s.remove();
|
|
134
|
+
});
|
|
135
|
+
} else
|
|
136
|
+
o.forEach((i, s) => {
|
|
137
|
+
var d;
|
|
138
|
+
const a = n[s];
|
|
139
|
+
if (a)
|
|
140
|
+
a.isEqualNode(i) || (a.replaceWith(i), n[s] = i);
|
|
141
|
+
else {
|
|
142
|
+
const u = n[n.length - 1];
|
|
143
|
+
u ? (d = u.parentNode) == null || d.insertBefore(
|
|
144
|
+
i,
|
|
145
|
+
u.nextSibling
|
|
146
|
+
) : t.appendChild(i);
|
|
147
|
+
}
|
|
148
|
+
}), n.slice(o.length).forEach((i) => {
|
|
149
|
+
i.remove();
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
class N {
|
|
153
|
+
constructor(e, n, r) {
|
|
154
|
+
this.tag = e, this.attributes = n, this.children = r;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
class g extends N {
|
|
158
|
+
}
|
|
159
|
+
class R extends N {
|
|
160
|
+
}
|
|
161
|
+
class F extends N {
|
|
162
|
+
}
|
|
163
|
+
let E = !1;
|
|
164
|
+
function st() {
|
|
165
|
+
E = !0;
|
|
166
|
+
}
|
|
167
|
+
function it() {
|
|
168
|
+
E = !1;
|
|
169
|
+
}
|
|
170
|
+
function l(t, e, n, r = !1) {
|
|
171
|
+
const c = B(n);
|
|
172
|
+
nt(t, e), c.forEach((o, i) => {
|
|
173
|
+
if (o instanceof S)
|
|
174
|
+
C(t, o, () => {
|
|
175
|
+
ot(t, o);
|
|
176
|
+
});
|
|
177
|
+
else if (o instanceof g)
|
|
178
|
+
o.tag === "shadow" && t.shadowRoot ? l(
|
|
179
|
+
t.shadowRoot,
|
|
180
|
+
o.attributes,
|
|
181
|
+
o.children
|
|
182
|
+
) : l(t, o.attributes, o.children);
|
|
183
|
+
else if (o instanceof R) {
|
|
184
|
+
let s = null;
|
|
185
|
+
if (E) {
|
|
186
|
+
const a = t.children[i];
|
|
187
|
+
a && a.nodeName.toLowerCase() === o.tag ? (s = a, l(s, o.attributes, o.children, r)) : (s = I(o.tag, r), l(s, o.attributes, o.children, r), t.append(s));
|
|
188
|
+
} else
|
|
189
|
+
s = I(o.tag, r), l(s, o.attributes, o.children, r), t.append(s);
|
|
190
|
+
} else if (o instanceof F) {
|
|
191
|
+
const s = document.createElement(o.tag);
|
|
192
|
+
l(s, o.attributes, o.children);
|
|
193
|
+
const a = Y(document.head, s);
|
|
194
|
+
Z(document.head, a);
|
|
195
|
+
} else
|
|
196
|
+
E ? rt(t, o, i) : t.append(o);
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
const T = /* @__PURE__ */ new Map();
|
|
200
|
+
function Ct(t, e, ...n) {
|
|
201
|
+
var r;
|
|
202
|
+
if (typeof t == "string")
|
|
203
|
+
return t === "component" ? new g(t, e, n) : t === "shadow" ? new g(t, e, n) : t === "head" ? new F(t, e, n) : new R(t, e, n);
|
|
204
|
+
{
|
|
205
|
+
if (t === q)
|
|
206
|
+
return q(n);
|
|
207
|
+
if (t.template)
|
|
208
|
+
return t(m({}, e));
|
|
209
|
+
const c = `e-${M(t.name)}`;
|
|
210
|
+
let o = customElements.get(c);
|
|
211
|
+
o || (o = (r = class extends tt {
|
|
212
|
+
constructor() {
|
|
213
|
+
super();
|
|
214
|
+
}
|
|
215
|
+
}, r.formAssociated = t.formAssociated, r), customElements.define(c, o));
|
|
216
|
+
const i = (T.get(c) || 0) + 1;
|
|
217
|
+
T.set(c, i);
|
|
218
|
+
const s = `${c}-${i}`;
|
|
219
|
+
let a;
|
|
220
|
+
if (E) {
|
|
221
|
+
const A = document.querySelector(
|
|
222
|
+
`${c}[data-hydrate-id="${s}"]`
|
|
223
|
+
);
|
|
224
|
+
A && A instanceof o ? a = A : (a = new o(), a.setAttribute("data-hydrate-id", s));
|
|
225
|
+
} else
|
|
226
|
+
a = new o(), a.setAttribute("data-hydrate-id", s);
|
|
227
|
+
const d = H(m({}, e), {
|
|
228
|
+
children: n
|
|
229
|
+
}), u = t(d);
|
|
230
|
+
return a.__props__ = d, (u instanceof g || u instanceof R) && (u != null && u.children || u.attributes) && l(a, u.attributes, u.children), a;
|
|
231
|
+
}
|
|
28
232
|
}
|
|
29
233
|
function q(t) {
|
|
30
|
-
const e =
|
|
234
|
+
const e = document.createDocumentFragment();
|
|
235
|
+
return l(e, void 0, t), e;
|
|
236
|
+
}
|
|
237
|
+
function Et() {
|
|
238
|
+
return { value: null };
|
|
239
|
+
}
|
|
240
|
+
function ct(t) {
|
|
241
|
+
f.current.addConnectCallback(t);
|
|
242
|
+
}
|
|
243
|
+
function At(t) {
|
|
244
|
+
f.current.addDisconnectCallback(t);
|
|
245
|
+
}
|
|
246
|
+
function gt(t) {
|
|
247
|
+
const e = f.current.attachInternals();
|
|
31
248
|
return t == null || t(e), e;
|
|
32
249
|
}
|
|
33
|
-
function
|
|
34
|
-
const n =
|
|
250
|
+
function wt(t, e) {
|
|
251
|
+
const n = f.current.attachShadow(m({
|
|
35
252
|
mode: "open"
|
|
36
253
|
}, t));
|
|
37
254
|
return e == null || e(n), n;
|
|
38
255
|
}
|
|
39
|
-
function
|
|
256
|
+
function K(t) {
|
|
40
257
|
const e = new CSSStyleSheet();
|
|
41
258
|
return e.replaceSync(t), e;
|
|
42
259
|
}
|
|
43
|
-
function
|
|
260
|
+
function ft(t) {
|
|
44
261
|
let e = "";
|
|
45
|
-
const n = (
|
|
46
|
-
|
|
47
|
-
for (const [
|
|
48
|
-
typeof
|
|
49
|
-
|
|
262
|
+
const n = (r, c) => {
|
|
263
|
+
c && (e += `${c} {`);
|
|
264
|
+
for (const [o, i] of Object.entries(r))
|
|
265
|
+
typeof i == "object" && i !== null ? n(i, o) : e += `${M(o)}: ${i};`;
|
|
266
|
+
c && (e += "}");
|
|
50
267
|
};
|
|
51
268
|
return n(t), e;
|
|
52
269
|
}
|
|
53
|
-
function
|
|
54
|
-
const n =
|
|
55
|
-
for (const
|
|
56
|
-
Array.from(n.cssRules).filter((
|
|
57
|
-
(
|
|
58
|
-
)).forEach((
|
|
59
|
-
const
|
|
60
|
-
|
|
270
|
+
function at(t, e) {
|
|
271
|
+
const n = K(e), r = [];
|
|
272
|
+
for (const c of t.adoptedStyleSheets)
|
|
273
|
+
Array.from(n.cssRules).filter((i) => !Array.from(c.cssRules).some(
|
|
274
|
+
(s) => s.cssText === i.cssText
|
|
275
|
+
)).forEach((i) => {
|
|
276
|
+
const s = c.insertRule(i.cssText);
|
|
277
|
+
r.push(() => c.deleteRule(s));
|
|
61
278
|
});
|
|
62
|
-
return () =>
|
|
279
|
+
return () => r.forEach((c) => c());
|
|
63
280
|
}
|
|
64
|
-
function
|
|
281
|
+
function ut(t) {
|
|
65
282
|
const e = document.createElement("style");
|
|
66
283
|
return e.textContent = t, document.head.appendChild(e), () => e.remove();
|
|
67
284
|
}
|
|
68
|
-
function
|
|
69
|
-
const e =
|
|
70
|
-
if (
|
|
71
|
-
|
|
72
|
-
...
|
|
73
|
-
|
|
285
|
+
function xt(t) {
|
|
286
|
+
const e = ft(t);
|
|
287
|
+
if (f.current.shadowRoot) {
|
|
288
|
+
f.current.shadowRoot.adoptedStyleSheets = [
|
|
289
|
+
...f.current.shadowRoot.adoptedStyleSheets,
|
|
290
|
+
K(e)
|
|
74
291
|
];
|
|
75
292
|
return;
|
|
76
293
|
}
|
|
77
|
-
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
294
|
+
ct((n) => {
|
|
295
|
+
const r = n.getRootNode();
|
|
296
|
+
if (r === document) {
|
|
80
297
|
if (!Array.from(
|
|
81
298
|
document.head.querySelectorAll("style")
|
|
82
|
-
).find((
|
|
83
|
-
return
|
|
84
|
-
} else if (
|
|
85
|
-
return
|
|
299
|
+
).find((o) => o.textContent === e))
|
|
300
|
+
return ut(e);
|
|
301
|
+
} else if (r instanceof ShadowRoot)
|
|
302
|
+
return at(r, e);
|
|
86
303
|
});
|
|
87
304
|
}
|
|
88
|
-
function
|
|
89
|
-
const e = new
|
|
90
|
-
return
|
|
305
|
+
function Dt(...t) {
|
|
306
|
+
const e = new S(...t);
|
|
307
|
+
return f.current && f.current.addDisconnectCallback(() => {
|
|
91
308
|
e.close();
|
|
92
309
|
}), e;
|
|
93
310
|
}
|
|
94
|
-
function
|
|
95
|
-
const e = new
|
|
96
|
-
return
|
|
311
|
+
function Rt(...t) {
|
|
312
|
+
const e = new V(...t);
|
|
313
|
+
return f.current && f.current.addDisconnectCallback(() => {
|
|
97
314
|
e.close();
|
|
98
315
|
}), e;
|
|
99
316
|
}
|
|
100
|
-
function
|
|
101
|
-
const e = new
|
|
102
|
-
return
|
|
317
|
+
function Nt(...t) {
|
|
318
|
+
const e = new j(...t);
|
|
319
|
+
return f.current && f.current.addDisconnectCallback(() => {
|
|
103
320
|
e.close();
|
|
104
321
|
}), e;
|
|
105
322
|
}
|
|
106
|
-
function
|
|
107
|
-
const e = new
|
|
108
|
-
return
|
|
323
|
+
function _t(...t) {
|
|
324
|
+
const e = new P(...t);
|
|
325
|
+
return f.current && f.current.addDisconnectCallback(() => {
|
|
109
326
|
e.close();
|
|
110
327
|
}), e;
|
|
111
328
|
}
|
|
112
|
-
function
|
|
113
|
-
const e = new
|
|
114
|
-
return
|
|
329
|
+
function Lt(...t) {
|
|
330
|
+
const e = new G(...t);
|
|
331
|
+
return f.current && f.current.addDisconnectCallback(() => {
|
|
115
332
|
e.close();
|
|
116
333
|
}), e;
|
|
117
334
|
}
|
|
118
|
-
function
|
|
119
|
-
const e = new
|
|
120
|
-
return
|
|
335
|
+
function $t(...t) {
|
|
336
|
+
const e = new v(...t);
|
|
337
|
+
return f.current && f.current.addDisconnectCallback(() => {
|
|
121
338
|
e.close();
|
|
122
339
|
}), e;
|
|
123
340
|
}
|
|
341
|
+
function Ht(t, e, n) {
|
|
342
|
+
st();
|
|
343
|
+
const r = /* @__PURE__ */ h(t, m({}, e), n);
|
|
344
|
+
return it(), r;
|
|
345
|
+
}
|
|
124
346
|
export {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
347
|
+
q as Fragment,
|
|
348
|
+
Mt as aptechkaVite,
|
|
349
|
+
Ct as h,
|
|
350
|
+
Ht as hydrate,
|
|
351
|
+
T as indexMap,
|
|
352
|
+
Tt as render,
|
|
353
|
+
$t as useComposedStore,
|
|
354
|
+
ct as useConnect,
|
|
355
|
+
Nt as useDerivedArrayStore,
|
|
356
|
+
_t as useDerivedKeyedArrayStore,
|
|
357
|
+
Rt as useDerivedStore,
|
|
358
|
+
At as useDisconnect,
|
|
359
|
+
gt as useInternals,
|
|
360
|
+
Et as useRef,
|
|
361
|
+
Lt as useResourceStore,
|
|
362
|
+
wt as useShadow,
|
|
363
|
+
Dt as useStore,
|
|
364
|
+
xt as useStylesheet
|
|
140
365
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var q=Object.defineProperty;var l=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var f=(t,n,e)=>n in t?q(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,E=(t,n)=>{for(var e in n||(n={}))m.call(n,e)&&f(t,e,n[e]);if(l)for(var e of l(n))h.call(n,e)&&f(t,e,n[e]);return t};var C=(t,n)=>{var e={};for(var r in t)m.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&l)for(var r of l(t))n.indexOf(r)<0&&h.call(t,r)&&(e[r]=t[r]);return e};var p=(t,n,e)=>new Promise((r,s)=>{var a=i=>{try{c(e.next(i))}catch(d){s(d)}},u=i=>{try{c(e.throw(i))}catch(d){s(d)}},c=i=>i.done?r(i.value):Promise.resolve(i.value).then(a,u);c((e=e.apply(t,n)).next())});const v=require("../../../render-DQs7rIoN.cjs"),y=t=>(i,d,g,j)=>p(exports,[i,d,g,j],function*(n,e,u,{client:a}){var c=u,{default:r}=c,s=C(c,["default"]);const o=document.createElement("div");v.render(o,n,E({},e),r),o.firstElementChild&&t.replaceWith(o.firstElementChild)});module.exports=y;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
|
+
var c = Object.getOwnPropertySymbols;
|
|
3
|
+
var u = Object.prototype.hasOwnProperty, h = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var m = (t, n, e) => n in t ? v(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, p = (t, n) => {
|
|
5
|
+
for (var e in n || (n = {}))
|
|
6
|
+
u.call(n, e) && m(t, e, n[e]);
|
|
7
|
+
if (c)
|
|
8
|
+
for (var e of c(n))
|
|
9
|
+
h.call(n, e) && m(t, e, n[e]);
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
var E = (t, n) => {
|
|
13
|
+
var e = {};
|
|
14
|
+
for (var r in t)
|
|
15
|
+
u.call(t, r) && n.indexOf(r) < 0 && (e[r] = t[r]);
|
|
16
|
+
if (t != null && c)
|
|
17
|
+
for (var r of c(t))
|
|
18
|
+
n.indexOf(r) < 0 && h.call(t, r) && (e[r] = t[r]);
|
|
19
|
+
return e;
|
|
20
|
+
};
|
|
21
|
+
var C = (t, n, e) => new Promise((r, a) => {
|
|
22
|
+
var s = (i) => {
|
|
23
|
+
try {
|
|
24
|
+
l(e.next(i));
|
|
25
|
+
} catch (d) {
|
|
26
|
+
a(d);
|
|
27
|
+
}
|
|
28
|
+
}, f = (i) => {
|
|
29
|
+
try {
|
|
30
|
+
l(e.throw(i));
|
|
31
|
+
} catch (d) {
|
|
32
|
+
a(d);
|
|
33
|
+
}
|
|
34
|
+
}, l = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(s, f);
|
|
35
|
+
l((e = e.apply(t, n)).next());
|
|
36
|
+
});
|
|
37
|
+
import { r as x } from "../../../render-D_0FCWEu.js";
|
|
38
|
+
const b = (t) => (i, d, k, q) => C(void 0, [i, d, k, q], function* (n, e, f, { client: s }) {
|
|
39
|
+
var l = f, { default: r } = l, a = E(l, ["default"]);
|
|
40
|
+
const o = document.createElement("div");
|
|
41
|
+
x(
|
|
42
|
+
o,
|
|
43
|
+
n,
|
|
44
|
+
p({}, e),
|
|
45
|
+
r
|
|
46
|
+
), o.firstElementChild && t.replaceWith(o.firstElementChild);
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
b as default
|
|
50
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var s=(t,o,r)=>new Promise((c,i)=>{var u=e=>{try{n(r.next(e))}catch(a){i(a)}},p=e=>{try{n(r.throw(e))}catch(a){i(a)}},n=e=>e.done?c(e.value):Promise.resolve(e.value).then(u,p);n((r=r.apply(t,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../Store-Blf4msDz.cjs");require("construct-style-sheets-polyfill");require("../../../index-OE2INULi.cjs");require("../../../ticker/index.cjs");const g=require("../../../vite-DzanPumM.cjs");function h(){return{name:"aptechka",clientEntrypoint:"aptechka/jsx/integrations/astro/client",serverEntrypoint:"aptechka/jsx/integrations/astro/server"}}function d(){return{name:"aptechka",hooks:{"astro:config:setup":t=>s(this,null,function*(){t.addRenderer(h()),t.updateConfig({vite:{plugins:[g.aptechkaVite()],optimizeDeps:{include:["aptechka/jsx/integrations/astro/client"],exclude:["aptechka/jsx/integrations/astro/server"]},esbuild:{jsxFactory:"h",jsxFragment:"Fragment",jsxInject:"import { h, Fragment } from 'aptechka/jsx'"}}})})}}}exports.AstroIntegration=d;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var o = (e, s, r) => new Promise((p, i) => {
|
|
2
|
+
var c = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
a(r.next(t));
|
|
5
|
+
} catch (n) {
|
|
6
|
+
i(n);
|
|
7
|
+
}
|
|
8
|
+
}, m = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
a(r.throw(t));
|
|
11
|
+
} catch (n) {
|
|
12
|
+
i(n);
|
|
13
|
+
}
|
|
14
|
+
}, a = (t) => t.done ? p(t.value) : Promise.resolve(t.value).then(c, m);
|
|
15
|
+
a((r = r.apply(e, s)).next());
|
|
16
|
+
});
|
|
17
|
+
import "../../../Store-ZThXYBQd.js";
|
|
18
|
+
import "construct-style-sheets-polyfill";
|
|
19
|
+
import "../../../index-e9eDuagL.js";
|
|
20
|
+
import "../../../ticker/index.js";
|
|
21
|
+
import { a as g } from "../../../vite-C-i3hVDL.js";
|
|
22
|
+
function h() {
|
|
23
|
+
return {
|
|
24
|
+
name: "aptechka",
|
|
25
|
+
clientEntrypoint: "aptechka/jsx/integrations/astro/client",
|
|
26
|
+
serverEntrypoint: "aptechka/jsx/integrations/astro/server"
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function f() {
|
|
30
|
+
return {
|
|
31
|
+
name: "aptechka",
|
|
32
|
+
hooks: {
|
|
33
|
+
"astro:config:setup": (e) => o(this, null, function* () {
|
|
34
|
+
e.addRenderer(h()), e.updateConfig({
|
|
35
|
+
vite: {
|
|
36
|
+
plugins: [g()],
|
|
37
|
+
optimizeDeps: {
|
|
38
|
+
include: ["aptechka/jsx/integrations/astro/client"],
|
|
39
|
+
exclude: ["aptechka/jsx/integrations/astro/server"]
|
|
40
|
+
},
|
|
41
|
+
esbuild: {
|
|
42
|
+
jsxFactory: "h",
|
|
43
|
+
jsxFragment: "Fragment",
|
|
44
|
+
jsxInject: "import { h, Fragment } from 'aptechka/jsx'"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
})
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
f as AstroIntegration
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var c=(n,a,e)=>new Promise((s,p)=>{var u=t=>{try{r(e.next(t))}catch(o){p(o)}},i=t=>{try{r(e.throw(t))}catch(o){p(o)}},r=t=>t.done?s(t.value):Promise.resolve(t.value).then(u,i);r((e=e.apply(n,a)).next())});function d(n){return c(this,null,function*(){return typeof n=="function"})}function f(n,a,e,s){return c(this,null,function*(){return{html:"TODO"}})}const m={name:"aptechka",check:d,renderToStaticMarkup:f,supportsAstroStaticSlot:!0};module.exports=m;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var a = (n, c, e) => new Promise((p, s) => {
|
|
2
|
+
var u = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
r(e.next(t));
|
|
5
|
+
} catch (o) {
|
|
6
|
+
s(o);
|
|
7
|
+
}
|
|
8
|
+
}, d = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
r(e.throw(t));
|
|
11
|
+
} catch (o) {
|
|
12
|
+
s(o);
|
|
13
|
+
}
|
|
14
|
+
}, r = (t) => t.done ? p(t.value) : Promise.resolve(t.value).then(u, d);
|
|
15
|
+
r((e = e.apply(n, c)).next());
|
|
16
|
+
});
|
|
17
|
+
function f(n) {
|
|
18
|
+
return a(this, null, function* () {
|
|
19
|
+
return typeof n == "function";
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function i(n, c, e, p) {
|
|
23
|
+
return a(this, null, function* () {
|
|
24
|
+
return { html: "TODO" };
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
const m = {
|
|
28
|
+
name: "aptechka",
|
|
29
|
+
check: f,
|
|
30
|
+
renderToStaticMarkup: i,
|
|
31
|
+
supportsAstroStaticSlot: !0
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
m as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface hmrPluginOptions {
|
|
2
|
+
__dev?: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare function aptechkaVite(options?: hmrPluginOptions): {
|
|
5
|
+
name: string;
|
|
6
|
+
apply: "serve";
|
|
7
|
+
transform(code: string, id: string): {
|
|
8
|
+
code: string;
|
|
9
|
+
map: null;
|
|
10
|
+
} | null;
|
|
11
|
+
config(_config: any, opt: any): {
|
|
12
|
+
esbuild: {
|
|
13
|
+
jsxFactory: string;
|
|
14
|
+
jsxFragment: string;
|
|
15
|
+
jsxInject: string;
|
|
16
|
+
};
|
|
17
|
+
define: {
|
|
18
|
+
__JSX_HMR_DEV__: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
package/lib/jsx/render.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function render(container: ParentNode, Component: JSX.Component, params?: object): any;
|
|
1
|
+
export declare function render(container: ParentNode, Component: JSX.Component, params?: object, children?: any): any;
|