@interopio/home-ui-react 2.0.4 → 2.1.1-beta.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/dist/common/types.d.ts +0 -1
- package/dist/constants/platformPrefs.d.ts +0 -1
- package/dist/helpers/a11y.d.ts +0 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +16 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5923 -5527
- package/dist/index.mjs.map +1 -1
- package/dist/lib/base-section/base-section-header.d.ts +0 -1
- package/dist/lib/context-menu/context-menu.d.ts +1 -1
- package/dist/lib/context-menu/dropdown-button/dropdown-button.d.ts +2 -0
- package/dist/lib/home-app-workspace/home-app-workspace.d.ts +0 -1
- package/dist/lib/home-app-workspace/launchpad-access.d.ts +0 -1
- package/dist/lib/home-app-workspace/workspace-components-context.d.ts +0 -1
- package/dist/lib/info-card/info-card.d.ts +0 -1
- package/dist/lib/info-page-container/info-page-container.d.ts +0 -1
- package/dist/lib/io-connect-home-provider/io-connect-home-provider.d.ts +0 -1
- package/dist/lib/launchpad/launchpad-body.d.ts +5 -0
- package/dist/lib/launchpad/launchpad-config.context.d.ts +10 -0
- package/dist/lib/launchpad/launchpad-contents-container.d.ts +10 -0
- package/dist/lib/launchpad/launchpad-header.d.ts +1 -3
- package/dist/lib/launchpad/launchpad-search.context.d.ts +11 -0
- package/dist/lib/launchpad/launchpad.context.d.ts +4 -2
- package/dist/lib/launchpad/launchpad.d.ts +0 -1
- package/dist/lib/login/auth0/auth0-login-page.d.ts +0 -1
- package/dist/lib/login/login-page-container.d.ts +0 -1
- package/dist/lib/login/simple/simple-login-page.d.ts +0 -1
- package/dist/lib/notifications-panel-button/notifications-panel-button.d.ts +0 -1
- package/dist/lib/panels/panel-with-toggle-button.d.ts +0 -1
- package/dist/lib/panels/panel-wrapper.d.ts +0 -1
- package/dist/lib/platform-setup/platform-setup.d.ts +0 -1
- package/dist/lib/platform-setup/types.d.ts +0 -1
- package/dist/lib/search/search-bar/search-bar.d.ts +0 -1
- package/dist/lib/section/section.context.d.ts +1 -1
- package/dist/lib/system-loader/system-loader.d.ts +0 -1
- package/dist/lib/system-menu/types.d.ts +0 -1
- package/package.json +17 -16
- /package/{dist/README.md → README.md} +0 -0
- /package/dist/{lib/launchpad → hooks}/useIsLaunchpadCollapsed.d.ts +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ContextMenuAction } from "./types";
|
|
3
2
|
import { ActivationEvent } from "../../helpers/a11y";
|
|
4
3
|
interface ContextMenuProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
@@ -6,6 +5,7 @@ interface ContextMenuProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
|
6
5
|
actions: ContextMenuAction[];
|
|
7
6
|
onClose: () => void;
|
|
8
7
|
onActionItemClick: (event: ActivationEvent, action: ContextMenuAction) => void;
|
|
8
|
+
"data-testid"?: string;
|
|
9
9
|
}
|
|
10
10
|
export declare const ContextMenu: import("react").ForwardRefExoticComponent<ContextMenuProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
11
11
|
export default ContextMenu;
|
|
@@ -15,6 +15,8 @@ export interface DropdownButtonProps {
|
|
|
15
15
|
offset?: [number, number];
|
|
16
16
|
shouldCloseOnOutsideScroll?: boolean;
|
|
17
17
|
shouldCloseOnWindowBlur?: boolean;
|
|
18
|
+
"data-testid"?: string;
|
|
19
|
+
contextMenuDataTestId?: string;
|
|
18
20
|
}
|
|
19
21
|
export declare function DropdownButton(props: Readonly<DropdownButtonProps>): import("react/jsx-runtime").JSX.Element;
|
|
20
22
|
export default DropdownButton;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LaunchpadComponents, LaunchpadSettings } from "../io-connect-home/types";
|
|
2
|
+
interface LaunchpadConfigProviderProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
settings: LaunchpadSettings;
|
|
5
|
+
components: LaunchpadComponents;
|
|
6
|
+
}
|
|
7
|
+
export declare const LaunchpadConfigContext: import("react").Context<Required<Omit<LaunchpadConfigProviderProps, "children">> | undefined>;
|
|
8
|
+
export declare const useLaunchpadConfig: () => Required<Omit<LaunchpadConfigProviderProps, "children">>;
|
|
9
|
+
export declare const LaunchpadConfigProvider: ({ children, settings, components }: LaunchpadConfigProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LaunchpadComponents, LaunchpadSettings } from "../io-connect-home/types";
|
|
2
|
+
interface LaunchpadContentsContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
settings?: LaunchpadSettings;
|
|
4
|
+
components?: LaunchpadComponents;
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
windowManagementPermissionState?: PermissionState;
|
|
8
|
+
}
|
|
9
|
+
export declare const LaunchpadContentsContainer: ({ settings, components, isOpen, onClose, windowManagementPermissionState, children, className, ...rest }: LaunchpadContentsContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default LaunchpadContentsContainer;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
1
|
interface LaunchpadHeaderProps {
|
|
3
2
|
className?: string;
|
|
4
|
-
children: ReactNode;
|
|
5
3
|
}
|
|
6
|
-
export declare const LaunchpadHeader: ({ className
|
|
4
|
+
export declare const LaunchpadHeader: ({ className }: LaunchpadHeaderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
5
|
export default LaunchpadHeader;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface LaunchpadSearchContext {
|
|
2
|
+
searchTerm: string;
|
|
3
|
+
setSearchTerm: React.Dispatch<React.SetStateAction<string>>;
|
|
4
|
+
}
|
|
5
|
+
export declare const LaunchpadSearchContext: import("react").Context<LaunchpadSearchContext | undefined>;
|
|
6
|
+
export declare const useLaunchpadSearch: () => LaunchpadSearchContext;
|
|
7
|
+
interface SearchProviderProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const LaunchpadSearchProvider: ({ children }: SearchProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LayoutSummary } from "../layouts-panel/types";
|
|
3
2
|
import { SetDefaultLayout, SetActiveLayout, CloseLaunchpad } from "../../common/types";
|
|
4
3
|
export declare const useLaunchpadAPI: () => {
|
|
5
4
|
close?: CloseLaunchpad | undefined;
|
|
5
|
+
isOpen: boolean;
|
|
6
6
|
defaultLayout: LayoutSummary | undefined;
|
|
7
7
|
activeLayout: LayoutSummary | null;
|
|
8
8
|
setActiveLayout: SetActiveLayout;
|
|
9
9
|
setDefaultLayout: SetDefaultLayout;
|
|
10
10
|
isLayoutOperationBlocked: boolean;
|
|
11
11
|
setIsLayoutOperationBlocked: React.Dispatch<React.SetStateAction<boolean>>;
|
|
12
|
+
isGlobalLayoutsAvailable: boolean;
|
|
12
13
|
};
|
|
13
14
|
interface LaunchpadAPIProviderProps {
|
|
14
15
|
children: React.ReactNode;
|
|
15
16
|
close?: CloseLaunchpad;
|
|
17
|
+
isOpen: boolean;
|
|
16
18
|
isGlobalLayoutsAvailable: boolean;
|
|
17
19
|
}
|
|
18
|
-
export declare const LaunchpadAPIProvider: ({ children, close, isGlobalLayoutsAvailable }: LaunchpadAPIProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const LaunchpadAPIProvider: ({ children, close, isOpen, isGlobalLayoutsAvailable }: LaunchpadAPIProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
21
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface SectionProviderProps {
|
|
3
2
|
children: React.ReactNode;
|
|
4
3
|
}
|
|
5
4
|
interface ClickDataState {
|
|
6
5
|
itemName: string;
|
|
6
|
+
modifier: string | null;
|
|
7
7
|
selectedContextMenuActionName?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const useSection: () => [ClickDataState | null, import("react").Dispatch<import("react").SetStateAction<ClickDataState | null>>];
|
package/package.json
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interopio/home-ui-react",
|
|
3
3
|
"description": "React components for building a Home App for io.Connect Browser.",
|
|
4
|
-
"version": "2.0
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
4
|
+
"version": "2.1.1-beta.0",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
10
11
|
"import": "./dist/index.mjs",
|
|
11
12
|
"require": "./dist/index.js"
|
|
12
13
|
},
|
|
13
|
-
"./index.css":
|
|
14
|
-
"import": "./dist/index.css",
|
|
15
|
-
"require": "./dist/index.css"
|
|
16
|
-
}
|
|
14
|
+
"./index.css": "./dist/index.css"
|
|
17
15
|
},
|
|
18
16
|
"scripts": {
|
|
19
17
|
"build": "vite build",
|
|
@@ -22,6 +20,7 @@
|
|
|
22
20
|
"postversion": "npm run build"
|
|
23
21
|
},
|
|
24
22
|
"peerDependencies": {
|
|
23
|
+
"@auth0/auth0-react": "^2.0.1",
|
|
25
24
|
"@interopio/react-hooks": ">=3.0.0",
|
|
26
25
|
"@interopio/workspaces-api": ">=3.0.0",
|
|
27
26
|
"@interopio/workspaces-ui-react": ">=3.0.0",
|
|
@@ -29,15 +28,17 @@
|
|
|
29
28
|
"react-dom": ">=16.8.0"
|
|
30
29
|
},
|
|
31
30
|
"dependencies": {
|
|
32
|
-
"@interopio/browser": "^4.0
|
|
31
|
+
"@interopio/browser": "^4.1.1-beta.0",
|
|
32
|
+
"@interopio/components-react": "^0.8.1-beta.0",
|
|
33
|
+
"@interopio/search-api": "^3.1.1-beta.0",
|
|
34
|
+
"decoder-validate": "^0.0.2",
|
|
35
|
+
"ua-parser-js": "^1.0.35"
|
|
33
36
|
},
|
|
34
37
|
"devDependencies": {
|
|
35
|
-
"@interopio/browser-platform": "^4.0
|
|
36
|
-
"@interopio/
|
|
37
|
-
"@interopio/
|
|
38
|
-
"@interopio/react
|
|
39
|
-
"@interopio/theme": "^3.0.2",
|
|
40
|
-
"@interopio/workspaces-ui-react": "^4.0.4"
|
|
38
|
+
"@interopio/browser-platform": "^4.1.1-beta.0",
|
|
39
|
+
"@interopio/react-hooks": "^4.1.1-beta.0",
|
|
40
|
+
"@interopio/theme": "^3.1.1-beta.0",
|
|
41
|
+
"@interopio/workspaces-ui-react": "^4.1.1-beta.0"
|
|
41
42
|
},
|
|
42
43
|
"peerDependenciesMeta": {
|
|
43
44
|
"react-dom": {
|
|
@@ -57,5 +58,5 @@
|
|
|
57
58
|
"@interopio:registry": "https://registry.npmjs.org",
|
|
58
59
|
"access": "public"
|
|
59
60
|
},
|
|
60
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "709a886c38021f8cbeda2ae4ece1af42e0cfaba1"
|
|
61
62
|
}
|
|
File without changes
|
|
File without changes
|