@openfin/core 41.100.104 → 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.
@@ -4493,6 +4493,10 @@ declare type DomainSettings = {
4493
4493
  * more information, see the documentation for the individual properties.
4494
4494
  */
4495
4495
  default?: PerDomainSettings;
4496
+ /**
4497
+ * {@inheritDoc MultipleDomainMatchBehavior}
4498
+ */
4499
+ multipleMatchBehavior?: MultipleDomainMatchBehavior;
4496
4500
  };
4497
4501
 
4498
4502
  /**
@@ -4505,7 +4509,7 @@ declare type DomainSettingsRule = {
4505
4509
  * Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
4506
4510
  * the domain(s) for which the rule applies.
4507
4511
  */
4508
- match?: string[];
4512
+ match: string[];
4509
4513
  /**
4510
4514
  * Settings applied when a webcontents has been navigated to a matched domain.
4511
4515
  */
@@ -4635,6 +4639,12 @@ declare type Dpi = {
4635
4639
  vertical?: number;
4636
4640
  };
4637
4641
 
4642
+ /**
4643
+ * @interface
4644
+ * Controls whether HTML5 dragging for this content is allowed or blocked.
4645
+ */
4646
+ declare type DragBehavior = 'allow' | 'block';
4647
+
4638
4648
  /**
4639
4649
  * Generated when a window has been embedded.
4640
4650
  * @interface
@@ -8902,6 +8912,19 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin_2.MonitorInfo & {
8902
8912
  */
8903
8913
  declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
8904
8914
 
8915
+ /**
8916
+ * Behavior for handling multiple {@link DomainSettingsRule} matches.
8917
+ */
8918
+ declare type MultipleDomainMatchBehavior =
8919
+ /**
8920
+ * Apply only the first matching rule in the list.
8921
+ */
8922
+ 'pick-first'
8923
+ /**
8924
+ * Deep-merge all matching rules in the list, prioritizing earlier matches. Treats arrays as primitives.
8925
+ */
8926
+ | 'deep-merge';
8927
+
8905
8928
  /**
8906
8929
  * @interface
8907
8930
  */
@@ -9646,6 +9669,7 @@ declare namespace OpenFin_2 {
9646
9669
  RuntimeInfo,
9647
9670
  DefaultDomainSettings,
9648
9671
  DefaultDomainSettingsRule,
9672
+ MultipleDomainMatchBehavior,
9649
9673
  DomainSettings,
9650
9674
  ApiInjection,
9651
9675
  DomainApiSettings,
@@ -9657,6 +9681,7 @@ declare namespace OpenFin_2 {
9657
9681
  StructuredContentPermissions,
9658
9682
  ContentPermission,
9659
9683
  ScreenCaptureBehavior,
9684
+ DragBehavior,
9660
9685
  PerDomainSettings,
9661
9686
  CopyPermissions,
9662
9687
  PastePermissions,
@@ -10017,6 +10042,10 @@ declare type PerDomainSettings = {
10017
10042
  */
10018
10043
  clipboard?: ClipboardPermissions;
10019
10044
  };
10045
+ /**
10046
+ * * Controls whether HTML5 dragging for this content is allowed or blocked.
10047
+ */
10048
+ drag?: DragBehavior;
10020
10049
  };
10021
10050
 
10022
10051
  /**
@@ -4493,6 +4493,10 @@ declare type DomainSettings = {
4493
4493
  * more information, see the documentation for the individual properties.
4494
4494
  */
4495
4495
  default?: PerDomainSettings;
4496
+ /**
4497
+ * {@inheritDoc MultipleDomainMatchBehavior}
4498
+ */
4499
+ multipleMatchBehavior?: MultipleDomainMatchBehavior;
4496
4500
  };
4497
4501
 
4498
4502
  /**
@@ -4505,7 +4509,7 @@ declare type DomainSettingsRule = {
4505
4509
  * Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
4506
4510
  * the domain(s) for which the rule applies.
4507
4511
  */
4508
- match?: string[];
4512
+ match: string[];
4509
4513
  /**
4510
4514
  * Settings applied when a webcontents has been navigated to a matched domain.
4511
4515
  */
@@ -4635,6 +4639,12 @@ declare type Dpi = {
4635
4639
  vertical?: number;
4636
4640
  };
4637
4641
 
4642
+ /**
4643
+ * @interface
4644
+ * Controls whether HTML5 dragging for this content is allowed or blocked.
4645
+ */
4646
+ declare type DragBehavior = 'allow' | 'block';
4647
+
4638
4648
  /**
4639
4649
  * Generated when a window has been embedded.
4640
4650
  * @interface
@@ -8902,6 +8912,19 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin_2.MonitorInfo & {
8902
8912
  */
