@equinor/fusion-framework-module-app 8.1.2 → 8.2.1
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/AppClient.js +3 -3
- package/dist/esm/AppClient.js.map +1 -1
- package/dist/esm/AppConfigSelector.js +2 -2
- package/dist/esm/AppConfigSelector.js.map +1 -1
- package/dist/esm/AppConfigurator.js +1 -1
- package/dist/esm/AppConfigurator.js.map +1 -1
- package/dist/esm/AppModuleProvider.js +2 -2
- package/dist/esm/AppModuleProvider.js.map +1 -1
- package/dist/esm/app/App.js +5 -5
- package/dist/esm/app/App.js.map +1 -1
- package/dist/esm/app/create-reducer.js +1 -1
- package/dist/esm/app/create-reducer.js.map +1 -1
- package/dist/esm/app/create-state.js +2 -2
- package/dist/esm/app/create-state.js.map +1 -1
- package/dist/esm/app/flows/handle-fetch-config.js +1 -1
- package/dist/esm/app/flows/handle-fetch-config.js.map +1 -1
- package/dist/esm/app/flows/handle-fetch-manifest.js +1 -1
- package/dist/esm/app/flows/handle-fetch-manifest.js.map +1 -1
- package/dist/esm/app/flows/handle-fetch-settings.js +1 -1
- package/dist/esm/app/flows/handle-fetch-settings.js.map +1 -1
- package/dist/esm/app/flows/handle-import-application.js +1 -1
- package/dist/esm/app/flows/handle-import-application.js.map +1 -1
- package/dist/esm/app/flows/handle-update-settings.js +1 -1
- package/dist/esm/app/flows/handle-update-settings.js.map +1 -1
- package/dist/esm/app/flows/index.js +5 -5
- package/dist/esm/app/flows/index.js.map +1 -1
- package/dist/esm/app/index.js +2 -2
- package/dist/esm/app/index.js.map +1 -1
- package/dist/esm/enable-app-module.js +1 -1
- package/dist/esm/enable-app-module.js.map +1 -1
- package/dist/esm/errors.js +5 -5
- package/dist/esm/errors.js.map +1 -1
- package/dist/esm/events.js +1 -1
- package/dist/esm/events.js.map +1 -1
- package/dist/esm/index.js +8 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/module.js +2 -2
- package/dist/esm/module.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/AppClient.d.ts +1 -1
- package/dist/types/AppConfigSelector.d.ts +1 -1
- package/dist/types/AppConfigurator.d.ts +1 -1
- package/dist/types/AppModuleProvider.d.ts +4 -4
- package/dist/types/app/App.d.ts +5 -5
- package/dist/types/app/actions.d.ts +5 -5
- package/dist/types/app/create-reducer.d.ts +12 -12
- package/dist/types/app/create-state.d.ts +3 -3
- package/dist/types/app/events.d.ts +2 -2
- package/dist/types/app/flows/handle-fetch-config.d.ts +3 -3
- package/dist/types/app/flows/handle-fetch-manifest.d.ts +3 -3
- package/dist/types/app/flows/handle-fetch-settings.d.ts +3 -3
- package/dist/types/app/flows/handle-import-application.d.ts +3 -3
- package/dist/types/app/flows/handle-update-settings.d.ts +3 -3
- package/dist/types/app/flows/index.d.ts +5 -5
- package/dist/types/app/index.d.ts +2 -2
- package/dist/types/app/types.d.ts +2 -2
- package/dist/types/enable-app-module.d.ts +1 -1
- package/dist/types/errors/AppBuildError.d.ts +1 -1
- package/dist/types/errors/AppConfigError.d.ts +1 -1
- package/dist/types/errors/AppManifestError.d.ts +1 -1
- package/dist/types/errors/AppScriptModuleError.d.ts +1 -1
- package/dist/types/errors/AppSettingsError.d.ts +1 -1
- package/dist/types/errors.d.ts +6 -6
- package/dist/types/events.d.ts +2 -2
- package/dist/types/index.d.ts +9 -9
- package/dist/types/module.d.ts +3 -3
- package/dist/types/types.d.ts +5 -3
- package/dist/types/version.d.ts +1 -1
- package/package.json +13 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Observable, type ObservableInput } from 'rxjs';
|
|
2
2
|
import { type IHttpClient } from '@equinor/fusion-framework-module-http';
|
|
3
|
-
import type { AppBuildManifest, AppConfig, AppManifest, AppSettings, ConfigEnvironment } from './types';
|
|
3
|
+
import type { AppBuildManifest, AppConfig, AppManifest, AppSettings, ConfigEnvironment } from './types.js';
|
|
4
4
|
/**
|
|
5
5
|
* Contract for an app service client that fetches application manifests,
|
|
6
6
|
* build metadata, configurations, and per-user settings from the Fusion apps API.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ResponseSelector } from '@equinor/fusion-framework-module-http/selectors';
|
|
2
|
-
import { AppConfig } from './AppConfig';
|
|
2
|
+
import { AppConfig } from './AppConfig.js';
|
|
3
3
|
/**
|
|
4
4
|
* Asynchronously selects and parses the application configuration from the given response.
|
|
5
5
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseConfigBuilder, type ConfigBuilderCallback, type ModuleInitializerArgs } from '@equinor/fusion-framework-module';
|
|
2
2
|
import type { HttpModule, IHttpClient } from '@equinor/fusion-framework-module-http';
|
|
3
3
|
import type { ServiceDiscoveryModule } from '@equinor/fusion-framework-module-service-discovery';
|
|
4
|
-
import { type IAppClient } from './AppClient';
|
|
4
|
+
import { type IAppClient } from './AppClient.js';
|
|
5
5
|
/**
|
|
6
6
|
* Resolved configuration for the app module.
|
|
7
7
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type Observable } from 'rxjs';
|
|
2
2
|
import type { ModuleType } from '@equinor/fusion-framework-module';
|
|
3
3
|
import type { EventModule } from '@equinor/fusion-framework-module-event';
|
|
4
|
-
import type { AppConfig, AppManifest, AppReference, AppSettings, ConfigEnvironment, CurrentApp } from './types';
|
|
5
|
-
import { App, type IApp } from './app/App';
|
|
6
|
-
import type { AppModuleConfig } from './AppConfigurator';
|
|
7
|
-
import type { AppBundleStateInitial } from './app/types';
|
|
4
|
+
import type { AppConfig, AppManifest, AppReference, AppSettings, ConfigEnvironment, CurrentApp } from './types.js';
|
|
5
|
+
import { App, type IApp } from './app/App.js';
|
|
6
|
+
import type { AppModuleConfig } from './AppConfigurator.js';
|
|
7
|
+
import type { AppBundleStateInitial } from './app/types.js';
|
|
8
8
|
import { SemanticVersion } from '@equinor/fusion-framework-module';
|
|
9
9
|
/**
|
|
10
10
|
* Runtime provider for the app module.
|
package/dist/types/app/App.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { AppModulesInstance, AppScriptModule, AppManifest, AppConfig, AppSettings, ConfigEnvironment } from '../types';
|
|
1
|
+
import type { AppModulesInstance, AppScriptModule, AppManifest, AppConfig, AppSettings, ConfigEnvironment } from '../types.js';
|
|
2
2
|
import { Observable } from '@equinor/fusion-observable';
|
|
3
|
-
import type { AppModuleProvider } from '../AppModuleProvider';
|
|
3
|
+
import type { AppModuleProvider } from '../AppModuleProvider.js';
|
|
4
4
|
import type { EventModule } from '@equinor/fusion-framework-module-event';
|
|
5
5
|
import type { AnyModule, ModuleType } from '@equinor/fusion-framework-module';
|
|
6
|
-
import type { AppBundleState, AppBundleStateInitial } from './types';
|
|
7
|
-
import './events';
|
|
8
|
-
export { filterEmpty } from './filter-empty';
|
|
6
|
+
import type { AppBundleState, AppBundleStateInitial } from './types.js';
|
|
7
|
+
import './events.js';
|
|
8
|
+
export { filterEmpty } from './filter-empty.js';
|
|
9
9
|
/**
|
|
10
10
|
* Public interface for a single loaded Fusion application.
|
|
11
11
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ActionInstanceMap, type ActionTypes } from '@equinor/fusion-observable';
|
|
2
|
-
import type { AppConfig, AppManifest, AppModulesInstance, AppScriptModule, AppSettings } from '../types';
|
|
2
|
+
import type { AppConfig, AppManifest, AppModulesInstance, AppScriptModule, AppSettings } from '../types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Factory function that creates all action creators used by the {@link App}
|
|
5
5
|
* state machine.
|
|
@@ -28,9 +28,9 @@ declare const createActions: () => {
|
|
|
28
28
|
failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[error: unknown], unknown, "fetch_manifest::failure", never, never>;
|
|
29
29
|
};
|
|
30
30
|
/** Config loading */
|
|
31
|
-
setConfig: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[config: AppConfig<import("../AppConfig").ConfigEnvironment>], AppConfig<import("../AppConfig").ConfigEnvironment>, "set_config", never, never>;
|
|
31
|
+
setConfig: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[config: AppConfig<import("../AppConfig.js").ConfigEnvironment>], AppConfig<import("../AppConfig.js").ConfigEnvironment>, "set_config", never, never>;
|
|
32
32
|
fetchConfig: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[manifest: AppManifest], AppManifest, "fetch_config::request", never, never> & {
|
|
33
|
-
success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[config: AppConfig<import("../AppConfig").ConfigEnvironment>], AppConfig<import("../AppConfig").ConfigEnvironment>, "fetch_config::success", never, never>;
|
|
33
|
+
success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[config: AppConfig<import("../AppConfig.js").ConfigEnvironment>], AppConfig<import("../AppConfig.js").ConfigEnvironment>, "fetch_config::success", never, never>;
|
|
34
34
|
failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[error: unknown], unknown, "fetch_config::failure", never, never>;
|
|
35
35
|
};
|
|
36
36
|
/** Settings loading */
|
|
@@ -80,9 +80,9 @@ export declare const actions: {
|
|
|
80
80
|
failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[error: unknown], unknown, "fetch_manifest::failure", never, never>;
|
|
81
81
|
};
|
|
82
82
|
/** Config loading */
|
|
83
|
-
setConfig: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[config: AppConfig<import("../AppConfig").ConfigEnvironment>], AppConfig<import("../AppConfig").ConfigEnvironment>, "set_config", never, never>;
|
|
83
|
+
setConfig: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[config: AppConfig<import("../AppConfig.js").ConfigEnvironment>], AppConfig<import("../AppConfig.js").ConfigEnvironment>, "set_config", never, never>;
|
|
84
84
|
fetchConfig: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[manifest: AppManifest], AppManifest, "fetch_config::request", never, never> & {
|
|
85
|
-
success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[config: AppConfig<import("../AppConfig").ConfigEnvironment>], AppConfig<import("../AppConfig").ConfigEnvironment>, "fetch_config::success", never, never>;
|
|
85
|
+
success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[config: AppConfig<import("../AppConfig.js").ConfigEnvironment>], AppConfig<import("../AppConfig.js").ConfigEnvironment>, "fetch_config::success", never, never>;
|
|
86
86
|
failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[error: unknown], unknown, "fetch_config::failure", never, never>;
|
|
87
87
|
};
|
|
88
88
|
/** Settings loading */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppBundleState, AppBundleStateInitial } from './types';
|
|
1
|
+
import type { AppBundleState, AppBundleStateInitial } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Creates the Immer-powered reducer for the {@link App} state machine.
|
|
4
4
|
*
|
|
@@ -42,25 +42,25 @@ export declare const createReducer: (value: AppBundleStateInitial) => import("@e
|
|
|
42
42
|
payload: string;
|
|
43
43
|
type: "update_settings::abort";
|
|
44
44
|
} | {
|
|
45
|
-
payload: import("
|
|
45
|
+
payload: import("../AppConfig.js").AppConfig<import("../AppConfig.js").ConfigEnvironment>;
|
|
46
46
|
type: "fetch_config::success";
|
|
47
47
|
} | {
|
|
48
|
-
payload: import("
|
|
48
|
+
payload: import("../AppConfig.js").AppConfig<import("../AppConfig.js").ConfigEnvironment>;
|
|
49
49
|
type: "set_config";
|
|
50
50
|
} | {
|
|
51
|
-
payload: import("
|
|
51
|
+
payload: import("../types.js").AppManifest;
|
|
52
52
|
type: "fetch_config::request";
|
|
53
53
|
} | {
|
|
54
|
-
payload: import("
|
|
54
|
+
payload: import("../types.js").AppManifest;
|
|
55
55
|
type: "fetch_manifest::success";
|
|
56
56
|
} | {
|
|
57
|
-
payload: import("
|
|
57
|
+
payload: import("../types.js").AppScriptModule;
|
|
58
58
|
type: "import_app::success";
|
|
59
59
|
} | {
|
|
60
|
-
payload: import("
|
|
60
|
+
payload: import("../types.js").AppSettings;
|
|
61
61
|
type: "fetch_settings::success";
|
|
62
62
|
} | {
|
|
63
|
-
payload: import("
|
|
63
|
+
payload: import("../types.js").AppSettings;
|
|
64
64
|
type: "update_settings::success";
|
|
65
65
|
} | {
|
|
66
66
|
payload: {
|
|
@@ -70,16 +70,16 @@ export declare const createReducer: (value: AppBundleStateInitial) => import("@e
|
|
|
70
70
|
} | {
|
|
71
71
|
payload: {
|
|
72
72
|
appKey: string;
|
|
73
|
-
settings: import("
|
|
73
|
+
settings: import("../types.js").AppSettings;
|
|
74
74
|
};
|
|
75
75
|
type: "update_settings::request";
|
|
76
76
|
} | {
|
|
77
|
-
payload: import("
|
|
77
|
+
payload: import("../types.js").AppSettings | undefined;
|
|
78
78
|
type: "set_settings";
|
|
79
79
|
} | {
|
|
80
|
-
payload: import("
|
|
80
|
+
payload: import("../types.js").AppModulesInstance;
|
|
81
81
|
type: "set_instance";
|
|
82
|
-
} | import("@equinor/fusion-observable").PayloadAction<import("
|
|
82
|
+
} | import("@equinor/fusion-observable").PayloadAction<import("../types.js").AppManifest, "set_manifest", {
|
|
83
83
|
created: number;
|
|
84
84
|
update: boolean | undefined;
|
|
85
85
|
}, never> | import("@equinor/fusion-observable").PayloadAction<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FlowSubject } from '@equinor/fusion-observable';
|
|
2
|
-
import type { Actions } from './actions';
|
|
3
|
-
import type { AppBundleState, AppBundleStateInitial } from './types';
|
|
4
|
-
import type { AppModuleProvider } from '../AppModuleProvider';
|
|
2
|
+
import type { Actions } from './actions.js';
|
|
3
|
+
import type { AppBundleState, AppBundleStateInitial } from './types.js';
|
|
4
|
+
import type { AppModuleProvider } from '../AppModuleProvider.js';
|
|
5
5
|
/**
|
|
6
6
|
* Creates and configures the reactive state machine ({@link FlowSubject}) for
|
|
7
7
|
* an {@link App} instance.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FrameworkEvent, FrameworkEventInit } from '@equinor/fusion-framework-module-event';
|
|
2
|
-
import type { App } from './App';
|
|
3
|
-
import type { AppConfig, AppManifest, AppModulesInstance, AppScriptModule, AppSettings } from '../types';
|
|
2
|
+
import type { App } from './App.js';
|
|
3
|
+
import type { AppConfig, AppManifest, AppModulesInstance, AppScriptModule, AppSettings } from '../types.js';
|
|
4
4
|
/**
|
|
5
5
|
* Base event initialization type for application lifecycle events.
|
|
6
6
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Flow } from '@equinor/fusion-observable';
|
|
2
|
-
import type { AppModuleProvider } from '../../AppModuleProvider';
|
|
3
|
-
import type { Actions } from '../actions';
|
|
4
|
-
import type { AppBundleState } from '../types';
|
|
2
|
+
import type { AppModuleProvider } from '../../AppModuleProvider.js';
|
|
3
|
+
import type { Actions } from '../actions.js';
|
|
4
|
+
import type { AppBundleState } from '../types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Handles the fetch config action by fetching the app configuration from the provider,
|
|
7
7
|
* filtering out null values, and dispatching success or failure actions accordingly.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Flow } from '@equinor/fusion-observable';
|
|
2
|
-
import type { AppModuleProvider } from '../../AppModuleProvider';
|
|
3
|
-
import type { Actions } from '../actions';
|
|
4
|
-
import type { AppBundleState } from '../types';
|
|
2
|
+
import type { AppModuleProvider } from '../../AppModuleProvider.js';
|
|
3
|
+
import type { Actions } from '../actions.js';
|
|
4
|
+
import type { AppBundleState } from '../types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Handles the fetch manifest action by fetching the app manifest from the provider,
|
|
7
7
|
* dispatching success or failure actions based on the result.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Flow } from '@equinor/fusion-observable';
|
|
2
|
-
import type { AppModuleProvider } from '../../AppModuleProvider';
|
|
3
|
-
import type { Actions } from '../actions';
|
|
4
|
-
import type { AppBundleState } from '../types';
|
|
2
|
+
import type { AppModuleProvider } from '../../AppModuleProvider.js';
|
|
3
|
+
import type { Actions } from '../actions.js';
|
|
4
|
+
import type { AppBundleState } from '../types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Handles the fetch settings action by fetching the app settings from the provider,
|
|
7
7
|
* filtering out null values, and dispatching success or failure actions accordingly.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Flow } from '@equinor/fusion-observable';
|
|
2
|
-
import type { AppModuleProvider } from '../../AppModuleProvider';
|
|
3
|
-
import type { Actions } from '../actions';
|
|
4
|
-
import type { AppBundleState } from '../types';
|
|
2
|
+
import type { AppModuleProvider } from '../../AppModuleProvider.js';
|
|
3
|
+
import type { Actions } from '../actions.js';
|
|
4
|
+
import type { AppBundleState } from '../types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Handles the import application flow.
|
|
7
7
|
* @param provider The AppModuleProvider used to resolve the application asset URI.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Flow } from '@equinor/fusion-observable';
|
|
2
|
-
import type { AppModuleProvider } from '../../AppModuleProvider';
|
|
3
|
-
import type { Actions } from '../actions';
|
|
4
|
-
import type { AppBundleState } from '../types';
|
|
2
|
+
import type { AppModuleProvider } from '../../AppModuleProvider.js';
|
|
3
|
+
import type { Actions } from '../actions.js';
|
|
4
|
+
import type { AppBundleState } from '../types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Handles the set settings action by setting the app settings from the provider,
|
|
7
7
|
* filtering out null values, and dispatching success or failure actions accordingly.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { handleFetchManifest } from './handle-fetch-manifest';
|
|
2
|
-
export { handleFetchConfig } from './handle-fetch-config';
|
|
3
|
-
export { handleFetchSettings } from './handle-fetch-settings';
|
|
4
|
-
export { handleUpdateSettings } from './handle-update-settings';
|
|
5
|
-
export { handleImportApplication } from './handle-import-application';
|
|
1
|
+
export { handleFetchManifest } from './handle-fetch-manifest.js';
|
|
2
|
+
export { handleFetchConfig } from './handle-fetch-config.js';
|
|
3
|
+
export { handleFetchSettings } from './handle-fetch-settings.js';
|
|
4
|
+
export { handleUpdateSettings } from './handle-update-settings.js';
|
|
5
|
+
export { handleImportApplication } from './handle-import-application.js';
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* - {@link IApp} – Public interface for an application instance.
|
|
6
6
|
* - {@link AppInitializeResult} – Shape emitted by `App.initialize()`.
|
|
7
7
|
*/
|
|
8
|
-
export { App, IApp, type AppInitializeResult } from './App';
|
|
9
|
-
export { default } from './App';
|
|
8
|
+
export { App, IApp, type AppInitializeResult } from './App.js';
|
|
9
|
+
export { default } from './App.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ActionBaseType } from '@equinor/fusion-observable';
|
|
2
|
-
import type { AppManifest, AppConfig, AppModulesInstance, AppScriptModule, ConfigEnvironment, AppSettings } from '../types';
|
|
3
|
-
import type { Actions } from './actions';
|
|
2
|
+
import type { AppManifest, AppConfig, AppModulesInstance, AppScriptModule, ConfigEnvironment, AppSettings } from '../types.js';
|
|
3
|
+
import type { Actions } from './actions.js';
|
|
4
4
|
/**
|
|
5
5
|
* Represents the state of an application bundle.
|
|
6
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IModulesConfigurator } from '@equinor/fusion-framework-module';
|
|
2
|
-
import type { AppConfigurator } from './AppConfigurator';
|
|
2
|
+
import type { AppConfigurator } from './AppConfigurator.js';
|
|
3
3
|
/**
|
|
4
4
|
* Registers the app module with a framework configurator.
|
|
5
5
|
*
|
package/dist/types/errors.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { AppManifestError } from './errors/AppManifestError';
|
|
2
|
-
export { AppConfigError } from './errors/AppConfigError';
|
|
3
|
-
export { AppBuildError } from './errors/AppBuildError';
|
|
4
|
-
export { AppSettingsError } from './errors/AppSettingsError';
|
|
5
|
-
export { AppScriptModuleError } from './errors/AppScriptModuleError';
|
|
6
|
-
export type { AppErrorType } from './errors/app-error-type';
|
|
1
|
+
export { AppManifestError } from './errors/AppManifestError.js';
|
|
2
|
+
export { AppConfigError } from './errors/AppConfigError.js';
|
|
3
|
+
export { AppBuildError } from './errors/AppBuildError.js';
|
|
4
|
+
export { AppSettingsError } from './errors/AppSettingsError.js';
|
|
5
|
+
export { AppScriptModuleError } from './errors/AppScriptModuleError.js';
|
|
6
|
+
export type { AppErrorType } from './errors/app-error-type.js';
|
package/dist/types/events.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FrameworkEvent, FrameworkEventInit } from '@equinor/fusion-framework-module-event';
|
|
2
|
-
import type { App } from './app/App';
|
|
3
|
-
import './app/events';
|
|
2
|
+
import type { App } from './app/App.js';
|
|
3
|
+
import './app/events.js';
|
|
4
4
|
declare module '@equinor/fusion-framework-module-event' {
|
|
5
5
|
interface FrameworkEventMap {
|
|
6
6
|
/** fired when the current selected application changes */
|
package/dist/types/index.d.ts
CHANGED
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
* };
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export { AppModuleConfig, AppConfigurator, IAppConfigurator, type AppModuleConfig as IAppModuleConfig, } from './AppConfigurator';
|
|
20
|
-
export { AppClient, type IAppClient } from './AppClient';
|
|
21
|
-
export { AppConfig } from './AppConfig';
|
|
22
|
-
export { AppModuleProvider } from './AppModuleProvider';
|
|
23
|
-
export { IApp } from './app/App';
|
|
24
|
-
export * from './events';
|
|
25
|
-
export * from './types';
|
|
26
|
-
export { enableAppModule } from './enable-app-module';
|
|
27
|
-
export { default, AppModule, module, moduleKey } from './module';
|
|
19
|
+
export { AppModuleConfig, AppConfigurator, IAppConfigurator, type AppModuleConfig as IAppModuleConfig, } from './AppConfigurator.js';
|
|
20
|
+
export { AppClient, type IAppClient } from './AppClient.js';
|
|
21
|
+
export { AppConfig } from './AppConfig.js';
|
|
22
|
+
export { AppModuleProvider } from './AppModuleProvider.js';
|
|
23
|
+
export { IApp } from './app/App.js';
|
|
24
|
+
export * from './events.js';
|
|
25
|
+
export * from './types.js';
|
|
26
|
+
export { enableAppModule } from './enable-app-module.js';
|
|
27
|
+
export { default, AppModule, module, moduleKey } from './module.js';
|
package/dist/types/module.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Module } from '@equinor/fusion-framework-module';
|
|
2
|
-
import type { ModuleDeps } from './types';
|
|
3
|
-
import { AppConfigurator } from './AppConfigurator';
|
|
4
|
-
import { AppModuleProvider } from './AppModuleProvider';
|
|
2
|
+
import type { ModuleDeps } from './types.js';
|
|
3
|
+
import { AppConfigurator } from './AppConfigurator.js';
|
|
4
|
+
import { AppModuleProvider } from './AppModuleProvider.js';
|
|
5
5
|
/** Module key used to register and look up the app module in the framework. */
|
|
6
6
|
export declare const moduleKey = "app";
|
|
7
7
|
/**
|
package/dist/types/types.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ import type { EventModule } from '@equinor/fusion-framework-module-event';
|
|
|
3
3
|
import type { HttpModule } from '@equinor/fusion-framework-module-http';
|
|
4
4
|
import type { MsalModule } from '@equinor/fusion-framework-module-msal';
|
|
5
5
|
import type { ServiceDiscoveryModule } from '@equinor/fusion-framework-module-service-discovery';
|
|
6
|
-
import type { AppConfig } from './AppConfig';
|
|
7
|
-
import type IApp from './app';
|
|
6
|
+
import type { AppConfig } from './AppConfig.js';
|
|
7
|
+
import type IApp from './app/index.js';
|
|
8
8
|
/**
|
|
9
9
|
* Re-export of {@link ConfigEnvironment} from AppConfig.
|
|
10
10
|
*/
|
|
11
11
|
export type ConfigEnvironment = Record<string, unknown>;
|
|
12
|
-
export type { AppConfig } from './AppConfig';
|
|
12
|
+
export type { AppConfig } from './AppConfig.js';
|
|
13
13
|
type Fusion = any;
|
|
14
14
|
/**
|
|
15
15
|
* Environment bindings passed to an application at render time,
|
|
@@ -210,6 +210,8 @@ export type AppModules<TModules extends Array<AnyModule> | unknown = unknown> =
|
|
|
210
210
|
export type ComponentRenderArgs<TFusion extends Fusion = Fusion, TEnv = AppEnv> = {
|
|
211
211
|
fusion: TFusion;
|
|
212
212
|
env: TEnv;
|
|
213
|
+
/** Receives uncaught errors raised while the application renders or initializes its modules. */
|
|
214
|
+
onError?: (error: unknown) => void;
|
|
213
215
|
};
|
|
214
216
|
/**
|
|
215
217
|
* Shape of the ES module exported by an application's script bundle.
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "8.1
|
|
1
|
+
export declare const version = "8.2.1";
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-module-app",
|
|
3
|
-
"version": "8.1
|
|
3
|
+
"version": "8.2.1",
|
|
4
4
|
"description": "",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "dist/esm/index.js",
|
|
6
7
|
"exports": {
|
|
7
8
|
".": {
|
|
@@ -66,25 +67,26 @@
|
|
|
66
67
|
"directory": "packages/modules/app"
|
|
67
68
|
},
|
|
68
69
|
"dependencies": {
|
|
70
|
+
"@equinor/fusion-observable": "^9.2.4",
|
|
71
|
+
"@equinor/fusion-query": "^7.0.6",
|
|
69
72
|
"fast-deep-equal": "^3.1.3",
|
|
70
73
|
"immer": "^11.0.0",
|
|
71
74
|
"rxjs": "^7.8.1",
|
|
72
75
|
"uuid": "^14.0.0",
|
|
73
|
-
"zod": "^4.4.3"
|
|
74
|
-
"@equinor/fusion-observable": "^9.2.2",
|
|
75
|
-
"@equinor/fusion-query": "^7.0.5"
|
|
76
|
+
"zod": "^4.4.3"
|
|
76
77
|
},
|
|
77
78
|
"devDependencies": {
|
|
79
|
+
"@equinor/fusion-framework": "^9.0.2",
|
|
80
|
+
"@equinor/fusion-framework-module": "^6.1.5",
|
|
81
|
+
"@equinor/fusion-framework-module-event": "^6.1.2",
|
|
82
|
+
"@equinor/fusion-framework-module-http": "^8.1.3",
|
|
83
|
+
"@equinor/fusion-framework-module-msal": "^12.0.1",
|
|
84
|
+
"@equinor/fusion-framework-module-service-discovery": "^10.1.2",
|
|
78
85
|
"typescript": "^7.0.2",
|
|
79
|
-
"vitest": "^4.1.10"
|
|
80
|
-
"@equinor/fusion-framework": "^8.1.2",
|
|
81
|
-
"@equinor/fusion-framework-module-event": "^6.1.1",
|
|
82
|
-
"@equinor/fusion-framework-module-msal": "^11.0.2",
|
|
83
|
-
"@equinor/fusion-framework-module-service-discovery": "^10.1.1",
|
|
84
|
-
"@equinor/fusion-framework-module-http": "^8.1.1",
|
|
85
|
-
"@equinor/fusion-framework-module": "^6.1.4"
|
|
86
|
+
"vitest": "^4.1.10"
|
|
86
87
|
},
|
|
87
88
|
"scripts": {
|
|
89
|
+
"prebuild": "node ../../../.github/scripts/generate-versions.mjs",
|
|
88
90
|
"build": "tsc -b",
|
|
89
91
|
"test": "vitest run"
|
|
90
92
|
}
|