@openfin/core 40.83.12 → 40.100.2
Sign up to get free protection for your applications and to get access to all the features.
- package/out/mock-alpha.d.ts +63 -12
- package/out/mock-beta.d.ts +63 -12
- package/out/mock-public.d.ts +63 -12
- package/out/mock.d.ts +63 -12
- package/out/mock.js +6 -6
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
@@ -1664,6 +1664,8 @@ declare type BaseConfig = {
|
|
1664
1664
|
timeout?: number;
|
1665
1665
|
};
|
1666
1666
|
|
1667
|
+
declare type BaseContentBehavior = 'allow' | 'block';
|
1668
|
+
|
1667
1669
|
/**
|
1668
1670
|
* Properties shared by all content creation rules, regardless of context.
|
1669
1671
|
*
|
@@ -1807,6 +1809,10 @@ declare type BaseLoadFailedEvent = NamedEvent & {
|
|
1807
1809
|
isMainFrame: boolean;
|
1808
1810
|
};
|
1809
1811
|
|
1812
|
+
declare type BaseStructuredContentBehavior = {
|
1813
|
+
behavior: BaseContentBehavior;
|
1814
|
+
};
|
1815
|
+
|
1810
1816
|
declare type BaseUrlEvent = NamedEvent & {
|
1811
1817
|
type: 'url-changed';
|
1812
1818
|
url: string;
|
@@ -1907,6 +1913,15 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
|
|
1907
1913
|
|
1908
1914
|
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.Bounds;
|
1909
1915
|
|
1916
|
+
declare type BrowserContentBehavior = {
|
1917
|
+
behavior: 'browser';
|
1918
|
+
/**
|
1919
|
+
* Additional property that can be specified when setting the behavior to browser.
|
1920
|
+
* When set to true will close the Window or View that tried to navigate or redirect to the blocked URL.
|
1921
|
+
*/
|
1922
|
+
closeExisting?: boolean;
|
1923
|
+
};
|
1924
|
+
|
1910
1925
|
/**
|
1911
1926
|
* A rule prescribing content creation in the browser.
|
1912
1927
|
*
|
@@ -3723,6 +3738,15 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3723
3738
|
type: 'container-created';
|
3724
3739
|
};
|
3725
3740
|
|
3741
|
+
/**
|
3742
|
+
* Sets the behavior for when a Window or View navigates or redirects to a matching URL
|
3743
|
+
*
|
3744
|
+
* 'allow': The content url is allowed.
|
3745
|
+
* 'block': The content url is blocked.
|
3746
|
+
* 'browser': The content url is blocked and it is opened in the system's default web browser.
|
3747
|
+
*/
|
3748
|
+
declare type ContentBehavior = BaseContentBehavior | 'browser';
|
3749
|
+
|
3726
3750
|
/**
|
3727
3751
|
* Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
|
3728
3752
|
* @interface
|
@@ -3810,12 +3834,9 @@ declare type ContentCreationRulesEvent = NamedEvent & {
|
|
3810
3834
|
declare type ContentNavigation = NavigationRules;
|
3811
3835
|
|
3812
3836
|
/**
|
3813
|
-
*
|
3814
|
-
*
|
3815
|
-
* * 'allow': The content url is allowed.
|
3816
|
-
* * 'block': The content url is blocked.
|
3837
|
+
* Controls whether a content url is allowed or blocked for navigation in Windows and Views or redirection for Windows, Views and iframes.
|
3817
3838
|
*/
|
3818
|
-
declare type ContentPermission =
|
3839
|
+
declare type ContentPermission = ContentBehavior | StructuredContentBehavior | StructuredContentPermissions;
|
3819
3840
|
|
3820
3841
|
/**
|
3821
3842
|
* Restrict redirects to URLs that match an allowed pattern.
|
@@ -9084,13 +9105,14 @@ declare type NativeWindowIntegrationProviderAuthorization = {
|
|
9084
9105
|
};
|
9085
9106
|
|
9086
9107
|
/**
|
9087
|
-
* Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules.
|
9108
|
+
* Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules or when blocked by a domain-based permission content rule.
|
9088
9109
|
* @interface
|
9089
9110
|
*/
|
9090
9111
|
declare type NavigationRejectedEvent = NamedEvent & {
|
9091
9112
|
type: 'navigation-rejected';
|
9092
9113
|
sourceName?: string;
|
9093
9114
|
url: string;
|
9115
|
+
contentRule?: OpenFin_2.ContentPermission | undefined;
|
9094
9116
|
};
|
9095
9117
|
|
9096
9118
|
/**
|
@@ -9452,6 +9474,12 @@ declare namespace OpenFin_2 {
|
|
9452
9474
|
DomainSettings,
|
9453
9475
|
ApiInjection,
|
9454
9476
|
DomainApiSettings,
|
9477
|
+
BaseContentBehavior,
|
9478
|
+
ContentBehavior,
|
9479
|
+
BaseStructuredContentBehavior,
|
9480
|
+
BrowserContentBehavior,
|
9481
|
+
StructuredContentBehavior,
|
9482
|
+
StructuredContentPermissions,
|
9455
9483
|
ContentPermission,
|
9456
9484
|
PerDomainSettings,
|
9457
9485
|
DomainSettingsRule,
|
@@ -13395,6 +13423,29 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
|
|
13395
13423
|
type: 'started';
|
13396
13424
|
};
|
13397
13425
|
|
13426
|
+
/**
|
13427
|
+
* Allows more control over content behaviors
|
13428
|
+
*/
|
13429
|
+
declare type StructuredContentBehavior = BaseStructuredContentBehavior | BrowserContentBehavior;
|
13430
|
+
|
13431
|
+
/**
|
13432
|
+
* Specify rules for specific actions.
|
13433
|
+
*/
|
13434
|
+
declare type StructuredContentPermissions = {
|
13435
|
+
/**
|
13436
|
+
* Controls the behavior for navigations
|
13437
|
+
*/
|
13438
|
+
navigate?: ContentBehavior | StructuredContentBehavior;
|
13439
|
+
/**
|
13440
|
+
* Controls the behavior for redirects
|
13441
|
+
*/
|
13442
|
+
redirect?: ContentBehavior | StructuredContentBehavior;
|
13443
|
+
/**
|
13444
|
+
* Controls the behavior for when iframes try to redirect
|
13445
|
+
*/
|
13446
|
+
iframe?: BaseContentBehavior;
|
13447
|
+
};
|
13448
|
+
|
13398
13449
|
/**
|
13399
13450
|
* @interface
|
13400
13451
|
*/
|
@@ -16798,7 +16849,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16798
16849
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
16799
16850
|
* });
|
16800
16851
|
*
|
16801
|
-
* await view.navigate('
|
16852
|
+
* await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
|
16802
16853
|
*
|
16803
16854
|
* const sharedWorkers = await view.getSharedWorkers();
|
16804
16855
|
* ```
|
@@ -16809,7 +16860,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16809
16860
|
* name:'child',
|
16810
16861
|
* defaultWidth: 300,
|
16811
16862
|
* defaultHeight: 300,
|
16812
|
-
* url: '
|
16863
|
+
* url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
|
16813
16864
|
* frame: true,
|
16814
16865
|
* autoShow: true
|
16815
16866
|
* };
|
@@ -16834,7 +16885,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16834
16885
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
16835
16886
|
* });
|
16836
16887
|
*
|
16837
|
-
* await view.navigate('
|
16888
|
+
* await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
|
16838
16889
|
*
|
16839
16890
|
* await view.inspectSharedWorker();
|
16840
16891
|
* ```
|
@@ -16845,7 +16896,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16845
16896
|
* name:'child',
|
16846
16897
|
* defaultWidth: 300,
|
16847
16898
|
* defaultHeight: 300,
|
16848
|
-
* url: '
|
16899
|
+
* url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
|
16849
16900
|
* frame: true,
|
16850
16901
|
* autoShow: true
|
16851
16902
|
* };
|
@@ -16871,7 +16922,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16871
16922
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
16872
16923
|
* });
|
16873
16924
|
*
|
16874
|
-
* await view.navigate('
|
16925
|
+
* await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
|
16875
16926
|
*
|
16876
16927
|
* const sharedWorkers = await view.getSharedWorkers();
|
16877
16928
|
* await view.inspectSharedWorkerById(sharedWorkers[0].id);
|
@@ -16883,7 +16934,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16883
16934
|
* name:'child',
|
16884
16935
|
* defaultWidth: 300,
|
16885
16936
|
* defaultHeight: 300,
|
16886
|
-
* url: '
|
16937
|
+
* url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
|
16887
16938
|
* frame: true,
|
16888
16939
|
* autoShow: true
|
16889
16940
|
* };
|
package/out/mock-beta.d.ts
CHANGED
@@ -1664,6 +1664,8 @@ declare type BaseConfig = {
|
|
1664
1664
|
timeout?: number;
|
1665
1665
|
};
|
1666
1666
|
|
1667
|
+
declare type BaseContentBehavior = 'allow' | 'block';
|
1668
|
+
|
1667
1669
|
/**
|
1668
1670
|
* Properties shared by all content creation rules, regardless of context.
|
1669
1671
|
*
|
@@ -1807,6 +1809,10 @@ declare type BaseLoadFailedEvent = NamedEvent & {
|
|
1807
1809
|
isMainFrame: boolean;
|
1808
1810
|
};
|
1809
1811
|
|
1812
|
+
declare type BaseStructuredContentBehavior = {
|
1813
|
+
behavior: BaseContentBehavior;
|
1814
|
+
};
|
1815
|
+
|
1810
1816
|
declare type BaseUrlEvent = NamedEvent & {
|
1811
1817
|
type: 'url-changed';
|
1812
1818
|
url: string;
|
@@ -1907,6 +1913,15 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
|
|
1907
1913
|
|
1908
1914
|
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.Bounds;
|
1909
1915
|
|
1916
|
+
declare type BrowserContentBehavior = {
|
1917
|
+
behavior: 'browser';
|
1918
|
+
/**
|
1919
|
+
* Additional property that can be specified when setting the behavior to browser.
|
1920
|
+
* When set to true will close the Window or View that tried to navigate or redirect to the blocked URL.
|
1921
|
+
*/
|
1922
|
+
closeExisting?: boolean;
|
1923
|
+
};
|
1924
|
+
|
1910
1925
|
/**
|
1911
1926
|
* A rule prescribing content creation in the browser.
|
1912
1927
|
*
|
@@ -3723,6 +3738,15 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3723
3738
|
type: 'container-created';
|
3724
3739
|
};
|
3725
3740
|
|
3741
|
+
/**
|
3742
|
+
* Sets the behavior for when a Window or View navigates or redirects to a matching URL
|
3743
|
+
*
|
3744
|
+
* 'allow': The content url is allowed.
|
3745
|
+
* 'block': The content url is blocked.
|
3746
|
+
* 'browser': The content url is blocked and it is opened in the system's default web browser.
|
3747
|
+
*/
|
3748
|
+
declare type ContentBehavior = BaseContentBehavior | 'browser';
|
3749
|
+
|
3726
3750
|
/**
|
3727
3751
|
* Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
|
3728
3752
|
* @interface
|
@@ -3810,12 +3834,9 @@ declare type ContentCreationRulesEvent = NamedEvent & {
|
|
3810
3834
|
declare type ContentNavigation = NavigationRules;
|
3811
3835
|
|
3812
3836
|
/**
|
3813
|
-
*
|
3814
|
-
*
|
3815
|
-
* * 'allow': The content url is allowed.
|
3816
|
-
* * 'block': The content url is blocked.
|
3837
|
+
* Controls whether a content url is allowed or blocked for navigation in Windows and Views or redirection for Windows, Views and iframes.
|
3817
3838
|
*/
|
3818
|
-
declare type ContentPermission =
|
3839
|
+
declare type ContentPermission = ContentBehavior | StructuredContentBehavior | StructuredContentPermissions;
|
3819
3840
|
|
3820
3841
|
/**
|
3821
3842
|
* Restrict redirects to URLs that match an allowed pattern.
|
@@ -9084,13 +9105,14 @@ declare type NativeWindowIntegrationProviderAuthorization = {
|
|
9084
9105
|
};
|
9085
9106
|
|
9086
9107
|
/**
|
9087
|
-
* Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules.
|
9108
|
+
* Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules or when blocked by a domain-based permission content rule.
|
9088
9109
|
* @interface
|
9089
9110
|
*/
|
9090
9111
|
declare type NavigationRejectedEvent = NamedEvent & {
|
9091
9112
|
type: 'navigation-rejected';
|
9092
9113
|
sourceName?: string;
|
9093
9114
|
url: string;
|
9115
|
+
contentRule?: OpenFin_2.ContentPermission | undefined;
|
9094
9116
|
};
|
9095
9117
|
|
9096
9118
|
/**
|
@@ -9452,6 +9474,12 @@ declare namespace OpenFin_2 {
|
|
9452
9474
|
DomainSettings,
|
9453
9475
|
ApiInjection,
|
9454
9476
|
DomainApiSettings,
|
9477
|
+
BaseContentBehavior,
|
9478
|
+
ContentBehavior,
|
9479
|
+
BaseStructuredContentBehavior,
|
9480
|
+
BrowserContentBehavior,
|
9481
|
+
StructuredContentBehavior,
|
9482
|
+
StructuredContentPermissions,
|
9455
9483
|
ContentPermission,
|
9456
9484
|
PerDomainSettings,
|
9457
9485
|
DomainSettingsRule,
|
@@ -13395,6 +13423,29 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
|
|
13395
13423
|
type: 'started';
|
13396
13424
|
};
|
13397
13425
|
|
13426
|
+
/**
|
13427
|
+
* Allows more control over content behaviors
|
13428
|
+
*/
|
13429
|
+
declare type StructuredContentBehavior = BaseStructuredContentBehavior | BrowserContentBehavior;
|
13430
|
+
|
13431
|
+
/**
|
13432
|
+
* Specify rules for specific actions.
|
13433
|
+
*/
|
13434
|
+
declare type StructuredContentPermissions = {
|
13435
|
+
/**
|
13436
|
+
* Controls the behavior for navigations
|
13437
|
+
*/
|
13438
|
+
navigate?: ContentBehavior | StructuredContentBehavior;
|
13439
|
+
/**
|
13440
|
+
* Controls the behavior for redirects
|
13441
|
+
*/
|
13442
|
+
redirect?: ContentBehavior | StructuredContentBehavior;
|
13443
|
+
/**
|
13444
|
+
* Controls the behavior for when iframes try to redirect
|
13445
|
+
*/
|
13446
|
+
iframe?: BaseContentBehavior;
|
13447
|
+
};
|
13448
|
+
|
13398
13449
|
/**
|
13399
13450
|
* @interface
|
13400
13451
|
*/
|
@@ -16798,7 +16849,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16798
16849
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
16799
16850
|
* });
|
16800
16851
|
*
|
16801
|
-
* await view.navigate('
|
16852
|
+
* await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
|
16802
16853
|
*
|
16803
16854
|
* const sharedWorkers = await view.getSharedWorkers();
|
16804
16855
|
* ```
|
@@ -16809,7 +16860,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16809
16860
|
* name:'child',
|
16810
16861
|
* defaultWidth: 300,
|
16811
16862
|
* defaultHeight: 300,
|
16812
|
-
* url: '
|
16863
|
+
* url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
|
16813
16864
|
* frame: true,
|
16814
16865
|
* autoShow: true
|
16815
16866
|
* };
|
@@ -16834,7 +16885,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16834
16885
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
16835
16886
|
* });
|
16836
16887
|
*
|
16837
|
-
* await view.navigate('
|
16888
|
+
* await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
|
16838
16889
|
*
|
16839
16890
|
* await view.inspectSharedWorker();
|
16840
16891
|
* ```
|
@@ -16845,7 +16896,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16845
16896
|
* name:'child',
|
16846
16897
|
* defaultWidth: 300,
|
16847
16898
|
* defaultHeight: 300,
|
16848
|
-
* url: '
|
16899
|
+
* url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
|
16849
16900
|
* frame: true,
|
16850
16901
|
* autoShow: true
|
16851
16902
|
* };
|
@@ -16871,7 +16922,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16871
16922
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
16872
16923
|
* });
|
16873
16924
|
*
|
16874
|
-
* await view.navigate('
|
16925
|
+
* await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
|
16875
16926
|
*
|
16876
16927
|
* const sharedWorkers = await view.getSharedWorkers();
|
16877
16928
|
* await view.inspectSharedWorkerById(sharedWorkers[0].id);
|
@@ -16883,7 +16934,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16883
16934
|
* name:'child',
|
16884
16935
|
* defaultWidth: 300,
|
16885
16936
|
* defaultHeight: 300,
|
16886
|
-
* url: '
|
16937
|
+
* url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
|
16887
16938
|
* frame: true,
|
16888
16939
|
* autoShow: true
|
16889
16940
|
* };
|
package/out/mock-public.d.ts
CHANGED
@@ -1664,6 +1664,8 @@ declare type BaseConfig = {
|
|
1664
1664
|
timeout?: number;
|
1665
1665
|
};
|
1666
1666
|
|
1667
|
+
declare type BaseContentBehavior = 'allow' | 'block';
|
1668
|
+
|
1667
1669
|
/**
|
1668
1670
|
* Properties shared by all content creation rules, regardless of context.
|
1669
1671
|
*
|
@@ -1807,6 +1809,10 @@ declare type BaseLoadFailedEvent = NamedEvent & {
|
|
1807
1809
|
isMainFrame: boolean;
|
1808
1810
|
};
|
1809
1811
|
|
1812
|
+
declare type BaseStructuredContentBehavior = {
|
1813
|
+
behavior: BaseContentBehavior;
|
1814
|
+
};
|
1815
|
+
|
1810
1816
|
declare type BaseUrlEvent = NamedEvent & {
|
1811
1817
|
type: 'url-changed';
|
1812
1818
|
url: string;
|
@@ -1907,6 +1913,15 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
|
|
1907
1913
|
|
1908
1914
|
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.Bounds;
|
1909
1915
|
|
1916
|
+
declare type BrowserContentBehavior = {
|
1917
|
+
behavior: 'browser';
|
1918
|
+
/**
|
1919
|
+
* Additional property that can be specified when setting the behavior to browser.
|
1920
|
+
* When set to true will close the Window or View that tried to navigate or redirect to the blocked URL.
|
1921
|
+
*/
|
1922
|
+
closeExisting?: boolean;
|
1923
|
+
};
|
1924
|
+
|
1910
1925
|
/**
|
1911
1926
|
* A rule prescribing content creation in the browser.
|
1912
1927
|
*
|
@@ -3723,6 +3738,15 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3723
3738
|
type: 'container-created';
|
3724
3739
|
};
|
3725
3740
|
|
3741
|
+
/**
|
3742
|
+
* Sets the behavior for when a Window or View navigates or redirects to a matching URL
|
3743
|
+
*
|
3744
|
+
* 'allow': The content url is allowed.
|
3745
|
+
* 'block': The content url is blocked.
|
3746
|
+
* 'browser': The content url is blocked and it is opened in the system's default web browser.
|
3747
|
+
*/
|
3748
|
+
declare type ContentBehavior = BaseContentBehavior | 'browser';
|
3749
|
+
|
3726
3750
|
/**
|
3727
3751
|
* Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
|
3728
3752
|
* @interface
|
@@ -3810,12 +3834,9 @@ declare type ContentCreationRulesEvent = NamedEvent & {
|
|
3810
3834
|
declare type ContentNavigation = NavigationRules;
|
3811
3835
|
|
3812
3836
|
/**
|
3813
|
-
*
|
3814
|
-
*
|
3815
|
-
* * 'allow': The content url is allowed.
|
3816
|
-
* * 'block': The content url is blocked.
|
3837
|
+
* Controls whether a content url is allowed or blocked for navigation in Windows and Views or redirection for Windows, Views and iframes.
|
3817
3838
|
*/
|
3818
|
-
declare type ContentPermission =
|
3839
|
+
declare type ContentPermission = ContentBehavior | StructuredContentBehavior | StructuredContentPermissions;
|
3819
3840
|
|
3820
3841
|
/**
|
3821
3842
|
* Restrict redirects to URLs that match an allowed pattern.
|
@@ -9084,13 +9105,14 @@ declare type NativeWindowIntegrationProviderAuthorization = {
|
|
9084
9105
|
};
|
9085
9106
|
|
9086
9107
|
/**
|
9087
|
-
* Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules.
|
9108
|
+
* Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules or when blocked by a domain-based permission content rule.
|
9088
9109
|
* @interface
|
9089
9110
|
*/
|
9090
9111
|
declare type NavigationRejectedEvent = NamedEvent & {
|
9091
9112
|
type: 'navigation-rejected';
|
9092
9113
|
sourceName?: string;
|
9093
9114
|
url: string;
|
9115
|
+
contentRule?: OpenFin_2.ContentPermission | undefined;
|
9094
9116
|
};
|
9095
9117
|
|
9096
9118
|
/**
|
@@ -9452,6 +9474,12 @@ declare namespace OpenFin_2 {
|
|
9452
9474
|
DomainSettings,
|
9453
9475
|
ApiInjection,
|
9454
9476
|
DomainApiSettings,
|
9477
|
+
BaseContentBehavior,
|
9478
|
+
ContentBehavior,
|
9479
|
+
BaseStructuredContentBehavior,
|
9480
|
+
BrowserContentBehavior,
|
9481
|
+
StructuredContentBehavior,
|
9482
|
+
StructuredContentPermissions,
|
9455
9483
|
ContentPermission,
|
9456
9484
|
PerDomainSettings,
|
9457
9485
|
DomainSettingsRule,
|
@@ -13395,6 +13423,29 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
|
|
13395
13423
|
type: 'started';
|
13396
13424
|
};
|
13397
13425
|
|
13426
|
+
/**
|
13427
|
+
* Allows more control over content behaviors
|
13428
|
+
*/
|
13429
|
+
declare type StructuredContentBehavior = BaseStructuredContentBehavior | BrowserContentBehavior;
|
13430
|
+
|
13431
|
+
/**
|
13432
|
+
* Specify rules for specific actions.
|
13433
|
+
*/
|
13434
|
+
declare type StructuredContentPermissions = {
|
13435
|
+
/**
|
13436
|
+
* Controls the behavior for navigations
|
13437
|
+
*/
|
13438
|
+
navigate?: ContentBehavior | StructuredContentBehavior;
|
13439
|
+
/**
|
13440
|
+
* Controls the behavior for redirects
|
13441
|
+
*/
|
13442
|
+
redirect?: ContentBehavior | StructuredContentBehavior;
|
13443
|
+
/**
|
13444
|
+
* Controls the behavior for when iframes try to redirect
|
13445
|
+
*/
|
13446
|
+
iframe?: BaseContentBehavior;
|
13447
|
+
};
|
13448
|
+
|
13398
13449
|
/**
|
13399
13450
|
* @interface
|
13400
13451
|
*/
|
@@ -16798,7 +16849,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16798
16849
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
16799
16850
|
* });
|
16800
16851
|
*
|
16801
|
-
* await view.navigate('
|
16852
|
+
* await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
|
16802
16853
|
*
|
16803
16854
|
* const sharedWorkers = await view.getSharedWorkers();
|
16804
16855
|
* ```
|
@@ -16809,7 +16860,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16809
16860
|
* name:'child',
|
16810
16861
|
* defaultWidth: 300,
|
16811
16862
|
* defaultHeight: 300,
|
16812
|
-
* url: '
|
16863
|
+
* url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
|
16813
16864
|
* frame: true,
|
16814
16865
|
* autoShow: true
|
16815
16866
|
* };
|
@@ -16834,7 +16885,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16834
16885
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
16835
16886
|
* });
|
16836
16887
|
*
|
16837
|
-
* await view.navigate('
|
16888
|
+
* await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
|
16838
16889
|
*
|
16839
16890
|
* await view.inspectSharedWorker();
|
16840
16891
|
* ```
|
@@ -16845,7 +16896,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16845
16896
|
* name:'child',
|
16846
16897
|
* defaultWidth: 300,
|
16847
16898
|
* defaultHeight: 300,
|
16848
|
-
* url: '
|
16899
|
+
* url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
|
16849
16900
|
* frame: true,
|
16850
16901
|
* autoShow: true
|
16851
16902
|
* };
|
@@ -16871,7 +16922,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16871
16922
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
16872
16923
|
* });
|
16873
16924
|
*
|
16874
|
-
* await view.navigate('
|
16925
|
+
* await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
|
16875
16926
|
*
|
16876
16927
|
* const sharedWorkers = await view.getSharedWorkers();
|
16877
16928
|
* await view.inspectSharedWorkerById(sharedWorkers[0].id);
|
@@ -16883,7 +16934,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
16883
16934
|
* name:'child',
|
16884
16935
|
* defaultWidth: 300,
|
16885
16936
|
* defaultHeight: 300,
|
16886
|
-
* url: '
|
16937
|
+
* url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
|
16887
16938
|
* frame: true,
|
16888
16939
|
* autoShow: true
|
16889
16940
|
* };
|
package/out/mock.d.ts
CHANGED
@@ -1696,6 +1696,8 @@ declare type BaseConfig = {
|
|
1696
1696
|
timeout?: number;
|
1697
1697
|
};
|
1698
1698
|
|
1699
|
+
declare type BaseContentBehavior = 'allow' | 'block';
|
1700
|
+
|
1699
1701
|
/**
|
1700
1702
|
* Properties shared by all content creation rules, regardless of context.
|
1701
1703
|
*
|
@@ -1839,6 +1841,10 @@ declare type BaseLoadFailedEvent = NamedEvent & {
|
|
1839
1841
|
isMainFrame: boolean;
|
1840
1842
|
};
|
1841
1843
|
|
1844
|
+
declare type BaseStructuredContentBehavior = {
|
1845
|
+
behavior: BaseContentBehavior;
|
1846
|
+
};
|
1847
|
+
|
1842
1848
|
declare type BaseUrlEvent = NamedEvent & {
|
1843
1849
|
type: 'url-changed';
|
1844
1850
|
url: string;
|
@@ -1939,6 +1945,15 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
|
|
1939
1945
|
|
1940
1946
|
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.Bounds;
|
1941
1947
|
|
1948
|
+
declare type BrowserContentBehavior = {
|
1949
|
+
behavior: 'browser';
|
1950
|
+
/**
|
1951
|
+
* Additional property that can be specified when setting the behavior to browser.
|
1952
|
+
* When set to true will close the Window or View that tried to navigate or redirect to the blocked URL.
|
1953
|
+
*/
|
1954
|
+
closeExisting?: boolean;
|
1955
|
+
};
|
1956
|
+
|
1942
1957
|
/**
|
1943
1958
|
* A rule prescribing content creation in the browser.
|
1944
1959
|
*
|
@@ -3782,6 +3797,15 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3782
3797
|
type: 'container-created';
|
3783
3798
|
};
|
3784
3799
|
|
3800
|
+
/**
|
3801
|
+
* Sets the behavior for when a Window or View navigates or redirects to a matching URL
|
3802
|
+
*
|
3803
|
+
* 'allow': The content url is allowed.
|
3804
|
+
* 'block': The content url is blocked.
|
3805
|
+
* 'browser': The content url is blocked and it is opened in the system's default web browser.
|
3806
|
+
*/
|
3807
|
+
declare type ContentBehavior = BaseContentBehavior | 'browser';
|
3808
|
+
|
3785
3809
|
/**
|
3786
3810
|
* Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
|
3787
3811
|
* @interface
|
@@ -3869,12 +3893,9 @@ declare type ContentCreationRulesEvent = NamedEvent & {
|
|
3869
3893
|
declare type ContentNavigation = NavigationRules;
|
3870
3894
|
|
3871
3895
|
/**
|
3872
|
-
*
|
3873
|
-
*
|
3874
|
-
* * 'allow': The content url is allowed.
|
3875
|
-
* * 'block': The content url is blocked.
|
3896
|
+
* Controls whether a content url is allowed or blocked for navigation in Windows and Views or redirection for Windows, Views and iframes.
|
3876
3897
|
*/
|
3877
|
-
declare type ContentPermission =
|
3898
|
+
declare type ContentPermission = ContentBehavior | StructuredContentBehavior | StructuredContentPermissions;
|
3878
3899
|
|
3879
3900
|
/**
|
3880
3901
|
* Restrict redirects to URLs that match an allowed pattern.
|
@@ -9392,13 +9413,14 @@ declare type NativeWindowIntegrationProviderAuthorization = {
|
|
9392
9413
|
};
|
9393
9414
|
|
9394
9415
|
/**
|
9395
|
-
* Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules.
|
9416
|
+
* Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules or when blocked by a domain-based permission content rule.
|
9396
9417
|
* @interface
|
9397
9418
|
*/
|
9398
9419
|
declare type NavigationRejectedEvent = NamedEvent & {
|
9399
9420
|
type: 'navigation-rejected';
|
9400
9421
|
sourceName?: string;
|
9401
9422
|
url: string;
|
9423
|
+
contentRule?: OpenFin_2.ContentPermission | undefined;
|
9402
9424
|
};
|
9403
9425
|
|
9404
9426
|
/**
|
@@ -9770,6 +9792,12 @@ declare namespace OpenFin_2 {
|
|
9770
9792
|
DomainSettings,
|
9771
9793
|
ApiInjection,
|
9772
9794
|
DomainApiSettings,
|
9795
|
+
BaseContentBehavior,
|
9796
|
+
ContentBehavior,
|
9797
|
+
BaseStructuredContentBehavior,
|
9798
|
+
BrowserContentBehavior,
|
9799
|
+
StructuredContentBehavior,
|
9800
|
+
StructuredContentPermissions,
|
9773
9801
|
ContentPermission,
|
9774
9802
|
PerDomainSettings,
|
9775
9803
|
DomainSettingsRule,
|
@@ -13799,6 +13827,29 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
|
|
13799
13827
|
type: 'started';
|
13800
13828
|
};
|
13801
13829
|
|
13830
|
+
/**
|
13831
|
+
* Allows more control over content behaviors
|
13832
|
+
*/
|
13833
|
+
declare type StructuredContentBehavior = BaseStructuredContentBehavior | BrowserContentBehavior;
|
13834
|
+
|
13835
|
+
/**
|
13836
|
+
* Specify rules for specific actions.
|
13837
|
+
*/
|
13838
|
+
declare type StructuredContentPermissions = {
|
13839
|
+
/**
|
13840
|
+
* Controls the behavior for navigations
|
13841
|
+
*/
|
13842
|
+
navigate?: ContentBehavior | StructuredContentBehavior;
|
13843
|
+
/**
|
13844
|
+
* Controls the behavior for redirects
|
13845
|
+
*/
|
13846
|
+
redirect?: ContentBehavior | StructuredContentBehavior;
|
13847
|
+
/**
|
13848
|
+
* Controls the behavior for when iframes try to redirect
|
13849
|
+
*/
|
13850
|
+
iframe?: BaseContentBehavior;
|
13851
|
+
};
|
13852
|
+
|
13802
13853
|
/**
|
13803
13854
|
* @interface
|
13804
13855
|
*/
|
@@ -17249,7 +17300,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
17249
17300
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
17250
17301
|
* });
|
17251
17302
|
*
|
17252
|
-
* await view.navigate('
|
17303
|
+
* await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
|
17253
17304
|
*
|
17254
17305
|
* const sharedWorkers = await view.getSharedWorkers();
|
17255
17306
|
* ```
|
@@ -17260,7 +17311,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
17260
17311
|
* name:'child',
|
17261
17312
|
* defaultWidth: 300,
|
17262
17313
|
* defaultHeight: 300,
|
17263
|
-
* url: '
|
17314
|
+
* url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
|
17264
17315
|
* frame: true,
|
17265
17316
|
* autoShow: true
|
17266
17317
|
* };
|
@@ -17285,7 +17336,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
17285
17336
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
17286
17337
|
* });
|
17287
17338
|
*
|
17288
|
-
* await view.navigate('
|
17339
|
+
* await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
|
17289
17340
|
*
|
17290
17341
|
* await view.inspectSharedWorker();
|
17291
17342
|
* ```
|
@@ -17296,7 +17347,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
17296
17347
|
* name:'child',
|
17297
17348
|
* defaultWidth: 300,
|
17298
17349
|
* defaultHeight: 300,
|
17299
|
-
* url: '
|
17350
|
+
* url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
|
17300
17351
|
* frame: true,
|
17301
17352
|
* autoShow: true
|
17302
17353
|
* };
|
@@ -17322,7 +17373,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
17322
17373
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
17323
17374
|
* });
|
17324
17375
|
*
|
17325
|
-
* await view.navigate('
|
17376
|
+
* await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
|
17326
17377
|
*
|
17327
17378
|
* const sharedWorkers = await view.getSharedWorkers();
|
17328
17379
|
* await view.inspectSharedWorkerById(sharedWorkers[0].id);
|
@@ -17334,7 +17385,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
17334
17385
|
* name:'child',
|
17335
17386
|
* defaultWidth: 300,
|
17336
17387
|
* defaultHeight: 300,
|
17337
|
-
* url: '
|
17388
|
+
* url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
|
17338
17389
|
* frame: true,
|
17339
17390
|
* autoShow: true
|
17340
17391
|
* };
|
package/out/mock.js
CHANGED
@@ -1698,7 +1698,7 @@ class WebContents extends base_1$j.EmitterBase {
|
|
1698
1698
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
1699
1699
|
* });
|
1700
1700
|
*
|
1701
|
-
* await view.navigate('
|
1701
|
+
* await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
|
1702
1702
|
*
|
1703
1703
|
* const sharedWorkers = await view.getSharedWorkers();
|
1704
1704
|
* ```
|
@@ -1709,7 +1709,7 @@ class WebContents extends base_1$j.EmitterBase {
|
|
1709
1709
|
* name:'child',
|
1710
1710
|
* defaultWidth: 300,
|
1711
1711
|
* defaultHeight: 300,
|
1712
|
-
* url: '
|
1712
|
+
* url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
|
1713
1713
|
* frame: true,
|
1714
1714
|
* autoShow: true
|
1715
1715
|
* };
|
@@ -1736,7 +1736,7 @@ class WebContents extends base_1$j.EmitterBase {
|
|
1736
1736
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
1737
1737
|
* });
|
1738
1738
|
*
|
1739
|
-
* await view.navigate('
|
1739
|
+
* await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
|
1740
1740
|
*
|
1741
1741
|
* await view.inspectSharedWorker();
|
1742
1742
|
* ```
|
@@ -1747,7 +1747,7 @@ class WebContents extends base_1$j.EmitterBase {
|
|
1747
1747
|
* name:'child',
|
1748
1748
|
* defaultWidth: 300,
|
1749
1749
|
* defaultHeight: 300,
|
1750
|
-
* url: '
|
1750
|
+
* url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
|
1751
1751
|
* frame: true,
|
1752
1752
|
* autoShow: true
|
1753
1753
|
* };
|
@@ -1775,7 +1775,7 @@ class WebContents extends base_1$j.EmitterBase {
|
|
1775
1775
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
1776
1776
|
* });
|
1777
1777
|
*
|
1778
|
-
* await view.navigate('
|
1778
|
+
* await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
|
1779
1779
|
*
|
1780
1780
|
* const sharedWorkers = await view.getSharedWorkers();
|
1781
1781
|
* await view.inspectSharedWorkerById(sharedWorkers[0].id);
|
@@ -1787,7 +1787,7 @@ class WebContents extends base_1$j.EmitterBase {
|
|
1787
1787
|
* name:'child',
|
1788
1788
|
* defaultWidth: 300,
|
1789
1789
|
* defaultHeight: 300,
|
1790
|
-
* url: '
|
1790
|
+
* url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
|
1791
1791
|
* frame: true,
|
1792
1792
|
* autoShow: true
|
1793
1793
|
* };
|