@micromag/element-quote 0.3.311 → 0.3.318

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.
@@ -1 +1 @@
1
- .micromag-element-quote-container{font-family:Helvetica,Arial,sans-serif;font-size:16px;font-weight:400;line-height:1.1}.micromag-element-quote-container em,.micromag-element-quote-container i{font-style:italic}.micromag-element-quote-container b,.micromag-element-quote-container strong{font-weight:700}.micromag-element-quote-container p{margin-top:.5em;margin-bottom:.5em}.micromag-element-quote-container mark{padding:0;-webkit-box-decoration-break:clone;box-decoration-break:clone}.micromag-element-quote-container{line-height:1.3}.micromag-element-quote-container h2{font-size:2em}.micromag-element-quote-container h3{font-size:1.75em}.micromag-element-quote-container h4{font-size:1.5em}.micromag-element-quote-container blockquote{padding:0 0 0 1em}.micromag-element-quote-container{margin:0;padding:0}.micromag-element-quote-container.micromag-element-quote-showEmpty{display:inline-block;width:300px;height:80px;border:2px dashed #343434;color:#343434}
1
+ .micromag-element-quote-container{font-family:Helvetica,Arial,sans-serif;font-size:16px;font-weight:400;line-height:1.1}.micromag-element-quote-container em,.micromag-element-quote-container i{font-style:italic}.micromag-element-quote-container b,.micromag-element-quote-container strong{font-weight:700}.micromag-element-quote-container p{margin-bottom:.5em;margin-top:.5em}.micromag-element-quote-container mark{-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0}.micromag-element-quote-container{line-height:1.3}.micromag-element-quote-container h2{font-size:2em}.micromag-element-quote-container h3{font-size:1.75em}.micromag-element-quote-container h4{font-size:1.5em}.micromag-element-quote-container blockquote{padding:0 0 0 1em}.micromag-element-quote-container{margin:0;padding:0}.micromag-element-quote-container.micromag-element-quote-showEmpty{border:2px dashed #343434;color:#343434;display:inline-block;height:80px;width:300px}
package/es/index.js CHANGED
@@ -28,32 +28,26 @@ var defaultProps = {
28
28
  className: null,
29
29
  emptyClassName: null
30
30
  };
31
-
32
31
  var Quote = function Quote(_ref) {
33
32
  var _ref2;
34
-
35
33
  var body = _ref.body,
36
- textStyle = _ref.textStyle,
37
- linksStyle = _ref.linksStyle,
38
- margin = _ref.margin,
39
- showEmpty = _ref.showEmpty,
40
- className = _ref.className,
41
- emptyClassName = _ref.emptyClassName;
34
+ textStyle = _ref.textStyle,
35
+ linksStyle = _ref.linksStyle,
36
+ margin = _ref.margin,
37
+ showEmpty = _ref.showEmpty,
38
+ className = _ref.className,
39
+ emptyClassName = _ref.emptyClassName;
42
40
  var finalStyle = null;
43
41
  var finalLinkStyle = null;
44
-
45
42
  if (textStyle !== null) {
46
43
  finalStyle = _objectSpread(_objectSpread({}, finalStyle), getStyleFromText(textStyle));
47
44
  }
48
-
49
45
  if (margin !== null) {
50
46
  finalStyle = _objectSpread(_objectSpread({}, finalStyle), getStyleFromMargin(margin));
51
47
  }
52
-
53
48
  if (linksStyle !== null) {
54
49
  finalLinkStyle = _objectSpread(_objectSpread({}, finalLinkStyle), getStyleFromText(linksStyle));
55
50
  }
56
-
57
51
  var id = useMemo(function () {
58
52
  return finalLinkStyle !== null ? "quote-component-".concat(v1()) : null;
59
53
  }, [finalLinkStyle !== null]);
@@ -69,7 +63,6 @@ var Quote = function Quote(_ref) {
69
63
  }
70
64
  }));
71
65
  };
72
-
73
66
  Quote.propTypes = propTypes;
74
67
  Quote.defaultProps = defaultProps;
75
68
 
package/lib/index.js CHANGED
@@ -38,32 +38,26 @@ var defaultProps = {
38
38
  className: null,
39
39
  emptyClassName: null
40
40
  };
41
-
42
41
  var Quote = function Quote(_ref) {
43
42
  var _ref2;
44
-
45
43
  var body = _ref.body,
46
- textStyle = _ref.textStyle,
47
- linksStyle = _ref.linksStyle,
48
- margin = _ref.margin,
49
- showEmpty = _ref.showEmpty,
50
- className = _ref.className,
51
- emptyClassName = _ref.emptyClassName;
44
+ textStyle = _ref.textStyle,
45
+ linksStyle = _ref.linksStyle,
46
+ margin = _ref.margin,
47
+ showEmpty = _ref.showEmpty,
48
+ className = _ref.className,
49
+ emptyClassName = _ref.emptyClassName;
52
50
  var finalStyle = null;
53
51
  var finalLinkStyle = null;
54
-
55
52
  if (textStyle !== null) {
56
53
  finalStyle = _objectSpread__default["default"](_objectSpread__default["default"]({}, finalStyle), utils.getStyleFromText(textStyle));
57
54
  }
58
-
59
55
  if (margin !== null) {
60
56
  finalStyle = _objectSpread__default["default"](_objectSpread__default["default"]({}, finalStyle), utils.getStyleFromMargin(margin));
61
57
  }
62
-
63
58
  if (linksStyle !== null) {
64
59
  finalLinkStyle = _objectSpread__default["default"](_objectSpread__default["default"]({}, finalLinkStyle), utils.getStyleFromText(linksStyle));
65
60
  }
66
-
67
61
  var id = React.useMemo(function () {
68
62
  return finalLinkStyle !== null ? "quote-component-".concat(uuid.v1()) : null;
69
63
  }, [finalLinkStyle !== null]);
@@ -79,7 +73,6 @@ var Quote = function Quote(_ref) {
79
73
  }
80
74
  }));
81
75
  };
82
-
83
76
  Quote.propTypes = propTypes;
84
77
  Quote.defaultProps = defaultProps;
85
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-quote",
3
- "version": "0.3.311",
3
+ "version": "0.3.318",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,14 +49,14 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
- "@micromag/core": "^0.3.311",
52
+ "@micromag/core": "^0.3.318",
53
53
  "classnames": "^2.2.6",
54
54
  "prop-types": "^15.7.2",
55
55
  "react-intl": "^5.12.1",
56
- "uuid": "^8.3.2"
56
+ "uuid": "^9.0.0"
57
57
  },
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "fab297a7ad204611597c749b969f14d992d35d47"
61
+ "gitHead": "7d1a296e0c0d410e1225279e1f19e3a7715bfa96"
62
62
  }