@rebasepro/plugin-insights 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/dist/{plugin-insights/src/components → components}/CollectionInsightsInline.d.ts +2 -1
  2. package/dist/{plugin-insights/src/components → components}/HomeCardInsightSlot.d.ts +3 -2
  3. package/dist/{plugin-insights/src/components → components}/HomeInsightsSlot.d.ts +3 -2
  4. package/dist/{plugin-insights/src/components → components}/InsightWidget.d.ts +3 -2
  5. package/dist/{plugin-insights/src/components → components}/InsightWidgetSkeleton.d.ts +3 -2
  6. package/dist/{plugin-insights/src/components → components}/InsightsScorecardView.d.ts +3 -2
  7. package/dist/{plugin-insights/src/engine → engine}/InsightsProvider.d.ts +2 -2
  8. package/dist/{plugin-insights/src/index.d.ts → index.d.ts} +1 -1
  9. package/dist/index.es.js +583 -1072
  10. package/dist/index.es.js.map +1 -1
  11. package/dist/index.umd.js +645 -1096
  12. package/dist/index.umd.js.map +1 -1
  13. package/package.json +19 -14
  14. package/src/components/CollectionInsightsInline.tsx +3 -3
  15. package/src/components/HomeCardInsightSlot.tsx +1 -1
  16. package/src/components/HomeInsightsSlot.tsx +1 -1
  17. package/src/components/InsightWidget.tsx +4 -2
  18. package/src/components/InsightWidgetSkeleton.tsx +21 -13
  19. package/src/components/InsightsScorecardView.tsx +2 -2
  20. package/src/engine/InsightsCache.test.ts +5 -3
  21. package/src/engine/InsightsCache.ts +3 -2
  22. package/src/engine/useInsightsData.ts +3 -1
  23. package/src/index.ts +1 -1
  24. package/src/useInsightsPlugin.tsx +68 -65
  25. package/dist/common/src/collections/CollectionRegistry.d.ts +0 -56
  26. package/dist/common/src/collections/default-collections.d.ts +0 -9
  27. package/dist/common/src/collections/index.d.ts +0 -2
  28. package/dist/common/src/data/buildRebaseData.d.ts +0 -14
  29. package/dist/common/src/data/query_builder.d.ts +0 -55
  30. package/dist/common/src/index.d.ts +0 -4
  31. package/dist/common/src/util/builders.d.ts +0 -57
  32. package/dist/common/src/util/callbacks.d.ts +0 -6
  33. package/dist/common/src/util/collections.d.ts +0 -11
  34. package/dist/common/src/util/common.d.ts +0 -2
  35. package/dist/common/src/util/conditions.d.ts +0 -26
  36. package/dist/common/src/util/entities.d.ts +0 -58
  37. package/dist/common/src/util/enums.d.ts +0 -3
  38. package/dist/common/src/util/index.d.ts +0 -16
  39. package/dist/common/src/util/navigation_from_path.d.ts +0 -34
  40. package/dist/common/src/util/navigation_utils.d.ts +0 -20
  41. package/dist/common/src/util/parent_references_from_path.d.ts +0 -6
  42. package/dist/common/src/util/paths.d.ts +0 -14
  43. package/dist/common/src/util/permissions.d.ts +0 -14
  44. package/dist/common/src/util/references.d.ts +0 -2
  45. package/dist/common/src/util/relations.d.ts +0 -22
  46. package/dist/common/src/util/resolutions.d.ts +0 -72
  47. package/dist/common/src/util/storage.d.ts +0 -24
  48. package/dist/core/src/components/AIIcon.d.ts +0 -16
  49. package/dist/core/src/components/BootstrapAdminBanner.d.ts +0 -4
  50. package/dist/core/src/components/ConfirmationDialog.d.ts +0 -9
  51. package/dist/core/src/components/Debug/UIReferenceView.d.ts +0 -1
  52. package/dist/core/src/components/Debug/UIStyleGuide.d.ts +0 -1
  53. package/dist/core/src/components/ErrorTooltip.d.ts +0 -2
  54. package/dist/core/src/components/ErrorView.d.ts +0 -21
  55. package/dist/core/src/components/LanguageToggle.d.ts +0 -1
  56. package/dist/core/src/components/LoginView/LoginView.d.ts +0 -109
  57. package/dist/core/src/components/LoginView/index.d.ts +0 -2
  58. package/dist/core/src/components/NotFoundPage.d.ts +0 -1
  59. package/dist/core/src/components/RebaseAuth.d.ts +0 -10
  60. package/dist/core/src/components/RebaseLogo.d.ts +0 -7
  61. package/dist/core/src/components/UnsavedChangesDialog.d.ts +0 -9
  62. package/dist/core/src/components/UserDisplay.d.ts +0 -7
  63. package/dist/core/src/components/UserSelectPopover.d.ts +0 -62
  64. package/dist/core/src/components/UserSettingsView.d.ts +0 -1
  65. package/dist/core/src/components/common/index.d.ts +0 -6
  66. package/dist/core/src/components/common/table_height.d.ts +0 -5
  67. package/dist/core/src/components/common/types.d.ts +0 -66
  68. package/dist/core/src/components/common/useColumnsIds.d.ts +0 -9
  69. package/dist/core/src/components/common/useDataTableController.d.ts +0 -45
  70. package/dist/core/src/components/common/useDebouncedData.d.ts +0 -9
  71. package/dist/core/src/components/common/useScrollRestoration.d.ts +0 -14
  72. package/dist/core/src/components/index.d.ts +0 -17
  73. package/dist/core/src/contexts/AdminModeController.d.ts +0 -4
  74. package/dist/core/src/contexts/AnalyticsContext.d.ts +0 -3
  75. package/dist/core/src/contexts/AuthControllerContext.d.ts +0 -3
  76. package/dist/core/src/contexts/CustomizationControllerContext.d.ts +0 -3
  77. package/dist/core/src/contexts/DataDriverContext.d.ts +0 -3
  78. package/dist/core/src/contexts/DatabaseAdminContext.d.ts +0 -3
  79. package/dist/core/src/contexts/DialogsProvider.d.ts +0 -4
  80. package/dist/core/src/contexts/EffectiveRoleController.d.ts +0 -4
  81. package/dist/core/src/contexts/InternalUserManagementContext.d.ts +0 -3
  82. package/dist/core/src/contexts/ModeController.d.ts +0 -4
  83. package/dist/core/src/contexts/RebaseClientInstanceContext.d.ts +0 -6
  84. package/dist/core/src/contexts/RebaseDataContext.d.ts +0 -3
  85. package/dist/core/src/contexts/SnackbarProvider.d.ts +0 -2
  86. package/dist/core/src/contexts/StorageSourceContext.d.ts +0 -3
  87. package/dist/core/src/contexts/UserConfigurationPersistenceContext.d.ts +0 -3
  88. package/dist/core/src/contexts/index.d.ts +0 -13
  89. package/dist/core/src/core/PluginLifecycleManager.d.ts +0 -17
  90. package/dist/core/src/core/PluginProviderStack.d.ts +0 -21
  91. package/dist/core/src/core/Rebase.d.ts +0 -14
  92. package/dist/core/src/core/RebaseProps.d.ts +0 -147
  93. package/dist/core/src/core/RebaseRouter.d.ts +0 -4
  94. package/dist/core/src/core/RebaseRoutes.d.ts +0 -17
  95. package/dist/core/src/core/index.d.ts +0 -4
  96. package/dist/core/src/hooks/ApiConfigContext.d.ts +0 -24
  97. package/dist/core/src/hooks/data/delete.d.ts +0 -31
  98. package/dist/core/src/hooks/data/save.d.ts +0 -34
  99. package/dist/core/src/hooks/data/useCollectionFetch.d.ts +0 -62
  100. package/dist/core/src/hooks/data/useData.d.ts +0 -13
  101. package/dist/core/src/hooks/data/useDataOrder.d.ts +0 -12
  102. package/dist/core/src/hooks/data/useEntityFetch.d.ts +0 -43
  103. package/dist/core/src/hooks/data/useRelationSelector.d.ts +0 -52
  104. package/dist/core/src/hooks/data/useUserSelector.d.ts +0 -31
  105. package/dist/core/src/hooks/index.d.ts +0 -37
  106. package/dist/core/src/hooks/useAdminModeController.d.ts +0 -19
  107. package/dist/core/src/hooks/useAnalyticsController.d.ts +0 -5
  108. package/dist/core/src/hooks/useAuthController.d.ts +0 -11
  109. package/dist/core/src/hooks/useAuthSubscription.d.ts +0 -2
  110. package/dist/core/src/hooks/useBackendStorageSource.d.ts +0 -30
  111. package/dist/core/src/hooks/useBridgeRegistration.d.ts +0 -18
  112. package/dist/core/src/hooks/useBrowserTitleAndIcon.d.ts +0 -6
  113. package/dist/core/src/hooks/useBuildAdminModeController.d.ts +0 -6
  114. package/dist/core/src/hooks/useBuildEffectiveRoleController.d.ts +0 -8
  115. package/dist/core/src/hooks/useBuildLocalConfigurationPersistence.d.ts +0 -2
  116. package/dist/core/src/hooks/useBuildModeController.d.ts +0 -6
  117. package/dist/core/src/hooks/useClipboard.d.ts +0 -57
  118. package/dist/core/src/hooks/useCollapsedGroups.d.ts +0 -27
  119. package/dist/core/src/hooks/useCustomizationController.d.ts +0 -11
  120. package/dist/core/src/hooks/useDialogsController.d.ts +0 -11
  121. package/dist/core/src/hooks/useEffectiveRoleController.d.ts +0 -7
  122. package/dist/core/src/hooks/useInternalUserManagementController.d.ts +0 -12
  123. package/dist/core/src/hooks/useLargeLayout.d.ts +0 -1
  124. package/dist/core/src/hooks/useModeController.d.ts +0 -19
  125. package/dist/core/src/hooks/usePermissions.d.ts +0 -12
  126. package/dist/core/src/hooks/useRebaseClient.d.ts +0 -5
  127. package/dist/core/src/hooks/useRebaseContext.d.ts +0 -11
  128. package/dist/core/src/hooks/useRebaseRegistry.d.ts +0 -34
  129. package/dist/core/src/hooks/useResolvedComponent.d.ts +0 -47
  130. package/dist/core/src/hooks/useSlot.d.ts +0 -18
  131. package/dist/core/src/hooks/useSnackbarController.d.ts +0 -20
  132. package/dist/core/src/hooks/useStorageSource.d.ts +0 -7
  133. package/dist/core/src/hooks/useStudioBridge.d.ts +0 -91
  134. package/dist/core/src/hooks/useTranslation.d.ts +0 -17
  135. package/dist/core/src/hooks/useUnsavedChangesDialog.d.ts +0 -12
  136. package/dist/core/src/hooks/useUserConfigurationPersistence.d.ts +0 -8
  137. package/dist/core/src/i18n/RebaseI18nProvider.d.ts +0 -33
  138. package/dist/core/src/index.d.ts +0 -15
  139. package/dist/core/src/internal/common.d.ts +0 -3
  140. package/dist/core/src/internal/useRestoreScroll.d.ts +0 -6
  141. package/dist/core/src/locales/de.d.ts +0 -2
  142. package/dist/core/src/locales/en.d.ts +0 -10
  143. package/dist/core/src/locales/es.d.ts +0 -10
  144. package/dist/core/src/locales/fr.d.ts +0 -2
  145. package/dist/core/src/locales/hi.d.ts +0 -2
  146. package/dist/core/src/locales/it.d.ts +0 -2
  147. package/dist/core/src/locales/pt.d.ts +0 -7
  148. package/dist/core/src/util/constants.d.ts +0 -1
  149. package/dist/core/src/util/createFormexStub.d.ts +0 -2
  150. package/dist/core/src/util/entity_cache.d.ts +0 -22
  151. package/dist/core/src/util/enums.d.ts +0 -5
  152. package/dist/core/src/util/icon_list.d.ts +0 -5
  153. package/dist/core/src/util/icons.d.ts +0 -20
  154. package/dist/core/src/util/index.d.ts +0 -8
  155. package/dist/core/src/util/previews.d.ts +0 -4
  156. package/dist/core/src/util/useStorageUploadController.d.ts +0 -38
  157. package/dist/formex/src/Field.d.ts +0 -52
  158. package/dist/formex/src/Formex.d.ts +0 -7
  159. package/dist/formex/src/index.d.ts +0 -5
  160. package/dist/formex/src/types.d.ts +0 -40
  161. package/dist/formex/src/useCreateFormex.d.ts +0 -14
  162. package/dist/formex/src/utils.d.ts +0 -16
  163. package/dist/types/src/controllers/analytics_controller.d.ts +0 -7
  164. package/dist/types/src/controllers/auth.d.ts +0 -104
  165. package/dist/types/src/controllers/client.d.ts +0 -168
  166. package/dist/types/src/controllers/collection_registry.d.ts +0 -46
  167. package/dist/types/src/controllers/customization_controller.d.ts +0 -60
  168. package/dist/types/src/controllers/data.d.ts +0 -207
  169. package/dist/types/src/controllers/data_driver.d.ts +0 -218
  170. package/dist/types/src/controllers/database_admin.d.ts +0 -11
  171. package/dist/types/src/controllers/dialogs_controller.d.ts +0 -36
  172. package/dist/types/src/controllers/effective_role.d.ts +0 -4
  173. package/dist/types/src/controllers/email.d.ts +0 -36
  174. package/dist/types/src/controllers/index.d.ts +0 -18
  175. package/dist/types/src/controllers/local_config_persistence.d.ts +0 -20
  176. package/dist/types/src/controllers/navigation.d.ts +0 -225
  177. package/dist/types/src/controllers/registry.d.ts +0 -63
  178. package/dist/types/src/controllers/side_dialogs_controller.d.ts +0 -67
  179. package/dist/types/src/controllers/side_entity_controller.d.ts +0 -97
  180. package/dist/types/src/controllers/snackbar.d.ts +0 -24
  181. package/dist/types/src/controllers/storage.d.ts +0 -171
  182. package/dist/types/src/index.d.ts +0 -4
  183. package/dist/types/src/rebase_context.d.ts +0 -122
  184. package/dist/types/src/types/auth_adapter.d.ts +0 -301
  185. package/dist/types/src/types/backend.d.ts +0 -571
  186. package/dist/types/src/types/backend_hooks.d.ts +0 -172
  187. package/dist/types/src/types/builders.d.ts +0 -15
  188. package/dist/types/src/types/chips.d.ts +0 -5
  189. package/dist/types/src/types/collections.d.ts +0 -961
  190. package/dist/types/src/types/component_ref.d.ts +0 -47
  191. package/dist/types/src/types/cron.d.ts +0 -102
  192. package/dist/types/src/types/data_source.d.ts +0 -64
  193. package/dist/types/src/types/database_adapter.d.ts +0 -94
  194. package/dist/types/src/types/entities.d.ts +0 -145
  195. package/dist/types/src/types/entity_actions.d.ts +0 -104
  196. package/dist/types/src/types/entity_callbacks.d.ts +0 -173
  197. package/dist/types/src/types/entity_link_builder.d.ts +0 -7
  198. package/dist/types/src/types/entity_overrides.d.ts +0 -10
  199. package/dist/types/src/types/entity_views.d.ts +0 -87
  200. package/dist/types/src/types/export_import.d.ts +0 -21
  201. package/dist/types/src/types/formex.d.ts +0 -40
  202. package/dist/types/src/types/index.d.ts +0 -28
  203. package/dist/types/src/types/locales.d.ts +0 -4
  204. package/dist/types/src/types/modify_collections.d.ts +0 -5
  205. package/dist/types/src/types/plugins.d.ts +0 -282
  206. package/dist/types/src/types/properties.d.ts +0 -1173
  207. package/dist/types/src/types/property_config.d.ts +0 -74
  208. package/dist/types/src/types/relations.d.ts +0 -336
  209. package/dist/types/src/types/slots.d.ts +0 -262
  210. package/dist/types/src/types/translations.d.ts +0 -900
  211. package/dist/types/src/types/user_management_delegate.d.ts +0 -86
  212. package/dist/types/src/types/websockets.d.ts +0 -78
  213. package/dist/types/src/users/index.d.ts +0 -1
  214. package/dist/types/src/users/user.d.ts +0 -50
  215. package/dist/ui/src/components/Alert.d.ts +0 -12
  216. package/dist/ui/src/components/Autocomplete.d.ts +0 -21
  217. package/dist/ui/src/components/Avatar.d.ts +0 -11
  218. package/dist/ui/src/components/Badge.d.ts +0 -8
  219. package/dist/ui/src/components/BooleanSwitch.d.ts +0 -14
  220. package/dist/ui/src/components/BooleanSwitchWithLabel.d.ts +0 -17
  221. package/dist/ui/src/components/Button.d.ts +0 -14
  222. package/dist/ui/src/components/Card.d.ts +0 -8
  223. package/dist/ui/src/components/CenteredView.d.ts +0 -9
  224. package/dist/ui/src/components/Checkbox.d.ts +0 -13
  225. package/dist/ui/src/components/Chip.d.ts +0 -26
  226. package/dist/ui/src/components/CircularProgress.d.ts +0 -5
  227. package/dist/ui/src/components/CircularProgressCenter.d.ts +0 -11
  228. package/dist/ui/src/components/Collapse.d.ts +0 -9
  229. package/dist/ui/src/components/ColorPicker.d.ts +0 -30
  230. package/dist/ui/src/components/Container.d.ts +0 -8
  231. package/dist/ui/src/components/DateTimeField.d.ts +0 -24
  232. package/dist/ui/src/components/DebouncedTextField.d.ts +0 -2
  233. package/dist/ui/src/components/Dialog.d.ts +0 -39
  234. package/dist/ui/src/components/DialogActions.d.ts +0 -7
  235. package/dist/ui/src/components/DialogContent.d.ts +0 -7
  236. package/dist/ui/src/components/DialogTitle.d.ts +0 -10
  237. package/dist/ui/src/components/ErrorBoundary.d.ts +0 -33
  238. package/dist/ui/src/components/ExpandablePanel.d.ts +0 -12
  239. package/dist/ui/src/components/FileUpload.d.ts +0 -23
  240. package/dist/ui/src/components/FilterChip.d.ts +0 -34
  241. package/dist/ui/src/components/IconButton.d.ts +0 -12
  242. package/dist/ui/src/components/InfoLabel.d.ts +0 -5
  243. package/dist/ui/src/components/InputLabel.d.ts +0 -11
  244. package/dist/ui/src/components/Label.d.ts +0 -7
  245. package/dist/ui/src/components/LoadingButton.d.ts +0 -7
  246. package/dist/ui/src/components/Markdown.d.ts +0 -10
  247. package/dist/ui/src/components/Menu.d.ts +0 -23
  248. package/dist/ui/src/components/Menubar.d.ts +0 -80
  249. package/dist/ui/src/components/MultiSelect.d.ts +0 -48
  250. package/dist/ui/src/components/Paper.d.ts +0 -6
  251. package/dist/ui/src/components/Popover.d.ts +0 -24
  252. package/dist/ui/src/components/RadioGroup.d.ts +0 -28
  253. package/dist/ui/src/components/ResizablePanels.d.ts +0 -18
  254. package/dist/ui/src/components/SearchBar.d.ts +0 -26
  255. package/dist/ui/src/components/Select.d.ts +0 -43
  256. package/dist/ui/src/components/Separator.d.ts +0 -5
  257. package/dist/ui/src/components/Sheet.d.ts +0 -22
  258. package/dist/ui/src/components/Skeleton.d.ts +0 -6
  259. package/dist/ui/src/components/Slider.d.ts +0 -21
  260. package/dist/ui/src/components/Table.d.ts +0 -34
  261. package/dist/ui/src/components/Tabs.d.ts +0 -19
  262. package/dist/ui/src/components/TextField.d.ts +0 -58
  263. package/dist/ui/src/components/TextareaAutosize.d.ts +0 -43
  264. package/dist/ui/src/components/ToggleButtonGroup.d.ts +0 -30
  265. package/dist/ui/src/components/Tooltip.d.ts +0 -19
  266. package/dist/ui/src/components/Typography.d.ts +0 -36
  267. package/dist/ui/src/components/VirtualTable/VirtualTable.d.ts +0 -11
  268. package/dist/ui/src/components/VirtualTable/VirtualTableCell.d.ts +0 -21
  269. package/dist/ui/src/components/VirtualTable/VirtualTableHeader.d.ts +0 -29
  270. package/dist/ui/src/components/VirtualTable/VirtualTableHeaderRow.d.ts +0 -2
  271. package/dist/ui/src/components/VirtualTable/VirtualTableProps.d.ts +0 -249
  272. package/dist/ui/src/components/VirtualTable/VirtualTableRow.d.ts +0 -3
  273. package/dist/ui/src/components/VirtualTable/index.d.ts +0 -3
  274. package/dist/ui/src/components/VirtualTable/types.d.ts +0 -38
  275. package/dist/ui/src/components/common/SelectInputLabel.d.ts +0 -5
  276. package/dist/ui/src/components/index.d.ts +0 -58
  277. package/dist/ui/src/hooks/PortalContainerContext.d.ts +0 -31
  278. package/dist/ui/src/hooks/index.d.ts +0 -6
  279. package/dist/ui/src/hooks/useDebounceCallback.d.ts +0 -1
  280. package/dist/ui/src/hooks/useDebounceValue.d.ts +0 -1
  281. package/dist/ui/src/hooks/useDebouncedCallback.d.ts +0 -1
  282. package/dist/ui/src/hooks/useInjectStyles.d.ts +0 -7
  283. package/dist/ui/src/hooks/useOutsideAlerter.d.ts +0 -5
  284. package/dist/ui/src/icons/GitHubIcon.d.ts +0 -2
  285. package/dist/ui/src/icons/HandleIcon.d.ts +0 -1
  286. package/dist/ui/src/icons/Icon.d.ts +0 -20
  287. package/dist/ui/src/icons/cool_icon_keys.d.ts +0 -1
  288. package/dist/ui/src/icons/icon_keys.d.ts +0 -1
  289. package/dist/ui/src/icons/index.d.ts +0 -8
  290. package/dist/ui/src/index.d.ts +0 -5
  291. package/dist/ui/src/styles.d.ts +0 -12
  292. package/dist/ui/src/util/chip_colors.d.ts +0 -4
  293. package/dist/ui/src/util/cls.d.ts +0 -2
  294. package/dist/ui/src/util/debounce.d.ts +0 -10
  295. package/dist/ui/src/util/hash.d.ts +0 -1
  296. package/dist/ui/src/util/index.d.ts +0 -4
  297. package/dist/ui/src/util/key_to_icon_component.d.ts +0 -1
  298. /package/dist/{plugin-insights/src/engine → engine}/InsightsCache.d.ts +0 -0
  299. /package/dist/{plugin-insights/src/engine → engine}/useInsightsData.d.ts +0 -0
  300. /package/dist/{plugin-insights/src/types → types}/engine.d.ts +0 -0
  301. /package/dist/{plugin-insights/src/types → types}/index.d.ts +0 -0
  302. /package/dist/{plugin-insights/src/types → types}/widgets.d.ts +0 -0
  303. /package/dist/{plugin-insights/src/useInsightsPlugin.d.ts → useInsightsPlugin.d.ts} +0 -0
