@openfin/fdc3-api 40.103.4 → 40.103.5

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.
@@ -4483,6 +4483,10 @@ declare type DomainSettings = {
4483
4483
  * more information, see the documentation for the individual properties.
4484
4484
  */
4485
4485
  default?: PerDomainSettings;
4486
+ /**
4487
+ * {@inheritDoc MultipleDomainMatchBehavior}
4488
+ */
4489
+ multipleMatchBehavior?: MultipleDomainMatchBehavior;
4486
4490
  };
4487
4491
 
4488
4492
  /**
@@ -4495,7 +4499,7 @@ declare type DomainSettingsRule = {
4495
4499
  * Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
4496
4500
  * the domain(s) for which the rule applies.
4497
4501
  */
4498
- match?: string[];
4502
+ match: string[];
4499
4503
  /**
4500
4504
  * Settings applied when a webcontents has been navigated to a matched domain.
4501
4505
  */
@@ -9206,6 +9210,19 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
9206
9210
  */
9207
9211
  declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9208
9212
 
9213
+ /**
9214
+ * Behavior for handling multiple {@link DomainSettingsRule} matches.
9215
+ */
9216
+ declare type MultipleDomainMatchBehavior =
9217
+ /**
9218
+ * Apply only the first matching rule in the list.
9219
+ */
9220
+ 'pick-first'
9221
+ /**
9222
+ * Deep-merge all matching rules in the list, prioritizing earlier matches. Treats arrays as primitives.
9223
+ */
9224
+ | 'deep-merge';
9225
+
9209
9226
  /**
9210
9227
  * @interface
9211
9228
  */
