@spaceandtimelabs/makeinfinite-ui 0.62.1 → 0.63.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 +69 -5
- package/dist/makeinfinite-ui.es.js +1967 -1959
- package/dist/makeinfinite-ui.umd.js +25 -25
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -137,11 +137,11 @@ export declare const APIHandler: (baseUrl: string) => {
|
|
|
137
137
|
updateApplicationMetadata: (projectName: string, applicationName: string, applicationDescription: string, applicationCategory: string) => Promise<Response>;
|
|
138
138
|
updateApplicationSettings: (projectName: string, applicationLoginEnabled?: boolean | null, defaultDeploymentChainReference?: string | null) => Promise<Response>;
|
|
139
139
|
updateProjectFile: (filePath: string, projectName: string, sourceCode: string, abortSignal?: AbortSignal) => Promise<Response>;
|
|
140
|
-
updateProjectFiles: (files:
|
|
140
|
+
updateProjectFiles: (files: {
|
|
141
141
|
projectName: string;
|
|
142
142
|
filePath: string;
|
|
143
143
|
fileContent: string;
|
|
144
|
-
}], abortSignal?: AbortSignal) => Promise<Response>;
|
|
144
|
+
}[], abortSignal?: AbortSignal) => Promise<Response>;
|
|
145
145
|
deleteProjectComponent: (projectName: string, filePath: string) => Promise<Response>;
|
|
146
146
|
deleteProjectFile: (projectName: string, filePath: string) => Promise<Response>;
|
|
147
147
|
resetProjectFile: (projectName: string, filePath: string, gitRef: string, prune?: boolean, extraMetadata?: string) => Promise<Response>;
|
|
@@ -158,8 +158,11 @@ export declare const APIHandler: (baseUrl: string) => {
|
|
|
158
158
|
domTreeRepr: string;
|
|
159
159
|
}) => Promise<Response>;
|
|
160
160
|
initializeProject: (projectName: string) => Promise<Response>;
|
|
161
|
+
getUserSpendAnalytics: () => Promise<Response>;
|
|
161
162
|
};
|
|
162
163
|
|
|
164
|
+
declare type APIHandlerType = ReturnType<typeof APIHandler>;
|
|
165
|
+
|
|
163
166
|
export declare const APIProxyHandler: (baseUrl: string, projectHmac?: string) => {
|
|
164
167
|
getSecrets: () => Promise<Response>;
|
|
165
168
|
putSecret: (secretReference: string, secret: Omit<Secret, "creator_user_id" | "secret_reference">) => Promise<Response>;
|
|
@@ -908,6 +911,14 @@ declare type GetTagsOptions = {
|
|
|
908
911
|
|
|
909
912
|
export declare const getUndoTargetCommitForFile: (projectName: string, filePath: string) => Promise<[string, string]>;
|
|
910
913
|
|
|
914
|
+
declare const gwAPIHandler: (baseUrl: string) => {
|
|
915
|
+
getQueryContent: (queryId: string) => Promise<Response>;
|
|
916
|
+
getVisuals: (pageNo: number, pageSize: number, scope: string, searchPattern: string, sortBy: string, sortOrder: string, visibility: string, visualType: string) => Promise<Response>;
|
|
917
|
+
getSubscription: () => Promise<Response>;
|
|
918
|
+
};
|
|
919
|
+
|
|
920
|
+
declare type GwAPIHandlerType = ReturnType<typeof gwAPIHandler>;
|
|
921
|
+
|
|
911
922
|
declare const HoverCard: FC<HoverCard_2.HoverCardProps>;
|
|
912
923
|
|
|
913
924
|
declare const HoverCardContent: ForwardRefExoticComponent<Omit<HoverCard_2.HoverCardContentProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
@@ -1047,9 +1058,52 @@ export declare type Project = {
|
|
|
1047
1058
|
extra_meta?: string | null;
|
|
1048
1059
|
};
|
|
1049
1060
|
|
|
1061
|
+
declare interface ProjectConfig {
|
|
1062
|
+
API_BASE_URL: string | null;
|
|
1063
|
+
WS_BASE_URL: string | null;
|
|
1064
|
+
GW_BASE_URL: string | null;
|
|
1065
|
+
GW_PROXY_URL: string | null;
|
|
1066
|
+
PROXY_API_BASE_URL: string | null;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
declare const ProjectContext: Context<ProjectContextValue | null>;
|
|
1070
|
+
|
|
1071
|
+
declare interface ProjectContextValue {
|
|
1072
|
+
config: ProjectConfig;
|
|
1073
|
+
projectMetadata: ProjectMetadata;
|
|
1074
|
+
setProjectMetadata: React.Dispatch<React.SetStateAction<ProjectMetadata>>;
|
|
1075
|
+
syncToken: string;
|
|
1076
|
+
setSyncToken: () => void;
|
|
1077
|
+
selectedComponentId: string;
|
|
1078
|
+
setSelectedComponentId: React.Dispatch<React.SetStateAction<string>>;
|
|
1079
|
+
selectedComponentXPath: string;
|
|
1080
|
+
setSelectedComponentXPath: React.Dispatch<React.SetStateAction<string>>;
|
|
1081
|
+
selectedComponentHTML: string;
|
|
1082
|
+
setSelectedComponentHTML: React.Dispatch<React.SetStateAction<string>>;
|
|
1083
|
+
isComponentSubselected: boolean;
|
|
1084
|
+
setIsComponentSubselected: React.Dispatch<React.SetStateAction<boolean>>;
|
|
1085
|
+
APIHandler: APIHandlerType;
|
|
1086
|
+
gwAPIHandler: GwAPIHandlerType;
|
|
1087
|
+
proxyHandler: ProxyHandlerType;
|
|
1088
|
+
proxyFetch: ProxyFetchType | null;
|
|
1089
|
+
proxyGetView: ProxyGetViewType | null;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
declare interface ProjectMetadata {
|
|
1093
|
+
projectName: string | null;
|
|
1094
|
+
projectURL: string | null;
|
|
1095
|
+
projectHmac?: string;
|
|
1096
|
+
extraMeta: {
|
|
1097
|
+
application_name?: string;
|
|
1098
|
+
project_name?: string;
|
|
1099
|
+
application_description?: string;
|
|
1100
|
+
application_category?: string;
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1050
1104
|
export declare const ProjectProvider: (props: {
|
|
1051
|
-
config:
|
|
1052
|
-
metadata?:
|
|
1105
|
+
config: ProjectConfig;
|
|
1106
|
+
metadata?: ProjectMetadata;
|
|
1053
1107
|
children?: React.ReactNode;
|
|
1054
1108
|
}) => JSX_2.Element;
|
|
1055
1109
|
|
|
@@ -1058,12 +1112,22 @@ export declare type ProxyFetchConfig = {
|
|
|
1058
1112
|
miniappName: string;
|
|
1059
1113
|
};
|
|
1060
1114
|
|
|
1115
|
+
declare type ProxyFetchType = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
1116
|
+
|
|
1061
1117
|
/** Configuration for the proxy getView client */
|
|
1062
1118
|
export declare type ProxyGetViewConfig = {
|
|
1063
1119
|
miniappName: string;
|
|
1064
1120
|
gwProxyUrl: string;
|
|
1065
1121
|
};
|
|
1066
1122
|
|
|
1123
|
+
declare type ProxyGetViewType = (schema: string, viewName: string, parameters: {
|
|
1124
|
+
[key: string]: string | number | boolean;
|
|
1125
|
+
}) => Promise<{
|
|
1126
|
+
[key: string]: any;
|
|
1127
|
+
}[]>;
|
|
1128
|
+
|
|
1129
|
+
declare type ProxyHandlerType = ReturnType<typeof APIProxyHandler>;
|
|
1130
|
+
|
|
1067
1131
|
declare const RadioGroup: ForwardRefExoticComponent<Omit<RadioGroup_2.RadioGroupProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1068
1132
|
|
|
1069
1133
|
declare const RadioGroupItem: ForwardRefExoticComponent<Omit<RadioGroup_2.RadioGroupItemProps & RefAttributes<HTMLButtonElement>, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
@@ -1405,7 +1469,7 @@ declare const useFormField: () => {
|
|
|
1405
1469
|
formMessageId: string;
|
|
1406
1470
|
};
|
|
1407
1471
|
|
|
1408
|
-
export declare const useProject: () =>
|
|
1472
|
+
export declare const useProject: () => NonNullable<React.ContextType<typeof ProjectContext>>;
|
|
1409
1473
|
|
|
1410
1474
|
export declare const useRGContext: () => any;
|
|
1411
1475
|
|