@finsemble/finsemble-ui 8.4.0-beta.1 → 8.4.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.
Files changed (72) hide show
  1. package/clients/Interop/FinsembleDesktopAgent.d.ts.map +1 -1
  2. package/clients/Interop/FinsembleDesktopAgent.js +5 -8
  3. package/clients/Interop/FinsembleDesktopAgent.js.map +1 -1
  4. package/clients/Startup/FSBLDesktop.d.ts +1 -1
  5. package/clients/Startup/FSBLDesktop.d.ts.map +1 -1
  6. package/clients/Startup/FSBLDesktop.js +1 -1
  7. package/clients/Startup/FSBLDesktop.js.map +1 -1
  8. package/clients/Startup/windowStartup.d.ts.map +1 -1
  9. package/clients/Startup/windowStartup.js +54 -2
  10. package/clients/Startup/windowStartup.js.map +1 -1
  11. package/clients/appsClient.d.ts +394 -55
  12. package/clients/appsClient.d.ts.map +1 -1
  13. package/clients/appsClient.js +628 -30
  14. package/clients/appsClient.js.map +1 -1
  15. package/clients/configClient.d.ts +16 -3
  16. package/clients/configClient.d.ts.map +1 -1
  17. package/clients/configClient.js +17 -4
  18. package/clients/configClient.js.map +1 -1
  19. package/clients/launcherClient.d.ts +65 -334
  20. package/clients/launcherClient.d.ts.map +1 -1
  21. package/clients/launcherClient.js +35 -601
  22. package/clients/launcherClient.js.map +1 -1
  23. package/clients/notificationClient.d.ts +13 -6
  24. package/clients/notificationClient.d.ts.map +1 -1
  25. package/clients/notificationClient.js +13 -6
  26. package/clients/notificationClient.js.map +1 -1
  27. package/deprecated/deprecatedFunctions.js +2 -2
  28. package/deprecated/deprecatedFunctions.js.map +1 -1
  29. package/deprecated/deprecatedlauncherClient.d.ts +1 -1
  30. package/deprecated/deprecatedlauncherClient.d.ts.map +1 -1
  31. package/deprecated/deprecatedlauncherClient.js.map +1 -1
  32. package/deprecated/dragAndDropClient.d.ts.map +1 -1
  33. package/deprecated/dragAndDropClient.js +14 -4
  34. package/deprecated/dragAndDropClient.js.map +1 -1
  35. package/main.d.ts +113 -106
  36. package/main.d.ts.map +1 -1
  37. package/main.js +1 -1
  38. package/main.js.map +1 -1
  39. package/package.json +2 -2
  40. package/platform/services/Interop/types.d.ts +6 -0
  41. package/platform/services/Interop/types.d.ts.map +1 -1
  42. package/platform/services/Interop/types.js.map +1 -1
  43. package/platform/services/systemManager/_constants.d.ts.map +1 -1
  44. package/platform/services/systemManager/_constants.js +1 -0
  45. package/platform/services/systemManager/_constants.js.map +1 -1
  46. package/platform/services/systemManager/types.d.ts +1 -1
  47. package/platform/services/systemManager/types.d.ts.map +1 -1
  48. package/platform/services/systemManager/types.js.map +1 -1
  49. package/platform/services/window/modules/actions.d.ts +4 -0
  50. package/platform/services/window/modules/actions.d.ts.map +1 -1
  51. package/platform/services/window/modules/actions.js +1 -0
  52. package/platform/services/window/modules/actions.js.map +1 -1
  53. package/react/assets/css/fonts/icons-reference.html +1 -1
  54. package/react/assets/css/windowTitleBar.css +4 -1
  55. package/react/components/search/SearchResults.d.ts.map +1 -1
  56. package/react/components/search/SearchResults.js +6 -6
  57. package/react/components/search/SearchResults.js.map +1 -1
  58. package/react/components/singleInputDialog/SingleInputDialog.d.ts.map +1 -1
  59. package/react/components/singleInputDialog/SingleInputDialog.js +5 -3
  60. package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
  61. package/react/components/toolbar/DragHandle.d.ts.map +1 -1
  62. package/react/components/toolbar/DragHandle.js +8 -5
  63. package/react/components/toolbar/DragHandle.js.map +1 -1
  64. package/react/components/userPreferences/components/content/Workspaces.d.ts +5 -0
  65. package/react/components/userPreferences/components/content/Workspaces.d.ts.map +1 -1
  66. package/react/components/userPreferences/components/content/Workspaces.js +14 -1
  67. package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
  68. package/react/hooks/useInjectedTitleBar.d.ts.map +1 -1
  69. package/react/hooks/useInjectedTitleBar.js +92 -20
  70. package/react/hooks/useInjectedTitleBar.js.map +1 -1
  71. package/typedefs/FDC3/api/AppMetadata.d.ts +1 -0
  72. package/typedefs/FDC3/api/AppMetadata.d.ts.map +1 -1
