@openfin/core 34.78.50 → 34.78.52

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.
@@ -36,6 +36,18 @@ var application$1 = {};
36
36
  * @packageDocumentation
37
37
  */
38
38
  Object.defineProperty(application$1, "__esModule", { value: true });
39
+ application$1.ApplicationWindowEventTypes = void 0;
40
+ /**
41
+ * Array of valid `type` values for an {@link ApplicationWindowEvent}.
42
+ */
43
+ application$1.ApplicationWindowEventTypes = [
44
+ 'window-alert-requested',
45
+ 'window-created',
46
+ 'window-end-load',
47
+ 'window-not-responding',
48
+ 'window-responding',
49
+ 'window-start-load'
50
+ ];
39
51
 
40
52
  var base$1 = {};
41
53
 
@@ -151,7 +163,7 @@ var window$2 = {};
151
163
  * propagate from `View` are defined in {@link OpenFin.ViewEvents}. For a list of valid string keys for *all* Window events, see
152
164
  * {@link Window.on Window.on}
153
165
  *
154
- * {@link OpenFin.WindowEvents.NativeWindowEvent Native window events} (i.e. those that are not propagated from a
166
+ * {@link OpenFin.WindowEvents.WindowSourcedEvent Window-sourced events} (i.e. those that are not propagated from a
155
167
  * {@link OpenFin.ViewEvents View}) propagate to their parent {@link OpenFin.ApplicationEvents Application} and
156
168
  * {@link OpenFin.SystemEvents System} with their event types prefixed with `'window-'`).
157
169
  *
@@ -196,10 +208,10 @@ Object.defineProperty(window$2, "__esModule", { value: true });
196
208
  * finally to the OpenFin runtime itself at the "system" level. For details on propagation semantics, see the namespace for
197
209
  * the propagating (or propagated-to) entity.
198
210
  *
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
211
+ * If you need the payload type for a specific type of event (especially propagated events), use the emitting topic's `Payload` generic
212
+ * (e.g. {@link WindowEvents.Payload}) with the event's `type` string. For example, the payload of
201
213
  * a {@link ViewEvents.CreatedEvent} after it has propagated to its parent {@link WindowEvents Window} can be found with
202
- * `WindowEventPayload<'view-created'>`.
214
+ * `WindowEvents.Payload<'view-created'>`.
203
215
  *
204
216
  * @packageDocumentation
205
217
  */
@@ -1312,14 +1324,14 @@ _LayoutNode_client = new WeakMap();
1312
1324
  /**
1313
1325
  * @ignore
1314
1326
  * @internal
1315
- * Encapsulates Api consumption of {@link LayoutEntitiesController} with a relayed dispatch
1327
+ * Encapsulates Api consumption of {@link LayoutEntitiesClient} with a relayed dispatch
1316
1328
  * @param client
1317
1329
  * @param controllerId
1318
1330
  * @param identity
1319
1331
  * @returns a new instance of {@link LayoutEntitiesClient} with bound to the controllerId
1320
1332
  */
1321
1333
  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.');
1334
+ 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
1335
  const consumer = new api_exposer_1.ApiConsumer(new api_exposer_1.ChannelsConsumer({ dispatch }));
1324
1336
  return consumer.consume({ id: controllerId });
1325
1337
  };
@@ -1629,8 +1641,9 @@ _ColumnOrRow_client = new WeakMap();
1629
1641
  var layout_constants = {};
1630
1642
 
1631
1643
  Object.defineProperty(layout_constants, "__esModule", { value: true });
1632
- layout_constants.LAYOUT_CONTROLLER_ID = void 0;
1644
+ layout_constants.DEFAULT_LAYOUT_KEY = layout_constants.LAYOUT_CONTROLLER_ID = void 0;
1633
1645
  layout_constants.LAYOUT_CONTROLLER_ID = 'layout-entities';
1646
+ layout_constants.DEFAULT_LAYOUT_KEY = 'default';
1634
1647
 
