@openfin/core 30.73.18 → 30.73.19

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 (88) hide show
  1. package/OpenFin.d.ts +1 -1765
  2. package/fdc3.js +2 -0
  3. package/fdc3.ts +264 -0
  4. package/fin.d.ts +3 -4
  5. package/package.json +1 -1
  6. package/src/GlobalOpenFin.d.ts +4 -0
  7. package/src/OpenFin.d.ts +1404 -0
  8. package/src/OpenFin.js +2 -0
  9. package/src/api/application/Factory.d.ts +1 -0
  10. package/src/api/application/Instance.d.ts +1 -0
  11. package/src/api/base.d.ts +1 -0
  12. package/src/api/clipboard/index.d.ts +1 -0
  13. package/src/api/events/application.d.ts +3 -2
  14. package/src/api/events/channel.d.ts +1 -1
  15. package/src/api/events/externalApplication.d.ts +1 -1
  16. package/src/api/events/globalHotkey.d.ts +2 -1
  17. package/src/api/events/system.d.ts +2 -1
  18. package/src/api/events/view.d.ts +3 -2
  19. package/src/api/events/webcontents.d.ts +1 -0
  20. package/src/api/events/window.d.ts +4 -3
  21. package/src/api/external-application/Factory.d.ts +1 -0
  22. package/src/api/external-application/Instance.d.ts +1 -0
  23. package/src/api/fin.d.ts +1 -0
  24. package/src/api/frame/Factory.d.ts +1 -0
  25. package/src/api/frame/Instance.d.ts +1 -0
  26. package/src/api/global-hotkey/index.d.ts +1 -0
  27. package/src/api/interappbus/channel/channel.d.ts +1 -0
  28. package/src/api/interappbus/channel/client.d.ts +1 -0
  29. package/src/api/interappbus/channel/connection-manager.d.ts +1 -0
  30. package/src/api/interappbus/channel/connection-manager.js +6 -2
  31. package/src/api/interappbus/channel/index.d.ts +1 -0
  32. package/src/api/interappbus/channel/index.js +4 -3
  33. package/src/api/interappbus/channel/protocols/classic/strategy.d.ts +1 -0
  34. package/src/api/interappbus/channel/protocols/protocol-manager.d.ts +1 -1
  35. package/src/api/interappbus/channel/protocols/rtc/endpoint.d.ts +1 -0
  36. package/src/api/interappbus/channel/protocols/rtc/endpoint.js +1 -1
  37. package/src/api/interappbus/channel/protocols/rtc/ice-manager.js +0 -1
  38. package/src/api/interappbus/channel/protocols/rtc/strategy.d.ts +1 -0
  39. package/src/api/interappbus/channel/protocols/strategy.d.ts +1 -0
  40. package/src/api/interappbus/channel/provider.d.ts +1 -0
  41. package/src/api/interop/Factory.d.ts +1 -0
  42. package/src/api/interop/InteropBroker.d.ts +6 -2
  43. package/src/api/interop/InteropBroker.js +23 -12
  44. package/src/api/interop/InteropClient.d.ts +1 -0
  45. package/src/api/interop/SessionContextGroupBroker.d.ts +1 -0
  46. package/src/api/interop/SessionContextGroupClient.d.ts +1 -0
  47. package/src/api/interop/fdc3/PrivateChannelClient.d.ts +2 -0
  48. package/src/api/interop/fdc3/PrivateChannelProvider.d.ts +1 -0
  49. package/src/api/interop/fdc3/fdc3-1.2.d.ts +2 -0
  50. package/src/api/interop/fdc3/fdc3-1.2.js +1 -1
  51. package/src/api/interop/fdc3/fdc3-2.0.d.ts +3 -0
  52. package/src/api/interop/fdc3/fdc3-2.0.js +6 -13
  53. package/src/api/interop/fdc3/utils.d.ts +2 -0
  54. package/src/api/interop/utils.d.ts +1 -0
  55. package/src/api/me.d.ts +1 -0
  56. package/src/api/platform/Factory.d.ts +1 -0
  57. package/src/api/platform/Instance.d.ts +1 -0
  58. package/src/api/platform/common-utils.d.ts +1 -0
  59. package/src/api/platform/layout/Factory.d.ts +1 -0
  60. package/src/api/platform/layout/Instance.d.ts +1 -0
  61. package/src/api/platform/layout/Instance.js +0 -1
  62. package/src/api/platform/layout/controllers/tab-drag-controller.d.ts +1 -0
  63. package/src/api/platform/layout/shapes.d.ts +1 -0
  64. package/src/api/platform/layout/utils/bounds-observer.d.ts +1 -1
  65. package/src/api/platform/layout/utils/view-overlay.d.ts +1 -0
  66. package/src/api/snapshot-source/Factory.d.ts +1 -0
  67. package/src/api/snapshot-source/Factory.js +1 -1
  68. package/src/api/snapshot-source/Instance.d.ts +1 -0
  69. package/src/api/snapshot-source/utils.d.ts +1 -0
  70. package/src/api/system/index.d.ts +2 -1
  71. package/src/api/system/index.js +1 -1
  72. package/src/api/view/Factory.d.ts +1 -0
  73. package/src/api/view/Instance.d.ts +1 -0
  74. package/src/api/webcontents/main.d.ts +1 -0
  75. package/src/api/window/Factory.d.ts +1 -0
  76. package/src/api/window/Instance.d.ts +2 -1
  77. package/src/api/window/Instance.js +1 -1
  78. package/src/browser.d.ts +1 -0
  79. package/src/environment/browser.d.ts +1 -0
  80. package/src/environment/environment.d.ts +1 -0
  81. package/src/environment/node-env.d.ts +1 -0
  82. package/src/environment/openfin-env.d.ts +1 -0
  83. package/src/mock.d.ts +1 -1
  84. package/src/mock.js +3 -1
  85. package/src/shapes/WebOptions.d.ts +1 -0
  86. package/src/shapes/WindowOptions.d.ts +1 -0
  87. package/src/shapes/protocol.d.ts +1 -0
  88. package/src/transport/transport.d.ts +2 -1
