@openfin/core 42.102.4 → 42.103.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.
- package/out/mock-alpha.d.ts +45 -20
- package/out/mock-beta.d.ts +45 -20
- package/out/mock-public.d.ts +45 -20
- package/out/stub.d.ts +45 -20
- package/out/stub.js +8 -53
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
|
@@ -3600,6 +3600,12 @@ declare type ConstViewOptions = {
|
|
|
3600
3600
|
* Control which options to ignore when creating a Platform View.
|
|
3601
3601
|
*/
|
|
3602
3602
|
excludeOptions: ExcludeOptions;
|
|
3603
|
+
/**
|
|
3604
|
+
* Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
|
|
3605
|
+
* When true, each call generates a new unique target name, ensuring a new window is always created.
|
|
3606
|
+
* When false, the target name passed to window.open is respected.
|
|
3607
|
+
*/
|
|
3608
|
+
ignoreChildFrameName?: boolean;
|
|
3603
3609
|
};
|
|
3604
3610
|
|
|
3605
3611
|
/**
|
|
@@ -3867,6 +3873,12 @@ declare type ConstWindowOptions = {
|
|
|
3867
3873
|
* Controls whether frameless window should have rounded corners. Default is false for Windows and true for MacOS. Setting this property to false will prevent the window from being fullscreenable on macOS. On Windows versions older than Windows 11 Build 22000 this property has no effect, and frameless windows will not have rounded corners.
|
|
3868
3874
|
*/
|
|
3869
3875
|
roundedCorners: boolean;
|
|
3876
|
+
/**
|
|
3877
|
+
* Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
|
|
3878
|
+
* When true, each call generates a new unique target name, ensuring a new window is always created.
|
|
3879
|
+
* When false, the target name passed to window.open is respected.
|
|
3880
|
+
*/
|
|
3881
|
+
ignoreChildFrameName?: boolean;
|
|
3870
3882
|
};
|
|
3871
3883
|
|
|
3872
3884
|
/**
|
|
@@ -4779,20 +4791,11 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4779
4791
|
eventNames: () => (string | symbol)[];
|
|
4780
4792
|
/* Excluded from this release type: emit */
|
|
4781
4793
|
private hasEmitter;
|
|
4782
|
-
/**
|
|
4783
|
-
* Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
|
|
4784
|
-
* `once` subscription.
|
|
4785
|
-
*
|
|
4786
|
-
* @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
|
|
4787
|
-
* on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
|
|
4788
|
-
* which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
|
|
4789
|
-
*/
|
|
4790
|
-
private cleanUpRemovedListener;
|
|
4791
4794
|
private getOrCreateEmitter;
|
|
4792
4795
|
listeners: (type: string | symbol) => Function[];
|
|
4793
4796
|
listenerCount: (type: string | symbol) => number;
|
|
4794
4797
|
protected registerEventListener: (eventType: EmitterEventType, options: OpenFin_2.SubscriptionOptions | undefined, applySubscription: (emitter: EventEmitter) => void, undoSubscription: (emitter: EventEmitter) => void) => Promise<void>;
|
|
4795
|
-
|
|
4798
|
+
private deregisterEventListener;
|
|
4796
4799
|
/**
|
|
4797
4800
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
4798
4801
|
*
|
|
@@ -4828,7 +4831,7 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4828
4831
|
* @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
4829
4832
|
*/
|
|
4830
4833
|
removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin_2.SubscriptionOptions): Promise<this>;
|
|
4831
|
-
|
|
4834
|
+
private deregisterAllListeners;
|
|
4832
4835
|
/**
|
|
4833
4836
|
* Removes all listeners, or those of the specified event.
|
|
4834
4837
|
*
|
|
@@ -8706,7 +8709,36 @@ declare type LogInfo = {
|
|
|
8706
8709
|
*/
|
|
8707
8710
|
declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
|
8708
8711
|
|
|
8709
|
-
|
|
8712
|
+
/**
|
|
8713
|
+
* Log types
|
|
8714
|
+
*
|
|
8715
|
+
* Note: For the debug log options, the one with the most specific matching pattern will be used.
|
|
8716
|
+
*/
|
|
8717
|
+
declare type LogTypes =
|
|
8718
|
+
/**
|
|
8719
|
+
* Uploads app logs
|
|
8720
|
+
*/
|
|
8721
|
+
'app'
|
|
8722
|
+
/**
|
|
8723
|
+
* Uploads rvm logs
|
|
8724
|
+
*/
|
|
8725
|
+
| 'rvm'
|
|
8726
|
+
/**
|
|
8727
|
+
* Uploads all debug logs
|
|
8728
|
+
*/
|
|
8729
|
+
| 'debug'
|
|
8730
|
+
/**
|
|
8731
|
+
* Uploads the most current debug log the current application
|
|
8732
|
+
*/
|
|
8733
|
+
| 'debug:self'
|
|
8734
|
+
/**
|
|
8735
|
+
* Uploads all debug logs for the current application
|
|
8736
|
+
*/
|
|
8737
|
+
| 'debug:self:archive'
|
|
8738
|
+
/**
|
|
8739
|
+
* Uploads the last two debug logs for the current application
|
|
8740
|
+
*/
|
|
8741
|
+
| 'debug:self:archive:last';
|
|
8710
8742
|
|
|
8711
8743
|
/**
|
|
8712
8744
|
* Options for the Log Uploader.
|
|
@@ -8774,14 +8806,6 @@ declare type LogUploadOptions = {
|
|
|
8774
8806
|
manifests?: string[];
|
|
8775
8807
|
/**
|
|
8776
8808
|
* An array of strings that specifies which logs should be uploaded.
|
|
8777
|
-
* app: Uploads app logs
|
|
8778
|
-
* rvm: Uploads rvm logs
|
|
8779
|
-
* debug: Uploads debug logs
|
|
8780
|
-
* debug:self: Uploads the most current debug log the current application
|
|
8781
|
-
* debug:self:archive: Uploads all debug logs for the current application
|
|
8782
|
-
* debug:self:archive:last: Uploads the last two debug logs for the current application
|
|
8783
|
-
*
|
|
8784
|
-
* For the debug log options, the one with the most specific matching pattern will be used.
|
|
8785
8809
|
* @defaultValue ['app', 'rvm', 'debug']
|
|
8786
8810
|
*/
|
|
8787
8811
|
logs?: LogTypes[];
|
|
@@ -9875,6 +9899,7 @@ declare namespace OpenFin_2 {
|
|
|
9875
9899
|
PlatformOptions,
|
|
9876
9900
|
LogUploaderOptions,
|
|
9877
9901
|
LogUploaderUIOptions,
|
|
9902
|
+
LogTypes,
|
|
9878
9903
|
LogUploadOptions,
|
|
9879
9904
|
Manifest,
|
|
9880
9905
|
LayoutContent,
|
package/out/mock-beta.d.ts
CHANGED
|
@@ -3600,6 +3600,12 @@ declare type ConstViewOptions = {
|
|
|
3600
3600
|
* Control which options to ignore when creating a Platform View.
|
|
3601
3601
|
*/
|
|
3602
3602
|
excludeOptions: ExcludeOptions;
|
|
3603
|
+
/**
|
|
3604
|
+
* Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
|
|
3605
|
+
* When true, each call generates a new unique target name, ensuring a new window is always created.
|
|
3606
|
+
* When false, the target name passed to window.open is respected.
|
|
3607
|
+
*/
|
|
3608
|
+
ignoreChildFrameName?: boolean;
|
|
3603
3609
|
};
|
|
3604
3610
|
|
|
3605
3611
|
/**
|
|
@@ -3867,6 +3873,12 @@ declare type ConstWindowOptions = {
|
|
|
3867
3873
|
* Controls whether frameless window should have rounded corners. Default is false for Windows and true for MacOS. Setting this property to false will prevent the window from being fullscreenable on macOS. On Windows versions older than Windows 11 Build 22000 this property has no effect, and frameless windows will not have rounded corners.
|
|
3868
3874
|
*/
|
|
3869
3875
|
roundedCorners: boolean;
|
|
3876
|
+
/**
|
|
3877
|
+
* Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
|
|
3878
|
+
* When true, each call generates a new unique target name, ensuring a new window is always created.
|
|
3879
|
+
* When false, the target name passed to window.open is respected.
|
|
3880
|
+
*/
|
|
3881
|
+
ignoreChildFrameName?: boolean;
|
|
3870
3882
|
};
|
|
3871
3883
|
|
|
3872
3884
|
/**
|
|
@@ -4779,20 +4791,11 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4779
4791
|
eventNames: () => (string | symbol)[];
|
|
4780
4792
|
/* Excluded from this release type: emit */
|
|
4781
4793
|
private hasEmitter;
|
|
4782
|
-
/**
|
|
4783
|
-
* Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
|
|
4784
|
-
* `once` subscription.
|
|
4785
|
-
*
|
|
4786
|
-
* @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
|
|
4787
|
-
* on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
|
|
4788
|
-
* which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
|
|
4789
|
-
*/
|
|
4790
|
-
private cleanUpRemovedListener;
|
|
4791
4794
|
private getOrCreateEmitter;
|
|
4792
4795
|
listeners: (type: string | symbol) => Function[];
|
|
4793
4796
|
listenerCount: (type: string | symbol) => number;
|
|
4794
4797
|
protected registerEventListener: (eventType: EmitterEventType, options: OpenFin_2.SubscriptionOptions | undefined, applySubscription: (emitter: EventEmitter) => void, undoSubscription: (emitter: EventEmitter) => void) => Promise<void>;
|
|
4795
|
-
|
|
4798
|
+
private deregisterEventListener;
|
|
4796
4799
|
/**
|
|
4797
4800
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
4798
4801
|
*
|
|
@@ -4828,7 +4831,7 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4828
4831
|
* @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
4829
4832
|
*/
|
|
4830
4833
|
removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin_2.SubscriptionOptions): Promise<this>;
|
|
4831
|
-
|
|
4834
|
+
private deregisterAllListeners;
|
|
4832
4835
|
/**
|
|
4833
4836
|
* Removes all listeners, or those of the specified event.
|
|
4834
4837
|
*
|
|
@@ -8706,7 +8709,36 @@ declare type LogInfo = {
|
|
|
8706
8709
|
*/
|
|
8707
8710
|
declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
|
8708
8711
|
|
|
8709
|
-
|
|
8712
|
+
/**
|
|
8713
|
+
* Log types
|
|
8714
|
+
*
|
|
8715
|
+
* Note: For the debug log options, the one with the most specific matching pattern will be used.
|
|
8716
|
+
*/
|
|
8717
|
+
declare type LogTypes =
|
|
8718
|
+
/**
|
|
8719
|
+
* Uploads app logs
|
|
8720
|
+
*/
|
|
8721
|
+
'app'
|
|
8722
|
+
/**
|
|
8723
|
+
* Uploads rvm logs
|
|
8724
|
+
*/
|
|
8725
|
+
| 'rvm'
|
|
8726
|
+
/**
|
|
8727
|
+
* Uploads all debug logs
|
|
8728
|
+
*/
|
|
8729
|
+
| 'debug'
|
|
8730
|
+
/**
|
|
8731
|
+
* Uploads the most current debug log the current application
|
|
8732
|
+
*/
|
|
8733
|
+
| 'debug:self'
|
|
8734
|
+
/**
|
|
8735
|
+
* Uploads all debug logs for the current application
|
|
8736
|
+
*/
|
|
8737
|
+
| 'debug:self:archive'
|
|
8738
|
+
/**
|
|
8739
|
+
* Uploads the last two debug logs for the current application
|
|
8740
|
+
*/
|
|
8741
|
+
| 'debug:self:archive:last';
|
|
8710
8742
|
|
|
8711
8743
|
/**
|
|
8712
8744
|
* Options for the Log Uploader.
|
|
@@ -8774,14 +8806,6 @@ declare type LogUploadOptions = {
|
|
|
8774
8806
|
manifests?: string[];
|
|
8775
8807
|
/**
|
|
8776
8808
|
* An array of strings that specifies which logs should be uploaded.
|
|
8777
|
-
* app: Uploads app logs
|
|
8778
|
-
* rvm: Uploads rvm logs
|
|
8779
|
-
* debug: Uploads debug logs
|
|
8780
|
-
* debug:self: Uploads the most current debug log the current application
|
|
8781
|
-
* debug:self:archive: Uploads all debug logs for the current application
|
|
8782
|
-
* debug:self:archive:last: Uploads the last two debug logs for the current application
|
|
8783
|
-
*
|
|
8784
|
-
* For the debug log options, the one with the most specific matching pattern will be used.
|
|
8785
8809
|
* @defaultValue ['app', 'rvm', 'debug']
|
|
8786
8810
|
*/
|
|
8787
8811
|
logs?: LogTypes[];
|
|
@@ -9875,6 +9899,7 @@ declare namespace OpenFin_2 {
|
|
|
9875
9899
|
PlatformOptions,
|
|
9876
9900
|
LogUploaderOptions,
|
|
9877
9901
|
LogUploaderUIOptions,
|
|
9902
|
+
LogTypes,
|
|
9878
9903
|
LogUploadOptions,
|
|
9879
9904
|
Manifest,
|
|
9880
9905
|
LayoutContent,
|
package/out/mock-public.d.ts
CHANGED
|
@@ -3600,6 +3600,12 @@ declare type ConstViewOptions = {
|
|
|
3600
3600
|
* Control which options to ignore when creating a Platform View.
|
|
3601
3601
|
*/
|
|
3602
3602
|
excludeOptions: ExcludeOptions;
|
|
3603
|
+
/**
|
|
3604
|
+
* Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
|
|
3605
|
+
* When true, each call generates a new unique target name, ensuring a new window is always created.
|
|
3606
|
+
* When false, the target name passed to window.open is respected.
|
|
3607
|
+
*/
|
|
3608
|
+
ignoreChildFrameName?: boolean;
|
|
3603
3609
|
};
|
|
3604
3610
|
|
|
3605
3611
|
/**
|
|
@@ -3867,6 +3873,12 @@ declare type ConstWindowOptions = {
|
|
|
3867
3873
|
* Controls whether frameless window should have rounded corners. Default is false for Windows and true for MacOS. Setting this property to false will prevent the window from being fullscreenable on macOS. On Windows versions older than Windows 11 Build 22000 this property has no effect, and frameless windows will not have rounded corners.
|
|
3868
3874
|
*/
|
|
3869
3875
|
roundedCorners: boolean;
|
|
3876
|
+
/**
|
|
3877
|
+
* Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
|
|
3878
|
+
* When true, each call generates a new unique target name, ensuring a new window is always created.
|
|
3879
|
+
* When false, the target name passed to window.open is respected.
|
|
3880
|
+
*/
|
|
3881
|
+
ignoreChildFrameName?: boolean;
|
|
3870
3882
|
};
|
|
3871
3883
|
|
|
3872
3884
|
/**
|
|
@@ -4779,20 +4791,11 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4779
4791
|
eventNames: () => (string | symbol)[];
|
|
4780
4792
|
/* Excluded from this release type: emit */
|
|
4781
4793
|
private hasEmitter;
|
|
4782
|
-
/**
|
|
4783
|
-
* Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
|
|
4784
|
-
* `once` subscription.
|
|
4785
|
-
*
|
|
4786
|
-
* @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
|
|
4787
|
-
* on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
|
|
4788
|
-
* which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
|
|
4789
|
-
*/
|
|
4790
|
-
private cleanUpRemovedListener;
|
|
4791
4794
|
private getOrCreateEmitter;
|
|
4792
4795
|
listeners: (type: string | symbol) => Function[];
|
|
4793
4796
|
listenerCount: (type: string | symbol) => number;
|
|
4794
4797
|
protected registerEventListener: (eventType: EmitterEventType, options: OpenFin_2.SubscriptionOptions | undefined, applySubscription: (emitter: EventEmitter) => void, undoSubscription: (emitter: EventEmitter) => void) => Promise<void>;
|
|
4795
|
-
|
|
4798
|
+
private deregisterEventListener;
|
|
4796
4799
|
/**
|
|
4797
4800
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
4798
4801
|
*
|
|
@@ -4828,7 +4831,7 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4828
4831
|
* @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
4829
4832
|
*/
|
|
4830
4833
|
removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin_2.SubscriptionOptions): Promise<this>;
|
|
4831
|
-
|
|
4834
|
+
private deregisterAllListeners;
|
|
4832
4835
|
/**
|
|
4833
4836
|
* Removes all listeners, or those of the specified event.
|
|
4834
4837
|
*
|
|
@@ -8706,7 +8709,36 @@ declare type LogInfo = {
|
|
|
8706
8709
|
*/
|
|
8707
8710
|
declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
|
8708
8711
|
|
|
8709
|
-
|
|
8712
|
+
/**
|
|
8713
|
+
* Log types
|
|
8714
|
+
*
|
|
8715
|
+
* Note: For the debug log options, the one with the most specific matching pattern will be used.
|
|
8716
|
+
*/
|
|
8717
|
+
declare type LogTypes =
|
|
8718
|
+
/**
|
|
8719
|
+
* Uploads app logs
|
|
8720
|
+
*/
|
|
8721
|
+
'app'
|
|
8722
|
+
/**
|
|
8723
|
+
* Uploads rvm logs
|
|
8724
|
+
*/
|
|
8725
|
+
| 'rvm'
|
|
8726
|
+
/**
|
|
8727
|
+
* Uploads all debug logs
|
|
8728
|
+
*/
|
|
8729
|
+
| 'debug'
|
|
8730
|
+
/**
|
|
8731
|
+
* Uploads the most current debug log the current application
|
|
8732
|
+
*/
|
|
8733
|
+
| 'debug:self'
|
|
8734
|
+
/**
|
|
8735
|
+
* Uploads all debug logs for the current application
|
|
8736
|
+
*/
|
|
8737
|
+
| 'debug:self:archive'
|
|
8738
|
+
/**
|
|
8739
|
+
* Uploads the last two debug logs for the current application
|
|
8740
|
+
*/
|
|
8741
|
+
| 'debug:self:archive:last';
|
|
8710
8742
|
|
|
8711
8743
|
/**
|
|
8712
8744
|
* Options for the Log Uploader.
|
|
@@ -8774,14 +8806,6 @@ declare type LogUploadOptions = {
|
|
|
8774
8806
|
manifests?: string[];
|
|
8775
8807
|
/**
|
|
8776
8808
|
* An array of strings that specifies which logs should be uploaded.
|
|
8777
|
-
* app: Uploads app logs
|
|
8778
|
-
* rvm: Uploads rvm logs
|
|
8779
|
-
* debug: Uploads debug logs
|
|
8780
|
-
* debug:self: Uploads the most current debug log the current application
|
|
8781
|
-
* debug:self:archive: Uploads all debug logs for the current application
|
|
8782
|
-
* debug:self:archive:last: Uploads the last two debug logs for the current application
|
|
8783
|
-
*
|
|
8784
|
-
* For the debug log options, the one with the most specific matching pattern will be used.
|
|
8785
8809
|
* @defaultValue ['app', 'rvm', 'debug']
|
|
8786
8810
|
*/
|
|
8787
8811
|
logs?: LogTypes[];
|
|
@@ -9875,6 +9899,7 @@ declare namespace OpenFin_2 {
|
|
|
9875
9899
|
PlatformOptions,
|
|
9876
9900
|
LogUploaderOptions,
|
|
9877
9901
|
LogUploaderUIOptions,
|
|
9902
|
+
LogTypes,
|
|
9878
9903
|
LogUploadOptions,
|
|
9879
9904
|
Manifest,
|
|
9880
9905
|
LayoutContent,
|
package/out/stub.d.ts
CHANGED
|
@@ -3659,6 +3659,12 @@ declare type ConstViewOptions = {
|
|
|
3659
3659
|
* Control which options to ignore when creating a Platform View.
|
|
3660
3660
|
*/
|
|
3661
3661
|
excludeOptions: ExcludeOptions;
|
|
3662
|
+
/**
|
|
3663
|
+
* Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
|
|
3664
|
+
* When true, each call generates a new unique target name, ensuring a new window is always created.
|
|
3665
|
+
* When false, the target name passed to window.open is respected.
|
|
3666
|
+
*/
|
|
3667
|
+
ignoreChildFrameName?: boolean;
|
|
3662
3668
|
};
|
|
3663
3669
|
|
|
3664
3670
|
/**
|
|
@@ -3926,6 +3932,12 @@ declare type ConstWindowOptions = {
|
|
|
3926
3932
|
* Controls whether frameless window should have rounded corners. Default is false for Windows and true for MacOS. Setting this property to false will prevent the window from being fullscreenable on macOS. On Windows versions older than Windows 11 Build 22000 this property has no effect, and frameless windows will not have rounded corners.
|
|
3927
3933
|
*/
|
|
3928
3934
|
roundedCorners: boolean;
|
|
3935
|
+
/**
|
|
3936
|
+
* Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
|
|
3937
|
+
* When true, each call generates a new unique target name, ensuring a new window is always created.
|
|
3938
|
+
* When false, the target name passed to window.open is respected.
|
|
3939
|
+
*/
|
|
3940
|
+
ignoreChildFrameName?: boolean;
|
|
3929
3941
|
};
|
|
3930
3942
|
|
|
3931
3943
|
/**
|
|
@@ -4843,20 +4855,11 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4843
4855
|
type: EventType;
|
|
4844
4856
|
}>, ...args: any[]) => boolean;
|
|
4845
4857
|
private hasEmitter;
|
|
4846
|
-
/**
|
|
4847
|
-
* Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
|
|
4848
|
-
* `once` subscription.
|
|
4849
|
-
*
|
|
4850
|
-
* @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
|
|
4851
|
-
* on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
|
|
4852
|
-
* which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
|
|
4853
|
-
*/
|
|
4854
|
-
private cleanUpRemovedListener;
|
|
4855
4858
|
private getOrCreateEmitter;
|
|
4856
4859
|
listeners: (type: string | symbol) => Function[];
|
|
4857
4860
|
listenerCount: (type: string | symbol) => number;
|
|
4858
4861
|
protected registerEventListener: (eventType: EmitterEventType, options: OpenFin_2.SubscriptionOptions | undefined, applySubscription: (emitter: EventEmitter) => void, undoSubscription: (emitter: EventEmitter) => void) => Promise<void>;
|
|
4859
|
-
|
|
4862
|
+
private deregisterEventListener;
|
|
4860
4863
|
/**
|
|
4861
4864
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
4862
4865
|
*
|
|
@@ -4892,7 +4895,7 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4892
4895
|
* @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
4893
4896
|
*/
|
|
4894
4897
|
removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin_2.SubscriptionOptions): Promise<this>;
|
|
4895
|
-
|
|
4898
|
+
private deregisterAllListeners;
|
|
4896
4899
|
/**
|
|
4897
4900
|
* Removes all listeners, or those of the specified event.
|
|
4898
4901
|
*
|
|
@@ -9015,7 +9018,36 @@ declare type LogInfo = {
|
|
|
9015
9018
|
*/
|
|
9016
9019
|
declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
|
9017
9020
|
|
|
9018
|
-
|
|
9021
|
+
/**
|
|
9022
|
+
* Log types
|
|
9023
|
+
*
|
|
9024
|
+
* Note: For the debug log options, the one with the most specific matching pattern will be used.
|
|
9025
|
+
*/
|
|
9026
|
+
declare type LogTypes =
|
|
9027
|
+
/**
|
|
9028
|
+
* Uploads app logs
|
|
9029
|
+
*/
|
|
9030
|
+
'app'
|
|
9031
|
+
/**
|
|
9032
|
+
* Uploads rvm logs
|
|
9033
|
+
*/
|
|
9034
|
+
| 'rvm'
|
|
9035
|
+
/**
|
|
9036
|
+
* Uploads all debug logs
|
|
9037
|
+
*/
|
|
9038
|
+
| 'debug'
|
|
9039
|
+
/**
|
|
9040
|
+
* Uploads the most current debug log the current application
|
|
9041
|
+
*/
|
|
9042
|
+
| 'debug:self'
|
|
9043
|
+
/**
|
|
9044
|
+
* Uploads all debug logs for the current application
|
|
9045
|
+
*/
|
|
9046
|
+
| 'debug:self:archive'
|
|
9047
|
+
/**
|
|
9048
|
+
* Uploads the last two debug logs for the current application
|
|
9049
|
+
*/
|
|
9050
|
+
| 'debug:self:archive:last';
|
|
9019
9051
|
|
|
9020
9052
|
/**
|
|
9021
9053
|
* Options for the Log Uploader.
|
|
@@ -9083,14 +9115,6 @@ declare type LogUploadOptions = {
|
|
|
9083
9115
|
manifests?: string[];
|
|
9084
9116
|
/**
|
|
9085
9117
|
* An array of strings that specifies which logs should be uploaded.
|
|
9086
|
-
* app: Uploads app logs
|
|
9087
|
-
* rvm: Uploads rvm logs
|
|
9088
|
-
* debug: Uploads debug logs
|
|
9089
|
-
* debug:self: Uploads the most current debug log the current application
|
|
9090
|
-
* debug:self:archive: Uploads all debug logs for the current application
|
|
9091
|
-
* debug:self:archive:last: Uploads the last two debug logs for the current application
|
|
9092
|
-
*
|
|
9093
|
-
* For the debug log options, the one with the most specific matching pattern will be used.
|
|
9094
9118
|
* @defaultValue ['app', 'rvm', 'debug']
|
|
9095
9119
|
*/
|
|
9096
9120
|
logs?: LogTypes[];
|
|
@@ -10209,6 +10233,7 @@ declare namespace OpenFin_2 {
|
|
|
10209
10233
|
PlatformOptions,
|
|
10210
10234
|
LogUploaderOptions,
|
|
10211
10235
|
LogUploaderUIOptions,
|
|
10236
|
+
LogTypes,
|
|
10212
10237
|
LogUploadOptions,
|
|
10213
10238
|
Manifest,
|
|
10214
10239
|
LayoutContent,
|
package/out/stub.js
CHANGED
|
@@ -332,35 +332,6 @@ var system = {};
|
|
|
332
332
|
|
|
333
333
|
var base = {};
|
|
334
334
|
|
|
335
|
-
var promises = {};
|
|
336
|
-
|
|
337
|
-
Object.defineProperty(promises, "__esModule", { value: true });
|
|
338
|
-
promises.promiseMapSerial = promises.serial = promises.promiseMap = promises.promisify = void 0;
|
|
339
|
-
function promisify(func) {
|
|
340
|
-
return (...args) => new Promise((resolve, reject) => {
|
|
341
|
-
func(...args, (err, val) => (err ? reject(err) : resolve(val)));
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
promises.promisify = promisify;
|
|
345
|
-
async function promiseMap(arr, asyncF) {
|
|
346
|
-
return Promise.all(arr.map(asyncF));
|
|
347
|
-
}
|
|
348
|
-
promises.promiseMap = promiseMap;
|
|
349
|
-
async function serial(arr) {
|
|
350
|
-
const ret = [];
|
|
351
|
-
for (const func of arr) {
|
|
352
|
-
// eslint-disable-next-line no-await-in-loop
|
|
353
|
-
const next = await func();
|
|
354
|
-
ret.push(next);
|
|
355
|
-
}
|
|
356
|
-
return ret;
|
|
357
|
-
}
|
|
358
|
-
promises.serial = serial;
|
|
359
|
-
async function promiseMapSerial(arr, func) {
|
|
360
|
-
return serial(arr.map((value, index, array) => () => func(value, index, array)));
|
|
361
|
-
}
|
|
362
|
-
promises.promiseMapSerial = promiseMapSerial;
|
|
363
|
-
|
|
364
335
|
var __classPrivateFieldSet$h = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
365
336
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
366
337
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
@@ -375,7 +346,6 @@ var __classPrivateFieldGet$i = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
375
346
|
var _EmitterBase_emitterAccessor, _EmitterBase_deregisterOnceListeners;
|
|
376
347
|
Object.defineProperty(base, "__esModule", { value: true });
|
|
377
348
|
base.Reply = base.EmitterBase = base.Base = void 0;
|
|
378
|
-
const promises_1 = promises;
|
|
379
349
|
class Base {
|
|
380
350
|
/**
|
|
381
351
|
* @internal
|
|
@@ -453,27 +423,8 @@ class EmitterBase extends Base {
|
|
|
453
423
|
return this.hasEmitter() ? this.getOrCreateEmitter().emit(eventType, payload, ...args) : false;
|
|
454
424
|
};
|
|
455
425
|
this.hasEmitter = () => this.wire.eventAggregator.has(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
|
|
456
|
-
/**
|
|
457
|
-
* Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
|
|
458
|
-
* `once` subscription.
|
|
459
|
-
*
|
|
460
|
-
* @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
|
|
461
|
-
* on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
|
|
462
|
-
* which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
|
|
463
|
-
*/
|
|
464
|
-
this.cleanUpRemovedListener = (eventType, listener) => {
|
|
465
|
-
const deregister = __classPrivateFieldGet$i(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
|
|
466
|
-
if (deregister) {
|
|
467
|
-
const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
|
|
468
|
-
emitter.removeListener(eventType, deregister);
|
|
469
|
-
}
|
|
470
|
-
};
|
|
471
426
|
this.getOrCreateEmitter = () => {
|
|
472
|
-
|
|
473
|
-
if (!emitter.listeners('removeListener').includes(this.cleanUpRemovedListener)) {
|
|
474
|
-
emitter.on('removeListener', this.cleanUpRemovedListener);
|
|
475
|
-
}
|
|
476
|
-
return emitter;
|
|
427
|
+
return this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
|
|
477
428
|
};
|
|
478
429
|
this.listeners = (type) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(type) : [];
|
|
479
430
|
this.listenerCount = (type) => this.hasEmitter() ? this.getOrCreateEmitter().listenerCount(type) : 0;
|
|
@@ -513,7 +464,6 @@ class EmitterBase extends Base {
|
|
|
513
464
|
};
|
|
514
465
|
__classPrivateFieldSet$h(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
|
|
515
466
|
__classPrivateFieldSet$h(this, _EmitterBase_deregisterOnceListeners, new WeakMap(), "f");
|
|
516
|
-
this.listeners = (event) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(event) : [];
|
|
517
467
|
}
|
|
518
468
|
/**
|
|
519
469
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
@@ -591,6 +541,10 @@ class EmitterBase extends Base {
|
|
|
591
541
|
const emitter = await this.deregisterEventListener(eventType, options);
|
|
592
542
|
if (emitter) {
|
|
593
543
|
emitter.removeListener(eventType, listener);
|
|
544
|
+
const deregister = __classPrivateFieldGet$i(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
|
|
545
|
+
if (deregister) {
|
|
546
|
+
emitter.removeListener(eventType, deregister);
|
|
547
|
+
}
|
|
594
548
|
this.deleteEmitterIfNothingRegistered(emitter);
|
|
595
549
|
}
|
|
596
550
|
return this;
|
|
@@ -626,12 +580,13 @@ class EmitterBase extends Base {
|
|
|
626
580
|
}
|
|
627
581
|
else if (this.hasEmitter()) {
|
|
628
582
|
const events = this.getOrCreateEmitter().eventNames();
|
|
629
|
-
await (
|
|
583
|
+
await Promise.all(events.map(removeByEvent));
|
|
630
584
|
}
|
|
631
585
|
return this;
|
|
632
586
|
}
|
|
633
587
|
deleteEmitterIfNothingRegistered(emitter) {
|
|
634
|
-
|
|
588
|
+
// TODO: maybe emitterMap should clean up itself..
|
|
589
|
+
if (emitter.eventNames().length === 0) {
|
|
635
590
|
this.wire.eventAggregator.delete(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
|
|
636
591
|
}
|
|
637
592
|
}
|