@visns-studio/visns-components 5.8.6 → 5.8.7

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
@@ -4,10 +4,10 @@
4
4
  "@fontsource/barlow": "^5.2.5",
5
5
  "@inovua/reactdatagrid-community": "^5.10.2",
6
6
  "@inovua/reactdatagrid-enterprise": "^5.10.2",
7
- "@nivo/bar": "^0.95.0",
8
- "@nivo/core": "^0.95.0",
9
- "@nivo/line": "^0.95.0",
10
- "@nivo/pie": "^0.95.0",
7
+ "@nivo/bar": "^0.96.0",
8
+ "@nivo/core": "^0.96.0",
9
+ "@nivo/line": "^0.96.0",
10
+ "@nivo/pie": "^0.96.0",
11
11
  "@tinymce/tinymce-react": "^6.1.0",
12
12
  "@visns-studio/visns-datagrid-community": "^1.0.14",
13
13
  "@visns-studio/visns-datagrid-enterprise": "^1.0.14",
@@ -20,12 +20,12 @@
20
20
  "dayjs": "^1.11.13",
21
21
  "fabric": "^6.6.5",
22
22
  "file-saver": "^2.0.5",
23
- "framer-motion": "^12.11.0",
23
+ "framer-motion": "^12.11.3",
24
24
  "html-react-parser": "^5.2.5",
25
25
  "lodash": "^4.17.21",
26
26
  "lodash.debounce": "^4.0.8",
27
27
  "moment": "^2.30.1",
28
- "motion": "^12.11.0",
28
+ "motion": "^12.11.3",
29
29
  "numeral": "^2.0.6",
30
30
  "pluralize": "^8.0.0",
31
31
  "qrcode.react": "^4.2.0",
@@ -82,7 +82,7 @@
82
82
  "react-dom": "^17.0.0 || ^18.0.0"
83
83
  },
84
84
  "name": "@visns-studio/visns-components",
85
- "version": "5.8.6",
85
+ "version": "5.8.7",
86
86
  "description": "Various packages to assist in the development of our Custom Applications.",
87
87
  "main": "src/index.js",
88
88
  "files": [
@@ -815,17 +815,16 @@ function Form({
815
815
  }
816
816
  );
817
817
 
818
- formData['uploadedFiles'] = await Promise.all(
819
- uploadPromises
820
- );
818
+ updatedFormData['uploadedFiles'] =
819
+ await Promise.all(uploadPromises);
821
820
  } else {
822
821
  // Optimize image if it's an image file
823
822
  const optimizedFile = await optimizeImageIfNeeded(
824
- formData[fileKey]
823
+ updatedFormData[fileKey]
825
824
  );
826
825
 
827
826
  const toastId = toast.info(
828
- `Uploading ${formData[fileKey].name}`,
827
+ `Uploading ${updatedFormData[fileKey].name}`,
829
828
  {
830
829
  progress: 0,
831
830
  autoClose: false,
@@ -842,19 +841,20 @@ function Form({
842
841
  });
843
842
 
844
843
  toast.update(toastId, {
845
- render: `${formData[fileKey].name} uploaded successfully!`,
844
+ render: `${updatedFormData[fileKey].name} uploaded successfully!`,
846
845
  type: 'success',
847
846
  autoClose: 3000,
848
847
  });
849
848
 
850
- formData['uuid'] = fileRes.uuid;
851
- formData['key'] = fileRes.key;
852
- formData['bucket'] = fileRes.bucket;
853
- formData['filename'] = formData[fileKey].name;
854
- formData['filesize'] = optimizedFile.size;
855
- formData['extension'] = fileRes.extension;
856
- formData['file_relationship'] = fileKey;
857
- formData['fileable_field'] =
849
+ updatedFormData['uuid'] = fileRes.uuid;
850
+ updatedFormData['key'] = fileRes.key;
851
+ updatedFormData['bucket'] = fileRes.bucket;
852
+ updatedFormData['filename'] =
853
+ updatedFormData[fileKey].name;
854
+ updatedFormData['filesize'] = optimizedFile.size;
855
+ updatedFormData['extension'] = fileRes.extension;
856
+ updatedFormData['file_relationship'] = fileKey;
857
+ updatedFormData['fileable_field'] =
858
858
  fileFieldSetting.fileable_field;
859
859
  }
860
860
  }