@openfin/core 34.78.65 → 34.78.67
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-alpha.d.ts +1 -1
- package/out/mock-beta.d.ts +1 -1
- package/out/mock-public.d.ts +1 -1
- package/out/mock.d.ts +5 -1
- package/out/mock.js +31 -20
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
|
@@ -9944,7 +9944,7 @@ declare type MutableWindowOptions = {
|
|
|
9944
9944
|
showTaskbarIcon: boolean;
|
|
9945
9945
|
interop: InteropConfig;
|
|
9946
9946
|
/* Excluded from this release type: _internalWorkspaceData */
|
|
9947
|
-
|
|
9947
|
+
/* Excluded from this release type: workspacePlatform */
|
|
9948
9948
|
};
|
|
9949
9949
|
|
|
9950
9950
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
package/out/mock-beta.d.ts
CHANGED
|
@@ -9944,7 +9944,7 @@ declare type MutableWindowOptions = {
|
|
|
9944
9944
|
showTaskbarIcon: boolean;
|
|
9945
9945
|
interop: InteropConfig;
|
|
9946
9946
|
/* Excluded from this release type: _internalWorkspaceData */
|
|
9947
|
-
|
|
9947
|
+
/* Excluded from this release type: workspacePlatform */
|
|
9948
9948
|
};
|
|
9949
9949
|
|
|
9950
9950
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
package/out/mock-public.d.ts
CHANGED
|
@@ -9944,7 +9944,7 @@ declare type MutableWindowOptions = {
|
|
|
9944
9944
|
showTaskbarIcon: boolean;
|
|
9945
9945
|
interop: InteropConfig;
|
|
9946
9946
|
/* Excluded from this release type: _internalWorkspaceData */
|
|
9947
|
-
|
|
9947
|
+
/* Excluded from this release type: workspacePlatform */
|
|
9948
9948
|
};
|
|
9949
9949
|
|
|
9950
9950
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
package/out/mock.d.ts
CHANGED
|
@@ -10229,7 +10229,11 @@ declare type MutableWindowOptions = {
|
|
|
10229
10229
|
* Used by Workspace to store custom data. Overwriting or modifying this field may impact the functionality of Workspace
|
|
10230
10230
|
*/
|
|
10231
10231
|
_internalWorkspaceData: any;
|
|
10232
|
-
|
|
10232
|
+
/**
|
|
10233
|
+
* @internal
|
|
10234
|
+
* Used by workspace to stork platform specific options. Overwriting or modifying this field may impact the functionality of Workspace
|
|
10235
|
+
*/
|
|
10236
|
+
workspacePlatform: WorkspacePlatformOptions;
|
|
10233
10237
|
};
|
|
10234
10238
|
|
|
10235
10239
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
package/out/mock.js
CHANGED
|
@@ -12975,7 +12975,7 @@ var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
12975
12975
|
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");
|
|
12976
12976
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
12977
12977
|
};
|
|
12978
|
-
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager,
|
|
12978
|
+
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_waitForBackCompatLayoutManager, _LayoutModule_throwIfLayoutManagerNotInitialized;
|
|
12979
12979
|
Object.defineProperty(Factory$2, "__esModule", { value: true });
|
|
12980
12980
|
Factory$2.LayoutModule = void 0;
|
|
12981
12981
|
const base_1$5 = base;
|
|
@@ -13039,12 +13039,17 @@ class LayoutModule extends base_1$5.Base {
|
|
|
13039
13039
|
}
|
|
13040
13040
|
__classPrivateFieldSet$4(this, _LayoutModule_layoutInitializationAttempted, true, "f");
|
|
13041
13041
|
__classPrivateFieldSet$4(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
|
|
13042
|
+
// in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
|
|
13043
|
+
let backCompatLayoutPromise;
|
|
13044
|
+
if (!options.layoutManagerOverride) {
|
|
13045
|
+
backCompatLayoutPromise = __classPrivateFieldGet$4(this, _LayoutModule_waitForBackCompatLayoutManager, "f").call(this, this.fin);
|
|
13046
|
+
}
|
|
13042
13047
|
// apply the initial snapshot which in turn will call fin.Platform.Layout.create()
|
|
13043
13048
|
const platformClient = await this.fin.Platform.getCurrentSync().getClient();
|
|
13044
13049
|
const snapshot = await platformClient.dispatch('get-initial-layout-snapshot');
|
|
13045
13050
|
await __classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f").applyLayoutSnapshot(snapshot);
|
|
13046
|
-
if (
|
|
13047
|
-
return
|
|
13051
|
+
if (backCompatLayoutPromise) {
|
|
13052
|
+
return backCompatLayoutPromise;
|
|
13048
13053
|
}
|
|
13049
13054
|
// warn user if they do not call create() in the next 30 seconds
|
|
13050
13055
|
setTimeout(() => {
|
|
@@ -13055,7 +13060,8 @@ class LayoutModule extends base_1$5.Base {
|
|
|
13055
13060
|
}, 30000);
|
|
13056
13061
|
return this.wrapSync(this.fin.me.identity);
|
|
13057
13062
|
};
|
|
13058
|
-
|
|
13063
|
+
// deprecate with CORE-1081
|
|
13064
|
+
_LayoutModule_waitForBackCompatLayoutManager.set(this, async (fin) => {
|
|
13059
13065
|
let layoutManager;
|
|
13060
13066
|
let resolve;
|
|
13061
13067
|
const layoutResolved = new Promise((r) => {
|
|
@@ -13184,7 +13190,7 @@ class LayoutModule extends base_1$5.Base {
|
|
|
13184
13190
|
}
|
|
13185
13191
|
}
|
|
13186
13192
|
Factory$2.LayoutModule = LayoutModule;
|
|
13187
|
-
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(),
|
|
13193
|
+
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_waitForBackCompatLayoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_throwIfLayoutManagerNotInitialized = function _LayoutModule_throwIfLayoutManagerNotInitialized(method) {
|
|
13188
13194
|
if (!__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f")) {
|
|
13189
13195
|
throw new Error(`You must call init before using the API ${method}`);
|
|
13190
13196
|
}
|
|
@@ -16251,29 +16257,33 @@ function requireOverrideCheck () {
|
|
|
16251
16257
|
if (hasRequiredOverrideCheck) return overrideCheck;
|
|
16252
16258
|
hasRequiredOverrideCheck = 1;
|
|
16253
16259
|
Object.defineProperty(overrideCheck, "__esModule", { value: true });
|
|
16254
|
-
overrideCheck.overrideCheck = overrideCheck.getDefaultViewFdc3VersionFromAppInfo = void 0;
|
|
16260
|
+
overrideCheck.overrideCheck = overrideCheck.checkFDC32Overrides = overrideCheck.getDefaultViewFdc3VersionFromAppInfo = void 0;
|
|
16255
16261
|
const InteropBroker_1 = requireInteropBroker();
|
|
16256
16262
|
function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
|
|
16257
16263
|
const setVersion = manifest.platform?.defaultViewOptions?.fdc3InteropApi ?? initialOptions.defaultViewOptions?.fdc3InteropApi;
|
|
16258
16264
|
return ['1.2', '2.0'].includes(setVersion ?? '') ? setVersion : undefined;
|
|
16259
16265
|
}
|
|
16260
16266
|
overrideCheck.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
|
|
16261
|
-
|
|
16267
|
+
function checkFDC32Overrides(overriddenBroker) {
|
|
16268
|
+
// These are the APIs that must be overridden for FDC3 2.0 compliance
|
|
16269
|
+
const mustOverrideAPIs = [
|
|
16270
|
+
'fdc3HandleFindInstances',
|
|
16271
|
+
'handleInfoForIntent',
|
|
16272
|
+
'handleInfoForIntentsByContext',
|
|
16273
|
+
'fdc3HandleGetAppMetadata',
|
|
16274
|
+
'fdc3HandleGetInfo',
|
|
16275
|
+
'fdc3HandleOpen',
|
|
16276
|
+
'handleFiredIntent',
|
|
16277
|
+
'handleFiredIntentForContext'
|
|
16278
|
+
];
|
|
16279
|
+
return mustOverrideAPIs.filter((api) => {
|
|
16280
|
+
return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
|
|
16281
|
+
});
|
|
16282
|
+
}
|
|
16283
|
+
overrideCheck.checkFDC32Overrides = checkFDC32Overrides;
|
|
16262
16284
|
function overrideCheck$1(overriddenBroker, fdc3InteropApi) {
|
|
16263
16285
|
if (fdc3InteropApi && fdc3InteropApi === '2.0') {
|
|
16264
|
-
const
|
|
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
|
-
});
|
|
16286
|
+
const notOverridden = checkFDC32Overrides(overriddenBroker);
|
|
16277
16287
|
if (notOverridden.length > 0) {
|
|
16278
16288
|
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
16289
|
}
|
|
@@ -17185,6 +17195,7 @@ var mockWire = {};
|
|
|
17185
17195
|
|
|
17186
17196
|
Object.defineProperty(mockWire, "__esModule", { value: true });
|
|
17187
17197
|
mockWire.MockWire = void 0;
|
|
17198
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
17188
17199
|
const events_1 = require$$0;
|
|
17189
17200
|
class MockWire extends events_1.EventEmitter {
|
|
17190
17201
|
connect() {
|