8903
8913
  declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
8904
8914
 
8915
+ /**
8916
+ * Behavior for handling multiple {@link DomainSettingsRule} matches.
8917
+ */
8918
+ declare type MultipleDomainMatchBehavior =
8919
+ /**
8920
+ * Apply only the first matching rule in the list.
8921
+ */
8922
+ 'pick-first'
8923
+ /**
8924
+ * Deep-merge all matching rules in the list, prioritizing earlier matches. Treats arrays as primitives.
8925
+ */
8926
+ | 'deep-merge';
8927
+
8905
8928
  /**
8906
8929
  * @interface
8907
8930
  */
@@ -9646,6 +9669,7 @@ declare namespace OpenFin_2 {
9646
9669
  RuntimeInfo,
9647
9670
  DefaultDomainSettings,
9648
9671
  DefaultDomainSettingsRule,
9672
+ MultipleDomainMatchBehavior,
9649
9673
  DomainSettings,
9650
9674
  ApiInjection,
9651
9675
  DomainApiSettings,
@@ -9657,6 +9681,7 @@ declare namespace OpenFin_2 {
9657
9681
  StructuredContentPermissions,
9658
9682
  ContentPermission,
9659
9683
  ScreenCaptureBehavior,
9684
+ DragBehavior,
9660
9685
  PerDomainSettings,
9661
9686
  CopyPermissions,
9662
9687
  PastePermissions,
@@ -10017,6 +10042,10 @@ declare type PerDomainSettings = {
10017
10042
  */
10018
10043
  clipboard?: ClipboardPermissions;
10019
10044
  };
10045
+ /**
10046
+ * * Controls whether HTML5 dragging for this content is allowed or blocked.
10047
+ */
10048
+ drag?: DragBehavior;
10020
10049
  };
10021
10050
 
10022
10051
  /**
@@ -4493,6 +4493,10 @@ declare type DomainSettings = {
4493
4493
  * more information, see the documentation for the individual properties.
4494
4494
  */
4495
4495
  default?: PerDomainSettings;
4496
+ /**
4497
+ * {@inheritDoc MultipleDomainMatchBehavior}
4498
+ */
4499
+ multipleMatchBehavior?: MultipleDomainMatchBehavior;
4496
4500
  };
4497
4501
 
4498
4502
  /**
@@ -4505,7 +4509,7 @@ declare type DomainSettingsRule = {
4505
4509
  * Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
4506
4510
  * the domain(s) for which the rule applies.
4507
4511
  */
4508
- match?: string[];
4512
+ match: string[];
4509
4513
  /**
4510
4514
  * Settings applied when a webcontents has been navigated to a matched domain.
4511
4515
  */
@@ -4635,6 +4639,12 @@ declare type Dpi = {
4635
4639
  vertical?: number;
4636
4640
  };
4637
4641
 
4642
+ /**
4643
+ * @interface
4644
+ * Controls whether HTML5 dragging for this content is allowed or blocked.
4645
+ */
4646
+ declare type DragBehavior = 'allow' | 'block';
4647
+
4638
4648
  /**
4639
4649
  * Generated when a window has been embedded.
4640
4650
  * @interface
@@ -8902,6 +8912,19 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin_2.MonitorInfo & {
8902
8912
  */
8903
8913
  declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
8904
8914
 
8915
+ /**
8916
+ * Behavior for handling multiple {@link DomainSettingsRule} matches.
8917
+ */
8918
+ declare type MultipleDomainMatchBehavior =
8919
+ /**
8920
+ * Apply only the first matching rule in the list.
8921
+ */
8922
+ 'pick-first'
8923
+ /**
8924
+ * Deep-merge all matching rules in the list, prioritizing earlier matches. Treats arrays as primitives.
8925
+ */
8926
+ | 'deep-merge';
8927
+
8905
8928
  /**
8906
8929
  * @interface
8907
8930
  */
