@rebasepro/core 0.0.1-canary.2 → 0.0.1-canary.3263433

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 (561) hide show
  1. package/README.md +3 -3
  2. package/dist/components/AuthSimulationMenu.d.ts +0 -0
  3. package/dist/components/ErrorView.d.ts +1 -1
  4. package/dist/components/LanguageToggle.d.ts +1 -0
  5. package/dist/components/LoginView/LoginView.d.ts +68 -0
  6. package/dist/components/LoginView/index.d.ts +2 -0
  7. package/dist/components/RebaseAuth.d.ts +10 -0
  8. package/dist/components/UserDisplay.d.ts +1 -1
  9. package/dist/components/UserSelectPopover.d.ts +62 -0
  10. package/dist/components/common/index.d.ts +3 -3
  11. package/dist/components/common/types.d.ts +6 -1
  12. package/dist/components/common/useColumnsIds.d.ts +6 -3
  13. package/dist/components/common/{useDataSourceTableController.d.ts → useDataTableController.d.ts} +7 -6
  14. package/dist/components/index.d.ts +6 -25
  15. package/dist/contexts/CustomizationControllerContext.d.ts +1 -1
  16. package/dist/contexts/DataDriverContext.d.ts +3 -0
  17. package/dist/contexts/DatabaseAdminContext.d.ts +3 -0
  18. package/dist/contexts/DialogsProvider.d.ts +1 -1
  19. package/dist/contexts/EffectiveRoleController.d.ts +1 -1
  20. package/dist/contexts/RebaseClientInstanceContext.d.ts +6 -0
  21. package/dist/contexts/RebaseDataContext.d.ts +3 -0
  22. package/dist/contexts/index.d.ts +3 -5
  23. package/dist/core/PluginLifecycleManager.d.ts +17 -0
  24. package/dist/core/PluginProviderStack.d.ts +21 -0
  25. package/dist/core/Rebase.d.ts +2 -1
  26. package/dist/core/RebaseProps.d.ts +136 -0
  27. package/dist/core/index.d.ts +1 -6
  28. package/dist/hooks/data/delete.d.ts +7 -9
  29. package/dist/hooks/data/save.d.ts +7 -10
  30. package/dist/hooks/data/useCollectionFetch.d.ts +3 -2
  31. package/dist/hooks/data/useData.d.ts +13 -0
  32. package/dist/hooks/data/useEntityFetch.d.ts +12 -3
  33. package/dist/hooks/data/useRelationSelector.d.ts +11 -4
  34. package/dist/hooks/data/useUserSelector.d.ts +31 -0
  35. package/dist/hooks/index.d.ts +9 -13
  36. package/dist/hooks/useAuthSubscription.d.ts +2 -0
  37. package/dist/hooks/useBackendStorageSource.d.ts +1 -1
  38. package/dist/hooks/useBridgeRegistration.d.ts +18 -0
  39. package/dist/hooks/useBuildEffectiveRoleController.d.ts +1 -1
  40. package/dist/hooks/useCustomizationController.d.ts +1 -1
  41. package/dist/hooks/useDialogsController.d.ts +1 -1
  42. package/dist/hooks/usePermissions.d.ts +2 -1
  43. package/dist/hooks/useRebaseClient.d.ts +5 -0
  44. package/dist/hooks/useRebaseRegistry.d.ts +34 -0
  45. package/dist/hooks/useSlot.d.ts +18 -0
  46. package/dist/hooks/useSnackbarController.d.ts +1 -1
  47. package/dist/hooks/useStorageSource.d.ts +2 -1
  48. package/dist/hooks/useStudioBridge.d.ts +91 -0
  49. package/dist/hooks/useTranslation.d.ts +17 -0
  50. package/dist/hooks/useValidateAuthenticator.d.ts +4 -4
  51. package/dist/i18n/RebaseI18nProvider.d.ts +33 -0
  52. package/dist/index.d.ts +7 -7
  53. package/dist/index.es.js +12674 -32630
  54. package/dist/index.es.js.map +1 -1
  55. package/dist/index.umd.js +12701 -32674
  56. package/dist/index.umd.js.map +1 -1
  57. package/dist/locales/de.d.ts +2 -0
  58. package/dist/locales/en.d.ts +10 -0
  59. package/dist/locales/es.d.ts +10 -0
  60. package/dist/locales/fr.d.ts +2 -0
  61. package/dist/locales/hi.d.ts +2 -0
  62. package/dist/locales/it.d.ts +2 -0
  63. package/dist/locales/pt.d.ts +7 -0
  64. package/dist/util/constants.d.ts +1 -0
  65. package/dist/util/icon_list.d.ts +1 -1
  66. package/dist/util/icon_synonyms.d.ts +1 -1853
  67. package/dist/util/icons.d.ts +4 -0
  68. package/dist/util/index.d.ts +1 -2
  69. package/dist/util/previews.d.ts +2 -1
  70. package/dist/util/useStorageUploadController.d.ts +5 -3
  71. package/dist/vitePlugin.js +29 -0
  72. package/package.json +136 -158
  73. package/src/components/AIIcon.tsx +11 -3
  74. package/src/components/AuthSimulationMenu.tsx +0 -0
  75. package/src/components/ConfirmationDialog.tsx +4 -2
  76. package/src/components/Debug/UIReferenceView.tsx +377 -141
  77. package/src/components/Debug/UIStyleGuide.tsx +13 -20
  78. package/src/components/ErrorView.tsx +4 -3
  79. package/src/components/LanguageToggle.tsx +67 -0
  80. package/src/components/LoginView/LoginView.tsx +718 -0
  81. package/src/components/LoginView/index.ts +2 -0
  82. package/src/components/NotFoundPage.tsx +5 -3
  83. package/src/components/RebaseAuth.tsx +27 -0
  84. package/src/components/RebaseLogo.tsx +3 -3
  85. package/src/components/UnsavedChangesDialog.tsx +6 -5
  86. package/src/components/UserDisplay.tsx +6 -6
  87. package/src/components/UserSelectPopover.tsx +388 -0
  88. package/src/components/UserSettingsView.tsx +19 -26
  89. package/src/components/common/index.ts +3 -3
  90. package/src/components/common/types.tsx +6 -1
  91. package/src/components/common/useColumnsIds.tsx +48 -36
  92. package/src/components/common/{useDataSourceTableController.tsx → useDataTableController.tsx} +118 -92
  93. package/src/components/index.tsx +10 -34
  94. package/src/contexts/AdminModeController.tsx +1 -1
  95. package/src/contexts/CustomizationControllerContext.tsx +1 -1
  96. package/src/contexts/DataDriverContext.tsx +4 -0
  97. package/src/contexts/DatabaseAdminContext.tsx +4 -0
  98. package/src/contexts/DialogsProvider.tsx +9 -6
  99. package/src/contexts/EffectiveRoleController.tsx +3 -2
  100. package/src/contexts/ModeController.tsx +1 -1
  101. package/src/contexts/RebaseClientInstanceContext.tsx +7 -0
  102. package/src/contexts/RebaseDataContext.tsx +4 -0
  103. package/src/contexts/index.ts +3 -5
  104. package/src/core/PluginLifecycleManager.tsx +96 -0
  105. package/src/core/PluginProviderStack.tsx +40 -0
  106. package/src/core/Rebase.tsx +151 -108
  107. package/src/core/RebaseProps.tsx +164 -0
  108. package/src/core/RebaseRouter.tsx +1 -1
  109. package/src/core/RebaseRoutes.tsx +3 -26
  110. package/src/core/index.tsx +1 -10
  111. package/src/hooks/ApiConfigContext.tsx +2 -1
  112. package/src/hooks/data/delete.ts +9 -23
  113. package/src/hooks/data/save.ts +18 -20
  114. package/src/hooks/data/useCollectionFetch.tsx +55 -41
  115. package/src/hooks/data/useData.tsx +18 -0
  116. package/src/hooks/data/useEntityFetch.tsx +41 -32
  117. package/src/hooks/data/useRelationSelector.tsx +99 -55
  118. package/src/hooks/data/useUserSelector.tsx +157 -0
  119. package/src/hooks/index.tsx +11 -15
  120. package/src/hooks/useAuthSubscription.ts +87 -0
  121. package/src/hooks/useBackendStorageSource.ts +71 -59
  122. package/src/hooks/useBridgeRegistration.tsx +32 -0
  123. package/src/hooks/useBrowserTitleAndIcon.tsx +1 -3
  124. package/src/hooks/useBuildAdminModeController.tsx +3 -3
  125. package/src/hooks/useBuildEffectiveRoleController.tsx +5 -4
  126. package/src/hooks/useBuildLocalConfigurationPersistence.tsx +14 -4
  127. package/src/hooks/useBuildModeController.tsx +6 -6
  128. package/src/hooks/useClipboard.tsx +11 -11
  129. package/src/hooks/useCollapsedGroups.ts +7 -6
  130. package/src/hooks/useCustomizationController.tsx +1 -1
  131. package/src/hooks/useDialogsController.tsx +2 -1
  132. package/src/hooks/usePermissions.ts +5 -4
  133. package/src/hooks/useRebaseClient.tsx +10 -0
  134. package/src/hooks/useRebaseContext.tsx +18 -29
  135. package/src/hooks/useRebaseRegistry.tsx +91 -0
  136. package/src/hooks/useSlot.tsx +64 -0
  137. package/src/hooks/useSnackbarController.tsx +2 -2
  138. package/src/hooks/useStorageSource.tsx +2 -1
  139. package/src/hooks/useStudioBridge.tsx +218 -0
  140. package/src/hooks/useTranslation.ts +33 -0
  141. package/src/hooks/useUnsavedChangesDialog.tsx +10 -8
  142. package/src/hooks/useValidateAuthenticator.tsx +10 -9
  143. package/src/i18n/RebaseI18nProvider.tsx +160 -0
  144. package/src/index.ts +11 -9
  145. package/src/locales/de.ts +897 -0
  146. package/src/locales/en.ts +947 -0
  147. package/src/locales/es.ts +907 -0
  148. package/src/locales/fr.ts +896 -0
  149. package/src/locales/hi.ts +896 -0
  150. package/src/locales/it.ts +896 -0
  151. package/src/locales/pt.ts +904 -0
  152. package/src/util/constants.ts +7 -0
  153. package/src/util/entity_cache.ts +20 -20
  154. package/src/util/icon_list.ts +2 -3
  155. package/src/util/icon_synonyms.ts +1 -1853
  156. package/src/util/icons.tsx +72 -18
  157. package/src/util/index.ts +3 -2
  158. package/src/util/previews.ts +25 -6
  159. package/src/util/useStorageUploadController.tsx +22 -32
  160. package/src/vitePlugin.ts +4 -5
  161. package/dist/app/AppBar.d.ts +0 -12
  162. package/dist/app/Drawer.d.ts +0 -19
  163. package/dist/app/Scaffold.d.ts +0 -34
  164. package/dist/app/index.d.ts +0 -4
  165. package/dist/app/useApp.d.ts +0 -17
  166. package/dist/components/AdminModeSyncer.d.ts +0 -17
  167. package/dist/components/ArrayContainer.d.ts +0 -59
  168. package/dist/components/CircularProgressCenter.d.ts +0 -11
  169. package/dist/components/ClearFilterSortButton.d.ts +0 -5
  170. package/dist/components/DeleteEntityDialog.d.ts +0 -12
  171. package/dist/components/EntityCollectionTable/EntityCollectionRowActions.d.ts +0 -37
  172. package/dist/components/EntityCollectionTable/EntityCollectionTable.d.ts +0 -27
  173. package/dist/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +0 -128
  174. package/dist/components/EntityCollectionTable/PropertyTableCell.d.ts +0 -25
  175. package/dist/components/EntityCollectionTable/column_utils.d.ts +0 -15
  176. package/dist/components/EntityCollectionTable/fields/TableMultipleRelationField.d.ts +0 -20
  177. package/dist/components/EntityCollectionTable/fields/TableReferenceField.d.ts +0 -21
  178. package/dist/components/EntityCollectionTable/fields/TableRelationField.d.ts +0 -21
  179. package/dist/components/EntityCollectionTable/fields/TableRelationSelectorField.d.ts +0 -20
  180. package/dist/components/EntityCollectionTable/fields/TableStorageUpload.d.ts +0 -32
  181. package/dist/components/EntityCollectionTable/index.d.ts +0 -6
  182. package/dist/components/EntityCollectionTable/internal/CollectionTableToolbar.d.ts +0 -16
  183. package/dist/components/EntityCollectionTable/internal/EntityTableCell.d.ts +0 -32
  184. package/dist/components/EntityCollectionTable/internal/EntityTableCellActions.d.ts +0 -9
  185. package/dist/components/EntityCollectionTable/internal/common.d.ts +0 -4
  186. package/dist/components/EntityCollectionTable/internal/popup_field/PopupFormField.d.ts +0 -26
  187. package/dist/components/EntityCollectionTable/internal/popup_field/useDraggable.d.ts +0 -13
  188. package/dist/components/EntityCollectionTable/internal/popup_field/useWindowSize.d.ts +0 -6
  189. package/dist/components/EntityCollectionView/Board.d.ts +0 -2
  190. package/dist/components/EntityCollectionView/BoardColumn.d.ts +0 -42
  191. package/dist/components/EntityCollectionView/BoardColumnTitle.d.ts +0 -9
  192. package/dist/components/EntityCollectionView/BoardSortableList.d.ts +0 -14
  193. package/dist/components/EntityCollectionView/EntityBoardCard.d.ts +0 -26
  194. package/dist/components/EntityCollectionView/EntityCard.d.ts +0 -19
  195. package/dist/components/EntityCollectionView/EntityCollectionBoardView.d.ts +0 -20
  196. package/dist/components/EntityCollectionView/EntityCollectionCardView.d.ts +0 -31
  197. package/dist/components/EntityCollectionView/EntityCollectionView.d.ts +0 -54
  198. package/dist/components/EntityCollectionView/EntityCollectionViewActions.d.ts +0 -14
  199. package/dist/components/EntityCollectionView/EntityCollectionViewStartActions.d.ts +0 -15
  200. package/dist/components/EntityCollectionView/FiltersDialog.d.ts +0 -14
  201. package/dist/components/EntityCollectionView/ViewModeToggle.d.ts +0 -44
  202. package/dist/components/EntityCollectionView/board_types.d.ts +0 -105
  203. package/dist/components/EntityCollectionView/useBoardDataController.d.ts +0 -60
  204. package/dist/components/EntityCollectionView/useSelectionController.d.ts +0 -2
  205. package/dist/components/EntityCollectionView/utils.d.ts +0 -3
  206. package/dist/components/EntityJsonPreview.d.ts +0 -3
  207. package/dist/components/EntityPreview.d.ts +0 -54
  208. package/dist/components/EntityView.d.ts +0 -11
  209. package/dist/components/ErrorBoundary.d.ts +0 -11
  210. package/dist/components/FieldCaption.d.ts +0 -5
  211. package/dist/components/HomePage/ContentHomePage.d.ts +0 -11
  212. package/dist/components/HomePage/FavouritesView.d.ts +0 -3
  213. package/dist/components/HomePage/HomePageDnD.d.ts +0 -77
  214. package/dist/components/HomePage/NavigationCard.d.ts +0 -10
  215. package/dist/components/HomePage/NavigationCardBinding.d.ts +0 -18
  216. package/dist/components/HomePage/NavigationGroup.d.ts +0 -11
  217. package/dist/components/HomePage/RenameGroupDialog.d.ts +0 -9
  218. package/dist/components/HomePage/SmallNavigationCard.d.ts +0 -6
  219. package/dist/components/HomePage/StudioHomePage.d.ts +0 -9
  220. package/dist/components/HomePage/index.d.ts +0 -5
  221. package/dist/components/PropertyCollectionView.d.ts +0 -22
  222. package/dist/components/PropertyConfigBadge.d.ts +0 -6
  223. package/dist/components/PropertyIdCopyTooltip.d.ts +0 -8
  224. package/dist/components/ReferenceTable/EntitySelectionTable.d.ts +0 -58
  225. package/dist/components/ReferenceWidget.d.ts +0 -29
  226. package/dist/components/RelationSelector.d.ts +0 -32
  227. package/dist/components/SearchIconsView.d.ts +0 -5
  228. package/dist/components/SelectableTable/SelectableTable.d.ts +0 -89
  229. package/dist/components/SelectableTable/SelectableTableContext.d.ts +0 -4
  230. package/dist/components/SelectableTable/filters/BooleanFilterField.d.ts +0 -9
  231. package/dist/components/SelectableTable/filters/DateTimeFilterField.d.ts +0 -12
  232. package/dist/components/SelectableTable/filters/ReferenceFilterField.d.ts +0 -15
  233. package/dist/components/SelectableTable/filters/RelationFilterField.d.ts +0 -12
  234. package/dist/components/SelectableTable/filters/StringNumberFilterField.d.ts +0 -13
  235. package/dist/components/VirtualTable/VirtualTable.d.ts +0 -11
  236. package/dist/components/VirtualTable/VirtualTableCell.d.ts +0 -20
  237. package/dist/components/VirtualTable/VirtualTableHeader.d.ts +0 -29
  238. package/dist/components/VirtualTable/VirtualTableHeaderRow.d.ts +0 -2
  239. package/dist/components/VirtualTable/VirtualTableProps.d.ts +0 -239
  240. package/dist/components/VirtualTable/VirtualTableRow.d.ts +0 -3
  241. package/dist/components/VirtualTable/fields/VirtualTableDateField.d.ts +0 -12
  242. package/dist/components/VirtualTable/fields/VirtualTableInput.d.ts +0 -9
  243. package/dist/components/VirtualTable/fields/VirtualTableNumberInput.d.ts +0 -8
  244. package/dist/components/VirtualTable/fields/VirtualTableSelect.d.ts +0 -15
  245. package/dist/components/VirtualTable/fields/VirtualTableSwitch.d.ts +0 -7
  246. package/dist/components/VirtualTable/fields/VirtualTableUserSelect.d.ts +0 -12
  247. package/dist/components/VirtualTable/index.d.ts +0 -3
  248. package/dist/components/VirtualTable/types.d.ts +0 -37
  249. package/dist/components/admin/RoleChip.d.ts +0 -4
  250. package/dist/components/admin/RolesView.d.ts +0 -4
  251. package/dist/components/admin/UsersView.d.ts +0 -4
  252. package/dist/components/admin/index.d.ts +0 -3
  253. package/dist/components/common/default_entity_actions.d.ts +0 -4
  254. package/dist/components/common/useDebouncedCallback.d.ts +0 -1
  255. package/dist/components/common/useTableSearchHelper.d.ts +0 -11
  256. package/dist/contexts/BreacrumbsContext.d.ts +0 -8
  257. package/dist/contexts/DataSourceContext.d.ts +0 -3
  258. package/dist/contexts/NavigationContext.d.ts +0 -3
  259. package/dist/contexts/SideDialogsControllerContext.d.ts +0 -3
  260. package/dist/contexts/SideEntityControllerContext.d.ts +0 -3
  261. package/dist/core/DefaultAppBar.d.ts +0 -29
  262. package/dist/core/DefaultDrawer.d.ts +0 -29
  263. package/dist/core/DrawerNavigationGroup.d.ts +0 -45
  264. package/dist/core/DrawerNavigationItem.d.ts +0 -10
  265. package/dist/core/EntityEditView.d.ts +0 -47
  266. package/dist/core/EntityEditViewFormActions.d.ts +0 -2
  267. package/dist/core/EntitySidePanel.d.ts +0 -10
  268. package/dist/core/SideDialogs.d.ts +0 -25
  269. package/dist/core/field_configs.d.ts +0 -6
  270. package/dist/form/EntityForm.d.ts +0 -7
  271. package/dist/form/EntityFormActions.d.ts +0 -2
  272. package/dist/form/PropertyFieldBinding.d.ts +0 -30
  273. package/dist/form/components/ErrorFocus.d.ts +0 -4
  274. package/dist/form/components/FieldHelperText.d.ts +0 -12
  275. package/dist/form/components/FormEntry.d.ts +0 -6
  276. package/dist/form/components/FormLayout.d.ts +0 -5
  277. package/dist/form/components/LabelWithIcon.d.ts +0 -14
  278. package/dist/form/components/LabelWithIconAndTooltip.d.ts +0 -15
  279. package/dist/form/components/LocalChangesMenu.d.ts +0 -11
  280. package/dist/form/components/StorageItemPreview.d.ts +0 -13
  281. package/dist/form/components/StorageUploadProgress.d.ts +0 -10
  282. package/dist/form/components/index.d.ts +0 -5
  283. package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.d.ts +0 -9
  284. package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.d.ts +0 -11
  285. package/dist/form/field_bindings/BlockFieldBinding.d.ts +0 -10
  286. package/dist/form/field_bindings/DateTimeFieldBinding.d.ts +0 -11
  287. package/dist/form/field_bindings/KeyValueFieldBinding.d.ts +0 -7
  288. package/dist/form/field_bindings/MapFieldBinding.d.ts +0 -9
  289. package/dist/form/field_bindings/MarkdownEditorFieldBinding.d.ts +0 -11
  290. package/dist/form/field_bindings/MultiSelectFieldBinding.d.ts +0 -9
  291. package/dist/form/field_bindings/MultipleRelationFieldBinding.d.ts +0 -9
  292. package/dist/form/field_bindings/ReadOnlyFieldBinding.d.ts +0 -10
  293. package/dist/form/field_bindings/ReferenceAsStringFieldBinding.d.ts +0 -9
  294. package/dist/form/field_bindings/ReferenceFieldBinding.d.ts +0 -9
  295. package/dist/form/field_bindings/RelationFieldBinding.d.ts +0 -2
  296. package/dist/form/field_bindings/RepeatFieldBinding.d.ts +0 -10
  297. package/dist/form/field_bindings/SelectFieldBinding.d.ts +0 -10
  298. package/dist/form/field_bindings/StorageUploadFieldBinding.d.ts +0 -19
  299. package/dist/form/field_bindings/SwitchFieldBinding.d.ts +0 -9
  300. package/dist/form/field_bindings/TextFieldBinding.d.ts +0 -8
  301. package/dist/form/field_bindings/UserSelectFieldBinding.d.ts +0 -12
  302. package/dist/form/index.d.ts +0 -20
  303. package/dist/form/useClearRestoreValue.d.ts +0 -13
  304. package/dist/form/validation.d.ts +0 -26
  305. package/dist/hooks/data/useDataSource.d.ts +0 -6
  306. package/dist/hooks/navigation/contexts/CMSUrlContext.d.ts +0 -4
  307. package/dist/hooks/navigation/contexts/CollectionRegistryContext.d.ts +0 -4
  308. package/dist/hooks/navigation/contexts/NavigationStateContext.d.ts +0 -4
  309. package/dist/hooks/navigation/contexts/index.d.ts +0 -3
  310. package/dist/hooks/navigation/useBuildCMSUrlController.d.ts +0 -6
  311. package/dist/hooks/navigation/useBuildCollectionRegistryController.d.ts +0 -7
  312. package/dist/hooks/navigation/useBuildNavigationStateController.d.ts +0 -32
  313. package/dist/hooks/navigation/useNavigationRegistry.d.ts +0 -10
  314. package/dist/hooks/navigation/useNavigationResolution.d.ts +0 -5
  315. package/dist/hooks/navigation/useNavigationURLs.d.ts +0 -11
  316. package/dist/hooks/navigation/useResolvedCollections.d.ts +0 -26
  317. package/dist/hooks/navigation/useResolvedViews.d.ts +0 -28
  318. package/dist/hooks/navigation/useTopLevelNavigation.d.ts +0 -26
  319. package/dist/hooks/navigation/utils.d.ts +0 -12
  320. package/dist/hooks/useBreadcrumbsController.d.ts +0 -42
  321. package/dist/hooks/useBuildNavigationController.d.ts +0 -16
  322. package/dist/hooks/useEntitySelectionDialog.d.ts +0 -18
  323. package/dist/hooks/useResolvedNavigationFrom.d.ts +0 -72
  324. package/dist/hooks/useSideDialogsController.d.ts +0 -18
  325. package/dist/hooks/useSideEntityController.d.ts +0 -12
  326. package/dist/internal/useBuildDataSource.d.ts +0 -12
  327. package/dist/internal/useBuildSideDialogsController.d.ts +0 -2
  328. package/dist/internal/useBuildSideEntityController.d.ts +0 -4
  329. package/dist/preview/PropertyPreview.d.ts +0 -6
  330. package/dist/preview/components/ArrayEnumPreview.d.ts +0 -10
  331. package/dist/preview/components/AsyncPreviewComponent.d.ts +0 -11
  332. package/dist/preview/components/BooleanPreview.d.ts +0 -10
  333. package/dist/preview/components/DatePreview.d.ts +0 -17
  334. package/dist/preview/components/EmptyValue.d.ts +0 -6
  335. package/dist/preview/components/EnumValuesChip.d.ts +0 -13
  336. package/dist/preview/components/ImagePreview.d.ts +0 -16
  337. package/dist/preview/components/ReferencePreview.d.ts +0 -16
  338. package/dist/preview/components/RelationPreview.d.ts +0 -16
  339. package/dist/preview/components/StorageThumbnail.d.ts +0 -15
  340. package/dist/preview/components/UrlComponentPreview.d.ts +0 -13
  341. package/dist/preview/components/UserPreview.d.ts +0 -8
  342. package/dist/preview/index.d.ts +0 -24
  343. package/dist/preview/property_previews/ArrayOfMapsPreview.d.ts +0 -5
  344. package/dist/preview/property_previews/ArrayOfReferencesPreview.d.ts +0 -5
  345. package/dist/preview/property_previews/ArrayOfRelationsPreview.d.ts +0 -5
  346. package/dist/preview/property_previews/ArrayOfStorageComponentsPreview.d.ts +0 -5
  347. package/dist/preview/property_previews/ArrayOfStringsPreview.d.ts +0 -5
  348. package/dist/preview/property_previews/ArrayOneOfPreview.d.ts +0 -5
  349. package/dist/preview/property_previews/ArrayPropertyEnumPreview.d.ts +0 -5
  350. package/dist/preview/property_previews/ArrayPropertyPreview.d.ts +0 -5
  351. package/dist/preview/property_previews/MapPropertyPreview.d.ts +0 -8
  352. package/dist/preview/property_previews/NumberPropertyPreview.d.ts +0 -6
  353. package/dist/preview/property_previews/SkeletonPropertyComponent.d.ts +0 -13
  354. package/dist/preview/property_previews/StringPropertyPreview.d.ts +0 -6
  355. package/dist/preview/util.d.ts +0 -6
  356. package/dist/routes/CustomCMSRoute.d.ts +0 -4
  357. package/dist/routes/RebaseRoute.d.ts +0 -1
  358. package/dist/routes/index.d.ts +0 -2
  359. package/dist/util/property_utils.d.ts +0 -23
  360. package/dist/util/useDebouncedCallback.d.ts +0 -1
  361. package/src/app/AppBar.tsx +0 -18
  362. package/src/app/Drawer.tsx +0 -30
  363. package/src/app/Scaffold.tsx +0 -238
  364. package/src/app/index.ts +0 -4
  365. package/src/app/useApp.tsx +0 -36
  366. package/src/components/AdminModeSyncer.tsx +0 -47
  367. package/src/components/ArrayContainer.tsx +0 -549
  368. package/src/components/CircularProgressCenter.tsx +0 -26
  369. package/src/components/ClearFilterSortButton.tsx +0 -44
  370. package/src/components/DeleteEntityDialog.tsx +0 -181
  371. package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +0 -225
  372. package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +0 -383
  373. package/src/components/EntityCollectionTable/EntityCollectionTableProps.tsx +0 -180
  374. package/src/components/EntityCollectionTable/PropertyTableCell.tsx +0 -561
  375. package/src/components/EntityCollectionTable/column_utils.tsx +0 -74
  376. package/src/components/EntityCollectionTable/fields/TableMultipleRelationField.tsx +0 -122
  377. package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +0 -169
  378. package/src/components/EntityCollectionTable/fields/TableRelationField.tsx +0 -177
  379. package/src/components/EntityCollectionTable/fields/TableRelationSelectorField.tsx +0 -42
  380. package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +0 -315
  381. package/src/components/EntityCollectionTable/index.tsx +0 -12
  382. package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +0 -90
  383. package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +0 -311
  384. package/src/components/EntityCollectionTable/internal/EntityTableCellActions.tsx +0 -82
  385. package/src/components/EntityCollectionTable/internal/common.tsx +0 -72
  386. package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +0 -425
  387. package/src/components/EntityCollectionTable/internal/popup_field/useDraggable.tsx +0 -96
  388. package/src/components/EntityCollectionTable/internal/popup_field/useWindowSize.tsx +0 -20
  389. package/src/components/EntityCollectionView/Board.tsx +0 -324
  390. package/src/components/EntityCollectionView/BoardColumn.tsx +0 -158
  391. package/src/components/EntityCollectionView/BoardColumnTitle.tsx +0 -45
  392. package/src/components/EntityCollectionView/BoardSortableList.tsx +0 -172
  393. package/src/components/EntityCollectionView/EntityBoardCard.tsx +0 -200
  394. package/src/components/EntityCollectionView/EntityCard.tsx +0 -225
  395. package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +0 -746
  396. package/src/components/EntityCollectionView/EntityCollectionCardView.tsx +0 -254
  397. package/src/components/EntityCollectionView/EntityCollectionView.tsx +0 -1220
  398. package/src/components/EntityCollectionView/EntityCollectionViewActions.tsx +0 -142
  399. package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +0 -131
  400. package/src/components/EntityCollectionView/FiltersDialog.tsx +0 -249
  401. package/src/components/EntityCollectionView/ViewModeToggle.tsx +0 -194
  402. package/src/components/EntityCollectionView/board_types.ts +0 -113
  403. package/src/components/EntityCollectionView/useBoardDataController.tsx +0 -490
  404. package/src/components/EntityCollectionView/useSelectionController.tsx +0 -43
  405. package/src/components/EntityCollectionView/utils.ts +0 -19
  406. package/src/components/EntityJsonPreview.tsx +0 -66
  407. package/src/components/EntityPreview.tsx +0 -367
  408. package/src/components/EntityView.tsx +0 -66
  409. package/src/components/ErrorBoundary.tsx +0 -40
  410. package/src/components/FieldCaption.tsx +0 -14
  411. package/src/components/HomePage/ContentHomePage.tsx +0 -634
  412. package/src/components/HomePage/FavouritesView.tsx +0 -59
  413. package/src/components/HomePage/HomePageDnD.tsx +0 -702
  414. package/src/components/HomePage/NavigationCard.tsx +0 -80
  415. package/src/components/HomePage/NavigationCardBinding.tsx +0 -111
  416. package/src/components/HomePage/NavigationGroup.tsx +0 -154
  417. package/src/components/HomePage/RenameGroupDialog.tsx +0 -121
  418. package/src/components/HomePage/SmallNavigationCard.tsx +0 -45
  419. package/src/components/HomePage/StudioHomePage.tsx +0 -231
  420. package/src/components/HomePage/index.tsx +0 -6
  421. package/src/components/PropertyCollectionView.tsx +0 -333
  422. package/src/components/PropertyConfigBadge.tsx +0 -27
  423. package/src/components/PropertyIdCopyTooltip.tsx +0 -47
  424. package/src/components/ReferenceTable/EntitySelectionTable.tsx +0 -371
  425. package/src/components/ReferenceWidget.tsx +0 -152
  426. package/src/components/RelationSelector.tsx +0 -518
  427. package/src/components/SearchIconsView.tsx +0 -78
  428. package/src/components/SelectableTable/SelectableTable.tsx +0 -344
  429. package/src/components/SelectableTable/SelectableTableContext.tsx +0 -6
  430. package/src/components/SelectableTable/filters/BooleanFilterField.tsx +0 -49
  431. package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +0 -126
  432. package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +0 -203
  433. package/src/components/SelectableTable/filters/RelationFilterField.tsx +0 -138
  434. package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +0 -217
  435. package/src/components/VirtualTable/VirtualTable.performance.test.tsx +0 -386
  436. package/src/components/VirtualTable/VirtualTable.tsx +0 -625
  437. package/src/components/VirtualTable/VirtualTableCell.tsx +0 -58
  438. package/src/components/VirtualTable/VirtualTableHeader.tsx +0 -275
  439. package/src/components/VirtualTable/VirtualTableHeaderRow.tsx +0 -249
  440. package/src/components/VirtualTable/VirtualTableProps.tsx +0 -298
  441. package/src/components/VirtualTable/VirtualTableRow.tsx +0 -52
  442. package/src/components/VirtualTable/fields/VirtualTableDateField.tsx +0 -39
  443. package/src/components/VirtualTable/fields/VirtualTableInput.tsx +0 -93
  444. package/src/components/VirtualTable/fields/VirtualTableNumberInput.tsx +0 -83
  445. package/src/components/VirtualTable/fields/VirtualTableSelect.tsx +0 -133
  446. package/src/components/VirtualTable/fields/VirtualTableSwitch.tsx +0 -32
  447. package/src/components/VirtualTable/fields/VirtualTableUserSelect.tsx +0 -111
  448. package/src/components/VirtualTable/index.tsx +0 -3
  449. package/src/components/VirtualTable/types.tsx +0 -46
  450. package/src/components/admin/RoleChip.tsx +0 -23
  451. package/src/components/admin/RolesView.tsx +0 -408
  452. package/src/components/admin/UsersView.tsx +0 -353
  453. package/src/components/admin/index.ts +0 -3
  454. package/src/components/common/default_entity_actions.tsx +0 -144
  455. package/src/components/common/useDebouncedCallback.tsx +0 -20
  456. package/src/components/common/useTableSearchHelper.ts +0 -75
  457. package/src/contexts/BreacrumbsContext.tsx +0 -45
  458. package/src/contexts/DataSourceContext.tsx +0 -4
  459. package/src/contexts/NavigationContext.tsx +0 -4
  460. package/src/contexts/SideDialogsControllerContext.tsx +0 -4
  461. package/src/contexts/SideEntityControllerContext.tsx +0 -4
  462. package/src/core/DefaultAppBar.tsx +0 -274
  463. package/src/core/DefaultDrawer.tsx +0 -267
  464. package/src/core/DrawerNavigationGroup.tsx +0 -117
  465. package/src/core/DrawerNavigationItem.tsx +0 -65
  466. package/src/core/EntityEditView.tsx +0 -590
  467. package/src/core/EntityEditViewFormActions.tsx +0 -343
  468. package/src/core/EntitySidePanel.tsx +0 -173
  469. package/src/core/SideDialogs.tsx +0 -200
  470. package/src/core/field_configs.tsx +0 -443
  471. package/src/form/EntityForm.tsx +0 -820
  472. package/src/form/EntityFormActions.tsx +0 -201
  473. package/src/form/PropertyFieldBinding.tsx +0 -348
  474. package/src/form/components/ErrorFocus.tsx +0 -44
  475. package/src/form/components/FieldHelperText.tsx +0 -45
  476. package/src/form/components/FormEntry.tsx +0 -22
  477. package/src/form/components/FormLayout.tsx +0 -16
  478. package/src/form/components/LabelWithIcon.tsx +0 -43
  479. package/src/form/components/LabelWithIconAndTooltip.tsx +0 -28
  480. package/src/form/components/LocalChangesMenu.tsx +0 -144
  481. package/src/form/components/StorageItemPreview.tsx +0 -79
  482. package/src/form/components/StorageUploadProgress.tsx +0 -105
  483. package/src/form/components/index.tsx +0 -5
  484. package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +0 -105
  485. package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +0 -163
  486. package/src/form/field_bindings/BlockFieldBinding.tsx +0 -268
  487. package/src/form/field_bindings/DateTimeFieldBinding.tsx +0 -70
  488. package/src/form/field_bindings/KeyValueFieldBinding.tsx +0 -567
  489. package/src/form/field_bindings/MapFieldBinding.tsx +0 -156
  490. package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +0 -146
  491. package/src/form/field_bindings/MultiSelectFieldBinding.tsx +0 -120
  492. package/src/form/field_bindings/MultipleRelationFieldBinding.tsx +0 -151
  493. package/src/form/field_bindings/ReadOnlyFieldBinding.tsx +0 -64
  494. package/src/form/field_bindings/ReferenceAsStringFieldBinding.tsx +0 -135
  495. package/src/form/field_bindings/ReferenceFieldBinding.tsx +0 -134
  496. package/src/form/field_bindings/RelationFieldBinding.tsx +0 -176
  497. package/src/form/field_bindings/RepeatFieldBinding.tsx +0 -136
  498. package/src/form/field_bindings/SelectFieldBinding.tsx +0 -107
  499. package/src/form/field_bindings/StorageUploadFieldBinding.tsx +0 -490
  500. package/src/form/field_bindings/SwitchFieldBinding.tsx +0 -64
  501. package/src/form/field_bindings/TextFieldBinding.tsx +0 -153
  502. package/src/form/field_bindings/UserSelectFieldBinding.tsx +0 -96
  503. package/src/form/index.tsx +0 -27
  504. package/src/form/useClearRestoreValue.tsx +0 -35
  505. package/src/form/validation.ts +0 -532
  506. package/src/hooks/data/useDataSource.tsx +0 -22
  507. package/src/hooks/navigation/contexts/CMSUrlContext.tsx +0 -24
  508. package/src/hooks/navigation/contexts/CollectionRegistryContext.tsx +0 -19
  509. package/src/hooks/navigation/contexts/NavigationStateContext.tsx +0 -15
  510. package/src/hooks/navigation/contexts/index.ts +0 -14
  511. package/src/hooks/navigation/useBuildCMSUrlController.tsx +0 -68
  512. package/src/hooks/navigation/useBuildCollectionRegistryController.tsx +0 -150
  513. package/src/hooks/navigation/useBuildNavigationStateController.tsx +0 -135
  514. package/src/hooks/navigation/useNavigationRegistry.ts +0 -142
  515. package/src/hooks/navigation/useNavigationResolution.ts +0 -98
  516. package/src/hooks/navigation/useNavigationURLs.ts +0 -56
  517. package/src/hooks/navigation/useResolvedCollections.ts +0 -139
  518. package/src/hooks/navigation/useResolvedViews.tsx +0 -204
  519. package/src/hooks/navigation/useTopLevelNavigation.ts +0 -265
  520. package/src/hooks/navigation/utils.ts +0 -177
  521. package/src/hooks/useBreadcrumbsController.tsx +0 -49
  522. package/src/hooks/useBuildNavigationController.tsx +0 -341
  523. package/src/hooks/useEntitySelectionDialog.tsx +0 -56
  524. package/src/hooks/useResolvedNavigationFrom.tsx +0 -158
  525. package/src/hooks/useSideDialogsController.tsx +0 -21
  526. package/src/hooks/useSideEntityController.tsx +0 -15
  527. package/src/internal/useBuildDataSource.ts +0 -380
  528. package/src/internal/useBuildSideDialogsController.tsx +0 -135
  529. package/src/internal/useBuildSideEntityController.tsx +0 -309
  530. package/src/preview/PropertyPreview.tsx +0 -308
  531. package/src/preview/components/ArrayEnumPreview.tsx +0 -38
  532. package/src/preview/components/AsyncPreviewComponent.tsx +0 -47
  533. package/src/preview/components/BooleanPreview.tsx +0 -25
  534. package/src/preview/components/DatePreview.tsx +0 -94
  535. package/src/preview/components/EmptyValue.tsx +0 -10
  536. package/src/preview/components/EnumValuesChip.tsx +0 -39
  537. package/src/preview/components/ImagePreview.tsx +0 -111
  538. package/src/preview/components/ReferencePreview.tsx +0 -162
  539. package/src/preview/components/RelationPreview.tsx +0 -153
  540. package/src/preview/components/StorageThumbnail.tsx +0 -91
  541. package/src/preview/components/UrlComponentPreview.tsx +0 -113
  542. package/src/preview/components/UserPreview.tsx +0 -27
  543. package/src/preview/index.ts +0 -26
  544. package/src/preview/property_previews/ArrayOfMapsPreview.tsx +0 -72
  545. package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +0 -43
  546. package/src/preview/property_previews/ArrayOfRelationsPreview.tsx +0 -52
  547. package/src/preview/property_previews/ArrayOfStorageComponentsPreview.tsx +0 -49
  548. package/src/preview/property_previews/ArrayOfStringsPreview.tsx +0 -44
  549. package/src/preview/property_previews/ArrayOneOfPreview.tsx +0 -67
  550. package/src/preview/property_previews/ArrayPropertyEnumPreview.tsx +0 -34
  551. package/src/preview/property_previews/ArrayPropertyPreview.tsx +0 -69
  552. package/src/preview/property_previews/MapPropertyPreview.tsx +0 -145
  553. package/src/preview/property_previews/NumberPropertyPreview.tsx +0 -28
  554. package/src/preview/property_previews/SkeletonPropertyComponent.tsx +0 -275
  555. package/src/preview/property_previews/StringPropertyPreview.tsx +0 -57
  556. package/src/preview/util.ts +0 -30
  557. package/src/routes/CustomCMSRoute.tsx +0 -21
  558. package/src/routes/RebaseRoute.tsx +0 -255
  559. package/src/routes/index.ts +0 -2
  560. package/src/util/property_utils.tsx +0 -152
  561. package/src/util/useDebouncedCallback.ts +0 -25
