@micromag/screen-urbania-recommendation 0.3.607 → 0.3.608

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.
Files changed (2) hide show
  1. package/es/index.js +18 -18
  2. package/package.json +14 -14
package/es/index.js CHANGED
@@ -125,17 +125,17 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
125
125
  setDidAnimate = _useState4[1];
126
126
  var _ref2 = visual || {},
127
127
  _ref2$image = _ref2.image,
128
- image = _ref2$image === void 0 ? null : _ref2$image; // note: image can be a video
128
+ image = _ref2$image === undefined ? null : _ref2$image; // note: image can be a video
129
129
  var _ref3 = image || {},
130
130
  _ref3$type = _ref3.type,
131
- type = _ref3$type === void 0 ? null : _ref3$type,
131
+ type = _ref3$type === undefined ? null : _ref3$type,
132
132
  _ref3$metadata = _ref3.metadata,
133
- videoMetadata = _ref3$metadata === void 0 ? null : _ref3$metadata;
133
+ videoMetadata = _ref3$metadata === undefined ? null : _ref3$metadata;
134
134
  var _ref4 = videoMetadata || {},
135
135
  _ref4$width = _ref4.width,
136
- videoWidth = _ref4$width === void 0 ? 0 : _ref4$width,
136
+ videoWidth = _ref4$width === undefined ? 0 : _ref4$width,
137
137
  _ref4$height = _ref4.height,
138
- videoHeight = _ref4$height === void 0 ? 0 : _ref4$height;
138
+ videoHeight = _ref4$height === undefined ? 0 : _ref4$height;
139
139
  var hasVisual = image !== null;
140
140
  var isVideo = type === 'video';
141
141
  var isVideoLandscape = hasVisual && isVideo && videoWidth > videoHeight;
@@ -165,12 +165,12 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
165
165
  var _useResizeObserver = useResizeObserver(),
166
166
  textContainerRef = _useResizeObserver.ref,
167
167
  _useResizeObserver$en = _useResizeObserver.entry.contentRect,
168
- textContainerRect = _useResizeObserver$en === void 0 ? null : _useResizeObserver$en;
168
+ textContainerRect = _useResizeObserver$en === undefined ? null : _useResizeObserver$en;
169
169
  var _ref5 = textContainerRect || {},
170
170
  _ref5$width = _ref5.width,
171
- textContainerWidth = _ref5$width === void 0 ? 0 : _ref5$width,
171
+ textContainerWidth = _ref5$width === undefined ? 0 : _ref5$width,
172
172
  _ref5$height = _ref5.height,
173
- textContainerHeight = _ref5$height === void 0 ? 0 : _ref5$height;
173
+ textContainerHeight = _ref5$height === undefined ? 0 : _ref5$height;
174
174
  var _useState7 = useState(false),
175
175
  _useState8 = _slicedToArray(_useState7, 2),
176
176
  visualModalTransitioning = _useState8[0],
@@ -182,10 +182,10 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
182
182
  var visualModalClosed = !visualModalTransitioning && !visualModalOpened;
183
183
  var _ref6 = background || {},
184
184
  _ref6$text = _ref6.text,
185
- backgroundText = _ref6$text === void 0 ? null : _ref6$text;
185
+ backgroundText = _ref6$text === undefined ? null : _ref6$text;
186
186
  var _ref7 = backgroundText || {},
187
187
  _ref7$body = _ref7.body,
188
- backgroundTextBody = _ref7$body === void 0 ? null : _ref7$body,
188
+ backgroundTextBody = _ref7$body === undefined ? null : _ref7$body,
189
189
  backgroundTextStyle = _ref7.textStyle;
