@micromag/screen-timeline 0.3.193 → 0.3.196
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/es/index.js +3 -3
- package/lib/index.js +3 -3
- package/package.json +12 -12
package/es/index.js
CHANGED
|
@@ -333,14 +333,14 @@ var Timeline = function Timeline(_ref) {
|
|
|
333
333
|
}, /*#__PURE__*/React.createElement(Layout, {
|
|
334
334
|
style: !isPlaceholder ? {
|
|
335
335
|
padding: spacing,
|
|
336
|
-
paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
|
|
337
|
-
paddingBottom: (!isPreview ? viewerBottomHeight : 0) + (callToActionHeight || spacing)
|
|
336
|
+
paddingTop: (current && !isPreview ? viewerTopHeight : 0) + spacing,
|
|
337
|
+
paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + (callToActionHeight || spacing)
|
|
338
338
|
} : null
|
|
339
339
|
}, timelineElements)), !isPlaceholder && hasCallToAction ? /*#__PURE__*/React.createElement("div", {
|
|
340
340
|
ref: callToActionRef,
|
|
341
341
|
className: classNames([styles.callToAction, _defineProperty({}, styles.disabled, !scrolledBottom)]),
|
|
342
342
|
style: {
|
|
343
|
-
transform: !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
|
|
343
|
+
transform: current && !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
|
|
344
344
|
paddingLeft: Math.max(spacing / 2, viewerBottomSidesWidth),
|
|
345
345
|
paddingRight: Math.max(spacing / 2, viewerBottomSidesWidth),
|
|
346
346
|
paddingTop: spacing / 2,
|
package/lib/index.js
CHANGED
|
@@ -356,14 +356,14 @@ var Timeline = function Timeline(_ref) {
|
|
|
356
356
|
}, /*#__PURE__*/React__default["default"].createElement(Layout__default["default"], {
|
|
357
357
|
style: !isPlaceholder ? {
|
|
358
358
|
padding: spacing,
|
|
359
|
-
paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
|
|
360
|
-
paddingBottom: (!isPreview ? viewerBottomHeight : 0) + (callToActionHeight || spacing)
|
|
359
|
+
paddingTop: (current && !isPreview ? viewerTopHeight : 0) + spacing,
|
|
360
|
+
paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + (callToActionHeight || spacing)
|
|
361
361
|
} : null
|
|
362
362
|
}, timelineElements)), !isPlaceholder && hasCallToAction ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
363
363
|
ref: callToActionRef,
|
|
364
364
|
className: classNames__default["default"]([styles.callToAction, _defineProperty__default["default"]({}, styles.disabled, !scrolledBottom)]),
|
|
365
365
|
style: {
|
|
366
|
-
transform: !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
|
|
366
|
+
transform: current && !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
|
|
367
367
|
paddingLeft: Math.max(spacing / 2, viewerBottomSidesWidth),
|
|
368
368
|
paddingRight: Math.max(spacing / 2, viewerBottomSidesWidth),
|
|
369
369
|
paddingTop: spacing / 2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-timeline",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.196",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
|
-
"@micromag/core": "^0.3.
|
|
53
|
-
"@micromag/element-background": "^0.3.
|
|
54
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
55
|
-
"@micromag/element-container": "^0.3.
|
|
56
|
-
"@micromag/element-heading": "^0.3.
|
|
57
|
-
"@micromag/element-layout": "^0.3.
|
|
58
|
-
"@micromag/element-scroll": "^0.3.
|
|
59
|
-
"@micromag/element-text": "^0.3.
|
|
60
|
-
"@micromag/element-visual": "^0.3.
|
|
61
|
-
"@micromag/transforms": "^0.3.
|
|
52
|
+
"@micromag/core": "^0.3.196",
|
|
53
|
+
"@micromag/element-background": "^0.3.196",
|
|
54
|
+
"@micromag/element-call-to-action": "^0.3.196",
|
|
55
|
+
"@micromag/element-container": "^0.3.196",
|
|
56
|
+
"@micromag/element-heading": "^0.3.196",
|
|
57
|
+
"@micromag/element-layout": "^0.3.196",
|
|
58
|
+
"@micromag/element-scroll": "^0.3.196",
|
|
59
|
+
"@micromag/element-text": "^0.3.196",
|
|
60
|
+
"@micromag/element-visual": "^0.3.196",
|
|
61
|
+
"@micromag/transforms": "^0.3.196",
|
|
62
62
|
"classnames": "^2.2.6",
|
|
63
63
|
"lodash": "^4.17.21",
|
|
64
64
|
"prop-types": "^15.7.2",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "f76253e63fa17840ffa08757a7f4a32554868288"
|
|
72
72
|
}
|