@openfin/workspace-platform 45.1.0 → 45.1.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/shapes.d.ts +8 -0
- package/common/src/utils/color-linking.d.ts +38 -1
- package/common/src/utils/context-menu.d.ts +1 -0
- package/common/src/utils/layout.d.ts +7 -1
- package/externals.report.json +8 -8
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/workspace_platform.zip +0 -0
|
@@ -342,6 +342,14 @@ export declare enum ViewTabMenuOptionType {
|
|
|
342
342
|
* Prints a screenshot of the browser window.
|
|
343
343
|
*/
|
|
344
344
|
PrintScreen = "PrintScreen",
|
|
345
|
+
/**
|
|
346
|
+
* Translate the selected view's content to the detected target language.
|
|
347
|
+
*/
|
|
348
|
+
TranslatePage = "TranslatePage",
|
|
349
|
+
/**
|
|
350
|
+
* Revert translated content back to the original language.
|
|
351
|
+
*/
|
|
352
|
+
RevertTranslation = "RevertTranslation",
|
|
345
353
|
/**
|
|
346
354
|
* Custom context menu option defined by API client.
|
|
347
355
|
*/
|
|
@@ -1,4 +1,41 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
2
|
import { ViewTabContextMenuTemplate } from '../../../client-api-platform/src/shapes';
|
|
3
3
|
export declare const getChannelsMenuOptions: (channelsForViews: string[], colorGroups: OpenFin.ContextGroupInfo[]) => Promise<ViewTabContextMenuTemplate[]>;
|
|
4
|
-
export declare const ENTERPRISE_COLOR_CHANNELS:
|
|
4
|
+
export declare const ENTERPRISE_COLOR_CHANNELS: {
|
|
5
|
+
readonly blue: {
|
|
6
|
+
readonly name: "Blue";
|
|
7
|
+
readonly color: "#0091EB";
|
|
8
|
+
};
|
|
9
|
+
readonly indigo: {
|
|
10
|
+
readonly name: "Indigo";
|
|
11
|
+
readonly color: "#6450FF";
|
|
12
|
+
};
|
|
13
|
+
readonly pink: {
|
|
14
|
+
readonly name: "Pink";
|
|
15
|
+
readonly color: "#E878CF";
|
|
16
|
+
};
|
|
17
|
+
readonly teal: {
|
|
18
|
+
readonly name: "Teal";
|
|
19
|
+
readonly color: "#24D1D1";
|
|
20
|
+
};
|
|
21
|
+
readonly green: {
|
|
22
|
+
readonly name: "Green";
|
|
23
|
+
readonly color: "#00AF78";
|
|
24
|
+
};
|
|
25
|
+
readonly orange: {
|
|
26
|
+
readonly name: "Orange";
|
|
27
|
+
readonly color: "#FF7D37";
|
|
28
|
+
};
|
|
29
|
+
readonly red: {
|
|
30
|
+
readonly name: "Red";
|
|
31
|
+
readonly color: "#F94144";
|
|
32
|
+
};
|
|
33
|
+
readonly yellow: {
|
|
34
|
+
readonly name: "Yellow";
|
|
35
|
+
readonly color: "#F9C74F";
|
|
36
|
+
};
|
|
37
|
+
readonly gray: {
|
|
38
|
+
readonly name: "Gray";
|
|
39
|
+
readonly color: "#828788";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -27,4 +27,5 @@ export declare const getBoundsBasedOnAnchorBehavior: (bounds: OpenFin.Bounds, an
|
|
|
27
27
|
height: number;
|
|
28
28
|
width: number;
|
|
29
29
|
};
|
|
30
|
+
export declare const getTranslateItems: (viewIdentities: OpenFin.Identity[]) => Promise<ViewTabContextMenuTemplate[]>;
|
|
30
31
|
export declare const getPrintOption: () => Promise<ViewTabContextMenuTemplate | PageTabContextMenuItemTemplate>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
-
import type { PagePinnedState } from '../../../common/src/api/pages/shapes';
|
|
3
2
|
import { WindowIdentity } from '../../../common/src/utils/window';
|
|
3
|
+
import type { PagePinnedState } from '../../../common/src/api/pages/shapes';
|
|
4
4
|
import { AttachedPage, PageLayout } from '../../../client-api-platform/src/shapes';
|
|
5
5
|
export type LayoutDOMEventType =
|
|
6
6
|
/**
|
|
@@ -155,6 +155,12 @@ export declare const findViewInLayout: (node: any, viewId: OpenFin.Identity) =>
|
|
|
155
155
|
export declare const countViews: (node: OpenFin.LayoutContent) => number;
|
|
156
156
|
export declare const getLayoutConfig: (layoutContainerKey: string) => Promise<any>;
|
|
157
157
|
export declare const findPageForView: (viewName: string, browserWindowIdentity?: WindowIdentity) => Promise<AttachedPage | undefined>;
|
|
158
|
+
/**
|
|
159
|
+
* Waits for a specific view to receive focus on the current window, resolving
|
|
160
|
+
* either when the matching `view-focused` event fires or after a timeout (default 150ms).
|
|
161
|
+
* Useful for ensuring focus is stable before opening popups that would auto-close on focus shift.
|
|
162
|
+
*/
|
|
163
|
+
export declare const waitForViewFocus: (viewName: string, timeoutMs?: number) => Promise<void>;
|
|
158
164
|
/**
|
|
159
165
|
* Only show the view tab icon when not on the landing page
|
|
160
166
|
*/
|
package/externals.report.json
CHANGED
|
@@ -21,28 +21,28 @@
|
|
|
21
21
|
"issuer": "common/src/utils/color-linking.ts"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"
|
|
24
|
+
"lodash.clonedeep": [
|
|
25
25
|
{
|
|
26
26
|
"type": "explicit",
|
|
27
|
-
"version": "
|
|
27
|
+
"version": "4.5.0",
|
|
28
28
|
"packageName": "common/package.json",
|
|
29
|
-
"issuer": "common/src/
|
|
29
|
+
"issuer": "common/src/utils/layout.ts"
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
|
-
"i18next": [
|
|
32
|
+
"react-i18next": [
|
|
33
33
|
{
|
|
34
34
|
"type": "explicit",
|
|
35
|
-
"version": "
|
|
35
|
+
"version": "15.4.0",
|
|
36
36
|
"packageName": "common/package.json",
|
|
37
37
|
"issuer": "common/src/api/i18next.ts"
|
|
38
38
|
}
|
|
39
39
|
],
|
|
40
|
-
"
|
|
40
|
+
"i18next": [
|
|
41
41
|
{
|
|
42
42
|
"type": "explicit",
|
|
43
|
-
"version": "
|
|
43
|
+
"version": "^23.7.16",
|
|
44
44
|
"packageName": "common/package.json",
|
|
45
|
-
"issuer": "common/src/
|
|
45
|
+
"issuer": "common/src/api/i18next.ts"
|
|
46
46
|
}
|
|
47
47
|
],
|
|
48
48
|
"dexie": [
|