react-intl
Advanced tools
Comparing version 6.2.2 to 6.2.4
@@ -5,3 +5,3 @@ import * as React from 'react'; | ||
import { Part } from '@formatjs/intl-listformat'; | ||
declare type Formatter = { | ||
type Formatter = { | ||
formatDate: FormatDateOptions; | ||
@@ -8,0 +8,0 @@ formatTime: FormatDateOptions; |
@@ -10,6 +10,6 @@ import * as React from 'react'; | ||
} | ||
export declare type WrappedComponentProps<IntlPropName extends string = 'intl'> = { | ||
export type WrappedComponentProps<IntlPropName extends string = 'intl'> = { | ||
[k in IntlPropName]: IntlShape; | ||
}; | ||
export declare type WithIntlProps<P> = Omit<P, keyof WrappedComponentProps> & { | ||
export type WithIntlProps<P> = Omit<P, keyof WrappedComponentProps> & { | ||
forwardedRef?: React.Ref<any>; | ||
@@ -16,0 +16,0 @@ }; |
import * as React from 'react'; | ||
import { ResolvedIntlConfig as CoreResolvedIntlConfig, IntlFormatters, Formatters } from '@formatjs/intl'; | ||
import { DEFAULT_INTL_CONFIG } from './utils'; | ||
export declare type IntlConfig = Omit<ResolvedIntlConfig, keyof typeof DEFAULT_INTL_CONFIG> & Partial<typeof DEFAULT_INTL_CONFIG>; | ||
export type IntlConfig = Omit<ResolvedIntlConfig, keyof typeof DEFAULT_INTL_CONFIG> & Partial<typeof DEFAULT_INTL_CONFIG>; | ||
export interface ResolvedIntlConfig extends CoreResolvedIntlConfig<React.ReactNode> { | ||
@@ -6,0 +6,0 @@ textComponent?: React.ComponentType | keyof React.ReactHTML; |
{ | ||
"name": "react-intl", | ||
"version": "6.2.2", | ||
"version": "6.2.4", | ||
"description": "Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.", | ||
@@ -131,16 +131,16 @@ "keywords": [ | ||
"dependencies": { | ||
"@formatjs/ecma402-abstract": "1.14.0", | ||
"@formatjs/icu-messageformat-parser": "2.1.11", | ||
"@formatjs/intl": "2.6.0", | ||
"@formatjs/intl-displaynames": "6.2.0", | ||
"@formatjs/intl-listformat": "7.1.4", | ||
"@formatjs/ecma402-abstract": "1.14.2", | ||
"@formatjs/icu-messageformat-parser": "2.1.13", | ||
"@formatjs/intl": "2.6.2", | ||
"@formatjs/intl-displaynames": "6.2.2", | ||
"@formatjs/intl-listformat": "7.1.6", | ||
"@types/hoist-non-react-statics": "^3.3.1", | ||
"@types/react": "16 || 17 || 18", | ||
"hoist-non-react-statics": "^3.3.2", | ||
"intl-messageformat": "10.2.2", | ||
"intl-messageformat": "10.2.4", | ||
"tslib": "2.4.0" | ||
}, | ||
"devDependencies": { | ||
"@formatjs/intl-numberformat": "8.3.0", | ||
"@formatjs/intl-relativetimeformat": "11.1.5" | ||
"@formatjs/intl-numberformat": "8.3.2", | ||
"@formatjs/intl-relativetimeformat": "11.1.7" | ||
}, | ||
@@ -147,0 +147,0 @@ "peerDependencies": { |
@@ -5,3 +5,3 @@ import * as React from 'react'; | ||
import { Part } from '@formatjs/intl-listformat'; | ||
declare type Formatter = { | ||
type Formatter = { | ||
formatDate: FormatDateOptions; | ||
@@ -8,0 +8,0 @@ formatTime: FormatDateOptions; |
@@ -10,6 +10,6 @@ import * as React from 'react'; | ||
} | ||
export declare type WrappedComponentProps<IntlPropName extends string = 'intl'> = { | ||
export type WrappedComponentProps<IntlPropName extends string = 'intl'> = { | ||
[k in IntlPropName]: IntlShape; | ||
}; | ||
export declare type WithIntlProps<P> = Omit<P, keyof WrappedComponentProps> & { | ||
export type WithIntlProps<P> = Omit<P, keyof WrappedComponentProps> & { | ||
forwardedRef?: React.Ref<any>; | ||
@@ -16,0 +16,0 @@ }; |
import * as React from 'react'; | ||
import { ResolvedIntlConfig as CoreResolvedIntlConfig, IntlFormatters, Formatters } from '@formatjs/intl'; | ||
import { DEFAULT_INTL_CONFIG } from './utils'; | ||
export declare type IntlConfig = Omit<ResolvedIntlConfig, keyof typeof DEFAULT_INTL_CONFIG> & Partial<typeof DEFAULT_INTL_CONFIG>; | ||
export type IntlConfig = Omit<ResolvedIntlConfig, keyof typeof DEFAULT_INTL_CONFIG> & Partial<typeof DEFAULT_INTL_CONFIG>; | ||
export interface ResolvedIntlConfig extends CoreResolvedIntlConfig<React.ReactNode> { | ||
@@ -6,0 +6,0 @@ textComponent?: React.ComponentType | keyof React.ReactHTML; |
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 not supported yet
Sorry, the diff of this file is too big to display
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 not supported yet
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
256698
+ Added@formatjs/ecma402-abstract@1.14.2(transitive)
+ Added@formatjs/icu-messageformat-parser@2.1.13(transitive)
+ Added@formatjs/icu-skeleton-parser@1.3.17(transitive)
+ Added@formatjs/intl@2.6.2(transitive)
+ Added@formatjs/intl-displaynames@6.2.2(transitive)
+ Added@formatjs/intl-listformat@7.1.6(transitive)
+ Addedintl-messageformat@10.2.4(transitive)
- Removed@formatjs/ecma402-abstract@1.14.0(transitive)
- Removed@formatjs/icu-messageformat-parser@2.1.11(transitive)
- Removed@formatjs/icu-skeleton-parser@1.3.15(transitive)
- Removed@formatjs/intl@2.6.0(transitive)
- Removed@formatjs/intl-displaynames@6.2.0(transitive)
- Removed@formatjs/intl-listformat@7.1.4(transitive)
- Removedintl-messageformat@10.2.2(transitive)
Updated@formatjs/intl@2.6.2
Updatedintl-messageformat@10.2.4