@equinor/fusion-framework-module-app
Advanced tools
Comparing version 2.7.1 to 2.8.0
@@ -6,2 +6,8 @@ # Change Log | ||
## 2.8.0 (2022-12-21) | ||
### Features | ||
- **module-app:** expose current state of app ([accb084](https://github.com/equinor/fusion-framework/commit/accb08477416541beaa39574ff966ab2784ad430)) | ||
## [2.7.1](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-app@2.7.0...@equinor/fusion-framework-module-app@2.7.1) (2022-12-16) | ||
@@ -8,0 +14,0 @@ |
@@ -43,2 +43,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
get state() { | ||
return __classPrivateFieldGet(this, _App_state, "f").value; | ||
} | ||
get appKey() { | ||
@@ -45,0 +48,0 @@ return __classPrivateFieldGet(this, _App_state, "f").value.appKey; |
@@ -7,3 +7,3 @@ import { AppConfig, AppManifest, AppModulesInstance, AppScriptModule } from '../types'; | ||
import { AnyModule, ModuleType } from '@equinor/fusion-framework-module'; | ||
import { AppBundleStateInitial } from './types'; | ||
import { AppBundleState, AppBundleStateInitial } from './types'; | ||
import './events'; | ||
@@ -17,2 +17,3 @@ export declare function filterEmpty<T>(): OperatorFunction<T | null | undefined, T>; | ||
get instance$(): Observable<AppModulesInstance<TModules>>; | ||
get state(): AppBundleState; | ||
get appKey(): string; | ||
@@ -19,0 +20,0 @@ get manifest(): Promise<AppManifest>; |
{ | ||
"name": "@equinor/fusion-framework-module-app", | ||
"version": "2.7.1", | ||
"version": "2.8.0", | ||
"description": "", | ||
@@ -48,3 +48,3 @@ "main": "dist/esm/index.js", | ||
}, | ||
"gitHead": "056c03a474079c018082339051755ab150db113d" | ||
"gitHead": "64e0a34ac2ada5860a003944b4e1326ad6bb25b8" | ||
} |
@@ -64,2 +64,7 @@ import { AppConfig, AppManifest, AppModulesInstance, AppScriptModule } from '../types'; | ||
get state(): AppBundleState { | ||
// todo deep-freeze | ||
return this.#state.value; | ||
} | ||
get appKey(): string { | ||
@@ -66,0 +71,0 @@ return this.#state.value.appKey; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
248528
2054