@firecms/core 3.1.0-canary.1df3b2c → 3.1.0-canary.768c91f

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 (47) hide show
  1. package/dist/components/EntityCollectionTable/internal/popup_field/useDraggable.d.ts +2 -2
  2. package/dist/components/EntityCollectionView/ViewModeToggle.d.ts +5 -10
  3. package/dist/components/ErrorBoundary.d.ts +1 -1
  4. package/dist/components/VirtualTable/VirtualTableHeader.d.ts +1 -1
  5. package/dist/form/components/ErrorFocus.d.ts +1 -1
  6. package/dist/index.es.js +249 -210
  7. package/dist/index.es.js.map +1 -1
  8. package/dist/index.umd.js +248 -209
  9. package/dist/index.umd.js.map +1 -1
  10. package/dist/internal/useRestoreScroll.d.ts +1 -1
  11. package/dist/types/analytics.d.ts +1 -1
  12. package/dist/types/collections.d.ts +8 -0
  13. package/dist/types/plugins.d.ts +16 -0
  14. package/dist/util/entities.d.ts +1 -1
  15. package/dist/util/resolutions.d.ts +2 -2
  16. package/package.json +9 -9
  17. package/src/components/EntityCollectionTable/internal/EntityTableCellActions.tsx +1 -1
  18. package/src/components/EntityCollectionTable/internal/popup_field/useDraggable.tsx +11 -11
  19. package/src/components/EntityCollectionView/EntityBoardCard.tsx +1 -1
  20. package/src/components/EntityCollectionView/EntityCard.tsx +4 -0
  21. package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +23 -3
  22. package/src/components/EntityCollectionView/EntityCollectionView.tsx +50 -16
  23. package/src/components/EntityCollectionView/ViewModeToggle.tsx +27 -30
  24. package/src/components/VirtualTable/VirtualTable.tsx +116 -113
  25. package/src/components/VirtualTable/VirtualTableHeader.tsx +42 -42
  26. package/src/components/VirtualTable/VirtualTableHeaderRow.tsx +1 -1
  27. package/src/components/VirtualTable/fields/VirtualTableSelect.tsx +3 -3
  28. package/src/core/DefaultAppBar.tsx +1 -1
  29. package/src/core/EntitySidePanel.tsx +28 -26
  30. package/src/core/field_configs.tsx +14 -9
  31. package/src/form/EntityForm.tsx +69 -60
  32. package/src/form/PropertyFieldBinding.tsx +3 -3
  33. package/src/form/components/ErrorFocus.tsx +3 -3
  34. package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +1 -1
  35. package/src/form/field_bindings/StorageUploadFieldBinding.tsx +83 -83
  36. package/src/hooks/useBuildNavigationController.tsx +4 -4
  37. package/src/hooks/useValidateAuthenticator.tsx +1 -1
  38. package/src/internal/useBuildDataSource.ts +1 -2
  39. package/src/preview/PropertyPreview.tsx +1 -0
  40. package/src/types/analytics.ts +10 -0
  41. package/src/types/collections.ts +9 -0
  42. package/src/types/plugins.tsx +18 -0
  43. package/src/util/entities.ts +1 -1
  44. package/src/util/join_collections.ts +10 -8
  45. package/src/util/previews.ts +2 -2
  46. package/src/util/property_utils.tsx +1 -1
  47. 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
- * Whether Kanban view mode is available for this collection.
11
- * Should be true when collection.kanban is set with a valid enum property.
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
- kanbanEnabled?: boolean;
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, kanbanEnabled, hasKanbanConfigPlugin, size, onSizeChanged, open, onOpenChange, kanbanPropertyOptions, selectedKanbanProperty, onKanbanPropertyChange }: ViewModeToggleProps): import("react/jsx-runtime").JSX.Element | null;
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>;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  export declare const ErrorFocus: ({ containerRef }: {
3
- containerRef?: React.RefObject<HTMLDivElement>;
3
+ containerRef?: React.RefObject<HTMLDivElement | null>;
4
4
  }) => null;