@firecms/user_management 3.2.0 → 3.3.0-canary.451aa49
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 +189 -177
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +189 -177
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/components/users/UserDetailsForm.tsx +25 -25
- package/src/components/users/UsersTable.tsx +10 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firecms/user_management",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.3.0-canary.451aa49",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"types": "./dist/index.d.ts",
|
|
30
30
|
"source": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@firecms/core": "3.
|
|
33
|
-
"@firecms/formex": "3.
|
|
34
|
-
"@firecms/ui": "3.
|
|
32
|
+
"@firecms/core": "^3.3.0-canary.451aa49",
|
|
33
|
+
"@firecms/formex": "^3.3.0-canary.451aa49",
|
|
34
|
+
"@firecms/ui": "^3.3.0-canary.451aa49",
|
|
35
35
|
"date-fns": "^3.6.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"src",
|
|
58
58
|
"bin"
|
|
59
59
|
],
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "772b4a7f64893038f0cc13669d6bc66ec858fc49"
|
|
61
61
|
}
|
|
@@ -146,34 +146,34 @@ export function UserDetailsForm({
|
|
|
146
146
|
height: "100%"
|
|
147
147
|
}}>
|
|
148
148
|
|
|
149
|
-
<DialogTitle variant={"h4"} gutterBottom={false}>
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
<div className={"grid grid-cols-12 gap-4"}>
|
|
153
|
-
|
|
149
|
+
<DialogTitle variant={"h4"} gutterBottom={false}>
|
|
150
|
+
<div className="flex items-center justify-between">
|
|
151
|
+
<div>{t("user")}</div>
|
|
154
152
|
{!isNewUser && userProp?.uid && (
|
|
155
|
-
<div className=
|
|
156
|
-
<
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
</IconButton>
|
|
173
|
-
</Tooltip>
|
|
174
|
-
</div>
|
|
153
|
+
<div className="flex items-center gap-2">
|
|
154
|
+
<span className={"text-xs font-mono text-surface-accent-500 dark:text-surface-accent-400 font-normal"}>
|
|
155
|
+
{userProp.uid}
|
|
156
|
+
</span>
|
|
157
|
+
<Tooltip title={t("copy")}>
|
|
158
|
+
<IconButton
|
|
159
|
+
size={"smallest"}
|
|
160
|
+
onClick={() => {
|
|
161
|
+
navigator.clipboard.writeText(userProp.uid!);
|
|
162
|
+
snackbarController.open({
|
|
163
|
+
type: "success",
|
|
164
|
+
message: t("copied")
|
|
165
|
+
});
|
|
166
|
+
}}>
|
|
167
|
+
<CopyIcon size={"smallest"}/>
|
|
168
|
+
</IconButton>
|
|
169
|
+
</Tooltip>
|
|
175
170
|
</div>
|
|
176
171
|
)}
|
|
172
|
+
</div>
|
|
173
|
+
</DialogTitle>
|
|
174
|
+
<DialogContent className="h-full flex-grow">
|
|
175
|
+
|
|
176
|
+
<div className={"grid grid-cols-12 gap-4"}>
|
|
177
177
|
|
|
178
178
|
<div className={"col-span-12"}>
|
|
179
179
|
<TextField
|
|
@@ -89,7 +89,16 @@ export function UsersTable({ onUserClicked }: {
|
|
|
89
89
|
: (user.email ? user.email[0].toUpperCase() : "U")}
|
|
90
90
|
</Avatar>
|
|
91
91
|
</TableCell>
|
|
92
|
-
<TableCell>
|
|
92
|
+
<TableCell>
|
|
93
|
+
<div className="flex flex-col">
|
|
94
|
+
<div>{user.email}</div>
|
|
95
|
+
{user.uid && (
|
|
96
|
+
<div className="text-xs text-surface-accent-500 dark:text-surface-accent-400 font-mono mt-1">
|
|
97
|
+
{user.uid}
|
|
98
|
+
</div>
|
|
99
|
+
)}
|
|
100
|
+
</div>
|
|
101
|
+
</TableCell>
|
|
93
102
|
<TableCell className={"font-medium align-left"}>{user.displayName}</TableCell>
|
|
94
103
|
<TableCell className="align-left">
|
|
95
104
|
{userRoles
|