dromo-uploader-react 2.0.8 → 2.0.10
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/dist/index.d.ts +7 -3
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +22 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ declare type SavedSchemaProps = {
|
|
|
13
13
|
} | {
|
|
14
14
|
schemaId: string;
|
|
15
15
|
}) & IImporterOptions;
|
|
16
|
-
declare type
|
|
16
|
+
declare type CommonProps = {
|
|
17
17
|
style?: React.CSSProperties;
|
|
18
18
|
className?: string;
|
|
19
19
|
rowHooks?: IRowHook[];
|
|
@@ -24,12 +24,16 @@ declare type CommonOptionalProps = {
|
|
|
24
24
|
beforeFinish?: IBeforeFinishCallback;
|
|
25
25
|
onResults?: (data: any, metadata: IResultMetadata) => void;
|
|
26
26
|
onCancel?: () => void;
|
|
27
|
-
children
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
open?: boolean;
|
|
28
29
|
};
|
|
29
|
-
declare type Props = (VerboseRequiredProps | SavedSchemaProps) &
|
|
30
|
+
declare type Props = (VerboseRequiredProps | SavedSchemaProps) & CommonProps;
|
|
30
31
|
export default class DromoReactUploader extends React.Component<Props> {
|
|
31
32
|
dromo: any;
|
|
32
33
|
open: () => void;
|
|
34
|
+
componentDidMount(): void;
|
|
35
|
+
componentDidUpdate(prevProps: Props): void;
|
|
36
|
+
componentWillUnmount(): void;
|
|
33
37
|
render(): JSX.Element;
|
|
34
38
|
}
|
|
35
39
|
export { IDeveloperField, IDeveloperSettings, IUser, IColumnHookInput, IColumnHookOutput, IColumnHook, IRowHookInput, IRowHookOutput, IRowHook, IValidatorField, IDeveloperStyleOverrides, IResultMetadata, IStepHook, IRowDeleteHook, IBeforeFinishCallback, IBulkRowHook, IImporterOptions };
|
package/dist/index.js
CHANGED
|
@@ -87,7 +87,28 @@ var DromoReactUploader = /*#__PURE__*/function (_React$Component) {
|
|
|
87
87
|
|
|
88
88
|
var _proto = DromoReactUploader.prototype;
|
|
89
89
|
|
|
90
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
91
|
+
if (this.props.open) this.open();
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
|
95
|
+
if (!prevProps.open && this.props.open) {
|
|
96
|
+
this.open();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (prevProps.open && !this.props.open) {
|
|
100
|
+
this.dromo.close();
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
105
|
+
if (this.props.open) {
|
|
106
|
+
this.dromo.close();
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
90
110
|
_proto.render = function render() {
|
|
111
|
+
if (this.props.children === undefined) return React.createElement(React.Fragment, null);
|
|
91
112
|
return React.createElement("button", {
|
|
92
113
|
style: this.props.style,
|
|
93
114
|
className: this.props.className,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.tsx"],"sourcesContent":["import * as React from 'react'\nimport DromoUploader, {\n IColumnHookInput,\n IColumnHookOutput,\n IColumnHook,\n IDeveloperField,\n IValidatorField,\n IDeveloperSettings,\n IRowHookInput,\n IRowHookOutput,\n IRowHook,\n IDeveloperStyleOverrides,\n IUser,\n IResultMetadata,\n IStepHook,\n IRowDeleteHook,\n IBeforeFinishCallback,\n IBulkRowHook,\n IImporterOptions\n} from 'dromo-uploader-js'\n\ntype VerboseRequiredProps = {\n user: IUser\n fields: IDeveloperField[]\n licenseKey: string\n settings: IDeveloperSettings\n}\n\ntype SavedSchemaProps = {\n licenseKey: string\n} & ({ schemaName: string } | { schemaId: string }) &\n IImporterOptions\n\ntype
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.tsx"],"sourcesContent":["import * as React from 'react'\nimport DromoUploader, {\n IColumnHookInput,\n IColumnHookOutput,\n IColumnHook,\n IDeveloperField,\n IValidatorField,\n IDeveloperSettings,\n IRowHookInput,\n IRowHookOutput,\n IRowHook,\n IDeveloperStyleOverrides,\n IUser,\n IResultMetadata,\n IStepHook,\n IRowDeleteHook,\n IBeforeFinishCallback,\n IBulkRowHook,\n IImporterOptions\n} from 'dromo-uploader-js'\n\ntype VerboseRequiredProps = {\n user: IUser\n fields: IDeveloperField[]\n licenseKey: string\n settings: IDeveloperSettings\n}\n\ntype SavedSchemaProps = {\n licenseKey: string\n} & ({ schemaName: string } | { schemaId: string }) &\n IImporterOptions\n\ntype CommonProps = {\n style?: React.CSSProperties\n className?: string\n rowHooks?: IRowHook[]\n bulkRowHooks?: IBulkRowHook[]\n rowDeleteHooks?: IRowDeleteHook[]\n columnHooks?: IColumnHook[]\n stepHooks?: IStepHook[]\n beforeFinish?: IBeforeFinishCallback\n onResults?: (data: any, metadata: IResultMetadata) => void\n onCancel?: () => void\n children?: React.ReactNode\n open?: boolean\n}\n\ntype Props = (VerboseRequiredProps | SavedSchemaProps) & CommonProps\n\nexport default class DromoReactUploader extends React.Component<Props> {\n dromo: any\n\n open = () => {\n if ('fields' in this.props && 'settings' in this.props) {\n this.dromo = new DromoUploader(\n this.props.licenseKey,\n this.props.fields,\n this.props.settings,\n this.props.user\n )\n } else if ('schemaId' in this.props || 'schemaName' in this.props) {\n const idOrName =\n 'schemaId' in this.props ? this.props.schemaId : this.props.schemaName\n\n this.dromo = new DromoUploader(this.props.licenseKey, idOrName)\n\n if ('developmentMode' in this.props) {\n this.dromo.setDevelopmentMode(this.props.developmentMode)\n }\n if ('user' in this.props) {\n this.dromo.setUser(this.props.user)\n }\n if ('headerRowOverride' in this.props) {\n this.dromo.setHeaderRowOverride(this.props.headerRowOverride)\n }\n }\n\n if (this.props.rowHooks) {\n this.props.rowHooks.forEach((hook) => this.dromo.registerRowHook(hook))\n }\n\n if (this.props.bulkRowHooks) {\n this.props.bulkRowHooks.forEach((hook) =>\n this.dromo.registerBulkRowHook(hook)\n )\n }\n\n if (this.props.columnHooks) {\n this.props.columnHooks.forEach((hook) => {\n this.dromo.registerColumnHook(hook.fieldName, hook.callback)\n })\n }\n\n if (this.props.rowDeleteHooks) {\n this.props.rowDeleteHooks.forEach((hook) => {\n return this.dromo.registerRowDeleteHook(hook)\n })\n }\n\n if (this.props.beforeFinish) {\n this.dromo.beforeFinish(this.props.beforeFinish)\n }\n\n if (this.props.onResults) {\n this.dromo.onResults(this.props.onResults)\n }\n\n if (this.props.onCancel) {\n this.dromo.onCancel(this.props.onCancel)\n }\n\n if (this.props.stepHooks) {\n this.props.stepHooks.forEach((hook) => {\n this.dromo.registerStepHook(hook.type, hook.callback)\n })\n }\n\n this.dromo.open()\n }\n\n componentDidMount() {\n if (this.props.open) this.open()\n }\n\n componentDidUpdate(prevProps: Props) {\n if (!prevProps.open && this.props.open) {\n this.open()\n }\n\n if (prevProps.open && !this.props.open) {\n this.dromo.close()\n }\n }\n\n componentWillUnmount() {\n if (this.props.open) {\n this.dromo.close()\n }\n }\n\n render() {\n if (this.props.children === undefined) return <React.Fragment />\n\n return (\n <button\n style={this.props.style}\n className={this.props.className}\n onClick={this.open}\n >\n {this.props.children}\n </button>\n )\n }\n}\n\nexport {\n IDeveloperField,\n IDeveloperSettings,\n IUser,\n IColumnHookInput,\n IColumnHookOutput,\n IColumnHook,\n IRowHookInput,\n IRowHookOutput,\n IRowHook,\n IValidatorField,\n IDeveloperStyleOverrides,\n IResultMetadata,\n IStepHook,\n IRowDeleteHook,\n IBeforeFinishCallback,\n IBulkRowHook,\n IImporterOptions\n}\n"],"names":["DromoReactUploader","props","dromo","DromoUploader","licenseKey","fields","settings","user","idOrName","schemaId","schemaName","setDevelopmentMode","developmentMode","setUser","setHeaderRowOverride","headerRowOverride","rowHooks","forEach","hook","registerRowHook","bulkRowHooks","registerBulkRowHook","columnHooks","registerColumnHook","fieldName","callback","rowDeleteHooks","registerRowDeleteHook","beforeFinish","onResults","onCancel","stepHooks","registerStepHook","type","open","componentDidMount","componentDidUpdate","prevProps","close","componentWillUnmount","render","children","undefined","React","style","className","onClick"],"mappings":";;;;;;;;;;;IAkDqBA;;;AAArB;;;;;AAGE,cAAA,GAAO;AACL,UAAI,YAAY,MAAKC,KAAjB,IAA0B,cAAc,MAAKA,KAAjD,EAAwD;AACtD,cAAKC,KAAL,GAAa,IAAIC,aAAJ,CACX,MAAKF,KAAL,CAAWG,UADA,EAEX,MAAKH,KAAL,CAAWI,MAFA,EAGX,MAAKJ,KAAL,CAAWK,QAHA,EAIX,MAAKL,KAAL,CAAWM,IAJA,CAAb;AAMD,OAPD,MAOO,IAAI,cAAc,MAAKN,KAAnB,IAA4B,gBAAgB,MAAKA,KAArD,EAA4D;AACjE,YAAMO,QAAQ,GACZ,cAAc,MAAKP,KAAnB,GAA2B,MAAKA,KAAL,CAAWQ,QAAtC,GAAiD,MAAKR,KAAL,CAAWS,UAD9D;AAGA,cAAKR,KAAL,GAAa,IAAIC,aAAJ,CAAkB,MAAKF,KAAL,CAAWG,UAA7B,EAAyCI,QAAzC,CAAb;;AAEA,YAAI,qBAAqB,MAAKP,KAA9B,EAAqC;AACnC,gBAAKC,KAAL,CAAWS,kBAAX,CAA8B,MAAKV,KAAL,CAAWW,eAAzC;AACD;;AACD,YAAI,UAAU,MAAKX,KAAnB,EAA0B;AACxB,gBAAKC,KAAL,CAAWW,OAAX,CAAmB,MAAKZ,KAAL,CAAWM,IAA9B;AACD;;AACD,YAAI,uBAAuB,MAAKN,KAAhC,EAAuC;AACrC,gBAAKC,KAAL,CAAWY,oBAAX,CAAgC,MAAKb,KAAL,CAAWc,iBAA3C;AACD;AACF;;AAED,UAAI,MAAKd,KAAL,CAAWe,QAAf,EAAyB;AACvB,cAAKf,KAAL,CAAWe,QAAX,CAAoBC,OAApB,CAA4B,UAACC,IAAD;AAAA,iB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B,gBAAX,CAA4Bd,IAAI,CAACe,IAAjC,EAAuCf,IAAI,CAACO,QAA5C;AACD,SAFD;AAGD;;AAED,YAAKvB,KAAL,CAAWgC,IAAX;AACD,KAlED;;;AAqGD;;;;SAjCCC,oBAAA;AACE,QAAI,KAAKlC,KAAL,CAAWiC,IAAf,EAAqB,KAAKA,IAAL;AACtB;;SAEDE,qBAAA,4BAAmBC,SAAnB;AACE,QAAI,CAACA,SAAS,CAACH,IAAX,IAAmB,KAAKjC,KAAL,CAAWiC,IAAlC,EAAwC;AACtC,WAAKA,IAAL;AACD;;AAED,QAAIG,SAAS,CAACH,IAAV,IAAkB,CAAC,KAAKjC,KAAL,CAAWiC,IAAlC,EAAwC;AACtC,WAAKhC,KAAL,CAAWoC,KAAX;AACD;AACF;;SAEDC,uBAAA;AACE,QAAI,KAAKtC,KAAL,CAAWiC,IAAf,EAAqB;AACnB,WAAKhC,KAAL,CAAWoC,KAAX;AACD;AACF;;SAEDE,SAAA;AACE,QAAI,KAAKvC,KAAL,CAAWwC,QAAX,KAAwBC,SAA5B,EAAuC,OAAOC,mBAAA,CAACA,cAAD,MAAA,CAAP;AAEvC,WACEA,mBAAA,SAAA;AACEC,MAAAA,KAAK,EAAE,KAAK3C,KAAL,CAAW2C;AAClBC,MAAAA,SAAS,EAAE,KAAK5C,KAAL,CAAW4C;AACtBC,MAAAA,OAAO,EAAE,KAAKZ;KAHhB,EAKG,KAAKjC,KAAL,CAAWwC,QALd,CADF;AASD;;;EAvG6CE;;;;"}
|
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElement, Component } from 'react';
|
|
1
|
+
import { createElement, Fragment, Component } from 'react';
|
|
2
2
|
import DromoUploader from 'dromo-uploader-js';
|
|
3
3
|
|
|
4
4
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -85,7 +85,28 @@ var DromoReactUploader = /*#__PURE__*/function (_React$Component) {
|
|
|
85
85
|
|
|
86
86
|
var _proto = DromoReactUploader.prototype;
|
|
87
87
|
|
|
88
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
89
|
+
if (this.props.open) this.open();
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
|
93
|
+
if (!prevProps.open && this.props.open) {
|
|
94
|
+
this.open();
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if (prevProps.open && !this.props.open) {
|
|
98
|
+
this.dromo.close();
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
103
|
+
if (this.props.open) {
|
|
104
|
+
this.dromo.close();
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
|
|
88
108
|
_proto.render = function render() {
|
|
109
|
+
if (this.props.children === undefined) return createElement(Fragment, null);
|
|
89
110
|
return createElement("button", {
|
|
90
111
|
style: this.props.style,
|
|
91
112
|
className: this.props.className,
|
package/dist/index.modern.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.modern.js","sources":["../src/index.tsx"],"sourcesContent":["import * as React from 'react'\nimport DromoUploader, {\n IColumnHookInput,\n IColumnHookOutput,\n IColumnHook,\n IDeveloperField,\n IValidatorField,\n IDeveloperSettings,\n IRowHookInput,\n IRowHookOutput,\n IRowHook,\n IDeveloperStyleOverrides,\n IUser,\n IResultMetadata,\n IStepHook,\n IRowDeleteHook,\n IBeforeFinishCallback,\n IBulkRowHook,\n IImporterOptions\n} from 'dromo-uploader-js'\n\ntype VerboseRequiredProps = {\n user: IUser\n fields: IDeveloperField[]\n licenseKey: string\n settings: IDeveloperSettings\n}\n\ntype SavedSchemaProps = {\n licenseKey: string\n} & ({ schemaName: string } | { schemaId: string }) &\n IImporterOptions\n\ntype
|
|
1
|
+
{"version":3,"file":"index.modern.js","sources":["../src/index.tsx"],"sourcesContent":["import * as React from 'react'\nimport DromoUploader, {\n IColumnHookInput,\n IColumnHookOutput,\n IColumnHook,\n IDeveloperField,\n IValidatorField,\n IDeveloperSettings,\n IRowHookInput,\n IRowHookOutput,\n IRowHook,\n IDeveloperStyleOverrides,\n IUser,\n IResultMetadata,\n IStepHook,\n IRowDeleteHook,\n IBeforeFinishCallback,\n IBulkRowHook,\n IImporterOptions\n} from 'dromo-uploader-js'\n\ntype VerboseRequiredProps = {\n user: IUser\n fields: IDeveloperField[]\n licenseKey: string\n settings: IDeveloperSettings\n}\n\ntype SavedSchemaProps = {\n licenseKey: string\n} & ({ schemaName: string } | { schemaId: string }) &\n IImporterOptions\n\ntype CommonProps = {\n style?: React.CSSProperties\n className?: string\n rowHooks?: IRowHook[]\n bulkRowHooks?: IBulkRowHook[]\n rowDeleteHooks?: IRowDeleteHook[]\n columnHooks?: IColumnHook[]\n stepHooks?: IStepHook[]\n beforeFinish?: IBeforeFinishCallback\n onResults?: (data: any, metadata: IResultMetadata) => void\n onCancel?: () => void\n children?: React.ReactNode\n open?: boolean\n}\n\ntype Props = (VerboseRequiredProps | SavedSchemaProps) & CommonProps\n\nexport default class DromoReactUploader extends React.Component<Props> {\n dromo: any\n\n open = () => {\n if ('fields' in this.props && 'settings' in this.props) {\n this.dromo = new DromoUploader(\n this.props.licenseKey,\n this.props.fields,\n this.props.settings,\n this.props.user\n )\n } else if ('schemaId' in this.props || 'schemaName' in this.props) {\n const idOrName =\n 'schemaId' in this.props ? this.props.schemaId : this.props.schemaName\n\n this.dromo = new DromoUploader(this.props.licenseKey, idOrName)\n\n if ('developmentMode' in this.props) {\n this.dromo.setDevelopmentMode(this.props.developmentMode)\n }\n if ('user' in this.props) {\n this.dromo.setUser(this.props.user)\n }\n if ('headerRowOverride' in this.props) {\n this.dromo.setHeaderRowOverride(this.props.headerRowOverride)\n }\n }\n\n if (this.props.rowHooks) {\n this.props.rowHooks.forEach((hook) => this.dromo.registerRowHook(hook))\n }\n\n if (this.props.bulkRowHooks) {\n this.props.bulkRowHooks.forEach((hook) =>\n this.dromo.registerBulkRowHook(hook)\n )\n }\n\n if (this.props.columnHooks) {\n this.props.columnHooks.forEach((hook) => {\n this.dromo.registerColumnHook(hook.fieldName, hook.callback)\n })\n }\n\n if (this.props.rowDeleteHooks) {\n this.props.rowDeleteHooks.forEach((hook) => {\n return this.dromo.registerRowDeleteHook(hook)\n })\n }\n\n if (this.props.beforeFinish) {\n this.dromo.beforeFinish(this.props.beforeFinish)\n }\n\n if (this.props.onResults) {\n this.dromo.onResults(this.props.onResults)\n }\n\n if (this.props.onCancel) {\n this.dromo.onCancel(this.props.onCancel)\n }\n\n if (this.props.stepHooks) {\n this.props.stepHooks.forEach((hook) => {\n this.dromo.registerStepHook(hook.type, hook.callback)\n })\n }\n\n this.dromo.open()\n }\n\n componentDidMount() {\n if (this.props.open) this.open()\n }\n\n componentDidUpdate(prevProps: Props) {\n if (!prevProps.open && this.props.open) {\n this.open()\n }\n\n if (prevProps.open && !this.props.open) {\n this.dromo.close()\n }\n }\n\n componentWillUnmount() {\n if (this.props.open) {\n this.dromo.close()\n }\n }\n\n render() {\n if (this.props.children === undefined) return <React.Fragment />\n\n return (\n <button\n style={this.props.style}\n className={this.props.className}\n onClick={this.open}\n >\n {this.props.children}\n </button>\n )\n }\n}\n\nexport {\n IDeveloperField,\n IDeveloperSettings,\n IUser,\n IColumnHookInput,\n IColumnHookOutput,\n IColumnHook,\n IRowHookInput,\n IRowHookOutput,\n IRowHook,\n IValidatorField,\n IDeveloperStyleOverrides,\n IResultMetadata,\n IStepHook,\n IRowDeleteHook,\n IBeforeFinishCallback,\n IBulkRowHook,\n IImporterOptions\n}\n"],"names":["DromoReactUploader","props","dromo","DromoUploader","licenseKey","fields","settings","user","idOrName","schemaId","schemaName","setDevelopmentMode","developmentMode","setUser","setHeaderRowOverride","headerRowOverride","rowHooks","forEach","hook","registerRowHook","bulkRowHooks","registerBulkRowHook","columnHooks","registerColumnHook","fieldName","callback","rowDeleteHooks","registerRowDeleteHook","beforeFinish","onResults","onCancel","stepHooks","registerStepHook","type","open","componentDidMount","componentDidUpdate","prevProps","close","componentWillUnmount","render","children","undefined","React","style","className","onClick"],"mappings":";;;;;;;;;IAkDqBA;;;AAArB;;;;;AAGE,cAAA,GAAO;AACL,UAAI,YAAY,MAAKC,KAAjB,IAA0B,cAAc,MAAKA,KAAjD,EAAwD;AACtD,cAAKC,KAAL,GAAa,IAAIC,aAAJ,CACX,MAAKF,KAAL,CAAWG,UADA,EAEX,MAAKH,KAAL,CAAWI,MAFA,EAGX,MAAKJ,KAAL,CAAWK,QAHA,EAIX,MAAKL,KAAL,CAAWM,IAJA,CAAb;AAMD,OAPD,MAOO,IAAI,cAAc,MAAKN,KAAnB,IAA4B,gBAAgB,MAAKA,KAArD,EAA4D;AACjE,YAAMO,QAAQ,GACZ,cAAc,MAAKP,KAAnB,GAA2B,MAAKA,KAAL,CAAWQ,QAAtC,GAAiD,MAAKR,KAAL,CAAWS,UAD9D;AAGA,cAAKR,KAAL,GAAa,IAAIC,aAAJ,CAAkB,MAAKF,KAAL,CAAWG,UAA7B,EAAyCI,QAAzC,CAAb;;AAEA,YAAI,qBAAqB,MAAKP,KAA9B,EAAqC;AACnC,gBAAKC,KAAL,CAAWS,kBAAX,CAA8B,MAAKV,KAAL,CAAWW,eAAzC;AACD;;AACD,YAAI,UAAU,MAAKX,KAAnB,EAA0B;AACxB,gBAAKC,KAAL,CAAWW,OAAX,CAAmB,MAAKZ,KAAL,CAAWM,IAA9B;AACD;;AACD,YAAI,uBAAuB,MAAKN,KAAhC,EAAuC;AACrC,gBAAKC,KAAL,CAAWY,oBAAX,CAAgC,MAAKb,KAAL,CAAWc,iBAA3C;AACD;AACF;;AAED,UAAI,MAAKd,KAAL,CAAWe,QAAf,EAAyB;AACvB,cAAKf,KAAL,CAAWe,QAAX,CAAoBC,OAApB,CAA4B,UAACC,IAAD;AAAA,iBAAU,MAAKhB,KAAL,CAAWiB,eAAX,CAA2BD,IAA3B,CAAV;AAAA,SAA5B;AACD;;AAED,UAAI,MAAK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AAKvB,KAAL,CAAWgC,IAAX;AACD,KAlED;;;AAqGD;;;;SAjCCC,oBAAA;AACE,QAAI,KAAKlC,KAAL,CAAWiC,IAAf,EAAqB,KAAKA,IAAL;AACtB;;SAEDE,qBAAA,4BAAmBC,SAAnB;AACE,QAAI,CAACA,SAAS,CAACH,IAAX,IAAmB,KAAKjC,KAAL,CAAWiC,IAAlC,EAAwC;AACtC,WAAKA,IAAL;AACD;;AAED,QAAIG,SAAS,CAACH,IAAV,IAAkB,CAAC,KAAKjC,KAAL,CAAWiC,IAAlC,EAAwC;AACtC,WAAKhC,KAAL,CAAWoC,KAAX;AACD;AACF;;SAEDC,uBAAA;AACE,QAAI,KAAKtC,KAAL,CAAWiC,IAAf,EAAqB;AACnB,WAAKhC,KAAL,CAAWoC,KAAX;AACD;AACF;;SAEDE,SAAA;AACE,QAAI,KAAKvC,KAAL,CAAWwC,QAAX,KAAwBC,SAA5B,EAAuC,OAAOC,aAAA,CAACA,QAAD,MAAA,CAAP;AAEvC,WACEA,aAAA,SAAA;AACEC,MAAAA,KAAK,EAAE,KAAK3C,KAAL,CAAW2C;AAClBC,MAAAA,SAAS,EAAE,KAAK5C,KAAL,CAAW4C;AACtBC,MAAAA,OAAO,EAAE,KAAKZ;KAHhB,EAKG,KAAKjC,KAAL,CAAWwC,QALd,CADF;AASD;;;EAvG6CE;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dromo-uploader-react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"description": "Easy to use data (CSV, TSV, Excel) importer",
|
|
5
5
|
"author": "ankitgoyal100",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"dist"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"dromo-uploader-js": "^2.0.
|
|
64
|
+
"dromo-uploader-js": "^2.0.10"
|
|
65
65
|
}
|
|
66
66
|
}
|