@rebasepro/plugin-data-enhancement 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -78
- package/dist/{plugin-data-enhancement/src/components → components}/DataEnhancementControllerProvider.d.ts +3 -3
- package/dist/components/FormEnhanceAction.d.ts +3 -0
- package/dist/index.es.js +703 -716
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +771 -749
- package/dist/index.umd.js.map +1 -1
- package/package.json +26 -17
- package/src/components/DataEnhancementControllerProvider.tsx +2 -2
- package/src/components/FormEnhanceAction.tsx +0 -9
- package/src/tests/strings_counter.test.ts +31 -15
- package/src/tests/useDataEnhancementPlugin.test.tsx +51 -0
- package/src/tests/values.test.ts +8 -4
- package/dist/admin/src/collection_editor/CollectionEditorDialogsContext.d.ts +0 -19
- package/dist/admin/src/collection_editor/ConfigControllerProvider.d.ts +0 -36
- package/dist/admin/src/collection_editor/_cms_internals.d.ts +0 -29
- package/dist/admin/src/collection_editor/api/generateCollectionApi.d.ts +0 -77
- package/dist/admin/src/collection_editor/index.d.ts +0 -15
- package/dist/admin/src/collection_editor/pgColumnToProperty.d.ts +0 -6
- package/dist/admin/src/collection_editor/types/collection_editor_controller.d.ts +0 -57
- package/dist/admin/src/collection_editor/types/collection_inference.d.ts +0 -10
- package/dist/admin/src/collection_editor/types/config_controller.d.ts +0 -98
- package/dist/admin/src/collection_editor/ui/EditorCollectionAction.d.ts +0 -2
- package/dist/admin/src/collection_editor/ui/MissingReferenceWidget.d.ts +0 -3
- package/dist/admin/src/collection_editor/ui/collection_editor/AICollectionGeneratorPopover.d.ts +0 -36
- package/dist/admin/src/collection_editor/ui/collection_editor/AIModifiedPathsContext.d.ts +0 -20
- package/dist/admin/src/collection_editor/ui/collection_editor/CollectionEditorDialog.d.ts +0 -71
- package/dist/admin/src/collection_editor/ui/collection_editor/CollectionEditorWelcomeView.d.ts +0 -19
- package/dist/admin/src/collection_editor/ui/collection_editor/CollectionJsonImportDialog.d.ts +0 -7
- package/dist/admin/src/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.d.ts +0 -16
- package/dist/admin/src/collection_editor/ui/collection_editor/CollectionRLSTab.d.ts +0 -12
- package/dist/admin/src/collection_editor/ui/collection_editor/CollectionStudioView.d.ts +0 -5
- package/dist/admin/src/collection_editor/ui/collection_editor/CollectionYupValidation.d.ts +0 -14
- package/dist/admin/src/collection_editor/ui/collection_editor/CollectionsStudioView.d.ts +0 -5
- package/dist/admin/src/collection_editor/ui/collection_editor/DisplaySettingsForm.d.ts +0 -3
- package/dist/admin/src/collection_editor/ui/collection_editor/EnumForm.d.ts +0 -12
- package/dist/admin/src/collection_editor/ui/collection_editor/GeneralSettingsForm.d.ts +0 -7
- package/dist/admin/src/collection_editor/ui/collection_editor/GetCodeDialog.d.ts +0 -6
- package/dist/admin/src/collection_editor/ui/collection_editor/KanbanConfigSection.d.ts +0 -4
- package/dist/admin/src/collection_editor/ui/collection_editor/LayoutModeSwitch.d.ts +0 -5
- package/dist/admin/src/collection_editor/ui/collection_editor/PropertyEditView.d.ts +0 -47
- package/dist/admin/src/collection_editor/ui/collection_editor/PropertyFieldPreview.d.ts +0 -16
- package/dist/admin/src/collection_editor/ui/collection_editor/PropertyTree.d.ts +0 -31
- package/dist/admin/src/collection_editor/ui/collection_editor/SwitchControl.d.ts +0 -8
- package/dist/admin/src/collection_editor/ui/collection_editor/ViewModeSwitch.d.ts +0 -6
- package/dist/admin/src/collection_editor/ui/collection_editor/import/CollectionEditorImportDataPreview.d.ts +0 -7
- package/dist/admin/src/collection_editor/ui/collection_editor/import/CollectionEditorImportMapping.d.ts +0 -13
- package/dist/admin/src/collection_editor/ui/collection_editor/import/clean_import_data.d.ts +0 -7
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/BlockPropertyField.d.ts +0 -7
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/BooleanPropertyField.d.ts +0 -3
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/CommonPropertyFields.d.ts +0 -10
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/DateTimePropertyField.d.ts +0 -3
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/EnumPropertyField.d.ts +0 -9
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/KeyValuePropertyField.d.ts +0 -3
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/MapPropertyField.d.ts +0 -7
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/MarkdownPropertyField.d.ts +0 -4
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/NumberPropertyField.d.ts +0 -3
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/ReferencePropertyField.d.ts +0 -14
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/RelationPropertyField.d.ts +0 -9
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/RepeatPropertyField.d.ts +0 -9
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/StoragePropertyField.d.ts +0 -5
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/StringPropertyField.d.ts +0 -5
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/UrlPropertyField.d.ts +0 -4
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/VectorPropertyField.d.ts +0 -3
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.d.ts +0 -3
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/validation/ArrayPropertyValidation.d.ts +0 -5
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/validation/GeneralPropertyValidation.d.ts +0 -4
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/validation/NumberPropertyValidation.d.ts +0 -3
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/validation/StringPropertyValidation.d.ts +0 -11
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/validation/ValidationPanel.d.ts +0 -3
- package/dist/admin/src/collection_editor/ui/collection_editor/templates/blog_template.d.ts +0 -2
- package/dist/admin/src/collection_editor/ui/collection_editor/templates/pages_template.d.ts +0 -2
- package/dist/admin/src/collection_editor/ui/collection_editor/templates/products_template.d.ts +0 -2
- package/dist/admin/src/collection_editor/ui/collection_editor/templates/users_template.d.ts +0 -2
- package/dist/admin/src/collection_editor/ui/collection_editor/util.d.ts +0 -5
- package/dist/admin/src/collection_editor/ui/collection_editor/utils/strings.d.ts +0 -1
- package/dist/admin/src/collection_editor/ui/collection_editor/utils/supported_fields.d.ts +0 -3
- package/dist/admin/src/collection_editor/ui/collection_editor/utils/update_property_for_widget.d.ts +0 -2
- package/dist/admin/src/collection_editor/useCollectionEditorController.d.ts +0 -6
- package/dist/admin/src/collection_editor/useCollectionsConfigController.d.ts +0 -6
- package/dist/admin/src/collection_editor/useLocalCollectionsConfigController.d.ts +0 -6
- package/dist/admin/src/collection_editor/validateCollectionJson.d.ts +0 -22
- package/dist/admin/src/components/AdminModeSyncer.d.ts +0 -17
- package/dist/admin/src/components/ArrayContainer.d.ts +0 -58
- package/dist/admin/src/components/ClearFilterSortButton.d.ts +0 -5
- package/dist/admin/src/components/CollectionEditorDialogs.d.ts +0 -15
- package/dist/admin/src/components/CollectionPanel.d.ts +0 -83
- package/dist/admin/src/components/DefaultAppBar.d.ts +0 -46
- package/dist/admin/src/components/DefaultDrawer.d.ts +0 -77
- package/dist/admin/src/components/DeleteEntityDialog.d.ts +0 -13
- package/dist/admin/src/components/DrawerNavigationGroup.d.ts +0 -49
- package/dist/admin/src/components/DrawerNavigationItem.d.ts +0 -10
- package/dist/admin/src/components/EntityCollectionTable/EntityCollectionRowActions.d.ts +0 -39
- package/dist/admin/src/components/EntityCollectionTable/EntityCollectionTable.d.ts +0 -27
- package/dist/admin/src/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +0 -129
- package/dist/admin/src/components/EntityCollectionTable/PropertyTableCell.d.ts +0 -26
- package/dist/admin/src/components/EntityCollectionTable/column_utils.d.ts +0 -16
- package/dist/admin/src/components/EntityCollectionTable/fields/TableMultipleRelationField.d.ts +0 -21
- package/dist/admin/src/components/EntityCollectionTable/fields/TableReferenceField.d.ts +0 -22
- package/dist/admin/src/components/EntityCollectionTable/fields/TableRelationField.d.ts +0 -22
- package/dist/admin/src/components/EntityCollectionTable/fields/TableRelationSelectorField.d.ts +0 -20
- package/dist/admin/src/components/EntityCollectionTable/fields/TableStorageUpload.d.ts +0 -35
- package/dist/admin/src/components/EntityCollectionTable/fields/VirtualTableDateField.d.ts +0 -12
- package/dist/admin/src/components/EntityCollectionTable/fields/VirtualTableInput.d.ts +0 -9
- package/dist/admin/src/components/EntityCollectionTable/fields/VirtualTableNumberInput.d.ts +0 -8
- package/dist/admin/src/components/EntityCollectionTable/fields/VirtualTableSelect.d.ts +0 -15
- package/dist/admin/src/components/EntityCollectionTable/fields/VirtualTableSwitch.d.ts +0 -7
- package/dist/admin/src/components/EntityCollectionTable/fields/VirtualTableUserSelect.d.ts +0 -12
- package/dist/admin/src/components/EntityCollectionTable/index.d.ts +0 -6
- package/dist/admin/src/components/EntityCollectionTable/internal/CollectionTableToolbar.d.ts +0 -25
- package/dist/admin/src/components/EntityCollectionTable/internal/EntityTableCell.d.ts +0 -32
- package/dist/admin/src/components/EntityCollectionTable/internal/EntityTableCellActions.d.ts +0 -9
- package/dist/admin/src/components/EntityCollectionTable/internal/common.d.ts +0 -5
- package/dist/admin/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.d.ts +0 -27
- package/dist/admin/src/components/EntityCollectionTable/internal/popup_field/useDraggable.d.ts +0 -13
- package/dist/admin/src/components/EntityCollectionTable/internal/popup_field/useWindowSize.d.ts +0 -6
- package/dist/admin/src/components/EntityCollectionTable/table_bindings.d.ts +0 -29
- package/dist/admin/src/components/EntityCollectionView/Board.d.ts +0 -2
- package/dist/admin/src/components/EntityCollectionView/BoardColumn.d.ts +0 -42
- package/dist/admin/src/components/EntityCollectionView/BoardColumnTitle.d.ts +0 -9
- package/dist/admin/src/components/EntityCollectionView/BoardSortableList.d.ts +0 -14
- package/dist/admin/src/components/EntityCollectionView/EntityBoardCard.d.ts +0 -31
- package/dist/admin/src/components/EntityCollectionView/EntityCard.d.ts +0 -20
- package/dist/admin/src/components/EntityCollectionView/EntityCollectionBoardView.d.ts +0 -22
- package/dist/admin/src/components/EntityCollectionView/EntityCollectionCardView.d.ts +0 -32
- package/dist/admin/src/components/EntityCollectionView/EntityCollectionListView.d.ts +0 -50
- package/dist/admin/src/components/EntityCollectionView/EntityCollectionView.d.ts +0 -65
- package/dist/admin/src/components/EntityCollectionView/EntityCollectionViewActions.d.ts +0 -20
- package/dist/admin/src/components/EntityCollectionView/EntityCollectionViewStartActions.d.ts +0 -20
- package/dist/admin/src/components/EntityCollectionView/FilterPresetsButton.d.ts +0 -21
- package/dist/admin/src/components/EntityCollectionView/FiltersDialog.d.ts +0 -15
- package/dist/admin/src/components/EntityCollectionView/SplitListView.d.ts +0 -58
- package/dist/admin/src/components/EntityCollectionView/ViewModeToggle.d.ts +0 -44
- package/dist/admin/src/components/EntityCollectionView/board_types.d.ts +0 -105
- package/dist/admin/src/components/EntityCollectionView/hooks/useCollectionInlineEditor.d.ts +0 -12
- package/dist/admin/src/components/EntityCollectionView/hooks/useKanbanDragAndDrop.d.ts +0 -20
- package/dist/admin/src/components/EntityCollectionView/useBoardDataController.d.ts +0 -61
- package/dist/admin/src/components/EntityCollectionView/useEntityPreviewSlots.d.ts +0 -101
- package/dist/admin/src/components/EntityCollectionView/useSelectionController.d.ts +0 -2
- package/dist/admin/src/components/EntityCollectionView/utils.d.ts +0 -3
- package/dist/admin/src/components/EntityDetailView.d.ts +0 -28
- package/dist/admin/src/components/EntityEditView.d.ts +0 -57
- package/dist/admin/src/components/EntityEditViewFormActions.d.ts +0 -2
- package/dist/admin/src/components/EntityJsonPreview.d.ts +0 -3
- package/dist/admin/src/components/EntityPreview.d.ts +0 -56
- package/dist/admin/src/components/EntitySidePanel.d.ts +0 -10
- package/dist/admin/src/components/EntityView.d.ts +0 -12
- package/dist/admin/src/components/FieldCaption.d.ts +0 -5
- package/dist/admin/src/components/HomePage/ContentHomePage.d.ts +0 -11
- package/dist/admin/src/components/HomePage/FavouritesView.d.ts +0 -3
- package/dist/admin/src/components/HomePage/HomePageDnD.d.ts +0 -77
- package/dist/admin/src/components/HomePage/NavigationCard.d.ts +0 -11
- package/dist/admin/src/components/HomePage/NavigationCardBinding.d.ts +0 -18
- package/dist/admin/src/components/HomePage/NavigationGroup.d.ts +0 -11
- package/dist/admin/src/components/HomePage/RenameGroupDialog.d.ts +0 -9
- package/dist/admin/src/components/HomePage/SmallNavigationCard.d.ts +0 -6
- package/dist/admin/src/components/PropertyCollectionView.d.ts +0 -24
- package/dist/admin/src/components/PropertyConfigBadge.d.ts +0 -6
- package/dist/admin/src/components/PropertyIdCopyTooltip.d.ts +0 -8
- package/dist/admin/src/components/RebaseAuthGate.d.ts +0 -21
- package/dist/admin/src/components/RebaseCMS.d.ts +0 -10
- package/dist/admin/src/components/RebaseLayout.d.ts +0 -32
- package/dist/admin/src/components/RebaseNavigation.d.ts +0 -24
- package/dist/admin/src/components/RebaseRouteDefs.d.ts +0 -30
- package/dist/admin/src/components/RebaseShell.d.ts +0 -25
- package/dist/admin/src/components/ReferenceTable/EntitySelectionTable.d.ts +0 -59
- package/dist/admin/src/components/ReferenceWidget.d.ts +0 -30
- package/dist/admin/src/components/RelationSelector.d.ts +0 -32
- package/dist/admin/src/components/SearchIconsView.d.ts +0 -5
- package/dist/admin/src/components/SelectableTable/SelectableTable.d.ts +0 -95
- package/dist/admin/src/components/SelectableTable/SelectableTableContext.d.ts +0 -4
- package/dist/admin/src/components/SelectableTable/SelectionStore.d.ts +0 -29
- package/dist/admin/src/components/SelectableTable/filters/BooleanFilterField.d.ts +0 -9
- package/dist/admin/src/components/SelectableTable/filters/DateTimeFilterField.d.ts +0 -12
- package/dist/admin/src/components/SelectableTable/filters/ReferenceFilterField.d.ts +0 -15
- package/dist/admin/src/components/SelectableTable/filters/RelationFilterField.d.ts +0 -12
- package/dist/admin/src/components/SelectableTable/filters/StringNumberFilterField.d.ts +0 -13
- package/dist/admin/src/components/SideDialogs.d.ts +0 -25
- package/dist/admin/src/components/SideEntityProvider.d.ts +0 -32
- package/dist/admin/src/components/UserSelector.d.ts +0 -18
- package/dist/admin/src/components/admin/CreationResultDialog.d.ts +0 -5
- package/dist/admin/src/components/app/AppBar.d.ts +0 -12
- package/dist/admin/src/components/app/Drawer.d.ts +0 -26
- package/dist/admin/src/components/app/Scaffold.d.ts +0 -34
- package/dist/admin/src/components/app/useApp.d.ts +0 -17
- package/dist/admin/src/components/common/default_entity_actions.d.ts +0 -10
- package/dist/admin/src/components/common/index.d.ts +0 -1
- package/dist/admin/src/components/field_configs.d.ts +0 -7
- package/dist/admin/src/components/history/EntityHistoryEntry.d.ts +0 -17
- package/dist/admin/src/components/history/EntityHistoryView.d.ts +0 -6
- package/dist/admin/src/components/history/LastEditedByFormAction.d.ts +0 -6
- package/dist/admin/src/components/history/LastEditedByIndicator.d.ts +0 -10
- package/dist/admin/src/components/history/UserChip.d.ts +0 -4
- package/dist/admin/src/components/history/index.d.ts +0 -5
- package/dist/admin/src/components/index.d.ts +0 -40
- package/dist/admin/src/contexts/BreacrumbsContext.d.ts +0 -8
- package/dist/admin/src/contexts/SideDialogsControllerContext.d.ts +0 -3
- package/dist/admin/src/data_export/export/BasicExportAction.d.ts +0 -7
- package/dist/admin/src/data_export/export/ExportCollectionAction.d.ts +0 -11
- package/dist/admin/src/data_export/export/export.d.ts +0 -22
- package/dist/admin/src/data_export/export/index.d.ts +0 -3
- package/dist/admin/src/data_export/index.d.ts +0 -1
- package/dist/admin/src/data_import/components/DataNewPropertiesMapping.d.ts +0 -13
- package/dist/admin/src/data_import/components/ImportFileUpload.d.ts +0 -3
- package/dist/admin/src/data_import/components/ImportNewPropertyFieldPreview.d.ts +0 -9
- package/dist/admin/src/data_import/components/ImportSaveInProgress.d.ts +0 -8
- package/dist/admin/src/data_import/components/index.d.ts +0 -4
- package/dist/admin/src/data_import/hooks/index.d.ts +0 -1
- package/dist/admin/src/data_import/hooks/useImportConfig.d.ts +0 -2
- package/dist/admin/src/data_import/import/ImportCollectionAction.d.ts +0 -15
- package/dist/admin/src/data_import/import/index.d.ts +0 -1
- package/dist/admin/src/data_import/index.d.ts +0 -5
- package/dist/admin/src/data_import/types/column_mapping.d.ts +0 -20
- package/dist/admin/src/data_import/types/index.d.ts +0 -1
- package/dist/admin/src/data_import/utils/data.d.ts +0 -4
- package/dist/admin/src/data_import/utils/file_headers.d.ts +0 -6
- package/dist/admin/src/data_import/utils/file_to_json.d.ts +0 -6
- package/dist/admin/src/data_import/utils/get_import_inference_type.d.ts +0 -2
- package/dist/admin/src/data_import/utils/index.d.ts +0 -3
- package/dist/admin/src/data_import/utils/transforms.d.ts +0 -11
- package/dist/admin/src/editor/components/SlashCommandMenu.d.ts +0 -6
- package/dist/admin/src/editor/components/editor-bubble-item.d.ts +0 -8
- package/dist/admin/src/editor/components/editor-bubble.d.ts +0 -12
- package/dist/admin/src/editor/components/image-bubble.d.ts +0 -9
- package/dist/admin/src/editor/components/index.d.ts +0 -16
- package/dist/admin/src/editor/components/table-bubble.d.ts +0 -9
- package/dist/admin/src/editor/editor.d.ts +0 -30
- package/dist/admin/src/editor/extensions/HighlightDecorationExtension.d.ts +0 -24
- package/dist/admin/src/editor/extensions/Image.d.ts +0 -6
- package/dist/admin/src/editor/extensions/TextLoadingDecorationExtension.d.ts +0 -16
- package/dist/admin/src/editor/extensions/clipboard.d.ts +0 -7
- package/dist/admin/src/editor/extensions/drag-and-drop.d.ts +0 -9
- package/dist/admin/src/editor/hooks/useProseMirror.d.ts +0 -13
- package/dist/admin/src/editor/hooks/useProseMirrorContext.d.ts +0 -9
- package/dist/admin/src/editor/index.d.ts +0 -2
- package/dist/admin/src/editor/markdown.d.ts +0 -5
- package/dist/admin/src/editor/nodeViews/ImageComponent.d.ts +0 -3
- package/dist/admin/src/editor/nodeViews/ReactNodeView.d.ts +0 -32
- package/dist/admin/src/editor/nodeViews/TaskItemComponent.d.ts +0 -3
- package/dist/admin/src/editor/nodeViews/index.d.ts +0 -6
- package/dist/admin/src/editor/plugins/index.d.ts +0 -2
- package/dist/admin/src/editor/plugins/inputrules.d.ts +0 -6
- package/dist/admin/src/editor/plugins/placeholderPlugin.d.ts +0 -3
- package/dist/admin/src/editor/plugins/slashCommandPlugin.d.ts +0 -12
- package/dist/admin/src/editor/schema.d.ts +0 -2
- package/dist/admin/src/editor/selectors/link-selector.d.ts +0 -8
- package/dist/admin/src/editor/selectors/node-selector.d.ts +0 -15
- package/dist/admin/src/editor/selectors/text-buttons.d.ts +0 -1
- package/dist/admin/src/editor/types.d.ts +0 -5
- package/dist/admin/src/editor/utils/prosemirror-utils.d.ts +0 -7
- package/dist/admin/src/editor/utils/remove_classes.d.ts +0 -1
- package/dist/admin/src/form/EntityForm.d.ts +0 -10
- package/dist/admin/src/form/EntityFormActions.d.ts +0 -2
- package/dist/admin/src/form/PropertyFieldBinding.d.ts +0 -30
- package/dist/admin/src/form/components/ErrorFocus.d.ts +0 -4
- package/dist/admin/src/form/components/FieldHelperText.d.ts +0 -12
- package/dist/admin/src/form/components/FormEntry.d.ts +0 -6
- package/dist/admin/src/form/components/FormLayout.d.ts +0 -5
- package/dist/admin/src/form/components/LabelWithIcon.d.ts +0 -14
- package/dist/admin/src/form/components/LabelWithIconAndTooltip.d.ts +0 -15
- package/dist/admin/src/form/components/LocalChangesMenu.d.ts +0 -11
- package/dist/admin/src/form/components/StorageItemPreview.d.ts +0 -14
- package/dist/admin/src/form/components/StorageUploadProgress.d.ts +0 -10
- package/dist/admin/src/form/components/index.d.ts +0 -5
- package/dist/admin/src/form/field_bindings/ArrayCustomShapedFieldBinding.d.ts +0 -10
- package/dist/admin/src/form/field_bindings/ArrayOfReferencesFieldBinding.d.ts +0 -13
- package/dist/admin/src/form/field_bindings/BlockFieldBinding.d.ts +0 -11
- package/dist/admin/src/form/field_bindings/DateTimeFieldBinding.d.ts +0 -12
- package/dist/admin/src/form/field_bindings/KeyValueFieldBinding.d.ts +0 -8
- package/dist/admin/src/form/field_bindings/MapFieldBinding.d.ts +0 -10
- package/dist/admin/src/form/field_bindings/MarkdownEditorFieldBinding.d.ts +0 -12
- package/dist/admin/src/form/field_bindings/MultiSelectFieldBinding.d.ts +0 -10
- package/dist/admin/src/form/field_bindings/MultipleRelationFieldBinding.d.ts +0 -10
- package/dist/admin/src/form/field_bindings/ReadOnlyFieldBinding.d.ts +0 -11
- package/dist/admin/src/form/field_bindings/ReferenceAsStringFieldBinding.d.ts +0 -10
- package/dist/admin/src/form/field_bindings/ReferenceFieldBinding.d.ts +0 -10
- package/dist/admin/src/form/field_bindings/RelationFieldBinding.d.ts +0 -3
- package/dist/admin/src/form/field_bindings/RepeatFieldBinding.d.ts +0 -11
- package/dist/admin/src/form/field_bindings/SelectFieldBinding.d.ts +0 -11
- package/dist/admin/src/form/field_bindings/StorageUploadFieldBinding.d.ts +0 -21
- package/dist/admin/src/form/field_bindings/SwitchFieldBinding.d.ts +0 -10
- package/dist/admin/src/form/field_bindings/TextFieldBinding.d.ts +0 -9
- package/dist/admin/src/form/field_bindings/UserSelectFieldBinding.d.ts +0 -14
- package/dist/admin/src/form/field_bindings/VectorFieldBinding.d.ts +0 -11
- package/dist/admin/src/form/index.d.ts +0 -21
- package/dist/admin/src/form/useClearRestoreValue.d.ts +0 -13
- package/dist/admin/src/form/validation.d.ts +0 -21
- package/dist/admin/src/hooks/index.d.ts +0 -15
- package/dist/admin/src/hooks/navigation/contexts/CollectionRegistryContext.d.ts +0 -5
- package/dist/admin/src/hooks/navigation/contexts/NavigationStateContext.d.ts +0 -4
- package/dist/admin/src/hooks/navigation/contexts/UrlContext.d.ts +0 -4
- package/dist/admin/src/hooks/navigation/contexts/index.d.ts +0 -3
- package/dist/admin/src/hooks/navigation/useBuildCollectionRegistryController.d.ts +0 -7
- package/dist/admin/src/hooks/navigation/useBuildNavigationStateController.d.ts +0 -34
- package/dist/admin/src/hooks/navigation/useBuildUrlController.d.ts +0 -7
- package/dist/admin/src/hooks/navigation/useNavigationResolution.d.ts +0 -7
- package/dist/admin/src/hooks/navigation/useResolvedCollections.d.ts +0 -34
- package/dist/admin/src/hooks/navigation/useResolvedViews.d.ts +0 -26
- package/dist/admin/src/hooks/navigation/useTopLevelNavigation.d.ts +0 -27
- package/dist/admin/src/hooks/navigation/utils.d.ts +0 -12
- package/dist/admin/src/hooks/useBreadcrumbsController.d.ts +0 -42
- package/dist/admin/src/hooks/useBuildSideDialogsController.d.ts +0 -2
- package/dist/admin/src/hooks/useBuildSideEntityController.d.ts +0 -6
- package/dist/admin/src/hooks/useCMSContext.d.ts +0 -27
- package/dist/admin/src/hooks/useEntityHistory.d.ts +0 -30
- package/dist/admin/src/hooks/useEntitySelectionDialog.d.ts +0 -18
- package/dist/admin/src/hooks/useResolvedNavigationFrom.d.ts +0 -73
- package/dist/admin/src/hooks/useSideDialogsController.d.ts +0 -19
- package/dist/admin/src/hooks/useSideEntityController.d.ts +0 -11
- package/dist/admin/src/index.d.ts +0 -13
- package/dist/admin/src/preview/PropertyPreview.d.ts +0 -7
- package/dist/admin/src/preview/components/ArrayEnumPreview.d.ts +0 -11
- package/dist/admin/src/preview/components/BooleanPreview.d.ts +0 -11
- package/dist/admin/src/preview/components/DatePreview.d.ts +0 -17
- package/dist/admin/src/preview/components/EmptyValue.d.ts +0 -6
- package/dist/admin/src/preview/components/EnumValuesChip.d.ts +0 -13
- package/dist/admin/src/preview/components/ImagePreview.d.ts +0 -16
- package/dist/admin/src/preview/components/ReferencePreview.d.ts +0 -17
- package/dist/admin/src/preview/components/RelationPreview.d.ts +0 -17
- package/dist/admin/src/preview/components/StorageThumbnail.d.ts +0 -15
- package/dist/admin/src/preview/components/UrlComponentPreview.d.ts +0 -15
- package/dist/admin/src/preview/components/UserPreview.d.ts +0 -9
- package/dist/admin/src/preview/index.d.ts +0 -23
- package/dist/admin/src/preview/property_previews/ArrayOfMapsPreview.d.ts +0 -6
- package/dist/admin/src/preview/property_previews/ArrayOfReferencesPreview.d.ts +0 -6
- package/dist/admin/src/preview/property_previews/ArrayOfRelationsPreview.d.ts +0 -6
- package/dist/admin/src/preview/property_previews/ArrayOfStorageComponentsPreview.d.ts +0 -6
- package/dist/admin/src/preview/property_previews/ArrayOfStringsPreview.d.ts +0 -6
- package/dist/admin/src/preview/property_previews/ArrayOneOfPreview.d.ts +0 -6
- package/dist/admin/src/preview/property_previews/ArrayPropertyEnumPreview.d.ts +0 -6
- package/dist/admin/src/preview/property_previews/ArrayPropertyPreview.d.ts +0 -6
- package/dist/admin/src/preview/property_previews/MapPropertyPreview.d.ts +0 -9
- package/dist/admin/src/preview/property_previews/NumberPropertyPreview.d.ts +0 -7
- package/dist/admin/src/preview/property_previews/SkeletonPropertyComponent.d.ts +0 -14
- package/dist/admin/src/preview/property_previews/StringPropertyPreview.d.ts +0 -7
- package/dist/admin/src/preview/util.d.ts +0 -7
- package/dist/admin/src/routes/CustomViewRoute.d.ts +0 -4
- package/dist/admin/src/routes/RebaseRoute.d.ts +0 -1
- package/dist/admin/src/routes/index.d.ts +0 -2
- package/dist/admin/src/types/components/EntityFormActionsProps.d.ts +0 -19
- package/dist/admin/src/types/components/EntityFormProps.d.ts +0 -49
- package/dist/admin/src/types/components/PropertyPreviewProps.d.ts +0 -47
- package/dist/admin/src/types/components/formex.d.ts +0 -40
- package/dist/admin/src/types/components/index.d.ts +0 -3
- package/dist/admin/src/types/fields.d.ts +0 -221
- package/dist/admin/src/types/index.d.ts +0 -2
- package/dist/admin/src/util/entity_actions.d.ts +0 -2
- package/dist/admin/src/util/entity_view_constants.d.ts +0 -6
- package/dist/admin/src/util/index.d.ts +0 -5
- package/dist/admin/src/util/navigation_utils.d.ts +0 -26
- package/dist/admin/src/util/previews.d.ts +0 -4
- package/dist/admin/src/util/property_utils.d.ts +0 -25
- package/dist/admin/src/util/resolutions.d.ts +0 -8
- 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 -6
- 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/plugin-data-enhancement/src/components/FormEnhanceAction.d.ts +0 -10
- package/dist/plugin-data-enhancement/src/locales/de.d.ts +0 -21
- package/dist/plugin-data-enhancement/src/locales/en.d.ts +0 -21
- package/dist/plugin-data-enhancement/src/locales/es.d.ts +0 -21
- package/dist/plugin-data-enhancement/src/locales/fr.d.ts +0 -21
- package/dist/plugin-data-enhancement/src/locales/hi.d.ts +0 -21
- package/dist/plugin-data-enhancement/src/locales/it.d.ts +0 -21
- package/dist/plugin-data-enhancement/src/locales/pt.d.ts +0 -21
- 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 -536
- 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 -941
- 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 -1181
- 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/src/locales/de.ts +0 -21
- package/src/locales/en.ts +0 -21
- package/src/locales/es.ts +0 -21
- package/src/locales/fr.ts +0 -21
- package/src/locales/hi.ts +0 -21
- package/src/locales/it.ts +0 -21
- package/src/locales/pt.ts +0 -21
- /package/dist/{plugin-data-enhancement/src/api.d.ts → api.d.ts} +0 -0
- /package/dist/{plugin-data-enhancement/src/editor → editor}/useEditorAIController.d.ts +0 -0
- /package/dist/{plugin-data-enhancement/src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{plugin-data-enhancement/src/types → types}/data_enhancement_controller.d.ts +0 -0
- /package/dist/{plugin-data-enhancement/src/useDataEnhancementPlugin.d.ts → useDataEnhancementPlugin.d.ts} +0 -0
- /package/dist/{plugin-data-enhancement/src/utils → utils}/diffStrings.d.ts +0 -0
- /package/dist/{plugin-data-enhancement/src/utils → utils}/properties.d.ts +0 -0
- /package/dist/{plugin-data-enhancement/src/utils → utils}/strings_counter.d.ts +0 -0
- /package/dist/{plugin-data-enhancement/src/utils → utils}/suggestions.d.ts +0 -0
- /package/dist/{plugin-data-enhancement/src/utils → utils}/values.d.ts +0 -0
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { ArrayProperty, StringProperty } from "@rebasepro/types";
|
|
2
|
-
import { EntityValues, StorageConfig, StorageSource } from "@rebasepro/types";
|
|
3
|
-
export type StorageFieldSize = "smallest" | "small" | "medium" | "large" | number;
|
|
4
|
-
/**
|
|
5
|
-
* Internal representation of an item in the storage
|
|
6
|
-
* It can have two states, having a storagePathOrDownloadUrl set,
|
|
7
|
-
* which means the file has been uploaded, and it is rendered as a preview
|
|
8
|
-
* Or have a pending file being uploaded.
|
|
9
|
-
*/
|
|
10
|
-
export interface StorageFieldItem {
|
|
11
|
-
id: number;
|
|
12
|
-
storagePathOrDownloadUrl?: string;
|
|
13
|
-
file?: File;
|
|
14
|
-
fileName?: string;
|
|
15
|
-
metadata?: Record<string, unknown>;
|
|
16
|
-
size: StorageFieldSize;
|
|
17
|
-
}
|
|
18
|
-
export declare function useStorageUploadController<M extends Record<string, unknown>>({ entityId, entityValues, path, value, property, propertyKey, storageSource, disabled, onChange }: {
|
|
19
|
-
entityId?: string | number;
|
|
20
|
-
entityValues: EntityValues<M>;
|
|
21
|
-
value: string | string[] | null;
|
|
22
|
-
path?: string;
|
|
23
|
-
propertyKey: string;
|
|
24
|
-
property: StringProperty | ArrayProperty | StringProperty | ArrayProperty;
|
|
25
|
-
storageSource: StorageSource;
|
|
26
|
-
disabled: boolean;
|
|
27
|
-
onChange: (value: string | string[] | null) => void;
|
|
28
|
-
}): {
|
|
29
|
-
internalValue: StorageFieldItem[];
|
|
30
|
-
setInternalValue: import("react").Dispatch<import("react").SetStateAction<StorageFieldItem[]>>;
|
|
31
|
-
storage: StorageConfig;
|
|
32
|
-
fileNameBuilder: (file: File) => Promise<string>;
|
|
33
|
-
storagePathBuilder: (file: File) => string;
|
|
34
|
-
onFileUploadComplete: (uploadedPath: string, entry: StorageFieldItem, metadata?: Record<string, unknown>, uploadedUrl?: string) => Promise<void>;
|
|
35
|
-
onFileUploadError: (entry: StorageFieldItem) => void;
|
|
36
|
-
onFilesAdded: (acceptedFiles: File[]) => Promise<void>;
|
|
37
|
-
multipleFilesSupported: boolean;
|
|
38
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { FormexController } from "./types";
|
|
3
|
-
export interface FieldInputProps<Value> {
|
|
4
|
-
/** Value of the field */
|
|
5
|
-
value: Value;
|
|
6
|
-
/** Name of the field */
|
|
7
|
-
name: string;
|
|
8
|
-
/** Multiple select? */
|
|
9
|
-
multiple?: boolean;
|
|
10
|
-
/** Is the field checked? */
|
|
11
|
-
checked?: boolean;
|
|
12
|
-
/** Change event handler */
|
|
13
|
-
onChange: (event: React.SyntheticEvent) => void;
|
|
14
|
-
/** Blur event handler */
|
|
15
|
-
onBlur: (event: React.FocusEvent) => void;
|
|
16
|
-
}
|
|
17
|
-
export interface FormexFieldProps<Value = any, FormValues extends object = object> {
|
|
18
|
-
field: FieldInputProps<Value>;
|
|
19
|
-
form: FormexController<FormValues>;
|
|
20
|
-
}
|
|
21
|
-
export interface FieldConfig<Value, C extends React.ElementType | undefined = undefined> {
|
|
22
|
-
/**
|
|
23
|
-
* Component to render. Can either be a string e.g. 'select', 'input', or 'textarea', or a component.
|
|
24
|
-
*/
|
|
25
|
-
as?: C | string | React.ForwardRefExoticComponent<Record<string, unknown>>;
|
|
26
|
-
/**
|
|
27
|
-
* Children render function <Field name>{props => ...}</Field>)
|
|
28
|
-
*/
|
|
29
|
-
children?: ((props: FormexFieldProps<Value>) => React.ReactNode) | React.ReactNode;
|
|
30
|
-
/**
|
|
31
|
-
* Validate a single field value independently
|
|
32
|
-
*/
|
|
33
|
-
/**
|
|
34
|
-
* Used for 'select' and related input types.
|
|
35
|
-
*/
|
|
36
|
-
multiple?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Field name
|
|
39
|
-
*/
|
|
40
|
-
name: string;
|
|
41
|
-
/** HTML input type */
|
|
42
|
-
type?: string;
|
|
43
|
-
/** Field value */
|
|
44
|
-
value?: unknown;
|
|
45
|
-
/** Inner ref */
|
|
46
|
-
innerRef?: (instance: unknown) => void;
|
|
47
|
-
}
|
|
48
|
-
export type FieldProps<T, C extends React.ElementType | undefined> = {
|
|
49
|
-
as?: C;
|
|
50
|
-
} & (C extends React.ElementType ? (React.ComponentProps<C> & FieldConfig<T, C>) : FieldConfig<T, C>);
|
|
51
|
-
export declare function Field<T, C extends React.ElementType | undefined = undefined>({ validate, name, children, as: is, // `as` is reserved in typescript lol
|
|
52
|
-
className, ...props }: FieldProps<T, C>): any;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FormexController } from "./types";
|
|
3
|
-
export declare const useFormex: <T = any>() => FormexController<T>;
|
|
4
|
-
export declare const Formex: <T = any>({ value, children }: {
|
|
5
|
-
value: FormexController<T>;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React, { FormEvent } from "react";
|
|
2
|
-
export type FormexController<T = any> = {
|
|
3
|
-
values: T;
|
|
4
|
-
initialValues: T;
|
|
5
|
-
setValues: (values: T) => void;
|
|
6
|
-
setFieldValue: (key: string, value: unknown, shouldValidate?: boolean) => void;
|
|
7
|
-
touched: Record<string, boolean>;
|
|
8
|
-
setFieldTouched: (key: string, touched: boolean, shouldValidate?: boolean) => void;
|
|
9
|
-
setTouched: (touched: Record<string, boolean>) => void;
|
|
10
|
-
dirty: boolean;
|
|
11
|
-
setDirty: (dirty: boolean) => void;
|
|
12
|
-
setSubmitCount: (submitCount: number) => void;
|
|
13
|
-
errors: Record<string, string>;
|
|
14
|
-
setFieldError: (key: string, error?: string) => void;
|
|
15
|
-
handleChange: (event: React.SyntheticEvent) => void;
|
|
16
|
-
handleBlur: (event: React.FocusEvent) => void;
|
|
17
|
-
handleSubmit: (event?: FormEvent<HTMLFormElement>) => void;
|
|
18
|
-
validate: () => void;
|
|
19
|
-
resetForm: (props?: FormexResetProps<T>) => void;
|
|
20
|
-
submitCount: number;
|
|
21
|
-
isSubmitting: boolean;
|
|
22
|
-
setSubmitting: (isSubmitting: boolean) => void;
|
|
23
|
-
isValidating: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* The version of the form. This is incremented every time the form is reset
|
|
26
|
-
* or the form is submitted.
|
|
27
|
-
*/
|
|
28
|
-
version: number;
|
|
29
|
-
debugId?: string;
|
|
30
|
-
undo: () => void;
|
|
31
|
-
redo: () => void;
|
|
32
|
-
canUndo: boolean;
|
|
33
|
-
canRedo: boolean;
|
|
34
|
-
};
|
|
35
|
-
export type FormexResetProps<T = any> = {
|
|
36
|
-
values?: T;
|
|
37
|
-
submitCount?: number;
|
|
38
|
-
errors?: Record<string, string>;
|
|
39
|
-
touched?: Record<string, boolean>;
|
|
40
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FormexController } from "./types";
|
|
2
|
-
export declare function useCreateFormex<T = any>({ initialValues, initialErrors, initialDirty, initialTouched, validation, validateOnChange, validateOnInitialRender, onSubmit, onReset, onValuesChangeDeferred, debugId }: {
|
|
3
|
-
initialValues: T;
|
|
4
|
-
initialErrors?: Record<string, string>;
|
|
5
|
-
initialDirty?: boolean;
|
|
6
|
-
initialTouched?: Record<string, boolean>;
|
|
7
|
-
validateOnChange?: boolean;
|
|
8
|
-
validateOnInitialRender?: boolean;
|
|
9
|
-
validation?: (values: T) => Record<string, string> | Promise<Record<string, string>> | undefined | void;
|
|
10
|
-
onValuesChangeDeferred?: (values: T, controller: FormexController<T>) => void;
|
|
11
|
-
onSubmit?: (values: T, controller: FormexController<T>) => void | Promise<void>;
|
|
12
|
-
onReset?: (controller: FormexController<T>) => void | Promise<void>;
|
|
13
|
-
debugId?: string;
|
|
14
|
-
}): FormexController<T>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** @private is the value an empty array? */
|
|
2
|
-
export declare const isEmptyArray: (value?: unknown) => boolean;
|
|
3
|
-
/** @private is the given object a Function? */
|
|
4
|
-
export declare const isFunction: (obj: unknown) => obj is Function;
|
|
5
|
-
/** @private is the given object an Object? */
|
|
6
|
-
export declare const isObject: (obj: unknown) => obj is Record<string, unknown>;
|
|
7
|
-
/** @private is the given object an integer? */
|
|
8
|
-
export declare const isInteger: (obj: unknown) => boolean;
|
|
9
|
-
/** @private is the given object a NaN? */
|
|
10
|
-
export declare const isNaN: (obj: unknown) => boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Deeply get a value from an object via its path.
|
|
13
|
-
*/
|
|
14
|
-
export declare function getIn(obj: unknown, key: string | string[], def?: unknown, p?: number): unknown;
|
|
15
|
-
export declare function setIn(obj: unknown, path: string, value: unknown): unknown;
|
|
16
|
-
export declare function clone(value: unknown): unknown;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PluginFormActionProps } from "@rebasepro/types";
|
|
2
|
-
export declare function FormEnhanceAction({ entityId, path, status, collection, formContext, openEntityMode }: PluginFormActionProps): import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
-
export interface EnhanceDialogProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
selectReferences: () => void;
|
|
7
|
-
loading: boolean;
|
|
8
|
-
enhance: (instructions: string) => void;
|
|
9
|
-
samplePrompts?: string[];
|
|
10
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const dataEnhancementTranslationsDe: {
|
|
2
|
-
autofill: string;
|
|
3
|
-
autofill_current_content: string;
|
|
4
|
-
set_id_first: string;
|
|
5
|
-
provide_instructions: string;
|
|
6
|
-
fill_missing_fields: string;
|
|
7
|
-
translate_missing_content: string;
|
|
8
|
-
add_2_paragraphs_to: string;
|
|
9
|
-
use_openai_generate_content: string;
|
|
10
|
-
autofill_this_field: string;
|
|
11
|
-
autofill_property: string;
|
|
12
|
-
input_data_before_enhancing: string;
|
|
13
|
-
input_data_before_enhancing_property: string;
|
|
14
|
-
based_on_rest_of_entity: string;
|
|
15
|
-
this_field: string;
|
|
16
|
-
subscription_needed: string;
|
|
17
|
-
login_to_enhance: string;
|
|
18
|
-
no_fields_updated: string;
|
|
19
|
-
ask_ai_to_write: string;
|
|
20
|
-
instructions: string;
|
|
21
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const dataEnhancementTranslationsEn: {
|
|
2
|
-
autofill: string;
|
|
3
|
-
autofill_current_content: string;
|
|
4
|
-
set_id_first: string;
|
|
5
|
-
provide_instructions: string;
|
|
6
|
-
fill_missing_fields: string;
|
|
7
|
-
translate_missing_content: string;
|
|
8
|
-
add_2_paragraphs_to: string;
|
|
9
|
-
use_openai_generate_content: string;
|
|
10
|
-
autofill_this_field: string;
|
|
11
|
-
autofill_property: string;
|
|
12
|
-
input_data_before_enhancing: string;
|
|
13
|
-
input_data_before_enhancing_property: string;
|
|
14
|
-
based_on_rest_of_entity: string;
|
|
15
|
-
this_field: string;
|
|
16
|
-
subscription_needed: string;
|
|
17
|
-
login_to_enhance: string;
|
|
18
|
-
no_fields_updated: string;
|
|
19
|
-
ask_ai_to_write: string;
|
|
20
|
-
instructions: string;
|
|
21
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const dataEnhancementTranslationsEs: {
|
|
2
|
-
autofill: string;
|
|
3
|
-
autofill_current_content: string;
|
|
4
|
-
set_id_first: string;
|
|
5
|
-
provide_instructions: string;
|
|
6
|
-
fill_missing_fields: string;
|
|
7
|
-
translate_missing_content: string;
|
|
8
|
-
add_2_paragraphs_to: string;
|
|
9
|
-
use_openai_generate_content: string;
|
|
10
|
-
autofill_this_field: string;
|
|
11
|
-
autofill_property: string;
|
|
12
|
-
input_data_before_enhancing: string;
|
|
13
|
-
input_data_before_enhancing_property: string;
|
|
14
|
-
based_on_rest_of_entity: string;
|
|
15
|
-
this_field: string;
|
|
16
|
-
subscription_needed: string;
|
|
17
|
-
login_to_enhance: string;
|
|
18
|
-
no_fields_updated: string;
|
|
19
|
-
ask_ai_to_write: string;
|
|
20
|
-
instructions: string;
|
|
21
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const dataEnhancementTranslationsFr: {
|
|
2
|
-
autofill: string;
|
|
3
|
-
autofill_current_content: string;
|
|
4
|
-
set_id_first: string;
|
|
5
|
-
provide_instructions: string;
|
|
6
|
-
fill_missing_fields: string;
|
|
7
|
-
translate_missing_content: string;
|
|
8
|
-
add_2_paragraphs_to: string;
|
|
9
|
-
use_openai_generate_content: string;
|
|
10
|
-
autofill_this_field: string;
|
|
11
|
-
autofill_property: string;
|
|
12
|
-
input_data_before_enhancing: string;
|
|
13
|
-
input_data_before_enhancing_property: string;
|
|
14
|
-
based_on_rest_of_entity: string;
|
|
15
|
-
this_field: string;
|
|
16
|
-
subscription_needed: string;
|
|
17
|
-
login_to_enhance: string;
|
|
18
|
-
no_fields_updated: string;
|
|
19
|
-
ask_ai_to_write: string;
|
|
20
|
-
instructions: string;
|
|
21
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const dataEnhancementTranslationsHi: {
|
|
2
|
-
autofill: string;
|
|
3
|
-
autofill_current_content: string;
|
|
4
|
-
set_id_first: string;
|
|
5
|
-
provide_instructions: string;
|
|
6
|
-
fill_missing_fields: string;
|
|
7
|
-
translate_missing_content: string;
|
|
8
|
-
add_2_paragraphs_to: string;
|
|
9
|
-
use_openai_generate_content: string;
|
|
10
|
-
autofill_this_field: string;
|
|
11
|
-
autofill_property: string;
|
|
12
|
-
input_data_before_enhancing: string;
|
|
13
|
-
input_data_before_enhancing_property: string;
|
|
14
|
-
based_on_rest_of_entity: string;
|
|
15
|
-
this_field: string;
|
|
16
|
-
subscription_needed: string;
|
|
17
|
-
login_to_enhance: string;
|
|
18
|
-
no_fields_updated: string;
|
|
19
|
-
ask_ai_to_write: string;
|
|
20
|
-
instructions: string;
|
|
21
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const dataEnhancementTranslationsIt: {
|
|
2
|
-
autofill: string;
|
|
3
|
-
autofill_current_content: string;
|
|
4
|
-
set_id_first: string;
|
|
5
|
-
provide_instructions: string;
|
|
6
|
-
fill_missing_fields: string;
|
|
7
|
-
translate_missing_content: string;
|
|
8
|
-
add_2_paragraphs_to: string;
|
|
9
|
-
use_openai_generate_content: string;
|
|
10
|
-
autofill_this_field: string;
|
|
11
|
-
autofill_property: string;
|
|
12
|
-
input_data_before_enhancing: string;
|
|
13
|
-
input_data_before_enhancing_property: string;
|
|
14
|
-
based_on_rest_of_entity: string;
|
|
15
|
-
this_field: string;
|
|
16
|
-
subscription_needed: string;
|
|
17
|
-
login_to_enhance: string;
|
|
18
|
-
no_fields_updated: string;
|
|
19
|
-
ask_ai_to_write: string;
|
|
20
|
-
instructions: string;
|
|
21
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const dataEnhancementTranslationsPt: {
|
|
2
|
-
autofill: string;
|
|
3
|
-
autofill_current_content: string;
|
|
4
|
-
set_id_first: string;
|
|
5
|
-
provide_instructions: string;
|
|
6
|
-
fill_missing_fields: string;
|
|
7
|
-
translate_missing_content: string;
|
|
8
|
-
add_2_paragraphs_to: string;
|
|
9
|
-
use_openai_generate_content: string;
|
|
10
|
-
autofill_this_field: string;
|
|
11
|
-
autofill_property: string;
|
|
12
|
-
input_data_before_enhancing: string;
|
|
13
|
-
input_data_before_enhancing_property: string;
|
|
14
|
-
based_on_rest_of_entity: string;
|
|
15
|
-
this_field: string;
|
|
16
|
-
subscription_needed: string;
|
|
17
|
-
login_to_enhance: string;
|
|
18
|
-
no_fields_updated: string;
|
|
19
|
-
ask_ai_to_write: string;
|
|
20
|
-
instructions: string;
|
|
21
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type AnalyticsController = {
|
|
2
|
-
/**
|
|
3
|
-
* Callback used to get analytics events from the CMS
|
|
4
|
-
*/
|
|
5
|
-
onAnalyticsEvent?: (event: AnalyticsEvent, data?: object) => void;
|
|
6
|
-
};
|
|
7
|
-
export type AnalyticsEvent = "entity_click" | "entity_click_from_reference" | "reference_selection_clear" | "reference_selection_toggle" | "reference_selected_single" | "reference_selection_new_entity" | "edit_entity_clicked" | "entity_edited" | "new_entity_click" | "new_entity_saved" | "copy_entity_click" | "entity_copied" | "single_delete_dialog_open" | "multiple_delete_dialog_open" | "single_entity_deleted" | "multiple_entities_deleted" | "drawer_navigate_to_home" | "drawer_navigate_to_collection" | "drawer_navigate_to_view" | "home_navigate_to_collection" | "home_favorite_navigate_to_collection" | "home_navigate_to_view" | "home_navigate_to_admin_view" | "home_favorite_navigate_to_view" | "home_move_card" | "home_move_group" | "home_drop_new_group" | "collection_inline_editing" | "view_mode_changed" | "kanban_card_moved" | "kanban_column_reorder" | "kanban_property_changed" | "kanban_new_entity_in_column" | "kanban_backfill_order" | "card_view_entity_click" | "unmapped_event";
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import type { User } from "../users";
|
|
2
|
-
/**
|
|
3
|
-
* Capabilities advertised by an auth provider.
|
|
4
|
-
* UI components use this to show/hide features dynamically
|
|
5
|
-
* (e.g. password reset, registration, session management).
|
|
6
|
-
* @group Hooks and utilities
|
|
7
|
-
*/
|
|
8
|
-
export interface AuthCapabilities {
|
|
9
|
-
emailPasswordLogin?: boolean;
|
|
10
|
-
googleLogin?: boolean;
|
|
11
|
-
registration?: boolean;
|
|
12
|
-
passwordReset?: boolean;
|
|
13
|
-
sessionManagement?: boolean;
|
|
14
|
-
profileUpdate?: boolean;
|
|
15
|
-
emailVerification?: boolean;
|
|
16
|
-
/** List of enabled OAuth provider IDs (e.g. ["google", "github", "discord"]) */
|
|
17
|
-
enabledProviders?: string[];
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Controller for retrieving the logged user or performing auth related operations.
|
|
21
|
-
* Note that if you are implementing your AuthController, you probably will want
|
|
22
|
-
* to do it as the result of a hook.
|
|
23
|
-
* @group Hooks and utilities
|
|
24
|
-
*/
|
|
25
|
-
export type AuthController<USER extends User = User, ExtraData = unknown> = {
|
|
26
|
-
/**
|
|
27
|
-
* The user currently logged in
|
|
28
|
-
* The values can be: the user object, null if they skipped login
|
|
29
|
-
*/
|
|
30
|
-
user: USER | null;
|
|
31
|
-
/**
|
|
32
|
-
* Initial loading flag. It is used not to display the login screen
|
|
33
|
-
* when the app first loads, and it has not been checked whether the user
|
|
34
|
-
* is logged in or not.
|
|
35
|
-
*/
|
|
36
|
-
initialLoading?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Loading flag. It is used to display a loading screen when the user is
|
|
39
|
-
* logging in or out.
|
|
40
|
-
*/
|
|
41
|
-
authLoading: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Sign out
|
|
44
|
-
*/
|
|
45
|
-
signOut: () => Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
* Error initializing the authentication
|
|
48
|
-
*/
|
|
49
|
-
authError?: unknown;
|
|
50
|
-
/**
|
|
51
|
-
* Error dispatched by the auth provider
|
|
52
|
-
*/
|
|
53
|
-
authProviderError?: unknown;
|
|
54
|
-
/**
|
|
55
|
-
* You can use this method to retrieve the auth token for the current user.
|
|
56
|
-
*/
|
|
57
|
-
getAuthToken: () => Promise<string>;
|
|
58
|
-
/**
|
|
59
|
-
* Has the user skipped the login process
|
|
60
|
-
*/
|
|
61
|
-
loginSkipped: boolean;
|
|
62
|
-
extra: ExtraData;
|
|
63
|
-
setExtra: (extra: ExtraData) => void;
|
|
64
|
-
setUser?(user: USER | null): void;
|
|
65
|
-
setUserRoles?(roles: string[]): void;
|
|
66
|
-
/**
|
|
67
|
-
* Capabilities advertised by the auth provider.
|
|
68
|
-
* UI components use this to feature-detect what the backend supports.
|
|
69
|
-
*/
|
|
70
|
-
capabilities?: AuthCapabilities;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* Extended auth controller with common optional auth methods.
|
|
74
|
-
* Backend implementations (Rebase backend, Firebase, Supabase, etc.)
|
|
75
|
-
* extend this with their own backend-specific extras.
|
|
76
|
-
* @group Hooks and utilities
|
|
77
|
-
*/
|
|
78
|
-
export interface AuthControllerExtended<USER extends User = User, ExtraData = unknown> extends AuthController<USER, ExtraData> {
|
|
79
|
-
/** Login with email and password */
|
|
80
|
-
emailPasswordLogin?(email: string, password: string): Promise<void>;
|
|
81
|
-
/** Login with Google — accepts an ID token, access token, or authorization code payload */
|
|
82
|
-
googleLogin?: (payload: {
|
|
83
|
-
idToken: string;
|
|
84
|
-
} | {
|
|
85
|
-
accessToken: string;
|
|
86
|
-
} | {
|
|
87
|
-
code: string;
|
|
88
|
-
redirectUri: string;
|
|
89
|
-
}) => Promise<void>;
|
|
90
|
-
/** Generic OAuth login — works with any provider. Posts payload to /auth/{providerId}. */
|
|
91
|
-
oauthLogin?: (providerId: string, payload: Record<string, unknown>) => Promise<void>;
|
|
92
|
-
/** Register a new user */
|
|
93
|
-
register?(email: string, password: string, displayName?: string): Promise<void>;
|
|
94
|
-
/** Skip login (for anonymous access if enabled) */
|
|
95
|
-
skipLogin?(): void;
|
|
96
|
-
/** Request password reset email */
|
|
97
|
-
forgotPassword?(email: string): Promise<void>;
|
|
98
|
-
/** Reset password using a token */
|
|
99
|
-
resetPassword?(token: string, password: string): Promise<void>;
|
|
100
|
-
/** Change password for the authenticated user */
|
|
101
|
-
changePassword?(oldPassword: string, newPassword: string): Promise<void>;
|
|
102
|
-
/** Update user profile */
|
|
103
|
-
updateProfile?(displayName?: string, photoURL?: string): Promise<USER>;
|
|
104
|
-
}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import type { User } from "../users";
|
|
2
|
-
import type { RebaseData } from "./data";
|
|
3
|
-
import type { EmailService } from "./email";
|
|
4
|
-
/**
|
|
5
|
-
* Event type for authentication state changes
|
|
6
|
-
*/
|
|
7
|
-
export type AuthChangeEvent = "SIGNED_IN" | "SIGNED_OUT" | "TOKEN_REFRESHED" | "USER_UPDATED";
|
|
8
|
-
/**
|
|
9
|
-
* Standard session interface representing an authenticated state
|
|
10
|
-
*/
|
|
11
|
-
export interface RebaseSession {
|
|
12
|
-
accessToken: string;
|
|
13
|
-
refreshToken: string;
|
|
14
|
-
expiresAt: number;
|
|
15
|
-
user: User;
|
|
16
|
-
}
|
|
17
|
-
import type { StorageSource } from "./storage";
|
|
18
|
-
/**
|
|
19
|
-
* Unified Authentication Client Interface
|
|
20
|
-
* Pure functional SDK interface, decoupled from UI and React hooks
|
|
21
|
-
*/
|
|
22
|
-
export interface AuthClient {
|
|
23
|
-
/**
|
|
24
|
-
* Get the current user from the server or cache
|
|
25
|
-
*/
|
|
26
|
-
getUser(): Promise<User | null>;
|
|
27
|
-
/**
|
|
28
|
-
* Get the currently active session
|
|
29
|
-
*/
|
|
30
|
-
getSession(): RebaseSession | null;
|
|
31
|
-
/**
|
|
32
|
-
* Sign out the current user and clear local session
|
|
33
|
-
*/
|
|
34
|
-
signOut(): Promise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Subscribe to authentication state changes
|
|
37
|
-
*/
|
|
38
|
-
onAuthStateChange(callback: (event: AuthChangeEvent, session: RebaseSession | null) => void): () => void;
|
|
39
|
-
/**
|
|
40
|
-
* Manually refresh the session token
|
|
41
|
-
*/
|
|
42
|
-
refreshSession(): Promise<RebaseSession>;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* User record as returned by the Admin API.
|
|
46
|
-
* @group Admin
|
|
47
|
-
*/
|
|
48
|
-
export interface AdminUser {
|
|
49
|
-
uid: string;
|
|
50
|
-
email: string;
|
|
51
|
-
displayName: string | null;
|
|
52
|
-
photoURL: string | null;
|
|
53
|
-
provider: string;
|
|
54
|
-
roles: string[];
|
|
55
|
-
metadata?: Record<string, any>;
|
|
56
|
-
createdAt: string;
|
|
57
|
-
updatedAt: string;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Client-side Admin API interface.
|
|
61
|
-
* Provides user management operations.
|
|
62
|
-
* @group Admin
|
|
63
|
-
*/
|
|
64
|
-
export interface AdminAPI {
|
|
65
|
-
listUsers(): Promise<{
|
|
66
|
-
users: AdminUser[];
|
|
67
|
-
}>;
|
|
68
|
-
listUsersPaginated(options?: {
|
|
69
|
-
search?: string;
|
|
70
|
-
limit?: number;
|
|
71
|
-
offset?: number;
|
|
72
|
-
orderBy?: string;
|
|
73
|
-
orderDir?: "asc" | "desc";
|
|
74
|
-
}): Promise<{
|
|
75
|
-
users: AdminUser[];
|
|
76
|
-
total: number;
|
|
77
|
-
limit: number;
|
|
78
|
-
offset: number;
|
|
79
|
-
}>;
|
|
80
|
-
getUser(userId: string): Promise<{
|
|
81
|
-
user: AdminUser;
|
|
82
|
-
}>;
|
|
83
|
-
createUser(data: {
|
|
84
|
-
email: string;
|
|
85
|
-
displayName?: string;
|
|
86
|
-
password?: string;
|
|
87
|
-
roles?: string[];
|
|
88
|
-
metadata?: Record<string, any>;
|
|
89
|
-
}): Promise<{
|
|
90
|
-
user: AdminUser;
|
|
91
|
-
}>;
|
|
92
|
-
updateUser(userId: string, data: {
|
|
93
|
-
email?: string;
|
|
94
|
-
displayName?: string;
|
|
95
|
-
password?: string;
|
|
96
|
-
roles?: string[];
|
|
97
|
-
metadata?: Record<string, any>;
|
|
98
|
-
}): Promise<{
|
|
99
|
-
user: AdminUser;
|
|
100
|
-
}>;
|
|
101
|
-
deleteUser(userId: string): Promise<{
|
|
102
|
-
success: boolean;
|
|
103
|
-
}>;
|
|
104
|
-
bootstrap(): Promise<{
|
|
105
|
-
success: boolean;
|
|
106
|
-
message: string;
|
|
107
|
-
user: {
|
|
108
|
-
uid: string;
|
|
109
|
-
roles: string[];
|
|
110
|
-
};
|
|
111
|
-
}>;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Overarching abstraction that unites Data, Auth, Storage, and Email.
|
|
115
|
-
* Adapters for Supabase or Firebase simply need to implement this interface.
|
|
116
|
-
*/
|
|
117
|
-
export interface RebaseClient<DB = unknown> {
|
|
118
|
-
/** Unified Data access layer */
|
|
119
|
-
data: RebaseData;
|
|
120
|
-
/** Unified Authentication layer */
|
|
121
|
-
auth: AuthClient;
|
|
122
|
-
/** Unified Storage layer */
|
|
123
|
-
storage?: StorageSource;
|
|
124
|
-
/**
|
|
125
|
-
* Server-side email service.
|
|
126
|
-
*
|
|
127
|
-
* Available when SMTP (or a custom `sendEmail` function) is configured
|
|
128
|
-
* in the backend auth config. `undefined` when email is not configured.
|
|
129
|
-
*
|
|
130
|
-
* > **Note:** This is only available on the server-side `rebase` singleton.
|
|
131
|
-
* > The client-side SDK does not include an email service.
|
|
132
|
-
*/
|
|
133
|
-
email?: EmailService;
|
|
134
|
-
/** Admin API for user management */
|
|
135
|
-
admin?: AdminAPI;
|
|
136
|
-
/**
|
|
137
|
-
* The base HTTP URL of the backend server.
|
|
138
|
-
* Exposed by the SDK client (`@rebasepro/client`) and used to auto-derive
|
|
139
|
-
* the `ApiConfigProvider` URL.
|
|
140
|
-
*/
|
|
141
|
-
baseUrl?: string;
|
|
142
|
-
/**
|
|
143
|
-
* WebSocket client for realtime subscriptions and admin capabilities.
|
|
144
|
-
* Exposed by the SDK client (`@rebasepro/client`). The shape is intentionally
|
|
145
|
-
* left as `unknown` in the base interface — callers should narrow via feature
|
|
146
|
-
* detection (e.g. `typeof ws.executeSql === "function"`).
|
|
147
|
-
*/
|
|
148
|
-
ws?: unknown;
|
|
149
|
-
/**
|
|
150
|
-
* Execute raw SQL against the database.
|
|
151
|
-
*
|
|
152
|
-
* Only available server-side when the backend uses a SQL database
|
|
153
|
-
* (PostgreSQL, MySQL, etc.). `undefined` for document databases
|
|
154
|
-
* (MongoDB, Firestore) and on the client-side SDK.
|
|
155
|
-
*
|
|
156
|
-
* @example
|
|
157
|
-
* ```typescript
|
|
158
|
-
* // In a cron job or custom function:
|
|
159
|
-
* if (ctx.client.sql) {
|
|
160
|
-
* const rows = await ctx.client.sql("SELECT count(*) FROM orders");
|
|
161
|
-
* }
|
|
162
|
-
* ```
|
|
163
|
-
*/
|
|
164
|
-
sql?(query: string, options?: {
|
|
165
|
-
database?: string;
|
|
166
|
-
role?: string;
|
|
167
|
-
}): Promise<Record<string, unknown>[]>;
|
|
168
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { EntityCollection } from "../types/collections";
|
|
2
|
-
import type { EntityReference } from "../types/entities";
|
|
3
|
-
/**
|
|
4
|
-
* Controller that provides access to the registered entity collections.
|
|
5
|
-
* @group Models
|
|
6
|
-
*/
|
|
7
|
-
export type CollectionRegistryController<DB = Record<string, unknown>, EC extends EntityCollection = EntityCollection> = {
|
|
8
|
-
/**
|
|
9
|
-
* List of the mapped collections in the CMS.
|
|
10
|
-
* Each entry relates to a collection in the root database.
|
|
11
|
-
* Each of the navigation entries in this field
|
|
12
|
-
* generates an entry in the main menu.
|
|
13
|
-
*/
|
|
14
|
-
collections?: EntityCollection[];
|
|
15
|
-
/**
|
|
16
|
-
* Is the registry ready to be used
|
|
17
|
-
*/
|
|
18
|
-
initialised: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Get the collection configuration for a given path.
|
|
21
|
-
* The collection is resolved from the given path or alias.
|
|
22
|
-
*/
|
|
23
|
-
getCollection: <K extends keyof DB>(slugOrPath: Extract<K, string>, includeUserOverride?: boolean) => EC | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Get the raw, un-normalized collection configuration.
|
|
26
|
-
* This bypasses the `CollectionRegistry` normalization (such as injecting `relation` instances).
|
|
27
|
-
* This is strictly for the Visual Editor to manipulate AST code without persisting runtime state.
|
|
28
|
-
*/
|
|
29
|
-
getRawCollection: (slugOrPath: string) => EC | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Retrieve all the related parent references for a given path
|
|
32
|
-
* @param path
|
|
33
|
-
*/
|
|
34
|
-
getParentReferencesFromPath: (path: string) => EntityReference[];
|
|
35
|
-
/**
|
|
36
|
-
* Retrieve all the related parent collection ids for a given path
|
|
37
|
-
* @param path
|
|
38
|
-
*/
|
|
39
|
-
getParentCollectionSlugs: (path: string) => string[];
|
|
40
|
-
getParentEntityIds: (path: string) => string[];
|
|
41
|
-
/**
|
|
42
|
-
* Resolve paths from a list of ids
|
|
43
|
-
* @param ids
|
|
44
|
-
*/
|
|
45
|
-
convertIdsToPaths: (ids: string[]) => string[];
|
|
46
|
-
};
|