react-intl 5.6.5 → 5.6.9
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/{_validate_dist_options.optionsvalid.d.ts → _validate_dist-base_options.optionsvalid.d.ts} +1 -1
- package/_validate_dist-esm_options.optionsvalid.d.ts +1 -1
- package/lib/src/components/injectIntl.js +1 -1
- package/lib/src/components/relative.js +1 -1
- package/lib/src/formatters/message.js +1 -1
- package/lib/src/formatters/plural.d.ts +1 -1
- package/lib/src/formatters/plural.d.ts.map +1 -1
- package/lib/src/utils.js +1 -1
- package/package.json +9 -9
- package/react-intl-no-parser.umd.js +108 -1432
- package/react-intl-no-parser.umd.min.js +2 -2
- package/react-intl.umd.js +5531 -6597
- package/react-intl.umd.min.js +9 -9
- package/src/components/createFormattedComponent.js +20 -1
- package/src/components/injectIntl.js +25 -3
- package/src/components/message.js +21 -2
- package/src/components/plural.js +24 -2
- package/src/components/provider.js +21 -2
- package/src/components/relative.js +22 -3
- package/src/components/useIntl.js +20 -1
- package/src/formatters/message.js +22 -3
- package/src/formatters/plural.d.ts +1 -1
- package/src/formatters/plural.d.ts.map +1 -1
- package/src/utils.js +23 -4
package/{_validate_dist_options.optionsvalid.d.ts → _validate_dist-base_options.optionsvalid.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/
|
|
2
|
+
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/1036/execroot/formatjs/node_modules/@bazel/typescript/internal/ts_project_options_validator.js checked attributes for //packages/react-intl:dist-base
|
|
3
3
|
// composite: false
|
|
4
4
|
// declaration: true
|
|
5
5
|
// declaration_map: true
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/
|
|
2
|
+
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/1033/execroot/formatjs/node_modules/@bazel/typescript/internal/ts_project_options_validator.js checked attributes for //packages/react-intl:dist-esm
|
|
3
3
|
// composite: false
|
|
4
4
|
// declaration: true
|
|
5
5
|
// declaration_map: true
|
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import * as React from 'react';
|
|
13
|
-
import
|
|
13
|
+
import hoistNonReactStatics_ from 'hoist-non-react-statics';
|
|
14
14
|
// Since rollup cannot deal with namespace being a function,
|
|
15
15
|
// this is to interop with TypeScript since `invariant`
|
|
16
16
|
// does not export a default
|
|
@@ -30,7 +30,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
30
30
|
import * as React from 'react';
|
|
31
31
|
import { Context } from './injectIntl';
|
|
32
32
|
import { invariantIntlContext } from '../utils';
|
|
33
|
-
import { invariant } from '@formatjs/
|
|
33
|
+
import { invariant } from '@formatjs/ecma402-abstract';
|
|
34
34
|
var MINUTE = 60;
|
|
35
35
|
var HOUR = 60 * 60;
|
|
36
36
|
var DAY = 60 * 60 * 24;
|
|
@@ -22,7 +22,7 @@ var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
|
22
22
|
return r;
|
|
23
23
|
};
|
|
24
24
|
import * as React from 'react';
|
|
25
|
-
import { invariant } from '@formatjs/
|
|
25
|
+
import { invariant } from '@formatjs/ecma402-abstract';
|
|
26
26
|
import { assignUniqueKeysToParts } from '../utils';
|
|
27
27
|
import { IntlMessageFormat, isFormatXMLElementFn, } from 'intl-messageformat';
|
|
28
28
|
import { MissingTranslationError, MessageFormatError } from '../error';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IntlConfig, Formatters, IntlFormatters } from '../types';
|
|
2
|
-
import { LDMLPluralRule } from '@formatjs/
|
|
2
|
+
import { LDMLPluralRule } from '@formatjs/ecma402-abstract';
|
|
3
3
|
export declare function formatPlural({ locale, onError }: Pick<IntlConfig, 'locale' | 'onError'>, getPluralRules: Formatters['getPluralRules'], value: Parameters<IntlFormatters['formatPlural']>[0], options?: Parameters<IntlFormatters['formatPlural']>[1]): LDMLPluralRule;
|
|
4
4
|
//# sourceMappingURL=plural.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plural.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/react-intl/src/formatters/plural.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,UAAU,EAAE,cAAc,EAAC,MAAM,UAAU,CAAC;AAIhE,OAAO,EAAC,cAAc,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"plural.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/react-intl/src/formatters/plural.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,UAAU,EAAE,cAAc,EAAC,MAAM,UAAU,CAAC;AAIhE,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAO1D,wBAAgB,YAAY,CAC1B,EAAC,MAAM,EAAE,OAAO,EAAC,EAAE,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,SAAS,CAAC,EACzD,cAAc,EAAE,UAAU,CAAC,gBAAgB,CAAC,EAC5C,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,EACpD,OAAO,GAAE,UAAU,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAM,GAC1D,cAAc,CAsBhB"}
|
package/lib/src/utils.js
CHANGED
|
@@ -29,7 +29,7 @@ var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
|
29
29
|
import * as React from 'react';
|
|
30
30
|
import { IntlMessageFormat } from 'intl-messageformat';
|
|
31
31
|
import * as memoize from 'fast-memoize';
|
|
32
|
-
import { invariant } from '@formatjs/
|
|
32
|
+
import { invariant } from '@formatjs/ecma402-abstract';
|
|
33
33
|
import { UnsupportedFormatterError } from './error';
|
|
34
34
|
export function filterProps(props, whitelist, defaults) {
|
|
35
35
|
if (defaults === void 0) { defaults = {}; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-intl",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.9",
|
|
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",
|
|
@@ -128,17 +128,17 @@
|
|
|
128
128
|
"types": "react-intl.d.ts",
|
|
129
129
|
"sideEffects": false,
|
|
130
130
|
"dependencies": {
|
|
131
|
-
"@formatjs/
|
|
132
|
-
"@formatjs/intl-
|
|
133
|
-
"@formatjs/intl-
|
|
134
|
-
"@formatjs/intl-
|
|
135
|
-
"@formatjs/intl-
|
|
136
|
-
"@formatjs/intl-
|
|
131
|
+
"@formatjs/ecma402-abstract": "^1.0.3",
|
|
132
|
+
"@formatjs/intl-datetimeformat": "^2.6.3",
|
|
133
|
+
"@formatjs/intl-displaynames": "^3.3.3",
|
|
134
|
+
"@formatjs/intl-listformat": "^4.2.3",
|
|
135
|
+
"@formatjs/intl-numberformat": "^5.5.3",
|
|
136
|
+
"@formatjs/intl-relativetimeformat": "^7.2.3",
|
|
137
137
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
138
138
|
"fast-memoize": "^2.5.2",
|
|
139
139
|
"hoist-non-react-statics": "^3.3.2",
|
|
140
|
-
"intl-messageformat": "^9.
|
|
141
|
-
"intl-messageformat-parser": "^
|
|
140
|
+
"intl-messageformat": "^9.3.3",
|
|
141
|
+
"intl-messageformat-parser": "^6.0.2",
|
|
142
142
|
"shallow-equal": "^1.2.1"
|
|
143
143
|
},
|
|
144
144
|
"peerDependencies": {
|