@equinor/fusion-framework-module-context 7.0.1 → 7.0.3-next.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.
- package/CHANGELOG.md +21 -0
- package/dist/esm/ContextProvider.js +4 -1
- package/dist/esm/ContextProvider.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/ContextProvider.d.ts +2 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +7 -7
- package/src/ContextProvider.ts +9 -1
- package/src/version.ts +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Observable, Subscription } from 'rxjs';
|
|
2
2
|
import type { ContextModuleConfig } from './configurator';
|
|
3
|
+
import { BaseModuleProvider } from '@equinor/fusion-framework-module/provider';
|
|
3
4
|
import { ContextClient } from './client/ContextClient';
|
|
4
5
|
import type { ContextItem, QueryContextParameters, RelatedContextParameters } from './types';
|
|
5
6
|
import type { ModuleType } from '@equinor/fusion-framework-module';
|
|
@@ -287,7 +288,7 @@ export interface IContextProvider {
|
|
|
287
288
|
* provider.setCurrentContextById('context-id').subscribe(...);
|
|
288
289
|
* ```
|
|
289
290
|
*/
|
|
290
|
-
export declare class ContextProvider implements IContextProvider {
|
|
291
|
+
export declare class ContextProvider extends BaseModuleProvider<ContextModuleConfig> implements IContextProvider {
|
|
291
292
|
#private;
|
|
292
293
|
get contextClient(): ContextClient;
|
|
293
294
|
get queryClient(): Query<ContextItem[], QueryContextParameters>;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "7.0.
|
|
1
|
+
export declare const version = "7.0.3-next.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-module-context",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.3-next.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -45,19 +45,19 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"fast-deep-equal": "^3.1.3",
|
|
48
|
-
"@equinor/fusion-query": "^6.0.0"
|
|
48
|
+
"@equinor/fusion-query": "^6.0.2-next.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"rxjs": "^7.8.1",
|
|
52
52
|
"typescript": "^5.8.2",
|
|
53
|
-
"@equinor/fusion-framework-module
|
|
54
|
-
"@equinor/fusion-framework-module-
|
|
55
|
-
"@equinor/fusion-framework-module-
|
|
56
|
-
"@equinor/fusion-framework-module": "^5.0
|
|
53
|
+
"@equinor/fusion-framework-module": "^5.0.6-next.0",
|
|
54
|
+
"@equinor/fusion-framework-module-event": "^4.4.1-next.0",
|
|
55
|
+
"@equinor/fusion-framework-module-navigation": "^6.0.1-next.0",
|
|
56
|
+
"@equinor/fusion-framework-module-services": "^7.1.5-next.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"rxjs": "^7.8.1",
|
|
60
|
-
"@equinor/fusion-framework-module": "^5.0.
|
|
60
|
+
"@equinor/fusion-framework-module": "^5.0.6-next.0"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "tsc -b"
|
package/src/ContextProvider.ts
CHANGED
|
@@ -12,6 +12,9 @@ import {
|
|
|
12
12
|
|
|
13
13
|
import type { ContextModuleConfig } from './configurator';
|
|
14
14
|
|
|
15
|
+
import { BaseModuleProvider } from '@equinor/fusion-framework-module/provider';
|
|
16
|
+
import { version } from './version.js';
|
|
17
|
+
|
|
15
18
|
import { ContextClient } from './client/ContextClient';
|
|
16
19
|
import type { ContextItem, QueryContextParameters, RelatedContextParameters } from './types';
|
|
17
20
|
import type { ModuleType } from '@equinor/fusion-framework-module';
|
|
@@ -325,7 +328,10 @@ export interface IContextProvider {
|
|
|
325
328
|
* provider.setCurrentContextById('context-id').subscribe(...);
|
|
326
329
|
* ```
|
|
327
330
|
*/
|
|
328
|
-
export class ContextProvider
|
|
331
|
+
export class ContextProvider
|
|
332
|
+
extends BaseModuleProvider<ContextModuleConfig>
|
|
333
|
+
implements IContextProvider
|
|
334
|
+
{
|
|
329
335
|
#contextClient: ContextClient;
|
|
330
336
|
#contextQuery: Query<Array<ContextItem>, QueryContextParameters>;
|
|
331
337
|
#contextRelated?: Query<Array<ContextItem>, RelatedContextParameters>;
|
|
@@ -377,6 +383,8 @@ export class ContextProvider implements IContextProvider {
|
|
|
377
383
|
}) {
|
|
378
384
|
const { config, event } = args;
|
|
379
385
|
|
|
386
|
+
super({ version, config });
|
|
387
|
+
|
|
380
388
|
if (args.parentContext) {
|
|
381
389
|
console.warn(
|
|
382
390
|
'@deprecated',
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '7.0.
|
|
2
|
+
export const version = '7.0.3-next.0';
|