@openfin/node-adapter 34.78.2 → 34.78.3

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.
Files changed (2) hide show
  1. package/out/node-adapter.js +151 -125
  2. package/package.json +1 -1
@@ -909,6 +909,7 @@ function requireFactory$3 () {
909
909
  if (hasRequiredFactory$3) return Factory$6;
910
910
  hasRequiredFactory$3 = 1;
911
911
  Object.defineProperty(Factory$6, "__esModule", { value: true });
912
+ Factory$6.ViewModule = void 0;
912
913
  const base_1 = base;
913
914
  const validate_1 = validate;
914
915
  const index_1 = requireView();
@@ -1047,7 +1048,7 @@ function requireFactory$3 () {
1047
1048
  return this.wrapSync({ uuid, name });
1048
1049
  }
1049
1050
  }
1050
- Factory$6.default = ViewModule;
1051
+ Factory$6.ViewModule = ViewModule;
1051
1052
  return Factory$6;
1052
1053
  }
1053
1054
 
@@ -3619,16 +3620,17 @@ function requireView () {
3619
3620
  };
3620
3621
  Object.defineProperty(exports, "__esModule", { value: true });
3621
3622
  /**
3622
- * Entry point for the OpenFin View namespace.
3623
+ * Entry points for the OpenFin `View` API.
3623
3624
  *
3624
- * Because TypeDoc does not currently support multiple modules with the same name, the module alias "ViewModule" is used for
3625
- * the module containing static members of the `View` namespace (available under `fin.View`), while `View` documents
3626
- * instances of the OpenFin `View` class.
3625
+ * In the previous version of the API documentation, both static methods involving `View` and instance properties of the
3626
+ * `View` type itself were documented on the same page. These are separate code entities, and are now documented separately:
3627
+ *
3628
+ * * {@link ViewModule} contains static methods relating to the `View` type, accessible through `fin.View`.
3629
+ * * {@link View} describes an instance of an OpenFin View, e.g. as returned by `fin.View.getCurrent`.
3627
3630
  *
3628
3631
  * @packageDocumentation
3629
3632
  */
3630
- const Factory_1 = requireFactory$3();
3631
- exports.default = Factory_1.default;
3633
+ __exportStar(requireFactory$3(), exports);
3632
3634
  __exportStar(requireInstance$2(), exports);
3633
3635
  } (view));
3634
3636
  return view;
@@ -4468,6 +4470,7 @@ function requireFactory$2 () {
4468
4470
  if (hasRequiredFactory$2) return Factory$7;
4469
4471
  hasRequiredFactory$2 = 1;
4470
4472
  Object.defineProperty(Factory$7, "__esModule", { value: true });
4473
+ Factory$7.ApplicationModule = void 0;
4471
4474
  const base_1 = base;
4472
4475
  const validate_1 = validate;
4473
4476
  const Instance_1 = requireInstance$1();
@@ -4743,7 +4746,7 @@ function requireFactory$2 () {
4743
4746
  });
4744
4747
  }
4745
4748
  }
4746
- Factory$7.default = ApplicationModule;
4749
+ Factory$7.ApplicationModule = ApplicationModule;
4747
4750
  return Factory$7;
4748
4751
  }
4749
4752
 
@@ -4769,17 +4772,18 @@ function requireApplication () {
4769
4772
  };
4770
4773
  Object.defineProperty(exports, "__esModule", { value: true });
4771
4774
  /**
4772
- * Entry point for the OpenFin Application namespace.
4775
+ * Entry points for the OpenFin `Application` API.
4776
+ *
4777
+ * In the previous version of the API documentation, both static methods involving `Application` and instance properties of the
4778
+ * `Application` type itself were documented on the same page. These are separate code entities, and are now documented separately:
4773
4779
  *
4774
- * Because TypeDoc does not currently support multiple modules with the same name, the module alias "ApplicationModule" is used for
4775
- * the module containing static members of the `Application` namespace (available under `fin.Application`), while `Application` documents
4776
- * instances of the OpenFin `Application` class.
4780
+ * * {@link ApplicationModule} contains static methods relating to the `Application` type, accessible through `fin.Application`.
4781
+ * * {@link Application} describes an instance of an OpenFin Application, e.g. as returned by `fin.Application.getCurrent`.
4777
4782
  *
4778
4783
  * @packageDocumentation
4779
4784
  */
4780
- const Factory_1 = requireFactory$2();
4785
+ __exportStar(requireFactory$2(), exports);
4781
4786
  __exportStar(requireInstance$1(), exports);
4782
- exports.default = Factory_1.default;
4783
4787
  } (application));
