@equinor/fusion-framework-react 6.0.5 → 7.0.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/CHANGELOG.md +17 -0
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/app/useCurrentApp.d.ts +1 -1
- package/dist/types/create-framework-provider.d.ts +1 -1
- package/dist/types/feature-flag/useFrameworkFeature.d.ts +1 -1
- package/dist/types/signalr/index.d.ts +1 -1
- package/dist/types/useFrameworkModule.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +13 -13
- package/src/version.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type AnyModule } from '@equinor/fusion-framework-module';
|
|
2
2
|
import { type CurrentApp } from '@equinor/fusion-framework-module-app';
|
|
3
3
|
export declare const useCurrentApp: <TModules extends AnyModule[] = [], TEnv = unknown>() => {
|
|
4
|
-
currentApp?: CurrentApp<TModules, TEnv
|
|
4
|
+
currentApp?: CurrentApp<TModules, TEnv> | null;
|
|
5
5
|
setCurrentApp: (appKey: string) => void;
|
|
6
6
|
clearCurrentApp: () => void;
|
|
7
7
|
error?: unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FusionConfigurator } from '@equinor/fusion-framework';
|
|
3
3
|
import type { AnyModule } from '@equinor/fusion-framework-module';
|
|
4
|
-
export declare const createFrameworkProvider: <TModules extends AnyModule[] = []>(cb: (configurator: FusionConfigurator<TModules
|
|
4
|
+
export declare const createFrameworkProvider: <TModules extends AnyModule[] = []>(cb: (configurator: FusionConfigurator<TModules>) => void | Promise<void>) => React.LazyExoticComponent<React.FunctionComponent<React.PropsWithChildren<unknown>>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { useFeature } from './useFeature';
|
|
2
|
-
export declare const useFrameworkFeature: <T>(key: string) =>
|
|
2
|
+
export declare const useFrameworkFeature: <T>(key: string) => ReturnType<typeof useFeature<T>>;
|
|
3
3
|
export default useFrameworkFeature;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { useProviderTopic } from '@equinor/fusion-framework-react-module-signalr';
|
|
2
|
-
export declare const useSignalR: <T>(hubId: string, topicId: string) =>
|
|
2
|
+
export declare const useSignalR: <T>(hubId: string, topicId: string) => ReturnType<typeof useProviderTopic<T>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { FusionModules, FusionModulesInstance } from '@equinor/fusion-framework';
|
|
2
2
|
import { AnyModule, ModuleKey, ModuleType, ModuleTypes } from '@equinor/fusion-framework-module';
|
|
3
|
-
export declare const useFrameworkModule: <TType extends unknown = unknown, TKey extends string = ModuleKey<ModuleTypes<FusionModules<[TType]>>>>(name: TKey) => TType extends AnyModule ? ModuleType<TType> | undefined : FusionModulesInstance[Extract<
|
|
3
|
+
export declare const useFrameworkModule: <TType extends unknown = unknown, TKey extends string = ModuleKey<ModuleTypes<FusionModules<[TType]>>>>(name: TKey) => TType extends AnyModule ? ModuleType<TType> | undefined : FusionModulesInstance[Extract<keyof FusionModulesInstance, TKey>] | undefined;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "
|
|
1
|
+
export declare const version = "7.0.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -48,29 +48,29 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"rxjs": "^7.8.1",
|
|
51
|
-
"@equinor/fusion-framework": "^7.0
|
|
52
|
-
"@equinor/fusion-framework-module": "^
|
|
53
|
-
"@equinor/fusion-framework-react-module-http": "^
|
|
54
|
-
"@equinor/fusion-
|
|
55
|
-
"@equinor/fusion-
|
|
51
|
+
"@equinor/fusion-framework": "^7.1.0",
|
|
52
|
+
"@equinor/fusion-framework-react-module": "^3.1.0",
|
|
53
|
+
"@equinor/fusion-framework-react-module-http": "^5.0.0",
|
|
54
|
+
"@equinor/fusion-observable": "^8.2.0",
|
|
55
|
+
"@equinor/fusion-framework-module": "^4.3.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/react": "^18.2.50",
|
|
59
59
|
"@types/react-dom": "^18.2.7",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0",
|
|
62
|
-
"typescript": "^5.
|
|
63
|
-
"@equinor/fusion-framework-module-app": "^5.
|
|
64
|
-
"@equinor/fusion-framework-module-
|
|
65
|
-
"@equinor/fusion-framework-
|
|
66
|
-
"@equinor/fusion-framework-module-
|
|
62
|
+
"typescript": "^5.4.2",
|
|
63
|
+
"@equinor/fusion-framework-module-app": "^5.3.0",
|
|
64
|
+
"@equinor/fusion-framework-module-event": "^4.1.0",
|
|
65
|
+
"@equinor/fusion-framework-module-feature-flag": "^1.1.0",
|
|
66
|
+
"@equinor/fusion-framework-react-module-context": "^6.2.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"@types/react": "^17.0.0 || ^18.0.0",
|
|
70
70
|
"react": "^17.0.0 || ^18.0.0",
|
|
71
71
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
72
|
-
"@equinor/fusion-framework-module-
|
|
73
|
-
"@equinor/fusion-framework-
|
|
72
|
+
"@equinor/fusion-framework-react-module-signalr": "^3.0.0",
|
|
73
|
+
"@equinor/fusion-framework-module-feature-flag": "^1.1.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependenciesMeta": {
|
|
76
76
|
"@equinor/fusion-framework-module-event": {
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '
|
|
2
|
+
export const version = '7.0.0';
|