@rebasepro/studio 0.5.0 → 0.6.1
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.
- package/dist/ApiExplorer-CdIwR9Ga.js +963 -0
- package/dist/ApiExplorer-CdIwR9Ga.js.map +1 -0
- package/dist/AuthSimulationSelector-iEZ-Or_1.js +56 -0
- package/dist/AuthSimulationSelector-iEZ-Or_1.js.map +1 -0
- package/dist/BranchesView-DncIRcZt.js +461 -0
- package/dist/BranchesView-DncIRcZt.js.map +1 -0
- package/dist/CronJobsView-4gdtJvoe.js +500 -0
- package/dist/CronJobsView-4gdtJvoe.js.map +1 -0
- package/dist/JSEditor-BhAbEjCP.js +1573 -0
- package/dist/JSEditor-BhAbEjCP.js.map +1 -0
- package/dist/LogsExplorer-CqtKILj8.js +240 -0
- package/dist/LogsExplorer-CqtKILj8.js.map +1 -0
- package/dist/MonacoEditor-COZqrIJ1.js +246 -0
- package/dist/MonacoEditor-COZqrIJ1.js.map +1 -0
- package/dist/RLSEditor-DpF1u9EC.js +1369 -0
- package/dist/RLSEditor-DpF1u9EC.js.map +1 -0
- package/dist/SQLEditor-BLuq_zDM.js +1964 -0
- package/dist/SQLEditor-BLuq_zDM.js.map +1 -0
- package/dist/SchemaVisualizer-BJK2u3C0.js +1068 -0
- package/dist/SchemaVisualizer-BJK2u3C0.js.map +1 -0
- package/dist/StorageView-CvrnHmDG.js +1395 -0
- package/dist/StorageView-CvrnHmDG.js.map +1 -0
- package/dist/{studio/src/components → components}/ApiExplorer/ApiExplorer.d.ts +2 -1
- package/dist/{studio/src/components → components}/ApiExplorer/EndpointDetail.d.ts +2 -1
- package/dist/{studio/src/components → components}/ApiExplorer/TryItPanel.d.ts +2 -1
- package/dist/{studio/src/components → components}/AuthSimulationSelector.d.ts +2 -1
- package/dist/components/Branches/BranchesView.d.ts +2 -0
- package/dist/components/CronJobs/CronJobsView.d.ts +2 -0
- package/dist/components/JSEditor/JSEditor.d.ts +2 -0
- package/dist/{studio/src/components → components}/JSEditor/JSEditorSidebar.d.ts +2 -1
- package/dist/{studio/src/components → components}/JSEditor/JSMonacoEditor.d.ts +2 -1
- package/dist/components/LogsExplorer/LogsExplorer.d.ts +2 -0
- package/dist/{studio/src/components → components}/RLSEditor/PolicyEditor.d.ts +2 -1
- package/dist/{studio/src/components → components}/RLSEditor/RLSEditor.d.ts +2 -1
- package/dist/{studio/src/components → components}/SQLEditor/MonacoEditor.d.ts +2 -1
- package/dist/{studio/src/components → components}/SQLEditor/SQLEditor.d.ts +2 -1
- package/dist/{studio/src/components → components}/SQLEditor/SQLEditorSidebar.d.ts +2 -1
- package/dist/{studio/src/components → components}/SQLEditor/SchemaBrowser.d.ts +2 -1
- package/dist/{studio/src/components → components}/SchemaVisualizer/RelationEdge.d.ts +1 -1
- package/dist/components/SchemaVisualizer/SchemaVisualizer.d.ts +3 -0
- package/dist/{studio/src/components → components}/SchemaVisualizer/TableNode.d.ts +1 -1
- package/dist/components/StorageView/StorageView.d.ts +2 -0
- package/dist/{studio/src/components → components}/StudioHomePage.d.ts +1 -1
- package/dist/index.es.js +688 -746
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10323 -9572
- package/dist/index.umd.js.map +1 -1
- package/package.json +22 -22
- package/src/components/ApiExplorer/TryItPanel.tsx +15 -18
- package/src/components/CronJobs/CronJobsView.tsx +1 -1
- package/src/components/JSEditor/JSEditor.tsx +9 -14
- package/src/components/LogsExplorer/LogsExplorer.tsx +6 -3
- package/src/components/RLSEditor/PolicyEditor.tsx +1 -1
- package/src/components/SQLEditor/SQLEditor.tsx +40 -30
- package/src/components/StorageView/StorageView.tsx +25 -14
- package/src/components/StudioHomePage.tsx +51 -15
- package/src/utils/parseSpec.test.ts +41 -20
- package/src/utils/pgColumnToProperty.ts +1 -1
- package/dist/ApiExplorer-CGHEF1uL.js +0 -1052
- package/dist/ApiExplorer-CGHEF1uL.js.map +0 -1
- package/dist/AuthSimulationSelector-DGoXkWSg.js +0 -105
- package/dist/AuthSimulationSelector-DGoXkWSg.js.map +0 -1
- package/dist/BranchesView-BiTEwIhd.js +0 -291
- package/dist/BranchesView-BiTEwIhd.js.map +0 -1
- package/dist/CronJobsView-3PM_qR8v.js +0 -472
- package/dist/CronJobsView-3PM_qR8v.js.map +0 -1
- package/dist/JSEditor-DfwRLBZg.js +0 -1297
- package/dist/JSEditor-DfwRLBZg.js.map +0 -1
- package/dist/LogsExplorer-_4sZadKn.js +0 -162
- package/dist/LogsExplorer-_4sZadKn.js.map +0 -1
- package/dist/MonacoEditor-CMYEjiRf.js +0 -161
- package/dist/MonacoEditor-CMYEjiRf.js.map +0 -1
- package/dist/RLSEditor-CHEExeSB.js +0 -1871
- package/dist/RLSEditor-CHEExeSB.js.map +0 -1
- package/dist/SQLEditor-CQXaI0iU.js +0 -1797
- package/dist/SQLEditor-CQXaI0iU.js.map +0 -1
- package/dist/SchemaVisualizer-BGpmzyXT.js +0 -1069
- package/dist/SchemaVisualizer-BGpmzyXT.js.map +0 -1
- package/dist/StorageView-B7AsN2qX.js +0 -869
- package/dist/StorageView-B7AsN2qX.js.map +0 -1
- package/dist/common/src/collections/CollectionRegistry.d.ts +0 -56
- package/dist/common/src/collections/default-collections.d.ts +0 -9
- package/dist/common/src/collections/index.d.ts +0 -2
- package/dist/common/src/data/buildRebaseData.d.ts +0 -14
- package/dist/common/src/data/query_builder.d.ts +0 -55
- package/dist/common/src/index.d.ts +0 -4
- package/dist/common/src/util/builders.d.ts +0 -57
- package/dist/common/src/util/callbacks.d.ts +0 -6
- package/dist/common/src/util/collections.d.ts +0 -11
- package/dist/common/src/util/common.d.ts +0 -2
- package/dist/common/src/util/conditions.d.ts +0 -26
- package/dist/common/src/util/entities.d.ts +0 -58
- package/dist/common/src/util/enums.d.ts +0 -3
- package/dist/common/src/util/index.d.ts +0 -16
- package/dist/common/src/util/navigation_from_path.d.ts +0 -34
- package/dist/common/src/util/navigation_utils.d.ts +0 -20
- package/dist/common/src/util/parent_references_from_path.d.ts +0 -6
- package/dist/common/src/util/paths.d.ts +0 -14
- package/dist/common/src/util/permissions.d.ts +0 -14
- package/dist/common/src/util/references.d.ts +0 -2
- package/dist/common/src/util/relations.d.ts +0 -22
- package/dist/common/src/util/resolutions.d.ts +0 -72
- package/dist/common/src/util/storage.d.ts +0 -24
- package/dist/core/src/components/AIIcon.d.ts +0 -16
- package/dist/core/src/components/BootstrapAdminBanner.d.ts +0 -4
- package/dist/core/src/components/ConfirmationDialog.d.ts +0 -9
- package/dist/core/src/components/Debug/UIReferenceView.d.ts +0 -1
- package/dist/core/src/components/Debug/UIStyleGuide.d.ts +0 -1
- package/dist/core/src/components/ErrorTooltip.d.ts +0 -2
- package/dist/core/src/components/ErrorView.d.ts +0 -21
- package/dist/core/src/components/LanguageToggle.d.ts +0 -1
- package/dist/core/src/components/LoginView/LoginView.d.ts +0 -109
- package/dist/core/src/components/LoginView/index.d.ts +0 -2
- package/dist/core/src/components/NotFoundPage.d.ts +0 -1
- package/dist/core/src/components/RebaseAuth.d.ts +0 -10
- package/dist/core/src/components/RebaseLogo.d.ts +0 -7
- package/dist/core/src/components/UnsavedChangesDialog.d.ts +0 -9
- package/dist/core/src/components/UserDisplay.d.ts +0 -7
- package/dist/core/src/components/UserSelectPopover.d.ts +0 -62
- package/dist/core/src/components/UserSettingsView.d.ts +0 -1
- package/dist/core/src/components/common/index.d.ts +0 -6
- package/dist/core/src/components/common/table_height.d.ts +0 -5
- package/dist/core/src/components/common/types.d.ts +0 -66
- package/dist/core/src/components/common/useColumnsIds.d.ts +0 -9
- package/dist/core/src/components/common/useDataTableController.d.ts +0 -45
- package/dist/core/src/components/common/useDebouncedData.d.ts +0 -9
- package/dist/core/src/components/common/useScrollRestoration.d.ts +0 -14
- package/dist/core/src/components/index.d.ts +0 -17
- package/dist/core/src/contexts/AdminModeController.d.ts +0 -4
- package/dist/core/src/contexts/AnalyticsContext.d.ts +0 -3
- package/dist/core/src/contexts/AuthControllerContext.d.ts +0 -3
- package/dist/core/src/contexts/CustomizationControllerContext.d.ts +0 -3
- package/dist/core/src/contexts/DataDriverContext.d.ts +0 -3
- package/dist/core/src/contexts/DatabaseAdminContext.d.ts +0 -3
- package/dist/core/src/contexts/DialogsProvider.d.ts +0 -4
- package/dist/core/src/contexts/EffectiveRoleController.d.ts +0 -4
- package/dist/core/src/contexts/InternalUserManagementContext.d.ts +0 -3
- package/dist/core/src/contexts/ModeController.d.ts +0 -4
- package/dist/core/src/contexts/RebaseClientInstanceContext.d.ts +0 -6
- package/dist/core/src/contexts/RebaseDataContext.d.ts +0 -3
- package/dist/core/src/contexts/SnackbarProvider.d.ts +0 -2
- package/dist/core/src/contexts/StorageSourceContext.d.ts +0 -3
- package/dist/core/src/contexts/UserConfigurationPersistenceContext.d.ts +0 -3
- package/dist/core/src/contexts/index.d.ts +0 -13
- package/dist/core/src/core/PluginLifecycleManager.d.ts +0 -17
- package/dist/core/src/core/PluginProviderStack.d.ts +0 -21
- package/dist/core/src/core/Rebase.d.ts +0 -14
- package/dist/core/src/core/RebaseProps.d.ts +0 -147
- package/dist/core/src/core/RebaseRouter.d.ts +0 -4
- package/dist/core/src/core/RebaseRoutes.d.ts +0 -17
- package/dist/core/src/core/index.d.ts +0 -4
- package/dist/core/src/hooks/ApiConfigContext.d.ts +0 -24
- package/dist/core/src/hooks/data/delete.d.ts +0 -31
- package/dist/core/src/hooks/data/save.d.ts +0 -34
- package/dist/core/src/hooks/data/useCollectionFetch.d.ts +0 -62
- package/dist/core/src/hooks/data/useData.d.ts +0 -13
- package/dist/core/src/hooks/data/useDataOrder.d.ts +0 -12
- package/dist/core/src/hooks/data/useEntityFetch.d.ts +0 -43
- package/dist/core/src/hooks/data/useRelationSelector.d.ts +0 -52
- package/dist/core/src/hooks/data/useUserSelector.d.ts +0 -31
- package/dist/core/src/hooks/index.d.ts +0 -37
- package/dist/core/src/hooks/useAdminModeController.d.ts +0 -19
- package/dist/core/src/hooks/useAnalyticsController.d.ts +0 -5
- package/dist/core/src/hooks/useAuthController.d.ts +0 -11
- package/dist/core/src/hooks/useAuthSubscription.d.ts +0 -2
- package/dist/core/src/hooks/useBackendStorageSource.d.ts +0 -30
- package/dist/core/src/hooks/useBridgeRegistration.d.ts +0 -18
- package/dist/core/src/hooks/useBrowserTitleAndIcon.d.ts +0 -6
- package/dist/core/src/hooks/useBuildAdminModeController.d.ts +0 -6
- package/dist/core/src/hooks/useBuildEffectiveRoleController.d.ts +0 -8
- package/dist/core/src/hooks/useBuildLocalConfigurationPersistence.d.ts +0 -2
- package/dist/core/src/hooks/useBuildModeController.d.ts +0 -6
- package/dist/core/src/hooks/useClipboard.d.ts +0 -57
- package/dist/core/src/hooks/useCollapsedGroups.d.ts +0 -27
- package/dist/core/src/hooks/useCustomizationController.d.ts +0 -11
- package/dist/core/src/hooks/useDialogsController.d.ts +0 -11
- package/dist/core/src/hooks/useEffectiveRoleController.d.ts +0 -7
- package/dist/core/src/hooks/useInternalUserManagementController.d.ts +0 -12
- package/dist/core/src/hooks/useLargeLayout.d.ts +0 -1
- package/dist/core/src/hooks/useModeController.d.ts +0 -19
- package/dist/core/src/hooks/usePermissions.d.ts +0 -12
- package/dist/core/src/hooks/useRebaseClient.d.ts +0 -5
- package/dist/core/src/hooks/useRebaseContext.d.ts +0 -11
- package/dist/core/src/hooks/useRebaseRegistry.d.ts +0 -34
- package/dist/core/src/hooks/useResolvedComponent.d.ts +0 -47
- package/dist/core/src/hooks/useSlot.d.ts +0 -18
- package/dist/core/src/hooks/useSnackbarController.d.ts +0 -20
- package/dist/core/src/hooks/useStorageSource.d.ts +0 -7
- package/dist/core/src/hooks/useStudioBridge.d.ts +0 -91
- package/dist/core/src/hooks/useTranslation.d.ts +0 -17
- package/dist/core/src/hooks/useUnsavedChangesDialog.d.ts +0 -12
- package/dist/core/src/hooks/useUserConfigurationPersistence.d.ts +0 -8
- package/dist/core/src/i18n/RebaseI18nProvider.d.ts +0 -33
- package/dist/core/src/index.d.ts +0 -15
- package/dist/core/src/internal/common.d.ts +0 -3
- package/dist/core/src/internal/useRestoreScroll.d.ts +0 -6
- package/dist/core/src/locales/de.d.ts +0 -2
- package/dist/core/src/locales/en.d.ts +0 -10
- package/dist/core/src/locales/es.d.ts +0 -10
- package/dist/core/src/locales/fr.d.ts +0 -2
- package/dist/core/src/locales/hi.d.ts +0 -2
- package/dist/core/src/locales/it.d.ts +0 -2
- package/dist/core/src/locales/pt.d.ts +0 -7
- package/dist/core/src/util/constants.d.ts +0 -1
- package/dist/core/src/util/createFormexStub.d.ts +0 -2
- package/dist/core/src/util/entity_cache.d.ts +0 -22
- package/dist/core/src/util/enums.d.ts +0 -5
- package/dist/core/src/util/icon_list.d.ts +0 -5
- package/dist/core/src/util/icons.d.ts +0 -20
- package/dist/core/src/util/index.d.ts +0 -8
- package/dist/core/src/util/previews.d.ts +0 -4
- package/dist/core/src/util/useStorageUploadController.d.ts +0 -38
- package/dist/formex/src/Field.d.ts +0 -52
- package/dist/formex/src/Formex.d.ts +0 -7
- package/dist/formex/src/index.d.ts +0 -5
- package/dist/formex/src/types.d.ts +0 -40
- package/dist/formex/src/useCreateFormex.d.ts +0 -14
- package/dist/formex/src/utils.d.ts +0 -16
- package/dist/studio/src/components/Branches/BranchesView.d.ts +0 -1
- package/dist/studio/src/components/CronJobs/CronJobsView.d.ts +0 -1
- package/dist/studio/src/components/JSEditor/JSEditor.d.ts +0 -1
- package/dist/studio/src/components/LogsExplorer/LogsExplorer.d.ts +0 -1
- package/dist/studio/src/components/SchemaVisualizer/SchemaVisualizer.d.ts +0 -2
- package/dist/studio/src/components/StorageView/StorageView.d.ts +0 -1
- package/dist/types/src/controllers/analytics_controller.d.ts +0 -7
- package/dist/types/src/controllers/auth.d.ts +0 -104
- package/dist/types/src/controllers/client.d.ts +0 -168
- package/dist/types/src/controllers/collection_registry.d.ts +0 -46
- package/dist/types/src/controllers/customization_controller.d.ts +0 -60
- package/dist/types/src/controllers/data.d.ts +0 -207
- package/dist/types/src/controllers/data_driver.d.ts +0 -218
- package/dist/types/src/controllers/database_admin.d.ts +0 -11
- package/dist/types/src/controllers/dialogs_controller.d.ts +0 -36
- package/dist/types/src/controllers/effective_role.d.ts +0 -4
- package/dist/types/src/controllers/email.d.ts +0 -36
- package/dist/types/src/controllers/index.d.ts +0 -18
- package/dist/types/src/controllers/local_config_persistence.d.ts +0 -20
- package/dist/types/src/controllers/navigation.d.ts +0 -225
- package/dist/types/src/controllers/registry.d.ts +0 -63
- package/dist/types/src/controllers/side_dialogs_controller.d.ts +0 -67
- package/dist/types/src/controllers/side_entity_controller.d.ts +0 -97
- package/dist/types/src/controllers/snackbar.d.ts +0 -24
- package/dist/types/src/controllers/storage.d.ts +0 -171
- package/dist/types/src/index.d.ts +0 -4
- package/dist/types/src/rebase_context.d.ts +0 -122
- package/dist/types/src/types/auth_adapter.d.ts +0 -301
- package/dist/types/src/types/backend.d.ts +0 -571
- package/dist/types/src/types/backend_hooks.d.ts +0 -172
- package/dist/types/src/types/builders.d.ts +0 -15
- package/dist/types/src/types/chips.d.ts +0 -5
- package/dist/types/src/types/collections.d.ts +0 -961
- package/dist/types/src/types/component_ref.d.ts +0 -47
- package/dist/types/src/types/cron.d.ts +0 -102
- package/dist/types/src/types/data_source.d.ts +0 -64
- package/dist/types/src/types/database_adapter.d.ts +0 -94
- package/dist/types/src/types/entities.d.ts +0 -145
- package/dist/types/src/types/entity_actions.d.ts +0 -104
- package/dist/types/src/types/entity_callbacks.d.ts +0 -173
- package/dist/types/src/types/entity_link_builder.d.ts +0 -7
- package/dist/types/src/types/entity_overrides.d.ts +0 -10
- package/dist/types/src/types/entity_views.d.ts +0 -87
- package/dist/types/src/types/export_import.d.ts +0 -21
- package/dist/types/src/types/formex.d.ts +0 -40
- package/dist/types/src/types/index.d.ts +0 -28
- package/dist/types/src/types/locales.d.ts +0 -4
- package/dist/types/src/types/modify_collections.d.ts +0 -5
- package/dist/types/src/types/plugins.d.ts +0 -282
- package/dist/types/src/types/properties.d.ts +0 -1173
- package/dist/types/src/types/property_config.d.ts +0 -74
- package/dist/types/src/types/relations.d.ts +0 -336
- package/dist/types/src/types/slots.d.ts +0 -262
- package/dist/types/src/types/translations.d.ts +0 -900
- package/dist/types/src/types/user_management_delegate.d.ts +0 -86
- package/dist/types/src/types/websockets.d.ts +0 -78
- package/dist/types/src/users/index.d.ts +0 -1
- package/dist/types/src/users/user.d.ts +0 -50
- package/dist/ui/src/components/Alert.d.ts +0 -12
- package/dist/ui/src/components/Autocomplete.d.ts +0 -21
- package/dist/ui/src/components/Avatar.d.ts +0 -11
- package/dist/ui/src/components/Badge.d.ts +0 -8
- package/dist/ui/src/components/BooleanSwitch.d.ts +0 -14
- package/dist/ui/src/components/BooleanSwitchWithLabel.d.ts +0 -17
- package/dist/ui/src/components/Button.d.ts +0 -14
- package/dist/ui/src/components/Card.d.ts +0 -8
- package/dist/ui/src/components/CenteredView.d.ts +0 -9
- package/dist/ui/src/components/Checkbox.d.ts +0 -13
- package/dist/ui/src/components/Chip.d.ts +0 -26
- package/dist/ui/src/components/CircularProgress.d.ts +0 -5
- package/dist/ui/src/components/CircularProgressCenter.d.ts +0 -11
- package/dist/ui/src/components/Collapse.d.ts +0 -9
- package/dist/ui/src/components/ColorPicker.d.ts +0 -30
- package/dist/ui/src/components/Container.d.ts +0 -8
- package/dist/ui/src/components/DateTimeField.d.ts +0 -24
- package/dist/ui/src/components/DebouncedTextField.d.ts +0 -2
- package/dist/ui/src/components/Dialog.d.ts +0 -39
- package/dist/ui/src/components/DialogActions.d.ts +0 -7
- package/dist/ui/src/components/DialogContent.d.ts +0 -7
- package/dist/ui/src/components/DialogTitle.d.ts +0 -10
- package/dist/ui/src/components/ErrorBoundary.d.ts +0 -33
- package/dist/ui/src/components/ExpandablePanel.d.ts +0 -12
- package/dist/ui/src/components/FileUpload.d.ts +0 -23
- package/dist/ui/src/components/FilterChip.d.ts +0 -34
- package/dist/ui/src/components/IconButton.d.ts +0 -12
- package/dist/ui/src/components/InfoLabel.d.ts +0 -5
- package/dist/ui/src/components/InputLabel.d.ts +0 -11
- package/dist/ui/src/components/Label.d.ts +0 -7
- package/dist/ui/src/components/LoadingButton.d.ts +0 -7
- package/dist/ui/src/components/Markdown.d.ts +0 -10
- package/dist/ui/src/components/Menu.d.ts +0 -23
- package/dist/ui/src/components/Menubar.d.ts +0 -80
- package/dist/ui/src/components/MultiSelect.d.ts +0 -48
- package/dist/ui/src/components/Paper.d.ts +0 -6
- package/dist/ui/src/components/Popover.d.ts +0 -24
- package/dist/ui/src/components/RadioGroup.d.ts +0 -28
- package/dist/ui/src/components/ResizablePanels.d.ts +0 -18
- package/dist/ui/src/components/SearchBar.d.ts +0 -26
- package/dist/ui/src/components/Select.d.ts +0 -43
- package/dist/ui/src/components/Separator.d.ts +0 -5
- package/dist/ui/src/components/Sheet.d.ts +0 -22
- package/dist/ui/src/components/Skeleton.d.ts +0 -6
- package/dist/ui/src/components/Slider.d.ts +0 -21
- package/dist/ui/src/components/Table.d.ts +0 -34
- package/dist/ui/src/components/Tabs.d.ts +0 -19
- package/dist/ui/src/components/TextField.d.ts +0 -58
- package/dist/ui/src/components/TextareaAutosize.d.ts +0 -43
- package/dist/ui/src/components/ToggleButtonGroup.d.ts +0 -30
- package/dist/ui/src/components/Tooltip.d.ts +0 -19
- package/dist/ui/src/components/Typography.d.ts +0 -36
- package/dist/ui/src/components/VirtualTable/VirtualTable.d.ts +0 -11
- package/dist/ui/src/components/VirtualTable/VirtualTableCell.d.ts +0 -21
- package/dist/ui/src/components/VirtualTable/VirtualTableHeader.d.ts +0 -29
- package/dist/ui/src/components/VirtualTable/VirtualTableHeaderRow.d.ts +0 -2
- package/dist/ui/src/components/VirtualTable/VirtualTableProps.d.ts +0 -249
- package/dist/ui/src/components/VirtualTable/VirtualTableRow.d.ts +0 -3
- package/dist/ui/src/components/VirtualTable/index.d.ts +0 -3
- package/dist/ui/src/components/VirtualTable/types.d.ts +0 -38
- package/dist/ui/src/components/common/SelectInputLabel.d.ts +0 -5
- package/dist/ui/src/components/index.d.ts +0 -58
- package/dist/ui/src/hooks/PortalContainerContext.d.ts +0 -31
- package/dist/ui/src/hooks/index.d.ts +0 -6
- package/dist/ui/src/hooks/useDebounceCallback.d.ts +0 -1
- package/dist/ui/src/hooks/useDebounceValue.d.ts +0 -1
- package/dist/ui/src/hooks/useDebouncedCallback.d.ts +0 -1
- package/dist/ui/src/hooks/useInjectStyles.d.ts +0 -7
- package/dist/ui/src/hooks/useOutsideAlerter.d.ts +0 -5
- package/dist/ui/src/icons/GitHubIcon.d.ts +0 -2
- package/dist/ui/src/icons/HandleIcon.d.ts +0 -1
- package/dist/ui/src/icons/Icon.d.ts +0 -20
- package/dist/ui/src/icons/cool_icon_keys.d.ts +0 -1
- package/dist/ui/src/icons/icon_keys.d.ts +0 -1
- package/dist/ui/src/icons/index.d.ts +0 -8
- package/dist/ui/src/index.d.ts +0 -5
- package/dist/ui/src/styles.d.ts +0 -12
- package/dist/ui/src/util/chip_colors.d.ts +0 -4
- package/dist/ui/src/util/cls.d.ts +0 -2
- package/dist/ui/src/util/debounce.d.ts +0 -10
- package/dist/ui/src/util/hash.d.ts +0 -1
- package/dist/ui/src/util/index.d.ts +0 -4
- package/dist/ui/src/util/key_to_icon_component.d.ts +0 -1
- /package/dist/{studio/src/components → components}/ApiExplorer/parseSpec.d.ts +0 -0
- /package/dist/{studio/src/components → components}/ApiExplorer/types.d.ts +0 -0
- /package/dist/{studio/src/components → components}/RLSEditor/index.d.ts +0 -0
- /package/dist/{studio/src/components → components}/RebaseStudio.d.ts +0 -0
- /package/dist/{studio/src/components → components}/SQLEditor/ExplainVisualizer.d.ts +0 -0
- /package/dist/{studio/src/components → components}/SchemaVisualizer/schema-visualizer.utils.d.ts +0 -0
- /package/dist/{studio/src/components → components}/SchemaVisualizer/useSchemaGraph.d.ts +0 -0
- /package/dist/{studio/src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{studio/src/utils → utils}/pgColumnToProperty.d.ts +0 -0
- /package/dist/{studio/src/utils → utils}/sql_utils.d.ts +0 -0
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { EntityCollection } from "@rebasepro/types";
|
|
2
|
-
type EntityCustomView<M extends Record<string, unknown> = Record<string, unknown>> = {
|
|
3
|
-
key: string;
|
|
4
|
-
[key: string]: unknown;
|
|
5
|
-
};
|
|
6
|
-
export type NavigationViewInternal<M extends Record<string, unknown> = Record<string, unknown>> = NavigationViewEntityInternal<M> | NavigationViewCollectionInternal<M> | NavigationViewEntityCustomInternal<M>;
|
|
7
|
-
export interface NavigationViewEntityInternal<M extends Record<string, unknown>> {
|
|
8
|
-
type: "entity";
|
|
9
|
-
entityId: string | number;
|
|
10
|
-
slug: string;
|
|
11
|
-
path: string;
|
|
12
|
-
parentCollection: EntityCollection<M>;
|
|
13
|
-
}
|
|
14
|
-
export interface NavigationViewCollectionInternal<M extends Record<string, unknown>> {
|
|
15
|
-
type: "collection";
|
|
16
|
-
id: string;
|
|
17
|
-
slug: string;
|
|
18
|
-
path: string;
|
|
19
|
-
collection: EntityCollection<M>;
|
|
20
|
-
}
|
|
21
|
-
export interface NavigationViewEntityCustomInternal<M extends Record<string, unknown>> {
|
|
22
|
-
type: "custom_view";
|
|
23
|
-
slug: string;
|
|
24
|
-
path: string;
|
|
25
|
-
entityId: string | number;
|
|
26
|
-
view: EntityCustomView<M>;
|
|
27
|
-
}
|
|
28
|
-
export declare function getNavigationEntriesFromPath(props: {
|
|
29
|
-
path: string;
|
|
30
|
-
collections: EntityCollection[] | undefined;
|
|
31
|
-
currentFullPath?: string;
|
|
32
|
-
contextEntityViews?: EntityCustomView[];
|
|
33
|
-
}): NavigationViewInternal[];
|
|
34
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { EntityCollection } from "@rebasepro/types";
|
|
2
|
-
export declare function removeInitialAndTrailingSlashes(s: string): string;
|
|
3
|
-
export declare function removeInitialSlash(s: string): string;
|
|
4
|
-
export declare function removeTrailingSlash(s: string): string;
|
|
5
|
-
export declare function addInitialSlash(s: string): string;
|
|
6
|
-
export declare function getLastSegment(path: string): string;
|
|
7
|
-
export declare function resolveCollectionPathIds(path: string, allCollections: EntityCollection[]): string;
|
|
8
|
-
/**
|
|
9
|
-
* Find the corresponding view at any depth for a given path.
|
|
10
|
-
* Note that path or segments of the paths can be collection aliases.
|
|
11
|
-
* @param slugOrPath
|
|
12
|
-
* @param collections
|
|
13
|
-
*/
|
|
14
|
-
export declare function getCollectionBySlugWithin(slugOrPath: string, collections: EntityCollection[]): EntityCollection | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* Get the subcollection combinations from a path:
|
|
17
|
-
* "sites/es/locales" => ["sites/es/locales", "sites"]
|
|
18
|
-
* @param subpaths
|
|
19
|
-
*/
|
|
20
|
-
export declare function getCollectionPathsCombinations(subpaths: string[]): string[];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const COLLECTION_PATH_SEPARATOR = "::";
|
|
2
|
-
/**
|
|
3
|
-
* Remove the entity ids from a given path
|
|
4
|
-
* `products/B44RG6APH/locales` => `products::locales`
|
|
5
|
-
* @param path
|
|
6
|
-
*/
|
|
7
|
-
export declare function stripCollectionPath(path: string): string;
|
|
8
|
-
export declare function segmentsToStrippedPath(paths: string[]): string;
|
|
9
|
-
/**
|
|
10
|
-
* Extract the collection path routes
|
|
11
|
-
* `products/B44RG6APH/locales` => [`products`, `locales`]
|
|
12
|
-
* @param path
|
|
13
|
-
*/
|
|
14
|
-
export declare function fullPathToCollectionSegments(path: string): string[];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Entity, EntityCollection, User } from "@rebasepro/types";
|
|
2
|
-
/**
|
|
3
|
-
* Minimal auth context for permission checking.
|
|
4
|
-
* Only requires the user object — avoids forcing callers to construct
|
|
5
|
-
* a full AuthController just to check permissions.
|
|
6
|
-
*/
|
|
7
|
-
export interface AuthContext<USER extends User = User> {
|
|
8
|
-
user: USER | null;
|
|
9
|
-
}
|
|
10
|
-
export declare function checkOperation<M extends Record<string, unknown>, USER extends User>(collection: EntityCollection<M>, authContext: AuthContext<USER>, entity: Entity<M> | null, targetOperation: "select" | "insert" | "update" | "delete"): boolean;
|
|
11
|
-
export declare function canReadCollection<M extends Record<string, unknown>, USER extends User>(collection: EntityCollection<M>, authContext: AuthContext<USER>): boolean;
|
|
12
|
-
export declare function canEditEntity<M extends Record<string, unknown>, USER extends User>(collection: EntityCollection<M>, authContext: AuthContext<USER>, path: string, entity: Entity<M> | null): boolean;
|
|
13
|
-
export declare function canCreateEntity<M extends Record<string, unknown>, USER extends User>(collection: EntityCollection<M>, authContext: AuthContext<USER>, path: string, entity: Entity<M> | null): boolean;
|
|
14
|
-
export declare function canDeleteEntity<M extends Record<string, unknown>, USER extends User>(collection: EntityCollection<M>, authContext: AuthContext<USER>, path: string, entity: Entity<M> | null): boolean;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { EntityCollection, Property, Relation } from "@rebasepro/types";
|
|
2
|
-
export declare function sanitizeRelation(relation: Partial<Relation>, sourceCollection: EntityCollection, resolveCollection?: (slugOrTable: string) => EntityCollection | undefined): Relation;
|
|
3
|
-
export declare function resolveCollectionRelations(collection: EntityCollection): Record<string, Relation>;
|
|
4
|
-
export declare function resolvePropertyRelation({ propertyKey, property, sourceCollection }: {
|
|
5
|
-
propertyKey: string;
|
|
6
|
-
property: Property;
|
|
7
|
-
sourceCollection: EntityCollection;
|
|
8
|
-
}): Relation | undefined;
|
|
9
|
-
export declare function getTableName(collection: EntityCollection): string;
|
|
10
|
-
export declare function getTableVarName(tableName: string): string;
|
|
11
|
-
export declare function getEnumVarName(tableName: string, propName: string): string;
|
|
12
|
-
export declare function getColumnName(fullColumn: string): string;
|
|
13
|
-
/**
|
|
14
|
-
* Look up a relation by key with forgiving normalization.
|
|
15
|
-
*
|
|
16
|
-
* `resolveCollectionRelations` stores each relation under a single canonical
|
|
17
|
-
* key (no aliases). This helper tries the given key as-is, then falls back to
|
|
18
|
-
* slug form (underscores → hyphens) and snake_case form (hyphens → underscores)
|
|
19
|
-
* so that callers that receive a key from external input (URL path segments,
|
|
20
|
-
* user-provided config, etc.) can still find the right entry.
|
|
21
|
-
*/
|
|
22
|
-
export declare function findRelation(resolvedRelations: Record<string, Relation>, key: string): Relation | undefined;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { ArrayProperty, AuthController, EntityCollection, EnumValueConfig, EnumValues, NumberProperty, Properties, Property, Relation, RelationProperty, StringProperty } from "@rebasepro/types";
|
|
2
|
-
type PropertyConfig = {
|
|
3
|
-
property: unknown;
|
|
4
|
-
[key: string]: unknown;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Resolve property builders, enums and arrays.
|
|
8
|
-
*/
|
|
9
|
-
export type ResolvePropertyProps<M extends Record<string, unknown> = Record<string, unknown>> = {
|
|
10
|
-
property: Property;
|
|
11
|
-
propertyKey?: string;
|
|
12
|
-
values?: Partial<M>;
|
|
13
|
-
previousValues?: Partial<M>;
|
|
14
|
-
path?: string;
|
|
15
|
-
entityId?: string | number;
|
|
16
|
-
index?: number;
|
|
17
|
-
propertyConfigs?: Record<string, PropertyConfig>;
|
|
18
|
-
ignoreMissingFields?: boolean;
|
|
19
|
-
authController: AuthController;
|
|
20
|
-
};
|
|
21
|
-
export declare function resolveProperty<M extends Record<string, unknown> = Record<string, unknown>>(props: ResolvePropertyProps<M>): Property | null;
|
|
22
|
-
export declare function resolveRelationProperty(property: RelationProperty, relations: Relation[], propertyKey?: string): RelationProperty;
|
|
23
|
-
/**
|
|
24
|
-
* Resolve enum aliases for a string or number property
|
|
25
|
-
* @param property
|
|
26
|
-
*/
|
|
27
|
-
export declare function resolvePropertyEnum(property: StringProperty | NumberProperty): StringProperty | NumberProperty;
|
|
28
|
-
/**
|
|
29
|
-
* Resolve enums and arrays for properties
|
|
30
|
-
* @param properties
|
|
31
|
-
* @param value
|
|
32
|
-
*/
|
|
33
|
-
export declare function resolveProperties<M extends Record<string, unknown>>({ propertyKey, properties, ignoreMissingFields, ...props }: {
|
|
34
|
-
propertyKey?: string;
|
|
35
|
-
properties: Properties;
|
|
36
|
-
values?: Partial<M>;
|
|
37
|
-
previousValues?: Partial<M>;
|
|
38
|
-
path?: string;
|
|
39
|
-
entityId?: string | number;
|
|
40
|
-
index?: number;
|
|
41
|
-
propertyConfigs?: Record<string, PropertyConfig>;
|
|
42
|
-
ignoreMissingFields?: boolean;
|
|
43
|
-
authController: AuthController;
|
|
44
|
-
}): Properties;
|
|
45
|
-
export declare function resolveArrayProperties<M>({ propertyKey, property, ignoreMissingFields, ...props }: {
|
|
46
|
-
propertyKey?: string;
|
|
47
|
-
property: ArrayProperty;
|
|
48
|
-
values?: Partial<M>;
|
|
49
|
-
previousValues?: Partial<M>;
|
|
50
|
-
path?: string;
|
|
51
|
-
entityId?: string | number;
|
|
52
|
-
index?: number;
|
|
53
|
-
propertyConfigs?: Record<string, PropertyConfig>;
|
|
54
|
-
ignoreMissingFields?: boolean;
|
|
55
|
-
authController: AuthController;
|
|
56
|
-
}): Property[];
|
|
57
|
-
export declare function getArrayResolvedProperties({ propertyKey, propertyValue, property, ...props }: {
|
|
58
|
-
propertyValue: unknown;
|
|
59
|
-
propertyKey?: string;
|
|
60
|
-
property: ArrayProperty;
|
|
61
|
-
ignoreMissingFields: boolean;
|
|
62
|
-
values?: object;
|
|
63
|
-
previousValues?: object;
|
|
64
|
-
path?: string;
|
|
65
|
-
entityId?: string | number;
|
|
66
|
-
index?: number;
|
|
67
|
-
propertyConfigs?: Record<string, PropertyConfig>;
|
|
68
|
-
authController: AuthController;
|
|
69
|
-
}): Property[];
|
|
70
|
-
export declare function resolveEnumValues(input: EnumValues): EnumValueConfig[] | undefined;
|
|
71
|
-
export declare function getSubcollections<M extends Record<string, unknown> = Record<string, unknown>>(collection: EntityCollection<M>): EntityCollection<Record<string, unknown>>[];
|
|
72
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ArrayProperty, EntityValues, StorageConfig, StringProperty, UploadedFileContext } from "@rebasepro/types";
|
|
2
|
-
interface ResolveFilenameStringParams<M extends Record<string, unknown>> {
|
|
3
|
-
input: string | ((context: UploadedFileContext) => (Promise<string> | string));
|
|
4
|
-
storage: StorageConfig;
|
|
5
|
-
values: EntityValues<M>;
|
|
6
|
-
entityId?: string | number;
|
|
7
|
-
path?: string;
|
|
8
|
-
property: StringProperty | ArrayProperty;
|
|
9
|
-
file: File;
|
|
10
|
-
propertyKey: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function resolveStorageFilenameString<M extends Record<string, unknown>>({ input, storage, values, entityId, path, property, file, propertyKey }: ResolveFilenameStringParams<M>): Promise<string>;
|
|
13
|
-
interface ResolveStoragePathStringParams<M extends Record<string, unknown>> {
|
|
14
|
-
input: string | ((context: UploadedFileContext) => string);
|
|
15
|
-
storage: StorageConfig;
|
|
16
|
-
values: EntityValues<M>;
|
|
17
|
-
entityId?: string | number;
|
|
18
|
-
path?: string;
|
|
19
|
-
property: StringProperty | ArrayProperty;
|
|
20
|
-
file: File;
|
|
21
|
-
propertyKey: string;
|
|
22
|
-
}
|
|
23
|
-
export declare function resolveStoragePathString<M extends Record<string, unknown>>({ input, storage, values, entityId, path, property, file, propertyKey }: ResolveStoragePathStringParams<M>): string;
|
|
24
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface AIIconProps {
|
|
2
|
-
size?: "smallest" | "small" | "medium" | "large";
|
|
3
|
-
className?: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* AI-styled AutoAwesome icon with gradient coloring.
|
|
7
|
-
* Used consistently across AI features for visual identification.
|
|
8
|
-
*/
|
|
9
|
-
export declare function AIIcon({ size, className }: AIIconProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
/**
|
|
11
|
-
* Small animated dot indicator for AI-modified elements.
|
|
12
|
-
* Shows a pulsing gradient dot.
|
|
13
|
-
*/
|
|
14
|
-
export declare function AIModifiedIndicator({ className }: {
|
|
15
|
-
className?: string;
|
|
16
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,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,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 +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,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,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,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>;
|