@@ -1,3 +1,332 @@
1
+ import { FinsembleWindow } from "../common/FinsembleWindow";
2
+ import { SpawnParams, TabbedGlobalSpawnParams } from "../platform/services/window/types";
3
+ import { StandardError, StandardErrorCallback, StandardPromise } from "../types";
4
+ import { WindowIdentifier, WindowDescriptor, WindowLocator, ShowWindowParams } from "../platform/services/window/types";
5
+ import { MonitorCommand, MonitorInfoDetail } from "../common/Monitors";
6
+ import { FDC3AppDefinition } from "../platform/services/types";
7
+ export declare type ComponentDescriptor = Record<string, any>;
8
+ export declare type ComponentList = Record<string, ComponentDescriptor>;
9
+ export declare type MonitorInfo = any;
10
+ export declare type SpawnResponse = {
11
+ windowDescriptor: WindowDescriptor;
12
+ windowIdentifier: WindowIdentifier;
13
+ launchGroupWindows?: string[];
14
+ /**
15
+ * @internal
16
+ */
17
+ finWindow: FinsembleWindow;
18
+ };
19
+ export declare type SpawnTabCollectionResponse = {
20
+ id: string;
21
+ windows: SpawnResponse[];
22
+ };
23
+ export { MonitorInfoDetail, MonitorCommand, WindowDescriptor, WindowIdentifier, SpawnParams, WindowLocator };
24
+ export { MonitorCoordinates, MonitorInfoTaskbarDetails, MonitorRectDetails } from "../FEA";
25
+ export { IconDescriptor, IconUrl, IconInitials, CompositeComponentData, LaunchGroupComponentData, MonitorChoice, SpawnOptions, PositionTypes, WindowInterop, WindowTypes, AppIcons, ConnectId, } from "../platform/services/window/types";
26
+ /**
27
+ * Get a list of registered components from <i>components.json</i>.
28
+ *
29
+ * ```javascript
30
+ * const {err, data} = await FSBL.Clients.AppsClient.getComponentList();
31
+ * if(!err){
32
+ * console.log(data);
33
+ * // {
34
+ * // "Toolbar": { ... },
35
+ * // "Tour": { ... },
36
+ * // ...
37
+ * // }
38
+ * }
39
+ * ```
40
+ *
41
+ * @param cb Callback returns an object map of components. Each component object
42
+ * contains the default config for that component.
43
+ */
44
+ export declare const getComponentList: (cb?: StandardErrorCallback<ComponentList>) => StandardPromise<ComponentList>;
45
+ /**
46
+ * Get the component config for a specific component from <i>components.json</i>.
47
+ *
48
+ * ```javascript
49
+ * const {err, data} = await FSBL.Clients.AppsClient.getComponentDefaultConfig("ChartIQ Example App");
50
+ * ```
51
+ *
52
+ * @param componentType The type of the component.
53
+ * @param cb Callback returns the default config (windowDescriptor) for the requested componentType.
54
+ */
55
+ export declare const getComponentDefaultConfig: (componentType: string, cb?: StandardErrorCallback<ComponentDescriptor>) => StandardPromise<ComponentDescriptor>;
56
+ /**
57
+ * Get monitorInfo (dimensions and position) for all monitors. Returns an array of monitorInfo objects. See <a href="/docs/reference/typedocs/modules/AppsClient#getMonitorInfo">AppsClient#getMonitorInfo</a> for the format of a monitorInfo object.
58
+ *
59
+ * ```javascript
60
+ * const {err, data} = await FSBL.Clients.AppsClient.getMonitorInfoAll();
61
+ * if(!err){
62
+ * console.log(`There are ${data.length} monitors.`);
63
+ * }
64
+ * ```
65
+ *
66
+ * @param cb Returns an array of monitorInfo objects.
67
+ */
68
+ export declare const getMonitorInfoAll: (cb?: StandardErrorCallback<MonitorInfoDetail[]>) => StandardPromise<MonitorInfoDetail[]>;
69
+ /**
70
+ * Get monitor information for a given windowIdentifier or for a specific monitor.
71
+ * If neither the identifier nor monitor are provided, returns the monitorInfo for the current window.
72
+ *
73
+ *
74
+ * The information returned contains:
75
+ *
76
+ * **monitorRect** - The full dimensions for the monitor. <br/>
77
+ * **availableRect** - The dimensions for the available space on the monitor (not including the Windows task bar). <br/>
78
+ * **position** - A number that represents the position of the monitor. The primary monitor is zero. <br/>
79
+ * **whichMonitor** - Contains the string "primary" if it is the primary monitor. <br/>
80
+ *
81
+ * The dimensions are supplemented with the following additional members:
82
+ *
83
+ * **width** - The width calculated as right - left. <br/>
84
+ * **height** - The height calculated as bottom - top. <br/>
85
+ *
86
+ * ```javascript
87
+ * // Get the info for the monitor that the calling app is on
88
+ * const {err, data} = await FSBL.Clients.AppsClient.getMonitorInfo();
89
+ * if(!err){
90
+ * console.log(data);
91
+ * // Example results:
92
+ * // {
93
+ * // availableRect: {width, height, bottom, left, ...},
94
+ * // deviceId: "123456",
95
+ * // deviceScaleFactor: 2,
96
+ * // displayDeviceActive: true,
97
+ * // monitor: {dipRect, scaledRect},
98
+ * // monitorRect: {width, height, bottom, left, right, ...}
99
+ * // name: "device0",
100
+ * // position: 0,
101
+ * // taskbar: {top, left, right, bottom, width, ...}
102
+ * // whichMonitor: "primary"
103
+ * // }
104
+ * }
105
+ *
106
+ * // Get monitor info for a given window
107
+ * const {err, data} = await FSBL.Clients.AppsClient.getMonitorInfo({
108
+ * windowIdentifier: {
109
+ * windowName: "ABC-uuid"
110
+ * }
111
+ * });
112
+ * if(!err){
113
+ * console.log(`App ABC-uuid is currently on the monitor with index ${data.position}`);
114
+ * }
115
+ *
116
+ * // Get the dimensions of the first non-primary monitor
117
+ * const {err, data} = await FSBL.Clients.AppsClient.getMonitorInfo({monitor: 1});
118
+ * if(!err){
119
+ * console.log("Available dimensions for monitor[1]: ", data.monitorRect);
120
+ * console.log("Available dimensions, minus claimed space, for monitor[1]: ", data.availableRect);
121
+ * }
122
+ * ```
123
+ *
124
+ * @param params
125
+ * @param params.windowIdentifier The windowIdentifier to get the monitorInfo. If undefined, this points to the current window.
126
+ * @param params.monitor If passed then a specific monitor is identified. Valid values include:
127
+ *
128
+ * <b>"mine"</b> - Place the window on the same monitor as the calling window.
129
+ *
130
+ * Integer value from 0-n (0 being the primary monitor).
131
+ *
132
+ * <b>"primary"</b> indicates the user's primary monitor.
133
+ *
134
+ * <b>"all"</b> - Put a copy of the component on each monitor.
135
+ * @param cb Returns a monitorInfo object containing the monitorRect and availableRect.
136
+ *
137
+ * @returns A promise that resolves to a monitorInfo.
138
+ */
139
+ export declare const getMonitorInfo: (params?: {
140
+ monitor?: MonitorCommand;
141
+ windowIdentifier?: WindowIdentifier;
142
+ }, cb?: StandardErrorCallback<MonitorInfoDetail>) => StandardPromise<MonitorInfoDetail>;
143
+ /**
144
+ * Displays a window and relocates/resizes it according to the values contained in parameters. If the specified window is in a group or tabbed, it is unsnapped/ungrouped/untabbed from the other windows.
145
+ * If invoked on a tabbed window or a window in a group, the window is removed from the tab/group.
146
+ *
147
+ * Caution: A window can inherit parameters only once, at the time when it’s spawned. When the component already exists, changing parameters other than positioning arguments (monitor, relativeWindow, top, bottom, left, right, width, height) has no effect.
148
+ *
149
+ * ```javascript
150
+ * FSBL.Clients.AppsClient.showWindow({windowName: "Welcome Component-86-3416-Finsemble", componentType: "Welcome Component"}, {spawnIfNotFound: true}, (err, data)=> {});
151
+ * ```
152
+ * @param windowIdentifier A windowIdentifier. This is an object containing windowName and componentType. If you dont' speciry windowName, Finsemble tries to find it by componentType.
153
+ * @param params Configuration settings from the <i><a href="/docs/reference/ConfigReference#finsemble-appd---manifest-window">finsemble.appd[].manifest.window</a></i> section of the application manifest may be used as parameters to this function, except for the `options` element.
154
+ * These are the same as <a href="/docs/reference/typedocs/modules/AppsClient#spawn">AppsClient.spawn()</a> with the following exceptions:
155
+ * <ul>
156
+ * <li><b>monitor</b> - Same as spawn() except that null or undefined means don't move the window to a different monitor.</li>
157
+ * <li><b>left</b> - Same as spawn() except that null or undefined means don't move the window from current horizontal location.</li>
158
+ * <li><b>top</b> - Same as spawn() except that null or undefined means don't move the window from current vertical location.</li>
159
+ * <li><b>slave</b> - Cannot be set for an existing window. Goes into effect only if the window is spawned. In other words, use this only in conjunction with spawnIfNotFound.</li>
160
+ * <li><b>spawnIfNotFound</b> - If true, spawns a new window if the requested one cannot be found. Note: only works if the windowIdentifier contains a componentType.</li>
161
+ * <li><b>autoFocus</b> - Whether or not the window should be in focus when shown.</li>
162
+ * </ul>
163
+ * @param cb Callback to be invoked after the function is completed regardless of whether the call fails or succeeds.
164
+ * Callback contains two arguments in the following order:
165
+ * <ol>
166
+ * <li><b>error</b>: an object containing details related to the reason the call failed and where the exception occurred. This object is null if the call has succeeded.</li>
167
+ * <li><b>data</b>: an object with the following information:
168
+ * <ul>
169
+ * <li><b>windowIdentifier</b> - The <a href="/docs/productivity/componentTypesAndWindowNames">WindowIdentifier</a> for the new window.</li>
170
+ * <li><b>windowDescriptor</b> - The <a href="/docs/productivity/componentTypesAndWindowNames">WindowDescriptor</a> of the new window.</li>
171
+ * <li><b>finWindow</b> - A <code>finWindow</code> object referencing the new window.</li>
172
+ * </ul>
173
+ * </li>
174
+ * </ol>
175
+ */
176
+ export declare const showWindow: (windowLocator: WindowLocator, params: ShowWindowParams, cb?: StandardErrorCallback<SpawnResponse>) => StandardPromise<SpawnResponse>;
177
+ /**
178
+ * A convenient method for dealing with a common use case of toggling the appearance and disappearance of a child window when a user presses a button of a dropdown menus.
179
+ * Call this method from the click handler for your element. Your child window needs to close itself on blur events.
180
+ * Caution: A window can inherit parameters only once, at the time when it’s spawned. When the component already exists, changing parameters other than positioning arguments (monitor, relativeWindow, top, bottom, left, right, width, height) has no effect.
181
+ * @param element The DOM element, or selector, clicked by the end user.
182
+ * @param windowIdentifier Identifies the child window
183
+ * @param params Parameters to be passed to <a href="/docs/reference/typedocs/modules/AppsClient#showWindow">AppsClient.showWindow()</a> if the child window is allowed to open
184
+ */
185
+ export declare const toggleWindowOnClick: (element: HTMLElement, windowLocator: WindowLocator, params: ShowWindowParams) => void;
186
+ /**
187
+ * Asks the Launcher service to spawn a new component. You can also specify any of the following parameters in <i>public/config/components.json</i>, which will
188
+ * then operate as the default for that value.
189
+ *
190
+ * The launcher parameters mimic CSS window positioning.
191
+ * For example, to set a full screen window, use `{left: 0, top: 0, right: 0, bottom: 0}`.
192
+ * This is functionally equivalent to `{left: 0, top: 0, width: "100%", height: "100%"}`.
193
+ *
194
+ * You can also spawn more than one component at a time by using a single action, such as clicking a button on a menu.
195
+ * See https://github.com/ChartIQ/finsemble-seed/tree/recipes/SpawnComponentGroup for an example of spawning a component group.
196
+ *
197
+ * ```javascript
198
+ * FSBL.Clients.AppsClient.spawn("Welcome Component", {left: 0, top: 0, position: "relative"}, (err, data)=> {});
199
+ * ```
200
+ * @param component The application or component to spawn.
201
+ * @param params Configuration settings from the <i><a href="/docs/reference/ConfigReference#finsemble-appd---manifest-window">finsemble.appd[].manifest.window</a></i> section of the application manifest may be used as parameters to this function, except for the `options` element.
202
+ * @param cb Function invoked after the window is created
203
+ */
204
+ export declare const spawn: (component: string, params: SpawnParams, cb?: StandardErrorCallback<SpawnResponse>) => Promise<{
205
+ error?: StandardError;
206
+ response?: SpawnResponse | undefined;
207
+ }>;
208
+ /**
209
+ * Spawns a set of apps and assembles them into a tab collection. you can specify spawn parameters for the entire collection
210
+ * or for individual apps. However, positioning parameters (e.g. `left` or `top`) are disregarded when set on individual apps.
211
+ *
212
+ * ```javascript
213
+ * await FSBL.Clients.AppsClient.spawnTabCollection({
214
+ * componentList: [{appID: "Welcome Component", individualParams: { alwaysOnTop : true } }],
215
+ * globalParams: { left: 100, top: 100}
216
+ * });
217
+ * ```
218
+ * @param __namedParameters.componentList - The apps to open. Each should be an object that contains the appID (from AppD) and an optional set of SpawnParams.
219
+ * @param __namedParameters.globalParams - Positioning parameters for the collection. If omitted, the collection is spawned in a default location.
220
+ * @returns - Resolves to an object that contains the ID of the tab collection and the list of window names for the spawned apps
221
+ */
222
+ export declare const spawnTabCollection: ({ componentList, globalParams, }: {
223
+ componentList: {
224
+ appID: string;
225
+ individualParams?: SpawnParams;
226
+ }[];
227
+ globalParams?: TabbedGlobalSpawnParams | undefined;
228
+ }, cb?: StandardErrorCallback<SpawnTabCollectionResponse>) => StandardPromise<SpawnTabCollectionResponse>;
229
+ /**
230
+ * Returns a windowIdentifier for the current window.
231
+ *
232
+ * ```javascript
233
+ * const myWindowIdentifier = await FSBL.Clients.AppsClient.getMyWindowIdentifier();
234
+ * console.log(myWindowIdentifier);
235
+ * // {
236
+ * // windowName: "ABC-uuid",
237
+ * // componentType: "ABC"
238
+ * // }
239
+ * ```
240
+ *
241
+ * @param cb Callback function returns windowIdentifier for this window. (Optional or use the returned Promise)
242
+ * @returns A promise that resolves to a windowIdentifier.
243
+ */
244
+ export declare const getMyWindowIdentifier: (cb?: ((windowIdentifier: WindowIdentifier) => void) | undefined) => Promise<WindowIdentifier>;
245
+ /**
246
+ * Gets the windowDescriptor for all open windows.
247
+ *
248
+ * :::note
249
+ * This returns descriptors even if the window is not part of the workspace.
250
+ * :::
251
+ *
252
+ * ```javascript
253
+ * FSBL.Clients.AppsClient.getActiveDescriptors(function (error, response) {
254
+ * if (error) {
255
+ * Logger.system.error("Error getting active descriptors: ", + JSON.stringify(error));
256
+ * } else {
257
+ * const activeDescriptors = response;
258
+ * //{
259
+ * // ...
260
+ * // Toolbar-1-Finsemble: {...},
261
+ * // Welcome-Component-80-6453-Finsemble: {...},
262
+ * // ...
263
+ * //}
264
+ * }
265
+ * });
266
+ * ```
267
+ * @param cb Callback returns an object containing windowDescriptors keyed by name.
268
+ */
269
+ export declare const getActiveDescriptors: (cb?: StandardErrorCallback<Record<string, WindowDescriptor>>) => StandardPromise<Record<string, WindowDescriptor>>;
270
+ /**
271
+ * @private Adds a custom component.
272
+ * @ignore
273
+ */
274
+ export declare const addUserDefinedComponent: (params: {
275
+ name: string;
276
+ url: string;
277
+ }, cb?: StandardErrorCallback<void>) => StandardPromise<void>;
278
+ /**
279
+ * @private Adds a custom component.
280
+ * @ignore
281
+ */
282
+ export declare const removeUserDefinedComponent: (params: {
283
+ name: string;
284
+ url?: string;
285
+ }, cb?: StandardErrorCallback<void>) => StandardPromise<void>;
286
+ /**
287
+ * Adds to Finsemble new FDC3 App definition(s), in the form of an array of FDC3 2.0 AppD
288
+ * records. After the apps are added, a user can launch them via the Apps
289
+ * Client, `fdc3.open`, `fdc3.raiseIntent` or Toolbar launcher menus.
290
+ *
291
+ * ```javascript
292
+ * const {err, data} = await FSBL.Clients.AppsClient.addApps([anFDC3App]);
293
+ * ```
294
+ *
295
+ * @param apps he array of FDC3 2.0 AppD records (`FDC3AppDefinition`) to add to Finsemble.
296
+ * @param cb The callback to be invoked after the apps are set or on error.
297
+ */
298
+ export declare const addApps: <T = any>(apps: FDC3AppDefinition[], cb?: StandardErrorCallback<T> | undefined) => StandardPromise<T>;
299
+ /**
300
+ * Removes from Finsemble one or more apps,specified via an array of `appId` values.
301
+ * After an app is removed, it can no longer be launched via the
302
+ * AppsClient, `fdc3.open`, `fdc3.raiseIntent` or launcher menus. Removed
303
+ * applications are automatically removed from launcher menus.
304
+ *
305
+ * Existing instances of the apps are NOT closed automatically when removed,
306
+ * either from the current workspace or saved workspaces. However, saved
307
+ * workspaces containing them are unable to launch them when the workspace
308
+ * is loaded.
309
+ *
310
+ * ```javascript
311
+ * const {err, data} = await FSBL.Clients.AppsClient.removeApps(["fdc3AppId"]);
312
+ * ```
313
+ *
314
+ * @param apps The array of appIds to remove
315
+ * @param cb The callback to be invoked after the apps are removed or on error.
316
+ *
317
+ */
318
+ export declare const removeApps: <T = any>(appIds: string[], cb?: StandardErrorCallback<T> | undefined) => StandardPromise<T>;
319
+ /**
320
+ * Retrieves the AppD records for a specified list `appIds` known to Finsemble.
321
+ *
322
+ * @param appIds an array of app IDs to retrieve. If not provided, Finsemble retrieves all apps.
323
+ * @param cb The callback to be invoked after the apps are retrieved or on error.
324
+ * @returns A promise that resolves to an array of app objects.
325
+ */
326
+ export declare const getApps: <T = any>(appIds?: string[], cb?: StandardErrorCallback<T> | undefined) => StandardPromise<T>;
327
+ /**
328
+ * @ignore
329
+ */
1
330
  export declare const AppsClient: {
2
331
  /**
3
332
  * For backward compatibility
@@ -12,79 +341,89 @@ export declare const AppsClient: {
12
341
  */
13
342
  onReady: (cb?: any) => void;
14
343
  addToGroups: (params: {
15
- windowIdentifier?: import("./launcherClient").WindowIdentifier | undefined;
344
+ windowIdentifier?: WindowIdentifier | undefined;
16
345
  groupNames?: string[] | undefined;
17
- }, cb: (err?: import("..").StandardError) => void) => Promise<{
18
- err: import("..").StandardError;
346
+ }, cb: (err?: StandardError) => void) => Promise<{
347
+ err: StandardError;
19
348
  }>;
