@firecms/data_import_export 3.0.0-canary.4 → 3.0.0-canary.41

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/README.md CHANGED
@@ -26,7 +26,7 @@ No need to add any subscription key or anything like that.
26
26
  import React from "react";
27
27
  import { FirebaseCMSApp } from "@firecms/core";
28
28
  import "typeface-rubik";
29
- import "@fontsource/ibm-plex-mono";
29
+ import "@fontsource/jetbrains-mono";
30
30
 
31
31
  import { useDataImportPlugin } from "@firecms/data_import_export";
32
32
 
@@ -4,7 +4,7 @@ export interface DataPropertyMappingProps {
4
4
  headersMapping: Record<string, string | null>;
5
5
  originProperties: Record<string, Property>;
6
6
  destinationProperties: Record<string, Property>;
7
- onIdPropertyChanged: (value: string) => void;
7
+ onIdPropertyChanged: (value: string | null) => void;
8
8
  buildPropertyView?: (props: {
9
9
  isIdColumn: boolean;
10
10
  property: Property | null;
@@ -1,6 +1,7 @@
1
1
  import { EntityCollection } from "@firecms/core";
2
2
  import { ImportConfig } from "../types";
3
- export declare function ImportSaveInProgress<C extends EntityCollection>({ importConfig, collection, onImportSuccess }: {
3
+ export declare function ImportSaveInProgress<C extends EntityCollection>({ path, importConfig, collection, onImportSuccess }: {
4
+ path: string;
4
5
  importConfig: ImportConfig;
5
6
  collection: C;
6
7
  onImportSuccess: (collection: C) => void;
@@ -7,4 +7,5 @@ export declare function ExportCollectionAction<M extends Record<string, any>, Us
7
7
  collection: EntityCollection;
8
8
  }) => boolean;
9
9
  notAllowedView?: React.ReactNode;
10
+ onAnalyticsEvent?: (event: string, params?: any) => void;
10
11
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,8 @@
1
1
  import { CollectionActionsProps, Property, ResolvedProperties, User } from "@firecms/core";
2
2
  import { ImportConfig } from "../types";
3
- export declare function ImportCollectionAction<M extends Record<string, any>, UserType extends User>({ collection, path, collectionEntitiesCount, }: CollectionActionsProps<M, UserType>): import("react/jsx-runtime").JSX.Element | null;
3
+ export declare function ImportCollectionAction<M extends Record<string, any>, UserType extends User>({ collection, path, collectionEntitiesCount, onAnalyticsEvent }: CollectionActionsProps<M, UserType> & {
4
+ onAnalyticsEvent?: (event: string, params?: any) => void;
5
+ }): import("react/jsx-runtime").JSX.Element | null;
4
6
  export declare function PropertySelectEntry({ propertyKey, property, level }: {
5
7
  propertyKey: string;
6
8
  property: Property;