@genesislcap/foundation-fdc3 14.200.1-alpha-e974201.0 → 14.202.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/dts/fdc3-channel-event.d.ts.map +1 -1
  2. package/dist/dts/fdc3.d.ts +57 -1
  3. package/dist/dts/fdc3.d.ts.map +1 -1
  4. package/dist/dts/index.d.ts +6 -0
  5. package/dist/dts/index.d.ts.map +1 -1
  6. package/dist/dts/notifications/interop-notifications-listener.d.ts.map +1 -1
  7. package/dist/dts/util/fdc3-context-listener.d.ts +8 -338
  8. package/dist/dts/util/fdc3-context-listener.d.ts.map +1 -1
  9. package/dist/dts/util/{fdc3-listener.d.ts → fdc3-intent-listener.d.ts} +9 -17
  10. package/dist/dts/util/fdc3-intent-listener.d.ts.map +1 -0
  11. package/dist/dts/util/fdc3-system-channel-listener.d.ts +353 -0
  12. package/dist/dts/util/fdc3-system-channel-listener.d.ts.map +1 -0
  13. package/dist/dts/util/index.d.ts +3 -1
  14. package/dist/dts/util/index.d.ts.map +1 -1
  15. package/dist/esm/fdc3-channel-event.js +6 -1
  16. package/dist/esm/fdc3.js +99 -16
  17. package/dist/esm/index.js +1 -0
  18. package/dist/esm/util/fdc3-context-listener.js +10 -30
  19. package/dist/esm/util/fdc3-intent-listener.js +53 -0
  20. package/dist/esm/util/fdc3-system-channel-listener.js +60 -0
  21. package/dist/esm/util/index.js +3 -1
  22. package/dist/foundation-fdc3.api.json +384 -0
  23. package/dist/foundation-fdc3.d.ts +437 -19
  24. package/docs/api/foundation-fdc3.fdc3.addsystemchannellistener.md +25 -0
  25. package/docs/api/foundation-fdc3.fdc3.broadcastoncurrentchannel.md +25 -0
  26. package/docs/api/foundation-fdc3.fdc3.currentchannel_.md +13 -0
  27. package/docs/api/foundation-fdc3.fdc3.handlechannelcurrentcontext.md +26 -0
  28. package/docs/api/foundation-fdc3.fdc3.isinteropfdc3.md +13 -0
  29. package/docs/api/foundation-fdc3.fdc3.isready_.md +13 -0
  30. package/docs/api/foundation-fdc3.fdc3.md +7 -0
  31. package/docs/api/foundation-fdc3.fdc3.raiseintentforcontext.md +26 -0
  32. package/docs/api-report.md +65 -15
  33. package/package.json +17 -15
  34. package/test/fdc3.mock.ts +13 -9
  35. package/dist/dts/util/fdc3-listener.d.ts.map +0 -1
  36. package/dist/esm/util/fdc3-listener.js +0 -55
