@osmandvc/react-upload-control 0.3.0 → 0.3.2

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.
@@ -1,6 +1,5 @@
1
1
  export * from "./cn";
2
2
  export * from "./api-mocker";
3
3
  export * from "./is-filedrop-error";
4
- export * from "./error-handling";
5
4
  export * from "./image-processing";
6
5
  export * from "./date";
package/package.json CHANGED
@@ -1,12 +1,19 @@
1
1
  {
2
2
  "name": "@osmandvc/react-upload-control",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "A completely free and open-source file uploader library designed for modern react applications. This package focuses on delivering a feature-rich experience while prioritizing an exceptional developer experience (DX). Whether you're handling simple uploads or complex multi-file scenarios, this library offers powerful customization, seamless integration, and a smooth workflow for developers. Perfect for those who need an efficient, flexible, and easy-to-use file uploader solution in their projects.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
+ "sideEffects": [
8
+ "*.css",
9
+ "react-medium-image-zoom/dist/styles.css"
10
+ ],
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/osmandvc/react-upload-control.git"
14
+ },
7
15
  "files": [
8
16
  "dist",
9
- "dist/**/*.d.ts",
10
17
  "README.md",
11
18
  "LICENSE"
12
19
  ],
@@ -41,56 +48,54 @@
41
48
  ],
42
49
  "author": "Osman Deveci",
43
50
  "license": "MIT",
51
+ "peerDependencies": {
52
+ "react": "^18.0.0",
53
+ "react-dom": "^18.0.0"
54
+ },
44
55
  "dependencies": {
45
56
  "@dnd-kit/core": "^6.2.0",
46
57
  "@dnd-kit/sortable": "^9.0.0",
47
- "@emotion/react": "^11.13.3",
48
- "@emotion/styled": "^11.13.0",
49
58
  "@radix-ui/react-dialog": "^1.1.2",
50
59
  "@radix-ui/react-progress": "^1.1.0",
51
60
  "@radix-ui/react-select": "^2.1.2",
52
61
  "@radix-ui/react-separator": "^1.1.0",
53
62
  "@radix-ui/react-slot": "^1.1.0",
54
63
  "@radix-ui/react-tooltip": "^1.1.3",
55
- "@storybook/addon-styling": "^1.3.7",
56
64
  "@tabler/icons-react": "^3.19.0",
57
- "@types/react": "^18.3.11",
58
- "@types/react-dom": "^18.3.1",
59
65
  "class-variance-authority": "^0.7.0",
60
66
  "date-fns": "^4.1.0",
61
67
  "filesize": "^10.1.6",
62
- "kleur": "^4.1.5",
63
68
  "nanoid": "^5.0.7",
64
- "react": "^18.3.1",
65
69
  "react-intl": "^6.4.0",
66
70
  "react-medium-image-zoom": "^5.2.10",
67
71
  "react-spinners": "^0.14.1",
68
- "react-wrap-balancer": "^1.1.1",
69
72
  "sonner": "^1.5.0",
70
73
  "tailwind-merge": "^2.5.4",
71
- "tailwindcss-animate": "^1.0.7",
72
- "typescript": "^5.6.3",
73
- "zod": "^3.23.8"
74
+ "tailwindcss-animate": "^1.0.7"
74
75
  },
75
76
  "devDependencies": {
76
77
  "@babel/core": "^7.25.8",
77
78
  "@babel/preset-env": "^7.25.8",
78
79
  "@babel/preset-react": "^7.25.7",
79
80
  "@babel/preset-typescript": "^7.25.7",
80
- "@chromatic-com/storybook": "^1.9.0",
81
+ "@osmandvc/react-upload-control-processors": "file:../processors/osmandvc-react-upload-control-processors-0.0.1.tgz",
81
82
  "@storybook/addon-essentials": "^8.3.6",
82
83
  "@storybook/addon-interactions": "^8.3.6",
83
84
  "@storybook/addon-links": "^8.3.6",
84
85
  "@storybook/addon-onboarding": "^8.3.6",
86
+ "@storybook/addon-styling": "^1.3.7",
85
87
  "@storybook/addon-webpack5-compiler-swc": "^1.0.5",
86
88
  "@storybook/blocks": "^8.3.6",
87
89
  "@storybook/react": "^8.3.6",
88
90
  "@storybook/react-webpack5": "^8.3.6",
89
91
  "@storybook/test": "^8.3.6",
92
+ "@types/react": "^18.3.11",
93
+ "@types/react-dom": "^18.3.1",
90
94
  "autoprefixer": "^10.4.20",
91
95
  "babel-loader": "^9.2.1",
92
96
  "chromatic": "^11.20.2",
93
97
  "css-loader": "^7.1.2",
98
+ "mini-css-extract-plugin": "^2.9.2",
94
99
  "postcss": "^8.4.47",
95
100
  "postcss-loader": "^8.1.1",
96
101
  "process": "^0.11.10",
@@ -100,10 +105,10 @@
100
105
  "tailwindcss": "^3.4.14",
101
106
  "ts-loader": "^9.5.1",
102
107
  "tsconfig-paths-webpack-plugin": "^4.1.0",
108
+ "typescript": "^5.6.3",
103
109
  "webpack": "^5.95.0",
104
110
  "webpack-bundle-analyzer": "^4.10.2",
105
111
  "webpack-cli": "^5.1.4",
106
- "webpack-dev-server": "^5.1.0",
107
- "@osmandvc/react-upload-control-processors": "file:../processors/osmandvc-react-upload-control-processors-0.0.1.tgz"
112
+ "webpack-dev-server": "^5.1.0"
108
113
  }
109
114
  }
@@ -1,20 +0,0 @@
1
- interface WebcamFrameProps {
2
- width: number;
3
- height: number;
4
- offset?: {
5
- top: number;
6
- right: number;
7
- bottom: number;
8
- left: number;
9
- };
10
- proportion?: number;
11
- }
12
- export declare function getFrame(props: WebcamFrameProps): {
13
- x: number;
14
- y: number;
15
- width: number;
16
- height: number;
17
- orientation: string;
18
- };
19
- export declare function WebcamFrameA4(props: WebcamFrameProps): import("react/jsx-runtime").JSX.Element;
20
- export {};
@@ -1,3 +0,0 @@
1
- export declare function formatError(e: any, doIncludeStack?: boolean): string;
2
- export declare function consoleWarn(...args: any): void;
3
- export declare function consoleError(...args: any): void;