@openfin/fdc3-api 41.100.105 → 41.100.106

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.
@@ -4490,6 +4490,10 @@ declare type DomainSettings = {
4490
4490
  * more information, see the documentation for the individual properties.
4491
4491
  */
4492
4492
  default?: PerDomainSettings;
4493
+ /**
4494
+ * {@inheritDoc MultipleDomainMatchBehavior}
4495
+ */
4496
+ multipleMatchBehavior?: MultipleDomainMatchBehavior;
4493
4497
  };
4494
4498
 
4495
4499
  /**
@@ -4502,7 +4506,7 @@ declare type DomainSettingsRule = {
4502
4506
  * Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
4503
4507
  * the domain(s) for which the rule applies.
4504
4508
  */
4505
- match?: string[];
4509
+ match: string[];
4506
4510
  /**
4507
4511
  * Settings applied when a webcontents has been navigated to a matched domain.
4508
4512
  */
@@ -4632,6 +4636,12 @@ declare type Dpi = {
4632
4636
  vertical?: number;
4633
4637
  };
4634
4638
 
4639
+ /**
4640
+ * @interface
4641
+ * Controls whether HTML5 dragging for this content is allowed or blocked.
4642
+ */
4643
+ declare type DragBehavior = 'allow' | 'block';
4644
+
4635
4645
  /**
4636
4646
  * Generated when a window has been embedded.
4637
4647
  * @interface
@@ -9244,6 +9254,19 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
9244
9254
  */
9245
9255
  declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9246
9256
 
9257
+ /**
9258
+ * Behavior for handling multiple {@link DomainSettingsRule} matches.
9259
+ */
9260
+ declare type MultipleDomainMatchBehavior =
9261
+ /**
9262
+ * Apply only the first matching rule in the list.
9263
+ */
9264
+ 'pick-first'
9265
+ /**
9266
+ * Deep-merge all matching rules in the list, prioritizing earlier matches. Treats arrays as primitives.
9267
+ */
9268
+ | 'deep-merge';
9269
+
9247
9270
  /**
9248
9271
  * @interface
9249
9272
  */
@@ -9988,6 +10011,7 @@ declare namespace OpenFin {
9988
10011
  RuntimeInfo,
9989
10012
  DefaultDomainSettings,
9990
10013
  DefaultDomainSettingsRule,
10014
+ MultipleDomainMatchBehavior,
9991
10015
  DomainSettings,
9992
10016
  ApiInjection,
9993
10017
  DomainApiSettings,
@@ -9999,6 +10023,7 @@ declare namespace OpenFin {
9999
10023
  StructuredContentPermissions,
10000
10024
  ContentPermission,
10001
10025
  ScreenCaptureBehavior,
10026
+ DragBehavior,
10002
10027
  PerDomainSettings,
10003
10028
  CopyPermissions,
10004
10029
  PastePermissions,
@@ -10357,6 +10382,10 @@ declare type PerDomainSettings = {
10357
10382
  */
10358
10383
  clipboard?: ClipboardPermissions;
10359
10384
  };
10385
+ /**
10386
+ * * Controls whether HTML5 dragging for this content is allowed or blocked.
10387
+ */
10388
+ drag?: DragBehavior;
10360
10389
  };
10361
10390
 
10362
10391
  /**
@@ -4490,6 +4490,10 @@ declare type DomainSettings = {
4490
4490
  * more information, see the documentation for the individual properties.
4491
4491
  */
4492
4492
  default?: PerDomainSettings;
4493
+ /**
4494
+ * {@inheritDoc MultipleDomainMatchBehavior}
4495
+ */
4496
+ multipleMatchBehavior?: MultipleDomainMatchBehavior;
4493
4497
  };
4494
4498
 
4495
4499
  /**
@@ -4502,7 +4506,7 @@ declare type DomainSettingsRule = {
4502
4506
  * Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
4503
4507
  * the domain(s) for which the rule applies.
4504
4508
  */
4505
- match?: string[];
4509
+ match: string[];
4506
4510
  /**
4507
4511
  * Settings applied when a webcontents has been navigated to a matched domain.
4508
4512
  */
@@ -4632,6 +4636,12 @@ declare type Dpi = {
4632
4636
  vertical?: number;
4633
4637
  };
4634
4638
 
4639
+ /**
4640
+ * @interface
4641
+ * Controls whether HTML5 dragging for this content is allowed or blocked.
4642
+ */
4643
+ declare type DragBehavior = 'allow' | 'block';
4644
+
4635
4645
  /**
4636
4646
  * Generated when a window has been embedded.
4637
4647
  * @interface
@@ -9244,6 +9254,19 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
9244
9254
  */
