@openfin/workspace 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/app-directory.d.ts +1 -1
- package/client-api-platform/src/api/language.d.ts +3 -1
- package/client-api-platform/src/shapes.d.ts +16 -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/common/src/utils/env.d.ts +1 -1
- package/externals.report.json +16 -16
- package/home.js +1 -1
- package/index.js +1 -1
- package/notifications.js +1 -1
- package/package.json +3 -3
- package/store.js +1 -1
- package/common/src/utils/color-linking.d.ts +0 -4
|
@@ -7,7 +7,7 @@ import type { ContentSortRequest, LaunchAppRequest, SearchSitesRequest, SearchSi
|
|
|
7
7
|
* @param app the app directory entry.
|
|
8
8
|
* @param opts launch options.
|
|
9
9
|
*/
|
|
10
|
-
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.
|
|
10
|
+
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.View | OpenFin.Platform | OpenFin.Application>;
|
|
11
11
|
export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
|
|
12
12
|
export declare function getResults(payload: {
|
|
13
13
|
req: SearchSitesRequest;
|
|
@@ -19,5 +19,7 @@ export declare function getCapabilitiesInternal(): PlatformCapabilities;
|
|
|
19
19
|
* initLanguage()
|
|
20
20
|
* @param language - optional - ISO language code. Built-in languages are always accepted.
|
|
21
21
|
* Any language code defined in the external `translation-override.json` is also accepted.
|
|
22
|
+
* @param languagePacksApiUrl - optional i18next-http-backend loadPath. When set,
|
|
23
|
+
* HTTP language packs are used instead of the bundled locale JSON.
|
|
22
24
|
*/
|
|
23
|
-
export default function initLanguage(language?: Locale): Promise<void>;
|
|
25
|
+
export default function initLanguage(language?: Locale, languagePacksApiUrl?: string): Promise<void>;
|
|
@@ -39,6 +39,13 @@ export interface PlatformCapabilities {
|
|
|
39
39
|
* @internal
|
|
40
40
|
*/
|
|
41
41
|
httpLanguagePacks?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* i18next-http-backend loadPath advertised by the provider when HTTP packs
|
|
44
|
+
* were enabled at `WorkspacePlatform.init`. Windows must not read this from
|
|
45
|
+
* the shared manifest — Workspace and Enterprise can share one manifest.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
languagePacksApiUrl?: string;
|
|
42
49
|
}
|
|
43
50
|
/**
|
|
44
51
|
* Request for creating a saved page in persistent storage.
|
|
@@ -2843,6 +2850,10 @@ export interface WorkspacePlatformInitConfig {
|
|
|
2843
2850
|
* external `translation-override.json` (configured via `translationOverridesUrl`) is
|
|
2844
2851
|
* also accepted.
|
|
2845
2852
|
*
|
|
2853
|
+
* When `languagePacksApiUrl` is set, i18next loads packs over HTTP from that
|
|
2854
|
+
* i18next-http-backend `loadPath` (e.g. `${origin}/platform/api/localization/{{lng}}/{{ns}}.json`)
|
|
2855
|
+
* instead of the bundled locale JSON. Omit it to keep the built-in packs.
|
|
2856
|
+
*
|
|
2846
2857
|
* @example
|
|
2847
2858
|
* ```ts
|
|
2848
2859
|
* await WorkspacePlatform.init({
|
|
@@ -2859,6 +2870,11 @@ export interface WorkspacePlatformInitConfig {
|
|
|
2859
2870
|
*/
|
|
2860
2871
|
language?: {
|
|
2861
2872
|
initialLanguage?: Locale;
|
|
2873
|
+
/**
|
|
2874
|
+
* i18next-http-backend loadPath. When provided, HTTP language packs are used
|
|
2875
|
+
* even if the manifest did not inject `languagePacksApiUrl`.
|
|
2876
|
+
*/
|
|
2877
|
+
languagePacksApiUrl?: string;
|
|
2862
2878
|
};
|
|
2863
2879
|
/**
|
|
2864
2880
|
* 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;
|
|
@@ -11,7 +11,7 @@ export declare const isDocumentDefined: boolean;
|
|
|
11
11
|
export declare const isWindowDefinedWithIndexDB: boolean;
|
|
12
12
|
export declare const finUUID: string;
|
|
13
13
|
export declare const finName: string;
|
|
14
|
-
export declare const finEntityType: "" | "
|
|
14
|
+
export declare const finEntityType: "" | "window" | "view";
|
|
15
15
|
export declare const isEnvLocal: boolean;
|
|
16
16
|
export declare const isEnvDev: boolean;
|
|
17
17
|
export declare const isEnvStaging: boolean;
|
package/externals.report.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"@openfin/notifications": [
|
|
3
3
|
{
|
|
4
4
|
"type": "explicit",
|
|
5
|
-
"version": "45.2.0-alpha-
|
|
5
|
+
"version": "45.2.0-alpha-5079",
|
|
6
6
|
"packageName": "client-api/package.json",
|
|
7
7
|
"issuer": "client-api/src/notifications.ts"
|
|
8
8
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"type": "explicit",
|
|
27
27
|
"version": "3.0.3",
|
|
28
28
|
"packageName": "common/package.json",
|
|
29
|
-
"issuer": "common/src/utils/color-
|
|
29
|
+
"issuer": "common/src/utils/color-channels.ts"
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
"lodash.debounce": [
|
|
@@ -67,15 +67,13 @@
|
|
|
67
67
|
"issuer": "common/src/api/i18next.ts"
|
|
68
68
|
}
|
|
69
69
|
],
|
|
70
|
-
"lodash.clonedeep": [
|
|
71
|
-
{
|
|
72
|
-
"type": "explicit",
|
|
73
|
-
"version": "4.5.0",
|
|
74
|
-
"packageName": "common/package.json",
|
|
75
|
-
"issuer": "common/src/utils/layout.ts"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
70
|
"dexie": [
|
|
71
|
+
{
|
|
72
|
+
"type": "root-implicit",
|
|
73
|
+
"version": "^4.0.11",
|
|
74
|
+
"packageName": "dock3/package.json",
|
|
75
|
+
"issuer": "dock3/src/api/idb.ts"
|
|
76
|
+
},
|
|
79
77
|
{
|
|
80
78
|
"type": "explicit",
|
|
81
79
|
"version": "^4.0.11",
|
|
@@ -83,22 +81,24 @@
|
|
|
83
81
|
"issuer": "common/src/api/pages/idb.ts"
|
|
84
82
|
},
|
|
85
83
|
{
|
|
86
|
-
"type": "
|
|
84
|
+
"type": "explicit",
|
|
87
85
|
"version": "^4.0.11",
|
|
88
|
-
"packageName": "
|
|
89
|
-
"issuer": "
|
|
86
|
+
"packageName": "common/package.json",
|
|
87
|
+
"issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
|
|
90
88
|
},
|
|
91
89
|
{
|
|
92
90
|
"type": "explicit",
|
|
93
91
|
"version": "^4.0.11",
|
|
94
92
|
"packageName": "client-api-platform/package.json",
|
|
95
93
|
"issuer": "client-api-platform/src/api/dock/idb.ts"
|
|
96
|
-
}
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"lodash.clonedeep": [
|
|
97
97
|
{
|
|
98
98
|
"type": "explicit",
|
|
99
|
-
"version": "
|
|
99
|
+
"version": "4.5.0",
|
|
100
100
|
"packageName": "common/package.json",
|
|
101
|
-
"issuer": "common/src/utils/
|
|
101
|
+
"issuer": "common/src/utils/layout.ts"
|
|
102
102
|
}
|
|
103
103
|
]
|
|
104
104
|
}
|