@openfin/core 31.75.1 → 31.75.2
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/package.json +1 -1
- package/src/api/interappbus/channel/index.js +4 -1
- package/src/api/me.d.ts +1 -1
- package/src/api/me.js +2 -1
package/package.json
CHANGED
|
@@ -77,7 +77,10 @@ class Channel extends base_1.EmitterBase {
|
|
|
77
77
|
}
|
|
78
78
|
try {
|
|
79
79
|
const { offer, rtc: rtcPacket } = await __classPrivateFieldGet(this, _Channel_connectionManager, "f").createClientOffer(opts);
|
|
80
|
-
|
|
80
|
+
let connectionUrl;
|
|
81
|
+
if (this.fin.me.isFrame || this.fin.me.isView || this.fin.me.isWindow) {
|
|
82
|
+
connectionUrl = (await this.fin.me.getInfo()).url;
|
|
83
|
+
}
|
|
81
84
|
const { payload: { data: routingInfo } } = await this.wire.sendAction('connect-to-channel', {
|
|
82
85
|
channelName,
|
|
83
86
|
...opts,
|
package/src/api/me.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare function getBaseMe<T extends EntityType = EntityType>(entityType:
|
|
|
33
33
|
export interface WithInterop {
|
|
34
34
|
interop: InteropClient;
|
|
35
35
|
}
|
|
36
|
-
export type Me<MeType extends EntityType> = OpenFin.EntityInfo & (MeType extends 'view' ? EntityTypeHelpers<'view'> & OpenFin.View & WithInterop : MeType extends 'window' ? EntityTypeHelpers<'window'> & OpenFin.Window & WithInterop : MeType extends 'iframe' ? EntityTypeHelpers<'iframe'> & OpenFin.Frame & WithInterop : EntityTypeHelpers<MeType> & WithInterop) & {
|
|
36
|
+
export type Me<MeType extends EntityType> = OpenFin.EntityInfo & (MeType extends 'view' ? EntityTypeHelpers<'view'> & OpenFin.View & WithInterop : MeType extends 'window' ? EntityTypeHelpers<'window'> & OpenFin.Window & WithInterop : MeType extends 'iframe' ? EntityTypeHelpers<'iframe'> & OpenFin.Frame & WithInterop : MeType extends 'external connection' ? EntityTypeHelpers<'external connection'> & OpenFin.ExternalApplication & WithInterop : EntityTypeHelpers<MeType> & WithInterop) & {
|
|
37
37
|
isOpenFin: boolean;
|
|
38
38
|
};
|
|
39
39
|
export declare function getMe<MeType extends EntityType>(wire: Transport<MeType>): Me<MeType>;
|
package/src/api/me.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.getMe = exports.getBaseMe = exports.environmentUnsupportedMessage = void
|
|
|
4
4
|
const view_1 = require("./view");
|
|
5
5
|
const frame_1 = require("./frame");
|
|
6
6
|
const window_1 = require("./window");
|
|
7
|
+
const external_application_1 = require("./external-application");
|
|
7
8
|
exports.environmentUnsupportedMessage = 'You are not running in OpenFin.';
|
|
8
9
|
function getBaseMe(entityType, uuid, name) {
|
|
9
10
|
const entityTypeHelpers = {
|
|
@@ -117,7 +118,7 @@ function getMe(wire) {
|
|
|
117
118
|
isOpenFin: true
|
|
118
119
|
});
|
|
119
120
|
case 'external connection':
|
|
120
|
-
return Object.assign(new
|
|
121
|
+
return Object.assign(new external_application_1.ExternalApplication(wire, { uuid }), getBaseMe(entityType, uuid, name), {
|
|
121
122
|
interop: fallbackInterop,
|
|
122
123
|
isOpenFin: false
|
|
123
124
|
});
|