strapi-plugin-comments 3.0.0-beta.0 → 3.0.0

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.
Files changed (96) hide show
  1. package/README.md +83 -123
  2. package/dist/_chunks/{index-fAgatqD0.js → index-B-ygLKrb.js} +6080 -5662
  3. package/dist/_chunks/{index-fSb-gYwg.mjs → index-BgN4aUMA.mjs} +5 -5
  4. package/dist/_chunks/{index-h-TB6Qu2.mjs → index-Bx2boY6h.mjs} +6072 -5654
  5. package/dist/_chunks/{index-BQERo8pN.mjs → index-CIqMAf50.mjs} +1261 -1141
  6. package/dist/_chunks/{index-B6Q4U8YQ.js → index-CWfr5ejx.js} +27 -29
  7. package/dist/_chunks/{index-CTjupB9v.js → index-D8uskGzQ.js} +5 -5
  8. package/dist/_chunks/{index-BVj8EXjI.js → index-DFAPx7Bl.js} +1293 -1152
  9. package/dist/_chunks/{index-Bpbf7RON.mjs → index-Db2zwbpe.mjs} +27 -29
  10. package/dist/admin/index.js +1 -1
  11. package/dist/admin/index.mjs +1 -1
  12. package/dist/admin/src/api/client.d.ts +33 -52
  13. package/dist/admin/src/api/schemas.d.ts +454 -764
  14. package/dist/admin/src/components/UserAvatar/index.d.ts +1 -1
  15. package/dist/admin/src/contexts/UserContext.d.ts +1 -1
  16. package/dist/admin/src/hooks/useAPI.d.ts +34 -53
  17. package/dist/admin/src/hooks/useCommentMutations.d.ts +1 -1
  18. package/dist/admin/src/hooks/useCommentsAll.d.ts +7 -10
  19. package/dist/admin/src/hooks/useReports.d.ts +6 -10
  20. package/dist/admin/src/hooks/useUserContext.d.ts +1 -1
  21. package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +1 -1
  22. package/dist/server/index.js +9307 -2467
  23. package/dist/server/index.mjs +9307 -2467
  24. package/dist/server/src/{@types-v5 → @types}/utils.d.ts +4 -0
  25. package/dist/server/src/bootstrap.d.ts +1 -1
  26. package/dist/server/src/config/index.d.ts +52 -0
  27. package/dist/server/src/content-types/index.d.ts +1 -1
  28. package/dist/server/src/controllers/admin.controller.d.ts +110 -29
  29. package/dist/server/src/controllers/client.controller.d.ts +151 -23
  30. package/dist/server/src/controllers/index.d.ts +504 -197
  31. package/dist/server/src/controllers/settings.controller.d.ts +58 -2
  32. package/dist/server/src/controllers/utils/parsers.d.ts +4 -1
  33. package/dist/server/src/graphql/getResolversConfig.d.ts +21 -0
  34. package/dist/server/src/graphql/index.d.ts +2 -0
  35. package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +95 -0
  36. package/dist/server/src/graphql/mutations/getCreateComment.d.ts +84 -0
  37. package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +84 -0
  38. package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +84 -0
  39. package/dist/server/src/graphql/mutations/index.d.ts +3 -0
  40. package/dist/server/src/graphql/queries/findAllFlat.d.ts +177 -0
  41. package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +87 -0
  42. package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +176 -0
  43. package/dist/server/src/graphql/queries/index.d.ts +3 -0
  44. package/dist/server/src/graphql/types/getComment.d.ts +2 -0
  45. package/dist/server/src/graphql/types/getCommentAuthor.d.ts +2 -0
  46. package/dist/server/src/graphql/types/getCommentAuthorType.d.ts +2 -0
  47. package/dist/server/src/graphql/types/getCommentNested.d.ts +2 -0
  48. package/dist/server/src/graphql/types/getCreateComment.d.ts +2 -0
  49. package/dist/server/src/graphql/types/getCreateCommentAuthor.d.ts +2 -0
  50. package/dist/server/src/graphql/types/getCreateReport.d.ts +2 -0
  51. package/dist/server/src/graphql/types/getId.d.ts +2 -0
  52. package/dist/server/src/graphql/types/getIdentityAuthor.d.ts +2 -0
  53. package/dist/server/src/graphql/types/getRemoveComment.d.ts +2 -0
  54. package/dist/server/src/graphql/types/getReport.d.ts +2 -0
  55. package/dist/server/src/graphql/types/getReportReason.d.ts +3 -0
  56. package/dist/server/src/graphql/types/getResponseFindAll.d.ts +2 -0
  57. package/dist/server/src/graphql/types/getResponseFindAllPerAuthor.d.ts +2 -0
  58. package/dist/server/src/graphql/types/getResponseMeta.d.ts +2 -0
  59. package/dist/server/src/graphql/types/getResponsePagination.d.ts +2 -0
  60. package/dist/server/src/graphql/types/getUpdateComment.d.ts +2 -0
  61. package/dist/server/src/graphql/types/index.d.ts +3 -0
  62. package/dist/server/src/index.d.ts +1686 -779
  63. package/dist/server/src/register/custom-fields/index.d.ts +1 -1
  64. package/dist/server/src/register/index.d.ts +1 -1
  65. package/dist/server/src/repositories/comment.repository.d.ts +10 -1
  66. package/dist/server/src/repositories/index.d.ts +0 -2
  67. package/dist/server/src/repositories/report.comment.repository.d.ts +38 -1
  68. package/dist/server/src/repositories/store.repository.d.ts +175 -4
  69. package/dist/server/src/repositories/utils.d.ts +1 -3
  70. package/dist/server/src/routes/admin.routes.d.ts +1 -1
  71. package/dist/server/src/routes/client.routes.d.ts +1 -1
  72. package/dist/server/src/routes/index.d.ts +2 -2
  73. package/dist/server/src/services/admin/admin.service.d.ts +399 -188
  74. package/dist/server/src/services/admin/utils.d.ts +1 -1
  75. package/dist/server/src/services/client.service.d.ts +343 -177
  76. package/dist/server/src/services/common.service.d.ts +66 -22
  77. package/dist/server/src/services/gql.service.d.ts +7 -0
  78. package/dist/server/src/services/index.d.ts +1131 -552
  79. package/dist/server/src/services/settings.service.d.ts +44 -2
  80. package/dist/server/src/services/utils/functions.d.ts +10 -6
  81. package/dist/server/src/test/utils.d.ts +1 -0
  82. package/dist/server/src/utils/constants.d.ts +1 -1
  83. package/dist/server/src/utils/getConfig.d.ts +2 -2
  84. package/dist/server/src/utils/getPluginService.d.ts +2 -2
  85. package/dist/server/src/utils/throwError.d.ts +1 -1
  86. package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +116 -80
  87. package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +7 -3
  88. package/dist/server/src/validators/repositories/comment.schema.d.ts +18 -3
  89. package/dist/server/src/validators/repositories/comment.validator.d.ts +400 -72
  90. package/dist/server/src/validators/repositories/reports.validator.d.ts +60 -18
  91. package/dist/server/src/validators/utils.d.ts +1 -1
  92. package/package.json +18 -11
  93. /package/dist/server/src/{@types-v5 → @types}/controllers.d.ts +0 -0
  94. /package/dist/server/src/{@types-v5 → @types}/index.d.ts +0 -0
  95. /package/dist/server/src/{@types-v5 → @types}/repositories.d.ts +0 -0
  96. /package/dist/server/src/{@types-v5 → @types}/routes.d.ts +0 -0
