@uploadcare/react-uploader 0.4.0 → 0.5.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.
@@ -2,6 +2,7 @@ import type { ConfigType } from '@uploadcare/blocks';
2
2
  import { defineLocale } from '@uploadcare/blocks';
3
3
  import type { EventMap } from '@uploadcare/blocks';
4
4
  import { FC } from 'react';
5
+ import { default as React_2 } from 'react';
5
6
  import type { Ref } from 'react';
6
7
  import { UploadCtxProvider } from '@uploadcare/blocks';
7
8
 
@@ -17,7 +18,7 @@ declare type TDefaultProps = {
17
18
  className?: string;
18
19
  classNameUploader?: string;
19
20
  ctxName?: string;
20
- };
21
+ } & Pick<TProps_2, "fallback">;
21
22
 
22
23
  export declare type TEventsSchema = {
23
24
  [K in keyof EventMap as TPrefixOnAndCamelCase<K>]: (event: EventMap[K]["detail"]) => void;
@@ -29,6 +30,12 @@ declare type TPrefixOnAndCamelCase<S extends string> = TExtraPrefixOn<TToCamelCa
29
30
 
30
31
  export declare type TProps = TDefaultProps & TRefUploadCtxProvider & TPropsWithEvents & TPropsWithConfig;
31
32
 
33
+ declare type TProps_2 = {
34
+ fallback?: React_2.ReactChild | React_2.ReactFragment | React_2.ReactPortal | null;
35
+ condition: boolean;
36
+ children: React_2.ReactNode;
37
+ };
38
+
32
39
  declare type TPropsWithConfig = Partial<ConfigType>;
33
40
 
34
41
  declare type TPropsWithEvents = Partial<TEventsSchema>;