@equinor/fusion-framework-module-app 5.2.11 → 5.2.13
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 +98 -76
- package/dist/esm/AppConfigurator.js.map +1 -1
- package/dist/esm/AppModuleProvider.js.map +1 -1
- package/dist/esm/app/App.js.map +1 -1
- package/dist/esm/app/create-reducer.js.map +1 -1
- package/dist/esm/errors.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/AppModuleProvider.d.ts +2 -2
- package/dist/types/version.d.ts +1 -1
- package/package.json +6 -6
- package/src/AppModuleProvider.ts +6 -3
- package/src/version.ts +1 -1
|
@@ -12,8 +12,8 @@ export declare class AppModuleProvider {
|
|
|
12
12
|
appClient: Query<AppManifest, {
|
|
13
13
|
appKey: string;
|
|
14
14
|
}>;
|
|
15
|
-
get current(): CurrentApp;
|
|
16
|
-
get current$(): Observable<CurrentApp>;
|
|
15
|
+
get current(): CurrentApp | null | undefined;
|
|
16
|
+
get current$(): Observable<CurrentApp | null>;
|
|
17
17
|
constructor(args: {
|
|
18
18
|
config: AppModuleConfig;
|
|
19
19
|
event?: ModuleType<EventModule>;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.2.
|
|
1
|
+
export declare const version = "5.2.13";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-module-app",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -48,16 +48,16 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"immer": "^9.0.16",
|
|
50
50
|
"rxjs": "^7.8.1",
|
|
51
|
-
"@equinor/fusion-observable": "^8.1.
|
|
52
|
-
"@equinor/fusion-query": "^4.0.
|
|
51
|
+
"@equinor/fusion-observable": "^8.1.5",
|
|
52
|
+
"@equinor/fusion-query": "^4.0.6"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"typescript": "^5.1.3",
|
|
56
56
|
"@equinor/fusion-framework-module": "^4.2.6",
|
|
57
57
|
"@equinor/fusion-framework-module-event": "^4.0.7",
|
|
58
|
-
"@equinor/fusion-framework-module-http": "^5.1.
|
|
59
|
-
"@equinor/fusion-framework-module-msal": "^3.0.
|
|
60
|
-
"@equinor/fusion-framework-module-service-discovery": "^7.0.
|
|
58
|
+
"@equinor/fusion-framework-module-http": "^5.1.5",
|
|
59
|
+
"@equinor/fusion-framework-module-msal": "^3.0.9",
|
|
60
|
+
"@equinor/fusion-framework-module-service-discovery": "^7.0.19"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "tsc -b"
|
package/src/AppModuleProvider.ts
CHANGED
|
@@ -32,7 +32,7 @@ export class AppModuleProvider {
|
|
|
32
32
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
33
33
|
#configClient: Query<AppConfig<any>, { appKey: string; tag?: string }>;
|
|
34
34
|
|
|
35
|
-
#current$: BehaviorSubject<CurrentApp>;
|
|
35
|
+
#current$: BehaviorSubject<CurrentApp | null>;
|
|
36
36
|
|
|
37
37
|
#subscription = new Subscription();
|
|
38
38
|
|
|
@@ -41,12 +41,15 @@ export class AppModuleProvider {
|
|
|
41
41
|
/**
|
|
42
42
|
* fetch an application by key
|
|
43
43
|
* @param appKey - application key
|
|
44
|
+
* @remarks
|
|
45
|
+
* - null when current app is cleared
|
|
46
|
+
* - undefined if application never set
|
|
44
47
|
*/
|
|
45
|
-
get current(): CurrentApp {
|
|
48
|
+
get current(): CurrentApp | null | undefined {
|
|
46
49
|
return this.#current$.value;
|
|
47
50
|
}
|
|
48
51
|
|
|
49
|
-
get current$(): Observable<CurrentApp> {
|
|
52
|
+
get current$(): Observable<CurrentApp | null> {
|
|
50
53
|
return this.#current$.pipe(
|
|
51
54
|
distinctUntilChanged((prev, next) => {
|
|
52
55
|
if (prev && next) {
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '5.2.
|
|
2
|
+
export const version = '5.2.13';
|