@micromag/screen-survey 0.3.42 → 0.3.46
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 +5 -5
package/es/index.js
CHANGED
|
@@ -3,6 +3,9 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
3
3
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
5
5
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
6
|
+
import classNames from 'classnames';
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
|
+
import React, { useState, useMemo, useCallback, useEffect, useRef } from 'react';
|
|
6
9
|
import { PropTypes as PropTypes$1 } from '@micromag/core';
|
|
7
10
|
import { ScreenElement, Transitions } from '@micromag/core/components';
|
|
8
11
|
import { useScreenSize, useViewer, useScreenRenderContext } from '@micromag/core/contexts';
|
|
@@ -16,9 +19,6 @@ import Container from '@micromag/element-container';
|
|
|
16
19
|
import Heading from '@micromag/element-heading';
|
|
17
20
|
import Layout, { Spacer } from '@micromag/element-layout';
|
|
18
21
|
import Text from '@micromag/element-text';
|
|
19
|
-
import classNames from 'classnames';
|
|
20
|
-
import PropTypes from 'prop-types';
|
|
21
|
-
import React, { useState, useMemo, useCallback, useEffect, useRef } from 'react';
|
|
22
22
|
|
|
23
23
|
var styles = {"container":"micromag-screen-survey-container","disabled":"micromag-screen-survey-disabled","hidden":"micromag-screen-survey-hidden","placeholder":"micromag-screen-survey-placeholder","content":"micromag-screen-survey-content","emptyAnswer":"micromag-screen-survey-emptyAnswer","emptyQuestion":"micromag-screen-survey-emptyQuestion","question":"micromag-screen-survey-question","answers":"micromag-screen-survey-answers","items":"micromag-screen-survey-items","item":"micromag-screen-survey-item","placeholderAnswer":"micromag-screen-survey-placeholderAnswer","itemContent":"micromag-screen-survey-itemContent","resultContainer":"micromag-screen-survey-resultContainer","resultContent":"micromag-screen-survey-resultContent","result":"micromag-screen-survey-result","resultLabel":"micromag-screen-survey-resultLabel","itemInner":"micromag-screen-survey-itemInner","button":"micromag-screen-survey-button","itemLabel":"micromag-screen-survey-itemLabel","answered":"micromag-screen-survey-answered","userAnswer":"micromag-screen-survey-userAnswer","isPlaceholder":"micromag-screen-survey-isPlaceholder","layout":"micromag-screen-survey-layout"};
|
|
24
24
|
|
|
@@ -395,7 +395,11 @@ var SurveyScreen = function SurveyScreen(_ref) {
|
|
|
395
395
|
callToAction: callToAction,
|
|
396
396
|
disabled: !answered,
|
|
397
397
|
animationDisabled: isPreview,
|
|
398
|
-
focusable: current && isView
|
|
398
|
+
focusable: current && isView,
|
|
399
|
+
screenSize: {
|
|
400
|
+
width: width,
|
|
401
|
+
height: height
|
|
402
|
+
}
|
|
399
403
|
})));
|
|
400
404
|
}
|
|
401
405
|
|
package/lib/index.js
CHANGED
|
@@ -7,6 +7,9 @@ var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
|
7
7
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
8
8
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
9
9
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
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 Container = require('@micromag/element-container');
|
|
|
20
23
|
var Heading = require('@micromag/element-heading');
|
|
21
24
|
var Layout = require('@micromag/element-layout');
|
|
22
25
|
var Text = require('@micromag/element-text');
|
|
23
|
-
var classNames = require('classnames');
|
|
24
|
-
var PropTypes = require('prop-types');
|
|
25
|
-
var React = require('react');
|
|
26
26
|
|
|
27
27
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
28
28
|
|
|
@@ -30,6 +30,9 @@ var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumab
|
|
|
30
30
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
31
31
|
var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread);
|
|
32
32
|
var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
|
|
33
|
+
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
34
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
35
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
33
36
|
var Background__default = /*#__PURE__*/_interopDefaultLegacy(Background);
|
|
34
37
|
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
35
38
|
var CallToAction__default = /*#__PURE__*/_interopDefaultLegacy(CallToAction);
|
|
@@ -37,9 +40,6 @@ var Container__default = /*#__PURE__*/_interopDefaultLegacy(Container);
|
|
|
37
40
|
var Heading__default = /*#__PURE__*/_interopDefaultLegacy(Heading);
|
|
38
41
|
var Layout__default = /*#__PURE__*/_interopDefaultLegacy(Layout);
|
|
39
42
|
var Text__default = /*#__PURE__*/_interopDefaultLegacy(Text);
|
|
40
|
-
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
41
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
42
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
43
43
|
|
|
44
44
|
var styles = {"container":"micromag-screen-survey-container","disabled":"micromag-screen-survey-disabled","hidden":"micromag-screen-survey-hidden","placeholder":"micromag-screen-survey-placeholder","content":"micromag-screen-survey-content","emptyAnswer":"micromag-screen-survey-emptyAnswer","emptyQuestion":"micromag-screen-survey-emptyQuestion","question":"micromag-screen-survey-question","answers":"micromag-screen-survey-answers","items":"micromag-screen-survey-items","item":"micromag-screen-survey-item","placeholderAnswer":"micromag-screen-survey-placeholderAnswer","itemContent":"micromag-screen-survey-itemContent","resultContainer":"micromag-screen-survey-resultContainer","resultContent":"micromag-screen-survey-resultContent","result":"micromag-screen-survey-result","resultLabel":"micromag-screen-survey-resultLabel","itemInner":"micromag-screen-survey-itemInner","button":"micromag-screen-survey-button","itemLabel":"micromag-screen-survey-itemLabel","answered":"micromag-screen-survey-answered","userAnswer":"micromag-screen-survey-userAnswer","isPlaceholder":"micromag-screen-survey-isPlaceholder","layout":"micromag-screen-survey-layout"};
|
|
45
45
|
|
|
@@ -416,7 +416,11 @@ var SurveyScreen = function SurveyScreen(_ref) {
|
|
|
416
416
|
callToAction: callToAction,
|
|
417
417
|
disabled: !answered,
|
|
418
418
|
animationDisabled: isPreview,
|
|
419
|
-
focusable: current && isView
|
|
419
|
+
focusable: current && isView,
|
|
420
|
+
screenSize: {
|
|
421
|
+
width: width,
|
|
422
|
+
height: height
|
|
423
|
+
}
|
|
420
424
|
})));
|
|
421
425
|
}
|
|
422
426
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-survey",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.46",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -52,12 +52,12 @@
|
|
|
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-button": "^0.3.
|
|
56
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
55
|
+
"@micromag/element-button": "^0.3.45",
|
|
56
|
+
"@micromag/element-call-to-action": "^0.3.46",
|
|
57
57
|
"@micromag/element-container": "^0.3.42",
|
|
58
58
|
"@micromag/element-heading": "^0.3.42",
|
|
59
59
|
"@micromag/element-layout": "^0.3.42",
|
|
60
|
-
"@micromag/element-text": "^0.3.
|
|
60
|
+
"@micromag/element-text": "^0.3.45",
|
|
61
61
|
"@micromag/transforms": "^0.3.42",
|
|
62
62
|
"classnames": "^2.2.6",
|
|
63
63
|
"lodash": "^4.17.21",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "7d99fe7ce243492f14f5528cf9c191f96d4e5985"
|
|
72
72
|
}
|