@chem-po/react-web 0.0.45 → 0.0.46
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/form/input/file.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chem-po/react-web",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.46",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"react-window-infinite-loader": "^1.0.9",
|
|
41
41
|
"@hello-pangea/dnd": "^18.0.1",
|
|
42
42
|
"zustand": "^4.3.3",
|
|
43
|
-
"@chem-po/core": "0.0.
|
|
44
|
-
"@chem-po/react": "0.0.
|
|
43
|
+
"@chem-po/core": "0.0.46",
|
|
44
|
+
"@chem-po/react": "0.0.46"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": "~19.1.0",
|
|
@@ -326,7 +326,7 @@ export const FileComponent = forwardRef<InputRef, FieldProps<FileField>>(
|
|
|
326
326
|
},
|
|
327
327
|
}))
|
|
328
328
|
const isImageField = useMemo(
|
|
329
|
-
() => field.accept
|
|
329
|
+
() => field.accept?.length === 1 && field.accept[0] === 'image',
|
|
330
330
|
[field],
|
|
331
331
|
)
|
|
332
332
|
const imgOptions = useMemo<ImageViewOptions | undefined>(
|