@openfin/core 33.76.36 → 33.77.1
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 +1 -1
- package/README.md +29 -4
- package/fin.d.ts +2 -2
- package/{src → out}/GlobalOpenFin.d.ts +1 -1
- package/out/mock-alpha.d.ts +16112 -0
- package/out/mock-beta.d.ts +16112 -0
- package/out/mock-public.d.ts +16112 -0
- package/out/mock.d.ts +16797 -0
- package/out/mock.js +17111 -0
- package/package.json +30 -23
- package/LICENSE +0 -13
- package/NOTICE +0 -16
- package/openfin-core-33.76.36.tgz +0 -0
- package/src/OpenFin.d.ts +0 -3091
- package/src/OpenFin.js +0 -2
- package/src/api/api-exposer/api-consumer.d.ts +0 -28
- package/src/api/api-exposer/api-consumer.js +0 -28
- package/src/api/api-exposer/api-exposer.d.ts +0 -35
- package/src/api/api-exposer/api-exposer.js +0 -38
- package/src/api/api-exposer/decorators.d.ts +0 -10
- package/src/api/api-exposer/decorators.js +0 -18
- package/src/api/api-exposer/index.d.ts +0 -4
- package/src/api/api-exposer/index.js +0 -20
- package/src/api/api-exposer/strategies/index.d.ts +0 -1
- package/src/api/api-exposer/strategies/index.js +0 -17
- package/src/api/api-exposer/strategies/openfin-channels/channels-consumer.d.ts +0 -14
- package/src/api/api-exposer/strategies/openfin-channels/channels-consumer.js +0 -20
- package/src/api/api-exposer/strategies/openfin-channels/channels-exposer.d.ts +0 -20
- package/src/api/api-exposer/strategies/openfin-channels/channels-exposer.js +0 -23
- package/src/api/api-exposer/strategies/openfin-channels/index.d.ts +0 -2
- package/src/api/api-exposer/strategies/openfin-channels/index.js +0 -18
- package/src/api/application/Factory.d.ts +0 -196
- package/src/api/application/Factory.js +0 -278
- package/src/api/application/Instance.d.ts +0 -692
- package/src/api/application/Instance.js +0 -821
- package/src/api/application/index.d.ts +0 -12
- package/src/api/application/index.js +0 -28
- package/src/api/base.d.ts +0 -117
- package/src/api/base.js +0 -246
- package/src/api/clipboard/index.d.ts +0 -172
- package/src/api/clipboard/index.js +0 -200
- package/src/api/events/application.d.ts +0 -158
- package/src/api/events/application.js +0 -14
- package/src/api/events/base.d.ts +0 -42
- package/src/api/events/base.js +0 -2
- package/src/api/events/channel.d.ts +0 -35
- package/src/api/events/channel.js +0 -7
- package/src/api/events/emitterMap.d.ts +0 -11
- package/src/api/events/emitterMap.js +0 -35
- package/src/api/events/eventAggregator.d.ts +0 -5
- package/src/api/events/eventAggregator.js +0 -35
- package/src/api/events/externalApplication.d.ts +0 -24
- package/src/api/events/externalApplication.js +0 -7
- package/src/api/events/frame.d.ts +0 -35
- package/src/api/events/frame.js +0 -2
- package/src/api/events/globalHotkey.d.ts +0 -25
- package/src/api/events/globalHotkey.js +0 -2
- package/src/api/events/platform.d.ts +0 -34
- package/src/api/events/platform.js +0 -10
- package/src/api/events/system.d.ts +0 -126
- package/src/api/events/system.js +0 -15
- package/src/api/events/typedEventEmitter.d.ts +0 -20
- package/src/api/events/typedEventEmitter.js +0 -2
- package/src/api/events/view.d.ts +0 -92
- package/src/api/events/view.js +0 -12
- package/src/api/events/webcontents.d.ts +0 -277
- package/src/api/events/webcontents.js +0 -13
- package/src/api/events/window.d.ts +0 -421
- package/src/api/events/window.js +0 -12
- package/src/api/external-application/Factory.d.ts +0 -34
- package/src/api/external-application/Factory.js +0 -47
- package/src/api/external-application/Instance.d.ts +0 -110
- package/src/api/external-application/Instance.js +0 -117
- package/src/api/external-application/index.d.ts +0 -12
- package/src/api/external-application/index.js +0 -28
- package/src/api/fin.d.ts +0 -54
- package/src/api/fin.js +0 -45
- package/src/api/frame/Factory.d.ts +0 -54
- package/src/api/frame/Factory.js +0 -86
- package/src/api/frame/Instance.d.ts +0 -136
- package/src/api/frame/Instance.js +0 -143
- package/src/api/frame/index.d.ts +0 -14
- package/src/api/frame/index.js +0 -30
- package/src/api/global-hotkey/index.d.ts +0 -106
- package/src/api/global-hotkey/index.js +0 -132
- package/src/api/interappbus/channel/channel.d.ts +0 -285
- package/src/api/interappbus/channel/channel.js +0 -334
- package/src/api/interappbus/channel/channels-docs.d.ts +0 -342
- package/src/api/interappbus/channel/channels-docs.js +0 -401
- package/src/api/interappbus/channel/client.d.ts +0 -117
- package/src/api/interappbus/channel/client.js +0 -181
- package/src/api/interappbus/channel/connection-manager.d.ts +0 -29
- package/src/api/interappbus/channel/connection-manager.js +0 -246
- package/src/api/interappbus/channel/index.d.ts +0 -189
- package/src/api/interappbus/channel/index.js +0 -333
- package/src/api/interappbus/channel/protocols/classic/message-receiver.d.ts +0 -13
- package/src/api/interappbus/channel/protocols/classic/message-receiver.js +0 -73
- package/src/api/interappbus/channel/protocols/classic/strategy.d.ts +0 -24
- package/src/api/interappbus/channel/protocols/classic/strategy.js +0 -101
- package/src/api/interappbus/channel/protocols/combined/strategy.d.ts +0 -20
- package/src/api/interappbus/channel/protocols/combined/strategy.js +0 -58
- package/src/api/interappbus/channel/protocols/index.d.ts +0 -47
- package/src/api/interappbus/channel/protocols/index.js +0 -2
- package/src/api/interappbus/channel/protocols/protocol-manager.d.ts +0 -10
- package/src/api/interappbus/channel/protocols/protocol-manager.js +0 -43
- package/src/api/interappbus/channel/protocols/rtc/endpoint.d.ts +0 -25
- package/src/api/interappbus/channel/protocols/rtc/endpoint.js +0 -141
- package/src/api/interappbus/channel/protocols/rtc/ice-manager.d.ts +0 -30
- package/src/api/interappbus/channel/protocols/rtc/ice-manager.js +0 -130
- package/src/api/interappbus/channel/protocols/rtc/strategy.d.ts +0 -24
- package/src/api/interappbus/channel/protocols/rtc/strategy.js +0 -85
- package/src/api/interappbus/channel/protocols/strategy-types.d.ts +0 -13
- package/src/api/interappbus/channel/protocols/strategy-types.js +0 -2
- package/src/api/interappbus/channel/protocols/strategy.d.ts +0 -17
- package/src/api/interappbus/channel/protocols/strategy.js +0 -2
- package/src/api/interappbus/channel/provider.d.ts +0 -206
- package/src/api/interappbus/channel/provider.js +0 -338
- package/src/api/interappbus/index.d.ts +0 -120
- package/src/api/interappbus/index.js +0 -210
- package/src/api/interop/Factory.d.ts +0 -57
- package/src/api/interop/Factory.js +0 -96
- package/src/api/interop/InteropBroker.d.ts +0 -665
- package/src/api/interop/InteropBroker.js +0 -1313
- package/src/api/interop/InteropClient.d.ts +0 -502
- package/src/api/interop/InteropClient.js +0 -683
- package/src/api/interop/SessionContextGroupBroker.d.ts +0 -27
- package/src/api/interop/SessionContextGroupBroker.js +0 -108
- package/src/api/interop/SessionContextGroupClient.d.ts +0 -21
- package/src/api/interop/SessionContextGroupClient.js +0 -86
- package/src/api/interop/fdc3/PrivateChannelClient.d.ts +0 -20
- package/src/api/interop/fdc3/PrivateChannelClient.js +0 -90
- package/src/api/interop/fdc3/PrivateChannelProvider.d.ts +0 -55
- package/src/api/interop/fdc3/PrivateChannelProvider.js +0 -276
- package/src/api/interop/fdc3/documentationStub.d.ts +0 -14
- package/src/api/interop/fdc3/documentationStub.js +0 -17
- package/src/api/interop/fdc3/fdc3-1.2.d.ts +0 -205
- package/src/api/interop/fdc3/fdc3-1.2.js +0 -435
- package/src/api/interop/fdc3/fdc3-2.0.d.ts +0 -298
- package/src/api/interop/fdc3/fdc3-2.0.js +0 -479
- package/src/api/interop/fdc3/fdc3.d.ts +0 -12
- package/src/api/interop/fdc3/fdc3.js +0 -35
- package/src/api/interop/fdc3/overrideCheck.d.ts +0 -4
- package/src/api/interop/fdc3/overrideCheck.js +0 -32
- package/src/api/interop/fdc3/shapes/fdc3v1.d.ts +0 -53
- package/src/api/interop/fdc3/shapes/fdc3v1.js +0 -4
- package/src/api/interop/fdc3/shapes/fdc3v2.d.ts +0 -75
- package/src/api/interop/fdc3/shapes/fdc3v2.js +0 -2
- package/src/api/interop/fdc3/utils.d.ts +0 -45
- package/src/api/interop/fdc3/utils.js +0 -239
- package/src/api/interop/fdc3/versions.d.ts +0 -1
- package/src/api/interop/fdc3/versions.js +0 -2
- package/src/api/interop/index.d.ts +0 -12
- package/src/api/interop/index.js +0 -28
- package/src/api/interop/utils.d.ts +0 -18
- package/src/api/interop/utils.js +0 -61
- package/src/api/me.d.ts +0 -40
- package/src/api/me.js +0 -134
- package/src/api/platform/Factory.d.ts +0 -171
- package/src/api/platform/Factory.js +0 -240
- package/src/api/platform/Instance.d.ts +0 -653
- package/src/api/platform/Instance.js +0 -834
- package/src/api/platform/common-utils.d.ts +0 -7
- package/src/api/platform/common-utils.js +0 -16
- package/src/api/platform/index.d.ts +0 -12
- package/src/api/platform/index.js +0 -28
- package/src/api/platform/layout/Factory.d.ts +0 -91
- package/src/api/platform/layout/Factory.js +0 -151
- package/src/api/platform/layout/Instance.d.ts +0 -192
- package/src/api/platform/layout/Instance.js +0 -224
- package/src/api/platform/layout/controllers/layout-content-cache.d.ts +0 -9
- package/src/api/platform/layout/controllers/layout-content-cache.js +0 -54
- package/src/api/platform/layout/controllers/layout-entities-controller.d.ts +0 -119
- package/src/api/platform/layout/controllers/layout-entities-controller.js +0 -287
- package/src/api/platform/layout/entities/layout-entities.d.ts +0 -427
- package/src/api/platform/layout/entities/layout-entities.js +0 -504
- package/src/api/platform/layout/entities/shapes.d.ts +0 -6
- package/src/api/platform/layout/entities/shapes.js +0 -2
- package/src/api/platform/layout/index.d.ts +0 -11
- package/src/api/platform/layout/index.js +0 -27
- package/src/api/platform/layout/layout.constants.d.ts +0 -1
- package/src/api/platform/layout/layout.constants.js +0 -4
- package/src/api/platform/layout/shapes.d.ts +0 -16
- package/src/api/platform/layout/shapes.js +0 -2
- package/src/api/platform/layout/utils/layout-traversal.d.ts +0 -4
- package/src/api/platform/layout/utils/layout-traversal.js +0 -65
- package/src/api/platform/provider.d.ts +0 -510
- package/src/api/platform/provider.js +0 -2
- package/src/api/snapshot-source/Factory.d.ts +0 -53
- package/src/api/snapshot-source/Factory.js +0 -81
- package/src/api/snapshot-source/Instance.d.ts +0 -53
- package/src/api/snapshot-source/Instance.js +0 -154
- package/src/api/snapshot-source/index.d.ts +0 -12
- package/src/api/snapshot-source/index.js +0 -28
- package/src/api/snapshot-source/utils.d.ts +0 -2
- package/src/api/snapshot-source/utils.js +0 -6
- package/src/api/system/index.d.ts +0 -1468
- package/src/api/system/index.js +0 -1851
- package/src/api/view/Factory.d.ts +0 -88
- package/src/api/view/Factory.js +0 -141
- package/src/api/view/Instance.d.ts +0 -601
- package/src/api/view/Instance.js +0 -671
- package/src/api/view/index.d.ts +0 -12
- package/src/api/view/index.js +0 -28
- package/src/api/webcontents/main.d.ts +0 -922
- package/src/api/webcontents/main.js +0 -1046
- package/src/api/window/Factory.d.ts +0 -96
- package/src/api/window/Factory.js +0 -142
- package/src/api/window/Instance.d.ts +0 -1598
- package/src/api/window/Instance.js +0 -1851
- package/src/api/window/index.d.ts +0 -14
- package/src/api/window/index.js +0 -30
- package/src/browser.d.ts +0 -10
- package/src/browser.js +0 -36
- package/src/environment/browser.d.ts +0 -29
- package/src/environment/browser.js +0 -60
- package/src/environment/environment.d.ts +0 -33
- package/src/environment/environment.js +0 -4
- package/src/environment/mockEnvironment.d.ts +0 -27
- package/src/environment/mockEnvironment.js +0 -61
- package/src/environment/node-env.d.ts +0 -29
- package/src/environment/node-env.js +0 -72
- package/src/fdc3.d.ts +0 -3
- package/src/fdc3.js +0 -9
- package/src/mock.d.ts +0 -3
- package/src/mock.js +0 -18
- package/src/namespaces.d.ts +0 -22
- package/src/namespaces.js +0 -26
- package/src/shapes/ERROR_BOX_TYPES.d.ts +0 -1
- package/src/shapes/ERROR_BOX_TYPES.js +0 -2
- package/src/shapes/WebOptions.d.ts +0 -13
- package/src/shapes/WebOptions.js +0 -2
- package/src/shapes/WindowOptions.d.ts +0 -43
- package/src/shapes/WindowOptions.js +0 -2
- package/src/shapes/protocol.d.ts +0 -204
- package/src/shapes/protocol.js +0 -2
- package/src/transport/mockWire.d.ts +0 -11
- package/src/transport/mockWire.js +0 -26
- package/src/transport/transport-errors.d.ts +0 -31
- package/src/transport/transport-errors.js +0 -79
- package/src/transport/transport.d.ts +0 -73
- package/src/transport/transport.js +0 -219
- package/src/transport/wire.d.ts +0 -77
- package/src/transport/wire.js +0 -36
- package/src/util/asyncFilter.d.ts +0 -1
- package/src/util/asyncFilter.js +0 -7
- package/src/util/channel-api-relay.d.ts +0 -13
- package/src/util/channel-api-relay.js +0 -47
- package/src/util/errors.d.ts +0 -10
- package/src/util/errors.js +0 -12
- package/src/util/exhaustive.d.ts +0 -1
- package/src/util/exhaustive.js +0 -7
- package/src/util/http.d.ts +0 -11
- package/src/util/http.js +0 -90
- package/src/util/inaccessibleObject.d.ts +0 -2
- package/src/util/inaccessibleObject.js +0 -49
- package/src/util/lazy.d.ts +0 -34
- package/src/util/lazy.js +0 -54
- package/src/util/normalize-config.d.ts +0 -3
- package/src/util/normalize-config.js +0 -52
- package/src/util/promises.d.ts +0 -5
- package/src/util/promises.js +0 -27
- package/src/util/ref-counter.d.ts +0 -7
- package/src/util/ref-counter.js +0 -52
- package/src/util/reversible-map.d.ts +0 -11
- package/src/util/reversible-map.js +0 -49
- package/src/util/runtimeVersioning.d.ts +0 -3
- package/src/util/runtimeVersioning.js +0 -25
- package/src/util/utilTypes.d.ts +0 -8
- package/src/util/utilTypes.js +0 -2
- package/src/util/validate.d.ts +0 -3
- package/src/util/validate.js +0 -11
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const base_1 = require("../base");
|
|
4
|
-
/**
|
|
5
|
-
* @PORTED
|
|
6
|
-
* WriteRequestType interface
|
|
7
|
-
* @typedef { object } WriteRequestType
|
|
8
|
-
* @property { string } data Data to be written
|
|
9
|
-
* @property { string } [type] Clipboard Type
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* @PORTED
|
|
13
|
-
* OpenFin.WriteAnyClipboardRequest interface
|
|
14
|
-
* @typedef { object } OpenFin.WriteAnyClipboardRequest
|
|
15
|
-
* @property { string } data Data to be written
|
|
16
|
-
* @property { OpenFin.ClipboardSelectionType } [type] Clipboard Type defaults to 'clipboard', use 'selection' for linux
|
|
17
|
-
*/
|
|
18
|
-
/**
|
|
19
|
-
* The Clipboard API allows reading and writing to the clipboard in multiple formats.
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
class Clipboard extends base_1.Base {
|
|
23
|
-
/**
|
|
24
|
-
* Writes data into the clipboard as plain text
|
|
25
|
-
* @param writeObj The object for writing data into the clipboard
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```js
|
|
29
|
-
* fin.Clipboard.writeText({
|
|
30
|
-
* data: 'hello, world'
|
|
31
|
-
* }).then(() => console.log('Text On clipboard')).catch(err => console.log(err));
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
async writeText(writeObj) {
|
|
35
|
-
await this.wire.sendAction('clipboard-write-text', writeObj);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Read the content of the clipboard as plain text
|
|
39
|
-
* @param type Clipboard Type defaults to 'clipboard', use 'selection' for linux
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```js
|
|
43
|
-
* fin.Clipboard.readText().then(text => console.log(text)).catch(err => console.log(err));
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
async readText(type) {
|
|
47
|
-
// NOTE: When we start supporting linux, we could detect the OS and choose 'selection' automatically for the user
|
|
48
|
-
const { payload } = await this.wire.sendAction('clipboard-read-text', { type });
|
|
49
|
-
return payload.data;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Writes data into the clipboard as an Image
|
|
53
|
-
* @param writeRequest The object to write an image to the clipboard
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```js
|
|
57
|
-
* fin.Clipboard.writeImage({
|
|
58
|
-
* // raw base64 string, or dataURL of either data:image/png or data:image/jpeg type
|
|
59
|
-
* image: '...'
|
|
60
|
-
* }).then(() => console.log('Image written to clipboard')).catch(err => console.log(err));
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
async writeImage(writeRequest) {
|
|
64
|
-
await this.wire.sendAction('clipboard-write-image', writeRequest);
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Read the content of the clipboard as a base64 string or a dataURL based on the input parameter 'format', defaults to 'dataURL'
|
|
68
|
-
* @param readRequest Clipboard Read Image request with formatting options
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```js
|
|
72
|
-
* // see TS type: OpenFin.ImageFormatOptions
|
|
73
|
-
*
|
|
74
|
-
* const pngOrDataURLOrBmpOptions = {
|
|
75
|
-
* format: 'png', // can be: 'png' | 'dataURL' | 'bmp'
|
|
76
|
-
* };
|
|
77
|
-
*
|
|
78
|
-
* const jpgOptions = {
|
|
79
|
-
* format: 'jpg',
|
|
80
|
-
* quality: 80 // optional, if omitted defaults to 100
|
|
81
|
-
* };
|
|
82
|
-
*
|
|
83
|
-
* fin.Clipboard.readImage(pngOrDataURLOrBmpOptions)
|
|
84
|
-
* .then(image => console.log('Image read from clipboard as PNG, DataURL or BMP', image))
|
|
85
|
-
* .catch(err => console.log(err));
|
|
86
|
-
*
|
|
87
|
-
* fin.Clipboard.readImage(jpgOptions)
|
|
88
|
-
* .then(image => console.log('Image read from clipboard as JPG', image))
|
|
89
|
-
* .catch(err => console.log(err));
|
|
90
|
-
*
|
|
91
|
-
* // defaults to {format: 'dataURL'}
|
|
92
|
-
* fin.Clipboard.readImage()
|
|
93
|
-
* .then(image => console.log('Image read from clipboard as DataURL', image))
|
|
94
|
-
* .catch(err => console.log(err));
|
|
95
|
-
*
|
|
96
|
-
* ```
|
|
97
|
-
*/
|
|
98
|
-
async readImage(readRequest = { format: 'dataURL' }) {
|
|
99
|
-
const { payload } = await this.wire.sendAction('clipboard-read-image', readRequest);
|
|
100
|
-
return payload.data;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Writes data into the clipboard as Html
|
|
104
|
-
* @param writeObj The object for writing data into the clipboard
|
|
105
|
-
*
|
|
106
|
-
* @example
|
|
107
|
-
* ```js
|
|
108
|
-
* fin.Clipboard.writeHtml({
|
|
109
|
-
* data: '<h1>Hello, World!</h1>'
|
|
110
|
-
* }).then(() => console.log('HTML On clipboard')).catch(err => console.log(err));
|
|
111
|
-
* ```
|
|
112
|
-
*/
|
|
113
|
-
async writeHtml(writeObj) {
|
|
114
|
-
await this.wire.sendAction('clipboard-write-html', writeObj);
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Read the content of the clipboard as Html
|
|
118
|
-
* @param type Clipboard Type defaults to 'clipboard', use 'selection' for linux
|
|
119
|
-
*
|
|
120
|
-
* @example
|
|
121
|
-
* ```js
|
|
122
|
-
* fin.Clipboard.readHtml().then(html => console.log(html)).catch(err => console.log(err));
|
|
123
|
-
* ```
|
|
124
|
-
*/
|
|
125
|
-
async readHtml(type) {
|
|
126
|
-
const { payload } = await this.wire.sendAction('clipboard-read-html', { type });
|
|
127
|
-
return payload.data;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Writes data into the clipboard as Rtf
|
|
131
|
-
* @param writeObj The object for writing data into the clipboard
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* ```js
|
|
135
|
-
* fin.Clipboard.writeRtf({
|
|
136
|
-
* data: 'some text goes here'
|
|
137
|
-
* }).then(() => console.log('RTF On clipboard')).catch(err => console.log(err));
|
|
138
|
-
* ```
|
|
139
|
-
*/
|
|
140
|
-
async writeRtf(writeObj) {
|
|
141
|
-
await this.wire.sendAction('clipboard-write-rtf', writeObj);
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Read the content of the clipboard as Rtf
|
|
145
|
-
* @param type Clipboard Type defaults to 'clipboard', use 'selection' for linux
|
|
146
|
-
*
|
|
147
|
-
* @example
|
|
148
|
-
*
|
|
149
|
-
* ```js
|
|
150
|
-
* const writeObj = {
|
|
151
|
-
* data: 'some text goes here'
|
|
152
|
-
* };
|
|
153
|
-
* async function readRtf() {
|
|
154
|
-
* await fin.Clipboard.writeRtf(writeObj);
|
|
155
|
-
* return await fin.Clipboard.readRtf();
|
|
156
|
-
* }
|
|
157
|
-
* readRtf().then(rtf => console.log(rtf)).catch(err => console.log(err));
|
|
158
|
-
* ```
|
|
159
|
-
*/
|
|
160
|
-
async readRtf(type) {
|
|
161
|
-
const { payload } = await this.wire.sendAction('clipboard-read-rtf', { type });
|
|
162
|
-
return payload.data;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Writes data into the clipboard
|
|
166
|
-
* @param writeObj The object for writing data into the clipboard
|
|
167
|
-
*
|
|
168
|
-
* @example
|
|
169
|
-
* ```js
|
|
170
|
-
* fin.Clipboard.write({
|
|
171
|
-
* data: {
|
|
172
|
-
* text: 'a',
|
|
173
|
-
* html: 'b',
|
|
174
|
-
* rtf: 'c',
|
|
175
|
-
* // Can be either a base64 string, or a DataURL string. If using DataURL, the
|
|
176
|
-
* // supported formats are `data:image/png[;base64],` and `data:image/jpeg[;base64],`.
|
|
177
|
-
* // Using other image/<format> DataURLs will throw an Error.
|
|
178
|
-
* image: '...'
|
|
179
|
-
* }
|
|
180
|
-
* }).then(() => console.log('write data into clipboard')).catch(err => console.log(err));
|
|
181
|
-
* ```
|
|
182
|
-
*/
|
|
183
|
-
async write(writeObj) {
|
|
184
|
-
await this.wire.sendAction('clipboard-write', writeObj);
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Reads available formats for the clipboard type
|
|
188
|
-
* @param type Clipboard Type defaults to 'clipboard', use 'selection' for linux
|
|
189
|
-
*
|
|
190
|
-
* @example
|
|
191
|
-
* ```js
|
|
192
|
-
* fin.Clipboard.getAvailableFormats().then(formats => console.log(formats)).catch(err => console.log(err));
|
|
193
|
-
* ```
|
|
194
|
-
*/
|
|
195
|
-
async getAvailableFormats(type) {
|
|
196
|
-
const { payload } = await this.wire.sendAction('clipboard-read-formats', { type });
|
|
197
|
-
return payload.data;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
exports.default = Clipboard;
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Namespace for events that can be transmitted on an OpenFin Application's EventEmitter. Includes events
|
|
3
|
-
* re-propagate from the `Window` (and, transitively, `View`) level, prefixed with `window-` (and also, if applicable, `view-`).
|
|
4
|
-
* For example, a view's "shown" event will fire as 'window-view-shown' at the application level.
|
|
5
|
-
*
|
|
6
|
-
* Application events re-propagate to the system level, prefixed with `application-`. For example,
|
|
7
|
-
* the `closed` event will fire as `application-closed` at the system level. Propagated events from
|
|
8
|
-
* WebContents within an application will *not* transitively re-propagate to the system level, because they are already
|
|
9
|
-
* visible at the system level and contain the identity of the application.
|
|
10
|
-
*
|
|
11
|
-
* @packageDocumentation
|
|
12
|
-
*/
|
|
13
|
-
import type * as OpenFin from '../../OpenFin';
|
|
14
|
-
import { IdentityEvent, NamedEvent, PropagatedEvent } from './base';
|
|
15
|
-
import { PropagatedWindowEvent } from './window';
|
|
16
|
-
import { PropagatedViewEvent } from './view';
|
|
17
|
-
/**
|
|
18
|
-
* Generated when an application has crashed.
|
|
19
|
-
*/
|
|
20
|
-
export type CrashedEvent = NamedEvent & {
|
|
21
|
-
type: 'crashed';
|
|
22
|
-
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
|
|
23
|
-
exitCode: number;
|
|
24
|
-
details: {
|
|
25
|
-
reason: string;
|
|
26
|
-
exitCode: number;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Generated when setFileDownloadLocation api is called.
|
|
31
|
-
* @remarks This event will not include the file download location itself. In order to get the new file download location, the user will have to access the secured query API 'getFileDownloadLocation'.
|
|
32
|
-
*/
|
|
33
|
-
export type FileDownloadLocationChangedEvent = NamedEvent & {
|
|
34
|
-
type: 'file-download-location-changed';
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Generated when Application.run() is called for an already running application.
|
|
38
|
-
*/
|
|
39
|
-
export type RunRequestedEvent = IdentityEvent & {
|
|
40
|
-
type: 'run-requested';
|
|
41
|
-
userAppConfigArgs: Record<string, any>;
|
|
42
|
-
manifest: OpenFin.ManifestInfo;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Generated when the tray icon is clicked.
|
|
46
|
-
*/
|
|
47
|
-
export type TrayIconClickedEvent = IdentityEvent & {
|
|
48
|
-
type: 'tray-icon-clicked';
|
|
49
|
-
button: 0 | 1 | 2;
|
|
50
|
-
bounds: OpenFin.Rectangle;
|
|
51
|
-
x: number;
|
|
52
|
-
y: number;
|
|
53
|
-
monitorInfo: any;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Generated when an alert is fired and suppressed due to the customWindowAlert flag being true.
|
|
57
|
-
*/
|
|
58
|
-
export type WindowAlertRequestedEvent = NamedEvent & {
|
|
59
|
-
type: 'window-alert-requested';
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Generated when a child window is created.
|
|
63
|
-
*/
|
|
64
|
-
export type WindowCreatedEvent = NamedEvent & {
|
|
65
|
-
type: 'window-created';
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* Generated when a child window ends loading.
|
|
69
|
-
*/
|
|
70
|
-
export type WindowEndLoadEvent = NamedEvent & {
|
|
71
|
-
type: 'window-end-load';
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Generated when a child window is not responding.
|
|
75
|
-
*/
|
|
76
|
-
export type WindowNotRespondingEvent = NamedEvent & {
|
|
77
|
-
type: 'window-not-responding';
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Generated when a child window is responding.
|
|
81
|
-
*/
|
|
82
|
-
export type WindowRespondingEvent = NamedEvent & {
|
|
83
|
-
type: 'window-responding';
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Generated when a child window starts loading.
|
|
87
|
-
*/
|
|
88
|
-
export type WindowStartLoadEvent = NamedEvent & {
|
|
89
|
-
type: 'window-start-load';
|
|
90
|
-
};
|
|
91
|
-
/**
|
|
92
|
-
* A Window event that is natively published at the Application level (not Window).
|
|
93
|
-
*/
|
|
94
|
-
export type ApplicationWindowEvent = WindowAlertRequestedEvent | WindowCreatedEvent | WindowEndLoadEvent | WindowNotRespondingEvent | WindowRespondingEvent | WindowStartLoadEvent;
|
|
95
|
-
/**
|
|
96
|
-
* Generated when an application is closed.
|
|
97
|
-
*/
|
|
98
|
-
export type ClosedEvent = IdentityEvent & {
|
|
99
|
-
type: 'closed';
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* Generated when an application has authenticated and is connected.
|
|
103
|
-
*/
|
|
104
|
-
export type ApplicationConnectedEvent = IdentityEvent & {
|
|
105
|
-
type: 'connected';
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* Generated when an application has initialized.
|
|
109
|
-
*/
|
|
110
|
-
export type InitializedEvent = IdentityEvent & {
|
|
111
|
-
type: 'initialized';
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* Generated when the RVM notifies an application that the manifest has changed.
|
|
115
|
-
*/
|
|
116
|
-
export type ManifestChangedEvent = IdentityEvent & {
|
|
117
|
-
type: 'manifest-changed';
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* Generated when an application is not responding.
|
|
121
|
-
*/
|
|
122
|
-
export type NotRespondingEvent = IdentityEvent & {
|
|
123
|
-
type: 'not-responding';
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* Generated when an application is responding.
|
|
127
|
-
*/
|
|
128
|
-
export type RespondingEvent = IdentityEvent & {
|
|
129
|
-
type: 'responding';
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* Generated when an application has started.
|
|
133
|
-
*/
|
|
134
|
-
export type StartedEvent = IdentityEvent & {
|
|
135
|
-
type: 'started';
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* An Application event that does propagate to (republish on) parent topics.
|
|
139
|
-
*/
|
|
140
|
-
export type WillPropagateApplicationEvent = ClosedEvent | ApplicationConnectedEvent | CrashedEvent | InitializedEvent | ManifestChangedEvent | NotRespondingEvent | RespondingEvent | RunRequestedEvent | StartedEvent | TrayIconClickedEvent | FileDownloadLocationChangedEvent;
|
|
141
|
-
/**
|
|
142
|
-
* An Application event.
|
|
143
|
-
*/
|
|
144
|
-
export type ApplicationEvent = {
|
|
145
|
-
topic: 'application';
|
|
146
|
-
} & (PropagatedViewEvent | PropagatedWindowEvent | ApplicationWindowEvent | WillPropagateApplicationEvent);
|
|
147
|
-
/**
|
|
148
|
-
* An Application event type.
|
|
149
|
-
*/
|
|
150
|
-
export type ApplicationEventType = ApplicationEvent['type'];
|
|
151
|
-
/**
|
|
152
|
-
* A propagated Application event.
|
|
153
|
-
*/
|
|
154
|
-
export type PropagatedApplicationEvent = PropagatedEvent<'application', WillPropagateApplicationEvent> | ApplicationWindowEvent;
|
|
155
|
-
/**
|
|
156
|
-
* A propagated Application event type.
|
|
157
|
-
*/
|
|
158
|
-
export type PropagatedApplicationEventType = PropagatedApplicationEvent['type'];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Namespace for events that can be transmitted on an OpenFin Application's EventEmitter. Includes events
|
|
4
|
-
* re-propagate from the `Window` (and, transitively, `View`) level, prefixed with `window-` (and also, if applicable, `view-`).
|
|
5
|
-
* For example, a view's "shown" event will fire as 'window-view-shown' at the application level.
|
|
6
|
-
*
|
|
7
|
-
* Application events re-propagate to the system level, prefixed with `application-`. For example,
|
|
8
|
-
* the `closed` event will fire as `application-closed` at the system level. Propagated events from
|
|
9
|
-
* WebContents within an application will *not* transitively re-propagate to the system level, because they are already
|
|
10
|
-
* visible at the system level and contain the identity of the application.
|
|
11
|
-
*
|
|
12
|
-
* @packageDocumentation
|
|
13
|
-
*/
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
package/src/api/events/base.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Modifies an event key to reflect propagation by prefixing with the topic.
|
|
3
|
-
*/
|
|
4
|
-
export type PropagatedEventType<Topic extends string, Type extends string> = `${Topic}-${Type}`;
|
|
5
|
-
/**
|
|
6
|
-
* Modifies an event shape to reflect propagation to a parent topic.
|
|
7
|
-
* @remarks The 'type' field is prefixed with the original topic, and a new property is added with the original topic's identity.
|
|
8
|
-
*/
|
|
9
|
-
export type PropagatedEvent<Topic extends string, Event extends {
|
|
10
|
-
type: string;
|
|
11
|
-
}> = Event extends infer E extends {
|
|
12
|
-
type: string;
|
|
13
|
-
} ? Omit<E, 'type'> & {
|
|
14
|
-
type: PropagatedEventType<Topic, E['type']>;
|
|
15
|
-
} : never;
|
|
16
|
-
/**
|
|
17
|
-
* Handler for an event on an EventEmitter.
|
|
18
|
-
* @remarks Selects the correct type for the event
|
|
19
|
-
* payload from the provided union based on the provided string literal type.
|
|
20
|
-
*/
|
|
21
|
-
export type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Extract<EmitterEvent, {
|
|
22
|
-
type: EventType;
|
|
23
|
-
}>, ...args: any[]) => void;
|
|
24
|
-
/**
|
|
25
|
-
* A base event.
|
|
26
|
-
*/
|
|
27
|
-
export type BaseEvent = {
|
|
28
|
-
topic: string;
|
|
29
|
-
type: string;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* An Identity event.
|
|
33
|
-
*/
|
|
34
|
-
export type IdentityEvent = BaseEvent & {
|
|
35
|
-
uuid: string;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* A Name event.
|
|
39
|
-
*/
|
|
40
|
-
export type NamedEvent = IdentityEvent & {
|
|
41
|
-
name: string;
|
|
42
|
-
};
|
package/src/api/events/base.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Namespace for events that can be transmitted on an OpenFin Channel's EventEmitter.
|
|
3
|
-
*
|
|
4
|
-
* @packageDocumentation
|
|
5
|
-
*/
|
|
6
|
-
import { NamedEvent } from './base';
|
|
7
|
-
/**
|
|
8
|
-
* A base Channel event.
|
|
9
|
-
*/
|
|
10
|
-
export type BaseChannelEvent = NamedEvent & {
|
|
11
|
-
channelName: string;
|
|
12
|
-
channelId: string;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Generated when a Channel client is connected.
|
|
16
|
-
*/
|
|
17
|
-
export type ChannelConnectedEvent = BaseChannelEvent & {
|
|
18
|
-
type: 'connected';
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Generated when a Channel client has disconnected.
|
|
22
|
-
*/
|
|
23
|
-
export type ChannelDisconnectedEvent = BaseChannelEvent & {
|
|
24
|
-
type: 'disconnected';
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* A Channel event.
|
|
28
|
-
*/
|
|
29
|
-
export type ChannelEvent = {
|
|
30
|
-
topic: 'channel';
|
|
31
|
-
} & (ChannelConnectedEvent | ChannelDisconnectedEvent);
|
|
32
|
-
/**
|
|
33
|
-
* A Channel event type.
|
|
34
|
-
*/
|
|
35
|
-
export type ChannelEventType = ChannelEvent['type'];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { EventEmitter } from 'events';
|
|
3
|
-
export declare class EmitterMap {
|
|
4
|
-
private storage;
|
|
5
|
-
constructor();
|
|
6
|
-
private hashKeys;
|
|
7
|
-
getOrCreate(keys: EmitterAccessor): EventEmitter;
|
|
8
|
-
has(keys: EmitterAccessor): boolean;
|
|
9
|
-
delete(keys: EmitterAccessor): boolean;
|
|
10
|
-
}
|
|
11
|
-
export type EmitterAccessor = string[];
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EmitterMap = void 0;
|
|
4
|
-
const events_1 = require("events");
|
|
5
|
-
class EmitterMap {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.storage = new Map();
|
|
8
|
-
}
|
|
9
|
-
// eslint-disable-next-line class-methods-use-this
|
|
10
|
-
hashKeys(keys) {
|
|
11
|
-
const hashed = keys.map(normalizeString);
|
|
12
|
-
return hashed.join('/');
|
|
13
|
-
}
|
|
14
|
-
getOrCreate(keys) {
|
|
15
|
-
const hash = this.hashKeys(keys);
|
|
16
|
-
if (!this.storage.has(hash)) {
|
|
17
|
-
this.storage.set(hash, new events_1.EventEmitter());
|
|
18
|
-
}
|
|
19
|
-
// We set it above
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
21
|
-
return this.storage.get(hash);
|
|
22
|
-
}
|
|
23
|
-
has(keys) {
|
|
24
|
-
return this.storage.has(this.hashKeys(keys));
|
|
25
|
-
}
|
|
26
|
-
delete(keys) {
|
|
27
|
-
const hash = this.hashKeys(keys);
|
|
28
|
-
return this.storage.delete(hash);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.EmitterMap = EmitterMap;
|
|
32
|
-
function normalizeString(s) {
|
|
33
|
-
const b = Buffer.from(s);
|
|
34
|
-
return b.toString('base64');
|
|
35
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const emitterMap_1 = require("./emitterMap");
|
|
4
|
-
function isEventMessage(message) {
|
|
5
|
-
return message.action === 'process-desktop-event';
|
|
6
|
-
}
|
|
7
|
-
function mapKeyFromEvent(event) {
|
|
8
|
-
const { topic } = event;
|
|
9
|
-
if (topic === 'frame' || topic === 'window' || topic === 'view') {
|
|
10
|
-
const { uuid, name } = event;
|
|
11
|
-
return [topic, uuid, name];
|
|
12
|
-
}
|
|
13
|
-
if (topic === 'application') {
|
|
14
|
-
const { uuid } = event;
|
|
15
|
-
return [topic, uuid];
|
|
16
|
-
}
|
|
17
|
-
return [topic];
|
|
18
|
-
}
|
|
19
|
-
class EventAggregator extends emitterMap_1.EmitterMap {
|
|
20
|
-
constructor() {
|
|
21
|
-
super(...arguments);
|
|
22
|
-
this.dispatchEvent = (message) => {
|
|
23
|
-
if (isEventMessage(message)) {
|
|
24
|
-
const { payload } = message;
|
|
25
|
-
const accessor = mapKeyFromEvent(payload);
|
|
26
|
-
if (this.has(accessor)) {
|
|
27
|
-
this.getOrCreate(accessor).emit(payload.type, payload);
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return false;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.default = EventAggregator;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Namespace for events that can be transmitted on an OpenFin ExternalApplication's EventEmitter.
|
|
3
|
-
*
|
|
4
|
-
* @packageDocumentation
|
|
5
|
-
*/
|
|
6
|
-
import { BaseEvent } from './base';
|
|
7
|
-
/**
|
|
8
|
-
* Generated when an external application has authenticated and is connected.
|
|
9
|
-
*/
|
|
10
|
-
export type ExternalApplicationConnectedEvent = BaseEvent & {
|
|
11
|
-
type: 'connected';
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Generated when an external application has disconnected.
|
|
15
|
-
*/
|
|
16
|
-
export type ExternalApplicationDisconnectedEvent = BaseEvent & {
|
|
17
|
-
type: 'disconnected';
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* An external application event.
|
|
21
|
-
*/
|
|
22
|
-
export type ExternalApplicationEvent = {
|
|
23
|
-
topic: 'externalapplication';
|
|
24
|
-
} & (ExternalApplicationConnectedEvent | ExternalApplicationDisconnectedEvent);
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Namespace for events that can be transmitted on an OpenFin Frame's EventEmitter.
|
|
3
|
-
*
|
|
4
|
-
* @packageDocumentation
|
|
5
|
-
*/
|
|
6
|
-
import { NamedEvent } from './base';
|
|
7
|
-
/**
|
|
8
|
-
* The base frame event.
|
|
9
|
-
*/
|
|
10
|
-
export type BaseFrameEvent = NamedEvent & {
|
|
11
|
-
entityType: 'iframe';
|
|
12
|
-
frameName: string;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Generated when a frame is connected.
|
|
16
|
-
*/
|
|
17
|
-
export type FrameConnectedEvent = BaseFrameEvent & {
|
|
18
|
-
type: 'connected';
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Generated when a frame has disconnected.
|
|
22
|
-
*/
|
|
23
|
-
export type FrameDisconnectedEvent = BaseFrameEvent & {
|
|
24
|
-
type: 'disconnected';
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* A Frame event.
|
|
28
|
-
*/
|
|
29
|
-
export type FrameEvent = {
|
|
30
|
-
topic: 'frame';
|
|
31
|
-
} & (FrameConnectedEvent | FrameDisconnectedEvent);
|
|
32
|
-
/**
|
|
33
|
-
* A Frame event type.
|
|
34
|
-
*/
|
|
35
|
-
export type FrameEventType = FrameEvent['type'];
|
package/src/api/events/frame.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Namespace for events that can be transmitted on an OpenFin GlobalHotkey's EventEmitter.
|
|
3
|
-
*
|
|
4
|
-
* @packageDocumentation
|
|
5
|
-
*/
|
|
6
|
-
import { BaseEvent } from './base';
|
|
7
|
-
/**
|
|
8
|
-
* Generated when a hotkey has been registered with the operating system.
|
|
9
|
-
*/
|
|
10
|
-
export type RegisteredEvent = BaseEvent & {
|
|
11
|
-
type: 'registered';
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Generated when a hotkey has been unregistered with the operating system.
|
|
15
|
-
*/
|
|
16
|
-
export type UnregisteredEvent = BaseEvent & {
|
|
17
|
-
type: 'unregistered';
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* A global hotkey event.
|
|
21
|
-
*/
|
|
22
|
-
export type GlobalHotkeyEvent = {
|
|
23
|
-
topic: 'global-hotkey';
|
|
24
|
-
hotkey: 'string';
|
|
25
|
-
} & (RegisteredEvent | UnregisteredEvent);
|