@openfin/workspace-platform 17.2.7 → 17.2.9
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/theming.d.ts +2 -2
- package/client-api-platform/src/init/theming.test.d.ts +1 -0
- package/client-api-platform/src/shapes.d.ts +4 -4
- package/common/src/api/theming.d.ts +4 -4
- package/common/src/utils/local-storage-key.d.ts +2 -1
- package/common/src/utils/namespaced-local-storage.d.ts +1 -0
- package/index.js +78 -127
- package/index.js.map +1 -1
- package/package.json +2 -1
|
@@ -3,7 +3,7 @@ export declare const getThemes: () => CustomThemes;
|
|
|
3
3
|
/**
|
|
4
4
|
* initTheming()
|
|
5
5
|
* Accepts an array of CustomThemes objects and stores it
|
|
6
|
-
* @param
|
|
6
|
+
* @param customThemes array of theme objects
|
|
7
7
|
* @returns array of custom theme objects
|
|
8
8
|
*/
|
|
9
|
-
export default function initTheming(
|
|
9
|
+
export default function initTheming(customThemes: CustomThemes): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
-
import { IconProps } from '@openfin/ui-library';
|
|
2
|
+
import { IconProps, Languages } from '@openfin/ui-library';
|
|
3
3
|
import type { AnalyticsEvent, AnalyticsEventInternal } from '../../common/src/utils/usage-register';
|
|
4
4
|
import { CustomActionSpecifier, CustomButtonConfig } from '../../common/src/api/action';
|
|
5
5
|
import type { AttachedPage, CopyPagePayload, HandleSaveModalOnPageClosePayload, Page, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult } from '../../common/src/api/pages/shapes';
|
|
@@ -13,7 +13,7 @@ export type { App, AppIntent, Image } from '../../client-api/src/shapes';
|
|
|
13
13
|
export type { CustomActionSpecifier, CustomButtonConfig } from '../../common/src/api/action';
|
|
14
14
|
export type { AttachedPage, Page, PageLayout, PageLayoutDetails, PageWithUpdatableRuntimeAttribs, PanelConfigHorizontal, PanelConfigVertical, PanelConfig, ExtendedPanelConfig, CopyPagePayload, HandleSaveModalOnPageClosePayload, SaveModalOnPageCloseResult, SetActivePageForWindowPayload } from '../../common/src/api/pages/shapes';
|
|
15
15
|
export { PanelPosition } from '../../common/src/api/pages/shapes';
|
|
16
|
-
export type { CustomThemes, CustomThemeOptions, CustomThemeOptionsWithScheme, CustomPaletteSet, BaseThemeOptions, ThemeExtension,
|
|
16
|
+
export type { CustomThemes, CustomThemeOptions, CustomThemeOptionsWithScheme, CustomPaletteSet, BaseThemeOptions, ThemeExtension, WorkspaceThemeSet, NotificationIndicatorColorsSet, NotificationIndicatorColorsSetDarkScheme, NotificationIndicatorColorsSetLightScheme, NotificationIndicatorColorsWithScheme } from '../../common/src/api/theming';
|
|
17
17
|
export type { AnalyticsEvent } from '../../common/src/utils/usage-register';
|
|
18
18
|
export type { WorkflowIntegration } from '../../client-api/src/shapes/integrations';
|
|
19
19
|
/**
|
|
@@ -1639,8 +1639,8 @@ export interface AnalyticsConfig {
|
|
|
1639
1639
|
*/
|
|
1640
1640
|
sendToOpenFin: boolean;
|
|
1641
1641
|
}
|
|
1642
|
-
export
|
|
1643
|
-
export type Locale =
|
|
1642
|
+
export { SUPPORTED_LANGUAGES } from '@openfin/ui-library';
|
|
1643
|
+
export type Locale = Languages;
|
|
1644
1644
|
/**
|
|
1645
1645
|
* Configuration for initializing a Workspace platform.
|
|
1646
1646
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DefaultTheme } from 'styled-components';
|
|
2
2
|
import type OpenFin from '@openfin/core';
|
|
3
|
-
import
|
|
3
|
+
import { ColorSchemeType, ThemeSet } from '@openfin/ui-library';
|
|
4
4
|
import { ColorSchemeOptionType } from '../../../client-api-platform/src/shapes';
|
|
5
5
|
export type WorkspaceComponentSetSelectedSchemePayload = {
|
|
6
6
|
newScheme: ColorSchemeOptionType;
|
|
@@ -10,10 +10,10 @@ export type ComputedThemes = ComputedTheme[];
|
|
|
10
10
|
export interface ComputedTheme {
|
|
11
11
|
label: string;
|
|
12
12
|
logoUrl?: string;
|
|
13
|
-
theme:
|
|
13
|
+
theme: WorkspaceThemeSet;
|
|
14
14
|
defaultScheme?: ColorSchemeOptionType;
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface WorkspaceThemeSet extends ThemeSet {
|
|
17
17
|
light: ThemeExtension;
|
|
18
18
|
dark: ThemeExtension;
|
|
19
19
|
}
|
|
@@ -74,7 +74,7 @@ export interface CustomThemeOptionsWithScheme extends BaseThemeOptions {
|
|
|
74
74
|
*
|
|
75
75
|
* @default 'dark'
|
|
76
76
|
*/
|
|
77
|
-
default?:
|
|
77
|
+
default?: Omit<ColorSchemeType, 'system'>;
|
|
78
78
|
/**
|
|
79
79
|
* The palette for this theme.
|
|
80
80
|
*
|
|
@@ -6,6 +6,7 @@ declare enum LocalStorageKey {
|
|
|
6
6
|
NewTabPageSort = "NewTabPageSort",
|
|
7
7
|
DockPosition = "DockPosition",
|
|
8
8
|
SelectedColorScheme = "SelectedColorScheme",
|
|
9
|
-
HasMovedStore = "HasMovedStore"
|
|
9
|
+
HasMovedStore = "HasMovedStore",
|
|
10
|
+
PageDragState = "BrowserPageDragState"
|
|
10
11
|
}
|
|
11
12
|
export default LocalStorageKey;
|