@firecms/user_management 3.0.0 → 3.0.1

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/dist/index.umd.js CHANGED
@@ -630,7 +630,7 @@
630
630
  React.useEffect(t5, t6);
631
631
  let t7;
632
632
  let t8;
633
- if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
633
+ if ($[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
634
634
  t7 = {
635
635
  display: "flex",
636
636
  flexDirection: "column",
@@ -725,7 +725,7 @@
725
725
  t21 = $[42];
726
726
  }
727
727
  let t22;
728
- if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
728
+ if ($[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
729
729
  t22 = /* @__PURE__ */ jsxRuntime.jsxs(ui.TableHeader, { className: "rounded-md", children: [
730
730
  /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, {}),
731
731
  /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { align: "center", children: "Create entities" }),
@@ -739,7 +739,7 @@
739
739
  t22 = $[43];
740
740
  }
741
741
  let t23;
742
- if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
742
+ if ($[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
743
743
  t23 = /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { scope: "row", children: /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "All collections" }) });
744
744
  $[44] = t23;
745
745
  } else {
@@ -826,7 +826,7 @@
826
826
  t39 = $[68];
827
827
  }
828
828
  let t40;
829
- if ($[69] === Symbol.for("react.memo_cache_sentinel")) {
829
+ if ($[69] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
830
830
  t40 = /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { align: "center" });
831
831
  $[69] = t40;
832
832
  } else {
@@ -894,7 +894,7 @@
894
894
  t43 = $[87];
895
895
  }
896
896
  let t44;
897
- if ($[88] === Symbol.for("react.memo_cache_sentinel")) {
897
+ if ($[88] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
898
898
  t44 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { children: "You can customise the permissions that the users related to this role can perform in the entities of each collection" });
899
899
  $[88] = t44;
900
900
  } else {
@@ -924,7 +924,7 @@
924
924
  const t49 = isAdmin || values_0.config?.createCollections ? "true" : "false";
925
925
  let t50;
926
926
  let t51;
927
- if ($[93] === Symbol.for("react.memo_cache_sentinel")) {
927
+ if ($[93] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
928
928
  t50 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "true", children: " Yes " });
929
929
  t51 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "false", children: " No " });
930
930
  $[93] = t50;
@@ -982,7 +982,7 @@
982
982
  let t60;
983
983
  let t61;
984
984
  let t62;
985
- if ($[107] === Symbol.for("react.memo_cache_sentinel")) {
985
+ if ($[107] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
986
986
  t60 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "true", children: " Yes " });
987
987
  t61 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "false", children: " No " });
988
988
  t62 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "own", children: " Only his/her own " });
@@ -1044,7 +1044,7 @@
1044
1044
  let t71;
1045
1045
  let t72;
1046
1046
  let t73;
1047
- if ($[122] === Symbol.for("react.memo_cache_sentinel")) {
1047
+ if ($[122] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1048
1048
  t71 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "true", children: " Yes " });
1049
1049
  t72 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "false", children: " No " });
1050
1050
  t73 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "own", children: " Only his/her own " });
@@ -1259,7 +1259,7 @@
1259
1259
  const [roleToBeDeleted, setRoleToBeDeleted] = React.useState(void 0);
1260
1260
  const [deleteInProgress, setDeleteInProgress] = React.useState(false);
1261
1261
  let t1;
1262
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1262
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1263
1263
  t1 = /* @__PURE__ */ jsxRuntime.jsxs(ui.TableHeader, { children: [
1264
1264
  /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { header: true, className: "w-16" }),
1265
1265
  /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { header: true, children: "Role" }),
@@ -1357,7 +1357,7 @@
1357
1357
  let t7;
1358
1358
  let t8;
1359
1359
  let t9;
1360
- if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
1360
+ if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1361
1361
  t7 = () => {
1362
1362
  setRoleToBeDeleted(void 0);
1363
1363
  };
@@ -1406,7 +1406,7 @@
1406
1406
  const [dialogOpen, setDialogOpen] = React.useState(false);
1407
1407
  const [selectedRole, setSelectedRole] = React.useState();
1408
1408
  let t1;
1409
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1409
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1410
1410
  t1 = (user) => {
1411
1411
  setDialogOpen(true);
1412
1412
  setSelectedRole(user);
@@ -1417,7 +1417,7 @@
1417
1417
  }
1418
1418
  const onRoleClicked = t1;
1419
1419
  let t2;
1420
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1420
+ if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1421
1421
  t2 = () => {
1422
1422
  setSelectedRole(void 0);
1423
1423
  setDialogOpen(false);
@@ -1428,7 +1428,7 @@
1428
1428
  }
1429
1429
  const handleClose = t2;
1430
1430
  let t3;
1431
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
1431
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1432
1432
  t3 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { gutterBottom: true, variant: "h4", className: "flex-grow", component: "h4", children: "Roles" });
1433
1433
  $[2] = t3;
1434
1434
  } else {
@@ -1436,7 +1436,7 @@
1436
1436
  }
1437
1437
  let t4;
1438
1438
  let t5;
1439
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
1439
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1440
1440
  t4 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center mt-12", children: [
1441
1441
  t3,
1442
1442
  /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "large", startIcon: /* @__PURE__ */ jsxRuntime.jsx(ui.AddIcon, {}), onClick: () => setDialogOpen(true), children: "Add role" })
@@ -1602,7 +1602,7 @@
1602
1602
  }
1603
1603
  let t6;
1604
1604
  let t7;
1605
- if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
1605
+ if ($[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1606
1606
  t6 = {
1607
1607
  display: "flex",
1608
1608
  flexDirection: "column",
@@ -1842,7 +1842,7 @@
1842
1842
  const [userToBeDeleted, setUserToBeDeleted] = React.useState(void 0);
1843
1843
  const [deleteInProgress, setDeleteInProgress] = React.useState(false);
1844
1844
  let t1;
1845
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1845
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1846
1846
  t1 = /* @__PURE__ */ jsxRuntime.jsxs(ui.TableHeader, { children: [
1847
1847
  /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { className: "truncate w-16" }),
1848
1848
  /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { children: "Email" }),
@@ -1966,7 +1966,7 @@
1966
1966
  let t7;
1967
1967
  let t8;
1968
1968
  let t9;
1969
- if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
1969
+ if ($[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1970
1970
  t7 = () => {
1971
1971
  setUserToBeDeleted(void 0);
1972
1972
  };
@@ -2017,7 +2017,7 @@
2017
2017
  const [newFormKey, setNewFormKey] = React.useState(0);
2018
2018
  useUserManagement();
2019
2019
  let t1;
2020
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
2020
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2021
2021
  t1 = (user) => {
2022
2022
  setSelectedUser(user);
2023
2023
  setDialogOpen(true);
@@ -2028,7 +2028,7 @@
2028
2028
  }
2029
2029
  const onUserClicked = t1;
2030
2030
  let t2;
2031
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
2031
+ if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2032
2032
  t2 = () => {
2033
2033
  setDialogOpen(false);
2034
2034
  setSelectedUser(void 0);
@@ -2039,7 +2039,7 @@
2039
2039
  }
2040
2040
  const handleClose = t2;
2041
2041
  let t3;
2042
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
2042
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2043
2043
  t3 = () => {
2044
2044
  setSelectedUser(void 0);
2045
2045
  setNewFormKey(_temp);
@@ -2051,7 +2051,7 @@
2051
2051
  }
2052
2052
  const handleAddUser = t3;
2053
2053
  let t4;
2054
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
2054
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2055
2055
  t4 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { gutterBottom: true, variant: "h4", className: "flex-grow", component: "h4", children: "Users" });
2056
2056
  $[3] = t4;
2057
2057
  } else {
@@ -2059,7 +2059,7 @@
2059
2059
  }
2060
2060
  let t5;
2061
2061
  let t6;
2062
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
2062
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2063
2063
  t5 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center mt-12", children: [
2064
2064
  t4,
2065
2065
  /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "large", startIcon: /* @__PURE__ */ jsxRuntime.jsx(ui.AddIcon, {}), onClick: handleAddUser, children: "Add user" })
@@ -2182,7 +2182,7 @@
2182
2182
  const buttonLabel = noUsers && noRoles ? "Create default roles and add current user as admin" : noUsers ? "Add current user as admin" : noRoles ? "Create default roles" : void 0;
2183
2183
  let t1;
2184
2184
  let t2;
2185
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
2185
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2186
2186
  t1 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", className: "uppercase", children: "Create your users and roles" });
2187
2187
  t2 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { children: "You have no users or roles defined. You can create default roles and add the current user as admin." });
2188
2188
  $[0] = t1;
@@ -2243,7 +2243,7 @@
2243
2243
  t3 = $[12];
2244
2244
  }
2245
2245
  let t4;
2246
- if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
2246
+ if ($[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2247
2247
  t4 = /* @__PURE__ */ jsxRuntime.jsx(ui.AddIcon, {});
2248
2248
  $[13] = t4;
2249
2249
  } else {
@@ -2280,6 +2280,7 @@
2280
2280
  icon: "gpp_good",
2281
2281
  view: /* @__PURE__ */ jsxRuntime.jsx(RolesView, {})
2282
2282
  }];
2283
+ exports2.DEFAULT_ROLES = DEFAULT_ROLES;
2283
2284
  exports2.IntroWidget = IntroWidget;
2284
2285
  exports2.RESERVED_GROUPS = RESERVED_GROUPS;
2285
2286
  exports2.RoleChip = RoleChip;