@firecms/core 3.0.0-canary.289 → 3.0.0-canary.290
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/components/HomePage/HomePageDnD.d.ts +2 -1
- package/dist/form/PropertyFieldBinding.d.ts +1 -1
- package/dist/index.es.js +328 -193
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +329 -194
- package/dist/index.umd.js.map +1 -1
- package/dist/types/fields.d.ts +8 -0
- package/dist/types/properties.d.ts +32 -6
- package/dist/util/make_properties_editable.d.ts +1 -2
- package/dist/util/useStorageUploadController.d.ts +1 -0
- package/package.json +15 -15
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +5 -0
- package/src/components/HomePage/DefaultHomePage.tsx +13 -9
- package/src/components/HomePage/HomePageDnD.tsx +140 -38
- package/src/components/PropertyCollectionView.tsx +5 -5
- package/src/components/SelectableTable/SelectableTable.tsx +0 -12
- package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +2 -1
- package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +0 -1
- package/src/form/EntityForm.tsx +3 -3
- package/src/form/PropertyFieldBinding.tsx +4 -4
- package/src/form/components/LocalChangesMenu.tsx +10 -6
- package/src/form/field_bindings/BlockFieldBinding.tsx +1 -0
- package/src/hooks/useBuildNavigationController.tsx +101 -29
- package/src/types/fields.tsx +10 -0
- package/src/types/properties.ts +35 -6
- package/src/util/join_collections.ts +3 -3
- package/src/util/make_properties_editable.ts +0 -22
- package/src/util/useStorageUploadController.tsx +71 -34
|
@@ -16,7 +16,7 @@ export declare function SortableNavigationGroup({ groupName, children, disabled
|
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export declare function useHomePageDnd({ items
|
|
19
|
+
export declare function useHomePageDnd({ items, setItems, disabled, onCardMovedBetweenGroups, onGroupMoved, onNewGroupDrop, onPersist }: {
|
|
20
20
|
items: {
|
|
21
21
|
name: string;
|
|
22
22
|
entries: NavigationEntry[];
|
|
@@ -67,6 +67,7 @@ export declare function useHomePageDnd({ items: dndItems, setItems: setDndItems,
|
|
|
67
67
|
dialogOpenForGroup: string | null;
|
|
68
68
|
setDialogOpenForGroup: React.Dispatch<React.SetStateAction<string | null>>;
|
|
69
69
|
handleRenameGroup: (oldName: string, newName: string) => void;
|
|
70
|
+
handleDialogClose: () => void;
|
|
70
71
|
isHoveringNewGroupDropZone: boolean;
|
|
71
72
|
setIsHoveringNewGroupDropZone: React.Dispatch<React.SetStateAction<boolean>>;
|
|
72
73
|
};
|
|
@@ -26,5 +26,5 @@ import { CMSType, PropertyFieldBindingProps } from "../types";
|
|
|
26
26
|
* @group Form custom fields
|
|
27
27
|
*/
|
|
28
28
|
export declare const PropertyFieldBinding: typeof PropertyFieldBindingInternal;
|
|
29
|
-
declare function PropertyFieldBindingInternal<T extends CMSType = CMSType, M extends Record<string, any> = any>({ propertyKey, property, context, includeDescription, underlyingValueHasChanged, disabled: disabledProp, partOfArray, minimalistView, autoFocus, index, size, onPropertyChange, }: PropertyFieldBindingProps<T, M>): ReactElement<PropertyFieldBindingProps<T, M>>;
|
|
29
|
+
declare function PropertyFieldBindingInternal<T extends CMSType = CMSType, M extends Record<string, any> = any>({ propertyKey, property, context, includeDescription, underlyingValueHasChanged, disabled: disabledProp, partOfArray, partOfBlock, minimalistView, autoFocus, index, size, onPropertyChange, }: PropertyFieldBindingProps<T, M>): ReactElement<PropertyFieldBindingProps<T, M>>;
|
|
30
30
|
export {};
|