@interopio/home-ui-react 1.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.
- package/README.md +312 -0
- package/assets/fonts/nunito-regular-webfont.woff +0 -0
- package/assets/fonts/nunito-regular-webfont.woff2 +0 -0
- package/assets/fonts/nunito-semibold-webfont.woff +0 -0
- package/assets/fonts/nunito-semibold-webfont.woff2 +0 -0
- package/assets/glue-logo.json +5 -0
- package/common/types.d.ts +2 -0
- package/constants/contextMenuActions.d.ts +15 -0
- package/constants/defaults.d.ts +2 -0
- package/constants/itemTypes.d.ts +5 -0
- package/constants/modifierKeys.d.ts +4 -0
- package/constants/storageKeys.d.ts +3 -0
- package/decoders/base.d.ts +2 -0
- package/decoders/context-menu.d.ts +3 -0
- package/decoders/favorites.d.ts +3 -0
- package/decoders/layouts.d.ts +3 -0
- package/executors/applicationActions.d.ts +6 -0
- package/executors/workspaceActions.d.ts +5 -0
- package/helpers/a11y.d.ts +39 -0
- package/helpers/date.d.ts +1 -0
- package/helpers/string.d.ts +1 -0
- package/hooks/index.d.ts +15 -0
- package/hooks/useApplications.d.ts +2 -0
- package/hooks/useApplicationsInstances.d.ts +3 -0
- package/hooks/useExecuteApplicationAction.d.ts +2 -0
- package/hooks/useExecuteWorkspaceAction.d.ts +2 -0
- package/hooks/useFavoriteEntities.d.ts +6 -0
- package/hooks/useFrame.d.ts +2 -0
- package/hooks/useInvokeInteropMethod.d.ts +2 -0
- package/hooks/usePressedKeys.d.ts +1 -0
- package/hooks/useRestoreWorkspace.d.ts +2 -0
- package/hooks/useSearch.d.ts +5 -0
- package/hooks/useStartApplication.d.ts +1 -0
- package/hooks/useStorage.d.ts +4 -0
- package/hooks/useUA.d.ts +2 -0
- package/hooks/useWorkspaces.d.ts +2 -0
- package/hooks/useWorkspacesInstances.d.ts +3 -0
- package/images/initial-setup.gif +0 -0
- package/images/manual-permissions.gif +0 -0
- package/images/using-home.gif +0 -0
- package/index.css +1 -0
- package/index.d.ts +33 -0
- package/index.js +43 -0
- package/index.js.map +1 -0
- package/index.mjs +7092 -0
- package/index.mjs.map +1 -0
- package/lib/applications-section/applications-section.d.ts +3 -0
- package/lib/applications-section/applications-section.helpers.d.ts +5 -0
- package/lib/base-section/base-section-header.d.ts +8 -0
- package/lib/base-section/base-section-item.d.ts +13 -0
- package/lib/base-section/base-section.d.ts +15 -0
- package/lib/base-section/base-section.helpers.d.ts +2 -0
- package/lib/base-section/base-section.types.d.ts +19 -0
- package/lib/button/button.d.ts +7 -0
- package/lib/button-group/button-group.d.ts +8 -0
- package/lib/context-menu/context-menu-types.d.ts +9 -0
- package/lib/context-menu/context-menu.d.ts +10 -0
- package/lib/context-menu/dropdown-button/dropdown-button.d.ts +12 -0
- package/lib/favorites-section/favorites-section.d.ts +3 -0
- package/lib/favorites-section/favorites-section.helpers.d.ts +3 -0
- package/lib/glue42-home-provider/constants.d.ts +1 -0
- package/lib/glue42-home-provider/glue42-home-provider.d.ts +15 -0
- package/lib/glue42-home-provider/helpers.d.ts +2 -0
- package/lib/glue42-home-provider/types.d.ts +4 -0
- package/lib/icon/icon.d.ts +9 -0
- package/lib/icon-components/browser-notifications-icon.d.ts +3 -0
- package/lib/icon-components/index.d.ts +4 -0
- package/lib/icon-components/reopen-prompt-icon.d.ts +3 -0
- package/lib/icon-components/warning-icon.d.ts +3 -0
- package/lib/icon-components/window-placement-icon.d.ts +3 -0
- package/lib/img-icon/img-icon.d.ts +8 -0
- package/lib/launchpad/features/profile-settings/profile-settings.d.ts +9 -0
- package/lib/launchpad/features/profile-settings/user-profile-modal.d.ts +10 -0
- package/lib/launchpad/launchpad.context.d.ts +12 -0
- package/lib/launchpad/launchpad.d.ts +14 -0
- package/lib/layout-settings/constants.d.ts +2 -0
- package/lib/layout-settings/index.d.ts +2 -0
- package/lib/layout-settings/layout-actions.d.ts +8 -0
- package/lib/layout-settings/layout-item.d.ts +9 -0
- package/lib/layout-settings/layout-notification.d.ts +7 -0
- package/lib/layout-settings/layout-settings-container.d.ts +3 -0
- package/lib/layout-settings/layout-settings.d.ts +12 -0
- package/lib/layout-settings/layout-startup.d.ts +2 -0
- package/lib/layout-settings/layout-types.d.ts +30 -0
- package/lib/login/constants.d.ts +1 -0
- package/lib/login/index.d.ts +3 -0
- package/lib/login/login-auth0.d.ts +6 -0
- package/lib/login/login-form.d.ts +11 -0
- package/lib/login/login-heading.d.ts +6 -0
- package/lib/login/login-loader.d.ts +3 -0
- package/lib/login/login-logo.d.ts +7 -0
- package/lib/login/login.d.ts +8 -0
- package/lib/login/reducers.d.ts +3 -0
- package/lib/login/types.d.ts +16 -0
- package/lib/modal/modal.d.ts +9 -0
- package/lib/notifications-panel/index.d.ts +1 -0
- package/lib/notifications-panel/notification-toast.d.ts +17 -0
- package/lib/notifications-panel/notifications-modal.d.ts +4 -0
- package/lib/notifications-panel/notifications-panel.d.ts +3 -0
- package/lib/notifications-panel/useNotificationsSort.d.ts +13 -0
- package/lib/panels/launchpad-slide-panel.d.ts +12 -0
- package/lib/panels/slide-panel.d.ts +9 -0
- package/lib/permissions-setup/constants.d.ts +5 -0
- package/lib/permissions-setup/permissions-card.d.ts +10 -0
- package/lib/permissions-setup/permissions-list.d.ts +8 -0
- package/lib/permissions-setup/permissions-setup-flow.d.ts +8 -0
- package/lib/permissions-setup/permissions-setup.d.ts +13 -0
- package/lib/permissions-setup/permissions-steps.d.ts +8 -0
- package/lib/permissions-setup/something-went-wrong.d.ts +6 -0
- package/lib/permissions-setup/types.d.ts +14 -0
- package/lib/permissions-setup/unsuccessful-setup.d.ts +7 -0
- package/lib/permissions-setup/use-edge-notifications-permission.d.ts +6 -0
- package/lib/profile-details-card/profile-details-card.d.ts +8 -0
- package/lib/search/search-bar/search-bar.d.ts +8 -0
- package/lib/search/search-results-section/search-results-section.d.ts +6 -0
- package/lib/search/search-results-section/search-results-section.helpers.d.ts +3 -0
- package/lib/search/search-results-section/search-results-section.types.d.ts +8 -0
- package/lib/section/section.context.d.ts +11 -0
- package/lib/section/section.d.ts +12 -0
- package/lib/section/section.helpers.d.ts +3 -0
- package/lib/section/section.types.d.ts +8 -0
- package/lib/settings-card/settings-card.d.ts +3 -0
- package/lib/support-card/support-card.d.ts +9 -0
- package/lib/workspaces-section/workspaces-section.d.ts +3 -0
- package/lib/workspaces-section/workspaces-section.helpers.d.ts +5 -0
- package/lib/workspaces-section/workspaces-section.types.d.ts +4 -0
- package/package.json +45 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface PermissionsSetupProps {
|
|
3
|
+
components?: {
|
|
4
|
+
Logo?: React.ComponentType<{
|
|
5
|
+
className?: string;
|
|
6
|
+
}>;
|
|
7
|
+
};
|
|
8
|
+
settings?: {
|
|
9
|
+
edgeNotificationsPermissionTimeout?: number;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare const PermissionsSetup: ({ components: { Logo }, settings }: PermissionsSetupProps) => JSX.Element;
|
|
13
|
+
export default PermissionsSetup;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PERMISSION_NAMES } from '../glue42-home-provider/constants';
|
|
3
|
+
export interface PermissionStep {
|
|
4
|
+
heading: string;
|
|
5
|
+
description: string;
|
|
6
|
+
guidelines: Record<string, string>;
|
|
7
|
+
label: string;
|
|
8
|
+
Image?: React.ComponentType;
|
|
9
|
+
openPermissionsPrompt: (options: {
|
|
10
|
+
handleDeferredPermission: () => void;
|
|
11
|
+
handlePermissionsPromptClose: () => void;
|
|
12
|
+
}) => void;
|
|
13
|
+
}
|
|
14
|
+
export type PermissionNames = (typeof PERMISSION_NAMES)[number];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { PermissionNames } from './types';
|
|
3
|
+
interface UnsuccessfulSetupProps {
|
|
4
|
+
deniedPermissionName?: PermissionNames;
|
|
5
|
+
}
|
|
6
|
+
export declare const UnsuccessfulSetup: ({ deniedPermissionName }: UnsuccessfulSetupProps) => JSX.Element;
|
|
7
|
+
export default UnsuccessfulSetup;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const useEdgeNotificationsPermission: ({ edgeNotificationsPermissionTimeout, isNotificationsPermissionPromptOpen, }: {
|
|
2
|
+
edgeNotificationsPermissionTimeout: number;
|
|
3
|
+
isNotificationsPermissionPromptOpen: boolean;
|
|
4
|
+
}) => {
|
|
5
|
+
hasEdgeNotificationsPermissionError: boolean;
|
|
6
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface SearchBarProps {
|
|
3
|
+
onSearch: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
4
|
+
searchTerm: string;
|
|
5
|
+
onClear: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const SearchBar: import("react").ForwardRefExoticComponent<SearchBarProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
8
|
+
export default SearchBar;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Glue42Search } from '@glue42/search-api';
|
|
2
|
+
import type { BaseSectionItemType, BaseSectionType } from '../../base-section/base-section.types';
|
|
3
|
+
import { SearchResultsContextMenuAction } from '../../context-menu/context-menu-types';
|
|
4
|
+
export interface SearchResultsSectionItemType extends BaseSectionItemType {
|
|
5
|
+
mainAction?: Glue42Search.MainAction;
|
|
6
|
+
contextMenuActions?: SearchResultsContextMenuAction[];
|
|
7
|
+
}
|
|
8
|
+
export type SearchResultsSectionType = BaseSectionType<SearchResultsSectionItemType>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface SectionProviderProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
interface ClickDataState {
|
|
6
|
+
itemName: string;
|
|
7
|
+
selectedContextMenuActionName?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const useSection: () => [ClickDataState | null, import("react").Dispatch<import("react").SetStateAction<ClickDataState | null>>];
|
|
10
|
+
export declare const SectionProvider: ({ children }: SectionProviderProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { SectionItemType, SectionType } from './section.types';
|
|
3
|
+
interface SectionProps {
|
|
4
|
+
config: SectionType;
|
|
5
|
+
onItemClick?: (params: {
|
|
6
|
+
item: SectionItemType;
|
|
7
|
+
modifier: string | null;
|
|
8
|
+
selectedContextMenuActionName?: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Section: ({ config, onItemClick }: SectionProps) => JSX.Element;
|
|
12
|
+
export default Section;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BaseSectionItemType, BaseSectionType } from '../base-section/base-section.types';
|
|
2
|
+
export type SectionItemType = BaseSectionItemType;
|
|
3
|
+
export type SectionType = BaseSectionType<SectionItemType>;
|
|
4
|
+
export type SectionItemClickedType = {
|
|
5
|
+
item: SectionItemType;
|
|
6
|
+
modifier: string | null;
|
|
7
|
+
selectedContextMenuActionName?: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC, HTMLProps } from 'react';
|
|
2
|
+
export interface SupportCardProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
links?: HTMLProps<HTMLAnchorElement>[];
|
|
6
|
+
onLogout?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SupportCard: FC<SupportCardProps>;
|
|
9
|
+
export default SupportCard;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SectionType } from '../section/section.types';
|
|
2
|
+
import type { Workspace } from './workspaces-section.types';
|
|
3
|
+
export declare const getWorkspacesSectionConfig: (workspaces: Workspace[], runningInstances: {
|
|
4
|
+
[appName: string]: string[];
|
|
5
|
+
}) => SectionType;
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@interopio/home-ui-react",
|
|
3
|
+
"description": "React components for building a Home App for io.Connect Browser.",
|
|
4
|
+
"version": "1.0.0",
|
|
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
|
+
"@glue42/web": "2",
|
|
22
|
+
"@glue42/workspaces-api": "1",
|
|
23
|
+
"@glue42/react-hooks": "2",
|
|
24
|
+
"@glue42/search-api": "1",
|
|
25
|
+
"@glue42/desktop": "5"
|
|
26
|
+
},
|
|
27
|
+
"peerDependenciesMeta": {
|
|
28
|
+
"react-dom": {
|
|
29
|
+
"optional": true
|
|
30
|
+
},
|
|
31
|
+
"react": {
|
|
32
|
+
"optional": true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://interop.io/",
|
|
36
|
+
"author": {
|
|
37
|
+
"name": "Interop.IO",
|
|
38
|
+
"url": "https://interop.io/"
|
|
39
|
+
},
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"registry": "https://registry.npmjs.org",
|
|
43
|
+
"access": "public"
|
|
44
|
+
}
|
|
45
|
+
}
|