@openfin/core 41.100.39 → 41.100.42

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.
@@ -3217,6 +3217,40 @@ declare class Clipboard_2 extends Base {
3217
3217
  getAvailableFormats(type?: OpenFin_2.ClipboardSelectionType): Promise<Array<string>>;
3218
3218
  }
3219
3219
 
3220
+ /**
3221
+ * Generated when a copy operation is blocked through {@link OpenFin.DomainSettings}.
3222
+ * @interface
3223
+ */
3224
+ declare type ClipboardCopyBlockedEvent = NamedEvent & {
3225
+ type: 'clipboard-copy-blocked';
3226
+ /**
3227
+ * URL of the Window or View that generated the event.
3228
+ */
3229
+ url: string;
3230
+ reason: CopyBlockedEventReason;
3231
+ };
3232
+
3233
+ /**
3234
+ * Generated when a paste operation is blocked through {@link OpenFin.DomainSettings}.
3235
+ * @interface
3236
+ */
3237
+ declare type ClipboardPasteBlockedEvent = NamedEvent & {
3238
+ type: 'clipboard-paste-blocked';
3239
+ /**
3240
+ * URL of the Window or View that generated the event.
3241
+ */
3242
+ url: string;
3243
+ reason: PasteBlockedEventReason;
3244
+ };
3245
+
3246
+ /**
3247
+ * Clipboard Permissions
3248
+ */
3249
+ declare type ClipboardPermissions = {
3250
+ copy?: CopyPermissions;
3251
+ paste?: PastePermissions;
3252
+ };
3253
+
3220
3254
  /**
3221
3255
  * The type of clipboard to write to, can be 'clipboard' or 'selection'.
3222
3256
  * Defaults to 'clipboard'. Use 'selection' for linux only.
@@ -3998,6 +4032,40 @@ declare type CookieOption = {
3998
4032
  name: string;
3999
4033
  };
4000
4034
 
4035
+ /**
4036
+ * Reasons for a copy operation being blocked
4037
+ *
4038
+ * 'disabled': Copy operation is disabled through domain-based permissions.
4039
+ */
4040
+ declare type CopyBlockedEventReason = 'disabled';
4041
+
4042
+ /**
4043
+ * Control copy operations for a matched URL.
4044
+ */
4045
+ declare type CopyPermissions = {
4046
+ /**
4047
+ * @defaultValue 'allowed'
4048
+ *
4049
+ * Controls the behavior for copy operations for a matched URL.
4050
+ *
4051
+ * allowed: Enables all copy operations.
4052
+ * blocked: Disables all copy operations.
4053
+ * protected: Protects any copied content. Only URLs that have set paste.behavior: 'all-content' will be allowed to paste this content.
4054
+ */
4055
+ behavior: 'allowed' | 'blocked' | 'protected';
4056
+ /**
4057
+ * Additional copy operation options
4058
+ */
4059
+ options?: {
4060
+ /**
4061
+ * @defaultValue ''
4062
+ *
4063
+ * When setting behavior = 'protected' , this string will be pasted to other applications that do not have a matching URL instead of the original content.
4064
+ */
4065
+ replacementText: string;
4066
+ };
4067
+ };
4068
+
4001
4069
  /**
4002
4070
  * Defines and applies rounded corners for a frameless window. **NOTE:** On macOS corner is not ellipse but circle rounded by the
4003
4071
  * average of _height_ and _width_.
@@ -4844,7 +4912,7 @@ declare type Event_4 = (WebContentsEvents.Event<'view'> & {
4844
4912
  */
4845
4913
  declare type Event_5<Topic extends string> = {
4846
4914
  topic: Topic;
4847
- } & (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);
4915
+ } & (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);
4848
4916
 
