strapi-plugin-oidc 1.2.2 → 1.2.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.
@@ -98,7 +98,7 @@ const index = {
98
98
  defaultMessage: "Configuration"
99
99
  },
100
100
  Component: async () => {
101
- return await import("./index-DDF1gGuH.mjs");
101
+ return await import("./index-DuJfeoFu.mjs");
102
102
  },
103
103
  permissions: [{ action: "plugin::strapi-plugin-oidc.read", subject: null }]
104
104
  }
@@ -183,6 +183,9 @@ const index = {
183
183
  if (localStorage.getItem(ENFORCE_CACHE_KEY) === "1") {
184
184
  patchHistory();
185
185
  }
186
+ if (isAuthRoute(window.location.pathname)) {
187
+ document.documentElement.style.visibility = "hidden";
188
+ }
186
189
  const checkEnforceOIDC = async () => {
187
190
  try {
188
191
  const response = await window.fetch("/strapi-plugin-oidc/settings/public");
@@ -7,7 +7,7 @@ const react = require("react");
7
7
  const designSystem = require("@strapi/design-system");
8
8
  const icons = require("@strapi/icons");
9
9
  const reactIntl = require("react-intl");
10
- const index = require("./index-C5Zb3Oi6.js");
10
+ const index = require("./index-ENl8_IZn.js");
11
11
  const styled = require("styled-components");
12
12
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
13
13
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
@@ -5,7 +5,7 @@ import { useState, useCallback, useEffect, memo } from "react";
5
5
  import { Typography, Flex, Box, MultiSelect, MultiSelectOption, Field, Button, Divider, Thead, Tr, Th, Tbody, Td, Dialog, IconButton, Pagination, PreviousLink, PageLink, NextLink, Table, Alert, TextInput } from "@strapi/design-system";
6
6
  import { Plus, Trash, WarningCircle } from "@strapi/icons";
7
7
  import { useIntl } from "react-intl";
8
- import { e as en, p as pluginId } from "./index-CyqfIFcE.mjs";
8
+ import { e as en, p as pluginId } from "./index-CZ_FdaEz.mjs";
9
9
  import styled from "styled-components";
10
10
  function getTrad(id) {
11
11
  const pluginIdWithId = `${pluginId}.${id}`;
@@ -99,7 +99,7 @@ const index = {
99
99
  defaultMessage: "Configuration"
100
100
  },
101
101
  Component: async () => {
102
- return await Promise.resolve().then(() => require("./index-DdOqXIiR.js"));
102
+ return await Promise.resolve().then(() => require("./index-DZwncy7E.js"));
103
103
  },
104
104
  permissions: [{ action: "plugin::strapi-plugin-oidc.read", subject: null }]
105
105
  }
@@ -184,6 +184,9 @@ const index = {
184
184
  if (localStorage.getItem(ENFORCE_CACHE_KEY) === "1") {
185
185
  patchHistory();
186
186
  }
187
+ if (isAuthRoute(window.location.pathname)) {
188
+ document.documentElement.style.visibility = "hidden";
189
+ }
187
190
  const checkEnforceOIDC = async () => {
188
191
  try {
189
192
  const response = await window.fetch("/strapi-plugin-oidc/settings/public");
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const index = require("./index-C5Zb3Oi6.js");
3
+ const index = require("./index-ENl8_IZn.js");
4
4
  exports.default = index.index;
@@ -1,4 +1,4 @@
1
- import { i } from "./index-CyqfIFcE.mjs";
1
+ import { i } from "./index-CZ_FdaEz.mjs";
2
2
  export {
3
3
  i as default
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-oidc",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "A Strapi plugin that provides OpenID Connect (OIDC) authentication functionality for the Strapi Admin Panel.",
5
5
  "strapi": {
6
6
  "displayName": "OIDC Plugin",