@rebasepro/studio 0.0.1-canary.09e5ec5

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 (361) hide show
  1. package/LICENSE +114 -0
  2. package/README.md +159 -0
  3. package/dist/ApiExplorer-gMJt5JrS.js +1053 -0
  4. package/dist/ApiExplorer-gMJt5JrS.js.map +1 -0
  5. package/dist/AuthSimulationSelector-BF4rkRGp.js +118 -0
  6. package/dist/AuthSimulationSelector-BF4rkRGp.js.map +1 -0
  7. package/dist/BranchesView-DcHZtvXo.js +292 -0
  8. package/dist/BranchesView-DcHZtvXo.js.map +1 -0
  9. package/dist/CronJobsView-CijCToeK.js +456 -0
  10. package/dist/CronJobsView-CijCToeK.js.map +1 -0
  11. package/dist/JSEditor-D8nVp3Lp.js +1308 -0
  12. package/dist/JSEditor-D8nVp3Lp.js.map +1 -0
  13. package/dist/MonacoEditor-CMYEjiRf.js +161 -0
  14. package/dist/MonacoEditor-CMYEjiRf.js.map +1 -0
  15. package/dist/RLSEditor-DBH09u9v.js +1831 -0
  16. package/dist/RLSEditor-DBH09u9v.js.map +1 -0
  17. package/dist/SQLEditor-CkVx9vgr.js +1792 -0
  18. package/dist/SQLEditor-CkVx9vgr.js.map +1 -0
  19. package/dist/SchemaVisualizer-BgD5Zb77.js +1069 -0
  20. package/dist/SchemaVisualizer-BgD5Zb77.js.map +1 -0
  21. package/dist/StorageView-CTqGFhY9.js +907 -0
  22. package/dist/StorageView-CTqGFhY9.js.map +1 -0
  23. package/dist/common/src/collections/CollectionRegistry.d.ts +56 -0
  24. package/dist/common/src/collections/index.d.ts +1 -0
  25. package/dist/common/src/data/buildRebaseData.d.ts +14 -0
  26. package/dist/common/src/index.d.ts +3 -0
  27. package/dist/common/src/util/builders.d.ts +57 -0
  28. package/dist/common/src/util/callbacks.d.ts +6 -0
  29. package/dist/common/src/util/collections.d.ts +11 -0
  30. package/dist/common/src/util/common.d.ts +2 -0
  31. package/dist/common/src/util/conditions.d.ts +26 -0
  32. package/dist/common/src/util/entities.d.ts +58 -0
  33. package/dist/common/src/util/enums.d.ts +3 -0
  34. package/dist/common/src/util/index.d.ts +16 -0
  35. package/dist/common/src/util/navigation_from_path.d.ts +34 -0
  36. package/dist/common/src/util/navigation_utils.d.ts +20 -0
  37. package/dist/common/src/util/parent_references_from_path.d.ts +6 -0
  38. package/dist/common/src/util/paths.d.ts +14 -0
  39. package/dist/common/src/util/permissions.d.ts +5 -0
  40. package/dist/common/src/util/references.d.ts +2 -0
  41. package/dist/common/src/util/relations.d.ts +22 -0
  42. package/dist/common/src/util/resolutions.d.ts +72 -0
  43. package/dist/common/src/util/storage.d.ts +24 -0
  44. package/dist/core/src/components/AIIcon.d.ts +16 -0
  45. package/dist/core/src/components/ConfirmationDialog.d.ts +9 -0
  46. package/dist/core/src/components/Debug/UIReferenceView.d.ts +1 -0
  47. package/dist/core/src/components/Debug/UIStyleGuide.d.ts +1 -0
  48. package/dist/core/src/components/ErrorTooltip.d.ts +2 -0
  49. package/dist/core/src/components/ErrorView.d.ts +21 -0
  50. package/dist/core/src/components/LanguageToggle.d.ts +1 -0
  51. package/dist/core/src/components/LoginView/LoginView.d.ts +68 -0
  52. package/dist/core/src/components/LoginView/index.d.ts +2 -0
  53. package/dist/core/src/components/NotFoundPage.d.ts +1 -0
  54. package/dist/core/src/components/RebaseAuth.d.ts +10 -0
  55. package/dist/core/src/components/RebaseLogo.d.ts +7 -0
  56. package/dist/core/src/components/UnsavedChangesDialog.d.ts +9 -0
  57. package/dist/core/src/components/UserDisplay.d.ts +7 -0
  58. package/dist/core/src/components/UserSelectPopover.d.ts +62 -0
  59. package/dist/core/src/components/UserSettingsView.d.ts +1 -0
  60. package/dist/core/src/components/common/index.d.ts +6 -0
  61. package/dist/core/src/components/common/table_height.d.ts +5 -0
  62. package/dist/core/src/components/common/types.d.ts +63 -0
  63. package/dist/core/src/components/common/useColumnsIds.d.ts +9 -0
  64. package/dist/core/src/components/common/useDataTableController.d.ts +45 -0
  65. package/dist/core/src/components/common/useDebouncedData.d.ts +9 -0
  66. package/dist/core/src/components/common/useScrollRestoration.d.ts +14 -0
  67. package/dist/core/src/components/index.d.ts +16 -0
  68. package/dist/core/src/contexts/AdminModeController.d.ts +4 -0
  69. package/dist/core/src/contexts/AnalyticsContext.d.ts +3 -0
  70. package/dist/core/src/contexts/AuthControllerContext.d.ts +3 -0
  71. package/dist/core/src/contexts/CustomizationControllerContext.d.ts +3 -0
  72. package/dist/core/src/contexts/DataDriverContext.d.ts +3 -0
  73. package/dist/core/src/contexts/DatabaseAdminContext.d.ts +3 -0
  74. package/dist/core/src/contexts/DialogsProvider.d.ts +4 -0
  75. package/dist/core/src/contexts/EffectiveRoleController.d.ts +4 -0
  76. package/dist/core/src/contexts/InternalUserManagementContext.d.ts +3 -0
  77. package/dist/core/src/contexts/ModeController.d.ts +4 -0
  78. package/dist/core/src/contexts/RebaseClientInstanceContext.d.ts +6 -0
  79. package/dist/core/src/contexts/RebaseDataContext.d.ts +3 -0
  80. package/dist/core/src/contexts/SnackbarProvider.d.ts +2 -0
  81. package/dist/core/src/contexts/StorageSourceContext.d.ts +3 -0
  82. package/dist/core/src/contexts/UserConfigurationPersistenceContext.d.ts +3 -0
  83. package/dist/core/src/contexts/index.d.ts +13 -0
  84. package/dist/core/src/core/PluginLifecycleManager.d.ts +17 -0
  85. package/dist/core/src/core/PluginProviderStack.d.ts +21 -0
  86. package/dist/core/src/core/Rebase.d.ts +14 -0
  87. package/dist/core/src/core/RebaseProps.d.ts +136 -0
  88. package/dist/core/src/core/RebaseRouter.d.ts +4 -0
  89. package/dist/core/src/core/RebaseRoutes.d.ts +17 -0
  90. package/dist/core/src/core/index.d.ts +4 -0
  91. package/dist/core/src/hooks/ApiConfigContext.d.ts +24 -0
  92. package/dist/core/src/hooks/data/delete.d.ts +31 -0
  93. package/dist/core/src/hooks/data/save.d.ts +34 -0
  94. package/dist/core/src/hooks/data/useCollectionFetch.d.ts +51 -0
  95. package/dist/core/src/hooks/data/useData.d.ts +13 -0
  96. package/dist/core/src/hooks/data/useDataOrder.d.ts +12 -0
  97. package/dist/core/src/hooks/data/useEntityFetch.d.ts +38 -0
  98. package/dist/core/src/hooks/data/useRelationSelector.d.ts +52 -0
  99. package/dist/core/src/hooks/data/useUserSelector.d.ts +31 -0
  100. package/dist/core/src/hooks/index.d.ts +37 -0
  101. package/dist/core/src/hooks/useAdminModeController.d.ts +19 -0
  102. package/dist/core/src/hooks/useAnalyticsController.d.ts +5 -0
  103. package/dist/core/src/hooks/useAuthController.d.ts +11 -0
  104. package/dist/core/src/hooks/useAuthSubscription.d.ts +2 -0
  105. package/dist/core/src/hooks/useBackendStorageSource.d.ts +30 -0
  106. package/dist/core/src/hooks/useBridgeRegistration.d.ts +18 -0
  107. package/dist/core/src/hooks/useBrowserTitleAndIcon.d.ts +6 -0
  108. package/dist/core/src/hooks/useBuildAdminModeController.d.ts +6 -0
  109. package/dist/core/src/hooks/useBuildEffectiveRoleController.d.ts +8 -0
  110. package/dist/core/src/hooks/useBuildLocalConfigurationPersistence.d.ts +2 -0
  111. package/dist/core/src/hooks/useBuildModeController.d.ts +6 -0
  112. package/dist/core/src/hooks/useClipboard.d.ts +57 -0
  113. package/dist/core/src/hooks/useCollapsedGroups.d.ts +12 -0
  114. package/dist/core/src/hooks/useCustomizationController.d.ts +11 -0
  115. package/dist/core/src/hooks/useDialogsController.d.ts +11 -0
  116. package/dist/core/src/hooks/useEffectiveRoleController.d.ts +7 -0
  117. package/dist/core/src/hooks/useInternalUserManagementController.d.ts +12 -0
  118. package/dist/core/src/hooks/useLargeLayout.d.ts +1 -0
  119. package/dist/core/src/hooks/useModeController.d.ts +19 -0
  120. package/dist/core/src/hooks/usePermissions.d.ts +12 -0
  121. package/dist/core/src/hooks/useRebaseClient.d.ts +5 -0
  122. package/dist/core/src/hooks/useRebaseContext.d.ts +11 -0
  123. package/dist/core/src/hooks/useRebaseRegistry.d.ts +34 -0
  124. package/dist/core/src/hooks/useSlot.d.ts +18 -0
  125. package/dist/core/src/hooks/useSnackbarController.d.ts +20 -0
  126. package/dist/core/src/hooks/useStorageSource.d.ts +7 -0
  127. package/dist/core/src/hooks/useStudioBridge.d.ts +91 -0
  128. package/dist/core/src/hooks/useTranslation.d.ts +17 -0
  129. package/dist/core/src/hooks/useUnsavedChangesDialog.d.ts +12 -0
  130. package/dist/core/src/hooks/useUserConfigurationPersistence.d.ts +8 -0
  131. package/dist/core/src/hooks/useValidateAuthenticator.d.ts +21 -0
  132. package/dist/core/src/i18n/RebaseI18nProvider.d.ts +33 -0
  133. package/dist/core/src/index.d.ts +15 -0
  134. package/dist/core/src/internal/common.d.ts +3 -0
  135. package/dist/core/src/internal/useRestoreScroll.d.ts +6 -0
  136. package/dist/core/src/locales/de.d.ts +2 -0
  137. package/dist/core/src/locales/en.d.ts +10 -0
  138. package/dist/core/src/locales/es.d.ts +10 -0
  139. package/dist/core/src/locales/fr.d.ts +2 -0
  140. package/dist/core/src/locales/hi.d.ts +2 -0
  141. package/dist/core/src/locales/it.d.ts +2 -0
  142. package/dist/core/src/locales/pt.d.ts +7 -0
  143. package/dist/core/src/util/constants.d.ts +1 -0
  144. package/dist/core/src/util/createFormexStub.d.ts +2 -0
  145. package/dist/core/src/util/entity_cache.d.ts +27 -0
  146. package/dist/core/src/util/enums.d.ts +5 -0
  147. package/dist/core/src/util/icon_list.d.ts +5 -0
  148. package/dist/core/src/util/icon_synonyms.d.ts +1 -0
  149. package/dist/core/src/util/icons.d.ts +20 -0
  150. package/dist/core/src/util/index.d.ts +10 -0
  151. package/dist/core/src/util/previews.d.ts +4 -0
  152. package/dist/core/src/util/useStorageUploadController.d.ts +38 -0
  153. package/dist/core/src/util/useTraceUpdate.d.ts +2 -0
  154. package/dist/formex/src/Field.d.ts +52 -0
  155. package/dist/formex/src/Formex.d.ts +7 -0
  156. package/dist/formex/src/index.d.ts +5 -0
  157. package/dist/formex/src/types.d.ts +40 -0
  158. package/dist/formex/src/useCreateFormex.d.ts +14 -0
  159. package/dist/formex/src/utils.d.ts +16 -0
  160. package/dist/index.es.js +726 -0
  161. package/dist/index.es.js.map +1 -0
  162. package/dist/index.umd.js +9647 -0
  163. package/dist/index.umd.js.map +1 -0
  164. package/dist/studio/src/components/ApiExplorer/ApiExplorer.d.ts +9 -0
  165. package/dist/studio/src/components/ApiExplorer/EndpointDetail.d.ts +9 -0
  166. package/dist/studio/src/components/ApiExplorer/TryItPanel.d.ts +15 -0
  167. package/dist/studio/src/components/ApiExplorer/parseSpec.d.ts +16 -0
  168. package/dist/studio/src/components/ApiExplorer/types.d.ts +90 -0
  169. package/dist/studio/src/components/AuthSimulationSelector.d.ts +11 -0
  170. package/dist/studio/src/components/Branches/BranchesView.d.ts +1 -0
  171. package/dist/studio/src/components/CronJobs/CronJobsView.d.ts +1 -0
  172. package/dist/studio/src/components/JSEditor/JSEditor.d.ts +1 -0
  173. package/dist/studio/src/components/JSEditor/JSEditorSidebar.d.ts +21 -0
  174. package/dist/studio/src/components/JSEditor/JSMonacoEditor.d.ts +18 -0
  175. package/dist/studio/src/components/RLSEditor/PolicyEditor.d.ts +9 -0
  176. package/dist/studio/src/components/RLSEditor/RLSEditor.d.ts +19 -0
  177. package/dist/studio/src/components/RLSEditor/index.d.ts +1 -0
  178. package/dist/studio/src/components/RebaseStudio.d.ts +2 -0
  179. package/dist/studio/src/components/SQLEditor/ExplainVisualizer.d.ts +24 -0
  180. package/dist/studio/src/components/SQLEditor/MonacoEditor.d.ts +17 -0
  181. package/dist/studio/src/components/SQLEditor/SQLEditor.d.ts +11 -0
  182. package/dist/studio/src/components/SQLEditor/SQLEditorSidebar.d.ts +21 -0
  183. package/dist/studio/src/components/SQLEditor/SchemaBrowser.d.ts +8 -0
  184. package/dist/studio/src/components/SchemaVisualizer/RelationEdge.d.ts +3 -0
  185. package/dist/studio/src/components/SchemaVisualizer/SchemaVisualizer.d.ts +2 -0
  186. package/dist/studio/src/components/SchemaVisualizer/TableNode.d.ts +3 -0
  187. package/dist/studio/src/components/SchemaVisualizer/index.d.ts +5 -0
  188. package/dist/studio/src/components/SchemaVisualizer/schema-visualizer.utils.d.ts +42 -0
  189. package/dist/studio/src/components/SchemaVisualizer/useSchemaGraph.d.ts +37 -0
  190. package/dist/studio/src/components/StorageView/StorageView.d.ts +1 -0
  191. package/dist/studio/src/components/StudioHomePage.d.ts +9 -0
  192. package/dist/studio/src/index.d.ts +4 -0
  193. package/dist/studio/src/utils/entities.d.ts +0 -0
  194. package/dist/studio/src/utils/pgColumnToProperty.d.ts +6 -0
  195. package/dist/studio/src/utils/sql_utils.d.ts +52 -0
  196. package/dist/types/src/controllers/analytics_controller.d.ts +7 -0
  197. package/dist/types/src/controllers/auth.d.ts +119 -0
  198. package/dist/types/src/controllers/client.d.ts +170 -0
  199. package/dist/types/src/controllers/collection_registry.d.ts +45 -0
  200. package/dist/types/src/controllers/customization_controller.d.ts +60 -0
  201. package/dist/types/src/controllers/data.d.ts +168 -0
  202. package/dist/types/src/controllers/data_driver.d.ts +160 -0
  203. package/dist/types/src/controllers/database_admin.d.ts +11 -0
  204. package/dist/types/src/controllers/dialogs_controller.d.ts +36 -0
  205. package/dist/types/src/controllers/effective_role.d.ts +4 -0
  206. package/dist/types/src/controllers/email.d.ts +34 -0
  207. package/dist/types/src/controllers/index.d.ts +18 -0
  208. package/dist/types/src/controllers/local_config_persistence.d.ts +20 -0
  209. package/dist/types/src/controllers/navigation.d.ts +213 -0
  210. package/dist/types/src/controllers/registry.d.ts +54 -0
  211. package/dist/types/src/controllers/side_dialogs_controller.d.ts +67 -0
  212. package/dist/types/src/controllers/side_entity_controller.d.ts +90 -0
  213. package/dist/types/src/controllers/snackbar.d.ts +24 -0
  214. package/dist/types/src/controllers/storage.d.ts +171 -0
  215. package/dist/types/src/index.d.ts +4 -0
  216. package/dist/types/src/rebase_context.d.ts +105 -0
  217. package/dist/types/src/types/backend.d.ts +536 -0
  218. package/dist/types/src/types/builders.d.ts +15 -0
  219. package/dist/types/src/types/chips.d.ts +5 -0
  220. package/dist/types/src/types/collections.d.ts +856 -0
  221. package/dist/types/src/types/cron.d.ts +102 -0
  222. package/dist/types/src/types/data_source.d.ts +64 -0
  223. package/dist/types/src/types/entities.d.ts +145 -0
  224. package/dist/types/src/types/entity_actions.d.ts +98 -0
  225. package/dist/types/src/types/entity_callbacks.d.ts +173 -0
  226. package/dist/types/src/types/entity_link_builder.d.ts +7 -0
  227. package/dist/types/src/types/entity_overrides.d.ts +10 -0
  228. package/dist/types/src/types/entity_views.d.ts +61 -0
  229. package/dist/types/src/types/export_import.d.ts +21 -0
  230. package/dist/types/src/types/index.d.ts +23 -0
  231. package/dist/types/src/types/locales.d.ts +4 -0
  232. package/dist/types/src/types/modify_collections.d.ts +5 -0
  233. package/dist/types/src/types/plugins.d.ts +279 -0
  234. package/dist/types/src/types/properties.d.ts +1176 -0
  235. package/dist/types/src/types/property_config.d.ts +70 -0
  236. package/dist/types/src/types/relations.d.ts +336 -0
  237. package/dist/types/src/types/slots.d.ts +252 -0
  238. package/dist/types/src/types/translations.d.ts +870 -0
  239. package/dist/types/src/types/user_management_delegate.d.ts +121 -0
  240. package/dist/types/src/types/websockets.d.ts +78 -0
  241. package/dist/types/src/users/index.d.ts +2 -0
  242. package/dist/types/src/users/roles.d.ts +22 -0
  243. package/dist/types/src/users/user.d.ts +46 -0
  244. package/dist/ui/src/components/Alert.d.ts +12 -0
  245. package/dist/ui/src/components/Autocomplete.d.ts +21 -0
  246. package/dist/ui/src/components/Avatar.d.ts +11 -0
  247. package/dist/ui/src/components/Badge.d.ts +8 -0
  248. package/dist/ui/src/components/BooleanSwitch.d.ts +14 -0
  249. package/dist/ui/src/components/BooleanSwitchWithLabel.d.ts +17 -0
  250. package/dist/ui/src/components/Button.d.ts +14 -0
  251. package/dist/ui/src/components/Card.d.ts +9 -0
  252. package/dist/ui/src/components/CenteredView.d.ts +9 -0
  253. package/dist/ui/src/components/Checkbox.d.ts +13 -0
  254. package/dist/ui/src/components/Chip.d.ts +26 -0
  255. package/dist/ui/src/components/CircularProgress.d.ts +5 -0
  256. package/dist/ui/src/components/CircularProgressCenter.d.ts +11 -0
  257. package/dist/ui/src/components/Collapse.d.ts +9 -0
  258. package/dist/ui/src/components/ColorPicker.d.ts +30 -0
  259. package/dist/ui/src/components/Container.d.ts +8 -0
  260. package/dist/ui/src/components/DateTimeField.d.ts +24 -0
  261. package/dist/ui/src/components/DebouncedTextField.d.ts +2 -0
  262. package/dist/ui/src/components/Dialog.d.ts +39 -0
  263. package/dist/ui/src/components/DialogActions.d.ts +7 -0
  264. package/dist/ui/src/components/DialogContent.d.ts +7 -0
  265. package/dist/ui/src/components/DialogTitle.d.ts +10 -0
  266. package/dist/ui/src/components/ErrorBoundary.d.ts +11 -0
  267. package/dist/ui/src/components/ExpandablePanel.d.ts +12 -0
  268. package/dist/ui/src/components/FileUpload.d.ts +23 -0
  269. package/dist/ui/src/components/IconButton.d.ts +12 -0
  270. package/dist/ui/src/components/InfoLabel.d.ts +5 -0
  271. package/dist/ui/src/components/InputLabel.d.ts +11 -0
  272. package/dist/ui/src/components/Label.d.ts +7 -0
  273. package/dist/ui/src/components/LoadingButton.d.ts +7 -0
  274. package/dist/ui/src/components/Markdown.d.ts +10 -0
  275. package/dist/ui/src/components/Menu.d.ts +23 -0
  276. package/dist/ui/src/components/Menubar.d.ts +80 -0
  277. package/dist/ui/src/components/MultiSelect.d.ts +48 -0
  278. package/dist/ui/src/components/Paper.d.ts +6 -0
  279. package/dist/ui/src/components/Popover.d.ts +24 -0
  280. package/dist/ui/src/components/RadioGroup.d.ts +28 -0
  281. package/dist/ui/src/components/ResizablePanels.d.ts +18 -0
  282. package/dist/ui/src/components/SearchBar.d.ts +22 -0
  283. package/dist/ui/src/components/Select.d.ts +43 -0
  284. package/dist/ui/src/components/Separator.d.ts +5 -0
  285. package/dist/ui/src/components/Sheet.d.ts +22 -0
  286. package/dist/ui/src/components/Skeleton.d.ts +6 -0
  287. package/dist/ui/src/components/Slider.d.ts +21 -0
  288. package/dist/ui/src/components/Table.d.ts +34 -0
  289. package/dist/ui/src/components/Tabs.d.ts +19 -0
  290. package/dist/ui/src/components/TextField.d.ts +58 -0
  291. package/dist/ui/src/components/TextareaAutosize.d.ts +43 -0
  292. package/dist/ui/src/components/ToggleButtonGroup.d.ts +30 -0
  293. package/dist/ui/src/components/Tooltip.d.ts +19 -0
  294. package/dist/ui/src/components/Typography.d.ts +36 -0
  295. package/dist/ui/src/components/VirtualTable/VirtualTable.d.ts +11 -0
  296. package/dist/ui/src/components/VirtualTable/VirtualTableCell.d.ts +21 -0
  297. package/dist/ui/src/components/VirtualTable/VirtualTableHeader.d.ts +29 -0
  298. package/dist/ui/src/components/VirtualTable/VirtualTableHeaderRow.d.ts +2 -0
  299. package/dist/ui/src/components/VirtualTable/VirtualTableProps.d.ts +243 -0
  300. package/dist/ui/src/components/VirtualTable/VirtualTableRow.d.ts +3 -0
  301. package/dist/ui/src/components/VirtualTable/index.d.ts +3 -0
  302. package/dist/ui/src/components/VirtualTable/types.d.ts +38 -0
  303. package/dist/ui/src/components/common/SelectInputLabel.d.ts +5 -0
  304. package/dist/ui/src/components/index.d.ts +53 -0
  305. package/dist/ui/src/hooks/PortalContainerContext.d.ts +31 -0
  306. package/dist/ui/src/hooks/index.d.ts +6 -0
  307. package/dist/ui/src/hooks/useDebounceCallback.d.ts +1 -0
  308. package/dist/ui/src/hooks/useDebounceValue.d.ts +1 -0
  309. package/dist/ui/src/hooks/useDebouncedCallback.d.ts +1 -0
  310. package/dist/ui/src/hooks/useInjectStyles.d.ts +7 -0
  311. package/dist/ui/src/hooks/useOutsideAlerter.d.ts +5 -0
  312. package/dist/ui/src/icons/GitHubIcon.d.ts +2 -0
  313. package/dist/ui/src/icons/HandleIcon.d.ts +1 -0
  314. package/dist/ui/src/icons/Icon.d.ts +20 -0
  315. package/dist/ui/src/icons/cool_icon_keys.d.ts +1 -0
  316. package/dist/ui/src/icons/icon_keys.d.ts +1 -0
  317. package/dist/ui/src/icons/index.d.ts +6 -0
  318. package/dist/ui/src/index.d.ts +5 -0
  319. package/dist/ui/src/styles.d.ts +12 -0
  320. package/dist/ui/src/util/chip_colors.d.ts +4 -0
  321. package/dist/ui/src/util/cls.d.ts +2 -0
  322. package/dist/ui/src/util/debounce.d.ts +10 -0
  323. package/dist/ui/src/util/hash.d.ts +1 -0
  324. package/dist/ui/src/util/index.d.ts +4 -0
  325. package/dist/ui/src/util/key_to_icon_component.d.ts +1 -0
  326. package/package.json +84 -0
  327. package/src/components/ApiExplorer/ApiExplorer.tsx +290 -0
  328. package/src/components/ApiExplorer/EndpointDetail.tsx +271 -0
  329. package/src/components/ApiExplorer/TryItPanel.tsx +510 -0
  330. package/src/components/ApiExplorer/parseSpec.ts +104 -0
  331. package/src/components/ApiExplorer/types.ts +84 -0
  332. package/src/components/AuthSimulationSelector.tsx +77 -0
  333. package/src/components/Branches/BranchesView.tsx +370 -0
  334. package/src/components/CronJobs/CronJobsView.tsx +346 -0
  335. package/src/components/JSEditor/JSEditor.tsx +1033 -0
  336. package/src/components/JSEditor/JSEditorSidebar.tsx +340 -0
  337. package/src/components/JSEditor/JSMonacoEditor.tsx +390 -0
  338. package/src/components/RLSEditor/PolicyEditor.tsx +444 -0
  339. package/src/components/RLSEditor/RLSEditor.tsx +692 -0
  340. package/src/components/RLSEditor/index.ts +1 -0
  341. package/src/components/RebaseStudio.tsx +121 -0
  342. package/src/components/SQLEditor/ExplainVisualizer.tsx +128 -0
  343. package/src/components/SQLEditor/MonacoEditor.tsx +203 -0
  344. package/src/components/SQLEditor/SQLEditor.tsx +1419 -0
  345. package/src/components/SQLEditor/SQLEditorSidebar.tsx +174 -0
  346. package/src/components/SQLEditor/SchemaBrowser.tsx +158 -0
  347. package/src/components/SchemaVisualizer/RelationEdge.tsx +102 -0
  348. package/src/components/SchemaVisualizer/SchemaVisualizer.tsx +665 -0
  349. package/src/components/SchemaVisualizer/TableNode.tsx +257 -0
  350. package/src/components/SchemaVisualizer/index.ts +5 -0
  351. package/src/components/SchemaVisualizer/schema-visualizer.utils.ts +140 -0
  352. package/src/components/SchemaVisualizer/useSchemaGraph.ts +397 -0
  353. package/src/components/StorageView/StorageView.tsx +1035 -0
  354. package/src/components/StudioHomePage.tsx +357 -0
  355. package/src/index.ts +31 -0
  356. package/src/utils/entities.ts +2 -0
  357. package/src/utils/pgColumnToProperty.test.ts +401 -0
  358. package/src/utils/pgColumnToProperty.ts +275 -0
  359. package/src/utils/sql_utils.test.ts +265 -0
  360. package/src/utils/sql_utils.ts +291 -0
  361. package/src/vite-env.d.ts +1 -0
