@openfin/node-adapter 33.76.36 → 33.76.38
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/out/node-adapter-alpha.d.ts +24 -87
- package/out/node-adapter-beta.d.ts +24 -87
- package/out/node-adapter-public.d.ts +24 -87
- package/out/node-adapter.d.ts +27 -9
- package/out/node-adapter.js +38 -44
- package/package.json +1 -1
@@ -6875,10 +6875,10 @@ declare type LogLevel = OpenFin.LogLevel;
|
|
6875
6875
|
/**
|
6876
6876
|
* Describes the minimum level (inclusive) above which logs will be written.
|
6877
6877
|
*
|
6878
|
-
* `verbose`: all logs written
|
6879
|
-
* `info`: info and above
|
6880
|
-
* `warning` warning and above
|
6881
|
-
* `error` and above
|
6878
|
+
* `verbose`: all logs written<br>
|
6879
|
+
* `info`: info and above<br>
|
6880
|
+
* `warning` warning and above<br>
|
6881
|
+
* `error` and above<br>
|
6882
6882
|
* `fatal`: fatal only, indicates a crash is imminent
|
6883
6883
|
*/
|
6884
6884
|
declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
@@ -7175,7 +7175,7 @@ declare type MutableViewOptions = {
|
|
7175
7175
|
api: Api;
|
7176
7176
|
/**
|
7177
7177
|
* Restrict navigation to URLs that match an allowed pattern.
|
7178
|
-
* In the lack of
|
7178
|
+
* In the lack of an allowlist, navigation to URLs that match a denylisted pattern would be prohibited.
|
7179
7179
|
* See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
|
7180
7180
|
*/
|
7181
7181
|
contentNavigation: ContentNavigation;
|
@@ -9341,7 +9341,7 @@ declare type PrintOptions = {
|
|
9341
9341
|
/**
|
9342
9342
|
* Strategy to assign views to process affinity by domain.
|
9343
9343
|
*
|
9344
|
-
* `same`: views in the same domain will have the same process affinity
|
9344
|
+
* `same`: views in the same domain will have the same process affinity.<br>
|
9345
9345
|
* `different`: views in the same domain will have different process affinities.
|
9346
9346
|
*/
|
9347
9347
|
declare type ProcessAffinityStrategy = 'same' | 'different';
|
@@ -11138,7 +11138,6 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
11138
11138
|
/**
|
11139
11139
|
* Monitors a running process. A pid for the process must be included in options.
|
11140
11140
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
11141
|
-
* @param options See tutorial for more details
|
11142
11141
|
*
|
11143
11142
|
* @remarks If an unused uuid is provided in options, it will be used. If no uuid is provided, OpefinFin will assign a uuid.
|
11144
11143
|
* @example
|
@@ -11315,7 +11314,7 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
11315
11314
|
downloadRuntime(options: OpenFin.RuntimeDownloadOptions, progressListener: (progress: OpenFin.RuntimeDownloadProgress) => void): Promise<void>;
|
11316
11315
|
/**
|
11317
11316
|
* Download preload scripts from given URLs
|
11318
|
-
* @param scripts - URLs of preload scripts.
|
11317
|
+
* @param scripts - URLs of preload scripts.
|
11319
11318
|
*
|
11320
11319
|
* @example
|
11321
11320
|
* ```js
|
@@ -11359,7 +11358,6 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
11359
11358
|
getAppAssetInfo(options: OpenFin.AppAssetRequest): Promise<OpenFin.AppAssetInfo>;
|
11360
11359
|
/**
|
11361
11360
|
* Get additional info of cookies.
|
11362
|
-
* @param options - See tutorial for more details.
|
11363
11361
|
*
|
11364
11362
|
* @example
|
11365
11363
|
* ```js
|
@@ -14109,6 +14107,22 @@ declare namespace WebContentsEvents {
|
|
14109
14107
|
}
|
14110
14108
|
}
|
14111
14109
|
|
14110
|
+
/**
|
14111
|
+
* Defines the type of requested web APIs permission.
|
14112
|
+
*
|
14113
|
+
* @remarks We only support those web APIs listed by electron.
|
14114
|
+
*
|
14115
|
+
* `audio`: Request access to audio devices.<br>
|
14116
|
+
* `video`: Request access to video devices.<br>
|
14117
|
+
* `geolocation`: Request access to user's current location.<br>
|
14118
|
+
* `notifications`: Request notification creation and the ability to display them in the user's system tray.<br>
|
14119
|
+
* `midiSysex`: Request the use of system exclusive messages in the webmidi API.<br>
|
14120
|
+
* `pointerLock`: Request to directly interpret mouse movements as an input method.<br>
|
14121
|
+
* `fullscreen`: Request for the app to enter fullscreen mode.<br>
|
14122
|
+
* `openExternal`: Request to open links in external applications.<br>
|
14123
|
+
* `clipboard-read`: Request access to read from the clipboard.<br>
|
14124
|
+
* `clipboard-sanitized-write`: Request access to write to the clipboard.
|
14125
|
+
*/
|
14112
14126
|
declare type WebPermission = 'audio' | 'video' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'clipboard-read' | 'clipboard-sanitized-write';
|
14113
14127
|
|
14114
14128
|
/**
|
@@ -14656,84 +14670,7 @@ declare type WillResizeEvent = WillMoveOrResizeEvent & {
|
|
14656
14670
|
declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
14657
14671
|
identity: OpenFin.Identity;
|
14658
14672
|
/* Excluded from this release type: __constructor */
|
14659
|
-
|
14660
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
14661
|
-
* @param eventType - The type of the event.
|
14662
|
-
* @param listener - Called whenever an event of the specified type occurs.
|
14663
|
-
* @param options - Option to support event timestamps.
|
14664
|
-
*
|
14665
|
-
* @function addListener
|
14666
|
-
* @memberof Window
|
14667
|
-
* @instance
|
14668
|
-
* @tutorial Window.EventEmitter
|
14669
|
-
*/
|
14670
|
-
/**
|
14671
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
14672
|
-
* @param eventType - The type of the event.
|
14673
|
-
* @param listener - Called whenever an event of the specified type occurs.
|
14674
|
-
* @param options - Option to support event timestamps.
|
14675
|
-
*
|
14676
|
-
* @function on
|
14677
|
-
* @memberof Window
|
14678
|
-
* @instance
|
14679
|
-
* @tutorial Window.EventEmitter
|
14680
|
-
*/
|
14681
|
-
/**
|
14682
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
14683
|
-
* @param eventType - The type of the event.
|
14684
|
-
* @param listener - The callback function.
|
14685
|
-
* @param options - Option to support event timestamps.
|
14686
|
-
*
|
14687
|
-
* @function once
|
14688
|
-
* @memberof Window
|
14689
|
-
* @instance
|
14690
|
-
* @tutorial Window.EventEmitter
|
14691
|
-
*/
|
14692
|
-
/**
|
14693
|
-
* Adds a listener to the beginning of the listeners array for the specified event.
|
14694
|
-
* @param eventType - The type of the event.
|
14695
|
-
* @param listener - The callback function.
|
14696
|
-
* @param options - Option to support event timestamps.
|
14697
|
-
*
|
14698
|
-
* @function prependListener
|
14699
|
-
* @memberof Window
|
14700
|
-
* @instance
|
14701
|
-
* @tutorial Window.EventEmitter
|
14702
|
-
*/
|
14703
|
-
/**
|
14704
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
14705
|
-
* The listener is added to the beginning of the listeners array.
|
14706
|
-
* @param eventType - The type of the event.
|
14707
|
-
* @param listener - The callback function.
|
14708
|
-
* @param options - Option to support event timestamps.
|
14709
|
-
*
|
14710
|
-
* @function prependOnceListener
|
14711
|
-
* @memberof Window
|
14712
|
-
* @instance
|
14713
|
-
* @tutorial Window.EventEmitter
|
14714
|
-
*/
|
14715
|
-
/**
|
14716
|
-
* Remove a listener from the listener array for the specified event.
|
14717
|
-
* Caution: Calling this method changes the array indices in the listener array behind the listener.
|
14718
|
-
* @param eventType - The type of the event.
|
14719
|
-
* @param listener - The callback function.
|
14720
|
-
* @param options - Option to support event timestamps.
|
14721
|
-
*
|
14722
|
-
* @function removeListener
|
14723
|
-
* @memberof Window
|
14724
|
-
* @instance
|
14725
|
-
* @tutorial Window.EventEmitter
|
14726
|
-
*/
|
14727
|
-
/**
|
14728
|
-
* Removes all listeners, or those of the specified event.
|
14729
|
-
* @param eventType - The type of the event.
|
14730
|
-
*
|
14731
|
-
* @function removeAllListeners
|
14732
|
-
* @memberof Window
|
14733
|
-
* @instance
|
14734
|
-
* @tutorial Window.EventEmitter
|
14735
|
-
*/
|
14736
|
-
createWindow(options: OpenFin.WindowCreationOptions): Promise<OpenFin.Window>;
|
14673
|
+
/* Excluded from this release type: createWindow */
|
14737
14674
|
/**
|
14738
14675
|
* Retrieves an array of frame info objects representing the main frame and any
|
14739
14676
|
* iframes that are currently on the page.
|
@@ -6875,10 +6875,10 @@ declare type LogLevel = OpenFin.LogLevel;
|
|
6875
6875
|
/**
|
6876
6876
|
* Describes the minimum level (inclusive) above which logs will be written.
|
6877
6877
|
*
|
6878
|
-
* `verbose`: all logs written
|
6879
|
-
* `info`: info and above
|
6880
|
-
* `warning` warning and above
|
6881
|
-
* `error` and above
|
6878
|
+
* `verbose`: all logs written<br>
|
6879
|
+
* `info`: info and above<br>
|
6880
|
+
* `warning` warning and above<br>
|
6881
|
+
* `error` and above<br>
|
6882
6882
|
* `fatal`: fatal only, indicates a crash is imminent
|
6883
6883
|
*/
|
6884
6884
|
declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
@@ -7175,7 +7175,7 @@ declare type MutableViewOptions = {
|
|
7175
7175
|
api: Api;
|
7176
7176
|
/**
|
7177
7177
|
* Restrict navigation to URLs that match an allowed pattern.
|
7178
|
-
* In the lack of
|
7178
|
+
* In the lack of an allowlist, navigation to URLs that match a denylisted pattern would be prohibited.
|
7179
7179
|
* See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
|
7180
7180
|
*/
|
7181
7181
|
contentNavigation: ContentNavigation;
|
@@ -9341,7 +9341,7 @@ declare type PrintOptions = {
|
|
9341
9341
|
/**
|
9342
9342
|
* Strategy to assign views to process affinity by domain.
|
9343
9343
|
*
|
9344
|
-
* `same`: views in the same domain will have the same process affinity
|
9344
|
+
* `same`: views in the same domain will have the same process affinity.<br>
|
9345
9345
|
* `different`: views in the same domain will have different process affinities.
|
9346
9346
|
*/
|
9347
9347
|
declare type ProcessAffinityStrategy = 'same' | 'different';
|
@@ -11138,7 +11138,6 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
11138
11138
|
/**
|
11139
11139
|
* Monitors a running process. A pid for the process must be included in options.
|
11140
11140
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
11141
|
-
* @param options See tutorial for more details
|
11142
11141
|
*
|
11143
11142
|
* @remarks If an unused uuid is provided in options, it will be used. If no uuid is provided, OpefinFin will assign a uuid.
|
11144
11143
|
* @example
|
@@ -11315,7 +11314,7 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
11315
11314
|
downloadRuntime(options: OpenFin.RuntimeDownloadOptions, progressListener: (progress: OpenFin.RuntimeDownloadProgress) => void): Promise<void>;
|
11316
11315
|
/**
|
11317
11316
|
* Download preload scripts from given URLs
|
11318
|
-
* @param scripts - URLs of preload scripts.
|
11317
|
+
* @param scripts - URLs of preload scripts.
|
11319
11318
|
*
|
11320
11319
|
* @example
|
11321
11320
|
* ```js
|
@@ -11359,7 +11358,6 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
11359
11358
|
getAppAssetInfo(options: OpenFin.AppAssetRequest): Promise<OpenFin.AppAssetInfo>;
|
11360
11359
|
/**
|
11361
11360
|
* Get additional info of cookies.
|
11362
|
-
* @param options - See tutorial for more details.
|
11363
11361
|
*
|
11364
11362
|
* @example
|
11365
11363
|
* ```js
|
@@ -14109,6 +14107,22 @@ declare namespace WebContentsEvents {
|
|
14109
14107
|
}
|
14110
14108
|
}
|
14111
14109
|
|
14110
|
+
/**
|
14111
|
+
* Defines the type of requested web APIs permission.
|
14112
|
+
*
|
14113
|
+
* @remarks We only support those web APIs listed by electron.
|
14114
|
+
*
|
14115
|
+
* `audio`: Request access to audio devices.<br>
|
14116
|
+
* `video`: Request access to video devices.<br>
|
14117
|
+
* `geolocation`: Request access to user's current location.<br>
|
14118
|
+
* `notifications`: Request notification creation and the ability to display them in the user's system tray.<br>
|
14119
|
+
* `midiSysex`: Request the use of system exclusive messages in the webmidi API.<br>
|
14120
|
+
* `pointerLock`: Request to directly interpret mouse movements as an input method.<br>
|
14121
|
+
* `fullscreen`: Request for the app to enter fullscreen mode.<br>
|
14122
|
+
* `openExternal`: Request to open links in external applications.<br>
|
14123
|
+
* `clipboard-read`: Request access to read from the clipboard.<br>
|
14124
|
+
* `clipboard-sanitized-write`: Request access to write to the clipboard.
|
14125
|
+
*/
|
14112
14126
|
declare type WebPermission = 'audio' | 'video' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'clipboard-read' | 'clipboard-sanitized-write';
|
14113
14127
|
|
14114
14128
|
/**
|
@@ -14656,84 +14670,7 @@ declare type WillResizeEvent = WillMoveOrResizeEvent & {
|
|
14656
14670
|
declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
14657
14671
|
identity: OpenFin.Identity;
|
14658
14672
|
/* Excluded from this release type: __constructor */
|
14659
|
-
|
14660
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
14661
|
-
* @param eventType - The type of the event.
|
14662
|
-
* @param listener - Called whenever an event of the specified type occurs.
|
14663
|
-
* @param options - Option to support event timestamps.
|
14664
|
-
*
|
14665
|
-
* @function addListener
|
14666
|
-
* @memberof Window
|
14667
|
-
* @instance
|
14668
|
-
* @tutorial Window.EventEmitter
|
14669
|
-
*/
|
14670
|
-
/**
|
14671
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
14672
|
-
* @param eventType - The type of the event.
|
14673
|
-
* @param listener - Called whenever an event of the specified type occurs.
|
14674
|
-
* @param options - Option to support event timestamps.
|
14675
|
-
*
|
14676
|
-
* @function on
|
14677
|
-
* @memberof Window
|
14678
|
-
* @instance
|
14679
|
-
* @tutorial Window.EventEmitter
|
14680
|
-
*/
|
14681
|
-
/**
|
14682
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
14683
|
-
* @param eventType - The type of the event.
|
14684
|
-
* @param listener - The callback function.
|
14685
|
-
* @param options - Option to support event timestamps.
|
14686
|
-
*
|
14687
|
-
* @function once
|
14688
|
-
* @memberof Window
|
14689
|
-
* @instance
|
14690
|
-
* @tutorial Window.EventEmitter
|
14691
|
-
*/
|
14692
|
-
/**
|
14693
|
-
* Adds a listener to the beginning of the listeners array for the specified event.
|
14694
|
-
* @param eventType - The type of the event.
|
14695
|
-
* @param listener - The callback function.
|
14696
|
-
* @param options - Option to support event timestamps.
|
14697
|
-
*
|
14698
|
-
* @function prependListener
|
14699
|
-
* @memberof Window
|
14700
|
-
* @instance
|
14701
|
-
* @tutorial Window.EventEmitter
|
14702
|
-
*/
|
14703
|
-
/**
|
14704
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
14705
|
-
* The listener is added to the beginning of the listeners array.
|
14706
|
-
* @param eventType - The type of the event.
|
14707
|
-
* @param listener - The callback function.
|
14708
|
-
* @param options - Option to support event timestamps.
|
14709
|
-
*
|
14710
|
-
* @function prependOnceListener
|
14711
|
-
* @memberof Window
|
14712
|
-
* @instance
|
14713
|
-
* @tutorial Window.EventEmitter
|
14714
|
-
*/
|
14715
|
-
/**
|
14716
|
-
* Remove a listener from the listener array for the specified event.
|
14717
|
-
* Caution: Calling this method changes the array indices in the listener array behind the listener.
|
14718
|
-
* @param eventType - The type of the event.
|
14719
|
-
* @param listener - The callback function.
|
14720
|
-
* @param options - Option to support event timestamps.
|
14721
|
-
*
|
14722
|
-
* @function removeListener
|
14723
|
-
* @memberof Window
|
14724
|
-
* @instance
|
14725
|
-
* @tutorial Window.EventEmitter
|
14726
|
-
*/
|
14727
|
-
/**
|
14728
|
-
* Removes all listeners, or those of the specified event.
|
14729
|
-
* @param eventType - The type of the event.
|
14730
|
-
*
|
14731
|
-
* @function removeAllListeners
|
14732
|
-
* @memberof Window
|
14733
|
-
* @instance
|
14734
|
-
* @tutorial Window.EventEmitter
|
14735
|
-
*/
|
14736
|
-
createWindow(options: OpenFin.WindowCreationOptions): Promise<OpenFin.Window>;
|
14673
|
+
/* Excluded from this release type: createWindow */
|
14737
14674
|
/**
|
14738
14675
|
* Retrieves an array of frame info objects representing the main frame and any
|
14739
14676
|
* iframes that are currently on the page.
|
@@ -6875,10 +6875,10 @@ declare type LogLevel = OpenFin.LogLevel;
|
|
6875
6875
|
/**
|
6876
6876
|
* Describes the minimum level (inclusive) above which logs will be written.
|
6877
6877
|
*
|
6878
|
-
* `verbose`: all logs written
|
6879
|
-
* `info`: info and above
|
6880
|
-
* `warning` warning and above
|
6881
|
-
* `error` and above
|
6878
|
+
* `verbose`: all logs written<br>
|
6879
|
+
* `info`: info and above<br>
|
6880
|
+
* `warning` warning and above<br>
|
6881
|
+
* `error` and above<br>
|
6882
6882
|
* `fatal`: fatal only, indicates a crash is imminent
|
6883
6883
|
*/
|
6884
6884
|
declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
@@ -7175,7 +7175,7 @@ declare type MutableViewOptions = {
|
|
7175
7175
|
api: Api;
|
7176
7176
|
/**
|
7177
7177
|
* Restrict navigation to URLs that match an allowed pattern.
|
7178
|
-
* In the lack of
|
7178
|
+
* In the lack of an allowlist, navigation to URLs that match a denylisted pattern would be prohibited.
|
7179
7179
|
* See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
|
7180
7180
|
*/
|
7181
7181
|
contentNavigation: ContentNavigation;
|
@@ -9341,7 +9341,7 @@ declare type PrintOptions = {
|
|
9341
9341
|
/**
|
9342
9342
|
* Strategy to assign views to process affinity by domain.
|
9343
9343
|
*
|
9344
|
-
* `same`: views in the same domain will have the same process affinity
|
9344
|
+
* `same`: views in the same domain will have the same process affinity.<br>
|
9345
9345
|
* `different`: views in the same domain will have different process affinities.
|
9346
9346
|
*/
|
9347
9347
|
declare type ProcessAffinityStrategy = 'same' | 'different';
|
@@ -11138,7 +11138,6 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
11138
11138
|
/**
|
11139
11139
|
* Monitors a running process. A pid for the process must be included in options.
|
11140
11140
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
11141
|
-
* @param options See tutorial for more details
|
11142
11141
|
*
|
11143
11142
|
* @remarks If an unused uuid is provided in options, it will be used. If no uuid is provided, OpefinFin will assign a uuid.
|
11144
11143
|
* @example
|
@@ -11315,7 +11314,7 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
11315
11314
|
downloadRuntime(options: OpenFin.RuntimeDownloadOptions, progressListener: (progress: OpenFin.RuntimeDownloadProgress) => void): Promise<void>;
|
11316
11315
|
/**
|
11317
11316
|
* Download preload scripts from given URLs
|
11318
|
-
* @param scripts - URLs of preload scripts.
|
11317
|
+
* @param scripts - URLs of preload scripts.
|
11319
11318
|
*
|
11320
11319
|
* @example
|
11321
11320
|
* ```js
|
@@ -11359,7 +11358,6 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
11359
11358
|
getAppAssetInfo(options: OpenFin.AppAssetRequest): Promise<OpenFin.AppAssetInfo>;
|
11360
11359
|
/**
|
11361
11360
|
* Get additional info of cookies.
|
11362
|
-
* @param options - See tutorial for more details.
|
11363
11361
|
*
|
11364
11362
|
* @example
|
11365
11363
|
* ```js
|
@@ -14109,6 +14107,22 @@ declare namespace WebContentsEvents {
|
|
14109
14107
|
}
|
14110
14108
|
}
|
14111
14109
|
|
14110
|
+
/**
|
14111
|
+
* Defines the type of requested web APIs permission.
|
14112
|
+
*
|
14113
|
+
* @remarks We only support those web APIs listed by electron.
|
14114
|
+
*
|
14115
|
+
* `audio`: Request access to audio devices.<br>
|
14116
|
+
* `video`: Request access to video devices.<br>
|
14117
|
+
* `geolocation`: Request access to user's current location.<br>
|
14118
|
+
* `notifications`: Request notification creation and the ability to display them in the user's system tray.<br>
|
14119
|
+
* `midiSysex`: Request the use of system exclusive messages in the webmidi API.<br>
|
14120
|
+
* `pointerLock`: Request to directly interpret mouse movements as an input method.<br>
|
14121
|
+
* `fullscreen`: Request for the app to enter fullscreen mode.<br>
|
14122
|
+
* `openExternal`: Request to open links in external applications.<br>
|
14123
|
+
* `clipboard-read`: Request access to read from the clipboard.<br>
|
14124
|
+
* `clipboard-sanitized-write`: Request access to write to the clipboard.
|
14125
|
+
*/
|
14112
14126
|
declare type WebPermission = 'audio' | 'video' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'clipboard-read' | 'clipboard-sanitized-write';
|
14113
14127
|
|
14114
14128
|
/**
|
@@ -14656,84 +14670,7 @@ declare type WillResizeEvent = WillMoveOrResizeEvent & {
|
|
14656
14670
|
declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
14657
14671
|
identity: OpenFin.Identity;
|
14658
14672
|
/* Excluded from this release type: __constructor */
|
14659
|
-
|
14660
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
14661
|
-
* @param eventType - The type of the event.
|
14662
|
-
* @param listener - Called whenever an event of the specified type occurs.
|
14663
|
-
* @param options - Option to support event timestamps.
|
14664
|
-
*
|
14665
|
-
* @function addListener
|
14666
|
-
* @memberof Window
|
14667
|
-
* @instance
|
14668
|
-
* @tutorial Window.EventEmitter
|
14669
|
-
*/
|
14670
|
-
/**
|
14671
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
14672
|
-
* @param eventType - The type of the event.
|
14673
|
-
* @param listener - Called whenever an event of the specified type occurs.
|
14674
|
-
* @param options - Option to support event timestamps.
|
14675
|
-
*
|
14676
|
-
* @function on
|
14677
|
-
* @memberof Window
|
14678
|
-
* @instance
|
14679
|
-
* @tutorial Window.EventEmitter
|
14680
|
-
*/
|
14681
|
-
/**
|
14682
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
14683
|
-
* @param eventType - The type of the event.
|
14684
|
-
* @param listener - The callback function.
|
14685
|
-
* @param options - Option to support event timestamps.
|
14686
|
-
*
|
14687
|
-
* @function once
|
14688
|
-
* @memberof Window
|
14689
|
-
* @instance
|
14690
|
-
* @tutorial Window.EventEmitter
|
14691
|
-
*/
|
14692
|
-
/**
|
14693
|
-
* Adds a listener to the beginning of the listeners array for the specified event.
|
14694
|
-
* @param eventType - The type of the event.
|
14695
|
-
* @param listener - The callback function.
|
14696
|
-
* @param options - Option to support event timestamps.
|
14697
|
-
*
|
14698
|
-
* @function prependListener
|
14699
|
-
* @memberof Window
|
14700
|
-
* @instance
|
14701
|
-
* @tutorial Window.EventEmitter
|
14702
|
-
*/
|
14703
|
-
/**
|
14704
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
14705
|
-
* The listener is added to the beginning of the listeners array.
|
14706
|
-
* @param eventType - The type of the event.
|
14707
|
-
* @param listener - The callback function.
|
14708
|
-
* @param options - Option to support event timestamps.
|
14709
|
-
*
|
14710
|
-
* @function prependOnceListener
|
14711
|
-
* @memberof Window
|
14712
|
-
* @instance
|
14713
|
-
* @tutorial Window.EventEmitter
|
14714
|
-
*/
|
14715
|
-
/**
|
14716
|
-
* Remove a listener from the listener array for the specified event.
|
14717
|
-
* Caution: Calling this method changes the array indices in the listener array behind the listener.
|
14718
|
-
* @param eventType - The type of the event.
|
14719
|
-
* @param listener - The callback function.
|
14720
|
-
* @param options - Option to support event timestamps.
|
14721
|
-
*
|
14722
|
-
* @function removeListener
|
14723
|
-
* @memberof Window
|
14724
|
-
* @instance
|
14725
|
-
* @tutorial Window.EventEmitter
|
14726
|
-
*/
|
14727
|
-
/**
|
14728
|
-
* Removes all listeners, or those of the specified event.
|
14729
|
-
* @param eventType - The type of the event.
|
14730
|
-
*
|
14731
|
-
* @function removeAllListeners
|
14732
|
-
* @memberof Window
|
14733
|
-
* @instance
|
14734
|
-
* @tutorial Window.EventEmitter
|
14735
|
-
*/
|
14736
|
-
createWindow(options: OpenFin.WindowCreationOptions): Promise<OpenFin.Window>;
|
14673
|
+
/* Excluded from this release type: createWindow */
|
14737
14674
|
/**
|
14738
14675
|
* Retrieves an array of frame info objects representing the main frame and any
|
14739
14676
|
* iframes that are currently on the page.
|
package/out/node-adapter.d.ts
CHANGED
@@ -7293,10 +7293,10 @@ declare type LogLevel = OpenFin.LogLevel;
|
|
7293
7293
|
/**
|
7294
7294
|
* Describes the minimum level (inclusive) above which logs will be written.
|
7295
7295
|
*
|
7296
|
-
* `verbose`: all logs written
|
7297
|
-
* `info`: info and above
|
7298
|
-
* `warning` warning and above
|
7299
|
-
* `error` and above
|
7296
|
+
* `verbose`: all logs written<br>
|
7297
|
+
* `info`: info and above<br>
|
7298
|
+
* `warning` warning and above<br>
|
7299
|
+
* `error` and above<br>
|
7300
7300
|
* `fatal`: fatal only, indicates a crash is imminent
|
7301
7301
|
*/
|
7302
7302
|
declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
@@ -7593,7 +7593,7 @@ declare type MutableViewOptions = {
|
|
7593
7593
|
api: Api;
|
7594
7594
|
/**
|
7595
7595
|
* Restrict navigation to URLs that match an allowed pattern.
|
7596
|
-
* In the lack of
|
7596
|
+
* In the lack of an allowlist, navigation to URLs that match a denylisted pattern would be prohibited.
|
7597
7597
|
* See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
|
7598
7598
|
*/
|
7599
7599
|
contentNavigation: ContentNavigation;
|
@@ -9839,7 +9839,7 @@ declare type PrintOptions = {
|
|
9839
9839
|
/**
|
9840
9840
|
* Strategy to assign views to process affinity by domain.
|
9841
9841
|
*
|
9842
|
-
* `same`: views in the same domain will have the same process affinity
|
9842
|
+
* `same`: views in the same domain will have the same process affinity.<br>
|
9843
9843
|
* `different`: views in the same domain will have different process affinities.
|
9844
9844
|
*/
|
9845
9845
|
declare type ProcessAffinityStrategy = 'same' | 'different';
|
@@ -11642,7 +11642,6 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
11642
11642
|
/**
|
11643
11643
|
* Monitors a running process. A pid for the process must be included in options.
|
11644
11644
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
11645
|
-
* @param options See tutorial for more details
|
11646
11645
|
*
|
11647
11646
|
* @remarks If an unused uuid is provided in options, it will be used. If no uuid is provided, OpefinFin will assign a uuid.
|
11648
11647
|
* @example
|
@@ -11819,7 +11818,7 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
11819
11818
|
downloadRuntime(options: OpenFin.RuntimeDownloadOptions, progressListener: (progress: OpenFin.RuntimeDownloadProgress) => void): Promise<void>;
|
11820
11819
|
/**
|
11821
11820
|
* Download preload scripts from given URLs
|
11822
|
-
* @param scripts - URLs of preload scripts.
|
11821
|
+
* @param scripts - URLs of preload scripts.
|
11823
11822
|
*
|
11824
11823
|
* @example
|
11825
11824
|
* ```js
|
@@ -11863,7 +11862,6 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
11863
11862
|
getAppAssetInfo(options: OpenFin.AppAssetRequest): Promise<OpenFin.AppAssetInfo>;
|
11864
11863
|
/**
|
11865
11864
|
* Get additional info of cookies.
|
11866
|
-
* @param options - See tutorial for more details.
|
11867
11865
|
*
|
11868
11866
|
* @example
|
11869
11867
|
* ```js
|
@@ -14707,6 +14705,22 @@ declare namespace WebContentsEvents {
|
|
14707
14705
|
}
|
14708
14706
|
}
|
14709
14707
|
|
14708
|
+
/**
|
14709
|
+
* Defines the type of requested web APIs permission.
|
14710
|
+
*
|
14711
|
+
* @remarks We only support those web APIs listed by electron.
|
14712
|
+
*
|
14713
|
+
* `audio`: Request access to audio devices.<br>
|
14714
|
+
* `video`: Request access to video devices.<br>
|
14715
|
+
* `geolocation`: Request access to user's current location.<br>
|
14716
|
+
* `notifications`: Request notification creation and the ability to display them in the user's system tray.<br>
|
14717
|
+
* `midiSysex`: Request the use of system exclusive messages in the webmidi API.<br>
|
14718
|
+
* `pointerLock`: Request to directly interpret mouse movements as an input method.<br>
|
14719
|
+
* `fullscreen`: Request for the app to enter fullscreen mode.<br>
|
14720
|
+
* `openExternal`: Request to open links in external applications.<br>
|
14721
|
+
* `clipboard-read`: Request access to read from the clipboard.<br>
|
14722
|
+
* `clipboard-sanitized-write`: Request access to write to the clipboard.
|
14723
|
+
*/
|
14710
14724
|
declare type WebPermission = 'audio' | 'video' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'clipboard-read' | 'clipboard-sanitized-write';
|
14711
14725
|
|
14712
14726
|
/**
|
@@ -15334,6 +15348,10 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
15334
15348
|
* @instance
|
15335
15349
|
* @tutorial Window.EventEmitter
|
15336
15350
|
*/
|
15351
|
+
/**
|
15352
|
+
* create a new window
|
15353
|
+
* @internal
|
15354
|
+
*/
|
15337
15355
|
createWindow(options: OpenFin.WindowCreationOptions): Promise<OpenFin.Window>;
|
15338
15356
|
/**
|
15339
15357
|
* Retrieves an array of frame info objects representing the main frame and any
|
package/out/node-adapter.js
CHANGED
@@ -5362,7 +5362,10 @@ function requireInstance () {
|
|
5362
5362
|
* @instance
|
5363
5363
|
* @tutorial Window.EventEmitter
|
5364
5364
|
*/
|
5365
|
-
|
5365
|
+
/**
|
5366
|
+
* create a new window
|
5367
|
+
* @internal
|
5368
|
+
*/
|
5366
5369
|
createWindow(options) {
|
5367
5370
|
this.wire.sendAction('window-create-window', this.identity).catch((e) => {
|
5368
5371
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
@@ -7743,7 +7746,6 @@ class System extends base_1$j.EmitterBase {
|
|
7743
7746
|
/**
|
7744
7747
|
* Monitors a running process. A pid for the process must be included in options.
|
7745
7748
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
7746
|
-
* @param options See tutorial for more details
|
7747
7749
|
*
|
7748
7750
|
* @remarks If an unused uuid is provided in options, it will be used. If no uuid is provided, OpefinFin will assign a uuid.
|
7749
7751
|
* @example
|
@@ -8039,7 +8041,7 @@ class System extends base_1$j.EmitterBase {
|
|
8039
8041
|
}
|
8040
8042
|
/**
|
8041
8043
|
* Download preload scripts from given URLs
|
8042
|
-
* @param scripts - URLs of preload scripts.
|
8044
|
+
* @param scripts - URLs of preload scripts.
|
8043
8045
|
*
|
8044
8046
|
* @example
|
8045
8047
|
* ```js
|
@@ -8089,7 +8091,6 @@ class System extends base_1$j.EmitterBase {
|
|
8089
8091
|
}
|
8090
8092
|
/**
|
8091
8093
|
* Get additional info of cookies.
|
8092
|
-
* @param options - See tutorial for more details.
|
8093
8094
|
*
|
8094
8095
|
* @example
|
8095
8096
|
* ```js
|
@@ -13131,7 +13132,7 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap();
|
|
13131
13132
|
* Entry point for the OpenFin Layout namespace.
|
13132
13133
|
*
|
13133
13134
|
* Because TypeDoc does not currently support multiple modules with the same name, the module alias "LayoutModule" is used for
|
13134
|
-
* the module containing static members of the `Layout` namespace (available under `fin.Layout`), while `Layout` documents
|
13135
|
+
* the module containing static members of the `Layout` namespace (available under `fin.Platform.Layout`), while `Layout` documents
|
13135
13136
|
* instances of the OpenFin `Layout` class.
|
13136
13137
|
*
|
13137
13138
|
* @packageDocumentation
|
@@ -16180,46 +16181,39 @@ class InteropClient extends base_1$2.Base {
|
|
16180
16181
|
InteropClient$1.InteropClient = InteropClient;
|
16181
16182
|
_InteropClient_clientPromise = new WeakMap(), _InteropClient_sessionContextGroups = new WeakMap();
|
16182
16183
|
|
16183
|
-
var overrideCheck = {};
|
16184
|
-
|
16185
|
-
var hasRequiredOverrideCheck;
|
16184
|
+
var overrideCheck$1 = {};
|
16186
16185
|
|
16187
|
-
|
16188
|
-
|
16189
|
-
|
16190
|
-
|
16191
|
-
|
16192
|
-
|
16193
|
-
|
16194
|
-
|
16195
|
-
|
16196
|
-
|
16197
|
-
|
16198
|
-
|
16199
|
-
|
16200
|
-
|
16201
|
-
|
16202
|
-
|
16203
|
-
|
16204
|
-
|
16205
|
-
|
16206
|
-
|
16207
|
-
|
16208
|
-
|
16209
|
-
|
16210
|
-
|
16211
|
-
|
16212
|
-
|
16213
|
-
|
16214
|
-
|
16215
|
-
|
16216
|
-
console.warn(`WARNING: FDC3 2.0 has been set as a default option for Views in this Platform, but the required InteropBroker APIs for FDC3 2.0 compliance have not all been overridden.\nThe following APIs need to be overridden:\n${notOverridden.join('\n')}`);
|
16217
|
-
}
|
16218
|
-
}
|
16219
|
-
}
|
16220
|
-
overrideCheck.overrideCheck = overrideCheck$1;
|
16221
|
-
return overrideCheck;
|
16186
|
+
Object.defineProperty(overrideCheck$1, "__esModule", { value: true });
|
16187
|
+
overrideCheck$1.overrideCheck = overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = void 0;
|
16188
|
+
const InteropBroker_1 = requireInteropBroker();
|
16189
|
+
function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
|
16190
|
+
var _a, _b, _c, _d;
|
16191
|
+
const setVersion = (_c = (_b = (_a = manifest.platform) === null || _a === void 0 ? void 0 : _a.defaultViewOptions) === null || _b === void 0 ? void 0 : _b.fdc3InteropApi) !== null && _c !== void 0 ? _c : (_d = initialOptions.defaultViewOptions) === null || _d === void 0 ? void 0 : _d.fdc3InteropApi;
|
16192
|
+
return ['1.2', '2.0'].includes(setVersion !== null && setVersion !== void 0 ? setVersion : '') ? setVersion : undefined;
|
16193
|
+
}
|
16194
|
+
overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
|
16195
|
+
// TODO: Unit test this
|
16196
|
+
function overrideCheck(overriddenBroker, fdc3InteropApi) {
|
16197
|
+
if (fdc3InteropApi && fdc3InteropApi === '2.0') {
|
16198
|
+
const mustOverrideAPIs = [
|
16199
|
+
'fdc3HandleFindInstances',
|
16200
|
+
'handleInfoForIntent',
|
16201
|
+
'handleInfoForIntentsByContext',
|
16202
|
+
'fdc3HandleGetAppMetadata',
|
16203
|
+
'fdc3HandleGetInfo',
|
16204
|
+
'fdc3HandleOpen',
|
16205
|
+
'handleFiredIntent',
|
16206
|
+
'handleFiredIntentForContext'
|
16207
|
+
];
|
16208
|
+
const notOverridden = mustOverrideAPIs.filter((api) => {
|
16209
|
+
return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
|
16210
|
+
});
|
16211
|
+
if (notOverridden.length > 0) {
|
16212
|
+
console.warn(`WARNING: FDC3 2.0 has been set as a default option for Views in this Platform, but the required InteropBroker APIs for FDC3 2.0 compliance have not all been overridden.\nThe following APIs need to be overridden:\n${notOverridden.join('\n')}`);
|
16213
|
+
}
|
16214
|
+
}
|
16222
16215
|
}
|
16216
|
+
overrideCheck$1.overrideCheck = overrideCheck;
|
16223
16217
|
|
16224
16218
|
var hasRequiredFactory;
|
16225
16219
|
|
@@ -16232,7 +16226,7 @@ function requireFactory () {
|
|
16232
16226
|
const base_1 = base;
|
16233
16227
|
const InteropBroker_1 = requireInteropBroker();
|
16234
16228
|
const InteropClient_1 = InteropClient$1;
|
16235
|
-
const overrideCheck_1 =
|
16229
|
+
const overrideCheck_1 = overrideCheck$1;
|
16236
16230
|
const defaultOverride = (Class) => new Class();
|
16237
16231
|
const BrokerParamAccessError = 'You have attempted to use or modify InteropBroker parameters, which is not allowed. You are likely using an older InteropBroker override scheme. Please consult our Interop docs for guidance on migrating to the new override scheme.';
|
16238
16232
|
/**
|