@equinor/fusion-framework-module-widget 9.0.2 → 9.0.4

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +185 -162
  2. package/dist/esm/Widget.js +3 -2
  3. package/dist/esm/Widget.js.map +1 -1
  4. package/dist/esm/WidgetModuleConfigurator.js.map +1 -1
  5. package/dist/esm/WidgetModuleProvider.js.map +1 -1
  6. package/dist/esm/enable-widget-module.js.map +1 -1
  7. package/dist/esm/errors.js.map +1 -1
  8. package/dist/esm/module.js.map +1 -1
  9. package/dist/esm/state/actions.js.map +1 -1
  10. package/dist/esm/state/create-reducer.js.map +1 -1
  11. package/dist/esm/state/create-state.js.map +1 -1
  12. package/dist/esm/state/flows.js.map +1 -1
  13. package/dist/esm/utils.js.map +1 -1
  14. package/dist/esm/version.js +1 -1
  15. package/dist/tsconfig.tsbuildinfo +1 -1
  16. package/dist/types/Widget.d.ts +5 -5
  17. package/dist/types/WidgetModuleConfigurator.d.ts +1 -1
  18. package/dist/types/WidgetModuleProvider.d.ts +4 -4
  19. package/dist/types/enable-widget-module.d.ts +1 -1
  20. package/dist/types/module.d.ts +3 -3
  21. package/dist/types/state/actions.d.ts +2 -2
  22. package/dist/types/state/create-reducer.d.ts +1 -1
  23. package/dist/types/state/create-state.d.ts +2 -2
  24. package/dist/types/state/flows.d.ts +1 -1
  25. package/dist/types/types.d.ts +1 -1
  26. package/dist/types/utils.d.ts +2 -2
  27. package/dist/types/version.d.ts +1 -1
  28. package/package.json +13 -13
  29. package/src/Widget.ts +295 -294
  30. package/src/WidgetModuleConfigurator.ts +45 -45
  31. package/src/WidgetModuleProvider.ts +144 -144
  32. package/src/enable-widget-module.ts +10 -10
  33. package/src/errors.ts +52 -56
  34. package/src/events.ts +51 -51
  35. package/src/module.ts +23 -23
  36. package/src/state/actions.ts +56 -56
  37. package/src/state/create-reducer.ts +33 -33
  38. package/src/state/create-state.ts +10 -10
  39. package/src/state/flows.ts +57 -57
  40. package/src/types.ts +38 -38
  41. package/src/utils.ts +44 -44
  42. package/src/version.ts +1 -1
@@ -1,9 +1,9 @@
1
- import { ModuleType } from '@equinor/fusion-framework-module';
2
- import { GetWidgetParameters, WidgetConfig, WidgetManifest, WidgetScriptModule, WidgetState, WidgetStateInitial } from './types';
3
- import { EventModule } from '@equinor/fusion-framework-module-event';
1
+ import type { ModuleType } from '@equinor/fusion-framework-module';
2
+ import type { GetWidgetParameters, WidgetConfig, WidgetManifest, WidgetScriptModule, WidgetState, WidgetStateInitial } from './types';
3
+ import type { EventModule } from '@equinor/fusion-framework-module-event';
4
4
  import { Observable } from 'rxjs';
5
- import WidgetModuleProvider from './WidgetModuleProvider';
6
- import { WidgetModuleConfig } from './WidgetModuleConfigurator';
5
+ import type WidgetModuleProvider from './WidgetModuleProvider';
6
+ import type { WidgetModuleConfig } from './WidgetModuleConfigurator';
7
7
  import './events';
