@spaceandtimelabs/makeinfinite-ui 0.69.0 → 0.71.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
@@ -131,8 +131,8 @@ export declare const APIHandler: (baseUrl: string) => {
131
131
  unpublishProject: (projectName: string) => Promise<Response>;
132
132
  tagCommit: (projectName: string, commitHash: string, tagName: string) => Promise<Response>;
133
133
  getComponentLibrary: () => Promise<Response>;
134
- addProjectComponent: (projectName: string, componentNamespace: string, componentName: string, layoutMetadata: any) => Promise<Response>;
135
- addProjectChart: (projectName: string, visualId: string, layoutMetadata: object, echartsConfig?: object) => Promise<Response>;
134
+ addProjectComponent: (projectName: string, componentNamespace: string, componentName: string, layoutMetadata: any, pageId?: string | null, content?: string | null) => Promise<Response>;
135
+ addProjectChart: (projectName: string, visualId: string, layoutMetadata: object, echartsConfig?: object, pageId?: string | null) => Promise<Response>;
136
136
  updateProjectComponentLayoutMetadata: (projectName: string, componentId: string, layoutMetadata: any) => Promise<Response>;
137
137
  updateProjectComponentSourceCode: (projectName: string, componentId: string, sourceCode: string) => Promise<Response>;
138
138
  updateApplicationMetadata: (projectName: string, applicationName: string, applicationDescription: string, applicationCategory: string) => Promise<Response>;
@@ -143,7 +143,6 @@ export declare const APIHandler: (baseUrl: string) => {
143
143
  filePath: string;
144
144
  fileContent: string;
145
145
  }[], abortSignal?: AbortSignal) => Promise<Response>;
146
- deleteProjectComponent: (projectName: string, filePath: string) => Promise<Response>;
147
146
  deleteProjectFile: (projectName: string, filePath: string) => Promise<Response>;
148
147
  resetProjectFile: (projectName: string, filePath: string, gitRef: string, prune?: boolean, extraMetadata?: string) => Promise<Response>;
149
148
  deleteProject: (projectName: string) => Promise<Response>;
@@ -160,6 +159,11 @@ export declare const APIHandler: (baseUrl: string) => {
160
159
  }) => Promise<Response>;
161
160
  initializeProject: (projectName: string) => Promise<Response>;
162
161
  getUserSpendAnalytics: () => Promise<Response>;
162
+ addPage: (projectName: string, name: string, path: string, components: any[]) => Promise<Response>;
163
+ editPage: (projectName: string, pageId: string, newName?: string | null, newPath?: string | null) => Promise<Response>;
164
+ deletePage: (projectName: string, pageId: string) => Promise<Response>;
165
+ editPageLayout: (projectName: string, pageId: string, layoutMetadata: object) => Promise<Response>;
166
+ removePageComponent: (projectName: string, pageId: string, componentId: string) => Promise<Response>;
163
167
  getCreatorPointsSum: (projectName?: string | null) => Promise<Response>;
164
168
  getCreatorPointsTop: (n?: number) => Promise<Response>;
165
169
  getProjectViewsHistory: (projectName: string, start?: Date, end?: Date, granularity?: "minute" | "hour" | "day" | "month" | "year", limit?: number) => Promise<Response>;
@@ -1162,7 +1166,7 @@ export declare const RGDroppable: (props: {
1162
1166
  export declare const RGEditLayout: (props: {
1163
1167
  components: JSX.Element[];
1164
1168
  layouts: any;
1165
- onLayoutChange: (layout: any) => void;
1169
+ onLayoutChange: (layout: Layout[], allLayouts: Record<string, Layout[]>) => void;
1166
1170
  onResizeStart: ItemCallback;
1167
1171
  onResize: ItemCallback;
1168
1172
  onResizeStop: ItemCallback;