strapi-plugin-comments 2.3.0 → 2.3.1

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.
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.newlineAndIndentContinueMarkdownList = void 0;
6
+ exports.newlineAndIndentContinueMarkdownList = newlineAndIndentContinueMarkdownList;
7
7
  const codemirror5_1 = __importDefault(require("codemirror5"));
8
8
  var listRE = /^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/, emptyListRE = /^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/, unorderedListRE = /[*+-]\s/;
9
9
  function newlineAndIndentContinueMarkdownList(cm) {
@@ -45,7 +45,6 @@ function newlineAndIndentContinueMarkdownList(cm) {
45
45
  }
46
46
  cm.replaceSelections(replacements);
47
47
  }
48
- exports.newlineAndIndentContinueMarkdownList = newlineAndIndentContinueMarkdownList;
49
48
  function incrementRemainingMarkdownListNumbers(cm, pos) {
50
49
  var startLine = pos.line, lookAhead = 0, skipCount = 0;
51
50
  var startItem = listRE.exec(cm.getLine(startLine)), startIndent = startItem[1];
@@ -5,7 +5,7 @@ export declare const asString: () => string;
5
5
  export declare const fromInput: (value: unknown) => CommentsFieldValue;
6
6
  export declare const toOutput: (state: CommentsFieldValue) => string;
7
7
  export declare function assertCorrectState(state: any): asserts state is CommentsFieldValue;
8
- export declare const handleStateSliceChange: (key: keyof CommentsFieldValue, setState: Dispatch<SetStateAction<CommentsFieldValue>>) => (value: string | number | Date | PopulateField[] | undefined) => void;
8
+ export declare const handleStateSliceChange: (key: keyof CommentsFieldValue, setState: Dispatch<SetStateAction<CommentsFieldValue>>) => (value: CommentsFieldValue[typeof key]) => void;
9
9
  export declare const handlePopulateChange: (key: PopulateField, setState: Dispatch<SetStateAction<CommentsFieldValue>>) => () => void;
10
10
  export declare const getRenderTypeOptions: (translate: typeof getMessage) => {
11
11
  value: string;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getApprovalStatusOptions = exports.getFilterByOptions = exports.getSortByDateOptions = exports.getRenderTypeOptions = exports.handlePopulateChange = exports.handleStateSliceChange = exports.assertCorrectState = exports.toOutput = exports.fromInput = exports.asString = void 0;
3
+ exports.getApprovalStatusOptions = exports.getFilterByOptions = exports.getSortByDateOptions = exports.getRenderTypeOptions = exports.handlePopulateChange = exports.handleStateSliceChange = exports.toOutput = exports.fromInput = exports.asString = void 0;
4
+ exports.assertCorrectState = assertCorrectState;
4
5
  const lodash_1 = require("lodash");
5
6
  const utils_1 = require("../../../../utils");
6
7
  const consts_1 = require("./consts");
@@ -37,7 +38,6 @@ function assertCorrectState(state) {
37
38
  }
38
39
  });
39
40
  }
40
- exports.assertCorrectState = assertCorrectState;
41
41
  const handleStateSliceChange = (key, setState) => (value) => {
42
42
  return setState((current) => ({
43
43
  ...current,
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  export declare function mapDispatchToProps(dispatch: any): {
3
2
  setConfig: (data: any) => {
4
3
  data: any;
@@ -9,8 +8,8 @@ declare const _default: import("react-redux").ConnectedComponent<({ setConfig }:
9
8
  setConfig: any;
10
9
  }) => JSX.Element, {
11
10
  setConfig: any;
12
- context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
13
- store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
11
+ context?: import("react-redux/es/components/Context").ReactReduxContextInstance | undefined;
12
+ store?: import("redux").Store | undefined;
14
13
  }>;
15
14
  export default _default;
16
15
  //# sourceMappingURL=index.d.ts.map
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.mapDispatchToProps = void 0;
6
+ exports.mapDispatchToProps = mapDispatchToProps;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const react_redux_1 = require("react-redux");
9
9
  const redux_1 = require("redux");
@@ -42,7 +42,6 @@ const mapStateToProps = (0, selectors_1.default)();
42
42
  function mapDispatchToProps(dispatch) {
43
43
  return (0, redux_1.bindActionCreators)({ setConfig: actions_1.setConfig }, dispatch);
44
44
  }
45
- exports.mapDispatchToProps = mapDispatchToProps;
46
45
  const withConnect = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps);
47
46
  exports.default = (0, redux_1.compose)(withConnect)(App);
48
47
  //# sourceMappingURL=index.js.map
@@ -4,8 +4,8 @@ declare const _default: import("react-redux").ConnectedComponent<React.MemoExoti
4
4
  config: any;
5
5
  }) => JSX.Element | null>, {
6
6
  config: any;
7
- context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
8
- store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
7
+ context?: import("react-redux/es/components/Context").ReactReduxContextInstance | undefined;
8
+ store?: import("redux").Store | undefined;
9
9
  }>;
10
10
  export default _default;
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.mapDispatchToProps = void 0;
29
+ exports.mapDispatchToProps = mapDispatchToProps;
30
30
  const react_1 = __importStar(require("react"));
31
31
  const react_redux_1 = require("react-redux");
32
32
  const redux_1 = require("redux");
@@ -95,7 +95,6 @@ const mapStateToProps = (0, selectors_1.default)();
95
95
  function mapDispatchToProps(dispatch) {
96
96
  return (0, redux_1.bindActionCreators)({}, dispatch);
97
97
  }
98
- exports.mapDispatchToProps = mapDispatchToProps;
99
98
  const withConnect = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps);
100
99
  exports.default = (0, redux_1.compose)(withConnect)((0, react_1.memo)(Details, react_fast_compare_1.default));
101
100
  //# sourceMappingURL=index.js.map
@@ -4,8 +4,8 @@ declare const _default: import("react-redux").ConnectedComponent<React.MemoExoti
4
4
  config: any;
5
5
  }) => JSX.Element>, {
6
6
  config: any;
7
- context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
8
- store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
7
+ context?: import("react-redux/es/components/Context").ReactReduxContextInstance | undefined;
8
+ store?: import("redux").Store | undefined;
9
9
  }>;
