@openfin/workspace-platform 24.1.1 → 24.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/init/index.d.ts +1 -1
- package/client-api-platform/src/shapes.d.ts +19 -1
- package/common/src/api/pages/enterprise-shapes.d.ts +2 -0
- package/common/src/utils/indicators/showIndicator.d.ts +8 -1
- package/common/src/utils/indicators/workspace-indicators.d.ts +13 -0
- package/externals.report.json +8 -8
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/common/src/api/tabs.d.ts +0 -16
|
@@ -35,4 +35,4 @@ import { WorkspacePlatformInitConfig } from '../../../client-api-platform/src/sh
|
|
|
35
35
|
* ```
|
|
36
36
|
* @param options options for configuring the platform.
|
|
37
37
|
*/
|
|
38
|
-
export declare const init: (
|
|
38
|
+
export declare const init: (config: WorkspacePlatformInitConfig) => Promise<OpenFin.Platform>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
2
|
import type { IconProps, IconType, Languages } from '@openfin/ui-library';
|
|
3
|
+
import type { WorkspaceIndicatorConfig } from '../../common/src/utils/indicators/workspace-indicators';
|
|
3
4
|
import type { AnalyticsEvent } from '../../common/src/utils/usage-register';
|
|
4
5
|
import type { CustomActionSpecifier, CustomButtonConfig } from '../../common/src/api/action';
|
|
5
6
|
import type { AddDefaultPagePayload, AttachedPage, BookmarkNode, CopyPagePayload, HandlePagesAndWindowClosePayload, HandlePagesAndWindowCloseResult, HandleSaveModalOnPageClosePayload, Page, PageLayoutsWithSelectedViews, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult, SetActivePageForWindowPayload, ShouldPageClosePayload, ShouldPageCloseResult, ViewsPreventingUnloadPayload } from '../../common/src/api/pages/shapes';
|
|
@@ -154,7 +155,7 @@ export declare enum PageTabContextMenuOptionType {
|
|
|
154
155
|
Rename = "Rename",
|
|
155
156
|
Save = "Save",
|
|
156
157
|
SaveAs = "Save As",
|
|
157
|
-
NewPage = "New Page"
|
|
158
|
+
NewPage = "New Page",// Enterprise
|
|
158
159
|
DeletePage = "Delete Page",// Enterprise
|
|
159
160
|
SaveWorkspaceAs = "SaveWorkspaceAs",// Enterprise
|
|
160
161
|
Refresh = "Refresh",// Enterprise
|
|
@@ -2465,6 +2466,23 @@ export interface BrowserInitConfig {
|
|
|
2465
2466
|
* Defaults to `false` (current unique-title behavior preserved).
|
|
2466
2467
|
*/
|
|
2467
2468
|
allowDuplicatePageTitles?: boolean;
|
|
2469
|
+
/**
|
|
2470
|
+
* Opt-in suppression flags for workspace success indicators.
|
|
2471
|
+
* Both flags default to `false`; existing platforms see no behaviour change.
|
|
2472
|
+
*
|
|
2473
|
+
* @example
|
|
2474
|
+
* ```ts
|
|
2475
|
+
* await WorkspacePlatform.init({
|
|
2476
|
+
* browser: {
|
|
2477
|
+
* indicators: {
|
|
2478
|
+
* suppressWorkspaceSwitched: true,
|
|
2479
|
+
* suppressWorkspaceSaved: true,
|
|
2480
|
+
* },
|
|
2481
|
+
* },
|
|
2482
|
+
* });
|
|
2483
|
+
* ```
|
|
2484
|
+
*/
|
|
2485
|
+
indicators?: WorkspaceIndicatorConfig;
|
|
2468
2486
|
}
|
|
2469
2487
|
interface WorkspaceMetadata {
|
|
2470
2488
|
APIVersion: string;
|
|
@@ -32,6 +32,8 @@ export interface Page {
|
|
|
32
32
|
panels?: PanelConfig[];
|
|
33
33
|
/** Used to define the context group for the page */
|
|
34
34
|
contextGroup?: string;
|
|
35
|
+
/** When true, view tab headers within this Supertab are hidden. */
|
|
36
|
+
viewTabsHidden?: boolean;
|
|
35
37
|
/** Optional property to attach custom metadata to the page object, such as version or timestamp. Must be serializable. */
|
|
36
38
|
customData?: any;
|
|
37
39
|
/** True when this page is an admin-published supertab. */
|
|
@@ -50,6 +50,13 @@ export declare function showSuccess(payload: ShowSuccessPayload): Promise<void>;
|
|
|
50
50
|
*/
|
|
51
51
|
export declare function showInfo(payload: ShowInfoPayload): Promise<void>;
|
|
52
52
|
/**
|
|
53
|
-
* Creates a window centered on monitor containing a success indicator for switching workspaces
|
|
53
|
+
* Creates a window centered on monitor containing a success indicator for switching workspaces.
|
|
54
|
+
* No-ops when `suppressWorkspaceSwitched` has been set via `BrowserInitConfig.indicators`.
|
|
54
55
|
*/
|
|
55
56
|
export declare function showSwitchWorkspaceSuccess(): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Creates a success indicator for workspace save and save-as operations.
|
|
59
|
+
* No-ops when `suppressWorkspaceSaved` has been set via `BrowserInitConfig.indicators`.
|
|
60
|
+
* Rename operations are intentionally unaffected — use `showSuccess` directly for those.
|
|
61
|
+
*/
|
|
62
|
+
export declare const showWorkspaceSavedSuccess: (payload: ShowSuccessPayload) => Promise<void>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration for suppressing workspace success indicators.
|
|
3
|
+
*/
|
|
4
|
+
export interface WorkspaceIndicatorConfig {
|
|
5
|
+
/** Suppress the "Workspace Switched" indicator on all applyWorkspace calls. @default false */
|
|
6
|
+
suppressWorkspaceSwitched?: boolean;
|
|
7
|
+
/** Suppress the "Workspace Saved" indicator on regular workspace save only. Save-as and rename are unaffected. @default false */
|
|
8
|
+
suppressWorkspaceSaved?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const initWorkspaceIndicators: (config?: WorkspaceIndicatorConfig) => void;
|
|
11
|
+
export declare const getSuppressWorkspaceSwitched: () => boolean;
|
|
12
|
+
/** Returns true when the "Workspace Saved" indicator should be suppressed (save only; save-as and rename are unaffected). */
|
|
13
|
+
export declare const getSuppressWorkspaceSaved: () => boolean;
|
package/externals.report.json
CHANGED
|
@@ -37,14 +37,6 @@
|
|
|
37
37
|
"issuer": "common/src/api/i18next.ts"
|
|
38
38
|
}
|
|
39
39
|
],
|
|
40
|
-
"lodash.clonedeep": [
|
|
41
|
-
{
|
|
42
|
-
"type": "explicit",
|
|
43
|
-
"version": "4.5.0",
|
|
44
|
-
"packageName": "common/package.json",
|
|
45
|
-
"issuer": "common/src/utils/layout.ts"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
40
|
"dexie": [
|
|
49
41
|
{
|
|
50
42
|
"type": "root-implicit",
|
|
@@ -70,5 +62,13 @@
|
|
|
70
62
|
"packageName": "common/package.json",
|
|
71
63
|
"issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
|
|
72
64
|
}
|
|
65
|
+
],
|
|
66
|
+
"lodash.clonedeep": [
|
|
67
|
+
{
|
|
68
|
+
"type": "explicit",
|
|
69
|
+
"version": "4.5.0",
|
|
70
|
+
"packageName": "common/package.json",
|
|
71
|
+
"issuer": "common/src/utils/layout.ts"
|
|
72
|
+
}
|
|
73
73
|
]
|
|
74
74
|
}
|