@openfin/core 36.79.5 → 36.79.9
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 +68 -12
- package/out/mock-beta.d.ts +68 -12
- package/out/mock-public.d.ts +68 -12
- package/out/mock.d.ts +68 -12
- package/out/mock.js +36 -43
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
@@ -97,7 +97,10 @@ declare type Api = {
|
|
97
97
|
enableDeprecatedSharedName?: boolean;
|
98
98
|
};
|
99
99
|
/**
|
100
|
-
*
|
100
|
+
* Configure injection of the `fin` API in this context.
|
101
|
+
*
|
102
|
+
* * 'none': The `fin` API will be not available in this context.
|
103
|
+
* * 'global': The entire `fin` API will be available in this context.
|
101
104
|
*/
|
102
105
|
fin?: InjectionType;
|
103
106
|
};
|
@@ -113,8 +116,18 @@ declare type ApiClient<T extends Record<any, any>> = {
|
|
113
116
|
|
114
117
|
/**
|
115
118
|
* @interface
|
119
|
+
*
|
120
|
+
* Rules for domain-conditional `fin` API injection.
|
116
121
|
*/
|
117
122
|
declare type ApiInjection = {
|
123
|
+
/**
|
124
|
+
* Injection setting for the `fin` API for contexts on a matched domain.
|
125
|
+
*
|
126
|
+
* * 'none': The `fin` API will be not available.
|
127
|
+
* * 'global': The entire `fin` API will be available.
|
128
|
+
*
|
129
|
+
* @defaultValue 'global'
|
130
|
+
*/
|
118
131
|
fin: InjectionType;
|
119
132
|
};
|
120
133
|
|
@@ -1712,7 +1725,7 @@ declare type BaseConfig = {
|
|
1712
1725
|
*/
|
1713
1726
|
declare type BaseContentCreationRule = {
|
1714
1727
|
/**
|
1715
|
-
* List of [match patterns](https://developer.chrome.com/extensions/
|
1728
|
+
* List of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) that indicate the specified
|
1716
1729
|
* behavior should be used
|
1717
1730
|
*/
|
1718
1731
|
match: MatchPattern[];
|
@@ -3608,13 +3621,13 @@ declare type ConstWindowOptions = {
|
|
3608
3621
|
/**
|
3609
3622
|
* Restrict navigation to URLs that match an allowed pattern.
|
3610
3623
|
* In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
|
3611
|
-
* See [here](https://developer.chrome.com/extensions/
|
3624
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
3612
3625
|
*/
|
3613
3626
|
contentNavigation: ContentNavigation;
|
3614
3627
|
/**
|
3615
3628
|
* Restrict redirects to URLs that match an allowed pattern.
|
3616
3629
|
* In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
|
3617
|
-
* See [here](https://developer.chrome.com/extensions/
|
3630
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
3618
3631
|
*/
|
3619
3632
|
contentRedirect: Partial<ContentRedirect>;
|
3620
3633
|
/**
|
@@ -4159,7 +4172,7 @@ declare interface ContentItem extends EventEmitter_2 {
|
|
4159
4172
|
/**
|
4160
4173
|
* Restrict navigation to URLs that match an allowed pattern.
|
4161
4174
|
* In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
|
4162
|
-
* See [here](https://developer.chrome.com/extensions/
|
4175
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
4163
4176
|
*
|
4164
4177
|
* @interface
|
4165
4178
|
*/
|
@@ -4168,7 +4181,7 @@ declare type ContentNavigation = NavigationRules;
|
|
4168
4181
|
/**
|
4169
4182
|
* Restrict redirects to URLs that match an allowed pattern.
|
4170
4183
|
* In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
|
4171
|
-
* See [here](https://developer.chrome.com/extensions/
|
4184
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
4172
4185
|
*
|
4173
4186
|
* @interface
|
4174
4187
|
*/
|
@@ -4772,19 +4785,42 @@ declare type DisplayMetadata_3 = {
|
|
4772
4785
|
|
4773
4786
|
/**
|
4774
4787
|
* @interface
|
4775
|
-
*
|
4788
|
+
* Defines application settings that vary by the domain of the current context.
|
4789
|
+
*
|
4790
|
+
* @remarks Only the first rule in the array that matches the current URL is applied. Multiple behaviors for the same
|
4791
|
+
* domain should be represented with a single rule.
|
4776
4792
|
*/
|
4777
4793
|
declare type DomainSettings = {
|
4794
|
+
/**
|
4795
|
+
* {@inheritDoc DomainSettingsRule}
|
4796
|
+
*/
|
4778
4797
|
rules: DomainSettingsRule[];
|
4779
4798
|
};
|
4780
4799
|
|
4781
4800
|
/**
|
4782
4801
|
* @interface
|
4802
|
+
*
|
4803
|
+
* Defines domain-conditional settings for an OpenFin application.
|
4783
4804
|
*/
|
4784
4805
|
declare type DomainSettingsRule = {
|
4806
|
+
/**
|
4807
|
+
* Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
|
4808
|
+
* the domain(s) for which the rule applies.
|
4809
|
+
*/
|
4785
4810
|
match: string[];
|
4811
|
+
/**
|
4812
|
+
* Settings applied when a webcontents has been navigated to a matched domain.
|
4813
|
+
*/
|
4786
4814
|
options: {
|
4815
|
+
/**
|
4816
|
+
* {@inheritDoc FileDownloadSettings}
|
4817
|
+
*
|
4818
|
+
* @remarks See: https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads
|
4819
|
+
*/
|
4787
4820
|
downloadSettings?: FileDownloadSettings;
|
4821
|
+
/**
|
4822
|
+
* {@inheritDoc ApiInjection}
|
4823
|
+
*/
|
4788
4824
|
api?: ApiInjection;
|
4789
4825
|
};
|
4790
4826
|
};
|
@@ -4823,9 +4859,20 @@ declare type DownloadPreloadOption = {
|
|
4823
4859
|
|
4824
4860
|
/**
|
4825
4861
|
* @interface
|
4862
|
+
*
|
4863
|
+
* A rule governing domain-conditional download behavior.
|
4826
4864
|
*/
|
4827
4865
|
declare type DownloadRule = {
|
4866
|
+
/**
|
4867
|
+
* {@inheritDoc FileDownloadBehaviorNames}
|
4868
|
+
*/
|
4828
4869
|
behavior: FileDownloadBehaviorNames;
|
4870
|
+
/**
|
4871
|
+
* Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
|
4872
|
+
* the domain(s) for which the rule applies.
|
4873
|
+
*
|
4874
|
+
* @remarks The match is evaluated against the URL of the *download*.
|
4875
|
+
*/
|
4829
4876
|
match: string[];
|
4830
4877
|
};
|
4831
4878
|
|
@@ -5521,6 +5568,9 @@ declare type FetchManifestPayload = {
|
|
5521
5568
|
manifestUrl: string;
|
5522
5569
|
};
|
5523
5570
|
|
5571
|
+
/**
|
5572
|
+
* Whether file downloads raise a user prompt.
|
5573
|
+
*/
|
5524
5574
|
declare type FileDownloadBehaviorNames = 'prompt' | 'no-prompt';
|
5525
5575
|
|
5526
5576
|
/**
|
@@ -5603,9 +5653,14 @@ declare type FileDownloadProgressEvent = FileDownloadEvent & {
|
|
5603
5653
|
};
|
5604
5654
|
|
5605
5655
|
/**
|
5606
|
-
*
|
5656
|
+
* Domain-conditional rules for file downloads.
|
5657
|
+
*
|
5658
|
+
* @remarks See: https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads
|
5607
5659
|
*/
|
5608
5660
|
declare type FileDownloadSettings = {
|
5661
|
+
/**
|
5662
|
+
* {@inheritDoc DownloadRule}
|
5663
|
+
*/
|
5609
5664
|
rules: DownloadRule[];
|
5610
5665
|
};
|
5611
5666
|
|
@@ -6670,9 +6725,10 @@ declare type InitPlatformOptions = {
|
|
6670
6725
|
};
|
6671
6726
|
|
6672
6727
|
/**
|
6673
|
-
*
|
6674
|
-
*
|
6675
|
-
*
|
6728
|
+
* Injection setting for the `fin` API.
|
6729
|
+
*
|
6730
|
+
* * 'none': The `fin` API will be not available.
|
6731
|
+
* * 'global': The entire `fin` API will be available.
|
6676
6732
|
*/
|
6677
6733
|
declare type InjectionType = 'none' | 'global';
|
6678
6734
|
|
@@ -9373,7 +9429,7 @@ declare type MutableViewOptions = {
|
|
9373
9429
|
/**
|
9374
9430
|
* Restrict navigation to URLs that match an allowed pattern.
|
9375
9431
|
* In the lack of an allowlist, navigation to URLs that match a denylisted pattern would be prohibited.
|
9376
|
-
* See [here](https://developer.chrome.com/extensions/
|
9432
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
9377
9433
|
*/
|
9378
9434
|
contentNavigation: ContentNavigation;
|
9379
9435
|
contentRedirect: ContentRedirect;
|
package/out/mock-beta.d.ts
CHANGED
@@ -97,7 +97,10 @@ declare type Api = {
|
|
97
97
|
enableDeprecatedSharedName?: boolean;
|
98
98
|
};
|
99
99
|
/**
|
100
|
-
*
|
100
|
+
* Configure injection of the `fin` API in this context.
|
101
|
+
*
|
102
|
+
* * 'none': The `fin` API will be not available in this context.
|
103
|
+
* * 'global': The entire `fin` API will be available in this context.
|
101
104
|
*/
|
102
105
|
fin?: InjectionType;
|
103
106
|
};
|
@@ -113,8 +116,18 @@ declare type ApiClient<T extends Record<any, any>> = {
|
|
113
116
|
|
114
117
|
/**
|
115
118
|
* @interface
|
119
|
+
*
|
120
|
+
* Rules for domain-conditional `fin` API injection.
|
116
121
|
*/
|
117
122
|
declare type ApiInjection = {
|
123
|
+
/**
|
124
|
+
* Injection setting for the `fin` API for contexts on a matched domain.
|
125
|
+
*
|
126
|
+
* * 'none': The `fin` API will be not available.
|
127
|
+
* * 'global': The entire `fin` API will be available.
|
128
|
+
*
|
129
|
+
* @defaultValue 'global'
|
130
|
+
*/
|
118
131
|
fin: InjectionType;
|
119
132
|
};
|
120
133
|
|
@@ -1712,7 +1725,7 @@ declare type BaseConfig = {
|
|
1712
1725
|
*/
|
1713
1726
|
declare type BaseContentCreationRule = {
|
1714
1727
|
/**
|
1715
|
-
* List of [match patterns](https://developer.chrome.com/extensions/
|
1728
|
+
* List of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) that indicate the specified
|
1716
1729
|
* behavior should be used
|
1717
1730
|
*/
|
1718
1731
|
match: MatchPattern[];
|
@@ -3608,13 +3621,13 @@ declare type ConstWindowOptions = {
|
|
3608
3621
|
/**
|
3609
3622
|
* Restrict navigation to URLs that match an allowed pattern.
|
3610
3623
|
* In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
|
3611
|
-
* See [here](https://developer.chrome.com/extensions/
|
3624
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
3612
3625
|
*/
|
3613
3626
|
contentNavigation: ContentNavigation;
|
3614
3627
|
/**
|
3615
3628
|
* Restrict redirects to URLs that match an allowed pattern.
|
3616
3629
|
* In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
|
3617
|
-
* See [here](https://developer.chrome.com/extensions/
|
3630
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
3618
3631
|
*/
|
3619
3632
|
contentRedirect: Partial<ContentRedirect>;
|
3620
3633
|
/**
|
@@ -4159,7 +4172,7 @@ declare interface ContentItem extends EventEmitter_2 {
|
|
4159
4172
|
/**
|
4160
4173
|
* Restrict navigation to URLs that match an allowed pattern.
|
4161
4174
|
* In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
|
4162
|
-
* See [here](https://developer.chrome.com/extensions/
|
4175
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
4163
4176
|
*
|
4164
4177
|
* @interface
|
4165
4178
|
*/
|
@@ -4168,7 +4181,7 @@ declare type ContentNavigation = NavigationRules;
|
|
4168
4181
|
/**
|
4169
4182
|
* Restrict redirects to URLs that match an allowed pattern.
|
4170
4183
|
* In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
|
4171
|
-
* See [here](https://developer.chrome.com/extensions/
|
4184
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
4172
4185
|
*
|
4173
4186
|
* @interface
|
4174
4187
|
*/
|
@@ -4772,19 +4785,42 @@ declare type DisplayMetadata_3 = {
|
|
4772
4785
|
|
4773
4786
|
/**
|
4774
4787
|
* @interface
|
4775
|
-
*
|
4788
|
+
* Defines application settings that vary by the domain of the current context.
|
4789
|
+
*
|
4790
|
+
* @remarks Only the first rule in the array that matches the current URL is applied. Multiple behaviors for the same
|
4791
|
+
* domain should be represented with a single rule.
|
4776
4792
|
*/
|
4777
4793
|
declare type DomainSettings = {
|
4794
|
+
/**
|
4795
|
+
* {@inheritDoc DomainSettingsRule}
|
4796
|
+
*/
|
4778
4797
|
rules: DomainSettingsRule[];
|
4779
4798
|
};
|
4780
4799
|
|
4781
4800
|
/**
|
4782
4801
|
* @interface
|
4802
|
+
*
|
4803
|
+
* Defines domain-conditional settings for an OpenFin application.
|
4783
4804
|
*/
|
4784
4805
|
declare type DomainSettingsRule = {
|
4806
|
+
/**
|
4807
|
+
* Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
|
4808
|
+
* the domain(s) for which the rule applies.
|
4809
|
+
*/
|
4785
4810
|
match: string[];
|
4811
|
+
/**
|
4812
|
+
* Settings applied when a webcontents has been navigated to a matched domain.
|
4813
|
+
*/
|
4786
4814
|
options: {
|
4815
|
+
/**
|
4816
|
+
* {@inheritDoc FileDownloadSettings}
|
4817
|
+
*
|
4818
|
+
* @remarks See: https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads
|
4819
|
+
*/
|
4787
4820
|
downloadSettings?: FileDownloadSettings;
|
4821
|
+
/**
|
4822
|
+
* {@inheritDoc ApiInjection}
|
4823
|
+
*/
|
4788
4824
|
api?: ApiInjection;
|
4789
4825
|
};
|
4790
4826
|
};
|
@@ -4823,9 +4859,20 @@ declare type DownloadPreloadOption = {
|
|
4823
4859
|
|
4824
4860
|
/**
|
4825
4861
|
* @interface
|
4862
|
+
*
|
4863
|
+
* A rule governing domain-conditional download behavior.
|
4826
4864
|
*/
|
4827
4865
|
declare type DownloadRule = {
|
4866
|
+
/**
|
4867
|
+
* {@inheritDoc FileDownloadBehaviorNames}
|
4868
|
+
*/
|
4828
4869
|
behavior: FileDownloadBehaviorNames;
|
4870
|
+
/**
|
4871
|
+
* Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
|
4872
|
+
* the domain(s) for which the rule applies.
|
4873
|
+
*
|
4874
|
+
* @remarks The match is evaluated against the URL of the *download*.
|
4875
|
+
*/
|
4829
4876
|
match: string[];
|
4830
4877
|
};
|
4831
4878
|
|
@@ -5521,6 +5568,9 @@ declare type FetchManifestPayload = {
|
|
5521
5568
|
manifestUrl: string;
|
5522
5569
|
};
|
5523
5570
|
|
5571
|
+
/**
|
5572
|
+
* Whether file downloads raise a user prompt.
|
5573
|
+
*/
|
5524
5574
|
declare type FileDownloadBehaviorNames = 'prompt' | 'no-prompt';
|
5525
5575
|
|
5526
5576
|
/**
|
@@ -5603,9 +5653,14 @@ declare type FileDownloadProgressEvent = FileDownloadEvent & {
|
|
5603
5653
|
};
|
5604
5654
|
|
5605
5655
|
/**
|
5606
|
-
*
|
5656
|
+
* Domain-conditional rules for file downloads.
|
5657
|
+
*
|
5658
|
+
* @remarks See: https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads
|
5607
5659
|
*/
|
5608
5660
|
declare type FileDownloadSettings = {
|
5661
|
+
/**
|
5662
|
+
* {@inheritDoc DownloadRule}
|
5663
|
+
*/
|
5609
5664
|
rules: DownloadRule[];
|
5610
5665
|
};
|
5611
5666
|
|
@@ -6670,9 +6725,10 @@ declare type InitPlatformOptions = {
|
|
6670
6725
|
};
|
6671
6726
|
|
6672
6727
|
/**
|
6673
|
-
*
|
6674
|
-
*
|
6675
|
-
*
|
6728
|
+
* Injection setting for the `fin` API.
|
6729
|
+
*
|
6730
|
+
* * 'none': The `fin` API will be not available.
|
6731
|
+
* * 'global': The entire `fin` API will be available.
|
6676
6732
|
*/
|
6677
6733
|
declare type InjectionType = 'none' | 'global';
|
6678
6734
|
|
@@ -9373,7 +9429,7 @@ declare type MutableViewOptions = {
|
|
9373
9429
|
/**
|
9374
9430
|
* Restrict navigation to URLs that match an allowed pattern.
|
9375
9431
|
* In the lack of an allowlist, navigation to URLs that match a denylisted pattern would be prohibited.
|
9376
|
-
* See [here](https://developer.chrome.com/extensions/
|
9432
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
9377
9433
|
*/
|
9378
9434
|
contentNavigation: ContentNavigation;
|
9379
9435
|
contentRedirect: ContentRedirect;
|
package/out/mock-public.d.ts
CHANGED
@@ -97,7 +97,10 @@ declare type Api = {
|
|
97
97
|
enableDeprecatedSharedName?: boolean;
|
98
98
|
};
|
99
99
|
/**
|
100
|
-
*
|
100
|
+
* Configure injection of the `fin` API in this context.
|
101
|
+
*
|
102
|
+
* * 'none': The `fin` API will be not available in this context.
|
103
|
+
* * 'global': The entire `fin` API will be available in this context.
|
101
104
|
*/
|
102
105
|
fin?: InjectionType;
|
103
106
|
};
|
@@ -113,8 +116,18 @@ declare type ApiClient<T extends Record<any, any>> = {
|
|
113
116
|
|
114
117
|
/**
|
115
118
|
* @interface
|
119
|
+
*
|
120
|
+
* Rules for domain-conditional `fin` API injection.
|
116
121
|
*/
|
117
122
|
declare type ApiInjection = {
|
123
|
+
/**
|
124
|
+
* Injection setting for the `fin` API for contexts on a matched domain.
|
125
|
+
*
|
126
|
+
* * 'none': The `fin` API will be not available.
|
127
|
+
* * 'global': The entire `fin` API will be available.
|
128
|
+
*
|
129
|
+
* @defaultValue 'global'
|
130
|
+
*/
|
118
131
|
fin: InjectionType;
|
119
132
|
};
|
120
133
|
|
@@ -1712,7 +1725,7 @@ declare type BaseConfig = {
|
|
1712
1725
|
*/
|
1713
1726
|
declare type BaseContentCreationRule = {
|
1714
1727
|
/**
|
1715
|
-
* List of [match patterns](https://developer.chrome.com/extensions/
|
1728
|
+
* List of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) that indicate the specified
|
1716
1729
|
* behavior should be used
|
1717
1730
|
*/
|
1718
1731
|
match: MatchPattern[];
|
@@ -3608,13 +3621,13 @@ declare type ConstWindowOptions = {
|
|
3608
3621
|
/**
|
3609
3622
|
* Restrict navigation to URLs that match an allowed pattern.
|
3610
3623
|
* In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
|
3611
|
-
* See [here](https://developer.chrome.com/extensions/
|
3624
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
3612
3625
|
*/
|
3613
3626
|
contentNavigation: ContentNavigation;
|
3614
3627
|
/**
|
3615
3628
|
* Restrict redirects to URLs that match an allowed pattern.
|
3616
3629
|
* In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
|
3617
|
-
* See [here](https://developer.chrome.com/extensions/
|
3630
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
3618
3631
|
*/
|
3619
3632
|
contentRedirect: Partial<ContentRedirect>;
|
3620
3633
|
/**
|
@@ -4159,7 +4172,7 @@ declare interface ContentItem extends EventEmitter_2 {
|
|
4159
4172
|
/**
|
4160
4173
|
* Restrict navigation to URLs that match an allowed pattern.
|
4161
4174
|
* In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
|
4162
|
-
* See [here](https://developer.chrome.com/extensions/
|
4175
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
4163
4176
|
*
|
4164
4177
|
* @interface
|
4165
4178
|
*/
|
@@ -4168,7 +4181,7 @@ declare type ContentNavigation = NavigationRules;
|
|
4168
4181
|
/**
|
4169
4182
|
* Restrict redirects to URLs that match an allowed pattern.
|
4170
4183
|
* In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
|
4171
|
-
* See [here](https://developer.chrome.com/extensions/
|
4184
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
4172
4185
|
*
|
4173
4186
|
* @interface
|
4174
4187
|
*/
|
@@ -4772,19 +4785,42 @@ declare type DisplayMetadata_3 = {
|
|
4772
4785
|
|
4773
4786
|
/**
|
4774
4787
|
* @interface
|
4775
|
-
*
|
4788
|
+
* Defines application settings that vary by the domain of the current context.
|
4789
|
+
*
|
4790
|
+
* @remarks Only the first rule in the array that matches the current URL is applied. Multiple behaviors for the same
|
4791
|
+
* domain should be represented with a single rule.
|
4776
4792
|
*/
|
4777
4793
|
declare type DomainSettings = {
|
4794
|
+
/**
|
4795
|
+
* {@inheritDoc DomainSettingsRule}
|
4796
|
+
*/
|
4778
4797
|
rules: DomainSettingsRule[];
|
4779
4798
|
};
|
4780
4799
|
|
4781
4800
|
/**
|
4782
4801
|
* @interface
|
4802
|
+
*
|
4803
|
+
* Defines domain-conditional settings for an OpenFin application.
|
4783
4804
|
*/
|
4784
4805
|
declare type DomainSettingsRule = {
|
4806
|
+
/**
|
4807
|
+
* Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
|
4808
|
+
* the domain(s) for which the rule applies.
|
4809
|
+
*/
|
4785
4810
|
match: string[];
|
4811
|
+
/**
|
4812
|
+
* Settings applied when a webcontents has been navigated to a matched domain.
|
4813
|
+
*/
|
4786
4814
|
options: {
|
4815
|
+
/**
|
4816
|
+
* {@inheritDoc FileDownloadSettings}
|
4817
|
+
*
|
4818
|
+
* @remarks See: https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads
|
4819
|
+
*/
|
4787
4820
|
downloadSettings?: FileDownloadSettings;
|
4821
|
+
/**
|
4822
|
+
* {@inheritDoc ApiInjection}
|
4823
|
+
*/
|
4788
4824
|
api?: ApiInjection;
|
4789
4825
|
};
|
4790
4826
|
};
|
@@ -4823,9 +4859,20 @@ declare type DownloadPreloadOption = {
|
|
4823
4859
|
|
4824
4860
|
/**
|
4825
4861
|
* @interface
|
4862
|
+
*
|
4863
|
+
* A rule governing domain-conditional download behavior.
|
4826
4864
|
*/
|
4827
4865
|
declare type DownloadRule = {
|
4866
|
+
/**
|
4867
|
+
* {@inheritDoc FileDownloadBehaviorNames}
|
4868
|
+
*/
|
4828
4869
|
behavior: FileDownloadBehaviorNames;
|
4870
|
+
/**
|
4871
|
+
* Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
|
4872
|
+
* the domain(s) for which the rule applies.
|
4873
|
+
*
|
4874
|
+
* @remarks The match is evaluated against the URL of the *download*.
|
4875
|
+
*/
|
4829
4876
|
match: string[];
|
4830
4877
|
};
|
4831
4878
|
|
@@ -5521,6 +5568,9 @@ declare type FetchManifestPayload = {
|
|
5521
5568
|
manifestUrl: string;
|
5522
5569
|
};
|
5523
5570
|
|
5571
|
+
/**
|
5572
|
+
* Whether file downloads raise a user prompt.
|
5573
|
+
*/
|
5524
5574
|
declare type FileDownloadBehaviorNames = 'prompt' | 'no-prompt';
|
5525
5575
|
|
5526
5576
|
/**
|
@@ -5603,9 +5653,14 @@ declare type FileDownloadProgressEvent = FileDownloadEvent & {
|
|
5603
5653
|
};
|
5604
5654
|
|
5605
5655
|
/**
|
5606
|
-
*
|
5656
|
+
* Domain-conditional rules for file downloads.
|
5657
|
+
*
|
5658
|
+
* @remarks See: https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads
|
5607
5659
|
*/
|
5608
5660
|
declare type FileDownloadSettings = {
|
5661
|
+
/**
|
5662
|
+
* {@inheritDoc DownloadRule}
|
5663
|
+
*/
|
5609
5664
|
rules: DownloadRule[];
|
5610
5665
|
};
|
5611
5666
|
|
@@ -6670,9 +6725,10 @@ declare type InitPlatformOptions = {
|
|
6670
6725
|
};
|
6671
6726
|
|
6672
6727
|
/**
|
6673
|
-
*
|
6674
|
-
*
|
6675
|
-
*
|
6728
|
+
* Injection setting for the `fin` API.
|
6729
|
+
*
|
6730
|
+
* * 'none': The `fin` API will be not available.
|
6731
|
+
* * 'global': The entire `fin` API will be available.
|
6676
6732
|
*/
|
6677
6733
|
declare type InjectionType = 'none' | 'global';
|
6678
6734
|
|
@@ -9373,7 +9429,7 @@ declare type MutableViewOptions = {
|
|
9373
9429
|
/**
|
9374
9430
|
* Restrict navigation to URLs that match an allowed pattern.
|
9375
9431
|
* In the lack of an allowlist, navigation to URLs that match a denylisted pattern would be prohibited.
|
9376
|
-
* See [here](https://developer.chrome.com/extensions/
|
9432
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
9377
9433
|
*/
|
9378
9434
|
contentNavigation: ContentNavigation;
|
9379
9435
|
contentRedirect: ContentRedirect;
|
package/out/mock.d.ts
CHANGED
@@ -97,7 +97,10 @@ declare type Api = {
|
|
97
97
|
enableDeprecatedSharedName?: boolean;
|
98
98
|
};
|
99
99
|
/**
|
100
|
-
*
|
100
|
+
* Configure injection of the `fin` API in this context.
|
101
|
+
*
|
102
|
+
* * 'none': The `fin` API will be not available in this context.
|
103
|
+
* * 'global': The entire `fin` API will be available in this context.
|
101
104
|
*/
|
102
105
|
fin?: InjectionType;
|
103
106
|
};
|
@@ -113,8 +116,18 @@ declare type ApiClient<T extends Record<any, any>> = {
|
|
113
116
|
|
114
117
|
/**
|
115
118
|
* @interface
|
119
|
+
*
|
120
|
+
* Rules for domain-conditional `fin` API injection.
|
116
121
|
*/
|
117
122
|
declare type ApiInjection = {
|
123
|
+
/**
|
124
|
+
* Injection setting for the `fin` API for contexts on a matched domain.
|
125
|
+
*
|
126
|
+
* * 'none': The `fin` API will be not available.
|
127
|
+
* * 'global': The entire `fin` API will be available.
|
128
|
+
*
|
129
|
+
* @defaultValue 'global'
|
130
|
+
*/
|
118
131
|
fin: InjectionType;
|
119
132
|
};
|
120
133
|
|
@@ -1732,7 +1745,7 @@ declare type BaseConfig = {
|
|
1732
1745
|
*/
|
1733
1746
|
declare type BaseContentCreationRule = {
|
1734
1747
|
/**
|
1735
|
-
* List of [match patterns](https://developer.chrome.com/extensions/
|
1748
|
+
* List of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) that indicate the specified
|
1736
1749
|
* behavior should be used
|
1737
1750
|
*/
|
1738
1751
|
match: MatchPattern[];
|
@@ -3651,13 +3664,13 @@ declare type ConstWindowOptions = {
|
|
3651
3664
|
/**
|
3652
3665
|
* Restrict navigation to URLs that match an allowed pattern.
|
3653
3666
|
* In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
|
3654
|
-
* See [here](https://developer.chrome.com/extensions/
|
3667
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
3655
3668
|
*/
|
3656
3669
|
contentNavigation: ContentNavigation;
|
3657
3670
|
/**
|
3658
3671
|
* Restrict redirects to URLs that match an allowed pattern.
|
3659
3672
|
* In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
|
3660
|
-
* See [here](https://developer.chrome.com/extensions/
|
3673
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
3661
3674
|
*/
|
3662
3675
|
contentRedirect: Partial<ContentRedirect>;
|
3663
3676
|
/**
|
@@ -4202,7 +4215,7 @@ declare interface ContentItem extends EventEmitter_2 {
|
|
4202
4215
|
/**
|
4203
4216
|
* Restrict navigation to URLs that match an allowed pattern.
|
4204
4217
|
* In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
|
4205
|
-
* See [here](https://developer.chrome.com/extensions/
|
4218
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
4206
4219
|
*
|
4207
4220
|
* @interface
|
4208
4221
|
*/
|
@@ -4211,7 +4224,7 @@ declare type ContentNavigation = NavigationRules;
|
|
4211
4224
|
/**
|
4212
4225
|
* Restrict redirects to URLs that match an allowed pattern.
|
4213
4226
|
* In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
|
4214
|
-
* See [here](https://developer.chrome.com/extensions/
|
4227
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
4215
4228
|
*
|
4216
4229
|
* @interface
|
4217
4230
|
*/
|
@@ -4815,19 +4828,42 @@ declare type DisplayMetadata_3 = {
|
|
4815
4828
|
|
4816
4829
|
/**
|
4817
4830
|
* @interface
|
4818
|
-
*
|
4831
|
+
* Defines application settings that vary by the domain of the current context.
|
4832
|
+
*
|
4833
|
+
* @remarks Only the first rule in the array that matches the current URL is applied. Multiple behaviors for the same
|
4834
|
+
* domain should be represented with a single rule.
|
4819
4835
|
*/
|
4820
4836
|
declare type DomainSettings = {
|
4837
|
+
/**
|
4838
|
+
* {@inheritDoc DomainSettingsRule}
|
4839
|
+
*/
|
4821
4840
|
rules: DomainSettingsRule[];
|
4822
4841
|
};
|
4823
4842
|
|
4824
4843
|
/**
|
4825
4844
|
* @interface
|
4845
|
+
*
|
4846
|
+
* Defines domain-conditional settings for an OpenFin application.
|
4826
4847
|
*/
|
4827
4848
|
declare type DomainSettingsRule = {
|
4849
|
+
/**
|
4850
|
+
* Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
|
4851
|
+
* the domain(s) for which the rule applies.
|
4852
|
+
*/
|
4828
4853
|
match: string[];
|
4854
|
+
/**
|
4855
|
+
* Settings applied when a webcontents has been navigated to a matched domain.
|
4856
|
+
*/
|
4829
4857
|
options: {
|
4858
|
+
/**
|
4859
|
+
* {@inheritDoc FileDownloadSettings}
|
4860
|
+
*
|
4861
|
+
* @remarks See: https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads
|
4862
|
+
*/
|
4830
4863
|
downloadSettings?: FileDownloadSettings;
|
4864
|
+
/**
|
4865
|
+
* {@inheritDoc ApiInjection}
|
4866
|
+
*/
|
4831
4867
|
api?: ApiInjection;
|
4832
4868
|
};
|
4833
4869
|
};
|
@@ -4866,9 +4902,20 @@ declare type DownloadPreloadOption = {
|
|
4866
4902
|
|
4867
4903
|
/**
|
4868
4904
|
* @interface
|
4905
|
+
*
|
4906
|
+
* A rule governing domain-conditional download behavior.
|
4869
4907
|
*/
|
4870
4908
|
declare type DownloadRule = {
|
4909
|
+
/**
|
4910
|
+
* {@inheritDoc FileDownloadBehaviorNames}
|
4911
|
+
*/
|
4871
4912
|
behavior: FileDownloadBehaviorNames;
|
4913
|
+
/**
|
4914
|
+
* Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
|
4915
|
+
* the domain(s) for which the rule applies.
|
4916
|
+
*
|
4917
|
+
* @remarks The match is evaluated against the URL of the *download*.
|
4918
|
+
*/
|
4872
4919
|
match: string[];
|
4873
4920
|
};
|
4874
4921
|
|
@@ -5590,6 +5637,9 @@ declare type FetchManifestPayload = {
|
|
5590
5637
|
manifestUrl: string;
|
5591
5638
|
};
|
5592
5639
|
|
5640
|
+
/**
|
5641
|
+
* Whether file downloads raise a user prompt.
|
5642
|
+
*/
|
5593
5643
|
declare type FileDownloadBehaviorNames = 'prompt' | 'no-prompt';
|
5594
5644
|
|
5595
5645
|
/**
|
@@ -5672,9 +5722,14 @@ declare type FileDownloadProgressEvent = FileDownloadEvent & {
|
|
5672
5722
|
};
|
5673
5723
|
|
5674
5724
|
/**
|
5675
|
-
*
|
5725
|
+
* Domain-conditional rules for file downloads.
|
5726
|
+
*
|
5727
|
+
* @remarks See: https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads
|
5676
5728
|
*/
|
5677
5729
|
declare type FileDownloadSettings = {
|
5730
|
+
/**
|
5731
|
+
* {@inheritDoc DownloadRule}
|
5732
|
+
*/
|
5678
5733
|
rules: DownloadRule[];
|
5679
5734
|
};
|
5680
5735
|
|
@@ -6748,9 +6803,10 @@ declare type InitPlatformOptions = {
|
|
6748
6803
|
};
|
6749
6804
|
|
6750
6805
|
/**
|
6751
|
-
*
|
6752
|
-
*
|
6753
|
-
*
|
6806
|
+
* Injection setting for the `fin` API.
|
6807
|
+
*
|
6808
|
+
* * 'none': The `fin` API will be not available.
|
6809
|
+
* * 'global': The entire `fin` API will be available.
|
6754
6810
|
*/
|
6755
6811
|
declare type InjectionType = 'none' | 'global';
|
6756
6812
|
|
@@ -9650,7 +9706,7 @@ declare type MutableViewOptions = {
|
|
9650
9706
|
/**
|
9651
9707
|
* Restrict navigation to URLs that match an allowed pattern.
|
9652
9708
|
* In the lack of an allowlist, navigation to URLs that match a denylisted pattern would be prohibited.
|
9653
|
-
* See [here](https://developer.chrome.com/extensions/
|
9709
|
+
* See [here](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) for more details.
|
9654
9710
|
*/
|
9655
9711
|
contentNavigation: ContentNavigation;
|
9656
9712
|
contentRedirect: ContentRedirect;
|
package/out/mock.js
CHANGED
@@ -15071,49 +15071,42 @@ class InteropClient extends base_1$2.Base {
|
|
15071
15071
|
InteropClient$1.InteropClient = InteropClient;
|
15072
15072
|
_InteropClient_clientPromise = new WeakMap(), _InteropClient_sessionContextGroups = new WeakMap();
|
15073
15073
|
|
15074
|
-
var overrideCheck = {};
|
15075
|
-
|
15076
|
-
|
15077
|
-
|
15078
|
-
|
15079
|
-
|
15080
|
-
|
15081
|
-
|
15082
|
-
|
15083
|
-
|
15084
|
-
|
15085
|
-
|
15086
|
-
|
15087
|
-
|
15088
|
-
|
15089
|
-
|
15090
|
-
|
15091
|
-
|
15092
|
-
|
15093
|
-
|
15094
|
-
|
15095
|
-
|
15096
|
-
|
15097
|
-
|
15098
|
-
|
15099
|
-
|
15100
|
-
|
15101
|
-
|
15102
|
-
|
15103
|
-
|
15104
|
-
|
15105
|
-
|
15106
|
-
|
15107
|
-
|
15108
|
-
const notOverridden = checkFDC32Overrides(overriddenBroker);
|
15109
|
-
if (notOverridden.length > 0) {
|
15110
|
-
console.warn(`WARNING: FDC3 2.0 has been set as a default option for Views in this Platform, but the required InteropBroker APIs for FDC3 2.0 compliance have not all been overridden.\nThe following APIs need to be overridden:\n${notOverridden.join('\n')}`);
|
15111
|
-
}
|
15112
|
-
}
|
15113
|
-
}
|
15114
|
-
overrideCheck.overrideCheck = overrideCheck$1;
|
15115
|
-
return overrideCheck;
|
15074
|
+
var overrideCheck$1 = {};
|
15075
|
+
|
15076
|
+
Object.defineProperty(overrideCheck$1, "__esModule", { value: true });
|
15077
|
+
overrideCheck$1.overrideCheck = overrideCheck$1.checkFDC32Overrides = overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = void 0;
|
15078
|
+
const InteropBroker_1 = requireInteropBroker();
|
15079
|
+
function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
|
15080
|
+
const setVersion = manifest.platform?.defaultViewOptions?.fdc3InteropApi ?? initialOptions.defaultViewOptions?.fdc3InteropApi;
|
15081
|
+
return ['1.2', '2.0'].includes(setVersion ?? '') ? setVersion : undefined;
|
15082
|
+
}
|
15083
|
+
overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
|
15084
|
+
function checkFDC32Overrides(overriddenBroker) {
|
15085
|
+
// These are the APIs that must be overridden for FDC3 2.0 compliance
|
15086
|
+
const mustOverrideAPIs = [
|
15087
|
+
'fdc3HandleFindInstances',
|
15088
|
+
'handleInfoForIntent',
|
15089
|
+
'handleInfoForIntentsByContext',
|
15090
|
+
'fdc3HandleGetAppMetadata',
|
15091
|
+
'fdc3HandleGetInfo',
|
15092
|
+
'fdc3HandleOpen',
|
15093
|
+
'handleFiredIntent',
|
15094
|
+
'handleFiredIntentForContext'
|
15095
|
+
];
|
15096
|
+
return mustOverrideAPIs.filter((api) => {
|
15097
|
+
return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
|
15098
|
+
});
|
15099
|
+
}
|
15100
|
+
overrideCheck$1.checkFDC32Overrides = checkFDC32Overrides;
|
15101
|
+
function overrideCheck(overriddenBroker, fdc3InteropApi) {
|
15102
|
+
if (fdc3InteropApi && fdc3InteropApi === '2.0') {
|
15103
|
+
const notOverridden = checkFDC32Overrides(overriddenBroker);
|
15104
|
+
if (notOverridden.length > 0) {
|
15105
|
+
console.warn(`WARNING: FDC3 2.0 has been set as a default option for Views in this Platform, but the required InteropBroker APIs for FDC3 2.0 compliance have not all been overridden.\nThe following APIs need to be overridden:\n${notOverridden.join('\n')}`);
|
15106
|
+
}
|
15107
|
+
}
|
15116
15108
|
}
|
15109
|
+
overrideCheck$1.overrideCheck = overrideCheck;
|
15117
15110
|
|
15118
15111
|
var hasRequiredFactory;
|
15119
15112
|
|
@@ -15127,7 +15120,7 @@ function requireFactory () {
|
|
15127
15120
|
const base_1 = base;
|
15128
15121
|
const InteropBroker_1 = requireInteropBroker();
|
15129
15122
|
const InteropClient_1 = InteropClient$1;
|
15130
|
-
const overrideCheck_1 =
|
15123
|
+
const overrideCheck_1 = overrideCheck$1;
|
15131
15124
|
const common_utils_1 = commonUtils;
|
15132
15125
|
const defaultOverride = (Class) => new Class();
|
15133
15126
|
const BrokerParamAccessError = 'You have attempted to use or modify InteropBroker parameters, which is not allowed. You are likely using an older InteropBroker override scheme. Please consult our Interop docs for guidance on migrating to the new override scheme.';
|