@firecms/core 3.0.0-canary.112 → 3.0.0-canary.114

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 (40) hide show
  1. package/dist/components/ArrayContainer.d.ts +2 -1
  2. package/dist/components/EntityCollectionTable/fields/TableReferenceField.d.ts +1 -1
  3. package/dist/components/EntityPreview.d.ts +1 -1
  4. package/dist/form/components/FormikArrayContainer.d.ts +2 -1
  5. package/dist/index.es.js +167 -117
  6. package/dist/index.es.js.map +1 -1
  7. package/dist/index.umd.js +166 -116
  8. package/dist/index.umd.js.map +1 -1
  9. package/dist/preview/components/ReferencePreview.d.ts +1 -1
  10. package/dist/types/datasource.d.ts +8 -6
  11. package/dist/types/entity_overrides.d.ts +2 -2
  12. package/dist/types/side_dialogs_controller.d.ts +10 -0
  13. package/dist/util/icons.d.ts +1 -0
  14. package/package.json +5 -5
  15. package/src/components/ArrayContainer.tsx +7 -4
  16. package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +13 -8
  17. package/src/components/EntityCollectionView/EntityCollectionView.tsx +1 -1
  18. package/src/components/EntityPreview.tsx +20 -22
  19. package/src/components/HomePage/DefaultHomePage.tsx +7 -9
  20. package/src/components/ReferenceTable/ReferenceSelectionTable.tsx +7 -2
  21. package/src/components/VirtualTable/fields/VirtualTableDateField.tsx +3 -3
  22. package/src/components/VirtualTable/fields/VirtualTableInput.tsx +2 -1
  23. package/src/components/VirtualTable/fields/VirtualTableNumberInput.tsx +2 -1
  24. package/src/core/EntityEditView.tsx +20 -18
  25. package/src/core/SideDialogs.tsx +0 -2
  26. package/src/form/components/FormikArrayContainer.tsx +4 -1
  27. package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +4 -4
  28. package/src/form/field_bindings/BlockFieldBinding.tsx +2 -1
  29. package/src/form/field_bindings/ReferenceFieldBinding.tsx +5 -4
  30. package/src/hooks/data/delete.ts +2 -1
  31. package/src/hooks/data/useDataSource.tsx +10 -2
  32. package/src/hooks/useBuildNavigationController.tsx +2 -4
  33. package/src/internal/useBuildDataSource.ts +41 -67
  34. package/src/internal/useBuildSideDialogsController.tsx +1 -0
  35. package/src/internal/useBuildSideEntityController.tsx +13 -2
  36. package/src/preview/components/ReferencePreview.tsx +2 -13
  37. package/src/types/datasource.ts +9 -6
  38. package/src/types/entity_overrides.tsx +2 -2
  39. package/src/types/side_dialogs_controller.tsx +13 -0
  40. package/src/util/icons.tsx +8 -2
@@ -11,11 +11,12 @@ interface ArrayContainerProps<T> {
11
11
  includeAddButton?: boolean;
12
12
  newDefaultEntry: T;
13
13
  onValueChange: (value: T[]) => void;
14
+ className?: string;
14
15
  }
15
16
  /**
16
17
  * @group Form custom fields
17
18
  */
18
- export declare function ArrayContainer<T>({ droppableId, addLabel, value, disabled, buildEntry, size, onInternalIdAdded, includeAddButton, newDefaultEntry, onValueChange }: ArrayContainerProps<T>): import("react/jsx-runtime").JSX.Element;
19
+ export declare function ArrayContainer<T>({ droppableId, addLabel, value, disabled, buildEntry, size, onInternalIdAdded, includeAddButton, newDefaultEntry, onValueChange, className }: ArrayContainerProps<T>): import("react/jsx-runtime").JSX.Element;
19
20
  type ArrayContainerItemProps = {
20
21
  provided: DraggableProvided;
21
22
  index: number;
@@ -15,7 +15,7 @@ type TableReferenceFieldProps = {
15
15
  includeEntityLink?: boolean;
16
16
  };
17
17
  export declare function TableReferenceField(props: TableReferenceFieldProps): import("react/jsx-runtime").JSX.Element;
18
- export declare const TableReferenceFieldSuccess: React.NamedExoticComponent<TableReferenceFieldProps & {
18
+ export declare const TableReferenceFieldInternal: React.NamedExoticComponent<TableReferenceFieldProps & {
19
19
  collection: EntityCollection;
20
20
  }>;
21
21
  export {};
@@ -27,4 +27,4 @@ export type EntityPreviewContainerProps = {
27
27
  style?: React.CSSProperties;
28
28
  onClick?: (e: React.SyntheticEvent) => void;
29
29
  };
30
- export declare const EntityPreviewContainer: React.FC<EntityPreviewContainerProps>;
30
+ export declare const EntityPreviewContainer: React.ForwardRefExoticComponent<EntityPreviewContainerProps & React.RefAttributes<HTMLDivElement>>;
@@ -10,9 +10,10 @@ interface ArrayContainerProps<T> {
10
10
  includeAddButton?: boolean;
11
11
  newDefaultEntry?: T | null;
12
12
  setFieldValue: (field: string, value: any, shouldValidate?: boolean | undefined) => void;
13
+ className?: string;
13
14
  }
14
15
  /**
15
16
  * @group Form custom fields
16
17
  */
17
- export declare function FormikArrayContainer<T>({ name, addLabel, value, disabled, buildEntry, small, onInternalIdAdded, includeAddButton, newDefaultEntry, setFieldValue }: ArrayContainerProps<T>): import("react/jsx-runtime").JSX.Element;
18
+ export declare function FormikArrayContainer<T>({ name, addLabel, value, disabled, buildEntry, small, onInternalIdAdded, includeAddButton, newDefaultEntry, setFieldValue, className }: ArrayContainerProps<T>): import("react/jsx-runtime").JSX.Element;
18
19
  export {};