react-intl 5.20.9 → 5.20.10
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/index.d.ts +3 -3
- package/index.d.ts.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.d.ts.map +1 -1
- package/package.json +7 -5
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { MessageDescriptor, CustomFormatConfig, FormatDateOptions } from '@formatjs/intl';
|
|
3
3
|
import { IntlListFormatOptions } from '@formatjs/intl-listformat';
|
|
4
4
|
import { DisplayNamesOptions } from '@formatjs/intl-displaynames';
|
|
5
|
-
import {
|
|
5
|
+
import { NumberFormatOptions } from '@formatjs/ecma402-abstract';
|
|
6
6
|
export { IntlConfig, ResolvedIntlConfig, IntlShape } from './src/types';
|
|
7
7
|
export { createIntlCache, MessageDescriptor, IntlCache, Formatters, IntlFormatters, FormatDisplayNameOptions, FormatListOptions, FormatPluralOptions, FormatRelativeTimeOptions, FormatNumberOptions, FormatDateOptions, CustomFormatConfig, CustomFormats, UnsupportedFormatterError, InvalidConfigError, MissingDataError, MessageFormatError, MissingTranslationError, IntlErrorCode as ReactIntlErrorCode, IntlError as ReactIntlError, } from '@formatjs/intl';
|
|
8
8
|
export declare function defineMessages<K extends keyof any, T = MessageDescriptor, U extends Record<K, T> = Record<K, T>>(msgs: U): U;
|
|
@@ -10,10 +10,10 @@ export declare function defineMessage<T extends MessageDescriptor>(msg: T): T;
|
|
|
10
10
|
export { default as injectIntl, Provider as RawIntlProvider, Context as IntlContext, WithIntlProps, WrappedComponentProps, } from './src/components/injectIntl';
|
|
11
11
|
export { default as useIntl } from './src/components/useIntl';
|
|
12
12
|
export { default as IntlProvider, createIntl } from './src/components/provider';
|
|
13
|
-
export declare const FormattedDate: React.FC<DateTimeFormatOptions & CustomFormatConfig & {
|
|
13
|
+
export declare const FormattedDate: React.FC<Intl.DateTimeFormatOptions & CustomFormatConfig & {
|
|
14
14
|
value: string | number | Date | undefined;
|
|
15
15
|
}>;
|
|
16
|
-
export declare const FormattedTime: React.FC<DateTimeFormatOptions & CustomFormatConfig & {
|
|
16
|
+
export declare const FormattedTime: React.FC<Intl.DateTimeFormatOptions & CustomFormatConfig & {
|
|
17
17
|
value: string | number | Date | undefined;
|
|
18
18
|
}>;
|
|
19
19
|
export declare const FormattedNumber: React.FC<NumberFormatOptions & CustomFormatConfig & {
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react-intl/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAC,mBAAmB,EAAC,MAAM,6BAA6B,CAAA;AAC/D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react-intl/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAC,mBAAmB,EAAC,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EAAC,mBAAmB,EAAC,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAC,UAAU,EAAE,kBAAkB,EAAE,SAAS,EAAC,MAAM,aAAa,CAAA;AACrE,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,cAAc,EACd,wBAAwB,EACxB,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,m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;AACpE,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,gCAAgC,CAAA;AAChF,YAAY,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAA"}
|
package/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { MessageDescriptor, CustomFormatConfig, FormatDateOptions } from '@formatjs/intl';
|
|
3
3
|
import { IntlListFormatOptions } from '@formatjs/intl-listformat';
|
|
4
4
|
import { DisplayNamesOptions } from '@formatjs/intl-displaynames';
|
|
5
|
-
import {
|
|
5
|
+
import { NumberFormatOptions } from '@formatjs/ecma402-abstract';
|
|
6
6
|
export { IntlConfig, ResolvedIntlConfig, IntlShape } from './src/types';
|
|
7
7
|
export { createIntlCache, MessageDescriptor, IntlCache, Formatters, IntlFormatters, FormatDisplayNameOptions, FormatListOptions, FormatPluralOptions, FormatRelativeTimeOptions, FormatNumberOptions, FormatDateOptions, CustomFormatConfig, CustomFormats, UnsupportedFormatterError, InvalidConfigError, MissingDataError, MessageFormatError, MissingTranslationError, IntlErrorCode as ReactIntlErrorCode, IntlError as ReactIntlError, } from '@formatjs/intl';
|
|
8
8
|
export declare function defineMessages<K extends keyof any, T = MessageDescriptor, U extends Record<K, T> = Record<K, T>>(msgs: U): U;
|
|
@@ -10,10 +10,10 @@ export declare function defineMessage<T extends MessageDescriptor>(msg: T): T;
|
|
|
10
10
|
export { default as injectIntl, Provider as RawIntlProvider, Context as IntlContext, WithIntlProps, WrappedComponentProps, } from './src/components/injectIntl';
|
|
11
11
|
export { default as useIntl } from './src/components/useIntl';
|
|
12
12
|
export { default as IntlProvider, createIntl } from './src/components/provider';
|
|
13
|
-
export declare const FormattedDate: React.FC<DateTimeFormatOptions & CustomFormatConfig & {
|
|
13
|
+
export declare const FormattedDate: React.FC<Intl.DateTimeFormatOptions & CustomFormatConfig & {
|
|
14
14
|
value: string | number | Date | undefined;
|
|
15
15
|
}>;
|
|
16
|
-
export declare const FormattedTime: React.FC<DateTimeFormatOptions & CustomFormatConfig & {
|
|
16
|
+
export declare const FormattedTime: React.FC<Intl.DateTimeFormatOptions & CustomFormatConfig & {
|
|
17
17
|
value: string | number | Date | undefined;
|
|
18
18
|
}>;
|
|
19
19
|
export declare const FormattedNumber: React.FC<NumberFormatOptions & CustomFormatConfig & {
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-intl/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAC,mBAAmB,EAAC,MAAM,6BAA6B,CAAA;AAC/D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-intl/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAC,mBAAmB,EAAC,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EAAC,mBAAmB,EAAC,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAC,UAAU,EAAE,kBAAkB,EAAE,SAAS,EAAC,MAAM,aAAa,CAAA;AACrE,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,cAAc,EACd,wBAAwB,EACxB,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,yBAAyB,EACzB,kBA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,YAAY,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-intl",
|
|
3
|
-
"version": "5.20.
|
|
3
|
+
"version": "5.20.10",
|
|
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,13 +128,15 @@
|
|
|
128
128
|
"types": "index.d.ts",
|
|
129
129
|
"sideEffects": false,
|
|
130
130
|
"dependencies": {
|
|
131
|
-
"@formatjs/
|
|
132
|
-
"@formatjs/
|
|
133
|
-
"@formatjs/intl
|
|
131
|
+
"@formatjs/ecma402-abstract": "1.9.8",
|
|
132
|
+
"@formatjs/icu-messageformat-parser": "2.0.11",
|
|
133
|
+
"@formatjs/intl": "1.14.1",
|
|
134
|
+
"@formatjs/intl-displaynames": "5.2.3",
|
|
135
|
+
"@formatjs/intl-listformat": "6.3.3",
|
|
134
136
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
135
137
|
"@types/react": "17",
|
|
136
138
|
"hoist-non-react-statics": "^3.3.2",
|
|
137
|
-
"intl-messageformat": "9.9.
|
|
139
|
+
"intl-messageformat": "9.9.1",
|
|
138
140
|
"tslib": "^2.1.0"
|
|
139
141
|
},
|
|
140
142
|
"peerDependencies": {
|