@openfin/workspace 45.4.1 → 45.4.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/client-api-platform/src/api/app-directory.d.ts +1 -1
- package/client-api-platform/src/api/context-menu/utils.d.ts +1 -0
- package/client-api-platform/src/init/override-callback/commands.d.ts +2 -4
- package/client-api-platform/src/shapes.d.ts +10 -1
- package/common/src/utils/env.d.ts +1 -1
- package/common/src/utils/keyboard-commands.d.ts +42 -0
- package/common/src/utils/os.d.ts +2 -0
- package/common/src/utils/popup-window.d.ts +1 -0
- package/externals.report.json +14 -14
- package/home.js +1 -1
- package/index.js +1 -1
- package/notifications.js +1 -1
- package/package.json +1 -1
- package/store.js +1 -1
|
@@ -7,7 +7,7 @@ import type { ContentSortRequest, LaunchAppRequest, SearchSitesRequest, SearchSi
|
|
|
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.View | OpenFin.Identity | OpenFin.Platform | OpenFin.Application>;
|
|
11
11
|
export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
|
|
12
12
|
export declare function getResults(payload: {
|
|
13
13
|
req: SearchSitesRequest;
|
|
@@ -11,6 +11,7 @@ export declare const saveWorkspaceAsHandler: (identity: OpenFin.Identity) => voi
|
|
|
11
11
|
* @param identity Identity of browser window to create a new page on.
|
|
12
12
|
*/
|
|
13
13
|
export declare const createNewPageHandler: (identity: OpenFin.Identity) => Promise<void>;
|
|
14
|
+
export declare const createNewWindowHandler: (identity: OpenFin.Identity) => Promise<void>;
|
|
14
15
|
/**
|
|
15
16
|
* @param identity Identity of browser window to execute save on.
|
|
16
17
|
* @param pageId Id of a page to save. If omitted, active page is saved.
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
readonly FIND_IN_PAGE: "findInPage.show";
|
|
5
|
-
};
|
|
2
|
+
import { KEYBOARD_COMMANDS } from '../../../../common/src/utils/keyboard-commands';
|
|
3
|
+
export { KEYBOARD_COMMANDS };
|
|
6
4
|
export declare const getKeyboardCommands: (superGetKeyboardCommands: () => OpenFin.ShortcutOverride[]) => OpenFin.ShortcutOverride[];
|
|
@@ -1492,6 +1492,15 @@ export type AppSite = SiteInfo & {
|
|
|
1492
1492
|
};
|
|
1493
1493
|
};
|
|
1494
1494
|
};
|
|
1495
|
+
/**
|
|
1496
|
+
* Enterprise Web Search result (e.g. Google).
|
|
1497
|
+
* @internal
|
|
1498
|
+
*/
|
|
1499
|
+
export type WebSearchSite = SiteInfo & {
|
|
1500
|
+
type: 'websearch';
|
|
1501
|
+
url: string;
|
|
1502
|
+
icon: string;
|
|
1503
|
+
};
|
|
1495
1504
|
/**
|
|
1496
1505
|
* @internal
|
|
1497
1506
|
*/
|
|
@@ -1512,7 +1521,7 @@ export type CollectionSite = SiteInfo & {
|
|
|
1512
1521
|
/**
|
|
1513
1522
|
* @internal
|
|
1514
1523
|
*/
|
|
1515
|
-
export type Site = AppSite | WorkspaceSite;
|
|
1524
|
+
export type Site = AppSite | WorkspaceSite | WebSearchSite;
|
|
1516
1525
|
/**
|
|
1517
1526
|
* @internal
|
|
1518
1527
|
*/
|
|
@@ -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: "" | "window" | "view";
|
|
15
15
|
export declare const isEnvLocal: boolean;
|
|
16
16
|
export declare const isEnvDev: boolean;
|
|
17
17
|
export declare const isEnvStaging: boolean;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const KEYBOARD_COMMANDS: {
|
|
2
|
+
readonly NEW_TAB: "workspace.newTab";
|
|
3
|
+
readonly FIND_IN_PAGE: "findInPage.show";
|
|
4
|
+
readonly RESTORE_TAB: "workspace.restoreTab";
|
|
5
|
+
readonly CLOSE_TAB: "workspace.closeTab";
|
|
6
|
+
readonly NEXT_TAB: "workspace.nextTab";
|
|
7
|
+
readonly PREVIOUS_TAB: "workspace.previousTab";
|
|
8
|
+
readonly LAST_TAB: "workspace.lastTab";
|
|
9
|
+
readonly NEW_WINDOW: "workspace.newWindow";
|
|
10
|
+
readonly CLOSE_WINDOW: "workspace.closeWindow";
|
|
11
|
+
readonly SAVE_PAGE: "workspace.savePage";
|
|
12
|
+
readonly SAVE_PAGE_AS: "workspace.savePageAs";
|
|
13
|
+
readonly NAVIGATE_BACK: "workspace.navigateBack";
|
|
14
|
+
readonly NAVIGATE_FORWARD: "workspace.navigateForward";
|
|
15
|
+
readonly RELOAD: "workspace.reload";
|
|
16
|
+
readonly PRINT: "workspace.print";
|
|
17
|
+
readonly FOCUS_ADDRESS_BAR: "workspace.focusAddressBar";
|
|
18
|
+
readonly BOOKMARK_PAGE: "workspace.bookmarkPage";
|
|
19
|
+
readonly ZOOM_IN_VIEW: "workspace.zoomInView";
|
|
20
|
+
readonly ZOOM_OUT_VIEW: "workspace.zoomOutView";
|
|
21
|
+
readonly ZOOM_IN_PAGE: "workspace.zoomInPage";
|
|
22
|
+
readonly ZOOM_OUT_PAGE: "workspace.zoomOutPage";
|
|
23
|
+
};
|
|
24
|
+
export type KeyboardCommand = (typeof KEYBOARD_COMMANDS)[keyof typeof KEYBOARD_COMMANDS];
|
|
25
|
+
/**
|
|
26
|
+
* Which side wins when focused content binds the same shortcut as a HERE command.
|
|
27
|
+
*
|
|
28
|
+
* - `yieldable` (default): content wins. The key reaches the page first, like find-in-page; if the
|
|
29
|
+
* page calls `event.preventDefault()` the HERE command does not run, otherwise it does.
|
|
30
|
+
* - `reserved`: HERE wins and the key never reaches content. Limited to the commands Chrome itself
|
|
31
|
+
* does not let pages override (new/close/restore tab, new/close window, tab cycling) plus
|
|
32
|
+
* focus address bar.
|
|
33
|
+
*
|
|
34
|
+
* Every new command must be classified here. Use `yieldable` unless a page must never be able to
|
|
35
|
+
* block the command.
|
|
36
|
+
*/
|
|
37
|
+
export declare const KEYBOARD_COMMAND_PRECEDENCE: Record<KeyboardCommand, 'reserved' | 'yieldable'>;
|
|
38
|
+
/** Numbered tab commands and any command not in {@link KEYBOARD_COMMAND_PRECEDENCE} are yieldable. */
|
|
39
|
+
export declare const isReservedKeyboardCommand: (command: string) => boolean;
|
|
40
|
+
/** Tabs 1–8 have their own command; the ninth shortcut maps to {@link KEYBOARD_COMMANDS.LAST_TAB}. */
|
|
41
|
+
export declare const NUMBERED_TAB_COUNT = 8;
|
|
42
|
+
export declare const getSelectTabCommand: (tabNumber: number) => string;
|
package/common/src/utils/os.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/** @internal Reset cached host specs — only for test isolation */
|
|
2
2
|
export declare const resetHostSpecsCache: () => void;
|
|
3
3
|
export declare const isOSWindows: () => Promise<boolean>;
|
|
4
|
+
/** For synchronous contexts */
|
|
5
|
+
export declare const isOSWindowsSync: () => boolean;
|
|
4
6
|
export declare const isWindows10Or11: () => Promise<boolean>;
|
package/externals.report.json
CHANGED
|
@@ -43,14 +43,6 @@
|
|
|
43
43
|
"issuer": "common/src/utils/layout.ts"
|
|
44
44
|
}
|
|
45
45
|
],
|
|
46
|
-
"lodash.clonedeep": [
|
|
47
|
-
{
|
|
48
|
-
"type": "explicit",
|
|
49
|
-
"version": "4.5.0",
|
|
50
|
-
"packageName": "common/package.json",
|
|
51
|
-
"issuer": "common/src/utils/layout.ts"
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
46
|
"react-i18next": [
|
|
55
47
|
{
|
|
56
48
|
"type": "explicit",
|
|
@@ -75,18 +67,20 @@
|
|
|
75
67
|
"issuer": "common/src/api/i18next.ts"
|
|
76
68
|
}
|
|
77
69
|
],
|
|
78
|
-
"
|
|
70
|
+
"lodash.clonedeep": [
|
|
79
71
|
{
|
|
80
72
|
"type": "explicit",
|
|
81
|
-
"version": "
|
|
73
|
+
"version": "4.5.0",
|
|
82
74
|
"packageName": "common/package.json",
|
|
83
|
-
"issuer": "common/src/
|
|
84
|
-
}
|
|
75
|
+
"issuer": "common/src/utils/layout.ts"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"dexie": [
|
|
85
79
|
{
|
|
86
80
|
"type": "explicit",
|
|
87
81
|
"version": "^4.0.11",
|
|
88
|
-
"packageName": "
|
|
89
|
-
"issuer": "
|
|
82
|
+
"packageName": "common/package.json",
|
|
83
|
+
"issuer": "common/src/api/pages/idb.ts"
|
|
90
84
|
},
|
|
91
85
|
{
|
|
92
86
|
"type": "root-implicit",
|
|
@@ -94,6 +88,12 @@
|
|
|
94
88
|
"packageName": "dock3/package.json",
|
|
95
89
|
"issuer": "dock3/src/api/idb.ts"
|
|
96
90
|
},
|
|
91
|
+
{
|
|
92
|
+
"type": "explicit",
|
|
93
|
+
"version": "^4.0.11",
|
|
94
|
+
"packageName": "client-api-platform/package.json",
|
|
95
|
+
"issuer": "client-api-platform/src/api/dock/idb.ts"
|
|
96
|
+
},
|
|
97
97
|
{
|
|
98
98
|
"type": "explicit",
|
|
99
99
|
"version": "^4.0.11",
|