@openfin/node-adapter 34.78.7 → 34.78.9
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/out/node-adapter-alpha.d.ts +444 -47
- package/out/node-adapter-beta.d.ts +444 -47
- package/out/node-adapter-public.d.ts +444 -47
- package/out/node-adapter.d.ts +446 -49
- package/out/node-adapter.js +179 -143
- package/package.json +1 -1
package/out/node-adapter.js
CHANGED
@@ -913,6 +913,9 @@ function requireFactory$3 () {
|
|
913
913
|
const base_1 = base;
|
914
914
|
const validate_1 = validate;
|
915
915
|
const index_1 = requireView();
|
916
|
+
/**
|
917
|
+
* Static namespace for OpenFin API methods that interact with the {@link View} class, available under `fin.View`.
|
918
|
+
*/
|
916
919
|
class ViewModule extends base_1.Base {
|
917
920
|
/**
|
918
921
|
* Creates a new View.
|
@@ -4398,6 +4401,9 @@ function requireFactory$2 () {
|
|
4398
4401
|
const base_1 = base;
|
4399
4402
|
const validate_1 = validate;
|
4400
4403
|
const Instance_1 = requireInstance$1();
|
4404
|
+
/**
|
4405
|
+
* Static namespace for OpenFin API methods that interact with the {@link Application} class, available under `fin.Application`.
|
4406
|
+
*/
|
4401
4407
|
class ApplicationModule extends base_1.Base {
|
4402
4408
|
/**
|
4403
4409
|
* Asynchronously returns an Application object that represents an existing application.
|
@@ -6024,11 +6030,12 @@ function requireInstance () {
|
|
6024
6030
|
* moveBy(580, 300).then(() => console.log('Moved')).catch(err => console.log(err));
|
6025
6031
|
* ```
|
6026
6032
|
*/
|
6027
|
-
moveBy(deltaLeft, deltaTop) {
|
6033
|
+
moveBy(deltaLeft, deltaTop, positioningOptions) {
|
6028
6034
|
return this.wire
|
6029
6035
|
.sendAction('move-window-by', {
|
6030
6036
|
deltaLeft,
|
6031
6037
|
deltaTop,
|
6038
|
+
positioningOptions,
|
6032
6039
|
...this.identity
|
6033
6040
|
})
|
6034
6041
|
.then(() => undefined);
|
@@ -6058,11 +6065,12 @@ function requireInstance () {
|
|
6058
6065
|
* moveTo(580, 300).then(() => console.log('Moved')).catch(err => console.log(err))
|
6059
6066
|
* ```
|
6060
6067
|
*/
|
6061
|
-
moveTo(left, top) {
|
6068
|
+
moveTo(left, top, positioningOptions) {
|
6062
6069
|
return this.wire
|
6063
6070
|
.sendAction('move-window', {
|
6064
6071
|
left,
|
6065
6072
|
top,
|
6073
|
+
positioningOptions,
|
6066
6074
|
...this.identity
|
6067
6075
|
})
|
6068
6076
|
.then(() => undefined);
|
@@ -6095,12 +6103,13 @@ function requireInstance () {
|
|
6095
6103
|
* resizeBy(580, 300, 'top-right').then(() => console.log('Resized')).catch(err => console.log(err));
|
6096
6104
|
* ```
|
6097
6105
|
*/
|
6098
|
-
resizeBy(deltaWidth, deltaHeight, anchor) {
|
6106
|
+
resizeBy(deltaWidth, deltaHeight, anchor, positioningOptions) {
|
6099
6107
|
return this.wire
|
6100
6108
|
.sendAction('resize-window-by', {
|
6101
6109
|
deltaWidth: Math.floor(deltaWidth),
|
6102
6110
|
deltaHeight: Math.floor(deltaHeight),
|
6103
6111
|
anchor,
|
6112
|
+
positioningOptions,
|
6104
6113
|
...this.identity
|
6105
6114
|
})
|
6106
6115
|
.then(() => undefined);
|
@@ -6133,12 +6142,13 @@ function requireInstance () {
|
|
6133
6142
|
* resizeTo(580, 300, 'top-left').then(() => console.log('Resized')).catch(err => console.log(err));
|
6134
6143
|
* ```
|
6135
6144
|
*/
|
6136
|
-
resizeTo(width, height, anchor) {
|
6145
|
+
resizeTo(width, height, anchor, positioningOptions) {
|
6137
6146
|
return this.wire
|
6138
6147
|
.sendAction('resize-window', {
|
6139
6148
|
width: Math.floor(width),
|
6140
6149
|
height: Math.floor(height),
|
6141
6150
|
anchor,
|
6151
|
+
positioningOptions,
|
6142
6152
|
...this.identity
|
6143
6153
|
})
|
6144
6154
|
.then(() => undefined);
|
@@ -6197,7 +6207,6 @@ function requireInstance () {
|
|
6197
6207
|
}
|
6198
6208
|
/**
|
6199
6209
|
* Sets the window's size and position.
|
6200
|
-
* @property { Bounds } bounds This is a * @type {string} name - name of the window.object that holds the propertys of
|
6201
6210
|
*
|
6202
6211
|
* @example
|
6203
6212
|
* ```js
|
@@ -6224,8 +6233,10 @@ function requireInstance () {
|
|
6224
6233
|
* }).then(() => console.log('Bounds set to window')).catch(err => console.log(err));
|
6225
6234
|
* ```
|
6226
6235
|
*/
|
6227
|
-
setBounds(bounds) {
|
6228
|
-
return this.wire
|
6236
|
+
setBounds(bounds, positioningOptions) {
|
6237
|
+
return this.wire
|
6238
|
+
.sendAction('set-window-bounds', { ...bounds, ...this.identity, positioningOptions })
|
6239
|
+
.then(() => undefined);
|
6229
6240
|
}
|
6230
6241
|
/**
|
6231
6242
|
* Shows the window if it is hidden.
|
@@ -6567,6 +6578,9 @@ function requireFactory$1 () {
|
|
6567
6578
|
const base_1 = base;
|
6568
6579
|
const validate_1 = validate;
|
6569
6580
|
const Instance_1 = requireInstance();
|
6581
|
+
/**
|
6582
|
+
* Static namespace for OpenFin API methods that interact with the {@link _Window} class, available under `fin.Window`.
|
6583
|
+
*/
|
6570
6584
|
class _WindowModule extends base_1.Base {
|
6571
6585
|
/**
|
6572
6586
|
* Asynchronously returns a Window object that represents an existing window.
|
@@ -9006,17 +9020,17 @@ const channelClientsByEndpointId = new Map();
|
|
9006
9020
|
* provider via {@link ChannelClient#dispatch dispatch} and to listen for communication
|
9007
9021
|
* from the provider by registering an action via {@link ChannelClient#register register}.
|
9008
9022
|
*
|
9009
|
-
* Synchronous Methods:
|
9023
|
+
* ### Synchronous Methods:
|
9010
9024
|
* * {@link ChannelClient#onDisconnection onDisconnection(listener)}
|
9011
9025
|
* * {@link ChannelClient#register register(action, listener)}
|
9012
9026
|
* * {@link ChannelClient#remove remove(action)}
|
9013
9027
|
*
|
9014
|
-
* Asynchronous Methods:
|
9028
|
+
* ### Asynchronous Methods:
|
9015
9029
|
* * {@link ChannelClient#disconnect disconnect()}
|
9016
9030
|
* * {@link ChannelClient#dispatch dispatch(action, payload)}
|
9017
9031
|
*
|
9018
|
-
* Middleware:
|
9019
|
-
*
|
9032
|
+
* ### Middleware:
|
9033
|
+
* Middleware functions receive the following arguments: (action, payload, senderId).
|
9020
9034
|
* The return value of the middleware function will be passed on as the payload from beforeAction, to the action listener, to afterAction
|
9021
9035
|
* unless it is undefined, in which case the original payload is used. Middleware can be used for side effects.
|
9022
9036
|
* * {@link ChannelClient#setDefaultAction setDefaultAction(middleware)}
|
@@ -9706,20 +9720,20 @@ const runtimeVersioning_1 = runtimeVersioning;
|
|
9706
9720
|
* a single client via {@link ChannelProvider#dispatch dispatch} or all clients via {@link ChannelProvider#publish publish}
|
9707
9721
|
* and to listen for communication from clients by registering an action via {@link ChannelProvider#register register}.
|
9708
9722
|
*
|
9709
|
-
* Synchronous Methods:
|
9723
|
+
* ### Synchronous Methods:
|
9710
9724
|
* * {@link ChannelProvider#onConnection onConnection(listener)}
|
9711
9725
|
* * {@link ChannelProvider#onDisconnection onDisconnection(listener)}
|
9712
9726
|
* * {@link ChannelProvider#publish publish(action, payload)}
|
9713
9727
|
* * {@link ChannelProvider#register register(action, listener)}
|
9714
9728
|
* * {@link ChannelProvider#remove remove(action)}
|
9715
9729
|
*
|
9716
|
-
* Asynchronous Methods:
|
9730
|
+
* ### Asynchronous Methods:
|
9717
9731
|
* * {@link ChannelProvider#destroy destroy()}
|
9718
9732
|
* * {@link ChannelProvider#dispatch dispatch(to, action, payload)}
|
9719
9733
|
* * {@link ChannelProvider#getAllClientInfo getAllClientInfo()}
|
9720
9734
|
*
|
9721
|
-
* Middleware:
|
9722
|
-
*
|
9735
|
+
* ### Middleware:
|
9736
|
+
* Middleware functions receive the following arguments: (action, payload, senderId).
|
9723
9737
|
* The return value of the middleware function will be passed on as the payload from beforeAction, to the action listener, to afterAction
|
9724
9738
|
* unless it is undefined, in which case the most recently defined payload is used. Middleware can be used for side effects.
|
9725
9739
|
* * {@link ChannelProvider#setDefaultAction setDefaultAction(middleware)}
|
@@ -11206,7 +11220,7 @@ const base_1$c = base;
|
|
11206
11220
|
/**
|
11207
11221
|
* An ExternalApplication object representing native language adapter connections to the runtime. Allows
|
11208
11222
|
* the developer to listen to {@link OpenFin.ExternalApplicationEvents external application events}.
|
11209
|
-
* Discovery of connections is provided by
|
11223
|
+
* Discovery of connections is provided by {@link System.System.getAllExternalApplications getAllExternalApplications}.</a>
|
11210
11224
|
*
|
11211
11225
|
* Processes that can be wrapped as `ExternalApplication`s include the following:
|
11212
11226
|
* - Processes which have connected to an OpenFin runtime via an adapter
|
@@ -11320,6 +11334,9 @@ Object.defineProperty(Factory$5, "__esModule", { value: true });
|
|
11320
11334
|
Factory$5.ExternalApplicationModule = void 0;
|
11321
11335
|
const base_1$b = base;
|
11322
11336
|
const Instance_1$4 = Instance$4;
|
11337
|
+
/**
|
11338
|
+
* Static namespace for OpenFin API methods that interact with the {@link ExternalApplication} class, available under `fin.ExternalApplication`.
|
11339
|
+
*/
|
11323
11340
|
class ExternalApplicationModule extends base_1$b.Base {
|
11324
11341
|
/**
|
11325
11342
|
* Asynchronously returns an External Application object that represents an external application.
|
@@ -11547,6 +11564,9 @@ Factory$4._FrameModule = void 0;
|
|
11547
11564
|
const base_1$9 = base;
|
11548
11565
|
const validate_1$2 = validate;
|
11549
11566
|
const Instance_1$3 = Instance$3;
|
11567
|
+
/**
|
11568
|
+
* Static namespace for OpenFin API methods that interact with the {@link _Frame} class, available under `fin.Frame`.
|
11569
|
+
*/
|
11550
11570
|
class _FrameModule extends base_1$9.Base {
|
11551
11571
|
/**
|
11552
11572
|
* Asynchronously returns a reference to the specified frame. The frame does not have to exist
|
@@ -11632,7 +11652,7 @@ Factory$4._FrameModule = _FrameModule;
|
|
11632
11652
|
* * {@link _FrameModule} contains static methods relating to the `Frame` type, accessible through `fin.Frame`.
|
11633
11653
|
* * {@link _Frame} describes an instance of an OpenFin Frame, e.g. as returned by `fin.Frame.getCurrent`.
|
11634
11654
|
*
|
11635
|
-
* These are separate code entities, and are documented separately.
|
11655
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
11636
11656
|
* both of these were documented on the same page.
|
11637
11657
|
*
|
11638
11658
|
* Underscore prefixing of OpenFin types that alias DOM entities will be fixed in a future version.
|
@@ -12675,6 +12695,138 @@ const base_1$6 = base;
|
|
12675
12695
|
const common_utils_1 = commonUtils;
|
12676
12696
|
const layout_entities_1 = layoutEntities;
|
12677
12697
|
const layout_constants_1 = layout_constants;
|
12698
|
+
/**
|
12699
|
+
*
|
12700
|
+
* Layouts give app providers the ability to embed multiple views in a single window. The Layout namespace
|
12701
|
+
* enables the initialization and manipulation of a window's Layout. A Layout will
|
12702
|
+
* emit events locally on the DOM element representing the layout-container.
|
12703
|
+
*
|
12704
|
+
*
|
12705
|
+
* ### Layout.DOMEvents
|
12706
|
+
*
|
12707
|
+
* When a Layout is created, it emits events onto the DOM element representing the Layout container.
|
12708
|
+
* This Layout container is the DOM element referenced by containerId in {@link Layout.LayoutModule#init Layout.init}.
|
12709
|
+
* You can use the built-in event emitter to listen to these events using [addEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener).
|
12710
|
+
* The events are emitted synchronously and only in the process where the Layout exists.
|
12711
|
+
* Any values returned by the called listeners are ignored and will be discarded.
|
12712
|
+
* If the target DOM element is destroyed, any events that have been set up on that element will be destroyed.
|
12713
|
+
*
|
12714
|
+
* @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
|
12715
|
+
*
|
12716
|
+
* #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener addEventListener(type, listener [, options]);}
|
12717
|
+
* Adds a listener to the end of the listeners array for the specified event.
|
12718
|
+
* @example
|
12719
|
+
* ```js
|
12720
|
+
* const myLayoutContainer = document.getElementById('layout-container');
|
12721
|
+
*
|
12722
|
+
* myLayoutContainer.addEventListener('tab-created', function(event) {
|
12723
|
+
* const { tabSelector } = event.detail;
|
12724
|
+
* const tabElement = document.getElementById(tabSelector);
|
12725
|
+
* const existingColor = tabElement.style.backgroundColor;
|
12726
|
+
* tabElement.style.backgroundColor = "red";
|
12727
|
+
* setTimeout(() => {
|
12728
|
+
* tabElement.style.backgroundColor = existingColor;
|
12729
|
+
* }, 2000);
|
12730
|
+
* });
|
12731
|
+
* ```
|
12732
|
+
*
|
12733
|
+
* #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener removeEventListener(type, listener [, options]);}
|
12734
|
+
* Adds a listener to the end of the listeners array for the specified event.
|
12735
|
+
* @example
|
12736
|
+
* ```js
|
12737
|
+
* const myLayoutContainer = document.getElementById('layout-container');
|
12738
|
+
*
|
12739
|
+
* const listener = function(event) {
|
12740
|
+
* console.log(event.detail);
|
12741
|
+
* console.log('container-created event fired once, removing listener');
|
12742
|
+
* myLayoutContainer.removeEventListener('container-created', listener);
|
12743
|
+
* };
|
12744
|
+
*
|
12745
|
+
* myLayoutContainer.addEventListener('container-created', listener);
|
12746
|
+
* ```
|
12747
|
+
*
|
12748
|
+
* ### Supported event types are:
|
12749
|
+
*
|
12750
|
+
* * tab-created
|
12751
|
+
* * container-created
|
12752
|
+
* * layout-state-changed
|
12753
|
+
* * tab-closed
|
12754
|
+
* * tab-dropped
|
12755
|
+
*
|
12756
|
+
* ### Layout DOM Node Events
|
12757
|
+
*
|
12758
|
+
* #### tab-created
|
12759
|
+
* Generated when a tab is created. As a user drags and drops tabs within window, new tabs are created. A single view may have multiple tabs created and destroyed during its lifetime attached to a single window.
|
12760
|
+
* ```js
|
12761
|
+
* // The response has the following shape in event.detail:
|
12762
|
+
* {
|
12763
|
+
* containerSelector: "container-component_A",
|
12764
|
+
* name: "component_A",
|
12765
|
+
* tabSelector: "tab-component_A",
|
12766
|
+
* topic: "openfin-DOM-event",
|
12767
|
+
* type: "tab-created",
|
12768
|
+
* uuid: "OpenFin POC"
|
12769
|
+
* }
|
12770
|
+
* ```
|
12771
|
+
*
|
12772
|
+
* #### container-created
|
12773
|
+
* Generated when a container is created. A single view will have only one container during its lifetime attached to a single window and the container's lifecycle is tied to the view. To discover when the container is destroyed, please listen to view-detached event.
|
12774
|
+
* ```js
|
12775
|
+
* // The response has the following shape in event.detail:
|
12776
|
+
* {
|
12777
|
+
* containerSelector: "container-component_A",
|
12778
|
+
* name: "component_A",
|
12779
|
+
* tabSelector: "tab-component_A",
|
12780
|
+
* topic: "openfin-DOM-event",
|
12781
|
+
* type: "container-created",
|
12782
|
+
* uuid: "OpenFin POC"
|
12783
|
+
* }
|
12784
|
+
* ```
|
12785
|
+
*
|
12786
|
+
* ### layout-state-changed
|
12787
|
+
* Generated when the state of the layout changes in any way, such as a view added/removed/replaced. Note that this event can fire frequently as the underlying layout can change multiple components from all kinds of changes (resizing for example). Given this, it is recommended to debounce this event and then you can use the {@link Layout#getConfig Layout.getConfig} API to retrieve the most up-to-date state.
|
12788
|
+
* ```js
|
12789
|
+
* // The response has the following shape in event.detail
|
12790
|
+
* {
|
12791
|
+
* containerSelector: "container-component_A",
|
12792
|
+
* name: "component_A",
|
12793
|
+
* tabSelector: "tab-component_A",
|
12794
|
+
* topic: "openfin-DOM-event",
|
12795
|
+
* type: "layout-state-changed",
|
12796
|
+
* uuid: "OpenFin POC"
|
12797
|
+
* }
|
12798
|
+
* ```
|
12799
|
+
*
|
12800
|
+
* #### tab-closed
|
12801
|
+
* Generated when a tab is closed.
|
12802
|
+
* ```js
|
12803
|
+
* // The response has the following shape in event.detail:
|
12804
|
+
* {
|
12805
|
+
* containerSelector: "container-component_A",
|
12806
|
+
* name: "component_A",
|
12807
|
+
* tabSelector: "tab-component_A",
|
12808
|
+
* topic: "openfin-DOM-event",
|
12809
|
+
* type: "tab-closed",
|
12810
|
+
* uuid: "OpenFin POC",
|
12811
|
+
* url: "http://openfin.co" // The url of the view that was closed.
|
12812
|
+
* }
|
12813
|
+
* ```
|
12814
|
+
*
|
12815
|
+
* #### tab-dropped
|
12816
|
+
* Generated when a tab is dropped.
|
12817
|
+
* ```js
|
12818
|
+
* // The response has the following shape in event.detail:
|
12819
|
+
* {
|
12820
|
+
* containerSelector: "container-component_A",
|
12821
|
+
* name: "component_A",
|
12822
|
+
* tabSelector: "tab-component_A",
|
12823
|
+
* topic: "openfin-DOM-event",
|
12824
|
+
* type: "tab-dropped",
|
12825
|
+
* uuid: "OpenFin POC",
|
12826
|
+
* url: "http://openfin.co" // The url of the view linked to the dropped tab.
|
12827
|
+
* }
|
12828
|
+
* ```
|
12829
|
+
*/
|
12678
12830
|
class Layout extends base_1$6.Base {
|
12679
12831
|
/**
|
12680
12832
|
* @internal
|
@@ -12902,6 +13054,9 @@ Factory$2.LayoutModule = void 0;
|
|
12902
13054
|
/* eslint-disable no-undef, import/prefer-default-export */
|
12903
13055
|
const base_1$5 = base;
|
12904
13056
|
const Instance_1$2 = Instance$1;
|
13057
|
+
/**
|
13058
|
+
* Static namespace for OpenFin API methods that interact with the {@link Layout} class, available under `fin.Platform.Layout`.
|
13059
|
+
*/
|
12905
13060
|
class LayoutModule extends base_1$5.Base {
|
12906
13061
|
constructor() {
|
12907
13062
|
super(...arguments);
|
@@ -13067,131 +13222,6 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap();
|
|
13067
13222
|
*
|
13068
13223
|
* @packageDocumentation
|
13069
13224
|
*
|
13070
|
-
*
|
13071
|
-
* ### Layout.DOMEvents
|
13072
|
-
*
|
13073
|
-
* When a Layout is created, it emits events onto the DOM element representing the Layout container.
|
13074
|
-
* This Layout container is the DOM element referenced by containerId in {@link Layout.LayoutModule#init Layout.init}.
|
13075
|
-
* You can use the built-in event emitter to listen to these events using [addEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener).
|
13076
|
-
* The events are emitted synchronously and only in the process where the Layout exists.
|
13077
|
-
* Any values returned by the called listeners are ignored and will be discarded.
|
13078
|
-
* If the target DOM element is destroyed, any events that have been set up on that element will be destroyed.
|
13079
|
-
*
|
13080
|
-
* @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
|
13081
|
-
*
|
13082
|
-
* #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener addEventListener(type, listener [, options]);}
|
13083
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
13084
|
-
* @example
|
13085
|
-
* ```js
|
13086
|
-
* const myLayoutContainer = document.getElementById('layout-container');
|
13087
|
-
*
|
13088
|
-
* myLayoutContainer.addEventListener('tab-created', function(event) {
|
13089
|
-
* const { tabSelector } = event.detail;
|
13090
|
-
* const tabElement = document.getElementById(tabSelector);
|
13091
|
-
* const existingColor = tabElement.style.backgroundColor;
|
13092
|
-
* tabElement.style.backgroundColor = "red";
|
13093
|
-
* setTimeout(() => {
|
13094
|
-
* tabElement.style.backgroundColor = existingColor;
|
13095
|
-
* }, 2000);
|
13096
|
-
* });
|
13097
|
-
* ```
|
13098
|
-
*
|
13099
|
-
* #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener removeEventListener(type, listener [, options]);}
|
13100
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
13101
|
-
* @example
|
13102
|
-
* ```js
|
13103
|
-
* const myLayoutContainer = document.getElementById('layout-container');
|
13104
|
-
*
|
13105
|
-
* const listener = function(event) {
|
13106
|
-
* console.log(event.detail);
|
13107
|
-
* console.log('container-created event fired once, removing listener');
|
13108
|
-
* myLayoutContainer.removeEventListener('container-created', listener);
|
13109
|
-
* };
|
13110
|
-
*
|
13111
|
-
* myLayoutContainer.addEventListener('container-created', listener);
|
13112
|
-
* ```
|
13113
|
-
*
|
13114
|
-
* ### Supported event types are:
|
13115
|
-
*
|
13116
|
-
* * tab-created
|
13117
|
-
* * container-created
|
13118
|
-
* * layout-state-changed
|
13119
|
-
* * tab-closed
|
13120
|
-
* * tab-dropped
|
13121
|
-
*
|
13122
|
-
* ### Layout DOM Node Events
|
13123
|
-
*
|
13124
|
-
* #### tab-created
|
13125
|
-
* Generated when a tab is created. As a user drags and drops tabs within window, new tabs are created. A single view may have multiple tabs created and destroyed during its lifetime attached to a single window.
|
13126
|
-
* ```js
|
13127
|
-
* // The response has the following shape in event.detail:
|
13128
|
-
* {
|
13129
|
-
* containerSelector: "container-component_A",
|
13130
|
-
* name: "component_A",
|
13131
|
-
* tabSelector: "tab-component_A",
|
13132
|
-
* topic: "openfin-DOM-event",
|
13133
|
-
* type: "tab-created",
|
13134
|
-
* uuid: "OpenFin POC"
|
13135
|
-
* }
|
13136
|
-
* ```
|
13137
|
-
*
|
13138
|
-
* #### container-created
|
13139
|
-
* Generated when a container is created. A single view will have only one container during its lifetime attached to a single window and the container's lifecycle is tied to the view. To discover when the container is destroyed, please listen to view-detached event.
|
13140
|
-
* ```js
|
13141
|
-
* // The response has the following shape in event.detail:
|
13142
|
-
* {
|
13143
|
-
* containerSelector: "container-component_A",
|
13144
|
-
* name: "component_A",
|
13145
|
-
* tabSelector: "tab-component_A",
|
13146
|
-
* topic: "openfin-DOM-event",
|
13147
|
-
* type: "container-created",
|
13148
|
-
* uuid: "OpenFin POC"
|
13149
|
-
* }
|
13150
|
-
* ```
|
13151
|
-
*
|
13152
|
-
* ### layout-state-changed
|
13153
|
-
* Generated when the state of the layout changes in any way, such as a view added/removed/replaced. Note that this event can fire frequently as the underlying layout can change multiple components from all kinds of changes (resizing for example). Given this, it is recommended to debounce this event and then you can use the {@link Layout#getConfig Layout.getConfig} API to retrieve the most up-to-date state.
|
13154
|
-
* ```js
|
13155
|
-
* // The response has the following shape in event.detail
|
13156
|
-
* {
|
13157
|
-
* containerSelector: "container-component_A",
|
13158
|
-
* name: "component_A",
|
13159
|
-
* tabSelector: "tab-component_A",
|
13160
|
-
* topic: "openfin-DOM-event",
|
13161
|
-
* type: "layout-state-changed",
|
13162
|
-
* uuid: "OpenFin POC"
|
13163
|
-
* }
|
13164
|
-
* ```
|
13165
|
-
*
|
13166
|
-
* #### tab-closed
|
13167
|
-
* Generated when a tab is closed.
|
13168
|
-
* ```js
|
13169
|
-
* // The response has the following shape in event.detail:
|
13170
|
-
* {
|
13171
|
-
* containerSelector: "container-component_A",
|
13172
|
-
* name: "component_A",
|
13173
|
-
* tabSelector: "tab-component_A",
|
13174
|
-
* topic: "openfin-DOM-event",
|
13175
|
-
* type: "tab-closed",
|
13176
|
-
* uuid: "OpenFin POC",
|
13177
|
-
* url: "http://openfin.co" // The url of the view that was closed.
|
13178
|
-
* }
|
13179
|
-
* ```
|
13180
|
-
*
|
13181
|
-
* #### tab-dropped
|
13182
|
-
* Generated when a tab is dropped.
|
13183
|
-
* ```js
|
13184
|
-
* // The response has the following shape in event.detail:
|
13185
|
-
* {
|
13186
|
-
* containerSelector: "container-component_A",
|
13187
|
-
* name: "component_A",
|
13188
|
-
* tabSelector: "tab-component_A",
|
13189
|
-
* topic: "openfin-DOM-event",
|
13190
|
-
* type: "tab-dropped",
|
13191
|
-
* uuid: "OpenFin POC",
|
13192
|
-
* url: "http://openfin.co" // The url of the view linked to the dropped tab.
|
13193
|
-
* }
|
13194
|
-
* ```
|
13195
13225
|
*/
|
13196
13226
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
13197
13227
|
if (k2 === undefined) k2 = k;
|
@@ -13217,6 +13247,9 @@ Factory$3.PlatformModule = void 0;
|
|
13217
13247
|
const base_1$4 = base;
|
13218
13248
|
const Instance_1$1 = Instance$2;
|
13219
13249
|
const index_1$1 = layout;
|
13250
|
+
/**
|
13251
|
+
* Static namespace for OpenFin API methods that interact with the {@link Platform} class, available under `fin.Platform`.
|
13252
|
+
*/
|
13220
13253
|
class PlatformModule extends base_1$4.Base {
|
13221
13254
|
/**
|
13222
13255
|
* @internal
|
@@ -16595,6 +16628,9 @@ Factory.SnapshotSourceModule = void 0;
|
|
16595
16628
|
const base_1 = base;
|
16596
16629
|
const Instance_1 = Instance;
|
16597
16630
|
const utils_1 = utils;
|
16631
|
+
/**
|
16632
|
+
* Static namespace for OpenFin API methods that interact with the {@link SnapshotSource} class, available under `fin.SnapshotSource`.
|
16633
|
+
*/
|
16598
16634
|
class SnapshotSourceModule extends base_1.Base {
|
16599
16635
|
/**
|
16600
16636
|
* Initializes a SnapshotSource with the getSnapshot and applySnapshot methods defined.
|
@@ -16671,7 +16707,7 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
|
|
16671
16707
|
* Entry points for the OpenFin `SnapshotSource` API.
|
16672
16708
|
*
|
16673
16709
|
* * {@link SnapshotSourceModule} contains static methods relating to the `SnapshotSource` type, accessible through `fin.SnapshotSource`.
|
16674
|
-
* * {@link SnapshotSource} describes an instance of an OpenFin SnapshotSource, e.g. as returned by `fin.SnapshotSource.
|
16710
|
+
* * {@link SnapshotSource} describes an instance of an OpenFin SnapshotSource, e.g. as returned by `fin.SnapshotSource.wrap`.
|
16675
16711
|
*
|
16676
16712
|
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
16677
16713
|
* both of these were documented on the same page.
|