@rebasepro/core 0.0.1-canary.2 → 0.0.1-canary.4f204c2
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/README.md +3 -3
- package/dist/components/AuthSimulationMenu.d.ts +0 -0
- package/dist/components/ErrorView.d.ts +1 -1
- package/dist/components/LanguageToggle.d.ts +1 -0
- package/dist/components/LoginView/LoginView.d.ts +68 -0
- package/dist/components/LoginView/index.d.ts +2 -0
- package/dist/components/RebaseAuth.d.ts +10 -0
- package/dist/components/UserDisplay.d.ts +1 -1
- package/dist/components/UserSelectPopover.d.ts +62 -0
- package/dist/components/common/index.d.ts +3 -3
- package/dist/components/common/types.d.ts +6 -1
- package/dist/components/common/useColumnsIds.d.ts +6 -3
- package/dist/components/common/{useDataSourceTableController.d.ts → useDataTableController.d.ts} +5 -4
- package/dist/components/index.d.ts +6 -25
- package/dist/contexts/CustomizationControllerContext.d.ts +1 -1
- package/dist/contexts/DataDriverContext.d.ts +3 -0
- package/dist/contexts/DatabaseAdminContext.d.ts +3 -0
- package/dist/contexts/DialogsProvider.d.ts +1 -1
- package/dist/contexts/EffectiveRoleController.d.ts +1 -1
- package/dist/contexts/RebaseClientInstanceContext.d.ts +6 -0
- package/dist/contexts/RebaseDataContext.d.ts +3 -0
- package/dist/contexts/index.d.ts +3 -5
- package/dist/core/PluginLifecycleManager.d.ts +17 -0
- package/dist/core/PluginProviderStack.d.ts +21 -0
- package/dist/core/Rebase.d.ts +2 -1
- package/dist/core/RebaseProps.d.ts +136 -0
- package/dist/core/index.d.ts +1 -6
- package/dist/hooks/data/delete.d.ts +7 -9
- package/dist/hooks/data/save.d.ts +7 -10
- package/dist/hooks/data/useCollectionFetch.d.ts +3 -2
- package/dist/hooks/data/useData.d.ts +13 -0
- package/dist/hooks/data/useEntityFetch.d.ts +12 -3
- package/dist/hooks/data/useRelationSelector.d.ts +9 -2
- package/dist/hooks/data/useUserSelector.d.ts +31 -0
- package/dist/hooks/index.d.ts +9 -13
- package/dist/hooks/useAuthSubscription.d.ts +2 -0
- package/dist/hooks/useBackendStorageSource.d.ts +1 -1
- package/dist/hooks/useBridgeRegistration.d.ts +18 -0
- package/dist/hooks/useBuildEffectiveRoleController.d.ts +1 -1
- package/dist/hooks/useCustomizationController.d.ts +1 -1
- package/dist/hooks/useDialogsController.d.ts +1 -1
- package/dist/hooks/usePermissions.d.ts +2 -1
- package/dist/hooks/useRebaseClient.d.ts +5 -0
- package/dist/hooks/useRebaseRegistry.d.ts +34 -0
- package/dist/hooks/useSlot.d.ts +18 -0
- package/dist/hooks/useSnackbarController.d.ts +1 -1
- package/dist/hooks/useStorageSource.d.ts +2 -1
- package/dist/hooks/useStudioBridge.d.ts +91 -0
- package/dist/hooks/useTranslation.d.ts +17 -0
- package/dist/hooks/useValidateAuthenticator.d.ts +4 -4
- package/dist/i18n/RebaseI18nProvider.d.ts +33 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.es.js +12647 -32643
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +12630 -32643
- package/dist/index.umd.js.map +1 -1
- package/dist/locales/de.d.ts +2 -0
- package/dist/locales/en.d.ts +10 -0
- package/dist/locales/es.d.ts +10 -0
- package/dist/locales/fr.d.ts +2 -0
- package/dist/locales/hi.d.ts +2 -0
- package/dist/locales/it.d.ts +2 -0
- package/dist/locales/pt.d.ts +7 -0
- package/dist/util/constants.d.ts +1 -0
- package/dist/util/icon_list.d.ts +1 -1
- package/dist/util/icon_synonyms.d.ts +1 -1853
- package/dist/util/icons.d.ts +4 -0
- package/dist/util/index.d.ts +1 -2
- package/dist/util/previews.d.ts +2 -1
- package/dist/util/useStorageUploadController.d.ts +5 -3
- package/dist/vitePlugin.js +29 -0
- package/package.json +137 -158
- package/src/components/AIIcon.tsx +11 -3
- package/src/components/AuthSimulationMenu.tsx +0 -0
- package/src/components/ConfirmationDialog.tsx +4 -2
- package/src/components/Debug/UIReferenceView.tsx +377 -141
- package/src/components/Debug/UIStyleGuide.tsx +13 -20
- package/src/components/ErrorView.tsx +4 -3
- package/src/components/LanguageToggle.tsx +67 -0
- package/src/components/LoginView/LoginView.tsx +715 -0
- package/src/components/LoginView/index.ts +2 -0
- package/src/components/NotFoundPage.tsx +5 -3
- package/src/components/RebaseAuth.tsx +27 -0
- package/src/components/RebaseLogo.tsx +3 -3
- package/src/components/UnsavedChangesDialog.tsx +6 -5
- package/src/components/UserDisplay.tsx +6 -6
- package/src/components/UserSelectPopover.tsx +414 -0
- package/src/components/UserSettingsView.tsx +19 -26
- package/src/components/common/index.ts +3 -3
- package/src/components/common/types.tsx +6 -1
- package/src/components/common/useColumnsIds.tsx +32 -20
- package/src/components/common/{useDataSourceTableController.tsx → useDataTableController.tsx} +104 -78
- package/src/components/index.tsx +10 -34
- package/src/contexts/AdminModeController.tsx +1 -1
- package/src/contexts/CustomizationControllerContext.tsx +1 -1
- package/src/contexts/DataDriverContext.tsx +4 -0
- package/src/contexts/DatabaseAdminContext.tsx +4 -0
- package/src/contexts/DialogsProvider.tsx +9 -6
- package/src/contexts/EffectiveRoleController.tsx +3 -2
- package/src/contexts/ModeController.tsx +1 -1
- package/src/contexts/RebaseClientInstanceContext.tsx +7 -0
- package/src/contexts/RebaseDataContext.tsx +4 -0
- package/src/contexts/index.ts +3 -5
- package/src/core/PluginLifecycleManager.tsx +96 -0
- package/src/core/PluginProviderStack.tsx +40 -0
- package/src/core/Rebase.tsx +151 -108
- package/src/core/RebaseProps.tsx +164 -0
- package/src/core/RebaseRouter.tsx +1 -1
- package/src/core/RebaseRoutes.tsx +3 -26
- package/src/core/index.tsx +1 -10
- package/src/hooks/ApiConfigContext.tsx +2 -1
- package/src/hooks/data/delete.ts +9 -23
- package/src/hooks/data/save.ts +18 -20
- package/src/hooks/data/useCollectionFetch.tsx +55 -41
- package/src/hooks/data/useData.tsx +18 -0
- package/src/hooks/data/useEntityFetch.tsx +41 -32
- package/src/hooks/data/useRelationSelector.tsx +97 -53
- package/src/hooks/data/useUserSelector.tsx +157 -0
- package/src/hooks/index.tsx +11 -15
- package/src/hooks/useAuthSubscription.ts +87 -0
- package/src/hooks/useBackendStorageSource.ts +71 -59
- package/src/hooks/useBridgeRegistration.tsx +32 -0
- package/src/hooks/useBrowserTitleAndIcon.tsx +1 -3
- package/src/hooks/useBuildAdminModeController.tsx +3 -3
- package/src/hooks/useBuildEffectiveRoleController.tsx +5 -4
- package/src/hooks/useBuildLocalConfigurationPersistence.tsx +14 -4
- package/src/hooks/useBuildModeController.tsx +6 -6
- package/src/hooks/useClipboard.tsx +11 -11
- package/src/hooks/useCollapsedGroups.ts +7 -6
- package/src/hooks/useCustomizationController.tsx +1 -1
- package/src/hooks/useDialogsController.tsx +2 -1
- package/src/hooks/usePermissions.ts +5 -4
- package/src/hooks/useRebaseClient.tsx +10 -0
- package/src/hooks/useRebaseContext.tsx +18 -29
- package/src/hooks/useRebaseRegistry.tsx +91 -0
- package/src/hooks/useSlot.tsx +64 -0
- package/src/hooks/useSnackbarController.tsx +2 -2
- package/src/hooks/useStorageSource.tsx +2 -1
- package/src/hooks/useStudioBridge.tsx +217 -0
- package/src/hooks/useTranslation.ts +33 -0
- package/src/hooks/useUnsavedChangesDialog.tsx +10 -8
- package/src/hooks/useValidateAuthenticator.tsx +10 -9
- package/src/i18n/RebaseI18nProvider.tsx +160 -0
- package/src/index.ts +11 -9
- package/src/locales/de.ts +894 -0
- package/src/locales/en.ts +942 -0
- package/src/locales/es.ts +904 -0
- package/src/locales/fr.ts +893 -0
- package/src/locales/hi.ts +893 -0
- package/src/locales/it.ts +893 -0
- package/src/locales/pt.ts +901 -0
- package/src/util/constants.ts +7 -0
- package/src/util/entity_cache.ts +20 -20
- package/src/util/icon_list.ts +2 -3
- package/src/util/icon_synonyms.ts +1 -1853
- package/src/util/icons.tsx +72 -18
- package/src/util/index.ts +3 -2
- package/src/util/previews.ts +25 -6
- package/src/util/useStorageUploadController.tsx +22 -32
- package/src/vitePlugin.ts +4 -5
- package/dist/app/AppBar.d.ts +0 -12
- package/dist/app/Drawer.d.ts +0 -19
- package/dist/app/Scaffold.d.ts +0 -34
- package/dist/app/index.d.ts +0 -4
- package/dist/app/useApp.d.ts +0 -17
- package/dist/components/AdminModeSyncer.d.ts +0 -17
- package/dist/components/ArrayContainer.d.ts +0 -59
- package/dist/components/CircularProgressCenter.d.ts +0 -11
- package/dist/components/ClearFilterSortButton.d.ts +0 -5
- package/dist/components/DeleteEntityDialog.d.ts +0 -12
- package/dist/components/EntityCollectionTable/EntityCollectionRowActions.d.ts +0 -37
- package/dist/components/EntityCollectionTable/EntityCollectionTable.d.ts +0 -27
- package/dist/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +0 -128
- package/dist/components/EntityCollectionTable/PropertyTableCell.d.ts +0 -25
- package/dist/components/EntityCollectionTable/column_utils.d.ts +0 -15
- package/dist/components/EntityCollectionTable/fields/TableMultipleRelationField.d.ts +0 -20
- package/dist/components/EntityCollectionTable/fields/TableReferenceField.d.ts +0 -21
- package/dist/components/EntityCollectionTable/fields/TableRelationField.d.ts +0 -21
- package/dist/components/EntityCollectionTable/fields/TableRelationSelectorField.d.ts +0 -20
- package/dist/components/EntityCollectionTable/fields/TableStorageUpload.d.ts +0 -32
- package/dist/components/EntityCollectionTable/index.d.ts +0 -6
- package/dist/components/EntityCollectionTable/internal/CollectionTableToolbar.d.ts +0 -16
- package/dist/components/EntityCollectionTable/internal/EntityTableCell.d.ts +0 -32
- package/dist/components/EntityCollectionTable/internal/EntityTableCellActions.d.ts +0 -9
- package/dist/components/EntityCollectionTable/internal/common.d.ts +0 -4
- package/dist/components/EntityCollectionTable/internal/popup_field/PopupFormField.d.ts +0 -26
- package/dist/components/EntityCollectionTable/internal/popup_field/useDraggable.d.ts +0 -13
- package/dist/components/EntityCollectionTable/internal/popup_field/useWindowSize.d.ts +0 -6
- package/dist/components/EntityCollectionView/Board.d.ts +0 -2
- package/dist/components/EntityCollectionView/BoardColumn.d.ts +0 -42
- package/dist/components/EntityCollectionView/BoardColumnTitle.d.ts +0 -9
- package/dist/components/EntityCollectionView/BoardSortableList.d.ts +0 -14
- package/dist/components/EntityCollectionView/EntityBoardCard.d.ts +0 -26
- package/dist/components/EntityCollectionView/EntityCard.d.ts +0 -19
- package/dist/components/EntityCollectionView/EntityCollectionBoardView.d.ts +0 -20
- package/dist/components/EntityCollectionView/EntityCollectionCardView.d.ts +0 -31
- package/dist/components/EntityCollectionView/EntityCollectionView.d.ts +0 -54
- package/dist/components/EntityCollectionView/EntityCollectionViewActions.d.ts +0 -14
- package/dist/components/EntityCollectionView/EntityCollectionViewStartActions.d.ts +0 -15
- package/dist/components/EntityCollectionView/FiltersDialog.d.ts +0 -14
- package/dist/components/EntityCollectionView/ViewModeToggle.d.ts +0 -44
- package/dist/components/EntityCollectionView/board_types.d.ts +0 -105
- package/dist/components/EntityCollectionView/useBoardDataController.d.ts +0 -60
- package/dist/components/EntityCollectionView/useSelectionController.d.ts +0 -2
- package/dist/components/EntityCollectionView/utils.d.ts +0 -3
- package/dist/components/EntityJsonPreview.d.ts +0 -3
- package/dist/components/EntityPreview.d.ts +0 -54
- package/dist/components/EntityView.d.ts +0 -11
- package/dist/components/ErrorBoundary.d.ts +0 -11
- package/dist/components/FieldCaption.d.ts +0 -5
- package/dist/components/HomePage/ContentHomePage.d.ts +0 -11
- package/dist/components/HomePage/FavouritesView.d.ts +0 -3
- package/dist/components/HomePage/HomePageDnD.d.ts +0 -77
- package/dist/components/HomePage/NavigationCard.d.ts +0 -10
- package/dist/components/HomePage/NavigationCardBinding.d.ts +0 -18
- package/dist/components/HomePage/NavigationGroup.d.ts +0 -11
- package/dist/components/HomePage/RenameGroupDialog.d.ts +0 -9
- package/dist/components/HomePage/SmallNavigationCard.d.ts +0 -6
- package/dist/components/HomePage/StudioHomePage.d.ts +0 -9
- package/dist/components/HomePage/index.d.ts +0 -5
- package/dist/components/PropertyCollectionView.d.ts +0 -22
- package/dist/components/PropertyConfigBadge.d.ts +0 -6
- package/dist/components/PropertyIdCopyTooltip.d.ts +0 -8
- package/dist/components/ReferenceTable/EntitySelectionTable.d.ts +0 -58
- package/dist/components/ReferenceWidget.d.ts +0 -29
- package/dist/components/RelationSelector.d.ts +0 -32
- package/dist/components/SearchIconsView.d.ts +0 -5
- package/dist/components/SelectableTable/SelectableTable.d.ts +0 -89
- package/dist/components/SelectableTable/SelectableTableContext.d.ts +0 -4
- package/dist/components/SelectableTable/filters/BooleanFilterField.d.ts +0 -9
- package/dist/components/SelectableTable/filters/DateTimeFilterField.d.ts +0 -12
- package/dist/components/SelectableTable/filters/ReferenceFilterField.d.ts +0 -15
- package/dist/components/SelectableTable/filters/RelationFilterField.d.ts +0 -12
- package/dist/components/SelectableTable/filters/StringNumberFilterField.d.ts +0 -13
- package/dist/components/VirtualTable/VirtualTable.d.ts +0 -11
- package/dist/components/VirtualTable/VirtualTableCell.d.ts +0 -20
- package/dist/components/VirtualTable/VirtualTableHeader.d.ts +0 -29
- package/dist/components/VirtualTable/VirtualTableHeaderRow.d.ts +0 -2
- package/dist/components/VirtualTable/VirtualTableProps.d.ts +0 -239
- package/dist/components/VirtualTable/VirtualTableRow.d.ts +0 -3
- package/dist/components/VirtualTable/fields/VirtualTableDateField.d.ts +0 -12
- package/dist/components/VirtualTable/fields/VirtualTableInput.d.ts +0 -9
- package/dist/components/VirtualTable/fields/VirtualTableNumberInput.d.ts +0 -8
- package/dist/components/VirtualTable/fields/VirtualTableSelect.d.ts +0 -15
- package/dist/components/VirtualTable/fields/VirtualTableSwitch.d.ts +0 -7
- package/dist/components/VirtualTable/fields/VirtualTableUserSelect.d.ts +0 -12
- package/dist/components/VirtualTable/index.d.ts +0 -3
- package/dist/components/VirtualTable/types.d.ts +0 -37
- package/dist/components/admin/RoleChip.d.ts +0 -4
- package/dist/components/admin/RolesView.d.ts +0 -4
- package/dist/components/admin/UsersView.d.ts +0 -4
- package/dist/components/admin/index.d.ts +0 -3
- package/dist/components/common/default_entity_actions.d.ts +0 -4
- package/dist/components/common/useDebouncedCallback.d.ts +0 -1
- package/dist/components/common/useTableSearchHelper.d.ts +0 -11
- package/dist/contexts/BreacrumbsContext.d.ts +0 -8
- package/dist/contexts/DataSourceContext.d.ts +0 -3
- package/dist/contexts/NavigationContext.d.ts +0 -3
- package/dist/contexts/SideDialogsControllerContext.d.ts +0 -3
- package/dist/contexts/SideEntityControllerContext.d.ts +0 -3
- package/dist/core/DefaultAppBar.d.ts +0 -29
- package/dist/core/DefaultDrawer.d.ts +0 -29
- package/dist/core/DrawerNavigationGroup.d.ts +0 -45
- package/dist/core/DrawerNavigationItem.d.ts +0 -10
- package/dist/core/EntityEditView.d.ts +0 -47
- package/dist/core/EntityEditViewFormActions.d.ts +0 -2
- package/dist/core/EntitySidePanel.d.ts +0 -10
- package/dist/core/SideDialogs.d.ts +0 -25
- package/dist/core/field_configs.d.ts +0 -6
- package/dist/form/EntityForm.d.ts +0 -7
- package/dist/form/EntityFormActions.d.ts +0 -2
- package/dist/form/PropertyFieldBinding.d.ts +0 -30
- package/dist/form/components/ErrorFocus.d.ts +0 -4
- package/dist/form/components/FieldHelperText.d.ts +0 -12
- package/dist/form/components/FormEntry.d.ts +0 -6
- package/dist/form/components/FormLayout.d.ts +0 -5
- package/dist/form/components/LabelWithIcon.d.ts +0 -14
- package/dist/form/components/LabelWithIconAndTooltip.d.ts +0 -15
- package/dist/form/components/LocalChangesMenu.d.ts +0 -11
- package/dist/form/components/StorageItemPreview.d.ts +0 -13
- package/dist/form/components/StorageUploadProgress.d.ts +0 -10
- package/dist/form/components/index.d.ts +0 -5
- package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.d.ts +0 -9
- package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.d.ts +0 -11
- package/dist/form/field_bindings/BlockFieldBinding.d.ts +0 -10
- package/dist/form/field_bindings/DateTimeFieldBinding.d.ts +0 -11
- package/dist/form/field_bindings/KeyValueFieldBinding.d.ts +0 -7
- package/dist/form/field_bindings/MapFieldBinding.d.ts +0 -9
- package/dist/form/field_bindings/MarkdownEditorFieldBinding.d.ts +0 -11
- package/dist/form/field_bindings/MultiSelectFieldBinding.d.ts +0 -9
- package/dist/form/field_bindings/MultipleRelationFieldBinding.d.ts +0 -9
- package/dist/form/field_bindings/ReadOnlyFieldBinding.d.ts +0 -10
- package/dist/form/field_bindings/ReferenceAsStringFieldBinding.d.ts +0 -9
- package/dist/form/field_bindings/ReferenceFieldBinding.d.ts +0 -9
- package/dist/form/field_bindings/RelationFieldBinding.d.ts +0 -2
- package/dist/form/field_bindings/RepeatFieldBinding.d.ts +0 -10
- package/dist/form/field_bindings/SelectFieldBinding.d.ts +0 -10
- package/dist/form/field_bindings/StorageUploadFieldBinding.d.ts +0 -19
- package/dist/form/field_bindings/SwitchFieldBinding.d.ts +0 -9
- package/dist/form/field_bindings/TextFieldBinding.d.ts +0 -8
- package/dist/form/field_bindings/UserSelectFieldBinding.d.ts +0 -12
- package/dist/form/index.d.ts +0 -20
- package/dist/form/useClearRestoreValue.d.ts +0 -13
- package/dist/form/validation.d.ts +0 -26
- package/dist/hooks/data/useDataSource.d.ts +0 -6
- package/dist/hooks/navigation/contexts/CMSUrlContext.d.ts +0 -4
- package/dist/hooks/navigation/contexts/CollectionRegistryContext.d.ts +0 -4
- package/dist/hooks/navigation/contexts/NavigationStateContext.d.ts +0 -4
- package/dist/hooks/navigation/contexts/index.d.ts +0 -3
- package/dist/hooks/navigation/useBuildCMSUrlController.d.ts +0 -6
- package/dist/hooks/navigation/useBuildCollectionRegistryController.d.ts +0 -7
- package/dist/hooks/navigation/useBuildNavigationStateController.d.ts +0 -32
- package/dist/hooks/navigation/useNavigationRegistry.d.ts +0 -10
- package/dist/hooks/navigation/useNavigationResolution.d.ts +0 -5
- package/dist/hooks/navigation/useNavigationURLs.d.ts +0 -11
- package/dist/hooks/navigation/useResolvedCollections.d.ts +0 -26
- package/dist/hooks/navigation/useResolvedViews.d.ts +0 -28
- package/dist/hooks/navigation/useTopLevelNavigation.d.ts +0 -26
- package/dist/hooks/navigation/utils.d.ts +0 -12
- package/dist/hooks/useBreadcrumbsController.d.ts +0 -42
- package/dist/hooks/useBuildNavigationController.d.ts +0 -16
- package/dist/hooks/useEntitySelectionDialog.d.ts +0 -18
- package/dist/hooks/useResolvedNavigationFrom.d.ts +0 -72
- package/dist/hooks/useSideDialogsController.d.ts +0 -18
- package/dist/hooks/useSideEntityController.d.ts +0 -12
- package/dist/internal/useBuildDataSource.d.ts +0 -12
- package/dist/internal/useBuildSideDialogsController.d.ts +0 -2
- package/dist/internal/useBuildSideEntityController.d.ts +0 -4
- package/dist/preview/PropertyPreview.d.ts +0 -6
- package/dist/preview/components/ArrayEnumPreview.d.ts +0 -10
- package/dist/preview/components/AsyncPreviewComponent.d.ts +0 -11
- package/dist/preview/components/BooleanPreview.d.ts +0 -10
- package/dist/preview/components/DatePreview.d.ts +0 -17
- package/dist/preview/components/EmptyValue.d.ts +0 -6
- package/dist/preview/components/EnumValuesChip.d.ts +0 -13
- package/dist/preview/components/ImagePreview.d.ts +0 -16
- package/dist/preview/components/ReferencePreview.d.ts +0 -16
- package/dist/preview/components/RelationPreview.d.ts +0 -16
- package/dist/preview/components/StorageThumbnail.d.ts +0 -15
- package/dist/preview/components/UrlComponentPreview.d.ts +0 -13
- package/dist/preview/components/UserPreview.d.ts +0 -8
- package/dist/preview/index.d.ts +0 -24
- package/dist/preview/property_previews/ArrayOfMapsPreview.d.ts +0 -5
- package/dist/preview/property_previews/ArrayOfReferencesPreview.d.ts +0 -5
- package/dist/preview/property_previews/ArrayOfRelationsPreview.d.ts +0 -5
- package/dist/preview/property_previews/ArrayOfStorageComponentsPreview.d.ts +0 -5
- package/dist/preview/property_previews/ArrayOfStringsPreview.d.ts +0 -5
- package/dist/preview/property_previews/ArrayOneOfPreview.d.ts +0 -5
- package/dist/preview/property_previews/ArrayPropertyEnumPreview.d.ts +0 -5
- package/dist/preview/property_previews/ArrayPropertyPreview.d.ts +0 -5
- package/dist/preview/property_previews/MapPropertyPreview.d.ts +0 -8
- package/dist/preview/property_previews/NumberPropertyPreview.d.ts +0 -6
- package/dist/preview/property_previews/SkeletonPropertyComponent.d.ts +0 -13
- package/dist/preview/property_previews/StringPropertyPreview.d.ts +0 -6
- package/dist/preview/util.d.ts +0 -6
- package/dist/routes/CustomCMSRoute.d.ts +0 -4
- package/dist/routes/RebaseRoute.d.ts +0 -1
- package/dist/routes/index.d.ts +0 -2
- package/dist/util/property_utils.d.ts +0 -23
- package/dist/util/useDebouncedCallback.d.ts +0 -1
- package/src/app/AppBar.tsx +0 -18
- package/src/app/Drawer.tsx +0 -30
- package/src/app/Scaffold.tsx +0 -238
- package/src/app/index.ts +0 -4
- package/src/app/useApp.tsx +0 -36
- package/src/components/AdminModeSyncer.tsx +0 -47
- package/src/components/ArrayContainer.tsx +0 -549
- package/src/components/CircularProgressCenter.tsx +0 -26
- package/src/components/ClearFilterSortButton.tsx +0 -44
- package/src/components/DeleteEntityDialog.tsx +0 -181
- package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +0 -225
- package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +0 -383
- package/src/components/EntityCollectionTable/EntityCollectionTableProps.tsx +0 -180
- package/src/components/EntityCollectionTable/PropertyTableCell.tsx +0 -561
- package/src/components/EntityCollectionTable/column_utils.tsx +0 -74
- package/src/components/EntityCollectionTable/fields/TableMultipleRelationField.tsx +0 -122
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +0 -169
- package/src/components/EntityCollectionTable/fields/TableRelationField.tsx +0 -177
- package/src/components/EntityCollectionTable/fields/TableRelationSelectorField.tsx +0 -42
- package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +0 -315
- package/src/components/EntityCollectionTable/index.tsx +0 -12
- package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +0 -90
- package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +0 -311
- package/src/components/EntityCollectionTable/internal/EntityTableCellActions.tsx +0 -82
- package/src/components/EntityCollectionTable/internal/common.tsx +0 -72
- package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +0 -425
- package/src/components/EntityCollectionTable/internal/popup_field/useDraggable.tsx +0 -96
- package/src/components/EntityCollectionTable/internal/popup_field/useWindowSize.tsx +0 -20
- package/src/components/EntityCollectionView/Board.tsx +0 -324
- package/src/components/EntityCollectionView/BoardColumn.tsx +0 -158
- package/src/components/EntityCollectionView/BoardColumnTitle.tsx +0 -45
- package/src/components/EntityCollectionView/BoardSortableList.tsx +0 -172
- package/src/components/EntityCollectionView/EntityBoardCard.tsx +0 -200
- package/src/components/EntityCollectionView/EntityCard.tsx +0 -225
- package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +0 -746
- package/src/components/EntityCollectionView/EntityCollectionCardView.tsx +0 -254
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +0 -1220
- package/src/components/EntityCollectionView/EntityCollectionViewActions.tsx +0 -142
- package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +0 -131
- package/src/components/EntityCollectionView/FiltersDialog.tsx +0 -249
- package/src/components/EntityCollectionView/ViewModeToggle.tsx +0 -194
- package/src/components/EntityCollectionView/board_types.ts +0 -113
- package/src/components/EntityCollectionView/useBoardDataController.tsx +0 -490
- package/src/components/EntityCollectionView/useSelectionController.tsx +0 -43
- package/src/components/EntityCollectionView/utils.ts +0 -19
- package/src/components/EntityJsonPreview.tsx +0 -66
- package/src/components/EntityPreview.tsx +0 -367
- package/src/components/EntityView.tsx +0 -66
- package/src/components/ErrorBoundary.tsx +0 -40
- package/src/components/FieldCaption.tsx +0 -14
- package/src/components/HomePage/ContentHomePage.tsx +0 -634
- package/src/components/HomePage/FavouritesView.tsx +0 -59
- package/src/components/HomePage/HomePageDnD.tsx +0 -702
- package/src/components/HomePage/NavigationCard.tsx +0 -80
- package/src/components/HomePage/NavigationCardBinding.tsx +0 -111
- package/src/components/HomePage/NavigationGroup.tsx +0 -154
- package/src/components/HomePage/RenameGroupDialog.tsx +0 -121
- package/src/components/HomePage/SmallNavigationCard.tsx +0 -45
- package/src/components/HomePage/StudioHomePage.tsx +0 -231
- package/src/components/HomePage/index.tsx +0 -6
- package/src/components/PropertyCollectionView.tsx +0 -333
- package/src/components/PropertyConfigBadge.tsx +0 -27
- package/src/components/PropertyIdCopyTooltip.tsx +0 -47
- package/src/components/ReferenceTable/EntitySelectionTable.tsx +0 -371
- package/src/components/ReferenceWidget.tsx +0 -152
- package/src/components/RelationSelector.tsx +0 -518
- package/src/components/SearchIconsView.tsx +0 -78
- package/src/components/SelectableTable/SelectableTable.tsx +0 -344
- package/src/components/SelectableTable/SelectableTableContext.tsx +0 -6
- package/src/components/SelectableTable/filters/BooleanFilterField.tsx +0 -49
- package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +0 -126
- package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +0 -203
- package/src/components/SelectableTable/filters/RelationFilterField.tsx +0 -138
- package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +0 -217
- package/src/components/VirtualTable/VirtualTable.performance.test.tsx +0 -386
- package/src/components/VirtualTable/VirtualTable.tsx +0 -625
- package/src/components/VirtualTable/VirtualTableCell.tsx +0 -58
- package/src/components/VirtualTable/VirtualTableHeader.tsx +0 -275
- package/src/components/VirtualTable/VirtualTableHeaderRow.tsx +0 -249
- package/src/components/VirtualTable/VirtualTableProps.tsx +0 -298
- package/src/components/VirtualTable/VirtualTableRow.tsx +0 -52
- package/src/components/VirtualTable/fields/VirtualTableDateField.tsx +0 -39
- package/src/components/VirtualTable/fields/VirtualTableInput.tsx +0 -93
- package/src/components/VirtualTable/fields/VirtualTableNumberInput.tsx +0 -83
- package/src/components/VirtualTable/fields/VirtualTableSelect.tsx +0 -133
- package/src/components/VirtualTable/fields/VirtualTableSwitch.tsx +0 -32
- package/src/components/VirtualTable/fields/VirtualTableUserSelect.tsx +0 -111
- package/src/components/VirtualTable/index.tsx +0 -3
- package/src/components/VirtualTable/types.tsx +0 -46
- package/src/components/admin/RoleChip.tsx +0 -23
- package/src/components/admin/RolesView.tsx +0 -408
- package/src/components/admin/UsersView.tsx +0 -353
- package/src/components/admin/index.ts +0 -3
- package/src/components/common/default_entity_actions.tsx +0 -144
- package/src/components/common/useDebouncedCallback.tsx +0 -20
- package/src/components/common/useTableSearchHelper.ts +0 -75
- package/src/contexts/BreacrumbsContext.tsx +0 -45
- package/src/contexts/DataSourceContext.tsx +0 -4
- package/src/contexts/NavigationContext.tsx +0 -4
- package/src/contexts/SideDialogsControllerContext.tsx +0 -4
- package/src/contexts/SideEntityControllerContext.tsx +0 -4
- package/src/core/DefaultAppBar.tsx +0 -274
- package/src/core/DefaultDrawer.tsx +0 -267
- package/src/core/DrawerNavigationGroup.tsx +0 -117
- package/src/core/DrawerNavigationItem.tsx +0 -65
- package/src/core/EntityEditView.tsx +0 -590
- package/src/core/EntityEditViewFormActions.tsx +0 -343
- package/src/core/EntitySidePanel.tsx +0 -173
- package/src/core/SideDialogs.tsx +0 -200
- package/src/core/field_configs.tsx +0 -443
- package/src/form/EntityForm.tsx +0 -820
- package/src/form/EntityFormActions.tsx +0 -201
- package/src/form/PropertyFieldBinding.tsx +0 -348
- package/src/form/components/ErrorFocus.tsx +0 -44
- package/src/form/components/FieldHelperText.tsx +0 -45
- package/src/form/components/FormEntry.tsx +0 -22
- package/src/form/components/FormLayout.tsx +0 -16
- package/src/form/components/LabelWithIcon.tsx +0 -43
- package/src/form/components/LabelWithIconAndTooltip.tsx +0 -28
- package/src/form/components/LocalChangesMenu.tsx +0 -144
- package/src/form/components/StorageItemPreview.tsx +0 -79
- package/src/form/components/StorageUploadProgress.tsx +0 -105
- package/src/form/components/index.tsx +0 -5
- package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +0 -105
- package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +0 -163
- package/src/form/field_bindings/BlockFieldBinding.tsx +0 -268
- package/src/form/field_bindings/DateTimeFieldBinding.tsx +0 -70
- package/src/form/field_bindings/KeyValueFieldBinding.tsx +0 -567
- package/src/form/field_bindings/MapFieldBinding.tsx +0 -156
- package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +0 -146
- package/src/form/field_bindings/MultiSelectFieldBinding.tsx +0 -120
- package/src/form/field_bindings/MultipleRelationFieldBinding.tsx +0 -151
- package/src/form/field_bindings/ReadOnlyFieldBinding.tsx +0 -64
- package/src/form/field_bindings/ReferenceAsStringFieldBinding.tsx +0 -135
- package/src/form/field_bindings/ReferenceFieldBinding.tsx +0 -134
- package/src/form/field_bindings/RelationFieldBinding.tsx +0 -176
- package/src/form/field_bindings/RepeatFieldBinding.tsx +0 -136
- package/src/form/field_bindings/SelectFieldBinding.tsx +0 -107
- package/src/form/field_bindings/StorageUploadFieldBinding.tsx +0 -490
- package/src/form/field_bindings/SwitchFieldBinding.tsx +0 -64
- package/src/form/field_bindings/TextFieldBinding.tsx +0 -153
- package/src/form/field_bindings/UserSelectFieldBinding.tsx +0 -96
- package/src/form/index.tsx +0 -27
- package/src/form/useClearRestoreValue.tsx +0 -35
- package/src/form/validation.ts +0 -532
- package/src/hooks/data/useDataSource.tsx +0 -22
- package/src/hooks/navigation/contexts/CMSUrlContext.tsx +0 -24
- package/src/hooks/navigation/contexts/CollectionRegistryContext.tsx +0 -19
- package/src/hooks/navigation/contexts/NavigationStateContext.tsx +0 -15
- package/src/hooks/navigation/contexts/index.ts +0 -14
- package/src/hooks/navigation/useBuildCMSUrlController.tsx +0 -68
- package/src/hooks/navigation/useBuildCollectionRegistryController.tsx +0 -150
- package/src/hooks/navigation/useBuildNavigationStateController.tsx +0 -135
- package/src/hooks/navigation/useNavigationRegistry.ts +0 -142
- package/src/hooks/navigation/useNavigationResolution.ts +0 -98
- package/src/hooks/navigation/useNavigationURLs.ts +0 -56
- package/src/hooks/navigation/useResolvedCollections.ts +0 -139
- package/src/hooks/navigation/useResolvedViews.tsx +0 -204
- package/src/hooks/navigation/useTopLevelNavigation.ts +0 -265
- package/src/hooks/navigation/utils.ts +0 -177
- package/src/hooks/useBreadcrumbsController.tsx +0 -49
- package/src/hooks/useBuildNavigationController.tsx +0 -341
- package/src/hooks/useEntitySelectionDialog.tsx +0 -56
- package/src/hooks/useResolvedNavigationFrom.tsx +0 -158
- package/src/hooks/useSideDialogsController.tsx +0 -21
- package/src/hooks/useSideEntityController.tsx +0 -15
- package/src/internal/useBuildDataSource.ts +0 -380
- package/src/internal/useBuildSideDialogsController.tsx +0 -135
- package/src/internal/useBuildSideEntityController.tsx +0 -309
- package/src/preview/PropertyPreview.tsx +0 -308
- package/src/preview/components/ArrayEnumPreview.tsx +0 -38
- package/src/preview/components/AsyncPreviewComponent.tsx +0 -47
- package/src/preview/components/BooleanPreview.tsx +0 -25
- package/src/preview/components/DatePreview.tsx +0 -94
- package/src/preview/components/EmptyValue.tsx +0 -10
- package/src/preview/components/EnumValuesChip.tsx +0 -39
- package/src/preview/components/ImagePreview.tsx +0 -111
- package/src/preview/components/ReferencePreview.tsx +0 -162
- package/src/preview/components/RelationPreview.tsx +0 -153
- package/src/preview/components/StorageThumbnail.tsx +0 -91
- package/src/preview/components/UrlComponentPreview.tsx +0 -113
- package/src/preview/components/UserPreview.tsx +0 -27
- package/src/preview/index.ts +0 -26
- package/src/preview/property_previews/ArrayOfMapsPreview.tsx +0 -72
- package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +0 -43
- package/src/preview/property_previews/ArrayOfRelationsPreview.tsx +0 -52
- package/src/preview/property_previews/ArrayOfStorageComponentsPreview.tsx +0 -49
- package/src/preview/property_previews/ArrayOfStringsPreview.tsx +0 -44
- package/src/preview/property_previews/ArrayOneOfPreview.tsx +0 -67
- package/src/preview/property_previews/ArrayPropertyEnumPreview.tsx +0 -34
- package/src/preview/property_previews/ArrayPropertyPreview.tsx +0 -69
- package/src/preview/property_previews/MapPropertyPreview.tsx +0 -145
- package/src/preview/property_previews/NumberPropertyPreview.tsx +0 -28
- package/src/preview/property_previews/SkeletonPropertyComponent.tsx +0 -275
- package/src/preview/property_previews/StringPropertyPreview.tsx +0 -57
- package/src/preview/util.ts +0 -30
- package/src/routes/CustomCMSRoute.tsx +0 -21
- package/src/routes/RebaseRoute.tsx +0 -255
- package/src/routes/index.ts +0 -2
- package/src/util/property_utils.tsx +0 -152
- 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
|
|
72
|
+
### 🏓 Exceptional Table View
|
|
73
73
|
|
|
74
|
-
We've developed a highly efficient windowed **
|
|
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/
|
|
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
|
|
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,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 "./
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
4
|
+
export * from "./useDataTableController";
|
|
5
|
+
export * from "./useScrollRestoration";
|
|
6
|
+
export * from "./table_height";
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
3
|
-
|
|
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[];
|
package/dist/components/common/{useDataSourceTableController.d.ts → useDataTableController.d.ts}
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
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
|
|
5
|
+
export type DataTableControllerProps<M extends Record<string, any> = any> = {
|
|
5
6
|
/**
|
|
6
7
|
* Full path where the data of this table is located
|
|
7
8
|
*/
|
|
@@ -28,7 +29,7 @@ export type DataSourceTableControllerProps<M extends Record<string, any> = any>
|
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
30
31
|
* Use this hook to build a controller for the {@link EntityCollectionTable}.
|
|
31
|
-
* This controller is bound to data in a path in your specified
|
|
32
|
+
* This controller is bound to data in a path in your specified driver.
|
|
32
33
|
*
|
|
33
34
|
* Note that you can build your own hook returning a {@link EntityTableController}
|
|
34
35
|
* if you would like to display different data.
|
|
@@ -41,4 +42,4 @@ export type DataSourceTableControllerProps<M extends Record<string, any> = any>
|
|
|
41
42
|
* @param forceFilterFromProps
|
|
42
43
|
* @param updateUrl
|
|
43
44
|
*/
|
|
44
|
-
export declare function
|
|
45
|
+
export declare function useDataTableController<M extends Record<string, any> = any, USER extends User = User>({ path, collection, scrollRestoration, entitiesDisplayedFirst, lastDeleteTimestamp: _lastDeleteTimestamp, forceFilter: forceFilterFromProps, updateUrl }: DataTableControllerProps<M>): EntityTableController<M>;
|
|
@@ -1,35 +1,16 @@
|
|
|
1
1
|
export type { ErrorViewProps } from "./ErrorView";
|
|
2
2
|
export { ErrorView } from "./ErrorView";
|
|
3
|
-
export type { EntityViewProps } from "./EntityView";
|
|
4
|
-
export { EntityView } from "./EntityView";
|
|
5
|
-
export type { EntitySelectionProps } from "./ReferenceTable/EntitySelectionTable";
|
|
6
|
-
export { EntitySelectionTable } from "./ReferenceTable/EntitySelectionTable";
|
|
7
|
-
export { CircularProgressCenter } from "./CircularProgressCenter";
|
|
8
3
|
export * from "./common";
|
|
9
|
-
export * from "./HomePage";
|
|
10
|
-
export * from "./SelectableTable/SelectableTable";
|
|
11
|
-
export * from "./SelectableTable/SelectableTableContext";
|
|
12
|
-
export * from "./EntityCollectionView/EntityCollectionView";
|
|
13
|
-
export * from "./EntityCollectionView/EntityCollectionViewActions";
|
|
14
|
-
export * from "./EntityCollectionView/EntityCollectionCardView";
|
|
15
|
-
export * from "./EntityCollectionView/EntityCard";
|
|
16
|
-
export * from "./EntityCollectionView/useSelectionController";
|
|
17
|
-
export * from "./PropertyConfigBadge";
|
|
18
|
-
export * from "./PropertyIdCopyTooltip";
|
|
19
|
-
export * from "./EntityCollectionTable";
|
|
20
4
|
export * from "./NotFoundPage";
|
|
21
|
-
export * from "./VirtualTable";
|
|
22
|
-
export * from "./ErrorBoundary";
|
|
23
5
|
export * from "./ConfirmationDialog";
|
|
6
|
+
export * from "./ErrorTooltip";
|
|
24
7
|
export * from "./RebaseLogo";
|
|
25
|
-
export * from "../core/DefaultAppBar";
|
|
26
|
-
export * from "./ArrayContainer";
|
|
27
|
-
export * from "./ReferenceWidget";
|
|
28
|
-
export * from "./SearchIconsView";
|
|
29
|
-
export * from "./FieldCaption";
|
|
30
|
-
export * from "./EntityPreview";
|
|
31
8
|
export * from "./AIIcon";
|
|
32
9
|
export * from "./Debug/UIStyleGuide";
|
|
33
10
|
export * from "./Debug/UIReferenceView";
|
|
34
|
-
export * from "./AdminModeSyncer";
|
|
35
11
|
export * from "./UserSettingsView";
|
|
12
|
+
export * from "./LanguageToggle";
|
|
13
|
+
export * from "./UserSelectPopover";
|
|
14
|
+
export * from "./UserDisplay";
|
|
15
|
+
export * from "./LoginView";
|
|
16
|
+
export * from "./RebaseAuth";
|
|
@@ -1,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>;
|
package/dist/contexts/index.d.ts
CHANGED
|
@@ -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 "./
|
|
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;
|
package/dist/core/Rebase.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { RebaseProps
|
|
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
|
+
};
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
export * from "./Rebase";
|
|
2
|
-
export * from "./
|
|
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 {
|
|
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
|
|
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
|
-
*
|
|
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>({
|
|
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
|
-
|
|
29
|
+
data: RebaseData;
|
|
32
30
|
context: RebaseContext<USER>;
|
|
33
31
|
}): Promise<boolean>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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
|
|
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,
|
|
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
|
-
|
|
32
|
+
data: RebaseData;
|
|
36
33
|
context: RebaseContext;
|
|
37
34
|
}): Promise<Entity<M>>;
|