@openfin/core 39.83.1 → 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 +45 -1
- package/out/mock-beta.d.ts +45 -1
- package/out/mock-public.d.ts +45 -1
- package/out/mock.d.ts +45 -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
|
/**
|
@@ -8221,6 +8234,23 @@ declare type LogLevel = OpenFin_2.LogLevel;
|
|
8221
8234
|
*/
|
8222
8235
|
declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
8223
8236
|
|
8237
|
+
declare type LogUploaderUIOptions = {
|
8238
|
+
title?: string;
|
8239
|
+
icon?: string;
|
8240
|
+
header?: string;
|
8241
|
+
description?: string;
|
8242
|
+
email?: string;
|
8243
|
+
website?: string;
|
8244
|
+
websiteDescription?: string;
|
8245
|
+
};
|
8246
|
+
|
8247
|
+
declare type LogUploadOptions = {
|
8248
|
+
endpoint: string;
|
8249
|
+
manifests?: string[];
|
8250
|
+
logs?: string[];
|
8251
|
+
ui?: LogUploaderUIOptions;
|
8252
|
+
};
|
8253
|
+
|
8224
8254
|
/**
|
8225
8255
|
* @interface
|
8226
8256
|
*/
|
@@ -8279,6 +8309,7 @@ declare type Manifest = {
|
|
8279
8309
|
enableErrorReporting?: boolean;
|
8280
8310
|
};
|
8281
8311
|
interopBrokerConfiguration: InteropBrokerOptions;
|
8312
|
+
logUpload?: LogUploadOptions;
|
8282
8313
|
};
|
8283
8314
|
|
8284
8315
|
/**
|
@@ -9140,6 +9171,8 @@ declare namespace OpenFin_2 {
|
|
9140
9171
|
PlatformViewCreationOptions,
|
9141
9172
|
ProcessAffinityStrategy,
|
9142
9173
|
PlatformOptions,
|
9174
|
+
LogUploaderUIOptions,
|
9175
|
+
LogUploadOptions,
|
9143
9176
|
Manifest,
|
9144
9177
|
LayoutContent,
|
9145
9178
|
LayoutItemConfig,
|
@@ -11886,6 +11919,15 @@ declare interface RemoteConfig extends ExistingConnectConfig {
|
|
11886
11919
|
token: string;
|
11887
11920
|
}
|
11888
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
|
+
|
11889
11931
|
/**
|
11890
11932
|
* @interface
|
11891
11933
|
*/
|
@@ -15136,6 +15178,8 @@ declare namespace ViewEvents {
|
|
15136
15178
|
BaseEvent_4 as BaseEvent,
|
15137
15179
|
BaseViewEvent,
|
15138
15180
|
TargetChangedEvent,
|
15181
|
+
AddedToLayoutEvent,
|
15182
|
+
RemovedFromLayoutEvent,
|
15139
15183
|
NonPropagatedViewEvent,
|
15140
15184
|
CreatedEvent,
|
15141
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
|
/**
|
@@ -8221,6 +8234,23 @@ declare type LogLevel = OpenFin_2.LogLevel;
|
|
8221
8234
|
*/
|
8222
8235
|
declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
8223
8236
|
|
8237
|
+
declare type LogUploaderUIOptions = {
|
8238
|
+
title?: string;
|
8239
|
+
icon?: string;
|
8240
|
+
header?: string;
|
8241
|
+
description?: string;
|
8242
|
+
email?: string;
|
8243
|
+
website?: string;
|
8244
|
+
websiteDescription?: string;
|
8245
|
+
};
|
8246
|
+
|
8247
|
+
declare type LogUploadOptions = {
|
8248
|
+
endpoint: string;
|
8249
|
+
manifests?: string[];
|
8250
|
+
logs?: string[];
|
8251
|
+
ui?: LogUploaderUIOptions;
|
8252
|
+
};
|
8253
|
+
|
8224
8254
|
/**
|
8225
8255
|
* @interface
|
8226
8256
|
*/
|
@@ -8279,6 +8309,7 @@ declare type Manifest = {
|
|
8279
8309
|
enableErrorReporting?: boolean;
|
8280
8310
|
};
|
8281
8311
|
interopBrokerConfiguration: InteropBrokerOptions;
|
8312
|
+
logUpload?: LogUploadOptions;
|
8282
8313
|
};
|
8283
8314
|
|
8284
8315
|
/**
|
@@ -9140,6 +9171,8 @@ declare namespace OpenFin_2 {
|
|
9140
9171
|
PlatformViewCreationOptions,
|
9141
9172
|
ProcessAffinityStrategy,
|
9142
9173
|
PlatformOptions,
|
9174
|
+
LogUploaderUIOptions,
|
9175
|
+
LogUploadOptions,
|
9143
9176
|
Manifest,
|
9144
9177
|
LayoutContent,
|
9145
9178
|
LayoutItemConfig,
|
@@ -11886,6 +11919,15 @@ declare interface RemoteConfig extends ExistingConnectConfig {
|
|
11886
11919
|
token: string;
|
11887
11920
|
}
|
11888
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
|
+
|
11889
11931
|
/**
|
11890
11932
|
* @interface
|
11891
11933
|
*/
|
@@ -15136,6 +15178,8 @@ declare namespace ViewEvents {
|
|
15136
15178
|
BaseEvent_4 as BaseEvent,
|
15137
15179
|
BaseViewEvent,
|
15138
15180
|
TargetChangedEvent,
|
15181
|
+
AddedToLayoutEvent,
|
15182
|
+
RemovedFromLayoutEvent,
|
15139
15183
|
NonPropagatedViewEvent,
|
15140
15184
|
CreatedEvent,
|
15141
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
|
/**
|
@@ -8221,6 +8234,23 @@ declare type LogLevel = OpenFin_2.LogLevel;
|
|
8221
8234
|
*/
|
8222
8235
|
declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
8223
8236
|
|
8237
|
+
declare type LogUploaderUIOptions = {
|
8238
|
+
title?: string;
|
8239
|
+
icon?: string;
|
8240
|
+
header?: string;
|
8241
|
+
description?: string;
|
8242
|
+
email?: string;
|
8243
|
+
website?: string;
|
8244
|
+
websiteDescription?: string;
|
8245
|
+
};
|
8246
|
+
|
8247
|
+
declare type LogUploadOptions = {
|
8248
|
+
endpoint: string;
|
8249
|
+
manifests?: string[];
|
8250
|
+
logs?: string[];
|
8251
|
+
ui?: LogUploaderUIOptions;
|
8252
|
+
};
|
8253
|
+
|
8224
8254
|
/**
|
8225
8255
|
* @interface
|
8226
8256
|
*/
|
@@ -8279,6 +8309,7 @@ declare type Manifest = {
|
|
8279
8309
|
enableErrorReporting?: boolean;
|
8280
8310
|
};
|
8281
8311
|
interopBrokerConfiguration: InteropBrokerOptions;
|
8312
|
+
logUpload?: LogUploadOptions;
|
8282
8313
|
};
|
8283
8314
|
|
8284
8315
|
/**
|
@@ -9140,6 +9171,8 @@ declare namespace OpenFin_2 {
|
|
9140
9171
|
PlatformViewCreationOptions,
|
9141
9172
|
ProcessAffinityStrategy,
|
9142
9173
|
PlatformOptions,
|
9174
|
+
LogUploaderUIOptions,
|
9175
|
+
LogUploadOptions,
|
9143
9176
|
Manifest,
|
9144
9177
|
LayoutContent,
|
9145
9178
|
LayoutItemConfig,
|
@@ -11886,6 +11919,15 @@ declare interface RemoteConfig extends ExistingConnectConfig {
|
|
11886
11919
|
token: string;
|
11887
11920
|
}
|
11888
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
|
+
|
11889
11931
|
/**
|
11890
11932
|
* @interface
|
11891
11933
|
*/
|
@@ -15136,6 +15178,8 @@ declare namespace ViewEvents {
|
|
15136
15178
|
BaseEvent_4 as BaseEvent,
|
15137
15179
|
BaseViewEvent,
|
15138
15180
|
TargetChangedEvent,
|
15181
|
+
AddedToLayoutEvent,
|
15182
|
+
RemovedFromLayoutEvent,
|
15139
15183
|
NonPropagatedViewEvent,
|
15140
15184
|
CreatedEvent,
|
15141
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
|
/**
|
@@ -8514,6 +8527,23 @@ declare type LogLevel = OpenFin_2.LogLevel;
|
|
8514
8527
|
*/
|
8515
8528
|
declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
8516
8529
|
|
8530
|
+
declare type LogUploaderUIOptions = {
|
8531
|
+
title?: string;
|
8532
|
+
icon?: string;
|
8533
|
+
header?: string;
|
8534
|
+
description?: string;
|
8535
|
+
email?: string;
|
8536
|
+
website?: string;
|
8537
|
+
websiteDescription?: string;
|
8538
|
+
};
|
8539
|
+
|
8540
|
+
declare type LogUploadOptions = {
|
8541
|
+
endpoint: string;
|
8542
|
+
manifests?: string[];
|
8543
|
+
logs?: string[];
|
8544
|
+
ui?: LogUploaderUIOptions;
|
8545
|
+
};
|
8546
|
+
|
8517
8547
|
/**
|
8518
8548
|
* @interface
|
8519
8549
|
*/
|
@@ -8572,6 +8602,7 @@ declare type Manifest = {
|
|
8572
8602
|
enableErrorReporting?: boolean;
|
8573
8603
|
};
|
8574
8604
|
interopBrokerConfiguration: InteropBrokerOptions;
|
8605
|
+
logUpload?: LogUploadOptions;
|
8575
8606
|
};
|
8576
8607
|
|
8577
8608
|
/**
|
@@ -9455,6 +9486,8 @@ declare namespace OpenFin_2 {
|
|
9455
9486
|
PlatformViewCreationOptions,
|
9456
9487
|
ProcessAffinityStrategy,
|
9457
9488
|
PlatformOptions,
|
9489
|
+
LogUploaderUIOptions,
|
9490
|
+
LogUploadOptions,
|
9458
9491
|
Manifest,
|
9459
9492
|
LayoutContent,
|
9460
9493
|
LayoutItemConfig,
|
@@ -12279,6 +12312,15 @@ declare interface RemoteConfig extends ExistingConnectConfig {
|
|
12279
12312
|
token: string;
|
12280
12313
|
}
|
12281
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
|
+
|
12282
12324
|
/**
|
12283
12325
|
* @interface
|
12284
12326
|
*/
|
@@ -15579,6 +15621,8 @@ declare namespace ViewEvents {
|
|
15579
15621
|
BaseEvent_4 as BaseEvent,
|
15580
15622
|
BaseViewEvent,
|
15581
15623
|
TargetChangedEvent,
|
15624
|
+
AddedToLayoutEvent,
|
15625
|
+
RemovedFromLayoutEvent,
|
15582
15626
|
NonPropagatedViewEvent,
|
15583
15627
|
CreatedEvent,
|
15584
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
|
/**
|