4784
4788
  return application;
4785
4789
  }
@@ -6652,6 +6656,7 @@ function requireFactory$1 () {
6652
6656
  if (hasRequiredFactory$1) return Factory$8;
6653
6657
  hasRequiredFactory$1 = 1;
6654
6658
  Object.defineProperty(Factory$8, "__esModule", { value: true });
6659
+ Factory$8._WindowModule = void 0;
6655
6660
  const base_1 = base;
6656
6661
  const validate_1 = validate;
6657
6662
  const Instance_1 = requireInstance();
@@ -6791,7 +6796,7 @@ function requireFactory$1 () {
6791
6796
  return this.wrapSync({ uuid, name });
6792
6797
  }
6793
6798
  }
6794
- Factory$8.default = _WindowModule;
6799
+ Factory$8._WindowModule = _WindowModule;
6795
6800
  return Factory$8;
6796
6801
  }
6797
6802
 
@@ -6817,24 +6822,26 @@ function requireWindow () {
6817
6822
  };
6818
6823
  Object.defineProperty(exports, "__esModule", { value: true });
6819
6824
  /**
6820
- * Entry point for the OpenFin Window namespace.
6825
+ * Entry points for the OpenFin `Window` API.
6826
+ *
6827
+ * In the previous version of the API documentation, both static methods involving `Window` and instance properties of the
6828
+ * `Window` type itself were documented on the same page. These are separate code entities, and are now documented separately:
6821
6829
  *
6822
- * Because TypeDoc does not currently support multiple modules with the same name, the module alias "WindowModule" is used for
6823
- * the module containing static members of the `Window` namespace (available under `fin.Window`), while `Window` documents
6824
- * instances of the OpenFin `Window` class.
6830
+ * * {@link _WindowModule} contains static methods relating to the `Window` type, accessible through `fin.Window`.
6831
+ * * {@link _Window} describes an instance of an OpenFin Window, e.g. as returned by `fin.Window.getCurrent`.
6825
6832
  *
6826
- * Because the `Window` name aliases a DOM entity, the documentation pipeline prefixes the name with an underscore.
6833
+ * Underscore prefixing of OpenFin types that alias DOM entities will be fixed in a future version.
6827
6834
  *
6828
6835
  * @packageDocumentation
6829
6836
  */
6830
- const Factory_1 = requireFactory$1();
6831
- exports.default = Factory_1.default;
6837
+ __exportStar(requireFactory$1(), exports);
6832
6838
  __exportStar(requireInstance(), exports);
6833
6839
  } (window$1));
6834
6840
  return window$1;
6835
6841
  }
6836
6842
 
6837
6843
  Object.defineProperty(system, "__esModule", { value: true });
6844
+ system.System = void 0;
6838
6845
  const base_1$j = base;
6839
6846
  const transport_errors_1$2 = transportErrors;
6840
6847
  const window_1 = requireWindow();
@@ -8681,7 +8688,7 @@ class System extends base_1$j.EmitterBase {
8681
8688
  await this.wire.sendAction('set-domain-settings', { domainSettings, ...this.identity });
8682
8689
  }
8683
8690
  }
8684
- system.default = System;
8691
+ system.System = System;
8685
8692
 
8686
8693
  var interappbus = {};
8687
8694
 
@@ -9092,6 +9099,7 @@ var __classPrivateFieldSet$b = (commonjsGlobal && commonjsGlobal.__classPrivateF
9092
9099
  };
9093
9100
  var _ChannelClient_protectedObj, _ChannelClient_strategy, _ChannelClient_close;
9094
9101
  Object.defineProperty(client, "__esModule", { value: true });
9102
+ client.ChannelClient = void 0;
9095
9103
  const channel_1$1 = channel;
9096
9104
  const channelClientsByEndpointId = new Map();
