@spaceandtimelabs/makeinfinite-ui 0.35.5 → 0.36.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 +77 -0
- package/dist/makeinfinite-ui.es.js +2 -0
- package/dist/makeinfinite-ui.umd.js +33 -33
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,53 @@ declare interface APIContextType {
|
|
|
7
7
|
wrapXHRCall: <T>(xhrCreator: () => XMLHttpRequest, processResponse: (xhr: XMLHttpRequest) => T) => Promise<T>;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
export declare const APIHandler: (baseUrl: string) => {
|
|
11
|
+
createProject: (description: string, componentNamespace: string) => Promise<Response>;
|
|
12
|
+
getProjects: () => Promise<Response>;
|
|
13
|
+
getSubdomains: (projectName: string) => Promise<Response>;
|
|
14
|
+
allocateSubdomain: (projectName: string, subdomain: string) => Promise<Response>;
|
|
15
|
+
updateSubdomain: (projectName: string, subdomain: string) => Promise<Response>;
|
|
16
|
+
releaseSubdomain: (projectName: string, subdomain: string) => Promise<Response>;
|
|
17
|
+
publishProject: (projectName: string, gitRef: string) => Promise<Response>;
|
|
18
|
+
unpublishProject: (projectName: string) => Promise<Response>;
|
|
19
|
+
tagCommit: (projectName: string, commitHash: string, tagName: string) => Promise<Response>;
|
|
20
|
+
getComponentLibrary: () => Promise<Response>;
|
|
21
|
+
addProjectComponent: (projectName: string, componentNamespace: string, componentName: string, layoutMetadata: any) => Promise<Response>;
|
|
22
|
+
addProjectChart: (projectName: string, visualId: string, layoutMetadata: object) => Promise<Response>;
|
|
23
|
+
updateProjectComponentLayoutMetadata: (projectName: string, componentId: string, layoutMetadata: any) => Promise<Response>;
|
|
24
|
+
updateProjectComponentSourceCode: (projectName: string, componentId: string, sourceCode: string) => Promise<Response>;
|
|
25
|
+
updateApplicationMetadata: (projectName: string, applicationName: string, applicationDescription: string, applicationCategory: string) => Promise<Response>;
|
|
26
|
+
updateApplicationSettings: (projectName: string, applicationLoginEnabled: boolean) => Promise<Response>;
|
|
27
|
+
deleteProjectFile: (projectName: string, filePath: string) => Promise<Response>;
|
|
28
|
+
resetProjectFile: (projectName: string, filePath: string, gitRef: string, prune?: boolean, extraMetadata?: string) => Promise<Response>;
|
|
29
|
+
deleteProject: (projectName: string) => Promise<Response>;
|
|
30
|
+
requestErrorCorrection: (projectName: string, componentId: string, errorMessage: string) => Promise<Response>;
|
|
31
|
+
addImage: (formData: FormData) => Promise<Response>;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export declare const APIProxyHandler: (baseUrl: string) => {
|
|
35
|
+
getSecrets: () => Promise<Response>;
|
|
36
|
+
putSecret: (secretReference: string, secret: Omit<Secret, "creator_user_id" | "secret_reference">) => Promise<Response>;
|
|
37
|
+
getSecret: (secretReference: string) => Promise<Response>;
|
|
38
|
+
deleteSecret: (secretReference: string) => Promise<Response>;
|
|
39
|
+
getTierKeyMap: (miniappName: string) => Promise<Response>;
|
|
40
|
+
putTierKeyMap: (miniappName: string, tier: string, secretReference: string) => Promise<Response>;
|
|
41
|
+
getTierKeyMapForTier: (miniappName: string, tier: string) => Promise<Response>;
|
|
42
|
+
deleteTierKeyMap: (miniappName: string, tier: string) => Promise<Response>;
|
|
43
|
+
getTierAssignments: (miniappName: string) => Promise<Response>;
|
|
44
|
+
putTierAssignment: (miniappName: string, userId: string, tier: string) => Promise<Response>;
|
|
45
|
+
getTierAssignment: (miniappName: string, userId: string) => Promise<Response>;
|
|
46
|
+
deleteTierAssignment: (miniappName: string, userId: string) => Promise<Response>;
|
|
47
|
+
getRateLimits: (miniappName: string) => Promise<Response>;
|
|
48
|
+
putRateLimit: (miniappName: string, tier: string, secretReference: string, rateLimit: Pick<RateLimit, "window_ms" | "limit">) => Promise<Response>;
|
|
49
|
+
getRateLimit: (miniappName: string, tier: string, secretReference: string) => Promise<Response>;
|
|
50
|
+
deleteRateLimit: (miniappName: string, tier: string, secretReference: string) => Promise<Response>;
|
|
51
|
+
createProxyFetch: (config: ProxyFetchConfig) => (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
52
|
+
createProxyGetView: (config: ProxyGetViewConfig) => (schema: string, viewName: string, parameters?: {
|
|
53
|
+
[key: string]: string | number | boolean;
|
|
54
|
+
}) => Promise<Response>;
|
|
55
|
+
};
|
|
56
|
+
|
|
10
57
|
export declare const getHeadCommit: (projectName: string) => Promise<string>;
|
|
11
58
|
|
|
12
59
|
export declare const getRedoTargetCommitForFile: (projectName: string, filePath: string) => Promise<[string, string]>;
|
|
@@ -39,6 +86,26 @@ export declare const ProjectProvider: (props: {
|
|
|
39
86
|
children?: React.ReactNode;
|
|
40
87
|
}) => JSX_2.Element;
|
|
41
88
|
|
|
89
|
+
/** Configuration for the proxy fetch client */
|
|
90
|
+
declare type ProxyFetchConfig = {
|
|
91
|
+
miniappName: string;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/** Configuration for the proxy getView client */
|
|
95
|
+
declare type ProxyGetViewConfig = {
|
|
96
|
+
miniappName: string;
|
|
97
|
+
gwProxyUrl: string;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** Represents rate limit configuration for a tier */
|
|
101
|
+
declare type RateLimit = {
|
|
102
|
+
miniapp_name: string;
|
|
103
|
+
secret_reference: string;
|
|
104
|
+
tier: string;
|
|
105
|
+
window_ms: number;
|
|
106
|
+
limit: number;
|
|
107
|
+
};
|
|
108
|
+
|
|
42
109
|
export declare const RGComponent: default_2.ForwardRefExoticComponent<Omit<RGContainerProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
|
|
43
110
|
|
|
44
111
|
export declare class RGComponentErrorBoundary<T> extends default_2.Component<RGComponentErrorBoundaryProps<T>, RGComponentErrorBoundaryState> {
|
|
@@ -99,6 +166,16 @@ export declare const RGPreviewLayout: (props: {
|
|
|
99
166
|
layout: any;
|
|
100
167
|
}) => JSX_2.Element;
|
|
101
168
|
|
|
169
|
+
/** Represents a secret configuration for API access */
|
|
170
|
+
declare type Secret = {
|
|
171
|
+
creator_user_id: string;
|
|
172
|
+
api_domain: string;
|
|
173
|
+
api_path_prefix: string;
|
|
174
|
+
auth_header_key: string;
|
|
175
|
+
auth_header_value: string;
|
|
176
|
+
secret_reference: string;
|
|
177
|
+
};
|
|
178
|
+
|
|
102
179
|
export declare const setTailwindTheme: (theme: object) => void;
|
|
103
180
|
|
|
104
181
|
export declare const syncAndRetry: (projectName: string, projectRepository: string) => Promise<void>;
|
|
@@ -18966,6 +18966,8 @@ const pE = (e) => /* @__PURE__ */ ye.jsx(ye.Fragment, { children: /* @__PURE__ *
|
|
|
18966
18966
|
typeof window < "u" && (window.Buffer = ws.Buffer, window.fs = new fp("fs"), window.pfs = window.fs.promises, window.miDir = "/mi");
|
|
18967
18967
|
};
|
|
18968
18968
|
export {
|
|
18969
|
+
Sd as APIHandler,
|
|
18970
|
+
Vl as APIProxyHandler,
|
|
18969
18971
|
fE as MiniApp,
|
|
18970
18972
|
rE as ProjectProvider,
|
|
18971
18973
|
dE as RGComponent,
|