1635
1648
  var main = {};
1636
1649
 
@@ -3206,8 +3219,24 @@ function requireInstance$2 () {
3206
3219
  this.wire.sendAction('view-get-parent-layout', { ...this.identity }).catch(() => {
3207
3220
  // don't expose
3208
3221
  });
3209
- const currentWindow = await this.getCurrentWindow();
3210
- return currentWindow.getLayout();
3222
+ const layoutWindow = await this.getCurrentWindow();
3223
+ try {
3224
+ const providerChannelClient = await __classPrivateFieldGet(this, _View_providerChannelClient, "f").getValue();
3225
+ const client = await layout_entities_1.LayoutNode.newLayoutEntitiesClient(providerChannelClient, layout_constants_1.LAYOUT_CONTROLLER_ID, layoutWindow.identity);
3226
+ const layoutIdentity = await client.getLayoutIdentityForViewOrThrow(this.identity);
3227
+ return this.fin.Platform.Layout.wrap(layoutIdentity);
3228
+ }
3229
+ catch (e) {
3230
+ const allowedErrors = [
3231
+ 'No action registered at target for',
3232
+ 'getLayoutIdentityForViewOrThrow is not a function'
3233
+ ];
3234
+ if (!allowedErrors.some((m) => e.message.includes(m))) {
3235
+ throw e;
3236
+ }
3237
+ // fallback logic for missing endpoint
3238
+ return this.fin.Platform.Layout.wrap(layoutWindow.identity);
3239
+ }
3211
3240
  };
3212
3241
  /**
3213
3242
  * Gets the View's options.
@@ -5639,15 +5668,15 @@ function requireInstance () {
5639
5668
  * ```
5640
5669
  * @experimental
5641
5670
  */
