@strapi/plugin-users-permissions 5.0.0-rc.1 → 5.0.0-rc.10
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/components/FormModal/index.jsx +7 -1
- package/admin/src/components/Permissions/PermissionRow/SubCategory.jsx +1 -1
- package/admin/src/components/Policies/index.jsx +2 -0
- package/admin/src/components/UsersPermissions/index.jsx +9 -1
- package/admin/src/pages/AdvancedSettings/index.jsx +6 -1
- package/admin/src/pages/EmailTemplates/components/EmailForm.jsx +6 -1
- package/admin/src/pages/EmailTemplates/components/EmailTable.jsx +2 -2
- package/admin/src/pages/Providers/index.jsx +1 -1
- package/admin/src/pages/Roles/pages/CreatePage.jsx +2 -2
- package/admin/src/pages/Roles/pages/EditPage.jsx +2 -2
- package/admin/src/pages/Roles/pages/ListPage/components/TableBody.jsx +1 -1
- package/dist/_chunks/{index-Cz7MvAfK.mjs → index-BVR9u54q.mjs} +15 -6
- package/dist/_chunks/index-BVR9u54q.mjs.map +1 -0
- package/dist/_chunks/{index-koxBwffB.js → index-Bje4hsTa.js} +35 -21
- package/dist/_chunks/index-Bje4hsTa.js.map +1 -0
- package/dist/_chunks/{index-DzkSvFbj.mjs → index-DDL7WEVm.mjs} +23 -13
- package/dist/_chunks/index-DDL7WEVm.mjs.map +1 -0
- package/dist/_chunks/{index-D96sR0jc.mjs → index-DI5ggWiE.mjs} +20 -11
- package/dist/_chunks/{index-D96sR0jc.mjs.map → index-DI5ggWiE.mjs.map} +1 -1
- package/dist/_chunks/{index-DWXD_v0p.js → index-DLXmnT2f.js} +16 -7
- package/dist/_chunks/index-DLXmnT2f.js.map +1 -0
- package/dist/_chunks/{index-B-NW87wS.js → index-DUM7iOXV.js} +20 -11
- package/dist/_chunks/{index-B-NW87wS.js.map → index-DUM7iOXV.js.map} +1 -1
- package/dist/_chunks/{index-CepSm1g8.js → index-DbyIoFaF.js} +27 -17
- package/dist/_chunks/index-DbyIoFaF.js.map +1 -0
- package/dist/_chunks/{index-CKip12uF.mjs → index-DgYJDstH.mjs} +10 -10
- package/dist/_chunks/{index-CKip12uF.mjs.map → index-DgYJDstH.mjs.map} +1 -1
- package/dist/_chunks/{index-bWmIxmrB.js → index-DnoHZyNN.js} +10 -10
- package/dist/_chunks/{index-bWmIxmrB.js.map → index-DnoHZyNN.js.map} +1 -1
- package/dist/_chunks/{index-f6STHGSC-qR3QHvSP.js → index-VPYlZ0pt-B_CbEB2q.js} +5 -10
- package/dist/_chunks/{index-f6STHGSC-qR3QHvSP.js.map → index-VPYlZ0pt-B_CbEB2q.js.map} +1 -1
- package/dist/_chunks/{index-f6STHGSC-BHUgmsKx.mjs → index-VPYlZ0pt-CJ1KIk95.mjs} +5 -10
- package/dist/_chunks/{index-f6STHGSC-BHUgmsKx.mjs.map → index-VPYlZ0pt-CJ1KIk95.mjs.map} +1 -1
- package/dist/_chunks/{index-BM3Y3D1I.mjs → index-bzic_txM.mjs} +35 -21
- package/dist/_chunks/index-bzic_txM.mjs.map +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +6 -6
- package/server/bootstrap/users-permissions-actions.js +6 -0
- package/dist/_chunks/index-BM3Y3D1I.mjs.map +0 -1
- package/dist/_chunks/index-CepSm1g8.js.map +0 -1
- package/dist/_chunks/index-Cz7MvAfK.mjs.map +0 -1
- package/dist/_chunks/index-DWXD_v0p.js.map +0 -1
- package/dist/_chunks/index-DzkSvFbj.mjs.map +0 -1
- package/dist/_chunks/index-koxBwffB.js.map +0 -1
|
@@ -10401,7 +10401,7 @@ React.forwardRef(
|
|
|
10401
10401
|
{
|
|
10402
10402
|
disabled,
|
|
10403
10403
|
onChange: handleChange,
|
|
10404
|
-
initialValues,
|
|
10404
|
+
initialValues: initialValues.current,
|
|
10405
10405
|
modified,
|
|
10406
10406
|
addFieldRow,
|
|
10407
10407
|
moveFieldRow,
|
|
@@ -10705,7 +10705,6 @@ const EmailInput = forwardRef(
|
|
|
10705
10705
|
ref: composedRefs,
|
|
10706
10706
|
autoComplete: "email",
|
|
10707
10707
|
onChange: field.onChange,
|
|
10708
|
-
defaultValue: field.initialValue,
|
|
10709
10708
|
value: field.value,
|
|
10710
10709
|
...props,
|
|
10711
10710
|
type: "email"
|
|
@@ -10744,7 +10743,7 @@ const EnumerationInput = forwardRef(
|
|
|
10744
10743
|
}
|
|
10745
10744
|
);
|
|
10746
10745
|
const MemoizedEnumerationInput = memo(EnumerationInput);
|
|
10747
|
-
const JsonInput = forwardRef(
|
|
10746
|
+
const JsonInput = React.forwardRef(
|
|
10748
10747
|
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
10749
10748
|
const field = useField(name);
|
|
10750
10749
|
const fieldRef = useFocusInputField(name);
|
|
@@ -10755,7 +10754,7 @@ const JsonInput = forwardRef(
|
|
|
10755
10754
|
JSONInput,
|
|
10756
10755
|
{
|
|
10757
10756
|
ref: composedRefs,
|
|
10758
|
-
value: field.value,
|
|
10757
|
+
value: typeof field.value == "object" ? JSON.stringify(field.value, null, 2) : field.value,
|
|
10759
10758
|
onChange: (json) => {
|
|
10760
10759
|
const value = required && !json.length ? null : json;
|
|
10761
10760
|
field.onChange(name, value);
|
|
@@ -10770,7 +10769,7 @@ const JsonInput = forwardRef(
|
|
|
10770
10769
|
] });
|
|
10771
10770
|
}
|
|
10772
10771
|
);
|
|
10773
|
-
const MemoizedJsonInput = memo(JsonInput);
|
|
10772
|
+
const MemoizedJsonInput = React.memo(JsonInput);
|
|
10774
10773
|
const NumberInputImpl = forwardRef(
|
|
10775
10774
|
({ name, required, label, hint, labelAction, type, ...props }, ref) => {
|
|
10776
10775
|
const field = useField(name);
|
|
@@ -10782,7 +10781,6 @@ const NumberInputImpl = forwardRef(
|
|
|
10782
10781
|
NumberInput,
|
|
10783
10782
|
{
|
|
10784
10783
|
ref: composedRefs,
|
|
10785
|
-
defaultValue: field.initialValue,
|
|
10786
10784
|
onValueChange: (value) => {
|
|
10787
10785
|
field.onChange(name, value);
|
|
10788
10786
|
},
|
|
@@ -10831,7 +10829,6 @@ const PasswordInput = forwardRef(
|
|
|
10831
10829
|
}
|
|
10832
10830
|
),
|
|
10833
10831
|
onChange: field.onChange,
|
|
10834
|
-
defaultValue: field.initialValue,
|
|
10835
10832
|
value: field.value,
|
|
10836
10833
|
...props,
|
|
10837
10834
|
type: showPassword ? "text" : "password"
|
|
@@ -10854,7 +10851,6 @@ const StringInput = forwardRef(
|
|
|
10854
10851
|
TextInput,
|
|
10855
10852
|
{
|
|
10856
10853
|
ref: composedRefs,
|
|
10857
|
-
defaultValue: field.initialValue,
|
|
10858
10854
|
onChange: field.onChange,
|
|
10859
10855
|
value: field.value ?? "",
|
|
10860
10856
|
...props
|
|
@@ -10877,7 +10873,6 @@ const TextareaInput = forwardRef(
|
|
|
10877
10873
|
Textarea,
|
|
10878
10874
|
{
|
|
10879
10875
|
ref: composedRefs,
|
|
10880
|
-
defaultValue: field.initialValue,
|
|
10881
10876
|
onChange: field.onChange,
|
|
10882
10877
|
value: field.value ?? "",
|
|
10883
10878
|
...props
|
|
@@ -11486,4 +11481,4 @@ export {
|
|
|
11486
11481
|
Layouts as L,
|
|
11487
11482
|
useTracking as u
|
|
11488
11483
|
};
|
|
11489
|
-
//# sourceMappingURL=index-
|
|
11484
|
+
//# sourceMappingURL=index-VPYlZ0pt-CJ1KIk95.mjs.map
|