@openfin/core 42.100.36 → 42.100.42
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 +47 -10
- package/out/mock-beta.d.ts +47 -10
- package/out/mock-public.d.ts +47 -10
- package/out/stub.d.ts +47 -10
- package/out/stub.js +139 -106
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
@@ -72,6 +72,10 @@ declare type AddViewToStackOptions = {
|
|
72
72
|
* Optional index within the stack to insert the view. Defaults to 0
|
73
73
|
*/
|
74
74
|
index?: number;
|
75
|
+
/**
|
76
|
+
* How the view should be displayed in the stack. Defaults to 'focused'
|
77
|
+
*/
|
78
|
+
displayState?: 'focused' | 'background';
|
75
79
|
};
|
76
80
|
|
77
81
|
/**
|
@@ -3069,6 +3073,7 @@ declare type ClientInfo = Omit<ClientIdentity, 'isLocalEndpointId'> & {
|
|
3069
3073
|
*
|
3070
3074
|
*/
|
3071
3075
|
declare class Clipboard_2 extends Base {
|
3076
|
+
#private;
|
3072
3077
|
/**
|
3073
3078
|
* Writes data into the clipboard as plain text
|
3074
3079
|
* @param writeObj The object for writing data into the clipboard
|
@@ -3221,6 +3226,21 @@ declare class Clipboard_2 extends Base {
|
|
3221
3226
|
getAvailableFormats(type?: OpenFin_2.ClipboardSelectionType): Promise<Array<string>>;
|
3222
3227
|
}
|
3223
3228
|
|
3229
|
+
/**
|
3230
|
+
* Permissions for {@link Clipboard} APIs.
|
3231
|
+
*/
|
3232
|
+
declare type ClipboardApiPermissions = {
|
3233
|
+
writeText: boolean;
|
3234
|
+
readText: boolean;
|
3235
|
+
writeImage: boolean;
|
3236
|
+
readImage: boolean;
|
3237
|
+
writeHtml: boolean;
|
3238
|
+
readHtml: boolean;
|
3239
|
+
writeRtf: boolean;
|
3240
|
+
readRtf: boolean;
|
3241
|
+
write: boolean;
|
3242
|
+
};
|
3243
|
+
|
3224
3244
|
/**
|
3225
3245
|
* Generated when a copy operation is blocked through {@link OpenFin.DomainSettings}.
|
3226
3246
|
* @interface
|
@@ -3888,7 +3908,17 @@ declare type ContentCreationRulesEvent = NamedEvent & {
|
|
3888
3908
|
* The features string passed to `window.open()` converted to OpenFin window options
|
3889
3909
|
*/
|
3890
3910
|
parsedFeatures: Partial<OpenFin_2.WindowOptions>;
|
3891
|
-
|
3911
|
+
/**
|
3912
|
+
* The reported disposition of the content creation request.
|
3913
|
+
* @remarks
|
3914
|
+
* - `default` - The default behavior of the browser.
|
3915
|
+
* - `foreground-tab` - The content is loaded in a new tab in the foreground. This is the default behavior for `window.open()` or a link with target=_blank.
|
3916
|
+
* - `background-tab` - The content is loaded in a new tab in the background. This is the default behavior when clicking on a link with the `ctrl` or `cmd` key pressed.
|
3917
|
+
* - `new-window` - The content is loaded in a new window. This is the default behavior when clicking on a link with the `shift` key pressed.
|
3918
|
+
* - `popup` - The content is loaded in a popup window. This is the result of passing popup features to `window.open()`.
|
3919
|
+
* - `other` - The content is loaded in some other way.
|
3920
|
+
*/
|
3921
|
+
disposition: 'default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'popup' | 'other';
|
3892
3922
|
};
|
3893
3923
|
|
3894
3924
|
/**
|
@@ -4230,8 +4260,7 @@ declare type CreateViewTarget = (Identity_4 | LayoutIdentity) & {
|
|
4230
4260
|
*/
|
4231
4261
|
location?: {
|
4232
4262
|
id: string;
|
4233
|
-
|
4234
|
-
};
|
4263
|
+
} & AddViewToStackOptions;
|
4235
4264
|
};
|
4236
4265
|
|
4237
4266
|
/**
|
@@ -4502,6 +4531,13 @@ declare type DomainSettings = {
|
|
4502
4531
|
multipleMatchBehavior?: MultipleDomainMatchBehavior;
|
4503
4532
|
};
|
4504
4533
|
|
4534
|
+
/**
|
4535
|
+
* Map of preload scripts that can enable new scripts or disable options defined preloadScripts.
|
4536
|
+
*/
|
4537
|
+
declare type DomainSettingsPreloadScripts = Record<string, {
|
4538
|
+
enabled: boolean;
|
4539
|
+
}>;
|
4540
|
+
|
4505
4541
|
/**
|
4506
4542
|
* Defines domain-conditional settings for an OpenFin application.
|
4507
4543
|
* @interface
|
@@ -8086,9 +8122,7 @@ declare type LayoutEntitiesController = {
|
|
8086
8122
|
getParent: (id: string) => OpenFin_2.LayoutEntityDefinition | undefined;
|
8087
8123
|
isRoot: (id: string) => boolean;
|
8088
8124
|
exists: (entityId: string) => boolean;
|
8089
|
-
addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?:
|
8090
|
-
index?: number;
|
8091
|
-
}) => Promise<OpenFin_2.Identity>;
|
8125
|
+
addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: OpenFin_2.AddViewToStackOptions) => Promise<OpenFin_2.Identity>;
|
8092
8126
|
removeViewFromStack: (stackEntityId: string, view: OpenFin_2.Identity) => Promise<void>;
|
8093
8127
|
createAdjacentStack: (targetId: string, views: ViewCreationOrReference[], stackCreationOptions?: {
|
8094
8128
|
position?: OpenFin_2.LayoutPosition;
|
@@ -9562,6 +9596,7 @@ declare namespace OpenFin_2 {
|
|
9562
9596
|
OpenExternalPermission,
|
9563
9597
|
DeviceInfo,
|
9564
9598
|
Permissions_2 as Permissions,
|
9599
|
+
ClipboardApiPermissions,
|
9565
9600
|
PlatformWindowCreationOptions,
|
9566
9601
|
PlatformWindowOptions,
|
9567
9602
|
PlatformViewCreationOptions,
|
@@ -9678,6 +9713,7 @@ declare namespace OpenFin_2 {
|
|
9678
9713
|
StructuredContentPermissions,
|
9679
9714
|
ContentPermission,
|
9680
9715
|
ScreenCaptureBehavior,
|
9716
|
+
DomainSettingsPreloadScripts,
|
9681
9717
|
PerDomainSettings,
|
9682
9718
|
CopyPermissions,
|
9683
9719
|
PastePermissions,
|
@@ -10030,6 +10066,10 @@ declare type PerDomainSettings = {
|
|
10030
10066
|
* {@inheritdoc ChromiumPolicies}
|
10031
10067
|
*/
|
10032
10068
|
chromiumPolicies?: ChromiumPolicies;
|
10069
|
+
/**
|
10070
|
+
* {@inheritdoc DomainSettingsPreloadScripts}
|
10071
|
+
*/
|
10072
|
+
preloadScripts?: DomainSettingsPreloadScripts;
|
10033
10073
|
contentProtection?: {
|
10034
10074
|
/**
|
10035
10075
|
* {@inheritdoc ScreenCaptureBehavior}
|
@@ -10074,6 +10114,7 @@ declare type PerformanceReportEvent = Performance & BaseEvent_5 & {
|
|
10074
10114
|
declare type Permissions_2 = {
|
10075
10115
|
Application?: Partial<ApplicationPermissions>;
|
10076
10116
|
System?: Partial<SystemPermissions>;
|
10117
|
+
Clipboard?: Partial<ClipboardApiPermissions>;
|
10077
10118
|
webAPIs?: WebPermission[];
|
10078
10119
|
devices?: DeviceInfo[];
|
10079
10120
|
};
|
@@ -11769,10 +11810,6 @@ declare type PrinterInfo = {
|
|
11769
11810
|
* Printer Description
|
11770
11811
|
*/
|
11771
11812
|
description: string;
|
11772
|
-
/**
|
11773
|
-
* Printer Status
|
11774
|
-
*/
|
11775
|
-
status: number;
|
11776
11813
|
/**
|
11777
11814
|
* Indicates that system's default printer.
|
11778
11815
|
*/
|
package/out/mock-beta.d.ts
CHANGED
@@ -72,6 +72,10 @@ declare type AddViewToStackOptions = {
|
|
72
72
|
* Optional index within the stack to insert the view. Defaults to 0
|
73
73
|
*/
|
74
74
|
index?: number;
|
75
|
+
/**
|
76
|
+
* How the view should be displayed in the stack. Defaults to 'focused'
|
77
|
+
*/
|
78
|
+
displayState?: 'focused' | 'background';
|
75
79
|
};
|
76
80
|
|
77
81
|
/**
|
@@ -3069,6 +3073,7 @@ declare type ClientInfo = Omit<ClientIdentity, 'isLocalEndpointId'> & {
|
|
3069
3073
|
*
|
3070
3074
|
*/
|
3071
3075
|
declare class Clipboard_2 extends Base {
|
3076
|
+
#private;
|
3072
3077
|
/**
|
3073
3078
|
* Writes data into the clipboard as plain text
|
3074
3079
|
* @param writeObj The object for writing data into the clipboard
|
@@ -3221,6 +3226,21 @@ declare class Clipboard_2 extends Base {
|
|
3221
3226
|
getAvailableFormats(type?: OpenFin_2.ClipboardSelectionType): Promise<Array<string>>;
|
3222
3227
|
}
|
3223
3228
|
|
3229
|
+
/**
|
3230
|
+
* Permissions for {@link Clipboard} APIs.
|
3231
|
+
*/
|
3232
|
+
declare type ClipboardApiPermissions = {
|
3233
|
+
writeText: boolean;
|
3234
|
+
readText: boolean;
|
3235
|
+
writeImage: boolean;
|
3236
|
+
readImage: boolean;
|
3237
|
+
writeHtml: boolean;
|
3238
|
+
readHtml: boolean;
|
3239
|
+
writeRtf: boolean;
|
3240
|
+
readRtf: boolean;
|
3241
|
+
write: boolean;
|
3242
|
+
};
|
3243
|
+
|
3224
3244
|
/**
|
3225
3245
|
* Generated when a copy operation is blocked through {@link OpenFin.DomainSettings}.
|
3226
3246
|
* @interface
|
@@ -3888,7 +3908,17 @@ declare type ContentCreationRulesEvent = NamedEvent & {
|
|
3888
3908
|
* The features string passed to `window.open()` converted to OpenFin window options
|
3889
3909
|
*/
|
3890
3910
|
parsedFeatures: Partial<OpenFin_2.WindowOptions>;
|
3891
|
-
|
3911
|
+
/**
|
3912
|
+
* The reported disposition of the content creation request.
|
3913
|
+
* @remarks
|
3914
|
+
* - `default` - The default behavior of the browser.
|
3915
|
+
* - `foreground-tab` - The content is loaded in a new tab in the foreground. This is the default behavior for `window.open()` or a link with target=_blank.
|
3916
|
+
* - `background-tab` - The content is loaded in a new tab in the background. This is the default behavior when clicking on a link with the `ctrl` or `cmd` key pressed.
|
3917
|
+
* - `new-window` - The content is loaded in a new window. This is the default behavior when clicking on a link with the `shift` key pressed.
|
3918
|
+
* - `popup` - The content is loaded in a popup window. This is the result of passing popup features to `window.open()`.
|
3919
|
+
* - `other` - The content is loaded in some other way.
|
3920
|
+
*/
|
3921
|
+
disposition: 'default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'popup' | 'other';
|
3892
3922
|
};
|
3893
3923
|
|
3894
3924
|
/**
|
@@ -4230,8 +4260,7 @@ declare type CreateViewTarget = (Identity_4 | LayoutIdentity) & {
|
|
4230
4260
|
*/
|
4231
4261
|
location?: {
|
4232
4262
|
id: string;
|
4233
|
-
|
4234
|
-
};
|
4263
|
+
} & AddViewToStackOptions;
|
4235
4264
|
};
|
4236
4265
|
|
4237
4266
|
/**
|
@@ -4502,6 +4531,13 @@ declare type DomainSettings = {
|
|
4502
4531
|
multipleMatchBehavior?: MultipleDomainMatchBehavior;
|
4503
4532
|
};
|
4504
4533
|
|
4534
|
+
/**
|
4535
|
+
* Map of preload scripts that can enable new scripts or disable options defined preloadScripts.
|
4536
|
+
*/
|
4537
|
+
declare type DomainSettingsPreloadScripts = Record<string, {
|
4538
|
+
enabled: boolean;
|
4539
|
+
}>;
|
4540
|
+
|
4505
4541
|
/**
|
4506
4542
|
* Defines domain-conditional settings for an OpenFin application.
|
4507
4543
|
* @interface
|
@@ -8086,9 +8122,7 @@ declare type LayoutEntitiesController = {
|
|
8086
8122
|
getParent: (id: string) => OpenFin_2.LayoutEntityDefinition | undefined;
|
8087
8123
|
isRoot: (id: string) => boolean;
|
8088
8124
|
exists: (entityId: string) => boolean;
|
8089
|
-
addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?:
|
8090
|
-
index?: number;
|
8091
|
-
}) => Promise<OpenFin_2.Identity>;
|
8125
|
+
addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: OpenFin_2.AddViewToStackOptions) => Promise<OpenFin_2.Identity>;
|
8092
8126
|
removeViewFromStack: (stackEntityId: string, view: OpenFin_2.Identity) => Promise<void>;
|
8093
8127
|
createAdjacentStack: (targetId: string, views: ViewCreationOrReference[], stackCreationOptions?: {
|
8094
8128
|
position?: OpenFin_2.LayoutPosition;
|
@@ -9562,6 +9596,7 @@ declare namespace OpenFin_2 {
|
|
9562
9596
|
OpenExternalPermission,
|
9563
9597
|
DeviceInfo,
|
9564
9598
|
Permissions_2 as Permissions,
|
9599
|
+
ClipboardApiPermissions,
|
9565
9600
|
PlatformWindowCreationOptions,
|
9566
9601
|
PlatformWindowOptions,
|
9567
9602
|
PlatformViewCreationOptions,
|
@@ -9678,6 +9713,7 @@ declare namespace OpenFin_2 {
|
|
9678
9713
|
StructuredContentPermissions,
|
9679
9714
|
ContentPermission,
|
9680
9715
|
ScreenCaptureBehavior,
|
9716
|
+
DomainSettingsPreloadScripts,
|
9681
9717
|
PerDomainSettings,
|
9682
9718
|
CopyPermissions,
|
9683
9719
|
PastePermissions,
|
@@ -10030,6 +10066,10 @@ declare type PerDomainSettings = {
|
|
10030
10066
|
* {@inheritdoc ChromiumPolicies}
|
10031
10067
|
*/
|
10032
10068
|
chromiumPolicies?: ChromiumPolicies;
|
10069
|
+
/**
|
10070
|
+
* {@inheritdoc DomainSettingsPreloadScripts}
|
10071
|
+
*/
|
10072
|
+
preloadScripts?: DomainSettingsPreloadScripts;
|
10033
10073
|
contentProtection?: {
|
10034
10074
|
/**
|
10035
10075
|
* {@inheritdoc ScreenCaptureBehavior}
|
@@ -10074,6 +10114,7 @@ declare type PerformanceReportEvent = Performance & BaseEvent_5 & {
|
|
10074
10114
|
declare type Permissions_2 = {
|
10075
10115
|
Application?: Partial<ApplicationPermissions>;
|
10076
10116
|
System?: Partial<SystemPermissions>;
|
10117
|
+
Clipboard?: Partial<ClipboardApiPermissions>;
|
10077
10118
|
webAPIs?: WebPermission[];
|
10078
10119
|
devices?: DeviceInfo[];
|
10079
10120
|
};
|
@@ -11769,10 +11810,6 @@ declare type PrinterInfo = {
|
|
11769
11810
|
* Printer Description
|
11770
11811
|
*/
|
11771
11812
|
description: string;
|
11772
|
-
/**
|
11773
|
-
* Printer Status
|
11774
|
-
*/
|
11775
|
-
status: number;
|
11776
11813
|
/**
|
11777
11814
|
* Indicates that system's default printer.
|
11778
11815
|
*/
|
package/out/mock-public.d.ts
CHANGED
@@ -72,6 +72,10 @@ declare type AddViewToStackOptions = {
|
|
72
72
|
* Optional index within the stack to insert the view. Defaults to 0
|
73
73
|
*/
|
74
74
|
index?: number;
|
75
|
+
/**
|
76
|
+
* How the view should be displayed in the stack. Defaults to 'focused'
|
77
|
+
*/
|
78
|
+
displayState?: 'focused' | 'background';
|
75
79
|
};
|
76
80
|
|
77
81
|
/**
|
@@ -3069,6 +3073,7 @@ declare type ClientInfo = Omit<ClientIdentity, 'isLocalEndpointId'> & {
|
|
3069
3073
|
*
|
3070
3074
|
*/
|
3071
3075
|
declare class Clipboard_2 extends Base {
|
3076
|
+
#private;
|
3072
3077
|
/**
|
3073
3078
|
* Writes data into the clipboard as plain text
|
3074
3079
|
* @param writeObj The object for writing data into the clipboard
|
@@ -3221,6 +3226,21 @@ declare class Clipboard_2 extends Base {
|
|
3221
3226
|
getAvailableFormats(type?: OpenFin_2.ClipboardSelectionType): Promise<Array<string>>;
|
3222
3227
|
}
|
3223
3228
|
|
3229
|
+
/**
|
3230
|
+
* Permissions for {@link Clipboard} APIs.
|
3231
|
+
*/
|
3232
|
+
declare type ClipboardApiPermissions = {
|
3233
|
+
writeText: boolean;
|
3234
|
+
readText: boolean;
|
3235
|
+
writeImage: boolean;
|
3236
|
+
readImage: boolean;
|
3237
|
+
writeHtml: boolean;
|
3238
|
+
readHtml: boolean;
|
3239
|
+
writeRtf: boolean;
|
3240
|
+
readRtf: boolean;
|
3241
|
+
write: boolean;
|
3242
|
+
};
|
3243
|
+
|
3224
3244
|
/**
|
3225
3245
|
* Generated when a copy operation is blocked through {@link OpenFin.DomainSettings}.
|
3226
3246
|
* @interface
|
@@ -3888,7 +3908,17 @@ declare type ContentCreationRulesEvent = NamedEvent & {
|
|
3888
3908
|
* The features string passed to `window.open()` converted to OpenFin window options
|
3889
3909
|
*/
|
3890
3910
|
parsedFeatures: Partial<OpenFin_2.WindowOptions>;
|
3891
|
-
|
3911
|
+
/**
|
3912
|
+
* The reported disposition of the content creation request.
|
3913
|
+
* @remarks
|
3914
|
+
* - `default` - The default behavior of the browser.
|
3915
|
+
* - `foreground-tab` - The content is loaded in a new tab in the foreground. This is the default behavior for `window.open()` or a link with target=_blank.
|
3916
|
+
* - `background-tab` - The content is loaded in a new tab in the background. This is the default behavior when clicking on a link with the `ctrl` or `cmd` key pressed.
|
3917
|
+
* - `new-window` - The content is loaded in a new window. This is the default behavior when clicking on a link with the `shift` key pressed.
|
3918
|
+
* - `popup` - The content is loaded in a popup window. This is the result of passing popup features to `window.open()`.
|
3919
|
+
* - `other` - The content is loaded in some other way.
|
3920
|
+
*/
|
3921
|
+
disposition: 'default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'popup' | 'other';
|
3892
3922
|
};
|
3893
3923
|
|
3894
3924
|
/**
|
@@ -4230,8 +4260,7 @@ declare type CreateViewTarget = (Identity_4 | LayoutIdentity) & {
|
|
4230
4260
|
*/
|
4231
4261
|
location?: {
|
4232
4262
|
id: string;
|
4233
|
-
|
4234
|
-
};
|
4263
|
+
} & AddViewToStackOptions;
|
4235
4264
|
};
|
4236
4265
|
|
4237
4266
|
/**
|
@@ -4502,6 +4531,13 @@ declare type DomainSettings = {
|
|
4502
4531
|
multipleMatchBehavior?: MultipleDomainMatchBehavior;
|
4503
4532
|
};
|
4504
4533
|
|
4534
|
+
/**
|
4535
|
+
* Map of preload scripts that can enable new scripts or disable options defined preloadScripts.
|
4536
|
+
*/
|
4537
|
+
declare type DomainSettingsPreloadScripts = Record<string, {
|
4538
|
+
enabled: boolean;
|
4539
|
+
}>;
|
4540
|
+
|
4505
4541
|
/**
|
4506
4542
|
* Defines domain-conditional settings for an OpenFin application.
|
4507
4543
|
* @interface
|
@@ -8086,9 +8122,7 @@ declare type LayoutEntitiesController = {
|
|
8086
8122
|
getParent: (id: string) => OpenFin_2.LayoutEntityDefinition | undefined;
|
8087
8123
|
isRoot: (id: string) => boolean;
|
8088
8124
|
exists: (entityId: string) => boolean;
|
8089
|
-
addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?:
|
8090
|
-
index?: number;
|
8091
|
-
}) => Promise<OpenFin_2.Identity>;
|
8125
|
+
addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: OpenFin_2.AddViewToStackOptions) => Promise<OpenFin_2.Identity>;
|
8092
8126
|
removeViewFromStack: (stackEntityId: string, view: OpenFin_2.Identity) => Promise<void>;
|
8093
8127
|
createAdjacentStack: (targetId: string, views: ViewCreationOrReference[], stackCreationOptions?: {
|
8094
8128
|
position?: OpenFin_2.LayoutPosition;
|
@@ -9562,6 +9596,7 @@ declare namespace OpenFin_2 {
|
|
9562
9596
|
OpenExternalPermission,
|
9563
9597
|
DeviceInfo,
|
9564
9598
|
Permissions_2 as Permissions,
|
9599
|
+
ClipboardApiPermissions,
|
9565
9600
|
PlatformWindowCreationOptions,
|
9566
9601
|
PlatformWindowOptions,
|
9567
9602
|
PlatformViewCreationOptions,
|
@@ -9678,6 +9713,7 @@ declare namespace OpenFin_2 {
|
|
9678
9713
|
StructuredContentPermissions,
|
9679
9714
|
ContentPermission,
|
9680
9715
|
ScreenCaptureBehavior,
|
9716
|
+
DomainSettingsPreloadScripts,
|
9681
9717
|
PerDomainSettings,
|
9682
9718
|
CopyPermissions,
|
9683
9719
|
PastePermissions,
|
@@ -10030,6 +10066,10 @@ declare type PerDomainSettings = {
|
|
10030
10066
|
* {@inheritdoc ChromiumPolicies}
|
10031
10067
|
*/
|
10032
10068
|
chromiumPolicies?: ChromiumPolicies;
|
10069
|
+
/**
|
10070
|
+
* {@inheritdoc DomainSettingsPreloadScripts}
|
10071
|
+
*/
|
10072
|
+
preloadScripts?: DomainSettingsPreloadScripts;
|
10033
10073
|
contentProtection?: {
|
10034
10074
|
/**
|
10035
10075
|
* {@inheritdoc ScreenCaptureBehavior}
|
@@ -10074,6 +10114,7 @@ declare type PerformanceReportEvent = Performance & BaseEvent_5 & {
|
|
10074
10114
|
declare type Permissions_2 = {
|
10075
10115
|
Application?: Partial<ApplicationPermissions>;
|
10076
10116
|
System?: Partial<SystemPermissions>;
|
10117
|
+
Clipboard?: Partial<ClipboardApiPermissions>;
|
10077
10118
|
webAPIs?: WebPermission[];
|
10078
10119
|
devices?: DeviceInfo[];
|
10079
10120
|
};
|
@@ -11769,10 +11810,6 @@ declare type PrinterInfo = {
|
|
11769
11810
|
* Printer Description
|
11770
11811
|
*/
|
11771
11812
|
description: string;
|
11772
|
-
/**
|
11773
|
-
* Printer Status
|
11774
|
-
*/
|
11775
|
-
status: number;
|
11776
11813
|
/**
|
11777
11814
|
* Indicates that system's default printer.
|
11778
11815
|
*/
|
package/out/stub.d.ts
CHANGED
@@ -72,6 +72,10 @@ declare type AddViewToStackOptions = {
|
|
72
72
|
* Optional index within the stack to insert the view. Defaults to 0
|
73
73
|
*/
|
74
74
|
index?: number;
|
75
|
+
/**
|
76
|
+
* How the view should be displayed in the stack. Defaults to 'focused'
|
77
|
+
*/
|
78
|
+
displayState?: 'focused' | 'background';
|
75
79
|
};
|
76
80
|
|
77
81
|
/**
|
@@ -3125,6 +3129,7 @@ declare type ClientInfo = Omit<ClientIdentity, 'isLocalEndpointId'> & {
|
|
3125
3129
|
*
|
3126
3130
|
*/
|
3127
3131
|
declare class Clipboard_2 extends Base {
|
3132
|
+
#private;
|
3128
3133
|
/**
|
3129
3134
|
* Writes data into the clipboard as plain text
|
3130
3135
|
* @param writeObj The object for writing data into the clipboard
|
@@ -3277,6 +3282,21 @@ declare class Clipboard_2 extends Base {
|
|
3277
3282
|
getAvailableFormats(type?: OpenFin_2.ClipboardSelectionType): Promise<Array<string>>;
|
3278
3283
|
}
|
3279
3284
|
|
3285
|
+
/**
|
3286
|
+
* Permissions for {@link Clipboard} APIs.
|
3287
|
+
*/
|
3288
|
+
declare type ClipboardApiPermissions = {
|
3289
|
+
writeText: boolean;
|
3290
|
+
readText: boolean;
|
3291
|
+
writeImage: boolean;
|
3292
|
+
readImage: boolean;
|
3293
|
+
writeHtml: boolean;
|
3294
|
+
readHtml: boolean;
|
3295
|
+
writeRtf: boolean;
|
3296
|
+
readRtf: boolean;
|
3297
|
+
write: boolean;
|
3298
|
+
};
|
3299
|
+
|
3280
3300
|
/**
|
3281
3301
|
* Generated when a copy operation is blocked through {@link OpenFin.DomainSettings}.
|
3282
3302
|
* @interface
|
@@ -3947,7 +3967,17 @@ declare type ContentCreationRulesEvent = NamedEvent & {
|
|
3947
3967
|
* The features string passed to `window.open()` converted to OpenFin window options
|
3948
3968
|
*/
|
3949
3969
|
parsedFeatures: Partial<OpenFin_2.WindowOptions>;
|
3950
|
-
|
3970
|
+
/**
|
3971
|
+
* The reported disposition of the content creation request.
|
3972
|
+
* @remarks
|
3973
|
+
* - `default` - The default behavior of the browser.
|
3974
|
+
* - `foreground-tab` - The content is loaded in a new tab in the foreground. This is the default behavior for `window.open()` or a link with target=_blank.
|
3975
|
+
* - `background-tab` - The content is loaded in a new tab in the background. This is the default behavior when clicking on a link with the `ctrl` or `cmd` key pressed.
|
3976
|
+
* - `new-window` - The content is loaded in a new window. This is the default behavior when clicking on a link with the `shift` key pressed.
|
3977
|
+
* - `popup` - The content is loaded in a popup window. This is the result of passing popup features to `window.open()`.
|
3978
|
+
* - `other` - The content is loaded in some other way.
|
3979
|
+
*/
|
3980
|
+
disposition: 'default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'popup' | 'other';
|
3951
3981
|
};
|
3952
3982
|
|
3953
3983
|
/**
|
@@ -4289,8 +4319,7 @@ declare type CreateViewTarget = (Identity_4 | LayoutIdentity) & {
|
|
4289
4319
|
*/
|
4290
4320
|
location?: {
|
4291
4321
|
id: string;
|
4292
|
-
|
4293
|
-
};
|
4322
|
+
} & AddViewToStackOptions;
|
4294
4323
|
};
|
4295
4324
|
|
4296
4325
|
/**
|
@@ -4561,6 +4590,13 @@ declare type DomainSettings = {
|
|
4561
4590
|
multipleMatchBehavior?: MultipleDomainMatchBehavior;
|
4562
4591
|
};
|
4563
4592
|
|
4593
|
+
/**
|
4594
|
+
* Map of preload scripts that can enable new scripts or disable options defined preloadScripts.
|
4595
|
+
*/
|
4596
|
+
declare type DomainSettingsPreloadScripts = Record<string, {
|
4597
|
+
enabled: boolean;
|
4598
|
+
}>;
|
4599
|
+
|
4564
4600
|
/**
|
4565
4601
|
* Defines domain-conditional settings for an OpenFin application.
|
4566
4602
|
* @interface
|
@@ -8212,9 +8248,7 @@ declare type LayoutEntitiesController = {
|
|
8212
8248
|
getParent: (id: string) => OpenFin_2.LayoutEntityDefinition | undefined;
|
8213
8249
|
isRoot: (id: string) => boolean;
|
8214
8250
|
exists: (entityId: string) => boolean;
|
8215
|
-
addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?:
|
8216
|
-
index?: number;
|
8217
|
-
}) => Promise<OpenFin_2.Identity>;
|
8251
|
+
addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: OpenFin_2.AddViewToStackOptions) => Promise<OpenFin_2.Identity>;
|
8218
8252
|
removeViewFromStack: (stackEntityId: string, view: OpenFin_2.Identity) => Promise<void>;
|
8219
8253
|
createAdjacentStack: (targetId: string, views: ViewCreationOrReference[], stackCreationOptions?: {
|
8220
8254
|
position?: OpenFin_2.LayoutPosition;
|
@@ -9880,6 +9914,7 @@ declare namespace OpenFin_2 {
|
|
9880
9914
|
OpenExternalPermission,
|
9881
9915
|
DeviceInfo,
|
9882
9916
|
Permissions_2 as Permissions,
|
9917
|
+
ClipboardApiPermissions,
|
9883
9918
|
PlatformWindowCreationOptions,
|
9884
9919
|
PlatformWindowOptions,
|
9885
9920
|
PlatformViewCreationOptions,
|
@@ -9996,6 +10031,7 @@ declare namespace OpenFin_2 {
|
|
9996
10031
|
StructuredContentPermissions,
|
9997
10032
|
ContentPermission,
|
9998
10033
|
ScreenCaptureBehavior,
|
10034
|
+
DomainSettingsPreloadScripts,
|
9999
10035
|
PerDomainSettings,
|
10000
10036
|
CopyPermissions,
|
10001
10037
|
PastePermissions,
|
@@ -10348,6 +10384,10 @@ declare type PerDomainSettings = {
|
|
10348
10384
|
* {@inheritdoc ChromiumPolicies}
|
10349
10385
|
*/
|
10350
10386
|
chromiumPolicies?: ChromiumPolicies;
|
10387
|
+
/**
|
10388
|
+
* {@inheritdoc DomainSettingsPreloadScripts}
|
10389
|
+
*/
|
10390
|
+
preloadScripts?: DomainSettingsPreloadScripts;
|
10351
10391
|
contentProtection?: {
|
10352
10392
|
/**
|
10353
10393
|
* {@inheritdoc ScreenCaptureBehavior}
|
@@ -10392,6 +10432,7 @@ declare type PerformanceReportEvent = Performance & BaseEvent_5 & {
|
|
10392
10432
|
declare type Permissions_2 = {
|
10393
10433
|
Application?: Partial<ApplicationPermissions>;
|
10394
10434
|
System?: Partial<SystemPermissions>;
|
10435
|
+
Clipboard?: Partial<ClipboardApiPermissions>;
|
10395
10436
|
webAPIs?: WebPermission[];
|
10396
10437
|
devices?: DeviceInfo[];
|
10397
10438
|
};
|
@@ -12170,10 +12211,6 @@ declare type PrinterInfo = {
|
|
12170
12211
|
* Printer Description
|
12171
12212
|
*/
|
12172
12213
|
description: string;
|
12173
|
-
/**
|
12174
|
-
* Printer Status
|
12175
|
-
*/
|
12176
|
-
status: number;
|
12177
12214
|
/**
|
12178
12215
|
* Indicates that system's default printer.
|
12179
12216
|
*/
|