@rebasepro/studio 0.0.1-canary.09e5ec5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/LICENSE +114 -0
  2. package/README.md +159 -0
  3. package/dist/ApiExplorer-gMJt5JrS.js +1053 -0
  4. package/dist/ApiExplorer-gMJt5JrS.js.map +1 -0
  5. package/dist/AuthSimulationSelector-BF4rkRGp.js +118 -0
  6. package/dist/AuthSimulationSelector-BF4rkRGp.js.map +1 -0
  7. package/dist/BranchesView-DcHZtvXo.js +292 -0
  8. package/dist/BranchesView-DcHZtvXo.js.map +1 -0
  9. package/dist/CronJobsView-CijCToeK.js +456 -0
  10. package/dist/CronJobsView-CijCToeK.js.map +1 -0
  11. package/dist/JSEditor-D8nVp3Lp.js +1308 -0
  12. package/dist/JSEditor-D8nVp3Lp.js.map +1 -0
  13. package/dist/MonacoEditor-CMYEjiRf.js +161 -0
  14. package/dist/MonacoEditor-CMYEjiRf.js.map +1 -0
  15. package/dist/RLSEditor-DBH09u9v.js +1831 -0
  16. package/dist/RLSEditor-DBH09u9v.js.map +1 -0
  17. package/dist/SQLEditor-CkVx9vgr.js +1792 -0
  18. package/dist/SQLEditor-CkVx9vgr.js.map +1 -0
  19. package/dist/SchemaVisualizer-BgD5Zb77.js +1069 -0
  20. package/dist/SchemaVisualizer-BgD5Zb77.js.map +1 -0
  21. package/dist/StorageView-CTqGFhY9.js +907 -0
  22. package/dist/StorageView-CTqGFhY9.js.map +1 -0
  23. package/dist/common/src/collections/CollectionRegistry.d.ts +56 -0
  24. package/dist/common/src/collections/index.d.ts +1 -0
  25. package/dist/common/src/data/buildRebaseData.d.ts +14 -0
  26. package/dist/common/src/index.d.ts +3 -0
  27. package/dist/common/src/util/builders.d.ts +57 -0
  28. package/dist/common/src/util/callbacks.d.ts +6 -0
  29. package/dist/common/src/util/collections.d.ts +11 -0
  30. package/dist/common/src/util/common.d.ts +2 -0
  31. package/dist/common/src/util/conditions.d.ts +26 -0
  32. package/dist/common/src/util/entities.d.ts +58 -0
  33. package/dist/common/src/util/enums.d.ts +3 -0
  34. package/dist/common/src/util/index.d.ts +16 -0
  35. package/dist/common/src/util/navigation_from_path.d.ts +34 -0
  36. package/dist/common/src/util/navigation_utils.d.ts +20 -0
  37. package/dist/common/src/util/parent_references_from_path.d.ts +6 -0
  38. package/dist/common/src/util/paths.d.ts +14 -0
  39. package/dist/common/src/util/permissions.d.ts +5 -0
  40. package/dist/common/src/util/references.d.ts +2 -0
  41. package/dist/common/src/util/relations.d.ts +22 -0
  42. package/dist/common/src/util/resolutions.d.ts +72 -0
  43. package/dist/common/src/util/storage.d.ts +24 -0
  44. package/dist/core/src/components/AIIcon.d.ts +16 -0
  45. package/dist/core/src/components/ConfirmationDialog.d.ts +9 -0
  46. package/dist/core/src/components/Debug/UIReferenceView.d.ts +1 -0
  47. package/dist/core/src/components/Debug/UIStyleGuide.d.ts +1 -0
  48. package/dist/core/src/components/ErrorTooltip.d.ts +2 -0
  49. package/dist/core/src/components/ErrorView.d.ts +21 -0
  50. package/dist/core/src/components/LanguageToggle.d.ts +1 -0
  51. package/dist/core/src/components/LoginView/LoginView.d.ts +68 -0
  52. package/dist/core/src/components/LoginView/index.d.ts +2 -0
  53. package/dist/core/src/components/NotFoundPage.d.ts +1 -0
  54. package/dist/core/src/components/RebaseAuth.d.ts +10 -0
  55. package/dist/core/src/components/RebaseLogo.d.ts +7 -0
  56. package/dist/core/src/components/UnsavedChangesDialog.d.ts +9 -0
  57. package/dist/core/src/components/UserDisplay.d.ts +7 -0
  58. package/dist/core/src/components/UserSelectPopover.d.ts +62 -0
  59. package/dist/core/src/components/UserSettingsView.d.ts +1 -0
  60. package/dist/core/src/components/common/index.d.ts +6 -0
  61. package/dist/core/src/components/common/table_height.d.ts +5 -0
  62. package/dist/core/src/components/common/types.d.ts +63 -0
  63. package/dist/core/src/components/common/useColumnsIds.d.ts +9 -0
  64. package/dist/core/src/components/common/useDataTableController.d.ts +45 -0
  65. package/dist/core/src/components/common/useDebouncedData.d.ts +9 -0
  66. package/dist/core/src/components/common/useScrollRestoration.d.ts +14 -0
  67. package/dist/core/src/components/index.d.ts +16 -0
  68. package/dist/core/src/contexts/AdminModeController.d.ts +4 -0
  69. package/dist/core/src/contexts/AnalyticsContext.d.ts +3 -0
  70. package/dist/core/src/contexts/AuthControllerContext.d.ts +3 -0
  71. package/dist/core/src/contexts/CustomizationControllerContext.d.ts +3 -0
  72. package/dist/core/src/contexts/DataDriverContext.d.ts +3 -0
  73. package/dist/core/src/contexts/DatabaseAdminContext.d.ts +3 -0
  74. package/dist/core/src/contexts/DialogsProvider.d.ts +4 -0
  75. package/dist/core/src/contexts/EffectiveRoleController.d.ts +4 -0
  76. package/dist/core/src/contexts/InternalUserManagementContext.d.ts +3 -0
  77. package/dist/core/src/contexts/ModeController.d.ts +4 -0
  78. package/dist/core/src/contexts/RebaseClientInstanceContext.d.ts +6 -0
  79. package/dist/core/src/contexts/RebaseDataContext.d.ts +3 -0
  80. package/dist/core/src/contexts/SnackbarProvider.d.ts +2 -0
  81. package/dist/core/src/contexts/StorageSourceContext.d.ts +3 -0
  82. package/dist/core/src/contexts/UserConfigurationPersistenceContext.d.ts +3 -0
  83. package/dist/core/src/contexts/index.d.ts +13 -0
  84. package/dist/core/src/core/PluginLifecycleManager.d.ts +17 -0
  85. package/dist/core/src/core/PluginProviderStack.d.ts +21 -0
  86. package/dist/core/src/core/Rebase.d.ts +14 -0
  87. package/dist/core/src/core/RebaseProps.d.ts +136 -0
  88. package/dist/core/src/core/RebaseRouter.d.ts +4 -0
  89. package/dist/core/src/core/RebaseRoutes.d.ts +17 -0
  90. package/dist/core/src/core/index.d.ts +4 -0
  91. package/dist/core/src/hooks/ApiConfigContext.d.ts +24 -0
  92. package/dist/core/src/hooks/data/delete.d.ts +31 -0
  93. package/dist/core/src/hooks/data/save.d.ts +34 -0
  94. package/dist/core/src/hooks/data/useCollectionFetch.d.ts +51 -0
  95. package/dist/core/src/hooks/data/useData.d.ts +13 -0
  96. package/dist/core/src/hooks/data/useDataOrder.d.ts +12 -0
  97. package/dist/core/src/hooks/data/useEntityFetch.d.ts +38 -0
  98. package/dist/core/src/hooks/data/useRelationSelector.d.ts +52 -0
  99. package/dist/core/src/hooks/data/useUserSelector.d.ts +31 -0
  100. package/dist/core/src/hooks/index.d.ts +37 -0
  101. package/dist/core/src/hooks/useAdminModeController.d.ts +19 -0
  102. package/dist/core/src/hooks/useAnalyticsController.d.ts +5 -0
  103. package/dist/core/src/hooks/useAuthController.d.ts +11 -0
  104. package/dist/core/src/hooks/useAuthSubscription.d.ts +2 -0
  105. package/dist/core/src/hooks/useBackendStorageSource.d.ts +30 -0
  106. package/dist/core/src/hooks/useBridgeRegistration.d.ts +18 -0
  107. package/dist/core/src/hooks/useBrowserTitleAndIcon.d.ts +6 -0
  108. package/dist/core/src/hooks/useBuildAdminModeController.d.ts +6 -0
  109. package/dist/core/src/hooks/useBuildEffectiveRoleController.d.ts +8 -0
  110. package/dist/core/src/hooks/useBuildLocalConfigurationPersistence.d.ts +2 -0
  111. package/dist/core/src/hooks/useBuildModeController.d.ts +6 -0
  112. package/dist/core/src/hooks/useClipboard.d.ts +57 -0
  113. package/dist/core/src/hooks/useCollapsedGroups.d.ts +12 -0
  114. package/dist/core/src/hooks/useCustomizationController.d.ts +11 -0
  115. package/dist/core/src/hooks/useDialogsController.d.ts +11 -0
  116. package/dist/core/src/hooks/useEffectiveRoleController.d.ts +7 -0
  117. package/dist/core/src/hooks/useInternalUserManagementController.d.ts +12 -0
  118. package/dist/core/src/hooks/useLargeLayout.d.ts +1 -0
  119. package/dist/core/src/hooks/useModeController.d.ts +19 -0
  120. package/dist/core/src/hooks/usePermissions.d.ts +12 -0
  121. package/dist/core/src/hooks/useRebaseClient.d.ts +5 -0
  122. package/dist/core/src/hooks/useRebaseContext.d.ts +11 -0
  123. package/dist/core/src/hooks/useRebaseRegistry.d.ts +34 -0
  124. package/dist/core/src/hooks/useSlot.d.ts +18 -0
  125. package/dist/core/src/hooks/useSnackbarController.d.ts +20 -0
  126. package/dist/core/src/hooks/useStorageSource.d.ts +7 -0
  127. package/dist/core/src/hooks/useStudioBridge.d.ts +91 -0
  128. package/dist/core/src/hooks/useTranslation.d.ts +17 -0
  129. package/dist/core/src/hooks/useUnsavedChangesDialog.d.ts +12 -0
  130. package/dist/core/src/hooks/useUserConfigurationPersistence.d.ts +8 -0
  131. package/dist/core/src/hooks/useValidateAuthenticator.d.ts +21 -0
  132. package/dist/core/src/i18n/RebaseI18nProvider.d.ts +33 -0
  133. package/dist/core/src/index.d.ts +15 -0
  134. package/dist/core/src/internal/common.d.ts +3 -0
  135. package/dist/core/src/internal/useRestoreScroll.d.ts +6 -0
  136. package/dist/core/src/locales/de.d.ts +2 -0
  137. package/dist/core/src/locales/en.d.ts +10 -0
  138. package/dist/core/src/locales/es.d.ts +10 -0
  139. package/dist/core/src/locales/fr.d.ts +2 -0
  140. package/dist/core/src/locales/hi.d.ts +2 -0
  141. package/dist/core/src/locales/it.d.ts +2 -0
  142. package/dist/core/src/locales/pt.d.ts +7 -0
  143. package/dist/core/src/util/constants.d.ts +1 -0
  144. package/dist/core/src/util/createFormexStub.d.ts +2 -0
  145. package/dist/core/src/util/entity_cache.d.ts +27 -0
  146. package/dist/core/src/util/enums.d.ts +5 -0
  147. package/dist/core/src/util/icon_list.d.ts +5 -0
  148. package/dist/core/src/util/icon_synonyms.d.ts +1 -0
  149. package/dist/core/src/util/icons.d.ts +20 -0
  150. package/dist/core/src/util/index.d.ts +10 -0
  151. package/dist/core/src/util/previews.d.ts +4 -0
  152. package/dist/core/src/util/useStorageUploadController.d.ts +38 -0
  153. package/dist/core/src/util/useTraceUpdate.d.ts +2 -0
  154. package/dist/formex/src/Field.d.ts +52 -0
  155. package/dist/formex/src/Formex.d.ts +7 -0
  156. package/dist/formex/src/index.d.ts +5 -0
  157. package/dist/formex/src/types.d.ts +40 -0
  158. package/dist/formex/src/useCreateFormex.d.ts +14 -0
  159. package/dist/formex/src/utils.d.ts +16 -0
  160. package/dist/index.es.js +726 -0
  161. package/dist/index.es.js.map +1 -0
  162. package/dist/index.umd.js +9647 -0
  163. package/dist/index.umd.js.map +1 -0
  164. package/dist/studio/src/components/ApiExplorer/ApiExplorer.d.ts +9 -0
  165. package/dist/studio/src/components/ApiExplorer/EndpointDetail.d.ts +9 -0
  166. package/dist/studio/src/components/ApiExplorer/TryItPanel.d.ts +15 -0
  167. package/dist/studio/src/components/ApiExplorer/parseSpec.d.ts +16 -0
  168. package/dist/studio/src/components/ApiExplorer/types.d.ts +90 -0
  169. package/dist/studio/src/components/AuthSimulationSelector.d.ts +11 -0
  170. package/dist/studio/src/components/Branches/BranchesView.d.ts +1 -0
  171. package/dist/studio/src/components/CronJobs/CronJobsView.d.ts +1 -0
  172. package/dist/studio/src/components/JSEditor/JSEditor.d.ts +1 -0
  173. package/dist/studio/src/components/JSEditor/JSEditorSidebar.d.ts +21 -0
  174. package/dist/studio/src/components/JSEditor/JSMonacoEditor.d.ts +18 -0
  175. package/dist/studio/src/components/RLSEditor/PolicyEditor.d.ts +9 -0
  176. package/dist/studio/src/components/RLSEditor/RLSEditor.d.ts +19 -0
  177. package/dist/studio/src/components/RLSEditor/index.d.ts +1 -0
  178. package/dist/studio/src/components/RebaseStudio.d.ts +2 -0
  179. package/dist/studio/src/components/SQLEditor/ExplainVisualizer.d.ts +24 -0
  180. package/dist/studio/src/components/SQLEditor/MonacoEditor.d.ts +17 -0
  181. package/dist/studio/src/components/SQLEditor/SQLEditor.d.ts +11 -0
  182. package/dist/studio/src/components/SQLEditor/SQLEditorSidebar.d.ts +21 -0
  183. package/dist/studio/src/components/SQLEditor/SchemaBrowser.d.ts +8 -0
  184. package/dist/studio/src/components/SchemaVisualizer/RelationEdge.d.ts +3 -0
  185. package/dist/studio/src/components/SchemaVisualizer/SchemaVisualizer.d.ts +2 -0
  186. package/dist/studio/src/components/SchemaVisualizer/TableNode.d.ts +3 -0
  187. package/dist/studio/src/components/SchemaVisualizer/index.d.ts +5 -0
  188. package/dist/studio/src/components/SchemaVisualizer/schema-visualizer.utils.d.ts +42 -0
  189. package/dist/studio/src/components/SchemaVisualizer/useSchemaGraph.d.ts +37 -0
  190. package/dist/studio/src/components/StorageView/StorageView.d.ts +1 -0
  191. package/dist/studio/src/components/StudioHomePage.d.ts +9 -0
  192. package/dist/studio/src/index.d.ts +4 -0
  193. package/dist/studio/src/utils/entities.d.ts +0 -0
  194. package/dist/studio/src/utils/pgColumnToProperty.d.ts +6 -0
  195. package/dist/studio/src/utils/sql_utils.d.ts +52 -0
  196. package/dist/types/src/controllers/analytics_controller.d.ts +7 -0
  197. package/dist/types/src/controllers/auth.d.ts +119 -0
  198. package/dist/types/src/controllers/client.d.ts +170 -0
  199. package/dist/types/src/controllers/collection_registry.d.ts +45 -0
  200. package/dist/types/src/controllers/customization_controller.d.ts +60 -0
  201. package/dist/types/src/controllers/data.d.ts +168 -0
  202. package/dist/types/src/controllers/data_driver.d.ts +160 -0
  203. package/dist/types/src/controllers/database_admin.d.ts +11 -0
  204. package/dist/types/src/controllers/dialogs_controller.d.ts +36 -0
  205. package/dist/types/src/controllers/effective_role.d.ts +4 -0
  206. package/dist/types/src/controllers/email.d.ts +34 -0
  207. package/dist/types/src/controllers/index.d.ts +18 -0
  208. package/dist/types/src/controllers/local_config_persistence.d.ts +20 -0
  209. package/dist/types/src/controllers/navigation.d.ts +213 -0
  210. package/dist/types/src/controllers/registry.d.ts +54 -0
  211. package/dist/types/src/controllers/side_dialogs_controller.d.ts +67 -0
  212. package/dist/types/src/controllers/side_entity_controller.d.ts +90 -0
  213. package/dist/types/src/controllers/snackbar.d.ts +24 -0
  214. package/dist/types/src/controllers/storage.d.ts +171 -0
  215. package/dist/types/src/index.d.ts +4 -0
  216. package/dist/types/src/rebase_context.d.ts +105 -0
  217. package/dist/types/src/types/backend.d.ts +536 -0
  218. package/dist/types/src/types/builders.d.ts +15 -0
  219. package/dist/types/src/types/chips.d.ts +5 -0
  220. package/dist/types/src/types/collections.d.ts +856 -0
  221. package/dist/types/src/types/cron.d.ts +102 -0
  222. package/dist/types/src/types/data_source.d.ts +64 -0
  223. package/dist/types/src/types/entities.d.ts +145 -0
  224. package/dist/types/src/types/entity_actions.d.ts +98 -0
  225. package/dist/types/src/types/entity_callbacks.d.ts +173 -0
  226. package/dist/types/src/types/entity_link_builder.d.ts +7 -0
  227. package/dist/types/src/types/entity_overrides.d.ts +10 -0
  228. package/dist/types/src/types/entity_views.d.ts +61 -0
  229. package/dist/types/src/types/export_import.d.ts +21 -0
  230. package/dist/types/src/types/index.d.ts +23 -0
  231. package/dist/types/src/types/locales.d.ts +4 -0
  232. package/dist/types/src/types/modify_collections.d.ts +5 -0
  233. package/dist/types/src/types/plugins.d.ts +279 -0
  234. package/dist/types/src/types/properties.d.ts +1176 -0
  235. package/dist/types/src/types/property_config.d.ts +70 -0
  236. package/dist/types/src/types/relations.d.ts +336 -0
  237. package/dist/types/src/types/slots.d.ts +252 -0
  238. package/dist/types/src/types/translations.d.ts +870 -0
  239. package/dist/types/src/types/user_management_delegate.d.ts +121 -0
  240. package/dist/types/src/types/websockets.d.ts +78 -0
  241. package/dist/types/src/users/index.d.ts +2 -0
  242. package/dist/types/src/users/roles.d.ts +22 -0
  243. package/dist/types/src/users/user.d.ts +46 -0
  244. package/dist/ui/src/components/Alert.d.ts +12 -0
  245. package/dist/ui/src/components/Autocomplete.d.ts +21 -0
  246. package/dist/ui/src/components/Avatar.d.ts +11 -0
  247. package/dist/ui/src/components/Badge.d.ts +8 -0
  248. package/dist/ui/src/components/BooleanSwitch.d.ts +14 -0
  249. package/dist/ui/src/components/BooleanSwitchWithLabel.d.ts +17 -0
  250. package/dist/ui/src/components/Button.d.ts +14 -0
  251. package/dist/ui/src/components/Card.d.ts +9 -0
  252. package/dist/ui/src/components/CenteredView.d.ts +9 -0
  253. package/dist/ui/src/components/Checkbox.d.ts +13 -0
  254. package/dist/ui/src/components/Chip.d.ts +26 -0
  255. package/dist/ui/src/components/CircularProgress.d.ts +5 -0
  256. package/dist/ui/src/components/CircularProgressCenter.d.ts +11 -0
  257. package/dist/ui/src/components/Collapse.d.ts +9 -0
  258. package/dist/ui/src/components/ColorPicker.d.ts +30 -0
  259. package/dist/ui/src/components/Container.d.ts +8 -0
  260. package/dist/ui/src/components/DateTimeField.d.ts +24 -0
  261. package/dist/ui/src/components/DebouncedTextField.d.ts +2 -0
  262. package/dist/ui/src/components/Dialog.d.ts +39 -0
  263. package/dist/ui/src/components/DialogActions.d.ts +7 -0
  264. package/dist/ui/src/components/DialogContent.d.ts +7 -0
  265. package/dist/ui/src/components/DialogTitle.d.ts +10 -0
  266. package/dist/ui/src/components/ErrorBoundary.d.ts +11 -0
  267. package/dist/ui/src/components/ExpandablePanel.d.ts +12 -0
  268. package/dist/ui/src/components/FileUpload.d.ts +23 -0
  269. package/dist/ui/src/components/IconButton.d.ts +12 -0
  270. package/dist/ui/src/components/InfoLabel.d.ts +5 -0
  271. package/dist/ui/src/components/InputLabel.d.ts +11 -0
  272. package/dist/ui/src/components/Label.d.ts +7 -0
  273. package/dist/ui/src/components/LoadingButton.d.ts +7 -0
  274. package/dist/ui/src/components/Markdown.d.ts +10 -0
  275. package/dist/ui/src/components/Menu.d.ts +23 -0
  276. package/dist/ui/src/components/Menubar.d.ts +80 -0
  277. package/dist/ui/src/components/MultiSelect.d.ts +48 -0
  278. package/dist/ui/src/components/Paper.d.ts +6 -0
  279. package/dist/ui/src/components/Popover.d.ts +24 -0
  280. package/dist/ui/src/components/RadioGroup.d.ts +28 -0
  281. package/dist/ui/src/components/ResizablePanels.d.ts +18 -0
  282. package/dist/ui/src/components/SearchBar.d.ts +22 -0
  283. package/dist/ui/src/components/Select.d.ts +43 -0
  284. package/dist/ui/src/components/Separator.d.ts +5 -0
  285. package/dist/ui/src/components/Sheet.d.ts +22 -0
  286. package/dist/ui/src/components/Skeleton.d.ts +6 -0
  287. package/dist/ui/src/components/Slider.d.ts +21 -0
  288. package/dist/ui/src/components/Table.d.ts +34 -0
  289. package/dist/ui/src/components/Tabs.d.ts +19 -0
  290. package/dist/ui/src/components/TextField.d.ts +58 -0
  291. package/dist/ui/src/components/TextareaAutosize.d.ts +43 -0
  292. package/dist/ui/src/components/ToggleButtonGroup.d.ts +30 -0
  293. package/dist/ui/src/components/Tooltip.d.ts +19 -0
  294. package/dist/ui/src/components/Typography.d.ts +36 -0
  295. package/dist/ui/src/components/VirtualTable/VirtualTable.d.ts +11 -0
  296. package/dist/ui/src/components/VirtualTable/VirtualTableCell.d.ts +21 -0
  297. package/dist/ui/src/components/VirtualTable/VirtualTableHeader.d.ts +29 -0
  298. package/dist/ui/src/components/VirtualTable/VirtualTableHeaderRow.d.ts +2 -0
  299. package/dist/ui/src/components/VirtualTable/VirtualTableProps.d.ts +243 -0
  300. package/dist/ui/src/components/VirtualTable/VirtualTableRow.d.ts +3 -0
  301. package/dist/ui/src/components/VirtualTable/index.d.ts +3 -0
  302. package/dist/ui/src/components/VirtualTable/types.d.ts +38 -0
  303. package/dist/ui/src/components/common/SelectInputLabel.d.ts +5 -0
  304. package/dist/ui/src/components/index.d.ts +53 -0
  305. package/dist/ui/src/hooks/PortalContainerContext.d.ts +31 -0
  306. package/dist/ui/src/hooks/index.d.ts +6 -0
  307. package/dist/ui/src/hooks/useDebounceCallback.d.ts +1 -0
  308. package/dist/ui/src/hooks/useDebounceValue.d.ts +1 -0
  309. package/dist/ui/src/hooks/useDebouncedCallback.d.ts +1 -0
  310. package/dist/ui/src/hooks/useInjectStyles.d.ts +7 -0
  311. package/dist/ui/src/hooks/useOutsideAlerter.d.ts +5 -0
  312. package/dist/ui/src/icons/GitHubIcon.d.ts +2 -0
  313. package/dist/ui/src/icons/HandleIcon.d.ts +1 -0
  314. package/dist/ui/src/icons/Icon.d.ts +20 -0
  315. package/dist/ui/src/icons/cool_icon_keys.d.ts +1 -0
  316. package/dist/ui/src/icons/icon_keys.d.ts +1 -0
  317. package/dist/ui/src/icons/index.d.ts +6 -0
  318. package/dist/ui/src/index.d.ts +5 -0
  319. package/dist/ui/src/styles.d.ts +12 -0
  320. package/dist/ui/src/util/chip_colors.d.ts +4 -0
  321. package/dist/ui/src/util/cls.d.ts +2 -0
  322. package/dist/ui/src/util/debounce.d.ts +10 -0
  323. package/dist/ui/src/util/hash.d.ts +1 -0
  324. package/dist/ui/src/util/index.d.ts +4 -0
  325. package/dist/ui/src/util/key_to_icon_component.d.ts +1 -0
  326. package/package.json +84 -0
  327. package/src/components/ApiExplorer/ApiExplorer.tsx +290 -0
  328. package/src/components/ApiExplorer/EndpointDetail.tsx +271 -0
  329. package/src/components/ApiExplorer/TryItPanel.tsx +510 -0
  330. package/src/components/ApiExplorer/parseSpec.ts +104 -0
  331. package/src/components/ApiExplorer/types.ts +84 -0
  332. package/src/components/AuthSimulationSelector.tsx +77 -0
  333. package/src/components/Branches/BranchesView.tsx +370 -0
  334. package/src/components/CronJobs/CronJobsView.tsx +346 -0
  335. package/src/components/JSEditor/JSEditor.tsx +1033 -0
  336. package/src/components/JSEditor/JSEditorSidebar.tsx +340 -0
  337. package/src/components/JSEditor/JSMonacoEditor.tsx +390 -0
  338. package/src/components/RLSEditor/PolicyEditor.tsx +444 -0
  339. package/src/components/RLSEditor/RLSEditor.tsx +692 -0
  340. package/src/components/RLSEditor/index.ts +1 -0
  341. package/src/components/RebaseStudio.tsx +121 -0
  342. package/src/components/SQLEditor/ExplainVisualizer.tsx +128 -0
  343. package/src/components/SQLEditor/MonacoEditor.tsx +203 -0
  344. package/src/components/SQLEditor/SQLEditor.tsx +1419 -0
  345. package/src/components/SQLEditor/SQLEditorSidebar.tsx +174 -0
  346. package/src/components/SQLEditor/SchemaBrowser.tsx +158 -0
  347. package/src/components/SchemaVisualizer/RelationEdge.tsx +102 -0
  348. package/src/components/SchemaVisualizer/SchemaVisualizer.tsx +665 -0
  349. package/src/components/SchemaVisualizer/TableNode.tsx +257 -0
  350. package/src/components/SchemaVisualizer/index.ts +5 -0
  351. package/src/components/SchemaVisualizer/schema-visualizer.utils.ts +140 -0
  352. package/src/components/SchemaVisualizer/useSchemaGraph.ts +397 -0
  353. package/src/components/StorageView/StorageView.tsx +1035 -0
  354. package/src/components/StudioHomePage.tsx +357 -0
  355. package/src/index.ts +31 -0
  356. package/src/utils/entities.ts +2 -0
  357. package/src/utils/pgColumnToProperty.test.ts +401 -0
  358. package/src/utils/pgColumnToProperty.ts +275 -0
  359. package/src/utils/sql_utils.test.ts +265 -0
  360. package/src/utils/sql_utils.ts +291 -0
  361. package/src/vite-env.d.ts +1 -0
