@spaceandtimelabs/makeinfinite-ui 0.51.0 → 0.53.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
@@ -119,7 +119,7 @@ declare interface APIContextType {
119
119
  }
120
120
 
121
121
  export declare const APIHandler: (baseUrl: string) => {
122
- createProject: (description: string, componentNamespace: string) => Promise<Response>;
122
+ createProject: (description: string, theme: string, siteBackground?: File | null) => Promise<Response>;
123
123
  getProjects: () => Promise<Response>;
124
124
  getSubdomains: (projectName: string) => Promise<Response>;
125
125
  allocateSubdomain: (projectName: string, subdomain: string) => Promise<Response>;
@@ -1375,11 +1375,11 @@ declare const useVariants: () => {
1375
1375
  /**
1376
1376
  * Hook for managing a WebSocket connection with automatic reconnection
1377
1377
  *
1378
- * @param url WebSocket URL to connect to (set to null to prevent connection)
1378
+ * @param getUrl Function that returns the WebSocket URL to connect to (return null to prevent connection)
1379
1379
  * @param onMessageReceived Callback function to handle received messages
1380
1380
  * @param options Connection options
1381
1381
  */
1382
- export declare const useWebSocketManager: (url: string | null, onMessageReceived: (data: any) => void, options?: WebSocketOptions) => UseWebSocketManagerReturn;
1382
+ export declare const useWebSocketManager: (getUrl: () => string | null, onMessageReceived: (data: any) => void, options?: WebSocketOptions) => UseWebSocketManagerReturn;
1383
1383
 
1384
1384
  /**
1385
1385
  * Return type for useWebSocketManager hook