20
- getGroupsForWindow: (params: {
21
- windowIdentifier: import("./launcherClient").WindowIdentifier;
22
- } | null, cb?: Function) => Promise<unknown>;
23
- removeWindowsFromGroup: (params: {
24
- windowList?: string[] | import("./launcherClient").WindowIdentifier[] | undefined;
25
- groupName?: string | undefined;
26
- }, cb?: Function) => Promise<unknown>;
349
+ addUserDefinedComponent: (params: {
350
+ name: string;
351
+ url: string;
352
+ }, cb?: StandardErrorCallback<void>) => StandardPromise<void>;
27
353
  addWindowsToGroup: (params: {
28
- windowList?: string[] | import("./launcherClient").WindowIdentifier[] | undefined;
354
+ windowList?: string[] | WindowIdentifier[] | undefined;
29
355
  groupName?: string | undefined;
30
356
  }, cb?: Function) => Promise<unknown>;
357
+ bringWindowsToFront: (params?: {
358
+ windowList?: string[] | undefined;
359
+ } | undefined, cb?: StandardErrorCallback<void> | undefined) => StandardPromise<void>;
31
360
  createWindowGroup: (params: {
32
- windowList?: string[] | import("./launcherClient").WindowIdentifier[] | undefined;
361
+ windowList?: string[] | WindowIdentifier[] | undefined;
33
362
  groupName?: string | undefined;
34
363
  }, cb?: Function) => Promise<unknown>;
