strapi-plugin-comments 3.0.12 → 3.0.14

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.
@@ -1,9 +1,9 @@
1
1
  import { jsxs as w, jsx as m, Fragment as tt } from "react/jsx-runtime";
2
2
  import { useNotification as rt, Form as cd, Page as Fe, Layouts as Oe, useQueryParams as ld, SearchInput as _d, Pagination as Je } from "@strapi/strapi/admin";
3
3
  import { useNavigate as dd, useParams as Xd, Routes as Zd, Route as Ot, Navigate as Jd } from "react-router-dom";
4
- import { S as jd, a as eu, b as tu, c as nu, d as Oi, p as ni, l as oe, B as ie, T as K, D as $o, F as W, C as mt, e as Se, I as ee, f as ft, g as ru, h as au, i as Ut, j as Ae, P as ou, k as iu, m as su, n as cu, o as Ze, q as Wo, r as be, s as Ai, t as yi, u as Ii, v as Di, w as Jt, x as lu, y as _u, z as du, A as uu, E as pu, G as mu, M as re, H as ri, J as ai, K as nt, L as te, N as oi, O as gu, Q as Eu, R as ii, U as Su, V as fu, W as At, X as Ko, Y as bu, Z as Qo, _ as Tu, $ as jt, a0 as Ee, a1 as hu, a2 as yt } from "./index-CpBNh6Rx.mjs";
4
+ import { S as jd, a as eu, b as tu, c as nu, d as Oi, p as ni, l as oe, B as ie, T as K, D as $o, F as W, C as mt, e as Se, I as ee, f as ft, g as ru, h as au, i as Ut, j as Ae, P as ou, k as iu, m as su, n as cu, o as Ze, q as Wo, r as be, s as Ai, t as yi, u as Ii, v as Di, w as Jt, x as lu, y as _u, z as du, A as uu, E as pu, G as mu, M as re, H as ri, J as ai, K as nt, L as te, N as oi, O as gu, Q as Eu, R as ii, U as Su, V as fu, W as At, X as Ko, Y as bu, Z as Qo, _ as Tu, $ as jt, a0 as Ee, a1 as hu, a2 as yt } from "./index-B_ImEGPI.mjs";
5
5
  import { useQuery as gt, useQueryClient as ye, useMutation as ge } from "@tanstack/react-query";
6
- import { u as fe, C as J, R as Ce, g as x, a as bt, U as Ru, b as We, c as wi, d as Mi, e as Cu } from "./index-BpOlLizi.mjs";
6
+ import { u as fe, C as J, R as Ce, g as x, a as bt, U as Ru, b as We, c as wi, d as Mi, e as Cu } from "./index-CQD92qgD.mjs";
7
7
  import { create as Nu } from "zustand/react";
8
8
  import * as ue from "react";
9
9
  import { useCallback as Ft, useMemo as Bt, useContext as vu, useState as Ge, useRef as ud, Fragment as Ou } from "react";
@@ -1,10 +1,10 @@
1
1
  import { jsx as e, Fragment as O, jsxs as i } from "react/jsx-runtime";
2
- import { l as j, e as L, f as ae, B as p, a3 as re, F as q, T as m, $ as r, o as n, a4 as T, a5 as x, a6 as f, a7 as se, a8 as N, a9 as Q, aa as le } from "./index-CpBNh6Rx.mjs";
2
+ import { l as j, e as L, f as ae, B as p, a3 as re, F as q, T as m, $ as r, o as n, a4 as T, a5 as x, a6 as f, a7 as se, a8 as N, a9 as Q, aa as le } from "./index-B_ImEGPI.mjs";
3
3
  import { useTracking as ce, useNotification as de, Page as W, Layouts as D, Form as ge } from "@strapi/strapi/admin";
4
4
  import { useMutation as A, useQuery as M, useQueryClient as he, QueryClient as pe } from "@tanstack/react-query";
5
5
  import { useMemo as me, useRef as ue, useState as be, useCallback as $ } from "react";
6
6
  import fe from "styled-components";