9097
9105
  /**
@@ -9257,7 +9265,7 @@ class ChannelClient extends channel_1$1.ChannelBase {
9257
9265
  });
9258
9266
  }
9259
9267
  }
9260
- client.default = ChannelClient;
9268
+ client.ChannelClient = ChannelClient;
9261
9269
  _ChannelClient_protectedObj = new WeakMap(), _ChannelClient_strategy = new WeakMap(), _ChannelClient_close = new WeakMap();
9262
9270
 
9263
9271
  var connectionManager = {};
@@ -10182,7 +10190,7 @@ class MessageReceiver extends base_1$h.Base {
10182
10190
  const endpointIdFromPreviousConnection = this.latestEndpointIdByChannelId.get(channelId);
10183
10191
  if (endpointIdFromPreviousConnection) {
10184
10192
  // Not convinced by this way of doing things, but pushing up for now.
10185
- client_1$1.default.closeChannelByEndpointId(endpointIdFromPreviousConnection);
10193
+ client_1$1.ChannelClient.closeChannelByEndpointId(endpointIdFromPreviousConnection);
10186
10194
  // eslint-disable-next-line no-console
10187
10195
  console.warn('You have created a second connection to an older provider. First connection has been removed from the clientMap');
10188
10196
  // eslint-disable-next-line no-console
@@ -10603,7 +10611,7 @@ class Channel extends base_1$f.EmitterBase {
10603
10611
  _Channel_readyToConnect.set(this, new lazy_1$1.AsyncRetryableLazy(async () => {
10604
10612
  await Promise.all([
10605
10613
  this.on('disconnected', (eventPayload) => {
10606
- client_1.default.handleProviderDisconnect(eventPayload);
10614
+ client_1.ChannelClient.handleProviderDisconnect(eventPayload);
10607
10615
  }),
10608
10616
  this.on('connected', (...args) => {
10609
10617
  __classPrivateFieldGet$7(this, _Channel_internalEmitter, "f").emit('connected', ...args);
@@ -10794,7 +10802,7 @@ class Channel extends base_1$f.EmitterBase {
10794
10802
  };
10795
10803
  const routingInfo = await this.safeConnect(channelName, opts.wait, connectPayload);
10796
10804
  const strategy = await __classPrivateFieldGet$7(this, _Channel_connectionManager, "f").createClientStrategy(rtcPacket, routingInfo);
10797
- const channel = new client_1.default(routingInfo, this.wire, strategy);
10805
+ const channel = new client_1.ChannelClient(routingInfo, this.wire, strategy);
10798
10806
  // It is the client's responsibility to handle endpoint disconnection to the provider.
10799
10807
  // If the endpoint dies, the client will force a disconnection through the core.
10800
10808
  // The provider does not care about endpoint disconnection.
@@ -10806,7 +10814,7 @@ class Channel extends base_1$f.EmitterBase {
10806
10814
  console.warn(`Something went wrong during disconnect for client with uuid: ${routingInfo.uuid} / name: ${routingInfo.name} / endpointId: ${routingInfo.endpointId}.`);
10807
10815
  }
10808
10816
  finally {
10809
- client_1.default.handleProviderDisconnect(routingInfo);
10817
+ client_1.ChannelClient.handleProviderDisconnect(routingInfo);
10810
10818
  }
10811
10819
  });
10812
10820
  return channel;
@@ -10877,7 +10885,7 @@ channel$1.Channel = Channel;
10877
10885
  _Channel_connectionManager = new WeakMap(), _Channel_internalEmitter = new WeakMap(), _Channel_readyToConnect = new WeakMap();
10878
10886
 
10879
10887
  Object.defineProperty(interappbus, "__esModule", { value: true });
10880
- interappbus.InterAppPayload = void 0;
10888
+ interappbus.InterAppPayload = interappbus.InterApplicationBus = void 0;
10881
10889
  const events_1$4 = eventsExports;
10882
10890
  const base_1$e = base;
10883
10891
  const ref_counter_1 = refCounter;
@@ -11069,7 +11077,7 @@ class InterApplicationBus extends base_1$e.Base {
11069
11077
  return true;
11070
11078
  }
11071
11079
  }
11072
- interappbus.default = InterApplicationBus;
11080
+ interappbus.InterApplicationBus = InterApplicationBus;
11073
11081
  /**
11074
11082
  * @internal
11075
11083
  */
