@spaceandtimelabs/makeinfinite-ui 0.72.1 → 0.72.2-beta.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.
Files changed (184) hide show
  1. package/README.md +179 -0
  2. package/dist/makeinfinite-ui.es.js +47424 -46099
  3. package/dist/makeinfinite-ui.umd.js +1673 -1670
  4. package/dist/tsconfig.types.tsbuildinfo +1 -0
  5. package/dist/types/api.d.ts +54 -0
  6. package/dist/types/api.d.ts.map +1 -0
  7. package/dist/types/apiProxy.d.ts +65 -0
  8. package/dist/types/apiProxy.d.ts.map +1 -0
  9. package/dist/types/components/DreamspaceElements/index.d.ts +51 -0
  10. package/dist/types/components/DreamspaceElements/index.d.ts.map +1 -0
  11. package/dist/types/components/DreamspaceElements/ui/accordion.d.ts +8 -0
  12. package/dist/types/components/DreamspaceElements/ui/accordion.d.ts.map +1 -0
  13. package/dist/types/components/DreamspaceElements/ui/alert-dialog.d.ts +19 -0
  14. package/dist/types/components/DreamspaceElements/ui/alert-dialog.d.ts.map +1 -0
  15. package/dist/types/components/DreamspaceElements/ui/alert.d.ts +8 -0
  16. package/dist/types/components/DreamspaceElements/ui/alert.d.ts.map +1 -0
  17. package/dist/types/components/DreamspaceElements/ui/aspect-ratio.d.ts +4 -0
  18. package/dist/types/components/DreamspaceElements/ui/aspect-ratio.d.ts.map +1 -0
  19. package/dist/types/components/DreamspaceElements/ui/avatar.d.ts +7 -0
  20. package/dist/types/components/DreamspaceElements/ui/avatar.d.ts.map +1 -0
  21. package/dist/types/components/DreamspaceElements/ui/badge.d.ts +9 -0
  22. package/dist/types/components/DreamspaceElements/ui/badge.d.ts.map +1 -0
  23. package/dist/types/components/DreamspaceElements/ui/breadcrumb.d.ts +12 -0
  24. package/dist/types/components/DreamspaceElements/ui/breadcrumb.d.ts.map +1 -0
  25. package/dist/types/components/DreamspaceElements/ui/button.d.ts +11 -0
  26. package/dist/types/components/DreamspaceElements/ui/button.d.ts.map +1 -0
  27. package/dist/types/components/DreamspaceElements/ui/calendar.d.ts +8 -0
  28. package/dist/types/components/DreamspaceElements/ui/calendar.d.ts.map +1 -0
  29. package/dist/types/components/DreamspaceElements/ui/card.d.ts +9 -0
  30. package/dist/types/components/DreamspaceElements/ui/card.d.ts.map +1 -0
  31. package/dist/types/components/DreamspaceElements/ui/carousel.d.ts +14 -0
  32. package/dist/types/components/DreamspaceElements/ui/carousel.d.ts.map +1 -0
  33. package/dist/types/components/DreamspaceElements/ui/checkbox.d.ts +4 -0
  34. package/dist/types/components/DreamspaceElements/ui/checkbox.d.ts.map +1 -0
  35. package/dist/types/components/DreamspaceElements/ui/collapsible.d.ts +6 -0
  36. package/dist/types/components/DreamspaceElements/ui/collapsible.d.ts.map +1 -0
  37. package/dist/types/components/DreamspaceElements/ui/combobox.d.ts +14 -0
  38. package/dist/types/components/DreamspaceElements/ui/combobox.d.ts.map +1 -0
  39. package/dist/types/components/DreamspaceElements/ui/command.d.ts +51 -0
  40. package/dist/types/components/DreamspaceElements/ui/command.d.ts.map +1 -0
  41. package/dist/types/components/DreamspaceElements/ui/context-menu.d.ts +27 -0
  42. package/dist/types/components/DreamspaceElements/ui/context-menu.d.ts.map +1 -0
  43. package/dist/types/components/DreamspaceElements/ui/data-table.d.ts +9 -0
  44. package/dist/types/components/DreamspaceElements/ui/data-table.d.ts.map +1 -0
  45. package/dist/types/components/DreamspaceElements/ui/date-picker.d.ts +24 -0
  46. package/dist/types/components/DreamspaceElements/ui/date-picker.d.ts.map +1 -0
  47. package/dist/types/components/DreamspaceElements/ui/dialog.d.ts +19 -0
  48. package/dist/types/components/DreamspaceElements/ui/dialog.d.ts.map +1 -0
  49. package/dist/types/components/DreamspaceElements/ui/drawer.d.ts +22 -0
  50. package/dist/types/components/DreamspaceElements/ui/drawer.d.ts.map +1 -0
  51. package/dist/types/components/DreamspaceElements/ui/dropdown-menu.d.ts +27 -0
  52. package/dist/types/components/DreamspaceElements/ui/dropdown-menu.d.ts.map +1 -0
  53. package/dist/types/components/DreamspaceElements/ui/form.d.ts +23 -0
  54. package/dist/types/components/DreamspaceElements/ui/form.d.ts.map +1 -0
  55. package/dist/types/components/DreamspaceElements/ui/hover-card.d.ts +6 -0
  56. package/dist/types/components/DreamspaceElements/ui/hover-card.d.ts.map +1 -0
  57. package/dist/types/components/DreamspaceElements/ui/input.d.ts +4 -0
  58. package/dist/types/components/DreamspaceElements/ui/input.d.ts.map +1 -0
  59. package/dist/types/components/DreamspaceElements/ui/label.d.ts +5 -0
  60. package/dist/types/components/DreamspaceElements/ui/label.d.ts.map +1 -0
  61. package/dist/types/components/DreamspaceElements/ui/menubar.d.ts +33 -0
  62. package/dist/types/components/DreamspaceElements/ui/menubar.d.ts.map +1 -0
  63. package/dist/types/components/DreamspaceElements/ui/navigation-menu.d.ts +12 -0
  64. package/dist/types/components/DreamspaceElements/ui/navigation-menu.d.ts.map +1 -0
  65. package/dist/types/components/DreamspaceElements/ui/pagination.d.ts +22 -0
  66. package/dist/types/components/DreamspaceElements/ui/pagination.d.ts.map +1 -0
  67. package/dist/types/components/DreamspaceElements/ui/popover.d.ts +6 -0
  68. package/dist/types/components/DreamspaceElements/ui/popover.d.ts.map +1 -0
  69. package/dist/types/components/DreamspaceElements/ui/progress.d.ts +4 -0
  70. package/dist/types/components/DreamspaceElements/ui/progress.d.ts.map +1 -0
  71. package/dist/types/components/DreamspaceElements/ui/radio-group.d.ts +5 -0
  72. package/dist/types/components/DreamspaceElements/ui/radio-group.d.ts.map +1 -0
  73. package/dist/types/components/DreamspaceElements/ui/resizable.d.ts +9 -0
  74. package/dist/types/components/DreamspaceElements/ui/resizable.d.ts.map +1 -0
  75. package/dist/types/components/DreamspaceElements/ui/scroll-area.d.ts +5 -0
  76. package/dist/types/components/DreamspaceElements/ui/scroll-area.d.ts.map +1 -0
  77. package/dist/types/components/DreamspaceElements/ui/select.d.ts +13 -0
  78. package/dist/types/components/DreamspaceElements/ui/select.d.ts.map +1 -0
  79. package/dist/types/components/DreamspaceElements/ui/separator.d.ts +4 -0
  80. package/dist/types/components/DreamspaceElements/ui/separator.d.ts.map +1 -0
  81. package/dist/types/components/DreamspaceElements/ui/sheet.d.ts +25 -0
  82. package/dist/types/components/DreamspaceElements/ui/sheet.d.ts.map +1 -0
  83. package/dist/types/components/DreamspaceElements/ui/sidebar.d.ts +25 -0
  84. package/dist/types/components/DreamspaceElements/ui/sidebar.d.ts.map +1 -0
  85. package/dist/types/components/DreamspaceElements/ui/skeleton.d.ts +3 -0
  86. package/dist/types/components/DreamspaceElements/ui/skeleton.d.ts.map +1 -0
  87. package/dist/types/components/DreamspaceElements/ui/slider.d.ts +4 -0
  88. package/dist/types/components/DreamspaceElements/ui/slider.d.ts.map +1 -0
  89. package/dist/types/components/DreamspaceElements/ui/sonner.d.ts +5 -0
  90. package/dist/types/components/DreamspaceElements/ui/sonner.d.ts.map +1 -0
  91. package/dist/types/components/DreamspaceElements/ui/switch.d.ts +4 -0
  92. package/dist/types/components/DreamspaceElements/ui/switch.d.ts.map +1 -0
  93. package/dist/types/components/DreamspaceElements/ui/table.d.ts +10 -0
  94. package/dist/types/components/DreamspaceElements/ui/table.d.ts.map +1 -0
  95. package/dist/types/components/DreamspaceElements/ui/tabs.d.ts +8 -0
  96. package/dist/types/components/DreamspaceElements/ui/tabs.d.ts.map +1 -0
  97. package/dist/types/components/DreamspaceElements/ui/textarea.d.ts +4 -0
  98. package/dist/types/components/DreamspaceElements/ui/textarea.d.ts.map +1 -0
  99. package/dist/types/components/DreamspaceElements/ui/toggle-group.d.ts +12 -0
  100. package/dist/types/components/DreamspaceElements/ui/toggle-group.d.ts.map +1 -0
  101. package/dist/types/components/DreamspaceElements/ui/toggle.d.ts +12 -0
  102. package/dist/types/components/DreamspaceElements/ui/toggle.d.ts.map +1 -0
  103. package/dist/types/components/DreamspaceElements/ui/tooltip.d.ts +7 -0
  104. package/dist/types/components/DreamspaceElements/ui/tooltip.d.ts.map +1 -0
  105. package/dist/types/components/DreamspaceElements/utils.d.ts +3 -0
  106. package/dist/types/components/DreamspaceElements/utils.d.ts.map +1 -0
  107. package/dist/types/components/DreamspaceElements/variants/default.d.ts +108 -0
  108. package/dist/types/components/DreamspaceElements/variants/default.d.ts.map +1 -0
  109. package/dist/types/components/DreamspaceElements/variants/glass.d.ts +3 -0
  110. package/dist/types/components/DreamspaceElements/variants/glass.d.ts.map +1 -0
  111. package/dist/types/components/DreamspaceElements/variants/index.d.ts +2 -0
  112. package/dist/types/components/DreamspaceElements/variants/index.d.ts.map +1 -0
  113. package/dist/types/components/MiniApp/GlobalStyle.d.ts +3 -0
  114. package/dist/types/components/MiniApp/GlobalStyle.d.ts.map +1 -0
  115. package/dist/types/components/MiniApp/MiniApp.d.ts +3 -0
  116. package/dist/types/components/MiniApp/MiniApp.d.ts.map +1 -0
  117. package/dist/types/components/MiniApp/index.d.ts +2 -0
  118. package/dist/types/components/MiniApp/index.d.ts.map +1 -0
  119. package/dist/types/components/RGLayout/RGComponent.d.ts +14 -0
  120. package/dist/types/components/RGLayout/RGComponent.d.ts.map +1 -0
  121. package/dist/types/components/RGLayout/RGComponentErrorBoundary.d.ts +24 -0
  122. package/dist/types/components/RGLayout/RGComponentErrorBoundary.d.ts.map +1 -0
  123. package/dist/types/components/RGLayout/RGDroppable.d.ts +13 -0
  124. package/dist/types/components/RGLayout/RGDroppable.d.ts.map +1 -0
  125. package/dist/types/components/RGLayout/RGEditLayout.d.ts +20 -0
  126. package/dist/types/components/RGLayout/RGEditLayout.d.ts.map +1 -0
  127. package/dist/types/components/RGLayout/RGPreviewLayout.d.ts +6 -0
  128. package/dist/types/components/RGLayout/RGPreviewLayout.d.ts.map +1 -0
  129. package/dist/types/components/RGLayout/index.d.ts +6 -0
  130. package/dist/types/components/RGLayout/index.d.ts.map +1 -0
  131. package/dist/types/components/RGLayout/layoutTransformers.d.ts +14 -0
  132. package/dist/types/components/RGLayout/layoutTransformers.d.ts.map +1 -0
  133. package/dist/types/components/SpinnerOverlay/SpinnerOverlay.d.ts +7 -0
  134. package/dist/types/components/SpinnerOverlay/SpinnerOverlay.d.ts.map +1 -0
  135. package/dist/types/components/index.d.ts +3 -0
  136. package/dist/types/components/index.d.ts.map +1 -0
  137. package/dist/types/contexts/apiContext.d.ts +14 -0
  138. package/dist/types/contexts/apiContext.d.ts.map +1 -0
  139. package/dist/types/contexts/index.d.ts +4 -0
  140. package/dist/types/contexts/index.d.ts.map +1 -0
  141. package/dist/types/contexts/projectContext.d.ts +59 -0
  142. package/dist/types/contexts/projectContext.d.ts.map +1 -0
  143. package/dist/types/contexts/rgContext.d.ts +5 -0
  144. package/dist/types/contexts/rgContext.d.ts.map +1 -0
  145. package/dist/types/contexts/tailwindThemeContext.d.ts +7 -0
  146. package/dist/types/contexts/tailwindThemeContext.d.ts.map +1 -0
  147. package/dist/types/filesystem.d.ts +4 -0
  148. package/dist/types/filesystem.d.ts.map +1 -0
  149. package/dist/types/git.d.ts +26 -0
  150. package/dist/types/git.d.ts.map +1 -0
  151. package/dist/types/gw.d.ts +7 -0
  152. package/dist/types/gw.d.ts.map +1 -0
  153. package/dist/types/hooks/index.d.ts +2 -0
  154. package/dist/types/hooks/index.d.ts.map +1 -0
  155. package/dist/types/hooks/tailwindThemeProvider/index.d.ts +7 -0
  156. package/dist/types/hooks/tailwindThemeProvider/index.d.ts.map +1 -0
  157. package/dist/types/hooks/tailwindThemeProvider/useColors.d.ts +6 -0
  158. package/dist/types/hooks/tailwindThemeProvider/useColors.d.ts.map +1 -0
  159. package/dist/types/hooks/tailwindThemeProvider/useFontFamily.d.ts +6 -0
  160. package/dist/types/hooks/tailwindThemeProvider/useFontFamily.d.ts.map +1 -0
  161. package/dist/types/hooks/tailwindThemeProvider/useSiteBackground.d.ts +8 -0
  162. package/dist/types/hooks/tailwindThemeProvider/useSiteBackground.d.ts.map +1 -0
  163. package/dist/types/hooks/tailwindThemeProvider/useTailwind.d.ts +6 -0
  164. package/dist/types/hooks/tailwindThemeProvider/useTailwind.d.ts.map +1 -0
  165. package/dist/types/hooks/tailwindThemeProvider/useTheme.d.ts +6 -0
  166. package/dist/types/hooks/tailwindThemeProvider/useTheme.d.ts.map +1 -0
  167. package/dist/types/hooks/tailwindThemeProvider/useVariants.d.ts +6 -0
  168. package/dist/types/hooks/tailwindThemeProvider/useVariants.d.ts.map +1 -0
  169. package/dist/types/hooks/useAPIHandler.d.ts +53 -0
  170. package/dist/types/hooks/useAPIHandler.d.ts.map +1 -0
  171. package/dist/types/hooks/useId.d.ts +2 -0
  172. package/dist/types/hooks/useId.d.ts.map +1 -0
  173. package/dist/types/hooks/useProject.d.ts +3 -0
  174. package/dist/types/hooks/useProject.d.ts.map +1 -0
  175. package/dist/types/hooks/useWebSocketManager.d.ts +36 -0
  176. package/dist/types/hooks/useWebSocketManager.d.ts.map +1 -0
  177. package/dist/types/index.d.ts +32 -0
  178. package/dist/types/index.d.ts.map +1 -0
  179. package/dist/types/types.d.ts +20 -0
  180. package/dist/types/types.d.ts.map +1 -0
  181. package/dist/types/utility.d.ts +13 -0
  182. package/dist/types/utility.d.ts.map +1 -0
  183. package/package.json +20 -26
  184. package/dist/index.d.ts +0 -1531
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Layout transformation utilities for responsive grid layouts
3
+ */
4
+ export declare const sortLayoutByY: (layout: any) => any;
5
+ /**
6
+ * Transform LG layout (12 columns) to XXS layout (1 column)
7
+ * This function sorts items by Y position, then by X position for same Y values,
8
+ * and stacks side-by-side items vertically in the single-column layout
9
+ *
10
+ * @param layout - The layout object containing lg property with array of layout items
11
+ * @returns Transformed layout array for XXS breakpoint
12
+ */
13
+ export declare const transformLgToXxs: (layout: any) => any[];
14
+ //# sourceMappingURL=layoutTransformers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layoutTransformers.d.ts","sourceRoot":"","sources":["../../../../lib/components/RGLayout/layoutTransformers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,aAAa,WAAY,GAAG,QAOxC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,WAAY,GAAG,UAgC3C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface SpinnerOverlayProps {
3
+ isVisible: boolean;
4
+ }
5
+ declare const SpinnerOverlay: React.FC<SpinnerOverlayProps>;
6
+ export default SpinnerOverlay;
7
+ //# sourceMappingURL=SpinnerOverlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpinnerOverlay.d.ts","sourceRoot":"","sources":["../../../../lib/components/SpinnerOverlay/SpinnerOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkC1B,UAAU,mBAAmB;IAC3B,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAQjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './MiniApp';
2
+ export * from './RGLayout';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ interface APIContextType {
3
+ isLoading: boolean;
4
+ wrapAPICall: <T>(promise: Promise<T>) => Promise<T>;
5
+ wrapXHRCall: <T>(xhrCreator: () => XMLHttpRequest, processResponse: (xhr: XMLHttpRequest) => T) => Promise<T>;
6
+ }
7
+ declare const APIContext: React.Context<APIContextType | null>;
8
+ export declare const useAPI: () => APIContextType;
9
+ interface APIProviderProps {
10
+ children: React.ReactNode;
11
+ }
12
+ export declare const APIProvider: React.FC<APIProviderProps>;
13
+ export default APIContext;
14
+ //# sourceMappingURL=apiContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apiContext.d.ts","sourceRoot":"","sources":["../../../lib/contexts/apiContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAEhF,UAAU,cAAc;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IACpD,WAAW,EAAE,CAAC,CAAC,EACb,UAAU,EAAE,MAAM,cAAc,EAChC,eAAe,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,CAAC,KACxC,OAAO,CAAC,CAAC,CAAC,CAAC;CACjB;AAED,QAAA,MAAM,UAAU,sCAA6C,CAAC;AAE9D,eAAO,MAAM,MAAM,sBAMlB,CAAC;AAEF,UAAU,gBAAgB;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkElD,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default as APIContext, APIProvider, useAPI } from './apiContext';
2
+ export { default as RGProvider, useRGContext } from './rgContext';
3
+ export * from './projectContext';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/contexts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAClE,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,59 @@
1
+ import { APIHandler as API } from '../api';
2
+ import { gwAPIHandler as gwAPI } from '../gw';
3
+ import { APIProxyHandler } from '../apiProxy';
4
+ interface ProjectConfig {
5
+ API_BASE_URL: string | null;
6
+ WS_BASE_URL: string | null;
7
+ GW_BASE_URL: string | null;
8
+ GW_PROXY_URL: string | null;
9
+ PROXY_API_BASE_URL: string | null;
10
+ }
11
+ interface ProjectMetadata {
12
+ projectName: string | null;
13
+ projectURL: string | null;
14
+ projectHmac?: string;
15
+ extraMeta: {
16
+ application_name?: string;
17
+ project_name?: string;
18
+ application_description?: string;
19
+ application_category?: string;
20
+ };
21
+ }
22
+ type APIHandlerType = ReturnType<typeof API>;
23
+ type GwAPIHandlerType = ReturnType<typeof gwAPI>;
24
+ type ProxyHandlerType = ReturnType<typeof APIProxyHandler>;
25
+ type ProxyFetchType = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
26
+ type ProxyGetViewType = (schema: string, viewName: string, parameters: {
27
+ [key: string]: string | number | boolean;
28
+ }) => Promise<{
29
+ [key: string]: any;
30
+ }[]>;
31
+ interface ProjectContextValue {
32
+ config: ProjectConfig;
33
+ projectMetadata: ProjectMetadata;
34
+ setProjectMetadata: React.Dispatch<React.SetStateAction<ProjectMetadata>>;
35
+ syncToken: string;
36
+ setSyncToken: () => void;
37
+ selectedComponentId: string;
38
+ setSelectedComponentId: React.Dispatch<React.SetStateAction<string>>;
39
+ selectedComponentXPath: string;
40
+ setSelectedComponentXPath: React.Dispatch<React.SetStateAction<string>>;
41
+ selectedComponentHTML: string;
42
+ setSelectedComponentHTML: React.Dispatch<React.SetStateAction<string>>;
43
+ isComponentSubselected: boolean;
44
+ setIsComponentSubselected: React.Dispatch<React.SetStateAction<boolean>>;
45
+ APIHandler: APIHandlerType;
46
+ gwAPIHandler: GwAPIHandlerType;
47
+ proxyHandler: ProxyHandlerType;
48
+ proxyFetch: ProxyFetchType | null;
49
+ proxyGetView: ProxyGetViewType | null;
50
+ }
51
+ declare const ProjectContext: import("react").Context<ProjectContextValue | null>;
52
+ declare const ProjectConsumer: import("react").Consumer<ProjectContextValue | null>;
53
+ declare const ProjectProvider: (props: {
54
+ config: ProjectConfig;
55
+ metadata?: ProjectMetadata;
56
+ children?: React.ReactNode;
57
+ }) => JSX.Element;
58
+ export { ProjectConsumer, ProjectContext, ProjectProvider, type ProjectContextValue };
59
+ //# sourceMappingURL=projectContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectContext.d.ts","sourceRoot":"","sources":["../../../lib/contexts/projectContext.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,IAAI,GAAG,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,YAAY,IAAI,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAI9C,UAAU,aAAa;IACrB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,UAAU,eAAe;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE;QACT,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACjC,oBAAoB,CAAC,EAAE,MAAM,CAAC;KAC/B,CAAC;CACH;AAED,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,GAAG,CAAC,CAAC;AAC7C,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;AACjD,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAE3D,KAAK,cAAc,GAAG,CAAC,KAAK,EAAE,WAAW,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAE1F,KAAK,gBAAgB,GAAG,CACtB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAAE,KACrD,OAAO,CAAC;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,CAAC,CAAC;AAEvC,UAAU,mBAAmB;IAC3B,MAAM,EAAE,aAAa,CAAC;IACtB,eAAe,EAAE,eAAe,CAAC;IACjC,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC,CAAC;IAC1E,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sBAAsB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACrE,sBAAsB,EAAE,MAAM,CAAC;IAC/B,yBAAyB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACxE,qBAAqB,EAAE,MAAM,CAAC;IAC9B,wBAAwB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACvE,sBAAsB,EAAE,OAAO,CAAC;IAChC,yBAAyB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACzE,UAAU,EAAE,cAAc,CAAC;IAC3B,YAAY,EAAE,gBAAgB,CAAC;IAC/B,YAAY,EAAE,gBAAgB,CAAC;IAC/B,UAAU,EAAE,cAAc,GAAG,IAAI,CAAC;IAClC,YAAY,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,cAAc,qDAAkD,CAAC;AACvE,QAAA,MAAM,eAAe,sDAA0B,CAAC;AAuIhD,QAAA,MAAM,eAAe,UAAW;IAC9B,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,gBAQA,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type FC, type ReactNode, type PropsWithChildren } from 'react';
2
+ export declare const useRGContext: () => any;
3
+ declare const RGProvider: FC<PropsWithChildren<ReactNode>>;
4
+ export default RGProvider;
5
+ //# sourceMappingURL=rgContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rgContext.d.ts","sourceRoot":"","sources":["../../../lib/contexts/rgContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EAAE,EACP,KAAK,SAAS,EACd,KAAK,iBAAiB,EAIvB,MAAM,OAAO,CAAC;AAGf,eAAO,MAAM,YAAY,WAMxB,CAAC;AAEF,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,CA2BhD,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,7 @@
1
+ declare const TailwindThemeContext: import("react").Context<any>;
2
+ declare const TailwindThemeConsumer: import("react").Consumer<any>;
3
+ declare const TailwindThemeProvider: (props: {
4
+ children?: React.ReactNode;
5
+ }) => JSX.Element;
6
+ export { TailwindThemeContext, TailwindThemeConsumer, TailwindThemeProvider };
7
+ //# sourceMappingURL=tailwindThemeContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tailwindThemeContext.d.ts","sourceRoot":"","sources":["../../../lib/contexts/tailwindThemeContext.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,oBAAoB,8BAA2B,CAAC;AACtD,QAAA,MAAM,qBAAqB,+BAAgC,CAAC;AAO5D,QAAA,MAAM,qBAAqB,UAAW;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,gBAqCnE,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ declare const isDir: (dirPath: string) => Promise<any>;
2
+ declare const listDir: (dirPath: string) => Promise<any>;
3
+ export { isDir, listDir };
4
+ //# sourceMappingURL=filesystem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filesystem.d.ts","sourceRoot":"","sources":["../../lib/filesystem.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,KAAK,YAAmB,MAAM,iBASnC,CAAC;AAGF,QAAA,MAAM,OAAO,YAAmB,MAAM,iBAErC,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,26 @@
1
+ declare const checkoutPublished: (projectName: string) => Promise<void>;
2
+ declare const getHeadCommit: (projectName: string) => Promise<string>;
3
+ declare const getUndoTargetCommitForFile: (projectName: string, filePath: string) => Promise<[string, string]>;
4
+ declare const getRedoTargetCommitForFile: (projectName: string, filePath: string) => Promise<[string, string]>;
5
+ declare const syncAndRetry: (projectName: string, projectRepository: string) => Promise<void>;
6
+ type GetTagsOptions = {
7
+ fetch?: boolean;
8
+ };
9
+ declare const getTags: (projectName: string, projectUrl: string, { fetch, }?: GetTagsOptions) => Promise<{
10
+ tag: string;
11
+ targetCommitTimestamp: number;
12
+ targetCommit: string;
13
+ ref: string;
14
+ }[]>;
15
+ declare const applySxtIgnore: (files: string[], pfs: any, dir: string) => Promise<string[]>;
16
+ declare const listAllFiles: (projectName: string, repoURL: string) => Promise<string[] | never[]>;
17
+ interface Commit {
18
+ hash: string;
19
+ timestamp: number;
20
+ message: string;
21
+ isRelease: boolean;
22
+ }
23
+ declare const getCommits: (projectName: string, projectUrl: string, commitsCount?: number) => Promise<Commit[]>;
24
+ declare const checkoutCommit: (projectName: string, commitHash: string) => Promise<void>;
25
+ export { getHeadCommit, getUndoTargetCommitForFile, getRedoTargetCommitForFile, syncAndRetry, getTags, checkoutPublished, applySxtIgnore, listAllFiles, getCommits, checkoutCommit, };
26
+ //# sourceMappingURL=git.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../lib/git.ts"],"names":[],"mappings":"AAgFA,QAAA,MAAM,iBAAiB,gBAAuB,MAAM,kBAa/C,CAAC;AAyBN,QAAA,MAAM,aAAa,gBAAuB,MAAM,oBAU/C,CAAC;AA4FF,QAAA,MAAM,0BAA0B,gBACjB,MAAM,YACT,MAAM,KACf,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAoC1B,CAAC;AAIF,QAAA,MAAM,0BAA0B,gBACjB,MAAM,YACT,MAAM,KACf,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAiB1B,CAAC;AA2EF,QAAA,MAAM,YAAY,gBAAuB,MAAM,qBAAqB,MAAM,KAAG,OAAO,CAAC,IAAI,CAqBxF,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,QAAA,MAAM,OAAO,gBACE,MAAM,cACP,MAAM,eAKf,cAAc;;;;;IAgClB,CAAC;AAKF,QAAA,MAAM,cAAc,UAAiB,MAAM,EAAE,OAAO,GAAG,OAAO,MAAM,sBAUnE,CAAC;AAEF,QAAA,MAAM,YAAY,gBAAuB,MAAM,WAAW,MAAM,gCAO/D,CAAC;AAEF,UAAU,MAAM;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,UAAU,gBACD,MAAM,cACP,MAAM,iBACH,MAAM,KACpB,OAAO,CAAC,MAAM,EAAE,CAmClB,CAAC;AAGF,QAAA,MAAM,cAAc,gBAAuB,MAAM,cAAc,MAAM,kBAMjE,CAAC;AAEL,OAAO,EACL,aAAa,EACb,0BAA0B,EAC1B,0BAA0B,EAC1B,YAAY,EACZ,OAAO,EACP,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,cAAc,GACf,CAAC"}
@@ -0,0 +1,7 @@
1
+ declare const gwAPIHandler: (baseUrl: string) => {
2
+ getQueryContent: (queryId: string) => Promise<Response>;
3
+ getVisuals: (pageNo: number, pageSize: number, scope: string, searchPattern: string, sortBy: string, sortOrder: string, visibility: string, visualType: string) => Promise<Response>;
4
+ getSubscription: () => Promise<Response>;
5
+ };
6
+ export { gwAPIHandler };
7
+ //# sourceMappingURL=gw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gw.d.ts","sourceRoot":"","sources":["../../lib/gw.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY,YAAa,MAAM;+BAGK,MAAM;yBAcpC,MAAM,YACJ,MAAM,SACT,MAAM,iBACE,MAAM,UACb,MAAM,aACH,MAAM,cACL,MAAM,cACN,MAAM;;CAmCrB,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './useProject';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './useVariants';
2
+ export * from './useTheme';
3
+ export * from './useFontFamily';
4
+ export * from './useColors';
5
+ export * from './useSiteBackground';
6
+ export * from './useTailwind';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/hooks/tailwindThemeProvider/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
@@ -0,0 +1,6 @@
1
+ declare const useColors: () => {
2
+ colors: any;
3
+ setColors: (colors: Record<string, any>) => void;
4
+ };
5
+ export { useColors };
6
+ //# sourceMappingURL=useColors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useColors.d.ts","sourceRoot":"","sources":["../../../../lib/hooks/tailwindThemeProvider/useColors.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,SAAS;;wBAIc,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAe/C,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ declare const useFontFamily: () => {
2
+ fontFamily: any;
3
+ setFontFamily: (fontFamily: string) => void;
4
+ };
5
+ export { useFontFamily };
6
+ //# sourceMappingURL=useFontFamily.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFontFamily.d.ts","sourceRoot":"","sources":["../../../../lib/hooks/tailwindThemeProvider/useFontFamily.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,aAAa;;gCAIkB,MAAM;CAiB1C,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ declare const useSiteBackground: () => {
2
+ siteBackground: any;
3
+ siteBackgroundColor: any;
4
+ siteBackgroundImage: any;
5
+ setSiteBackground: any;
6
+ };
7
+ export { useSiteBackground };
8
+ //# sourceMappingURL=useSiteBackground.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSiteBackground.d.ts","sourceRoot":"","sources":["../../../../lib/hooks/tailwindThemeProvider/useSiteBackground.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,iBAAiB;;;;;CAUtB,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ declare const useTailwind: () => {
2
+ tailwind: any;
3
+ setTailwind: any;
4
+ };
5
+ export { useTailwind };
6
+ //# sourceMappingURL=useTailwind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTailwind.d.ts","sourceRoot":"","sources":["../../../../lib/hooks/tailwindThemeProvider/useTailwind.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,WAAW;;;CAQhB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ declare const useTheme: () => {
2
+ theme: any;
3
+ setTheme: any;
4
+ };
5
+ export { useTheme };
6
+ //# sourceMappingURL=useTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../../lib/hooks/tailwindThemeProvider/useTheme.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,QAAQ;;;CAOb,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ declare const useVariants: () => {
2
+ variants: any;
3
+ setVariants: any;
4
+ };
5
+ export { useVariants };
6
+ //# sourceMappingURL=useVariants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useVariants.d.ts","sourceRoot":"","sources":["../../../../lib/hooks/tailwindThemeProvider/useVariants.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,WAAW;;;CAOhB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,53 @@
1
+ export declare const useAPIHandler: (baseUrl: string) => {
2
+ createProject: (description: string, theme: string, siteBackground?: File | null, secretReferences?: string | string[]) => Promise<Response>;
3
+ createBlankProject: (description: string, theme: string, siteBackground?: File | null, secretReferences?: string | string[]) => Promise<Response>;
4
+ getProjects: (include_published_info?: boolean) => Promise<Response>;
5
+ getProjectMetadata: (projectName: string) => Promise<Response>;
6
+ getSubdomains: (projectName: string) => Promise<Response>;
7
+ allocateSubdomain: (projectName: string, subdomain: string) => Promise<Response>;
8
+ updateSubdomain: (projectName: string, subdomain: string) => Promise<Response>;
9
+ releaseSubdomain: (projectName: string, subdomain: string) => Promise<Response>;
10
+ publishProject: (projectName: string, gitRef: string) => Promise<Response>;
11
+ unpublishProject: (projectName: string) => Promise<Response>;
12
+ tagCommit: (projectName: string, commitHash: string, tagName: string) => Promise<Response>;
13
+ getComponentLibrary: () => Promise<Response>;
14
+ addProjectComponent: (projectName: string, componentNamespace: string, componentName: string, layoutMetadata: any, pageId?: string | null, content?: string | null) => Promise<Response>;
15
+ addProjectChart: (projectName: string, visualId: string, layoutMetadata: object, echartsConfig?: object, pageId?: string | null) => Promise<Response>;
16
+ updateProjectComponentLayoutMetadata: (projectName: string, componentId: string, layoutMetadata: any) => Promise<Response>;
17
+ updateProjectComponentSourceCode: (projectName: string, componentId: string, sourceCode: string) => Promise<Response>;
18
+ updateApplicationMetadata: (projectName: string, applicationName: string, applicationDescription: string, applicationCategory: string) => Promise<Response>;
19
+ updateApplicationSettings: (projectName: string, applicationLoginEnabled?: boolean | null, defaultDeploymentChainReference?: string | null) => Promise<Response>;
20
+ updateProjectFile: (filePath: string, projectName: string, sourceCode: string, abortSignal?: AbortSignal) => Promise<Response>;
21
+ updateProjectFiles: (files: {
22
+ projectName: string;
23
+ filePath: string;
24
+ fileContent: string;
25
+ }[], abortSignal?: AbortSignal) => Promise<Response>;
26
+ deleteProjectFile: (projectName: string, filePath: string) => Promise<Response>;
27
+ resetProjectFile: (projectName: string, filePath: string, gitRef: string, prune?: boolean, extraMetadata?: string) => Promise<Response>;
28
+ deleteProject: (projectName: string) => Promise<Response>;
29
+ requestErrorCorrection: (projectName: string, componentId: string, errorMessage: string) => Promise<Response>;
30
+ addImage: (formData: FormData) => Promise<Response>;
31
+ editElement: (params: {
32
+ projectName: string;
33
+ componentId: string;
34
+ elementXPath: string;
35
+ styleRequest?: object | null;
36
+ textRequest?: string | null;
37
+ backgroundImageRequest?: string | null;
38
+ domTreeRepr: string;
39
+ }) => Promise<Response>;
40
+ initializeProject: (projectName: string) => Promise<Response>;
41
+ getUserSpendAnalytics: () => Promise<Response>;
42
+ addPage: (projectName: string, name: string, path: string, components: any[]) => Promise<Response>;
43
+ editPage: (projectName: string, pageId: string, newName?: string | null, newPath?: string | null) => Promise<Response>;
44
+ deletePage: (projectName: string, pageId: string) => Promise<Response>;
45
+ editPageLayout: (projectName: string, pageId: string, layoutMetadata: object) => Promise<Response>;
46
+ removePageComponent: (projectName: string, pageId: string, componentId: string) => Promise<Response>;
47
+ getCreatorPointsSum: (projectName?: string | null) => Promise<Response>;
48
+ getCreatorPointsTop: (n?: number) => Promise<Response>;
49
+ getProjectViewsHistory: (projectName: string, start?: Date, end?: Date, granularity?: "minute" | "hour" | "day" | "month" | "year", limit?: number) => Promise<Response>;
50
+ getProjectViewsTop: (n?: number) => Promise<Response>;
51
+ preflightCheck: (projectName?: string) => Promise<Response>;
52
+ };
53
+ //# sourceMappingURL=useAPIHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAPIHandler.d.ts","sourceRoot":"","sources":["../../../lib/hooks/useAPIHandler.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,aAAa,YAAa,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAwB6+U,CAAC;mBAAgC,CAAC;8BAA2C,CAAC;;;;;;;;;;;;;;;CADvmV,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function useId(prefix?: string): string;
2
+ //# sourceMappingURL=useId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useId.d.ts","sourceRoot":"","sources":["../../../lib/hooks/useId.ts"],"names":[],"mappings":"AAKA,wBAAgB,KAAK,CAAC,MAAM,SAAO,GAAG,MAAM,CAO3C"}
@@ -0,0 +1,3 @@
1
+ declare const useProject: () => import("../contexts").ProjectContextValue;
2
+ export { useProject };
3
+ //# sourceMappingURL=useProject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useProject.d.ts","sourceRoot":"","sources":["../../../lib/hooks/useProject.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,UAAU,iDAIf,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * WebSocket connection status
3
+ */
4
+ export type WebSocketStatus = 'idle' | 'connecting' | 'open' | 'closing' | 'closed';
5
+ /**
6
+ * Options for WebSocket connection management
7
+ */
8
+ interface WebSocketOptions {
9
+ /** Maximum number of reconnection attempts (default: 5) */
10
+ maxReconnectAttempts?: number;
11
+ /** Initial delay in ms before first reconnection attempt (default: 1000) */
12
+ reconnectInitialDelay?: number;
13
+ /** Exponential backoff factor for subsequent reconnect attempts (default: 2) */
14
+ reconnectBackoffFactor?: number;
15
+ }
16
+ /**
17
+ * Return type for useWebSocketManager hook
18
+ */
19
+ interface UseWebSocketManagerReturn {
20
+ /** Current connection status */
21
+ connectionStatus: WebSocketStatus;
22
+ /** Function to send messages over the WebSocket */
23
+ sendMessage: (message: object) => boolean;
24
+ /** Most recent error during connection or message handling */
25
+ lastError: Error | null;
26
+ }
27
+ /**
28
+ * Hook for managing a WebSocket connection with automatic reconnection
29
+ *
30
+ * @param getUrl Function that returns the WebSocket URL to connect to (return null to prevent connection)
31
+ * @param onMessageReceived Callback function to handle received messages
32
+ * @param options Connection options
33
+ */
34
+ export declare const useWebSocketManager: (getUrl: () => string | null, onMessageReceived: (data: any) => void, options?: WebSocketOptions) => UseWebSocketManagerReturn;
35
+ export {};
36
+ //# sourceMappingURL=useWebSocketManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWebSocketManager.d.ts","sourceRoot":"","sources":["../../../lib/hooks/useWebSocketManager.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEpF;;GAEG;AACH,UAAU,gBAAgB;IACxB,2DAA2D;IAC3D,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,4EAA4E;IAC5E,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,gFAAgF;IAChF,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAQD;;GAEG;AACH,UAAU,yBAAyB;IACjC,gCAAgC;IAChC,gBAAgB,EAAE,eAAe,CAAC;IAClC,mDAAmD;IACnD,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC1C,8DAA8D;IAC9D,SAAS,EAAE,KAAK,GAAG,IAAI,CAAC;CACzB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,WACtB,MAAM,MAAM,GAAG,IAAI,qBACR,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,YAC5B,gBAAgB,KACzB,yBAsRF,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { Buffer } from 'buffer';
2
+ declare global {
3
+ interface Window {
4
+ fs: any;
5
+ pfs: any;
6
+ miDir: string;
7
+ Buffer: typeof Buffer;
8
+ ethers: any;
9
+ MakeInfinite: any;
10
+ ReactECharts: any;
11
+ THREE: any;
12
+ Radix: any;
13
+ DreamspaceElements: any;
14
+ Lucide: any;
15
+ }
16
+ }
17
+ export declare const initializeMakeInfinite: () => void;
18
+ export { getTags, syncAndRetry, getUndoTargetCommitForFile, getRedoTargetCommitForFile, getHeadCommit, applySxtIgnore, listAllFiles, getCommits, checkoutCommit, } from './git';
19
+ export { listDir } from './filesystem';
20
+ export { MiniApp } from './components';
21
+ export { ProjectProvider, useAPI, useRGContext, RGProvider } from './contexts';
22
+ export { useProject } from './hooks';
23
+ export { useWebSocketManager } from './hooks/useWebSocketManager';
24
+ export { useB64UrlForProjectImage, loadLibraryComponents, loadProjectComponents, setTailwindTheme, useAppMetadata, useAppSettings, useAppVersions, } from './utility';
25
+ export { RGComponent, RGDroppable, RGComponentErrorBoundary, RGEditLayout, RGPreviewLayout, } from './components/RGLayout';
26
+ export { APIHandler } from './api';
27
+ export * from './apiProxy';
28
+ export { type Project, type FetchProjectResponse } from './types';
29
+ export * as DreamspaceElements from './components/DreamspaceElements';
30
+ export * as TailwindThemeContext from './contexts/tailwindThemeContext';
31
+ export * as TailwindThemeHooks from './hooks/tailwindThemeProvider';
32
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,EAAE,EAAE,GAAG,CAAC;QACR,GAAG,EAAE,GAAG,CAAC;QACT,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,OAAO,MAAM,CAAC;QACtB,MAAM,EAAE,GAAG,CAAC;QACZ,YAAY,EAAE,GAAG,CAAC;QAClB,YAAY,EAAE,GAAG,CAAC;QAClB,KAAK,EAAE,GAAG,CAAC;QACX,KAAK,EAAE,GAAG,CAAC;QACX,kBAAkB,EAAE,GAAG,CAAC;QACxB,MAAM,EAAE,GAAG,CAAC;KACb;CACF;AAGD,eAAO,MAAM,sBAAsB,YAkBlC,CAAC;AAGF,OAAO,EACL,OAAO,EACP,YAAY,EACZ,0BAA0B,EAC1B,0BAA0B,EAC1B,aAAa,EACb,cAAc,EACd,YAAY,EACZ,UAAU,EACV,cAAc,GACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,GACf,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,WAAW,EACX,WAAW,EACX,wBAAwB,EACxB,YAAY,EACZ,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAElE,OAAO,KAAK,kBAAkB,MAAM,iCAAiC,CAAC;AAEtE,OAAO,KAAK,oBAAoB,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,kBAAkB,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,20 @@
1
+ declare enum RenderMode {
2
+ EditMode = 0,
3
+ PreviewMode = 1
4
+ }
5
+ export type Project = {
6
+ clone_url: string;
7
+ project_name: string;
8
+ creator_sxt_uuid: string;
9
+ created_at_s: number;
10
+ updated_at_s: number;
11
+ hmac: string;
12
+ extra_meta?: string | null;
13
+ published_url?: string;
14
+ };
15
+ export type FetchProjectResponse = {
16
+ status: string;
17
+ projects: Project[];
18
+ };
19
+ export { RenderMode };
20
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../lib/types.ts"],"names":[],"mappings":"AAAA,aAAK,UAAU;IACb,QAAQ,IAAA;IACR,WAAW,IAAA;CACZ;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ declare const loadLibraryComponents: (apiHandler: any) => Promise<any>;
2
+ declare const loadProjectComponents: (projectName: string) => Promise<{
3
+ components: any;
4
+ layout: any;
5
+ }>;
6
+ declare const setTailwindTheme: (theme: object) => void;
7
+ declare const useB64UrlForProjectImage: (projectName: string, imageFilename: string) => string;
8
+ declare const useAppMetadata: (projectName: string, deps?: any[]) => any;
9
+ declare const useAppSettings: (projectName: string, deps?: any[]) => any;
10
+ declare const useAppVersions: (projectName: string, projectURL: string, deps?: any[]) => any;
11
+ declare const toString: (data: string | Uint8Array) => string;
12
+ export { loadLibraryComponents, loadProjectComponents, setTailwindTheme, useB64UrlForProjectImage, useAppMetadata, useAppSettings, useAppVersions, toString, };
13
+ //# sourceMappingURL=utility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../lib/utility.tsx"],"names":[],"mappings":"AAsCA,QAAA,MAAM,qBAAqB,eAAsB,GAAG,iBAwCnD,CAAC;AAEF,QAAA,MAAM,qBAAqB,gBAAuB,MAAM;;;EA6GvD,CAAC;AAgCF,QAAA,MAAM,gBAAgB,UAAW,MAAM,SAMtC,CAAC;AAEF,QAAA,MAAM,wBAAwB,gBAAiB,MAAM,iBAAiB,MAAM,WAiB3E,CAAC;AAEF,QAAA,MAAM,cAAc,gBAAiB,MAAM,SAAQ,GAAG,EAAE,QAuBvD,CAAC;AAEF,QAAA,MAAM,cAAc,gBAAiB,MAAM,SAAQ,GAAG,EAAE,QAuBvD,CAAC;AAEF,QAAA,MAAM,cAAc,gBAAiB,MAAM,cAAc,MAAM,SAAQ,GAAG,EAAE,QAqB3E,CAAC;AAGF,QAAA,MAAM,QAAQ,SAAU,MAAM,GAAG,UAAU,KAAG,MAM7C,CAAC;AAEF,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,cAAc,EACd,cAAc,EACd,QAAQ,GACT,CAAC"}
package/package.json CHANGED
@@ -2,18 +2,18 @@
2
2
  "name": "@spaceandtimelabs/makeinfinite-ui",
