@uploadcare/react-uploader 0.3.0 → 0.4.0-alpha.0
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/react-uploader.cjs +239 -463
- package/dist/react-uploader.d.ts +6 -2
- package/dist/react-uploader.js +178 -9295
- package/dist/style.css +3 -0
- package/package.json +8 -7
- package/LICENSE +0 -21
package/dist/react-uploader.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { ConfigType } from '@uploadcare/blocks';
|
|
2
|
+
import { defineLocale } from '@uploadcare/blocks';
|
|
2
3
|
import type { EventMap } from '@uploadcare/blocks';
|
|
3
4
|
import { FC } from 'react';
|
|
4
5
|
import type { Ref } from 'react';
|
|
5
6
|
import { UploadCtxProvider } from '@uploadcare/blocks';
|
|
6
7
|
|
|
8
|
+
export { defineLocale }
|
|
9
|
+
|
|
7
10
|
export declare const FileUploaderInline: FC<TProps>;
|
|
8
11
|
|
|
9
12
|
export declare const FileUploaderMinimal: FC<TProps>;
|
|
@@ -12,11 +15,12 @@ export declare const FileUploaderRegular: FC<TProps>;
|
|
|
12
15
|
|
|
13
16
|
declare type TDefaultProps = {
|
|
14
17
|
className?: string;
|
|
18
|
+
classNameUploader?: string;
|
|
15
19
|
ctxName?: string;
|
|
16
20
|
};
|
|
17
21
|
|
|
18
|
-
declare type TEventsSchema = {
|
|
19
|
-
[K in keyof EventMap as TPrefixOnAndCamelCase<K>]: EventMap[K];
|
|
22
|
+
export declare type TEventsSchema = {
|
|
23
|
+
[K in keyof EventMap as TPrefixOnAndCamelCase<K>]: (event: EventMap[K]["detail"]) => void;
|
|
20
24
|
};
|
|
21
25
|
|
|
22
26
|
declare type TExtraPrefixOn<S extends string> = `on${Capitalize<S>}`;
|