190
190
  var finalBackgroundText = useMemo(function () {
191
191
  function distributeTextEqually(text) {
@@ -334,29 +334,29 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
334
334
  var _useMemo = useMemo(function () {
335
335
  var _ref9 = title || {},
336
336
  _ref9$textStyle = _ref9.textStyle,
337
- finalTitleTextStyle = _ref9$textStyle === void 0 ? null : _ref9$textStyle;
337
+ finalTitleTextStyle = _ref9$textStyle === undefined ? null : _ref9$textStyle;
338
338
  var _ref10 = finalTitleTextStyle || {},
339
339
  _ref10$color = _ref10.color,
340
- titleStyleColor = _ref10$color === void 0 ? null : _ref10$color,
340
+ titleStyleColor = _ref10$color === undefined ? null : _ref10$color,
341
341
  _ref10$fontFamily = _ref10.fontFamily,
342
- titleFontFamily = _ref10$fontFamily === void 0 ? null : _ref10$fontFamily;
342
+ titleFontFamily = _ref10$fontFamily === undefined ? null : _ref10$fontFamily;
343
343
  var _ref11 = titleStyleColor || {},
344
344
  _ref11$color = _ref11.color,
345
- finalTitleColor = _ref11$color === void 0 ? null : _ref11$color;
345
+ finalTitleColor = _ref11$color === undefined ? null : _ref11$color;
346
346
  var finalTitleFontWeight = titleFontFamily === null ? 700 : null;
347
347
  var _ref12 = category || {},
348
348
  _ref12$textStyle = _ref12.textStyle,
349
- finalCategoryTextStyle = _ref12$textStyle === void 0 ? null : _ref12$textStyle;
349
+ finalCategoryTextStyle = _ref12$textStyle === undefined ? null : _ref12$textStyle;
350
350
  var _ref13 = finalCategoryTextStyle || {},
351
351
  _ref13$fontFamily = _ref13.fontFamily,
352
- categoryFontFamily = _ref13$fontFamily === void 0 ? null : _ref13$fontFamily;
352
+ categoryFontFamily = _ref13$fontFamily === undefined ? null : _ref13$fontFamily;
353
353
  var finalCategoryFontWeight = categoryFontFamily === null ? 900 : null;
354
354
  var _ref14 = description || {},
355
355
  _ref14$textStyle = _ref14.textStyle,
356
- finalDescriptionTextStyle = _ref14$textStyle === void 0 ? null : _ref14$textStyle;
356
+ finalDescriptionTextStyle = _ref14$textStyle === undefined ? null : _ref14$textStyle;
357
357
  var _ref15 = finalDescriptionTextStyle || {},
358
358
  _ref15$fontFamily = _ref15.fontFamily,
359
- descriptionFontFamily = _ref15$fontFamily === void 0 ? null : _ref15$fontFamily;
359
+ descriptionFontFamily = _ref15$fontFamily === undefined ? null : _ref15$fontFamily;
360
360
  var finalDescriptionFontWeight = descriptionFontFamily === null ? 300 : null;
361
361
  return {
362
362
  titleColor: finalTitleColor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-urbania-recommendation",
3
- "version": "0.3.607",
3
+ "version": "0.3.608",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -60,18 +60,18 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@babel/runtime": "^7.13.10",
63
- "@micromag/core": "^0.3.607",
64
- "@micromag/element-background": "^0.3.607",
65
- "@micromag/element-button": "^0.3.607",
66
- "@micromag/element-container": "^0.3.607",
67
- "@micromag/element-footer": "^0.3.607",
68
- "@micromag/element-header": "^0.3.607",
69
- "@micromag/element-heading": "^0.3.607",
70
- "@micromag/element-layout": "^0.3.607",
71
- "@micromag/element-scroll": "^0.3.607",
72
- "@micromag/element-text": "^0.3.607",
73
- "@micromag/element-visual": "^0.3.607",
74
- "@micromag/transforms": "^0.3.607",
63
+ "@micromag/core": "^0.3.608",
64
+ "@micromag/element-background": "^0.3.608",
65
+ "@micromag/element-button": "^0.3.608",
66
+ "@micromag/element-container": "^0.3.608",
67
+ "@micromag/element-footer": "^0.3.608",
68
+ "@micromag/element-header": "^0.3.608",
69
+ "@micromag/element-heading": "^0.3.608",
70
+ "@micromag/element-layout": "^0.3.608",
71
+ "@micromag/element-scroll": "^0.3.608",
72
+ "@micromag/element-text": "^0.3.608",
73
+ "@micromag/element-visual": "^0.3.608",
74
+ "@micromag/transforms": "^0.3.608",
75
75
  "classnames": "^2.2.6",
76
76
  "lodash": "^4.17.21",
77
77
  "prop-types": "^15.7.2",
@@ -82,5 +82,5 @@
82
82
  "access": "public",
83
83
  "registry": "https://registry.npmjs.org/"
84
84
  },
85
- "gitHead": "635ee4c6bf057273a9c90bde7c80134ad92ebb9c"
85
+ "gitHead": "02f8cfe4dde0c33bec9ed7c3bdb671cd8acf78bc"
86
86
  }