@openfin/core 41.100.116 → 41.100.118

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.
@@ -3469,11 +3469,14 @@ declare type ConstViewOptions = {
3469
3469
  * The identity of the window this view should be attached to.
3470
3470
  */
3471
3471
  target: Identity_4;
3472
+ /**
3473
+ * Controls order of title precedence:
3474
+ * 'options': viewOptions.title (componentState), document.title, viewOptions.url
3475
+ * 'document': document.title, viewOptions.title(componentState), viewOptions.url (default behavior)
3476
+ */
3477
+ titlePriority?: ViewTitlePriority;
3472
3478
  /**
3473
3479
  * Defaults to `name`.
3474
- * Ignored in container, but used in @openfin/core-web to set tab titles.
3475
- * Order of precedence for title in container is: document.title, viewOptions.url.
3476
- * Order of precedence for title in @openfin/core-web is ComponentConfig.title, viewOptions.title, viewOptions.url.
3477
3480
  */
3478
3481
  title: string;
3479
3482
  /**
@@ -9562,6 +9565,7 @@ declare namespace OpenFin_2 {
9562
9565
  ViewCreationOptions,
9563
9566
  MutableViewOptions,
9564
9567
  ViewOptions,
9568
+ ViewTitlePriority,
9565
9569
  ConstViewOptions,
9566
9570
  ViewState,
9567
9571
  ViewCreationSuccess,
@@ -10070,6 +10074,9 @@ declare type PerDomainSettings = {
10070
10074
  * {@inheritdoc DomainSettingsPreloadScripts}
10071
10075
  */
10072
10076
  preloadScripts?: DomainSettingsPreloadScripts;
10077
+ /**
10078
+ * @experimental These features are still under development and may change.
10079
+ */
10073
10080
  contentProtection?: {
10074
10081
  /**
10075
10082
  * {@inheritdoc ScreenCaptureBehavior}
@@ -13259,12 +13266,20 @@ declare type RVMInfo = {
13259
13266
  * The app log directory.
13260
13267
  */
13261
13268
  'appLogDirectory': string;
13269
+ /**
13270
+ * Architecture of the OS that the RVM is running on. One of `arm64`, `x86`, `x64`. Available since RVM 16.
13271
+ */
13272
+ 'osArch': string;
13262
13273
  /**
13263
13274
  * The path of OpenfinRVM.exe.
13264
13275
  */
13265
13276
  'path': string;
13266
13277
  /**
13267
- * The start time of RVM.
13278
+ * Process architecture of the RVM. One of `arm64`, `x86`, `x64`. Available since RVM 16.
13279
+ */
13280
+ 'rvmArch': string;
13281
+ /**
13282
+ * The start time of RVM. Format is `YYYY-MM-DD HH:MM:SS` in local time or `NA` on error.
13268
13283
  */
13269
13284
  'start-time': string;
13270
13285
  /**
@@ -16594,6 +16609,12 @@ declare interface ViewStatuses {
16594
16609
  */
16595
16610
  declare type ViewThrottling = 'enabled' | 'scheduler-disabled';
16596
16611
 
16612
+ /**
16613
+ * Precedence for view tab title
16614
+ * @interface
16615
+ */
16616
+ declare type ViewTitlePriority = 'document' | 'options';
16617
+
16597
16618
  /**
16598
16619
  * Configuration for view visibility settings
16599
16620
  *
@@ -3469,11 +3469,14 @@ declare type ConstViewOptions = {
3469
3469
  * The identity of the window this view should be attached to.
3470
3470
  */
3471
3471
  target: Identity_4;
3472
+ /**
3473
+ * Controls order of title precedence:
3474
+ * 'options': viewOptions.title (componentState), document.title, viewOptions.url
3475
+ * 'document': document.title, viewOptions.title(componentState), viewOptions.url (default behavior)
3476
+ */
3477
+ titlePriority?: ViewTitlePriority;
3472
3478
  /**
3473
3479
  * Defaults to `name`.
3474
- * Ignored in container, but used in @openfin/core-web to set tab titles.
3475
- * Order of precedence for title in container is: document.title, viewOptions.url.
3476
- * Order of precedence for title in @openfin/core-web is ComponentConfig.title, viewOptions.title, viewOptions.url.
3477
3480
  */
3478
3481
  title: string;
3479
3482
  /**
@@ -9562,6 +9565,7 @@ declare namespace OpenFin_2 {
9562
9565
  ViewCreationOptions,
9563
9566
  MutableViewOptions,
9564
9567
  ViewOptions,
9568
+ ViewTitlePriority,
9565
9569
  ConstViewOptions,
9566
9570
  ViewState,
9567
9571
  ViewCreationSuccess,
@@ -10070,6 +10074,9 @@ declare type PerDomainSettings = {
10070
10074
  * {@inheritdoc DomainSettingsPreloadScripts}
10071
10075
  */
10072
10076
  preloadScripts?: DomainSettingsPreloadScripts;
10077
+ /**
10078
+ * @experimental These features are still under development and may change.
10079
+ */
10073
10080
  contentProtection?: {
10074
10081
  /**
10075
10082
  * {@inheritdoc ScreenCaptureBehavior}
@@ -13259,12 +13266,20 @@ declare type RVMInfo = {
13259
13266
  * The app log directory.
13260
13267
  */
13261
13268
  'appLogDirectory': string;
13269
+ /**
13270
+ * Architecture of the OS that the RVM is running on. One of `arm64`, `x86`, `x64`. Available since RVM 16.
13271
+ */
13272
+ 'osArch': string;
13262
13273
  /**
13263
13274
  * The path of OpenfinRVM.exe.
13264
13275
  */
13265
13276
  'path': string;
13266
13277
  /**
13267
- * The start time of RVM.
13278
+ * Process architecture of the RVM. One of `arm64`, `x86`, `x64`. Available since RVM 16.
13279
+ */
13280
+ 'rvmArch': string;
13281
+ /**
13282
+ * The start time of RVM. Format is `YYYY-MM-DD HH:MM:SS` in local time or `NA` on error.
13268
13283
  */
13269
13284
  'start-time': string;
13270
13285
  /**
@@ -16594,6 +16609,12 @@ declare interface ViewStatuses {
16594
16609
  */
16595
16610
  declare type ViewThrottling = 'enabled' | 'scheduler-disabled';
16596
16611
 
16612
+ /**
16613
+ * Precedence for view tab title
16614
+ * @interface
16615
+ */
16616
+ declare type ViewTitlePriority = 'document' | 'options';
16617
+
16597
16618
  /**
16598
16619
  * Configuration for view visibility settings
16599
16620
  *
@@ -3469,11 +3469,14 @@ declare type ConstViewOptions = {
3469
3469
  * The identity of the window this view should be attached to.
3470
3470
  */
3471
3471
  target: Identity_4;
3472
+ /**
3473
+ * Controls order of title precedence:
3474
+ * 'options': viewOptions.title (componentState), document.title, viewOptions.url
3475
+ * 'document': document.title, viewOptions.title(componentState), viewOptions.url (default behavior)
3476
+ */
3477
+ titlePriority?: ViewTitlePriority;
3472
3478
  /**
3473
3479
  * Defaults to `name`.
3474
- * Ignored in container, but used in @openfin/core-web to set tab titles.
3475
- * Order of precedence for title in container is: document.title, viewOptions.url.
3476
- * Order of precedence for title in @openfin/core-web is ComponentConfig.title, viewOptions.title, viewOptions.url.
3477
3480
  */
3478
3481
  title: string;
3479
3482
  /**
@@ -9562,6 +9565,7 @@ declare namespace OpenFin_2 {
9562
9565
  ViewCreationOptions,
9563
9566
  MutableViewOptions,
9564
9567
  ViewOptions,
9568
+ ViewTitlePriority,
9565
9569
  ConstViewOptions,
9566
9570
  ViewState,
9567
9571
  ViewCreationSuccess,
@@ -10070,6 +10074,9 @@ declare type PerDomainSettings = {
10070
10074
  * {@inheritdoc DomainSettingsPreloadScripts}
10071
10075
  */
10072
10076
  preloadScripts?: DomainSettingsPreloadScripts;
10077
+ /**
10078
+ * @experimental These features are still under development and may change.
10079
+ */
10073
10080
  contentProtection?: {
10074
10081
  /**
10075
10082
  * {@inheritdoc ScreenCaptureBehavior}
@@ -13259,12 +13266,20 @@ declare type RVMInfo = {
13259
13266
  * The app log directory.
13260
13267
  */
13261
13268
  'appLogDirectory': string;
13269
+ /**
13270
+ * Architecture of the OS that the RVM is running on. One of `arm64`, `x86`, `x64`. Available since RVM 16.
13271
+ */
13272
+ 'osArch': string;
13262
13273
  /**
13263
13274
  * The path of OpenfinRVM.exe.
13264
13275
  */
13265
13276
  'path': string;
13266
13277
  /**
13267
- * The start time of RVM.
13278
+ * Process architecture of the RVM. One of `arm64`, `x86`, `x64`. Available since RVM 16.
13279
+ */
13280
+ 'rvmArch': string;
13281
+ /**
13282
+ * The start time of RVM. Format is `YYYY-MM-DD HH:MM:SS` in local time or `NA` on error.
13268
13283
  */
13269
13284
  'start-time': string;
13270
13285
  /**
@@ -16594,6 +16609,12 @@ declare interface ViewStatuses {
16594
16609
  */
16595
16610
  declare type ViewThrottling = 'enabled' | 'scheduler-disabled';
16596
16611
 
16612
+ /**
16613
+ * Precedence for view tab title
16614
+ * @interface
16615
+ */
16616
+ declare type ViewTitlePriority = 'document' | 'options';
16617
+
16597
16618
  /**
16598
16619
  * Configuration for view visibility settings
16599
16620
  *
package/out/stub.d.ts CHANGED
@@ -3528,11 +3528,14 @@ declare type ConstViewOptions = {
3528
3528
  * The identity of the window this view should be attached to.
3529
3529
  */
3530
3530
  target: Identity_4;
3531
+ /**
3532
+ * Controls order of title precedence:
3533
+ * 'options': viewOptions.title (componentState), document.title, viewOptions.url
3534
+ * 'document': document.title, viewOptions.title(componentState), viewOptions.url (default behavior)
3535
+ */
3536
+ titlePriority?: ViewTitlePriority;
3531
3537
  /**
3532
3538
  * Defaults to `name`.
3533
- * Ignored in container, but used in @openfin/core-web to set tab titles.
3534
- * Order of precedence for title in container is: document.title, viewOptions.url.
3535
- * Order of precedence for title in @openfin/core-web is ComponentConfig.title, viewOptions.title, viewOptions.url.
3536
3539
  */
3537
3540
  title: string;
3538
3541
  /**
@@ -9880,6 +9883,7 @@ declare namespace OpenFin_2 {
9880
9883
  ViewCreationOptions,
9881
9884
  MutableViewOptions,
9882
9885
  ViewOptions,
9886
+ ViewTitlePriority,
9883
9887
  ConstViewOptions,
9884
9888
  ViewState,
9885
9889
  ViewCreationSuccess,
@@ -10388,6 +10392,9 @@ declare type PerDomainSettings = {
10388
10392
  * {@inheritdoc DomainSettingsPreloadScripts}
10389
10393
  */
10390
10394
  preloadScripts?: DomainSettingsPreloadScripts;
10395
+ /**
10396
+ * @experimental These features are still under development and may change.
10397
+ */
10391
10398
  contentProtection?: {
10392
10399
  /**
10393
10400
  * {@inheritdoc ScreenCaptureBehavior}
@@ -13660,12 +13667,20 @@ declare type RVMInfo = {
13660
13667
  * The app log directory.
13661
13668
  */
13662
13669
  'appLogDirectory': string;
13670
+ /**
13671
+ * Architecture of the OS that the RVM is running on. One of `arm64`, `x86`, `x64`. Available since RVM 16.
13672
+ */
13673
+ 'osArch': string;
13663
13674
  /**
13664
13675
  * The path of OpenfinRVM.exe.
13665
13676
  */
13666
13677
  'path': string;
13667
13678
  /**
13668
- * The start time of RVM.
13679
+ * Process architecture of the RVM. One of `arm64`, `x86`, `x64`. Available since RVM 16.
13680
+ */
13681
+ 'rvmArch': string;
13682
+ /**
13683
+ * The start time of RVM. Format is `YYYY-MM-DD HH:MM:SS` in local time or `NA` on error.
13669
13684
  */
13670
13685
  'start-time': string;
13671
13686
  /**
@@ -17045,6 +17060,12 @@ declare interface ViewStatuses {
17045
17060
  */
17046
17061
  declare type ViewThrottling = 'enabled' | 'scheduler-disabled';
17047
17062
 
17063
+ /**
17064
+ * Precedence for view tab title
17065
+ * @interface
17066
+ */
17067
+ declare type ViewTitlePriority = 'document' | 'options';
17068
+
17048
17069
  /**
17049
17070
  * Configuration for view visibility settings
17050
17071
  *
package/out/stub.js CHANGED
@@ -7390,9 +7390,9 @@ class ChannelBase {
7390
7390
  }
7391
7391
  async processAction(topic, payload, senderIdentity) {
7392
7392
  try {
7393
- const mainAction = this.subscriptions.has(topic)
7394
- ? this.subscriptions.get(topic)
7395
- : (currentPayload, id) => (this.defaultAction ?? ChannelBase.defaultAction)(topic, currentPayload, id);
7393
+ const registeredAction = this.subscriptions.get(topic);
7394
+ const defaultAction = (currentPayload, id) => (this.defaultAction ?? ChannelBase.defaultAction)(topic, currentPayload, id);
7395
+ const mainAction = registeredAction ?? defaultAction;
7396
7396
  const preActionProcessed = this.preAction ? await this.preAction(topic, payload, senderIdentity) : payload;
7397
7397
  const actionProcessed = await mainAction(preActionProcessed, senderIdentity);
7398
7398
  return this.postAction ? await this.postAction(topic, actionProcessed, senderIdentity) : actionProcessed;
@@ -14890,7 +14890,9 @@ class InteropBroker extends base_1$5.Base {
14890
14890
  });
14891
14891
  channel.afterAction((action, payload, clientIdentity) => {
14892
14892
  if (this.logging?.afterAction?.enabled) {
14893
- console.log(action, payload, clientIdentity);
14893
+ // afterAction can result in payload being undefined
14894
+ const logArgs = payload ? [action, payload, clientIdentity] : [action, clientIdentity];
14895
+ console.log(...logArgs);
14894
14896
  }
14895
14897
  });
14896
14898
  // Client functions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "41.100.116",
3
+ "version": "41.100.118",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/stub.js",