@@ -11087,6 +11095,7 @@ function createKey(...toHash) {
11087
11095
  var clipboard = {};
11088
11096
 
11089
11097
  Object.defineProperty(clipboard, "__esModule", { value: true });
11098
+ clipboard.Clipboard = void 0;
11090
11099
  const base_1$d = base;
11091
11100
  /**
11092
11101
  * @PORTED
@@ -11284,7 +11293,7 @@ class Clipboard extends base_1$d.Base {
11284
11293
  return payload.data;
11285
11294
  }
11286
11295
  }
11287
- clipboard.default = Clipboard;
11296
+ clipboard.Clipboard = Clipboard;
11288
11297
 
11289
11298
  var externalApplication = {};
11290
11299
 
@@ -11410,6 +11419,7 @@ class ExternalApplication extends base_1$c.EmitterBase {
11410
11419
  Instance$4.ExternalApplication = ExternalApplication;
11411
11420
 
11412
11421
  Object.defineProperty(Factory$5, "__esModule", { value: true });
11422
+ Factory$5.ExternalApplicationModule = void 0;
11413
11423
  const base_1$b = base;
11414
11424
  const Instance_1$4 = Instance$4;
11415
11425
  class ExternalApplicationModule extends base_1$b.Base {
@@ -11454,18 +11464,9 @@ class ExternalApplicationModule extends base_1$b.Base {
11454
11464
  return new Instance_1$4.ExternalApplication(this.wire, { uuid });
11455
11465
  }
11456
11466
  }
11457
- Factory$5.default = ExternalApplicationModule;
11467
+ Factory$5.ExternalApplicationModule = ExternalApplicationModule;
11458
11468
 
11459
11469
  (function (exports) {
11460
- /**
11461
- * Entry point for the OpenFin ExternalApplication namespace.
11462
- *
11463
- * Because TypeDoc does not currently support multiple modules with the same name, the module alias "ExternalApplicationModule" is used for
11464
- * the module containing static members of the `ExternalApplication` namespace (available under `fin.ExternalApplication`), while `ExternalApplication`
11465
- * documents instances of the OpenFin `ExternalApplication` class.
11466
- *
11467
- * @packageDocumentation
11468
- */
11469
11470
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11470
11471
  if (k2 === undefined) k2 = k;
11471
11472
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -11481,8 +11482,18 @@ Factory$5.default = ExternalApplicationModule;
11481
11482
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11482
11483
  };
11483
11484
  Object.defineProperty(exports, "__esModule", { value: true });
11484
- const Factory_1 = Factory$5;
11485
- exports.default = Factory_1.default;
11485
+ /**
11486
+ * Entry points for the OpenFin `ExternalApplication` API.
11487
+ *
11488
+ * In the previous version of the API documentation, both static methods involving `ExternalApplication` and instance properties of the
11489
+ * `ExternalApplication` type itself were documented on the same page. These are separate code entities, and are now documented separately:
11490
+ *
11491
+ * * {@link ExternalApplicationModule} contains static methods relating to the `ExternalApplication` type, accessible through `fin.ExternalApplication`.
11492
+ * * {@link ExternalApplication} describes an instance of an OpenFin ExternalApplication, e.g. as returned by `fin.ExternalApplication.getCurrent`.
11493
+ *
11494
+ * @packageDocumentation
11495
+ */
11496
+ __exportStar(Factory$5, exports);
11486
11497
  __exportStar(Instance$4, exports);
11487
11498
  } (externalApplication));
11488
11499
 
@@ -11636,6 +11647,7 @@ class _Frame extends base_1$a.EmitterBase {
11636
11647
  Instance$3._Frame = _Frame;
11637
11648
 
11638
11649
  Object.defineProperty(Factory$4, "__esModule", { value: true });
11650
+ Factory$4._FrameModule = void 0;
11639
11651
  const base_1$9 = base;
11640
11652
  const validate_1$2 = validate;
11641
11653
  const Instance_1$3 = Instance$3;
@@ -11719,17 +11731,19 @@ class _FrameModule extends base_1$9.Base {
11719
11731
  return new Instance_1$3._Frame(this.wire, this.wire.environment.getCurrentEntityIdentity());
11720
11732
  }
11721
11733
  }
11722
- Factory$4.default = _FrameModule;
11734
+ Factory$4._FrameModule = _FrameModule;
11723
11735
 
11724
11736
  (function (exports) {
11725
11737
  /**
11726
- * Entry point for the OpenFin Frame namespace.
11738
+ * Entry points for the OpenFin `Frame` API.
11739
+ *
11740
+ * In the previous version of the API documentation, both static methods involving `Frame` and instance properties of the
11741
+ * `Frame` type itself were documented on the same page. These are separate code entities, and are now documented separately:
11727
11742
  *
11728
- * Because TypeDoc does not currently support multiple modules with the same name, the module alias "FrameModule" is used for
11729
- * the module containing static members of the `Frame` namespace (available under `fin.Frame`), while `Frame` documents
11730
- * instances of the OpenFin `Frame` class.
11743
+ * * {@link _FrameModule} contains static methods relating to the `Frame` type, accessible through `fin.Frame`.
11744
+ * * {@link _Frame} describes an instance of an OpenFin Frame, e.g. as returned by `fin.Frame.getCurrent`.
11731
11745
  *
11732
- * Because the `Frame` name aliases a DOM entity, the documentation pipeline prefixes the name with an underscore.
11746
+ * Underscore prefixing of OpenFin types that alias DOM entities will be fixed in a future version.
11733
11747
  *
11734
11748
  * @packageDocumentation
11735
11749
  */
@@ -11748,14 +11762,14 @@ Factory$4.default = _FrameModule;
11748
11762
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11749
11763
  };
11750
11764
  Object.defineProperty(exports, "__esModule", { value: true });
11751
- const Factory_1 = Factory$4;
11752
- exports.default = Factory_1.default;
11765
+ __exportStar(Factory$4, exports);
11753
11766
  __exportStar(Instance$3, exports);
11754
11767
  } (frame));
