@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.
@@ -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,
@@ -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,
@@ -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
- var hasRequiredOverrideCheck;
15121
-
15122
- function requireOverrideCheck () {
15123
- if (hasRequiredOverrideCheck) return overrideCheck;
15124
- hasRequiredOverrideCheck = 1;
15125
- Object.defineProperty(overrideCheck, "__esModule", { value: true });
15126
- overrideCheck.overrideCheck = overrideCheck.checkFDC32Overrides = overrideCheck.getDefaultViewFdc3VersionFromAppInfo = void 0;
15127
- const InteropBroker_1 = requireInteropBroker();
15128
- function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
15129
- const setVersion = manifest?.platform?.defaultViewOptions?.fdc3InteropApi ?? initialOptions.defaultViewOptions?.fdc3InteropApi;
15130
- return ['1.2', '2.0'].includes(setVersion ?? '') ? setVersion : undefined;
15131
- }
15132
- overrideCheck.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
15133
- function checkFDC32Overrides(overriddenBroker) {
15134
- // These are the APIs that must be overridden for FDC3 2.0 compliance
15135
- const mustOverrideAPIs = [
15136
- 'fdc3HandleFindInstances',
15137
- 'handleInfoForIntent',
15138
- 'handleInfoForIntentsByContext',
15139
- 'fdc3HandleGetAppMetadata',
15140
- 'fdc3HandleGetInfo',
15141
- 'fdc3HandleOpen',
15142
- 'handleFiredIntent',
15143
- 'handleFiredIntentForContext'
15144
- ];
15145
- return mustOverrideAPIs.filter((api) => {
15146
- return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
15147
- });
15148
- }
15149
- overrideCheck.checkFDC32Overrides = checkFDC32Overrides;
15150
- function overrideCheck$1(overriddenBroker, fdc3InteropApi) {
15151
- if (fdc3InteropApi && fdc3InteropApi === '2.0') {
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 = requireOverrideCheck();
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.';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "37.80.19",
3
+ "version": "37.80.21",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",