@openfin/core 30.73.24 → 30.73.25

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.
Files changed (35) hide show
  1. package/package.json +1 -1
  2. package/src/api/application/Instance.d.ts +1 -1
  3. package/src/api/base.d.ts +1 -1
  4. package/src/api/external-application/Instance.d.ts +1 -1
  5. package/src/api/fin.d.ts +1 -1
  6. package/src/api/frame/Instance.d.ts +1 -1
  7. package/src/api/global-hotkey/index.d.ts +1 -1
  8. package/src/api/interappbus/channel/channel.d.ts +1 -1
  9. package/src/api/interappbus/channel/client.d.ts +1 -1
  10. package/src/api/interappbus/channel/connection-manager.d.ts +1 -1
  11. package/src/api/interappbus/channel/index.d.ts +1 -1
  12. package/src/api/interappbus/channel/protocols/classic/message-receiver.d.ts +1 -1
  13. package/src/api/interappbus/channel/protocols/classic/strategy.d.ts +1 -1
  14. package/src/api/interappbus/channel/protocols/rtc/ice-manager.d.ts +1 -1
  15. package/src/api/interappbus/channel/provider.d.ts +1 -1
  16. package/src/api/interappbus/index.d.ts +1 -1
  17. package/src/api/interop/InteropBroker.d.ts +1 -1
  18. package/src/api/interop/InteropClient.d.ts +1 -1
  19. package/src/api/interop/SessionContextGroupClient.d.ts +1 -1
  20. package/src/api/interop/fdc3/fdc3-2.0.d.ts +1 -1
  21. package/src/api/interop/fdc3/fdc3.d.ts +1 -1
  22. package/src/api/me.d.ts +1 -1
  23. package/src/api/platform/Factory.d.ts +1 -1
  24. package/src/api/platform/layout/Instance.d.ts +1 -1
  25. package/src/api/platform/layout/utils/view-overlay.d.ts +1 -1
  26. package/src/api/snapshot-source/Instance.d.ts +1 -1
  27. package/src/api/system/index.d.ts +1 -1
  28. package/src/api/view/Instance.d.ts +1 -1
  29. package/src/api/webcontents/main.d.ts +1 -1
  30. package/src/api/window/Instance.d.ts +1 -1
  31. package/src/browser.js +1 -1
  32. package/src/mock.js +1 -1
  33. package/src/transport/fin_store.d.ts +1 -1
  34. package/src/transport/transport.d.ts +2 -2
  35. package/src/transport/transport.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "30.73.24",
3
+ "version": "30.73.25",
4
4
  "license": "SEE LICENSE IN LICENSE.MD",
5
5
  "main": "./src/mock.js",
6
6
  "types": "./src/mock.d.ts",
@@ -1,6 +1,6 @@
1
1
  import type * as OpenFin from '../../OpenFin';
2
2
  import { EmitterBase } from '../base';
