@genesislcap/foundation-fdc3 14.192.0 → 14.192.2-FUI-2127.1

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.
@@ -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
  */
@@ -36,10 +37,27 @@ export interface FDC3Channel extends Channel {
36
37
  */
37
38
  export interface FDC3 {
38
39
  /**
39
- * Whether the FDC3 API is ready.
40
+ * Observable indicating the FDC3 API is ready.
40
41
  * @public
41
42
  */
42
- isReady: boolean;
43
+ isReadyObs: Observable<true>;
44
+ /**
45
+ * Check if the interop global is available.
46
+ * @public
47
+ */
48
+ isInteropFdc3: () => boolean;
49
+ /**
50
+ * Observable which emits the current channel
51
+ * When a new channel is joined a new value is emitted
52
+ * @public
53
+ */
54
+ currentChannelObs: Observable<FDC3Channel>;
55
+ /**
56
+ * Method to initialize the fdc3 service.
57
+ * The service will check if the fdc3 agent has been initialized and emit via the isReadyObs when ready.
58
+ * The service will store the current app channel internally
59
+ */
60
+ init(): void;
43
61
  /**
44
62
  * Adds intent listeners for the specified intents.
45
63
  * @public
@@ -61,6 +79,13 @@ export interface FDC3 {
61
79
  * @returns A promise that resolves with an array of all matching intents and their metadata.
62
80
  */
63
81
  findIntentsByContext(context: FDC3Context): Promise<FDC3AppIntent[]>;
82
+ /**
83
+ * Raises an intent against an application based purely on the context data.
84
+ * @public
85
+ * @param context - The context to use.
86
+ * @returns A promise that resolves with the result of the intent resolution.
87
+ */
88
+ raiseIntentForContext(context: FDC3Context): Promise<FDC3IntentResolution>;
64
89
  /**
65
90
  * Raises the specified intent with the specified context.
66
91
  * @public
@@ -90,6 +115,12 @@ export interface FDC3 {
90
115
  * @param payload - payload sent to the channel
91
116
  */
92
117
  broadcastOnChannel(channelName: string, type: string, payload: any): Promise<void>;
118
+ /**
119
+ * Broadcasts a message on the current app channel
120
+ * @param type - type of the channel
121
+ * @param payload - payload sent to the channel
122
+ */
123
+ broadcastOnCurrentChannel(payload: any, type?: string): Promise<void>;
93
124
  /**
94
125
  * Helper function to broadcast message on channel in response to dispatched event
95
126
  * @param channelName - name of the channel
@@ -98,11 +129,11 @@ export interface FDC3 {
98
129
  broadcastOnChannelEventHandler(channelName: string, type: string): Promise<(e: any) => Promise<void>>;
99
130
  /**
100
131
  * Helper function to add a context listener on a channel with a handler for channel messages
101
- * @param channelName - name of the channel
102
- * @param channelType - type of the channel
132
+ * @param channel - instance of a channel
133
+ * @param channelType - type of the channel context
103
134
  * @param callback - handler to for the channel context listener
104
135
  * */
105
- addChannelListener(channelName: string, channelType: string, callback: (any: any) => void): Promise<Channel>;
136
+ addChannelListener(channel: FDC3Channel | Channel, channelType: string, callback: (any: any) => void): Promise<Channel>;
106
137
  /**
107
138
  * Helper function to get the current channel of the application
108
139
  * */
@@ -113,19 +144,30 @@ export interface FDC3 {
113
144
  * @internal
114
145
  */
115
146
  export declare class DefaultFDC3 implements FDC3 {
116
- isReady: boolean;
147
+ private isReady;
148
+ private _isReady$;
149
+ isReadyObs: Observable<true>;
150
+ private _currentChannel$;
151
+ private _currentChannel;
152
+ currentChannelObs: Observable<Channel>;
153
+ isInteropFdc3: () => boolean;
117
154
  constructor();
118
- private connect;
155
+ init(): Promise<void>;
119
156
  addIntentListeners(listeners: Map<FDC3Intents, FDC3ContextHandler>): void;
120
157
  findIntent(intent: FDC3Intents, context?: FDC3Context): Promise<FDC3AppIntent>;
121
158
  findIntentsByContext(context: FDC3Context): Promise<FDC3AppIntent[]>;
122
- raiseIntent(context: FDC3Context, intent?: FDC3Intents): Promise<FDC3IntentResolution>;
159
+ raiseIntentForContext(context: FDC3Context): Promise<FDC3IntentResolution>;
160
+ raiseIntent(context: FDC3Context, intent: FDC3Intents): Promise<FDC3IntentResolution>;
123
161
  joinChannel(channelId: string): Promise<void>;
124
162
  getOrCreateChannel(channelId: string): Promise<FDC3Channel>;
125
163
  broadcastOnChannel(channelName: string, type: string, payload: any): Promise<void>;
164
+ broadcastOnCurrentChannel(payload: any, type?: string): Promise<void>;
126
165
  broadcastOnChannelEventHandler(channelName: string, type: string): Promise<(e: any) => Promise<void>>;
127
- addChannelListener(channelName: string, channelType: string, callback: (any: any) => void): Promise<Channel>;
166
+ addChannelListener(channel: FDC3Channel | Channel, channelType: string, callback: (any: any) => void): Promise<FDC3Channel | Channel>;
128
167
  getCurrentChannel(): Promise<Channel>;
168
+ private broadcastMessageOnChannel;
169
+ private getAndUpdateCurrentChannel;
170
+ private handleInteropChannelChanges;
129
171
  }
130
172
  /**
131
173
  * The DI token for the FDC3 interface.
@@ -1 +1 @@
1
- {"version":3,"file":"fdc3.d.ts","sourceRoot":"","sources":["../../src/fdc3.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,SAAS,EACT,OAAO,E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,QAAQ,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI;IAMZ,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;IAIlD,OAAO,CAAC,yBAAyB;YAWnB,0BAA0B;YAa1B,2BAA2B;CAc1C;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,4DAA4D,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FASTElement } from '@genesislcap/web-core';
1
+ import { FoundationElement } from '@genesislcap/web-core';
2
2
  import { FDC3 } from '../fdc3';
3
3
  /**
4
4
  * fdc3-listener listen channel config
@@ -10,13 +10,342 @@ export interface ChannelContextListener {
10
10
  channelType: string;
11
11
  callback: (any: any) => void;
12
12
  }
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;
13
338
  /**
14
339
  * fdc3-context-listener listen to channel context
15
340
  * @alpha
16
341
  */
17
- export declare class Fdc3ContextListener extends FASTElement {
342
+ export declare class Fdc3ContextListener extends Fdc3ContextListener_base {
18
343
  config: ChannelContextListener[];
19
344
  fdc3: FDC3;
345
+ private fdc3ReadySub;
346
+ deepClone(): Node;
20
347
  connectedCallback(): void;
348
+ disconnectedCallback(): void;
21
349
  }
350
+ export {};
22
351
  //# 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":"AAAA,OAAO,EAAiB,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACnE,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,WAAW;IAClD,MAAM,EAAE,sBAAsB,EAAE,CAAM;IAEhC,IAAI,EAAE,IAAI,CAAC;IAEjB,iBAAiB;CAalB"}
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;AAEzE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B;;;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