@micromag/intl 0.4.49 → 0.4.51

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/es/index.js +8 -5
  2. package/package.json +3 -3
package/es/index.js CHANGED
@@ -4,6 +4,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
4
4
  import _createClass from '@babel/runtime/helpers/createClass';
5
5
  import React, { use, useMemo, useCallback } from 'react';
6
6
  import { IntlContext, IntlProvider as IntlProvider$1 } from 'react-intl';
7
+ import { jsx } from 'react/jsx-runtime';
7
8
 
8
9
  var IntlManager = /*#__PURE__*/function () {
9
10
  function IntlManager() {
@@ -93,13 +94,15 @@ function IntlProvider(_ref) {
93
94
  }
94
95
  console.error(err);
95
96
  }, []);
96
- return /*#__PURE__*/React.createElement(IntlProvider$1, {
97
+ return /*#__PURE__*/jsx(IntlProvider$1, {
97
98
  locale: locale,
98
99
  messages: messages,
99
- onError: onError
100
- }, /*#__PURE__*/React.createElement(LocalesContext, {
101
- value: locales || previousLocales
102
- }, children));
100
+ onError: onError,
101
+ children: /*#__PURE__*/jsx(LocalesContext, {
102
+ value: locales || previousLocales,
103
+ children: children
104
+ })
105
+ });
103
106
  }
104
107
 
105
108
  export { IntlManager, IntlProvider, LocalesContext, intlManager as default, useLocales, useOtherLocales };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/intl",
3
- "version": "0.4.49",
3
+ "version": "0.4.51",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -73,7 +73,7 @@
73
73
  "dependencies": {
74
74
  "@babel/runtime": "^7.28.6",
75
75
  "@formatjs/cli": "^6.2.7",
76
- "@micromag/core": "^0.4.49",
76
+ "@micromag/core": "^0.4.51",
77
77
  "commander": "^12.0.0",
78
78
  "fs-extra": "^11.2.0",
79
79
  "gettext-parser": "^7.0.1",
@@ -90,6 +90,6 @@
90
90
  "access": "public",
91
91
  "registry": "https://registry.npmjs.org/"
92
92
  },
93
- "gitHead": "0a225ff29387217cccb0fcc5a731e23c74bd202e",
93
+ "gitHead": "985a2370829c9ac8901ea97bf20bfc98ab158439",
94
94
  "types": "es/index.d.ts"
95
95
  }