aptechka 0.3.1 → 0.4.0
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/{Damped-BvkThM-2.cjs → Damped-B0eRyTcV.cjs} +1 -1
- package/lib/{Damped-DEHDBwBz.js → Damped-Do9H-LKf.js} +1 -1
- package/lib/{Derived-Bc88XJ8J.js → Derived-Dbjm-dob.js} +1 -1
- package/lib/{Derived-SjPdLJiZ.cjs → Derived-vGokdC4b.cjs} +1 -1
- package/lib/{SourceManager-CI6NfLzW.cjs → SourceManager-CzcqsC3z.cjs} +1 -1
- package/lib/{SourceManager-BoP9RAJr.js → SourceManager-noBYGNeX.js} +1 -1
- package/lib/{Store-JOKrNVEr.js → Store-DdDuj5hz.js} +42 -41
- package/lib/Store-Dis8QUAR.cjs +1 -0
- package/lib/{Viewport-COsaberc.cjs → Viewport-CRLSlcoi.cjs} +1 -1
- package/lib/{Viewport-CXY5xcGJ.js → Viewport-VSV_isot.js} +1 -1
- package/lib/{WheelControls-BJdZsEkS.js → WheelControls-BqO_fTyY.js} +1 -1
- package/lib/{WheelControls-CctFwJwY.cjs → WheelControls-fiz52vcl.cjs} +1 -1
- package/lib/abstract-elements/index.cjs +1 -1
- package/lib/abstract-elements/index.js +2 -2
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +2 -2
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +2 -2
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +3 -3
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +2 -2
- package/lib/{createStylesheet-De-6zF24.cjs → createStylesheet-B4vLzvah.cjs} +1 -1
- package/lib/{createStylesheet-CYZlwj0H.js → createStylesheet-CR-XQRVT.js} +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/dom-0S_WDL4g.js +42 -0
- package/lib/dom-JBOkFLTh.cjs +1 -0
- package/lib/element-constructor/ElementConstructor.d.ts +2 -0
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +113 -114
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +1 -1
- package/lib/en3/core/en3.d.ts +2 -1
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +6 -6
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/{index-8MIh-Dcx.js → index-D-FPaxdJ.js} +3 -3
- package/lib/{index-CHamNqUl.cjs → index-MKoD8NCT.cjs} +1 -1
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +1 -1
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +1 -1
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +3 -3
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +1 -1
- package/lib/resized/index.cjs +1 -1
- package/lib/resized/index.js +1 -1
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +93 -98
- package/lib/scroll/ScrollElement.d.ts +0 -22
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +103 -127
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.js +16 -17
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +2 -2
- package/lib/store/Store.d.ts +1 -0
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +119 -48
- package/lib/studio/index.cjs +1 -1
- package/lib/studio/index.js +17 -17
- package/lib/tags-D3-tO-m6.cjs +1 -0
- package/lib/tags-D9nd9mMM.js +846 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -2
- package/lib/utils/dom.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +68 -67
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +1 -65
- package/lib/ComponentElement-CIl1lnep.cjs +0 -1
- package/lib/ComponentElement-CzGRgBvs.js +0 -76
- package/lib/Composed-ClTo1f0b.js +0 -79
- package/lib/Composed-Mdr4ZFbI.cjs +0 -1
- package/lib/ElementConstructor-C_HDpVEZ.cjs +0 -1
- package/lib/ElementConstructor-ChgHpqb6.js +0 -326
- package/lib/Store-D0_rDIsE.cjs +0 -1
- package/lib/animation/hooks/index.cjs +0 -1
- package/lib/animation/hooks/index.d.ts +0 -9
- package/lib/animation/hooks/index.js +0 -32
- package/lib/attribute/hooks/index.d.ts +0 -3
- package/lib/controls/hooks/index.d.ts +0 -1
- package/lib/createStore-BSUQyZjo.js +0 -15
- package/lib/createStore-D61G4jpF.cjs +0 -1
- package/lib/dom-BY7JhTx5.js +0 -24
- package/lib/dom-qY2LdCVL.cjs +0 -1
- package/lib/element-resizer/hooks/index.cjs +0 -1
- package/lib/element-resizer/hooks/index.d.ts +0 -5
- package/lib/element-resizer/hooks/index.js +0 -12
- package/lib/instantiate-CXUQ7AmI.js +0 -72
- package/lib/instantiate-D63dC3Vr.cjs +0 -1
- package/lib/intersector/hooks/index.cjs +0 -1
- package/lib/intersector/hooks/index.d.ts +0 -5
- package/lib/intersector/hooks/index.js +0 -12
- package/lib/jsx/ComponentElement.d.ts +0 -26
- package/lib/jsx/h.d.ts +0 -4
- package/lib/jsx/hooks/attachInternals.d.ts +0 -1
- package/lib/jsx/hooks/attachShadow.d.ts +0 -1
- package/lib/jsx/hooks/attachStylesheet.d.ts +0 -3
- package/lib/jsx/hooks/createContext.d.ts +0 -2
- package/lib/jsx/hooks/createStore.d.ts +0 -4
- package/lib/jsx/hooks/index.cjs +0 -1
- package/lib/jsx/hooks/index.d.ts +0 -8
- package/lib/jsx/hooks/index.js +0 -73
- package/lib/jsx/hooks/onConnect.d.ts +0 -3
- package/lib/jsx/hooks/onDisconnect.d.ts +0 -3
- package/lib/jsx/hooks/withCurrentComponent.d.ts +0 -3
- package/lib/jsx/index.cjs +0 -1
- package/lib/jsx/index.d.ts +0 -5
- package/lib/jsx/index.js +0 -27
- package/lib/jsx/instantiate.d.ts +0 -1
- package/lib/jsx/register.d.ts +0 -1
- package/lib/jsx/render.d.ts +0 -1
- package/lib/jsx/type.d.ts +0 -186
- package/lib/onConnect-CNMynOhK.js +0 -9
- package/lib/onConnect-DyAwFqQQ.cjs +0 -1
- package/lib/store/hooks/index.cjs +0 -1
- package/lib/store/hooks/index.d.ts +0 -7
- package/lib/store/hooks/index.js +0 -26
- package/lib/tags-DSmoyoPZ.js +0 -485
- package/lib/tags-Di21YbUL.cjs +0 -1
- package/lib/ticker/hooks/index.cjs +0 -1
- package/lib/ticker/hooks/index.d.ts +0 -6
- package/lib/ticker/hooks/index.js +0 -23
- package/lib/window-resizer/hooks/index.cjs +0 -1
- package/lib/window-resizer/hooks/index.d.ts +0 -3
- package/lib/window-resizer/hooks/index.js +0 -9
- package/lib/withCurrentComponent-BDsFmjJ9.cjs +0 -1
- package/lib/withCurrentComponent-DIBND_yO.js +0 -7
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
var R = (l, e, s) => {
|
|
2
|
-
if (!e.has(l))
|
|
3
|
-
throw TypeError("Cannot " + s);
|
|
4
|
-
};
|
|
5
|
-
var n = (l, e, s) => (R(l, e, "read from private field"), s ? s.call(l) : e.get(l)), f = (l, e, s) => {
|
|
6
|
-
if (e.has(l))
|
|
7
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
e instanceof WeakSet ? e.add(l) : e.set(l, s);
|
|
9
|
-
}, K = (l, e, s, t) => (R(l, e, "write to private field"), t ? t.call(l, s) : e.set(l, s), s);
|
|
10
|
-
var a = (l, e, s) => (R(l, e, "access private method"), s);
|
|
11
|
-
import { S as m } from "./Store-JOKrNVEr.js";
|
|
12
|
-
import { i as fe } from "./browser-0zX67oeU.js";
|
|
13
|
-
import { i as U } from "./object-R34VLqhp.js";
|
|
14
|
-
import { c as Q, u as re } from "./string-3lAkpJJP.js";
|
|
15
|
-
import { connector as ce } from "./connector/index.js";
|
|
16
|
-
const le = /* @__PURE__ */ new Set([
|
|
17
|
-
// 'a', 'style', 'title', 'script',
|
|
18
|
-
"animate",
|
|
19
|
-
"animateMotion",
|
|
20
|
-
"animateTransform",
|
|
21
|
-
"circle",
|
|
22
|
-
"clipPath",
|
|
23
|
-
"defs",
|
|
24
|
-
"desc",
|
|
25
|
-
"ellipse",
|
|
26
|
-
"feBlend",
|
|
27
|
-
"feColorMatrix",
|
|
28
|
-
"feComponentTransfer",
|
|
29
|
-
"feComposite",
|
|
30
|
-
"feConvolveMatrix",
|
|
31
|
-
"feDiffuseLighting",
|
|
32
|
-
"feDisplacementMap",
|
|
33
|
-
"feDistantLight",
|
|
34
|
-
"feDropShadow",
|
|
35
|
-
"feFlood",
|
|
36
|
-
"feFuncA",
|
|
37
|
-
"feFuncB",
|
|
38
|
-
"feFuncG",
|
|
39
|
-
"feFuncR",
|
|
40
|
-
"feGaussianBlur",
|
|
41
|
-
"feImage",
|
|
42
|
-
"feMerge",
|
|
43
|
-
"feMergeNode",
|
|
44
|
-
"feMorphology",
|
|
45
|
-
"feOffset",
|
|
46
|
-
"fePointLight",
|
|
47
|
-
"feSpecularLighting",
|
|
48
|
-
"feSpotLight",
|
|
49
|
-
"feTile",
|
|
50
|
-
"feTurbulence",
|
|
51
|
-
"filter",
|
|
52
|
-
"foreignObject",
|
|
53
|
-
"g",
|
|
54
|
-
"image",
|
|
55
|
-
"line",
|
|
56
|
-
"linearGradient",
|
|
57
|
-
"listener",
|
|
58
|
-
"marker",
|
|
59
|
-
"mask",
|
|
60
|
-
"metadata",
|
|
61
|
-
"mpath",
|
|
62
|
-
"path",
|
|
63
|
-
"pattern",
|
|
64
|
-
"polygon",
|
|
65
|
-
"polyline",
|
|
66
|
-
"radialGradient",
|
|
67
|
-
"rect",
|
|
68
|
-
"set",
|
|
69
|
-
"solidColor",
|
|
70
|
-
"stop",
|
|
71
|
-
"svg",
|
|
72
|
-
"switch",
|
|
73
|
-
"symbol",
|
|
74
|
-
"text",
|
|
75
|
-
"textPath",
|
|
76
|
-
"title",
|
|
77
|
-
"tspan",
|
|
78
|
-
"view"
|
|
79
|
-
]);
|
|
80
|
-
var r, h, d, T, Z, w, _, v, O, y, W, A, j, M, ee, x, te, D, se, S, q, p, z, k, ie, H, ne, E, J, g, L, b, V, F, oe, P, ae, C, Y, N, I, B, G;
|
|
81
|
-
const $ = class $ {
|
|
82
|
-
constructor(...e) {
|
|
83
|
-
f(this, T);
|
|
84
|
-
f(this, w);
|
|
85
|
-
f(this, v);
|
|
86
|
-
f(this, y);
|
|
87
|
-
f(this, A);
|
|
88
|
-
f(this, M);
|
|
89
|
-
f(this, x);
|
|
90
|
-
f(this, D);
|
|
91
|
-
f(this, S);
|
|
92
|
-
f(this, p);
|
|
93
|
-
f(this, k);
|
|
94
|
-
f(this, H);
|
|
95
|
-
f(this, E);
|
|
96
|
-
f(this, g);
|
|
97
|
-
f(this, b);
|
|
98
|
-
f(this, F);
|
|
99
|
-
f(this, P);
|
|
100
|
-
f(this, C);
|
|
101
|
-
f(this, N);
|
|
102
|
-
f(this, r, void 0);
|
|
103
|
-
f(this, h, /* @__PURE__ */ new Set());
|
|
104
|
-
f(this, d, /* @__PURE__ */ new Set());
|
|
105
|
-
f(this, B, () => {
|
|
106
|
-
n(this, h).forEach((e) => {
|
|
107
|
-
e();
|
|
108
|
-
}), n(this, h).clear();
|
|
109
|
-
});
|
|
110
|
-
f(this, G, (e) => {
|
|
111
|
-
n(this, d).forEach((s) => {
|
|
112
|
-
s(e);
|
|
113
|
-
}), n(this, d).clear();
|
|
114
|
-
});
|
|
115
|
-
const s = e[0], t = e[1];
|
|
116
|
-
K(this, r, a(this, T, Z).call(this, s, t == null ? void 0 : t.forceSvg)), a(this, v, O).call(this, t);
|
|
117
|
-
}
|
|
118
|
-
get node() {
|
|
119
|
-
return n(this, r);
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
r = new WeakMap(), h = new WeakMap(), d = new WeakMap(), T = new WeakSet(), Z = function(e, s) {
|
|
123
|
-
let t = null;
|
|
124
|
-
if (e instanceof Node)
|
|
125
|
-
t = e;
|
|
126
|
-
else if (typeof e == "string")
|
|
127
|
-
if (!e.includes("<") && e.includes("-"))
|
|
128
|
-
t = new (customElements.get(e))();
|
|
129
|
-
else if (e.includes("<")) {
|
|
130
|
-
const i = document.createElement("div");
|
|
131
|
-
i.innerHTML = e, t = i.firstElementChild;
|
|
132
|
-
} else
|
|
133
|
-
le.has(e) || s ? t = document.createElementNS(
|
|
134
|
-
"http://www.w3.org/2000/svg",
|
|
135
|
-
e
|
|
136
|
-
) : t = document.createElement(e);
|
|
137
|
-
else
|
|
138
|
-
t = document.createElement("div");
|
|
139
|
-
return t;
|
|
140
|
-
}, w = new WeakSet(), _ = function(e) {
|
|
141
|
-
return e instanceof HTMLElement || e instanceof SVGElement;
|
|
142
|
-
}, v = new WeakSet(), O = function(e) {
|
|
143
|
-
if (!e)
|
|
144
|
-
return;
|
|
145
|
-
const s = a(this, w, _).call(this, n(this, r)), t = e.ref;
|
|
146
|
-
delete e.ref, e != null && e.onConnect && (n(this, h).add(e.onConnect), delete e.onConnect), e != null && e.onDisconnect && (n(this, d).add(e.onDisconnect), delete e.onDisconnect);
|
|
147
|
-
let i, o;
|
|
148
|
-
for (const c in e) {
|
|
149
|
-
const u = e[c];
|
|
150
|
-
c === "class" && s ? a(this, y, W).call(this, u) : c === "style" && s ? a(this, x, te).call(this, u) : c === "lightChildren" ? a(this, g, L).call(this, n(this, r), u) : c === "children" ? a(this, g, L).call(this, n(this, r) instanceof Element ? n(this, r).shadowRoot || n(this, r) : n(this, r), u) : c.startsWith("on") ? (o || (o = {}), o[c] = u) : (i || (i = {}), i[c] = u);
|
|
151
|
-
}
|
|
152
|
-
if (a(this, H, ne).call(this, i), a(this, k, ie).call(this, o), t && (typeof t == "function" ? t(n(this, r)) : t.current = n(this, r)), fe && (n(this, d).size || n(this, h).size)) {
|
|
153
|
-
const c = n(this, r) instanceof DocumentFragment ? n(this, r).firstChild : n(this, r);
|
|
154
|
-
ce.subscribe(c, {
|
|
155
|
-
connectCallback: n(this, B),
|
|
156
|
-
disconnectCallback: n(this, G),
|
|
157
|
-
unsubscribeAfterDisconnect: !0,
|
|
158
|
-
maxWaitSec: 20
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
}, y = new WeakSet(), W = function(e) {
|
|
162
|
-
const s = n(this, r);
|
|
163
|
-
if (e) {
|
|
164
|
-
if (typeof e == "string")
|
|
165
|
-
s.classList.add(e);
|
|
166
|
-
else if (Array.isArray(e))
|
|
167
|
-
e.forEach((t) => {
|
|
168
|
-
a(this, y, W).call(this, t);
|
|
169
|
-
});
|
|
170
|
-
else if (typeof e == "object")
|
|
171
|
-
if (e instanceof m)
|
|
172
|
-
a(this, A, j).call(this, e);
|
|
173
|
-
else
|
|
174
|
-
for (const t in e) {
|
|
175
|
-
const i = e[t];
|
|
176
|
-
i instanceof m ? a(this, M, ee).call(this, t, i) : i ? s.classList.add(t) : s.classList.remove(t);
|
|
177
|
-
}
|
|
178
|
-
} else
|
|
179
|
-
return;
|
|
180
|
-
}, A = new WeakSet(), j = function(e) {
|
|
181
|
-
const s = n(this, r);
|
|
182
|
-
n(this, d).add(
|
|
183
|
-
e.subscribe(({ current: t, previous: i }) => {
|
|
184
|
-
i && [i].flat().forEach((o) => {
|
|
185
|
-
o && s.classList.remove(o);
|
|
186
|
-
}), t && [t].flat().forEach((o) => {
|
|
187
|
-
o && s.classList.add(o);
|
|
188
|
-
});
|
|
189
|
-
})
|
|
190
|
-
);
|
|
191
|
-
}, M = new WeakSet(), ee = function(e, s) {
|
|
192
|
-
const t = n(this, r);
|
|
193
|
-
n(this, d).add(
|
|
194
|
-
s.subscribe(({ current: i }) => {
|
|
195
|
-
i ? t.classList.add(e) : t.classList.remove(e);
|
|
196
|
-
})
|
|
197
|
-
);
|
|
198
|
-
}, x = new WeakSet(), te = function(e) {
|
|
199
|
-
if (!e)
|
|
200
|
-
return;
|
|
201
|
-
const s = n(this, r);
|
|
202
|
-
s.tagName === "style" || s.tagName === "STYLE" ? a(this, S, q).call(this, e) : a(this, D, se).call(this, e);
|
|
203
|
-
}, D = new WeakSet(), se = function(e) {
|
|
204
|
-
for (const s in e) {
|
|
205
|
-
const t = s, i = e[t];
|
|
206
|
-
i instanceof m ? n(this, d).add(
|
|
207
|
-
i.subscribe(({ current: o }) => {
|
|
208
|
-
a(this, p, z).call(this, t, o);
|
|
209
|
-
})
|
|
210
|
-
) : a(this, p, z).call(this, t, i);
|
|
211
|
-
}
|
|
212
|
-
}, S = new WeakSet(), q = function(e) {
|
|
213
|
-
const s = n(this, r);
|
|
214
|
-
for (const t in e) {
|
|
215
|
-
const i = e[t];
|
|
216
|
-
if (typeof i == "object" && !(i instanceof m))
|
|
217
|
-
s.appendChild(document.createTextNode(`${t} {`)), a(this, S, q).call(this, i), s.appendChild(document.createTextNode("}"));
|
|
218
|
-
else if (i instanceof m) {
|
|
219
|
-
const o = document.createTextNode("");
|
|
220
|
-
n(this, d).add(
|
|
221
|
-
i.subscribe((c) => {
|
|
222
|
-
c.current ? o.nodeValue = `${Q(t)}: ${c.current};` : o.nodeValue = "";
|
|
223
|
-
})
|
|
224
|
-
), s.appendChild(o);
|
|
225
|
-
} else
|
|
226
|
-
s.appendChild(
|
|
227
|
-
document.createTextNode(`${Q(t)}: ${i};`)
|
|
228
|
-
);
|
|
229
|
-
}
|
|
230
|
-
}, p = new WeakSet(), z = function(e, s) {
|
|
231
|
-
const t = n(this, r);
|
|
232
|
-
e.includes("--") ? s ? t.style.setProperty(e, s) : t.style.removeProperty(e) : s ? t.style[e] = s : t.style[e] = "";
|
|
233
|
-
}, k = new WeakSet(), ie = function(e) {
|
|
234
|
-
if (!e)
|
|
235
|
-
return;
|
|
236
|
-
const s = n(this, r);
|
|
237
|
-
for (const t in e) {
|
|
238
|
-
const i = t, o = re(
|
|
239
|
-
i.split("on").slice(1).join("on")
|
|
240
|
-
), c = e[i];
|
|
241
|
-
typeof c == "object" ? s.addEventListener(
|
|
242
|
-
o,
|
|
243
|
-
c.callback,
|
|
244
|
-
c.options
|
|
245
|
-
) : typeof c == "function" && s.addEventListener(o, c);
|
|
246
|
-
}
|
|
247
|
-
}, H = new WeakSet(), ne = function(e) {
|
|
248
|
-
for (const s in e) {
|
|
249
|
-
const t = e[s];
|
|
250
|
-
t instanceof m ? n(this, d).add(
|
|
251
|
-
t.subscribe(({ current: i }) => {
|
|
252
|
-
a(this, E, J).call(this, s, i);
|
|
253
|
-
})
|
|
254
|
-
) : a(this, E, J).call(this, s, t);
|
|
255
|
-
}
|
|
256
|
-
}, E = new WeakSet(), J = function(e, s) {
|
|
257
|
-
var i, o;
|
|
258
|
-
const t = n(this, r);
|
|
259
|
-
e in t && !((o = (i = t.constructor) == null ? void 0 : i.observedAttributes) != null && o.includes(e)) ? s != null && (t[e] = s.toString()) : s != null && t.setAttribute(e, s.toString());
|
|
260
|
-
}, g = new WeakSet(), L = function(e, s) {
|
|
261
|
-
s && (s = [s].flat(), s.forEach((t) => {
|
|
262
|
-
if (t instanceof m) {
|
|
263
|
-
const i = document.createElement("div");
|
|
264
|
-
i.style.display = "contents", e.appendChild(i), n(this, d).add(
|
|
265
|
-
t.subscribe(({ current: o }) => {
|
|
266
|
-
i.dispatchEvent(
|
|
267
|
-
new CustomEvent("beforeChildrenChange", {
|
|
268
|
-
bubbles: !0,
|
|
269
|
-
composed: !0
|
|
270
|
-
})
|
|
271
|
-
), a(this, P, ae).call(this, i, a(this, F, oe).call(this, o), Array.from(i.childNodes)), i.dispatchEvent(
|
|
272
|
-
new CustomEvent("afterChildrenChange", {
|
|
273
|
-
bubbles: !0,
|
|
274
|
-
composed: !0
|
|
275
|
-
})
|
|
276
|
-
);
|
|
277
|
-
})
|
|
278
|
-
);
|
|
279
|
-
} else if (t instanceof $)
|
|
280
|
-
a(this, b, V).call(this, e, t.node);
|
|
281
|
-
else if (t instanceof Function)
|
|
282
|
-
a(this, g, L).call(this, e, U(t) ? new t() : t());
|
|
283
|
-
else {
|
|
284
|
-
const i = a(this, N, I).call(this, t);
|
|
285
|
-
i instanceof Node && a(this, b, V).call(this, e, i);
|
|
286
|
-
}
|
|
287
|
-
}));
|
|
288
|
-
}, b = new WeakSet(), V = function(e, s) {
|
|
289
|
-
!(e instanceof ShadowRoot) && s instanceof HTMLElement && s.tagName === "STYLE" ? (n(this, h).add(() => {
|
|
290
|
-
[...document.head.querySelectorAll("style")].find((i) => i.outerHTML === s.outerHTML) || document.head.appendChild(s);
|
|
291
|
-
}), n(this, d).add(() => {
|
|
292
|
-
s.remove();
|
|
293
|
-
})) : e.appendChild(s);
|
|
294
|
-
}, F = new WeakSet(), oe = function(e) {
|
|
295
|
-
return [e].flat().map((t) => t instanceof $ ? t.node : typeof t == "function" ? U(t) ? new t() : t() : a(this, N, I).call(this, t)).flat().filter(Boolean);
|
|
296
|
-
}, P = new WeakSet(), ae = function(e, s, t) {
|
|
297
|
-
t.length > s.length && t.forEach((i) => {
|
|
298
|
-
s.find((o) => a(this, C, Y).call(this, i, o)) || (e.removeChild(i), t = t.filter((o) => o !== i));
|
|
299
|
-
}), t.forEach((i, o) => {
|
|
300
|
-
if (o < s.length) {
|
|
301
|
-
const c = s[o];
|
|
302
|
-
a(this, C, Y).call(this, i, c) || e.replaceChild(c, i);
|
|
303
|
-
} else
|
|
304
|
-
e.removeChild(i);
|
|
305
|
-
});
|
|
306
|
-
for (let i = t.length; i < s.length; i++)
|
|
307
|
-
e.appendChild(s[i]);
|
|
308
|
-
}, C = new WeakSet(), Y = function(e, s) {
|
|
309
|
-
return s ? s instanceof Node ? e.isEqualNode(s) : e.textContent === s.toString() : !1;
|
|
310
|
-
}, N = new WeakSet(), I = function(e) {
|
|
311
|
-
if (e instanceof Node)
|
|
312
|
-
return e;
|
|
313
|
-
if (e != null) {
|
|
314
|
-
const s = String(e);
|
|
315
|
-
if (s.trim().startsWith("<") && s.trim().endsWith(">")) {
|
|
316
|
-
const t = document.createElement("div");
|
|
317
|
-
return t.innerHTML = s, t.firstElementChild;
|
|
318
|
-
} else
|
|
319
|
-
return document.createTextNode(s);
|
|
320
|
-
} else
|
|
321
|
-
return;
|
|
322
|
-
}, B = new WeakMap(), G = new WeakMap();
|
|
323
|
-
let X = $;
|
|
324
|
-
export {
|
|
325
|
-
X as E
|
|
326
|
-
};
|
package/lib/Store-D0_rDIsE.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var v=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(v(s,t,"read from private field"),e?e.call(s):t.get(s)),a=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},i=(s,t,e,h)=>(v(s,t,"write to private field"),h?h.call(s,e):t.set(s,e),e);var R=(s,t,e)=>(v(s,t,"access private method"),e);const A=require("./browser-CpzFX2xg.cjs");var l,o,S;class M{constructor(){a(this,l,null);a(this,o,"");a(this,S,"");A.isBrowser&&(i(this,o,document.documentElement.getAttribute("data-project")||"unnamed"),i(this,S,r(this,o)?r(this,o)+"-store-registry":"store-registry"))}get projectName(){return r(this,o)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?i(this,l,JSON.parse(t)):i(this,l,t),u.current.forEach(e=>{this.updateStore(e)}))}resetState(){u.current.forEach(t=>{t.reset()}),this.saveState()}updateStore(t){var h,w;if(!Array.isArray((h=r(this,l))==null?void 0:h.stores))return t;const e=t.passport;if(e){const N=(w=r(this,l))==null?void 0:w.stores.find(z=>z.name===e.name);N&&(t.current=N.value)}return t}getState(){const t={stores:[]};return u.current.forEach(e=>{e.passport&&(t.stores.find(h=>h.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}l=new WeakMap,o=new WeakMap,S=new WeakMap;const E=new M;var d,m,g,f,y,n,b,c,p,q;class j{constructor(t,e){a(this,p);a(this,d,void 0);a(this,m,void 0);a(this,g,void 0);a(this,f,void 0);a(this,y,void 0);a(this,n,new Set);a(this,b,void 0);a(this,c,void 0);i(this,d,e==null?void 0:e.passport),i(this,m,t),i(this,g,void 0),i(this,f,t),i(this,y,(e==null?void 0:e.equalityCheck)||((h,w)=>h===w)),e!=null&&e.validate&&this.addMiddleware(e.validate),i(this,b,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,d)&&E.updateStore(this)}get passport(){return r(this,d)}get initial(){return r(this,m)}get previous(){return r(this,g)}get current(){return r(this,f)}set current(t){if(!r(this,y).call(this,r(this,f),t)){if(i(this,g,r(this,f)),r(this,c))for(const e of r(this,c))t=e(t);i(this,f,t),R(this,p,q).call(this)}}get subscribers(){return r(this,n)}get entry(){return{current:r(this,f),previous:r(this,g)}}addMiddleware(t){r(this,c)||i(this,c,new Set),r(this,c).add(t)}removeMiddleware(t){var e,h;(e=r(this,c))==null||e.delete(t),(h=r(this,c))!=null&&h.size||i(this,c,void 0)}subscribe(t){return r(this,d)&&!r(this,n).size&&C(this),r(this,n).add(t),r(this,b)||t(this.entry),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,n).delete(t),r(this,d)&&!r(this,n).size&&k(this)}reset(){this.current=this.initial}close(){r(this,n).clear(),r(this,d)&&k(this)}}d=new WeakMap,m=new WeakMap,g=new WeakMap,f=new WeakMap,y=new WeakMap,n=new WeakMap,b=new WeakMap,c=new WeakMap,p=new WeakSet,q=function(){for(const t of r(this,n))t(this.entry)};const u=new j([]);function C(s){u.current.includes(s)||(u.current=[...u.current,s])}function k(s){u.current.includes(s)&&(u.current=u.current.filter(t=>t!==s))}exports.Store=j;exports.activeStores=u;exports.storeRegistry=E;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var t=Object.defineProperty,m=Object.defineProperties;var n=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var d=(c,e,r)=>e in c?t(c,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[e]=r,u=(c,e)=>{for(var r in e||(e={}))w.call(e,r)&&d(c,r,e[r]);if(l)for(var r of l(e))S.call(e,r)&&d(c,r,e[r]);return c},a=(c,e)=>m(c,n(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../createStore-D61G4jpF.cjs");require("../../Store-D0_rDIsE.cjs");const q=require("../../Damped-BvkThM-2.cjs"),D=require("../index.cjs");function T(c,e){return g._createStore(r=>new D.Tweened(c,a(u({},e),{culling:(e==null?void 0:e.culling)===!0?r:e==null?void 0:e.culling})))}function f(c,e){return g._createStore(r=>new q.Damped(c,a(u({},e),{culling:(e==null?void 0:e.culling)===!0?r:e==null?void 0:e.culling})))}exports.createDamped=f;exports.createTweened=T;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Damped, DampedOptions, Tweened, TweenedOptions } from '..';
|
|
2
|
-
import { ElementOrSelector } from '../../utils';
|
|
3
|
-
|
|
4
|
-
export declare function createTweened(initialValue?: number, options?: Omit<TweenedOptions, ''> & {
|
|
5
|
-
culling?: ElementOrSelector | boolean;
|
|
6
|
-
}): Tweened;
|
|
7
|
-
export declare function createDamped(initialValue?: number, options?: Omit<DampedOptions, ''> & {
|
|
8
|
-
culling?: ElementOrSelector | boolean;
|
|
9
|
-
}): Damped;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var f = Object.defineProperty, d = Object.defineProperties;
|
|
2
|
-
var w = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var m = Object.getOwnPropertySymbols;
|
|
4
|
-
var D = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var a = (u, e, r) => e in u ? f(u, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : u[e] = r, l = (u, e) => {
|
|
6
|
-
for (var r in e || (e = {}))
|
|
7
|
-
D.call(e, r) && a(u, r, e[r]);
|
|
8
|
-
if (m)
|
|
9
|
-
for (var r of m(e))
|
|
10
|
-
T.call(e, r) && a(u, r, e[r]);
|
|
11
|
-
return u;
|
|
12
|
-
}, c = (u, e) => d(u, w(e));
|
|
13
|
-
import { _ as g } from "../../createStore-BSUQyZjo.js";
|
|
14
|
-
import "../../Store-JOKrNVEr.js";
|
|
15
|
-
import { D as _ } from "../../Damped-DEHDBwBz.js";
|
|
16
|
-
import { Tweened as x } from "../index.js";
|
|
17
|
-
function q(u, e) {
|
|
18
|
-
return g(
|
|
19
|
-
(r) => new x(u, c(l({}, e), {
|
|
20
|
-
culling: (e == null ? void 0 : e.culling) === !0 ? r : e == null ? void 0 : e.culling
|
|
21
|
-
}))
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
function v(u, e) {
|
|
25
|
-
return g((r) => new _(u, c(l({}, e), {
|
|
26
|
-
culling: (e == null ? void 0 : e.culling) === !0 ? r : e == null ? void 0 : e.culling
|
|
27
|
-
})));
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
v as createDamped,
|
|
31
|
-
q as createTweened
|
|
32
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { c as t } from "./ComponentElement-CzGRgBvs.js";
|
|
2
|
-
import { w as e } from "./withCurrentComponent-DIBND_yO.js";
|
|
3
|
-
function c(o) {
|
|
4
|
-
e((n) => {
|
|
5
|
-
n.addDisconnectCallback(o);
|
|
6
|
-
});
|
|
7
|
-
}
|
|
8
|
-
function s(o) {
|
|
9
|
-
const n = typeof o == "function" ? o(t) : o;
|
|
10
|
-
return t && c(() => n.close()), n;
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
s as _,
|
|
14
|
-
c as o
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./ComponentElement-CIl1lnep.cjs"),c=require("./withCurrentComponent-BDsFmjJ9.cjs");function o(n){c.withCurrentComponent(e=>{e.addDisconnectCallback(n)})}function r(n){const e=typeof n=="function"?n(t.currentComponentElement):n;return t.currentComponentElement&&o(()=>e.close()),e}exports._createStore=r;exports.onDisconnect=o;
|
package/lib/dom-BY7JhTx5.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
function r(t, n) {
|
|
2
|
-
if (!t)
|
|
3
|
-
return null;
|
|
4
|
-
let e = t.parentElement;
|
|
5
|
-
return t.parentElement instanceof n || (e = r(t.parentElement, n)), e;
|
|
6
|
-
}
|
|
7
|
-
function f(t, n = document) {
|
|
8
|
-
return typeof t == "string" ? n.querySelector(t) : t;
|
|
9
|
-
}
|
|
10
|
-
function u(t, n = null) {
|
|
11
|
-
if (n = n || t, !t || !(t instanceof HTMLElement))
|
|
12
|
-
return document.body;
|
|
13
|
-
if (n !== t) {
|
|
14
|
-
const e = getComputedStyle(t);
|
|
15
|
-
if (e.overflow.includes("auto") || e.overflow.includes("scroll"))
|
|
16
|
-
return t;
|
|
17
|
-
}
|
|
18
|
-
return u(t.parentNode, n);
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
u as a,
|
|
22
|
-
r as f,
|
|
23
|
-
f as g
|
|
24
|
-
};
|
package/lib/dom-qY2LdCVL.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function r(t,e){if(!t)return null;let n=t.parentElement;return t.parentElement instanceof e||(n=r(t.parentElement,e)),n}function l(t,e=document){return typeof t=="string"?e.querySelector(t):t}function u(t,e=null){if(e=e||t,!t||!(t instanceof HTMLElement))return document.body;if(e!==t){const n=getComputedStyle(t);if(n.overflow.includes("auto")||n.overflow.includes("scroll"))return t}return u(t.parentNode,e)}exports.findParentElement=r;exports.findScrollParentElement=u;exports.getElement=l;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../Store-D0_rDIsE.cjs");const i=require("../../onConnect-DyAwFqQQ.cjs"),c=require("../index.cjs");function l(...e){i.onConnect(n=>{const t=e.length>1?e[0]:n,o=e.length>1?e[1]:e[0];return c.elementResizer.subscribe(t,o)})}exports.onElementResize=l;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ElementOrSelector } from '../../utils';
|
|
2
|
-
import { ElementResizerCallback } from '..';
|
|
3
|
-
|
|
4
|
-
export declare function onElementResize(elementOrSelector: ElementOrSelector, callback: ElementResizerCallback): void;
|
|
5
|
-
export declare function onElementResize(callback: ElementResizerCallback): void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "../../Store-JOKrNVEr.js";
|
|
2
|
-
import { o as m } from "../../onConnect-CNMynOhK.js";
|
|
3
|
-
import { elementResizer as c } from "../index.js";
|
|
4
|
-
function p(...e) {
|
|
5
|
-
m((n) => {
|
|
6
|
-
const t = e.length > 1 ? e[0] : n, o = e.length > 1 ? e[1] : e[0];
|
|
7
|
-
return c.subscribe(t, o);
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
p as onElementResize
|
|
12
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
var _ = Object.defineProperty, g = Object.defineProperties;
|
|
2
|
-
var w = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var s = Object.getOwnPropertySymbols;
|
|
4
|
-
var x = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var C = (e, n, o) => n in e ? _(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o, h = (e, n) => {
|
|
6
|
-
for (var o in n || (n = {}))
|
|
7
|
-
x.call(n, o) && C(e, o, n[o]);
|
|
8
|
-
if (s)
|
|
9
|
-
for (var o of s(n))
|
|
10
|
-
F.call(n, o) && C(e, o, n[o]);
|
|
11
|
-
return e;
|
|
12
|
-
}, y = (e, n) => g(e, w(n));
|
|
13
|
-
import { E } from "./ElementConstructor-ChgHpqb6.js";
|
|
14
|
-
import { c as T } from "./string-3lAkpJJP.js";
|
|
15
|
-
import { C as u, n as v } from "./ComponentElement-CzGRgBvs.js";
|
|
16
|
-
function i(e) {
|
|
17
|
-
const n = Array.isArray(e) ? e : [e];
|
|
18
|
-
let o = [];
|
|
19
|
-
return n.forEach((r) => {
|
|
20
|
-
if (typeof r == "function") {
|
|
21
|
-
const l = r();
|
|
22
|
-
o = [...o, ...i(l)];
|
|
23
|
-
} else
|
|
24
|
-
o.push(r);
|
|
25
|
-
}), o;
|
|
26
|
-
}
|
|
27
|
-
function D(e, n, ...o) {
|
|
28
|
-
var m;
|
|
29
|
-
if (typeof e == "function") {
|
|
30
|
-
if (e === d)
|
|
31
|
-
return d(o);
|
|
32
|
-
const c = n == null ? void 0 : n.__register;
|
|
33
|
-
n == null || delete n.__register;
|
|
34
|
-
const p = `c-${T(e.name)}`;
|
|
35
|
-
let f = customElements.get(p);
|
|
36
|
-
return f || (f = (m = class extends u {
|
|
37
|
-
constructor(A) {
|
|
38
|
-
super(
|
|
39
|
-
c ? {
|
|
40
|
-
tag: e,
|
|
41
|
-
attributes: n,
|
|
42
|
-
children: o
|
|
43
|
-
} : A
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
}, m.formAssociated = e.formAssociated, m), customElements.define(p, f)), c ? f : () => new f({ tag: e, attributes: n, children: o });
|
|
47
|
-
}
|
|
48
|
-
const r = o.map((c) => i(c)).flat();
|
|
49
|
-
let l = null;
|
|
50
|
-
if (e === "component")
|
|
51
|
-
n == null || delete n.lightChildren, l = d(r), v.value = n;
|
|
52
|
-
else {
|
|
53
|
-
const c = n != null && n.lightChildren ? "lightChildren" : "children";
|
|
54
|
-
n == null || delete n.children, l = new E(e, y(h({}, n), {
|
|
55
|
-
[c]: r
|
|
56
|
-
}));
|
|
57
|
-
}
|
|
58
|
-
return l.node;
|
|
59
|
-
}
|
|
60
|
-
function d(e) {
|
|
61
|
-
return new E(document.createDocumentFragment(), {
|
|
62
|
-
children: e
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function q(e, n = null, ...o) {
|
|
66
|
-
return D(e, n, ...o)();
|
|
67
|
-
}
|
|
68
|
-
export {
|
|
69
|
-
d as F,
|
|
70
|
-
D as h,
|
|
71
|
-
q as i
|
|
72
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var _=Object.defineProperty,q=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var p=(e,n,o)=>n in e?_(e,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[n]=o,h=(e,n)=>{for(var o in n||(n={}))F.call(n,o)&&p(e,o,n[o]);if(C)for(var o of C(n))x.call(n,o)&&p(e,o,n[o]);return e},E=(e,n)=>q(e,w(n));const u=require("./ElementConstructor-C_HDpVEZ.cjs"),T=require("./string-vBu90jhV.cjs"),i=require("./ComponentElement-CIl1lnep.cjs");function y(e){const n=Array.isArray(e)?e:[e];let o=[];return n.forEach(r=>{if(typeof r=="function"){const l=r();o=[...o,...y(l)]}else o.push(r)}),o}function g(e,n,...o){var m;if(typeof e=="function"){if(e===s)return s(o);const c=n==null?void 0:n.__register;n==null||delete n.__register;const d=`c-${T.camelToKebab(e.name)}`;let f=customElements.get(d);return f||(f=(m=class extends i.ComponentElement{constructor(A){super(c?{tag:e,attributes:n,children:o}:A)}},m.formAssociated=e.formAssociated,m),customElements.define(d,f)),c?f:()=>new f({tag:e,attributes:n,children:o})}const r=o.map(c=>y(c)).flat();let l=null;if(e==="component")n==null||delete n.lightChildren,l=s(r),i.nextComponentAttributes.value=n;else{const c=n!=null&&n.lightChildren?"lightChildren":"children";n==null||delete n.children,l=new u.ElementConstructor(e,E(h({},n),{[c]:r}))}return l.node}function s(e){return new u.ElementConstructor(document.createDocumentFragment(),{children:e})}function t(e,n=null,...o){return g(e,n,...o)()}exports.Fragment=s;exports.h=g;exports.instantiate=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../Store-D0_rDIsE.cjs");const r=require("../../onConnect-DyAwFqQQ.cjs"),c=require("../index.cjs");function i(...e){r.onConnect(t=>{const n=e.length>1?e[0]:t,o=e.length>1?e[1]:e[0];return c.intersector.subscribe(n,o)})}exports.useIntersector=i;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IntersectorCallback } from '..';
|
|
2
|
-
import { ElementOrSelector } from '../../utils';
|
|
3
|
-
|
|
4
|
-
export declare function useIntersector(elementOrSelector: ElementOrSelector, callback: IntersectorCallback): void;
|
|
5
|
-
export declare function useIntersector(elementOrSelector: ElementOrSelector, callback: IntersectorCallback): void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "../../Store-JOKrNVEr.js";
|
|
2
|
-
import { o as c } from "../../onConnect-CNMynOhK.js";
|
|
3
|
-
import { intersector as r } from "../index.js";
|
|
4
|
-
function p(...t) {
|
|
5
|
-
c((e) => {
|
|
6
|
-
const o = t.length > 1 ? t[0] : e, n = t.length > 1 ? t[1] : t[0];
|
|
7
|
-
return r.subscribe(o, n);
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
p as useIntersector
|
|
12
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface ComponentElementParameters {
|
|
2
|
-
tag: Function;
|
|
3
|
-
attributes: null | {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
6
|
-
children: any[];
|
|
7
|
-
}
|
|
8
|
-
export type ComponentCreateCallback<T = void> = (e: ComponentElement) => T;
|
|
9
|
-
export type ComponentConnectCallback = (e: ComponentElement) => void | (() => void);
|
|
10
|
-
export type ComponentDisconnectCallback = (e: ComponentElement) => void;
|
|
11
|
-
export declare let currentComponentElement: ComponentElement;
|
|
12
|
-
export declare const nextComponentAttributes: {
|
|
13
|
-
value: {
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
} | null;
|
|
16
|
-
};
|
|
17
|
-
export declare let contextStack: Array<Map<string, any>>;
|
|
18
|
-
export declare class ComponentElement extends HTMLElement {
|
|
19
|
-
#private;
|
|
20
|
-
constructor(parameters?: ComponentElementParameters);
|
|
21
|
-
addConnectCallback(callback: ComponentConnectCallback): void;
|
|
22
|
-
addDisconnectCallback(callback: ComponentConnectCallback): void;
|
|
23
|
-
createContext(name: string, value: any): void;
|
|
24
|
-
protected connectedCallback(): void;
|
|
25
|
-
protected disconnectedCallback(): void;
|
|
26
|
-
}
|
package/lib/jsx/h.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ElementConstructor } from '../element-constructor';
|
|
2
|
-
|
|
3
|
-
export declare function h(tag: string | JSX.Component, attributes: null | JSX.AllAttributes, ...children: JSX.ComponentChildren): any;
|
|
4
|
-
export declare function Fragment(children: any): ElementConstructor<DocumentFragment, Node>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function attachInternals(): ElementInternals;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function attachShadow(init?: ShadowRootInit): ShadowRoot;
|
package/lib/jsx/hooks/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var S=Object.defineProperty;var u=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var i=(e,t,n)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))m.call(t,n)&&i(e,n,t[n]);if(u)for(var n of u(t))w.call(t,n)&&i(e,n,t[n]);return e};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../createStore-D61G4jpF.cjs"),C=require("../../onConnect-DyAwFqQQ.cjs"),y=require("../../ComponentElement-CIl1lnep.cjs"),r=require("../../withCurrentComponent-BDsFmjJ9.cjs");require("../../Store-D0_rDIsE.cjs");const p=require("../../tags-Di21YbUL.cjs"),l=require("../../createStylesheet-De-6zF24.cjs");function R(e){const t=y.contextStack.find(n=>n.has(e));if(t)return t.get(e)}function x(e,t){r.withCurrentComponent(n=>{n.createContext(e,t)})}function g(){return r.withCurrentComponent(e=>e.attachInternals())}function q(e){return r.withCurrentComponent(t=>t.attachShadow(h({mode:"open"},e)))}function T(e){r.withCurrentComponent(t=>{t.shadowRoot&&t.shadowRoot.adoptedStyleSheets.push(l.createStylesheet(e))}),C.onConnect(t=>{if(t.shadowRoot)return;const n=t.getRootNode();if(n===document){const o=p.style(e).node;if(![...document.head.querySelectorAll("style")].find(c=>c.outerHTML===o.outerHTML))return document.head.appendChild(o),()=>{o.remove()}}else if(n instanceof ShadowRoot){const o=l.createStylesheet(e);n.adoptedStyleSheets.filter(s=>{const c=Array.from(s.cssRules);Array.from(o.cssRules).filter(a=>!c.find(f=>f.cssText===a.cssText)).forEach(a=>{s.insertRule(a.cssText)})})}})}exports._createStore=d._createStore;exports.onDisconnect=d.onDisconnect;exports.onConnect=C.onConnect;exports.withCurrentComponent=r.withCurrentComponent;exports.attachInternals=g;exports.attachShadow=q;exports.attachStylesheet=T;exports.createContext=x;exports.getContext=R;
|
package/lib/jsx/hooks/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { _createStore } from './createStore';
|
|
2
|
-
export { onConnect } from './onConnect';
|
|
3
|
-
export { getContext, createContext } from './createContext';
|
|
4
|
-
export { withCurrentComponent } from './withCurrentComponent';
|
|
5
|
-
export { onDisconnect } from './onDisconnect';
|
|
6
|
-
export { attachInternals } from './attachInternals';
|
|
7
|
-
export { attachShadow } from './attachShadow';
|
|
8
|
-
export { attachStylesheet } from './attachStylesheet';
|