@@ -1,72 +0,0 @@
1
- import { ArrayProperty, AuthController, EntityCollection, EnumValueConfig, EnumValues, NumberProperty, Properties, Property, Relation, RelationProperty, StringProperty } from "@rebasepro/types";
2
- type PropertyConfig = {
3
- property: unknown;
4
- [key: string]: unknown;
5
- };
6
- /**
7
- * Resolve property builders, enums and arrays.
8
- */
9
- export type ResolvePropertyProps<M extends Record<string, unknown> = Record<string, unknown>> = {
10
- property: Property;
11
- propertyKey?: string;
12
- values?: Partial<M>;
13
- previousValues?: Partial<M>;
14
- path?: string;
15
- entityId?: string | number;
16
- index?: number;
17
- propertyConfigs?: Record<string, PropertyConfig>;
18
- ignoreMissingFields?: boolean;
19
- authController: AuthController;
20
- };
21
- export declare function resolveProperty<M extends Record<string, unknown> = Record<string, unknown>>(props: ResolvePropertyProps<M>): Property | null;
22
- export declare function resolveRelationProperty(property: RelationProperty, relations: Relation[], propertyKey?: string): RelationProperty;
23
- /**
24
- * Resolve enum aliases for a string or number property
25
- * @param property
26
- */
27
- export declare function resolvePropertyEnum(property: StringProperty | NumberProperty): StringProperty | NumberProperty;
28
- /**
29
- * Resolve enums and arrays for properties
30
- * @param properties
31
- * @param value
32
- */
33
- export declare function resolveProperties<M extends Record<string, unknown>>({ propertyKey, properties, ignoreMissingFields, ...props }: {
34
- propertyKey?: string;
35
- properties: Properties;
36
- values?: Partial<M>;
37
- previousValues?: Partial<M>;
38
- path?: string;
39
- entityId?: string | number;
40
- index?: number;
41
- propertyConfigs?: Record<string, PropertyConfig>;
42
- ignoreMissingFields?: boolean;
43
- authController: AuthController;
44
- }): Properties;
45
- export declare function resolveArrayProperties<M>({ propertyKey, property, ignoreMissingFields, ...props }: {
46
- propertyKey?: string;
47
- property: ArrayProperty;
48
- values?: Partial<M>;
49
- previousValues?: Partial<M>;
50
- path?: string;
51
- entityId?: string | number;
52
- index?: number;
53
- propertyConfigs?: Record<string, PropertyConfig>;
54
- ignoreMissingFields?: boolean;
55
- authController: AuthController;
56
- }): Property[];
57
- export declare function getArrayResolvedProperties({ propertyKey, propertyValue, property, ...props }: {
58
- propertyValue: unknown;
59
- propertyKey?: string;
60
- property: ArrayProperty;
61
- ignoreMissingFields: boolean;
62
- values?: object;
63
- previousValues?: object;
64
- path?: string;
65
- entityId?: string | number;
66
- index?: number;
67
- propertyConfigs?: Record<string, PropertyConfig>;
68
- authController: AuthController;
69
- }): Property[];
70
- export declare function resolveEnumValues(input: EnumValues): EnumValueConfig[] | undefined;
71
- export declare function getSubcollections<M extends Record<string, unknown> = Record<string, unknown>>(collection: EntityCollection<M>): EntityCollection<Record<string, unknown>>[];
72
- export {};
@@ -1,24 +0,0 @@
1
- import { ArrayProperty, EntityValues, StorageConfig, StringProperty, UploadedFileContext } from "@rebasepro/types";
2
- interface ResolveFilenameStringParams<M extends Record<string, unknown>> {
3
- input: string | ((context: UploadedFileContext) => (Promise<string> | string));
4
- storage: StorageConfig;
5
- values: EntityValues<M>;
6
- entityId?: string | number;
7
- path?: string;
8
- property: StringProperty | ArrayProperty;
9
- file: File;
10
- propertyKey: string;
11
- }
12
- export declare function resolveStorageFilenameString<M extends Record<string, unknown>>({ input, storage, values, entityId, path, property, file, propertyKey }: ResolveFilenameStringParams<M>): Promise<string>;
13
- interface ResolveStoragePathStringParams<M extends Record<string, unknown>> {
14
- input: string | ((context: UploadedFileContext) => string);
15
- storage: StorageConfig;
16
- values: EntityValues<M>;
17
- entityId?: string | number;
18
- path?: string;
19
- property: StringProperty | ArrayProperty;
20
- file: File;
21
- propertyKey: string;
22
- }
23
- export declare function resolveStoragePathString<M extends Record<string, unknown>>({ input, storage, values, entityId, path, property, file, propertyKey }: ResolveStoragePathStringParams<M>): string;
24
- export {};
@@ -1,16 +0,0 @@
1
- export interface AIIconProps {
2
- size?: "smallest" | "small" | "medium" | "large";
3
- className?: string;
4
- }
5
- /**
6
- * AI-styled AutoAwesome icon with gradient coloring.
7
- * Used consistently across AI features for visual identification.
8
- */
9
- export declare function AIIcon({ size, className }: AIIconProps): import("react/jsx-runtime").JSX.Element;
10
- /**
11
- * Small animated dot indicator for AI-modified elements.
12
- * Shows a pulsing gradient dot.
13
- */
14
- export declare function AIModifiedIndicator({ className }: {
15
- className?: string;
16
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export interface BootstrapAdminBannerProps {
2
- className?: string;
3
- }
4
- export declare function BootstrapAdminBanner({ className }: BootstrapAdminBannerProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- export declare function ConfirmationDialog({ open, onAccept, onCancel, title, loading, body }: {
3
- open: boolean;
4
- onAccept: () => void;
5
- onCancel: () => void;
6
- loading?: boolean;
7
- title: React.ReactNode;
8
- body?: React.ReactNode;
9
- }): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function UIReferenceView(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const UIStyleGuide: () => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { TooltipProps } from "@rebasepro/ui";
2
- export declare function ErrorTooltip(props: TooltipProps): import("react/jsx-runtime").JSX.Element;
@@ -1,21 +0,0 @@
1
- import React from "react";
2
- /**
3
- * @group Components
4
- */
5
- export interface ErrorViewProps {
6
- title?: string;
7
- error: Error | React.ReactElement | string;
8
- tooltip?: string;
9
- onRetry?: () => void;
10
- }
11
- /**
12
- * Generic error view. Displayed for example when an unexpected value comes
13
- * from the driver in a collection view.
14
- * @param title
15
- * @param error
16
- * @param tooltip
17
- * @param onRetry
18
-
19
- * @group Components
20
- */
21
- export declare function ErrorView({ title, error, tooltip, onRetry }: ErrorViewProps): React.ReactElement;
@@ -1 +0,0 @@
1
- export declare function LanguageToggle(): import("react/jsx-runtime").JSX.Element;
@@ -1,109 +0,0 @@
1
- import { ReactNode } from "react";
2
- /** Google Identity Services SDK — injected by the GIS <script> tag. */
3
- declare global {
4
- interface Window {
5
- google?: {
6
- accounts: {
7
- oauth2: {
8
- initCodeClient(config: {
9
- client_id: string;
10
- scope: string;
11
- ux_mode: "popup" | "redirect";
12
- callback: (response: {
13
- code?: string;
14
- error?: string;
15
- }) => void;
16
- }): {
17
- requestCode(): void;
18
- };
19
- };
20
- };
21
- };
22
- }
23
- }
24
- import { AuthControllerExtended } from "@rebasepro/types";
25
- /**
26
- * Props for the generic LoginView.
27
- * Consumes {@link AuthControllerExtended} — works with any backend
28
- * (Rebase custom backend, Firebase, Supabase, etc.)
29
- */
30
- export interface LoginViewProps {
31
- /**
32
- * Auth controller — must implement AuthControllerExtended.
33
- */
34
- authController: AuthControllerExtended;
35
- /**
36
- * Path to the logo displayed in the login screen
37
- */
38
- logo?: string;
39
- /**
40
- * Enable the skip login button
41
- */
42
- allowSkipLogin?: boolean;
43
- /**
44
- * Disable the login buttons
45
- */
46
- disabled?: boolean;
47
- /**
48
- * Prevent users from creating new accounts.
49
- * If not set, checks `authController.capabilities.registration`.
50
- */
51
- disableSignupScreen?: boolean;
52
- /**
53
- * Display this component when no user is found
54
- */
55
- noUserComponent?: ReactNode;
56
- /**
57
- * Display this component below the sign-in buttons
58
- */
59
- additionalComponent?: ReactNode;
60
- /**
61
- * Error message when user is not allowed access
62
- */
63
- notAllowedError?: string | Error;
64
- /**
65
- * Google client ID for Google OAuth.
66
- * Required when Google login is enabled via ID token flow.
67
- */
68
- googleClientId?: string;
69
- /**
70
- * GitHub client ID for GitHub OAuth.
71
- */
72
- githubClientId?: string;
73
- /**
74
- * LinkedIn client ID for LinkedIn OAuth.
75
- */
76
- linkedinClientId?: string;
77
- /**
78
- * Optional custom title shown above options
79
- */
80
- title?: string;
81
- /**
82
- * Optional custom subtitle shown above options
83
- */
84
- subtitle?: string;
85
- /**
86
- * When true, shows bootstrap/setup UI (first-user creation).
87
- * If not set, derived from `authController` if it exposes `needsSetup`.
88
- */
89
- needsSetup?: boolean;
90
- /**
91
- * Whether registration is enabled.
92
- * If not set, derived from `authController.capabilities.registration`.
93
- */
94
- registrationEnabled?: boolean;
95
- /**
96
- * Pre-fill the email field (e.g. for demo or testing environments).
97
- */
98
- defaultEmail?: string;
99
- /**
100
- * Pre-fill the password field (e.g. for demo or testing environments).
101
- */
102
- defaultPassword?: string;
103
- }
104
- /**
105
- * Generic login view component that works with any AuthControllerExtended.
106
- * Feature-detects capabilities to show/hide login methods.
107
- * @group Core
108
- */
109
- export declare function LoginView({ logo, authController, noUserComponent, disableSignupScreen, disabled, notAllowedError, googleClientId, githubClientId, linkedinClientId, title, subtitle, needsSetup, registrationEnabled, additionalComponent, defaultEmail, defaultPassword }: LoginViewProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { LoginView } from "./LoginView";
2
- export type { LoginViewProps } from "./LoginView";
@@ -1 +0,0 @@
1
- export declare function NotFoundPage(): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import type { RebaseAuthConfig } from "@rebasepro/types";
2
- /**
3
- * Declarative component to configure authentication in Rebase.
4
- * Renders nothing — purely registers config into the RebaseRegistry.
5
- *
6
- * This is a framework-level component that lives in core since
7
- * authentication is cross-cutting (CMS, Studio, any app area).
8
- * @group Core
9
- */
10
- export declare function RebaseAuth({ loginView }: RebaseAuthConfig): null;
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- export declare function RebaseLogo({ width, height, className, style }: {
3
- width?: string;
4
- height?: string;
5
- className?: string;
6
- style?: React.CSSProperties;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- export interface UnsavedChangesDialogProps {
3
- open: boolean;
4
- body?: React.ReactNode;
5
- title?: string;
6
- handleOk: () => void;
7
- handleCancel: () => void;
8
- }
9
- export declare function UnsavedChangesDialog({ open, handleOk, handleCancel, body, title }: UnsavedChangesDialogProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { User } from "@rebasepro/types";
2
- /**
3
- * Component to render a single user with name and email
4
- */
5
- export declare function UserDisplay({ user }: {
6
- user: User | null;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,62 +0,0 @@
1
- /**
2
- * Represents a selectable user item with optional role information.
3
- */
4
- export interface SelectableUser {
5
- uid: string;
6
- displayName?: string | null;
7
- email?: string | null;
8
- photoURL?: string | null;
9
- roles?: string[];
10
- }
11
- export interface UserSelectPopoverProps {
12
- /**
13
- * The currently selected user, or `null` for "self"/default.
14
- */
15
- selectedUser: SelectableUser | null;
16
- /**
17
- * Called when the user selection changes.
18
- * `null` means "reset to self/default".
19
- */
20
- onUserSelected: (user: SelectableUser | null) => void;
21
- /**
22
- * Full list of users to display.
23
- * The component handles client-side search/filter internally.
24
- */
25
- users: SelectableUser[];
26
- /**
27
- * Whether users are currently loading.
28
- */
29
- loading?: boolean;
30
- /**
31
- * The current user (displayed as the "self" option at the top).
32
- */
33
- currentUser?: SelectableUser | null;
34
- /**
35
- * Label to display when no user is selected.
36
- * @default "Current user"
37
- */
38
- defaultLabel?: string;
39
- /**
40
- * Maximum number of users to render at a time (for performance).
41
- * Users can still be found via search.
42
- * @default 100
43
- */
44
- renderLimit?: number;
45
- /**
46
- * Additional class name for the trigger button.
47
- */
48
- className?: string;
49
- /**
50
- * Size variant.
51
- * @default "small"
52
- */
53
- size?: "small" | "medium";
54
- }
55
- /**
56
- * A reusable user picker popover with search support.
57
- * Designed to handle very large user lists (100k+) by filtering
58
- * client-side and limiting the rendered set.
59
- *
60
- * @group Components
61
- */
62
- export declare function UserSelectPopover({ selectedUser, onUserSelected, users, loading, currentUser, defaultLabel, renderLimit, className, size }: UserSelectPopoverProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function UserSettingsView(): import("react/jsx-runtime").JSX.Element | null;
@@ -1,6 +0,0 @@
1
- export * from "./types";
2
- export * from "./useDebouncedData";
3
- export * from "./useColumnsIds";
4
- export * from "./useDataTableController";
5
- export * from "./useScrollRestoration";
6
- export * from "./table_height";
@@ -1,5 +0,0 @@
1
- /**
2
- * @group Components
3
- */
4
- export type TableSize = "xs" | "s" | "m" | "l" | "xl";
5
- export declare function getRowHeight(size: TableSize): number;
@@ -1,66 +0,0 @@
1
- import type { Property, Entity } from "@rebasepro/types";
2
- import { CollectionSize, SelectedCellProps } from "@rebasepro/types";
3
- export type EntityCollectionTableController<M extends Record<string, unknown>> = {
4
- /**
5
- * This cell is displayed as selected
6
- */
7
- selectedCell?: SelectedCellProps;
8
- /**
9
- * Store used to sync selection state across cells efficiently.
10
- */
11
- selectionStore?: {
12
- getSnapshot: () => SelectedCellProps | undefined;
13
- subscribe: (cb: () => void) => () => void;
14
- };
15
- /**
16
- * Select a table cell
17
- * @param cell
18
- */
19
- select: (cell?: SelectedCellProps<M>) => void;
20
- /**
21
- * The cell that is displayed as a popup view.
22
- * @param cell
23
- */
24
- setPopupCell?: (cell?: SelectedCellProps<M>) => void;
25
- /**
26
- * Callback used when the value of a cell has changed.
27
- * @param params
28
- */
29
- onValueChange?: (params: OnCellValueChangeParams<unknown, Entity<M>>) => void;
30
- /**
31
- * Size of the elements in the collection
32
- */
33
- size: CollectionSize;
34
- };
35
- /**
36
- * Props passed in a callback when the content of a cell in a table has been edited
37
- * @group Collection components
38
- */
39
- export interface OnCellValueChangeParams<T = unknown, D = unknown> {
40
- value: T;
41
- propertyKey: string;
42
- data?: D;
43
- onValueUpdated: () => void;
44
- setError: (e: Error | undefined) => void;
45
- }
46
- /**
47
- * @group Collection components
48
- */
49
- export type UniqueFieldValidator = (props: {
50
- name: string;
51
- value: unknown;
52
- property: Property;
53
- entityId?: string | number;
54
- }) => Promise<boolean>;
55
- /**
56
- * Callback when a cell has changed in a table
57
- * @group Collection components
58
- */
59
- export type OnCellValueChange<T, M extends Record<string, unknown>> = (params: OnCellValueChangeParams<T, Entity<M>>) => Promise<void> | void;
60
- /**
61
- * @group Collection components
62
- */
63
- export type OnColumnResizeParams = {
64
- width: number;
65
- key: string;
66
- };
@@ -1,9 +0,0 @@
1
- import type { EntityCollection, Property } from "@rebasepro/types";
2
- export type PropertyColumnConfig = {
3
- key: string;
4
- disabled: boolean;
5
- };
6
- export declare function getSubcollectionColumnId(collection: EntityCollection<any>): string;
7
- export declare function useColumnIds<M extends Record<string, any>>(collection: EntityCollection<M>, includeSubcollections: boolean): PropertyColumnConfig[];
8
- export declare function getColumnKeysForProperty(property: Property, key: string, disabled?: boolean): PropertyColumnConfig[];
9
- export declare function getFormFieldKeys(collection: EntityCollection): string[];
@@ -1,45 +0,0 @@
1
- import type { EntityCollection } from "@rebasepro/types";
2
- import { Entity, EntityTableController, FilterValues, User } from "@rebasepro/types";
3
- import { ScrollRestorationController } from "./useScrollRestoration";
4
- export declare const DEFAULT_PAGE_SIZE = 50;
5
- export type DataTableControllerProps<M extends Record<string, any> = any> = {
6
- /**
7
- * Full path where the data of this table is located
8
- */
9
- path: string;
10
- /**
11
- * The collection that is represented by this config.
12
- */
13
- collection: EntityCollection<M>;
14
- /**
15
- * List of entities that will be displayed on top, no matter the ordering.
16
- * This is used for reference fields selection
17
- */
18
- entitiesDisplayedFirst?: Entity<M>[];
19
- lastDeleteTimestamp?: number;
20
- /**
21
- * Force filter to be applied to the table.
22
- */
23
- fixedFilter?: FilterValues<string>;
24
- scrollRestoration?: ScrollRestorationController;
25
- /**
26
- * When set to true the filters and sort will be updated in the URL
27
- */
28
- updateUrl?: boolean;
29
- };
30
- /**
31
- * Use this hook to build a controller for the {@link EntityCollectionTable}.
32
- * This controller is bound to data in a path in your specified driver.
33
- *
34
- * Note that you can build your own hook returning a {@link EntityTableController}
35
- * if you would like to display different data.
36
- *
37
- * @param path
38
- * @param collection
39
- * @param scrollRestoration
40
- * @param entitiesDisplayedFirst
41
- * @param lastDeleteTimestamp
42
- * @param fixedFilterFromProps
43
- * @param updateUrl
44
- */
45
- export declare function useDataTableController<M extends Record<string, any> = any, USER extends User = User>({ path, collection, scrollRestoration, entitiesDisplayedFirst, lastDeleteTimestamp: _lastDeleteTimestamp, fixedFilter: fixedFilterFromProps, updateUrl }: DataTableControllerProps<M>): EntityTableController<M>;
@@ -1,9 +0,0 @@
1
- /**
2
- * Hack to prevent data updates for incomplete callbacks from Firestore
3
- * triggers.
4
- * If any deps change, the update is immediate
5
- * @param data
6
- * @param deps
7
- * @param timeoutMs
8
- */
9
- export declare function useDebouncedData<T>(data: T[], deps: unknown, timeoutMs?: number): T[];
@@ -1,14 +0,0 @@
1
- import { Entity, FilterValues } from "@rebasepro/types";
2
- export type ScrollRestorationController = {
3
- getCollectionScroll: (path: string, filters?: FilterValues<any>) => {
4
- scrollOffset: number;
5
- data: Entity<any>[];
6
- } | undefined;
7
- updateCollectionScroll: (props: {
8
- path: string;
9
- scrollOffset: number;
10
- filters?: FilterValues<any>;
11
- data: Entity<any>[];
12
- }) => void;
13
- };
14
- export declare function useScrollRestoration(): ScrollRestorationController;
@@ -1,17 +0,0 @@
1
- export type { ErrorViewProps } from "./ErrorView";
2
- export { ErrorView } from "./ErrorView";
3
- export * from "./common";
4
- export * from "./NotFoundPage";
5
- export * from "./ConfirmationDialog";
6
- export * from "./ErrorTooltip";
7
- export * from "./RebaseLogo";
8
- export * from "./AIIcon";
9
- export * from "./Debug/UIStyleGuide";
10
- export * from "./Debug/UIReferenceView";
11
- export * from "./UserSettingsView";
12
- export * from "./LanguageToggle";
13
- export * from "./UserSelectPopover";
14
- export * from "./UserDisplay";
15
- export * from "./LoginView";
16
- export * from "./RebaseAuth";
17
- export * from "./BootstrapAdminBanner";
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { AdminModeController } from "../hooks";
3
- export declare const AdminModeControllerContext: React.Context<AdminModeController>;
4
- export declare const AdminModeControllerProvider: React.Provider<AdminModeController>;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- import { AnalyticsController } from "@rebasepro/types";
3
- export declare const AnalyticsContext: React.Context<AnalyticsController>;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- import { AuthController } from "@rebasepro/types";
3
- export declare const AuthControllerContext: React.Context<AuthController<any, any>>;
@@ -1,3 +0,0 @@
1
- import type { CustomizationController } from "@rebasepro/types";
2
- import React from "react";
3
- export declare const CustomizationControllerContext: React.Context<CustomizationController>;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- import { DataDriver } from "@rebasepro/types";
3
- export declare const DataDriverContext: React.Context<DataDriver>;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- import { DatabaseAdmin } from "@rebasepro/types";
3
- export declare const DatabaseAdminContext: React.Context<DatabaseAdmin | undefined>;
@@ -1,4 +0,0 @@
1
- import type { DialogsController } from "@rebasepro/types";
2
- import React, { PropsWithChildren } from "react";
3
- export declare const DialogsControllerContext: React.Context<DialogsController>;
4
- export declare const DialogsProvider: React.FC<PropsWithChildren>;
@@ -1,4 +0,0 @@
1
- import type { EffectiveRoleController } from "@rebasepro/types";
2
- import React from "react";
3
- export declare const EffectiveRoleControllerContext: React.Context<EffectiveRoleController>;
4
- export declare const EffectiveRoleControllerProvider: React.Provider<EffectiveRoleController>;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- import { UserManagementDelegate } from "@rebasepro/types";
3
- export declare const InternalUserManagementContext: React.Context<UserManagementDelegate<any> | undefined>;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { ModeController } from "../hooks";
3
- export declare const ModeControllerContext: React.Context<ModeController>;
4
- export declare const ModeControllerProvider: React.Provider<ModeController>;
@@ -1,6 +0,0 @@
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>;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- import { RebaseData } from "@rebasepro/types";
3
- export declare const RebaseDataContext: React.Context<RebaseData>;
@@ -1,2 +0,0 @@
1
- import React, { PropsWithChildren } from "react";
2
- export declare const SnackbarProvider: React.FC<PropsWithChildren>;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- import { StorageSource } from "@rebasepro/types";
3
- export declare const StorageSourceContext: React.Context<StorageSource>;