@openfin/fdc3-api 38.81.29 → 38.81.31
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/fdc3-api-alpha.d.ts +55 -5
- package/out/fdc3-api-beta.d.ts +55 -5
- package/out/fdc3-api-public.d.ts +55 -5
- package/out/fdc3-api.d.ts +55 -5
- package/package.json +1 -1
package/out/fdc3-api-alpha.d.ts
CHANGED
|
@@ -825,7 +825,7 @@ declare class Application extends EmitterBase<OpenFin.ApplicationEvent> {
|
|
|
825
825
|
*/
|
|
826
826
|
showTrayIconPopupMenu<Data>(options: OpenFin.ShowTrayIconPopupMenuOptions<Data>): Promise<OpenFin.MenuResult<Data>>;
|
|
827
827
|
/**
|
|
828
|
-
*
|
|
828
|
+
* Closes the tray icon menu.
|
|
829
829
|
*
|
|
830
830
|
* @throws if the application has no tray icon set
|
|
831
831
|
* @example
|
|
@@ -934,7 +934,7 @@ declare type ApplicationIdentity_2 = {
|
|
|
934
934
|
* @interface
|
|
935
935
|
*/
|
|
936
936
|
declare type ApplicationInfo = {
|
|
937
|
-
initialOptions: ApplicationCreationOptions | PlatformOptions;
|
|
937
|
+
initialOptions: WithUserAppConfigArgs & (ApplicationCreationOptions | PlatformOptions);
|
|
938
938
|
launchMode: string;
|
|
939
939
|
manifest: Manifest & {
|
|
940
940
|
[key: string]: any;
|
|
@@ -3432,6 +3432,13 @@ declare type ConstViewOptions = {
|
|
|
3432
3432
|
* Initial bounds given relative to the window.
|
|
3433
3433
|
*/
|
|
3434
3434
|
bounds: Bounds;
|
|
3435
|
+
/**
|
|
3436
|
+
* API permissions for code running in the view.
|
|
3437
|
+
*
|
|
3438
|
+
* @remarks Superseded by {@link DomainSettings.default.api.permissions} - if present, this setting will be **ignored**.
|
|
3439
|
+
* It is recommended for users to migrate to a domain-based security model, since it is more natural to assign trust
|
|
3440
|
+
* to the source of the page content than to the context rendering it.
|
|
3441
|
+
*/
|
|
3435
3442
|
permissions: Partial<Permissions_2>;
|
|
3436
3443
|
/**
|
|
3437
3444
|
* String tag that attempts to group like-tagged renderers together. Will only be used if pages are on the same origin.
|
|
@@ -3632,6 +3639,13 @@ declare type ConstWindowOptions = {
|
|
|
3632
3639
|
* The name of the window.
|
|
3633
3640
|
*/
|
|
3634
3641
|
name: string;
|
|
3642
|
+
/**
|
|
3643
|
+
* API permissions for code running in the window.
|
|
3644
|
+
*
|
|
3645
|
+
* @remarks Superseded by {@link DomainSettings.default.api.permissions} - if present, this setting will be **ignored**.
|
|
3646
|
+
* It is recommended for users to migrate to a domain-based security model, since it is more natural to assign trust
|
|
3647
|
+
* to the source of the page content than to the context rendering it.
|
|
3648
|
+
*/
|
|
3635
3649
|
permissions: Partial<Permissions_2>;
|
|
3636
3650
|
/**
|
|
3637
3651
|
* Scripts that run before page load. When omitted, inherits from the parent application.
|
|
@@ -4712,6 +4726,10 @@ declare type DomainSettings = {
|
|
|
4712
4726
|
rules: DomainSettingsRule[];
|
|
4713
4727
|
/**
|
|
4714
4728
|
* Default values for settings in {@link DomainSettingsRule}.
|
|
4729
|
+
*
|
|
4730
|
+
* @remarks If {@link PerDomainSettings.content} or {@link PerDomainSettings.api.fin} are given a default value
|
|
4731
|
+
* here, they will supersede any equivalent functionality in {@link WindowOptions} or {@link ViewOptions}. For
|
|
4732
|
+
* more information, see the documentation for the individual properties.
|
|
4715
4733
|
*/
|
|
4716
4734
|
default?: PerDomainSettings;
|
|
4717
4735
|
};
|
|
@@ -10243,6 +10261,7 @@ declare namespace OpenFin {
|
|
|
10243
10261
|
AppVersionError,
|
|
10244
10262
|
AppVersionRuntimeInfo,
|
|
10245
10263
|
LaunchEmitter,
|
|
10264
|
+
UserAppConfigArgs,
|
|
10246
10265
|
RvmLaunchOptions,
|
|
10247
10266
|
ShortCutConfig,
|
|
10248
10267
|
TerminateExternalRequestType,
|
|
@@ -10551,7 +10570,7 @@ declare type PerDomainSettings = {
|
|
|
10551
10570
|
* Whether DOM content can be loaded (by navigation or redirect).
|
|
10552
10571
|
*
|
|
10553
10572
|
* @remarks If this is included in {@link DomainSettings.default}, then {@link ContentNavigation} and
|
|
10554
|
-
* {@link ContentRedirect} will be **ignored**.
|
|
10573
|
+
* {@link ContentRedirect} in {@link WindowOptions} and {@link ViewOptions} will be **ignored**.
|
|
10555
10574
|
*/
|
|
10556
10575
|
content?: ContentPermission;
|
|
10557
10576
|
};
|
|
@@ -13068,7 +13087,7 @@ declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
|
|
|
13068
13087
|
declare type RunRequestedEvent_2 = BaseEvents.IdentityEvent & {
|
|
13069
13088
|
topic: 'application';
|
|
13070
13089
|
type: 'run-requested';
|
|
13071
|
-
userAppConfigArgs:
|
|
13090
|
+
userAppConfigArgs: OpenFin.UserAppConfigArgs;
|
|
13072
13091
|
manifest: OpenFin.Manifest;
|
|
13073
13092
|
};
|
|
13074
13093
|
|
|
@@ -13183,7 +13202,7 @@ declare type RvmLaunchOptions = {
|
|
|
13183
13202
|
* True if no UI when launching
|
|
13184
13203
|
*/
|
|
13185
13204
|
noUi?: boolean;
|
|
13186
|
-
userAppConfigArgs?:
|
|
13205
|
+
userAppConfigArgs?: UserAppConfigArgs;
|
|
13187
13206
|
/**
|
|
13188
13207
|
* Timeout in seconds until RVM launch request expires.
|
|
13189
13208
|
*/
|
|
@@ -15712,6 +15731,11 @@ declare type UrlChangedEvent = BaseUrlEvent & ({
|
|
|
15712
15731
|
httpStatusText: string;
|
|
15713
15732
|
});
|
|
15714
15733
|
|
|
15734
|
+
/**
|
|
15735
|
+
* @interface
|
|
15736
|
+
*/
|
|
15737
|
+
declare type UserAppConfigArgs = Record<string, string | string[]>;
|
|
15738
|
+
|
|
15715
15739
|
/**
|
|
15716
15740
|
* A general user bounds change event without event type.
|
|
15717
15741
|
* @interface
|
|
@@ -19118,6 +19142,32 @@ declare type WithPositioningOptions<T extends {} = {}> = T & {
|
|
|
19118
19142
|
positioningOptions?: OpenFin.PositioningOptions;
|
|
19119
19143
|
};
|
|
19120
19144
|
|
|
19145
|
+
declare type WithUserAppConfigArgs = {
|
|
19146
|
+
/**
|
|
19147
|
+
* Represents the key-value pairs for the parameters passed into any fin:// or fins:// link
|
|
19148
|
+
* that launches this application.
|
|
19149
|
+
*
|
|
19150
|
+
* @remarks
|
|
19151
|
+
* In the link, user defined parameters are separated by the `$$` delimeter, for example:
|
|
19152
|
+
* `fins://path.to/app/manifest.json?$$use-last-configuration=true`
|
|
19153
|
+
*
|
|
19154
|
+
* Results in the following object:
|
|
19155
|
+
* ```json
|
|
19156
|
+
* {
|
|
19157
|
+
* "use-last-configuration": true"
|
|
19158
|
+
* }
|
|
19159
|
+
* ```
|
|
19160
|
+
*
|
|
19161
|
+
* These args can be accessed via the {@link ApplicationInfo.initialOptions} object:
|
|
19162
|
+
* ```typescript
|
|
19163
|
+
* const appInfo = await fin.Application.getCurrentSync().getInfo();
|
|
19164
|
+
* const { userAppConfigArgs } = appInfo.initialOptions;
|
|
19165
|
+
* console.log(userAppConfigArgs['use-last-configuration']); // 'true'
|
|
19166
|
+
* ```
|
|
19167
|
+
*/
|
|
19168
|
+
userAppConfigArgs?: UserAppConfigArgs;
|
|
19169
|
+
};
|
|
19170
|
+
|
|
19121
19171
|
/* Excluded from this release type: WorkspacePlatformOptions */
|
|
19122
19172
|
|
|
19123
19173
|
/**
|
package/out/fdc3-api-beta.d.ts
CHANGED
|
@@ -825,7 +825,7 @@ declare class Application extends EmitterBase<OpenFin.ApplicationEvent> {
|
|
|
825
825
|
*/
|
|
826
826
|
showTrayIconPopupMenu<Data>(options: OpenFin.ShowTrayIconPopupMenuOptions<Data>): Promise<OpenFin.MenuResult<Data>>;
|
|
827
827
|
/**
|
|
828
|
-
*
|
|
828
|
+
* Closes the tray icon menu.
|
|
829
829
|
*
|
|
830
830
|
* @throws if the application has no tray icon set
|
|
831
831
|
* @example
|
|
@@ -934,7 +934,7 @@ declare type ApplicationIdentity_2 = {
|
|
|
934
934
|
* @interface
|
|
935
935
|
*/
|
|
936
936
|
declare type ApplicationInfo = {
|
|
937
|
-
initialOptions: ApplicationCreationOptions | PlatformOptions;
|
|
937
|
+
initialOptions: WithUserAppConfigArgs & (ApplicationCreationOptions | PlatformOptions);
|
|
938
938
|
launchMode: string;
|
|
939
939
|
manifest: Manifest & {
|
|
940
940
|
[key: string]: any;
|
|
@@ -3432,6 +3432,13 @@ declare type ConstViewOptions = {
|
|
|
3432
3432
|
* Initial bounds given relative to the window.
|
|
3433
3433
|
*/
|
|
3434
3434
|
bounds: Bounds;
|
|
3435
|
+
/**
|
|
3436
|
+
* API permissions for code running in the view.
|
|
3437
|
+
*
|
|
3438
|
+
* @remarks Superseded by {@link DomainSettings.default.api.permissions} - if present, this setting will be **ignored**.
|
|
3439
|
+
* It is recommended for users to migrate to a domain-based security model, since it is more natural to assign trust
|
|
3440
|
+
* to the source of the page content than to the context rendering it.
|
|
3441
|
+
*/
|
|
3435
3442
|
permissions: Partial<Permissions_2>;
|
|
3436
3443
|
/**
|
|
3437
3444
|
* String tag that attempts to group like-tagged renderers together. Will only be used if pages are on the same origin.
|
|
@@ -3632,6 +3639,13 @@ declare type ConstWindowOptions = {
|
|
|
3632
3639
|
* The name of the window.
|
|
3633
3640
|
*/
|
|
3634
3641
|
name: string;
|
|
3642
|
+
/**
|
|
3643
|
+
* API permissions for code running in the window.
|
|
3644
|
+
*
|
|
3645
|
+
* @remarks Superseded by {@link DomainSettings.default.api.permissions} - if present, this setting will be **ignored**.
|
|
3646
|
+
* It is recommended for users to migrate to a domain-based security model, since it is more natural to assign trust
|
|
3647
|
+
* to the source of the page content than to the context rendering it.
|
|
3648
|
+
*/
|
|
3635
3649
|
permissions: Partial<Permissions_2>;
|
|
3636
3650
|
/**
|
|
3637
3651
|
* Scripts that run before page load. When omitted, inherits from the parent application.
|
|
@@ -4712,6 +4726,10 @@ declare type DomainSettings = {
|
|
|
4712
4726
|
rules: DomainSettingsRule[];
|
|
4713
4727
|
/**
|
|
4714
4728
|
* Default values for settings in {@link DomainSettingsRule}.
|
|
4729
|
+
*
|
|
4730
|
+
* @remarks If {@link PerDomainSettings.content} or {@link PerDomainSettings.api.fin} are given a default value
|
|
4731
|
+
* here, they will supersede any equivalent functionality in {@link WindowOptions} or {@link ViewOptions}. For
|
|
4732
|
+
* more information, see the documentation for the individual properties.
|
|
4715
4733
|
*/
|
|
4716
4734
|
default?: PerDomainSettings;
|
|
4717
4735
|
};
|
|
@@ -10243,6 +10261,7 @@ declare namespace OpenFin {
|
|
|
10243
10261
|
AppVersionError,
|
|
10244
10262
|
AppVersionRuntimeInfo,
|
|
10245
10263
|
LaunchEmitter,
|
|
10264
|
+
UserAppConfigArgs,
|
|
10246
10265
|
RvmLaunchOptions,
|
|
10247
10266
|
ShortCutConfig,
|
|
10248
10267
|
TerminateExternalRequestType,
|
|
@@ -10551,7 +10570,7 @@ declare type PerDomainSettings = {
|
|
|
10551
10570
|
* Whether DOM content can be loaded (by navigation or redirect).
|
|
10552
10571
|
*
|
|
10553
10572
|
* @remarks If this is included in {@link DomainSettings.default}, then {@link ContentNavigation} and
|
|
10554
|
-
* {@link ContentRedirect} will be **ignored**.
|
|
10573
|
+
* {@link ContentRedirect} in {@link WindowOptions} and {@link ViewOptions} will be **ignored**.
|
|
10555
10574
|
*/
|
|
10556
10575
|
content?: ContentPermission;
|
|
10557
10576
|
};
|
|
@@ -13068,7 +13087,7 @@ declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
|
|
|
13068
13087
|
declare type RunRequestedEvent_2 = BaseEvents.IdentityEvent & {
|
|
13069
13088
|
topic: 'application';
|
|
13070
13089
|
type: 'run-requested';
|
|
13071
|
-
userAppConfigArgs:
|
|
13090
|
+
userAppConfigArgs: OpenFin.UserAppConfigArgs;
|
|
13072
13091
|
manifest: OpenFin.Manifest;
|
|
13073
13092
|
};
|
|
13074
13093
|
|
|
@@ -13183,7 +13202,7 @@ declare type RvmLaunchOptions = {
|
|
|
13183
13202
|
* True if no UI when launching
|
|
13184
13203
|
*/
|
|
13185
13204
|
noUi?: boolean;
|
|
13186
|
-
userAppConfigArgs?:
|
|
13205
|
+
userAppConfigArgs?: UserAppConfigArgs;
|
|
13187
13206
|
/**
|
|
13188
13207
|
* Timeout in seconds until RVM launch request expires.
|
|
13189
13208
|
*/
|
|
@@ -15712,6 +15731,11 @@ declare type UrlChangedEvent = BaseUrlEvent & ({
|
|
|
15712
15731
|
httpStatusText: string;
|
|
15713
15732
|
});
|
|
15714
15733
|
|
|
15734
|
+
/**
|
|
15735
|
+
* @interface
|
|
15736
|
+
*/
|
|
15737
|
+
declare type UserAppConfigArgs = Record<string, string | string[]>;
|
|
15738
|
+
|
|
15715
15739
|
/**
|
|
15716
15740
|
* A general user bounds change event without event type.
|
|
15717
15741
|
* @interface
|
|
@@ -19118,6 +19142,32 @@ declare type WithPositioningOptions<T extends {} = {}> = T & {
|
|
|
19118
19142
|
positioningOptions?: OpenFin.PositioningOptions;
|
|
19119
19143
|
};
|
|
19120
19144
|
|
|
19145
|
+
declare type WithUserAppConfigArgs = {
|
|
19146
|
+
/**
|
|
19147
|
+
* Represents the key-value pairs for the parameters passed into any fin:// or fins:// link
|
|
19148
|
+
* that launches this application.
|
|
19149
|
+
*
|
|
19150
|
+
* @remarks
|
|
19151
|
+
* In the link, user defined parameters are separated by the `$$` delimeter, for example:
|
|
19152
|
+
* `fins://path.to/app/manifest.json?$$use-last-configuration=true`
|
|
19153
|
+
*
|
|
19154
|
+
* Results in the following object:
|
|
19155
|
+
* ```json
|
|
19156
|
+
* {
|
|
19157
|
+
* "use-last-configuration": true"
|
|
19158
|
+
* }
|
|
19159
|
+
* ```
|
|
19160
|
+
*
|
|
19161
|
+
* These args can be accessed via the {@link ApplicationInfo.initialOptions} object:
|
|
19162
|
+
* ```typescript
|
|
19163
|
+
* const appInfo = await fin.Application.getCurrentSync().getInfo();
|
|
19164
|
+
* const { userAppConfigArgs } = appInfo.initialOptions;
|
|
19165
|
+
* console.log(userAppConfigArgs['use-last-configuration']); // 'true'
|
|
19166
|
+
* ```
|
|
19167
|
+
*/
|
|
19168
|
+
userAppConfigArgs?: UserAppConfigArgs;
|
|
19169
|
+
};
|
|
19170
|
+
|
|
19121
19171
|
/* Excluded from this release type: WorkspacePlatformOptions */
|
|
19122
19172
|
|
|
19123
19173
|
/**
|
package/out/fdc3-api-public.d.ts
CHANGED
|
@@ -825,7 +825,7 @@ declare class Application extends EmitterBase<OpenFin.ApplicationEvent> {
|
|
|
825
825
|
*/
|
|
826
826
|
showTrayIconPopupMenu<Data>(options: OpenFin.ShowTrayIconPopupMenuOptions<Data>): Promise<OpenFin.MenuResult<Data>>;
|
|
827
827
|
/**
|
|
828
|
-
*
|
|
828
|
+
* Closes the tray icon menu.
|
|
829
829
|
*
|
|
830
830
|
* @throws if the application has no tray icon set
|
|
831
831
|
* @example
|
|
@@ -934,7 +934,7 @@ declare type ApplicationIdentity_2 = {
|
|
|
934
934
|
* @interface
|
|
935
935
|
*/
|
|
936
936
|
declare type ApplicationInfo = {
|
|
937
|
-
initialOptions: ApplicationCreationOptions | PlatformOptions;
|
|
937
|
+
initialOptions: WithUserAppConfigArgs & (ApplicationCreationOptions | PlatformOptions);
|
|
938
938
|
launchMode: string;
|
|
939
939
|
manifest: Manifest & {
|
|
940
940
|
[key: string]: any;
|
|
@@ -3432,6 +3432,13 @@ declare type ConstViewOptions = {
|
|
|
3432
3432
|
* Initial bounds given relative to the window.
|
|
3433
3433
|
*/
|
|
3434
3434
|
bounds: Bounds;
|
|
3435
|
+
/**
|
|
3436
|
+
* API permissions for code running in the view.
|
|
3437
|
+
*
|
|
3438
|
+
* @remarks Superseded by {@link DomainSettings.default.api.permissions} - if present, this setting will be **ignored**.
|
|
3439
|
+
* It is recommended for users to migrate to a domain-based security model, since it is more natural to assign trust
|
|
3440
|
+
* to the source of the page content than to the context rendering it.
|
|
3441
|
+
*/
|
|
3435
3442
|
permissions: Partial<Permissions_2>;
|
|
3436
3443
|
/**
|
|
3437
3444
|
* String tag that attempts to group like-tagged renderers together. Will only be used if pages are on the same origin.
|
|
@@ -3632,6 +3639,13 @@ declare type ConstWindowOptions = {
|
|
|
3632
3639
|
* The name of the window.
|
|
3633
3640
|
*/
|
|
3634
3641
|
name: string;
|
|
3642
|
+
/**
|
|
3643
|
+
* API permissions for code running in the window.
|
|
3644
|
+
*
|
|
3645
|
+
* @remarks Superseded by {@link DomainSettings.default.api.permissions} - if present, this setting will be **ignored**.
|
|
3646
|
+
* It is recommended for users to migrate to a domain-based security model, since it is more natural to assign trust
|
|
3647
|
+
* to the source of the page content than to the context rendering it.
|
|
3648
|
+
*/
|
|
3635
3649
|
permissions: Partial<Permissions_2>;
|
|
3636
3650
|
/**
|
|
3637
3651
|
* Scripts that run before page load. When omitted, inherits from the parent application.
|
|
@@ -4712,6 +4726,10 @@ declare type DomainSettings = {
|
|
|
4712
4726
|
rules: DomainSettingsRule[];
|
|
4713
4727
|
/**
|
|
4714
4728
|
* Default values for settings in {@link DomainSettingsRule}.
|
|
4729
|
+
*
|
|
4730
|
+
* @remarks If {@link PerDomainSettings.content} or {@link PerDomainSettings.api.fin} are given a default value
|
|
4731
|
+
* here, they will supersede any equivalent functionality in {@link WindowOptions} or {@link ViewOptions}. For
|
|
4732
|
+
* more information, see the documentation for the individual properties.
|
|
4715
4733
|
*/
|
|
4716
4734
|
default?: PerDomainSettings;
|
|
4717
4735
|
};
|
|
@@ -10243,6 +10261,7 @@ declare namespace OpenFin {
|
|
|
10243
10261
|
AppVersionError,
|
|
10244
10262
|
AppVersionRuntimeInfo,
|
|
10245
10263
|
LaunchEmitter,
|
|
10264
|
+
UserAppConfigArgs,
|
|
10246
10265
|
RvmLaunchOptions,
|
|
10247
10266
|
ShortCutConfig,
|
|
10248
10267
|
TerminateExternalRequestType,
|
|
@@ -10551,7 +10570,7 @@ declare type PerDomainSettings = {
|
|
|
10551
10570
|
* Whether DOM content can be loaded (by navigation or redirect).
|
|
10552
10571
|
*
|
|
10553
10572
|
* @remarks If this is included in {@link DomainSettings.default}, then {@link ContentNavigation} and
|
|
10554
|
-
* {@link ContentRedirect} will be **ignored**.
|
|
10573
|
+
* {@link ContentRedirect} in {@link WindowOptions} and {@link ViewOptions} will be **ignored**.
|
|
10555
10574
|
*/
|
|
10556
10575
|
content?: ContentPermission;
|
|
10557
10576
|
};
|
|
@@ -13068,7 +13087,7 @@ declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
|
|
|
13068
13087
|
declare type RunRequestedEvent_2 = BaseEvents.IdentityEvent & {
|
|
13069
13088
|
topic: 'application';
|
|
13070
13089
|
type: 'run-requested';
|
|
13071
|
-
userAppConfigArgs:
|
|
13090
|
+
userAppConfigArgs: OpenFin.UserAppConfigArgs;
|
|
13072
13091
|
manifest: OpenFin.Manifest;
|
|
13073
13092
|
};
|
|
13074
13093
|
|
|
@@ -13183,7 +13202,7 @@ declare type RvmLaunchOptions = {
|
|
|
13183
13202
|
* True if no UI when launching
|
|
13184
13203
|
*/
|
|
13185
13204
|
noUi?: boolean;
|
|
13186
|
-
userAppConfigArgs?:
|
|
13205
|
+
userAppConfigArgs?: UserAppConfigArgs;
|
|
13187
13206
|
/**
|
|
13188
13207
|
* Timeout in seconds until RVM launch request expires.
|
|
13189
13208
|
*/
|
|
@@ -15712,6 +15731,11 @@ declare type UrlChangedEvent = BaseUrlEvent & ({
|
|
|
15712
15731
|
httpStatusText: string;
|
|
15713
15732
|
});
|
|
15714
15733
|
|
|
15734
|
+
/**
|
|
15735
|
+
* @interface
|
|
15736
|
+
*/
|
|
15737
|
+
declare type UserAppConfigArgs = Record<string, string | string[]>;
|
|
15738
|
+
|
|
15715
15739
|
/**
|
|
15716
15740
|
* A general user bounds change event without event type.
|
|
15717
15741
|
* @interface
|
|
@@ -19118,6 +19142,32 @@ declare type WithPositioningOptions<T extends {} = {}> = T & {
|
|
|
19118
19142
|
positioningOptions?: OpenFin.PositioningOptions;
|
|
19119
19143
|
};
|
|
19120
19144
|
|
|
19145
|
+
declare type WithUserAppConfigArgs = {
|
|
19146
|
+
/**
|
|
19147
|
+
* Represents the key-value pairs for the parameters passed into any fin:// or fins:// link
|
|
19148
|
+
* that launches this application.
|
|
19149
|
+
*
|
|
19150
|
+
* @remarks
|
|
19151
|
+
* In the link, user defined parameters are separated by the `$$` delimeter, for example:
|
|
19152
|
+
* `fins://path.to/app/manifest.json?$$use-last-configuration=true`
|
|
19153
|
+
*
|
|
19154
|
+
* Results in the following object:
|
|
19155
|
+
* ```json
|
|
19156
|
+
* {
|
|
19157
|
+
* "use-last-configuration": true"
|
|
19158
|
+
* }
|
|
19159
|
+
* ```
|
|
19160
|
+
*
|
|
19161
|
+
* These args can be accessed via the {@link ApplicationInfo.initialOptions} object:
|
|
19162
|
+
* ```typescript
|
|
19163
|
+
* const appInfo = await fin.Application.getCurrentSync().getInfo();
|
|
19164
|
+
* const { userAppConfigArgs } = appInfo.initialOptions;
|
|
19165
|
+
* console.log(userAppConfigArgs['use-last-configuration']); // 'true'
|
|
19166
|
+
* ```
|
|
19167
|
+
*/
|
|
19168
|
+
userAppConfigArgs?: UserAppConfigArgs;
|
|
19169
|
+
};
|
|
19170
|
+
|
|
19121
19171
|
/* Excluded from this release type: WorkspacePlatformOptions */
|
|
19122
19172
|
|
|
19123
19173
|
/**
|
package/out/fdc3-api.d.ts
CHANGED
|
@@ -831,7 +831,7 @@ declare class Application extends EmitterBase<OpenFin.ApplicationEvent> {
|
|
|
831
831
|
*/
|
|
832
832
|
showTrayIconPopupMenu<Data>(options: OpenFin.ShowTrayIconPopupMenuOptions<Data>): Promise<OpenFin.MenuResult<Data>>;
|
|
833
833
|
/**
|
|
834
|
-
*
|
|
834
|
+
* Closes the tray icon menu.
|
|
835
835
|
*
|
|
836
836
|
* @throws if the application has no tray icon set
|
|
837
837
|
* @example
|
|
@@ -940,7 +940,7 @@ declare type ApplicationIdentity_2 = {
|
|
|
940
940
|
* @interface
|
|
941
941
|
*/
|
|
942
942
|
declare type ApplicationInfo = {
|
|
943
|
-
initialOptions: ApplicationCreationOptions | PlatformOptions;
|
|
943
|
+
initialOptions: WithUserAppConfigArgs & (ApplicationCreationOptions | PlatformOptions);
|
|
944
944
|
launchMode: string;
|
|
945
945
|
manifest: Manifest & {
|
|
946
946
|
[key: string]: any;
|
|
@@ -3491,6 +3491,13 @@ declare type ConstViewOptions = {
|
|
|
3491
3491
|
* Initial bounds given relative to the window.
|
|
3492
3492
|
*/
|
|
3493
3493
|
bounds: Bounds;
|
|
3494
|
+
/**
|
|
3495
|
+
* API permissions for code running in the view.
|
|
3496
|
+
*
|
|
3497
|
+
* @remarks Superseded by {@link DomainSettings.default.api.permissions} - if present, this setting will be **ignored**.
|
|
3498
|
+
* It is recommended for users to migrate to a domain-based security model, since it is more natural to assign trust
|
|
3499
|
+
* to the source of the page content than to the context rendering it.
|
|
3500
|
+
*/
|
|
3494
3501
|
permissions: Partial<Permissions_2>;
|
|
3495
3502
|
/**
|
|
3496
3503
|
* String tag that attempts to group like-tagged renderers together. Will only be used if pages are on the same origin.
|
|
@@ -3691,6 +3698,13 @@ declare type ConstWindowOptions = {
|
|
|
3691
3698
|
* The name of the window.
|
|
3692
3699
|
*/
|
|
3693
3700
|
name: string;
|
|
3701
|
+
/**
|
|
3702
|
+
* API permissions for code running in the window.
|
|
3703
|
+
*
|
|
3704
|
+
* @remarks Superseded by {@link DomainSettings.default.api.permissions} - if present, this setting will be **ignored**.
|
|
3705
|
+
* It is recommended for users to migrate to a domain-based security model, since it is more natural to assign trust
|
|
3706
|
+
* to the source of the page content than to the context rendering it.
|
|
3707
|
+
*/
|
|
3694
3708
|
permissions: Partial<Permissions_2>;
|
|
3695
3709
|
/**
|
|
3696
3710
|
* Scripts that run before page load. When omitted, inherits from the parent application.
|
|
@@ -4771,6 +4785,10 @@ declare type DomainSettings = {
|
|
|
4771
4785
|
rules: DomainSettingsRule[];
|
|
4772
4786
|
/**
|
|
4773
4787
|
* Default values for settings in {@link DomainSettingsRule}.
|
|
4788
|
+
*
|
|
4789
|
+
* @remarks If {@link PerDomainSettings.content} or {@link PerDomainSettings.api.fin} are given a default value
|
|
4790
|
+
* here, they will supersede any equivalent functionality in {@link WindowOptions} or {@link ViewOptions}. For
|
|
4791
|
+
* more information, see the documentation for the individual properties.
|
|
4774
4792
|
*/
|
|
4775
4793
|
default?: PerDomainSettings;
|
|
4776
4794
|
};
|
|
@@ -10558,6 +10576,7 @@ declare namespace OpenFin {
|
|
|
10558
10576
|
AppVersionError,
|
|
10559
10577
|
AppVersionRuntimeInfo,
|
|
10560
10578
|
LaunchEmitter,
|
|
10579
|
+
UserAppConfigArgs,
|
|
10561
10580
|
RvmLaunchOptions,
|
|
10562
10581
|
ShortCutConfig,
|
|
10563
10582
|
TerminateExternalRequestType,
|
|
@@ -10866,7 +10885,7 @@ declare type PerDomainSettings = {
|
|
|
10866
10885
|
* Whether DOM content can be loaded (by navigation or redirect).
|
|
10867
10886
|
*
|
|
10868
10887
|
* @remarks If this is included in {@link DomainSettings.default}, then {@link ContentNavigation} and
|
|
10869
|
-
* {@link ContentRedirect} will be **ignored**.
|
|
10888
|
+
* {@link ContentRedirect} in {@link WindowOptions} and {@link ViewOptions} will be **ignored**.
|
|
10870
10889
|
*/
|
|
10871
10890
|
content?: ContentPermission;
|
|
10872
10891
|
};
|
|
@@ -13461,7 +13480,7 @@ declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
|
|
|
13461
13480
|
declare type RunRequestedEvent_2 = BaseEvents.IdentityEvent & {
|
|
13462
13481
|
topic: 'application';
|
|
13463
13482
|
type: 'run-requested';
|
|
13464
|
-
userAppConfigArgs:
|
|
13483
|
+
userAppConfigArgs: OpenFin.UserAppConfigArgs;
|
|
13465
13484
|
manifest: OpenFin.Manifest;
|
|
13466
13485
|
};
|
|
13467
13486
|
|
|
@@ -13576,7 +13595,7 @@ declare type RvmLaunchOptions = {
|
|
|
13576
13595
|
* True if no UI when launching
|
|
13577
13596
|
*/
|
|
13578
13597
|
noUi?: boolean;
|
|
13579
|
-
userAppConfigArgs?:
|
|
13598
|
+
userAppConfigArgs?: UserAppConfigArgs;
|
|
13580
13599
|
/**
|
|
13581
13600
|
* Timeout in seconds until RVM launch request expires.
|
|
13582
13601
|
*/
|
|
@@ -16118,6 +16137,11 @@ declare type UrlChangedEvent = BaseUrlEvent & ({
|
|
|
16118
16137
|
httpStatusText: string;
|
|
16119
16138
|
});
|
|
16120
16139
|
|
|
16140
|
+
/**
|
|
16141
|
+
* @interface
|
|
16142
|
+
*/
|
|
16143
|
+
declare type UserAppConfigArgs = Record<string, string | string[]>;
|
|
16144
|
+
|
|
16121
16145
|
/**
|
|
16122
16146
|
* A general user bounds change event without event type.
|
|
16123
16147
|
* @interface
|
|
@@ -19570,6 +19594,32 @@ declare type WithPositioningOptions<T extends {} = {}> = T & {
|
|
|
19570
19594
|
positioningOptions?: OpenFin.PositioningOptions;
|
|
19571
19595
|
};
|
|
19572
19596
|
|
|
19597
|
+
declare type WithUserAppConfigArgs = {
|
|
19598
|
+
/**
|
|
19599
|
+
* Represents the key-value pairs for the parameters passed into any fin:// or fins:// link
|
|
19600
|
+
* that launches this application.
|
|
19601
|
+
*
|
|
19602
|
+
* @remarks
|
|
19603
|
+
* In the link, user defined parameters are separated by the `$$` delimeter, for example:
|
|
19604
|
+
* `fins://path.to/app/manifest.json?$$use-last-configuration=true`
|
|
19605
|
+
*
|
|
19606
|
+
* Results in the following object:
|
|
19607
|
+
* ```json
|
|
19608
|
+
* {
|
|
19609
|
+
* "use-last-configuration": true"
|
|
19610
|
+
* }
|
|
19611
|
+
* ```
|
|
19612
|
+
*
|
|
19613
|
+
* These args can be accessed via the {@link ApplicationInfo.initialOptions} object:
|
|
19614
|
+
* ```typescript
|
|
19615
|
+
* const appInfo = await fin.Application.getCurrentSync().getInfo();
|
|
19616
|
+
* const { userAppConfigArgs } = appInfo.initialOptions;
|
|
19617
|
+
* console.log(userAppConfigArgs['use-last-configuration']); // 'true'
|
|
19618
|
+
* ```
|
|
19619
|
+
*/
|
|
19620
|
+
userAppConfigArgs?: UserAppConfigArgs;
|
|
19621
|
+
};
|
|
19622
|
+
|
|
19573
19623
|
/**
|
|
19574
19624
|
* @internal
|
|
19575
19625
|
* @interface
|