@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": "🚧 ei käännetty. Go back to the <1>Home Page</1>",
23
- "auth-logout-you-are-logged-out": "🚧 ei käännetty",
24
- "auth-role-title": "🚧 ei käännetty",
25
- "auth-role-message-assigned": "🚧 ei käännetty"
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(apiCall, params, callbacks) {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/authentication",
3
- "version": "10.0.0",
3
+ "version": "10.1.0",
4
4
  "description": "GeoWeb authentication library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -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 React from 'react';
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: React.FC;
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?: ApiParams, id?: string) => Promise<TResponse>, params?: ApiParams, callbacks?: Callbacks<TResult>) => ApiHookProps<TResult>;
35
+ } ? TData_1 : never>(apiCall?: (params?: any, id?: string) => Promise<TResponse>, params?: any, callbacks?: Callbacks<TResult>) => ApiHookProps<TResult>;
36
36
  export {};