@openfin/core 30.73.22 → 30.73.26

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 (67) hide show
  1. package/package.json +1 -1
  2. package/src/api/application/Factory.d.ts +1 -1
  3. package/src/api/application/Instance.d.ts +1 -1
  4. package/src/api/base.d.ts +4 -3
  5. package/src/api/clipboard/index.d.ts +1 -1
  6. package/src/api/events/application.d.ts +1 -1
  7. package/src/api/events/globalHotkey.d.ts +3 -2
  8. package/src/api/events/system.d.ts +1 -1
  9. package/src/api/events/view.d.ts +1 -1
  10. package/src/api/events/webcontents.d.ts +1 -1
  11. package/src/api/events/window.d.ts +1 -1
  12. package/src/api/external-application/Factory.d.ts +1 -1
  13. package/src/api/external-application/Instance.d.ts +1 -1
  14. package/src/api/fin.d.ts +3 -2
  15. package/src/api/frame/Factory.d.ts +1 -1
  16. package/src/api/frame/Instance.d.ts +1 -1
  17. package/src/api/global-hotkey/index.d.ts +1 -1
  18. package/src/api/interappbus/channel/channel.d.ts +6 -5
  19. package/src/api/interappbus/channel/client.d.ts +2 -2
  20. package/src/api/interappbus/channel/connection-manager.d.ts +1 -1
  21. package/src/api/interappbus/channel/index.d.ts +4 -3
  22. package/src/api/interappbus/channel/protocols/classic/strategy.d.ts +3 -2
  23. package/src/api/interappbus/channel/protocols/rtc/endpoint.d.ts +3 -2
  24. package/src/api/interappbus/channel/protocols/rtc/strategy.d.ts +3 -2
  25. package/src/api/interappbus/channel/protocols/strategy.d.ts +3 -2
  26. package/src/api/interappbus/channel/provider.d.ts +3 -3
  27. package/src/api/interop/Factory.d.ts +1 -1
  28. package/src/api/interop/InteropBroker.d.ts +3 -2
  29. package/src/api/interop/InteropClient.d.ts +1 -1
  30. package/src/api/interop/SessionContextGroupBroker.d.ts +1 -1
  31. package/src/api/interop/SessionContextGroupClient.d.ts +1 -1
  32. package/src/api/interop/fdc3/PrivateChannelClient.d.ts +1 -1
  33. package/src/api/interop/fdc3/PrivateChannelProvider.d.ts +1 -1
  34. package/src/api/interop/fdc3/fdc3-1.2.d.ts +1 -1
  35. package/src/api/interop/fdc3/fdc3-2.0.d.ts +2 -2
  36. package/src/api/interop/fdc3/utils.d.ts +3 -3
  37. package/src/api/interop/utils.d.ts +1 -1
  38. package/src/api/me.d.ts +3 -2
  39. package/src/api/platform/Factory.d.ts +1 -1
  40. package/src/api/platform/Instance.d.ts +1 -1
  41. package/src/api/platform/common-utils.d.ts +2 -2
  42. package/src/api/platform/layout/Factory.d.ts +3 -2
  43. package/src/api/platform/layout/Instance.d.ts +5 -4
  44. package/src/api/platform/layout/controllers/tab-drag-controller.d.ts +1 -1
  45. package/src/api/platform/layout/shapes.d.ts +3 -2
  46. package/src/api/platform/layout/utils/view-overlay.d.ts +1 -1
  47. package/src/api/snapshot-source/Factory.d.ts +1 -1
  48. package/src/api/snapshot-source/Instance.d.ts +1 -1
  49. package/src/api/snapshot-source/utils.d.ts +1 -1
  50. package/src/api/system/index.d.ts +1 -1
  51. package/src/api/view/Factory.d.ts +1 -1
  52. package/src/api/view/Instance.d.ts +1 -1
  53. package/src/api/webcontents/main.d.ts +1 -1
  54. package/src/api/window/Factory.d.ts +1 -1
  55. package/src/api/window/Instance.d.ts +1 -1
  56. package/src/browser.d.ts +1 -1
  57. package/src/environment/browser.d.ts +3 -2
  58. package/src/environment/environment.d.ts +3 -2
  59. package/src/environment/node-env.d.ts +3 -2
  60. package/src/environment/openfin-env.d.ts +3 -2
  61. package/src/fdc3.d.ts +1 -1
  62. package/src/mock.d.ts +1 -1
  63. package/src/mock.js +0 -1
  64. package/src/shapes/WebOptions.d.ts +1 -1
  65. package/src/shapes/WindowOptions.d.ts +1 -1
  66. package/src/shapes/protocol.d.ts +1 -1
  67. package/src/transport/transport.d.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "30.73.22",
