@blerp/design 1.0.49 → 1.0.50
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.js +5 -3
- package/dist/index.esm.js +5 -3
- package/dist/index.umd.js +5 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3001,7 +3001,8 @@ var ImageUploadModal = function ImageUploadModal(_ref) {
|
|
|
3001
3001
|
case 5:
|
|
3002
3002
|
blob = _context.sent;
|
|
3003
3003
|
file = new File([blob], img, {
|
|
3004
|
-
type: blob.type
|
|
3004
|
+
type: blob.type,
|
|
3005
|
+
size: blob.type
|
|
3005
3006
|
});
|
|
3006
3007
|
setImage(file);
|
|
3007
3008
|
|
|
@@ -3101,8 +3102,9 @@ var ImageUploadModal = function ImageUploadModal(_ref) {
|
|
|
3101
3102
|
|
|
3102
3103
|
// create an image file using the data from the blob, assign the file a name, assign the file type
|
|
3103
3104
|
// Adding ".JPG" is totally janky, but since the database currently reads the file type from the name of the file (not the image.type), and since we are changing the image.name to match the url of the image, an error will be thrown if we do not declare a file type at the end.
|
|
3104
|
-
file = new File([blob], image.name
|
|
3105
|
-
type: image.type
|
|
3105
|
+
file = new File([blob], image.name, {
|
|
3106
|
+
type: image.type,
|
|
3107
|
+
size: image.size
|
|
3106
3108
|
});
|
|
3107
3109
|
});
|
|
3108
3110
|
|
package/dist/index.esm.js
CHANGED
|
@@ -2954,7 +2954,8 @@ var ImageUploadModal = function ImageUploadModal(_ref) {
|
|
|
2954
2954
|
case 5:
|
|
2955
2955
|
blob = _context.sent;
|
|
2956
2956
|
file = new File([blob], img, {
|
|
2957
|
-
type: blob.type
|
|
2957
|
+
type: blob.type,
|
|
2958
|
+
size: blob.type
|
|
2958
2959
|
});
|
|
2959
2960
|
setImage(file);
|
|
2960
2961
|
|
|
@@ -3054,8 +3055,9 @@ var ImageUploadModal = function ImageUploadModal(_ref) {
|
|
|
3054
3055
|
|
|
3055
3056
|
// create an image file using the data from the blob, assign the file a name, assign the file type
|
|
3056
3057
|
// Adding ".JPG" is totally janky, but since the database currently reads the file type from the name of the file (not the image.type), and since we are changing the image.name to match the url of the image, an error will be thrown if we do not declare a file type at the end.
|
|
3057
|
-
file = new File([blob], image.name
|
|
3058
|
-
type: image.type
|
|
3058
|
+
file = new File([blob], image.name, {
|
|
3059
|
+
type: image.type,
|
|
3060
|
+
size: image.size
|
|
3059
3061
|
});
|
|
3060
3062
|
});
|
|
3061
3063
|
|
package/dist/index.umd.js
CHANGED
|
@@ -2955,7 +2955,8 @@
|
|
|
2955
2955
|
case 5:
|
|
2956
2956
|
blob = _context.sent;
|
|
2957
2957
|
file = new File([blob], img, {
|
|
2958
|
-
type: blob.type
|
|
2958
|
+
type: blob.type,
|
|
2959
|
+
size: blob.type
|
|
2959
2960
|
});
|
|
2960
2961
|
setImage(file);
|
|
2961
2962
|
|
|
@@ -3055,8 +3056,9 @@
|
|
|
3055
3056
|
|
|
3056
3057
|
// create an image file using the data from the blob, assign the file a name, assign the file type
|
|
3057
3058
|
// Adding ".JPG" is totally janky, but since the database currently reads the file type from the name of the file (not the image.type), and since we are changing the image.name to match the url of the image, an error will be thrown if we do not declare a file type at the end.
|
|
3058
|
-
file = new File([blob], image.name
|
|
3059
|
-
type: image.type
|
|
3059
|
+
file = new File([blob], image.name, {
|
|
3060
|
+
type: image.type,
|
|
3061
|
+
size: image.size
|
|
3060
3062
|
});
|
|
3061
3063
|
});
|
|
3062
3064
|
|