5642
- async getLayout() {
5671
+ async getLayout(layoutIdentity) {
5643
5672
  this.wire.sendAction('window-get-layout', this.identity).catch((e) => {
5644
5673
  // don't expose
5645
5674
  });
5646
5675
  const opts = await this.getOptions();
5647
- if (!opts.layout) {
5676
+ if (!opts.layout || !opts.layoutSnapshot) {
5648
5677
  throw new Error('Window does not have a Layout');
5649
5678
  }
5650
- return this.fin.Platform.Layout.wrap(this.identity);
5679
+ return this.fin.Platform.Layout.wrap(layoutIdentity ?? this.identity);
5651
5680
  }
5652
5681
  /**
5653
5682
  * Gets the current settings of the window.
@@ -7639,6 +7668,79 @@ class System extends base_1$j.EmitterBase {
7639
7668
  openUrlWithBrowser(url) {
7640
7669
  return this.wire.sendAction('open-url-with-browser', { url }).then(() => undefined);
7641
7670
  }
7671
+ /**
7672
+ * Creates a new registry entry under the HKCU root Windows registry key if the given custom protocol name doesn't exist or
7673
+ * overwrites the existing registry entry if the given custom protocol name already exists.
7674
+ *
7675
+ * Note: This method is restricted by default and must be enabled via
7676
+ * {@link https://developers.openfin.co/docs/api-security API security settings}. It requires RVM 12 or higher version.
7677
+ *
7678
+ *
7679
+ * @remarks These protocols are reserved and cannot be registered:
7680
+ * - fin
7681
+ * - fins
7682
+ * - openfin
7683
+ * - URI Schemes registered with {@link https://en.wikipedia.org/wiki/List_of_URI_schemes#Official_IANA-registered_schemes IANA}
7684
+ *
7685
+ * @throws if a given custom protocol failed to be registered.
7686
+ * @throws if a manifest URL contains the '%1' string.
7687
+ * @throws if a manifest URL contains a query string parameter which name equals to the Protocol Launch Request Parameter Name.
7688
+ * @throws if the full length of the command string that is to be written to the registry exceeds 2048 bytes.
7689
+ *
7690
+ * @example
7691
+ * ```js
7692
+ * fin.System.registerCustomProtocol({protocolName:'protocol1'}).then(console.log).catch(console.error);
7693
+ * ```
7694
+ */
7695
+ async registerCustomProtocol(options) {
7696
+ if (typeof options !== 'object') {
7697
+ throw new Error('Must provide an object with a `protocolName` property having a string value.');
7698
+ }
7699
+ await this.wire.sendAction('register-custom-protocol', options);
7700
+ }
7701
+ /**
7702
+ * Removes the registry entry for a given custom protocol.
7703
+ *
7704
+ * Note: This method is restricted by default and must be enabled via
7705
+ * {@link https://developers.openfin.co/docs/api-security API security settings}. It requires RVM 12 or higher version.
7706
+ *
7707
+ *
7708
+ * @remarks These protocols are reserved and cannot be unregistered:
7709
+ * - fin
7710
+ * - fins
7711
+ * - openfin
7712
+ * - URI Schemes registered with {@link https://en.wikipedia.org/wiki/List_of_URI_schemes#Official_IANA-registered_schemes IANA}
7713
+ *
7714
+ * @throws if a protocol entry failed to be removed in registry.
7715
+ *
7716
+ * @example
7717
+ * ```js
7718
+ * await fin.System.unregisterCustomProtocol('protocol1');
7719
+ * ```
7720
+ */
7721
+ async unregisterCustomProtocol(protocolName) {
7722
+ await this.wire.sendAction('unregister-custom-protocol', { protocolName });
7723
+ }
7724
+ /**
7725
+ * Retrieves the registration state for a given custom protocol.
7726
+ *
7727
+ * Note: This method is restricted by default and must be enabled via
7728
+ * {@link https://developers.openfin.co/docs/api-security API security settings}. It requires RVM 12 or higher version.
7729
+ *
7730
+ * @remarks These protocols are reserved and cannot get states for them:
7731
+ * - fin
7732
+ * - fins
7733
+ * - openfin
7734
+ * - URI Schemes registered with {@link https://en.wikipedia.org/wiki/List_of_URI_schemes#Official_IANA-registered_schemes IANA}
7735
+ *
7736
+ *
7737
+ * @example
7738
+ * ```js
7739
+ * const protocolState = await fin.System.getCustomProtocolState('protocol1');
7740
+ */
7741
+ async getCustomProtocolState(protocolName) {
7742
+ return this.wire.sendAction('get-custom-protocol-state', { protocolName }).then(({ payload }) => payload.data);
7743
+ }
7642
7744
  /**
7643
7745
  * Removes the process entry for the passed UUID obtained from a prior call
7644
7746
  * of fin.System.launchExternalProcess().
@@ -11622,6 +11724,8 @@ class GlobalHotkey extends base_1$8.EmitterBase {
11622
11724
  * Registers a global hotkey with the operating system.
11623
11725
  * @param hotkey a hotkey string
11624
11726
  * @param listener called when the registered hotkey is pressed by the user.
11727
+ * @throws If the `hotkey` is reserved, see list below.
11728
+ * @throws if the `hotkey` is already registered by another application.
11625
11729
  *
11626
11730
  * @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
11731
  * 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 +11818,7 @@ class GlobalHotkey extends base_1$8.EmitterBase {
11714
11818
  return undefined;
11715
11819
  }
11716
11820
  /**
11717
- * Checks if a given hotkey has been registered
11821
+ * Checks if a given hotkey has been registered by an application within the current runtime.
11718
11822
  * @param hotkey a hotkey string
11719
11823
  *
11720
11824
  * @example
@@ -12920,6 +13024,7 @@ class Layout extends base_1$6.Base {
12920
13024
  // don't expose
12921
13025
  });
12922
13026
  const client = await this.platform.getClient();
13027
+ console.log(`Layout::toConfig() called!`);
12923
13028
  return client.dispatch('get-frame-snapshot', {
12924
13029
  target: this.identity
12925
13030
  });
@@ -12969,7 +13074,7 @@ class Layout extends base_1$6.Base {
12969
13074
  // don't expose
12970
13075
  });
12971
13076
  const client = await __classPrivateFieldGet$5(this, _Layout_layoutClient, "f").getValue();
12972
- const root = await client.getRoot();
13077
+ const root = await client.getRoot(this.identity);
12973
13078
  return layout_entities_1.LayoutNode.getEntity(root, client);
12974
13079
  }
12975
13080
  }
@@ -12987,10 +13092,9 @@ var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
12987
13092
  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
13093
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
12989
13094
  };
12990
- var _LayoutModule_layoutInitializationAttempted;
13095
+ var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_throwIfLayoutManagerNotInitialized;
12991
13096
  Object.defineProperty(Factory$2, "__esModule", { value: true });
12992
13097
  Factory$2.LayoutModule = void 0;
12993
- /* eslint-disable no-undef, import/prefer-default-export */
12994
13098
  const base_1$5 = base;
12995
13099
  const Instance_1$2 = Instance$1;
12996
13100
  /**
@@ -12999,7 +13103,9 @@ const Instance_1$2 = Instance$1;
12999
13103
  class LayoutModule extends base_1$5.Base {
13000
13104
  constructor() {
13001
13105
  super(...arguments);
13106
+ _LayoutModule_instances.add(this);
13002
13107
  _LayoutModule_layoutInitializationAttempted.set(this, false);
13108
+ _LayoutModule_layoutManager.set(this, null);
13003
13109
  /**
13004
13110
  * Initialize the window's Layout.
13005
13111
  *
@@ -13046,10 +13152,43 @@ class LayoutModule extends base_1$5.Base {
13046
13152
  throw new Error('Layout.init can only be called from a Window context.');
13047
13153
  }
13048
13154
  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.');
13155
+ throw new Error('Layout.init was already called, please use Layout.create to add additional layouts.');
13050
13156
  }
13051
13157
  __classPrivateFieldSet$4(this, _LayoutModule_layoutInitializationAttempted, true, "f");
13052
- return this.wire.environment.initLayout(this.fin, this.wire, options);
13158
+ __classPrivateFieldSet$4(this, _LayoutModule_layoutManager, await this.wire.environment.initLayout(this.fin, this.wire, options), "f");
13159
+ // back-compat ONLY if layoutManagerOverride not provided
13160
+ if (!options.layoutManagerOverride) {
13161
+ const layoutInstance = await __classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f").resolveLayout();
13162
+ const layout = this.wrapSync(layoutInstance.identity);
13163
+ // Backward compat - undocumented / not typed layoutInstance as layoutManager
13164
+ return Object.assign(layout, { layoutManager: layoutInstance });
13165
+ }
13166
+ // Warn user if they do not create any layouts in the next 10 seconds
13167
+ setTimeout(() => {
13168
+ const layoutSize = Object.keys(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f").getLayouts()).length;
13169
+ if (layoutSize === 0) {
13170
+ console.warn(`[Layout.init] Layout.init was called but no layouts have been created yet. Make sure you ` +
13171
+ `override LayoutManager.applyLayoutSnapshot, and then call fin.Platform.Layout.create()`);
13172
+ }
13173
+ }, 10000);
13174
+ return this.wrapSync(this.fin.me.identity);
13175
+ };
13176
+ /**
13177
+ * Returns the layout manager for the current window
13178
+ * @returns
13179
+ */
13180
+ this.getCurrentLayoutManagerSync = () => {
13181
+ __classPrivateFieldGet$4(this, _LayoutModule_instances, "m", _LayoutModule_throwIfLayoutManagerNotInitialized).call(this);
13182
+ // @ts-expect-error User may have implemented their own snapshot type when overriding LayoutManager
13183
+ return __classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f");
13184
+ };
13185
+ this.create = async (options) => {
13186
+ __classPrivateFieldGet$4(this, _LayoutModule_instances, "m", _LayoutModule_throwIfLayoutManagerNotInitialized).call(this);
13187
+ return this.wire.environment.createLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), options);
13188
+ };
13189
+ this.destroy = async (layoutIdentity) => {
13190
+ __classPrivateFieldGet$4(this, _LayoutModule_instances, "m", _LayoutModule_throwIfLayoutManagerNotInitialized).call(this);
13191
+ return this.wire.environment.destroyLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
13053
13192
  };