3
+ "version": "30.73.26",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./src/mock.js",
6
6
  "types": "./src/mock.d.ts",
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { Base } from '../base';
3
3
  /**
4
4
  * @typedef {object} ApplicationOptions
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { EmitterBase } from '../base';
3
3
  import Transport from '../../transport/transport';
4
4
  /**
package/src/api/base.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /// <reference types="node" />
2
2
  import { EventEmitter } from 'events';
3
- import * as OpenFin from '../OpenFin';
3
+ import type * as OpenFin from '../OpenFin';
4
4
  import Transport from '../transport/transport';
5
5
  import Fin from './fin';
6
6
  import { BaseEventMap } from './events/base';
7
- import ApplicationIdentity = OpenFin.ApplicationIdentity;
8
- import Identity = OpenFin.Identity;
7
+ declare type ApplicationIdentity = OpenFin.ApplicationIdentity;
8
+ declare type Identity = OpenFin.Identity;
9
9
  export declare class Base {
10
10
  wire: Transport;
11
11
  constructor(wire: Transport);
@@ -44,3 +44,4 @@ export declare class Reply<TOPIC extends string, TYPE extends string | void> imp
44
44
  uuid: string;
45
45
  name: string;
46
46
  }
47
+ export {};
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { Base } from '../base';
3
3
  /**
4
4
  * WriteRequestType interface
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { ApplicationEvent, BaseEventMap, WindowEvent } from './base';
3
3
  import { PropagatedWindowEvents, WindowAlertRequestedEvent, WindowAuthRequestedEvent, WindowEndLoadEvent, WindowPerformanceReport } from './window';
4
4
  import { PropagatedViewEvents } from './view';
@@ -1,6 +1,6 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { BaseEventMap, RuntimeEvent } from './base';
3
- import Identity = OpenFin.Identity;
3
+ declare type Identity = OpenFin.Identity;
4
4
  export interface GlobalHotkeyEvent<Type> extends RuntimeEvent<'global-hotkey', Type> {
5
5
  identity: Identity;
6
6
  hotkey: string;
@@ -9,3 +9,4 @@ export interface GlobalHotkeyEvents extends BaseEventMap {
9
9
  registered: GlobalHotkeyEvent<'registered'>;
10
10
  unregistered: GlobalHotkeyEvent<'unregistered'>;
11
11
  }
12
+ export {};
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { ApplicationEvent, BaseEvent, BaseEventMap } from './base';
3
3
  import { PropagatedWindowEvents } from './window';
4
4
  import { PropagatedApplicationEvents } from './application';
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { CertificateSelectionShownEvent, WebContentsEventMapping, WindowResourceLoadFailedEvent, WindowResourceResponseReceivedEvent } from './webcontents';
3
3
  import { BaseEventMap, WindowEvent } from './base';
4
4
  import { WindowNavigationRejectedEvent } from './window';
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { BaseEventMap, WindowEvent } from './base';
3
3
  import { CrashedEvent } from './application';
4
4
  import { WindowNavigationRejectedEvent } from './window';
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { CrashedEvent } from './application';
3
3
  import { BaseEventMap, WindowEvent } from './base';
4
4
  import { CertificateSelectionShownEvent, WebContentsEventMapping, WindowResourceLoadFailedEvent, WindowResourceResponseReceivedEvent } from './webcontents';
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { Base } from '../base';
3
3
  /**
4
4
  * @lends ExternalApplication
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { EmitterBase } from '../base';
3
3
  import Transport from '../../transport/transport';
4
4
  /**
package/src/api/fin.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { EventEmitter } from 'events';
3
- import * as OpenFin from '../OpenFin';
3
+ import type * as OpenFin from '../OpenFin';
4
4
  import Transport from '../transport/transport';
5
5
  import System from './system/index';
6
6
  import _WindowModule from './window/index';
@@ -15,7 +15,7 @@ import PlatformModule from './platform/index';
15
15
  import { Me } from './me';
16
16
  import InteropModule from './interop';
17
17
  import SnapshotSourceModule from './snapshot-source';
18
- import EntityType = OpenFin.EntityType;
18
+ declare type EntityType = OpenFin.EntityType;
19
19
  export interface FinApi<MeType extends EntityType> {
20
20
  readonly System: System;
21
21
  readonly Window: _WindowModule;
@@ -48,3 +48,4 @@ export default class Fin<MeType extends EntityType = EntityType> extends EventEm
48
48
  readonly me: Me<MeType>;
49
49
  constructor(wire: Transport<MeType>);
50
50
  }
51
+ export {};
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { Base } from '../base';
3
3
  /**
4
4
  * @lends Frame
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { EmitterBase } from '../base';
3
3
  import Transport from '../../transport/transport';
4
4
  declare type FrameEvents = OpenFin.FrameEvents;
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { EmitterBase } from '../base';
3
3
  import Transport from '../../transport/transport';
4
4
  declare type GlobalHotkeyEvents = OpenFin.GlobalHotkeyEvents;
@@ -1,9 +1,9 @@
1
- import * as OpenFin from '../../../OpenFin';
1
+ import type * as OpenFin from '../../../OpenFin';
2
2
  import Transport from '../../../transport/transport';
3
- import ProviderIdentity = OpenFin.ProviderIdentity;
4
- import ChannelMiddleware = OpenFin.ChannelMiddleware;
5
- import ErrorMiddleware = OpenFin.ErrorMiddleware;
6
- import ChannelAction = OpenFin.ChannelAction;
3
+ declare type ProviderIdentity = OpenFin.ProviderIdentity;
4
+ declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
5
+ declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
6
+ declare type ChannelAction = OpenFin.ChannelAction;
7
7
  export declare class ProtectedItems {
8
8
  providerIdentity: ProviderIdentity;
9
9
  wire: Transport;
@@ -25,3 +25,4 @@ export declare class ChannelBase {
25
25
  setDefaultAction(func: ChannelMiddleware): void;
26
26
  register(topic: string, listener: ChannelAction): boolean;
27
27
  }
28
+ export {};
@@ -1,8 +1,8 @@
1
- import * as OpenFin from '../../../OpenFin';
1
+ import type * as OpenFin from '../../../OpenFin';
2
2
  import { ChannelBase } from './channel';
3
3
  import Transport from '../../../transport/transport';
4
4
  import { AnyStrategy } from './protocols/strategy-types';
5
- import ProviderIdentity = OpenFin.ProviderIdentity;
5
+ declare type ProviderIdentity = OpenFin.ProviderIdentity;
6
6
  declare type DisconnectionListener = (providerIdentity: ProviderIdentity) => any;
7
7
  interface RoutingInfo extends ProviderIdentity {
8
8
  endpointId: string;
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../../OpenFin';
1
+ import type * as OpenFin from '../../../OpenFin';
2
2
  import { ChannelMessage } from '.';
3
3
  import Transport from '../../../transport/transport';
4
4
  import { Base } from '../../base';
@@ -1,11 +1,11 @@
1
- import * as OpenFin from '../../../OpenFin';
1
+ 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
5
  import Transport, { Message } from '../../../transport/transport';
6
6
  import { ChannelEvents } from '../../events/channel';
7
- import ProviderIdentity = OpenFin.ProviderIdentity;
8
- import Identity = OpenFin.Identity;
7
+ declare type ProviderIdentity = OpenFin.ProviderIdentity;
8
+ declare type Identity = OpenFin.Identity;
9
9
  export interface ChannelMessage extends Message<any> {
10
10
  senderIdentity: Identity;
11
11
  ackToSender: any;
@@ -21,3 +21,4 @@ export declare class Channel extends EmitterBase<ChannelEvents> {
21
21
  connect(channelName: string, options?: OpenFin.ChannelConnectOptions): Promise<ChannelClient>;
22
22
  create(channelName: string, options?: OpenFin.ChannelCreateOptions): Promise<ChannelProvider>;
23
23
  }
24
+ export {};
@@ -1,9 +1,9 @@
1
- import * as OpenFin from '../../../../../OpenFin';
1
+ import type * as OpenFin from '../../../../../OpenFin';
2
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 '..';
6
- import ProviderIdentity = OpenFin.ProviderIdentity;
6
+ declare type ProviderIdentity = OpenFin.ProviderIdentity;
7
7
  export declare class ClassicStrategy implements ChannelStrategy<EndpointPayload> {
8
8
  #private;
9
9
  private messageReceiver;
@@ -21,3 +21,4 @@ export declare class ClassicStrategy implements ChannelStrategy<EndpointPayload>
21
21
  isValidEndpointPayload(payload: any): payload is EndpointPayload;
22
22
  }
23
23
  export declare const ClassicInfo: LocalSupportedProtocol;
24
+ export {};
@@ -1,5 +1,5 @@
1
- import * as OpenFin from '../../../../../OpenFin';
2
- import ProviderIdentity = OpenFin.ProviderIdentity;
1
+ import type * as OpenFin from '../../../../../OpenFin';
2
+ declare type ProviderIdentity = OpenFin.ProviderIdentity;
3
3
  export interface RTCEndpointChannels {
4
4
  request: RTCDataChannel;
5
5
  response: RTCDataChannel;
@@ -22,3 +22,4 @@ export declare class RTCEndpoint {
22
22
  close: () => void;
23
23
  get connected(): boolean;
24
24
  }
25
+ export {};
@@ -1,8 +1,8 @@
1
- import * as OpenFin from '../../../../../OpenFin';
1
+ import type * as OpenFin from '../../../../../OpenFin';
2
2
  import { ChannelStrategy } from '../strategy';
3
3
  import { RTCPacket } from './endpoint';
4
4
  import { LocalSupportedProtocol } from '..';
5
- import ProviderIdentity = OpenFin.ProviderIdentity;
5
+ declare type ProviderIdentity = OpenFin.ProviderIdentity;
6
6
  export interface RTCStrategyEndpointPayload {
7
7
  endpointIdentity: OpenFin.ClientIdentity | ProviderIdentity;
8
8
  rtc: RTCPacket;
@@ -21,3 +21,4 @@ export declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointP
21
21
  isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
22
22
  }
23
23
  export declare const RTCInfo: LocalSupportedProtocol;
24
+ export {};
@@ -1,5 +1,5 @@
1
- import * as OpenFin from '../../../../OpenFin';
2
- import ProviderIdentity = OpenFin.ProviderIdentity;
1
+ import type * as OpenFin from '../../../../OpenFin';
2
+ declare type ProviderIdentity = OpenFin.ProviderIdentity;
3
3
  export interface ChannelStrategy<T extends unknown> {
4
4
  onEndpointDisconnect(endpointId: string, listener: () => void): void;
5
5
  receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
@@ -14,3 +14,4 @@ export declare type EndpointIdentity = OpenFin.ClientIdentity | ProviderIdentity
14
14
  export declare type EndpointPayload = {
15
15
  endpointIdentity: EndpointIdentity;
16
16
  };
17
+ export {};
@@ -1,9 +1,9 @@
1
- import * as OpenFin from '../../../OpenFin';
1
+ import type * as OpenFin from '../../../OpenFin';
2
2
  import { ChannelBase } from './channel';
3
3
  import Transport from '../../../transport/transport';
4
4
  import { AnyStrategy } from './protocols/strategy-types';
5
- import ProviderIdentity = OpenFin.ProviderIdentity;
6
- import ClientIdentity = OpenFin.ClientIdentity;
5
+ declare type ProviderIdentity = OpenFin.ProviderIdentity;
6
+ declare type ClientIdentity = OpenFin.ClientIdentity;
7
7
  export declare type ConnectionListener = (identity: ClientIdentity, connectionMessage?: any) => Promise<any> | any;
8
8
  export declare type DisconnectionListener = (identity: ClientIdentity) => any;
9
9
  declare type ClientConnectionPayload = OpenFin.ClientIdentity & OpenFin.ClientInfo;
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { Base } from '../base';
3
3
  import { InteropBroker } from './InteropBroker';
4
4
  import { InteropClient } from './InteropClient';
@@ -1,9 +1,9 @@
1
1
  import { TargetApp } from './fdc3/shapes/fdc3v1';
2
2
  import { AppIdentifier } from './fdc3/shapes/fdc3v2';
3
- import * as OpenFin from '../../OpenFin';
3
+ import type * as OpenFin from '../../OpenFin';
4
4
  import { Base } from '../base';
5
5
  import type Transport from '../../transport/transport';
6
- import Identity = OpenFin.Identity;
6
+ declare type Identity = OpenFin.Identity;
7
7
  /**
8
8
  * {@link https://developers.openfin.co/of-docs/docs/enable-color-linking **THE INTEROP API IS EXPERIMENTAL. IF YOU WOULD LIKE TO USE IT, PLEASE USE OUR DEFAULT IMPLEMENTATION IN BROWSER**}
9
9
  *
@@ -466,3 +466,4 @@ export declare class InteropBroker extends Base {
466
466
  */
