dromo-uploader-react
Advanced tools
Comparing version
declare type MaybeAsync<T> = T | Promise<T>; | ||
export interface IConnectionMethods { | ||
init: (licenseKey: string, fields: IDeveloperField[], settings: IDeveloperSettings, user: IUser, appHost?: string) => void; | ||
setNumRegisteredColHooks: (numColHooks: number) => void; | ||
setNumRegisteredRowHooks: (numRowHooks: number) => void; | ||
setNumRegisteredRowDeleteHooks: (numRowDeleteHooks: number) => void; | ||
addField: (field: IDeveloperField, position?: IPositionSpec) => void; | ||
updateInfoMessages: (messages: IMessagesForCell[]) => void; | ||
} | ||
export declare type IPublicConnectionMethods = Pick<IConnectionMethods, "addField" | "updateInfoMessages">; | ||
export declare type IDeveloperFieldType = "string" | "checkbox" | "select" | "number" | "date" | "datetime" | "time" | "email"; | ||
@@ -131,2 +140,6 @@ export interface IDeveloperField { | ||
}; | ||
helpText?: { | ||
textColor?: string; | ||
backgroundColor?: string; | ||
}; | ||
stepperBar?: { | ||
@@ -237,5 +250,5 @@ completeColor?: string; | ||
type: keyof typeof EStepHook; | ||
callback: (uploader: any, data: IUploadStepData | IReviewStepData | IReviewStepPostHooksData) => MaybeAsync<void>; | ||
callback: (uploader: IPublicConnectionMethods, data: IUploadStepData | IReviewStepData | IReviewStepPostHooksData) => MaybeAsync<void>; | ||
} | ||
export declare type IBeforeFinishCallback = (data: Record<string, any>[], metadata: IResultMetadata, instance: any) => MaybeAsync<IBeforeFinishOutput>; | ||
export declare type IBeforeFinishCallback = (data: Record<string, any>[], metadata: IResultMetadata, instance: IPublicConnectionMethods) => MaybeAsync<IBeforeFinishOutput>; | ||
export declare type IBeforeFinishOutput = void | { | ||
@@ -255,2 +268,7 @@ cancel: true; | ||
} | ||
export declare type IPositionSpec = { | ||
before: string; | ||
} | { | ||
after: string; | ||
}; | ||
export {}; |
{ | ||
"name": "dromo-uploader-react", | ||
"version": "1.2.29", | ||
"version": "1.2.30", | ||
"description": "Easy to use data (CSV, TSV, Excel) importer", | ||
@@ -5,0 +5,0 @@ "author": "ankitgoyal100", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
59113
4.44%529
3.52%