13054
13193
  }
13055
13194
  /**
@@ -13147,7 +13286,11 @@ class LayoutModule extends base_1$5.Base {
13147
13286
  }
13148
13287
  }
13149
13288
  Factory$2.LayoutModule = LayoutModule;
13150
- _LayoutModule_layoutInitializationAttempted = new WeakMap();
13289
+ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_throwIfLayoutManagerNotInitialized = function _LayoutModule_throwIfLayoutManagerNotInitialized() {
13290
+ if (!__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f")) {
13291
+ throw new Error('You must call init before using this API');
13292
+ }
13293
+ };
13151
13294
 
13152
13295
  (function (exports) {
13153
13296
  /**
@@ -16725,7 +16868,7 @@ var transport = {};
16725
16868
  var wire = {};
16726
16869
 
16727
16870
  Object.defineProperty(wire, "__esModule", { value: true });
16728
- wire.isInternalConnectConfig = wire.isPortDiscoveryConfig = wire.isNewConnectConfig = wire.isRemoteConfig = wire.isExistingConnectConfig = wire.isExternalConfig = void 0;
16871
+ wire.isInternalConnectConfig = wire.isPortDiscoveryConfig = wire.isNewConnectConfig = wire.isConfigWithReceiver = wire.isRemoteConfig = wire.isExistingConnectConfig = wire.isExternalConfig = void 0;
16729
16872
  function isExternalConfig(config) {
16730
16873
  if (typeof config.manifestUrl === 'string') {
16731
16874
  return true;
@@ -16741,6 +16884,10 @@ function isRemoteConfig(config) {
16741
16884
  return isExistingConnectConfig(config) && typeof config.token === 'string';
16742
16885
  }
16743
16886
  wire.isRemoteConfig = isRemoteConfig;
16887
+ function isConfigWithReceiver(config) {
16888
+ return typeof config.receiver === 'object' && isRemoteConfig({ ...config, address: '' });
16889
+ }
16890
+ wire.isConfigWithReceiver = isConfigWithReceiver;
16744
16891
  function hasUuid(config) {
16745
16892
  return typeof config.uuid === 'string';
16746
16893
  }
@@ -16890,13 +17037,13 @@ class Transport extends events_1$1.EventEmitter {
16890
17037
  }
16891
17038
  getFin() {
16892
17039
  if (!__classPrivateFieldGet(this, _Transport_fin, "f")) {
16893
- throw new Error("No Fin object registered for this transport");
17040
+ throw new Error('No Fin object registered for this transport');
16894
17041
  }
16895
17042
  return __classPrivateFieldGet(this, _Transport_fin, "f");
16896
17043
  }
16897
17044
  registerFin(_fin) {
16898
17045
  if (__classPrivateFieldGet(this, _Transport_fin, "f")) {
16899
- throw new Error("Fin object has already been registered for this transport");
17046
+ throw new Error('Fin object has already been registered for this transport');
16900
17047
  }
16901
17048
  __classPrivateFieldSet(this, _Transport_fin, _fin, "f");
16902
17049
  }
@@ -16905,6 +17052,10 @@ class Transport extends events_1$1.EventEmitter {
16905
17052
  return wire.shutdown();
16906
17053
  }
16907
17054
  async connect(config) {
17055
+ if ((0, wire_1.isConfigWithReceiver)(config)) {
17056
+ await __classPrivateFieldGet(this, _Transport_wire, "f").connect(config.receiver);
17057
+ return this.authorize(config);
17058
+ }
16908
17059
  if ((0, wire_1.isRemoteConfig)(config)) {
16909
17060
  return this.connectRemote(config);
16910
17061
  }
@@ -16918,14 +17069,14 @@ class Transport extends events_1$1.EventEmitter {
16918
17069
  return undefined;
16919
17070
  }
16920
17071
  async connectRemote(config) {
16921
- await __classPrivateFieldGet(this, _Transport_wire, "f").connect(config.address, this.environment.getWsConstructor());
17072
+ await __classPrivateFieldGet(this, _Transport_wire, "f").connect(new (this.environment.getWsConstructor())(config.address));
16922
17073
  return this.authorize(config);
16923
17074
  }
16924
17075
  async connectByPort(config) {
16925
17076
  const { address, uuid } = config;
16926
17077
  const reqAuthPayload = { ...config, type: 'file-token' };
16927
17078
  const wire = __classPrivateFieldGet(this, _Transport_wire, "f");
16928
- await wire.connect(address, this.environment.getWsConstructor());
17079
+ await wire.connect(new (this.environment.getWsConstructor())(config.address));
16929
17080
  const requestExtAuthRet = await this.sendAction('request-external-authorization', {
16930
17081
  uuid,
16931
17082
  type: 'file-token'
@@ -16945,7 +17096,9 @@ class Transport extends events_1$1.EventEmitter {
16945
17096
  throw new transport_errors_1.RuntimeError(requestAuthRet.payload);
16946
17097
  }
16947
17098
  }
16948
- sendAction(action, payload = {}, uncorrelated = false) {
17099
+ sendAction(action, payload = {}, uncorrelated = false
17100
+ // specialResponse type is only used for 'requestAuthorization'
17101
+ ) {
16949
17102
  // eslint-disable-next-line @typescript-eslint/no-empty-function
16950
17103
  let cancel = () => { };
16951
17104
  // We want the callsite from the caller of this function, not from here.
@@ -16995,7 +17148,10 @@ class Transport extends events_1$1.EventEmitter {
16995
17148
  this.uncorrelatedListener = resolve;
16996
17149
  }
16997
17150
  else if (this.wireListeners.has(id)) {
16998
- handleNack({ reason: 'Duplicate handler id', error: (0, errors_1.errorToPOJO)(new transport_errors_1.DuplicateCorrelationError(String(id))) });
17151
+ handleNack({
17152
+ reason: 'Duplicate handler id',
17153
+ error: (0, errors_1.errorToPOJO)(new transport_errors_1.DuplicateCorrelationError(String(id)))
17154
+ });
16999
17155
  }
17000
17156
  else {
17001
17157
  this.wireListeners.set(id, { resolve, handleNack });
@@ -17071,6 +17227,12 @@ class MockEnvironment {
17071
17227
  initLayout() {
17072
17228
  throw new Error(me_1.environmentUnsupportedMessage);
17073
17229
  }
17230
+ async createLayout() {
17231
+ throw new Error(me_1.environmentUnsupportedMessage);
17232
+ }
17233
+ async destroyLayout() {
17234
+ throw new Error(me_1.environmentUnsupportedMessage);
17235
+ }
17074
17236
  initPlatform() {
17075
17237
  throw new Error(me_1.environmentUnsupportedMessage);
17076
17238
  }
@@ -17122,7 +17284,7 @@ Object.defineProperty(mockWire, "__esModule", { value: true });
17122
17284
  mockWire.MockWire = void 0;
17123
17285
  const events_1 = require$$0;
17124
17286
  class MockWire extends events_1.EventEmitter {
17125
- connect(address) {
17287
+ connect() {
17126
17288
  throw new Error('You are not running in OpenFin.');
17127
17289
  }
17128
17290
  connectSync() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "34.78.50",
3
+ "version": "34.78.52",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.MD",
6
6
  "main": "out/mock.js",