@openfin/remote-adapter 46.100.83 → 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.
@@ -10892,7 +10892,7 @@ var __classPrivateFieldSet$d = (undefined && undefined.__classPrivateFieldSet) |
10892
10892
  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");
10893
10893
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
10894
10894
  };
10895
- var _ChannelProvider_connections, _ChannelProvider_protectedObj, _ChannelProvider_strategy, _ChannelProvider_removeEndpoint, _ChannelProvider_close;
10895
+ var _a$3, _ChannelProvider_connections, _ChannelProvider_protectedObj, _ChannelProvider_strategy, _ChannelProvider_removeEndpoint, _ChannelProvider_close;
10896
10896
  /**
10897
10897
  * Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
10898
10898
  * a single client via {@link ChannelProvider#dispatch dispatch} or all clients via {@link ChannelProvider#publish publish}
@@ -10940,7 +10940,7 @@ class ChannelProvider extends ChannelBase {
10940
10940
  channel.disconnectListener(payload);
10941
10941
  }
10942
10942
  static setProviderRemoval(provider, remove) {
10943
- ChannelProvider.removalMap.set(provider, remove);
10943
+ _a$3.removalMap.set(provider, remove);
10944
10944
  }
10945
10945
  /**
10946
10946
  * @internal
@@ -10957,7 +10957,7 @@ class ChannelProvider extends ChannelBase {
10957
10957
  });
10958
10958
  // Must be bound.
10959
10959
  this.processAction = async (action, payload, senderIdentity) => {
10960
- if (ChannelProvider.clientIsMultiRuntime(senderIdentity) &&
10960
+ if (_a$3.clientIsMultiRuntime(senderIdentity) &&
10961
10961
  !runtimeUuidMeetsMinimumRuntimeVersion(senderIdentity.runtimeUuid, '18.87.56.0')) {
10962
10962
  this.handleMultiRuntimeLegacyClient(senderIdentity);
10963
10963
  }
@@ -10968,7 +10968,7 @@ class ChannelProvider extends ChannelBase {
10968
10968
  };
10969
10969
  _ChannelProvider_close.set(this, () => {
10970
10970
  __classPrivateFieldGet$e(this, _ChannelProvider_strategy, "f").close();
10971
- const remove = ChannelProvider.removalMap.get(this);
10971
+ const remove = _a$3.removalMap.get(this);
10972
10972
  if (remove) {
10973
10973
  remove();
10974
10974
  }
@@ -11164,7 +11164,7 @@ class ChannelProvider extends ChannelBase {
11164
11164
  }
11165
11165
  }
11166
11166
  isClientConnected(clientIdentity) {
11167
- if (ChannelProvider.clientIdentityIncludesEndpointId(clientIdentity)) {
11167
+ if (_a$3.clientIdentityIncludesEndpointId(clientIdentity)) {
11168
11168
  return this.connections.some((identity) => {
11169
11169
  return (
11170
11170
  // Might be redundant to check for uuid and name here after we get an endpointId match, but just in case
@@ -11214,7 +11214,7 @@ class ChannelProvider extends ChannelBase {
11214
11214
  await wire.sendAction('destroy-channel', { channelName });
11215
11215
  }
11216
11216
  }
11217
- _ChannelProvider_connections = new WeakMap(), _ChannelProvider_protectedObj = new WeakMap(), _ChannelProvider_strategy = new WeakMap(), _ChannelProvider_removeEndpoint = new WeakMap(), _ChannelProvider_close = new WeakMap();
11217
+ _a$3 = ChannelProvider, _ChannelProvider_connections = new WeakMap(), _ChannelProvider_protectedObj = new WeakMap(), _ChannelProvider_strategy = new WeakMap(), _ChannelProvider_removeEndpoint = new WeakMap(), _ChannelProvider_close = new WeakMap();
11218
11218
  // The following line should be changed following a typescript update.
11219
11219
  // static #removalMap = new WeakMap<ChannelProvider, Function>();
11220
11220
  ChannelProvider.removalMap = new WeakMap();
@@ -12508,7 +12508,7 @@ var __classPrivateFieldGet$b = (undefined && undefined.__classPrivateFieldGet) |
12508
12508
  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");
12509
12509
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12510
12510
  };
12511
- var _Platform_channelName, _Platform_connectToProvider;
12511
+ var _a$2, _Platform_channelName, _Platform_connectToProvider;
12512
12512
  /** Manages the life cycle of windows and views in the application.
12513
12513
  *
12514
12514
  * Enables taking snapshots of itself and applying them to restore a previous configuration
@@ -12530,29 +12530,29 @@ class Platform extends EmitterBase {
12530
12530
  if (identity.uuid !== this.identity.uuid) {
12531
12531
  // I have no idea why we allow passing in a different identity, but we do.
12532
12532
  // Doing this above the analytics call so we only register one call.
12533
- return new Platform(this.wire, identity).getClient();
12533
+ return new _a$2(this.wire, identity).getClient();
12534
12534
  }
12535
12535
  this.wire.sendAction('platform-get-client', this.identity).catch((e) => {
12536
12536
  // don't expose
12537
12537
  });
12538
- if (!Platform.clientMap.has(__classPrivateFieldGet$b(this, _Platform_channelName, "f"))) {
12538
+ if (!_a$2.clientMap.has(__classPrivateFieldGet$b(this, _Platform_channelName, "f"))) {
12539
12539
  const clientPromise = __classPrivateFieldGet$b(this, _Platform_connectToProvider, "f").call(this);
12540
- Platform.clientMap.set(__classPrivateFieldGet$b(this, _Platform_channelName, "f"), clientPromise);
12540
+ _a$2.clientMap.set(__classPrivateFieldGet$b(this, _Platform_channelName, "f"), clientPromise);
12541
12541
  }
12542
12542
  // we set it above
12543
12543
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
12544
- return Platform.clientMap.get(__classPrivateFieldGet$b(this, _Platform_channelName, "f"));
12544
+ return _a$2.clientMap.get(__classPrivateFieldGet$b(this, _Platform_channelName, "f"));
12545
12545
  };
12546
12546
  _Platform_connectToProvider.set(this, async () => {
12547
12547
  try {
12548
12548
  const client = await this._channel.connect(__classPrivateFieldGet$b(this, _Platform_channelName, "f"), { wait: false });
12549
12549
  client.onDisconnection(() => {
12550
- Platform.clientMap.delete(__classPrivateFieldGet$b(this, _Platform_channelName, "f"));
12550
+ _a$2.clientMap.delete(__classPrivateFieldGet$b(this, _Platform_channelName, "f"));
12551
12551
  });
12552
12552
  return client;
12553
12553
  }
12554
12554
  catch (e) {
12555
- Platform.clientMap.delete(__classPrivateFieldGet$b(this, _Platform_channelName, "f"));
12555
+ _a$2.clientMap.delete(__classPrivateFieldGet$b(this, _Platform_channelName, "f"));
12556
12556
  throw new Error('The targeted Platform is not currently running. Listen for application-started event for the given Uuid.');
12557
12557
  }
12558
12558
  });
@@ -13330,7 +13330,7 @@ class Platform extends EmitterBase {
13330
13330
  return client.dispatch('close-window', { windowId, options });
13331
13331
  }
13332
13332
  }
13333
- _Platform_channelName = new WeakMap(), _Platform_connectToProvider = new WeakMap();
13333
+ _a$2 = Platform, _Platform_channelName = new WeakMap(), _Platform_connectToProvider = new WeakMap();
13334
13334
  /**
13335
13335
  * @internal
13336
13336
  * Reuse clients to avoid overwriting already-registered client in provider
@@ -13432,7 +13432,7 @@ var __classPrivateFieldGet$a = (undefined && undefined.__classPrivateFieldGet) |
13432
13432
  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");
13433
13433
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
13434
13434
  };
13435
- var _LayoutNode_client, _TabStack_client, _ColumnOrRow_client;
13435
+ var _a$1, _LayoutNode_client, _TabStack_client, _ColumnOrRow_client;
13436
13436
  /*
13437
13437
  This file includes LayoutNode, ColumnOrRow and TabStack classes, which are all closely
13438
13438
  intertwined, and share members via parent abstract class LayoutNode. To prevent circular
@@ -13522,7 +13522,7 @@ class LayoutNode {
13522
13522
  if (!parent) {
13523
13523
  return undefined;
13524
13524
  }
13525
- return LayoutNode.getEntity(parent, __classPrivateFieldGet$a(this, _LayoutNode_client, "f"));
13525
+ return _a$1.getEntity(parent, __classPrivateFieldGet$a(this, _LayoutNode_client, "f"));
13526
13526
  };
13527
13527
  /**
13528
13528
  * Creates a new TabStack adjacent to the given TabStack or ColumnOrRow. Inputs can be new views to create, or existing views.
@@ -13574,7 +13574,7 @@ class LayoutNode {
13574
13574
  */
