@equinor/fusion-framework-module-app 8.1.1 → 8.2.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.
@@ -31,6 +31,10 @@ export interface IAppConfigurator {
31
31
  /**
32
32
  * Sets the base URI used to proxy-load application script bundles.
33
33
  *
34
+ * Use this when the host exposes app resources through a proxy: the configured URI is
35
+ * prepended to each bundle path before the module imports it. A callback can resolve the
36
+ * proxy URI from the module initializer when it is not known statically.
37
+ *
34
38
  * @param base_or_cb - A static URI string or a callback returning one.
35
39
  */
36
40
  setAssetUri: (base_or_cb: string | ConfigBuilderCallback<string>) => void;
@@ -64,7 +68,9 @@ export declare class AppConfigurator extends BaseConfigBuilder<AppModuleConfig>
64
68
  /**
65
69
  * Sets the base URI used to proxy-load application script bundles.
66
70
  *
67
- * TODO(#5132) - explain why, used in import of resources aka proxy url
71
+ * Use this when the host exposes app resources through a proxy: the configured URI is
72
+ * prepended to each bundle path before the module imports it. A callback can resolve the
73
+ * proxy URI from the module initializer when it is not known statically.
68
74
  *
69
75
  * @param base_or_cb - A static URI string or a callback returning one.
70
76
  */
@@ -0,0 +1 @@
1
+ export {};
@@ -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.
@@ -1 +1 @@
1
- export declare const version = "8.1.1";
1
+ export declare const version = "8.2.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-module-app",
3
- "version": "8.1.1",
3
+ "version": "8.2.0",
4
4
  "description": "",
5
5
  "main": "dist/esm/index.js",
6
6
  "exports": {
@@ -77,12 +77,12 @@
77
77
  "devDependencies": {
78
78
  "typescript": "^7.0.2",
79
79
  "vitest": "^4.1.10",
80
- "@equinor/fusion-framework": "^8.1.1",
81
- "@equinor/fusion-framework-module-event": "^6.1.1",
80
+ "@equinor/fusion-framework": "^8.1.3",
82
81
  "@equinor/fusion-framework-module": "^6.1.4",
83
- "@equinor/fusion-framework-module-http": "^8.1.1",
84
- "@equinor/fusion-framework-module-msal": "^11.0.1",
85
- "@equinor/fusion-framework-module-service-discovery": "^10.1.1"
82
+ "@equinor/fusion-framework-module-event": "^6.1.1",
83
+ "@equinor/fusion-framework-module-msal": "^11.0.3",
84
+ "@equinor/fusion-framework-module-service-discovery": "^10.1.1",
85
+ "@equinor/fusion-framework-module-http": "^8.1.1"
86
86
  },
87
87
  "scripts": {
88
88
  "build": "tsc -b",