@openfin/core 38.82.63 → 38.82.64

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.
@@ -45,6 +45,15 @@ declare type Accelerator = {
45
45
  zoom: boolean;
46
46
  };
47
47
 
48
+ /**
49
+ * Generated when a View is added to a layout.
50
+ * @interface
51
+ */
52
+ declare type AddedToLayoutEvent = BaseEvent_4 & {
53
+ type: 'added-to-layout';
54
+ layoutIdentity: OpenFin_2.LayoutIdentity;
55
+ };
56
+
48
57
  /**
49
58
  * Options to use when adding a view to a {@link TabStack}.
50
59
  *
@@ -4761,7 +4770,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
4761
4770
  */
4762
4771
  declare type Event_4 = (WebContentsEvents.Event<'view'> & {
4763
4772
  target: OpenFin_2.Identity;
4764
- }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent;
4773
+ }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
4765
4774
 
4766
4775
  /**
4767
4776
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
@@ -11882,6 +11891,15 @@ declare interface RemoteConfig extends ExistingConnectConfig {
11882
11891
  token: string;
11883
11892
  }
11884
11893
 
11894
+ /**
11895
+ * Generated when a View is removed from a layout.
11896
+ * @interface
11897
+ */
11898
+ declare type RemovedFromLayoutEvent = BaseEvent_4 & {
11899
+ type: 'removed-from-layout';
11900
+ layoutIdentity: OpenFin_2.LayoutIdentity;
11901
+ };
11902
+
11885
11903
  /**
11886
11904
  * @interface
11887
11905
  */
