@openfin/workspace-platform 22.5.21 → 23.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.
Files changed (40) hide show
  1. package/client-api/src/integrations/microsoft.utils.d.ts +6 -6
  2. package/client-api-platform/src/api/controllers/theme-storage-controller-store.d.ts +2 -1
  3. package/client-api-platform/src/api/controllers/theme-storage-controller.d.ts +18 -4
  4. package/client-api-platform/src/api/dock.d.ts +4 -2
  5. package/client-api-platform/src/api/language.d.ts +1 -1
  6. package/client-api-platform/src/api/pages/open-pages.d.ts +2 -2
  7. package/client-api-platform/src/api/theming.d.ts +11 -0
  8. package/client-api-platform/src/api/theming.test.d.ts +1 -0
  9. package/client-api-platform/src/init/override-callback/page-defaults.d.ts +1 -1
  10. package/client-api-platform/src/init/override-callback/view-options.d.ts +1 -1
  11. package/client-api-platform/src/init/theming.d.ts +2 -1
  12. package/client-api-platform/src/shapes.d.ts +16 -12
  13. package/common/src/api/pages/idb.d.ts +2 -4
  14. package/common/src/api/protocol/browser.d.ts +8 -6
  15. package/common/src/api/protocol/shapes/workspace.d.ts +8 -0
  16. package/common/src/api/protocol/workspace-platform.d.ts +25 -23
  17. package/common/src/api/provider.d.ts +1 -1
  18. package/common/src/api/storefront.d.ts +5 -5
  19. package/common/src/api/theming.d.ts +16 -6
  20. package/common/src/utils/enterprise-menu.d.ts +1 -1
  21. package/common/src/utils/global-context-menu.d.ts +1 -1
  22. package/common/src/utils/layout.d.ts +1 -2
  23. package/common/src/utils/logger.d.ts +22 -0
  24. package/common/src/utils/menu-window-provider.d.ts +6 -6
  25. package/common/src/utils/modal-bounds.d.ts +1 -1
  26. package/common/src/utils/namespaced-local-storage.d.ts +2 -2
  27. package/common/src/utils/popup-window.d.ts +15 -0
  28. package/common/src/utils/shared-emitter.d.ts +4 -4
  29. package/common/src/utils/types.d.ts +1 -1
  30. package/common/src/utils/window.d.ts +8 -0
  31. package/common/src/utils/workspace-modals.d.ts +1 -1
  32. package/dock3/src/shapes/shapes.d.ts +9 -1
  33. package/externals.report.json +51 -0
  34. package/index.js +1486 -1
  35. package/index.js.LICENSE.txt +1 -0
  36. package/index.js.map +1 -1
  37. package/package.json +11 -3
  38. package/search-api/src/provider/remote/info.d.ts +1 -1
  39. package/search-api/src/shapes.d.ts +22 -1
  40. package/workspace_platform.zip +0 -0
@@ -5,12 +5,12 @@ export default function makeSharedEmitter<EventMap extends {
5
5
  [key: string | number]: any[];
6
6
  }>(id: string): {
7
7
  emit: <EventKey extends keyof EventMap>(event: EventKey, ...payload: EventMap[EventKey]) => Promise<void>;
8
- addListener: <EventKey_1 extends keyof EventMap>(event: EventKey_1, listener: (...payload: EventMap[EventKey_1]) => void) => void;
8
+ addListener: <EventKey extends keyof EventMap>(event: EventKey, listener: (...payload: EventMap[EventKey]) => void) => void;
9
9
  /**
10
10
  * Creates a listener for a particular UUID instead of ApplicationUUID.Workspace.
11
11
  * @param uuid The UUID of the application to subscribe to.
12
12
  */
13
- addListenerWithUUID: (uuid: string) => <EventKey_1 extends keyof EventMap>(event: EventKey_1, listener: (...payload: EventMap[EventKey_1]) => void) => void;
14
- removeListener: <EventKey_2 extends keyof EventMap>(event: EventKey_2, listener: (...payload: EventMap[EventKey_2]) => void) => void;
15
- once: <EventKey_3 extends keyof EventMap>(event: EventKey_3, listener: (...payload: EventMap[EventKey_3]) => void) => void;
13
+ addListenerWithUUID: (uuid: string) => <EventKey extends keyof EventMap>(event: EventKey, listener: (...payload: EventMap[EventKey]) => void) => void;
14
+ removeListener: <EventKey extends keyof EventMap>(event: EventKey, listener: (...payload: EventMap[EventKey]) => void) => void;
15
+ once: <EventKey extends keyof EventMap>(event: EventKey, listener: (...payload: EventMap[EventKey]) => void) => void;
16
16
  };
@@ -54,5 +54,5 @@ type MissingKeys<T, U> = Exclude<keyof T, U>;
54
54
  * fooChecker(['bar', 'qux', 'baz']); // 'baz' is not assignable to type keyof Foo;
