@firecms/core 3.1.0-canary.1df3b2c → 3.1.0-canary.8958c1b
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/EntityCollectionTable/internal/popup_field/useDraggable.d.ts +2 -2
- package/dist/components/EntityCollectionView/ViewModeToggle.d.ts +5 -10
- package/dist/components/ErrorBoundary.d.ts +1 -1
- package/dist/components/VirtualTable/VirtualTableHeader.d.ts +1 -1
- package/dist/form/components/ErrorFocus.d.ts +1 -1
- package/dist/index.es.js +247 -210
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +246 -209
- package/dist/index.umd.js.map +1 -1
- package/dist/internal/useRestoreScroll.d.ts +1 -1
- package/dist/types/analytics.d.ts +1 -1
- package/dist/types/collections.d.ts +8 -0
- package/dist/types/plugins.d.ts +16 -0
- package/dist/util/entities.d.ts +1 -1
- package/dist/util/resolutions.d.ts +2 -2
- package/package.json +7 -7
- package/src/components/EntityCollectionTable/internal/EntityTableCellActions.tsx +1 -1
- package/src/components/EntityCollectionTable/internal/popup_field/useDraggable.tsx +11 -11
- package/src/components/EntityCollectionView/EntityBoardCard.tsx +1 -1
- package/src/components/EntityCollectionView/EntityCard.tsx +4 -0
- package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +23 -3
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +50 -16
- package/src/components/EntityCollectionView/ViewModeToggle.tsx +27 -30
- package/src/components/VirtualTable/VirtualTable.tsx +116 -113
- package/src/components/VirtualTable/VirtualTableHeader.tsx +42 -42
- package/src/components/VirtualTable/VirtualTableHeaderRow.tsx +1 -1
- package/src/components/VirtualTable/fields/VirtualTableSelect.tsx +3 -3
- package/src/core/DefaultAppBar.tsx +1 -1
- package/src/core/EntitySidePanel.tsx +28 -26
- package/src/core/field_configs.tsx +14 -9
- package/src/form/EntityForm.tsx +69 -60
- package/src/form/PropertyFieldBinding.tsx +3 -3
- package/src/form/components/ErrorFocus.tsx +3 -3
- package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +1 -1
- package/src/form/field_bindings/StorageUploadFieldBinding.tsx +83 -83
- package/src/hooks/useBuildNavigationController.tsx +4 -4
- package/src/hooks/useValidateAuthenticator.tsx +1 -1
- package/src/internal/useBuildDataSource.ts +1 -2
- package/src/preview/PropertyPreview.tsx +1 -0
- package/src/types/analytics.ts +10 -0
- package/src/types/collections.ts +9 -0
- package/src/types/plugins.tsx +18 -0
- package/src/util/entities.ts +1 -1
- package/src/util/previews.ts +2 -2
- package/src/util/property_utils.tsx +1 -1
- package/src/util/resolutions.ts +5 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
interface DraggableProps {
|
|
3
|
-
containerRef: React.RefObject<HTMLDivElement>;
|
|
4
|
-
innerRef: React.RefObject<HTMLDivElement>;
|
|
3
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
4
|
+
innerRef: React.RefObject<HTMLDivElement | null>;
|
|
5
5
|
x?: number;
|
|
6
6
|
y?: number;
|
|
7
7
|
onMove: (params: {
|
|
@@ -7,16 +7,11 @@ export type ViewModeToggleProps = {
|
|
|
7
7
|
viewMode?: ViewMode;
|
|
8
8
|
onViewModeChange?: (mode: ViewMode) => void;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* Which view modes are enabled for this collection.
|
|
11
|
+
* Only these modes will appear in the toggle.
|
|
12
|
+
* Defaults to all three: ["table", "cards", "kanban"].
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Whether a plugin exists that can configure Kanban (e.g., collection editor).
|
|
16
|
-
* When true, Kanban option is always shown (enabled or not based on kanbanEnabled).
|
|
17
|
-
* When false, Kanban option is shown but disabled.
|
|
18
|
-
*/
|
|
19
|
-
hasKanbanConfigPlugin?: boolean;
|
|
14
|
+
enabledViews?: ViewMode[];
|
|
20
15
|
/**
|
|
21
16
|
* Current size for card/table views
|
|
22
17
|
*/
|
|
@@ -46,4 +41,4 @@ export type ViewModeToggleProps = {
|
|
|
46
41
|
*/
|
|
47
42
|
onKanbanPropertyChange?: (property: string) => void;
|
|
48
43
|
};
|
|
49
|
-
export declare function ViewModeToggle({ viewMode, onViewModeChange,
|
|
44
|
+
export declare function ViewModeToggle({ viewMode, onViewModeChange, enabledViews, size, onSizeChanged, open, onOpenChange, kanbanPropertyOptions, selectedKanbanProperty, onKanbanPropertyChange }: ViewModeToggleProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -7,5 +7,5 @@ export declare class ErrorBoundary extends React.Component<PropsWithChildren<Rec
|
|
|
7
7
|
error: Error;
|
|
8
8
|
};
|
|
9
9
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
10
|
-
render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
10
|
+
render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
11
11
|
}
|
|
@@ -9,7 +9,7 @@ export type FilterFormFieldProps<CustomProps> = {
|
|
|
9
9
|
setHidden: (hidden: boolean) => void;
|
|
10
10
|
};
|
|
11
11
|
type VirtualTableHeaderProps<M extends Record<string, any>> = {
|
|
12
|
-
resizeHandleRef: RefObject<HTMLDivElement>;
|
|
12
|
+
resizeHandleRef: RefObject<HTMLDivElement | null>;
|
|
13
13
|
columnIndex: number;
|
|
14
14
|
isResizingIndex: number;
|
|
15
15
|
column: VirtualTableColumn<any>;
|