11755
11768
 
11756
11769
  var globalHotkey = {};
11757
11770
 
11758
11771
  Object.defineProperty(globalHotkey, "__esModule", { value: true });
11772
+ globalHotkey.GlobalHotkey = void 0;
11759
11773
  const base_1$8 = base;
11760
11774
  /**
11761
11775
  * The GlobalHotkey module can register/unregister a global hotkeys.
@@ -11885,7 +11899,7 @@ class GlobalHotkey extends base_1$8.EmitterBase {
11885
11899
  return data;
11886
11900
  }
11887
11901
  }
11888
- globalHotkey.default = GlobalHotkey;
11902
+ globalHotkey.GlobalHotkey = GlobalHotkey;
11889
11903
 
11890
11904
  var platform = {};
11891
11905
 
@@ -13314,6 +13328,7 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap();
13314
13328
  } (layout));
13315
13329
 
13316
13330
  Object.defineProperty(Factory$3, "__esModule", { value: true });
13331
+ Factory$3.PlatformModule = void 0;
13317
13332
  const base_1$4 = base;
13318
13333
  const Instance_1$1 = Instance$2;
13319
13334
  const index_1$1 = layout;
@@ -13551,18 +13566,9 @@ class PlatformModule extends base_1$4.Base {
13551
13566
  });
13552
13567
  }
13553
13568
  }
13554
- Factory$3.default = PlatformModule;
13569
+ Factory$3.PlatformModule = PlatformModule;
13555
13570
 
13556
13571
  (function (exports) {
13557
- /**
13558
- * Entry point for the OpenFin Platform namespace.
13559
- *
13560
- * Because TypeDoc does not currently support multiple modules with the same name, the module alias "PlatformModule" is used for
13561
- * the module containing static members of the `Platform` namespace (available under `fin.Platform`), while `Platform` documents
13562
- * instances of the OpenFin `Platform` class.
13563
- *
13564
- * @packageDocumentation
13565
- */
13566
13572
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
13567
13573
  if (k2 === undefined) k2 = k;
13568
13574
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -13578,8 +13584,18 @@ Factory$3.default = PlatformModule;
13578
13584
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
13579
13585
  };
13580
13586
  Object.defineProperty(exports, "__esModule", { value: true });
13581
- const Factory_1 = Factory$3;
13582
- exports.default = Factory_1.default;
13587
+ /**
13588
+ * Entry points for the OpenFin `Platform` API.
13589
+ *
13590
+ * In the previous version of the API documentation, both static methods involving `Platform` and instance properties of the
13591
+ * `Platform` type itself were documented on the same page. These are separate code entities, and are now documented separately:
13592
+ *
13593
+ * * {@link PlatformModule} contains static methods relating to the `Platform` type, accessible through `fin.Platform`.
13594
+ * * {@link Platform} describes an instance of an OpenFin Platform, e.g. as returned by `fin.Platform.getCurrent`.
13595
+ *
13596
+ * @packageDocumentation
13597
+ */
13598
+ __exportStar(Factory$3, exports);
13583
13599
  __exportStar(Instance$2, exports);
13584
13600
  } (platform));
13585
13601
 
