@openfin/workspace-platform 5.3.0 → 5.6.2

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 (42) hide show
  1. package/README.md +31 -4
  2. package/client-api/src/shapes.d.ts +283 -6
  3. package/client-api-platform/src/api/app-directory.d.ts +2 -2
  4. package/client-api-platform/src/api/browser/browser-module.d.ts +4 -2
  5. package/client-api-platform/src/api/browser/index.d.ts +5 -4
  6. package/client-api-platform/src/api/context-menu/browser-logo-handler.d.ts +10 -0
  7. package/client-api-platform/src/api/context-menu/index.d.ts +6 -0
  8. package/client-api-platform/src/api/pages/helper.d.ts +1 -1
  9. package/client-api-platform/src/api/pages/index.d.ts +6 -6
  10. package/client-api-platform/src/api/protocol.d.ts +8 -5
  11. package/client-api-platform/src/api/storage.d.ts +1 -1
  12. package/client-api-platform/src/api/theming.d.ts +5 -0
  13. package/client-api-platform/src/api/workspace-module.d.ts +2 -2
  14. package/client-api-platform/src/index.d.ts +36 -1
  15. package/client-api-platform/src/init/custom-actions.d.ts +3 -0
  16. package/client-api-platform/src/init/override-callback.d.ts +3 -2
  17. package/client-api-platform/src/init/theming.d.ts +9 -0
  18. package/client-api-platform/src/init/utils.d.ts +8 -2
  19. package/client-api-platform/src/shapes.d.ts +667 -20
  20. package/common/src/api/browser-protocol.d.ts +14 -0
  21. package/common/src/api/pages/attached.d.ts +0 -1
  22. package/common/src/api/pages/idb.d.ts +2 -2
  23. package/common/src/api/pages/index.d.ts +7 -1
  24. package/common/src/api/pages/legacy.d.ts +2 -2
  25. package/common/src/api/pages/shapes.d.ts +9 -0
  26. package/common/src/api/protocol.d.ts +2 -1
  27. package/common/src/api/theming.d.ts +62 -0
  28. package/common/src/utils/context-menu.d.ts +12 -0
  29. package/common/src/utils/defer-auto-show.d.ts +18 -0
  30. package/common/src/utils/env.d.ts +6 -7
  31. package/common/src/utils/global-context-menu.d.ts +2 -0
  32. package/common/src/utils/landing-page.d.ts +11 -0
  33. package/common/src/utils/layout.d.ts +2 -1
  34. package/common/src/utils/merge-deep.d.ts +6 -0
  35. package/common/src/utils/strings.d.ts +0 -2
  36. package/common/src/utils/theming.d.ts +57 -0
  37. package/common/src/utils/window.d.ts +5 -0
  38. package/index.js +1 -1
  39. package/index.js.map +1 -1
  40. package/package.json +1 -1
  41. package/search-api/src/client/internal.d.ts +1 -1
  42. package/search-api/src/shapes.d.ts +45 -2
@@ -1,3 +1,4 @@
1
1
  /// <reference types="openfin-adapter/fin" />
2
- import type { BrowserInitConfig } from '@client-platform/shapes';
3
- export declare const getOverrideCallback: (initOptions: BrowserInitConfig) => OpenFin.OverrideCallback<OpenFin.PlatformProvider>;
2
+ import type { BrowserInitConfig } from '../../../client-api-platform/src/shapes';
3
+ import { WorkspacePlatformProvider } from '..';
4
+ export declare const getOverrideCallback: (initOptions: BrowserInitConfig) => OpenFin.OverrideCallback<WorkspacePlatformProvider>;
@@ -0,0 +1,9 @@
1
+ import { CustomThemes } from '../shapes';
2
+ export declare const getThemes: () => CustomThemes;
3
+ /**
4
+ * initTheming()
5
+ * Accepts an array of CustomThemes objects and stores it
6
+ * @param customPaletteOptions - optional - array of custom color pallettes
7
+ * @returns array of custom theme objects
8
+ */
9
+ export default function initTheming(customPalettes: CustomThemes): void;
@@ -1,5 +1,11 @@
1
1
  /// <reference types="openfin-adapter/fin" />
2
- export declare function overrideViewOptions(options: Partial<OpenFin.ViewOptions>): void;
2
+ import { Identity } from 'openfin-adapter';
3
+ import type { CustomThemeOptions } from '../../../common/src/api/theming';
4
+ import { BrowserCreateWindowRequest } from '..';
5
+ export declare function overrideViewOptions(options: Partial<OpenFin.ViewOptions>, initOptions: OpenFin.ViewOptions): any;
6
+ export declare function preserveInteropIfManifestConflict(opts: Partial<OpenFin.ViewOptions>, fetchManifest: ({ manifestUrl: string }: {
7
+ manifestUrl: any;
8
+ }, callerIdentity: Identity) => any, callerIdentity: Identity): Promise<any>;
3
9
  export declare const filterSnapshotWindows: (win: OpenFin.WindowOptions) => boolean;
4
10
  /**
5
11
  * fitToMonitor()
@@ -35,5 +41,5 @@ export declare const initWorkspacePlatformOptions: (options: LegacyWindowOptions
35
41
  * @param options - options used to handle layout settings
36
42
  * @returns processed or unprocesseed options
37
43
  */
38
- export declare const applyBrowserDefaults: (options: OpenFin.PlatformWindowCreationOptions) => OpenFin.PlatformWindowCreationOptions;
44
+ export declare const applyBrowserDefaults: (options: OpenFin.PlatformWindowCreationOptions, initOptions: BrowserCreateWindowRequest, theme: CustomThemeOptions) => OpenFin.PlatformWindowCreationOptions;
39
45
  export {};