@equinor/fusion-framework-react-module-signalr 4.0.4-next.0 → 4.0.5

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/src/useTopic.ts DELETED
@@ -1,20 +0,0 @@
1
- import { useModule } from '@equinor/fusion-framework-react-module';
2
- import { moduleKey } from '@equinor/fusion-framework-module-signalr';
3
-
4
- import { useSignalRProvider } from './useSignalRProvider';
5
-
6
- /**
7
- * Hook for connecting to a SignalR hub topic, resolving the provider from the framework automatically.
8
- *
9
- * @template T - The type of data emitted by the topic
10
- * @param hubId - The id of the hub to connect to
11
- * @param topicId - The id of the topic within the hub to subscribe to
12
- * @returns The connected topic
13
- */
14
- export const useTopic = <T>(
15
- hubId: string,
16
- topicId: string,
17
- ): ReturnType<typeof useSignalRProvider<T>> =>
18
- useSignalRProvider(useModule(moduleKey), hubId, topicId);
19
-
20
- export default useTopic;
package/src/version.ts DELETED
@@ -1,2 +0,0 @@
1
- // Generated by genversion.
2
- export const version = '4.0.4-next.0';
package/tsconfig.json DELETED
@@ -1,18 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.react.json",
3
- "compilerOptions": {
4
- "outDir": "dist/esm",
5
- "rootDir": "src",
6
- "declarationDir": "./dist/types"
7
- },
8
- "references": [
9
- {
10
- "path": "../../../modules/signalr"
11
- },
12
- {
13
- "path": "../module"
14
- }
15
- ],
16
- "include": ["src/**/*"],
17
- "exclude": ["node_modules", "dist"]
18
- }