react-intl
Advanced tools
Comparing version 5.21.0 to 5.21.1
@@ -6,2 +6,10 @@ import * as React from 'react'; | ||
import { NumberFormatOptions } from '@formatjs/ecma402-abstract'; | ||
import injectIntl, { Provider as RawIntlProvider, Context as IntlContext, WithIntlProps, WrappedComponentProps } from './src/components/injectIntl'; | ||
import useIntl from './src/components/useIntl'; | ||
import IntlProvider, { createIntl } from './src/components/provider'; | ||
import FormattedRelativeTime from './src/components/relative'; | ||
import FormattedPlural from './src/components/plural'; | ||
import FormattedMessage from './src/components/message'; | ||
import FormattedDateTimeRange from './src/components/dateTimeRange'; | ||
export { FormattedDateTimeRange, FormattedMessage, FormattedPlural, FormattedRelativeTime, IntlContext, IntlProvider, RawIntlProvider, WithIntlProps, WrappedComponentProps, createIntl, injectIntl, useIntl, }; | ||
export { IntlConfig, ResolvedIntlConfig, IntlShape } from './src/types'; | ||
@@ -11,5 +19,2 @@ 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'; | ||
export declare function defineMessage<T extends MessageDescriptor>(msg: T): T; | ||
export { default as injectIntl, Provider as RawIntlProvider, Context as IntlContext, WithIntlProps, WrappedComponentProps, } from './src/components/injectIntl'; | ||
export { default as useIntl } from './src/components/useIntl'; | ||
export { default as IntlProvider, createIntl } from './src/components/provider'; | ||
export declare const FormattedDate: React.FC<Intl.DateTimeFormatOptions & CustomFormatConfig & { | ||
@@ -39,7 +44,3 @@ value: string | number | Date | undefined; | ||
export { FormattedNumberParts, FormattedListParts, } from './src/components/createFormattedComponent'; | ||
export { default as FormattedRelativeTime } from './src/components/relative'; | ||
export { default as FormattedPlural } from './src/components/plural'; | ||
export { default as FormattedMessage } from './src/components/message'; | ||
export { default as FormattedDateTimeRange } from './src/components/dateTimeRange'; | ||
export type { MessageFormatElement } from '@formatjs/icu-messageformat-parser'; | ||
//# sourceMappingURL=index.d.ts.map |
40
index.js
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FormattedDateTimeRange = exports.FormattedMessage = exports.FormattedPlural = exports.FormattedRelativeTime = exports.FormattedListParts = exports.FormattedNumberParts = exports.FormattedTimeParts = exports.FormattedDateParts = exports.FormattedDisplayName = exports.FormattedList = exports.FormattedNumber = exports.FormattedTime = exports.FormattedDate = exports.createIntl = exports.IntlProvider = exports.useIntl = exports.IntlContext = exports.RawIntlProvider = exports.injectIntl = exports.defineMessage = exports.defineMessages = exports.ReactIntlError = exports.ReactIntlErrorCode = exports.MissingTranslationError = exports.MessageFormatError = exports.MissingDataError = exports.InvalidConfigError = exports.UnsupportedFormatterError = exports.createIntlCache = void 0; | ||
exports.FormattedListParts = exports.FormattedNumberParts = exports.FormattedTimeParts = exports.FormattedDateParts = exports.FormattedDisplayName = exports.FormattedList = exports.FormattedNumber = exports.FormattedTime = exports.FormattedDate = exports.defineMessage = exports.defineMessages = exports.ReactIntlError = exports.ReactIntlErrorCode = exports.MissingTranslationError = exports.MessageFormatError = exports.MissingDataError = exports.InvalidConfigError = exports.UnsupportedFormatterError = exports.createIntlCache = exports.useIntl = exports.injectIntl = exports.createIntl = exports.RawIntlProvider = exports.IntlProvider = exports.IntlContext = exports.FormattedRelativeTime = exports.FormattedPlural = exports.FormattedMessage = exports.FormattedDateTimeRange = void 0; | ||
var tslib_1 = require("tslib"); | ||
var createFormattedComponent_1 = require("./src/components/createFormattedComponent"); | ||
var injectIntl_1 = (0, tslib_1.__importStar)(require("./src/components/injectIntl")); | ||
exports.injectIntl = injectIntl_1.default; | ||
Object.defineProperty(exports, "RawIntlProvider", { enumerable: true, get: function () { return injectIntl_1.Provider; } }); | ||
Object.defineProperty(exports, "IntlContext", { enumerable: true, get: function () { return injectIntl_1.Context; } }); | ||
var useIntl_1 = (0, tslib_1.__importDefault)(require("./src/components/useIntl")); | ||
exports.useIntl = useIntl_1.default; | ||
var provider_1 = (0, tslib_1.__importStar)(require("./src/components/provider")); | ||
exports.IntlProvider = provider_1.default; | ||
Object.defineProperty(exports, "createIntl", { enumerable: true, get: function () { return provider_1.createIntl; } }); | ||
var relative_1 = (0, tslib_1.__importDefault)(require("./src/components/relative")); | ||
exports.FormattedRelativeTime = relative_1.default; | ||
var plural_1 = (0, tslib_1.__importDefault)(require("./src/components/plural")); | ||
exports.FormattedPlural = plural_1.default; | ||
var message_1 = (0, tslib_1.__importDefault)(require("./src/components/message")); | ||
exports.FormattedMessage = message_1.default; | ||
var dateTimeRange_1 = (0, tslib_1.__importDefault)(require("./src/components/dateTimeRange")); | ||
exports.FormattedDateTimeRange = dateTimeRange_1.default; | ||
var intl_1 = require("@formatjs/intl"); | ||
@@ -25,11 +40,2 @@ Object.defineProperty(exports, "createIntlCache", { enumerable: true, get: function () { return intl_1.createIntlCache; } }); | ||
exports.defineMessage = defineMessage; | ||
var injectIntl_1 = require("./src/components/injectIntl"); | ||
Object.defineProperty(exports, "injectIntl", { enumerable: true, get: function () { return __importDefault(injectIntl_1).default; } }); | ||
Object.defineProperty(exports, "RawIntlProvider", { enumerable: true, get: function () { return injectIntl_1.Provider; } }); | ||
Object.defineProperty(exports, "IntlContext", { enumerable: true, get: function () { return injectIntl_1.Context; } }); | ||
var useIntl_1 = require("./src/components/useIntl"); | ||
Object.defineProperty(exports, "useIntl", { enumerable: true, get: function () { return __importDefault(useIntl_1).default; } }); | ||
var provider_1 = require("./src/components/provider"); | ||
Object.defineProperty(exports, "IntlProvider", { enumerable: true, get: function () { return __importDefault(provider_1).default; } }); | ||
Object.defineProperty(exports, "createIntl", { enumerable: true, get: function () { return provider_1.createIntl; } }); | ||
// IMPORTANT: Explicit here to prevent api-extractor from outputing `import('./src/types').CustomFormatConfig` | ||
@@ -47,9 +53,1 @@ exports.FormattedDate = (0, createFormattedComponent_1.createFormattedComponent)('formatDate'); | ||
Object.defineProperty(exports, "FormattedListParts", { enumerable: true, get: function () { return createFormattedComponent_2.FormattedListParts; } }); | ||
var relative_1 = require("./src/components/relative"); | ||
Object.defineProperty(exports, "FormattedRelativeTime", { enumerable: true, get: function () { return __importDefault(relative_1).default; } }); | ||
var plural_1 = require("./src/components/plural"); | ||
Object.defineProperty(exports, "FormattedPlural", { enumerable: true, get: function () { return __importDefault(plural_1).default; } }); | ||
var message_1 = require("./src/components/message"); | ||
Object.defineProperty(exports, "FormattedMessage", { enumerable: true, get: function () { return __importDefault(message_1).default; } }); | ||
var dateTimeRange_1 = require("./src/components/dateTimeRange"); | ||
Object.defineProperty(exports, "FormattedDateTimeRange", { enumerable: true, get: function () { return __importDefault(dateTimeRange_1).default; } }); |
@@ -6,2 +6,10 @@ import * as React from 'react'; | ||
import { NumberFormatOptions } from '@formatjs/ecma402-abstract'; | ||
import injectIntl, { Provider as RawIntlProvider, Context as IntlContext, WithIntlProps, WrappedComponentProps } from './src/components/injectIntl'; | ||
import useIntl from './src/components/useIntl'; | ||
import IntlProvider, { createIntl } from './src/components/provider'; | ||
import FormattedRelativeTime from './src/components/relative'; | ||
import FormattedPlural from './src/components/plural'; | ||
import FormattedMessage from './src/components/message'; | ||
import FormattedDateTimeRange from './src/components/dateTimeRange'; | ||
export { FormattedDateTimeRange, FormattedMessage, FormattedPlural, FormattedRelativeTime, IntlContext, IntlProvider, RawIntlProvider, WithIntlProps, WrappedComponentProps, createIntl, injectIntl, useIntl, }; | ||
export { IntlConfig, ResolvedIntlConfig, IntlShape } from './src/types'; | ||
@@ -11,5 +19,2 @@ 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'; | ||
export declare function defineMessage<T extends MessageDescriptor>(msg: T): T; | ||
export { default as injectIntl, Provider as RawIntlProvider, Context as IntlContext, WithIntlProps, WrappedComponentProps, } from './src/components/injectIntl'; | ||
export { default as useIntl } from './src/components/useIntl'; | ||
export { default as IntlProvider, createIntl } from './src/components/provider'; | ||
export declare const FormattedDate: React.FC<Intl.DateTimeFormatOptions & CustomFormatConfig & { | ||
@@ -39,7 +44,3 @@ value: string | number | Date | undefined; | ||
export { FormattedNumberParts, FormattedListParts, } from './src/components/createFormattedComponent'; | ||
export { default as FormattedRelativeTime } from './src/components/relative'; | ||
export { default as FormattedPlural } from './src/components/plural'; | ||
export { default as FormattedMessage } from './src/components/message'; | ||
export { default as FormattedDateTimeRange } from './src/components/dateTimeRange'; | ||
export type { MessageFormatElement } from '@formatjs/icu-messageformat-parser'; | ||
//# sourceMappingURL=index.d.ts.map |
import { createFormattedComponent, createFormattedDateTimePartsComponent, } from './src/components/createFormattedComponent'; | ||
import injectIntl, { Provider as RawIntlProvider, Context as IntlContext, } from './src/components/injectIntl'; | ||
import useIntl from './src/components/useIntl'; | ||
import IntlProvider, { createIntl } from './src/components/provider'; | ||
import FormattedRelativeTime from './src/components/relative'; | ||
import FormattedPlural from './src/components/plural'; | ||
import FormattedMessage from './src/components/message'; | ||
import FormattedDateTimeRange from './src/components/dateTimeRange'; | ||
export { FormattedDateTimeRange, FormattedMessage, FormattedPlural, FormattedRelativeTime, IntlContext, IntlProvider, RawIntlProvider, createIntl, injectIntl, useIntl, }; | ||
export { createIntlCache, UnsupportedFormatterError, InvalidConfigError, MissingDataError, MessageFormatError, MissingTranslationError, IntlErrorCode as ReactIntlErrorCode, IntlError as ReactIntlError, } from '@formatjs/intl'; | ||
@@ -9,5 +17,2 @@ export function defineMessages(msgs) { | ||
} | ||
export { default as injectIntl, Provider as RawIntlProvider, Context as IntlContext, } from './src/components/injectIntl'; | ||
export { default as useIntl } from './src/components/useIntl'; | ||
export { default as IntlProvider, createIntl } from './src/components/provider'; | ||
// IMPORTANT: Explicit here to prevent api-extractor from outputing `import('./src/types').CustomFormatConfig` | ||
@@ -23,5 +28,1 @@ export var FormattedDate = createFormattedComponent('formatDate'); | ||
export { FormattedNumberParts, FormattedListParts, } from './src/components/createFormattedComponent'; | ||
export { default as FormattedRelativeTime } from './src/components/relative'; | ||
export { default as FormattedPlural } from './src/components/plural'; | ||
export { default as FormattedMessage } from './src/components/message'; | ||
export { default as FormattedDateTimeRange } from './src/components/dateTimeRange'; |
{ | ||
"name": "react-intl", | ||
"version": "5.21.0", | ||
"version": "5.21.1", | ||
"description": "Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.", | ||
@@ -133,3 +133,3 @@ "keywords": [ | ||
"@formatjs/icu-messageformat-parser": "2.0.14", | ||
"@formatjs/intl": "1.15.0", | ||
"@formatjs/intl": "1.15.1", | ||
"@formatjs/intl-displaynames": "5.2.5", | ||
@@ -140,3 +140,3 @@ "@formatjs/intl-listformat": "6.3.5", | ||
"hoist-non-react-statics": "^3.3.2", | ||
"intl-messageformat": "9.9.4", | ||
"intl-messageformat": "9.9.5", | ||
"tslib": "^2.1.0" | ||
@@ -143,0 +143,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5028
248239
+ Added@formatjs/intl@1.15.1(transitive)
+ Addedintl-messageformat@9.9.5(transitive)
- Removed@formatjs/intl@1.15.0(transitive)
- Removedintl-messageformat@9.9.4(transitive)
Updated@formatjs/intl@1.15.1
Updatedintl-messageformat@9.9.5