@openfin/core 25.68.26 → 25.68.29

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.
Files changed (98) hide show
  1. package/OpenFin.d.ts +1378 -373
  2. package/README.md +6 -2
  3. package/package.json +2 -3
  4. package/src/api/application/Instance.d.ts +2 -2
  5. package/src/api/application/Instance.js +1 -1
  6. package/src/api/base.d.ts +1 -1
  7. package/src/api/events/channel.d.ts +2 -1
  8. package/src/api/events/eventAggregator.d.ts +1 -1
  9. package/src/api/external-application/Instance.d.ts +1 -1
  10. package/src/api/fin.d.ts +1 -1
  11. package/src/api/frame/Instance.d.ts +1 -1
  12. package/src/api/global-hotkey/index.d.ts +1 -1
  13. package/src/api/interappbus/channel/channel.d.ts +3 -3
  14. package/src/api/interappbus/channel/index.d.ts +2 -1
  15. package/src/api/interappbus/index.d.ts +2 -1
  16. package/src/api/me.d.ts +1 -1
  17. package/src/api/platform/Instance.d.ts +1 -1
  18. package/src/api/platform/Instance.js +1 -2
  19. package/src/api/platform/common-utils.d.ts +1 -1
  20. package/src/api/platform/layout/Factory.d.ts +1 -1
  21. package/src/api/platform/layout/Factory.js +1 -0
  22. package/src/api/platform/layout/Instance.d.ts +2 -1
  23. package/src/api/platform/layout/index.d.ts +0 -1
  24. package/src/api/platform/layout/index.js +0 -1
  25. package/src/api/system/index.d.ts +17 -13
  26. package/src/api/system/index.js +3 -3
  27. package/src/api/view/Instance.d.ts +1 -1
  28. package/src/api/webcontents/main.d.ts +1 -1
  29. package/src/api/window/Instance.d.ts +3 -3
  30. package/src/environment/environment.d.ts +5 -8
  31. package/src/environment/node-env.d.ts +5 -4
  32. package/src/environment/openfin-env.d.ts +5 -4
  33. package/src/environment/openfin-env.js +2 -0
  34. package/src/mock.d.ts +0 -1
  35. package/src/mock.js +1 -2
  36. package/src/transport/transport-errors.d.ts +3 -2
  37. package/src/transport/transport-errors.js +1 -3
  38. package/src/transport/transport.d.ts +10 -24
  39. package/src/transport/transport.js +0 -14
  40. package/src/transport/wire.d.ts +6 -71
  41. package/src/transport/wire.js +1 -8
  42. package/src/util/errors.d.ts +1 -5
  43. package/src/util/errors.js +0 -3
  44. package/src/util/normalize-config.d.ts +3 -1
  45. package/src/api/events/application.d.ts +0 -69
  46. package/src/api/events/application.js +0 -2
  47. package/src/api/events/base.d.ts +0 -17
  48. package/src/api/events/base.js +0 -2
  49. package/src/api/events/externalApplication.d.ts +0 -5
  50. package/src/api/events/externalApplication.js +0 -2
  51. package/src/api/events/frame.d.ts +0 -9
  52. package/src/api/events/frame.js +0 -2
  53. package/src/api/events/globalHotkey.d.ts +0 -10
  54. package/src/api/events/globalHotkey.js +0 -2
  55. package/src/api/events/platform.d.ts +0 -18
  56. package/src/api/events/platform.js +0 -2
  57. package/src/api/events/system.d.ts +0 -22
  58. package/src/api/events/system.js +0 -2
  59. package/src/api/events/view.d.ts +0 -56
  60. package/src/api/events/view.js +0 -2
  61. package/src/api/events/webcontents.d.ts +0 -48
  62. package/src/api/events/webcontents.js +0 -2
  63. package/src/api/events/window.d.ts +0 -169
  64. package/src/api/events/window.js +0 -2
  65. package/src/api/platform/layout/shapes.d.ts +0 -11
  66. package/src/api/platform/layout/shapes.js +0 -2
  67. package/src/api/system/application.d.ts +0 -6
  68. package/src/api/system/application.js +0 -2
  69. package/src/api/system/entity.d.ts +0 -11
  70. package/src/api/system/entity.js +0 -2
  71. package/src/api/system/installedApps.d.ts +0 -6
  72. package/src/api/system/installedApps.js +0 -2
  73. package/src/api/system/log.d.ts +0 -11
  74. package/src/api/system/log.js +0 -2
  75. package/src/api/system/process.d.ts +0 -15
  76. package/src/api/system/process.js +0 -2
  77. package/src/api/system/proxy.d.ts +0 -15
  78. package/src/api/system/proxy.js +0 -2
  79. package/src/api/system/queryPermissionTypes.d.ts +0 -1
  80. package/src/api/system/queryPermissionTypes.js +0 -2
  81. package/src/api/system/registry-info.d.ts +0 -7
  82. package/src/api/system/registry-info.js +0 -2
  83. package/src/api/system/window.d.ts +0 -16
  84. package/src/api/system/window.js +0 -2
  85. package/src/shapes/ERROR_BOX_TYPES.d.ts +0 -6
  86. package/src/shapes/ERROR_BOX_TYPES.js +0 -10
  87. package/src/shapes/EntityType.d.ts +0 -1
  88. package/src/shapes/EntityType.js +0 -2
  89. package/src/shapes/LayoutPresetType.d.ts +0 -1
  90. package/src/shapes/LayoutPresetType.js +0 -2
  91. package/src/shapes/Platform.d.ts +0 -112
  92. package/src/shapes/Platform.js +0 -16
  93. package/src/shapes/WebOptions.d.ts +0 -12
  94. package/src/shapes/WebOptions.js +0 -2
  95. package/src/shapes/WindowOptions.d.ts +0 -42
  96. package/src/shapes/WindowOptions.js +0 -2
  97. package/src/shapes/protocol.d.ts +0 -178
  98. package/src/shapes/protocol.js +0 -2
