@openfin/remote-adapter 36.79.12 → 36.79.13

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.
@@ -12329,7 +12329,7 @@ var __classPrivateFieldSet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateF
12329
12329
  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");
12330
12330
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
12331
12331
  };
12332
- var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getSafeLayoutManager;
12332
+ var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getLayoutManagerSpy, _LayoutModule_getSafeLayoutManager;
12333
12333
  Object.defineProperty(Factory$2, "__esModule", { value: true });
12334
12334
  Factory$2.LayoutModule = void 0;
12335
12335
  const base_1$5 = base;
@@ -12401,10 +12401,31 @@ class LayoutModule extends base_1$5.Base {
12401
12401
  // in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
12402
12402
  const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...this.fin.me.identity };
12403
12403
  const layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$3(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
12404
- return Object.assign(this.wrapSync(layoutIdentity), { layoutManager });
12404
+ return __classPrivateFieldGet$3(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity, layoutManager);
12405
12405
  }
12406
12406
  return this.wrapSync(this.fin.me.identity);
12407
12407
  };
12408
+ _LayoutModule_getLayoutManagerSpy.set(this, (layoutIdentity, layoutManager) => {
12409
+ const msg = '[Layout] You are using a deprecated property `layoutManager` - it will be removed in v39.';
12410
+ const managerProxy = new Proxy(layoutManager, {
12411
+ get(target, key) {
12412
+ console.warn(`[Layout-mgr-proxy] accessing ${key.toString()}`);
12413
+ console.warn(msg);
12414
+ return target[key];
12415
+ }
12416
+ });
12417
+ const layout = Object.assign(this.wrapSync(layoutIdentity), { layoutManager: managerProxy });
12418
+ const layoutProxy = new Proxy(layout, {
12419
+ get(target, key) {
12420
+ if (key === 'layoutManager') {
12421
+ console.warn(`[Layout-proxy] accessing ${key.toString()}`);
12422
+ console.warn(msg);
12423
+ }
12424
+ return target[key];
12425
+ }
12426
+ });
12427
+ return layoutProxy;
12428
+ });
12408
12429
  /**
12409
12430
  * Returns the layout manager for the current window
12410
12431
  * @returns
@@ -12514,7 +12535,7 @@ class LayoutModule extends base_1$5.Base {
12514
12535
  }
12515
12536
  }
12516
12537
  Factory$2.LayoutModule = LayoutModule;
12517
- _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
12538
+ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_getLayoutManagerSpy = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
12518
12539
  if (!__classPrivateFieldGet$3(this, _LayoutModule_layoutManager, "f")) {
12519
12540
  throw new Error(`You must call init before using the API ${method}`);
12520
12541
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/remote-adapter",
3
- "version": "36.79.12",
3
+ "version": "36.79.13",
4
4
  "description": "Establish intermachine runtime connections using webRTC.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,