@openfin/core 30.73.17 → 30.73.19
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/OpenFin.d.ts +1 -1752
- package/fdc3.js +2 -0
- package/fdc3.ts +264 -0
- package/fin.d.ts +3 -4
- package/package.json +1 -1
- package/src/GlobalOpenFin.d.ts +4 -0
- package/src/OpenFin.d.ts +1404 -0
- package/src/OpenFin.js +2 -0
- package/src/api/application/Factory.d.ts +1 -0
- package/src/api/application/Instance.d.ts +1 -0
- package/src/api/base.d.ts +1 -0
- package/src/api/clipboard/index.d.ts +1 -0
- package/src/api/events/application.d.ts +3 -2
- package/src/api/events/channel.d.ts +1 -1
- package/src/api/events/externalApplication.d.ts +1 -1
- package/src/api/events/globalHotkey.d.ts +2 -1
- package/src/api/events/system.d.ts +2 -1
- package/src/api/events/view.d.ts +3 -2
- package/src/api/events/webcontents.d.ts +1 -0
- package/src/api/events/window.d.ts +4 -3
- package/src/api/external-application/Factory.d.ts +1 -0
- package/src/api/external-application/Instance.d.ts +1 -0
- package/src/api/fin.d.ts +1 -0
- package/src/api/frame/Factory.d.ts +1 -0
- package/src/api/frame/Instance.d.ts +1 -0
- package/src/api/global-hotkey/index.d.ts +1 -0
- package/src/api/interappbus/channel/channel.d.ts +1 -0
- package/src/api/interappbus/channel/client.d.ts +1 -0
- package/src/api/interappbus/channel/connection-manager.d.ts +1 -0
- package/src/api/interappbus/channel/connection-manager.js +6 -2
- package/src/api/interappbus/channel/index.d.ts +1 -0
- package/src/api/interappbus/channel/index.js +4 -3
- package/src/api/interappbus/channel/protocols/classic/strategy.d.ts +1 -0
- package/src/api/interappbus/channel/protocols/protocol-manager.d.ts +1 -1
- package/src/api/interappbus/channel/protocols/rtc/endpoint.d.ts +1 -0
- package/src/api/interappbus/channel/protocols/rtc/endpoint.js +1 -1
- package/src/api/interappbus/channel/protocols/rtc/ice-manager.js +0 -1
- package/src/api/interappbus/channel/protocols/rtc/strategy.d.ts +1 -0
- package/src/api/interappbus/channel/protocols/strategy.d.ts +1 -0
- package/src/api/interappbus/channel/provider.d.ts +1 -0
- package/src/api/interop/Factory.d.ts +1 -0
- package/src/api/interop/Factory.js +1 -1
- package/src/api/interop/InteropBroker.d.ts +33 -2
- package/src/api/interop/InteropBroker.js +63 -15
- package/src/api/interop/InteropClient.d.ts +1 -0
- package/src/api/interop/SessionContextGroupBroker.d.ts +1 -0
- package/src/api/interop/SessionContextGroupClient.d.ts +1 -0
- package/src/api/interop/fdc3/PrivateChannelClient.d.ts +2 -0
- package/src/api/interop/fdc3/PrivateChannelProvider.d.ts +1 -0
- package/src/api/interop/fdc3/fdc3-1.2.d.ts +2 -0
- package/src/api/interop/fdc3/fdc3-1.2.js +1 -1
- package/src/api/interop/fdc3/fdc3-2.0.d.ts +3 -0
- package/src/api/interop/fdc3/fdc3-2.0.js +6 -13
- package/src/api/interop/fdc3/utils.d.ts +2 -0
- package/src/api/interop/utils.d.ts +2 -0
- package/src/api/interop/utils.js +9 -1
- package/src/api/me.d.ts +1 -0
- package/src/api/platform/Factory.d.ts +1 -0
- package/src/api/platform/Instance.d.ts +1 -0
- package/src/api/platform/common-utils.d.ts +1 -0
- package/src/api/platform/layout/Factory.d.ts +1 -0
- package/src/api/platform/layout/Instance.d.ts +1 -0
- package/src/api/platform/layout/Instance.js +0 -1
- package/src/api/platform/layout/controllers/tab-drag-controller.d.ts +1 -0
- package/src/api/platform/layout/shapes.d.ts +1 -0
- package/src/api/platform/layout/utils/bounds-observer.d.ts +1 -1
- package/src/api/platform/layout/utils/view-overlay.d.ts +1 -0
- package/src/api/snapshot-source/Factory.d.ts +1 -0
- package/src/api/snapshot-source/Factory.js +1 -1
- package/src/api/snapshot-source/Instance.d.ts +1 -0
- package/src/api/snapshot-source/utils.d.ts +1 -0
- package/src/api/system/index.d.ts +2 -1
- package/src/api/system/index.js +1 -1
- package/src/api/view/Factory.d.ts +1 -0
- package/src/api/view/Instance.d.ts +1 -0
- package/src/api/webcontents/main.d.ts +1 -0
- package/src/api/window/Factory.d.ts +1 -0
- package/src/api/window/Instance.d.ts +2 -1
- package/src/api/window/Instance.js +1 -1
- package/src/browser.d.ts +4 -4
- package/src/environment/browser.d.ts +1 -0
- package/src/environment/environment.d.ts +1 -0
- package/src/environment/node-env.d.ts +1 -0
- package/src/environment/openfin-env.d.ts +1 -0
- package/src/mock.d.ts +1 -1
- package/src/mock.js +3 -1
- package/src/shapes/WebOptions.d.ts +1 -0
- package/src/shapes/WindowOptions.d.ts +1 -0
- package/src/shapes/protocol.d.ts +1 -0
- package/src/transport/transport.d.ts +2 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as OpenFin from '../../OpenFin';
|
|
1
2
|
export declare const generateId: () => string;
|
|
2
3
|
export declare const wrapInTryCatch: <T>(f: (...args: any[]) => T, prefix?: string) => (...args: any[]) => T;
|
|
3
4
|
export declare const wrapContextHandler: (handler: OpenFin.ContextHandler, handlerId: string) => (context: OpenFin.Context) => Promise<void>;
|
|
@@ -15,3 +16,4 @@ export declare const BROKER_ERRORS: {
|
|
|
15
16
|
fdc3GetInfo: string;
|
|
16
17
|
};
|
|
17
18
|
export declare const wrapIntentHandler: (handler: OpenFin.IntentHandler, handlerId: string) => (intent: OpenFin.Intent) => Promise<void>;
|
|
19
|
+
export declare const generateDefaultLoggingOptions: () => OpenFin.InteropLoggingOptions;
|
package/src/api/interop/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.wrapIntentHandler = exports.BROKER_ERRORS = exports.generateOverrideWarning = exports.generateOverrideError = exports.wrapContextHandler = exports.wrapInTryCatch = exports.generateId = void 0;
|
|
3
|
+
exports.generateDefaultLoggingOptions = exports.wrapIntentHandler = exports.BROKER_ERRORS = exports.generateOverrideWarning = exports.generateOverrideError = exports.wrapContextHandler = exports.wrapInTryCatch = exports.generateId = void 0;
|
|
4
4
|
const generateId = () => `${Math.random()}${Date.now()}`;
|
|
5
5
|
exports.generateId = generateId;
|
|
6
6
|
const wrapInTryCatch = (f, prefix) => (...args) => {
|
|
@@ -59,3 +59,11 @@ const wrapIntentHandler = (handler, handlerId) => {
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
exports.wrapIntentHandler = wrapIntentHandler;
|
|
62
|
+
const generateDefaultLoggingOptions = () => {
|
|
63
|
+
const loggingActions = ['beforeAction', 'afterAction'];
|
|
64
|
+
const options = loggingActions.reduce((accumulator, loggingOption) => {
|
|
65
|
+
return { ...accumulator, [loggingOption]: { enabled: true } };
|
|
66
|
+
}, {});
|
|
67
|
+
return options;
|
|
68
|
+
};
|
|
69
|
+
exports.generateDefaultLoggingOptions = generateDefaultLoggingOptions;
|
package/src/api/me.d.ts
CHANGED
|
@@ -16,4 +16,4 @@ export declare const isDomRectEqual: (a: DOMRect, b: DOMRect) => boolean;
|
|
|
16
16
|
* @returns Function which disposes the observers when invoked.
|
|
17
17
|
* @ignore
|
|
18
18
|
*/
|
|
19
|
-
export declare const observeBounds: (element: Element, onChange: (bounds: DOMRect) => void) => () => void;
|
|
19
|
+
export declare const observeBounds: (element: Element, onChange: (bounds: DOMRect) => void) => (() => void);
|
|
@@ -28,7 +28,7 @@ class SnapshotSourceModule extends base_1.Base {
|
|
|
28
28
|
typeof provider.applySnapshot !== 'function') {
|
|
29
29
|
throw new Error('you must pass in a valid SnapshotProvider');
|
|
30
30
|
}
|
|
31
|
-
const channel = await this.fin.InterApplicationBus.Channel.create((0, utils_1.getSnapshotSourceChannelName)(fin.me
|
|
31
|
+
const channel = await this.fin.InterApplicationBus.Channel.create((0, utils_1.getSnapshotSourceChannelName)(this.fin.me));
|
|
32
32
|
channel.register('get-snapshot', async () => {
|
|
33
33
|
const snapshot = await provider.getSnapshot();
|
|
34
34
|
return { snapshot };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as OpenFin from '../../OpenFin';
|
|
1
2
|
import { EmitterBase } from '../base';
|
|
2
3
|
import Transport from '../../transport/transport';
|
|
3
4
|
import Identity = OpenFin.Identity;
|
|
@@ -770,7 +771,7 @@ export default class System extends EmitterBase<SystemEvents> {
|
|
|
770
771
|
* Runs an executable or batch file. A path to the file must be included in options.
|
|
771
772
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
|
772
773
|
* <br> Note: This method is restricted by default and must be enabled via
|
|
773
|
-
* <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
|
|
774
|
+
* <a href="https://developers.openfin.co/docs/api-security">API security settings</a>. Also, this api has an enhanced permission set to make it less dangerous. So application owners can only allow to launch the assets owned by the application, the enabled downloaded files or the restricted executables.
|
|
774
775
|
* @param { ExternalProcessRequestType } options A object that is defined in the ExternalProcessRequestType interface
|
|
775
776
|
* @return {Promise.<Identity>}
|
|
776
777
|
* @tutorial System.launchExternalProcess
|
package/src/api/system/index.js
CHANGED
|
@@ -891,7 +891,7 @@ class System extends base_1.EmitterBase {
|
|
|
891
891
|
* Runs an executable or batch file. A path to the file must be included in options.
|
|
892
892
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
|
893
893
|
* <br> Note: This method is restricted by default and must be enabled via
|
|
894
|
-
* <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
|
|
894
|
+
* <a href="https://developers.openfin.co/docs/api-security">API security settings</a>. Also, this api has an enhanced permission set to make it less dangerous. So application owners can only allow to launch the assets owned by the application, the enabled downloaded files or the restricted executables.
|
|
895
895
|
* @param { ExternalProcessRequestType } options A object that is defined in the ExternalProcessRequestType interface
|
|
896
896
|
* @return {Promise.<Identity>}
|
|
897
897
|
* @tutorial System.launchExternalProcess
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as OpenFin from '../../OpenFin';
|
|
1
2
|
import Transport from '../../transport/transport';
|
|
2
3
|
import { WebContents } from '../webcontents/main';
|
|
3
4
|
import WindowEvents = OpenFin.WindowEvents;
|
|
@@ -362,7 +363,7 @@ import WindowEvents = OpenFin.WindowEvents;
|
|
|
362
363
|
* @property {ShowViewsOnWindowResize} [showViewsOnWindowResize] Enables views to be shown when a Platform Window is being resized by the user.
|
|
363
364
|
* @property {ShowViewsOnSplitterDrag} [showViewsOnSplitterDrag] Allows views to be shown when they are resized by the user dragging the splitter between layout stacks.
|
|
364
365
|
* @property {ShowViewsOnTabDrag} [showViewsOnTabDrag] _Supported on Windows Operating Systems only_. Allows views to be shown when the user is dragging a tab around a layout.
|
|
365
|
-
*/
|
|
366
|
+
*/
|
|
366
367
|
/**
|
|
367
368
|
* @typedef {Object} ShowViewsOnWindowResize _Platform Windows Only_. Enables views to be shown when a Platform Window is being resized by the user.
|
|
368
369
|
* @property {boolean} [enabled=false] Enables or disables showing Views when a Platform Window is being resized.
|
|
@@ -369,7 +369,7 @@ const view_1 = require("../view");
|
|
|
369
369
|
* @property {ShowViewsOnWindowResize} [showViewsOnWindowResize] Enables views to be shown when a Platform Window is being resized by the user.
|
|
370
370
|
* @property {ShowViewsOnSplitterDrag} [showViewsOnSplitterDrag] Allows views to be shown when they are resized by the user dragging the splitter between layout stacks.
|
|
371
371
|
* @property {ShowViewsOnTabDrag} [showViewsOnTabDrag] _Supported on Windows Operating Systems only_. Allows views to be shown when the user is dragging a tab around a layout.
|
|
372
|
-
*/
|
|
372
|
+
*/
|
|
373
373
|
/**
|
|
374
374
|
* @typedef {Object} ShowViewsOnWindowResize _Platform Windows Only_. Enables views to be shown when a Platform Window is being resized by the user.
|
|
375
375
|
* @property {boolean} [enabled=false] Enables or disables showing Views when a Platform Window is being resized.
|
package/src/browser.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as OpenFin from './OpenFin';
|
|
2
2
|
import { RemoteConfig } from './transport/wire';
|
|
3
3
|
interface GetRemoteConnectionPayload extends RemoteConfig {
|
|
4
4
|
interopProviderId: string;
|
|
5
5
|
withInterop: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare function getRemoteConnectionPayload(fin:
|
|
8
|
-
export declare function remoteConnect({ uuid, token, address, interopProviderId, withInterop }: GetRemoteConnectionPayload): Promise<
|
|
9
|
-
export declare function remoteConnectInterop(fin:
|
|
7
|
+
export declare function getRemoteConnectionPayload(fin: OpenFin.Fin<OpenFin.EntityType>, uuid?: string, interopProviderId?: string): Promise<GetRemoteConnectionPayload>;
|
|
8
|
+
export declare function remoteConnect({ uuid, token, address, interopProviderId, withInterop }: GetRemoteConnectionPayload): Promise<OpenFin.Fin<'external connection'>>;
|
|
9
|
+
export declare function remoteConnectInterop(fin: OpenFin.Fin<OpenFin.EntityType>, interopProviderId: string): Promise<OpenFin.Fin<OpenFin.EntityType>>;
|
|
10
10
|
export {};
|
package/src/mock.d.ts
CHANGED
package/src/mock.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.fin = void 0;
|
|
4
|
+
const events_1 = require("events");
|
|
5
|
+
const OpenFin = require("./OpenFin");
|
|
4
6
|
/* eslint-disable import/prefer-default-export */
|
|
5
7
|
/* eslint-disable spaced-comment */
|
|
6
8
|
/* eslint-disable @typescript-eslint/triple-slash-reference */
|
|
7
9
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
8
10
|
/* eslint-disable class-methods-use-this */
|
|
9
11
|
/// <reference path="../OpenFin.d.ts"/>
|
|
10
|
-
const events_1 = require("events");
|
|
11
12
|
const fin_1 = require("./api/fin");
|
|
12
13
|
const transport_1 = require("./transport/transport");
|
|
13
14
|
const me_1 = require("./api/me");
|
|
@@ -91,3 +92,4 @@ exports.fin = ((typeof window !== 'undefined' && (window === null || window ===
|
|
|
91
92
|
});
|
|
92
93
|
return new fin_1.default(transport);
|
|
93
94
|
})());
|
|
95
|
+
exports.default = OpenFin;
|
package/src/shapes/protocol.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
|
-
import
|
|
3
|
+
import * as OpenFin from '../OpenFin';
|
|
4
|
+
import { ExistingConnectConfig, InternalConnectConfig, RemoteConfig, Wire, WireConstructor } from './wire';
|
|
4
5
|
import { Environment } from '../environment/environment';
|
|
5
6
|
import { RuntimeEvent } from '../api/events/base';
|
|
6
7
|
import EventAggregator from '../api/events/eventAggregator';
|