@openfin/core
Advanced tools
Comparing version 28.71.14 to 28.71.15
@@ -257,2 +257,15 @@ // / <reference lib="dom"/> | ||
export interface ShowViewOnWindowResizeOptions { | ||
enabled?: boolean; | ||
paintIntervalMs?: number; | ||
} | ||
export interface ShowViewOnSplitterDragOptions { | ||
enabled?: boolean; | ||
} | ||
export type ViewVisibilityOptions = { | ||
showViewsOnWindowResize?: ShowViewOnWindowResizeOptions; | ||
showViewsOnSplitterDrag?: ShowViewOnSplitterDragOptions; | ||
}; | ||
export type WindowState = 'maximized' | 'minimized' | 'normal'; | ||
@@ -298,2 +311,4 @@ | ||
fdc3InteropApi?: string; | ||
// Platform only | ||
viewVisibility?: ViewVisibilityOptions; | ||
}; | ||
@@ -1119,2 +1134,3 @@ | ||
userAppConfigArgs?: object; | ||
timeToLive?: number; | ||
}; | ||
@@ -1121,0 +1137,0 @@ |
{ | ||
"name": "@openfin/core", | ||
"version": "28.71.14", | ||
"version": "28.71.15", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "main": "./src/mock.js", |
@@ -114,2 +114,3 @@ import { Base } from '../base'; | ||
* @param { Array.<ManifestInfo> } applications | ||
* @param {RvmLaunchOptions} [opts] - Parameters that the RVM will use. | ||
* @return {Promise.<void>} | ||
@@ -120,3 +121,3 @@ * @static | ||
*/ | ||
startManyManifests(applications: Array<OpenFin.ManifestInfo>): Promise<void>; | ||
startManyManifests(applications: Array<OpenFin.ManifestInfo>, opts?: OpenFin.RvmLaunchOptions): Promise<void>; | ||
/** | ||
@@ -123,0 +124,0 @@ * Asynchronously returns an Application object that represents the current application |
@@ -159,2 +159,3 @@ "use strict"; | ||
* @param { Array.<ManifestInfo> } applications | ||
* @param {RvmLaunchOptions} [opts] - Parameters that the RVM will use. | ||
* @return {Promise.<void>} | ||
@@ -165,4 +166,4 @@ * @static | ||
*/ | ||
async startManyManifests(applications) { | ||
return this.wire.sendAction('run-applications', { applications }).then(() => undefined); | ||
async startManyManifests(applications, opts) { | ||
return this.wire.sendAction('run-applications', { applications, opts }).then(() => undefined); | ||
} | ||
@@ -169,0 +170,0 @@ /** |
@@ -268,2 +268,8 @@ import { EmitterBase } from '../base'; | ||
/** | ||
* @summary Checks if the application has an associated tray icon. | ||
* @return {Promise.<boolean>} | ||
* @tutorial Application.hasTrayIcon | ||
*/ | ||
hasTrayIcon(): Promise<boolean>; | ||
/** | ||
* Closes the application by terminating its process. | ||
@@ -270,0 +276,0 @@ * @return {Promise.<void>} |
@@ -367,2 +367,10 @@ "use strict"; | ||
/** | ||
* @summary Checks if the application has an associated tray icon. | ||
* @return {Promise.<boolean>} | ||
* @tutorial Application.hasTrayIcon | ||
*/ | ||
hasTrayIcon() { | ||
return this.wire.sendAction('has-tray-icon', this.identity).then(({ payload }) => payload.data); | ||
} | ||
/** | ||
* Closes the application by terminating its process. | ||
@@ -369,0 +377,0 @@ * @return {Promise.<void>} |
@@ -36,3 +36,3 @@ import { Base } from '../base'; | ||
*/ | ||
connectSync(name: string, interopConfig: OpenFin.InteropConfig): InteropClient; | ||
connectSync(name: string, interopConfig?: OpenFin.InteropConfig): InteropClient; | ||
} |
@@ -32,6 +32,12 @@ "use strict"; | ||
}); | ||
const provider = await this.fin.InterApplicationBus.Channel.create(`interop-broker-${name}`); | ||
// Allows for manifest-level configuration, without having to override. (e.g. specifying custom context groups) | ||
const options = await this.fin.Application.getCurrentSync().getInfo(); | ||
return override(InteropBroker_1.InteropBroker, this.wire, provider, options.initialOptions.interopBrokerConfiguration || {}); | ||
let provider; | ||
const getProvider = () => { | ||
if (!provider) { | ||
provider = this.fin.InterApplicationBus.Channel.create(`interop-broker-${name}`); | ||
} | ||
return provider; | ||
}; | ||
return override(InteropBroker_1.InteropBroker, this.wire, getProvider, options.initialOptions.interopBrokerConfiguration || {}); | ||
} | ||
@@ -38,0 +44,0 @@ /** |
@@ -127,3 +127,3 @@ import { Base } from '../base'; | ||
export declare class InteropBroker extends Base { | ||
private channel; | ||
private getProvider; | ||
private interopClients; | ||
@@ -134,3 +134,4 @@ private contextGroupsById; | ||
private sessionContextGroupMap; | ||
constructor(wire: Transport, channel: OpenFin.ChannelProvider, options?: any); | ||
private channel; | ||
constructor(wire: Transport, getProvider: () => Promise<OpenFin.ChannelProvider>, options?: any); | ||
/** | ||
@@ -350,2 +351,3 @@ * SetContextOptions interface | ||
private static setCurrentContextGroupInClientOptions; | ||
private setupChannelProvider; | ||
private wireChannel; | ||
@@ -352,0 +354,0 @@ /** |
@@ -174,5 +174,5 @@ "use strict"; | ||
class InteropBroker extends base_1.Base { | ||
constructor(wire, channel, options) { | ||
constructor(wire, getProvider, options) { | ||
super(wire); | ||
this.channel = channel; | ||
this.getProvider = getProvider; | ||
this.interopClients = new Map(); | ||
@@ -187,3 +187,3 @@ this.contextGroupsById = new Map(); | ||
this.setContextGroupMap(); | ||
this.wireChannel(channel); | ||
this.setupChannelProvider(); | ||
} | ||
@@ -326,15 +326,20 @@ /* | ||
// Sanity check here in case a single app has multiple connections | ||
const allConnections = this.channel.connections.filter((x) => x.uuid === target.uuid && x.name === target.name); | ||
if (!allConnections.length) { | ||
throw new Error(`Given Identity ${target.uuid} ${target.name} is not connected to the Interop Broker.`); | ||
try { | ||
const allConnections = this.channel.connections.filter((x) => x.uuid === target.uuid && x.name === target.name); | ||
if (!allConnections.length) { | ||
throw new Error(`Given Identity ${target.uuid} ${target.name} is not connected to the Interop Broker.`); | ||
} | ||
if (allConnections.length > 1) { | ||
// Should figure out how we want to handle this situation. In the meantime, just change context group for all connections. | ||
console.warn(`More than one connection found for identity ${target.uuid} ${target.name}`); | ||
} | ||
const promises = []; | ||
for (const connection of allConnections) { | ||
promises.push(this.addClientToContextGroup({ contextGroupId }, connection)); | ||
} | ||
await Promise.all(promises); | ||
} | ||
if (allConnections.length > 1) { | ||
// Should figure out how we want to handle this situation. In the meantime, just change context group for all connections. | ||
console.warn(`More than one connection found for identity ${target.uuid} ${target.name}`); | ||
catch (error) { | ||
throw new Error(error); | ||
} | ||
const promises = []; | ||
for (const connection of allConnections) { | ||
promises.push(this.addClientToContextGroup({ contextGroupId }, connection)); | ||
} | ||
await Promise.all(promises); | ||
} | ||
@@ -408,15 +413,20 @@ else { | ||
} | ||
// Sanity check here in case a single app has multiple connections | ||
const allConnections = this.channel.connections.filter((x) => x.uuid === target.uuid && x.name === target.name); | ||
if (!allConnections.length) { | ||
throw new Error(`No connection found for given Identity ${target.uuid} ${target.name}`); | ||
try { | ||
// Sanity check here in case a single app has multiple connections | ||
const allConnections = this.channel.connections.filter((x) => x.uuid === target.uuid && x.name === target.name); | ||
if (!allConnections.length) { | ||
throw new Error(`No connection found for given Identity ${target.uuid} ${target.name}`); | ||
} | ||
if (allConnections.length > 1) { | ||
console.warn(`More than one connection found for identity ${target.uuid} ${target.name}`); | ||
} | ||
const promises = []; | ||
for (const connection of allConnections) { | ||
promises.push(this.removeClientFromContextGroup(connection)); | ||
} | ||
await Promise.all(promises); | ||
} | ||
if (allConnections.length > 1) { | ||
console.warn(`More than one connection found for identity ${target.uuid} ${target.name}`); | ||
catch (error) { | ||
throw new Error(error); | ||
} | ||
const promises = []; | ||
for (const connection of allConnections) { | ||
promises.push(this.removeClientFromContextGroup(connection)); | ||
} | ||
await Promise.all(promises); | ||
} | ||
@@ -713,4 +723,6 @@ else { | ||
invokeContextHandler(clientIdentity, handlerId, context) { | ||
this.channel.dispatch(clientIdentity, handlerId, context).catch((e) => { | ||
console.error(`Error invoking context handler ${handlerId} for context type ${context.type} in client ${clientIdentity.uuid}/${clientIdentity.name}/${clientIdentity.endpointId}`, e); | ||
this.getProvider().then((channel) => { | ||
channel.dispatch(clientIdentity, handlerId, context).catch((e) => { | ||
console.error(`Error invoking context handler ${handlerId} for context type ${context.type} in client ${clientIdentity.uuid}/${clientIdentity.name}/${clientIdentity.endpointId}`, e); | ||
}); | ||
}); | ||
@@ -834,2 +846,12 @@ } | ||
} | ||
async setupChannelProvider() { | ||
try { | ||
const channel = await this.getProvider(); | ||
this.channel = channel; | ||
this.wireChannel(channel); | ||
} | ||
catch (error) { | ||
throw new Error(`Error setting up Interop Broker Channel Provider: ${error}`); | ||
} | ||
} | ||
// Setup Channel Connection Logic | ||
@@ -836,0 +858,0 @@ wireChannel(channel) { |
@@ -141,3 +141,3 @@ import Transport from '../../transport/transport'; | ||
#private; | ||
constructor(wire: Transport, name: string, interopConfig: OpenFin.InteropConfig); | ||
constructor(wire: Transport, name: string, interopConfig?: OpenFin.InteropConfig); | ||
/** | ||
@@ -268,3 +268,2 @@ * Sets a context for the context group of the current entity. | ||
joinSessionContextGroup(sessionContextGroupId: string): Promise<OpenFin.SessionContextGroup>; | ||
private wrapIntentHandler; | ||
} |
@@ -158,3 +158,3 @@ "use strict"; | ||
class InteropClient extends base_1.Base { | ||
constructor(wire, name, interopConfig) { | ||
constructor(wire, name, interopConfig = {}) { | ||
super(wire); | ||
@@ -197,2 +197,5 @@ _clientPromise.set(this, void 0); | ||
}); | ||
if (typeof handler !== 'function') { | ||
throw new Error("Non-function argument passed to the first parameter 'handler'. Be aware that the argument order does not match the FDC3 standard."); | ||
} | ||
const client = await __classPrivateFieldGet(this, _clientPromise); | ||
@@ -332,3 +335,3 @@ let handlerId; | ||
const handlerId = `intent-handler-${intentName}`; | ||
const wrappedHandler = this.wrapIntentHandler(handler, handlerId); | ||
const wrappedHandler = utils_1.wrapIntentHandler(handler, handlerId); | ||
try { | ||
@@ -436,19 +439,4 @@ await client.register(handlerId, wrappedHandler); | ||
} | ||
/* | ||
Internal Utilties | ||
*/ | ||
// eslint-disable-next-line class-methods-use-this | ||
wrapIntentHandler(handler, handlerId) { | ||
return async (intent) => { | ||
try { | ||
await handler(intent); | ||
} | ||
catch (error) { | ||
console.error(`Error thrown by handler ${handlerId}: ${error}`); | ||
throw error; | ||
} | ||
}; | ||
} | ||
} | ||
exports.InteropClient = InteropClient; | ||
_clientPromise = new WeakMap(), _sessionContextGroups = new WeakMap(); |
@@ -56,2 +56,5 @@ "use strict"; | ||
}); | ||
if (typeof contextHandler !== 'function') { | ||
throw new Error("Non-function argument passed to the first parameter 'handler'. Be aware that the argument order does not match the FDC3 standard."); | ||
} | ||
const client = await __classPrivateFieldGet(this, _clientPromise); | ||
@@ -58,0 +61,0 @@ let handlerId; |
@@ -12,1 +12,2 @@ export declare const generateId: () => string; | ||
}; | ||
export declare const wrapIntentHandler: (handler: OpenFin.IntentHandler, handlerId: string) => (intent: OpenFin.Intent) => Promise<void>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BROKER_ERRORS = exports.generateOverrideWarning = exports.generateOverrideError = exports.wrapContextHandler = exports.wrapInTryCatch = exports.generateId = void 0; | ||
exports.wrapIntentHandler = exports.BROKER_ERRORS = exports.generateOverrideWarning = exports.generateOverrideError = exports.wrapContextHandler = exports.wrapInTryCatch = exports.generateId = void 0; | ||
exports.generateId = () => `${Math.random()}${Date.now()}`; | ||
@@ -37,1 +37,12 @@ exports.wrapInTryCatch = (f, prefix) => (...args) => { | ||
}; | ||
exports.wrapIntentHandler = (handler, handlerId) => { | ||
return async (intent) => { | ||
try { | ||
await handler(intent); | ||
} | ||
catch (error) { | ||
console.error(`Error thrown by handler ${handlerId}: ${error}`); | ||
throw error; | ||
} | ||
}; | ||
}; |
@@ -21,2 +21,4 @@ "use strict"; | ||
const base_1 = require("../../base"); | ||
const SplitterController_1 = require("./SplitterController"); | ||
const view_overlay_1 = require("./SplitterController/view-overlay"); | ||
/** | ||
@@ -109,3 +111,5 @@ * InitLayoutOptions interface | ||
const ManagerConstructor = await this.wire.environment.getManagerConstructor(); | ||
__classPrivateFieldSet(this, _layoutManager, new ManagerConstructor()); | ||
const viewOverlay = new view_overlay_1.ViewOverlay(this.wire); | ||
const splitterController = new SplitterController_1.SplitterController(viewOverlay); | ||
__classPrivateFieldSet(this, _layoutManager, new ManagerConstructor(splitterController)); | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore | ||
@@ -112,0 +116,0 @@ // @ts-ignore - layout warning here for backwards compatibility, can remove layout check in .52 |
@@ -16,2 +16,3 @@ import { EmitterBase } from '../base'; | ||
import ApplicationWindowInfo = OpenFin.ApplicationWindowInfo; | ||
import PrinterInfo = OpenFin.PrinterInfo; | ||
/** | ||
@@ -401,2 +402,3 @@ * AppAssetInfo interface | ||
* @property { object } [userAppConfigArgs] The user app configuration args | ||
* @property { number } [timeToLive] Timeout in seconds until RVM launch request expires | ||
*/ | ||
@@ -962,2 +964,8 @@ /** | ||
registerUsage({ data, type }: OpenFin.RegisterUsageData): Promise<void>; | ||
/** | ||
* Returns an array with all printers of the caller and not all the printers on the desktop. | ||
* @return { Promise.Array.<PrinterInfo> } | ||
* @tutorial System.getPrinters | ||
*/ | ||
getPrinters(): Promise<PrinterInfo[]>; | ||
} |
@@ -390,2 +390,3 @@ "use strict"; | ||
* @property { object } [userAppConfigArgs] The user app configuration args | ||
* @property { number } [timeToLive] Timeout in seconds until RVM launch request expires | ||
*/ | ||
@@ -1241,3 +1242,12 @@ /** | ||
} | ||
/** | ||
* Returns an array with all printers of the caller and not all the printers on the desktop. | ||
* @return { Promise.Array.<PrinterInfo> } | ||
* @tutorial System.getPrinters | ||
*/ | ||
async getPrinters() { | ||
const { payload } = await this.wire.sendAction('system-get-printers'); | ||
return payload.data; | ||
} | ||
} | ||
exports.default = System; |
@@ -60,7 +60,10 @@ import { WebContents } from '../webcontents/main'; | ||
* @property {any} [customData=""] - _Updatable._ | ||
* A field that the user can attach serializable data to to be ferried around with the view options. | ||
* A field that the user can attach serializable data to be ferried around with the view options. | ||
* _When omitted, the default value of this property is the empty string (`""`)._ | ||
* | ||
* @property {any} [customContext=""] - _Updatable._ | ||
* A field that the user can use to attach serializable data that will be saved when {@link Platform#getSnapshot Platform.getSnapshot} | ||
* is called. | ||
* When omitted, the default value of this property is the empty string (`""`). | ||
* As opposed to customData this is meant for frequent updates and sharing with other contexts. [Example]{@tutorial customContext} | ||
* As opposed to customData, this is meant for frequent updates and sharing with other contexts. [Example]{@tutorial customContext} | ||
* | ||
@@ -252,2 +255,3 @@ * @property {object[]} [hotkeys=[]] - _Updatable._ | ||
* Returns an array with all system printers | ||
* @deprecated use System.getPrinters instead | ||
* @function getPrinters | ||
@@ -254,0 +258,0 @@ * @memberOf View |
@@ -63,7 +63,10 @@ "use strict"; | ||
* @property {any} [customData=""] - _Updatable._ | ||
* A field that the user can attach serializable data to to be ferried around with the view options. | ||
* A field that the user can attach serializable data to be ferried around with the view options. | ||
* _When omitted, the default value of this property is the empty string (`""`)._ | ||
* | ||
* @property {any} [customContext=""] - _Updatable._ | ||
* A field that the user can use to attach serializable data that will be saved when {@link Platform#getSnapshot Platform.getSnapshot} | ||
* is called. | ||
* When omitted, the default value of this property is the empty string (`""`). | ||
* As opposed to customData this is meant for frequent updates and sharing with other contexts. [Example]{@tutorial customContext} | ||
* As opposed to customData, this is meant for frequent updates and sharing with other contexts. [Example]{@tutorial customContext} | ||
* | ||
@@ -224,2 +227,3 @@ * @property {object[]} [hotkeys=[]] - _Updatable._ | ||
* Returns an array with all system printers | ||
* @deprecated use System.getPrinters instead | ||
* @function getPrinters | ||
@@ -226,0 +230,0 @@ * @memberOf View |
@@ -174,12 +174,12 @@ import Transport from '../../transport/transport'; | ||
* | ||
* @property {any} [customContext=""] - _Updatable._ | ||
* @property {any} [customContext=""] - _Updatable. Inheritable._ | ||
* A field that the user can use to attach serializable data that will be saved when {@link Platform#getSnapshot Platform.getSnapshot} | ||
* is called. If a window in a Platform is trying to update or retrieve its own context, it can use the | ||
* {@link Platform#setWindowContext Platform.setWindowContext} and {@link Platform#getWindowContext Platform.getWindowContext} calls. | ||
* When omitted, the default value of this property is the empty string (`""`). | ||
* As opposed to customData this is meant for frequent updates and sharing with other contexts. [Example]{@tutorial customContext} | ||
* _When omitted, _inherits_ from the parent application._ | ||
* As opposed to customData, this is meant for frequent updates and sharing with other contexts. [Example]{@tutorial customContext} | ||
* | ||
* @property {any} [customData=""] - _Updatable._ | ||
* A field that the user can attach serializable data to to be ferried around with the window options. | ||
* _When omitted, the default value of this property is the empty string (`""`)._ | ||
* @property {any} [customData=""] - _Updatable. Inheritable._ | ||
* A field that the user can attach serializable data to be ferried around with the window options. | ||
* _When omitted, _inherits_ from the parent application._ | ||
* | ||
@@ -239,3 +239,3 @@ * @property {object[]} [customRequestHeaders] | ||
* A URL for the icon to be shown in the window title bar and the taskbar. | ||
* _When omitted, inherits from the parent application._ | ||
* When omitted, inherits from the parent application._ | ||
* note: Window OS caches taskbar icons, therefore an icon change might only be visible after the cache is removed or the uuid is changed. | ||
@@ -338,4 +338,21 @@ * | ||
* When set to `false`, the window will appear immediately without waiting for content to be loaded. | ||
* | ||
* @property {ViewVisibility} [viewVisibility] | ||
* _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user. | ||
*/ | ||
/** | ||
* @typedef {Object} ViewVisibility _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user. | ||
* @property {ShowViewsOnWindowResize} [showViewsOnWindowResize] Enables views to be shown when a Platform Window is being resized by the user. | ||
* @property {ShowViewsOnSplitterDrag} [showViewsOnSplitterDrag] Allows views to be shown when they are resized by the user dragging the splitter between layout stacks. | ||
*/ | ||
/** | ||
* @typedef {Object} ShowViewsOnWindowResize _Platform Windows Only_. Enables views to be shown when a Platform Window is being resized by the user. | ||
* @property {boolean} [enabled=false] Enables or disables showing Views when a Platform Window is being resized. | ||
* @property {number} [paintIntervalMs=0] Number of miliseconds to wait between view repaints. | ||
*/ | ||
/** | ||
* @typedef {Object} ShowViewsOnSplitterDrag _Platform Windows Only_. Allows views to be shown when they are resized by the user dragging the splitter between layout stacks. | ||
* @property {boolean} [enabled=false] Enables or disables showing views when the layout splitter is being dragged. | ||
*/ | ||
/** | ||
* @typedef {object} CapturePageOptions | ||
@@ -616,2 +633,3 @@ * @property { Area } [area] The area of the window to be captured. | ||
* Returns an array with all system printers | ||
* @deprecated use System.getPrinters instead | ||
* @function getPrinters | ||
@@ -618,0 +636,0 @@ * @memberOf Window |
@@ -181,12 +181,12 @@ "use strict"; | ||
* | ||
* @property {any} [customContext=""] - _Updatable._ | ||
* @property {any} [customContext=""] - _Updatable. Inheritable._ | ||
* A field that the user can use to attach serializable data that will be saved when {@link Platform#getSnapshot Platform.getSnapshot} | ||
* is called. If a window in a Platform is trying to update or retrieve its own context, it can use the | ||
* {@link Platform#setWindowContext Platform.setWindowContext} and {@link Platform#getWindowContext Platform.getWindowContext} calls. | ||
* When omitted, the default value of this property is the empty string (`""`). | ||
* As opposed to customData this is meant for frequent updates and sharing with other contexts. [Example]{@tutorial customContext} | ||
* _When omitted, _inherits_ from the parent application._ | ||
* As opposed to customData, this is meant for frequent updates and sharing with other contexts. [Example]{@tutorial customContext} | ||
* | ||
* @property {any} [customData=""] - _Updatable._ | ||
* A field that the user can attach serializable data to to be ferried around with the window options. | ||
* _When omitted, the default value of this property is the empty string (`""`)._ | ||
* @property {any} [customData=""] - _Updatable. Inheritable._ | ||
* A field that the user can attach serializable data to be ferried around with the window options. | ||
* _When omitted, _inherits_ from the parent application._ | ||
* | ||
@@ -246,3 +246,3 @@ * @property {object[]} [customRequestHeaders] | ||
* A URL for the icon to be shown in the window title bar and the taskbar. | ||
* _When omitted, inherits from the parent application._ | ||
* When omitted, inherits from the parent application._ | ||
* note: Window OS caches taskbar icons, therefore an icon change might only be visible after the cache is removed or the uuid is changed. | ||
@@ -345,4 +345,21 @@ * | ||
* When set to `false`, the window will appear immediately without waiting for content to be loaded. | ||
* | ||
* @property {ViewVisibility} [viewVisibility] | ||
* _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user. | ||
*/ | ||
/** | ||
* @typedef {Object} ViewVisibility _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user. | ||
* @property {ShowViewsOnWindowResize} [showViewsOnWindowResize] Enables views to be shown when a Platform Window is being resized by the user. | ||
* @property {ShowViewsOnSplitterDrag} [showViewsOnSplitterDrag] Allows views to be shown when they are resized by the user dragging the splitter between layout stacks. | ||
*/ | ||
/** | ||
* @typedef {Object} ShowViewsOnWindowResize _Platform Windows Only_. Enables views to be shown when a Platform Window is being resized by the user. | ||
* @property {boolean} [enabled=false] Enables or disables showing Views when a Platform Window is being resized. | ||
* @property {number} [paintIntervalMs=0] Number of miliseconds to wait between view repaints. | ||
*/ | ||
/** | ||
* @typedef {Object} ShowViewsOnSplitterDrag _Platform Windows Only_. Allows views to be shown when they are resized by the user dragging the splitter between layout stacks. | ||
* @property {boolean} [enabled=false] Enables or disables showing views when the layout splitter is being dragged. | ||
*/ | ||
/** | ||
* @typedef {object} CapturePageOptions | ||
@@ -626,2 +643,3 @@ * @property { Area } [area] The area of the window to be captured. | ||
* Returns an array with all system printers | ||
* @deprecated use System.getPrinters instead | ||
* @function getPrinters | ||
@@ -628,0 +646,0 @@ * @memberOf Window |
@@ -71,94 +71,25 @@ import { AuthorizationPayload } from '../transport/transport'; | ||
}; | ||
'fdc3-add-context-listener': { | ||
request: void; | ||
response: void; | ||
}; | ||
'fdc3-broadcast': { | ||
request: void; | ||
response: void; | ||
}; | ||
'fdc3-get-system-channels': { | ||
request: void; | ||
response: void; | ||
}; | ||
'fdc3-join-channel': { | ||
request: void; | ||
response: void; | ||
}; | ||
'fdc3-leave-current-channel': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-connect-sync': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-client-set-context': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-client-add-context-handler': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-client-get-context-groups': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-client-join-context-group': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-client-remove-from-context-group': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-client-get-all-clients-in-context-group': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-client-get-info-for-context-group': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-broker-add-client-to-context-group': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-broker-get-all-clients-in-context-group': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-broker-get-context-groups': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-broker-get-info-for-context-group': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-broker-is-action-authorized': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-broker-is-connection-authorized': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-broker-join-context-group': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-broker-remove-client-from-context-group': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-broker-remove-from-context-group': { | ||
request: void; | ||
response: void; | ||
}; | ||
'interop-broker-set-context': { | ||
request: void; | ||
response: void; | ||
}; | ||
'fdc3-add-context-listener': VoidCall; | ||
'fdc3-broadcast': VoidCall; | ||
'fdc3-get-system-channels': VoidCall; | ||
'fdc3-join-channel': VoidCall; | ||
'fdc3-leave-current-channel': VoidCall; | ||
'interop-connect-sync': VoidCall; | ||
'interop-client-set-context': VoidCall; | ||
'interop-client-add-context-handler': VoidCall; | ||
'interop-client-get-context-groups': VoidCall; | ||
'interop-client-join-context-group': VoidCall; | ||
'interop-client-remove-from-context-group': VoidCall; | ||
'interop-client-get-all-clients-in-context-group': VoidCall; | ||
'interop-client-get-info-for-context-group': VoidCall; | ||
'interop-broker-add-client-to-context-group': VoidCall; | ||
'interop-broker-get-all-clients-in-context-group': VoidCall; | ||
'interop-broker-get-context-groups': VoidCall; | ||
'interop-broker-get-info-for-context-group': VoidCall; | ||
'interop-broker-is-action-authorized': VoidCall; | ||
'interop-broker-is-connection-authorized': VoidCall; | ||
'interop-broker-join-context-group': VoidCall; | ||
'interop-broker-remove-client-from-context-group': VoidCall; | ||
'interop-broker-remove-from-context-group': VoidCall; | ||
'interop-broker-set-context': VoidCall; | ||
'query-permission-for-current-context': { | ||
@@ -192,3 +123,19 @@ request: { | ||
}; | ||
'render-overlay': { | ||
request: { | ||
bounds: OpenFin.Bounds; | ||
backgroundColor: string; | ||
}; | ||
response: void; | ||
}; | ||
'detach-overlay': VoidCall; | ||
'system-get-printers': { | ||
request: void; | ||
response: OpenFin.PrinterInfo[]; | ||
}; | ||
} | ||
declare type VoidCall = { | ||
request: void; | ||
response: void; | ||
}; | ||
interface ProtocolMapBase { | ||
@@ -195,0 +142,0 @@ [action: string]: { |
839610
203
19159