@chem-po/react-web 0.0.45 → 0.0.47

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": "@chem-po/react-web",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
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.45",
44
- "@chem-po/react": "0.0.45"
43
+ "@chem-po/core": "0.0.47",
44
+ "@chem-po/react": "0.0.47"
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 && field.accept.length === 1 && field.accept[0] === 'image',
329
+ () => field.accept?.length === 1 && field.accept[0] === 'image',
330
330
  [field],
331
331
  )
332
332
  const imgOptions = useMemo<ImageViewOptions | undefined>(