@deix/rossini-identity-management 0.1.0 → 0.2.0
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/lib/app/[locale]/users/page.js +1 -1
- package/lib/app/layout.js +1 -1
- package/lib/components/groups/CreateGroupDialog.d.ts +3 -1
- package/lib/components/groups/CreateGroupDialog.d.ts.map +1 -1
- package/lib/components/groups/CreateGroupDialog.js +7 -5
- package/lib/components/groups/GroupDetails.d.ts +3 -1
- package/lib/components/groups/GroupDetails.d.ts.map +1 -1
- package/lib/components/groups/GroupDetails.js +9 -8
- package/lib/components/groups/GroupForm.d.ts +2 -1
- package/lib/components/groups/GroupForm.d.ts.map +1 -1
- package/lib/components/groups/GroupForm.js +3 -3
- package/lib/components/groups/GroupTabs.d.ts +3 -1
- package/lib/components/groups/GroupTabs.d.ts.map +1 -1
- package/lib/components/groups/GroupTabs.js +4 -4
- package/lib/components/groups/GroupUsers.d.ts.map +1 -1
- package/lib/components/groups/GroupUsers.js +3 -4
- package/lib/components/groups/Groups.d.ts +6 -1
- package/lib/components/groups/Groups.d.ts.map +1 -1
- package/lib/components/groups/Groups.js +45 -40
- package/lib/components/groups/GroupsTable.d.ts +1 -1
- package/lib/components/groups/GroupsTable.d.ts.map +1 -1
- package/lib/components/groups/GroupsTable.js +3 -3
- package/lib/components/users/CreateUserDialog.d.ts +3 -1
- package/lib/components/users/CreateUserDialog.d.ts.map +1 -1
- package/lib/components/users/CreateUserDialog.js +7 -5
- package/lib/components/users/UserCredentials.d.ts.map +1 -1
- package/lib/components/users/UserCredentials.js +3 -4
- package/lib/components/users/UserDetails.d.ts +3 -1
- package/lib/components/users/UserDetails.d.ts.map +1 -1
- package/lib/components/users/UserDetails.js +11 -7
- package/lib/components/users/UserForm.d.ts +2 -1
- package/lib/components/users/UserForm.d.ts.map +1 -1
- package/lib/components/users/UserForm.js +7 -5
- package/lib/components/users/UserGroups.d.ts.map +1 -1
- package/lib/components/users/UserGroups.js +3 -4
- package/lib/components/users/Users.d.ts +6 -1
- package/lib/components/users/Users.d.ts.map +1 -1
- package/lib/components/users/Users.js +45 -40
- package/lib/components/users/UsersTable.d.ts +1 -1
- package/lib/components/users/UsersTable.d.ts.map +1 -1
- package/lib/components/users/UsersTable.js +3 -3
- package/lib/components/users/UsersTabs.d.ts +3 -1
- package/lib/components/users/UsersTabs.d.ts.map +1 -1
- package/lib/components/users/UsersTabs.js +4 -4
- package/lib/lang/users.d.ts.map +1 -1
- package/lib/lang/users.js +4 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/hooks/groups.d.ts.map +1 -1
- package/lib/utils/hooks/groups.js +0 -2
- package/lib/utils/hooks/useAPIClient.d.ts +10 -0
- package/lib/utils/hooks/useAPIClient.d.ts.map +1 -0
- package/lib/utils/hooks/useAPIClient.js +16 -0
- package/lib/utils/hooks/users.d.ts.map +1 -1
- package/lib/utils/hooks/users.js +0 -1
- package/package.json +2 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/groups.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,cAAc,EAGf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAUzC,eAAO,MAAM,SAAS,cACT,aAAa,KACvB,eAAe,KAAK,EAAE,GAAG,SAAS,EAAE,KAAK,CAM3C,CAAC;AAcF,eAAO,MAAM,WAAW,gBACT,WAAW,aACb,aAAa,oDA6BzB,CAAC;AAiBF,eAAO,MAAM,cAAc,gBACZ,WAAW,aACb,aAAa,oDA8BzB,CAAC;
|
|
1
|
+
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/groups.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,cAAc,EAGf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAUzC,eAAO,MAAM,SAAS,cACT,aAAa,KACvB,eAAe,KAAK,EAAE,GAAG,SAAS,EAAE,KAAK,CAM3C,CAAC;AAcF,eAAO,MAAM,WAAW,gBACT,WAAW,aACb,aAAa,oDA6BzB,CAAC;AAiBF,eAAO,MAAM,cAAc,gBACZ,WAAW,aACb,aAAa,oDA8BzB,CAAC;AAgBF,eAAO,MAAM,cAAc,gBACZ,WAAW,aACb,aAAa,6EA6BzB,CAAC;AAgBF,eAAO,MAAM,aAAa,OACpB,MAAM,GAAG,SAAS,aACX,aAAa,KACvB,eAAe,IAAI,EAAE,GAAG,SAAS,EAAE,KAAK,CAM1C,CAAC"}
|
|
@@ -81,9 +81,7 @@ export const useUpdateGroup = (queryClient, apiClient) => {
|
|
|
81
81
|
// Delete group
|
|
82
82
|
const deleteGroup = async ({ id, apiClient, }) => {
|
|
83
83
|
if (id) {
|
|
84
|
-
console.log('hey delete', id);
|
|
85
84
|
const { data } = await apiClient.delete(`/groups/${id}`);
|
|
86
|
-
console.log(data);
|
|
87
85
|
return data;
|
|
88
86
|
}
|
|
89
87
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface APIClientProviderProps {
|
|
4
|
+
baseURL: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const APIClientProvider: ({ baseURL, children, }: APIClientProviderProps) => React.JSX.Element;
|
|
8
|
+
export declare const useAPIClient: () => AxiosInstance;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=useAPIClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAPIClient.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/useAPIClient.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,KAAoC,MAAM,OAAO,CAAC;AAUzD,UAAU,sBAAsB;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,iBAAiB,2BAG3B,sBAAsB,sBAaxB,CAAC;AAEF,eAAO,MAAM,YAAY,qBAA+B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import React, { createContext, useContext } from 'react';
|
|
3
|
+
const APIContext = createContext(axios.create({
|
|
4
|
+
headers: {
|
|
5
|
+
Accept: 'application/json',
|
|
6
|
+
},
|
|
7
|
+
}));
|
|
8
|
+
export const APIClientProvider = ({ baseURL, children, }) => {
|
|
9
|
+
return (React.createElement(APIContext.Provider, { value: axios.create({
|
|
10
|
+
baseURL,
|
|
11
|
+
headers: {
|
|
12
|
+
Accept: 'application/json',
|
|
13
|
+
},
|
|
14
|
+
}) }, children));
|
|
15
|
+
};
|
|
16
|
+
export const useAPIClient = () => useContext(APIContext);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/users.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,cAAc,EAGf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,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sB,MAAM;aAAW,MAAM;WA8BtE,CAAC;AAkBF,eAAO,MAAM,0BAA0B,gBACxB,WAAW,aACb,aAAa;;0BAoBzB,CAAC"}
|
package/lib/utils/hooks/users.js
CHANGED
|
@@ -36,7 +36,6 @@ const addUser = async ({ newUser, sendEmailOnCreation, apiClient, }) => {
|
|
|
36
36
|
// it in order to get its ID and send the email
|
|
37
37
|
const users = await getUsers(apiClient, newUser.username);
|
|
38
38
|
if (users.length > 0) {
|
|
39
|
-
console.log(users[0].id);
|
|
40
39
|
await sendUpdatePasswordEmail({ userId: users[0].id, apiClient });
|
|
41
40
|
}
|
|
42
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deix/rossini-identity-management",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -87,12 +87,9 @@
|
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@deix/rossini-
|
|
91
|
-
"@formatjs/intl-localematcher": "^0.5.2",
|
|
90
|
+
"@deix/rossini-core": "^2.1.5",
|
|
92
91
|
"@mui/icons-material": "^5.11.0",
|
|
93
92
|
"@mui/material": "^5.11.8",
|
|
94
|
-
"@types/negotiator": "^0.6.3",
|
|
95
|
-
"negotiator": "^0.6.3",
|
|
96
93
|
"notistack": "^3.0.1",
|
|
97
94
|
"react-hook-form": "^7.49.3"
|
|
98
95
|
}
|