@openfin/core 42.100.10 → 42.100.12

Sign up to get free protection for your applications and to get access to all the features.
package/out/stub.d.ts CHANGED
@@ -84,12 +84,6 @@ declare type AlertRequestedEvent = BaseEvent_5 & {
84
84
  url: string;
85
85
  };
86
86
 
87
- /**
88
- * @interface
89
- * A string literal union that represents possible values for behaviors in {@link DomainSettings}
90
- */
91
- declare type AllowOrBlock = 'allow' | 'block';
92
-
93
87
  declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
94
88
 
95
89
  declare type AnyStrategy = ChannelStrategy<any>;
@@ -1723,7 +1717,7 @@ declare type BaseConfig = {
1723
1717
  timeout?: number;
1724
1718
  };
1725
1719
 
1726
- declare type BaseContentBehavior = AllowOrBlock;
1720
+ declare type BaseContentBehavior = 'allow' | 'block';
1727
1721
 
1728
1722
  /**
1729
1723
  * Properties shared by all content creation rules, regardless of context.
@@ -1868,10 +1862,6 @@ declare type BaseLoadFailedEvent = NamedEvent & {
1868
1862
  isMainFrame: boolean;
1869
1863
  };
1870
1864
 
1871
- declare type BaseStructuredContentBehavior = {
1872
- behavior: BaseContentBehavior;
1873
- };
1874
-
1875
1865
  declare type BaseUrlEvent = NamedEvent & {
1876
1866
  type: 'url-changed';
1877
1867
  url: string;
@@ -1972,11 +1962,15 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
1972
1962
 
1973
1963
  declare type BoundsEvent = BaseEvent_5 & OpenFin_2.Bounds;
1974
1964
 
1965
+ /**
1966
+ * Opens matched URLs in the browser.
1967
+ *
1968
+ * @interface
1969
+ */
1975
1970
  declare type BrowserContentBehavior = {
1976
1971
  behavior: 'browser';
1977
1972
  /**
1978
- * Additional property that can be specified when setting the behavior to browser.
1979
- * When set to true will close the Window or View that tried to navigate or redirect to the blocked URL.
1973
+ * When true, closes the window or view that initiated the navigation.
1980
1974
  */
1981
1975
  closeExisting?: boolean;
1982
1976
  };
