@genesislcap/foundation-fdc3 14.224.3-fui-2256.1 → 14.224.3-pa-1503.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/dts/util/fdc3-context-listener.d.ts +0 -2
- package/dist/dts/util/fdc3-context-listener.d.ts.map +1 -1
- package/dist/dts/util/fdc3-system-channel-listener.d.ts +1 -4
- package/dist/dts/util/fdc3-system-channel-listener.d.ts.map +1 -1
- package/dist/esm/util/fdc3-context-listener.js +2 -15
- package/dist/esm/util/fdc3-system-channel-listener.js +1 -19
- package/dist/foundation-fdc3.d.ts +1 -6
- package/docs/api-report.md +0 -11
- package/package.json +14 -14
- package/dist/dts/logger.d.ts +0 -2
- package/dist/dts/logger.d.ts.map +0 -1
- package/dist/esm/logger.js +0 -2
@@ -14,8 +14,6 @@ export interface AppChannelListenerConfig extends SystemChannelListenerConfig {
|
|
14
14
|
*/
|
15
15
|
export declare class Fdc3ContextListener extends Fdc3SystemChannelListener {
|
16
16
|
config: AppChannelListenerConfig[];
|
17
|
-
channelName: string;
|
18
17
|
protected addChannelListeners(): void;
|
19
|
-
protected addChannelListener(): void;
|
20
18
|
}
|
21
19
|
//# sourceMappingURL=fdc3-context-listener.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fdc3-context-listener.d.ts","sourceRoot":"","sources":["../../../src/util/fdc3-context-listener.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"fdc3-context-listener.d.ts","sourceRoot":"","sources":["../../../src/util/fdc3-context-listener.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,gCAAgC,CAAC;AAExC;;;;;GAKG;AACH,MAAM,WAAW,wBAAyB,SAAQ,2BAA2B;IAC3E,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,qBAGa,mBAAoB,SAAQ,yBAAyB;IAChE,MAAM,EAAE,wBAAwB,EAAE,CAAM;IAExC,SAAS,CAAC,mBAAmB,IAAI,IAAI;CAStC"}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { FoundationElement } from '@genesislcap/web-core';
|
2
|
-
import { Subscription } from 'rxjs';
|
3
2
|
import { FDC3 } from '../fdc3';
|
4
3
|
/**
|
5
4
|
* System channel listener config. System channels are also known as color channels
|
@@ -343,13 +342,11 @@ declare const Fdc3SystemChannelListener_base: (new (...args: any[]) => {
|
|
343
342
|
*/
|
344
343
|
export declare class Fdc3SystemChannelListener extends Fdc3SystemChannelListener_base {
|
345
344
|
config: SystemChannelListenerConfig[];
|
346
|
-
contextType: string;
|
347
|
-
protected channelSub: Subscription;
|
348
345
|
fdc3: FDC3;
|
349
346
|
deepClone(): Node;
|
350
347
|
connectedCallback(): void;
|
348
|
+
private channelSub;
|
351
349
|
protected addChannelListeners(): void;
|
352
|
-
protected addChannelListener(): void;
|
353
350
|
disconnectedCallback(): void;
|
354
351
|
}
|
355
352
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fdc3-system-channel-listener.d.ts","sourceRoot":"","sources":["../../../src/util/fdc3-system-channel-listener.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,iBAAiB,
|
1
|
+
{"version":3,"file":"fdc3-system-channel-listener.d.ts","sourceRoot":"","sources":["../../../src/util/fdc3-system-channel-listener.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B;;;;;GAKG;AACH,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;CACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED;;;;GAIG;AACH,qBAGa,yBAA0B,SAAQ,8BAAiC;IAC9E,MAAM,EAAE,2BAA2B,EAAE,CAAM;IAErC,IAAI,EAAE,IAAI,CAAC;IAER,SAAS,IAAI,IAAI;IAgB1B,iBAAiB;IAUjB,OAAO,CAAC,UAAU,CAAsB;IAExC,SAAS,CAAC,mBAAmB,IAAI,IAAI;IAarC,oBAAoB;CAIrB"}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { first } from 'rxjs';
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { customElement } from '@genesislcap/web-core';
|
4
3
|
import { Fdc3SystemChannelListener, } from './fdc3-system-channel-listener';
|
5
4
|
/**
|
6
5
|
* fdc3-context-listener listen to app channel context
|
@@ -18,19 +17,7 @@ let Fdc3ContextListener = class Fdc3ContextListener extends Fdc3SystemChannelLis
|
|
18
17
|
}
|
19
18
|
}));
|
20
19
|
}
|
21
|
-
addChannelListener() {
|
22
|
-
this.fdc3.isReady$.pipe(first()).subscribe(() => __awaiter(this, void 0, void 0, function* () {
|
23
|
-
return this.channelSub.add(this.fdc3.currentChannel$.subscribe((channel) => {
|
24
|
-
this.fdc3.addChannelListener(this.channelName, this.contextType, (context) => {
|
25
|
-
this.$emit('channel-event', context);
|
26
|
-
});
|
27
|
-
}));
|
28
|
-
}));
|
29
|
-
}
|
30
20
|
};
|
31
|
-
__decorate([
|
32
|
-
attr({ attribute: 'channel-name' })
|
33
|
-
], Fdc3ContextListener.prototype, "channelName", void 0);
|
34
21
|
Fdc3ContextListener = __decorate([
|
35
22
|
customElement({
|
36
23
|
name: 'fdc3-context-listener',
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
2
2
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
3
|
-
import { customElement, FoundationElement
|
3
|
+
import { customElement, FoundationElement } from '@genesislcap/web-core';
|
4
4
|
import { first, Subscription } from 'rxjs';
|
5
5
|
import { FDC3 } from '../fdc3';
|
6
|
-
import { logger } from '../utils';
|
7
6
|
/**
|
8
7
|
* fdc3-system-channel-listener
|
9
8
|
* Util element to listen to the context on a fdc3 system channel
|
@@ -30,13 +29,9 @@ let Fdc3SystemChannelListener = class Fdc3SystemChannelListener extends Lifecycl
|
|
30
29
|
}
|
31
30
|
connectedCallback() {
|
32
31
|
super.connectedCallback();
|
33
|
-
if (!this.contextType) {
|
34
|
-
logger.warn('Fdc3SystemChannelListener: no context type provided');
|
35
|
-
}
|
36
32
|
this.fdc3.isReady$.pipe(first()).subscribe(() => {
|
37
33
|
if (this.config) {
|
38
34
|
this.addChannelListeners();
|
39
|
-
this.addChannelListener();
|
40
35
|
}
|
41
36
|
});
|
42
37
|
}
|
@@ -48,25 +43,12 @@ let Fdc3SystemChannelListener = class Fdc3SystemChannelListener extends Lifecycl
|
|
48
43
|
})));
|
49
44
|
}));
|
50
45
|
}
|
51
|
-
addChannelListener() {
|
52
|
-
this.fdc3.isReady$.pipe(first()).subscribe(() => __awaiter(this, void 0, void 0, function* () {
|
53
|
-
return this.channelSub.add(this.fdc3.currentChannel$.subscribe((channel) => {
|
54
|
-
this.fdc3.handleChannelCurrentContext(channel, this.contextType, (context) => {
|
55
|
-
this.$emit('channel-event', context);
|
56
|
-
});
|
57
|
-
channel.addContextListener(this.contextType, (context) => this.$emit('channel-event'));
|
58
|
-
}));
|
59
|
-
}));
|
60
|
-
}
|
61
46
|
disconnectedCallback() {
|
62
47
|
var _a;
|
63
48
|
(_a = this.channelSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
64
49
|
super.disconnectedCallback();
|
65
50
|
}
|
66
51
|
};
|
67
|
-
__decorate([
|
68
|
-
attr({ attribute: 'context-type' })
|
69
|
-
], Fdc3SystemChannelListener.prototype, "contextType", void 0);
|
70
52
|
__decorate([
|
71
53
|
FDC3
|
72
54
|
], Fdc3SystemChannelListener.prototype, "fdc3", void 0);
|
@@ -23,7 +23,6 @@ import { Observable } from 'rxjs';
|
|
23
23
|
import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
|
24
24
|
import type { PrivateChannel } from '@finos/fdc3';
|
25
25
|
import type { StandardIntent } from '@finos/fdc3';
|
26
|
-
import { Subscription } from 'rxjs';
|
27
26
|
import { ViewTemplate } from '@microsoft/fast-element';
|
28
27
|
|
29
28
|
/**
|
@@ -587,9 +586,7 @@ export declare type FDC3ContextHandler = ContextHandler;
|
|
587
586
|
*/
|
588
587
|
export declare class Fdc3ContextListener extends Fdc3SystemChannelListener {
|
589
588
|
config: AppChannelListenerConfig[];
|
590
|
-
channelName: string;
|
591
589
|
protected addChannelListeners(): void;
|
592
|
-
protected addChannelListener(): void;
|
593
590
|
}
|
594
591
|
|
595
592
|
/**
|
@@ -1295,13 +1292,11 @@ declare const Fdc3RaiseIntent_base: (new (...args: any[]) => {
|
|
1295
1292
|
*/
|
1296
1293
|
export declare class Fdc3SystemChannelListener extends Fdc3SystemChannelListener_base {
|
1297
1294
|
config: SystemChannelListenerConfig[];
|
1298
|
-
contextType: string;
|
1299
|
-
protected channelSub: Subscription;
|
1300
1295
|
fdc3: FDC3;
|
1301
1296
|
deepClone(): Node;
|
1302
1297
|
connectedCallback(): void;
|
1298
|
+
private channelSub;
|
1303
1299
|
protected addChannelListeners(): void;
|
1304
|
-
protected addChannelListener(): void;
|
1305
1300
|
disconnectedCallback(): void;
|
1306
1301
|
}
|
1307
1302
|
|
package/docs/api-report.md
CHANGED
@@ -29,7 +29,6 @@ import { Observable } from 'rxjs';
|
|
29
29
|
import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
|
30
30
|
import type { PrivateChannel } from '@finos/fdc3';
|
31
31
|
import type { StandardIntent } from '@finos/fdc3';
|
32
|
-
import { Subscription } from 'rxjs';
|
33
32
|
import { ViewTemplate } from '@microsoft/fast-element';
|
34
33
|
|
35
34
|
// @alpha
|
@@ -160,13 +159,9 @@ export type FDC3ContextHandler = ContextHandler;
|
|
160
159
|
|
161
160
|
// @alpha
|
162
161
|
export class Fdc3ContextListener extends Fdc3SystemChannelListener {
|
163
|
-
// (undocumented)
|
164
|
-
protected addChannelListener(): void;
|
165
162
|
// (undocumented)
|
166
163
|
protected addChannelListeners(): void;
|
167
164
|
// (undocumented)
|
168
|
-
channelName: string;
|
169
|
-
// (undocumented)
|
170
165
|
config: AppChannelListenerConfig[];
|
171
166
|
}
|
172
167
|
|
@@ -217,19 +212,13 @@ export class Fdc3RaiseIntent extends Fdc3RaiseIntent_base {
|
|
217
212
|
//
|
218
213
|
// @alpha
|
219
214
|
export class Fdc3SystemChannelListener extends Fdc3SystemChannelListener_base {
|
220
|
-
// (undocumented)
|
221
|
-
protected addChannelListener(): void;
|
222
215
|
// (undocumented)
|
223
216
|
protected addChannelListeners(): void;
|
224
217
|
// (undocumented)
|
225
|
-
protected channelSub: Subscription;
|
226
|
-
// (undocumented)
|
227
218
|
config: SystemChannelListenerConfig[];
|
228
219
|
// (undocumented)
|
229
220
|
connectedCallback(): void;
|
230
221
|
// (undocumented)
|
231
|
-
contextType: string;
|
232
|
-
// (undocumented)
|
233
222
|
deepClone(): Node;
|
234
223
|
// (undocumented)
|
235
224
|
disconnectedCallback(): void;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@genesislcap/foundation-fdc3",
|
3
3
|
"description": "Genesis Foundation FDC3",
|
4
|
-
"version": "14.224.3-
|
4
|
+
"version": "14.224.3-pa-1503.2",
|
5
5
|
"sideEffects": false,
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
7
7
|
"main": "dist/esm/index.js",
|
@@ -59,23 +59,23 @@
|
|
59
59
|
}
|
60
60
|
},
|
61
61
|
"devDependencies": {
|
62
|
-
"@genesislcap/foundation-testing": "14.224.3-
|
63
|
-
"@genesislcap/genx": "14.224.3-
|
64
|
-
"@genesislcap/rollup-builder": "14.224.3-
|
65
|
-
"@genesislcap/ts-builder": "14.224.3-
|
66
|
-
"@genesislcap/uvu-playwright-builder": "14.224.3-
|
67
|
-
"@genesislcap/vite-builder": "14.224.3-
|
68
|
-
"@genesislcap/webpack-builder": "14.224.3-
|
62
|
+
"@genesislcap/foundation-testing": "14.224.3-pa-1503.2",
|
63
|
+
"@genesislcap/genx": "14.224.3-pa-1503.2",
|
64
|
+
"@genesislcap/rollup-builder": "14.224.3-pa-1503.2",
|
65
|
+
"@genesislcap/ts-builder": "14.224.3-pa-1503.2",
|
66
|
+
"@genesislcap/uvu-playwright-builder": "14.224.3-pa-1503.2",
|
67
|
+
"@genesislcap/vite-builder": "14.224.3-pa-1503.2",
|
68
|
+
"@genesislcap/webpack-builder": "14.224.3-pa-1503.2",
|
69
69
|
"rimraf": "^5.0.0",
|
70
70
|
"sinon": "^17.0.1"
|
71
71
|
},
|
72
72
|
"dependencies": {
|
73
73
|
"@finos/fdc3": "2.1.1",
|
74
|
-
"@genesislcap/foundation-logger": "14.224.3-
|
75
|
-
"@genesislcap/foundation-notifications": "14.224.3-
|
76
|
-
"@genesislcap/foundation-ui": "14.224.3-
|
77
|
-
"@genesislcap/foundation-utils": "14.224.3-
|
78
|
-
"@genesislcap/web-core": "14.224.3-
|
74
|
+
"@genesislcap/foundation-logger": "14.224.3-pa-1503.2",
|
75
|
+
"@genesislcap/foundation-notifications": "14.224.3-pa-1503.2",
|
76
|
+
"@genesislcap/foundation-ui": "14.224.3-pa-1503.2",
|
77
|
+
"@genesislcap/foundation-utils": "14.224.3-pa-1503.2",
|
78
|
+
"@genesislcap/web-core": "14.224.3-pa-1503.2",
|
79
79
|
"@interopio/desktop": "^6.3.1",
|
80
80
|
"@microsoft/fast-element": "1.14.0",
|
81
81
|
"@microsoft/fast-foundation": "2.49.6",
|
@@ -90,5 +90,5 @@
|
|
90
90
|
"publishConfig": {
|
91
91
|
"access": "public"
|
92
92
|
},
|
93
|
-
"gitHead": "
|
93
|
+
"gitHead": "70231922852a85cd49c859111eda76e6cd0a46d0"
|
94
94
|
}
|
package/dist/dts/logger.d.ts
DELETED
package/dist/dts/logger.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,iDAAkC,CAAC"}
|
package/dist/esm/logger.js
DELETED