@openfin/workspace-platform 45.2.0 → 45.2.1
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/language.d.ts +3 -1
- package/client-api-platform/src/shapes.d.ts +9 -0
- package/common/src/api/i18next.d.ts +4 -1
- package/common/src/utils/color-channels.d.ts +44 -41
- package/common/src/utils/enterpriseBrowser.d.ts +0 -1
- package/externals.report.json +16 -16
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/workspace_platform.zip +0 -0
- package/common/src/utils/color-linking.d.ts +0 -4
|
@@ -10,5 +10,7 @@ export declare function getLanguageResourcesInternal(): {
|
|
|
10
10
|
* initLanguage()
|
|
11
11
|
* @param language - optional - ISO language code. Built-in languages are always accepted.
|
|
12
12
|
* Any language code defined in the external `translation-override.json` is also accepted.
|
|
13
|
+
* @param languagePacksApiUrl - optional i18next-http-backend loadPath. When set,
|
|
14
|
+
* HTTP language packs are used instead of the bundled locale JSON.
|
|
13
15
|
*/
|
|
14
|
-
export default function initLanguage(language?: Locale): Promise<void>;
|
|
16
|
+
export default function initLanguage(language?: Locale, languagePacksApiUrl?: string): Promise<void>;
|
|
@@ -2244,6 +2244,10 @@ export interface WorkspacePlatformInitConfig {
|
|
|
2244
2244
|
* external `translation-override.json` (configured via `translationOverridesUrl`) is
|
|
2245
2245
|
* also accepted.
|
|
2246
2246
|
*
|
|
2247
|
+
* When `languagePacksApiUrl` is set, i18next loads packs over HTTP from that
|
|
2248
|
+
* i18next-http-backend `loadPath` (e.g. `${origin}/platform/api/localization/{{lng}}/{{ns}}.json`)
|
|
2249
|
+
* instead of the bundled locale JSON. Omit it to keep the built-in packs.
|
|
2250
|
+
*
|
|
2247
2251
|
* @example
|
|
2248
2252
|
* ```ts
|
|
2249
2253
|
* await WorkspacePlatform.init({
|
|
@@ -2260,6 +2264,11 @@ export interface WorkspacePlatformInitConfig {
|
|
|
2260
2264
|
*/
|
|
2261
2265
|
language?: {
|
|
2262
2266
|
initialLanguage?: Locale;
|
|
2267
|
+
/**
|
|
2268
|
+
* i18next-http-backend loadPath. When provided, HTTP language packs are used
|
|
2269
|
+
* even if the manifest did not inject `languagePacksApiUrl`.
|
|
2270
|
+
*/
|
|
2271
|
+
languagePacksApiUrl?: string;
|
|
2263
2272
|
};
|
|
2264
2273
|
/**
|
|
2265
2274
|
* Override workspace platform behavior
|
|
@@ -12,7 +12,10 @@ export declare const getHttpBackendOptions: (loadPath: string) => {
|
|
|
12
12
|
* Fire-and-forget: first paint and the logo menu must not wait on this GET.
|
|
13
13
|
*/
|
|
14
14
|
export declare const overlayEnglishFromHttpBackend: () => void;
|
|
15
|
-
|
|
15
|
+
export type InitI18nextOptions = {
|
|
16
|
+
languagePacksApiUrl?: string;
|
|
17
|
+
};
|
|
18
|
+
declare function initI18next(language?: Locale, options?: InitI18nextOptions): Promise<void>;
|
|
16
19
|
export declare const setLanguageInI18next: (locale: Locale) => Promise<void>;
|
|
17
20
|
declare const t: import("i18next").TFunction<["translation", ...string[]], undefined>;
|
|
18
21
|
export { initI18next, i18next, t, type Resource };
|
|
@@ -1,44 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
* Kept in a standalone module with type-only imports so consumers can pull it in
|
|
3
|
-
* via the `@openfin/enterprise-api/color-channels` subpath without bundling the SDK.
|
|
4
|
-
*
|
|
5
|
-
* TODO: https://openfin.jira.com/browse/WRK-5704 - need to rewrite this to use color tokens
|
|
6
|
-
*/
|
|
1
|
+
import type OpenFin from '@openfin/core';
|
|
7
2
|
export declare const ENTERPRISE_COLOR_CHANNELS: {
|
|
8
|
-
readonly
|
|
9
|
-
readonly name: "
|
|
10
|
-
readonly color: "
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
readonly
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
readonly
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
};
|
|
28
|
-
readonly
|
|
29
|
-
readonly name: "
|
|
30
|
-
readonly color: "
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
readonly
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
readonly
|
|
42
|
-
|
|
3
|
+
readonly 'fdc3.channel.1': {
|
|
4
|
+
readonly name: "Channel 1";
|
|
5
|
+
readonly color: "red";
|
|
6
|
+
readonly glyph: "1";
|
|
7
|
+
};
|
|
8
|
+
readonly 'fdc3.channel.2': {
|
|
9
|
+
readonly name: "Channel 2";
|
|
10
|
+
readonly color: "orange";
|
|
11
|
+
readonly glyph: "2";
|
|
12
|
+
};
|
|
13
|
+
readonly 'fdc3.channel.3': {
|
|
14
|
+
readonly name: "Channel 3";
|
|
15
|
+
readonly color: "yellow";
|
|
16
|
+
readonly glyph: "3";
|
|
17
|
+
};
|
|
18
|
+
readonly 'fdc3.channel.4': {
|
|
19
|
+
readonly name: "Channel 4";
|
|
20
|
+
readonly color: "green";
|
|
21
|
+
readonly glyph: "4";
|
|
22
|
+
};
|
|
23
|
+
readonly 'fdc3.channel.5': {
|
|
24
|
+
readonly name: "Channel 5";
|
|
25
|
+
readonly color: "cyan";
|
|
26
|
+
readonly glyph: "5";
|
|
27
|
+
};
|
|
28
|
+
readonly 'fdc3.channel.6': {
|
|
29
|
+
readonly name: "Channel 6";
|
|
30
|
+
readonly color: "blue";
|
|
31
|
+
readonly glyph: "6";
|
|
32
|
+
};
|
|
33
|
+
readonly 'fdc3.channel.7': {
|
|
34
|
+
readonly name: "Channel 7";
|
|
35
|
+
readonly color: "magenta";
|
|
36
|
+
readonly glyph: "7";
|
|
37
|
+
};
|
|
38
|
+
readonly 'fdc3.channel.8': {
|
|
39
|
+
readonly name: "Channel 8";
|
|
40
|
+
readonly color: "purple";
|
|
41
|
+
readonly glyph: "8";
|
|
43
42
|
};
|
|
44
43
|
};
|
|
44
|
+
export declare const normalizeColorChannelId: (colorChannelId: string) => string | undefined;
|
|
45
|
+
export declare const areColorChannelIdsEqual: (firstColorChannelId: string, secondColorChannelId: string) => boolean;
|
|
46
|
+
export declare const getContextGroupDisplayName: (contextGroup: OpenFin.ContextGroupInfo) => string;
|
|
47
|
+
export declare const getContextGroupCssColor: (contextGroup: OpenFin.ContextGroupInfo) => string;
|
|
@@ -9,7 +9,6 @@ export declare const isEnterpriseBrowserPlatform: (browserInitOptions: BrowserIn
|
|
|
9
9
|
export declare function formatUrl(url: string): string;
|
|
10
10
|
export declare const getIsEnterpriseBrowser: (id?: OpenFin.Identity) => Promise<boolean>;
|
|
11
11
|
export declare const isLandingPage: (url: string) => boolean;
|
|
12
|
-
export declare const isLandingPageOrEmpty: (url: string) => boolean;
|
|
13
12
|
export declare const isDefaultEnterpriseView: (viewIdentity: OpenFin.Identity) => boolean;
|
|
14
13
|
export declare const getAICompanionViewIdentity: (browserIdentity?: OpenFin.Identity) => {
|
|
15
14
|
uuid: string;
|
package/externals.report.json
CHANGED
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
"issuer": "common/src/utils/layout.ts"
|
|
14
14
|
}
|
|
15
15
|
],
|
|
16
|
+
"lodash.clonedeep": [
|
|
17
|
+
{
|
|
18
|
+
"type": "explicit",
|
|
19
|
+
"version": "4.5.0",
|
|
20
|
+
"packageName": "common/package.json",
|
|
21
|
+
"issuer": "common/src/utils/layout.ts"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
16
24
|
"react-i18next": [
|
|
17
25
|
{
|
|
18
26
|
"type": "explicit",
|
|
@@ -37,22 +45,6 @@
|
|
|
37
45
|
"issuer": "common/src/api/i18next.ts"
|
|
38
46
|
}
|
|
39
47
|
],
|
|
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
|
-
"title-case": [
|
|
49
|
-
{
|
|
50
|
-
"type": "explicit",
|
|
51
|
-
"version": "3.0.3",
|
|
52
|
-
"packageName": "common/package.json",
|
|
53
|
-
"issuer": "common/src/utils/color-linking.ts"
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
48
|
"dexie": [
|
|
57
49
|
{
|
|
58
50
|
"type": "explicit",
|
|
@@ -78,5 +70,13 @@
|
|
|
78
70
|
"packageName": "common/package.json",
|
|
79
71
|
"issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
|
|
80
72
|
}
|
|
73
|
+
],
|
|
74
|
+
"title-case": [
|
|
75
|
+
{
|
|
76
|
+
"type": "explicit",
|
|
77
|
+
"version": "3.0.3",
|
|
78
|
+
"packageName": "common/package.json",
|
|
79
|
+
"issuer": "common/src/utils/color-channels.ts"
|
|
80
|
+
}
|
|
81
81
|
]
|
|
82
82
|
}
|