@@ -0,0 +1,6 @@
1
+ import { ModeController } from "./index";
2
+ /**
3
+ * Use this hook to build a color mode controller that determines
4
+ * the theme of the CMS
5
+ */
6
+ export declare function useBuildModeController(): ModeController;
@@ -0,0 +1,57 @@
1
+ import { MutableRefObject } from "react";
2
+ export interface UseClipboardProps {
3
+ /**
4
+ * It's callback function that is called after the `copy` command
5
+ * is executed.
6
+ *
7
+ * @param text: The selected clipboard text.
8
+ */
9
+ onSuccess?: (text: string) => void;
10
+ /**
11
+ * Triggers when the hook encounters an error.
12
+ * If passed hook won't throw an error.
13
+ *
14
+ * @param error: cause of the error
15
+ */
16
+ onError?: (error: string) => void;
17
+ /**
18
+ * Disables the new clipboard API `navigator.clipboard` even if
19
+ * it is supported.
20
+ */
21
+ disableClipboardAPI?: boolean;
22
+ /**
23
+ * revert back the isCopied flag to false again if a value is set.
24
+ */
25
+ copiedDuration?: number;
26
+ }
27
+ export interface useClipboardReturnType {
28
+ /**
29
+ * Use ref to pull the text content from.
30
+ */
31
+ ref: MutableRefObject<any>;
32
+ /**
33
+ * Use it to perform the copy operation
34
+ */
35
+ copy: (text?: string) => void;
36
+ /**
37
+ * Use it to perform the cut operation
38
+ */
39
+ cut: () => void;
40
+ /**
41
+ * Indicates wheater the content was successfully copied or not.
42
+ */
43
+ isCoppied: boolean;
44
+ /**
45
+ * Current selected clipboard content.
46
+ */
47
+ clipboard: string;
48
+ /**
49
+ * Clears the user clipboard.
50
+ */
51
+ clearClipboard: () => void;
52
+ /**
53
+ * Check to see if the browser supports the new `navigator.clipboard` API.
54
+ */
55
+ isSupported: () => boolean;
56
+ }
57
+ export declare const useClipboard: (options?: UseClipboardProps) => useClipboardReturnType;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Custom hook for managing collapsed/expanded state of navigation groups
3
+ * with localStorage persistence. Automatically cleans up stale group entries
4
+ * when groups are removed from the navigation.
5
+ *
6
+ * @param groupNames - Array of group names to track
7
+ * @param namespace - Namespace for localStorage key (e.g., "home", "drawer") to allow independent state
8
+ */
9
+ export declare function useCollapsedGroups(groupNames: string[], namespace?: string): {
10
+ isGroupCollapsed: (name: string) => boolean;
11
+ toggleGroupCollapsed: (name: string) => void;
12
+ };
@@ -0,0 +1,11 @@
1
+ import type { CustomizationController } from "@rebasepro/types";
2
+ /**
3
+ * Use this hook to retrieve the customization controller.
4
+ * This hook includes all the customization options that can be used
5
+ * to customize the CMS.
6
+ *
7
+ * You will likely not need to use this hook directly.
8
+ *
9
+ * @group Hooks and utilities
10
+ */
11
+ export declare const useCustomizationController: () => CustomizationController;
@@ -0,0 +1,11 @@
1
+ import type { DialogsController } from "@rebasepro/types";
2
+ /**
3
+ * Use this hook to open a dialog imperatively.
4
+ * Alternatively, you can use dialogs declaratively using the `Dialog` component.
5
+ *
6
+ * Consider that in order to use this hook you need to have a parent
7
+ * `Rebase`
8
+ *
9
+ * @group Hooks and utilities
10
+ */
11
+ export declare const useDialogsController: () => DialogsController;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Hook to retrieve the {@link EffectiveRoleController}
3
+ *
4
+ * @see EffectiveRoleController
5
+ * @category Hooks and utilities
6
+ */
7
+ export declare const useEffectiveRoleController: () => import("@rebasepro/types").EffectiveRoleController;
@@ -0,0 +1,12 @@
1
+ import { User, UserManagementDelegate } from "@rebasepro/types";
2
+ /**
3
+ * Use this hook to get the internal user management of the app.
4
+ * Note that this is different from the user management plugin controller.
5
+ * This controller will be eventually replaced by the one provided
6
+ * by the user management plugin.
7
+ *
8
+ * Use at your own risk!
9
+ *
10
+ * @group Hooks and utilities
11
+ */
12
+ export declare function useInternalUserManagementController<USER extends User>(): UserManagementDelegate<USER> | undefined;
@@ -0,0 +1 @@
1
+ export declare const useLargeLayout: () => boolean;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Use this controller to change color mode
3
+ * @group Hooks and utilities
4
+ */
5
+ export interface ModeController {
6
+ mode: "light" | "dark";
7
+ setMode: (mode: "light" | "dark" | "system") => void;
8
+ }
9
+ /**
10
+ * Hook to retrieve the current mode ("light" | "dark"), and `setMode`
11
+ * or `toggle` functions to change it.
12
+ *
13
+ * Consider that in order to use this hook you need to have a parent
14
+ * `Rebase`
15
+ *
16
+ * @see ModeController
17
+ * @group Hooks and utilities
18
+ */
19
+ export declare const useModeController: () => ModeController;
@@ -0,0 +1,12 @@
1
+ import type { EntityCollection } from "@rebasepro/types";
2
+ import { Entity } from "@rebasepro/types";
3
+ /**
4
+ * Hook to evaluate roles and permissions for the current user.
5
+ * It abstracts away the need to pass `authController` to permission evaluation functions.
6
+ */
7
+ export declare function usePermissions(): {
8
+ canCreate: (collection: EntityCollection<any>, path: string) => boolean;
9
+ canEdit: (collection: EntityCollection<any>, path: string, entity: Entity<any> | null) => boolean;
10
+ canDelete: (collection: EntityCollection<any>, path: string, entity: Entity<any> | null) => boolean;
11
+ canRead: (collection: EntityCollection<any>) => boolean;
12
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Hook to retrieve the full RebaseClient instance from context.
3
+ * Returns `undefined` if no client was provided to `<Rebase>`.
4
+ */
5
+ export declare function useRebaseClient<T = any>(): T | undefined;
@@ -0,0 +1,11 @@
1
+ import { AuthController, RebaseContext, User } from "@rebasepro/types";
2
+ /**
3
+ * Hook to retrieve the {@link RebaseContext}.
4
+ *
5
+ * Consider that in order to use this hook you need to have a parent
6
+ * `Rebase` component.
7
+ *
8
+ * @see RebaseContext
9
+ * @group Hooks and utilities
10
+ */
11
+ export declare const useRebaseContext: <USER extends User = User, AuthControllerType extends AuthController<USER> = AuthController<USER>>() => RebaseContext<USER, AuthControllerType>;
@@ -0,0 +1,34 @@
1
+ import React from "react";
2
+ import type { RebaseRegistryController, RebaseCMSConfig, RebaseStudioConfig, RebaseAuthConfig } from "@rebasepro/types";
3
+ /**
4
+ * Split into two contexts to prevent infinite re-render loops:
5
+ * - DispatchContext: stable register/unregister functions (never changes identity)
6
+ * - StateContext: the current config values (changes when modules register)
7
+ *
8
+ * Feature components (RebaseAuth, RebaseCMS, RebaseStudio) only consume
9
+ * the dispatch context, so registering does NOT cause them to re-render.
10
+ * RebaseShell consumes state context to read the collected configs.
11
+ */
12
+ interface RegistryDispatch {
13
+ registerCMS: (config: RebaseCMSConfig) => void;
14
+ unregisterCMS: () => void;
15
+ registerStudio: (config: RebaseStudioConfig) => void;
16
+ unregisterStudio: () => void;
17
+ registerAuth: (config: RebaseAuthConfig) => void;
18
+ unregisterAuth: () => void;
19
+ }
20
+ export declare function RebaseRegistryProvider({ children }: {
21
+ children: React.ReactNode;
22
+ }): import("react/jsx-runtime").JSX.Element;
23
+ /**
24
+ * Returns the full registry (state + dispatch).
25
+ * Use this in RebaseShell where you need to read configs.
26
+ */
27
+ export declare function useRebaseRegistry(): RebaseRegistryController;
28
+ /**
29
+ * Returns only the stable dispatch functions.
30
+ * Use this in feature components (RebaseAuth, RebaseCMS, RebaseStudio)
31
+ * to avoid re-render loops.
32
+ */
33
+ export declare function useRebaseRegistryDispatch(): RegistryDispatch;
34
+ export {};
@@ -0,0 +1,18 @@
1
+ import type { SlotName, SlotRegistry } from "@rebasepro/types";
2
+ import React from "react";
3
+ /**
4
+ * Hook that retrieves and renders all slot contributions for a given slot name.
5
+ *
6
+ * @param slot - The slot name to render contributions for.
7
+ * @param props - Props passed to each slot component.
8
+ * @returns An array of rendered React nodes, each wrapped in an ErrorBoundary.
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * const actions = useSlot("home.actions", { context });
13
+ * return <div>{actions}</div>;
14
+ * ```
15
+ *
16
+ * @group Hooks
17
+ */
18
+ export declare function useSlot<K extends SlotName>(slot: K, props: SlotRegistry[K]): React.ReactNode[];
@@ -0,0 +1,20 @@
1
+ import type { SnackbarMessageType } from "@rebasepro/types";
2
+ import React from "react";
3
+ /**
4
+ * Hook to retrieve the SnackbarContext.
5
+ *
6
+ * Consider that in order to use this hook you need to have a parent
7
+ * `Rebase`
8
+ *
9
+ * @see SnackbarController
10
+ * @group Hooks and utilities
11
+ */
12
+ export declare const useSnackbarController: () => {
13
+ open: (props: {
14
+ type: SnackbarMessageType;
15
+ title?: string;
16
+ message: React.ReactNode;
17
+ autoHideDuration?: number;
18
+ }) => void;
19
+ close: () => void;
20
+ };
@@ -0,0 +1,7 @@
1
+ import type { EntityCollection } from "@rebasepro/types";
2
+ import { StorageSource } from "@rebasepro/types";
3
+ /**
4
+ * Use this hook to get the storage source being used
5
+ * @group Hooks and utilities
6
+ */
7
+ export declare const useStorageSource: (collection?: EntityCollection) => StorageSource;
@@ -0,0 +1,91 @@
1
+ import React from "react";
2
+ import type { CollectionRegistryController, SideEntityController, UrlController, NavigationStateController } from "@rebasepro/types";
3
+ export interface BreadcrumbEntry {
4
+ title: string;
5
+ url: string;
6
+ count?: number | null;
7
+ id?: string;
8
+ }
9
+ export interface BreadcrumbsController {
10
+ breadcrumbs: BreadcrumbEntry[];
11
+ set: (props: {
12
+ breadcrumbs: BreadcrumbEntry[];
13
+ }) => void;
14
+ updateCount: (id: string, count: number | null | undefined) => void;
15
+ }
16
+ /**
17
+ * StudioBridge provides optional CMS capabilities to Studio components.
18
+ * When CMS is present, a bridge provider injects real implementations.
19
+ * When CMS is absent, noop defaults ensure Studio works standalone.
20
+ */
21
+ export interface StudioBridge {
22
+ collectionRegistry: CollectionRegistryController;
23
+ sideEntityController: SideEntityController;
24
+ urlController: UrlController;
25
+ navigationState: NavigationStateController;
26
+ breadcrumbs: BreadcrumbsController;
27
+ }
28
+ export declare const StudioBridgeContext: React.Context<StudioBridge>;
29
+ /**
30
+ * Provider that injects CMS capabilities into Studio.
31
+ * Accepts partial overrides — any field not provided falls back to noop.
32
+ *
33
+ * Usage (in app wiring, when CMS is present):
34
+ * ```tsx
35
+ * <StudioBridgeProvider value={{
36
+ * collectionRegistry: useCollectionRegistryController(),
37
+ * sideEntityController: useSideEntityController(),
38
+ * urlController: useUrlController(),
39
+ * navigationState: useNavigationStateController(),
40
+ * breadcrumbs: useBreadcrumbsController(),
41
+ * }}>
42
+ * <RebaseStudio ... />
43
+ * </StudioBridgeProvider>
44
+ * ```
45
+ */
46
+ export declare function StudioBridgeProvider({ value, children }: {
47
+ value: Partial<StudioBridge>;
48
+ children: React.ReactNode;
49
+ }): import("react/jsx-runtime").JSX.Element;
50
+ /** Collection registry — returns noop if CMS is not present. */
51
+ export declare function useStudioCollectionRegistry(): CollectionRegistryController;
52
+ /** Side entity controller — returns noop if CMS is not present. */
53
+ export declare function useStudioSideEntityController(): SideEntityController;
54
+ /** URL controller — returns noop if CMS is not present. */
55
+ export declare function useStudioUrlController(): UrlController;
56
+ /** Navigation state — returns noop if CMS is not present. */
57
+ export declare function useStudioNavigationState(): NavigationStateController;
58
+ /** Breadcrumbs controller — returns noop if CMS is not present. */
59
+ export declare function useStudioBreadcrumbs(): BreadcrumbsController;
60
+ /**
61
+ * Registry that controllers use to self-register their implementations
62
+ * into the Studio bridge. Each controller calls `register(key, value)`
63
+ * on mount and `unregister(key)` on unmount.
64
+ */
65
+ export interface StudioBridgeRegistry {
66
+ register: <K extends keyof StudioBridge>(key: K, value: StudioBridge[K]) => void;
67
+ unregister: (key: keyof StudioBridge) => void;
68
+ }
69
+ export declare const StudioBridgeRegistryContext: React.Context<StudioBridgeRegistry | null>;
70
+ /**
71
+ * Provider that creates a self-assembling bridge.
72
+ *
73
+ * Mount this above the controller providers. Each controller calls
74
+ * `useBridgeRegistration(key, value)` to inject its implementation.
75
+ * The bridge context value is automatically kept in sync.
76
+ *
77
+ * ```tsx
78
+ * <StudioBridgeRegistryProvider>
79
+ * <CollectionRegistryProvider> // auto-registers
80
+ * <SideEntityProvider> // auto-registers
81
+ * <UrlProvider> // auto-registers
82
+ * <RebaseStudio /> // consumes bridge
83
+ * </UrlProvider>
84
+ * </SideEntityProvider>
85
+ * </CollectionRegistryProvider>
86
+ * </StudioBridgeRegistryProvider>
87
+ * ```
88
+ */
89
+ export declare function StudioBridgeRegistryProvider({ children }: {
90
+ children: React.ReactNode;
91
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Internal hook for translating Rebase UI strings.
3
+ *
4
+ * Uses the `rebase_core` i18next namespace that is initialised by
5
+ * `RebaseI18nProvider`. Do NOT use `react-i18next` directly in internal
6
+ * components — always go through this hook so the namespace is consistent.
7
+ *
8
+ * @example
9
+ * const { t } = useTranslation();
10
+ * <Button>{t("save")}</Button>
11
+ *
12
+ * @internal
13
+ */
14
+ export declare function useTranslation(): {
15
+ t: (key: string, vars?: Record<string, string>) => string;
16
+ i18n: import("i18next").i18n;
17
+ };
@@ -0,0 +1,12 @@
1
+ import { UnsavedChangesDialogProps } from "../components/UnsavedChangesDialog";
2
+ /**
3
+ * A single, unified hook to prevent navigation when there are unsaved changes.
4
+ *
5
+ * It automatically handles:
6
+ * 1. Internal React Router navigation using `useBlocker`.
7
+ * 2. External browser navigation (page refresh, tab close) using `beforeunload`.
8
+ */
9
+ export declare function useUnsavedChangesDialog(when: boolean, onOk: () => void): {
10
+ dialogProps: UnsavedChangesDialogProps;
11
+ triggerDialog: () => void;
12
+ };
@@ -0,0 +1,8 @@
1
+ import { UserConfigurationPersistence } from "@rebasepro/types";
2
+ /**
3
+ * Use this controller to access the configuration that is stored externally,
4
+ * and not defined in code
5
+ *
6
+ * @group Hooks and utilities
7
+ */
8
+ export declare const useUserConfigurationPersistence: () => UserConfigurationPersistence | undefined;
@@ -0,0 +1,21 @@
1
+ import { AuthController, Authenticator, RebaseData, StorageSource, User } from "@rebasepro/types";
2
+ /**
3
+ * This hook is used internally for validating an authenticator.
4
+ *
5
+ * @param authController
6
+ * @param authentication
7
+ * @param storageSource
8
+ * @param data
9
+ */
10
+ export declare function useValidateAuthenticator<USER extends User = any>({ disabled, authController, authenticator, storageSource, data }: {
11
+ disabled?: boolean;
12
+ authController: AuthController<USER>;
13
+ authenticator?: boolean | Authenticator<USER>;
14
+ data: RebaseData;
15
+ storageSource: StorageSource;
16
+ }): {
17
+ canAccessMainView: boolean;
18
+ authLoading: boolean;
19
+ notAllowedError: any;
20
+ authVerified: boolean;
21
+ };
@@ -0,0 +1,33 @@
1
+ import { PropsWithChildren } from "react";
2
+ import { RebaseTranslations } from "@rebasepro/types";
3
+ export declare const REBASE_LOCALE_STORAGE_KEY = "rebase_locale";
4
+ /** DeepPartial helper — allows partial overrides at any nesting level */
5
+ type DeepPartial<T> = T extends object ? {
6
+ [K in keyof T]?: DeepPartial<T[K]>;
7
+ } : T;
8
+ export interface RebaseI18nProviderProps {
9
+ /** BCP-47 locale tag, e.g. "en", "es", "fr". Defaults to "en". */
10
+ locale?: string;
11
+ /**
12
+ * Override or extend any Rebase UI string, keyed by locale.
13
+ *
14
+ * @example
15
+ * translations={{
16
+ * en: { save: "Publish" },
17
+ * es: { save: "Publicar", discard: "Descartar" }
18
+ * }}
19
+ */
20
+ translations?: {
21
+ [locale: string]: DeepPartial<RebaseTranslations>;
22
+ };
23
+ }
24
+ /**
25
+ * Initialises a dedicated i18next instance for Rebase's internal UI strings.
26
+ *
27
+ * This instance is isolated from any app-level i18next configuration the
28
+ * consumer may have. Mount this at the top of the Rebase component tree.
29
+ *
30
+ * @internal
31
+ */
32
+ export declare function RebaseI18nProvider({ locale, translations, children }: PropsWithChildren<RebaseI18nProviderProps>): import("react/jsx-runtime").JSX.Element | null;
33
+ export {};
@@ -0,0 +1,15 @@
1
+ export * from "./core";
2
+ export * from "./hooks";
3
+ export * from "./components";
4
+ export * from "./util";
5
+ export * from "./contexts";
6
+ export * from "./internal/common";
7
+ export * from "./internal/useRestoreScroll";
8
+ export { useUnsavedChangesDialog } from "./hooks/useUnsavedChangesDialog";
9
+ export type { UnsavedChangesDialogProps } from "./components/UnsavedChangesDialog";
10
+ export { UnsavedChangesDialog } from "./components/UnsavedChangesDialog";
11
+ export * from "./i18n/RebaseI18nProvider";
12
+ export * from "./locales/en";
13
+ export * from "./locales/es";
14
+ export * from "./hooks/useStudioBridge";
15
+ export { useBridgeRegistration } from "./hooks/useBridgeRegistration";
@@ -0,0 +1,3 @@
1
+ export declare const CONTAINER_FULL_WIDTH = "100vw";
2
+ export declare const ADDITIONAL_TAB_WIDTH = "55vw";
3
+ export declare const FORM_CONTAINER_WIDTH = "768px";
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ export declare function useRestoreScroll(): {
3
+ containerRef: React.RefObject<HTMLDivElement | null>;
4
+ scroll: number;
5
+ direction: "up" | "down";
6
+ };
@@ -0,0 +1,2 @@
1
+ import { RebaseTranslations } from "@rebasepro/types";
2
+ export declare const de: RebaseTranslations;
@@ -0,0 +1,10 @@
1
+ import { RebaseTranslations } from "@rebasepro/types";
2
+ /**
3
+ * English baseline translations for @rebasepro/core.
4
+ *
5
+ * This is the single source of truth for all default UI strings.
6
+ * Override any key via the `translations` prop on Rebase entry-point components.
7
+ *
8
+ * @group Core
9
+ */
10
+ export declare const en: RebaseTranslations;
@@ -0,0 +1,10 @@
1
+ import { RebaseTranslations } from "@rebasepro/types";
2
+ /**
3
+ * Spanish baseline translations for @rebasepro/core.
4
+ *
5
+ * This is the single source of truth for all default UI strings in Spanish.
6
+ * Override any key via the `translations` prop on Rebase entry-point components.
7
+ *
8
+ * @group Core
9
+ */
10
+ export declare const es: RebaseTranslations;
@@ -0,0 +1,2 @@
1
+ import { RebaseTranslations } from "@rebasepro/types";
2
+ export declare const fr: RebaseTranslations;
@@ -0,0 +1,2 @@
1
+ import { RebaseTranslations } from "@rebasepro/types";
2
+ export declare const hi: RebaseTranslations;
@@ -0,0 +1,2 @@
1
+ import { RebaseTranslations } from "@rebasepro/types";
2
+ export declare const it: RebaseTranslations;
@@ -0,0 +1,7 @@
1
+ import { RebaseTranslations } from "@rebasepro/types";
2
+ /**
3
+ * Portuguese (pt) translations for @rebasepro/core.
4
+ *
5
+ * @group Core
6
+ */
7
+ export declare const pt: RebaseTranslations;
@@ -0,0 +1 @@
1
+ export declare const STUDIO_NAVIGATION_GROUPS: string[];
@@ -0,0 +1,2 @@
1
+ import { FormexController } from "@rebasepro/formex";
2
+ export declare function createFormexStub<T extends object>(values: T): FormexController<T>;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Saves data to the in-memory cache and persists it individually in `sessionStorage`.
3
+ * @param path - The unique path/key for the data.
4
+ * @param data - The data to cache and persist.
5
+ */
6
+ export declare function saveEntityToCache(path: string, data: object): void;
7
+ export declare function removeEntityFromMemoryCache(path: string): void;
8
+ export declare function saveEntityToMemoryCache(path: string, data: object): void;
9
+ export declare function getEntityFromMemoryCache(path: string): object | undefined;
10
+ export declare function hasEntityInCache(path: string): boolean;
11
+ /**
12
+ * Retrieves an entity from the in-memory cache or `sessionStorage`.
13
+ * If the entity is not in the cache but exists in `sessionStorage`, it loads it into the cache.
14
+ * @param path - The unique path/key for the entity.
15
+ * @returns The cached entity or `undefined` if not found.
16
+ */
17
+ export declare function getEntityFromCache(path: string): object | undefined;
18
+ /**
19
+ * Removes an entity from both the in-memory cache and `sessionStorage`.
20
+ * @param path - The unique path/key for the entity to remove.
21
+ */
22
+ export declare function removeEntityFromCache(path: string): void;
23
+ /**
24
+ * Clears the entire in-memory cache and removes all related entities from `sessionStorage`.
25
+ */
26
+ export declare function clearEntityCache(): void;
27
+ export declare function flattenKeys(obj: Record<string, unknown> | unknown[], prefix?: string, result?: string[]): string[];
@@ -0,0 +1,5 @@
1
+ import { EnumValueConfig } from "@rebasepro/types";
2
+ import { ChipColorScheme } from "@rebasepro/ui";
3
+ export declare function getColorScheme(enumValues: EnumValueConfig[], key: string | number): ChipColorScheme | undefined;
4
+ export declare function isEnumValueDisabled(labelOrConfig?: string | EnumValueConfig): boolean | undefined;
5
+ export declare function buildEnumLabel(labelOrConfig?: string | EnumValueConfig): string | undefined;
@@ -0,0 +1,5 @@
1
+ import Fuse from "fuse.js";
2
+ export declare const iconsSearch: Fuse<{
3
+ key: string;
4
+ synonyms: string;
5
+ }>;
@@ -0,0 +1 @@
1
+ export declare const iconSynonyms: Record<string, string>;
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { IconColor } from "@rebasepro/ui";
3
+ /**
4
+ * Render an icon element from a string key or existing React element.
5
+ * This resolves the icon from the lucide-react icons map directly.
6
+ */
7
+ export declare function getIcon(iconKey?: string | React.ReactNode, className?: string, color?: IconColor, size?: "smallest" | "small" | "medium" | "large" | number): React.ReactElement | undefined;
8
+ export type IconViewProps = {
9
+ slug: string;
10
+ name: string;
11
+ singularName?: string;
12
+ group?: string;
13
+ icon?: string | React.ReactNode;
14
+ };
15
+ export declare const IconForView: React.NamedExoticComponent<{
16
+ collectionOrView?: IconViewProps;
17
+ color?: IconColor;
18
+ className?: string;
19
+ size?: "smallest" | "small" | "medium" | "large" | number;
20
+ }>;
@@ -0,0 +1,10 @@
1
+ export * from "./icon_list";
2
+ export * from "./icon_synonyms";
3
+ export * from "./icons";
4
+ export * from "./createFormexStub";
5
+ export * from "./entity_cache";
6
+ export * from "./useStorageUploadController";
7
+ export * from "./useTraceUpdate";
8
+ export * from "./previews";
9
+ export * from "./enums";
10
+ export * from "./constants";
@@ -0,0 +1,4 @@
1
+ import type { EntityCollection, PropertyConfig } from "@rebasepro/types";
2
+ import { AuthController } from "@rebasepro/types";
3
+ export declare function getEntityPreviewKeys(authController: AuthController, targetCollection: EntityCollection<any>, fields: Record<string, PropertyConfig>, previewProperties?: string[], limit?: number): string[];
4
+ export declare function getEntityTitlePropertyKey<M extends Record<string, any>>(collection: EntityCollection<M>, propertyConfigs: Record<string, PropertyConfig>): string | undefined;