@openfin/workspace-platform 45.4.8 → 45.4.10
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/context-menu/browser-logo-handler.test.d.ts +1 -0
- package/client-api-platform/src/api/context-menu/browser-pagetab-handler.test.d.ts +1 -0
- package/client-api-platform/src/api/context-menu/utils.d.ts +3 -1
- package/client-api-platform/src/init/browser-window-focus.test.d.ts +1 -0
- package/common/src/api/pages/shapes.d.ts +4 -0
- package/common/src/api/theming.d.ts +1 -1
- package/common/src/utils/interop.d.ts +30 -0
- package/common/src/utils/usage-register.d.ts +5 -0
- package/externals.report.json +12 -6
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/workspace_platform.zip +0 -0
|
@@ -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.Platform | OpenFin.Application | OpenFin.View>;
|
|
11
11
|
export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
|
|
12
12
|
export declare function getResults(payload: {
|
|
13
13
|
req: SearchSitesRequest;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@common/test/fin-mocks';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@common/test/fin-mocks';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
2
|
import { PositioningType } from '../../../../common/src/utils/positioning';
|
|
3
|
+
import type { PageCreationOrigin } from '../../../../common/src/api/pages/shapes';
|
|
3
4
|
import { WorkspaceContextMenuItemData } from '../../../../client-api-platform/src/shapes';
|
|
4
5
|
export declare const saveWorkspaceHandlerWithInjectables: ({ showModal, afterSuccessSave }: {
|
|
5
6
|
showModal?: () => Promise<void>;
|
|
@@ -9,8 +10,9 @@ export declare const saveWorkspaceHandler: (identity: OpenFin.Identity) => Promi
|
|
|
9
10
|
export declare const saveWorkspaceAsHandler: (identity: OpenFin.Identity) => void;
|
|
10
11
|
/**
|
|
11
12
|
* @param identity Identity of browser window to create a new page on.
|
|
13
|
+
* @param origin User interaction that requested the page. Menu callers omit this.
|
|
12
14
|
*/
|
|
13
|
-
export declare const createNewPageHandler: (identity: OpenFin.Identity) => Promise<void>;
|
|
15
|
+
export declare const createNewPageHandler: (identity: OpenFin.Identity, origin?: PageCreationOrigin) => Promise<void>;
|
|
14
16
|
export declare const createNewWindowHandler: (identity: OpenFin.Identity) => Promise<void>;
|
|
15
17
|
/**
|
|
16
18
|
* @param identity Identity of browser window to execute save on.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@common/test/fin-mocks';
|
|
@@ -259,11 +259,15 @@ export interface CopyPagePayload {
|
|
|
259
259
|
/** Specifies the trigger for creating a copy. */
|
|
260
260
|
reason: 'save-as' | 'duplicate';
|
|
261
261
|
}
|
|
262
|
+
/** The user interaction that created a new page. Reported in the `Create Page` analytics event. */
|
|
263
|
+
export type PageCreationOrigin = 'new-tab-button' | 'menu' | 'hotkey' | 'dock' | 'new-window';
|
|
262
264
|
export type AddDefaultPagePayload = {
|
|
263
265
|
/** The OF window identity to attach the pages to. */
|
|
264
266
|
identity: OpenFin.Identity;
|
|
265
267
|
/** The page to attach. */
|
|
266
268
|
page: PageWithUpdatableRuntimeAttribs;
|
|
269
|
+
/** The user interaction that requested the page. */
|
|
270
|
+
origin?: PageCreationOrigin;
|
|
267
271
|
};
|
|
268
272
|
export type AddPagePayload = {
|
|
269
273
|
/** The OF window identity to attach the pages to. */
|
|
@@ -307,7 +307,7 @@ export declare const constructThemePaletteSheet: (themes: GeneratedPalettes, leg
|
|
|
307
307
|
dark: string;
|
|
308
308
|
}) => string;
|
|
309
309
|
export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<{
|
|
310
|
-
theme:
|
|
310
|
+
theme: CustomThemes | GeneratedPalettes;
|
|
311
311
|
defaultScheme: ColorSchemeOptionType;
|
|
312
312
|
themePaletteSheet: string;
|
|
313
313
|
}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type OpenFin from '@openfin/core';
|
|
2
|
+
export declare enum InteropEventType {
|
|
3
|
+
JoinedContextGroup = "joined-context-group",
|
|
4
|
+
RemovedFromContextGroup = "removed-from-context-group"
|
|
5
|
+
}
|
|
6
|
+
type InteropEventPayload<E extends InteropEventType> = {
|
|
7
|
+
[InteropEventType.JoinedContextGroup]: {
|
|
8
|
+
viewIdentity: OpenFin.Identity;
|
|
9
|
+
contextGroupId: string;
|
|
10
|
+
};
|
|
11
|
+
[InteropEventType.RemovedFromContextGroup]: {
|
|
12
|
+
viewIdentity: OpenFin.Identity;
|
|
13
|
+
};
|
|
14
|
+
}[E];
|
|
15
|
+
export type InteropListener<EventType extends InteropEventType> = (payload: InteropEventPayload<EventType>) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Returns contextGroup data.
|
|
18
|
+
* @returns Promise<ContextGroup[]>
|
|
19
|
+
*/
|
|
20
|
+
export declare function getContextGroups(): Promise<OpenFin.ContextGroupInfo[]>;
|
|
21
|
+
export declare const joinContextGroup: (viewIdentity: OpenFin.Identity, contextGroupId: string) => Promise<void>;
|
|
22
|
+
export declare const removeFromGroup: (viewIdentity: OpenFin.Identity) => Promise<void>;
|
|
23
|
+
export declare function getViewContextGroupId(viewIdentity: OpenFin.Identity): Promise<string | null | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Listen for interop events.
|
|
26
|
+
* @param event the interop event to listen for.
|
|
27
|
+
* @param listener the function to call when the event occurs.
|
|
28
|
+
*/
|
|
29
|
+
export declare const addInteropListener: <Event extends InteropEventType>(event: Event, listener: InteropListener<Event>) => Promise<void>;
|
|
30
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
+
import type { Page, PageCreationOrigin } from '../../../common/src/api/pages/shapes';
|
|
2
3
|
import { AttachedPage } from '../../../client-api-platform/src/shapes';
|
|
3
4
|
export interface RegisterUsageStatus {
|
|
4
5
|
apiVersion?: string;
|
|
@@ -63,6 +64,10 @@ export interface AnalyticsEventInternal extends AnalyticsEvent {
|
|
|
63
64
|
export type AnalyticsEventRaise = Omit<AnalyticsEventInternal, 'source'>;
|
|
64
65
|
export declare const raiseBrowserAnalytics: (payload: AnalyticsEventRaise) => Promise<void>;
|
|
65
66
|
export declare const raiseBrowserPageAnalytics: (pages: AttachedPage[], action: string) => Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Raised when a new page ID is minted, as opposed to `Open Page`, which also fires for restored pages.
|
|
69
|
+
*/
|
|
70
|
+
export declare const raiseCreatePageAnalytics: (page: Pick<Page, "pageId" | "title">, windowName: string, origin?: PageCreationOrigin) => Promise<void>;
|
|
66
71
|
export declare const raiseHomeAnalytics: (platformIdentity: OpenFin.Identity, payload: AnalyticsEventRaise) => Promise<void>;
|
|
67
72
|
export declare const raiseDockAnalytics: (platformIdentity: OpenFin.Identity, payload: AnalyticsEventRaise) => Promise<void>;
|
|
68
73
|
export declare const raiseStorefrontAnalytics: (platformIdentity: OpenFin.Identity, payload: AnalyticsEventRaise) => Promise<void>;
|
package/externals.report.json
CHANGED
|
@@ -52,18 +52,18 @@
|
|
|
52
52
|
"packageName": "common/package.json",
|
|
53
53
|
"issuer": "common/src/api/pages/idb.ts"
|
|
54
54
|
},
|
|
55
|
-
{
|
|
56
|
-
"type": "root-implicit",
|
|
57
|
-
"version": "^4.0.11",
|
|
58
|
-
"packageName": "dock3/package.json",
|
|
59
|
-
"issuer": "dock3/src/api/idb.ts"
|
|
60
|
-
},
|
|
61
55
|
{
|
|
62
56
|
"type": "explicit",
|
|
63
57
|
"version": "^4.0.11",
|
|
64
58
|
"packageName": "client-api-platform/package.json",
|
|
65
59
|
"issuer": "client-api-platform/src/api/dock/idb.ts"
|
|
66
60
|
},
|
|
61
|
+
{
|
|
62
|
+
"type": "root-implicit",
|
|
63
|
+
"version": "^4.0.11",
|
|
64
|
+
"packageName": "dock3/package.json",
|
|
65
|
+
"issuer": "dock3/src/api/idb.ts"
|
|
66
|
+
},
|
|
67
67
|
{
|
|
68
68
|
"type": "explicit",
|
|
69
69
|
"version": "^4.0.11",
|
|
@@ -72,6 +72,12 @@
|
|
|
72
72
|
}
|
|
73
73
|
],
|
|
74
74
|
"title-case": [
|
|
75
|
+
{
|
|
76
|
+
"type": "explicit",
|
|
77
|
+
"version": "3.0.3",
|
|
78
|
+
"packageName": "client-api-platform/package.json",
|
|
79
|
+
"issuer": "client-api-platform/src/api/context-menu/browser-pagetab-handler.ts"
|
|
80
|
+
},
|
|
75
81
|
{
|
|
76
82
|
"type": "explicit",
|
|
77
83
|
"version": "3.0.3",
|