@interopio/home-ui-react 2.2.8 → 4.3.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 +81 -57
- package/dist/index.css +2 -2
- package/dist/index.d.ts +420 -25
- package/dist/index.js +17 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12682 -10225
- package/dist/index.mjs.map +1 -1
- package/package.json +23 -16
- package/LICENSE +0 -21
- package/dist/common/sequelizer.d.ts +0 -7
- package/dist/common/types.d.ts +0 -25
- package/dist/common/utils.d.ts +0 -2
- package/dist/constants/alerts.d.ts +0 -8
- package/dist/constants/auth0LoginTypes.d.ts +0 -4
- package/dist/constants/defaults.d.ts +0 -1
- package/dist/constants/dialogs.d.ts +0 -5
- package/dist/constants/itemTypes.d.ts +0 -6
- package/dist/constants/modifierKeys.d.ts +0 -4
- package/dist/constants/platformPrefs.d.ts +0 -13
- package/dist/constants/regex.d.ts +0 -1
- package/dist/constants/sections.d.ts +0 -5
- package/dist/constants/sortOrder.d.ts +0 -5
- package/dist/constants/storageKeys.d.ts +0 -5
- package/dist/decoders/base.d.ts +0 -5
- package/dist/decoders/config.d.ts +0 -3
- package/dist/decoders/layouts.d.ts +0 -3
- package/dist/decoders/platform.d.ts +0 -5
- package/dist/decoders/user.d.ts +0 -3
- package/dist/decoders/validation.d.ts +0 -3
- package/dist/executors/applicationActions.d.ts +0 -4
- package/dist/executors/layoutActions.d.ts +0 -4
- package/dist/executors/setupStepsActions.d.ts +0 -3
- package/dist/executors/types.d.ts +0 -33
- package/dist/executors/workspaceActions.d.ts +0 -4
- package/dist/helpers/a11y.d.ts +0 -22
- package/dist/helpers/alerts.d.ts +0 -9
- package/dist/helpers/sort.d.ts +0 -11
- package/dist/hooks/index.d.ts +0 -29
- package/dist/hooks/useApplications.d.ts +0 -2
- package/dist/hooks/useApplicationsInstances.d.ts +0 -3
- package/dist/hooks/useBeforeunload.d.ts +0 -1
- package/dist/hooks/useExecuteApplicationAction.d.ts +0 -2
- package/dist/hooks/useExecuteLayoutAction.d.ts +0 -5
- package/dist/hooks/useExecuteLayoutOperationIfNotBlocked.d.ts +0 -1
- package/dist/hooks/useExecuteWorkspaceAction.d.ts +0 -2
- package/dist/hooks/useFavorites.d.ts +0 -8
- package/dist/hooks/useFrameId.d.ts +0 -1
- package/dist/hooks/useInvokeInteropMethod.d.ts +0 -2
- package/dist/hooks/useIsHomeLoaded.d.ts +0 -1
- package/dist/hooks/useIsLaunchpadCollapsed.d.ts +0 -9
- package/dist/hooks/useIsLaunchpadPinned.d.ts +0 -8
- package/dist/hooks/useIsRunningInDesktopContainer.d.ts +0 -1
- package/dist/hooks/useLayouts.d.ts +0 -5
- package/dist/hooks/useNotifications.d.ts +0 -2
- package/dist/hooks/useNotificationsConfiguration.d.ts +0 -3
- package/dist/hooks/useOnIframeFocus.d.ts +0 -6
- package/dist/hooks/useOnOutsideClick.d.ts +0 -9
- package/dist/hooks/usePlatformWindow.d.ts +0 -5
- package/dist/hooks/usePressedKeys.d.ts +0 -1
- package/dist/hooks/useRestoreLayout.d.ts +0 -2
- package/dist/hooks/useRestoreWorkspace.d.ts +0 -5
- package/dist/hooks/useSearch.d.ts +0 -5
- package/dist/hooks/useStartApplication.d.ts +0 -7
- package/dist/hooks/useStorage.d.ts +0 -4
- package/dist/hooks/useUA.d.ts +0 -2
- package/dist/hooks/useWorkspaces.d.ts +0 -2
- package/dist/hooks/useWorkspacesInstances.d.ts +0 -3
- package/dist/lib/applications-section/applications-section.d.ts +0 -3
- package/dist/lib/applications-section/helpers.d.ts +0 -5
- package/dist/lib/applications-section/types.d.ts +0 -9
- package/dist/lib/base-section/base-section-header.d.ts +0 -8
- package/dist/lib/base-section/base-section-item.d.ts +0 -14
- package/dist/lib/base-section/base-section.d.ts +0 -14
- package/dist/lib/base-section/helpers.d.ts +0 -2
- package/dist/lib/base-section/types.d.ts +0 -20
- package/dist/lib/base-section/useCollapsedSections.d.ts +0 -4
- package/dist/lib/context-menu/constants.d.ts +0 -11
- package/dist/lib/context-menu/context-menu.d.ts +0 -11
- package/dist/lib/context-menu/dropdown-button/dropdown-button.d.ts +0 -24
- package/dist/lib/context-menu/types.d.ts +0 -13
- package/dist/lib/default-header-system-buttons/constants.d.ts +0 -2
- package/dist/lib/default-header-system-buttons/default-header-system-buttons.d.ts +0 -2
- package/dist/lib/default-header-system-buttons/default-header-system-menu.d.ts +0 -2
- package/dist/lib/favorites-section/favorites-section.d.ts +0 -3
- package/dist/lib/favorites-section/helpers.d.ts +0 -3
- package/dist/lib/home-app-workspace/after-tabs.d.ts +0 -3
- package/dist/lib/home-app-workspace/constants.d.ts +0 -2
- package/dist/lib/home-app-workspace/group-header-buttons.d.ts +0 -3
- package/dist/lib/home-app-workspace/home-app-workspace.d.ts +0 -12
- package/dist/lib/home-app-workspace/index.d.ts +0 -1
- package/dist/lib/home-app-workspace/launchpad-access.d.ts +0 -6
- package/dist/lib/home-app-workspace/no-logo.d.ts +0 -2
- package/dist/lib/home-app-workspace/types.d.ts +0 -3
- package/dist/lib/home-app-workspace/useAddWindowButtonVisible.d.ts +0 -1
- package/dist/lib/home-app-workspace/workspace-components-context.d.ts +0 -11
- package/dist/lib/icon-components/index.d.ts +0 -4
- package/dist/lib/icon-components/platform-setup/browser-notifications-icon.d.ts +0 -2
- package/dist/lib/icon-components/platform-setup/index.d.ts +0 -4
- package/dist/lib/icon-components/platform-setup/popups-icon.d.ts +0 -2
- package/dist/lib/icon-components/platform-setup/pwa-install-icon.d.ts +0 -2
- package/dist/lib/icon-components/platform-setup/window-management-icon.d.ts +0 -2
- package/dist/lib/icon-components/reopen-prompt-icon.d.ts +0 -2
- package/dist/lib/icon-components/start-failed-icon.d.ts +0 -2
- package/dist/lib/icon-components/warning-icon.d.ts +0 -2
- package/dist/lib/info-card/info-card.d.ts +0 -10
- package/dist/lib/info-page-container/info-page-container.d.ts +0 -9
- package/dist/lib/io-connect-home/auth0-login-home.d.ts +0 -8
- package/dist/lib/io-connect-home/home-app.d.ts +0 -2
- package/dist/lib/io-connect-home/io-connect-home.d.ts +0 -2
- package/dist/lib/io-connect-home/no-login-home.d.ts +0 -8
- package/dist/lib/io-connect-home/simple-login-home.d.ts +0 -8
- package/dist/lib/io-connect-home/types.d.ts +0 -131
- package/dist/lib/io-connect-home/useUser.d.ts +0 -8
- package/dist/lib/io-connect-home-provider/constants.d.ts +0 -5
- package/dist/lib/io-connect-home-provider/helpers.d.ts +0 -2
- package/dist/lib/io-connect-home-provider/io-connect-home-provider.d.ts +0 -16
- package/dist/lib/io-connect-home-provider/types.d.ts +0 -8
- package/dist/lib/io-init-error-screen/io-init-error-screen.d.ts +0 -3
- package/dist/lib/launchpad/constants.d.ts +0 -2
- package/dist/lib/launchpad/helpers.d.ts +0 -4
- package/dist/lib/launchpad/launchpad-body.d.ts +0 -5
- package/dist/lib/launchpad/launchpad-config.context.d.ts +0 -10
- package/dist/lib/launchpad/launchpad-contents-container.d.ts +0 -10
- package/dist/lib/launchpad/launchpad-header.d.ts +0 -5
- package/dist/lib/launchpad/launchpad-pin-button.d.ts +0 -5
- package/dist/lib/launchpad/launchpad-search.context.d.ts +0 -11
- package/dist/lib/launchpad/launchpad.context.d.ts +0 -21
- package/dist/lib/launchpad/launchpad.d.ts +0 -10
- package/dist/lib/layouts-panel/active-layout.d.ts +0 -2
- package/dist/lib/layouts-panel/all-layouts.d.ts +0 -2
- package/dist/lib/layouts-panel/constants.d.ts +0 -8
- package/dist/lib/layouts-panel/create-layout-button.d.ts +0 -2
- package/dist/lib/layouts-panel/helpers.d.ts +0 -3
- package/dist/lib/layouts-panel/layouts-dropdown.d.ts +0 -6
- package/dist/lib/layouts-panel/layouts-list.d.ts +0 -7
- package/dist/lib/layouts-panel/layouts-panel.d.ts +0 -2
- package/dist/lib/layouts-panel/save-layout-button.d.ts +0 -5
- package/dist/lib/layouts-panel/types.d.ts +0 -8
- package/dist/lib/layouts-panel/useIsLayoutsPanelOpen.d.ts +0 -9
- package/dist/lib/login/auth0/auth0-login-page.d.ts +0 -13
- package/dist/lib/login/constants.d.ts +0 -1
- package/dist/lib/login/index.d.ts +0 -3
- package/dist/lib/login/login-heading.d.ts +0 -1
- package/dist/lib/login/login-logo.d.ts +0 -6
- package/dist/lib/login/login-page-container.d.ts +0 -7
- package/dist/lib/login/simple/reducers.d.ts +0 -2
- package/dist/lib/login/simple/simple-login-form.d.ts +0 -10
- package/dist/lib/login/simple/simple-login-page.d.ts +0 -11
- package/dist/lib/login/types.d.ts +0 -9
- package/dist/lib/notifications-panel-button/notifications-badge.d.ts +0 -2
- package/dist/lib/notifications-panel-button/notifications-panel-button.d.ts +0 -5
- package/dist/lib/notifications-panels/notification-settings-panel.d.ts +0 -9
- package/dist/lib/notifications-panels/notifications-panel-with-toggle-button.d.ts +0 -3
- package/dist/lib/notifications-panels/notifications-panel.d.ts +0 -10
- package/dist/lib/panels/launchpad/launchpad-button.d.ts +0 -6
- package/dist/lib/panels/launchpad/launchpad-panel.d.ts +0 -2
- package/dist/lib/panels/panel-with-toggle-button.d.ts +0 -11
- package/dist/lib/panels/panel-wrapper.d.ts +0 -10
- package/dist/lib/panels/types.d.ts +0 -9
- package/dist/lib/platform-setup/constants.d.ts +0 -12
- package/dist/lib/platform-setup/platform-setup.d.ts +0 -15
- package/dist/lib/platform-setup/reducers.d.ts +0 -7
- package/dist/lib/platform-setup/setup-steps-list.d.ts +0 -8
- package/dist/lib/platform-setup/setup-steps.d.ts +0 -7
- package/dist/lib/platform-setup/types.d.ts +0 -32
- package/dist/lib/platform-setup/use-edge-notifications-permission.d.ts +0 -6
- package/dist/lib/preferences-panel/preferences-panel.d.ts +0 -2
- package/dist/lib/profile-panel/profile-panel.d.ts +0 -9
- package/dist/lib/search/search-bar/search-bar.d.ts +0 -8
- package/dist/lib/search/search-results-section/search-results-section.d.ts +0 -5
- package/dist/lib/search/search-results-section/types.d.ts +0 -8
- package/dist/lib/search/search-results-section/useExecuteLayoutSearchResultAction.d.ts +0 -2
- package/dist/lib/search/search-results-section/useGenerateLayoutFromId.d.ts +0 -2
- package/dist/lib/search/search-results-section/useGetActionExecutor.d.ts +0 -1
- package/dist/lib/search/search-results-section/useSearchResultsSectionConfigs.d.ts +0 -3
- package/dist/lib/section/helpers.d.ts +0 -3
- package/dist/lib/section/section.context.d.ts +0 -11
- package/dist/lib/section/section.d.ts +0 -11
- package/dist/lib/section/types.d.ts +0 -8
- package/dist/lib/spinner/index.d.ts +0 -1
- package/dist/lib/spinner/spinner.d.ts +0 -2
- package/dist/lib/system-loader/system-loader.d.ts +0 -6
- package/dist/lib/system-menu/helpers.d.ts +0 -3
- package/dist/lib/system-menu/system-menu.d.ts +0 -6
- package/dist/lib/system-menu/types.d.ts +0 -8
- package/dist/lib/workspaces-section/constants.d.ts +0 -3
- package/dist/lib/workspaces-section/helpers.d.ts +0 -6
- package/dist/lib/workspaces-section/types.d.ts +0 -4
- package/dist/lib/workspaces-section/workspaces-section.d.ts +0 -3
package/README.md
CHANGED
|
@@ -1,57 +1,81 @@
|
|
|
1
|
-
# @interopio/home-ui-react
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
To install the
|
|
10
|
-
|
|
11
|
-
```cmd
|
|
12
|
-
npm install @interopio/home-ui-react
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
The following example demonstrates initializing the `@interopio/home-ui-react` library with basic configuration
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
import "@interopio/home-ui-react
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
1
|
+
# @interopio/home-ui-react
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
The [`@interopio/home-ui-react`](https://www.npmjs.com/package/@interopio/home-ui-react) library offers React components and hooks for building a [Home App](https://docs.interop.io/browser/capabilities/home-app/overview/index.html) for your **io.Connect Browser** project.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
To install the library, execute the following command:
|
|
10
|
+
|
|
11
|
+
```cmd
|
|
12
|
+
npm install @interopio/home-ui-react
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
The following example demonstrates initializing the `@interopio/home-ui-react` library with basic configuration.
|
|
18
|
+
|
|
19
|
+
> ℹ️ *For more details on using the `@interopio/home-ui-react` library, see the **io.Connect Browser** [official documentation](https://docs.interop.io/browser/capabilities/home-app/overview/index.html).*
|
|
20
|
+
|
|
21
|
+
```javascript
|
|
22
|
+
import { IOConnectHome } from "@interopio/home-ui-react";
|
|
23
|
+
import IOBrowserPlatform from "@interopio/browser-platform";
|
|
24
|
+
import IOWorkspaces from "@interopio/workspaces-api";
|
|
25
|
+
import IOModals from "@interopio/modals-api";
|
|
26
|
+
import "@interopio/workspaces-ui-react/dist/styles/workspaces.css";
|
|
27
|
+
import "@interopio/home-ui-react/index.css";
|
|
28
|
+
|
|
29
|
+
const getConfig = () => {
|
|
30
|
+
// Platform configuration.
|
|
31
|
+
const platformConfig = {
|
|
32
|
+
browserPlatform: {
|
|
33
|
+
factory: IOBrowserPlatform,
|
|
34
|
+
config: {
|
|
35
|
+
// Required license key.
|
|
36
|
+
licenseKey: "my-license-key",
|
|
37
|
+
// Workspaces App configuration.
|
|
38
|
+
workspaces: {
|
|
39
|
+
src: "/",
|
|
40
|
+
isFrame: true
|
|
41
|
+
},
|
|
42
|
+
// Modal windows are required for the Launchpad.
|
|
43
|
+
modals: {
|
|
44
|
+
sources: {
|
|
45
|
+
bundle: "https://my-modals/modals-bundle.js",
|
|
46
|
+
styles: ["https://my-modals/styles.css", "https://example.com/custom-styles.css"],
|
|
47
|
+
fonts: ["https://my-modals/fonts.css"]
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
browser: {
|
|
51
|
+
// Enabling the Workspaces and Modals APIs.
|
|
52
|
+
libraries: [IOWorkspaces, IOModals],
|
|
53
|
+
// Enabling the Main app to use modal windows.
|
|
54
|
+
modals: {
|
|
55
|
+
alerts: {
|
|
56
|
+
enabled: true
|
|
57
|
+
},
|
|
58
|
+
dialogs: {
|
|
59
|
+
enabled: true
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return platformConfig;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// Configuration for the `<IOConnectHome />` component.
|
|
71
|
+
const config = {
|
|
72
|
+
// Retrieve the platform configuration.
|
|
73
|
+
getIOConnectConfig: getConfig
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export function App() {
|
|
77
|
+
return <IOConnectHome config={config} />
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export default App;
|
|
81
|
+
```
|