@openfin/node-adapter 46.100.84 → 46.100.85

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.
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
-
3
1
  import type { EventEmitter } from 'node:events';
4
2
  import type { OpenFin } from '@openfin/core';
5
3
 
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
-
3
1
  import type { EventEmitter } from 'node:events';
4
2
  import type { OpenFin } from '@openfin/core';
5
3
 
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
-
3
1
  import type { EventEmitter } from 'node:events';
4
2
  import type { OpenFin } from '@openfin/core';
5
3
 
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
-
3
1
  import type { EventEmitter } from 'node:events';
4
2
  import type { OpenFin } from '@openfin/core';
5
3
 
@@ -8290,7 +8290,7 @@ var __classPrivateFieldSet$f = (undefined && undefined.__classPrivateFieldSet) |
8290
8290
  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");
8291
8291
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
8292
8292
  };
8293
- var _ChannelProvider_connections, _ChannelProvider_protectedObj, _ChannelProvider_strategy, _ChannelProvider_removeEndpoint, _ChannelProvider_close;
8293
+ var _a$3, _ChannelProvider_connections, _ChannelProvider_protectedObj, _ChannelProvider_strategy, _ChannelProvider_removeEndpoint, _ChannelProvider_close;
8294
8294
  /**
8295
8295
  * Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
8296
8296
  * a single client via {@link ChannelProvider#dispatch dispatch} or all clients via {@link ChannelProvider#publish publish}
@@ -8338,7 +8338,7 @@ class ChannelProvider extends ChannelBase {
8338
8338
  channel.disconnectListener(payload);
8339
8339
  }
8340
8340
  static setProviderRemoval(provider, remove) {
8341
- ChannelProvider.removalMap.set(provider, remove);
8341
+ _a$3.removalMap.set(provider, remove);
8342
8342
  }
8343
8343
  /**
8344
8344
  * @internal
@@ -8355,7 +8355,7 @@ class ChannelProvider extends ChannelBase {
8355
8355
  });
8356
8356
  // Must be bound.
8357
8357
  this.processAction = async (action, payload, senderIdentity) => {
8358
- if (ChannelProvider.clientIsMultiRuntime(senderIdentity) &&
8358
+ if (_a$3.clientIsMultiRuntime(senderIdentity) &&
8359
8359
  !runtimeUuidMeetsMinimumRuntimeVersion(senderIdentity.runtimeUuid, '18.87.56.0')) {
8360
8360
  this.handleMultiRuntimeLegacyClient(senderIdentity);
8361
8361
  }
@@ -8366,7 +8366,7 @@ class ChannelProvider extends ChannelBase {
8366
8366
  };
8367
8367
  _ChannelProvider_close.set(this, () => {
8368
8368
  __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").close();
8369
- const remove = ChannelProvider.removalMap.get(this);
8369
+ const remove = _a$3.removalMap.get(this);
8370
8370
  if (remove) {
8371
8371
  remove();
8372
8372
  }
@@ -8562,7 +8562,7 @@ class ChannelProvider extends ChannelBase {
8562
8562
  }
8563
8563
  }
8564
8564
  isClientConnected(clientIdentity) {
8565
- if (ChannelProvider.clientIdentityIncludesEndpointId(clientIdentity)) {
8565
+ if (_a$3.clientIdentityIncludesEndpointId(clientIdentity)) {
8566
8566
  return this.connections.some((identity) => {
8567
8567
  return (
8568
8568
  // Might be redundant to check for uuid and name here after we get an endpointId match, but just in case
@@ -8612,7 +8612,7 @@ class ChannelProvider extends ChannelBase {
8612
8612
  await wire.sendAction('destroy-channel', { channelName });
8613
8613
  }
8614
8614
  }
8615
- _ChannelProvider_connections = new WeakMap(), _ChannelProvider_protectedObj = new WeakMap(), _ChannelProvider_strategy = new WeakMap(), _ChannelProvider_removeEndpoint = new WeakMap(), _ChannelProvider_close = new WeakMap();
8615
+ _a$3 = ChannelProvider, _ChannelProvider_connections = new WeakMap(), _ChannelProvider_protectedObj = new WeakMap(), _ChannelProvider_strategy = new WeakMap(), _ChannelProvider_removeEndpoint = new WeakMap(), _ChannelProvider_close = new WeakMap();
8616
8616
  // The following line should be changed following a typescript update.
8617
8617
  // static #removalMap = new WeakMap<ChannelProvider, Function>();
8618
8618
  ChannelProvider.removalMap = new WeakMap();
@@ -10124,7 +10124,7 @@ var __classPrivateFieldGet$d = (undefined && undefined.__classPrivateFieldGet) |
10124
10124
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10125
10125
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
10126
10126
  };
10127
- var _Platform_channelName, _Platform_connectToProvider;
10127
+ var _a$2, _Platform_channelName, _Platform_connectToProvider;
10128
10128
  /** Manages the life cycle of windows and views in the application.
10129
10129
  *
10130
10130
  * Enables taking snapshots of itself and applying them to restore a previous configuration
@@ -10146,29 +10146,29 @@ class Platform extends EmitterBase {
10146
10146
  if (identity.uuid !== this.identity.uuid) {
10147
10147
  // I have no idea why we allow passing in a different identity, but we do.
10148
10148
  // Doing this above the analytics call so we only register one call.
10149
- return new Platform(this.wire, identity).getClient();
10149
+ return new _a$2(this.wire, identity).getClient();
10150
10150
  }
10151
10151
  this.wire.sendAction('platform-get-client', this.identity).catch((e) => {
10152
10152
  // don't expose
10153
10153
  });
10154
- if (!Platform.clientMap.has(__classPrivateFieldGet$d(this, _Platform_channelName, "f"))) {
10154
+ if (!_a$2.clientMap.has(__classPrivateFieldGet$d(this, _Platform_channelName, "f"))) {
10155
10155
  const clientPromise = __classPrivateFieldGet$d(this, _Platform_connectToProvider, "f").call(this);
10156
- Platform.clientMap.set(__classPrivateFieldGet$d(this, _Platform_channelName, "f"), clientPromise);
10156
+ _a$2.clientMap.set(__classPrivateFieldGet$d(this, _Platform_channelName, "f"), clientPromise);
10157
10157
  }
10158
10158
  // we set it above
10159
10159
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
10160
- return Platform.clientMap.get(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10160
+ return _a$2.clientMap.get(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10161
10161
  };
10162
10162
  _Platform_connectToProvider.set(this, async () => {
10163
10163
  try {
10164
10164
  const client = await this._channel.connect(__classPrivateFieldGet$d(this, _Platform_channelName, "f"), { wait: false });
10165
10165
  client.onDisconnection(() => {
10166
- Platform.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10166
+ _a$2.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10167
10167
  });
10168
10168
  return client;
10169
10169
  }
10170
10170
  catch (e) {
10171
- Platform.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10171
+ _a$2.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10172
10172
  throw new Error('The targeted Platform is not currently running. Listen for application-started event for the given Uuid.');
10173
10173
  }
10174
10174
  });
@@ -10946,7 +10946,7 @@ class Platform extends EmitterBase {
10946
10946
  return client.dispatch('close-window', { windowId, options });
10947
10947
  }
10948
10948
  }
10949
- _Platform_channelName = new WeakMap(), _Platform_connectToProvider = new WeakMap();
10949
+ _a$2 = Platform, _Platform_channelName = new WeakMap(), _Platform_connectToProvider = new WeakMap();
10950
10950
  /**
10951
10951
  * @internal
10952
10952
  * Reuse clients to avoid overwriting already-registered client in provider
@@ -11048,7 +11048,7 @@ var __classPrivateFieldGet$c = (undefined && undefined.__classPrivateFieldGet) |
11048
11048
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11049
11049
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11050
11050
  };
11051
- var _LayoutNode_client, _TabStack_client, _ColumnOrRow_client;
11051
+ var _a$1, _LayoutNode_client, _TabStack_client, _ColumnOrRow_client;
11052
11052
  /*
11053
11053
  This file includes LayoutNode, ColumnOrRow and TabStack classes, which are all closely
11054
11054
  intertwined, and share members via parent abstract class LayoutNode. To prevent circular
@@ -11138,7 +11138,7 @@ class LayoutNode {
11138
11138
  if (!parent) {
11139
11139
  return undefined;
11140
11140
  }
11141
- return LayoutNode.getEntity(parent, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
11141
+ return _a$1.getEntity(parent, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
11142
11142
  };
11143
11143
  /**
11144
11144
  * Creates a new TabStack adjacent to the given TabStack or ColumnOrRow. Inputs can be new views to create, or existing views.
@@ -11190,7 +11190,7 @@ class LayoutNode {
11190
11190
  */