8
8
  export declare class Widget {
9
9
  #private;
@@ -1,5 +1,5 @@
1
1
  import { BaseConfigBuilder, type ConfigBuilderCallback } from '@equinor/fusion-framework-module';
2
- import { ConfigBuilderCallbackArgs } from '@equinor/fusion-framework-module';
2
+ import type { ConfigBuilderCallbackArgs } from '@equinor/fusion-framework-module';
3
3
  import type { IClient } from './types';
4
4
  export type WidgetModuleConfig = {
5
5
  client: IClient;
@@ -1,8 +1,8 @@
1
- import { Observable } from 'rxjs';
2
- import { ModuleType } from '@equinor/fusion-framework-module';
3
- import { EventModule } from '@equinor/fusion-framework-module-event';
1
+ import { type Observable } from 'rxjs';
2
+ import type { ModuleType } from '@equinor/fusion-framework-module';
3
+ import type { EventModule } from '@equinor/fusion-framework-module-event';
4
4
  import type { GetWidgetParameters, WidgetConfig, WidgetManifest } from './types';
5
- import { WidgetModuleConfig } from './WidgetModuleConfigurator';
5
+ import type { WidgetModuleConfig } from './WidgetModuleConfigurator';
6
6
  import { Widget } from './Widget';
7
7
  export interface IWidgetModuleProvider {
8
8
  getWidget(widgetKey: GetWidgetParameters['widgetKey'], args?: GetWidgetParameters['args']): Widget;
@@ -1,5 +1,5 @@
1
1
  import type { IModulesConfigurator } from '@equinor/fusion-framework-module';
2
- import { WidgetModuleConfigBuilderCallback } from './WidgetModuleConfigurator';
2
+ import type { WidgetModuleConfigBuilderCallback } from './WidgetModuleConfigurator';
3
3
  /**
4
4
  * Method for enabling the widget module
5
5
  * @param configurator - configuration object
@@ -1,7 +1,7 @@
1
- import { Module } from '@equinor/fusion-framework-module';
2
- import { ModuleDeps } from './types';
1
+ import type { Module } from '@equinor/fusion-framework-module';
2
+ import type { ModuleDeps } from './types';
3
3
  import { WidgetModuleConfigurator } from './WidgetModuleConfigurator';
4
- import { IWidgetModuleProvider } from './WidgetModuleProvider';
4
+ import { type IWidgetModuleProvider } from './WidgetModuleProvider';
5
5
  export declare const moduleKey = "widget";
6
6
  export type WidgetModule = Module<typeof moduleKey, IWidgetModuleProvider, WidgetModuleConfigurator, ModuleDeps>;
7
7
  export declare const module: WidgetModule;
@@ -1,5 +1,5 @@
1
- import { ActionInstanceMap, ActionTypes } from '@equinor/fusion-observable';
2
- import { GetWidgetParameters, WidgetConfig, WidgetManifest, WidgetModulesInstance, WidgetScriptModule } from '../types';
1
+ import { type ActionInstanceMap, type ActionTypes } from '@equinor/fusion-observable';
2
+ import type { GetWidgetParameters, WidgetConfig, WidgetManifest, WidgetModulesInstance, WidgetScriptModule } from '../types';
3
3
  declare const createActions: () => {
4
4
  /** Manifest loading */
5
5
  setManifest: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[manifest: WidgetManifest, update?: boolean | undefined], WidgetManifest, "set_manifest", never, {
@@ -1,4 +1,4 @@
1
- import { WidgetStateInitial, WidgetState } from '../types';
1
+ import type { WidgetStateInitial, WidgetState } from '../types';
2
2
  export declare const createReducer: (value: WidgetStateInitial) => import("@equinor/fusion-observable").ReducerWithInitialState<WidgetState, import("@equinor/fusion-observable").PayloadAction<import("../types").WidgetManifest, "set_manifest", {
3
3
  created: number;
4
4
  update: boolean | undefined;
@@ -1,5 +1,5 @@
1
1
  import { FlowSubject } from '@equinor/fusion-observable';
2
2
  import type { Actions } from './actions';
3
- import { WidgetState, WidgetStateInitial } from '../types';
4
- import WidgetModuleProvider from '../WidgetModuleProvider';
3
+ import type { WidgetState, WidgetStateInitial } from '../types';
4
+ import type WidgetModuleProvider from '../WidgetModuleProvider';
5
5
  export declare const createState: (value: WidgetStateInitial, provider: WidgetModuleProvider) => FlowSubject<WidgetState, Actions>;
@@ -1,6 +1,6 @@
1
1
  import type { Flow } from '@equinor/fusion-observable';
2
2
  import type { Actions } from './actions';
3
- import { WidgetState } from '../types';
3
+ import type { WidgetState } from '../types';
4
4
  import type WidgetModuleProvider from '../WidgetModuleProvider';
5
5
  export declare const handleFetchManifest: (provider: WidgetModuleProvider) => Flow<Actions, WidgetState>;
6
6
  export declare const handleFetchConfig: (provider: WidgetModuleProvider) => Flow<Actions, WidgetState>;
@@ -2,7 +2,7 @@ import type { AnyModule, CombinedModules, ModulesInstance } from '@equinor/fusio
2
2
  import type { EventModule } from '@equinor/fusion-framework-module-event';
3
3
  import type { HttpModule } from '@equinor/fusion-framework-module-http';
4
4
  import type { ServiceDiscoveryModule } from '@equinor/fusion-framework-module-service-discovery';
5
- import { QueryCtorOptions } from '@equinor/fusion-query';
5
+ import type { QueryCtorOptions } from '@equinor/fusion-query';
6
6
  type Fusion = any;
7
7
  /**
8
8
  * WidgetEnv type represents the environment configuration for a widget.
@@ -1,5 +1,5 @@
1
- import { IClient, WidgetEndpointBuilder } from './types';
2
- import { IHttpClient } from '@equinor/fusion-framework-module-http';
1
+ import type { IClient, WidgetEndpointBuilder } from './types';
2
+ import type { IHttpClient } from '@equinor/fusion-framework-module-http';
3
3
  export declare const defaultManifestEndpointBuilder: (apiVersion: string) => WidgetEndpointBuilder;
4
4
  export declare const defaultConfigEndpointBuilder: (apiVersion: string) => WidgetEndpointBuilder;
5
5
  export declare const createDefaultClient: (httpClient: IHttpClient) => IClient;
@@ -1 +1 @@
1
- export declare const version = "9.0.2";
1
+ export declare const version = "9.0.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-module-widget",
3
- "version": "9.0.2",
3
+ "version": "9.0.4",
4
4
  "description": "",
5
5
  "main": "dist/esm/index.js",
6
6
  "exports": {
@@ -35,22 +35,22 @@
35
35
  "dependencies": {
36
36
  "immer": "^9.0.16",
37
37
  "rxjs": "^7.8.1",
38
- "@equinor/fusion-observable": "^8.4.4",
39
- "@equinor/fusion-query": "^5.2.1"
38
+ "@equinor/fusion-query": "^5.2.2",
39
+ "@equinor/fusion-observable": "^8.4.5"
40
40
  },
41
41
  "devDependencies": {
42
- "typescript": "^5.5.4",
43
- "@equinor/fusion-framework-module": "^4.3.5",
44
- "@equinor/fusion-framework-module-event": "^4.3.0",
45
- "@equinor/fusion-framework-module-service-discovery": "^8.0.6",
46
- "@equinor/fusion-framework-module-http": "^6.2.1",
47
- "@equinor/fusion-query": "^5.2.1"
42
+ "typescript": "^5.7.3",
43
+ "@equinor/fusion-framework-module-event": "^4.3.1",
44
+ "@equinor/fusion-framework-module-http": "^6.2.2",
45
+ "@equinor/fusion-framework-module-service-discovery": "^8.0.7",
46
+ "@equinor/fusion-framework-module": "^4.3.6",
47
+ "@equinor/fusion-query": "^5.2.2"
48
48
  },
49
49
  "peerDependencies": {
50
- "@equinor/fusion-framework-module": "^4.3.5",
51
- "@equinor/fusion-framework-module-http": "^6.2.1",
52
- "@equinor/fusion-framework-module-service-discovery": "^8.0.6",
53
- "@equinor/fusion-framework-module-event": "^4.3.0"
50
+ "@equinor/fusion-framework-module": "^4.3.6",
51
+ "@equinor/fusion-framework-module-event": "^4.3.1",
52
+ "@equinor/fusion-framework-module-http": "^6.2.2",
53
+ "@equinor/fusion-framework-module-service-discovery": "^8.0.7"
54
54
  },
55
55
  "peerDependenciesMeta": {
56
56
  "@equinor/fusion-framework-module-event": {