@openfin/core 34.78.9 → 34.78.10

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 CHANGED
@@ -6448,6 +6448,7 @@ function requireInstance () {
6448
6448
  return this.wire.sendAction('close-popup-menu', { ...this.identity }).then(() => undefined);
6449
6449
  }
6450
6450
  /**
6451
+ * @PORTED
6451
6452
  * @typedef {object} PopupOptions
6452
6453
  * @property {string} [name] - If a window with this `name` exists, it will be shown as a popup. Otherwise, a new window with this `name` will be created. If this `name` is undefined, `initialOptions.name` will be used. If this `name` and `intialOptions.name` are both undefined, a `name` will be generated.
6453
6454
  * @property {string} [url] - Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
@@ -6465,6 +6466,7 @@ function requireInstance () {
6465
6466
  * @property {boolean} [hideOnClose] - Hide the popup window instead of closing whenever `close` is called on it. Note: if this is `true` and `blurBehavior` and/or `resultDispatchBehavior` are set to `close`, the window will be hidden.
6466
6467
  */
6467
6468
  /**
6469
+ * @PORTED
6468
6470
  * @typedef {object} PopupResult
6469
6471
  * @property {Identity} identity - `name` and `uuid` of the popup window that called dispatched this result.
6470
6472
  * @property {'clicked' | 'dismissed'} result - Result of the user interaction with the popup window.
@@ -12176,12 +12178,11 @@ class Platform extends base_1$7.EmitterBase {
12176
12178
  });
12177
12179
  }
12178
12180
  /**
12179
- * ***DEPRECATED - please use Platform.createView.***
12181
+ * ***DEPRECATED - please use {@link Platform.createView Platform.createView}.***
12180
12182
  * Reparents a specified view in a new target window.
12181
12183
  * @param viewIdentity View identity
12182
12184
  * @param target new owner window identity
12183
12185
  *
12184
- * @tutorial Platform.createView
12185
12186
  */
12186
12187
  async reparentView(viewIdentity, target) {
12187
12188
  var _a;
@@ -16246,46 +16247,39 @@ class InteropClient extends base_1$2.Base {
16246
16247
  InteropClient$1.InteropClient = InteropClient;
16247
16248
  _InteropClient_clientPromise = new WeakMap(), _InteropClient_sessionContextGroups = new WeakMap();
16248
16249
 
16249
- var overrideCheck = {};
16250
+ var overrideCheck$1 = {};
16250
16251
 
16251
- var hasRequiredOverrideCheck;
16252
-
16253
- function requireOverrideCheck () {
16254
- if (hasRequiredOverrideCheck) return overrideCheck;
16255
- hasRequiredOverrideCheck = 1;
16256
- Object.defineProperty(overrideCheck, "__esModule", { value: true });
16257
- overrideCheck.overrideCheck = overrideCheck.getDefaultViewFdc3VersionFromAppInfo = void 0;
16258
- const InteropBroker_1 = requireInteropBroker();
16259
- function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
16260
- var _a, _b, _c, _d;
16261
- const setVersion = (_c = (_b = (_a = manifest.platform) === null || _a === void 0 ? void 0 : _a.defaultViewOptions) === null || _b === void 0 ? void 0 : _b.fdc3InteropApi) !== null && _c !== void 0 ? _c : (_d = initialOptions.defaultViewOptions) === null || _d === void 0 ? void 0 : _d.fdc3InteropApi;
16262
- return ['1.2', '2.0'].includes(setVersion !== null && setVersion !== void 0 ? setVersion : '') ? setVersion : undefined;
16263
- }
16264
- overrideCheck.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
16265
- // TODO: Unit test this
16266
- function overrideCheck$1(overriddenBroker, fdc3InteropApi) {
16267
- if (fdc3InteropApi && fdc3InteropApi === '2.0') {
16268
- const mustOverrideAPIs = [
16269
- 'fdc3HandleFindInstances',
16270
- 'handleInfoForIntent',
16271
- 'handleInfoForIntentsByContext',
16272
- 'fdc3HandleGetAppMetadata',
16273
- 'fdc3HandleGetInfo',
16274
- 'fdc3HandleOpen',
16275
- 'handleFiredIntent',
16276
- 'handleFiredIntentForContext'
16277
- ];
16278
- const notOverridden = mustOverrideAPIs.filter((api) => {
16279
- return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
16280
- });
16281
- if (notOverridden.length > 0) {
16282
- 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')}`);
16283
- }
16284
- }
16285
- }
16286
- overrideCheck.overrideCheck = overrideCheck$1;
16287
- return overrideCheck;
16252
+ Object.defineProperty(overrideCheck$1, "__esModule", { value: true });
16253
+ overrideCheck$1.overrideCheck = overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = void 0;
16254
+ const InteropBroker_1 = requireInteropBroker();
16255
+ function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
16256
+ var _a, _b, _c, _d;
16257
+ const setVersion = (_c = (_b = (_a = manifest.platform) === null || _a === void 0 ? void 0 : _a.defaultViewOptions) === null || _b === void 0 ? void 0 : _b.fdc3InteropApi) !== null && _c !== void 0 ? _c : (_d = initialOptions.defaultViewOptions) === null || _d === void 0 ? void 0 : _d.fdc3InteropApi;
16258
+ return ['1.2', '2.0'].includes(setVersion !== null && setVersion !== void 0 ? setVersion : '') ? setVersion : undefined;
16259
+ }
16260
+ overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
16261
+ // TODO: Unit test this
16262
+ function overrideCheck(overriddenBroker, fdc3InteropApi) {
16263
+ if (fdc3InteropApi && fdc3InteropApi === '2.0') {
16264
+ const mustOverrideAPIs = [
16265
+ 'fdc3HandleFindInstances',
16266
+ 'handleInfoForIntent',
16267
+ 'handleInfoForIntentsByContext',
16268
+ 'fdc3HandleGetAppMetadata',
16269
+ 'fdc3HandleGetInfo',
16270
+ 'fdc3HandleOpen',
16271
+ 'handleFiredIntent',
16272
+ 'handleFiredIntentForContext'
16273
+ ];
16274
+ const notOverridden = mustOverrideAPIs.filter((api) => {
16275
+ return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
16276
+ });
16277
+ if (notOverridden.length > 0) {
16278
+ 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')}`);
16279
+ }
16280
+ }
16288
16281
  }
16282
+ overrideCheck$1.overrideCheck = overrideCheck;
16289
16283
 
16290
16284
  var hasRequiredFactory;
16291
16285
 
@@ -16299,7 +16293,7 @@ function requireFactory () {
16299
16293
  const base_1 = base;
16300
16294
  const InteropBroker_1 = requireInteropBroker();
16301
16295
  const InteropClient_1 = InteropClient$1;
16302
- const overrideCheck_1 = requireOverrideCheck();
16296
+ const overrideCheck_1 = overrideCheck$1;
16303
16297
  const common_utils_1 = commonUtils;
16304
16298
  const defaultOverride = (Class) => new Class();
16305
16299
  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": "34.78.9",
3
+ "version": "34.78.10",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.MD",
6
6
  "main": "out/mock.js",