10
10
  export default _default;
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.mapDispatchToProps = void 0;
29
+ exports.mapDispatchToProps = mapDispatchToProps;
30
30
  const react_1 = __importStar(require("react"));
31
31
  const react_redux_1 = require("react-redux");
32
32
  const redux_1 = require("redux");
@@ -127,7 +127,6 @@ const mapStateToProps = (0, selectors_1.default)();
127
127
  function mapDispatchToProps(dispatch) {
128
128
  return (0, redux_1.bindActionCreators)({}, dispatch);
129
129
  }
130
- exports.mapDispatchToProps = mapDispatchToProps;
131
130
  const withConnect = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps);
132
131
  exports.default = (0, redux_1.compose)(withConnect)((0, react_1.memo)(Discover, react_fast_compare_1.default));
133
132
  //# sourceMappingURL=index.js.map
@@ -4,8 +4,8 @@ declare const _default: import("react-redux").ConnectedComponent<React.MemoExoti
4
4
  config: any;
5
5
  }) => JSX.Element>, {
6
6
  config: any;
7
- context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
8
- store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
7
+ context?: import("react-redux/es/components/Context").ReactReduxContextInstance | undefined;
8
+ store?: import("redux").Store | undefined;
9
9
  }>;
10
10
  export default _default;
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.assertString = void 0;
3
+ exports.assertString = assertString;
4
4
  const errors_1 = require("./errors");
5
5
  function assertString(value) {
6
6
  if (typeof value !== "string") {
7
7
  throw new errors_1.ValidationError(`String expected, but "${typeof value}" given`);
8
8
  }
9
9
  }
10
- exports.assertString = assertString;
11
10
  //# sourceMappingURL=functions.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-comments",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Strapi - Comments plugin",
5
5
  "strapi": {
6
6
  "name": "comments",
@@ -15,9 +15,9 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@strapi/design-system": "1.18.0",
18
- "@strapi/plugin-graphql": "^4.24.4",
19
- "@strapi/utils": "^4.24.4",
20
- "@strapi/types": "4.24.4",
18
+ "@strapi/plugin-graphql": "^4.25.8",
19
+ "@strapi/utils": "^4.25.8",
20
+ "@strapi/types": "4.25.8",
21
21
  "no-profanity": "^1.4.2",
22
22
  "styled-components": "^5.3.8",
23
23
  "match-sorter": "^4.0.2",
package/server/index.d.ts CHANGED
@@ -9,7 +9,7 @@ declare const _default: {
9
9
  routes: {
10
10
  [key: string]: {
11
11
  type: string;
12
- routes: import("strapi-typed").StrapiRoute[];
12
+ routes: Array<import("strapi-typed").StrapiRoute>;
13
13
  };
14
14
  };
15
15
  services: {
@@ -149,10 +149,10 @@ declare const _default: () => {
149
149
  };
150
150
  config: {
151
151
  default: () => {
152
- enabledCollections: string[];
153
- moderatorRoles: string[];
154
- approvalFlow: string[];
155
- blockedAuthorProps: string[];
152
+ enabledCollections: Array<string>;
153
+ moderatorRoles: Array<string>;
154
+ approvalFlow: Array<string>;
155
+ blockedAuthorProps: Array<string>;
156
156
  entryLabel: PluginConfigEntryLabels;
157
157
  reportReasons: PluginConfigReportReasons;
158
158
  badWords?: boolean | undefined;
@@ -170,7 +170,7 @@ declare const _default: () => {
170
170
  routes: {
171
171
  [key: string]: {
172
172
  type: string;
173
- routes: import("strapi-typed").StrapiRoute[];
173
+ routes: Array<import("strapi-typed").StrapiRoute>;
174
174
  };
175
175
  };
176
176
  services: {