@openfin/core 41.100.109 → 41.100.110
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 +41 -9
- package/out/mock-beta.d.ts +41 -9
- package/out/mock-public.d.ts +41 -9
- package/out/stub.d.ts +41 -9
- package/out/stub.js +11 -5
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
@@ -4502,6 +4502,13 @@ declare type DomainSettings = {
|
|
4502
4502
|
multipleMatchBehavior?: MultipleDomainMatchBehavior;
|
4503
4503
|
};
|
4504
4504
|
|
4505
|
+
/**
|
4506
|
+
* Map of preload scripts that can enable new scripts or disable options defined preloadScripts.
|
4507
|
+
*/
|
4508
|
+
declare type DomainSettingsPreloadScripts = Record<string, {
|
4509
|
+
enabled: boolean;
|
4510
|
+
}>;
|
4511
|
+
|
4505
4512
|
/**
|
4506
4513
|
* Defines domain-conditional settings for an OpenFin application.
|
4507
4514
|
* @interface
|
@@ -6223,9 +6230,10 @@ declare type InitPlatformOptions = {
|
|
6223
6230
|
* Injection setting for the `fin` API.
|
6224
6231
|
*
|
6225
6232
|
* * 'none': The `fin` API will be not available.
|
6233
|
+
* * 'preloads': The `fin` API will be available in a synchronous context in the preload script only.
|
6226
6234
|
* * 'global': The entire `fin` API will be available.
|
6227
6235
|
*/
|
6228
|
-
declare type InjectionType = 'none' | 'global';
|
6236
|
+
declare type InjectionType = 'none' | 'preloads' | 'global';
|
6229
6237
|
|
6230
6238
|
/**
|
6231
6239
|
* Generated when the value of the element changes.
|
@@ -9677,6 +9685,7 @@ declare namespace OpenFin_2 {
|
|
9677
9685
|
StructuredContentPermissions,
|
9678
9686
|
ContentPermission,
|
9679
9687
|
ScreenCaptureBehavior,
|
9688
|
+
DomainSettingsPreloadScripts,
|
9680
9689
|
PerDomainSettings,
|
9681
9690
|
CopyPermissions,
|
9682
9691
|
PastePermissions,
|
@@ -9793,6 +9802,7 @@ declare namespace OpenFin_2 {
|
|
9793
9802
|
PathServeRequest,
|
9794
9803
|
ServeAssetOptions,
|
9795
9804
|
ServedAssetInfo,
|
9805
|
+
ResolvedDomainSettings,
|
9796
9806
|
ApplicationEvents,
|
9797
9807
|
BaseEvents,
|
9798
9808
|
ExternalApplicationEvents,
|
@@ -10028,6 +10038,10 @@ declare type PerDomainSettings = {
|
|
10028
10038
|
* {@inheritdoc ChromiumPolicies}
|
10029
10039
|
*/
|
10030
10040
|
chromiumPolicies?: ChromiumPolicies;
|
10041
|
+
/**
|
10042
|
+
* {@inheritdoc DomainSettingsPreloadScripts}
|
10043
|
+
*/
|
10044
|
+
preloadScripts?: DomainSettingsPreloadScripts;
|
10031
10045
|
contentProtection?: {
|
10032
10046
|
/**
|
10033
10047
|
* {@inheritdoc ScreenCaptureBehavior}
|
@@ -12537,13 +12551,19 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
12537
12551
|
'system-update-process-logging-options': ApiCall<{
|
12538
12552
|
options: OpenFin_2.ProcessLoggingOptions;
|
12539
12553
|
}, void>;
|
12540
|
-
'get-domain-settings': ApiCall<
|
12554
|
+
'get-domain-settings': ApiCall<void, OpenFin_2.DomainSettings>;
|
12541
12555
|
'serve-asset': ApiCall<{
|
12542
12556
|
options: OpenFin_2.ServeAssetOptions;
|
12543
12557
|
}, OpenFin_2.ServedAssetInfo>;
|
12544
|
-
'set-domain-settings': ApiCall<
|
12545
|
-
domainSettings: OpenFin_2.
|
12558
|
+
'set-domain-settings': ApiCall<{
|
12559
|
+
domainSettings: OpenFin_2.DomainSettings;
|
12546
12560
|
}, void>;
|
12561
|
+
'get-current-domain-settings': ApiCall<{
|
12562
|
+
identity: OpenFin_2.Identity;
|
12563
|
+
}, OpenFin_2.ResolvedDomainSettings>;
|
12564
|
+
'resolve-domain-settings': ApiCall<{
|
12565
|
+
url: string;
|
12566
|
+
}, OpenFin_2.ResolvedDomainSettings>;
|
12547
12567
|
'system-register-shutdown-handler': VoidCall;
|
12548
12568
|
'get-permissions': GetterCall<any>;
|
12549
12569
|
'refresh-extensions': {
|
@@ -13026,6 +13046,14 @@ declare type ResizeRegion = {
|
|
13026
13046
|
};
|
13027
13047
|
};
|
13028
13048
|
|
13049
|
+
declare type ResolvedDomainSettings = {
|
13050
|
+
url: string;
|
13051
|
+
settings: PerDomainSettings;
|
13052
|
+
matches: DomainSettingsRule[];
|
13053
|
+
multipleDomainMatchBehavior: MultipleDomainMatchBehavior;
|
13054
|
+
default?: PerDomainSettings;
|
13055
|
+
};
|
13056
|
+
|
13029
13057
|
/**
|
13030
13058
|
* Generated when an HTTP load was cancelled or failed.
|
13031
13059
|
* @interface
|
@@ -15225,7 +15253,9 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
15225
15253
|
* // }
|
15226
15254
|
* ```
|
15227
15255
|
*/
|
15228
|
-
setDomainSettings(domainSettings: OpenFin_2.
|
15256
|
+
setDomainSettings(domainSettings: OpenFin_2.DomainSettings): Promise<void>;
|
15257
|
+
getCurrentDomainSettings(identity: OpenFin_2.Identity): Promise<OpenFin_2.ResolvedDomainSettings>;
|
15258
|
+
resolveDomainSettings(url: string): Promise<OpenFin_2.ResolvedDomainSettings>;
|
15229
15259
|
/**
|
15230
15260
|
* Attempts to install and enable extensions for the security realm. Users may want to call this function in response
|
15231
15261
|
* to an `extensions-install-failed` event. Only extensions allowed by every application on the current security realm
|
@@ -15299,6 +15329,10 @@ declare type SystemEventType = EventType_8;
|
|
15299
15329
|
declare type SystemPermissions = {
|
15300
15330
|
getOSInfo: boolean;
|
15301
15331
|
getAllExternalWindows: boolean;
|
15332
|
+
setDomainSettings: boolean;
|
15333
|
+
getDomainSettings: boolean;
|
15334
|
+
getCurrentDomainSettings: boolean;
|
15335
|
+
resolveDomainSettings: boolean;
|
15302
15336
|
launchExternalProcess: boolean | {
|
15303
15337
|
enabled: boolean;
|
15304
15338
|
assets?: {
|
@@ -15635,7 +15669,7 @@ declare class Transport<MeType extends EntityType = EntityType> extends EventEmi
|
|
15635
15669
|
sendRaw: Wire['send'];
|
15636
15670
|
eventAggregator: EventAggregator;
|
15637
15671
|
protected messageHandlers: MessageHandler[];
|
15638
|
-
constructor(
|
15672
|
+
constructor(factory: WireFactory, environment: Environment, config: OpenFin_2.Identity);
|
15639
15673
|
getFin(): OpenFin_2.Fin<MeType>;
|
15640
15674
|
registerFin(_fin: OpenFin_2.Fin<MeType>): void;
|
15641
15675
|
connectSync: () => void;
|
@@ -19124,9 +19158,7 @@ declare type Wire = EventEmitter & {
|
|
19124
19158
|
getPort(): string;
|
19125
19159
|
};
|
19126
19160
|
|
19127
|
-
declare type
|
19128
|
-
new (onmessage: (data: any) => void): Wire;
|
19129
|
-
};
|
19161
|
+
declare type WireFactory = (onmessage: (data: any) => void) => Wire;
|
19130
19162
|
|
19131
19163
|
/* Excluded from this release type: WithId */
|
19132
19164
|
|
package/out/mock-beta.d.ts
CHANGED
@@ -4502,6 +4502,13 @@ declare type DomainSettings = {
|
|
4502
4502
|
multipleMatchBehavior?: MultipleDomainMatchBehavior;
|
4503
4503
|
};
|
4504
4504
|
|
4505
|
+
/**
|
4506
|
+
* Map of preload scripts that can enable new scripts or disable options defined preloadScripts.
|
4507
|
+
*/
|
4508
|
+
declare type DomainSettingsPreloadScripts = Record<string, {
|
4509
|
+
enabled: boolean;
|
4510
|
+
}>;
|
4511
|
+
|
4505
4512
|
/**
|
4506
4513
|
* Defines domain-conditional settings for an OpenFin application.
|
4507
4514
|
* @interface
|
@@ -6223,9 +6230,10 @@ declare type InitPlatformOptions = {
|
|
6223
6230
|
* Injection setting for the `fin` API.
|
6224
6231
|
*
|
6225
6232
|
* * 'none': The `fin` API will be not available.
|
6233
|
+
* * 'preloads': The `fin` API will be available in a synchronous context in the preload script only.
|
6226
6234
|
* * 'global': The entire `fin` API will be available.
|
6227
6235
|
*/
|
6228
|
-
declare type InjectionType = 'none' | 'global';
|
6236
|
+
declare type InjectionType = 'none' | 'preloads' | 'global';
|
6229
6237
|
|
6230
6238
|
/**
|
6231
6239
|
* Generated when the value of the element changes.
|
@@ -9677,6 +9685,7 @@ declare namespace OpenFin_2 {
|
|
9677
9685
|
StructuredContentPermissions,
|
9678
9686
|
ContentPermission,
|
9679
9687
|
ScreenCaptureBehavior,
|
9688
|
+
DomainSettingsPreloadScripts,
|
9680
9689
|
PerDomainSettings,
|
9681
9690
|
CopyPermissions,
|
9682
9691
|
PastePermissions,
|
@@ -9793,6 +9802,7 @@ declare namespace OpenFin_2 {
|
|
9793
9802
|
PathServeRequest,
|
9794
9803
|
ServeAssetOptions,
|
9795
9804
|
ServedAssetInfo,
|
9805
|
+
ResolvedDomainSettings,
|
9796
9806
|
ApplicationEvents,
|
9797
9807
|
BaseEvents,
|
9798
9808
|
ExternalApplicationEvents,
|
@@ -10028,6 +10038,10 @@ declare type PerDomainSettings = {
|
|
10028
10038
|
* {@inheritdoc ChromiumPolicies}
|
10029
10039
|
*/
|
10030
10040
|
chromiumPolicies?: ChromiumPolicies;
|
10041
|
+
/**
|
10042
|
+
* {@inheritdoc DomainSettingsPreloadScripts}
|
10043
|
+
*/
|
10044
|
+
preloadScripts?: DomainSettingsPreloadScripts;
|
10031
10045
|
contentProtection?: {
|
10032
10046
|
/**
|
10033
10047
|
* {@inheritdoc ScreenCaptureBehavior}
|
@@ -12537,13 +12551,19 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
12537
12551
|
'system-update-process-logging-options': ApiCall<{
|
12538
12552
|
options: OpenFin_2.ProcessLoggingOptions;
|
12539
12553
|
}, void>;
|
12540
|
-
'get-domain-settings': ApiCall<
|
12554
|
+
'get-domain-settings': ApiCall<void, OpenFin_2.DomainSettings>;
|
12541
12555
|
'serve-asset': ApiCall<{
|
12542
12556
|
options: OpenFin_2.ServeAssetOptions;
|
12543
12557
|
}, OpenFin_2.ServedAssetInfo>;
|
12544
|
-
'set-domain-settings': ApiCall<
|
12545
|
-
domainSettings: OpenFin_2.
|
12558
|
+
'set-domain-settings': ApiCall<{
|
12559
|
+
domainSettings: OpenFin_2.DomainSettings;
|
12546
12560
|
}, void>;
|
12561
|
+
'get-current-domain-settings': ApiCall<{
|
12562
|
+
identity: OpenFin_2.Identity;
|
12563
|
+
}, OpenFin_2.ResolvedDomainSettings>;
|
12564
|
+
'resolve-domain-settings': ApiCall<{
|
12565
|
+
url: string;
|
12566
|
+
}, OpenFin_2.ResolvedDomainSettings>;
|
12547
12567
|
'system-register-shutdown-handler': VoidCall;
|
12548
12568
|
'get-permissions': GetterCall<any>;
|
12549
12569
|
'refresh-extensions': {
|
@@ -13026,6 +13046,14 @@ declare type ResizeRegion = {
|
|
13026
13046
|
};
|
13027
13047
|
};
|
13028
13048
|
|
13049
|
+
declare type ResolvedDomainSettings = {
|
13050
|
+
url: string;
|
13051
|
+
settings: PerDomainSettings;
|
13052
|
+
matches: DomainSettingsRule[];
|
13053
|
+
multipleDomainMatchBehavior: MultipleDomainMatchBehavior;
|
13054
|
+
default?: PerDomainSettings;
|
13055
|
+
};
|
13056
|
+
|
13029
13057
|
/**
|
13030
13058
|
* Generated when an HTTP load was cancelled or failed.
|
13031
13059
|
* @interface
|
@@ -15225,7 +15253,9 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
15225
15253
|
* // }
|
15226
15254
|
* ```
|
15227
15255
|
*/
|
15228
|
-
setDomainSettings(domainSettings: OpenFin_2.
|
15256
|
+
setDomainSettings(domainSettings: OpenFin_2.DomainSettings): Promise<void>;
|
15257
|
+
getCurrentDomainSettings(identity: OpenFin_2.Identity): Promise<OpenFin_2.ResolvedDomainSettings>;
|
15258
|
+
resolveDomainSettings(url: string): Promise<OpenFin_2.ResolvedDomainSettings>;
|
15229
15259
|
/**
|
15230
15260
|
* Attempts to install and enable extensions for the security realm. Users may want to call this function in response
|
15231
15261
|
* to an `extensions-install-failed` event. Only extensions allowed by every application on the current security realm
|
@@ -15299,6 +15329,10 @@ declare type SystemEventType = EventType_8;
|
|
15299
15329
|
declare type SystemPermissions = {
|
15300
15330
|
getOSInfo: boolean;
|
15301
15331
|
getAllExternalWindows: boolean;
|
15332
|
+
setDomainSettings: boolean;
|
15333
|
+
getDomainSettings: boolean;
|
15334
|
+
getCurrentDomainSettings: boolean;
|
15335
|
+
resolveDomainSettings: boolean;
|
15302
15336
|
launchExternalProcess: boolean | {
|
15303
15337
|
enabled: boolean;
|
15304
15338
|
assets?: {
|
@@ -15635,7 +15669,7 @@ declare class Transport<MeType extends EntityType = EntityType> extends EventEmi
|
|
15635
15669
|
sendRaw: Wire['send'];
|
15636
15670
|
eventAggregator: EventAggregator;
|
15637
15671
|
protected messageHandlers: MessageHandler[];
|
15638
|
-
constructor(
|
15672
|
+
constructor(factory: WireFactory, environment: Environment, config: OpenFin_2.Identity);
|
15639
15673
|
getFin(): OpenFin_2.Fin<MeType>;
|
15640
15674
|
registerFin(_fin: OpenFin_2.Fin<MeType>): void;
|
15641
15675
|
connectSync: () => void;
|
@@ -19124,9 +19158,7 @@ declare type Wire = EventEmitter & {
|
|
19124
19158
|
getPort(): string;
|
19125
19159
|
};
|
19126
19160
|
|
19127
|
-
declare type
|
19128
|
-
new (onmessage: (data: any) => void): Wire;
|
19129
|
-
};
|
19161
|
+
declare type WireFactory = (onmessage: (data: any) => void) => Wire;
|
19130
19162
|
|
19131
19163
|
/* Excluded from this release type: WithId */
|
19132
19164
|
|
package/out/mock-public.d.ts
CHANGED
@@ -4502,6 +4502,13 @@ declare type DomainSettings = {
|
|
4502
4502
|
multipleMatchBehavior?: MultipleDomainMatchBehavior;
|
4503
4503
|
};
|
4504
4504
|
|
4505
|
+
/**
|
4506
|
+
* Map of preload scripts that can enable new scripts or disable options defined preloadScripts.
|
4507
|
+
*/
|
4508
|
+
declare type DomainSettingsPreloadScripts = Record<string, {
|
4509
|
+
enabled: boolean;
|
4510
|
+
}>;
|
4511
|
+
|
4505
4512
|
/**
|
4506
4513
|
* Defines domain-conditional settings for an OpenFin application.
|
4507
4514
|
* @interface
|
@@ -6223,9 +6230,10 @@ declare type InitPlatformOptions = {
|
|
6223
6230
|
* Injection setting for the `fin` API.
|
6224
6231
|
*
|
6225
6232
|
* * 'none': The `fin` API will be not available.
|
6233
|
+
* * 'preloads': The `fin` API will be available in a synchronous context in the preload script only.
|
6226
6234
|
* * 'global': The entire `fin` API will be available.
|
6227
6235
|
*/
|
6228
|
-
declare type InjectionType = 'none' | 'global';
|
6236
|
+
declare type InjectionType = 'none' | 'preloads' | 'global';
|
6229
6237
|
|
6230
6238
|
/**
|
6231
6239
|
* Generated when the value of the element changes.
|
@@ -9677,6 +9685,7 @@ declare namespace OpenFin_2 {
|
|
9677
9685
|
StructuredContentPermissions,
|
9678
9686
|
ContentPermission,
|
9679
9687
|
ScreenCaptureBehavior,
|
9688
|
+
DomainSettingsPreloadScripts,
|
9680
9689
|
PerDomainSettings,
|
9681
9690
|
CopyPermissions,
|
9682
9691
|
PastePermissions,
|
@@ -9793,6 +9802,7 @@ declare namespace OpenFin_2 {
|
|
9793
9802
|
PathServeRequest,
|
9794
9803
|
ServeAssetOptions,
|
9795
9804
|
ServedAssetInfo,
|
9805
|
+
ResolvedDomainSettings,
|
9796
9806
|
ApplicationEvents,
|
9797
9807
|
BaseEvents,
|
9798
9808
|
ExternalApplicationEvents,
|
@@ -10028,6 +10038,10 @@ declare type PerDomainSettings = {
|
|
10028
10038
|
* {@inheritdoc ChromiumPolicies}
|
10029
10039
|
*/
|
10030
10040
|
chromiumPolicies?: ChromiumPolicies;
|
10041
|
+
/**
|
10042
|
+
* {@inheritdoc DomainSettingsPreloadScripts}
|
10043
|
+
*/
|
10044
|
+
preloadScripts?: DomainSettingsPreloadScripts;
|
10031
10045
|
contentProtection?: {
|
10032
10046
|
/**
|
10033
10047
|
* {@inheritdoc ScreenCaptureBehavior}
|
@@ -12537,13 +12551,19 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
12537
12551
|
'system-update-process-logging-options': ApiCall<{
|
12538
12552
|
options: OpenFin_2.ProcessLoggingOptions;
|
12539
12553
|
}, void>;
|
12540
|
-
'get-domain-settings': ApiCall<
|
12554
|
+
'get-domain-settings': ApiCall<void, OpenFin_2.DomainSettings>;
|
12541
12555
|
'serve-asset': ApiCall<{
|
12542
12556
|
options: OpenFin_2.ServeAssetOptions;
|
12543
12557
|
}, OpenFin_2.ServedAssetInfo>;
|
12544
|
-
'set-domain-settings': ApiCall<
|
12545
|
-
domainSettings: OpenFin_2.
|
12558
|
+
'set-domain-settings': ApiCall<{
|
12559
|
+
domainSettings: OpenFin_2.DomainSettings;
|
12546
12560
|
}, void>;
|
12561
|
+
'get-current-domain-settings': ApiCall<{
|
12562
|
+
identity: OpenFin_2.Identity;
|
12563
|
+
}, OpenFin_2.ResolvedDomainSettings>;
|
12564
|
+
'resolve-domain-settings': ApiCall<{
|
12565
|
+
url: string;
|
12566
|
+
}, OpenFin_2.ResolvedDomainSettings>;
|
12547
12567
|
'system-register-shutdown-handler': VoidCall;
|
12548
12568
|
'get-permissions': GetterCall<any>;
|
12549
12569
|
'refresh-extensions': {
|
@@ -13026,6 +13046,14 @@ declare type ResizeRegion = {
|
|
13026
13046
|
};
|
13027
13047
|
};
|
13028
13048
|
|
13049
|
+
declare type ResolvedDomainSettings = {
|
13050
|
+
url: string;
|
13051
|
+
settings: PerDomainSettings;
|
13052
|
+
matches: DomainSettingsRule[];
|
13053
|
+
multipleDomainMatchBehavior: MultipleDomainMatchBehavior;
|
13054
|
+
default?: PerDomainSettings;
|
13055
|
+
};
|
13056
|
+
|
13029
13057
|
/**
|
13030
13058
|
* Generated when an HTTP load was cancelled or failed.
|
13031
13059
|
* @interface
|
@@ -15225,7 +15253,9 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
15225
15253
|
* // }
|
15226
15254
|
* ```
|
15227
15255
|
*/
|
15228
|
-
setDomainSettings(domainSettings: OpenFin_2.
|
15256
|
+
setDomainSettings(domainSettings: OpenFin_2.DomainSettings): Promise<void>;
|
15257
|
+
getCurrentDomainSettings(identity: OpenFin_2.Identity): Promise<OpenFin_2.ResolvedDomainSettings>;
|
15258
|
+
resolveDomainSettings(url: string): Promise<OpenFin_2.ResolvedDomainSettings>;
|
15229
15259
|
/**
|
15230
15260
|
* Attempts to install and enable extensions for the security realm. Users may want to call this function in response
|
15231
15261
|
* to an `extensions-install-failed` event. Only extensions allowed by every application on the current security realm
|
@@ -15299,6 +15329,10 @@ declare type SystemEventType = EventType_8;
|
|
15299
15329
|
declare type SystemPermissions = {
|
15300
15330
|
getOSInfo: boolean;
|
15301
15331
|
getAllExternalWindows: boolean;
|
15332
|
+
setDomainSettings: boolean;
|
15333
|
+
getDomainSettings: boolean;
|
15334
|
+
getCurrentDomainSettings: boolean;
|
15335
|
+
resolveDomainSettings: boolean;
|
15302
15336
|
launchExternalProcess: boolean | {
|
15303
15337
|
enabled: boolean;
|
15304
15338
|
assets?: {
|
@@ -15635,7 +15669,7 @@ declare class Transport<MeType extends EntityType = EntityType> extends EventEmi
|
|
15635
15669
|
sendRaw: Wire['send'];
|
15636
15670
|
eventAggregator: EventAggregator;
|
15637
15671
|
protected messageHandlers: MessageHandler[];
|
15638
|
-
constructor(
|
15672
|
+
constructor(factory: WireFactory, environment: Environment, config: OpenFin_2.Identity);
|
15639
15673
|
getFin(): OpenFin_2.Fin<MeType>;
|
15640
15674
|
registerFin(_fin: OpenFin_2.Fin<MeType>): void;
|
15641
15675
|
connectSync: () => void;
|
@@ -19124,9 +19158,7 @@ declare type Wire = EventEmitter & {
|
|
19124
19158
|
getPort(): string;
|
19125
19159
|
};
|
19126
19160
|
|
19127
|
-
declare type
|
19128
|
-
new (onmessage: (data: any) => void): Wire;
|
19129
|
-
};
|
19161
|
+
declare type WireFactory = (onmessage: (data: any) => void) => Wire;
|
19130
19162
|
|
19131
19163
|
/* Excluded from this release type: WithId */
|
19132
19164
|
|
package/out/stub.d.ts
CHANGED
@@ -4561,6 +4561,13 @@ declare type DomainSettings = {
|
|
4561
4561
|
multipleMatchBehavior?: MultipleDomainMatchBehavior;
|
4562
4562
|
};
|
4563
4563
|
|
4564
|
+
/**
|
4565
|
+
* Map of preload scripts that can enable new scripts or disable options defined preloadScripts.
|
4566
|
+
*/
|
4567
|
+
declare type DomainSettingsPreloadScripts = Record<string, {
|
4568
|
+
enabled: boolean;
|
4569
|
+
}>;
|
4570
|
+
|
4564
4571
|
/**
|
4565
4572
|
* Defines domain-conditional settings for an OpenFin application.
|
4566
4573
|
* @interface
|
@@ -6317,9 +6324,10 @@ declare type InitPlatformOptions = {
|
|
6317
6324
|
* Injection setting for the `fin` API.
|
6318
6325
|
*
|
6319
6326
|
* * 'none': The `fin` API will be not available.
|
6327
|
+
* * 'preloads': The `fin` API will be available in a synchronous context in the preload script only.
|
6320
6328
|
* * 'global': The entire `fin` API will be available.
|
6321
6329
|
*/
|
6322
|
-
declare type InjectionType = 'none' | 'global';
|
6330
|
+
declare type InjectionType = 'none' | 'preloads' | 'global';
|
6323
6331
|
|
6324
6332
|
/**
|
6325
6333
|
* Generated when the value of the element changes.
|
@@ -9995,6 +10003,7 @@ declare namespace OpenFin_2 {
|
|
9995
10003
|
StructuredContentPermissions,
|
9996
10004
|
ContentPermission,
|
9997
10005
|
ScreenCaptureBehavior,
|
10006
|
+
DomainSettingsPreloadScripts,
|
9998
10007
|
PerDomainSettings,
|
9999
10008
|
CopyPermissions,
|
10000
10009
|
PastePermissions,
|
@@ -10111,6 +10120,7 @@ declare namespace OpenFin_2 {
|
|
10111
10120
|
PathServeRequest,
|
10112
10121
|
ServeAssetOptions,
|
10113
10122
|
ServedAssetInfo,
|
10123
|
+
ResolvedDomainSettings,
|
10114
10124
|
ApplicationEvents,
|
10115
10125
|
BaseEvents,
|
10116
10126
|
ExternalApplicationEvents,
|
@@ -10346,6 +10356,10 @@ declare type PerDomainSettings = {
|
|
10346
10356
|
* {@inheritdoc ChromiumPolicies}
|
10347
10357
|
*/
|
10348
10358
|
chromiumPolicies?: ChromiumPolicies;
|
10359
|
+
/**
|
10360
|
+
* {@inheritdoc DomainSettingsPreloadScripts}
|
10361
|
+
*/
|
10362
|
+
preloadScripts?: DomainSettingsPreloadScripts;
|
10349
10363
|
contentProtection?: {
|
10350
10364
|
/**
|
10351
10365
|
* {@inheritdoc ScreenCaptureBehavior}
|
@@ -12938,13 +12952,19 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
12938
12952
|
'system-update-process-logging-options': ApiCall<{
|
12939
12953
|
options: OpenFin_2.ProcessLoggingOptions;
|
12940
12954
|
}, void>;
|
12941
|
-
'get-domain-settings': ApiCall<
|
12955
|
+
'get-domain-settings': ApiCall<void, OpenFin_2.DomainSettings>;
|
12942
12956
|
'serve-asset': ApiCall<{
|
12943
12957
|
options: OpenFin_2.ServeAssetOptions;
|
12944
12958
|
}, OpenFin_2.ServedAssetInfo>;
|
12945
|
-
'set-domain-settings': ApiCall<
|
12946
|
-
domainSettings: OpenFin_2.
|
12959
|
+
'set-domain-settings': ApiCall<{
|
12960
|
+
domainSettings: OpenFin_2.DomainSettings;
|
12947
12961
|
}, void>;
|
12962
|
+
'get-current-domain-settings': ApiCall<{
|
12963
|
+
identity: OpenFin_2.Identity;
|
12964
|
+
}, OpenFin_2.ResolvedDomainSettings>;
|
12965
|
+
'resolve-domain-settings': ApiCall<{
|
12966
|
+
url: string;
|
12967
|
+
}, OpenFin_2.ResolvedDomainSettings>;
|
12948
12968
|
'system-register-shutdown-handler': VoidCall;
|
12949
12969
|
'get-permissions': GetterCall<any>;
|
12950
12970
|
'refresh-extensions': {
|
@@ -13427,6 +13447,14 @@ declare type ResizeRegion = {
|
|
13427
13447
|
};
|
13428
13448
|
};
|
13429
13449
|
|
13450
|
+
declare type ResolvedDomainSettings = {
|
13451
|
+
url: string;
|
13452
|
+
settings: PerDomainSettings;
|
13453
|
+
matches: DomainSettingsRule[];
|
13454
|
+
multipleDomainMatchBehavior: MultipleDomainMatchBehavior;
|
13455
|
+
default?: PerDomainSettings;
|
13456
|
+
};
|
13457
|
+
|
13430
13458
|
/**
|
13431
13459
|
* Generated when an HTTP load was cancelled or failed.
|
13432
13460
|
* @interface
|
@@ -15632,7 +15660,9 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
15632
15660
|
* // }
|
15633
15661
|
* ```
|
15634
15662
|
*/
|
15635
|
-
setDomainSettings(domainSettings: OpenFin_2.
|
15663
|
+
setDomainSettings(domainSettings: OpenFin_2.DomainSettings): Promise<void>;
|
15664
|
+
getCurrentDomainSettings(identity: OpenFin_2.Identity): Promise<OpenFin_2.ResolvedDomainSettings>;
|
15665
|
+
resolveDomainSettings(url: string): Promise<OpenFin_2.ResolvedDomainSettings>;
|
15636
15666
|
/**
|
15637
15667
|
* Attempts to install and enable extensions for the security realm. Users may want to call this function in response
|
15638
15668
|
* to an `extensions-install-failed` event. Only extensions allowed by every application on the current security realm
|
@@ -15706,6 +15736,10 @@ declare type SystemEventType = EventType_8;
|
|
15706
15736
|
declare type SystemPermissions = {
|
15707
15737
|
getOSInfo: boolean;
|
15708
15738
|
getAllExternalWindows: boolean;
|
15739
|
+
setDomainSettings: boolean;
|
15740
|
+
getDomainSettings: boolean;
|
15741
|
+
getCurrentDomainSettings: boolean;
|
15742
|
+
resolveDomainSettings: boolean;
|
15709
15743
|
launchExternalProcess: boolean | {
|
15710
15744
|
enabled: boolean;
|
15711
15745
|
assets?: {
|
@@ -16049,7 +16083,7 @@ declare class Transport<MeType extends EntityType = EntityType> extends EventEmi
|
|
16049
16083
|
sendRaw: Wire['send'];
|
16050
16084
|
eventAggregator: EventAggregator;
|
16051
16085
|
protected messageHandlers: MessageHandler[];
|
16052
|
-
constructor(
|
16086
|
+
constructor(factory: WireFactory, environment: Environment, config: OpenFin_2.Identity);
|
16053
16087
|
getFin(): OpenFin_2.Fin<MeType>;
|
16054
16088
|
registerFin(_fin: OpenFin_2.Fin<MeType>): void;
|
16055
16089
|
connectSync: () => void;
|
@@ -19578,9 +19612,7 @@ declare type Wire = EventEmitter & {
|
|
19578
19612
|
getPort(): string;
|
19579
19613
|
};
|
19580
19614
|
|
19581
|
-
declare type
|
19582
|
-
new (onmessage: (data: any) => void): Wire;
|
19583
|
-
};
|
19615
|
+
declare type WireFactory = (onmessage: (data: any) => void) => Wire;
|
19584
19616
|
|
19585
19617
|
/**
|
19586
19618
|
* @internal
|
package/out/stub.js
CHANGED
@@ -7206,7 +7206,7 @@ class System extends base_1$l.EmitterBase {
|
|
7206
7206
|
* ```
|
7207
7207
|
*/
|
7208
7208
|
async getDomainSettings() {
|
7209
|
-
const { payload: { data } } = await this.wire.sendAction('get-domain-settings'
|
7209
|
+
const { payload: { data } } = await this.wire.sendAction('get-domain-settings');
|
7210
7210
|
return data;
|
7211
7211
|
}
|
7212
7212
|
/**
|
@@ -7267,7 +7267,13 @@ class System extends base_1$l.EmitterBase {
|
|
7267
7267
|
* ```
|
7268
7268
|
*/
|
7269
7269
|
async setDomainSettings(domainSettings) {
|
7270
|
-
await this.wire.sendAction('set-domain-settings', { domainSettings
|
7270
|
+
await this.wire.sendAction('set-domain-settings', { domainSettings });
|
7271
|
+
}
|
7272
|
+
async getCurrentDomainSettings(identity) {
|
7273
|
+
return (await this.wire.sendAction('get-current-domain-settings', { identity })).payload.data;
|
7274
|
+
}
|
7275
|
+
async resolveDomainSettings(url) {
|
7276
|
+
return (await this.wire.sendAction('resolve-domain-settings', { url })).payload.data;
|
7271
7277
|
}
|
7272
7278
|
/**
|
7273
7279
|
* Attempts to install and enable extensions for the security realm. Users may want to call this function in response
|
@@ -17423,7 +17429,7 @@ const eventAggregator_1 = __importDefault(eventAggregator);
|
|
17423
17429
|
const me_1$1 = me;
|
17424
17430
|
const errors_1 = errors;
|
17425
17431
|
class Transport extends events_1$1.EventEmitter {
|
17426
|
-
constructor(
|
17432
|
+
constructor(factory, environment, config) {
|
17427
17433
|
super();
|
17428
17434
|
this.wireListeners = new Map();
|
17429
17435
|
this.topicRefMap = new Map();
|
@@ -17441,7 +17447,7 @@ class Transport extends events_1$1.EventEmitter {
|
|
17441
17447
|
const wire = __classPrivateFieldGet(this, _Transport_wire, "f");
|
17442
17448
|
return wire.getPort();
|
17443
17449
|
};
|
17444
|
-
__classPrivateFieldSet(this, _Transport_wire,
|
17450
|
+
__classPrivateFieldSet(this, _Transport_wire, factory(this.onmessage.bind(this)), "f");
|
17445
17451
|
this.environment = environment;
|
17446
17452
|
this.sendRaw = __classPrivateFieldGet(this, _Transport_wire, "f").send.bind(__classPrivateFieldGet(this, _Transport_wire, "f"));
|
17447
17453
|
this.registerMessageHandler(this.handleMessage.bind(this));
|
@@ -17753,7 +17759,7 @@ StubWire_1 = stubWire.StubWire = StubWire;
|
|
17753
17759
|
const fin$1 = ((typeof window !== 'undefined' && window?.fin) ||
|
17754
17760
|
(() => {
|
17755
17761
|
const environment = new StubEnvironment_1();
|
17756
|
-
const transport = new Transport_1(StubWire_1, environment, {
|
17762
|
+
const transport = new Transport_1(() => new StubWire_1(), environment, {
|
17757
17763
|
uuid: '',
|
17758
17764
|
name: ''
|
17759
17765
|
});
|