@micromag/screen-contribution 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 +11 -7
- package/lib/index.js +14 -10
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -2,23 +2,23 @@ import { FormattedMessage, defineMessage } from 'react-intl';
|
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
4
4
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
5
|
-
import React, { useRef, useState, useCallback, useEffect } from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
|
-
import classNames from 'classnames';
|
|
8
|
-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
9
5
|
import { faSpinner } from '@fortawesome/free-solid-svg-icons';
|
|
6
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
7
|
+
import classNames from 'classnames';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import React, { useRef, useState, useCallback, useEffect } from 'react';
|
|
10
10
|
import { PropTypes as PropTypes$1 } from '@micromag/core';
|
|
11
|
+
import { ScreenElement, Transitions } from '@micromag/core/components';
|
|
11
12
|
import { useScreenSize, useViewer, useScreenRenderContext } from '@micromag/core/contexts';
|
|
12
13
|
import { useTrackScreenEvent, useResizeObserver } from '@micromag/core/hooks';
|
|
13
|
-
import { ScreenElement, Transitions } from '@micromag/core/components';
|
|
14
14
|
import { isTextFilled, isLabelFilled, getStyleFromColor } from '@micromag/core/utils';
|
|
15
15
|
import { useContributionCreate, useContributions } from '@micromag/data';
|
|
16
16
|
import Background from '@micromag/element-background';
|
|
17
17
|
import Button from '@micromag/element-button';
|
|
18
|
+
import CallToAction from '@micromag/element-call-to-action';
|
|
18
19
|
import Container from '@micromag/element-container';
|
|
19
20
|
import Heading from '@micromag/element-heading';
|
|
20
21
|
import Scroll from '@micromag/element-scroll';
|
|
21
|
-
import CallToAction from '@micromag/element-call-to-action';
|
|
22
22
|
import Text from '@micromag/element-text';
|
|
23
23
|
import TextInput from '@micromag/element-text-input';
|
|
24
24
|
|
|
@@ -438,7 +438,11 @@ var ContributionScreen = function ContributionScreen(_ref) {
|
|
|
438
438
|
disabled: !swipeUpLinkActive,
|
|
439
439
|
animationDisabled: isPreview,
|
|
440
440
|
callToAction: callToAction,
|
|
441
|
-
focusable: current && isView
|
|
441
|
+
focusable: current && isView,
|
|
442
|
+
screenSize: {
|
|
443
|
+
width: width,
|
|
444
|
+
height: height
|
|
445
|
+
}
|
|
442
446
|
}) : null)));
|
|
443
447
|
};
|
|
444
448
|
|
package/lib/index.js
CHANGED
|
@@ -6,23 +6,23 @@ var reactIntl = require('react-intl');
|
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
8
8
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
9
|
-
var React = require('react');
|
|
10
|
-
var PropTypes = require('prop-types');
|
|
11
|
-
var classNames = require('classnames');
|
|
12
|
-
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
13
9
|
var freeSolidSvgIcons = require('@fortawesome/free-solid-svg-icons');
|
|
10
|
+
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
11
|
+
var classNames = require('classnames');
|
|
12
|
+
var PropTypes = require('prop-types');
|
|
13
|
+
var React = require('react');
|
|
14
14
|
var core = require('@micromag/core');
|
|
15
|
+
var components = require('@micromag/core/components');
|
|
15
16
|
var contexts = require('@micromag/core/contexts');
|
|
16
17
|
var hooks = require('@micromag/core/hooks');
|
|
17
|
-
var components = require('@micromag/core/components');
|
|
18
18
|
var utils = require('@micromag/core/utils');
|
|
19
19
|
var data = require('@micromag/data');
|
|
20
20
|
var Background = require('@micromag/element-background');
|
|
21
21
|
var Button = require('@micromag/element-button');
|
|
22
|
+
var CallToAction = require('@micromag/element-call-to-action');
|
|
22
23
|
var Container = require('@micromag/element-container');
|
|
23
24
|
var Heading = require('@micromag/element-heading');
|
|
24
25
|
var Scroll = require('@micromag/element-scroll');
|
|
25
|
-
var CallToAction = require('@micromag/element-call-to-action');
|
|
26
26
|
var Text = require('@micromag/element-text');
|
|
27
27
|
var TextInput = require('@micromag/element-text-input');
|
|
28
28
|
|
|
@@ -31,15 +31,15 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
31
31
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
32
32
|
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
33
33
|
var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
|
|
34
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
35
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
36
34
|
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
35
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
36
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
37
37
|
var Background__default = /*#__PURE__*/_interopDefaultLegacy(Background);
|
|
38
38
|
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
39
|
+
var CallToAction__default = /*#__PURE__*/_interopDefaultLegacy(CallToAction);
|
|
39
40
|
var Container__default = /*#__PURE__*/_interopDefaultLegacy(Container);
|
|
40
41
|
var Heading__default = /*#__PURE__*/_interopDefaultLegacy(Heading);
|
|
41
42
|
var Scroll__default = /*#__PURE__*/_interopDefaultLegacy(Scroll);
|
|
42
|
-
var CallToAction__default = /*#__PURE__*/_interopDefaultLegacy(CallToAction);
|
|
43
43
|
var Text__default = /*#__PURE__*/_interopDefaultLegacy(Text);
|
|
44
44
|
var TextInput__default = /*#__PURE__*/_interopDefaultLegacy(TextInput);
|
|
45
45
|
|
|
@@ -459,7 +459,11 @@ var ContributionScreen = function ContributionScreen(_ref) {
|
|
|
459
459
|
disabled: !swipeUpLinkActive,
|
|
460
460
|
animationDisabled: isPreview,
|
|
461
461
|
callToAction: callToAction,
|
|
462
|
-
focusable: current && isView
|
|
462
|
+
focusable: current && isView,
|
|
463
|
+
screenSize: {
|
|
464
|
+
width: width,
|
|
465
|
+
height: height
|
|
466
|
+
}
|
|
463
467
|
}) : null)));
|
|
464
468
|
};
|
|
465
469
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-contribution",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.48",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@micromag/data": "^0.3.42",
|
|
57
57
|
"@micromag/element-background": "^0.3.42",
|
|
58
58
|
"@micromag/element-button": "^0.3.45",
|
|
59
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
59
|
+
"@micromag/element-call-to-action": "^0.3.48",
|
|
60
60
|
"@micromag/element-container": "^0.3.42",
|
|
61
61
|
"@micromag/element-heading": "^0.3.42",
|
|
62
62
|
"@micromag/element-scroll": "^0.3.42",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "3d64ece9adf95e8d124800f5313307c594c834d9"
|
|
76
76
|
}
|