3
- import Transport from '../../transport/transport';
3
+ import { Transport } from '../../transport/transport';
4
4
  /**
5
5
  * @classdesc An object representing an application. Allows the developer to create,
6
6
  * execute, show/close an application as well as listen to <a href="tutorial-Application.EventEmitter.html">application events</a>.
package/src/api/base.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { EventEmitter } from 'events';
3
- import Transport from '../transport/transport';
3
+ import { Transport } from '../transport/transport';
4
4
  import type * as OpenFin from '../OpenFin';
5
5
  import Fin from './fin';
6
6
  import { BaseEvent, EventHandler } from './events/base';
@@ -1,6 +1,6 @@
1
1
  import type * as OpenFin from '../../OpenFin';
2
2
  import { EmitterBase } from '../base';
3
- import Transport from '../../transport/transport';
3
+ import { Transport } from '../../transport/transport';
4
4
  /**
5
5
  * @classdesc An ExternalApplication object representing native language adapter connections to the runtime. Allows
6
6
  * the developer to listen to <a href="tutorial-ExternalApplication.EventEmitter.html">application events.</a>
package/src/api/fin.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { EventEmitter } from 'events';
3
3
  import type * as OpenFin from '../OpenFin';
4
- import Transport from '../transport/transport';
4
+ import { Transport } from '../transport/transport';
5
5
  import System from './system/index';
6
6
  import _WindowModule from './window/index';
7
7
  import ApplicationModule from './application/index';
@@ -1,6 +1,6 @@
1
1
  import type * as OpenFin from '../../OpenFin';
2
2
  import { EmitterBase } from '../base';
3
- import Transport from '../../transport/transport';
3
+ import { Transport } from '../../transport/transport';
4
4
  declare type FrameEvents = OpenFin.FrameEvent;
5
5
  /**
6
6
  * @classdesc
@@ -1,6 +1,6 @@
1
1
  import type * as OpenFin from '../../OpenFin';
2
2
  import { EmitterBase } from '../base';
3
- import Transport from '../../transport/transport';
3
+ import { Transport } from '../../transport/transport';
4
4
  /**
5
5
  * The GlobalHotkey module can register/unregister a global hotkeys.
6
6
  * @namespace
@@ -1,5 +1,5 @@
1
1
  import type * as OpenFin from '../../../OpenFin';
2
- import Transport from '../../../transport/transport';
2
+ import { Transport } from '../../../transport/transport';
3
3
  declare type ProviderIdentity = OpenFin.ProviderIdentity;
4
4
  declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
5
5
  declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
@@ -1,6 +1,6 @@
1
1
  import type * as OpenFin from '../../../OpenFin';
2
2
  import { ChannelBase } from './channel';
3
- import Transport from '../../../transport/transport';
3
+ import { Transport } from '../../../transport/transport';
4
4
  import { AnyStrategy } from './protocols/strategy-types';
5
5
  declare type ProviderIdentity = OpenFin.ProviderIdentity;
6
6
  declare type DisconnectionListener = (providerIdentity: ProviderIdentity) => any;
@@ -1,6 +1,6 @@
1
1
  import type * as OpenFin from '../../../OpenFin';
2
2
  import { ChannelMessage } from '.';
3
- import Transport from '../../../transport/transport';
3
+ import { Transport } from '../../../transport/transport';
4
4
  import { Base } from '../../base';
5
5
  import { ClientOffer, LocalSupportedProtocol } from './protocols/index';
6
6
  import { RTCPacket } from './protocols/rtc/endpoint';
@@ -2,7 +2,7 @@ import type * as OpenFin from '../../../OpenFin';
2
2
  import ChannelClient from './client';
3
3
  import { ChannelProvider } from './provider';
4
4
  import { EmitterBase } from '../../base';
5
- import Transport, { Message } from '../../../transport/transport';
5
+ import { Transport, Message } from '../../../transport/transport';
6
6
  import { ChannelEvent } from '../../events/channel';
7
7
  declare type ProviderIdentity = OpenFin.ProviderIdentity;
8
8
  declare type Identity = OpenFin.Identity;
@@ -1,4 +1,4 @@
1
- import Transport from '../../../../../transport/transport';
1
+ import { Transport } from '../../../../../transport/transport';
2
2
  import { Base } from '../../../../base';
3
3
  import { ChannelBase } from '../../channel';
4
4
  export declare class MessageReceiver extends Base {
@@ -1,5 +1,5 @@
1
1
  import type * as OpenFin from '../../../../../OpenFin';
2
- import Transport from '../../../../../transport/transport';
2
+ import { Transport } from '../../../../../transport/transport';
3
3
  import { MessageReceiver } from './message-receiver';
4
4
  import { ChannelStrategy, EndpointPayload } from '../strategy';
5
5
  import { LocalSupportedProtocol } from '..';
@@ -1,4 +1,4 @@
1
- import Transport from '../../../../../transport/transport';
1
+ import { Transport } from '../../../../../transport/transport';
2
2
  import { EmitterBase } from '../../../../base';
3
3
  import { RTCEndpointChannels } from './endpoint';
4
4
  export declare class RTCICEManager extends EmitterBase<any> {
@@ -1,6 +1,6 @@
1
1
  import type * as OpenFin from '../../../OpenFin';
2
2
  import { ChannelBase } from './channel';
3
- import Transport from '../../../transport/transport';
3
+ import { Transport } from '../../../transport/transport';
4
4
  import { AnyStrategy } from './protocols/strategy-types';
5
5
  declare type ProviderIdentity = OpenFin.ProviderIdentity;
6
6
  declare type ClientIdentity = OpenFin.ClientIdentity;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { EventEmitter } from 'events';
3
3
  import { Base } from '../base';
4
- import Transport, { Message } from '../../transport/transport';
4
+ import { Transport, Message } from '../../transport/transport';
5
5
  import { Channel } from './channel/index';
6
6
  /**
7
7
  * A messaging bus that allows for pub/sub messaging between different applications.
@@ -2,7 +2,7 @@ import { TargetApp } from './fdc3/shapes/fdc3v1';
2
2
  import { AppIdentifier } from './fdc3/shapes/fdc3v2';
3
3
  import type * as OpenFin from '../../OpenFin';
4
4
  import { Base } from '../base';
5
- import type Transport from '../../transport/transport';
5
+ import type { Transport } from '../../transport/transport';
6
6
  declare type Identity = OpenFin.Identity;
7
7
  /**
8
8
  * {@link https://developers.openfin.co/of-docs/docs/enable-color-linking}
@@ -1,5 +1,5 @@
1
1
  import type * as OpenFin from '../../OpenFin';
2
- import Transport from '../../transport/transport';
2
+ import { Transport } from '../../transport/transport';
3
3
  import { Base } from '../base';
4
4
  /**
5
5
  * @PORTED
@@ -1,5 +1,5 @@
1
1
  import type * as OpenFin from '../../OpenFin';
2
- import Transport from '../../transport/transport';
2
+ import { Transport } from '../../transport/transport';
3
3
  import { Base } from '../base';
4
4
  export default class SessionContextGroupClient extends Base {
5
5
  #private;
@@ -1,7 +1,7 @@
1
1
  import type * as FDC3v1 from './shapes/fdc3v1';
2
2
  import type * as FDC3v2 from './shapes/fdc3v2';
3
3
  import { Base } from '../../base';
4
- import Transport from '../../../transport/transport';
4
+ import { Transport } from '../../../transport/transport';
5
5
  /**
6
6
  * @typedef { object } AppIdentifier
7
7
  * @summary Identifies an application, or instance of an application, and is used to target FDC3 API calls at specific applications.
@@ -1,6 +1,6 @@
1
1
  import Fdc3Module from './fdc3-1.2';
2
2
  import Fdc3Module2 from './fdc3-2.0';
3
- import type Transport from '../../../transport/transport';
3
+ import type { Transport } from '../../../transport/transport';
4
4
  import { Fdc3Version } from './versions';
5
5
  declare global {
6
6
  interface Window {
package/src/api/me.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type * as OpenFin from '../OpenFin';
2
- import type Transport from '../transport/transport';
2
+ import type { Transport } from '../transport/transport';
3
3
  import type { InteropClient } from './interop';
4
4
  export declare const environmentUnsupportedMessage = "You are not running in OpenFin.";
5
5
  declare type EntityType = OpenFin.EntityType;
@@ -1,7 +1,7 @@
1
1
  import type * as OpenFin from '../../OpenFin';
2
2
  import { Base } from '../base';
3
3
  import { Channel } from '../interappbus/channel/index';
4
- import Transport from '../../transport/transport';
4
+ import { Transport } from '../../transport/transport';
5
5
  import { LayoutModule } from './layout/index';
6
6
  /**
7
7
  * @PORTED
@@ -1,5 +1,5 @@
1
1
  import type * as OpenFin from '../../../OpenFin';
2
- import Transport from '../../../transport/transport';
2
+ import { Transport } from '../../../transport/transport';
3
3
  import { Base } from '../../base';
4
4
  declare type Identity = OpenFin.Identity;
5
5
  declare type InitLayoutOptions = OpenFin.InitLayoutOptions;
@@ -1,5 +1,5 @@
1
1
  import type * as OpenFin from '../../../../OpenFin';
2
- import Transport from '../../../../transport/transport';
2
+ import { Transport } from '../../../../transport/transport';
3
3
  /**
4
4
  * Api client allowing an empty electron BrowserView to be rendered
5
5
  * in the current window with the specified bounds.
@@ -1,6 +1,6 @@
1
1
  import type * as OpenFin from '../../OpenFin';
2
2
  import { Base } from '../base';
3
- import Transport from '../../transport/transport';
3
+ import { Transport } from '../../transport/transport';
4
4
  /**
5
5
  * Enables configuring a SnapshotSource with custom getSnapshot and applySnapshot methods.
6
6
  * @namespace
@@ -1,6 +1,6 @@
1
1
  import type * as OpenFin from '../../OpenFin';
2
2
  import { EmitterBase } from '../base';
3
- import Transport from '../../transport/transport';
3
+ import { Transport } from '../../transport/transport';
4
4
  declare type Identity = OpenFin.Identity;
5
5
  declare type ProxyInfo = OpenFin.ProxyInfo;
6
6
  declare type ProxyConfig = OpenFin.ProxyConfig;
@@ -1,6 +1,6 @@
1
1
  import type * as OpenFin from '../../OpenFin';
2
2
  import { WebContents } from '../webcontents/main';
3
- import Transport from '../../transport/transport';
3
+ import { Transport } from '../../transport/transport';
4
4
  import { Layout } from '../platform/layout';
5
5
  import { ViewEvent } from '../events/view';
6
6
  declare type UpdatableViewOptions = OpenFin.UpdatableViewOptions;
@@ -1,6 +1,6 @@
1
1
  import type * as OpenFin from '../../OpenFin';
2
2
  import { EmitterBase } from '../base';
3
- import Transport from '../../transport/transport';
3
+ import { Transport } from '../../transport/transport';
4
4
  import { BaseEvent } from '../events/base';
5
5
  /**
6
6
  * Configuration for page capture.
@@ -1,5 +1,5 @@
1
1
  import type * as OpenFin from '../../OpenFin';
2
- import Transport from '../../transport/transport';
2
+ import { Transport } from '../../transport/transport';
3
3
  import { WebContents } from '../webcontents/main';
4
4
  /**
5
5
  * @PORTED
package/src/browser.js CHANGED
@@ -16,7 +16,7 @@ async function getRemoteConnectionPayload(fin, uuid = `browser-connection-${Math
16
16
  }
17
17
  exports.getRemoteConnectionPayload = getRemoteConnectionPayload;
18
18
  async function remoteConnect({ uuid, token, address, interopProviderId, withInterop }) {
19
- const wire = new transport_1.default(websocket_1.default, new browser_1.BrowserEnvironment(), {
19
+ const wire = new transport_1.Transport(websocket_1.default, new browser_1.BrowserEnvironment(), {
20
20
  uuid,
21
21
  name: uuid
22
22
  });
package/src/mock.js CHANGED
@@ -85,7 +85,7 @@ class MockEnvironment {
85
85
  exports.fin = ((typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.fin)) ||
86
86
  (() => {
87
87
  const environment = new MockEnvironment();
88
- const transport = new transport_1.default(MockWire, environment, {
88
+ const transport = new transport_1.Transport(MockWire, environment, {
89
89
  uuid: '',
90
90
  name: ''
91
91
  });
@@ -1,4 +1,4 @@
1
1
  import Fin from '../api/fin';
2
- import Transport from './transport';
2
+ import { Transport } from './transport';
3
3
  export declare function registerFin(wire: Transport, fin: Fin): void;
4
4
  export declare function getFin(wire: Transport): Fin;
@@ -10,7 +10,7 @@ import { NamedEvent } from '../api/events/base';
10
10
  import { ErrorPlainObject } from '../util/errors';
11
11
  declare type EntityType = OpenFin.EntityType;
12
12
  export declare type MessageHandler = (data: any) => boolean;
13
- declare class Transport<MeType extends EntityType = EntityType> extends EventEmitter {
13
+ export declare class Transport<MeType extends EntityType = EntityType> extends EventEmitter {
14
14
  #private;
15
15
  protected wireListeners: Map<number, {
16
16
  resolve: Function;
@@ -40,7 +40,6 @@ declare class Transport<MeType extends EntityType = EntityType> extends EventEmi
40
40
  protected onmessage(data: Message<Payload>): void;
41
41
  protected handleMessage(data: Message<Payload>): boolean;
42
42
  }
43
- export default Transport;
44
43
  export interface Message<T> {
45
44
  action: string;
46
45
  payload: T;
@@ -60,3 +59,4 @@ export interface AuthorizationPayload {
60
59
  token: string;
61
60
  file: string;
62
61
  }
62
+ export {};
@@ -12,6 +12,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
12
12
  };
13
13
  var _Transport_wire;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.Transport = void 0;
15
16
  const events_1 = require("events");
16
17
  const wire_1 = require("./wire");
17
18
  const transport_errors_1 = require("./transport-errors");
@@ -189,5 +190,5 @@ class Transport extends events_1.EventEmitter {
189
190
  return true;
190
191
  }
191
192
  }
193
+ exports.Transport = Transport;
192
194
  _Transport_wire = new WeakMap();
193
- exports.default = Transport;