@openfin/core 34.78.50 → 35.78.1

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.
package/out/mock.js CHANGED
@@ -26,9 +26,9 @@ var application$1 = {};
26
26
  * child {@link OpenFin.Window windows} and {@link OpenFin.View views} are defined in the {@link OpenFin.WindowEvents} and
27
27
  * {@link OpenFin.ViewEvents} namespaces. For a list of valid string keys for *all* application events, see {@link Application.on Application.on}.
28
28
  *
29
- * {@link NativeApplicationEvent Native application events} (i.e. those that have not propagated from {@link OpenFin.ViewEvents Views}
29
+ * {@link ApplicationSourcedEvent Application-sourced events} (i.e. those that have not propagated from {@link OpenFin.ViewEvents Views}
30
30
  * or {@link OpenFin.WindowEvents Windows} re-propagate to {@link OpenFin.SystemEvents System} with their type string prefixed with `application-`.
31
- * {@link OpenFin.ApplicationEvents.ApplicationWindowEvent Application events that are tied to Windows but do not propagate from them}
31
+ * {@link ApplicationWindowEvent Application events that are tied to Windows but do not propagate from them}
32
32
  * are propagated to `System` without any type string prefixing.
33
33
  *
34
34
  * "Requested" events (e.g. {@link RunRequestedEvent}) do not propagate.
@@ -151,7 +151,7 @@ var window$2 = {};
151
151
  * propagate from `View` are defined in {@link OpenFin.ViewEvents}. For a list of valid string keys for *all* Window events, see
152
152
  * {@link Window.on Window.on}
153
153
  *
154
- * {@link OpenFin.WindowEvents.NativeWindowEvent Native window events} (i.e. those that are not propagated from a
154
+ * {@link OpenFin.WindowEvents.WindowSourcedEvent Window-sourced events} (i.e. those that are not propagated from a
155
155
  * {@link OpenFin.ViewEvents View}) propagate to their parent {@link OpenFin.ApplicationEvents Application} and
156
156
  * {@link OpenFin.SystemEvents System} with their event types prefixed with `'window-'`).
157
157
  *
@@ -196,10 +196,10 @@ Object.defineProperty(window$2, "__esModule", { value: true });
196
196
  * finally to the OpenFin runtime itself at the "system" level. For details on propagation semantics, see the namespace for
197
197
  * the propagating (or propagated-to) entity.
198
198
  *
199
- * If you need the payload type for a specific type of event (especially propagated events), use the emitting topic's `EventPayload`
200
- * (e.g. {@link WindowEvents.WindowEventPayload}) generic with the event's `type` string. For example, the payload of
199
+ * If you need the payload type for a specific type of event (especially propagated events), use the emitting topic's `Payload` generic
200
+ * (e.g. {@link WindowEvents.Payload}) with the event's `type` string. For example, the payload of
201
201
  * a {@link ViewEvents.CreatedEvent} after it has propagated to its parent {@link WindowEvents Window} can be found with
202
- * `WindowEventPayload<'view-created'>`.
202
+ * `WindowEvents.Payload<'view-created'>`.
203
203
  *
204
204
  * @packageDocumentation
205
205
  */
@@ -1312,14 +1312,14 @@ _LayoutNode_client = new WeakMap();
1312
1312
  /**
1313
1313
  * @ignore
1314
1314
  * @internal
1315
- * Encapsulates Api consumption of {@link LayoutEntitiesController} with a relayed dispatch
1315
+ * Encapsulates Api consumption of {@link LayoutEntitiesClient} with a relayed dispatch
1316
1316
  * @param client
1317
1317
  * @param controllerId
1318
1318
  * @param identity
1319
1319
  * @returns a new instance of {@link LayoutEntitiesClient} with bound to the controllerId
1320
1320
  */
1321
1321
  LayoutNode.newLayoutEntitiesClient = async (client, controllerId, identity) => {
1322
- const dispatch = (0, channel_api_relay_1.createRelayedDispatch)(client, identity, 'layout-relay', 'You are trying to interact with a layout component on a window that has been destroyed.');
1322
+ const dispatch = (0, channel_api_relay_1.createRelayedDispatch)(client, identity, 'layout-relay', 'You are trying to interact with a layout component on a window that does not exist or has been destroyed.');
1323
1323
  const consumer = new api_exposer_1.ApiConsumer(new api_exposer_1.ChannelsConsumer({ dispatch }));
1324
1324
  return consumer.consume({ id: controllerId });
1325
1325
  };
@@ -1629,8 +1629,9 @@ _ColumnOrRow_client = new WeakMap();
1629
1629
  var layout_constants = {};
1630
1630
 
1631
1631
  Object.defineProperty(layout_constants, "__esModule", { value: true });
1632
- layout_constants.LAYOUT_CONTROLLER_ID = void 0;
1632
+ layout_constants.DEFAULT_LAYOUT_KEY = layout_constants.LAYOUT_CONTROLLER_ID = void 0;
1633
1633
  layout_constants.LAYOUT_CONTROLLER_ID = 'layout-entities';
1634
+ layout_constants.DEFAULT_LAYOUT_KEY = 'default';
1634
1635
 
1635
1636
  var main = {};
1636
1637
 
@@ -3206,8 +3207,24 @@ function requireInstance$2 () {
3206
3207
  this.wire.sendAction('view-get-parent-layout', { ...this.identity }).catch(() => {
3207
3208
  // don't expose
3208
3209
  });
3209
- const currentWindow = await this.getCurrentWindow();
3210
- return currentWindow.getLayout();
3210
+ const layoutWindow = await this.getCurrentWindow();
3211
+ try {
3212
+ const providerChannelClient = await __classPrivateFieldGet(this, _View_providerChannelClient, "f").getValue();
3213
+ const client = await layout_entities_1.LayoutNode.newLayoutEntitiesClient(providerChannelClient, layout_constants_1.LAYOUT_CONTROLLER_ID, layoutWindow.identity);
3214
+ const layoutIdentity = await client.getLayoutIdentityForViewOrThrow(this.identity);
3215
+ return this.fin.Platform.Layout.wrap(layoutIdentity);
3216
+ }
3217
+ catch (e) {
3218
+ const allowedErrors = [
3219
+ 'No action registered at target for',
3220
+ 'getLayoutIdentityForViewOrThrow is not a function'
3221
+ ];
3222
+ if (!allowedErrors.some((m) => e.message.includes(m))) {
3223
+ throw e;
3224
+ }
3225
+ // fallback logic for missing endpoint
3226
+ return this.fin.Platform.Layout.wrap(layoutWindow.identity);
3227
+ }
3211
3228
  };
3212
3229
  /**
3213
3230
  * Gets the View's options.
@@ -5639,15 +5656,15 @@ function requireInstance () {
5639
5656
  * ```
5640
5657
  * @experimental
5641
5658
  */
5642
- async getLayout() {
5659
+ async getLayout(layoutIdentity) {
5643
5660
  this.wire.sendAction('window-get-layout', this.identity).catch((e) => {
5644
5661
  // don't expose
5645
5662
  });
5646
5663
  const opts = await this.getOptions();
5647
- if (!opts.layout) {
5664
+ if (!opts.layout || !opts.layoutSnapshot) {
5648
5665
  throw new Error('Window does not have a Layout');
5649
5666
  }
5650
- return this.fin.Platform.Layout.wrap(this.identity);
5667
+ return this.fin.Platform.Layout.wrap(layoutIdentity ?? this.identity);
5651
5668
  }
5652
5669
  /**
5653
5670
  * Gets the current settings of the window.
@@ -7639,6 +7656,79 @@ class System extends base_1$j.EmitterBase {
7639
7656
  openUrlWithBrowser(url) {
7640
7657
  return this.wire.sendAction('open-url-with-browser', { url }).then(() => undefined);
7641
7658
  }
7659
+ /**
7660
+ * Creates a new registry entry under the HKCU root Windows registry key if the given custom protocol name doesn't exist or
7661
+ * overwrites the existing registry entry if the given custom protocol name already exists.
7662
+ *
7663
+ * Note: This method is restricted by default and must be enabled via
7664
+ * {@link https://developers.openfin.co/docs/api-security API security settings}. It requires RVM 12 or higher version.
7665
+ *
7666
+ *
7667
+ * @remarks These protocols are reserved and cannot be registered:
7668
+ * - fin
7669
+ * - fins
7670
+ * - openfin
7671
+ * - URI Schemes registered with {@link https://en.wikipedia.org/wiki/List_of_URI_schemes#Official_IANA-registered_schemes IANA}
7672
+ *
7673
+ * @throws if a given custom protocol failed to be registered.
7674
+ * @throws if a manifest URL contains the '%1' string.
7675
+ * @throws if a manifest URL contains a query string parameter which name equals to the Protocol Launch Request Parameter Name.
7676
+ * @throws if the full length of the command string that is to be written to the registry exceeds 2048 bytes.
7677
+ *
7678
+ * @example
7679
+ * ```js
7680
+ * fin.System.registerCustomProtocol({protocolName:'protocol1'}).then(console.log).catch(console.error);
7681
+ * ```
7682
+ */
7683
+ async registerCustomProtocol(options) {
7684
+ if (typeof options !== 'object') {
7685
+ throw new Error('Must provide an object with a `protocolName` property having a string value.');
7686
+ }
7687
+ await this.wire.sendAction('register-custom-protocol', options);
7688
+ }
7689
+ /**
7690
+ * Removes the registry entry for a given custom protocol.
7691
+ *
7692
+ * Note: This method is restricted by default and must be enabled via
7693
+ * {@link https://developers.openfin.co/docs/api-security API security settings}. It requires RVM 12 or higher version.
7694
+ *
7695
+ *
7696
+ * @remarks These protocols are reserved and cannot be unregistered:
7697
+ * - fin
7698
+ * - fins
7699
+ * - openfin
7700
+ * - URI Schemes registered with {@link https://en.wikipedia.org/wiki/List_of_URI_schemes#Official_IANA-registered_schemes IANA}
7701
+ *
7702
+ * @throws if a protocol entry failed to be removed in registry.
7703
+ *
7704
+ * @example
7705
+ * ```js
7706
+ * await fin.System.unregisterCustomProtocol('protocol1');
7707
+ * ```
7708
+ */
7709
+ async unregisterCustomProtocol(protocolName) {
7710
+ await this.wire.sendAction('unregister-custom-protocol', { protocolName });
7711
+ }
7712
+ /**
7713
+ * Retrieves the registration state for a given custom protocol.
7714
+ *
7715
+ * Note: This method is restricted by default and must be enabled via
7716
+ * {@link https://developers.openfin.co/docs/api-security API security settings}. It requires RVM 12 or higher version.
7717
+ *
7718
+ * @remarks These protocols are reserved and cannot get states for them:
7719
+ * - fin
7720
+ * - fins
7721
+ * - openfin
7722
+ * - URI Schemes registered with {@link https://en.wikipedia.org/wiki/List_of_URI_schemes#Official_IANA-registered_schemes IANA}
7723
+ *
7724
+ *
7725
+ * @example
7726
+ * ```js
7727
+ * const protocolState = await fin.System.getCustomProtocolState('protocol1');
7728
+ */
7729
+ async getCustomProtocolState(protocolName) {
7730
+ return this.wire.sendAction('get-custom-protocol-state', { protocolName }).then(({ payload }) => payload.data);
7731
+ }
7642
7732
  /**
7643
7733
  * Removes the process entry for the passed UUID obtained from a prior call
7644
7734
  * of fin.System.launchExternalProcess().
@@ -11622,6 +11712,8 @@ class GlobalHotkey extends base_1$8.EmitterBase {
11622
11712
  * Registers a global hotkey with the operating system.
11623
11713
  * @param hotkey a hotkey string
11624
11714
  * @param listener called when the registered hotkey is pressed by the user.
11715
+ * @throws If the `hotkey` is reserved, see list below.
11716
+ * @throws if the `hotkey` is already registered by another application.
11625
11717
  *
11626
11718
  * @remarks The `hotkey` parameter expects an electron compatible [accelerator](https://github.com/electron/electron/blob/master/docs/api/accelerator.md) and the `listener` will be called if the `hotkey` is pressed by the user.
11627
11719
  * If successfull, the hotkey will be 'claimed' by the application, meaning that this register call can be called multiple times from within the same application but will fail if another application has registered the hotkey.
@@ -11714,7 +11806,7 @@ class GlobalHotkey extends base_1$8.EmitterBase {
11714
11806
  return undefined;
11715
11807
  }
11716
11808
  /**
11717
- * Checks if a given hotkey has been registered
11809
+ * Checks if a given hotkey has been registered by an application within the current runtime.
11718
11810
  * @param hotkey a hotkey string
11719
11811
  *
11720
11812
  * @example
@@ -12920,6 +13012,7 @@ class Layout extends base_1$6.Base {
12920
13012
  // don't expose
12921
13013
  });
12922
13014
  const client = await this.platform.getClient();
13015
+ console.log(`Layout::toConfig() called!`);
12923
13016
  return client.dispatch('get-frame-snapshot', {
12924
13017
  target: this.identity
12925
13018
  });
@@ -12969,7 +13062,7 @@ class Layout extends base_1$6.Base {
12969
13062
  // don't expose
12970
13063
  });
12971
13064
  const client = await __classPrivateFieldGet$5(this, _Layout_layoutClient, "f").getValue();
12972
- const root = await client.getRoot();
13065
+ const root = await client.getRoot(this.identity);
12973
13066
  return layout_entities_1.LayoutNode.getEntity(root, client);
12974
13067
  }
12975
13068
  }
@@ -12987,10 +13080,9 @@ var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
12987
13080
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
12988
13081
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
12989
13082
  };
12990
- var _LayoutModule_layoutInitializationAttempted;
13083
+ var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_throwIfLayoutManagerNotInitialized;
12991
13084
  Object.defineProperty(Factory$2, "__esModule", { value: true });
12992
13085
  Factory$2.LayoutModule = void 0;
12993
- /* eslint-disable no-undef, import/prefer-default-export */
12994
13086
  const base_1$5 = base;
12995
13087
  const Instance_1$2 = Instance$1;
12996
13088
  /**
@@ -12999,7 +13091,9 @@ const Instance_1$2 = Instance$1;
12999
13091
  class LayoutModule extends base_1$5.Base {
13000
13092
  constructor() {
13001
13093
  super(...arguments);
13094
+ _LayoutModule_instances.add(this);
13002
13095
  _LayoutModule_layoutInitializationAttempted.set(this, false);
13096
+ _LayoutModule_layoutManager.set(this, null);
13003
13097
  /**
13004
13098
  * Initialize the window's Layout.
13005
13099
  *
@@ -13046,10 +13140,43 @@ class LayoutModule extends base_1$5.Base {
13046
13140
  throw new Error('Layout.init can only be called from a Window context.');
13047
13141
  }
13048
13142
  else if (__classPrivateFieldGet$4(this, _LayoutModule_layoutInitializationAttempted, "f")) {
13049
- throw new Error('Layout for this window already initialized, please use Layout.replace call to replace the layout.');
13143
+ throw new Error('Layout.init was already called, please use Layout.create to add additional layouts.');
13050
13144
  }
13051
13145
  __classPrivateFieldSet$4(this, _LayoutModule_layoutInitializationAttempted, true, "f");
13052
- return this.wire.environment.initLayout(this.fin, this.wire, options);
13146
+ __classPrivateFieldSet$4(this, _LayoutModule_layoutManager, await this.wire.environment.initLayout(this.fin, this.wire, options), "f");
13147
+ // back-compat ONLY if layoutManagerOverride not provided
13148
+ if (!options.layoutManagerOverride) {
13149
+ const layoutInstance = await __classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f").resolveLayout();
13150
+ const layout = this.wrapSync(layoutInstance.identity);
13151
+ // Backward compat - undocumented / not typed layoutInstance as layoutManager
13152
+ return Object.assign(layout, { layoutManager: layoutInstance });
13153
+ }
13154
+ // Warn user if they do not create any layouts in the next 10 seconds
13155
+ setTimeout(() => {
13156
+ const layoutSize = Object.keys(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f").getLayouts()).length;
13157
+ if (layoutSize === 0) {
13158
+ console.warn(`[Layout.init] Layout.init was called but no layouts have been created yet. Make sure you ` +
13159
+ `override LayoutManager.applyLayoutSnapshot, and then call fin.Platform.Layout.create()`);
13160
+ }
13161
+ }, 10000);
13162
+ return this.wrapSync(this.fin.me.identity);
13163
+ };
13164
+ /**
13165
+ * Returns the layout manager for the current window
13166
+ * @returns
13167
+ */
13168
+ this.getCurrentLayoutManagerSync = () => {
13169
+ __classPrivateFieldGet$4(this, _LayoutModule_instances, "m", _LayoutModule_throwIfLayoutManagerNotInitialized).call(this);
13170
+ // @ts-expect-error User may have implemented their own snapshot type when overriding LayoutManager
13171
+ return __classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f");
13172
+ };
13173
+ this.create = async (options) => {
13174
+ __classPrivateFieldGet$4(this, _LayoutModule_instances, "m", _LayoutModule_throwIfLayoutManagerNotInitialized).call(this);
13175
+ return this.wire.environment.createLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), options);
13176
+ };
13177
+ this.destroy = async (layoutIdentity) => {
13178
+ __classPrivateFieldGet$4(this, _LayoutModule_instances, "m", _LayoutModule_throwIfLayoutManagerNotInitialized).call(this);
13179
+ return this.wire.environment.destroyLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
13053
13180
  };
13054
13181
  }
13055
13182
  /**
@@ -13147,7 +13274,11 @@ class LayoutModule extends base_1$5.Base {
13147
13274
  }
13148
13275
  }
13149
13276
  Factory$2.LayoutModule = LayoutModule;
13150
- _LayoutModule_layoutInitializationAttempted = new WeakMap();
13277
+ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_throwIfLayoutManagerNotInitialized = function _LayoutModule_throwIfLayoutManagerNotInitialized() {
13278
+ if (!__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f")) {
13279
+ throw new Error('You must call init before using this API');
13280
+ }
13281
+ };
13151
13282
 
13152
13283
  (function (exports) {
13153
13284
  /**
@@ -16725,7 +16856,7 @@ var transport = {};
16725
16856
  var wire = {};
16726
16857
 
16727
16858
  Object.defineProperty(wire, "__esModule", { value: true });
16728
- wire.isInternalConnectConfig = wire.isPortDiscoveryConfig = wire.isNewConnectConfig = wire.isRemoteConfig = wire.isExistingConnectConfig = wire.isExternalConfig = void 0;
16859
+ wire.isInternalConnectConfig = wire.isPortDiscoveryConfig = wire.isNewConnectConfig = wire.isConfigWithReceiver = wire.isRemoteConfig = wire.isExistingConnectConfig = wire.isExternalConfig = void 0;
16729
16860
  function isExternalConfig(config) {
16730
16861
  if (typeof config.manifestUrl === 'string') {
16731
16862
  return true;
@@ -16741,6 +16872,10 @@ function isRemoteConfig(config) {
16741
16872
  return isExistingConnectConfig(config) && typeof config.token === 'string';
16742
16873
  }
16743
16874
  wire.isRemoteConfig = isRemoteConfig;
16875
+ function isConfigWithReceiver(config) {
16876
+ return typeof config.receiver === 'object' && isRemoteConfig({ ...config, address: '' });
16877
+ }
16878
+ wire.isConfigWithReceiver = isConfigWithReceiver;
16744
16879
  function hasUuid(config) {
16745
16880
  return typeof config.uuid === 'string';
16746
16881
  }
@@ -16890,13 +17025,13 @@ class Transport extends events_1$1.EventEmitter {
16890
17025
  }
16891
17026
  getFin() {
16892
17027
  if (!__classPrivateFieldGet(this, _Transport_fin, "f")) {
16893
- throw new Error("No Fin object registered for this transport");
17028
+ throw new Error('No Fin object registered for this transport');
16894
17029
  }
16895
17030
  return __classPrivateFieldGet(this, _Transport_fin, "f");
16896
17031
  }
16897
17032
  registerFin(_fin) {
16898
17033
  if (__classPrivateFieldGet(this, _Transport_fin, "f")) {
16899
- throw new Error("Fin object has already been registered for this transport");
17034
+ throw new Error('Fin object has already been registered for this transport');
16900
17035
  }
16901
17036
  __classPrivateFieldSet(this, _Transport_fin, _fin, "f");
16902
17037
  }
@@ -16905,6 +17040,10 @@ class Transport extends events_1$1.EventEmitter {
16905
17040
  return wire.shutdown();
16906
17041
  }
16907
17042
  async connect(config) {
17043
+ if ((0, wire_1.isConfigWithReceiver)(config)) {
17044
+ await __classPrivateFieldGet(this, _Transport_wire, "f").connect(config.receiver);
17045
+ return this.authorize(config);
17046
+ }
16908
17047
  if ((0, wire_1.isRemoteConfig)(config)) {
16909
17048
  return this.connectRemote(config);
16910
17049
  }
@@ -16918,14 +17057,14 @@ class Transport extends events_1$1.EventEmitter {
16918
17057
  return undefined;
16919
17058
  }
16920
17059
  async connectRemote(config) {
16921
- await __classPrivateFieldGet(this, _Transport_wire, "f").connect(config.address, this.environment.getWsConstructor());
17060
+ await __classPrivateFieldGet(this, _Transport_wire, "f").connect(new (this.environment.getWsConstructor())(config.address));
16922
17061
  return this.authorize(config);
16923
17062
  }
16924
17063
  async connectByPort(config) {
16925
17064
  const { address, uuid } = config;
16926
17065
  const reqAuthPayload = { ...config, type: 'file-token' };
16927
17066
  const wire = __classPrivateFieldGet(this, _Transport_wire, "f");
16928
- await wire.connect(address, this.environment.getWsConstructor());
17067
+ await wire.connect(new (this.environment.getWsConstructor())(config.address));
16929
17068
  const requestExtAuthRet = await this.sendAction('request-external-authorization', {
16930
17069
  uuid,
16931
17070
  type: 'file-token'
@@ -16945,7 +17084,9 @@ class Transport extends events_1$1.EventEmitter {
16945
17084
  throw new transport_errors_1.RuntimeError(requestAuthRet.payload);
16946
17085
  }
16947
17086
  }
16948
- sendAction(action, payload = {}, uncorrelated = false) {
17087
+ sendAction(action, payload = {}, uncorrelated = false
17088
+ // specialResponse type is only used for 'requestAuthorization'
17089
+ ) {
16949
17090
  // eslint-disable-next-line @typescript-eslint/no-empty-function
16950
17091
  let cancel = () => { };
16951
17092
  // We want the callsite from the caller of this function, not from here.
@@ -16995,7 +17136,10 @@ class Transport extends events_1$1.EventEmitter {
16995
17136
  this.uncorrelatedListener = resolve;
16996
17137
  }
16997
17138
  else if (this.wireListeners.has(id)) {
16998
- handleNack({ reason: 'Duplicate handler id', error: (0, errors_1.errorToPOJO)(new transport_errors_1.DuplicateCorrelationError(String(id))) });
17139
+ handleNack({
17140
+ reason: 'Duplicate handler id',
17141
+ error: (0, errors_1.errorToPOJO)(new transport_errors_1.DuplicateCorrelationError(String(id)))
17142
+ });
16999
17143
  }
17000
17144
  else {
17001
17145
  this.wireListeners.set(id, { resolve, handleNack });
@@ -17071,6 +17215,12 @@ class MockEnvironment {
17071
17215
  initLayout() {
17072
17216
  throw new Error(me_1.environmentUnsupportedMessage);
17073
17217
  }
17218
+ async createLayout() {
17219
+ throw new Error(me_1.environmentUnsupportedMessage);
17220
+ }
17221
+ async destroyLayout() {
17222
+ throw new Error(me_1.environmentUnsupportedMessage);
17223
+ }
17074
17224
  initPlatform() {
17075
17225
  throw new Error(me_1.environmentUnsupportedMessage);
17076
17226
  }
@@ -17122,7 +17272,7 @@ Object.defineProperty(mockWire, "__esModule", { value: true });
17122
17272
  mockWire.MockWire = void 0;
17123
17273
  const events_1 = require$$0;
17124
17274
  class MockWire extends events_1.EventEmitter {
17125
- connect(address) {
17275
+ connect() {
17126
17276
  throw new Error('You are not running in OpenFin.');
17127
17277
  }
17128
17278
  connectSync() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "34.78.50",
3
+ "version": "35.78.1",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.MD",
6
6
  "main": "out/mock.js",