@firecms/user_management 3.0.1 → 3.1.0-canary.02232f4
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/components/roles/RolesDetailsForm.d.ts +7 -10
- package/dist/components/users/UserDetailsForm.d.ts +9 -13
- package/dist/index.es.js +1922 -969
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1920 -967
- package/dist/index.umd.js.map +1 -1
- package/package.json +9 -9
- package/src/admin_views.tsx +2 -3
- package/src/components/roles/RolesDetailsForm.tsx +50 -73
- package/src/components/roles/RolesTable.tsx +16 -14
- package/src/components/roles/RolesView.tsx +6 -7
- package/src/components/users/UserDetailsForm.tsx +47 -24
- package/src/components/users/UsersTable.tsx +76 -52
- package/src/components/users/UsersView.tsx +6 -7
- package/src/hooks/useBuildUserManagement.tsx +13 -5
- package/src/useUserManagementPlugin.tsx +8 -7
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import * as Yup from "yup";
|
|
2
2
|
import { EntityCollection, Role } from "@firecms/core";
|
|
3
|
-
export declare const
|
|
4
|
-
id:
|
|
5
|
-
name:
|
|
6
|
-
}
|
|
7
|
-
id:
|
|
8
|
-
name:
|
|
9
|
-
}
|
|
10
|
-
id: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
11
|
-
name: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
12
|
-
}>>>;
|
|
3
|
+
export declare const getRoleYupSchema: (t: any) => Yup.ObjectSchema<{
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}, Yup.AnyObject, {
|
|
7
|
+
id: undefined;
|
|
8
|
+
name: undefined;
|
|
9
|
+
}, "">;
|
|
13
10
|
export declare function RolesDetailsForm({ open, role, editable, handleClose, collections }: {
|
|
14
11
|
open: boolean;
|
|
15
12
|
editable?: boolean;
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import * as Yup from "yup";
|
|
2
2
|
import { User } from "@firecms/core";
|
|
3
|
-
export declare const
|
|
4
|
-
displayName:
|
|
5
|
-
email:
|
|
6
|
-
roles:
|
|
7
|
-
}
|
|
8
|
-
displayName:
|
|
9
|
-
email:
|
|
10
|
-
roles:
|
|
11
|
-
}
|
|
12
|
-
displayName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
13
|
-
email: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
14
|
-
roles: import("yup/lib/array").OptionalArraySchema<Yup.AnySchema, import("yup/lib/types").AnyObject, any[] | undefined>;
|
|
15
|
-
}>>>;
|
|
3
|
+
export declare const getUserYupSchema: (t: any) => Yup.ObjectSchema<{
|
|
4
|
+
displayName: string;
|
|
5
|
+
email: string;
|
|
6
|
+
roles: any[] | undefined;
|
|
7
|
+
}, Yup.AnyObject, {
|
|
8
|
+
displayName: undefined;
|
|
9
|
+
email: undefined;
|
|
10
|
+
roles: undefined;
|
|
11
|
+
}, "">;
|
|
16
12
|
export declare function UserDetailsForm({ open, user: userProp, handleClose }: {
|
|
17
13
|
open: boolean;
|
|
18
14
|
user?: User;
|