@openfin/fdc3-api 42.102.4 → 42.103.2
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/fdc3-api-alpha.d.ts +45 -20
- package/out/fdc3-api-beta.d.ts +45 -20
- package/out/fdc3-api-public.d.ts +45 -20
- package/out/fdc3-api.d.ts +45 -20
- package/out/fdc3-api.js +8 -53
- package/package.json +1 -1
package/out/fdc3-api-alpha.d.ts
CHANGED
|
@@ -3597,6 +3597,12 @@ declare type ConstViewOptions = {
|
|
|
3597
3597
|
* Control which options to ignore when creating a Platform View.
|
|
3598
3598
|
*/
|
|
3599
3599
|
excludeOptions: ExcludeOptions;
|
|
3600
|
+
/**
|
|
3601
|
+
* Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
|
|
3602
|
+
* When true, each call generates a new unique target name, ensuring a new window is always created.
|
|
3603
|
+
* When false, the target name passed to window.open is respected.
|
|
3604
|
+
*/
|
|
3605
|
+
ignoreChildFrameName?: boolean;
|
|
3600
3606
|
};
|
|
3601
3607
|
|
|
3602
3608
|
/**
|
|
@@ -3864,6 +3870,12 @@ declare type ConstWindowOptions = {
|
|
|
3864
3870
|
* 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.
|
|
3865
3871
|
*/
|
|
3866
3872
|
roundedCorners: boolean;
|
|
3873
|
+
/**
|
|
3874
|
+
* Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
|
|
3875
|
+
* When true, each call generates a new unique target name, ensuring a new window is always created.
|
|
3876
|
+
* When false, the target name passed to window.open is respected.
|
|
3877
|
+
*/
|
|
3878
|
+
ignoreChildFrameName?: boolean;
|
|
3867
3879
|
};
|
|
3868
3880
|
|
|
3869
3881
|
/**
|
|
@@ -4776,20 +4788,11 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4776
4788
|
eventNames: () => (string | symbol)[];
|
|
4777
4789
|
/* Excluded from this release type: emit */
|
|
4778
4790
|
private hasEmitter;
|
|
4779
|
-
/**
|
|
4780
|
-
* Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
|
|
4781
|
-
* `once` subscription.
|
|
4782
|
-
*
|
|
4783
|
-
* @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
|
|
4784
|
-
* on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
|
|
4785
|
-
* which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
|
|
4786
|
-
*/
|
|
4787
|
-
private cleanUpRemovedListener;
|
|
4788
4791
|
private getOrCreateEmitter;
|
|
4789
4792
|
listeners: (type: string | symbol) => Function[];
|
|
4790
4793
|
listenerCount: (type: string | symbol) => number;
|
|
4791
4794
|
protected registerEventListener: (eventType: EmitterEventType, options: OpenFin.SubscriptionOptions | undefined, applySubscription: (emitter: EventEmitter) => void, undoSubscription: (emitter: EventEmitter) => void) => Promise<void>;
|
|
4792
|
-
|
|
4795
|
+
private deregisterEventListener;
|
|
4793
4796
|
/**
|
|
4794
4797
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
4795
4798
|
*
|
|
@@ -4825,7 +4828,7 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4825
4828
|
* @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
4826
4829
|
*/
|
|
4827
4830
|
removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
|
|
4828
|
-
|
|
4831
|
+
private deregisterAllListeners;
|
|
4829
4832
|
/**
|
|
4830
4833
|
* Removes all listeners, or those of the specified event.
|
|
4831
4834
|
*
|
|
@@ -9048,7 +9051,36 @@ declare type LogInfo = {
|
|
|
9048
9051
|
*/
|
|
9049
9052
|
declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
|
9050
9053
|
|
|
9051
|
-
|
|
9054
|
+
/**
|
|
9055
|
+
* Log types
|
|
9056
|
+
*
|
|
9057
|
+
* Note: For the debug log options, the one with the most specific matching pattern will be used.
|
|
9058
|
+
*/
|
|
9059
|
+
declare type LogTypes =
|
|
9060
|
+
/**
|
|
9061
|
+
* Uploads app logs
|
|
9062
|
+
*/
|
|
9063
|
+
'app'
|
|
9064
|
+
/**
|
|
9065
|
+
* Uploads rvm logs
|
|
9066
|
+
*/
|
|
9067
|
+
| 'rvm'
|
|
9068
|
+
/**
|
|
9069
|
+
* Uploads all debug logs
|
|
9070
|
+
*/
|
|
9071
|
+
| 'debug'
|
|
9072
|
+
/**
|
|
9073
|
+
* Uploads the most current debug log the current application
|
|
9074
|
+
*/
|
|
9075
|
+
| 'debug:self'
|
|
9076
|
+
/**
|
|
9077
|
+
* Uploads all debug logs for the current application
|
|
9078
|
+
*/
|
|
9079
|
+
| 'debug:self:archive'
|
|
9080
|
+
/**
|
|
9081
|
+
* Uploads the last two debug logs for the current application
|
|
9082
|
+
*/
|
|
9083
|
+
| 'debug:self:archive:last';
|
|
9052
9084
|
|
|
9053
9085
|
/**
|
|
9054
9086
|
* Options for the Log Uploader.
|
|
@@ -9116,14 +9148,6 @@ declare type LogUploadOptions = {
|
|
|
9116
9148
|
manifests?: string[];
|
|
9117
9149
|
/**
|
|
9118
9150
|
* An array of strings that specifies which logs should be uploaded.
|
|
9119
|
-
* app: Uploads app logs
|
|
9120
|
-
* rvm: Uploads rvm logs
|
|
9121
|
-
* debug: Uploads debug logs
|
|
9122
|
-
* debug:self: Uploads the most current debug log the current application
|
|
9123
|
-
* debug:self:archive: Uploads all debug logs for the current application
|
|
9124
|
-
* debug:self:archive:last: Uploads the last two debug logs for the current application
|
|
9125
|
-
*
|
|
9126
|
-
* For the debug log options, the one with the most specific matching pattern will be used.
|
|
9127
9151
|
* @defaultValue ['app', 'rvm', 'debug']
|
|
9128
9152
|
*/
|
|
9129
9153
|
logs?: LogTypes[];
|
|
@@ -10217,6 +10241,7 @@ declare namespace OpenFin {
|
|
|
10217
10241
|
PlatformOptions,
|
|
10218
10242
|
LogUploaderOptions,
|
|
10219
10243
|
LogUploaderUIOptions,
|
|
10244
|
+
LogTypes,
|
|
10220
10245
|
LogUploadOptions,
|
|
10221
10246
|
Manifest,
|
|
10222
10247
|
LayoutContent,
|
package/out/fdc3-api-beta.d.ts
CHANGED
|
@@ -3597,6 +3597,12 @@ declare type ConstViewOptions = {
|
|
|
3597
3597
|
* Control which options to ignore when creating a Platform View.
|
|
3598
3598
|
*/
|
|
3599
3599
|
excludeOptions: ExcludeOptions;
|
|
3600
|
+
/**
|
|
3601
|
+
* Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
|
|
3602
|
+
* When true, each call generates a new unique target name, ensuring a new window is always created.
|
|
3603
|
+
* When false, the target name passed to window.open is respected.
|
|
3604
|
+
*/
|
|
3605
|
+
ignoreChildFrameName?: boolean;
|
|
3600
3606
|
};
|
|
3601
3607
|
|
|
3602
3608
|
/**
|
|
@@ -3864,6 +3870,12 @@ declare type ConstWindowOptions = {
|
|
|
3864
3870
|
* 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.
|
|
3865
3871
|
*/
|
|
3866
3872
|
roundedCorners: boolean;
|
|
3873
|
+
/**
|
|
3874
|
+
* Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
|
|
3875
|
+
* When true, each call generates a new unique target name, ensuring a new window is always created.
|
|
3876
|
+
* When false, the target name passed to window.open is respected.
|
|
3877
|
+
*/
|
|
3878
|
+
ignoreChildFrameName?: boolean;
|
|
3867
3879
|
};
|
|
3868
3880
|
|
|
3869
3881
|
/**
|
|
@@ -4776,20 +4788,11 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4776
4788
|
eventNames: () => (string | symbol)[];
|
|
4777
4789
|
/* Excluded from this release type: emit */
|
|
4778
4790
|
private hasEmitter;
|
|
4779
|
-
/**
|
|
4780
|
-
* Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
|
|
4781
|
-
* `once` subscription.
|
|
4782
|
-
*
|
|
4783
|
-
* @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
|
|
4784
|
-
* on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
|
|
4785
|
-
* which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
|
|
4786
|
-
*/
|
|
4787
|
-
private cleanUpRemovedListener;
|
|
4788
4791
|
private getOrCreateEmitter;
|
|
4789
4792
|
listeners: (type: string | symbol) => Function[];
|
|
4790
4793
|
listenerCount: (type: string | symbol) => number;
|
|
4791
4794
|
protected registerEventListener: (eventType: EmitterEventType, options: OpenFin.SubscriptionOptions | undefined, applySubscription: (emitter: EventEmitter) => void, undoSubscription: (emitter: EventEmitter) => void) => Promise<void>;
|
|
4792
|
-
|
|
4795
|
+
private deregisterEventListener;
|
|
4793
4796
|
/**
|
|
4794
4797
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
4795
4798
|
*
|
|
@@ -4825,7 +4828,7 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4825
4828
|
* @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
4826
4829
|
*/
|
|
4827
4830
|
removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
|
|
4828
|
-
|
|
4831
|
+
private deregisterAllListeners;
|
|
4829
4832
|
/**
|
|
4830
4833
|
* Removes all listeners, or those of the specified event.
|
|
4831
4834
|
*
|
|
@@ -9048,7 +9051,36 @@ declare type LogInfo = {
|
|
|
9048
9051
|
*/
|
|
9049
9052
|
declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
|
9050
9053
|
|
|
9051
|
-
|
|
9054
|
+
/**
|
|
9055
|
+
* Log types
|
|
9056
|
+
*
|
|
9057
|
+
* Note: For the debug log options, the one with the most specific matching pattern will be used.
|
|
9058
|
+
*/
|
|
9059
|
+
declare type LogTypes =
|
|
9060
|
+
/**
|
|
9061
|
+
* Uploads app logs
|
|
9062
|
+
*/
|
|
9063
|
+
'app'
|
|
9064
|
+
/**
|
|
9065
|
+
* Uploads rvm logs
|
|
9066
|
+
*/
|
|
9067
|
+
| 'rvm'
|
|
9068
|
+
/**
|
|
9069
|
+
* Uploads all debug logs
|
|
9070
|
+
*/
|
|
9071
|
+
| 'debug'
|
|
9072
|
+
/**
|
|
9073
|
+
* Uploads the most current debug log the current application
|
|
9074
|
+
*/
|
|
9075
|
+
| 'debug:self'
|
|
9076
|
+
/**
|
|
9077
|
+
* Uploads all debug logs for the current application
|
|
9078
|
+
*/
|
|
9079
|
+
| 'debug:self:archive'
|
|
9080
|
+
/**
|
|
9081
|
+
* Uploads the last two debug logs for the current application
|
|
9082
|
+
*/
|
|
9083
|
+
| 'debug:self:archive:last';
|
|
9052
9084
|
|
|
9053
9085
|
/**
|
|
9054
9086
|
* Options for the Log Uploader.
|
|
@@ -9116,14 +9148,6 @@ declare type LogUploadOptions = {
|
|
|
9116
9148
|
manifests?: string[];
|
|
9117
9149
|
/**
|
|
9118
9150
|
* An array of strings that specifies which logs should be uploaded.
|
|
9119
|
-
* app: Uploads app logs
|
|
9120
|
-
* rvm: Uploads rvm logs
|
|
9121
|
-
* debug: Uploads debug logs
|
|
9122
|
-
* debug:self: Uploads the most current debug log the current application
|
|
9123
|
-
* debug:self:archive: Uploads all debug logs for the current application
|
|
9124
|
-
* debug:self:archive:last: Uploads the last two debug logs for the current application
|
|
9125
|
-
*
|
|
9126
|
-
* For the debug log options, the one with the most specific matching pattern will be used.
|
|
9127
9151
|
* @defaultValue ['app', 'rvm', 'debug']
|
|
9128
9152
|
*/
|
|
9129
9153
|
logs?: LogTypes[];
|
|
@@ -10217,6 +10241,7 @@ declare namespace OpenFin {
|
|
|
10217
10241
|
PlatformOptions,
|
|
10218
10242
|
LogUploaderOptions,
|
|
10219
10243
|
LogUploaderUIOptions,
|
|
10244
|
+
LogTypes,
|
|
10220
10245
|
LogUploadOptions,
|
|
10221
10246
|
Manifest,
|
|
10222
10247
|
LayoutContent,
|
package/out/fdc3-api-public.d.ts
CHANGED
|
@@ -3597,6 +3597,12 @@ declare type ConstViewOptions = {
|
|
|
3597
3597
|
* Control which options to ignore when creating a Platform View.
|
|
3598
3598
|
*/
|
|
3599
3599
|
excludeOptions: ExcludeOptions;
|
|
3600
|
+
/**
|
|
3601
|
+
* Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
|
|
3602
|
+
* When true, each call generates a new unique target name, ensuring a new window is always created.
|
|
3603
|
+
* When false, the target name passed to window.open is respected.
|
|
3604
|
+
*/
|
|
3605
|
+
ignoreChildFrameName?: boolean;
|
|
3600
3606
|
};
|
|
3601
3607
|
|
|
3602
3608
|
/**
|
|
@@ -3864,6 +3870,12 @@ declare type ConstWindowOptions = {
|
|
|
3864
3870
|
* 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.
|
|
3865
3871
|
*/
|
|
3866
3872
|
roundedCorners: boolean;
|
|
3873
|
+
/**
|
|
3874
|
+
* Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
|
|
3875
|
+
* When true, each call generates a new unique target name, ensuring a new window is always created.
|
|
3876
|
+
* When false, the target name passed to window.open is respected.
|
|
3877
|
+
*/
|
|
3878
|
+
ignoreChildFrameName?: boolean;
|
|
3867
3879
|
};
|
|
3868
3880
|
|
|
3869
3881
|
/**
|
|
@@ -4776,20 +4788,11 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4776
4788
|
eventNames: () => (string | symbol)[];
|
|
4777
4789
|
/* Excluded from this release type: emit */
|
|
4778
4790
|
private hasEmitter;
|
|
4779
|
-
/**
|
|
4780
|
-
* Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
|
|
4781
|
-
* `once` subscription.
|
|
4782
|
-
*
|
|
4783
|
-
* @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
|
|
4784
|
-
* on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
|
|
4785
|
-
* which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
|
|
4786
|
-
*/
|
|
4787
|
-
private cleanUpRemovedListener;
|
|
4788
4791
|
private getOrCreateEmitter;
|
|
4789
4792
|
listeners: (type: string | symbol) => Function[];
|
|
4790
4793
|
listenerCount: (type: string | symbol) => number;
|
|
4791
4794
|
protected registerEventListener: (eventType: EmitterEventType, options: OpenFin.SubscriptionOptions | undefined, applySubscription: (emitter: EventEmitter) => void, undoSubscription: (emitter: EventEmitter) => void) => Promise<void>;
|
|
4792
|
-
|
|
4795
|
+
private deregisterEventListener;
|
|
4793
4796
|
/**
|
|
4794
4797
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
4795
4798
|
*
|
|
@@ -4825,7 +4828,7 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4825
4828
|
* @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
4826
4829
|
*/
|
|
4827
4830
|
removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
|
|
4828
|
-
|
|
4831
|
+
private deregisterAllListeners;
|
|
4829
4832
|
/**
|
|
4830
4833
|
* Removes all listeners, or those of the specified event.
|
|
4831
4834
|
*
|
|
@@ -9048,7 +9051,36 @@ declare type LogInfo = {
|
|
|
9048
9051
|
*/
|
|
9049
9052
|
declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
|
9050
9053
|
|
|
9051
|
-
|
|
9054
|
+
/**
|
|
9055
|
+
* Log types
|
|
9056
|
+
*
|
|
9057
|
+
* Note: For the debug log options, the one with the most specific matching pattern will be used.
|
|
9058
|
+
*/
|
|
9059
|
+
declare type LogTypes =
|
|
9060
|
+
/**
|
|
9061
|
+
* Uploads app logs
|
|
9062
|
+
*/
|
|
9063
|
+
'app'
|
|
9064
|
+
/**
|
|
9065
|
+
* Uploads rvm logs
|
|
9066
|
+
*/
|
|
9067
|
+
| 'rvm'
|
|
9068
|
+
/**
|
|
9069
|
+
* Uploads all debug logs
|
|
9070
|
+
*/
|
|
9071
|
+
| 'debug'
|
|
9072
|
+
/**
|
|
9073
|
+
* Uploads the most current debug log the current application
|
|
9074
|
+
*/
|
|
9075
|
+
| 'debug:self'
|
|
9076
|
+
/**
|
|
9077
|
+
* Uploads all debug logs for the current application
|
|
9078
|
+
*/
|
|
9079
|
+
| 'debug:self:archive'
|
|
9080
|
+
/**
|
|
9081
|
+
* Uploads the last two debug logs for the current application
|
|
9082
|
+
*/
|
|
9083
|
+
| 'debug:self:archive:last';
|
|
9052
9084
|
|
|
9053
9085
|
/**
|
|
9054
9086
|
* Options for the Log Uploader.
|
|
@@ -9116,14 +9148,6 @@ declare type LogUploadOptions = {
|
|
|
9116
9148
|
manifests?: string[];
|
|
9117
9149
|
/**
|
|
9118
9150
|
* An array of strings that specifies which logs should be uploaded.
|
|
9119
|
-
* app: Uploads app logs
|
|
9120
|
-
* rvm: Uploads rvm logs
|
|
9121
|
-
* debug: Uploads debug logs
|
|
9122
|
-
* debug:self: Uploads the most current debug log the current application
|
|
9123
|
-
* debug:self:archive: Uploads all debug logs for the current application
|
|
9124
|
-
* debug:self:archive:last: Uploads the last two debug logs for the current application
|
|
9125
|
-
*
|
|
9126
|
-
* For the debug log options, the one with the most specific matching pattern will be used.
|
|
9127
9151
|
* @defaultValue ['app', 'rvm', 'debug']
|
|
9128
9152
|
*/
|
|
9129
9153
|
logs?: LogTypes[];
|
|
@@ -10217,6 +10241,7 @@ declare namespace OpenFin {
|
|
|
10217
10241
|
PlatformOptions,
|
|
10218
10242
|
LogUploaderOptions,
|
|
10219
10243
|
LogUploaderUIOptions,
|
|
10244
|
+
LogTypes,
|
|
10220
10245
|
LogUploadOptions,
|
|
10221
10246
|
Manifest,
|
|
10222
10247
|
LayoutContent,
|
package/out/fdc3-api.d.ts
CHANGED
|
@@ -3656,6 +3656,12 @@ declare type ConstViewOptions = {
|
|
|
3656
3656
|
* Control which options to ignore when creating a Platform View.
|
|
3657
3657
|
*/
|
|
3658
3658
|
excludeOptions: ExcludeOptions;
|
|
3659
|
+
/**
|
|
3660
|
+
* Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
|
|
3661
|
+
* When true, each call generates a new unique target name, ensuring a new window is always created.
|
|
3662
|
+
* When false, the target name passed to window.open is respected.
|
|
3663
|
+
*/
|
|
3664
|
+
ignoreChildFrameName?: boolean;
|
|
3659
3665
|
};
|
|
3660
3666
|
|
|
3661
3667
|
/**
|
|
@@ -3923,6 +3929,12 @@ declare type ConstWindowOptions = {
|
|
|
3923
3929
|
* 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.
|
|
3924
3930
|
*/
|
|
3925
3931
|
roundedCorners: boolean;
|
|
3932
|
+
/**
|
|
3933
|
+
* Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
|
|
3934
|
+
* When true, each call generates a new unique target name, ensuring a new window is always created.
|
|
3935
|
+
* When false, the target name passed to window.open is respected.
|
|
3936
|
+
*/
|
|
3937
|
+
ignoreChildFrameName?: boolean;
|
|
3926
3938
|
};
|
|
3927
3939
|
|
|
3928
3940
|
/**
|
|
@@ -4840,20 +4852,11 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4840
4852
|
type: EventType;
|
|
4841
4853
|
}>, ...args: any[]) => boolean;
|
|
4842
4854
|
private hasEmitter;
|
|
4843
|
-
/**
|
|
4844
|
-
* Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
|
|
4845
|
-
* `once` subscription.
|
|
4846
|
-
*
|
|
4847
|
-
* @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
|
|
4848
|
-
* on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
|
|
4849
|
-
* which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
|
|
4850
|
-
*/
|
|
4851
|
-
private cleanUpRemovedListener;
|
|
4852
4855
|
private getOrCreateEmitter;
|
|
4853
4856
|
listeners: (type: string | symbol) => Function[];
|
|
4854
4857
|
listenerCount: (type: string | symbol) => number;
|
|
4855
4858
|
protected registerEventListener: (eventType: EmitterEventType, options: OpenFin.SubscriptionOptions | undefined, applySubscription: (emitter: EventEmitter) => void, undoSubscription: (emitter: EventEmitter) => void) => Promise<void>;
|
|
4856
|
-
|
|
4859
|
+
private deregisterEventListener;
|
|
4857
4860
|
/**
|
|
4858
4861
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
4859
4862
|
*
|
|
@@ -4889,7 +4892,7 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4889
4892
|
* @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
4890
4893
|
*/
|
|
4891
4894
|
removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
|
|
4892
|
-
|
|
4895
|
+
private deregisterAllListeners;
|
|
4893
4896
|
/**
|
|
4894
4897
|
* Removes all listeners, or those of the specified event.
|
|
4895
4898
|
*
|
|
@@ -9357,7 +9360,36 @@ declare type LogInfo = {
|
|
|
9357
9360
|
*/
|
|
9358
9361
|
declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
|
9359
9362
|
|
|
9360
|
-
|
|
9363
|
+
/**
|
|
9364
|
+
* Log types
|
|
9365
|
+
*
|
|
9366
|
+
* Note: For the debug log options, the one with the most specific matching pattern will be used.
|
|
9367
|
+
*/
|
|
9368
|
+
declare type LogTypes =
|
|
9369
|
+
/**
|
|
9370
|
+
* Uploads app logs
|
|
9371
|
+
*/
|
|
9372
|
+
'app'
|
|
9373
|
+
/**
|
|
9374
|
+
* Uploads rvm logs
|
|
9375
|
+
*/
|
|
9376
|
+
| 'rvm'
|
|
9377
|
+
/**
|
|
9378
|
+
* Uploads all debug logs
|
|
9379
|
+
*/
|
|
9380
|
+
| 'debug'
|
|
9381
|
+
/**
|
|
9382
|
+
* Uploads the most current debug log the current application
|
|
9383
|
+
*/
|
|
9384
|
+
| 'debug:self'
|
|
9385
|
+
/**
|
|
9386
|
+
* Uploads all debug logs for the current application
|
|
9387
|
+
*/
|
|
9388
|
+
| 'debug:self:archive'
|
|
9389
|
+
/**
|
|
9390
|
+
* Uploads the last two debug logs for the current application
|
|
9391
|
+
*/
|
|
9392
|
+
| 'debug:self:archive:last';
|
|
9361
9393
|
|
|
9362
9394
|
/**
|
|
9363
9395
|
* Options for the Log Uploader.
|
|
@@ -9425,14 +9457,6 @@ declare type LogUploadOptions = {
|
|
|
9425
9457
|
manifests?: string[];
|
|
9426
9458
|
/**
|
|
9427
9459
|
* An array of strings that specifies which logs should be uploaded.
|
|
9428
|
-
* app: Uploads app logs
|
|
9429
|
-
* rvm: Uploads rvm logs
|
|
9430
|
-
* debug: Uploads debug logs
|
|
9431
|
-
* debug:self: Uploads the most current debug log the current application
|
|
9432
|
-
* debug:self:archive: Uploads all debug logs for the current application
|
|
9433
|
-
* debug:self:archive:last: Uploads the last two debug logs for the current application
|
|
9434
|
-
*
|
|
9435
|
-
* For the debug log options, the one with the most specific matching pattern will be used.
|
|
9436
9460
|
* @defaultValue ['app', 'rvm', 'debug']
|
|
9437
9461
|
*/
|
|
9438
9462
|
logs?: LogTypes[];
|
|
@@ -10551,6 +10575,7 @@ declare namespace OpenFin {
|
|
|
10551
10575
|
PlatformOptions,
|
|
10552
10576
|
LogUploaderOptions,
|
|
10553
10577
|
LogUploaderUIOptions,
|
|
10578
|
+
LogTypes,
|
|
10554
10579
|
LogUploadOptions,
|
|
10555
10580
|
Manifest,
|
|
10556
10581
|
LayoutContent,
|
package/out/fdc3-api.js
CHANGED
|
@@ -495,35 +495,6 @@ var InteropClient$1 = {};
|
|
|
495
495
|
|
|
496
496
|
var base = {};
|
|
497
497
|
|
|
498
|
-
var promises = {};
|
|
499
|
-
|
|
500
|
-
Object.defineProperty(promises, "__esModule", { value: true });
|
|
501
|
-
promises.promiseMapSerial = promises.serial = promises.promiseMap = promises.promisify = void 0;
|
|
502
|
-
function promisify(func) {
|
|
503
|
-
return (...args) => new Promise((resolve, reject) => {
|
|
504
|
-
func(...args, (err, val) => (err ? reject(err) : resolve(val)));
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
promises.promisify = promisify;
|
|
508
|
-
async function promiseMap(arr, asyncF) {
|
|
509
|
-
return Promise.all(arr.map(asyncF));
|
|
510
|
-
}
|
|
511
|
-
promises.promiseMap = promiseMap;
|
|
512
|
-
async function serial(arr) {
|
|
513
|
-
const ret = [];
|
|
514
|
-
for (const func of arr) {
|
|
515
|
-
// eslint-disable-next-line no-await-in-loop
|
|
516
|
-
const next = await func();
|
|
517
|
-
ret.push(next);
|
|
518
|
-
}
|
|
519
|
-
return ret;
|
|
520
|
-
}
|
|
521
|
-
promises.serial = serial;
|
|
522
|
-
async function promiseMapSerial(arr, func) {
|
|
523
|
-
return serial(arr.map((value, index, array) => () => func(value, index, array)));
|
|
524
|
-
}
|
|
525
|
-
promises.promiseMapSerial = promiseMapSerial;
|
|
526
|
-
|
|
527
498
|
var __classPrivateFieldSet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
528
499
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
529
500
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
@@ -538,7 +509,6 @@ var __classPrivateFieldGet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
538
509
|
var _EmitterBase_emitterAccessor, _EmitterBase_deregisterOnceListeners;
|
|
539
510
|
Object.defineProperty(base, "__esModule", { value: true });
|
|
540
511
|
base.Reply = base.EmitterBase = base.Base = void 0;
|
|
541
|
-
const promises_1 = promises;
|
|
542
512
|
class Base {
|
|
543
513
|
/**
|
|
544
514
|
* @internal
|
|
@@ -616,27 +586,8 @@ class EmitterBase extends Base {
|
|
|
616
586
|
return this.hasEmitter() ? this.getOrCreateEmitter().emit(eventType, payload, ...args) : false;
|
|
617
587
|
};
|
|
618
588
|
this.hasEmitter = () => this.wire.eventAggregator.has(__classPrivateFieldGet$3(this, _EmitterBase_emitterAccessor, "f"));
|
|
619
|
-
/**
|
|
620
|
-
* Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
|
|
621
|
-
* `once` subscription.
|
|
622
|
-
*
|
|
623
|
-
* @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
|
|
624
|
-
* on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
|
|
625
|
-
* which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
|
|
626
|
-
*/
|
|
627
|
-
this.cleanUpRemovedListener = (eventType, listener) => {
|
|
628
|
-
const deregister = __classPrivateFieldGet$3(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
|
|
629
|
-
if (deregister) {
|
|
630
|
-
const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$3(this, _EmitterBase_emitterAccessor, "f"));
|
|
631
|
-
emitter.removeListener(eventType, deregister);
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
589
|
this.getOrCreateEmitter = () => {
|
|
635
|
-
|
|
636
|
-
if (!emitter.listeners('removeListener').includes(this.cleanUpRemovedListener)) {
|
|
637
|
-
emitter.on('removeListener', this.cleanUpRemovedListener);
|
|
638
|
-
}
|
|
639
|
-
return emitter;
|
|
590
|
+
return this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$3(this, _EmitterBase_emitterAccessor, "f"));
|
|
640
591
|
};
|
|
641
592
|
this.listeners = (type) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(type) : [];
|
|
642
593
|
this.listenerCount = (type) => this.hasEmitter() ? this.getOrCreateEmitter().listenerCount(type) : 0;
|
|
@@ -676,7 +627,6 @@ class EmitterBase extends Base {
|
|
|
676
627
|
};
|
|
677
628
|
__classPrivateFieldSet$3(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
|
|
678
629
|
__classPrivateFieldSet$3(this, _EmitterBase_deregisterOnceListeners, new WeakMap(), "f");
|
|
679
|
-
this.listeners = (event) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(event) : [];
|
|
680
630
|
}
|
|
681
631
|
/**
|
|
682
632
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
@@ -754,6 +704,10 @@ class EmitterBase extends Base {
|
|
|
754
704
|
const emitter = await this.deregisterEventListener(eventType, options);
|
|
755
705
|
if (emitter) {
|
|
756
706
|
emitter.removeListener(eventType, listener);
|
|
707
|
+
const deregister = __classPrivateFieldGet$3(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
|
|
708
|
+
if (deregister) {
|
|
709
|
+
emitter.removeListener(eventType, deregister);
|
|
710
|
+
}
|
|
757
711
|
this.deleteEmitterIfNothingRegistered(emitter);
|
|
758
712
|
}
|
|
759
713
|
return this;
|
|
@@ -789,12 +743,13 @@ class EmitterBase extends Base {
|
|
|
789
743
|
}
|
|
790
744
|
else if (this.hasEmitter()) {
|
|
791
745
|
const events = this.getOrCreateEmitter().eventNames();
|
|
792
|
-
await (
|
|
746
|
+
await Promise.all(events.map(removeByEvent));
|
|
793
747
|
}
|
|
794
748
|
return this;
|
|
795
749
|
}
|
|
796
750
|
deleteEmitterIfNothingRegistered(emitter) {
|
|
797
|
-
|
|
751
|
+
// TODO: maybe emitterMap should clean up itself..
|
|
752
|
+
if (emitter.eventNames().length === 0) {
|
|
798
753
|
this.wire.eventAggregator.delete(__classPrivateFieldGet$3(this, _EmitterBase_emitterAccessor, "f"));
|
|
799
754
|
}
|
|
800
755
|
}
|