incajs 0.0.20 → 0.0.22

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.
@@ -1,110 +0,0 @@
1
- import { C as e, D as t, E as n, N as r, P as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, j as g, k as _, l as v, m as y, n as b, o as x, p as S, r as C, s as w, t as T, u as E, v as D, w as O, x as k, y as A } from "./hooks-D1NFQN8Q.js";
2
- import { n as j } from "./handle-DdYIkUcm.js";
3
- //#region \0rolldown/runtime.js
4
- var M = Object.defineProperty, N = (e, t) => {
5
- let n = {};
6
- for (var r in e) M(n, r, {
7
- get: e[r],
8
- enumerable: !0
9
- });
10
- return t || M(n, Symbol.toStringTag, { value: "Module" }), n;
11
- };
12
- //#endregion
13
- //#region src/element/shadowTree.mts
14
- function P(e) {
15
- let t = C(e);
16
- return j(t, "element", e);
17
- }
18
- function F(e) {
19
- let t = C("text");
20
- return D(t, "value", e), i({
21
- kind: "text",
22
- parent: null,
23
- text: e
24
- }, t);
25
- }
26
- function I() {
27
- let e = C("div");
28
- return A(e, "display", "none"), j(e, "comment");
29
- }
30
- function L(e, t) {
31
- D(e.__node_id, "value", t), e.text = t;
32
- }
33
- function R(e, t) {
34
- for (let t of e.children.splice(0)) h(t.__node_id), g(t), t.parent = null;
35
- if (!t) return;
36
- let n = F(t);
37
- b(e.__node_id, n.__node_id), n.parent = e, e.children.push(n);
38
- }
39
- function z(e) {
40
- let t = e.parent;
41
- if (!t) return;
42
- let n = t.children.indexOf(e);
43
- n !== -1 && t.children.splice(n, 1), e.parent = null;
44
- }
45
- function B(e) {
46
- e.parent && f(e.parent.__node_id, e.__node_id), z(e);
47
- }
48
- function V(e, t, n) {
49
- if (n === e && e.parent === t) return;
50
- B(e);
51
- let r = n ? t.children.indexOf(n) : -1;
52
- u(t.__node_id, e.__node_id, n && r !== -1 ? n.__node_id : null), r === -1 ? t.children.push(e) : t.children.splice(r, 0, e), e.parent = t;
53
- }
54
- function H(e) {
55
- z(e), h(e.__node_id), g(e);
56
- }
57
- function U(e) {
58
- return e.parent;
59
- }
60
- function W(e) {
61
- let t = e.parent;
62
- if (!t) return null;
63
- let n = t.children.indexOf(e);
64
- return t.children[n + 1] ?? null;
65
- }
66
- //#endregion
67
- //#region src/rendererCore.mts
68
- var G = /* @__PURE__ */ N({
69
- addEventListener: () => k,
70
- appendChild: () => b,
71
- blur: () => a,
72
- click: () => e,
73
- createCommentNode: () => I,
74
- createElementNode: () => P,
75
- createEventTarget: () => l,
76
- createIncaElement: () => j,
77
- createNode: () => C,
78
- createTextNode: () => F,
79
- destroyNode: () => h,
80
- dispatchEvent: () => O,
81
- focus: () => o,
82
- focusedNode: () => c,
83
- getAttribute: () => x,
84
- holdNode: () => w,
85
- insert: () => V,
86
- insertBefore: () => u,
87
- isDestroyed: () => _,
88
- latestEventId: () => n,
89
- layoutOf: () => v,
90
- nextSibling: () => W,
91
- parentNode: () => U,
92
- releaseNode: () => E,
93
- releaseWhenCollected: () => r,
94
- remove: () => H,
95
- removeAttribute: () => d,
96
- removeChild: () => f,
97
- removeEventListener: () => t,
98
- removeStyle: () => S,
99
- rootNodeId: () => y,
100
- scrollIntoViewNode: () => m,
101
- scrollNode: () => p,
102
- scrollOf: () => s,
103
- setAttribute: () => D,
104
- setElementText: () => R,
105
- setStyle: () => A,
106
- setText: () => L,
107
- window: () => T
108
- });
109
- //#endregion
110
- export { V as a, H as c, F as i, R as l, I as n, W as o, P as r, U as s, G as t, L as u };