@micromag/screen-timeline 0.4.41 → 0.4.42

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 +1 -4
  2. package/package.json +13 -13
package/es/index.js CHANGED
@@ -238,10 +238,7 @@ function Timeline(_ref) {
238
238
  return initialSpacing !== null ? Math.max(0, initialSpacing || 0) : 20;
239
239
  }, [initialSpacing]);
240
240
  var itemBottomSpacing = useMemo(function () {
241
- return (
242
- // eslint-disable-next-line no-nested-ternary
243
- isPlaceholder ? 4 : initialItemBottomSpacing !== null ? Math.max(0, initialItemBottomSpacing || 0) : 20
244
- );
241
+ return isPlaceholder ? 4 : initialItemBottomSpacing !== null ? Math.max(0, initialItemBottomSpacing || 0) : 20;
245
242
  }, [isPlaceholder, initialItemBottomSpacing]);
246
243
  var itemsCount = finalItems !== null ? finalItems.length : 0;
247
244
  var hasItems = finalItems !== null && itemsCount;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-timeline",
3
- "version": "0.4.41",
3
+ "version": "0.4.42",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -61,17 +61,17 @@
61
61
  },
62
62
  "dependencies": {
63
63
  "@babel/runtime": "^7.28.6",
64
- "@micromag/core": "^0.4.41",
65
- "@micromag/element-background": "^0.4.41",
66
- "@micromag/element-container": "^0.4.41",
67
- "@micromag/element-footer": "^0.4.41",
68
- "@micromag/element-header": "^0.4.41",
69
- "@micromag/element-heading": "^0.4.41",
70
- "@micromag/element-layout": "^0.4.41",
71
- "@micromag/element-scroll": "^0.4.41",
72
- "@micromag/element-text": "^0.4.41",
73
- "@micromag/element-visual": "^0.4.41",
74
- "@micromag/transforms": "^0.4.41",
64
+ "@micromag/core": "^0.4.42",
65
+ "@micromag/element-background": "^0.4.42",
66
+ "@micromag/element-container": "^0.4.42",
67
+ "@micromag/element-footer": "^0.4.42",
68
+ "@micromag/element-header": "^0.4.42",
69
+ "@micromag/element-heading": "^0.4.42",
70
+ "@micromag/element-layout": "^0.4.42",
71
+ "@micromag/element-scroll": "^0.4.42",
72
+ "@micromag/element-text": "^0.4.42",
73
+ "@micromag/element-visual": "^0.4.42",
74
+ "@micromag/transforms": "^0.4.42",
75
75
  "classnames": "^2.2.6",
76
76
  "lodash": "^4.17.23",
77
77
  "react-intl": "^8.1.3 || ^10.0.0",
@@ -81,6 +81,6 @@
81
81
  "access": "public",
82
82
  "registry": "https://registry.npmjs.org/"
83
83
  },
84
- "gitHead": "c7856a747ba0a4466f4b63bc29e31003275ac6e0",
84
+ "gitHead": "6fd96aeb9ef1857c731917d8b7cde23d31b39574",
85
85
  "types": "es/index.d.ts"
86
86
  }