@uploadcare/react-uploader 0.0.1-alpha.0 → 0.0.1-alpha.1
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.
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ConfigType } from '@uploadcare/blocks';
|
|
2
|
+
import { EventType } from '@uploadcare/blocks';
|
|
3
|
+
import { FC } from 'react';
|
|
4
|
+
import { default as React_2 } from 'react';
|
|
5
|
+
import { UploadCtxProvider } from '@uploadcare/blocks';
|
|
6
|
+
|
|
7
|
+
export declare const FileUploaderInline: FC<TProps>;
|
|
8
|
+
|
|
9
|
+
export declare const FileUploaderMinimal: FC<TProps>;
|
|
10
|
+
|
|
11
|
+
export declare const FileUploaderRegular: FC<TProps>;
|
|
12
|
+
|
|
13
|
+
declare type TEvents = typeof EventType;
|
|
14
|
+
|
|
15
|
+
declare type TEventsSchema = {
|
|
16
|
+
[K in keyof TEvents as TPrefixOnAndCamelCase<K>]: TEvents[K];
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
declare type TExtraPrefixOn<S extends string> = `on${Capitalize<S>}`;
|
|
20
|
+
|
|
21
|
+
declare type TPrefixOnAndCamelCase<S extends string> = TExtraPrefixOn<TToCamelCase<S>>;
|
|
22
|
+
|
|
23
|
+
export declare type TProps = {
|
|
24
|
+
refUploadCtxProvider: React_2.Ref<UploadCtxProvider>;
|
|
25
|
+
} & ConfigType & TEventsSchema;
|
|
26
|
+
|
|
27
|
+
declare type TToCamelCase<S extends string> = S extends `${infer Head}_${infer Tail}` ? `${Lowercase<Head>}${Capitalize<TToCamelCase<Tail>>}` : Lowercase<S>;
|
|
28
|
+
|
|
29
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uploadcare/react-uploader",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
|
-
"main": "./dist/react-uploader.
|
|
10
|
-
"module": "./dist/react-uploader.
|
|
9
|
+
"main": "./dist/react-uploader.cjs",
|
|
10
|
+
"module": "./dist/react-uploader.js",
|
|
11
|
+
"types": "./dist/react-uploader.d.ts",
|
|
11
12
|
"exports": {
|
|
12
13
|
".": {
|
|
13
|
-
"import": "./dist/react-uploader.
|
|
14
|
-
"require": "./dist/react-uploader.
|
|
14
|
+
"import": "./dist/react-uploader.js",
|
|
15
|
+
"require": "./dist/react-uploader.cjs"
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
18
|
"scripts": {
|
|
File without changes
|
|
File without changes
|