@openfin/fdc3-api 40.82.21 → 40.82.23
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 +58 -2
- package/out/fdc3-api-beta.d.ts +58 -2
- package/out/fdc3-api-public.d.ts +58 -2
- package/out/fdc3-api.d.ts +58 -2
- package/package.json +1 -1
package/out/fdc3-api-alpha.d.ts
CHANGED
|
@@ -2935,6 +2935,18 @@ declare type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
|
|
|
2935
2935
|
childOptions: OpenFin.WindowOptions;
|
|
2936
2936
|
};
|
|
2937
2937
|
|
|
2938
|
+
/**
|
|
2939
|
+
* Control behavior for Chromium policies
|
|
2940
|
+
*
|
|
2941
|
+
* @interface
|
|
2942
|
+
*/
|
|
2943
|
+
declare type ChromiumPolicies = {
|
|
2944
|
+
/**
|
|
2945
|
+
* Disable AutofillAddressEnabled policy for a Window or View.
|
|
2946
|
+
*/
|
|
2947
|
+
AutofillAddressEnabled?: PolicyOptions;
|
|
2948
|
+
};
|
|
2949
|
+
|
|
2938
2950
|
declare interface ClassicProtocolOffer extends ProtocolPacketBase {
|
|
2939
2951
|
type: 'classic';
|
|
2940
2952
|
}
|
|
@@ -8023,6 +8035,29 @@ declare class Layout extends Base {
|
|
|
8023
8035
|
* ```
|
|
8024
8036
|
*/
|
|
8025
8037
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
|
8038
|
+
/**
|
|
8039
|
+
* Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
|
|
8040
|
+
*
|
|
8041
|
+
* @param viewOptions - The options for creating the view.
|
|
8042
|
+
* @param options - Optional parameters for adding the view.
|
|
8043
|
+
* @param options.location - The location where the view should be added.
|
|
8044
|
+
* @param options.targetView - The target view to which the new view should be added.
|
|
8045
|
+
* @returns A promise that resolves to an object containing the identity of the added view.
|
|
8046
|
+
*/
|
|
8047
|
+
addView(viewOptions: OpenFin.PlatformViewCreationOptions, { location, targetView }?: {
|
|
8048
|
+
location?: OpenFin.CreateViewTarget['location'];
|
|
8049
|
+
targetView?: OpenFin.Identity;
|
|
8050
|
+
}): Promise<{
|
|
8051
|
+
identity: OpenFin.Identity;
|
|
8052
|
+
}>;
|
|
8053
|
+
/**
|
|
8054
|
+
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
8055
|
+
* Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
|
|
8056
|
+
*
|
|
8057
|
+
* @param viewIdentity - The identity of the view to close.
|
|
8058
|
+
* @returns A promise that resolves when the view is closed.
|
|
8059
|
+
*/
|
|
8060
|
+
closeView(viewIdentity: OpenFin.Identity): Promise<void>;
|
|
8026
8061
|
}
|
|
8027
8062
|
|
|
8028
8063
|
/**
|
|
@@ -8035,7 +8070,7 @@ declare type LayoutColumn = LayoutItemConfig & {
|
|
|
8035
8070
|
/**
|
|
8036
8071
|
* @interface
|
|
8037
8072
|
*/
|
|
8038
|
-
declare type LayoutComponent = LayoutItemConfig & {
|
|
8073
|
+
declare type LayoutComponent = Omit<LayoutItemConfig, 'content' | 'type'> & {
|
|
8039
8074
|
/**
|
|
8040
8075
|
* Only a component type will have this property and it should be set to view.
|
|
8041
8076
|
*/
|
|
@@ -8044,6 +8079,7 @@ declare type LayoutComponent = LayoutItemConfig & {
|
|
|
8044
8079
|
* Only a component type will have this property and it represents the view options of a given component.
|
|
8045
8080
|
*/
|
|
8046
8081
|
componentState?: Partial<ViewCreationOptions>;
|
|
8082
|
+
type: 'component';
|
|
8047
8083
|
};
|
|
8048
8084
|
|
|
8049
8085
|
declare type LayoutContent = Array<LayoutItemConfig | LayoutRow | LayoutColumn | LayoutComponent>;
|
|
@@ -8235,7 +8271,7 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
|
8235
8271
|
/**
|
|
8236
8272
|
* @experimental
|
|
8237
8273
|
*/
|
|
8238
|
-
getLayoutIdentityForView(viewIdentity: Identity_4): LayoutIdentity;
|
|
8274
|
+
getLayoutIdentityForView(viewIdentity: Identity_4): LayoutIdentity | undefined;
|
|
8239
8275
|
/**
|
|
8240
8276
|
* @experimental
|
|
8241
8277
|
*/
|
|
@@ -8986,6 +9022,10 @@ declare type MutableViewOptions = {
|
|
|
8986
9022
|
* @defaultValue 'enabled'
|
|
8987
9023
|
*/
|
|
8988
9024
|
throttling: ViewThrottling;
|
|
9025
|
+
/**
|
|
9026
|
+
* {@inheritDoc ChromiumPolicies}
|
|
9027
|
+
*/
|
|
9028
|
+
chromiumPolicies: ChromiumPolicies;
|
|
8989
9029
|
};
|
|
8990
9030
|
|
|
8991
9031
|
/**
|
|
@@ -9243,6 +9283,10 @@ declare type MutableWindowOptions = {
|
|
|
9243
9283
|
* @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
|
|
9244
9284
|
*/
|
|
9245
9285
|
throttling: WindowThrottling;
|
|
9286
|
+
/**
|
|
9287
|
+
* {@inheritDoc ChromiumPolicies}
|
|
9288
|
+
*/
|
|
9289
|
+
chromiumPolicies: ChromiumPolicies;
|
|
9246
9290
|
};
|
|
9247
9291
|
|
|
9248
9292
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
|
@@ -9455,6 +9499,8 @@ declare namespace OpenFin {
|
|
|
9455
9499
|
AutoplayPolicyOptions,
|
|
9456
9500
|
ConstWindowOptions,
|
|
9457
9501
|
InheritableOptions,
|
|
9502
|
+
PolicyOptions,
|
|
9503
|
+
ChromiumPolicies,
|
|
9458
9504
|
MutableWindowOptions,
|
|
9459
9505
|
WorkspacePlatformOptions,
|
|
9460
9506
|
WebRequestHeader,
|
|
@@ -9937,6 +9983,10 @@ declare type PerDomainSettings = {
|
|
|
9937
9983
|
* {@link ContentRedirect} in {@link WindowOptions} and {@link ViewOptions} will be **ignored**.
|
|
9938
9984
|
*/
|
|
9939
9985
|
content?: ContentPermission;
|
|
9986
|
+
/**
|
|
9987
|
+
* {@inheritdoc ChromiumPolicies}
|
|
9988
|
+
*/
|
|
9989
|
+
chromiumPolicies?: ChromiumPolicies;
|
|
9940
9990
|
};
|
|
9941
9991
|
|
|
9942
9992
|
/**
|
|
@@ -11395,6 +11445,12 @@ declare type PointTopLeft = {
|
|
|
11395
11445
|
left: number;
|
|
11396
11446
|
};
|
|
11397
11447
|
|
|
11448
|
+
/**
|
|
11449
|
+
* When set to `disable`, disables the policy
|
|
11450
|
+
* When set to `defer-to-group-policy`, respects Group Policy settings
|
|
11451
|
+
*/
|
|
11452
|
+
declare type PolicyOptions = 'disable' | 'defer-to-group-policy';
|
|
11453
|
+
|
|
11398
11454
|
declare type PopupBaseBehavior = 'close' | 'hide';
|
|
11399
11455
|
|
|
11400
11456
|
declare type PopupBlurBehavior = 'modal' | PopupBaseBehavior;
|
package/out/fdc3-api-beta.d.ts
CHANGED
|
@@ -2935,6 +2935,18 @@ declare type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
|
|
|
2935
2935
|
childOptions: OpenFin.WindowOptions;
|
|
2936
2936
|
};
|
|
2937
2937
|
|
|
2938
|
+
/**
|
|
2939
|
+
* Control behavior for Chromium policies
|
|
2940
|
+
*
|
|
2941
|
+
* @interface
|
|
2942
|
+
*/
|
|
2943
|
+
declare type ChromiumPolicies = {
|
|
2944
|
+
/**
|
|
2945
|
+
* Disable AutofillAddressEnabled policy for a Window or View.
|
|
2946
|
+
*/
|
|
2947
|
+
AutofillAddressEnabled?: PolicyOptions;
|
|
2948
|
+
};
|
|
2949
|
+
|
|
2938
2950
|
declare interface ClassicProtocolOffer extends ProtocolPacketBase {
|
|
2939
2951
|
type: 'classic';
|
|
2940
2952
|
}
|
|
@@ -8023,6 +8035,29 @@ declare class Layout extends Base {
|
|
|
8023
8035
|
* ```
|
|
8024
8036
|
*/
|
|
8025
8037
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
|
8038
|
+
/**
|
|
8039
|
+
* Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
|
|
8040
|
+
*
|
|
8041
|
+
* @param viewOptions - The options for creating the view.
|
|
8042
|
+
* @param options - Optional parameters for adding the view.
|
|
8043
|
+
* @param options.location - The location where the view should be added.
|
|
8044
|
+
* @param options.targetView - The target view to which the new view should be added.
|
|
8045
|
+
* @returns A promise that resolves to an object containing the identity of the added view.
|
|
8046
|
+
*/
|
|
8047
|
+
addView(viewOptions: OpenFin.PlatformViewCreationOptions, { location, targetView }?: {
|
|
8048
|
+
location?: OpenFin.CreateViewTarget['location'];
|
|
8049
|
+
targetView?: OpenFin.Identity;
|
|
8050
|
+
}): Promise<{
|
|
8051
|
+
identity: OpenFin.Identity;
|
|
8052
|
+
}>;
|
|
8053
|
+
/**
|
|
8054
|
+
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
8055
|
+
* Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
|
|
8056
|
+
*
|
|
8057
|
+
* @param viewIdentity - The identity of the view to close.
|
|
8058
|
+
* @returns A promise that resolves when the view is closed.
|
|
8059
|
+
*/
|
|
8060
|
+
closeView(viewIdentity: OpenFin.Identity): Promise<void>;
|
|
8026
8061
|
}
|
|
8027
8062
|
|
|
8028
8063
|
/**
|
|
@@ -8035,7 +8070,7 @@ declare type LayoutColumn = LayoutItemConfig & {
|
|
|
8035
8070
|
/**
|
|
8036
8071
|
* @interface
|
|
8037
8072
|
*/
|
|
8038
|
-
declare type LayoutComponent = LayoutItemConfig & {
|
|
8073
|
+
declare type LayoutComponent = Omit<LayoutItemConfig, 'content' | 'type'> & {
|
|
8039
8074
|
/**
|
|
8040
8075
|
* Only a component type will have this property and it should be set to view.
|
|
8041
8076
|
*/
|
|
@@ -8044,6 +8079,7 @@ declare type LayoutComponent = LayoutItemConfig & {
|
|
|
8044
8079
|
* Only a component type will have this property and it represents the view options of a given component.
|
|
8045
8080
|
*/
|
|
8046
8081
|
componentState?: Partial<ViewCreationOptions>;
|
|
8082
|
+
type: 'component';
|
|
8047
8083
|
};
|
|
8048
8084
|
|
|
8049
8085
|
declare type LayoutContent = Array<LayoutItemConfig | LayoutRow | LayoutColumn | LayoutComponent>;
|
|
@@ -8235,7 +8271,7 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
|
8235
8271
|
/**
|
|
8236
8272
|
* @experimental
|
|
8237
8273
|
*/
|
|
8238
|
-
getLayoutIdentityForView(viewIdentity: Identity_4): LayoutIdentity;
|
|
8274
|
+
getLayoutIdentityForView(viewIdentity: Identity_4): LayoutIdentity | undefined;
|
|
8239
8275
|
/**
|
|
8240
8276
|
* @experimental
|
|
8241
8277
|
*/
|
|
@@ -8986,6 +9022,10 @@ declare type MutableViewOptions = {
|
|
|
8986
9022
|
* @defaultValue 'enabled'
|
|
8987
9023
|
*/
|
|
8988
9024
|
throttling: ViewThrottling;
|
|
9025
|
+
/**
|
|
9026
|
+
* {@inheritDoc ChromiumPolicies}
|
|
9027
|
+
*/
|
|
9028
|
+
chromiumPolicies: ChromiumPolicies;
|
|
8989
9029
|
};
|
|
8990
9030
|
|
|
8991
9031
|
/**
|
|
@@ -9243,6 +9283,10 @@ declare type MutableWindowOptions = {
|
|
|
9243
9283
|
* @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
|
|
9244
9284
|
*/
|
|
9245
9285
|
throttling: WindowThrottling;
|
|
9286
|
+
/**
|
|
9287
|
+
* {@inheritDoc ChromiumPolicies}
|
|
9288
|
+
*/
|
|
9289
|
+
chromiumPolicies: ChromiumPolicies;
|
|
9246
9290
|
};
|
|
9247
9291
|
|
|
9248
9292
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
|
@@ -9455,6 +9499,8 @@ declare namespace OpenFin {
|
|
|
9455
9499
|
AutoplayPolicyOptions,
|
|
9456
9500
|
ConstWindowOptions,
|
|
9457
9501
|
InheritableOptions,
|
|
9502
|
+
PolicyOptions,
|
|
9503
|
+
ChromiumPolicies,
|
|
9458
9504
|
MutableWindowOptions,
|
|
9459
9505
|
WorkspacePlatformOptions,
|
|
9460
9506
|
WebRequestHeader,
|
|
@@ -9937,6 +9983,10 @@ declare type PerDomainSettings = {
|
|
|
9937
9983
|
* {@link ContentRedirect} in {@link WindowOptions} and {@link ViewOptions} will be **ignored**.
|
|
9938
9984
|
*/
|
|
9939
9985
|
content?: ContentPermission;
|
|
9986
|
+
/**
|
|
9987
|
+
* {@inheritdoc ChromiumPolicies}
|
|
9988
|
+
*/
|
|
9989
|
+
chromiumPolicies?: ChromiumPolicies;
|
|
9940
9990
|
};
|
|
9941
9991
|
|
|
9942
9992
|
/**
|
|
@@ -11395,6 +11445,12 @@ declare type PointTopLeft = {
|
|
|
11395
11445
|
left: number;
|
|
11396
11446
|
};
|
|
11397
11447
|
|
|
11448
|
+
/**
|
|
11449
|
+
* When set to `disable`, disables the policy
|
|
11450
|
+
* When set to `defer-to-group-policy`, respects Group Policy settings
|
|
11451
|
+
*/
|
|
11452
|
+
declare type PolicyOptions = 'disable' | 'defer-to-group-policy';
|
|
11453
|
+
|
|
11398
11454
|
declare type PopupBaseBehavior = 'close' | 'hide';
|
|
11399
11455
|
|
|
11400
11456
|
declare type PopupBlurBehavior = 'modal' | PopupBaseBehavior;
|
package/out/fdc3-api-public.d.ts
CHANGED
|
@@ -2935,6 +2935,18 @@ declare type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
|
|
|
2935
2935
|
childOptions: OpenFin.WindowOptions;
|
|
2936
2936
|
};
|
|
2937
2937
|
|
|
2938
|
+
/**
|
|
2939
|
+
* Control behavior for Chromium policies
|
|
2940
|
+
*
|
|
2941
|
+
* @interface
|
|
2942
|
+
*/
|
|
2943
|
+
declare type ChromiumPolicies = {
|
|
2944
|
+
/**
|
|
2945
|
+
* Disable AutofillAddressEnabled policy for a Window or View.
|
|
2946
|
+
*/
|
|
2947
|
+
AutofillAddressEnabled?: PolicyOptions;
|
|
2948
|
+
};
|
|
2949
|
+
|
|
2938
2950
|
declare interface ClassicProtocolOffer extends ProtocolPacketBase {
|
|
2939
2951
|
type: 'classic';
|
|
2940
2952
|
}
|
|
@@ -8023,6 +8035,29 @@ declare class Layout extends Base {
|
|
|
8023
8035
|
* ```
|
|
8024
8036
|
*/
|
|
8025
8037
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
|
8038
|
+
/**
|
|
8039
|
+
* Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
|
|
8040
|
+
*
|
|
8041
|
+
* @param viewOptions - The options for creating the view.
|
|
8042
|
+
* @param options - Optional parameters for adding the view.
|
|
8043
|
+
* @param options.location - The location where the view should be added.
|
|
8044
|
+
* @param options.targetView - The target view to which the new view should be added.
|
|
8045
|
+
* @returns A promise that resolves to an object containing the identity of the added view.
|
|
8046
|
+
*/
|
|
8047
|
+
addView(viewOptions: OpenFin.PlatformViewCreationOptions, { location, targetView }?: {
|
|
8048
|
+
location?: OpenFin.CreateViewTarget['location'];
|
|
8049
|
+
targetView?: OpenFin.Identity;
|
|
8050
|
+
}): Promise<{
|
|
8051
|
+
identity: OpenFin.Identity;
|
|
8052
|
+
}>;
|
|
8053
|
+
/**
|
|
8054
|
+
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
8055
|
+
* Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
|
|
8056
|
+
*
|
|
8057
|
+
* @param viewIdentity - The identity of the view to close.
|
|
8058
|
+
* @returns A promise that resolves when the view is closed.
|
|
8059
|
+
*/
|
|
8060
|
+
closeView(viewIdentity: OpenFin.Identity): Promise<void>;
|
|
8026
8061
|
}
|
|
8027
8062
|
|
|
8028
8063
|
/**
|
|
@@ -8035,7 +8070,7 @@ declare type LayoutColumn = LayoutItemConfig & {
|
|
|
8035
8070
|
/**
|
|
8036
8071
|
* @interface
|
|
8037
8072
|
*/
|
|
8038
|
-
declare type LayoutComponent = LayoutItemConfig & {
|
|
8073
|
+
declare type LayoutComponent = Omit<LayoutItemConfig, 'content' | 'type'> & {
|
|
8039
8074
|
/**
|
|
8040
8075
|
* Only a component type will have this property and it should be set to view.
|
|
8041
8076
|
*/
|
|
@@ -8044,6 +8079,7 @@ declare type LayoutComponent = LayoutItemConfig & {
|
|
|
8044
8079
|
* Only a component type will have this property and it represents the view options of a given component.
|
|
8045
8080
|
*/
|
|
8046
8081
|
componentState?: Partial<ViewCreationOptions>;
|
|
8082
|
+
type: 'component';
|
|
8047
8083
|
};
|
|
8048
8084
|
|
|
8049
8085
|
declare type LayoutContent = Array<LayoutItemConfig | LayoutRow | LayoutColumn | LayoutComponent>;
|
|
@@ -8235,7 +8271,7 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
|
8235
8271
|
/**
|
|
8236
8272
|
* @experimental
|
|
8237
8273
|
*/
|
|
8238
|
-
getLayoutIdentityForView(viewIdentity: Identity_4): LayoutIdentity;
|
|
8274
|
+
getLayoutIdentityForView(viewIdentity: Identity_4): LayoutIdentity | undefined;
|
|
8239
8275
|
/**
|
|
8240
8276
|
* @experimental
|
|
8241
8277
|
*/
|
|
@@ -8986,6 +9022,10 @@ declare type MutableViewOptions = {
|
|
|
8986
9022
|
* @defaultValue 'enabled'
|
|
8987
9023
|
*/
|
|
8988
9024
|
throttling: ViewThrottling;
|
|
9025
|
+
/**
|
|
9026
|
+
* {@inheritDoc ChromiumPolicies}
|
|
9027
|
+
*/
|
|
9028
|
+
chromiumPolicies: ChromiumPolicies;
|
|
8989
9029
|
};
|
|
8990
9030
|
|
|
8991
9031
|
/**
|
|
@@ -9243,6 +9283,10 @@ declare type MutableWindowOptions = {
|
|
|
9243
9283
|
* @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
|
|
9244
9284
|
*/
|
|
9245
9285
|
throttling: WindowThrottling;
|
|
9286
|
+
/**
|
|
9287
|
+
* {@inheritDoc ChromiumPolicies}
|
|
9288
|
+
*/
|
|
9289
|
+
chromiumPolicies: ChromiumPolicies;
|
|
9246
9290
|
};
|
|
9247
9291
|
|
|
9248
9292
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
|
@@ -9455,6 +9499,8 @@ declare namespace OpenFin {
|
|
|
9455
9499
|
AutoplayPolicyOptions,
|
|
9456
9500
|
ConstWindowOptions,
|
|
9457
9501
|
InheritableOptions,
|
|
9502
|
+
PolicyOptions,
|
|
9503
|
+
ChromiumPolicies,
|
|
9458
9504
|
MutableWindowOptions,
|
|
9459
9505
|
WorkspacePlatformOptions,
|
|
9460
9506
|
WebRequestHeader,
|
|
@@ -9937,6 +9983,10 @@ declare type PerDomainSettings = {
|
|
|
9937
9983
|
* {@link ContentRedirect} in {@link WindowOptions} and {@link ViewOptions} will be **ignored**.
|
|
9938
9984
|
*/
|
|
9939
9985
|
content?: ContentPermission;
|
|
9986
|
+
/**
|
|
9987
|
+
* {@inheritdoc ChromiumPolicies}
|
|
9988
|
+
*/
|
|
9989
|
+
chromiumPolicies?: ChromiumPolicies;
|
|
9940
9990
|
};
|
|
9941
9991
|
|
|
9942
9992
|
/**
|
|
@@ -11395,6 +11445,12 @@ declare type PointTopLeft = {
|
|
|
11395
11445
|
left: number;
|
|
11396
11446
|
};
|
|
11397
11447
|
|
|
11448
|
+
/**
|
|
11449
|
+
* When set to `disable`, disables the policy
|
|
11450
|
+
* When set to `defer-to-group-policy`, respects Group Policy settings
|
|
11451
|
+
*/
|
|
11452
|
+
declare type PolicyOptions = 'disable' | 'defer-to-group-policy';
|
|
11453
|
+
|
|
11398
11454
|
declare type PopupBaseBehavior = 'close' | 'hide';
|
|
11399
11455
|
|
|
11400
11456
|
declare type PopupBlurBehavior = 'modal' | PopupBaseBehavior;
|
package/out/fdc3-api.d.ts
CHANGED
|
@@ -2991,6 +2991,18 @@ declare type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
|
|
|
2991
2991
|
childOptions: OpenFin.WindowOptions;
|
|
2992
2992
|
};
|
|
2993
2993
|
|
|
2994
|
+
/**
|
|
2995
|
+
* Control behavior for Chromium policies
|
|
2996
|
+
*
|
|
2997
|
+
* @interface
|
|
2998
|
+
*/
|
|
2999
|
+
declare type ChromiumPolicies = {
|
|
3000
|
+
/**
|
|
3001
|
+
* Disable AutofillAddressEnabled policy for a Window or View.
|
|
3002
|
+
*/
|
|
3003
|
+
AutofillAddressEnabled?: PolicyOptions;
|
|
3004
|
+
};
|
|
3005
|
+
|
|
2994
3006
|
declare interface ClassicProtocolOffer extends ProtocolPacketBase {
|
|
2995
3007
|
type: 'classic';
|
|
2996
3008
|
}
|
|
@@ -8149,6 +8161,29 @@ declare class Layout extends Base {
|
|
|
8149
8161
|
* ```
|
|
8150
8162
|
*/
|
|
8151
8163
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
|
8164
|
+
/**
|
|
8165
|
+
* Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
|
|
8166
|
+
*
|
|
8167
|
+
* @param viewOptions - The options for creating the view.
|
|
8168
|
+
* @param options - Optional parameters for adding the view.
|
|
8169
|
+
* @param options.location - The location where the view should be added.
|
|
8170
|
+
* @param options.targetView - The target view to which the new view should be added.
|
|
8171
|
+
* @returns A promise that resolves to an object containing the identity of the added view.
|
|
8172
|
+
*/
|
|
8173
|
+
addView(viewOptions: OpenFin.PlatformViewCreationOptions, { location, targetView }?: {
|
|
8174
|
+
location?: OpenFin.CreateViewTarget['location'];
|
|
8175
|
+
targetView?: OpenFin.Identity;
|
|
8176
|
+
}): Promise<{
|
|
8177
|
+
identity: OpenFin.Identity;
|
|
8178
|
+
}>;
|
|
8179
|
+
/**
|
|
8180
|
+
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
8181
|
+
* Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
|
|
8182
|
+
*
|
|
8183
|
+
* @param viewIdentity - The identity of the view to close.
|
|
8184
|
+
* @returns A promise that resolves when the view is closed.
|
|
8185
|
+
*/
|
|
8186
|
+
closeView(viewIdentity: OpenFin.Identity): Promise<void>;
|
|
8152
8187
|
}
|
|
8153
8188
|
|
|
8154
8189
|
/**
|
|
@@ -8161,7 +8196,7 @@ declare type LayoutColumn = LayoutItemConfig & {
|
|
|
8161
8196
|
/**
|
|
8162
8197
|
* @interface
|
|
8163
8198
|
*/
|
|
8164
|
-
declare type LayoutComponent = LayoutItemConfig & {
|
|
8199
|
+
declare type LayoutComponent = Omit<LayoutItemConfig, 'content' | 'type'> & {
|
|
8165
8200
|
/**
|
|
8166
8201
|
* Only a component type will have this property and it should be set to view.
|
|
8167
8202
|
*/
|
|
@@ -8170,6 +8205,7 @@ declare type LayoutComponent = LayoutItemConfig & {
|
|
|
8170
8205
|
* Only a component type will have this property and it represents the view options of a given component.
|
|
8171
8206
|
*/
|
|
8172
8207
|
componentState?: Partial<ViewCreationOptions>;
|
|
8208
|
+
type: 'component';
|
|
8173
8209
|
};
|
|
8174
8210
|
|
|
8175
8211
|
declare type LayoutContent = Array<LayoutItemConfig | LayoutRow | LayoutColumn | LayoutComponent>;
|
|
@@ -8361,7 +8397,7 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
|
8361
8397
|
/**
|
|
8362
8398
|
* @experimental
|
|
8363
8399
|
*/
|
|
8364
|
-
getLayoutIdentityForView(viewIdentity: Identity_4): LayoutIdentity;
|
|
8400
|
+
getLayoutIdentityForView(viewIdentity: Identity_4): LayoutIdentity | undefined;
|
|
8365
8401
|
/**
|
|
8366
8402
|
* @experimental
|
|
8367
8403
|
*/
|
|
@@ -9286,6 +9322,10 @@ declare type MutableViewOptions = {
|
|
|
9286
9322
|
* @defaultValue 'enabled'
|
|
9287
9323
|
*/
|
|
9288
9324
|
throttling: ViewThrottling;
|
|
9325
|
+
/**
|
|
9326
|
+
* {@inheritDoc ChromiumPolicies}
|
|
9327
|
+
*/
|
|
9328
|
+
chromiumPolicies: ChromiumPolicies;
|
|
9289
9329
|
};
|
|
9290
9330
|
|
|
9291
9331
|
/**
|
|
@@ -9551,6 +9591,10 @@ declare type MutableWindowOptions = {
|
|
|
9551
9591
|
* @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
|
|
9552
9592
|
*/
|
|
9553
9593
|
throttling: WindowThrottling;
|
|
9594
|
+
/**
|
|
9595
|
+
* {@inheritDoc ChromiumPolicies}
|
|
9596
|
+
*/
|
|
9597
|
+
chromiumPolicies: ChromiumPolicies;
|
|
9554
9598
|
};
|
|
9555
9599
|
|
|
9556
9600
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
|
@@ -9773,6 +9817,8 @@ declare namespace OpenFin {
|
|
|
9773
9817
|
AutoplayPolicyOptions,
|
|
9774
9818
|
ConstWindowOptions,
|
|
9775
9819
|
InheritableOptions,
|
|
9820
|
+
PolicyOptions,
|
|
9821
|
+
ChromiumPolicies,
|
|
9776
9822
|
MutableWindowOptions,
|
|
9777
9823
|
WorkspacePlatformOptions,
|
|
9778
9824
|
WebRequestHeader,
|
|
@@ -10255,6 +10301,10 @@ declare type PerDomainSettings = {
|
|
|
10255
10301
|
* {@link ContentRedirect} in {@link WindowOptions} and {@link ViewOptions} will be **ignored**.
|
|
10256
10302
|
*/
|
|
10257
10303
|
content?: ContentPermission;
|
|
10304
|
+
/**
|
|
10305
|
+
* {@inheritdoc ChromiumPolicies}
|
|
10306
|
+
*/
|
|
10307
|
+
chromiumPolicies?: ChromiumPolicies;
|
|
10258
10308
|
};
|
|
10259
10309
|
|
|
10260
10310
|
/**
|
|
@@ -11796,6 +11846,12 @@ declare type PointTopLeft = {
|
|
|
11796
11846
|
left: number;
|
|
11797
11847
|
};
|
|
11798
11848
|
|
|
11849
|
+
/**
|
|
11850
|
+
* When set to `disable`, disables the policy
|
|
11851
|
+
* When set to `defer-to-group-policy`, respects Group Policy settings
|
|
11852
|
+
*/
|
|
11853
|
+
declare type PolicyOptions = 'disable' | 'defer-to-group-policy';
|
|
11854
|
+
|
|
11799
11855
|
declare type PopupBaseBehavior = 'close' | 'hide';
|
|
11800
11856
|
|
|
11801
11857
|
declare type PopupBlurBehavior = 'modal' | PopupBaseBehavior;
|