@rebasepro/core 0.0.1-canary.1 → 0.0.1-canary.4d4fb3e

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 (538) hide show
  1. package/README.md +1 -1
  2. package/dist/components/ErrorView.d.ts +1 -1
  3. package/dist/components/LanguageToggle.d.ts +1 -0
  4. package/dist/components/LoginView/LoginView.d.ts +68 -0
  5. package/dist/components/LoginView/index.d.ts +2 -0
  6. package/dist/components/RebaseAuth.d.ts +10 -0
  7. package/dist/components/UserSelectPopover.d.ts +62 -0
  8. package/dist/components/common/index.d.ts +3 -3
  9. package/dist/components/common/types.d.ts +2 -1
  10. package/dist/components/common/useColumnsIds.d.ts +6 -3
  11. package/dist/components/common/{useDataSourceTableController.d.ts → useDataTableController.d.ts} +5 -4
  12. package/dist/components/index.d.ts +6 -25
  13. package/dist/contexts/CustomizationControllerContext.d.ts +1 -1
  14. package/dist/contexts/DataDriverContext.d.ts +3 -0
  15. package/dist/contexts/DatabaseAdminContext.d.ts +3 -0
  16. package/dist/contexts/DialogsProvider.d.ts +1 -1
  17. package/dist/contexts/EffectiveRoleController.d.ts +1 -1
  18. package/dist/contexts/RebaseClientInstanceContext.d.ts +6 -0
  19. package/dist/contexts/RebaseDataContext.d.ts +3 -0
  20. package/dist/contexts/index.d.ts +3 -5
  21. package/dist/core/PluginLifecycleManager.d.ts +17 -0
  22. package/dist/core/PluginProviderStack.d.ts +21 -0
  23. package/dist/core/Rebase.d.ts +2 -1
  24. package/dist/core/RebaseProps.d.ts +136 -0
  25. package/dist/core/index.d.ts +1 -6
  26. package/dist/hooks/data/delete.d.ts +7 -9
  27. package/dist/hooks/data/save.d.ts +7 -10
  28. package/dist/hooks/data/useCollectionFetch.d.ts +3 -2
  29. package/dist/hooks/data/useData.d.ts +13 -0
  30. package/dist/hooks/data/useEntityFetch.d.ts +4 -3
  31. package/dist/hooks/data/useRelationSelector.d.ts +9 -2
  32. package/dist/hooks/index.d.ts +8 -13
  33. package/dist/hooks/useAuthSubscription.d.ts +2 -0
  34. package/dist/hooks/useBridgeRegistration.d.ts +18 -0
  35. package/dist/hooks/useBuildEffectiveRoleController.d.ts +1 -1
  36. package/dist/hooks/useCustomizationController.d.ts +1 -1
  37. package/dist/hooks/useDialogsController.d.ts +1 -1
  38. package/dist/hooks/usePermissions.d.ts +2 -1
  39. package/dist/hooks/useRebaseClient.d.ts +5 -0
  40. package/dist/hooks/useRebaseRegistry.d.ts +34 -0
  41. package/dist/hooks/useSlot.d.ts +18 -0
  42. package/dist/hooks/useSnackbarController.d.ts +1 -1
  43. package/dist/hooks/useStorageSource.d.ts +2 -1
  44. package/dist/hooks/useStudioBridge.d.ts +91 -0
  45. package/dist/hooks/useTranslation.d.ts +17 -0
  46. package/dist/hooks/useValidateAuthenticator.d.ts +4 -4
  47. package/dist/i18n/RebaseI18nProvider.d.ts +33 -0
  48. package/dist/index.d.ts +7 -7
  49. package/dist/index.es.js +13861 -32681
  50. package/dist/index.es.js.map +1 -1
  51. package/dist/index.umd.js +13843 -32679
  52. package/dist/index.umd.js.map +1 -1
  53. package/dist/locales/de.d.ts +2 -0
  54. package/dist/locales/en.d.ts +10 -0
  55. package/dist/locales/es.d.ts +10 -0
  56. package/dist/locales/fr.d.ts +2 -0
  57. package/dist/locales/hi.d.ts +2 -0
  58. package/dist/locales/it.d.ts +2 -0
  59. package/dist/locales/pt.d.ts +7 -0
  60. package/dist/util/icon_list.d.ts +1 -1
  61. package/dist/util/index.d.ts +0 -2
  62. package/dist/util/previews.d.ts +2 -1
  63. package/dist/util/useStorageUploadController.d.ts +5 -3
  64. package/dist/vitePlugin.js +30 -0
  65. package/package.json +18 -37
  66. package/src/components/ConfirmationDialog.tsx +4 -2
  67. package/src/components/Debug/UIReferenceView.tsx +238 -0
  68. package/src/components/ErrorView.tsx +1 -1
  69. package/src/components/LanguageToggle.tsx +66 -0
  70. package/src/components/LoginView/LoginView.tsx +727 -0
  71. package/src/components/LoginView/index.ts +2 -0
  72. package/src/components/NotFoundPage.tsx +5 -3
  73. package/src/components/RebaseAuth.tsx +27 -0
  74. package/src/components/UnsavedChangesDialog.tsx +6 -3
  75. package/src/components/UserDisplay.tsx +1 -2
  76. package/src/components/UserSelectPopover.tsx +424 -0
  77. package/src/components/UserSettingsView.tsx +12 -11
  78. package/src/components/common/index.ts +3 -3
  79. package/src/components/common/types.tsx +2 -1
  80. package/src/components/common/useColumnsIds.tsx +31 -19
  81. package/src/components/common/{useDataSourceTableController.tsx → useDataTableController.tsx} +63 -57
  82. package/src/components/index.tsx +12 -32
  83. package/src/contexts/CustomizationControllerContext.tsx +1 -1
  84. package/src/contexts/DataDriverContext.tsx +4 -0
  85. package/src/contexts/DatabaseAdminContext.tsx +4 -0
  86. package/src/contexts/DialogsProvider.tsx +2 -1
  87. package/src/contexts/EffectiveRoleController.tsx +2 -1
  88. package/src/contexts/RebaseClientInstanceContext.tsx +7 -0
  89. package/src/contexts/RebaseDataContext.tsx +4 -0
  90. package/src/contexts/index.ts +3 -5
  91. package/src/core/PluginLifecycleManager.tsx +95 -0
  92. package/src/core/PluginProviderStack.tsx +40 -0
  93. package/src/core/Rebase.tsx +151 -104
  94. package/src/core/RebaseProps.tsx +166 -0
  95. package/src/core/RebaseRoutes.tsx +3 -26
  96. package/src/core/index.tsx +1 -10
  97. package/src/hooks/data/delete.ts +8 -22
  98. package/src/hooks/data/save.ts +17 -19
  99. package/src/hooks/data/useCollectionFetch.tsx +42 -36
  100. package/src/hooks/data/useData.tsx +18 -0
  101. package/src/hooks/data/useEntityFetch.tsx +12 -25
  102. package/src/hooks/data/useRelationSelector.tsx +93 -49
  103. package/src/hooks/index.tsx +10 -15
  104. package/src/hooks/useAuthSubscription.ts +80 -0
  105. package/src/hooks/useBackendStorageSource.ts +25 -10
  106. package/src/hooks/useBridgeRegistration.tsx +32 -0
  107. package/src/hooks/useBrowserTitleAndIcon.tsx +1 -3
  108. package/src/hooks/useBuildAdminModeController.tsx +3 -3
  109. package/src/hooks/useBuildEffectiveRoleController.tsx +2 -1
  110. package/src/hooks/useBuildLocalConfigurationPersistence.tsx +2 -1
  111. package/src/hooks/useCustomizationController.tsx +1 -1
  112. package/src/hooks/useDialogsController.tsx +2 -1
  113. package/src/hooks/usePermissions.ts +2 -1
  114. package/src/hooks/useRebaseClient.tsx +10 -0
  115. package/src/hooks/useRebaseContext.tsx +18 -29
  116. package/src/hooks/useRebaseRegistry.tsx +88 -0
  117. package/src/hooks/useSlot.tsx +38 -0
  118. package/src/hooks/useSnackbarController.tsx +2 -2
  119. package/src/hooks/useStorageSource.tsx +2 -1
  120. package/src/hooks/useStudioBridge.tsx +215 -0
  121. package/src/hooks/useTranslation.ts +31 -0
  122. package/src/hooks/useValidateAuthenticator.tsx +6 -6
  123. package/src/i18n/RebaseI18nProvider.tsx +160 -0
  124. package/src/index.ts +11 -9
  125. package/src/locales/de.ts +850 -0
  126. package/src/locales/en.ts +898 -0
  127. package/src/locales/es.ts +860 -0
  128. package/src/locales/fr.ts +849 -0
  129. package/src/locales/hi.ts +849 -0
  130. package/src/locales/it.ts +849 -0
  131. package/src/locales/pt.ts +857 -0
  132. package/src/util/entity_cache.ts +17 -20
  133. package/src/util/icon_list.ts +1 -2
  134. package/src/util/icons.tsx +1 -2
  135. package/src/util/index.ts +2 -2
  136. package/src/util/previews.ts +25 -6
  137. package/src/util/useStorageUploadController.tsx +18 -29
  138. package/dist/app/AppBar.d.ts +0 -12
  139. package/dist/app/Drawer.d.ts +0 -19
  140. package/dist/app/Scaffold.d.ts +0 -34
  141. package/dist/app/index.d.ts +0 -4
  142. package/dist/app/useApp.d.ts +0 -17
  143. package/dist/components/AdminModeSyncer.d.ts +0 -17
  144. package/dist/components/ArrayContainer.d.ts +0 -59
  145. package/dist/components/CircularProgressCenter.d.ts +0 -11
  146. package/dist/components/ClearFilterSortButton.d.ts +0 -5
  147. package/dist/components/DeleteEntityDialog.d.ts +0 -12
  148. package/dist/components/EntityCollectionTable/EntityCollectionRowActions.d.ts +0 -37
  149. package/dist/components/EntityCollectionTable/EntityCollectionTable.d.ts +0 -27
  150. package/dist/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +0 -128
  151. package/dist/components/EntityCollectionTable/PropertyTableCell.d.ts +0 -25
  152. package/dist/components/EntityCollectionTable/column_utils.d.ts +0 -15
  153. package/dist/components/EntityCollectionTable/fields/TableMultipleRelationField.d.ts +0 -20
  154. package/dist/components/EntityCollectionTable/fields/TableReferenceField.d.ts +0 -21
  155. package/dist/components/EntityCollectionTable/fields/TableRelationField.d.ts +0 -21
  156. package/dist/components/EntityCollectionTable/fields/TableRelationSelectorField.d.ts +0 -20
  157. package/dist/components/EntityCollectionTable/fields/TableStorageUpload.d.ts +0 -32
  158. package/dist/components/EntityCollectionTable/index.d.ts +0 -6
  159. package/dist/components/EntityCollectionTable/internal/CollectionTableToolbar.d.ts +0 -16
  160. package/dist/components/EntityCollectionTable/internal/EntityTableCell.d.ts +0 -32
  161. package/dist/components/EntityCollectionTable/internal/EntityTableCellActions.d.ts +0 -9
  162. package/dist/components/EntityCollectionTable/internal/common.d.ts +0 -4
  163. package/dist/components/EntityCollectionTable/internal/popup_field/PopupFormField.d.ts +0 -26
  164. package/dist/components/EntityCollectionTable/internal/popup_field/useDraggable.d.ts +0 -13
  165. package/dist/components/EntityCollectionTable/internal/popup_field/useWindowSize.d.ts +0 -6
  166. package/dist/components/EntityCollectionView/Board.d.ts +0 -2
  167. package/dist/components/EntityCollectionView/BoardColumn.d.ts +0 -42
  168. package/dist/components/EntityCollectionView/BoardColumnTitle.d.ts +0 -9
  169. package/dist/components/EntityCollectionView/BoardSortableList.d.ts +0 -14
  170. package/dist/components/EntityCollectionView/EntityBoardCard.d.ts +0 -26
  171. package/dist/components/EntityCollectionView/EntityCard.d.ts +0 -19
  172. package/dist/components/EntityCollectionView/EntityCollectionBoardView.d.ts +0 -20
  173. package/dist/components/EntityCollectionView/EntityCollectionCardView.d.ts +0 -31
  174. package/dist/components/EntityCollectionView/EntityCollectionView.d.ts +0 -54
  175. package/dist/components/EntityCollectionView/EntityCollectionViewActions.d.ts +0 -14
  176. package/dist/components/EntityCollectionView/EntityCollectionViewStartActions.d.ts +0 -15
  177. package/dist/components/EntityCollectionView/FiltersDialog.d.ts +0 -14
  178. package/dist/components/EntityCollectionView/ViewModeToggle.d.ts +0 -44
  179. package/dist/components/EntityCollectionView/board_types.d.ts +0 -105
  180. package/dist/components/EntityCollectionView/useBoardDataController.d.ts +0 -60
  181. package/dist/components/EntityCollectionView/useSelectionController.d.ts +0 -2
  182. package/dist/components/EntityCollectionView/utils.d.ts +0 -3
  183. package/dist/components/EntityJsonPreview.d.ts +0 -3
  184. package/dist/components/EntityPreview.d.ts +0 -54
  185. package/dist/components/EntityView.d.ts +0 -11
  186. package/dist/components/ErrorBoundary.d.ts +0 -11
  187. package/dist/components/FieldCaption.d.ts +0 -5
  188. package/dist/components/HomePage/ContentHomePage.d.ts +0 -11
  189. package/dist/components/HomePage/FavouritesView.d.ts +0 -3
  190. package/dist/components/HomePage/HomePageDnD.d.ts +0 -77
  191. package/dist/components/HomePage/NavigationCard.d.ts +0 -10
  192. package/dist/components/HomePage/NavigationCardBinding.d.ts +0 -18
  193. package/dist/components/HomePage/NavigationGroup.d.ts +0 -11
  194. package/dist/components/HomePage/RenameGroupDialog.d.ts +0 -9
  195. package/dist/components/HomePage/SmallNavigationCard.d.ts +0 -6
  196. package/dist/components/HomePage/StudioHomePage.d.ts +0 -9
  197. package/dist/components/HomePage/index.d.ts +0 -5
  198. package/dist/components/PropertyCollectionView.d.ts +0 -22
  199. package/dist/components/PropertyConfigBadge.d.ts +0 -6
  200. package/dist/components/PropertyIdCopyTooltip.d.ts +0 -8
  201. package/dist/components/ReferenceTable/EntitySelectionTable.d.ts +0 -58
  202. package/dist/components/ReferenceWidget.d.ts +0 -29
  203. package/dist/components/RelationSelector.d.ts +0 -32
  204. package/dist/components/SearchIconsView.d.ts +0 -5
  205. package/dist/components/SelectableTable/SelectableTable.d.ts +0 -89
  206. package/dist/components/SelectableTable/SelectableTableContext.d.ts +0 -4
  207. package/dist/components/SelectableTable/filters/BooleanFilterField.d.ts +0 -9
  208. package/dist/components/SelectableTable/filters/DateTimeFilterField.d.ts +0 -12
  209. package/dist/components/SelectableTable/filters/ReferenceFilterField.d.ts +0 -15
  210. package/dist/components/SelectableTable/filters/RelationFilterField.d.ts +0 -12
  211. package/dist/components/SelectableTable/filters/StringNumberFilterField.d.ts +0 -13
  212. package/dist/components/VirtualTable/VirtualTable.d.ts +0 -11
  213. package/dist/components/VirtualTable/VirtualTableCell.d.ts +0 -20
  214. package/dist/components/VirtualTable/VirtualTableHeader.d.ts +0 -29
  215. package/dist/components/VirtualTable/VirtualTableHeaderRow.d.ts +0 -2
  216. package/dist/components/VirtualTable/VirtualTableProps.d.ts +0 -239
  217. package/dist/components/VirtualTable/VirtualTableRow.d.ts +0 -3
  218. package/dist/components/VirtualTable/fields/VirtualTableDateField.d.ts +0 -12
  219. package/dist/components/VirtualTable/fields/VirtualTableInput.d.ts +0 -9
  220. package/dist/components/VirtualTable/fields/VirtualTableNumberInput.d.ts +0 -8
  221. package/dist/components/VirtualTable/fields/VirtualTableSelect.d.ts +0 -15
  222. package/dist/components/VirtualTable/fields/VirtualTableSwitch.d.ts +0 -7
  223. package/dist/components/VirtualTable/fields/VirtualTableUserSelect.d.ts +0 -12
  224. package/dist/components/VirtualTable/index.d.ts +0 -3
  225. package/dist/components/VirtualTable/types.d.ts +0 -37
  226. package/dist/components/admin/RoleChip.d.ts +0 -4
  227. package/dist/components/admin/RolesView.d.ts +0 -4
  228. package/dist/components/admin/UsersView.d.ts +0 -4
  229. package/dist/components/admin/index.d.ts +0 -3
  230. package/dist/components/common/default_entity_actions.d.ts +0 -4
  231. package/dist/components/common/useDebouncedCallback.d.ts +0 -1
  232. package/dist/components/common/useTableSearchHelper.d.ts +0 -11
  233. package/dist/contexts/BreacrumbsContext.d.ts +0 -8
  234. package/dist/contexts/DataSourceContext.d.ts +0 -3
  235. package/dist/contexts/NavigationContext.d.ts +0 -3
  236. package/dist/contexts/SideDialogsControllerContext.d.ts +0 -3
  237. package/dist/contexts/SideEntityControllerContext.d.ts +0 -3
  238. package/dist/core/DefaultAppBar.d.ts +0 -29
  239. package/dist/core/DefaultDrawer.d.ts +0 -29
  240. package/dist/core/DrawerNavigationGroup.d.ts +0 -45
  241. package/dist/core/DrawerNavigationItem.d.ts +0 -10
  242. package/dist/core/EntityEditView.d.ts +0 -47
  243. package/dist/core/EntityEditViewFormActions.d.ts +0 -2
  244. package/dist/core/EntitySidePanel.d.ts +0 -10
  245. package/dist/core/SideDialogs.d.ts +0 -25
  246. package/dist/core/field_configs.d.ts +0 -6
  247. package/dist/form/EntityForm.d.ts +0 -7
  248. package/dist/form/EntityFormActions.d.ts +0 -2
  249. package/dist/form/PropertyFieldBinding.d.ts +0 -30
  250. package/dist/form/components/ErrorFocus.d.ts +0 -4
  251. package/dist/form/components/FieldHelperText.d.ts +0 -12
  252. package/dist/form/components/FormEntry.d.ts +0 -6
  253. package/dist/form/components/FormLayout.d.ts +0 -5
  254. package/dist/form/components/LabelWithIcon.d.ts +0 -14
  255. package/dist/form/components/LabelWithIconAndTooltip.d.ts +0 -15
  256. package/dist/form/components/LocalChangesMenu.d.ts +0 -11
  257. package/dist/form/components/StorageItemPreview.d.ts +0 -13
  258. package/dist/form/components/StorageUploadProgress.d.ts +0 -10
  259. package/dist/form/components/index.d.ts +0 -5
  260. package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.d.ts +0 -9
  261. package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.d.ts +0 -11
  262. package/dist/form/field_bindings/BlockFieldBinding.d.ts +0 -10
  263. package/dist/form/field_bindings/DateTimeFieldBinding.d.ts +0 -11
  264. package/dist/form/field_bindings/KeyValueFieldBinding.d.ts +0 -7
  265. package/dist/form/field_bindings/MapFieldBinding.d.ts +0 -9
  266. package/dist/form/field_bindings/MarkdownEditorFieldBinding.d.ts +0 -11
  267. package/dist/form/field_bindings/MultiSelectFieldBinding.d.ts +0 -9
  268. package/dist/form/field_bindings/MultipleRelationFieldBinding.d.ts +0 -9
  269. package/dist/form/field_bindings/ReadOnlyFieldBinding.d.ts +0 -10
  270. package/dist/form/field_bindings/ReferenceAsStringFieldBinding.d.ts +0 -9
  271. package/dist/form/field_bindings/ReferenceFieldBinding.d.ts +0 -9
  272. package/dist/form/field_bindings/RelationFieldBinding.d.ts +0 -2
  273. package/dist/form/field_bindings/RepeatFieldBinding.d.ts +0 -10
  274. package/dist/form/field_bindings/SelectFieldBinding.d.ts +0 -10
  275. package/dist/form/field_bindings/StorageUploadFieldBinding.d.ts +0 -19
  276. package/dist/form/field_bindings/SwitchFieldBinding.d.ts +0 -9
  277. package/dist/form/field_bindings/TextFieldBinding.d.ts +0 -8
  278. package/dist/form/field_bindings/UserSelectFieldBinding.d.ts +0 -12
  279. package/dist/form/index.d.ts +0 -20
  280. package/dist/form/useClearRestoreValue.d.ts +0 -13
  281. package/dist/form/validation.d.ts +0 -26
  282. package/dist/hooks/data/useDataSource.d.ts +0 -6
  283. package/dist/hooks/navigation/contexts/CMSUrlContext.d.ts +0 -4
  284. package/dist/hooks/navigation/contexts/CollectionRegistryContext.d.ts +0 -4
  285. package/dist/hooks/navigation/contexts/NavigationStateContext.d.ts +0 -4
  286. package/dist/hooks/navigation/contexts/index.d.ts +0 -3
  287. package/dist/hooks/navigation/useBuildCMSUrlController.d.ts +0 -6
  288. package/dist/hooks/navigation/useBuildCollectionRegistryController.d.ts +0 -7
  289. package/dist/hooks/navigation/useBuildNavigationStateController.d.ts +0 -32
  290. package/dist/hooks/navigation/useNavigationRegistry.d.ts +0 -10
  291. package/dist/hooks/navigation/useNavigationResolution.d.ts +0 -5
  292. package/dist/hooks/navigation/useNavigationURLs.d.ts +0 -11
  293. package/dist/hooks/navigation/useResolvedCollections.d.ts +0 -26
  294. package/dist/hooks/navigation/useResolvedViews.d.ts +0 -28
  295. package/dist/hooks/navigation/useTopLevelNavigation.d.ts +0 -26
  296. package/dist/hooks/navigation/utils.d.ts +0 -12
  297. package/dist/hooks/useBreadcrumbsController.d.ts +0 -42
  298. package/dist/hooks/useBuildNavigationController.d.ts +0 -16
  299. package/dist/hooks/useEntitySelectionDialog.d.ts +0 -18
  300. package/dist/hooks/useResolvedNavigationFrom.d.ts +0 -72
  301. package/dist/hooks/useSideDialogsController.d.ts +0 -18
  302. package/dist/hooks/useSideEntityController.d.ts +0 -12
  303. package/dist/internal/useBuildDataSource.d.ts +0 -12
  304. package/dist/internal/useBuildSideDialogsController.d.ts +0 -2
  305. package/dist/internal/useBuildSideEntityController.d.ts +0 -4
  306. package/dist/preview/PropertyPreview.d.ts +0 -6
  307. package/dist/preview/components/ArrayEnumPreview.d.ts +0 -10
  308. package/dist/preview/components/AsyncPreviewComponent.d.ts +0 -11
  309. package/dist/preview/components/BooleanPreview.d.ts +0 -10
  310. package/dist/preview/components/DatePreview.d.ts +0 -17
  311. package/dist/preview/components/EmptyValue.d.ts +0 -6
  312. package/dist/preview/components/EnumValuesChip.d.ts +0 -13
  313. package/dist/preview/components/ImagePreview.d.ts +0 -16
  314. package/dist/preview/components/ReferencePreview.d.ts +0 -16
  315. package/dist/preview/components/RelationPreview.d.ts +0 -16
  316. package/dist/preview/components/StorageThumbnail.d.ts +0 -15
  317. package/dist/preview/components/UrlComponentPreview.d.ts +0 -13
  318. package/dist/preview/components/UserPreview.d.ts +0 -8
  319. package/dist/preview/index.d.ts +0 -24
  320. package/dist/preview/property_previews/ArrayOfMapsPreview.d.ts +0 -5
  321. package/dist/preview/property_previews/ArrayOfReferencesPreview.d.ts +0 -5
  322. package/dist/preview/property_previews/ArrayOfRelationsPreview.d.ts +0 -5
  323. package/dist/preview/property_previews/ArrayOfStorageComponentsPreview.d.ts +0 -5
  324. package/dist/preview/property_previews/ArrayOfStringsPreview.d.ts +0 -5
  325. package/dist/preview/property_previews/ArrayOneOfPreview.d.ts +0 -5
  326. package/dist/preview/property_previews/ArrayPropertyEnumPreview.d.ts +0 -5
  327. package/dist/preview/property_previews/ArrayPropertyPreview.d.ts +0 -5
  328. package/dist/preview/property_previews/MapPropertyPreview.d.ts +0 -8
  329. package/dist/preview/property_previews/NumberPropertyPreview.d.ts +0 -6
  330. package/dist/preview/property_previews/SkeletonPropertyComponent.d.ts +0 -13
  331. package/dist/preview/property_previews/StringPropertyPreview.d.ts +0 -6
  332. package/dist/preview/util.d.ts +0 -6
  333. package/dist/routes/CustomCMSRoute.d.ts +0 -4
  334. package/dist/routes/RebaseRoute.d.ts +0 -1
  335. package/dist/routes/index.d.ts +0 -2
  336. package/dist/util/property_utils.d.ts +0 -23
  337. package/dist/util/useDebouncedCallback.d.ts +0 -1
  338. package/src/app/AppBar.tsx +0 -18
  339. package/src/app/Drawer.tsx +0 -30
  340. package/src/app/Scaffold.tsx +0 -238
  341. package/src/app/index.ts +0 -4
  342. package/src/app/useApp.tsx +0 -36
  343. package/src/components/AdminModeSyncer.tsx +0 -47
  344. package/src/components/ArrayContainer.tsx +0 -549
  345. package/src/components/CircularProgressCenter.tsx +0 -26
  346. package/src/components/ClearFilterSortButton.tsx +0 -44
  347. package/src/components/DeleteEntityDialog.tsx +0 -181
  348. package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +0 -225
  349. package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +0 -383
  350. package/src/components/EntityCollectionTable/EntityCollectionTableProps.tsx +0 -180
  351. package/src/components/EntityCollectionTable/PropertyTableCell.tsx +0 -561
  352. package/src/components/EntityCollectionTable/column_utils.tsx +0 -74
  353. package/src/components/EntityCollectionTable/fields/TableMultipleRelationField.tsx +0 -122
  354. package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +0 -169
  355. package/src/components/EntityCollectionTable/fields/TableRelationField.tsx +0 -177
  356. package/src/components/EntityCollectionTable/fields/TableRelationSelectorField.tsx +0 -42
  357. package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +0 -315
  358. package/src/components/EntityCollectionTable/index.tsx +0 -12
  359. package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +0 -90
  360. package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +0 -311
  361. package/src/components/EntityCollectionTable/internal/EntityTableCellActions.tsx +0 -82
  362. package/src/components/EntityCollectionTable/internal/common.tsx +0 -72
  363. package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +0 -425
  364. package/src/components/EntityCollectionTable/internal/popup_field/useDraggable.tsx +0 -96
  365. package/src/components/EntityCollectionTable/internal/popup_field/useWindowSize.tsx +0 -20
  366. package/src/components/EntityCollectionView/Board.tsx +0 -324
  367. package/src/components/EntityCollectionView/BoardColumn.tsx +0 -158
  368. package/src/components/EntityCollectionView/BoardColumnTitle.tsx +0 -45
  369. package/src/components/EntityCollectionView/BoardSortableList.tsx +0 -172
  370. package/src/components/EntityCollectionView/EntityBoardCard.tsx +0 -200
  371. package/src/components/EntityCollectionView/EntityCard.tsx +0 -225
  372. package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +0 -746
  373. package/src/components/EntityCollectionView/EntityCollectionCardView.tsx +0 -254
  374. package/src/components/EntityCollectionView/EntityCollectionView.tsx +0 -1220
  375. package/src/components/EntityCollectionView/EntityCollectionViewActions.tsx +0 -142
  376. package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +0 -131
  377. package/src/components/EntityCollectionView/FiltersDialog.tsx +0 -249
  378. package/src/components/EntityCollectionView/ViewModeToggle.tsx +0 -194
  379. package/src/components/EntityCollectionView/board_types.ts +0 -113
  380. package/src/components/EntityCollectionView/useBoardDataController.tsx +0 -490
  381. package/src/components/EntityCollectionView/useSelectionController.tsx +0 -43
  382. package/src/components/EntityCollectionView/utils.ts +0 -19
  383. package/src/components/EntityJsonPreview.tsx +0 -66
  384. package/src/components/EntityPreview.tsx +0 -367
  385. package/src/components/EntityView.tsx +0 -66
  386. package/src/components/ErrorBoundary.tsx +0 -40
  387. package/src/components/FieldCaption.tsx +0 -14
  388. package/src/components/HomePage/ContentHomePage.tsx +0 -634
  389. package/src/components/HomePage/FavouritesView.tsx +0 -59
  390. package/src/components/HomePage/HomePageDnD.tsx +0 -702
  391. package/src/components/HomePage/NavigationCard.tsx +0 -80
  392. package/src/components/HomePage/NavigationCardBinding.tsx +0 -111
  393. package/src/components/HomePage/NavigationGroup.tsx +0 -154
  394. package/src/components/HomePage/RenameGroupDialog.tsx +0 -121
  395. package/src/components/HomePage/SmallNavigationCard.tsx +0 -45
  396. package/src/components/HomePage/StudioHomePage.tsx +0 -231
  397. package/src/components/HomePage/index.tsx +0 -6
  398. package/src/components/PropertyCollectionView.tsx +0 -333
  399. package/src/components/PropertyConfigBadge.tsx +0 -27
  400. package/src/components/PropertyIdCopyTooltip.tsx +0 -47
  401. package/src/components/ReferenceTable/EntitySelectionTable.tsx +0 -371
  402. package/src/components/ReferenceWidget.tsx +0 -152
  403. package/src/components/RelationSelector.tsx +0 -518
  404. package/src/components/SearchIconsView.tsx +0 -78
  405. package/src/components/SelectableTable/SelectableTable.tsx +0 -344
  406. package/src/components/SelectableTable/SelectableTableContext.tsx +0 -6
  407. package/src/components/SelectableTable/filters/BooleanFilterField.tsx +0 -49
  408. package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +0 -126
  409. package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +0 -203
  410. package/src/components/SelectableTable/filters/RelationFilterField.tsx +0 -138
  411. package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +0 -217
  412. package/src/components/VirtualTable/VirtualTable.performance.test.tsx +0 -386
  413. package/src/components/VirtualTable/VirtualTable.tsx +0 -625
  414. package/src/components/VirtualTable/VirtualTableCell.tsx +0 -58
  415. package/src/components/VirtualTable/VirtualTableHeader.tsx +0 -275
  416. package/src/components/VirtualTable/VirtualTableHeaderRow.tsx +0 -249
  417. package/src/components/VirtualTable/VirtualTableProps.tsx +0 -298
  418. package/src/components/VirtualTable/VirtualTableRow.tsx +0 -52
  419. package/src/components/VirtualTable/fields/VirtualTableDateField.tsx +0 -39
  420. package/src/components/VirtualTable/fields/VirtualTableInput.tsx +0 -93
  421. package/src/components/VirtualTable/fields/VirtualTableNumberInput.tsx +0 -83
  422. package/src/components/VirtualTable/fields/VirtualTableSelect.tsx +0 -133
  423. package/src/components/VirtualTable/fields/VirtualTableSwitch.tsx +0 -32
  424. package/src/components/VirtualTable/fields/VirtualTableUserSelect.tsx +0 -111
  425. package/src/components/VirtualTable/index.tsx +0 -3
  426. package/src/components/VirtualTable/types.tsx +0 -46
  427. package/src/components/admin/RoleChip.tsx +0 -23
  428. package/src/components/admin/RolesView.tsx +0 -408
  429. package/src/components/admin/UsersView.tsx +0 -353
  430. package/src/components/admin/index.ts +0 -3
  431. package/src/components/common/default_entity_actions.tsx +0 -144
  432. package/src/components/common/useDebouncedCallback.tsx +0 -20
  433. package/src/components/common/useTableSearchHelper.ts +0 -75
  434. package/src/contexts/BreacrumbsContext.tsx +0 -45
  435. package/src/contexts/DataSourceContext.tsx +0 -4
  436. package/src/contexts/NavigationContext.tsx +0 -4
  437. package/src/contexts/SideDialogsControllerContext.tsx +0 -4
  438. package/src/contexts/SideEntityControllerContext.tsx +0 -4
  439. package/src/core/DefaultAppBar.tsx +0 -274
  440. package/src/core/DefaultDrawer.tsx +0 -267
  441. package/src/core/DrawerNavigationGroup.tsx +0 -117
  442. package/src/core/DrawerNavigationItem.tsx +0 -65
  443. package/src/core/EntityEditView.tsx +0 -590
  444. package/src/core/EntityEditViewFormActions.tsx +0 -343
  445. package/src/core/EntitySidePanel.tsx +0 -173
  446. package/src/core/SideDialogs.tsx +0 -200
  447. package/src/core/field_configs.tsx +0 -443
  448. package/src/form/EntityForm.tsx +0 -820
  449. package/src/form/EntityFormActions.tsx +0 -201
  450. package/src/form/PropertyFieldBinding.tsx +0 -348
  451. package/src/form/components/ErrorFocus.tsx +0 -44
  452. package/src/form/components/FieldHelperText.tsx +0 -45
  453. package/src/form/components/FormEntry.tsx +0 -22
  454. package/src/form/components/FormLayout.tsx +0 -16
  455. package/src/form/components/LabelWithIcon.tsx +0 -43
  456. package/src/form/components/LabelWithIconAndTooltip.tsx +0 -28
  457. package/src/form/components/LocalChangesMenu.tsx +0 -144
  458. package/src/form/components/StorageItemPreview.tsx +0 -79
  459. package/src/form/components/StorageUploadProgress.tsx +0 -105
  460. package/src/form/components/index.tsx +0 -5
  461. package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +0 -105
  462. package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +0 -163
  463. package/src/form/field_bindings/BlockFieldBinding.tsx +0 -268
  464. package/src/form/field_bindings/DateTimeFieldBinding.tsx +0 -70
  465. package/src/form/field_bindings/KeyValueFieldBinding.tsx +0 -567
  466. package/src/form/field_bindings/MapFieldBinding.tsx +0 -156
  467. package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +0 -146
  468. package/src/form/field_bindings/MultiSelectFieldBinding.tsx +0 -120
  469. package/src/form/field_bindings/MultipleRelationFieldBinding.tsx +0 -151
  470. package/src/form/field_bindings/ReadOnlyFieldBinding.tsx +0 -64
  471. package/src/form/field_bindings/ReferenceAsStringFieldBinding.tsx +0 -135
  472. package/src/form/field_bindings/ReferenceFieldBinding.tsx +0 -134
  473. package/src/form/field_bindings/RelationFieldBinding.tsx +0 -176
  474. package/src/form/field_bindings/RepeatFieldBinding.tsx +0 -136
  475. package/src/form/field_bindings/SelectFieldBinding.tsx +0 -107
  476. package/src/form/field_bindings/StorageUploadFieldBinding.tsx +0 -490
  477. package/src/form/field_bindings/SwitchFieldBinding.tsx +0 -64
  478. package/src/form/field_bindings/TextFieldBinding.tsx +0 -153
  479. package/src/form/field_bindings/UserSelectFieldBinding.tsx +0 -96
  480. package/src/form/index.tsx +0 -27
  481. package/src/form/useClearRestoreValue.tsx +0 -35
  482. package/src/form/validation.ts +0 -532
  483. package/src/hooks/data/useDataSource.tsx +0 -22
  484. package/src/hooks/navigation/contexts/CMSUrlContext.tsx +0 -24
  485. package/src/hooks/navigation/contexts/CollectionRegistryContext.tsx +0 -19
  486. package/src/hooks/navigation/contexts/NavigationStateContext.tsx +0 -15
  487. package/src/hooks/navigation/contexts/index.ts +0 -14
  488. package/src/hooks/navigation/useBuildCMSUrlController.tsx +0 -68
  489. package/src/hooks/navigation/useBuildCollectionRegistryController.tsx +0 -150
  490. package/src/hooks/navigation/useBuildNavigationStateController.tsx +0 -135
  491. package/src/hooks/navigation/useNavigationRegistry.ts +0 -142
  492. package/src/hooks/navigation/useNavigationResolution.ts +0 -98
  493. package/src/hooks/navigation/useNavigationURLs.ts +0 -56
  494. package/src/hooks/navigation/useResolvedCollections.ts +0 -139
  495. package/src/hooks/navigation/useResolvedViews.tsx +0 -204
  496. package/src/hooks/navigation/useTopLevelNavigation.ts +0 -265
  497. package/src/hooks/navigation/utils.ts +0 -177
  498. package/src/hooks/useBreadcrumbsController.tsx +0 -49
  499. package/src/hooks/useBuildNavigationController.tsx +0 -341
  500. package/src/hooks/useEntitySelectionDialog.tsx +0 -56
  501. package/src/hooks/useResolvedNavigationFrom.tsx +0 -158
  502. package/src/hooks/useSideDialogsController.tsx +0 -21
  503. package/src/hooks/useSideEntityController.tsx +0 -15
  504. package/src/internal/useBuildDataSource.ts +0 -380
  505. package/src/internal/useBuildSideDialogsController.tsx +0 -135
  506. package/src/internal/useBuildSideEntityController.tsx +0 -309
  507. package/src/preview/PropertyPreview.tsx +0 -308
  508. package/src/preview/components/ArrayEnumPreview.tsx +0 -38
  509. package/src/preview/components/AsyncPreviewComponent.tsx +0 -47
  510. package/src/preview/components/BooleanPreview.tsx +0 -25
  511. package/src/preview/components/DatePreview.tsx +0 -94
  512. package/src/preview/components/EmptyValue.tsx +0 -10
  513. package/src/preview/components/EnumValuesChip.tsx +0 -39
  514. package/src/preview/components/ImagePreview.tsx +0 -111
  515. package/src/preview/components/ReferencePreview.tsx +0 -162
  516. package/src/preview/components/RelationPreview.tsx +0 -153
  517. package/src/preview/components/StorageThumbnail.tsx +0 -91
  518. package/src/preview/components/UrlComponentPreview.tsx +0 -113
  519. package/src/preview/components/UserPreview.tsx +0 -27
  520. package/src/preview/index.ts +0 -26
  521. package/src/preview/property_previews/ArrayOfMapsPreview.tsx +0 -72
  522. package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +0 -43
  523. package/src/preview/property_previews/ArrayOfRelationsPreview.tsx +0 -52
  524. package/src/preview/property_previews/ArrayOfStorageComponentsPreview.tsx +0 -49
  525. package/src/preview/property_previews/ArrayOfStringsPreview.tsx +0 -44
  526. package/src/preview/property_previews/ArrayOneOfPreview.tsx +0 -67
  527. package/src/preview/property_previews/ArrayPropertyEnumPreview.tsx +0 -34
  528. package/src/preview/property_previews/ArrayPropertyPreview.tsx +0 -69
  529. package/src/preview/property_previews/MapPropertyPreview.tsx +0 -145
  530. package/src/preview/property_previews/NumberPropertyPreview.tsx +0 -28
  531. package/src/preview/property_previews/SkeletonPropertyComponent.tsx +0 -275
  532. package/src/preview/property_previews/StringPropertyPreview.tsx +0 -57
  533. package/src/preview/util.ts +0 -30
  534. package/src/routes/CustomCMSRoute.tsx +0 -21
  535. package/src/routes/RebaseRoute.tsx +0 -255
  536. package/src/routes/index.ts +0 -2
  537. package/src/util/property_utils.tsx +0 -152
  538. package/src/util/useDebouncedCallback.ts +0 -25
