@meduza/ui-kit-2 0.1.44 → 0.1.45

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.
@@ -14,10 +14,7 @@ export interface ImageProps {
14
14
  height?: number;
15
15
  source?: string[];
16
16
  lazy?: boolean;
17
- fullscreen?: {
18
- mobile: boolean;
19
- desktop: boolean;
20
- };
17
+ fullscreen?: boolean;
21
18
  ratio?: number;
22
19
  styleContext?: string[] | string;
23
20
  }
@@ -443,7 +443,8 @@ var Image = function Image(_ref) {
443
443
  height = _ref.height,
444
444
  source = _ref.source,
445
445
  lazy = _ref.lazy,
446
- fullscreen = _ref.fullscreen,
446
+ _ref$fullscreen = _ref.fullscreen,
447
+ fullscreen = _ref$fullscreen === void 0 ? true : _ref$fullscreen,
447
448
  ratio = _ref.ratio,
448
449
  styleContext = _ref.styleContext;
449
450
 
@@ -472,7 +473,7 @@ var Image = function Image(_ref) {
472
473
  /* fallback w325 url until w6 was released */
473
474
 
474
475
  var fallbackSource = source && source[0] || optimized.w325 && optimized.w325['1x'] || optimized.original;
475
- var classNames = [[styles$4.root, true], [styles$4.isLoaded, isLoaded], [styles$4.fullscreen, fullscreen && fullscreen.desktop]];
476
+ var classNames = [[styles$4.root, true], [styles$4.isLoaded, isLoaded], [styles$4.fullscreen, fullscreen]];
476
477
 
477
478
  if (styleContext) {
478
479
  classNames = makeStyleContext(classNames, styleContext, styles$4);
@@ -751,10 +752,7 @@ var DotsOnImage = function DotsOnImage(_ref) {
751
752
  height: height,
752
753
  alt: credit,
753
754
  display: display,
754
- fullscreen: {
755
- mobile: false,
756
- desktop: false
757
- }
755
+ fullscreen: false
758
756
  }), React__default.createElement("div", {
759
757
  ref: container
760
758
  }, dots.map(function (dot) {
@@ -1269,10 +1267,6 @@ var EmbedBlock = function EmbedBlock(_ref) {
1269
1267
  return React__default.createElement("div", {
1270
1268
  className: styles$i.figure
1271
1269
  }, React__default.createElement(Image, {
1272
- fullscreen: {
1273
- desktop: block.data.fullscreen,
1274
- mobile: true
1275
- },
1276
1270
  source: !optimized && [small, large],
1277
1271
  optimized: block.data.optimized,
1278
1272
  width: block.data.width,