@strapi/plugin-users-permissions 5.0.0-rc.0 → 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.
Files changed (49) hide show
  1. package/admin/src/components/FormModal/index.jsx +7 -1
  2. package/admin/src/components/Permissions/PermissionRow/SubCategory.jsx +1 -1
  3. package/admin/src/components/Policies/index.jsx +2 -0
  4. package/admin/src/components/UsersPermissions/index.jsx +9 -1
  5. package/admin/src/pages/AdvancedSettings/index.jsx +6 -1
  6. package/admin/src/pages/EmailTemplates/components/EmailForm.jsx +6 -1
  7. package/admin/src/pages/EmailTemplates/components/EmailTable.jsx +2 -2
  8. package/admin/src/pages/Providers/index.jsx +1 -1
  9. package/admin/src/pages/Roles/pages/CreatePage.jsx +2 -2
  10. package/admin/src/pages/Roles/pages/EditPage.jsx +2 -2
  11. package/admin/src/pages/Roles/pages/ListPage/components/TableBody.jsx +1 -1
  12. package/dist/_chunks/{index-zmcUQlrv.mjs → index-BVR9u54q.mjs} +15 -6
  13. package/dist/_chunks/index-BVR9u54q.mjs.map +1 -0
  14. package/dist/_chunks/{index-DVEZVDjs.js → index-Bje4hsTa.js} +35 -21
  15. package/dist/_chunks/index-Bje4hsTa.js.map +1 -0
  16. package/dist/_chunks/{index-DCFIfSfa.mjs → index-DDL7WEVm.mjs} +23 -13
  17. package/dist/_chunks/index-DDL7WEVm.mjs.map +1 -0
  18. package/dist/_chunks/{index-qhy_K2pJ.mjs → index-DI5ggWiE.mjs} +20 -11
  19. package/dist/_chunks/{index-qhy_K2pJ.mjs.map → index-DI5ggWiE.mjs.map} +1 -1
  20. package/dist/_chunks/{index-iMO1GC3n.js → index-DLXmnT2f.js} +16 -7
  21. package/dist/_chunks/index-DLXmnT2f.js.map +1 -0
  22. package/dist/_chunks/{index-iSLj9xJT.js → index-DUM7iOXV.js} +20 -11
  23. package/dist/_chunks/{index-iSLj9xJT.js.map → index-DUM7iOXV.js.map} +1 -1
  24. package/dist/_chunks/{index-DRoVF6Y7.js → index-DbyIoFaF.js} +27 -17
  25. package/dist/_chunks/index-DbyIoFaF.js.map +1 -0
  26. package/dist/_chunks/{index-Cf2sMpyd.mjs → index-DgYJDstH.mjs} +10 -10
  27. package/dist/_chunks/{index-Cf2sMpyd.mjs.map → index-DgYJDstH.mjs.map} +1 -1
  28. package/dist/_chunks/{index-iaebB1BT.js → index-DnoHZyNN.js} +10 -10
  29. package/dist/_chunks/{index-iaebB1BT.js.map → index-DnoHZyNN.js.map} +1 -1
  30. package/dist/_chunks/{index-8-k5RCnK-qR3QHvSP.js → index-VPYlZ0pt-B_CbEB2q.js} +5 -10
  31. package/dist/_chunks/{index-8-k5RCnK-qR3QHvSP.js.map → index-VPYlZ0pt-B_CbEB2q.js.map} +1 -1
  32. package/dist/_chunks/{index-8-k5RCnK-BHUgmsKx.mjs → index-VPYlZ0pt-CJ1KIk95.mjs} +5 -10
  33. package/dist/_chunks/{index-8-k5RCnK-BHUgmsKx.mjs.map → index-VPYlZ0pt-CJ1KIk95.mjs.map} +1 -1
  34. package/dist/_chunks/{index-B9OX-a4A.mjs → index-bzic_txM.mjs} +35 -21
  35. package/dist/_chunks/index-bzic_txM.mjs.map +1 -0
  36. package/dist/admin/index.js +1 -1
  37. package/dist/admin/index.mjs +1 -1
  38. package/package.json +6 -6
  39. package/server/bootstrap/index.js +13 -9
  40. package/server/bootstrap/users-permissions-actions.js +6 -0
  41. package/server/services/providers-registry.js +465 -275
  42. package/server/utils/index.d.ts +2 -1
  43. package/dist/_chunks/index-B9OX-a4A.mjs.map +0 -1
  44. package/dist/_chunks/index-DCFIfSfa.mjs.map +0 -1
  45. package/dist/_chunks/index-DRoVF6Y7.js.map +0 -1
  46. package/dist/_chunks/index-DVEZVDjs.js.map +0 -1
  47. package/dist/_chunks/index-iMO1GC3n.js.map +0 -1
  48. package/dist/_chunks/index-zmcUQlrv.mjs.map +0 -1
  49. package/server/bootstrap/grant-config.js +0 -140
@@ -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-8-k5RCnK-BHUgmsKx.mjs.map
11484
+ //# sourceMappingURL=index-VPYlZ0pt-CJ1KIk95.mjs.map