@equinor/fusion-framework-module-widget 16.0.9 → 16.0.11
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/Widget.js +3 -3
- package/dist/esm/Widget.js.map +1 -1
- package/dist/esm/WidgetModuleConfigurator.js +1 -1
- package/dist/esm/WidgetModuleConfigurator.js.map +1 -1
- package/dist/esm/WidgetModuleProvider.js +2 -2
- package/dist/esm/WidgetModuleProvider.js.map +1 -1
- package/dist/esm/enable-widget-module.js +1 -1
- package/dist/esm/enable-widget-module.js.map +1 -1
- package/dist/esm/errors/index.js +11 -0
- package/dist/esm/errors/index.js.map +1 -0
- package/dist/esm/index.js +5 -5
- 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/state/create-reducer.js +1 -1
- package/dist/esm/state/create-reducer.js.map +1 -1
- package/dist/esm/state/create-state.js +2 -2
- package/dist/esm/state/create-state.js.map +1 -1
- package/dist/esm/state/flows.js +1 -1
- package/dist/esm/state/flows.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/Widget.d.ts +4 -4
- package/dist/types/WidgetModuleConfigurator.d.ts +1 -1
- package/dist/types/WidgetModuleProvider.d.ts +3 -3
- package/dist/types/enable-widget-module.d.ts +1 -1
- package/dist/types/errors/index.d.ts +10 -0
- package/dist/types/events.d.ts +2 -2
- package/dist/types/index.d.ts +6 -6
- package/dist/types/module.d.ts +3 -3
- package/dist/types/state/actions.d.ts +1 -1
- package/dist/types/state/create-reducer.d.ts +9 -9
- package/dist/types/state/create-state.d.ts +3 -3
- package/dist/types/state/flows.d.ts +3 -3
- package/dist/types/utils.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +19 -17
package/dist/types/Widget.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ModuleType } from '@equinor/fusion-framework-module';
|
|
2
|
-
import type { GetWidgetParameters, WidgetConfig, WidgetManifest, WidgetScriptModule, WidgetState, WidgetStateInitial } from './types';
|
|
2
|
+
import type { GetWidgetParameters, WidgetConfig, WidgetManifest, WidgetScriptModule, WidgetState, WidgetStateInitial } from './types.js';
|
|
3
3
|
import type { EventModule } from '@equinor/fusion-framework-module-event';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
-
import type WidgetModuleProvider from './WidgetModuleProvider';
|
|
6
|
-
import type { WidgetModuleConfig } from './WidgetModuleConfigurator';
|
|
7
|
-
import './events';
|
|
5
|
+
import type WidgetModuleProvider from './WidgetModuleProvider.js';
|
|
6
|
+
import type { WidgetModuleConfig } from './WidgetModuleConfigurator.js';
|
|
7
|
+
import './events.js';
|
|
8
8
|
/**
|
|
9
9
|
* Manages the full lifecycle of a single Fusion widget.
|
|
10
10
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseConfigBuilder, type ConfigBuilderCallback } from '@equinor/fusion-framework-module';
|
|
2
2
|
import type { ConfigBuilderCallbackArgs } from '@equinor/fusion-framework-module';
|
|
3
|
-
import type { IClient } from './types';
|
|
3
|
+
import type { IClient } from './types.js';
|
|
4
4
|
/**
|
|
5
5
|
* Resolved configuration produced by {@link WidgetModuleConfigurator}.
|
|
6
6
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { GetWidgetParameters, WidgetConfig, WidgetManifest } from './types';
|
|
5
|
-
import type { WidgetModuleConfig } from './WidgetModuleConfigurator';
|
|
6
|
-
import { Widget } from './Widget';
|
|
4
|
+
import type { GetWidgetParameters, WidgetConfig, WidgetManifest } from './types.js';
|
|
5
|
+
import type { WidgetModuleConfig } from './WidgetModuleConfigurator.js';
|
|
6
|
+
import { Widget } from './Widget.js';
|
|
7
7
|
/**
|
|
8
8
|
* Public interface for the widget module provider.
|
|
9
9
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IModulesConfigurator } from '@equinor/fusion-framework-module';
|
|
2
|
-
import type { WidgetModuleConfigBuilderCallback } from './WidgetModuleConfigurator';
|
|
2
|
+
import type { WidgetModuleConfigBuilderCallback } from './WidgetModuleConfigurator.js';
|
|
3
3
|
/**
|
|
4
4
|
* Registers the widget module on a Fusion Framework configurator.
|
|
5
5
|
*
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Error classes thrown while loading widget manifests, configs, and script modules.
|
|
3
|
+
*
|
|
4
|
+
* Published as the `@equinor/fusion-framework-module-widget/errors.js` sub-path.
|
|
5
|
+
*
|
|
6
|
+
* @packageDocumentation
|
|
7
|
+
*/
|
|
8
|
+
export { WidgetManifestLoadError } from '../WidgetManifestLoadError.js';
|
|
9
|
+
export { WidgetConfigLoadError } from './WidgetConfigLoadError.js';
|
|
10
|
+
export { WidgetScriptModuleError } from './WidgetScriptModuleError.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 { Widget } from './Widget';
|
|
3
|
-
import type { WidgetConfig, WidgetManifest, WidgetModulesInstance, WidgetScriptModule } from './types';
|
|
2
|
+
import type { Widget } from './Widget.js';
|
|
3
|
+
import type { WidgetConfig, WidgetManifest, WidgetModulesInstance, WidgetScriptModule } from './types.js';
|
|
4
4
|
/**
|
|
5
5
|
* Base event-init shape for all widget lifecycle events.
|
|
6
6
|
*
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
*/
|
|
10
|
-
export { WidgetModuleConfigurator, type WidgetModuleConfig } from './WidgetModuleConfigurator';
|
|
11
|
-
export { WidgetModuleProvider } from './WidgetModuleProvider';
|
|
12
|
-
export type { IWidgetModuleProvider } from './WidgetModuleProvider';
|
|
13
|
-
export * from './types';
|
|
14
|
-
export { enableWidgetModule } from './enable-widget-module';
|
|
15
|
-
export { default, type WidgetModule, module, moduleKey } from './module';
|
|
10
|
+
export { WidgetModuleConfigurator, type WidgetModuleConfig } from './WidgetModuleConfigurator.js';
|
|
11
|
+
export { WidgetModuleProvider } from './WidgetModuleProvider.js';
|
|
12
|
+
export type { IWidgetModuleProvider } from './WidgetModuleProvider.js';
|
|
13
|
+
export * from './types.js';
|
|
14
|
+
export { enableWidgetModule } from './enable-widget-module.js';
|
|
15
|
+
export { default, type WidgetModule, 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 { WidgetModuleConfigurator } from './WidgetModuleConfigurator';
|
|
4
|
-
import { type IWidgetModuleProvider } from './WidgetModuleProvider';
|
|
2
|
+
import type { ModuleDeps } from './types.js';
|
|
3
|
+
import { WidgetModuleConfigurator } from './WidgetModuleConfigurator.js';
|
|
4
|
+
import { type IWidgetModuleProvider } from './WidgetModuleProvider.js';
|
|
5
5
|
/** Module registration key used in the Fusion Framework module map. */
|
|
6
6
|
export declare const moduleKey = "widget";
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ActionInstanceMap, type ActionTypes } from '@equinor/fusion-observable';
|
|
2
|
-
import type { GetWidgetParameters, WidgetConfig, WidgetManifest, WidgetModulesInstance, WidgetScriptModule } from '../types';
|
|
2
|
+
import type { GetWidgetParameters, WidgetConfig, WidgetManifest, WidgetModulesInstance, WidgetScriptModule } from '../types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Factory that creates all widget state-machine actions.
|
|
5
5
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WidgetStateInitial, WidgetState } from '../types';
|
|
1
|
+
import type { WidgetStateInitial, WidgetState } from '../types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Creates an Immer-powered reducer for the widget state machine.
|
|
4
4
|
*
|
|
@@ -34,31 +34,31 @@ export declare const createReducer: (value: WidgetStateInitial) => import("@equi
|
|
|
34
34
|
payload: string;
|
|
35
35
|
type: "import_widget::request";
|
|
36
36
|
} | {
|
|
37
|
-
payload: import("
|
|
37
|
+
payload: import("../types.js").WidgetConfig;
|
|
38
38
|
type: "fetch_config::success";
|
|
39
39
|
} | {
|
|
40
|
-
payload: import("
|
|
40
|
+
payload: import("../types.js").WidgetConfig;
|
|
41
41
|
type: "set_config";
|
|
42
42
|
} | {
|
|
43
|
-
payload: import("
|
|
43
|
+
payload: import("../types.js").WidgetManifest;
|
|
44
44
|
type: "fetch_manifest::success";
|
|
45
45
|
} | {
|
|
46
|
-
payload: import("
|
|
46
|
+
payload: import("../types.js").WidgetScriptModule;
|
|
47
47
|
type: "import_widget::success";
|
|
48
48
|
} | {
|
|
49
|
-
payload: import("
|
|
49
|
+
payload: import("../types.js").WidgetModulesInstance;
|
|
50
50
|
type: "set_instance";
|
|
51
|
-
} | import("@equinor/fusion-observable").PayloadAction<import("
|
|
51
|
+
} | import("@equinor/fusion-observable").PayloadAction<import("../types.js").WidgetManifest, "set_manifest", {
|
|
52
52
|
created: number;
|
|
53
53
|
update: boolean | undefined;
|
|
54
54
|
}, never> | import("@equinor/fusion-observable").PayloadAction<{
|
|
55
55
|
key: string;
|
|
56
|
-
args?: import("
|
|
56
|
+
args?: import("../types.js").GetWidgetParameters['args'];
|
|
57
57
|
}, "fetch_manifest::request", {
|
|
58
58
|
update: boolean | undefined;
|
|
59
59
|
}, never> | import("@equinor/fusion-observable").PayloadAction<{
|
|
60
60
|
key: string;
|
|
61
|
-
args?: import("
|
|
61
|
+
args?: import("../types.js").GetWidgetParameters['args'];
|
|
62
62
|
}, "fetch_config::request", {
|
|
63
63
|
update: boolean | undefined;
|
|
64
64
|
}, never>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FlowSubject } from '@equinor/fusion-observable';
|
|
2
|
-
import type { Actions } from './actions';
|
|
3
|
-
import type { WidgetState, WidgetStateInitial } from '../types';
|
|
4
|
-
import type WidgetModuleProvider from '../WidgetModuleProvider';
|
|
2
|
+
import type { Actions } from './actions.js';
|
|
3
|
+
import type { WidgetState, WidgetStateInitial } from '../types.js';
|
|
4
|
+
import type WidgetModuleProvider from '../WidgetModuleProvider.js';
|
|
5
5
|
/**
|
|
6
6
|
* Creates and wires the RxJS-based `FlowSubject` state machine for a single
|
|
7
7
|
* widget.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Flow } from '@equinor/fusion-observable';
|
|
2
|
-
import type { Actions } from './actions';
|
|
3
|
-
import type { WidgetState } from '../types';
|
|
4
|
-
import type WidgetModuleProvider from '../WidgetModuleProvider';
|
|
2
|
+
import type { Actions } from './actions.js';
|
|
3
|
+
import type { WidgetState } from '../types.js';
|
|
4
|
+
import type WidgetModuleProvider from '../WidgetModuleProvider.js';
|
|
5
5
|
/**
|
|
6
6
|
* RxJS flow that reacts to `fetchManifest` actions by querying the
|
|
7
7
|
* {@link WidgetModuleProvider} for the manifest, emitting intermediate
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IClient, WidgetEndpointBuilder } from './types';
|
|
1
|
+
import type { IClient, WidgetEndpointBuilder } from './types.js';
|
|
2
2
|
import type { IHttpClient } from '@equinor/fusion-framework-module-http';
|
|
3
3
|
/**
|
|
4
4
|
* Creates a {@link WidgetEndpointBuilder} that produces manifest endpoint URLs.
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "16.0.
|
|
1
|
+
export declare const version = "16.0.11";
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-module-widget",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.11",
|
|
4
4
|
"description": "",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "dist/esm/index.js",
|
|
6
7
|
"types": "dist/types/index.d.ts",
|
|
7
8
|
"exports": {
|
|
@@ -10,8 +11,8 @@
|
|
|
10
11
|
"types": "./dist/types/index.d.ts"
|
|
11
12
|
},
|
|
12
13
|
"./errors.js": {
|
|
13
|
-
"import": "./dist/esm/errors.js",
|
|
14
|
-
"types": "./dist/types/errors.d.ts"
|
|
14
|
+
"import": "./dist/esm/errors/index.js",
|
|
15
|
+
"types": "./dist/types/errors/index.d.ts"
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
18
|
"typesVersions": {
|
|
@@ -20,7 +21,7 @@
|
|
|
20
21
|
"dist/types/index.d.ts"
|
|
21
22
|
],
|
|
22
23
|
"errors.js": [
|
|
23
|
-
"dist/types/errors.d.ts"
|
|
24
|
+
"dist/types/errors/index.d.ts"
|
|
24
25
|
]
|
|
25
26
|
}
|
|
26
27
|
},
|
|
@@ -39,24 +40,24 @@
|
|
|
39
40
|
"directory": "packages/modules/widget"
|
|
40
41
|
},
|
|
41
42
|
"dependencies": {
|
|
43
|
+
"@equinor/fusion-observable": "9.2.4",
|
|
44
|
+
"@equinor/fusion-query": "7.0.6",
|
|
42
45
|
"immer": "^11.0.0",
|
|
43
|
-
"rxjs": "^7.8.1"
|
|
44
|
-
"@equinor/fusion-observable": "9.2.3",
|
|
45
|
-
"@equinor/fusion-query": "7.0.5"
|
|
46
|
+
"rxjs": "^7.8.1"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
|
-
"
|
|
49
|
-
"@equinor/fusion-framework-module-event": "^6.1.
|
|
50
|
-
"@equinor/fusion-framework-module": "^
|
|
51
|
-
"@equinor/fusion-framework-module-
|
|
52
|
-
"@equinor/fusion-
|
|
53
|
-
"
|
|
49
|
+
"@equinor/fusion-framework-module": "^6.1.5",
|
|
50
|
+
"@equinor/fusion-framework-module-event": "^6.1.2",
|
|
51
|
+
"@equinor/fusion-framework-module-http": "^8.1.3",
|
|
52
|
+
"@equinor/fusion-framework-module-service-discovery": "^10.1.2",
|
|
53
|
+
"@equinor/fusion-query": "^7.0.6",
|
|
54
|
+
"typescript": "^7.0.2"
|
|
54
55
|
},
|
|
55
56
|
"peerDependencies": {
|
|
56
|
-
"@equinor/fusion-framework-module
|
|
57
|
-
"@equinor/fusion-framework-module-
|
|
58
|
-
"@equinor/fusion-framework-module": "
|
|
59
|
-
"@equinor/fusion-framework-module-service-discovery": "10.1.
|
|
57
|
+
"@equinor/fusion-framework-module": "6.1.5",
|
|
58
|
+
"@equinor/fusion-framework-module-event": "6.1.2",
|
|
59
|
+
"@equinor/fusion-framework-module-http": "8.1.3",
|
|
60
|
+
"@equinor/fusion-framework-module-service-discovery": "10.1.2"
|
|
60
61
|
},
|
|
61
62
|
"peerDependenciesMeta": {
|
|
62
63
|
"@equinor/fusion-framework-module-event": {
|
|
@@ -70,6 +71,7 @@
|
|
|
70
71
|
}
|
|
71
72
|
},
|
|
72
73
|
"scripts": {
|
|
74
|
+
"prebuild": "node ../../../.github/scripts/generate-versions.mjs",
|
|
73
75
|
"build": "tsc -b"
|
|
74
76
|
}
|
|
75
77
|
}
|