@zhin.js/console 1.0.8 → 1.0.10

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 (49) hide show
  1. package/CHANGELOG.md +95 -0
  2. package/client/index.html +16 -0
  3. package/client/src/components/PluginConfigForm/BasicFieldRenderers.tsx +6 -7
  4. package/client/src/components/PluginConfigForm/CollectionFieldRenderers.tsx +8 -8
  5. package/client/src/components/PluginConfigForm/CompositeFieldRenderers.tsx +3 -3
  6. package/client/src/components/PluginConfigForm/index.tsx +8 -7
  7. package/client/src/components/ThemeToggle.tsx +3 -3
  8. package/client/src/layouts/dashboard.tsx +14 -15
  9. package/client/src/main.tsx +60 -59
  10. package/client/src/pages/dashboard-plugin-detail.tsx +17 -17
  11. package/client/src/pages/dashboard-plugins.tsx +8 -8
  12. package/client/tsconfig.json +5 -6
  13. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  14. package/dist/client.js +9 -0
  15. package/dist/index.html +31 -0
  16. package/dist/index.js +15 -0
  17. package/dist/lucide-react.js +28876 -0
  18. package/dist/radix-ui-themes.js +9321 -0
  19. package/dist/radix-ui.js +11213 -0
  20. package/dist/react-dom-client.js +10042 -0
  21. package/dist/react-dom.js +180 -0
  22. package/dist/react-jsx-dev-runtime.js +51 -0
  23. package/dist/react-jsx-runtime.js +68 -0
  24. package/dist/react-router.js +8141 -0
  25. package/dist/react.js +421 -0
  26. package/dist/style.css +2 -0
  27. package/lib/bin.d.ts.map +1 -1
  28. package/lib/bin.js +2 -26
  29. package/lib/bin.js.map +1 -1
  30. package/lib/build.d.ts +2 -32
  31. package/lib/build.d.ts.map +1 -1
  32. package/lib/build.js +67 -144
  33. package/lib/build.js.map +1 -1
  34. package/lib/dev.d.ts.map +1 -1
  35. package/lib/dev.js +2 -1
  36. package/lib/dev.js.map +1 -1
  37. package/lib/index.d.ts.map +1 -1
  38. package/lib/index.js +0 -1
  39. package/lib/index.js.map +1 -1
  40. package/lib/websocket.d.ts.map +1 -1
  41. package/lib/websocket.js.map +1 -1
  42. package/package.json +29 -13
  43. package/app/bin.ts +0 -52
  44. package/app/build.ts +0 -211
  45. package/app/dev.ts +0 -83
  46. package/app/index.ts +0 -193
  47. package/app/websocket.ts +0 -109
  48. package/client/public/vendor/react-dom.production.min.js +0 -1
  49. package/client/public/vendor/react.production.min.js +0 -1
