@openfin/workspace 23.0.9 → 23.0.12
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/src/notifications.d.ts +2 -2
- package/client-api/src/shapes/index.d.ts +1 -1
- package/client-api/src/shapes/notifications.d.ts +1 -1
- package/client-api-platform/src/api/app-directory.d.ts +1 -1
- package/client-api-platform/src/shapes.d.ts +81 -1
- package/common/src/utils/env.d.ts +1 -1
- package/common/src/utils/find-in-page/findInPageChannel.d.ts +2 -0
- package/common/src/utils/layout.d.ts +26 -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 +10 -10
- 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 +3 -3
- package/store.js +1 -1
- package/store.js.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as Notifications from '@
|
|
1
|
+
import * as Notifications from '@openfin/notifications';
|
|
2
2
|
import type { NotificationsPlatform, NotificationsRegisterOptions } from './shapes/notifications';
|
|
3
|
-
export * from '@
|
|
3
|
+
export * from '@openfin/notifications';
|
|
4
4
|
export * from './shapes/notifications';
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use `register` with {@link NotificationsRegisterOptions | options?: NotificationsRegisterOptions} argument instead.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* WARNING: Do not export from './notifications' here. Not unless we move '@
|
|
2
|
+
* WARNING: Do not export from './notifications' here. Not unless we move '@openfin/notifications' here.
|
|
3
3
|
*/
|
|
4
4
|
export * from './common';
|
|
5
5
|
export * from './home';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This module exports only notifications types that are not defined in '@
|
|
2
|
+
* This module exports only notifications types that are not defined in '@openfin/notifications' npm package
|
|
3
3
|
*/
|
|
4
4
|
import { NotificationsCustomManifestOptions } from '../../../common/src/api/shapes/notifications';
|
|
5
5
|
/**
|
|
@@ -7,7 +7,7 @@ import type { LaunchAppRequest, SearchSitesRequest, SearchSitesResponse, Site }
|
|
|
7
7
|
* @param app the app directory entry.
|
|
8
8
|
* @param opts launch options.
|
|
9
9
|
*/
|
|
10
|
-
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.
|
|
10
|
+
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.Platform | OpenFin.View | OpenFin.Application>;
|
|
11
11
|
export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
|
|
12
12
|
export declare function getResults(payload: {
|
|
13
13
|
req: SearchSitesRequest;
|
|
@@ -266,6 +266,40 @@ export type InternalOpenGlobalContextMenuRequest = OpenGlobalContextMenuRequest
|
|
|
266
266
|
rect?: DOMRect;
|
|
267
267
|
};
|
|
268
268
|
export type ViewTabContextMenuTemplate = OpenFin.MenuItemTemplate<ViewTabMenuData>;
|
|
269
|
+
/**
|
|
270
|
+
* UI elements within a view tab that can be navigated to via keyboard.
|
|
271
|
+
*/
|
|
272
|
+
export type ViewTabElements = 'inactive-tab' | 'active-tab' | 'inactive-tab-close-button' | 'active-tab-close-button' | 'add-tab-button';
|
|
273
|
+
/**
|
|
274
|
+
* Configuration options for view tab keyboard navigation behavior.
|
|
275
|
+
*/
|
|
276
|
+
export interface ViewTabOptions {
|
|
277
|
+
/**
|
|
278
|
+
* Elements in the view tab that are able to be focused using
|
|
279
|
+
* arrow keys when an element in the view is selected.
|
|
280
|
+
* The order of the items in the array have no impact.
|
|
281
|
+
* Note: these are not mutually exclusive and can overlap.
|
|
282
|
+
* Default (when undefined): ["inactive-tab","active-tab","active-tab-close-button","inactive-tab-close-button","add-tab-button"]
|
|
283
|
+
*/
|
|
284
|
+
arrowNavigation?: ViewTabElements[];
|
|
285
|
+
/**
|
|
286
|
+
* Elements in the view tab that are able to be focused using
|
|
287
|
+
* tab and shift+tab when an element in the view is selected.
|
|
288
|
+
* The order of the items in the array have no impact.
|
|
289
|
+
* Note: these are not mutually exclusive and can overlap.
|
|
290
|
+
* Default (when undefined): ["active-tab","add-tab-button"]
|
|
291
|
+
*/
|
|
292
|
+
tabNavigation?: ViewTabElements[];
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Configuration options for accessibility features in the Browser.
|
|
296
|
+
*/
|
|
297
|
+
export interface AccessibilityOptions {
|
|
298
|
+
/**
|
|
299
|
+
* View tab keyboard navigation options.
|
|
300
|
+
*/
|
|
301
|
+
viewTabOptions?: ViewTabOptions;
|
|
302
|
+
}
|
|
269
303
|
/**
|
|
270
304
|
* Request for opening a view tab context menu in Browser.
|
|
271
305
|
*/
|
|
@@ -682,6 +716,30 @@ export interface BrowserWorkspacePlatformWindowOptions {
|
|
|
682
716
|
minWidth?: string;
|
|
683
717
|
maxWidth?: string;
|
|
684
718
|
};
|
|
719
|
+
/**
|
|
720
|
+
* Accessibility options for the browser window.
|
|
721
|
+
* These options override the default accessibility options set at the platform or browser initialization level.
|
|
722
|
+
*
|
|
723
|
+
* @example
|
|
724
|
+
* ```ts
|
|
725
|
+
* import * as WorkspacePlatform from '@openfin/workspace-platform';
|
|
726
|
+
*
|
|
727
|
+
* const platform = WorkspacePlatform.getCurrentSync();
|
|
728
|
+
* const browserWin = platform.Browser.createWindow({
|
|
729
|
+
* ...,
|
|
730
|
+
* workspacePlatform: {
|
|
731
|
+
* ...,
|
|
732
|
+
* accessibilityOptions: {
|
|
733
|
+
* viewTabOptions: {
|
|
734
|
+
* arrowNavigation: ["inactive-tab", "active-tab"],
|
|
735
|
+
* tabNavigation: ["active-tab"]
|
|
736
|
+
* }
|
|
737
|
+
* }
|
|
738
|
+
* }
|
|
739
|
+
* });
|
|
740
|
+
* ```
|
|
741
|
+
*/
|
|
742
|
+
accessibilityOptions?: AccessibilityOptions;
|
|
685
743
|
/**
|
|
686
744
|
* Use when you want to display navigation buttons in Browser toolbar. Disabled by default.
|
|
687
745
|
*
|
|
@@ -2012,7 +2070,7 @@ export interface WorkspacePlatformModule extends OpenFin.Platform {
|
|
|
2012
2070
|
* @internal
|
|
2013
2071
|
*/
|
|
2014
2072
|
_focusAndExpandSearchInternal(): Promise<void>;
|
|
2015
|
-
/** Shows a popup window for
|
|
2073
|
+
/** Shows a popup window for HERE About page with provided data parameters
|
|
2016
2074
|
* @internal
|
|
2017
2075
|
*/
|
|
2018
2076
|
_showAboutPagePopup(payload: AboutPageConfig): Promise<OpenFin.Window>;
|
|
@@ -2814,6 +2872,28 @@ export interface BrowserInitConfig {
|
|
|
2814
2872
|
* that are PNGs you will need to update these assets for best results.
|
|
2815
2873
|
*/
|
|
2816
2874
|
browserIconSize?: IconSize;
|
|
2875
|
+
/**
|
|
2876
|
+
* Default accessibility options that will be applied to all browser windows.
|
|
2877
|
+
* These options can be overridden at the window creation level via workspacePlatform.accessibilityOptions.
|
|
2878
|
+
*
|
|
2879
|
+
* @example
|
|
2880
|
+
* ```ts
|
|
2881
|
+
* import * as WorkspacePlatform from '@openfin/workspace-platform';
|
|
2882
|
+
*
|
|
2883
|
+
* await WorkspacePlatform.init({
|
|
2884
|
+
* browser: {
|
|
2885
|
+
* title: "My Browser",
|
|
2886
|
+
* accessibilityOptions: {
|
|
2887
|
+
* viewTabOptions: {
|
|
2888
|
+
* arrowNavigation: ["inactive-tab", "active-tab"],
|
|
2889
|
+
* tabNavigation: ["active-tab"]
|
|
2890
|
+
* }
|
|
2891
|
+
* }
|
|
2892
|
+
* }
|
|
2893
|
+
* });
|
|
2894
|
+
* ```
|
|
2895
|
+
*/
|
|
2896
|
+
accessibilityOptions?: AccessibilityOptions;
|
|
2817
2897
|
/**
|
|
2818
2898
|
* Override workspace platform behavior
|
|
2819
2899
|
*
|
|
@@ -11,7 +11,7 @@ export declare const isDocumentDefined: boolean;
|
|
|
11
11
|
export declare const isWindowDefinedWithIndexDB: boolean;
|
|
12
12
|
export declare const finUUID: string;
|
|
13
13
|
export declare const finName: string;
|
|
14
|
-
export declare const finEntityType: "" | "
|
|
14
|
+
export declare const finEntityType: "" | "view" | "window";
|
|
15
15
|
export declare const isEnvLocal: boolean;
|
|
16
16
|
export declare const isEnvDev: boolean;
|
|
17
17
|
export declare const isEnvStaging: boolean;
|
|
@@ -11,12 +11,22 @@ export type LayoutDOMEventType =
|
|
|
11
11
|
* Fired when a tab is created in a container. (Emmitted by core)
|
|
12
12
|
*/
|
|
13
13
|
| 'tab-created'
|
|
14
|
+
/**
|
|
15
|
+
* Fired when a new container/stack is created. (Emitted by Golden Layout)
|
|
16
|
+
*/
|
|
17
|
+
| 'container-created'
|
|
14
18
|
/**
|
|
15
19
|
* Fired when the layout container is ready to be used. (Emitted by us)
|
|
16
20
|
*/
|
|
17
|
-
| 'container-resized'
|
|
21
|
+
| 'container-resized'
|
|
22
|
+
/**
|
|
23
|
+
* Fired when a view item container is resized (e.g., via separator drag). (Emitted by us)
|
|
24
|
+
*/
|
|
25
|
+
| 'view-container-resized' | 'tab-closed';
|
|
18
26
|
export type LayoutDOMEvent = {
|
|
19
27
|
type: Extract<LayoutDOMEventType, 'container-resized'>;
|
|
28
|
+
} | {
|
|
29
|
+
type: Extract<LayoutDOMEventType, 'view-container-resized'>;
|
|
20
30
|
} | {
|
|
21
31
|
type: Extract<LayoutDOMEventType, 'tab-created' | 'tab-closed'>;
|
|
22
32
|
detail: {
|
|
@@ -30,6 +40,14 @@ export type LayoutDOMEvent = {
|
|
|
30
40
|
};
|
|
31
41
|
isInitialized: boolean;
|
|
32
42
|
target: HTMLElement;
|
|
43
|
+
} | {
|
|
44
|
+
type: Extract<LayoutDOMEventType, 'container-created'>;
|
|
45
|
+
detail?: {
|
|
46
|
+
containerSelector?: string;
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
};
|
|
49
|
+
target?: HTMLElement;
|
|
50
|
+
originalElement?: HTMLElement;
|
|
33
51
|
} | {
|
|
34
52
|
type: Extract<LayoutDOMEventType, 'tabs-list-resized'>;
|
|
35
53
|
};
|
|
@@ -85,6 +103,13 @@ export declare const isLayoutTabActive: (tabSelector: string) => boolean;
|
|
|
85
103
|
export declare const containerId = "layout_container";
|
|
86
104
|
export declare const viewTabslistSelectors = ".lm_tabs";
|
|
87
105
|
export declare const addLayoutEventListener: (event: LayoutDOMEventType, listener: LayoutDOMEventListener) => void;
|
|
106
|
+
export declare const removeLayoutEventListener: (event: LayoutDOMEventType, listener: LayoutDOMEventListener) => void;
|
|
107
|
+
/**
|
|
108
|
+
* Cleans up ResizeObservers and event listeners for a specific layout.
|
|
109
|
+
* Should be called when a layout is destroyed to prevent memory leaks.
|
|
110
|
+
* @param layoutName The layoutName/layoutContainerKey to cleanup
|
|
111
|
+
*/
|
|
112
|
+
export declare const cleanupLayoutObservers: (layoutName: string) => void;
|
|
88
113
|
/**
|
|
89
114
|
* Initialize the layout for the current OF window.
|
|
90
115
|
*/
|
|
@@ -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
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"@
|
|
2
|
+
"@openfin/notifications": [
|
|
3
3
|
{
|
|
4
4
|
"type": "explicit",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "2.13.0-alpha-4399",
|
|
6
6
|
"packageName": "client-api/package.json",
|
|
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",
|