@@ -16338,39 +16354,46 @@ class InteropClient extends base_1$2.Base {
16338
16354
  InteropClient$1.InteropClient = InteropClient;
16339
16355
  _InteropClient_clientPromise = new WeakMap(), _InteropClient_sessionContextGroups = new WeakMap();
16340
16356
 
16341
- var overrideCheck$1 = {};
16357
+ var overrideCheck = {};
16342
16358
 
16343
- Object.defineProperty(overrideCheck$1, "__esModule", { value: true });
16344
- overrideCheck$1.overrideCheck = overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = void 0;
16345
- const InteropBroker_1 = requireInteropBroker();
16346
- function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
16347
- var _a, _b, _c, _d;
16348
- const setVersion = (_c = (_b = (_a = manifest.platform) === null || _a === void 0 ? void 0 : _a.defaultViewOptions) === null || _b === void 0 ? void 0 : _b.fdc3InteropApi) !== null && _c !== void 0 ? _c : (_d = initialOptions.defaultViewOptions) === null || _d === void 0 ? void 0 : _d.fdc3InteropApi;
16349
- return ['1.2', '2.0'].includes(setVersion !== null && setVersion !== void 0 ? setVersion : '') ? setVersion : undefined;
16350
- }
16351
- overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
16352
- // TODO: Unit test this
16353
- function overrideCheck(overriddenBroker, fdc3InteropApi) {
16354
- if (fdc3InteropApi && fdc3InteropApi === '2.0') {
16355
- const mustOverrideAPIs = [
16356
- 'fdc3HandleFindInstances',
16357
- 'handleInfoForIntent',
16358
- 'handleInfoForIntentsByContext',
16359
- 'fdc3HandleGetAppMetadata',
16360
- 'fdc3HandleGetInfo',
16361
- 'fdc3HandleOpen',
16362
- 'handleFiredIntent',
16363
- 'handleFiredIntentForContext'
16364
- ];
16365
- const notOverridden = mustOverrideAPIs.filter((api) => {
16366
- return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
16367
- });
16368
- if (notOverridden.length > 0) {
16369
- 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')}`);
16370
- }
16371
- }
16359
+ var hasRequiredOverrideCheck;
16360
+
16361
+ function requireOverrideCheck () {
16362
+ if (hasRequiredOverrideCheck) return overrideCheck;
16363
+ hasRequiredOverrideCheck = 1;
16364
+ Object.defineProperty(overrideCheck, "__esModule", { value: true });
16365
+ overrideCheck.overrideCheck = overrideCheck.getDefaultViewFdc3VersionFromAppInfo = void 0;
16366
+ const InteropBroker_1 = requireInteropBroker();
16367
+ function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
16368
+ var _a, _b, _c, _d;
16369
+ const setVersion = (_c = (_b = (_a = manifest.platform) === null || _a === void 0 ? void 0 : _a.defaultViewOptions) === null || _b === void 0 ? void 0 : _b.fdc3InteropApi) !== null && _c !== void 0 ? _c : (_d = initialOptions.defaultViewOptions) === null || _d === void 0 ? void 0 : _d.fdc3InteropApi;
16370
+ return ['1.2', '2.0'].includes(setVersion !== null && setVersion !== void 0 ? setVersion : '') ? setVersion : undefined;
16371
+ }
16372
+ overrideCheck.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
16373
+ // TODO: Unit test this
16374
+ function overrideCheck$1(overriddenBroker, fdc3InteropApi) {
16375
+ if (fdc3InteropApi && fdc3InteropApi === '2.0') {
16376
+ const mustOverrideAPIs = [
16377
+ 'fdc3HandleFindInstances',
16378
+ 'handleInfoForIntent',
16379
+ 'handleInfoForIntentsByContext',
16380
+ 'fdc3HandleGetAppMetadata',
16381
+ 'fdc3HandleGetInfo',
16382
+ 'fdc3HandleOpen',
16383
+ 'handleFiredIntent',
16384
+ 'handleFiredIntentForContext'
16385
+ ];
16386
+ const notOverridden = mustOverrideAPIs.filter((api) => {
16387
+ return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
16388
+ });
16389
+ if (notOverridden.length > 0) {
16390
+ 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')}`);
16391
+ }
16392
+ }
16393
+ }
16394
+ overrideCheck.overrideCheck = overrideCheck$1;
16395
+ return overrideCheck;
16372
16396
  }
16373
- overrideCheck$1.overrideCheck = overrideCheck;
16374
16397
 
16375
16398
  var hasRequiredFactory;
16376
16399
 
@@ -16378,12 +16401,13 @@ function requireFactory () {
16378
16401
  if (hasRequiredFactory) return Factory$1;
16379
16402
  hasRequiredFactory = 1;
16380
16403
  Object.defineProperty(Factory$1, "__esModule", { value: true });
16404
+ Factory$1.InteropModule = void 0;
16381
16405
  const lodash_1 = require$$3;
16382
16406
  const inaccessibleObject_1 = inaccessibleObject;
16383
16407
  const base_1 = base;
16384
16408
  const InteropBroker_1 = requireInteropBroker();
16385
16409
  const InteropClient_1 = InteropClient$1;
16386
- const overrideCheck_1 = overrideCheck$1;
16410
+ const overrideCheck_1 = requireOverrideCheck();
16387
16411
  const common_utils_1 = commonUtils;
16388
16412
  const defaultOverride = (Class) => new Class();
16389
16413
  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.';
@@ -16481,7 +16505,7 @@ function requireFactory () {
16481
16505
  return new InteropClient_1.InteropClient(this.wire, name, interopConfig);
16482
16506
  }
16483
16507
  }
