@firecms/data_import_export 3.0.0-canary.42 → 3.0.0-canary.43

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.
@@ -1,11 +1,8 @@
1
1
  import { Property } from "@firecms/core";
2
+ import { ImportConfig } from "../types";
2
3
  export interface DataPropertyMappingProps {
3
- idColumn?: string;
4
- headersMapping: Record<string, string | null>;
5
- headingsOrder: string[];
6
- originProperties: Record<string, Property>;
4
+ importConfig: ImportConfig;
7
5
  destinationProperties: Record<string, Property>;
8
- onIdPropertyChanged: (value: string | null) => void;
9
6
  buildPropertyView?: (props: {
10
7
  isIdColumn: boolean;
11
8
  property: Property | null;
@@ -13,4 +10,4 @@ export interface DataPropertyMappingProps {
13
10
  importKey: string;
14
11
  }) => React.ReactNode;
15
12
  }
16
- export declare function DataNewPropertiesMapping({ idColumn, headersMapping, headingsOrder, originProperties, destinationProperties, onIdPropertyChanged, buildPropertyView, }: DataPropertyMappingProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function DataNewPropertiesMapping({ importConfig, destinationProperties, buildPropertyView }: DataPropertyMappingProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { CollectionActionsProps, EntityCollection, User } from "@firecms/core";
3
- export declare function ExportCollectionAction<M extends Record<string, any>, UserType extends User>({ collection: inputCollection, path: inputPath, collectionEntitiesCount, exportAllowed, notAllowedView }: CollectionActionsProps<M, UserType, EntityCollection<M, any>> & {
3
+ export declare function ExportCollectionAction<M extends Record<string, any>, UserType extends User>({ collection: inputCollection, path: inputPath, collectionEntitiesCount, onAnalyticsEvent, exportAllowed, notAllowedView }: CollectionActionsProps<M, UserType, EntityCollection<M, any>> & {
4
4
  exportAllowed?: (props: {
5
5
  collectionEntitiesCount: number;
6
6
  path: string;