@@ -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$4p, g as ForwardRef$3V, h as Badge, i as IconButtonGroup$1, P as Portal$1, j as FocusTrap, k as ForwardRef$3$, l as ForwardRef$3v, m as Field, n as SingleSelect, o as SingleSelectOption, q as ForwardRef$4P, r as ForwardRef$2v, s as ForwardRef$f, t as ForwardRef$1R, u as Popover, v as ForwardRef$v, w as ForwardRef$4J, x as ForwardRef$1L, y as ForwardRef$45, 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$3r, Q as ForwardRef$1d, R as ForwardRef$R, U as Avatar, V as Loader, W as Link, X as ForwardRef$4V, Y as Grid, Z as Td, _ as SimpleMenu, $ as MenuItem } from "./index-h-TB6Qu2.mjs";
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 Loader, W as Link, X as ForwardRef$51, Y as Grid, Z as Td, _ as SimpleMenu, $ as MenuItem } from "./index-Bx2boY6h.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-BQERo8pN.mjs";
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-CIqMAf50.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";
@@ -373,7 +373,7 @@ const ApproveFlow = ({ id: id2, canModerate, queryKey }) => {
373
373
  {
374
374
  onClick: handleApproveClick,
375
375
  label: "Approve",
376
- children: /* @__PURE__ */ jsx(ForwardRef$4p, {})
376
+ children: /* @__PURE__ */ jsx(ForwardRef$4x, {})
377
377
  }
378
378
  ),
