@rebasepro/studio 0.5.0 → 0.6.1

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 (369) hide show
  1. package/dist/ApiExplorer-CdIwR9Ga.js +963 -0
  2. package/dist/ApiExplorer-CdIwR9Ga.js.map +1 -0
  3. package/dist/AuthSimulationSelector-iEZ-Or_1.js +56 -0
  4. package/dist/AuthSimulationSelector-iEZ-Or_1.js.map +1 -0
  5. package/dist/BranchesView-DncIRcZt.js +461 -0
  6. package/dist/BranchesView-DncIRcZt.js.map +1 -0
  7. package/dist/CronJobsView-4gdtJvoe.js +500 -0
  8. package/dist/CronJobsView-4gdtJvoe.js.map +1 -0
  9. package/dist/JSEditor-BhAbEjCP.js +1573 -0
  10. package/dist/JSEditor-BhAbEjCP.js.map +1 -0
  11. package/dist/LogsExplorer-CqtKILj8.js +240 -0
  12. package/dist/LogsExplorer-CqtKILj8.js.map +1 -0
  13. package/dist/MonacoEditor-COZqrIJ1.js +246 -0
  14. package/dist/MonacoEditor-COZqrIJ1.js.map +1 -0
  15. package/dist/RLSEditor-DpF1u9EC.js +1369 -0
  16. package/dist/RLSEditor-DpF1u9EC.js.map +1 -0
  17. package/dist/SQLEditor-BLuq_zDM.js +1964 -0
  18. package/dist/SQLEditor-BLuq_zDM.js.map +1 -0
  19. package/dist/SchemaVisualizer-BJK2u3C0.js +1068 -0
  20. package/dist/SchemaVisualizer-BJK2u3C0.js.map +1 -0
  21. package/dist/StorageView-CvrnHmDG.js +1395 -0
  22. package/dist/StorageView-CvrnHmDG.js.map +1 -0
  23. package/dist/{studio/src/components → components}/ApiExplorer/ApiExplorer.d.ts +2 -1
  24. package/dist/{studio/src/components → components}/ApiExplorer/EndpointDetail.d.ts +2 -1
  25. package/dist/{studio/src/components → components}/ApiExplorer/TryItPanel.d.ts +2 -1
  26. package/dist/{studio/src/components → components}/AuthSimulationSelector.d.ts +2 -1
  27. package/dist/components/Branches/BranchesView.d.ts +2 -0
  28. package/dist/components/CronJobs/CronJobsView.d.ts +2 -0
  29. package/dist/components/JSEditor/JSEditor.d.ts +2 -0
  30. package/dist/{studio/src/components → components}/JSEditor/JSEditorSidebar.d.ts +2 -1
  31. package/dist/{studio/src/components → components}/JSEditor/JSMonacoEditor.d.ts +2 -1
  32. package/dist/components/LogsExplorer/LogsExplorer.d.ts +2 -0
  33. package/dist/{studio/src/components → components}/RLSEditor/PolicyEditor.d.ts +2 -1
  34. package/dist/{studio/src/components → components}/RLSEditor/RLSEditor.d.ts +2 -1
  35. package/dist/{studio/src/components → components}/SQLEditor/MonacoEditor.d.ts +2 -1
  36. package/dist/{studio/src/components → components}/SQLEditor/SQLEditor.d.ts +2 -1
  37. package/dist/{studio/src/components → components}/SQLEditor/SQLEditorSidebar.d.ts +2 -1
  38. package/dist/{studio/src/components → components}/SQLEditor/SchemaBrowser.d.ts +2 -1
  39. package/dist/{studio/src/components → components}/SchemaVisualizer/RelationEdge.d.ts +1 -1
  40. package/dist/components/SchemaVisualizer/SchemaVisualizer.d.ts +3 -0
  41. package/dist/{studio/src/components → components}/SchemaVisualizer/TableNode.d.ts +1 -1
  42. package/dist/components/StorageView/StorageView.d.ts +2 -0
  43. package/dist/{studio/src/components → components}/StudioHomePage.d.ts +1 -1
  44. package/dist/index.es.js +688 -746
  45. package/dist/index.es.js.map +1 -1
  46. package/dist/index.umd.js +10323 -9572
  47. package/dist/index.umd.js.map +1 -1
  48. package/package.json +22 -22
  49. package/src/components/ApiExplorer/TryItPanel.tsx +15 -18
  50. package/src/components/CronJobs/CronJobsView.tsx +1 -1
  51. package/src/components/JSEditor/JSEditor.tsx +9 -14
  52. package/src/components/LogsExplorer/LogsExplorer.tsx +6 -3
  53. package/src/components/RLSEditor/PolicyEditor.tsx +1 -1
  54. package/src/components/SQLEditor/SQLEditor.tsx +40 -30
  55. package/src/components/StorageView/StorageView.tsx +25 -14
  56. package/src/components/StudioHomePage.tsx +51 -15
  57. package/src/utils/parseSpec.test.ts +41 -20
  58. package/src/utils/pgColumnToProperty.ts +1 -1
  59. package/dist/ApiExplorer-CGHEF1uL.js +0 -1052
  60. package/dist/ApiExplorer-CGHEF1uL.js.map +0 -1
  61. package/dist/AuthSimulationSelector-DGoXkWSg.js +0 -105
  62. package/dist/AuthSimulationSelector-DGoXkWSg.js.map +0 -1
  63. package/dist/BranchesView-BiTEwIhd.js +0 -291
  64. package/dist/BranchesView-BiTEwIhd.js.map +0 -1
  65. package/dist/CronJobsView-3PM_qR8v.js +0 -472
  66. package/dist/CronJobsView-3PM_qR8v.js.map +0 -1
  67. package/dist/JSEditor-DfwRLBZg.js +0 -1297
  68. package/dist/JSEditor-DfwRLBZg.js.map +0 -1
  69. package/dist/LogsExplorer-_4sZadKn.js +0 -162
  70. package/dist/LogsExplorer-_4sZadKn.js.map +0 -1
  71. package/dist/MonacoEditor-CMYEjiRf.js +0 -161
  72. package/dist/MonacoEditor-CMYEjiRf.js.map +0 -1
  73. package/dist/RLSEditor-CHEExeSB.js +0 -1871
  74. package/dist/RLSEditor-CHEExeSB.js.map +0 -1
  75. package/dist/SQLEditor-CQXaI0iU.js +0 -1797
  76. package/dist/SQLEditor-CQXaI0iU.js.map +0 -1
  77. package/dist/SchemaVisualizer-BGpmzyXT.js +0 -1069
  78. package/dist/SchemaVisualizer-BGpmzyXT.js.map +0 -1
  79. package/dist/StorageView-B7AsN2qX.js +0 -869
  80. package/dist/StorageView-B7AsN2qX.js.map +0 -1
  81. package/dist/common/src/collections/CollectionRegistry.d.ts +0 -56
  82. package/dist/common/src/collections/default-collections.d.ts +0 -9
  83. package/dist/common/src/collections/index.d.ts +0 -2
  84. package/dist/common/src/data/buildRebaseData.d.ts +0 -14
  85. package/dist/common/src/data/query_builder.d.ts +0 -55
  86. package/dist/common/src/index.d.ts +0 -4
  87. package/dist/common/src/util/builders.d.ts +0 -57
  88. package/dist/common/src/util/callbacks.d.ts +0 -6
  89. package/dist/common/src/util/collections.d.ts +0 -11
  90. package/dist/common/src/util/common.d.ts +0 -2
  91. package/dist/common/src/util/conditions.d.ts +0 -26
  92. package/dist/common/src/util/entities.d.ts +0 -58
  93. package/dist/common/src/util/enums.d.ts +0 -3
  94. package/dist/common/src/util/index.d.ts +0 -16
  95. package/dist/common/src/util/navigation_from_path.d.ts +0 -34
  96. package/dist/common/src/util/navigation_utils.d.ts +0 -20
  97. package/dist/common/src/util/parent_references_from_path.d.ts +0 -6
  98. package/dist/common/src/util/paths.d.ts +0 -14
  99. package/dist/common/src/util/permissions.d.ts +0 -14
  100. package/dist/common/src/util/references.d.ts +0 -2
  101. package/dist/common/src/util/relations.d.ts +0 -22
  102. package/dist/common/src/util/resolutions.d.ts +0 -72
  103. package/dist/common/src/util/storage.d.ts +0 -24
  104. package/dist/core/src/components/AIIcon.d.ts +0 -16
  105. package/dist/core/src/components/BootstrapAdminBanner.d.ts +0 -4
  106. package/dist/core/src/components/ConfirmationDialog.d.ts +0 -9
  107. package/dist/core/src/components/Debug/UIReferenceView.d.ts +0 -1
  108. package/dist/core/src/components/Debug/UIStyleGuide.d.ts +0 -1
  109. package/dist/core/src/components/ErrorTooltip.d.ts +0 -2
  110. package/dist/core/src/components/ErrorView.d.ts +0 -21
  111. package/dist/core/src/components/LanguageToggle.d.ts +0 -1
  112. package/dist/core/src/components/LoginView/LoginView.d.ts +0 -109
  113. package/dist/core/src/components/LoginView/index.d.ts +0 -2
  114. package/dist/core/src/components/NotFoundPage.d.ts +0 -1
  115. package/dist/core/src/components/RebaseAuth.d.ts +0 -10
  116. package/dist/core/src/components/RebaseLogo.d.ts +0 -7
  117. package/dist/core/src/components/UnsavedChangesDialog.d.ts +0 -9
  118. package/dist/core/src/components/UserDisplay.d.ts +0 -7
  119. package/dist/core/src/components/UserSelectPopover.d.ts +0 -62
  120. package/dist/core/src/components/UserSettingsView.d.ts +0 -1
  121. package/dist/core/src/components/common/index.d.ts +0 -6
  122. package/dist/core/src/components/common/table_height.d.ts +0 -5
  123. package/dist/core/src/components/common/types.d.ts +0 -66
  124. package/dist/core/src/components/common/useColumnsIds.d.ts +0 -9
  125. package/dist/core/src/components/common/useDataTableController.d.ts +0 -45
  126. package/dist/core/src/components/common/useDebouncedData.d.ts +0 -9
  127. package/dist/core/src/components/common/useScrollRestoration.d.ts +0 -14
  128. package/dist/core/src/components/index.d.ts +0 -17
  129. package/dist/core/src/contexts/AdminModeController.d.ts +0 -4
  130. package/dist/core/src/contexts/AnalyticsContext.d.ts +0 -3
  131. package/dist/core/src/contexts/AuthControllerContext.d.ts +0 -3
  132. package/dist/core/src/contexts/CustomizationControllerContext.d.ts +0 -3
  133. package/dist/core/src/contexts/DataDriverContext.d.ts +0 -3
  134. package/dist/core/src/contexts/DatabaseAdminContext.d.ts +0 -3
  135. package/dist/core/src/contexts/DialogsProvider.d.ts +0 -4
  136. package/dist/core/src/contexts/EffectiveRoleController.d.ts +0 -4
  137. package/dist/core/src/contexts/InternalUserManagementContext.d.ts +0 -3
  138. package/dist/core/src/contexts/ModeController.d.ts +0 -4
  139. package/dist/core/src/contexts/RebaseClientInstanceContext.d.ts +0 -6
  140. package/dist/core/src/contexts/RebaseDataContext.d.ts +0 -3
  141. package/dist/core/src/contexts/SnackbarProvider.d.ts +0 -2
  142. package/dist/core/src/contexts/StorageSourceContext.d.ts +0 -3
  143. package/dist/core/src/contexts/UserConfigurationPersistenceContext.d.ts +0 -3
  144. package/dist/core/src/contexts/index.d.ts +0 -13
  145. package/dist/core/src/core/PluginLifecycleManager.d.ts +0 -17
  146. package/dist/core/src/core/PluginProviderStack.d.ts +0 -21
  147. package/dist/core/src/core/Rebase.d.ts +0 -14
  148. package/dist/core/src/core/RebaseProps.d.ts +0 -147
  149. package/dist/core/src/core/RebaseRouter.d.ts +0 -4
  150. package/dist/core/src/core/RebaseRoutes.d.ts +0 -17
  151. package/dist/core/src/core/index.d.ts +0 -4
  152. package/dist/core/src/hooks/ApiConfigContext.d.ts +0 -24
  153. package/dist/core/src/hooks/data/delete.d.ts +0 -31
  154. package/dist/core/src/hooks/data/save.d.ts +0 -34
  155. package/dist/core/src/hooks/data/useCollectionFetch.d.ts +0 -62
  156. package/dist/core/src/hooks/data/useData.d.ts +0 -13
  157. package/dist/core/src/hooks/data/useDataOrder.d.ts +0 -12
  158. package/dist/core/src/hooks/data/useEntityFetch.d.ts +0 -43
  159. package/dist/core/src/hooks/data/useRelationSelector.d.ts +0 -52
  160. package/dist/core/src/hooks/data/useUserSelector.d.ts +0 -31
  161. package/dist/core/src/hooks/index.d.ts +0 -37
  162. package/dist/core/src/hooks/useAdminModeController.d.ts +0 -19
  163. package/dist/core/src/hooks/useAnalyticsController.d.ts +0 -5
  164. package/dist/core/src/hooks/useAuthController.d.ts +0 -11
  165. package/dist/core/src/hooks/useAuthSubscription.d.ts +0 -2
  166. package/dist/core/src/hooks/useBackendStorageSource.d.ts +0 -30
  167. package/dist/core/src/hooks/useBridgeRegistration.d.ts +0 -18
  168. package/dist/core/src/hooks/useBrowserTitleAndIcon.d.ts +0 -6
  169. package/dist/core/src/hooks/useBuildAdminModeController.d.ts +0 -6
  170. package/dist/core/src/hooks/useBuildEffectiveRoleController.d.ts +0 -8
  171. package/dist/core/src/hooks/useBuildLocalConfigurationPersistence.d.ts +0 -2
  172. package/dist/core/src/hooks/useBuildModeController.d.ts +0 -6
  173. package/dist/core/src/hooks/useClipboard.d.ts +0 -57
  174. package/dist/core/src/hooks/useCollapsedGroups.d.ts +0 -27
  175. package/dist/core/src/hooks/useCustomizationController.d.ts +0 -11
  176. package/dist/core/src/hooks/useDialogsController.d.ts +0 -11
  177. package/dist/core/src/hooks/useEffectiveRoleController.d.ts +0 -7
  178. package/dist/core/src/hooks/useInternalUserManagementController.d.ts +0 -12
  179. package/dist/core/src/hooks/useLargeLayout.d.ts +0 -1
  180. package/dist/core/src/hooks/useModeController.d.ts +0 -19
  181. package/dist/core/src/hooks/usePermissions.d.ts +0 -12
  182. package/dist/core/src/hooks/useRebaseClient.d.ts +0 -5
  183. package/dist/core/src/hooks/useRebaseContext.d.ts +0 -11
  184. package/dist/core/src/hooks/useRebaseRegistry.d.ts +0 -34
  185. package/dist/core/src/hooks/useResolvedComponent.d.ts +0 -47
  186. package/dist/core/src/hooks/useSlot.d.ts +0 -18
  187. package/dist/core/src/hooks/useSnackbarController.d.ts +0 -20
  188. package/dist/core/src/hooks/useStorageSource.d.ts +0 -7
  189. package/dist/core/src/hooks/useStudioBridge.d.ts +0 -91
  190. package/dist/core/src/hooks/useTranslation.d.ts +0 -17
  191. package/dist/core/src/hooks/useUnsavedChangesDialog.d.ts +0 -12
  192. package/dist/core/src/hooks/useUserConfigurationPersistence.d.ts +0 -8
  193. package/dist/core/src/i18n/RebaseI18nProvider.d.ts +0 -33
  194. package/dist/core/src/index.d.ts +0 -15
  195. package/dist/core/src/internal/common.d.ts +0 -3
  196. package/dist/core/src/internal/useRestoreScroll.d.ts +0 -6
  197. package/dist/core/src/locales/de.d.ts +0 -2
  198. package/dist/core/src/locales/en.d.ts +0 -10
  199. package/dist/core/src/locales/es.d.ts +0 -10
  200. package/dist/core/src/locales/fr.d.ts +0 -2
  201. package/dist/core/src/locales/hi.d.ts +0 -2
  202. package/dist/core/src/locales/it.d.ts +0 -2
  203. package/dist/core/src/locales/pt.d.ts +0 -7
  204. package/dist/core/src/util/constants.d.ts +0 -1
  205. package/dist/core/src/util/createFormexStub.d.ts +0 -2
  206. package/dist/core/src/util/entity_cache.d.ts +0 -22
  207. package/dist/core/src/util/enums.d.ts +0 -5
  208. package/dist/core/src/util/icon_list.d.ts +0 -5
  209. package/dist/core/src/util/icons.d.ts +0 -20
  210. package/dist/core/src/util/index.d.ts +0 -8
  211. package/dist/core/src/util/previews.d.ts +0 -4
  212. package/dist/core/src/util/useStorageUploadController.d.ts +0 -38
  213. package/dist/formex/src/Field.d.ts +0 -52
  214. package/dist/formex/src/Formex.d.ts +0 -7
  215. package/dist/formex/src/index.d.ts +0 -5
  216. package/dist/formex/src/types.d.ts +0 -40
  217. package/dist/formex/src/useCreateFormex.d.ts +0 -14
  218. package/dist/formex/src/utils.d.ts +0 -16
  219. package/dist/studio/src/components/Branches/BranchesView.d.ts +0 -1
  220. package/dist/studio/src/components/CronJobs/CronJobsView.d.ts +0 -1
  221. package/dist/studio/src/components/JSEditor/JSEditor.d.ts +0 -1
  222. package/dist/studio/src/components/LogsExplorer/LogsExplorer.d.ts +0 -1
  223. package/dist/studio/src/components/SchemaVisualizer/SchemaVisualizer.d.ts +0 -2
  224. package/dist/studio/src/components/StorageView/StorageView.d.ts +0 -1
  225. package/dist/types/src/controllers/analytics_controller.d.ts +0 -7
  226. package/dist/types/src/controllers/auth.d.ts +0 -104
  227. package/dist/types/src/controllers/client.d.ts +0 -168
  228. package/dist/types/src/controllers/collection_registry.d.ts +0 -46
  229. package/dist/types/src/controllers/customization_controller.d.ts +0 -60
  230. package/dist/types/src/controllers/data.d.ts +0 -207
  231. package/dist/types/src/controllers/data_driver.d.ts +0 -218
  232. package/dist/types/src/controllers/database_admin.d.ts +0 -11
  233. package/dist/types/src/controllers/dialogs_controller.d.ts +0 -36
  234. package/dist/types/src/controllers/effective_role.d.ts +0 -4
  235. package/dist/types/src/controllers/email.d.ts +0 -36
  236. package/dist/types/src/controllers/index.d.ts +0 -18
  237. package/dist/types/src/controllers/local_config_persistence.d.ts +0 -20
  238. package/dist/types/src/controllers/navigation.d.ts +0 -225
  239. package/dist/types/src/controllers/registry.d.ts +0 -63
  240. package/dist/types/src/controllers/side_dialogs_controller.d.ts +0 -67
  241. package/dist/types/src/controllers/side_entity_controller.d.ts +0 -97
  242. package/dist/types/src/controllers/snackbar.d.ts +0 -24
  243. package/dist/types/src/controllers/storage.d.ts +0 -171
  244. package/dist/types/src/index.d.ts +0 -4
  245. package/dist/types/src/rebase_context.d.ts +0 -122
  246. package/dist/types/src/types/auth_adapter.d.ts +0 -301
  247. package/dist/types/src/types/backend.d.ts +0 -571
  248. package/dist/types/src/types/backend_hooks.d.ts +0 -172
  249. package/dist/types/src/types/builders.d.ts +0 -15
  250. package/dist/types/src/types/chips.d.ts +0 -5
  251. package/dist/types/src/types/collections.d.ts +0 -961
  252. package/dist/types/src/types/component_ref.d.ts +0 -47
  253. package/dist/types/src/types/cron.d.ts +0 -102
  254. package/dist/types/src/types/data_source.d.ts +0 -64
  255. package/dist/types/src/types/database_adapter.d.ts +0 -94
  256. package/dist/types/src/types/entities.d.ts +0 -145
  257. package/dist/types/src/types/entity_actions.d.ts +0 -104
  258. package/dist/types/src/types/entity_callbacks.d.ts +0 -173
  259. package/dist/types/src/types/entity_link_builder.d.ts +0 -7
  260. package/dist/types/src/types/entity_overrides.d.ts +0 -10
  261. package/dist/types/src/types/entity_views.d.ts +0 -87
  262. package/dist/types/src/types/export_import.d.ts +0 -21
  263. package/dist/types/src/types/formex.d.ts +0 -40
  264. package/dist/types/src/types/index.d.ts +0 -28
  265. package/dist/types/src/types/locales.d.ts +0 -4
  266. package/dist/types/src/types/modify_collections.d.ts +0 -5
  267. package/dist/types/src/types/plugins.d.ts +0 -282
  268. package/dist/types/src/types/properties.d.ts +0 -1173
  269. package/dist/types/src/types/property_config.d.ts +0 -74
  270. package/dist/types/src/types/relations.d.ts +0 -336
  271. package/dist/types/src/types/slots.d.ts +0 -262
  272. package/dist/types/src/types/translations.d.ts +0 -900
  273. package/dist/types/src/types/user_management_delegate.d.ts +0 -86
  274. package/dist/types/src/types/websockets.d.ts +0 -78
  275. package/dist/types/src/users/index.d.ts +0 -1
  276. package/dist/types/src/users/user.d.ts +0 -50
  277. package/dist/ui/src/components/Alert.d.ts +0 -12
  278. package/dist/ui/src/components/Autocomplete.d.ts +0 -21
  279. package/dist/ui/src/components/Avatar.d.ts +0 -11
  280. package/dist/ui/src/components/Badge.d.ts +0 -8
  281. package/dist/ui/src/components/BooleanSwitch.d.ts +0 -14
  282. package/dist/ui/src/components/BooleanSwitchWithLabel.d.ts +0 -17
  283. package/dist/ui/src/components/Button.d.ts +0 -14
  284. package/dist/ui/src/components/Card.d.ts +0 -8
  285. package/dist/ui/src/components/CenteredView.d.ts +0 -9
  286. package/dist/ui/src/components/Checkbox.d.ts +0 -13
  287. package/dist/ui/src/components/Chip.d.ts +0 -26
  288. package/dist/ui/src/components/CircularProgress.d.ts +0 -5
  289. package/dist/ui/src/components/CircularProgressCenter.d.ts +0 -11
  290. package/dist/ui/src/components/Collapse.d.ts +0 -9
  291. package/dist/ui/src/components/ColorPicker.d.ts +0 -30
  292. package/dist/ui/src/components/Container.d.ts +0 -8
  293. package/dist/ui/src/components/DateTimeField.d.ts +0 -24
  294. package/dist/ui/src/components/DebouncedTextField.d.ts +0 -2
  295. package/dist/ui/src/components/Dialog.d.ts +0 -39
  296. package/dist/ui/src/components/DialogActions.d.ts +0 -7
  297. package/dist/ui/src/components/DialogContent.d.ts +0 -7
  298. package/dist/ui/src/components/DialogTitle.d.ts +0 -10
  299. package/dist/ui/src/components/ErrorBoundary.d.ts +0 -33
  300. package/dist/ui/src/components/ExpandablePanel.d.ts +0 -12
  301. package/dist/ui/src/components/FileUpload.d.ts +0 -23
  302. package/dist/ui/src/components/FilterChip.d.ts +0 -34
  303. package/dist/ui/src/components/IconButton.d.ts +0 -12
  304. package/dist/ui/src/components/InfoLabel.d.ts +0 -5
  305. package/dist/ui/src/components/InputLabel.d.ts +0 -11
  306. package/dist/ui/src/components/Label.d.ts +0 -7
  307. package/dist/ui/src/components/LoadingButton.d.ts +0 -7
  308. package/dist/ui/src/components/Markdown.d.ts +0 -10
  309. package/dist/ui/src/components/Menu.d.ts +0 -23
  310. package/dist/ui/src/components/Menubar.d.ts +0 -80
  311. package/dist/ui/src/components/MultiSelect.d.ts +0 -48
  312. package/dist/ui/src/components/Paper.d.ts +0 -6
  313. package/dist/ui/src/components/Popover.d.ts +0 -24
  314. package/dist/ui/src/components/RadioGroup.d.ts +0 -28
  315. package/dist/ui/src/components/ResizablePanels.d.ts +0 -18
  316. package/dist/ui/src/components/SearchBar.d.ts +0 -26
  317. package/dist/ui/src/components/Select.d.ts +0 -43
  318. package/dist/ui/src/components/Separator.d.ts +0 -5
  319. package/dist/ui/src/components/Sheet.d.ts +0 -22
  320. package/dist/ui/src/components/Skeleton.d.ts +0 -6
  321. package/dist/ui/src/components/Slider.d.ts +0 -21
  322. package/dist/ui/src/components/Table.d.ts +0 -34
  323. package/dist/ui/src/components/Tabs.d.ts +0 -19
  324. package/dist/ui/src/components/TextField.d.ts +0 -58
  325. package/dist/ui/src/components/TextareaAutosize.d.ts +0 -43
  326. package/dist/ui/src/components/ToggleButtonGroup.d.ts +0 -30
  327. package/dist/ui/src/components/Tooltip.d.ts +0 -19
  328. package/dist/ui/src/components/Typography.d.ts +0 -36
  329. package/dist/ui/src/components/VirtualTable/VirtualTable.d.ts +0 -11
  330. package/dist/ui/src/components/VirtualTable/VirtualTableCell.d.ts +0 -21
  331. package/dist/ui/src/components/VirtualTable/VirtualTableHeader.d.ts +0 -29
  332. package/dist/ui/src/components/VirtualTable/VirtualTableHeaderRow.d.ts +0 -2
  333. package/dist/ui/src/components/VirtualTable/VirtualTableProps.d.ts +0 -249
  334. package/dist/ui/src/components/VirtualTable/VirtualTableRow.d.ts +0 -3
  335. package/dist/ui/src/components/VirtualTable/index.d.ts +0 -3
  336. package/dist/ui/src/components/VirtualTable/types.d.ts +0 -38
  337. package/dist/ui/src/components/common/SelectInputLabel.d.ts +0 -5
  338. package/dist/ui/src/components/index.d.ts +0 -58
  339. package/dist/ui/src/hooks/PortalContainerContext.d.ts +0 -31
  340. package/dist/ui/src/hooks/index.d.ts +0 -6
  341. package/dist/ui/src/hooks/useDebounceCallback.d.ts +0 -1
  342. package/dist/ui/src/hooks/useDebounceValue.d.ts +0 -1
  343. package/dist/ui/src/hooks/useDebouncedCallback.d.ts +0 -1
  344. package/dist/ui/src/hooks/useInjectStyles.d.ts +0 -7
  345. package/dist/ui/src/hooks/useOutsideAlerter.d.ts +0 -5
  346. package/dist/ui/src/icons/GitHubIcon.d.ts +0 -2
  347. package/dist/ui/src/icons/HandleIcon.d.ts +0 -1
  348. package/dist/ui/src/icons/Icon.d.ts +0 -20
  349. package/dist/ui/src/icons/cool_icon_keys.d.ts +0 -1
  350. package/dist/ui/src/icons/icon_keys.d.ts +0 -1
  351. package/dist/ui/src/icons/index.d.ts +0 -8
  352. package/dist/ui/src/index.d.ts +0 -5
  353. package/dist/ui/src/styles.d.ts +0 -12
  354. package/dist/ui/src/util/chip_colors.d.ts +0 -4
  355. package/dist/ui/src/util/cls.d.ts +0 -2
  356. package/dist/ui/src/util/debounce.d.ts +0 -10
  357. package/dist/ui/src/util/hash.d.ts +0 -1
  358. package/dist/ui/src/util/index.d.ts +0 -4
  359. package/dist/ui/src/util/key_to_icon_component.d.ts +0 -1
  360. /package/dist/{studio/src/components → components}/ApiExplorer/parseSpec.d.ts +0 -0
  361. /package/dist/{studio/src/components → components}/ApiExplorer/types.d.ts +0 -0
  362. /package/dist/{studio/src/components → components}/RLSEditor/index.d.ts +0 -0
  363. /package/dist/{studio/src/components → components}/RebaseStudio.d.ts +0 -0
  364. /package/dist/{studio/src/components → components}/SQLEditor/ExplainVisualizer.d.ts +0 -0
  365. /package/dist/{studio/src/components → components}/SchemaVisualizer/schema-visualizer.utils.d.ts +0 -0
  366. /package/dist/{studio/src/components → components}/SchemaVisualizer/useSchemaGraph.d.ts +0 -0
  367. /package/dist/{studio/src/index.d.ts → index.d.ts} +0 -0
  368. /package/dist/{studio/src/utils → utils}/pgColumnToProperty.d.ts +0 -0
  369. /package/dist/{studio/src/utils → utils}/sql_utils.d.ts +0 -0