467
467
  isActionAuthorized(_action: string, _payload: any, _identity: OpenFin.ClientIdentity): Promise<boolean> | boolean;
468
468
  }
469
+ export {};
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import Transport from '../../transport/transport';
3
3
  import { Base } from '../base';
4
4
  /**
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import type { ChannelProvider } from '../interappbus/channel/provider';
3
3
  export default class SessionContextGroupBroker {
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import Transport from '../../transport/transport';
3
3
  import { Base } from '../base';
4
4
  export default class SessionContextGroupClient extends Base {
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../../OpenFin';
1
+ import type * as OpenFin from '../../../OpenFin';
2
2
  import type { Listener, Context, ContextHandler } from './shapes/fdc3v2';
3
3
  declare type HandlerId = string;
4
4
  export declare class PrivateChannelClient {
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../../OpenFin';
1
+ import type * as OpenFin from '../../../OpenFin';
2
2
  import { ChannelProvider } from '../../interappbus/channel/provider';
3
3
  declare type HandlerId = string;
4
4
  export declare class PrivateChannelProvider {
@@ -1,4 +1,4 @@
1
- import * as FDC3v1 from './shapes/fdc3v1';
1
+ import type * as FDC3v1 from './shapes/fdc3v1';
2
2
  import { Base } from '../../base';
3
3
  /**
4
4
  * @typedef { object } Listener
@@ -1,5 +1,5 @@
1
- import * as FDC3v1 from './shapes/fdc3v1';
2
- import * as FDC3v2 from './shapes/fdc3v2';
1
+ import type * as FDC3v1 from './shapes/fdc3v1';
2
+ import type * as FDC3v2 from './shapes/fdc3v2';
3
3
  import { Base } from '../../base';
4
4
  import Transport from '../../../transport/transport';
5
5
  /**
@@ -1,6 +1,6 @@
1
- import { TargetApp } from './shapes/fdc3v1';
2
- import { AppIdentifier, IntentResolution, Channel, PrivateChannel, Context } from './shapes/fdc3v2';
3
- import * as OpenFin from '../../../OpenFin';
1
+ import type { TargetApp } from './shapes/fdc3v1';
2
+ import type { AppIdentifier, IntentResolution, Channel, PrivateChannel, Context } from './shapes/fdc3v2';
3
+ import type * as OpenFin from '../../../OpenFin';
4
4
  import { PrivateChannelClient } from './PrivateChannelClient';
5
5
  interface UnsupportedChannelApis {
6
6
  addContextListener(): Error;
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  export declare const generateId: () => string;
3
3
  export declare const wrapInTryCatch: <T>(f: (...args: any[]) => T, prefix?: string) => (...args: any[]) => T;
4
4
  export declare const wrapContextHandler: (handler: OpenFin.ContextHandler, handlerId: string) => (context: OpenFin.Context) => Promise<void>;
package/src/api/me.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import * as OpenFin from '../OpenFin';
1
+ import type * as OpenFin from '../OpenFin';
2
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
- import EntityType = OpenFin.EntityType;
5
+ declare type EntityType = OpenFin.EntityType;
6
6
  export declare type EntityTypeHelpers<T extends EntityType> = T extends 'view' ? {
7
7
  isView: true;
8
8
  isWindow: false;
@@ -37,3 +37,4 @@ export declare type Me<MeType extends EntityType> = OpenFin.EntityInfo & (MeType
37
37
  isOpenFin: boolean;
38
38
  };
39
39
  export declare function getMe<MeType extends EntityType>(wire: Transport<MeType>): Me<MeType>;
40
+ export {};
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { Base } from '../base';
3
3
  import { Channel } from '../interappbus/channel/index';
4
4
  import Transport from '../../transport/transport';
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { View } from '../view';
3
3
  import { EmitterBase } from '../base';
4
4
  import { Channel } from '../interappbus/channel/index';
@@ -1,5 +1,5 @@
1
- import * as OpenFin from '../../OpenFin';
2
- import LayoutPresetType = OpenFin.LayoutPresetType;
1
+ import type * as OpenFin from '../../OpenFin';
2
+ declare type LayoutPresetType = OpenFin.LayoutPresetType;
3
3
  export declare function isValidPresetType(type: LayoutPresetType): type is LayoutPresetType;
4
4
  declare const _default: {
5
5
  isValidPresetType: typeof isValidPresetType;
@@ -1,7 +1,7 @@
1
- import * as OpenFin from '../../../OpenFin';
1
+ import type * as OpenFin from '../../../OpenFin';
2
2
  import { Layout } from './Instance';
3
3
  import { Base } from '../../base';
4
- import InitLayoutOptions = OpenFin.InitLayoutOptions;
4
+ declare type InitLayoutOptions = OpenFin.InitLayoutOptions;
5
5
  /**
6
6
  * InitLayoutOptions interface
7
7
  * @typedef { object } InitLayoutOptions
@@ -107,3 +107,4 @@ export declare class LayoutModule extends Base {
107
107
  */
