@interopio/home-ui-react 1.0.0 → 1.1.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 (124) hide show
  1. package/README.md +30 -32
  2. package/common/types.d.ts +1 -1
  3. package/constants/defaults.d.ts +1 -1
  4. package/constants/storageKeys.d.ts +0 -1
  5. package/decoders/context-menu.d.ts +1 -1
  6. package/decoders/layouts.d.ts +2 -2
  7. package/executors/applicationActions.d.ts +2 -4
  8. package/executors/layoutActions.d.ts +4 -0
  9. package/executors/notificationsSort.d.ts +7 -0
  10. package/executors/types.d.ts +20 -0
  11. package/executors/workspaceActions.d.ts +2 -3
  12. package/helpers/a11y.d.ts +3 -3
  13. package/hooks/index.d.ts +5 -0
  14. package/hooks/useApplications.d.ts +2 -2
  15. package/hooks/useExecuteApplicationAction.d.ts +2 -2
  16. package/hooks/useExecuteLayoutAction.d.ts +2 -0
  17. package/hooks/useExecuteWorkspaceAction.d.ts +2 -2
  18. package/hooks/useFavoriteEntities.d.ts +2 -1
  19. package/hooks/useFrame.d.ts +2 -2
  20. package/hooks/useInvokeInteropMethod.d.ts +2 -2
  21. package/hooks/useLayouts.d.ts +2 -0
  22. package/hooks/useNotifications.d.ts +2 -0
  23. package/hooks/useNotificationsSort.d.ts +5 -0
  24. package/hooks/useRestoreLayout.d.ts +2 -0
  25. package/hooks/useRestoreWorkspace.d.ts +2 -2
  26. package/hooks/useSearch.d.ts +2 -2
  27. package/hooks/useStartApplication.d.ts +1 -1
  28. package/hooks/useStorage.d.ts +1 -1
  29. package/hooks/useWorkspaces.d.ts +1 -1
  30. package/index.css +1 -1
  31. package/index.d.ts +6 -9
  32. package/index.js +9 -9
  33. package/index.js.map +1 -1
  34. package/index.mjs +2742 -3312
  35. package/index.mjs.map +1 -1
  36. package/lib/applications-section/applications-section.d.ts +1 -2
  37. package/lib/applications-section/helpers.d.ts +5 -0
  38. package/lib/base-section/base-section-header.d.ts +1 -1
  39. package/lib/base-section/base-section-item.d.ts +4 -4
  40. package/lib/base-section/base-section.d.ts +2 -3
  41. package/lib/base-section/{base-section.helpers.d.ts → helpers.d.ts} +1 -1
  42. package/lib/base-section/{base-section.types.d.ts → types.d.ts} +1 -1
  43. package/lib/button/button.d.ts +1 -1
  44. package/lib/button-group/button-group.d.ts +2 -2
  45. package/lib/context-menu/constants.d.ts +3 -0
  46. package/lib/context-menu/context-menu.d.ts +2 -2
  47. package/lib/context-menu/dropdown-button/dropdown-button.d.ts +2 -3
  48. package/lib/context-menu/{context-menu-types.d.ts → types.d.ts} +2 -2
  49. package/lib/dialog/dialog.d.ts +8 -0
  50. package/lib/favorites-section/favorites-section.d.ts +1 -2
  51. package/lib/favorites-section/{favorites-section.helpers.d.ts → helpers.d.ts} +1 -1
  52. package/lib/icon/icon.d.ts +1 -1
  53. package/lib/icon-components/browser-notifications-icon.d.ts +1 -2
  54. package/lib/icon-components/reopen-prompt-icon.d.ts +1 -2
  55. package/lib/icon-components/warning-icon.d.ts +1 -2
  56. package/lib/icon-components/window-placement-icon.d.ts +1 -2
  57. package/lib/img-icon/img-icon.d.ts +1 -1
  58. package/lib/{glue42-home-provider/glue42-home-provider.d.ts → io-connect-home-provider/io-connect-home-provider.d.ts} +3 -3
  59. package/lib/launchpad/features/profile-settings/profile-icon.d.ts +6 -0
  60. package/lib/launchpad/launchpad.context.d.ts +6 -1
  61. package/lib/launchpad/launchpad.d.ts +1 -1
  62. package/lib/layouts-panel/available-layouts.d.ts +6 -0
  63. package/lib/layouts-panel/constants.d.ts +6 -0
  64. package/lib/layouts-panel/helpers.d.ts +4 -0
  65. package/lib/layouts-panel/layout-actions.d.ts +9 -0
  66. package/lib/layouts-panel/layouts-notification.d.ts +6 -0
  67. package/lib/layouts-panel/layouts-panel.d.ts +2 -0
  68. package/lib/layouts-panel/types.d.ts +19 -0
  69. package/lib/login/index.d.ts +3 -3
  70. package/lib/login/login-logo.d.ts +1 -1
  71. package/lib/login/reducers.d.ts +1 -1
  72. package/lib/login/types.d.ts +1 -1
  73. package/lib/logo/logo.d.ts +2 -0
  74. package/lib/notifications-panel/constants.d.ts +9 -0
  75. package/lib/notifications-panel/index.d.ts +3 -0
  76. package/lib/notifications-panel/notification.d.ts +6 -0
  77. package/lib/notifications-panel/notifications-badge.d.ts +5 -0
  78. package/lib/notifications-panel/notifications-icon.d.ts +6 -0
  79. package/lib/notifications-panel/notifications-panel.d.ts +1 -2
  80. package/lib/notifications-panel/types.d.ts +7 -0
  81. package/lib/panels/launchpad-slide-panel.d.ts +1 -1
  82. package/lib/panels/slide-panel.d.ts +1 -1
  83. package/lib/permissions-setup/permissions-card.d.ts +1 -1
  84. package/lib/permissions-setup/permissions-list.d.ts +2 -3
  85. package/lib/permissions-setup/permissions-setup-flow.d.ts +1 -2
  86. package/lib/permissions-setup/permissions-setup.d.ts +1 -1
  87. package/lib/permissions-setup/permissions-steps.d.ts +1 -2
  88. package/lib/permissions-setup/something-went-wrong.d.ts +1 -2
  89. package/lib/permissions-setup/types.d.ts +1 -1
  90. package/lib/permissions-setup/unsuccessful-setup.d.ts +1 -2
  91. package/lib/search/search-bar/search-bar.d.ts +1 -1
  92. package/lib/search/search-results-section/helpers.d.ts +3 -0
  93. package/lib/search/search-results-section/search-results-section.d.ts +1 -2
  94. package/lib/search/search-results-section/{search-results-section.types.d.ts → types.d.ts} +4 -4
  95. package/lib/section/{section.helpers.d.ts → helpers.d.ts} +1 -1
  96. package/lib/section/section.context.d.ts +1 -1
  97. package/lib/section/section.d.ts +2 -3
  98. package/lib/section/{section.types.d.ts → types.d.ts} +1 -1
  99. package/lib/settings-card/settings-card.d.ts +1 -2
  100. package/lib/workspaces-section/{workspaces-section.helpers.d.ts → helpers.d.ts} +2 -2
  101. package/lib/workspaces-section/workspaces-section.d.ts +1 -2
  102. package/package.json +6 -6
  103. package/constants/contextMenuActions.d.ts +0 -15
  104. package/lib/applications-section/applications-section.helpers.d.ts +0 -5
  105. package/lib/launchpad/features/profile-settings/user-profile-modal.d.ts +0 -10
  106. package/lib/layout-settings/constants.d.ts +0 -2
  107. package/lib/layout-settings/index.d.ts +0 -2
  108. package/lib/layout-settings/layout-actions.d.ts +0 -8
  109. package/lib/layout-settings/layout-item.d.ts +0 -9
  110. package/lib/layout-settings/layout-notification.d.ts +0 -7
  111. package/lib/layout-settings/layout-settings-container.d.ts +0 -3
  112. package/lib/layout-settings/layout-settings.d.ts +0 -12
  113. package/lib/layout-settings/layout-startup.d.ts +0 -2
  114. package/lib/layout-settings/layout-types.d.ts +0 -30
  115. package/lib/modal/modal.d.ts +0 -9
  116. package/lib/notifications-panel/notification-toast.d.ts +0 -17
  117. package/lib/notifications-panel/notifications-modal.d.ts +0 -4
  118. package/lib/notifications-panel/useNotificationsSort.d.ts +0 -13
  119. package/lib/search/search-results-section/search-results-section.helpers.d.ts +0 -3
  120. /package/assets/{glue-logo.json → io-connect-browser-logo.json} +0 -0
  121. /package/lib/{glue42-home-provider → io-connect-home-provider}/constants.d.ts +0 -0
  122. /package/lib/{glue42-home-provider → io-connect-home-provider}/helpers.d.ts +0 -0
  123. /package/lib/{glue42-home-provider → io-connect-home-provider}/types.d.ts +0 -0
  124. /package/lib/workspaces-section/{workspaces-section.types.d.ts → types.d.ts} +0 -0
