dromo-uploader-react
Advanced tools
Comparing version 2.1.6 to 2.1.7
import * as React from 'react'; | ||
import { IColumnHookInput, IColumnHookOutput, IColumnHook, IDeveloperField, IValidatorField, IDeveloperSettings, IRowHookInput, IRowHookOutput, IRowHook, IDeveloperStyleOverrides, IUser, IResultMetadata, IStepHook, IRowDeleteHook, IBeforeFinishCallback, IBulkRowHook, IImporterOptions } from 'dromo-uploader-js'; | ||
import { IColumnHookInput, IColumnHookOutput, IColumnHook, IDeveloperField, IValidatorField, IDeveloperSettings, IRowHookInput, IRowHookOutput, IRowHook, IDeveloperStyleOverrides, IUser, IResultMetadata, IStepHook, IRowDeleteHook, IBeforeFinishCallback, IBulkRowHook, IImporterOptions, IParseFileCallback } from 'dromo-uploader-js'; | ||
declare type VerboseRequiredProps = { | ||
@@ -24,2 +24,6 @@ user: IUser; | ||
stepHooks?: IStepHook[]; | ||
fileParsers?: { | ||
extensions: string[]; | ||
parseFile: IParseFileCallback; | ||
}[]; | ||
beforeFinish?: IBeforeFinishCallback; | ||
@@ -40,2 +44,2 @@ onResults?: (data: any, metadata: IResultMetadata) => void; | ||
} | ||
export { IDeveloperField, IDeveloperSettings, IUser, IColumnHookInput, IColumnHookOutput, IColumnHook, IRowHookInput, IRowHookOutput, IRowHook, IValidatorField, IDeveloperStyleOverrides, IResultMetadata, IStepHook, IRowDeleteHook, IBeforeFinishCallback, IBulkRowHook, IImporterOptions }; | ||
export { IDeveloperField, IDeveloperSettings, IUser, IColumnHookInput, IColumnHookOutput, IColumnHook, IRowHookInput, IRowHookOutput, IRowHook, IValidatorField, IDeveloperStyleOverrides, IResultMetadata, IStepHook, IRowDeleteHook, IBeforeFinishCallback, IBulkRowHook, IImporterOptions, IParseFileCallback }; |
@@ -82,2 +82,8 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
if (_this.props.fileParsers) { | ||
_this.props.fileParsers.forEach(function (parser) { | ||
_this.dromo.registerFileParser(parser); | ||
}); | ||
} | ||
_this.dromo.open(); | ||
@@ -84,0 +90,0 @@ }; |
@@ -80,2 +80,8 @@ import { createElement, Fragment, Component } from 'react'; | ||
if (_this.props.fileParsers) { | ||
_this.props.fileParsers.forEach(function (parser) { | ||
_this.dromo.registerFileParser(parser); | ||
}); | ||
} | ||
_this.dromo.open(); | ||
@@ -82,0 +88,0 @@ }; |
{ | ||
"name": "dromo-uploader-react", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"description": "Easy to use data (CSV, TSV, Excel) importer", | ||
@@ -64,4 +64,4 @@ "author": "ankitgoyal100", | ||
"dependencies": { | ||
"dromo-uploader-js": "^2.1.6" | ||
"dromo-uploader-js": "^2.1.7" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
31971
247
Updateddromo-uploader-js@^2.1.7