@@ -1 +1,2 @@
1
+ import * as OpenFin from '../../OpenFin';
1
2
  export declare const getSnapshotSourceChannelName: (id: OpenFin.ApplicationIdentity) => string;
@@ -1,3 +1,4 @@
1
+ import * as OpenFin from '../../OpenFin';
1
2
  import { EmitterBase } from '../base';
2
3
  import Transport from '../../transport/transport';
3
4
  import Identity = OpenFin.Identity;
@@ -770,7 +771,7 @@ export default class System extends EmitterBase<SystemEvents> {
770
771
  * Runs an executable or batch file. A path to the file must be included in options.
771
772
  * <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
772
773
  * <br> Note: This method is restricted by default and must be enabled via
773
- * <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
774
+ * <a href="https://developers.openfin.co/docs/api-security">API security settings</a>. Also, this api has an enhanced permission set to make it less dangerous. So application owners can only allow to launch the assets owned by the application, the enabled downloaded files or the restricted executables.
774
775
  * @param { ExternalProcessRequestType } options A object that is defined in the ExternalProcessRequestType interface
775
776
  * @return {Promise.<Identity>}
776
777
  * @tutorial System.launchExternalProcess
@@ -891,7 +891,7 @@ class System extends base_1.EmitterBase {
891
891
  * Runs an executable or batch file. A path to the file must be included in options.
892
892
  * <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
893
893
  * <br> Note: This method is restricted by default and must be enabled via
894
- * <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
894
+ * <a href="https://developers.openfin.co/docs/api-security">API security settings</a>. Also, this api has an enhanced permission set to make it less dangerous. So application owners can only allow to launch the assets owned by the application, the enabled downloaded files or the restricted executables.
895
895
  * @param { ExternalProcessRequestType } options A object that is defined in the ExternalProcessRequestType interface
896
896
  * @return {Promise.<Identity>}
897
897
  * @tutorial System.launchExternalProcess
@@ -1,3 +1,4 @@
1
+ import * as OpenFin from '../../OpenFin';
1
2
  import { Base } from '../base';
2
3
  /**
3
4
  * @lends View
@@ -1,3 +1,4 @@
1
+ import * as OpenFin from '../../OpenFin';
1
2
  import { WebContents } from '../webcontents/main';
2
3
  import Transport from '../../transport/transport';
3
4
  import { Layout } from '../platform/layout';
@@ -1,3 +1,4 @@
1
+ import * as OpenFin from '../../OpenFin';
1
2
  import { EmitterBase } from '../base';
2
3
  import Transport from '../../transport/transport';
3
4
  import { WebContentsEventMapping } from '../events/webcontents';
@@ -1,3 +1,4 @@
1
+ import * as OpenFin from '../../OpenFin';
1
2
  import { Base } from '../base';
2
3
  /**
3
4
  * @lends Window
@@ -1,3 +1,4 @@
1
+ import * as OpenFin from '../../OpenFin';
1
2
  import Transport from '../../transport/transport';
2
3
  import { WebContents } from '../webcontents/main';
3
4
  import WindowEvents = OpenFin.WindowEvents;
@@ -362,7 +363,7 @@ import WindowEvents = OpenFin.WindowEvents;
362
363
  * @property {ShowViewsOnWindowResize} [showViewsOnWindowResize] Enables views to be shown when a Platform Window is being resized by the user.
363
364
  * @property {ShowViewsOnSplitterDrag} [showViewsOnSplitterDrag] Allows views to be shown when they are resized by the user dragging the splitter between layout stacks.
364
365
  * @property {ShowViewsOnTabDrag} [showViewsOnTabDrag] _Supported on Windows Operating Systems only_. Allows views to be shown when the user is dragging a tab around a layout.
365
- */
366
+ */
366
367
  /**
367
368
  * @typedef {Object} ShowViewsOnWindowResize _Platform Windows Only_. Enables views to be shown when a Platform Window is being resized by the user.
368
369
  * @property {boolean} [enabled=false] Enables or disables showing Views when a Platform Window is being resized.
@@ -369,7 +369,7 @@ const view_1 = require("../view");
369
369
  * @property {ShowViewsOnWindowResize} [showViewsOnWindowResize] Enables views to be shown when a Platform Window is being resized by the user.
370
370
  * @property {ShowViewsOnSplitterDrag} [showViewsOnSplitterDrag] Allows views to be shown when they are resized by the user dragging the splitter between layout stacks.
371
371
  * @property {ShowViewsOnTabDrag} [showViewsOnTabDrag] _Supported on Windows Operating Systems only_. Allows views to be shown when the user is dragging a tab around a layout.
372
- */
372
+ */
373
373
  /**
374
374
  * @typedef {Object} ShowViewsOnWindowResize _Platform Windows Only_. Enables views to be shown when a Platform Window is being resized by the user.
375
375
  * @property {boolean} [enabled=false] Enables or disables showing Views when a Platform Window is being resized.
package/src/browser.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as OpenFin from './OpenFin';
1
2
  import { RemoteConfig } from './transport/wire';
2
3
  interface GetRemoteConnectionPayload extends RemoteConfig {
3
4
  interopProviderId: string;
@@ -1,3 +1,4 @@
1
+ import * as OpenFin from '../OpenFin';
1
2
  import { NewConnectConfig } from '../transport/wire';
2
3
  import { ChildContentOptions, Environment } from './environment';
3
4
  import EntityType = OpenFin.EntityType;
@@ -1,3 +1,4 @@
1
+ import * as OpenFin from '../OpenFin';
1
2
  import { NewConnectConfig } from '../transport/wire';
2
3
  import EntityType = OpenFin.EntityType;
3
4
  export interface Environment {
@@ -1,3 +1,4 @@
1
+ import * as OpenFin from '../OpenFin';
1
2
  import { Environment } from './environment';
2
3
  import { NewConnectConfig } from '../transport/wire';
3
4
  import EntityType = OpenFin.EntityType;
@@ -1,3 +1,4 @@
1
+ import * as OpenFin from '../OpenFin';
1
2
  import { ChildContentOptions, Environment } from './environment';
2
3
  import { NewConnectConfig } from '../transport/wire';
3
4
  import { BrowserEnvironment } from './browser';
package/src/mock.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- /// <reference path="../OpenFin.d.ts" />
1
+ import * as OpenFin from './OpenFin';
2
2
  export declare const fin: import("./api/fin").FinApi<"window" | "view">;
3
3
  export default OpenFin;
package/src/mock.js CHANGED
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fin = void 0;
4
+ const events_1 = require("events");
5
+ const OpenFin = require("./OpenFin");
4
6
  /* eslint-disable import/prefer-default-export */
5
7
  /* eslint-disable spaced-comment */
6
8
  /* eslint-disable @typescript-eslint/triple-slash-reference */
7
9
  /* eslint-disable @typescript-eslint/explicit-function-return-type */
8
10
  /* eslint-disable class-methods-use-this */
9
11
  /// <reference path="../OpenFin.d.ts"/>
10
- const events_1 = require("events");
11
12
  const fin_1 = require("./api/fin");
12
13
  const transport_1 = require("./transport/transport");
13
14
  const me_1 = require("./api/me");
@@ -91,3 +92,4 @@ exports.fin = ((typeof window !== 'undefined' && (window === null || window ===
91
92
  });
92
93
  return new fin_1.default(transport);
93
94
  })());