@@ -9946,6 +9963,7 @@ declare namespace OpenFin {
9946
9963
  RuntimeInfo,
9947
9964
  DefaultDomainSettings,
9948
9965
  DefaultDomainSettingsRule,
9966
+ MultipleDomainMatchBehavior,
9949
9967
  DomainSettings,
9950
9968
  ApiInjection,
9951
9969
  DomainApiSettings,
@@ -10309,7 +10327,7 @@ declare type PerDomainSettings = {
10309
10327
  /**
10310
10328
  * {@inheritdoc ScreenCaptureBehavior}
10311
10329
  */
10312
- screenCapture: ScreenCaptureBehavior;
10330
+ screenCapture?: ScreenCaptureBehavior;
10313
10331
  /**
10314
10332
  * {@inheritdoc ClipboardPermissions}
10315
10333
  */
@@ -4483,6 +4483,10 @@ declare type DomainSettings = {
4483
4483
  * more information, see the documentation for the individual properties.
4484
4484
  */
4485
4485
  default?: PerDomainSettings;
4486
+ /**
4487
+ * {@inheritDoc MultipleDomainMatchBehavior}
4488
+ */
4489
+ multipleMatchBehavior?: MultipleDomainMatchBehavior;
4486
4490
  };
4487
4491
 
4488
4492
  /**
@@ -4495,7 +4499,7 @@ declare type DomainSettingsRule = {
4495
4499
  * Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
4496
4500
  * the domain(s) for which the rule applies.
4497
4501
  */
4498
- match?: string[];
4502
+ match: string[];
4499
4503
  /**
4500
4504
  * Settings applied when a webcontents has been navigated to a matched domain.
4501
4505
  */
@@ -9206,6 +9210,19 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
9206
9210
  */
9207
9211
  declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9208
9212
 
9213
+ /**
9214
+ * Behavior for handling multiple {@link DomainSettingsRule} matches.
9215
+ */
9216
+ declare type MultipleDomainMatchBehavior =
9217
+ /**
9218
+ * Apply only the first matching rule in the list.
9219
+ */
9220
+ 'pick-first'
9221
+ /**
9222
+ * Deep-merge all matching rules in the list, prioritizing earlier matches. Treats arrays as primitives.
9223
+ */
9224
+ | 'deep-merge';
9225
+
9209
9226
  /**
9210
9227
  * @interface
9211
9228
  */
@@ -9946,6 +9963,7 @@ declare namespace OpenFin {
9946
9963
  RuntimeInfo,
9947
9964
  DefaultDomainSettings,
9948
9965
  DefaultDomainSettingsRule,
9966
+ MultipleDomainMatchBehavior,
9949
9967
  DomainSettings,
9950
9968
  ApiInjection,
9951
9969
  DomainApiSettings,
@@ -10309,7 +10327,7 @@ declare type PerDomainSettings = {
10309
10327
  /**
10310
10328
  * {@inheritdoc ScreenCaptureBehavior}
10311
10329
  */
10312
- screenCapture: ScreenCaptureBehavior;
10330
+ screenCapture?: ScreenCaptureBehavior;
10313
10331
  /**
10314
10332
  * {@inheritdoc ClipboardPermissions}
10315
10333
  */
@@ -4483,6 +4483,10 @@ declare type DomainSettings = {
4483
4483
  * more information, see the documentation for the individual properties.
4484
4484
  */
4485
4485
  default?: PerDomainSettings;
4486
+ /**
4487
+ * {@inheritDoc MultipleDomainMatchBehavior}
4488
+ */
4489
+ multipleMatchBehavior?: MultipleDomainMatchBehavior;
4486
4490
  };
4487
4491
 
4488
4492
  /**
@@ -4495,7 +4499,7 @@ declare type DomainSettingsRule = {
4495
4499
  * Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
4496
4500
  * the domain(s) for which the rule applies.
4497
4501
  */
4498
- match?: string[];
4502
+ match: string[];
4499
4503
  /**
4500
4504
  * Settings applied when a webcontents has been navigated to a matched domain.
4501
4505
  */
@@ -9206,6 +9210,19 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
9206
9210
  */
9207
9211
  declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9208
9212
 
9213
+ /**
9214
+ * Behavior for handling multiple {@link DomainSettingsRule} matches.
9215
+ */
9216
+ declare type MultipleDomainMatchBehavior =
9217
+ /**
9218
+ * Apply only the first matching rule in the list.
9219
+ */
9220
+ 'pick-first'
9221
+ /**
9222
+ * Deep-merge all matching rules in the list, prioritizing earlier matches. Treats arrays as primitives.
9223
+ */
9224
+ | 'deep-merge';
9225
+
9209
9226
  /**
9210
9227
  * @interface
9211
9228
  */
@@ -9946,6 +9963,7 @@ declare namespace OpenFin {
9946
9963
  RuntimeInfo,
9947
9964
  DefaultDomainSettings,
9948
9965
  DefaultDomainSettingsRule,
9966
+ MultipleDomainMatchBehavior,
9949
9967
  DomainSettings,
9950
9968
  ApiInjection,
9951
9969
  DomainApiSettings,
@@ -10309,7 +10327,7 @@ declare type PerDomainSettings = {
10309
10327
  /**
10310
10328
  * {@inheritdoc ScreenCaptureBehavior}
10311
10329
  */
10312
- screenCapture: ScreenCaptureBehavior;
10330
+ screenCapture?: ScreenCaptureBehavior;
10313
10331
  /**
10314
10332
  * {@inheritdoc ClipboardPermissions}
10315
10333
  */
package/out/fdc3-api.d.ts CHANGED
@@ -4542,6 +4542,10 @@ declare type DomainSettings = {
4542
4542
  * more information, see the documentation for the individual properties.
4543
4543
  */
4544
4544
  default?: PerDomainSettings;
4545
+ /**
4546
+ * {@inheritDoc MultipleDomainMatchBehavior}
4547
+ */
4548
+ multipleMatchBehavior?: MultipleDomainMatchBehavior;
4545
4549
  };
4546
4550
 
4547
4551
  /**
@@ -4554,7 +4558,7 @@ declare type DomainSettingsRule = {
4554
4558
  * Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
4555
4559
  * the domain(s) for which the rule applies.
4556
4560
  */
4557
- match?: string[];
4561
+ match: string[];
4558
4562
  /**
4559
4563
  * Settings applied when a webcontents has been navigated to a matched domain.
4560
4564
  */
@@ -9502,6 +9506,19 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
9502
9506
  */
9503
9507
  declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9504
9508
 
9509
+ /**
9510
+ * Behavior for handling multiple {@link DomainSettingsRule} matches.
9511
+ */
9512
+ declare type MultipleDomainMatchBehavior =
9513
+ /**
9514
+ * Apply only the first matching rule in the list.
9515
+ */
9516
+ 'pick-first'
9517
+ /**
9518
+ * Deep-merge all matching rules in the list, prioritizing earlier matches. Treats arrays as primitives.
9519
+ */
9520
+ | 'deep-merge';
9521
+
9505
9522
  /**
9506
9523
  * @interface
9507
9524
  */
@@ -10264,6 +10281,7 @@ declare namespace OpenFin {
10264
10281
  RuntimeInfo,
10265
10282
  DefaultDomainSettings,
10266
10283
  DefaultDomainSettingsRule,
10284
+ MultipleDomainMatchBehavior,
10267
10285
  DomainSettings,
10268
10286
  ApiInjection,
10269
10287
  DomainApiSettings,
@@ -10627,7 +10645,7 @@ declare type PerDomainSettings = {
10627
10645
  /**
10628
10646
  * {@inheritdoc ScreenCaptureBehavior}
10629
10647
  */
10630
- screenCapture: ScreenCaptureBehavior;
10648
+ screenCapture?: ScreenCaptureBehavior;
10631
10649
  /**
10632
10650
  * {@inheritdoc ClipboardPermissions}
10633
10651
  */
package/out/fdc3-api.js CHANGED
@@ -378,7 +378,13 @@ PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
378
378
  const getResultPromise = new Promise((resolve, reject) => {
379
379
  fin.InterApplicationBus.subscribe({ uuid: '*' }, guid, (intentResult) => {
380
380
  resolve(intentResult);
381
- }).catch(() => reject(new Error('getResult is not supported in this environment')));
381
+ }).catch(() => {
382
+ // not supported in web, suppress the error
383
+ if (interopModule.wire.environment.type === 'other') {
384
+ resolve(undefined);
385
+ }
386
+ reject(new Error('getResult is not supported in this environment'));
387
+ });
382
388
  });
383
389
  // Adding the intentResolutionResultId to the intentObj. Because fireIntent only accepts a single arg, we have to slap it in here.
384
390
  const metadata = app ? { target: app, intentResolutionResultId: guid } : { intentResolutionResultId: guid };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/fdc3-api",
3
- "version": "40.103.4",
3
+ "version": "40.103.5",
4
4
  "description": "OpenFin fdc3 module utilities and types.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,