@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,11 +0,0 @@
1
- /**
2
- * @module database_admin
3
- *
4
- * Re-exports the capability-specific admin interfaces from `@rebasepro/types/backend`.
5
- * This file is kept for backwards compatibility — new code should import from
6
- * `@rebasepro/types` directly.
7
- *
8
- * @group Admin
9
- */
10
- export type { SQLAdmin, DocumentAdmin, SchemaAdmin, DatabaseAdmin, HealthCheckResult } from "../types/backend";
11
- export { isSQLAdmin, isDocumentAdmin, isSchemaAdmin } from "../types/backend";
@@ -1,36 +0,0 @@
1
- import React from "react";
2
- /**
3
- * Controller to open the side dialog
4
- * @group Hooks and utilities
5
- */
6
- export interface DialogsController {
7
- /**
8
- * Close the last dialog
9
- */
10
- close: () => void;
11
- /**
12
- * Open a dialog
13
- * @param props
14
- */
15
- open: <T extends object = object>(props: DialogControllerEntryProps<T>) => {
16
- closeDialog: () => void;
17
- };
18
- }
19
- /**
20
- * Props used to open a side dialog
21
- * @group Hooks and utilities
22
- */
23
- export interface DialogControllerEntryProps<T extends object = object> {
24
- key: string;
25
- /**
26
- * The component type that will be rendered
27
- */
28
- Component: React.ComponentType<{
29
- open: boolean;
30
- closeDialog: () => void;
31
- } & T>;
32
- /**
33
- * Props to pass to the dialog component
34
- */
35
- props?: T;
36
- }
@@ -1,4 +0,0 @@
1
- export interface EffectiveRoleController {
2
- effectiveRole: string | null;
3
- setEffectiveRole: (role: string | null) => void;
4
- }
@@ -1,36 +0,0 @@
1
- /**
2
- * Email service types — portable interface shared by RebaseClient and server-core.
3
- *
4
- * The concrete SMTP implementation lives in `@rebasepro/server-core/email`.
5
- * This file provides only the consumer-facing contract so that it can be
6
- * referenced from `RebaseClient` without dragging in nodemailer.
7
- */
8
- /**
9
- * Options for sending an email via the Rebase email service.
10
- */
11
- export interface EmailSendOptions {
12
- /** Recipient email address(es). */
13
- to: string | string[];
14
- /** Email subject line. */
15
- subject: string;
16
- /** HTML body content. */
17
- html: string;
18
- /** Optional plain-text fallback. */
19
- text?: string;
20
- /** Optional reply-to address. */
21
- replyTo?: string;
22
- }
23
- /**
24
- * Abstraction over an email delivery backend.
25
- *
26
- * Implementations may use SMTP, AWS SES, Resend, Postmark, or any other
27
- * provider — consumers only interact through this interface.
28
- */
29
- export interface EmailService {
30
- /** Send a single email. */
31
- send(options: EmailSendOptions): Promise<void>;
32
- /** Returns `true` when the service has valid credentials / is ready to send. */
33
- isConfigured(): boolean;
34
- /** Verify connection/credentials with the email provider. */
35
- verifyConnection?(): Promise<boolean>;
36
- }
@@ -1,18 +0,0 @@
1
- export * from "./collection_registry";
2
- export * from "./analytics_controller";
3
- export * from "./auth";
4
- export * from "./data";
5
- export * from "./database_admin";
6
- export * from "./data_driver";
7
- export * from "./local_config_persistence";
8
- export * from "./navigation";
9
- export * from "./effective_role";
10
- export * from "./storage";
11
- export * from "./email";
12
- export * from "./client";
13
- export * from "./customization_controller";
14
- export * from "./side_entity_controller";
15
- export * from "./side_dialogs_controller";
16
- export * from "./dialogs_controller";
17
- export * from "./snackbar";
18
- export * from "./registry";
@@ -1,20 +0,0 @@
1
- import type { EntityCollection } from "../types/collections";
2
- /**
3
- * @group Models
4
- */
5
- export type PartialEntityCollection<M extends Record<string, unknown> = Record<string, unknown>> = Partial<EntityCollection<M>>;
6
- /**
7
- * This interface is in charge of defining the controller that persists
8
- * modifications to a collection or collection, and retrieves them back from
9
- * a data source, such as local storage or Firestore.
10
- */
11
- export interface UserConfigurationPersistence {
12
- onCollectionModified: <M extends Record<string, unknown> = Record<string, unknown>>(path: string, partialCollection: PartialEntityCollection<M>) => void;
13
- getCollectionConfig: <M extends Record<string, unknown> = Record<string, unknown>>(path: string) => PartialEntityCollection<M>;
14
- recentlyVisitedPaths: string[];
15
- setRecentlyVisitedPaths: (paths: string[]) => void;
16
- favouritePaths: string[];
17
- setFavouritePaths: (paths: string[]) => void;
18
- collapsedGroups: string[];
19
- setCollapsedGroups: (paths: string[]) => void;
20
- }
@@ -1,225 +0,0 @@
1
- import React from "react";
2
- import type { EntityCollection } from "../types/collections";
3
- import type { RebasePlugin } from "../types/plugins";
4
- /**
5
- * Controller that handles URL path building and resolution.
6
- * @group Models
7
- */
8
- export type UrlController = {
9
- /**
10
- * Default path under the navigation routes of the CMS will be created.
11
- * Defaults to '/'. You may want to change this `basepath` to 'admin' for example.
12
- */
13
- basePath: string;
14
- /**
15
- * Default path under the collection routes of the CMS will be created.
16
- * It defaults to '/c'
17
- */
18
- baseCollectionPath: string;
19
- /**
20
- * Convert a URL path to a collection or entity path
21
- * `/c/products` => `products`
22
- * `/my_cms/c/products/B34SAP8Z` => `products/B34SAP8Z`
23
- * `/my_cms/my_view` => `my_view`
24
- * @param cmsPath
25
- */
26
- urlPathToDataPath: (cmsPath: string) => string;
27
- /**
28
- * Base url path for the home screen
29
- */
30
- homeUrl: string;
31
- /**
32
- * Check if a url path belongs to a collection
33
- * @param path
34
- */
35
- isUrlCollectionPath: (urlPath: string) => boolean;
36
- /**
37
- * Build a URL collection path from a data path
38
- * `products` => `/c/products`
39
- * `products/B34SAP8Z` => `/c/products/B34SAP8Z`
40
- * @param path
41
- */
42
- buildUrlCollectionPath: (path: string) => string;
43
- /**
44
- * Build a URL path for the CMS (e.g. for custom views)
45
- * @param path
46
- */
47
- buildAppUrlPath: (path: string) => string;
48
- /**
49
- * Turn a path with collection ids into a resolved path.
50
- * The ids (typically used in urls) will be replaced with relative paths (typically used in database paths)
51
- * @param path
52
- */
53
- resolveDatabasePathsFrom: (path: string) => string;
54
- /**
55
- * A function to navigate to a specified route or URL.
56
- *
57
- * @param {string} to - The target route or URL to navigate to.
58
- * @param {NavigateOptions} [options] - Optional configuration settings for navigation, such as replace behavior or state data.
59
- */
60
- navigate: (to: string, options?: NavigateOptions) => void;
61
- };
62
- /**
63
- * Controller that manages the state of the navigation menu,
64
- * including resolved views and top-level grouping.
65
- * @group Models
66
- */
67
- export type NavigationStateController = {
68
- /**
69
- * Custom additional views created by the developer, added to the main
70
- * navigation
71
- */
72
- views?: AppView[];
73
- /**
74
- * Custom additional views created by the developer, added to the admin
75
- * navigation
76
- */
77
- adminViews?: AppView[];
78
- /**
79
- * Configuration for the views that should be displayed at the top
80
- * level of the navigation (e.g. in the home page or the navigation
81
- * drawer)
82
- */
83
- topLevelNavigation?: NavigationResult;
84
- /**
85
- * Is the navigation loading (the configuration persistence has not
86
- * loaded yet, or a specified navigation builder has not completed)
87
- */
88
- loading: boolean;
89
- /**
90
- * Was there an error while loading the navigation data
91
- */
92
- navigationLoadingError?: unknown;
93
- /**
94
- * Call this method to recalculate the navigation
95
- */
96
- refreshNavigation: () => void;
97
- /**
98
- * Plugin system allowing to extend the CMS functionality.
99
- */
100
- plugins?: RebasePlugin[];
101
- };
102
- export interface NavigateOptions {
103
- replace?: boolean;
104
- state?: unknown;
105
- preventScrollReset?: boolean;
106
- relative?: "route" | "path";
107
- flushSync?: boolean;
108
- viewTransition?: boolean;
109
- }
110
- export type NavigationBlocker = {
111
- updateBlockListener: (path: string, block: boolean, basePath?: string) => () => void;
112
- isBlocked: (path: string) => boolean;
113
- proceed?: () => void;
114
- reset?: () => void;
115
- };
116
- /**
117
- * Custom additional views created by the developer, added to the main
118
- * navigation.
119
- * @group Models
120
- */
121
- export interface AppView {
122
- /**
123
- * CMS Path you can reach this view from.
124
- */
125
- slug: string;
126
- /**
127
- * Name of this view
128
- */
129
- name: string;
130
- /**
131
- * Optional description of this view. You can use Markdown
132
- */
133
- description?: string;
134
- /**
135
- * Icon key to use in this view.
136
- * You can use any of the icons in the Lucide specs:
137
- * https://lucide.dev/icons/
138
- * e.g. 'ShoppingCart' or 'User'
139
- * Find all the icons in https://rebase.pro/docs/icons
140
- */
141
- icon?: string | React.ReactNode;
142
- /**
143
- * Should this view be hidden from the main navigation panel.
144
- * It will still be accessible if you reach the specified path
145
- */
146
- hideFromNavigation?: boolean;
147
- /**
148
- * Navigation group for this view.
149
- * Views sharing the same group name will be visually grouped
150
- * together in the drawer and home page. If not set, the view
151
- * falls into the default "Views" group.
152
- */
153
- group?: string;
154
- /**
155
- * Component to be rendered. This can be any React component, and can use
156
- * any of the provided hooks
157
- */
158
- view: React.ReactNode;
159
- /**
160
- * If true, a wildcard route (slug/*) is automatically registered
161
- * alongside the base route, enabling nested navigation within this view.
162
- */
163
- nestedRoutes?: boolean;
164
- }
165
- /**
166
- * A composable section that can be rendered on the home page.
167
- * Use this to add custom content alongside the auto-generated
168
- * navigation groups.
169
- * @group Models
170
- */
171
- export interface HomePageSection {
172
- /**
173
- * Unique key for this section.
174
- */
175
- key: string;
176
- /**
177
- * Title displayed as the section header.
178
- */
179
- title: string;
180
- /**
181
- * Arbitrary React content rendered inside the section.
182
- */
183
- children: React.ReactNode;
184
- }
185
- /**
186
- * Used to group navigation entries in the main navigation.
187
- */
188
- export interface NavigationGroupMapping {
189
- /**
190
- * Name of the group, used to display the group header in the UI
191
- */
192
- name: string;
193
- /**
194
- * List of collection ids or view paths that belong to this group.
195
- */
196
- entries: string[];
197
- /**
198
- * Configure which groups start collapsed.
199
- * Set to `true` to collapse in both drawer and home page,
200
- * or use an object to control each independently.
201
- *
202
- * @defaultValue false (expanded)
203
- */
204
- collapsedByDefault?: boolean | {
205
- drawer?: boolean;
206
- home?: boolean;
207
- };
208
- }
209
- export interface NavigationEntry {
210
- id: string;
211
- url: string;
212
- name: string;
213
- slug: string;
214
- type: "collection" | "view" | "admin";
215
- collection?: EntityCollection;
216
- view?: AppView;
217
- description?: string;
218
- group: string;
219
- }
220
- export type NavigationResult = {
221
- allowDragAndDrop: boolean;
222
- navigationEntries: NavigationEntry[];
223
- groups: string[];
224
- onNavigationEntriesUpdate: (entries: NavigationGroupMapping[]) => void;
225
- };
@@ -1,63 +0,0 @@
1
- import { ReactNode } from "react";
2
- import type { EntityCollection } from "../types/collections";
3
- import type { EntityCollectionsBuilder } from "../types/builders";
4
- import type { EntityCustomView } from "../types/entity_views";
5
- import type { EntityAction } from "../types/entity_actions";
6
- import type { AppView, NavigationGroupMapping } from "./navigation";
7
- import type { RebasePlugin } from "../types/plugins";
8
- /**
9
- * Options to enable the built-in collection editor.
10
- * When provided to `<RebaseCMS>`, the editor is auto-wired as a native feature.
11
- */
12
- export interface CollectionEditorOptions {
13
- /**
14
- * Function that returns an auth token for schema-editor API calls.
15
- * Falls back to `authController.getAuthToken` when omitted.
16
- */
17
- getAuthToken?: () => Promise<string | null>;
18
- /** Mark the editor as read-only (disable mutations). */
19
- readOnly?: boolean;
20
- /** Suggested base paths shown when creating new collections. */
21
- pathSuggestions?: string[];
22
- }
23
- export interface RebaseCMSConfig<EC extends EntityCollection = EntityCollection> {
24
- collections?: EC[] | EntityCollectionsBuilder<EC>;
25
- homePage?: ReactNode;
26
- entityViews?: EntityCustomView[];
27
- entityActions?: EntityAction[];
28
- plugins?: RebasePlugin[];
29
- /**
30
- * Centralized configuration for how collections and views are grouped
31
- * in the navigation sidebar and home page.
32
- * Each mapping defines a named group and the collection/view slugs
33
- * that belong to it. The array order determines group display order.
34
- * Entry order within each group determines card order.
35
- */
36
- navigationGroupMappings?: NavigationGroupMapping[];
37
- /**
38
- * Enable the built-in visual collection/schema editor.
39
- * Pass `true` for zero-config, or an options object for fine-grained control.
40
- * When enabled, the editor slots, provider, and Studio schema view
41
- * are all auto-wired — no plugin or manual view injection needed.
42
- */
43
- collectionEditor?: boolean | CollectionEditorOptions;
44
- }
45
- export interface RebaseStudioConfig {
46
- tools?: ("sql" | "js" | "rls" | "schema" | "storage" | "cron" | "schema-visualizer" | "branches" | "api" | "logs")[];
47
- homePage?: ReactNode;
48
- devViews?: AppView[];
49
- }
50
- export interface RebaseAuthConfig {
51
- loginView?: ReactNode;
52
- }
53
- export interface RebaseRegistryController {
54
- cmsConfig: RebaseCMSConfig | null;
55
- studioConfig: RebaseStudioConfig | null;
56
- authConfig: RebaseAuthConfig | null;
57
- registerCMS: (config: RebaseCMSConfig) => void;
58
- unregisterCMS: () => void;
59
- registerStudio: (config: RebaseStudioConfig) => void;
60
- unregisterStudio: () => void;
61
- registerAuth: (config: RebaseAuthConfig) => void;
62
- unregisterAuth: () => void;
63
- }
@@ -1,67 +0,0 @@
1
- import React from "react";
2
- /**
3
- * Controller to open the side dialog
4
- * @group Hooks and utilities
5
- */
6
- export interface SideDialogsController {
7
- /**
8
- * Close the last panel
9
- */
10
- close: () => void;
11
- /**
12
- * List of side panels currently open
13
- */
14
- sidePanels: SideDialogPanelProps[];
15
- /**
16
- * Override the current side panels
17
- * @param panels
18
- */
19
- setSidePanels: (panels: SideDialogPanelProps[]) => void;
20
- /**
21
- * Open one or multiple side panels
22
- * @param props
23
- */
24
- open: (panelProps: SideDialogPanelProps | SideDialogPanelProps[]) => void;
25
- /**
26
- * Replace the last open panel with the given one
27
- * @param props
28
- */
29
- replace: (panelProps: SideDialogPanelProps | SideDialogPanelProps[]) => void;
30
- }
31
- /**
32
- * Props used to open a side dialog
33
- * @group Hooks and utilities
34
- */
35
- export interface SideDialogPanelProps {
36
- /**
37
- * A key that identifies this panel
38
- */
39
- key: string;
40
- /**
41
- * The component type that will be rendered
42
- */
43
- component: React.ReactNode;
44
- /**
45
- * Optional width of the panel
46
- */
47
- width?: string;
48
- /**
49
- * When open, change the URL to this path.
50
- * Note that if you want to restore state from a URL you need to add the
51
- * logic yourself by listening to URL updates, and probably call `open`.
52
- */
53
- urlPath?: string;
54
- /**
55
- * If the navigation stack is empty (you landed in the `urlPath` url), what
56
- * url path to change to when the panel gets closed.
57
- */
58
- parentUrlPath?: string;
59
- /**
60
- * Callback when the panel is closed
61
- */
62
- onClose?: () => void;
63
- /**
64
- * Use this prop to store additional data in the panel
65
- */
66
- additional?: unknown;
67
- }
@@ -1,97 +0,0 @@
1
- import type { Entity } from "../types/entities";
2
- import type { EntityCollection } from "../types/collections";
3
- /**
4
- * Props used to open a side dialog
5
- * @group Hooks and utilities
6
- */
7
- export interface EntitySidePanelProps<M extends Record<string, unknown> = Record<string, unknown>> {
8
- /**
9
- * Absolute path of the entity
10
- */
11
- path: string;
12
- /**
13
- * ID of the entity, if not set, it means we are creating a new entity
14
- */
15
- entityId?: string | number;
16
- /**
17
- * Set this flag to true if you want to make a copy of an existing entity
18
- */
19
- copy?: boolean;
20
- /**
21
- * Open the entity with a selected sub-collection view. If the panel for this
22
- * entity was already open, it is replaced.
23
- */
24
- selectedTab?: string;
25
- /**
26
- * Use this prop to override the width of the form view.
27
- * e.g. "600px"
28
- */
29
- width?: number | string;
30
- /**
31
- * Collection representing the entities of this view.
32
- * If you leave it blank it will be induced by your navigation
33
- */
34
- collection?: EntityCollection<M>;
35
- /**
36
- * Should update the URL when opening the dialog.
37
- * Consider that if the collection that you provide is not defined in the base
38
- * config of your `Rebase` component, you will not be able to recreate
39
- * the state if copying the URL to a different window.
40
- */
41
- updateUrl?: boolean;
42
- /**
43
- * Callback when the entity is updated
44
- * @param params
45
- */
46
- onUpdate?: (params: {
47
- entity: Entity<M>;
48
- }) => void;
49
- /**
50
- * Callback when the dialog is closed
51
- */
52
- onClose?: () => void;
53
- /**
54
- * Should this panel close when saving
55
- */
56
- closeOnSave?: boolean;
57
- /**
58
- * Override some form properties
59
- */
60
- formProps?: Record<string, unknown>;
61
- /**
62
- * Allow the user to open the entity fullscreen
63
- */
64
- allowFullScreen?: boolean;
65
- /**
66
- * Pre-populate the form with these values when creating a new entity.
67
- * Only applied when `entityId` is not set (i.e. the form is in "new" mode).
68
- * Useful for actions that fetch data from an external source (e.g. a URL)
69
- * and want to pre-fill the document before the user saves.
70
- */
71
- defaultValues?: Partial<M>;
72
- }
73
- /**
74
- * Controller to open the side dialog displaying entity forms
75
- * @group Hooks and utilities
76
- */
77
- export interface SideEntityController {
78
- /**
79
- * Close the last panel
80
- */
81
- close: () => void;
82
- /**
83
- * Open a new entity sideDialog. By default, the collection and configuration
84
- * of the view is fetched from the collections you have specified in the
85
- * navigation.
86
- * At least you need to pass the path of the entity you would like
87
- * to edit. You can set an entityId if you would like to edit and existing one
88
- * (or a new one with that id).
89
- * @param props
90
- */
91
- open: <M extends Record<string, unknown> = Record<string, unknown>>(props: EntitySidePanelProps<M>) => void;
92
- /**
93
- * Replace the last open entity panel with the given one.
94
- * @param props
95
- */
96
- replace: <M extends Record<string, unknown> = Record<string, unknown>>(props: EntitySidePanelProps<M>) => void;
97
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * Possible snackbar types
3
- * @group Hooks and utilities
4
- */
5
- export type SnackbarMessageType = "success" | "info" | "warning" | "error";
6
- /**
7
- * Controller to display snackbars
8
- * @group Hooks and utilities
9
- */
10
- export interface SnackbarController {
11
- /**
12
- * Close the currently open snackbar
13
- */
14
- close: () => void;
15
- /**
16
- * Display a new snackbar. You need to specify the type and message.
17
- * You can optionally specify a title
18
- */
19
- open: (props: {
20
- type: SnackbarMessageType;
21
- message: React.ReactNode;
22
- autoHideDuration?: number;
23
- }) => void;
24
- }