@netlify/spark-ui 0.0.47-alpha → 0.0.47

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.
Files changed (41) hide show
  1. package/dist/chunks/compat.module.DT16W4Wr.js +175 -0
  2. package/dist/chunks/hooks.module.CNV9mxng.js +138 -0
  3. package/dist/chunks/{useTimeout.DYuvQwFN.js → useTimeout.DOkYFG64.js} +1 -1
  4. package/dist/components/index.d.ts +0 -1
  5. package/dist/components/preact/Modal/Modal.js +1 -1
  6. package/dist/components/preact/SearchModal/components/SearchInput.js +2 -2
  7. package/dist/components/preact/SearchModal/components/SearchLink/SearchLink.js +1 -1
  8. package/dist/components/preact/SearchModal/components/SearchModal/SearchModal.js +1 -1
  9. package/dist/components/preact/SearchModal/components/SearchToggle/SearchToggle.js +1 -1
  10. package/dist/components/preact/SearchModal/components/SearchWindow.js +1 -1
  11. package/dist/components/preact/SearchModal/hooks/useKeyboardNav.js +1 -1
  12. package/dist/components/preact/SearchModal/hooks/useSearch.js +2 -2
  13. package/dist/components/preact/SearchModal/hooks/useSearchHotkeys.js +1 -1
  14. package/dist/components/preact/SearchModal/hooks/useSearchLogger.js +1 -1
  15. package/dist/components/preact/SearchModal/hooks/useSearchParams.js +1 -1
  16. package/dist/components/preact/SearchModal/hooks/useSearchToggles.js +1 -1
  17. package/dist/components/preact/index.d.ts +0 -1
  18. package/dist/components/preact/index.js +5 -7
  19. package/package.json +2 -4
  20. package/packages/assets/fonts/README.md +5 -0
  21. package/packages/assets/fonts/figtree/Figtree-Italic[wght].woff2 +0 -0
  22. package/packages/assets/fonts/figtree/Figtree[wght].woff2 +0 -0
  23. package/packages/assets/fonts/instrument-sans/InstrumentSans-Italic[wdth,wght].woff2 +0 -0
  24. package/packages/assets/fonts/instrument-sans/InstrumentSans[wdth,wght].woff2 +0 -0
  25. package/packages/assets/fonts/martian-mono/MartianMono-Bold.woff2 +0 -0
  26. package/packages/assets/fonts/martian-mono/MartianMono-Medium.woff2 +0 -0
  27. package/packages/assets/fonts/martian-mono/MartianMono-Regular.woff2 +0 -0
  28. package/packages/assets/fonts/martian-mono/MartianMono-SemiBold.woff2 +0 -0
  29. package/packages/components/index.ts +0 -1
  30. package/packages/components/preact/index.ts +0 -1
  31. package/packages/styles/base.css +1 -0
  32. package/packages/styles/fonts.css +125 -10
  33. package/packages/styles/reset.css +79 -0
  34. package/packages/styles/tokens.css +24 -19
  35. package/dist/assets/ChatApp.css +0 -1
  36. package/dist/chunks/compat.module.BjTzMHXJ.js +0 -296
  37. package/dist/chunks/hooks.module.DeYLzLnU.js +0 -177
  38. package/dist/components/preact/ChatApp/ChatApp.d.ts +0 -2
  39. package/dist/components/preact/ChatApp/ChatApp.js +0 -5346
  40. package/packages/components/preact/ChatApp/ChatApp.css +0 -142
  41. package/packages/components/preact/ChatApp/ChatApp.tsx +0 -237
