@openfin/core 40.104.5 → 40.104.7

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.
@@ -10003,6 +10003,9 @@ declare type PerDomainSettings = {
10003
10003
  * {@inheritdoc ChromiumPolicies}
10004
10004
  */
10005
10005
  chromiumPolicies?: ChromiumPolicies;
10006
+ /**
10007
+ * @experimental These features are still under development and may change.
10008
+ */
10006
10009
  contentProtection?: {
10007
10010
  /**
10008
10011
  * {@inheritdoc ScreenCaptureBehavior}
@@ -13178,12 +13181,20 @@ declare type RVMInfo = {
13178
13181
  * The app log directory.
13179
13182
  */
13180
13183
  'appLogDirectory': string;
13184
+ /**
13185
+ * Architecture of the OS that the RVM is running on. One of `arm64`, `x86`, `x64`. Available since RVM 16.
13186
+ */
13187
+ 'osArch': string;
13181
13188
  /**
13182
13189
  * The path of OpenfinRVM.exe.
13183
13190
  */
13184
13191
  'path': string;
13185
13192
  /**
13186
- * The start time of RVM.
13193
+ * Process architecture of the RVM. One of `arm64`, `x86`, `x64`. Available since RVM 16.
13194
+ */
13195
+ 'rvmArch': string;
13196
+ /**
13197
+ * The start time of RVM. Format is `YYYY-MM-DD HH:MM:SS` in local time or `NA` on error.
13187
13198
  */
13188
13199
  'start-time': string;
13189
13200
  /**
@@ -10003,6 +10003,9 @@ declare type PerDomainSettings = {
10003
10003
  * {@inheritdoc ChromiumPolicies}
10004
10004
  */
10005
10005
  chromiumPolicies?: ChromiumPolicies;
10006
+ /**
10007
+ * @experimental These features are still under development and may change.
10008
+ */
10006
10009
  contentProtection?: {
10007
10010
  /**
10008
10011
  * {@inheritdoc ScreenCaptureBehavior}
@@ -13178,12 +13181,20 @@ declare type RVMInfo = {
13178
13181
  * The app log directory.
13179
13182
  */
13180
13183
  'appLogDirectory': string;
13184
+ /**
13185
+ * Architecture of the OS that the RVM is running on. One of `arm64`, `x86`, `x64`. Available since RVM 16.
13186
+ */
13187
+ 'osArch': string;
13181
13188
  /**
13182
13189
  * The path of OpenfinRVM.exe.
13183
13190
  */
13184
13191
  'path': string;
13185
13192
  /**
13186
- * The start time of RVM.
13193
+ * Process architecture of the RVM. One of `arm64`, `x86`, `x64`. Available since RVM 16.
13194
+ */
13195
+ 'rvmArch': string;
13196
+ /**
13197
+ * The start time of RVM. Format is `YYYY-MM-DD HH:MM:SS` in local time or `NA` on error.
13187
13198
  */
13188
13199
  'start-time': string;
13189
13200
  /**
@@ -10003,6 +10003,9 @@ declare type PerDomainSettings = {
10003
10003
  * {@inheritdoc ChromiumPolicies}
10004
10004
  */
10005
10005
  chromiumPolicies?: ChromiumPolicies;
10006
+ /**
10007
+ * @experimental These features are still under development and may change.
10008
+ */
10006
10009
  contentProtection?: {
10007
10010
  /**
10008
10011
  * {@inheritdoc ScreenCaptureBehavior}
@@ -13178,12 +13181,20 @@ declare type RVMInfo = {
13178
13181
  * The app log directory.
13179
13182
  */
13180
13183
  'appLogDirectory': string;
13184
+ /**
13185
+ * Architecture of the OS that the RVM is running on. One of `arm64`, `x86`, `x64`. Available since RVM 16.
13186
+ */
13187
+ 'osArch': string;
13181
13188
  /**
13182
13189
  * The path of OpenfinRVM.exe.
13183
13190
  */
13184
13191
  'path': string;
13185
13192
  /**
13186
- * The start time of RVM.
13193
+ * Process architecture of the RVM. One of `arm64`, `x86`, `x64`. Available since RVM 16.
13194
+ */
13195
+ 'rvmArch': string;
13196
+ /**
13197
+ * The start time of RVM. Format is `YYYY-MM-DD HH:MM:SS` in local time or `NA` on error.
13187
13198
  */
13188
13199
  'start-time': string;
13189
13200
  /**
package/out/stub.d.ts CHANGED
@@ -10321,6 +10321,9 @@ declare type PerDomainSettings = {
10321
10321
  * {@inheritdoc ChromiumPolicies}
10322
10322
  */
10323
10323
  chromiumPolicies?: ChromiumPolicies;
10324
+ /**
10325
+ * @experimental These features are still under development and may change.
10326
+ */
10324
10327
  contentProtection?: {
10325
10328
  /**
10326
10329
  * {@inheritdoc ScreenCaptureBehavior}
@@ -13579,12 +13582,20 @@ declare type RVMInfo = {
13579
13582
  * The app log directory.
13580
13583
  */
13581
13584
  'appLogDirectory': string;
13585
+ /**
13586
+ * Architecture of the OS that the RVM is running on. One of `arm64`, `x86`, `x64`. Available since RVM 16.
13587
+ */
13588
+ 'osArch': string;
13582
13589
  /**
13583
13590
  * The path of OpenfinRVM.exe.
13584
13591
  */
13585
13592
  'path': string;
13586
13593
  /**
13587
- * The start time of RVM.
13594
+ * Process architecture of the RVM. One of `arm64`, `x86`, `x64`. Available since RVM 16.
13595
+ */
13596
+ 'rvmArch': string;
13597
+ /**
13598
+ * The start time of RVM. Format is `YYYY-MM-DD HH:MM:SS` in local time or `NA` on error.
13588
13599
  */
13589
13600
  'start-time': string;
13590
13601
  /**
package/out/stub.js CHANGED
@@ -7384,9 +7384,9 @@ class ChannelBase {
7384
7384
  }
7385
7385
  async processAction(topic, payload, senderIdentity) {
7386
7386
  try {
7387
- const mainAction = this.subscriptions.has(topic)
7388
- ? this.subscriptions.get(topic)
7389
- : (currentPayload, id) => (this.defaultAction ?? ChannelBase.defaultAction)(topic, currentPayload, id);
7387
+ const registeredAction = this.subscriptions.get(topic);
7388
+ const defaultAction = (currentPayload, id) => (this.defaultAction ?? ChannelBase.defaultAction)(topic, currentPayload, id);
7389
+ const mainAction = registeredAction ?? defaultAction;
7390
7390
  const preActionProcessed = this.preAction ? await this.preAction(topic, payload, senderIdentity) : payload;
7391
7391
  const actionProcessed = await mainAction(preActionProcessed, senderIdentity);
7392
7392
  return this.postAction ? await this.postAction(topic, actionProcessed, senderIdentity) : actionProcessed;
@@ -14902,7 +14902,9 @@ function requireInteropBroker () {
14902
14902
  });
14903
14903
  channel.afterAction((action, payload, clientIdentity) => {
14904
14904
  if (this.logging?.afterAction?.enabled) {
14905
- console.log(action, payload, clientIdentity);
14905
+ // afterAction can result in payload being undefined
14906
+ const logArgs = payload ? [action, payload, clientIdentity] : [action, clientIdentity];
14907
+ console.log(...logArgs);
14906
14908
  }
14907
14909
  });
14908
14910
  // Client functions
@@ -16851,49 +16853,42 @@ function requireInteropClient () {
16851
16853
  return InteropClient;
16852
16854
  }
16853
16855
 
16854
- var overrideCheck = {};
16855
-
16856
- var hasRequiredOverrideCheck;
16856
+ var overrideCheck$1 = {};
16857
16857
 
16858
- function requireOverrideCheck () {
16859
- if (hasRequiredOverrideCheck) return overrideCheck;
16860
- hasRequiredOverrideCheck = 1;
16861
- Object.defineProperty(overrideCheck, "__esModule", { value: true });
16862
- overrideCheck.overrideCheck = overrideCheck.checkFDC32Overrides = overrideCheck.getDefaultViewFdc3VersionFromAppInfo = void 0;
16863
- const InteropBroker_1 = requireInteropBroker();
16864
- function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
16865
- const setVersion = manifest?.platform?.defaultViewOptions?.fdc3InteropApi ?? initialOptions.defaultViewOptions?.fdc3InteropApi;
16866
- return ['1.2', '2.0'].includes(setVersion ?? '') ? setVersion : undefined;
16867
- }
16868
- overrideCheck.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
16869
- function checkFDC32Overrides(overriddenBroker) {
16870
- // These are the APIs that must be overridden for FDC3 2.0 compliance
16871
- const mustOverrideAPIs = [
16872
- 'fdc3HandleFindInstances',
16873
- 'handleInfoForIntent',
16874
- 'handleInfoForIntentsByContext',
16875
- 'fdc3HandleGetAppMetadata',
16876
- 'fdc3HandleGetInfo',
16877
- 'fdc3HandleOpen',
16878
- 'handleFiredIntent',
16879
- 'handleFiredIntentForContext'
16880
- ];
16881
- return mustOverrideAPIs.filter((api) => {
16882
- return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
16883
- });
16884
- }
16885
- overrideCheck.checkFDC32Overrides = checkFDC32Overrides;
16886
- function overrideCheck$1(overriddenBroker, fdc3InteropApi) {
16887
- if (fdc3InteropApi && fdc3InteropApi === '2.0') {
16888
- const notOverridden = checkFDC32Overrides(overriddenBroker);
16889
- if (notOverridden.length > 0) {
16890
- 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')}`);
16891
- }
16892
- }
16893
- }
16894
- overrideCheck.overrideCheck = overrideCheck$1;
16895
- return overrideCheck;
16858
+ Object.defineProperty(overrideCheck$1, "__esModule", { value: true });
16859
+ overrideCheck$1.overrideCheck = overrideCheck$1.checkFDC32Overrides = overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = void 0;
16860
+ const InteropBroker_1 = requireInteropBroker();
16861
+ function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
16862
+ const setVersion = manifest?.platform?.defaultViewOptions?.fdc3InteropApi ?? initialOptions.defaultViewOptions?.fdc3InteropApi;
16863
+ return ['1.2', '2.0'].includes(setVersion ?? '') ? setVersion : undefined;
16864
+ }
16865
+ overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
16866
+ function checkFDC32Overrides(overriddenBroker) {
16867
+ // These are the APIs that must be overridden for FDC3 2.0 compliance
16868
+ const mustOverrideAPIs = [
16869
+ 'fdc3HandleFindInstances',
16870
+ 'handleInfoForIntent',
16871
+ 'handleInfoForIntentsByContext',
16872
+ 'fdc3HandleGetAppMetadata',
16873
+ 'fdc3HandleGetInfo',
16874
+ 'fdc3HandleOpen',
16875
+ 'handleFiredIntent',
16876
+ 'handleFiredIntentForContext'
16877
+ ];
16878
+ return mustOverrideAPIs.filter((api) => {
16879
+ return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
16880
+ });
16881
+ }
16882
+ overrideCheck$1.checkFDC32Overrides = checkFDC32Overrides;
16883
+ function overrideCheck(overriddenBroker, fdc3InteropApi) {
16884
+ if (fdc3InteropApi && fdc3InteropApi === '2.0') {
16885
+ const notOverridden = checkFDC32Overrides(overriddenBroker);
16886
+ if (notOverridden.length > 0) {
16887
+ 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')}`);
16888
+ }
16889
+ }
16896
16890
  }
16891
+ overrideCheck$1.overrideCheck = overrideCheck;
16897
16892
 
16898
16893
  var hasRequiredFactory;
16899
16894
 
@@ -16910,7 +16905,7 @@ function requireFactory () {
16910
16905
  const base_1 = base;
16911
16906
  const InteropBroker_1 = requireInteropBroker();
16912
16907
  const InteropClient_1 = requireInteropClient();
16913
- const overrideCheck_1 = requireOverrideCheck();
16908
+ const overrideCheck_1 = overrideCheck$1;
16914
16909
  const common_utils_1 = commonUtils;
16915
16910
  const defaultOverride = (Class) => new Class();
16916
16911
  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": "40.104.5",
3
+ "version": "40.104.7",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/stub.js",
@@ -35,6 +35,7 @@
35
35
  "author": "OpenFin",
36
36
  "dependencies": {
37
37
  "@types/node": "^20.14.2",
38
+ "events": "^3.0.0",
38
39
  "lodash": "^4.17.21",
39
40
  "ws": "^7.3.0"
40
41
  }