@openfin/fdc3-api 38.83.90 → 39.81.3
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/fdc3-api-alpha.d.ts +287 -1228
- package/out/fdc3-api-beta.d.ts +287 -1228
- package/out/fdc3-api-public.d.ts +287 -1228
- package/out/fdc3-api.d.ts +287 -1228
- package/out/fdc3-api.js +14 -43
- package/package.json +1 -1
package/out/fdc3-api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var require$$2 = require('lodash
|
|
3
|
+
var require$$2 = require('lodash');
|
|
4
4
|
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
6
|
|
|
@@ -77,32 +77,9 @@ var utils$1 = {};
|
|
|
77
77
|
|
|
78
78
|
var PrivateChannelClient$1 = {};
|
|
79
79
|
|
|
80
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
81
|
-
if (k2 === undefined) k2 = k;
|
|
82
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
83
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
84
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
85
|
-
}
|
|
86
|
-
Object.defineProperty(o, k2, desc);
|
|
87
|
-
}) : (function(o, m, k, k2) {
|
|
88
|
-
if (k2 === undefined) k2 = k;
|
|
89
|
-
o[k2] = m[k];
|
|
90
|
-
}));
|
|
91
|
-
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
92
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
93
|
-
}) : function(o, v) {
|
|
94
|
-
o["default"] = v;
|
|
95
|
-
});
|
|
96
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
97
|
-
if (mod && mod.__esModule) return mod;
|
|
98
|
-
var result = {};
|
|
99
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
100
|
-
__setModuleDefault(result, mod);
|
|
101
|
-
return result;
|
|
102
|
-
};
|
|
103
80
|
Object.defineProperty(PrivateChannelClient$1, "__esModule", { value: true });
|
|
104
81
|
PrivateChannelClient$1.PrivateChannelClient = void 0;
|
|
105
|
-
const utils =
|
|
82
|
+
const utils = utils$2;
|
|
106
83
|
class PrivateChannelClient {
|
|
107
84
|
constructor(client, id) {
|
|
108
85
|
this.id = id;
|
|
@@ -191,14 +168,11 @@ class PrivateChannelClient {
|
|
|
191
168
|
PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
|
|
192
169
|
|
|
193
170
|
(function (exports) {
|
|
194
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
195
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
196
|
-
};
|
|
197
171
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
198
172
|
exports.getIntentResolution = exports.isChannel = exports.isContext = exports.connectPrivateChannel = exports.buildAppChannelObject = exports.buildPrivateChannelObject = exports.ChannelError = exports.ResultError = exports.UnsupportedChannelApiError = exports.getUnsupportedChannelApis = void 0;
|
|
199
173
|
const utils_1 = utils$2;
|
|
200
174
|
const PrivateChannelClient_1 = PrivateChannelClient$1;
|
|
201
|
-
const
|
|
175
|
+
const lodash_1 = require$$2;
|
|
202
176
|
const getUnsupportedChannelApis = (channelType) => {
|
|
203
177
|
return {
|
|
204
178
|
addContextListener: () => {
|
|
@@ -326,7 +300,7 @@ PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
|
|
|
326
300
|
const wrappedHandler = (context, contextMetadata) => {
|
|
327
301
|
if (first) {
|
|
328
302
|
first = false;
|
|
329
|
-
if ((0,
|
|
303
|
+
if ((0, lodash_1.isEqual)(currentContext, context)) {
|
|
330
304
|
return;
|
|
331
305
|
}
|
|
332
306
|
}
|
|
@@ -1182,14 +1156,11 @@ function requireInteropClient () {
|
|
|
1182
1156
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1183
1157
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
1184
1158
|
};
|
|
1185
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
1186
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1187
|
-
};
|
|
1188
1159
|
var _InteropClient_clientPromise, _InteropClient_sessionContextGroups;
|
|
1189
1160
|
Object.defineProperty(InteropClient, "__esModule", { value: true });
|
|
1190
1161
|
InteropClient.InteropClient = void 0;
|
|
1191
1162
|
const base_1 = base;
|
|
1192
|
-
const SessionContextGroupClient_1 =
|
|
1163
|
+
const SessionContextGroupClient_1 = SessionContextGroupClient$1;
|
|
1193
1164
|
const fdc3_1_2_1 = requireFdc31_2();
|
|
1194
1165
|
const fdc3_2_0_1 = requireFdc32_0();
|
|
1195
1166
|
const utils_1 = utils$2;
|
|
@@ -1796,16 +1767,13 @@ function requireFdc3Common () {
|
|
|
1796
1767
|
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");
|
|
1797
1768
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
1798
1769
|
};
|
|
1799
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
1800
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1801
|
-
};
|
|
1802
1770
|
var _FDC3ModuleBase_producer;
|
|
1803
1771
|
Object.defineProperty(fdc3Common, "__esModule", { value: true });
|
|
1804
1772
|
fdc3Common.FDC3ModuleBase = void 0;
|
|
1805
1773
|
const utils_1 = utils$1;
|
|
1806
1774
|
const utils_2 = utils$2;
|
|
1807
1775
|
const InteropClient_1 = requireInteropClient();
|
|
1808
|
-
const
|
|
1776
|
+
const lodash_1 = require$$2;
|
|
1809
1777
|
class FDC3ModuleBase {
|
|
1810
1778
|
get client() {
|
|
1811
1779
|
return __classPrivateFieldGet(this, _FDC3ModuleBase_producer, "f").call(this);
|
|
@@ -1994,7 +1962,7 @@ function requireFdc3Common () {
|
|
|
1994
1962
|
const wrappedHandler = (context, contextMetadata) => {
|
|
1995
1963
|
if (first) {
|
|
1996
1964
|
first = false;
|
|
1997
|
-
if ((0,
|
|
1965
|
+
if ((0, lodash_1.isEqual)(currentContext, context)) {
|
|
1998
1966
|
return;
|
|
1999
1967
|
}
|
|
2000
1968
|
}
|
|
@@ -2226,11 +2194,14 @@ function requireFdc31_2 () {
|
|
|
2226
2194
|
this.wire.sendAction('fdc3-get-info').catch((e) => {
|
|
2227
2195
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
2228
2196
|
});
|
|
2229
|
-
|
|
2197
|
+
// @ts-expect-error
|
|
2198
|
+
const { uuid, fdc3InteropApi } = fin.__internal_.initialOptions;
|
|
2199
|
+
// @ts-expect-error
|
|
2200
|
+
const runtimeVersion = fin.desktop.getVersion();
|
|
2230
2201
|
return {
|
|
2231
|
-
|
|
2232
|
-
provider: `openfin-${
|
|
2233
|
-
|
|
2202
|
+
fdc3Version: fdc3InteropApi,
|
|
2203
|
+
provider: `openfin-${uuid}`,
|
|
2204
|
+
providerVersion: runtimeVersion
|
|
2234
2205
|
};
|
|
2235
2206
|
}
|
|
2236
2207
|
}
|