@openfin/core 25.68.30 → 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 CHANGED
@@ -69,12 +69,12 @@ declare namespace OpenFin {
69
69
  height: number;
70
70
  };
71
71
 
72
- export type ApplicationCreationOptions = Partial<ApplicationOption> & {
72
+ export type ApplicationCreationOptions = Partial<ApplicationOptions> & {
73
73
  name: string;
74
74
  uuid: string;
75
75
  };
76
76
 
77
- export type ApplicationOption = LegacyWinOptionsInAppOptions & {
77
+ export type ApplicationOptions = LegacyWinOptionsInAppOptions & {
78
78
  disableIabSecureLogging: boolean;
79
79
  loadErrorMessage: string;
80
80
  mainWindowOptions: WindowCreationOptions;
@@ -2003,6 +2003,14 @@ declare namespace OpenFin {
2003
2003
  };
2004
2004
 
2005
2005
  export type WindowInfo = {
2006
+ canNavigateBack: boolean;
2007
+ canNavigateForward: boolean;
2008
+ preloadScripts: Array<any>;
2009
+ title: string;
2010
+ url: string;
2011
+ };
2012
+
2013
+ export type SystemWindowInfo = {
2006
2014
  childWindows: Array<WindowDetail>;
2007
2015
  mainWindow: WindowDetail;
2008
2016
  uuid: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "25.68.30",
3
+ "version": "25.68.31",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./src/mock.js",
6
6
  "types": "./src/mock.d.ts",
@@ -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<any>;
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 WindowInfo = OpenFin.WindowInfo;
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 } WindowInfo
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.<WindowInfo>}
613
+ * @return {Promise.Array.<SystemWindowInfo>}
614
614
  * @tutorial System.getAllWindows
615
615
  */
616
- getAllWindows(): Promise<Array<WindowInfo>>;
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.<WindowInfo>}
668
+ * @return {Promise.<ApplicationWindowInfo>}
669
669
  * @tutorial System.getFocusedWindow
670
670
  */
671
- getFocusedWindow(): Promise<WindowInfo>;
671
+ getFocusedWindow(): Promise<SystemWindowInfo>;
672
672
  /**
673
673
  * Returns information about the given app's certification status
674
674
  * @return {Promise.<CertifiedAppInfo>}
@@ -456,7 +456,7 @@ const window_1 = require("../window");
456
456
  */
457
457
  /**
458
458
  * WindowInfo interface
459
- * @typedef { object } WindowInfo
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.<WindowInfo>}
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.<WindowInfo>}
749
+ * @return {Promise.<ApplicationWindowInfo>}
750
750
  * @tutorial System.getFocusedWindow
751
751
  */
752
752
  getFocusedWindow() {
@@ -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>}
@@ -1,5 +1,3 @@
1
1
  import _WindowModule from './Factory';
2
2
  export default _WindowModule;
3
- export * from './shapes';
4
3
  export * from './Instance';
5
- export * from './bounds-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);
@@ -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,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const base_1 = require("../base");
4
- class BoundsChangedReply extends base_1.Reply {
5
- }
6
- exports.default = BoundsChangedReply;
@@ -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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });