react-intl 5.20.0 → 5.20.4
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.
|
@@ -43,8 +43,7 @@ var formatMessage = function (config, formatters, descriptor, rawValues) {
|
|
|
43
43
|
var values = assignUniqueKeysToFormatXMLElementFnArgument(rawValues);
|
|
44
44
|
var chunks = coreFormatMessage.apply(void 0, __spreadArray([config,
|
|
45
45
|
formatters,
|
|
46
|
-
descriptor,
|
|
47
|
-
values], rest));
|
|
46
|
+
descriptor, values], rest));
|
|
48
47
|
if (Array.isArray(chunks)) {
|
|
49
48
|
return React.Children.toArray(chunks);
|
|
50
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relative.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/react-intl/src/components/relative.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAEL,8BAA8B,EAC/B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAC,yBAAyB,EAAC,MAAM,gBAAgB,CAAA;AAuDxD,MAAM,WAAW,KAAM,SAAQ,yBAAyB;IACtD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,8BAA8B,CAAA;IACrC,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAAA;CACpD;AA8BD,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"relative.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/react-intl/src/components/relative.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAEL,8BAA8B,EAC/B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAC,yBAAyB,EAAC,MAAM,gBAAgB,CAAA;AAuDxD,MAAM,WAAW,KAAM,SAAQ,yBAAyB;IACtD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,8BAA8B,CAAA;IACrC,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAAA;CACpD;AA8BD,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAmF1C,CAAA;AAQD,eAAe,qBAAqB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-intl",
|
|
3
|
-
"version": "5.20.
|
|
3
|
+
"version": "5.20.4",
|
|
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,14 +128,14 @@
|
|
|
128
128
|
"types": "index.d.ts",
|
|
129
129
|
"sideEffects": false,
|
|
130
130
|
"dependencies": {
|
|
131
|
-
"@formatjs/ecma402-abstract": "1.9.
|
|
132
|
-
"@formatjs/icu-messageformat-parser": "2.0.
|
|
133
|
-
"@formatjs/intl": "1.
|
|
134
|
-
"@formatjs/intl-displaynames": "5.1.
|
|
135
|
-
"@formatjs/intl-listformat": "6.2.
|
|
131
|
+
"@formatjs/ecma402-abstract": "1.9.4",
|
|
132
|
+
"@formatjs/icu-messageformat-parser": "2.0.7",
|
|
133
|
+
"@formatjs/intl": "1.13.2",
|
|
134
|
+
"@formatjs/intl-displaynames": "5.1.6",
|
|
135
|
+
"@formatjs/intl-listformat": "6.2.6",
|
|
136
136
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
137
137
|
"hoist-non-react-statics": "^3.3.2",
|
|
138
|
-
"intl-messageformat": "9.
|
|
138
|
+
"intl-messageformat": "9.7.1",
|
|
139
139
|
"tslib": "^2.1.0"
|
|
140
140
|
},
|
|
141
141
|
"peerDependencies": {
|
package/react-intl.iife.js
CHANGED
|
@@ -424,10 +424,16 @@ var ReactIntl = (function() {
|
|
|
424
424
|
}
|
|
425
425
|
return t;
|
|
426
426
|
}
|
|
427
|
-
function __spreadArray(to, from) {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
427
|
+
function __spreadArray(to, from, pack) {
|
|
428
|
+
if (pack || arguments.length === 2)
|
|
429
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
430
|
+
if (ar || !(i in from)) {
|
|
431
|
+
if (!ar)
|
|
432
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
433
|
+
ar[i] = from[i];
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
return to.concat(ar || from);
|
|
431
437
|
}
|
|
432
438
|
|
|
433
439
|
// bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/createFormattedComponent.js
|
|
@@ -2187,6 +2193,9 @@ var ReactIntl = (function() {
|
|
|
2187
2193
|
IntlMessageFormat2.__parse = parse;
|
|
2188
2194
|
IntlMessageFormat2.formats = {
|
|
2189
2195
|
number: {
|
|
2196
|
+
integer: {
|
|
2197
|
+
maximumFractionDigits: 0
|
|
2198
|
+
},
|
|
2190
2199
|
currency: {
|
|
2191
2200
|
style: "currency"
|
|
2192
2201
|
},
|
|
@@ -2791,7 +2800,8 @@ var ReactIntl = (function() {
|
|
|
2791
2800
|
"notation",
|
|
2792
2801
|
"signDisplay",
|
|
2793
2802
|
"unit",
|
|
2794
|
-
"unitDisplay"
|
|
2803
|
+
"unitDisplay",
|
|
2804
|
+
"numberingSystem"
|
|
2795
2805
|
];
|
|
2796
2806
|
function getFormatter3(_a2, getNumberFormat, options) {
|
|
2797
2807
|
var locale = _a2.locale, formats = _a2.formats, onError = _a2.onError;
|
|
@@ -46,8 +46,7 @@ var formatMessage = function (config, formatters, descriptor, rawValues) {
|
|
|
46
46
|
var values = assignUniqueKeysToFormatXMLElementFnArgument(rawValues);
|
|
47
47
|
var chunks = intl_1.formatMessage.apply(void 0, tslib_1.__spreadArray([config,
|
|
48
48
|
formatters,
|
|
49
|
-
descriptor,
|
|
50
|
-
values], rest));
|
|
49
|
+
descriptor, values], rest));
|
|
51
50
|
if (Array.isArray(chunks)) {
|
|
52
51
|
return React.Children.toArray(chunks);
|
|
53
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relative.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react-intl/src/components/relative.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAEL,8BAA8B,EAC/B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAC,yBAAyB,EAAC,MAAM,gBAAgB,CAAA;AAuDxD,MAAM,WAAW,KAAM,SAAQ,yBAAyB;IACtD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,8BAA8B,CAAA;IACrC,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAAA;CACpD;AA8BD,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"relative.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react-intl/src/components/relative.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAEL,8BAA8B,EAC/B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAC,yBAAyB,EAAC,MAAM,gBAAgB,CAAA;AAuDxD,MAAM,WAAW,KAAM,SAAQ,yBAAyB;IACtD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,8BAA8B,CAAA;IACrC,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAAA;CACpD;AA8BD,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAmF1C,CAAA;AAQD,eAAe,qBAAqB,CAAA"}
|