@overmap-ai/blocks 1.0.25-export-error-fixes.0 → 1.0.25-export-error-fixes.2

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,15 +1,4 @@
1
- import { Dispatch, PropsWithChildren, SetStateAction } from "react";
2
- interface ILayoutContent {
3
- small: boolean;
4
- hideLayout: boolean;
5
- /** controlled value for open state of LeftSlideOut Component. */
6
- showLeftSlideOut: boolean;
7
- setShowLeftSlideOut: Dispatch<SetStateAction<boolean>>;
8
- /** controlled value for open state of RightSlideOut Component. */
9
- showRightSlideOut: boolean;
10
- setShowRightSlideOut: Dispatch<SetStateAction<boolean>>;
11
- }
12
- export declare const LayoutContext: import("react").Context<ILayoutContent>;
1
+ import { PropsWithChildren } from "react";
13
2
  export interface RootProps extends PropsWithChildren {
14
3
  /** TODO: DOCUMENT THIS HEAVILY
15
4
  * @default false */
@@ -20,4 +9,3 @@ export interface RootProps extends PropsWithChildren {
20
9
  }
21
10
  /** */
22
11
  export declare const Root: import("react").MemoExoticComponent<(props: RootProps) => import("react/jsx-runtime").JSX.Element>;
23
- export {};
@@ -0,0 +1,14 @@
1
+ import { Dispatch, SetStateAction } from "react";
2
+ interface ILayoutContent {
3
+ small: boolean;
4
+ hideLayout: boolean;
5
+ /** controlled value for open state of LeftSlideOut Component. */
6
+ showLeftSlideOut: boolean;
7
+ setShowLeftSlideOut: Dispatch<SetStateAction<boolean>>;
8
+ /** controlled value for open state of RightSlideOut Component. */
9
+ showRightSlideOut: boolean;
10
+ setShowRightSlideOut: Dispatch<SetStateAction<boolean>>;
11
+ }
12
+ export declare const LayoutContext: import("react").Context<ILayoutContent>;
13
+ export declare const useLayoutContext: () => ILayoutContent;
14
+ export {};
@@ -7,7 +7,7 @@ export declare const Layout: {
7
7
  RightSlideOut: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./SlideOut").LayoutSlideOutProps & import("react").RefAttributes<HTMLDivElement>>>;
8
8
  SlideOutTrigger: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./SlideOutTrigger").SlideOutTriggerProps & import("react").RefAttributes<HTMLButtonElement>>>;
9
9
  };
10
- export * from "./hooks";
10
+ export * from "./context";
11
11
  export type * from "./Root";
12
12
  export type * from "./Container";
13
13
  export type * from "./SlideOutOverlay";
package/dist/blocks.js CHANGED
@@ -1495,6 +1495,7 @@ const _Sidebar = forwardRef(function Sidebar2({
1495
1495
  });
1496
1496
  const Sidebar = memo(_Sidebar);
1497
1497
  const LayoutContext = createContext({});
1498
+ const useLayoutContext = () => useContext(LayoutContext);
1498
1499
  const Root$1 = memo((props) => {
1499
1500
  const { children, small = false, hideLayout = false } = props;
1500
1501
  const [showLeftSlideOut, setShowLeftSlideOut] = useState(false);
@@ -1513,7 +1514,6 @@ const Root$1 = memo((props) => {
1513
1514
  return /* @__PURE__ */ jsx(LayoutContext.Provider, { value: contextValue, children });
1514
1515
  });
1515
1516
  Root$1.displayName = "Layout.Root";
1516
- const useLayoutContext = () => useContext(LayoutContext);
1517
1517
  const Container = memo(
1518
1518
  forwardRef((props, ref) => {
1519
1519
  const { children, style, grow = "1", height = "100%", position, ...rest } = props;
@@ -4270,6 +4270,7 @@ export {
4270
4270
  IconColorUtility,
4271
4271
  Input,
4272
4272
  Layout,
4273
+ LayoutContext,
4273
4274
  LeftAndRightPanels,
4274
4275
  MultiPagePopover,
4275
4276
  MultiSelect,