@openfin/core 40.102.2 → 40.103.4
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/mock-alpha.d.ts +153 -5
- package/out/mock-beta.d.ts +153 -5
- package/out/mock-public.d.ts +153 -5
- package/out/stub.d.ts +153 -5
- package/out/stub.js +1172 -1136
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
@@ -3221,6 +3221,40 @@ declare class Clipboard_2 extends Base {
|
|
3221
3221
|
getAvailableFormats(type?: OpenFin_2.ClipboardSelectionType): Promise<Array<string>>;
|
3222
3222
|
}
|
3223
3223
|
|
3224
|
+
/**
|
3225
|
+
* Generated when a copy operation is blocked through {@link OpenFin.DomainSettings}.
|
3226
|
+
* @interface
|
3227
|
+
*/
|
3228
|
+
declare type ClipboardCopyBlockedEvent = NamedEvent & {
|
3229
|
+
type: 'clipboard-copy-blocked';
|
3230
|
+
/**
|
3231
|
+
* URL of the Window or View that generated the event.
|
3232
|
+
*/
|
3233
|
+
url: string;
|
3234
|
+
reason: CopyBlockedEventReason;
|
3235
|
+
};
|
3236
|
+
|
3237
|
+
/**
|
3238
|
+
* Generated when a paste operation is blocked through {@link OpenFin.DomainSettings}.
|
3239
|
+
* @interface
|
3240
|
+
*/
|
3241
|
+
declare type ClipboardPasteBlockedEvent = NamedEvent & {
|
3242
|
+
type: 'clipboard-paste-blocked';
|
3243
|
+
/**
|
3244
|
+
* URL of the Window or View that generated the event.
|
3245
|
+
*/
|
3246
|
+
url: string;
|
3247
|
+
reason: PasteBlockedEventReason;
|
3248
|
+
};
|
3249
|
+
|
3250
|
+
/**
|
3251
|
+
* Clipboard Permissions
|
3252
|
+
*/
|
3253
|
+
declare type ClipboardPermissions = {
|
3254
|
+
copy?: CopyPermissions;
|
3255
|
+
paste?: PastePermissions;
|
3256
|
+
};
|
3257
|
+
|
3224
3258
|
/**
|
3225
3259
|
* The type of clipboard to write to, can be 'clipboard' or 'selection'.
|
3226
3260
|
* Defaults to 'clipboard'. Use 'selection' for linux only.
|
@@ -3995,6 +4029,40 @@ declare type CookieOption = {
|
|
3995
4029
|
name: string;
|
3996
4030
|
};
|
3997
4031
|
|
4032
|
+
/**
|
4033
|
+
* Reasons for a copy operation being blocked
|
4034
|
+
*
|
4035
|
+
* 'disabled': Copy operation is disabled through domain-based permissions.
|
4036
|
+
*/
|
4037
|
+
declare type CopyBlockedEventReason = 'disabled';
|
4038
|
+
|
4039
|
+
/**
|
4040
|
+
* Control copy operations for a matched URL.
|
4041
|
+
*/
|
4042
|
+
declare type CopyPermissions = {
|
4043
|
+
/**
|
4044
|
+
* @defaultValue 'allowed'
|
4045
|
+
*
|
4046
|
+
* Controls the behavior for copy operations for a matched URL.
|
4047
|
+
*
|
4048
|
+
* allow: Enables all copy operations.
|
4049
|
+
* block: Disables all copy operations.
|
4050
|
+
* protect: Protects any copied content. Only URLs that have set paste.behavior: 'all-content' will be allowed to paste this content.
|
4051
|
+
*/
|
4052
|
+
behavior: 'allow' | 'block' | 'protect';
|
4053
|
+
/**
|
4054
|
+
* Additional copy operation options
|
4055
|
+
*/
|
4056
|
+
options?: {
|
4057
|
+
/**
|
4058
|
+
* @defaultValue ''
|
4059
|
+
*
|
4060
|
+
* When setting behavior = 'protected' , this string will be pasted to other applications that do not have a matching URL instead of the original content.
|
4061
|
+
*/
|
4062
|
+
replacementText: string;
|
4063
|
+
};
|
4064
|
+
};
|
4065
|
+
|
3998
4066
|
/**
|
3999
4067
|
* Defines and applies rounded corners for a frameless window. **NOTE:** On macOS corner is not ellipse but circle rounded by the
|
4000
4068
|
* average of _height_ and _width_.
|
@@ -4850,7 +4918,7 @@ declare type Event_4 = (WebContentsEvents.Event<'view'> & {
|
|
4850
4918
|
*/
|
4851
4919
|
declare type Event_5<Topic extends string> = {
|
4852
4920
|
topic: Topic;
|
4853
|
-
} & (BlurredEvent | CertificateSelectionShownEvent | CrashedEvent_2 | DidChangeThemeColorEvent | FocusedEvent | NavigationRejectedEvent | UrlChangedEvent | DidFailLoadEvent | DidFinishLoadEvent | DidStartLoadingEvent | PageFaviconUpdatedEvent | PageTitleUpdatedEvent | ResourceLoadFailedEvent | ResourceResponseReceivedEvent | ChildContentBlockedEvent | ChildContentOpenedInBrowserEvent | ChildViewCreatedEvent | ChildWindowCreatedEvent | FileDownloadStartedEvent | FileDownloadProgressEvent | FileDownloadCompletedEvent | FoundInPageEvent | CertificateErrorEvent | ContentBlockedEvent | WillRedirectEvent);
|
4921
|
+
} & (BlurredEvent | CertificateSelectionShownEvent | CrashedEvent_2 | DidChangeThemeColorEvent | FocusedEvent | NavigationRejectedEvent | UrlChangedEvent | DidFailLoadEvent | DidFinishLoadEvent | DidStartLoadingEvent | PageFaviconUpdatedEvent | PageTitleUpdatedEvent | ResourceLoadFailedEvent | ResourceResponseReceivedEvent | ChildContentBlockedEvent | ChildContentOpenedInBrowserEvent | ChildViewCreatedEvent | ChildWindowCreatedEvent | FileDownloadStartedEvent | FileDownloadProgressEvent | FileDownloadCompletedEvent | FoundInPageEvent | CertificateErrorEvent | ContentBlockedEvent | WillRedirectEvent | ClipboardCopyBlockedEvent | ClipboardPasteBlockedEvent);
|
4854
4922
|
|
4855
4923
|
/**
|
4856
4924
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by a {@link Window}. Events are
|
@@ -5607,11 +5675,8 @@ declare type FrameEventType = EventType_5;
|
|
5607
5675
|
/**
|
5608
5676
|
* @interface
|
5609
5677
|
*/
|
5610
|
-
declare type FrameInfo = {
|
5611
|
-
name: string;
|
5612
|
-
uuid: string;
|
5678
|
+
declare type FrameInfo = EntityInfo & {
|
5613
5679
|
url: string;
|
5614
|
-
entityType: EntityType_4;
|
5615
5680
|
parent: Identity_4;
|
5616
5681
|
};
|
5617
5682
|
|
@@ -9327,6 +9392,8 @@ declare namespace OpenFin_2 {
|
|
9327
9392
|
ClientConnectionPayload,
|
9328
9393
|
EntityInfo,
|
9329
9394
|
EntityType_4 as EntityType,
|
9395
|
+
ScreenCaptureState,
|
9396
|
+
ScreenCapturePermission,
|
9330
9397
|
Bounds,
|
9331
9398
|
WindowBounds,
|
9332
9399
|
GetBoundsOptions,
|
@@ -9547,7 +9614,11 @@ declare namespace OpenFin_2 {
|
|
9547
9614
|
StructuredContentBehavior,
|
9548
9615
|
StructuredContentPermissions,
|
9549
9616
|
ContentPermission,
|
9617
|
+
ScreenCaptureBehavior,
|
9550
9618
|
PerDomainSettings,
|
9619
|
+
CopyPermissions,
|
9620
|
+
PastePermissions,
|
9621
|
+
ClipboardPermissions,
|
9551
9622
|
DomainSettingsRule,
|
9552
9623
|
FileDownloadBehavior,
|
9553
9624
|
FileDownloadBehaviorNames,
|
@@ -9728,6 +9799,29 @@ declare type PageTitleUpdatedEvent = NamedEvent & {
|
|
9728
9799
|
title: string;
|
9729
9800
|
};
|
9730
9801
|
|
9802
|
+
/**
|
9803
|
+
* Reasons for a paste operation being blocked
|
9804
|
+
*
|
9805
|
+
* 'invalid-data': Copy protection is enabled and the pasted data is invalid.
|
9806
|
+
* 'disabled': Copy protection is turned on and the current URL for this WebContent has been disabled through domain-based settings from accessing the copied data.
|
9807
|
+
*/
|
9808
|
+
declare type PasteBlockedEventReason = 'invalid-data' | 'disabled';
|
9809
|
+
|
9810
|
+
/**
|
9811
|
+
* Control copy operations for a matched URL.
|
9812
|
+
*/
|
9813
|
+
declare type PastePermissions = {
|
9814
|
+
/**
|
9815
|
+
* @defaultValue 'non-protected-content'
|
9816
|
+
*
|
9817
|
+
* Controls the behavior for paste operations for a matched URL.
|
9818
|
+
*
|
9819
|
+
* non-protected-content: All matching URLs will be able to paste content copied from non-protected URLs.
|
9820
|
+
* all-content: All matching URLs will be able to paste content copied from both protected (copy.behavior = 'protect') and on-protected (copy.behavior = 'allow') URLs.
|
9821
|
+
*/
|
9822
|
+
behavior: 'non-protected-content' | 'all-content';
|
9823
|
+
};
|
9824
|
+
|
9731
9825
|
declare type PathServeRequest = ServeRequest & {
|
9732
9826
|
path: string;
|
9733
9827
|
};
|
@@ -9871,6 +9965,16 @@ declare type PerDomainSettings = {
|
|
9871
9965
|
* {@inheritdoc ChromiumPolicies}
|
9872
9966
|
*/
|
9873
9967
|
chromiumPolicies?: ChromiumPolicies;
|
9968
|
+
contentProtection?: {
|
9969
|
+
/**
|
9970
|
+
* {@inheritdoc ScreenCaptureBehavior}
|
9971
|
+
*/
|
9972
|
+
screenCapture: ScreenCaptureBehavior;
|
9973
|
+
/**
|
9974
|
+
* {@inheritdoc ClipboardPermissions}
|
9975
|
+
*/
|
9976
|
+
clipboard?: ClipboardPermissions;
|
9977
|
+
};
|
9874
9978
|
};
|
9875
9979
|
|
9876
9980
|
/**
|
@@ -12521,6 +12625,10 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
12521
12625
|
};
|
12522
12626
|
response: OpenFin_2.PopupResult;
|
12523
12627
|
};
|
12628
|
+
'get-screen-capture-permissions': {
|
12629
|
+
request: OpenFin_2.Identity;
|
12630
|
+
response: OpenFin_2.ScreenCapturePermission;
|
12631
|
+
};
|
12524
12632
|
'render-overlay': {
|
12525
12633
|
request: {
|
12526
12634
|
bounds: OpenFin_2.Bounds;
|
@@ -13050,6 +13158,31 @@ declare type RvmLaunchOptions = {
|
|
13050
13158
|
subscribe?: (launch: LaunchEmitter) => void;
|
13051
13159
|
};
|
13052
13160
|
|
13161
|
+
/**
|
13162
|
+
* @interface
|
13163
|
+
* Controls whether this content should be allowed or blocked when capturing the screen.
|
13164
|
+
*/
|
13165
|
+
declare type ScreenCaptureBehavior = 'allow' | 'block';
|
13166
|
+
|
13167
|
+
/**
|
13168
|
+
* Returned by getScreenCapturePermission. Includes sub-entity permission states and the resulting permission.
|
13169
|
+
* @interface
|
13170
|
+
*/
|
13171
|
+
declare type ScreenCapturePermission = {
|
13172
|
+
permission: ScreenCaptureBehavior;
|
13173
|
+
permissions: ScreenCaptureState[];
|
13174
|
+
};
|
13175
|
+
|
13176
|
+
/**
|
13177
|
+
* screenCapture state for a given entity as defined in domain settings.
|
13178
|
+
* @interface
|
13179
|
+
*/
|
13180
|
+
declare type ScreenCaptureState = {
|
13181
|
+
info: EntityInfo;
|
13182
|
+
behavior: ScreenCaptureBehavior;
|
13183
|
+
url: string;
|
13184
|
+
};
|
13185
|
+
|
13053
13186
|
/**
|
13054
13187
|
* @interface
|
13055
13188
|
*/
|
@@ -17295,6 +17428,19 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
17295
17428
|
* {@link OpenFin.WebContentsEvents event namespace}.
|
17296
17429
|
*/
|
17297
17430
|
showPopupWindow(options: OpenFin_2.PopupOptions): Promise<OpenFin_2.PopupResult>;
|
17431
|
+
/**
|
17432
|
+
*
|
17433
|
+
* Get the screen capture permission for this content.
|
17434
|
+
*
|
17435
|
+
* @example
|
17436
|
+
* ```js
|
17437
|
+
* const { permission } = await fin.me.getScreenCapturePermission();
|
17438
|
+
*
|
17439
|
+
* console.log(`This content is currently ${permission}ed in screen captures.`);
|
17440
|
+
*
|
17441
|
+
* ```
|
17442
|
+
*/
|
17443
|
+
getScreenCapturePermission(): Promise<OpenFin_2.ScreenCapturePermission>;
|
17298
17444
|
}
|
17299
17445
|
|
17300
17446
|
/**
|
@@ -17333,6 +17479,8 @@ declare namespace WebContentsEvents {
|
|
17333
17479
|
FileDownloadProgressEvent,
|
17334
17480
|
FileDownloadCompletedEvent,
|
17335
17481
|
ContentBlockedEvent,
|
17482
|
+
ClipboardCopyBlockedEvent,
|
17483
|
+
ClipboardPasteBlockedEvent,
|
17336
17484
|
Event_5 as Event,
|
17337
17485
|
WebContentsEvent,
|
17338
17486
|
WillPropagateWebContentsEvent,
|
package/out/mock-beta.d.ts
CHANGED
@@ -3221,6 +3221,40 @@ declare class Clipboard_2 extends Base {
|
|
3221
3221
|
getAvailableFormats(type?: OpenFin_2.ClipboardSelectionType): Promise<Array<string>>;
|
3222
3222
|
}
|
3223
3223
|
|
3224
|
+
/**
|
3225
|
+
* Generated when a copy operation is blocked through {@link OpenFin.DomainSettings}.
|
3226
|
+
* @interface
|
3227
|
+
*/
|
3228
|
+
declare type ClipboardCopyBlockedEvent = NamedEvent & {
|
3229
|
+
type: 'clipboard-copy-blocked';
|
3230
|
+
/**
|
3231
|
+
* URL of the Window or View that generated the event.
|
3232
|
+
*/
|
3233
|
+
url: string;
|
3234
|
+
reason: CopyBlockedEventReason;
|
3235
|
+
};
|
3236
|
+
|
3237
|
+
/**
|
3238
|
+
* Generated when a paste operation is blocked through {@link OpenFin.DomainSettings}.
|
3239
|
+
* @interface
|
3240
|
+
*/
|
3241
|
+
declare type ClipboardPasteBlockedEvent = NamedEvent & {
|
3242
|
+
type: 'clipboard-paste-blocked';
|
3243
|
+
/**
|
3244
|
+
* URL of the Window or View that generated the event.
|
3245
|
+
*/
|
3246
|
+
url: string;
|
3247
|
+
reason: PasteBlockedEventReason;
|
3248
|
+
};
|
3249
|
+
|
3250
|
+
/**
|
3251
|
+
* Clipboard Permissions
|
3252
|
+
*/
|
3253
|
+
declare type ClipboardPermissions = {
|
3254
|
+
copy?: CopyPermissions;
|
3255
|
+
paste?: PastePermissions;
|
3256
|
+
};
|
3257
|
+
|
3224
3258
|
/**
|
3225
3259
|
* The type of clipboard to write to, can be 'clipboard' or 'selection'.
|
3226
3260
|
* Defaults to 'clipboard'. Use 'selection' for linux only.
|
@@ -3995,6 +4029,40 @@ declare type CookieOption = {
|
|
3995
4029
|
name: string;
|
3996
4030
|
};
|
3997
4031
|
|
4032
|
+
/**
|
4033
|
+
* Reasons for a copy operation being blocked
|
4034
|
+
*
|
4035
|
+
* 'disabled': Copy operation is disabled through domain-based permissions.
|
4036
|
+
*/
|
4037
|
+
declare type CopyBlockedEventReason = 'disabled';
|
4038
|
+
|
4039
|
+
/**
|
4040
|
+
* Control copy operations for a matched URL.
|
4041
|
+
*/
|
4042
|
+
declare type CopyPermissions = {
|
4043
|
+
/**
|
4044
|
+
* @defaultValue 'allowed'
|
4045
|
+
*
|
4046
|
+
* Controls the behavior for copy operations for a matched URL.
|
4047
|
+
*
|
4048
|
+
* allow: Enables all copy operations.
|
4049
|
+
* block: Disables all copy operations.
|
4050
|
+
* protect: Protects any copied content. Only URLs that have set paste.behavior: 'all-content' will be allowed to paste this content.
|
4051
|
+
*/
|
4052
|
+
behavior: 'allow' | 'block' | 'protect';
|
4053
|
+
/**
|
4054
|
+
* Additional copy operation options
|
4055
|
+
*/
|
4056
|
+
options?: {
|
4057
|
+
/**
|
4058
|
+
* @defaultValue ''
|
4059
|
+
*
|
4060
|
+
* When setting behavior = 'protected' , this string will be pasted to other applications that do not have a matching URL instead of the original content.
|
4061
|
+
*/
|
4062
|
+
replacementText: string;
|
4063
|
+
};
|
4064
|
+
};
|
4065
|
+
|
3998
4066
|
/**
|
3999
4067
|
* Defines and applies rounded corners for a frameless window. **NOTE:** On macOS corner is not ellipse but circle rounded by the
|
4000
4068
|
* average of _height_ and _width_.
|
@@ -4850,7 +4918,7 @@ declare type Event_4 = (WebContentsEvents.Event<'view'> & {
|
|
4850
4918
|
*/
|
4851
4919
|
declare type Event_5<Topic extends string> = {
|
4852
4920
|
topic: Topic;
|
4853
|
-
} & (BlurredEvent | CertificateSelectionShownEvent | CrashedEvent_2 | DidChangeThemeColorEvent | FocusedEvent | NavigationRejectedEvent | UrlChangedEvent | DidFailLoadEvent | DidFinishLoadEvent | DidStartLoadingEvent | PageFaviconUpdatedEvent | PageTitleUpdatedEvent | ResourceLoadFailedEvent | ResourceResponseReceivedEvent | ChildContentBlockedEvent | ChildContentOpenedInBrowserEvent | ChildViewCreatedEvent | ChildWindowCreatedEvent | FileDownloadStartedEvent | FileDownloadProgressEvent | FileDownloadCompletedEvent | FoundInPageEvent | CertificateErrorEvent | ContentBlockedEvent | WillRedirectEvent);
|
4921
|
+
} & (BlurredEvent | CertificateSelectionShownEvent | CrashedEvent_2 | DidChangeThemeColorEvent | FocusedEvent | NavigationRejectedEvent | UrlChangedEvent | DidFailLoadEvent | DidFinishLoadEvent | DidStartLoadingEvent | PageFaviconUpdatedEvent | PageTitleUpdatedEvent | ResourceLoadFailedEvent | ResourceResponseReceivedEvent | ChildContentBlockedEvent | ChildContentOpenedInBrowserEvent | ChildViewCreatedEvent | ChildWindowCreatedEvent | FileDownloadStartedEvent | FileDownloadProgressEvent | FileDownloadCompletedEvent | FoundInPageEvent | CertificateErrorEvent | ContentBlockedEvent | WillRedirectEvent | ClipboardCopyBlockedEvent | ClipboardPasteBlockedEvent);
|
4854
4922
|
|
4855
4923
|
/**
|
4856
4924
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by a {@link Window}. Events are
|
@@ -5607,11 +5675,8 @@ declare type FrameEventType = EventType_5;
|
|
5607
5675
|
/**
|
5608
5676
|
* @interface
|
5609
5677
|
*/
|
5610
|
-
declare type FrameInfo = {
|
5611
|
-
name: string;
|
5612
|
-
uuid: string;
|
5678
|
+
declare type FrameInfo = EntityInfo & {
|
5613
5679
|
url: string;
|
5614
|
-
entityType: EntityType_4;
|
5615
5680
|
parent: Identity_4;
|
5616
5681
|
};
|
5617
5682
|
|
@@ -9327,6 +9392,8 @@ declare namespace OpenFin_2 {
|
|
9327
9392
|
ClientConnectionPayload,
|
9328
9393
|
EntityInfo,
|
9329
9394
|
EntityType_4 as EntityType,
|
9395
|
+
ScreenCaptureState,
|
9396
|
+
ScreenCapturePermission,
|
9330
9397
|
Bounds,
|
9331
9398
|
WindowBounds,
|
9332
9399
|
GetBoundsOptions,
|
@@ -9547,7 +9614,11 @@ declare namespace OpenFin_2 {
|
|
9547
9614
|
StructuredContentBehavior,
|
9548
9615
|
StructuredContentPermissions,
|
9549
9616
|
ContentPermission,
|
9617
|
+
ScreenCaptureBehavior,
|
9550
9618
|
PerDomainSettings,
|
9619
|
+
CopyPermissions,
|
9620
|
+
PastePermissions,
|
9621
|
+
ClipboardPermissions,
|
9551
9622
|
DomainSettingsRule,
|
9552
9623
|
FileDownloadBehavior,
|
9553
9624
|
FileDownloadBehaviorNames,
|
@@ -9728,6 +9799,29 @@ declare type PageTitleUpdatedEvent = NamedEvent & {
|
|
9728
9799
|
title: string;
|
9729
9800
|
};
|
9730
9801
|
|
9802
|
+
/**
|
9803
|
+
* Reasons for a paste operation being blocked
|
9804
|
+
*
|
9805
|
+
* 'invalid-data': Copy protection is enabled and the pasted data is invalid.
|
9806
|
+
* 'disabled': Copy protection is turned on and the current URL for this WebContent has been disabled through domain-based settings from accessing the copied data.
|
9807
|
+
*/
|
9808
|
+
declare type PasteBlockedEventReason = 'invalid-data' | 'disabled';
|
9809
|
+
|
9810
|
+
/**
|
9811
|
+
* Control copy operations for a matched URL.
|
9812
|
+
*/
|
9813
|
+
declare type PastePermissions = {
|
9814
|
+
/**
|
9815
|
+
* @defaultValue 'non-protected-content'
|
9816
|
+
*
|
9817
|
+
* Controls the behavior for paste operations for a matched URL.
|
9818
|
+
*
|
9819
|
+
* non-protected-content: All matching URLs will be able to paste content copied from non-protected URLs.
|
9820
|
+
* all-content: All matching URLs will be able to paste content copied from both protected (copy.behavior = 'protect') and on-protected (copy.behavior = 'allow') URLs.
|
9821
|
+
*/
|
9822
|
+
behavior: 'non-protected-content' | 'all-content';
|
9823
|
+
};
|
9824
|
+
|
9731
9825
|
declare type PathServeRequest = ServeRequest & {
|
9732
9826
|
path: string;
|
9733
9827
|
};
|
@@ -9871,6 +9965,16 @@ declare type PerDomainSettings = {
|
|
9871
9965
|
* {@inheritdoc ChromiumPolicies}
|
9872
9966
|
*/
|
9873
9967
|
chromiumPolicies?: ChromiumPolicies;
|
9968
|
+
contentProtection?: {
|
9969
|
+
/**
|
9970
|
+
* {@inheritdoc ScreenCaptureBehavior}
|
9971
|
+
*/
|
9972
|
+
screenCapture: ScreenCaptureBehavior;
|
9973
|
+
/**
|
9974
|
+
* {@inheritdoc ClipboardPermissions}
|
9975
|
+
*/
|
9976
|
+
clipboard?: ClipboardPermissions;
|
9977
|
+
};
|
9874
9978
|
};
|
9875
9979
|
|
9876
9980
|
/**
|
@@ -12521,6 +12625,10 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
12521
12625
|
};
|
12522
12626
|
response: OpenFin_2.PopupResult;
|
12523
12627
|
};
|
12628
|
+
'get-screen-capture-permissions': {
|
12629
|
+
request: OpenFin_2.Identity;
|
12630
|
+
response: OpenFin_2.ScreenCapturePermission;
|
12631
|
+
};
|
12524
12632
|
'render-overlay': {
|
12525
12633
|
request: {
|
12526
12634
|
bounds: OpenFin_2.Bounds;
|
@@ -13050,6 +13158,31 @@ declare type RvmLaunchOptions = {
|
|
13050
13158
|
subscribe?: (launch: LaunchEmitter) => void;
|
13051
13159
|
};
|
13052
13160
|
|
13161
|
+
/**
|
13162
|
+
* @interface
|
13163
|
+
* Controls whether this content should be allowed or blocked when capturing the screen.
|
13164
|
+
*/
|
13165
|
+
declare type ScreenCaptureBehavior = 'allow' | 'block';
|
13166
|
+
|
13167
|
+
/**
|
13168
|
+
* Returned by getScreenCapturePermission. Includes sub-entity permission states and the resulting permission.
|
13169
|
+
* @interface
|
13170
|
+
*/
|
13171
|
+
declare type ScreenCapturePermission = {
|
13172
|
+
permission: ScreenCaptureBehavior;
|
13173
|
+
permissions: ScreenCaptureState[];
|
13174
|
+
};
|
13175
|
+
|
13176
|
+
/**
|
13177
|
+
* screenCapture state for a given entity as defined in domain settings.
|
13178
|
+
* @interface
|
13179
|
+
*/
|
13180
|
+
declare type ScreenCaptureState = {
|
13181
|
+
info: EntityInfo;
|
13182
|
+
behavior: ScreenCaptureBehavior;
|
13183
|
+
url: string;
|
13184
|
+
};
|
13185
|
+
|
13053
13186
|
/**
|
13054
13187
|
* @interface
|
13055
13188
|
*/
|
@@ -17295,6 +17428,19 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
17295
17428
|
* {@link OpenFin.WebContentsEvents event namespace}.
|
17296
17429
|
*/
|
17297
17430
|
showPopupWindow(options: OpenFin_2.PopupOptions): Promise<OpenFin_2.PopupResult>;
|
17431
|
+
/**
|
17432
|
+
*
|
17433
|
+
* Get the screen capture permission for this content.
|
17434
|
+
*
|
17435
|
+
* @example
|
17436
|
+
* ```js
|
17437
|
+
* const { permission } = await fin.me.getScreenCapturePermission();
|
17438
|
+
*
|
17439
|
+
* console.log(`This content is currently ${permission}ed in screen captures.`);
|
17440
|
+
*
|
17441
|
+
* ```
|
17442
|
+
*/
|
17443
|
+
getScreenCapturePermission(): Promise<OpenFin_2.ScreenCapturePermission>;
|
17298
17444
|
}
|
17299
17445
|
|
17300
17446
|
/**
|
@@ -17333,6 +17479,8 @@ declare namespace WebContentsEvents {
|
|
17333
17479
|
FileDownloadProgressEvent,
|
17334
17480
|
FileDownloadCompletedEvent,
|
17335
17481
|
ContentBlockedEvent,
|
17482
|
+
ClipboardCopyBlockedEvent,
|
17483
|
+
ClipboardPasteBlockedEvent,
|
17336
17484
|
Event_5 as Event,
|
17337
17485
|
WebContentsEvent,
|
17338
17486
|
WillPropagateWebContentsEvent,
|