strapi-identity 0.0.1-debug.2 → 0.0.1-debug.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.
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
3
  import { W as WarningAlert } from "./WarningAlert-VU011LVF.mjs";
4
4
  import { Box, Flex, Typography, Grid, Button } from "@strapi/design-system";
5
- import { g as getTranslation } from "./index-Ce9C8fDo.mjs";
5
+ import { g as getTranslation } from "./index-BvKdbk8r.mjs";
6
6
  import { g as getToken } from "./tokenHelpers-DagDzpso.mjs";
7
7
  import { useIntl } from "react-intl";
8
8
  const AdminReset = ({ id }) => {
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const WarningAlert = require("./WarningAlert-DFE5euMk.js");
6
6
  const designSystem = require("@strapi/design-system");
7
- const index = require("./index-rKL69j4I.js");
7
+ const index = require("./index-hUfuPvh6.js");
8
8
  const tokenHelpers = require("./tokenHelpers-jtoRu0q5.js");
9
9
  const reactIntl = require("react-intl");
10
10
  const AdminReset = ({ id }) => {
@@ -4,13 +4,12 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const designSystem = require("@strapi/design-system");
6
6
  const styled = require("styled-components");
7
- const index = require("./index-rKL69j4I.js");
8
- const QRCode = require("react-qr-code");
7
+ const index = require("./index-hUfuPvh6.js");
8
+ const qrcode_react = require("qrcode.react");
9
9
  const reactIntl = require("react-intl");
10
10
  const tokenHelpers = require("./tokenHelpers-jtoRu0q5.js");
11
11
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
12
12
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
13
- const QRCode__default = /* @__PURE__ */ _interopDefault(QRCode);
14
13
  function ConfirmModal({
15
14
  open,
16
15
  onOpenChange,
@@ -41,7 +40,7 @@ function ConfirmModal({
41
40
  id: index.getTranslation("profile.scan_qr"),
42
41
  defaultMessage: "You will need an authenticator app to scan the QR code below."
43
42
  }) }),
44
- qrCodeUri && /* @__PURE__ */ jsxRuntime.jsx(QRCode__default.default, { value: qrCodeUri }),
43
+ qrCodeUri && /* @__PURE__ */ jsxRuntime.jsx(qrcode_react.QRCodeCanvas, { value: qrCodeUri, size: 256 }),
45
44
  secret && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", children: secret || "" })
46
45
  ] }),
47
46
  /* @__PURE__ */ jsxRuntime.jsx(Rule, {}),
@@ -2,8 +2,8 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
3
  import { Modal, Flex, Typography, Grid, Button, TextInput, Box, Field, Toggle } from "@strapi/design-system";
4
4
  import styled from "styled-components";
5
- import { g as getTranslation, I as InputOTP, a as InputOTPGroup, b as InputOTPSlot, c as InputOTPSeparator } from "./index-Ce9C8fDo.mjs";
6
- import QRCode from "react-qr-code";
5
+ import { g as getTranslation, I as InputOTP, a as InputOTPGroup, b as InputOTPSlot, c as InputOTPSeparator } from "./index-BvKdbk8r.mjs";
6
+ import { QRCodeCanvas } from "qrcode.react";
7
7
  import { useIntl } from "react-intl";
8
8
  import { g as getToken } from "./tokenHelpers-DagDzpso.mjs";
9
9
  function ConfirmModal({
@@ -36,7 +36,7 @@ function ConfirmModal({
36
36
  id: getTranslation("profile.scan_qr"),
37
37
  defaultMessage: "You will need an authenticator app to scan the QR code below."
38
38
  }) }),
39
- qrCodeUri && /* @__PURE__ */ jsx(QRCode, { value: qrCodeUri }),
39
+ qrCodeUri && /* @__PURE__ */ jsx(QRCodeCanvas, { value: qrCodeUri, size: 256 }),
40
40
  secret && /* @__PURE__ */ jsx(Typography, { variant: "pi", children: secret || "" })
41
41
  ] }),
42
42
  /* @__PURE__ */ jsx(Rule, {}),
@@ -4,7 +4,7 @@ import { W as WarningAlert } from "./WarningAlert-VU011LVF.mjs";
4
4
  import { useNotification, Page, Layouts } from "@strapi/strapi/admin";
5
5
  import { Button, Flex, Typography, Grid, Field, Toggle, TextInput } from "@strapi/design-system";
6
6
  import { Check } from "@strapi/icons";
7
- import { g as getTranslation } from "./index-Ce9C8fDo.mjs";
7
+ import { g as getTranslation } from "./index-BvKdbk8r.mjs";
8
8
  import { g as getToken } from "./tokenHelpers-DagDzpso.mjs";
9
9
  import { useIntl } from "react-intl";