35
- minimizeWindows: (params?: {
36
- windowList?: string[] | undefined;
37
- } | undefined, cb?: import("..").StandardErrorCallback<void> | undefined) => import("..").StandardPromise<void>;
364
+ getActiveAndPendingWindowNames: (cb?: Function) => Promise<{
365
+ err: any;
366
+ data: any;
367
+ }>;
368
+ getActiveDescriptors: (cb?: StandardErrorCallback<Record<string, WindowDescriptor>>) => StandardPromise<Record<string, WindowDescriptor>>;
369
+ getComponentDefaultConfig: (componentType: string, cb?: StandardErrorCallback<ComponentDescriptor>) => StandardPromise<ComponentDescriptor>;
370
+ getComponentList: (cb?: StandardErrorCallback<ComponentList>) => StandardPromise<ComponentList>;
371
+ getComponentsThatCanReceiveDataTypes: (params: {
372
+ dataTypes: string[];
373
+ }, cb?: Function) => Promise<unknown>;
374
+ getGroupsForWindow: (params: {
375
+ windowIdentifier: WindowIdentifier;
376
+ } | null, cb?: Function) => Promise<unknown>;
377
+ getMonitor: (windowIdentifier: WindowIdentifier, cb?: StandardErrorCallback<any> | undefined) => StandardPromise<any>;
378
+ getMonitorInfo: (params?: {
379
+ monitor?: MonitorCommand;
380
+ windowIdentifier?: WindowIdentifier;
381
+ }, cb?: StandardErrorCallback<MonitorInfoDetail>) => StandardPromise<MonitorInfoDetail>;
382
+ getMonitorInfoAll: (cb?: StandardErrorCallback<MonitorInfoDetail[]>) => StandardPromise<MonitorInfoDetail[]>;
383
+ getMyWindowIdentifier: (cb?: ((windowIdentifier: WindowIdentifier) => void) | undefined) => Promise<WindowIdentifier>;
384
+ getPendingWindows: () => StandardPromise<string[]>;
38
385
  hyperFocus: (params: {
39
- windowList?: string[] | import("./launcherClient").WindowIdentifier[] | undefined;
386
+ windowList?: string[] | WindowIdentifier[] | undefined;
40
387
  groupName?: string | undefined;
41
388
  componentType?: string | undefined;
42
389
  }, cb?: (() => void) | undefined) => Promise<void>;
