strapi-plugin-comments 2.2.17 → 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.
- package/README.md +46 -0
- package/admin/src/components/Wysiwyg/utils/continueList.js +1 -2
- package/admin/src/custom-fields/comments/components/input/utils.d.ts +1 -1
- package/admin/src/custom-fields/comments/components/input/utils.js +2 -2
- package/admin/src/pages/App/index.d.ts +2 -3
- package/admin/src/pages/App/index.js +1 -2
- package/admin/src/pages/Details/index.d.ts +2 -2
- package/admin/src/pages/Details/index.js +1 -2
- package/admin/src/pages/Discover/index.d.ts +2 -2
- package/admin/src/pages/Discover/index.js +1 -2
- package/admin/src/pages/Reports/index.d.ts +2 -2
- package/admin/src/utils/functions.js +1 -2
- package/content-types/index.d.ts +2 -0
- package/content-types/index.js +7 -0
- package/package.json +4 -4
- package/server/controllers/client.js +6 -3
- package/server/controllers/utils/parsers.d.ts +1 -0
- package/server/controllers/utils/parsers.js +2 -1
- package/server/index.d.ts +1 -1
- package/server/services/admin.js +3 -3
- package/server/services/common.js +31 -11
- package/server/utils/constants.d.ts +2 -0
- package/server/utils/constants.js +21 -1
- package/server/utils/functions.d.ts +5 -1
- package/server/utils/functions.js +18 -1
- package/server/utils/types.d.ts +23 -0
- package/server/utils/types.js +3 -0
- package/strapi-server.d.ts +7 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/types/utils.js +1 -2
package/strapi-server.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ declare const _default: () => {
|
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
|
+
lifecycles: Record<import("./server/utils/types").LifeCycleHookName, import("./types/utils").Effect<import("./server/utils/types").LifeCycleEvent<import("./server/utils/types").LifeCycleHookName, unknown, Record<string, unknown>>>>;
|
|
98
99
|
};
|
|
99
100
|
"comment-report": {
|
|
100
101
|
schema: {
|
|
@@ -143,14 +144,15 @@ declare const _default: () => {
|
|
|
143
144
|
};
|
|
144
145
|
};
|
|
145
146
|
};
|
|
147
|
+
lifecycles: Record<import("./server/utils/types").LifeCycleHookName, import("./types/utils").Effect<import("./server/utils/types").LifeCycleEvent<import("./server/utils/types").LifeCycleHookName, unknown, Record<string, unknown>>>>;
|
|
146
148
|
};
|
|
147
149
|
};
|
|
148
150
|
config: {
|
|
149
151
|
default: () => {
|
|
150
|
-
enabledCollections: string
|
|
151
|
-
moderatorRoles: string
|
|
152
|
-
approvalFlow: string
|
|
153
|
-
blockedAuthorProps: string
|
|
152
|
+
enabledCollections: Array<string>;
|
|
153
|
+
moderatorRoles: Array<string>;
|
|
154
|
+
approvalFlow: Array<string>;
|
|
155
|
+
blockedAuthorProps: Array<string>;
|
|
154
156
|
entryLabel: PluginConfigEntryLabels;
|
|
155
157
|
reportReasons: PluginConfigReportReasons;
|
|
156
158
|
badWords?: boolean | undefined;
|
|
@@ -168,7 +170,7 @@ declare const _default: () => {
|
|
|
168
170
|
routes: {
|
|
169
171
|
[key: string]: {
|
|
170
172
|
type: string;
|
|
171
|
-
routes: import("strapi-typed").StrapiRoute
|
|
173
|
+
routes: Array<import("strapi-typed").StrapiRoute>;
|
|
172
174
|
};
|
|
173
175
|
};
|
|
174
176
|
services: {
|