@rebasepro/admin 0.0.1-canary.eae7889 → 0.1.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/dist/{CollectionEditorDialog-B2M9lCyL.js → CollectionEditorDialog-MbvXGzEq.js} +42 -31
- package/dist/CollectionEditorDialog-MbvXGzEq.js.map +1 -0
- package/dist/{CollectionsStudioView-WG6soyfs.js → CollectionsStudioView-D9X6aiAr.js} +12 -12
- package/dist/CollectionsStudioView-D9X6aiAr.js.map +1 -0
- package/dist/{ContentHomePage-CDF_a6Lp.js → ContentHomePage-CfVB1eUo.js} +26 -26
- package/dist/ContentHomePage-CfVB1eUo.js.map +1 -0
- package/dist/{ExportCollectionAction-Dc0VOWMN.js → ExportCollectionAction-CUwJg4F9.js} +2 -2
- package/dist/{ExportCollectionAction-Dc0VOWMN.js.map → ExportCollectionAction-CUwJg4F9.js.map} +1 -1
- package/dist/{ImportCollectionAction-DpCagAOy.js → ImportCollectionAction-DGa_SF_8.js} +2 -2
- package/dist/{ImportCollectionAction-DpCagAOy.js.map → ImportCollectionAction-DGa_SF_8.js.map} +1 -1
- package/dist/{PropertyEditView-DS67DxoT.js → PropertyEditView-C4nlYmAc.js} +82 -104
- package/dist/PropertyEditView-C4nlYmAc.js.map +1 -0
- package/dist/{RolesView-CIuYBimF.js → RolesView-CNWxnR8e.js} +7 -5
- package/dist/RolesView-CNWxnR8e.js.map +1 -0
- package/dist/{UsersView-B5zelXnH.js → UsersView-YiTIcXkA.js} +14 -35
- package/dist/UsersView-YiTIcXkA.js.map +1 -0
- package/dist/collection_editor/ConfigControllerProvider.d.ts +0 -4
- package/dist/collection_editor/types/collection_editor_controller.d.ts +6 -3
- package/dist/collection_editor/types/config_controller.d.ts +14 -7
- package/dist/collection_editor/ui/AddKanbanColumnAction.d.ts +3 -2
- package/dist/collection_editor/ui/CollectionViewHeaderAction.d.ts +3 -2
- package/dist/collection_editor/ui/EditorCollectionAction.d.ts +1 -1
- package/dist/collection_editor/ui/EditorCollectionActionStart.d.ts +1 -1
- package/dist/collection_editor/ui/EditorEntityAction.d.ts +1 -1
- package/dist/collection_editor/ui/KanbanSetupAction.d.ts +3 -2
- package/dist/collection_editor/ui/PropertyAddColumnComponent.d.ts +3 -2
- package/dist/collection_editor/ui/collection_editor/CollectionDetailsForm.d.ts +3 -4
- package/dist/collection_editor/ui/collection_editor/CollectionEditorDialog.d.ts +2 -3
- package/dist/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.d.ts +1 -2
- package/dist/collection_editor/ui/collection_editor/SubcollectionsEditTab.d.ts +3 -2
- package/dist/collection_editor_ui.js +3 -3
- package/dist/components/EntityCollectionTable/EntityCollectionTable.d.ts +1 -1
- package/dist/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +1 -1
- package/dist/components/EntityCollectionTable/column_utils.d.ts +2 -2
- package/dist/components/EntityCollectionTable/fields/TableMultipleRelationField.d.ts +1 -1
- package/dist/components/EntityCollectionTable/fields/TableReferenceField.d.ts +1 -1
- package/dist/components/EntityCollectionTable/fields/TableRelationField.d.ts +1 -1
- package/dist/components/EntityCollectionTable/fields/TableRelationSelectorField.d.ts +2 -2
- package/dist/components/EntityCollectionTable/internal/CollectionTableToolbar.d.ts +5 -1
- package/dist/components/EntityCollectionView/EntityCollectionBoardView.d.ts +3 -2
- package/dist/components/EntityCollectionView/EntityCollectionView.d.ts +2 -1
- package/dist/components/EntityCollectionView/EntityCollectionViewActions.d.ts +4 -2
- package/dist/components/EntityCollectionView/EntityCollectionViewStartActions.d.ts +4 -2
- package/dist/components/EntityCollectionView/FiltersDialog.d.ts +2 -2
- package/dist/components/EntityCollectionView/SplitListView.d.ts +3 -2
- package/dist/components/EntityEditView.d.ts +9 -2
- package/dist/components/RebaseCMS.d.ts +1 -1
- package/dist/components/ReferenceTable/EntitySelectionTable.d.ts +2 -2
- package/dist/components/ReferenceWidget.d.ts +2 -2
- package/dist/components/RelationSelector.d.ts +1 -1
- package/dist/components/SelectableTable/SelectableTable.d.ts +2 -2
- package/dist/editor.js +2 -2
- package/dist/editor.js.map +1 -1
- package/dist/hooks/navigation/useNavigationRegistry.d.ts +2 -1
- package/dist/hooks/useEntityHistory.d.ts +1 -1
- package/dist/{index-CHxgwt6E.js → index-CtzpHzMQ.js} +11 -4
- package/dist/index-CtzpHzMQ.js.map +1 -0
- package/dist/{index-Dey5WJpO.js → index-DKlrVD1m.js} +3 -3
- package/dist/index-DKlrVD1m.js.map +1 -0
- package/dist/{index-CBhrgpR7.js → index-kHJXfLNI.js} +3 -3
- package/dist/index-kHJXfLNI.js.map +1 -0
- package/dist/index.js +79 -63
- package/dist/index.js.map +1 -1
- package/dist/{useEntityHistory-Dcj4zhGj.js → useEntityHistory-UVsSclfZ.js} +3 -1
- package/dist/useEntityHistory-UVsSclfZ.js.map +1 -0
- package/dist/util/navigation_utils.d.ts +10 -1
- package/dist/{util-BQ82ySL3.js → util-CwLmSpGp.js} +1653 -1257
- package/dist/util-CwLmSpGp.js.map +1 -0
- package/package.json +9 -17
- package/src/collection_editor/ConfigControllerProvider.tsx +19 -28
- package/src/collection_editor/types/collection_editor_controller.tsx +3 -3
- package/src/collection_editor/types/config_controller.tsx +7 -7
- package/src/collection_editor/ui/AddKanbanColumnAction.tsx +4 -4
- package/src/collection_editor/ui/CollectionViewHeaderAction.tsx +3 -3
- package/src/collection_editor/ui/EditorCollectionAction.tsx +3 -3
- package/src/collection_editor/ui/EditorCollectionActionStart.tsx +7 -7
- package/src/collection_editor/ui/EditorEntityAction.tsx +3 -3
- package/src/collection_editor/ui/HomePageEditorCollectionAction.tsx +4 -2
- package/src/collection_editor/ui/KanbanSetupAction.tsx +4 -3
- package/src/collection_editor/ui/MissingReferenceWidget.tsx +3 -2
- package/src/collection_editor/ui/NewCollectionButton.tsx +2 -1
- package/src/collection_editor/ui/NewCollectionCard.tsx +2 -1
- package/src/collection_editor/ui/PropertyAddColumnComponent.tsx +3 -3
- package/src/collection_editor/ui/collection_editor/CollectionDetailsForm.tsx +5 -50
- package/src/collection_editor/ui/collection_editor/CollectionEditorDialog.tsx +12 -20
- package/src/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.tsx +1 -3
- package/src/collection_editor/ui/collection_editor/CollectionRLSTab.tsx +17 -2
- package/src/collection_editor/ui/collection_editor/CollectionRelationsTab.tsx +3 -3
- package/src/collection_editor/ui/collection_editor/CollectionStudioView.tsx +2 -1
- package/src/collection_editor/ui/collection_editor/CollectionsStudioView.tsx +18 -12
- package/src/collection_editor/ui/collection_editor/DisplaySettingsForm.tsx +1 -2
- package/src/collection_editor/ui/collection_editor/GetCodeDialog.tsx +1 -2
- package/src/collection_editor/ui/collection_editor/PropertyFieldPreview.tsx +6 -6
- package/src/collection_editor/ui/collection_editor/SubcollectionsEditTab.tsx +4 -4
- package/src/collection_editor/ui/collection_editor/properties/MapPropertyField.tsx +2 -2
- package/src/collection_editor/ui/collection_editor/properties/ReferencePropertyField.tsx +15 -49
- package/src/collection_editor/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.tsx +4 -5
- package/src/collection_editor/ui/collection_editor/templates/pages_template.ts +1 -1
- package/src/collection_editor/ui/collection_editor/templates/products_template.ts +2 -2
- package/src/components/DefaultAppBar.tsx +2 -2
- package/src/components/DefaultDrawer.tsx +25 -17
- package/src/components/DrawerNavigationGroup.tsx +4 -4
- package/src/components/DrawerNavigationItem.tsx +6 -6
- package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +4 -4
- package/src/components/EntityCollectionTable/EntityCollectionTableProps.tsx +1 -1
- package/src/components/EntityCollectionTable/PropertyTableCell.tsx +4 -4
- package/src/components/EntityCollectionTable/column_utils.tsx +3 -3
- package/src/components/EntityCollectionTable/fields/TableMultipleRelationField.tsx +3 -3
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +3 -3
- package/src/components/EntityCollectionTable/fields/TableRelationField.tsx +4 -4
- package/src/components/EntityCollectionTable/fields/TableRelationSelectorField.tsx +3 -3
- package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +8 -2
- package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +1 -1
- package/src/components/EntityCollectionTable/internal/common.tsx +5 -5
- package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +1 -1
- package/src/components/EntityCollectionTable/table_bindings.tsx +45 -35
- package/src/components/EntityCollectionView/EntityBoardCard.tsx +18 -19
- package/src/components/EntityCollectionView/EntityCard.tsx +2 -2
- package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +42 -14
- package/src/components/EntityCollectionView/EntityCollectionCardView.tsx +4 -3
- package/src/components/EntityCollectionView/EntityCollectionListView.tsx +157 -54
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +169 -75
- package/src/components/EntityCollectionView/EntityCollectionViewActions.tsx +23 -13
- package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +21 -12
- package/src/components/EntityCollectionView/FiltersDialog.tsx +7 -7
- package/src/components/EntityCollectionView/SplitListView.tsx +24 -8
- package/src/components/EntityCollectionView/useEntityPreviewSlots.ts +33 -5
- package/src/components/EntityEditView.tsx +85 -85
- package/src/components/EntitySidePanel.tsx +18 -10
- package/src/components/HomePage/ContentHomePage.tsx +24 -15
- package/src/components/HomePage/NavigationCard.tsx +4 -4
- package/src/components/HomePage/NavigationGroup.tsx +2 -2
- package/src/components/RebaseAuthGate.tsx +2 -0
- package/src/components/RebaseCMS.tsx +4 -3
- package/src/components/RebaseNavigation.tsx +8 -5
- package/src/components/ReferenceTable/EntitySelectionTable.tsx +4 -4
- package/src/components/ReferenceWidget.tsx +3 -3
- package/src/components/RelationSelector.tsx +33 -5
- package/src/components/SelectableTable/SelectableTable.tsx +6 -6
- package/src/components/UserSelector.tsx +1 -1
- package/src/components/admin/RolesView.tsx +10 -3
- package/src/components/admin/UsersView.tsx +13 -25
- package/src/components/app/Scaffold.tsx +4 -4
- package/src/components/field_configs.tsx +29 -32
- package/src/components/history/EntityHistoryView.tsx +12 -1
- package/src/editor/editor.tsx +2 -2
- package/src/form/EntityForm.tsx +5 -4
- package/src/form/PropertyFieldBinding.tsx +14 -10
- package/src/form/components/FieldHelperText.tsx +1 -1
- package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +3 -3
- package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +5 -5
- package/src/form/field_bindings/BlockFieldBinding.tsx +4 -4
- package/src/form/field_bindings/DateTimeFieldBinding.tsx +1 -1
- package/src/form/field_bindings/KeyValueFieldBinding.tsx +1 -1
- package/src/form/field_bindings/MapFieldBinding.tsx +7 -7
- package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +1 -1
- package/src/form/field_bindings/MultipleRelationFieldBinding.tsx +3 -3
- package/src/form/field_bindings/ReferenceAsStringFieldBinding.tsx +7 -7
- package/src/form/field_bindings/ReferenceFieldBinding.tsx +2 -2
- package/src/form/field_bindings/RelationFieldBinding.tsx +4 -4
- package/src/form/field_bindings/RepeatFieldBinding.tsx +5 -5
- package/src/form/field_bindings/SelectFieldBinding.tsx +1 -1
- package/src/form/field_bindings/StorageUploadFieldBinding.tsx +1 -1
- package/src/form/field_bindings/SwitchFieldBinding.tsx +1 -1
- package/src/form/field_bindings/TextFieldBinding.tsx +7 -7
- package/src/form/field_bindings/UserSelectFieldBinding.tsx +1 -1
- package/src/form/useClearRestoreValue.tsx +1 -1
- package/src/form/validation.ts +1 -1
- package/src/hooks/navigation/contexts/CollectionRegistryContext.tsx +2 -1
- package/src/hooks/navigation/useBuildCollectionRegistryController.tsx +15 -3
- package/src/hooks/navigation/useNavigationRegistry.ts +14 -3
- package/src/hooks/navigation/useResolvedViews.tsx +1 -3
- package/src/hooks/navigation/useTopLevelNavigation.ts +1 -1
- package/src/hooks/navigation/utils.ts +1 -1
- package/src/hooks/useEntityHistory.ts +7 -2
- package/src/preview/PropertyPreview.tsx +27 -23
- package/src/preview/components/StorageThumbnail.tsx +4 -1
- package/src/preview/property_previews/ArrayOfMapsPreview.tsx +1 -1
- package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +1 -1
- package/src/preview/property_previews/ArrayOfRelationsPreview.tsx +1 -1
- package/src/preview/property_previews/SkeletonPropertyComponent.tsx +3 -3
- package/src/preview/property_previews/StringPropertyPreview.tsx +3 -3
- package/src/routes/RebaseRoute.tsx +57 -11
- package/src/util/navigation_utils.ts +21 -2
- package/src/util/previews.ts +15 -6
- package/src/util/property_utils.tsx +3 -3
- package/dist/CollectionEditorDialog-B2M9lCyL.js.map +0 -1
- package/dist/CollectionsStudioView-WG6soyfs.js.map +0 -1
- package/dist/ContentHomePage-CDF_a6Lp.js.map +0 -1
- package/dist/PropertyEditView-DS67DxoT.js.map +0 -1
- package/dist/RolesView-CIuYBimF.js.map +0 -1
- package/dist/UsersView-B5zelXnH.js.map +0 -1
- package/dist/index-CBhrgpR7.js.map +0 -1
- package/dist/index-CHxgwt6E.js.map +0 -1
- package/dist/index-Dey5WJpO.js.map +0 -1
- package/dist/useEntityHistory-Dcj4zhGj.js.map +0 -1
- package/dist/util-BQ82ySL3.js.map +0 -1
|
@@ -24,4 +24,4 @@ import { EntityCollectionTableProps } from "./EntityCollectionTableProps";
|
|
|
24
24
|
* @see VirtualTable
|
|
25
25
|
* @group Components
|
|
26
26
|
*/
|
|
27
|
-
export declare const EntityCollectionTable: <M extends Record<string, unknown> = any, USER extends User = any>({ className, style,
|
|
27
|
+
export declare const EntityCollectionTable: <M extends Record<string, unknown> = any, USER extends User = any>({ className, style, fixedFilter, actionsStart, actions, viewModeToggle, title, tableRowActionsBuilder, uniqueFieldValidator, getPropertyFor, onValueChange, selectionController, highlightedEntities, onEntityClick, onColumnResize, initialScroll, onScroll, onSizeChanged, hoverRow, inlineEditing, additionalFields, displayedColumnIds, defaultSize, properties, tableController, filterable, sortable, endAdornment, AddColumnComponent, AdditionalHeaderWidget, additionalIDHeaderWidget, emptyComponent, getIdColumnWidth, enablePopupIcon, openEntityMode, onColumnsOrderChange, hideToolbar }: EntityCollectionTableProps<M>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -89,7 +89,7 @@ export type EntityCollectionTableProps<M extends Record<string, unknown>, USER e
|
|
|
89
89
|
*/
|
|
90
90
|
tableController: EntityTableController<M>;
|
|
91
91
|
displayedColumnIds?: PropertyColumnConfig[];
|
|
92
|
-
|
|
92
|
+
fixedFilter?: FilterValues<Extract<keyof M, string>>;
|
|
93
93
|
inlineEditing?: boolean;
|
|
94
94
|
additionalFields?: AdditionalFieldDelegate<M, USER>[];
|
|
95
95
|
defaultSize?: CollectionSize;
|
|
@@ -6,11 +6,11 @@ export declare function buildIdColumn(largeLayout?: boolean): VirtualTableColumn
|
|
|
6
6
|
export interface PropertiesToColumnsParams<M extends Record<string, unknown>> {
|
|
7
7
|
properties: Properties;
|
|
8
8
|
sortable?: boolean;
|
|
9
|
-
|
|
9
|
+
fixedFilter?: FilterValues<keyof M extends string ? keyof M : never>;
|
|
10
10
|
AdditionalHeaderWidget?: React.ComponentType<{
|
|
11
11
|
property: Property;
|
|
12
12
|
propertyKey: string;
|
|
13
13
|
onHover: boolean;
|
|
14
14
|
}>;
|
|
15
15
|
}
|
|
16
|
-
export declare function propertiesToColumns<M extends Record<string, unknown>>({ properties, sortable,
|
|
16
|
+
export declare function propertiesToColumns<M extends Record<string, unknown>>({ properties, sortable, fixedFilter, AdditionalHeaderWidget }: PropertiesToColumnsParams<M>): VirtualTableColumn[];
|
|
@@ -11,10 +11,10 @@ interface RelationSelectorFieldProps {
|
|
|
11
11
|
/** The relation configuration */
|
|
12
12
|
relation: Relation;
|
|
13
13
|
/** Force filter to be applied to the relation search */
|
|
14
|
-
|
|
14
|
+
fixedFilter?: FilterValues<string>;
|
|
15
15
|
/** Collection size for display */
|
|
16
16
|
size?: "small" | "medium";
|
|
17
17
|
}
|
|
18
18
|
/** Thin wrapper around RelationSelector for table cells */
|
|
19
|
-
export declare function TableRelationSelectorField({ disabled, internalValue, updateValue, relation,
|
|
19
|
+
export declare function TableRelationSelectorField({ disabled, internalValue, updateValue, relation, fixedFilter, size }: RelationSelectorFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -9,6 +9,10 @@ interface CollectionTableToolbarProps {
|
|
|
9
9
|
viewModeToggle?: React.ReactNode;
|
|
10
10
|
title?: React.ReactNode;
|
|
11
11
|
onTextSearch?: (searchString?: string) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Initial search string to pre-populate the search bar (e.g. from URL params).
|
|
14
|
+
*/
|
|
15
|
+
initialSearchText?: string;
|
|
12
16
|
/**
|
|
13
17
|
* When true the toolbar is in "compact" mode for the split-view left panel.
|
|
14
18
|
* - Search bar, loading spinner, and view-mode toggle are hidden.
|
|
@@ -17,5 +21,5 @@ interface CollectionTableToolbarProps {
|
|
|
17
21
|
*/
|
|
18
22
|
compact?: boolean;
|
|
19
23
|
}
|
|
20
|
-
export declare function CollectionTableToolbar({ actions, actionsStart, loading, onTextSearch, title, viewModeToggle, compact }: CollectionTableToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function CollectionTableToolbar({ actions, actionsStart, loading, onTextSearch, title, viewModeToggle, initialSearchText, compact }: CollectionTableToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
21
25
|
export {};
|
|
@@ -5,7 +5,8 @@ export type EntityCollectionBoardViewProps<M extends Record<string, unknown> = R
|
|
|
5
5
|
collection: EntityCollection<M>;
|
|
6
6
|
tableController: EntityTableController<M>;
|
|
7
7
|
fullPath: string;
|
|
8
|
-
|
|
8
|
+
parentCollectionSlugs?: string[];
|
|
9
|
+
parentEntityIds?: string[];
|
|
9
10
|
columnProperty: string;
|
|
10
11
|
onEntityClick?: (entity: Entity<M>) => void;
|
|
11
12
|
selectionController?: SelectionController<M>;
|
|
@@ -18,4 +19,4 @@ export type EntityCollectionBoardViewProps<M extends Record<string, unknown> = R
|
|
|
18
19
|
/**
|
|
19
20
|
* Kanban board view for displaying entities grouped by a string enum property.
|
|
20
21
|
*/
|
|
21
|
-
export declare function EntityCollectionBoardView<M extends Record<string, unknown> = Record<string, unknown>>({ collection, tableController, fullPath,
|
|
22
|
+
export declare function EntityCollectionBoardView<M extends Record<string, unknown> = Record<string, unknown>>({ collection, tableController, fullPath, parentCollectionSlugs, parentEntityIds, columnProperty, onEntityClick, selectionController, selectionEnabled, highlightedEntities, emptyComponent, deletedEntities }: EntityCollectionBoardViewProps<M>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,7 +16,8 @@ export type EntityCollectionViewProps<M extends Record<string, unknown>> = {
|
|
|
16
16
|
/**
|
|
17
17
|
* If this is a subcollection, specify the parent collection ids.
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
parentCollectionSlugs?: string[];
|
|
20
|
+
parentEntityIds?: string[];
|
|
20
21
|
/**
|
|
21
22
|
* Whether this is a subcollection or not.
|
|
22
23
|
*/
|
|
@@ -5,7 +5,8 @@ export type EntityCollectionViewActionsProps<M extends Record<string, unknown>>
|
|
|
5
5
|
collection: EntityCollection<M>;
|
|
6
6
|
path: string;
|
|
7
7
|
relativePath: string;
|
|
8
|
-
|
|
8
|
+
parentCollectionSlugs: string[];
|
|
9
|
+
parentEntityIds: string[];
|
|
9
10
|
selectionEnabled: boolean;
|
|
10
11
|
onNewClick: () => void;
|
|
11
12
|
onMultipleDeleteClick: () => void;
|
|
@@ -14,5 +15,6 @@ export type EntityCollectionViewActionsProps<M extends Record<string, unknown>>
|
|
|
14
15
|
collectionEntitiesCount?: number;
|
|
15
16
|
compact?: boolean;
|
|
16
17
|
children?: React.ReactNode;
|
|
18
|
+
openNewDocument: (defaultValues?: Record<string, unknown>) => void;
|
|
17
19
|
};
|
|
18
|
-
export declare function EntityCollectionViewActions<M extends Record<string, unknown>>({ collection, relativePath,
|
|
20
|
+
export declare function EntityCollectionViewActions<M extends Record<string, unknown>>({ collection, relativePath, parentCollectionSlugs, parentEntityIds, onNewClick, onMultipleDeleteClick, selectionEnabled, path, selectionController, tableController, collectionEntitiesCount, compact, children, openNewDocument }: EntityCollectionViewActionsProps<M>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,7 +5,8 @@ export type EntityCollectionViewStartActionsProps<M extends Record<string, unkno
|
|
|
5
5
|
collection: EntityCollection<M>;
|
|
6
6
|
path: string;
|
|
7
7
|
relativePath: string;
|
|
8
|
-
|
|
8
|
+
parentCollectionSlugs: string[];
|
|
9
|
+
parentEntityIds: string[];
|
|
9
10
|
selectionController: SelectionController<M>;
|
|
10
11
|
tableController: EntityTableController<M>;
|
|
11
12
|
collectionEntitiesCount?: number;
|
|
@@ -14,5 +15,6 @@ export type EntityCollectionViewStartActionsProps<M extends Record<string, unkno
|
|
|
14
15
|
*/
|
|
15
16
|
resolvedProperties?: Properties;
|
|
16
17
|
compact?: boolean;
|
|
18
|
+
openNewDocument: (defaultValues?: Record<string, unknown>) => void;
|
|
17
19
|
};
|
|
18
|
-
export declare function EntityCollectionViewStartActions<M extends Record<string, unknown>>({ collection, relativePath,
|
|
20
|
+
export declare function EntityCollectionViewStartActions<M extends Record<string, unknown>>({ collection, relativePath, parentCollectionSlugs, parentEntityIds, path, selectionController, tableController, collectionEntitiesCount, resolvedProperties, compact, openNewDocument }: EntityCollectionViewStartActionsProps<M>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,10 +6,10 @@ export interface FiltersDialogProps {
|
|
|
6
6
|
properties: Record<string, Property>;
|
|
7
7
|
filterValues: FilterValues<any> | undefined;
|
|
8
8
|
setFilterValues: (filterValues?: FilterValues<any>) => void;
|
|
9
|
-
|
|
9
|
+
fixedFilter?: FilterValues<any>;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Dialog that displays all filterable properties from a collection
|
|
13
13
|
* and allows setting filter values for each.
|
|
14
14
|
*/
|
|
15
|
-
export declare function FiltersDialog({ open, onOpenChange, properties, filterValues, setFilterValues,
|
|
15
|
+
export declare function FiltersDialog({ open, onOpenChange, properties, filterValues, setFilterValues, fixedFilter }: FiltersDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -18,7 +18,8 @@ export type SplitListViewProps<M extends Record<string, unknown> = Record<string
|
|
|
18
18
|
initialScroll?: number;
|
|
19
19
|
size?: CollectionSize;
|
|
20
20
|
path: string;
|
|
21
|
-
|
|
21
|
+
parentCollectionSlugs?: string[];
|
|
22
|
+
parentEntityIds?: string[];
|
|
22
23
|
/**
|
|
23
24
|
* The entity ID to show in the detail panel.
|
|
24
25
|
* Comes from the URL path (e.g. /c/authors/14 → selectedEntityId = "14").
|
|
@@ -54,4 +55,4 @@ export type SplitListViewProps<M extends Record<string, unknown> = Record<string
|
|
|
54
55
|
* - Clicking an entity navigates to /c/authors/{id} via the standard onEntityClick handler.
|
|
55
56
|
* - Closing the detail navigates back to /c/authors.
|
|
56
57
|
*/
|
|
57
|
-
export declare function SplitListView<M extends Record<string, unknown> = Record<string, unknown>>({ collection, tableController, onEntityClick: externalOnEntityClick, onNewClick: externalOnNewClick, selectionController, selectionEnabled, highlightedEntities, emptyComponent, onScroll, initialScroll, size, path,
|
|
58
|
+
export declare function SplitListView<M extends Record<string, unknown> = Record<string, unknown>>({ collection, tableController, onEntityClick: externalOnEntityClick, onNewClick: externalOnNewClick, selectionController, selectionEnabled, highlightedEntities, emptyComponent, onScroll, initialScroll, size, path, parentCollectionSlugs, parentEntityIds, selectedEntityId, selectedTab, toolbar, children }: SplitListViewProps<M>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -26,20 +26,27 @@ export interface EntityEditViewProps<M extends Record<string, unknown> = Record<
|
|
|
26
26
|
databaseId?: string;
|
|
27
27
|
copy?: boolean;
|
|
28
28
|
selectedTab?: string;
|
|
29
|
-
|
|
29
|
+
parentCollectionSlugs: string[];
|
|
30
|
+
parentEntityIds: string[];
|
|
30
31
|
onValuesModified?: (modified: boolean, values: M) => void;
|
|
31
32
|
onSaved?: (params: OnUpdateParams) => void;
|
|
32
33
|
onTabChange?: (props: OnTabChangeParams<M>) => void;
|
|
33
34
|
layout?: "side_panel" | "full_screen" | "split";
|
|
34
35
|
barActions?: (params: BarActionsParams) => any;
|
|
35
36
|
formProps?: Partial<EntityFormProps<M>>;
|
|
37
|
+
/**
|
|
38
|
+
* Pre-populate the form with these values when creating a new entity.
|
|
39
|
+
* Only applied when the form is in "new" mode (no entityId).
|
|
40
|
+
* Sourced from EntitySidePanelProps (side panel) or location.state (full screen).
|
|
41
|
+
*/
|
|
42
|
+
defaultValues?: Partial<M>;
|
|
36
43
|
}
|
|
37
44
|
/**
|
|
38
45
|
* This is the default view that is used as the content of a side panel when
|
|
39
46
|
* an entity is opened.
|
|
40
47
|
*/
|
|
41
48
|
export declare function EntityEditView<M extends Record<string, unknown>>({ entityId, ...props }: EntityEditViewProps<M>): import("react/jsx-runtime").JSX.Element;
|
|
42
|
-
export declare function EntityEditViewInner<M extends Record<string, unknown>>({ path, entityId, selectedTab: selectedTabProp, collection,
|
|
49
|
+
export declare function EntityEditViewInner<M extends Record<string, unknown>>({ path, entityId, selectedTab: selectedTabProp, collection, parentCollectionSlugs, parentEntityIds, onValuesModified, onSaved, onTabChange, entity, initialDirtyValues, dataLoading, layout, barActions, status, setStatus, formProps, canEdit }: EntityEditViewProps<M> & {
|
|
43
50
|
entity?: Entity<M>;
|
|
44
51
|
initialDirtyValues?: Partial<M>;
|
|
45
52
|
dataLoading: boolean;
|
|
@@ -7,4 +7,4 @@ import type { RebaseCMSConfig } from "@rebasepro/types";
|
|
|
7
7
|
* is auto-wired as a native feature (slots, provider, Studio view) without
|
|
8
8
|
* needing any external plugin.
|
|
9
9
|
*/
|
|
10
|
-
export declare function RebaseCMS({ collections, homePage, entityViews, entityActions, plugins, collectionEditor }: RebaseCMSConfig): null;
|
|
10
|
+
export declare function RebaseCMS({ collections, homePage, entityViews, entityActions, plugins, collectionEditor, navigationGroupMappings }: RebaseCMSConfig): null;
|
|
@@ -41,7 +41,7 @@ export interface EntitySelectionProps<M extends Record<string, unknown>> {
|
|
|
41
41
|
/**
|
|
42
42
|
* Allow selection of entities that pass the given filter only.
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
fixedFilter?: FilterValues<string>;
|
|
45
45
|
/**
|
|
46
46
|
* Use this description to indicate the user what to do in this dialog.
|
|
47
47
|
*/
|
|
@@ -56,4 +56,4 @@ export interface EntitySelectionProps<M extends Record<string, unknown>> {
|
|
|
56
56
|
* You probably want to open this dialog as a side view using {@link useEntitySelectionTable}
|
|
57
57
|
* @group Components
|
|
58
58
|
*/
|
|
59
|
-
export declare function EntitySelectionTable<M extends Record<string, unknown>>({ onSingleEntitySelected, onMultipleEntitiesSelected, multiselect, collection, path: pathInput, selectedEntityIds: selectedEntityIdsProp, description,
|
|
59
|
+
export declare function EntitySelectionTable<M extends Record<string, unknown>>({ onSingleEntitySelected, onMultipleEntitiesSelected, multiselect, collection, path: pathInput, selectedEntityIds: selectedEntityIdsProp, description, fixedFilter, maxSelection }: EntitySelectionProps<M>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -18,7 +18,7 @@ export type ReferenceWidgetProps<M extends Record<string, unknown>> = {
|
|
|
18
18
|
/**
|
|
19
19
|
* Allow selection of entities that pass the given filter only.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
fixedFilter?: FilterValues<string>;
|
|
22
22
|
size: PreviewSize;
|
|
23
23
|
className?: string;
|
|
24
24
|
includeId?: boolean;
|
|
@@ -27,4 +27,4 @@ export type ReferenceWidgetProps<M extends Record<string, unknown>> = {
|
|
|
27
27
|
/**
|
|
28
28
|
* This field allows selecting reference/s.
|
|
29
29
|
*/
|
|
30
|
-
export declare function ReferenceWidget<M extends Record<string, unknown>>({ name, multiselect, path, disabled, value, onReferenceSelected, onMultipleReferenceSelected, previewProperties,
|
|
30
|
+
export declare function ReferenceWidget<M extends Record<string, unknown>>({ name, multiselect, path, disabled, value, onReferenceSelected, onMultipleReferenceSelected, previewProperties, fixedFilter, size, className, includeId, includeEntityLink }: ReferenceWidgetProps<M>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -22,7 +22,7 @@ export interface RelationSelectorProps {
|
|
|
22
22
|
padding?: boolean;
|
|
23
23
|
invisible?: boolean;
|
|
24
24
|
relation: Relation;
|
|
25
|
-
|
|
25
|
+
fixedFilter?: FilterValues<string>;
|
|
26
26
|
pageSize?: number;
|
|
27
27
|
emptyPlaceholder?: string;
|
|
28
28
|
searchPlaceholder?: string;
|
|
@@ -41,7 +41,7 @@ export type SelectableTableProps<M extends Record<string, unknown>> = {
|
|
|
41
41
|
filterable?: boolean;
|
|
42
42
|
sortable?: boolean;
|
|
43
43
|
inlineEditing?: boolean;
|
|
44
|
-
|
|
44
|
+
fixedFilter?: FilterValues<keyof M extends string ? keyof M : never>;
|
|
45
45
|
highlightedRow?: (data: Entity<M>) => boolean;
|
|
46
46
|
size?: CollectionSize;
|
|
47
47
|
initialScroll?: number;
|
|
@@ -92,4 +92,4 @@ export type SelectableTableProps<M extends Record<string, unknown>> = {
|
|
|
92
92
|
* @see VirtualTable
|
|
93
93
|
* @group Components
|
|
94
94
|
*/
|
|
95
|
-
export declare const SelectableTable: <M extends Record<string, unknown>>({ onValueChange, cellRenderer, onEntityClick, onColumnResize, hoverRow, size, inlineEditing, tableController: { data, dataLoading, noMoreToLoad, dataLoadingError, filterValues, setFilterValues, sortBy, setSortBy, itemCount, setItemCount, pageSize, paginationEnabled, checkFilterCombination, setPopupCell }, filterable, onScroll, initialScroll, emptyComponent, columns,
|
|
95
|
+
export declare const SelectableTable: <M extends Record<string, unknown>>({ onValueChange, cellRenderer, onEntityClick, onColumnResize, hoverRow, size, inlineEditing, tableController: { data, dataLoading, noMoreToLoad, dataLoadingError, filterValues, setFilterValues, sortBy, setSortBy, itemCount, setItemCount, pageSize, paginationEnabled, checkFilterCombination, setPopupCell }, filterable, onScroll, initialScroll, emptyComponent, columns, fixedFilter, highlightedRow, endAdornment, AddColumnComponent, onColumnsOrderChange, extraData }: SelectableTableProps<M>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/editor.js
CHANGED
|
@@ -3599,7 +3599,7 @@ const RebaseEditor = ({
|
|
|
3599
3599
|
/* @__PURE__ */ jsxs("div", { style: {
|
|
3600
3600
|
display: isMarkdownMode ? "none" : "block"
|
|
3601
3601
|
}, children: [
|
|
3602
|
-
/* @__PURE__ */ jsx("div", { ref: editorRef, className: cls("relative prose dark:prose-invert", proseClass, "prose-headings:font-title prose-headings:font-normal prose-strong:font-semibold prose-code:font-normal prose-blockquote:font-normal prose-a:font-normal font-default focus:outline-none max-w-full
|
|
3602
|
+
/* @__PURE__ */ jsx("div", { ref: editorRef, className: cls("relative prose dark:prose-invert", proseClass, "prose-headings:font-title prose-headings:font-normal prose-strong:font-semibold prose-code:font-normal prose-blockquote:font-normal prose-a:font-normal font-default focus:outline-none max-w-full px-12 py-4") }),
|
|
3603
3603
|
view && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3604
3604
|
/* @__PURE__ */ jsxs(EditorBubble, { options: {
|
|
3605
3605
|
placement: "top",
|
|
@@ -3619,7 +3619,7 @@ const RebaseEditor = ({
|
|
|
3619
3619
|
] }),
|
|
3620
3620
|
/* @__PURE__ */ jsx(SlashCommandMenu, { upload: handleImageUpload, aiController })
|
|
3621
3621
|
] }),
|
|
3622
|
-
isMarkdownMode && /* @__PURE__ */ jsx(TextareaAutosize, { value: internalMarkdown, onChange: handleMarkdownChange, onBlur: handleMarkdownBlur, className: cls("w-full h-full min-h-[200px]
|
|
3622
|
+
isMarkdownMode && /* @__PURE__ */ jsx(TextareaAutosize, { value: internalMarkdown, onChange: handleMarkdownChange, onBlur: handleMarkdownBlur, className: cls("w-full h-full min-h-[200px] px-12 py-4 bg-transparent resize-none font-mono focus:ring-0", proseClass), style: {
|
|
3623
3623
|
tabSize: 4,
|
|
3624
3624
|
outline: "none",
|
|
3625
3625
|
border: "none",
|