@micromag/element-quote 0.3.832 → 0.4.4

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-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 img{display:block;height:auto;max-width:100%;width:auto}.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}
1
+ .container{font-family:Helvetica,Arial,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0}.container em,.container i{font-style:italic}.container b,.container strong{font-weight:700}.container p{margin-bottom:.5em;margin-top:.5em}.container mark{-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0}.container h2{font-size:2em}.container h3{font-size:1.75em}.container h4{font-size:1.5em}.container blockquote{padding:0 0 0 1em}.container img{display:block;height:auto;max-width:100%;width:auto}.container.showEmpty{border:2px dashed var(--mm-gray-800);color:var(--mm-gray-800);display:inline-block;height:80px;width:300px}
package/es/index.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { TextStyle, Margin } from '@micromag/core';
3
+
4
+ interface QuoteProps {
5
+ body?: string | null;
6
+ textStyle?: TextStyle | null;
7
+ linksStyle?: TextStyle | null;
8
+ margin?: Margin | null;
9
+ showEmpty?: boolean;
10
+ className?: string | null;
11
+ emptyClassName?: string | null;
12
+ }
13
+ declare function Quote({ body, textStyle, linksStyle, margin, showEmpty, className, emptyClassName, }: QuoteProps): react_jsx_runtime.JSX.Element;
14
+
15
+ export { Quote as default };
package/es/index.js CHANGED
@@ -1,40 +1,27 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
3
3
  import classNames from 'classnames';
4
- import PropTypes from 'prop-types';
5
4
  import React, { useId } from 'react';
6
- import { PropTypes as PropTypes$1 } from '@micromag/core';
7
5
  import { LinkStyle, HighlightStyle } from '@micromag/core/components';
8
6
  import { getStyleFromLink, getStyleFromHighlight, getStyleFromText, getStyleFromMargin } from '@micromag/core/utils';
9
7
 
10
- var styles = {"container":"micromag-element-quote-container","showEmpty":"micromag-element-quote-showEmpty"};
8
+ var styles = {"container":"container","showEmpty":"showEmpty"};
11
9
 
12
- var propTypes = {
13
- body: PropTypes.string,
14
- textStyle: PropTypes$1.textStyle,
15
- linksStyle: PropTypes$1.textStyle,
16
- margin: PropTypes$1.margin,
17
- showEmpty: PropTypes.bool,
18
- className: PropTypes.string,
19
- emptyClassName: PropTypes.string
20
- };
21
- var defaultProps = {
22
- body: null,
23
- textStyle: null,
24
- linksStyle: null,
25
- margin: null,
26
- showEmpty: false,
27
- className: null,
28
- emptyClassName: null
29
- };
30
- var Quote = function Quote(_ref) {
31
- var body = _ref.body,
32
- textStyle = _ref.textStyle,
33
- linksStyle = _ref.linksStyle,
34
- margin = _ref.margin,
35
- showEmpty = _ref.showEmpty,
36
- className = _ref.className,
37
- emptyClassName = _ref.emptyClassName;
10
+ function Quote(_ref) {
11
+ var _ref$body = _ref.body,
12
+ body = _ref$body === void 0 ? null : _ref$body,
13
+ _ref$textStyle = _ref.textStyle,
14
+ textStyle = _ref$textStyle === void 0 ? null : _ref$textStyle,
15
+ _ref$linksStyle = _ref.linksStyle,
16
+ linksStyle = _ref$linksStyle === void 0 ? null : _ref$linksStyle,
17
+ _ref$margin = _ref.margin,
18
+ margin = _ref$margin === void 0 ? null : _ref$margin,
19
+ _ref$showEmpty = _ref.showEmpty,
20
+ showEmpty = _ref$showEmpty === void 0 ? false : _ref$showEmpty,
21
+ _ref$className = _ref.className,
22
+ className = _ref$className === void 0 ? null : _ref$className,
23
+ _ref$emptyClassName = _ref.emptyClassName,
24
+ emptyClassName = _ref$emptyClassName === void 0 ? null : _ref$emptyClassName;
38
25
  var _ref2 = textStyle || {},
39
26
  _ref2$link = _ref2.link,
40
27
  linkStyle = _ref2$link === void 0 ? null : _ref2$link,
@@ -68,8 +55,6 @@ var Quote = function Quote(_ref) {
68
55
  __html: body
69
56
  }
70
57
  }));
71
- };
72
- Quote.propTypes = propTypes;
73
- Quote.defaultProps = defaultProps;
58
+ }
74
59
 
75
60
  export { Quote as default };
package/es/styles.css ADDED
@@ -0,0 +1 @@
1
+ .container{font-family:Helvetica,Arial,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0}.container em,.container i{font-style:italic}.container b,.container strong{font-weight:700}.container p{margin-bottom:.5em;margin-top:.5em}.container mark{-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0}.container h2{font-size:2em}.container h3{font-size:1.75em}.container h4{font-size:1.5em}.container blockquote{padding:0 0 0 1em}.container img{display:block;height:auto;max-width:100%;width:auto}.container.showEmpty{border:2px dashed var(--mm-gray-800);color:var(--mm-gray-800);display:inline-block;height:80px;width:300px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-quote",
3
- "version": "0.3.832",
3
+ "version": "0.4.4",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -34,6 +34,7 @@
34
34
  "module": "es/index.js",
35
35
  "exports": {
36
36
  ".": {
37
+ "types": "./es/index.d.ts",
37
38
  "import": "./es/index.js"
38
39
  },
39
40
  "./assets/css/styles": "./assets/css/styles.css",
@@ -47,27 +48,27 @@
47
48
  "scripts": {
48
49
  "clean": "rm -rf es && rm -rf lib && rm -rf assets",
49
50
  "prepublishOnly": "npm run build",
50
- "build": "../../scripts/prepare-package.sh"
51
+ "build": "../../scripts/prepare-package.sh --types"
51
52
  },
52
53
  "devDependencies": {
53
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
54
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
54
+ "react": "^19.2.0",
55
+ "react-dom": "^18.3.0 || ^19.0.0"
55
56
  },
56
57
  "peerDependencies": {
57
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
58
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
58
+ "react": "^19.2.0",
59
+ "react-dom": "^18.3.0 || ^19.0.0"
59
60
  },
60
61
  "dependencies": {
61
62
  "@babel/runtime": "^7.13.10",
62
- "@micromag/core": "^0.3.832",
63
+ "@micromag/core": "^0.4.4",
63
64
  "classnames": "^2.2.6",
64
- "prop-types": "^15.7.2",
65
- "react-intl": "^6.6.4",
65
+ "react-intl": "^8.1.3",
66
66
  "uuid": "^9.0.0"
67
67
  },
68
68
  "publishConfig": {
69
69
  "access": "public",
70
70
  "registry": "https://registry.npmjs.org/"
71
71
  },
72
- "gitHead": "4969d64e304334cfd47321e624e5914e0694c55f"
72
+ "gitHead": "04b8519c3a3ddace5a21497e22faa11865d57f6d",
73
+ "types": "es/index.d.ts"
73
74
  }