sceyt-chat-react-uikit 1.8.9-beta.1 → 1.8.9-beta.2
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/index.js +3 -2
- package/index.modern.js +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -10490,7 +10490,7 @@ if (isBrowser) {
|
|
|
10490
10490
|
} else {
|
|
10491
10491
|
cacheAvailable = 'caches' in global;
|
|
10492
10492
|
}
|
|
10493
|
-
var ATTACHMENT_VERSION = "
|
|
10493
|
+
var ATTACHMENT_VERSION = "_1_0_2";
|
|
10494
10494
|
var setAttachmentToCache = function setAttachmentToCache(attachmentUrl, attachmentResponse) {
|
|
10495
10495
|
try {
|
|
10496
10496
|
var attachmentURLVersion = attachmentUrl + ATTACHMENT_VERSION;
|
|
@@ -15984,7 +15984,8 @@ var compressAndCacheImage = function compressAndCacheImage(url, cacheKey, maxWid
|
|
|
15984
15984
|
var file = new File([blob], 'image.jpeg', {
|
|
15985
15985
|
type: blob.type
|
|
15986
15986
|
});
|
|
15987
|
-
|
|
15987
|
+
var dpr = Math.min(window.devicePixelRatio || 1, 2);
|
|
15988
|
+
return Promise.resolve(resizeImageWithPica(file, (maxWidth || 1280) * dpr, (maxHeight || 1080) * dpr, quality || 1)).then(function (_ref2) {
|
|
15988
15989
|
var compressedBlob = _ref2.blob;
|
|
15989
15990
|
var returningUrl = compressedBlob ? URL.createObjectURL(compressedBlob) : '';
|
|
15990
15991
|
if (compressedBlob) {
|
package/index.modern.js
CHANGED
|
@@ -10470,7 +10470,7 @@ if (isBrowser) {
|
|
|
10470
10470
|
} else {
|
|
10471
10471
|
cacheAvailable = 'caches' in global;
|
|
10472
10472
|
}
|
|
10473
|
-
var ATTACHMENT_VERSION = "
|
|
10473
|
+
var ATTACHMENT_VERSION = "_1_0_2";
|
|
10474
10474
|
var setAttachmentToCache = function setAttachmentToCache(attachmentUrl, attachmentResponse) {
|
|
10475
10475
|
try {
|
|
10476
10476
|
var attachmentURLVersion = attachmentUrl + ATTACHMENT_VERSION;
|
|
@@ -15964,7 +15964,8 @@ var compressAndCacheImage = function compressAndCacheImage(url, cacheKey, maxWid
|
|
|
15964
15964
|
var file = new File([blob], 'image.jpeg', {
|
|
15965
15965
|
type: blob.type
|
|
15966
15966
|
});
|
|
15967
|
-
|
|
15967
|
+
var dpr = Math.min(window.devicePixelRatio || 1, 2);
|
|
15968
|
+
return Promise.resolve(resizeImageWithPica(file, (maxWidth || 1280) * dpr, (maxHeight || 1080) * dpr, quality || 1)).then(function (_ref2) {
|
|
15968
15969
|
var compressedBlob = _ref2.blob;
|
|
15969
15970
|
var returningUrl = compressedBlob ? URL.createObjectURL(compressedBlob) : '';
|
|
15970
15971
|
if (compressedBlob) {
|