@firecms/core 3.0.0-canary.168 → 3.0.0-canary.169

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 (96) hide show
  1. package/dist/components/EntityCollectionTable/EntityCollectionRowActions.d.ts +2 -1
  2. package/dist/components/EntityCollectionTable/EntityCollectionTable.d.ts +2 -2
  3. package/dist/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +15 -1
  4. package/dist/components/EntityCollectionTable/index.d.ts +1 -1
  5. package/dist/components/EntityCollectionView/EntityCollectionView.d.ts +4 -0
  6. package/dist/components/SelectableTable/SelectableTable.d.ts +12 -2
  7. package/dist/components/UnsavedChangesDialog.d.ts +8 -0
  8. package/dist/components/VirtualTable/VirtualTableProps.d.ts +13 -0
  9. package/dist/components/common/index.d.ts +1 -1
  10. package/dist/components/common/{useDataSourceEntityCollectionTableController.d.ts → useDataSourceTableController.d.ts} +10 -2
  11. package/dist/components/common/useDebouncedCallback.d.ts +1 -0
  12. package/dist/components/common/useScrollRestoration.d.ts +14 -0
  13. package/dist/contexts/BreacrumbsContext.d.ts +8 -0
  14. package/dist/core/EntityEditView.d.ts +25 -7
  15. package/dist/core/FireCMSRouter.d.ts +4 -0
  16. package/dist/core/NavigationRoutes.d.ts +0 -1
  17. package/dist/core/index.d.ts +2 -1
  18. package/dist/hooks/data/useEntityFetch.d.ts +2 -1
  19. package/dist/hooks/useBreadcrumbsController.d.ts +26 -0
  20. package/dist/hooks/useBuildNavigationController.d.ts +0 -1
  21. package/dist/index.es.js +2344 -1305
  22. package/dist/index.es.js.map +1 -1
  23. package/dist/index.umd.js +2344 -1306
  24. package/dist/index.umd.js.map +1 -1
  25. package/dist/internal/useUnsavedChangesDialog.d.ts +7 -9
  26. package/dist/routes/CustomCMSRoute.d.ts +4 -0
  27. package/dist/routes/FireCMSRoute.d.ts +1 -0
  28. package/dist/routes/HomePageRoute.d.ts +3 -0
  29. package/dist/types/collections.d.ts +18 -6
  30. package/dist/types/datasource.d.ts +2 -2
  31. package/dist/types/dialogs_controller.d.ts +3 -7
  32. package/dist/types/entities.d.ts +1 -1
  33. package/dist/types/entity_actions.d.ts +1 -6
  34. package/dist/types/navigation.d.ts +28 -12
  35. package/dist/types/plugins.d.ts +1 -0
  36. package/dist/types/side_entity_controller.d.ts +1 -1
  37. package/dist/util/entity_cache.d.ts +23 -0
  38. package/dist/util/navigation_from_path.d.ts +5 -1
  39. package/dist/util/navigation_utils.d.ts +12 -1
  40. package/package.json +5 -5
  41. package/src/components/CircularProgressCenter.tsx +1 -1
  42. package/src/components/DeleteEntityDialog.tsx +1 -1
  43. package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +40 -19
  44. package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +10 -4
  45. package/src/components/EntityCollectionTable/EntityCollectionTableProps.tsx +18 -1
  46. package/src/components/EntityCollectionTable/index.tsx +1 -1
  47. package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +3 -3
  48. package/src/components/EntityCollectionView/EntityCollectionView.tsx +79 -38
  49. package/src/components/NotFoundPage.tsx +2 -2
  50. package/src/components/ReferenceTable/ReferenceSelectionTable.tsx +9 -5
  51. package/src/components/SelectableTable/SelectableTable.tsx +18 -3
  52. package/src/components/UnsavedChangesDialog.tsx +42 -0
  53. package/src/components/VirtualTable/VirtualTable.tsx +19 -2
  54. package/src/components/VirtualTable/VirtualTableProps.tsx +15 -0
  55. package/src/components/VirtualTable/fields/VirtualTableInput.tsx +1 -1
  56. package/src/components/common/default_entity_actions.tsx +24 -10
  57. package/src/components/common/index.ts +1 -1
  58. package/src/components/common/{useDataSourceEntityCollectionTableController.tsx → useDataSourceTableController.tsx} +122 -13
  59. package/src/components/common/useDebouncedCallback.tsx +20 -0
  60. package/src/components/common/useScrollRestoration.tsx +68 -0
  61. package/src/contexts/BreacrumbsContext.tsx +38 -0
  62. package/src/contexts/DialogsProvider.tsx +2 -3
  63. package/src/core/DefaultAppBar.tsx +28 -4
  64. package/src/core/EntityEditView.tsx +457 -296
  65. package/src/core/EntitySidePanel.tsx +72 -6
  66. package/src/core/FireCMS.tsx +7 -4
  67. package/src/core/FireCMSRouter.tsx +17 -0
  68. package/src/core/NavigationRoutes.tsx +15 -28
  69. package/src/core/SideDialogs.tsx +10 -5
  70. package/src/core/index.tsx +4 -2
  71. package/src/hooks/data/save.ts +1 -1
  72. package/src/hooks/data/useCollectionFetch.tsx +1 -1
  73. package/src/hooks/data/useEntityFetch.tsx +5 -1
  74. package/src/hooks/useBreadcrumbsController.tsx +31 -0
  75. package/src/hooks/useBuildNavigationController.tsx +59 -21
  76. package/src/hooks/useLargeLayout.tsx +0 -35
  77. package/src/hooks/useResolvedNavigationFrom.tsx +4 -6
  78. package/src/internal/useBuildSideDialogsController.tsx +4 -2
  79. package/src/internal/useBuildSideEntityController.tsx +157 -77
  80. package/src/internal/useUnsavedChangesDialog.tsx +126 -92
  81. package/src/routes/CustomCMSRoute.tsx +21 -0
  82. package/src/routes/FireCMSRoute.tsx +230 -0
  83. package/src/routes/HomePageRoute.tsx +17 -0
  84. package/src/types/collections.ts +19 -6
  85. package/src/types/datasource.ts +2 -1
  86. package/src/types/dialogs_controller.tsx +3 -7
  87. package/src/types/entities.ts +1 -1
  88. package/src/types/entity_actions.tsx +1 -7
  89. package/src/types/navigation.ts +35 -16
  90. package/src/types/plugins.tsx +1 -0
  91. package/src/types/side_entity_controller.tsx +1 -1
  92. package/src/util/entity_cache.ts +196 -0
  93. package/src/util/navigation_from_path.ts +10 -2
  94. package/src/util/navigation_utils.ts +53 -1
  95. package/src/util/parent_references_from_path.ts +3 -3
  96. /package/src/util/{common.tsx → common.ts} +0 -0
