sceyt-chat-react-uikit 1.8.8-beta.14 → 1.8.8-beta.16

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 CHANGED
@@ -15663,7 +15663,7 @@ var getFrame = function getFrame(videoSrc, _time) {
15663
15663
  };
15664
15664
  var getVideoFirstFrame = function getVideoFirstFrame(videoSrc, maxWidth, maxHeight, quality) {
15665
15665
  if (quality === void 0) {
15666
- quality = 0.8;
15666
+ quality = 1;
15667
15667
  }
15668
15668
  try {
15669
15669
  var _exit3 = false;
@@ -15751,7 +15751,7 @@ var normalizeVideoBlob = function normalizeVideoBlob(blob) {
15751
15751
  var FRAME_LOAD_TIMEOUT_MS = 8000;
15752
15752
  var extractFrameFromUrl = function extractFrameFromUrl(srcUrl, maxWidth, maxHeight, quality) {
15753
15753
  if (quality === void 0) {
15754
- quality = 0.8;
15754
+ quality = 1;
15755
15755
  }
15756
15756
  return new Promise(function (resolve) {
15757
15757
  try {
@@ -15878,7 +15878,7 @@ var blobToDataUrl = function blobToDataUrl(blob) {
15878
15878
  };
15879
15879
  var _extractFrameFromBlob2 = function extractFrameFromBlob(blob, maxWidth, maxHeight, quality, allowRemux) {
15880
15880
  if (quality === void 0) {
15881
- quality = 0.8;
15881
+ quality = 1;
15882
15882
  }
15883
15883
  if (allowRemux === void 0) {
15884
15884
  allowRemux = true;
@@ -16388,7 +16388,7 @@ var handleUploadAttachments = function handleUploadAttachments(attachments, mess
16388
16388
  var _calculateRenderedIma2 = calculateRenderedImageWidth((attachment === null || attachment === void 0 ? void 0 : attachment.metadata.szw) || 1280, (attachment === null || attachment === void 0 ? void 0 : attachment.metadata.szh) || 1080),
16389
16389
  newWidth = _calculateRenderedIma2[0],
16390
16390
  newHeight = _calculateRenderedIma2[1];
16391
- return Promise.resolve(getVideoFirstFrame(blobLocal, newWidth, newHeight, 0.8)).then(function (result) {
16391
+ return Promise.resolve(getVideoFirstFrame(blobLocal, newWidth, newHeight)).then(function (result) {
16392
16392
  var _temp6 = function () {
16393
16393
  if (result) {
16394
16394
  var frameBlobUrl = result.frameBlobUrl,
@@ -17020,7 +17020,7 @@ function sendMessage(action) {
17020
17020
  var _calculateRenderedIma4 = calculateRenderedImageWidth((parsedMetadata === null || parsedMetadata === void 0 ? void 0 : parsedMetadata.szw) || 1280, (parsedMetadata === null || parsedMetadata === void 0 ? void 0 : parsedMetadata.szh) || 1080),
17021
17021
  newWidth = _calculateRenderedIma4[0],
17022
17022
  newHeight = _calculateRenderedIma4[1];
17023
- return Promise.resolve(getVideoFirstFrame(attachment.data, newWidth, newHeight, 0.8)).then(function (result) {
17023
+ return Promise.resolve(getVideoFirstFrame(attachment.data, newWidth, newHeight)).then(function (result) {
17024
17024
  var _temp15 = function () {
17025
17025
  if (result) {
17026
17026
  var frameBlobUrl = result.frameBlobUrl,
@@ -39134,7 +39134,7 @@ var VideoPreview = /*#__PURE__*/React.memo(function VideoPreview(_ref) {
39134
39134
  var _calculateRenderedIma = calculateRenderedImageWidth((parsedMetadata === null || parsedMetadata === void 0 ? void 0 : parsedMetadata.szw) || 1280, (parsedMetadata === null || parsedMetadata === void 0 ? void 0 : parsedMetadata.szh) || 1080),
39135
39135
  newWidth = _calculateRenderedIma[0],
39136
39136
  newHeight = _calculateRenderedIma[1];
39137
- return Promise.resolve(getVideoFirstFrame(videoSource, newWidth, newHeight, 0.8)).then(function (result) {
39137
+ return Promise.resolve(getVideoFirstFrame(videoSource, newWidth, newHeight)).then(function (result) {
39138
39138
  if (!result) {
39139
39139
  isExtractingRef.current = false;
39140
39140
  return;
@@ -39567,7 +39567,7 @@ var Attachment = function Attachment(_ref) {
39567
39567
  } else {
39568
39568
  var _temp4 = function () {
39569
39569
  if (attachment.type === attachmentTypes.video) {
39570
- return Promise.resolve(getVideoFirstFrame(body, renderWidth, renderHeight, 0.8)).then(function (frameResult) {
39570
+ return Promise.resolve(getVideoFirstFrame(body, renderWidth, renderHeight)).then(function (frameResult) {
39571
39571
  function _temp3() {
39572
39572
  setAttachmentToCache(attachment.url + "_original_video_url", new Response(body, {
39573
39573
  headers: {
@@ -39638,7 +39638,7 @@ var Attachment = function Attachment(_ref) {
39638
39638
  var blobUrl = URL.createObjectURL(blob);
39639
39639
  var _temp11 = function () {
39640
39640
  if (attachment.type === attachmentTypes.video) {
39641
- return Promise.resolve(getVideoFirstFrame(blob, renderWidth, renderHeight, 0.8)).then(function (frameResult) {
39641
+ return Promise.resolve(getVideoFirstFrame(blob, renderWidth, renderHeight)).then(function (frameResult) {
39642
39642
  function _temp10() {
39643
39643
  setAttachmentToCache(attachment.url + '_original_video_url', new Response(blob, {
39644
39644
  headers: {
@@ -52813,7 +52813,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
52813
52813
  var _calculateRenderedIma = calculateRenderedImageWidth(attachment.metadata.szh || 400, attachment.metadata.szh || 400),
52814
52814
  newWidth = _calculateRenderedIma[0],
52815
52815
  newHeight = _calculateRenderedIma[1];
52816
- return Promise.resolve(getVideoFirstFrame(attachment.data, newWidth, newHeight, 0.8)).then(function (result) {
52816
+ return Promise.resolve(getVideoFirstFrame(attachment.data, newWidth, newHeight)).then(function (result) {
52817
52817
  if (result) {
52818
52818
  var _attachment$metadata2;
52819
52819
  var frameBlobUrl = result.frameBlobUrl;
package/index.modern.js CHANGED
@@ -15643,7 +15643,7 @@ var getFrame = function getFrame(videoSrc, _time) {
15643
15643
  };
15644
15644
  var getVideoFirstFrame = function getVideoFirstFrame(videoSrc, maxWidth, maxHeight, quality) {
15645
15645
  if (quality === void 0) {
15646
- quality = 0.8;
15646
+ quality = 1;
15647
15647
  }
15648
15648
  try {
15649
15649
  var _exit3 = false;
@@ -15731,7 +15731,7 @@ var normalizeVideoBlob = function normalizeVideoBlob(blob) {
15731
15731
  var FRAME_LOAD_TIMEOUT_MS = 8000;
15732
15732
  var extractFrameFromUrl = function extractFrameFromUrl(srcUrl, maxWidth, maxHeight, quality) {
15733
15733
  if (quality === void 0) {
15734
- quality = 0.8;
15734
+ quality = 1;
15735
15735
  }
15736
15736
  return new Promise(function (resolve) {
15737
15737
  try {
@@ -15858,7 +15858,7 @@ var blobToDataUrl = function blobToDataUrl(blob) {
15858
15858
  };
15859
15859
  var _extractFrameFromBlob2 = function extractFrameFromBlob(blob, maxWidth, maxHeight, quality, allowRemux) {
15860
15860
  if (quality === void 0) {
15861
- quality = 0.8;
15861
+ quality = 1;
15862
15862
  }
15863
15863
  if (allowRemux === void 0) {
15864
15864
  allowRemux = true;
@@ -16368,7 +16368,7 @@ var handleUploadAttachments = function handleUploadAttachments(attachments, mess
16368
16368
  var _calculateRenderedIma2 = calculateRenderedImageWidth((attachment === null || attachment === void 0 ? void 0 : attachment.metadata.szw) || 1280, (attachment === null || attachment === void 0 ? void 0 : attachment.metadata.szh) || 1080),
16369
16369
  newWidth = _calculateRenderedIma2[0],
16370
16370
  newHeight = _calculateRenderedIma2[1];
16371
- return Promise.resolve(getVideoFirstFrame(blobLocal, newWidth, newHeight, 0.8)).then(function (result) {
16371
+ return Promise.resolve(getVideoFirstFrame(blobLocal, newWidth, newHeight)).then(function (result) {
16372
16372
  var _temp6 = function () {
16373
16373
  if (result) {
16374
16374
  var frameBlobUrl = result.frameBlobUrl,
@@ -17000,7 +17000,7 @@ function sendMessage(action) {
17000
17000
  var _calculateRenderedIma4 = calculateRenderedImageWidth((parsedMetadata === null || parsedMetadata === void 0 ? void 0 : parsedMetadata.szw) || 1280, (parsedMetadata === null || parsedMetadata === void 0 ? void 0 : parsedMetadata.szh) || 1080),
17001
17001
  newWidth = _calculateRenderedIma4[0],
17002
17002
  newHeight = _calculateRenderedIma4[1];
17003
- return Promise.resolve(getVideoFirstFrame(attachment.data, newWidth, newHeight, 0.8)).then(function (result) {
17003
+ return Promise.resolve(getVideoFirstFrame(attachment.data, newWidth, newHeight)).then(function (result) {
17004
17004
  var _temp15 = function () {
17005
17005
  if (result) {
17006
17006
  var frameBlobUrl = result.frameBlobUrl,
@@ -39114,7 +39114,7 @@ var VideoPreview = /*#__PURE__*/memo(function VideoPreview(_ref) {
39114
39114
  var _calculateRenderedIma = calculateRenderedImageWidth((parsedMetadata === null || parsedMetadata === void 0 ? void 0 : parsedMetadata.szw) || 1280, (parsedMetadata === null || parsedMetadata === void 0 ? void 0 : parsedMetadata.szh) || 1080),
39115
39115
  newWidth = _calculateRenderedIma[0],
39116
39116
  newHeight = _calculateRenderedIma[1];
39117
- return Promise.resolve(getVideoFirstFrame(videoSource, newWidth, newHeight, 0.8)).then(function (result) {
39117
+ return Promise.resolve(getVideoFirstFrame(videoSource, newWidth, newHeight)).then(function (result) {
39118
39118
  if (!result) {
39119
39119
  isExtractingRef.current = false;
39120
39120
  return;
@@ -39547,7 +39547,7 @@ var Attachment = function Attachment(_ref) {
39547
39547
  } else {
39548
39548
  var _temp4 = function () {
39549
39549
  if (attachment.type === attachmentTypes.video) {
39550
- return Promise.resolve(getVideoFirstFrame(body, renderWidth, renderHeight, 0.8)).then(function (frameResult) {
39550
+ return Promise.resolve(getVideoFirstFrame(body, renderWidth, renderHeight)).then(function (frameResult) {
39551
39551
  function _temp3() {
39552
39552
  setAttachmentToCache(attachment.url + "_original_video_url", new Response(body, {
39553
39553
  headers: {
@@ -39618,7 +39618,7 @@ var Attachment = function Attachment(_ref) {
39618
39618
  var blobUrl = URL.createObjectURL(blob);
39619
39619
  var _temp11 = function () {
39620
39620
  if (attachment.type === attachmentTypes.video) {
39621
- return Promise.resolve(getVideoFirstFrame(blob, renderWidth, renderHeight, 0.8)).then(function (frameResult) {
39621
+ return Promise.resolve(getVideoFirstFrame(blob, renderWidth, renderHeight)).then(function (frameResult) {
39622
39622
  function _temp10() {
39623
39623
  setAttachmentToCache(attachment.url + '_original_video_url', new Response(blob, {
39624
39624
  headers: {
@@ -52793,7 +52793,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
52793
52793
  var _calculateRenderedIma = calculateRenderedImageWidth(attachment.metadata.szh || 400, attachment.metadata.szh || 400),
52794
52794
  newWidth = _calculateRenderedIma[0],
52795
52795
  newHeight = _calculateRenderedIma[1];
52796
- return Promise.resolve(getVideoFirstFrame(attachment.data, newWidth, newHeight, 0.8)).then(function (result) {
52796
+ return Promise.resolve(getVideoFirstFrame(attachment.data, newWidth, newHeight)).then(function (result) {
52797
52797
  if (result) {
52798
52798
  var _attachment$metadata2;
52799
52799
  var frameBlobUrl = result.frameBlobUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sceyt-chat-react-uikit",
3
- "version": "1.8.8-beta.14",
3
+ "version": "1.8.8-beta.16",
4
4
  "description": "Interactive React UI Components for Sceyt Chat.",
5
5
  "author": "Sceyt",
6
6
  "license": "MIT",
@@ -82,22 +82,27 @@
82
82
  "package.json"
83
83
  ],
84
84
  "dependencies": {
85
- "@lexical/offset": "^0.12.2",
86
- "@lexical/react": "^0.12.2",
87
- "lexical": "^0.12.2",
88
- "linkify-it": "^4.0.1",
89
- "loglevel": "^1.9.2",
85
+ "@babel/plugin-proposal-unicode-property-regex": "^7.18.6",
90
86
  "@ffmpeg/ffmpeg": "^0.12.10",
91
87
  "@ffmpeg/util": "^0.12.1",
92
- "react-easy-crop": "^4.6.2",
93
- "mic-recorder-to-mp3": "https://github.com/NikolaBalaban/mic-recorder-to-mp3.git",
94
- "pica": "^9.0.1",
88
+ "@lexical/offset": "0.16.0",
89
+ "@lexical/react": "0.16.0",
95
90
  "file-saver": "^2.0.5",
96
- "uuid": "^9.0.0",
97
- "styled-components": "^5.3.5",
91
+ "lexical": "0.16.0",
92
+ "linkify-it": "^5.0.1",
93
+ "loglevel": "^1.9.2",
94
+ "mic-recorder-to-mp3": "^2.2.2",
95
+ "pica": "^9.0.1",
96
+ "react-circular-progressbar": "^2.1.0",
97
+ "react-easy-crop": "^4.6.2",
98
98
  "react-redux": "^9.2.0",
99
- "redux": "^5.0.1",
100
99
  "redux-saga": "^1.3.0",
101
- "react-circular-progressbar": "^2.1.0"
100
+ "styled-components": "^5.3.5",
101
+ "uuid": "^11.1.1"
102
+ },
103
+ "resolutions": {
104
+ "lodash": "^4.18.1",
105
+ "**/babel-plugin-styled-components/picomatch": "^2.3.2",
106
+ "shell-quote": "^1.8.4"
102
107
  }
103
- }
108
+ }