@spaceandtimelabs/makeinfinite-ui 0.47.1 → 0.48.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/index.d.ts CHANGED
@@ -35,8 +35,10 @@ import { ForwardRefExoticComponent } from 'react';
35
35
  import { HoverCard as HoverCard_2 } from 'radix-ui';
36
36
  import { HTMLAttributes } from 'react';
37
37
  import { ImperativePanelHandle } from 'react-resizable-panels';
38
+ import { ItemCallback } from 'react-grid-layout';
38
39
  import { JSX as JSX_2 } from 'react/jsx-runtime';
39
40
  import { Label } from 'radix-ui';
41
+ import { Layout } from 'react-grid-layout';
40
42
  import { LiHTMLAttributes } from 'react';
41
43
  import { Menubar as Menubar_2 } from 'radix-ui';
42
44
  import { NavigationMenu as NavigationMenu_2 } from 'radix-ui';
@@ -45,8 +47,10 @@ import { PanelResizeHandleProps } from 'react-resizable-panels';
45
47
  import { Popover as Popover_2 } from 'radix-ui';
46
48
  import { Portal } from 'vaul';
47
49
  import { Progress as Progress_2 } from 'radix-ui';
50
+ import { PropsWithChildren } from 'react';
48
51
  import { RadioGroup as RadioGroup_2 } from 'radix-ui';
49
52
  import * as React_2 from 'react';
53
+ import { ReactNode } from 'react';
50
54
  import { RefAttributes } from 'react';
51
55
  import { Scope } from '@radix-ui/react-context';
52
56
  import { ScrollArea as ScrollArea_2 } from 'radix-ui';
@@ -1070,18 +1074,21 @@ declare interface RGContainerProps {
1070
1074
  export declare const RGDroppable: (props: {
1071
1075
  id: string;
1072
1076
  type: string;
1073
- initialSize: object;
1077
+ initialSize: {
1078
+ w: number;
1079
+ h: number;
1080
+ };
1074
1081
  metadata: object;
1075
- node: React.ReactNode;
1082
+ node: ReactNode;
1076
1083
  }) => JSX_2.Element;
1077
1084
 
1078
1085
  export declare const RGEditLayout: (props: {
1079
- components: any;
1080
- layout: any;
1081
- onLayoutChange: any;
1082
- onResize: any;
1083
- onDrop: any;
1084
- onDrag: any;
1086
+ components: JSX.Element[];
1087
+ layout: Layout[];
1088
+ onLayoutChange: (layout: Layout[]) => void;
1089
+ onResize: ItemCallback;
1090
+ onDrag: ItemCallback;
1091
+ onDrop: (layout: Layout[], item: Layout, e: Event) => void;
1085
1092
  }) => JSX_2.Element;
1086
1093
 
1087
1094
  declare interface RGFallbackComponentProps {
@@ -1093,6 +1100,8 @@ export declare const RGPreviewLayout: (props: {
1093
1100
  layout: any;
1094
1101
  }) => JSX_2.Element;
1095
1102
 
1103
+ export declare const RGProvider: FC<PropsWithChildren<ReactNode>>;
1104
+
1096
1105
  declare const ScrollArea: ForwardRefExoticComponent<Omit<ScrollArea_2.ScrollAreaProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
1097
1106
 
1098
1107
  declare const ScrollBar: ForwardRefExoticComponent<Omit<ScrollArea_2.ScrollAreaScrollbarProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
@@ -1327,6 +1336,8 @@ declare const useFormField: () => {
1327
1336
 
1328
1337
  export declare const useProject: () => any;
1329
1338
 
1339
+ export declare const useRGContext: () => any;
1340
+
1330
1341
  declare const useSiteBackground: () => {
1331
1342
  siteBackground: any;
1332
1343
  siteBackgroundColor: any;