@openfin/core 39.83.2 → 39.83.3
Sign up to get free protection for your applications and to get access to all the features.
- package/out/mock-alpha.d.ts +25 -1
- package/out/mock-beta.d.ts +25 -1
- package/out/mock-public.d.ts +25 -1
- package/out/mock.d.ts +25 -1
- package/out/mock.js +7 -2
- package/package.json +1 -1
package/out/mock-alpha.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
|
*
|
@@ -4758,7 +4767,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
|
|
4758
4767
|
*/
|
4759
4768
|
declare type Event_4 = (WebContentsEvents.Event<'view'> & {
|
4760
4769
|
target: OpenFin_2.Identity;
|
4761
|
-
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent;
|
4770
|
+
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
|
4762
4771
|
|
4763
4772
|
/**
|
4764
4773
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
|
@@ -5153,6 +5162,10 @@ declare type FileDownloadEvent = {
|
|
5153
5162
|
* The number of bytes of the item that have already been downloaded.
|
5154
5163
|
*/
|
5155
5164
|
downloadedBytes: number;
|
5165
|
+
/**
|
5166
|
+
* Unique identifier for the downloaded file.
|
5167
|
+
*/
|
5168
|
+
fileUuid: string;
|
5156
5169
|
} & NamedEvent;
|
5157
5170
|
|
5158
5171
|
/**
|
@@ -11906,6 +11919,15 @@ declare interface RemoteConfig extends ExistingConnectConfig {
|
|
11906
11919
|
token: string;
|
11907
11920
|
}
|
11908
11921
|
|
11922
|
+
/**
|
11923
|
+
* Generated when a View is removed from a layout.
|
11924
|
+
* @interface
|
11925
|
+
*/
|
11926
|
+
declare type RemovedFromLayoutEvent = BaseEvent_4 & {
|
11927
|
+
type: 'removed-from-layout';
|
11928
|
+
layoutIdentity: OpenFin_2.LayoutIdentity;
|
11929
|
+
};
|
11930
|
+
|
11909
11931
|
/**
|
11910
11932
|
* @interface
|
11911
11933
|
*/
|
@@ -15156,6 +15178,8 @@ declare namespace ViewEvents {
|
|
15156
15178
|
BaseEvent_4 as BaseEvent,
|
15157
15179
|
BaseViewEvent,
|
15158
15180
|
TargetChangedEvent,
|
15181
|
+
AddedToLayoutEvent,
|
15182
|
+
RemovedFromLayoutEvent,
|
15159
15183
|
NonPropagatedViewEvent,
|
15160
15184
|
CreatedEvent,
|
15161
15185
|
DestroyedEvent,
|
package/out/mock-beta.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
|
*
|
@@ -4758,7 +4767,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
|
|
4758
4767
|
*/
|
4759
4768
|
declare type Event_4 = (WebContentsEvents.Event<'view'> & {
|
4760
4769
|
target: OpenFin_2.Identity;
|
4761
|
-
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent;
|
4770
|
+
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
|
4762
4771
|
|
4763
4772
|
/**
|
4764
4773
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
|
@@ -5153,6 +5162,10 @@ declare type FileDownloadEvent = {
|
|
5153
5162
|
* The number of bytes of the item that have already been downloaded.
|
5154
5163
|
*/
|
5155
5164
|
downloadedBytes: number;
|
5165
|
+
/**
|
5166
|
+
* Unique identifier for the downloaded file.
|
5167
|
+
*/
|
5168
|
+
fileUuid: string;
|
5156
5169
|
} & NamedEvent;
|
5157
5170
|
|
5158
5171
|
/**
|
@@ -11906,6 +11919,15 @@ declare interface RemoteConfig extends ExistingConnectConfig {
|
|
11906
11919
|
token: string;
|
11907
11920
|
}
|
11908
11921
|
|
11922
|
+
/**
|
11923
|
+
* Generated when a View is removed from a layout.
|
11924
|
+
* @interface
|
11925
|
+
*/
|
11926
|
+
declare type RemovedFromLayoutEvent = BaseEvent_4 & {
|
11927
|
+
type: 'removed-from-layout';
|
11928
|
+
layoutIdentity: OpenFin_2.LayoutIdentity;
|
11929
|
+
};
|
11930
|
+
|
11909
11931
|
/**
|
11910
11932
|
* @interface
|
11911
11933
|
*/
|
@@ -15156,6 +15178,8 @@ declare namespace ViewEvents {
|
|
15156
15178
|
BaseEvent_4 as BaseEvent,
|
15157
15179
|
BaseViewEvent,
|
15158
15180
|
TargetChangedEvent,
|
15181
|
+
AddedToLayoutEvent,
|
15182
|
+
RemovedFromLayoutEvent,
|
15159
15183
|
NonPropagatedViewEvent,
|
15160
15184
|
CreatedEvent,
|
15161
15185
|
DestroyedEvent,
|
package/out/mock-public.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
|
*
|
@@ -4758,7 +4767,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
|
|
4758
4767
|
*/
|
4759
4768
|
declare type Event_4 = (WebContentsEvents.Event<'view'> & {
|
4760
4769
|
target: OpenFin_2.Identity;
|
4761
|
-
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent;
|
4770
|
+
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
|
4762
4771
|
|
4763
4772
|
/**
|
4764
4773
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
|
@@ -5153,6 +5162,10 @@ declare type FileDownloadEvent = {
|
|
5153
5162
|
* The number of bytes of the item that have already been downloaded.
|
5154
5163
|
*/
|
5155
5164
|
downloadedBytes: number;
|
5165
|
+
/**
|
5166
|
+
* Unique identifier for the downloaded file.
|
5167
|
+
*/
|
5168
|
+
fileUuid: string;
|
5156
5169
|
} & NamedEvent;
|
5157
5170
|
|
5158
5171
|
/**
|
@@ -11906,6 +11919,15 @@ declare interface RemoteConfig extends ExistingConnectConfig {
|
|
11906
11919
|
token: string;
|
11907
11920
|
}
|
11908
11921
|
|
11922
|
+
/**
|
11923
|
+
* Generated when a View is removed from a layout.
|
11924
|
+
* @interface
|
11925
|
+
*/
|
11926
|
+
declare type RemovedFromLayoutEvent = BaseEvent_4 & {
|
11927
|
+
type: 'removed-from-layout';
|
11928
|
+
layoutIdentity: OpenFin_2.LayoutIdentity;
|
11929
|
+
};
|
11930
|
+
|
11909
11931
|
/**
|
11910
11932
|
* @interface
|
11911
11933
|
*/
|
@@ -15156,6 +15178,8 @@ declare namespace ViewEvents {
|
|
15156
15178
|
BaseEvent_4 as BaseEvent,
|
15157
15179
|
BaseViewEvent,
|
15158
15180
|
TargetChangedEvent,
|
15181
|
+
AddedToLayoutEvent,
|
15182
|
+
RemovedFromLayoutEvent,
|
15159
15183
|
NonPropagatedViewEvent,
|
15160
15184
|
CreatedEvent,
|
15161
15185
|
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
|
*
|
@@ -4822,7 +4831,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
|
|
4822
4831
|
*/
|
4823
4832
|
declare type Event_4 = (WebContentsEvents.Event<'view'> & {
|
4824
4833
|
target: OpenFin_2.Identity;
|
4825
|
-
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent;
|
4834
|
+
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
|
4826
4835
|
|
4827
4836
|
/**
|
4828
4837
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
|
@@ -5238,6 +5247,10 @@ declare type FileDownloadEvent = {
|
|
5238
5247
|
* The number of bytes of the item that have already been downloaded.
|
5239
5248
|
*/
|
5240
5249
|
downloadedBytes: number;
|
5250
|
+
/**
|
5251
|
+
* Unique identifier for the downloaded file.
|
5252
|
+
*/
|
5253
|
+
fileUuid: string;
|
5241
5254
|
} & NamedEvent;
|
5242
5255
|
|
5243
5256
|
/**
|
@@ -12299,6 +12312,15 @@ declare interface RemoteConfig extends ExistingConnectConfig {
|
|
12299
12312
|
token: string;
|
12300
12313
|
}
|
12301
12314
|
|
12315
|
+
/**
|
12316
|
+
* Generated when a View is removed from a layout.
|
12317
|
+
* @interface
|
12318
|
+
*/
|
12319
|
+
declare type RemovedFromLayoutEvent = BaseEvent_4 & {
|
12320
|
+
type: 'removed-from-layout';
|
12321
|
+
layoutIdentity: OpenFin_2.LayoutIdentity;
|
12322
|
+
};
|
12323
|
+
|
12302
12324
|
/**
|
12303
12325
|
* @interface
|
12304
12326
|
*/
|
@@ -15599,6 +15621,8 @@ declare namespace ViewEvents {
|
|
15599
15621
|
BaseEvent_4 as BaseEvent,
|
15600
15622
|
BaseViewEvent,
|
15601
15623
|
TargetChangedEvent,
|
15624
|
+
AddedToLayoutEvent,
|
15625
|
+
RemovedFromLayoutEvent,
|
15602
15626
|
NonPropagatedViewEvent,
|
15603
15627
|
CreatedEvent,
|
15604
15628
|
DestroyedEvent,
|
package/out/mock.js
CHANGED
@@ -3016,9 +3016,14 @@ function requireInstance$2 () {
|
|
3016
3016
|
// don't expose
|
3017
3017
|
});
|
3018
3018
|
const layoutWindow = await this.getCurrentWindow();
|
3019
|
+
let layoutWindowIdentity = layoutWindow.identity;
|
3020
|
+
// TODO: CORE-1857 - when we tearout active layout or drag a view out of a window, the above identity includes the whole window info.
|
3021
|
+
if (layoutWindowIdentity.identity) {
|
3022
|
+
layoutWindowIdentity = layoutWindowIdentity.identity;
|
3023
|
+
}
|
3019
3024
|
try {
|
3020
3025
|
const providerChannelClient = await __classPrivateFieldGet(this, _View_providerChannelClient, "f").getValue();
|
3021
|
-
const client = await layout_entities_1.LayoutNode.newLayoutEntitiesClient(providerChannelClient, layout_constants_1.LAYOUT_CONTROLLER_ID,
|
3026
|
+
const client = await layout_entities_1.LayoutNode.newLayoutEntitiesClient(providerChannelClient, layout_constants_1.LAYOUT_CONTROLLER_ID, layoutWindowIdentity);
|
3022
3027
|
const layoutIdentity = await client.getLayoutIdentityForViewOrThrow(this.identity);
|
3023
3028
|
return this.fin.Platform.Layout.wrap(layoutIdentity);
|
3024
3029
|
}
|
@@ -3031,7 +3036,7 @@ function requireInstance$2 () {
|
|
3031
3036
|
throw e;
|
3032
3037
|
}
|
3033
3038
|
// fallback logic for missing endpoint
|
3034
|
-
return this.fin.Platform.Layout.wrap(
|
3039
|
+
return this.fin.Platform.Layout.wrap(layoutWindowIdentity);
|
3035
3040
|
}
|
3036
3041
|
};
|
3037
3042
|
/**
|