@genesislcap/foundation-fdc3 14.224.3-fui-2256.1 → 14.224.3-pa-1503.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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":"AAEA,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;IAEH,WAAW,EAAE,MAAM,CAAC;IAEzD,SAAS,CAAC,mBAAmB,IAAI,IAAI;IAUrC,SAAS,CAAC,kBAAkB,IAAI,IAAI;CAWrC"}
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,EAAQ,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAS,YAAY,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/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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mB,IAAI,IAAI;IAarC,oBAAoB;CAIrB"}
@@ -1,6 +1,5 @@
1
- import { __awaiter, __decorate } from "tslib";
2
- import { attr, customElement } from '@genesislcap/web-core';
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, attr } from '@genesislcap/web-core';
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
 
@@ -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-fui-2256.1",
4
+ "version": "14.224.3-pa-1503.4",
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-fui-2256.1",
63
- "@genesislcap/genx": "14.224.3-fui-2256.1",
64
- "@genesislcap/rollup-builder": "14.224.3-fui-2256.1",
65
- "@genesislcap/ts-builder": "14.224.3-fui-2256.1",
66
- "@genesislcap/uvu-playwright-builder": "14.224.3-fui-2256.1",
67
- "@genesislcap/vite-builder": "14.224.3-fui-2256.1",
68
- "@genesislcap/webpack-builder": "14.224.3-fui-2256.1",
62
+ "@genesislcap/foundation-testing": "14.224.3-pa-1503.4",
63
+ "@genesislcap/genx": "14.224.3-pa-1503.4",
64
+ "@genesislcap/rollup-builder": "14.224.3-pa-1503.4",
65
+ "@genesislcap/ts-builder": "14.224.3-pa-1503.4",
66
+ "@genesislcap/uvu-playwright-builder": "14.224.3-pa-1503.4",
67
+ "@genesislcap/vite-builder": "14.224.3-pa-1503.4",
68
+ "@genesislcap/webpack-builder": "14.224.3-pa-1503.4",
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-fui-2256.1",
75
- "@genesislcap/foundation-notifications": "14.224.3-fui-2256.1",
76
- "@genesislcap/foundation-ui": "14.224.3-fui-2256.1",
77
- "@genesislcap/foundation-utils": "14.224.3-fui-2256.1",
78
- "@genesislcap/web-core": "14.224.3-fui-2256.1",
74
+ "@genesislcap/foundation-logger": "14.224.3-pa-1503.4",
75
+ "@genesislcap/foundation-notifications": "14.224.3-pa-1503.4",
76
+ "@genesislcap/foundation-ui": "14.224.3-pa-1503.4",
77
+ "@genesislcap/foundation-utils": "14.224.3-pa-1503.4",
78
+ "@genesislcap/web-core": "14.224.3-pa-1503.4",
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": "5fd28ed47a2170112502041376a10996188861d9"
93
+ "gitHead": "90f795fde08719d9a317e47fe94570e1c51ba5cd"
94
94
  }
@@ -1,2 +0,0 @@
1
- export declare const logger: import("@genesislcap/foundation-logger").Logger;
2
- //# sourceMappingURL=logger.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,iDAAkC,CAAC"}
@@ -1,2 +0,0 @@
1
- import { createLogger } from '@genesislcap/foundation-logger';
2
- export const logger = createLogger('foundation-fdc3');