@openfin/fdc3-api 46.100.85 → 46.100.88
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/out/fdc3-api-alpha.d.ts +24 -4
- package/out/fdc3-api-beta.d.ts +24 -4
- package/out/fdc3-api-public.d.ts +24 -4
- package/out/fdc3-api.d.ts +24 -4
- package/package.json +1 -1
package/out/fdc3-api-alpha.d.ts
CHANGED
|
@@ -1994,6 +1994,8 @@ declare type BeginUserBoundsChangingEvent = UserBoundsChangeEvent & {
|
|
|
1994
1994
|
type: 'begin-user-bounds-changing';
|
|
1995
1995
|
};
|
|
1996
1996
|
|
|
1997
|
+
declare type BFCacheRestoreListener = () => void | Promise<void>;
|
|
1998
|
+
|
|
1997
1999
|
/**
|
|
1998
2000
|
* A rule prescribing content creation that should be blocked.
|
|
1999
2001
|
*
|
|
@@ -5333,6 +5335,16 @@ declare interface Environment {
|
|
|
5333
5335
|
resolveLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<any>;
|
|
5334
5336
|
initPlatform(fin: OpenFin.Fin<OpenFin.EntityType>, ...args: Parameters<OpenFin.Fin['Platform']['init']>): ReturnType<OpenFin.Fin['Platform']['init']>;
|
|
5335
5337
|
observeBounds(element: Element, onChange: (bounds: DOMRect) => Promise<void> | void): () => void;
|
|
5338
|
+
/**
|
|
5339
|
+
* Registers a listener invoked when the current page has been restored from the
|
|
5340
|
+
* browser's back/forward cache. Stateful APIs (e.g. channels) use this to re-establish
|
|
5341
|
+
* connections that were torn down while the page was cached.
|
|
5342
|
+
*
|
|
5343
|
+
* No-op in environments that cannot be bfcached.
|
|
5344
|
+
*
|
|
5345
|
+
* @returns a function that unregisters the listener.
|
|
5346
|
+
*/
|
|
5347
|
+
onBFCacheRestore(listener: BFCacheRestoreListener): () => void;
|
|
5336
5348
|
writeToken(path: string, token: string): Promise<string>;
|
|
5337
5349
|
retrievePort(config: NewConnectConfig): Promise<number>;
|
|
5338
5350
|
getNextMessageId(): any;
|
|
@@ -5787,7 +5799,7 @@ declare type ExtensionWindowCreatedEvent = BaseEvent_5 & {
|
|
|
5787
5799
|
* these api calls are not implemented in the javscript api, only in the external adapter
|
|
5788
5800
|
* If they don't exist in the external adapter they should be removed.
|
|
5789
5801
|
*/
|
|
5790
|
-
declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | '
|
|
5802
|
+
declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | 'convert-options' | 'generate-guid' | 'get-config' | 'get-remote-config' | 'get-nearest-display-root' | 'get-preload-scripts' | 'raise-event' | 'set-window-preload-state' | 'dock-window' | 'get-current-window-options' | 'redirect-window-to-url' | 'request-new-content' | 'raise-many-events' | 'show-menu' | 'resolve-proxy' | 'undock-window' | 'window-embedded' | 'window-get-cached-bounds' | 'resource-fetch-authenticate' | 'set-cookie';
|
|
5791
5803
|
|
|
5792
5804
|
declare type ExternalAdapterOnlyCallsMap = {
|
|
5793
5805
|
[k in ExternalAdapterOnlyCalls]: {
|
|
@@ -7396,16 +7408,21 @@ declare class InterApplicationBus extends Base {
|
|
|
7396
7408
|
* Subscribes to messages from the specified application on the specified topic.
|
|
7397
7409
|
* @param source This object is described in the Identity in the typedef
|
|
7398
7410
|
* @param topic The topic on which the message is sent
|
|
7399
|
-
* @param listener A function that is called when a message has
|
|
7400
|
-
*
|
|
7411
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
7412
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
7401
7413
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
7402
7414
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
7403
7415
|
* data types
|
|
7404
7416
|
*
|
|
7417
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
7418
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
7419
|
+
*
|
|
7405
7420
|
* @example
|
|
7406
7421
|
* ```js
|
|
7407
7422
|
* // subscribe to a specified application
|
|
7408
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
7423
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
7424
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
7425
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
7409
7426
|
*
|
|
7410
7427
|
* // subscribe to wildcard
|
|
7411
7428
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|
|
@@ -20526,6 +20543,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
20526
20543
|
/**
|
|
20527
20544
|
* Removes focus from the window.
|
|
20528
20545
|
*
|
|
20546
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
20547
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
20548
|
+
*
|
|
20529
20549
|
* @example
|
|
20530
20550
|
* ```js
|
|
20531
20551
|
* async function blurWindow() {
|
package/out/fdc3-api-beta.d.ts
CHANGED
|
@@ -1994,6 +1994,8 @@ declare type BeginUserBoundsChangingEvent = UserBoundsChangeEvent & {
|
|
|
1994
1994
|
type: 'begin-user-bounds-changing';
|
|
1995
1995
|
};
|
|
1996
1996
|
|
|
1997
|
+
declare type BFCacheRestoreListener = () => void | Promise<void>;
|
|
1998
|
+
|
|
1997
1999
|
/**
|
|
1998
2000
|
* A rule prescribing content creation that should be blocked.
|
|
1999
2001
|
*
|
|
@@ -5333,6 +5335,16 @@ declare interface Environment {
|
|
|
5333
5335
|
resolveLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<any>;
|
|
5334
5336
|
initPlatform(fin: OpenFin.Fin<OpenFin.EntityType>, ...args: Parameters<OpenFin.Fin['Platform']['init']>): ReturnType<OpenFin.Fin['Platform']['init']>;
|
|
5335
5337
|
observeBounds(element: Element, onChange: (bounds: DOMRect) => Promise<void> | void): () => void;
|
|
5338
|
+
/**
|
|
5339
|
+
* Registers a listener invoked when the current page has been restored from the
|
|
5340
|
+
* browser's back/forward cache. Stateful APIs (e.g. channels) use this to re-establish
|
|
5341
|
+
* connections that were torn down while the page was cached.
|
|
5342
|
+
*
|
|
5343
|
+
* No-op in environments that cannot be bfcached.
|
|
5344
|
+
*
|
|
5345
|
+
* @returns a function that unregisters the listener.
|
|
5346
|
+
*/
|
|
5347
|
+
onBFCacheRestore(listener: BFCacheRestoreListener): () => void;
|
|
5336
5348
|
writeToken(path: string, token: string): Promise<string>;
|
|
5337
5349
|
retrievePort(config: NewConnectConfig): Promise<number>;
|
|
5338
5350
|
getNextMessageId(): any;
|
|
@@ -5787,7 +5799,7 @@ declare type ExtensionWindowCreatedEvent = BaseEvent_5 & {
|
|
|
5787
5799
|
* these api calls are not implemented in the javscript api, only in the external adapter
|
|
5788
5800
|
* If they don't exist in the external adapter they should be removed.
|
|
5789
5801
|
*/
|
|
5790
|
-
declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | '
|
|
5802
|
+
declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | 'convert-options' | 'generate-guid' | 'get-config' | 'get-remote-config' | 'get-nearest-display-root' | 'get-preload-scripts' | 'raise-event' | 'set-window-preload-state' | 'dock-window' | 'get-current-window-options' | 'redirect-window-to-url' | 'request-new-content' | 'raise-many-events' | 'show-menu' | 'resolve-proxy' | 'undock-window' | 'window-embedded' | 'window-get-cached-bounds' | 'resource-fetch-authenticate' | 'set-cookie';
|
|
5791
5803
|
|
|
5792
5804
|
declare type ExternalAdapterOnlyCallsMap = {
|
|
5793
5805
|
[k in ExternalAdapterOnlyCalls]: {
|
|
@@ -7396,16 +7408,21 @@ declare class InterApplicationBus extends Base {
|
|
|
7396
7408
|
* Subscribes to messages from the specified application on the specified topic.
|
|
7397
7409
|
* @param source This object is described in the Identity in the typedef
|
|
7398
7410
|
* @param topic The topic on which the message is sent
|
|
7399
|
-
* @param listener A function that is called when a message has
|
|
7400
|
-
*
|
|
7411
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
7412
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
7401
7413
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
7402
7414
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
7403
7415
|
* data types
|
|
7404
7416
|
*
|
|
7417
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
7418
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
7419
|
+
*
|
|
7405
7420
|
* @example
|
|
7406
7421
|
* ```js
|
|
7407
7422
|
* // subscribe to a specified application
|
|
7408
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
7423
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
7424
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
7425
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
7409
7426
|
*
|
|
7410
7427
|
* // subscribe to wildcard
|
|
7411
7428
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|
|
@@ -20526,6 +20543,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
20526
20543
|
/**
|
|
20527
20544
|
* Removes focus from the window.
|
|
20528
20545
|
*
|
|
20546
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
20547
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
20548
|
+
*
|
|
20529
20549
|
* @example
|
|
20530
20550
|
* ```js
|
|
20531
20551
|
* async function blurWindow() {
|
package/out/fdc3-api-public.d.ts
CHANGED
|
@@ -1994,6 +1994,8 @@ declare type BeginUserBoundsChangingEvent = UserBoundsChangeEvent & {
|
|
|
1994
1994
|
type: 'begin-user-bounds-changing';
|
|
1995
1995
|
};
|
|
1996
1996
|
|
|
1997
|
+
declare type BFCacheRestoreListener = () => void | Promise<void>;
|
|
1998
|
+
|
|
1997
1999
|
/**
|
|
1998
2000
|
* A rule prescribing content creation that should be blocked.
|
|
1999
2001
|
*
|
|
@@ -5333,6 +5335,16 @@ declare interface Environment {
|
|
|
5333
5335
|
resolveLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<any>;
|
|
5334
5336
|
initPlatform(fin: OpenFin.Fin<OpenFin.EntityType>, ...args: Parameters<OpenFin.Fin['Platform']['init']>): ReturnType<OpenFin.Fin['Platform']['init']>;
|
|
5335
5337
|
observeBounds(element: Element, onChange: (bounds: DOMRect) => Promise<void> | void): () => void;
|
|
5338
|
+
/**
|
|
5339
|
+
* Registers a listener invoked when the current page has been restored from the
|
|
5340
|
+
* browser's back/forward cache. Stateful APIs (e.g. channels) use this to re-establish
|
|
5341
|
+
* connections that were torn down while the page was cached.
|
|
5342
|
+
*
|
|
5343
|
+
* No-op in environments that cannot be bfcached.
|
|
5344
|
+
*
|
|
5345
|
+
* @returns a function that unregisters the listener.
|
|
5346
|
+
*/
|
|
5347
|
+
onBFCacheRestore(listener: BFCacheRestoreListener): () => void;
|
|
5336
5348
|
writeToken(path: string, token: string): Promise<string>;
|
|
5337
5349
|
retrievePort(config: NewConnectConfig): Promise<number>;
|
|
5338
5350
|
getNextMessageId(): any;
|
|
@@ -5787,7 +5799,7 @@ declare type ExtensionWindowCreatedEvent = BaseEvent_5 & {
|
|
|
5787
5799
|
* these api calls are not implemented in the javscript api, only in the external adapter
|
|
5788
5800
|
* If they don't exist in the external adapter they should be removed.
|
|
5789
5801
|
*/
|
|
5790
|
-
declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | '
|
|
5802
|
+
declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | 'convert-options' | 'generate-guid' | 'get-config' | 'get-remote-config' | 'get-nearest-display-root' | 'get-preload-scripts' | 'raise-event' | 'set-window-preload-state' | 'dock-window' | 'get-current-window-options' | 'redirect-window-to-url' | 'request-new-content' | 'raise-many-events' | 'show-menu' | 'resolve-proxy' | 'undock-window' | 'window-embedded' | 'window-get-cached-bounds' | 'resource-fetch-authenticate' | 'set-cookie';
|
|
5791
5803
|
|
|
5792
5804
|
declare type ExternalAdapterOnlyCallsMap = {
|
|
5793
5805
|
[k in ExternalAdapterOnlyCalls]: {
|
|
@@ -7396,16 +7408,21 @@ declare class InterApplicationBus extends Base {
|
|
|
7396
7408
|
* Subscribes to messages from the specified application on the specified topic.
|
|
7397
7409
|
* @param source This object is described in the Identity in the typedef
|
|
7398
7410
|
* @param topic The topic on which the message is sent
|
|
7399
|
-
* @param listener A function that is called when a message has
|
|
7400
|
-
*
|
|
7411
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
7412
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
7401
7413
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
7402
7414
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
7403
7415
|
* data types
|
|
7404
7416
|
*
|
|
7417
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
7418
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
7419
|
+
*
|
|
7405
7420
|
* @example
|
|
7406
7421
|
* ```js
|
|
7407
7422
|
* // subscribe to a specified application
|
|
7408
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
7423
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
7424
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
7425
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
7409
7426
|
*
|
|
7410
7427
|
* // subscribe to wildcard
|
|
7411
7428
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|
|
@@ -20526,6 +20543,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
20526
20543
|
/**
|
|
20527
20544
|
* Removes focus from the window.
|
|
20528
20545
|
*
|
|
20546
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
20547
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
20548
|
+
*
|
|
20529
20549
|
* @example
|
|
20530
20550
|
* ```js
|
|
20531
20551
|
* async function blurWindow() {
|
package/out/fdc3-api.d.ts
CHANGED
|
@@ -2027,6 +2027,8 @@ declare type BeginUserBoundsChangingEvent = UserBoundsChangeEvent & {
|
|
|
2027
2027
|
type: 'begin-user-bounds-changing';
|
|
2028
2028
|
};
|
|
2029
2029
|
|
|
2030
|
+
declare type BFCacheRestoreListener = () => void | Promise<void>;
|
|
2031
|
+
|
|
2030
2032
|
/**
|
|
2031
2033
|
* A rule prescribing content creation that should be blocked.
|
|
2032
2034
|
*
|
|
@@ -5445,6 +5447,16 @@ declare interface Environment {
|
|
|
5445
5447
|
resolveLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<any>;
|
|
5446
5448
|
initPlatform(fin: OpenFin.Fin<OpenFin.EntityType>, ...args: Parameters<OpenFin.Fin['Platform']['init']>): ReturnType<OpenFin.Fin['Platform']['init']>;
|
|
5447
5449
|
observeBounds(element: Element, onChange: (bounds: DOMRect) => Promise<void> | void): () => void;
|
|
5450
|
+
/**
|
|
5451
|
+
* Registers a listener invoked when the current page has been restored from the
|
|
5452
|
+
* browser's back/forward cache. Stateful APIs (e.g. channels) use this to re-establish
|
|
5453
|
+
* connections that were torn down while the page was cached.
|
|
5454
|
+
*
|
|
5455
|
+
* No-op in environments that cannot be bfcached.
|
|
5456
|
+
*
|
|
5457
|
+
* @returns a function that unregisters the listener.
|
|
5458
|
+
*/
|
|
5459
|
+
onBFCacheRestore(listener: BFCacheRestoreListener): () => void;
|
|
5448
5460
|
writeToken(path: string, token: string): Promise<string>;
|
|
5449
5461
|
retrievePort(config: NewConnectConfig): Promise<number>;
|
|
5450
5462
|
getNextMessageId(): any;
|
|
@@ -5917,7 +5929,7 @@ declare type ExtensionWindowCreatedEvent = BaseEvent_5 & {
|
|
|
5917
5929
|
* these api calls are not implemented in the javscript api, only in the external adapter
|
|
5918
5930
|
* If they don't exist in the external adapter they should be removed.
|
|
5919
5931
|
*/
|
|
5920
|
-
declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | '
|
|
5932
|
+
declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | 'convert-options' | 'generate-guid' | 'get-config' | 'get-remote-config' | 'get-nearest-display-root' | 'get-preload-scripts' | 'raise-event' | 'set-window-preload-state' | 'dock-window' | 'get-current-window-options' | 'redirect-window-to-url' | 'request-new-content' | 'raise-many-events' | 'show-menu' | 'resolve-proxy' | 'undock-window' | 'window-embedded' | 'window-get-cached-bounds' | 'resource-fetch-authenticate' | 'set-cookie';
|
|
5921
5933
|
|
|
5922
5934
|
declare type ExternalAdapterOnlyCallsMap = {
|
|
5923
5935
|
[k in ExternalAdapterOnlyCalls]: {
|
|
@@ -7547,16 +7559,21 @@ declare class InterApplicationBus extends Base {
|
|
|
7547
7559
|
* Subscribes to messages from the specified application on the specified topic.
|
|
7548
7560
|
* @param source This object is described in the Identity in the typedef
|
|
7549
7561
|
* @param topic The topic on which the message is sent
|
|
7550
|
-
* @param listener A function that is called when a message has
|
|
7551
|
-
*
|
|
7562
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
7563
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
7552
7564
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
7553
7565
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
7554
7566
|
* data types
|
|
7555
7567
|
*
|
|
7568
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
7569
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
7570
|
+
*
|
|
7556
7571
|
* @example
|
|
7557
7572
|
* ```js
|
|
7558
7573
|
* // subscribe to a specified application
|
|
7559
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
7574
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
7575
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
7576
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
7560
7577
|
*
|
|
7561
7578
|
* // subscribe to wildcard
|
|
7562
7579
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|
|
@@ -21065,6 +21082,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
21065
21082
|
/**
|
|
21066
21083
|
* Removes focus from the window.
|
|
21067
21084
|
*
|
|
21085
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
21086
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
21087
|
+
*
|
|
21068
21088
|
* @example
|
|
21069
21089
|
* ```js
|
|
21070
21090
|
* async function blurWindow() {
|