@openfin/workspace 45.5.1 → 45.5.3
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/init/override-callback/dialogs.d.ts +1 -0
- package/client-api-platform/src/shapes.d.ts +3 -0
- package/common/src/api/protocol/browser.d.ts +11 -1
- package/common/src/api/protocol/shapes/connectors.d.ts +28 -0
- package/common/src/utils/enterprise-channels.d.ts +3 -0
- package/common/src/utils/global-context-menu.d.ts +7 -0
- package/common/src/utils/manage-connectors-modal.d.ts +21 -0
- package/common/src/utils/route.d.ts +2 -0
- package/common/src/utils/usage-register.d.ts +3 -1
- package/common/src/utils/window.d.ts +1 -0
- package/common/src/utils/workspace-modals.d.ts +6 -0
- package/externals.report.json +15 -15
- 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 +3 -3
- package/store.js +1 -1
- package/store.js.map +1 -1
|
@@ -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.
|
|
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;
|
|
@@ -4,3 +4,4 @@ export declare const showQuitPlatformDialogInternal: (req: ShowQuitPlatformDialo
|
|
|
4
4
|
export declare const showUpdateVersionModalInternal: (req: ShowUpdateVersionModalRequest, identity: OpenFin.ProviderIdentity | OpenFin.ClientIdentity) => Promise<void>;
|
|
5
5
|
export declare const showApplyAndPublishModalInternal: (_identity: OpenFin.ProviderIdentity | OpenFin.ClientIdentity) => Promise<boolean>;
|
|
6
6
|
export declare const showIntentsResolverModalInternal: (req: ShowIntentsResolverModalRequest) => Promise<IntentResolverResponse>;
|
|
7
|
+
export declare const showManageConnectorsModalInternal: () => Promise<void>;
|
|
@@ -151,6 +151,7 @@ export declare enum GlobalContextMenuOptionType {
|
|
|
151
151
|
DeleteWorkspace = "DeleteWorkspace",
|
|
152
152
|
Downloads = "Downloads",
|
|
153
153
|
OpenStorefront = "OpenStorefront",
|
|
154
|
+
ManageConnectors = "ManageConnectors",
|
|
154
155
|
ManageDesktopSignals = "ManageDesktopSignals",
|
|
155
156
|
FindInPage = "FindInPage",
|
|
156
157
|
Appearance = "Appearance",
|
|
@@ -212,6 +213,7 @@ export declare enum PageTabContextMenuOptionType {
|
|
|
212
213
|
export declare enum EnterpriseMainContextMenuOptionType {
|
|
213
214
|
Lock = "Lock",
|
|
214
215
|
AddToChanel = "AddToChannel",
|
|
216
|
+
ManageConnectors = "ManageConnectors",// Enterprise
|
|
215
217
|
ManageDesktopSignals = "ManageDesktopSignals",// Enterprise
|
|
216
218
|
FindInPage = "FindInPage",// Enterprise
|
|
217
219
|
Print = "Print",
|
|
@@ -3371,6 +3373,7 @@ export interface SearchProvider {
|
|
|
3371
3373
|
supportsQueryless?: boolean;
|
|
3372
3374
|
supportsPaging?: boolean;
|
|
3373
3375
|
filters?: SearchProviderFilter[];
|
|
3376
|
+
connected?: boolean;
|
|
3374
3377
|
}
|
|
3375
3378
|
/**
|
|
3376
3379
|
* @internal
|
|
@@ -62,7 +62,17 @@ export declare enum EnterpriseAppDirectoryChannelAction {
|
|
|
62
62
|
GetCuratedContent = "get-curated-content",
|
|
63
63
|
GetRecentlyVisited = "get-recently-visited",
|
|
64
64
|
GetSearchProviders = "get-search-providers",
|
|
65
|
-
RecentsChanged = "recents-changed"
|
|
65
|
+
RecentsChanged = "recents-changed",
|
|
66
|
+
SearchProviderChanged = "search-provider-changed"
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
export declare enum EnterpriseComponentBridgeChannelAction {
|
|
72
|
+
GetConnectors = "get-connectors",
|
|
73
|
+
ConnectConnector = "connect-connector",
|
|
74
|
+
DisconnectConnector = "disconnect-connector",
|
|
75
|
+
OnConnectorsChanged = "on-connectors-changed"
|
|
66
76
|
}
|
|
67
77
|
/**
|
|
68
78
|
* @internal
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Wire status for a Manage Connectors row. `connecting` wins over ready/not-ready while Connect is in flight. */
|
|
2
|
+
export type ConnectorStatus = 'disconnected' | 'connecting' | 'connected';
|
|
3
|
+
/** Full connector row returned by `get-connectors`. */
|
|
4
|
+
export type ConnectorPayload = {
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
status: ConnectorStatus;
|
|
10
|
+
};
|
|
11
|
+
/** Status-only update payload published on `on-connectors-changed`. */
|
|
12
|
+
export type ConnectorChangedPayload = {
|
|
13
|
+
id: string;
|
|
14
|
+
status: ConnectorStatus;
|
|
15
|
+
};
|
|
16
|
+
/** Single-provider update published on `search-provider-changed`; merged into the matching `SearchProvider` by `id`. */
|
|
17
|
+
export type SearchProviderChangedPayload = {
|
|
18
|
+
id: string;
|
|
19
|
+
connected: boolean;
|
|
20
|
+
};
|
|
21
|
+
/** `connect-connector` / `disconnect-connector` request payload. */
|
|
22
|
+
export type ConnectorIdPayload = {
|
|
23
|
+
id: string;
|
|
24
|
+
};
|
|
25
|
+
/** `customData` written onto the Manage Connectors popup window. */
|
|
26
|
+
export type ManageConnectorsCustomData = {
|
|
27
|
+
connectors: ConnectorPayload[];
|
|
28
|
+
};
|
|
@@ -14,6 +14,9 @@ export declare const createContextMenuChannel: () => Promise<OpenFin.ChannelProv
|
|
|
14
14
|
export declare const connectToContextMenuChannel: () => Promise<OpenFin.ChannelClient>;
|
|
15
15
|
export declare const connectToEnterpriseContentChannel: (uuid: string) => Promise<OpenFin.ChannelClient>;
|
|
16
16
|
export declare const connectToEnterpriseModalChannel: (uuid: string) => Promise<OpenFin.ChannelClient>;
|
|
17
|
+
export declare const getEnterpriseComponentBridgeChannelName: (uuid: string) => string;
|
|
18
|
+
export declare const connectToEnterpriseComponentBridgeChannel: (uuid: string) => Promise<OpenFin.ChannelClient>;
|
|
19
|
+
export declare const createEnterpriseComponentBridgeChannel: (uuid: string) => Promise<OpenFin.ChannelProvider>;
|
|
17
20
|
export declare const createZoomControlsDialogChannel: () => Promise<OpenFin.ChannelProvider>;
|
|
18
21
|
export declare const connectToZoomControlsDialogChannel: () => Promise<OpenFin.ChannelClient>;
|
|
19
22
|
export declare const getTabSearchChannelName: () => string;
|
|
@@ -67,6 +67,13 @@ export declare const saveWorkspaceAs: () => {
|
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
export declare const printMenuOptions: (isViewSelected: boolean) => Promise<GlobalContextMenuItemTemplate>;
|
|
70
|
+
export declare const manageConnectors: () => {
|
|
71
|
+
type: MenuItemType;
|
|
72
|
+
label: string;
|
|
73
|
+
data: {
|
|
74
|
+
type: WP.GlobalContextMenuOptionType;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
70
77
|
export declare const manageDesktopSignals: () => {
|
|
71
78
|
type: MenuItemType;
|
|
72
79
|
label: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type OpenFin from '@openfin/core';
|
|
2
|
+
import { ConnectorPayload } from '../../../common/src/api/protocol/shapes/connectors';
|
|
3
|
+
export declare const getManageConnectorsModalWindowName: (parentWindowName: string) => string;
|
|
4
|
+
/** True when Manage Connectors is already showing for this parent window. */
|
|
5
|
+
export declare const isManageConnectorsModalOpen: (identity: OpenFin.Identity) => Promise<boolean>;
|
|
6
|
+
/**
|
|
7
|
+
* Focuses the Manage Connectors modal if it is already showing for this parent window.
|
|
8
|
+
* Returns true when the modal was showing and focus was requested.
|
|
9
|
+
*/
|
|
10
|
+
export declare const focusManageConnectorsModalIfOpen: (identity: OpenFin.Identity) => Promise<boolean>;
|
|
11
|
+
/**
|
|
12
|
+
* Returns a modal height that fits the connector list, clamped to min/max.
|
|
13
|
+
*/
|
|
14
|
+
export declare const getManageConnectorsModalHeight: (connectors: ConnectorPayload[]) => number;
|
|
15
|
+
/**
|
|
16
|
+
* Builds `showPopupWindow` options for the Manage Connectors modal.
|
|
17
|
+
*
|
|
18
|
+
* Prefetches connectors into `customData`, sizes the window to the list, and skips
|
|
19
|
+
* creation if the modal is already open. Returns `undefined` when already showing.
|
|
20
|
+
*/
|
|
21
|
+
export declare const getManageConnectorsPopupOptions: (identity: OpenFin.Identity) => Promise<OpenFin.PopupOptions | undefined>;
|
|
@@ -41,6 +41,7 @@ declare enum BrowserRoute {
|
|
|
41
41
|
ZoomControlsDialog = "/zoom-controls-dialog/",
|
|
42
42
|
DesktopSignalsModal = "/popup-menu/desktop-signals-modal/",
|
|
43
43
|
IntentsResolverModal = "/popup-menu/intents-resolver-modal/",
|
|
44
|
+
ManageConnectorsModal = "/popup-menu/manage-connectors/",
|
|
44
45
|
FindInPageModal = "/popup-menu/find-in-page-modal/",
|
|
45
46
|
ExtensionActionsList = "/popup-menu/extension-actions-list/"
|
|
46
47
|
}
|
|
@@ -67,6 +68,7 @@ export declare const PageRoute: {
|
|
|
67
68
|
ZoomControlsDialog: BrowserRoute.ZoomControlsDialog;
|
|
68
69
|
DesktopSignalsModal: BrowserRoute.DesktopSignalsModal;
|
|
69
70
|
IntentsResolverModal: BrowserRoute.IntentsResolverModal;
|
|
71
|
+
ManageConnectorsModal: BrowserRoute.ManageConnectorsModal;
|
|
70
72
|
FindInPageModal: BrowserRoute.FindInPageModal;
|
|
71
73
|
ExtensionActionsList: BrowserRoute.ExtensionActionsList;
|
|
72
74
|
Home: WorkspaceRoute.Home;
|
|
@@ -24,7 +24,8 @@ export declare enum ComponentName {
|
|
|
24
24
|
PagePinning = "PagePinning",
|
|
25
25
|
ViewTabNewTabShortcut = "ViewTabNewTabShortcut",
|
|
26
26
|
SupertabHideShowTabs = "PRODM-318: Supertab Hide/Show Tab Headers",
|
|
27
|
-
StorefrontVpw = "PRODM-171: VPW Storefront"
|
|
27
|
+
StorefrontVpw = "PRODM-171: VPW Storefront",
|
|
28
|
+
ManageConnectors = "PRODM-453: Manage Connectors"
|
|
28
29
|
}
|
|
29
30
|
export declare const registerBrowserUsage: (status: RegisterUsageStatus) => void;
|
|
30
31
|
export declare const registerHomeUsage: (status: RegisterUsageStatus) => void;
|
|
@@ -42,6 +43,7 @@ export declare const registerPagePinningUsage: (status: RegisterUsageStatus) =>
|
|
|
42
43
|
export declare const registerViewTabNewTabShortcutUsage: (status: RegisterUsageStatus) => void;
|
|
43
44
|
export declare const registerSupertabHideShowTabsUsage: () => void;
|
|
44
45
|
export declare const registerStorefrontVpwUsage: (status: RegisterUsageStatus) => void;
|
|
46
|
+
export declare const registerManageConnectorsUsage: () => void;
|
|
45
47
|
export type AnalyticsSource = 'Browser' | 'Dock' | 'Home' | 'Notification' | 'Store' | 'Platform' | 'Theming' | 'Interop';
|
|
46
48
|
/**
|
|
47
49
|
* Event for analytics
|
|
@@ -28,6 +28,7 @@ export declare enum WindowName {
|
|
|
28
28
|
PublishOnCloseModal = "here-publish-on-close-modal",
|
|
29
29
|
DesktopSignalsModal = "here-desktop-signals-modal",
|
|
30
30
|
IntentsResolverModal = "here-intents-resolver-modal",
|
|
31
|
+
ManageConnectorsModal = "here-manage-connectors-modal",
|
|
31
32
|
/** Browser-zone Home VPW window (platform child window). */
|
|
32
33
|
HomeVpw = "home-vpw",
|
|
33
34
|
/** Browser-zone Storefront VPW window (platform child window). */
|
|
@@ -44,3 +44,9 @@ export declare const showPublishOnCloseModal: (windowIdentity: OpenFin.Identity)
|
|
|
44
44
|
* @returns Promise resolving to the user's intent resolution response
|
|
45
45
|
*/
|
|
46
46
|
export declare const showIntentsResolverModal: (request: ShowIntentsResolverModalRequestInternal) => Promise<IntentResolverResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Opens the Manage Connectors modal for the given window.
|
|
49
|
+
* Popup prep is handled by `getManageConnectorsPopupOptions`.
|
|
50
|
+
* Set `registerUsage` to false when the platform opens it rather than the user.
|
|
51
|
+
*/
|
|
52
|
+
export declare const showManageConnectorsModal: (identity: OpenFin.Identity, registerUsage?: boolean) => Promise<void>;
|
package/externals.report.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"@openfin/notifications": [
|
|
3
3
|
{
|
|
4
4
|
"type": "explicit",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "46.0.0-alpha-5222",
|
|
6
6
|
"packageName": "client-api/package.json",
|
|
7
7
|
"issuer": "client-api/src/notifications.ts"
|
|
8
8
|
}
|
|
@@ -73,19 +73,27 @@
|
|
|
73
73
|
"issuer": "common/src/api/i18next.ts"
|
|
74
74
|
}
|
|
75
75
|
],
|
|
76
|
-
"
|
|
76
|
+
"lodash.clonedeep": [
|
|
77
77
|
{
|
|
78
|
-
"type": "
|
|
79
|
-
"version": "
|
|
80
|
-
"packageName": "
|
|
81
|
-
"issuer": "
|
|
82
|
-
}
|
|
78
|
+
"type": "explicit",
|
|
79
|
+
"version": "4.5.0",
|
|
80
|
+
"packageName": "common/package.json",
|
|
81
|
+
"issuer": "common/src/utils/layout.ts"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"dexie": [
|
|
83
85
|
{
|
|
84
86
|
"type": "explicit",
|
|
85
87
|
"version": "^4.0.11",
|
|
86
88
|
"packageName": "common/package.json",
|
|
87
89
|
"issuer": "common/src/api/pages/idb.ts"
|
|
88
90
|
},
|
|
91
|
+
{
|
|
92
|
+
"type": "root-implicit",
|
|
93
|
+
"version": "^4.0.11",
|
|
94
|
+
"packageName": "dock3/package.json",
|
|
95
|
+
"issuer": "dock3/src/api/idb.ts"
|
|
96
|
+
},
|
|
89
97
|
{
|
|
90
98
|
"type": "explicit",
|
|
91
99
|
"version": "^4.0.11",
|
|
@@ -98,13 +106,5 @@
|
|
|
98
106
|
"packageName": "common/package.json",
|
|
99
107
|
"issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
|
|
100
108
|
}
|
|
101
|
-
],
|
|
102
|
-
"lodash.clonedeep": [
|
|
103
|
-
{
|
|
104
|
-
"type": "explicit",
|
|
105
|
-
"version": "4.5.0",
|
|
106
|
-
"packageName": "common/package.json",
|
|
107
|
-
"issuer": "common/src/utils/layout.ts"
|
|
108
|
-
}
|
|
109
109
|
]
|
|
110
110
|
}
|