@openfin/core 37.80.19 → 37.80.21
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 +12 -0
- package/out/mock-beta.d.ts +12 -0
- package/out/mock-public.d.ts +12 -0
- package/out/mock.d.ts +12 -0
- package/out/mock.js +36 -43
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
@@ -3839,6 +3839,10 @@ declare type ConstWindowOptions = {
|
|
3839
3839
|
* _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
|
3840
3840
|
*/
|
3841
3841
|
viewVisibility?: ViewVisibilityOptions;
|
3842
|
+
/**
|
3843
|
+
* Controls whether an option is inherited from the parent application. Use { <option>: false } to disable a specific <option>. All inheritable properties will be inherited by default if omitted."
|
3844
|
+
*/
|
3845
|
+
inheritance?: Partial<InheritableOptions>;
|
3842
3846
|
};
|
3843
3847
|
|
3844
3848
|
declare interface Container extends EventEmitter_2 {
|
@@ -6738,6 +6742,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
|
|
6738
6742
|
metadata?: MetadataType;
|
6739
6743
|
};
|
6740
6744
|
|
6745
|
+
declare type InheritableOptions = {
|
6746
|
+
customContext: boolean;
|
6747
|
+
customData: boolean;
|
6748
|
+
icon: boolean;
|
6749
|
+
preloadScripts: boolean;
|
6750
|
+
};
|
6751
|
+
|
6741
6752
|
/**
|
6742
6753
|
* Generated when an application has initialized.
|
6743
6754
|
* @interface
|
@@ -9969,6 +9980,7 @@ declare namespace OpenFin_2 {
|
|
9969
9980
|
WindowState,
|
9970
9981
|
AutoplayPolicyOptions,
|
9971
9982
|
ConstWindowOptions,
|
9983
|
+
InheritableOptions,
|
9972
9984
|
MutableWindowOptions,
|
9973
9985
|
WorkspacePlatformOptions,
|
9974
9986
|
WebRequestHeader,
|
package/out/mock-beta.d.ts
CHANGED
@@ -3839,6 +3839,10 @@ declare type ConstWindowOptions = {
|
|
3839
3839
|
* _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
|
3840
3840
|
*/
|
3841
3841
|
viewVisibility?: ViewVisibilityOptions;
|
3842
|
+
/**
|
3843
|
+
* Controls whether an option is inherited from the parent application. Use { <option>: false } to disable a specific <option>. All inheritable properties will be inherited by default if omitted."
|
3844
|
+
*/
|
3845
|
+
inheritance?: Partial<InheritableOptions>;
|
3842
3846
|
};
|
3843
3847
|
|
3844
3848
|
declare interface Container extends EventEmitter_2 {
|
@@ -6738,6 +6742,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
|
|
6738
6742
|
metadata?: MetadataType;
|
6739
6743
|
};
|
6740
6744
|
|
6745
|
+
declare type InheritableOptions = {
|
6746
|
+
customContext: boolean;
|
6747
|
+
customData: boolean;
|
6748
|
+
icon: boolean;
|
6749
|
+
preloadScripts: boolean;
|
6750
|
+
};
|
6751
|
+
|
6741
6752
|
/**
|
6742
6753
|
* Generated when an application has initialized.
|
6743
6754
|
* @interface
|
@@ -9969,6 +9980,7 @@ declare namespace OpenFin_2 {
|
|
9969
9980
|
WindowState,
|
9970
9981
|
AutoplayPolicyOptions,
|
9971
9982
|
ConstWindowOptions,
|
9983
|
+
InheritableOptions,
|
9972
9984
|
MutableWindowOptions,
|
9973
9985
|
WorkspacePlatformOptions,
|
9974
9986
|
WebRequestHeader,
|
package/out/mock-public.d.ts
CHANGED
@@ -3839,6 +3839,10 @@ declare type ConstWindowOptions = {
|
|
3839
3839
|
* _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
|
3840
3840
|
*/
|
3841
3841
|
viewVisibility?: ViewVisibilityOptions;
|
3842
|
+
/**
|
3843
|
+
* Controls whether an option is inherited from the parent application. Use { <option>: false } to disable a specific <option>. All inheritable properties will be inherited by default if omitted."
|
3844
|
+
*/
|
3845
|
+
inheritance?: Partial<InheritableOptions>;
|
3842
3846
|
};
|
3843
3847
|
|
3844
3848
|
declare interface Container extends EventEmitter_2 {
|
@@ -6738,6 +6742,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
|
|
6738
6742
|
metadata?: MetadataType;
|
6739
6743
|
};
|
6740
6744
|
|
6745
|
+
declare type InheritableOptions = {
|
6746
|
+
customContext: boolean;
|
6747
|
+
customData: boolean;
|
6748
|
+
icon: boolean;
|
6749
|
+
preloadScripts: boolean;
|
6750
|
+
};
|
6751
|
+
|
6741
6752
|
/**
|
6742
6753
|
* Generated when an application has initialized.
|
6743
6754
|
* @interface
|
@@ -9969,6 +9980,7 @@ declare namespace OpenFin_2 {
|
|
9969
9980
|
WindowState,
|
9970
9981
|
AutoplayPolicyOptions,
|
9971
9982
|
ConstWindowOptions,
|
9983
|
+
InheritableOptions,
|
9972
9984
|
MutableWindowOptions,
|
9973
9985
|
WorkspacePlatformOptions,
|
9974
9986
|
WebRequestHeader,
|
package/out/mock.d.ts
CHANGED
@@ -3894,6 +3894,10 @@ declare type ConstWindowOptions = {
|
|
3894
3894
|
* _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
|
3895
3895
|
*/
|
3896
3896
|
viewVisibility?: ViewVisibilityOptions;
|
3897
|
+
/**
|
3898
|
+
* Controls whether an option is inherited from the parent application. Use { <option>: false } to disable a specific <option>. All inheritable properties will be inherited by default if omitted."
|
3899
|
+
*/
|
3900
|
+
inheritance?: Partial<InheritableOptions>;
|
3897
3901
|
};
|
3898
3902
|
|
3899
3903
|
declare interface Container extends EventEmitter_2 {
|
@@ -6828,6 +6832,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
|
|
6828
6832
|
metadata?: MetadataType;
|
6829
6833
|
};
|
6830
6834
|
|
6835
|
+
declare type InheritableOptions = {
|
6836
|
+
customContext: boolean;
|
6837
|
+
customData: boolean;
|
6838
|
+
icon: boolean;
|
6839
|
+
preloadScripts: boolean;
|
6840
|
+
};
|
6841
|
+
|
6831
6842
|
/**
|
6832
6843
|
* Generated when an application has initialized.
|
6833
6844
|
* @interface
|
@@ -10280,6 +10291,7 @@ declare namespace OpenFin_2 {
|
|
10280
10291
|
WindowState,
|
10281
10292
|
AutoplayPolicyOptions,
|
10282
10293
|
ConstWindowOptions,
|
10294
|
+
InheritableOptions,
|
10283
10295
|
MutableWindowOptions,
|
10284
10296
|
WorkspacePlatformOptions,
|
10285
10297
|
WebRequestHeader,
|
package/out/mock.js
CHANGED
@@ -15115,49 +15115,42 @@ class InteropClient extends base_1$2.Base {
|
|
15115
15115
|
InteropClient$1.InteropClient = InteropClient;
|
15116
15116
|
_InteropClient_clientPromise = new WeakMap(), _InteropClient_sessionContextGroups = new WeakMap();
|
15117
15117
|
|
15118
|
-
var overrideCheck = {};
|
15119
|
-
|
15120
|
-
|
15121
|
-
|
15122
|
-
|
15123
|
-
|
15124
|
-
|
15125
|
-
|
15126
|
-
|
15127
|
-
|
15128
|
-
|
15129
|
-
|
15130
|
-
|
15131
|
-
|
15132
|
-
|
15133
|
-
|
15134
|
-
|
15135
|
-
|
15136
|
-
|
15137
|
-
|
15138
|
-
|
15139
|
-
|
15140
|
-
|
15141
|
-
|
15142
|
-
|
15143
|
-
|
15144
|
-
|
15145
|
-
|
15146
|
-
|
15147
|
-
|
15148
|
-
|
15149
|
-
|
15150
|
-
|
15151
|
-
|
15152
|
-
const notOverridden = checkFDC32Overrides(overriddenBroker);
|
15153
|
-
if (notOverridden.length > 0) {
|
15154
|
-
console.warn(`WARNING: FDC3 2.0 has been set as a default option for Views in this Platform, but the required InteropBroker APIs for FDC3 2.0 compliance have not all been overridden.\nThe following APIs need to be overridden:\n${notOverridden.join('\n')}`);
|
15155
|
-
}
|
15156
|
-
}
|
15157
|
-
}
|
15158
|
-
overrideCheck.overrideCheck = overrideCheck$1;
|
15159
|
-
return overrideCheck;
|
15118
|
+
var overrideCheck$1 = {};
|
15119
|
+
|
15120
|
+
Object.defineProperty(overrideCheck$1, "__esModule", { value: true });
|
15121
|
+
overrideCheck$1.overrideCheck = overrideCheck$1.checkFDC32Overrides = overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = void 0;
|
15122
|
+
const InteropBroker_1 = requireInteropBroker();
|
15123
|
+
function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
|
15124
|
+
const setVersion = manifest?.platform?.defaultViewOptions?.fdc3InteropApi ?? initialOptions.defaultViewOptions?.fdc3InteropApi;
|
15125
|
+
return ['1.2', '2.0'].includes(setVersion ?? '') ? setVersion : undefined;
|
15126
|
+
}
|
15127
|
+
overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
|
15128
|
+
function checkFDC32Overrides(overriddenBroker) {
|
15129
|
+
// These are the APIs that must be overridden for FDC3 2.0 compliance
|
15130
|
+
const mustOverrideAPIs = [
|
15131
|
+
'fdc3HandleFindInstances',
|
15132
|
+
'handleInfoForIntent',
|
15133
|
+
'handleInfoForIntentsByContext',
|
15134
|
+
'fdc3HandleGetAppMetadata',
|
15135
|
+
'fdc3HandleGetInfo',
|
15136
|
+
'fdc3HandleOpen',
|
15137
|
+
'handleFiredIntent',
|
15138
|
+
'handleFiredIntentForContext'
|
15139
|
+
];
|
15140
|
+
return mustOverrideAPIs.filter((api) => {
|
15141
|
+
return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
|
15142
|
+
});
|
15143
|
+
}
|
15144
|
+
overrideCheck$1.checkFDC32Overrides = checkFDC32Overrides;
|
15145
|
+
function overrideCheck(overriddenBroker, fdc3InteropApi) {
|
15146
|
+
if (fdc3InteropApi && fdc3InteropApi === '2.0') {
|
15147
|
+
const notOverridden = checkFDC32Overrides(overriddenBroker);
|
15148
|
+
if (notOverridden.length > 0) {
|
15149
|
+
console.warn(`WARNING: FDC3 2.0 has been set as a default option for Views in this Platform, but the required InteropBroker APIs for FDC3 2.0 compliance have not all been overridden.\nThe following APIs need to be overridden:\n${notOverridden.join('\n')}`);
|
15150
|
+
}
|
15151
|
+
}
|
15160
15152
|
}
|
15153
|
+
overrideCheck$1.overrideCheck = overrideCheck;
|
15161
15154
|
|
15162
15155
|
var hasRequiredFactory;
|
15163
15156
|
|
@@ -15171,7 +15164,7 @@ function requireFactory () {
|
|
15171
15164
|
const base_1 = base;
|
15172
15165
|
const InteropBroker_1 = requireInteropBroker();
|
15173
15166
|
const InteropClient_1 = InteropClient$1;
|
15174
|
-
const overrideCheck_1 =
|
15167
|
+
const overrideCheck_1 = overrideCheck$1;
|
15175
15168
|
const common_utils_1 = commonUtils;
|
15176
15169
|
const defaultOverride = (Class) => new Class();
|
15177
15170
|
const BrokerParamAccessError = 'You have attempted to use or modify InteropBroker parameters, which is not allowed. You are likely using an older InteropBroker override scheme. Please consult our Interop docs for guidance on migrating to the new override scheme.';
|