@meduza/ui-kit-2 0.1.57 → 0.1.59

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.
@@ -437,7 +437,9 @@ var Image = function Image(_ref) {
437
437
  source = _ref.source,
438
438
  lazy = _ref.lazy,
439
439
  ratio = _ref.ratio,
440
- styleContext = _ref.styleContext;
440
+ styleContext = _ref.styleContext,
441
+ _ref$fullscreen = _ref.fullscreen,
442
+ fullscreen = _ref$fullscreen === void 0 ? true : _ref$fullscreen;
441
443
 
442
444
  var _useContext = useContext(BlockContext),
443
445
  lightBox = _useContext.lightBox;
@@ -447,7 +449,7 @@ var Image = function Image(_ref) {
447
449
  setIsLoaded = _useState[1];
448
450
 
449
451
  var handleClick = function handleClick() {
450
- if (!lightBox || optimized && !optimized.original) {
452
+ if (!lightBox || !fullscreen || optimized && !optimized.original) {
451
453
  return;
452
454
  }
453
455
 
@@ -464,7 +466,7 @@ var Image = function Image(_ref) {
464
466
  /* fallback w325 url until w6 was released */
465
467
 
466
468
  var fallbackSource = source && source[0] || optimized.w325 && optimized.w325['1x'] || optimized.original;
467
- var classNames = [[styles$4.root, true], [styles$4.isLoaded, isLoaded], [styles$4.fullscreen, lightBox && optimized && optimized.original]];
469
+ var classNames = [[styles$4.root, true], [styles$4.isLoaded, isLoaded], [styles$4.fullscreen, lightBox && optimized && optimized.original && fullscreen]];
468
470
 
469
471
  if (styleContext) {
470
472
  classNames = makeStyleContext(classNames, styleContext, styles$4);
@@ -738,6 +740,7 @@ var DotsOnImage = function DotsOnImage(_ref) {
738
740
  "data-testid": "dots-on-image",
739
741
  ref: ref
740
742
  }, React.createElement(Image, {
743
+ fullscreen: false,
741
744
  optimized: optimized,
742
745
  width: width,
743
746
  height: height,
@@ -1220,7 +1223,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1220
1223
 
1221
1224
  var style = {};
1222
1225
  var isProportional = block.data.height && block.data.width;
1223
- var fullWidthProviders = ['youtube', 'vimeo', 'onetv', 'coub', 'facebook_video'];
1226
+ var fullWidthProviders = ['youtube', 'vimeo', 'onetv', 'coub', 'meduza', 'facebook_video'];
1224
1227
  var mobileFullwidth = fullWidthProviders.indexOf(provider) > -1 || block.type === 'dots_on_image';
1225
1228
 
1226
1229
  var renderCC = function renderCC(context) {