@moh-sso/api 1.5.0 → 1.6.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.
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { type RefObject } from "react";
|
|
2
2
|
type FocusTrapOptions = {
|
|
3
3
|
active: boolean;
|
|
4
|
+
trapFocus?: boolean;
|
|
4
5
|
containerRef: RefObject<HTMLElement | null>;
|
|
5
6
|
restoreFocus?: boolean;
|
|
6
7
|
initialFocusRef?: RefObject<HTMLElement | HTMLButtonElement | null>;
|
|
7
8
|
initialFocusSelector?: string;
|
|
8
9
|
};
|
|
9
|
-
export declare function useFocusTrap({ active, containerRef, restoreFocus, initialFocusRef, initialFocusSelector, }: FocusTrapOptions): void;
|
|
10
|
+
export declare function useFocusTrap({ active, trapFocus, containerRef, restoreFocus, initialFocusRef, initialFocusSelector, }: FocusTrapOptions): void;
|
|
10
11
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PanelSize } from "./header-panel.context";
|
|
2
2
|
type Props = {
|
|
3
3
|
isOpen: boolean;
|
|
4
|
+
dockOnDesktop?: boolean;
|
|
4
5
|
title?: string;
|
|
5
6
|
content?: React.ReactNode;
|
|
6
7
|
onClose: () => void;
|
|
@@ -13,5 +14,5 @@ type Props = {
|
|
|
13
14
|
maximizable?: boolean;
|
|
14
15
|
defaultMaximized?: boolean;
|
|
15
16
|
};
|
|
16
|
-
export declare function ReusableHeaderPanel({ isOpen, title, content, onClose, size, primaryActionLabel, secondaryActionLabel, onPrimaryAction, onSecondaryAction, disablePrimaryAction, maximizable, defaultMaximized, }: Props): import("react").JSX.Element;
|
|
17
|
+
export declare function ReusableHeaderPanel({ isOpen, dockOnDesktop, title, content, onClose, size, primaryActionLabel, secondaryActionLabel, onPrimaryAction, onSecondaryAction, disablePrimaryAction, maximizable, defaultMaximized, }: Props): import("react").JSX.Element;
|
|
17
18
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export type PanelSize = "sm" | "md" | "lg";
|
|
3
3
|
type OpenPanelOptions = {
|
|
4
|
+
dockOnDesktop?: boolean;
|
|
4
5
|
title?: string;
|
|
5
6
|
content: React.ReactNode;
|
|
6
7
|
size?: PanelSize;
|
|
@@ -16,8 +17,9 @@ type HeaderPanelContextType = {
|
|
|
16
17
|
openPanel: (opts: OpenPanelOptions) => void;
|
|
17
18
|
closePanel: () => void;
|
|
18
19
|
};
|
|
19
|
-
export declare function HeaderPanelProvider({ children }: {
|
|
20
|
+
export declare function HeaderPanelProvider({ children, dockOnDesktop, }: {
|
|
20
21
|
children: React.ReactNode;
|
|
22
|
+
dockOnDesktop?: boolean;
|
|
21
23
|
}): React.JSX.Element;
|
|
22
24
|
export declare function useHeaderPanel(): HeaderPanelContextType;
|
|
23
25
|
export {};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.6.0",
|
|
7
7
|
"license": "UNLICENSED",
|
|
8
8
|
"module": "./dist/index.js",
|
|
9
9
|
"files": [
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@moh-sso/auth": "^1.
|
|
28
|
-
"@moh-sso/config": "^1.
|
|
27
|
+
"@moh-sso/auth": "^1.6.0",
|
|
28
|
+
"@moh-sso/config": "^1.6.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@reduxjs/toolkit": "^2.11.2"
|