@@ -3311,6 +3305,7 @@ declare type ClipboardPasteBlockedEvent = NamedEvent & {
3311
3305
 
3312
3306
  /**
3313
3307
  * Clipboard Permissions
3308
+ * @interface
3314
3309
  */
3315
3310
  declare type ClipboardPermissions = {
3316
3311
  copy?: CopyPermissions;
@@ -3873,7 +3868,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
3873
3868
  };
3874
3869
 
3875
3870
  /**
3876
- * Sets the behavior for when a Window or View navigates or redirects to a matching URL
3871
+ * Behavior when displaying content from matched URLs.
3877
3872
  *
3878
3873
  * 'allow': The content url is allowed.
3879
3874
  * 'block': The content url is blocked.
@@ -4110,6 +4105,7 @@ declare type CopyBlockedEventReason = 'disabled';
4110
4105
 
4111
4106
  /**
4112
4107
  * Control copy operations for a matched URL.
4108
+ * @interface
4113
4109
  */
4114
4110
  declare type CopyPermissions = {
4115
4111
  /**
@@ -4121,7 +4117,7 @@ declare type CopyPermissions = {
4121
4117
  * block: Disables all copy operations.
4122
4118
  * protect: Protects any copied content. Only URLs that have set paste.behavior: 'all-content' will be allowed to paste this content.
4123
4119
  */
4124
- behavior: AllowOrBlock | 'protect';
4120
+ behavior: 'allow' | 'block' | 'protect';
4125
4121
  /**
4126
4122
  * Additional copy operation options
4127
4123
  */
@@ -4362,6 +4358,7 @@ declare type DefaultDomainSettings = DomainSettings;
4362
4358
 
4363
4359
  /**
4364
4360
  * @deprecated Use {@link OpenFin.DomainSettingsRule} instead.
4361
+ * @interface
4365
4362
  */
4366
4363
  declare type DefaultDomainSettingsRule = DomainSettingsRule;
4367
4364
 
@@ -4565,9 +4562,8 @@ declare type DomainSettings = {
4565
4562
  };
4566
4563
 
4567
4564
  /**
4568
- * @interface
4569
- *
4570
4565
  * Defines domain-conditional settings for an OpenFin application.
4566
+ * @interface
4571
4567
  */
4572
4568
  declare type DomainSettingsRule = {
4573
4569
  /**
@@ -5551,6 +5547,7 @@ declare type FileDownloadProgressEvent = FileDownloadEvent & {
5551
5547
  * Domain-conditional rules for file downloads.
5552
5548
  *
5553
5549
  * @remarks See: https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads
5550
+ * @interface
5554
5551
  */
5555
5552
  declare type FileDownloadSettings = {
5556
5553
  /**
@@ -7791,7 +7788,7 @@ declare type LaunchExternalProcessListener = (code: ExitCode) => void;
7791
7788
  * @interface
7792
7789
  */
7793
7790
  declare type LaunchExternalProcessRule = {
7794
- behavior: AllowOrBlock;
7791
+ behavior: 'allow' | 'block';
7795
7792
  match: string[];
7796
7793
  };
7797
7794
 
@@ -9993,12 +9990,10 @@ declare namespace OpenFin_2 {
9993
9990
  DomainApiSettings,
9994
9991
  BaseContentBehavior,
9995
9992
  ContentBehavior,
9996
- BaseStructuredContentBehavior,
9997
9993
  BrowserContentBehavior,
9998
9994
  StructuredContentBehavior,
9999
9995
  StructuredContentPermissions,
10000
9996
  ContentPermission,
10001
- AllowOrBlock,
10002
9997
  ScreenCaptureBehavior,
10003
9998
  PerDomainSettings,
10004
9999
  CopyPermissions,
@@ -10194,6 +10189,7 @@ declare type PasteBlockedEventReason = 'invalid-data' | 'disabled';
10194
10189
 
10195
10190
  /**
10196
10191
  * Control copy operations for a matched URL.
10192
+ * @interface
10197
10193
  */
10198
10194
  declare type PastePermissions = {
10199
10195
  /**
@@ -10364,11 +10360,11 @@ declare type PerDomainSettings = {
10364
10360
  * Defaults to 'allow'.
10365
10361
  * Disables the `print` option in the context menu, and prevents printing via both OpenFin and browser APIs.
10366
10362
  */
10367
- print?: AllowOrBlock;
10363
+ print?: 'allow' | 'block';
10368
10364
  /**
10369
10365
  * * Controls whether HTML5 dragging for this content is allowed or blocked.
10370
10366
  */
10371
- drag?: AllowOrBlock;
10367
+ drag?: 'allow' | 'block';
10372
10368
  };
10373
10369
  };
10374
10370
 
@@ -11847,6 +11843,14 @@ declare interface PlatformProvider {
11847
11843
  * ```
11848
11844
  */
11849
11845
  handleFailedViewCreation(viewIdentity: OpenFin_2.Identity, error: Error): Promise<OpenFin_2.ViewCreationSuccess | void>;
11846
+ /**
11847
+ * Determines whether a given window should prevent the application from quitting when it is closed.
11848
+ * This method is called when checking if closing a window should trigger application termination.
11849
+ *
11850
+ * @param windowIdentity - The identity of the window being checked.
11851
+ * @returns A promise resolving to `true` if the window should prevent the app from quitting, otherwise `false`.
11852
+ */
11853
+ shouldWindowPreventQuit(windowIdentity: OpenFin_2.Identity): Promise<boolean>;
11850
11854
  }
11851
11855
 
11852
11856
  /**
@@ -13637,10 +13641,9 @@ declare type RvmLaunchOptions = {
13637
13641
  };
13638
13642
 
13639
13643
  /**
13640
- * @interface
13641
13644
  * Controls whether this content should be allowed or blocked when capturing the screen.
13642
13645
  */
13643
- declare type ScreenCaptureBehavior = AllowOrBlock;
13646
+ declare type ScreenCaptureBehavior = 'allow' | 'block';
13644
13647
 
13645
13648
  /**
13646
13649
  * Returned by getScreenCapturePermission. Includes sub-entity permission states and the resulting permission.
@@ -14132,12 +14135,15 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
14132
14135
  };
14133
14136
 
14134
14137
  /**
14135
- * Allows more control over content behaviors
14138
+ * Behavior when displaying content from matched URLs.
14136
14139
  */
14137
- declare type StructuredContentBehavior = BaseStructuredContentBehavior | BrowserContentBehavior;
14140
+ declare type StructuredContentBehavior = {
14141
+ behavior: BaseContentBehavior;
14142
+ } | BrowserContentBehavior;
14138
14143
 
14139
14144
  /**
14140
- * Specify rules for specific actions.
14145
+ * Behavior when displaying content from matched URLs. Varies depending on type of navigation.
14146
+ * @interface
14141
14147
  */
14142
14148
  declare type StructuredContentPermissions = {
14143
14149
  /**