@openfin/remote-adapter 36.79.3 → 36.79.4
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/remote-adapter.js +10 -28
- package/package.json +1 -1
package/out/remote-adapter.js
CHANGED
|
@@ -11953,7 +11953,7 @@ const validate_1 = validate;
|
|
|
11953
11953
|
const base_1$6 = base;
|
|
11954
11954
|
const common_utils_1 = commonUtils;
|
|
11955
11955
|
const layout_entities_1 = layoutEntities;
|
|
11956
|
-
const layout_constants_1 = layout_constants;
|
|
11956
|
+
const layout_constants_1$1 = layout_constants;
|
|
11957
11957
|
/**
|
|
11958
11958
|
*
|
|
11959
11959
|
* Layouts give app providers the ability to embed multiple views in a single window. The Layout namespace
|
|
@@ -12098,7 +12098,7 @@ class Layout extends base_1$6.Base {
|
|
|
12098
12098
|
* Lazily constructed {@link LayoutEntitiesClient} bound to this platform's client and identity
|
|
12099
12099
|
* The client is for {@link LayoutEntitiesController}
|
|
12100
12100
|
*/
|
|
12101
|
-
_Layout_layoutClient.set(this, new lazy_1.Lazy(async () => layout_entities_1.LayoutNode.newLayoutEntitiesClient(await this.platform.getClient(), layout_constants_1.LAYOUT_CONTROLLER_ID, this.identity)));
|
|
12101
|
+
_Layout_layoutClient.set(this, new lazy_1.Lazy(async () => layout_entities_1.LayoutNode.newLayoutEntitiesClient(await this.platform.getClient(), layout_constants_1$1.LAYOUT_CONTROLLER_ID, this.identity)));
|
|
12102
12102
|
/**
|
|
12103
12103
|
* Replaces a Platform window's layout with a new layout.
|
|
12104
12104
|
*
|
|
@@ -12326,11 +12326,12 @@ var __classPrivateFieldSet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
12326
12326
|
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");
|
|
12327
12327
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
12328
12328
|
};
|
|
12329
|
-
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager,
|
|
12329
|
+
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getSafeLayoutManager;
|
|
12330
12330
|
Object.defineProperty(Factory$2, "__esModule", { value: true });
|
|
12331
12331
|
Factory$2.LayoutModule = void 0;
|
|
12332
12332
|
const base_1$5 = base;
|
|
12333
12333
|
const Instance_1$2 = Instance$1;
|
|
12334
|
+
const layout_constants_1 = layout_constants;
|
|
12334
12335
|
/**
|
|
12335
12336
|
* Static namespace for OpenFin API methods that interact with the {@link Layout} class, available under `fin.Platform.Layout`.
|
|
12336
12337
|
*/
|
|
@@ -12390,17 +12391,15 @@ class LayoutModule extends base_1$5.Base {
|
|
|
12390
12391
|
}
|
|
12391
12392
|
__classPrivateFieldSet$3(this, _LayoutModule_layoutInitializationAttempted, true, "f");
|
|
12392
12393
|
__classPrivateFieldSet$3(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
|
|
12393
|
-
// in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
|
|
12394
|
-
let backCompatLayoutPromise;
|
|
12395
|
-
if (!options.layoutManagerOverride) {
|
|
12396
|
-
backCompatLayoutPromise = __classPrivateFieldGet$3(this, _LayoutModule_waitForBackCompatLayoutManager, "f").call(this, this.fin);
|
|
12397
|
-
}
|
|
12398
12394
|
// apply the initial snapshot which in turn will call fin.Platform.Layout.create()
|
|
12399
12395
|
const platformClient = await this.fin.Platform.getCurrentSync().getClient();
|
|
12400
12396
|
const snapshot = await platformClient.dispatch('get-initial-layout-snapshot');
|
|
12401
12397
|
await __classPrivateFieldGet$3(this, _LayoutModule_layoutManager, "f").applyLayoutSnapshot(snapshot);
|
|
12402
|
-
if (
|
|
12403
|
-
return
|
|
12398
|
+
if (!options.layoutManagerOverride) {
|
|
12399
|
+
// in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
|
|
12400
|
+
const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...this.fin.me.identity };
|
|
12401
|
+
const layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$3(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
|
|
12402
|
+
return Object.assign(this.wrapSync(layoutIdentity), { layoutManager });
|
|
12404
12403
|
}
|
|
12405
12404
|
// warn user if they do not call create() in the next 30 seconds
|
|
12406
12405
|
setTimeout(() => {
|
|
@@ -12411,23 +12410,6 @@ class LayoutModule extends base_1$5.Base {
|
|
|
12411
12410
|
}, 30000);
|
|
12412
12411
|
return this.wrapSync(this.fin.me.identity);
|
|
12413
12412
|
};
|
|
12414
|
-
// deprecate with CORE-1081
|
|
12415
|
-
_LayoutModule_waitForBackCompatLayoutManager.set(this, async (fin) => {
|
|
12416
|
-
let layoutManager;
|
|
12417
|
-
let resolve;
|
|
12418
|
-
const layoutResolved = new Promise((r) => {
|
|
12419
|
-
resolve = r;
|
|
12420
|
-
});
|
|
12421
|
-
// wait for a layout to be created
|
|
12422
|
-
await fin.me.once('layout-ready', async ({ layoutIdentity }) => {
|
|
12423
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
12424
|
-
layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$3(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
|
|
12425
|
-
// Backward compat - undocumented / not typed openfin-layout as layoutManager
|
|
12426
|
-
// TODO: eventually deprecate this
|
|
12427
|
-
resolve(Object.assign(this.wrapSync(layoutIdentity), { layoutManager }));
|
|
12428
|
-
});
|
|
12429
|
-
return layoutResolved;
|
|
12430
|
-
});
|
|
12431
12413
|
/**
|
|
12432
12414
|
* Returns the layout manager for the current window
|
|
12433
12415
|
* @returns
|
|
@@ -12537,7 +12519,7 @@ class LayoutModule extends base_1$5.Base {
|
|
|
12537
12519
|
}
|
|
12538
12520
|
}
|
|
12539
12521
|
Factory$2.LayoutModule = LayoutModule;
|
|
12540
|
-
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(),
|
|
12522
|
+
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
|
|
12541
12523
|
if (!__classPrivateFieldGet$3(this, _LayoutModule_layoutManager, "f")) {
|
|
12542
12524
|
throw new Error(`You must call init before using the API ${method}`);
|
|
12543
12525
|
}
|