@openfin/workspace 3.0.0 → 4.0.0
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/README.md +66 -19
- package/client-api/src/common.d.ts +6 -0
- package/{index.test.d.ts → client-api/src/common.test.d.ts} +0 -0
- package/client-api/src/home.d.ts +19 -0
- package/{umd.d.ts → client-api/src/home.test.d.ts} +0 -0
- package/client-api/src/index.d.ts +11 -0
- package/client-api/src/index.test.d.ts +1 -0
- package/{logger.d.ts → client-api/src/logger.d.ts} +0 -0
- package/client-api/src/shapes.d.ts +573 -0
- package/{storefront.d.ts → client-api/src/storefront.d.ts} +4 -0
- package/client-api/src/storefront.test.d.ts +1 -0
- package/client-api/src/umd.d.ts +1 -0
- package/common/src/api/home.d.ts +27 -0
- package/common/src/api/protocol.d.ts +88 -0
- package/common/src/api/search.d.ts +7 -0
- package/common/src/api/shapes.d.ts +20 -0
- package/common/src/api/storefront.d.ts +70 -0
- package/common/src/utils/application.d.ts +41 -0
- package/common/src/utils/channels.d.ts +8 -0
- package/common/src/utils/env.d.ts +27 -0
- package/common/src/utils/logger/index.d.ts +26 -0
- package/common/src/utils/logger/manager.d.ts +35 -0
- package/common/src/utils/logger/shapes.d.ts +27 -0
- package/common/src/utils/window.d.ts +145 -0
- package/index.d.ts +2 -6
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/search-api/src/client/index.d.ts +6 -0
- package/search-api/src/client/internal.d.ts +38 -0
- package/search-api/src/client/remote/channel-client-factory.d.ts +2 -0
- package/search-api/src/client/remote/channel-client.d.ts +9 -0
- package/search-api/src/client/remote/data.d.ts +16 -0
- package/search-api/src/client/remote/disconnect.d.ts +7 -0
- package/search-api/src/client/remote/dispatch.d.ts +9 -0
- package/search-api/src/client/remote/requests.d.ts +5 -0
- package/search-api/src/client/remote/search-close.d.ts +14 -0
- package/search-api/src/common.d.ts +104 -0
- package/search-api/src/errors.d.ts +5 -0
- package/search-api/src/fin/index.d.ts +6 -0
- package/search-api/src/fin/shapes.d.ts +23 -0
- package/search-api/src/index.d.ts +7 -0
- package/search-api/src/internal-shapes.d.ts +134 -0
- package/search-api/src/logger.d.ts +1 -0
- package/search-api/src/provider/index.d.ts +8 -0
- package/search-api/src/provider/internal.d.ts +33 -0
- package/search-api/src/provider/remote/channel-factory.d.ts +6 -0
- package/search-api/src/provider/remote/channel.d.ts +23 -0
- package/search-api/src/provider/remote/connection.d.ts +20 -0
- package/search-api/src/provider/remote/data.d.ts +23 -0
- package/search-api/src/provider/remote/deregistration.d.ts +5 -0
- package/search-api/src/provider/remote/disconnect.d.ts +1 -0
- package/search-api/src/provider/remote/disconnection.d.ts +9 -0
- package/search-api/src/provider/remote/dispatch.d.ts +7 -0
- package/search-api/src/provider/remote/info.d.ts +5 -0
- package/search-api/src/provider/remote/registration.d.ts +23 -0
- package/search-api/src/provider/remote/search-close.d.ts +14 -0
- package/search-api/src/provider/remote/search.d.ts +8 -0
- package/search-api/src/shapes.d.ts +541 -0
- package/common.d.ts +0 -6
- package/shapes.d.ts +0 -273
package/shapes.d.ts
DELETED
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API reference for the Workspace Client APIs.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Describes the type of the app directory entry `manifest` attributes.
|
|
6
|
-
* Launch mechanics are determined by the manifest type.
|
|
7
|
-
*/
|
|
8
|
-
export declare enum AppManifestType {
|
|
9
|
-
/**
|
|
10
|
-
* A snapshot manifest.
|
|
11
|
-
*/
|
|
12
|
-
Snapshot = "snapshot",
|
|
13
|
-
/**
|
|
14
|
-
* A classic OpenFin app manifest.
|
|
15
|
-
*/
|
|
16
|
-
Manifest = "manifest",
|
|
17
|
-
/**
|
|
18
|
-
* A view manifest.
|
|
19
|
-
*/
|
|
20
|
-
View = "view",
|
|
21
|
-
/**
|
|
22
|
-
* A manifest for an external application.
|
|
23
|
-
*/
|
|
24
|
-
External = "external"
|
|
25
|
-
}
|
|
26
|
-
export interface AppIntent {
|
|
27
|
-
name: string;
|
|
28
|
-
displayName: string;
|
|
29
|
-
contexts: string[];
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Detailed metadata describing an image.
|
|
33
|
-
*/
|
|
34
|
-
export interface Image {
|
|
35
|
-
src: string;
|
|
36
|
-
type?: string;
|
|
37
|
-
size?: string;
|
|
38
|
-
purpose?: string;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Detailed metadata describing an application.
|
|
42
|
-
*/
|
|
43
|
-
export interface App {
|
|
44
|
-
/**
|
|
45
|
-
* Unique identifier for an application.
|
|
46
|
-
*/
|
|
47
|
-
appId: string;
|
|
48
|
-
/**
|
|
49
|
-
* A UI friendly title for the application.
|
|
50
|
-
*/
|
|
51
|
-
title: string;
|
|
52
|
-
/**
|
|
53
|
-
* URL to application manifest.
|
|
54
|
-
*/
|
|
55
|
-
manifest: string;
|
|
56
|
-
/**
|
|
57
|
-
* UI friendly description for an application.
|
|
58
|
-
*/
|
|
59
|
-
description?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Describes the type of manifest resolved by the `manifest` field.
|
|
62
|
-
* Launch mechanics are determined by the manifest type.
|
|
63
|
-
*/
|
|
64
|
-
manifestType: AppManifestType | string;
|
|
65
|
-
/**
|
|
66
|
-
* A list of icons that can be rendered in UI for this application.
|
|
67
|
-
*/
|
|
68
|
-
icons: Image[];
|
|
69
|
-
/**
|
|
70
|
-
* A list of optional images that highlight application functionality.
|
|
71
|
-
*/
|
|
72
|
-
images?: Image[];
|
|
73
|
-
intents?: AppIntent[];
|
|
74
|
-
tags?: string[];
|
|
75
|
-
version?: string;
|
|
76
|
-
publisher: string;
|
|
77
|
-
contactEmail?: string;
|
|
78
|
-
supportEmail?: string;
|
|
79
|
-
}
|
|
80
|
-
export declare enum StorefrontTemplate {
|
|
81
|
-
LandingPage = "landingPage",
|
|
82
|
-
AppGrid = "appGrid"
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Represents a link to be rendered inside Storefront.
|
|
86
|
-
*/
|
|
87
|
-
export interface StorefrontLink {
|
|
88
|
-
/**
|
|
89
|
-
* A UI friendly title to render the link as.
|
|
90
|
-
*/
|
|
91
|
-
title: string;
|
|
92
|
-
/**
|
|
93
|
-
* When the rendered `title` text is clicked, the user will be navigated to this URL.
|
|
94
|
-
*/
|
|
95
|
-
url: string;
|
|
96
|
-
}
|
|
97
|
-
export interface StorefrontFooter {
|
|
98
|
-
/**
|
|
99
|
-
* A logo to be displayed on the Storefront's footer.
|
|
100
|
-
*/
|
|
101
|
-
logo: Image;
|
|
102
|
-
/**
|
|
103
|
-
* A set of links to display on Storefront's footer.
|
|
104
|
-
*/
|
|
105
|
-
links: [StorefrontLink?, StorefrontLink?, StorefrontLink?];
|
|
106
|
-
text: string;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Render a navigation section on the left panel of Storefront.
|
|
110
|
-
*/
|
|
111
|
-
export interface StorefrontNavigationSection {
|
|
112
|
-
/**
|
|
113
|
-
* Unique identifier for the navigation section.
|
|
114
|
-
*/
|
|
115
|
-
id: string;
|
|
116
|
-
/**
|
|
117
|
-
* The UI friendly title of the navigation section.
|
|
118
|
-
*/
|
|
119
|
-
title: string;
|
|
120
|
-
/**
|
|
121
|
-
* Navigation items to render under this section.
|
|
122
|
-
* 1-5 Navigation Items are supported.
|
|
123
|
-
*/
|
|
124
|
-
items: [
|
|
125
|
-
StorefrontNavigationItem,
|
|
126
|
-
StorefrontNavigationItem?,
|
|
127
|
-
StorefrontNavigationItem?,
|
|
128
|
-
StorefrontNavigationItem?,
|
|
129
|
-
StorefrontNavigationItem?
|
|
130
|
-
];
|
|
131
|
-
}
|
|
132
|
-
export interface StorefrontLandingPage {
|
|
133
|
-
hero?: {
|
|
134
|
-
title: string;
|
|
135
|
-
description: string;
|
|
136
|
-
cta: StorefrontNavigationItem;
|
|
137
|
-
image: Image;
|
|
138
|
-
};
|
|
139
|
-
topRow: {
|
|
140
|
-
title: string;
|
|
141
|
-
items: [
|
|
142
|
-
StorefrontDetailedNavigationItem?,
|
|
143
|
-
StorefrontDetailedNavigationItem?,
|
|
144
|
-
StorefrontDetailedNavigationItem?,
|
|
145
|
-
StorefrontDetailedNavigationItem?
|
|
146
|
-
];
|
|
147
|
-
};
|
|
148
|
-
middleRow: {
|
|
149
|
-
title: string;
|
|
150
|
-
apps: [App?, App?, App?, App?, App?, App?];
|
|
151
|
-
};
|
|
152
|
-
bottomRow: {
|
|
153
|
-
title: string;
|
|
154
|
-
items: [
|
|
155
|
-
StorefrontDetailedNavigationItem?,
|
|
156
|
-
StorefrontDetailedNavigationItem?,
|
|
157
|
-
StorefrontDetailedNavigationItem?
|
|
158
|
-
];
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Render a grid of applications in Storefront.
|
|
163
|
-
*/
|
|
164
|
-
export interface StorefrontAppGrid {
|
|
165
|
-
/**
|
|
166
|
-
* The apps to render in the grid.
|
|
167
|
-
*/
|
|
168
|
-
apps: App[];
|
|
169
|
-
}
|
|
170
|
-
export interface StorefrontNavigationItemBase {
|
|
171
|
-
/**
|
|
172
|
-
* An ID for referencing the navigation item. Must be unique.
|
|
173
|
-
*/
|
|
174
|
-
id: string;
|
|
175
|
-
/**
|
|
176
|
-
* UI friendly name for the navigation item.
|
|
177
|
-
*/
|
|
178
|
-
title: string;
|
|
179
|
-
}
|
|
180
|
-
export interface StorefrontNavigationItemDetails {
|
|
181
|
-
description: string;
|
|
182
|
-
image: Image;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* Template for rendering a navigation item that renders a app grid when clicked.
|
|
186
|
-
*/
|
|
187
|
-
export interface StorefrontNavigationItemAppGrid extends StorefrontNavigationItemBase {
|
|
188
|
-
templateId: StorefrontTemplate.AppGrid;
|
|
189
|
-
/**
|
|
190
|
-
* Render an app grid when navigation item is pressed.
|
|
191
|
-
*/
|
|
192
|
-
templateData: StorefrontAppGrid;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Template for rendering a navigation item that renders another landing page when clicked.
|
|
196
|
-
*/
|
|
197
|
-
export interface StorefrontNavigationItemLandingPage extends StorefrontNavigationItemBase {
|
|
198
|
-
templateId: StorefrontTemplate.LandingPage;
|
|
199
|
-
/**
|
|
200
|
-
* Render a landing page when navigation item is pressed.
|
|
201
|
-
*/
|
|
202
|
-
templateData: StorefrontLandingPage;
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Render an item in the navigation bar of Storefront.
|
|
206
|
-
*/
|
|
207
|
-
export declare type StorefrontNavigationItem = StorefrontNavigationItemAppGrid | StorefrontNavigationItemLandingPage;
|
|
208
|
-
/**
|
|
209
|
-
* Render an item in the navigation bar of Storefront with a description and image.
|
|
210
|
-
*/
|
|
211
|
-
export declare type StorefrontDetailedNavigationItem = StorefrontNavigationItem & StorefrontNavigationItemDetails;
|
|
212
|
-
export interface StorefrontProviderInfo {
|
|
213
|
-
/**
|
|
214
|
-
* Unique identifier for the Storefront provider.
|
|
215
|
-
*/
|
|
216
|
-
id: string;
|
|
217
|
-
/**
|
|
218
|
-
* A UI friendly title for the platform Storefront.
|
|
219
|
-
* This will be used in the Storefront selection dropdown.
|
|
220
|
-
*/
|
|
221
|
-
title: string;
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Describes a Storefront provided by a platform.
|
|
225
|
-
* A platform must provide an object that satisfies this interface in order to register with the Storefront.
|
|
226
|
-
*/
|
|
227
|
-
export interface StorefrontProvider extends StorefrontProviderInfo {
|
|
228
|
-
/**
|
|
229
|
-
* Get a list of apps to populate the platform's Storefront with.
|
|
230
|
-
*/
|
|
231
|
-
getApps(): Promise<App[]>;
|
|
232
|
-
/**
|
|
233
|
-
* Get the main landing page for the platform's Storefront.
|
|
234
|
-
*/
|
|
235
|
-
getLandingPage(): Promise<StorefrontLandingPage>;
|
|
236
|
-
/**
|
|
237
|
-
* Get the Storefront navigation sections for the left nav bar.
|
|
238
|
-
*/
|
|
239
|
-
getNavigation(): Promise<[StorefrontNavigationSection?, StorefrontNavigationSection?]>;
|
|
240
|
-
/**
|
|
241
|
-
* Get the footer for the platform's Storefront.
|
|
242
|
-
*/
|
|
243
|
-
getFooter(): Promise<StorefrontFooter>;
|
|
244
|
-
/**
|
|
245
|
-
* Launch an app provided by the platform's Storefront.
|
|
246
|
-
*/
|
|
247
|
-
launchApp(app: App): Promise<void>;
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* Interface that contains functions for integrating with Storefront.
|
|
251
|
-
*/
|
|
252
|
-
export interface StorefrontAPI {
|
|
253
|
-
/**
|
|
254
|
-
* Register a Storefront provider.
|
|
255
|
-
* @param provider the implementation of a Storefront provider.
|
|
256
|
-
|
|
257
|
-
*/
|
|
258
|
-
register(provider: StorefrontProvider): Promise<void>;
|
|
259
|
-
/**
|
|
260
|
-
* Show the Storefront UI.
|
|
261
|
-
*/
|
|
262
|
-
show(): Promise<void>;
|
|
263
|
-
/**
|
|
264
|
-
* Hide the Storefront UI.
|
|
265
|
-
*/
|
|
266
|
-
hide(): Promise<void>;
|
|
267
|
-
}
|
|
268
|
-
export declare const Storefront: StorefrontAPI;
|
|
269
|
-
/**
|
|
270
|
-
* Default Workspace implementation for launching an application.
|
|
271
|
-
* @param app the application to launch.
|
|
272
|
-
*/
|
|
273
|
-
export declare const launchApp: (app: App) => Promise<void>;
|