@openfin/workspace 24.0.7 → 24.1.0-alpha.06dbecdb

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.
@@ -1 +1,2 @@
1
1
  import '@common/test/fin-mocks';
2
+ import '@common/test/logger-mock';
@@ -63,6 +63,8 @@ export declare class ThemeStorageController {
63
63
  /**
64
64
  * Synchronize the current palette and scheme with workspace's storage instance if
65
65
  * storage based theming is enabled. Only syncs when user has explicitly selected a scheme.
66
+ *
67
+ * Wrapped in try/catch so it does not throw
66
68
  */
67
69
  trySynchronizeWorkspaceStorage: () => Promise<void>;
68
70
  /**
@@ -3,7 +3,7 @@ export type StorageProxy = {
3
3
  setItem: (data: string, value: string) => Promise<void>;
4
4
  destroy: () => Promise<void>;
5
5
  };
6
- export declare const createStorageProxy: (url: string) => Promise<StorageProxy>;
6
+ export declare const createStorageProxy: (url: string, isEnterprise: boolean) => Promise<StorageProxy>;
7
7
  /**
8
8
  * Ensure the workspace storage proxy window exists. Recreates it if it was previously destroyed
9
9
  * (e.g. when the last browser window closed with preventQuitOnLastWindowClosed true and a new
@@ -2874,7 +2874,6 @@ export type WorkspacePlatformOverrideCallback = OpenFin.OverrideCallback<Workspa
2874
2874
  export type BrowserOverrideCallback = WorkspacePlatformOverrideCallback;
2875
2875
  /**
2876
2876
  * Content menu entry shape cloned and re-exported from UI Library.
2877
- * @internal
2878
2877
  */
2879
2878
  export type ContentMenuEntry = {
2880
2879
  bookmarked?: boolean;
@@ -2902,7 +2901,6 @@ export type BookmarkDockEntryPayload = {
2902
2901
  };
2903
2902
  /**
2904
2903
  * Represents dock entry for favorites
2905
- * @internal
2906
2904
  */
2907
2905
  export type DockEntry = {
2908
2906
  type: 'folder';
@@ -0,0 +1,5 @@
1
+ export declare const mockLogger: {
2
+ debug: jest.Mock<any, any, any>;
3
+ warn: jest.Mock<any, any, any>;
4
+ error: jest.Mock<any, any, any>;
5
+ };
@@ -45,7 +45,6 @@ export declare enum PopupWindowMenuType {
45
45
  RenameSupertab = "rename-supertab",
46
46
  AddEditBookmark = "add-edit-bookmark",
47
47
  DropdownMenu = "dropdown-menu",
48
- ZoomControls = "zoom-controls",
49
48
  TabSearch = "tab-search"
50
49
  }
51
50
  export type BookmarkButtonPayload = {
@@ -80,15 +79,21 @@ export type BookmarkDialogChannelMessage = BasePopupMenuChannelMessage & {
80
79
  type: PopupWindowMenuType.AddEditBookmark;
81
80
  payload: BookmarkButtonPayload;
82
81
  };
83
- export type ZoomControlsDialogPayload = {
84
- selectedViewIdentity?: OpenFin.Identity;
85
- zoomPercent?: number;
86
- openedViaMouseClick?: boolean;
87
- };
88
- export type ZoomControlsDialogChannelMessage = BasePopupMenuChannelMessage & {
89
- type: PopupWindowMenuType.ZoomControls;
90
- payload: ZoomControlsDialogPayload;
82
+ /** Sent from browser to zoom dialog window to position and hydrate UI (initial open or live sync). */
83
+ export type ZoomControlsDialogStateMessage = {
84
+ /**
85
+ * The identity of the window the dialog/menu invocation came from.
86
+ */
87
+ parentIdentity: OpenFin.Identity;
88
+ x: number;
89
+ y: number;
90
+ payload: {
91
+ selectedViewIdentity?: OpenFin.Identity;
92
+ zoomPercent?: number;
93
+ openedViaMouseClick?: boolean;
94
+ };
91
95
  };
96
+ export declare const ZOOM_DIALOG_CHANNEL_ACTION: "state";
92
97
  export type DropdownMenuChannelMessage = BasePopupMenuChannelMessage & {
93
98
  type: PopupWindowMenuType.DropdownMenu;
94
99
  payload: {
@@ -2,19 +2,11 @@
2
2
  "@openfin/notifications": [
3
3
  {
4
4
  "type": "explicit",
5
- "version": "2.14.0-alpha-4509",
5
+ "version": "2.14.0-alpha-4520",
6
6
  "packageName": "client-api/package.json",
7
7
  "issuer": "client-api/src/notifications.ts"
8
8
  }
9
9
  ],
10
- "@openfin/microsoft365": [
11
- {
12
- "type": "explicit",
13
- "version": "^1.1.0",
14
- "packageName": "client-api/package.json",
15
- "issuer": "client-api/src/integrations/microsoft.ts"
16
- }
17
- ],
18
10
  "title-case": [
19
11
  {
20
12
  "type": "explicit",
@@ -29,6 +21,14 @@
29
21
  "issuer": "common/src/utils/color-linking.ts"
30
22
  }
31
23
  ],
24
+ "@openfin/microsoft365": [
25
+ {
26
+ "type": "explicit",
27
+ "version": "^1.1.0",
28
+ "packageName": "client-api/package.json",
29
+ "issuer": "client-api/src/integrations/microsoft.ts"
30
+ }
31
+ ],
32
32
  "lodash.debounce": [
33
33
  {
34
34
  "type": "explicit",
@@ -43,28 +43,28 @@
43
43
  "issuer": "common/src/utils/layout.ts"
44
44
  }
45
45
  ],
46
- "react-i18next": [
46
+ "lodash.clonedeep": [
47
47
  {
48
48
  "type": "explicit",
49
- "version": "15.4.0",
49
+ "version": "4.5.0",
50
50
  "packageName": "common/package.json",
51
- "issuer": "common/src/api/i18next.ts"
51
+ "issuer": "common/src/utils/layout.ts"
52
52
  }
53
53
  ],
54
- "i18next": [
54
+ "react-i18next": [
55
55
  {
56
56
  "type": "explicit",
57
- "version": "^23.7.16",
57
+ "version": "15.4.0",
58
58
  "packageName": "common/package.json",
59
59
  "issuer": "common/src/api/i18next.ts"
60
60
  }
61
61
  ],
62
- "lodash.clonedeep": [
62
+ "i18next": [
63
63
  {
64
64
  "type": "explicit",
65
- "version": "4.5.0",
65
+ "version": "^23.7.16",
66
66
  "packageName": "common/package.json",
67
- "issuer": "common/src/utils/layout.ts"
67
+ "issuer": "common/src/api/i18next.ts"
68
68
  }
69
69
  ],
70
70
  "dexie": [