@micromag/screen-timeline 0.3.45 → 0.3.48
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 +8 -4
- package/lib/index.js +11 -7
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -3,6 +3,9 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
3
3
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
6
|
+
import classNames from 'classnames';
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
|
+
import React, { useState, useCallback, useRef, useEffect } from 'react';
|
|
6
9
|
import { PropTypes as PropTypes$1 } from '@micromag/core';
|
|
7
10
|
import { Transitions, ScreenElement } from '@micromag/core/components';
|
|
8
11
|
import { useScreenSize, useViewer, useScreenRenderContext } from '@micromag/core/contexts';
|
|
@@ -16,9 +19,6 @@ import Layout from '@micromag/element-layout';
|
|
|
16
19
|
import Scroll from '@micromag/element-scroll';
|
|
17
20
|
import Text from '@micromag/element-text';
|
|
18
21
|
import Visual from '@micromag/element-visual';
|
|
19
|
-
import classNames from 'classnames';
|
|
20
|
-
import PropTypes from 'prop-types';
|
|
21
|
-
import React, { useState, useCallback, useRef, useEffect } from 'react';
|
|
22
22
|
import _extends from '@babel/runtime/helpers/extends';
|
|
23
23
|
import { Text as Text$1, Container as Container$1 } from '@micromag/transforms/apple-news';
|
|
24
24
|
|
|
@@ -320,7 +320,11 @@ var Timeline = function Timeline(_ref) {
|
|
|
320
320
|
disabled: !scrolledBottom,
|
|
321
321
|
animationDisabled: isPreview,
|
|
322
322
|
callToAction: callToAction,
|
|
323
|
-
focusable: current && isView
|
|
323
|
+
focusable: current && isView,
|
|
324
|
+
screenSize: {
|
|
325
|
+
width: width,
|
|
326
|
+
height: height
|
|
327
|
+
}
|
|
324
328
|
}) : null));
|
|
325
329
|
};
|
|
326
330
|
|
package/lib/index.js
CHANGED
|
@@ -7,6 +7,9 @@ var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
|
7
7
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
8
8
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
9
9
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
10
|
+
var classNames = require('classnames');
|
|
11
|
+
var PropTypes = require('prop-types');
|
|
12
|
+
var React = require('react');
|
|
10
13
|
var core = require('@micromag/core');
|
|
11
14
|
var components = require('@micromag/core/components');
|
|
12
15
|
var contexts = require('@micromag/core/contexts');
|
|
@@ -20,9 +23,6 @@ var Layout = require('@micromag/element-layout');
|
|
|
20
23
|
var Scroll = require('@micromag/element-scroll');
|
|
21
24
|
var Text = require('@micromag/element-text');
|
|
22
25
|
var Visual = require('@micromag/element-visual');
|
|
23
|
-
var classNames = require('classnames');
|
|
24
|
-
var PropTypes = require('prop-types');
|
|
25
|
-
var React = require('react');
|
|
26
26
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
27
27
|
var appleNews = require('@micromag/transforms/apple-news');
|
|
28
28
|
|
|
@@ -32,6 +32,9 @@ var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread);
|
|
|
32
32
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
33
33
|
var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
|
|
34
34
|
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
35
|
+
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
36
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
37
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
35
38
|
var Background__default = /*#__PURE__*/_interopDefaultLegacy(Background);
|
|
36
39
|
var CallToAction__default = /*#__PURE__*/_interopDefaultLegacy(CallToAction);
|
|
37
40
|
var Container__default = /*#__PURE__*/_interopDefaultLegacy(Container);
|
|
@@ -40,9 +43,6 @@ var Layout__default = /*#__PURE__*/_interopDefaultLegacy(Layout);
|
|
|
40
43
|
var Scroll__default = /*#__PURE__*/_interopDefaultLegacy(Scroll);
|
|
41
44
|
var Text__default = /*#__PURE__*/_interopDefaultLegacy(Text);
|
|
42
45
|
var Visual__default = /*#__PURE__*/_interopDefaultLegacy(Visual);
|
|
43
|
-
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
44
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
45
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
46
46
|
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
47
47
|
|
|
48
48
|
var styles = {"container":"micromag-screen-timeline-container","empty":"micromag-screen-timeline-empty","item":"micromag-screen-timeline-item","element":"micromag-screen-timeline-element","timeline":"micromag-screen-timeline-timeline","line":"micromag-screen-timeline-line","hidden":"micromag-screen-timeline-hidden","bullet":"micromag-screen-timeline-bullet","content":"micromag-screen-timeline-content","lastContent":"micromag-screen-timeline-lastContent","description":"micromag-screen-timeline-description","imageContainer":"micromag-screen-timeline-imageContainer","title":"micromag-screen-timeline-title","image":"micromag-screen-timeline-image","video":"micromag-screen-timeline-video","callToAction":"micromag-screen-timeline-callToAction","isPlaceholder":"micromag-screen-timeline-isPlaceholder","scroll":"micromag-screen-timeline-scroll","circleBulletShape":"micromag-screen-timeline-circleBulletShape","withoutLines":"micromag-screen-timeline-withoutLines"};
|
|
@@ -343,7 +343,11 @@ var Timeline = function Timeline(_ref) {
|
|
|
343
343
|
disabled: !scrolledBottom,
|
|
344
344
|
animationDisabled: isPreview,
|
|
345
345
|
callToAction: callToAction,
|
|
346
|
-
focusable: current && isView
|
|
346
|
+
focusable: current && isView,
|
|
347
|
+
screenSize: {
|
|
348
|
+
width: width,
|
|
349
|
+
height: height
|
|
350
|
+
}
|
|
347
351
|
}) : null));
|
|
348
352
|
};
|
|
349
353
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-timeline",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.48",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
52
|
"@micromag/core": "^0.3.42",
|
|
53
53
|
"@micromag/element-background": "^0.3.42",
|
|
54
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
54
|
+
"@micromag/element-call-to-action": "^0.3.48",
|
|
55
55
|
"@micromag/element-container": "^0.3.42",
|
|
56
56
|
"@micromag/element-heading": "^0.3.42",
|
|
57
57
|
"@micromag/element-layout": "^0.3.42",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "3d64ece9adf95e8d124800f5313307c594c834d9"
|
|
72
72
|
}
|