strapi-plugin-comments 3.0.3 → 3.0.5
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-BUVqbcoe.js → index-BAXZ3d__.js} +2 -2
- package/dist/_chunks/{index-BMbvyf7_.js → index-BTWJ00Fw.js} +2 -2
- package/dist/_chunks/{index-DkFRVIkq.js → index-CJVLjLWX.js} +103 -119
- package/dist/_chunks/{index-CZsqxJsf.mjs → index-CK1XCSqz.mjs} +2 -2
- package/dist/_chunks/{index-BAKREpmX.mjs → index-DUWJDJLu.mjs} +2 -2
- package/dist/_chunks/{index-D_Yjpru0.js → index-DidQUJKN.js} +5 -5
- package/dist/_chunks/{index-CaFBMp1z.mjs → index-PCqyAKE7.mjs} +8 -3
- package/dist/_chunks/{index-BIcU6CkW.mjs → index-yhf78avJ.mjs} +5 -5
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/api/client.d.ts +5 -5
- package/dist/admin/src/api/schemas.d.ts +63 -63
- package/dist/admin/src/components/UserAvatar/index.d.ts +1 -1
- package/dist/admin/src/hooks/useAPI.d.ts +5 -5
- package/dist/admin/src/hooks/useCommentsAll.d.ts +1 -1
- package/dist/admin/src/hooks/useReports.d.ts +1 -1
- package/dist/server/index.js +60 -20
- package/dist/server/index.mjs +60 -20
- package/dist/server/src/controllers/index.d.ts +526 -1
- package/dist/server/src/index.d.ts +2284 -181
- package/dist/server/src/repositories/comment.repository.d.ts +2 -0
- package/dist/server/src/services/admin/admin.service.d.ts +527 -1
- package/dist/server/src/services/admin/utils.d.ts +9 -1
- package/dist/server/src/services/client.service.d.ts +527 -1
- package/dist/server/src/services/common.service.d.ts +2 -1
- package/dist/server/src/services/index.d.ts +1803 -225
- package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +527 -2
- package/package.json +1 -1
|
@@ -51206,7 +51206,7 @@ const index = {
|
|
|
51206
51206
|
id: `${pluginId}.plugin.name`,
|
|
51207
51207
|
defaultMessage: displayName
|
|
51208
51208
|
},
|
|
51209
|
-
Component: () => Promise.resolve().then(() => require("./index-
|
|
51209
|
+
Component: () => Promise.resolve().then(() => require("./index-DidQUJKN.js")),
|
|
51210
51210
|
permissions: pluginPermissions.access
|
|
51211
51211
|
});
|
|
51212
51212
|
app.createSettingSection(
|
|
@@ -51225,7 +51225,7 @@ const index = {
|
|
|
51225
51225
|
},
|
|
51226
51226
|
id: "comments",
|
|
51227
51227
|
to: `/settings/${pluginId}`,
|
|
51228
|
-
Component: () => Promise.resolve().then(() => require("./index-
|
|
51228
|
+
Component: () => Promise.resolve().then(() => require("./index-BTWJ00Fw.js")),
|
|
51229
51229
|
permissions: pluginPermissions.settings
|
|
51230
51230
|
}
|
|
51231
51231
|
]
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const index$2 = require("./index-
|
|
4
|
+
const index$2 = require("./index-BAXZ3d__.js");
|
|
5
5
|
const admin = require("@strapi/strapi/admin");
|
|
6
6
|
const reactQuery = require("@tanstack/react-query");
|
|
7
|
-
const index$1 = require("./index-
|
|
7
|
+
const index$1 = require("./index-CJVLjLWX.js");
|
|
8
8
|
const React = require("react");
|
|
9
9
|
const styled = require("styled-components");
|
|
10
10
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-BAXZ3d__.js");
|
|
4
4
|
const reactQuery = require("@tanstack/react-query");
|
|
5
5
|
const React = require("react");
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
@@ -3849,10 +3849,10 @@ lodash.exports;
|
|
|
3849
3849
|
return result2;
|
|
3850
3850
|
};
|
|
3851
3851
|
}
|
|
3852
|
-
var
|
|
3852
|
+
var bind3 = baseRest(function(func, thisArg, partials) {
|
|
3853
3853
|
var bitmask = WRAP_BIND_FLAG;
|
|
3854
3854
|
if (partials.length) {
|
|
3855
|
-
var holders = replaceHolders(partials, getHolder(
|
|
3855
|
+
var holders = replaceHolders(partials, getHolder(bind3));
|
|
3856
3856
|
bitmask |= WRAP_PARTIAL_FLAG;
|
|
3857
3857
|
}
|
|
3858
3858
|
return createWrap(func, bitmask, thisArg, partials, holders);
|
|
@@ -4859,7 +4859,7 @@ lodash.exports;
|
|
|
4859
4859
|
var bindAll = flatRest(function(object, methodNames) {
|
|
4860
4860
|
arrayEach(methodNames, function(key) {
|
|
4861
4861
|
key = toKey(key);
|
|
4862
|
-
baseAssignValue(object, key,
|
|
4862
|
+
baseAssignValue(object, key, bind3(object[key], object));
|
|
4863
4863
|
});
|
|
4864
4864
|
return object;
|
|
4865
4865
|
});
|
|
@@ -5056,7 +5056,7 @@ lodash.exports;
|
|
|
5056
5056
|
lodash2.assignWith = assignWith;
|
|
5057
5057
|
lodash2.at = at;
|
|
5058
5058
|
lodash2.before = before;
|
|
5059
|
-
lodash2.bind =
|
|
5059
|
+
lodash2.bind = bind3;
|
|
5060
5060
|
lodash2.bindAll = bindAll;
|
|
5061
5061
|
lodash2.bindKey = bindKey;
|
|
5062
5062
|
lodash2.castArray = castArray;
|
|
@@ -5773,7 +5773,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
5773
5773
|
var ys = arrObjKeys(obj, inspect2);
|
|
5774
5774
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
5775
5775
|
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
5776
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
5776
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
|
|
5777
5777
|
var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
5778
5778
|
var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
|
|
5779
5779
|
if (ys.length === 0) {
|
|
@@ -5795,25 +5795,25 @@ function quote(s) {
|
|
|
5795
5795
|
return $replace$1.call(String(s), /"/g, """);
|
|
5796
5796
|
}
|
|
5797
5797
|
function isArray$3(obj) {
|
|
5798
|
-
return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
5798
|
+
return toStr$1(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
5799
5799
|
}
|
|
5800
5800
|
function isDate(obj) {
|
|
5801
|
-
return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
5801
|
+
return toStr$1(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
5802
5802
|
}
|
|
5803
5803
|
function isRegExp$1(obj) {
|
|
5804
|
-
return toStr(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
5804
|
+
return toStr$1(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
5805
5805
|
}
|
|
5806
5806
|
function isError(obj) {
|
|
5807
|
-
return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
5807
|
+
return toStr$1(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
5808
5808
|
}
|
|
5809
5809
|
function isString(obj) {
|
|
5810
|
-
return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
5810
|
+
return toStr$1(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
5811
5811
|
}
|
|
5812
5812
|
function isNumber(obj) {
|
|
5813
|
-
return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
5813
|
+
return toStr$1(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
5814
5814
|
}
|
|
5815
5815
|
function isBoolean(obj) {
|
|
5816
|
-
return toStr(obj) === "[object Boolean]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
5816
|
+
return toStr$1(obj) === "[object Boolean]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
5817
5817
|
}
|
|
5818
5818
|
function isSymbol(obj) {
|
|
5819
5819
|
if (hasShammedSymbols) {
|
|
@@ -5849,7 +5849,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
|
|
|
5849
5849
|
function has$3(obj, key) {
|
|
5850
5850
|
return hasOwn$1.call(obj, key);
|
|
5851
5851
|
}
|
|
5852
|
-
function toStr(obj) {
|
|
5852
|
+
function toStr$1(obj) {
|
|
5853
5853
|
return objectToString.call(obj);
|
|
5854
5854
|
}
|
|
5855
5855
|
function nameOf(f) {
|
|
@@ -6158,7 +6158,7 @@ var syntax = SyntaxError;
|
|
|
6158
6158
|
var uri = URIError;
|
|
6159
6159
|
var abs$1 = Math.abs;
|
|
6160
6160
|
var floor$1 = Math.floor;
|
|
6161
|
-
var max$
|
|
6161
|
+
var max$2 = Math.max;
|
|
6162
6162
|
var min$1 = Math.min;
|
|
6163
6163
|
var pow$1 = Math.pow;
|
|
6164
6164
|
var round$1 = Math.round;
|
|
@@ -6287,99 +6287,78 @@ function requireObject_getPrototypeOf() {
|
|
|
6287
6287
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
6288
6288
|
return Object_getPrototypeOf;
|
|
6289
6289
|
}
|
|
6290
|
-
var
|
|
6291
|
-
var
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
var
|
|
6296
|
-
var
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
var
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
}
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
var str = "";
|
|
6318
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
6319
|
-
str += arr[i];
|
|
6320
|
-
if (i + 1 < arr.length) {
|
|
6321
|
-
str += joiner;
|
|
6322
|
-
}
|
|
6290
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
6291
|
+
var toStr = Object.prototype.toString;
|
|
6292
|
+
var max$1 = Math.max;
|
|
6293
|
+
var funcType = "[object Function]";
|
|
6294
|
+
var concatty = function concatty2(a, b) {
|
|
6295
|
+
var arr = [];
|
|
6296
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
6297
|
+
arr[i] = a[i];
|
|
6298
|
+
}
|
|
6299
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
6300
|
+
arr[j + a.length] = b[j];
|
|
6301
|
+
}
|
|
6302
|
+
return arr;
|
|
6303
|
+
};
|
|
6304
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
6305
|
+
var arr = [];
|
|
6306
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
6307
|
+
arr[j] = arrLike[i];
|
|
6308
|
+
}
|
|
6309
|
+
return arr;
|
|
6310
|
+
};
|
|
6311
|
+
var joiny = function(arr, joiner) {
|
|
6312
|
+
var str = "";
|
|
6313
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
6314
|
+
str += arr[i];
|
|
6315
|
+
if (i + 1 < arr.length) {
|
|
6316
|
+
str += joiner;
|
|
6323
6317
|
}
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
);
|
|
6339
|
-
if (Object(result) === result) {
|
|
6340
|
-
return result;
|
|
6341
|
-
}
|
|
6342
|
-
return this;
|
|
6343
|
-
}
|
|
6344
|
-
return target.apply(
|
|
6345
|
-
that,
|
|
6318
|
+
}
|
|
6319
|
+
return str;
|
|
6320
|
+
};
|
|
6321
|
+
var implementation$1 = function bind(that) {
|
|
6322
|
+
var target = this;
|
|
6323
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
6324
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
6325
|
+
}
|
|
6326
|
+
var args = slicy(arguments, 1);
|
|
6327
|
+
var bound;
|
|
6328
|
+
var binder = function() {
|
|
6329
|
+
if (this instanceof bound) {
|
|
6330
|
+
var result = target.apply(
|
|
6331
|
+
this,
|
|
6346
6332
|
concatty(args, arguments)
|
|
6347
6333
|
);
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
boundArgs[i] = "$" + i;
|
|
6353
|
-
}
|
|
6354
|
-
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
6355
|
-
if (target.prototype) {
|
|
6356
|
-
var Empty = function Empty2() {
|
|
6357
|
-
};
|
|
6358
|
-
Empty.prototype = target.prototype;
|
|
6359
|
-
bound.prototype = new Empty();
|
|
6360
|
-
Empty.prototype = null;
|
|
6334
|
+
if (Object(result) === result) {
|
|
6335
|
+
return result;
|
|
6336
|
+
}
|
|
6337
|
+
return this;
|
|
6361
6338
|
}
|
|
6362
|
-
return
|
|
6339
|
+
return target.apply(
|
|
6340
|
+
that,
|
|
6341
|
+
concatty(args, arguments)
|
|
6342
|
+
);
|
|
6363
6343
|
};
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
var
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
}
|
|
6344
|
+
var boundLength = max$1(0, target.length - args.length);
|
|
6345
|
+
var boundArgs = [];
|
|
6346
|
+
for (var i = 0; i < boundLength; i++) {
|
|
6347
|
+
boundArgs[i] = "$" + i;
|
|
6348
|
+
}
|
|
6349
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
6350
|
+
if (target.prototype) {
|
|
6351
|
+
var Empty = function Empty2() {
|
|
6352
|
+
};
|
|
6353
|
+
Empty.prototype = target.prototype;
|
|
6354
|
+
bound.prototype = new Empty();
|
|
6355
|
+
Empty.prototype = null;
|
|
6356
|
+
}
|
|
6357
|
+
return bound;
|
|
6358
|
+
};
|
|
6359
|
+
var implementation = implementation$1;
|
|
6360
|
+
var functionBind = Function.prototype.bind || implementation;
|
|
6361
|
+
var functionCall = Function.prototype.call;
|
|
6383
6362
|
var functionApply;
|
|
6384
6363
|
var hasRequiredFunctionApply;
|
|
6385
6364
|
function requireFunctionApply() {
|
|
@@ -6389,14 +6368,14 @@ function requireFunctionApply() {
|
|
|
6389
6368
|
return functionApply;
|
|
6390
6369
|
}
|
|
6391
6370
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
6392
|
-
var bind$2 =
|
|
6371
|
+
var bind$2 = functionBind;
|
|
6393
6372
|
var $apply$1 = requireFunctionApply();
|
|
6394
|
-
var $call$2 =
|
|
6373
|
+
var $call$2 = functionCall;
|
|
6395
6374
|
var $reflectApply = reflectApply;
|
|
6396
6375
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
6397
|
-
var bind$1 =
|
|
6376
|
+
var bind$1 = functionBind;
|
|
6398
6377
|
var $TypeError$4 = type;
|
|
6399
|
-
var $call$1 =
|
|
6378
|
+
var $call$1 = functionCall;
|
|
6400
6379
|
var $actualApply = actualApply;
|
|
6401
6380
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
6402
6381
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -6462,8 +6441,8 @@ function requireHasown() {
|
|
|
6462
6441
|
hasRequiredHasown = 1;
|
|
6463
6442
|
var call = Function.prototype.call;
|
|
6464
6443
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
6465
|
-
var
|
|
6466
|
-
hasown =
|
|
6444
|
+
var bind3 = functionBind;
|
|
6445
|
+
hasown = bind3.call(call, $hasOwn);
|
|
6467
6446
|
return hasown;
|
|
6468
6447
|
}
|
|
6469
6448
|
var undefined$1;
|
|
@@ -6477,7 +6456,7 @@ var $TypeError$3 = type;
|
|
|
6477
6456
|
var $URIError = uri;
|
|
6478
6457
|
var abs = abs$1;
|
|
6479
6458
|
var floor = floor$1;
|
|
6480
|
-
var max = max$
|
|
6459
|
+
var max = max$2;
|
|
6481
6460
|
var min = min$1;
|
|
6482
6461
|
var pow = pow$1;
|
|
6483
6462
|
var round = round$1;
|
|
@@ -6511,7 +6490,7 @@ var getProto = requireGetProto();
|
|
|
6511
6490
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
6512
6491
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
6513
6492
|
var $apply = requireFunctionApply();
|
|
6514
|
-
var $call =
|
|
6493
|
+
var $call = functionCall;
|
|
6515
6494
|
var needsEval = {};
|
|
6516
6495
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
6517
6496
|
var INTRINSICS = {
|
|
@@ -6681,13 +6660,13 @@ var LEGACY_ALIASES = {
|
|
|
6681
6660
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
6682
6661
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
6683
6662
|
};
|
|
6684
|
-
var
|
|
6663
|
+
var bind2 = functionBind;
|
|
6685
6664
|
var hasOwn = requireHasown();
|
|
6686
|
-
var $concat =
|
|
6687
|
-
var $spliceApply =
|
|
6688
|
-
var $replace =
|
|
6689
|
-
var $strSlice =
|
|
6690
|
-
var $exec =
|
|
6665
|
+
var $concat = bind2.call($call, Array.prototype.concat);
|
|
6666
|
+
var $spliceApply = bind2.call($apply, Array.prototype.splice);
|
|
6667
|
+
var $replace = bind2.call($call, String.prototype.replace);
|
|
6668
|
+
var $strSlice = bind2.call($call, String.prototype.slice);
|
|
6669
|
+
var $exec = bind2.call($call, RegExp.prototype.exec);
|
|
6691
6670
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
6692
6671
|
var reEscapeChar = /\\(\\)?/g;
|
|
6693
6672
|
var stringToPath = function stringToPath2(string) {
|
|
@@ -7678,7 +7657,7 @@ const relatedSchema = zod.z.intersection(
|
|
|
7678
7657
|
);
|
|
7679
7658
|
const authorSchema = zod.z.object({
|
|
7680
7659
|
id: zod.z.union([zod.z.number(), zod.z.string()]),
|
|
7681
|
-
name: zod.z.string().optional(),
|
|
7660
|
+
name: zod.z.string().optional().nullable(),
|
|
7682
7661
|
email: zod.z.string(),
|
|
7683
7662
|
avatar: zod.z.union([
|
|
7684
7663
|
zod.z.object({
|
|
@@ -7756,7 +7735,12 @@ const commentsSchema = zod.z.object({
|
|
|
7756
7735
|
});
|
|
7757
7736
|
const commentDetailsSchema = zod.z.object({
|
|
7758
7737
|
entity: relatedSchema,
|
|
7759
|
-
selected: baseCommentSchema.merge(
|
|
7738
|
+
selected: baseCommentSchema.merge(
|
|
7739
|
+
zod.z.object({
|
|
7740
|
+
related: zod.z.string(),
|
|
7741
|
+
threadOf: getCommentSchema().omit({ related: true }).merge(zod.z.object({ related: zod.z.string() })).nullable().optional()
|
|
7742
|
+
})
|
|
7743
|
+
).nullable(),
|
|
7760
7744
|
level: zod.z.array(getCommentSchema().omit({ threadOf: true, related: true }))
|
|
7761
7745
|
});
|
|
7762
7746
|
const singleContentTypeSchema = zod.z.object({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { a1 as Alert, e as Button, f as ForwardRef$4x, B as Box, a2 as ForwardRef$1f, F as Flex, T as Typography, Z as Grid, m as Field, a3 as MultiSelect, a4 as MultiSelectOption, a5 as Accordion, a6 as SwitchImpl, a7 as Toggle, a8 as ForwardRef$59 } from "./index-
|
|
2
|
+
import { a1 as Alert, e as Button, f as ForwardRef$4x, B as Box, a2 as ForwardRef$1f, F as Flex, T as Typography, Z as Grid, m as Field, a3 as MultiSelect, a4 as MultiSelectOption, a5 as Accordion, a6 as SwitchImpl, a7 as Toggle, a8 as ForwardRef$59 } from "./index-DUWJDJLu.mjs";
|
|
3
3
|
import { useTracking, useNotification, Page, Layouts, Form } from "@strapi/strapi/admin";
|
|
4
4
|
import { useMutation, useQuery, useQueryClient, QueryClient } from "@tanstack/react-query";
|
|
5
|
-
import { u as useAPI, f as CommonProviders, a as usePermissions, g as getMessage, l as lodashExports, e as ConfirmationDialog } from "./index-
|
|
5
|
+
import { u as useAPI, f as CommonProviders, a as usePermissions, g as getMessage, l as lodashExports, e as ConfirmationDialog } from "./index-PCqyAKE7.mjs";
|
|
6
6
|
import { useMemo, useRef, useState, useCallback } from "react";
|
|
7
7
|
import styled from "styled-components";
|
|
8
8
|
const RenderIf = ({
|
|
@@ -51188,7 +51188,7 @@ const index = {
|
|
|
51188
51188
|
id: `${pluginId}.plugin.name`,
|
|
51189
51189
|
defaultMessage: displayName
|
|
51190
51190
|
},
|
|
51191
|
-
Component: () => import("./index-
|
|
51191
|
+
Component: () => import("./index-yhf78avJ.mjs"),
|
|
51192
51192
|
permissions: pluginPermissions.access
|
|
51193
51193
|
});
|
|
51194
51194
|
app.createSettingSection(
|
|
@@ -51207,7 +51207,7 @@ const index = {
|
|
|
51207
51207
|
},
|
|
51208
51208
|
id: "comments",
|
|
51209
51209
|
to: `/settings/${pluginId}`,
|
|
51210
|
-
Component: () => import("./index-
|
|
51210
|
+
Component: () => import("./index-CK1XCSqz.mjs"),
|
|
51211
51211
|
permissions: pluginPermissions.settings
|
|
51212
51212
|
}
|
|
51213
51213
|
]
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const admin = require("@strapi/strapi/admin");
|
|
5
5
|
const reactRouterDom = require("react-router-dom");
|
|
6
|
-
const index = require("./index-
|
|
6
|
+
const index = require("./index-BAXZ3d__.js");
|
|
7
7
|
const reactQuery = require("@tanstack/react-query");
|
|
8
|
-
const index$1 = require("./index-
|
|
8
|
+
const index$1 = require("./index-CJVLjLWX.js");
|
|
9
9
|
const react = require("zustand/react");
|
|
10
10
|
const React = require("react");
|
|
11
11
|
const styled = require("styled-components");
|
|
@@ -51274,7 +51274,7 @@ const CommentRow = ({ item }) => {
|
|
|
51274
51274
|
item.author && /* @__PURE__ */ jsxRuntime.jsx(
|
|
51275
51275
|
UserAvatar,
|
|
51276
51276
|
{
|
|
51277
|
-
name,
|
|
51277
|
+
name: name || "",
|
|
51278
51278
|
avatar,
|
|
51279
51279
|
isAdminComment: item.isAdminComment
|
|
51280
51280
|
}
|
|
@@ -51283,7 +51283,7 @@ const CommentRow = ({ item }) => {
|
|
|
51283
51283
|
] })
|
|
51284
51284
|
}
|
|
51285
51285
|
) }),
|
|
51286
|
-
/* @__PURE__ */ jsxRuntime.jsx(index.Td, { children: /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { ellipsis: true, children: item.content }) }),
|
|
51286
|
+
/* @__PURE__ */ jsxRuntime.jsx(index.Td, { maxWidth: "200px", children: /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { ellipsis: true, children: item.content }) }),
|
|
51287
51287
|
/* @__PURE__ */ jsxRuntime.jsx(index.Td, { children: item.threadOf ? /* @__PURE__ */ jsxRuntime.jsx(index.Link, { href: `discover/${item.threadOf.id}`, onClick: onClickDetails(item.threadOf.id), children: index$1.getMessage(
|
|
51288
51288
|
{
|
|
51289
51289
|
id: "page.discover.table.cell.thread",
|
|
@@ -51291,7 +51291,7 @@ const CommentRow = ({ item }) => {
|
|
|
51291
51291
|
},
|
|
51292
51292
|
"#" + item.threadOf.id
|
|
51293
51293
|
) }) : "-" }),
|
|
51294
|
-
/* @__PURE__ */ jsxRuntime.jsx(index.Td, { children: contentTypeLink }),
|
|
51294
|
+
/* @__PURE__ */ jsxRuntime.jsx(index.Td, { maxWidth: "200px", children: contentTypeLink }),
|
|
51295
51295
|
/* @__PURE__ */ jsxRuntime.jsx(index.Td, { children: /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { children: formatDate(item.updatedAt || item.createdAt, {
|
|
51296
51296
|
dateStyle: "long",
|
|
51297
51297
|
timeStyle: "short"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { a9 as darkTheme, aa as lightTheme, ab as DesignSystemProvider, ac as pluginPermissions, ad as __assign, ae as __rest, p as pluginId, af as Dialog, F as Flex, ag as ForwardRef$3, T as Typography, e as Button } from "./index-
|
|
2
|
+
import { a9 as darkTheme, aa as lightTheme, ab as DesignSystemProvider, ac as pluginPermissions, ad as __assign, ae as __rest, p as pluginId, af as Dialog, F as Flex, ag as ForwardRef$3, T as Typography, e as Button } from "./index-DUWJDJLu.mjs";
|
|
3
3
|
import { useQuery, QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { useMemo, createContext, useState } from "react";
|
|
@@ -7660,7 +7660,7 @@ const relatedSchema = z.intersection(
|
|
|
7660
7660
|
);
|
|
7661
7661
|
const authorSchema = z.object({
|
|
7662
7662
|
id: z.union([z.number(), z.string()]),
|
|
7663
|
-
name: z.string().optional(),
|
|
7663
|
+
name: z.string().optional().nullable(),
|
|
7664
7664
|
email: z.string(),
|
|
7665
7665
|
avatar: z.union([
|
|
7666
7666
|
z.object({
|
|
@@ -7738,7 +7738,12 @@ const commentsSchema = z.object({
|
|
|
7738
7738
|
});
|
|
7739
7739
|
const commentDetailsSchema = z.object({
|
|
7740
7740
|
entity: relatedSchema,
|
|
7741
|
-
selected: baseCommentSchema.merge(
|
|
7741
|
+
selected: baseCommentSchema.merge(
|
|
7742
|
+
z.object({
|
|
7743
|
+
related: z.string(),
|
|
7744
|
+
threadOf: getCommentSchema().omit({ related: true }).merge(z.object({ related: z.string() })).nullable().optional()
|
|
7745
|
+
})
|
|
7746
|
+
).nullable(),
|
|
7742
7747
|
level: z.array(getCommentSchema().omit({ threadOf: true, related: true }))
|
|
7743
7748
|
});
|
|
7744
7749
|
const singleContentTypeSchema = z.object({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useNotification, Form, Page, Layouts, useTracking, useQueryParams, SearchInput, Pagination } from "@strapi/strapi/admin";
|
|
3
3
|
import { useNavigate, useParams, Routes, Route, Navigate } from "react-router-dom";
|
|
4
|
-
import { S as SubNav, a as SubNavHeader, b as SubNavSections, c as SubNavSection, d as SubNavLink, p as pluginId, B as Box, T as Typography, D as Divider, F as Flex, C as CheckboxImpl, e as Button, I as IconButton, f as ForwardRef$4x, g as ForwardRef$3$, h as Badge, i as IconButtonGroup$1, P as Portal$1, j as FocusTrap, k as ForwardRef$45, l as ForwardRef$3B, m as Field, n as SingleSelect, o as SingleSelectOption, q as ForwardRef$4X, r as ForwardRef$2v, s as ForwardRef$f, t as ForwardRef$1R, u as Popover, v as ForwardRef$v, w as ForwardRef$4R, x as ForwardRef$1L, y as ForwardRef$4d, z as ForwardRef$2l, A as ForwardRef$11, M as Modal, E as Table, G as Thead, H as Tr, J as Th, K as Tbody, L as ForwardRef$1r, N as ForwardRef$j, O as ForwardRef$3x, Q as ForwardRef$1d, R as ForwardRef$R, U as Avatar, V as TooltipImpl, W as Loader, X as Link, Y as ForwardRef$51, Z as Grid, _ as Td, $ as SimpleMenu, a0 as MenuItem } from "./index-
|
|
4
|
+
import { S as SubNav, a as SubNavHeader, b as SubNavSections, c as SubNavSection, d as SubNavLink, p as pluginId, B as Box, T as Typography, D as Divider, F as Flex, C as CheckboxImpl, e as Button, I as IconButton, f as ForwardRef$4x, g as ForwardRef$3$, h as Badge, i as IconButtonGroup$1, P as Portal$1, j as FocusTrap, k as ForwardRef$45, l as ForwardRef$3B, m as Field, n as SingleSelect, o as SingleSelectOption, q as ForwardRef$4X, r as ForwardRef$2v, s as ForwardRef$f, t as ForwardRef$1R, u as Popover, v as ForwardRef$v, w as ForwardRef$4R, x as ForwardRef$1L, y as ForwardRef$4d, z as ForwardRef$2l, A as ForwardRef$11, M as Modal, E as Table, G as Thead, H as Tr, J as Th, K as Tbody, L as ForwardRef$1r, N as ForwardRef$j, O as ForwardRef$3x, Q as ForwardRef$1d, R as ForwardRef$R, U as Avatar, V as TooltipImpl, W as Loader, X as Link, Y as ForwardRef$51, Z as Grid, _ as Td, $ as SimpleMenu, a0 as MenuItem } from "./index-DUWJDJLu.mjs";
|
|
5
5
|
import { useQuery, useQueryClient, useMutation } from "@tanstack/react-query";
|
|
6
|
-
import { u as useAPI, l as lodashExports, C as COMMENT_STATUS, R as REPORT_STATUS, g as getMessage, a as usePermissions, U as UserContext, b as getDefaultExportFromCjs, c as useIntl, d as REPORT_REASON, e as ConfirmationDialog, f as CommonProviders } from "./index-
|
|
6
|
+
import { u as useAPI, l as lodashExports, C as COMMENT_STATUS, R as REPORT_STATUS, g as getMessage, a as usePermissions, U as UserContext, b as getDefaultExportFromCjs, c as useIntl, d as REPORT_REASON, e as ConfirmationDialog, f as CommonProviders } from "./index-PCqyAKE7.mjs";
|
|
7
7
|
import { create } from "zustand/react";
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
import { useCallback, useMemo, useContext, useState, useRef, Fragment as Fragment$1 } from "react";
|
|
@@ -51250,7 +51250,7 @@ const CommentRow = ({ item }) => {
|
|
|
51250
51250
|
item.author && /* @__PURE__ */ jsx(
|
|
51251
51251
|
UserAvatar,
|
|
51252
51252
|
{
|
|
51253
|
-
name,
|
|
51253
|
+
name: name || "",
|
|
51254
51254
|
avatar,
|
|
51255
51255
|
isAdminComment: item.isAdminComment
|
|
51256
51256
|
}
|
|
@@ -51259,7 +51259,7 @@ const CommentRow = ({ item }) => {
|
|
|
51259
51259
|
] })
|
|
51260
51260
|
}
|
|
51261
51261
|
) }),
|
|
51262
|
-
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { ellipsis: true, children: item.content }) }),
|
|
51262
|
+
/* @__PURE__ */ jsx(Td, { maxWidth: "200px", children: /* @__PURE__ */ jsx(Typography, { ellipsis: true, children: item.content }) }),
|
|
51263
51263
|
/* @__PURE__ */ jsx(Td, { children: item.threadOf ? /* @__PURE__ */ jsx(Link, { href: `discover/${item.threadOf.id}`, onClick: onClickDetails(item.threadOf.id), children: getMessage(
|
|
51264
51264
|
{
|
|
51265
51265
|
id: "page.discover.table.cell.thread",
|
|
@@ -51267,7 +51267,7 @@ const CommentRow = ({ item }) => {
|
|
|
51267
51267
|
},
|
|
51268
51268
|
"#" + item.threadOf.id
|
|
51269
51269
|
) }) : "-" }),
|
|
51270
|
-
/* @__PURE__ */ jsx(Td, { children: contentTypeLink }),
|
|
51270
|
+
/* @__PURE__ */ jsx(Td, { maxWidth: "200px", children: contentTypeLink }),
|
|
51271
51271
|
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { children: formatDate(item.updatedAt || item.createdAt, {
|
|
51272
51272
|
dateStyle: "long",
|
|
51273
51273
|
timeStyle: "short"
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
|
@@ -152,7 +152,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
152
152
|
author: {
|
|
153
153
|
email: string;
|
|
154
154
|
id: string | number;
|
|
155
|
-
name?: string | undefined;
|
|
155
|
+
name?: string | null | undefined;
|
|
156
156
|
avatar?: string | {
|
|
157
157
|
url: string;
|
|
158
158
|
} | {
|
|
@@ -190,7 +190,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
190
190
|
author: {
|
|
191
191
|
email: string;
|
|
192
192
|
id: string | number;
|
|
193
|
-
name?: string | undefined;
|
|
193
|
+
name?: string | null | undefined;
|
|
194
194
|
avatar?: string | {
|
|
195
195
|
url: string;
|
|
196
196
|
} | {
|
|
@@ -227,7 +227,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
227
227
|
author: {
|
|
228
228
|
email: string;
|
|
229
229
|
id: string | number;
|
|
230
|
-
name?: string | undefined;
|
|
230
|
+
name?: string | null | undefined;
|
|
231
231
|
avatar?: string | {
|
|
232
232
|
url: string;
|
|
233
233
|
} | {
|
|
@@ -270,7 +270,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
270
270
|
author: {
|
|
271
271
|
email: string;
|
|
272
272
|
id: string | number;
|
|
273
|
-
name?: string | undefined;
|
|
273
|
+
name?: string | null | undefined;
|
|
274
274
|
avatar?: string | {
|
|
275
275
|
url: string;
|
|
276
276
|
} | {
|
|
@@ -343,7 +343,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
343
343
|
author: {
|
|
344
344
|
email: string;
|
|
345
345
|
id: string | number;
|
|
346
|
-
name?: string | undefined;
|
|
346
|
+
name?: string | null | undefined;
|
|
347
347
|
avatar?: string | {
|
|
348
348
|
url: string;
|
|
349
349
|
} | {
|