@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/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +7 -4
- package/CHANGELOG.md +0 -602
- package/src/index.ts +0 -21
- package/src/useSignalRProvider.ts +0 -20
- package/src/useTopic.ts +0 -20
- package/src/version.ts +0 -2
- package/tsconfig.json +0 -18
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
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
|
-
}
|