@@ -1,177 +0,0 @@
1
- import { options as V } from "preact";
2
- var a, r, H, g, v = 0, x = [], o = V, A = o.__b, F = o.__r, b = o.diffed, q = o.__c, k = o.unmount, T = o.__;
3
- function m(_, t) {
4
- o.__h && o.__h(r, _, v || t), v = 0;
5
- var u = r.__H || (r.__H = { __: [], __h: [] });
6
- return _ >= u.__.length && u.__.push({}), u.__[_];
7
- }
8
- function S(_) {
9
- return v = 1, W(D, _);
10
- }
11
- function W(_, t, u) {
12
- var n = m(a++, 2);
13
- if (n.t = _, !n.__c && (n.__ = [u ? u(t) : D(void 0, t), function(e) {
14
- var c = n.__N ? n.__N[0] : n.__[0], f = n.t(c, e);
15
- c !== f && (n.__N = [f, n.__[1]], n.__c.setState({}));
16
- }], n.__c = r, !r.__f)) {
17
- var h = function(e, c, f) {
18
- if (!n.__c.__H) return !0;
19
- var s = n.__c.__H.__.filter(function(i) {
20
- return !!i.__c;
21
- });
22
- if (s.every(function(i) {
23
- return !i.__N;
24
- })) return !l || l.call(this, e, c, f);
25
- var E = n.__c.props !== e;
26
- return s.forEach(function(i) {
27
- if (i.__N) {
28
- var P = i.__[0];
29
- i.__ = i.__N, i.__N = void 0, P !== i.__[0] && (E = !0);
30
- }
31
- }), l && l.call(this, e, c, f) || E;
32
- };
33
- r.__f = !0;
34
- var l = r.shouldComponentUpdate, y = r.componentWillUpdate;
35
- r.componentWillUpdate = function(e, c, f) {
36
- if (this.__e) {
37
- var s = l;
38
- l = void 0, h(e, c, f), l = s;
39
- }
40
- y && y.call(this, e, c, f);
41
- }, r.shouldComponentUpdate = h;
42
- }
43
- return n.__N || n.__;
44
- }
45
- function G(_, t) {
46
- var u = m(a++, 3);
47
- !o.__s && N(u.__H, t) && (u.__ = _, u.u = t, r.__H.__h.push(u));
48
- }
49
- function j(_, t) {
50
- var u = m(a++, 4);
51
- !o.__s && N(u.__H, t) && (u.__ = _, u.u = t, r.__h.push(u));
52
- }
53
- function I(_) {
54
- return v = 5, C(function() {
55
- return { current: _ };
56
- }, []);
57
- }
58
- function J(_, t, u) {
59
- v = 6, j(function() {
60
- if (typeof _ == "function") {
61
- var n = _(t());
62
- return function() {
63
- _(null), n && typeof n == "function" && n();
64
- };
65
- }
66
- if (_) return _.current = t(), function() {
67
- return _.current = null;
68
- };
69
- }, u == null ? u : u.concat(_));
70
- }
71
- function C(_, t) {
72
- var u = m(a++, 7);
73
- return N(u.__H, t) && (u.__ = _(), u.__H = t, u.__h = _), u.__;
74
- }
75
- function K(_, t) {
76
- return v = 8, C(function() {
77
- return _;
78
- }, t);
79
- }
80
- function L(_) {
81
- var t = r.context[_.__c], u = m(a++, 9);
82
- return u.c = _, t ? (u.__ == null && (u.__ = !0, t.sub(r)), t.props.value) : _.__;
83
- }
84
- function M(_, t) {
85
- o.useDebugValue && o.useDebugValue(t ? t(_) : _);
86
- }
87
- function O() {
88
- var _ = m(a++, 11);
89
- if (!_.__) {
90
- for (var t = r.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
91
- var u = t.__m || (t.__m = [0, 0]);
92
- _.__ = "P" + u[0] + "-" + u[1]++;
93
- }
94
- return _.__;
95
- }
96
- function w() {
97
- for (var _; _ = x.shift(); ) if (_.__P && _.__H) try {
98
- _.__H.__h.forEach(p), _.__H.__h.forEach(d), _.__H.__h = [];
99
- } catch (t) {
100
- _.__H.__h = [], o.__e(t, _.__v);
101
- }
102
- }
103
- o.__b = function(_) {
104
- r = null, A && A(_);
105
- }, o.__ = function(_, t) {
106
- _ && t.__k && t.__k.__m && (_.__m = t.__k.__m), T && T(_, t);
107
- }, o.__r = function(_) {
108
- F && F(_), a = 0;
109
- var t = (r = _.__c).__H;
110
- t && (H === r ? (t.__h = [], r.__h = [], t.__.forEach(function(u) {
111
- u.__N && (u.__ = u.__N), u.u = u.__N = void 0;
112
- })) : (t.__h.forEach(p), t.__h.forEach(d), t.__h = [], a = 0)), H = r;
113
- }, o.diffed = function(_) {
114
- b && b(_);
115
- var t = _.__c;
116
- t && t.__H && (t.__H.__h.length && (x.push(t) !== 1 && g === o.requestAnimationFrame || ((g = o.requestAnimationFrame) || z)(w)), t.__H.__.forEach(function(u) {
117
- u.u && (u.__H = u.u), u.u = void 0;
118
- })), H = r = null;
119
- }, o.__c = function(_, t) {
120
- t.some(function(u) {
121
- try {
122
- u.__h.forEach(p), u.__h = u.__h.filter(function(n) {
123
- return !n.__ || d(n);
124
- });
125
- } catch (n) {
126
- t.some(function(h) {
127
- h.__h && (h.__h = []);
128
- }), t = [], o.__e(n, u.__v);
129
- }
130
- }), q && q(_, t);
131
- }, o.unmount = function(_) {
132
- k && k(_);
133
- var t, u = _.__c;
134
- u && u.__H && (u.__H.__.forEach(function(n) {
135
- try {
136
- p(n);
137
- } catch (h) {
138
- t = h;
139
- }
140
- }), u.__H = void 0, t && o.__e(t, u.__v));
141
- };
142
- var U = typeof requestAnimationFrame == "function";
143
- function z(_) {
144
- var t, u = function() {
145
- clearTimeout(n), U && cancelAnimationFrame(t), setTimeout(_);
146
- }, n = setTimeout(u, 100);
147
- U && (t = requestAnimationFrame(u));
148
- }
149
- function p(_) {
150
- var t = r, u = _.__c;
151
- typeof u == "function" && (_.__c = void 0, u()), r = t;
152
- }
153
- function d(_) {
154
- var t = r;
155
- _.__c = _.__(), r = t;
156
- }
157
- function N(_, t) {
158
- return !_ || _.length !== t.length || t.some(function(u, n) {
159
- return u !== _[n];
160
- });
161
- }
162
- function D(_, t) {
163
- return typeof t == "function" ? t(_) : t;
164
- }
165
- export {
166
- I as A,
167
- J as F,
168
- M as P,
169
- C as T,
170
- j as _,
171
- S as d,
172
- O as g,
173
- W as h,
174
- K as q,
175
- L as x,
176
- G as y
177
- };
@@ -1,2 +0,0 @@
1
- declare function ChatApp(): import("preact").JSX.Element;
2
- export default ChatApp;