@micromag/element-heading 0.4.41 → 0.4.43

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.d.ts CHANGED
@@ -1,3 +1,8 @@
1
- declare const _default: any;
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare const _default: ({ ref, ...props }: {
4
+ [x: string]: any;
5
+ ref: any;
6
+ }) => react_jsx_runtime.JSX.Element;
2
7
 
3
8
  export { _default as default };
package/es/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
1
2
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
3
  import classNames from 'classnames';
3
4
  import React, { useId } from 'react';
@@ -6,6 +7,7 @@ import { getStyleFromLink, getStyleFromHighlight, getStyleFromText, getStyleFrom
6
7
 
7
8
  var styles = {"container":"micromag-element-heading-container"};
8
9
 
10
+ var _excluded = ["ref"];
9
11
  function Heading(_ref) {
10
12
  var _ref$size = _ref.size,
11
13
  size = _ref$size === void 0 ? 1 : _ref$size,
@@ -60,9 +62,9 @@ function Heading(_ref) {
60
62
  ref: headingRef
61
63
  }));
62
64
  }
63
-
64
- // eslint-disable-next-line react/jsx-props-no-spreading
65
- var Heading_default = /*#__PURE__*/React.forwardRef(function (props, ref) {
65
+ var Heading_default = (function (_ref3) {
66
+ var ref = _ref3.ref,
67
+ props = _objectWithoutProperties(_ref3, _excluded);
66
68
  return /*#__PURE__*/React.createElement(Heading, Object.assign({
67
69
  headingRef: ref
68
70
  }, props));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-heading",
3
- "version": "0.4.41",
3
+ "version": "0.4.43",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@babel/runtime": "^7.28.6",
63
- "@micromag/core": "^0.4.41",
63
+ "@micromag/core": "^0.4.43",
64
64
  "classnames": "^2.2.6",
65
65
  "react-intl": "^8.1.3 || ^10.0.0",
66
66
  "uuid": "^9.0.0"
@@ -69,6 +69,6 @@
69
69
  "access": "public",
70
70
  "registry": "https://registry.npmjs.org/"
71
71
  },
72
- "gitHead": "c7856a747ba0a4466f4b63bc29e31003275ac6e0",
72
+ "gitHead": "e168b7a9990472d1cb36973e4e45334f16bbeba6",
73
73
  "types": "es/index.d.ts"
74
74
  }