@openfin/node-adapter 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.
@@ -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;
|
@@ -3436,6 +3436,13 @@ declare type ConstViewOptions = {
|
|
3436
3436
|
* Initial bounds given relative to the window.
|
3437
3437
|
*/
|
3438
3438
|
bounds: Bounds;
|
3439
|
+
/**
|
3440
|
+
* API permissions for code running in the view.
|
3441
|
+
*
|
3442
|
+
* @remarks Superseded by {@link DomainSettings.default.api.permissions} - if present, this setting will be **ignored**.
|
3443
|
+
* It is recommended for users to migrate to a domain-based security model, since it is more natural to assign trust
|
3444
|
+
* to the source of the page content than to the context rendering it.
|
3445
|
+
*/
|
3439
3446
|
permissions: Partial<Permissions_2>;
|
3440
3447
|
/**
|
3441
3448
|
* String tag that attempts to group like-tagged renderers together. Will only be used if pages are on the same origin.
|
@@ -3636,6 +3643,13 @@ declare type ConstWindowOptions = {
|
|
3636
3643
|
* The name of the window.
|
3637
3644
|
*/
|
3638
3645
|
name: string;
|
3646
|
+
/**
|
3647
|
+
* API permissions for code running in the window.
|
3648
|
+
*
|
3649
|
+
* @remarks Superseded by {@link DomainSettings.default.api.permissions} - if present, this setting will be **ignored**.
|
3650
|
+
* It is recommended for users to migrate to a domain-based security model, since it is more natural to assign trust
|
3651
|
+
* to the source of the page content than to the context rendering it.
|
3652
|
+
*/
|
3639
3653
|
permissions: Partial<Permissions_2>;
|
3640
3654
|
/**
|
3641
3655
|
* Scripts that run before page load. When omitted, inherits from the parent application.
|
@@ -4716,6 +4730,10 @@ declare type DomainSettings = {
|
|
4716
4730
|
rules: DomainSettingsRule[];
|
4717
4731
|
/**
|
4718
4732
|
* Default values for settings in {@link DomainSettingsRule}.
|
4733
|
+
*
|
4734
|
+
* @remarks If {@link PerDomainSettings.content} or {@link PerDomainSettings.api.fin} are given a default value
|
4735
|
+
* here, they will supersede any equivalent functionality in {@link WindowOptions} or {@link ViewOptions}. For
|
4736
|
+
* more information, see the documentation for the individual properties.
|
4719
4737
|
*/
|
4720
4738
|
default?: PerDomainSettings;
|
4721
4739
|
};
|
@@ -9909,6 +9927,7 @@ declare namespace OpenFin {
|
|
9909
9927
|
AppVersionError,
|
9910
9928
|
AppVersionRuntimeInfo,
|
9911
9929
|
LaunchEmitter,
|
9930
|
+
UserAppConfigArgs,
|
9912
9931
|
RvmLaunchOptions,
|
9913
9932
|
ShortCutConfig,
|
9914
9933
|
TerminateExternalRequestType,
|
@@ -10218,7 +10237,7 @@ declare type PerDomainSettings = {
|
|
10218
10237
|
* Whether DOM content can be loaded (by navigation or redirect).
|
10219
10238
|
*
|
10220
10239
|
* @remarks If this is included in {@link DomainSettings.default}, then {@link ContentNavigation} and
|
10221
|
-
* {@link ContentRedirect} will be **ignored**.
|
10240
|
+
* {@link ContentRedirect} in {@link WindowOptions} and {@link ViewOptions} will be **ignored**.
|
10222
10241
|
*/
|
10223
10242
|
content?: ContentPermission;
|
10224
10243
|
};
|
@@ -12735,7 +12754,7 @@ declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
|
|
12735
12754
|
declare type RunRequestedEvent_2 = BaseEvents.IdentityEvent & {
|
12736
12755
|
topic: 'application';
|
12737
12756
|
type: 'run-requested';
|
12738
|
-
userAppConfigArgs:
|
12757
|
+
userAppConfigArgs: OpenFin.UserAppConfigArgs;
|
12739
12758
|
manifest: OpenFin.Manifest;
|
12740
12759
|
};
|
12741
12760
|
|
@@ -12850,7 +12869,7 @@ declare type RvmLaunchOptions = {
|
|
12850
12869
|
* True if no UI when launching
|
12851
12870
|
*/
|
12852
12871
|
noUi?: boolean;
|
12853
|
-
userAppConfigArgs?:
|
12872
|
+
userAppConfigArgs?: UserAppConfigArgs;
|
12854
12873
|
/**
|
12855
12874
|
* Timeout in seconds until RVM launch request expires.
|
12856
12875
|
*/
|
@@ -15379,6 +15398,11 @@ declare type UrlChangedEvent = BaseUrlEvent & ({
|
|
15379
15398
|
httpStatusText: string;
|
15380
15399
|
});
|
15381
15400
|
|
15401
|
+
/**
|
15402
|
+
* @interface
|
15403
|
+
*/
|
15404
|
+
declare type UserAppConfigArgs = Record<string, string | string[]>;
|
15405
|
+
|
15382
15406
|
/**
|
15383
15407
|
* A general user bounds change event without event type.
|
15384
15408
|
* @interface
|
@@ -18785,6 +18809,32 @@ declare type WithPositioningOptions<T extends {} = {}> = T & {
|
|
18785
18809
|
positioningOptions?: OpenFin.PositioningOptions;
|
18786
18810
|
};
|
18787
18811
|
|
18812
|
+
declare type WithUserAppConfigArgs = {
|
18813
|
+
/**
|
18814
|
+
* Represents the key-value pairs for the parameters passed into any fin:// or fins:// link
|
18815
|
+
* that launches this application.
|
18816
|
+
*
|
18817
|
+
* @remarks
|
18818
|
+
* In the link, user defined parameters are separated by the `$$` delimeter, for example:
|
18819
|
+
* `fins://path.to/app/manifest.json?$$use-last-configuration=true`
|
18820
|
+
*
|
18821
|
+
* Results in the following object:
|
18822
|
+
* ```json
|
18823
|
+
* {
|
18824
|
+
* "use-last-configuration": true"
|
18825
|
+
* }
|
18826
|
+
* ```
|
18827
|
+
*
|
18828
|
+
* These args can be accessed via the {@link ApplicationInfo.initialOptions} object:
|
18829
|
+
* ```typescript
|
18830
|
+
* const appInfo = await fin.Application.getCurrentSync().getInfo();
|
18831
|
+
* const { userAppConfigArgs } = appInfo.initialOptions;
|
18832
|
+
* console.log(userAppConfigArgs['use-last-configuration']); // 'true'
|
18833
|
+
* ```
|
18834
|
+
*/
|
18835
|
+
userAppConfigArgs?: UserAppConfigArgs;
|
18836
|
+
};
|
18837
|
+
|
18788
18838
|
/* Excluded from this release type: WorkspacePlatformOptions */
|
18789
18839
|
|
18790
18840
|
/**
|
@@ -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;
|
@@ -3436,6 +3436,13 @@ declare type ConstViewOptions = {
|
|
3436
3436
|
* Initial bounds given relative to the window.
|
3437
3437
|
*/
|
3438
3438
|
bounds: Bounds;
|
3439
|
+
/**
|
3440
|
+
* API permissions for code running in the view.
|
3441
|
+
*
|
3442
|
+
* @remarks Superseded by {@link DomainSettings.default.api.permissions} - if present, this setting will be **ignored**.
|
3443
|
+
* It is recommended for users to migrate to a domain-based security model, since it is more natural to assign trust
|
3444
|
+
* to the source of the page content than to the context rendering it.
|
3445
|
+
*/
|
3439
3446
|
permissions: Partial<Permissions_2>;
|
3440
3447
|
/**
|
3441
3448
|
* String tag that attempts to group like-tagged renderers together. Will only be used if pages are on the same origin.
|
@@ -3636,6 +3643,13 @@ declare type ConstWindowOptions = {
|
|
3636
3643
|
* The name of the window.
|
3637
3644
|
*/
|
3638
3645
|
name: string;
|
3646
|
+
/**
|
3647
|
+
* API permissions for code running in the window.
|
3648
|
+
*
|
3649
|
+
* @remarks Superseded by {@link DomainSettings.default.api.permissions} - if present, this setting will be **ignored**.
|
3650
|
+
* It is recommended for users to migrate to a domain-based security model, since it is more natural to assign trust
|
3651
|
+
* to the source of the page content than to the context rendering it.
|
3652
|
+
*/
|
3639
3653
|
permissions: Partial<Permissions_2>;
|
3640
3654
|
/**
|
3641
3655
|
* Scripts that run before page load. When omitted, inherits from the parent application.
|
@@ -4716,6 +4730,10 @@ declare type DomainSettings = {
|
|
4716
4730
|
rules: DomainSettingsRule[];
|
4717
4731
|
/**
|
4718
4732
|
* Default values for settings in {@link DomainSettingsRule}.
|
4733
|
+
*
|
4734
|
+
* @remarks If {@link PerDomainSettings.content} or {@link PerDomainSettings.api.fin} are given a default value
|
4735
|
+
* here, they will supersede any equivalent functionality in {@link WindowOptions} or {@link ViewOptions}. For
|
4736
|
+
* more information, see the documentation for the individual properties.
|
4719
4737
|
*/
|
4720
4738
|
default?: PerDomainSettings;
|
4721
4739
|
};
|
@@ -9909,6 +9927,7 @@ declare namespace OpenFin {
|
|
9909
9927
|
AppVersionError,
|
9910
9928
|
AppVersionRuntimeInfo,
|
9911
9929
|
LaunchEmitter,
|
9930
|
+
UserAppConfigArgs,
|
9912
9931
|
RvmLaunchOptions,
|
9913
9932
|
ShortCutConfig,
|
9914
9933
|
TerminateExternalRequestType,
|
@@ -10218,7 +10237,7 @@ declare type PerDomainSettings = {
|
|
10218
10237
|
* Whether DOM content can be loaded (by navigation or redirect).
|
10219
10238
|
*
|
10220
10239
|
* @remarks If this is included in {@link DomainSettings.default}, then {@link ContentNavigation} and
|
10221
|
-
* {@link ContentRedirect} will be **ignored**.
|
10240
|
+
* {@link ContentRedirect} in {@link WindowOptions} and {@link ViewOptions} will be **ignored**.
|
10222
10241
|
*/
|
10223
10242
|
content?: ContentPermission;
|
10224
10243
|
};
|
@@ -12735,7 +12754,7 @@ declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
|
|
12735
12754
|
declare type RunRequestedEvent_2 = BaseEvents.IdentityEvent & {
|
12736
12755
|
topic: 'application';
|
12737
12756
|
type: 'run-requested';
|
12738
|
-
userAppConfigArgs:
|
12757
|
+
userAppConfigArgs: OpenFin.UserAppConfigArgs;
|
12739
12758
|
manifest: OpenFin.Manifest;
|
12740
12759
|
};
|
12741
12760
|
|
@@ -12850,7 +12869,7 @@ declare type RvmLaunchOptions = {
|
|
12850
12869
|
* True if no UI when launching
|
12851
12870
|
*/
|
12852
12871
|
noUi?: boolean;
|
12853
|
-
userAppConfigArgs?:
|
12872
|
+
userAppConfigArgs?: UserAppConfigArgs;
|
12854
12873
|
/**
|
12855
12874
|
* Timeout in seconds until RVM launch request expires.
|
12856
12875
|
*/
|
@@ -15379,6 +15398,11 @@ declare type UrlChangedEvent = BaseUrlEvent & ({
|
|
15379
15398
|
httpStatusText: string;
|
15380
15399
|
});
|
15381
15400
|
|
15401
|
+
/**
|
15402
|
+
* @interface
|
15403
|
+
*/
|
15404
|
+
declare type UserAppConfigArgs = Record<string, string | string[]>;
|
15405
|
+
|
15382
15406
|
/**
|
15383
15407
|
* A general user bounds change event without event type.
|
15384
15408
|
* @interface
|
@@ -18785,6 +18809,32 @@ declare type WithPositioningOptions<T extends {} = {}> = T & {
|
|
18785
18809
|
positioningOptions?: OpenFin.PositioningOptions;
|
18786
18810
|
};
|
18787
18811
|
|
18812
|
+
declare type WithUserAppConfigArgs = {
|
18813
|
+
/**
|
18814
|
+
* Represents the key-value pairs for the parameters passed into any fin:// or fins:// link
|
18815
|
+
* that launches this application.
|
18816
|
+
*
|
18817
|
+
* @remarks
|
18818
|
+
* In the link, user defined parameters are separated by the `$$` delimeter, for example:
|
18819
|
+
* `fins://path.to/app/manifest.json?$$use-last-configuration=true`
|
18820
|
+
*
|
18821
|
+
* Results in the following object:
|
18822
|
+
* ```json
|
18823
|
+
* {
|
18824
|
+
* "use-last-configuration": true"
|
18825
|
+
* }
|
18826
|
+
* ```
|
18827
|
+
*
|
18828
|
+
* These args can be accessed via the {@link ApplicationInfo.initialOptions} object:
|
18829
|
+
* ```typescript
|
18830
|
+
* const appInfo = await fin.Application.getCurrentSync().getInfo();
|
18831
|
+
* const { userAppConfigArgs } = appInfo.initialOptions;
|
18832
|
+
* console.log(userAppConfigArgs['use-last-configuration']); // 'true'
|
18833
|
+
* ```
|
18834
|
+
*/
|
18835
|
+
userAppConfigArgs?: UserAppConfigArgs;
|
18836
|
+
};
|
18837
|
+
|
18788
18838
|
/* Excluded from this release type: WorkspacePlatformOptions */
|
18789
18839
|
|
18790
18840
|
/**
|
@@ -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;
|
@@ -3436,6 +3436,13 @@ declare type ConstViewOptions = {
|
|
3436
3436
|
* Initial bounds given relative to the window.
|
3437
3437
|
*/
|
3438
3438
|
bounds: Bounds;
|
3439
|
+
/**
|
3440
|
+
* API permissions for code running in the view.
|
3441
|
+
*
|
3442
|
+
* @remarks Superseded by {@link DomainSettings.default.api.permissions} - if present, this setting will be **ignored**.
|
3443
|
+
* It is recommended for users to migrate to a domain-based security model, since it is more natural to assign trust
|
3444
|
+
* to the source of the page content than to the context rendering it.
|
3445
|
+
*/
|
3439
3446
|
permissions: Partial<Permissions_2>;
|
3440
3447
|
/**
|
3441
3448
|
* String tag that attempts to group like-tagged renderers together. Will only be used if pages are on the same origin.
|
@@ -3636,6 +3643,13 @@ declare type ConstWindowOptions = {
|
|
3636
3643
|
* The name of the window.
|
3637
3644
|
*/
|
3638
3645
|
name: string;
|
3646
|
+
/**
|
3647
|
+
* API permissions for code running in the window.
|
3648
|
+
*
|
3649
|
+
* @remarks Superseded by {@link DomainSettings.default.api.permissions} - if present, this setting will be **ignored**.
|
3650
|
+
* It is recommended for users to migrate to a domain-based security model, since it is more natural to assign trust
|
3651
|
+
* to the source of the page content than to the context rendering it.
|
3652
|
+
*/
|
3639
3653
|
permissions: Partial<Permissions_2>;
|
3640
3654
|
/**
|
3641
3655
|
* Scripts that run before page load. When omitted, inherits from the parent application.
|
@@ -4716,6 +4730,10 @@ declare type DomainSettings = {
|
|
4716
4730
|
rules: DomainSettingsRule[];
|
4717
4731
|
/**
|
4718
4732
|
* Default values for settings in {@link DomainSettingsRule}.
|
4733
|
+
*
|
4734
|
+
* @remarks If {@link PerDomainSettings.content} or {@link PerDomainSettings.api.fin} are given a default value
|
4735
|
+
* here, they will supersede any equivalent functionality in {@link WindowOptions} or {@link ViewOptions}. For
|
4736
|
+
* more information, see the documentation for the individual properties.
|
4719
4737
|
*/
|
4720
4738
|
default?: PerDomainSettings;
|
4721
4739
|
};
|
@@ -9909,6 +9927,7 @@ declare namespace OpenFin {
|
|
9909
9927
|
AppVersionError,
|
9910
9928
|
AppVersionRuntimeInfo,
|
9911
9929
|
LaunchEmitter,
|
9930
|
+
UserAppConfigArgs,
|
9912
9931
|
RvmLaunchOptions,
|
9913
9932
|
ShortCutConfig,
|
9914
9933
|
TerminateExternalRequestType,
|
@@ -10218,7 +10237,7 @@ declare type PerDomainSettings = {
|
|
10218
10237
|
* Whether DOM content can be loaded (by navigation or redirect).
|
10219
10238
|
*
|
10220
10239
|
* @remarks If this is included in {@link DomainSettings.default}, then {@link ContentNavigation} and
|
10221
|
-
* {@link ContentRedirect} will be **ignored**.
|
10240
|
+
* {@link ContentRedirect} in {@link WindowOptions} and {@link ViewOptions} will be **ignored**.
|
10222
10241
|
*/
|
10223
10242
|
content?: ContentPermission;
|
10224
10243
|
};
|
@@ -12735,7 +12754,7 @@ declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
|
|
12735
12754
|
declare type RunRequestedEvent_2 = BaseEvents.IdentityEvent & {
|
12736
12755
|
topic: 'application';
|
12737
12756
|
type: 'run-requested';
|
12738
|
-
userAppConfigArgs:
|
12757
|
+
userAppConfigArgs: OpenFin.UserAppConfigArgs;
|
12739
12758
|
manifest: OpenFin.Manifest;
|
12740
12759
|
};
|
12741
12760
|
|
@@ -12850,7 +12869,7 @@ declare type RvmLaunchOptions = {
|
|
12850
12869
|
* True if no UI when launching
|
12851
12870
|
*/
|
12852
12871
|
noUi?: boolean;
|
12853
|
-
userAppConfigArgs?:
|
12872
|
+
userAppConfigArgs?: UserAppConfigArgs;
|
12854
12873
|
/**
|
12855
12874
|
* Timeout in seconds until RVM launch request expires.
|
12856
12875
|
*/
|
@@ -15379,6 +15398,11 @@ declare type UrlChangedEvent = BaseUrlEvent & ({
|
|
15379
15398
|
httpStatusText: string;
|
15380
15399
|
});
|
15381
15400
|
|
15401
|
+
/**
|
15402
|
+
* @interface
|
15403
|
+
*/
|
15404
|
+
declare type UserAppConfigArgs = Record<string, string | string[]>;
|
15405
|
+
|
15382
15406
|
/**
|
15383
15407
|
* A general user bounds change event without event type.
|
15384
15408
|
* @interface
|
@@ -18785,6 +18809,32 @@ declare type WithPositioningOptions<T extends {} = {}> = T & {
|
|
18785
18809
|
positioningOptions?: OpenFin.PositioningOptions;
|
18786
18810
|
};
|
18787
18811
|
|
18812
|
+
declare type WithUserAppConfigArgs = {
|
18813
|
+
/**
|
18814
|
+
* Represents the key-value pairs for the parameters passed into any fin:// or fins:// link
|
18815
|
+
* that launches this application.
|
18816
|
+
*
|
18817
|
+
* @remarks
|
18818
|
+
* In the link, user defined parameters are separated by the `$$` delimeter, for example:
|
18819
|
+
* `fins://path.to/app/manifest.json?$$use-last-configuration=true`
|
18820
|
+
*
|
18821
|
+
* Results in the following object:
|
18822
|
+
* ```json
|
18823
|
+
* {
|
18824
|
+
* "use-last-configuration": true"
|
18825
|
+
* }
|
18826
|
+
* ```
|
18827
|
+
*
|
18828
|
+
* These args can be accessed via the {@link ApplicationInfo.initialOptions} object:
|
18829
|
+
* ```typescript
|
18830
|
+
* const appInfo = await fin.Application.getCurrentSync().getInfo();
|
18831
|
+
* const { userAppConfigArgs } = appInfo.initialOptions;
|
18832
|
+
* console.log(userAppConfigArgs['use-last-configuration']); // 'true'
|
18833
|
+
* ```
|
18834
|
+
*/
|
18835
|
+
userAppConfigArgs?: UserAppConfigArgs;
|
18836
|
+
};
|
18837
|
+
|
18788
18838
|
/* Excluded from this release type: WorkspacePlatformOptions */
|
18789
18839
|
|
18790
18840
|
/**
|
package/out/node-adapter.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;
|
@@ -3495,6 +3495,13 @@ declare type ConstViewOptions = {
|
|
3495
3495
|
* Initial bounds given relative to the window.
|
3496
3496
|
*/
|
3497
3497
|
bounds: Bounds;
|
3498
|
+
/**
|
3499
|
+
* API permissions for code running in the view.
|
3500
|
+
*
|
3501
|
+
* @remarks Superseded by {@link DomainSettings.default.api.permissions} - if present, this setting will be **ignored**.
|
3502
|
+
* It is recommended for users to migrate to a domain-based security model, since it is more natural to assign trust
|
3503
|
+
* to the source of the page content than to the context rendering it.
|
3504
|
+
*/
|
3498
3505
|
permissions: Partial<Permissions_2>;
|
3499
3506
|
/**
|
3500
3507
|
* String tag that attempts to group like-tagged renderers together. Will only be used if pages are on the same origin.
|
@@ -3695,6 +3702,13 @@ declare type ConstWindowOptions = {
|
|
3695
3702
|
* The name of the window.
|
3696
3703
|
*/
|
3697
3704
|
name: string;
|
3705
|
+
/**
|
3706
|
+
* API permissions for code running in the window.
|
3707
|
+
*
|
3708
|
+
* @remarks Superseded by {@link DomainSettings.default.api.permissions} - if present, this setting will be **ignored**.
|
3709
|
+
* It is recommended for users to migrate to a domain-based security model, since it is more natural to assign trust
|
3710
|
+
* to the source of the page content than to the context rendering it.
|
3711
|
+
*/
|
3698
3712
|
permissions: Partial<Permissions_2>;
|
3699
3713
|
/**
|
3700
3714
|
* Scripts that run before page load. When omitted, inherits from the parent application.
|
@@ -4775,6 +4789,10 @@ declare type DomainSettings = {
|
|
4775
4789
|
rules: DomainSettingsRule[];
|
4776
4790
|
/**
|
4777
4791
|
* Default values for settings in {@link DomainSettingsRule}.
|
4792
|
+
*
|
4793
|
+
* @remarks If {@link PerDomainSettings.content} or {@link PerDomainSettings.api.fin} are given a default value
|
4794
|
+
* here, they will supersede any equivalent functionality in {@link WindowOptions} or {@link ViewOptions}. For
|
4795
|
+
* more information, see the documentation for the individual properties.
|
4778
4796
|
*/
|
4779
4797
|
default?: PerDomainSettings;
|
4780
4798
|
};
|
@@ -10246,6 +10264,7 @@ declare namespace OpenFin {
|
|
10246
10264
|
AppVersionError,
|
10247
10265
|
AppVersionRuntimeInfo,
|
10248
10266
|
LaunchEmitter,
|
10267
|
+
UserAppConfigArgs,
|
10249
10268
|
RvmLaunchOptions,
|
10250
10269
|
ShortCutConfig,
|
10251
10270
|
TerminateExternalRequestType,
|
@@ -10555,7 +10574,7 @@ declare type PerDomainSettings = {
|
|
10555
10574
|
* Whether DOM content can be loaded (by navigation or redirect).
|
10556
10575
|
*
|
10557
10576
|
* @remarks If this is included in {@link DomainSettings.default}, then {@link ContentNavigation} and
|
10558
|
-
* {@link ContentRedirect} will be **ignored**.
|
10577
|
+
* {@link ContentRedirect} in {@link WindowOptions} and {@link ViewOptions} will be **ignored**.
|
10559
10578
|
*/
|
10560
10579
|
content?: ContentPermission;
|
10561
10580
|
};
|
@@ -13150,7 +13169,7 @@ declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
|
|
13150
13169
|
declare type RunRequestedEvent_2 = BaseEvents.IdentityEvent & {
|
13151
13170
|
topic: 'application';
|
13152
13171
|
type: 'run-requested';
|
13153
|
-
userAppConfigArgs:
|
13172
|
+
userAppConfigArgs: OpenFin.UserAppConfigArgs;
|
13154
13173
|
manifest: OpenFin.Manifest;
|
13155
13174
|
};
|
13156
13175
|
|
@@ -13265,7 +13284,7 @@ declare type RvmLaunchOptions = {
|
|
13265
13284
|
* True if no UI when launching
|
13266
13285
|
*/
|
13267
13286
|
noUi?: boolean;
|
13268
|
-
userAppConfigArgs?:
|
13287
|
+
userAppConfigArgs?: UserAppConfigArgs;
|
13269
13288
|
/**
|
13270
13289
|
* Timeout in seconds until RVM launch request expires.
|
13271
13290
|
*/
|
@@ -15807,6 +15826,11 @@ declare type UrlChangedEvent = BaseUrlEvent & ({
|
|
15807
15826
|
httpStatusText: string;
|
15808
15827
|
});
|
15809
15828
|
|
15829
|
+
/**
|
15830
|
+
* @interface
|
15831
|
+
*/
|
15832
|
+
declare type UserAppConfigArgs = Record<string, string | string[]>;
|
15833
|
+
|
15810
15834
|
/**
|
15811
15835
|
* A general user bounds change event without event type.
|
15812
15836
|
* @interface
|
@@ -19259,6 +19283,32 @@ declare type WithPositioningOptions<T extends {} = {}> = T & {
|
|
19259
19283
|
positioningOptions?: OpenFin.PositioningOptions;
|
19260
19284
|
};
|
19261
19285
|
|
19286
|
+
declare type WithUserAppConfigArgs = {
|
19287
|
+
/**
|
19288
|
+
* Represents the key-value pairs for the parameters passed into any fin:// or fins:// link
|
19289
|
+
* that launches this application.
|
19290
|
+
*
|
19291
|
+
* @remarks
|
19292
|
+
* In the link, user defined parameters are separated by the `$$` delimeter, for example:
|
19293
|
+
* `fins://path.to/app/manifest.json?$$use-last-configuration=true`
|
19294
|
+
*
|
19295
|
+
* Results in the following object:
|
19296
|
+
* ```json
|
19297
|
+
* {
|
19298
|
+
* "use-last-configuration": true"
|
19299
|
+
* }
|
19300
|
+
* ```
|
19301
|
+
*
|
19302
|
+
* These args can be accessed via the {@link ApplicationInfo.initialOptions} object:
|
19303
|
+
* ```typescript
|
19304
|
+
* const appInfo = await fin.Application.getCurrentSync().getInfo();
|
19305
|
+
* const { userAppConfigArgs } = appInfo.initialOptions;
|
19306
|
+
* console.log(userAppConfigArgs['use-last-configuration']); // 'true'
|
19307
|
+
* ```
|
19308
|
+
*/
|
19309
|
+
userAppConfigArgs?: UserAppConfigArgs;
|
19310
|
+
};
|
19311
|
+
|
19262
19312
|
/**
|
19263
19313
|
* @internal
|
19264
19314
|
* @interface
|
package/out/node-adapter.js
CHANGED