3
3
  "author": "aw-sxt",
4
4
  "private": false,
5
- "version": "0.72.1",
5
+ "version": "0.72.2-beta.0",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": "./dist/makeinfinite-ui.es.js",
10
10
  "require": "./dist/makeinfinite-ui.umd.js",
11
- "types": "./dist/index.d.ts"
11
+ "types": "./dist/types/index.d.ts"
12
12
  }
13
13
  },
14
14
  "main": "dist/makeinfinite-ui.umd.js",
15
15
  "module": "dist/makeinfinite-ui.es.js",
16
- "types": "dist/index.d.ts",
16
+ "types": "dist/types/index.d.ts",
17
17
  "files": [
18
18
  "dist"
19
19
  ],
@@ -23,12 +23,14 @@
23
23
  },
24
24
  "scripts": {
25
25
  "dev": "vite",
26
- "build": "vite build",
27
- "lint": "eslint .",
28
- "preview": "vite preview",
29
- "prepublishOnly": "yarn build",
30
- "commit": "cz",
31
- "watch-build": "chokidar 'src/**/*' 'lib/**/*' 'node_modules/@spaceandtimelabs/dapp-mi-components/dist/**/*' -c 'npm run build'"
26
+ "typecheck": "tsc -p tsconfig.json --noEmit",
27
+ "build": "vite build && yarn build:types",
28
+ "build:types": "tsc -p tsconfig.types.json",
29
+ "lint:check": "eslint --quiet \"**/*.{ts,tsx}\"",
30
+ "lint:fix": "eslint --fix \"**/*.{ts,tsx}\"",
31
+ "format:check": "prettier --check \"**/*.{ts,tsx}\"",
32
+ "format:fix": "prettier --write \"**/*.{ts,tsx}\"",
33
+ "prepublishOnly": "yarn run build"
32
34
  },