@@ -1 +1 @@
1
- {"version":3,"file":"fdc3-channel-event.d.ts","sourceRoot":"","sources":["../../src/fdc3-channel-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,iBAAiB,EAAc,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE9B;;;GAGG;AACH,qBAGa,gBAAiB,SAAQ,qBAAiC;IAC/D,IAAI,EAAE,IAAI,CAAC;IACkB,SAAS,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAE7C,eAAe,EAAE,CAAC,GAAG,KAAA,KAAK,GAAG,CAAC;IAE1C,iBAAiB;IAIjB,oBAAoB;IAIX,SAAS,IAAI,IAAI;IAU1B,OAAO,CAAC,kBAAkB,CAMxB;CACH"}
1
+ {"version":3,"file":"fdc3-channel-event.d.ts","sourceRoot":"","sources":["../../src/fdc3-channel-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,iBAAiB,EAAc,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE9B;;;GAGG;AACH,qBAGa,gBAAiB,SAAQ,qBAAiC;IAC/D,IAAI,EAAE,IAAI,CAAC;IACkB,SAAS,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAE7C,eAAe,EAAE,CAAC,GAAG,KAAA,KAAK,GAAG,CAAC;IAE1C,iBAAiB;IAIjB,oBAAoB;IAIX,SAAS,IAAI,IAAI;IAU1B,OAAO,CAAC,kBAAkB,CAWxB;CACH"}
@@ -2,6 +2,7 @@
2
2
  * See https://fdc3.finos.org/docs/fdc3-intro, and https://github.com/finos/FDC3/tree/master/src/api
3
3
  */
4
4
  import { AppIntent, Channel, Context, ContextHandler, Intents, IntentResolution } from '@finos/fdc3';
5
+ import { Observable } from 'rxjs';
5
6
  /**
6
7
  * @public
7
8
  */
@@ -40,6 +41,22 @@ export interface FDC3 {
40
41
  * @public
41
42
  */
42
43
  isReady: boolean;
44
+ /**
45
+ * Observable indicating the FDC3 API is ready.
46
+ * @public
47
+ */
48
+ isReady$: Observable<true>;
49
+ /**
50
+ * Check if the interop global is available.
51
+ * @public
52
+ */
53
+ isInteropFdc3: () => boolean;
54
+ /**
55
+ * Observable which emits the current channel
56
+ * When a new channel is joined a new value is emitted
57
+ * @public
58
+ */
59
+ currentChannel$: Observable<FDC3Channel>;
43
60
  /**
44
61
  * Adds intent listeners for the specified intents.
45
62
  * @public
@@ -61,6 +78,13 @@ export interface FDC3 {
61
78
  * @returns A promise that resolves with an array of all matching intents and their metadata.
62
79
  */
63
80
  findIntentsByContext(context: FDC3Context): Promise<FDC3AppIntent[]>;
81
+ /**
82
+ * Raises an intent against an application based purely on the context data.
83
+ * @public
84
+ * @param context - The context to use.
85
+ * @returns A promise that resolves with the result of the intent resolution.
86
+ */
87
+ raiseIntentForContext(context: FDC3Context): Promise<FDC3IntentResolution>;
64
88
  /**
65
89
  * Raises the specified intent with the specified context.
66
90
  * @public
@@ -90,6 +114,12 @@ export interface FDC3 {
90
114
  * @param payload - payload sent to the channel
91
115
  */
92
116
  broadcastOnChannel(channelName: string, type: string, payload: any): Promise<void>;
117
+ /**
118
+ * Broadcasts a message on the current app channel
119
+ * @param type - type of the channel
120
+ * @param payload - payload sent to the channel
121
+ */
122
+ broadcastOnCurrentChannel(payload: any, type?: string): Promise<void>;
93
123
  /**
94
124
  * Helper function to broadcast message on channel in response to dispatched event
95
125
  * @param channelName - name of the channel
@@ -103,10 +133,23 @@ export interface FDC3 {
103
133
  * @param callback - handler to for the channel context listener
104
134
  * */
105
135
  addChannelListener(channelName: string, channelType: string, callback: (any: any) => void): Promise<Channel>;
136
+ /**
137
+ * Helper function to add a context listener on to the system, aka 'color', channel with a handler for channel messages
138
+ * @param channelType - type of the channel
139
+ * @param callback - handler to for the channel context listener
140
+ * */
141
+ addSystemChannelListener(channelType: string, callback: (any: any) => void): Promise<void>;
106
142
  /**
107
143
  * Helper function to get the current channel of the application
108
144
  * */
109
145
  getCurrentChannel(): Promise<Channel>;
146
+ /**
147
+ * Helper function to add a context listener on a channel with a handler for channel messages
148
+ * @param channel - channel instance for getting for getting current context
149
+ * @param contextType - context type of the channel to listen to
150
+ * @param callback - handler to for the channel context listener
151
+ * */
152
+ handleChannelCurrentContext(channel: Channel | FDC3Channel, contextType: string, listenerCallback: (FDC3Context: any) => any): Promise<void>;
110
153
  }
111
154
  /**
112
155
  * The FDC3 implementation.
@@ -114,18 +157,31 @@ export interface FDC3 {
114
157
  */
115
158
  export declare class DefaultFDC3 implements FDC3 {
116
159
  isReady: boolean;
160
+ private _isReady$;
161
+ isReady$: Observable<true>;
162
+ private _currentChannel$;
163
+ private _currentChannel;
164
+ currentChannel$: Observable<Channel>;
165
+ isInteropFdc3: () => boolean;
117
166
  constructor();
118
- private connect;
167
+ private init;
119
168
  addIntentListeners(listeners: Map<FDC3Intents, FDC3ContextHandler>): void;
120
169
  findIntent(intent: FDC3Intents, context?: FDC3Context): Promise<FDC3AppIntent>;
121
170
  findIntentsByContext(context: FDC3Context): Promise<FDC3AppIntent[]>;
171
+ raiseIntentForContext(context: FDC3Context): Promise<FDC3IntentResolution>;
122
172
  raiseIntent(context: FDC3Context, intent?: FDC3Intents): Promise<FDC3IntentResolution>;
123
173
  joinChannel(channelId: string): Promise<void>;
124
174
  getOrCreateChannel(channelId: string): Promise<FDC3Channel>;
125
175
  broadcastOnChannel(channelName: string, type: string, payload: any): Promise<void>;
176
+ broadcastOnCurrentChannel(payload: any, type?: string): Promise<void>;
126
177
  broadcastOnChannelEventHandler(channelName: string, type: string): Promise<(e: any) => Promise<void>>;
127
178
  addChannelListener(channelName: string, channelType: string, callback: (any: any) => void): Promise<Channel>;
179
+ addSystemChannelListener(channelType: string, callback: (any: any) => void): Promise<void>;
128
180
  getCurrentChannel(): Promise<Channel>;
181
+ handleChannelCurrentContext(channel: Channel | FDC3Channel, contextType: string, listenerCallback: (FDC3Context: any) => any): Promise<void>;
182
+ private broadcastMessageOnChannel;
183
+ private getAndUpdateCurrentChannel;
184
+ private handleInteropChannelChanges;
129
185
  }
130
186
  /**
131
187
  * The DI token for the FDC3 interface.
@@ -1 +1 @@
1
- {"version":3,"file":"fdc3.d.ts","sourceRoot":"","sources":["../../src/fdc3.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AE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAKlF,yBAAyB,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOrE,8BAA8B,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAC1D,GAAG;IAOT,kBAAkB,CAC7B,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI;IAOZ,wBAAwB,CACnC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,GACtB,OAAO,CAAC,IAAI,CAAC;IAKH,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;IAIrC,2BAA2B,CACtC,OAAO,EAAE,OAAO,GAAG,WAAW,EAC9B,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,CAAC,WAAW,KAAA,KAAK,GAAG,GACrC,OAAO,CAAC,IAAI,CAAC;IAOhB,OAAO,CAAC,yBAAyB;YAWnB,0BAA0B;YAa1B,2BAA2B;CAc1C;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,4DAA4D,CAAC"}
@@ -1,3 +1,9 @@
1
+ import { IOConnectDesktop } from '@interopio/desktop';
2
+ declare global {
3
+ interface Window {
4
+ io: IOConnectDesktop.API;
5
+ }
6
+ }
1
7
  export * from './fdc3';
2
8
  export * from './fdc3-channel-event';
3
9
  export * from './util';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,gDAAgD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,EAAE,EAAE,gBAAgB,CAAC,GAAG,CAAC;KAC1B;CACF;AAGD,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,gDAAgD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"interop-notifications-listener.d.ts","sourceRoot":"","sources":["../../../src/notifications/interop-notifications-listener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAoB,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAGL,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAmBtD;;;;;GAKG;AACH,qBAAa,4BAA6B,SAAQ,oBAAoB;IACpE,4BAA4B,EAAE,gBAAgB,CAAC,aAAa,CAAC,4BAA4B,CAAC;IAE1F,SAAS,CAAC,qBAAqB,CAAC,GAAG,EAAE,mBAAmB,GAAG,IAAI;CAgBhE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;uCAIhD,CAAC"}
1
+ {"version":3,"file":"interop-notifications-listener.d.ts","sourceRoot":"","sources":["../../../src/notifications/interop-notifications-listener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAoB,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAGL,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAmBtD;;;;;GAKG;AACH,qBAAa,4BAA6B,SAAQ,oBAAoB;IACpE,4BAA4B,EAAE,gBAAgB,CAAC,aAAa,CAAC,4BAA4B,CAAC;IAE1F,SAAS,CAAC,qBAAqB,CAAC,GAAG,EAAE,mBAAmB,GAAG,IAAI;CAehE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;uCAIhD,CAAC"}
@@ -1,349 +1,19 @@
1
- import { FoundationElement } from '@genesislcap/web-core';
2
- import { FDC3 } from '../fdc3';
1
+ import { Fdc3SystemChannelListener, SystemChannelListenerConfig } from './fdc3-system-channel-listener';
3
2
  /**
4
- * fdc3-listener listen channel config
3
+ * fdc3-context-listener listen channel config
5
4
  * @alpha
6
5
  * @param channelType - string for the context channel type
7
6
  * @param callback - async function that is called if a message with a matching context is emitted
8
7
  */
9
- export interface ChannelContextListener {
10
- channelType: string;
11
- callback: (any: any) => void;
8
+ export interface AppChannelListenerConfig extends SystemChannelListenerConfig {
9
+ channelName: string;
12
10
  }
13
- declare const Fdc3ContextListener_base: (new (...args: any[]) => {
14
- "__#1@#_container": import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
15
- "__#1@#_latestTokenCode": string;
16
- "__#1@#_hasFirstLoaded": boolean;
17
- "__#1@#_cleanupTimeout": NodeJS.Timeout;
18
- "__#1@#_shouldForceLifecycle": boolean;
19
- cloneNode(deep?: boolean): Node;
20
- deepClone(): Node;
21
- readonly shouldRunDisconnect: boolean;
22
- readonly shouldRunConnect: boolean;
23
- "__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
24
- "__#1@#_tryFindContainingLayout"(e: Element): import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
25
- connectedCallback(): void;
26
- readonly $fastController: import("@microsoft/fast-element").Controller;
27
- $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
28
- disconnectedCallback(): void;
29
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
30
- accessKey: string;
31
- readonly accessKeyLabel: string;
32
- autocapitalize: string;
33
- dir: string;
34
- draggable: boolean;
35
- hidden: boolean;
36
- inert: boolean;
37
- innerText: string;
38
- lang: string;
39
- readonly offsetHeight: number;
40
- readonly offsetLeft: number;
41
- readonly offsetParent: Element;
42
- readonly offsetTop: number;
43
- readonly offsetWidth: number;
44
- outerText: string;
45
- spellcheck: boolean;
46
- title: string;
47
- translate: boolean;
48
- attachInternals(): ElementInternals;
49
- click(): void;
50
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
51
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
52
- removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
53
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
54
- readonly attributes: NamedNodeMap;
55
- readonly classList: DOMTokenList;
56
- className: string;
57
- readonly clientHeight: number;
58
- readonly clientLeft: number;
59
- readonly clientTop: number;
60
- readonly clientWidth: number;
61
- id: string;
62
- readonly localName: string;
63
- readonly namespaceURI: string;
64
- onfullscreenchange: (this: Element, ev: Event) => any;
65
- onfullscreenerror: (this: Element, ev: Event) => any;
66
- outerHTML: string;
67
- readonly ownerDocument: Document;
68
- readonly part: DOMTokenList;
69
- readonly prefix: string;
70
- readonly scrollHeight: number;
71
- scrollLeft: number;
72
- scrollTop: number;
73
- readonly scrollWidth: number;
74
- readonly shadowRoot: ShadowRoot;
75
- slot: string;
76
- readonly tagName: string;
77
- attachShadow(init: ShadowRootInit): ShadowRoot;
78
- closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
79
- closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
80
- closest<E extends Element = Element>(selectors: string): E;
81
- getAttribute(qualifiedName: string): string;
82
- getAttributeNS(namespace: string, localName: string): string;
83
- getAttributeNames(): string[];
84
- getAttributeNode(qualifiedName: string): Attr;
85
- getAttributeNodeNS(namespace: string, localName: string): Attr;
86
- getBoundingClientRect(): DOMRect;
87
- getClientRects(): DOMRectList;
88
- getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
89
- getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
90
- getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
91
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
92
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
93
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
94
- getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
95
- hasAttribute(qualifiedName: string): boolean;
96
- hasAttributeNS(namespace: string, localName: string): boolean;
97
- hasAttributes(): boolean;
98
- hasPointerCapture(pointerId: number): boolean;
99
- insertAdjacentElement(where: InsertPosition, element: Element): Element;
100
- insertAdjacentHTML(position: InsertPosition, text: string): void;
101
- insertAdjacentText(where: InsertPosition, data: string): void;
102
- matches(selectors: string): boolean;
103
- releasePointerCapture(pointerId: number): void;
104
- removeAttribute(qualifiedName: string): void;
105
- removeAttributeNS(namespace: string, localName: string): void;
106
- removeAttributeNode(attr: Attr): Attr;
107
- requestFullscreen(options?: FullscreenOptions): Promise<void>;
108
- requestPointerLock(): void;
109
- scroll(options?: ScrollToOptions): void;
110
- scroll(x: number, y: number): void;
111
- scrollBy(options?: ScrollToOptions): void;
112
- scrollBy(x: number, y: number): void;
113
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
114
- scrollTo(options?: ScrollToOptions): void;
115
- scrollTo(x: number, y: number): void;
116
- setAttribute(qualifiedName: string, value: string): void;
117
- setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
118
- setAttributeNode(attr: Attr): Attr;
119
- setAttributeNodeNS(attr: Attr): Attr;
120
- setPointerCapture(pointerId: number): void;
121
- toggleAttribute(qualifiedName: string, force?: boolean): boolean;
122
- webkitMatchesSelector(selectors: string): boolean;
123
- readonly baseURI: string;
124
- readonly childNodes: NodeListOf<ChildNode>;
125
- readonly firstChild: ChildNode;
126
- readonly isConnected: boolean;
127
- readonly lastChild: ChildNode;
128
- readonly nextSibling: ChildNode;
129
- readonly nodeName: string;
130
- readonly nodeType: number;
131
- nodeValue: string;
132
- readonly parentElement: HTMLElement;
133
- readonly parentNode: ParentNode;
134
- readonly previousSibling: ChildNode;
135
- textContent: string;
136
- appendChild<T_1 extends Node>(node: T_1): T_1;
137
- compareDocumentPosition(other: Node): number;
138
- contains(other: Node): boolean;
139
- getRootNode(options?: GetRootNodeOptions): Node;
140
- hasChildNodes(): boolean;
141
- insertBefore<T_2 extends Node>(node: T_2, child: Node): T_2;
142
- isDefaultNamespace(namespace: string): boolean;
143
- isEqualNode(otherNode: Node): boolean;
144
- isSameNode(otherNode: Node): boolean;
145
- lookupNamespaceURI(prefix: string): string;
146
- lookupPrefix(namespace: string): string;
147
- normalize(): void;
148
- removeChild<T_3 extends Node>(child: T_3): T_3;
149
- replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
150
- readonly ATTRIBUTE_NODE: number;
151
- readonly CDATA_SECTION_NODE: number;
152
- readonly COMMENT_NODE: number;
153
- readonly DOCUMENT_FRAGMENT_NODE: number;
154
- readonly DOCUMENT_NODE: number;
155
- readonly DOCUMENT_POSITION_CONTAINED_BY: number;
156
- readonly DOCUMENT_POSITION_CONTAINS: number;
157
- readonly DOCUMENT_POSITION_DISCONNECTED: number;
158
- readonly DOCUMENT_POSITION_FOLLOWING: number;
159
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
160
- readonly DOCUMENT_POSITION_PRECEDING: number;
161
- readonly DOCUMENT_TYPE_NODE: number;
162
- readonly ELEMENT_NODE: number;
163
- readonly ENTITY_NODE: number;
164
- readonly ENTITY_REFERENCE_NODE: number;
165
- readonly NOTATION_NODE: number;
166
- readonly PROCESSING_INSTRUCTION_NODE: number;
167
- readonly TEXT_NODE: number;
168
- dispatchEvent(event: Event): boolean;
169
- ariaAtomic: string;
170
- ariaAutoComplete: string;
171
- ariaBusy: string;
172
- ariaChecked: string;
173
- ariaColCount: string;
174
- ariaColIndex: string;
175
- ariaColIndexText: string;
176
- ariaColSpan: string;
177
- ariaCurrent: string;
178
- ariaDisabled: string;
179
- ariaExpanded: string;
180
- ariaHasPopup: string;
181
- ariaHidden: string;
182
- ariaInvalid: string;
183
- ariaKeyShortcuts: string;
184
- ariaLabel: string;
185
- ariaLevel: string;
186
- ariaLive: string;
187
- ariaModal: string;
188
- ariaMultiLine: string;
189
- ariaMultiSelectable: string;
190
- ariaOrientation: string;
191
- ariaPlaceholder: string;
192
- ariaPosInSet: string;
193
- ariaPressed: string;
194
- ariaReadOnly: string;
195
- ariaRequired: string;
196
- ariaRoleDescription: string;
197
- ariaRowCount: string;
198
- ariaRowIndex: string;
199
- ariaRowIndexText: string;
200
- ariaRowSpan: string;
201
- ariaSelected: string;
202
- ariaSetSize: string;
203
- ariaSort: string;
204
- ariaValueMax: string;
205
- ariaValueMin: string;
206
- ariaValueNow: string;
207
- ariaValueText: string;
208
- role: string;
209
- animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
210
- getAnimations(options?: GetAnimationsOptions): Animation[];
211
- after(...nodes: (string | Node)[]): void;
212
- before(...nodes: (string | Node)[]): void;
213
- remove(): void;
214
- replaceWith(...nodes: (string | Node)[]): void;
215
- innerHTML: string;
216
- readonly nextElementSibling: Element;
217
- readonly previousElementSibling: Element;
218
- readonly childElementCount: number;
219
- readonly children: HTMLCollection;
220
- readonly firstElementChild: Element;
221
- readonly lastElementChild: Element;
222
- append(...nodes: (string | Node)[]): void;
223
- prepend(...nodes: (string | Node)[]): void;
224
- querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
225
- querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
226
- querySelector<E_1 extends Element = Element>(selectors: string): E_1;
227
- querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
228
- querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
229
- querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
230
- replaceChildren(...nodes: (string | Node)[]): void;
231
- readonly assignedSlot: HTMLSlotElement;
232
- oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
233
- oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
234
- onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
235
- readonly style: CSSStyleDeclaration;
236
- contentEditable: string;
237
- enterKeyHint: string;
238
- inputMode: string;
239
- readonly isContentEditable: boolean;
240
- onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
241
- onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
242
- onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
243
- onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
244
- onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
245
- onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
246
- onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
247
- onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
248
- oncancel: (this: GlobalEventHandlers, ev: Event) => any;
249
- oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
250
- oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any;
251
- onchange: (this: GlobalEventHandlers, ev: Event) => any;
252
- onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
253
- onclose: (this: GlobalEventHandlers, ev: Event) => any;
254
- oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
255
- oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
256
- ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
257
- ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
258
- ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
259
- ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
260
- ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
261
- ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
262
- ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
263
- ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
264
- ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
265
- onemptied: (this: GlobalEventHandlers, ev: Event) => any;
266
- onended: (this: GlobalEventHandlers, ev: Event) => any;
267
- onerror: OnErrorEventHandlerNonNull;
268
- onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
269
- onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
270
- ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
271
- oninput: (this: GlobalEventHandlers, ev: Event) => any;
272
- oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
273
- onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
274
- onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
275
- onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
276
- onload: (this: GlobalEventHandlers, ev: Event) => any;
277
- onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
278
- onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
279
- onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
280
- onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
281
- onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
282
- onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any;
283
- onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any;
284
- onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
285
- onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
286
- onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
287
- onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
288
- onpause: (this: GlobalEventHandlers, ev: Event) => any;
289
- onplay: (this: GlobalEventHandlers, ev: Event) => any;
290
- onplaying: (this: GlobalEventHandlers, ev: Event) => any;
291
- onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
292
- onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
293
- onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
294
- onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
295
- onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
296
- onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
297
- onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
298
- onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
299
- onprogress: (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any;
300
- onratechange: (this: GlobalEventHandlers, ev: Event) => any;
301
- onreset: (this: GlobalEventHandlers, ev: Event) => any;
302
- onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
303
- onscroll: (this: GlobalEventHandlers, ev: Event) => any;
304
- onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
305
- onseeked: (this: GlobalEventHandlers, ev: Event) => any;
306
- onseeking: (this: GlobalEventHandlers, ev: Event) => any;
307
- onselect: (this: GlobalEventHandlers, ev: Event) => any;
308
- onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
309
- onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
310
- onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
311
- onstalled: (this: GlobalEventHandlers, ev: Event) => any;
312
- onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
313
- onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
314
- ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
315
- ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
316
- ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
317
- ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
318
- ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
319
- ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
320
- ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
321
- ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
322
- ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
323
- ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
324
- onvolumechange: (this: GlobalEventHandlers, ev: Event) => any;
325
- onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
326
- onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
327
- onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
328
- onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
329
- onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
330
- onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
331
- autofocus: boolean;
332
- readonly dataset: DOMStringMap;
333
- nonce?: string;
334
- tabIndex: number;
335
- blur(): void;
336
- focus(options?: FocusOptions): void;
337
- }) & typeof FoundationElement;
338
11
  /**
339
- * fdc3-context-listener listen to channel context
12
+ * fdc3-context-listener listen to app channel context
340
13
  * @alpha
341
14
  */
342
- export declare class Fdc3ContextListener extends Fdc3ContextListener_base {
343
- config: ChannelContextListener[];
344
- fdc3: FDC3;
345
- deepClone(): Node;
346
- connectedCallback(): void;
15
+ export declare class Fdc3ContextListener extends Fdc3SystemChannelListener {
16
+ config: AppChannelListenerConfig[];
17
+ protected addChannelListeners(): void;
347
18
  }
348
- export {};
349
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":"AACA,OAAO,EAAiB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;CACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED;;;GAGG;AACH,qBAGa,mBAAoB,SAAQ,wBAAiC;IACxE,MAAM,EAAE,sBAAsB,EAAE,CAAM;IAEhC,IAAI,EAAE,IAAI,CAAC;IAER,SAAS,IAAI,IAAI;IAgB1B,iBAAiB;CAalB"}
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,23 +1,14 @@
1
1
  import { FoundationElement } from '@genesislcap/web-core';
2
2
  import { FDC3 } from '../fdc3';
3
3
  /**
4
- * fdc3-listener listen intent config
4
+ * fdc3-intent-listener listen intent config
5
5
  * @alpha
6
6
  */
7
7
  export interface IntentConfig {
8
8
  intent: string;
9
- callback: (any: any) => void;
9
+ callback: (FDC3Context: any) => void;
10
10
  }
11
- /**
12
- * fdc3-listener listen channel config
13
- * @alpha
14
- */
15
- export interface ChannelConfig {
16
- channelName: string;
17
- channelType: string;
18
- callback: (any: any) => void;
19
- }
20
- declare const Fdc3Listener_base: (new (...args: any[]) => {
11
+ declare const Fdc3IntentListener_base: (new (...args: any[]) => {
21
12
  "__#1@#_container": import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
22
13
  "__#1@#_latestTokenCode": string;
23
14
  "__#1@#_hasFirstLoaded": boolean;
@@ -343,15 +334,16 @@ declare const Fdc3Listener_base: (new (...args: any[]) => {
343
334
  focus(options?: FocusOptions): void;
344
335
  }) & typeof FoundationElement;
345
336
  /**
346
- * fdc3-listener
337
+ * fdc3-system-channel-listener
338
+ * Util element to listen to the context on a fdc3 app channel
347
339
  * @alpha
348
340
  */
349
- export declare class Fdc3Listener extends Fdc3Listener_base {
341
+ export declare class Fdc3IntentListener extends Fdc3IntentListener_base {
350
342
  fdc3: FDC3;
351
343
  intentConfig: IntentConfig[];
352
- channelConfig: ChannelConfig[];
353
- deepClone(): Node;
354
344
  connectedCallback(): void;
345
+ deepClone(): Node;
346
+ private addIntentListeners;
355
347
  }
356
348
  export {};
357
- //# sourceMappingURL=fdc3-listener.d.ts.map
349
+ //# sourceMappingURL=fdc3-intent-listener.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fdc3-intent-listener.d.ts","sourceRoot":"","sources":["../../../src/util/fdc3-intent-listener.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,WAAW,KAAA,KAAK,IAAI,CAAC;CACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED;;;;GAIG;AACH,qBAGa,kBAAmB,SAAQ,uBAAiC;IACjE,IAAI,EAAE,IAAI,CAAC;IAEjB,YAAY,EAAE,YAAY,EAAE,CAAM;IAElC,iBAAiB;IASR,SAAS,IAAI,IAAI;IAgB1B,OAAO,CAAC,kBAAkB;CAO3B"}