379
379
  /* @__PURE__ */ jsx(
@@ -381,7 +381,7 @@ const ApproveFlow = ({ id: id2, canModerate, queryKey }) => {
381
381
  {
382
382
  label: "Reject",
383
383
  onClick: handleRejectClick,
384
- children: /* @__PURE__ */ jsx(ForwardRef$3V, {})
384
+ children: /* @__PURE__ */ jsx(ForwardRef$3$, {})
385
385
  }
386
386
  )
387
387
  ] });
@@ -49673,7 +49673,7 @@ const EditorLayout = ({
49673
49673
  id: "components.Wysiwyg.collapse",
49674
49674
  defaultMessage: "Collapse"
49675
49675
  }) }),
49676
- /* @__PURE__ */ jsx(ForwardRef$3$, {})
49676
+ /* @__PURE__ */ jsx(ForwardRef$45, {})
49677
49677
  ] })
49678
49678
  }
49679
49679
  ),
@@ -50001,7 +50001,7 @@ const WysiwygFooter = ({ onToggleExpand }) => {
50001
50001
  id: "components.WysiwygBottomControls.fullscreen",
50002
50002
  defaultMessage: "Expand"
50003
50003
  }) }),
50004
- /* @__PURE__ */ jsx(ForwardRef$3v, {})
50004
+ /* @__PURE__ */ jsx(ForwardRef$3B, {})
50005
50005
  ] }) }) });
50006
50006
  };
50007
50007
  const WysiwygNav = ({
@@ -50050,7 +50050,7 @@ const WysiwygNav = ({
50050
50050
  }
50051
50051
  ) }),
50052
50052
  /* @__PURE__ */ jsxs(MainButtons, { children: [
50053
- /* @__PURE__ */ jsx(IconButton, { disabled: true, label: "Bold", name: "Bold", children: /* @__PURE__ */ jsx(ForwardRef$4P, {}) }),
50053
+ /* @__PURE__ */ jsx(IconButton, { disabled: true, label: "Bold", name: "Bold", children: /* @__PURE__ */ jsx(ForwardRef$4X, {}) }),
50054
50054
  /* @__PURE__ */ jsx(IconButton, { disabled: true, label: "Italic", name: "Italic", children: /* @__PURE__ */ jsx(ForwardRef$2v, {}) }),
50055
50055
  /* @__PURE__ */ jsx(IconButton, { disabled: true, label: "Underline", name: "Underline", children: /* @__PURE__ */ jsx(ForwardRef$f, {}) })
50056
50056
  ] }),
@@ -50091,7 +50091,7 @@ const WysiwygNav = ({
50091
50091
  }
50092
50092
  ) }),
