strapi-plugin-magic-sessionmanager 4.4.7 → 4.5.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.
@@ -433,6 +433,7 @@ const prefixPluginTranslations = (data, pluginId2) => {
433
433
  const name = pluginPkg.strapi.name;
434
434
  const index = {
435
435
  register(app) {
436
+ const pluginPermissions = [{ action: `plugin::${pluginId}.access`, subject: null }];
436
437
  app.addMenuLink({
437
438
  to: `plugins/${pluginId}`,
438
439
  icon: PluginIcon,
@@ -440,7 +441,8 @@ const index = {
440
441
  id: `${pluginId}.plugin.name`,
441
442
  defaultMessage: pluginPkg.strapi.displayName
442
443
  },
443
- Component: () => import("./App-BkFz8R3I.mjs")
444
+ Component: () => import("./App-LfsjcXXp.mjs"),
445
+ permissions: pluginPermissions
444
446
  });
445
447
  app.createSettingSection(
446
448
  {
@@ -456,7 +458,8 @@ const index = {
456
458
  },
457
459
  id: "upgrade",
458
460
  to: `${pluginId}/upgrade`,
459
- Component: () => import("./UpgradePage-2mV2iqDM.mjs")
461
+ Component: () => import("./UpgradePage-TBx1l2mQ.mjs"),
462
+ permissions: pluginPermissions
460
463
  },
461
464
  {
462
465
  intlLabel: {
@@ -465,7 +468,8 @@ const index = {
465
468
  },
466
469
  id: "general",
467
470
  to: `${pluginId}/general`,
468
- Component: () => import("./Settings-BfKDErt5.mjs")
471
+ Component: () => import("./Settings-Bz3lPBJ6.mjs"),
472
+ permissions: pluginPermissions
469
473
  },
470
474
  {
471
475
  intlLabel: {
@@ -474,7 +478,8 @@ const index = {
474
478
  },
475
479
  id: "analytics",
476
480
  to: `${pluginId}/analytics`,
477
- Component: () => import("./Analytics-CFlATYIp.mjs")
481
+ Component: () => import("./Analytics-DmlZwyVu.mjs"),
482
+ permissions: pluginPermissions
478
483
  },
479
484
  {
480
485
  intlLabel: {
@@ -483,7 +488,8 @@ const index = {
483
488
  },
484
489
  id: "license",
485
490
  to: `${pluginId}/license`,
486
- Component: () => import("./License-BnbIePhc.mjs")
491
+ Component: () => import("./License-OToijT0s.mjs"),
492
+ permissions: pluginPermissions
487
493
  }
488
494
  ]
489
495
  );
@@ -501,7 +507,7 @@ const index = {
501
507
  defaultMessage: "Online Users"
502
508
  },
503
509
  component: async () => {
504
- const component = await import("./OnlineUsersWidget-eBwttUiU.mjs");
510
+ const component = await import("./OnlineUsersWidget-Fpc0aH2z.mjs");
505
511
  return component.default;
506
512
  },
507
513
  id: "online-users-widget",
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const react = require("react");
3
3
  const admin = require("@strapi/strapi/admin");
4
- const index = require("./index-BEh2DizI.js");
4
+ const index = require("./index-CKrO7KSQ.js");
5
5
  const useLicense = () => {
6
6
  const { get } = admin.useFetchClient();
7
7
  const [isPremium, setIsPremium] = react.useState(false);
@@ -1,6 +1,6 @@
1
1
  import { useState, useEffect } from "react";
2
2
  import { useFetchClient } from "@strapi/strapi/admin";
3
- import { a as pluginId } from "./index-B0wQeSSu.mjs";
3
+ import { a as pluginId } from "./index-DuVZXuJh.mjs";
4
4
  const useLicense = () => {
5
5
  const { get } = useFetchClient();
6
6
  const [isPremium, setIsPremium] = useState(false);
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-BEh2DizI.js");
2
+ const index = require("../_chunks/index-CKrO7KSQ.js");
3
3
  module.exports = index.index;
@@ -1,4 +1,4 @@
1
- import { i } from "../_chunks/index-B0wQeSSu.mjs";
1
+ import { i } from "../_chunks/index-DuVZXuJh.mjs";
2
2
  export {
3
3
  i as default
4
4
  };