9245
9255
  declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9246
9256
 
9257
+ /**
9258
+ * Behavior for handling multiple {@link DomainSettingsRule} matches.
9259
+ */
9260
+ declare type MultipleDomainMatchBehavior =
9261
+ /**
9262
+ * Apply only the first matching rule in the list.
9263
+ */
9264
+ 'pick-first'
9265
+ /**
9266
+ * Deep-merge all matching rules in the list, prioritizing earlier matches. Treats arrays as primitives.
9267
+ */
9268
+ | 'deep-merge';
9269
+
9247
9270
  /**
9248
9271
  * @interface
9249
9272
  */
@@ -9988,6 +10011,7 @@ declare namespace OpenFin {
9988
10011
  RuntimeInfo,
9989
10012
  DefaultDomainSettings,
9990
10013
  DefaultDomainSettingsRule,
10014
+ MultipleDomainMatchBehavior,
9991
10015
  DomainSettings,
9992
10016
  ApiInjection,
9993
10017
  DomainApiSettings,
@@ -9999,6 +10023,7 @@ declare namespace OpenFin {
9999
10023
  StructuredContentPermissions,
10000
10024
  ContentPermission,
10001
10025
  ScreenCaptureBehavior,
10026
+ DragBehavior,
10002
10027
  PerDomainSettings,
10003
10028
  CopyPermissions,
10004
10029
  PastePermissions,
@@ -10357,6 +10382,10 @@ declare type PerDomainSettings = {
10357
10382
  */
10358
10383
  clipboard?: ClipboardPermissions;
10359
10384
  };
10385
+ /**
10386
+ * * Controls whether HTML5 dragging for this content is allowed or blocked.
10387
+ */
10388
+ drag?: DragBehavior;
10360
10389
  };
10361
10390
 
10362
10391
  /**
@@ -4490,6 +4490,10 @@ declare type DomainSettings = {
4490
4490
  * more information, see the documentation for the individual properties.
4491
4491
  */
4492
4492
  default?: PerDomainSettings;
4493
+ /**
4494
+ * {@inheritDoc MultipleDomainMatchBehavior}
4495
+ */
4496
+ multipleMatchBehavior?: MultipleDomainMatchBehavior;
4493
4497
  };
4494
4498
 
4495
4499
  /**
@@ -4502,7 +4506,7 @@ declare type DomainSettingsRule = {
4502
4506
  * Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
4503
4507
  * the domain(s) for which the rule applies.
4504
4508
  */
4505
- match?: string[];
4509
+ match: string[];
4506
4510
  /**
4507
4511
  * Settings applied when a webcontents has been navigated to a matched domain.
4508
4512
  */
@@ -4632,6 +4636,12 @@ declare type Dpi = {
4632
4636
  vertical?: number;
4633
4637
  };
4634
4638
 
4639
+ /**
4640
+ * @interface
4641
+ * Controls whether HTML5 dragging for this content is allowed or blocked.
4642
+ */
4643
+ declare type DragBehavior = 'allow' | 'block';
4644
+
4635
4645
  /**
4636
4646
  * Generated when a window has been embedded.
4637
4647
  * @interface
@@ -9244,6 +9254,19 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
9244
9254
  */
9245
9255
  declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9246
9256
 
9257
+ /**
9258
+ * Behavior for handling multiple {@link DomainSettingsRule} matches.
9259
+ */
9260
+ declare type MultipleDomainMatchBehavior =
9261
+ /**
9262
+ * Apply only the first matching rule in the list.
9263
+ */
9264
+ 'pick-first'
9265
+ /**
9266
+ * Deep-merge all matching rules in the list, prioritizing earlier matches. Treats arrays as primitives.
9267
+ */
9268
+ | 'deep-merge';
9269
+
9247
9270
  /**
9248
9271
  * @interface
9249
9272
  */
