@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.
- package/README.md +30 -32
- package/common/types.d.ts +1 -1
- package/constants/defaults.d.ts +1 -1
- package/constants/storageKeys.d.ts +0 -1
- package/decoders/context-menu.d.ts +1 -1
- package/decoders/layouts.d.ts +2 -2
- package/executors/applicationActions.d.ts +2 -4
- package/executors/layoutActions.d.ts +4 -0
- package/executors/notificationsSort.d.ts +7 -0
- package/executors/types.d.ts +20 -0
- package/executors/workspaceActions.d.ts +2 -3
- package/helpers/a11y.d.ts +3 -3
- package/hooks/index.d.ts +5 -0
- package/hooks/useApplications.d.ts +2 -2
- package/hooks/useExecuteApplicationAction.d.ts +2 -2
- package/hooks/useExecuteLayoutAction.d.ts +2 -0
- package/hooks/useExecuteWorkspaceAction.d.ts +2 -2
- package/hooks/useFavoriteEntities.d.ts +2 -1
- package/hooks/useFrame.d.ts +2 -2
- package/hooks/useInvokeInteropMethod.d.ts +2 -2
- package/hooks/useLayouts.d.ts +2 -0
- package/hooks/useNotifications.d.ts +2 -0
- package/hooks/useNotificationsSort.d.ts +5 -0
- package/hooks/useRestoreLayout.d.ts +2 -0
- package/hooks/useRestoreWorkspace.d.ts +2 -2
- package/hooks/useSearch.d.ts +2 -2
- package/hooks/useStartApplication.d.ts +1 -1
- package/hooks/useStorage.d.ts +1 -1
- package/hooks/useWorkspaces.d.ts +1 -1
- package/index.css +1 -1
- package/index.d.ts +6 -9
- package/index.js +9 -9
- package/index.js.map +1 -1
- package/index.mjs +2742 -3312
- package/index.mjs.map +1 -1
- package/lib/applications-section/applications-section.d.ts +1 -2
- package/lib/applications-section/helpers.d.ts +5 -0
- package/lib/base-section/base-section-header.d.ts +1 -1
- package/lib/base-section/base-section-item.d.ts +4 -4
- package/lib/base-section/base-section.d.ts +2 -3
- package/lib/base-section/{base-section.helpers.d.ts → helpers.d.ts} +1 -1
- package/lib/base-section/{base-section.types.d.ts → types.d.ts} +1 -1
- package/lib/button/button.d.ts +1 -1
- package/lib/button-group/button-group.d.ts +2 -2
- package/lib/context-menu/constants.d.ts +3 -0
- package/lib/context-menu/context-menu.d.ts +2 -2
- package/lib/context-menu/dropdown-button/dropdown-button.d.ts +2 -3
- package/lib/context-menu/{context-menu-types.d.ts → types.d.ts} +2 -2
- package/lib/dialog/dialog.d.ts +8 -0
- package/lib/favorites-section/favorites-section.d.ts +1 -2
- package/lib/favorites-section/{favorites-section.helpers.d.ts → helpers.d.ts} +1 -1
- package/lib/icon/icon.d.ts +1 -1
- package/lib/icon-components/browser-notifications-icon.d.ts +1 -2
- package/lib/icon-components/reopen-prompt-icon.d.ts +1 -2
- package/lib/icon-components/warning-icon.d.ts +1 -2
- package/lib/icon-components/window-placement-icon.d.ts +1 -2
- package/lib/img-icon/img-icon.d.ts +1 -1
- package/lib/{glue42-home-provider/glue42-home-provider.d.ts → io-connect-home-provider/io-connect-home-provider.d.ts} +3 -3
- package/lib/launchpad/features/profile-settings/profile-icon.d.ts +6 -0
- package/lib/launchpad/launchpad.context.d.ts +6 -1
- package/lib/launchpad/launchpad.d.ts +1 -1
- package/lib/layouts-panel/available-layouts.d.ts +6 -0
- package/lib/layouts-panel/constants.d.ts +6 -0
- package/lib/layouts-panel/helpers.d.ts +4 -0
- package/lib/layouts-panel/layout-actions.d.ts +9 -0
- package/lib/layouts-panel/layouts-notification.d.ts +6 -0
- package/lib/layouts-panel/layouts-panel.d.ts +2 -0
- package/lib/layouts-panel/types.d.ts +19 -0
- package/lib/login/index.d.ts +3 -3
- package/lib/login/login-logo.d.ts +1 -1
- package/lib/login/reducers.d.ts +1 -1
- package/lib/login/types.d.ts +1 -1
- package/lib/logo/logo.d.ts +2 -0
- package/lib/notifications-panel/constants.d.ts +9 -0
- package/lib/notifications-panel/index.d.ts +3 -0
- package/lib/notifications-panel/notification.d.ts +6 -0
- package/lib/notifications-panel/notifications-badge.d.ts +5 -0
- package/lib/notifications-panel/notifications-icon.d.ts +6 -0
- package/lib/notifications-panel/notifications-panel.d.ts +1 -2
- package/lib/notifications-panel/types.d.ts +7 -0
- package/lib/panels/launchpad-slide-panel.d.ts +1 -1
- package/lib/panels/slide-panel.d.ts +1 -1
- package/lib/permissions-setup/permissions-card.d.ts +1 -1
- package/lib/permissions-setup/permissions-list.d.ts +2 -3
- package/lib/permissions-setup/permissions-setup-flow.d.ts +1 -2
- package/lib/permissions-setup/permissions-setup.d.ts +1 -1
- package/lib/permissions-setup/permissions-steps.d.ts +1 -2
- package/lib/permissions-setup/something-went-wrong.d.ts +1 -2
- package/lib/permissions-setup/types.d.ts +1 -1
- package/lib/permissions-setup/unsuccessful-setup.d.ts +1 -2
- package/lib/search/search-bar/search-bar.d.ts +1 -1
- package/lib/search/search-results-section/helpers.d.ts +3 -0
- package/lib/search/search-results-section/search-results-section.d.ts +1 -2
- package/lib/search/search-results-section/{search-results-section.types.d.ts → types.d.ts} +4 -4
- package/lib/section/{section.helpers.d.ts → helpers.d.ts} +1 -1
- package/lib/section/section.context.d.ts +1 -1
- package/lib/section/section.d.ts +2 -3
- package/lib/section/{section.types.d.ts → types.d.ts} +1 -1
- package/lib/settings-card/settings-card.d.ts +1 -2
- package/lib/workspaces-section/{workspaces-section.helpers.d.ts → helpers.d.ts} +2 -2
- package/lib/workspaces-section/workspaces-section.d.ts +1 -2
- package/package.json +6 -6
- package/constants/contextMenuActions.d.ts +0 -15
- package/lib/applications-section/applications-section.helpers.d.ts +0 -5
- package/lib/launchpad/features/profile-settings/user-profile-modal.d.ts +0 -10
- package/lib/layout-settings/constants.d.ts +0 -2
- package/lib/layout-settings/index.d.ts +0 -2
- package/lib/layout-settings/layout-actions.d.ts +0 -8
- package/lib/layout-settings/layout-item.d.ts +0 -9
- package/lib/layout-settings/layout-notification.d.ts +0 -7
- package/lib/layout-settings/layout-settings-container.d.ts +0 -3
- package/lib/layout-settings/layout-settings.d.ts +0 -12
- package/lib/layout-settings/layout-startup.d.ts +0 -2
- package/lib/layout-settings/layout-types.d.ts +0 -30
- package/lib/modal/modal.d.ts +0 -9
- package/lib/notifications-panel/notification-toast.d.ts +0 -17
- package/lib/notifications-panel/notifications-modal.d.ts +0 -4
- package/lib/notifications-panel/useNotificationsSort.d.ts +0 -13
- package/lib/search/search-results-section/search-results-section.helpers.d.ts +0 -3
- /package/assets/{glue-logo.json → io-connect-browser-logo.json} +0 -0
- /package/lib/{glue42-home-provider → io-connect-home-provider}/constants.d.ts +0 -0
- /package/lib/{glue42-home-provider → io-connect-home-provider}/helpers.d.ts +0 -0
- /package/lib/{glue42-home-provider → io-connect-home-provider}/types.d.ts +0 -0
- /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 `
|
|
39
|
+
The `useIOConnectHome()` hook provides information about the current state of the required browser permissions:
|
|
40
40
|
|
|
41
41
|
```javascript
|
|
42
|
-
const { permissions } =
|
|
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
|
-
| `<
|
|
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
|
-
<
|
|
110
|
-
<
|
|
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 `<
|
|
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 {
|
|
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
|
-
<
|
|
190
|
+
<IOConnectHomeProvider>
|
|
193
191
|
<App />
|
|
194
|
-
</
|
|
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
|
|
205
|
-
import {
|
|
206
|
-
import
|
|
207
|
-
import Workspaces from "@
|
|
208
|
-
import { PermissionsSetup,
|
|
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 "@
|
|
209
|
+
import "@interopio/workspaces-ui-react/dist/styles/workspaces.css";
|
|
212
210
|
|
|
213
211
|
const App = () => {
|
|
214
212
|
const { isAuthenticated } = useAuth0();
|
|
215
|
-
const { permission } =
|
|
213
|
+
const { permission } = useIOConnectHome();
|
|
216
214
|
|
|
217
215
|
// Settings for initializing the io.Connect Browser platform.
|
|
218
|
-
const
|
|
219
|
-
|
|
220
|
-
factory:
|
|
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
|
-
|
|
230
|
-
libraries: [
|
|
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
|
-
<
|
|
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
|
-
</
|
|
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 "@
|
|
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 {
|
|
292
|
-
import {
|
|
293
|
-
import { LaunchPadSlidePanel } from "@
|
|
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
|
|
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
|
|
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={<
|
|
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/
|
|
1
|
+
import { SectionItemType } from '../lib/section/types';
|
|
2
2
|
export type FavoriteEntity = Omit<SectionItemType, 'isOpen'>;
|
package/constants/defaults.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
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";
|
package/decoders/layouts.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Decoder } from 'decoder-validate';
|
|
2
|
-
import {
|
|
3
|
-
export declare const layoutStorageValueDecoder: Decoder<
|
|
2
|
+
import { LayoutSummary } from '../lib/layouts-panel/types';
|
|
3
|
+
export declare const layoutStorageValueDecoder: Decoder<LayoutSummary | null>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
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]:
|
|
3
|
+
[key: string]: ApplicationActionExecutor;
|
|
6
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 {
|
|
2
|
-
import { SectionItemType } from '../lib/section/section.types';
|
|
1
|
+
import { WorkspaceActionExecutor } from './types';
|
|
3
2
|
export declare const workspaceActionExecutors: {
|
|
4
|
-
[key: string]:
|
|
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: (
|
|
7
|
-
type handler = (
|
|
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: (
|
|
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 {
|
|
2
|
-
export declare const useApplications: () =>
|
|
1
|
+
import { IOConnectBrowser } from '@interopio/browser';
|
|
2
|
+
export declare const useApplications: () => IOConnectBrowser.AppManager.Application[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SectionItemType } from '../lib/section/
|
|
2
|
-
export declare const useExecuteApplicationAction: () => (item: SectionItemType, actionName: string) =>
|
|
1
|
+
import { SectionItemType } from '../lib/section/types';
|
|
2
|
+
export declare const useExecuteApplicationAction: () => (item: SectionItemType, actionName: string) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SectionItemType } from '../lib/section/
|
|
2
|
-
export declare const useExecuteWorkspaceAction: () => (item: SectionItemType, actionName: string) =>
|
|
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/
|
|
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
|
};
|
package/hooks/useFrame.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const useFrame: () =>
|
|
1
|
+
import { IOConnectWorkspaces } from '@interopio/workspaces-api';
|
|
2
|
+
export declare const useFrame: () => IOConnectWorkspaces.Frame | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const useInvokeInteropMethod: () => (action:
|
|
1
|
+
import { IOConnectSearch } from '@interopio/search-api';
|
|
2
|
+
export declare const useInvokeInteropMethod: () => (action: IOConnectSearch.MainAction) => Promise<any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const useRestoreWorkspace: () => (id: string, modifier: string | null) => Promise<
|
|
1
|
+
import { IOConnectWorkspaces } from '@interopio/workspaces-api';
|
|
2
|
+
export declare const useRestoreWorkspace: () => (id: string, modifier: string | null) => Promise<IOConnectWorkspaces.Workspace | undefined>;
|
package/hooks/useSearch.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IOConnectSearch } from '@interopio/search-api';
|
|
2
2
|
export declare const useSearch: (searchTerm: string) => {
|
|
3
|
-
resultsToRender:
|
|
3
|
+
resultsToRender: IOConnectSearch.QueryResult[];
|
|
4
4
|
isLoading: boolean;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStartApplication: () => (id: string, modifier: string | null) => Promise<import("@
|
|
1
|
+
export declare const useStartApplication: () => (id: string, modifier: string | null) => Promise<import("@interopio/browser").IOConnectBrowser.AppManager.Instance | import("@interopio/workspaces-api").IOConnectWorkspaces.WorkspaceWindow>;
|
package/hooks/useStorage.d.ts
CHANGED
|
@@ -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 |
|
|
3
|
+
export declare const useStorage: <T>(type: StorageType, key: string, decoder: Decoder<T | null>) => readonly [T | null, (value: T | null) => void];
|
|
4
4
|
export {};
|
package/hooks/useWorkspaces.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Workspace } from '../lib/workspaces-section/
|
|
1
|
+
import type { Workspace } from '../lib/workspaces-section/types';
|
|
2
2
|
export declare const useWorkspaces: () => Workspace[];
|