@openfin/core 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.
- package/out/mock.js +24 -3
- package/package.json +1 -1
package/out/mock.js
CHANGED
@@ -11962,7 +11962,7 @@ var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
11962
11962
|
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");
|
11963
11963
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
11964
11964
|
};
|
11965
|
-
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getSafeLayoutManager;
|
11965
|
+
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getLayoutManagerSpy, _LayoutModule_getSafeLayoutManager;
|
11966
11966
|
Object.defineProperty(Factory$2, "__esModule", { value: true });
|
11967
11967
|
Factory$2.LayoutModule = void 0;
|
11968
11968
|
const base_1$5 = base;
|
@@ -12034,10 +12034,31 @@ class LayoutModule extends base_1$5.Base {
|
|
12034
12034
|
// in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
|
12035
12035
|
const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...this.fin.me.identity };
|
12036
12036
|
const layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
|
12037
|
-
return
|
12037
|
+
return __classPrivateFieldGet$4(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity, layoutManager);
|
12038
12038
|
}
|
12039
12039
|
return this.wrapSync(this.fin.me.identity);
|
12040
12040
|
};
|
12041
|
+
_LayoutModule_getLayoutManagerSpy.set(this, (layoutIdentity, layoutManager) => {
|
12042
|
+
const msg = '[Layout] You are using a deprecated property `layoutManager` - it will be removed in v39.';
|
12043
|
+
const managerProxy = new Proxy(layoutManager, {
|
12044
|
+
get(target, key) {
|
12045
|
+
console.warn(`[Layout-mgr-proxy] accessing ${key.toString()}`);
|
12046
|
+
console.warn(msg);
|
12047
|
+
return target[key];
|
12048
|
+
}
|
12049
|
+
});
|
12050
|
+
const layout = Object.assign(this.wrapSync(layoutIdentity), { layoutManager: managerProxy });
|
12051
|
+
const layoutProxy = new Proxy(layout, {
|
12052
|
+
get(target, key) {
|
12053
|
+
if (key === 'layoutManager') {
|
12054
|
+
console.warn(`[Layout-proxy] accessing ${key.toString()}`);
|
12055
|
+
console.warn(msg);
|
12056
|
+
}
|
12057
|
+
return target[key];
|
12058
|
+
}
|
12059
|
+
});
|
12060
|
+
return layoutProxy;
|
12061
|
+
});
|
12041
12062
|
/**
|
12042
12063
|
* Returns the layout manager for the current window
|
12043
12064
|
* @returns
|
@@ -12147,7 +12168,7 @@ class LayoutModule extends base_1$5.Base {
|
|
12147
12168
|
}
|
12148
12169
|
}
|
12149
12170
|
Factory$2.LayoutModule = LayoutModule;
|
12150
|
-
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
|
12171
|
+
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_getLayoutManagerSpy = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
|
12151
12172
|
if (!__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f")) {
|
12152
12173
|
throw new Error(`You must call init before using the API ${method}`);
|
12153
12174
|
}
|