@@ -1,76 +1,11 @@
1
- /// <reference types="node" />
2
- import { EventEmitter } from 'events';
3
- export interface Wire extends EventEmitter {
4
- connect(address: string): Promise<any>;
5
- connectSync(): any;
6
- send(data: any): Promise<any>;
7
- shutdown(): Promise<void>;
8
- }
9
- export interface WireConstructor {
10
- new (onmessage: (data: any) => void): Wire;
11
- }
12
- export interface RuntimeConfig {
13
- version: string;
14
- fallbackVersion?: string;
15
- securityRealm?: string;
16
- verboseLogging?: boolean;
17
- arguments?: string;
18
- rvmDir?: string;
19
- }
20
- export interface ServiceConfig {
21
- name: string;
22
- manifestUrl: string;
23
- }
24
- export interface BaseConfig {
25
- uuid?: string;
26
- address?: string;
27
- name?: string;
28
- nonPersistent?: boolean;
29
- runtimeClient?: boolean;
30
- licenseKey?: string;
31
- client?: any;
32
- manifestUrl?: string;
33
- startupApp?: any;
34
- lrsUrl?: string;
35
- assetsUrl?: string;
36
- devToolsPort?: number;
37
- installerUI?: boolean;
38
- runtime?: RuntimeConfig;
39
- services?: ServiceConfig[];
40
- appAssets?: [{
41
- src: string;
42
- alias: string;
43
- target: string;
44
- version: string;
45
- args: string;
46
- }];
47
- customItems?: [any];
48
- timeout?: number;
49
- }
50
- export interface ConfigWithUuid extends BaseConfig {
51
- uuid: string;
52
- }
53
- export interface ExistingConnectConfig extends ConfigWithUuid {
54
- address: string;
55
- }
56
- export interface ConfigWithRuntime extends BaseConfig {
57
- runtime: RuntimeConfig;
58
- }
59
- export interface ExternalConfig extends BaseConfig {
60
- manifestUrl: string;
61
- }
62
- export declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
63
- export declare type PortDiscoveryConfig = (ExternalConfig & ConfigWithRuntime) | NewConnectConfig;
64
- export declare type ConnectConfig = ExistingConnectConfig | NewConnectConfig | ExternalConfig;
65
- export declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig;
1
+ import ConnectConfig = OpenFin.ConnectConfig;
2
+ import ExternalConfig = OpenFin.ExternalConfig;
3
+ import ExistingConnectConfig = OpenFin.ExistingConnectConfig;
4
+ import NewConnectConfig = OpenFin.NewConnectConfig;
5
+ import PortDiscoveryConfig = OpenFin.PortDiscoveryConfig;
6
+ import InternalConnectConfig = OpenFin.InternalConnectConfig;
66
7
  export declare function isExternalConfig(config: ConnectConfig): config is ExternalConfig;
67
8
  export declare function isExistingConnectConfig(config: any): config is ExistingConnectConfig;
68
9
  export declare function isNewConnectConfig(config: any): config is NewConnectConfig;
69
10
  export declare function isPortDiscoveryConfig(config: any): config is PortDiscoveryConfig;
70
11
  export declare function isInternalConnectConfig(config: any): config is InternalConnectConfig;