4849
4917
  /**
4850
4918
  * [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
@@ -9552,6 +9620,9 @@ declare namespace OpenFin_2 {
9552
9620
  ContentPermission,
9553
9621
  ScreenCaptureBehavior,
9554
9622
  PerDomainSettings,
9623
+ CopyPermissions,
9624
+ PastePermissions,
9625
+ ClipboardPermissions,
9555
9626
  DomainSettingsRule,
9556
9627
  FileDownloadBehavior,
9557
9628
  FileDownloadBehaviorNames,
@@ -9727,6 +9798,29 @@ declare type PageTitleUpdatedEvent = NamedEvent & {
9727
9798
  title: string;
9728
9799
  };
9729
9800
 
9801
+ /**
9802
+ * Reasons for a paste operation being blocked
9803
+ *
9804
+ * 'invalid-data': Copy protection is enabled and the pasted data is invalid.
9805
+ * '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.
9806
+ */
9807
+ declare type PasteBlockedEventReason = 'invalid-data' | 'disabled';
9808
+
9809
+ /**
9810
+ * Control copy operations for a matched URL.
9811
+ */
9812
+ declare type PastePermissions = {
9813
+ /**
9814
+ * @defaultValue 'non-protected-content'
9815
+ *
9816
+ * Controls the behavior for paste operations for a matched URL.
9817
+ *
9818
+ * non-protected-content: All matching URLs will be able to paste content copied from non-protected URLs.
9819
+ * all-content: All matching URLs will be able to paste content copied from both protected (copy.behavior = ‘protected') and non-protected (copy.behavior = 'allowed') URLs.
9820
+ */
9821
+ behavior: 'non-protected-content' | 'all-content';
9822
+ };
9823
+
9730
9824
  declare type Payload<Success extends boolean = boolean, Data = any> = {
9731
9825
  success: Success;
9732
9826
  data: Success extends true ? Data : never;
@@ -9870,7 +9964,11 @@ declare type PerDomainSettings = {
9870
9964
  /**
9871
9965
  * {@inheritdoc ScreenCaptureBehavior}
9872
9966
  */
9873
- screenCapture: ScreenCaptureBehavior;
9967
+ screenCapture?: ScreenCaptureBehavior;
9968
+ /**
9969
+ * {@inheritdoc ClipboardPermissions}
9970
+ */
9971
+ clipboard?: ClipboardPermissions;
9874
9972
  };
9875
9973
  };
9876
9974
 
@@ -17355,6 +17453,8 @@ declare namespace WebContentsEvents {
17355
17453
  FileDownloadProgressEvent,
17356
17454
  FileDownloadCompletedEvent,
17357
17455
  ContentBlockedEvent,
17456
+ ClipboardCopyBlockedEvent,
17457
+ ClipboardPasteBlockedEvent,
17358
17458
  Event_5 as Event,
17359
17459
  WebContentsEvent,
17360
17460
  WillPropagateWebContentsEvent,
@@ -3217,6 +3217,40 @@ declare class Clipboard_2 extends Base {
3217
3217
  getAvailableFormats(type?: OpenFin_2.ClipboardSelectionType): Promise<Array<string>>;
3218
3218
  }
3219
3219
 
3220
+ /**
3221
+ * Generated when a copy operation is blocked through {@link OpenFin.DomainSettings}.
3222
+ * @interface
3223
+ */
3224
+ declare type ClipboardCopyBlockedEvent = NamedEvent & {
3225
+ type: 'clipboard-copy-blocked';
3226
+ /**
3227
+ * URL of the Window or View that generated the event.
3228
+ */
3229
+ url: string;
3230
+ reason: CopyBlockedEventReason;
3231
+ };
3232
+
3233
+ /**
3234
+ * Generated when a paste operation is blocked through {@link OpenFin.DomainSettings}.
3235
+ * @interface
3236
+ */
3237
+ declare type ClipboardPasteBlockedEvent = NamedEvent & {
3238
+ type: 'clipboard-paste-blocked';
3239
+ /**
3240
+ * URL of the Window or View that generated the event.
3241
+ */
3242
+ url: string;
3243
+ reason: PasteBlockedEventReason;
3244
+ };
3245
+
3246
+ /**
3247
+ * Clipboard Permissions
3248
+ */
3249
+ declare type ClipboardPermissions = {
3250
+ copy?: CopyPermissions;
3251
+ paste?: PastePermissions;
3252
+ };
3253
+
3220
3254
  /**
3221
3255
  * The type of clipboard to write to, can be 'clipboard' or 'selection'.
3222
3256
  * Defaults to 'clipboard'. Use 'selection' for linux only.
@@ -3998,6 +4032,40 @@ declare type CookieOption = {
3998
4032
  name: string;
3999
4033
  };
4000
4034
 
4035
+ /**
4036
+ * Reasons for a copy operation being blocked
4037
+ *
4038
+ * 'disabled': Copy operation is disabled through domain-based permissions.
4039
+ */
4040
+ declare type CopyBlockedEventReason = 'disabled';
4041
+
4042
+ /**
4043
+ * Control copy operations for a matched URL.
4044
+ */
4045
+ declare type CopyPermissions = {
4046
+ /**
4047
+ * @defaultValue 'allowed'
4048
+ *
4049
+ * Controls the behavior for copy operations for a matched URL.
4050
+ *
4051
+ * allowed: Enables all copy operations.
4052
+ * blocked: Disables all copy operations.
4053
+ * protected: Protects any copied content. Only URLs that have set paste.behavior: 'all-content' will be allowed to paste this content.
4054
+ */
4055
+ behavior: 'allowed' | 'blocked' | 'protected';
4056
+ /**
4057
+ * Additional copy operation options
4058
+ */
4059
+ options?: {
4060
+ /**
4061
+ * @defaultValue ''
4062
+ *
4063
+ * When setting behavior = 'protected' , this string will be pasted to other applications that do not have a matching URL instead of the original content.
4064
+ */
4065
+ replacementText: string;
4066
+ };
4067
+ };
4068
+
4001
4069
  /**
4002
4070
  * Defines and applies rounded corners for a frameless window. **NOTE:** On macOS corner is not ellipse but circle rounded by the
4003
4071
  * average of _height_ and _width_.
@@ -4844,7 +4912,7 @@ declare type Event_4 = (WebContentsEvents.Event<'view'> & {
4844
4912
  */
4845
4913
  declare type Event_5<Topic extends string> = {
4846
4914
  topic: Topic;
4847
- } & (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);
4915
+ } & (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);
4848
4916
 