package/dist/react.js ADDED
@@ -0,0 +1,421 @@
1
+ import { g as J } from "./_commonjsHelpers-C6fGbg64.js";
2
+ var d = { exports: {} }, n = {};
3
+ /**
4
+ * @license React
5
+ * react.production.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var M;
13
+ function F() {
14
+ if (M) return n;
15
+ M = 1;
16
+ var y = Symbol.for("react.transitional.element"), L = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), Y = Symbol.for("react.profiler"), D = Symbol.for("react.consumer"), b = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), q = Symbol.for("react.suspense"), z = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), G = Symbol.for("react.activity"), h = Symbol.iterator;
17
+ function W(t) {
18
+ return t === null || typeof t != "object" ? null : (t = h && t[h] || t["@@iterator"], typeof t == "function" ? t : null);
19
+ }
20
+ var O = {
21
+ isMounted: function() {
22
+ return !1;
23
+ },
24
+ enqueueForceUpdate: function() {
25
+ },
26
+ enqueueReplaceState: function() {
27
+ },
28
+ enqueueSetState: function() {
29
+ }
30
+ }, g = Object.assign, N = {};
31
+ function l(t, e, u) {
32
+ this.props = t, this.context = e, this.refs = N, this.updater = u || O;
33
+ }
34
+ l.prototype.isReactComponent = {}, l.prototype.setState = function(t, e) {
35
+ if (typeof t != "object" && typeof t != "function" && t != null)
36
+ throw Error(
37
+ "takes an object of state variables to update or a function which returns an object of state variables."
38
+ );
39
+ this.updater.enqueueSetState(this, t, e, "setState");
40
+ }, l.prototype.forceUpdate = function(t) {
41
+ this.updater.enqueueForceUpdate(this, t, "forceUpdate");
42
+ };
43
+ function P() {
44
+ }
45
+ P.prototype = l.prototype;
46
+ function R(t, e, u) {
47
+ this.props = t, this.context = e, this.refs = N, this.updater = u || O;
48
+ }
49
+ var m = R.prototype = new P();
50
+ m.constructor = R, g(m, l.prototype), m.isPureReactComponent = !0;
51
+ var w = Array.isArray;
52
+ function v() {
53
+ }
54
+ var f = { H: null, A: null, T: null, S: null }, I = Object.prototype.hasOwnProperty;
55
+ function T(t, e, u) {
56
+ var o = u.ref;
57
+ return {
58
+ $$typeof: y,
59
+ type: t,
60
+ key: e,
61
+ ref: o !== void 0 ? o : null,
62
+ props: u
63
+ };
64
+ }
65
+ function K(t, e) {
66
+ return T(t.type, e, t.props);
67
+ }
68
+ function C(t) {
69
+ return typeof t == "object" && t !== null && t.$$typeof === y;
70
+ }
71
+ function V(t) {
72
+ var e = { "=": "=0", ":": "=2" };
73
+ return "$" + t.replace(/[=:]/g, function(u) {
74
+ return e[u];
75
+ });
76
+ }
77
+ var H = /\/+/g;
78
+ function S(t, e) {
79
+ return typeof t == "object" && t !== null && t.key != null ? V("" + t.key) : e.toString(36);
80
+ }
81
+ function B(t) {
82
+ switch (t.status) {
83
+ case "fulfilled":
84
+ return t.value;
85
+ case "rejected":
86
+ throw t.reason;
87
+ default:
88
+ switch (typeof t.status == "string" ? t.then(v, v) : (t.status = "pending", t.then(
89
+ function(e) {
90
+ t.status === "pending" && (t.status = "fulfilled", t.value = e);
91
+ },
92
+ function(e) {
93
+ t.status === "pending" && (t.status = "rejected", t.reason = e);
94
+ }
95
+ )), t.status) {
96
+ case "fulfilled":
97
+ return t.value;
98
+ case "rejected":
99
+ throw t.reason;
100
+ }
101
+ }
102
+ throw t;
103
+ }
104
+ function _(t, e, u, o, s) {
105
+ var c = typeof t;
106
+ (c === "undefined" || c === "boolean") && (t = null);
107
+ var i = !1;
108
+ if (t === null) i = !0;
109
+ else
110
+ switch (c) {
111
+ case "bigint":
112
+ case "string":
113
+ case "number":
114
+ i = !0;
115
+ break;
116
+ case "object":
117
+ switch (t.$$typeof) {
118
+ case y:
119
+ case L:
120
+ i = !0;
121
+ break;
122
+ case A:
123
+ return i = t._init, _(
124
+ i(t._payload),
125
+ e,
126
+ u,
127
+ o,
128
+ s
129
+ );
130
+ }
131
+ }
132
+ if (i)
133
+ return s = s(t), i = o === "" ? "." + S(t, 0) : o, w(s) ? (u = "", i != null && (u = i.replace(H, "$&/") + "/"), _(s, e, u, "", function(Z) {
134
+ return Z;
135
+ })) : s != null && (C(s) && (s = K(
136
+ s,
137
+ u + (s.key == null || t && t.key === s.key ? "" : ("" + s.key).replace(
138
+ H,
139
+ "$&/"
140
+ ) + "/") + i
141
+ )), e.push(s)), 1;
142
+ i = 0;
143
+ var p = o === "" ? "." : o + ":";
144
+ if (w(t))
145
+ for (var a = 0; a < t.length; a++)
146
+ o = t[a], c = p + S(o, a), i += _(
147
+ o,
148
+ e,
149
+ u,
150
+ c,
151
+ s
152
+ );
153
+ else if (a = W(t), typeof a == "function")
154
+ for (t = a.call(t), a = 0; !(o = t.next()).done; )
155
+ o = o.value, c = p + S(o, a++), i += _(
156
+ o,
157
+ e,
158
+ u,
159
+ c,
160
+ s
161
+ );
162
+ else if (c === "object") {
163
+ if (typeof t.then == "function")
164
+ return _(
165
+ B(t),
166
+ e,
167
+ u,
168
+ o,
169
+ s
170
+ );
171
+ throw e = String(t), Error(
172
+ "Objects are not valid as a React child (found: " + (e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e) + "). If you meant to render a collection of children, use an array instead."
173
+ );
174
+ }
175
+ return i;
176
+ }
177
+ function E(t, e, u) {
178
+ if (t == null) return t;
179
+ var o = [], s = 0;
180
+ return _(t, o, "", "", function(c) {
181
+ return e.call(u, c, s++);
182
+ }), o;
183
+ }
184
+ function Q(t) {
185
+ if (t._status === -1) {
186
+ var e = t._result;
187
+ e = e(), e.then(
188
+ function(u) {
189
+ (t._status === 0 || t._status === -1) && (t._status = 1, t._result = u);
190
+ },
191
+ function(u) {
192
+ (t._status === 0 || t._status === -1) && (t._status = 2, t._result = u);
193
+ }
194
+ ), t._status === -1 && (t._status = 0, t._result = e);
195
+ }
196
+ if (t._status === 1) return t._result.default;
197
+ throw t._result;
198
+ }
199
+ var j = typeof reportError == "function" ? reportError : function(t) {
200
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
201
+ var e = new window.ErrorEvent("error", {
202
+ bubbles: !0,
203
+ cancelable: !0,
204
+ message: typeof t == "object" && t !== null && typeof t.message == "string" ? String(t.message) : String(t),
205
+ error: t
206
+ });
207
+ if (!window.dispatchEvent(e)) return;
208
+ } else if (typeof process == "object" && typeof process.emit == "function") {
209
+ process.emit("uncaughtException", t);
210
+ return;
211
+ }
212
+ console.error(t);
213
+ }, X = {
214
+ map: E,
215
+ forEach: function(t, e, u) {
216
+ E(
217
+ t,
218
+ function() {
219
+ e.apply(this, arguments);
220
+ },
221
+ u
222
+ );
223
+ },
224
+ count: function(t) {
225
+ var e = 0;
226
+ return E(t, function() {
227
+ e++;
228
+ }), e;
229
+ },
230
+ toArray: function(t) {
231
+ return E(t, function(e) {
232
+ return e;
233
+ }) || [];
234
+ },
235
+ only: function(t) {
236
+ if (!C(t))
237
+ throw Error(
238
+ "React.Children.only expected to receive a single React element child."
239
+ );
240
+ return t;
241
+ }
242
+ };
243
+ return n.Activity = G, n.Children = X, n.Component = l, n.Fragment = $, n.Profiler = Y, n.PureComponent = R, n.StrictMode = U, n.Suspense = q, n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = f, n.__COMPILER_RUNTIME = {
244
+ __proto__: null,
245
+ c: function(t) {
246
+ return f.H.useMemoCache(t);
247
+ }
248
+ }, n.cache = function(t) {
249
+ return function() {
250
+ return t.apply(null, arguments);
251
+ };
252
+ }, n.cacheSignal = function() {
253
+ return null;
254
+ }, n.cloneElement = function(t, e, u) {
255
+ if (t == null)
256
+ throw Error(
257
+ "The argument must be a React element, but you passed " + t + "."
258
+ );
259
+ var o = g({}, t.props), s = t.key;
260
+ if (e != null)
261
+ for (c in e.key !== void 0 && (s = "" + e.key), e)
262
+ !I.call(e, c) || c === "key" || c === "__self" || c === "__source" || c === "ref" && e.ref === void 0 || (o[c] = e[c]);
263
+ var c = arguments.length - 2;
264
+ if (c === 1) o.children = u;
265
+ else if (1 < c) {
266
+ for (var i = Array(c), p = 0; p < c; p++)
267
+ i[p] = arguments[p + 2];
268
+ o.children = i;
269
+ }
270
+ return T(t.type, s, o);
271
+ }, n.createContext = function(t) {
272
+ return t = {
273
+ $$typeof: b,
274
+ _currentValue: t,
275
+ _currentValue2: t,
276
+ _threadCount: 0,
277
+ Provider: null,
278
+ Consumer: null
279
+ }, t.Provider = t, t.Consumer = {
280
+ $$typeof: D,
281
+ _context: t
282
+ }, t;
283
+ }, n.createElement = function(t, e, u) {
284
+ var o, s = {}, c = null;
285
+ if (e != null)
286
+ for (o in e.key !== void 0 && (c = "" + e.key), e)
287
+ I.call(e, o) && o !== "key" && o !== "__self" && o !== "__source" && (s[o] = e[o]);
288
+ var i = arguments.length - 2;
289
+ if (i === 1) s.children = u;
290
+ else if (1 < i) {
291
+ for (var p = Array(i), a = 0; a < i; a++)
292
+ p[a] = arguments[a + 2];
293
+ s.children = p;
294
+ }
295
+ if (t && t.defaultProps)
296
+ for (o in i = t.defaultProps, i)
297
+ s[o] === void 0 && (s[o] = i[o]);
298
+ return T(t, c, s);
299
+ }, n.createRef = function() {
300
+ return { current: null };
301
+ }, n.forwardRef = function(t) {
302
+ return { $$typeof: k, render: t };
303
+ }, n.isValidElement = C, n.lazy = function(t) {
304
+ return {
305
+ $$typeof: A,
306
+ _payload: { _status: -1, _result: t },
307
+ _init: Q
308
+ };
309
+ }, n.memo = function(t, e) {
310
+ return {
311
+ $$typeof: z,
312
+ type: t,
313
+ compare: e === void 0 ? null : e
314
+ };
315
+ }, n.startTransition = function(t) {
316
+ var e = f.T, u = {};
317
+ f.T = u;
318
+ try {
319
+ var o = t(), s = f.S;
320
+ s !== null && s(u, o), typeof o == "object" && o !== null && typeof o.then == "function" && o.then(v, j);
321
+ } catch (c) {
322
+ j(c);
323
+ } finally {
324
+ e !== null && u.types !== null && (e.types = u.types), f.T = e;
325
+ }
326
+ }, n.unstable_useCacheRefresh = function() {
327
+ return f.H.useCacheRefresh();
328
+ }, n.use = function(t) {
329
+ return f.H.use(t);
330
+ }, n.useActionState = function(t, e, u) {
331
+ return f.H.useActionState(t, e, u);
332
+ }, n.useCallback = function(t, e) {
333
+ return f.H.useCallback(t, e);
334
+ }, n.useContext = function(t) {
335
+ return f.H.useContext(t);
336
+ }, n.useDebugValue = function() {
337
+ }, n.useDeferredValue = function(t, e) {
338
+ return f.H.useDeferredValue(t, e);
339
+ }, n.useEffect = function(t, e) {
340
+ return f.H.useEffect(t, e);
341
+ }, n.useEffectEvent = function(t) {
342
+ return f.H.useEffectEvent(t);
343
+ }, n.useId = function() {
344
+ return f.H.useId();
345
+ }, n.useImperativeHandle = function(t, e, u) {
346
+ return f.H.useImperativeHandle(t, e, u);
347
+ }, n.useInsertionEffect = function(t, e) {
348
+ return f.H.useInsertionEffect(t, e);
349
+ }, n.useLayoutEffect = function(t, e) {
350
+ return f.H.useLayoutEffect(t, e);
351
+ }, n.useMemo = function(t, e) {
352
+ return f.H.useMemo(t, e);
353
+ }, n.useOptimistic = function(t, e) {
354
+ return f.H.useOptimistic(t, e);
355
+ }, n.useReducer = function(t, e, u) {
356
+ return f.H.useReducer(t, e, u);
357
+ }, n.useRef = function(t) {
358
+ return f.H.useRef(t);
359
+ }, n.useState = function(t) {
360
+ return f.H.useState(t);
361
+ }, n.useSyncExternalStore = function(t, e, u) {
362
+ return f.H.useSyncExternalStore(
363
+ t,
364
+ e,
365
+ u
366
+ );
367
+ }, n.useTransition = function() {
368
+ return f.H.useTransition();
369
+ }, n.version = "19.2.0", n;
370
+ }
371
+ var x;
372
+ function tt() {
373
+ return x || (x = 1, d.exports = F()), d.exports;
374
+ }
375
+ var et = tt();
376
+ const r = /* @__PURE__ */ J(et), rt = r.Activity, ot = r.Children, ut = r.Component, st = r.Fragment, ct = r.Profiler, ft = r.PureComponent, it = r.StrictMode, at = r.Suspense, pt = r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, lt = r.__COMPILER_RUNTIME, _t = r.cache, Et = r.cacheSignal, yt = r.cloneElement, Rt = r.createContext, mt = r.createElement, vt = r.createRef, Tt = r.forwardRef, Ct = r.isValidElement, St = r.lazy, dt = r.memo, At = r.startTransition, ht = r.unstable_useCacheRefresh, Ot = r.use, gt = r.useActionState, Nt = r.useCallback, Pt = r.useContext, wt = r.useDebugValue, It = r.useDeferredValue, Ht = r.useEffect, jt = r.useEffectEvent, Mt = r.useId, xt = r.useImperativeHandle, Lt = r.useInsertionEffect, $t = r.useLayoutEffect, Ut = r.useMemo, Yt = r.useOptimistic, Dt = r.useReducer, bt = r.useRef, kt = r.useState, qt = r.useSyncExternalStore, zt = r.useTransition, Gt = r.version, Wt = r.default || r;
377
+ export {
378
+ rt as Activity,
379
+ ot as Children,
380
+ ut as Component,
381
+ st as Fragment,
382
+ ct as Profiler,
383
+ ft as PureComponent,
384
+ it as StrictMode,
385
+ at as Suspense,
386
+ pt as __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
387
+ lt as __COMPILER_RUNTIME,
388
+ _t as cache,
389
+ Et as cacheSignal,
390
+ yt as cloneElement,
391
+ Rt as createContext,
392
+ mt as createElement,
393
+ vt as createRef,
394
+ Wt as default,
395
+ Tt as forwardRef,
396
+ Ct as isValidElement,
397
+ St as lazy,
398
+ dt as memo,
399
+ At as startTransition,
400
+ ht as unstable_useCacheRefresh,
401
+ Ot as use,
402
+ gt as useActionState,
403
+ Nt as useCallback,
404
+ Pt as useContext,
405
+ wt as useDebugValue,
406
+ It as useDeferredValue,
407
+ Ht as useEffect,
408
+ jt as useEffectEvent,
409
+ Mt as useId,
410
+ xt as useImperativeHandle,
411
+ Lt as useInsertionEffect,
412
+ $t as useLayoutEffect,
413
+ Ut as useMemo,
414
+ Yt as useOptimistic,
415
+ Dt as useReducer,
416
+ bt as useRef,
417
+ kt as useState,
418
+ qt as useSyncExternalStore,
419
+ zt as useTransition,
420
+ Gt as version
421
+ };