@openfin/node-adapter 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/node-adapter-alpha.d.ts +142 -12
- package/out/node-adapter-beta.d.ts +142 -12
- package/out/node-adapter-public.d.ts +142 -12
- package/out/node-adapter.d.ts +142 -12
- package/out/node-adapter.js +35 -41
- package/package.json +1 -1
package/out/node-adapter.js
CHANGED
@@ -6468,6 +6468,7 @@ function requireInstance () {
|
|
6468
6468
|
return this.wire.sendAction('close-popup-menu', { ...this.identity }).then(() => undefined);
|
6469
6469
|
}
|
6470
6470
|
/**
|
6471
|
+
* @PORTED
|
6471
6472
|
* @typedef {object} PopupOptions
|
6472
6473
|
* @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.
|
6473
6474
|
* @property {string} [url] - Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
|
@@ -6485,6 +6486,7 @@ function requireInstance () {
|
|
6485
6486
|
* @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.
|
6486
6487
|
*/
|
6487
6488
|
/**
|
6489
|
+
* @PORTED
|
6488
6490
|
* @typedef {object} PopupResult
|
6489
6491
|
* @property {Identity} identity - `name` and `uuid` of the popup window that called dispatched this result.
|
6490
6492
|
* @property {'clicked' | 'dismissed'} result - Result of the user interaction with the popup window.
|
@@ -12196,12 +12198,11 @@ class Platform extends base_1$7.EmitterBase {
|
|
12196
12198
|
});
|
12197
12199
|
}
|
12198
12200
|
/**
|
12199
|
-
* ***DEPRECATED - please use Platform.createView.***
|
12201
|
+
* ***DEPRECATED - please use {@link Platform.createView Platform.createView}.***
|
12200
12202
|
* Reparents a specified view in a new target window.
|
12201
12203
|
* @param viewIdentity View identity
|
12202
12204
|
* @param target new owner window identity
|
12203
12205
|
*
|
12204
|
-
* @tutorial Platform.createView
|
12205
12206
|
*/
|
12206
12207
|
async reparentView(viewIdentity, target) {
|
12207
12208
|
var _a;
|
@@ -16266,46 +16267,39 @@ class InteropClient extends base_1$2.Base {
|
|
16266
16267
|
InteropClient$1.InteropClient = InteropClient;
|
16267
16268
|
_InteropClient_clientPromise = new WeakMap(), _InteropClient_sessionContextGroups = new WeakMap();
|
16268
16269
|
|
16269
|
-
var overrideCheck = {};
|
16270
|
+
var overrideCheck$1 = {};
|
16270
16271
|
|
16271
|
-
|
16272
|
-
|
16273
|
-
|
16274
|
-
|
16275
|
-
|
16276
|
-
|
16277
|
-
|
16278
|
-
|
16279
|
-
|
16280
|
-
|
16281
|
-
|
16282
|
-
|
16283
|
-
|
16284
|
-
|
16285
|
-
|
16286
|
-
|
16287
|
-
|
16288
|
-
|
16289
|
-
|
16290
|
-
|
16291
|
-
|
16292
|
-
|
16293
|
-
|
16294
|
-
|
16295
|
-
|
16296
|
-
|
16297
|
-
|
16298
|
-
|
16299
|
-
|
16300
|
-
});
|
16301
|
-
if (notOverridden.length > 0) {
|
16302
|
-
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')}`);
|
16303
|
-
}
|
16304
|
-
}
|
16305
|
-
}
|
16306
|
-
overrideCheck.overrideCheck = overrideCheck$1;
|
16307
|
-
return overrideCheck;
|
16272
|
+
Object.defineProperty(overrideCheck$1, "__esModule", { value: true });
|
16273
|
+
overrideCheck$1.overrideCheck = overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = void 0;
|
16274
|
+
const InteropBroker_1 = requireInteropBroker();
|
16275
|
+
function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
|
16276
|
+
var _a, _b, _c, _d;
|
16277
|
+
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;
|
16278
|
+
return ['1.2', '2.0'].includes(setVersion !== null && setVersion !== void 0 ? setVersion : '') ? setVersion : undefined;
|
16279
|
+
}
|
16280
|
+
overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
|
16281
|
+
// TODO: Unit test this
|
16282
|
+
function overrideCheck(overriddenBroker, fdc3InteropApi) {
|
16283
|
+
if (fdc3InteropApi && fdc3InteropApi === '2.0') {
|
16284
|
+
const mustOverrideAPIs = [
|
16285
|
+
'fdc3HandleFindInstances',
|
16286
|
+
'handleInfoForIntent',
|
16287
|
+
'handleInfoForIntentsByContext',
|
16288
|
+
'fdc3HandleGetAppMetadata',
|
16289
|
+
'fdc3HandleGetInfo',
|
16290
|
+
'fdc3HandleOpen',
|
16291
|
+
'handleFiredIntent',
|
16292
|
+
'handleFiredIntentForContext'
|
16293
|
+
];
|
16294
|
+
const notOverridden = mustOverrideAPIs.filter((api) => {
|
16295
|
+
return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
|
16296
|
+
});
|
16297
|
+
if (notOverridden.length > 0) {
|
16298
|
+
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')}`);
|
16299
|
+
}
|
16300
|
+
}
|
16308
16301
|
}
|
16302
|
+
overrideCheck$1.overrideCheck = overrideCheck;
|
16309
16303
|
|
16310
16304
|
var hasRequiredFactory;
|
16311
16305
|
|
@@ -16319,7 +16313,7 @@ function requireFactory () {
|
|
16319
16313
|
const base_1 = base;
|
16320
16314
|
const InteropBroker_1 = requireInteropBroker();
|
16321
16315
|
const InteropClient_1 = InteropClient$1;
|
16322
|
-
const overrideCheck_1 =
|
16316
|
+
const overrideCheck_1 = overrideCheck$1;
|
16323
16317
|
const common_utils_1 = commonUtils;
|
16324
16318
|
const defaultOverride = (Class) => new Class();
|
16325
16319
|
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.';
|