@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.
Files changed (197) hide show
  1. package/dist/{CollectionEditorDialog-B2M9lCyL.js → CollectionEditorDialog-MbvXGzEq.js} +42 -31
  2. package/dist/CollectionEditorDialog-MbvXGzEq.js.map +1 -0
  3. package/dist/{CollectionsStudioView-WG6soyfs.js → CollectionsStudioView-D9X6aiAr.js} +12 -12
  4. package/dist/CollectionsStudioView-D9X6aiAr.js.map +1 -0
  5. package/dist/{ContentHomePage-CDF_a6Lp.js → ContentHomePage-CfVB1eUo.js} +26 -26
  6. package/dist/ContentHomePage-CfVB1eUo.js.map +1 -0
  7. package/dist/{ExportCollectionAction-Dc0VOWMN.js → ExportCollectionAction-CUwJg4F9.js} +2 -2
  8. package/dist/{ExportCollectionAction-Dc0VOWMN.js.map → ExportCollectionAction-CUwJg4F9.js.map} +1 -1
  9. package/dist/{ImportCollectionAction-DpCagAOy.js → ImportCollectionAction-DGa_SF_8.js} +2 -2
  10. package/dist/{ImportCollectionAction-DpCagAOy.js.map → ImportCollectionAction-DGa_SF_8.js.map} +1 -1
  11. package/dist/{PropertyEditView-DS67DxoT.js → PropertyEditView-C4nlYmAc.js} +82 -104
  12. package/dist/PropertyEditView-C4nlYmAc.js.map +1 -0
  13. package/dist/{RolesView-CIuYBimF.js → RolesView-CNWxnR8e.js} +7 -5
  14. package/dist/RolesView-CNWxnR8e.js.map +1 -0
  15. package/dist/{UsersView-B5zelXnH.js → UsersView-YiTIcXkA.js} +14 -35
  16. package/dist/UsersView-YiTIcXkA.js.map +1 -0
  17. package/dist/collection_editor/ConfigControllerProvider.d.ts +0 -4
  18. package/dist/collection_editor/types/collection_editor_controller.d.ts +6 -3
  19. package/dist/collection_editor/types/config_controller.d.ts +14 -7
  20. package/dist/collection_editor/ui/AddKanbanColumnAction.d.ts +3 -2
  21. package/dist/collection_editor/ui/CollectionViewHeaderAction.d.ts +3 -2
  22. package/dist/collection_editor/ui/EditorCollectionAction.d.ts +1 -1
  23. package/dist/collection_editor/ui/EditorCollectionActionStart.d.ts +1 -1
  24. package/dist/collection_editor/ui/EditorEntityAction.d.ts +1 -1
  25. package/dist/collection_editor/ui/KanbanSetupAction.d.ts +3 -2
  26. package/dist/collection_editor/ui/PropertyAddColumnComponent.d.ts +3 -2
  27. package/dist/collection_editor/ui/collection_editor/CollectionDetailsForm.d.ts +3 -4
  28. package/dist/collection_editor/ui/collection_editor/CollectionEditorDialog.d.ts +2 -3
  29. package/dist/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.d.ts +1 -2
  30. package/dist/collection_editor/ui/collection_editor/SubcollectionsEditTab.d.ts +3 -2
  31. package/dist/collection_editor_ui.js +3 -3
  32. package/dist/components/EntityCollectionTable/EntityCollectionTable.d.ts +1 -1
  33. package/dist/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +1 -1
  34. package/dist/components/EntityCollectionTable/column_utils.d.ts +2 -2
  35. package/dist/components/EntityCollectionTable/fields/TableMultipleRelationField.d.ts +1 -1
  36. package/dist/components/EntityCollectionTable/fields/TableReferenceField.d.ts +1 -1
  37. package/dist/components/EntityCollectionTable/fields/TableRelationField.d.ts +1 -1
  38. package/dist/components/EntityCollectionTable/fields/TableRelationSelectorField.d.ts +2 -2
  39. package/dist/components/EntityCollectionTable/internal/CollectionTableToolbar.d.ts +5 -1
  40. package/dist/components/EntityCollectionView/EntityCollectionBoardView.d.ts +3 -2
  41. package/dist/components/EntityCollectionView/EntityCollectionView.d.ts +2 -1
  42. package/dist/components/EntityCollectionView/EntityCollectionViewActions.d.ts +4 -2
  43. package/dist/components/EntityCollectionView/EntityCollectionViewStartActions.d.ts +4 -2
  44. package/dist/components/EntityCollectionView/FiltersDialog.d.ts +2 -2
  45. package/dist/components/EntityCollectionView/SplitListView.d.ts +3 -2
  46. package/dist/components/EntityEditView.d.ts +9 -2
  47. package/dist/components/RebaseCMS.d.ts +1 -1
  48. package/dist/components/ReferenceTable/EntitySelectionTable.d.ts +2 -2
  49. package/dist/components/ReferenceWidget.d.ts +2 -2
  50. package/dist/components/RelationSelector.d.ts +1 -1
  51. package/dist/components/SelectableTable/SelectableTable.d.ts +2 -2
  52. package/dist/editor.js +2 -2
  53. package/dist/editor.js.map +1 -1
  54. package/dist/hooks/navigation/useNavigationRegistry.d.ts +2 -1
  55. package/dist/hooks/useEntityHistory.d.ts +1 -1
  56. package/dist/{index-CHxgwt6E.js → index-CtzpHzMQ.js} +11 -4
  57. package/dist/index-CtzpHzMQ.js.map +1 -0
  58. package/dist/{index-Dey5WJpO.js → index-DKlrVD1m.js} +3 -3
  59. package/dist/index-DKlrVD1m.js.map +1 -0
  60. package/dist/{index-CBhrgpR7.js → index-kHJXfLNI.js} +3 -3
  61. package/dist/index-kHJXfLNI.js.map +1 -0
  62. package/dist/index.js +79 -63
  63. package/dist/index.js.map +1 -1
  64. package/dist/{useEntityHistory-Dcj4zhGj.js → useEntityHistory-UVsSclfZ.js} +3 -1
  65. package/dist/useEntityHistory-UVsSclfZ.js.map +1 -0
  66. package/dist/util/navigation_utils.d.ts +10 -1
  67. package/dist/{util-BQ82ySL3.js → util-CwLmSpGp.js} +1653 -1257
  68. package/dist/util-CwLmSpGp.js.map +1 -0
  69. package/package.json +9 -17
  70. package/src/collection_editor/ConfigControllerProvider.tsx +19 -28
  71. package/src/collection_editor/types/collection_editor_controller.tsx +3 -3
  72. package/src/collection_editor/types/config_controller.tsx +7 -7
  73. package/src/collection_editor/ui/AddKanbanColumnAction.tsx +4 -4
  74. package/src/collection_editor/ui/CollectionViewHeaderAction.tsx +3 -3
  75. package/src/collection_editor/ui/EditorCollectionAction.tsx +3 -3
  76. package/src/collection_editor/ui/EditorCollectionActionStart.tsx +7 -7
  77. package/src/collection_editor/ui/EditorEntityAction.tsx +3 -3
  78. package/src/collection_editor/ui/HomePageEditorCollectionAction.tsx +4 -2
  79. package/src/collection_editor/ui/KanbanSetupAction.tsx +4 -3
  80. package/src/collection_editor/ui/MissingReferenceWidget.tsx +3 -2
  81. package/src/collection_editor/ui/NewCollectionButton.tsx +2 -1
  82. package/src/collection_editor/ui/NewCollectionCard.tsx +2 -1
  83. package/src/collection_editor/ui/PropertyAddColumnComponent.tsx +3 -3
  84. package/src/collection_editor/ui/collection_editor/CollectionDetailsForm.tsx +5 -50
  85. package/src/collection_editor/ui/collection_editor/CollectionEditorDialog.tsx +12 -20
  86. package/src/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.tsx +1 -3
  87. package/src/collection_editor/ui/collection_editor/CollectionRLSTab.tsx +17 -2
  88. package/src/collection_editor/ui/collection_editor/CollectionRelationsTab.tsx +3 -3
  89. package/src/collection_editor/ui/collection_editor/CollectionStudioView.tsx +2 -1
  90. package/src/collection_editor/ui/collection_editor/CollectionsStudioView.tsx +18 -12
  91. package/src/collection_editor/ui/collection_editor/DisplaySettingsForm.tsx +1 -2
  92. package/src/collection_editor/ui/collection_editor/GetCodeDialog.tsx +1 -2
  93. package/src/collection_editor/ui/collection_editor/PropertyFieldPreview.tsx +6 -6
  94. package/src/collection_editor/ui/collection_editor/SubcollectionsEditTab.tsx +4 -4
  95. package/src/collection_editor/ui/collection_editor/properties/MapPropertyField.tsx +2 -2
  96. package/src/collection_editor/ui/collection_editor/properties/ReferencePropertyField.tsx +15 -49
  97. package/src/collection_editor/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.tsx +4 -5
  98. package/src/collection_editor/ui/collection_editor/templates/pages_template.ts +1 -1
  99. package/src/collection_editor/ui/collection_editor/templates/products_template.ts +2 -2
  100. package/src/components/DefaultAppBar.tsx +2 -2
  101. package/src/components/DefaultDrawer.tsx +25 -17
  102. package/src/components/DrawerNavigationGroup.tsx +4 -4
  103. package/src/components/DrawerNavigationItem.tsx +6 -6
  104. package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +4 -4
  105. package/src/components/EntityCollectionTable/EntityCollectionTableProps.tsx +1 -1
  106. package/src/components/EntityCollectionTable/PropertyTableCell.tsx +4 -4
  107. package/src/components/EntityCollectionTable/column_utils.tsx +3 -3
  108. package/src/components/EntityCollectionTable/fields/TableMultipleRelationField.tsx +3 -3
  109. package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +3 -3
  110. package/src/components/EntityCollectionTable/fields/TableRelationField.tsx +4 -4
  111. package/src/components/EntityCollectionTable/fields/TableRelationSelectorField.tsx +3 -3
  112. package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +8 -2
  113. package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +1 -1
  114. package/src/components/EntityCollectionTable/internal/common.tsx +5 -5
  115. package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +1 -1
  116. package/src/components/EntityCollectionTable/table_bindings.tsx +45 -35
  117. package/src/components/EntityCollectionView/EntityBoardCard.tsx +18 -19
  118. package/src/components/EntityCollectionView/EntityCard.tsx +2 -2
  119. package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +42 -14
  120. package/src/components/EntityCollectionView/EntityCollectionCardView.tsx +4 -3
  121. package/src/components/EntityCollectionView/EntityCollectionListView.tsx +157 -54
  122. package/src/components/EntityCollectionView/EntityCollectionView.tsx +169 -75
  123. package/src/components/EntityCollectionView/EntityCollectionViewActions.tsx +23 -13
  124. package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +21 -12
  125. package/src/components/EntityCollectionView/FiltersDialog.tsx +7 -7
  126. package/src/components/EntityCollectionView/SplitListView.tsx +24 -8
  127. package/src/components/EntityCollectionView/useEntityPreviewSlots.ts +33 -5
  128. package/src/components/EntityEditView.tsx +85 -85
  129. package/src/components/EntitySidePanel.tsx +18 -10
  130. package/src/components/HomePage/ContentHomePage.tsx +24 -15
  131. package/src/components/HomePage/NavigationCard.tsx +4 -4
  132. package/src/components/HomePage/NavigationGroup.tsx +2 -2
  133. package/src/components/RebaseAuthGate.tsx +2 -0
  134. package/src/components/RebaseCMS.tsx +4 -3
  135. package/src/components/RebaseNavigation.tsx +8 -5
  136. package/src/components/ReferenceTable/EntitySelectionTable.tsx +4 -4
  137. package/src/components/ReferenceWidget.tsx +3 -3
  138. package/src/components/RelationSelector.tsx +33 -5
  139. package/src/components/SelectableTable/SelectableTable.tsx +6 -6
  140. package/src/components/UserSelector.tsx +1 -1
  141. package/src/components/admin/RolesView.tsx +10 -3
  142. package/src/components/admin/UsersView.tsx +13 -25
  143. package/src/components/app/Scaffold.tsx +4 -4
  144. package/src/components/field_configs.tsx +29 -32
  145. package/src/components/history/EntityHistoryView.tsx +12 -1
  146. package/src/editor/editor.tsx +2 -2
  147. package/src/form/EntityForm.tsx +5 -4
  148. package/src/form/PropertyFieldBinding.tsx +14 -10
  149. package/src/form/components/FieldHelperText.tsx +1 -1
  150. package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +3 -3
  151. package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +5 -5
  152. package/src/form/field_bindings/BlockFieldBinding.tsx +4 -4
  153. package/src/form/field_bindings/DateTimeFieldBinding.tsx +1 -1
  154. package/src/form/field_bindings/KeyValueFieldBinding.tsx +1 -1
  155. package/src/form/field_bindings/MapFieldBinding.tsx +7 -7
  156. package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +1 -1
  157. package/src/form/field_bindings/MultipleRelationFieldBinding.tsx +3 -3
  158. package/src/form/field_bindings/ReferenceAsStringFieldBinding.tsx +7 -7
  159. package/src/form/field_bindings/ReferenceFieldBinding.tsx +2 -2
  160. package/src/form/field_bindings/RelationFieldBinding.tsx +4 -4
  161. package/src/form/field_bindings/RepeatFieldBinding.tsx +5 -5
  162. package/src/form/field_bindings/SelectFieldBinding.tsx +1 -1
  163. package/src/form/field_bindings/StorageUploadFieldBinding.tsx +1 -1
  164. package/src/form/field_bindings/SwitchFieldBinding.tsx +1 -1
  165. package/src/form/field_bindings/TextFieldBinding.tsx +7 -7
  166. package/src/form/field_bindings/UserSelectFieldBinding.tsx +1 -1
  167. package/src/form/useClearRestoreValue.tsx +1 -1
  168. package/src/form/validation.ts +1 -1
  169. package/src/hooks/navigation/contexts/CollectionRegistryContext.tsx +2 -1
  170. package/src/hooks/navigation/useBuildCollectionRegistryController.tsx +15 -3
  171. package/src/hooks/navigation/useNavigationRegistry.ts +14 -3
  172. package/src/hooks/navigation/useResolvedViews.tsx +1 -3
  173. package/src/hooks/navigation/useTopLevelNavigation.ts +1 -1
  174. package/src/hooks/navigation/utils.ts +1 -1
  175. package/src/hooks/useEntityHistory.ts +7 -2
  176. package/src/preview/PropertyPreview.tsx +27 -23
  177. package/src/preview/components/StorageThumbnail.tsx +4 -1
  178. package/src/preview/property_previews/ArrayOfMapsPreview.tsx +1 -1
  179. package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +1 -1
  180. package/src/preview/property_previews/ArrayOfRelationsPreview.tsx +1 -1
  181. package/src/preview/property_previews/SkeletonPropertyComponent.tsx +3 -3
  182. package/src/preview/property_previews/StringPropertyPreview.tsx +3 -3
  183. package/src/routes/RebaseRoute.tsx +57 -11
  184. package/src/util/navigation_utils.ts +21 -2
  185. package/src/util/previews.ts +15 -6
  186. package/src/util/property_utils.tsx +3 -3
  187. package/dist/CollectionEditorDialog-B2M9lCyL.js.map +0 -1
  188. package/dist/CollectionsStudioView-WG6soyfs.js.map +0 -1
  189. package/dist/ContentHomePage-CDF_a6Lp.js.map +0 -1
  190. package/dist/PropertyEditView-DS67DxoT.js.map +0 -1
  191. package/dist/RolesView-CIuYBimF.js.map +0 -1
  192. package/dist/UsersView-B5zelXnH.js.map +0 -1
  193. package/dist/index-CBhrgpR7.js.map +0 -1
  194. package/dist/index-CHxgwt6E.js.map +0 -1
  195. package/dist/index-Dey5WJpO.js.map +0 -1
  196. package/dist/useEntityHistory-Dcj4zhGj.js.map +0 -1
  197. 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, forceFilter, 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;
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
- forceFilter?: FilterValues<Extract<keyof M, string>>;
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
- forceFilter?: FilterValues<keyof M extends string ? keyof M : never>;
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, forceFilter, AdditionalHeaderWidget }: PropertiesToColumnsParams<M>): VirtualTableColumn[];
16
+ export declare function propertiesToColumns<M extends Record<string, unknown>>({ properties, sortable, fixedFilter, AdditionalHeaderWidget }: PropertiesToColumnsParams<M>): VirtualTableColumn[];
@@ -10,7 +10,7 @@ type TableMultipleRelationFieldProps = {
10
10
  previewProperties?: string[];
11
11
  title?: string;
12
12
  relation: Relation;
13
- forceFilter?: FilterValues<string>;
13
+ fixedFilter?: FilterValues<string>;
14
14
  includeId?: boolean;
15
15
  includeEntityLink?: boolean;
16
16
  };