108
108
  init: (options?: InitLayoutOptions) => Promise<OpenFin.Layout>;
109
109
  }
110
+ export {};
@@ -1,9 +1,9 @@
1
- import * as OpenFin from '../../../OpenFin';
1
+ import type * as OpenFin from '../../../OpenFin';
2
2
  import Transport from '../../../transport/transport';
3
3
  import { Base } from '../../base';
4
- import Identity = OpenFin.Identity;
5
- import InitLayoutOptions = OpenFin.InitLayoutOptions;
6
- import PresetLayoutOptions = OpenFin.PresetLayoutOptions;
4
+ declare type Identity = OpenFin.Identity;
5
+ declare type InitLayoutOptions = OpenFin.InitLayoutOptions;
6
+ declare type PresetLayoutOptions = OpenFin.PresetLayoutOptions;
7
7
  /**
8
8
  * @lends Platform#Layout
9
9
  */
@@ -48,3 +48,4 @@ export declare class Layout extends Base {
48
48
  */
49
49
  applyPreset: (options: PresetLayoutOptions) => Promise<void>;
50
50
  }
51
+ export {};
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../../../OpenFin';
1
+ import type * as OpenFin from '../../../../OpenFin';
2
2
  import { ViewOverlay } from '../utils/view-overlay';
