@micromag/screen-conversation 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 +9 -5
- package/lib/index.js +12 -8
- package/package.json +4 -4
package/es/index.js
CHANGED
|
@@ -2,6 +2,10 @@ 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 classNames from 'classnames';
|
|
6
|
+
import PropTypes$1 from 'prop-types';
|
|
7
|
+
import React, { useState, useEffect, useRef, useCallback, useMemo } from 'react';
|
|
8
|
+
import { v1 } from 'uuid';
|
|
5
9
|
import { PropTypes } from '@micromag/core';
|
|
6
10
|
import { ScreenElement, Transitions } from '@micromag/core/components';
|
|
7
11
|
import { useScreenSize, useViewer, useScreenRenderContext } from '@micromag/core/contexts';
|
|
@@ -13,10 +17,6 @@ import Container from '@micromag/element-container';
|
|
|
13
17
|
import Heading from '@micromag/element-heading';
|
|
14
18
|
import Layout from '@micromag/element-layout';
|
|
15
19
|
import Scroll from '@micromag/element-scroll';
|
|
16
|
-
import classNames from 'classnames';
|
|
17
|
-
import PropTypes$1 from 'prop-types';
|
|
18
|
-
import React, { useState, useEffect, useRef, useCallback, useMemo } from 'react';
|
|
19
|
-
import { v1 } from 'uuid';
|
|
20
20
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
21
21
|
import Text from '@micromag/element-text';
|
|
22
22
|
import Visual from '@micromag/element-visual';
|
|
@@ -432,7 +432,11 @@ var ConversationScreen = function ConversationScreen(_ref) {
|
|
|
432
432
|
disabled: !scrolledBottom,
|
|
433
433
|
animationDisabled: isPreview,
|
|
434
434
|
callToAction: callToAction,
|
|
435
|
-
focusable: current && isView
|
|
435
|
+
focusable: current && isView,
|
|
436
|
+
screenSize: {
|
|
437
|
+
width: width,
|
|
438
|
+
height: height
|
|
439
|
+
}
|
|
436
440
|
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
437
441
|
ref: chatBottomRef
|
|
438
442
|
}))))))));
|
package/lib/index.js
CHANGED
|
@@ -6,6 +6,10 @@ 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 classNames = require('classnames');
|
|
10
|
+
var PropTypes = require('prop-types');
|
|
11
|
+
var React = require('react');
|
|
12
|
+
var uuid = require('uuid');
|
|
9
13
|
var core = require('@micromag/core');
|
|
10
14
|
var components = require('@micromag/core/components');
|
|
11
15
|
var contexts = require('@micromag/core/contexts');
|
|
@@ -17,10 +21,6 @@ var Container = require('@micromag/element-container');
|
|
|
17
21
|
var Heading = require('@micromag/element-heading');
|
|
18
22
|
var Layout = require('@micromag/element-layout');
|
|
19
23
|
var Scroll = require('@micromag/element-scroll');
|
|
20
|
-
var classNames = require('classnames');
|
|
21
|
-
var PropTypes = require('prop-types');
|
|
22
|
-
var React = require('react');
|
|
23
|
-
var uuid = require('uuid');
|
|
24
24
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
25
25
|
var Text = require('@micromag/element-text');
|
|
26
26
|
var Visual = require('@micromag/element-visual');
|
|
@@ -30,15 +30,15 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
30
30
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
31
31
|
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
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 CallToAction__default = /*#__PURE__*/_interopDefaultLegacy(CallToAction);
|
|
35
38
|
var Container__default = /*#__PURE__*/_interopDefaultLegacy(Container);
|
|
36
39
|
var Heading__default = /*#__PURE__*/_interopDefaultLegacy(Heading);
|
|
37
40
|
var Layout__default = /*#__PURE__*/_interopDefaultLegacy(Layout);
|
|
38
41
|
var Scroll__default = /*#__PURE__*/_interopDefaultLegacy(Scroll);
|
|
39
|
-
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
40
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
41
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
42
42
|
var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread);
|
|
43
43
|
var Text__default = /*#__PURE__*/_interopDefaultLegacy(Text);
|
|
44
44
|
var Visual__default = /*#__PURE__*/_interopDefaultLegacy(Visual);
|
|
@@ -454,7 +454,11 @@ var ConversationScreen = function ConversationScreen(_ref) {
|
|
|
454
454
|
disabled: !scrolledBottom,
|
|
455
455
|
animationDisabled: isPreview,
|
|
456
456
|
callToAction: callToAction,
|
|
457
|
-
focusable: current && isView
|
|
457
|
+
focusable: current && isView,
|
|
458
|
+
screenSize: {
|
|
459
|
+
width: width,
|
|
460
|
+
height: height
|
|
461
|
+
}
|
|
458
462
|
})) : null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
459
463
|
ref: chatBottomRef
|
|
460
464
|
}))))))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-conversation",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.46",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -51,12 +51,12 @@
|
|
|
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.46",
|
|
55
55
|
"@micromag/element-container": "^0.3.42",
|
|
56
56
|
"@micromag/element-heading": "^0.3.42",
|
|
57
57
|
"@micromag/element-layout": "^0.3.42",
|
|
58
58
|
"@micromag/element-scroll": "^0.3.42",
|
|
59
|
-
"@micromag/element-text": "^0.3.
|
|
59
|
+
"@micromag/element-text": "^0.3.45",
|
|
60
60
|
"@micromag/element-visual": "^0.3.42",
|
|
61
61
|
"@micromag/transforms": "^0.3.42",
|
|
62
62
|
"classnames": "^2.2.6",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "7d99fe7ce243492f14f5528cf9c191f96d4e5985"
|
|
72
72
|
}
|