@@ -15132,6 +15150,8 @@ declare namespace ViewEvents {
15132
15150
  BaseEvent_4 as BaseEvent,
15133
15151
  BaseViewEvent,
15134
15152
  TargetChangedEvent,
15153
+ AddedToLayoutEvent,
15154
+ RemovedFromLayoutEvent,
15135
15155
  NonPropagatedViewEvent,
15136
15156
  CreatedEvent,
15137
15157
  DestroyedEvent,
@@ -45,6 +45,15 @@ declare type Accelerator = {
45
45
  zoom: boolean;
46
46
  };
47
47
 
48
+ /**
49
+ * Generated when a View is added to a layout.
50
+ * @interface
51
+ */
52
+ declare type AddedToLayoutEvent = BaseEvent_4 & {
53
+ type: 'added-to-layout';
54
+ layoutIdentity: OpenFin_2.LayoutIdentity;
55
+ };
56
+
48
57
  /**
49
58
  * Options to use when adding a view to a {@link TabStack}.
50
59
  *
@@ -4761,7 +4770,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
4761
4770
  */
4762
4771
  declare type Event_4 = (WebContentsEvents.Event<'view'> & {
4763
4772
  target: OpenFin_2.Identity;
4764
- }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent;
4773
+ }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
4765
4774
 
4766
4775
  /**
4767
4776
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
@@ -11882,6 +11891,15 @@ declare interface RemoteConfig extends ExistingConnectConfig {
11882
11891
  token: string;
11883
11892
  }
11884
11893
 
11894
+ /**
11895
+ * Generated when a View is removed from a layout.
11896
+ * @interface
11897
+ */
11898
+ declare type RemovedFromLayoutEvent = BaseEvent_4 & {
11899
+ type: 'removed-from-layout';
11900
+ layoutIdentity: OpenFin_2.LayoutIdentity;
11901
+ };
11902
+
11885
11903
  /**
11886
11904
  * @interface
11887
11905
  */
@@ -15132,6 +15150,8 @@ declare namespace ViewEvents {
15132
15150
  BaseEvent_4 as BaseEvent,
15133
15151
  BaseViewEvent,
15134
15152
  TargetChangedEvent,
15153
+ AddedToLayoutEvent,
15154
+ RemovedFromLayoutEvent,
15135
15155
  NonPropagatedViewEvent,
15136
15156
  CreatedEvent,
15137
15157
  DestroyedEvent,
@@ -45,6 +45,15 @@ declare type Accelerator = {
45
45
  zoom: boolean;
46
46
  };
47
47
 
48
+ /**
49
+ * Generated when a View is added to a layout.
50
+ * @interface
51
+ */
52
+ declare type AddedToLayoutEvent = BaseEvent_4 & {
53
+ type: 'added-to-layout';
54
+ layoutIdentity: OpenFin_2.LayoutIdentity;
55
+ };
56
+
48
57
  /**
49
58
  * Options to use when adding a view to a {@link TabStack}.
50
59
  *
@@ -4761,7 +4770,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
4761
4770
  */
4762
4771
  declare type Event_4 = (WebContentsEvents.Event<'view'> & {
4763
4772
  target: OpenFin_2.Identity;
4764
- }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent;
4773
+ }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
4765
4774
 
4766
4775
  /**
4767
4776
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
@@ -11882,6 +11891,15 @@ declare interface RemoteConfig extends ExistingConnectConfig {
11882
11891
  token: string;
11883
11892
  }
11884
11893
 
11894
+ /**
11895
+ * Generated when a View is removed from a layout.
11896
+ * @interface
11897
+ */
11898
+ declare type RemovedFromLayoutEvent = BaseEvent_4 & {
11899
+ type: 'removed-from-layout';
11900
+ layoutIdentity: OpenFin_2.LayoutIdentity;
11901
+ };
11902
+
11885
11903
  /**
11886
11904
  * @interface
11887
11905
  */
@@ -15132,6 +15150,8 @@ declare namespace ViewEvents {
15132
15150
  BaseEvent_4 as BaseEvent,
15133
15151
  BaseViewEvent,
15134
15152
  TargetChangedEvent,
15153
+ AddedToLayoutEvent,
15154
+ RemovedFromLayoutEvent,
15135
15155
  NonPropagatedViewEvent,
15136
15156
  CreatedEvent,
15137
15157
  DestroyedEvent,
package/out/mock.d.ts CHANGED
@@ -45,6 +45,15 @@ declare type Accelerator = {
45
45
  zoom: boolean;
46
46
  };
47
47
 
48
+ /**
49
+ * Generated when a View is added to a layout.
50
+ * @interface
51
+ */
52
+ declare type AddedToLayoutEvent = BaseEvent_4 & {
53
+ type: 'added-to-layout';
54
+ layoutIdentity: OpenFin_2.LayoutIdentity;
55
+ };
56
+
48
57
  /**
49
58
  * Options to use when adding a view to a {@link TabStack}.
50
59
  *
@@ -4825,7 +4834,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
4825
4834
  */
4826
4835
  declare type Event_4 = (WebContentsEvents.Event<'view'> & {
4827
4836
  target: OpenFin_2.Identity;
4828
- }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent;
4837
+ }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
4829
4838
 
4830
4839
  /**
4831
4840
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
@@ -12275,6 +12284,15 @@ declare interface RemoteConfig extends ExistingConnectConfig {
12275
12284
  token: string;
12276
12285
  }
12277
12286
 
12287
+ /**
12288
+ * Generated when a View is removed from a layout.
12289
+ * @interface
12290
+ */
12291
+ declare type RemovedFromLayoutEvent = BaseEvent_4 & {
12292
+ type: 'removed-from-layout';
12293
+ layoutIdentity: OpenFin_2.LayoutIdentity;
12294
+ };
12295
+
12278
12296
  /**
12279
12297
  * @interface
12280
12298
  */
@@ -15575,6 +15593,8 @@ declare namespace ViewEvents {
15575
15593
  BaseEvent_4 as BaseEvent,
15576
15594
  BaseViewEvent,
15577
15595
  TargetChangedEvent,
15596
+ AddedToLayoutEvent,
15597
+ RemovedFromLayoutEvent,
15578
15598
  NonPropagatedViewEvent,
15579
15599
  CreatedEvent,
15580
15600
  DestroyedEvent,
package/out/mock.js CHANGED
@@ -3019,9 +3019,14 @@ function requireInstance$2 () {
3019
3019
  // don't expose
3020
3020
  });
3021
3021
  const layoutWindow = await this.getCurrentWindow();
3022
+ let layoutWindowIdentity = layoutWindow.identity;
3023
+ // TODO: CORE-1857 - when we tearout active layout or drag a view out of a window, the above identity includes the whole window info.
3024
+ if (layoutWindowIdentity.identity) {
3025
+ layoutWindowIdentity = layoutWindowIdentity.identity;
3026
+ }
3022
3027
  try {
3023
3028
  const providerChannelClient = await __classPrivateFieldGet(this, _View_providerChannelClient, "f").getValue();
3024
- const client = await layout_entities_1.LayoutNode.newLayoutEntitiesClient(providerChannelClient, layout_constants_1.LAYOUT_CONTROLLER_ID, layoutWindow.identity);
3029
+ const client = await layout_entities_1.LayoutNode.newLayoutEntitiesClient(providerChannelClient, layout_constants_1.LAYOUT_CONTROLLER_ID, layoutWindowIdentity);
3025
3030
  const layoutIdentity = await client.getLayoutIdentityForViewOrThrow(this.identity);
3026
3031
  return this.fin.Platform.Layout.wrap(layoutIdentity);
3027
3032
  }
@@ -3034,7 +3039,7 @@ function requireInstance$2 () {
3034
3039
  throw e;
3035
3040
  }
3036
3041
  // fallback logic for missing endpoint
3037
- return this.fin.Platform.Layout.wrap(layoutWindow.identity);
3042
+ return this.fin.Platform.Layout.wrap(layoutWindowIdentity);
3038
3043
  }
3039
3044
  };
3040
3045
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "38.82.63",
3
+ "version": "38.82.64",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",