@rebasepro/studio 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (378) hide show
  1. package/README.md +73 -140
  2. package/dist/ApiExplorer-CdIwR9Ga.js +963 -0
  3. package/dist/ApiExplorer-CdIwR9Ga.js.map +1 -0
  4. package/dist/AuthSimulationSelector-iEZ-Or_1.js +56 -0
  5. package/dist/AuthSimulationSelector-iEZ-Or_1.js.map +1 -0
  6. package/dist/BranchesView-DncIRcZt.js +461 -0
  7. package/dist/BranchesView-DncIRcZt.js.map +1 -0
  8. package/dist/CronJobsView-4gdtJvoe.js +500 -0
  9. package/dist/CronJobsView-4gdtJvoe.js.map +1 -0
  10. package/dist/JSEditor-BhAbEjCP.js +1573 -0
  11. package/dist/JSEditor-BhAbEjCP.js.map +1 -0
  12. package/dist/LogsExplorer-CqtKILj8.js +240 -0
  13. package/dist/LogsExplorer-CqtKILj8.js.map +1 -0
  14. package/dist/MonacoEditor-COZqrIJ1.js +246 -0
  15. package/dist/MonacoEditor-COZqrIJ1.js.map +1 -0
  16. package/dist/RLSEditor-CTxYbBdW.js +1362 -0
  17. package/dist/RLSEditor-CTxYbBdW.js.map +1 -0
  18. package/dist/SQLEditor-BLuq_zDM.js +1964 -0
  19. package/dist/SQLEditor-BLuq_zDM.js.map +1 -0
  20. package/dist/SchemaVisualizer-BJK2u3C0.js +1068 -0
  21. package/dist/SchemaVisualizer-BJK2u3C0.js.map +1 -0
  22. package/dist/StorageView-nDaC2foF.js +1382 -0
  23. package/dist/StorageView-nDaC2foF.js.map +1 -0
  24. package/dist/{studio/src/components → components}/ApiExplorer/ApiExplorer.d.ts +2 -1
  25. package/dist/{studio/src/components → components}/ApiExplorer/EndpointDetail.d.ts +2 -1
  26. package/dist/{studio/src/components → components}/ApiExplorer/TryItPanel.d.ts +2 -1
  27. package/dist/{studio/src/components → components}/AuthSimulationSelector.d.ts +2 -1
  28. package/dist/components/Branches/BranchesView.d.ts +2 -0
  29. package/dist/components/CronJobs/CronJobsView.d.ts +2 -0
  30. package/dist/components/JSEditor/JSEditor.d.ts +2 -0
  31. package/dist/{studio/src/components → components}/JSEditor/JSEditorSidebar.d.ts +2 -1
  32. package/dist/{studio/src/components → components}/JSEditor/JSMonacoEditor.d.ts +2 -1
  33. package/dist/components/LogsExplorer/LogsExplorer.d.ts +2 -0
  34. package/dist/{studio/src/components → components}/RLSEditor/PolicyEditor.d.ts +2 -1
  35. package/dist/{studio/src/components → components}/RLSEditor/RLSEditor.d.ts +2 -7
  36. package/dist/{studio/src/components → components}/SQLEditor/MonacoEditor.d.ts +2 -1
  37. package/dist/{studio/src/components → components}/SQLEditor/SQLEditor.d.ts +2 -1
  38. package/dist/{studio/src/components → components}/SQLEditor/SQLEditorSidebar.d.ts +2 -1
  39. package/dist/{studio/src/components → components}/SQLEditor/SchemaBrowser.d.ts +2 -1
  40. package/dist/{studio/src/components → components}/SchemaVisualizer/RelationEdge.d.ts +1 -1
  41. package/dist/components/SchemaVisualizer/SchemaVisualizer.d.ts +3 -0
  42. package/dist/{studio/src/components → components}/SchemaVisualizer/TableNode.d.ts +1 -1
  43. package/dist/{studio/src/components → components}/SchemaVisualizer/schema-visualizer.utils.d.ts +0 -8
  44. package/dist/components/StorageView/StorageView.d.ts +2 -0
  45. package/dist/{studio/src/components → components}/StudioHomePage.d.ts +1 -1
  46. package/dist/index.es.js +688 -746
  47. package/dist/index.es.js.map +1 -1
  48. package/dist/index.umd.js +10303 -9572
  49. package/dist/index.umd.js.map +1 -1
  50. package/dist/{studio/src/utils → utils}/pgColumnToProperty.d.ts +1 -1
  51. package/package.json +22 -22
  52. package/src/components/ApiExplorer/TryItPanel.tsx +15 -18
  53. package/src/components/CronJobs/CronJobsView.tsx +1 -1
  54. package/src/components/JSEditor/JSEditor.tsx +10 -15
  55. package/src/components/LogsExplorer/LogsExplorer.tsx +6 -3
  56. package/src/components/RLSEditor/PolicyEditor.tsx +0 -1
  57. package/src/components/RLSEditor/RLSEditor.tsx +1 -1
  58. package/src/components/SQLEditor/SQLEditor.tsx +40 -30
  59. package/src/components/SchemaVisualizer/schema-visualizer.utils.ts +3 -3
  60. package/src/components/SchemaVisualizer/useSchemaGraph.ts +2 -2
  61. package/src/components/StorageView/StorageView.tsx +22 -11
  62. package/src/components/StudioHomePage.tsx +51 -15
  63. package/src/utils/parseSpec.test.ts +41 -20
  64. package/src/utils/pgColumnToProperty.ts +23 -20
  65. package/src/utils/sql_utils.ts +1 -1
  66. package/dist/ApiExplorer-CGHEF1uL.js +0 -1052
  67. package/dist/ApiExplorer-CGHEF1uL.js.map +0 -1
  68. package/dist/AuthSimulationSelector-DGoXkWSg.js +0 -105
  69. package/dist/AuthSimulationSelector-DGoXkWSg.js.map +0 -1
  70. package/dist/BranchesView-BiTEwIhd.js +0 -291
  71. package/dist/BranchesView-BiTEwIhd.js.map +0 -1
  72. package/dist/CronJobsView-3PM_qR8v.js +0 -472
  73. package/dist/CronJobsView-3PM_qR8v.js.map +0 -1
  74. package/dist/JSEditor-BCSoElPg.js +0 -1297
  75. package/dist/JSEditor-BCSoElPg.js.map +0 -1
  76. package/dist/LogsExplorer-_4sZadKn.js +0 -162
  77. package/dist/LogsExplorer-_4sZadKn.js.map +0 -1
  78. package/dist/MonacoEditor-CMYEjiRf.js +0 -161
  79. package/dist/MonacoEditor-CMYEjiRf.js.map +0 -1
  80. package/dist/RLSEditor-CHEExeSB.js +0 -1871
  81. package/dist/RLSEditor-CHEExeSB.js.map +0 -1
  82. package/dist/SQLEditor-BC0IOUQu.js +0 -1797
  83. package/dist/SQLEditor-BC0IOUQu.js.map +0 -1
  84. package/dist/SchemaVisualizer-BGpmzyXT.js +0 -1069
  85. package/dist/SchemaVisualizer-BGpmzyXT.js.map +0 -1
  86. package/dist/StorageView-B7AsN2qX.js +0 -869
  87. package/dist/StorageView-B7AsN2qX.js.map +0 -1
  88. package/dist/common/src/collections/CollectionRegistry.d.ts +0 -56
  89. package/dist/common/src/collections/default-collections.d.ts +0 -9
  90. package/dist/common/src/collections/index.d.ts +0 -2
  91. package/dist/common/src/data/buildRebaseData.d.ts +0 -14
  92. package/dist/common/src/data/query_builder.d.ts +0 -55
  93. package/dist/common/src/index.d.ts +0 -4
  94. package/dist/common/src/util/builders.d.ts +0 -57
  95. package/dist/common/src/util/callbacks.d.ts +0 -6
  96. package/dist/common/src/util/collections.d.ts +0 -11
  97. package/dist/common/src/util/common.d.ts +0 -2
  98. package/dist/common/src/util/conditions.d.ts +0 -26
  99. package/dist/common/src/util/entities.d.ts +0 -58
  100. package/dist/common/src/util/enums.d.ts +0 -3
  101. package/dist/common/src/util/index.d.ts +0 -16
  102. package/dist/common/src/util/navigation_from_path.d.ts +0 -34
  103. package/dist/common/src/util/navigation_utils.d.ts +0 -20
  104. package/dist/common/src/util/parent_references_from_path.d.ts +0 -6
  105. package/dist/common/src/util/paths.d.ts +0 -14
  106. package/dist/common/src/util/permissions.d.ts +0 -6
  107. package/dist/common/src/util/references.d.ts +0 -2
  108. package/dist/common/src/util/relations.d.ts +0 -22
  109. package/dist/common/src/util/resolutions.d.ts +0 -72
  110. package/dist/common/src/util/storage.d.ts +0 -24
  111. package/dist/core/src/components/AIIcon.d.ts +0 -16
  112. package/dist/core/src/components/BootstrapAdminBanner.d.ts +0 -4
  113. package/dist/core/src/components/ConfirmationDialog.d.ts +0 -9
  114. package/dist/core/src/components/Debug/UIReferenceView.d.ts +0 -1
  115. package/dist/core/src/components/Debug/UIStyleGuide.d.ts +0 -1
  116. package/dist/core/src/components/ErrorTooltip.d.ts +0 -2
  117. package/dist/core/src/components/ErrorView.d.ts +0 -21
  118. package/dist/core/src/components/LanguageToggle.d.ts +0 -1
  119. package/dist/core/src/components/LoginView/LoginView.d.ts +0 -109
  120. package/dist/core/src/components/LoginView/index.d.ts +0 -2
  121. package/dist/core/src/components/NotFoundPage.d.ts +0 -1
  122. package/dist/core/src/components/RebaseAuth.d.ts +0 -10
  123. package/dist/core/src/components/RebaseLogo.d.ts +0 -7
  124. package/dist/core/src/components/UnsavedChangesDialog.d.ts +0 -9
  125. package/dist/core/src/components/UserDisplay.d.ts +0 -7
  126. package/dist/core/src/components/UserSelectPopover.d.ts +0 -62
  127. package/dist/core/src/components/UserSettingsView.d.ts +0 -1
  128. package/dist/core/src/components/common/index.d.ts +0 -6
  129. package/dist/core/src/components/common/table_height.d.ts +0 -5
  130. package/dist/core/src/components/common/types.d.ts +0 -66
  131. package/dist/core/src/components/common/useColumnsIds.d.ts +0 -9
  132. package/dist/core/src/components/common/useDataTableController.d.ts +0 -45
  133. package/dist/core/src/components/common/useDebouncedData.d.ts +0 -9
  134. package/dist/core/src/components/common/useScrollRestoration.d.ts +0 -14
  135. package/dist/core/src/components/index.d.ts +0 -17
  136. package/dist/core/src/contexts/AdminModeController.d.ts +0 -4
  137. package/dist/core/src/contexts/AnalyticsContext.d.ts +0 -3
  138. package/dist/core/src/contexts/AuthControllerContext.d.ts +0 -3
  139. package/dist/core/src/contexts/CustomizationControllerContext.d.ts +0 -3
  140. package/dist/core/src/contexts/DataDriverContext.d.ts +0 -3
  141. package/dist/core/src/contexts/DatabaseAdminContext.d.ts +0 -3
  142. package/dist/core/src/contexts/DialogsProvider.d.ts +0 -4
  143. package/dist/core/src/contexts/EffectiveRoleController.d.ts +0 -4
  144. package/dist/core/src/contexts/InternalUserManagementContext.d.ts +0 -3
  145. package/dist/core/src/contexts/ModeController.d.ts +0 -4
  146. package/dist/core/src/contexts/RebaseClientInstanceContext.d.ts +0 -6
  147. package/dist/core/src/contexts/RebaseDataContext.d.ts +0 -3
  148. package/dist/core/src/contexts/SnackbarProvider.d.ts +0 -2
  149. package/dist/core/src/contexts/StorageSourceContext.d.ts +0 -3
  150. package/dist/core/src/contexts/UserConfigurationPersistenceContext.d.ts +0 -3
  151. package/dist/core/src/contexts/index.d.ts +0 -13
  152. package/dist/core/src/core/PluginLifecycleManager.d.ts +0 -17
  153. package/dist/core/src/core/PluginProviderStack.d.ts +0 -21
  154. package/dist/core/src/core/Rebase.d.ts +0 -14
  155. package/dist/core/src/core/RebaseProps.d.ts +0 -147
  156. package/dist/core/src/core/RebaseRouter.d.ts +0 -4
  157. package/dist/core/src/core/RebaseRoutes.d.ts +0 -17
  158. package/dist/core/src/core/index.d.ts +0 -4
  159. package/dist/core/src/hooks/ApiConfigContext.d.ts +0 -24
  160. package/dist/core/src/hooks/data/delete.d.ts +0 -31
  161. package/dist/core/src/hooks/data/save.d.ts +0 -34
  162. package/dist/core/src/hooks/data/useCollectionFetch.d.ts +0 -62
  163. package/dist/core/src/hooks/data/useData.d.ts +0 -13
  164. package/dist/core/src/hooks/data/useDataOrder.d.ts +0 -12
  165. package/dist/core/src/hooks/data/useEntityFetch.d.ts +0 -43
  166. package/dist/core/src/hooks/data/useRelationSelector.d.ts +0 -52
  167. package/dist/core/src/hooks/data/useUserSelector.d.ts +0 -31
  168. package/dist/core/src/hooks/index.d.ts +0 -37
  169. package/dist/core/src/hooks/useAdminModeController.d.ts +0 -19
  170. package/dist/core/src/hooks/useAnalyticsController.d.ts +0 -5
  171. package/dist/core/src/hooks/useAuthController.d.ts +0 -11
  172. package/dist/core/src/hooks/useAuthSubscription.d.ts +0 -2
  173. package/dist/core/src/hooks/useBackendStorageSource.d.ts +0 -30
  174. package/dist/core/src/hooks/useBridgeRegistration.d.ts +0 -18
  175. package/dist/core/src/hooks/useBrowserTitleAndIcon.d.ts +0 -6
  176. package/dist/core/src/hooks/useBuildAdminModeController.d.ts +0 -6
  177. package/dist/core/src/hooks/useBuildEffectiveRoleController.d.ts +0 -8
  178. package/dist/core/src/hooks/useBuildLocalConfigurationPersistence.d.ts +0 -2
  179. package/dist/core/src/hooks/useBuildModeController.d.ts +0 -6
  180. package/dist/core/src/hooks/useClipboard.d.ts +0 -57
  181. package/dist/core/src/hooks/useCollapsedGroups.d.ts +0 -27
  182. package/dist/core/src/hooks/useCustomizationController.d.ts +0 -11
  183. package/dist/core/src/hooks/useDialogsController.d.ts +0 -11
  184. package/dist/core/src/hooks/useEffectiveRoleController.d.ts +0 -7
  185. package/dist/core/src/hooks/useInternalUserManagementController.d.ts +0 -12
  186. package/dist/core/src/hooks/useLargeLayout.d.ts +0 -1
  187. package/dist/core/src/hooks/useModeController.d.ts +0 -19
  188. package/dist/core/src/hooks/usePermissions.d.ts +0 -12
  189. package/dist/core/src/hooks/useRebaseClient.d.ts +0 -5
  190. package/dist/core/src/hooks/useRebaseContext.d.ts +0 -11
  191. package/dist/core/src/hooks/useRebaseRegistry.d.ts +0 -34
  192. package/dist/core/src/hooks/useResolvedComponent.d.ts +0 -47
  193. package/dist/core/src/hooks/useSlot.d.ts +0 -18
  194. package/dist/core/src/hooks/useSnackbarController.d.ts +0 -20
  195. package/dist/core/src/hooks/useStorageSource.d.ts +0 -7
  196. package/dist/core/src/hooks/useStudioBridge.d.ts +0 -91
  197. package/dist/core/src/hooks/useTranslation.d.ts +0 -17
  198. package/dist/core/src/hooks/useUnsavedChangesDialog.d.ts +0 -12
  199. package/dist/core/src/hooks/useUserConfigurationPersistence.d.ts +0 -8
  200. package/dist/core/src/i18n/RebaseI18nProvider.d.ts +0 -33
  201. package/dist/core/src/index.d.ts +0 -15
  202. package/dist/core/src/internal/common.d.ts +0 -3
  203. package/dist/core/src/internal/useRestoreScroll.d.ts +0 -6
  204. package/dist/core/src/locales/de.d.ts +0 -2
  205. package/dist/core/src/locales/en.d.ts +0 -10
  206. package/dist/core/src/locales/es.d.ts +0 -10
  207. package/dist/core/src/locales/fr.d.ts +0 -2
  208. package/dist/core/src/locales/hi.d.ts +0 -2
  209. package/dist/core/src/locales/it.d.ts +0 -2
  210. package/dist/core/src/locales/pt.d.ts +0 -7
  211. package/dist/core/src/util/constants.d.ts +0 -1
  212. package/dist/core/src/util/createFormexStub.d.ts +0 -2
  213. package/dist/core/src/util/entity_cache.d.ts +0 -22
  214. package/dist/core/src/util/enums.d.ts +0 -5
  215. package/dist/core/src/util/icon_list.d.ts +0 -5
  216. package/dist/core/src/util/icons.d.ts +0 -20
  217. package/dist/core/src/util/index.d.ts +0 -8
  218. package/dist/core/src/util/previews.d.ts +0 -4
  219. package/dist/core/src/util/useStorageUploadController.d.ts +0 -38
  220. package/dist/formex/src/Field.d.ts +0 -52
  221. package/dist/formex/src/Formex.d.ts +0 -7
  222. package/dist/formex/src/index.d.ts +0 -5
  223. package/dist/formex/src/types.d.ts +0 -40
  224. package/dist/formex/src/useCreateFormex.d.ts +0 -14
  225. package/dist/formex/src/utils.d.ts +0 -16
  226. package/dist/studio/src/components/Branches/BranchesView.d.ts +0 -1
  227. package/dist/studio/src/components/CronJobs/CronJobsView.d.ts +0 -1
  228. package/dist/studio/src/components/JSEditor/JSEditor.d.ts +0 -1
  229. package/dist/studio/src/components/LogsExplorer/LogsExplorer.d.ts +0 -1
  230. package/dist/studio/src/components/SchemaVisualizer/SchemaVisualizer.d.ts +0 -2
  231. package/dist/studio/src/components/SchemaVisualizer/index.d.ts +0 -5
  232. package/dist/studio/src/components/StorageView/StorageView.d.ts +0 -1
  233. package/dist/studio/src/utils/entities.d.ts +0 -0
  234. package/dist/types/src/controllers/analytics_controller.d.ts +0 -7
  235. package/dist/types/src/controllers/auth.d.ts +0 -104
  236. package/dist/types/src/controllers/client.d.ts +0 -168
  237. package/dist/types/src/controllers/collection_registry.d.ts +0 -46
  238. package/dist/types/src/controllers/customization_controller.d.ts +0 -60
  239. package/dist/types/src/controllers/data.d.ts +0 -207
  240. package/dist/types/src/controllers/data_driver.d.ts +0 -218
  241. package/dist/types/src/controllers/database_admin.d.ts +0 -11
  242. package/dist/types/src/controllers/dialogs_controller.d.ts +0 -36
  243. package/dist/types/src/controllers/effective_role.d.ts +0 -4
  244. package/dist/types/src/controllers/email.d.ts +0 -36
  245. package/dist/types/src/controllers/index.d.ts +0 -18
  246. package/dist/types/src/controllers/local_config_persistence.d.ts +0 -20
  247. package/dist/types/src/controllers/navigation.d.ts +0 -225
  248. package/dist/types/src/controllers/registry.d.ts +0 -63
  249. package/dist/types/src/controllers/side_dialogs_controller.d.ts +0 -67
  250. package/dist/types/src/controllers/side_entity_controller.d.ts +0 -97
  251. package/dist/types/src/controllers/snackbar.d.ts +0 -24
  252. package/dist/types/src/controllers/storage.d.ts +0 -171
  253. package/dist/types/src/index.d.ts +0 -4
  254. package/dist/types/src/rebase_context.d.ts +0 -122
  255. package/dist/types/src/types/auth_adapter.d.ts +0 -301
  256. package/dist/types/src/types/backend.d.ts +0 -536
  257. package/dist/types/src/types/backend_hooks.d.ts +0 -172
  258. package/dist/types/src/types/builders.d.ts +0 -15
  259. package/dist/types/src/types/chips.d.ts +0 -5
  260. package/dist/types/src/types/collections.d.ts +0 -941
  261. package/dist/types/src/types/component_ref.d.ts +0 -47
  262. package/dist/types/src/types/cron.d.ts +0 -102
  263. package/dist/types/src/types/data_source.d.ts +0 -64
  264. package/dist/types/src/types/database_adapter.d.ts +0 -94
  265. package/dist/types/src/types/entities.d.ts +0 -145
  266. package/dist/types/src/types/entity_actions.d.ts +0 -104
  267. package/dist/types/src/types/entity_callbacks.d.ts +0 -173
  268. package/dist/types/src/types/entity_link_builder.d.ts +0 -7
  269. package/dist/types/src/types/entity_overrides.d.ts +0 -10
  270. package/dist/types/src/types/entity_views.d.ts +0 -87
  271. package/dist/types/src/types/export_import.d.ts +0 -21
  272. package/dist/types/src/types/formex.d.ts +0 -40
  273. package/dist/types/src/types/index.d.ts +0 -28
  274. package/dist/types/src/types/locales.d.ts +0 -4
  275. package/dist/types/src/types/modify_collections.d.ts +0 -5
  276. package/dist/types/src/types/plugins.d.ts +0 -282
  277. package/dist/types/src/types/properties.d.ts +0 -1181
  278. package/dist/types/src/types/property_config.d.ts +0 -74
  279. package/dist/types/src/types/relations.d.ts +0 -336
  280. package/dist/types/src/types/slots.d.ts +0 -262
  281. package/dist/types/src/types/translations.d.ts +0 -900
  282. package/dist/types/src/types/user_management_delegate.d.ts +0 -86
  283. package/dist/types/src/types/websockets.d.ts +0 -78
  284. package/dist/types/src/users/index.d.ts +0 -1
  285. package/dist/types/src/users/user.d.ts +0 -50
  286. package/dist/ui/src/components/Alert.d.ts +0 -12
  287. package/dist/ui/src/components/Autocomplete.d.ts +0 -21
  288. package/dist/ui/src/components/Avatar.d.ts +0 -11
  289. package/dist/ui/src/components/Badge.d.ts +0 -8
  290. package/dist/ui/src/components/BooleanSwitch.d.ts +0 -14
  291. package/dist/ui/src/components/BooleanSwitchWithLabel.d.ts +0 -17
  292. package/dist/ui/src/components/Button.d.ts +0 -14
  293. package/dist/ui/src/components/Card.d.ts +0 -8
  294. package/dist/ui/src/components/CenteredView.d.ts +0 -9
  295. package/dist/ui/src/components/Checkbox.d.ts +0 -13
  296. package/dist/ui/src/components/Chip.d.ts +0 -26
  297. package/dist/ui/src/components/CircularProgress.d.ts +0 -5
  298. package/dist/ui/src/components/CircularProgressCenter.d.ts +0 -11
  299. package/dist/ui/src/components/Collapse.d.ts +0 -9
  300. package/dist/ui/src/components/ColorPicker.d.ts +0 -30
  301. package/dist/ui/src/components/Container.d.ts +0 -8
  302. package/dist/ui/src/components/DateTimeField.d.ts +0 -24
  303. package/dist/ui/src/components/DebouncedTextField.d.ts +0 -2
  304. package/dist/ui/src/components/Dialog.d.ts +0 -39
  305. package/dist/ui/src/components/DialogActions.d.ts +0 -7
  306. package/dist/ui/src/components/DialogContent.d.ts +0 -7
  307. package/dist/ui/src/components/DialogTitle.d.ts +0 -10
  308. package/dist/ui/src/components/ErrorBoundary.d.ts +0 -33
  309. package/dist/ui/src/components/ExpandablePanel.d.ts +0 -12
  310. package/dist/ui/src/components/FileUpload.d.ts +0 -23
  311. package/dist/ui/src/components/FilterChip.d.ts +0 -34
  312. package/dist/ui/src/components/IconButton.d.ts +0 -12
  313. package/dist/ui/src/components/InfoLabel.d.ts +0 -5
  314. package/dist/ui/src/components/InputLabel.d.ts +0 -11
  315. package/dist/ui/src/components/Label.d.ts +0 -7
  316. package/dist/ui/src/components/LoadingButton.d.ts +0 -7
  317. package/dist/ui/src/components/Markdown.d.ts +0 -10
  318. package/dist/ui/src/components/Menu.d.ts +0 -23
  319. package/dist/ui/src/components/Menubar.d.ts +0 -80
  320. package/dist/ui/src/components/MultiSelect.d.ts +0 -48
  321. package/dist/ui/src/components/Paper.d.ts +0 -6
  322. package/dist/ui/src/components/Popover.d.ts +0 -24
  323. package/dist/ui/src/components/RadioGroup.d.ts +0 -28
  324. package/dist/ui/src/components/ResizablePanels.d.ts +0 -18
  325. package/dist/ui/src/components/SearchBar.d.ts +0 -26
  326. package/dist/ui/src/components/Select.d.ts +0 -43
  327. package/dist/ui/src/components/Separator.d.ts +0 -5
  328. package/dist/ui/src/components/Sheet.d.ts +0 -22
  329. package/dist/ui/src/components/Skeleton.d.ts +0 -6
  330. package/dist/ui/src/components/Slider.d.ts +0 -21
  331. package/dist/ui/src/components/Table.d.ts +0 -34
  332. package/dist/ui/src/components/Tabs.d.ts +0 -19
  333. package/dist/ui/src/components/TextField.d.ts +0 -58
  334. package/dist/ui/src/components/TextareaAutosize.d.ts +0 -43
  335. package/dist/ui/src/components/ToggleButtonGroup.d.ts +0 -30
  336. package/dist/ui/src/components/Tooltip.d.ts +0 -19
  337. package/dist/ui/src/components/Typography.d.ts +0 -36
  338. package/dist/ui/src/components/VirtualTable/VirtualTable.d.ts +0 -11
  339. package/dist/ui/src/components/VirtualTable/VirtualTableCell.d.ts +0 -21
  340. package/dist/ui/src/components/VirtualTable/VirtualTableHeader.d.ts +0 -29
  341. package/dist/ui/src/components/VirtualTable/VirtualTableHeaderRow.d.ts +0 -2
  342. package/dist/ui/src/components/VirtualTable/VirtualTableProps.d.ts +0 -249
  343. package/dist/ui/src/components/VirtualTable/VirtualTableRow.d.ts +0 -3
  344. package/dist/ui/src/components/VirtualTable/index.d.ts +0 -3
  345. package/dist/ui/src/components/VirtualTable/types.d.ts +0 -38
  346. package/dist/ui/src/components/common/SelectInputLabel.d.ts +0 -5
  347. package/dist/ui/src/components/index.d.ts +0 -58
  348. package/dist/ui/src/hooks/PortalContainerContext.d.ts +0 -31
  349. package/dist/ui/src/hooks/index.d.ts +0 -6
  350. package/dist/ui/src/hooks/useDebounceCallback.d.ts +0 -1
  351. package/dist/ui/src/hooks/useDebounceValue.d.ts +0 -1
  352. package/dist/ui/src/hooks/useDebouncedCallback.d.ts +0 -1
  353. package/dist/ui/src/hooks/useInjectStyles.d.ts +0 -7
  354. package/dist/ui/src/hooks/useOutsideAlerter.d.ts +0 -5
  355. package/dist/ui/src/icons/GitHubIcon.d.ts +0 -2
  356. package/dist/ui/src/icons/HandleIcon.d.ts +0 -1
  357. package/dist/ui/src/icons/Icon.d.ts +0 -20
  358. package/dist/ui/src/icons/cool_icon_keys.d.ts +0 -1
  359. package/dist/ui/src/icons/icon_keys.d.ts +0 -1
  360. package/dist/ui/src/icons/index.d.ts +0 -8
  361. package/dist/ui/src/index.d.ts +0 -5
  362. package/dist/ui/src/styles.d.ts +0 -12
  363. package/dist/ui/src/util/chip_colors.d.ts +0 -4
  364. package/dist/ui/src/util/cls.d.ts +0 -2
  365. package/dist/ui/src/util/debounce.d.ts +0 -10
  366. package/dist/ui/src/util/hash.d.ts +0 -1
  367. package/dist/ui/src/util/index.d.ts +0 -4
  368. package/dist/ui/src/util/key_to_icon_component.d.ts +0 -1
  369. package/src/components/SchemaVisualizer/index.ts +0 -5
  370. package/src/utils/entities.ts +0 -2
  371. /package/dist/{studio/src/components → components}/ApiExplorer/parseSpec.d.ts +0 -0
  372. /package/dist/{studio/src/components → components}/ApiExplorer/types.d.ts +0 -0
  373. /package/dist/{studio/src/components → components}/RLSEditor/index.d.ts +0 -0
  374. /package/dist/{studio/src/components → components}/RebaseStudio.d.ts +0 -0
  375. /package/dist/{studio/src/components → components}/SQLEditor/ExplainVisualizer.d.ts +0 -0
  376. /package/dist/{studio/src/components → components}/SchemaVisualizer/useSchemaGraph.d.ts +0 -0
  377. /package/dist/{studio/src/index.d.ts → index.d.ts} +0 -0
  378. /package/dist/{studio/src/utils → utils}/sql_utils.d.ts +0 -0
