@spaceandtimelabs/makeinfinite-ui 0.47.2 → 0.48.1
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 +32 -10
- package/dist/makeinfinite-ui.es.js +7109 -7038
- package/dist/makeinfinite-ui.umd.js +104 -104
- package/package.json +1 -1
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';
|
|
@@ -248,6 +252,8 @@ declare type CarouselProps = {
|
|
|
248
252
|
|
|
249
253
|
declare const Checkbox: ForwardRefExoticComponent<Omit<Checkbox_2.CheckboxProps & RefAttributes<HTMLButtonElement>, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
250
254
|
|
|
255
|
+
export declare const checkoutCommit: (projectName: string, commitHash: string) => Promise<void>;
|
|
256
|
+
|
|
251
257
|
declare const Collapsible: ForwardRefExoticComponent<Collapsible_2.CollapsibleProps & RefAttributes<HTMLDivElement>>;
|
|
252
258
|
|
|
253
259
|
declare const CollapsibleContent: ForwardRefExoticComponent<Omit<Collapsible_2.CollapsibleContentProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
@@ -325,6 +331,13 @@ declare const CommandShortcut: {
|
|
|
325
331
|
displayName: string;
|
|
326
332
|
};
|
|
327
333
|
|
|
334
|
+
declare interface Commit {
|
|
335
|
+
hash: string;
|
|
336
|
+
timestamp: number;
|
|
337
|
+
message: string;
|
|
338
|
+
isRelease: boolean;
|
|
339
|
+
}
|
|
340
|
+
|
|
328
341
|
declare const ContextMenu: FC<ContextMenu_2.ContextMenuProps>;
|
|
329
342
|
|
|
330
343
|
declare const ContextMenuCheckboxItem: ForwardRefExoticComponent<Omit<ContextMenu_2.ContextMenuCheckboxItemProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
@@ -852,11 +865,13 @@ declare const FormLabel: ForwardRefExoticComponent<Omit<Label.LabelProps & RefAt
|
|
|
852
865
|
|
|
853
866
|
declare const FormMessage: ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & RefAttributes<HTMLParagraphElement>>;
|
|
854
867
|
|
|
868
|
+
export declare const getCommits: (projectName: string, projectUrl: string, commitsCount?: number) => Promise<Commit[]>;
|
|
869
|
+
|
|
855
870
|
export declare const getHeadCommit: (projectName: string) => Promise<string>;
|
|
856
871
|
|
|
857
872
|
export declare const getRedoTargetCommitForFile: (projectName: string, filePath: string) => Promise<[string, string]>;
|
|
858
873
|
|
|
859
|
-
export declare const getTags: (projectName: string, projectUrl: string) => Promise<{
|
|
874
|
+
export declare const getTags: (projectName: string, projectUrl: string, tagsCount?: number) => Promise<{
|
|
860
875
|
tag: string;
|
|
861
876
|
targetCommitTimestamp: number;
|
|
862
877
|
targetCommit: string;
|
|
@@ -1070,18 +1085,21 @@ declare interface RGContainerProps {
|
|
|
1070
1085
|
export declare const RGDroppable: (props: {
|
|
1071
1086
|
id: string;
|
|
1072
1087
|
type: string;
|
|
1073
|
-
initialSize:
|
|
1088
|
+
initialSize: {
|
|
1089
|
+
w: number;
|
|
1090
|
+
h: number;
|
|
1091
|
+
};
|
|
1074
1092
|
metadata: object;
|
|
1075
|
-
node:
|
|
1093
|
+
node: ReactNode;
|
|
1076
1094
|
}) => JSX_2.Element;
|
|
1077
1095
|
|
|
1078
1096
|
export declare const RGEditLayout: (props: {
|
|
1079
|
-
components:
|
|
1080
|
-
layout:
|
|
1081
|
-
onLayoutChange:
|
|
1082
|
-
onResize:
|
|
1083
|
-
|
|
1084
|
-
|
|
1097
|
+
components: JSX.Element[];
|
|
1098
|
+
layout: Layout[];
|
|
1099
|
+
onLayoutChange: (layout: Layout[]) => void;
|
|
1100
|
+
onResize: ItemCallback;
|
|
1101
|
+
onDrag: ItemCallback;
|
|
1102
|
+
onDrop: (layout: Layout[], item: Layout, e: Event) => void;
|
|
1085
1103
|
}) => JSX_2.Element;
|
|
1086
1104
|
|
|
1087
1105
|
declare interface RGFallbackComponentProps {
|
|
@@ -1093,6 +1111,8 @@ export declare const RGPreviewLayout: (props: {
|
|
|
1093
1111
|
layout: any;
|
|
1094
1112
|
}) => JSX_2.Element;
|
|
1095
1113
|
|
|
1114
|
+
export declare const RGProvider: FC<PropsWithChildren<ReactNode>>;
|
|
1115
|
+
|
|
1096
1116
|
declare const ScrollArea: ForwardRefExoticComponent<Omit<ScrollArea_2.ScrollAreaProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1097
1117
|
|
|
1098
1118
|
declare const ScrollBar: ForwardRefExoticComponent<Omit<ScrollArea_2.ScrollAreaScrollbarProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
@@ -1202,7 +1222,7 @@ declare const Slider: ForwardRefExoticComponent<Omit<Slider_2.SliderProps & RefA
|
|
|
1202
1222
|
|
|
1203
1223
|
declare const Switch: ForwardRefExoticComponent<Omit<Switch_2.SwitchProps & RefAttributes<HTMLButtonElement>, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
1204
1224
|
|
|
1205
|
-
export declare const syncAndRetry: (projectName: string, projectRepository: string) => Promise<void>;
|
|
1225
|
+
export declare const syncAndRetry: (projectName: string, projectRepository: string, commitHash?: string) => Promise<void>;
|
|
1206
1226
|
|
|
1207
1227
|
declare const Table: ForwardRefExoticComponent<HTMLAttributes<HTMLTableElement> & RefAttributes<HTMLTableElement>>;
|
|
1208
1228
|
|
|
@@ -1327,6 +1347,8 @@ declare const useFormField: () => {
|
|
|
1327
1347
|
|
|
1328
1348
|
export declare const useProject: () => any;
|
|
1329
1349
|
|
|
1350
|
+
export declare const useRGContext: () => any;
|
|
1351
|
+
|
|
1330
1352
|
declare const useSiteBackground: () => {
|
|
1331
1353
|
siteBackground: any;
|
|
1332
1354
|
siteBackgroundColor: any;
|