@@ -12,7 +12,7 @@ import { CollectionSize, Entity, EntityAction, EntityCollection, SelectionContro
12
12
  *
13
13
  * @group Collection components
14
14
  */
15
- export declare const EntityCollectionRowActions: ({ entity, collection, fullPath, width, frozen, isSelected, selectionEnabled, size, highlightEntity, onCollectionChange, unhighlightEntity, actions, hideId, selectionController, }: {
15
+ export declare const EntityCollectionRowActions: ({ entity, collection, fullPath, width, frozen, isSelected, selectionEnabled, size, highlightEntity, onCollectionChange, unhighlightEntity, actions, hideId, selectionController, openEntityMode }: {
16
16
  entity: Entity<any>;
17
17
  collection?: EntityCollection<any>;
18
18
  fullPath?: string;
@@ -27,4 +27,5 @@ export declare const EntityCollectionRowActions: ({ entity, collection, fullPath
27
27
  selectionController?: SelectionController;
28
28
  highlightEntity?: (entity: Entity<any>) => void;
29
29
  unhighlightEntity?: (entity: Entity<any>) => void;
30
+ openEntityMode: "side_panel" | "full_screen";
30
31
  }) => import("react/jsx-runtime").JSX.Element;
@@ -17,11 +17,11 @@ import { EntityCollectionTableProps } from "./EntityCollectionTableProps";
17
17
  *
18
18
  * The data displayed in the table is managed by a {@link EntityTableController}.
19
19
  * You can build the default, bound to a path in the datasource, by using the hook
20
- * {@link useDataSourceEntityCollectionTableController}
20
+ * {@link useDataSourceTableController}
21
21
  *
22
22
  * @see EntityCollectionTableProps
23
23
  * @see EntityCollectionView
24
24
  * @see VirtualTable
25
25
  * @group Components
26
26
  */
27
- export declare const EntityCollectionTable: <M extends Record<string, any>, USER extends User>({ className, style, forceFilter, actionsStart, actions, title, tableRowActionsBuilder, uniqueFieldValidator, getPropertyFor, onValueChange, selectionController, highlightedEntities, onEntityClick, onColumnResize, onSizeChanged, textSearchEnabled, hoverRow, inlineEditing, additionalFields, displayedColumnIds, defaultSize, properties, tableController, filterable, sortable, endAdornment, AddColumnComponent, AdditionalHeaderWidget, additionalIDHeaderWidget, emptyComponent, getIdColumnWidth, onTextSearchClick, textSearchLoading, enablePopupIcon }: EntityCollectionTableProps<M>) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const EntityCollectionTable: <M extends Record<string, any> = any, USER extends User = any>({ className, style, forceFilter, actionsStart, actions, title, tableRowActionsBuilder, uniqueFieldValidator, getPropertyFor, onValueChange, selectionController, highlightedEntities, onEntityClick, onColumnResize, initialScroll, onScroll, onSizeChanged, textSearchEnabled, hoverRow, inlineEditing, additionalFields, displayedColumnIds, defaultSize, properties, tableController, filterable, sortable, endAdornment, AddColumnComponent, AdditionalHeaderWidget, additionalIDHeaderWidget, emptyComponent, getIdColumnWidth, onTextSearchClick, textSearchLoading, enablePopupIcon, openEntityMode }: EntityCollectionTableProps<M>) => import("react/jsx-runtime").JSX.Element;
@@ -48,6 +48,19 @@ export type EntityCollectionTableProps<M extends Record<string, any>, USER exten
48
48
  * Callback when a column is resized
49
49
  */
50
50
  onColumnResize?(params: OnColumnResizeParams): void;
51
+ /**
52
+ * Initial scroll position
53
+ */
54
+ initialScroll?: number;
55
+ /**
56
+ * Callback when the table is scrolled
57
+ * @param props
58
+ */
59
+ onScroll?: (props: {
60
+ scrollDirection: "forward" | "backward";
61
+ scrollOffset: number;
62
+ scrollUpdateWasRequested: boolean;
63
+ }) => void;
51
64
  /**
52
65
  * Callback when the selected size of the table is changed
53
66
  */
@@ -63,7 +76,7 @@ export type EntityCollectionTableProps<M extends Record<string, any>, USER exten
63
76
  actions?: React.ReactNode;
64
77
  /**
65
78
  * Controller holding the logic for the table
66
- * {@link useDataSourceEntityCollectionTableController}
79
+ * {@link useDataSourceTableController}
67
80
  * {@link EntityTableController}
68
81
  */
69
82
  tableController: EntityTableController<M>;
@@ -90,6 +103,7 @@ export type EntityCollectionTableProps<M extends Record<string, any>, USER exten
90
103
  onTextSearchClick?: () => void;
91
104
  textSearchLoading?: boolean;
92
105
  enablePopupIcon: boolean;
106
+ openEntityMode?: "side_panel" | "full_screen";
93
107
  };
94
108
  export type GetPropertyForProps<M extends Record<string, any>> = {
95
109
  propertyKey: string;
@@ -2,5 +2,5 @@ export { EntityCollectionTable } from "./EntityCollectionTable";
2
2
  export type { EntityCollectionTableProps, } from "./EntityCollectionTableProps";
3
3
  export * from "./PropertyTableCell";
4
4
  export * from "./EntityCollectionRowActions";
5
- export * from "../common/useDataSourceEntityCollectionTableController";
5
+ export * from "../common/useDataSourceTableController";
6
6
  export * from "./column_utils";
@@ -18,6 +18,10 @@ export type EntityCollectionViewProps<M extends Record<string, any>> = {
18
18
  */
19
19
  isSubCollection?: boolean;
20
20
  className?: string;
21
+ /**
22
+ * If true, this view will store its filter and sorting status in the url params
23
+ */
24
+ updateUrl?: boolean;
21
25
  } & EntityCollection<M>;
22
26
  /**
23
27
  * This component is in charge of binding a datasource path with an {@link EntityCollection}
@@ -34,7 +34,7 @@ export type SelectableTableProps<M extends Record<string, any>> = {
34
34
  hoverRow?: boolean;
35
35
  /**
36
36
  * Controller holding the logic for the table
37
- * {@link useDataSourceEntityCollectionTableController}
37
+ * {@link useDataSourceTableController}
38
38
  * {@link EntityTableController}
39
39
  */
40
40
  tableController: EntityTableController<M>;
@@ -44,6 +44,16 @@ export type SelectableTableProps<M extends Record<string, any>> = {
44
44
  forceFilter?: FilterValues<keyof M extends string ? keyof M : never>;
45
45
  highlightedRow?: (data: Entity<M>) => boolean;
46
46
  size?: CollectionSize;
47
+ initialScroll?: number;
48
+ /**
49
+ * Callback when the table is scrolled
50
+ * @param props
51
+ */
52
+ onScroll?: (props: {
53
+ scrollDirection: "forward" | "backward";
54
+ scrollOffset: number;
55
+ scrollUpdateWasRequested: boolean;
56
+ }) => void;
47
57
  emptyComponent?: React.ReactNode;
48
58
  endAdornment?: React.ReactNode;
49
59
  AddColumnComponent?: React.ComponentType;
@@ -65,7 +75,7 @@ export type SelectableTableProps<M extends Record<string, any>> = {
65
75
  *
66
76
  * The data displayed in the table is managed by a {@link EntityTableController}.
67
77
  * You can build the default, bound to a path in the datasource, by using the hook
68
- * {@link useDataSourceEntityCollectionTableController}
78
+ * {@link useDataSourceTableController}
69
79
  *
70
80
  * @see EntityCollectionTableProps
71
81
  * @see EntityCollectionView
@@ -0,0 +1,8 @@
1
+ export interface UnsavedChangesDialogProps {
2
+ open: boolean;
3
+ body?: React.ReactNode;
4
+ title?: string;
5
+ handleOk: () => void;
6
+ handleCancel: () => void;
7
+ }
8
+ export declare function UnsavedChangesDialog({ open, handleOk, handleCancel, body, title }: UnsavedChangesDialogProps): import("react/jsx-runtime").JSX.Element;
@@ -66,6 +66,15 @@ export interface VirtualTableProps<T extends Record<string, any>> {
66
66
  * @param filter
67
67
  */
68
68
  onFilterUpdate?: (filter?: VirtualTableFilterValues<any> | undefined) => void;
69
+ /**
70
+ * Callback when the table is scrolled
71
+ * @param props
72
+ */
73
+ onScroll?: (props: {
74
+ scrollDirection: "forward" | "backward";
75
+ scrollOffset: number;
76
+ scrollUpdateWasRequested: boolean;
77
+ }) => void;
69
78
  /**
70
79
  * Default sort applied to this collection
71
80
  */
@@ -119,6 +128,10 @@ export interface VirtualTableProps<T extends Record<string, any>> {
119
128
  * @param column
120
129
  */
121
130
  AddColumnComponent?: React.ComponentType;
131
+ /**
132
+ * Initial scroll position
133
+ */
134
+ initialScroll?: number;
122
135
  /**
123
136
  * Debug mode
124
137
  */
@@ -1,6 +1,6 @@
1
1
  export * from "./types";
2
2
  export * from "./useDebouncedData";
3
3
  export * from "./useColumnsIds";
4
- export * from "./useDataSourceEntityCollectionTableController";
4
+ export * from "./useDataSourceTableController";
5
5
  export * from "./useTableSearchHelper";
6
6
  export * from "./default_entity_actions";
@@ -1,5 +1,6 @@
1
1
  import { Entity, EntityCollection, EntityTableController, FilterValues, User } from "../../types";
2
- export type DataSourceEntityCollectionTableControllerProps<M extends Record<string, any> = any> = {
2
+ import { ScrollRestorationController } from "./useScrollRestoration";
3
+ export type DataSourceTableControllerProps<M extends Record<string, any> = any> = {
3
4
  /**
4
5
  * Full path where the data of this table is located
5
6
  */
@@ -18,6 +19,11 @@ export type DataSourceEntityCollectionTableControllerProps<M extends Record<stri
18
19
  * Force filter to be applied to the table.
19
20
  */
20
21
  forceFilter?: FilterValues<string>;
22
+ scrollRestoration?: ScrollRestorationController;
23
+ /**
24
+ * When set to true the filters and sort will be updated in the URL
25
+ */
26
+ updateUrl?: boolean;
21
27
  };
22
28
  /**
23
29
  * Use this hook to build a controller for the {@link EntityCollectionTable}.
@@ -28,8 +34,10 @@ export type DataSourceEntityCollectionTableControllerProps<M extends Record<stri
28
34
  *
29
35
  * @param fullPath
30
36
  * @param collection
37
+ * @param scrollRestoration
31
38
  * @param entitiesDisplayedFirst
32
39
  * @param lastDeleteTimestamp
33
40
  * @param forceFilterFromProps
41
+ * @param updateUrl
34
42
  */
35
- export declare function useDataSourceEntityCollectionTableController<M extends Record<string, any> = any, USER extends User = User>({ fullPath, collection, entitiesDisplayedFirst, lastDeleteTimestamp, forceFilter: forceFilterFromProps, }: DataSourceEntityCollectionTableControllerProps<M>): EntityTableController<M>;
43
+ export declare function useDataSourceTableController<M extends Record<string, any> = any, USER extends User = User>({ fullPath, collection, scrollRestoration, entitiesDisplayedFirst, lastDeleteTimestamp, forceFilter: forceFilterFromProps, updateUrl }: DataSourceTableControllerProps<M>): EntityTableController<M>;
@@ -0,0 +1 @@
1
+ export declare function useDebounceCallback<T extends (...args: any[]) => any>(callback?: T, delay?: number): T;
@@ -0,0 +1,14 @@
1
+ import { Entity, FilterValues } from "../../types";
2
+ export type ScrollRestorationController = {
3
+ getCollectionScroll: (fullPath: string, filters?: FilterValues<any>) => {
4
+ scrollOffset: number;
5
+ data: Entity<any>[];
6
+ } | undefined;
7
+ updateCollectionScroll: (props: {
8
+ fullPath: string;
9
+ scrollOffset: number;
10
+ filters?: FilterValues<any>;
11
+ data: Entity<any>[];
12
+ }) => void;
13
+ };
14
+ export declare function useScrollRestoration(): ScrollRestorationController;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { BreadcrumbsController } from "../hooks/useBreadcrumbsController";
3
+ export declare const BreadcrumbContext: React.Context<BreadcrumbsController>;
4
+ interface BreadcrumbsProviderProps {
5
+ children: React.ReactNode;
6
+ }
7
+ export declare const BreadcrumbsProvider: React.FC<BreadcrumbsProviderProps>;
8
+ export {};
@@ -1,17 +1,34 @@
1
- import { Entity, EntityCollection, EntityValues, ResolvedEntityCollection, User } from "../types";
1
+ import React from "react";
2
+ import { Entity, EntityCollection, EntityStatus, EntityValues, ResolvedEntityCollection, User } from "../types";
2
3
  import { ValidationError } from "yup";
4
+ export type OnUpdateParams = {
5
+ entity: Entity<any>;
6
+ status: EntityStatus;
7
+ path: string;
8
+ entityId?: string;
9
+ selectedTab?: string;
10
+ collection: EntityCollection<any>;
11
+ };
12
+ export type OnTabChangeParams<M extends Record<string, any>> = {
13
+ path: string;
14
+ entityId?: string;
15
+ selectedTab?: string;
16
+ collection: EntityCollection<M>;
17
+ };
3
18
  export interface EntityEditViewProps<M extends Record<string, any>> {
4
19
  path: string;
5
20
  collection: EntityCollection<M>;
6
21
  entityId?: string;
22
+ databaseId?: string;
7
23
  copy?: boolean;
8
- selectedSubPath?: string;
24
+ selectedTab?: string;
9
25
  parentCollectionIds: string[];
10
- onValuesAreModified: (modified: boolean) => void;
11
- onUpdate?: (params: {
12
- entity: Entity<any>;
13
- }) => void;
26
+ onValuesModified?: (modified: boolean) => void;
27
+ onSaved?: (params: OnUpdateParams) => void;
14
28
  onClose?: () => void;
29
+ onTabChange?: (props: OnTabChangeParams<M>) => void;
30
+ layout?: "side_panel" | "full_screen";
31
+ barActions?: React.ReactNode;
15
32
  }
16
33
  /**
17
34
  * This is the default view that is used as the content of a side panel when
@@ -20,8 +37,9 @@ export interface EntityEditViewProps<M extends Record<string, any>> {
20
37
  * side panel.
21
38
  */
22
39
  export declare function EntityEditView<M extends Record<string, any>, USER extends User>({ entityId, ...props }: EntityEditViewProps<M>): import("react/jsx-runtime").JSX.Element;
23
- export declare function EntityEditViewInner<M extends Record<string, any>>({ path, entityId: entityIdProp, selectedSubPath: selectedSubPathProp, copy, collection, parentCollectionIds, onValuesAreModified, onUpdate, onClose, entity, dataLoading }: EntityEditViewProps<M> & {
40
+ export declare function EntityEditViewInner<M extends Record<string, any>>({ path, entityId: entityIdProp, selectedTab: selectedTabProp, copy, collection, parentCollectionIds, onValuesModified, onSaved, onClose, onTabChange, entity, cachedDirtyValues, dataLoading, layout, barActions }: EntityEditViewProps<M> & {
24
41
  entity?: Entity<M>;
42
+ cachedDirtyValues?: Partial<M>;
25
43
  dataLoading: boolean;
26
44
  }): import("react/jsx-runtime").JSX.Element;
27
45
  export type EntityFormSaveParams<M extends Record<string, any>> = {
@@ -0,0 +1,4 @@
1
+ export declare function FireCMSRouter({ children, basePath }: {
2
+ children: React.ReactNode;
3
+ basePath?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -15,7 +15,6 @@ export type NavigationRoutesProps = {
15
15
  * or the home route) related to a {@link NavigationController}.
16
16
  * This component needs a parent {@link FireCMS}
17
17
  *
18
-
19
18
  * @group Components
20
19
  */
21
20
  export declare const NavigationRoutes: React.NamedExoticComponent<NavigationRoutesProps>;
@@ -1,7 +1,8 @@
1
1
  export * from "./FireCMS";
2
- export * from "../app/Scaffold";
3
2
  export * from "./DefaultDrawer";
4
3
  export * from "./DrawerNavigationItem";
5
4
  export * from "./field_configs";
6
5
  export * from "./SideDialogs";
7
6
  export * from "./NavigationRoutes";
7
+ export * from "./FireCMSRouter";
8
+ export * from "../app";
@@ -5,6 +5,7 @@ import { Entity, EntityCollection, User } from "../../types";
5
5
  export interface EntityFetchProps<M extends Record<string, any>, USER extends User = User> {
6
6
  path: string;
7
7
  entityId?: string;
8
+ databaseId?: string;
8
9
  collection: EntityCollection<M, USER>;
9
10
  useCache?: boolean;
10
11
  }
@@ -25,4 +26,4 @@ export interface EntityFetchResult<M extends Record<string, any>> {
25
26
  * @param useCache
26
27
  * @group Hooks and utilities
27
28
  */
28
- export declare function useEntityFetch<M extends Record<string, any>, USER extends User>({ path: inputPath, entityId, collection, useCache }: EntityFetchProps<M, USER>): EntityFetchResult<M>;
29
+ export declare function useEntityFetch<M extends Record<string, any>, USER extends User>({ path: inputPath, entityId, collection, databaseId, useCache }: EntityFetchProps<M, USER>): EntityFetchResult<M>;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @group Hooks and utilities
3
+ */
4
+ export interface BreadcrumbsController {
5
+ breadcrumbs: BreadcrumbEntry[];
6
+ set: (props: {
7
+ breadcrumbs: BreadcrumbEntry[];
8
+ }) => void;
9
+ }
10
+ /**
11
+ * @group Hooks and utilities
12
+ */
13
+ export interface BreadcrumbEntry {
14
+ title: string;
15
+ url: string;
16
+ }
17
+ /**
18
+ * Hook to retrieve the BreadcrumbsController.
19
+ *
20
+ * Consider that in order to use this hook you need to have a parent
21
+ * `FireCMS`
22
+ *
23
+ * @see BreadcrumbsController
24
+ * @group Hooks and utilities
25
+ */
26
+ export declare const useBreadcrumbsController: () => BreadcrumbsController;
@@ -20,4 +20,3 @@ export type BuildNavigationContextProps<EC extends EntityCollection, USER extend
20
20
  injectCollections?: (collections: EntityCollection[]) => EntityCollection[];
21
21
  };
22
22
  export declare function useBuildNavigationController<EC extends EntityCollection, USER extends User>(props: BuildNavigationContextProps<EC, USER>): NavigationController;
23
- export declare function getSidePanelKey(path: string, entityId?: string): string;