@openfin/fdc3-api 38.81.34 → 38.81.37
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 +20 -1
- package/out/fdc3-api-beta.d.ts +20 -1
- package/out/fdc3-api-public.d.ts +20 -1
- package/out/fdc3-api.d.ts +20 -1
- package/out/fdc3-api.js +10 -7
- package/package.json +1 -1
package/out/fdc3-api-alpha.d.ts
CHANGED
|
@@ -5344,6 +5344,7 @@ declare class FDC3ModuleBase<ChannelType extends v1_2.Channel | v2_0.Channel> {
|
|
|
5344
5344
|
* @tutorial fdc3.open
|
|
5345
5345
|
*/
|
|
5346
5346
|
protected _open(app: v1_2.TargetApp, context?: v1_2.Context): Promise<v2_0.AppIdentifier>;
|
|
5347
|
+
protected _getChannels(): Promise<ChannelType[]>;
|
|
5347
5348
|
/**
|
|
5348
5349
|
* Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
|
|
5349
5350
|
* @param channelId
|
|
@@ -5960,6 +5961,13 @@ declare type GpuInfo = {
|
|
|
5960
5961
|
|
|
5961
5962
|
/**
|
|
5962
5963
|
* Generated when a View is hidden.
|
|
5964
|
+
*
|
|
5965
|
+
* @remarks
|
|
5966
|
+
* An OpenFin View's `hidden` event is only emitted when a specific View API is called.
|
|
5967
|
+
* This event can fire when calling:
|
|
5968
|
+
*
|
|
5969
|
+
* * `view.hide()` - If a View is previously shown, a `hidden` event will be fired.
|
|
5970
|
+
*
|
|
5963
5971
|
* @interface
|
|
5964
5972
|
*/
|
|
5965
5973
|
declare type HiddenEvent = BaseEvent_4 & {
|
|
@@ -12565,7 +12573,18 @@ declare type ShowAllDownloadsEvent = BaseEvent_5 & {
|
|
|
12565
12573
|
};
|
|
12566
12574
|
|
|
12567
12575
|
/**
|
|
12568
|
-
* Generated when a View is shown.
|
|
12576
|
+
* Generated when a View is shown.
|
|
12577
|
+
*
|
|
12578
|
+
* @remarks
|
|
12579
|
+
* An OpenFin View's `shown` event is only emitted when specific View APIs are called.
|
|
12580
|
+
* This event can fire when calling:
|
|
12581
|
+
*
|
|
12582
|
+
* * `view.show()` or `view.showAt()` - If a View is previously hidden, a `shown` event will be fired.
|
|
12583
|
+
*
|
|
12584
|
+
* * `view.attach()` - If a View is hidden and attached to a new Window, it will be shown and the `shown` event will be fired.
|
|
12585
|
+
*
|
|
12586
|
+
* * `view.create()` - A View `shown` event will be fired. (Internally the `attach` method is called when calling the `create` method, which fires the `shown` event.)
|
|
12587
|
+
*
|
|
12569
12588
|
* @interface
|
|
12570
12589
|
*/
|
|
12571
12590
|
declare type ShownEvent = BaseEvent_4 & {
|
package/out/fdc3-api-beta.d.ts
CHANGED
|
@@ -5344,6 +5344,7 @@ declare class FDC3ModuleBase<ChannelType extends v1_2.Channel | v2_0.Channel> {
|
|
|
5344
5344
|
* @tutorial fdc3.open
|
|
5345
5345
|
*/
|
|
5346
5346
|
protected _open(app: v1_2.TargetApp, context?: v1_2.Context): Promise<v2_0.AppIdentifier>;
|
|
5347
|
+
protected _getChannels(): Promise<ChannelType[]>;
|
|
5347
5348
|
/**
|
|
5348
5349
|
* Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
|
|
5349
5350
|
* @param channelId
|
|
@@ -5960,6 +5961,13 @@ declare type GpuInfo = {
|
|
|
5960
5961
|
|
|
5961
5962
|
/**
|
|
5962
5963
|
* Generated when a View is hidden.
|
|
5964
|
+
*
|
|
5965
|
+
* @remarks
|
|
5966
|
+
* An OpenFin View's `hidden` event is only emitted when a specific View API is called.
|
|
5967
|
+
* This event can fire when calling:
|
|
5968
|
+
*
|
|
5969
|
+
* * `view.hide()` - If a View is previously shown, a `hidden` event will be fired.
|
|
5970
|
+
*
|
|
5963
5971
|
* @interface
|
|
5964
5972
|
*/
|
|
5965
5973
|
declare type HiddenEvent = BaseEvent_4 & {
|
|
@@ -12565,7 +12573,18 @@ declare type ShowAllDownloadsEvent = BaseEvent_5 & {
|
|
|
12565
12573
|
};
|
|
12566
12574
|
|
|
12567
12575
|
/**
|
|
12568
|
-
* Generated when a View is shown.
|
|
12576
|
+
* Generated when a View is shown.
|
|
12577
|
+
*
|
|
12578
|
+
* @remarks
|
|
12579
|
+
* An OpenFin View's `shown` event is only emitted when specific View APIs are called.
|
|
12580
|
+
* This event can fire when calling:
|
|
12581
|
+
*
|
|
12582
|
+
* * `view.show()` or `view.showAt()` - If a View is previously hidden, a `shown` event will be fired.
|
|
12583
|
+
*
|
|
12584
|
+
* * `view.attach()` - If a View is hidden and attached to a new Window, it will be shown and the `shown` event will be fired.
|
|
12585
|
+
*
|
|
12586
|
+
* * `view.create()` - A View `shown` event will be fired. (Internally the `attach` method is called when calling the `create` method, which fires the `shown` event.)
|
|
12587
|
+
*
|
|
12569
12588
|
* @interface
|
|
12570
12589
|
*/
|
|
12571
12590
|
declare type ShownEvent = BaseEvent_4 & {
|
package/out/fdc3-api-public.d.ts
CHANGED
|
@@ -5344,6 +5344,7 @@ declare class FDC3ModuleBase<ChannelType extends v1_2.Channel | v2_0.Channel> {
|
|
|
5344
5344
|
* @tutorial fdc3.open
|
|
5345
5345
|
*/
|
|
5346
5346
|
protected _open(app: v1_2.TargetApp, context?: v1_2.Context): Promise<v2_0.AppIdentifier>;
|
|
5347
|
+
protected _getChannels(): Promise<ChannelType[]>;
|
|
5347
5348
|
/**
|
|
5348
5349
|
* Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
|
|
5349
5350
|
* @param channelId
|
|
@@ -5960,6 +5961,13 @@ declare type GpuInfo = {
|
|
|
5960
5961
|
|
|
5961
5962
|
/**
|
|
5962
5963
|
* Generated when a View is hidden.
|
|
5964
|
+
*
|
|
5965
|
+
* @remarks
|
|
5966
|
+
* An OpenFin View's `hidden` event is only emitted when a specific View API is called.
|
|
5967
|
+
* This event can fire when calling:
|
|
5968
|
+
*
|
|
5969
|
+
* * `view.hide()` - If a View is previously shown, a `hidden` event will be fired.
|
|
5970
|
+
*
|
|
5963
5971
|
* @interface
|
|
5964
5972
|
*/
|
|
5965
5973
|
declare type HiddenEvent = BaseEvent_4 & {
|
|
@@ -12565,7 +12573,18 @@ declare type ShowAllDownloadsEvent = BaseEvent_5 & {
|
|
|
12565
12573
|
};
|
|
12566
12574
|
|
|
12567
12575
|
/**
|
|
12568
|
-
* Generated when a View is shown.
|
|
12576
|
+
* Generated when a View is shown.
|
|
12577
|
+
*
|
|
12578
|
+
* @remarks
|
|
12579
|
+
* An OpenFin View's `shown` event is only emitted when specific View APIs are called.
|
|
12580
|
+
* This event can fire when calling:
|
|
12581
|
+
*
|
|
12582
|
+
* * `view.show()` or `view.showAt()` - If a View is previously hidden, a `shown` event will be fired.
|
|
12583
|
+
*
|
|
12584
|
+
* * `view.attach()` - If a View is hidden and attached to a new Window, it will be shown and the `shown` event will be fired.
|
|
12585
|
+
*
|
|
12586
|
+
* * `view.create()` - A View `shown` event will be fired. (Internally the `attach` method is called when calling the `create` method, which fires the `shown` event.)
|
|
12587
|
+
*
|
|
12569
12588
|
* @interface
|
|
12570
12589
|
*/
|
|
12571
12590
|
declare type ShownEvent = BaseEvent_4 & {
|
package/out/fdc3-api.d.ts
CHANGED
|
@@ -5429,6 +5429,7 @@ declare class FDC3ModuleBase<ChannelType extends v1_2.Channel | v2_0.Channel> {
|
|
|
5429
5429
|
* @tutorial fdc3.open
|
|
5430
5430
|
*/
|
|
5431
5431
|
protected _open(app: v1_2.TargetApp, context?: v1_2.Context): Promise<v2_0.AppIdentifier>;
|
|
5432
|
+
protected _getChannels(): Promise<ChannelType[]>;
|
|
5432
5433
|
/**
|
|
5433
5434
|
* Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
|
|
5434
5435
|
* @param channelId
|
|
@@ -6051,6 +6052,13 @@ declare type GpuInfo = {
|
|
|
6051
6052
|
|
|
6052
6053
|
/**
|
|
6053
6054
|
* Generated when a View is hidden.
|
|
6055
|
+
*
|
|
6056
|
+
* @remarks
|
|
6057
|
+
* An OpenFin View's `hidden` event is only emitted when a specific View API is called.
|
|
6058
|
+
* This event can fire when calling:
|
|
6059
|
+
*
|
|
6060
|
+
* * `view.hide()` - If a View is previously shown, a `hidden` event will be fired.
|
|
6061
|
+
*
|
|
6054
6062
|
* @interface
|
|
6055
6063
|
*/
|
|
6056
6064
|
declare type HiddenEvent = BaseEvent_4 & {
|
|
@@ -12958,7 +12966,18 @@ declare type ShowAllDownloadsEvent = BaseEvent_5 & {
|
|
|
12958
12966
|
};
|
|
12959
12967
|
|
|
12960
12968
|
/**
|
|
12961
|
-
* Generated when a View is shown.
|
|
12969
|
+
* Generated when a View is shown.
|
|
12970
|
+
*
|
|
12971
|
+
* @remarks
|
|
12972
|
+
* An OpenFin View's `shown` event is only emitted when specific View APIs are called.
|
|
12973
|
+
* This event can fire when calling:
|
|
12974
|
+
*
|
|
12975
|
+
* * `view.show()` or `view.showAt()` - If a View is previously hidden, a `shown` event will be fired.
|
|
12976
|
+
*
|
|
12977
|
+
* * `view.attach()` - If a View is hidden and attached to a new Window, it will be shown and the `shown` event will be fired.
|
|
12978
|
+
*
|
|
12979
|
+
* * `view.create()` - A View `shown` event will be fired. (Internally the `attach` method is called when calling the `create` method, which fires the `shown` event.)
|
|
12980
|
+
*
|
|
12962
12981
|
* @interface
|
|
12963
12982
|
*/
|
|
12964
12983
|
declare type ShownEvent = BaseEvent_4 & {
|
package/out/fdc3-api.js
CHANGED
|
@@ -1819,6 +1819,14 @@ function requireFdc3Common () {
|
|
|
1819
1819
|
throw new Error(errorToThrow);
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
|
+
async _getChannels() {
|
|
1823
|
+
const channels = await this.client.getContextGroups();
|
|
1824
|
+
// fdc3 implementation of getSystemChannels returns an array of channels, have to decorate over
|
|
1825
|
+
// this so people know that these APIs are not supported
|
|
1826
|
+
return channels.map((channel) => {
|
|
1827
|
+
return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
|
1828
|
+
});
|
|
1829
|
+
}
|
|
1822
1830
|
/**
|
|
1823
1831
|
* Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
|
|
1824
1832
|
* @param channelId
|
|
@@ -1829,7 +1837,7 @@ function requireFdc3Common () {
|
|
|
1829
1837
|
this.wire.sendAction('fdc3-get-or-create-channel').catch((e) => {
|
|
1830
1838
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
1831
1839
|
});
|
|
1832
|
-
const systemChannels = await this.
|
|
1840
|
+
const systemChannels = await this._getChannels();
|
|
1833
1841
|
const userChannel = systemChannels.find((channel) => channel.id === channelId);
|
|
1834
1842
|
if (userChannel) {
|
|
1835
1843
|
return { ...userChannel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
|
@@ -1853,12 +1861,7 @@ function requireFdc3Common () {
|
|
|
1853
1861
|
this.wire.sendAction('fdc3-get-system-channels').catch((e) => {
|
|
1854
1862
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
1855
1863
|
});
|
|
1856
|
-
|
|
1857
|
-
// fdc3 implementation of getSystemChannels returns on array of channels, have to decorate over
|
|
1858
|
-
// this so people know that these APIs are not supported
|
|
1859
|
-
return channels.map((channel) => {
|
|
1860
|
-
return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
|
1861
|
-
});
|
|
1864
|
+
return this._getChannels();
|
|
1862
1865
|
}
|
|
1863
1866
|
/**
|
|
1864
1867
|
* Join all Interop Clients at the given identity to context group `contextGroupId`.
|