@openfin/core 42.100.11 → 42.100.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 +1137 -1158
- package/package.json +1 -1
package/out/mock-alpha.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>;
|
|
@@ -1691,7 +1685,7 @@ declare type BaseConfig = {
|
|
|
1691
1685
|
timeout?: number;
|
|
1692
1686
|
};
|
|
1693
1687
|
|
|
1694
|
-
declare type BaseContentBehavior =
|
|
1688
|
+
declare type BaseContentBehavior = 'allow' | 'block';
|
|
1695
1689
|
|
|
1696
1690
|
/**
|
|
1697
1691
|
* Properties shared by all content creation rules, regardless of context.
|
|
@@ -1836,10 +1830,6 @@ declare type BaseLoadFailedEvent = NamedEvent & {
|
|
|
1836
1830
|
isMainFrame: boolean;
|
|
1837
1831
|
};
|
|
1838
1832
|
|
|
1839
|
-
declare type BaseStructuredContentBehavior = {
|
|
1840
|
-
behavior: BaseContentBehavior;
|
|
1841
|
-
};
|
|
1842
|
-
|
|
1843
1833
|
declare type BaseUrlEvent = NamedEvent & {
|
|
1844
1834
|
type: 'url-changed';
|
|
1845
1835
|
url: string;
|
|
@@ -1940,11 +1930,15 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
|
|
|
1940
1930
|
|
|
1941
1931
|
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.Bounds;
|
|
1942
1932
|
|
|
1933
|
+
/**
|
|
1934
|
+
* Opens matched URLs in the browser.
|
|
1935
|
+
*
|
|
1936
|
+
* @interface
|
|
1937
|
+
*/
|
|
1943
1938
|
declare type BrowserContentBehavior = {
|
|
1944
1939
|
behavior: 'browser';
|
|
1945
1940
|
/**
|
|
1946
|
-
*
|
|
1947
|
-
* When set to true will close the Window or View that tried to navigate or redirect to the blocked URL.
|
|
1941
|
+
* When true, closes the window or view that initiated the navigation.
|
|
1948
1942
|
*/
|
|
1949
1943
|
closeExisting?: boolean;
|
|
1950
1944
|
};
|
|
@@ -3255,6 +3249,7 @@ declare type ClipboardPasteBlockedEvent = NamedEvent & {
|
|
|
3255
3249
|
|
|
3256
3250
|
/**
|
|
3257
3251
|
* Clipboard Permissions
|
|
3252
|
+
* @interface
|
|
3258
3253
|
*/
|
|
3259
3254
|
declare type ClipboardPermissions = {
|
|
3260
3255
|
copy?: CopyPermissions;
|
|
@@ -3814,7 +3809,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
|
3814
3809
|
};
|
|
3815
3810
|
|
|
3816
3811
|
/**
|
|
3817
|
-
*
|
|
3812
|
+
* Behavior when displaying content from matched URLs.
|
|
3818
3813
|
*
|
|
3819
3814
|
* 'allow': The content url is allowed.
|
|
3820
3815
|
* 'block': The content url is blocked.
|
|
@@ -4051,6 +4046,7 @@ declare type CopyBlockedEventReason = 'disabled';
|
|
|
4051
4046
|
|
|
4052
4047
|
/**
|
|
4053
4048
|
* Control copy operations for a matched URL.
|
|
4049
|
+
* @interface
|
|
4054
4050
|
*/
|
|
4055
4051
|
declare type CopyPermissions = {
|
|
4056
4052
|
/**
|
|
@@ -4062,7 +4058,7 @@ declare type CopyPermissions = {
|
|
|
4062
4058
|
* block: Disables all copy operations.
|
|
4063
4059
|
* protect: Protects any copied content. Only URLs that have set paste.behavior: 'all-content' will be allowed to paste this content.
|
|
4064
4060
|
*/
|
|
4065
|
-
behavior:
|
|
4061
|
+
behavior: 'allow' | 'block' | 'protect';
|
|
4066
4062
|
/**
|
|
4067
4063
|
* Additional copy operation options
|
|
4068
4064
|
*/
|
|
@@ -4303,6 +4299,7 @@ declare type DefaultDomainSettings = DomainSettings;
|
|
|
4303
4299
|
|
|
4304
4300
|
/**
|
|
4305
4301
|
* @deprecated Use {@link OpenFin.DomainSettingsRule} instead.
|
|
4302
|
+
* @interface
|
|
4306
4303
|
*/
|
|
4307
4304
|
declare type DefaultDomainSettingsRule = DomainSettingsRule;
|
|
4308
4305
|
|
|
@@ -4506,9 +4503,8 @@ declare type DomainSettings = {
|
|
|
4506
4503
|
};
|
|
4507
4504
|
|
|
4508
4505
|
/**
|
|
4509
|
-
* @interface
|
|
4510
|
-
*
|
|
4511
4506
|
* Defines domain-conditional settings for an OpenFin application.
|
|
4507
|
+
* @interface
|
|
4512
4508
|
*/
|
|
4513
4509
|
declare type DomainSettingsRule = {
|
|
4514
4510
|
/**
|
|
@@ -5466,6 +5462,7 @@ declare type FileDownloadProgressEvent = FileDownloadEvent & {
|
|
|
5466
5462
|
* Domain-conditional rules for file downloads.
|
|
5467
5463
|
*
|
|
5468
5464
|
* @remarks See: https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads
|
|
5465
|
+
* @interface
|
|
5469
5466
|
*/
|
|
5470
5467
|
declare type FileDownloadSettings = {
|
|
5471
5468
|
/**
|
|
@@ -7674,7 +7671,7 @@ declare type LaunchExternalProcessListener = (code: ExitCode) => void;
|
|
|
7674
7671
|
* @interface
|
|
7675
7672
|
*/
|
|
7676
7673
|
declare type LaunchExternalProcessRule = {
|
|
7677
|
-
behavior:
|
|
7674
|
+
behavior: 'allow' | 'block';
|
|
7678
7675
|
match: string[];
|
|
7679
7676
|
};
|
|
7680
7677
|
|
|
@@ -9675,12 +9672,10 @@ declare namespace OpenFin_2 {
|
|
|
9675
9672
|
DomainApiSettings,
|
|
9676
9673
|
BaseContentBehavior,
|
|
9677
9674
|
ContentBehavior,
|
|
9678
|
-
BaseStructuredContentBehavior,
|
|
9679
9675
|
BrowserContentBehavior,
|
|
9680
9676
|
StructuredContentBehavior,
|
|
9681
9677
|
StructuredContentPermissions,
|
|
9682
9678
|
ContentPermission,
|
|
9683
|
-
AllowOrBlock,
|
|
9684
9679
|
ScreenCaptureBehavior,
|
|
9685
9680
|
PerDomainSettings,
|
|
9686
9681
|
CopyPermissions,
|
|
@@ -9876,6 +9871,7 @@ declare type PasteBlockedEventReason = 'invalid-data' | 'disabled';
|
|
|
9876
9871
|
|
|
9877
9872
|
/**
|
|
9878
9873
|
* Control copy operations for a matched URL.
|
|
9874
|
+
* @interface
|
|
9879
9875
|
*/
|
|
9880
9876
|
declare type PastePermissions = {
|
|
9881
9877
|
/**
|
|
@@ -10046,11 +10042,11 @@ declare type PerDomainSettings = {
|
|
|
10046
10042
|
* Defaults to 'allow'.
|
|
10047
10043
|
* Disables the `print` option in the context menu, and prevents printing via both OpenFin and browser APIs.
|
|
10048
10044
|
*/
|
|
10049
|
-
print?:
|
|
10045
|
+
print?: 'allow' | 'block';
|
|
10050
10046
|
/**
|
|
10051
10047
|
* * Controls whether HTML5 dragging for this content is allowed or blocked.
|
|
10052
10048
|
*/
|
|
10053
|
-
drag?:
|
|
10049
|
+
drag?: 'allow' | 'block';
|
|
10054
10050
|
};
|
|
10055
10051
|
};
|
|
10056
10052
|
|
|
@@ -11446,6 +11442,14 @@ declare interface PlatformProvider {
|
|
|
11446
11442
|
* ```
|
|
11447
11443
|
*/
|
|
11448
11444
|
handleFailedViewCreation(viewIdentity: OpenFin_2.Identity, error: Error): Promise<OpenFin_2.ViewCreationSuccess | void>;
|
|
11445
|
+
/**
|
|
11446
|
+
* Determines whether a given window should prevent the application from quitting when it is closed.
|
|
11447
|
+
* This method is called when checking if closing a window should trigger application termination.
|
|
11448
|
+
*
|
|
11449
|
+
* @param windowIdentity - The identity of the window being checked.
|
|
11450
|
+
* @returns A promise resolving to `true` if the window should prevent the app from quitting, otherwise `false`.
|
|
11451
|
+
*/
|
|
11452
|
+
shouldWindowPreventQuit(windowIdentity: OpenFin_2.Identity): Promise<boolean>;
|
|
11449
11453
|
}
|
|
11450
11454
|
|
|
11451
11455
|
/**
|
|
@@ -13236,10 +13240,9 @@ declare type RvmLaunchOptions = {
|
|
|
13236
13240
|
};
|
|
13237
13241
|
|
|
13238
13242
|
/**
|
|
13239
|
-
* @interface
|
|
13240
13243
|
* Controls whether this content should be allowed or blocked when capturing the screen.
|
|
13241
13244
|
*/
|
|
13242
|
-
declare type ScreenCaptureBehavior =
|
|
13245
|
+
declare type ScreenCaptureBehavior = 'allow' | 'block';
|
|
13243
13246
|
|
|
13244
13247
|
/**
|
|
13245
13248
|
* Returned by getScreenCapturePermission. Includes sub-entity permission states and the resulting permission.
|
|
@@ -13728,12 +13731,15 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
|
|
|
13728
13731
|
};
|
|
13729
13732
|
|
|
13730
13733
|
/**
|
|
13731
|
-
*
|
|
13734
|
+
* Behavior when displaying content from matched URLs.
|
|
13732
13735
|
*/
|
|
13733
|
-
declare type StructuredContentBehavior =
|
|
13736
|
+
declare type StructuredContentBehavior = {
|
|
13737
|
+
behavior: BaseContentBehavior;
|
|
13738
|
+
} | BrowserContentBehavior;
|
|
13734
13739
|
|
|
13735
13740
|
/**
|
|
13736
|
-
*
|
|
13741
|
+
* Behavior when displaying content from matched URLs. Varies depending on type of navigation.
|
|
13742
|
+
* @interface
|
|
13737
13743
|
*/
|
|
13738
13744
|
declare type StructuredContentPermissions = {
|
|
13739
13745
|
/**
|
package/out/mock-beta.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>;
|
|
@@ -1691,7 +1685,7 @@ declare type BaseConfig = {
|
|
|
1691
1685
|
timeout?: number;
|
|
1692
1686
|
};
|
|
1693
1687
|
|
|
1694
|
-
declare type BaseContentBehavior =
|
|
1688
|
+
declare type BaseContentBehavior = 'allow' | 'block';
|
|
1695
1689
|
|
|
1696
1690
|
/**
|
|
1697
1691
|
* Properties shared by all content creation rules, regardless of context.
|
|
@@ -1836,10 +1830,6 @@ declare type BaseLoadFailedEvent = NamedEvent & {
|
|
|
1836
1830
|
isMainFrame: boolean;
|
|
1837
1831
|
};
|
|
1838
1832
|
|
|
1839
|
-
declare type BaseStructuredContentBehavior = {
|
|
1840
|
-
behavior: BaseContentBehavior;
|
|
1841
|
-
};
|
|
1842
|
-
|
|
1843
1833
|
declare type BaseUrlEvent = NamedEvent & {
|
|
1844
1834
|
type: 'url-changed';
|
|
1845
1835
|
url: string;
|
|
@@ -1940,11 +1930,15 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
|
|
|
1940
1930
|
|
|
1941
1931
|
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.Bounds;
|
|
1942
1932
|
|
|
1933
|
+
/**
|
|
1934
|
+
* Opens matched URLs in the browser.
|
|
1935
|
+
*
|
|
1936
|
+
* @interface
|
|
1937
|
+
*/
|
|
1943
1938
|
declare type BrowserContentBehavior = {
|
|
1944
1939
|
behavior: 'browser';
|
|
1945
1940
|
/**
|
|
1946
|
-
*
|
|
1947
|
-
* When set to true will close the Window or View that tried to navigate or redirect to the blocked URL.
|
|
1941
|
+
* When true, closes the window or view that initiated the navigation.
|
|
1948
1942
|
*/
|
|
1949
1943
|
closeExisting?: boolean;
|
|
1950
1944
|
};
|
|
@@ -3255,6 +3249,7 @@ declare type ClipboardPasteBlockedEvent = NamedEvent & {
|
|
|
3255
3249
|
|
|
3256
3250
|
/**
|
|
3257
3251
|
* Clipboard Permissions
|
|
3252
|
+
* @interface
|
|
3258
3253
|
*/
|
|
3259
3254
|
declare type ClipboardPermissions = {
|
|
3260
3255
|
copy?: CopyPermissions;
|
|
@@ -3814,7 +3809,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
|
3814
3809
|
};
|
|
3815
3810
|
|
|
3816
3811
|
/**
|
|
3817
|
-
*
|
|
3812
|
+
* Behavior when displaying content from matched URLs.
|
|
3818
3813
|
*
|
|
3819
3814
|
* 'allow': The content url is allowed.
|
|
3820
3815
|
* 'block': The content url is blocked.
|
|
@@ -4051,6 +4046,7 @@ declare type CopyBlockedEventReason = 'disabled';
|
|
|
4051
4046
|
|
|
4052
4047
|
/**
|
|
4053
4048
|
* Control copy operations for a matched URL.
|
|
4049
|
+
* @interface
|
|
4054
4050
|
*/
|
|
4055
4051
|
declare type CopyPermissions = {
|
|
4056
4052
|
/**
|
|
@@ -4062,7 +4058,7 @@ declare type CopyPermissions = {
|
|
|
4062
4058
|
* block: Disables all copy operations.
|
|
4063
4059
|
* protect: Protects any copied content. Only URLs that have set paste.behavior: 'all-content' will be allowed to paste this content.
|
|
4064
4060
|
*/
|
|
4065
|
-
behavior:
|
|
4061
|
+
behavior: 'allow' | 'block' | 'protect';
|
|
4066
4062
|
/**
|
|
4067
4063
|
* Additional copy operation options
|
|
4068
4064
|
*/
|
|
@@ -4303,6 +4299,7 @@ declare type DefaultDomainSettings = DomainSettings;
|
|
|
4303
4299
|
|
|
4304
4300
|
/**
|
|
4305
4301
|
* @deprecated Use {@link OpenFin.DomainSettingsRule} instead.
|
|
4302
|
+
* @interface
|
|
4306
4303
|
*/
|
|
4307
4304
|
declare type DefaultDomainSettingsRule = DomainSettingsRule;
|
|
4308
4305
|
|
|
@@ -4506,9 +4503,8 @@ declare type DomainSettings = {
|
|
|
4506
4503
|
};
|
|
4507
4504
|
|
|
4508
4505
|
/**
|
|
4509
|
-
* @interface
|
|
4510
|
-
*
|
|
4511
4506
|
* Defines domain-conditional settings for an OpenFin application.
|
|
4507
|
+
* @interface
|
|
4512
4508
|
*/
|
|
4513
4509
|
declare type DomainSettingsRule = {
|
|
4514
4510
|
/**
|
|
@@ -5466,6 +5462,7 @@ declare type FileDownloadProgressEvent = FileDownloadEvent & {
|
|
|
5466
5462
|
* Domain-conditional rules for file downloads.
|
|
5467
5463
|
*
|
|
5468
5464
|
* @remarks See: https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads
|
|
5465
|
+
* @interface
|
|
5469
5466
|
*/
|
|
5470
5467
|
declare type FileDownloadSettings = {
|
|
5471
5468
|
/**
|
|
@@ -7674,7 +7671,7 @@ declare type LaunchExternalProcessListener = (code: ExitCode) => void;
|
|
|
7674
7671
|
* @interface
|
|
7675
7672
|
*/
|
|
7676
7673
|
declare type LaunchExternalProcessRule = {
|
|
7677
|
-
behavior:
|
|
7674
|
+
behavior: 'allow' | 'block';
|
|
7678
7675
|
match: string[];
|
|
7679
7676
|
};
|
|
7680
7677
|
|
|
@@ -9675,12 +9672,10 @@ declare namespace OpenFin_2 {
|
|
|
9675
9672
|
DomainApiSettings,
|
|
9676
9673
|
BaseContentBehavior,
|
|
9677
9674
|
ContentBehavior,
|
|
9678
|
-
BaseStructuredContentBehavior,
|
|
9679
9675
|
BrowserContentBehavior,
|
|
9680
9676
|
StructuredContentBehavior,
|
|
9681
9677
|
StructuredContentPermissions,
|
|
9682
9678
|
ContentPermission,
|
|
9683
|
-
AllowOrBlock,
|
|
9684
9679
|
ScreenCaptureBehavior,
|
|
9685
9680
|
PerDomainSettings,
|
|
9686
9681
|
CopyPermissions,
|
|
@@ -9876,6 +9871,7 @@ declare type PasteBlockedEventReason = 'invalid-data' | 'disabled';
|
|
|
9876
9871
|
|
|
9877
9872
|
/**
|
|
9878
9873
|
* Control copy operations for a matched URL.
|
|
9874
|
+
* @interface
|
|
9879
9875
|
*/
|
|
9880
9876
|
declare type PastePermissions = {
|
|
9881
9877
|
/**
|
|
@@ -10046,11 +10042,11 @@ declare type PerDomainSettings = {
|
|
|
10046
10042
|
* Defaults to 'allow'.
|
|
10047
10043
|
* Disables the `print` option in the context menu, and prevents printing via both OpenFin and browser APIs.
|
|
10048
10044
|
*/
|
|
10049
|
-
print?:
|
|
10045
|
+
print?: 'allow' | 'block';
|
|
10050
10046
|
/**
|
|
10051
10047
|
* * Controls whether HTML5 dragging for this content is allowed or blocked.
|
|
10052
10048
|
*/
|
|
10053
|
-
drag?:
|
|
10049
|
+
drag?: 'allow' | 'block';
|
|
10054
10050
|
};
|
|
10055
10051
|
};
|
|
10056
10052
|
|
|
@@ -11446,6 +11442,14 @@ declare interface PlatformProvider {
|
|
|
11446
11442
|
* ```
|
|
11447
11443
|
*/
|
|
11448
11444
|
handleFailedViewCreation(viewIdentity: OpenFin_2.Identity, error: Error): Promise<OpenFin_2.ViewCreationSuccess | void>;
|
|
11445
|
+
/**
|
|
11446
|
+
* Determines whether a given window should prevent the application from quitting when it is closed.
|
|
11447
|
+
* This method is called when checking if closing a window should trigger application termination.
|
|
11448
|
+
*
|
|
11449
|
+
* @param windowIdentity - The identity of the window being checked.
|
|
11450
|
+
* @returns A promise resolving to `true` if the window should prevent the app from quitting, otherwise `false`.
|
|
11451
|
+
*/
|
|
11452
|
+
shouldWindowPreventQuit(windowIdentity: OpenFin_2.Identity): Promise<boolean>;
|
|
11449
11453
|
}
|
|
11450
11454
|
|
|
11451
11455
|
/**
|
|
@@ -13236,10 +13240,9 @@ declare type RvmLaunchOptions = {
|
|
|
13236
13240
|
};
|
|
13237
13241
|
|
|
13238
13242
|
/**
|
|
13239
|
-
* @interface
|
|
13240
13243
|
* Controls whether this content should be allowed or blocked when capturing the screen.
|
|
13241
13244
|
*/
|
|
13242
|
-
declare type ScreenCaptureBehavior =
|
|
13245
|
+
declare type ScreenCaptureBehavior = 'allow' | 'block';
|
|
13243
13246
|
|
|
13244
13247
|
/**
|
|
13245
13248
|
* Returned by getScreenCapturePermission. Includes sub-entity permission states and the resulting permission.
|
|
@@ -13728,12 +13731,15 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
|
|
|
13728
13731
|
};
|
|
13729
13732
|
|
|
13730
13733
|
/**
|
|
13731
|
-
*
|
|
13734
|
+
* Behavior when displaying content from matched URLs.
|
|
13732
13735
|
*/
|
|
13733
|
-
declare type StructuredContentBehavior =
|
|
13736
|
+
declare type StructuredContentBehavior = {
|
|
13737
|
+
behavior: BaseContentBehavior;
|
|
13738
|
+
} | BrowserContentBehavior;
|
|
13734
13739
|
|
|
13735
13740
|
/**
|
|
13736
|
-
*
|
|
13741
|
+
* Behavior when displaying content from matched URLs. Varies depending on type of navigation.
|
|
13742
|
+
* @interface
|
|
13737
13743
|
*/
|
|
13738
13744
|
declare type StructuredContentPermissions = {
|
|
13739
13745
|
/**
|
package/out/mock-public.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>;
|
|
@@ -1691,7 +1685,7 @@ declare type BaseConfig = {
|
|
|
1691
1685
|
timeout?: number;
|
|
1692
1686
|
};
|
|
1693
1687
|
|
|
1694
|
-
declare type BaseContentBehavior =
|
|
1688
|
+
declare type BaseContentBehavior = 'allow' | 'block';
|
|
1695
1689
|
|
|
1696
1690
|
/**
|
|
1697
1691
|
* Properties shared by all content creation rules, regardless of context.
|
|
@@ -1836,10 +1830,6 @@ declare type BaseLoadFailedEvent = NamedEvent & {
|
|
|
1836
1830
|
isMainFrame: boolean;
|
|
1837
1831
|
};
|
|
1838
1832
|
|
|
1839
|
-
declare type BaseStructuredContentBehavior = {
|
|
1840
|
-
behavior: BaseContentBehavior;
|
|
1841
|
-
};
|
|
1842
|
-
|
|
1843
1833
|
declare type BaseUrlEvent = NamedEvent & {
|
|
1844
1834
|
type: 'url-changed';
|
|
1845
1835
|
url: string;
|
|
@@ -1940,11 +1930,15 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
|
|
|
1940
1930
|
|
|
1941
1931
|
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.Bounds;
|
|
1942
1932
|
|
|
1933
|
+
/**
|
|
1934
|
+
* Opens matched URLs in the browser.
|
|
1935
|
+
*
|
|
1936
|
+
* @interface
|
|
1937
|
+
*/
|
|
1943
1938
|
declare type BrowserContentBehavior = {
|
|
1944
1939
|
behavior: 'browser';
|
|
1945
1940
|
/**
|
|
1946
|
-
*
|
|
1947
|
-
* When set to true will close the Window or View that tried to navigate or redirect to the blocked URL.
|
|
1941
|
+
* When true, closes the window or view that initiated the navigation.
|
|
1948
1942
|
*/
|
|
1949
1943
|
closeExisting?: boolean;
|
|
1950
1944
|
};
|
|
@@ -3255,6 +3249,7 @@ declare type ClipboardPasteBlockedEvent = NamedEvent & {
|
|
|
3255
3249
|
|
|
3256
3250
|
/**
|
|
3257
3251
|
* Clipboard Permissions
|
|
3252
|
+
* @interface
|
|
3258
3253
|
*/
|
|
3259
3254
|
declare type ClipboardPermissions = {
|
|
3260
3255
|
copy?: CopyPermissions;
|
|
@@ -3814,7 +3809,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
|
3814
3809
|
};
|
|
3815
3810
|
|
|
3816
3811
|
/**
|
|
3817
|
-
*
|
|
3812
|
+
* Behavior when displaying content from matched URLs.
|
|
3818
3813
|
*
|
|
3819
3814
|
* 'allow': The content url is allowed.
|
|
3820
3815
|
* 'block': The content url is blocked.
|
|
@@ -4051,6 +4046,7 @@ declare type CopyBlockedEventReason = 'disabled';
|
|
|
4051
4046
|
|
|
4052
4047
|
/**
|
|
4053
4048
|
* Control copy operations for a matched URL.
|
|
4049
|
+
* @interface
|
|
4054
4050
|
*/
|
|
4055
4051
|
declare type CopyPermissions = {
|
|
4056
4052
|
/**
|
|
@@ -4062,7 +4058,7 @@ declare type CopyPermissions = {
|
|
|
4062
4058
|
* block: Disables all copy operations.
|
|
4063
4059
|
* protect: Protects any copied content. Only URLs that have set paste.behavior: 'all-content' will be allowed to paste this content.
|
|
4064
4060
|
*/
|
|
4065
|
-
behavior:
|
|
4061
|
+
behavior: 'allow' | 'block' | 'protect';
|
|
4066
4062
|
/**
|
|
4067
4063
|
* Additional copy operation options
|
|
4068
4064
|
*/
|
|
@@ -4303,6 +4299,7 @@ declare type DefaultDomainSettings = DomainSettings;
|
|
|
4303
4299
|
|
|
4304
4300
|
/**
|
|
4305
4301
|
* @deprecated Use {@link OpenFin.DomainSettingsRule} instead.
|
|
4302
|
+
* @interface
|
|
4306
4303
|
*/
|
|
4307
4304
|
declare type DefaultDomainSettingsRule = DomainSettingsRule;
|
|
4308
4305
|
|
|
@@ -4506,9 +4503,8 @@ declare type DomainSettings = {
|
|
|
4506
4503
|
};
|
|
4507
4504
|
|
|
4508
4505
|
/**
|
|
4509
|
-
* @interface
|
|
4510
|
-
*
|
|
4511
4506
|
* Defines domain-conditional settings for an OpenFin application.
|
|
4507
|
+
* @interface
|
|
4512
4508
|
*/
|
|
4513
4509
|
declare type DomainSettingsRule = {
|
|
4514
4510
|
/**
|
|
@@ -5466,6 +5462,7 @@ declare type FileDownloadProgressEvent = FileDownloadEvent & {
|
|
|
5466
5462
|
* Domain-conditional rules for file downloads.
|
|
5467
5463
|
*
|
|
5468
5464
|
* @remarks See: https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads
|
|
5465
|
+
* @interface
|
|
5469
5466
|
*/
|
|
5470
5467
|
declare type FileDownloadSettings = {
|
|
5471
5468
|
/**
|
|
@@ -7674,7 +7671,7 @@ declare type LaunchExternalProcessListener = (code: ExitCode) => void;
|
|
|
7674
7671
|
* @interface
|
|
7675
7672
|
*/
|
|
7676
7673
|
declare type LaunchExternalProcessRule = {
|
|
7677
|
-
behavior:
|
|
7674
|
+
behavior: 'allow' | 'block';
|
|
7678
7675
|
match: string[];
|
|
7679
7676
|
};
|
|
7680
7677
|
|
|
@@ -9675,12 +9672,10 @@ declare namespace OpenFin_2 {
|
|
|
9675
9672
|
DomainApiSettings,
|
|
9676
9673
|
BaseContentBehavior,
|
|
9677
9674
|
ContentBehavior,
|
|
9678
|
-
BaseStructuredContentBehavior,
|
|
9679
9675
|
BrowserContentBehavior,
|
|
9680
9676
|
StructuredContentBehavior,
|
|
9681
9677
|
StructuredContentPermissions,
|
|
9682
9678
|
ContentPermission,
|
|
9683
|
-
AllowOrBlock,
|
|
9684
9679
|
ScreenCaptureBehavior,
|
|
9685
9680
|
PerDomainSettings,
|
|
9686
9681
|
CopyPermissions,
|
|
@@ -9876,6 +9871,7 @@ declare type PasteBlockedEventReason = 'invalid-data' | 'disabled';
|
|
|
9876
9871
|
|
|
9877
9872
|
/**
|
|
9878
9873
|
* Control copy operations for a matched URL.
|
|
9874
|
+
* @interface
|
|
9879
9875
|
*/
|
|
9880
9876
|
declare type PastePermissions = {
|
|
9881
9877
|
/**
|
|
@@ -10046,11 +10042,11 @@ declare type PerDomainSettings = {
|
|
|
10046
10042
|
* Defaults to 'allow'.
|
|
10047
10043
|
* Disables the `print` option in the context menu, and prevents printing via both OpenFin and browser APIs.
|
|
10048
10044
|
*/
|
|
10049
|
-
print?:
|
|
10045
|
+
print?: 'allow' | 'block';
|
|
10050
10046
|
/**
|
|
10051
10047
|
* * Controls whether HTML5 dragging for this content is allowed or blocked.
|
|
10052
10048
|
*/
|
|
10053
|
-
drag?:
|
|
10049
|
+
drag?: 'allow' | 'block';
|
|
10054
10050
|
};
|
|
10055
10051
|
};
|
|
10056
10052
|
|
|
@@ -11446,6 +11442,14 @@ declare interface PlatformProvider {
|
|
|
11446
11442
|
* ```
|
|
11447
11443
|
*/
|
|
11448
11444
|
handleFailedViewCreation(viewIdentity: OpenFin_2.Identity, error: Error): Promise<OpenFin_2.ViewCreationSuccess | void>;
|
|
11445
|
+
/**
|
|
11446
|
+
* Determines whether a given window should prevent the application from quitting when it is closed.
|
|
11447
|
+
* This method is called when checking if closing a window should trigger application termination.
|
|
11448
|
+
*
|
|
11449
|
+
* @param windowIdentity - The identity of the window being checked.
|
|
11450
|
+
* @returns A promise resolving to `true` if the window should prevent the app from quitting, otherwise `false`.
|
|
11451
|
+
*/
|
|
11452
|
+
shouldWindowPreventQuit(windowIdentity: OpenFin_2.Identity): Promise<boolean>;
|
|
11449
11453
|
}
|
|
11450
11454
|
|
|
11451
11455
|
/**
|
|
@@ -13236,10 +13240,9 @@ declare type RvmLaunchOptions = {
|
|
|
13236
13240
|
};
|
|
13237
13241
|
|
|
13238
13242
|
/**
|
|
13239
|
-
* @interface
|
|
13240
13243
|
* Controls whether this content should be allowed or blocked when capturing the screen.
|
|
13241
13244
|
*/
|
|
13242
|
-
declare type ScreenCaptureBehavior =
|
|
13245
|
+
declare type ScreenCaptureBehavior = 'allow' | 'block';
|
|
13243
13246
|
|
|
13244
13247
|
/**
|
|
13245
13248
|
* Returned by getScreenCapturePermission. Includes sub-entity permission states and the resulting permission.
|
|
@@ -13728,12 +13731,15 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
|
|
|
13728
13731
|
};
|
|
13729
13732
|
|
|
13730
13733
|
/**
|
|
13731
|
-
*
|
|
13734
|
+
* Behavior when displaying content from matched URLs.
|
|
13732
13735
|
*/
|
|
13733
|
-
declare type StructuredContentBehavior =
|
|
13736
|
+
declare type StructuredContentBehavior = {
|
|
13737
|
+
behavior: BaseContentBehavior;
|
|
13738
|
+
} | BrowserContentBehavior;
|
|
13734
13739
|
|
|
13735
13740
|
/**
|
|
13736
|
-
*
|
|
13741
|
+
* Behavior when displaying content from matched URLs. Varies depending on type of navigation.
|
|
13742
|
+
* @interface
|
|
13737
13743
|
*/
|
|
13738
13744
|
declare type StructuredContentPermissions = {
|
|
13739
13745
|
/**
|