4849
4917
  /**
4850
4918
  * [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
@@ -9552,6 +9620,9 @@ declare namespace OpenFin_2 {
9552
9620
  ContentPermission,
9553
9621
  ScreenCaptureBehavior,
9554
9622
  PerDomainSettings,
9623
+ CopyPermissions,
9624
+ PastePermissions,
9625
+ ClipboardPermissions,
9555
9626
  DomainSettingsRule,
9556
9627
  FileDownloadBehavior,
9557
9628
  FileDownloadBehaviorNames,
@@ -9727,6 +9798,29 @@ declare type PageTitleUpdatedEvent = NamedEvent & {
9727
9798
  title: string;
9728
9799
  };
9729
9800
 
9801
+ /**
9802
+ * Reasons for a paste operation being blocked
9803
+ *
9804
+ * 'invalid-data': Copy protection is enabled and the pasted data is invalid.
9805
+ * '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.
9806
+ */
9807
+ declare type PasteBlockedEventReason = 'invalid-data' | 'disabled';
9808
+
9809
+ /**
9810
+ * Control copy operations for a matched URL.
9811
+ */
9812
+ declare type PastePermissions = {
9813
+ /**
9814
+ * @defaultValue 'non-protected-content'
9815
+ *
9816
+ * Controls the behavior for paste operations for a matched URL.
9817
+ *
9818
+ * non-protected-content: All matching URLs will be able to paste content copied from non-protected URLs.
9819
+ * all-content: All matching URLs will be able to paste content copied from both protected (copy.behavior = ‘protected') and non-protected (copy.behavior = 'allowed') URLs.
9820
+ */
9821
+ behavior: 'non-protected-content' | 'all-content';
9822
+ };
9823
+
9730
9824
  declare type Payload<Success extends boolean = boolean, Data = any> = {
9731
9825
  success: Success;
9732
9826
  data: Success extends true ? Data : never;
@@ -9870,7 +9964,11 @@ declare type PerDomainSettings = {
9870
9964
  /**
9871
9965
  * {@inheritdoc ScreenCaptureBehavior}
9872
9966
  */
9873
- screenCapture: ScreenCaptureBehavior;
9967
+ screenCapture?: ScreenCaptureBehavior;
9968
+ /**
9969
+ * {@inheritdoc ClipboardPermissions}
9970
+ */
9971
+ clipboard?: ClipboardPermissions;
9874
9972
  };
9875
9973
  };
9876
9974
 
@@ -17355,6 +17453,8 @@ declare namespace WebContentsEvents {
17355
17453
  FileDownloadProgressEvent,
17356
17454
  FileDownloadCompletedEvent,
17357
17455
  ContentBlockedEvent,
17456
+ ClipboardCopyBlockedEvent,
17457
+ ClipboardPasteBlockedEvent,
17358
17458
  Event_5 as Event,
17359
17459
  WebContentsEvent,
17360
17460
  WillPropagateWebContentsEvent,
@@ -3217,6 +3217,40 @@ declare class Clipboard_2 extends Base {
3217
3217
  getAvailableFormats(type?: OpenFin_2.ClipboardSelectionType): Promise<Array<string>>;
3218
3218
  }
3219
3219
 
3220
+ /**
3221
+ * Generated when a copy operation is blocked through {@link OpenFin.DomainSettings}.
3222
+ * @interface
3223
+ */
3224
+ declare type ClipboardCopyBlockedEvent = NamedEvent & {
3225
+ type: 'clipboard-copy-blocked';
3226
+ /**
3227
+ * URL of the Window or View that generated the event.
3228
+ */
3229
+ url: string;
3230
+ reason: CopyBlockedEventReason;
3231
+ };
3232
+
3233
+ /**
3234
+ * Generated when a paste operation is blocked through {@link OpenFin.DomainSettings}.
3235
+ * @interface
3236
+ */
3237
+ declare type ClipboardPasteBlockedEvent = NamedEvent & {
3238
+ type: 'clipboard-paste-blocked';
3239
+ /**
3240
+ * URL of the Window or View that generated the event.
3241
+ */
3242
+ url: string;
3243
+ reason: PasteBlockedEventReason;
3244
+ };
3245
+
3246
+ /**
3247
+ * Clipboard Permissions
3248
+ */
3249
+ declare type ClipboardPermissions = {
3250
+ copy?: CopyPermissions;
3251
+ paste?: PastePermissions;
3252
+ };
3253
+
3220
3254
  /**
3221
3255
  * The type of clipboard to write to, can be 'clipboard' or 'selection'.
3222
3256
  * Defaults to 'clipboard'. Use 'selection' for linux only.
@@ -3998,6 +4032,40 @@ declare type CookieOption = {
3998
4032
  name: string;
3999
4033
  };
4000
4034
 
4035
+ /**
4036
+ * Reasons for a copy operation being blocked
4037
+ *
4038
+ * 'disabled': Copy operation is disabled through domain-based permissions.
4039
+ */
4040
+ declare type CopyBlockedEventReason = 'disabled';
4041
+
4042
+ /**
4043
+ * Control copy operations for a matched URL.
4044
+ */
4045
+ declare type CopyPermissions = {
4046
+ /**
4047
+ * @defaultValue 'allowed'
4048
+ *
4049
+ * Controls the behavior for copy operations for a matched URL.
4050
+ *
4051
+ * allowed: Enables all copy operations.
4052
+ * blocked: Disables all copy operations.
4053
+ * protected: Protects any copied content. Only URLs that have set paste.behavior: 'all-content' will be allowed to paste this content.
4054
+ */
4055
+ behavior: 'allowed' | 'blocked' | 'protected';
4056
+ /**
4057
+ * Additional copy operation options
4058
+ */
4059
+ options?: {
4060
+ /**
4061
+ * @defaultValue ''
4062
+ *
4063
+ * When setting behavior = 'protected' , this string will be pasted to other applications that do not have a matching URL instead of the original content.
4064
+ */
4065
+ replacementText: string;
4066
+ };
4067
+ };
4068
+
4001
4069
  /**
4002
4070
  * Defines and applies rounded corners for a frameless window. **NOTE:** On macOS corner is not ellipse but circle rounded by the
4003
4071
  * average of _height_ and _width_.
@@ -4844,7 +4912,7 @@ declare type Event_4 = (WebContentsEvents.Event<'view'> & {
4844
4912
  */
4845
4913
  declare type Event_5<Topic extends string> = {
4846
4914
  topic: Topic;
4847
- } & (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);
4915
+ } & (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);
4848
4916
 
