@opengeoweb/authentication 10.0.0 → 10.1.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/index.esm.js
CHANGED
|
@@ -19,10 +19,10 @@ var en$1 = {
|
|
|
19
19
|
"auth-role-message-assigned": "Role {{role}} has been assigned"
|
|
20
20
|
};
|
|
21
21
|
var fi$1 = {
|
|
22
|
-
"auth-logout-go-back-to-home-page": "
|
|
23
|
-
"auth-logout-you-are-logged-out": "
|
|
24
|
-
"auth-role-title": "
|
|
25
|
-
"auth-role-message-assigned": "
|
|
22
|
+
"auth-logout-go-back-to-home-page": "Palaa takaisin <1>Kotisivulle</1>",
|
|
23
|
+
"auth-logout-you-are-logged-out": "Olet kirjautunut ulos.",
|
|
24
|
+
"auth-role-title": "Rooli",
|
|
25
|
+
"auth-role-message-assigned": "Rooli {{role}} on annettu"
|
|
26
26
|
};
|
|
27
27
|
var no$1 = {
|
|
28
28
|
"auth-logout-go-back-to-home-page": "Gå tilbake til <1>Hjemmesiden</1>",
|
|
@@ -1458,7 +1458,11 @@ function useApiContext() {
|
|
|
1458
1458
|
var generateRandomId = function generateRandomId() {
|
|
1459
1459
|
return "-" + Math.random().toString(36).substring(2, 11);
|
|
1460
1460
|
};
|
|
1461
|
-
var useApi = function useApi(
|
|
1461
|
+
var useApi = function useApi(
|
|
1462
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1463
|
+
apiCall,
|
|
1464
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1465
|
+
params, callbacks) {
|
|
1462
1466
|
var _useIsMounted = useIsMounted(),
|
|
1463
1467
|
isMounted = _useIsMounted.isMounted;
|
|
1464
1468
|
var _React$useState = React.useState(generateRandomId()),
|
package/package.json
CHANGED
|
@@ -10,7 +10,4 @@ export declare const DemoWrapperConnect: React.FC<AuthTranslationWrapperProps &
|
|
|
10
10
|
store: Store;
|
|
11
11
|
}>;
|
|
12
12
|
export declare const createTestAuthenticationStore: () => ToolkitStore;
|
|
13
|
-
export declare const DemoWrapperNoEggsConnect: React.FC<AuthTranslationWrapperProps & {
|
|
14
|
-
store: Store;
|
|
15
|
-
}>;
|
|
16
13
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { UserMenuRolesConnect } from './UserMenuRolesConnect';
|
|
3
|
+
type Story = StoryObj<typeof UserMenuRolesConnect>;
|
|
2
4
|
declare const _default: {
|
|
3
5
|
title: string;
|
|
4
6
|
};
|
|
5
7
|
export default _default;
|
|
6
|
-
export declare const AuthenticationDemo:
|
|
8
|
+
export declare const AuthenticationDemo: Story;
|
|
@@ -32,5 +32,5 @@ export declare const useApi: <TResponse extends {
|
|
|
32
32
|
data: infer TData;
|
|
33
33
|
}[] ? TData[] : TResponse extends {
|
|
34
34
|
data: infer TData_1;
|
|
35
|
-
} ? TData_1 : never>(apiCall?: (params?:
|
|
35
|
+
} ? TData_1 : never>(apiCall?: (params?: any, id?: string) => Promise<TResponse>, params?: any, callbacks?: Callbacks<TResult>) => ApiHookProps<TResult>;
|
|
36
36
|
export {};
|