95
+ exports.default = OpenFin;
@@ -1,3 +1,4 @@
1
+ import * as OpenFin from '../OpenFin';
1
2
  export interface WebOptions {
2
3
  preloadScripts?: OpenFin.PreloadScript[];
3
4
  uuid: string;
@@ -1,3 +1,4 @@
1
+ import * as OpenFin from '../OpenFin';
1
2
  import { ERROR_BOX_TYPES } from './ERROR_BOX_TYPES';
2
3
  import { WebOptions } from './WebOptions';
3
4
  export interface WindowOptions extends Partial<OpenFin.WindowOptions>, Partial<WindowInternalOptions> {
@@ -1,3 +1,4 @@
1
+ import * as OpenFin from '../OpenFin';
1
2
  import { AuthorizationPayload } from '../transport/transport';
2
3
  export interface ProtocolMap extends ProtocolMapBase {
3
4
  'request-external-authorization': {
@@ -1,6 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { EventEmitter } from 'events';
3
- import { Wire, WireConstructor, ExistingConnectConfig, InternalConnectConfig, RemoteConfig } from './wire';
3
+ import * as OpenFin from '../OpenFin';
4
+ import { ExistingConnectConfig, InternalConnectConfig, RemoteConfig, Wire, WireConstructor } from './wire';
4
5
  import { Environment } from '../environment/environment';
5
6
  import { RuntimeEvent } from '../api/events/base';
6
7
  import EventAggregator from '../api/events/eventAggregator';