4849
4917
  /**
4850
4918
  * [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
@@ -9552,6 +9620,9 @@ declare namespace OpenFin_2 {
9552
9620
  ContentPermission,
9553
9621
  ScreenCaptureBehavior,
9554
9622
  PerDomainSettings,
9623
+ CopyPermissions,
9624
+ PastePermissions,
9625
+ ClipboardPermissions,
9555
9626
  DomainSettingsRule,
9556
9627
  FileDownloadBehavior,
9557
9628
  FileDownloadBehaviorNames,
@@ -9727,6 +9798,29 @@ declare type PageTitleUpdatedEvent = NamedEvent & {
9727
9798
  title: string;
9728
9799
  };
9729
9800
 
9801
+ /**
9802
+ * Reasons for a paste operation being blocked
9803
+ *
9804
+ * 'invalid-data': Copy protection is enabled and the pasted data is invalid.
9805
+ * '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.
9806
+ */
9807
+ declare type PasteBlockedEventReason = 'invalid-data' | 'disabled';
9808
+
9809
+ /**
9810
+ * Control copy operations for a matched URL.
9811
+ */
9812
+ declare type PastePermissions = {
9813
+ /**
9814
+ * @defaultValue 'non-protected-content'
9815
+ *
9816
+ * Controls the behavior for paste operations for a matched URL.
9817
+ *
9818
+ * non-protected-content: All matching URLs will be able to paste content copied from non-protected URLs.
9819
+ * all-content: All matching URLs will be able to paste content copied from both protected (copy.behavior = ‘protected') and non-protected (copy.behavior = 'allowed') URLs.
9820
+ */
9821
+ behavior: 'non-protected-content' | 'all-content';
9822
+ };
9823
+
9730
9824
  declare type Payload<Success extends boolean = boolean, Data = any> = {
9731
9825
  success: Success;
9732
9826
  data: Success extends true ? Data : never;
@@ -9870,7 +9964,11 @@ declare type PerDomainSettings = {
9870
9964
  /**
9871
9965
  * {@inheritdoc ScreenCaptureBehavior}
9872
9966
  */
9873
- screenCapture: ScreenCaptureBehavior;
9967
+ screenCapture?: ScreenCaptureBehavior;
9968
+ /**
9969
+ * {@inheritdoc ClipboardPermissions}
9970
+ */
9971
+ clipboard?: ClipboardPermissions;
9874
9972
  };
9875
9973
  };
9876
9974
 
@@ -17355,6 +17453,8 @@ declare namespace WebContentsEvents {
17355
17453
  FileDownloadProgressEvent,
17356
17454
  FileDownloadCompletedEvent,
17357
17455
  ContentBlockedEvent,
17456
+ ClipboardCopyBlockedEvent,
17457
+ ClipboardPasteBlockedEvent,
17358
17458
  Event_5 as Event,
17359
17459
  WebContentsEvent,
17360
17460
  WillPropagateWebContentsEvent,
package/out/mock.d.ts CHANGED
@@ -3273,6 +3273,40 @@ declare class Clipboard_2 extends Base {
3273
3273
  getAvailableFormats(type?: OpenFin_2.ClipboardSelectionType): Promise<Array<string>>;
3274
3274
  }
3275
3275
 
3276
+ /**
3277
+ * Generated when a copy operation is blocked through {@link OpenFin.DomainSettings}.
3278
+ * @interface
3279
+ */
3280
+ declare type ClipboardCopyBlockedEvent = NamedEvent & {
3281
+ type: 'clipboard-copy-blocked';
3282
+ /**
3283
+ * URL of the Window or View that generated the event.
3284
+ */
3285
+ url: string;
3286
+ reason: CopyBlockedEventReason;
3287
+ };
3288
+
3289
+ /**
3290
+ * Generated when a paste operation is blocked through {@link OpenFin.DomainSettings}.
3291
+ * @interface
3292
+ */
3293
+ declare type ClipboardPasteBlockedEvent = NamedEvent & {
3294
+ type: 'clipboard-paste-blocked';
3295
+ /**
3296
+ * URL of the Window or View that generated the event.
3297
+ */
3298
+ url: string;
3299
+ reason: PasteBlockedEventReason;
3300
+ };
3301
+
3302
+ /**
3303
+ * Clipboard Permissions
3304
+ */
3305
+ declare type ClipboardPermissions = {
3306
+ copy?: CopyPermissions;
3307
+ paste?: PastePermissions;
3308
+ };
3309
+
3276
3310
  /**
3277
3311
  * The type of clipboard to write to, can be 'clipboard' or 'selection'.
3278
3312
  * Defaults to 'clipboard'. Use 'selection' for linux only.
@@ -4057,6 +4091,40 @@ declare type CookieOption = {
4057
4091
  name: string;
4058
4092
  };
4059
4093
 
4094
+ /**
4095
+ * Reasons for a copy operation being blocked
4096
+ *
4097
+ * 'disabled': Copy operation is disabled through domain-based permissions.
4098
+ */
4099
+ declare type CopyBlockedEventReason = 'disabled';
4100
+
4101
+ /**
4102
+ * Control copy operations for a matched URL.
4103
+ */
4104
+ declare type CopyPermissions = {
4105
+ /**
4106
+ * @defaultValue 'allowed'
4107
+ *
4108
+ * Controls the behavior for copy operations for a matched URL.
4109
+ *
4110
+ * allowed: Enables all copy operations.
4111
+ * blocked: Disables all copy operations.
4112
+ * protected: Protects any copied content. Only URLs that have set paste.behavior: 'all-content' will be allowed to paste this content.
4113
+ */
4114
+ behavior: 'allowed' | 'blocked' | 'protected';
4115
+ /**
4116
+ * Additional copy operation options
4117
+ */
4118
+ options?: {
4119
+ /**
4120
+ * @defaultValue ''
4121
+ *
4122
+ * When setting behavior = 'protected' , this string will be pasted to other applications that do not have a matching URL instead of the original content.
4123
+ */
4124
+ replacementText: string;
4125
+ };
4126
+ };
4127
+
4060
4128
  /**
4061
4129
  * Defines and applies rounded corners for a frameless window. **NOTE:** On macOS corner is not ellipse but circle rounded by the
4062
4130
  * average of _height_ and _width_.
@@ -4908,7 +4976,7 @@ declare type Event_4 = (WebContentsEvents.Event<'view'> & {
4908
4976
  */
4909
4977
  declare type Event_5<Topic extends string> = {
4910
4978
  topic: Topic;
4911
- } & (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);
4979
+ } & (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);
4912
4980
 