7
- import { u as U, e as ye, a as Se, g as t, d as we } from "./index-BpOlLizi.mjs";
7
+ import { u as U, e as ye, a as Se, g as t, d as we } from "./index-CQD92qgD.mjs";
8
8
  const P = ({
9
9
  children: d,
10
10
  condition: l
@@ -38557,7 +38557,7 @@ const dte = "strapi-plugin-comments", gte = {
38557
38557
  id: `${Ri}.plugin.name`,
38558
38558
  defaultMessage: Qw
38559
38559
  },
38560
- Component: () => import("./index-DImm7PZM.mjs"),
38560
+ Component: () => import("./index-B7F5_QGF.mjs"),
38561
38561
  permissions: jw.access
38562
38562
  }), t.createSettingSection(
38563
38563
  {
@@ -38575,7 +38575,7 @@ const dte = "strapi-plugin-comments", gte = {
38575
38575
  },
38576
38576
  id: "comments",
38577
38577
  to: `/settings/${Ri}`,
38578
- Component: () => import("./index-AFEDE3U9.mjs"),
38578
+ Component: () => import("./index-BNUfJ5rK.mjs"),
38579
38579
  permissions: jw.settings
38580
38580
  }
38581
38581
  ]
@@ -2225,4 +2225,4 @@ ${k.css`
2225
2225
  &>* {
2226
2226
  width: 100%;
2227
2227
  }
2228
- `;const Vte="strapi-plugin-comments",Hte={displayName:"Comments"},Pte=576,Wte=({width:t=24,height:e=24})=>p.jsx("svg",{viewBox:`0 0 ${t} ${e}`,xmlns:"http://www.w3.org/2000/svg",height:`${e}px`,children:p.jsx("g",{style:{transform:`scale(${t/Pte})`},fill:"currentColor",children:p.jsx("path",{d:"M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"})})}),zte=p.jsx(Wte,{}),Ute=()=>zte,zt={render:t=>`plugin::comments.${t}`,comments:{read:"comments-read",moderate:"comments-moderate"},reports:{read:"reports-read",review:"reports-review"},settings:{read:"settings-read",change:"settings-change"}},ng={access:[{action:zt.render(zt.comments.read),subject:null},{action:zt.render(zt.reports.read),subject:null},{action:zt.render(zt.settings.read),subject:null}],moderate:[{action:zt.render(zt.comments.moderate),subject:null}],reports:[{action:zt.render(zt.reports.read),subject:null}],reportsReview:[{action:zt.render(zt.reports.review),subject:null}],settings:[{action:zt.render(zt.settings.read),subject:null}],settingsChange:[{action:zt.render(zt.settings.change),subject:null}]},Hr=Vte.replace(/^strapi-plugin-/i,""),Lw={en:()=>Promise.resolve().then(()=>require("./en-CNvRvaLL.js")),fr:()=>Promise.resolve().then(()=>require("./fr-Bh0tVDIQ.js")),"pt-BR":()=>Promise.resolve().then(()=>require("./pt-BR-CLvbSGaH.js")),tr:()=>Promise.resolve().then(()=>require("./tr-BX-_IBUR.js")),ru:()=>Promise.resolve().then(()=>require("./ru-eLIDfsd3.js")),"zh-Hans":()=>Promise.resolve().then(()=>require("./zh-Hans-DusBjCtd.js")),pl:()=>Promise.resolve().then(()=>require("./pl-DoXe0BV9.js"))},{displayName:Bw}=Hte,qte={register(t){t.addMenuLink({to:`/plugins/${Hr}`,badgeContent:1,icon:Ute,intlLabel:{id:`${Hr}.plugin.name`,defaultMessage:Bw},Component:()=>Promise.resolve().then(()=>require("./index-BJ-cmAR2.js")),permissions:ng.access}),t.createSettingSection({id:Hr,intlLabel:{id:`${Hr}.plugin.section`,defaultMessage:`${Bw} plugin`}},[{intlLabel:{id:`${Hr}.plugin.section.item`,defaultMessage:"Configuration"},id:"comments",to:`/settings/${Hr}`,Component:()=>Promise.resolve().then(()=>require("./index-C4akpgH_.js")),permissions:ng.settings}])},registerTrads:async function({locales:t=[]}){return Promise.all(t.map(async e=>e in Lw?Lw[e]().then(({default:r})=>({data:kv(C0(r),Hr),locale:e})):{data:kv(C0({}),Hr),locale:e}))}};exports.Accordion=lZ;exports.Alert=mZ;exports.Avatar=SZ;exports.Badge=Pm;exports.Box=be;exports.Button=ah;exports.CheckboxImpl=ef;exports.DesignSystemProvider=aJ;exports.Dialog=nJ;exports.Divider=V$;exports.Field=EQ;exports.Flex=ue;exports.FocusTrap=Fte;exports.ForwardRef$15=mN;exports.ForwardRef$1P=jB;exports.ForwardRef$1V=IB;exports.ForwardRef$1h=aN;exports.ForwardRef$1j=iN;exports.ForwardRef$1v=XB;exports.ForwardRef$2B=iB;exports.ForwardRef$2r=hB;exports.ForwardRef$3=E3;exports.ForwardRef$3D=yL;exports.ForwardRef$3H=mL;exports.ForwardRef$45=Vi;exports.ForwardRef$4F=A_;exports.ForwardRef$4Z=u_;exports.ForwardRef$4b=X_;exports.ForwardRef$4j=z_;exports.ForwardRef$53=o_;exports.ForwardRef$5b=JI;exports.ForwardRef$5n=UI;exports.ForwardRef$T=AN;exports.ForwardRef$f=ZN;exports.ForwardRef$j=KN;exports.ForwardRef$v=FN;exports.Grid=jte;exports.IconButton=ni;exports.IconButtonGroup=PZ;exports.Link=v$;exports.Loader=k$;exports.MenuItem=iQ;exports.Modal=fee;exports.MultiSelect=Uee;exports.MultiSelectOption=Y$;exports.Popover=See;exports.Portal$1=Gm;exports.SimpleMenu=y$;exports.SingleSelect=J1;exports.SingleSelectOption=eg;exports.SubNav=Kee;exports.SubNavHeader=Yee;exports.SubNavLink=Xee;exports.SubNavSection=tte;exports.SubNavSections=nte;exports.SwitchImpl=rte;exports.Table=pte;exports.Tbody=bte;exports.Td=Ste;exports.Th=$te;exports.Thead=xte;exports.Toggle=Ote;exports.TooltipImpl=qm;exports.Tr=Cte;exports.Typography=ke;exports.__rest=Us;exports.commonjsGlobal=cs;exports.darkTheme=yQ;exports.getAugmentedNamespace=_X;exports.getDefaultExportFromCjs=IX;exports.index=qte;exports.lightTheme=S$;exports.lodashExports=LX;exports.pluginId=Hr;exports.pluginPermissions=ng;
2228
+ `;const Vte="strapi-plugin-comments",Hte={displayName:"Comments"},Pte=576,Wte=({width:t=24,height:e=24})=>p.jsx("svg",{viewBox:`0 0 ${t} ${e}`,xmlns:"http://www.w3.org/2000/svg",height:`${e}px`,children:p.jsx("g",{style:{transform:`scale(${t/Pte})`},fill:"currentColor",children:p.jsx("path",{d:"M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"})})}),zte=p.jsx(Wte,{}),Ute=()=>zte,zt={render:t=>`plugin::comments.${t}`,comments:{read:"comments-read",moderate:"comments-moderate"},reports:{read:"reports-read",review:"reports-review"},settings:{read:"settings-read",change:"settings-change"}},ng={access:[{action:zt.render(zt.comments.read),subject:null},{action:zt.render(zt.reports.read),subject:null},{action:zt.render(zt.settings.read),subject:null}],moderate:[{action:zt.render(zt.comments.moderate),subject:null}],reports:[{action:zt.render(zt.reports.read),subject:null}],reportsReview:[{action:zt.render(zt.reports.review),subject:null}],settings:[{action:zt.render(zt.settings.read),subject:null}],settingsChange:[{action:zt.render(zt.settings.change),subject:null}]},Hr=Vte.replace(/^strapi-plugin-/i,""),Lw={en:()=>Promise.resolve().then(()=>require("./en-CNvRvaLL.js")),fr:()=>Promise.resolve().then(()=>require("./fr-Bh0tVDIQ.js")),"pt-BR":()=>Promise.resolve().then(()=>require("./pt-BR-CLvbSGaH.js")),tr:()=>Promise.resolve().then(()=>require("./tr-BX-_IBUR.js")),ru:()=>Promise.resolve().then(()=>require("./ru-eLIDfsd3.js")),"zh-Hans":()=>Promise.resolve().then(()=>require("./zh-Hans-DusBjCtd.js")),pl:()=>Promise.resolve().then(()=>require("./pl-DoXe0BV9.js"))},{displayName:Bw}=Hte,qte={register(t){t.addMenuLink({to:`/plugins/${Hr}`,badgeContent:1,icon:Ute,intlLabel:{id:`${Hr}.plugin.name`,defaultMessage:Bw},Component:()=>Promise.resolve().then(()=>require("./index-CXZL9d07.js")),permissions:ng.access}),t.createSettingSection({id:Hr,intlLabel:{id:`${Hr}.plugin.section`,defaultMessage:`${Bw} plugin`}},[{intlLabel:{id:`${Hr}.plugin.section.item`,defaultMessage:"Configuration"},id:"comments",to:`/settings/${Hr}`,Component:()=>Promise.resolve().then(()=>require("./index-Cm2k0S9q.js")),permissions:ng.settings}])},registerTrads:async function({locales:t=[]}){return Promise.all(t.map(async e=>e in Lw?Lw[e]().then(({default:r})=>({data:kv(C0(r),Hr),locale:e})):{data:kv(C0({}),Hr),locale:e}))}};exports.Accordion=lZ;exports.Alert=mZ;exports.Avatar=SZ;exports.Badge=Pm;exports.Box=be;exports.Button=ah;exports.CheckboxImpl=ef;exports.DesignSystemProvider=aJ;exports.Dialog=nJ;exports.Divider=V$;exports.Field=EQ;exports.Flex=ue;exports.FocusTrap=Fte;exports.ForwardRef$15=mN;exports.ForwardRef$1P=jB;exports.ForwardRef$1V=IB;exports.ForwardRef$1h=aN;exports.ForwardRef$1j=iN;exports.ForwardRef$1v=XB;exports.ForwardRef$2B=iB;exports.ForwardRef$2r=hB;exports.ForwardRef$3=E3;exports.ForwardRef$3D=yL;exports.ForwardRef$3H=mL;exports.ForwardRef$45=Vi;exports.ForwardRef$4F=A_;exports.ForwardRef$4Z=u_;exports.ForwardRef$4b=X_;exports.ForwardRef$4j=z_;exports.ForwardRef$53=o_;exports.ForwardRef$5b=JI;exports.ForwardRef$5n=UI;exports.ForwardRef$T=AN;exports.ForwardRef$f=ZN;exports.ForwardRef$j=KN;exports.ForwardRef$v=FN;exports.Grid=jte;exports.IconButton=ni;exports.IconButtonGroup=PZ;exports.Link=v$;exports.Loader=k$;exports.MenuItem=iQ;exports.Modal=fee;exports.MultiSelect=Uee;exports.MultiSelectOption=Y$;exports.Popover=See;exports.Portal$1=Gm;exports.SimpleMenu=y$;exports.SingleSelect=J1;exports.SingleSelectOption=eg;exports.SubNav=Kee;exports.SubNavHeader=Yee;exports.SubNavLink=Xee;exports.SubNavSection=tte;exports.SubNavSections=nte;exports.SwitchImpl=rte;exports.Table=pte;exports.Tbody=bte;exports.Td=Ste;exports.Th=$te;exports.Thead=xte;exports.Toggle=Ote;exports.TooltipImpl=qm;exports.Tr=Cte;exports.Typography=ke;exports.__rest=Us;exports.commonjsGlobal=cs;exports.darkTheme=yQ;exports.getAugmentedNamespace=_X;exports.getDefaultExportFromCjs=IX;exports.index=qte;exports.lightTheme=S$;exports.lodashExports=LX;exports.pluginId=Hr;exports.pluginPermissions=ng;