@@ -1,34 +0,0 @@
1
- import { EntityCollection } from "@rebasepro/types";
2
- type EntityCustomView<M extends Record<string, unknown> = Record<string, unknown>> = {
3
- key: string;
4
- [key: string]: unknown;
5
- };
6
- export type NavigationViewInternal<M extends Record<string, unknown> = Record<string, unknown>> = NavigationViewEntityInternal<M> | NavigationViewCollectionInternal<M> | NavigationViewEntityCustomInternal<M>;
7
- export interface NavigationViewEntityInternal<M extends Record<string, unknown>> {
8
- type: "entity";
9
- entityId: string | number;
10
- slug: string;
11
- path: string;
12
- parentCollection: EntityCollection<M>;
13
- }
14
- export interface NavigationViewCollectionInternal<M extends Record<string, unknown>> {
15
- type: "collection";
16
- id: string;
17
- slug: string;
18
- path: string;
19
- collection: EntityCollection<M>;
20
- }
21
- export interface NavigationViewEntityCustomInternal<M extends Record<string, unknown>> {
22
- type: "custom_view";
23
- slug: string;
24
- path: string;
25
- entityId: string | number;
26
- view: EntityCustomView<M>;
27
- }
28
- export declare function getNavigationEntriesFromPath(props: {
29
- path: string;
30
- collections: EntityCollection[] | undefined;
31
- currentFullPath?: string;
32
- contextEntityViews?: EntityCustomView[];
33
- }): NavigationViewInternal[];
34
- export {};
@@ -1,20 +0,0 @@
1
- import { EntityCollection } from "@rebasepro/types";
2
- export declare function removeInitialAndTrailingSlashes(s: string): string;
3
- export declare function removeInitialSlash(s: string): string;
4
- export declare function removeTrailingSlash(s: string): string;
5
- export declare function addInitialSlash(s: string): string;
6
- export declare function getLastSegment(path: string): string;
7
- export declare function resolveCollectionPathIds(path: string, allCollections: EntityCollection[]): string;
8
- /**
9
- * Find the corresponding view at any depth for a given path.
10
- * Note that path or segments of the paths can be collection aliases.
11
- * @param slugOrPath
12
- * @param collections
13
- */
14
- export declare function getCollectionBySlugWithin(slugOrPath: string, collections: EntityCollection[]): EntityCollection | undefined;
15
- /**
16
- * Get the subcollection combinations from a path:
17
- * "sites/es/locales" => ["sites/es/locales", "sites"]
18
- * @param subpaths
19
- */
20
- export declare function getCollectionPathsCombinations(subpaths: string[]): string[];
@@ -1,6 +0,0 @@
1
- import { EntityCollection, EntityReference } from "@rebasepro/types";
2
- export declare function getParentReferencesFromPath(props: {
3
- path: string;
4
- collections: EntityCollection[] | undefined;
5
- currentFullPath?: string;
6
- }): EntityReference[];
@@ -1,14 +0,0 @@
1
- export declare const COLLECTION_PATH_SEPARATOR = "::";
2
- /**
3
- * Remove the entity ids from a given path
4
- * `products/B44RG6APH/locales` => `products::locales`
5
- * @param path
6
- */
7
- export declare function stripCollectionPath(path: string): string;
8
- export declare function segmentsToStrippedPath(paths: string[]): string;
9
- /**
10
- * Extract the collection path routes
11
- * `products/B44RG6APH/locales` => [`products`, `locales`]
12
- * @param path
13
- */
14
- export declare function fullPathToCollectionSegments(path: string): string[];
@@ -1,6 +0,0 @@
1
- import { AuthController, Entity, EntityCollection, User } from "@rebasepro/types";
2
- export declare function checkOperation<M extends Record<string, unknown>, USER extends User>(collection: EntityCollection<M>, authController: AuthController<USER>, entity: Entity<M> | null, targetOperation: "select" | "insert" | "update" | "delete"): boolean;
3
- export declare function canReadCollection<M extends Record<string, unknown>, USER extends User>(collection: EntityCollection<M>, authController: AuthController<USER>): boolean;
4
- export declare function canEditEntity<M extends Record<string, unknown>, USER extends User>(collection: EntityCollection<M>, authController: AuthController<USER>, path: string, entity: Entity<M> | null): boolean;
5
- export declare function canCreateEntity<M extends Record<string, unknown>, USER extends User>(collection: EntityCollection<M>, authController: AuthController<USER>, path: string, entity: Entity<M> | null): boolean;
6
- export declare function canDeleteEntity<M extends Record<string, unknown>, USER extends User>(collection: EntityCollection<M>, authController: AuthController<USER>, path: string, entity: Entity<M> | null): boolean;
@@ -1,2 +0,0 @@
1
- import { EntityCollection } from "@rebasepro/types";
2
- export declare function getEntityImagePreviewPropertyKey<M extends Record<string, unknown>>(collection: EntityCollection<M>): string | undefined;
@@ -1,22 +0,0 @@
1
- import { EntityCollection, Property, Relation } from "@rebasepro/types";
2
- export declare function sanitizeRelation(relation: Partial<Relation>, sourceCollection: EntityCollection, resolveCollection?: (slugOrTable: string) => EntityCollection | undefined): Relation;
3
- export declare function resolveCollectionRelations(collection: EntityCollection): Record<string, Relation>;
4
- export declare function resolvePropertyRelation({ propertyKey, property, sourceCollection }: {
5
- propertyKey: string;
6
- property: Property;
7
- sourceCollection: EntityCollection;
8
- }): Relation | undefined;
9
- export declare function getTableName(collection: EntityCollection): string;
10
- export declare function getTableVarName(tableName: string): string;
11
- export declare function getEnumVarName(tableName: string, propName: string): string;
12
- export declare function getColumnName(fullColumn: string): string;
13
- /**
14
- * Look up a relation by key with forgiving normalization.
15
- *
16
- * `resolveCollectionRelations` stores each relation under a single canonical
17
- * key (no aliases). This helper tries the given key as-is, then falls back to
18
- * slug form (underscores → hyphens) and snake_case form (hyphens → underscores)
19
- * so that callers that receive a key from external input (URL path segments,
20
- * user-provided config, etc.) can still find the right entry.
21
- */
22
- export declare function findRelation(resolvedRelations: Record<string, Relation>, key: string): Relation | undefined;
@@ -1,72 +0,0 @@
1
- import { ArrayProperty, AuthController, EntityCollection, EnumValueConfig, EnumValues, NumberProperty, Properties, Property, Relation, RelationProperty, StringProperty } from "@rebasepro/types";
2
- type PropertyConfig = {
3
- property: unknown;
4
- [key: string]: unknown;
5
- };
6
- /**
7
- * Resolve property builders, enums and arrays.
8
- */
9
- export type ResolvePropertyProps<M extends Record<string, unknown> = Record<string, unknown>> = {
10
- property: Property;
11
- propertyKey?: string;
12
- values?: Partial<M>;
13
- previousValues?: Partial<M>;
14
- path?: string;
15
- entityId?: string | number;
16
- index?: number;
17
- propertyConfigs?: Record<string, PropertyConfig>;
18
- ignoreMissingFields?: boolean;
19
- authController: AuthController;
20
- };
21
- export declare function resolveProperty<M extends Record<string, unknown> = Record<string, unknown>>(props: ResolvePropertyProps<M>): Property | null;
22
- export declare function resolveRelationProperty(property: RelationProperty, relations: Relation[], propertyKey?: string): RelationProperty;
23
- /**
24
- * Resolve enum aliases for a string or number property
25
- * @param property
26
- */
27
- export declare function resolvePropertyEnum(property: StringProperty | NumberProperty): StringProperty | NumberProperty;
28
- /**
29
- * Resolve enums and arrays for properties
30
- * @param properties
31
- * @param value
32
- */
33
- export declare function resolveProperties<M extends Record<string, unknown>>({ propertyKey, properties, ignoreMissingFields, ...props }: {
34
- propertyKey?: string;
35
- properties: Properties;
36
- values?: Partial<M>;
37
- previousValues?: Partial<M>;
38
- path?: string;
39
- entityId?: string | number;
40
- index?: number;
41
- propertyConfigs?: Record<string, PropertyConfig>;
42
- ignoreMissingFields?: boolean;
43
- authController: AuthController;
44
- }): Properties;
45
- export declare function resolveArrayProperties<M>({ propertyKey, property, ignoreMissingFields, ...props }: {
46
- propertyKey?: string;
47
- property: ArrayProperty;
48
- values?: Partial<M>;
49
- previousValues?: Partial<M>;
50
- path?: string;
51
- entityId?: string | number;
52
- index?: number;
53
- propertyConfigs?: Record<string, PropertyConfig>;
54
- ignoreMissingFields?: boolean;
55
- authController: AuthController;
56
- }): Property[];
57
- export declare function getArrayResolvedProperties({ propertyKey, propertyValue, property, ...props }: {
58
- propertyValue: unknown;
59
- propertyKey?: string;
60
- property: ArrayProperty;
61
- ignoreMissingFields: boolean;
62
- values?: object;
63
- previousValues?: object;
64
- path?: string;
65
- entityId?: string | number;
66
- index?: number;
67
- propertyConfigs?: Record<string, PropertyConfig>;
68
- authController: AuthController;
69
- }): Property[];
70
- export declare function resolveEnumValues(input: EnumValues): EnumValueConfig[] | undefined;
71
- export declare function getSubcollections<M extends Record<string, unknown> = Record<string, unknown>>(collection: EntityCollection<M>): EntityCollection<Record<string, unknown>>[];
72
- export {};
@@ -1,24 +0,0 @@
1
- import { ArrayProperty, EntityValues, StorageConfig, StringProperty, UploadedFileContext } from "@rebasepro/types";
2
- interface ResolveFilenameStringParams<M extends Record<string, unknown>> {
3
- input: string | ((context: UploadedFileContext) => (Promise<string> | string));
4
- storage: StorageConfig;
5
- values: EntityValues<M>;
6
- entityId?: string | number;
7
- path?: string;
8
- property: StringProperty | ArrayProperty;
9
- file: File;
10
- propertyKey: string;
11
- }
12
- export declare function resolveStorageFilenameString<M extends Record<string, unknown>>({ input, storage, values, entityId, path, property, file, propertyKey }: ResolveFilenameStringParams<M>): Promise<string>;
13
- interface ResolveStoragePathStringParams<M extends Record<string, unknown>> {
14
- input: string | ((context: UploadedFileContext) => string);
15
- storage: StorageConfig;
16
- values: EntityValues<M>;
17
- entityId?: string | number;
18
- path?: string;
19
- property: StringProperty | ArrayProperty;
20
- file: File;
21
- propertyKey: string;
22
- }
23
- export declare function resolveStoragePathString<M extends Record<string, unknown>>({ input, storage, values, entityId, path, property, file, propertyKey }: ResolveStoragePathStringParams<M>): string;
24
- export {};
@@ -1,16 +0,0 @@
1
- export interface AIIconProps {
2
- size?: "smallest" | "small" | "medium" | "large";
3
- className?: string;
4
- }
5
- /**
6
- * AI-styled AutoAwesome icon with gradient coloring.
7
- * Used consistently across AI features for visual identification.
8
- */
9
- export declare function AIIcon({ size, className }: AIIconProps): import("react/jsx-runtime").JSX.Element;
10
- /**
11
- * Small animated dot indicator for AI-modified elements.
12
- * Shows a pulsing gradient dot.
13
- */
14
- export declare function AIModifiedIndicator({ className }: {
15
- className?: string;
16
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export interface BootstrapAdminBannerProps {
2
- className?: string;
3
- }
4
- export declare function BootstrapAdminBanner({ className }: BootstrapAdminBannerProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- export declare function ConfirmationDialog({ open, onAccept, onCancel, title, loading, body }: {
3
- open: boolean;
4
- onAccept: () => void;
5
- onCancel: () => void;
6
- loading?: boolean;
7
- title: React.ReactNode;
8
- body?: React.ReactNode;
9
- }): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function UIReferenceView(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const UIStyleGuide: () => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { TooltipProps } from "@rebasepro/ui";
2
- export declare function ErrorTooltip(props: TooltipProps): import("react/jsx-runtime").JSX.Element;
@@ -1,21 +0,0 @@
1
- import React from "react";
2
- /**
3
- * @group Components
4
- */
5
- export interface ErrorViewProps {
6
- title?: string;
7
- error: Error | React.ReactElement | string;
8
- tooltip?: string;
9
- onRetry?: () => void;
10
- }
11
- /**
12
- * Generic error view. Displayed for example when an unexpected value comes
13
- * from the driver in a collection view.
14
- * @param title
15
- * @param error
16
- * @param tooltip
17
- * @param onRetry
18
-
19
- * @group Components
20
- */
21
- export declare function ErrorView({ title, error, tooltip, onRetry }: ErrorViewProps): React.ReactElement;
@@ -1 +0,0 @@
1
- export declare function LanguageToggle(): import("react/jsx-runtime").JSX.Element;
@@ -1,109 +0,0 @@
1
- import { ReactNode } from "react";
2
- /** Google Identity Services SDK — injected by the GIS <script> tag. */
3
- declare global {
4
- interface Window {
5
- google?: {
6
- accounts: {
7
- oauth2: {
8
- initCodeClient(config: {
9
- client_id: string;
10
- scope: string;
11
- ux_mode: "popup" | "redirect";
12
- callback: (response: {
13
- code?: string;
14
- error?: string;
15
- }) => void;
16
- }): {
17
- requestCode(): void;
18
- };
19
- };
20
- };
21
- };
22
- }
23
- }
24
- import { AuthControllerExtended } from "@rebasepro/types";
25
- /**
26
- * Props for the generic LoginView.
27
- * Consumes {@link AuthControllerExtended} — works with any backend
28
- * (Rebase custom backend, Firebase, Supabase, etc.)
29
- */
30
- export interface LoginViewProps {
31
- /**
32
- * Auth controller — must implement AuthControllerExtended.
33
- */
34
- authController: AuthControllerExtended;
35
- /**
36
- * Path to the logo displayed in the login screen
37
- */
38
- logo?: string;
39
- /**
40
- * Enable the skip login button
41
- */
42
- allowSkipLogin?: boolean;
43
- /**
44
- * Disable the login buttons
45
- */
46
- disabled?: boolean;
47
- /**
48
- * Prevent users from creating new accounts.
49
- * If not set, checks `authController.capabilities.registration`.
50
- */
51
- disableSignupScreen?: boolean;
52
- /**
53
- * Display this component when no user is found
54
- */
55
- noUserComponent?: ReactNode;
56
- /**
57
- * Display this component below the sign-in buttons
58
- */
59
- additionalComponent?: ReactNode;
60
- /**
61
- * Error message when user is not allowed access
62
- */
63
- notAllowedError?: string | Error;
64
- /**
65
- * Google client ID for Google OAuth.
66
- * Required when Google login is enabled via ID token flow.
67
- */
68
- googleClientId?: string;
69
- /**
70
- * GitHub client ID for GitHub OAuth.
71
- */
72
- githubClientId?: string;
73
- /**
74
- * LinkedIn client ID for LinkedIn OAuth.
75
- */
76
- linkedinClientId?: string;
77
- /**
78
- * Optional custom title shown above options
79
- */
80
- title?: string;
81
- /**
82
- * Optional custom subtitle shown above options
83
- */
84
- subtitle?: string;
85
- /**
86
- * When true, shows bootstrap/setup UI (first-user creation).
87
- * If not set, derived from `authController` if it exposes `needsSetup`.
88
- */
89
- needsSetup?: boolean;
90
- /**
91
- * Whether registration is enabled.
92
- * If not set, derived from `authController.capabilities.registration`.
93
- */
94
- registrationEnabled?: boolean;
95
- /**
96
- * Pre-fill the email field (e.g. for demo or testing environments).
97
- */
98
- defaultEmail?: string;
99
- /**
100
- * Pre-fill the password field (e.g. for demo or testing environments).
101
- */
102
- defaultPassword?: string;
103
- }
104
- /**
105
- * Generic login view component that works with any AuthControllerExtended.
106
- * Feature-detects capabilities to show/hide login methods.
107
- * @group Core
108
- */
109
- export declare function LoginView({ logo, authController, noUserComponent, disableSignupScreen, disabled, notAllowedError, googleClientId, githubClientId, linkedinClientId, title, subtitle, needsSetup, registrationEnabled, additionalComponent, defaultEmail, defaultPassword }: LoginViewProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { LoginView } from "./LoginView";
2
- export type { LoginViewProps } from "./LoginView";
@@ -1 +0,0 @@
1
- export declare function NotFoundPage(): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import type { RebaseAuthConfig } from "@rebasepro/types";
2
- /**
3
- * Declarative component to configure authentication in Rebase.
4
- * Renders nothing — purely registers config into the RebaseRegistry.
5
- *
6
- * This is a framework-level component that lives in core since
7
- * authentication is cross-cutting (CMS, Studio, any app area).
8
- * @group Core
9
- */
10
- export declare function RebaseAuth({ loginView }: RebaseAuthConfig): null;
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- export declare function RebaseLogo({ width, height, className, style }: {
3
- width?: string;
4
- height?: string;
5
- className?: string;
6
- style?: React.CSSProperties;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- export interface UnsavedChangesDialogProps {
3
- open: boolean;
4
- body?: React.ReactNode;
5
- title?: string;
6
- handleOk: () => void;
7
- handleCancel: () => void;
8
- }
9
- export declare function UnsavedChangesDialog({ open, handleOk, handleCancel, body, title }: UnsavedChangesDialogProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { User } from "@rebasepro/types";
2
- /**
3
- * Component to render a single user with name and email
4
- */
5
- export declare function UserDisplay({ user }: {
6
- user: User | null;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,62 +0,0 @@
1
- /**
2
- * Represents a selectable user item with optional role information.
3
- */
4
- export interface SelectableUser {
5
- uid: string;
6
- displayName?: string | null;
7
- email?: string | null;
8
- photoURL?: string | null;
9
- roles?: string[];
10
- }
11
- export interface UserSelectPopoverProps {
12
- /**
13
- * The currently selected user, or `null` for "self"/default.
14
- */
15
- selectedUser: SelectableUser | null;
16
- /**
17
- * Called when the user selection changes.
18
- * `null` means "reset to self/default".
19
- */
20
- onUserSelected: (user: SelectableUser | null) => void;
21
- /**
22
- * Full list of users to display.
23
- * The component handles client-side search/filter internally.
24
- */
25
- users: SelectableUser[];
26
- /**
27
- * Whether users are currently loading.
28
- */
29
- loading?: boolean;
30
- /**
31
- * The current user (displayed as the "self" option at the top).
32
- */
33
- currentUser?: SelectableUser | null;
34
- /**
35
- * Label to display when no user is selected.
36
- * @default "Current user"
37
- */
38
- defaultLabel?: string;
39
- /**
40
- * Maximum number of users to render at a time (for performance).
41
- * Users can still be found via search.
42
- * @default 100
43
- */
44
- renderLimit?: number;
45
- /**
46
- * Additional class name for the trigger button.
47
- */
48
- className?: string;
49
- /**
50
- * Size variant.
51
- * @default "small"
52
- */
53
- size?: "small" | "medium";
54
- }
55
- /**
56
- * A reusable user picker popover with search support.
57
- * Designed to handle very large user lists (100k+) by filtering
58
- * client-side and limiting the rendered set.
59
- *
60
- * @group Components
61
- */
62
- export declare function UserSelectPopover({ selectedUser, onUserSelected, users, loading, currentUser, defaultLabel, renderLimit, className, size }: UserSelectPopoverProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function UserSettingsView(): import("react/jsx-runtime").JSX.Element | null;
@@ -1,6 +0,0 @@
1
- export * from "./types";
2
- export * from "./useDebouncedData";
3
- export * from "./useColumnsIds";
4
- export * from "./useDataTableController";
5
- export * from "./useScrollRestoration";
6
- export * from "./table_height";
@@ -1,5 +0,0 @@
1
- /**
2
- * @group Components
3
- */
4
- export type TableSize = "xs" | "s" | "m" | "l" | "xl";
5
- export declare function getRowHeight(size: TableSize): number;
@@ -1,66 +0,0 @@
1
- import type { Property, Entity } from "@rebasepro/types";
2
- import { CollectionSize, SelectedCellProps } from "@rebasepro/types";
3
- export type EntityCollectionTableController<M extends Record<string, unknown>> = {
4
- /**
5
- * This cell is displayed as selected
6
- */
7
- selectedCell?: SelectedCellProps;
8
- /**
9
- * Store used to sync selection state across cells efficiently.
10
- */
11
- selectionStore?: {
12
- getSnapshot: () => SelectedCellProps | undefined;
13
- subscribe: (cb: () => void) => () => void;
14
- };
15
- /**
16
- * Select a table cell
17
- * @param cell
18
- */
19
- select: (cell?: SelectedCellProps<M>) => void;
20
- /**
21
- * The cell that is displayed as a popup view.
22
- * @param cell
23
- */
24
- setPopupCell?: (cell?: SelectedCellProps<M>) => void;
25
- /**
26
- * Callback used when the value of a cell has changed.
27
- * @param params
28
- */
29
- onValueChange?: (params: OnCellValueChangeParams<unknown, Entity<M>>) => void;
30
- /**
31
- * Size of the elements in the collection
32
- */
33
- size: CollectionSize;
34
- };
35
- /**
36
- * Props passed in a callback when the content of a cell in a table has been edited
37
- * @group Collection components
38
- */
39
- export interface OnCellValueChangeParams<T = unknown, D = unknown> {
40
- value: T;
41
- propertyKey: string;
42
- data?: D;
43
- onValueUpdated: () => void;
44
- setError: (e: Error | undefined) => void;
45
- }
46
- /**
47
- * @group Collection components
48
- */
49
- export type UniqueFieldValidator = (props: {
50
- name: string;
51
- value: unknown;
52
- property: Property;
53
- entityId?: string | number;
54
- }) => Promise<boolean>;
55
- /**
56
- * Callback when a cell has changed in a table
57
- * @group Collection components
58
- */
59
- export type OnCellValueChange<T, M extends Record<string, unknown>> = (params: OnCellValueChangeParams<T, Entity<M>>) => Promise<void> | void;
60
- /**
61
- * @group Collection components
62
- */
63
- export type OnColumnResizeParams = {
64
- width: number;
65
- key: string;
66
- };
@@ -1,9 +0,0 @@
1
- import type { EntityCollection, Property } from "@rebasepro/types";
2
- export type PropertyColumnConfig = {
3
- key: string;
4
- disabled: boolean;
5
- };
6
- export declare function getSubcollectionColumnId(collection: EntityCollection<any>): string;
7
- export declare function useColumnIds<M extends Record<string, any>>(collection: EntityCollection<M>, includeSubcollections: boolean): PropertyColumnConfig[];
8
- export declare function getColumnKeysForProperty(property: Property, key: string, disabled?: boolean): PropertyColumnConfig[];
9
- export declare function getFormFieldKeys(collection: EntityCollection): string[];
@@ -1,45 +0,0 @@
1
- import type { EntityCollection } from "@rebasepro/types";
2
- import { Entity, EntityTableController, FilterValues, User } from "@rebasepro/types";
3
- import { ScrollRestorationController } from "./useScrollRestoration";
4
- export declare const DEFAULT_PAGE_SIZE = 50;
5
- export type DataTableControllerProps<M extends Record<string, any> = any> = {
6
- /**
7
- * Full path where the data of this table is located
8
- */
9
- path: string;
10
- /**
11
- * The collection that is represented by this config.
12
- */
13
- collection: EntityCollection<M>;
14
- /**
15
- * List of entities that will be displayed on top, no matter the ordering.
16
- * This is used for reference fields selection
17
- */
18
- entitiesDisplayedFirst?: Entity<M>[];
19
- lastDeleteTimestamp?: number;
20
- /**
21
- * Force filter to be applied to the table.
22
- */
23
- fixedFilter?: FilterValues<string>;
24
- scrollRestoration?: ScrollRestorationController;
25
- /**
26
- * When set to true the filters and sort will be updated in the URL
27
- */
28
- updateUrl?: boolean;
29
- };
30
- /**
31
- * Use this hook to build a controller for the {@link EntityCollectionTable}.
32
- * This controller is bound to data in a path in your specified driver.
33
- *
34
- * Note that you can build your own hook returning a {@link EntityTableController}
35
- * if you would like to display different data.
36
- *
37
- * @param path
38
- * @param collection
39
- * @param scrollRestoration
40
- * @param entitiesDisplayedFirst
41
- * @param lastDeleteTimestamp
42
- * @param fixedFilterFromProps
43
- * @param updateUrl
44
- */
45
- export declare function useDataTableController<M extends Record<string, any> = any, USER extends User = User>({ path, collection, scrollRestoration, entitiesDisplayedFirst, lastDeleteTimestamp: _lastDeleteTimestamp, fixedFilter: fixedFilterFromProps, updateUrl }: DataTableControllerProps<M>): EntityTableController<M>;
@@ -1,9 +0,0 @@
1
- /**
2
- * Hack to prevent data updates for incomplete callbacks from Firestore
3
- * triggers.
4
- * If any deps change, the update is immediate
5
- * @param data
6
- * @param deps
7
- * @param timeoutMs
8
- */
9
- export declare function useDebouncedData<T>(data: T[], deps: unknown, timeoutMs?: number): T[];