@openfin/core 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.
Files changed (2) hide show
  1. package/out/mock.js +45 -70
  2. package/package.json +1 -1
package/out/mock.js CHANGED
@@ -11582,7 +11582,7 @@ const validate_1 = validate;
11582
11582
  const base_1$6 = base;
11583
11583
  const common_utils_1 = commonUtils;
11584
11584
  const layout_entities_1 = layoutEntities;
11585
- const layout_constants_1 = layout_constants;
11585
+ const layout_constants_1$1 = layout_constants;
11586
11586
  /**
11587
11587
  *
11588
11588
  * Layouts give app providers the ability to embed multiple views in a single window. The Layout namespace
@@ -11727,7 +11727,7 @@ class Layout extends base_1$6.Base {
11727
11727
  * Lazily constructed {@link LayoutEntitiesClient} bound to this platform's client and identity
11728
11728
  * The client is for {@link LayoutEntitiesController}
11729
11729
  */
11730
- _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)));
11730
+ _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)));
11731
11731
  /**
11732
11732
  * Replaces a Platform window's layout with a new layout.
11733
11733
  *
@@ -11955,11 +11955,12 @@ var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
11955
11955
  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");
11956
11956
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11957
11957
  };
11958
- var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_waitForBackCompatLayoutManager, _LayoutModule_getSafeLayoutManager;
11958
+ var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getSafeLayoutManager;
11959
11959
  Object.defineProperty(Factory$2, "__esModule", { value: true });
11960
11960
  Factory$2.LayoutModule = void 0;
11961
11961
  const base_1$5 = base;
11962
11962
  const Instance_1$2 = Instance$1;
11963
+ const layout_constants_1 = layout_constants;
11963
11964
  /**
11964
11965
  * Static namespace for OpenFin API methods that interact with the {@link Layout} class, available under `fin.Platform.Layout`.
11965
11966
  */
@@ -12019,17 +12020,15 @@ class LayoutModule extends base_1$5.Base {
12019
12020
  }
12020
12021
  __classPrivateFieldSet$4(this, _LayoutModule_layoutInitializationAttempted, true, "f");