@@ -9988,6 +10011,7 @@ declare namespace OpenFin {
9988
10011
  RuntimeInfo,
9989
10012
  DefaultDomainSettings,
9990
10013
  DefaultDomainSettingsRule,
10014
+ MultipleDomainMatchBehavior,
9991
10015
  DomainSettings,
9992
10016
  ApiInjection,
9993
10017
  DomainApiSettings,
@@ -9999,6 +10023,7 @@ declare namespace OpenFin {
9999
10023
  StructuredContentPermissions,
10000
10024
  ContentPermission,
10001
10025
  ScreenCaptureBehavior,
10026
+ DragBehavior,
10002
10027
  PerDomainSettings,
10003
10028
  CopyPermissions,
10004
10029
  PastePermissions,
@@ -10357,6 +10382,10 @@ declare type PerDomainSettings = {
10357
10382
  */
10358
10383
  clipboard?: ClipboardPermissions;
10359
10384
  };
10385
+ /**
10386
+ * * Controls whether HTML5 dragging for this content is allowed or blocked.
10387
+ */
10388
+ drag?: DragBehavior;
10360
10389
  };
10361
10390
 
10362
10391
  /**
package/out/fdc3-api.d.ts CHANGED
@@ -4549,6 +4549,10 @@ declare type DomainSettings = {
4549
4549
  * more information, see the documentation for the individual properties.
4550
4550
  */
4551
4551
  default?: PerDomainSettings;
4552
+ /**
4553
+ * {@inheritDoc MultipleDomainMatchBehavior}
4554
+ */
4555
+ multipleMatchBehavior?: MultipleDomainMatchBehavior;
4552
4556
  };
4553
4557
 
4554
4558
  /**
@@ -4561,7 +4565,7 @@ declare type DomainSettingsRule = {
4561
4565
  * Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
4562
4566
  * the domain(s) for which the rule applies.
4563
4567
  */
4564
- match?: string[];
4568
+ match: string[];
4565
4569
  /**
4566
4570
  * Settings applied when a webcontents has been navigated to a matched domain.
4567
4571
  */
@@ -4691,6 +4695,12 @@ declare type Dpi = {
4691
4695
  vertical?: number;
4692
4696
  };
4693
4697
 
4698
+ /**
4699
+ * @interface
4700
+ * Controls whether HTML5 dragging for this content is allowed or blocked.
4701
+ */
4702
+ declare type DragBehavior = 'allow' | 'block';
4703
+
4694
4704
  /**
4695
4705
  * Generated when a window has been embedded.
4696
4706
  * @interface
@@ -9540,6 +9550,19 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
9540
9550
  */
9541
9551
  declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9542
9552
 
9553
+ /**
9554
+ * Behavior for handling multiple {@link DomainSettingsRule} matches.
9555
+ */
9556
+ declare type MultipleDomainMatchBehavior =
9557
+ /**
9558
+ * Apply only the first matching rule in the list.
9559
+ */
9560
+ 'pick-first'
9561
+ /**
9562
+ * Deep-merge all matching rules in the list, prioritizing earlier matches. Treats arrays as primitives.
9563
+ */
9564
+ | 'deep-merge';
9565
+
9543
9566
  /**
9544
9567
  * @interface
9545
9568
  */
@@ -10306,6 +10329,7 @@ declare namespace OpenFin {
10306
10329
  RuntimeInfo,
10307
10330
  DefaultDomainSettings,
10308
10331
  DefaultDomainSettingsRule,
10332
+ MultipleDomainMatchBehavior,
10309
10333
  DomainSettings,
10310
10334
  ApiInjection,
10311
10335
  DomainApiSettings,
@@ -10317,6 +10341,7 @@ declare namespace OpenFin {
10317
10341
  StructuredContentPermissions,
10318
10342
  ContentPermission,
10319
10343
  ScreenCaptureBehavior,
10344
+ DragBehavior,
10320
10345
  PerDomainSettings,
10321
10346
  CopyPermissions,
10322
10347
  PastePermissions,
@@ -10675,6 +10700,10 @@ declare type PerDomainSettings = {
10675
10700
  */
10676
10701
  clipboard?: ClipboardPermissions;
10677
10702
  };
10703
+ /**
10704
+ * * Controls whether HTML5 dragging for this content is allowed or blocked.
10705
+ */
10706
+ drag?: DragBehavior;
10678
10707
  };
10679
10708
 
10680
10709
  /**
package/out/fdc3-api.js CHANGED
@@ -391,7 +391,13 @@ PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
391
391
  const getResultPromise = new Promise((resolve, reject) => {
392
392
  fin.InterApplicationBus.subscribe({ uuid: '*' }, guid, (intentResult) => {
393
393
  resolve(intentResult);
394
- }).catch(() => reject(new Error('getResult is not supported in this environment')));
394
+ }).catch(() => {
395
+ // not supported in web, suppress the error
396
+ if (interopModule.wire.environment.type === 'other') {
397
+ resolve(undefined);
398
+ }
399
+ reject(new Error('getResult is not supported in this environment'));
400
+ });
395
401
  });
396
402
  // Adding the intentResolutionResultId to the intentObj. Because fireIntent only accepts a single arg, we have to slap it in here.
397
403
  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": "41.100.105",
3
+ "version": "41.100.106",
4
4
  "description": "OpenFin fdc3 module utilities and types.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,