@telefonica/mistica 11.5.0 → 11.5.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.
package/dist/carousel.js CHANGED
@@ -224,6 +224,9 @@ var useStyles = (0, _jss).createUseStyles(function(theme) {
224
224
  var _obj, _obj1, _obj2;
225
225
  return {
226
226
  carouselContainer: {
227
+ // This value is a workaround to solve an issue when the page is rendered in a hidden webview
228
+ // in that case the window size is reported as 0 and the scroll snap is placed at the wrong slide
229
+ minWidth: 64,
227
230
  position: "relative"
228
231
  },
229
232
  arrowButton: _objectSpread({}, arrowButtonStyle(theme), {
package/dist/feedback.js CHANGED
@@ -245,6 +245,14 @@ var useStyles = (0, _jss).createUseStyles(function(theme) {
245
245
  }
246
246
  };
247
247
  });
248
+ var BackgroundColor = function BackgroundColor() {
249
+ var colors = (0, _hooks).useTheme().colors;
250
+ var isInverse = (0, _themeVariantContext).useIsInverseVariant();
251
+ var css = "body {background:".concat(isInverse ? colors.backgroundBrand : colors.background, "}");
252
+ return /*#__PURE__*/ (0, _jsxRuntime).jsx("style", {
253
+ children: css
254
+ });
255
+ };
248
256
  var requestVibration = function requestVibration(type) {
249
257
  if ((0, _webviewBridge).isWebViewBridgeAvailable()) {
250
258
  (0, _webviewBridge).requestVibration(type).catch(function() {});
@@ -354,7 +362,7 @@ var FeedbackScreen = function FeedbackScreen(param) {
354
362
  var title = param.title, description = param.description, children = param.children, primaryButton = param.primaryButton, secondaryButton = param.secondaryButton, link = param.link, hapticFeedback = param.hapticFeedback, icon = param.icon, _animateText = param.animateText, animateText = _animateText === void 0 ? false : _animateText, unstable_inlineInDesktop = param.unstable_inlineInDesktop, imageUrl = param.imageUrl, imageFit = param.imageFit, dataAttributes = param.dataAttributes;
355
363
  useHapticFeedback(hapticFeedback);
356
364
  var isInverse = (0, _themeVariantContext).useIsInverseVariant();
357
- var ref = (0, _hooks).useTheme(), colors = ref.colors, platformOverrides = ref.platformOverrides, isDarkMode = ref.isDarkMode;
365
+ var ref = (0, _hooks).useTheme(), colors = ref.colors, platformOverrides = ref.platformOverrides, isDarkMode = ref.isDarkMode, skinName = ref.skinName;
358
366
  var windowHeight = (0, _hooks).useWindowHeight();
359
367
  var isTabletOrSmaller = (0, _hooks).useScreenSize().isTabletOrSmaller;
360
368
  var ref1 = _slicedToArray(React.useState(typeof self !== "undefined"), 2), isServerSide = ref1[0], setIsServerSide = ref1[1];
@@ -423,9 +431,10 @@ var FeedbackScreen = function FeedbackScreen(param) {
423
431
  children: feedbackContent
424
432
  })
425
433
  }),
426
- /*#__PURE__*/ (0, _jsxRuntime).jsx("div", {
434
+ skinName === _constants.O2_CLASSIC_SKIN && /*#__PURE__*/ (0, _jsxRuntime).jsx("div", {
427
435
  className: classes.backgroundDiv
428
- })
436
+ }),
437
+ skinName !== _constants.O2_CLASSIC_SKIN && /*#__PURE__*/ (0, _jsxRuntime).jsx(BackgroundColor, {})
429
438
  ]
430
439
  }) : /*#__PURE__*/ (0, _jsxRuntime).jsx(_responsiveLayout.default, {
431
440
  children: /*#__PURE__*/ (0, _jsxRuntime).jsx(_box.default, {
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
  exports.PACKAGE_VERSION = void 0;
6
- var PACKAGE_VERSION = "11.5.0";
6
+ var PACKAGE_VERSION = "11.5.1";
7
7
  exports.PACKAGE_VERSION = PACKAGE_VERSION;
@@ -191,6 +191,9 @@ var useStyles = createUseStyles(function(theme) {
191
191
  var _obj, _obj1, _obj2;
192
192
  return {
193
193
  carouselContainer: {
194
+ // This value is a workaround to solve an issue when the page is rendered in a hidden webview
195
+ // in that case the window size is reported as 0 and the scroll snap is placed at the wrong slide
196
+ minWidth: 64,
194
197
  position: "relative"
195
198
  },
196
199
  arrowButton: _objectSpread({}, arrowButtonStyle(theme), {
@@ -106,7 +106,7 @@ import { useTheme, useScreenSize, useWindowHeight, useIsomorphicLayoutEffect } f
106
106
  import { ThemeVariant, useIsInverseVariant } from "./theme-variant-context";
107
107
  import ButtonFixedFooterLayout from "./button-fixed-footer-layout";
108
108
  import OverscrollColor from "./overscroll-color-context";
109
- import { VIVO_SKIN } from "./skins/constants";
109
+ import { O2_CLASSIC_SKIN, VIVO_SKIN } from "./skins/constants";
110
110
  import IcnSuccess from "./icons/icon-success";
111
111
  import IconSuccessVivo from "./icons/icon-success-vivo";
112
112
  import IcnError from "./icons/icon-error";
@@ -213,6 +213,14 @@ var useStyles = createUseStyles(function(theme) {
213
213
  }
214
214
  };
215
215
  });
216
+ var BackgroundColor = function() {
217
+ var colors = useTheme().colors;
218
+ var isInverse = useIsInverseVariant();
219
+ var css = "body {background:".concat(isInverse ? colors.backgroundBrand : colors.background, "}");
220
+ return /*#__PURE__*/ _jsx("style", {
221
+ children: css
222
+ });
223
+ };
216
224
  var requestVibration = function(type) {
217
225
  if (isWebViewBridgeAvailable()) {
218
226
  requestVibrationNative(type).catch(function() {});
@@ -322,7 +330,7 @@ export var FeedbackScreen = function(param) {
322
330
  var title = param.title, description = param.description, children = param.children, primaryButton = param.primaryButton, secondaryButton = param.secondaryButton, link = param.link, hapticFeedback = param.hapticFeedback, icon = param.icon, _animateText = param.animateText, animateText = _animateText === void 0 ? false : _animateText, unstable_inlineInDesktop = param.unstable_inlineInDesktop, imageUrl = param.imageUrl, imageFit = param.imageFit, dataAttributes = param.dataAttributes;
323
331
  useHapticFeedback(hapticFeedback);
324
332
  var isInverse = useIsInverseVariant();
325
- var ref = useTheme(), colors = ref.colors, platformOverrides = ref.platformOverrides, isDarkMode = ref.isDarkMode;
333
+ var ref = useTheme(), colors = ref.colors, platformOverrides = ref.platformOverrides, isDarkMode = ref.isDarkMode, skinName = ref.skinName;
326
334
  var windowHeight = useWindowHeight();
327
335
  var isTabletOrSmaller = useScreenSize().isTabletOrSmaller;
328
336
  var ref1 = _slicedToArray(React.useState(typeof self !== "undefined"), 2), isServerSide = ref1[0], setIsServerSide = ref1[1];
@@ -391,9 +399,10 @@ export var FeedbackScreen = function(param) {
391
399
  children: feedbackContent
392
400
  })
393
401
  }),
394
- /*#__PURE__*/ _jsx("div", {
402
+ skinName === O2_CLASSIC_SKIN && /*#__PURE__*/ _jsx("div", {
395
403
  className: classes.backgroundDiv
396
- })
404
+ }),
405
+ skinName !== O2_CLASSIC_SKIN && /*#__PURE__*/ _jsx(BackgroundColor, {})
397
406
  ]
398
407
  }) : /*#__PURE__*/ _jsx(ResponsiveLayout, {
399
408
  children: /*#__PURE__*/ _jsx(Box, {
@@ -1,2 +1,2 @@
1
1
  // DO NOT EDIT THIS FILE. It's autogenerated by set-version.js
2
- export var PACKAGE_VERSION = "11.5.0";
2
+ export var PACKAGE_VERSION = "11.5.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telefonica/mistica",
3
- "version": "11.5.0",
3
+ "version": "11.5.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",