@micromag/screen-ranking 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 +10 -6
- package/lib/index.js +15 -11
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -2,21 +2,21 @@ import { FormattedMessage, defineMessage } from 'react-intl';
|
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
5
|
-
import React, { useState, useCallback } from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
5
|
import classNames from 'classnames';
|
|
6
|
+
import PropTypes from 'prop-types';
|
|
7
|
+
import React, { useState, useCallback } from 'react';
|
|
8
8
|
import { PropTypes as PropTypes$1 } from '@micromag/core';
|
|
9
9
|
import { Transitions, ScreenElement } from '@micromag/core/components';
|
|
10
10
|
import { useScreenSize, useViewer, useScreenRenderContext } from '@micromag/core/contexts';
|
|
11
11
|
import { useTrackScreenEvent, useResizeObserver } from '@micromag/core/hooks';
|
|
12
12
|
import { isTextFilled } from '@micromag/core/utils';
|
|
13
13
|
import Background from '@micromag/element-background';
|
|
14
|
+
import CallToAction from '@micromag/element-call-to-action';
|
|
14
15
|
import Container from '@micromag/element-container';
|
|
15
|
-
import Layout from '@micromag/element-layout';
|
|
16
|
-
import Text from '@micromag/element-text';
|
|
17
16
|
import Heading from '@micromag/element-heading';
|
|
17
|
+
import Layout from '@micromag/element-layout';
|
|
18
18
|
import Scroll from '@micromag/element-scroll';
|
|
19
|
-
import
|
|
19
|
+
import Text from '@micromag/element-text';
|
|
20
20
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
21
21
|
import { Text as Text$1, Container as Container$1 } from '@micromag/transforms/apple-news';
|
|
22
22
|
|
|
@@ -229,7 +229,11 @@ var RankingScreen = function RankingScreen(_ref) {
|
|
|
229
229
|
disabled: !scrolledBottom,
|
|
230
230
|
animationDisabled: isPreview,
|
|
231
231
|
callToAction: callToAction,
|
|
232
|
-
focusable: current && isView
|
|
232
|
+
focusable: current && isView,
|
|
233
|
+
screenSize: {
|
|
234
|
+
width: width,
|
|
235
|
+
height: height
|
|
236
|
+
}
|
|
233
237
|
}) : null));
|
|
234
238
|
};
|
|
235
239
|
|
package/lib/index.js
CHANGED
|
@@ -6,21 +6,21 @@ var reactIntl = require('react-intl');
|
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
8
8
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
9
|
-
var React = require('react');
|
|
10
|
-
var PropTypes = require('prop-types');
|
|
11
9
|
var classNames = require('classnames');
|
|
10
|
+
var PropTypes = require('prop-types');
|
|
11
|
+
var React = require('react');
|
|
12
12
|
var core = require('@micromag/core');
|
|
13
13
|
var components = require('@micromag/core/components');
|
|
14
14
|
var contexts = require('@micromag/core/contexts');
|
|
15
15
|
var hooks = require('@micromag/core/hooks');
|
|
16
16
|
var utils = require('@micromag/core/utils');
|
|
17
17
|
var Background = require('@micromag/element-background');
|
|
18
|
+
var CallToAction = require('@micromag/element-call-to-action');
|
|
18
19
|
var Container = require('@micromag/element-container');
|
|
19
|
-
var Layout = require('@micromag/element-layout');
|
|
20
|
-
var Text = require('@micromag/element-text');
|
|
21
20
|
var Heading = require('@micromag/element-heading');
|
|
21
|
+
var Layout = require('@micromag/element-layout');
|
|
22
22
|
var Scroll = require('@micromag/element-scroll');
|
|
23
|
-
var
|
|
23
|
+
var Text = require('@micromag/element-text');
|
|
24
24
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
25
25
|
var appleNews = require('@micromag/transforms/apple-news');
|
|
26
26
|
|
|
@@ -29,16 +29,16 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
29
29
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
30
30
|
var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
|
|
31
31
|
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
32
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
33
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
34
32
|
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
33
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
34
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
35
35
|
var Background__default = /*#__PURE__*/_interopDefaultLegacy(Background);
|
|
36
|
+
var CallToAction__default = /*#__PURE__*/_interopDefaultLegacy(CallToAction);
|
|
36
37
|
var Container__default = /*#__PURE__*/_interopDefaultLegacy(Container);
|
|
37
|
-
var Layout__default = /*#__PURE__*/_interopDefaultLegacy(Layout);
|
|
38
|
-
var Text__default = /*#__PURE__*/_interopDefaultLegacy(Text);
|
|
39
38
|
var Heading__default = /*#__PURE__*/_interopDefaultLegacy(Heading);
|
|
39
|
+
var Layout__default = /*#__PURE__*/_interopDefaultLegacy(Layout);
|
|
40
40
|
var Scroll__default = /*#__PURE__*/_interopDefaultLegacy(Scroll);
|
|
41
|
-
var
|
|
41
|
+
var Text__default = /*#__PURE__*/_interopDefaultLegacy(Text);
|
|
42
42
|
var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread);
|
|
43
43
|
|
|
44
44
|
var styles = {"container":"micromag-screen-ranking-container","empty":"micromag-screen-ranking-empty","item":"micromag-screen-ranking-item","rankText":"micromag-screen-ranking-rankText","description":"micromag-screen-ranking-description","title":"micromag-screen-ranking-title","callToAction":"micromag-screen-ranking-callToAction","sideLayout":"micromag-screen-ranking-sideLayout","layout":"micromag-screen-ranking-layout","content":"micromag-screen-ranking-content","rank":"micromag-screen-ranking-rank","isPlaceholder":"micromag-screen-ranking-isPlaceholder","scroll":"micromag-screen-ranking-scroll"};
|
|
@@ -250,7 +250,11 @@ var RankingScreen = function RankingScreen(_ref) {
|
|
|
250
250
|
disabled: !scrolledBottom,
|
|
251
251
|
animationDisabled: isPreview,
|
|
252
252
|
callToAction: callToAction,
|
|
253
|
-
focusable: current && isView
|
|
253
|
+
focusable: current && isView,
|
|
254
|
+
screenSize: {
|
|
255
|
+
width: width,
|
|
256
|
+
height: height
|
|
257
|
+
}
|
|
254
258
|
}) : null));
|
|
255
259
|
};
|
|
256
260
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-ranking",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.48",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@micromag/core": "^0.3.42",
|
|
53
53
|
"@micromag/data": "^0.3.42",
|
|
54
54
|
"@micromag/element-background": "^0.3.42",
|
|
55
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
55
|
+
"@micromag/element-call-to-action": "^0.3.48",
|
|
56
56
|
"@micromag/element-container": "^0.3.42",
|
|
57
57
|
"@micromag/element-heading": "^0.3.42",
|
|
58
58
|
"@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
|
}
|