@@ -0,0 +1,121 @@
1
+ import { Role, User } from "../users";
2
+ /**
3
+ * Result of creating a new user via admin flow.
4
+ * Contains the created user plus information about how credentials were delivered.
5
+ */
6
+ export interface UserCreationResult<USER extends User = User> {
7
+ /** The created user */
8
+ user: USER;
9
+ /** Whether an invitation email was sent to the user */
10
+ invitationSent: boolean;
11
+ /**
12
+ * Temporary password (only present when email service is not configured).
13
+ * This is returned one-time and should be shown to the admin to share manually.
14
+ */
15
+ temporaryPassword?: string;
16
+ }
17
+ /**
18
+ * Delegate to manage users, roles, and their permissions.
19
+ * This interface allows the CMS to be completely agnostic of the underlying
20
+ * authentication provider or backend.
21
+ *
22
+ * @group Models
23
+ */
24
+ export interface UserManagementDelegate<USER extends User = User> {
25
+ /**
26
+ * Are the users and roles currently being fetched?
27
+ */
28
+ loading: boolean;
29
+ /**
30
+ * List of users managed by the CMS.
31
+ */
32
+ users: USER[];
33
+ /**
34
+ * Optional error if users failed to load.
35
+ */
36
+ usersError?: Error;
37
+ /**
38
+ * Function to get a user by its uid. This is used to show
39
+ * user information when assigning ownership of an entity.
40
+ * @param uid
41
+ */
42
+ getUser: (uid: string) => USER | null;
43
+ /**
44
+ * Search users with server-side pagination.
45
+ * When provided, the CMS will use this for the users table
46
+ * instead of loading all users into memory.
47
+ */
48
+ searchUsers?: (options: {
49
+ search?: string;
50
+ limit?: number;
51
+ offset?: number;
52
+ orderBy?: string;
53
+ orderDir?: "asc" | "desc";
54
+ roleId?: string;
55
+ }) => Promise<{
56
+ users: USER[];
57
+ total: number;
58
+ }>;
59
+ /**
60
+ * Save a user (create or update)
61
+ * @param user
62
+ */
63
+ saveUser?: (user: USER) => Promise<USER>;
64
+ /**
65
+ * Create a new user with invitation/password generation support.
66
+ * Returns additional info about how the credentials were delivered.
67
+ * Falls back to saveUser if not provided.
68
+ */
69
+ createUser?: (user: USER) => Promise<UserCreationResult<USER>>;
70
+ /**
71
+ * Reset the password for an existing user.
72
+ * Returns a temporary password if no email service is configured,
73
+ * or a flag indicating an email invitation was sent.
74
+ */
75
+ resetPassword?: (user: USER) => Promise<UserCreationResult<USER>>;
76
+ /**
77
+ * Delete a user
78
+ * @param user
79
+ */
80
+ deleteUser?: (user: USER) => Promise<void>;
81
+ /**
82
+ * List of roles defined in the CMS.
83
+ */
84
+ roles?: Role[];
85
+ /**
86
+ * Optional error if roles failed to load.
87
+ */
88
+ rolesError?: Error;
89
+ /**
90
+ * Save a role (create or update)
91
+ * @param role
92
+ */
93
+ saveRole?: (role: Role) => Promise<void>;
94
+ /**
95
+ * Delete a role
96
+ * @param role
97
+ */
98
+ deleteRole?: (role: Role) => Promise<void>;
99
+ /**
100
+ * Is the currently logged in user an admin?
101
+ */
102
+ isAdmin?: boolean;
103
+ /**
104
+ * If true, the UI will allow the user to create the default roles (admin, editor, viewer).
105
+ */
106
+ allowDefaultRolesCreation?: boolean;
107
+ /**
108
+ * Should collection config permissions be included?
109
+ */
110
+ includeCollectionConfigPermissions?: boolean;
111
+ /**
112
+ * Optionally define roles for a given user. This is useful when the roles
113
+ * are coming from a separate provider than the one issuing the tokens.
114
+ */
115
+ defineRolesFor?: (user: USER) => Promise<Role[] | undefined> | Role[] | undefined;
116
+ /**
117
+ * Optional function to bootstrap an admin user.
118
+ * Often used when the database is empty.
119
+ */
120
+ bootstrapAdmin?: () => Promise<void>;
121
+ }
@@ -0,0 +1,78 @@
1
+ import { Entity } from "./entities";
2
+ export interface WebSocketErrorPayload {
3
+ error?: string | {
4
+ message: string;
5
+ code?: string;
6
+ };
7
+ message?: string;
8
+ code?: string;
9
+ }
10
+ export interface WebSocketMessage {
11
+ type: string;
12
+ payload?: unknown;
13
+ subscriptionId?: string;
14
+ requestId?: string;
15
+ entities?: Entity<Record<string, unknown>>[];
16
+ entity?: Entity<Record<string, unknown>> | null;
17
+ error?: string;
18
+ }
19
+ export interface CollectionUpdateMessage extends WebSocketMessage {
20
+ type: "collection_update";
21
+ subscriptionId: string;
22
+ entities: Entity<Record<string, unknown>>[];
23
+ }
24
+ export interface EntityUpdateMessage extends WebSocketMessage {
25
+ type: "entity_update";
26
+ subscriptionId: string;
27
+ entity: Entity<Record<string, unknown>> | null;
28
+ }
29
+ /**
30
+ * Lightweight patch message sent to collection subscribers when a single
31
+ * entity is created, updated, or deleted. The client can merge this into
32
+ * its cached collection data for near-instant cross-tab updates without
33
+ * waiting for a full collection refetch.
34
+ */
35
+ export interface CollectionEntityPatchMessage extends WebSocketMessage {
36
+ type: "collection_entity_patch";
37
+ subscriptionId: string;
38
+ entityId: string;
39
+ /** The updated entity, or null if deleted */
40
+ entity: Entity<Record<string, unknown>> | null;
41
+ }
42
+ /**
43
+ * Column metadata returned by table introspection.
44
+ */
45
+ export interface TableColumnInfo {
46
+ column_name: string;
47
+ data_type: string;
48
+ udt_name: string;
49
+ is_nullable: string;
50
+ column_default: string | null;
51
+ character_maximum_length: number | null;
52
+ /** Enum values, populated for USER-DEFINED (enum) columns */
53
+ enum_values?: string[];
54
+ }
55
+ export interface TableForeignKeyInfo {
56
+ column_name: string;
57
+ foreign_table_name: string;
58
+ foreign_column_name: string;
59
+ }
60
+ export interface TableJunctionInfo {
61
+ junction_table_name: string;
62
+ source_column_name: string;
63
+ target_table_name: string;
64
+ target_column_name: string;
65
+ }
66
+ export interface TablePolicyInfo {
67
+ policy_name: string;
68
+ roles: string[];
69
+ cmd: string;
70
+ qual?: string;
71
+ with_check?: string;
72
+ }
73
+ export interface TableMetadata {
74
+ columns: TableColumnInfo[];
75
+ foreignKeys: TableForeignKeyInfo[];
76
+ junctions: TableJunctionInfo[];
77
+ policies: TablePolicyInfo[];
78
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./user";
2
+ export * from "./roles";
@@ -0,0 +1,22 @@
1
+ export type Role = {
2
+ /**
3
+ * ID of the role
4
+ */
5
+ id: string;
6
+ /**
7
+ * Name of the role
8
+ */
9
+ name: string;
10
+ /**
11
+ * If this flag is true, the user can perform any action
12
+ */
13
+ isAdmin?: boolean;
14
+ /**
15
+ * Permissions related to editing the collections
16
+ */
17
+ config?: {
18
+ createCollections?: boolean;
19
+ editCollections?: boolean | "own";
20
+ deleteCollections?: boolean | "own";
21
+ };
22
+ };
@@ -0,0 +1,46 @@
1
+ /**
2
+ * This interface represents a user.
3
+ * It has some of the same fields as a Firebase User.
4
+ * Note that in the default implementation, we simply take the Firebase user
5
+ * and use it as a Rebase user, so that means that even if they are not mapped
6
+ * in this interface, it contains all the methods of the former, such as `delete`,
7
+ * `getIdToken`, etc.
8
+ *
9
+ * @group Models
10
+ */
11
+ export type User = {
12
+ /**
13
+ * The user's unique ID, scoped to the project.
14
+ */
15
+ readonly uid: string;
16
+ /**
17
+ * The display name of the user.
18
+ */
19
+ readonly displayName: string | null;
20
+ /**
21
+ * The email of the user.
22
+ */
23
+ readonly email: string | null;
24
+ /**
25
+ * The profile photo URL of the user.
26
+ */
27
+ readonly photoURL: string | null;
28
+ /**
29
+ * The provider used to authenticate the user.
30
+ */
31
+ readonly providerId: string;
32
+ /**
33
+ *
34
+ */
35
+ readonly isAnonymous: boolean;
36
+ /**
37
+ * Role IDs assigned to this user (e.g. ["admin", "editor"]).
38
+ * These are plain string IDs — use the UserManagementDelegate to look up full Role objects.
39
+ */
40
+ roles?: string[];
41
+ /**
42
+ * The date and time when the user was created.
43
+ */
44
+ createdAt?: Date | string | null;
45
+ getIdToken?: (forceRefresh?: boolean) => Promise<string>;
46
+ };
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ export interface AlertProps {
3
+ children: React.ReactNode;
4
+ onDismiss?: () => void;
5
+ color?: "error" | "warning" | "info" | "success" | "base";
6
+ size?: "small" | "medium" | "large";
7
+ action?: React.ReactNode;
8
+ className?: string;
9
+ outerClassName?: string;
10
+ style?: React.CSSProperties;
11
+ }
12
+ export declare const Alert: React.FC<AlertProps>;
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ export type AutocompleteProps = {
3
+ children: React.ReactNode;
4
+ open: boolean;
5
+ setOpen: (open: boolean) => void;
6
+ className?: string;
7
+ };
8
+ export declare const useAutoComplete: ({ ref }: {
9
+ ref: React.MutableRefObject<HTMLDivElement | null>;
10
+ }) => {
11
+ inputFocused: boolean;
12
+ autoCompleteOpen: boolean;
13
+ setAutoCompleteOpen: React.Dispatch<React.SetStateAction<boolean>>;
14
+ };
15
+ export declare function Autocomplete({ children, open, setOpen, className }: AutocompleteProps): import("react/jsx-runtime").JSX.Element;
16
+ export type AutocompleteItemProps = {
17
+ children: React.ReactNode;
18
+ onClick?: () => void;
19
+ className?: string;
20
+ };
21
+ export declare const AutocompleteItem: React.NamedExoticComponent<AutocompleteItemProps>;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ export interface AvatarProps {
3
+ src?: string;
4
+ alt?: string;
5
+ children?: React.ReactNode;
6
+ className?: string;
7
+ outerClassName?: string;
8
+ hover?: boolean;
9
+ style?: React.CSSProperties;
10
+ }
11
+ export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ export type BadgeColor = "primary" | "secondary" | "warning" | "error";
3
+ export interface BadgeProps {
4
+ color?: BadgeColor;
5
+ children: React.ReactNode;
6
+ invisible?: boolean;
7
+ }
8
+ export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ export type BooleanSwitchProps = {
3
+ value: boolean | null;
4
+ className?: string;
5
+ disabled?: boolean;
6
+ size?: "smallest" | "small" | "medium" | "large";
7
+ } & ({
8
+ allowIndeterminate: true;
9
+ onValueChange?: (newValue: boolean | null) => void;
10
+ } | {
11
+ allowIndeterminate?: false;
12
+ onValueChange?: (newValue: boolean) => void;
13
+ });
14
+ export declare const BooleanSwitch: React.ForwardRefExoticComponent<BooleanSwitchProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { BooleanSwitchProps } from "./BooleanSwitch";
3
+ export type BooleanSwitchWithLabelProps = BooleanSwitchProps & {
4
+ position?: "start" | "end";
5
+ invisible?: boolean;
6
+ label?: React.ReactNode;
7
+ error?: boolean;
8
+ autoFocus?: boolean;
9
+ fullWidth?: boolean;
10
+ className?: string;
11
+ inputClassName?: string;
12
+ };
13
+ /**
14
+ * Simple boolean switch.
15
+ *
16
+ */
17
+ export declare const BooleanSwitchWithLabel: ({ value, position, size, invisible, onValueChange, error, label, autoFocus, disabled, className, fullWidth, inputClassName, ...props }: BooleanSwitchWithLabelProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ export type ButtonProps<C extends React.ElementType = "button"> = {
3
+ children?: React.ReactNode;
4
+ variant?: "filled" | "outlined" | "text";
5
+ disabled?: boolean;
6
+ color?: "primary" | "secondary" | "text" | "error" | "neutral";
7
+ size?: "small" | "medium" | "large" | "xl" | "2xl";
8
+ startIcon?: React.ReactNode;
9
+ fullWidth?: boolean;
10
+ className?: string;
11
+ component?: C;
12
+ onClick?: React.MouseEventHandler<any>;
13
+ } & React.ComponentPropsWithoutRef<C>;
14
+ export declare const Button: React.FC<ButtonProps<any>>;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ type CardProps = {
3
+ children: React.ReactNode;
4
+ style?: React.CSSProperties;
5
+ onClick?: (e?: React.MouseEvent) => void;
6
+ className?: string;
7
+ };
8
+ declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
9
+ export { Card };
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ export type CenteredViewProps = {
3
+ children: React.ReactNode;
4
+ maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl";
5
+ outerClassName?: string;
6
+ className?: string;
7
+ fullScreen?: boolean;
8
+ };
9
+ export declare const CenteredView: React.ForwardRefExoticComponent<CenteredViewProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ export interface CheckboxProps {
3
+ checked: boolean;
4
+ id?: string;
5
+ disabled?: boolean;
6
+ indeterminate?: boolean;
7
+ onCheckedChange?: (checked: boolean) => void;
8
+ padding?: boolean;
9
+ size?: "smallest" | "small" | "medium" | "large";
10
+ color?: "primary" | "secondary";
11
+ "aria-label"?: string;
12
+ }
13
+ export declare const Checkbox: React.MemoExoticComponent<({ id, checked, indeterminate, padding, disabled, size, onCheckedChange, color, "aria-label": ariaLabel }: CheckboxProps) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import { CHIP_COLORS } from "../util";
3
+ export type ChipColorScheme = {
4
+ color: string;
5
+ text: string;
6
+ /** Background color override for dark mode */
7
+ darkColor?: string;
8
+ /** Text color override for dark mode */
9
+ darkText?: string;
10
+ };
11
+ export type ChipColorKey = keyof typeof CHIP_COLORS;
12
+ export interface ChipProps {
13
+ className?: string;
14
+ children: React.ReactNode;
15
+ size?: "smallest" | "small" | "medium" | "large";
16
+ colorScheme?: ChipColorScheme | ChipColorKey;
17
+ error?: boolean;
18
+ outlined?: boolean;
19
+ onClick?: () => void;
20
+ icon?: React.ReactNode;
21
+ style?: React.CSSProperties;
22
+ }
23
+ /**
24
+ * @group Preview components
25
+ */
26
+ export declare function Chip({ children, colorScheme, error, outlined, onClick, icon, size, className, style }: ChipProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export type CircularProgressProps = {
2
+ size?: "smallest" | "small" | "medium" | "large";
3
+ className?: string;
4
+ };
5
+ export declare function CircularProgress({ size, className }: CircularProgressProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { CircularProgressProps } from "./CircularProgress";
2
+ /**
3
+ *
4
+ * @param text
5
+ * @param props
6
+
7
+ * @ignore
8
+ */
9
+ export declare function CircularProgressCenter({ text, ...props }: CircularProgressProps & {
10
+ text?: string;
11
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ interface CollapseProps {
3
+ children?: React.ReactNode;
4
+ className?: string;
5
+ in?: boolean;
6
+ duration?: number;
7
+ }
8
+ export declare const Collapse: React.MemoExoticComponent<({ children, className, in: isOpen, duration }: CollapseProps) => import("react/jsx-runtime").JSX.Element>;
9
+ export {};
@@ -0,0 +1,30 @@
1
+ import { ChipColorKey } from "./Chip";
2
+ export interface ColorPickerProps {
3
+ /**
4
+ * Currently selected color key
5
+ */
6
+ value?: ChipColorKey;
7
+ /**
8
+ * Callback when color selection changes. Passes undefined when "Auto" is selected.
9
+ */
10
+ onChange: (colorKey: ChipColorKey | undefined) => void;
11
+ /**
12
+ * Size of the color swatches
13
+ */
14
+ size?: "small" | "medium";
15
+ /**
16
+ * Whether to show the "Auto" option that clears the selection
17
+ */
18
+ allowClear?: boolean;
19
+ /**
20
+ * Whether the picker is disabled
21
+ */
22
+ disabled?: boolean;
23
+ }
24
+ /**
25
+ * A color picker component that displays a grid of predefined CHIP_COLORS.
26
+ * Used for selecting colors for enum values, tags, and other chip-based UI elements.
27
+ *
28
+ * @group Form components
29
+ */
30
+ export declare function ColorPicker({ value, onChange, size, allowClear, disabled }: ColorPickerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ export type ContainerProps = {
3
+ children: React.ReactNode;
4
+ style?: React.CSSProperties;
5
+ className?: string;
6
+ maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl";
7
+ };
8
+ export declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ export type DateTimeFieldProps = {
3
+ value?: Date | null;
4
+ onChange?: (date: Date | null) => void;
5
+ mode?: "date" | "date_time";
6
+ disabled?: boolean;
7
+ clearable?: boolean;
8
+ error?: boolean;
9
+ size?: "smallest" | "small" | "medium" | "large";
10
+ label?: React.ReactNode;
11
+ className?: string;
12
+ style?: React.CSSProperties;
13
+ inputClassName?: string;
14
+ invisible?: boolean;
15
+ locale?: string;
16
+ /**
17
+ * IANA timezone string (e.g., "America/New_York", "Europe/London").
18
+ * Used to display and input dates in the specified timezone.
19
+ * The value passed to onChange will always be in UTC.
20
+ * If not provided, uses the user's local timezone.
21
+ */
22
+ timezone?: string;
23
+ };
24
+ export declare const DateTimeField: React.FC<DateTimeFieldProps>;
@@ -0,0 +1,2 @@
1
+ import { TextFieldProps } from "./index";
2
+ export declare function DebouncedTextField<T extends string | number>(props: TextFieldProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,39 @@
1
+ import React from "react";
2
+ export type DialogProps = {
3
+ open?: boolean;
4
+ onOpenChange?: (open: boolean) => void;
5
+ children: React.ReactNode;
6
+ className?: string;
7
+ containerClassName?: string;
8
+ fullWidth?: boolean;
9
+ fullHeight?: boolean;
10
+ fullScreen?: boolean;
11
+ scrollable?: boolean;
12
+ maxWidth?: keyof typeof widthClasses;
13
+ modal?: boolean;
14
+ onOpenAutoFocus?: (e: Event) => void;
15
+ onEscapeKeyDown?: (e: KeyboardEvent) => void;
16
+ onPointerDownOutside?: (e: Event) => void;
17
+ onInteractOutside?: (e: Event) => void;
18
+ /**
19
+ * If `true`, the dialog will not focus the first focusable element when opened.
20
+ */
21
+ disableInitialFocus?: boolean;
22
+ portalContainer?: HTMLElement | null;
23
+ };
24
+ declare const widthClasses: {
25
+ xs: string;
26
+ sm: string;
27
+ md: string;
28
+ lg: string;
29
+ xl: string;
30
+ "2xl": string;
31
+ "3xl": string;
32
+ "4xl": string;
33
+ "5xl": string;
34
+ "6xl": string;
35
+ "7xl": string;
36
+ full: string;
37
+ };
38
+ export declare const Dialog: ({ open, onOpenChange, children, className, containerClassName, fullWidth, fullHeight, fullScreen, scrollable, maxWidth, modal, onOpenAutoFocus, onEscapeKeyDown, onPointerDownOutside, onInteractOutside, disableInitialFocus, portalContainer }: DialogProps) => import("react/jsx-runtime").JSX.Element;
39
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ export declare function DialogActions({ children, position, translucent, className }: {
3
+ children: React.ReactNode;
4
+ position?: "sticky" | "absolute";
5
+ translucent?: boolean;
6
+ className?: string;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ export declare function DialogContent({ children, className, fullHeight, includeMargin }: {
3
+ children: React.ReactNode;
4
+ includeMargin?: boolean;
5
+ fullHeight?: boolean;
6
+ className?: string;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { TypographyProps, TypographyVariant } from "./Typography";
3
+ export type DialogContentProps = TypographyProps & {
4
+ children: React.ReactNode;
5
+ hidden?: boolean;
6
+ className?: string;
7
+ includeMargin?: boolean;
8
+ variant?: TypographyVariant;
9
+ };
10
+ export declare function DialogTitle({ children, hidden, className, variant, gutterBottom, includeMargin, ...props }: DialogContentProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import React, { ErrorInfo, PropsWithChildren } from "react";
2
+ export declare class ErrorBoundary extends React.Component<PropsWithChildren<Record<string, unknown>>, {
3
+ error: Error | null;
4
+ }> {
5
+ constructor(props: any);
6
+ static getDerivedStateFromError(error: Error): {
7
+ error: Error;
8
+ };
9
+ componentDidCatch(error: Error, _errorInfo: ErrorInfo): void;
10
+ render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
11
+ }
@@ -0,0 +1,12 @@
1
+ import React, { PropsWithChildren } from "react";
2
+ export declare function ExpandablePanel({ title, children, invisible, expanded, onExpandedChange, initiallyExpanded, titleClassName, asField, className, innerClassName }: PropsWithChildren<{
3
+ title: React.ReactNode;
4
+ invisible?: boolean;
5
+ initiallyExpanded?: boolean;
6
+ expanded?: boolean;
7
+ onExpandedChange?: (expanded: boolean) => void;
8
+ titleClassName?: string;
9
+ asField?: boolean;
10
+ className?: string;
11
+ innerClassName?: string;
12
+ }>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ export interface FileUploadError {
3
+ message: string;
4
+ code: string;
5
+ }
6
+ export type OnFileUploadRejected = (fileRejections: {
7
+ file: File;
8
+ errors: readonly FileUploadError[];
9
+ }[], event: object) => void;
10
+ export type OnFilesUploadAdded = (files: File[]) => void;
11
+ export type FileUploadProps = {
12
+ accept: Record<string, string[]>;
13
+ onFilesAdded: OnFilesUploadAdded;
14
+ onFilesRejected?: OnFileUploadRejected;
15
+ maxSize?: number;
16
+ disabled?: boolean;
17
+ maxFiles?: number;
18
+ title?: React.ReactNode;
19
+ uploadDescription?: React.ReactNode;
20
+ preventDropOnDocument?: boolean;
21
+ size?: "small" | "medium" | "large";
22
+ };
23
+ export declare function FileUpload({ accept, onFilesAdded, onFilesRejected, maxSize, disabled, maxFiles, title, uploadDescription, children, preventDropOnDocument, size }: React.PropsWithChildren<FileUploadProps>): import("react/jsx-runtime").JSX.Element;