@openfin/core 44.100.49 → 44.100.51
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 +271 -12
- package/out/mock-beta.d.ts +271 -12
- package/out/mock-public.d.ts +271 -12
- package/out/stub.d.ts +271 -12
- package/out/stub.js +51 -3
- package/package.json +1 -1
package/out/mock-beta.d.ts
CHANGED
|
@@ -94,6 +94,34 @@ declare type AnalyticsProtocolMap = {
|
|
|
94
94
|
[k in AnalyticsOnlyCalls]: VoidCall;
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
+
/**
|
|
98
|
+
* Represents an anchor configuration consisting of a bounding rectangle
|
|
99
|
+
* and an anchor point describing which part of that rectangle should be
|
|
100
|
+
* used as the reference for positioning the download bubble.
|
|
101
|
+
* @interface
|
|
102
|
+
*/
|
|
103
|
+
declare type Anchor = {
|
|
104
|
+
/**
|
|
105
|
+
* The DOM or screen-space rectangle that defines the anchor area.
|
|
106
|
+
*/
|
|
107
|
+
bounds: Rectangle;
|
|
108
|
+
/**
|
|
109
|
+
* The location within the rectangle that should act as the anchor
|
|
110
|
+
* (e.g., `topRight`, `bottomLeft`, `center`, etc.).
|
|
111
|
+
* For example, `topRight` means the rectangle's top-right corner is used
|
|
112
|
+
* as the anchoring reference point.
|
|
113
|
+
*/
|
|
114
|
+
location: AnchorLocation;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Defines the point within the rectangle that should be used as the anchor
|
|
119
|
+
* when positioning UI elements relative to another surface.
|
|
120
|
+
*
|
|
121
|
+
* @interface
|
|
122
|
+
*/
|
|
123
|
+
declare type AnchorLocation = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'rightTop' | 'leftBottom' | 'rightBottom' | 'topCenter' | 'bottomCenter' | 'leftCenter' | 'rightCenter' | 'none' | 'float';
|
|
124
|
+
|
|
97
125
|
declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
98
126
|
|
|
99
127
|
declare type AnyStrategy = ChannelStrategy<any>;
|
|
@@ -3867,6 +3895,10 @@ declare type ConstWindowOptions = {
|
|
|
3867
3895
|
* 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
3896
|
*/
|
|
3869
3897
|
roundedCorners: boolean;
|
|
3898
|
+
/**
|
|
3899
|
+
* Configuration for download bubble UI.
|
|
3900
|
+
*/
|
|
3901
|
+
downloadBubble?: DownloadBubbleOptions;
|
|
3870
3902
|
};
|
|
3871
3903
|
|
|
3872
3904
|
/**
|
|
@@ -4619,6 +4651,50 @@ declare type DomainSettingsRule = {
|
|
|
4619
4651
|
matchOptions?: RuleMatchOptions;
|
|
4620
4652
|
};
|
|
4621
4653
|
|
|
4654
|
+
/**
|
|
4655
|
+
* Configuration options for enabling and positioning the download bubble UI.
|
|
4656
|
+
* @interface
|
|
4657
|
+
*/
|
|
4658
|
+
declare type DownloadBubbleOptions = {
|
|
4659
|
+
/**
|
|
4660
|
+
* Whether the download bubble feature is enabled.
|
|
4661
|
+
*/
|
|
4662
|
+
enabled: boolean;
|
|
4663
|
+
/**
|
|
4664
|
+
* Anchor configuration describing where the download bubble should attach.
|
|
4665
|
+
*/
|
|
4666
|
+
anchor: Anchor;
|
|
4667
|
+
};
|
|
4668
|
+
|
|
4669
|
+
/**
|
|
4670
|
+
* Generated when the download button icon needs to be updated. Only raised if the download bubble feature is enabled.
|
|
4671
|
+
*
|
|
4672
|
+
* @interface
|
|
4673
|
+
*/
|
|
4674
|
+
declare type DownloadButtonIconUpdatedEvent = BaseEvent_5 & {
|
|
4675
|
+
type: 'download-button-icon-updated';
|
|
4676
|
+
disabled: boolean;
|
|
4677
|
+
active: boolean;
|
|
4678
|
+
touchMode: boolean;
|
|
4679
|
+
progressIndicatorState: 'idle' | 'scanning' | 'downloading' | 'dormant';
|
|
4680
|
+
progressDownloadCount: number;
|
|
4681
|
+
progressPercentage: number;
|
|
4682
|
+
buttonTooltip: string;
|
|
4683
|
+
};
|
|
4684
|
+
|
|
4685
|
+
/**
|
|
4686
|
+
* Generated when the visibility of the window's download button changes. Only raised if the download bubble feature is enabled.
|
|
4687
|
+
*
|
|
4688
|
+
* @interface
|
|
4689
|
+
*/
|
|
4690
|
+
declare type DownloadButtonVisibilityChangedEvent = BaseEvent_5 & {
|
|
4691
|
+
type: 'download-button-visibility-changed';
|
|
4692
|
+
/**
|
|
4693
|
+
* True if the download button should be displayed, false if it should be hidden.
|
|
4694
|
+
*/
|
|
4695
|
+
visible: boolean;
|
|
4696
|
+
};
|
|
4697
|
+
|
|
4622
4698
|
/**
|
|
4623
4699
|
* Metadata returned from a preload script download request.
|
|
4624
4700
|
*
|
|
@@ -4678,6 +4754,7 @@ declare type DownloadRule = {
|
|
|
4678
4754
|
*
|
|
4679
4755
|
* @remarks This will control the styling for the download shelf regardless of whether its display was
|
|
4680
4756
|
* triggered by the window itself, or a view targeting the window.
|
|
4757
|
+
* @deprecated Use the DownloadBubble API instead.
|
|
4681
4758
|
*/
|
|
4682
4759
|
declare type DownloadShelfOptions = {
|
|
4683
4760
|
/**
|
|
@@ -4713,6 +4790,7 @@ declare type DownloadShelfOptions = {
|
|
|
4713
4790
|
* Generated when the visibility of the window's download shelf changes.
|
|
4714
4791
|
*
|
|
4715
4792
|
* @interface
|
|
4793
|
+
* @deprecated use DownloadBubble API instead
|
|
4716
4794
|
*/
|
|
4717
4795
|
declare type DownloadShelfVisibilityChangedEvent = BaseEvent_5 & {
|
|
4718
4796
|
type: 'download-shelf-visibility-changed';
|
|
@@ -4979,7 +5057,7 @@ declare type Event_10 = ApplicationEvents.Event | ApiReadyEvent | SnapshotApplie
|
|
|
4979
5057
|
* under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
|
4980
5058
|
* from which they propagate).
|
|
4981
5059
|
*/
|
|
4982
|
-
declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent | ExtensionsEnabledEvent | ExtensionsDisabledEvent | ExtensionsExcludedEvent | ExtensionsInstalledEvent | ExtensionInstalledEvent | ExtensionsInstallFailedEvent | ExtensionInstallFailedEvent | ExtensionsInitializationFailedEvent | NativeThemeUpdatedEvent;
|
|
5060
|
+
declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent | ExtensionsEnabledEvent | ExtensionsDisabledEvent | ExtensionsExcludedEvent | ExtensionsInstalledEvent | ExtensionInstalledEvent | ExtensionsInstallFailedEvent | ExtensionInstallFailedEvent | ExtensionsInitializationFailedEvent | ThemePaletteChangedEvent | NativeThemeUpdatedEvent;
|
|
4983
5061
|
|
|
4984
5062
|
/**
|
|
4985
5063
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by the HTMLElement Layout container.
|
|
@@ -8592,17 +8670,17 @@ declare type LayoutOptions = {
|
|
|
8592
8670
|
/* Excluded from this release type: disableTabOverflowDropdown */
|
|
8593
8671
|
/**
|
|
8594
8672
|
* When set to 'scroll', enables horizontal scrolling of tabs when they overflow the stack width.
|
|
8595
|
-
* When set to 'dropdown' the default
|
|
8673
|
+
* When set to 'dropdown', the default behavior occurs, in which excess tabs appear in a menu.
|
|
8596
8674
|
*
|
|
8597
|
-
* Setting this to `scroll`
|
|
8675
|
+
* Setting this to `scroll` might break styles written for the default dropdown behavior, as it significantly changes the DOM structure and CSS of tabs.
|
|
8598
8676
|
*
|
|
8599
|
-
* The DOM structure
|
|
8600
|
-
* - `lm_tabs`
|
|
8601
|
-
* - the `.newTabButton` (if enabled)
|
|
8677
|
+
* The DOM structure is modified in this way:
|
|
8678
|
+
* - `lm_tabs` is wrapped in a div with class `lm_scroll_shadow`. This div is revealed by a mask on the tabs when they are overflowing.
|
|
8679
|
+
* - the `.newTabButton` (if enabled) is a direct child of `.lm_header`
|
|
8602
8680
|
*
|
|
8603
|
-
* **The following
|
|
8681
|
+
* **The following CSS variables are available to customize tab appearance:**
|
|
8604
8682
|
*
|
|
8605
|
-
* - `--layout-tab-width`: The default (max) width of the tabs. Using this enables using `lm_tab` as a queryable
|
|
8683
|
+
* - `--layout-tab-width`: The default (max) width of the tabs. Using this enables using `lm_tab` as a queryable CSS container (must be an absolute value to use container queries). Default: `fit-content`
|
|
8606
8684
|
* - `--layout-tab-min-width`: The minimum width of the tabs before they start overflowing. Set this to enable tab shrinking. Defaults to the same value as `--layout-tab-width` (no shrinking).
|
|
8607
8685
|
* - `--layout-tab-overflow-fade-size`: The width of the scroll shadows when tabs are overflowing. Default: `20px`
|
|
8608
8686
|
* - `--layout-tab-overflow-shadow-color`: The color of the scroll shadows when tabs are overflowing. Enabling a contrasting shadow color may require setting the background color on `.lm_tabs` if it was not previously set via `--tabs-background-color`. Default is transparent so overlowing tabs fade into the background.
|
|
@@ -8611,7 +8689,7 @@ declare type LayoutOptions = {
|
|
|
8611
8689
|
*
|
|
8612
8690
|
* - `--layout-tab-overflow-fade-left`: The strength of the left fade when tabs are overflowing. This is a number between 0 and 1 where 0 means no fade and 1 means a full fade.
|
|
8613
8691
|
* - `--layout-tab-overflow-fade-right`: The strength of the right fade when tabs are overflowing. This is a number between 0 and 1 where 0 means no fade and 1 means a full fade.
|
|
8614
|
-
* - `--layout-tabs-overflowing`: A [
|
|
8692
|
+
* - `--layout-tabs-overflowing`: A [CSS space toggle](https://css-tricks.com/the-css-custom-property-toggle-trick/) that is empty when tabs are overflowing and `initial` otherwise. If you are targeting only Chrome 137 or greater, you might want to use the `if()` function with left/right fade instead of this toggle.
|
|
8615
8693
|
*
|
|
8616
8694
|
* @example
|
|
8617
8695
|
* ```css
|
|
@@ -8878,6 +8956,7 @@ declare type Manifest = {
|
|
|
8878
8956
|
policies?: {
|
|
8879
8957
|
CloudAPAuthEnabled?: 'enabled' | 'disabled';
|
|
8880
8958
|
};
|
|
8959
|
+
themePalette?: Array<ThemePalette>;
|
|
8881
8960
|
};
|
|
8882
8961
|
services?: string[];
|
|
8883
8962
|
shortcut?: {
|
|
@@ -9251,6 +9330,11 @@ declare type MutableViewOptions = {
|
|
|
9251
9330
|
* {@inheritDoc ChromiumPolicies}
|
|
9252
9331
|
*/
|
|
9253
9332
|
chromiumPolicies: ChromiumPolicies;
|
|
9333
|
+
/**
|
|
9334
|
+
* When set to `false`, disables sending application logs to RVM for this view.
|
|
9335
|
+
* When omitted, inherits from the parent application.
|
|
9336
|
+
*/
|
|
9337
|
+
enableAppLogging?: boolean;
|
|
9254
9338
|
};
|
|
9255
9339
|
|
|
9256
9340
|
/**
|
|
@@ -9525,6 +9609,12 @@ declare type MutableWindowOptions = {
|
|
|
9525
9609
|
* {@inheritDoc ChromiumPolicies}
|
|
9526
9610
|
*/
|
|
9527
9611
|
chromiumPolicies: ChromiumPolicies;
|
|
9612
|
+
/**
|
|
9613
|
+
* When set to `false`, disables sending application logs to RVM for this window.
|
|
9614
|
+
* When omitted, inherits from the parent application.
|
|
9615
|
+
*
|
|
9616
|
+
*/
|
|
9617
|
+
enableAppLogging?: boolean;
|
|
9528
9618
|
};
|
|
9529
9619
|
|
|
9530
9620
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
|
@@ -9894,6 +9984,9 @@ declare namespace OpenFin_2 {
|
|
|
9894
9984
|
CustomProtocolOptions,
|
|
9895
9985
|
InteropBrokerOptions,
|
|
9896
9986
|
ContextGroupInfo,
|
|
9987
|
+
AnchorLocation,
|
|
9988
|
+
Anchor,
|
|
9989
|
+
DownloadBubbleOptions,
|
|
9897
9990
|
DisplayMetadata,
|
|
9898
9991
|
LegacyWinOptionsInAppOptions,
|
|
9899
9992
|
Snapshot,
|
|
@@ -9997,6 +10090,9 @@ declare namespace OpenFin_2 {
|
|
|
9997
10090
|
LogUploaderUIOptions,
|
|
9998
10091
|
LogTypes,
|
|
9999
10092
|
LogUploadOptions,
|
|
10093
|
+
ThemeColorsMap,
|
|
10094
|
+
ThemeColorId,
|
|
10095
|
+
ThemePalette,
|
|
10000
10096
|
Manifest,
|
|
10001
10097
|
LayoutContent,
|
|
10002
10098
|
LayoutItemConfig,
|
|
@@ -10498,6 +10594,11 @@ declare type PerDomainSettings = {
|
|
|
10498
10594
|
*/
|
|
10499
10595
|
drag?: 'allow' | 'block';
|
|
10500
10596
|
};
|
|
10597
|
+
/**
|
|
10598
|
+
* When set to `false`, disables sending application logs to RVM for this window.
|
|
10599
|
+
* When omitted, inherits from the parent application.
|
|
10600
|
+
*/
|
|
10601
|
+
enableAppLogging?: boolean;
|
|
10501
10602
|
};
|
|
10502
10603
|
|
|
10503
10604
|
/**
|
|
@@ -12833,6 +12934,12 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
|
|
|
12833
12934
|
'create-window': VoidCall;
|
|
12834
12935
|
'get-current-window': VoidCall;
|
|
12835
12936
|
'get-current-window-sync': VoidCall;
|
|
12937
|
+
'show-download-bubble': IdentityCall<{
|
|
12938
|
+
options: OpenFin_2.Anchor;
|
|
12939
|
+
}, void>;
|
|
12940
|
+
'update-download-bubble-anchor': IdentityCall<{
|
|
12941
|
+
options: OpenFin_2.Anchor;
|
|
12942
|
+
}, void>;
|
|
12836
12943
|
'get-external-application-info': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.ExternalApplicationInfo>;
|
|
12837
12944
|
'external-application-wrap': VoidCall;
|
|
12838
12945
|
'external-application-wrap-sync': VoidCall;
|
|
@@ -13020,6 +13127,9 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
|
|
|
13020
13127
|
'write-to-log': ApiCall<{
|
|
13021
13128
|
level: string;
|
|
13022
13129
|
message: string;
|
|
13130
|
+
target?: {
|
|
13131
|
+
type?: 'app.log' | 'debug.log';
|
|
13132
|
+
};
|
|
13023
13133
|
}, void>;
|
|
13024
13134
|
'open-url-with-browser': ApiCall<{
|
|
13025
13135
|
url: string;
|
|
@@ -13183,6 +13293,15 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
|
|
|
13183
13293
|
request: void;
|
|
13184
13294
|
response: OpenFin_2.ExtensionInfo[];
|
|
13185
13295
|
};
|
|
13296
|
+
'set-theme-palette': ApiCall<{
|
|
13297
|
+
themePalette: Array<OpenFin_2.ThemePalette>;
|
|
13298
|
+
}, void> & {
|
|
13299
|
+
themePalette: Array<OpenFin_2.ThemePalette>;
|
|
13300
|
+
};
|
|
13301
|
+
'get-theme-palette': ApiCall<void, Array<OpenFin_2.ThemePalette>> & {
|
|
13302
|
+
request: void;
|
|
13303
|
+
response: Array<OpenFin_2.ThemePalette>;
|
|
13304
|
+
};
|
|
13186
13305
|
'fdc3-add-context-listener': VoidCall;
|
|
13187
13306
|
'fdc3-add-intent-listener': VoidCall;
|
|
13188
13307
|
'fdc3-raise-intent': VoidCall;
|
|
@@ -15234,13 +15353,16 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
|
15234
15353
|
* Writes the passed message into both the log file and the console.
|
|
15235
15354
|
* @param level The log level for the entry. Can be either "info", "warning" or "error"
|
|
15236
15355
|
* @param message The log message text
|
|
15356
|
+
* @param target.type Optional. The the log stream this message will be sent to, defaults to 'debug.log'. Specify 'app.log' to log to the app log of the sending View / Window. Note, when using `app.log`, it will always log to app.log irrespective of the `enableAppLogging` setting for the sender. This is particularly useful if you wish to log certain things from a View / Window but ignore generic console logs.
|
|
15237
15357
|
*
|
|
15238
15358
|
* @example
|
|
15239
15359
|
* ```js
|
|
15240
|
-
* fin.System.log("info", "An example log message").then(() => console.log('Log info message')).catch(err => console.log(err));
|
|
15360
|
+
* fin.System.log("info", "An example log message", { type: 'debug.log' }).then(() => console.log('Log info message')).catch(err => console.log(err));
|
|
15241
15361
|
* ```
|
|
15242
15362
|
*/
|
|
15243
|
-
log(level: string, message: string
|
|
15363
|
+
log(level: string, message: string, { type }?: {
|
|
15364
|
+
type?: 'app.log' | 'debug.log';
|
|
15365
|
+
}): Promise<void>;
|
|
15244
15366
|
/**
|
|
15245
15367
|
* Opens the passed URL in the default web browser.
|
|
15246
15368
|
*
|
|
@@ -16062,6 +16184,16 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
|
16062
16184
|
* @experimental
|
|
16063
16185
|
*/
|
|
16064
16186
|
launchLogUploader(options: OpenFin_2.LogUploaderOptions): Promise<void>;
|
|
16187
|
+
/**
|
|
16188
|
+
* Overrides original Chromium theme color providers matching key (currently except high contrast ones). Only colors passed in the map will be overridden.
|
|
16189
|
+
* @param overrides - Array of ColorProviderOverrides objects
|
|
16190
|
+
*/
|
|
16191
|
+
setThemePalette(themePalette: Array<OpenFin_2.ThemePalette>): Promise<void>;
|
|
16192
|
+
/**
|
|
16193
|
+
* Retrieves currently used color overrides
|
|
16194
|
+
* @returns Array of ColorProviderOverrides objects
|
|
16195
|
+
*/
|
|
16196
|
+
getThemePalette(): Promise<Array<OpenFin_2.ThemePalette>>;
|
|
16065
16197
|
}
|
|
16066
16198
|
|
|
16067
16199
|
/**
|
|
@@ -16100,6 +16232,7 @@ declare namespace SystemEvents {
|
|
|
16100
16232
|
ExtensionsInstallFailedEvent,
|
|
16101
16233
|
ExtensionInstallFailedEvent,
|
|
16102
16234
|
ExtensionsInitializationFailedEvent,
|
|
16235
|
+
ThemePaletteChangedEvent,
|
|
16103
16236
|
NativeThemeUpdatedEvent,
|
|
16104
16237
|
Event_11 as Event,
|
|
16105
16238
|
SystemEvent,
|
|
@@ -16371,6 +16504,104 @@ declare type TerminateExternalRequestType = {
|
|
|
16371
16504
|
killTree: boolean;
|
|
16372
16505
|
};
|
|
16373
16506
|
|
|
16507
|
+
/**
|
|
16508
|
+
* String literal type of all supported theme color IDs.
|
|
16509
|
+
* Useful wherever you need to refer to a color slot by name.
|
|
16510
|
+
* @interface
|
|
16511
|
+
*/
|
|
16512
|
+
declare type ThemeColorId = keyof ThemeColorsMap;
|
|
16513
|
+
|
|
16514
|
+
/**
|
|
16515
|
+
* All supported color slots for the Download Bubble and related UI.
|
|
16516
|
+
* @interface
|
|
16517
|
+
*/
|
|
16518
|
+
declare interface ThemeColorsMap {
|
|
16519
|
+
/**
|
|
16520
|
+
* Enterprise/Window/Background – bubble header and footer background.
|
|
16521
|
+
*/
|
|
16522
|
+
kColorBubbleBackground?: number;
|
|
16523
|
+
/**
|
|
16524
|
+
* Windows only – Enterprise/Window/Border.
|
|
16525
|
+
*/
|
|
16526
|
+
kColorBubbleBorder?: number;
|
|
16527
|
+
/**
|
|
16528
|
+
* Windows only – Enterprise/Window/Border (large shadow).
|
|
16529
|
+
*/
|
|
16530
|
+
kColorBubbleBorderShadowLarge?: number;
|
|
16531
|
+
/**
|
|
16532
|
+
* Windows only – Enterprise/Window/Border (small shadow).
|
|
16533
|
+
*/
|
|
16534
|
+
kColorBubbleBorderShadowSmall?: number;
|
|
16535
|
+
/**
|
|
16536
|
+
* Enterprise/Window/Background – downloaded item row background.
|
|
16537
|
+
*/
|
|
16538
|
+
kColorDialogBackground?: number;
|
|
16539
|
+
/**
|
|
16540
|
+
* Enterprise/Search Result/Background/Hover – download item row hover.
|
|
16541
|
+
*/
|
|
16542
|
+
kColorDownloadBubbleRowHover?: number;
|
|
16543
|
+
/**
|
|
16544
|
+
* Enterprise/Window/Icon – “Show all downloads” icon color.
|
|
16545
|
+
*/
|
|
16546
|
+
kColorDownloadBubbleShowAllDownloadsIcon?: number;
|
|
16547
|
+
/**
|
|
16548
|
+
* Enterprise/Search Result/Background/Hover – full download history
|
|
16549
|
+
* button (full row) hover background.
|
|
16550
|
+
*/
|
|
16551
|
+
kColorHoverButtonBackgroundHovered?: number;
|
|
16552
|
+
/**
|
|
16553
|
+
* Shared/Icon Button/Subtle/Icon/Default – SVG icon color
|
|
16554
|
+
* (except full download history button).
|
|
16555
|
+
*/
|
|
16556
|
+
kColorIcon?: number;
|
|
16557
|
+
/**
|
|
16558
|
+
* Enterprise/Window/Text/Base – main label text color.
|
|
16559
|
+
* May be post-processed to increase readability on kColorDialogBackground
|
|
16560
|
+
* (can be disabled via transparent kColorLabelBackground).
|
|
16561
|
+
*/
|
|
16562
|
+
kColorLabelForeground?: number;
|
|
16563
|
+
/**
|
|
16564
|
+
* Label background used for readability adjustment.
|
|
16565
|
+
* Set to transparent (0) to disable Chromium’s readability alignment logic.
|
|
16566
|
+
*/
|
|
16567
|
+
kColorLabelBackground?: number;
|
|
16568
|
+
/**
|
|
16569
|
+
* Enterprise/Window/Text/Soft – secondary text color.
|
|
16570
|
+
* May be post-processed to increase readability on kColorDialogBackground
|
|
16571
|
+
* (can be disabled via transparent kColorLabelBackground).
|
|
16572
|
+
*/
|
|
16573
|
+
kColorSecondaryForeground?: number;
|
|
16574
|
+
}
|
|
16575
|
+
|
|
16576
|
+
/**
|
|
16577
|
+
* Defines a set of color overrides for Chromium UI surfaces based on a theme
|
|
16578
|
+
* provider (e.g., light or dark mode).
|
|
16579
|
+
* @interface
|
|
16580
|
+
*/
|
|
16581
|
+
declare type ThemePalette = {
|
|
16582
|
+
/**
|
|
16583
|
+
* Identifies the color provider mode that the palette applies to.
|
|
16584
|
+
*/
|
|
16585
|
+
colorProviderKey: {
|
|
16586
|
+
/**
|
|
16587
|
+
* The UI color mode that this palette is intended to style.
|
|
16588
|
+
*/
|
|
16589
|
+
colorMode: 'light' | 'dark';
|
|
16590
|
+
};
|
|
16591
|
+
/**
|
|
16592
|
+
* A mapping of known Chromium color IDs to ARGB values (0xAARRGGBB).
|
|
16593
|
+
*/
|
|
16594
|
+
colorsMap: ThemeColorsMap;
|
|
16595
|
+
};
|
|
16596
|
+
|
|
16597
|
+
/**
|
|
16598
|
+
* An event that fires when the system theme palette is changed.
|
|
16599
|
+
*/
|
|
16600
|
+
declare type ThemePaletteChangedEvent = BaseEvent_9 & {
|
|
16601
|
+
type: 'theme-palette-changed';
|
|
16602
|
+
themePalette: OpenFin_2.ThemePalette;
|
|
16603
|
+
};
|
|
16604
|
+
|
|
16374
16605
|
/**
|
|
16375
16606
|
* Settable options for the native theme of the operating system.
|
|
16376
16607
|
*/
|
|
@@ -19563,6 +19794,32 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
19563
19794
|
* To print the views embedded in their page context, set `content` to `screenshot`.
|
|
19564
19795
|
*/
|
|
19565
19796
|
print(options?: OpenFin_2.WindowPrintOptions): Promise<void>;
|
|
19797
|
+
/**
|
|
19798
|
+
* Displays the download bubble UI. If an anchor is provided, the bubble
|
|
19799
|
+
* will be positioned according to the specified rectangle and anchor point.
|
|
19800
|
+
*
|
|
19801
|
+
* @param {OpenFin.Anchor} options
|
|
19802
|
+
* Anchor configuration used to position the download bubble. This includes
|
|
19803
|
+
* the bounding rectangle and the anchor location within that rectangle.
|
|
19804
|
+
*
|
|
19805
|
+
* @returns {Promise<void>}
|
|
19806
|
+
* A promise that resolves once the request to show the download bubble
|
|
19807
|
+
* has been processed.
|
|
19808
|
+
*/
|
|
19809
|
+
showDownloadBubble(options: OpenFin_2.Anchor): Promise<void>;
|
|
19810
|
+
/**
|
|
19811
|
+
* Updates the anchor used for positioning the download bubble. This allows
|
|
19812
|
+
* moving the bubble reactively—for example, in response to window resizes,
|
|
19813
|
+
* layout changes, or DOM element repositioning.
|
|
19814
|
+
*
|
|
19815
|
+
* @param {OpenFin.Anchor} options
|
|
19816
|
+
* New anchor configuration describing the updated position and anchor
|
|
19817
|
+
* location for the download bubble.
|
|
19818
|
+
*
|
|
19819
|
+
* @returns {Promise<void>}
|
|
19820
|
+
* A promise that resolves once the anchor update has been applied.
|
|
19821
|
+
*/
|
|
19822
|
+
updateDownloadBubbleAnchor(options: OpenFin_2.Anchor): Promise<void>;
|
|
19566
19823
|
}
|
|
19567
19824
|
|
|
19568
19825
|
/**
|
|
@@ -19758,6 +20015,8 @@ declare namespace WindowEvents {
|
|
|
19758
20015
|
NonPropagatedWindowEvent,
|
|
19759
20016
|
ShowAllDownloadsEvent,
|
|
19760
20017
|
DownloadShelfVisibilityChangedEvent,
|
|
20018
|
+
DownloadButtonVisibilityChangedEvent,
|
|
20019
|
+
DownloadButtonIconUpdatedEvent,
|
|
19761
20020
|
WindowSourcedEvent,
|
|
19762
20021
|
WillPropagateWindowEvent,
|
|
19763
20022
|
Event_6 as Event,
|
|
@@ -19961,7 +20220,7 @@ declare type WindowShowRequestedEvent = ShowRequestedEvent;
|
|
|
19961
20220
|
* A union of all events that emit natively on the `Window` topic, i.e. excluding those that propagate
|
|
19962
20221
|
* from {@link OpenFin.ViewEvents}.
|
|
19963
20222
|
*/
|
|
19964
|
-
declare type WindowSourcedEvent = WebContentsEvents.Event<'window'> | WindowViewEvent | AuthRequestedEvent | BeginUserBoundsChangingEvent | BoundsChangedEvent | BoundsChangingEvent | ContextChangedEvent | CloseRequestedEvent | ClosedEvent_2 | ClosingEvent | DisabledMovementBoundsChangedEvent | DisabledMovementBoundsChangingEvent | EmbeddedEvent | EndUserBoundsChangingEvent | ExternalProcessExitedEvent | ExternalProcessStartedEvent | HiddenEvent_2 | HotkeyEvent_2 | InitializedEvent_2 | LayoutInitializedEvent | LayoutReadyEvent | LayoutCreatedEvent | LayoutDestroyedEvent | LayoutSnapshotAppliedEvent | MaximizedEvent | MinimizedEvent | OptionsChangedEvent | PerformanceReportEvent | PreloadScriptsStateChangedEvent | PreloadScriptsStateChangingEvent | ReloadedEvent | RestoredEvent | ShowRequestedEvent | ShownEvent_2 | UserMovementDisabledEvent | UserMovementEnabledEvent | WillMoveEvent | WillResizeEvent | ShowAllDownloadsEvent | DownloadShelfVisibilityChangedEvent | SnappedEvent | SnapZoneChangedEvent;
|
|
20223
|
+
declare type WindowSourcedEvent = WebContentsEvents.Event<'window'> | WindowViewEvent | AuthRequestedEvent | BeginUserBoundsChangingEvent | BoundsChangedEvent | BoundsChangingEvent | ContextChangedEvent | CloseRequestedEvent | ClosedEvent_2 | ClosingEvent | DisabledMovementBoundsChangedEvent | DisabledMovementBoundsChangingEvent | EmbeddedEvent | EndUserBoundsChangingEvent | ExternalProcessExitedEvent | ExternalProcessStartedEvent | HiddenEvent_2 | HotkeyEvent_2 | InitializedEvent_2 | LayoutInitializedEvent | LayoutReadyEvent | LayoutCreatedEvent | LayoutDestroyedEvent | LayoutSnapshotAppliedEvent | MaximizedEvent | MinimizedEvent | OptionsChangedEvent | PerformanceReportEvent | PreloadScriptsStateChangedEvent | PreloadScriptsStateChangingEvent | ReloadedEvent | RestoredEvent | ShowRequestedEvent | ShownEvent_2 | UserMovementDisabledEvent | UserMovementEnabledEvent | WillMoveEvent | WillResizeEvent | ShowAllDownloadsEvent | DownloadShelfVisibilityChangedEvent | DownloadButtonVisibilityChangedEvent | DownloadButtonIconUpdatedEvent | SnappedEvent | SnapZoneChangedEvent;
|
|
19965
20224
|
|
|
19966
20225
|
/**
|
|
19967
20226
|
* Generated when a child window starts loading.
|