4913
4981
  /**
4914
4982
  * [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
@@ -9870,6 +9938,9 @@ declare namespace OpenFin_2 {
9870
9938
  ContentPermission,
9871
9939
  ScreenCaptureBehavior,
9872
9940
  PerDomainSettings,
9941
+ CopyPermissions,
9942
+ PastePermissions,
9943
+ ClipboardPermissions,
9873
9944
  DomainSettingsRule,
9874
9945
  FileDownloadBehavior,
9875
9946
  FileDownloadBehaviorNames,
@@ -10045,6 +10116,29 @@ declare type PageTitleUpdatedEvent = NamedEvent & {
10045
10116
  title: string;
10046
10117
  };
10047
10118
 
10119
+ /**
10120
+ * Reasons for a paste operation being blocked
10121
+ *
10122
+ * 'invalid-data': Copy protection is enabled and the pasted data is invalid.
10123
+ * '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.
10124
+ */
10125
+ declare type PasteBlockedEventReason = 'invalid-data' | 'disabled';
10126
+
10127
+ /**
10128
+ * Control copy operations for a matched URL.
10129
+ */
10130
+ declare type PastePermissions = {
10131
+ /**
10132
+ * @defaultValue 'non-protected-content'
10133
+ *
10134
+ * Controls the behavior for paste operations for a matched URL.
10135
+ *
10136
+ * non-protected-content: All matching URLs will be able to paste content copied from non-protected URLs.
10137
+ * all-content: All matching URLs will be able to paste content copied from both protected (copy.behavior = ‘protected') and non-protected (copy.behavior = 'allowed') URLs.
10138
+ */
10139
+ behavior: 'non-protected-content' | 'all-content';
10140
+ };
10141
+
10048
10142
  declare type Payload<Success extends boolean = boolean, Data = any> = {
10049
10143
  success: Success;
10050
10144
  data: Success extends true ? Data : never;
@@ -10188,7 +10282,11 @@ declare type PerDomainSettings = {
10188
10282
  /**
10189
10283
  * {@inheritdoc ScreenCaptureBehavior}
10190
10284
  */
10191
- screenCapture: ScreenCaptureBehavior;
10285
+ screenCapture?: ScreenCaptureBehavior;
10286
+ /**
10287
+ * {@inheritdoc ClipboardPermissions}
10288
+ */
10289
+ clipboard?: ClipboardPermissions;
10192
10290
  };
10193
10291
  };
10194
10292
 
@@ -17806,6 +17904,8 @@ declare namespace WebContentsEvents {
17806
17904
  FileDownloadProgressEvent,
17807
17905
  FileDownloadCompletedEvent,
17808
17906
  ContentBlockedEvent,
17907
+ ClipboardCopyBlockedEvent,
17908
+ ClipboardPasteBlockedEvent,
17809
17909
  Event_5 as Event,
17810
17910
  WebContentsEvent,
17811
17911
  WillPropagateWebContentsEvent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "41.100.39",
3
+ "version": "41.100.42",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",