@strapi/plugin-users-permissions 5.0.0-alpha.2 → 5.0.0-alpha.4
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.
- package/admin/src/pages/AdvancedSettings/index.jsx +1 -1
- package/admin/src/pages/EmailTemplates/index.jsx +7 -2
- package/admin/src/pages/Providers/index.jsx +7 -2
- package/admin/src/pages/Roles/pages/ListPage/index.jsx +2 -2
- package/dist/_chunks/{EditViewPage-JFzIJClS-SluImrzz.mjs → EditViewPage-m8eq8b5B-cBfNGZPe.mjs} +34 -34
- package/dist/_chunks/EditViewPage-m8eq8b5B-cBfNGZPe.mjs.map +1 -0
- package/dist/_chunks/{EditViewPage-JFzIJClS-9jnyNYlZ.js → EditViewPage-m8eq8b5B-qJf03x_F.js} +212 -214
- package/dist/_chunks/EditViewPage-m8eq8b5B-qJf03x_F.js.map +1 -0
- package/dist/_chunks/{Helmet-kyJ1Zklj.mjs → Helmet-En-SEnNC.mjs} +3 -3
- package/dist/_chunks/{Helmet-kyJ1Zklj.mjs.map → Helmet-En-SEnNC.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-1VNVP9Rw-94jqnla4.js → ListViewPage-fcwyHB4o-PGOFJwgO.js} +112 -134
- package/dist/_chunks/ListViewPage-fcwyHB4o-PGOFJwgO.js.map +1 -0
- package/dist/_chunks/{ListViewPage-1VNVP9Rw-Ce-HkFp1.mjs → ListViewPage-fcwyHB4o-pXnDB8JN.mjs} +14 -37
- package/dist/_chunks/ListViewPage-fcwyHB4o-pXnDB8JN.mjs.map +1 -0
- package/dist/_chunks/{ReviewWorkflowsColumn-sPZxvFUd-Cd4JhTlj.mjs → ReviewWorkflowsColumn-BdkHPnDo-FKss4ScT.mjs} +2 -2
- package/dist/_chunks/ReviewWorkflowsColumn-BdkHPnDo-FKss4ScT.mjs.map +1 -0
- package/dist/_chunks/{ReviewWorkflowsColumn-sPZxvFUd-S2eFi9Dy.js → ReviewWorkflowsColumn-BdkHPnDo-WzfiGGDw.js} +5 -5
- package/dist/_chunks/ReviewWorkflowsColumn-BdkHPnDo-WzfiGGDw.js.map +1 -0
- package/dist/_chunks/{constants-0OGkpIzK-R5N7-OUr.mjs → constants-OqgYP6sX-CuWG8Tf6.mjs} +2 -2
- package/dist/_chunks/constants-OqgYP6sX-CuWG8Tf6.mjs.map +1 -0
- package/dist/_chunks/{constants-0OGkpIzK-f_M9PDKN.js → constants-OqgYP6sX-GMa0Al3c.js} +18 -18
- package/dist/_chunks/constants-OqgYP6sX-GMa0Al3c.js.map +1 -0
- package/dist/_chunks/{index-pDvppjQG.mjs → index-2l_GqZpn.mjs} +5 -6
- package/dist/_chunks/index-2l_GqZpn.mjs.map +1 -0
- package/dist/_chunks/{index-6X9XaLjS.js → index-4VuFIgcs.js} +5 -6
- package/dist/_chunks/index-4VuFIgcs.js.map +1 -0
- package/dist/_chunks/{index-av_iGW-0.mjs → index-56e4iv7D.mjs} +5 -6
- package/dist/_chunks/{index-av_iGW-0.mjs.map → index-56e4iv7D.mjs.map} +1 -1
- package/dist/_chunks/{index-RT4MW9Nr.js → index-88KLL-Er.js} +4 -5
- package/dist/_chunks/{index-RT4MW9Nr.js.map → index-88KLL-Er.js.map} +1 -1
- package/dist/_chunks/{index-whB2wk2v.mjs → index-JmhOjX0C.mjs} +4 -5
- package/dist/_chunks/index-JmhOjX0C.mjs.map +1 -0
- package/dist/_chunks/{index-GIVuHJgC-_q6V7_2B.mjs → index-Sd8uo7mE-B6VoGXRI.mjs} +14794 -14761
- package/dist/_chunks/index-Sd8uo7mE-B6VoGXRI.mjs.map +1 -0
- package/dist/_chunks/{index-GIVuHJgC-tj2acNbO.js → index-Sd8uo7mE-t07iYafJ.js} +14443 -14410
- package/dist/_chunks/index-Sd8uo7mE-t07iYafJ.js.map +1 -0
- package/dist/_chunks/{index-iaIILeuQ.mjs → index-bRul6pJT.mjs} +9 -10
- package/dist/_chunks/{index-iaIILeuQ.mjs.map → index-bRul6pJT.mjs.map} +1 -1
- package/dist/_chunks/{index-Q5NQ4RI9.js → index-pdD8Ki58.js} +9 -10
- package/dist/_chunks/{index-Q5NQ4RI9.js.map → index-pdD8Ki58.js.map} +1 -1
- package/dist/_chunks/{index-vvcDunmb.mjs → index-s6lRRSB-.mjs} +5 -6
- package/dist/_chunks/index-s6lRRSB-.mjs.map +1 -0
- package/dist/_chunks/{index-tFzYCM9l.js → index-vpLrCwat.js} +3 -4
- package/dist/_chunks/index-vpLrCwat.js.map +1 -0
- package/dist/_chunks/{index-heeE_h30.js → index-ytMb2WgP.js} +5 -6
- package/dist/_chunks/index-ytMb2WgP.js.map +1 -0
- package/dist/_chunks/{useSyncRbac-JNQibLFa-D0RzXrU4.mjs → useSyncRbac-Od0wrAnD-0D-br2LF.mjs} +12 -6
- package/dist/_chunks/useSyncRbac-Od0wrAnD-0D-br2LF.mjs.map +1 -0
- package/dist/_chunks/{useSyncRbac-JNQibLFa-G2N9BPgu.js → useSyncRbac-Od0wrAnD-U2WlPjap.js} +16 -10
- package/dist/_chunks/useSyncRbac-Od0wrAnD-U2WlPjap.js.map +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +5 -6
- package/dist/_chunks/EditViewPage-JFzIJClS-9jnyNYlZ.js.map +0 -1
- package/dist/_chunks/EditViewPage-JFzIJClS-SluImrzz.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-1VNVP9Rw-94jqnla4.js.map +0 -1
- package/dist/_chunks/ListViewPage-1VNVP9Rw-Ce-HkFp1.mjs.map +0 -1
- package/dist/_chunks/ReviewWorkflowsColumn-sPZxvFUd-Cd4JhTlj.mjs.map +0 -1
- package/dist/_chunks/ReviewWorkflowsColumn-sPZxvFUd-S2eFi9Dy.js.map +0 -1
- package/dist/_chunks/constants-0OGkpIzK-R5N7-OUr.mjs.map +0 -1
- package/dist/_chunks/constants-0OGkpIzK-f_M9PDKN.js.map +0 -1
- package/dist/_chunks/index-6X9XaLjS.js.map +0 -1
- package/dist/_chunks/index-GIVuHJgC-_q6V7_2B.mjs.map +0 -1
- package/dist/_chunks/index-GIVuHJgC-tj2acNbO.js.map +0 -1
- package/dist/_chunks/index-heeE_h30.js.map +0 -1
- package/dist/_chunks/index-pDvppjQG.mjs.map +0 -1
- package/dist/_chunks/index-tFzYCM9l.js.map +0 -1
- package/dist/_chunks/index-vvcDunmb.mjs.map +0 -1
- package/dist/_chunks/index-whB2wk2v.mjs.map +0 -1
- package/dist/_chunks/useSyncRbac-JNQibLFa-D0RzXrU4.mjs.map +0 -1
- package/dist/_chunks/useSyncRbac-JNQibLFa-G2N9BPgu.js.map +0 -1
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
Typography,
|
|
12
12
|
useNotifyAT,
|
|
13
13
|
} from '@strapi/design-system';
|
|
14
|
-
import { useRBAC } from '@strapi/helper-plugin';
|
|
15
14
|
import { Check } from '@strapi/icons';
|
|
16
15
|
import {
|
|
17
16
|
useAPIErrorHandler,
|
|
@@ -20,6 +19,7 @@ import {
|
|
|
20
19
|
InputRenderer,
|
|
21
20
|
useNotification,
|
|
22
21
|
useFetchClient,
|
|
22
|
+
useRBAC,
|
|
23
23
|
} from '@strapi/strapi/admin';
|
|
24
24
|
import { Helmet } from 'react-helmet';
|
|
25
25
|
import { useIntl } from 'react-intl';
|
|
@@ -2,8 +2,13 @@ import * as React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { useTracking } from '@strapi/admin/strapi-admin';
|
|
4
4
|
import { ContentLayout, HeaderLayout, useNotifyAT } from '@strapi/design-system';
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import {
|
|
6
|
+
Page,
|
|
7
|
+
useAPIErrorHandler,
|
|
8
|
+
useNotification,
|
|
9
|
+
useFetchClient,
|
|
10
|
+
useRBAC,
|
|
11
|
+
} from '@strapi/strapi/admin';
|
|
7
12
|
import { Helmet } from 'react-helmet';
|
|
8
13
|
import { useIntl } from 'react-intl';
|
|
9
14
|
import { useMutation, useQuery, useQueryClient } from 'react-query';
|
|
@@ -16,9 +16,14 @@ import {
|
|
|
16
16
|
VisuallyHidden,
|
|
17
17
|
useCollator,
|
|
18
18
|
} from '@strapi/design-system';
|
|
19
|
-
import { useRBAC } from '@strapi/helper-plugin';
|
|
20
19
|
import { Pencil } from '@strapi/icons';
|
|
21
|
-
import {
|
|
20
|
+
import {
|
|
21
|
+
Page,
|
|
22
|
+
useAPIErrorHandler,
|
|
23
|
+
useNotification,
|
|
24
|
+
useFetchClient,
|
|
25
|
+
useRBAC,
|
|
26
|
+
} from '@strapi/strapi/admin';
|
|
22
27
|
import upperFirst from 'lodash/upperFirst';
|
|
23
28
|
import { Helmet } from 'react-helmet';
|
|
24
29
|
import { useIntl } from 'react-intl';
|
|
@@ -17,7 +17,6 @@ import {
|
|
|
17
17
|
useFilter,
|
|
18
18
|
} from '@strapi/design-system';
|
|
19
19
|
import { LinkButton } from '@strapi/design-system/v2';
|
|
20
|
-
import { useRBAC } from '@strapi/helper-plugin';
|
|
21
20
|
import { Plus } from '@strapi/icons';
|
|
22
21
|
import {
|
|
23
22
|
ConfirmDialog,
|
|
@@ -28,6 +27,7 @@ import {
|
|
|
28
27
|
useNotification,
|
|
29
28
|
useQueryParams,
|
|
30
29
|
useFetchClient,
|
|
30
|
+
useRBAC,
|
|
31
31
|
} from '@strapi/strapi/admin';
|
|
32
32
|
import { Helmet } from 'react-helmet';
|
|
33
33
|
import { useIntl } from 'react-intl';
|
|
@@ -107,7 +107,7 @@ export const RolesListPage = () => {
|
|
|
107
107
|
} catch (err) {
|
|
108
108
|
toggleNotification({
|
|
109
109
|
type: 'danger',
|
|
110
|
-
message: formatMessage({ id: 'notification.error' }),
|
|
110
|
+
message: formatMessage({ id: 'notification.error', defaultMessage: 'An error occurred' }),
|
|
111
111
|
});
|
|
112
112
|
|
|
113
113
|
throw new Error(err);
|
package/dist/_chunks/{EditViewPage-JFzIJClS-SluImrzz.mjs → EditViewPage-m8eq8b5B-cBfNGZPe.mjs}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import React__default, { useContext, useCallback, useState, useRef, useReducer, useMemo, useEffect, createContext, useLayoutEffect, Component as Component$1, memo as memo$1, forwardRef, Children as Children$1, isValidElement, createElement, cloneElement, Fragment } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Flex, Icon, TextInput, Typography, BaseLink, Button, useComposedRefs, Popover, Field, FieldLabel, FieldInput, Box, IconButton, Divider, VisuallyHidden, FieldHint, FieldError, TextButton, BaseButton, FieldAction, IconButtonGroup, Portal, FocusTrap, InputWrapper, SingleSelect, SingleSelectOption, Tooltip, Grid as Grid$1, GridItem, KeyboardNavigable, Accordion, AccordionToggle, AccordionContent as AccordionContent$1, Main, TabGroup, Tabs, TabPanels, TabPanel, Tab as Tab$1 } from "@strapi/design-system";
|
|
5
|
+
import { g as getDefaultExportFromCjs, c as commonjsGlobal, H as HelmetExport } from "./Helmet-En-SEnNC.mjs";
|
|
6
6
|
import { useIntl } from "react-intl";
|
|
7
7
|
import { useLocation, useParams } from "react-router-dom";
|
|
8
8
|
import styled, { css, keyframes } from "styled-components";
|
|
9
|
-
import { _ as _extends, $ as $c512c27ab02ef895$export$50c7b4e9d9f19c1, r as require$$0$2, D as DIRECTIONS, g as getTranslation, a as useField, c as createContext$1, b as contentManagerApi, d as useDoc, e as useForm, f as useNotification, h as useAPIErrorHandler, i as useQueryParams, j as buildValidParams, k as useFocusInputField, l as useStrapiApp, m as $c512c27ab02ef895$export$fd42f52fd3ae1109, p as prefixFileUrlWithBackendUrl, n as DOCUMENT_META_FIELDS, o as useDocumentRBAC, I as InputRenderer$1, R as RelationsField, q as useDragAndDrop, s as ItemTypes, t as useComponent, C as ComponentProvider, v as generateNKeysBetween, w as useDocLayout, x as getIn, y as getEmptyImage, z as useDocumentLayout, P as Page, F as Form, A as createYupSchema, H as Header, B as Panels, E as Blocker, G as DocumentRBAC, S as SINGLE_TYPES } from "./index-
|
|
9
|
+
import { _ as _extends, $ as $c512c27ab02ef895$export$50c7b4e9d9f19c1, r as require$$0$2, D as DIRECTIONS, g as getTranslation, a as useField, c as createContext$1, b as contentManagerApi, d as useDoc, e as useForm, f as useNotification, h as useAPIErrorHandler, i as useQueryParams, j as buildValidParams, k as useFocusInputField, l as useStrapiApp, m as $c512c27ab02ef895$export$fd42f52fd3ae1109, p as prefixFileUrlWithBackendUrl, n as DOCUMENT_META_FIELDS, o as useDocumentRBAC, I as InputRenderer$1, R as RelationsField, q as useDragAndDrop, s as ItemTypes, t as useComponent, C as ComponentProvider, v as generateNKeysBetween, w as useDocLayout, x as getIn, y as getEmptyImage, z as useDocumentLayout, P as Page, F as Form, A as createYupSchema, H as Header, B as Panels, E as Blocker, G as DocumentRBAC, S as SINGLE_TYPES } from "./index-Sd8uo7mE-B6VoGXRI.mjs";
|
|
10
10
|
import * as Icons from "@strapi/icons";
|
|
11
11
|
import { EyeStriked, Expand, PlusCircle, CheckCircle, ExclamationMarkCircle, Loader, Refresh, Collapse, Bold, Italic, Underline, StrikeThrough, Code, More, BulletList, NumberList, Picture, Link as Link$1, Quote, HeadingOne, HeadingTwo, HeadingThree, HeadingFour, HeadingFive, HeadingSix, Paragraph, Drag, Trash, Plus } from "@strapi/icons";
|
|
12
12
|
import { createDraft, finishDraft, isDraft, produce } from "immer";
|
|
@@ -19,34 +19,7 @@ import require$$2 from "path";
|
|
|
19
19
|
import require$$1$1 from "url";
|
|
20
20
|
import require$$1 from "fs";
|
|
21
21
|
import require$$8 from "punycode";
|
|
22
|
-
import { u as useSyncRbac } from "./useSyncRbac-
|
|
23
|
-
const NotAllowedInput = ({ hint, label: label2, required, name: name2 }) => {
|
|
24
|
-
const { formatMessage } = useIntl();
|
|
25
|
-
const placeholder = formatMessage({
|
|
26
|
-
id: "components.NotAllowedInput.text",
|
|
27
|
-
defaultMessage: "No permissions to see this field"
|
|
28
|
-
});
|
|
29
|
-
return /* @__PURE__ */ jsx(
|
|
30
|
-
TextInput,
|
|
31
|
-
{
|
|
32
|
-
disabled: true,
|
|
33
|
-
label: label2,
|
|
34
|
-
id: name2,
|
|
35
|
-
hint,
|
|
36
|
-
name: name2,
|
|
37
|
-
placeholder,
|
|
38
|
-
required,
|
|
39
|
-
startAction: /* @__PURE__ */ jsx(StyledIcon, {}),
|
|
40
|
-
type: "text",
|
|
41
|
-
value: ""
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
};
|
|
45
|
-
const StyledIcon = styled(EyeStriked)`
|
|
46
|
-
& > path {
|
|
47
|
-
fill: ${({ theme }) => theme.colors.neutral600};
|
|
48
|
-
}
|
|
49
|
-
`;
|
|
22
|
+
import { u as useSyncRbac } from "./useSyncRbac-Od0wrAnD-0D-br2LF.mjs";
|
|
50
23
|
var isPlainObject$2 = {};
|
|
51
24
|
Object.defineProperty(isPlainObject$2, "__esModule", { value: true });
|
|
52
25
|
/*!
|
|
@@ -11287,6 +11260,33 @@ const COMPONENT_ICONS = {
|
|
|
11287
11260
|
wheelchair: Icons.Wheelchair,
|
|
11288
11261
|
write: Icons.Write
|
|
11289
11262
|
};
|
|
11263
|
+
const NotAllowedInput = ({ hint, label: label2, required, name: name2 }) => {
|
|
11264
|
+
const { formatMessage } = useIntl();
|
|
11265
|
+
const placeholder = formatMessage({
|
|
11266
|
+
id: "components.NotAllowedInput.text",
|
|
11267
|
+
defaultMessage: "No permissions to see this field"
|
|
11268
|
+
});
|
|
11269
|
+
return /* @__PURE__ */ jsx(
|
|
11270
|
+
TextInput,
|
|
11271
|
+
{
|
|
11272
|
+
disabled: true,
|
|
11273
|
+
label: label2,
|
|
11274
|
+
id: name2,
|
|
11275
|
+
hint,
|
|
11276
|
+
name: name2,
|
|
11277
|
+
placeholder,
|
|
11278
|
+
required,
|
|
11279
|
+
startAction: /* @__PURE__ */ jsx(StyledIcon, {}),
|
|
11280
|
+
type: "text",
|
|
11281
|
+
value: ""
|
|
11282
|
+
}
|
|
11283
|
+
);
|
|
11284
|
+
};
|
|
11285
|
+
const StyledIcon = styled(EyeStriked)`
|
|
11286
|
+
& > path {
|
|
11287
|
+
fill: ${({ theme }) => theme.colors.neutral600};
|
|
11288
|
+
}
|
|
11289
|
+
`;
|
|
11290
11290
|
function useDebounce(value, delay) {
|
|
11291
11291
|
const [debouncedValue, setDebouncedValue] = React.useState(value);
|
|
11292
11292
|
React.useEffect(() => {
|
|
@@ -80903,7 +80903,7 @@ const withImages = (editor) => {
|
|
|
80903
80903
|
return editor;
|
|
80904
80904
|
};
|
|
80905
80905
|
const withLinks = (editor) => {
|
|
80906
|
-
const { isInline, apply: apply2, insertText:
|
|
80906
|
+
const { isInline, apply: apply2, insertText: insertText3, insertData } = editor;
|
|
80907
80907
|
editor.isInline = (element) => {
|
|
80908
80908
|
return element.type === "link" ? true : isInline(element);
|
|
80909
80909
|
};
|
|
@@ -80939,7 +80939,7 @@ const withLinks = (editor) => {
|
|
|
80939
80939
|
return;
|
|
80940
80940
|
}
|
|
80941
80941
|
}
|
|
80942
|
-
|
|
80942
|
+
insertText3(text3);
|
|
80943
80943
|
};
|
|
80944
80944
|
editor.insertData = (data) => {
|
|
80945
80945
|
const pastedText = data.getData("text/plain");
|
|
@@ -84379,4 +84379,4 @@ export {
|
|
|
84379
84379
|
EditViewPage,
|
|
84380
84380
|
ProtectedEditViewPage
|
|
84381
84381
|
};
|
|
84382
|
-
//# sourceMappingURL=EditViewPage-
|
|
84382
|
+
//# sourceMappingURL=EditViewPage-m8eq8b5B-cBfNGZPe.mjs.map
|