@netlify/spark-ui 0.0.46 → 0.0.47-alpha
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/dist/assets/ChatApp.css +1 -0
- package/dist/chunks/compat.module.BjTzMHXJ.js +296 -0
- package/dist/chunks/hooks.module.DeYLzLnU.js +177 -0
- package/dist/chunks/{useTimeout.DOkYFG64.js → useTimeout.DYuvQwFN.js} +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/preact/ChatApp/ChatApp.d.ts +2 -0
- package/dist/components/preact/ChatApp/ChatApp.js +5346 -0
- package/dist/components/preact/Modal/Modal.js +1 -1
- package/dist/components/preact/SearchModal/components/SearchInput.js +2 -2
- package/dist/components/preact/SearchModal/components/SearchLink/SearchLink.js +1 -1
- package/dist/components/preact/SearchModal/components/SearchModal/SearchModal.js +1 -1
- package/dist/components/preact/SearchModal/components/SearchToggle/SearchToggle.js +1 -1
- package/dist/components/preact/SearchModal/components/SearchWindow.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useKeyboardNav.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearch.js +2 -2
- package/dist/components/preact/SearchModal/hooks/useSearchHotkeys.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearchLogger.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearchParams.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearchToggles.js +1 -1
- package/dist/components/preact/index.d.ts +1 -0
- package/dist/components/preact/index.js +7 -5
- package/package.json +4 -1
- package/packages/components/CodeBlock.astro +208 -0
- package/packages/components/index.ts +1 -0
- package/packages/components/preact/ChatApp/ChatApp.css +142 -0
- package/packages/components/preact/ChatApp/ChatApp.tsx +237 -0
- package/packages/components/preact/index.ts +1 -0
- package/packages/global.d.ts +5 -0
- package/packages/styles/code-block.css +249 -0
- package/dist/chunks/compat.module.DT16W4Wr.js +0 -175
- package/dist/chunks/hooks.module.CNV9mxng.js +0 -138
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { options as x } from "preact";
|
|
2
|
-
var v, n, H, y, m = 0, C = [], u = x, A = u.__b, q = u.__r, F = u.diffed, g = u.__c, k = u.unmount, T = u.__;
|
|
3
|
-
function d(_, t) {
|
|
4
|
-
u.__h && u.__h(n, _, m || t), m = 0;
|
|
5
|
-
var r = n.__H || (n.__H = { __: [], __h: [] });
|
|
6
|
-
return _ >= r.__.length && r.__.push({}), r.__[_];
|
|
7
|
-
}
|
|
8
|
-
function S(_) {
|
|
9
|
-
return m = 1, z(j, _);
|
|
10
|
-
}
|
|
11
|
-
function z(_, t, r) {
|
|
12
|
-
var o = d(v++, 2);
|
|
13
|
-
if (o.t = _, !o.__c && (o.__ = [r ? r(t) : j(void 0, t), function(c) {
|
|
14
|
-
var e = o.__N ? o.__N[0] : o.__[0], f = o.t(e, c);
|
|
15
|
-
e !== f && (o.__N = [f, o.__[1]], o.__c.setState({}));
|
|
16
|
-
}], o.__c = n, !n.__f)) {
|
|
17
|
-
var a = function(c, e, f) {
|
|
18
|
-
if (!o.__c.__H) return !0;
|
|
19
|
-
var l = o.__c.__H.__.filter(function(i) {
|
|
20
|
-
return !!i.__c;
|
|
21
|
-
});
|
|
22
|
-
if (l.every(function(i) {
|
|
23
|
-
return !i.__N;
|
|
24
|
-
})) return !h || h.call(this, c, e, f);
|
|
25
|
-
var E = o.__c.props !== c;
|
|
26
|
-
return l.forEach(function(i) {
|
|
27
|
-
if (i.__N) {
|
|
28
|
-
var w = i.__[0];
|
|
29
|
-
i.__ = i.__N, i.__N = void 0, w !== i.__[0] && (E = !0);
|
|
30
|
-
}
|
|
31
|
-
}), h && h.call(this, c, e, f) || E;
|
|
32
|
-
};
|
|
33
|
-
n.__f = !0;
|
|
34
|
-
var h = n.shouldComponentUpdate, N = n.componentWillUpdate;
|
|
35
|
-
n.componentWillUpdate = function(c, e, f) {
|
|
36
|
-
if (this.__e) {
|
|
37
|
-
var l = h;
|
|
38
|
-
h = void 0, a(c, e, f), h = l;
|
|
39
|
-
}
|
|
40
|
-
N && N.call(this, c, e, f);
|
|
41
|
-
}, n.shouldComponentUpdate = a;
|
|
42
|
-
}
|
|
43
|
-
return o.__N || o.__;
|
|
44
|
-
}
|
|
45
|
-
function G(_, t) {
|
|
46
|
-
var r = d(v++, 3);
|
|
47
|
-
!u.__s && W(r.__H, t) && (r.__ = _, r.u = t, n.__H.__h.push(r));
|
|
48
|
-
}
|
|
49
|
-
function I(_) {
|
|
50
|
-
return m = 5, b(function() {
|
|
51
|
-
return { current: _ };
|
|
52
|
-
}, []);
|
|
53
|
-
}
|
|
54
|
-
function b(_, t) {
|
|
55
|
-
var r = d(v++, 7);
|
|
56
|
-
return W(r.__H, t) && (r.__ = _(), r.__H = t, r.__h = _), r.__;
|
|
57
|
-
}
|
|
58
|
-
function J(_, t) {
|
|
59
|
-
return m = 8, b(function() {
|
|
60
|
-
return _;
|
|
61
|
-
}, t);
|
|
62
|
-
}
|
|
63
|
-
function B() {
|
|
64
|
-
for (var _; _ = C.shift(); ) if (_.__P && _.__H) try {
|
|
65
|
-
_.__H.__h.forEach(s), _.__H.__h.forEach(p), _.__H.__h = [];
|
|
66
|
-
} catch (t) {
|
|
67
|
-
_.__H.__h = [], u.__e(t, _.__v);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
u.__b = function(_) {
|
|
71
|
-
n = null, A && A(_);
|
|
72
|
-
}, u.__ = function(_, t) {
|
|
73
|
-
_ && t.__k && t.__k.__m && (_.__m = t.__k.__m), T && T(_, t);
|
|
74
|
-
}, u.__r = function(_) {
|
|
75
|
-
q && q(_), v = 0;
|
|
76
|
-
var t = (n = _.__c).__H;
|
|
77
|
-
t && (H === n ? (t.__h = [], n.__h = [], t.__.forEach(function(r) {
|
|
78
|
-
r.__N && (r.__ = r.__N), r.u = r.__N = void 0;
|
|
79
|
-
})) : (t.__h.forEach(s), t.__h.forEach(p), t.__h = [], v = 0)), H = n;
|
|
80
|
-
}, u.diffed = function(_) {
|
|
81
|
-
F && F(_);
|
|
82
|
-
var t = _.__c;
|
|
83
|
-
t && t.__H && (t.__H.__h.length && (C.push(t) !== 1 && y === u.requestAnimationFrame || ((y = u.requestAnimationFrame) || D)(B)), t.__H.__.forEach(function(r) {
|
|
84
|
-
r.u && (r.__H = r.u), r.u = void 0;
|
|
85
|
-
})), H = n = null;
|
|
86
|
-
}, u.__c = function(_, t) {
|
|
87
|
-
t.some(function(r) {
|
|
88
|
-
try {
|
|
89
|
-
r.__h.forEach(s), r.__h = r.__h.filter(function(o) {
|
|
90
|
-
return !o.__ || p(o);
|
|
91
|
-
});
|
|
92
|
-
} catch (o) {
|
|
93
|
-
t.some(function(a) {
|
|
94
|
-
a.__h && (a.__h = []);
|
|
95
|
-
}), t = [], u.__e(o, r.__v);
|
|
96
|
-
}
|
|
97
|
-
}), g && g(_, t);
|
|
98
|
-
}, u.unmount = function(_) {
|
|
99
|
-
k && k(_);
|
|
100
|
-
var t, r = _.__c;
|
|
101
|
-
r && r.__H && (r.__H.__.forEach(function(o) {
|
|
102
|
-
try {
|
|
103
|
-
s(o);
|
|
104
|
-
} catch (a) {
|
|
105
|
-
t = a;
|
|
106
|
-
}
|
|
107
|
-
}), r.__H = void 0, t && u.__e(t, r.__v));
|
|
108
|
-
};
|
|
109
|
-
var U = typeof requestAnimationFrame == "function";
|
|
110
|
-
function D(_) {
|
|
111
|
-
var t, r = function() {
|
|
112
|
-
clearTimeout(o), U && cancelAnimationFrame(t), setTimeout(_);
|
|
113
|
-
}, o = setTimeout(r, 100);
|
|
114
|
-
U && (t = requestAnimationFrame(r));
|
|
115
|
-
}
|
|
116
|
-
function s(_) {
|
|
117
|
-
var t = n, r = _.__c;
|
|
118
|
-
typeof r == "function" && (_.__c = void 0, r()), n = t;
|
|
119
|
-
}
|
|
120
|
-
function p(_) {
|
|
121
|
-
var t = n;
|
|
122
|
-
_.__c = _.__(), n = t;
|
|
123
|
-
}
|
|
124
|
-
function W(_, t) {
|
|
125
|
-
return !_ || _.length !== t.length || t.some(function(r, o) {
|
|
126
|
-
return r !== _[o];
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
function j(_, t) {
|
|
130
|
-
return typeof t == "function" ? t(_) : t;
|
|
131
|
-
}
|
|
132
|
-
export {
|
|
133
|
-
I as A,
|
|
134
|
-
b as T,
|
|
135
|
-
S as d,
|
|
136
|
-
J as q,
|
|
137
|
-
G as y
|
|
138
|
-
};
|