@openfin/core 31.74.31 → 32.75.1

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 (82) hide show
  1. package/package.json +1 -1
  2. package/src/OpenFin.d.ts +58 -13
  3. package/src/api/application/Instance.d.ts +13 -1
  4. package/src/api/application/Instance.js +39 -7
  5. package/src/api/base.d.ts +1 -2
  6. package/src/api/base.js +1 -2
  7. package/src/api/events/application.d.ts +4 -1
  8. package/src/api/events/system.d.ts +6 -3
  9. package/src/api/events/webcontents.d.ts +54 -5
  10. package/src/api/fin.js +1 -2
  11. package/src/api/interappbus/channel/client.d.ts +2 -2
  12. package/src/api/interappbus/channel/index.d.ts +4 -3
  13. package/src/api/interappbus/channel/index.js +111 -74
  14. package/src/api/interappbus/channel/protocols/classic/strategy.js +24 -6
  15. package/src/api/interappbus/index.js +1 -1
  16. package/src/api/interop/InteropClient.d.ts +1 -1
  17. package/src/api/interop/InteropClient.js +1 -1
  18. package/src/api/interop/SessionContextGroupBroker.d.ts +1 -1
  19. package/src/api/interop/SessionContextGroupBroker.js +5 -4
  20. package/src/api/interop/SessionContextGroupClient.js +1 -1
  21. package/src/api/interop/fdc3/PrivateChannelProvider.d.ts +1 -1
  22. package/src/api/interop/fdc3/PrivateChannelProvider.js +1 -8
  23. package/src/api/interop/fdc3/fdc3-1.2.js +34 -1
  24. package/src/api/interop/fdc3/utils.js +24 -4
  25. package/src/api/me.d.ts +1 -1
  26. package/src/api/me.js +2 -1
  27. package/src/api/platform/Factory.d.ts +3 -3
  28. package/src/api/platform/Factory.js +2 -11
  29. package/src/api/platform/Instance.d.ts +5 -4
  30. package/src/api/platform/Instance.js +2 -1
  31. package/src/api/platform/layout/Factory.d.ts +1 -1
  32. package/src/api/platform/layout/Factory.js +7 -39
  33. package/src/api/platform/layout/Instance.js +3 -0
  34. package/src/api/platform/layout/controllers/layout-entities-controller.d.ts +6 -2
  35. package/src/api/platform/layout/controllers/layout-entities-controller.js +40 -8
  36. package/src/api/platform/layout/entities/layout-entities.d.ts +143 -42
  37. package/src/api/platform/layout/entities/layout-entities.js +151 -43
  38. package/src/api/platform/layout/utils/layout-traversal.d.ts +1 -0
  39. package/src/api/platform/layout/utils/layout-traversal.js +11 -11
  40. package/src/api/platform/provider.d.ts +2 -1
  41. package/src/api/system/index.d.ts +9 -0
  42. package/src/api/system/index.js +78 -40
  43. package/src/api/view/Instance.d.ts +6 -3
  44. package/src/api/view/Instance.js +10 -9
  45. package/src/api/webcontents/main.d.ts +2 -22
  46. package/src/api/webcontents/main.js +2 -1
  47. package/src/api/window/Instance.d.ts +10 -0
  48. package/src/api/window/Instance.js +22 -0
  49. package/src/environment/browser.d.ts +4 -2
  50. package/src/environment/browser.js +5 -2
  51. package/src/environment/environment.d.ts +4 -2
  52. package/src/environment/mockEnvironment.d.ts +27 -0
  53. package/src/environment/mockEnvironment.js +61 -0
  54. package/src/environment/node-env.d.ts +3 -2
  55. package/src/environment/node-env.js +5 -2
  56. package/src/environment/openfin-env.d.ts +5 -3
  57. package/src/environment/openfin-env.js +12 -10
  58. package/src/mock.js +4 -83
  59. package/src/shapes/protocol.d.ts +26 -9
  60. package/src/transport/mockWire.d.ts +11 -0
  61. package/src/transport/mockWire.js +26 -0
  62. package/src/transport/transport-errors.d.ts +9 -1
  63. package/src/transport/transport-errors.js +45 -2
  64. package/src/transport/transport.d.ts +16 -5
  65. package/src/transport/transport.js +48 -20
  66. package/src/util/channel-api-relay.js +11 -1
  67. package/src/util/errors.d.ts +1 -0
  68. package/src/util/errors.js +1 -0
  69. package/src/util/lazy.d.ts +18 -0
  70. package/src/util/lazy.js +29 -1
  71. package/src/util/ref-counter.d.ts +1 -1
  72. package/src/util/ref-counter.js +3 -2
  73. package/src/api/platform/layout/controllers/splitter-controller.d.ts +0 -30
  74. package/src/api/platform/layout/controllers/splitter-controller.js +0 -83
  75. package/src/api/platform/layout/controllers/tab-drag-controller.d.ts +0 -58
  76. package/src/api/platform/layout/controllers/tab-drag-controller.js +0 -124
  77. package/src/api/platform/layout/utils/bounds-observer.d.ts +0 -19
  78. package/src/api/platform/layout/utils/bounds-observer.js +0 -52
  79. package/src/api/platform/layout/utils/view-overlay.d.ts +0 -35
  80. package/src/api/platform/layout/utils/view-overlay.js +0 -49
  81. package/src/transport/fin_store.d.ts +0 -4
  82. package/src/transport/fin_store.js +0 -16
