@openfin/core 40.103.10 → 40.103.12
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 +33 -27
- package/out/mock-beta.d.ts +33 -27
- package/out/mock-public.d.ts +33 -27
- package/out/stub.d.ts +33 -27
- package/out/stub.js +1172 -1200
- package/package.json +1 -1
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 =
|
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
|
-
*
|
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;
|
@@ -3866,7 +3861,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3866
3861
|
};
|
3867
3862
|
|
3868
3863
|
/**
|
3869
|
-
*
|
3864
|
+
* Behavior when displaying content from matched URLs.
|
3870
3865
|
*
|
3871
3866
|
* 'allow': The content url is allowed.
|
3872
3867
|
* 'block': The content url is blocked.
|
@@ -4103,6 +4098,7 @@ declare type CopyBlockedEventReason = 'disabled';
|
|
4103
4098
|
|
4104
4099
|
/**
|
4105
4100
|
* Control copy operations for a matched URL.
|
4101
|
+
* @interface
|
4106
4102
|
*/
|
4107
4103
|
declare type CopyPermissions = {
|
4108
4104
|
/**
|
@@ -4114,7 +4110,7 @@ declare type CopyPermissions = {
|
|
4114
4110
|
* block: Disables all copy operations.
|
4115
4111
|
* protect: Protects any copied content. Only URLs that have set paste.behavior: 'all-content' will be allowed to paste this content.
|
4116
4112
|
*/
|
4117
|
-
behavior:
|
4113
|
+
behavior: 'allow' | 'block' | 'protect';
|
4118
4114
|
/**
|
4119
4115
|
* Additional copy operation options
|
4120
4116
|
*/
|
@@ -4355,6 +4351,7 @@ declare type DefaultDomainSettings = DomainSettings;
|
|
4355
4351
|
|
4356
4352
|
/**
|
4357
4353
|
* @deprecated Use {@link OpenFin.DomainSettingsRule} instead.
|
4354
|
+
* @interface
|
4358
4355
|
*/
|
4359
4356
|
declare type DefaultDomainSettingsRule = DomainSettingsRule;
|
4360
4357
|
|
@@ -4558,9 +4555,8 @@ declare type DomainSettings = {
|
|
4558
4555
|
};
|
4559
4556
|
|
4560
4557
|
/**
|
4561
|
-
* @interface
|
4562
|
-
*
|
4563
4558
|
* Defines domain-conditional settings for an OpenFin application.
|
4559
|
+
* @interface
|
4564
4560
|
*/
|
4565
4561
|
declare type DomainSettingsRule = {
|
4566
4562
|
/**
|
@@ -5540,6 +5536,7 @@ declare type FileDownloadProgressEvent = FileDownloadEvent & {
|
|
5540
5536
|
* Domain-conditional rules for file downloads.
|
5541
5537
|
*
|
5542
5538
|
* @remarks See: https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads
|
5539
|
+
* @interface
|
5543
5540
|
*/
|
5544
5541
|
declare type FileDownloadSettings = {
|
5545
5542
|
/**
|
@@ -7780,7 +7777,7 @@ declare type LaunchExternalProcessListener = (code: ExitCode) => void;
|
|
7780
7777
|
* @interface
|
7781
7778
|
*/
|
7782
7779
|
declare type LaunchExternalProcessRule = {
|
7783
|
-
behavior:
|
7780
|
+
behavior: 'allow' | 'block';
|
7784
7781
|
match: string[];
|
7785
7782
|
};
|
7786
7783
|
|
@@ -9951,12 +9948,10 @@ declare namespace OpenFin_2 {
|
|
9951
9948
|
DomainApiSettings,
|
9952
9949
|
BaseContentBehavior,
|
9953
9950
|
ContentBehavior,
|
9954
|
-
BaseStructuredContentBehavior,
|
9955
9951
|
BrowserContentBehavior,
|
9956
9952
|
StructuredContentBehavior,
|
9957
9953
|
StructuredContentPermissions,
|
9958
9954
|
ContentPermission,
|
9959
|
-
AllowOrBlock,
|
9960
9955
|
ScreenCaptureBehavior,
|
9961
9956
|
PerDomainSettings,
|
9962
9957
|
CopyPermissions,
|
@@ -10152,6 +10147,7 @@ declare type PasteBlockedEventReason = 'invalid-data' | 'disabled';
|
|
10152
10147
|
|
10153
10148
|
/**
|
10154
10149
|
* Control copy operations for a matched URL.
|
10150
|
+
* @interface
|
10155
10151
|
*/
|
10156
10152
|
declare type PastePermissions = {
|
10157
10153
|
/**
|
@@ -10322,11 +10318,11 @@ declare type PerDomainSettings = {
|
|
10322
10318
|
* Defaults to 'allow'.
|
10323
10319
|
* Disables the `print` option in the context menu, and prevents printing via both OpenFin and browser APIs.
|
10324
10320
|
*/
|
10325
|
-
print?:
|
10321
|
+
print?: 'allow' | 'block';
|
10326
10322
|
/**
|
10327
10323
|
* * Controls whether HTML5 dragging for this content is allowed or blocked.
|
10328
10324
|
*/
|
10329
|
-
drag?:
|
10325
|
+
drag?: 'allow' | 'block';
|
10330
10326
|
};
|
10331
10327
|
};
|
10332
10328
|
|
@@ -11805,6 +11801,14 @@ declare interface PlatformProvider {
|
|
11805
11801
|
* ```
|
11806
11802
|
*/
|
11807
11803
|
handleFailedViewCreation(viewIdentity: OpenFin_2.Identity, error: Error): Promise<OpenFin_2.ViewCreationSuccess | void>;
|
11804
|
+
/**
|
11805
|
+
* Determines whether a given window should prevent the application from quitting when it is closed.
|
11806
|
+
* This method is called when checking if closing a window should trigger application termination.
|
11807
|
+
*
|
11808
|
+
* @param windowIdentity - The identity of the window being checked.
|
11809
|
+
* @returns A promise resolving to `true` if the window should prevent the app from quitting, otherwise `false`.
|
11810
|
+
*/
|
11811
|
+
shouldWindowPreventQuit(windowIdentity: OpenFin_2.Identity): Promise<boolean>;
|
11808
11812
|
}
|
11809
11813
|
|
11810
11814
|
/**
|
@@ -13595,10 +13599,9 @@ declare type RvmLaunchOptions = {
|
|
13595
13599
|
};
|
13596
13600
|
|
13597
13601
|
/**
|
13598
|
-
* @interface
|
13599
13602
|
* Controls whether this content should be allowed or blocked when capturing the screen.
|
13600
13603
|
*/
|
13601
|
-
declare type ScreenCaptureBehavior =
|
13604
|
+
declare type ScreenCaptureBehavior = 'allow' | 'block';
|
13602
13605
|
|
13603
13606
|
/**
|
13604
13607
|
* Returned by getScreenCapturePermission. Includes sub-entity permission states and the resulting permission.
|
@@ -14090,12 +14093,15 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
|
|
14090
14093
|
};
|
14091
14094
|
|
14092
14095
|
/**
|
14093
|
-
*
|
14096
|
+
* Behavior when displaying content from matched URLs.
|
14094
14097
|
*/
|
14095
|
-
declare type StructuredContentBehavior =
|
14098
|
+
declare type StructuredContentBehavior = {
|
14099
|
+
behavior: BaseContentBehavior;
|
14100
|
+
} | BrowserContentBehavior;
|
14096
14101
|
|
14097
14102
|
/**
|
14098
|
-
*
|
14103
|
+
* Behavior when displaying content from matched URLs. Varies depending on type of navigation.
|
14104
|
+
* @interface
|
14099
14105
|
*/
|
14100
14106
|
declare type StructuredContentPermissions = {
|
14101
14107
|
/**
|