43
- bringWindowsToFront: (params?: {
390
+ minimizeWindows: (params?: {
44
391
  windowList?: string[] | undefined;
45
- } | undefined, cb?: import("..").StandardErrorCallback<void> | undefined) => import("..").StandardPromise<void>;
46
- getComponentsThatCanReceiveDataTypes: (params: {
47
- dataTypes: string[];
48
- }, cb?: Function) => Promise<unknown>;
392
+ } | undefined, cb?: StandardErrorCallback<void> | undefined) => StandardPromise<void>;
393
+ registerComponent: (params: {
394
+ componentType: string;
395
+ manifest: ComponentDescriptor;
396
+ }, cb: StandardErrorCallback<string>) => StandardPromise<string>;
49
397
  removeUserDefinedComponent: (params: {
50
398
  name: string;
51
- url?: string | undefined;
52
- }, cb?: import("..").StandardErrorCallback<void> | undefined) => import("..").StandardPromise<void>;
53
- addUserDefinedComponent: (params: {
54
- name: string;
55
- url: string;
56
- }, cb?: import("..").StandardErrorCallback<void> | undefined) => import("..").StandardPromise<void>;
57
- getPendingWindows: () => import("..").StandardPromise<string[]>;
58
- getActiveAndPendingWindowNames: (cb?: Function) => Promise<{
59
- err: any;
60
- data: any;
61
- }>;
62
- getActiveDescriptors: (cb?: import("..").StandardErrorCallback<Record<string, import("./launcherClient").WindowDescriptor>> | undefined) => import("..").StandardPromise<Record<string, import("./launcherClient").WindowDescriptor>>;
63
- getMyWindowIdentifier: (cb?: ((windowIdentifier: import("./launcherClient").WindowIdentifier) => void) | undefined) => Promise<import("./launcherClient").WindowIdentifier>;
64
- getMonitor: (windowIdentifier: import("./launcherClient").WindowIdentifier, cb?: import("..").StandardErrorCallback<any> | undefined) => import("..").StandardPromise<any>;
65
- spawn: (component: string, params: import("./launcherClient").SpawnParams, cb?: import("..").StandardErrorCallback<import("./launcherClient").SpawnResponse> | undefined) => Promise<{
66
- error?: import("..").StandardError;
67
- response?: import("./launcherClient").SpawnResponse | undefined;
399
+ url?: string;
400
+ }, cb?: StandardErrorCallback<void>) => StandardPromise<void>;
401
+ removeWindowsFromGroup: (params: {
402
+ windowList?: string[] | WindowIdentifier[] | undefined;
403
+ groupName?: string | undefined;
404
+ }, cb?: Function) => Promise<unknown>;
405
+ showWindow: (windowLocator: WindowLocator, params: ShowWindowParams, cb?: StandardErrorCallback<SpawnResponse>) => StandardPromise<SpawnResponse>;
406
+ spawn: (component: string, params: SpawnParams, cb?: StandardErrorCallback<SpawnResponse>) => Promise<{
407
+ error?: StandardError;
408
+ response?: SpawnResponse | undefined;
68
409
  }>;