package/README.md CHANGED
@@ -138,7 +138,7 @@ You can replace the Firebase Storage implementation with your own.
138
138
  ## Included example
139
139
 
140
140
  You can access the code for the demo project under
141
- [`example`](https://github.com/Rebaseco/rebase/tree/master/example). It includes
141
+ [`example`](https://github.com/rebasepro/rebase/tree/master/example). It includes
142
142
  every feature provided by this CMS.
143
143
 
144
144
  Keep in mind you need to update the dependencies in that project if you want to
@@ -10,7 +10,7 @@ export interface ErrorViewProps {
10
10
  }
11
11
  /**
12
12
  * Generic error view. Displayed for example when an unexpected value comes
13
- * from the datasource in a collection view.
13
+ * from the driver in a collection view.
14
14
  * @param title
15
15
  * @param error
16
16
  * @param tooltip
@@ -0,0 +1 @@
1
+ export declare function LanguageToggle(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,68 @@
1
+ import { ReactNode } from "react";
2
+ import { AuthControllerExtended } from "@rebasepro/types";
3
+ /**
4
+ * Props for the generic LoginView.
5
+ * Consumes {@link AuthControllerExtended} — works with any backend
6
+ * (Rebase custom backend, Firebase, Supabase, etc.)
7
+ */
8
+ export interface LoginViewProps {
9
+ /**
10
+ * Auth controller — must implement AuthControllerExtended.
11
+ */
12
+ authController: AuthControllerExtended;
13
+ /**
14
+ * Path to the logo displayed in the login screen
15
+ */
16
+ logo?: string;
17
+ /**
18
+ * Enable the skip login button
19
+ */
20
+ allowSkipLogin?: boolean;
21
+ /**
22
+ * Disable the login buttons
23
+ */
24
+ disabled?: boolean;
25
+ /**
26
+ * Prevent users from creating new accounts.
27
+ * If not set, checks `authController.capabilities.registration`.
28
+ */
29
+ disableSignupScreen?: boolean;
30
+ /**
31
+ * Display this component when no user is found
32
+ */
33
+ noUserComponent?: ReactNode;
34
+ /**
35
+ * Display this component below the sign-in buttons
36
+ */
37
+ additionalComponent?: ReactNode;
38
+ /**
39
+ * Error message when user is not allowed access
40
+ */
41
+ notAllowedError?: string | Error;
42
+ /**
43
+ * Override: enable Google login button.
44
+ * If not set, checks `authController.capabilities.googleLogin`.
45
+ */
46
+ googleEnabled?: boolean;
47
+ /**
48
+ * Google client ID for Google OAuth.
49
+ * Required when Google login is enabled via ID token flow.
50
+ */
51
+ googleClientId?: string;
52
+ /**
53
+ * When true, shows bootstrap/setup UI (first-user creation).
54
+ * If not set, derived from `authController` if it exposes `needsSetup`.
55
+ */
56
+ needsSetup?: boolean;
57
+ /**
58
+ * Whether registration is enabled.
59
+ * If not set, derived from `authController.capabilities.registration`.
60
+ */
61
+ registrationEnabled?: boolean;
62
+ }
63
+ /**
64
+ * Generic login view component that works with any AuthControllerExtended.
65
+ * Feature-detects capabilities to show/hide login methods.
66
+ * @group Core
67
+ */
68
+ export declare function LoginView({ logo, authController, noUserComponent, disableSignupScreen, disabled, notAllowedError, googleEnabled, googleClientId, needsSetup, registrationEnabled }: LoginViewProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { LoginView } from "./LoginView";
2
+ export type { LoginViewProps } from "./LoginView";
@@ -0,0 +1,10 @@
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;
@@ -0,0 +1,62 @@
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,6 +1,6 @@
1
1
  export * from "./types";
2
2
  export * from "./useDebouncedData";
3
3
  export * from "./useColumnsIds";
4
- export * from "./useDataSourceTableController";
5
- export * from "./useTableSearchHelper";
6
- export * from "./default_entity_actions";
4
+ export * from "./useDataTableController";
5
+ export * from "./useScrollRestoration";
6
+ export * from "./table_height";
@@ -1,4 +1,5 @@
1
- import { CollectionSize, Property, SelectedCellProps } from "@rebasepro/types";
1
+ import type { Property } from "@rebasepro/types";
2
+ import { CollectionSize, SelectedCellProps } from "@rebasepro/types";
2
3
  export type EntityCollectionTableController<M extends Record<string, any>> = {
3
4
  /**
4
5
  * This cell is displayed as selected
@@ -1,6 +1,9 @@
1
- import { EntityCollection, Property } from "@rebasepro/types";
2
- import { PropertyColumnConfig } from "../EntityCollectionTable/EntityCollectionTableProps";
3
- export declare const COLLECTION_GROUP_PARENT_ID = "collectionGroupParent";
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;
4
7
  export declare function useColumnIds<M extends Record<string, any>>(collection: EntityCollection<M>, includeSubcollections: boolean): PropertyColumnConfig[];
5
8
  export declare function getColumnKeysForProperty(property: Property, key: string, disabled?: boolean): PropertyColumnConfig[];
6
9
  export declare function getFormFieldKeys(collection: EntityCollection): string[];
@@ -1,7 +1,8 @@
1
- import { Entity, EntityCollection, EntityTableController, FilterValues, User } from "@rebasepro/types";
1
+ import type { EntityCollection } from "@rebasepro/types";
2
+ import { Entity, EntityTableController, FilterValues, User } from "@rebasepro/types";
2
3
  import { ScrollRestorationController } from "./useScrollRestoration";
3
4
  export declare const DEFAULT_PAGE_SIZE = 50;
4
- export type DataSourceTableControllerProps<M extends Record<string, any> = any> = {
5
+ export type DataTableControllerProps<M extends Record<string, any> = any> = {
5
6
  /**
6
7
  * Full path where the data of this table is located
7
8
  */
@@ -28,7 +29,7 @@ export type DataSourceTableControllerProps<M extends Record<string, any> = any>
28
29
  };
29
30
  /**
30
31
  * Use this hook to build a controller for the {@link EntityCollectionTable}.
31
- * This controller is bound to data in a path in your specified datasource.
32
+ * This controller is bound to data in a path in your specified driver.
32
33
  *
33
34
  * Note that you can build your own hook returning a {@link EntityTableController}
34
35
  * if you would like to display different data.
@@ -41,4 +42,4 @@ export type DataSourceTableControllerProps<M extends Record<string, any> = any>
41
42
  * @param forceFilterFromProps
42
43
  * @param updateUrl
43
44
  */
44
- export declare function useDataSourceTableController<M extends Record<string, any> = any, USER extends User = User>({ path, collection, scrollRestoration, entitiesDisplayedFirst, lastDeleteTimestamp: _lastDeleteTimestamp, forceFilter: forceFilterFromProps, updateUrl }: DataSourceTableControllerProps<M>): EntityTableController<M>;
45
+ export declare function useDataTableController<M extends Record<string, any> = any, USER extends User = User>({ path, collection, scrollRestoration, entitiesDisplayedFirst, lastDeleteTimestamp: _lastDeleteTimestamp, forceFilter: forceFilterFromProps, updateUrl }: DataTableControllerProps<M>): EntityTableController<M>;
@@ -1,35 +1,16 @@
1
1
  export type { ErrorViewProps } from "./ErrorView";
2
2
  export { ErrorView } from "./ErrorView";
3
- export type { EntityViewProps } from "./EntityView";
4
- export { EntityView } from "./EntityView";
5
- export type { EntitySelectionProps } from "./ReferenceTable/EntitySelectionTable";
6
- export { EntitySelectionTable } from "./ReferenceTable/EntitySelectionTable";
7
- export { CircularProgressCenter } from "./CircularProgressCenter";
8
3
  export * from "./common";
9
- export * from "./HomePage";
10
- export * from "./SelectableTable/SelectableTable";
11
- export * from "./SelectableTable/SelectableTableContext";
12
- export * from "./EntityCollectionView/EntityCollectionView";
13
- export * from "./EntityCollectionView/EntityCollectionViewActions";
14
- export * from "./EntityCollectionView/EntityCollectionCardView";
15
- export * from "./EntityCollectionView/EntityCard";
16
- export * from "./EntityCollectionView/useSelectionController";
17
- export * from "./PropertyConfigBadge";
18
- export * from "./PropertyIdCopyTooltip";
19
- export * from "./EntityCollectionTable";
20
4
  export * from "./NotFoundPage";
21
- export * from "./VirtualTable";
22
- export * from "./ErrorBoundary";
23
5
  export * from "./ConfirmationDialog";
6
+ export * from "./ErrorTooltip";
24
7
  export * from "./RebaseLogo";
25
- export * from "../core/DefaultAppBar";
26
- export * from "./ArrayContainer";
27
- export * from "./ReferenceWidget";
28
- export * from "./SearchIconsView";
29
- export * from "./FieldCaption";
30
- export * from "./EntityPreview";
31
8
  export * from "./AIIcon";
32
9
  export * from "./Debug/UIStyleGuide";
33
10
  export * from "./Debug/UIReferenceView";
34
- export * from "./AdminModeSyncer";
35
11
  export * from "./UserSettingsView";
12
+ export * from "./LanguageToggle";
13
+ export * from "./UserSelectPopover";
14
+ export * from "./UserDisplay";
15
+ export * from "./LoginView";
16
+ export * from "./RebaseAuth";
@@ -1,3 +1,3 @@
1
+ import type { CustomizationController } from "@rebasepro/types";
1
2
  import React from "react";
2
- import { CustomizationController } from "@rebasepro/types";
3
3
  export declare const CustomizationControllerContext: React.Context<CustomizationController>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { DataDriver } from "@rebasepro/types";
3
+ export declare const DataDriverContext: React.Context<DataDriver>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { DatabaseAdmin } from "@rebasepro/types";
3
+ export declare const DatabaseAdminContext: React.Context<DatabaseAdmin | undefined>;
@@ -1,4 +1,4 @@
1
+ import type { DialogsController } from "@rebasepro/types";
1
2
  import React, { PropsWithChildren } from "react";
2
- import { DialogsController } from "@rebasepro/types";
3
3
  export declare const DialogsControllerContext: React.Context<DialogsController>;
4
4
  export declare const DialogsProvider: React.FC<PropsWithChildren>;
@@ -1,4 +1,4 @@
1
+ import type { EffectiveRoleController } from "@rebasepro/types";
1
2
  import React from "react";
2
- import { EffectiveRoleController } from "@rebasepro/types";
3
3
  export declare const EffectiveRoleControllerContext: React.Context<EffectiveRoleController>;
4
4
  export declare const EffectiveRoleControllerProvider: React.Provider<EffectiveRoleController>;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ /**
3
+ * Context that exposes the full RebaseClient instance (from `@rebasepro/client`).
4
+ * Used by the JS Editor to give developer scripts access to `client.data`, `client.auth`, etc.
5
+ */
6
+ export declare const RebaseClientInstanceContext: React.Context<any>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { RebaseData } from "@rebasepro/types";
3
+ export declare const RebaseDataContext: React.Context<RebaseData>;
@@ -3,13 +3,11 @@ export * from "./ModeController";
3
3
  export * from "./AdminModeController";
4
4
  export * from "./EffectiveRoleController";
5
5
  export * from "./AuthControllerContext";
6
- export * from "./DataSourceContext";
7
- export * from "./NavigationContext";
8
- export * from "./CustomizationControllerContext";
9
- export * from "./SideEntityControllerContext";
10
- export * from "./SideDialogsControllerContext";
6
+ export * from "./DataDriverContext";
11
7
  export * from "./AnalyticsContext";
12
8
  export * from "./StorageSourceContext";
13
9
  export * from "./UserConfigurationPersistenceContext";
14
10
  export * from "./DialogsProvider";
15
11
  export * from "./InternalUserManagementContext";
12
+ export * from "./RebaseClientInstanceContext";
13
+ export * from "./CustomizationControllerContext";
@@ -0,0 +1,17 @@
1
+ import type { RebasePlugin, RebaseContext } from "@rebasepro/types";
2
+ /**
3
+ * Render-less component that manages plugin lifecycle hooks.
4
+ *
5
+ * - Calls `lifecycle.onMount(context)` when plugins mount.
6
+ * - Calls `lifecycle.onUnmount()` when plugins unmount.
7
+ * - Subscribes to auth state changes and calls `lifecycle.onAuthStateChange`.
8
+ *
9
+ * Mount this component inside the Rebase tree, below PluginProviderStack,
10
+ * so that the RebaseContext is fully available.
11
+ *
12
+ * @internal
13
+ */
14
+ export declare function PluginLifecycleManager({ plugins, context, }: {
15
+ plugins: RebasePlugin[];
16
+ context: RebaseContext;
17
+ }): null;
@@ -0,0 +1,21 @@
1
+ import type { RebasePlugin } from "@rebasepro/types";
2
+ import React from "react";
3
+ /**
4
+ * Wraps children with all provider components from plugins that match the given scope.
5
+ *
6
+ * Replaces the 3 copy-pasted `plugins.forEach(plugin => { if (plugin.form?.provider) ... })` patterns
7
+ * in Rebase.tsx, EntityEditView.tsx, and PopupFormField.tsx.
8
+ *
9
+ * @param plugins - Array of plugins to extract providers from.
10
+ * @param scope - `"root"` or `"form"` — which providers to apply.
11
+ * @param scopeProps - Additional props passed to each provider component.
12
+ * @param children - The content to wrap.
13
+ *
14
+ * @group Core
15
+ */
16
+ export declare function PluginProviderStack({ plugins, scope, scopeProps, children, }: {
17
+ plugins: RebasePlugin[];
18
+ scope: "root" | "form";
19
+ scopeProps?: Record<string, unknown>;
20
+ children: React.ReactNode;
21
+ }): React.ReactNode;
@@ -1,4 +1,5 @@
1
- import { RebaseProps, User } from "@rebasepro/types";
1
+ import type { RebaseProps } from "./RebaseProps";
2
+ import { User } from "@rebasepro/types";
2
3
  /**
3
4
  * If you are using independent components of the CMS
4
5
  * you need to wrap them with this main component, so the internal hooks work.
@@ -0,0 +1,136 @@
1
+ import React from "react";
2
+ import { Locale, User, AuthController, AnalyticsEvent, DataDriver, StorageSource, UserConfigurationPersistence, DatabaseAdmin, RebaseData, RebaseClient, RebaseContext, UserManagementDelegate, EntityLinkBuilder, RebasePlugin, SlotContribution, PropertyConfig, EntityCustomView, EntityAction } from "@rebasepro/types";
3
+ /**
4
+ * Controller to simulate different roles when dev mode is active.
5
+ * @group Models
6
+ */
7
+ export interface EffectiveRoleController {
8
+ effectiveRole: string | null;
9
+ setEffectiveRole: (role: string | null) => void;
10
+ }
11
+ /**
12
+ * @group Models
13
+ */
14
+ export type RebaseProps<USER extends User> = {
15
+ /**
16
+ * The root components of your application. Use RebaseCMS, RebaseStudio, and RebaseShell.
17
+ * Alternatively, pass a render function that receives { context, loading }.
18
+ */
19
+ children: React.ReactNode | ((props: {
20
+ context: RebaseContext;
21
+ loading: boolean;
22
+ }) => React.ReactNode);
23
+ /**
24
+ * Optional base path for the entire Rebase app.
25
+ * Defaults to "/"
26
+ */
27
+ basePath?: string;
28
+ /**
29
+ * Optional base path for the CMS collections.
30
+ * Defaults to "/c"
31
+ */
32
+ baseCollectionPath?: string;
33
+ /**
34
+ * If you have a custom API key, you can use it here.
35
+ */
36
+ apiKey?: string;
37
+ /**
38
+ * Base URL for the backend API (e.g. "http://localhost:3001").
39
+ * When provided, this is available via `useApiConfig()` to any hook
40
+ * in the tree, reducing repetitive `apiUrl` threading.
41
+ */
42
+ apiUrl?: string;
43
+ /**
44
+ * Format of the dates in the CMS.
45
+ * Defaults to 'MMMM dd, yyyy, HH:mm:ss'
46
+ */
47
+ dateTimeFormat?: string;
48
+ /**
49
+ * Locale of the CMS, currently only affecting dates
50
+ */
51
+ locale?: Locale;
52
+ /**
53
+ * Unified RebaseClient for data, auth, and storage.
54
+ */
55
+ client?: RebaseClient;
56
+ /**
57
+ * Optional override for RebaseData if not using `client`
58
+ */
59
+ data?: RebaseData;
60
+ /**
61
+ * Optional override for DataDriver if not using `client`
62
+ */
63
+ driver?: DataDriver;
64
+ /**
65
+ * Optional override for AuthController if not using `client`
66
+ */
67
+ authController?: AuthController<USER>;
68
+ /**
69
+ * Optional override for StorageSource if not using `client`
70
+ */
71
+ storageSource?: StorageSource;
72
+ /**
73
+ * Administrative database operations (SQL, schema discovery).
74
+ * Only needed when the studio/admin features are enabled.
75
+ */
76
+ databaseAdmin?: DatabaseAdmin;
77
+ /**
78
+ * Use this controller to access the configuration that is stored locally,
79
+ * and not defined in code
80
+ */
81
+ userConfigPersistence?: UserConfigurationPersistence;
82
+ /**
83
+ * Callback used to get analytics events from the CMS
84
+ */
85
+ onAnalyticsEvent?: (event: AnalyticsEvent, data?: object) => void;
86
+ /**
87
+ * Optional link builder you can add to generate a button in your entity forms.
88
+ * The function must return a URL that gets opened when the button is clicked
89
+ */
90
+ entityLinkBuilder?: EntityLinkBuilder;
91
+ /**
92
+ * You can use this props to provide your own user management implementation.
93
+ * Note that this will not affect the UI, but it will be used to show user information
94
+ * in various places of the CMS, for example, to show who created or modified an entity,
95
+ * or to assign ownership of an entity.
96
+ *
97
+ * You can also use this data to be retrieved in your custom properties,
98
+ * for example, to show a list of users in a dropdown.
99
+ *
100
+ * If you are using the Rebase user management plugin, this
101
+ * prop will be implemented automatically.
102
+ */
103
+ userManagement?: UserManagementDelegate;
104
+ /**
105
+ * Plugins loaded in the CMS
106
+ */
107
+ plugins?: RebasePlugin[];
108
+ /**
109
+ * Extra slots for the CMS
110
+ */
111
+ slots?: SlotContribution[];
112
+ /**
113
+ * Property configs (widgets)
114
+ */
115
+ propertyConfigs?: Record<string, PropertyConfig>;
116
+ /**
117
+ * Entity Views
118
+ */
119
+ entityViews?: EntityCustomView<any>[];
120
+ /**
121
+ * Entity Actions
122
+ */
123
+ entityActions?: EntityAction[];
124
+ components?: {
125
+ /**
126
+ * Component to render when a reference is missing
127
+ */
128
+ missingReference?: React.ComponentType<{
129
+ path: string;
130
+ }>;
131
+ };
132
+ /**
133
+ * Controller to simulate different roles when dev mode is active.
134
+ */
135
+ effectiveRoleController?: EffectiveRoleController;
136
+ };
@@ -1,9 +1,4 @@
1
1
  export * from "./Rebase";
2
- export * from "./DefaultDrawer";
3
- export * from "./DrawerNavigationItem";
4
- export * from "./DrawerNavigationGroup";
5
- export * from "./field_configs";
6
- export * from "./SideDialogs";
2
+ export * from "./PluginProviderStack";
7
3
  export * from "./RebaseRouter";
8
4
  export * from "./RebaseRoutes";
9
- export * from "../app";
@@ -1,4 +1,6 @@
1
- import { DataSource, DeleteEntityProps, Entity, EntityCallbacks, EntityCollection, RebaseContext, User } from "@rebasepro/types";
1
+ import type { EntityCollection } from "@rebasepro/types";
2
+ import { DeleteEntityProps, Entity, EntityCallbacks, RebaseContext, User } from "@rebasepro/types";
3
+ import { RebaseData } from "@rebasepro/types";
2
4
  /**
3
5
  * @group Hooks and utilities
4
6
  */
@@ -8,16 +10,12 @@ export type DeleteEntityWithCallbacksProps<M extends Record<string, any>, USER e
8
10
  onDeleteFailure?: (entity: Entity<M>, e: Error) => void;
9
11
  };
10
12
  /**
11
- * This function is in charge of deleting an entity in the datasource.
13
+ * This function is in charge of deleting an entity.
12
14
  * It will run all the delete callbacks specified in the collection.
13
15
  * It is also possible to attach callbacks on save success or error, and callback
14
16
  * errors.
15
17
  *
16
- * If you just want to delete any data without running the `beforeDelete`,
17
- * and `afterDelete` callbacks, you can use the `deleteEntity` method
18
- * in the datasource ({@link useDataSource}).
19
- *
20
- * @param dataSource
18
+ * @param data
21
19
  * @param entity
22
20
  * @param collection
23
21
  * @param callbacks
@@ -26,8 +24,8 @@ export type DeleteEntityWithCallbacksProps<M extends Record<string, any>, USER e
26
24
  * @param context
27
25
  * @group Hooks and utilities
28
26
  */
29
- export declare function deleteEntityWithCallbacks<M extends Record<string, any>, USER extends User>({ dataSource, entity, collection, callbacks, onDeleteSuccess, onDeleteFailure, context }: DeleteEntityWithCallbacksProps<M> & {
27
+ export declare function deleteEntityWithCallbacks<M extends Record<string, any>, USER extends User>({ data, entity, collection, callbacks, onDeleteSuccess, onDeleteFailure, context }: DeleteEntityWithCallbacksProps<M> & {
30
28
  collection: EntityCollection<M>;
31
- dataSource: DataSource;
29
+ data: RebaseData;
32
30
  context: RebaseContext<USER>;
33
31
  }): Promise<boolean>;
@@ -1,4 +1,6 @@
1
- import { DataSource, Entity, EntityCollection, RebaseContext, SaveEntityProps } from "@rebasepro/types";
1
+ import type { EntityCollection } from "@rebasepro/types";
2
+ import { Entity, RebaseContext, SaveEntityProps } from "@rebasepro/types";
3
+ import { RebaseData } from "@rebasepro/types";
2
4
  /**
3
5
  * @group Hooks and utilities
4
6
  */
@@ -7,15 +9,11 @@ export type SaveEntityWithCallbacksProps<M extends Record<string, any>> = SaveEn
7
9
  afterSaveError?: (e: Error) => void;
8
10
  };
9
11
  /**
10
- * This function is in charge of saving an entity to the datasource.
12
+ * This function is in charge of saving an entity.
11
13
  * It will run all the save callbacks specified in the collection.
12
14
  * It is also possible to attach callbacks on save success or error, and callback
13
15
  * errors.
14
16
  *
15
- * If you just want to save the data without running the `afterSave`,
16
- * `afterSaveError` and `beforeSave` callbacks, you can use the `saveEntity` method
17
- * in the datasource ({@link useDataSource}).
18
- *
19
17
  * @param collection
20
18
  * @param path
21
19
  * @param entityId
@@ -23,15 +21,14 @@ export type SaveEntityWithCallbacksProps<M extends Record<string, any>> = SaveEn
23
21
  * @param values
24
22
  * @param previousValues
25
23
  * @param status
26
- * @param dataSource
24
+ * @param data
27
25
  * @param context
28
26
  * @param afterSave
29
27
  * @param afterSaveError
30
- * @see useDataSource
31
28
  * @group Hooks and utilities
32
29
  */
33
- export declare function saveEntityWithCallbacks<M extends Record<string, any>>({ collection, path, entityId, values, previousValues, status, dataSource, context, afterSave, afterSaveError }: SaveEntityWithCallbacksProps<M> & {
30
+ export declare function saveEntityWithCallbacks<M extends Record<string, any>>({ collection, path, entityId, values, previousValues, status, data, context, afterSave, afterSaveError }: SaveEntityWithCallbacksProps<M> & {
34
31
  collection: EntityCollection;
35
- dataSource: DataSource;
32
+ data: RebaseData;
36
33
  context: RebaseContext;
37
34
  }): Promise<Entity<M>>;
@@ -1,4 +1,5 @@
1
- import { Entity, EntityCollection, FilterValues, User } from "@rebasepro/types";
1
+ import type { EntityCollection } from "@rebasepro/types";
2
+ import { Entity, FilterValues, User } from "@rebasepro/types";
2
3
  /**
3
4
  * @group Hooks and utilities
4
5
  */
@@ -47,4 +48,4 @@ export interface CollectionFetchResult<M extends Record<string, any>> {
47
48
  * @param searchString
48
49
  * @group Hooks and utilities
49
50
  */
50
- export declare function useCollectionFetch<M extends Record<string, any>, USER extends User>({ path: inputPath, collection, filterValues, sortBy, itemCount, searchString }: CollectionFetchProps<M>): CollectionFetchResult<M>;
51
+ export declare function useCollectionFetch<M extends Record<string, any>, USER extends User>({ path, collection, filterValues, sortBy, itemCount, searchString }: CollectionFetchProps<M>): CollectionFetchResult<M>;
@@ -0,0 +1,13 @@
1
+ import { RebaseData } from "@rebasepro/types";
2
+ /**
3
+ * Use this hook to access the unified data API.
4
+ *
5
+ * ```ts
6
+ * const data = useData();
7
+ * const { data: products } = await data.products.find({ where: { status: "eq.published" } });
8
+ * await data.products.create({ name: "Camera", price: 299 });
9
+ * ```
10
+ *
11
+ * @group Hooks and utilities
12
+ */
13
+ export declare const useData: () => RebaseData;