13575
13575
  this.createAdjacentStack = async (views, options) => {
13576
13576
  const entityId = await __classPrivateFieldGet$a(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
13577
- return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$a(this, _LayoutNode_client, "f"));
13577
+ return _a$1.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$a(this, _LayoutNode_client, "f"));
13578
13578
  };
13579
13579
  /**
13580
13580
  * Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow.
@@ -13606,7 +13606,7 @@ class LayoutNode {
13606
13606
  targetId: this.entityId,
13607
13607
  edge
13608
13608
  });
13609
- return adjacentStacks.map((stack) => LayoutNode.getEntity({
13609
+ return adjacentStacks.map((stack) => _a$1.getEntity({
13610
13610
  type: 'stack',
13611
13611
  entityId: stack.entityId
13612
13612
  }, __classPrivateFieldGet$a(this, _LayoutNode_client, "f")));
@@ -13615,7 +13615,7 @@ class LayoutNode {
13615
13615
  this.entityId = entityId;
13616
13616
  }
13617
13617
  }
13618
- _LayoutNode_client = new WeakMap();
13618
+ _a$1 = LayoutNode, _LayoutNode_client = new WeakMap();
13619
13619
  /**
13620
13620
  * @ignore
13621
13621
  * @internal
@@ -14853,6 +14853,7 @@ class SessionContextGroupClient extends Base {
14853
14853
  }
14854
14854
  }
14855
14855
  _SessionContextGroupClient_clientPromise = new WeakMap();
14856
+ var SessionContextGroupClient$1 = SessionContextGroupClient;
14856
14857
 
14857
14858
  var __classPrivateFieldSet$6 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14858
14859
  if (kind === "m") throw new TypeError("Private method is not writable");
@@ -14879,10 +14880,10 @@ class ChannelEvents {
14879
14880
  _ChannelEvents_isChannelReady.set(this, false);
14880
14881
  _ChannelEvents_getActions.set(this, async () => {
14881
14882
  const channelClient = await __classPrivateFieldGet$6(this, _ChannelEvents_channelClient, "f");
14882
- let actions = __classPrivateFieldGet$6(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).get(channelClient);
14883
+ let actions = __classPrivateFieldGet$6(_a, _a, "f", _ChannelEvents_actionsByClient).get(channelClient);
14883
14884
  if (!actions) {
14884
14885
  actions = {};
14885
- __classPrivateFieldGet$6(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).set(channelClient, actions);
14886
+ __classPrivateFieldGet$6(_a, _a, "f", _ChannelEvents_actionsByClient).set(channelClient, actions);
14886
14887
  }
14887
14888
  return actions;
14888
14889
  });
@@ -15551,7 +15552,7 @@ class InteropClient extends Base {
15551
15552
  if (hasConflict) {
15552
15553
  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.`);
15553
15554
  }
15554
- const newSessionContextGroup = new SessionContextGroupClient(this.wire, __classPrivateFieldGet$5(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
15555
+ const newSessionContextGroup = new SessionContextGroupClient$1(this.wire, __classPrivateFieldGet$5(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
15555
15556
  __classPrivateFieldGet$5(this, _InteropClient_sessionContextGroups, "f").set(sessionContextGroupId, newSessionContextGroup);
15556
15557
  return newSessionContextGroup.getUserInstance();
15557
15558
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/remote-adapter",
3
- "version": "46.100.83",
3
+ "version": "46.100.85",
4
4
  "description": "Establish intermachine runtime connections using webRTC.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "es-toolkit": "^1.39.3",
18
18
  "tslib": "2.8.1",
19
- "@openfin/core": "46.100.83"
19
+ "@openfin/core": "46.100.85"
20
20
  },
21
21
  "scripts": {
22
22
  "prebuild": "rimraf ./out",