@openfin/core 36.80.1 → 36.80.2
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 +75 -48
- package/out/mock-beta.d.ts +75 -48
- package/out/mock-public.d.ts +75 -48
- package/out/mock.d.ts +75 -48
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
@@ -76,14 +76,42 @@ declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-rig
|
|
76
76
|
|
77
77
|
declare type AnyStrategy = ClassicStrategy | RTCStrategy | CombinedStrategy<PayloadTypeByStrategy<RTCStrategy>, PayloadTypeByStrategy<ClassicStrategy>>;
|
78
78
|
|
79
|
+
/**
|
80
|
+
* @deprecated Renamed to {@link ApiSettings}.
|
81
|
+
*/
|
82
|
+
declare type Api = ApiSettings;
|
83
|
+
|
84
|
+
declare type ApiCall<Request, Response> = {
|
85
|
+
request: Request;
|
86
|
+
response: Response;
|
87
|
+
};
|
88
|
+
|
89
|
+
declare type ApiClient<T extends Record<any, any>> = {
|
90
|
+
[key in keyof PickOfType<T, Function>]: (...args: Parameters<T[key]>) => ReturnType<T[key]> extends Promise<any> ? ReturnType<T[key]> : Promise<ReturnType<T[key]>>;
|
91
|
+
};
|
92
|
+
|
93
|
+
/**
|
94
|
+
* @deprecated Renamed to {@link DomainApiSettings}.
|
95
|
+
*/
|
96
|
+
declare type ApiInjection = DomainApiSettings;
|
97
|
+
|
98
|
+
/**
|
99
|
+
* Generated when a new Platform's API becomes responsive.
|
100
|
+
* @interface
|
101
|
+
*/
|
102
|
+
declare type ApiReadyEvent = BaseEvent & {
|
103
|
+
topic: 'application';
|
104
|
+
type: 'platform-api-ready';
|
105
|
+
};
|
106
|
+
|
79
107
|
/**
|
80
108
|
* Configurations for API injection.
|
81
109
|
*
|
82
110
|
* @interface
|
83
111
|
*/
|
84
|
-
declare type
|
112
|
+
declare type ApiSettings = {
|
85
113
|
/**
|
86
|
-
* Configure injection of OpenFin API into iframes
|
114
|
+
* Configure conditional injection of OpenFin API into iframes
|
87
115
|
*/
|
88
116
|
iframe?: {
|
89
117
|
/**
|
@@ -114,41 +142,6 @@ declare type Api = {
|
|
114
142
|
fin?: InjectionType;
|
115
143
|
};
|
116
144
|
|
117
|
-
declare type ApiCall<Request, Response> = {
|
118
|
-
request: Request;
|
119
|
-
response: Response;
|
120
|
-
};
|
121
|
-
|
122
|
-
declare type ApiClient<T extends Record<any, any>> = {
|
123
|
-
[key in keyof PickOfType<T, Function>]: (...args: Parameters<T[key]>) => ReturnType<T[key]> extends Promise<any> ? ReturnType<T[key]> : Promise<ReturnType<T[key]>>;
|
124
|
-
};
|
125
|
-
|
126
|
-
/**
|
127
|
-
* @interface
|
128
|
-
*
|
129
|
-
* Rules for domain-conditional `fin` API injection.
|
130
|
-
*/
|
131
|
-
declare type ApiInjection = {
|
132
|
-
/**
|
133
|
-
* Injection setting for the `fin` API for contexts on a matched domain.
|
134
|
-
*
|
135
|
-
* * 'none': The `fin` API will be not available.
|
136
|
-
* * 'global': The entire `fin` API will be available.
|
137
|
-
*
|
138
|
-
* @defaultValue 'global'
|
139
|
-
*/
|
140
|
-
fin: InjectionType;
|
141
|
-
};
|
142
|
-
|
143
|
-
/**
|
144
|
-
* Generated when a new Platform's API becomes responsive.
|
145
|
-
* @interface
|
146
|
-
*/
|
147
|
-
declare type ApiReadyEvent = BaseEvent & {
|
148
|
-
topic: 'application';
|
149
|
-
type: 'platform-api-ready';
|
150
|
-
};
|
151
|
-
|
152
145
|
/**
|
153
146
|
* @interface
|
154
147
|
*/
|
@@ -3522,7 +3515,7 @@ declare type ConstViewOptions = {
|
|
3522
3515
|
/**
|
3523
3516
|
* Configurations for API injection.
|
3524
3517
|
*/
|
3525
|
-
api:
|
3518
|
+
api: ApiSettings;
|
3526
3519
|
/**
|
3527
3520
|
* The name of the view.
|
3528
3521
|
*/
|
@@ -3942,7 +3935,12 @@ declare interface Container extends EventEmitter_2 {
|
|
3942
3935
|
close(): boolean;
|
3943
3936
|
}
|
3944
3937
|
|
3945
|
-
declare type
|
3938
|
+
declare type ContentCreationBehavior = 'window' | 'view' | 'block' | 'browser';
|
3939
|
+
|
3940
|
+
/**
|
3941
|
+
* @deprecated Renamed to {@link ContentCreationBehavior}.
|
3942
|
+
*/
|
3943
|
+
declare type ContentCreationBehaviorNames = ContentCreationBehavior;
|
3946
3944
|
|
3947
3945
|
/**
|
3948
3946
|
* Configures how new content (e,g, from `window.open` or a link) is opened.
|
@@ -3966,7 +3964,7 @@ declare type ContentCreationOptions = {
|
|
3966
3964
|
* @typeParam Behavior The way content governed by this rule will be created. If provided, this type will narrow to
|
3967
3965
|
* the specified `behavior` key.
|
3968
3966
|
*/
|
3969
|
-
declare type ContentCreationRule<Behavior extends
|
3967
|
+
declare type ContentCreationRule<Behavior extends ContentCreationBehavior = ContentCreationBehavior> = Extract<WindowContentCreationRule | ViewContentCreationRule | BrowserContentCreationRule | BlockedContentCreationRule, {
|
3970
3968
|
behavior: Behavior;
|
3971
3969
|
}>;
|
3972
3970
|
|
@@ -4851,6 +4849,25 @@ declare type DisplayMetadata_3 = {
|
|
4851
4849
|
readonly glyph?: string;
|
4852
4850
|
};
|
4853
4851
|
|
4852
|
+
/**
|
4853
|
+
* @interface
|
4854
|
+
*
|
4855
|
+
* Rules for domain-conditional `fin` API injection.
|
4856
|
+
*
|
4857
|
+
* @remarks Subset of {@link DomainSettings}.
|
4858
|
+
*/
|
4859
|
+
declare type DomainApiSettings = {
|
4860
|
+
/**
|
4861
|
+
* Injection setting for the `fin` API for contexts on a matched domain.
|
4862
|
+
*
|
4863
|
+
* * 'none': The `fin` API will be not available.
|
4864
|
+
* * 'global': The entire `fin` API will be available.
|
4865
|
+
*
|
4866
|
+
* @defaultValue 'global'
|
4867
|
+
*/
|
4868
|
+
fin: InjectionType;
|
4869
|
+
};
|
4870
|
+
|
4854
4871
|
/**
|
4855
4872
|
* @interface
|
4856
4873
|
* Defines application settings that vary by the domain of the current context.
|
@@ -4889,7 +4906,7 @@ declare type DomainSettingsRule = {
|
|
4889
4906
|
/**
|
4890
4907
|
* {@inheritDoc ApiInjection}
|
4891
4908
|
*/
|
4892
|
-
api?:
|
4909
|
+
api?: DomainApiSettings;
|
4893
4910
|
};
|
4894
4911
|
};
|
4895
4912
|
|
@@ -4928,18 +4945,19 @@ declare type DownloadPreloadOption = {
|
|
4928
4945
|
/**
|
4929
4946
|
* @interface
|
4930
4947
|
*
|
4931
|
-
* A rule
|
4948
|
+
* A rule that governs download behavior, discriminated by the URL of the download.
|
4932
4949
|
*/
|
4933
4950
|
declare type DownloadRule = {
|
4934
4951
|
/**
|
4935
|
-
* {@inheritDoc
|
4952
|
+
* {@inheritDoc FileDownloadBehavior}
|
4936
4953
|
*/
|
4937
|
-
behavior:
|
4954
|
+
behavior: FileDownloadBehavior;
|
4938
4955
|
/**
|
4939
4956
|
* Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
|
4940
|
-
*
|
4957
|
+
* URL(s) of the resource(s) being downloaded.
|
4941
4958
|
*
|
4942
|
-
* @remarks The match is evaluated against the URL of the *
|
4959
|
+
* @remarks The match is evaluated against the URL of the *file*, which is not necessarily the same as that
|
4960
|
+
* of the page in which a file download link is embedded.
|
4943
4961
|
*/
|
4944
4962
|
match: string[];
|
4945
4963
|
};
|
@@ -5645,7 +5663,12 @@ declare type FetchManifestPayload = {
|
|
5645
5663
|
/**
|
5646
5664
|
* Whether file downloads raise a user prompt.
|
5647
5665
|
*/
|
5648
|
-
declare type
|
5666
|
+
declare type FileDownloadBehavior = 'prompt' | 'no-prompt';
|
5667
|
+
|
5668
|
+
/**
|
5669
|
+
* @deprecated Renamed to {@link FileDownloadBehavior}.
|
5670
|
+
*/
|
5671
|
+
declare type FileDownloadBehaviorNames = FileDownloadBehavior;
|
5649
5672
|
|
5650
5673
|
/**
|
5651
5674
|
* Generated when a file download has completed.
|
@@ -9530,7 +9553,7 @@ declare type MutableViewOptions = {
|
|
9530
9553
|
/**
|
9531
9554
|
* Configurations for API injection.
|
9532
9555
|
*/
|
9533
|
-
api:
|
9556
|
+
api: ApiSettings;
|
9534
9557
|
/**
|
9535
9558
|
* Restrict navigation to URLs that match an allowed pattern.
|
9536
9559
|
* In the lack of an allowlist, navigation to URLs that match a denylisted pattern would be prohibited.
|
@@ -9992,6 +10015,7 @@ declare namespace OpenFin_2 {
|
|
9992
10015
|
ResizeRegion,
|
9993
10016
|
Accelerator,
|
9994
10017
|
Api,
|
10018
|
+
ApiSettings,
|
9995
10019
|
InjectionType,
|
9996
10020
|
NavigationRules,
|
9997
10021
|
ContentNavigation,
|
@@ -10143,7 +10167,9 @@ declare namespace OpenFin_2 {
|
|
10143
10167
|
DefaultDomainSettingsRule,
|
10144
10168
|
DomainSettings,
|
10145
10169
|
ApiInjection,
|
10170
|
+
DomainApiSettings,
|
10146
10171
|
DomainSettingsRule,
|
10172
|
+
FileDownloadBehavior,
|
10147
10173
|
FileDownloadBehaviorNames,
|
10148
10174
|
FileDownloadSettings,
|
10149
10175
|
DownloadRule,
|
@@ -10151,6 +10177,7 @@ declare namespace OpenFin_2 {
|
|
10151
10177
|
Intent_2 as Intent,
|
10152
10178
|
IntentMetadata_3 as IntentMetadata,
|
10153
10179
|
IntentHandler_2 as IntentHandler,
|
10180
|
+
ContentCreationBehavior,
|
10154
10181
|
ContentCreationBehaviorNames,
|
10155
10182
|
MatchPattern,
|
10156
10183
|
BaseContentCreationRule,
|
package/out/mock-beta.d.ts
CHANGED
@@ -76,14 +76,42 @@ declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-rig
|
|
76
76
|
|
77
77
|
declare type AnyStrategy = ClassicStrategy | RTCStrategy | CombinedStrategy<PayloadTypeByStrategy<RTCStrategy>, PayloadTypeByStrategy<ClassicStrategy>>;
|
78
78
|
|
79
|
+
/**
|
80
|
+
* @deprecated Renamed to {@link ApiSettings}.
|
81
|
+
*/
|
82
|
+
declare type Api = ApiSettings;
|
83
|
+
|
84
|
+
declare type ApiCall<Request, Response> = {
|
85
|
+
request: Request;
|
86
|
+
response: Response;
|
87
|
+
};
|
88
|
+
|
89
|
+
declare type ApiClient<T extends Record<any, any>> = {
|
90
|
+
[key in keyof PickOfType<T, Function>]: (...args: Parameters<T[key]>) => ReturnType<T[key]> extends Promise<any> ? ReturnType<T[key]> : Promise<ReturnType<T[key]>>;
|
91
|
+
};
|
92
|
+
|
93
|
+
/**
|
94
|
+
* @deprecated Renamed to {@link DomainApiSettings}.
|
95
|
+
*/
|
96
|
+
declare type ApiInjection = DomainApiSettings;
|
97
|
+
|
98
|
+
/**
|
99
|
+
* Generated when a new Platform's API becomes responsive.
|
100
|
+
* @interface
|
101
|
+
*/
|
102
|
+
declare type ApiReadyEvent = BaseEvent & {
|
103
|
+
topic: 'application';
|
104
|
+
type: 'platform-api-ready';
|
105
|
+
};
|
106
|
+
|
79
107
|
/**
|
80
108
|
* Configurations for API injection.
|
81
109
|
*
|
82
110
|
* @interface
|
83
111
|
*/
|
84
|
-
declare type
|
112
|
+
declare type ApiSettings = {
|
85
113
|
/**
|
86
|
-
* Configure injection of OpenFin API into iframes
|
114
|
+
* Configure conditional injection of OpenFin API into iframes
|
87
115
|
*/
|
88
116
|
iframe?: {
|
89
117
|
/**
|
@@ -114,41 +142,6 @@ declare type Api = {
|
|
114
142
|
fin?: InjectionType;
|
115
143
|
};
|
116
144
|
|
117
|
-
declare type ApiCall<Request, Response> = {
|
118
|
-
request: Request;
|
119
|
-
response: Response;
|
120
|
-
};
|
121
|
-
|
122
|
-
declare type ApiClient<T extends Record<any, any>> = {
|
123
|
-
[key in keyof PickOfType<T, Function>]: (...args: Parameters<T[key]>) => ReturnType<T[key]> extends Promise<any> ? ReturnType<T[key]> : Promise<ReturnType<T[key]>>;
|
124
|
-
};
|
125
|
-
|
126
|
-
/**
|
127
|
-
* @interface
|
128
|
-
*
|
129
|
-
* Rules for domain-conditional `fin` API injection.
|
130
|
-
*/
|
131
|
-
declare type ApiInjection = {
|
132
|
-
/**
|
133
|
-
* Injection setting for the `fin` API for contexts on a matched domain.
|
134
|
-
*
|
135
|
-
* * 'none': The `fin` API will be not available.
|
136
|
-
* * 'global': The entire `fin` API will be available.
|
137
|
-
*
|
138
|
-
* @defaultValue 'global'
|
139
|
-
*/
|
140
|
-
fin: InjectionType;
|
141
|
-
};
|
142
|
-
|
143
|
-
/**
|
144
|
-
* Generated when a new Platform's API becomes responsive.
|
145
|
-
* @interface
|
146
|
-
*/
|
147
|
-
declare type ApiReadyEvent = BaseEvent & {
|
148
|
-
topic: 'application';
|
149
|
-
type: 'platform-api-ready';
|
150
|
-
};
|
151
|
-
|
152
145
|
/**
|
153
146
|
* @interface
|
154
147
|
*/
|
@@ -3522,7 +3515,7 @@ declare type ConstViewOptions = {
|
|
3522
3515
|
/**
|
3523
3516
|
* Configurations for API injection.
|
3524
3517
|
*/
|
3525
|
-
api:
|
3518
|
+
api: ApiSettings;
|
3526
3519
|
/**
|
3527
3520
|
* The name of the view.
|
3528
3521
|
*/
|
@@ -3942,7 +3935,12 @@ declare interface Container extends EventEmitter_2 {
|
|
3942
3935
|
close(): boolean;
|
3943
3936
|
}
|
3944
3937
|
|
3945
|
-
declare type
|
3938
|
+
declare type ContentCreationBehavior = 'window' | 'view' | 'block' | 'browser';
|
3939
|
+
|
3940
|
+
/**
|
3941
|
+
* @deprecated Renamed to {@link ContentCreationBehavior}.
|
3942
|
+
*/
|
3943
|
+
declare type ContentCreationBehaviorNames = ContentCreationBehavior;
|
3946
3944
|
|
3947
3945
|
/**
|
3948
3946
|
* Configures how new content (e,g, from `window.open` or a link) is opened.
|
@@ -3966,7 +3964,7 @@ declare type ContentCreationOptions = {
|
|
3966
3964
|
* @typeParam Behavior The way content governed by this rule will be created. If provided, this type will narrow to
|
3967
3965
|
* the specified `behavior` key.
|
3968
3966
|
*/
|
3969
|
-
declare type ContentCreationRule<Behavior extends
|
3967
|
+
declare type ContentCreationRule<Behavior extends ContentCreationBehavior = ContentCreationBehavior> = Extract<WindowContentCreationRule | ViewContentCreationRule | BrowserContentCreationRule | BlockedContentCreationRule, {
|
3970
3968
|
behavior: Behavior;
|
3971
3969
|
}>;
|
3972
3970
|
|
@@ -4851,6 +4849,25 @@ declare type DisplayMetadata_3 = {
|
|
4851
4849
|
readonly glyph?: string;
|
4852
4850
|
};
|
4853
4851
|
|
4852
|
+
/**
|
4853
|
+
* @interface
|
4854
|
+
*
|
4855
|
+
* Rules for domain-conditional `fin` API injection.
|
4856
|
+
*
|
4857
|
+
* @remarks Subset of {@link DomainSettings}.
|
4858
|
+
*/
|
4859
|
+
declare type DomainApiSettings = {
|
4860
|
+
/**
|
4861
|
+
* Injection setting for the `fin` API for contexts on a matched domain.
|
4862
|
+
*
|
4863
|
+
* * 'none': The `fin` API will be not available.
|
4864
|
+
* * 'global': The entire `fin` API will be available.
|
4865
|
+
*
|
4866
|
+
* @defaultValue 'global'
|
4867
|
+
*/
|
4868
|
+
fin: InjectionType;
|
4869
|
+
};
|
4870
|
+
|
4854
4871
|
/**
|
4855
4872
|
* @interface
|
4856
4873
|
* Defines application settings that vary by the domain of the current context.
|
@@ -4889,7 +4906,7 @@ declare type DomainSettingsRule = {
|
|
4889
4906
|
/**
|
4890
4907
|
* {@inheritDoc ApiInjection}
|
4891
4908
|
*/
|
4892
|
-
api?:
|
4909
|
+
api?: DomainApiSettings;
|
4893
4910
|
};
|
4894
4911
|
};
|
4895
4912
|
|
@@ -4928,18 +4945,19 @@ declare type DownloadPreloadOption = {
|
|
4928
4945
|
/**
|
4929
4946
|
* @interface
|
4930
4947
|
*
|
4931
|
-
* A rule
|
4948
|
+
* A rule that governs download behavior, discriminated by the URL of the download.
|
4932
4949
|
*/
|
4933
4950
|
declare type DownloadRule = {
|
4934
4951
|
/**
|
4935
|
-
* {@inheritDoc
|
4952
|
+
* {@inheritDoc FileDownloadBehavior}
|
4936
4953
|
*/
|
4937
|
-
behavior:
|
4954
|
+
behavior: FileDownloadBehavior;
|
4938
4955
|
/**
|
4939
4956
|
* Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
|
4940
|
-
*
|
4957
|
+
* URL(s) of the resource(s) being downloaded.
|
4941
4958
|
*
|
4942
|
-
* @remarks The match is evaluated against the URL of the *
|
4959
|
+
* @remarks The match is evaluated against the URL of the *file*, which is not necessarily the same as that
|
4960
|
+
* of the page in which a file download link is embedded.
|
4943
4961
|
*/
|
4944
4962
|
match: string[];
|
4945
4963
|
};
|
@@ -5645,7 +5663,12 @@ declare type FetchManifestPayload = {
|
|
5645
5663
|
/**
|
5646
5664
|
* Whether file downloads raise a user prompt.
|
5647
5665
|
*/
|
5648
|
-
declare type
|
5666
|
+
declare type FileDownloadBehavior = 'prompt' | 'no-prompt';
|
5667
|
+
|
5668
|
+
/**
|
5669
|
+
* @deprecated Renamed to {@link FileDownloadBehavior}.
|
5670
|
+
*/
|
5671
|
+
declare type FileDownloadBehaviorNames = FileDownloadBehavior;
|
5649
5672
|
|
5650
5673
|
/**
|
5651
5674
|
* Generated when a file download has completed.
|
@@ -9530,7 +9553,7 @@ declare type MutableViewOptions = {
|
|
9530
9553
|
/**
|
9531
9554
|
* Configurations for API injection.
|
9532
9555
|
*/
|
9533
|
-
api:
|
9556
|
+
api: ApiSettings;
|
9534
9557
|
/**
|
9535
9558
|
* Restrict navigation to URLs that match an allowed pattern.
|
9536
9559
|
* In the lack of an allowlist, navigation to URLs that match a denylisted pattern would be prohibited.
|
@@ -9992,6 +10015,7 @@ declare namespace OpenFin_2 {
|
|
9992
10015
|
ResizeRegion,
|
9993
10016
|
Accelerator,
|
9994
10017
|
Api,
|
10018
|
+
ApiSettings,
|
9995
10019
|
InjectionType,
|
9996
10020
|
NavigationRules,
|
9997
10021
|
ContentNavigation,
|
@@ -10143,7 +10167,9 @@ declare namespace OpenFin_2 {
|
|
10143
10167
|
DefaultDomainSettingsRule,
|
10144
10168
|
DomainSettings,
|
10145
10169
|
ApiInjection,
|
10170
|
+
DomainApiSettings,
|
10146
10171
|
DomainSettingsRule,
|
10172
|
+
FileDownloadBehavior,
|
10147
10173
|
FileDownloadBehaviorNames,
|
10148
10174
|
FileDownloadSettings,
|
10149
10175
|
DownloadRule,
|
@@ -10151,6 +10177,7 @@ declare namespace OpenFin_2 {
|
|
10151
10177
|
Intent_2 as Intent,
|
10152
10178
|
IntentMetadata_3 as IntentMetadata,
|
10153
10179
|
IntentHandler_2 as IntentHandler,
|
10180
|
+
ContentCreationBehavior,
|
10154
10181
|
ContentCreationBehaviorNames,
|
10155
10182
|
MatchPattern,
|
10156
10183
|
BaseContentCreationRule,
|
package/out/mock-public.d.ts
CHANGED
@@ -76,14 +76,42 @@ declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-rig
|
|
76
76
|
|
77
77
|
declare type AnyStrategy = ClassicStrategy | RTCStrategy | CombinedStrategy<PayloadTypeByStrategy<RTCStrategy>, PayloadTypeByStrategy<ClassicStrategy>>;
|
78
78
|
|
79
|
+
/**
|
80
|
+
* @deprecated Renamed to {@link ApiSettings}.
|
81
|
+
*/
|
82
|
+
declare type Api = ApiSettings;
|
83
|
+
|
84
|
+
declare type ApiCall<Request, Response> = {
|
85
|
+
request: Request;
|
86
|
+
response: Response;
|
87
|
+
};
|
88
|
+
|
89
|
+
declare type ApiClient<T extends Record<any, any>> = {
|
90
|
+
[key in keyof PickOfType<T, Function>]: (...args: Parameters<T[key]>) => ReturnType<T[key]> extends Promise<any> ? ReturnType<T[key]> : Promise<ReturnType<T[key]>>;
|
91
|
+
};
|
92
|
+
|
93
|
+
/**
|
94
|
+
* @deprecated Renamed to {@link DomainApiSettings}.
|
95
|
+
*/
|
96
|
+
declare type ApiInjection = DomainApiSettings;
|
97
|
+
|
98
|
+
/**
|
99
|
+
* Generated when a new Platform's API becomes responsive.
|
100
|
+
* @interface
|
101
|
+
*/
|
102
|
+
declare type ApiReadyEvent = BaseEvent & {
|
103
|
+
topic: 'application';
|
104
|
+
type: 'platform-api-ready';
|
105
|
+
};
|
106
|
+
|
79
107
|
/**
|
80
108
|
* Configurations for API injection.
|
81
109
|
*
|
82
110
|
* @interface
|
83
111
|
*/
|
84
|
-
declare type
|
112
|
+
declare type ApiSettings = {
|
85
113
|
/**
|
86
|
-
* Configure injection of OpenFin API into iframes
|
114
|
+
* Configure conditional injection of OpenFin API into iframes
|
87
115
|
*/
|
88
116
|
iframe?: {
|
89
117
|
/**
|
@@ -114,41 +142,6 @@ declare type Api = {
|
|
114
142
|
fin?: InjectionType;
|
115
143
|
};
|
116
144
|
|
117
|
-
declare type ApiCall<Request, Response> = {
|
118
|
-
request: Request;
|
119
|
-
response: Response;
|
120
|
-
};
|
121
|
-
|
122
|
-
declare type ApiClient<T extends Record<any, any>> = {
|
123
|
-
[key in keyof PickOfType<T, Function>]: (...args: Parameters<T[key]>) => ReturnType<T[key]> extends Promise<any> ? ReturnType<T[key]> : Promise<ReturnType<T[key]>>;
|
124
|
-
};
|
125
|
-
|
126
|
-
/**
|
127
|
-
* @interface
|
128
|
-
*
|
129
|
-
* Rules for domain-conditional `fin` API injection.
|
130
|
-
*/
|
131
|
-
declare type ApiInjection = {
|
132
|
-
/**
|
133
|
-
* Injection setting for the `fin` API for contexts on a matched domain.
|
134
|
-
*
|
135
|
-
* * 'none': The `fin` API will be not available.
|
136
|
-
* * 'global': The entire `fin` API will be available.
|
137
|
-
*
|
138
|
-
* @defaultValue 'global'
|
139
|
-
*/
|
140
|
-
fin: InjectionType;
|
141
|
-
};
|
142
|
-
|
143
|
-
/**
|
144
|
-
* Generated when a new Platform's API becomes responsive.
|
145
|
-
* @interface
|
146
|
-
*/
|
147
|
-
declare type ApiReadyEvent = BaseEvent & {
|
148
|
-
topic: 'application';
|
149
|
-
type: 'platform-api-ready';
|
150
|
-
};
|
151
|
-
|
152
145
|
/**
|
153
146
|
* @interface
|
154
147
|
*/
|
@@ -3522,7 +3515,7 @@ declare type ConstViewOptions = {
|
|
3522
3515
|
/**
|
3523
3516
|
* Configurations for API injection.
|
3524
3517
|
*/
|
3525
|
-
api:
|
3518
|
+
api: ApiSettings;
|
3526
3519
|
/**
|
3527
3520
|
* The name of the view.
|
3528
3521
|
*/
|
@@ -3942,7 +3935,12 @@ declare interface Container extends EventEmitter_2 {
|
|
3942
3935
|
close(): boolean;
|
3943
3936
|
}
|
3944
3937
|
|
3945
|
-
declare type
|
3938
|
+
declare type ContentCreationBehavior = 'window' | 'view' | 'block' | 'browser';
|
3939
|
+
|
3940
|
+
/**
|
3941
|
+
* @deprecated Renamed to {@link ContentCreationBehavior}.
|
3942
|
+
*/
|
3943
|
+
declare type ContentCreationBehaviorNames = ContentCreationBehavior;
|
3946
3944
|
|
3947
3945
|
/**
|
3948
3946
|
* Configures how new content (e,g, from `window.open` or a link) is opened.
|
@@ -3966,7 +3964,7 @@ declare type ContentCreationOptions = {
|
|
3966
3964
|
* @typeParam Behavior The way content governed by this rule will be created. If provided, this type will narrow to
|
3967
3965
|
* the specified `behavior` key.
|
3968
3966
|
*/
|
3969
|
-
declare type ContentCreationRule<Behavior extends
|
3967
|
+
declare type ContentCreationRule<Behavior extends ContentCreationBehavior = ContentCreationBehavior> = Extract<WindowContentCreationRule | ViewContentCreationRule | BrowserContentCreationRule | BlockedContentCreationRule, {
|
3970
3968
|
behavior: Behavior;
|
3971
3969
|
}>;
|
3972
3970
|
|
@@ -4851,6 +4849,25 @@ declare type DisplayMetadata_3 = {
|
|
4851
4849
|
readonly glyph?: string;
|
4852
4850
|
};
|
4853
4851
|
|
4852
|
+
/**
|
4853
|
+
* @interface
|
4854
|
+
*
|
4855
|
+
* Rules for domain-conditional `fin` API injection.
|
4856
|
+
*
|
4857
|
+
* @remarks Subset of {@link DomainSettings}.
|
4858
|
+
*/
|
4859
|
+
declare type DomainApiSettings = {
|
4860
|
+
/**
|
4861
|
+
* Injection setting for the `fin` API for contexts on a matched domain.
|
4862
|
+
*
|
4863
|
+
* * 'none': The `fin` API will be not available.
|
4864
|
+
* * 'global': The entire `fin` API will be available.
|
4865
|
+
*
|
4866
|
+
* @defaultValue 'global'
|
4867
|
+
*/
|
4868
|
+
fin: InjectionType;
|
4869
|
+
};
|
4870
|
+
|
4854
4871
|
/**
|
4855
4872
|
* @interface
|
4856
4873
|
* Defines application settings that vary by the domain of the current context.
|
@@ -4889,7 +4906,7 @@ declare type DomainSettingsRule = {
|
|
4889
4906
|
/**
|
4890
4907
|
* {@inheritDoc ApiInjection}
|
4891
4908
|
*/
|
4892
|
-
api?:
|
4909
|
+
api?: DomainApiSettings;
|
4893
4910
|
};
|
4894
4911
|
};
|
4895
4912
|
|
@@ -4928,18 +4945,19 @@ declare type DownloadPreloadOption = {
|
|
4928
4945
|
/**
|
4929
4946
|
* @interface
|
4930
4947
|
*
|
4931
|
-
* A rule
|
4948
|
+
* A rule that governs download behavior, discriminated by the URL of the download.
|
4932
4949
|
*/
|
4933
4950
|
declare type DownloadRule = {
|
4934
4951
|
/**
|
4935
|
-
* {@inheritDoc
|
4952
|
+
* {@inheritDoc FileDownloadBehavior}
|
4936
4953
|
*/
|
4937
|
-
behavior:
|
4954
|
+
behavior: FileDownloadBehavior;
|
4938
4955
|
/**
|
4939
4956
|
* Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
|
4940
|
-
*
|
4957
|
+
* URL(s) of the resource(s) being downloaded.
|
4941
4958
|
*
|
4942
|
-
* @remarks The match is evaluated against the URL of the *
|
4959
|
+
* @remarks The match is evaluated against the URL of the *file*, which is not necessarily the same as that
|
4960
|
+
* of the page in which a file download link is embedded.
|
4943
4961
|
*/
|
4944
4962
|
match: string[];
|
4945
4963
|
};
|
@@ -5645,7 +5663,12 @@ declare type FetchManifestPayload = {
|
|
5645
5663
|
/**
|
5646
5664
|
* Whether file downloads raise a user prompt.
|
5647
5665
|
*/
|
5648
|
-
declare type
|
5666
|
+
declare type FileDownloadBehavior = 'prompt' | 'no-prompt';
|
5667
|
+
|
5668
|
+
/**
|
5669
|
+
* @deprecated Renamed to {@link FileDownloadBehavior}.
|
5670
|
+
*/
|
5671
|
+
declare type FileDownloadBehaviorNames = FileDownloadBehavior;
|
5649
5672
|
|
5650
5673
|
/**
|
5651
5674
|
* Generated when a file download has completed.
|
@@ -9530,7 +9553,7 @@ declare type MutableViewOptions = {
|
|
9530
9553
|
/**
|
9531
9554
|
* Configurations for API injection.
|
9532
9555
|
*/
|
9533
|
-
api:
|
9556
|
+
api: ApiSettings;
|
9534
9557
|
/**
|
9535
9558
|
* Restrict navigation to URLs that match an allowed pattern.
|
9536
9559
|
* In the lack of an allowlist, navigation to URLs that match a denylisted pattern would be prohibited.
|
@@ -9992,6 +10015,7 @@ declare namespace OpenFin_2 {
|
|
9992
10015
|
ResizeRegion,
|
9993
10016
|
Accelerator,
|
9994
10017
|
Api,
|
10018
|
+
ApiSettings,
|
9995
10019
|
InjectionType,
|
9996
10020
|
NavigationRules,
|
9997
10021
|
ContentNavigation,
|
@@ -10143,7 +10167,9 @@ declare namespace OpenFin_2 {
|
|
10143
10167
|
DefaultDomainSettingsRule,
|
10144
10168
|
DomainSettings,
|
10145
10169
|
ApiInjection,
|
10170
|
+
DomainApiSettings,
|
10146
10171
|
DomainSettingsRule,
|
10172
|
+
FileDownloadBehavior,
|
10147
10173
|
FileDownloadBehaviorNames,
|
10148
10174
|
FileDownloadSettings,
|
10149
10175
|
DownloadRule,
|
@@ -10151,6 +10177,7 @@ declare namespace OpenFin_2 {
|
|
10151
10177
|
Intent_2 as Intent,
|
10152
10178
|
IntentMetadata_3 as IntentMetadata,
|
10153
10179
|
IntentHandler_2 as IntentHandler,
|
10180
|
+
ContentCreationBehavior,
|
10154
10181
|
ContentCreationBehaviorNames,
|
10155
10182
|
MatchPattern,
|
10156
10183
|
BaseContentCreationRule,
|
package/out/mock.d.ts
CHANGED
@@ -76,14 +76,42 @@ declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-rig
|
|
76
76
|
|
77
77
|
declare type AnyStrategy = ClassicStrategy | RTCStrategy | CombinedStrategy<PayloadTypeByStrategy<RTCStrategy>, PayloadTypeByStrategy<ClassicStrategy>>;
|
78
78
|
|
79
|
+
/**
|
80
|
+
* @deprecated Renamed to {@link ApiSettings}.
|
81
|
+
*/
|
82
|
+
declare type Api = ApiSettings;
|
83
|
+
|
84
|
+
declare type ApiCall<Request, Response> = {
|
85
|
+
request: Request;
|
86
|
+
response: Response;
|
87
|
+
};
|
88
|
+
|
89
|
+
declare type ApiClient<T extends Record<any, any>> = {
|
90
|
+
[key in keyof PickOfType<T, Function>]: (...args: Parameters<T[key]>) => ReturnType<T[key]> extends Promise<any> ? ReturnType<T[key]> : Promise<ReturnType<T[key]>>;
|
91
|
+
};
|
92
|
+
|
93
|
+
/**
|
94
|
+
* @deprecated Renamed to {@link DomainApiSettings}.
|
95
|
+
*/
|
96
|
+
declare type ApiInjection = DomainApiSettings;
|
97
|
+
|
98
|
+
/**
|
99
|
+
* Generated when a new Platform's API becomes responsive.
|
100
|
+
* @interface
|
101
|
+
*/
|
102
|
+
declare type ApiReadyEvent = BaseEvent & {
|
103
|
+
topic: 'application';
|
104
|
+
type: 'platform-api-ready';
|
105
|
+
};
|
106
|
+
|
79
107
|
/**
|
80
108
|
* Configurations for API injection.
|
81
109
|
*
|
82
110
|
* @interface
|
83
111
|
*/
|
84
|
-
declare type
|
112
|
+
declare type ApiSettings = {
|
85
113
|
/**
|
86
|
-
* Configure injection of OpenFin API into iframes
|
114
|
+
* Configure conditional injection of OpenFin API into iframes
|
87
115
|
*/
|
88
116
|
iframe?: {
|
89
117
|
/**
|
@@ -114,41 +142,6 @@ declare type Api = {
|
|
114
142
|
fin?: InjectionType;
|
115
143
|
};
|
116
144
|
|
117
|
-
declare type ApiCall<Request, Response> = {
|
118
|
-
request: Request;
|
119
|
-
response: Response;
|
120
|
-
};
|
121
|
-
|
122
|
-
declare type ApiClient<T extends Record<any, any>> = {
|
123
|
-
[key in keyof PickOfType<T, Function>]: (...args: Parameters<T[key]>) => ReturnType<T[key]> extends Promise<any> ? ReturnType<T[key]> : Promise<ReturnType<T[key]>>;
|
124
|
-
};
|
125
|
-
|
126
|
-
/**
|
127
|
-
* @interface
|
128
|
-
*
|
129
|
-
* Rules for domain-conditional `fin` API injection.
|
130
|
-
*/
|
131
|
-
declare type ApiInjection = {
|
132
|
-
/**
|
133
|
-
* Injection setting for the `fin` API for contexts on a matched domain.
|
134
|
-
*
|
135
|
-
* * 'none': The `fin` API will be not available.
|
136
|
-
* * 'global': The entire `fin` API will be available.
|
137
|
-
*
|
138
|
-
* @defaultValue 'global'
|
139
|
-
*/
|
140
|
-
fin: InjectionType;
|
141
|
-
};
|
142
|
-
|
143
|
-
/**
|
144
|
-
* Generated when a new Platform's API becomes responsive.
|
145
|
-
* @interface
|
146
|
-
*/
|
147
|
-
declare type ApiReadyEvent = BaseEvent & {
|
148
|
-
topic: 'application';
|
149
|
-
type: 'platform-api-ready';
|
150
|
-
};
|
151
|
-
|
152
145
|
/**
|
153
146
|
* @interface
|
154
147
|
*/
|
@@ -3577,7 +3570,7 @@ declare type ConstViewOptions = {
|
|
3577
3570
|
/**
|
3578
3571
|
* Configurations for API injection.
|
3579
3572
|
*/
|
3580
|
-
api:
|
3573
|
+
api: ApiSettings;
|
3581
3574
|
/**
|
3582
3575
|
* The name of the view.
|
3583
3576
|
*/
|
@@ -3997,7 +3990,12 @@ declare interface Container extends EventEmitter_2 {
|
|
3997
3990
|
close(): boolean;
|
3998
3991
|
}
|
3999
3992
|
|
4000
|
-
declare type
|
3993
|
+
declare type ContentCreationBehavior = 'window' | 'view' | 'block' | 'browser';
|
3994
|
+
|
3995
|
+
/**
|
3996
|
+
* @deprecated Renamed to {@link ContentCreationBehavior}.
|
3997
|
+
*/
|
3998
|
+
declare type ContentCreationBehaviorNames = ContentCreationBehavior;
|
4001
3999
|
|
4002
4000
|
/**
|
4003
4001
|
* Configures how new content (e,g, from `window.open` or a link) is opened.
|
@@ -4021,7 +4019,7 @@ declare type ContentCreationOptions = {
|
|
4021
4019
|
* @typeParam Behavior The way content governed by this rule will be created. If provided, this type will narrow to
|
4022
4020
|
* the specified `behavior` key.
|
4023
4021
|
*/
|
4024
|
-
declare type ContentCreationRule<Behavior extends
|
4022
|
+
declare type ContentCreationRule<Behavior extends ContentCreationBehavior = ContentCreationBehavior> = Extract<WindowContentCreationRule | ViewContentCreationRule | BrowserContentCreationRule | BlockedContentCreationRule, {
|
4025
4023
|
behavior: Behavior;
|
4026
4024
|
}>;
|
4027
4025
|
|
@@ -4906,6 +4904,25 @@ declare type DisplayMetadata_3 = {
|
|
4906
4904
|
readonly glyph?: string;
|
4907
4905
|
};
|
4908
4906
|
|
4907
|
+
/**
|
4908
|
+
* @interface
|
4909
|
+
*
|
4910
|
+
* Rules for domain-conditional `fin` API injection.
|
4911
|
+
*
|
4912
|
+
* @remarks Subset of {@link DomainSettings}.
|
4913
|
+
*/
|
4914
|
+
declare type DomainApiSettings = {
|
4915
|
+
/**
|
4916
|
+
* Injection setting for the `fin` API for contexts on a matched domain.
|
4917
|
+
*
|
4918
|
+
* * 'none': The `fin` API will be not available.
|
4919
|
+
* * 'global': The entire `fin` API will be available.
|
4920
|
+
*
|
4921
|
+
* @defaultValue 'global'
|
4922
|
+
*/
|
4923
|
+
fin: InjectionType;
|
4924
|
+
};
|
4925
|
+
|
4909
4926
|
/**
|
4910
4927
|
* @interface
|
4911
4928
|
* Defines application settings that vary by the domain of the current context.
|
@@ -4944,7 +4961,7 @@ declare type DomainSettingsRule = {
|
|
4944
4961
|
/**
|
4945
4962
|
* {@inheritDoc ApiInjection}
|
4946
4963
|
*/
|
4947
|
-
api?:
|
4964
|
+
api?: DomainApiSettings;
|
4948
4965
|
};
|
4949
4966
|
};
|
4950
4967
|
|
@@ -4983,18 +5000,19 @@ declare type DownloadPreloadOption = {
|
|
4983
5000
|
/**
|
4984
5001
|
* @interface
|
4985
5002
|
*
|
4986
|
-
* A rule
|
5003
|
+
* A rule that governs download behavior, discriminated by the URL of the download.
|
4987
5004
|
*/
|
4988
5005
|
declare type DownloadRule = {
|
4989
5006
|
/**
|
4990
|
-
* {@inheritDoc
|
5007
|
+
* {@inheritDoc FileDownloadBehavior}
|
4991
5008
|
*/
|
4992
|
-
behavior:
|
5009
|
+
behavior: FileDownloadBehavior;
|
4993
5010
|
/**
|
4994
5011
|
* Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
|
4995
|
-
*
|
5012
|
+
* URL(s) of the resource(s) being downloaded.
|
4996
5013
|
*
|
4997
|
-
* @remarks The match is evaluated against the URL of the *
|
5014
|
+
* @remarks The match is evaluated against the URL of the *file*, which is not necessarily the same as that
|
5015
|
+
* of the page in which a file download link is embedded.
|
4998
5016
|
*/
|
4999
5017
|
match: string[];
|
5000
5018
|
};
|
@@ -5726,7 +5744,12 @@ declare type FetchManifestPayload = {
|
|
5726
5744
|
/**
|
5727
5745
|
* Whether file downloads raise a user prompt.
|
5728
5746
|
*/
|
5729
|
-
declare type
|
5747
|
+
declare type FileDownloadBehavior = 'prompt' | 'no-prompt';
|
5748
|
+
|
5749
|
+
/**
|
5750
|
+
* @deprecated Renamed to {@link FileDownloadBehavior}.
|
5751
|
+
*/
|
5752
|
+
declare type FileDownloadBehaviorNames = FileDownloadBehavior;
|
5730
5753
|
|
5731
5754
|
/**
|
5732
5755
|
* Generated when a file download has completed.
|
@@ -9819,7 +9842,7 @@ declare type MutableViewOptions = {
|
|
9819
9842
|
/**
|
9820
9843
|
* Configurations for API injection.
|
9821
9844
|
*/
|
9822
|
-
api:
|
9845
|
+
api: ApiSettings;
|
9823
9846
|
/**
|
9824
9847
|
* Restrict navigation to URLs that match an allowed pattern.
|
9825
9848
|
* In the lack of an allowlist, navigation to URLs that match a denylisted pattern would be prohibited.
|
@@ -10303,6 +10326,7 @@ declare namespace OpenFin_2 {
|
|
10303
10326
|
ResizeRegion,
|
10304
10327
|
Accelerator,
|
10305
10328
|
Api,
|
10329
|
+
ApiSettings,
|
10306
10330
|
InjectionType,
|
10307
10331
|
NavigationRules,
|
10308
10332
|
ContentNavigation,
|
@@ -10454,7 +10478,9 @@ declare namespace OpenFin_2 {
|
|
10454
10478
|
DefaultDomainSettingsRule,
|
10455
10479
|
DomainSettings,
|
10456
10480
|
ApiInjection,
|
10481
|
+
DomainApiSettings,
|
10457
10482
|
DomainSettingsRule,
|
10483
|
+
FileDownloadBehavior,
|
10458
10484
|
FileDownloadBehaviorNames,
|
10459
10485
|
FileDownloadSettings,
|
10460
10486
|
DownloadRule,
|
@@ -10462,6 +10488,7 @@ declare namespace OpenFin_2 {
|
|
10462
10488
|
Intent_2 as Intent,
|
10463
10489
|
IntentMetadata_3 as IntentMetadata,
|
10464
10490
|
IntentHandler_2 as IntentHandler,
|
10491
|
+
ContentCreationBehavior,
|
10465
10492
|
ContentCreationBehaviorNames,
|
10466
10493
|
MatchPattern,
|
10467
10494
|
BaseContentCreationRule,
|