strapi-plugin-comments 3.0.2 → 3.0.3
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-Ct7A5TFY.mjs → index-BAKREpmX.mjs} +2 -2
- package/dist/_chunks/{index-JWxk4wBa.mjs → index-BIcU6CkW.mjs} +3 -3
- package/dist/_chunks/{index-BoLOt7pX.js → index-BMbvyf7_.js} +2 -2
- package/dist/_chunks/{index-7Geqfcar.js → index-BUVqbcoe.js} +2 -2
- package/dist/_chunks/{index-ChxSaqbf.mjs → index-CZsqxJsf.mjs} +2 -2
- package/dist/_chunks/{index-CIBI9Is6.mjs → index-CaFBMp1z.mjs} +3 -2
- package/dist/_chunks/{index-Czdnz9Ci.js → index-D_Yjpru0.js} +3 -3
- package/dist/_chunks/{index-CiJKS9C3.js → index-DkFRVIkq.js} +3 -2
- 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/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/package.json +1 -2
|
@@ -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-BIcU6CkW.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-CZsqxJsf.mjs"),
|
|
51211
51211
|
permissions: pluginPermissions.settings
|
|
51212
51212
|
}
|
|
51213
51213
|
]
|
|
@@ -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-BAKREpmX.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-CaFBMp1z.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";
|
|
@@ -50891,7 +50891,7 @@ const AdminAvatar = ({ children }) => /* @__PURE__ */ jsxs(Box, { position: "rel
|
|
|
50891
50891
|
] });
|
|
50892
50892
|
const UserAvatar = ({ avatar, isAdminComment, name }) => {
|
|
50893
50893
|
if (avatar) {
|
|
50894
|
-
const image3 = "formats" in avatar ? avatar.formats?.thumbnail?.url
|
|
50894
|
+
const image3 = lodashExports.isObject(avatar) ? "formats" in avatar ? avatar.formats?.thumbnail?.url : avatar.url : avatar;
|
|
50895
50895
|
if (isAdminComment) {
|
|
50896
50896
|
return /* @__PURE__ */ jsx(AdminAvatar, { children: image3 ? /* @__PURE__ */ jsx(Avatar.Item, { src: image3, alt: name }) : null });
|
|
50897
50897
|
}
|
|
@@ -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-BUVqbcoe.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-DkFRVIkq.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 };
|
|
@@ -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-D_Yjpru0.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-BMbvyf7_.js")),
|
|
51229
51229
|
permissions: pluginPermissions.settings
|
|
51230
51230
|
}
|
|
51231
51231
|
]
|
|
@@ -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-BAKREpmX.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-CaFBMp1z.mjs";
|
|
6
6
|
import { useMemo, useRef, useState, useCallback } from "react";
|
|
7
7
|
import styled from "styled-components";
|
|
8
8
|
const RenderIf = ({
|
|
@@ -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-BAKREpmX.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";
|
|
@@ -7673,7 +7673,8 @@ const authorSchema = z.object({
|
|
|
7673
7673
|
url: z.string()
|
|
7674
7674
|
}).nullable()
|
|
7675
7675
|
})
|
|
7676
|
-
})
|
|
7676
|
+
}),
|
|
7677
|
+
z.string()
|
|
7677
7678
|
]).nullable().optional()
|
|
7678
7679
|
});
|
|
7679
7680
|
const approvalStatusSchema = z.union([
|
|
@@ -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-BUVqbcoe.js");
|
|
7
7
|
const reactQuery = require("@tanstack/react-query");
|
|
8
|
-
const index$1 = require("./index-
|
|
8
|
+
const index$1 = require("./index-DkFRVIkq.js");
|
|
9
9
|
const react = require("zustand/react");
|
|
10
10
|
const React = require("react");
|
|
11
11
|
const styled = require("styled-components");
|
|
@@ -50915,7 +50915,7 @@ const AdminAvatar = ({ children }) => /* @__PURE__ */ jsxRuntime.jsxs(index.Box,
|
|
|
50915
50915
|
] });
|
|
50916
50916
|
const UserAvatar = ({ avatar, isAdminComment, name }) => {
|
|
50917
50917
|
if (avatar) {
|
|
50918
|
-
const image3 = "formats" in avatar ? avatar.formats?.thumbnail?.url
|
|
50918
|
+
const image3 = index$1.lodashExports.isObject(avatar) ? "formats" in avatar ? avatar.formats?.thumbnail?.url : avatar.url : avatar;
|
|
50919
50919
|
if (isAdminComment) {
|
|
50920
50920
|
return /* @__PURE__ */ jsxRuntime.jsx(AdminAvatar, { children: image3 ? /* @__PURE__ */ jsxRuntime.jsx(index.Avatar.Item, { src: image3, alt: name }) : null });
|
|
50921
50921
|
}
|
|
@@ -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-BUVqbcoe.js");
|
|
4
4
|
const reactQuery = require("@tanstack/react-query");
|
|
5
5
|
const React = require("react");
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
@@ -7691,7 +7691,8 @@ const authorSchema = zod.z.object({
|
|
|
7691
7691
|
url: zod.z.string()
|
|
7692
7692
|
}).nullable()
|
|
7693
7693
|
})
|
|
7694
|
-
})
|
|
7694
|
+
}),
|
|
7695
|
+
zod.z.string()
|
|
7695
7696
|
]).nullable().optional()
|
|
7696
7697
|
});
|
|
7697
7698
|
const approvalStatusSchema = zod.z.union([
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
|
@@ -153,7 +153,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
153
153
|
email: string;
|
|
154
154
|
id: string | number;
|
|
155
155
|
name?: string | undefined;
|
|
156
|
-
avatar?: {
|
|
156
|
+
avatar?: string | {
|
|
157
157
|
url: string;
|
|
158
158
|
} | {
|
|
159
159
|
url: string;
|
|
@@ -191,7 +191,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
191
191
|
email: string;
|
|
192
192
|
id: string | number;
|
|
193
193
|
name?: string | undefined;
|
|
194
|
-
avatar?: {
|
|
194
|
+
avatar?: string | {
|
|
195
195
|
url: string;
|
|
196
196
|
} | {
|
|
197
197
|
url: string;
|
|
@@ -228,7 +228,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
228
228
|
email: string;
|
|
229
229
|
id: string | number;
|
|
230
230
|
name?: string | undefined;
|
|
231
|
-
avatar?: {
|
|
231
|
+
avatar?: string | {
|
|
232
232
|
url: string;
|
|
233
233
|
} | {
|
|
234
234
|
url: string;
|
|
@@ -271,7 +271,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
271
271
|
email: string;
|
|
272
272
|
id: string | number;
|
|
273
273
|
name?: string | undefined;
|
|
274
|
-
avatar?: {
|
|
274
|
+
avatar?: string | {
|
|
275
275
|
url: string;
|
|
276
276
|
} | {
|
|
277
277
|
url: string;
|
|
@@ -344,7 +344,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
344
344
|
email: string;
|
|
345
345
|
id: string | number;
|
|
346
346
|
name?: string | undefined;
|
|
347
|
-
avatar?: {
|
|
347
|
+
avatar?: string | {
|
|
348
348
|
url: string;
|
|
349
349
|
} | {
|
|
350
350
|
url: string;
|
|
@@ -175,12 +175,12 @@ declare const authorSchema: z.ZodObject<{
|
|
|
175
175
|
url: string;
|
|
176
176
|
} | null;
|
|
177
177
|
};
|
|
178
|
-
}
|
|
178
|
+
}>, z.ZodString]>>>;
|
|
179
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
180
|
email: string;
|
|
181
181
|
id: string | number;
|
|
182
182
|
name?: string | undefined;
|
|
183
|
-
avatar?: {
|
|
183
|
+
avatar?: string | {
|
|
184
184
|
url: string;
|
|
185
185
|
} | {
|
|
186
186
|
url: string;
|
|
@@ -194,7 +194,7 @@ declare const authorSchema: z.ZodObject<{
|
|
|
194
194
|
email: string;
|
|
195
195
|
id: string | number;
|
|
196
196
|
name?: string | undefined;
|
|
197
|
-
avatar?: {
|
|
197
|
+
avatar?: string | {
|
|
198
198
|
url: string;
|
|
199
199
|
} | {
|
|
200
200
|
url: string;
|
|
@@ -304,12 +304,12 @@ declare const baseCommentSchema: z.ZodObject<{
|
|
|
304
304
|
url: string;
|
|
305
305
|
} | null;
|
|
306
306
|
};
|
|
307
|
-
}
|
|
307
|
+
}>, z.ZodString]>>>;
|
|
308
308
|
}, "strip", z.ZodTypeAny, {
|
|
309
309
|
email: string;
|
|
310
310
|
id: string | number;
|
|
311
311
|
name?: string | undefined;
|
|
312
|
-
avatar?: {
|
|
312
|
+
avatar?: string | {
|
|
313
313
|
url: string;
|
|
314
314
|
} | {
|
|
315
315
|
url: string;
|
|
@@ -323,7 +323,7 @@ declare const baseCommentSchema: z.ZodObject<{
|
|
|
323
323
|
email: string;
|
|
324
324
|
id: string | number;
|
|
325
325
|
name?: string | undefined;
|
|
326
|
-
avatar?: {
|
|
326
|
+
avatar?: string | {
|
|
327
327
|
url: string;
|
|
328
328
|
} | {
|
|
329
329
|
url: string;
|
|
@@ -351,7 +351,7 @@ declare const baseCommentSchema: z.ZodObject<{
|
|
|
351
351
|
email: string;
|
|
352
352
|
id: string | number;
|
|
353
353
|
name?: string | undefined;
|
|
354
|
-
avatar?: {
|
|
354
|
+
avatar?: string | {
|
|
355
355
|
url: string;
|
|
356
356
|
} | {
|
|
357
357
|
url: string;
|
|
@@ -387,7 +387,7 @@ declare const baseCommentSchema: z.ZodObject<{
|
|
|
387
387
|
email: string;
|
|
388
388
|
id: string | number;
|
|
389
389
|
name?: string | undefined;
|
|
390
|
-
avatar?: {
|
|
390
|
+
avatar?: string | {
|
|
391
391
|
url: string;
|
|
392
392
|
} | {
|
|
393
393
|
url: string;
|
|
@@ -553,12 +553,12 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
553
553
|
url: string;
|
|
554
554
|
} | null;
|
|
555
555
|
};
|
|
556
|
-
}
|
|
556
|
+
}>, z.ZodString]>>>;
|
|
557
557
|
}, "strip", z.ZodTypeAny, {
|
|
558
558
|
email: string;
|
|
559
559
|
id: string | number;
|
|
560
560
|
name?: string | undefined;
|
|
561
|
-
avatar?: {
|
|
561
|
+
avatar?: string | {
|
|
562
562
|
url: string;
|
|
563
563
|
} | {
|
|
564
564
|
url: string;
|
|
@@ -572,7 +572,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
572
572
|
email: string;
|
|
573
573
|
id: string | number;
|
|
574
574
|
name?: string | undefined;
|
|
575
|
-
avatar?: {
|
|
575
|
+
avatar?: string | {
|
|
576
576
|
url: string;
|
|
577
577
|
} | {
|
|
578
578
|
url: string;
|
|
@@ -663,12 +663,12 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
663
663
|
url: string;
|
|
664
664
|
} | null;
|
|
665
665
|
};
|
|
666
|
-
}
|
|
666
|
+
}>, z.ZodString]>>>;
|
|
667
667
|
}, "strip", z.ZodTypeAny, {
|
|
668
668
|
email: string;
|
|
669
669
|
id: string | number;
|
|
670
670
|
name?: string | undefined;
|
|
671
|
-
avatar?: {
|
|
671
|
+
avatar?: string | {
|
|
672
672
|
url: string;
|
|
673
673
|
} | {
|
|
674
674
|
url: string;
|
|
@@ -682,7 +682,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
682
682
|
email: string;
|
|
683
683
|
id: string | number;
|
|
684
684
|
name?: string | undefined;
|
|
685
|
-
avatar?: {
|
|
685
|
+
avatar?: string | {
|
|
686
686
|
url: string;
|
|
687
687
|
} | {
|
|
688
688
|
url: string;
|
|
@@ -798,12 +798,12 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
798
798
|
url: string;
|
|
799
799
|
} | null;
|
|
800
800
|
};
|
|
801
|
-
}
|
|
801
|
+
}>, z.ZodString]>>>;
|
|
802
802
|
}, "strip", z.ZodTypeAny, {
|
|
803
803
|
email: string;
|
|
804
804
|
id: string | number;
|
|
805
805
|
name?: string | undefined;
|
|
806
|
-
avatar?: {
|
|
806
|
+
avatar?: string | {
|
|
807
807
|
url: string;
|
|
808
808
|
} | {
|
|
809
809
|
url: string;
|
|
@@ -817,7 +817,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
817
817
|
email: string;
|
|
818
818
|
id: string | number;
|
|
819
819
|
name?: string | undefined;
|
|
820
|
-
avatar?: {
|
|
820
|
+
avatar?: string | {
|
|
821
821
|
url: string;
|
|
822
822
|
} | {
|
|
823
823
|
url: string;
|
|
@@ -849,7 +849,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
849
849
|
email: string;
|
|
850
850
|
id: string | number;
|
|
851
851
|
name?: string | undefined;
|
|
852
|
-
avatar?: {
|
|
852
|
+
avatar?: string | {
|
|
853
853
|
url: string;
|
|
854
854
|
} | {
|
|
855
855
|
url: string;
|
|
@@ -888,7 +888,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
888
888
|
email: string;
|
|
889
889
|
id: string | number;
|
|
890
890
|
name?: string | undefined;
|
|
891
|
-
avatar?: {
|
|
891
|
+
avatar?: string | {
|
|
892
892
|
url: string;
|
|
893
893
|
} | {
|
|
894
894
|
url: string;
|
|
@@ -931,7 +931,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
931
931
|
email: string;
|
|
932
932
|
id: string | number;
|
|
933
933
|
name?: string | undefined;
|
|
934
|
-
avatar?: {
|
|
934
|
+
avatar?: string | {
|
|
935
935
|
url: string;
|
|
936
936
|
} | {
|
|
937
937
|
url: string;
|
|
@@ -968,7 +968,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
968
968
|
email: string;
|
|
969
969
|
id: string | number;
|
|
970
970
|
name?: string | undefined;
|
|
971
|
-
avatar?: {
|
|
971
|
+
avatar?: string | {
|
|
972
972
|
url: string;
|
|
973
973
|
} | {
|
|
974
974
|
url: string;
|
|
@@ -1009,7 +1009,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1009
1009
|
email: string;
|
|
1010
1010
|
id: string | number;
|
|
1011
1011
|
name?: string | undefined;
|
|
1012
|
-
avatar?: {
|
|
1012
|
+
avatar?: string | {
|
|
1013
1013
|
url: string;
|
|
1014
1014
|
} | {
|
|
1015
1015
|
url: string;
|
|
@@ -1046,7 +1046,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1046
1046
|
email: string;
|
|
1047
1047
|
id: string | number;
|
|
1048
1048
|
name?: string | undefined;
|
|
1049
|
-
avatar?: {
|
|
1049
|
+
avatar?: string | {
|
|
1050
1050
|
url: string;
|
|
1051
1051
|
} | {
|
|
1052
1052
|
url: string;
|
|
@@ -1087,7 +1087,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1087
1087
|
email: string;
|
|
1088
1088
|
id: string | number;
|
|
1089
1089
|
name?: string | undefined;
|
|
1090
|
-
avatar?: {
|
|
1090
|
+
avatar?: string | {
|
|
1091
1091
|
url: string;
|
|
1092
1092
|
} | {
|
|
1093
1093
|
url: string;
|
|
@@ -1125,7 +1125,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1125
1125
|
email: string;
|
|
1126
1126
|
id: string | number;
|
|
1127
1127
|
name?: string | undefined;
|
|
1128
|
-
avatar?: {
|
|
1128
|
+
avatar?: string | {
|
|
1129
1129
|
url: string;
|
|
1130
1130
|
} | {
|
|
1131
1131
|
url: string;
|
|
@@ -1162,7 +1162,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1162
1162
|
email: string;
|
|
1163
1163
|
id: string | number;
|
|
1164
1164
|
name?: string | undefined;
|
|
1165
|
-
avatar?: {
|
|
1165
|
+
avatar?: string | {
|
|
1166
1166
|
url: string;
|
|
1167
1167
|
} | {
|
|
1168
1168
|
url: string;
|
|
@@ -1203,7 +1203,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1203
1203
|
email: string;
|
|
1204
1204
|
id: string | number;
|
|
1205
1205
|
name?: string | undefined;
|
|
1206
|
-
avatar?: {
|
|
1206
|
+
avatar?: string | {
|
|
1207
1207
|
url: string;
|
|
1208
1208
|
} | {
|
|
1209
1209
|
url: string;
|
|
@@ -1241,7 +1241,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1241
1241
|
email: string;
|
|
1242
1242
|
id: string | number;
|
|
1243
1243
|
name?: string | undefined;
|
|
1244
|
-
avatar?: {
|
|
1244
|
+
avatar?: string | {
|
|
1245
1245
|
url: string;
|
|
1246
1246
|
} | {
|
|
1247
1247
|
url: string;
|
|
@@ -1278,7 +1278,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1278
1278
|
email: string;
|
|
1279
1279
|
id: string | number;
|
|
1280
1280
|
name?: string | undefined;
|
|
1281
|
-
avatar?: {
|
|
1281
|
+
avatar?: string | {
|
|
1282
1282
|
url: string;
|
|
1283
1283
|
} | {
|
|
1284
1284
|
url: string;
|
|
@@ -1381,12 +1381,12 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1381
1381
|
url: string;
|
|
1382
1382
|
} | null;
|
|
1383
1383
|
};
|
|
1384
|
-
}
|
|
1384
|
+
}>, z.ZodString]>>>;
|
|
1385
1385
|
}, "strip", z.ZodTypeAny, {
|
|
1386
1386
|
email: string;
|
|
1387
1387
|
id: string | number;
|
|
1388
1388
|
name?: string | undefined;
|
|
1389
|
-
avatar?: {
|
|
1389
|
+
avatar?: string | {
|
|
1390
1390
|
url: string;
|
|
1391
1391
|
} | {
|
|
1392
1392
|
url: string;
|
|
@@ -1400,7 +1400,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1400
1400
|
email: string;
|
|
1401
1401
|
id: string | number;
|
|
1402
1402
|
name?: string | undefined;
|
|
1403
|
-
avatar?: {
|
|
1403
|
+
avatar?: string | {
|
|
1404
1404
|
url: string;
|
|
1405
1405
|
} | {
|
|
1406
1406
|
url: string;
|
|
@@ -1516,12 +1516,12 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1516
1516
|
url: string;
|
|
1517
1517
|
} | null;
|
|
1518
1518
|
};
|
|
1519
|
-
}
|
|
1519
|
+
}>, z.ZodString]>>>;
|
|
1520
1520
|
}, "strip", z.ZodTypeAny, {
|
|
1521
1521
|
email: string;
|
|
1522
1522
|
id: string | number;
|
|
1523
1523
|
name?: string | undefined;
|
|
1524
|
-
avatar?: {
|
|
1524
|
+
avatar?: string | {
|
|
1525
1525
|
url: string;
|
|
1526
1526
|
} | {
|
|
1527
1527
|
url: string;
|
|
@@ -1535,7 +1535,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1535
1535
|
email: string;
|
|
1536
1536
|
id: string | number;
|
|
1537
1537
|
name?: string | undefined;
|
|
1538
|
-
avatar?: {
|
|
1538
|
+
avatar?: string | {
|
|
1539
1539
|
url: string;
|
|
1540
1540
|
} | {
|
|
1541
1541
|
url: string;
|
|
@@ -1567,7 +1567,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1567
1567
|
email: string;
|
|
1568
1568
|
id: string | number;
|
|
1569
1569
|
name?: string | undefined;
|
|
1570
|
-
avatar?: {
|
|
1570
|
+
avatar?: string | {
|
|
1571
1571
|
url: string;
|
|
1572
1572
|
} | {
|
|
1573
1573
|
url: string;
|
|
@@ -1606,7 +1606,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1606
1606
|
email: string;
|
|
1607
1607
|
id: string | number;
|
|
1608
1608
|
name?: string | undefined;
|
|
1609
|
-
avatar?: {
|
|
1609
|
+
avatar?: string | {
|
|
1610
1610
|
url: string;
|
|
1611
1611
|
} | {
|
|
1612
1612
|
url: string;
|
|
@@ -1647,7 +1647,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1647
1647
|
email: string;
|
|
1648
1648
|
id: string | number;
|
|
1649
1649
|
name?: string | undefined;
|
|
1650
|
-
avatar?: {
|
|
1650
|
+
avatar?: string | {
|
|
1651
1651
|
url: string;
|
|
1652
1652
|
} | {
|
|
1653
1653
|
url: string;
|
|
@@ -1684,7 +1684,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1684
1684
|
email: string;
|
|
1685
1685
|
id: string | number;
|
|
1686
1686
|
name?: string | undefined;
|
|
1687
|
-
avatar?: {
|
|
1687
|
+
avatar?: string | {
|
|
1688
1688
|
url: string;
|
|
1689
1689
|
} | {
|
|
1690
1690
|
url: string;
|
|
@@ -1731,7 +1731,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1731
1731
|
email: string;
|
|
1732
1732
|
id: string | number;
|
|
1733
1733
|
name?: string | undefined;
|
|
1734
|
-
avatar?: {
|
|
1734
|
+
avatar?: string | {
|
|
1735
1735
|
url: string;
|
|
1736
1736
|
} | {
|
|
1737
1737
|
url: string;
|
|
@@ -1769,7 +1769,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1769
1769
|
email: string;
|
|
1770
1770
|
id: string | number;
|
|
1771
1771
|
name?: string | undefined;
|
|
1772
|
-
avatar?: {
|
|
1772
|
+
avatar?: string | {
|
|
1773
1773
|
url: string;
|
|
1774
1774
|
} | {
|
|
1775
1775
|
url: string;
|
|
@@ -1806,7 +1806,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1806
1806
|
email: string;
|
|
1807
1807
|
id: string | number;
|
|
1808
1808
|
name?: string | undefined;
|
|
1809
|
-
avatar?: {
|
|
1809
|
+
avatar?: string | {
|
|
1810
1810
|
url: string;
|
|
1811
1811
|
} | {
|
|
1812
1812
|
url: string;
|
|
@@ -1849,7 +1849,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1849
1849
|
email: string;
|
|
1850
1850
|
id: string | number;
|
|
1851
1851
|
name?: string | undefined;
|
|
1852
|
-
avatar?: {
|
|
1852
|
+
avatar?: string | {
|
|
1853
1853
|
url: string;
|
|
1854
1854
|
} | {
|
|
1855
1855
|
url: string;
|
|
@@ -1896,7 +1896,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1896
1896
|
email: string;
|
|
1897
1897
|
id: string | number;
|
|
1898
1898
|
name?: string | undefined;
|
|
1899
|
-
avatar?: {
|
|
1899
|
+
avatar?: string | {
|
|
1900
1900
|
url: string;
|
|
1901
1901
|
} | {
|
|
1902
1902
|
url: string;
|
|
@@ -1934,7 +1934,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1934
1934
|
email: string;
|
|
1935
1935
|
id: string | number;
|
|
1936
1936
|
name?: string | undefined;
|
|
1937
|
-
avatar?: {
|
|
1937
|
+
avatar?: string | {
|
|
1938
1938
|
url: string;
|
|
1939
1939
|
} | {
|
|
1940
1940
|
url: string;
|
|
@@ -1971,7 +1971,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1971
1971
|
email: string;
|
|
1972
1972
|
id: string | number;
|
|
1973
1973
|
name?: string | undefined;
|
|
1974
|
-
avatar?: {
|
|
1974
|
+
avatar?: string | {
|
|
1975
1975
|
url: string;
|
|
1976
1976
|
} | {
|
|
1977
1977
|
url: string;
|
|
@@ -2014,7 +2014,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
2014
2014
|
email: string;
|
|
2015
2015
|
id: string | number;
|
|
2016
2016
|
name?: string | undefined;
|
|
2017
|
-
avatar?: {
|
|
2017
|
+
avatar?: string | {
|
|
2018
2018
|
url: string;
|
|
2019
2019
|
} | {
|
|
2020
2020
|
url: string;
|
|
@@ -2355,12 +2355,12 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
2355
2355
|
url: string;
|
|
2356
2356
|
} | null;
|
|
2357
2357
|
};
|
|
2358
|
-
}
|
|
2358
|
+
}>, z.ZodString]>>>;
|
|
2359
2359
|
}, "strip", z.ZodTypeAny, {
|
|
2360
2360
|
email: string;
|
|
2361
2361
|
id: string | number;
|
|
2362
2362
|
name?: string | undefined;
|
|
2363
|
-
avatar?: {
|
|
2363
|
+
avatar?: string | {
|
|
2364
2364
|
url: string;
|
|
2365
2365
|
} | {
|
|
2366
2366
|
url: string;
|
|
@@ -2374,7 +2374,7 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
2374
2374
|
email: string;
|
|
2375
2375
|
id: string | number;
|
|
2376
2376
|
name?: string | undefined;
|
|
2377
|
-
avatar?: {
|
|
2377
|
+
avatar?: string | {
|
|
2378
2378
|
url: string;
|
|
2379
2379
|
} | {
|
|
2380
2380
|
url: string;
|
|
@@ -2402,7 +2402,7 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
2402
2402
|
email: string;
|
|
2403
2403
|
id: string | number;
|
|
2404
2404
|
name?: string | undefined;
|
|
2405
|
-
avatar?: {
|
|
2405
|
+
avatar?: string | {
|
|
2406
2406
|
url: string;
|
|
2407
2407
|
} | {
|
|
2408
2408
|
url: string;
|
|
@@ -2438,7 +2438,7 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
2438
2438
|
email: string;
|
|
2439
2439
|
id: string | number;
|
|
2440
2440
|
name?: string | undefined;
|
|
2441
|
-
avatar?: {
|
|
2441
|
+
avatar?: string | {
|
|
2442
2442
|
url: string;
|
|
2443
2443
|
} | {
|
|
2444
2444
|
url: string;
|
|
@@ -2482,7 +2482,7 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
2482
2482
|
email: string;
|
|
2483
2483
|
id: string | number;
|
|
2484
2484
|
name?: string | undefined;
|
|
2485
|
-
avatar?: {
|
|
2485
|
+
avatar?: string | {
|
|
2486
2486
|
url: string;
|
|
2487
2487
|
} | {
|
|
2488
2488
|
url: string;
|
|
@@ -2529,7 +2529,7 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
2529
2529
|
email: string;
|
|
2530
2530
|
id: string | number;
|
|
2531
2531
|
name?: string | undefined;
|
|
2532
|
-
avatar?: {
|
|
2532
|
+
avatar?: string | {
|
|
2533
2533
|
url: string;
|
|
2534
2534
|
} | {
|
|
2535
2535
|
url: string;
|
|
@@ -2659,12 +2659,12 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2659
2659
|
url: string;
|
|
2660
2660
|
} | null;
|
|
2661
2661
|
};
|
|
2662
|
-
}
|
|
2662
|
+
}>, z.ZodString]>>>;
|
|
2663
2663
|
}, "strip", z.ZodTypeAny, {
|
|
2664
2664
|
email: string;
|
|
2665
2665
|
id: string | number;
|
|
2666
2666
|
name?: string | undefined;
|
|
2667
|
-
avatar?: {
|
|
2667
|
+
avatar?: string | {
|
|
2668
2668
|
url: string;
|
|
2669
2669
|
} | {
|
|
2670
2670
|
url: string;
|
|
@@ -2678,7 +2678,7 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2678
2678
|
email: string;
|
|
2679
2679
|
id: string | number;
|
|
2680
2680
|
name?: string | undefined;
|
|
2681
|
-
avatar?: {
|
|
2681
|
+
avatar?: string | {
|
|
2682
2682
|
url: string;
|
|
2683
2683
|
} | {
|
|
2684
2684
|
url: string;
|
|
@@ -2706,7 +2706,7 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2706
2706
|
email: string;
|
|
2707
2707
|
id: string | number;
|
|
2708
2708
|
name?: string | undefined;
|
|
2709
|
-
avatar?: {
|
|
2709
|
+
avatar?: string | {
|
|
2710
2710
|
url: string;
|
|
2711
2711
|
} | {
|
|
2712
2712
|
url: string;
|
|
@@ -2742,7 +2742,7 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2742
2742
|
email: string;
|
|
2743
2743
|
id: string | number;
|
|
2744
2744
|
name?: string | undefined;
|
|
2745
|
-
avatar?: {
|
|
2745
|
+
avatar?: string | {
|
|
2746
2746
|
url: string;
|
|
2747
2747
|
} | {
|
|
2748
2748
|
url: string;
|
|
@@ -2786,7 +2786,7 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2786
2786
|
email: string;
|
|
2787
2787
|
id: string | number;
|
|
2788
2788
|
name?: string | undefined;
|
|
2789
|
-
avatar?: {
|
|
2789
|
+
avatar?: string | {
|
|
2790
2790
|
url: string;
|
|
2791
2791
|
} | {
|
|
2792
2792
|
url: string;
|
|
@@ -2833,7 +2833,7 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2833
2833
|
email: string;
|
|
2834
2834
|
id: string | number;
|
|
2835
2835
|
name?: string | undefined;
|
|
2836
|
-
avatar?: {
|
|
2836
|
+
avatar?: string | {
|
|
2837
2837
|
url: string;
|
|
2838
2838
|
} | {
|
|
2839
2839
|
url: string;
|
|
@@ -2888,7 +2888,7 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2888
2888
|
email: string;
|
|
2889
2889
|
id: string | number;
|
|
2890
2890
|
name?: string | undefined;
|
|
2891
|
-
avatar?: {
|
|
2891
|
+
avatar?: string | {
|
|
2892
2892
|
url: string;
|
|
2893
2893
|
} | {
|
|
2894
2894
|
url: string;
|
|
@@ -2943,7 +2943,7 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2943
2943
|
email: string;
|
|
2944
2944
|
id: string | number;
|
|
2945
2945
|
name?: string | undefined;
|
|
2946
|
-
avatar?: {
|
|
2946
|
+
avatar?: string | {
|
|
2947
2947
|
url: string;
|
|
2948
2948
|
} | {
|
|
2949
2949
|
url: string;
|
|
@@ -150,7 +150,7 @@ export declare const useAPI: () => {
|
|
|
150
150
|
email: string;
|
|
151
151
|
id: string | number;
|
|
152
152
|
name?: string | undefined;
|
|
153
|
-
avatar?: {
|
|
153
|
+
avatar?: string | {
|
|
154
154
|
url: string;
|
|
155
155
|
} | {
|
|
156
156
|
url: string;
|
|
@@ -188,7 +188,7 @@ export declare const useAPI: () => {
|
|
|
188
188
|
email: string;
|
|
189
189
|
id: string | number;
|
|
190
190
|
name?: string | undefined;
|
|
191
|
-
avatar?: {
|
|
191
|
+
avatar?: string | {
|
|
192
192
|
url: string;
|
|
193
193
|
} | {
|
|
194
194
|
url: string;
|
|
@@ -225,7 +225,7 @@ export declare const useAPI: () => {
|
|
|
225
225
|
email: string;
|
|
226
226
|
id: string | number;
|
|
227
227
|
name?: string | undefined;
|
|
228
|
-
avatar?: {
|
|
228
|
+
avatar?: string | {
|
|
229
229
|
url: string;
|
|
230
230
|
} | {
|
|
231
231
|
url: string;
|
|
@@ -268,7 +268,7 @@ export declare const useAPI: () => {
|
|
|
268
268
|
email: string;
|
|
269
269
|
id: string | number;
|
|
270
270
|
name?: string | undefined;
|
|
271
|
-
avatar?: {
|
|
271
|
+
avatar?: string | {
|
|
272
272
|
url: string;
|
|
273
273
|
} | {
|
|
274
274
|
url: string;
|
|
@@ -361,7 +361,7 @@ export declare const useAPI: () => {
|
|
|
361
361
|
email: string;
|
|
362
362
|
id: string | number;
|
|
363
363
|
name?: string | undefined;
|
|
364
|
-
avatar?: {
|
|
364
|
+
avatar?: string | {
|
|
365
365
|
url: string;
|
|
366
366
|
} | {
|
|
367
367
|
url: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strapi-plugin-comments",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Strapi - Comments plugin",
|
|
5
5
|
"strapi": {
|
|
6
6
|
"name": "comments",
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"publish:beta": "npm publish --tag beta",
|
|
35
35
|
"build": "yarn clean && strapi-plugin build",
|
|
36
36
|
"clean": "rm -rf build",
|
|
37
|
-
"develop": "nodemon --exec \"yarn build:dev\"",
|
|
38
37
|
"test:unit": "jest --verbose --coverage",
|
|
39
38
|
"test:unit:watch": "jest --verbose --watch",
|
|
40
39
|
"test:unit:ci": "CI=true jest --ci --runInBand --verbose --coverage",
|