@openfin/core 37.81.20 → 37.81.22
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.d.ts +1964 -0
- package/out/mock-alpha.d.ts +91 -1175
- package/out/mock-beta.d.ts +91 -1175
- package/out/mock-public.d.ts +91 -1175
- package/out/mock.d.ts +91 -1175
- package/out/mock.js +10 -7
- package/package.json +7 -3
package/out/mock.js
CHANGED
|
@@ -15017,6 +15017,14 @@ function requireFdc3Common () {
|
|
|
15017
15017
|
throw new Error(errorToThrow);
|
|
15018
15018
|
}
|
|
15019
15019
|
}
|
|
15020
|
+
async _getChannels() {
|
|
15021
|
+
const channels = await this.client.getContextGroups();
|
|
15022
|
+
// fdc3 implementation of getSystemChannels returns an array of channels, have to decorate over
|
|
15023
|
+
// this so people know that these APIs are not supported
|
|
15024
|
+
return channels.map((channel) => {
|
|
15025
|
+
return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
|
15026
|
+
});
|
|
15027
|
+
}
|
|
15020
15028
|
/**
|
|
15021
15029
|
* Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
|
|
15022
15030
|
* @param channelId
|
|
@@ -15027,7 +15035,7 @@ function requireFdc3Common () {
|
|
|
15027
15035
|
this.wire.sendAction('fdc3-get-or-create-channel').catch((e) => {
|
|
15028
15036
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
15029
15037
|
});
|
|
15030
|
-
const systemChannels = await this.
|
|
15038
|
+
const systemChannels = await this._getChannels();
|
|
15031
15039
|
const userChannel = systemChannels.find((channel) => channel.id === channelId);
|
|
15032
15040
|
if (userChannel) {
|
|
15033
15041
|
return { ...userChannel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
|
@@ -15051,12 +15059,7 @@ function requireFdc3Common () {
|
|
|
15051
15059
|
this.wire.sendAction('fdc3-get-system-channels').catch((e) => {
|
|
15052
15060
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
15053
15061
|
});
|
|
15054
|
-
|
|
15055
|
-
// fdc3 implementation of getSystemChannels returns on array of channels, have to decorate over
|
|
15056
|
-
// this so people know that these APIs are not supported
|
|
15057
|
-
return channels.map((channel) => {
|
|
15058
|
-
return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
|
15059
|
-
});
|
|
15062
|
+
return this._getChannels();
|
|
15060
15063
|
}
|
|
15061
15064
|
/**
|
|
15062
15065
|
* Join all Interop Clients at the given identity to context group `contextGroupId`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/core",
|
|
3
|
-
"version": "37.81.
|
|
3
|
+
"version": "37.81.22",
|
|
4
4
|
"description": "The core renderer entry point of OpenFin",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"main": "out/mock.js",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"prebuild": "rimraf ./out",
|
|
11
11
|
"build:rollup": "rollup --config",
|
|
12
12
|
"build:copy": "cpy src/GlobalOpenFin.d.ts out --flat",
|
|
13
|
-
"build": "
|
|
13
|
+
"build:fdc3": "ts-node scripts/fdc3",
|
|
14
|
+
"build": "run-s build:*",
|
|
14
15
|
"dev:rollup": "npm run build:rollup -- --environment MODE:development",
|
|
15
16
|
"dev:copy": "npm run build:copy",
|
|
16
17
|
"dev": "run-p dev:*",
|
|
@@ -19,7 +20,10 @@
|
|
|
19
20
|
"watch:copy": "npm run dev:copy",
|
|
20
21
|
"ci:prepublish": "of-npm prepublish",
|
|
21
22
|
"ci:postpublish": "of-npm postpublish",
|
|
22
|
-
"ci:publish": "npm publish"
|
|
23
|
+
"ci:publish": "npm publish",
|
|
24
|
+
"test": "run-p test:*",
|
|
25
|
+
"test:sample": "tsc -p test/tsconfig.json",
|
|
26
|
+
"test:imports": "ts-node scripts/verify-imports"
|
|
23
27
|
},
|
|
24
28
|
"files": [
|
|
25
29
|
"out/*",
|