@openfin/core 31.74.5 → 31.74.6

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 (63) hide show
  1. package/package.json +1 -1
  2. package/src/OpenFin.d.ts +238 -238
  3. package/src/OpenFin.js +0 -2
  4. package/src/api/base.d.ts +2 -2
  5. package/src/api/events/application.d.ts +22 -22
  6. package/src/api/events/base.d.ts +6 -6
  7. package/src/api/events/channel.d.ts +5 -5
  8. package/src/api/events/emitterMap.d.ts +1 -1
  9. package/src/api/events/externalApplication.d.ts +3 -3
  10. package/src/api/events/frame.d.ts +5 -5
  11. package/src/api/events/globalHotkey.d.ts +3 -3
  12. package/src/api/events/platform.d.ts +3 -3
  13. package/src/api/events/system.d.ts +17 -17
  14. package/src/api/events/typedEventEmitter.d.ts +1 -1
  15. package/src/api/events/view.d.ts +13 -13
  16. package/src/api/events/webcontents.d.ts +22 -22
  17. package/src/api/events/window.d.ts +49 -49
  18. package/src/api/fin.d.ts +1 -1
  19. package/src/api/frame/Instance.d.ts +1 -1
  20. package/src/api/interappbus/channel/channel.d.ts +4 -4
  21. package/src/api/interappbus/channel/channel.js +3 -3
  22. package/src/api/interappbus/channel/client.d.ts +2 -2
  23. package/src/api/interappbus/channel/client.js +20 -20
  24. package/src/api/interappbus/channel/connection-manager.d.ts +1 -1
  25. package/src/api/interappbus/channel/connection-manager.js +12 -12
  26. package/src/api/interappbus/channel/index.d.ts +2 -2
  27. package/src/api/interappbus/channel/protocols/classic/strategy.d.ts +1 -1
  28. package/src/api/interappbus/channel/protocols/combined/strategy.d.ts +2 -2
  29. package/src/api/interappbus/channel/protocols/combined/strategy.js +5 -5
  30. package/src/api/interappbus/channel/protocols/index.d.ts +4 -4
  31. package/src/api/interappbus/channel/protocols/rtc/endpoint.d.ts +1 -1
  32. package/src/api/interappbus/channel/protocols/rtc/strategy.d.ts +1 -1
  33. package/src/api/interappbus/channel/protocols/strategy-types.d.ts +4 -4
  34. package/src/api/interappbus/channel/protocols/strategy.d.ts +3 -3
  35. package/src/api/interappbus/channel/provider.d.ts +5 -5
  36. package/src/api/interappbus/channel/provider.js +24 -24
  37. package/src/api/interop/InteropBroker.d.ts +1 -1
  38. package/src/api/interop/fdc3/PrivateChannelClient.d.ts +1 -1
  39. package/src/api/interop/fdc3/PrivateChannelProvider.d.ts +1 -1
  40. package/src/api/interop/fdc3/shapes/fdc3v1.d.ts +3 -3
  41. package/src/api/interop/fdc3/shapes/fdc3v2.d.ts +4 -4
  42. package/src/api/interop/fdc3/versions.d.ts +1 -1
  43. package/src/api/me.d.ts +3 -3
  44. package/src/api/platform/common-utils.d.ts +1 -1
  45. package/src/api/platform/layout/Factory.d.ts +1 -1
  46. package/src/api/platform/layout/Instance.d.ts +3 -3
  47. package/src/api/platform/layout/controllers/splitter-controller.d.ts +1 -1
  48. package/src/api/platform/layout/shapes.d.ts +1 -1
  49. package/src/api/system/index.d.ts +13 -13
  50. package/src/api/view/Instance.d.ts +1 -1
  51. package/src/environment/browser.d.ts +1 -1
  52. package/src/environment/environment.d.ts +1 -1
  53. package/src/environment/node-env.d.ts +1 -1
  54. package/src/environment/openfin-env.d.ts +1 -1
  55. package/src/shapes/ERROR_BOX_TYPES.d.ts +1 -1
  56. package/src/shapes/protocol.d.ts +3 -3
  57. package/src/transport/transport-errors.d.ts +2 -2
  58. package/src/transport/transport.d.ts +3 -3
  59. package/src/transport/wire.d.ts +13 -13
  60. package/src/util/errors.d.ts +2 -2
  61. package/src/util/http.js +4 -2
  62. package/src/util/promises.d.ts +1 -1
  63. package/src/util/utilTypes.d.ts +1 -1