3
3
  import { View } from '../../../view';
4
4
  /**
@@ -1,5 +1,5 @@
1
- import * as OpenFin from '../../../OpenFin';
2
- import LayoutPresetType = OpenFin.LayoutPresetType;
1
+ import type * as OpenFin from '../../../OpenFin';
2
+ declare type LayoutPresetType = OpenFin.LayoutPresetType;
3
3
  export interface InitLayoutOptions {
4
4
  containerId?: string;
5
5
  }
@@ -10,3 +10,4 @@ export interface DragPayload {
10
10
  'view-config': OpenFin.ViewCreationOptions;
11
11
  'view-identity': [string, string, string];
12
12
  }
13
+ export {};
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../../../OpenFin';
1
+ import type * as OpenFin from '../../../../OpenFin';
2
2
  import Transport from '../../../../transport/transport';
3
3
  /**
4
4
  * Api client allowing an empty electron BrowserView to be rendered
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { Base } from '../base';
3
3
  import { SnapshotSource } from './Instance';
4
4
  /**
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { Base } from '../base';
3
3
  import Transport from '../../transport/transport';
4
4
  /**
@@ -1,2 +1,2 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  export declare const getSnapshotSourceChannelName: (id: OpenFin.ApplicationIdentity) => string;
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { EmitterBase } from '../base';
3
3
  import Transport from '../../transport/transport';
4
4
  declare type Identity = OpenFin.Identity;
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { Base } from '../base';
3
3
  /**
4
4
  * @lends View
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { WebContents } from '../webcontents/main';
3
3
  import Transport from '../../transport/transport';
4
4
  import { Layout } from '../platform/layout';
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { EmitterBase } from '../base';
3
3
  import Transport from '../../transport/transport';
4
4
  import { WebContentsEventMapping } from '../events/webcontents';
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import { Base } from '../base';
3
3
  /**
4
4
  * @lends Window
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../../OpenFin';
1
+ import type * as OpenFin from '../../OpenFin';
2
2
  import Transport from '../../transport/transport';
3
3
  import { WebContents } from '../webcontents/main';
4
4
  declare type WindowEvents = OpenFin.WindowEvents;
package/src/browser.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as OpenFin from './OpenFin';
1
+ import type * as OpenFin from './OpenFin';
2
2
  import { RemoteConfig } from './transport/wire';
3
3
  interface GetRemoteConnectionPayload extends RemoteConfig {
4
4
  interopProviderId: string;
@@ -1,7 +1,7 @@
1
- import * as OpenFin from '../OpenFin';
1
+ import type * as OpenFin from '../OpenFin';
2
2
  import { NewConnectConfig } from '../transport/wire';
3
3
  import { ChildContentOptions, Environment } from './environment';
4
- import EntityType = OpenFin.EntityType;
4
+ declare type EntityType = OpenFin.EntityType;
5
5
  export declare class BrowserEnvironment implements Environment {
6
6
  getManagerConstructor(): Promise<any>;
7
7
  getProviderInitializer(): Promise<any>;
@@ -24,3 +24,4 @@ export declare class BrowserEnvironment implements Environment {
24
24
  getWsConstructor(): typeof WebSocket;
25
25
  whenReady(): Promise<void>;
26
26
  }
27
+ export {};
@@ -1,6 +1,6 @@
1
- import * as OpenFin from '../OpenFin';
1
+ import type * as OpenFin from '../OpenFin';
2
2
  import { NewConnectConfig } from '../transport/wire';
3
- import EntityType = OpenFin.EntityType;
3
+ declare type EntityType = OpenFin.EntityType;
4
4
  export interface Environment {
5
5
  getManagerConstructor(): Promise<any>;
6
6
  getProviderInitializer(): Promise<any>;
@@ -28,3 +28,4 @@ export interface ChildContentOptions {
28
28
  entityType: EntityType;
29
29
  }
30
30
  export declare const notImplementedEnvErrorMsg = "Not implemented in this environment";
31
+ export {};
@@ -1,7 +1,7 @@
1
- import * as OpenFin from '../OpenFin';
1
+ import type * as OpenFin from '../OpenFin';
2
2
  import { Environment } from './environment';
3
3
  import { NewConnectConfig } from '../transport/wire';
4
- import EntityType = OpenFin.EntityType;
4
+ declare type EntityType = OpenFin.EntityType;
5
5
  export default class NodeEnvironment implements Environment {
6
6
  getDefaultChannelOptions(): {
7
7
  create: OpenFin.ChannelCreateOptions;
@@ -25,3 +25,4 @@ export default class NodeEnvironment implements Environment {
25
25
  getUrl: () => string;
26
26
  getWsConstructor(): typeof WebSocket;
27
27
  }
28
+ export {};
@@ -1,8 +1,8 @@
1
- import * as OpenFin from '../OpenFin';
1
+ import type * as OpenFin from '../OpenFin';
2
2
  import { ChildContentOptions, Environment } from './environment';
3
3
  import { NewConnectConfig } from '../transport/wire';
4
4
  import { BrowserEnvironment } from './browser';
5
- import EntityType = OpenFin.EntityType;
5
+ declare type EntityType = OpenFin.EntityType;
6
6
  export default class OpenFinEnvironment extends BrowserEnvironment implements Environment {
7
7
  #private;
8
8
  private raiseEventAsync;
@@ -26,3 +26,4 @@ export default class OpenFinEnvironment extends BrowserEnvironment implements En
26
26
  raiseEvent: (eventName: string, eventArgs: any) => void;
27
27
  whenReady(): Promise<void>;
28
28
  }
29
+ export {};
package/src/fdc3.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import * as OpenFin from './OpenFin';
1
+ import type * as OpenFin from './OpenFin';
2
2
  import Fdc3Module from './api/interop/fdc3/fdc3-1.2';
3
3
  export declare function fdc3FromFin(fin: OpenFin.Fin<OpenFin.EntityType>, version?: string): Promise<Fdc3Module>;
package/src/mock.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import * as OpenFin from './OpenFin';
1
+ import type * as OpenFin from './OpenFin';
2
2
  export declare const fin: OpenFin.Fin<"window" | "view">;
3
3
  export default OpenFin;
package/src/mock.js CHANGED
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fin = void 0;
4
4
  const events_1 = require("events");
5
- const OpenFin = require("./OpenFin");
6
5
  /* eslint-disable import/prefer-default-export */
