strapi-plugin-comments 3.2.0 → 3.2.2

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.
@@ -76,7 +76,7 @@ const f = "strapi-plugin-comments", $ = {
76
76
  id: `${s}.plugin.name`,
77
77
  defaultMessage: d
78
78
  },
79
- Component: () => import("./index-rxGUTZN1.mjs"),
79
+ Component: () => import("./index-BXQcm9IU.mjs"),
80
80
  permissions: l.access
81
81
  }), e.createSettingSection(
82
82
  {
@@ -94,7 +94,7 @@ const f = "strapi-plugin-comments", $ = {
94
94
  },
95
95
  id: "comments",
96
96
  to: `/settings/${s}`,
97
- Component: () => import("./index-Bu69cWq9.mjs"),
97
+ Component: () => import("./index-CzeSZ5qw.mjs"),
98
98
  permissions: l.settings
99
99
  }
100
100
  ]
@@ -2,4 +2,4 @@
2
2
  &>* {
3
3
  width: 100%;
4
4
  }
5
- `;const h="strapi-plugin-comments",v={displayName:"Comments"},f=576,q=({width:e=24,height:r=24})=>o.jsx("svg",{viewBox:`0 0 ${e} ${r}`,xmlns:"http://www.w3.org/2000/svg",height:`${r}px`,children:o.jsx("g",{style:{transform:`scale(${e/f})`},fill:"currentColor",children:o.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"})})}),P=o.jsx(q,{}),$=()=>P,t={render:e=>`plugin::comments.${e}`,comments:{read:"comments-read",moderate:"comments-moderate"},reports:{read:"reports-read",review:"reports-review"},settings:{read:"settings-read",change:"settings-change"}},a={access:[{action:t.render(t.comments.read),subject:null},{action:t.render(t.reports.read),subject:null},{action:t.render(t.settings.read),subject:null}],moderate:[{action:t.render(t.comments.moderate),subject:null}],reports:[{action:t.render(t.reports.read),subject:null}],reportsReview:[{action:t.render(t.reports.review),subject:null}],settings:[{action:t.render(t.settings.read),subject:null}],settingsChange:[{action:t.render(t.settings.change),subject:null}]},s=h.replace(/^strapi-plugin-/i,""),d={en:()=>Promise.resolve().then(()=>require("./en-nurIIakL.js")),fr:()=>Promise.resolve().then(()=>require("./fr-JAoXWyAN.js")),"pt-BR":()=>Promise.resolve().then(()=>require("./pt-BR-BXuFBSgm.js")),tr:()=>Promise.resolve().then(()=>require("./tr-B2Tw9kcB.js")),ru:()=>Promise.resolve().then(()=>require("./ru-B7jFc-n7.js")),"zh-Hans":()=>Promise.resolve().then(()=>require("./zh-Hans-Cp3JcN8q.js")),pl:()=>Promise.resolve().then(()=>require("./pl-DUaDM2d3.js"))},{displayName:m}=v,b={register(e){e.addMenuLink({to:`/plugins/${s}`,badgeContent:1,icon:$,intlLabel:{id:`${s}.plugin.name`,defaultMessage:m},Component:()=>Promise.resolve().then(()=>require("./index-DV3FvCxv.js")),permissions:a.access}),e.createSettingSection({id:s,intlLabel:{id:`${s}.plugin.section`,defaultMessage:`${m} plugin`}},[{intlLabel:{id:`${s}.plugin.section.item`,defaultMessage:"Configuration"},id:"comments",to:`/settings/${s}`,Component:()=>Promise.resolve().then(()=>require("./index-5LPolIUr.js")),permissions:a.settings}])},registerTrads:async function({locales:e=[]}){return Promise.all(e.map(async r=>r in d?d[r]().then(({default:n})=>({data:u(c(n),s),locale:r})):{data:u(c({}),s),locale:r}))}};exports.index=b;exports.pluginId=s;exports.pluginPermissions=a;
5
+ `;const h="strapi-plugin-comments",v={displayName:"Comments"},f=576,q=({width:e=24,height:r=24})=>o.jsx("svg",{viewBox:`0 0 ${e} ${r}`,xmlns:"http://www.w3.org/2000/svg",height:`${r}px`,children:o.jsx("g",{style:{transform:`scale(${e/f})`},fill:"currentColor",children:o.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"})})}),P=o.jsx(q,{}),$=()=>P,t={render:e=>`plugin::comments.${e}`,comments:{read:"comments-read",moderate:"comments-moderate"},reports:{read:"reports-read",review:"reports-review"},settings:{read:"settings-read",change:"settings-change"}},a={access:[{action:t.render(t.comments.read),subject:null},{action:t.render(t.reports.read),subject:null},{action:t.render(t.settings.read),subject:null}],moderate:[{action:t.render(t.comments.moderate),subject:null}],reports:[{action:t.render(t.reports.read),subject:null}],reportsReview:[{action:t.render(t.reports.review),subject:null}],settings:[{action:t.render(t.settings.read),subject:null}],settingsChange:[{action:t.render(t.settings.change),subject:null}]},s=h.replace(/^strapi-plugin-/i,""),d={en:()=>Promise.resolve().then(()=>require("./en-nurIIakL.js")),fr:()=>Promise.resolve().then(()=>require("./fr-JAoXWyAN.js")),"pt-BR":()=>Promise.resolve().then(()=>require("./pt-BR-BXuFBSgm.js")),tr:()=>Promise.resolve().then(()=>require("./tr-B2Tw9kcB.js")),ru:()=>Promise.resolve().then(()=>require("./ru-B7jFc-n7.js")),"zh-Hans":()=>Promise.resolve().then(()=>require("./zh-Hans-Cp3JcN8q.js")),pl:()=>Promise.resolve().then(()=>require("./pl-DUaDM2d3.js"))},{displayName:m}=v,b={register(e){e.addMenuLink({to:`/plugins/${s}`,badgeContent:1,icon:$,intlLabel:{id:`${s}.plugin.name`,defaultMessage:m},Component:()=>Promise.resolve().then(()=>require("./index-D_8HT5__.js")),permissions:a.access}),e.createSettingSection({id:s,intlLabel:{id:`${s}.plugin.section`,defaultMessage:`${m} plugin`}},[{intlLabel:{id:`${s}.plugin.section.item`,defaultMessage:"Configuration"},id:"comments",to:`/settings/${s}`,Component:()=>Promise.resolve().then(()=>require("./index-C4g76XDn.js")),permissions:a.settings}])},registerTrads:async function({locales:e=[]}){return Promise.all(e.map(async r=>r in d?d[r]().then(({default:n})=>({data:u(c(n),s),locale:r})):{data:u(c({}),s),locale:r}))}};exports.index=b;exports.pluginId=s;exports.pluginPermissions=a;