strapi-plugin-comments 3.1.1 → 3.1.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/_chunks/{index-CoArx2AB.mjs → index-111xj66k.mjs} +2 -2
- package/dist/_chunks/{index-CL3ZQ5c8.js → index-BYom1Ujm.js} +2 -2
- package/dist/_chunks/{index-s3cDVDHP.mjs → index-C4yRw0kg.mjs} +2 -2
- package/dist/_chunks/{index-D7OmqK1F.mjs → index-C6r-CX-i.mjs} +2 -2
- package/dist/_chunks/{index-BUbb2WGh.js → index-CQcJlyLz.js} +1 -1
- package/dist/_chunks/{index-Cpp_f9wq.js → index-DFSVVbXk.js} +1 -1
- package/dist/_chunks/{index-ZS4k_B_E.js → index-Ddsb0ILo.js} +1 -1
- package/dist/_chunks/{index-B7COUj1E.mjs → index-dty11bFS.mjs} +83 -83
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/api/client.d.ts +65 -65
- package/dist/admin/src/api/schemas.d.ts +537 -537
- package/dist/admin/src/contexts/UserContext.d.ts +1 -1
- package/dist/admin/src/hooks/useAPI.d.ts +66 -66
- package/dist/admin/src/hooks/useCommentMutations.d.ts +1 -1
- package/dist/admin/src/hooks/useCommentsAll.d.ts +4 -4
- package/dist/admin/src/hooks/useReports.d.ts +12 -12
- package/dist/admin/src/hooks/useUserContext.d.ts +1 -1
- package/dist/server/index.js +30 -30
- package/dist/server/index.mjs +281 -266
- package/dist/server/src/repositories/report.comment.repository.d.ts +66 -0
- package/dist/server/src/validators/repositories/comment.schema.d.ts +156 -0
- package/dist/server/src/validators/repositories/comment.validator.d.ts +16 -16
- package/dist/server/src/validators/repositories/reports.validator.d.ts +2709 -1149
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad as en, ae as rn, af as wr, ag as it, p as tn, ah as nn, ai as Rr, l as Tr, aj as an, ak as ee, al as V, F as on, am as ln, T as un, e as Cr } from "./index-
|
|
1
|
+
import { ad as en, ae as rn, af as wr, ag as it, p as tn, ah as nn, ai as Rr, l as Tr, aj as an, ak as ee, al as V, F as on, am as ln, T as un, e as Cr } from "./index-C4yRw0kg.mjs";
|
|
2
2
|
import * as oe from "react";
|
|
3
3
|
import { useState as ar, useEffect as cn, useMemo as lt, createContext as fn } from "react";
|
|
4
4
|
import { jsx as _, jsxs as Ee } from "react/jsx-runtime";
|
|
@@ -15,7 +15,7 @@ const vn = () => {
|
|
|
15
15
|
themeName: e
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
var or = { exports: {} },
|
|
18
|
+
var or = { exports: {} }, S = {};
|
|
19
19
|
/** @license React v16.13.1
|
|
20
20
|
* react-is.production.min.js
|
|
21
21
|
*
|
|
@@ -26,7 +26,7 @@ var or = { exports: {} }, b = {};
|
|
|
26
26
|
*/
|
|
27
27
|
var _r;
|
|
28
28
|
function gn() {
|
|
29
|
-
if (_r) return
|
|
29
|
+
if (_r) return S;
|
|
30
30
|
_r = 1;
|
|
31
31
|
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, a = r ? Symbol.for("react.strict_mode") : 60108, i = r ? Symbol.for("react.profiler") : 60114, c = r ? Symbol.for("react.provider") : 60109, l = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, u = r ? Symbol.for("react.concurrent_mode") : 60111, p = r ? Symbol.for("react.forward_ref") : 60112, y = r ? Symbol.for("react.suspense") : 60113, m = r ? Symbol.for("react.suspense_list") : 60120, h = r ? Symbol.for("react.memo") : 60115, v = r ? Symbol.for("react.lazy") : 60116, O = r ? Symbol.for("react.block") : 60121, T = r ? Symbol.for("react.fundamental") : 60117, g = r ? Symbol.for("react.responder") : 60118, x = r ? Symbol.for("react.scope") : 60119;
|
|
32
32
|
function P(s) {
|
|
@@ -62,33 +62,33 @@ function gn() {
|
|
|
62
62
|
function $(s) {
|
|
63
63
|
return P(s) === u;
|
|
64
64
|
}
|
|
65
|
-
return
|
|
65
|
+
return S.AsyncMode = f, S.ConcurrentMode = u, S.ContextConsumer = l, S.ContextProvider = c, S.Element = e, S.ForwardRef = p, S.Fragment = n, S.Lazy = v, S.Memo = h, S.Portal = t, S.Profiler = i, S.StrictMode = a, S.Suspense = y, S.isAsyncMode = function(s) {
|
|
66
66
|
return $(s) || P(s) === f;
|
|
67
|
-
},
|
|
67
|
+
}, S.isConcurrentMode = $, S.isContextConsumer = function(s) {
|
|
68
68
|
return P(s) === l;
|
|
69
|
-
},
|
|
69
|
+
}, S.isContextProvider = function(s) {
|
|
70
70
|
return P(s) === c;
|
|
71
|
-
},
|
|
71
|
+
}, S.isElement = function(s) {
|
|
72
72
|
return typeof s == "object" && s !== null && s.$$typeof === e;
|
|
73
|
-
},
|
|
73
|
+
}, S.isForwardRef = function(s) {
|
|
74
74
|
return P(s) === p;
|
|
75
|
-
},
|
|
75
|
+
}, S.isFragment = function(s) {
|
|
76
76
|
return P(s) === n;
|
|
77
|
-
},
|
|
77
|
+
}, S.isLazy = function(s) {
|
|
78
78
|
return P(s) === v;
|
|
79
|
-
},
|
|
79
|
+
}, S.isMemo = function(s) {
|
|
80
80
|
return P(s) === h;
|
|
81
|
-
},
|
|
81
|
+
}, S.isPortal = function(s) {
|
|
82
82
|
return P(s) === t;
|
|
83
|
-
},
|
|
83
|
+
}, S.isProfiler = function(s) {
|
|
84
84
|
return P(s) === i;
|
|
85
|
-
},
|
|
85
|
+
}, S.isStrictMode = function(s) {
|
|
86
86
|
return P(s) === a;
|
|
87
|
-
},
|
|
87
|
+
}, S.isSuspense = function(s) {
|
|
88
88
|
return P(s) === y;
|
|
89
|
-
},
|
|
89
|
+
}, S.isValidElementType = function(s) {
|
|
90
90
|
return typeof s == "string" || typeof s == "function" || s === n || s === u || s === i || s === a || s === y || s === m || typeof s == "object" && s !== null && (s.$$typeof === v || s.$$typeof === h || s.$$typeof === c || s.$$typeof === l || s.$$typeof === p || s.$$typeof === T || s.$$typeof === g || s.$$typeof === x || s.$$typeof === O);
|
|
91
|
-
},
|
|
91
|
+
}, S.typeOf = P, S;
|
|
92
92
|
}
|
|
93
93
|
var E = {};
|
|
94
94
|
/** @license React v16.13.1
|
|
@@ -112,17 +112,17 @@ function hn() {
|
|
|
112
112
|
var De = d.$$typeof;
|
|
113
113
|
switch (De) {
|
|
114
114
|
case e:
|
|
115
|
-
var
|
|
116
|
-
switch (
|
|
115
|
+
var Se = d.type;
|
|
116
|
+
switch (Se) {
|
|
117
117
|
case f:
|
|
118
118
|
case u:
|
|
119
119
|
case n:
|
|
120
120
|
case i:
|
|
121
121
|
case a:
|
|
122
122
|
case y:
|
|
123
|
-
return
|
|
123
|
+
return Se;
|
|
124
124
|
default:
|
|
125
|
-
var $r =
|
|
125
|
+
var $r = Se && Se.$$typeof;
|
|
126
126
|
switch ($r) {
|
|
127
127
|
case l:
|
|
128
128
|
case p:
|
|
@@ -183,7 +183,7 @@ function hn() {
|
|
|
183
183
|
}()), E;
|
|
184
184
|
}
|
|
185
185
|
process.env.NODE_ENV === "production" ? or.exports = gn() : or.exports = hn();
|
|
186
|
-
var
|
|
186
|
+
var bn = or.exports, ut = bn, Sn = {
|
|
187
187
|
$$typeof: !0,
|
|
188
188
|
render: !0,
|
|
189
189
|
defaultProps: !0,
|
|
@@ -197,7 +197,7 @@ var Sn = or.exports, ut = Sn, bn = {
|
|
|
197
197
|
propTypes: !0,
|
|
198
198
|
type: !0
|
|
199
199
|
}, ct = {};
|
|
200
|
-
ct[ut.ForwardRef] =
|
|
200
|
+
ct[ut.ForwardRef] = Sn;
|
|
201
201
|
ct[ut.Memo] = En;
|
|
202
202
|
function An(r, e, t) {
|
|
203
203
|
if (t === void 0 && (t = Error), !r)
|
|
@@ -298,7 +298,7 @@ const Cn = {}, _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
298
298
|
__proto__: null,
|
|
299
299
|
default: Cn
|
|
300
300
|
}, Symbol.toStringTag, { value: "Module" })), xn = /* @__PURE__ */ nn(_n);
|
|
301
|
-
var gr = typeof Map == "function" && Map.prototype, Le = Object.getOwnPropertyDescriptor && gr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Re = gr && Le && typeof Le.get == "function" ? Le.get : null, Ir = gr && Map.prototype.forEach, hr = typeof Set == "function" && Set.prototype, Be = Object.getOwnPropertyDescriptor && hr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Te = hr && Be && typeof Be.get == "function" ? Be.get : null, Nr = hr && Set.prototype.forEach, In = typeof WeakMap == "function" && WeakMap.prototype, se = In ? WeakMap.prototype.has : null, Nn = typeof WeakSet == "function" && WeakSet.prototype, pe = Nn ? WeakSet.prototype.has : null, Fn = typeof WeakRef == "function" && WeakRef.prototype, Fr = Fn ? WeakRef.prototype.deref : null, Mn = Boolean.prototype.valueOf, Dn = Object.prototype.toString, Ln = Function.prototype.toString, Bn = String.prototype.match,
|
|
301
|
+
var gr = typeof Map == "function" && Map.prototype, Le = Object.getOwnPropertyDescriptor && gr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Re = gr && Le && typeof Le.get == "function" ? Le.get : null, Ir = gr && Map.prototype.forEach, hr = typeof Set == "function" && Set.prototype, Be = Object.getOwnPropertyDescriptor && hr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Te = hr && Be && typeof Be.get == "function" ? Be.get : null, Nr = hr && Set.prototype.forEach, In = typeof WeakMap == "function" && WeakMap.prototype, se = In ? WeakMap.prototype.has : null, Nn = typeof WeakSet == "function" && WeakSet.prototype, pe = Nn ? WeakSet.prototype.has : null, Fn = typeof WeakRef == "function" && WeakRef.prototype, Fr = Fn ? WeakRef.prototype.deref : null, Mn = Boolean.prototype.valueOf, Dn = Object.prototype.toString, Ln = Function.prototype.toString, Bn = String.prototype.match, br = String.prototype.slice, H = String.prototype.replace, Un = String.prototype.toUpperCase, Mr = String.prototype.toLowerCase, pt = RegExp.prototype.test, Dr = Array.prototype.concat, L = Array.prototype.join, kn = Array.prototype.slice, Lr = Math.floor, ur = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ue = Object.getOwnPropertySymbols, cr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ie = typeof Symbol == "function" && typeof Symbol.iterator == "object", ye = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ie || !0) ? Symbol.toStringTag : null, yt = Object.prototype.propertyIsEnumerable, Br = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
|
|
302
302
|
return r.__proto__;
|
|
303
303
|
} : null);
|
|
304
304
|
function Ur(r, e) {
|
|
@@ -308,7 +308,7 @@ function Ur(r, e) {
|
|
|
308
308
|
if (typeof r == "number") {
|
|
309
309
|
var n = r < 0 ? -Lr(-r) : Lr(r);
|
|
310
310
|
if (n !== r) {
|
|
311
|
-
var a = String(n), i =
|
|
311
|
+
var a = String(n), i = br.call(e, a.length + 1);
|
|
312
312
|
return H.call(a, t, "$&_") + "." + H.call(H.call(i, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
313
313
|
}
|
|
314
314
|
}
|
|
@@ -431,7 +431,7 @@ var fr = xn, kr = fr.custom, qr = vt(kr) ? kr : null, dt = {
|
|
|
431
431
|
if (typeof globalThis < "u" && e === globalThis || typeof Rr < "u" && e === Rr)
|
|
432
432
|
return "{ [object globalThis] }";
|
|
433
433
|
if (!Gn(e) && !Wr(e)) {
|
|
434
|
-
var B = Ae(e, m), M = Br ? Br(e) === Object.prototype : e instanceof Object || e.constructor === Object, q = e instanceof Object ? "" : "null prototype", W = !M && ye && Object(e) === e && ye in e ?
|
|
434
|
+
var B = Ae(e, m), M = Br ? Br(e) === Object.prototype : e instanceof Object || e.constructor === Object, q = e instanceof Object ? "" : "null prototype", W = !M && ye && Object(e) === e && ye in e ? br.call(Y(e), 8, -1) : q ? "Object" : "", K = M || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", I = K + (W || q ? "[" + L.call(Dr.call([], W || [], q || []), ": ") + "] " : "");
|
|
435
435
|
return B.length === 0 ? I + "{}" : y ? I + "{" + pr(B, y) + "}" : I + "{ " + L.call(B, ", ") + " }";
|
|
436
436
|
}
|
|
437
437
|
return String(e);
|
|
@@ -587,7 +587,7 @@ function ta(r) {
|
|
|
587
587
|
function ht(r, e) {
|
|
588
588
|
if (r.length > e.maxStringLength) {
|
|
589
589
|
var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
|
|
590
|
-
return ht(
|
|
590
|
+
return ht(br.call(r, 0, e.maxStringLength), e) + n;
|
|
591
591
|
}
|
|
592
592
|
var a = qn[e.quoteStyle || "single"];
|
|
593
593
|
a.lastIndex = 0;
|
|
@@ -714,7 +714,7 @@ var ia = Ie, la = ce, Ne = function(r, e, t) {
|
|
|
714
714
|
}
|
|
715
715
|
};
|
|
716
716
|
return t;
|
|
717
|
-
},
|
|
717
|
+
}, bt = Object, ya = Error, da = EvalError, ma = RangeError, va = ReferenceError, ga = SyntaxError, ha = URIError, ba = Math.abs, Sa = Math.floor, Ea = Math.max, Aa = Math.min, Pa = Math.pow, Oa = Math.round, $a = Number.isNaN || function(e) {
|
|
718
718
|
return e !== e;
|
|
719
719
|
}, wa = $a, Ra = function(e) {
|
|
720
720
|
return wa(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
@@ -725,7 +725,7 @@ if (Oe)
|
|
|
725
725
|
} catch {
|
|
726
726
|
Oe = null;
|
|
727
727
|
}
|
|
728
|
-
var
|
|
728
|
+
var St = Oe, $e = Object.defineProperty || !1;
|
|
729
729
|
if ($e)
|
|
730
730
|
try {
|
|
731
731
|
$e({}, "a", { value: 1 });
|
|
@@ -779,7 +779,7 @@ var je, Hr;
|
|
|
779
779
|
function At() {
|
|
780
780
|
if (Hr) return je;
|
|
781
781
|
Hr = 1;
|
|
782
|
-
var r =
|
|
782
|
+
var r = bt;
|
|
783
783
|
return je = r.getPrototypeOf || null, je;
|
|
784
784
|
}
|
|
785
785
|
var Ve, Yr;
|
|
@@ -835,14 +835,14 @@ function Fe() {
|
|
|
835
835
|
return ze = Function.prototype.bind || r, ze;
|
|
836
836
|
}
|
|
837
837
|
var He, Qr;
|
|
838
|
-
function
|
|
838
|
+
function Sr() {
|
|
839
839
|
return Qr || (Qr = 1, He = Function.prototype.call), He;
|
|
840
840
|
}
|
|
841
841
|
var Ye, Jr;
|
|
842
842
|
function Pt() {
|
|
843
843
|
return Jr || (Jr = 1, Ye = Function.prototype.apply), Ye;
|
|
844
844
|
}
|
|
845
|
-
var Na = typeof Reflect < "u" && Reflect && Reflect.apply, Fa = Fe(), Ma = Pt(), Da =
|
|
845
|
+
var Na = typeof Reflect < "u" && Reflect && Reflect.apply, Fa = Fe(), Ma = Pt(), Da = Sr(), La = Na, Ba = La || Fa.call(Da, Ma), Ua = Fe(), ka = ce, qa = Sr(), Wa = Ba, Ot = function(e) {
|
|
846
846
|
if (e.length < 1 || typeof e[0] != "function")
|
|
847
847
|
throw new ka("a function is required");
|
|
848
848
|
return Wa(Ua, qa, e);
|
|
@@ -850,7 +850,7 @@ var Na = typeof Reflect < "u" && Reflect && Reflect.apply, Fa = Fe(), Ma = Pt(),
|
|
|
850
850
|
function Ga() {
|
|
851
851
|
if (Xr) return Ke;
|
|
852
852
|
Xr = 1;
|
|
853
|
-
var r = Ot, e =
|
|
853
|
+
var r = Ot, e = St, t;
|
|
854
854
|
try {
|
|
855
855
|
t = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
856
856
|
[].__proto__ === Array.prototype;
|
|
@@ -892,12 +892,12 @@ function Va() {
|
|
|
892
892
|
var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Fe();
|
|
893
893
|
return Je = t.call(r, e), Je;
|
|
894
894
|
}
|
|
895
|
-
var
|
|
895
|
+
var b, za = bt, Ha = ya, Ya = da, Ka = ma, Qa = va, le = ga, ae = ce, Ja = ha, Xa = ba, Za = Sa, eo = Ea, ro = Aa, to = Pa, no = Oa, ao = Ra, $t = Function, Xe = function(r) {
|
|
896
896
|
try {
|
|
897
897
|
return $t('"use strict"; return (' + r + ").constructor;")();
|
|
898
898
|
} catch {
|
|
899
899
|
}
|
|
900
|
-
}, me =
|
|
900
|
+
}, me = St, oo = Ca, Ze = function() {
|
|
901
901
|
throw new ae();
|
|
902
902
|
}, io = me ? function() {
|
|
903
903
|
try {
|
|
@@ -909,23 +909,23 @@ var S, za = St, Ha = ya, Ya = da, Ka = ma, Qa = va, le = ga, ae = ce, Ja = ha, X
|
|
|
909
909
|
return Ze;
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
|
-
}() : Ze, re = xa()(), R = ja(), lo = At(), uo = Et(), wt = Pt(), ge =
|
|
912
|
+
}() : Ze, re = xa()(), R = ja(), lo = At(), uo = Et(), wt = Pt(), ge = Sr(), ne = {}, co = typeof Uint8Array > "u" || !R ? b : R(Uint8Array), J = {
|
|
913
913
|
__proto__: null,
|
|
914
|
-
"%AggregateError%": typeof AggregateError > "u" ?
|
|
914
|
+
"%AggregateError%": typeof AggregateError > "u" ? b : AggregateError,
|
|
915
915
|
"%Array%": Array,
|
|
916
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ?
|
|
917
|
-
"%ArrayIteratorPrototype%": re && R ? R([][Symbol.iterator]()) :
|
|
918
|
-
"%AsyncFromSyncIteratorPrototype%":
|
|
916
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? b : ArrayBuffer,
|
|
917
|
+
"%ArrayIteratorPrototype%": re && R ? R([][Symbol.iterator]()) : b,
|
|
918
|
+
"%AsyncFromSyncIteratorPrototype%": b,
|
|
919
919
|
"%AsyncFunction%": ne,
|
|
920
920
|
"%AsyncGenerator%": ne,
|
|
921
921
|
"%AsyncGeneratorFunction%": ne,
|
|
922
922
|
"%AsyncIteratorPrototype%": ne,
|
|
923
|
-
"%Atomics%": typeof Atomics > "u" ?
|
|
924
|
-
"%BigInt%": typeof BigInt > "u" ?
|
|
925
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ?
|
|
926
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ?
|
|
923
|
+
"%Atomics%": typeof Atomics > "u" ? b : Atomics,
|
|
924
|
+
"%BigInt%": typeof BigInt > "u" ? b : BigInt,
|
|
925
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? b : BigInt64Array,
|
|
926
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? b : BigUint64Array,
|
|
927
927
|
"%Boolean%": Boolean,
|
|
928
|
-
"%DataView%": typeof DataView > "u" ?
|
|
928
|
+
"%DataView%": typeof DataView > "u" ? b : DataView,
|
|
929
929
|
"%Date%": Date,
|
|
930
930
|
"%decodeURI%": decodeURI,
|
|
931
931
|
"%decodeURIComponent%": decodeURIComponent,
|
|
@@ -935,51 +935,51 @@ var S, za = St, Ha = ya, Ya = da, Ka = ma, Qa = va, le = ga, ae = ce, Ja = ha, X
|
|
|
935
935
|
"%eval%": eval,
|
|
936
936
|
// eslint-disable-line no-eval
|
|
937
937
|
"%EvalError%": Ya,
|
|
938
|
-
"%Float16Array%": typeof Float16Array > "u" ?
|
|
939
|
-
"%Float32Array%": typeof Float32Array > "u" ?
|
|
940
|
-
"%Float64Array%": typeof Float64Array > "u" ?
|
|
941
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ?
|
|
938
|
+
"%Float16Array%": typeof Float16Array > "u" ? b : Float16Array,
|
|
939
|
+
"%Float32Array%": typeof Float32Array > "u" ? b : Float32Array,
|
|
940
|
+
"%Float64Array%": typeof Float64Array > "u" ? b : Float64Array,
|
|
941
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? b : FinalizationRegistry,
|
|
942
942
|
"%Function%": $t,
|
|
943
943
|
"%GeneratorFunction%": ne,
|
|
944
|
-
"%Int8Array%": typeof Int8Array > "u" ?
|
|
945
|
-
"%Int16Array%": typeof Int16Array > "u" ?
|
|
946
|
-
"%Int32Array%": typeof Int32Array > "u" ?
|
|
944
|
+
"%Int8Array%": typeof Int8Array > "u" ? b : Int8Array,
|
|
945
|
+
"%Int16Array%": typeof Int16Array > "u" ? b : Int16Array,
|
|
946
|
+
"%Int32Array%": typeof Int32Array > "u" ? b : Int32Array,
|
|
947
947
|
"%isFinite%": isFinite,
|
|
948
948
|
"%isNaN%": isNaN,
|
|
949
|
-
"%IteratorPrototype%": re && R ? R(R([][Symbol.iterator]())) :
|
|
950
|
-
"%JSON%": typeof JSON == "object" ? JSON :
|
|
951
|
-
"%Map%": typeof Map > "u" ?
|
|
952
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !re || !R ?
|
|
949
|
+
"%IteratorPrototype%": re && R ? R(R([][Symbol.iterator]())) : b,
|
|
950
|
+
"%JSON%": typeof JSON == "object" ? JSON : b,
|
|
951
|
+
"%Map%": typeof Map > "u" ? b : Map,
|
|
952
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !re || !R ? b : R((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
953
953
|
"%Math%": Math,
|
|
954
954
|
"%Number%": Number,
|
|
955
955
|
"%Object%": za,
|
|
956
956
|
"%Object.getOwnPropertyDescriptor%": me,
|
|
957
957
|
"%parseFloat%": parseFloat,
|
|
958
958
|
"%parseInt%": parseInt,
|
|
959
|
-
"%Promise%": typeof Promise > "u" ?
|
|
960
|
-
"%Proxy%": typeof Proxy > "u" ?
|
|
959
|
+
"%Promise%": typeof Promise > "u" ? b : Promise,
|
|
960
|
+
"%Proxy%": typeof Proxy > "u" ? b : Proxy,
|
|
961
961
|
"%RangeError%": Ka,
|
|
962
962
|
"%ReferenceError%": Qa,
|
|
963
|
-
"%Reflect%": typeof Reflect > "u" ?
|
|
963
|
+
"%Reflect%": typeof Reflect > "u" ? b : Reflect,
|
|
964
964
|
"%RegExp%": RegExp,
|
|
965
|
-
"%Set%": typeof Set > "u" ?
|
|
966
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !re || !R ?
|
|
967
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ?
|
|
965
|
+
"%Set%": typeof Set > "u" ? b : Set,
|
|
966
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !re || !R ? b : R((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
967
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? b : SharedArrayBuffer,
|
|
968
968
|
"%String%": String,
|
|
969
|
-
"%StringIteratorPrototype%": re && R ? R(""[Symbol.iterator]()) :
|
|
970
|
-
"%Symbol%": re ? Symbol :
|
|
969
|
+
"%StringIteratorPrototype%": re && R ? R(""[Symbol.iterator]()) : b,
|
|
970
|
+
"%Symbol%": re ? Symbol : b,
|
|
971
971
|
"%SyntaxError%": le,
|
|
972
972
|
"%ThrowTypeError%": io,
|
|
973
973
|
"%TypedArray%": co,
|
|
974
974
|
"%TypeError%": ae,
|
|
975
|
-
"%Uint8Array%": typeof Uint8Array > "u" ?
|
|
976
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ?
|
|
977
|
-
"%Uint16Array%": typeof Uint16Array > "u" ?
|
|
978
|
-
"%Uint32Array%": typeof Uint32Array > "u" ?
|
|
975
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? b : Uint8Array,
|
|
976
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? b : Uint8ClampedArray,
|
|
977
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? b : Uint16Array,
|
|
978
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? b : Uint32Array,
|
|
979
979
|
"%URIError%": Ja,
|
|
980
|
-
"%WeakMap%": typeof WeakMap > "u" ?
|
|
981
|
-
"%WeakRef%": typeof WeakRef > "u" ?
|
|
982
|
-
"%WeakSet%": typeof WeakSet > "u" ?
|
|
980
|
+
"%WeakMap%": typeof WeakMap > "u" ? b : WeakMap,
|
|
981
|
+
"%WeakRef%": typeof WeakRef > "u" ? b : WeakRef,
|
|
982
|
+
"%WeakSet%": typeof WeakSet > "u" ? b : WeakSet,
|
|
983
983
|
"%Function.prototype.call%": ge,
|
|
984
984
|
"%Function.prototype.apply%": wt,
|
|
985
985
|
"%Object.defineProperty%": oo,
|
|
@@ -1079,7 +1079,7 @@ var so = function r(e) {
|
|
|
1079
1079
|
return tt(e, vo, function(i, c, l, f) {
|
|
1080
1080
|
a[a.length] = l ? tt(f, go, "$1") : c || i;
|
|
1081
1081
|
}), a;
|
|
1082
|
-
},
|
|
1082
|
+
}, bo = function(e, t) {
|
|
1083
1083
|
var n = e, a;
|
|
1084
1084
|
if (Ce(rt, n) && (a = rt[n], n = "%" + a[0] + "%"), Ce(J, n)) {
|
|
1085
1085
|
var i = J[n];
|
|
@@ -1099,7 +1099,7 @@ var so = function r(e) {
|
|
|
1099
1099
|
throw new ae('"allowMissing" argument must be a boolean');
|
|
1100
1100
|
if (mo(/^%?[^%]*%?$/, e) === null)
|
|
1101
1101
|
throw new le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
1102
|
-
var n = ho(e), a = n.length > 0 ? n[0] : "", i =
|
|
1102
|
+
var n = ho(e), a = n.length > 0 ? n[0] : "", i = bo("%" + a + "%", t), c = i.name, l = i.value, f = !1, u = i.alias;
|
|
1103
1103
|
u && (a = u[0], yo(n, po([0, 1], u)));
|
|
1104
1104
|
for (var p = 1, y = !0; p < n.length; p += 1) {
|
|
1105
1105
|
var m = n[p], h = _e(m, 0, 1), v = _e(m, -1);
|
|
@@ -1122,16 +1122,16 @@ var so = function r(e) {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
return l;
|
|
1125
|
-
}, Rt = Er, Tt = Ot,
|
|
1125
|
+
}, Rt = Er, Tt = Ot, So = Tt([Rt("%String.prototype.indexOf%")]), Ct = function(e, t) {
|
|
1126
1126
|
var n = (
|
|
1127
1127
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
1128
1128
|
Rt(e, !!t)
|
|
1129
1129
|
);
|
|
1130
|
-
return typeof n == "function" &&
|
|
1130
|
+
return typeof n == "function" && So(e, ".prototype.") > -1 ? Tt(
|
|
1131
1131
|
/** @type {const} */
|
|
1132
1132
|
[n]
|
|
1133
1133
|
) : n;
|
|
1134
|
-
}, Eo = Er,
|
|
1134
|
+
}, Eo = Er, be = Ct, Ao = Ie, Po = ce, nt = Eo("%Map%", !0), Oo = be("Map.prototype.get", !0), $o = be("Map.prototype.set", !0), wo = be("Map.prototype.has", !0), Ro = be("Map.prototype.delete", !0), To = be("Map.prototype.size", !0), _t = !!nt && /** @type {Exclude<import('.'), false>} */
|
|
1135
1135
|
function() {
|
|
1136
1136
|
var e, t = {
|
|
1137
1137
|
assert: function(n) {
|
|
@@ -1602,10 +1602,10 @@ function() {
|
|
|
1602
1602
|
a = ue.merge(a, f, t);
|
|
1603
1603
|
}
|
|
1604
1604
|
return t.allowSparse === !0 ? a : ue.compact(a);
|
|
1605
|
-
},
|
|
1605
|
+
}, bi = ci, Si = hi, Ei = Ar, nr = {
|
|
1606
1606
|
formats: Ei,
|
|
1607
|
-
parse:
|
|
1608
|
-
stringify:
|
|
1607
|
+
parse: Si,
|
|
1608
|
+
stringify: bi
|
|
1609
1609
|
};
|
|
1610
1610
|
const Ai = o.object({
|
|
1611
1611
|
entryLabel: o.record(o.array(o.string())),
|
|
@@ -1641,9 +1641,9 @@ const Ai = o.object({
|
|
|
1641
1641
|
}),
|
|
1642
1642
|
o.record(o.unknown())
|
|
1643
1643
|
), Pi = o.object({
|
|
1644
|
-
id: o.union([o.number(), o.string()]),
|
|
1644
|
+
id: o.union([o.number(), o.string()]).optional().nullable(),
|
|
1645
1645
|
name: o.string().optional().nullable(),
|
|
1646
|
-
email: o.string().nullable(),
|
|
1646
|
+
email: o.string().optional().nullable(),
|
|
1647
1647
|
avatar: o.union([
|
|
1648
1648
|
o.object({
|
|
1649
1649
|
url: o.string()
|
|
@@ -1686,7 +1686,7 @@ const Ai = o.object({
|
|
|
1686
1686
|
createdAt: o.string(),
|
|
1687
1687
|
updatedAt: o.string(),
|
|
1688
1688
|
reports: o.array(Oi).nullable().optional(),
|
|
1689
|
-
author: Pi,
|
|
1689
|
+
author: Pi.nullable().optional(),
|
|
1690
1690
|
gotThread: o.boolean().nullable().optional(),
|
|
1691
1691
|
threadFirstItemId: o.number().nullable().optional()
|
|
1692
1692
|
}), Bt = o.object({
|
|
@@ -1768,7 +1768,7 @@ const Ut = dr(), $i = o.object({
|
|
|
1768
1768
|
id: o.number(),
|
|
1769
1769
|
documentId: o.string(),
|
|
1770
1770
|
firstname: o.string(),
|
|
1771
|
-
lastname: o.string(),
|
|
1771
|
+
lastname: o.string().nullable(),
|
|
1772
1772
|
username: o.string().nullable(),
|
|
1773
1773
|
email: o.string(),
|
|
1774
1774
|
isActive: o.boolean(),
|
package/dist/admin/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("../_chunks/index-
|
|
1
|
+
"use strict";const e=require("../_chunks/index-CQcJlyLz.js");require("react");module.exports=e.index;
|
package/dist/admin/index.mjs
CHANGED
|
@@ -97,7 +97,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
97
97
|
locale: null;
|
|
98
98
|
blocked: boolean;
|
|
99
99
|
firstname: string;
|
|
100
|
-
lastname: string;
|
|
100
|
+
lastname: string | null;
|
|
101
101
|
username: string | null;
|
|
102
102
|
isActive: boolean;
|
|
103
103
|
preferedLanguage: string | null;
|
|
@@ -145,9 +145,18 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
145
145
|
isAdminComment: boolean | null;
|
|
146
146
|
removed: boolean | null;
|
|
147
147
|
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
related: string;
|
|
149
|
+
reports?: {
|
|
150
|
+
resolved: boolean;
|
|
151
|
+
id: number;
|
|
152
|
+
createdAt: string;
|
|
153
|
+
updatedAt: string | null;
|
|
154
|
+
content: string;
|
|
155
|
+
reason?: string | null | undefined;
|
|
156
|
+
}[] | null | undefined;
|
|
157
|
+
author?: {
|
|
158
|
+
email?: string | null | undefined;
|
|
159
|
+
id?: string | number | null | undefined;
|
|
151
160
|
name?: string | null | undefined;
|
|
152
161
|
avatar?: string | {
|
|
153
162
|
url: string;
|
|
@@ -159,16 +168,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
159
168
|
} | null;
|
|
160
169
|
};
|
|
161
170
|
} | null | undefined;
|
|
162
|
-
};
|
|
163
|
-
related: string;
|
|
164
|
-
reports?: {
|
|
165
|
-
resolved: boolean;
|
|
166
|
-
id: number;
|
|
167
|
-
createdAt: string;
|
|
168
|
-
updatedAt: string | null;
|
|
169
|
-
content: string;
|
|
170
|
-
reason?: string | null | undefined;
|
|
171
|
-
}[] | null | undefined;
|
|
171
|
+
} | null | undefined;
|
|
172
172
|
gotThread?: boolean | null | undefined;
|
|
173
173
|
threadFirstItemId?: number | null | undefined;
|
|
174
174
|
threadOf?: {
|
|
@@ -183,9 +183,18 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
183
183
|
isAdminComment: boolean | null;
|
|
184
184
|
removed: boolean | null;
|
|
185
185
|
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
186
|
+
related: string;
|
|
187
|
+
reports?: {
|
|
188
|
+
resolved: boolean;
|
|
189
|
+
id: number;
|
|
190
|
+
createdAt: string;
|
|
191
|
+
updatedAt: string | null;
|
|
192
|
+
content: string;
|
|
193
|
+
reason?: string | null | undefined;
|
|
194
|
+
}[] | null | undefined;
|
|
195
|
+
author?: {
|
|
196
|
+
email?: string | null | undefined;
|
|
197
|
+
id?: string | number | null | undefined;
|
|
189
198
|
name?: string | null | undefined;
|
|
190
199
|
avatar?: string | {
|
|
191
200
|
url: string;
|
|
@@ -197,16 +206,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
197
206
|
} | null;
|
|
198
207
|
};
|
|
199
208
|
} | null | undefined;
|
|
200
|
-
};
|
|
201
|
-
related: string;
|
|
202
|
-
reports?: {
|
|
203
|
-
resolved: boolean;
|
|
204
|
-
id: number;
|
|
205
|
-
createdAt: string;
|
|
206
|
-
updatedAt: string | null;
|
|
207
|
-
content: string;
|
|
208
|
-
reason?: string | null | undefined;
|
|
209
|
-
}[] | null | undefined;
|
|
209
|
+
} | null | undefined;
|
|
210
210
|
gotThread?: boolean | null | undefined;
|
|
211
211
|
threadFirstItemId?: number | null | undefined;
|
|
212
212
|
threadOf?: {
|
|
@@ -220,9 +220,19 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
220
220
|
isAdminComment: boolean | null;
|
|
221
221
|
removed: boolean | null;
|
|
222
222
|
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
related: string;
|
|
224
|
+
documentId?: string | undefined;
|
|
225
|
+
reports?: {
|
|
226
|
+
resolved: boolean;
|
|
227
|
+
id: number;
|
|
228
|
+
createdAt: string;
|
|
229
|
+
updatedAt: string | null;
|
|
230
|
+
content: string;
|
|
231
|
+
reason?: string | null | undefined;
|
|
232
|
+
}[] | null | undefined;
|
|
233
|
+
author?: {
|
|
234
|
+
email?: string | null | undefined;
|
|
235
|
+
id?: string | number | null | undefined;
|
|
226
236
|
name?: string | null | undefined;
|
|
227
237
|
avatar?: string | {
|
|
228
238
|
url: string;
|
|
@@ -234,17 +244,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
234
244
|
} | null;
|
|
235
245
|
};
|
|
236
246
|
} | null | undefined;
|
|
237
|
-
};
|
|
238
|
-
related: string;
|
|
239
|
-
documentId?: string | undefined;
|
|
240
|
-
reports?: {
|
|
241
|
-
resolved: boolean;
|
|
242
|
-
id: number;
|
|
243
|
-
createdAt: string;
|
|
244
|
-
updatedAt: string | null;
|
|
245
|
-
content: string;
|
|
246
|
-
reason?: string | null | undefined;
|
|
247
|
-
}[] | null | undefined;
|
|
247
|
+
} | null | undefined;
|
|
248
248
|
gotThread?: boolean | null | undefined;
|
|
249
249
|
threadFirstItemId?: number | null | undefined;
|
|
250
250
|
threadOf?: import("./schemas").Comment | null | undefined;
|
|
@@ -263,9 +263,17 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
263
263
|
isAdminComment: boolean | null;
|
|
264
264
|
removed: boolean | null;
|
|
265
265
|
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
id:
|
|
266
|
+
reports?: {
|
|
267
|
+
resolved: boolean;
|
|
268
|
+
id: number;
|
|
269
|
+
createdAt: string;
|
|
270
|
+
updatedAt: string | null;
|
|
271
|
+
content: string;
|
|
272
|
+
reason?: string | null | undefined;
|
|
273
|
+
}[] | null | undefined;
|
|
274
|
+
author?: {
|
|
275
|
+
email?: string | null | undefined;
|
|
276
|
+
id?: string | number | null | undefined;
|
|
269
277
|
name?: string | null | undefined;
|
|
270
278
|
avatar?: string | {
|
|
271
279
|
url: string;
|
|
@@ -277,15 +285,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
277
285
|
} | null;
|
|
278
286
|
};
|
|
279
287
|
} | null | undefined;
|
|
280
|
-
};
|
|
281
|
-
reports?: {
|
|
282
|
-
resolved: boolean;
|
|
283
|
-
id: number;
|
|
284
|
-
createdAt: string;
|
|
285
|
-
updatedAt: string | null;
|
|
286
|
-
content: string;
|
|
287
|
-
reason?: string | null | undefined;
|
|
288
|
-
}[] | null | undefined;
|
|
288
|
+
} | null | undefined;
|
|
289
289
|
gotThread?: boolean | null | undefined;
|
|
290
290
|
threadFirstItemId?: number | null | undefined;
|
|
291
291
|
}[];
|
|
@@ -335,9 +335,17 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
335
335
|
isAdminComment: boolean | null;
|
|
336
336
|
removed: boolean | null;
|
|
337
337
|
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
id:
|
|
338
|
+
reports?: {
|
|
339
|
+
resolved: boolean;
|
|
340
|
+
id: number;
|
|
341
|
+
createdAt: string;
|
|
342
|
+
updatedAt: string | null;
|
|
343
|
+
content: string;
|
|
344
|
+
reason?: string | null | undefined;
|
|
345
|
+
}[] | null | undefined;
|
|
346
|
+
author?: {
|
|
347
|
+
email?: string | null | undefined;
|
|
348
|
+
id?: string | number | null | undefined;
|
|
341
349
|
name?: string | null | undefined;
|
|
342
350
|
avatar?: string | {
|
|
343
351
|
url: string;
|
|
@@ -349,15 +357,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
349
357
|
} | null;
|
|
350
358
|
};
|
|
351
359
|
} | null | undefined;
|
|
352
|
-
};
|
|
353
|
-
reports?: {
|
|
354
|
-
resolved: boolean;
|
|
355
|
-
id: number;
|
|
356
|
-
createdAt: string;
|
|
357
|
-
updatedAt: string | null;
|
|
358
|
-
content: string;
|
|
359
|
-
reason?: string | null | undefined;
|
|
360
|
-
}[] | null | undefined;
|
|
360
|
+
} | null | undefined;
|
|
361
361
|
gotThread?: boolean | null | undefined;
|
|
362
362
|
threadFirstItemId?: number | null | undefined;
|
|
363
363
|
};
|