@openfin/core 31.74.1 → 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.
- package/package.json +1 -1
- package/src/OpenFin.d.ts +238 -238
- package/src/OpenFin.js +0 -2
- package/src/api/base.d.ts +2 -2
- package/src/api/events/application.d.ts +22 -22
- package/src/api/events/base.d.ts +6 -6
- package/src/api/events/channel.d.ts +5 -5
- package/src/api/events/emitterMap.d.ts +1 -1
- package/src/api/events/externalApplication.d.ts +3 -3
- package/src/api/events/frame.d.ts +5 -5
- package/src/api/events/globalHotkey.d.ts +3 -3
- package/src/api/events/platform.d.ts +3 -3
- package/src/api/events/system.d.ts +17 -17
- package/src/api/events/typedEventEmitter.d.ts +1 -1
- package/src/api/events/view.d.ts +13 -13
- package/src/api/events/webcontents.d.ts +22 -22
- package/src/api/events/window.d.ts +49 -49
- package/src/api/fin.d.ts +1 -1
- package/src/api/frame/Instance.d.ts +1 -1
- package/src/api/interappbus/channel/channel.d.ts +4 -4
- package/src/api/interappbus/channel/channel.js +3 -3
- package/src/api/interappbus/channel/client.d.ts +2 -2
- package/src/api/interappbus/channel/client.js +20 -20
- package/src/api/interappbus/channel/connection-manager.d.ts +1 -1
- package/src/api/interappbus/channel/connection-manager.js +12 -12
- package/src/api/interappbus/channel/index.d.ts +2 -2
- package/src/api/interappbus/channel/protocols/classic/strategy.d.ts +1 -1
- package/src/api/interappbus/channel/protocols/combined/strategy.d.ts +2 -2
- package/src/api/interappbus/channel/protocols/combined/strategy.js +5 -5
- package/src/api/interappbus/channel/protocols/index.d.ts +4 -4
- package/src/api/interappbus/channel/protocols/rtc/endpoint.d.ts +1 -1
- package/src/api/interappbus/channel/protocols/rtc/strategy.d.ts +1 -1
- package/src/api/interappbus/channel/protocols/strategy-types.d.ts +4 -4
- package/src/api/interappbus/channel/protocols/strategy.d.ts +3 -3
- package/src/api/interappbus/channel/provider.d.ts +5 -5
- package/src/api/interappbus/channel/provider.js +24 -24
- package/src/api/interop/InteropBroker.d.ts +1 -1
- package/src/api/interop/fdc3/PrivateChannelClient.d.ts +1 -1
- package/src/api/interop/fdc3/PrivateChannelProvider.d.ts +1 -1
- package/src/api/interop/fdc3/shapes/fdc3v1.d.ts +3 -3
- package/src/api/interop/fdc3/shapes/fdc3v2.d.ts +4 -4
- package/src/api/interop/fdc3/versions.d.ts +1 -1
- package/src/api/me.d.ts +3 -3
- package/src/api/platform/common-utils.d.ts +1 -1
- package/src/api/platform/layout/Factory.d.ts +1 -1
- package/src/api/platform/layout/Instance.d.ts +3 -3
- package/src/api/platform/layout/controllers/splitter-controller.d.ts +1 -1
- package/src/api/platform/layout/shapes.d.ts +1 -1
- package/src/api/system/index.d.ts +13 -13
- package/src/api/view/Instance.d.ts +1 -1
- package/src/environment/browser.d.ts +1 -1
- package/src/environment/environment.d.ts +1 -1
- package/src/environment/node-env.d.ts +1 -1
- package/src/environment/openfin-env.d.ts +1 -1
- package/src/shapes/ERROR_BOX_TYPES.d.ts +1 -1
- package/src/shapes/protocol.d.ts +3 -3
- package/src/transport/transport-errors.d.ts +2 -2
- package/src/transport/transport.d.ts +3 -3
- package/src/transport/wire.d.ts +13 -13
- package/src/util/errors.d.ts +2 -2
- package/src/util/http.js +4 -2
- package/src/util/promises.d.ts +1 -1
- package/src/util/utilTypes.d.ts +1 -1
package/src/OpenFin.js
CHANGED
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
|
-
|
|
8
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
27
|
+
export type WindowAlertRequestedEvent = NamedEvent & {
|
|
28
28
|
type: 'window-alert-requested';
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type WindowCreatedEvent = NamedEvent & {
|
|
31
31
|
type: 'window-created';
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type WindowEndLoadEvent = NamedEvent & {
|
|
34
34
|
type: 'window-end-load';
|
|
35
35
|
};
|
|
36
|
-
export
|
|
36
|
+
export type WindowNotRespondingEvent = NamedEvent & {
|
|
37
37
|
type: 'window-not-responding';
|
|
38
38
|
};
|
|
39
|
-
export
|
|
39
|
+
export type WindowRespondingEvent = NamedEvent & {
|
|
40
40
|
type: 'window-responding';
|
|
41
41
|
};
|
|
42
|
-
export
|
|
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
|
|
49
|
-
export
|
|
48
|
+
export type ApplicationWindowEvent = WindowAlertRequestedEvent | WindowCreatedEvent | WindowEndLoadEvent | WindowNotRespondingEvent | WindowRespondingEvent | WindowStartLoadEvent;
|
|
49
|
+
export type ClosedEvent = IdentityEvent & {
|
|
50
50
|
type: 'closed';
|
|
51
51
|
};
|
|
52
|
-
export
|
|
52
|
+
export type ApplicationConnectedEvent = IdentityEvent & {
|
|
53
53
|
type: 'connected';
|
|
54
54
|
};
|
|
55
|
-
export
|
|
55
|
+
export type InitializedEvent = IdentityEvent & {
|
|
56
56
|
type: 'initialized';
|
|
57
57
|
};
|
|
58
|
-
export
|
|
58
|
+
export type ManifestChangedEvent = IdentityEvent & {
|
|
59
59
|
type: 'manifest-changed';
|
|
60
60
|
};
|
|
61
|
-
export
|
|
61
|
+
export type NotRespondingEvent = IdentityEvent & {
|
|
62
62
|
type: 'not-responding';
|
|
63
63
|
};
|
|
64
|
-
export
|
|
64
|
+
export type RespondingEvent = IdentityEvent & {
|
|
65
65
|
type: 'responding';
|
|
66
66
|
};
|
|
67
|
-
export
|
|
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
|
|
74
|
-
export
|
|
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
|
|
78
|
-
export
|
|
79
|
-
export
|
|
77
|
+
export type ApplicationEventType = ApplicationEvent['type'];
|
|
78
|
+
export type PropagatedApplicationEvent = PropagatedEvent<'application', WillPropagateApplicationEvent> | ApplicationWindowEvent;
|
|
79
|
+
export type PropagatedApplicationEventType = PropagatedApplicationEvent['type'];
|
package/src/api/events/base.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
23
|
+
export type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Extract<EmitterEvent, {
|
|
24
24
|
type: EventType;
|
|
25
25
|
}>, ...args: any[]) => void;
|
|
26
|
-
export
|
|
26
|
+
export type BaseEvent = {
|
|
27
27
|
topic: string;
|
|
28
28
|
type: string;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type IdentityEvent = BaseEvent & {
|
|
31
31
|
uuid: string;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type NamedEvent = IdentityEvent & {
|
|
34
34
|
name: string;
|
|
35
35
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { NamedEvent } from './base';
|
|
2
|
-
export
|
|
2
|
+
export type BaseChannelEvent = NamedEvent & {
|
|
3
3
|
channelName: string;
|
|
4
4
|
channelId: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type ChannelConnectedEvent = BaseChannelEvent & {
|
|
7
7
|
type: 'connected';
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type ChannelDisconnectedEvent = BaseChannelEvent & {
|
|
10
10
|
type: 'disconnected';
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type ChannelEvent = {
|
|
13
13
|
topic: 'channel';
|
|
14
14
|
} & (ChannelConnectedEvent | ChannelDisconnectedEvent);
|
|
15
|
-
export
|
|
15
|
+
export type ChannelEventType = ChannelEvent['type'];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BaseEvent } from './base';
|
|
2
|
-
export
|
|
2
|
+
export type ExternalApplicationConnectedEvent = BaseEvent & {
|
|
3
3
|
type: 'connected';
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type ExternalApplicationDisconnectedEvent = BaseEvent & {
|
|
6
6
|
type: 'disconnected';
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type ExternalApplicationEvent = {
|
|
9
9
|
topic: 'externalapplication';
|
|
10
10
|
} & (ExternalApplicationConnectedEvent | ExternalApplicationDisconnectedEvent);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { NamedEvent } from './base';
|
|
2
|
-
export
|
|
2
|
+
export type BaseFrameEvent = NamedEvent & {
|
|
3
3
|
entityType: 'iframe';
|
|
4
4
|
frameName: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type FrameConnectedEvent = BaseFrameEvent & {
|
|
7
7
|
type: 'connected';
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type FrameDisconnectedEvent = BaseFrameEvent & {
|
|
10
10
|
type: 'disconnected';
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type FrameEvent = {
|
|
13
13
|
topic: 'frame';
|
|
14
14
|
} & (FrameConnectedEvent | FrameDisconnectedEvent);
|
|
15
|
-
export
|
|
15
|
+
export type FrameEventType = FrameEvent['type'];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseEvent } from './base';
|
|
2
|
-
export
|
|
2
|
+
export type RegisteredEvent = BaseEvent & {
|
|
3
3
|
type: 'registered';
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type UnregisteredEvent = BaseEvent & {
|
|
6
6
|
type: 'unregistered';
|
|
7
7
|
};
|
|
8
|
-
export
|
|
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
|
|
3
|
+
export type PlatformApiReadyEvent = BaseEvent & {
|
|
4
4
|
topic: 'application';
|
|
5
5
|
type: 'platform-api-ready';
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type PlatformSnapshotAppliedEvent = BaseEvent & {
|
|
8
8
|
topic: 'application';
|
|
9
9
|
type: 'platform-snapshot-applied';
|
|
10
10
|
};
|
|
11
|
-
export
|
|
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
|
|
8
|
-
export
|
|
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
|
|
13
|
+
export type IdleEvent = {
|
|
14
14
|
type: 'idle-state-changed';
|
|
15
15
|
elapsedTime: number;
|
|
16
16
|
isIdle: boolean;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type MonitorEvent = OpenFin.MonitorInfo & {
|
|
19
19
|
type: 'monitor-info-changed';
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type SessionChangedEvent = {
|
|
22
22
|
type: 'session-changed';
|
|
23
23
|
reason: 'lock' | 'unlock' | 'remote-connect' | 'remote-disconnect' | 'unknown';
|
|
24
24
|
};
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
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
|
|
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
|
|
41
|
-
export
|
|
40
|
+
export type AppVersionEventWithId = EventWithId<AppVersionEvent>;
|
|
41
|
+
export type ApplicationCreatedEvent = BaseEvent & {
|
|
42
42
|
type: 'application-created';
|
|
43
43
|
};
|
|
44
|
-
export
|
|
44
|
+
export type DesktopIconClickedEvent = BaseEvent & {
|
|
45
45
|
type: 'desktop-icon-clicked';
|
|
46
46
|
};
|
|
47
|
-
export
|
|
47
|
+
export type SystemEvent = {
|
|
48
48
|
topic: 'system';
|
|
49
49
|
} & (ExcludeRequested<PropagatedWindowEvent> | PropagatedViewEvent | PropagatedApplicationEvent | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleEvent | MonitorEvent | SessionChangedEvent | AppVersionEventWithId);
|
|
50
|
-
export
|
|
50
|
+
export type SystemEventType = SystemEvent['type'];
|
package/src/api/events/view.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
13
|
-
export
|
|
12
|
+
export type NonPropagatedViewEvent = NonPropagatedWebContentsEvent;
|
|
13
|
+
export type AttachedEvent = NamedEvent & {
|
|
14
14
|
type: 'attached';
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type CreatedEvent = NamedEvent & {
|
|
17
17
|
type: 'created';
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type DestroyedEvent = NamedEvent & {
|
|
20
20
|
type: 'destroyed';
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type HiddenEvent = NamedEvent & {
|
|
23
23
|
type: 'hidden';
|
|
24
24
|
};
|
|
25
|
-
export
|
|
25
|
+
export type HotkeyEvent = NamedEvent & {
|
|
26
26
|
type: 'hotkey';
|
|
27
27
|
};
|
|
28
|
-
export
|
|
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
|
|
35
|
-
export
|
|
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
|
|
39
|
-
export
|
|
40
|
-
export
|
|
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
|
-
|
|
4
|
+
type BaseLoadFailedEvent = NamedEvent & {
|
|
5
5
|
errorCode: number;
|
|
6
6
|
errorDescription: string;
|
|
7
7
|
validatedURL: string;
|
|
8
8
|
isMainFrame: boolean;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type ResourceLoadFailedEvent = BaseLoadFailedEvent & {
|
|
11
11
|
type: 'resource-load-failed';
|
|
12
12
|
};
|
|
13
|
-
export
|
|
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
|
|
24
|
+
export type PageTitleUpdatedEvent = NamedEvent & {
|
|
25
25
|
type: 'page-title-updated';
|
|
26
26
|
title: string;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
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
|
|
34
|
+
export type CertificateSelectionShownEvent = NamedEvent & {
|
|
35
35
|
type: 'certificate-selection-shown';
|
|
36
36
|
url: string;
|
|
37
37
|
certificates: OpenFin.Certificate[];
|
|
38
38
|
};
|
|
39
|
-
export
|
|
39
|
+
export type FaviconUpdatedEvent = NamedEvent & {
|
|
40
40
|
type: 'page-favicon-updated';
|
|
41
41
|
favicons: string[];
|
|
42
42
|
};
|
|
43
|
-
export
|
|
43
|
+
export type NavigationRejectedEvent = NamedEvent & {
|
|
44
44
|
type: 'navigation-rejected';
|
|
45
45
|
sourceName?: string;
|
|
46
46
|
url: string;
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
type BaseUrlEvent = NamedEvent & {
|
|
49
49
|
type: 'url-changed';
|
|
50
50
|
url: string;
|
|
51
51
|
};
|
|
52
|
-
export
|
|
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
|
|
59
|
+
export type DidFinishLoadEvent = NamedEvent & {
|
|
60
60
|
type: 'did-finish-load';
|
|
61
61
|
};
|
|
62
|
-
export
|
|
62
|
+
export type DidFailLoadEvent = BaseLoadFailedEvent & {
|
|
63
63
|
type: 'did-fail-load';
|
|
64
64
|
};
|
|
65
|
-
export
|
|
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
|
|
72
|
-
export
|
|
71
|
+
export type NonPropagatedWebContentsEvent = FoundInPageEvent | CertificateErrorEvent;
|
|
72
|
+
export type BlurredEvent = NamedEvent & {
|
|
73
73
|
type: 'blurred';
|
|
74
74
|
};
|
|
75
|
-
export
|
|
75
|
+
export type DidChangeThemeColorEvent = NamedEvent & {
|
|
76
76
|
type: 'did-change-theme-color';
|
|
77
77
|
};
|
|
78
|
-
export
|
|
78
|
+
export type FocusedEvent = NamedEvent & {
|
|
79
79
|
type: 'focused';
|
|
80
80
|
};
|
|
81
|
-
export
|
|
81
|
+
export type ChildContentBlockedEvent = NamedEvent & {
|
|
82
82
|
type: 'child-content-blocked';
|
|
83
83
|
};
|
|
84
|
-
export
|
|
84
|
+
export type ChildContentOpenedInBrowserEvent = NamedEvent & {
|
|
85
85
|
type: 'child-content-opened-in-browser';
|
|
86
86
|
};
|
|
87
|
-
export
|
|
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
|
|
94
|
-
export
|
|
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 {};
|