@uploadista/react-native-core 0.0.20-beta.9 → 0.1.0-beta.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uploadista/react-native-core",
3
- "version": "0.0.20-beta.9",
3
+ "version": "0.1.0-beta.5",
4
4
  "type": "module",
5
5
  "description": "Core React Native client for Uploadista",
6
6
  "license": "MIT",
@@ -15,8 +15,8 @@
15
15
  "dependencies": {
16
16
  "uuid": "^13.0.0",
17
17
  "js-base64": "^3.7.7",
18
- "@uploadista/core": "0.0.20-beta.9",
19
- "@uploadista/client-core": "0.0.20-beta.9"
18
+ "@uploadista/core": "0.1.0-beta.5",
19
+ "@uploadista/client-core": "0.1.0-beta.5"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": ">=16.8.0",
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/react": ">=18.0.0",
33
- "tsdown": "0.18.0",
34
- "@uploadista/typescript-config": "0.0.20-beta.9"
33
+ "tsdown": "0.19.0",
34
+ "@uploadista/typescript-config": "0.1.0-beta.5"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "tsc --noEmit && tsdown",
@@ -648,11 +648,14 @@ function FlowSubmit({ children, disabled }: FlowSubmitProps) {
648
648
 
649
649
  const renderProps: FlowSubmitRenderProps = {
650
650
  submit: flow.execute,
651
- isDisabled: disabled || flow.isActive || Object.keys(flow.inputs).length === 0,
651
+ isDisabled:
652
+ disabled || flow.isActive || Object.keys(flow.inputs).length === 0,
652
653
  isSubmitting: flow.isActive,
653
654
  };
654
655
 
655
- return <>{typeof children === "function" ? children(renderProps) : children}</>;
656
+ return (
657
+ <>{typeof children === "function" ? children(renderProps) : children}</>
658
+ );
656
659
  }
657
660
 
658
661
  /**
@@ -684,7 +687,9 @@ function FlowCancel({ children }: FlowCancelProps) {
684
687
  isDisabled: !flow.isActive,
685
688
  };
686
689
 
687
- return <>{typeof children === "function" ? children(renderProps) : children}</>;
690
+ return (
691
+ <>{typeof children === "function" ? children(renderProps) : children}</>
692
+ );
688
693
  }
689
694
 
690
695
  /**
@@ -716,7 +721,9 @@ function FlowReset({ children }: FlowResetProps) {
716
721
  isDisabled: flow.isActive,
717
722
  };
718
723
 
719
- return <>{typeof children === "function" ? children(renderProps) : children}</>;
724
+ return (
725
+ <>{typeof children === "function" ? children(renderProps) : children}</>
726
+ );
720
727
  }
721
728
 
722
729
  // ============ QUICK UPLOAD PRIMITIVE ============
@@ -11,41 +11,74 @@ export {
11
11
  FileUploadButton,
12
12
  type FileUploadButtonProps,
13
13
  } from "./FileUploadButton";
14
- export {
15
- GalleryUploadButton,
16
- type GalleryUploadButtonProps,
17
- } from "./GalleryUploadButton";
18
- export { UploadList, type UploadListProps } from "./UploadList";
19
- export { UploadProgress, type UploadProgressProps } from "./UploadProgress";
20
-
21
14
  // Flow compound components
22
15
  export {
23
16
  Flow,
24
- useFlowContext,
25
- useFlowInputContext,
26
- type FlowProps,
27
- type FlowRenderProps,
17
+ type FlowCancelProps,
18
+ type FlowCancelRenderProps,
28
19
  type FlowContextValue,
20
+ type FlowErrorProps,
21
+ type FlowErrorRenderProps,
29
22
  type FlowInputContextValue,
30
- type FlowInputsProps,
31
- type FlowInputsRenderProps,
32
- type FlowInputProps,
33
23
  type FlowInputFilePickerProps,
34
24
  type FlowInputFilePickerRenderProps,
35
25
  type FlowInputPreviewProps,
36
26
  type FlowInputPreviewRenderProps,
27
+ type FlowInputProps,
28
+ type FlowInputsProps,
29
+ type FlowInputsRenderProps,
37
30
  type FlowProgressProps,
38
31
  type FlowProgressRenderProps,
32
+ type FlowProps,
33
+ type FlowQuickUploadProps,
34
+ type FlowQuickUploadRenderProps,
35
+ type FlowRenderProps,
36
+ type FlowResetProps,
37
+ type FlowResetRenderProps,
39
38
  type FlowStatusProps,
40
39
  type FlowStatusRenderProps,
41
- type FlowErrorProps,
42
- type FlowErrorRenderProps,
43
40
  type FlowSubmitProps,
44
41
  type FlowSubmitRenderProps,
45
- type FlowCancelProps,
46
- type FlowCancelRenderProps,
47
- type FlowResetProps,
48
- type FlowResetRenderProps,
49
- type FlowQuickUploadProps,
50
- type FlowQuickUploadRenderProps,
42
+ useFlowContext,
43
+ useFlowInputContext,
51
44
  } from "./flow-primitives";
45
+ export {
46
+ GalleryUploadButton,
47
+ type GalleryUploadButtonProps,
48
+ } from "./GalleryUploadButton";
49
+ export { UploadList, type UploadListProps } from "./UploadList";
50
+ export { UploadProgress, type UploadProgressProps } from "./UploadProgress";
51
+
52
+ // Upload compound components
53
+ export {
54
+ Upload,
55
+ type UploadCameraPickerProps,
56
+ type UploadCameraPickerRenderProps,
57
+ type UploadCancelProps,
58
+ type UploadCancelRenderProps,
59
+ type UploadContextValue,
60
+ type UploadErrorProps,
61
+ type UploadErrorRenderProps,
62
+ type UploadFilePickerProps,
63
+ type UploadFilePickerRenderProps,
64
+ type UploadGalleryPickerProps,
65
+ type UploadGalleryPickerRenderProps,
66
+ type UploadItemContextValue,
67
+ type UploadItemProps,
68
+ type UploadItemsProps,
69
+ type UploadItemsRenderProps,
70
+ type UploadProgressProps as UploadCompoundProgressProps,
71
+ type UploadProgressRenderProps as UploadCompoundProgressRenderProps,
72
+ type UploadProps,
73
+ type UploadRenderProps,
74
+ type UploadResetProps,
75
+ type UploadResetRenderProps,
76
+ type UploadRetryProps,
77
+ type UploadRetryRenderProps,
78
+ type UploadStartAllProps,
79
+ type UploadStartAllRenderProps,
80
+ type UploadStatusProps,
81
+ type UploadStatusRenderProps,
82
+ useUploadContext,
83
+ useUploadItemContext,
84
+ } from "./upload-primitives";