@micromag/editor 0.3.504 → 0.3.505

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.
Files changed (2) hide show
  1. package/lib/index.js +5 -3
  2. package/package.json +7 -7
package/lib/index.js CHANGED
@@ -64,11 +64,13 @@ function _interopNamespaceDefault(e) {
64
64
 
65
65
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
66
66
 
67
- // React.useInsertionEffect is not available in React <18
68
67
  var useEffect = React__namespace.useEffect,
69
68
  useLayoutEffect = React__namespace.useLayoutEffect,
70
- useRef = React__namespace.useRef,
71
- useBuiltinInsertionEffect = React__namespace.useInsertionEffect;
69
+ useRef = React__namespace.useRef;
70
+
71
+ // React.useInsertionEffect is not available in React <18
72
+ // This hack fixes a transpilation issue on some apps
73
+ var useBuiltinInsertionEffect = React__namespace['useInsertion' + 'Effect'];
72
74
 
73
75
  // Copied from:
74
76
  // https://github.com/facebook/react/blob/main/packages/shared/ExecutionEnvironment.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/editor",
3
- "version": "0.3.504",
3
+ "version": "0.3.505",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -72,11 +72,11 @@
72
72
  "@fortawesome/fontawesome-svg-core": "^1.2.32",
73
73
  "@fortawesome/free-solid-svg-icons": "^5.15.1",
74
74
  "@fortawesome/react-fontawesome": "^0.1.13",
75
- "@micromag/core": "^0.3.503",
76
- "@micromag/elements": "^0.3.503",
77
- "@micromag/fields": "^0.3.503",
78
- "@micromag/screens": "^0.3.503",
79
- "@micromag/viewer": "^0.3.504",
75
+ "@micromag/core": "^0.3.505",
76
+ "@micromag/elements": "^0.3.505",
77
+ "@micromag/fields": "^0.3.505",
78
+ "@micromag/screens": "^0.3.505",
79
+ "@micromag/viewer": "^0.3.505",
80
80
  "classnames": "^2.2.6",
81
81
  "lodash": "^4.17.21",
82
82
  "prop-types": "^15.7.2",
@@ -91,5 +91,5 @@
91
91
  "access": "public",
92
92
  "registry": "https://registry.npmjs.org/"
93
93
  },
94
- "gitHead": "a2b150ae9eaed5f217d32725409c5d780d0afb52"
94
+ "gitHead": "f16e0f95385c69df3b07b182c70a9f0eb56cbe3a"
95
95
  }