@firecms/core 3.0.0-canary.50 → 3.0.0-canary.51
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/core/Drawer.d.ts +5 -12
- package/dist/core/DrawerNavigationItem.d.ts +9 -0
- package/dist/core/Scaffold.d.ts +6 -9
- package/dist/core/index.d.ts +3 -4
- package/dist/hooks/index.d.ts +1 -0
- package/dist/index.es.js +708 -690
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/util/icon_synonyms.d.ts +1 -0
- package/package.json +4 -4
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +526 -525
- package/src/components/EntityView.tsx +1 -1
- package/src/components/PropertyIdCopyTooltipContent.tsx +2 -3
- package/src/components/ReferenceWidget.tsx +1 -1
- package/src/components/common/types.tsx +1 -1
- package/src/core/Drawer.tsx +14 -66
- package/src/core/DrawerNavigationItem.tsx +62 -0
- package/src/core/FireCMS.tsx +4 -4
- package/src/core/Scaffold.tsx +75 -61
- package/src/core/index.tsx +3 -4
- package/src/form/EntityForm.tsx +2 -1
- package/src/hooks/index.tsx +1 -0
- package/src/types/storage.ts +1 -1
- package/src/util/icon_synonyms.ts +3 -2
- package/dist/internal/useBuildCustomizationController.d.ts +0 -2
- package/src/internal/useBuildCustomizationController.tsx +0 -5
package/dist/core/Drawer.d.ts
CHANGED
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
/**
|
|
3
2
|
* Props used in case you need to override the default drawer
|
|
4
3
|
* @group Core
|
|
5
4
|
*/
|
|
6
|
-
export type DrawerProps
|
|
5
|
+
export type DrawerProps = {
|
|
7
6
|
hovered: boolean;
|
|
8
7
|
drawerOpen: boolean;
|
|
9
|
-
|
|
8
|
+
openDrawer: () => void;
|
|
9
|
+
closeDrawer: () => void;
|
|
10
|
+
autoOpenDrawer?: boolean;
|
|
10
11
|
};
|
|
11
12
|
/**
|
|
12
13
|
* Default drawer used in the CMS
|
|
13
14
|
* @group Core
|
|
14
15
|
*/
|
|
15
|
-
export declare function Drawer(
|
|
16
|
-
export declare function DrawerNavigationItem({ name, icon, drawerOpen, tooltipsOpen, url, onClick }: {
|
|
17
|
-
icon: React.ReactElement;
|
|
18
|
-
name: string;
|
|
19
|
-
tooltipsOpen: boolean;
|
|
20
|
-
drawerOpen: boolean;
|
|
21
|
-
url: string;
|
|
22
|
-
onClick?: () => void;
|
|
23
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function Drawer(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function DrawerNavigationItem({ name, icon, drawerOpen, tooltipsOpen, url, onClick }: {
|
|
3
|
+
icon: React.ReactElement;
|
|
4
|
+
name: string;
|
|
5
|
+
tooltipsOpen: boolean;
|
|
6
|
+
drawerOpen: boolean;
|
|
7
|
+
url: string;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
package/dist/core/Scaffold.d.ts
CHANGED
|
@@ -2,10 +2,11 @@ import React from "react";
|
|
|
2
2
|
import { DrawerProps } from "./Drawer";
|
|
3
3
|
import { FireCMSAppBarProps } from "../components";
|
|
4
4
|
export declare const DRAWER_WIDTH = 280;
|
|
5
|
+
export declare function useDrawer(): DrawerProps;
|
|
5
6
|
/**
|
|
6
7
|
* @group Core
|
|
7
8
|
*/
|
|
8
|
-
export interface ScaffoldProps<
|
|
9
|
+
export interface ScaffoldProps<ExtraAppbarProps = object> {
|
|
9
10
|
/**
|
|
10
11
|
* Name of the app, displayed as the main title and in the tab title
|
|
11
12
|
*/
|
|
@@ -19,14 +20,10 @@ export interface ScaffoldProps<ExtraDrawerProps = object, ExtraAppbarProps = obj
|
|
|
19
20
|
*/
|
|
20
21
|
includeDrawer?: boolean;
|
|
21
22
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
23
|
+
* You can define a custom drawer to be displayed in the scaffold.
|
|
24
|
+
* Use the hook `useDrawer` to access the context values.
|
|
24
25
|
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Additional props passed to the custom Drawer
|
|
28
|
-
*/
|
|
29
|
-
drawerProps?: Partial<DrawerProps> & ExtraDrawerProps;
|
|
26
|
+
drawer?: React.ReactNode;
|
|
30
27
|
/**
|
|
31
28
|
* Open the drawer on hover
|
|
32
29
|
*/
|
|
@@ -52,4 +49,4 @@ export interface ScaffoldProps<ExtraDrawerProps = object, ExtraAppbarProps = obj
|
|
|
52
49
|
* @constructor
|
|
53
50
|
* @group Core
|
|
54
51
|
*/
|
|
55
|
-
export declare const Scaffold: React.NamedExoticComponent<React.PropsWithChildren<ScaffoldProps<object
|
|
52
|
+
export declare const Scaffold: React.NamedExoticComponent<React.PropsWithChildren<ScaffoldProps<object>>>;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export * from "./FireCMS";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export { Drawer, DrawerNavigationItem } from "./Drawer";
|
|
2
|
+
export * from "./Scaffold";
|
|
3
|
+
export * from "./Drawer";
|
|
4
|
+
export * from "./DrawerNavigationItem";
|
|
6
5
|
export * from "./field_configs";
|
|
7
6
|
export * from "./SideDialogs";
|
|
8
7
|
export * from "./NavigationRoutes";
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./useNavigationController";
|
|
|
7
7
|
export * from "./useResolvedNavigationFrom";
|
|
8
8
|
export * from "./useStorageSource";
|
|
9
9
|
export * from "./useAuthController";
|
|
10
|
+
export * from "./useDialogsController";
|
|
10
11
|
export * from "./useSideDialogsController";
|
|
11
12
|
export * from "./useSideEntityController";
|
|
12
13
|
export * from "./useFireCMSContext";
|