@micromag/element-text 0.3.86 → 0.3.88

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 CHANGED
@@ -19,7 +19,11 @@ var propTypes = {
19
19
  showEmpty: PropTypes.bool,
20
20
  className: PropTypes.string,
21
21
  emptyClassName: PropTypes.string,
22
- inline: PropTypes.bool
22
+ inline: PropTypes.bool,
23
+ refText: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
24
+ current: PropTypes.any // eslint-disable-line
25
+
26
+ })])
23
27
  };
24
28
  var defaultProps = {
25
29
  body: null,
@@ -30,7 +34,8 @@ var defaultProps = {
30
34
  showEmpty: false,
31
35
  className: null,
32
36
  emptyClassName: null,
33
- inline: false
37
+ inline: false,
38
+ refText: null
34
39
  };
35
40
 
36
41
  var Text = function Text(_ref) {
@@ -44,7 +49,8 @@ var Text = function Text(_ref) {
44
49
  showEmpty = _ref.showEmpty,
45
50
  className = _ref.className,
46
51
  emptyClassName = _ref.emptyClassName,
47
- inline = _ref.inline;
52
+ inline = _ref.inline,
53
+ refText = _ref.refText;
48
54
 
49
55
  var _ref2 = textStyle || {},
50
56
  _ref2$link = _ref2.link,
@@ -82,7 +88,8 @@ var Text = function Text(_ref) {
82
88
  style: finalStyle,
83
89
  dangerouslySetInnerHTML: {
84
90
  __html: body
85
- }
91
+ },
92
+ ref: refText
86
93
  };
87
94
  var Tag = "".concat(inline ? 'span' : 'div');
88
95
  return /*#__PURE__*/React.createElement(React.Fragment, null, finalLinkStyle !== null ? /*#__PURE__*/React.createElement(LinkStyle, {
package/lib/index.js CHANGED
@@ -29,7 +29,11 @@ var propTypes = {
29
29
  showEmpty: PropTypes__default["default"].bool,
30
30
  className: PropTypes__default["default"].string,
31
31
  emptyClassName: PropTypes__default["default"].string,
32
- inline: PropTypes__default["default"].bool
32
+ inline: PropTypes__default["default"].bool,
33
+ refText: PropTypes__default["default"].oneOfType([PropTypes__default["default"].func, PropTypes__default["default"].shape({
34
+ current: PropTypes__default["default"].any // eslint-disable-line
35
+
36
+ })])
33
37
  };
34
38
  var defaultProps = {
35
39
  body: null,
@@ -40,7 +44,8 @@ var defaultProps = {
40
44
  showEmpty: false,
41
45
  className: null,
42
46
  emptyClassName: null,
43
- inline: false
47
+ inline: false,
48
+ refText: null
44
49
  };
45
50
 
46
51
  var Text = function Text(_ref) {
@@ -54,7 +59,8 @@ var Text = function Text(_ref) {
54
59
  showEmpty = _ref.showEmpty,
55
60
  className = _ref.className,
56
61
  emptyClassName = _ref.emptyClassName,
57
- inline = _ref.inline;
62
+ inline = _ref.inline,
63
+ refText = _ref.refText;
58
64
 
59
65
  var _ref2 = textStyle || {},
60
66
  _ref2$link = _ref2.link,
@@ -92,7 +98,8 @@ var Text = function Text(_ref) {
92
98
  style: finalStyle,
93
99
  dangerouslySetInnerHTML: {
94
100
  __html: body
95
- }
101
+ },
102
+ ref: refText
96
103
  };
97
104
  var Tag = "".concat(inline ? 'span' : 'div');
98
105
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, finalLinkStyle !== null ? /*#__PURE__*/React__default["default"].createElement(components.LinkStyle, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-text",
3
- "version": "0.3.86",
3
+ "version": "0.3.88",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
- "@micromag/core": "^0.3.86",
52
+ "@micromag/core": "^0.3.88",
53
53
  "classnames": "^2.2.6",
54
54
  "prop-types": "^15.7.2",
55
55
  "react-intl": "^5.12.1",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "063af274982885b7696d265e6567ab8d44c8b9ad"
61
+ "gitHead": "d0fb1f7d4ae6bfa1fd07dc856307c1c4225ab889"
62
62
  }