12021
12022
  __classPrivateFieldSet$4(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
12022
- // in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
12023
- let backCompatLayoutPromise;
12024
- if (!options.layoutManagerOverride) {
12025
- backCompatLayoutPromise = __classPrivateFieldGet$4(this, _LayoutModule_waitForBackCompatLayoutManager, "f").call(this, this.fin);
12026
- }
12027
12023
  // apply the initial snapshot which in turn will call fin.Platform.Layout.create()
12028
12024
  const platformClient = await this.fin.Platform.getCurrentSync().getClient();
12029
12025
  const snapshot = await platformClient.dispatch('get-initial-layout-snapshot');
12030
12026
  await __classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f").applyLayoutSnapshot(snapshot);
12031
- if (backCompatLayoutPromise) {
12032
- return backCompatLayoutPromise;
12027
+ if (!options.layoutManagerOverride) {
12028
+ // in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
12029
+ const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...this.fin.me.identity };
12030
+ const layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
12031
+ return Object.assign(this.wrapSync(layoutIdentity), { layoutManager });
12033
12032
  }
12034
12033
  // warn user if they do not call create() in the next 30 seconds
12035
12034
  setTimeout(() => {
@@ -12040,23 +12039,6 @@ class LayoutModule extends base_1$5.Base {
12040
12039
  }, 30000);
12041
12040
  return this.wrapSync(this.fin.me.identity);
12042
12041
  };
12043
- // deprecate with CORE-1081
12044
- _LayoutModule_waitForBackCompatLayoutManager.set(this, async (fin) => {
12045
- let layoutManager;
12046
- let resolve;
12047
- const layoutResolved = new Promise((r) => {
12048
- resolve = r;
12049
- });
12050
- // wait for a layout to be created
12051
- await fin.me.once('layout-ready', async ({ layoutIdentity }) => {
12052
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
12053
- layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
12054
- // Backward compat - undocumented / not typed openfin-layout as layoutManager
12055
- // TODO: eventually deprecate this
12056
- resolve(Object.assign(this.wrapSync(layoutIdentity), { layoutManager }));
12057
- });
12058
- return layoutResolved;
12059
- });
12060
12042
  /**
12061
12043
  * Returns the layout manager for the current window
12062
12044
  * @returns
@@ -12166,7 +12148,7 @@ class LayoutModule extends base_1$5.Base {
12166
12148
  }
12167
12149
  }
12168
12150
  Factory$2.LayoutModule = LayoutModule;
12169
- _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_waitForBackCompatLayoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
12151
+ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
12170
12152
  if (!__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f")) {
12171
12153
  throw new Error(`You must call init before using the API ${method}`);
12172
12154
  }
@@ -15086,49 +15068,42 @@ class InteropClient extends base_1$2.Base {
15086
15068
  InteropClient$1.InteropClient = InteropClient;
15087
15069
  _InteropClient_clientPromise = new WeakMap(), _InteropClient_sessionContextGroups = new WeakMap();
15088
15070
 
15089
- var overrideCheck = {};
15071
+ var overrideCheck$1 = {};
15090
15072
 
15091
- var hasRequiredOverrideCheck;
15092
-
15093
- function requireOverrideCheck () {
15094
- if (hasRequiredOverrideCheck) return overrideCheck;
15095
- hasRequiredOverrideCheck = 1;
15096
- Object.defineProperty(overrideCheck, "__esModule", { value: true });
15097
- overrideCheck.overrideCheck = overrideCheck.checkFDC32Overrides = overrideCheck.getDefaultViewFdc3VersionFromAppInfo = void 0;
15098
- const InteropBroker_1 = requireInteropBroker();
15099
- function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
15100
- const setVersion = manifest.platform?.defaultViewOptions?.fdc3InteropApi ?? initialOptions.defaultViewOptions?.fdc3InteropApi;
15101
- return ['1.2', '2.0'].includes(setVersion ?? '') ? setVersion : undefined;
15102
- }
15103
- overrideCheck.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
15104
- function checkFDC32Overrides(overriddenBroker) {
15105
- // These are the APIs that must be overridden for FDC3 2.0 compliance
15106
- const mustOverrideAPIs = [
15107
- 'fdc3HandleFindInstances',
15108
- 'handleInfoForIntent',
15109
- 'handleInfoForIntentsByContext',
15110
- 'fdc3HandleGetAppMetadata',
15111
- 'fdc3HandleGetInfo',
15112
- 'fdc3HandleOpen',
15113
- 'handleFiredIntent',
15114
- 'handleFiredIntentForContext'
15115
- ];
15116
- return mustOverrideAPIs.filter((api) => {
15117
- return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
15118
- });
15119
- }
15120
- overrideCheck.checkFDC32Overrides = checkFDC32Overrides;
15121
- function overrideCheck$1(overriddenBroker, fdc3InteropApi) {
15122
- if (fdc3InteropApi && fdc3InteropApi === '2.0') {
15123
- const notOverridden = checkFDC32Overrides(overriddenBroker);
15124
- if (notOverridden.length > 0) {
15125
- console.warn(`WARNING: FDC3 2.0 has been set as a default option for Views in this Platform, but the required InteropBroker APIs for FDC3 2.0 compliance have not all been overridden.\nThe following APIs need to be overridden:\n${notOverridden.join('\n')}`);
15126
- }
15127
- }
15128
- }
15129
- overrideCheck.overrideCheck = overrideCheck$1;
15130
- return overrideCheck;
15073
+ Object.defineProperty(overrideCheck$1, "__esModule", { value: true });
15074
+ overrideCheck$1.overrideCheck = overrideCheck$1.checkFDC32Overrides = overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = void 0;
15075
+ const InteropBroker_1 = requireInteropBroker();
15076
+ function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
15077
+ const setVersion = manifest.platform?.defaultViewOptions?.fdc3InteropApi ?? initialOptions.defaultViewOptions?.fdc3InteropApi;
15078
+ return ['1.2', '2.0'].includes(setVersion ?? '') ? setVersion : undefined;
15079
+ }
15080
+ overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
15081
+ function checkFDC32Overrides(overriddenBroker) {
15082
+ // These are the APIs that must be overridden for FDC3 2.0 compliance
15083
+ const mustOverrideAPIs = [
15084
+ 'fdc3HandleFindInstances',
15085
+ 'handleInfoForIntent',
15086
+ 'handleInfoForIntentsByContext',
15087
+ 'fdc3HandleGetAppMetadata',
15088
+ 'fdc3HandleGetInfo',
15089
+ 'fdc3HandleOpen',
15090
+ 'handleFiredIntent',
15091
+ 'handleFiredIntentForContext'
15092
+ ];
15093
+ return mustOverrideAPIs.filter((api) => {
15094
+ return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
15095
+ });
15096
+ }
15097
+ overrideCheck$1.checkFDC32Overrides = checkFDC32Overrides;
15098
+ function overrideCheck(overriddenBroker, fdc3InteropApi) {
15099
+ if (fdc3InteropApi && fdc3InteropApi === '2.0') {
15100
+ const notOverridden = checkFDC32Overrides(overriddenBroker);
15101
+ if (notOverridden.length > 0) {
15102
+ console.warn(`WARNING: FDC3 2.0 has been set as a default option for Views in this Platform, but the required InteropBroker APIs for FDC3 2.0 compliance have not all been overridden.\nThe following APIs need to be overridden:\n${notOverridden.join('\n')}`);
15103
+ }
15104
+ }
15131
15105
  }
15106
+ overrideCheck$1.overrideCheck = overrideCheck;
15132
15107
 
15133
15108
  var hasRequiredFactory;
15134
15109
 
@@ -15142,7 +15117,7 @@ function requireFactory () {
15142
15117
  const base_1 = base;
15143
15118
  const InteropBroker_1 = requireInteropBroker();
15144
15119
  const InteropClient_1 = InteropClient$1;
15145
- const overrideCheck_1 = requireOverrideCheck();
15120
+ const overrideCheck_1 = overrideCheck$1;
15146
15121
  const common_utils_1 = commonUtils;
15147
15122
  const defaultOverride = (Class) => new Class();
15148
15123
  const BrokerParamAccessError = 'You have attempted to use or modify InteropBroker parameters, which is not allowed. You are likely using an older InteropBroker override scheme. Please consult our Interop docs for guidance on migrating to the new override scheme.';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "36.79.3",
3
+ "version": "36.79.4",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",