@@ -1,86 +0,0 @@
1
- import type { 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 auth-specific user operations.
19
- *
20
- * This interface allows the CMS to be agnostic of the underlying
21
- * authentication provider or backend. User/role CRUD is now handled
22
- * by the collection system; this delegate only exposes auth-specific
23
- * operations (password hashing, invitations, bootstrap).
24
- *
25
- * @group Models
26
- */
27
- export interface UserManagementDelegate<USER extends User = User> {
28
- /**
29
- * Are auth-related operations currently loading?
30
- */
31
- loading: boolean;
32
- /**
33
- * In-memory list of users (used for client-side filtering fallback).
34
- */
35
- users?: USER[];
36
- /**
37
- * Error from fetching the users list, if any.
38
- */
39
- usersError?: Error;
40
- /**
41
- * Look up a single user by UID from the in-memory cache.
42
- */
43
- getUser?: (uid: string) => USER | null;
44
- /**
45
- * Server-side user search with pagination.
46
- */
47
- searchUsers?: (params: {
48
- search?: string;
49
- limit?: number;
50
- offset?: number;
51
- }) => Promise<{
52
- users: USER[];
53
- total: number;
54
- }>;
55
- /**
56
- * Create a new user with invitation/password generation support.
57
- * Returns additional info about how the credentials were delivered.
58
- */
59
- createUser?: (user: USER) => Promise<UserCreationResult<USER>>;
60
- /**
61
- * Reset the password for an existing user.
62
- * Returns a temporary password if no email service is configured,
63
- * or a flag indicating an email invitation was sent.
64
- */
65
- resetPassword?: (user: USER) => Promise<UserCreationResult<USER>>;
66
- /**
67
- * Is the currently logged in user an admin?
68
- */
69
- isAdmin?: boolean;
70
- /**
71
- * Optionally define roles for a given user. This is useful when the roles
72
- * are coming from a separate provider than the one issuing the tokens.
73
- */
74
- defineRolesFor?: (user: USER) => Promise<string[] | undefined> | string[] | undefined;
75
- /**
76
- * Whether any admin users exist. Used by the bootstrap banner to decide
77
- * whether to prompt. Populated via a lightweight check (e.g. `limit=1`
78
- * query) instead of loading all users.
79
- */
80
- hasAdminUsers?: boolean;
81
- /**
82
- * Optional function to bootstrap an admin user.
83
- * Often used when the database is empty.
84
- */
85
- bootstrapAdmin?: () => Promise<void>;
86
- }
@@ -1,78 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- export * from "./user";
@@ -1,50 +0,0 @@
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
- */
39
- roles?: string[];
40
- /**
41
- * The date and time when the user was created.
42
- */
43
- createdAt?: Date | string | null;
44
- /**
45
- * Additional metadata/custom claims associated with the user.
46
- * Accessible by the frontend, but only writable by the backend.
47
- */
48
- readonly metadata?: Record<string, any>;
49
- getIdToken?: (forceRefresh?: boolean) => Promise<string>;
50
- };
@@ -1,12 +0,0 @@
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>;
@@ -1,21 +0,0 @@
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>;
@@ -1,11 +0,0 @@
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>>;
@@ -1,8 +0,0 @@
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>>;
@@ -1,14 +0,0 @@
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>>;
@@ -1,17 +0,0 @@
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;
@@ -1,14 +0,0 @@
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<HTMLElement>;
13
- } & React.ComponentPropsWithoutRef<C>;
14
- export declare const Button: React.FC<ButtonProps<React.ElementType>>;
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- declare const Card: React.ForwardRefExoticComponent<{
3
- children: React.ReactNode;
4
- style?: React.CSSProperties;
5
- onClick?: (e?: React.MouseEvent) => void;
6
- className?: string;
7
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
8
- export { Card };
@@ -1,9 +0,0 @@
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>>;
@@ -1,13 +0,0 @@
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>;
@@ -1,26 +0,0 @@
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;
@@ -1,5 +0,0 @@
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;
@@ -1,11 +0,0 @@
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;
@@ -1,9 +0,0 @@
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 {};
@@ -1,30 +0,0 @@
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;
@@ -1,8 +0,0 @@
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>>;
@@ -1,24 +0,0 @@
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>;
@@ -1,2 +0,0 @@
1
- import { TextFieldProps } from "./index";
2
- export declare function DebouncedTextField<T extends string | number>(props: TextFieldProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -1,39 +0,0 @@
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 {};
@@ -1,7 +0,0 @@
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;
@@ -1,7 +0,0 @@
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;
@@ -1,10 +0,0 @@
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;
@@ -1,33 +0,0 @@
1
- import React, { ErrorInfo, PropsWithChildren } from "react";
2
- export interface ErrorBoundaryProps {
3
- /**
4
- * When true, renders a full-page centered error screen instead of the
5
- * compact inline error. Intended for wrapping top-level app roots or
6
- * major route sections.
7
- */
8
- fullPage?: boolean;
9
- /**
10
- * Optional callback invoked when the user clicks "Try again". If provided,
11
- * the boundary resets its error state and calls this handler. If omitted,
12
- * the "Try again" button resets the boundary state, re-mounting children.
13
- */
14
- onReset?: () => void;
15
- }
16
- interface ErrorBoundaryState {
17
- error: Error | null;
18
- showDetails: boolean;
19
- }
20
- export declare class ErrorBoundary extends React.Component<PropsWithChildren<ErrorBoundaryProps>, ErrorBoundaryState> {
21
- constructor(props: PropsWithChildren<ErrorBoundaryProps>);
22
- static getDerivedStateFromError(error: Error): {
23
- error: Error;
24
- };
25
- componentDidCatch(error: Error, _errorInfo: ErrorInfo): void;
26
- private handleReset;
27
- private handleReload;
28
- private toggleDetails;
29
- 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;
30
- private renderInline;
31
- private renderFullPage;
32
- }
33
- export {};
@@ -1,12 +0,0 @@
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;
@@ -1,23 +0,0 @@
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;