@openfin/core 41.100.106 → 41.100.109
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 +37 -25
- package/out/mock-beta.d.ts +37 -25
- package/out/mock-public.d.ts +37 -25
- package/out/stub.d.ts +37 -25
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
@@ -1830,10 +1830,6 @@ declare type BaseLoadFailedEvent = NamedEvent & {
|
|
1830
1830
|
isMainFrame: boolean;
|
1831
1831
|
};
|
1832
1832
|
|
1833
|
-
declare type BaseStructuredContentBehavior = {
|
1834
|
-
behavior: BaseContentBehavior;
|
1835
|
-
};
|
1836
|
-
|
1837
1833
|
declare type BaseUrlEvent = NamedEvent & {
|
1838
1834
|
type: 'url-changed';
|
1839
1835
|
url: string;
|
@@ -1934,11 +1930,15 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
|
|
1934
1930
|
|
1935
1931
|
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.Bounds;
|
1936
1932
|
|
1933
|
+
/**
|
1934
|
+
* Opens matched URLs in the browser.
|
1935
|
+
*
|
1936
|
+
* @interface
|
1937
|
+
*/
|
1937
1938
|
declare type BrowserContentBehavior = {
|
1938
1939
|
behavior: 'browser';
|
1939
1940
|
/**
|
1940
|
-
*
|
1941
|
-
* 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.
|
1942
1942
|
*/
|
1943
1943
|
closeExisting?: boolean;
|
1944
1944
|
};
|
@@ -3249,6 +3249,7 @@ declare type ClipboardPasteBlockedEvent = NamedEvent & {
|
|
3249
3249
|
|
3250
3250
|
/**
|
3251
3251
|
* Clipboard Permissions
|
3252
|
+
* @interface
|
3252
3253
|
*/
|
3253
3254
|
declare type ClipboardPermissions = {
|
3254
3255
|
copy?: CopyPermissions;
|
@@ -3808,7 +3809,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3808
3809
|
};
|
3809
3810
|
|
3810
3811
|
/**
|
3811
|
-
*
|
3812
|
+
* Behavior when displaying content from matched URLs.
|
3812
3813
|
*
|
3813
3814
|
* 'allow': The content url is allowed.
|
3814
3815
|
* 'block': The content url is blocked.
|
@@ -4045,6 +4046,7 @@ declare type CopyBlockedEventReason = 'disabled';
|
|
4045
4046
|
|
4046
4047
|
/**
|
4047
4048
|
* Control copy operations for a matched URL.
|
4049
|
+
* @interface
|
4048
4050
|
*/
|
4049
4051
|
declare type CopyPermissions = {
|
4050
4052
|
/**
|
@@ -4297,6 +4299,7 @@ declare type DefaultDomainSettings = DomainSettings;
|
|
4297
4299
|
|
4298
4300
|
/**
|
4299
4301
|
* @deprecated Use {@link OpenFin.DomainSettingsRule} instead.
|
4302
|
+
* @interface
|
4300
4303
|
*/
|
4301
4304
|
declare type DefaultDomainSettingsRule = DomainSettingsRule;
|
4302
4305
|
|
@@ -4500,9 +4503,8 @@ declare type DomainSettings = {
|
|
4500
4503
|
};
|
4501
4504
|
|
4502
4505
|
/**
|
4503
|
-
* @interface
|
4504
|
-
*
|
4505
4506
|
* Defines domain-conditional settings for an OpenFin application.
|
4507
|
+
* @interface
|
4506
4508
|
*/
|
4507
4509
|
declare type DomainSettingsRule = {
|
4508
4510
|
/**
|
@@ -4639,12 +4641,6 @@ declare type Dpi = {
|
|
4639
4641
|
vertical?: number;
|
4640
4642
|
};
|
4641
4643
|
|
4642
|
-
/**
|
4643
|
-
* @interface
|
4644
|
-
* Controls whether HTML5 dragging for this content is allowed or blocked.
|
4645
|
-
*/
|
4646
|
-
declare type DragBehavior = 'allow' | 'block';
|
4647
|
-
|
4648
4644
|
/**
|
4649
4645
|
* Generated when a window has been embedded.
|
4650
4646
|
* @interface
|
@@ -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
|
/**
|
@@ -9675,13 +9672,11 @@ 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
9679
|
ScreenCaptureBehavior,
|
9684
|
-
DragBehavior,
|
9685
9680
|
PerDomainSettings,
|
9686
9681
|
CopyPermissions,
|
9687
9682
|
PastePermissions,
|
@@ -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
|
/**
|
@@ -10041,11 +10037,17 @@ declare type PerDomainSettings = {
|
|
10041
10037
|
* {@inheritdoc ClipboardPermissions}
|
10042
10038
|
*/
|
10043
10039
|
clipboard?: ClipboardPermissions;
|
10040
|
+
/**
|
10041
|
+
* Whether the content can be printed.
|
10042
|
+
* Defaults to 'allow'.
|
10043
|
+
* Disables the `print` option in the context menu, and prevents printing via both OpenFin and browser APIs.
|
10044
|
+
*/
|
10045
|
+
print?: 'allow' | 'block';
|
10046
|
+
/**
|
10047
|
+
* * Controls whether HTML5 dragging for this content is allowed or blocked.
|
10048
|
+
*/
|
10049
|
+
drag?: 'allow' | 'block';
|
10044
10050
|
};
|
10045
|
-
/**
|
10046
|
-
* * Controls whether HTML5 dragging for this content is allowed or blocked.
|
10047
|
-
*/
|
10048
|
-
drag?: DragBehavior;
|
10049
10051
|
};
|
10050
10052
|
|
10051
10053
|
/**
|
@@ -11440,6 +11442,14 @@ declare interface PlatformProvider {
|
|
11440
11442
|
* ```
|
11441
11443
|
*/
|
11442
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>;
|
11443
11453
|
}
|
11444
11454
|
|
11445
11455
|
/**
|
@@ -13230,7 +13240,6 @@ declare type RvmLaunchOptions = {
|
|
13230
13240
|
};
|
13231
13241
|
|
13232
13242
|
/**
|
13233
|
-
* @interface
|
13234
13243
|
* Controls whether this content should be allowed or blocked when capturing the screen.
|
13235
13244
|
*/
|
13236
13245
|
declare type ScreenCaptureBehavior = 'allow' | 'block';
|
@@ -13722,12 +13731,15 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
|
|
13722
13731
|
};
|
13723
13732
|
|
13724
13733
|
/**
|
13725
|
-
*
|
13734
|
+
* Behavior when displaying content from matched URLs.
|
13726
13735
|
*/
|
13727
|
-
declare type StructuredContentBehavior =
|
13736
|
+
declare type StructuredContentBehavior = {
|
13737
|
+
behavior: BaseContentBehavior;
|
13738
|
+
} | BrowserContentBehavior;
|
13728
13739
|
|
13729
13740
|
/**
|
13730
|
-
*
|
13741
|
+
* Behavior when displaying content from matched URLs. Varies depending on type of navigation.
|
13742
|
+
* @interface
|
13731
13743
|
*/
|
13732
13744
|
declare type StructuredContentPermissions = {
|
13733
13745
|
/**
|
package/out/mock-beta.d.ts
CHANGED
@@ -1830,10 +1830,6 @@ declare type BaseLoadFailedEvent = NamedEvent & {
|
|
1830
1830
|
isMainFrame: boolean;
|
1831
1831
|
};
|
1832
1832
|
|
1833
|
-
declare type BaseStructuredContentBehavior = {
|
1834
|
-
behavior: BaseContentBehavior;
|
1835
|
-
};
|
1836
|
-
|
1837
1833
|
declare type BaseUrlEvent = NamedEvent & {
|
1838
1834
|
type: 'url-changed';
|
1839
1835
|
url: string;
|
@@ -1934,11 +1930,15 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
|
|
1934
1930
|
|
1935
1931
|
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.Bounds;
|
1936
1932
|
|
1933
|
+
/**
|
1934
|
+
* Opens matched URLs in the browser.
|
1935
|
+
*
|
1936
|
+
* @interface
|
1937
|
+
*/
|
1937
1938
|
declare type BrowserContentBehavior = {
|
1938
1939
|
behavior: 'browser';
|
1939
1940
|
/**
|
1940
|
-
*
|
1941
|
-
* 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.
|
1942
1942
|
*/
|
1943
1943
|
closeExisting?: boolean;
|
1944
1944
|
};
|
@@ -3249,6 +3249,7 @@ declare type ClipboardPasteBlockedEvent = NamedEvent & {
|
|
3249
3249
|
|
3250
3250
|
/**
|
3251
3251
|
* Clipboard Permissions
|
3252
|
+
* @interface
|
3252
3253
|
*/
|
3253
3254
|
declare type ClipboardPermissions = {
|
3254
3255
|
copy?: CopyPermissions;
|
@@ -3808,7 +3809,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3808
3809
|
};
|
3809
3810
|
|
3810
3811
|
/**
|
3811
|
-
*
|
3812
|
+
* Behavior when displaying content from matched URLs.
|
3812
3813
|
*
|
3813
3814
|
* 'allow': The content url is allowed.
|
3814
3815
|
* 'block': The content url is blocked.
|
@@ -4045,6 +4046,7 @@ declare type CopyBlockedEventReason = 'disabled';
|
|
4045
4046
|
|
4046
4047
|
/**
|
4047
4048
|
* Control copy operations for a matched URL.
|
4049
|
+
* @interface
|
4048
4050
|
*/
|
4049
4051
|
declare type CopyPermissions = {
|
4050
4052
|
/**
|
@@ -4297,6 +4299,7 @@ declare type DefaultDomainSettings = DomainSettings;
|
|
4297
4299
|
|
4298
4300
|
/**
|
4299
4301
|
* @deprecated Use {@link OpenFin.DomainSettingsRule} instead.
|
4302
|
+
* @interface
|
4300
4303
|
*/
|
4301
4304
|
declare type DefaultDomainSettingsRule = DomainSettingsRule;
|
4302
4305
|
|
@@ -4500,9 +4503,8 @@ declare type DomainSettings = {
|
|
4500
4503
|
};
|
4501
4504
|
|
4502
4505
|
/**
|
4503
|
-
* @interface
|
4504
|
-
*
|
4505
4506
|
* Defines domain-conditional settings for an OpenFin application.
|
4507
|
+
* @interface
|
4506
4508
|
*/
|
4507
4509
|
declare type DomainSettingsRule = {
|
4508
4510
|
/**
|
@@ -4639,12 +4641,6 @@ declare type Dpi = {
|
|
4639
4641
|
vertical?: number;
|
4640
4642
|
};
|
4641
4643
|
|
4642
|
-
/**
|
4643
|
-
* @interface
|
4644
|
-
* Controls whether HTML5 dragging for this content is allowed or blocked.
|
4645
|
-
*/
|
4646
|
-
declare type DragBehavior = 'allow' | 'block';
|
4647
|
-
|
4648
4644
|
/**
|
4649
4645
|
* Generated when a window has been embedded.
|
4650
4646
|
* @interface
|
@@ -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
|
/**
|
@@ -9675,13 +9672,11 @@ 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
9679
|
ScreenCaptureBehavior,
|
9684
|
-
DragBehavior,
|
9685
9680
|
PerDomainSettings,
|
9686
9681
|
CopyPermissions,
|
9687
9682
|
PastePermissions,
|
@@ -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
|
/**
|
@@ -10041,11 +10037,17 @@ declare type PerDomainSettings = {
|
|
10041
10037
|
* {@inheritdoc ClipboardPermissions}
|
10042
10038
|
*/
|
10043
10039
|
clipboard?: ClipboardPermissions;
|
10040
|
+
/**
|
10041
|
+
* Whether the content can be printed.
|
10042
|
+
* Defaults to 'allow'.
|
10043
|
+
* Disables the `print` option in the context menu, and prevents printing via both OpenFin and browser APIs.
|
10044
|
+
*/
|
10045
|
+
print?: 'allow' | 'block';
|
10046
|
+
/**
|
10047
|
+
* * Controls whether HTML5 dragging for this content is allowed or blocked.
|
10048
|
+
*/
|
10049
|
+
drag?: 'allow' | 'block';
|
10044
10050
|
};
|
10045
|
-
/**
|
10046
|
-
* * Controls whether HTML5 dragging for this content is allowed or blocked.
|
10047
|
-
*/
|
10048
|
-
drag?: DragBehavior;
|
10049
10051
|
};
|
10050
10052
|
|
10051
10053
|
/**
|
@@ -11440,6 +11442,14 @@ declare interface PlatformProvider {
|
|
11440
11442
|
* ```
|
11441
11443
|
*/
|
11442
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>;
|
11443
11453
|
}
|
11444
11454
|
|
11445
11455
|
/**
|
@@ -13230,7 +13240,6 @@ declare type RvmLaunchOptions = {
|
|
13230
13240
|
};
|
13231
13241
|
|
13232
13242
|
/**
|
13233
|
-
* @interface
|
13234
13243
|
* Controls whether this content should be allowed or blocked when capturing the screen.
|
13235
13244
|
*/
|
13236
13245
|
declare type ScreenCaptureBehavior = 'allow' | 'block';
|
@@ -13722,12 +13731,15 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
|
|
13722
13731
|
};
|
13723
13732
|
|
13724
13733
|
/**
|
13725
|
-
*
|
13734
|
+
* Behavior when displaying content from matched URLs.
|
13726
13735
|
*/
|
13727
|
-
declare type StructuredContentBehavior =
|
13736
|
+
declare type StructuredContentBehavior = {
|
13737
|
+
behavior: BaseContentBehavior;
|
13738
|
+
} | BrowserContentBehavior;
|
13728
13739
|
|
13729
13740
|
/**
|
13730
|
-
*
|
13741
|
+
* Behavior when displaying content from matched URLs. Varies depending on type of navigation.
|
13742
|
+
* @interface
|
13731
13743
|
*/
|
13732
13744
|
declare type StructuredContentPermissions = {
|
13733
13745
|
/**
|
package/out/mock-public.d.ts
CHANGED
@@ -1830,10 +1830,6 @@ declare type BaseLoadFailedEvent = NamedEvent & {
|
|
1830
1830
|
isMainFrame: boolean;
|
1831
1831
|
};
|
1832
1832
|
|
1833
|
-
declare type BaseStructuredContentBehavior = {
|
1834
|
-
behavior: BaseContentBehavior;
|
1835
|
-
};
|
1836
|
-
|
1837
1833
|
declare type BaseUrlEvent = NamedEvent & {
|
1838
1834
|
type: 'url-changed';
|
1839
1835
|
url: string;
|
@@ -1934,11 +1930,15 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
|
|
1934
1930
|
|
1935
1931
|
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.Bounds;
|
1936
1932
|
|
1933
|
+
/**
|
1934
|
+
* Opens matched URLs in the browser.
|
1935
|
+
*
|
1936
|
+
* @interface
|
1937
|
+
*/
|
1937
1938
|
declare type BrowserContentBehavior = {
|
1938
1939
|
behavior: 'browser';
|
1939
1940
|
/**
|
1940
|
-
*
|
1941
|
-
* 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.
|
1942
1942
|
*/
|
1943
1943
|
closeExisting?: boolean;
|
1944
1944
|
};
|
@@ -3249,6 +3249,7 @@ declare type ClipboardPasteBlockedEvent = NamedEvent & {
|
|
3249
3249
|
|
3250
3250
|
/**
|
3251
3251
|
* Clipboard Permissions
|
3252
|
+
* @interface
|
3252
3253
|
*/
|
3253
3254
|
declare type ClipboardPermissions = {
|
3254
3255
|
copy?: CopyPermissions;
|
@@ -3808,7 +3809,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3808
3809
|
};
|
3809
3810
|
|
3810
3811
|
/**
|
3811
|
-
*
|
3812
|
+
* Behavior when displaying content from matched URLs.
|
3812
3813
|
*
|
3813
3814
|
* 'allow': The content url is allowed.
|
3814
3815
|
* 'block': The content url is blocked.
|
@@ -4045,6 +4046,7 @@ declare type CopyBlockedEventReason = 'disabled';
|
|
4045
4046
|
|
4046
4047
|
/**
|
4047
4048
|
* Control copy operations for a matched URL.
|
4049
|
+
* @interface
|
4048
4050
|
*/
|
4049
4051
|
declare type CopyPermissions = {
|
4050
4052
|
/**
|
@@ -4297,6 +4299,7 @@ declare type DefaultDomainSettings = DomainSettings;
|
|
4297
4299
|
|
4298
4300
|
/**
|
4299
4301
|
* @deprecated Use {@link OpenFin.DomainSettingsRule} instead.
|
4302
|
+
* @interface
|
4300
4303
|
*/
|
4301
4304
|
declare type DefaultDomainSettingsRule = DomainSettingsRule;
|
4302
4305
|
|
@@ -4500,9 +4503,8 @@ declare type DomainSettings = {
|
|
4500
4503
|
};
|
4501
4504
|
|
4502
4505
|
/**
|
4503
|
-
* @interface
|
4504
|
-
*
|
4505
4506
|
* Defines domain-conditional settings for an OpenFin application.
|
4507
|
+
* @interface
|
4506
4508
|
*/
|
4507
4509
|
declare type DomainSettingsRule = {
|
4508
4510
|
/**
|
@@ -4639,12 +4641,6 @@ declare type Dpi = {
|
|
4639
4641
|
vertical?: number;
|
4640
4642
|
};
|
4641
4643
|
|
4642
|
-
/**
|
4643
|
-
* @interface
|
4644
|
-
* Controls whether HTML5 dragging for this content is allowed or blocked.
|
4645
|
-
*/
|
4646
|
-
declare type DragBehavior = 'allow' | 'block';
|
4647
|
-
|
4648
4644
|
/**
|
4649
4645
|
* Generated when a window has been embedded.
|
4650
4646
|
* @interface
|
@@ -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
|
/**
|
@@ -9675,13 +9672,11 @@ 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
9679
|
ScreenCaptureBehavior,
|
9684
|
-
DragBehavior,
|
9685
9680
|
PerDomainSettings,
|
9686
9681
|
CopyPermissions,
|
9687
9682
|
PastePermissions,
|
@@ -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
|
/**
|
@@ -10041,11 +10037,17 @@ declare type PerDomainSettings = {
|
|
10041
10037
|
* {@inheritdoc ClipboardPermissions}
|
10042
10038
|
*/
|
10043
10039
|
clipboard?: ClipboardPermissions;
|
10040
|
+
/**
|
10041
|
+
* Whether the content can be printed.
|
10042
|
+
* Defaults to 'allow'.
|
10043
|
+
* Disables the `print` option in the context menu, and prevents printing via both OpenFin and browser APIs.
|
10044
|
+
*/
|
10045
|
+
print?: 'allow' | 'block';
|
10046
|
+
/**
|
10047
|
+
* * Controls whether HTML5 dragging for this content is allowed or blocked.
|
10048
|
+
*/
|
10049
|
+
drag?: 'allow' | 'block';
|
10044
10050
|
};
|
10045
|
-
/**
|
10046
|
-
* * Controls whether HTML5 dragging for this content is allowed or blocked.
|
10047
|
-
*/
|
10048
|
-
drag?: DragBehavior;
|
10049
10051
|
};
|
10050
10052
|
|
10051
10053
|
/**
|
@@ -11440,6 +11442,14 @@ declare interface PlatformProvider {
|
|
11440
11442
|
* ```
|
11441
11443
|
*/
|
11442
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>;
|
11443
11453
|
}
|
11444
11454
|
|
11445
11455
|
/**
|
@@ -13230,7 +13240,6 @@ declare type RvmLaunchOptions = {
|
|
13230
13240
|
};
|
13231
13241
|
|
13232
13242
|
/**
|
13233
|
-
* @interface
|
13234
13243
|
* Controls whether this content should be allowed or blocked when capturing the screen.
|
13235
13244
|
*/
|
13236
13245
|
declare type ScreenCaptureBehavior = 'allow' | 'block';
|
@@ -13722,12 +13731,15 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
|
|
13722
13731
|
};
|
13723
13732
|
|
13724
13733
|
/**
|
13725
|
-
*
|
13734
|
+
* Behavior when displaying content from matched URLs.
|
13726
13735
|
*/
|
13727
|
-
declare type StructuredContentBehavior =
|
13736
|
+
declare type StructuredContentBehavior = {
|
13737
|
+
behavior: BaseContentBehavior;
|
13738
|
+
} | BrowserContentBehavior;
|
13728
13739
|
|
13729
13740
|
/**
|
13730
|
-
*
|
13741
|
+
* Behavior when displaying content from matched URLs. Varies depending on type of navigation.
|
13742
|
+
* @interface
|
13731
13743
|
*/
|
13732
13744
|
declare type StructuredContentPermissions = {
|
13733
13745
|
/**
|
package/out/stub.d.ts
CHANGED
@@ -1862,10 +1862,6 @@ declare type BaseLoadFailedEvent = NamedEvent & {
|
|
1862
1862
|
isMainFrame: boolean;
|
1863
1863
|
};
|
1864
1864
|
|
1865
|
-
declare type BaseStructuredContentBehavior = {
|
1866
|
-
behavior: BaseContentBehavior;
|
1867
|
-
};
|
1868
|
-
|
1869
1865
|
declare type BaseUrlEvent = NamedEvent & {
|
1870
1866
|
type: 'url-changed';
|
1871
1867
|
url: string;
|
@@ -1966,11 +1962,15 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
|
|
1966
1962
|
|
1967
1963
|
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.Bounds;
|
1968
1964
|
|
1965
|
+
/**
|
1966
|
+
* Opens matched URLs in the browser.
|
1967
|
+
*
|
1968
|
+
* @interface
|
1969
|
+
*/
|
1969
1970
|
declare type BrowserContentBehavior = {
|
1970
1971
|
behavior: 'browser';
|
1971
1972
|
/**
|
1972
|
-
*
|
1973
|
-
* 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.
|
1974
1974
|
*/
|
1975
1975
|
closeExisting?: boolean;
|
1976
1976
|
};
|
@@ -3305,6 +3305,7 @@ declare type ClipboardPasteBlockedEvent = NamedEvent & {
|
|
3305
3305
|
|
3306
3306
|
/**
|
3307
3307
|
* Clipboard Permissions
|
3308
|
+
* @interface
|
3308
3309
|
*/
|
3309
3310
|
declare type ClipboardPermissions = {
|
3310
3311
|
copy?: CopyPermissions;
|
@@ -3867,7 +3868,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3867
3868
|
};
|
3868
3869
|
|
3869
3870
|
/**
|
3870
|
-
*
|
3871
|
+
* Behavior when displaying content from matched URLs.
|
3871
3872
|
*
|
3872
3873
|
* 'allow': The content url is allowed.
|
3873
3874
|
* 'block': The content url is blocked.
|
@@ -4104,6 +4105,7 @@ declare type CopyBlockedEventReason = 'disabled';
|
|
4104
4105
|
|
4105
4106
|
/**
|
4106
4107
|
* Control copy operations for a matched URL.
|
4108
|
+
* @interface
|
4107
4109
|
*/
|
4108
4110
|
declare type CopyPermissions = {
|
4109
4111
|
/**
|
@@ -4356,6 +4358,7 @@ declare type DefaultDomainSettings = DomainSettings;
|
|
4356
4358
|
|
4357
4359
|
/**
|
4358
4360
|
* @deprecated Use {@link OpenFin.DomainSettingsRule} instead.
|
4361
|
+
* @interface
|
4359
4362
|
*/
|
4360
4363
|
declare type DefaultDomainSettingsRule = DomainSettingsRule;
|
4361
4364
|
|
@@ -4559,9 +4562,8 @@ declare type DomainSettings = {
|
|
4559
4562
|
};
|
4560
4563
|
|
4561
4564
|
/**
|
4562
|
-
* @interface
|
4563
|
-
*
|
4564
4565
|
* Defines domain-conditional settings for an OpenFin application.
|
4566
|
+
* @interface
|
4565
4567
|
*/
|
4566
4568
|
declare type DomainSettingsRule = {
|
4567
4569
|
/**
|
@@ -4698,12 +4700,6 @@ declare type Dpi = {
|
|
4698
4700
|
vertical?: number;
|
4699
4701
|
};
|
4700
4702
|
|
4701
|
-
/**
|
4702
|
-
* @interface
|
4703
|
-
* Controls whether HTML5 dragging for this content is allowed or blocked.
|
4704
|
-
*/
|
4705
|
-
declare type DragBehavior = 'allow' | 'block';
|
4706
|
-
|
4707
4703
|
/**
|
4708
4704
|
* Generated when a window has been embedded.
|
4709
4705
|
* @interface
|
@@ -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
|
/**
|
@@ -9993,13 +9990,11 @@ 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
9997
|
ScreenCaptureBehavior,
|
10002
|
-
DragBehavior,
|
10003
9998
|
PerDomainSettings,
|
10004
9999
|
CopyPermissions,
|
10005
10000
|
PastePermissions,
|
@@ -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
|
/**
|
@@ -10359,11 +10355,17 @@ declare type PerDomainSettings = {
|
|
10359
10355
|
* {@inheritdoc ClipboardPermissions}
|
10360
10356
|
*/
|
10361
10357
|
clipboard?: ClipboardPermissions;
|
10358
|
+
/**
|
10359
|
+
* Whether the content can be printed.
|
10360
|
+
* Defaults to 'allow'.
|
10361
|
+
* Disables the `print` option in the context menu, and prevents printing via both OpenFin and browser APIs.
|
10362
|
+
*/
|
10363
|
+
print?: 'allow' | 'block';
|
10364
|
+
/**
|
10365
|
+
* * Controls whether HTML5 dragging for this content is allowed or blocked.
|
10366
|
+
*/
|
10367
|
+
drag?: 'allow' | 'block';
|
10362
10368
|
};
|
10363
|
-
/**
|
10364
|
-
* * Controls whether HTML5 dragging for this content is allowed or blocked.
|
10365
|
-
*/
|
10366
|
-
drag?: DragBehavior;
|
10367
10369
|
};
|
10368
10370
|
|
10369
10371
|
/**
|
@@ -11841,6 +11843,14 @@ declare interface PlatformProvider {
|
|
11841
11843
|
* ```
|
11842
11844
|
*/
|
11843
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>;
|
11844
11854
|
}
|
11845
11855
|
|
11846
11856
|
/**
|
@@ -13631,7 +13641,6 @@ declare type RvmLaunchOptions = {
|
|
13631
13641
|
};
|
13632
13642
|
|
13633
13643
|
/**
|
13634
|
-
* @interface
|
13635
13644
|
* Controls whether this content should be allowed or blocked when capturing the screen.
|
13636
13645
|
*/
|
13637
13646
|
declare type ScreenCaptureBehavior = 'allow' | 'block';
|
@@ -14126,12 +14135,15 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
|
|
14126
14135
|
};
|
14127
14136
|
|
14128
14137
|
/**
|
14129
|
-
*
|
14138
|
+
* Behavior when displaying content from matched URLs.
|
14130
14139
|
*/
|
14131
|
-
declare type StructuredContentBehavior =
|
14140
|
+
declare type StructuredContentBehavior = {
|
14141
|
+
behavior: BaseContentBehavior;
|
14142
|
+
} | BrowserContentBehavior;
|
14132
14143
|
|
14133
14144
|
/**
|
14134
|
-
*
|
14145
|
+
* Behavior when displaying content from matched URLs. Varies depending on type of navigation.
|
14146
|
+
* @interface
|
14135
14147
|
*/
|
14136
14148
|
declare type StructuredContentPermissions = {
|
14137
14149
|
/**
|