@openfin/workspace 45.1.19 → 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 +5 -4
- package/client-api-platform/src/api/language.d.ts +3 -1
- package/client-api-platform/src/init/override-callback/view-components.d.ts +1 -0
- package/client-api-platform/src/init/override-callback/view-defaults.d.ts +2 -1
- package/client-api-platform/src/shapes.d.ts +71 -12
- package/common/src/api/flags/index.d.ts +37 -0
- package/common/src/api/i18next-bundled-resources.d.ts +7 -0
- package/common/src/api/i18next.d.ts +16 -1
- package/common/src/api/overrides.d.ts +10 -0
- package/common/src/api/pages/shapes.d.ts +0 -2
- package/common/src/utils/color-channels.d.ts +47 -0
- package/common/src/utils/enabled-locales.d.ts +5 -0
- package/common/src/utils/enterpriseBrowser.d.ts +0 -1
- package/common/src/utils/env.d.ts +1 -1
- package/common/src/utils/global-context-menu.d.ts +12 -0
- package/common/src/utils/landing-page.d.ts +8 -3
- package/common/src/utils/layout.d.ts +2 -2
- package/common/src/utils/local-storage-key.d.ts +1 -0
- package/common/src/utils/popup-window.d.ts +0 -3
- package/externals.report.json +19 -11
- package/home.js +1 -1
- package/home.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/notifications.js +1 -1
- package/notifications.js.map +1 -1
- package/package.json +7 -6
- package/store.js +1 -1
- package/store.js.map +1 -1
- package/common/src/utils/color-linking.d.ts +0 -41
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
2
|
import { App } from '../../../client-api/src/shapes';
|
|
3
3
|
import { SearchProvider } from '../../../client-api-platform/src/shapes';
|
|
4
|
-
import type { LaunchAppRequest, SearchSitesRequest, SearchSitesResponse, Site } from '../shapes';
|
|
4
|
+
import type { ContentSortRequest, LaunchAppRequest, SearchSitesRequest, SearchSitesResponse, Site } from '../shapes';
|
|
5
5
|
/**
|
|
6
6
|
* Launch the app described by an App Directory entry.
|
|
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,7 +19,8 @@ export declare function getSearchProviders(payload: {
|
|
|
19
19
|
}): Promise<SearchProvider[]>;
|
|
20
20
|
export declare function getCuratedContent(payload: {
|
|
21
21
|
identity: OpenFin.Identity;
|
|
22
|
+
req?: ContentSortRequest;
|
|
22
23
|
}): Promise<Site[]>;
|
|
23
|
-
export declare function getRecentlyVisited(payload: {
|
|
24
|
-
identity
|
|
24
|
+
export declare function getRecentlyVisited(payload: ContentSortRequest & {
|
|
25
|
+
identity?: OpenFin.Identity;
|
|
25
26
|
}): Promise<App[]>;
|
|
@@ -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>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
+
import type { BrowserCreateViewRequest } from '../../../../client-api-platform/src/shapes';
|
|
2
3
|
type DefaultViewOptions = Partial<OpenFin.MutableViewOptions> & {
|
|
3
4
|
downloadShelf?: OpenFin.ConstWindowOptions['downloadShelf'];
|
|
4
5
|
hotkeys?: OpenFin.ViewOptions['hotkeys'];
|
|
5
6
|
};
|
|
6
7
|
export declare const DEFAULT_VIEW_OPTIONS: DefaultViewOptions;
|
|
7
|
-
export declare function applyViewDefaults(options: Partial<
|
|
8
|
+
export declare function applyViewDefaults(options: Partial<BrowserCreateViewRequest>, initViewOptions?: Partial<BrowserCreateViewRequest>): Promise<any>;
|
|
8
9
|
export {};
|
|
@@ -33,6 +33,19 @@ export interface PlatformCapabilities {
|
|
|
33
33
|
dock?: boolean;
|
|
34
34
|
notifications?: boolean;
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* When true, co-bundled windows load locale JSON via i18next-http-backend
|
|
38
|
+
* instead of the `_getLanguageResources` IPC bulk transfer.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
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;
|
|
36
49
|
}
|
|
37
50
|
/**
|
|
38
51
|
* Request for creating a saved page in persistent storage.
|
|
@@ -200,7 +213,8 @@ export declare enum EnterpriseMainContextMenuOptionType {
|
|
|
200
213
|
ManageDesktopSignals = "ManageDesktopSignals",// Enterprise
|
|
201
214
|
FindInPage = "FindInPage",// Enterprise
|
|
202
215
|
Print = "Print",
|
|
203
|
-
Pin = "Pin"
|
|
216
|
+
Pin = "Pin",
|
|
217
|
+
SetLanguage = "SetLanguage"
|
|
204
218
|
}
|
|
205
219
|
/** @internal */
|
|
206
220
|
export declare enum BookmarkItemContextMenuOptionType {
|
|
@@ -216,6 +230,7 @@ export interface GlobalContextMenuItemData extends ContextMenuItemData {
|
|
|
216
230
|
export interface EnterpriseMainContextMenuItemData extends ContextMenuItemData {
|
|
217
231
|
type: GlobalContextMenuOptionType | EnterpriseMainContextMenuOptionType | ViewTabMenuOptionType;
|
|
218
232
|
option?: string;
|
|
233
|
+
locale?: string;
|
|
219
234
|
}
|
|
220
235
|
export interface AddToChanel extends GlobalContextMenuItemData {
|
|
221
236
|
workspaceId: string;
|
|
@@ -724,13 +739,23 @@ export interface BrowserWorkspacePlatformWindowOptions {
|
|
|
724
739
|
*/
|
|
725
740
|
title?: WindowTitle | string;
|
|
726
741
|
/**
|
|
727
|
-
*
|
|
728
|
-
*
|
|
742
|
+
* URL used for new-tab actions: the plus button in the tabstrip, the new-tab hotkey, and the
|
|
743
|
+
* "New tab" context menu entry.
|
|
744
|
+
*
|
|
745
|
+
* If you do not provide a newTabUrl, then the plus button in the tabstrip will not be shown and
|
|
746
|
+
* users cannot create a new empty tab.
|
|
747
|
+
*
|
|
748
|
+
* This does not control a newly created window's initial content; that comes from `pages`.
|
|
729
749
|
*/
|
|
730
750
|
newTabUrl?: string;
|
|
731
751
|
/**
|
|
732
|
-
*
|
|
733
|
-
*
|
|
752
|
+
* URL used for new-page and new-window actions.
|
|
753
|
+
*
|
|
754
|
+
* If you do not provide a newPageUrl, then the new Page plus button will not be shown and you
|
|
755
|
+
* cannot create a new empty Page or Window.
|
|
756
|
+
*
|
|
757
|
+
* This does not automatically control a newly created window's initial content; a caller of
|
|
758
|
+
* `Browser.createWindow` must include a page using this URL in `pages`.
|
|
734
759
|
*/
|
|
735
760
|
newPageUrl?: string;
|
|
736
761
|
toolbarOptions?: ToolbarOptions;
|
|
@@ -1266,10 +1291,8 @@ export interface BrowserWindowModule {
|
|
|
1266
1291
|
* ```ts
|
|
1267
1292
|
*
|
|
1268
1293
|
* const newPage = await makeNewLandingPage();
|
|
1269
|
-
* const { newPageUrl } = await getLandingPageUrls();
|
|
1270
1294
|
* const browser = getCurrentSync().Browser.wrapSync(currentOFIdentity);
|
|
1271
|
-
*
|
|
1272
|
-
* await browser._addDefaultPage({ identity: currentOFIdentity, page: newPage, newPageUrl: actualNewPageUrl });
|
|
1295
|
+
* await browser._addDefaultPage({ identity: currentOFIdentity, page: newPage });
|
|
1273
1296
|
* ```
|
|
1274
1297
|
* @param req the default page request object
|
|
1275
1298
|
* @internal
|
|
@@ -1282,13 +1305,13 @@ export interface BrowserWindowModule {
|
|
|
1282
1305
|
/** @internal */
|
|
1283
1306
|
_trackVisitedSite(req: any): Promise<void>;
|
|
1284
1307
|
/** @internal */
|
|
1285
|
-
_getRecentlyVisitedSites(req?:
|
|
1308
|
+
_getRecentlyVisitedSites(req?: ContentSortRequest): Promise<any[]>;
|
|
1286
1309
|
/** @internal */
|
|
1287
1310
|
_getFrequentlyVisitedSites(req?: any): Promise<any[]>;
|
|
1288
1311
|
/** @internal */
|
|
1289
1312
|
_searchSites(req: SearchSitesRequest): Promise<SearchSitesResponse>;
|
|
1290
1313
|
/** @internal */
|
|
1291
|
-
_getCuratedContent(req?:
|
|
1314
|
+
_getCuratedContent(req?: ContentSortRequest): Promise<Site[]>;
|
|
1292
1315
|
/** @internal */
|
|
1293
1316
|
_handleRequestNavigation(args: NavigationRequest): Promise<void>;
|
|
1294
1317
|
/** @internal */
|
|
@@ -1339,6 +1362,7 @@ export type NavigationRequest = {
|
|
|
1339
1362
|
action: 'result-selected';
|
|
1340
1363
|
trigger?: SiteAction;
|
|
1341
1364
|
site: Site;
|
|
1365
|
+
openMode?: 'replace' | 'new-tab' | 'new-window';
|
|
1342
1366
|
} | (SearchSitesRequest & {
|
|
1343
1367
|
action: 'search-input';
|
|
1344
1368
|
}));
|
|
@@ -1450,6 +1474,13 @@ export type CollectionSite = SiteInfo & {
|
|
|
1450
1474
|
* @internal
|
|
1451
1475
|
*/
|
|
1452
1476
|
export type Site = AppSite | WorkspaceSite;
|
|
1477
|
+
/**
|
|
1478
|
+
* @internal
|
|
1479
|
+
*/
|
|
1480
|
+
export type ContentSortRequest = {
|
|
1481
|
+
sortBy?: 'title' | 'timestamp' | 'createdAt';
|
|
1482
|
+
sortOrder?: 'asc' | 'desc';
|
|
1483
|
+
};
|
|
1453
1484
|
/**
|
|
1454
1485
|
* @internal
|
|
1455
1486
|
* action is undefined when the site is actioned with the default action.
|
|
@@ -2819,6 +2850,10 @@ export interface WorkspacePlatformInitConfig {
|
|
|
2819
2850
|
* external `translation-override.json` (configured via `translationOverridesUrl`) is
|
|
2820
2851
|
* also accepted.
|
|
2821
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
|
+
*
|
|
2822
2857
|
* @example
|
|
2823
2858
|
* ```ts
|
|
2824
2859
|
* await WorkspacePlatform.init({
|
|
@@ -2835,6 +2870,11 @@ export interface WorkspacePlatformInitConfig {
|
|
|
2835
2870
|
*/
|
|
2836
2871
|
language?: {
|
|
2837
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;
|
|
2838
2878
|
};
|
|
2839
2879
|
/**
|
|
2840
2880
|
* Override workspace platform behavior
|
|
@@ -3090,9 +3130,28 @@ export interface BrowserInitConfig {
|
|
|
3090
3130
|
/** Default options when creating a new page. If `iconUrl`, `unsavedIconUrl`, `panels` or `closeButton` are not defined when creating a page, setting will default to `defaultPageOptions`. */
|
|
3091
3131
|
defaultPageOptions?: Pick<Page, 'iconUrl' | 'unsavedIconUrl' | 'closeButton' | 'panels'>;
|
|
3092
3132
|
/**
|
|
3093
|
-
* The default options when creating a new
|
|
3133
|
+
* The default options when creating a new view. Any option not included in WorkspacePlatform.getCurrentSync().Browser.createView(options) call will default to the value provided in this field.
|
|
3134
|
+
*
|
|
3135
|
+
* @example
|
|
3136
|
+
* ```ts
|
|
3137
|
+
* import * as WorkspacePlatform from '@openfin/workspace-platform';
|
|
3138
|
+
*
|
|
3139
|
+
* await WorkspacePlatform.init({
|
|
3140
|
+
* browser: {
|
|
3141
|
+
* defaultViewOptions: {
|
|
3142
|
+
* workspacePlatform: {
|
|
3143
|
+
* browserNavigationButtons: {
|
|
3144
|
+
* back: true,
|
|
3145
|
+
* forward: true,
|
|
3146
|
+
* reload: true
|
|
3147
|
+
* }
|
|
3148
|
+
* }
|
|
3149
|
+
* }
|
|
3150
|
+
* }
|
|
3151
|
+
* });
|
|
3152
|
+
* ```
|
|
3094
3153
|
*/
|
|
3095
|
-
defaultViewOptions?: Partial<
|
|
3154
|
+
defaultViewOptions?: Partial<BrowserCreateViewRequest>;
|
|
3096
3155
|
/**
|
|
3097
3156
|
* The platform title. UI friendly title for the platform in browser.
|
|
3098
3157
|
*/
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare enum Flag {
|
|
2
|
+
WorkspaceStorefrontEnabled = "WorkspaceStorefrontEnabled",
|
|
3
|
+
SentryEnabled = "SentryEnabled",
|
|
4
|
+
WorkspaceDockEnabled = "WorkspaceDockEnabled",
|
|
5
|
+
WorkspaceHomeEnabled = "WorkspaceHomeEnabled",
|
|
6
|
+
DevDebug = "DevDebug",
|
|
7
|
+
HttpLanguagePacksEnabled = "HttpLanguagePacksEnabled"
|
|
8
|
+
}
|
|
9
|
+
export type WorkspaceFlags = Record<Flag, boolean>;
|
|
10
|
+
export declare const flags: Partial<WorkspaceFlags>;
|
|
11
|
+
/**
|
|
12
|
+
* Initialize flags from overrides. This should be called early in the application lifecycle.
|
|
13
|
+
* This is a no-op if flags have already been initialized.
|
|
14
|
+
*/
|
|
15
|
+
export declare const initializeFlags: () => Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Flag Interface --
|
|
18
|
+
*
|
|
19
|
+
* @example Enabled / Disabled Closures
|
|
20
|
+
* flag(
|
|
21
|
+
* 'feature',
|
|
22
|
+
* () => 'Enabled Feature',
|
|
23
|
+
* () => 'Disabled Feature'
|
|
24
|
+
* );
|
|
25
|
+
*
|
|
26
|
+
* @example Enabled only
|
|
27
|
+
* flag('feature', myFeatureFunc);
|
|
28
|
+
*
|
|
29
|
+
* @example Boolean
|
|
30
|
+
* flag('feature');
|
|
31
|
+
*/
|
|
32
|
+
export declare function flag<EnabledReturn, DisabledReturn>(flagName: Flag, cbEnabled?: () => EnabledReturn, cbDisabled?: () => DisabledReturn): EnabledReturn | DisabledReturn | boolean;
|
|
33
|
+
declare global {
|
|
34
|
+
interface Window {
|
|
35
|
+
__WORKSPACE_FLAGS__: typeof flags;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type Resource } from 'i18next';
|
|
2
|
+
/**
|
|
3
|
+
* All seven statically bundled locale dictionaries. Loaded only on the flag-off
|
|
4
|
+
* (legacy) path so the http regime does not pull non-English packs into the
|
|
5
|
+
* main common chunk.
|
|
6
|
+
*/
|
|
7
|
+
export declare const bundledResources: Resource;
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import i18next, { type Resource } from 'i18next';
|
|
2
2
|
import { Locale } from '../../../client-api-platform/src/shapes';
|
|
3
|
-
|
|
3
|
+
export type LanguagePacksRegime = 'http' | 'legacy';
|
|
4
|
+
export declare const HTTP_BACKEND_REQUEST_OPTIONS: RequestInit;
|
|
5
|
+
export declare const resolveLanguagePacksRegime: (httpFlagEnabled: boolean, languagePacksApiUrl?: string) => LanguagePacksRegime;
|
|
6
|
+
export declare const getHttpBackendOptions: (loadPath: string) => {
|
|
7
|
+
loadPath: string;
|
|
8
|
+
requestOptions: RequestInit;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Overlay OFD's canonical en-US pack on the bootstrap stub.
|
|
12
|
+
* Fire-and-forget: first paint and the logo menu must not wait on this GET.
|
|
13
|
+
*/
|
|
14
|
+
export declare const overlayEnglishFromHttpBackend: () => void;
|
|
15
|
+
export type InitI18nextOptions = {
|
|
16
|
+
languagePacksApiUrl?: string;
|
|
17
|
+
};
|
|
18
|
+
declare function initI18next(language?: Locale, options?: InitI18nextOptions): Promise<void>;
|
|
4
19
|
export declare const setLanguageInI18next: (locale: Locale) => Promise<void>;
|
|
5
20
|
declare const t: import("i18next").TFunction<["translation", ...string[]], undefined>;
|
|
6
21
|
export { initI18next, i18next, t, type Resource };
|
|
@@ -16,6 +16,16 @@ export interface Overrides {
|
|
|
16
16
|
disableOpenFinAnalytics: boolean;
|
|
17
17
|
analyticsEndpoint: string;
|
|
18
18
|
translationOverridesUrl: string;
|
|
19
|
+
/**
|
|
20
|
+
* i18next-http-backend loadPath injected when org `languagePacks.enabled` is on
|
|
21
|
+
* (e.g. `${base}/platform/api/localization/{{lng}}/{{ns}}.json`).
|
|
22
|
+
*/
|
|
23
|
+
languagePacksApiUrl: string;
|
|
24
|
+
/**
|
|
25
|
+
* BCP-47 tags shown in the Language submenu. This is the org Active set
|
|
26
|
+
* (HERE defaults and/or admin-uploaded packs), not only bundled client languages.
|
|
27
|
+
*/
|
|
28
|
+
activeLanguages: string[];
|
|
19
29
|
/**
|
|
20
30
|
* WRK-4846
|
|
21
31
|
* This property is internal but is being temporarily exposed for Wells Fargo.
|
|
@@ -272,8 +272,6 @@ export type AddDefaultPagePayload = {
|
|
|
272
272
|
identity: OpenFin.Identity;
|
|
273
273
|
/** The page to attach. */
|
|
274
274
|
page: PageWithUpdatableRuntimeAttribs;
|
|
275
|
-
/** The newPageUrl provided. */
|
|
276
|
-
newPageUrl: string;
|
|
277
275
|
};
|
|
278
276
|
export type AddPagePayload = {
|
|
279
277
|
/** The OF window identity to attach the pages to. */
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type OpenFin from '@openfin/core';
|
|
2
|
+
export declare const ENTERPRISE_COLOR_CHANNELS: {
|
|
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";
|
|
42
|
+
};
|
|
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;
|
|
@@ -100,6 +100,9 @@ export declare const downloads: () => {
|
|
|
100
100
|
export declare const appearance: () => {
|
|
101
101
|
label: string;
|
|
102
102
|
};
|
|
103
|
+
export declare const language: () => {
|
|
104
|
+
label: string;
|
|
105
|
+
};
|
|
103
106
|
export declare const getSavedWorkspaceContextMenuOptions: (activeWorkspace: Workspace, savedWorkspaces: Pick<Workspace, "workspaceId" | "title">[], contextMenuOptionType: GlobalContextMenuOptionType) => {
|
|
104
107
|
label: string;
|
|
105
108
|
type: MenuItemType;
|
|
@@ -119,4 +122,13 @@ export declare const getAppearanceContextMenuOptions: () => Promise<{
|
|
|
119
122
|
scheme: WP.ColorSchemeOptionType;
|
|
120
123
|
};
|
|
121
124
|
}[]>;
|
|
125
|
+
export declare const getLanguageContextMenuOptions: () => Promise<{
|
|
126
|
+
label: string;
|
|
127
|
+
type: MenuItemType;
|
|
128
|
+
checked: boolean;
|
|
129
|
+
data: {
|
|
130
|
+
type: WP.EnterpriseMainContextMenuOptionType;
|
|
131
|
+
locale: string;
|
|
132
|
+
};
|
|
133
|
+
}[]>;
|
|
122
134
|
export declare const getGlobalContextMenuTemplate: (winIdentity: OpenFin.Identity, selectedViews?: OpenFin.Identity[]) => Promise<GlobalContextMenuItemTemplate[]>;
|
|
@@ -3,14 +3,19 @@ interface LandingPageUrls {
|
|
|
3
3
|
newPageUrl: string | false;
|
|
4
4
|
newTabUrl: string | false;
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* Which window option supplies the landing URL: `newTabUrl` for a new tab, `newPageUrl` for a new
|
|
8
|
+
* page or window. Enterprise Browser presents pages as tabs, so both go through page creation.
|
|
9
|
+
*/
|
|
10
|
+
export type NewLandingPageUrlSource = 'newTab' | 'newPage';
|
|
6
11
|
export declare const getLandingPageUrls: (winIdentity?: OpenFin.Identity) => Promise<LandingPageUrls>;
|
|
7
12
|
export declare const checkHasNewTabUrl: () => Promise<boolean>;
|
|
8
13
|
export declare const getNewLandingTabViewOptions: (target: OpenFin.Identity) => Promise<OpenFin.PlatformViewCreationOptions>;
|
|
9
14
|
/**
|
|
10
15
|
* Makes a new landing page.
|
|
11
16
|
*
|
|
12
|
-
* If winIdentity is specified, it uses the
|
|
13
|
-
* Otherwise, if the platform is Enterprise, it will use the landing page URL.
|
|
17
|
+
* If winIdentity is specified, it uses the URL defined by the browser window options for the given
|
|
18
|
+
* `urlSource`. Otherwise, if the platform is Enterprise, it will use the landing page URL.
|
|
14
19
|
*/
|
|
15
|
-
export declare const makeNewLandingPage: (winIdentity?: OpenFin.Identity) => Promise<import("@client-platform/index").PageWithUpdatableRuntimeAttribs>;
|
|
20
|
+
export declare const makeNewLandingPage: (winIdentity?: OpenFin.Identity, urlSource?: NewLandingPageUrlSource) => Promise<import("@client-platform/index").PageWithUpdatableRuntimeAttribs>;
|
|
16
21
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
2
|
import { WindowIdentity } from '../../../common/src/utils/window';
|
|
3
3
|
import type { PagePinnedState } from '../../../common/src/api/pages/shapes';
|
|
4
|
-
import { AttachedPage, PageLayout } from '../../../client-api-platform/src/shapes';
|
|
4
|
+
import { AttachedPage, BrowserCreateViewRequest, PageLayout } from '../../../client-api-platform/src/shapes';
|
|
5
5
|
export type LayoutDOMEventType =
|
|
6
6
|
/**
|
|
7
7
|
* Fired when a tab is created in a container. (Emmitted by ??)
|
|
@@ -90,7 +90,7 @@ export declare const generateViewNameAndIdentifierNameIfNotExists: <T extends {
|
|
|
90
90
|
* @param layout The Layout to be cloned
|
|
91
91
|
* @returns A Promise resolving to a copy of the layout with view options converted
|
|
92
92
|
*/
|
|
93
|
-
export declare const cloneLayoutAndConvertViewOptions: (layout: PageLayout, initViewOptions?: Partial<
|
|
93
|
+
export declare const cloneLayoutAndConvertViewOptions: (layout: PageLayout, initViewOptions?: Partial<BrowserCreateViewRequest>) => Promise<PageLayout>;
|
|
94
94
|
export declare const cloneViewComponentWithoutName: (componentState: any) => any;
|
|
95
95
|
/**
|
|
96
96
|
* Deep clones a layout and removes generated view names.
|
|
@@ -6,6 +6,7 @@ declare enum LocalStorageKey {
|
|
|
6
6
|
NewTabPageSort = "NewTabPageSort",
|
|
7
7
|
DockPosition = "DockPosition",
|
|
8
8
|
SelectedColorScheme = "SelectedColorScheme",
|
|
9
|
+
SelectedLanguage = "SelectedLanguage",
|
|
9
10
|
ThemePaletteSheet = "ThemePaletteSheet",
|
|
10
11
|
HasMovedStore = "HasMovedStore",
|
|
11
12
|
PageDragState = "BrowserPageDragState",
|
|
@@ -171,8 +171,5 @@ export type SearchMenuChannelResponse = {
|
|
|
171
171
|
} | {
|
|
172
172
|
type: 'single-provider-results-announcement';
|
|
173
173
|
message: string;
|
|
174
|
-
} | {
|
|
175
|
-
/** Landing page was clicked. Chrome collapses search if view-focused never arrived. */
|
|
176
|
-
type: 'page-clicked';
|
|
177
174
|
};
|
|
178
175
|
export {};
|
package/externals.report.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"@openfin/notifications": [
|
|
3
3
|
{
|
|
4
4
|
"type": "explicit",
|
|
5
|
-
"version": "45.
|
|
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": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"react-i18next": [
|
|
47
47
|
{
|
|
48
48
|
"type": "explicit",
|
|
49
|
-
"version": "
|
|
49
|
+
"version": "^17.0.11",
|
|
50
50
|
"packageName": "common/package.json",
|
|
51
51
|
"issuer": "common/src/api/i18next.ts"
|
|
52
52
|
}
|
|
@@ -54,17 +54,17 @@
|
|
|
54
54
|
"i18next": [
|
|
55
55
|
{
|
|
56
56
|
"type": "explicit",
|
|
57
|
-
"version": "^
|
|
57
|
+
"version": "^26.3.6",
|
|
58
58
|
"packageName": "common/package.json",
|
|
59
59
|
"issuer": "common/src/api/i18next.ts"
|
|
60
60
|
}
|
|
61
61
|
],
|
|
62
|
-
"
|
|
62
|
+
"i18next-http-backend": [
|
|
63
63
|
{
|
|
64
64
|
"type": "explicit",
|
|
65
|
-
"version": "4.
|
|
65
|
+
"version": "^4.0.0",
|
|
66
66
|
"packageName": "common/package.json",
|
|
67
|
-
"issuer": "common/src/
|
|
67
|
+
"issuer": "common/src/api/i18next.ts"
|
|
68
68
|
}
|
|
69
69
|
],
|
|
70
70
|
"dexie": [
|
|
@@ -77,20 +77,28 @@
|
|
|
77
77
|
{
|
|
78
78
|
"type": "explicit",
|
|
79
79
|
"version": "^4.0.11",
|
|
80
|
-
"packageName": "
|
|
81
|
-
"issuer": "
|
|
80
|
+
"packageName": "common/package.json",
|
|
81
|
+
"issuer": "common/src/api/pages/idb.ts"
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
"type": "explicit",
|
|
85
85
|
"version": "^4.0.11",
|
|
86
86
|
"packageName": "common/package.json",
|
|
87
|
-
"issuer": "common/src/
|
|
87
|
+
"issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"type": "explicit",
|
|
91
91
|
"version": "^4.0.11",
|
|
92
|
+
"packageName": "client-api-platform/package.json",
|
|
93
|
+
"issuer": "client-api-platform/src/api/dock/idb.ts"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"lodash.clonedeep": [
|
|
97
|
+
{
|
|
98
|
+
"type": "explicit",
|
|
99
|
+
"version": "4.5.0",
|
|
92
100
|
"packageName": "common/package.json",
|
|
93
|
-
"issuer": "common/src/utils/
|
|
101
|
+
"issuer": "common/src/utils/layout.ts"
|
|
94
102
|
}
|
|
95
103
|
]
|
|
96
104
|
}
|