react-intl 6.6.7 → 6.7.0
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,2 +1,2 @@
|
|
|
1
1
|
import { IntlShape } from '../types';
|
|
2
|
-
export default function useIntl(): IntlShape;
|
|
2
|
+
export default function useIntl(this: void): IntlShape;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Context } from './injectIntl';
|
|
3
2
|
import { invariantIntlContext } from '../utils';
|
|
3
|
+
import { Context } from './injectIntl';
|
|
4
4
|
export default function useIntl() {
|
|
5
5
|
var intl = React.useContext(Context);
|
|
6
6
|
invariantIntlContext(intl);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-intl",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"description": "Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intl",
|
|
@@ -132,16 +132,16 @@
|
|
|
132
132
|
"@types/react": "16 || 17 || 18",
|
|
133
133
|
"hoist-non-react-statics": "^3.3.2",
|
|
134
134
|
"tslib": "^2.4.0",
|
|
135
|
-
"@formatjs/
|
|
136
|
-
"@formatjs/
|
|
137
|
-
"@formatjs/intl-
|
|
138
|
-
"
|
|
139
|
-
"@formatjs/intl": "
|
|
140
|
-
"
|
|
135
|
+
"@formatjs/ecma402-abstract": "2.0.0",
|
|
136
|
+
"@formatjs/intl": "2.10.5",
|
|
137
|
+
"@formatjs/intl-displaynames": "6.6.8",
|
|
138
|
+
"@formatjs/icu-messageformat-parser": "2.7.8",
|
|
139
|
+
"@formatjs/intl-listformat": "7.5.7",
|
|
140
|
+
"intl-messageformat": "10.5.14"
|
|
141
141
|
},
|
|
142
142
|
"devDependencies": {
|
|
143
|
-
"@formatjs/intl-numberformat": "8.10.
|
|
144
|
-
"@formatjs/intl-relativetimeformat": "11.2.
|
|
143
|
+
"@formatjs/intl-numberformat": "8.10.3",
|
|
144
|
+
"@formatjs/intl-relativetimeformat": "11.2.14"
|
|
145
145
|
},
|
|
146
146
|
"peerDependencies": {
|
|
147
147
|
"react": "^16.6.0 || 17 || 18",
|
package/react-intl.iife.js
CHANGED
|
@@ -388,10 +388,6 @@ var ReactIntl = (() => {
|
|
|
388
388
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/react-intl/lib/src/components/useIntl.js
|
|
389
389
|
var React3 = __toESM(window.React);
|
|
390
390
|
|
|
391
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/react-intl/lib/src/components/injectIntl.js
|
|
392
|
-
var React2 = __toESM(window.React);
|
|
393
|
-
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
394
|
-
|
|
395
391
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/react-intl/lib/src/utils.js
|
|
396
392
|
var React = __toESM(window.React);
|
|
397
393
|
|
|
@@ -4478,6 +4474,8 @@ var ReactIntl = (() => {
|
|
|
4478
4474
|
}
|
|
4479
4475
|
|
|
4480
4476
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/react-intl/lib/src/components/injectIntl.js
|
|
4477
|
+
var React2 = __toESM(window.React);
|
|
4478
|
+
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
4481
4479
|
function getDisplayName(Component) {
|
|
4482
4480
|
return Component.displayName || Component.name || "Component";
|
|
4483
4481
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IntlShape } from '../types';
|
|
2
|
-
export default function useIntl(): IntlShape;
|
|
2
|
+
export default function useIntl(this: void): IntlShape;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
4
|
var React = tslib_1.__importStar(require("react"));
|
|
5
|
-
var injectIntl_1 = require("./injectIntl");
|
|
6
5
|
var utils_1 = require("../utils");
|
|
6
|
+
var injectIntl_1 = require("./injectIntl");
|
|
7
7
|
function useIntl() {
|
|
8
8
|
var intl = React.useContext(injectIntl_1.Context);
|
|
9
9
|
(0, utils_1.invariantIntlContext)(intl);
|