package/src/OpenFin.js CHANGED
@@ -1,4 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const snapshot_source_1 = require("./api/snapshot-source");
4
- const window_1 = require("./api/window");
package/src/api/base.d.ts CHANGED
@@ -4,8 +4,8 @@ import { Transport } from '../transport/transport';
4
4
  import type * as OpenFin from '../OpenFin';
5
5
  import Fin from './fin';
6
6
  import { BaseEvent, EventHandler } from './events/base';
7
- declare type ApplicationIdentity = OpenFin.ApplicationIdentity;
8
- declare type Identity = OpenFin.Identity;
7
+ type ApplicationIdentity = OpenFin.ApplicationIdentity;
8
+ type Identity = OpenFin.Identity;
9
9
  export declare class Base {
10
10
  wire: Transport;
11
11
  constructor(wire: Transport);
@@ -2,7 +2,7 @@ import type * as OpenFin from '../../OpenFin';
2
2
  import { IdentityEvent, NamedEvent, PropagatedEvent } from './base';
3
3
  import { PropagatedWindowEvent } from './window';
4
4
  import { PropagatedViewEvent } from './view';
5
- export declare type CrashedEvent = NamedEvent & {
5
+ export type CrashedEvent = NamedEvent & {
6
6
  type: 'crashed';
7
7
  reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
8
8
  exitCode: number;
@@ -11,12 +11,12 @@ export declare type CrashedEvent = NamedEvent & {
11
11
  exitCode: number;
12
12
  };
13
13
  };
14
- export declare type RunRequestedEvent = IdentityEvent & {
14
+ export type RunRequestedEvent = IdentityEvent & {
15
15
  type: 'run-requested';
16
16
  userAppConfigArgs: Record<string, any>;
17
17
  manifest: OpenFin.ManifestInfo;
18
18
  };
19
- export declare type TrayIconClickedEvent = IdentityEvent & {
19
+ export type TrayIconClickedEvent = IdentityEvent & {
20
20
  type: 'tray-icon-clicked';
21
21
  button: 0 | 1 | 2;
22
22
  bounds: OpenFin.Rectangle;
@@ -24,56 +24,56 @@ export declare type TrayIconClickedEvent = IdentityEvent & {
24
24
  y: number;
25
25
  monitorInfo: any;
26
26
  };
27
- export declare type WindowAlertRequestedEvent = NamedEvent & {
27
+ export type WindowAlertRequestedEvent = NamedEvent & {
28
28
  type: 'window-alert-requested';
29
29
  };
30
- export declare type WindowCreatedEvent = NamedEvent & {
30
+ export type WindowCreatedEvent = NamedEvent & {
31
31
  type: 'window-created';
32
32
  };
33
- export declare type WindowEndLoadEvent = NamedEvent & {
33
+ export type WindowEndLoadEvent = NamedEvent & {
34
34
  type: 'window-end-load';
35
35
  };
36
- export declare type WindowNotRespondingEvent = NamedEvent & {
36
+ export type WindowNotRespondingEvent = NamedEvent & {
37
37
  type: 'window-not-responding';
38
38
  };
39
- export declare type WindowRespondingEvent = NamedEvent & {
39
+ export type WindowRespondingEvent = NamedEvent & {
40
40
  type: 'window-responding';
41
41
  };
42
- export declare type WindowStartLoadEvent = NamedEvent & {
42
+ export type WindowStartLoadEvent = NamedEvent & {
43
43
  type: 'window-start-load';
44
44
  };
45
45
  /**
46
46
  * A Window event that is natively published at the Application level (not Window).
47
47
  */
48
- export declare type ApplicationWindowEvent = WindowAlertRequestedEvent | WindowCreatedEvent | WindowEndLoadEvent | WindowNotRespondingEvent | WindowRespondingEvent | WindowStartLoadEvent;
49
- export declare type ClosedEvent = IdentityEvent & {
48
+ export type ApplicationWindowEvent = WindowAlertRequestedEvent | WindowCreatedEvent | WindowEndLoadEvent | WindowNotRespondingEvent | WindowRespondingEvent | WindowStartLoadEvent;
49
+ export type ClosedEvent = IdentityEvent & {
50
50
  type: 'closed';
51
51
  };
52
- export declare type ApplicationConnectedEvent = IdentityEvent & {
52
+ export type ApplicationConnectedEvent = IdentityEvent & {
53
53
  type: 'connected';
54
54
  };
55
- export declare type InitializedEvent = IdentityEvent & {
55
+ export type InitializedEvent = IdentityEvent & {
56
56
  type: 'initialized';
57
57
  };
58
- export declare type ManifestChangedEvent = IdentityEvent & {
58
+ export type ManifestChangedEvent = IdentityEvent & {
59
59
  type: 'manifest-changed';
60
60
  };
61
- export declare type NotRespondingEvent = IdentityEvent & {
61
+ export type NotRespondingEvent = IdentityEvent & {
62
62
  type: 'not-responding';
63
63
  };
64
- export declare type RespondingEvent = IdentityEvent & {
64
+ export type RespondingEvent = IdentityEvent & {
65
65
  type: 'responding';
66
66
  };
67
- export declare type StartedEvent = IdentityEvent & {
67
+ export type StartedEvent = IdentityEvent & {
68
68
  type: 'started';
69
69
  };
70
70
  /**
71
71
  * An Application event that does propagate to (republish on) parent topics.
72
72
  */
73
- export declare type WillPropagateApplicationEvent = ClosedEvent | ApplicationConnectedEvent | CrashedEvent | InitializedEvent | ManifestChangedEvent | NotRespondingEvent | RespondingEvent | RunRequestedEvent | StartedEvent | TrayIconClickedEvent;
74
- export declare type ApplicationEvent = {
73
+ export type WillPropagateApplicationEvent = ClosedEvent | ApplicationConnectedEvent | CrashedEvent | InitializedEvent | ManifestChangedEvent | NotRespondingEvent | RespondingEvent | RunRequestedEvent | StartedEvent | TrayIconClickedEvent;
74
+ export type ApplicationEvent = {
75
75
  topic: 'application';
76
76
  } & (PropagatedViewEvent | PropagatedWindowEvent | ApplicationWindowEvent | WillPropagateApplicationEvent);
77
- export declare type ApplicationEventType = ApplicationEvent['type'];
78
- export declare type PropagatedApplicationEvent = PropagatedEvent<'application', WillPropagateApplicationEvent> | ApplicationWindowEvent;
79
- export declare type PropagatedApplicationEventType = PropagatedApplicationEvent['type'];
77
+ export type ApplicationEventType = ApplicationEvent['type'];
78
+ export type PropagatedApplicationEvent = PropagatedEvent<'application', WillPropagateApplicationEvent> | ApplicationWindowEvent;
79
+ export type PropagatedApplicationEventType = PropagatedApplicationEvent['type'];
@@ -2,12 +2,12 @@ import type * as OpenFin from '../../OpenFin';
2
2
  /**
3
3
  * Modifies an event key to reflect propagation by prefixing with the topic.
4
4
  */
5
- export declare type PropagatedEventType<Topic extends string, Type extends string> = `${Topic}-${Type}`;
5
+ export type PropagatedEventType<Topic extends string, Type extends string> = `${Topic}-${Type}`;
6
6
  /**
7
7
  * Modifies an event shape to reflect propagation to a parent topic. The 'type' field
8
8
  * is prefixed with the original topic, and a new property is added with the original topic's identity.
9
9
  */
10
- export declare type PropagatedEvent<Topic extends string, Event extends {
10
+ export type PropagatedEvent<Topic extends string, Event extends {
11
11
  type: string;
12
12
  }> = Event extends infer E extends {
13
13
  type: string;
@@ -20,16 +20,16 @@ export declare type PropagatedEvent<Topic extends string, Event extends {
20
20
  * Handler for an event on an EventEmitter; selects the correct type for the event
21
21
  * payload from the provided union based on the provided string literal type.
22
22
  */
23
- export declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Extract<EmitterEvent, {
23
+ export type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Extract<EmitterEvent, {
24
24
  type: EventType;
25
25
  }>, ...args: any[]) => void;
26
- export declare type BaseEvent = {
26
+ export type BaseEvent = {
27
27
  topic: string;
28
28
  type: string;
29
29
  };
30
- export declare type IdentityEvent = BaseEvent & {
30
+ export type IdentityEvent = BaseEvent & {
31
31
  uuid: string;
32
32
  };
33
- export declare type NamedEvent = IdentityEvent & {
33
+ export type NamedEvent = IdentityEvent & {
34
34
  name: string;
35
35
  };
@@ -1,15 +1,15 @@
1
1
  import { NamedEvent } from './base';
2
- export declare type BaseChannelEvent = NamedEvent & {
2
+ export type BaseChannelEvent = NamedEvent & {
3
3
  channelName: string;
4
4
  channelId: string;
5
5
  };
6
- export declare type ChannelConnectedEvent = BaseChannelEvent & {
6
+ export type ChannelConnectedEvent = BaseChannelEvent & {
7
7
  type: 'connected';
8
8
  };
9
- export declare type ChannelDisconnectedEvent = BaseChannelEvent & {
9
+ export type ChannelDisconnectedEvent = BaseChannelEvent & {
10
10
  type: 'disconnected';
11
11
  };
12
- export declare type ChannelEvent = {
12
+ export type ChannelEvent = {
13
13
  topic: 'channel';
14
14
  } & (ChannelConnectedEvent | ChannelDisconnectedEvent);
15
- export declare type ChannelEventType = ChannelEvent['type'];
15
+ export type ChannelEventType = ChannelEvent['type'];
@@ -8,4 +8,4 @@ export declare class EmitterMap {
8
8
  has(keys: EmitterAccessor): boolean;
9
9
  delete(keys: EmitterAccessor): boolean;
10
10
  }
11
- export declare type EmitterAccessor = string[];
11
+ export type EmitterAccessor = string[];
@@ -1,10 +1,10 @@
1
1
  import { BaseEvent } from './base';
2
- export declare type ExternalApplicationConnectedEvent = BaseEvent & {
2
+ export type ExternalApplicationConnectedEvent = BaseEvent & {
3
3
  type: 'connected';
4
4
  };
5
- export declare type ExternalApplicationDisconnectedEvent = BaseEvent & {
5
+ export type ExternalApplicationDisconnectedEvent = BaseEvent & {
6
6
  type: 'disconnected';
7
7
  };
8
- export declare type ExternalApplicationEvent = {
8
+ export type ExternalApplicationEvent = {
9
9
  topic: 'externalapplication';
10
10
  } & (ExternalApplicationConnectedEvent | ExternalApplicationDisconnectedEvent);
@@ -1,15 +1,15 @@
1
1
  import { NamedEvent } from './base';
2
- export declare type BaseFrameEvent = NamedEvent & {
2
+ export type BaseFrameEvent = NamedEvent & {
3
3
  entityType: 'iframe';
4
4
  frameName: string;
5
5
  };
6
- export declare type FrameConnectedEvent = BaseFrameEvent & {
6
+ export type FrameConnectedEvent = BaseFrameEvent & {
7
7
  type: 'connected';
8
8
  };
9
- export declare type FrameDisconnectedEvent = BaseFrameEvent & {
9
+ export type FrameDisconnectedEvent = BaseFrameEvent & {
10
10
  type: 'disconnected';
11
11
  };
12
- export declare type FrameEvent = {
12
+ export type FrameEvent = {
13
13
  topic: 'frame';
14
14
  } & (FrameConnectedEvent | FrameDisconnectedEvent);
15
- export declare type FrameEventType = FrameEvent['type'];
15
+ export type FrameEventType = FrameEvent['type'];
@@ -1,11 +1,11 @@
1
1
  import { BaseEvent } from './base';
2
- export declare type RegisteredEvent = BaseEvent & {
2
+ export type RegisteredEvent = BaseEvent & {
3
3
  type: 'registered';
4
4
  };
5
- export declare type UnregisteredEvent = BaseEvent & {
5
+ export type UnregisteredEvent = BaseEvent & {
6
6
  type: 'unregistered';
7
7
  };
8
- export declare type GlobalHotkeyEvent = {
8
+ export type GlobalHotkeyEvent = {
9
9
  topic: 'global-hotkey';
10
10
  hotkey: 'string';
11
11
  } & (RegisteredEvent | UnregisteredEvent);
@@ -1,11 +1,11 @@
1
1
  import { ApplicationEvent } from './application';
2
2
  import { BaseEvent } from './base';
3
- export declare type PlatformApiReadyEvent = BaseEvent & {
3
+ export type PlatformApiReadyEvent = BaseEvent & {
4
4
  topic: 'application';
5
5
  type: 'platform-api-ready';
6
6
  };
7
- export declare type PlatformSnapshotAppliedEvent = BaseEvent & {
7
+ export type PlatformSnapshotAppliedEvent = BaseEvent & {
8
8
  topic: 'application';
9
9
  type: 'platform-snapshot-applied';
10
10
  };
11
- export declare type PlatformEvent = ApplicationEvent | PlatformApiReadyEvent | PlatformSnapshotAppliedEvent;
11
+ export type PlatformEvent = ApplicationEvent | PlatformApiReadyEvent | PlatformSnapshotAppliedEvent;
@@ -4,47 +4,47 @@ import { BaseEvent } from './base';
4
4
  import { PropagatedViewEvent } from './view';
5
5
  import { PropagatedWindowEvent } from './window';
6
6
  import { AppVersionCompleteEvent, AppVersionErrorEvent, AppVersionProgressEvent, AppVersionRuntimeStatusEvent } from '../../OpenFin';
7
- export declare type NotRequested<EventType> = EventType extends `${infer U}-requested` ? never : EventType;
8
- export declare type ExcludeRequested<Event extends {
7
+ export type NotRequested<EventType> = EventType extends `${infer U}-requested` ? never : EventType;
8
+ export type ExcludeRequested<Event extends {
9
9
  type: string;
10
10
  }> = Extract<Event, {
11
11
  type: NotRequested<Event['type']>;
12
12
  }>;
13
- export declare type IdleEvent = {
13
+ export type IdleEvent = {
14
14
  type: 'idle-state-changed';
15
15
  elapsedTime: number;
16
16
  isIdle: boolean;
17
17
  };
18
- export declare type MonitorEvent = OpenFin.MonitorInfo & {
18
+ export type MonitorEvent = OpenFin.MonitorInfo & {
19
19
  type: 'monitor-info-changed';
20
20
  };
21
- export declare type SessionChangedEvent = {
21
+ export type SessionChangedEvent = {
22
22
  type: 'session-changed';
23
23
  reason: 'lock' | 'unlock' | 'remote-connect' | 'remote-disconnect' | 'unknown';
24
24
  };
25
- export declare type AppVersionEvent = AppVersionProgressEvent | AppVersionRuntimeStatusEvent | AppVersionCompleteEvent | AppVersionErrorEvent;
26
- export declare type AppVersionEventType = AppVersionEvent['type'];
27
- export declare type IdEventType = WithId<AppVersionEventType>;
28
- export declare type WithId<T extends AppVersionEventType> = `${T}.${string}`;
29
- export declare type WithoutId<T extends string> = T extends WithId<infer U> ? U : never;
30
- export declare type AppVersionTypeFromIdEvent<T extends IdEventType> = Extract<AppVersionEvent, {
25
+ export type AppVersionEvent = AppVersionProgressEvent | AppVersionRuntimeStatusEvent | AppVersionCompleteEvent | AppVersionErrorEvent;
26
+ export type AppVersionEventType = AppVersionEvent['type'];
27
+ export type IdEventType = WithId<AppVersionEventType>;
28
+ export type WithId<T extends AppVersionEventType> = `${T}.${string}`;
29
+ export type WithoutId<T extends string> = T extends WithId<infer U> ? U : never;
30
+ export type AppVersionTypeFromIdEvent<T extends IdEventType> = Extract<AppVersionEvent, {
31
31
  type: WithoutId<T>;
32
32
  }>;
33
- export declare type EventWithId<Event extends AppVersionEvent> = Event extends infer E extends {
33
+ export type EventWithId<Event extends AppVersionEvent> = Event extends infer E extends {
34
34
  type: AppVersionEventType;
35
35
  } ? Omit<E, 'type'> & {
36
36
  type: WithId<E['type']>;
37
37
  topic: 'system';
38
38
  appVersionId: string;
39
39
  } : never;
40
- export declare type AppVersionEventWithId = EventWithId<AppVersionEvent>;
41
- export declare type ApplicationCreatedEvent = BaseEvent & {
40
+ export type AppVersionEventWithId = EventWithId<AppVersionEvent>;
41
+ export type ApplicationCreatedEvent = BaseEvent & {
42
42
  type: 'application-created';
43
43
  };
44
- export declare type DesktopIconClickedEvent = BaseEvent & {
44
+ export type DesktopIconClickedEvent = BaseEvent & {
45
45
  type: 'desktop-icon-clicked';
46
46
  };
47
- export declare type SystemEvent = {
47
+ export type SystemEvent = {
48
48
  topic: 'system';
49
49
  } & (ExcludeRequested<PropagatedWindowEvent> | PropagatedViewEvent | PropagatedApplicationEvent | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleEvent | MonitorEvent | SessionChangedEvent | AppVersionEventWithId);
50
- export declare type SystemEventType = SystemEvent['type'];
50
+ export type SystemEventType = SystemEvent['type'];
@@ -1,4 +1,4 @@
1
- export declare type Listener<T extends {
1
+ export type Listener<T extends {
2
2
  type: string;
3
3
  }> = (payload: T) => void;
4
4
  export interface TypedEventEmitter<Event extends {
@@ -1,7 +1,7 @@
1
1
  import type * as OpenFin from '../../OpenFin';
2
2
  import { NonPropagatedWebContentsEvent, WillPropagateWebContentsEvent } from './webcontents';
3
3
  import { NamedEvent, PropagatedEvent } from './base';
4
- export declare type TargetChangedEvent = NamedEvent & {
4
+ export type TargetChangedEvent = NamedEvent & {
5
5
  type: 'target-changed';
6
6
  previousTarget: OpenFin.Identity;
7
7
  target: OpenFin.Identity;
@@ -9,32 +9,32 @@ export declare type TargetChangedEvent = NamedEvent & {
9
9
  /**
10
10
  * A View event that does not propagate to (republish on) parent topics.
11
11
  */
12
- export declare type NonPropagatedViewEvent = NonPropagatedWebContentsEvent;
13
- export declare type AttachedEvent = NamedEvent & {
12
+ export type NonPropagatedViewEvent = NonPropagatedWebContentsEvent;
13
+ export type AttachedEvent = NamedEvent & {
14
14
  type: 'attached';
15
15
  };
16
- export declare type CreatedEvent = NamedEvent & {
16
+ export type CreatedEvent = NamedEvent & {
17
17
  type: 'created';
18
18
  };
19
- export declare type DestroyedEvent = NamedEvent & {
19
+ export type DestroyedEvent = NamedEvent & {
20
20
  type: 'destroyed';
21
21
  };
22
- export declare type HiddenEvent = NamedEvent & {
22
+ export type HiddenEvent = NamedEvent & {
23
23
  type: 'hidden';
24
24
  };
25
- export declare type HotkeyEvent = NamedEvent & {
25
+ export type HotkeyEvent = NamedEvent & {
26
26
  type: 'hotkey';
27
27
  };
28
- export declare type ShownEvent = NamedEvent & {
28
+ export type ShownEvent = NamedEvent & {
29
29
  type: 'shown';
30
30
  };
31
31
  /**
32
32
  * A View event that does propagate to (republish on) parent topics.
33
33
  */
34
- export declare type WillPropagateViewEvent = WillPropagateWebContentsEvent | AttachedEvent | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent;
35
- export declare type ViewEvent = {
34
+ export type WillPropagateViewEvent = WillPropagateWebContentsEvent | AttachedEvent | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent;
35
+ export type ViewEvent = {
36
36
  topic: 'view';
37
37
  } & (NonPropagatedViewEvent | WillPropagateViewEvent);
38
- export declare type ViewEventType = ViewEvent['type'];
39
- export declare type PropagatedViewEvent = PropagatedEvent<'view', WillPropagateViewEvent>;
40
- export declare type PropagatedViewEventType = PropagatedViewEvent['type'];
38
+ export type ViewEventType = ViewEvent['type'];
39
+ export type PropagatedViewEvent = PropagatedEvent<'view', WillPropagateViewEvent>;
40
+ export type PropagatedViewEventType = PropagatedViewEvent['type'];
@@ -1,16 +1,16 @@
1
1
  import type * as OpenFin from '../../OpenFin';
2
2
  import { NamedEvent } from './base';
3
3
  import { CrashedEvent } from './application';
4
- declare type BaseLoadFailedEvent = NamedEvent & {
4
+ type BaseLoadFailedEvent = NamedEvent & {
5
5
  errorCode: number;
6
6
  errorDescription: string;
7
7
  validatedURL: string;
8
8
  isMainFrame: boolean;
9
9
  };
10
- export declare type ResourceLoadFailedEvent = BaseLoadFailedEvent & {
10
+ export type ResourceLoadFailedEvent = BaseLoadFailedEvent & {
11
11
  type: 'resource-load-failed';
12
12
  };
13
- export declare type ResourceResponseReceivedEvent = NamedEvent & {
13
+ export type ResourceResponseReceivedEvent = NamedEvent & {
14
14
  type: 'response-received';
15
15
  status: boolean;
16
16
  newUrl: string;
@@ -21,75 +21,75 @@ export declare type ResourceResponseReceivedEvent = NamedEvent & {
21
21
  headers: any;
22
22
  resourceType: 'mainFrame' | 'subFrame' | 'styleSheet' | 'script' | 'image' | 'object' | 'xhr' | 'other';
23
23
  };
24
- export declare type PageTitleUpdatedEvent = NamedEvent & {
24
+ export type PageTitleUpdatedEvent = NamedEvent & {
25
25
  type: 'page-title-updated';
26
26
  title: string;
27
27
  };
28
- export declare type CertificateErrorEvent = NamedEvent & {
28
+ export type CertificateErrorEvent = NamedEvent & {
29
29
  type: 'certificate-error';
30
30
  error: string;
31
31
  url: string;
32
32
  certificate: OpenFin.Certificate;
33
33
  };
34
- export declare type CertificateSelectionShownEvent = NamedEvent & {
34
+ export type CertificateSelectionShownEvent = NamedEvent & {
35
35
  type: 'certificate-selection-shown';
36
36
  url: string;
37
37
  certificates: OpenFin.Certificate[];
38
38
  };
39
- export declare type FaviconUpdatedEvent = NamedEvent & {
39
+ export type FaviconUpdatedEvent = NamedEvent & {
40
40
  type: 'page-favicon-updated';
41
41
  favicons: string[];
42
42
  };
43
- export declare type NavigationRejectedEvent = NamedEvent & {
43
+ export type NavigationRejectedEvent = NamedEvent & {
44
44
  type: 'navigation-rejected';
45
45
  sourceName?: string;
46
46
  url: string;
47
47
  };
48
- declare type BaseUrlEvent = NamedEvent & {
48
+ type BaseUrlEvent = NamedEvent & {
49
49
  type: 'url-changed';
50
50
  url: string;
51
51
  };
52
- export declare type UrlChangedEvent = BaseUrlEvent & ({
52
+ export type UrlChangedEvent = BaseUrlEvent & ({
53
53
  isInPage: true;
54
54
  } | {
55
55
  isInPage: false;
56
56
  httpResponseCode: number;
57
57
  httpStatusText: string;
58
58
  });
59
- export declare type DidFinishLoadEvent = NamedEvent & {
59
+ export type DidFinishLoadEvent = NamedEvent & {
60
60
  type: 'did-finish-load';
61
61
  };
62
- export declare type DidFailLoadEvent = BaseLoadFailedEvent & {
62
+ export type DidFailLoadEvent = BaseLoadFailedEvent & {
63
63
  type: 'did-fail-load';
64
64
  };
65
- export declare type FoundInPageEvent = NamedEvent & {
65
+ export type FoundInPageEvent = NamedEvent & {
66
66
  type: 'found-in-page';
67
67
  };
68
68
  /**
69
69
  * A WebContents event that does not propagate to (republish on) parent topics.
70
70
  */
71
- export declare type NonPropagatedWebContentsEvent = FoundInPageEvent | CertificateErrorEvent;
72
- export declare type BlurredEvent = NamedEvent & {
71
+ export type NonPropagatedWebContentsEvent = FoundInPageEvent | CertificateErrorEvent;
72
+ export type BlurredEvent = NamedEvent & {
73
73
  type: 'blurred';
74
74
  };
75
- export declare type DidChangeThemeColorEvent = NamedEvent & {
75
+ export type DidChangeThemeColorEvent = NamedEvent & {
76
76
  type: 'did-change-theme-color';
77
77
  };
78
- export declare type FocusedEvent = NamedEvent & {
78
+ export type FocusedEvent = NamedEvent & {
79
79
  type: 'focused';
80
80
  };
81
- export declare type ChildContentBlockedEvent = NamedEvent & {
81
+ export type ChildContentBlockedEvent = NamedEvent & {
82
82
  type: 'child-content-blocked';
83
83
  };
84
- export declare type ChildContentOpenedInBrowserEvent = NamedEvent & {
84
+ export type ChildContentOpenedInBrowserEvent = NamedEvent & {
85
85
  type: 'child-content-opened-in-browser';
86
86
  };
87
- export declare type ChildViewCreatedEvent = NamedEvent & {
87
+ export type ChildViewCreatedEvent = NamedEvent & {
88
88
  type: 'child-view-created';
89
89
  };
90
90
  /**
91
91
  * A WebContents event that does propagate to (republish on) parent topics.
92
92
  */
93
- export declare type WillPropagateWebContentsEvent = BlurredEvent | CertificateSelectionShownEvent | CrashedEvent | DidChangeThemeColorEvent | FocusedEvent | NavigationRejectedEvent | UrlChangedEvent | DidFailLoadEvent | DidFinishLoadEvent | FaviconUpdatedEvent | PageTitleUpdatedEvent | ResourceLoadFailedEvent | ResourceResponseReceivedEvent | ChildContentBlockedEvent | ChildContentOpenedInBrowserEvent | ChildViewCreatedEvent;
94
- export declare type WebContentsEvent = NonPropagatedWebContentsEvent | WillPropagateWebContentsEvent;
93
+ export type WillPropagateWebContentsEvent = BlurredEvent | CertificateSelectionShownEvent | CrashedEvent | DidChangeThemeColorEvent | FocusedEvent | NavigationRejectedEvent | UrlChangedEvent | DidFailLoadEvent | DidFinishLoadEvent | FaviconUpdatedEvent | PageTitleUpdatedEvent | ResourceLoadFailedEvent | ResourceResponseReceivedEvent | ChildContentBlockedEvent | ChildContentOpenedInBrowserEvent | ChildViewCreatedEvent;
94
+ export type WebContentsEvent = NonPropagatedWebContentsEvent | WillPropagateWebContentsEvent;
95
95
  export {};