16484
- Factory$1.default = InteropModule;
16508
+ Factory$1.InteropModule = InteropModule;
16485
16509
  return Factory$1;
16486
16510
  }
16487
16511
 
@@ -16494,8 +16518,8 @@ function requireInterop () {
16494
16518
  /**
16495
16519
  * Entry point for the OpenFin Interop namespace.
16496
16520
  *
16497
- * "InteropModule" contains static members of the `Interop` namespace (available under `fin.Interop`), while `InteropClient` and
16498
- * `InteropBroker` document instances of their respective classes.
16521
+ * * {@link InteropModule} contains static members of the `Interop` namespace (available under `fin.Interop`)
16522
+ * * {@link InteropClient} and {@link InteropBroker} document instances of their respective classes.
16499
16523
  *
16500
16524
  * @packageDocumentation
16501
16525
  */
@@ -16514,8 +16538,7 @@ function requireInterop () {
16514
16538
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16515
16539
  };
16516
16540
  Object.defineProperty(exports, "__esModule", { value: true });
16517
- const Factory_1 = requireFactory();
16518
- exports.default = Factory_1.default;
16541
+ __exportStar(requireFactory(), exports);
16519
16542
  __exportStar(InteropClient$1, exports);
16520
16543
  __exportStar(requireInteropBroker(), exports);
16521
16544
  } (interop));
@@ -16691,6 +16714,7 @@ Instance.SnapshotSource = SnapshotSource;
16691
16714
  _SnapshotSource_identity = new WeakMap(), _SnapshotSource_getConnection = new WeakMap(), _SnapshotSource_getClient = new WeakMap(), _SnapshotSource_startConnection = new WeakMap(), _SnapshotSource_setUpConnectionListener = new WeakMap();
16692
16715
 
16693
16716
  Object.defineProperty(Factory, "__esModule", { value: true });
16717
+ Factory.SnapshotSourceModule = void 0;
16694
16718
  const base_1 = base;
16695
16719
  const Instance_1 = Instance;
16696
16720
  const utils_1 = utils;
@@ -16769,15 +16793,17 @@ class SnapshotSourceModule extends base_1.Base {
16769
16793
  return this.wrapSync(identity);
16770
16794
  }
16771
16795
  }
16772
- Factory.default = SnapshotSourceModule;
16796
+ Factory.SnapshotSourceModule = SnapshotSourceModule;
16773
16797
 
16774
16798
  (function (exports) {
16775
16799
  /**
16776
- * Entry point for the OpenFin SnapshotSource namespace.
16800
+ * Entry points for the OpenFin `SnapshotSource` API.
16801
+ *
16802
+ * In the previous version of the API documentation, both static methods involving `SnapshotSource` and instance properties of the
16803
+ * `SnapshotSource` type itself were documented on the same page. These are separate code entities, and are now documented separately:
16777
16804
  *
16778
- * Because TypeDoc does not currently support multiple modules with the same name, the module alias "SnapshotSourceModule" is used for
16779
- * the module containing static members of the `SnapshotSource` namespace (available under `fin.SnapshotSource`), while `SnapshotSource` documents
16780
- * instances of the OpenFin `SnapshotSource` class.
16805
+ * * {@link SnapshotSourceModule} contains static methods relating to the `SnapshotSource` type, accessible through `fin.SnapshotSource`.
16806
+ * * {@link SnapshotSource} describes an instance of an OpenFin SnapshotSource, e.g. as returned by `fin.SnapshotSource.getCurrent`.
16781
16807
  *
16782
16808
  * @packageDocumentation
16783
16809
  */
@@ -16796,12 +16822,12 @@ Factory.default = SnapshotSourceModule;
16796
16822
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16797
16823
  };
16798
16824
  Object.defineProperty(exports, "__esModule", { value: true });
16799
- const Factory_1 = Factory;
16800
- exports.default = Factory_1.default;
16825
+ __exportStar(Factory, exports);
16801
16826
  __exportStar(Instance, exports);
16802
16827
  } (snapshotSource));
16803
16828
 
16804
16829
  Object.defineProperty(fin, "__esModule", { value: true });
16830
+ fin.Fin = void 0;
16805
16831
  const events_1$3 = eventsExports;
16806
16832
  // Import from the file rather than the directory in case someone consuming types is using module resolution other than "node"
16807
16833
  const index_1 = system;