@@ -1,35 +0,0 @@
1
- import type * as OpenFin from '../../../../OpenFin';
2
- import { Transport } from '../../../../transport/transport';
3
- /**
4
- * Api client allowing an empty electron BrowserView to be rendered
5
- * in the current window with the specified bounds.
6
- *
7
- * Please note, only one view based overlay can be rendered at a time per runtime.
8
- * @ignore
9
- */
10
- export declare class ViewOverlay {
11
- private wire;
12
- constructor(wire: Transport);
13
- /**
14
- * Sets the style of the root <html> element of the view overlay webcontent.
15
- * @param style A partial collection of Css style declarations to set.
16
- */
17
- setStyle: (style: Partial<CSSStyleDeclaration>) => Promise<void>;
18
- /**
19
- * Renders the overlay at the specified position relative to the calling window.
20
- * @param options Bounds and background color to display in the overlay.
21
- */
22
- renderOverlay: (bounds: OpenFin.Bounds) => Promise<void>;
23
- /**
24
- * Removes the overlay from the current window.
25
- */
26
- detachOverlay: () => Promise<void>;
27
- /**
28
- * Allows setting all OpenFin views to ignore or consume mouse events.
29
- *
30
- * This can help with the rendering of view overlays that depend on OpenFin views not consuming mouse events.
31
- *
32
- * @param enabled If true, all mouse events are ignored by openfin views. If false, all OpenFin views will consume mouse events.
33
- */
34
- setIgnoreViewMouseEvents(enabled: boolean): Promise<void>;
35
- }
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ViewOverlay = void 0;
4
- /**
5
- * Api client allowing an empty electron BrowserView to be rendered
6
- * in the current window with the specified bounds.
7
- *
8
- * Please note, only one view based overlay can be rendered at a time per runtime.
9
- * @ignore
10
- */
11
- class ViewOverlay {
12
- // eslint-disable-next-line
13
- constructor(wire) {
14
- this.wire = wire;
15
- /**
16
- * Sets the style of the root <html> element of the view overlay webcontent.
17
- * @param style A partial collection of Css style declarations to set.
18
- */
19
- this.setStyle = async (style) => {
20
- await this.wire.sendAction('set-overlay-style', { style });
21
- };
22
- /**
23
- * Renders the overlay at the specified position relative to the calling window.
24
- * @param options Bounds and background color to display in the overlay.
25
- */
26
- this.renderOverlay = async (bounds) => {
27
- await this.wire.sendAction('render-overlay', { bounds });
28
- };
29
- /**
30
- * Removes the overlay from the current window.
31
- */
32
- this.detachOverlay = async () => {
33
- await this.wire.sendAction('detach-overlay');
34
- };
35
- }
36
- /**
37
- * Allows setting all OpenFin views to ignore or consume mouse events.
38
- *
39
- * This can help with the rendering of view overlays that depend on OpenFin views not consuming mouse events.
40
- *
41
- * @param enabled If true, all mouse events are ignored by openfin views. If false, all OpenFin views will consume mouse events.
42
- */
43
- async setIgnoreViewMouseEvents(enabled) {
44
- await this.wire.sendAction('set-ignore-all-view-mouse-events', {
45
- enabled
46
- });
47
- }
48
- }
49
- exports.ViewOverlay = ViewOverlay;
@@ -1,4 +0,0 @@
1
- import Fin from '../api/fin';
2
- import { Transport } from './transport';
3
- export declare function registerFin(wire: Transport, fin: Fin): void;
4
- export declare function getFin(wire: Transport): Fin;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getFin = exports.registerFin = void 0;
4
- const finMap = new WeakMap();
5
- function registerFin(wire, fin) {
6
- finMap.set(wire, fin);
7
- }
8
- exports.registerFin = registerFin;
9
- function getFin(wire) {
10
- const fin = finMap.get(wire);
11
- if (!fin) {
12
- throw new Error('Could not locate fin api for given transport');
13
- }
14
- return fin;
15
- }
16
- exports.getFin = getFin;