@@ -11,7 +11,7 @@ type TableReferenceFieldProps = {
11
11
  previewProperties?: string[];
12
12
  title?: string;
13
13
  path: string;
14
- forceFilter?: FilterValues<string>;
14
+ fixedFilter?: FilterValues<string>;
15
15
  includeId?: boolean;
16
16
  includeEntityLink?: boolean;
17
17
  };
@@ -11,7 +11,7 @@ type TableRelationFieldProps = {
11
11
  previewProperties?: string[];
12
12
  title?: string;
13
13
  relation: Relation;
14
- forceFilter?: FilterValues<string>;
14
+ fixedFilter?: FilterValues<string>;
15
15
  includeId?: boolean;
16
16
  includeEntityLink?: boolean;
17
17
  };
@@ -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
- forceFilter?: FilterValues<string>;
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, forceFilter, size }: RelationSelectorFieldProps): import("react/jsx-runtime").JSX.Element;
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
- parentCollectionIds?: string[];
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, parentCollectionIds, columnProperty, onEntityClick, selectionController, selectionEnabled, highlightedEntities, emptyComponent, deletedEntities }: EntityCollectionBoardViewProps<M>): import("react/jsx-runtime").JSX.Element;
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
- parentCollectionIds?: string[];
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
- parentCollectionIds: string[];
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, parentCollectionIds, onNewClick, onMultipleDeleteClick, selectionEnabled, path, selectionController, tableController, collectionEntitiesCount, compact, children }: EntityCollectionViewActionsProps<M>): import("react/jsx-runtime").JSX.Element;
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
- parentCollectionIds: string[];
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, parentCollectionIds, path, selectionController, tableController, collectionEntitiesCount, resolvedProperties, compact }: EntityCollectionViewStartActionsProps<M>): import("react/jsx-runtime").JSX.Element;
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
- forceFilter?: FilterValues<any>;
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, forceFilter }: FiltersDialogProps): import("react/jsx-runtime").JSX.Element;
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
- parentCollectionIds?: string[];
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, parentCollectionIds, selectedEntityId, selectedTab, toolbar, children }: SplitListViewProps<M>): import("react/jsx-runtime").JSX.Element;
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
- parentCollectionIds: string[];
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, parentCollectionIds, onValuesModified, onSaved, onTabChange, entity, initialDirtyValues, dataLoading, layout, barActions, status, setStatus, formProps, canEdit }: EntityEditViewProps<M> & {
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
- forceFilter?: FilterValues<string>;
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, forceFilter, maxSelection }: EntitySelectionProps<M>): import("react/jsx-runtime").JSX.Element;
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
- forceFilter?: FilterValues<string>;
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, forceFilter, size, className, includeId, includeEntityLink }: ReferenceWidgetProps<M>): import("react/jsx-runtime").JSX.Element;
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
- forceFilter?: FilterValues<string>;
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
- forceFilter?: FilterValues<keyof M extends string ? keyof M : never>;
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, forceFilter, highlightedRow, endAdornment, AddColumnComponent, onColumnsOrderChange, extraData }: SelectableTableProps<M>) => import("react/jsx-runtime").JSX.Element;
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 p-12") }),
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] p-12 bg-transparent resize-none font-mono focus:ring-0", proseClass), style: {
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",