50093
50093
  /* @__PURE__ */ jsxs(MainButtons, { children: [
50094
- /* @__PURE__ */ jsx(IconButton, { onClick: () => onActionClick("Bold", editorRef), label: "Bold", name: "Bold", children: /* @__PURE__ */ jsx(ForwardRef$4P, {}) }),
50094
+ /* @__PURE__ */ jsx(IconButton, { onClick: () => onActionClick("Bold", editorRef), label: "Bold", name: "Bold", children: /* @__PURE__ */ jsx(ForwardRef$4X, {}) }),
50095
50095
  /* @__PURE__ */ jsx(
50096
50096
  IconButton,
50097
50097
  {
@@ -50130,7 +50130,7 @@ const WysiwygNav = ({
50130
50130
  onClick: () => onActionClick("BulletList", editorRef, handleTogglePopover),
50131
50131
  label: "BulletList",
50132
50132
  name: "BulletList",
50133
- children: /* @__PURE__ */ jsx(ForwardRef$4J, {})
50133
+ children: /* @__PURE__ */ jsx(ForwardRef$4R, {})
50134
50134
  }
50135
50135
  ),
50136
50136
  /* @__PURE__ */ jsx(
@@ -50150,7 +50150,7 @@ const WysiwygNav = ({
50150
50150
  onClick: () => onActionClick("Code", editorRef, handleTogglePopover),
50151
50151
  label: "Code",
50152
50152
  name: "Code",
50153
- children: /* @__PURE__ */ jsx(ForwardRef$45, {})
50153
+ children: /* @__PURE__ */ jsx(ForwardRef$4d, {})
50154
50154
  }
50155
50155
  ),
50156
50156
  /* @__PURE__ */ jsx(
@@ -50502,7 +50502,7 @@ const ReportReviewTable = ({
50502
50502
  Button,
50503
50503
  {
50504
50504
  variant: "success",
50505
- startIcon: /* @__PURE__ */ jsx(ForwardRef$4p, {}),
50505
+ startIcon: /* @__PURE__ */ jsx(ForwardRef$4x, {}),
50506
50506
  onClick: onClickResolve(report.id),
50507
50507
  children: getMessage(
50508
50508
  "page.details.panel.discussion.warnings.reports.dialog.actions.resolve",
@@ -50618,7 +50618,7 @@ const ReviewFlow = ({
50618
50618
  {
50619
50619
  onClick: onClickResolveSelected,
50620
50620
  variant: "success",
50621
- startIcon: /* @__PURE__ */ jsx(ForwardRef$4p, {}),
50621
+ startIcon: /* @__PURE__ */ jsx(ForwardRef$4x, {}),
50622
50622
  disabled: blockButtonsDisabled,
50623
50623
  children: getMessage(
50624
50624
  {
@@ -50851,7 +50851,7 @@ const DiscussionThreadItemActions = ({ item, pinned, preview }) => {
50851
50851
  {
50852
50852
  onClick: handleDrillDownClick,
50853
50853
  style: blocked && !blockedThread ? { marginTop: "1px", marginRight: ".5rem" } : {},
50854
- children: /* @__PURE__ */ jsx(ForwardRef$3r, {})
50854
+ children: /* @__PURE__ */ jsx(ForwardRef$3x, {})
50855
50855
  }
50856
50856
  ) }),
50857
50857
  isThreadStartEnabled && /* @__PURE__ */ jsx(IconButtonGroup, { isSingle: true, withMargin: true, children: /* @__PURE__ */ jsx(
@@ -51087,7 +51087,7 @@ const DiscussionThread = ({ isReloading, level, selected }) => {
51087
51087
  Link,
51088
51088
  {
51089
51089
  href: rootThread.id,
51090
- startIcon: /* @__PURE__ */ jsx(ForwardRef$4V, {}),
51090
+ startIcon: /* @__PURE__ */ jsx(ForwardRef$51, {}),
51091
51091
  children: getMessage("page.details.panel.discussion.nav.back", "Go top")
51092
51092
  }
51093
51093
  )
@@ -51197,7 +51197,6 @@ const CommentRow = ({ item }) => {
51197
51197
  const {
51198
51198
  canAccessReports,
51199
51199
  canModerate,
51200
- // TODO
51201
51200
  canReviewReports
51202
51201
  } = usePermissions();
51203
51202
  const api = useAPI();
@@ -51212,6 +51211,12 @@ const CommentRow = ({ item }) => {
51212
51211
  evt.stopPropagation();
51213
51212
  navigate(id2.toString());
51214
51213
  };
51214
+ const contentTypeLink = useMemo(() => {
51215
+ const related = item.related;
51216
+ if (typeof related === "string") return null;
51217
+ const localeParam = related.locale ? `?plugins[i18n][locale]=${related.locale}` : "";
51218
+ return /* @__PURE__ */ jsx(Link, { href: `/admin/content-manager/collection-types/${related.uid}/${related.documentId}${localeParam}`, children: related.title });
51219
+ }, [item.related]);
51215
51220
  return /* @__PURE__ */ jsxs(Tr, { children: [
51216
51221
  /* @__PURE__ */ jsx(Td, { children: item.id }),
51217
51222
  /* @__PURE__ */ jsx(Td, { children: item.author.name }),
@@ -51223,7 +51228,7 @@ const CommentRow = ({ item }) => {
51223
51228
  },
51224
51229
  "#" + item.threadOf.id
51225
51230
  ) }) : "-" }),
51226
- /* @__PURE__ */ jsx(Td, { children: typeof item.related !== "string" && /* @__PURE__ */ jsx(Link, { href: `/admin/content-manager/collection-types/${item.related.uid}/${item.related.documentId}`, children: item.related.title }) }),
51231
+ /* @__PURE__ */ jsx(Td, { children: contentTypeLink }),
51227
51232
  /* @__PURE__ */ jsx(Td, { children: formatDate(item.updatedAt || item.createdAt, {
51228
51233
  dateStyle: "long",
51229
51234
  timeStyle: "short"
@@ -51251,7 +51256,7 @@ const CommentRow = ({ item }) => {
51251
51256
  {
51252
51257
  onClick: onClickDetails(item.id),
51253
51258
  label: "View",
51254
- children: /* @__PURE__ */ jsx(ForwardRef$3r, {})
51259
+ children: /* @__PURE__ */ jsx(ForwardRef$3x, {})
51255
51260
  }
51256
51261
  )
51257
51262
  ] }) }) })
@@ -51267,10 +51272,7 @@ const useCommentsAll = (queryParams) => {
51267
51272
  ...item,
51268
51273
  reports: lodashExports.orderBy(item.reports, ["resolved", "createdAt"], ["desc", "desc"])
51269
51274
  }))
51270
- })).catch((error2) => {
51271
- console.log("error", error2);
51272
- throw error2;
51273
- }),
51275
+ })),
51274
51276
  initialData: { result: [], pagination: { page: 0, pageSize: 0, pageCount: 0, total: 0 } }
51275
51277
  });
51276
51278
  };
@@ -51340,7 +51342,7 @@ const CommentReviewModal = ({ item }) => {
51340
51342
  Button,
51341
51343
  {
51342
51344
  variant: "tertiary",
51343
- startIcon: /* @__PURE__ */ jsx(ForwardRef$3r, {}),
51345
+ startIcon: /* @__PURE__ */ jsx(ForwardRef$3x, {}),
51344
51346
  children: getMessage(
51345
51347
  {
51346
51348
  id: "page.discover.table.cell.thread",
@@ -51466,7 +51468,7 @@ const ReportsActions = ({ item }) => {
51466
51468
  ActionButton,
51467
51469
  {
51468
51470
  isSingle: true,
51469
- startIcon: /* @__PURE__ */ jsx(ForwardRef$4p, {}),
51471
+ startIcon: /* @__PURE__ */ jsx(ForwardRef$4x, {}),
51470
51472
  onClick: onClickResolve,
51471
51473
  variant: "success",
51472
51474
  children: getMessage(
@@ -51490,7 +51492,6 @@ const ReportsTableRow = ({ item, isChecked, onSelectionChange }) => {
51490
51492
  const onCheckedChange = () => {
51491
51493
  onSelectionChange(item.id);
51492
51494
  };
51493
- console.log("isChecked", isChecked);
51494
51495
  return /* @__PURE__ */ jsxs(Tr, { children: [
51495
51496
  /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(CheckboxImpl, { checked: isChecked, onCheckedChange }) }),
51496
51497
  /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsxs(Typography, { textColor: "neutral800", fontWeight: "bold", children: [
@@ -51512,10 +51513,7 @@ const useReports = (queryParams) => {
51512
51513
  const api = useAPI();
51513
51514
  return useQuery({
51514
51515
  queryKey: api.reports.findAll.getKey(queryParams),
51515
- queryFn: () => api.reports.findAll.query(queryParams).then((res) => res).catch((error2) => {
51516
- console.log("error", error2);
51517
- throw error2;
51518
- }),
51516
+ queryFn: () => api.reports.findAll.query(queryParams).then((res) => res),
51519
51517
  initialData: { result: [], pagination: { page: 0, pageSize: 0, pageCount: 0, total: 0 } }
51520
51518
  });
51521
51519
  };
@@ -51576,7 +51574,7 @@ const Reports = ({ config: config2 }) => {
51576
51574
  {
51577
51575
  variant: "success",
51578
51576
  onClick: handleClickResolveSelected,
51579
- startIcon: /* @__PURE__ */ jsx(ForwardRef$4p, {}),
51577
+ startIcon: /* @__PURE__ */ jsx(ForwardRef$4x, {}),
51580
51578
  children: getMessage(
51581
51579
  {
51582
51580
  id: `page.details.panel.discussion.warnings.reports.dialog.actions.resolve.selected`,
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-fAgatqD0.js");
2
+ const index = require("../_chunks/index-B-ygLKrb.js");
3
3
  require("react");
4
4
  module.exports = index.index;
@@ -1,4 +1,4 @@
1
- import { ag } from "../_chunks/index-h-TB6Qu2.mjs";
1
+ import { ag } from "../_chunks/index-Bx2boY6h.mjs";
2
2
  import "react";
3
3
  export {
4
4
  ag as default
@@ -83,9 +83,9 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
83
83
  createdAt: string;
84
84
  updatedAt: string;
85
85
  publishedAt: string;
86
+ locale: string | null;
86
87
  name: string;
87
88
  description: string;
88
- locale: string | null;
89
89
  usersCount: number;
90
90
  }[]>;
91
91
  };
@@ -98,8 +98,8 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
98
98
  createdAt: string;
99
99
  updatedAt: string;
100
100
  publishedAt: string;
101
- blocked: boolean;
102
101
  locale: null;
102
+ blocked: boolean;
103
103
  firstname: string;
104
104
  lastname: string;
105
105
  username: string | null;
@@ -136,6 +136,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
136
136
  createdAt: string;
137
137
  updatedAt: string;
138
138
  publishedAt: string | null;
139
+ locale?: string | null | undefined;
139
140
  } & Record<string, unknown>;
140
141
  selected: {
141
142
  id: number;
@@ -151,21 +152,17 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
151
152
  author: {
152
153
  email: string;
153
154
  id: string | number;
154
- name: string;
155
- avatar: {
156
- url: string | null;
155
+ name?: string | undefined;
156
+ avatar?: {
157
+ url: string;
158
+ } | {
159
+ url: string;
157
160
  formats: {
158
161
  thumbnail: {
159
162
  url: string;
160
163
  } | null;
161
164
  };
162
- } | {
163
- email: string;
164
- url: string | null;
165
- id: string;
166
- name: string;
167
- avatar: string | null;
168
- } | null;
165
+ } | null | undefined;
169
166
  };
170
167
  related: string;
171
168
  reports?: {
@@ -193,21 +190,17 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
193
190
  author: {
194
191
  email: string;
195
192
  id: string | number;
196
- name: string;
197
- avatar: {
198
- url: string | null;
193
+ name?: string | undefined;
194
+ avatar?: {
195
+ url: string;
196
+ } | {
197
+ url: string;
199
198
  formats: {
200
199
  thumbnail: {
201
200
  url: string;
202
201
  } | null;
203
202
  };
204
- } | {
205
- email: string;
206
- url: string | null;
207
- id: string;
208
- name: string;
209
- avatar: string | null;
210
- } | null;
203
+ } | null | undefined;
211
204
  };
212
205
  related: string;
213
206
  reports?: {
@@ -234,21 +227,17 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
234
227
  author: {
235
228
  email: string;
236
229
  id: string | number;
237
- name: string;
238
- avatar: {
239
- url: string | null;
230
+ name?: string | undefined;
231
+ avatar?: {
232
+ url: string;
233
+ } | {
234
+ url: string;
240
235
  formats: {
241
236
  thumbnail: {
242
237
  url: string;
243
238
  } | null;
244
239
  };
245
- } | {
246
- email: string;
247
- url: string | null;
248
- id: string;
249
- name: string;
250
- avatar: string | null;
251
- } | null;
240
+ } | null | undefined;
252
241
  };
253
242
  related: string;
254
243
  documentId?: string | undefined;
@@ -281,21 +270,17 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
281
270
  author: {
282
271
  email: string;
283
272
  id: string | number;
284
- name: string;
285
- avatar: {
286
- url: string | null;
273
+ name?: string | undefined;
274
+ avatar?: {
275
+ url: string;
276
+ } | {
277
+ url: string;
287
278
  formats: {
288
279
  thumbnail: {
289
280
  url: string;
290
281
  } | null;
291
282
  };
292
- } | {
293
- email: string;
294
- url: string | null;
295
- id: string;
296
- name: string;
297
- avatar: string | null;
298
- } | null;
283
+ } | null | undefined;
299
284
  };
300
285
  reports?: {
301
286
  resolved: boolean;
@@ -358,21 +343,17 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
358
343
  author: {
359
344
  email: string;
360
345
  id: string | number;
361
- name: string;
362
- avatar: {
363
- url: string | null;
346
+ name?: string | undefined;
347
+ avatar?: {
348
+ url: string;
349
+ } | {
350
+ url: string;
364
351
  formats: {
365
352
  thumbnail: {
366
353
  url: string;
367
354
  } | null;
368
355
  };
369
- } | {
370
- email: string;
371
- url: string | null;
372
- id: string;
373
- name: string;
374
- avatar: string | null;
375
- } | null;
356
+ } | null | undefined;
376
357
  };
377
358
  reports?: {
378
359
  resolved: boolean;