package/README.md CHANGED
@@ -69,9 +69,9 @@ Rebase has been meticulously crafted to make it incredibly easy for developers
69
69
  to build a CMS/admin tool while offering an excellent data editing experience
70
70
  and a user-friendly interface for marketers and content managers.
71
71
 
72
- ### 🏓 Exceptional Spreadsheet View
72
+ ### 🏓 Exceptional Table View
73
73
 
74
- We've developed a highly efficient windowed **spreadsheet view** for
74
+ We've developed a highly efficient windowed **table view** for
75
75
  collections, allowing inline editing for most common fields, as well as popup
76
76
  views for other cases and your custom field implementations.
77
77
 
@@ -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
File without changes
@@ -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;
@@ -2,6 +2,6 @@ import { User } from "@rebasepro/types";
2
2
  /**
3
3
  * Component to render a single user with name and email
4
4
  */
5
- export declare function UserDisplay({ user, }: {
5
+ export declare function UserDisplay({ user }: {
6
6
  user: User | null;
7
7
  }): import("react/jsx-runtime").JSX.Element;
@@ -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,9 +1,14 @@
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
5
6
  */
6
7
  selectedCell?: SelectedCellProps<any>;
8
+ /**
9
+ * Store used to sync selection state across cells efficiently.
10
+ */
11
+ selectionStore?: any;
7
12
  /**
8
13
  * Select a table cell
9
14
  * @param cell
@@ -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
  */
@@ -19,7 +20,7 @@ export type DataSourceTableControllerProps<M extends Record<string, any> = any>
19
20
  /**
20
21
  * Force filter to be applied to the table.
21
22
  */
22
- forceFilter?: FilterValues<string>;
23
+ fixedFilter?: FilterValues<string>;
23
24
  scrollRestoration?: ScrollRestorationController;
24
25
  /**
25
26
  * When set to true the filters and sort will be updated in the URL
@@ -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.
@@ -38,7 +39,7 @@ export type DataSourceTableControllerProps<M extends Record<string, any> = any>
38
39
  * @param scrollRestoration
39
40
  * @param entitiesDisplayedFirst
40
41
  * @param lastDeleteTimestamp
41
- * @param forceFilterFromProps
42
+ * @param fixedFilterFromProps
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, fixedFilter: fixedFilterFromProps, 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<USER>;
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>>;