package/README.md CHANGED
@@ -36,10 +36,10 @@ The [`@interopio/home-ui-react`](https://www.npmjs.com/package/@interopio/home-u
36
36
 
37
37
  ### Hooks
38
38
 
39
- The `useGlue42Home()` hook provides information about the current state of the required browser permissions:
39
+ The `useIOConnectHome()` hook provides information about the current state of the required browser permissions:
40
40
 
41
41
  ```javascript
42
- const { permissions } = useGlue42Home();
42
+ const { permissions } = useIOConnectHome();
43
43
  ```
44
44
 
45
45
  The returned object has the following properties:
@@ -64,7 +64,7 @@ The following lists the more important default components exported by the librar
64
64
 
65
65
  | Component | Description |
66
66
  |-----------|-------------|
67
- | `<Glue42HomeProvider />` | Context provider component containing information about the current state of the required browser permissions. |
67
+ | `<IOConnectHomeProvider />` | Context provider component containing information about the current state of the required browser permissions. |
68
68
  | `<Launchpad />` | The main component containing the Launchpad. |
69
69
  | `<LaunchpadSlidePanel />` | Wrapper component around the `<Launchpad />` component allowing it to open as a sliding panel. |
70
70
  | `<PermissionsSetup />` | Component providing a setup flow for obtaining the required browser permissions from the user. |
@@ -106,10 +106,8 @@ The following demonstrates the default structure of the `<Launchpad />` componen
106
106
  <header>
107
107
  <SearchBar />
108
108
  <div>
109
- <Icon />
110
- <span>
111
- {/* User initials. */}
112
- </span>
109
+ <NotificationsIcon />
110
+ <ProfileIcon />
113
111
  </div>
114
112
  <Icon />
115
113
  </header>
@@ -167,13 +165,13 @@ The Home App provides a process for authentication and authorization using Auth0
167
165
 
168
166
  The following examples demonstrate a basic implementations of a Home App with authentication and browser permission flows, using the default library hooks and components.
169
167
 
170
- Wrapping the `<App />` component in the `<Glue42HomeProvider />` and the `<Auth0Provider />` context provider components in order to obtain the necessary data related to authentication and browser permissions:
168
+ Wrapping the `<App />` component in the `<IOConnectHomeProvider />` and the `<Auth0Provider />` context provider components in order to obtain the necessary data related to authentication and browser permissions:
171
169
 
172
170
  ```javascript
173
171
  import { StrictMode } from "react";
174
172
  import * as ReactDOM from "react-dom/client";
175
173
  import { Auth0Provider } from "@auth0/auth0-react";
176
- import { Glue42HomeProvider } from "@glue42/home-ui-react";
174
+ import { IOConnectHomeProvider } from "@interopio/home-ui-react";
177
175
  import App from "./app/App";
178
176
 
179
177
  const root = ReactDOM.createRoot(
@@ -189,9 +187,9 @@ root.render(
189
187
  redirect_uri: window.location.origin,
190
188
  }}
191
189
  >
192
- <Glue42HomeProvider>
190
+ <IOConnectHomeProvider>
193
191
  <App />
194
- </Glue42HomeProvider>
192
+ </IOConnectHomeProvider>
195
193
  </Auth0Provider>
196
194
  </StrictMode>
197
195
  );
@@ -201,23 +199,23 @@ Creating a Workspaces App that will act as a Main App for the **io.Connect Brows
201
199
 
202
200
  ```javascript
203
201
  import { useAuth0 } from "@auth0/auth0-react";
204
- import Glue42CorePlus from "@glue42/core-plus";
205
- import { GlueProvider } from "@glue42/react-hooks";
206
- import GlueWorkspaces from "@glue42/workspaces-api";
207
- import Workspaces from "@glue42/workspaces-ui-react";
208
- import { PermissionsSetup, useGlue42Home } from "@glue42/home-ui-react";
202
+ import IOBrowserPlatform from "@interopio/browser-platform";
203
+ import { IOConnectProvider } from "@interopio/react-hooks";
204
+ import IOWorkspaces from "@interopio/workspaces-api";
205
+ import Workspaces from "@interopio/workspaces-ui-react";
206
+ import { PermissionsSetup, useIOConnectHome } from "@interopio/home-ui-react";
209
207
  import LoginPage from "../login/LoginPage";
210
208
  import LaunchpadButton from "../LaunchpadButton";
211
- import "@glue42/workspaces-ui-react/dist/styles/workspaces.css";
209
+ import "@interopio/workspaces-ui-react/dist/styles/workspaces.css";
212
210
 
213
211
  const App = () => {
214
212
  const { isAuthenticated } = useAuth0();
215
- const { permission } = useGlue42Home();
213
+ const { permission } = useIOConnectHome();
216
214
 
217
215
  // Settings for initializing the io.Connect Browser platform.
218
- const platformSettings = {
219
- webPlatform: {
220
- factory: Glue42CorePlus,
216
+ const ioConnectSettings = {
217
+ browserPlatform: {
218
+ factory: IOBrowserPlatform,
221
219
  config: {
222
220
  workspaces: {
223
221
  src: "/",
@@ -226,8 +224,8 @@ const App = () => {
226
224
  layouts: {
227
225
  mode: "idb"
228
226
  },
229
- glue: {
230
- libraries: [GlueWorkspaces]
227
+ browser: {
228
+ libraries: [IOWorkspaces]
231
229
  },
232
230
  licenseKey: "my-license-key"
233
231
  }
@@ -245,7 +243,7 @@ const App = () => {
245
243
  };
246
244
 
247
245
  return (
248
- <GlueProvider settings={platformSettings}>
246
+ <IOConnectProvider settings={platformSettings}>
249
247
  <Workspaces
250
248
  components={{
251
249
  // Replace the default Workspaces App logo
@@ -253,7 +251,7 @@ const App = () => {
253
251
  header: { LogoComponent: LaunchpadButton }
254
252
  }}
255
253
  />
256
- </GlueProvider>
254
+ </IOConnectProvider>
257
255
  );
258
256
  };
259
257
 
@@ -264,7 +262,7 @@ Implementing a login page:
264
262
 
265
263
  ```javascript
266
264
  import { useAuth0 } from "@auth0/auth0-react";
267
- import { LoginLoader, LoginAuth0 } from "@glue42/home-ui-react";
265
+ import { LoginLoader, LoginAuth0 } from "@interopio/home-ui-react";
268
266
  import { LoginLoaderHeading } from "./LoginLoaderHeading";
269
267
 
270
268
  const LoginPage = () => {
@@ -288,24 +286,24 @@ Implementing the button that will open the Launchpad:
288
286
  ```javascript
289
287
  import { useContext } from "react";
290
288
  import { useAuth0 } from "@auth0/auth0-react";
291
- import { GlueContext } from "@glue42/react-hooks";
292
- import { GlueLogo } from "@glue42/workspaces-ui-react";
293
- import { LaunchPadSlidePanel } from "@glue42/home-ui-react";
289
+ import { IOConnectContext } from "@interopio/react-hooks";
290
+ import { Logo } from "@interopio/workspaces-ui-react";
291
+ import { LaunchPadSlidePanel } from "@interopio/home-ui-react";
294
292
 
295
293
  const LaunchpadButton = () => {
296
294
  const { logout, user } = useAuth0();
297
- const glue = useContext(GlueContext);
295
+ const io = useContext(IOConnectContext);
298
296
 
299
297
  // Logout handler.
300
298
  const handleLogout = async () => {
301
299
  // Shutting down the io.Connect Browser platform.
302
- await glue.webPlatform?.system.shutdown();
300
+ await io.webPlatform?.system.shutdown();
303
301
 
304
302
  logout();
305
303
  };
306
304
 
307
305
  // Slide panel that contains the `<Launchpad />` component with its default structure.
308
- return <LaunchPadSlidePanel user={user} onLogout={handleLogout} icon={<GlueLogo />} />
306
+ return <LaunchPadSlidePanel user={user} onLogout={handleLogout} icon={<Logo />} />
309
307
  };
310
308
 
311
309
  export default LaunchpadButton;
package/common/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { SectionItemType } from '../lib/section/section.types';
1
+ import { SectionItemType } from '../lib/section/types';
2
2
  export type FavoriteEntity = Omit<SectionItemType, 'isOpen'>;
@@ -1,2 +1,2 @@
1
- export declare const DEFAULT_GLOBAL_LAYOUT = "Welcome";
1
+ export declare const DEFAULT_SYSTEM_LAYOUT = "Welcome";
2
2
  export declare const DEFAULT_DISPLAY_COUNT = 5;
@@ -1,3 +1,2 @@
1
1
  export declare const SELECTED_LAYOUT_SESSION_STORAGE_KEY = "interop_home_ui_selected_layout";
2
- export declare const DEFAULT_LAYOUT_LOCAL_STORAGE_KEY = "interop_home_ui_default_layout";
3
2
  export declare const FAVORITE_ENTITIES_LOCAL_STORAGE_KEY = "interop_home_ui_favorite_entities";
@@ -1,3 +1,3 @@
1
1
  import { Decoder } from 'decoder-validate';
2
- import { ContextMenuAction } from '../lib/context-menu/context-menu-types';
2
+ import { ContextMenuAction } from '../lib/context-menu/types';
3
3
  export declare const contextMenuActionDecoder: Decoder<ContextMenuAction>;
@@ -1,3 +1,3 @@
1
1
  import { Decoder } from 'decoder-validate';
2
- import { LayoutStorageValue } from '../lib/layout-settings/layout-types';
3
- export declare const layoutStorageValueDecoder: Decoder<LayoutStorageValue | null>;
2
+ import { LayoutSummary } from '../lib/layouts-panel/types';
3
+ export declare const layoutStorageValueDecoder: Decoder<LayoutSummary | null>;
@@ -1,6 +1,4 @@
1
- import { Glue42Web } from '@glue42/web';
2
- import { Glue42Workspaces } from '@glue42/workspaces-api';
3
- import { SectionItemType } from '../lib/section/section.types';
1
+ import { ApplicationActionExecutor } from './types';
4
2
  export declare const applicationActionExecutors: {
5
- [key: string]: (glue: Glue42Web.API, item: SectionItemType, frame?: Glue42Workspaces.Frame) => Promise<void>;
3
+ [key: string]: ApplicationActionExecutor;
6
4
  };
@@ -0,0 +1,4 @@
1
+ import { LayoutActionExecutor } from './types';
2
+ export declare const layoutActionExecutors: {
3
+ [key: string]: LayoutActionExecutor;
4
+ };
@@ -0,0 +1,7 @@
1
+ import { IOConnectBrowser } from '@interopio/browser';
2
+ import { SortKey } from '../lib/notifications-panel/types';
3
+ export declare const sortByTimestamp: (notifications: IOConnectBrowser.Notifications.NotificationData[], descending: boolean) => IOConnectBrowser.Notifications.NotificationData[];
4
+ export declare const sortBySeverity: (notifications: IOConnectBrowser.Notifications.NotificationData[], descending: boolean) => IOConnectBrowser.Notifications.NotificationData[];
5
+ export declare const sortExecutors: {
6
+ [Key in SortKey]: (notifications: IOConnectBrowser.Notifications.NotificationData[], descending: boolean) => IOConnectBrowser.Notifications.NotificationData[];
7
+ };
@@ -0,0 +1,20 @@
1
+ import { IOConnectBrowser } from '@interopio/browser';
2
+ import { IOConnectDesktop } from '@interopio/desktop';
3
+ import { IOConnectWorkspaces } from '@interopio/workspaces-api';
4
+ import { Layout, LayoutSummary } from '../lib/layouts-panel/types';
5
+ import { SectionItemType } from '../lib/section/types';
6
+ export type LayoutActionExecutor = (config: {
7
+ io: IOConnectBrowser.API | IOConnectDesktop.API;
8
+ layout: Layout;
9
+ setDefaultLayout: (layout: LayoutSummary) => Promise<void>;
10
+ }) => void;
11
+ export type ApplicationActionExecutor = (config: {
12
+ io: IOConnectBrowser.API | IOConnectDesktop.API;
13
+ item: SectionItemType;
14
+ frame?: IOConnectWorkspaces.Frame;
15
+ }) => void;
16
+ export type WorkspaceActionExecutor = (config: {
17
+ io: IOConnectBrowser.API | IOConnectDesktop.API;
18
+ item: SectionItemType;
19
+ removeFavorite: (id: string) => void;
20
+ }) => void;
@@ -1,5 +1,4 @@
1
- import { Glue42Web } from '@glue42/web';
2
- import { SectionItemType } from '../lib/section/section.types';
1
+ import { WorkspaceActionExecutor } from './types';
3
2
  export declare const workspaceActionExecutors: {
4
- [key: string]: (glue: Glue42Web.API, item: SectionItemType) => Promise<void>;
3
+ [key: string]: WorkspaceActionExecutor;
5
4
  };
package/helpers/a11y.d.ts CHANGED
@@ -3,8 +3,8 @@ export type ActivationEvent<T extends HTMLElement = HTMLElement> = React.Keyboar
3
3
  /**
4
4
  * If a keypress is the equivalent of a mouse click event. This would be pressing ENTER or SPACEBAR.
5
5
  */
6
- export declare const isClickKeypress: (e: React.KeyboardEvent<HTMLElement>) => boolean;
7
- type handler = (e: ActivationEvent) => void;
6
+ export declare const isClickKeypress: (event: React.KeyboardEvent<HTMLElement>) => boolean;
7
+ type handler = (event: ActivationEvent) => void;
8
8
  /**
9
9
  * Utility function to convert an `onClick` prop into a keyboard-accessible equivalent.
10
10
  *
@@ -25,7 +25,7 @@ export declare const onClickA11y: (clickHandler?: handler, keydownHandler?: hand
25
25
  } | {
26
26
  tabIndex: number;
27
27
  onClick: handler;
28
- onKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;
28
+ onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
29
29
  };
30
30
  type KeyboardNavigationProps = {
31
31
  event: React.KeyboardEvent<HTMLElement>;
package/hooks/index.d.ts CHANGED
@@ -3,8 +3,12 @@ export * from './useApplicationsInstances';
3
3
  export * from './useFavoriteEntities';
4
4
  export * from './useFrame';
5
5
  export * from './useInvokeInteropMethod';
6
+ export * from './useLayouts';
7
+ export * from './useNotifications';
8
+ export * from './useNotificationsSort';
6
9
  export * from './usePressedKeys';
7
10
  export * from './useRestoreWorkspace';
11
+ export * from './useRestoreLayout';
8
12
  export * from './useSearch';
9
13
  export * from './useStartApplication';
10
14
  export * from './useStorage';
@@ -12,4 +16,5 @@ export * from './useWorkspaces';
12
16
  export * from './useWorkspacesInstances';
13
17
  export * from './useExecuteApplicationAction';
14
18
  export * from './useExecuteWorkspaceAction';
19
+ export * from './useExecuteLayoutAction';
15
20
  export * from './useUA';
@@ -1,2 +1,2 @@
1
- import { Glue42Web } from '@glue42/web';
2
- export declare const useApplications: () => Glue42Web.AppManager.Application[];
1
+ import { IOConnectBrowser } from '@interopio/browser';
2
+ export declare const useApplications: () => IOConnectBrowser.AppManager.Application[];
@@ -1,2 +1,2 @@
1
- import { SectionItemType } from '../lib/section/section.types';
2
- export declare const useExecuteApplicationAction: () => (item: SectionItemType, actionName: string) => Promise<void>;
1
+ import { SectionItemType } from '../lib/section/types';
2
+ export declare const useExecuteApplicationAction: () => (item: SectionItemType, actionName: string) => void;
@@ -0,0 +1,2 @@
1
+ import { Layout, LayoutSummary } from '../lib/layouts-panel/types';
2
+ export declare const useExecuteLayoutAction: () => (layout: Layout, actionName: string, setDefaultLayout: (layout: LayoutSummary) => Promise<void>) => void;
@@ -1,2 +1,2 @@
1
- import { SectionItemType } from '../lib/section/section.types';
2
- export declare const useExecuteWorkspaceAction: () => (item: SectionItemType, actionName: string) => Promise<void>;
1
+ import { SectionItemType } from '../lib/section/types';
2
+ export declare const useExecuteWorkspaceAction: () => (item: SectionItemType, actionName: string) => void;
@@ -1,6 +1,7 @@
1
1
  import type { FavoriteEntity } from '../common/types';
2
- import type { SectionItemType } from '../lib/section/section.types';
2
+ import type { SectionItemType } from '../lib/section/types';
3
3
  export declare const useFavoriteEntities: () => {
4
4
  favoriteEntities: FavoriteEntity[];
5
5
  toggleFavorite: ({ isOpen, ...item }: SectionItemType) => void;
6
+ removeFavorite: (id: string) => void;
6
7
  };
@@ -1,2 +1,2 @@
1
- import { Glue42Workspaces } from '@glue42/workspaces-api';
2
- export declare const useFrame: () => Glue42Workspaces.Frame | undefined;
1
+ import { IOConnectWorkspaces } from '@interopio/workspaces-api';
2
+ export declare const useFrame: () => IOConnectWorkspaces.Frame | undefined;
@@ -1,2 +1,2 @@
1
- import { Glue42Search } from '@glue42/search-api';
2
- export declare const useInvokeInteropMethod: () => (action: Glue42Search.MainAction) => Promise<any>;
1
+ import { IOConnectSearch } from '@interopio/search-api';
2
+ export declare const useInvokeInteropMethod: () => (action: IOConnectSearch.MainAction) => Promise<any>;
@@ -0,0 +1,2 @@
1
+ import type { Layout } from '../lib/layouts-panel/types';
2
+ export declare const useLayouts: () => Layout[];
@@ -0,0 +1,2 @@
1
+ import { IOConnectBrowser } from '@interopio/browser';
2
+ export declare const useNotifications: () => IOConnectBrowser.Notifications.NotificationData[];
@@ -0,0 +1,5 @@
1
+ import { SortKey } from '../lib/notifications-panel/types';
2
+ export declare const useNotificationsSort: () => {
3
+ onNotificationsSort: (key: SortKey) => void;
4
+ sortedNotifications: import("@interopio/browser").IOConnectBrowser.Notifications.NotificationData[];
5
+ };
@@ -0,0 +1,2 @@
1
+ import { LayoutSummary } from '../lib/layouts-panel/types';
2
+ export declare const useRestoreLayout: () => (name: string, onSuccessfulLayoutRestore?: ((layout: LayoutSummary) => void) | undefined) => Promise<void>;
@@ -1,2 +1,2 @@
1
- import { Glue42Workspaces } from '@glue42/workspaces-api';
2
- export declare const useRestoreWorkspace: () => (id: string, modifier: string | null) => Promise<Glue42Workspaces.Workspace | undefined>;
1
+ import { IOConnectWorkspaces } from '@interopio/workspaces-api';
2
+ export declare const useRestoreWorkspace: () => (id: string, modifier: string | null) => Promise<IOConnectWorkspaces.Workspace | undefined>;
@@ -1,5 +1,5 @@
1
- import { Glue42Search } from '@glue42/search-api';
1
+ import { IOConnectSearch } from '@interopio/search-api';
2
2
  export declare const useSearch: (searchTerm: string) => {
3
- resultsToRender: Glue42Search.QueryResult[];
3
+ resultsToRender: IOConnectSearch.QueryResult[];
4
4
  isLoading: boolean;
5
5
  };
@@ -1 +1 @@
1
- export declare const useStartApplication: () => (id: string, modifier: string | null) => Promise<import("@glue42/web").Glue42Web.AppManager.Instance | import("@glue42/workspaces-api").Glue42Workspaces.WorkspaceWindow>;
1
+ export declare const useStartApplication: () => (id: string, modifier: string | null) => Promise<import("@interopio/browser").IOConnectBrowser.AppManager.Instance | import("@interopio/workspaces-api").IOConnectWorkspaces.WorkspaceWindow>;
@@ -1,4 +1,4 @@
1
1
  import { Decoder } from 'decoder-validate';
2
2
  type StorageType = 'localStorage' | 'sessionStorage';
3
- export declare const useStorage: <T>(type: StorageType, key: string, decoder: Decoder<T | null>) => readonly [T | null, (value: T | ((val: T | null) => T) | null) => void];
3
+ export declare const useStorage: <T>(type: StorageType, key: string, decoder: Decoder<T | null>) => readonly [T | null, (value: T | null) => void];
4
4
  export {};
@@ -1,2 +1,2 @@
1
- import type { Workspace } from '../lib/workspaces-section/workspaces-section.types';
1
+ import type { Workspace } from '../lib/workspaces-section/types';
2
2
  export declare const useWorkspaces: () => Workspace[];