@@ -9646,6 +9669,7 @@ declare namespace OpenFin_2 {
9646
9669
  RuntimeInfo,
9647
9670
  DefaultDomainSettings,
9648
9671
  DefaultDomainSettingsRule,
9672
+ MultipleDomainMatchBehavior,
9649
9673
  DomainSettings,
9650
9674
  ApiInjection,
9651
9675
  DomainApiSettings,
@@ -9657,6 +9681,7 @@ declare namespace OpenFin_2 {
9657
9681
  StructuredContentPermissions,
9658
9682
  ContentPermission,
9659
9683
  ScreenCaptureBehavior,
9684
+ DragBehavior,
9660
9685
  PerDomainSettings,
9661
9686
  CopyPermissions,
9662
9687
  PastePermissions,
@@ -10017,6 +10042,10 @@ declare type PerDomainSettings = {
10017
10042
  */
10018
10043
  clipboard?: ClipboardPermissions;
10019
10044
  };
10045
+ /**
10046
+ * * Controls whether HTML5 dragging for this content is allowed or blocked.
10047
+ */
10048
+ drag?: DragBehavior;
10020
10049
  };
10021
10050
 
10022
10051
  /**
package/out/stub.d.ts CHANGED
@@ -4552,6 +4552,10 @@ declare type DomainSettings = {
4552
4552
  * more information, see the documentation for the individual properties.
4553
4553
  */
4554
4554
  default?: PerDomainSettings;
4555
+ /**
4556
+ * {@inheritDoc MultipleDomainMatchBehavior}
4557
+ */
4558
+ multipleMatchBehavior?: MultipleDomainMatchBehavior;
4555
4559
  };
4556
4560
 
4557
4561
  /**
@@ -4564,7 +4568,7 @@ declare type DomainSettingsRule = {
4564
4568
  * Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns) specifying
4565
4569
  * the domain(s) for which the rule applies.
4566
4570
  */
4567
- match?: string[];
4571
+ match: string[];
4568
4572
  /**
4569
4573
  * Settings applied when a webcontents has been navigated to a matched domain.
4570
4574
  */
@@ -4694,6 +4698,12 @@ declare type Dpi = {
4694
4698
  vertical?: number;
4695
4699
  };
4696
4700
 
4701
+ /**
4702
+ * @interface
4703
+ * Controls whether HTML5 dragging for this content is allowed or blocked.
4704
+ */
4705
+ declare type DragBehavior = 'allow' | 'block';
4706
+
4697
4707
  /**
4698
4708
  * Generated when a window has been embedded.
4699
4709
  * @interface
@@ -9198,6 +9208,19 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin_2.MonitorInfo & {
9198
9208
  */
9199
9209
  declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9200
9210
 
9211
+ /**
9212
+ * Behavior for handling multiple {@link DomainSettingsRule} matches.
9213
+ */
9214
+ declare type MultipleDomainMatchBehavior =
9215
+ /**
9216
+ * Apply only the first matching rule in the list.
9217
+ */
9218
+ 'pick-first'
9219
+ /**
9220
+ * Deep-merge all matching rules in the list, prioritizing earlier matches. Treats arrays as primitives.
9221
+ */
9222
+ | 'deep-merge';
9223
+
9201
9224
  /**
9202
9225
  * @interface
9203
9226
  */
@@ -9964,6 +9987,7 @@ declare namespace OpenFin_2 {
9964
9987
  RuntimeInfo,
9965
9988
  DefaultDomainSettings,
9966
9989
  DefaultDomainSettingsRule,
9990
+ MultipleDomainMatchBehavior,
9967
9991
  DomainSettings,
9968
9992
  ApiInjection,
9969
9993
  DomainApiSettings,
@@ -9975,6 +9999,7 @@ declare namespace OpenFin_2 {
9975
9999
  StructuredContentPermissions,
9976
10000
  ContentPermission,
9977
10001
  ScreenCaptureBehavior,
10002
+ DragBehavior,
9978
10003
  PerDomainSettings,
9979
10004
  CopyPermissions,
9980
10005
  PastePermissions,
@@ -10335,6 +10360,10 @@ declare type PerDomainSettings = {
10335
10360
  */
10336
10361
  clipboard?: ClipboardPermissions;
10337
10362
  };
10363
+ /**
10364
+ * * Controls whether HTML5 dragging for this content is allowed or blocked.
10365
+ */
10366
+ drag?: DragBehavior;
10338
10367
  };
10339
10368
 
10340
10369
  /**
package/out/stub.js CHANGED
@@ -15953,7 +15953,13 @@ PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
15953
15953
  const getResultPromise = new Promise((resolve, reject) => {
15954
15954
  fin.InterApplicationBus.subscribe({ uuid: '*' }, guid, (intentResult) => {
15955
15955
  resolve(intentResult);
15956
- }).catch(() => reject(new Error('getResult is not supported in this environment')));
15956
+ }).catch(() => {
15957
+ // not supported in web, suppress the error
15958
+ if (interopModule.wire.environment.type === 'other') {
15959
+ resolve(undefined);
15960
+ }
15961
+ reject(new Error('getResult is not supported in this environment'));
15962
+ });
15957
15963
  });
15958
15964
  // Adding the intentResolutionResultId to the intentObj. Because fireIntent only accepts a single arg, we have to slap it in here.
15959
15965
  const metadata = app ? { target: app, intentResolutionResultId: guid } : { intentResolutionResultId: guid };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "41.100.104",
3
+ "version": "41.100.106",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/stub.js",