@interopio/home-ui-react 1.4.2 → 2.0.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 (274) hide show
  1. package/LICENSE +21 -0
  2. package/{README.md → dist/README.md} +56 -56
  3. package/dist/common/sequelizer.d.ts +7 -0
  4. package/dist/common/types.d.ts +27 -0
  5. package/dist/common/utils.d.ts +2 -0
  6. package/dist/constants/alerts.d.ts +8 -0
  7. package/{constants → dist/constants}/defaults.d.ts +0 -1
  8. package/dist/constants/dialogs.d.ts +5 -0
  9. package/{constants → dist/constants}/itemTypes.d.ts +1 -0
  10. package/dist/constants/platformPrefs.d.ts +15 -0
  11. package/dist/constants/regex.d.ts +1 -0
  12. package/dist/constants/sections.d.ts +5 -0
  13. package/{constants → dist/constants}/storageKeys.d.ts +1 -2
  14. package/{decoders → dist/decoders}/base.d.ts +2 -1
  15. package/dist/decoders/config.d.ts +3 -0
  16. package/dist/decoders/layouts.d.ts +3 -0
  17. package/{decoders → dist/decoders}/platform.d.ts +3 -3
  18. package/dist/decoders/user.d.ts +3 -0
  19. package/dist/decoders/validation.d.ts +3 -0
  20. package/{executors → dist/executors}/applicationActions.d.ts +1 -1
  21. package/{executors → dist/executors}/layoutActions.d.ts +1 -1
  22. package/dist/executors/setupStepsActions.d.ts +3 -0
  23. package/dist/executors/types.d.ts +33 -0
  24. package/{executors → dist/executors}/workspaceActions.d.ts +1 -1
  25. package/{helpers → dist/helpers}/a11y.d.ts +0 -16
  26. package/dist/helpers/alerts.d.ts +9 -0
  27. package/{helpers → dist/helpers}/sort.d.ts +4 -4
  28. package/dist/hooks/index.d.ts +28 -0
  29. package/dist/hooks/useApplications.d.ts +2 -0
  30. package/{hooks → dist/hooks}/useExecuteApplicationAction.d.ts +1 -1
  31. package/dist/hooks/useExecuteLayoutAction.d.ts +5 -0
  32. package/{hooks → dist/hooks}/useExecuteWorkspaceAction.d.ts +1 -1
  33. package/dist/hooks/useFavorites.d.ts +8 -0
  34. package/dist/hooks/useFrameId.d.ts +1 -0
  35. package/{hooks → dist/hooks}/useInvokeInteropMethod.d.ts +1 -1
  36. package/dist/hooks/useIsLaunchpadPinned.d.ts +8 -0
  37. package/dist/hooks/useIsRunningInDesktopContainer.d.ts +1 -0
  38. package/dist/hooks/useLayouts.d.ts +5 -0
  39. package/{hooks → dist/hooks}/useNotifications.d.ts +1 -1
  40. package/dist/hooks/useNotificationsConfiguration.d.ts +3 -0
  41. package/dist/hooks/useOnIframeFocus.d.ts +6 -0
  42. package/dist/hooks/useOnOutsideClick.d.ts +9 -0
  43. package/{hooks → dist/hooks}/usePlatformWindow.d.ts +1 -1
  44. package/{hooks → dist/hooks}/useRestoreLayout.d.ts +1 -1
  45. package/{hooks → dist/hooks}/useRestoreWorkspace.d.ts +1 -2
  46. package/{hooks → dist/hooks}/useSearch.d.ts +1 -1
  47. package/dist/hooks/useStartApplication.d.ts +7 -0
  48. package/{hooks → dist/hooks}/useStorage.d.ts +2 -2
  49. package/dist/hooks/useUA.d.ts +2 -0
  50. package/dist/hooks/useWorkspaces.d.ts +2 -0
  51. package/dist/index.css +1 -0
  52. package/dist/index.d.ts +21 -0
  53. package/dist/index.js +61 -0
  54. package/dist/index.js.map +1 -0
  55. package/dist/index.mjs +14513 -0
  56. package/dist/index.mjs.map +1 -0
  57. package/{lib → dist/lib}/applications-section/applications-section.d.ts +1 -1
  58. package/dist/lib/applications-section/helpers.d.ts +5 -0
  59. package/dist/lib/applications-section/types.d.ts +9 -0
  60. package/{lib → dist/lib}/base-section/base-section-header.d.ts +2 -4
  61. package/dist/lib/base-section/base-section-item.d.ts +14 -0
  62. package/{lib → dist/lib}/base-section/base-section.d.ts +3 -3
  63. package/{lib → dist/lib}/base-section/helpers.d.ts +1 -1
  64. package/dist/lib/base-section/types.d.ts +20 -0
  65. package/dist/lib/base-section/useCollapsedSections.d.ts +4 -0
  66. package/dist/lib/context-menu/constants.d.ts +11 -0
  67. package/dist/lib/context-menu/context-menu.d.ts +11 -0
  68. package/dist/lib/context-menu/dropdown-button/dropdown-button.d.ts +20 -0
  69. package/{lib → dist/lib}/context-menu/types.d.ts +5 -1
  70. package/dist/lib/default-header-system-buttons/constants.d.ts +2 -0
  71. package/dist/lib/default-header-system-buttons/default-header-system-buttons.d.ts +2 -0
  72. package/dist/lib/default-header-system-buttons/default-header-system-menu.d.ts +2 -0
  73. package/{lib → dist/lib}/favorites-section/favorites-section.d.ts +1 -1
  74. package/dist/lib/favorites-section/helpers.d.ts +3 -0
  75. package/dist/lib/home-app-workspace/after-tabs.d.ts +3 -0
  76. package/dist/lib/home-app-workspace/constants.d.ts +2 -0
  77. package/{lib → dist/lib}/home-app-workspace/group-header-buttons.d.ts +1 -1
  78. package/dist/lib/home-app-workspace/home-app-workspace.d.ts +13 -0
  79. package/dist/lib/home-app-workspace/index.d.ts +1 -0
  80. package/dist/lib/home-app-workspace/launchpad-access.d.ts +7 -0
  81. package/{lib → dist/lib}/home-app-workspace/workspace-components-context.d.ts +3 -4
  82. package/dist/lib/icon-components/index.d.ts +4 -0
  83. package/dist/lib/icon-components/platform-setup/index.d.ts +4 -0
  84. package/{lib → dist/lib}/io-connect-home/auth0-login-home.d.ts +1 -1
  85. package/{lib → dist/lib}/io-connect-home/home-app.d.ts +1 -1
  86. package/{lib → dist/lib}/io-connect-home/io-connect-home.d.ts +1 -1
  87. package/{lib → dist/lib}/io-connect-home/no-login-home.d.ts +1 -1
  88. package/{lib → dist/lib}/io-connect-home/simple-login-home.d.ts +1 -1
  89. package/{lib → dist/lib}/io-connect-home/types.d.ts +54 -18
  90. package/{lib → dist/lib}/io-connect-home/useUser.d.ts +1 -1
  91. package/{lib → dist/lib}/io-connect-home-provider/helpers.d.ts +1 -1
  92. package/{lib → dist/lib}/io-connect-home-provider/io-connect-home-provider.d.ts +1 -1
  93. package/{lib → dist/lib}/io-connect-home-provider/types.d.ts +2 -2
  94. package/{lib/io-connect-browser-start-failed/io-connect-browser-start-failed.d.ts → dist/lib/io-init-error-screen/io-init-error-screen.d.ts} +1 -1
  95. package/dist/lib/launchpad/constants.d.ts +2 -0
  96. package/dist/lib/launchpad/helpers.d.ts +4 -0
  97. package/dist/lib/launchpad/launchpad-header.d.ts +7 -0
  98. package/dist/lib/launchpad/launchpad-pin-button.d.ts +5 -0
  99. package/dist/lib/launchpad/launchpad.context.d.ts +19 -0
  100. package/dist/lib/launchpad/launchpad.d.ts +11 -0
  101. package/dist/lib/launchpad/useIsLaunchpadCollapsed.d.ts +9 -0
  102. package/dist/lib/layouts-panel/active-layout.d.ts +2 -0
  103. package/dist/lib/layouts-panel/all-layouts.d.ts +2 -0
  104. package/dist/lib/layouts-panel/constants.d.ts +8 -0
  105. package/dist/lib/layouts-panel/create-layout-button.d.ts +2 -0
  106. package/dist/lib/layouts-panel/helpers.d.ts +3 -0
  107. package/dist/lib/layouts-panel/layouts-dropdown.d.ts +6 -0
  108. package/dist/lib/layouts-panel/layouts-list.d.ts +6 -0
  109. package/dist/lib/layouts-panel/save-layout-button.d.ts +5 -0
  110. package/dist/lib/layouts-panel/types.d.ts +8 -0
  111. package/dist/lib/layouts-panel/useIsLayoutsPanelOpen.d.ts +9 -0
  112. package/{lib → dist/lib}/login/auth0/auth0-login-page.d.ts +1 -2
  113. package/dist/lib/login/index.d.ts +3 -0
  114. package/dist/lib/login/login-heading.d.ts +1 -0
  115. package/{lib → dist/lib}/login/simple/reducers.d.ts +1 -1
  116. package/{lib → dist/lib}/login/simple/simple-login-form.d.ts +2 -2
  117. package/{lib → dist/lib}/login/simple/simple-login-page.d.ts +1 -1
  118. package/{lib → dist/lib}/login/types.d.ts +1 -5
  119. package/dist/lib/notifications-icon/notifications-badge.d.ts +2 -0
  120. package/{lib/notifications-panel → dist/lib/notifications-icon}/notifications-icon.d.ts +1 -1
  121. package/dist/lib/notifications-panels/notification-settings-panel.d.ts +9 -0
  122. package/dist/lib/notifications-panels/notifications-panel.d.ts +10 -0
  123. package/dist/lib/panels/launchpad/launchpad-button.d.ts +6 -0
  124. package/dist/lib/panels/launchpad/launchpad-panel.d.ts +2 -0
  125. package/dist/lib/panels/panel-with-toggle-button.d.ts +12 -0
  126. package/dist/lib/panels/panel-wrapper.d.ts +11 -0
  127. package/dist/lib/panels/types.d.ts +9 -0
  128. package/{lib → dist/lib}/platform-setup/constants.d.ts +1 -1
  129. package/{lib → dist/lib}/platform-setup/reducers.d.ts +2 -2
  130. package/{lib → dist/lib}/platform-setup/setup-steps-list.d.ts +1 -1
  131. package/{lib → dist/lib}/platform-setup/types.d.ts +4 -4
  132. package/dist/lib/profile-panel/profile-panel.d.ts +9 -0
  133. package/{lib → dist/lib}/search/search-bar/search-bar.d.ts +1 -0
  134. package/dist/lib/search/search-results-section/search-results-section.d.ts +5 -0
  135. package/{lib → dist/lib}/search/search-results-section/types.d.ts +3 -3
  136. package/dist/lib/search/search-results-section/useExecuteLayoutSearchResultAction.d.ts +2 -0
  137. package/dist/lib/search/search-results-section/useGenerateLayoutFromId.d.ts +2 -0
  138. package/dist/lib/search/search-results-section/useGetActionExecutor.d.ts +1 -0
  139. package/dist/lib/search/search-results-section/useSearchResultsSectionConfigs.d.ts +3 -0
  140. package/{lib → dist/lib}/section/helpers.d.ts +2 -2
  141. package/{lib → dist/lib}/section/section.d.ts +1 -1
  142. package/{lib → dist/lib}/section/types.d.ts +1 -1
  143. package/dist/lib/spinner/index.d.ts +1 -0
  144. package/dist/lib/system-menu/helpers.d.ts +3 -0
  145. package/dist/lib/system-menu/system-menu.d.ts +6 -0
  146. package/dist/lib/system-menu/types.d.ts +9 -0
  147. package/dist/lib/workspaces-section/constants.d.ts +3 -0
  148. package/{lib → dist/lib}/workspaces-section/helpers.d.ts +3 -3
  149. package/{lib → dist/lib}/workspaces-section/workspaces-section.d.ts +1 -1
  150. package/package.json +59 -41
  151. package/assets/fonts/nunito-regular-webfont.woff +0 -0
  152. package/assets/fonts/nunito-regular-webfont.woff2 +0 -0
  153. package/assets/fonts/nunito-semibold-webfont.woff +0 -0
  154. package/assets/fonts/nunito-semibold-webfont.woff2 +0 -0
  155. package/assets/io-connect-browser-logo.json +0 -5
  156. package/common/types.d.ts +0 -10
  157. package/decoders/config.d.ts +0 -3
  158. package/decoders/context-menu.d.ts +0 -3
  159. package/decoders/favorites.d.ts +0 -3
  160. package/decoders/layouts.d.ts +0 -3
  161. package/decoders/user.d.ts +0 -3
  162. package/decoders/validation.d.ts +0 -3
  163. package/executors/notificationsSort.d.ts +0 -7
  164. package/executors/setupStepsActions.d.ts +0 -3
  165. package/executors/types.d.ts +0 -26
  166. package/helpers/date.d.ts +0 -1
  167. package/helpers/string.d.ts +0 -1
  168. package/hooks/index.d.ts +0 -24
  169. package/hooks/useApplications.d.ts +0 -2
  170. package/hooks/useExecuteLayoutAction.d.ts +0 -2
  171. package/hooks/useFavoriteEntities.d.ts +0 -7
  172. package/hooks/useFrame.d.ts +0 -2
  173. package/hooks/useIsBrowserSupported.d.ts +0 -1
  174. package/hooks/useLayouts.d.ts +0 -2
  175. package/hooks/useNotificationsSort.d.ts +0 -5
  176. package/hooks/useStartApplication.d.ts +0 -4
  177. package/hooks/useUA.d.ts +0 -2
  178. package/hooks/useWorkspaces.d.ts +0 -2
  179. package/index.css +0 -1
  180. package/index.d.ts +0 -37
  181. package/index.js +0 -54
  182. package/index.js.map +0 -1
  183. package/index.mjs +0 -8638
  184. package/index.mjs.map +0 -1
  185. package/lib/applications-section/helpers.d.ts +0 -6
  186. package/lib/applications-section/types.d.ts +0 -4
  187. package/lib/base-section/base-section-item.d.ts +0 -13
  188. package/lib/base-section/types.d.ts +0 -29
  189. package/lib/browser-not-supported/additional-information.d.ts +0 -5
  190. package/lib/browser-not-supported/browser-not-supported.d.ts +0 -11
  191. package/lib/browser-not-supported/constants.d.ts +0 -6
  192. package/lib/button/button.d.ts +0 -7
  193. package/lib/button-group/button-group.d.ts +0 -8
  194. package/lib/context-menu/constants.d.ts +0 -3
  195. package/lib/context-menu/context-menu.d.ts +0 -10
  196. package/lib/context-menu/dropdown-button/dropdown-button.d.ts +0 -11
  197. package/lib/dialog/dialog.d.ts +0 -8
  198. package/lib/favorites-section/helpers.d.ts +0 -3
  199. package/lib/home-app-workspace/after-tabs.d.ts +0 -3
  200. package/lib/home-app-workspace/home-app-workspace.d.ts +0 -14
  201. package/lib/home-app-workspace/index.d.ts +0 -2
  202. package/lib/home-app-workspace/launchpad-access.d.ts +0 -6
  203. package/lib/home-app-workspace/workspace-logo.d.ts +0 -10
  204. package/lib/icon/icon.d.ts +0 -9
  205. package/lib/icon-components/google-chrome-icon.d.ts +0 -2
  206. package/lib/icon-components/index.d.ts +0 -7
  207. package/lib/icon-components/microsoft-edge-icon.d.ts +0 -2
  208. package/lib/icon-components/opera-icon.d.ts +0 -2
  209. package/lib/icon-components/platform-setup/index.d.ts +0 -4
  210. package/lib/img-icon/img-icon.d.ts +0 -8
  211. package/lib/launchpad/default-sections.d.ts +0 -2
  212. package/lib/launchpad/helpers.d.ts +0 -3
  213. package/lib/launchpad/launchpad.context.d.ts +0 -19
  214. package/lib/launchpad/launchpad.d.ts +0 -12
  215. package/lib/launchpad/types.d.ts +0 -16
  216. package/lib/layouts-panel/available-layouts.d.ts +0 -6
  217. package/lib/layouts-panel/constants.d.ts +0 -6
  218. package/lib/layouts-panel/helpers.d.ts +0 -4
  219. package/lib/layouts-panel/layout-actions.d.ts +0 -9
  220. package/lib/layouts-panel/layouts-notification.d.ts +0 -6
  221. package/lib/layouts-panel/types.d.ts +0 -20
  222. package/lib/login/index.d.ts +0 -4
  223. package/lib/login/login-heading.d.ts +0 -5
  224. package/lib/login/login-loader.d.ts +0 -5
  225. package/lib/logo/logo.d.ts +0 -2
  226. package/lib/notifications-panel/constants.d.ts +0 -9
  227. package/lib/notifications-panel/index.d.ts +0 -4
  228. package/lib/notifications-panel/notification.d.ts +0 -6
  229. package/lib/notifications-panel/notifications-badge.d.ts +0 -5
  230. package/lib/notifications-panel/notifications-panel.d.ts +0 -2
  231. package/lib/notifications-panel/types.d.ts +0 -7
  232. package/lib/panels/launchpad-slide-panel.d.ts +0 -10
  233. package/lib/panels/slide-panel.d.ts +0 -9
  234. package/lib/search/search-results-section/helpers.d.ts +0 -3
  235. package/lib/search/search-results-section/search-results-section.d.ts +0 -5
  236. package/lib/spinner/index.d.ts +0 -1
  237. package/lib/user-panel/settings-card.d.ts +0 -2
  238. package/lib/user-panel/support-card.d.ts +0 -11
  239. package/lib/user-panel/user-details-card.d.ts +0 -6
  240. package/lib/user-panel/user-panel-icon.d.ts +0 -6
  241. package/lib/user-panel/user-panel.d.ts +0 -7
  242. /package/{constants → dist/constants}/auth0LoginTypes.d.ts +0 -0
  243. /package/{constants → dist/constants}/modifierKeys.d.ts +0 -0
  244. /package/{constants → dist/constants}/sortOrder.d.ts +0 -0
  245. /package/{hooks → dist/hooks}/useApplicationsInstances.d.ts +0 -0
  246. /package/{hooks → dist/hooks}/useBeforeunload.d.ts +0 -0
  247. /package/{hooks → dist/hooks}/useExecuteLayoutOperationIfNotBlocked.d.ts +0 -0
  248. /package/{hooks → dist/hooks}/useIsHomeLoaded.d.ts +0 -0
  249. /package/{hooks → dist/hooks}/usePressedKeys.d.ts +0 -0
  250. /package/{hooks → dist/hooks}/useWorkspacesInstances.d.ts +0 -0
  251. /package/{lib → dist/lib}/home-app-workspace/no-logo.d.ts +0 -0
  252. /package/{lib → dist/lib}/home-app-workspace/types.d.ts +0 -0
  253. /package/{lib → dist/lib}/home-app-workspace/useAddWindowButtonVisible.d.ts +0 -0
  254. /package/{lib → dist/lib}/icon-components/platform-setup/browser-notifications-icon.d.ts +0 -0
  255. /package/{lib → dist/lib}/icon-components/platform-setup/popups-icon.d.ts +0 -0
  256. /package/{lib → dist/lib}/icon-components/platform-setup/pwa-install-icon.d.ts +0 -0
  257. /package/{lib → dist/lib}/icon-components/platform-setup/window-management-icon.d.ts +0 -0
  258. /package/{lib → dist/lib}/icon-components/reopen-prompt-icon.d.ts +0 -0
  259. /package/{lib → dist/lib}/icon-components/start-failed-icon.d.ts +0 -0
  260. /package/{lib → dist/lib}/icon-components/warning-icon.d.ts +0 -0
  261. /package/{lib → dist/lib}/info-card/info-card.d.ts +0 -0
  262. /package/{lib → dist/lib}/info-page-container/info-page-container.d.ts +0 -0
  263. /package/{lib → dist/lib}/io-connect-home-provider/constants.d.ts +0 -0
  264. /package/{lib → dist/lib}/layouts-panel/layouts-panel.d.ts +0 -0
  265. /package/{lib → dist/lib}/login/constants.d.ts +0 -0
  266. /package/{lib → dist/lib}/login/login-logo.d.ts +0 -0
  267. /package/{lib → dist/lib}/login/login-page-container.d.ts +0 -0
  268. /package/{lib → dist/lib}/platform-setup/platform-setup.d.ts +0 -0
  269. /package/{lib → dist/lib}/platform-setup/setup-steps.d.ts +0 -0
  270. /package/{lib → dist/lib}/platform-setup/use-edge-notifications-permission.d.ts +0 -0
  271. /package/{lib → dist/lib}/section/section.context.d.ts +0 -0
  272. /package/{lib → dist/lib}/spinner/spinner.d.ts +0 -0
  273. /package/{lib → dist/lib}/system-loader/system-loader.d.ts +0 -0
  274. /package/{lib → dist/lib}/workspaces-section/types.d.ts +0 -0
