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