71
- export declare enum READY_STATE {
72
- CONNECTING = 0,
73
- OPEN = 1,
74
- CLOSING = 2,
75
- CLOSED = 3
76
- }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.READY_STATE = exports.isInternalConnectConfig = exports.isPortDiscoveryConfig = exports.isNewConnectConfig = exports.isExistingConnectConfig = exports.isExternalConfig = void 0;
3
+ exports.isInternalConnectConfig = exports.isPortDiscoveryConfig = exports.isNewConnectConfig = exports.isExistingConnectConfig = exports.isExternalConfig = void 0;
4
4
  function isExternalConfig(config) {
5
5
  if (typeof config.manifestUrl === 'string') {
6
6
  return true;
@@ -30,10 +30,3 @@ function isInternalConnectConfig(config) {
30
30
  return isExistingConnectConfig(config) || isNewConnectConfig(config);
31
31
  }
32
32
  exports.isInternalConnectConfig = isInternalConnectConfig;
33
- var READY_STATE;
34
- (function (READY_STATE) {
35
- READY_STATE[READY_STATE["CONNECTING"] = 0] = "CONNECTING";
36
- READY_STATE[READY_STATE["OPEN"] = 1] = "OPEN";
37
- READY_STATE[READY_STATE["CLOSING"] = 2] = "CLOSING";
38
- READY_STATE[READY_STATE["CLOSED"] = 3] = "CLOSED"; // The connection is closed.
39
- })(READY_STATE = exports.READY_STATE || (exports.READY_STATE = {}));
@@ -1,9 +1,5 @@
1
- export interface ErrorPlainObject {
2
- stack: string;
3
- message: string;
4
- toString(): string;
5
- }
6
1
  /**
7
2
  * This function converts JS errors into plain objects
8
3
  */
4
+ import ErrorPlainObject = OpenFin.ErrorPlainObject;
9
5
  export declare function errorToPOJO(error: Error): ErrorPlainObject;
@@ -1,9 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.errorToPOJO = void 0;
4
- /**
5
- * This function converts JS errors into plain objects
6
- */
7
4
  function errorToPOJO(error) {
8
5
  return {
9
6
  stack: error.stack,
@@ -1,3 +1,5 @@
1
- import { ConnectConfig, InternalConnectConfig, ExternalConfig } from '../transport/wire';
1
+ import ExternalConfig = OpenFin.ExternalConfig;
2
+ import ConnectConfig = OpenFin.ConnectConfig;
3
+ import InternalConnectConfig = OpenFin.InternalConnectConfig;
2
4
  export declare function normalizeConfig(config: ConnectConfig): Promise<InternalConnectConfig | ExternalConfig>;
3
5
  export declare function validateConfig(config: ConnectConfig): Promise<InternalConnectConfig>;
@@ -1,69 +0,0 @@
1
- import { WindowEvent, BaseEventMap, ApplicationEvent } from './base';
2
- import { WindowAlertRequestedEvent, WindowAuthRequestedEvent, WindowEndLoadEvent, PropagatedWindowEvents, WindowPerformanceReport } from './window';
3
- import { PropagatedViewEvents } from './view';
4
- export interface CrashedEvent {
5
- reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
6
- exitCode: number;
7
- details: {
8
- reason: string;
9
- exitCode: number;
10
- };
11
- }
12
- export interface RunRequestedEvent<Topic, Type> extends ApplicationEvent<Topic, Type> {
13
- userAppConfigArgs: any;
14
- manifest: OpenFin.ManifestInfo;
15
- }
16
- export interface TrayIconClicked<Topic, Type> extends ApplicationEvent<Topic, Type> {
17
- button: 0 | 1 | 2;
18
- bounds: OpenFin.Rectangle;
19
- x: number;
20
- y: number;
21
- monitorInfo: any;
22
- }
23
- export interface ApplicationEventMapping<Topic = string, Type = string> extends BaseEventMap {
24
- 'closed': ApplicationEvent<Topic, Type>;
25
- 'connected': ApplicationEvent<Topic, Type>;
26
- 'crashed': CrashedEvent & ApplicationEvent<Topic, Type>;
27
- 'initialized': ApplicationEvent<Topic, Type>;
28
- 'manifest-changed': ApplicationEvent<Topic, Type>;
29
- 'not-responding': ApplicationEvent<Topic, Type>;
30
- 'responding': ApplicationEvent<Topic, Type>;
31
- 'run-requested': RunRequestedEvent<Topic, Type>;
32
- 'started': ApplicationEvent<Topic, Type>;
33
- 'tray-icon-clicked': TrayIconClicked<Topic, Type>;
34
- 'window-alert-requested': WindowAlertRequestedEvent<Topic, Type>;
35
- 'window-auth-requested': WindowAuthRequestedEvent<Topic, Type>;
36
- 'window-created': WindowEvent<Topic, Type>;
37
- 'window-end-load': WindowEndLoadEvent<Topic, Type>;
38
- 'window-not-responding': WindowEvent<Topic, Type>;
39
- 'window-performance-report': WindowPerformanceReport<Topic, Type>;
40
- 'window-responding': WindowEvent<Topic, Type>;
41
- 'window-show-requested': WindowEvent<Topic, Type>;
42
- 'window-start-load': WindowEvent<Topic, Type>;
43
- }
44
- export interface PropagatedApplicationEventMapping<Topic = string, Type = string> {
45
- 'application-closed': ApplicationEvent<Topic, Type>;
46
- 'application-connected': ApplicationEvent<Topic, Type>;
47
- 'application-crashed': CrashedEvent & ApplicationEvent<Topic, Type>;
48
- 'application-initialized': ApplicationEvent<Topic, Type>;
49
- 'application-manifest-changed': ApplicationEvent<Topic, Type>;
50
- 'application-not-responding': ApplicationEvent<Topic, Type>;
51
- 'application-responding': ApplicationEvent<Topic, Type>;
52
- 'application-started': ApplicationEvent<Topic, Type>;
53
- 'application-tray-icon-clicked': TrayIconClicked<Topic, Type>;
54
- 'window-created': WindowEvent<Topic, Type>;
55
- 'window-did-change-theme-color': WindowEvent<Topic, Type>;
56
- 'window-end-load': WindowEndLoadEvent<Topic, Type>;
57
- 'window-not-responding': WindowEvent<Topic, Type>;
58
- 'window-page-favicon-updated': WindowEvent<Topic, Type>;
59
- 'window-page-title-updated': WindowEvent<Topic, Type>;
60
- 'window-performance-report': WindowPerformanceReport<Topic, Type>;
61
- 'window-responding': WindowEvent<Topic, Type>;
62
- 'window-start-load': WindowEvent<Topic, Type>;
63
- }
64
- export declare type ApplicationEvents = PropagatedWindowEvents<'application'> & PropagatedViewEvents<'application'> & {
65
- [Type in keyof ApplicationEventMapping]: ApplicationEventMapping<'application', Type>[Type];
66
- };
67
- export declare type PropagatedApplicationEvents<Topic> = {
68
- [Type in keyof PropagatedApplicationEventMapping]: PropagatedApplicationEventMapping<Topic, Type>[Type];
69
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- import { FrameEvent } from './frame';
2
- export declare type RuntimeEvent<Topic = string, Type = string> = Topic extends 'window' | 'view' ? WindowEvent<Topic, Type> : Topic extends 'frame' ? FrameEvent<Type> : Topic extends 'application' ? ApplicationEvent<Topic, Type> : BaseEvent<Topic, Type>;
3
- export interface BaseEvent<Topic, Type> {
4
- topic: Topic;
5
- type: Type;
6
- }
7
- export interface ApplicationEvent<Topic, Type> extends BaseEvent<Topic, Type> {
8
- uuid: string;
9
- }
10
- export interface WindowEvent<Topic, Type> extends ApplicationEvent<Topic, Type> {
11
- name: string;
12
- }
13
- export interface BaseEventMap {
14
- [name: string]: any;
15
- newListener: string;
16
- listenerRemoved: string;
17
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { RuntimeEvent, BaseEventMap } from './base';
2
- export interface ExternalApplicationEvents extends BaseEventMap {
3
- connected: RuntimeEvent<'externalapplication', 'connected'>;
4
- disconnected: RuntimeEvent<'externalapplication', 'disconnected'>;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { BaseEventMap, WindowEvent } from './base';
2
- export interface FrameEvent<Type> extends WindowEvent<'frame', Type> {
3
- entityType: 'iframe';
4
- frameName: string;
5
- }
6
- export interface FrameEvents extends BaseEventMap {
7
- connected: FrameEvent<'connected'>;
8
- disconnected: FrameEvent<'disconnected'>;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import { RuntimeEvent, BaseEventMap } from './base';
2
- import Identity = OpenFin.Identity;
3
- export interface GlobalHotkeyEvent<Type> extends RuntimeEvent<'global-hotkey', Type> {
4
- identity: Identity;
5
- hotkey: string;
6
- }
7
- export interface GlobalHotkeyEvents extends BaseEventMap {
8
- registered: GlobalHotkeyEvent<'registered'>;
9
- unregistered: GlobalHotkeyEvent<'unregistered'>;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,18 +0,0 @@
1
- import { ApplicationEvent } from './base';
2
- import { PropagatedWindowEvents } from './window';
3
- import { PropagatedViewEvents } from './view';
4
- import { ApplicationEventMapping, PropagatedApplicationEventMapping } from './application';
5
- export interface PlatformEventMapping<Topic = string, Type = string> extends ApplicationEventMapping {
6
- 'platform-api-ready': ApplicationEvent<Topic, Type>;
7
- 'platform-snapshot-applied': ApplicationEvent<Topic, Type>;
8
- }
9
- export interface PropagatedPlatformEventMapping<Topic = string, Type = string> extends PropagatedApplicationEventMapping {
10
- 'platform-api-ready': ApplicationEvent<Topic, Type>;
11
- 'platform-snapshot-applied': ApplicationEvent<Topic, Type>;
12
- }
13
- export declare type PlatformEvents = PropagatedWindowEvents<'application'> & PropagatedViewEvents<'application'> & {
14
- [Type in keyof PlatformEventMapping]: PlatformEventMapping<'application', Type>[Type];
15
- };
16
- export declare type PropagatedPlatformEvents<Topic> = {
17
- [Type in keyof PropagatedPlatformEventMapping]: PropagatedPlatformEventMapping<Topic, Type>[Type];
18
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,22 +0,0 @@
1
- import { BaseEvent, ApplicationEvent, BaseEventMap } from './base';
2
- import { PropagatedWindowEvents } from './window';
3
- import { PropagatedApplicationEvents } from './application';
4
- import { PropagatedViewEvents } from './view';
5
- export interface IdleEvent<Topic, Type> extends BaseEvent<Topic, Type> {
6
- elapsedTime: number;
7
- isIdle: boolean;
8
- }
9
- export declare type MonitorEvent<Topic, Type> = OpenFin.MonitorInfo & BaseEvent<Topic, Type>;
10
- export interface SessionChangedEvent<Topic, Type> extends BaseEvent<Topic, Type> {
11
- reason: 'lock' | 'unlock' | 'remote-connect' | 'remote-disconnect' | 'unknown';
12
- }
13
- export interface SystemEventMapping<Topic = string, Type = string> extends BaseEventMap {
14
- 'application-created': ApplicationEvent<Topic, Type>;
15
- 'desktop-icon-clicked': ApplicationEvent<Topic, Type>;
16
- 'idle-state-changed': IdleEvent<Topic, Type>;
17
- 'monitor-info-changed': MonitorEvent<Topic, Type>;
18
- 'session-changed': SessionChangedEvent<Topic, Type>;
19
- }
20
- export declare type SystemEvents = PropagatedWindowEvents<'system'> & PropagatedApplicationEvents<'system'> & PropagatedViewEvents<'system'> & {
21
- [Type in keyof SystemEventMapping]: SystemEventMapping<'system', Type>[Type];
22
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,56 +0,0 @@
1
- import { WebContentsEventMapping, WindowResourceLoadFailedEvent, WindowResourceResponseReceivedEvent, CertificateSelectionShownEvent } from './webcontents';
2
- import { WindowEvent, BaseEventMap } from './base';
3
- import { WindowNavigationRejectedEvent } from './window';
4
- import { CrashedEvent } from './application';
5
- export interface ViewEventMapping<Topic = string, Type = string> extends WebContentsEventMapping {
6
- 'attached': WindowEvent<Topic, Type>;
7
- 'created': WindowEvent<Topic, Type>;
8
- 'destroyed': WindowEvent<Topic, Type>;
9
- 'hidden': WindowEvent<Topic, Type>;
10
- 'hotkey': InputEvent & WindowEvent<Topic, Type>;
11
- 'shown': WindowEvent<Topic, Type>;
12
- 'target-changed': TargetChangedEvent<Topic, Type>;
13
- }
14
- interface PropagatedViewIdentity {
15
- viewIdentity: OpenFin.Identity;
16
- }
17
- export interface PropagatedViewEventMapping<Topic = string, Type = string> extends BaseEventMap {
18
- 'view-blurred': WindowEvent<Topic, Type> & PropagatedViewIdentity;
19
- 'view-certificate-selection-shown': CertificateSelectionShownEvent<Topic, Type> & PropagatedViewIdentity;
20
- 'view-crashed': CrashedEvent & WindowEvent<Topic, Type> & PropagatedViewIdentity;
21
- 'view-created': CrashedEvent & WindowEvent<Topic, Type> & PropagatedViewIdentity;
22
- 'view-destroyed': WindowEvent<Topic, Type> & PropagatedViewIdentity;
23
- 'view-did-change-theme-color': WindowEvent<Topic, Type> & PropagatedViewIdentity;
24
- 'view-focused': WindowEvent<Topic, Type> & PropagatedViewIdentity;
25
- 'view-hidden': WindowEvent<Topic, Type> & PropagatedViewIdentity;
26
- 'view-hotkey': InputEvent & WindowEvent<Topic, Type> & PropagatedViewIdentity;
27
- 'view-navigation-rejected': WindowNavigationRejectedEvent<Topic, Type> & PropagatedViewIdentity;
28
- 'view-page-favicon-updated': WindowEvent<Topic, Type> & PropagatedViewIdentity;
29
- 'view-page-title-updated': WindowEvent<Topic, Type> & PropagatedViewIdentity;
30
- 'view-resource-load-failed': WindowResourceLoadFailedEvent<Topic, Type> & PropagatedViewIdentity;
31
- 'view-resource-response-received': WindowResourceResponseReceivedEvent<Topic, Type> & PropagatedViewIdentity;
32
- 'view-shown': WindowEvent<Topic, Type> & PropagatedViewIdentity;
33
- 'view-target-changed': TargetChangedEvent<Topic, Type> & PropagatedViewIdentity;
34
- }
35
- export declare type ViewEvents = {
36
- [Type in keyof ViewEventMapping]: ViewEventMapping<'view', Type>[Type];
37
- };
38
- export declare type PropagatedViewEvents<Topic> = {
39
- [Type in keyof PropagatedViewEventMapping]: PropagatedViewEventMapping<Topic, Type>[Type];
40
- };
41
- export interface InputEvent {
42
- inputType: 'keyUp' | 'keyDown';
43
- ctrlKey: boolean;
44
- shiftKey: boolean;
45
- altKey: boolean;
46
- metaKey: boolean;
47
- key: string;
48
- code: string;
49
- repeat: boolean;
50
- command?: string;
51
- }
52
- export interface TargetChangedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
53
- previousTarget: OpenFin.Identity;
54
- target: OpenFin.Identity;
55
- }
56
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,48 +0,0 @@
1
- import { BaseEventMap, WindowEvent } from './base';
2
- import { CrashedEvent } from './application';
3
- import { WindowNavigationRejectedEvent } from './window';
4
- export interface WindowResourceLoadFailedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
5
- errorCode: number;
6
- errorDescription: string;
7
- validatedURL: string;
8
- isMainFrame: boolean;
9
- }
10
- export interface WindowResourceResponseReceivedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
11
- status: boolean;
12
- newUrl: string;
13
- originalUrl: string;
14
- httpResponseCode: number;
15
- requestMethod: string;
16
- referrer: string;
17
- headers: any;
18
- resourceType: 'mainFrame' | 'subFrame' | 'styleSheet' | 'script' | 'image' | 'object' | 'xhr' | 'other';
19
- }
20
- export interface PageTitleUpdatedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
21
- title: string;
22
- }
23
- export interface CertificateErrorEvent<Topic, Type> extends WindowEvent<Topic, Type> {
24
- error: string;
25
- url: string;
26
- certificate: OpenFin.Certificate;
27
- }
28
- export interface CertificateSelectionShownEvent<Topic, Type> extends WindowEvent<Topic, Type> {
29
- url: string;
30
- certificates: OpenFin.Certificate[];
31
- }
32
- export interface FaviconUpdatedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
33
- favicons: string[];
34
- }
35
- export interface WebContentsEventMapping<Topic = string, Type = string> extends BaseEventMap {
36
- 'blurred': WindowEvent<Topic, Type>;
37
- 'certificate-error': CertificateErrorEvent<Topic, Type>;
38
- 'certificate-selection-shown': CertificateSelectionShownEvent<Topic, Type>;
39
- 'crashed': CrashedEvent & WindowEvent<Topic, Type>;
40
- 'did-change-theme-color': WindowEvent<Topic, Type>;
41
- 'focused': WindowEvent<Topic, Type>;
42
- 'found-in-page': WindowEvent<Topic, Type>;
43
- 'navigation-rejected': WindowNavigationRejectedEvent<Topic, Type>;
44
- 'page-favicon-updated': FaviconUpdatedEvent<Topic, Type>;
45
- 'page-title-updated': PageTitleUpdatedEvent<Topic, Type>;
46
- 'resource-load-failed': WindowResourceLoadFailedEvent<Topic, Type>;
47
- 'resource-response-received': WindowResourceResponseReceivedEvent<Topic, Type>;
48
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,169 +0,0 @@
1
- import { CrashedEvent } from './application';
2
- import { WindowEvent, BaseEventMap } from './base';
3
- import { WebContentsEventMapping, WindowResourceLoadFailedEvent, WindowResourceResponseReceivedEvent, CertificateSelectionShownEvent } from './webcontents';
4
- import { PropagatedViewEventMapping, InputEvent } from './view';
5
- export interface WindowAlertRequestedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
6
- message: string;
7
- url: string;
8
- }
9
- export interface WindowAuthRequestedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
10
- authInfo: {
11
- host: string;
12
- isProxy: boolean;
13
- port: number;
14
- realm: string;
15
- scheme: string;
16
- };
17
- }
18
- export interface WindowEndLoadEvent<Topic, Type> extends WindowEvent<Topic, Type> {
19
- documentName: string;
20
- isMain: boolean;
21
- }
22
- export interface WindowNavigationRejectedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
23
- sourceName?: string;
24
- url: string;
25
- }
26
- export interface WindowReloadedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
27
- url: string;
28
- }
29
- export interface WindowOptionsChangedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
30
- options: OpenFin.WindowOptions;
31
- diff: OpenFin.WindowOptionDiff;
32
- }
33
- export interface WindowExternalProcessExitedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
34
- processUuid: string;
35
- exitCode: number;
36
- }
37
- export interface WindowExternalProcessStartedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
38
- processUuid: string;
39
- }
40
- export interface WindowHiddenEvent<Topic, Type> extends WindowEvent<Topic, Type> {
41
- reason: 'closing' | 'hide' | 'hide-on-close';
42
- }
43
- export interface PreloadScriptInfoRunning {
44
- state: 'load-started' | 'load-failed' | 'load-succeeded' | 'failed' | 'succeeded';
45
- }
46
- export interface PreloadScriptInfo {
47
- state: 'load-failed' | 'failed' | 'succeeded';
48
- }
49
- export interface WindowPreloadScriptsStateChangeEvent<Topic, Type> extends WindowEvent<Topic, Type> {
50
- preloadScripts: (PreloadScriptInfoRunning & any)[];
51
- }
52
- export interface WindowPreloadScriptsStateChangedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
53
- preloadScripts: (PreloadScriptInfoRunning & any)[];
54
- }
55
- export interface WindowBeginBoundsChangingEvent<Topic, Type> extends WindowEvent<Topic, Type> {
56
- height: number;
57
- left: number;
58
- top: number;
59
- width: number;
60
- windowState: 'minimized' | 'normal' | 'maximized';
61
- }
62
- export interface WindowEndBoundsChangingEvent<Topic, Type> extends WindowEvent<Topic, Type> {
63
- height: number;
64
- left: number;
65
- top: number;
66
- width: number;
67
- windowState: 'minimized' | 'normal' | 'maximized';
68
- }
69
- export interface WindowBoundsChange<Topic, Type> extends WindowEvent<Topic, Type> {
70
- changeType: 0 | 1 | 2;
71
- deferred: boolean;
72
- height: number;
73
- left: number;
74
- top: number;
75
- width: number;
76
- }
77
- export interface WillMoveOrResize<Topic, Type> extends WindowEvent<Topic, Type> {
78
- height: number;
79
- left: number;
80
- top: number;
81
- width: number;
82
- monitorScaleFactor: number;
83
- }
84
- export declare type WindowPerformanceReport<Topic, Type> = Performance & WindowEvent<Topic, Type>;
85
- export interface ViewDetached<Topic, Type> extends WindowEvent<Topic, Type> {
86
- previousTarget: OpenFin.Identity;
87
- target: OpenFin.Identity;
88
- viewIdentity: OpenFin.Identity;
89
- }
90
- export interface WindowEventMapping<Topic = string, Type = string> extends WebContentsEventMapping {
91
- 'auth-requested': WindowAuthRequestedEvent<Topic, Type>;
92
- 'begin-user-bounds-changing': WindowBeginBoundsChangingEvent<Topic, Type>;
93
- 'bounds-changed': WindowBoundsChange<Topic, Type>;
94
- 'bounds-changing': WindowBoundsChange<Topic, Type>;
95
- 'close-requested': WindowEvent<Topic, Type>;
96
- 'closed': WindowEvent<Topic, Type>;
97
- 'closing': WindowEvent<Topic, Type>;
98
- 'disabled-movement-bounds-changed': WindowBoundsChange<Topic, Type>;
99
- 'disabled-movement-bounds-changing': WindowBoundsChange<Topic, Type>;
100
- 'embedded': WindowEvent<Topic, Type>;
101
- 'end-user-bounds-changing': WindowEndBoundsChangingEvent<Topic, Type>;
102
- 'external-process-exited': WindowExternalProcessExitedEvent<Topic, Type>;
103
- 'external-process-started': WindowExternalProcessStartedEvent<Topic, Type>;
104
- 'hidden': WindowHiddenEvent<Topic, Type>;
105
- 'hotkey': InputEvent & WindowEvent<Topic, Type>;
106
- 'initialized': WindowEvent<Topic, Type>;
107
- 'layout-initialized': WindowEvent<Topic, Type>;
108
- 'layout-ready': WindowEvent<Topic, Type>;
109
- 'maximized': WindowEvent<Topic, Type>;
110
- 'minimized': WindowEvent<Topic, Type>;
111
- 'options-changed': WindowOptionsChangedEvent<Topic, Type>;
112
- 'performance-report': WindowPerformanceReport<Topic, Type>;
113
- 'preload-scripts-state-changed': WindowPreloadScriptsStateChangeEvent<Topic, Type>;
114
- 'preload-scripts-state-changing': WindowPreloadScriptsStateChangeEvent<Topic, Type>;
115
- 'reloaded': WindowReloadedEvent<Topic, Type>;
116
- 'restored': WindowEvent<Topic, Type>;
117
- 'show-requested': WindowEvent<Topic, Type>;
118
- 'shown': WindowEvent<Topic, Type>;
119
- 'user-movement-disabled': WindowEvent<Topic, Type>;
120
- 'user-movement-enabled': WindowEvent<Topic, Type>;
121
- 'view-attached': WindowEvent<Topic, Type>;
122
- 'view-detached': ViewDetached<Topic, Type>;
123
- 'will-move': WillMoveOrResize<Topic, Type>;
124
- 'will-resize': WillMoveOrResize<Topic, Type>;
125
- }
126
- export interface PropagatedWindowEventMapping<Topic = string, Type = string> extends BaseEventMap {
127
- 'window-begin-user-bounds-changing': WindowBeginBoundsChangingEvent<Topic, Type>;
128
- 'window-blurred': WindowEvent<Topic, Type>;
129
- 'window-bounds-changed': WindowBoundsChange<Topic, Type>;
130
- 'window-bounds-changing': WindowBoundsChange<Topic, Type>;
131
- 'window-certificate-selection-shown': CertificateSelectionShownEvent<Topic, Type>;
132
- 'window-closed': WindowEvent<Topic, Type>;
133
- 'window-closing': WindowEvent<Topic, Type>;
134
- 'window-crashed': CrashedEvent & WindowEvent<Topic, Type>;
135
- 'window-disabled-movement-bounds-changed': WindowBoundsChange<Topic, Type>;
136
- 'window-disabled-movement-bounds-changing': WindowBoundsChange<Topic, Type>;
137
- 'window-embedded': WindowEvent<Topic, Type>;
138
- 'window-end-user-bounds-changing': WindowBeginBoundsChangingEvent<Topic, Type>;
139
- 'window-external-process-exited': WindowExternalProcessExitedEvent<Topic, Type>;
140
- 'window-external-process-started': WindowExternalProcessStartedEvent<Topic, Type>;
141
- 'window-focused': WindowEvent<Topic, Type>;
142
- 'window-hidden': WindowHiddenEvent<Topic, Type>;
143
- 'window-hotkey': InputEvent & WindowEvent<Topic, Type>;
144
- 'window-initialized': WindowEvent<Topic, Type>;
145
- 'window-layout-initialized': WindowEvent<Topic, Type>;
146
- 'window-layout-ready': WindowEvent<Topic, Type>;
147
- 'window-maximized': WindowEvent<Topic, Type>;
148
- 'window-minimized': WindowEvent<Topic, Type>;
149
- 'window-navigation-rejected': WindowNavigationRejectedEvent<Topic, Type>;
150
- 'window-options-changed': WindowOptionsChangedEvent<Topic, Type>;
151
- 'window-performance-report': WindowPerformanceReport<Topic, Type>;
152
- 'window-preload-scripts-state-changed': WindowPreloadScriptsStateChangeEvent<Topic, Type>;
153
- 'window-preload-scripts-state-changing': WindowPreloadScriptsStateChangedEvent<Topic, Type>;
154
- 'window-resource-load-failed': WindowResourceLoadFailedEvent<Topic, Type>;
155
- 'window-resource-response-received': WindowResourceResponseReceivedEvent<Topic, Type>;
156
- 'window-reloaded': WindowReloadedEvent<Topic, Type>;
157
- 'window-restored': WindowEvent<Topic, Type>;
158
- 'window-shown': WindowEvent<Topic, Type>;
159
- 'window-user-movement-disabled': WindowEvent<Topic, Type>;
160
- 'window-user-movement-enabled': WindowEvent<Topic, Type>;
161
- 'window-will-move': WillMoveOrResize<Topic, Type>;
162
- 'window-will-resize': WillMoveOrResize<Topic, Type>;
163
- }
164
- export declare type WindowEvents = PropagatedViewEventMapping<'window'> & {
165
- [Type in keyof WindowEventMapping]: WindowEventMapping<'window', Type>[Type];
166
- };
167
- export declare type PropagatedWindowEvents<Topic> = {
168
- [Type in keyof PropagatedWindowEventMapping]: PropagatedWindowEventMapping<Topic, Type>[Type];
169
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { LayoutPresetType } from '../../../shapes/LayoutPresetType';
2
- export interface InitLayoutOptions {
3
- containerId?: string;
4
- }
5
- export interface PresetLayoutOptions {
6
- presetType: LayoutPresetType;
7
- }
8
- export interface DragPayload {
9
- 'view-config': OpenFin.ViewCreationOptions;
10
- 'view-identity': [string, string, string];
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export interface ApplicationInfo {
2
- isPlatform: boolean;
3
- isRunning: boolean;
4
- uuid: string;
5
- parentUuid?: string;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });