@firecms/user_management 3.0.0-canary.107 → 3.0.0-canary.109
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.es.js +48 -27
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +48 -27
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/components/roles/RolesTable.tsx +3 -1
- package/src/components/roles/RolesView.tsx +3 -1
- package/src/components/users/UsersTable.tsx +3 -1
package/dist/index.es.js
CHANGED
@@ -920,18 +920,25 @@ function RolesTable({
|
|
920
920
|
onRoleClicked(role);
|
921
921
|
},
|
922
922
|
children: [
|
923
|
-
/* @__PURE__ */ jsx(TableCell, { style: { width: "64px" }, children: !role.isAdmin && /* @__PURE__ */ jsx(
|
924
|
-
|
923
|
+
/* @__PURE__ */ jsx(TableCell, { style: { width: "64px" }, children: !role.isAdmin && /* @__PURE__ */ jsx(
|
924
|
+
Tooltip,
|
925
925
|
{
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
926
|
+
asChild: true,
|
927
|
+
title: "Delete this role",
|
928
|
+
children: /* @__PURE__ */ jsx(
|
929
|
+
IconButton,
|
930
|
+
{
|
931
|
+
size: "small",
|
932
|
+
disabled: !editable,
|
933
|
+
onClick: (event) => {
|
934
|
+
event.stopPropagation();
|
935
|
+
return setRoleToBeDeleted(role);
|
936
|
+
},
|
937
|
+
children: /* @__PURE__ */ jsx(DeleteIcon, {})
|
938
|
+
}
|
939
|
+
)
|
933
940
|
}
|
934
|
-
) })
|
941
|
+
) }),
|
935
942
|
/* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(RoleChip, { role }) }),
|
936
943
|
/* @__PURE__ */ jsx(TableCell, { className: "items-center", children: /* @__PURE__ */ jsx(Checkbox, { checked: role.isAdmin ?? false }) }),
|
937
944
|
/* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsxs("ul", { children: [
|
@@ -1015,16 +1022,23 @@ const RolesView = React.memo(
|
|
1015
1022
|
children: "Roles"
|
1016
1023
|
}
|
1017
1024
|
),
|
1018
|
-
/* @__PURE__ */ jsx(
|
1019
|
-
|
1025
|
+
/* @__PURE__ */ jsx(
|
1026
|
+
Tooltip,
|
1020
1027
|
{
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1028
|
+
asChild: true,
|
1029
|
+
title: !canEditRoles ? "Update plans to customise roles" : void 0,
|
1030
|
+
children: /* @__PURE__ */ jsx(
|
1031
|
+
Button,
|
1032
|
+
{
|
1033
|
+
size: "large",
|
1034
|
+
disabled: !canEditRoles,
|
1035
|
+
startIcon: /* @__PURE__ */ jsx(AddIcon, {}),
|
1036
|
+
onClick: () => setDialogOpen(true),
|
1037
|
+
children: "Add role"
|
1038
|
+
}
|
1039
|
+
)
|
1026
1040
|
}
|
1027
|
-
)
|
1041
|
+
)
|
1028
1042
|
] }),
|
1029
1043
|
/* @__PURE__ */ jsx(RolesTable, { onRoleClicked, editable: Boolean(canEditRoles) }),
|
1030
1044
|
/* @__PURE__ */ jsx(
|
@@ -1278,17 +1292,24 @@ function UsersTable({ onUserClicked }) {
|
|
1278
1292
|
onUserClicked(user);
|
1279
1293
|
},
|
1280
1294
|
children: [
|
1281
|
-
/* @__PURE__ */ jsx(TableCell, { className: "w-10", children: /* @__PURE__ */ jsx(
|
1282
|
-
|
1295
|
+
/* @__PURE__ */ jsx(TableCell, { className: "w-10", children: /* @__PURE__ */ jsx(
|
1296
|
+
Tooltip,
|
1283
1297
|
{
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1298
|
+
asChild: true,
|
1299
|
+
title: "Delete this user",
|
1300
|
+
children: /* @__PURE__ */ jsx(
|
1301
|
+
IconButton,
|
1302
|
+
{
|
1303
|
+
size: "small",
|
1304
|
+
onClick: (event) => {
|
1305
|
+
event.stopPropagation();
|
1306
|
+
return setUserToBeDeleted(user);
|
1307
|
+
},
|
1308
|
+
children: /* @__PURE__ */ jsx(DeleteIcon, {})
|
1309
|
+
}
|
1310
|
+
)
|
1290
1311
|
}
|
1291
|
-
) })
|
1312
|
+
) }),
|
1292
1313
|
/* @__PURE__ */ jsx(TableCell, { children: user.uid }),
|
1293
1314
|
/* @__PURE__ */ jsx(TableCell, { children: user.email }),
|
1294
1315
|
/* @__PURE__ */ jsx(TableCell, { className: "font-medium align-left", children: user.displayName }),
|