strapi-plugin-comments 3.0.5 → 3.0.6

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/README.md CHANGED
@@ -104,7 +104,7 @@ In our minimum support we're following [official Node.js releases timelines](htt
104
104
 
105
105
  **Supported Strapi versions**:
106
106
 
107
- - Strapi v5.7.0 (recently tested)
107
+ - Strapi v5.8.1 (recently tested)
108
108
  - Strapi v5.x
109
109
 
110
110
  > This plugin is designed for **Strapi v5**. To get support for other Strapi versions, please follow the [versions](#-versions) section.
@@ -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-BAXZ3d__.js");
4
+ const index$2 = require("./index-DHhRVslt.js");
5
5
  const admin = require("@strapi/strapi/admin");
6
6
  const reactQuery = require("@tanstack/react-query");
7
- const index$1 = require("./index-CJVLjLWX.js");
7
+ const index$1 = require("./index-_4jTpBrc.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 };
@@ -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-BAXZ3d__.js");
6
+ const index = require("./index-DHhRVslt.js");
7
7
  const reactQuery = require("@tanstack/react-query");
8
- const index$1 = require("./index-CJVLjLWX.js");
8
+ const index$1 = require("./index-_4jTpBrc.js");
9
9
  const react = require("zustand/react");
10
10
  const React = require("react");
11
11
  const styled = require("styled-components");
@@ -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-DidQUJKN.js")),
51209
+ Component: () => Promise.resolve().then(() => require("./index-DCKroyap.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-BTWJ00Fw.js")),
51228
+ Component: () => Promise.resolve().then(() => require("./index-BMAhFLKR.js")),
51229
51229
  permissions: pluginPermissions.settings
51230
51230
  }
51231
51231
  ]
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
- const index = require("./index-BAXZ3d__.js");
3
+ const index = require("./index-DHhRVslt.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 bind3 = baseRest(function(func, thisArg, partials) {
3852
+ var bind2 = baseRest(function(func, thisArg, partials) {
3853
3853
  var bitmask = WRAP_BIND_FLAG;
3854
3854
  if (partials.length) {
3855
- var holders = replaceHolders(partials, getHolder(bind3));
3855
+ var holders = replaceHolders(partials, getHolder(bind2));
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, bind3(object[key], object));
4862
+ baseAssignValue(object, key, bind2(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 = bind3;
5059
+ lodash2.bind = bind2;
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$1(obj), 8, -1) : protoTag ? "Object" : "";
5776
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(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$1(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5798
+ return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5799
5799
  }
5800
5800
  function isDate(obj) {
5801
- return toStr$1(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5801
+ return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5802
5802
  }
5803
5803
  function isRegExp$1(obj) {
5804
- return toStr$1(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5804
+ return toStr(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5805
5805
  }
5806
5806
  function isError(obj) {
5807
- return toStr$1(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5807
+ return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5808
5808
  }
5809
5809
  function isString(obj) {
5810
- return toStr$1(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5810
+ return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5811
5811
  }
5812
5812
  function isNumber(obj) {
5813
- return toStr$1(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5813
+ return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5814
5814
  }
5815
5815
  function isBoolean(obj) {
5816
- return toStr$1(obj) === "[object Boolean]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5816
+ return toStr(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$1(obj) {
5852
+ function toStr(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$2 = Math.max;
6161
+ var max$1 = Math.max;
6162
6162
  var min$1 = Math.min;
6163
6163
  var pow$1 = Math.pow;
6164
6164
  var round$1 = Math.round;
@@ -6287,78 +6287,99 @@ function requireObject_getPrototypeOf() {
6287
6287
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
6288
6288
  return Object_getPrototypeOf;
6289
6289
  }
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;
6290
+ var implementation;
6291
+ var hasRequiredImplementation;
6292
+ function requireImplementation() {
6293
+ if (hasRequiredImplementation) return implementation;
6294
+ hasRequiredImplementation = 1;
6295
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
6296
+ var toStr2 = Object.prototype.toString;
6297
+ var max2 = Math.max;
6298
+ var funcType = "[object Function]";
6299
+ var concatty = function concatty2(a, b) {
6300
+ var arr = [];
6301
+ for (var i = 0; i < a.length; i += 1) {
6302
+ arr[i] = a[i];
6303
+ }
6304
+ for (var j = 0; j < b.length; j += 1) {
6305
+ arr[j + a.length] = b[j];
6306
+ }
6307
+ return arr;
6308
+ };
6309
+ var slicy = function slicy2(arrLike, offset) {
6310
+ var arr = [];
6311
+ for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
6312
+ arr[j] = arrLike[i];
6317
6313
  }
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,
6332
- concatty(args, arguments)
6333
- );
6334
- if (Object(result) === result) {
6335
- return result;
6314
+ return arr;
6315
+ };
6316
+ var joiny = function(arr, joiner) {
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;
6336
6322
  }
6337
- return this;
6338
6323
  }
6339
- return target.apply(
6340
- that,
6341
- concatty(args, arguments)
6342
- );
6324
+ return str;
6343
6325
  };
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() {
6326
+ implementation = function bind2(that) {
6327
+ var target = this;
6328
+ if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
6329
+ throw new TypeError(ERROR_MESSAGE + target);
6330
+ }
6331
+ var args = slicy(arguments, 1);
6332
+ var bound;
6333
+ var binder = function() {
6334
+ if (this instanceof bound) {
6335
+ var result = target.apply(
6336
+ this,
6337
+ concatty(args, arguments)
6338
+ );
6339
+ if (Object(result) === result) {
6340
+ return result;
6341
+ }
6342
+ return this;
6343
+ }
6344
+ return target.apply(
6345
+ that,
6346
+ concatty(args, arguments)
6347
+ );
6352
6348
  };
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;
6349
+ var boundLength = max2(0, target.length - args.length);
6350
+ var boundArgs = [];
6351
+ for (var i = 0; i < boundLength; i++) {
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;
6361
+ }
6362
+ return bound;
6363
+ };
6364
+ return implementation;
6365
+ }
6366
+ var functionBind;
6367
+ var hasRequiredFunctionBind;
6368
+ function requireFunctionBind() {
6369
+ if (hasRequiredFunctionBind) return functionBind;
6370
+ hasRequiredFunctionBind = 1;
6371
+ var implementation2 = requireImplementation();
6372
+ functionBind = Function.prototype.bind || implementation2;
6373
+ return functionBind;
6374
+ }
6375
+ var functionCall;
6376
+ var hasRequiredFunctionCall;
6377
+ function requireFunctionCall() {
6378
+ if (hasRequiredFunctionCall) return functionCall;
6379
+ hasRequiredFunctionCall = 1;
6380
+ functionCall = Function.prototype.call;
6381
+ return functionCall;
6382
+ }
6362
6383
  var functionApply;
6363
6384
  var hasRequiredFunctionApply;
6364
6385
  function requireFunctionApply() {
@@ -6368,14 +6389,14 @@ function requireFunctionApply() {
6368
6389
  return functionApply;
6369
6390
  }
6370
6391
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
6371
- var bind$2 = functionBind;
6392
+ var bind$2 = requireFunctionBind();
6372
6393
  var $apply$1 = requireFunctionApply();
6373
- var $call$2 = functionCall;
6394
+ var $call$2 = requireFunctionCall();
6374
6395
  var $reflectApply = reflectApply;
6375
6396
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
6376
- var bind$1 = functionBind;
6397
+ var bind$1 = requireFunctionBind();
6377
6398
  var $TypeError$4 = type;
6378
- var $call$1 = functionCall;
6399
+ var $call$1 = requireFunctionCall();
6379
6400
  var $actualApply = actualApply;
6380
6401
  var callBindApplyHelpers = function callBindBasic(args) {
6381
6402
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -6441,8 +6462,8 @@ function requireHasown() {
6441
6462
  hasRequiredHasown = 1;
6442
6463
  var call = Function.prototype.call;
6443
6464
  var $hasOwn = Object.prototype.hasOwnProperty;
6444
- var bind3 = functionBind;
6445
- hasown = bind3.call(call, $hasOwn);
6465
+ var bind2 = requireFunctionBind();
6466
+ hasown = bind2.call(call, $hasOwn);
6446
6467
  return hasown;
6447
6468
  }
6448
6469
  var undefined$1;
@@ -6456,7 +6477,7 @@ var $TypeError$3 = type;
6456
6477
  var $URIError = uri;
6457
6478
  var abs = abs$1;
6458
6479
  var floor = floor$1;
6459
- var max = max$2;
6480
+ var max = max$1;
6460
6481
  var min = min$1;
6461
6482
  var pow = pow$1;
6462
6483
  var round = round$1;
@@ -6490,7 +6511,7 @@ var getProto = requireGetProto();
6490
6511
  var $ObjectGPO = requireObject_getPrototypeOf();
6491
6512
  var $ReflectGPO = requireReflect_getPrototypeOf();
6492
6513
  var $apply = requireFunctionApply();
6493
- var $call = functionCall;
6514
+ var $call = requireFunctionCall();
6494
6515
  var needsEval = {};
6495
6516
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
6496
6517
  var INTRINSICS = {
@@ -6660,13 +6681,13 @@ var LEGACY_ALIASES = {
6660
6681
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
6661
6682
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
6662
6683
  };
6663
- var bind2 = functionBind;
6684
+ var bind = requireFunctionBind();
6664
6685
  var hasOwn = requireHasown();
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);
6686
+ var $concat = bind.call($call, Array.prototype.concat);
6687
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
6688
+ var $replace = bind.call($call, String.prototype.replace);
6689
+ var $strSlice = bind.call($call, String.prototype.slice);
6690
+ var $exec = bind.call($call, RegExp.prototype.exec);
6670
6691
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
6671
6692
  var reEscapeChar = /\\(\\)?/g;
6672
6693
  var stringToPath = function stringToPath2(string) {
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-BAXZ3d__.js");
2
+ const index = require("../_chunks/index-DHhRVslt.js");
3
3
  require("react");
4
4
  module.exports = index.index;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-comments",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "description": "Strapi - Comments plugin",
5
5
  "strapi": {
6
6
  "name": "comments",
@@ -57,7 +57,7 @@
57
57
  "no-profanity": "^1.5.1",
58
58
  "react": "^18.3.1",
59
59
  "react-dom": "^18.3.1",
60
- "react-router-dom": "^6.26.2",
60
+ "react-router-dom": "^6.22.3",
61
61
  "sanitize-html": "^2.13.1",
62
62
  "styled-components": "^6.1.13",
63
63
  "zod": "^3.23.8",
@@ -66,12 +66,12 @@
66
66
  "devDependencies": {
67
67
  "@jest/types": "29.5.x",
68
68
  "@sensinum/strapi-utils": "^1.0.4",
69
- "@strapi/plugin-cloud": "^5.7.0",
70
- "@strapi/plugin-graphql": "5.7.0",
71
- "@strapi/plugin-users-permissions": "^5.7.0",
72
- "@strapi/sdk-plugin": "^5.2.8",
73
- "@strapi/strapi": "^5.7.0",
74
- "@strapi/types": "^5.7.0",
69
+ "@strapi/plugin-cloud": "^5.8.1",
70
+ "@strapi/plugin-graphql": "5.8.1",
71
+ "@strapi/plugin-users-permissions": "^5.8.1",
72
+ "@strapi/sdk-plugin": "^5.3.0",
73
+ "@strapi/strapi": "^5.8.1",
74
+ "@strapi/types": "^5.8.1",
75
75
  "@types/jest": "^29.5.12",
76
76
  "@types/koa": "^2.15.0",
77
77
  "@types/react": "^18.3.8",
@@ -88,11 +88,11 @@
88
88
  "typescript": "^5.6.2"
89
89
  },
90
90
  "peerDependencies": {
91
- "@strapi/sdk-plugin": "^5.2.8",
92
- "@strapi/strapi": "^5.7.0",
91
+ "@strapi/sdk-plugin": "^5.3.0",
92
+ "@strapi/strapi": "^5.8.1",
93
93
  "react": "^18.3.1",
94
94
  "react-dom": "^18.3.1",
95
- "react-router-dom": "^6.26.2",
95
+ "react-router-dom": "^6.22.3",
96
96
  "styled-components": "^6.1.13"
97
97
  },
98
98
  "nodemonConfig": {