@underverse-ui/underverse 1.0.181 → 1.0.182

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,6 @@
1
1
  {
2
2
  "package": "@underverse-ui/underverse",
3
- "version": "1.0.181",
3
+ "version": "1.0.182",
4
4
  "sourceEntry": "src/index.ts",
5
5
  "totalExports": 248,
6
6
  "exports": [
package/dist/index.cjs CHANGED
@@ -21955,11 +21955,12 @@ function ImageUpload({
21955
21955
  if (validFiles.length === 0) return;
21956
21956
  setUploading(true);
21957
21957
  try {
21958
+ let idCount = 0;
21958
21959
  for (const file of validFiles) {
21959
21960
  const formData = new FormData();
21960
21961
  formData.append("file", file);
21961
21962
  const response = {
21962
- id: Date.now(),
21963
+ id: Date.now() + idCount,
21963
21964
  path: "",
21964
21965
  url: URL.createObjectURL(file),
21965
21966
  originalName: file.name,
@@ -21986,6 +21987,7 @@ function ImageUpload({
21986
21987
  type: "success",
21987
21988
  message: `"${file.name}" uploaded successfully`
21988
21989
  });
21990
+ idCount++;
21989
21991
  }
21990
21992
  } catch (error) {
21991
21993
  console.error("Upload error:", error);