@openfin/core 29.73.14 → 29.73.15
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/package.json +1 -1
- package/src/api/interop/fdc3/fdc3-2.0.d.ts +11 -10
- package/src/api/interop/fdc3/fdc3-2.0.js +10 -9
- package/src/api/interop/fdc3/shapes/fdc3v2.d.ts +1 -1
- package/src/api/view/Instance.d.ts +5 -0
- package/src/api/view/Instance.js +5 -0
- package/src/api/window/Instance.d.ts +5 -0
- package/src/api/window/Instance.js +5 -0
package/package.json
CHANGED
|
@@ -171,14 +171,14 @@ export default class Fdc3Module2 extends Base implements FDC3v2.DesktopAgent {
|
|
|
171
171
|
* Find all the available instances for a particular application.
|
|
172
172
|
* @param { AppIdentifier } app
|
|
173
173
|
* @returns { Promise<Array<AppIdentifier>> }
|
|
174
|
-
* @tutorial findInstances
|
|
174
|
+
* @tutorial fdc3v2.findInstances
|
|
175
175
|
*/
|
|
176
176
|
findInstances(app: FDC3v2.AppIdentifier): Promise<Array<FDC3v2.AppIdentifier>>;
|
|
177
177
|
/**
|
|
178
178
|
* Retrieves the AppMetadata for an AppIdentifier, which provides additional metadata (such as icons, a title and description) from the App Directory record for the application, that may be used for display purposes.
|
|
179
179
|
* @param { AppIdentifier } app
|
|
180
180
|
* @returns { Promise<AppMetadata(2)> }
|
|
181
|
-
* @tutorial getAppMetadata
|
|
181
|
+
* @tutorial fdc3v2.getAppMetadata
|
|
182
182
|
*/
|
|
183
183
|
getAppMetadata(app: FDC3v2.AppIdentifier): Promise<FDC3v2.AppMetadata>;
|
|
184
184
|
/**
|
|
@@ -210,7 +210,7 @@ export default class Fdc3Module2 extends Base implements FDC3v2.DesktopAgent {
|
|
|
210
210
|
* @param { Context } context
|
|
211
211
|
* @param { string } [resultType] The type of result returned for any intent specified during resolution.
|
|
212
212
|
* @returns { Promise<Array<AppIntent(2)>> }
|
|
213
|
-
* @tutorial findIntentsByContext
|
|
213
|
+
* @tutorial fdc3v2.findIntentsByContext
|
|
214
214
|
*/
|
|
215
215
|
findIntentsByContext(context: FDC3v2.Context, resultType?: string): Promise<Array<FDC3v2.AppIntent>>;
|
|
216
216
|
/**
|
|
@@ -219,7 +219,7 @@ export default class Fdc3Module2 extends Base implements FDC3v2.DesktopAgent {
|
|
|
219
219
|
* @param { Context } context Context associated with the Intent
|
|
220
220
|
* @param { AppIdentifier | TargetApp } [app]
|
|
221
221
|
* @returns { Promise<IntentResolution(2)> }
|
|
222
|
-
* @tutorial raiseIntent
|
|
222
|
+
* @tutorial fdc3v2.raiseIntent
|
|
223
223
|
*/
|
|
224
224
|
raiseIntent(intent: string, context: FDC3v2.Context, app?: FDC3v2.AppIdentifier | FDC3v1.TargetApp): Promise<FDC3v2.IntentResolution>;
|
|
225
225
|
/**
|
|
@@ -227,7 +227,7 @@ export default class Fdc3Module2 extends Base implements FDC3v2.DesktopAgent {
|
|
|
227
227
|
* @param { Context } context Context associated with the Intent
|
|
228
228
|
* @param { AppIdentifier | TargetApp } [app]
|
|
229
229
|
* @returns { Promise<IntentResolution(2)> }
|
|
230
|
-
* @tutorial raiseIntentForContext
|
|
230
|
+
* @tutorial fdc3v2.raiseIntentForContext
|
|
231
231
|
*/
|
|
232
232
|
raiseIntentForContext(context: FDC3v2.Context, app?: FDC3v2.AppIdentifier | FDC3v1.TargetApp): Promise<FDC3v2.IntentResolution>;
|
|
233
233
|
/**
|
|
@@ -244,17 +244,17 @@ export default class Fdc3Module2 extends Base implements FDC3v2.DesktopAgent {
|
|
|
244
244
|
* @returns { Promise<Channel> }
|
|
245
245
|
* @tutorial fdc3.getOrCreateChannel
|
|
246
246
|
*/
|
|
247
|
-
getOrCreateChannel(channelId: string): Promise<
|
|
247
|
+
getOrCreateChannel(channelId: string): Promise<FDC3v2.Channel>;
|
|
248
248
|
/**
|
|
249
249
|
* Returns a Channel with an auto-generated identity that is intended for private communication between applications. Primarily used to create channels that will be returned to other applications via an IntentResolution for a raised intent.
|
|
250
250
|
* @returns { Promise<PrivateChannel> }
|
|
251
|
-
* @tutorial createPrivateChannel
|
|
251
|
+
* @tutorial fdc3v2.createPrivateChannel
|
|
252
252
|
*/
|
|
253
253
|
createPrivateChannel(): Promise<FDC3v2.PrivateChannel>;
|
|
254
254
|
/**
|
|
255
255
|
* Retrieves a list of the User Channels available for the app to join.
|
|
256
256
|
* @returns { Promise<Channel[]>}
|
|
257
|
-
* @tutorial getUserChannels
|
|
257
|
+
* @tutorial fdc3v2.getUserChannels
|
|
258
258
|
*/
|
|
259
259
|
getUserChannels(): Promise<Array<FDC3v1.SystemChannel>>;
|
|
260
260
|
/**
|
|
@@ -268,7 +268,7 @@ export default class Fdc3Module2 extends Base implements FDC3v2.DesktopAgent {
|
|
|
268
268
|
* Join an app to a specified User channel.
|
|
269
269
|
* @param { string } channelId Channel name
|
|
270
270
|
* @returns { Promise<void> }
|
|
271
|
-
* @tutorial joinUserChannel
|
|
271
|
+
* @tutorial fdc3v2.joinUserChannel
|
|
272
272
|
*/
|
|
273
273
|
joinUserChannel(channelId: string): Promise<void>;
|
|
274
274
|
/**
|
|
@@ -282,6 +282,7 @@ export default class Fdc3Module2 extends Base implements FDC3v2.DesktopAgent {
|
|
|
282
282
|
/**
|
|
283
283
|
* Returns the Channel object for the current User channel membership
|
|
284
284
|
* @returns { Promise<FDC3.Channel | null> }
|
|
285
|
+
* @tutorial fdc3.getCurrentChannel
|
|
285
286
|
*/
|
|
286
287
|
getCurrentChannel(): Promise<FDC3v2.Channel | null>;
|
|
287
288
|
/**
|
|
@@ -294,7 +295,7 @@ export default class Fdc3Module2 extends Base implements FDC3v2.DesktopAgent {
|
|
|
294
295
|
* Retrieves information about the FDC3 implementation, including the supported version of the FDC3 specification, the name of the provider of the implementation, its own version number, details of whether optional API features are implemented and the metadata of the calling application according to the desktop agent.
|
|
295
296
|
* fdc3HandleGetInfo must be overridden in the InteropBroker so that the ImplementationMetadata will have the appMetadata info.
|
|
296
297
|
* @returns { Promise<ImplementationMetadata(2)> }
|
|
297
|
-
* @tutorial getInfo
|
|
298
|
+
* @tutorial fdc3v2.getInfo
|
|
298
299
|
*/
|
|
299
300
|
getInfo(): Promise<FDC3v2.ImplementationMetadata>;
|
|
300
301
|
}
|
|
@@ -180,7 +180,7 @@ class Fdc3Module2 extends base_1.Base {
|
|
|
180
180
|
* Find all the available instances for a particular application.
|
|
181
181
|
* @param { AppIdentifier } app
|
|
182
182
|
* @returns { Promise<Array<AppIdentifier>> }
|
|
183
|
-
* @tutorial findInstances
|
|
183
|
+
* @tutorial fdc3v2.findInstances
|
|
184
184
|
*/
|
|
185
185
|
async findInstances(app) {
|
|
186
186
|
this.wire.sendAction('fdc3-find-instances').catch((e) => {
|
|
@@ -198,7 +198,7 @@ class Fdc3Module2 extends base_1.Base {
|
|
|
198
198
|
* Retrieves the AppMetadata for an AppIdentifier, which provides additional metadata (such as icons, a title and description) from the App Directory record for the application, that may be used for display purposes.
|
|
199
199
|
* @param { AppIdentifier } app
|
|
200
200
|
* @returns { Promise<AppMetadata(2)> }
|
|
201
|
-
* @tutorial getAppMetadata
|
|
201
|
+
* @tutorial fdc3v2.getAppMetadata
|
|
202
202
|
*/
|
|
203
203
|
async getAppMetadata(app) {
|
|
204
204
|
this.wire.sendAction('fdc3-get-app-metadata').catch((e) => {
|
|
@@ -276,7 +276,7 @@ class Fdc3Module2 extends base_1.Base {
|
|
|
276
276
|
* @param { Context } context
|
|
277
277
|
* @param { string } [resultType] The type of result returned for any intent specified during resolution.
|
|
278
278
|
* @returns { Promise<Array<AppIntent(2)>> }
|
|
279
|
-
* @tutorial findIntentsByContext
|
|
279
|
+
* @tutorial fdc3v2.findIntentsByContext
|
|
280
280
|
*/
|
|
281
281
|
async findIntentsByContext(context, resultType) {
|
|
282
282
|
this.wire.sendAction('fdc3-find-intents-by-context').catch((e) => {
|
|
@@ -297,7 +297,7 @@ class Fdc3Module2 extends base_1.Base {
|
|
|
297
297
|
* @param { Context } context Context associated with the Intent
|
|
298
298
|
* @param { AppIdentifier | TargetApp } [app]
|
|
299
299
|
* @returns { Promise<IntentResolution(2)> }
|
|
300
|
-
* @tutorial raiseIntent
|
|
300
|
+
* @tutorial fdc3v2.raiseIntent
|
|
301
301
|
*/
|
|
302
302
|
async raiseIntent(intent, context, app) {
|
|
303
303
|
this.wire.sendAction('fdc3-raise-intent').catch((e) => {
|
|
@@ -316,7 +316,7 @@ class Fdc3Module2 extends base_1.Base {
|
|
|
316
316
|
* @param { Context } context Context associated with the Intent
|
|
317
317
|
* @param { AppIdentifier | TargetApp } [app]
|
|
318
318
|
* @returns { Promise<IntentResolution(2)> }
|
|
319
|
-
* @tutorial raiseIntentForContext
|
|
319
|
+
* @tutorial fdc3v2.raiseIntentForContext
|
|
320
320
|
*/
|
|
321
321
|
async raiseIntentForContext(context, app) {
|
|
322
322
|
// TODO: We have to do the same thing we do for raiseIntent here as well.
|
|
@@ -384,7 +384,7 @@ class Fdc3Module2 extends base_1.Base {
|
|
|
384
384
|
/**
|
|
385
385
|
* Returns a Channel with an auto-generated identity that is intended for private communication between applications. Primarily used to create channels that will be returned to other applications via an IntentResolution for a raised intent.
|
|
386
386
|
* @returns { Promise<PrivateChannel> }
|
|
387
|
-
* @tutorial createPrivateChannel
|
|
387
|
+
* @tutorial fdc3v2.createPrivateChannel
|
|
388
388
|
*/
|
|
389
389
|
async createPrivateChannel() {
|
|
390
390
|
const channelId = (0, utils_1.generateId)();
|
|
@@ -396,7 +396,7 @@ class Fdc3Module2 extends base_1.Base {
|
|
|
396
396
|
/**
|
|
397
397
|
* Retrieves a list of the User Channels available for the app to join.
|
|
398
398
|
* @returns { Promise<Channel[]>}
|
|
399
|
-
* @tutorial getUserChannels
|
|
399
|
+
* @tutorial fdc3v2.getUserChannels
|
|
400
400
|
*/
|
|
401
401
|
async getUserChannels() {
|
|
402
402
|
const channels = await this.fin.me.interop.getContextGroups();
|
|
@@ -420,7 +420,7 @@ class Fdc3Module2 extends base_1.Base {
|
|
|
420
420
|
* Join an app to a specified User channel.
|
|
421
421
|
* @param { string } channelId Channel name
|
|
422
422
|
* @returns { Promise<void> }
|
|
423
|
-
* @tutorial joinUserChannel
|
|
423
|
+
* @tutorial fdc3v2.joinUserChannel
|
|
424
424
|
*/
|
|
425
425
|
async joinUserChannel(channelId) {
|
|
426
426
|
return this.fdc3Module.joinChannel(channelId);
|
|
@@ -439,6 +439,7 @@ class Fdc3Module2 extends base_1.Base {
|
|
|
439
439
|
/**
|
|
440
440
|
* Returns the Channel object for the current User channel membership
|
|
441
441
|
* @returns { Promise<FDC3.Channel | null> }
|
|
442
|
+
* @tutorial fdc3.getCurrentChannel
|
|
442
443
|
*/
|
|
443
444
|
async getCurrentChannel() {
|
|
444
445
|
const currentChannel = await this.fdc3Module.getCurrentChannel();
|
|
@@ -463,7 +464,7 @@ class Fdc3Module2 extends base_1.Base {
|
|
|
463
464
|
* Retrieves information about the FDC3 implementation, including the supported version of the FDC3 specification, the name of the provider of the implementation, its own version number, details of whether optional API features are implemented and the metadata of the calling application according to the desktop agent.
|
|
464
465
|
* fdc3HandleGetInfo must be overridden in the InteropBroker so that the ImplementationMetadata will have the appMetadata info.
|
|
465
466
|
* @returns { Promise<ImplementationMetadata(2)> }
|
|
466
|
-
* @tutorial getInfo
|
|
467
|
+
* @tutorial fdc3v2.getInfo
|
|
467
468
|
*/
|
|
468
469
|
async getInfo() {
|
|
469
470
|
return InteropClient_1.InteropClient.ferryFdc3Call(fin.me.interop, 'fdc3v2GetInfo', { fdc3Version: '2.0' });
|
|
@@ -63,7 +63,7 @@ export interface DesktopAgent {
|
|
|
63
63
|
addContextListener(contextType: string | null, handler: ContextHandler): Promise<Listener>;
|
|
64
64
|
getUserChannels(): Promise<Array<SystemChannel>>;
|
|
65
65
|
joinUserChannel(channelId: string): Promise<void>;
|
|
66
|
-
getOrCreateChannel(channelId: string): Promise<
|
|
66
|
+
getOrCreateChannel(channelId: string): Promise<Channel>;
|
|
67
67
|
createPrivateChannel(): Promise<PrivateChannel>;
|
|
68
68
|
getCurrentChannel(): Promise<ChannelV1 | null>;
|
|
69
69
|
leaveCurrentChannel(): Promise<void>;
|
|
@@ -54,6 +54,11 @@ import UpdatableViewOptions = OpenFin.UpdatableViewOptions;
|
|
|
54
54
|
* @property {boolean} [api.iframe.crossOriginInjection=false] Controls if the `fin` API object is present for cross origin iframes.
|
|
55
55
|
* @property {boolean} [api.iframe.sameOriginInjection=true] Controls if the `fin` API object is present for same origin iframes.
|
|
56
56
|
*
|
|
57
|
+
* @property {string} [autoplayPolicy="no-user-gesture-required"]
|
|
58
|
+
* Autoplay policy to apply to content in the window, can be
|
|
59
|
+
* `no-user-gesture-required`, `user-gesture-required`,
|
|
60
|
+
* `document-user-activation-required`. Defaults to `no-user-gesture-required`.
|
|
61
|
+
*
|
|
57
62
|
* @property {object} [autoResize] AutoResize options
|
|
58
63
|
*
|
|
59
64
|
* @property {object} [bounds] initial bounds given relative to the window.
|
package/src/api/view/Instance.js
CHANGED
|
@@ -58,6 +58,11 @@ const bounds_observer_1 = require("../platform/layout/utils/bounds-observer");
|
|
|
58
58
|
* @property {boolean} [api.iframe.crossOriginInjection=false] Controls if the `fin` API object is present for cross origin iframes.
|
|
59
59
|
* @property {boolean} [api.iframe.sameOriginInjection=true] Controls if the `fin` API object is present for same origin iframes.
|
|
60
60
|
*
|
|
61
|
+
* @property {string} [autoplayPolicy="no-user-gesture-required"]
|
|
62
|
+
* Autoplay policy to apply to content in the window, can be
|
|
63
|
+
* `no-user-gesture-required`, `user-gesture-required`,
|
|
64
|
+
* `document-user-activation-required`. Defaults to `no-user-gesture-required`.
|
|
65
|
+
*
|
|
61
66
|
* @property {object} [autoResize] AutoResize options
|
|
62
67
|
*
|
|
63
68
|
* @property {object} [bounds] initial bounds given relative to the window.
|
|
@@ -127,6 +127,11 @@ import WindowEvents = OpenFin.WindowEvents;
|
|
|
127
127
|
* The aspect ratio of width to height to enforce for the window. If this value is equal to or less than zero,
|
|
128
128
|
* an aspect ratio will not be enforced.
|
|
129
129
|
*
|
|
130
|
+
* @property {string} [autoplayPolicy="no-user-gesture-required"]
|
|
131
|
+
* Autoplay policy to apply to content in the window, can be
|
|
132
|
+
* `no-user-gesture-required`, `user-gesture-required`,
|
|
133
|
+
* `document-user-activation-required`. Defaults to `no-user-gesture-required`.
|
|
134
|
+
*
|
|
130
135
|
* @property {boolean} [autoShow=true]
|
|
131
136
|
* A flag to automatically show the window when it is created.
|
|
132
137
|
*
|
|
@@ -134,6 +134,11 @@ const view_1 = require("../view");
|
|
|
134
134
|
* The aspect ratio of width to height to enforce for the window. If this value is equal to or less than zero,
|
|
135
135
|
* an aspect ratio will not be enforced.
|
|
136
136
|
*
|
|
137
|
+
* @property {string} [autoplayPolicy="no-user-gesture-required"]
|
|
138
|
+
* Autoplay policy to apply to content in the window, can be
|
|
139
|
+
* `no-user-gesture-required`, `user-gesture-required`,
|
|
140
|
+
* `document-user-activation-required`. Defaults to `no-user-gesture-required`.
|
|
141
|
+
*
|
|
137
142
|
* @property {boolean} [autoShow=true]
|
|
138
143
|
* A flag to automatically show the window when it is created.
|
|
139
144
|
*
|