@meduza/ui-kit-2 1.0.9 → 1.1.1

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.
@@ -1163,16 +1163,6 @@ const EmbedGif = ({
1163
1163
 
1164
1164
  /* eslint-disable react/no-unknown-property */
1165
1165
  /* eslint-disable jsx-a11y/media-has-caption */
1166
- const thumbnailToImagePath = url => {
1167
- if (!url) {
1168
- return undefined;
1169
- }
1170
- const indexImage = url.indexOf('/image');
1171
- if (indexImage >= 0) {
1172
- return url.slice(indexImage);
1173
- }
1174
- return url;
1175
- };
1176
1166
  const EmbedBlock = ({
1177
1167
  block,
1178
1168
  block: {
@@ -1259,9 +1249,10 @@ const EmbedBlock = ({
1259
1249
  className: makeClassName([[styles$r.objectWrap, true], [styles$r.isDefaultVideo, true]])
1260
1250
  }, /*#__PURE__*/React.createElement("video", {
1261
1251
  src: videoFileUrl,
1262
- poster: thumbnailToImagePath(thumbnailUrl),
1252
+ poster: thumbnailUrl,
1263
1253
  controls: true,
1264
- playsInline: true
1254
+ playsInline: true,
1255
+ preload: "none"
1265
1256
  })));
1266
1257
  }
1267
1258
  return /*#__PURE__*/React.createElement("div", {