7
6
  /* eslint-disable spaced-comment */
8
7
  /* eslint-disable @typescript-eslint/triple-slash-reference */
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../OpenFin';
1
+ import type * as OpenFin from '../OpenFin';
2
2
  export interface WebOptions {
3
3
  preloadScripts?: OpenFin.PreloadScript[];
4
4
  uuid: string;
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../OpenFin';
1
+ import type * as OpenFin from '../OpenFin';
2
2
  import { ERROR_BOX_TYPES } from './ERROR_BOX_TYPES';
3
3
  import { WebOptions } from './WebOptions';
4
4
  export interface WindowOptions extends Partial<OpenFin.WindowOptions>, Partial<WindowInternalOptions> {
@@ -1,4 +1,4 @@
1
- import * as OpenFin from '../OpenFin';
1
+ import type * as OpenFin from '../OpenFin';
2
2
  import { AuthorizationPayload } from '../transport/transport';
3
3
  export interface ProtocolMap extends ProtocolMapBase {
4
4
  'request-external-authorization': {
@@ -1,13 +1,13 @@
1
1
  /// <reference types="node" />
2
2
  import { EventEmitter } from 'events';
3
- import * as OpenFin from '../OpenFin';
3
+ import type * as OpenFin from '../OpenFin';
4
4
  import { ExistingConnectConfig, InternalConnectConfig, RemoteConfig, Wire, WireConstructor } from './wire';
5
5
  import { Environment } from '../environment/environment';
6
6
  import { RuntimeEvent } from '../api/events/base';
7
7
  import EventAggregator from '../api/events/eventAggregator';
8
8
  import { EntityTypeHelpers } from '../api/me';
9
9
  import { ProtocolMap } from '../shapes/protocol';
10
- import EntityType = OpenFin.EntityType;
10
+ declare type EntityType = OpenFin.EntityType;
11
11
  export declare type MessageHandler = (data: any) => boolean;
12
12
  declare class Transport<MeType extends EntityType = EntityType> extends EventEmitter {
13
13
  #private;