@netlify/spark-ui 1.25.0 → 1.26.0-alpha.2
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/DropZone.css +1 -0
- package/dist/chunks/{AskNetlify.jaxhKBOK.js → AskNetlify.bx0blyGV.js} +124 -126
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js +6 -0
- package/dist/chunks/browser.D58rdxmc.js +444 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/preact/AskNetlify/AskNetlify.js +1 -1
- package/dist/components/preact/DropZone/DropZone.d.ts +19 -0
- package/dist/components/preact/DropZone/DropZone.js +207 -0
- package/dist/components/preact/DropZone/drop-core/client.d.ts +19 -0
- package/dist/components/preact/DropZone/drop-core/client.js +41 -0
- package/dist/components/preact/DropZone/drop-core/deploy.d.ts +6 -0
- package/dist/components/preact/DropZone/drop-core/deploy.js +30 -0
- package/dist/components/preact/DropZone/drop-core/digest.d.ts +3 -0
- package/dist/components/preact/DropZone/drop-core/digest.js +12 -0
- package/dist/components/preact/DropZone/drop-core/index.d.ts +5 -0
- package/dist/components/preact/DropZone/drop-core/index.js +16 -0
- package/dist/components/preact/DropZone/drop-core/readFiles.d.ts +15 -0
- package/dist/components/preact/DropZone/drop-core/readFiles.js +616 -0
- package/dist/components/preact/DropZone/drop-core/types.d.ts +30 -0
- package/dist/components/preact/DropZone/drop-core/types.js +1 -0
- package/dist/components/preact/SearchModal/components/SearchModal/SearchModal.js +1 -1
- package/dist/components/preact/index.js +1 -1
- package/package.json +4 -2
- package/packages/components/index.ts +16 -0
- package/packages/components/preact/DropZone/DropZone.css +340 -0
- package/packages/components/preact/DropZone/DropZone.tsx +295 -0
- package/packages/components/preact/DropZone/drop-core/client.ts +61 -0
- package/packages/components/preact/DropZone/drop-core/deploy.ts +55 -0
- package/packages/components/preact/DropZone/drop-core/digest.ts +11 -0
- package/packages/components/preact/DropZone/drop-core/index.ts +5 -0
- package/packages/components/preact/DropZone/drop-core/readFiles.ts +136 -0
- package/packages/components/preact/DropZone/drop-core/types.ts +35 -0
|
@@ -0,0 +1,616 @@
|
|
|
1
|
+
import { g as W } from "../../../../chunks/_commonjsHelpers.C6fGbg64.js";
|
|
2
|
+
var L = { exports: {} }, j = L.exports, E;
|
|
3
|
+
function F() {
|
|
4
|
+
return E || (E = 1, function(x, m) {
|
|
5
|
+
(function(b, p) {
|
|
6
|
+
x.exports = p();
|
|
7
|
+
})(typeof self < "u" ? self : j, function() {
|
|
8
|
+
return (
|
|
9
|
+
/******/
|
|
10
|
+
function(y) {
|
|
11
|
+
var b = {};
|
|
12
|
+
function p(v) {
|
|
13
|
+
if (b[v])
|
|
14
|
+
return b[v].exports;
|
|
15
|
+
var s = b[v] = {
|
|
16
|
+
/******/
|
|
17
|
+
i: v,
|
|
18
|
+
/******/
|
|
19
|
+
l: !1,
|
|
20
|
+
/******/
|
|
21
|
+
exports: {}
|
|
22
|
+
/******/
|
|
23
|
+
};
|
|
24
|
+
return y[v].call(s.exports, s, s.exports, p), s.l = !0, s.exports;
|
|
25
|
+
}
|
|
26
|
+
return p.m = y, p.c = b, p.d = function(v, s, g) {
|
|
27
|
+
p.o(v, s) || Object.defineProperty(v, s, {
|
|
28
|
+
/******/
|
|
29
|
+
configurable: !1,
|
|
30
|
+
/******/
|
|
31
|
+
enumerable: !0,
|
|
32
|
+
/******/
|
|
33
|
+
get: g
|
|
34
|
+
/******/
|
|
35
|
+
});
|
|
36
|
+
}, p.n = function(v) {
|
|
37
|
+
var s = v && v.__esModule ? (
|
|
38
|
+
/******/
|
|
39
|
+
function() {
|
|
40
|
+
return v.default;
|
|
41
|
+
}
|
|
42
|
+
) : (
|
|
43
|
+
/******/
|
|
44
|
+
function() {
|
|
45
|
+
return v;
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
return p.d(s, "a", s), s;
|
|
49
|
+
}, p.o = function(v, s) {
|
|
50
|
+
return Object.prototype.hasOwnProperty.call(v, s);
|
|
51
|
+
}, p.p = "", p(p.s = 3);
|
|
52
|
+
}([
|
|
53
|
+
/* 0 */
|
|
54
|
+
/***/
|
|
55
|
+
function(y, b, p) {
|
|
56
|
+
function v(e, o) {
|
|
57
|
+
if (!(e instanceof o))
|
|
58
|
+
throw new TypeError("Cannot call a class as a function");
|
|
59
|
+
}
|
|
60
|
+
var s = p(5), g = p(1), u = g.toHex, c = g.ceilHeapSize, l = p(6), d = function(e) {
|
|
61
|
+
for (e += 9; e % 64 > 0; e += 1)
|
|
62
|
+
;
|
|
63
|
+
return e;
|
|
64
|
+
}, i = function(e, o) {
|
|
65
|
+
var n = new Uint8Array(e.buffer), h = o % 4, a = o - h;
|
|
66
|
+
switch (h) {
|
|
67
|
+
case 0:
|
|
68
|
+
n[a + 3] = 0;
|
|
69
|
+
case 1:
|
|
70
|
+
n[a + 2] = 0;
|
|
71
|
+
case 2:
|
|
72
|
+
n[a + 1] = 0;
|
|
73
|
+
case 3:
|
|
74
|
+
n[a + 0] = 0;
|
|
75
|
+
}
|
|
76
|
+
for (var w = (o >> 2) + 1; w < e.length; w++)
|
|
77
|
+
e[w] = 0;
|
|
78
|
+
}, r = function(e, o, n) {
|
|
79
|
+
e[o >> 2] |= 128 << 24 - (o % 4 << 3), e[((o >> 2) + 2 & -16) + 14] = n / (1 << 29) | 0, e[((o >> 2) + 2 & -16) + 15] = n << 3;
|
|
80
|
+
}, t = function(e, o) {
|
|
81
|
+
var n = new Int32Array(e, o + 320, 5), h = new Int32Array(5), a = new DataView(h.buffer);
|
|
82
|
+
return a.setInt32(0, n[0], !1), a.setInt32(4, n[1], !1), a.setInt32(8, n[2], !1), a.setInt32(12, n[3], !1), a.setInt32(16, n[4], !1), h;
|
|
83
|
+
}, f = function() {
|
|
84
|
+
function e(o) {
|
|
85
|
+
if (v(this, e), o = o || 64 * 1024, o % 64 > 0)
|
|
86
|
+
throw new Error("Chunk size must be a multiple of 128 bit");
|
|
87
|
+
this._offset = 0, this._maxChunkLen = o, this._padMaxChunkLen = d(o), this._heap = new ArrayBuffer(c(this._padMaxChunkLen + 320 + 20)), this._h32 = new Int32Array(this._heap), this._h8 = new Int8Array(this._heap), this._core = new s({ Int32Array }, {}, this._heap);
|
|
88
|
+
}
|
|
89
|
+
return e.prototype._initState = function(n, h) {
|
|
90
|
+
this._offset = 0;
|
|
91
|
+
var a = new Int32Array(n, h + 320, 5);
|
|
92
|
+
a[0] = 1732584193, a[1] = -271733879, a[2] = -1732584194, a[3] = 271733878, a[4] = -1009589776;
|
|
93
|
+
}, e.prototype._padChunk = function(n, h) {
|
|
94
|
+
var a = d(n), w = new Int32Array(this._heap, 0, a >> 2);
|
|
95
|
+
return i(w, n), r(w, n, h), a;
|
|
96
|
+
}, e.prototype._write = function(n, h, a, w) {
|
|
97
|
+
l(n, this._h8, this._h32, h, a, w || 0);
|
|
98
|
+
}, e.prototype._coreCall = function(n, h, a, w, _) {
|
|
99
|
+
var C = a;
|
|
100
|
+
this._write(n, h, a), _ && (C = this._padChunk(a, w)), this._core.hash(C, this._padMaxChunkLen);
|
|
101
|
+
}, e.prototype.rawDigest = function(n) {
|
|
102
|
+
var h = n.byteLength || n.length || n.size || 0;
|
|
103
|
+
this._initState(this._heap, this._padMaxChunkLen);
|
|
104
|
+
var a = 0, w = this._maxChunkLen;
|
|
105
|
+
for (a = 0; h > a + w; a += w)
|
|
106
|
+
this._coreCall(n, a, w, h, !1);
|
|
107
|
+
return this._coreCall(n, a, h - a, h, !0), t(this._heap, this._padMaxChunkLen);
|
|
108
|
+
}, e.prototype.digest = function(n) {
|
|
109
|
+
return u(this.rawDigest(n).buffer);
|
|
110
|
+
}, e.prototype.digestFromString = function(n) {
|
|
111
|
+
return this.digest(n);
|
|
112
|
+
}, e.prototype.digestFromBuffer = function(n) {
|
|
113
|
+
return this.digest(n);
|
|
114
|
+
}, e.prototype.digestFromArrayBuffer = function(n) {
|
|
115
|
+
return this.digest(n);
|
|
116
|
+
}, e.prototype.resetState = function() {
|
|
117
|
+
return this._initState(this._heap, this._padMaxChunkLen), this;
|
|
118
|
+
}, e.prototype.append = function(n) {
|
|
119
|
+
var h = 0, a = n.byteLength || n.length || n.size || 0, w = this._offset % this._maxChunkLen, _ = void 0;
|
|
120
|
+
for (this._offset += a; h < a; )
|
|
121
|
+
_ = Math.min(a - h, this._maxChunkLen - w), this._write(n, h, _, w), w += _, h += _, w === this._maxChunkLen && (this._core.hash(this._maxChunkLen, this._padMaxChunkLen), w = 0);
|
|
122
|
+
return this;
|
|
123
|
+
}, e.prototype.getState = function() {
|
|
124
|
+
var n = this._offset % this._maxChunkLen, h = void 0;
|
|
125
|
+
if (n)
|
|
126
|
+
h = this._heap.slice(0);
|
|
127
|
+
else {
|
|
128
|
+
var a = new Int32Array(this._heap, this._padMaxChunkLen + 320, 5);
|
|
129
|
+
h = a.buffer.slice(a.byteOffset, a.byteOffset + a.byteLength);
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
offset: this._offset,
|
|
133
|
+
heap: h
|
|
134
|
+
};
|
|
135
|
+
}, e.prototype.setState = function(n) {
|
|
136
|
+
if (this._offset = n.offset, n.heap.byteLength === 20) {
|
|
137
|
+
var h = new Int32Array(this._heap, this._padMaxChunkLen + 320, 5);
|
|
138
|
+
h.set(new Int32Array(n.heap));
|
|
139
|
+
} else
|
|
140
|
+
this._h32.set(new Int32Array(n.heap));
|
|
141
|
+
return this;
|
|
142
|
+
}, e.prototype.rawEnd = function() {
|
|
143
|
+
var n = this._offset, h = n % this._maxChunkLen, a = this._padChunk(h, n);
|
|
144
|
+
this._core.hash(a, this._padMaxChunkLen);
|
|
145
|
+
var w = t(this._heap, this._padMaxChunkLen);
|
|
146
|
+
return this._initState(this._heap, this._padMaxChunkLen), w;
|
|
147
|
+
}, e.prototype.end = function() {
|
|
148
|
+
return u(this.rawEnd().buffer);
|
|
149
|
+
}, e;
|
|
150
|
+
}();
|
|
151
|
+
y.exports = f, y.exports._core = s;
|
|
152
|
+
},
|
|
153
|
+
/* 1 */
|
|
154
|
+
/***/
|
|
155
|
+
function(y, b) {
|
|
156
|
+
for (var p = new Array(256), v = 0; v < 256; v++)
|
|
157
|
+
p[v] = (v < 16 ? "0" : "") + v.toString(16);
|
|
158
|
+
y.exports.toHex = function(s) {
|
|
159
|
+
for (var g = new Uint8Array(s), u = new Array(s.byteLength), c = 0; c < u.length; c++)
|
|
160
|
+
u[c] = p[g[c]];
|
|
161
|
+
return u.join("");
|
|
162
|
+
}, y.exports.ceilHeapSize = function(s) {
|
|
163
|
+
var g = 0;
|
|
164
|
+
if (s <= 65536) return 65536;
|
|
165
|
+
if (s < 16777216)
|
|
166
|
+
for (g = 1; g < s; g = g << 1)
|
|
167
|
+
;
|
|
168
|
+
else
|
|
169
|
+
for (g = 16777216; g < s; g += 16777216)
|
|
170
|
+
;
|
|
171
|
+
return g;
|
|
172
|
+
}, y.exports.isDedicatedWorkerScope = function(s) {
|
|
173
|
+
var g = "WorkerGlobalScope" in s && s instanceof s.WorkerGlobalScope, u = "SharedWorkerGlobalScope" in s && s instanceof s.SharedWorkerGlobalScope, c = "ServiceWorkerGlobalScope" in s && s instanceof s.ServiceWorkerGlobalScope;
|
|
174
|
+
return g && !u && !c;
|
|
175
|
+
};
|
|
176
|
+
},
|
|
177
|
+
/* 2 */
|
|
178
|
+
/***/
|
|
179
|
+
function(y, b, p) {
|
|
180
|
+
y.exports = function() {
|
|
181
|
+
var v = p(0), s = function(c, l, d) {
|
|
182
|
+
try {
|
|
183
|
+
return d(null, c.digest(l));
|
|
184
|
+
} catch (i) {
|
|
185
|
+
return d(i);
|
|
186
|
+
}
|
|
187
|
+
}, g = function(c, l, d, i, r) {
|
|
188
|
+
var t = new self.FileReader();
|
|
189
|
+
t.onloadend = function() {
|
|
190
|
+
if (t.error)
|
|
191
|
+
return r(t.error);
|
|
192
|
+
var e = t.result;
|
|
193
|
+
l += t.result.byteLength;
|
|
194
|
+
try {
|
|
195
|
+
c.append(e);
|
|
196
|
+
} catch (o) {
|
|
197
|
+
r(o);
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
l < i.size ? g(c, l, d, i, r) : r(null, c.end());
|
|
201
|
+
}, t.readAsArrayBuffer(i.slice(l, l + d));
|
|
202
|
+
}, u = !0;
|
|
203
|
+
return self.onmessage = function(c) {
|
|
204
|
+
if (u) {
|
|
205
|
+
var l = c.data.data, d = c.data.file, i = c.data.id;
|
|
206
|
+
if (!(typeof i > "u") && !(!d && !l)) {
|
|
207
|
+
var r = c.data.blockSize || 4 * 1024 * 1024, t = new v(r);
|
|
208
|
+
t.resetState();
|
|
209
|
+
var f = function(e, o) {
|
|
210
|
+
e ? self.postMessage({ id: i, error: e.name }) : self.postMessage({ id: i, hash: o });
|
|
211
|
+
};
|
|
212
|
+
l && s(t, l, f), d && g(t, 0, r, d, f);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}, function() {
|
|
216
|
+
u = !1;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
},
|
|
220
|
+
/* 3 */
|
|
221
|
+
/***/
|
|
222
|
+
function(y, b, p) {
|
|
223
|
+
var v = p(4), s = p(0), g = p(7), u = p(2), c = p(1), l = c.isDedicatedWorkerScope, d = typeof self < "u" && l(self);
|
|
224
|
+
s.disableWorkerBehaviour = d ? u() : function() {
|
|
225
|
+
}, s.createWorker = function() {
|
|
226
|
+
var i = v(
|
|
227
|
+
/*require.resolve*/
|
|
228
|
+
2
|
|
229
|
+
), r = i.terminate;
|
|
230
|
+
return i.terminate = function() {
|
|
231
|
+
URL.revokeObjectURL(i.objectURL), r.call(i);
|
|
232
|
+
}, i;
|
|
233
|
+
}, s.createHash = g, y.exports = s;
|
|
234
|
+
},
|
|
235
|
+
/* 4 */
|
|
236
|
+
/***/
|
|
237
|
+
function(y, b, p) {
|
|
238
|
+
function v(i) {
|
|
239
|
+
var r = {};
|
|
240
|
+
function t(e) {
|
|
241
|
+
if (r[e])
|
|
242
|
+
return r[e].exports;
|
|
243
|
+
var o = r[e] = {
|
|
244
|
+
/******/
|
|
245
|
+
i: e,
|
|
246
|
+
/******/
|
|
247
|
+
l: !1,
|
|
248
|
+
/******/
|
|
249
|
+
exports: {}
|
|
250
|
+
/******/
|
|
251
|
+
};
|
|
252
|
+
return i[e].call(o.exports, o, o.exports, t), o.l = !0, o.exports;
|
|
253
|
+
}
|
|
254
|
+
t.m = i, t.c = r, t.i = function(e) {
|
|
255
|
+
return e;
|
|
256
|
+
}, t.d = function(e, o, n) {
|
|
257
|
+
t.o(e, o) || Object.defineProperty(e, o, {
|
|
258
|
+
/******/
|
|
259
|
+
configurable: !1,
|
|
260
|
+
/******/
|
|
261
|
+
enumerable: !0,
|
|
262
|
+
/******/
|
|
263
|
+
get: n
|
|
264
|
+
/******/
|
|
265
|
+
});
|
|
266
|
+
}, t.r = function(e) {
|
|
267
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
268
|
+
}, t.n = function(e) {
|
|
269
|
+
var o = e && e.__esModule ? (
|
|
270
|
+
/******/
|
|
271
|
+
function() {
|
|
272
|
+
return e.default;
|
|
273
|
+
}
|
|
274
|
+
) : (
|
|
275
|
+
/******/
|
|
276
|
+
function() {
|
|
277
|
+
return e;
|
|
278
|
+
}
|
|
279
|
+
);
|
|
280
|
+
return t.d(o, "a", o), o;
|
|
281
|
+
}, t.o = function(e, o) {
|
|
282
|
+
return Object.prototype.hasOwnProperty.call(e, o);
|
|
283
|
+
}, t.p = "/", t.oe = function(e) {
|
|
284
|
+
throw console.error(e), e;
|
|
285
|
+
};
|
|
286
|
+
var f = t(t.s = ENTRY_MODULE);
|
|
287
|
+
return f.default || f;
|
|
288
|
+
}
|
|
289
|
+
var s = "[\\.|\\-|\\+|\\w|/|@]+", g = "\\((/\\*.*?\\*/)?s?.*?(" + s + ").*?\\)";
|
|
290
|
+
function u(i) {
|
|
291
|
+
return (i + "").replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
292
|
+
}
|
|
293
|
+
function c(i, r, t) {
|
|
294
|
+
var f = {};
|
|
295
|
+
f[t] = [];
|
|
296
|
+
var e = r.toString(), o = e.match(/^function\s?\(\w+,\s*\w+,\s*(\w+)\)/);
|
|
297
|
+
if (!o) return f;
|
|
298
|
+
for (var n = o[1], h = new RegExp("(\\\\n|\\W)" + u(n) + g, "g"), a; a = h.exec(e); )
|
|
299
|
+
a[3] !== "dll-reference" && f[t].push(a[3]);
|
|
300
|
+
for (h = new RegExp("\\(" + u(n) + '\\("(dll-reference\\s(' + s + '))"\\)\\)' + g, "g"); a = h.exec(e); )
|
|
301
|
+
i[a[2]] || (f[t].push(a[1]), i[a[2]] = p(a[1]).m), f[a[2]] = f[a[2]] || [], f[a[2]].push(a[4]);
|
|
302
|
+
return f;
|
|
303
|
+
}
|
|
304
|
+
function l(i) {
|
|
305
|
+
var r = Object.keys(i);
|
|
306
|
+
return r.reduce(function(t, f) {
|
|
307
|
+
return t || i[f].length > 0;
|
|
308
|
+
}, !1);
|
|
309
|
+
}
|
|
310
|
+
function d(i, r) {
|
|
311
|
+
for (var t = {
|
|
312
|
+
main: [r]
|
|
313
|
+
}, f = {
|
|
314
|
+
main: []
|
|
315
|
+
}, e = {
|
|
316
|
+
main: {}
|
|
317
|
+
}; l(t); )
|
|
318
|
+
for (var o = Object.keys(t), n = 0; n < o.length; n++) {
|
|
319
|
+
var h = o[n], a = t[h], w = a.pop();
|
|
320
|
+
if (e[h] = e[h] || {}, !(e[h][w] || !i[h][w])) {
|
|
321
|
+
e[h][w] = !0, f[h] = f[h] || [], f[h].push(w);
|
|
322
|
+
for (var _ = c(i, i[h][w], h), C = Object.keys(_), S = 0; S < C.length; S++)
|
|
323
|
+
t[C[S]] = t[C[S]] || [], t[C[S]] = t[C[S]].concat(_[C[S]]);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return f;
|
|
327
|
+
}
|
|
328
|
+
y.exports = function(i, r) {
|
|
329
|
+
r = r || {};
|
|
330
|
+
var t = {
|
|
331
|
+
main: p.m
|
|
332
|
+
}, f = r.all ? { main: Object.keys(t) } : d(t, i), e = "";
|
|
333
|
+
Object.keys(f).filter(function(w) {
|
|
334
|
+
return w !== "main";
|
|
335
|
+
}).forEach(function(w) {
|
|
336
|
+
for (var _ = 0; f[w][_]; )
|
|
337
|
+
_++;
|
|
338
|
+
f[w].push(_), t[w][_] = "(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })", e = e + "var " + w + " = (" + v.toString().replace("ENTRY_MODULE", JSON.stringify(_)) + ")({" + f[w].map(function(C) {
|
|
339
|
+
return "" + JSON.stringify(C) + ": " + t[w][C].toString();
|
|
340
|
+
}).join(",") + `});
|
|
341
|
+
`;
|
|
342
|
+
}), e = e + "(" + v.toString().replace("ENTRY_MODULE", JSON.stringify(i)) + ")({" + f.main.map(function(w) {
|
|
343
|
+
return "" + JSON.stringify(w) + ": " + t.main[w].toString();
|
|
344
|
+
}).join(",") + "})(self);";
|
|
345
|
+
var o = new window.Blob([e], { type: "text/javascript" });
|
|
346
|
+
if (r.bare)
|
|
347
|
+
return o;
|
|
348
|
+
var n = window.URL || window.webkitURL || window.mozURL || window.msURL, h = n.createObjectURL(o), a = new window.Worker(h);
|
|
349
|
+
return a.objectURL = h, a;
|
|
350
|
+
};
|
|
351
|
+
},
|
|
352
|
+
/* 5 */
|
|
353
|
+
/***/
|
|
354
|
+
function(y, b) {
|
|
355
|
+
y.exports = function(v, s, g) {
|
|
356
|
+
var u = new v.Int32Array(g);
|
|
357
|
+
function c(l, d) {
|
|
358
|
+
l = l | 0, d = d | 0;
|
|
359
|
+
var i = 0, r = 0, t = 0, f = 0, e = 0, o = 0, n = 0, h = 0, a = 0, w = 0, _ = 0, C = 0, S = 0, A = 0;
|
|
360
|
+
for (t = u[d + 320 >> 2] | 0, e = u[d + 324 >> 2] | 0, n = u[d + 328 >> 2] | 0, a = u[d + 332 >> 2] | 0, _ = u[d + 336 >> 2] | 0, i = 0; (i | 0) < (l | 0); i = i + 64 | 0) {
|
|
361
|
+
for (f = t, o = e, h = n, w = a, C = _, r = 0; (r | 0) < 64; r = r + 4 | 0)
|
|
362
|
+
A = u[i + r >> 2] | 0, S = ((t << 5 | t >>> 27) + (e & n | ~e & a) | 0) + ((A + _ | 0) + 1518500249 | 0) | 0, _ = a, a = n, n = e << 30 | e >>> 2, e = t, t = S, u[l + r >> 2] = A;
|
|
363
|
+
for (r = l + 64 | 0; (r | 0) < (l + 80 | 0); r = r + 4 | 0)
|
|
364
|
+
A = (u[r - 12 >> 2] ^ u[r - 32 >> 2] ^ u[r - 56 >> 2] ^ u[r - 64 >> 2]) << 1 | (u[r - 12 >> 2] ^ u[r - 32 >> 2] ^ u[r - 56 >> 2] ^ u[r - 64 >> 2]) >>> 31, S = ((t << 5 | t >>> 27) + (e & n | ~e & a) | 0) + ((A + _ | 0) + 1518500249 | 0) | 0, _ = a, a = n, n = e << 30 | e >>> 2, e = t, t = S, u[r >> 2] = A;
|
|
365
|
+
for (r = l + 80 | 0; (r | 0) < (l + 160 | 0); r = r + 4 | 0)
|
|
366
|
+
A = (u[r - 12 >> 2] ^ u[r - 32 >> 2] ^ u[r - 56 >> 2] ^ u[r - 64 >> 2]) << 1 | (u[r - 12 >> 2] ^ u[r - 32 >> 2] ^ u[r - 56 >> 2] ^ u[r - 64 >> 2]) >>> 31, S = ((t << 5 | t >>> 27) + (e ^ n ^ a) | 0) + ((A + _ | 0) + 1859775393 | 0) | 0, _ = a, a = n, n = e << 30 | e >>> 2, e = t, t = S, u[r >> 2] = A;
|
|
367
|
+
for (r = l + 160 | 0; (r | 0) < (l + 240 | 0); r = r + 4 | 0)
|
|
368
|
+
A = (u[r - 12 >> 2] ^ u[r - 32 >> 2] ^ u[r - 56 >> 2] ^ u[r - 64 >> 2]) << 1 | (u[r - 12 >> 2] ^ u[r - 32 >> 2] ^ u[r - 56 >> 2] ^ u[r - 64 >> 2]) >>> 31, S = ((t << 5 | t >>> 27) + (e & n | e & a | n & a) | 0) + ((A + _ | 0) - 1894007588 | 0) | 0, _ = a, a = n, n = e << 30 | e >>> 2, e = t, t = S, u[r >> 2] = A;
|
|
369
|
+
for (r = l + 240 | 0; (r | 0) < (l + 320 | 0); r = r + 4 | 0)
|
|
370
|
+
A = (u[r - 12 >> 2] ^ u[r - 32 >> 2] ^ u[r - 56 >> 2] ^ u[r - 64 >> 2]) << 1 | (u[r - 12 >> 2] ^ u[r - 32 >> 2] ^ u[r - 56 >> 2] ^ u[r - 64 >> 2]) >>> 31, S = ((t << 5 | t >>> 27) + (e ^ n ^ a) | 0) + ((A + _ | 0) - 899497514 | 0) | 0, _ = a, a = n, n = e << 30 | e >>> 2, e = t, t = S, u[r >> 2] = A;
|
|
371
|
+
t = t + f | 0, e = e + o | 0, n = n + h | 0, a = a + w | 0, _ = _ + C | 0;
|
|
372
|
+
}
|
|
373
|
+
u[d + 320 >> 2] = t, u[d + 324 >> 2] = e, u[d + 328 >> 2] = n, u[d + 332 >> 2] = a, u[d + 336 >> 2] = _;
|
|
374
|
+
}
|
|
375
|
+
return { hash: c };
|
|
376
|
+
};
|
|
377
|
+
},
|
|
378
|
+
/* 6 */
|
|
379
|
+
/***/
|
|
380
|
+
function(y, b) {
|
|
381
|
+
var p = this, v = void 0;
|
|
382
|
+
typeof self < "u" && typeof self.FileReaderSync < "u" && (v = new self.FileReaderSync());
|
|
383
|
+
var s = function(c, l, d, i, r, t) {
|
|
384
|
+
var f = void 0, e = t % 4, o = (r + e) % 4, n = r - o;
|
|
385
|
+
switch (e) {
|
|
386
|
+
case 0:
|
|
387
|
+
l[t] = c.charCodeAt(i + 3);
|
|
388
|
+
case 1:
|
|
389
|
+
l[t + 1 - (e << 1) | 0] = c.charCodeAt(i + 2);
|
|
390
|
+
case 2:
|
|
391
|
+
l[t + 2 - (e << 1) | 0] = c.charCodeAt(i + 1);
|
|
392
|
+
case 3:
|
|
393
|
+
l[t + 3 - (e << 1) | 0] = c.charCodeAt(i);
|
|
394
|
+
}
|
|
395
|
+
if (!(r < o + (4 - e))) {
|
|
396
|
+
for (f = 4 - e; f < n; f = f + 4 | 0)
|
|
397
|
+
d[t + f >> 2] = c.charCodeAt(i + f) << 24 | c.charCodeAt(i + f + 1) << 16 | c.charCodeAt(i + f + 2) << 8 | c.charCodeAt(i + f + 3);
|
|
398
|
+
switch (o) {
|
|
399
|
+
case 3:
|
|
400
|
+
l[t + n + 1 | 0] = c.charCodeAt(i + n + 2);
|
|
401
|
+
case 2:
|
|
402
|
+
l[t + n + 2 | 0] = c.charCodeAt(i + n + 1);
|
|
403
|
+
case 1:
|
|
404
|
+
l[t + n + 3 | 0] = c.charCodeAt(i + n);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}, g = function(c, l, d, i, r, t) {
|
|
408
|
+
var f = void 0, e = t % 4, o = (r + e) % 4, n = r - o;
|
|
409
|
+
switch (e) {
|
|
410
|
+
case 0:
|
|
411
|
+
l[t] = c[i + 3];
|
|
412
|
+
case 1:
|
|
413
|
+
l[t + 1 - (e << 1) | 0] = c[i + 2];
|
|
414
|
+
case 2:
|
|
415
|
+
l[t + 2 - (e << 1) | 0] = c[i + 1];
|
|
416
|
+
case 3:
|
|
417
|
+
l[t + 3 - (e << 1) | 0] = c[i];
|
|
418
|
+
}
|
|
419
|
+
if (!(r < o + (4 - e))) {
|
|
420
|
+
for (f = 4 - e; f < n; f = f + 4 | 0)
|
|
421
|
+
d[t + f >> 2 | 0] = c[i + f] << 24 | c[i + f + 1] << 16 | c[i + f + 2] << 8 | c[i + f + 3];
|
|
422
|
+
switch (o) {
|
|
423
|
+
case 3:
|
|
424
|
+
l[t + n + 1 | 0] = c[i + n + 2];
|
|
425
|
+
case 2:
|
|
426
|
+
l[t + n + 2 | 0] = c[i + n + 1];
|
|
427
|
+
case 1:
|
|
428
|
+
l[t + n + 3 | 0] = c[i + n];
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}, u = function(c, l, d, i, r, t) {
|
|
432
|
+
var f = void 0, e = t % 4, o = (r + e) % 4, n = r - o, h = new Uint8Array(v.readAsArrayBuffer(c.slice(i, i + r)));
|
|
433
|
+
switch (e) {
|
|
434
|
+
case 0:
|
|
435
|
+
l[t] = h[3];
|
|
436
|
+
case 1:
|
|
437
|
+
l[t + 1 - (e << 1) | 0] = h[2];
|
|
438
|
+
case 2:
|
|
439
|
+
l[t + 2 - (e << 1) | 0] = h[1];
|
|
440
|
+
case 3:
|
|
441
|
+
l[t + 3 - (e << 1) | 0] = h[0];
|
|
442
|
+
}
|
|
443
|
+
if (!(r < o + (4 - e))) {
|
|
444
|
+
for (f = 4 - e; f < n; f = f + 4 | 0)
|
|
445
|
+
d[t + f >> 2 | 0] = h[f] << 24 | h[f + 1] << 16 | h[f + 2] << 8 | h[f + 3];
|
|
446
|
+
switch (o) {
|
|
447
|
+
case 3:
|
|
448
|
+
l[t + n + 1 | 0] = h[n + 2];
|
|
449
|
+
case 2:
|
|
450
|
+
l[t + n + 2 | 0] = h[n + 1];
|
|
451
|
+
case 1:
|
|
452
|
+
l[t + n + 3 | 0] = h[n];
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
y.exports = function(c, l, d, i, r, t) {
|
|
457
|
+
if (typeof c == "string")
|
|
458
|
+
return s(c, l, d, i, r, t);
|
|
459
|
+
if (c instanceof Array || p && p.Buffer && p.Buffer.isBuffer(c))
|
|
460
|
+
return g(c, l, d, i, r, t);
|
|
461
|
+
if (c instanceof ArrayBuffer)
|
|
462
|
+
return g(new Uint8Array(c), l, d, i, r, t);
|
|
463
|
+
if (c.buffer instanceof ArrayBuffer)
|
|
464
|
+
return g(new Uint8Array(c.buffer, c.byteOffset, c.byteLength), l, d, i, r, t);
|
|
465
|
+
if (c instanceof Blob)
|
|
466
|
+
return u(c, l, d, i, r, t);
|
|
467
|
+
throw new Error("Unsupported data type.");
|
|
468
|
+
};
|
|
469
|
+
},
|
|
470
|
+
/* 7 */
|
|
471
|
+
/***/
|
|
472
|
+
function(y, b, p) {
|
|
473
|
+
var v = /* @__PURE__ */ function() {
|
|
474
|
+
function d(i, r) {
|
|
475
|
+
for (var t = 0; t < r.length; t++) {
|
|
476
|
+
var f = r[t];
|
|
477
|
+
f.enumerable = f.enumerable || !1, f.configurable = !0, "value" in f && (f.writable = !0), Object.defineProperty(i, f.key, f);
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
return function(i, r, t) {
|
|
481
|
+
return r && d(i.prototype, r), t && d(i, t), i;
|
|
482
|
+
};
|
|
483
|
+
}();
|
|
484
|
+
function s(d, i) {
|
|
485
|
+
if (!(d instanceof i))
|
|
486
|
+
throw new TypeError("Cannot call a class as a function");
|
|
487
|
+
}
|
|
488
|
+
var g = p(0), u = p(1), c = u.toHex, l = function() {
|
|
489
|
+
function d() {
|
|
490
|
+
s(this, d), this._rusha = new g(), this._rusha.resetState();
|
|
491
|
+
}
|
|
492
|
+
return d.prototype.update = function(r) {
|
|
493
|
+
return this._rusha.append(r), this;
|
|
494
|
+
}, d.prototype.digest = function(r) {
|
|
495
|
+
var t = this._rusha.rawEnd().buffer;
|
|
496
|
+
if (!r)
|
|
497
|
+
return t;
|
|
498
|
+
if (r === "hex")
|
|
499
|
+
return c(t);
|
|
500
|
+
throw new Error("unsupported digest encoding");
|
|
501
|
+
}, v(d, [{
|
|
502
|
+
key: "state",
|
|
503
|
+
get: function() {
|
|
504
|
+
return this._rusha.getState();
|
|
505
|
+
},
|
|
506
|
+
set: function(i) {
|
|
507
|
+
this._rusha.setState(i);
|
|
508
|
+
}
|
|
509
|
+
}]), d;
|
|
510
|
+
}();
|
|
511
|
+
y.exports = function() {
|
|
512
|
+
return new l();
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
/******/
|
|
516
|
+
])
|
|
517
|
+
);
|
|
518
|
+
});
|
|
519
|
+
}(L)), L.exports;
|
|
520
|
+
}
|
|
521
|
+
var I = F();
|
|
522
|
+
const z = /* @__PURE__ */ W(I), P = new z(), M = (x) => x.startsWith(".") || x === "__MACOSX" || x === "node_modules", R = (x) => x.startsWith("/") ? x : `/${x}`;
|
|
523
|
+
function k(x, m, y) {
|
|
524
|
+
return {
|
|
525
|
+
path: R(x),
|
|
526
|
+
size: m.byteLength,
|
|
527
|
+
sha: P.digest(m),
|
|
528
|
+
content: m,
|
|
529
|
+
name: y
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
async function D(x) {
|
|
533
|
+
const m = await new Promise((b, p) => x.file(b, p)), y = await m.arrayBuffer();
|
|
534
|
+
return k(x.fullPath, y, m.name);
|
|
535
|
+
}
|
|
536
|
+
async function B(x) {
|
|
537
|
+
const m = x.createReader(), y = [];
|
|
538
|
+
for (; ; ) {
|
|
539
|
+
const b = await new Promise((p, v) => m.readEntries(p, v));
|
|
540
|
+
if (!b.length) break;
|
|
541
|
+
for (const p of b)
|
|
542
|
+
M(p.name) || y.push(...p.isDirectory ? await B(p) : [await D(p)]);
|
|
543
|
+
}
|
|
544
|
+
return y;
|
|
545
|
+
}
|
|
546
|
+
async function J(x) {
|
|
547
|
+
var p;
|
|
548
|
+
const m = (p = x.files) == null ? void 0 : p[0];
|
|
549
|
+
if (x.files.length === 1 && m && /\.zip$/i.test(m.name))
|
|
550
|
+
return U(m);
|
|
551
|
+
const b = Array.from(x.items ?? []).map((v) => {
|
|
552
|
+
var s;
|
|
553
|
+
return (s = v.webkitGetAsEntry) == null ? void 0 : s.call(v);
|
|
554
|
+
}).filter(Boolean);
|
|
555
|
+
if (b.length) {
|
|
556
|
+
const v = await Promise.all(
|
|
557
|
+
b.map(
|
|
558
|
+
(s) => M(s.name) ? [] : s.isDirectory ? B(s) : D(s).then((g) => [g])
|
|
559
|
+
)
|
|
560
|
+
);
|
|
561
|
+
return O(v.flat());
|
|
562
|
+
}
|
|
563
|
+
return G(x.files);
|
|
564
|
+
}
|
|
565
|
+
async function G(x) {
|
|
566
|
+
const m = Array.from(x);
|
|
567
|
+
if (m.length === 1 && /\.zip$/i.test(m[0].name))
|
|
568
|
+
return U(m[0]);
|
|
569
|
+
const y = [];
|
|
570
|
+
for (const b of m) {
|
|
571
|
+
const p = b.webkitRelativePath || b.name;
|
|
572
|
+
y.push(k(p, await b.arrayBuffer(), b.name));
|
|
573
|
+
}
|
|
574
|
+
return O(y);
|
|
575
|
+
}
|
|
576
|
+
async function U(x) {
|
|
577
|
+
const { unzip: m } = await import("../../../../chunks/browser.D58rdxmc.js"), y = new Uint8Array(await x.arrayBuffer()), b = await new Promise(
|
|
578
|
+
(v, s) => m(y, (g, u) => g ? s(g) : v(u))
|
|
579
|
+
), p = [];
|
|
580
|
+
for (const [v, s] of Object.entries(b)) {
|
|
581
|
+
if (v.endsWith("/") || /(^|\/)(__MACOSX\/|\.)/.test(v)) continue;
|
|
582
|
+
const g = s.buffer.slice(s.byteOffset, s.byteOffset + s.byteLength);
|
|
583
|
+
p.push(k(v, g, v.split("/").pop()));
|
|
584
|
+
}
|
|
585
|
+
return O(p);
|
|
586
|
+
}
|
|
587
|
+
function O(x) {
|
|
588
|
+
if (!x.length) return x;
|
|
589
|
+
const m = (p) => R(p).split("/").slice(1);
|
|
590
|
+
let y = m(x[0].path).slice(0, -1);
|
|
591
|
+
for (const p of x) {
|
|
592
|
+
const v = m(p.path);
|
|
593
|
+
let s = 0;
|
|
594
|
+
for (; s < y.length && s < v.length - 1 && y[s] === v[s]; ) s++;
|
|
595
|
+
y = y.slice(0, s);
|
|
596
|
+
}
|
|
597
|
+
if (!y.length) return x;
|
|
598
|
+
const b = "/" + y.join("/");
|
|
599
|
+
return x.map((p) => ({ ...p, path: R(p.path.slice(b.length)) }));
|
|
600
|
+
}
|
|
601
|
+
function Y(x) {
|
|
602
|
+
const m = x.filter((y) => /\.html?$/i.test(y.name));
|
|
603
|
+
return m.some((y) => /^index\.html?$/i.test(y.name)) ? null : m.length === 1 ? m[0].name : null;
|
|
604
|
+
}
|
|
605
|
+
function Q(x) {
|
|
606
|
+
const m = x.filter((y) => /\.html?$/i.test(y.name));
|
|
607
|
+
return m.length > 1 && !m.some((y) => /^index\.html?$/i.test(y.name));
|
|
608
|
+
}
|
|
609
|
+
export {
|
|
610
|
+
Y as getSingleNonIndexHtmlFileName,
|
|
611
|
+
Q as hasMultipleHtmlFilesWithoutIndex,
|
|
612
|
+
O as normalizeFiles,
|
|
613
|
+
J as readDataTransfer,
|
|
614
|
+
G as readFileList,
|
|
615
|
+
U as readZip
|
|
616
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface ProcessedFile {
|
|
2
|
+
/** POSIX path relative to the deploy root, leading slash, e.g. "/index.html" */
|
|
3
|
+
path: string;
|
|
4
|
+
size: number;
|
|
5
|
+
/** lowercase hex SHA-1 of the file content */
|
|
6
|
+
sha: string;
|
|
7
|
+
content: ArrayBuffer;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
export type Digest = Record<string, string>;
|
|
11
|
+
export interface Deploy {
|
|
12
|
+
id: string;
|
|
13
|
+
/** the *.netlify.app subdomain assigned to the anonymous site */
|
|
14
|
+
subdomain: string;
|
|
15
|
+
/** SHAs the backend does NOT yet have — only these get uploaded */
|
|
16
|
+
required: string[];
|
|
17
|
+
state?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface DeployResult {
|
|
20
|
+
deploy: Deploy;
|
|
21
|
+
/** drop token — persist this to later claim the site into an account */
|
|
22
|
+
token: string;
|
|
23
|
+
url: string;
|
|
24
|
+
}
|
|
25
|
+
export type DeployPhase = 'creating' | 'uploading' | 'processing' | 'ready';
|
|
26
|
+
export interface DeployProgress {
|
|
27
|
+
phase: DeployPhase;
|
|
28
|
+
uploaded?: number;
|
|
29
|
+
total?: number;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as e } from "../../../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
|
|
2
2
|
import { A as g, y as f, d } from "../../../../../chunks/hooks.module.DRcxknIz.js";
|
|
3
|
-
import { A as L, K as P } from "../../../../../chunks/AskNetlify.
|
|
3
|
+
import { A as L, K as P } from "../../../../../chunks/AskNetlify.bx0blyGV.js";
|
|
4
4
|
import M from "../../../Modal/Modal.js";
|
|
5
5
|
import h from "../../../KeyboardKey/KeyboardKey.js";
|
|
6
6
|
import O from "../SearchWindow.js";
|
|
@@ -4,7 +4,7 @@ import { default as m } from "./Icon/index.js";
|
|
|
4
4
|
import { default as s } from "./SearchModal/components/SearchLink/SearchLink.js";
|
|
5
5
|
import { default as u } from "./SearchModal/components/SearchHeading/SearchHeading.js";
|
|
6
6
|
import { default as i } from "./SearchModal/components/SearchToggle/SearchToggle.js";
|
|
7
|
-
import { A as S } from "../../chunks/AskNetlify.
|
|
7
|
+
import { A as S } from "../../chunks/AskNetlify.bx0blyGV.js";
|
|
8
8
|
import "preact";
|
|
9
9
|
import "../../chunks/hooks.module.DRcxknIz.js";
|
|
10
10
|
import { default as n } from "./SearchModal/components/SearchModal/SearchModal.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/spark-ui",
|
|
3
3
|
"description": "Assets, design tokens, components, and utilities",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.26.0-alpha.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/components/preact/index.js",
|
|
7
7
|
"types": "dist/components/preact/index.d.ts",
|
|
@@ -39,7 +39,9 @@
|
|
|
39
39
|
"@astro-community/astro-embed-youtube": "^0.5.10",
|
|
40
40
|
"@kapaai/react-sdk": "^0.9.0",
|
|
41
41
|
"@shikijs/transformers": "^3.3.0",
|
|
42
|
-
"
|
|
42
|
+
"fflate": "^0.8.2",
|
|
43
|
+
"marked": "^15.0.11",
|
|
44
|
+
"rusha": "^0.8.14"
|
|
43
45
|
},
|
|
44
46
|
"devDependencies": {
|
|
45
47
|
"@preact/preset-vite": "^2.10.1",
|