@openfin/workspace-platform 17.2.8 → 17.2.10
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.
|
@@ -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
|
/**
|
|
@@ -1548,6 +1548,16 @@ export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
|
|
|
1548
1548
|
* the original page will remain after 'Save As' is performed.
|
|
1549
1549
|
*/
|
|
1550
1550
|
copyPage(payload: CopyPagePayload): Promise<Page>;
|
|
1551
|
+
/**
|
|
1552
|
+
* Implementation for getting current selected language
|
|
1553
|
+
* @returns language in ISO language code
|
|
1554
|
+
*/
|
|
1555
|
+
getLanguage(): Promise<Locale>;
|
|
1556
|
+
/**
|
|
1557
|
+
* Implementation for setting a language
|
|
1558
|
+
* @param locale in ISO language code format
|
|
1559
|
+
*/
|
|
1560
|
+
setLanguage(locale: Locale): Promise<void>;
|
|
1551
1561
|
}
|
|
1552
1562
|
/**
|
|
1553
1563
|
* The origins from which a custom action can be invoked
|
|
@@ -1639,8 +1649,8 @@ export interface AnalyticsConfig {
|
|
|
1639
1649
|
*/
|
|
1640
1650
|
sendToOpenFin: boolean;
|
|
1641
1651
|
}
|
|
1642
|
-
export
|
|
1643
|
-
export type Locale =
|
|
1652
|
+
export { SUPPORTED_LANGUAGES } from '@openfin/ui-library';
|
|
1653
|
+
export type Locale = Languages;
|
|
1644
1654
|
/**
|
|
1645
1655
|
* Configuration for initializing a Workspace platform.
|
|
1646
1656
|
*/
|
|
@@ -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
|
*
|