@@ -16824,18 +16850,18 @@ class Fin extends events_1$3.EventEmitter {
16824
16850
  constructor(wire) {
16825
16851
  super();
16826
16852
  this.wire = wire;
16827
- this.System = new index_1.default(wire);
16828
- this.Window = new index_2.default(wire);
16829
- this.Application = new index_3.default(wire);
16830
- this.InterApplicationBus = new index_4.default(wire);
16831
- this.Clipboard = new index_5.default(wire);
16832
- this.ExternalApplication = new index_6.default(wire);
16833
- this.Frame = new index_7.default(wire);
16834
- this.GlobalHotkey = new index_8.default(wire);
16835
- this.Platform = new index_10.default(wire, this.InterApplicationBus.Channel);
16836
- this.View = new index_9.default(wire);
16837
- this.Interop = new interop_1.default(wire);
16838
- this.SnapshotSource = new snapshot_source_1.default(wire);
16853
+ this.System = new index_1.System(wire);
16854
+ this.Window = new index_2._WindowModule(wire);
16855
+ this.Application = new index_3.ApplicationModule(wire);
16856
+ this.InterApplicationBus = new index_4.InterApplicationBus(wire);
16857
+ this.Clipboard = new index_5.Clipboard(wire);
16858
+ this.ExternalApplication = new index_6.ExternalApplicationModule(wire);
16859
+ this.Frame = new index_7._FrameModule(wire);
16860
+ this.GlobalHotkey = new index_8.GlobalHotkey(wire);
16861
+ this.Platform = new index_10.PlatformModule(wire, this.InterApplicationBus.Channel);
16862
+ this.View = new index_9.ViewModule(wire);
16863
+ this.Interop = new interop_1.InteropModule(wire);
16864
+ this.SnapshotSource = new snapshot_source_1.SnapshotSourceModule(wire);
16839
16865
  wire.registerFin(this);
16840
16866
  this.me = (0, me_1$1.getMe)(wire);
16841
16867
  // Handle disconnect events
@@ -16844,7 +16870,7 @@ class Fin extends events_1$3.EventEmitter {
16844
16870
  });
16845
16871
  }
16846
16872
  }
16847
- fin.default = Fin;
16873
+ fin.Fin = Fin;
16848
16874
 
16849
16875
  var wire = {};
16850
16876
 
@@ -18146,7 +18172,7 @@ function requireMain () {
18146
18172
  Object.defineProperty(exports, "__esModule", { value: true });
18147
18173
  exports.ChannelProvider = exports.ChannelClient = exports.Frame = exports.View = exports.System = exports.Window = exports.Application = exports.Fin = exports.launch = exports.connect = void 0;
18148
18174
  const fin_1 = fin;
18149
- exports.Fin = fin_1.default;
18175
+ Object.defineProperty(exports, "Fin", { enumerable: true, get: function () { return fin_1.Fin; } });
18150
18176
  const index_1 = requireApplication();
18151
18177
  Object.defineProperty(exports, "Application", { enumerable: true, get: function () { return index_1.Application; } });
18152
18178
  const window_1 = requireWindow();
@@ -18154,13 +18180,13 @@ function requireMain () {
18154
18180
  const view_1 = requireView();
18155
18181
  Object.defineProperty(exports, "View", { enumerable: true, get: function () { return view_1.View; } });
18156
18182
  const client_1 = client;
18157
- exports.ChannelClient = client_1.default;
18183
+ Object.defineProperty(exports, "ChannelClient", { enumerable: true, get: function () { return client_1.ChannelClient; } });
18158
18184
  const provider_1 = provider;
18159
18185
  Object.defineProperty(exports, "ChannelProvider", { enumerable: true, get: function () { return provider_1.ChannelProvider; } });
18160
18186
  const frame_1 = frame;
18161
18187
  Object.defineProperty(exports, "Frame", { enumerable: true, get: function () { return frame_1._Frame; } });
18162
18188
  const system_1 = system;
18163
- exports.System = system_1.default;
18189
+ Object.defineProperty(exports, "System", { enumerable: true, get: function () { return system_1.System; } });
18164
18190
  const wire_1 = wire;
18165
18191
  const node_env_1 = requireNodeEnv();
18166
18192
  const transport_1 = transport;
@@ -18177,7 +18203,7 @@ function requireMain () {
18177
18203
  name: (_a = normalized.name) !== null && _a !== void 0 ? _a : normalized.uuid
18178
18204
  });
18179
18205
  await wire.connect(normalized);
18180
- return new fin_1.default(wire);
18206
+ return new fin_1.Fin(wire);
18181
18207
  }
18182
18208
  exports.connect = connect;
18183
18209
  async function launch(config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "34.78.2",
3
+ "version": "34.78.3",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",