69
- toggleWindowOnClick: (element: HTMLElement, windowLocator: import("./launcherClient").WindowLocator, params: any) => void;
70
- showWindow: (windowLocator: import("./launcherClient").WindowLocator, params: any, cb?: import("..").StandardErrorCallback<import("./launcherClient").SpawnResponse> | undefined) => import("..").StandardPromise<import("./launcherClient").SpawnResponse>;
410
+ spawnTabCollection: ({ componentList, globalParams, }: {
411
+ componentList: {
412
+ appID: string;
413
+ individualParams?: SpawnParams;
414
+ }[];
415
+ globalParams?: TabbedGlobalSpawnParams | undefined;
416
+ }, cb?: StandardErrorCallback<SpawnTabCollectionResponse>) => StandardPromise<SpawnTabCollectionResponse>;
417
+ toggleWindowOnClick: (element: HTMLElement, windowLocator: WindowLocator, params: ShowWindowParams) => void;
71
418
  unRegisterComponent: (params: {
72
419
  componentType: string;
73
- }, cb?: import("..").StandardErrorCallback<string> | undefined) => import("..").StandardPromise<string>;
74
- registerComponent: (params: {
75
- componentType: string;
76
- manifest: import("./launcherClient").ComponentDescriptor;
77
- }, cb: import("..").StandardErrorCallback<string>) => import("..").StandardPromise<string>;
78
- getMonitorInfo: (params?: {
79
- monitor?: import("./launcherClient").MonitorCommand | undefined;
80
- windowIdentifier?: import("./launcherClient").WindowIdentifier | undefined;
81
- }, cb?: import("..").StandardErrorCallback<import("./launcherClient").MonitorInfoDetail> | undefined) => import("..").StandardPromise<import("./launcherClient").MonitorInfoDetail>;
82
- getMonitorInfoAll: (cb?: import("..").StandardErrorCallback<import("./launcherClient").MonitorInfoDetail[]> | undefined) => import("..").StandardPromise<import("./launcherClient").MonitorInfoDetail[]>;
83
- getComponentDefaultConfig: (componentType: string, cb?: import("..").StandardErrorCallback<import("./launcherClient").ComponentDescriptor> | undefined) => import("..").StandardPromise<import("./launcherClient").ComponentDescriptor>;
84
- getComponentList: (cb?: import("..").StandardErrorCallback<import("./launcherClient").ComponentList> | undefined) => import("..").StandardPromise<import("./launcherClient").ComponentList>;
85
- addApps: <T = any>(apps: import("../platform/services/types").FDC3AppDefinition[], cb?: import("..").StandardErrorCallback<T> | undefined) => import("..").StandardPromise<T>;
86
- removeApps: <T_1 = any>(appIds: string[], cb?: import("..").StandardErrorCallback<T_1> | undefined) => import("..").StandardPromise<T_1>;
87
- getApps: <T_2 = any>(appIds?: string[] | undefined, cb?: import("..").StandardErrorCallback<T_2> | undefined) => import("..").StandardPromise<T_2>;
420
+ }, cb?: StandardErrorCallback<string> | undefined) => StandardPromise<string>;
421
+ addApps: <T = any>(apps: FDC3AppDefinition[], cb?: StandardErrorCallback<T> | undefined) => StandardPromise<T>;
422
+ removeApps: <T_1 = any>(appIds: string[], cb?: StandardErrorCallback<T_1> | undefined) => StandardPromise<T_1>;
423
+ getApps: <T_2 = any>(appIds?: string[], cb?: StandardErrorCallback<T_2> | undefined) => StandardPromise<T_2>;
88
424
  };
425
+ /**
426
+ * @ignore
427
+ */
89
428
  export default AppsClient;
90
429
  //# sourceMappingURL=appsClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appsClient.d.ts","sourceRoot":"","sources":["../../../src/clients/appsClient.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;IACtB;;;;OAIG;;IAIH;;;;OAIG;mBACY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgClB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"appsClient.d.ts","sourceRoot":"","sources":["../../../src/clients/appsClient.ts"],"names":[],"mappings":"AAiCA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGxH,OAAO,EACN,cAAc,EACd,iBAAiB,EAGjB,MAAM,oBAAoB,CAAC;AAiB5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAK/D,oBAAY,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACtD,oBAAY,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;AAChE,oBAAY,WAAW,GAAG,GAAG,CAAC;AAC9B,oBAAY,aAAa,GAAG;IAC3B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,EAAE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