react-intl 4.7.1 → 4.7.5

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/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.7.5](https://github.com/formatjs/formatjs/compare/react-intl@4.7.4...react-intl@4.7.5) (2020-06-26)
7
+
8
+ **Note:** Version bump only for package react-intl
9
+
10
+
11
+
12
+
13
+
14
+ ## [4.7.4](https://github.com/formatjs/formatjs/compare/react-intl@4.7.3...react-intl@4.7.4) (2020-06-26)
15
+
16
+ **Note:** Version bump only for package react-intl
17
+
18
+
19
+
20
+
21
+
22
+ ## [4.7.3](https://github.com/formatjs/formatjs/compare/react-intl@4.7.2...react-intl@4.7.3) (2020-06-26)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **react-intl:** fix d.ts rollup ([#1741](https://github.com/formatjs/formatjs/issues/1741)) ([cb95b4a](https://github.com/formatjs/formatjs/commit/cb95b4ac230f3597fc3937e50aa5dea0107727b0))
28
+
29
+
30
+
31
+
32
+
33
+ ## [4.7.2](https://github.com/formatjs/formatjs/compare/react-intl@4.7.1...react-intl@4.7.2) (2020-06-23)
34
+
35
+ **Note:** Version bump only for package react-intl
36
+
37
+
38
+
39
+
40
+
6
41
  ## [4.7.1](https://github.com/formatjs/formatjs/compare/react-intl@4.7.0...react-intl@4.7.1) (2020-06-23)
7
42
 
8
43
  **Note:** Version bump only for package react-intl
@@ -12,8 +12,8 @@ interface Props extends FormatPluralOptions {
12
12
  many?: React.ReactNode;
13
13
  children?(value: React.ReactNode): React.ReactElement | null;
14
14
  }
15
- declare const _default: React.FC<WithIntlProps<Props>> & {
15
+ declare const FormattedPluralWithIntl: React.FC<WithIntlProps<Props>> & {
16
16
  WrappedComponent: React.ComponentType<Props>;
17
17
  };
18
- export default _default;
18
+ export default FormattedPluralWithIntl;
19
19
  //# sourceMappingURL=plural.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plural.d.ts","sourceRoot":"","sources":["../../src/components/plural.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAiB,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AACrD,OAAO,EAAC,SAAS,EAAE,mBAAmB,EAAC,MAAM,UAAU,CAAC;AAExD,UAAU,KAAM,SAAQ,mBAAmB;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;CAC9D;;;;AA6BD,wBAEE"}
1
+ {"version":3,"file":"plural.d.ts","sourceRoot":"","sources":["../../src/components/plural.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAiB,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AACrD,OAAO,EAAC,SAAS,EAAE,mBAAmB,EAAC,MAAM,UAAU,CAAC;AAExD,UAAU,KAAM,SAAQ,mBAAmB;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;CAC9D;AA+BD,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,GAAG;IAC9D,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;CAClB,CAAC;AAE9B,eAAe,uBAAuB,CAAC"}
@@ -24,5 +24,8 @@ FormattedPlural.defaultProps = {
24
24
  type: 'cardinal',
25
25
  };
26
26
  FormattedPlural.displayName = 'FormattedPlural';
27
- exports.default = injectIntl_1.default(FormattedPlural);
27
+ // Explicitly annotate type here to workaround API extractor's inability to handle `import('./someModule')`
28
+ // type annotations when rolling up DTS file.
29
+ var FormattedPluralWithIntl = injectIntl_1.default(FormattedPlural);
30
+ exports.default = FormattedPluralWithIntl;
28
31
  //# sourceMappingURL=plural.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plural.js","sourceRoot":"","sources":["../../src/components/plural.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;AAEH,6BAA+B;AAC/B,2CAAqD;AAerD,IAAM,eAAe,GAAoB,UAAA,KAAK;IAE1C,IAAA,mBAAK,EACL,mBAAK,EACL,yBAAQ,EACR,eAAyC,EAAlC,8BAAY,EAAE,uBAAoB,CACjC;IAEV,IAAM,cAAc,GAAG,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAClD,IAAM,eAAe,GAAG,KAAK,CAAC,cAAuB,CAAC,IAAI,KAAK,CAAC;IAEhE,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;QAClC,OAAO,QAAQ,CAAC,eAAe,CAAC,CAAC;KAClC;IACD,IAAI,IAAI,EAAE;QACR,OAAO,oBAAC,IAAI,QAAE,eAAe,CAAQ,CAAC;KACvC;IACD,+DAA+D;IAC/D,OAAO,eAAsB,CAAC;AAChC,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC7B,IAAI,EAAE,UAAU;CACjB,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEhD,kBAAe,oBAAQ,CAAC,eAAe,CAEtC,CAAC"}
1
+ {"version":3,"file":"plural.js","sourceRoot":"","sources":["../../src/components/plural.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;AAEH,6BAA+B;AAC/B,2CAAqD;AAerD,IAAM,eAAe,GAAoB,UAAA,KAAK;IAE1C,IAAA,mBAAK,EACL,mBAAK,EACL,yBAAQ,EACR,eAAyC,EAAlC,8BAAY,EAAE,uBAAoB,CACjC;IAEV,IAAM,cAAc,GAAG,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAClD,IAAM,eAAe,GAAG,KAAK,CAAC,cAAuB,CAAC,IAAI,KAAK,CAAC;IAEhE,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;QAClC,OAAO,QAAQ,CAAC,eAAe,CAAC,CAAC;KAClC;IACD,IAAI,IAAI,EAAE;QACR,OAAO,oBAAC,IAAI,QAAE,eAAe,CAAQ,CAAC;KACvC;IACD,+DAA+D;IAC/D,OAAO,eAAsB,CAAC;AAChC,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC7B,IAAI,EAAE,UAAU;CACjB,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEhD,2GAA2G;AAC3G,6CAA6C;AAC7C,IAAM,uBAAuB,GAEzB,oBAAQ,CAAC,eAAe,CAAC,CAAC;AAE9B,kBAAe,uBAAuB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  export * from './types';
3
3
  export declare function defineMessages<T, U extends Record<string, T>>(msgs: U): U;
4
4
  export declare function defineMessage<T>(msg: T): T;
5
- import { CustomFormatConfig } from './types';
5
+ import { CustomFormatConfig, FormatDateOptions } from './types';
6
6
  import { NumberFormatOptions } from '@formatjs/intl-numberformat';
7
7
  import { IntlListFormatOptions } from '@formatjs/intl-listformat';
8
8
  import { DisplayNamesOptions } from '@formatjs/intl-displaynames/lib';
@@ -25,13 +25,13 @@ export declare const FormattedList: React.FC<IntlListFormatOptions & {
25
25
  export declare const FormattedDisplayName: React.FC<DisplayNamesOptions & {
26
26
  value: string | number | object;
27
27
  }>;
28
- export declare const FormattedDateParts: React.FC<DateTimeFormatOptions & CustomFormatConfig & {
29
- value: string | number | Date | undefined;
30
- children(val: Intl.DateTimeFormatPart[]): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | null;
28
+ export declare const FormattedDateParts: React.FC<FormatDateOptions & {
29
+ value: Parameters<Intl.DateTimeFormat['format']>[0] | string;
30
+ children(val: Intl.DateTimeFormatPart[]): React.ReactElement | null;
31
31
  }>;
32
- export declare const FormattedTimeParts: React.FC<DateTimeFormatOptions & CustomFormatConfig & {
33
- value: string | number | Date | undefined;
34
- children(val: Intl.DateTimeFormatPart[]): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | null;
32
+ export declare const FormattedTimeParts: React.FC<FormatDateOptions & {
33
+ value: Parameters<Intl.DateTimeFormat['format']>[0] | string;
34
+ children(val: Intl.DateTimeFormatPart[]): React.ReactElement | null;
35
35
  }>;
36
36
  export { FormattedNumberParts } from './components/createFormattedComponent';
37
37
  export { default as FormattedRelativeTime } from './components/relative';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAA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;AAC9B,QAAA,aAAa,GAKtB,mDAAwB,CAAC,YAAY,CAAC,CAAC;AAC9B,QAAA,eAAe,GAKxB,mDAAwB,CAAC,cAAc,CAAC,CAAC;AAChC,QAAA,aAAa,GAItB,mDAAwB,CAAC,YAAY,CAAC,CAAC;AAC9B,QAAA,oBAAoB,GAI7B,mDAAwB,CAAC,mBAAmB,CAAC,CAAC;AACrC,QAAA,kBAAkB,GAK3B,gEAAqC,CAAC,YAAY,CAAC,CAAC;AAC3C,QAAA,kBAAkB,GAK3B,gEAAqC,CAAC,YAAY,CAAC,CAAC;AAExD,kFAA2E;AAAnE,0DAAA,oBAAoB,CAAA;AAC5B,kDAAuE;AAA/D,2CAAA,OAAO,CAAyB;AACxC,8CAA+D;AAAvD,mCAAA,OAAO,CAAmB;AAClC,gDAAiE;AAAzD,qCAAA,OAAO,CAAoB;AACnC,iCAAwC;AAAhC,kCAAA,eAAe,CAAA;AACvB,6BAAwB"}
@@ -68,9 +68,9 @@ export const FormattedDate: React_2.FC<DateTimeFormatOptions & CustomFormatConfi
68
68
  }>;
69
69
 
70
70
  // @public (undocumented)
71
- export const FormattedDateParts: React_2.FC<DateTimeFormatOptions & CustomFormatConfig & {
72
- value: string | number | Date | undefined;
73
- children(val: Intl.DateTimeFormatPart[]): React_2.ReactElement<any, string | ((props: any) => React_2.ReactElement<any, string | any | (new (props: any) => React_2.Component<any, any, any>)> | null) | (new (props: any) => React_2.Component<any, any, any>)> | null;
71
+ export const FormattedDateParts: React_2.FC<FormatDateOptions & {
72
+ value: Parameters<Intl.DateTimeFormat['format']>[0] | string;
73
+ children(val: Intl.DateTimeFormatPart[]): React_2.ReactElement | null;
74
74
  }>;
75
75
 
76
76
  // @public (undocumented)
@@ -151,9 +151,9 @@ export const FormattedTime: React_2.FC<DateTimeFormatOptions & CustomFormatConfi
151
151
  }>;
152
152
 
153
153
  // @public (undocumented)
154
- export const FormattedTimeParts: React_2.FC<DateTimeFormatOptions & CustomFormatConfig & {
155
- value: string | number | Date | undefined;
156
- children(val: Intl.DateTimeFormatPart[]): React_2.ReactElement<any, string | ((props: any) => React_2.ReactElement<any, string | any | (new (props: any) => React_2.Component<any, any, any>)> | null) | (new (props: any) => React_2.Component<any, any, any>)> | null;
154
+ export const FormattedTimeParts: React_2.FC<FormatDateOptions & {
155
+ value: Parameters<Intl.DateTimeFormat['format']>[0] | string;
156
+ children(val: Intl.DateTimeFormatPart[]): React_2.ReactElement | null;
157
157
  }>;
158
158
 
159
159
  // @public (undocumented)
@@ -180,9 +180,9 @@ export declare const FormattedDate: React_2.FC<DateTimeFormatOptions & CustomFor
180
180
  value: string | number | Date | undefined;
181
181
  }>;
182
182
 
183
- export declare const FormattedDateParts: React_2.FC<DateTimeFormatOptions & CustomFormatConfig & {
184
- value: string | number | Date | undefined;
185
- children(val: Intl.DateTimeFormatPart[]): React_2.ReactElement<any, string | ((props: any) => React_2.ReactElement<any, string | any | (new (props: any) => React_2.Component<any, any, any>)> | null) | (new (props: any) => React_2.Component<any, any, any>)> | null;
183
+ export declare const FormattedDateParts: React_2.FC<FormatDateOptions & {
184
+ value: Parameters<Intl.DateTimeFormat['format']>[0] | string;
185
+ children(val: Intl.DateTimeFormatPart[]): React_2.ReactElement | null;
186
186
  }>;
187
187
 
188
188
  export declare const FormattedDisplayName: React_2.FC<DisplayNamesOptions & {
@@ -230,9 +230,9 @@ export declare const FormattedTime: React_2.FC<DateTimeFormatOptions & CustomFor
230
230
  value: string | number | Date | undefined;
231
231
  }>;
232
232
 
233
- export declare const FormattedTimeParts: React_2.FC<DateTimeFormatOptions & CustomFormatConfig & {
234
- value: string | number | Date | undefined;
235
- children(val: Intl.DateTimeFormatPart[]): React_2.ReactElement<any, string | ((props: any) => React_2.ReactElement<any, string | any | (new (props: any) => React_2.Component<any, any, any>)> | null) | (new (props: any) => React_2.Component<any, any, any>)> | null;
233
+ export declare const FormattedTimeParts: React_2.FC<FormatDateOptions & {
234
+ value: Parameters<Intl.DateTimeFormat['format']>[0] | string;
235
+ children(val: Intl.DateTimeFormatPart[]): React_2.ReactElement | null;
236
236
  }>;
237
237
 
238
238
  declare type Formatter = {
@@ -622,6 +622,13 @@ declare type OptionalIntlConfig = Omit<IntlConfig, keyof typeof DEFAULT_INTL_CON
622
622
 
623
623
  declare interface Options {
624
624
  formatters?: Formatters_2;
625
+ /**
626
+ * Whether to treat HTML/XML tags as string literal
627
+ * instead of parsing them as tag token.
628
+ * When this is false we only allow simple tags without
629
+ * any attributes
630
+ */
631
+ ignoreTag?: boolean;
625
632
  }
626
633
 
627
634
  declare interface Options_2 {
@@ -636,6 +643,13 @@ declare interface Options_2 {
636
643
  * Default is false
637
644
  */
638
645
  captureLocation?: boolean;
646
+ /**
647
+ * Whether to treat HTML/XML tags as string literal
648
+ * instead of parsing them as tag token.
649
+ * When this is false we only allow simple tags without
650
+ * any attributes
651
+ */
652
+ ignoreTag?: boolean;
639
653
  }
640
654
 
641
655
  declare interface Opts<IntlPropName extends string = 'intl', ForwardRef extends boolean = false> {
@@ -3833,6 +3833,7 @@
3833
3833
  // Parse string messages into an AST.
3834
3834
  this.ast = IntlMessageFormat.__parse(message, {
3835
3835
  normalizeHashtagInPlural: false,
3836
+ ignoreTag: opts === null || opts === void 0 ? void 0 : opts.ignoreTag,
3836
3837
  });
3837
3838
  }
3838
3839
  else {
@@ -5063,7 +5064,9 @@
5063
5064
  type: 'cardinal',
5064
5065
  };
5065
5066
  FormattedPlural.displayName = 'FormattedPlural';
5066
- var plural = injectIntl(FormattedPlural);
5067
+ // Explicitly annotate type here to workaround API extractor's inability to handle `import('./someModule')`
5068
+ // type annotations when rolling up DTS file.
5069
+ var FormattedPluralWithIntl = injectIntl(FormattedPlural);
5067
5070
 
5068
5071
  /*
5069
5072
  * Copyright 2015, Yahoo Inc.
@@ -5177,7 +5180,7 @@
5177
5180
  exports.FormattedMessage = FormattedMessage;
5178
5181
  exports.FormattedNumber = FormattedNumber;
5179
5182
  exports.FormattedNumberParts = FormattedNumberParts;
5180
- exports.FormattedPlural = plural;
5183
+ exports.FormattedPlural = FormattedPluralWithIntl;
5181
5184
  exports.FormattedRelativeTime = FormattedRelativeTime;
5182
5185
  exports.FormattedTime = FormattedTime;
5183
5186
  exports.FormattedTimeParts = FormattedTimeParts;