11191
11191
  this.createAdjacentStack = async (views, options) => {
11192
11192
  const entityId = await __classPrivateFieldGet$c(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
11193
- return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
11193
+ return _a$1.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
11194
11194
  };
11195
11195
  /**
11196
11196
  * Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow.
@@ -11222,7 +11222,7 @@ class LayoutNode {
11222
11222
  targetId: this.entityId,
11223
11223
  edge
11224
11224
  });
11225
- return adjacentStacks.map((stack) => LayoutNode.getEntity({
11225
+ return adjacentStacks.map((stack) => _a$1.getEntity({
11226
11226
  type: 'stack',
11227
11227
  entityId: stack.entityId
11228
11228
  }, __classPrivateFieldGet$c(this, _LayoutNode_client, "f")));
@@ -11231,7 +11231,7 @@ class LayoutNode {
11231
11231
  this.entityId = entityId;
11232
11232
  }
11233
11233
  }
11234
- _LayoutNode_client = new WeakMap();
11234
+ _a$1 = LayoutNode, _LayoutNode_client = new WeakMap();
11235
11235
  /**
11236
11236
  * @ignore
11237
11237
  * @internal
@@ -14363,6 +14363,7 @@ class SessionContextGroupClient extends Base {
14363
14363
  }
14364
14364
  }
14365
14365
  _SessionContextGroupClient_clientPromise = new WeakMap();
14366
+ var SessionContextGroupClient$1 = SessionContextGroupClient;
14366
14367
 
14367
14368
  var __classPrivateFieldSet$7 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14368
14369
  if (kind === "m") throw new TypeError("Private method is not writable");
@@ -14389,10 +14390,10 @@ class ChannelEvents {
14389
14390
  _ChannelEvents_isChannelReady.set(this, false);
14390
14391
  _ChannelEvents_getActions.set(this, async () => {
14391
14392
  const channelClient = await __classPrivateFieldGet$7(this, _ChannelEvents_channelClient, "f");
14392
- let actions = __classPrivateFieldGet$7(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).get(channelClient);
14393
+ let actions = __classPrivateFieldGet$7(_a, _a, "f", _ChannelEvents_actionsByClient).get(channelClient);
14393
14394
  if (!actions) {
14394
14395
  actions = {};
14395
- __classPrivateFieldGet$7(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).set(channelClient, actions);
14396
+ __classPrivateFieldGet$7(_a, _a, "f", _ChannelEvents_actionsByClient).set(channelClient, actions);
14396
14397
  }
14397
14398
  return actions;
14398
14399
  });
@@ -15061,7 +15062,7 @@ class InteropClient extends Base {
15061
15062
  if (hasConflict) {
15062
15063
  console.warn(`A (non-session) context group with the name "${sessionContextGroupId}" already exists. If you are trying to join a Context Group, call joinContextGroup instead.`);
15063
15064
  }
15064
- const newSessionContextGroup = new SessionContextGroupClient(this.wire, __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
15065
+ const newSessionContextGroup = new SessionContextGroupClient$1(this.wire, __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
15065
15066
  __classPrivateFieldGet$6(this, _InteropClient_sessionContextGroups, "f").set(sessionContextGroupId, newSessionContextGroup);
15066
15067
  return newSessionContextGroup.getUserInstance();
15067
15068
  }
@@ -17591,7 +17592,7 @@ class NodeEnvironment extends BaseEnvironment {
17591
17592
  };
17592
17593
  }
17593
17594
  getAdapterVersionSync() {
17594
- return "46.100.84";
17595
+ return "46.100.85";
17595
17596
  }
17596
17597
  observeBounds(element, onChange) {
17597
17598
  throw new Error('Method not implemented.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "46.100.84",
3
+ "version": "46.100.85",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",
@@ -20,7 +20,7 @@
20
20
  "es-toolkit": "^1.39.3",
21
21
  "ws": "^7.5.11",
22
22
  "tslib": "2.8.1",
23
- "@openfin/core": "46.100.84"
23
+ "@openfin/core": "46.100.85"
24
24
  },
25
25
  "scripts": {
26
26
  "prebuild": "rimraf ./out",