@spaceandtimelabs/makeinfinite-ui 0.64.0 → 0.66.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 +13 -54
- package/dist/makeinfinite-ui.es.js +2848 -2825
- package/dist/makeinfinite-ui.umd.js +27 -27
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ import { PanelResizeHandleProps } from 'react-resizable-panels';
|
|
|
46
46
|
import { Popover as Popover_2 } from 'radix-ui';
|
|
47
47
|
import { Portal } from 'vaul';
|
|
48
48
|
import { Progress as Progress_2 } from 'radix-ui';
|
|
49
|
+
import { ProjectContextValue } from '../contexts';
|
|
49
50
|
import { PropsWithChildren } from 'react';
|
|
50
51
|
import { RadioGroup as RadioGroup_2 } from 'radix-ui';
|
|
51
52
|
import * as React_2 from 'react';
|
|
@@ -120,7 +121,7 @@ declare interface APIContextType {
|
|
|
120
121
|
export declare const APIHandler: (baseUrl: string) => {
|
|
121
122
|
createProject: (description: string, theme: string, siteBackground?: File | null, secretReferences?: string | string[]) => Promise<Response>;
|
|
122
123
|
createBlankProject: (description: string, theme: string, siteBackground?: File | null, secretReferences?: string | string[]) => Promise<Response>;
|
|
123
|
-
getProjects: () => Promise<Response>;
|
|
124
|
+
getProjects: (include_published_info?: boolean) => Promise<Response>;
|
|
124
125
|
getProjectMetadata: (projectName: string) => Promise<Response>;
|
|
125
126
|
getSubdomains: (projectName: string) => Promise<Response>;
|
|
126
127
|
allocateSubdomain: (projectName: string, subdomain: string) => Promise<Response>;
|
|
@@ -161,13 +162,14 @@ export declare const APIHandler: (baseUrl: string) => {
|
|
|
161
162
|
getUserSpendAnalytics: () => Promise<Response>;
|
|
162
163
|
getCreatorPointsSum: (projectName?: string | null) => Promise<Response>;
|
|
163
164
|
getCreatorPointsTop: (n?: number) => Promise<Response>;
|
|
165
|
+
getProjectViewsHistory: (projectName: string, start?: Date, end?: Date, granularity?: "minute" | "hour" | "day" | "month" | "year", limit?: number) => Promise<Response>;
|
|
166
|
+
getProjectViewsTop: (n?: number) => Promise<Response>;
|
|
164
167
|
};
|
|
165
168
|
|
|
166
|
-
declare type APIHandlerType = ReturnType<typeof APIHandler>;
|
|
167
|
-
|
|
168
169
|
export declare const APIProxyHandler: (baseUrl: string, projectHmac?: string) => {
|
|
169
170
|
getSecrets: () => Promise<Response>;
|
|
170
|
-
putSecret: (secretReference: string, secret:
|
|
171
|
+
putSecret: (secretReference: string, secret: SecretProperties) => Promise<Response>;
|
|
172
|
+
patchSecret: (secretReference: string, secret: SecretProperties) => Promise<Response>;
|
|
171
173
|
getSecret: (secretReference: string) => Promise<Response>;
|
|
172
174
|
deleteSecret: (secretReference: string) => Promise<Response>;
|
|
173
175
|
getAllTierKeyMaps: () => Promise<Response>;
|
|
@@ -877,7 +879,6 @@ declare const DropdownMenuTrigger: ForwardRefExoticComponent<DropdownMenu_2.Drop
|
|
|
877
879
|
export declare type FetchProjectResponse = {
|
|
878
880
|
status: string;
|
|
879
881
|
projects: Project[];
|
|
880
|
-
time_taken: string;
|
|
881
882
|
};
|
|
882
883
|
|
|
883
884
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
@@ -913,14 +914,6 @@ declare type GetTagsOptions = {
|
|
|
913
914
|
|
|
914
915
|
export declare const getUndoTargetCommitForFile: (projectName: string, filePath: string) => Promise<[string, string]>;
|
|
915
916
|
|
|
916
|
-
declare const gwAPIHandler: (baseUrl: string) => {
|
|
917
|
-
getQueryContent: (queryId: string) => Promise<Response>;
|
|
918
|
-
getVisuals: (pageNo: number, pageSize: number, scope: string, searchPattern: string, sortBy: string, sortOrder: string, visibility: string, visualType: string) => Promise<Response>;
|
|
919
|
-
getSubscription: () => Promise<Response>;
|
|
920
|
-
};
|
|
921
|
-
|
|
922
|
-
declare type GwAPIHandlerType = ReturnType<typeof gwAPIHandler>;
|
|
923
|
-
|
|
924
917
|
declare const HoverCard: FC<HoverCard_2.HoverCardProps>;
|
|
925
918
|
|
|
926
919
|
declare const HoverCardContent: ForwardRefExoticComponent<Omit<HoverCard_2.HoverCardContentProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
@@ -1058,6 +1051,7 @@ export declare type Project = {
|
|
|
1058
1051
|
updated_at_s: number;
|
|
1059
1052
|
hmac: string;
|
|
1060
1053
|
extra_meta?: string | null;
|
|
1054
|
+
published_url?: string;
|
|
1061
1055
|
};
|
|
1062
1056
|
|
|
1063
1057
|
declare interface ProjectConfig {
|
|
@@ -1068,29 +1062,6 @@ declare interface ProjectConfig {
|
|
|
1068
1062
|
PROXY_API_BASE_URL: string | null;
|
|
1069
1063
|
}
|
|
1070
1064
|
|
|
1071
|
-
declare const ProjectContext: Context<ProjectContextValue | null>;
|
|
1072
|
-
|
|
1073
|
-
declare interface ProjectContextValue {
|
|
1074
|
-
config: ProjectConfig;
|
|
1075
|
-
projectMetadata: ProjectMetadata;
|
|
1076
|
-
setProjectMetadata: React.Dispatch<React.SetStateAction<ProjectMetadata>>;
|
|
1077
|
-
syncToken: string;
|
|
1078
|
-
setSyncToken: () => void;
|
|
1079
|
-
selectedComponentId: string;
|
|
1080
|
-
setSelectedComponentId: React.Dispatch<React.SetStateAction<string>>;
|
|
1081
|
-
selectedComponentXPath: string;
|
|
1082
|
-
setSelectedComponentXPath: React.Dispatch<React.SetStateAction<string>>;
|
|
1083
|
-
selectedComponentHTML: string;
|
|
1084
|
-
setSelectedComponentHTML: React.Dispatch<React.SetStateAction<string>>;
|
|
1085
|
-
isComponentSubselected: boolean;
|
|
1086
|
-
setIsComponentSubselected: React.Dispatch<React.SetStateAction<boolean>>;
|
|
1087
|
-
APIHandler: APIHandlerType;
|
|
1088
|
-
gwAPIHandler: GwAPIHandlerType;
|
|
1089
|
-
proxyHandler: ProxyHandlerType;
|
|
1090
|
-
proxyFetch: ProxyFetchType | null;
|
|
1091
|
-
proxyGetView: ProxyGetViewType | null;
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
1065
|
declare interface ProjectMetadata {
|
|
1095
1066
|
projectName: string | null;
|
|
1096
1067
|
projectURL: string | null;
|
|
@@ -1114,22 +1085,12 @@ export declare type ProxyFetchConfig = {
|
|
|
1114
1085
|
miniappName: string;
|
|
1115
1086
|
};
|
|
1116
1087
|
|
|
1117
|
-
declare type ProxyFetchType = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
1118
|
-
|
|
1119
1088
|
/** Configuration for the proxy getView client */
|
|
1120
1089
|
export declare type ProxyGetViewConfig = {
|
|
1121
1090
|
miniappName: string;
|
|
1122
1091
|
gwProxyUrl: string;
|
|
1123
1092
|
};
|
|
1124
1093
|
|
|
1125
|
-
declare type ProxyGetViewType = (schema: string, viewName: string, parameters: {
|
|
1126
|
-
[key: string]: string | number | boolean;
|
|
1127
|
-
}) => Promise<{
|
|
1128
|
-
[key: string]: any;
|
|
1129
|
-
}[]>;
|
|
1130
|
-
|
|
1131
|
-
declare type ProxyHandlerType = ReturnType<typeof APIProxyHandler>;
|
|
1132
|
-
|
|
1133
1094
|
declare const RadioGroup: ForwardRefExoticComponent<Omit<RadioGroup_2.RadioGroupProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1134
1095
|
|
|
1135
1096
|
declare const RadioGroupItem: ForwardRefExoticComponent<Omit<RadioGroup_2.RadioGroupItemProps & RefAttributes<HTMLButtonElement>, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
@@ -1229,13 +1190,11 @@ declare const ScrollArea: ForwardRefExoticComponent<Omit<ScrollArea_2.ScrollArea
|
|
|
1229
1190
|
declare const ScrollBar: ForwardRefExoticComponent<Omit<ScrollArea_2.ScrollAreaScrollbarProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1230
1191
|
|
|
1231
1192
|
/** Represents a secret configuration for API access */
|
|
1232
|
-
export declare type
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
auth_header_value: string;
|
|
1238
|
-
secret_reference: string;
|
|
1193
|
+
export declare type SecretProperties = {
|
|
1194
|
+
api_domain?: string;
|
|
1195
|
+
api_path_prefix?: string;
|
|
1196
|
+
auth_header_key?: string;
|
|
1197
|
+
auth_header_value?: string;
|
|
1239
1198
|
};
|
|
1240
1199
|
|
|
1241
1200
|
declare const Select: FC<Select_2.SelectProps>;
|
|
@@ -1471,7 +1430,7 @@ declare const useFormField: () => {
|
|
|
1471
1430
|
formMessageId: string;
|
|
1472
1431
|
};
|
|
1473
1432
|
|
|
1474
|
-
export declare const useProject: () =>
|
|
1433
|
+
export declare const useProject: () => ProjectContextValue;
|
|
1475
1434
|
|
|
1476
1435
|
export declare const useRGContext: () => any;
|
|
1477
1436
|
|