@openfin/workspace-platform 45.5.2 → 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/init/override-callback/dialogs.d.ts +1 -0
- package/client-api-platform/src/init/override-callback/dialogs.test.d.ts +1 -0
- package/client-api-platform/src/shapes.d.ts +1 -0
- 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 +14 -14
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/workspace_platform.zip +0 -0
|
@@ -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>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -122,6 +122,7 @@ export declare enum GlobalContextMenuOptionType {
|
|
|
122
122
|
DeleteWorkspace = "DeleteWorkspace",
|
|
123
123
|
Downloads = "Downloads",
|
|
124
124
|
OpenStorefront = "OpenStorefront",
|
|
125
|
+
ManageConnectors = "ManageConnectors",
|
|
125
126
|
ManageDesktopSignals = "ManageDesktopSignals",
|
|
126
127
|
FindInPage = "FindInPage",
|
|
127
128
|
Appearance = "Appearance",
|
|
@@ -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
|
@@ -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,14 +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
48
|
"dexie": [
|
|
49
49
|
{
|
|
50
50
|
"type": "explicit",
|
|
@@ -52,18 +52,18 @@
|
|
|
52
52
|
"packageName": "common/package.json",
|
|
53
53
|
"issuer": "common/src/api/pages/idb.ts"
|
|
54
54
|
},
|
|
55
|
-
{
|
|
56
|
-
"type": "explicit",
|
|
57
|
-
"version": "^4.0.11",
|
|
58
|
-
"packageName": "client-api-platform/package.json",
|
|
59
|
-
"issuer": "client-api-platform/src/api/dock/idb.ts"
|
|
60
|
-
},
|
|
61
55
|
{
|
|
62
56
|
"type": "root-implicit",
|
|
63
57
|
"version": "^4.0.11",
|
|
64
58
|
"packageName": "dock3/package.json",
|
|
65
59
|
"issuer": "dock3/src/api/idb.ts"
|
|
66
60
|
},
|
|
61
|
+
{
|
|
62
|
+
"type": "explicit",
|
|
63
|
+
"version": "^4.0.11",
|
|
64
|
+
"packageName": "client-api-platform/package.json",
|
|
65
|
+
"issuer": "client-api-platform/src/api/dock/idb.ts"
|
|
66
|
+
},
|
|
67
67
|
{
|
|
68
68
|
"type": "explicit",
|
|
69
69
|
"version": "^4.0.11",
|