@equinor/fusion-framework-react-module-signalr 3.0.21 → 3.0.23

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.
@@ -1,2 +1,2 @@
1
- import { ISignalRProvider, Topic } from '@equinor/fusion-framework-module-signalr';
1
+ import type { ISignalRProvider, Topic } from '@equinor/fusion-framework-module-signalr';
2
2
  export declare const useSignalRProvider: <T>(provider: ISignalRProvider, hubId: string, topicId: string) => Topic<T>;
@@ -1 +1 @@
1
- export declare const version = "3.0.21";
1
+ export declare const version = "3.0.23";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-react-module-signalr",
3
- "version": "3.0.21",
3
+ "version": "3.0.23",
4
4
  "description": "",
5
5
  "sideEffects": false,
6
6
  "main": "dist/esm/index.js",
@@ -30,17 +30,17 @@
30
30
  "directory": "packages/react/modules/signalr"
31
31
  },
32
32
  "dependencies": {
33
- "@equinor/fusion-framework-module-signalr": "^5.0.0"
33
+ "@equinor/fusion-framework-module-signalr": "^5.0.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/react": "^18.2.50",
37
37
  "react": "^18.2.0",
38
- "typescript": "^5.5.4"
38
+ "typescript": "^5.8.2"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@types/react": "^17.0.0 || ^18.0.0",
42
42
  "react": "^17.0.0 || ^18.0.0",
43
- "@equinor/fusion-framework-react-module": "^3.1.6"
43
+ "@equinor/fusion-framework-react-module": "^3.1.8"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "@types/react": {
package/src/index.ts CHANGED
@@ -4,7 +4,7 @@ export { useTopic } from './use-signalr';
4
4
  export { Topic, enableSignalR } from '@equinor/fusion-framework-module-signalr';
5
5
 
6
6
  export type {
7
- ISignalRConfigurator,
8
- SignalRHubConfig,
9
- SignalRModule,
7
+ ISignalRConfigurator,
8
+ SignalRHubConfig,
9
+ SignalRModule,
10
10
  } from '@equinor/fusion-framework-module-signalr';
@@ -1,11 +1,11 @@
1
1
  import { useMemo } from 'react';
2
- import { ISignalRProvider, Topic } from '@equinor/fusion-framework-module-signalr';
2
+ import type { ISignalRProvider, Topic } from '@equinor/fusion-framework-module-signalr';
3
3
 
4
4
  export const useSignalRProvider = <T>(
5
- provider: ISignalRProvider,
6
- hubId: string,
7
- topicId: string,
5
+ provider: ISignalRProvider,
6
+ hubId: string,
7
+ topicId: string,
8
8
  ): Topic<T> => {
9
- const topic = useMemo(() => provider.connect<T>(hubId, topicId), [provider, hubId, topicId]);
10
- return topic;
9
+ const topic = useMemo(() => provider.connect<T>(hubId, topicId), [provider, hubId, topicId]);
10
+ return topic;
11
11
  };
@@ -4,9 +4,9 @@ import { moduleKey } from '@equinor/fusion-framework-module-signalr';
4
4
  import { useSignalRProvider } from './use-signalr-provider';
5
5
 
6
6
  export const useTopic = <T>(
7
- hubId: string,
8
- topicId: string,
7
+ hubId: string,
8
+ topicId: string,
9
9
  ): ReturnType<typeof useSignalRProvider<T>> =>
10
- useSignalRProvider(useModule(moduleKey), hubId, topicId);
10
+ useSignalRProvider(useModule(moduleKey), hubId, topicId);
11
11
 
12
12
  export default useTopic;
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '3.0.21';
2
+ export const version = '3.0.23';