55
55
  * ```
56
56
  */
57
- export declare const makeKeyChecker: <T extends object>() => <K extends (keyof T)[]>(arr: K & (Exclude<keyof T, K[number]> extends never ? unknown : `Error: Missing keys: ${string & Exclude<keyof T, K[number]>}`)) => K;
57
+ export declare const makeKeyChecker: <T extends object>() => <K extends (keyof T)[]>(arr: K & (MissingKeys<T, K[number]> extends never ? unknown : `Error: Missing keys: ${string & MissingKeys<T, K[number]>}`)) => K;
58
58
  export {};
@@ -1,4 +1,5 @@
1
1
  import type OpenFin from '@openfin/core';
2
+ import type { SearchProviderInfo } from '../../../search-api/src/shapes';
2
3
  import { ApplicationUUID } from './application';
3
4
  export declare enum WindowName {
4
5
  Home = "openfin-home",
@@ -173,6 +174,13 @@ export declare const getComponentWindowStatus: () => Promise<{
173
174
  }>;
174
175
  export declare const deserializeWindowBounds: (serialized: string) => OpenFin.WindowBounds | null;
175
176
  export declare const serializeWindowBounds: (bounds: OpenFin.WindowBounds) => string;
177
+ /**
178
+ * Calculates the dynamic height for the home window based on subheader configuration
179
+ * @param baseHeight - The base height for the home window
180
+ * @param subHeaderConfig - The subheader configuration from search provider
181
+ * @returns The calculated height based on missing subheader elements
182
+ */
183
+ export declare const calculateHomeWindowHeight: (baseHeight: number, subHeaderConfig?: SearchProviderInfo["subHeader"]) => number;
176
184
  export declare const getWindowBounds: (window: OpenFin.Window) => Promise<OpenFin.RectangleByEdgePositions>;
177
185
  /**
178
186
  * calculates the percenage of the window that is present within the monitor (float in range 0-1)
@@ -33,7 +33,7 @@ export declare const showUpdateVersionModal: ({ identity, title, description }:
33
33
  identity: OpenFin.Identity;
34
34
  title: string;
35
35
  description: string;
36
- }) => Promise<ModalResponseEvent['data']>;
36
+ }) => Promise<ModalResponseEvent["data"]>;
37
37
  /**
38
38
  * Shows the intents resolver modal and returns the user's selection
39
39
  * @param request - The request containing modal configuration
@@ -75,4 +75,12 @@ export interface Dock3Config {
75
75
  };
76
76
  };
77
77
  }
78
- export type DockAllowedWindowOptions = Partial<Pick<OpenFin.PlatformWindowOptions, 'defaultCentered' | 'saveWindowState' | 'taskbarIconGroup' | 'defaultTop' | 'defaultLeft'>>;
78
+ export type DockAllowedWindowOptions = Partial<Pick<OpenFin.PlatformWindowOptions, 'defaultCentered' | 'saveWindowState' | 'taskbarIconGroup' | 'defaultTop' | 'defaultLeft'>> & {
79
+ experimental?: {
80
+ snapZone?: {
81
+ enabled: boolean;
82
+ threshold?: number;
83
+ locationPreference?: Array<'top' | 'bottom'>;
84
+ };
85
+ };
86
+ };
@@ -62,5 +62,56 @@
62
62
  "packageName": "common/package.json",
63
63
  "issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
64
64
  }
65
+ ],
66
+ "@radix-ui/react-icons": [
67
+ {
68
+ "type": "explicit-peer",
69
+ "version": ">=1.3.2 <2.0.0",
70
+ "rootVersion": "^1.3.2",
71
+ "packageName": "packages/ui-library/package.json",
72
+ "issuer": "packages/ui-library/dist/index.js"
73
+ }
74
+ ],
75
+ "framer-motion": [
76
+ {
77
+ "type": "explicit-peer",
78
+ "version": ">=11.13.1 <12.0.0",
79
+ "rootVersion": "11.13.1",
80
+ "packageName": "packages/ui-library/package.json",
81
+ "issuer": "packages/ui-library/dist/index.js"
82
+ }
83
+ ],
84
+ "lodash": [
85
+ {
86
+ "packageName": "packages/ui-library/package.json",
87
+ "issuer": "packages/ui-library/dist/index.js"
88
+ }
89
+ ],
90
+ "react": [
91
+ {
92
+ "type": "explicit-peer",
93
+ "version": ">=18.3.1 <19.0.0",
94
+ "rootVersion": "18.3.1",
95
+ "packageName": "packages/ui-library/package.json",
96
+ "issuer": "packages/ui-library/dist/index.js"
97
+ }
98
+ ],
99
+ "react-calendar": [
100
+ {
101
+ "type": "explicit-peer",
102
+ "version": ">=5.1.0 <6.0.0",
103
+ "rootVersion": "^5.1.0",
104
+ "packageName": "packages/ui-library/package.json",
105
+ "issuer": "packages/ui-library/dist/index.js"
106
+ }
107
+ ],
108
+ "styled-components": [
109
+ {
110
+ "type": "explicit-peer",
111
+ "version": ">=5.3.11 <6.0.0",
112
+ "rootVersion": "5.3.11",
113
+ "packageName": "packages/ui-library/package.json",
114
+ "issuer": "packages/ui-library/dist/index.js"
115
+ }
65
116
  ]
66
117
  }