33
35
  "dependencies": {
34
36
  "@fontsource/geist-sans": "^5.1.0",
@@ -77,38 +79,30 @@
77
79
  "devDependencies": {
78
80
  "@babel/preset-typescript": "^7.26.0",
79
81
  "@babel/standalone": "^7.26.2",
80
- "@eslint/js": "^9.11.1",
81
82
  "@types/babel__standalone": "^7.1.9",
82
- "@types/node": "^22.7.6",
83
+ "@types/node": "^18.9.0",
83
84
  "@types/react": "^17.0.2",
84
85
  "@types/react-dom": "^17.0.2",
85
86
  "@types/react-grid-layout": "^1.3.5",
86
87
  "@types/styled-components": "^5.1.34",
87
88
  "@types/uuid": "^10.0.0",
88
- "@typescript-eslint/eslint-plugin": "^8.15.0",
89
- "@typescript-eslint/parser": "^8.15.0 ",
89
+ "@typescript-eslint/eslint-plugin": "^5.13.0",
90
+ "@typescript-eslint/parser": "^5.0.0",
90
91
  "@vitejs/plugin-react": "^4.3.2",
91
92
  "chokidar-cli": "^3.0.0",
92
- "cz-conventional-changelog": "^3.3.0",
93
- "eslint": "^9.11.1",
94
- "eslint-plugin-react-hooks": "^5.1.0-rc.0",
93
+ "eslint": "^8.2.0",
94
+ "eslint-plugin-react-hooks": "^4.3.0",
95
95
  "eslint-plugin-react-refresh": "^0.4.12",
96
- "prettier": "3.3.3",
96
+ "prettier": "^2.6.2",
97
97
  "react": "^17.0.2",
98
98
  "react-dom": "^17.0.2",
99
99
  "typescript": "^5.5.3",
100
- "typescript-eslint": "^8.7.0",
101
- "vite": "^5.4.8",
102
- "vite-plugin-dts": "^4.2.4"
100
+ "vite": "^4.5.0"
103
101
  },
104
102
  "resolutions": {
105
103
  "elliptic": "6.5.7",
106
104
  "ws": "8.17.1"
107
105
  },
108
- "config": {
109
- "commitizen": {
110
- "path": "./node_modules/cz-conventional-changelog"
111
- }
112
- },
113
- "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
106
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
107
+ "gitHead": "7eb0cec819bc51a01011fe7ee8a521fb7a72c584"
114
108
  }