@@ -1,2 +1,2 @@
1
- import { LoginFormElementReducer } from '../types';
1
+ import { LoginFormElementReducer } from "../types";
2
2
  export declare const inputReducer: LoginFormElementReducer;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  export interface SimpleLoginFormProps {
3
3
  onLogin: (user: string, password: string) => Promise<void>;
4
4
  userInputName?: string;
@@ -6,5 +6,5 @@ export interface SimpleLoginFormProps {
6
6
  loginError: Error | null;
7
7
  setLoginError: React.Dispatch<React.SetStateAction<Error | null>>;
8
8
  }
9
- declare const SimpleLoginForm: ({ onLogin, setIsLoading, loginError, setLoginError, userInputName }: SimpleLoginFormProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const SimpleLoginForm: ({ onLogin, setIsLoading, loginError, setLoginError, userInputName, }: SimpleLoginFormProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default SimpleLoginForm;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { LoginPageComponents } from '../types';
2
+ import { LoginPageComponents } from "../../io-connect-home/types";
3
3
  export interface SimpleLoginPageProps {
4
4
  onLogin: (user: string, password: string) => Promise<void>;
5
5
  userInputName?: string;
@@ -1,4 +1,4 @@
1
- import { Reducer } from 'react';
1
+ import { Reducer } from "react";
2
2
  export type LoginFormElementReducer = Reducer<LoginFormElementState, LoginFormElementAction>;
3
3
  export interface LoginFormElementState {
4
4
  value: string;
@@ -7,7 +7,3 @@ export interface LoginFormElementState {
7
7
  export interface LoginFormElementAction {
8
8
  value: string;
9
9
  }
10
- export interface LoginPageComponents {
11
- Logo?: React.ComponentType;
12
- Heading?: React.ComponentType;
13
- }
@@ -0,0 +1,2 @@
1
+ export declare const NotificationsBadge: () => import("react/jsx-runtime").JSX.Element | null;
2
+ export default NotificationsBadge;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  interface NotificationsIconProps extends React.HTMLAttributes<HTMLDivElement> {
3
- iconSize?: number;
3
+ active: boolean;
4
4
  }
5
5
  export declare const NotificationsIcon: (props: NotificationsIconProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export default NotificationsIcon;
@@ -0,0 +1,9 @@
1
+ import { IONotifications } from "@interopio/components-react";
2
+ interface NotificationsSettingsPanelProps {
3
+ className?: string;
4
+ components?: IONotifications.SettingsPanelProps["components"];
5
+ onClose: () => void;
6
+ title?: string;
7
+ }
8
+ export declare const NotificationSettingsPanel: ({ className, components, onClose, title }: NotificationsSettingsPanelProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default NotificationSettingsPanel;
@@ -0,0 +1,10 @@
1
+ import { IONotifications } from "@interopio/components-react";
2
+ import { PanelProps } from "../panels/types";
3
+ interface NotificationsPanelProps extends PanelProps {
4
+ className?: string;
5
+ components?: IONotifications.PanelProps["components"];
6
+ settings?: IONotifications.PanelProps["settings"];
7
+ title?: string;
8
+ }
9
+ export declare const NotificationsPanel: ({ className, components, onClose, settings, title }: NotificationsPanelProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default NotificationsPanel;
@@ -0,0 +1,6 @@
1
+ import { ButtonIconProps } from "@interopio/components-react";
2
+ type LaunchpadButtonProps = ButtonIconProps & {
3
+ active: boolean;
4
+ };
5
+ export declare const LaunchpadButton: (props: LaunchpadButtonProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default LaunchpadButton;
@@ -0,0 +1,2 @@
1
+ import { PanelProps } from "../types";
2
+ export declare const LaunchpadPanel: ({ isOpen, onClose }: PanelProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { PanelButtonProps, PanelPosition, PanelProps } from "./types";
3
+ export interface PanelWithToggleButtonProps {
4
+ Button: React.ComponentType<PanelButtonProps>;
5
+ Panel: React.ComponentType<PanelProps>;
6
+ panelWrapperClassName?: string;
7
+ pinned?: boolean;
8
+ position?: PanelPosition;
9
+ tag?: React.ElementType;
10
+ onClose?: () => void | Promise<void>;
11
+ }
12
+ export declare const PanelWithToggleButton: (props: PanelWithToggleButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { PanelPosition, PanelProps } from "./types";
3
+ export interface PanelWrapperProps {
4
+ className?: string;
5
+ isOpen: boolean;
6
+ onClose: () => void;
7
+ Panel?: React.ComponentType<PanelProps>;
8
+ pinned?: boolean;
9
+ position?: PanelPosition;
10
+ }
11
+ export declare const PanelWrapper: import("react").ForwardRefExoticComponent<PanelWrapperProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,9 @@
1
+ export interface PanelButtonProps {
2
+ active: boolean;
3
+ onClick: () => void;
4
+ }
5
+ export type PanelPosition = "left" | "right";
6
+ export interface PanelProps {
7
+ isOpen: boolean;
8
+ onClose: () => void;
9
+ }
@@ -1,4 +1,4 @@
1
- import { SetupStep, SetupStepsStatuses } from './types';
1
+ import { SetupStep, SetupStepsStatuses } from "./types";
2
2
  export declare const DEFAULT_SETTINGS: {
3
3
  edgeNotificationsPermissionTimeout: number;
4
4
  };
@@ -1,7 +1,7 @@
1
- import { SetupStepReducerAction, SetupStepsStatuses } from './types';
1
+ import { SetupStepReducerAction, SetupStepsStatuses } from "./types";
2
2
  export declare const setupStepsReducer: (stepsState: SetupStepsStatuses, action: SetupStepReducerAction) => {
3
- "window-management": import("./types").SetupStepStatus;
4
3
  notifications: import("./types").SetupStepStatus;
4
+ "window-management": import("./types").SetupStepStatus;
5
5
  popups: import("./types").SetupStepStatus;
6
6
  "pwa-install": import("./types").SetupStepStatus;
7
7
  };
@@ -1,4 +1,4 @@
1
- import { SetupStepName, SetupStepsStatuses } from './types';
1
+ import { SetupStepName, SetupStepsStatuses } from "./types";
2
2
  interface SetupStepsListProps {
3
3
  activeStepName: SetupStepName;
4
4
  showWarnIcon: boolean;
@@ -1,13 +1,13 @@
1
1
  /// <reference types="react" />
2
- import { SETUP_STEPS_NAMES } from './constants';
3
- export type SetupStepName = (typeof SETUP_STEPS_NAMES)[keyof typeof SETUP_STEPS_NAMES];
4
- type SetupStepState = 'prompt' | 'granted' | 'denied';
2
+ import { SETUP_STEPS_NAMES } from "./constants";
3
+ export type SetupStepName = typeof SETUP_STEPS_NAMES[keyof typeof SETUP_STEPS_NAMES];
4
+ type SetupStepState = "prompt" | "granted" | "denied";
5
5
  export type SetupStepStatus = {
6
6
  isCompleted: boolean;
7
7
  state: SetupStepState;
8
8
  };
9
9
  export type SetupStepsStatuses = Record<SetupStepName, SetupStepStatus>;
10
- type SetupStepReducerActionType = 'completed' | 'skipped' | 'stateUpdated';
10
+ type SetupStepReducerActionType = "completed" | "skipped" | "stateUpdated";
11
11
  export interface SetupStepReducerAction {
12
12
  type: SetupStepReducerActionType;
13
13
  payload: {
@@ -0,0 +1,9 @@
1
+ import { IOProfile } from "@interopio/components-react";
2
+ interface ProfilePanelProps {
3
+ className?: string;
4
+ components?: IOProfile.PanelProps["components"];
5
+ onClose: () => void;
6
+ title?: string;
7
+ }
8
+ export declare const ProfilePanel: ({ className, components, onClose, title }: ProfilePanelProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default ProfilePanel;
@@ -3,6 +3,7 @@ export interface SearchBarProps {
3
3
  onSearch: (event: React.ChangeEvent<HTMLInputElement>) => void;
4
4
  searchTerm: string;
5
5
  onClear: () => void;
6
+ className?: string;
6
7
  }
7
8
  export declare const SearchBar: import("react").ForwardRefExoticComponent<SearchBarProps & import("react").RefAttributes<HTMLInputElement>>;
8
9
  export default SearchBar;
@@ -0,0 +1,5 @@
1
+ export interface SearchResultsProps {
2
+ searchTerm: string;
3
+ }
4
+ export declare function SearchResults(props: Readonly<SearchResultsProps>): import("react/jsx-runtime").JSX.Element;
5
+ export default SearchResults;
@@ -1,6 +1,6 @@
1
- import { IOConnectSearch } from '@interopio/search-api';
2
- import type { BaseSectionItemType, BaseSectionType } from '../../base-section/types';
3
- import { SearchResultsContextMenuAction } from '../../context-menu/types';
1
+ import { IOConnectSearch } from "@interopio/search-api";
2
+ import type { BaseSectionItemType, BaseSectionType } from "../../base-section/types";
3
+ import { SearchResultsContextMenuAction } from "../../context-menu/types";
4
4
  export interface SearchResultsSectionItemType extends BaseSectionItemType {
5
5
  mainAction?: IOConnectSearch.MainAction;
6
6
  contextMenuActions?: SearchResultsContextMenuAction[];
@@ -0,0 +1,2 @@
1
+ import { SectionItemType } from "../../section/types";
2
+ export declare const useExecuteLayoutSearchResultAction: () => (item: SectionItemType, actionName: string) => Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { Layout } from "../../layouts-panel/types";
2
+ export declare const useGenerateLayoutFromId: () => (id: string) => Layout;
@@ -0,0 +1 @@
1
+ export declare const useGetActionExecutor: () => (itemType: string) => ((item: import("../../base-section/types").BaseSectionItemType, actionName: string) => void) | undefined;
@@ -0,0 +1,3 @@
1
+ import { IOConnectSearch } from "@interopio/search-api";
2
+ import type { SearchResultsSectionType } from "./types";
3
+ export declare const useSearchResultsSectionConfigs: (results: IOConnectSearch.QueryResult[]) => SearchResultsSectionType[];
@@ -1,3 +1,3 @@
1
- import type { SectionItemType, SectionType } from './types';
1
+ import type { SectionItemType, SectionType } from "./types";
2
2
  export declare const getItemName: (item: SectionItemType) => string;
3
- export declare const getClickedItem: (items: SectionType['items'], clickedItemName: string) => SectionItemType | undefined;
3
+ export declare const getClickedItem: (items: SectionType["items"], clickedItemName: string) => SectionItemType | undefined;
@@ -1,4 +1,4 @@
1
- import type { SectionItemType, SectionType } from './types';
1
+ import type { SectionItemType, SectionType } from "./types";
2
2
  export interface SectionProps {
3
3
  config: SectionType;
4
4
  onItemClick?: (params: {
@@ -1,4 +1,4 @@
1
- import type { BaseSectionItemType, BaseSectionType } from '../base-section/types';
1
+ import type { BaseSectionItemType, BaseSectionType } from "../base-section/types";
2
2
  export type SectionItemType = BaseSectionItemType;
3
3
  export type SectionType = BaseSectionType<SectionItemType>;
4
4
  export type SectionItemClickedType = {
@@ -0,0 +1 @@
1
+ export * from "./spinner";
@@ -0,0 +1,3 @@
1
+ import { PanelProps } from "../panels/types";
2
+ import { SystemMenuPanel } from "./types";
3
+ export declare const createPanelComponent: (SystemMenuPanel: SystemMenuPanel) => ({ onClose }: PanelProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { SystemMenuAction } from "./types";
2
+ export interface SystemMenuProps {
3
+ actions: SystemMenuAction[];
4
+ panelWrapperClassName?: string;
5
+ }
6
+ export declare const SystemMenu: ({ actions, panelWrapperClassName }: SystemMenuProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { ContextMenuAction } from "../context-menu/types";
3
+ export type SystemMenuAction = ContextMenuAction & {
4
+ onClick: (openPanel: (Panel: SystemMenuPanel) => void) => void;
5
+ };
6
+ export type SystemMenuPanel = React.ComponentType<{
7
+ className: string;
8
+ onClose: () => void;
9
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare const ACTION_BUTTON_IDS: {
2
+ readonly CREATE_WORKSPACE: "createWorkspace";
3
+ };
@@ -1,6 +1,6 @@
1
- import { DefaultSectionProps } from '../../common/types';
2
- import type { SectionType } from '../section/types';
3
- import type { Workspace } from './types';
1
+ import { DefaultSectionProps } from "../../common/types";
2
+ import type { SectionType } from "../section/types";
3
+ import type { Workspace } from "./types";
4
4
  export declare const getWorkspacesSectionConfig: (workspaces: Workspace[], runningInstances: {
5
5
  [appName: string]: string[];
6
6
  }, settings: DefaultSectionProps) => SectionType;
@@ -1,3 +1,3 @@
1
- import { DefaultSectionProps } from '../../common/types';
1
+ import { DefaultSectionProps } from "../../common/types";
2
2
  export declare const WorkspacesSection: (props: DefaultSectionProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default WorkspacesSection;
package/package.json CHANGED
@@ -1,43 +1,61 @@
1
1
  {
2
- "name": "@interopio/home-ui-react",
3
- "description": "React components for building a Home App for io.Connect Browser.",
4
- "version": "1.4.2",
5
- "main": "./index.js",
6
- "module": "./index.mjs",
7
- "types": "./index.d.ts",
8
- "exports": {
9
- ".": {
10
- "import": "./index.mjs",
11
- "require": "./index.js"
12
- },
13
- "./index.css": {
14
- "import": "./index.css",
15
- "require": "./index.css"
16
- }
17
- },
18
- "peerDependencies": {
19
- "react": "18",
20
- "react-dom": "18",
21
- "@interopio/react-hooks": ">=3.0.0",
22
- "@interopio/workspaces-api": ">=3.0.0",
23
- "@interopio/workspaces-ui-react": ">=3.0.0"
24
- },
25
- "peerDependenciesMeta": {
26
- "react-dom": {
27
- "optional": true
28
- },
29
- "react": {
30
- "optional": true
31
- }
32
- },
33
- "homepage": "https://interop.io/",
34
- "author": {
35
- "name": "Interop.IO",
36
- "url": "https://interop.io/"
37
- },
38
- "license": "MIT",
39
- "publishConfig": {
40
- "registry": "https://registry.npmjs.org",
41
- "access": "public"
42
- }
2
+ "name": "@interopio/home-ui-react",
3
+ "description": "React components for building a Home App for io.Connect Browser.",
4
+ "version": "2.0.0",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.mjs",
11
+ "require": "./dist/index.js"
12
+ },
13
+ "./index.css": {
14
+ "import": "./dist/index.css",
15
+ "require": "./dist/index.css"
16
+ }
17
+ },
18
+ "scripts": {
19
+ "build": "vite build",
20
+ "test": "echo no test found",
21
+ "audit": "echo no audit found",
22
+ "postversion": "npm run build"
23
+ },
24
+ "peerDependencies": {
25
+ "@interopio/react-hooks": ">=3.0.0",
26
+ "@interopio/workspaces-api": ">=3.0.0",
27
+ "@interopio/workspaces-ui-react": ">=3.0.0",
28
+ "react": ">=16.8.0",
29
+ "react-dom": ">=16.8.0"
30
+ },
31
+ "dependencies": {
32
+ "@interopio/browser": "^4.0.0"
33
+ },
34
+ "devDependencies": {
35
+ "@interopio/browser-platform": "^4.0.0",
36
+ "@interopio/components-react": "^0.7.0",
37
+ "@interopio/desktop": "^6.7.0",
38
+ "@interopio/react-hooks": "^4.0.0",
39
+ "@interopio/theme": "^3.0.0",
40
+ "@interopio/workspaces-ui-react": "^4.0.0"
41
+ },
42
+ "peerDependenciesMeta": {
43
+ "react-dom": {
44
+ "optional": true
45
+ },
46
+ "react": {
47
+ "optional": true
48
+ }
49
+ },
50
+ "homepage": "https://interop.io/",
51
+ "author": {
52
+ "name": "Interop.IO",
53
+ "url": "https://interop.io/"
54
+ },
55
+ "license": "MIT",
56
+ "publishConfig": {
57
+ "@interopio:registry": "https://registry.npmjs.org",
58
+ "access": "public"
59
+ },
60
+ "gitHead": "e0dbc07a7ba20967ef13768e508e301602cf73a1"
43
61
  }
@@ -1,5 +0,0 @@
1
- {
2
- "loginPageLogo": {
3
- "value": "data:image/svg+xml,%3Csvg width='5041' height='1232' viewBox='0 0 5041 1232' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_879_362)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M548.6 178H439.6C368.7 178 310 199.5 269.3 244.5C228.6 289.3 206.7 356 206.7 444.3C206.7 532.6 228.6 599.5 269.3 644.2C310.2 689.2 368.7 710.7 439.6 710.7H548.6C619 710.7 677.6 689.2 718.6 644.2C759.5 599.4 781.6 532.6 781.6 444.2C781.6 355.8 759.5 289 718.6 244.2C677.7 199.3 619 177.7 548.6 177.7V178ZM449.5 293.8H538.9C582.2 293.8 611.9 305.2 631.1 328.3C650.5 351.8 660.5 389.2 660.5 444.4C660.5 499.6 650.5 536.7 631.1 560C612 583 582.2 594.1 538.9 594.1H449.5C405.6 594.1 375.9 583 356.9 560C337.6 536.8 327.7 499.7 327.7 444.5C327.7 389.3 337.4 351.9 356.8 328.4C375.9 305.2 405.6 293.8 449.5 293.8Z' fill='white'/%3E%3Cpath d='M0.700195 189.8C0.700195 183.1 6.10017 177.7 12.8002 177.7H108.6C115.3 177.7 120.7 183.1 120.7 189.8V698.6C120.7 705.3 115.3 710.7 108.6 710.7H12.8002C6.10017 710.7 0.700195 705.3 0.700195 698.6V189.8Z' fill='white'/%3E%3Cpath d='M0.700195 11.9002C0.700195 5.7002 5.70018 0.700195 11.9002 0.700195H109.6C115.7 0.700195 120.7 5.7002 120.7 11.9002V109.5C120.7 115.7 115.7 120.7 109.5 120.7H11.9002C5.70018 120.7 0.700195 115.7 0.700195 109.5V11.9002Z' fill='%23007BE5'/%3E%3Cpath d='M827.7 601.9C827.7 595.7 832.7 590.7 838.9 590.7H936.6C942.8 590.7 947.8 595.7 947.8 601.9V699.5C947.8 705.7 942.8 710.7 936.6 710.7H838.9C832.7 710.7 827.7 705.7 827.7 699.5V601.9Z' fill='%23007BE5'/%3E%3Cpath d='M4363.9 293.2C4320.2 293.2 4290.6 304.6 4271.6 327.8C4252.3 351.4 4242.5 388.8 4242.5 444C4242.5 499.2 4252.3 536.4 4271.5 559.7C4290.5 582.6 4320 593.8 4363.8 593.8H4614.7C4622.4 593.8 4628.7 600.1 4628.7 607.8V696.7C4628.7 704.4 4622.4 710.7 4614.7 710.7H4354.1C4283.3 710.7 4224.9 689.1 4184.1 644.1C4143.5 599.3 4121.6 532.4 4121.6 444C4121.6 355.6 4143.5 288.7 4184.1 243.9C4224.8 199 4283.3 177.3 4354.1 177.3H4614.7C4622.4 177.3 4628.7 183.6 4628.7 191.3V279.3C4628.7 287 4622.4 293.3 4614.7 293.3H4363.9V293.2Z' fill='white'/%3E%3Cpath d='M1302.6 165.3C1240.1 165.3 1197 180.9 1169.3 213.3C1141.3 246 1127.4 297.6 1127.4 372.9C1127.4 447.7 1141.1 499 1169 531.6C1196.6 563.9 1239.7 579.5 1302.7 579.5H1552.5C1560.2 579.5 1566.5 585.8 1566.5 593.5V697.1C1566.5 704.8 1560.2 711.1 1552.5 711.1H1302.7C1204.7 711.1 1127.5 683.4 1075 626.4C1022.4 569.7 995.7 484.8 995.7 372.9C995.7 260.5 1022.7 175.4 1075.2 118.4C1127.9 61.3001 1205 33.6001 1302.6 33.6001H1552.4C1560.1 33.6001 1566.4 39.9001 1566.4 47.6001V151.2C1566.4 158.9 1560.1 165.2 1552.4 165.2H1302.6V165.3Z' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1953.6 177.7H1844.8C1774 177.7 1715.6 199.3 1674.8 244.3C1634.2 289.1 1612.3 356 1612.3 444.4C1612.3 532.8 1634.2 599.7 1674.8 644.5C1715.5 689.4 1774 711.1 1844.8 711.1H1953.6C2023.9 711.1 2082.4 689.5 2123.2 644.5C2163.9 599.7 2186 532.8 2186 444.3C2186 355.8 2163.9 289 2123.2 244.1C2082.3 199.3 2023.9 177.7 1953.6 177.7ZM1854.6 293.7H1943.8C1987 293.7 2016.6 305.1 2035.8 328.3C2055.2 351.9 2065.2 389.3 2065.2 444.5C2065.2 499.7 2055.2 536.8 2035.8 560.2C2016.7 583.2 1987.1 594.3 1943.8 594.3H1854.6C1810.8 594.3 1781.3 583.1 1762.3 560.2C1743 536.9 1733.3 499.8 1733.3 444.5C1733.3 389.3 1743.1 351.9 1762.4 328.3C1781.3 305 1810.9 293.7 1854.6 293.7Z' fill='white'/%3E%3Cpath d='M2679.7 411.6C2679.7 372.5 2668.5 343.5 2645.4 324C2622.1 304.3 2585.3 293.2 2531.9 293.2H2378.4C2375.5 293.2 2374.9 293.9 2374.8 294C2374.5 294.4 2373.6 295.8 2373.6 299.8V696.7C2373.6 704.4 2367.3 710.7 2359.6 710.7H2267.7C2260 710.7 2253.7 704.4 2253.7 696.7V265.6C2253.7 234.7 2258.8 212 2272.6 197.2C2286.5 182.2 2307.5 177.3 2334.2 177.3H2531.8C2620.7 177.3 2688 198.4 2733.3 238.9C2778.7 279.5 2800.5 338.6 2800.5 411.7V696.7C2800.5 704.4 2794.2 710.7 2786.5 710.7H2693.7C2686 710.7 2679.7 704.4 2679.7 696.7V411.6Z' fill='white'/%3E%3Cpath d='M3304.7 411.6C3304.7 372.5 3293.5 343.5 3270.4 324C3247.1 304.3 3210.3 293.2 3156.9 293.2H3003.4C3000.5 293.2 2999.9 293.9 2999.8 294C2999.5 294.4 2998.6 295.8 2998.6 299.8V696.7C2998.6 704.4 2992.3 710.7 2984.6 710.7H2892.7C2885 710.7 2878.7 704.4 2878.7 696.7V265.6C2878.7 234.7 2883.8 212 2897.6 197.2C2911.5 182.2 2932.5 177.3 2959.2 177.3H3156.8C3245.7 177.3 3313 198.4 3358.3 238.9C3403.7 279.5 3425.5 338.6 3425.5 411.7V696.7C3425.5 704.4 3419.2 710.7 3411.5 710.7H3318.7C3311 710.7 3304.7 704.4 3304.7 696.7V411.6Z' fill='white'/%3E%3Cpath d='M4906.1 292.2C4898.4 292.2 4892.1 298.5 4892.1 306.2V529.2C4892.1 557.5 4897.2 574.3 4906.4 584.1C4915.4 593.8 4930 598.6 4953.7 598.6H5019.2C5026.9 598.6 5033.2 604.9 5033.2 612.6V695.7C5033.2 703.4 5026.9 709.7 5019.2 709.7H4932.1C4877.9 709.7 4836.8 698.8 4809.7 668.6C4782.8 638.6 4771.3 591.5 4771.3 523.4V306.2C4771.3 298.5 4765 292.2 4757.3 292.2H4714.7C4707 292.2 4700.7 285.9 4700.7 278.2V190.2C4700.7 182.5 4707 176.2 4714.7 176.2H4757.3C4765 176.2 4771.3 169.9 4771.3 162.2V67.7002C4771.3 60.0002 4777.6 53.7002 4785.3 53.7002H4878.2C4885.9 53.7002 4892.2 60.0002 4892.2 67.7002V162.2C4892.2 169.9 4898.5 176.2 4906.2 176.2H5021.3C5029 176.2 5035.3 182.5 5035.3 190.2V278.2C5035.3 285.9 5029 292.2 5021.3 292.2H4906.1Z' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4024.4 607.2C4024.4 599.5 4018.1 593.2 4010.4 593.2H3699.9C3672.9 593.2 3655.3 586 3644.6 575.2C3633.8 564.4 3628.6 548.8 3628.6 529.7V514.5C3628.6 506.8 3634.9 500.5 3642.6 500.5H3866.6C3931.2 500.5 3977.4 486.9 4007.5 459.6C4037.7 432.2 4050.1 392.3 4050.1 343.5C4050.1 292.2 4036.8 250.1 4006.4 220.9C3976.1 191.7 3930.1 176.8 3867.7 176.8H3700.1C3633.9 176.8 3586.5 195.4 3555.6 227.8C3524.8 260.1 3511.8 305 3511.8 355.3V531.7C3511.8 582 3524.9 626.9 3555.6 659.2C3586.5 691.6 3633.9 710.2 3700.1 710.2H4010.6C4018.3 710.2 4024.6 703.9 4024.6 696.2V607.2H4024.4ZM3863.5 403.1H3642.5C3634.8 403.1 3628.5 396.8 3628.5 389.1V356.2C3628.5 337.6 3633.7 321.9 3644.6 311C3655.4 300.1 3672.9 292.7 3699.9 292.7H3866.5C3890.7 292.7 3906.9 298.8 3916.9 308.2C3926.9 317.5 3932 331.3 3932 349.4C3932 367.1 3927.3 380 3917.4 388.6C3907.4 397.4 3890.5 403.1 3863.5 403.1Z' fill='white'/%3E%3Cpath d='M2918.9 872.3C3001.9 872.3 3036.9 909.9 3036.9 966.3C3036.9 1012.2 3013.9 1036.8 2973.2 1047.2C3014.4 1058.2 3037.9 1083.7 3037.9 1129.7C3037.9 1186.1 3003.5 1224.7 2920.5 1224.7H2755.6C2741.5 1224.7 2734.2 1217.9 2734.2 1203.8V893.2C2734.2 879.1 2741.5 872.3 2755.6 872.3H2918.9ZM2765.4 1033.1H2918.9C2976.8 1033.1 3005 1014.8 3005 970.5C3005 929.8 2979.4 903.7 2919.4 903.7H2771.2C2767.5 903.7 2765.5 905.3 2765.5 909.4V1033.1H2765.4ZM2765.4 1187.6C2765.4 1191.8 2767.5 1193.3 2771.1 1193.3H2921C2979.5 1193.3 3006.1 1168.2 3006.1 1125.4C3006.1 1081 2976.9 1060.2 2921 1060.2H2765.5V1187.6H2765.4Z' fill='white'/%3E%3Cpath d='M3294 956.9V985.6H3182.8C3148.9 985.6 3135.3 1000.7 3135.3 1033.6V1224.6H3106.1V1029.9C3106.1 979.8 3125.4 956.8 3176.6 956.8H3294V956.9Z' fill='white'/%3E%3Cpath d='M3489.1 956.9C3562.2 956.9 3608.6 1001.3 3608.6 1091C3608.6 1181.3 3562.1 1224.6 3489.1 1224.6H3431.2C3357.6 1224.6 3311.7 1181.3 3311.7 1091C3311.7 1001.2 3357.6 956.9 3431.2 956.9H3489.1ZM3433.3 985.6C3374.3 985.6 3340.9 1019 3340.9 1091C3340.9 1163.5 3374.3 1196.4 3433.3 1196.4H3487.1C3546.1 1196.4 3579.5 1163.5 3579.5 1091C3579.5 1019 3546.1 985.6 3487.1 985.6H3433.3Z' fill='white'/%3E%3Cpath d='M3674.4 956.9L3706.8 1176.6C3709.4 1195.4 3716.2 1204.3 3737.1 1204.3C3758.5 1204.3 3767.4 1195.4 3771.5 1180.3L3821.6 995.5C3829.4 966.8 3849.3 951.7 3884.2 951.7C3919.1 951.7 3937.4 966.8 3945.3 995.5L3994.9 1180.3C3999.1 1195.4 4007.9 1204.3 4029.3 1204.3C4050.2 1204.3 4056.4 1195.4 4059.6 1176.6L4093.5 956.9H4125.3L4089.3 1179.8C4084.6 1210.6 4069.5 1231 4028.2 1231C3992.7 1231 3975 1216.4 3966.6 1185.1L3917 1000.9C3912.8 985.2 3900.8 978.5 3883.6 978.5C3865.9 978.5 3854.9 985.3 3850.7 1000.9L3799.6 1185.1C3790.7 1216.4 3773.5 1231 3737.5 1231C3695.2 1231 3682.2 1210.1 3677.5 1179.8L3643.1 956.9H3674.4Z' fill='white'/%3E%3Cpath d='M4417.6 956.9V985.6H4260C4219.8 985.6 4203.6 1003.3 4203.6 1032.1C4203.6 1057.2 4216.1 1077.5 4263.6 1077.5H4338.8C4410.8 1077.5 4428.6 1110.9 4428.6 1149.5C4428.6 1194.9 4404.6 1224.7 4344 1224.7H4178V1196.5H4344C4384.2 1196.5 4399.8 1178.2 4399.8 1149.5C4399.8 1124.4 4387.8 1103.6 4339.8 1103.6H4264.6C4193.1 1103.6 4174.8 1069.2 4174.8 1030C4174.8 985.1 4198.8 956.9 4259.4 956.9H4417.6Z' fill='white'/%3E%3Cpath d='M4685.4 956.9C4749.1 956.9 4775.7 986.6 4775.7 1036.8C4775.7 1084.8 4751.2 1111.4 4684.9 1111.4H4526.2V1135.9C4526.2 1170.3 4545 1196.4 4593.5 1196.4H4762.1V1224.6H4593.5C4524.6 1224.6 4497.5 1187.5 4497.5 1136.4V1045.1C4497.5 995 4524.6 956.9 4593.5 956.9H4685.4ZM4526.2 1087.4H4684.3C4729.7 1087.4 4746.9 1069.7 4746.9 1037.8C4746.9 1005.4 4728.6 985.6 4685.3 985.6H4593.4C4544.9 985.6 4526.1 1011.2 4526.1 1045.6V1087.4H4526.2Z' fill='white'/%3E%3Cpath d='M5040.3 956.9V985.6H4929.1C4895.2 985.6 4881.6 1000.7 4881.6 1033.6V1224.6H4852.4V1029.9C4852.4 979.8 4871.7 956.8 4922.9 956.8H5040.3V956.9Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_879_362'%3E%3Crect width='5041' height='1231' fill='white' transform='translate(0 0.700195)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A"
4
- }
5
- }
package/common/types.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { SORT_ORDER } from '../constants/sortOrder';
2
- import { PaginationSettings } from '../lib/base-section/types';
3
- import { SectionItemType } from '../lib/section/types';
4
- export type FavoriteEntity = Omit<SectionItemType, 'isOpen'>;
5
- export type SortOrder = (typeof SORT_ORDER)[keyof typeof SORT_ORDER];
6
- export type SortCompareFunction<Type> = (a: Type, b: Type) => number;
7
- export type DefaultSectionProps = {
8
- isSectionCollapsible?: boolean;
9
- sortOrder?: SortOrder;
10
- } & PaginationSettings;
@@ -1,3 +0,0 @@
1
- import { Decoder } from 'decoder-validate';
2
- import { IOConnectHomeConfig } from '../lib/io-connect-home/types';
3
- export declare const ioConnectHomeConfigDecoder: Decoder<IOConnectHomeConfig>;
@@ -1,3 +0,0 @@
1
- import { Decoder } from 'decoder-validate';
2
- import { ContextMenuAction } from '../lib/context-menu/types';
3
- export declare const contextMenuActionDecoder: Decoder<ContextMenuAction>;
@@ -1,3 +0,0 @@
1
- import { Decoder } from 'decoder-validate';
2
- import { FavoriteEntity } from '../common/types';
3
- export declare const favoriteEntitiesStorageValueDecoder: Decoder<FavoriteEntity[]>;
@@ -1,3 +0,0 @@
1
- import { Decoder } from 'decoder-validate';
2
- import { LayoutSummary } from '../lib/layouts-panel/types';
3
- export declare const layoutStorageValueDecoder: Decoder<LayoutSummary | null>;
@@ -1,3 +0,0 @@
1
- import { Decoder } from 'decoder-validate';
2
- import { User } from '../lib/io-connect-home/types';
3
- export declare const userDecoder: Decoder<User>;
@@ -1,3 +0,0 @@
1
- import { Decoder } from 'decoder-validate';
2
- import { Auth0ValidationError } from '../lib/io-connect-home/types';
3
- export declare const auth0ValidationErrorDecoder: Decoder<Auth0ValidationError>;
@@ -1,7 +0,0 @@
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
- };
@@ -1,3 +0,0 @@
1
- import { SetupStepName } from '../lib/platform-setup/types';
2
- import { SetupStepActionExecutor } from './types';
3
- export declare const setupStepsActionExecutors: Record<SetupStepName, SetupStepActionExecutor>;
@@ -1,26 +0,0 @@
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
- import { SetupStepReducerAction } from '../lib/platform-setup/types';
7
- export type LayoutActionExecutor = (config: {
8
- io: IOConnectBrowser.API | IOConnectDesktop.API;
9
- layout: Layout;
10
- setDefaultLayout: (layout: LayoutSummary) => Promise<void>;
11
- }) => void | Promise<void>;
12
- export type ApplicationActionExecutor = (config: {
13
- io: IOConnectBrowser.API | IOConnectDesktop.API;
14
- item: SectionItemType;
15
- frame?: IOConnectWorkspaces.Frame;
16
- }) => void;
17
- export type WorkspaceActionExecutor = (config: {
18
- io: IOConnectBrowser.API | IOConnectDesktop.API;
19
- item: SectionItemType;
20
- removeFavorite: (id: string) => void;
21
- }) => void;
22
- export type SetupStepActionExecutor = (config: {
23
- handleDeferredStep: () => void;
24
- handleOperationComplete: () => void;
25
- dispatchAction: (action: SetupStepReducerAction) => void;
26
- }) => void;
package/helpers/date.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const formatDate: (timestamp: number) => string;
@@ -1 +0,0 @@
1
- export declare const getInitials: (name: string) => string;
package/hooks/index.d.ts DELETED
@@ -1,24 +0,0 @@
1
- export * from './useApplications';
2
- export * from './useApplicationsInstances';
3
- export * from './useBeforeunload';
4
- export * from './useFavoriteEntities';
5
- export * from './useFrame';
6
- export * from './useInvokeInteropMethod';
7
- export * from './useIsHomeLoaded';
8
- export * from './usePlatformWindow';
9
- export * from './useLayouts';
10
- export * from './useNotifications';
11
- export * from './useNotificationsSort';
12
- export * from './usePressedKeys';
13
- export * from './useRestoreWorkspace';
14
- export * from './useRestoreLayout';
15
- export * from './useSearch';
16
- export * from './useStartApplication';
17
- export * from './useStorage';
18
- export * from './useWorkspaces';
19
- export * from './useWorkspacesInstances';
20
- export * from './useExecuteApplicationAction';
21
- export * from './useExecuteWorkspaceAction';
22
- export * from './useExecuteLayoutAction';
23
- export * from './useExecuteLayoutOperationIfNotBlocked';
24
- export * from './useUA';
@@ -1,2 +0,0 @@
1
- import { IOConnectBrowser } from '@interopio/browser';
2
- export declare const useApplications: () => IOConnectBrowser.AppManager.Application[];
@@ -1,2 +0,0 @@
1
- import { Layout, LayoutSummary } from '../lib/layouts-panel/types';
2
- export declare const useExecuteLayoutAction: () => (layout: Layout, actionName: string, setDefaultLayout: (layout: LayoutSummary) => Promise<void>) => Promise<void>;
@@ -1,7 +0,0 @@
1
- import type { FavoriteEntity } from '../common/types';
2
- import type { SectionItemType } from '../lib/section/types';
3
- export declare const useFavoriteEntities: () => {
4
- favoriteEntities: FavoriteEntity[];
5
- toggleFavorite: ({ isOpen, ...item }: SectionItemType) => void;
6
- removeFavorite: (id: string) => void;
7
- };
@@ -1,2 +0,0 @@
1
- import { IOConnectWorkspaces } from '@interopio/workspaces-api';
2
- export declare const useFrame: () => IOConnectWorkspaces.Frame | undefined;
@@ -1 +0,0 @@
1
- export declare const useIsBrowserSupported: () => boolean;
@@ -1,2 +0,0 @@
1
- import type { Layout } from '../lib/layouts-panel/types';
2
- export declare const useLayouts: () => Layout[];
@@ -1,5 +0,0 @@
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
- };
@@ -1,4 +0,0 @@
1
- export declare const useStartApplication: () => ({ id, modifier }: {
2
- id: string;
3
- modifier: string | null;
4
- }) => Promise<import("@interopio/browser").IOConnectBrowser.AppManager.Instance | import("@interopio/workspaces-api").IOConnectWorkspaces.WorkspaceWindow>;
package/hooks/useUA.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const useUA: () => Omit<import("ua-parser-js").IResult, "ua">;
2
- export declare const useBrowser: () => import("ua-parser-js").IBrowser;