@openfin/workspace 23.0.9 → 23.0.10
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/client-api-platform/src/shapes.d.ts +1 -1
- package/common/src/utils/layout.d.ts +14 -1
- package/common/src/utils/route.d.ts +1 -1
- package/dock3/src/api/utils.d.ts +11 -0
- package/dock3/src/shapes/enterprise.d.ts +22 -0
- package/dock3/src/shapes/shapes.d.ts +4 -0
- package/externals.report.json +8 -8
- package/home.js +1 -1
- package/home.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/notifications.js +1 -1
- package/notifications.js.map +1 -1
- package/package.json +1 -1
- package/store.js +1 -1
- package/store.js.map +1 -1
|
@@ -2012,7 +2012,7 @@ export interface WorkspacePlatformModule extends OpenFin.Platform {
|
|
|
2012
2012
|
* @internal
|
|
2013
2013
|
*/
|
|
2014
2014
|
_focusAndExpandSearchInternal(): Promise<void>;
|
|
2015
|
-
/** Shows a popup window for
|
|
2015
|
+
/** Shows a popup window for HERE About page with provided data parameters
|
|
2016
2016
|
* @internal
|
|
2017
2017
|
*/
|
|
2018
2018
|
_showAboutPagePopup(payload: AboutPageConfig): Promise<OpenFin.Window>;
|
|
@@ -14,9 +14,15 @@ export type LayoutDOMEventType =
|
|
|
14
14
|
/**
|
|
15
15
|
* Fired when the layout container is ready to be used. (Emitted by us)
|
|
16
16
|
*/
|
|
17
|
-
| 'container-resized'
|
|
17
|
+
| 'container-resized'
|
|
18
|
+
/**
|
|
19
|
+
* Fired when a view item container is resized (e.g., via separator drag). (Emitted by us)
|
|
20
|
+
*/
|
|
21
|
+
| 'view-container-resized' | 'tab-closed';
|
|
18
22
|
export type LayoutDOMEvent = {
|
|
19
23
|
type: Extract<LayoutDOMEventType, 'container-resized'>;
|
|
24
|
+
} | {
|
|
25
|
+
type: Extract<LayoutDOMEventType, 'view-container-resized'>;
|
|
20
26
|
} | {
|
|
21
27
|
type: Extract<LayoutDOMEventType, 'tab-created' | 'tab-closed'>;
|
|
22
28
|
detail: {
|
|
@@ -85,6 +91,13 @@ export declare const isLayoutTabActive: (tabSelector: string) => boolean;
|
|
|
85
91
|
export declare const containerId = "layout_container";
|
|
86
92
|
export declare const viewTabslistSelectors = ".lm_tabs";
|
|
87
93
|
export declare const addLayoutEventListener: (event: LayoutDOMEventType, listener: LayoutDOMEventListener) => void;
|
|
94
|
+
export declare const removeLayoutEventListener: (event: LayoutDOMEventType, listener: LayoutDOMEventListener) => void;
|
|
95
|
+
/**
|
|
96
|
+
* Cleans up ResizeObservers and event listeners for a specific layout.
|
|
97
|
+
* Should be called when a layout is destroyed to prevent memory leaks.
|
|
98
|
+
* @param layoutName The layoutName/layoutContainerKey to cleanup
|
|
99
|
+
*/
|
|
100
|
+
export declare const cleanupLayoutObservers: (layoutName: string) => void;
|
|
88
101
|
/**
|
|
89
102
|
* Initialize the layout for the current OF window.
|
|
90
103
|
*/
|
|
@@ -34,7 +34,7 @@ declare enum BrowserRoute {
|
|
|
34
34
|
ZoomControlsDialog = "/zoom-controls-dialog/",
|
|
35
35
|
DesktopSignalsModal = "/popup-menu/desktop-signals-modal/",
|
|
36
36
|
IntentsResolverModal = "/popup-menu/intents-resolver-modal/",
|
|
37
|
-
FindInPageModal = "/find-in-page-modal/"
|
|
37
|
+
FindInPageModal = "/popup-menu/find-in-page-modal/"
|
|
38
38
|
}
|
|
39
39
|
declare const PageRoute: {
|
|
40
40
|
Browser: BrowserRoute.Browser;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CompanionDockConfig } from '../shapes/enterprise';
|
|
2
|
+
import type { DockAllowedWindowOptions } from '../shapes/shapes';
|
|
3
|
+
export declare const getSnapZone: (config: CompanionDockConfig | unknown, options?: DockAllowedWindowOptions) => {
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
threshold?: number;
|
|
6
|
+
locationPreference?: Array<"top" | "bottom">;
|
|
7
|
+
} | {
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
threshold: number;
|
|
10
|
+
locationPreference: readonly ["top", "bottom"];
|
|
11
|
+
};
|
|
@@ -6,6 +6,11 @@ export type { EnterpriseDockChannelClient, EnterpriseDockChannelProvider } from
|
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
8
8
|
export type DockCompanionButton = Exclude<Dock3Button, 'store'> | 'bookmarks' | 'searchShortcut' | 'collectionMenu';
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
* Supported context menu template items for the dock companion window
|
|
12
|
+
*/
|
|
13
|
+
export type DockContextMenuItem = 'snapToTop' | 'snapToBottom' | 'inspect';
|
|
9
14
|
/**
|
|
10
15
|
* @internal
|
|
11
16
|
*/
|
|
@@ -21,4 +26,21 @@ export type CompanionDockConfig = Omit<Dock3Config, 'defaultDockButtons'> & {
|
|
|
21
26
|
defaultDockButtons?: DockCompanionButton[];
|
|
22
27
|
windowType?: 'enterprise';
|
|
23
28
|
collectionMenu?: Collection[];
|
|
29
|
+
/**
|
|
30
|
+
* Experimental snapzone configuration for the dock companion
|
|
31
|
+
*/
|
|
32
|
+
experimental?: {
|
|
33
|
+
snapZone?: {
|
|
34
|
+
enabled: boolean;
|
|
35
|
+
threshold?: number;
|
|
36
|
+
locationPreference?: Array<'top' | 'bottom'>;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Context menu options for the dock companion window
|
|
41
|
+
*/
|
|
42
|
+
contextMenuOptions?: {
|
|
43
|
+
enabled: boolean;
|
|
44
|
+
template?: DockContextMenuItem[];
|
|
45
|
+
};
|
|
24
46
|
};
|
|
@@ -83,4 +83,8 @@ export type DockAllowedWindowOptions = Partial<Pick<OpenFin.PlatformWindowOption
|
|
|
83
83
|
locationPreference?: Array<'top' | 'bottom'>;
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
|
+
contextMenuOptions?: {
|
|
87
|
+
enabled?: boolean;
|
|
88
|
+
template?: Array<'snapToTop' | 'snapToBottom' | 'inspect'>;
|
|
89
|
+
};
|
|
86
90
|
};
|
package/externals.report.json
CHANGED
|
@@ -7,6 +7,14 @@
|
|
|
7
7
|
"issuer": "client-api/src/notifications.ts"
|
|
8
8
|
}
|
|
9
9
|
],
|
|
10
|
+
"@openfin/microsoft365": [
|
|
11
|
+
{
|
|
12
|
+
"type": "explicit",
|
|
13
|
+
"version": "^1.0.1",
|
|
14
|
+
"packageName": "client-api/package.json",
|
|
15
|
+
"issuer": "client-api/src/integrations/microsoft.ts"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
10
18
|
"title-case": [
|
|
11
19
|
{
|
|
12
20
|
"type": "explicit",
|
|
@@ -21,14 +29,6 @@
|
|
|
21
29
|
"issuer": "common/src/utils/color-linking.ts"
|
|
22
30
|
}
|
|
23
31
|
],
|
|
24
|
-
"@openfin/microsoft365": [
|
|
25
|
-
{
|
|
26
|
-
"type": "explicit",
|
|
27
|
-
"version": "^1.0.1",
|
|
28
|
-
"packageName": "client-api/package.json",
|
|
29
|
-
"issuer": "client-api/src/integrations/microsoft.ts"
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
32
|
"lodash.debounce": [
|
|
33
33
|
{
|
|
34
34
|
"type": "explicit",
|