@openfin/core 25.68.28 → 25.68.31
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 +506 -519
- package/package.json +1 -1
- package/src/api/application/Instance.d.ts +2 -3
- package/src/api/system/index.d.ts +6 -6
- package/src/api/system/index.js +3 -3
- package/src/api/view/Instance.d.ts +2 -1
- package/src/api/window/Instance.d.ts +2 -3
- package/src/api/window/index.d.ts +0 -2
- package/src/api/window/index.js +0 -2
- package/openfin-core-25.68.26.tgz +0 -0
- package/src/api/window/bounds-changed.d.ts +0 -10
- package/src/api/window/bounds-changed.js +0 -6
- package/src/api/window/shapes.d.ts +0 -13
- package/src/api/window/shapes.js +0 -2
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { EmitterBase } from '../base';
|
|
2
2
|
import Transport from '../../transport/transport';
|
|
3
|
-
import ApplicationEvents = OpenFin.ApplicationEvents;
|
|
4
3
|
/**
|
|
5
4
|
* @classdesc An object representing an application. Allows the developer to create,
|
|
6
5
|
* execute, show/close an application as well as listen to <a href="tutorial-Application.EventEmitter.html">application events</a>.
|
|
7
6
|
* @class
|
|
8
7
|
* @hideconstructor
|
|
9
8
|
*/
|
|
10
|
-
export declare class Application extends EmitterBase<ApplicationEvents> {
|
|
9
|
+
export declare class Application extends EmitterBase<OpenFin.ApplicationEvents> {
|
|
11
10
|
identity: OpenFin.ApplicationIdentity;
|
|
12
11
|
_manifestUrl?: string;
|
|
13
12
|
private window;
|
|
@@ -135,7 +134,7 @@ export declare class Application extends EmitterBase<ApplicationEvents> {
|
|
|
135
134
|
* @return {Promise.<any>}
|
|
136
135
|
* @tutorial Application.getManifest
|
|
137
136
|
*/
|
|
138
|
-
getManifest(): Promise<
|
|
137
|
+
getManifest(): Promise<OpenFin.Manifest>;
|
|
139
138
|
/**
|
|
140
139
|
* Retrieves UUID of the application that launches this application. Invokes the error callback
|
|
141
140
|
* if the application was created from a manifest.
|
|
@@ -12,7 +12,7 @@ import ProcessInfo = OpenFin.ProcessInfo;
|
|
|
12
12
|
import RegistryInfo = OpenFin.RegistryInfo;
|
|
13
13
|
import EntityInfo = OpenFin.EntityInfo;
|
|
14
14
|
import Entity = OpenFin.Entity;
|
|
15
|
-
import
|
|
15
|
+
import SystemWindowInfo = OpenFin.SystemWindowInfo;
|
|
16
16
|
import SystemApplicationInfo = OpenFin.SystemApplicationInfo;
|
|
17
17
|
/**
|
|
18
18
|
* AppAssetInfo interface
|
|
@@ -467,7 +467,7 @@ import SystemApplicationInfo = OpenFin.SystemApplicationInfo;
|
|
|
467
467
|
*/
|
|
468
468
|
/**
|
|
469
469
|
* WindowInfo interface
|
|
470
|
-
* @typedef { object }
|
|
470
|
+
* @typedef { object } ApplicationWindowInfo
|
|
471
471
|
* @property { Array<WindowDetail> } childWindows The array of child windows details
|
|
472
472
|
* @property { WindowDetail } mainWindow The main window detail
|
|
473
473
|
* @property { string } uuid The uuid of the application
|
|
@@ -610,10 +610,10 @@ export default class System extends EmitterBase<SystemEvents> {
|
|
|
610
610
|
flushCookieStore(): Promise<void>;
|
|
611
611
|
/**
|
|
612
612
|
* Retrieves an array of data (name, ids, bounds) for all application windows.
|
|
613
|
-
* @return {Promise.Array.<
|
|
613
|
+
* @return {Promise.Array.<SystemWindowInfo>}
|
|
614
614
|
* @tutorial System.getAllWindows
|
|
615
615
|
*/
|
|
616
|
-
getAllWindows(): Promise<Array<
|
|
616
|
+
getAllWindows(): Promise<Array<SystemWindowInfo>>;
|
|
617
617
|
/**
|
|
618
618
|
* Retrieves an array of data for all applications.
|
|
619
619
|
* @return {Promise.Array.<SystemApplicationInfo>}
|
|
@@ -665,10 +665,10 @@ export default class System extends EmitterBase<SystemEvents> {
|
|
|
665
665
|
getEnvironmentVariable(envName: string): Promise<string>;
|
|
666
666
|
/**
|
|
667
667
|
* Get current focused window.
|
|
668
|
-
* @return {Promise.<
|
|
668
|
+
* @return {Promise.<ApplicationWindowInfo>}
|
|
669
669
|
* @tutorial System.getFocusedWindow
|
|
670
670
|
*/
|
|
671
|
-
getFocusedWindow(): Promise<
|
|
671
|
+
getFocusedWindow(): Promise<SystemWindowInfo>;
|
|
672
672
|
/**
|
|
673
673
|
* Returns information about the given app's certification status
|
|
674
674
|
* @return {Promise.<CertifiedAppInfo>}
|
package/src/api/system/index.js
CHANGED
|
@@ -456,7 +456,7 @@ const window_1 = require("../window");
|
|
|
456
456
|
*/
|
|
457
457
|
/**
|
|
458
458
|
* WindowInfo interface
|
|
459
|
-
* @typedef { object }
|
|
459
|
+
* @typedef { object } ApplicationWindowInfo
|
|
460
460
|
* @property { Array<WindowDetail> } childWindows The array of child windows details
|
|
461
461
|
* @property { WindowDetail } mainWindow The main window detail
|
|
462
462
|
* @property { string } uuid The uuid of the application
|
|
@@ -658,7 +658,7 @@ class System extends base_1.EmitterBase {
|
|
|
658
658
|
}
|
|
659
659
|
/**
|
|
660
660
|
* Retrieves an array of data (name, ids, bounds) for all application windows.
|
|
661
|
-
* @return {Promise.Array.<
|
|
661
|
+
* @return {Promise.Array.<SystemWindowInfo>}
|
|
662
662
|
* @tutorial System.getAllWindows
|
|
663
663
|
*/
|
|
664
664
|
getAllWindows() {
|
|
@@ -746,7 +746,7 @@ class System extends base_1.EmitterBase {
|
|
|
746
746
|
}
|
|
747
747
|
/**
|
|
748
748
|
* Get current focused window.
|
|
749
|
-
* @return {Promise.<
|
|
749
|
+
* @return {Promise.<ApplicationWindowInfo>}
|
|
750
750
|
* @tutorial System.getFocusedWindow
|
|
751
751
|
*/
|
|
752
752
|
getFocusedWindow() {
|
|
@@ -2,6 +2,7 @@ import { WebContents } from '../webcontents/main';
|
|
|
2
2
|
import Transport from '../../transport/transport';
|
|
3
3
|
import { Layout } from '../platform/layout';
|
|
4
4
|
import ViewEvents = OpenFin.ViewEvents;
|
|
5
|
+
import UpdatableViewOptions = OpenFin.UpdatableViewOptions;
|
|
5
6
|
/**
|
|
6
7
|
* @typedef {object} View~options
|
|
7
8
|
* @summary View creation options.
|
|
@@ -369,7 +370,7 @@ export declare class View extends WebContents<ViewEvents> {
|
|
|
369
370
|
* @tutorial View.updateOptions
|
|
370
371
|
* @experimental
|
|
371
372
|
*/
|
|
372
|
-
updateOptions: (options:
|
|
373
|
+
updateOptions: (options: UpdatableViewOptions) => Promise<void>;
|
|
373
374
|
/**
|
|
374
375
|
* Retrieves the window the view is currently attached to.
|
|
375
376
|
* @return {Promise.<_Window>}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import Transport from '../../transport/transport';
|
|
2
2
|
import { WebContents } from '../webcontents/main';
|
|
3
|
-
import { WindowInfo } from './shapes';
|
|
4
3
|
import WindowEvents = OpenFin.WindowEvents;
|
|
5
4
|
/**
|
|
6
5
|
* @typedef { object } Margins
|
|
@@ -751,7 +750,7 @@ export declare class _Window extends WebContents<WindowEvents> {
|
|
|
751
750
|
* @return {Promise.<WindowInfo>}
|
|
752
751
|
* @tutorial Window.getInfo
|
|
753
752
|
*/
|
|
754
|
-
getInfo(): Promise<WindowInfo>;
|
|
753
|
+
getInfo(): Promise<OpenFin.WindowInfo>;
|
|
755
754
|
/**
|
|
756
755
|
* Retrieves the window's Layout
|
|
757
756
|
* @return {Promise.<Layout>}
|
|
@@ -916,7 +915,7 @@ export declare class _Window extends WebContents<WindowEvents> {
|
|
|
916
915
|
* @return {Promise.<void>}
|
|
917
916
|
* @tutorial Window.updateOptions
|
|
918
917
|
*/
|
|
919
|
-
updateOptions(options:
|
|
918
|
+
updateOptions(options: OpenFin.UpdatableWindowOptions): Promise<void>;
|
|
920
919
|
/**
|
|
921
920
|
* Provides credentials to authentication requests
|
|
922
921
|
* @param { string } userName userName to provide to the authentication challenge
|
package/src/api/window/index.js
CHANGED
|
@@ -12,6 +12,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
const Factory_1 = require("./Factory");
|
|
14
14
|
exports.default = Factory_1.default;
|
|
15
|
-
__exportStar(require("./shapes"), exports);
|
|
16
15
|
__exportStar(require("./Instance"), exports);
|
|
17
|
-
__exportStar(require("./bounds-changed"), exports);
|
|
Binary file
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Reply } from '../base';
|
|
2
|
-
export default class BoundsChangedReply extends Reply<'window', 'bounds-changed'> {
|
|
3
|
-
changeType: BoundsChangeType;
|
|
4
|
-
deferred: boolean;
|
|
5
|
-
height: number;
|
|
6
|
-
width: number;
|
|
7
|
-
top: number;
|
|
8
|
-
left: number;
|
|
9
|
-
}
|
|
10
|
-
export declare type BoundsChangeType = 'position' | 'size' | 'position_and_size';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface CloseEventShape {
|
|
2
|
-
name: string;
|
|
3
|
-
uuid: string;
|
|
4
|
-
type: string;
|
|
5
|
-
topic: string;
|
|
6
|
-
}
|
|
7
|
-
export interface WindowInfo {
|
|
8
|
-
canNavigateBack: boolean;
|
|
9
|
-
canNavigateForward: boolean;
|
|
10
|
-
preloadScripts: Array<any>;
|
|
11
|
-
title: string;
|
|
12
|
-
url: string;
|
|
13
|
-
}
|
package/src/api/window/shapes.js
DELETED