10
10
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
@@ -6,7 +6,7 @@ const WarningAlert = require("./WarningAlert-DFE5euMk.js");
6
6
  const admin = require("@strapi/strapi/admin");
7
7
  const designSystem = require("@strapi/design-system");
8
8
  const icons = require("@strapi/icons");
9
- const index = require("./index-rKL69j4I.js");
9
+ const index = require("./index-hUfuPvh6.js");
10
10
  const tokenHelpers = require("./tokenHelpers-jtoRu0q5.js");
11
11
  const reactIntl = require("react-intl");
12
12
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
@@ -1371,7 +1371,7 @@ const plugin = {
1371
1371
  },
1372
1372
  id: "strapi-identity-settings",
1373
1373
  to: `/settings/${PLUGIN_ID}`,
1374
- Component: async () => import("./SettingsPage-DO9YYfFZ.mjs"),
1374
+ Component: async () => import("./SettingsPage-B_NnQtcX.mjs"),
1375
1375
  permissions: [
1376
1376
  { action: "plugin::strapi-identity.settings.read" },
1377
1377
  { action: "plugin::strapi-identity.settings.read" }
@@ -1383,13 +1383,13 @@ const plugin = {
1383
1383
  id: "profile-toggle",
1384
1384
  route: "/admin/me",
1385
1385
  selector: '#main-content form[method="put"] > :nth-child(2) > div > div > div:nth-child(2)',
1386
- Component: async () => import("./ProfileToggle-B__vEKh9.mjs")
1386
+ Component: async () => import("./ProfileToggle-CEFuZ3yP.mjs")
1387
1387
  });
1388
1388
  injections.registerRoute({
1389
1389
  id: "admin-reset",
1390
1390
  route: "/admin/settings/users/:id",
1391
1391
  selector: '#main-content form[method="put"] > :nth-child(2) > div > div:nth-child(2)',
1392
- Component: async () => import("./AdminReset-BZD-Bxhe.mjs")
1392
+ Component: async () => import("./AdminReset-BZV-zGKx.mjs")
1393
1393
  });
1394
1394
  InjectVerify(app);
1395
1395
  },
@@ -1391,7 +1391,7 @@ const plugin = {
1391
1391
  },
1392
1392
  id: "strapi-identity-settings",
1393
1393
  to: `/settings/${PLUGIN_ID}`,
1394
- Component: async () => Promise.resolve().then(() => require("./SettingsPage-C6S86gjO.js")),
1394
+ Component: async () => Promise.resolve().then(() => require("./SettingsPage-CQ3rVHCt.js")),
1395
1395
  permissions: [
1396
1396
  { action: "plugin::strapi-identity.settings.read" },
1397
1397
  { action: "plugin::strapi-identity.settings.read" }
@@ -1403,13 +1403,13 @@ const plugin = {
1403
1403
  id: "profile-toggle",
1404
1404
  route: "/admin/me",
1405
1405
  selector: '#main-content form[method="put"] > :nth-child(2) > div > div > div:nth-child(2)',
1406
- Component: async () => Promise.resolve().then(() => require("./ProfileToggle-BDyQZcM8.js"))
1406
+ Component: async () => Promise.resolve().then(() => require("./ProfileToggle-B3YU4UtR.js"))
1407
1407
  });
1408
1408
  injections.registerRoute({
1409
1409
  id: "admin-reset",
1410
1410
  route: "/admin/settings/users/:id",
1411
1411
  selector: '#main-content form[method="put"] > :nth-child(2) > div > div:nth-child(2)',
1412
- Component: async () => Promise.resolve().then(() => require("./AdminReset-CkjWYuZC.js"))
1412
+ Component: async () => Promise.resolve().then(() => require("./AdminReset-CA0e8mrS.js"))
1413
1413
  });
1414
1414
  InjectVerify(app);
1415
1415
  },
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-rKL69j4I.js");
2
+ const index = require("../_chunks/index-hUfuPvh6.js");
3
3
  require("strapi-admin-portal");
4
4
  module.exports = index.plugin;
@@ -1,4 +1,4 @@
1
- import { p } from "../_chunks/index-Ce9C8fDo.mjs";
1
+ import { p } from "../_chunks/index-BvKdbk8r.mjs";
2
2
  import "strapi-admin-portal";
3
3
  export {
4
4
  p as default
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.1-debug.2",
2
+ "version": "0.0.1-debug.3",
3
3
  "keywords": [
4
4
  "strapi",
5
5
  "plugin",
@@ -39,7 +39,7 @@
39
39
  "dependencies": {
40
40
  "input-otp": "^1.4.2",
41
41
  "otpauth": "^9.5.0",
42
- "react-qr-code": "^2.0.18",
42
+ "qrcode.react": "^4.2.0",
43
43
  "strapi-admin-portal": "^0.0.3"
44
44
  },
45
45
  "devDependencies": {