@sunggang/ui-lib 0.1.77 → 0.1.78

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.
Files changed (2) hide show
  1. package/index.esm.js +5 -4
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -79772,12 +79772,13 @@ var DropImage = function(param) {
79772
79772
  dropFiles.forEach(function(dropFile) {
79773
79773
  Object.assign(dropFile, {
79774
79774
  preview: URL.createObjectURL(dropFile),
79775
- uuid: v4()
79775
+ id: v4(),
79776
+ index: (previewFiles === null || previewFiles === void 0 ? void 0 : previewFiles.length) + 1
79776
79777
  });
79777
79778
  newFiles.push(dropFile);
79778
- setPreviewFiles(function(prev) {
79779
- return _to_consumable_array$2(prev).concat(_to_consumable_array$2(newFiles));
79780
- });
79779
+ });
79780
+ setPreviewFiles(function(prev) {
79781
+ return _to_consumable_array$2(prev).concat(_to_consumable_array$2(newFiles));
79781
79782
  });
79782
79783
  }
79783
79784
  }), getRootProps = _useDropzone.getRootProps, getInputProps = _useDropzone.getInputProps; _useDropzone.isDragActive; _useDropzone.isDragAccept; _useDropzone.isDragReject;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.1.77",
3
+ "version": "0.1.78",
4
4
  "dependencies": {
5
5
  "@iconify/react": "^4.1.1",
6
6
  "@mdx-js/react": "^3.0.1",