react-intl 6.4.2 → 6.4.3
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 +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/src/components/createFormattedComponent.d.ts +0 -1
- package/lib/src/components/dateTimeRange.d.ts +0 -1
- package/lib/src/components/injectIntl.d.ts +4 -1
- package/lib/src/components/injectIntl.js +1 -1
- package/lib/src/components/message.d.ts +1 -2
- package/lib/src/components/plural.d.ts +0 -1
- package/lib/src/components/provider.d.ts +0 -1
- package/lib/src/components/relative.d.ts +0 -1
- package/lib/src/components/useIntl.d.ts +0 -1
- package/lib/src/types.d.ts +0 -1
- package/lib/src/utils.d.ts +0 -1
- package/package.json +9 -9
- package/react-intl.iife.js +54 -54
- package/src/components/createFormattedComponent.d.ts +0 -1
- package/src/components/dateTimeRange.d.ts +0 -1
- package/src/components/injectIntl.d.ts +4 -1
- package/src/components/injectIntl.js +1 -1
- package/src/components/message.d.ts +1 -2
- package/src/components/plural.d.ts +0 -1
- package/src/components/provider.d.ts +0 -1
- package/src/components/relative.d.ts +0 -1
- package/src/components/useIntl.d.ts +0 -1
- package/src/types.d.ts +0 -1
- package/src/utils.d.ts +0 -1
package/index.d.ts
CHANGED
|
@@ -44,4 +44,3 @@ export declare const FormattedTimeParts: React.FC<FormatDateOptions & {
|
|
|
44
44
|
export { FormattedNumberParts, FormattedListParts, } from './src/components/createFormattedComponent';
|
|
45
45
|
export type { MessageFormatElement } from '@formatjs/icu-messageformat-parser';
|
|
46
46
|
export type { PrimitiveType } from 'intl-messageformat';
|
|
47
|
-
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts
CHANGED
|
@@ -44,4 +44,3 @@ export declare const FormattedTimeParts: React.FC<FormatDateOptions & {
|
|
|
44
44
|
export { FormattedNumberParts, FormattedListParts, } from './src/components/createFormattedComponent';
|
|
45
45
|
export type { MessageFormatElement } from '@formatjs/icu-messageformat-parser';
|
|
46
46
|
export type { PrimitiveType } from 'intl-messageformat';
|
|
47
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,6 +2,10 @@ import * as React from 'react';
|
|
|
2
2
|
import { IntlShape } from '../types';
|
|
3
3
|
declare global {
|
|
4
4
|
interface Window {
|
|
5
|
+
/**
|
|
6
|
+
* Set this to `true` prior to mounting to bypass using a globally-exposed context.
|
|
7
|
+
*/
|
|
8
|
+
__REACT_INTL_BYPASS_GLOBAL_CONTEXT__: boolean | undefined;
|
|
5
9
|
__REACT_INTL_CONTEXT__: React.Context<IntlShape> | undefined;
|
|
6
10
|
}
|
|
7
11
|
}
|
|
@@ -33,4 +37,3 @@ export default function injectIntl<IntlPropName extends string = 'intl', P exten
|
|
|
33
37
|
export default function injectIntl<IntlPropName extends string = 'intl', P extends WrappedComponentProps<IntlPropName> = WrappedComponentProps<any>, T extends React.ComponentType<P> = any>(WrappedComponent: React.ComponentType<P>, options?: Opts<IntlPropName, true>): React.ForwardRefExoticComponent<React.PropsWithoutRef<WithIntlProps<React.PropsWithChildren<P>>> & React.RefAttributes<T>> & {
|
|
34
38
|
WrappedComponent: React.ComponentType<P>;
|
|
35
39
|
};
|
|
36
|
-
//# sourceMappingURL=injectIntl.d.ts.map
|
|
@@ -7,7 +7,7 @@ function getDisplayName(Component) {
|
|
|
7
7
|
}
|
|
8
8
|
// This is primarily dealing with packaging systems where multiple copies of react-intl
|
|
9
9
|
// might exist
|
|
10
|
-
var IntlContext = typeof window !== 'undefined'
|
|
10
|
+
var IntlContext = typeof window !== 'undefined' && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__
|
|
11
11
|
? window.__REACT_INTL_CONTEXT__ ||
|
|
12
12
|
(window.__REACT_INTL_CONTEXT__ = React.createContext(null))
|
|
13
13
|
: React.createContext(null);
|
|
@@ -7,6 +7,5 @@ export interface Props<V extends Record<string, any> = Record<string, React.Reac
|
|
|
7
7
|
children?(nodes: React.ReactNode[]): React.ReactElement | null;
|
|
8
8
|
ignoreTag?: IntlMessageFormatOptions['ignoreTag'];
|
|
9
9
|
}
|
|
10
|
-
declare const MemoizedFormattedMessage: React.NamedExoticComponent<Props<Record<string, string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal |
|
|
10
|
+
declare const MemoizedFormattedMessage: React.NamedExoticComponent<Props<Record<string, string | number | boolean | Date | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal | FormatXMLElementFn<React.ReactNode, React.ReactNode> | null | undefined>>>;
|
|
11
11
|
export default MemoizedFormattedMessage;
|
|
12
|
-
//# sourceMappingURL=message.d.ts.map
|
package/lib/src/types.d.ts
CHANGED
package/lib/src/utils.d.ts
CHANGED
|
@@ -11,4 +11,3 @@ export declare const DEFAULT_INTL_CONFIG: Pick<ResolvedIntlConfig, 'fallbackOnEm
|
|
|
11
11
|
*/
|
|
12
12
|
export declare function assignUniqueKeysToParts(formatXMLElementFn: FormatXMLElementFn<React.ReactNode>): FormatXMLElementFn<React.ReactNode>;
|
|
13
13
|
export declare function shallowEqual<T extends Record<string, unknown> = Record<string, unknown>>(objA?: T, objB?: T): boolean;
|
|
14
|
-
//# sourceMappingURL=utils.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-intl",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.3",
|
|
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,20 +128,20 @@
|
|
|
128
128
|
"types": "index.d.ts",
|
|
129
129
|
"sideEffects": false,
|
|
130
130
|
"dependencies": {
|
|
131
|
-
"@formatjs/ecma402-abstract": "1.
|
|
132
|
-
"@formatjs/icu-messageformat-parser": "2.
|
|
133
|
-
"@formatjs/intl": "2.
|
|
134
|
-
"@formatjs/intl-displaynames": "6.
|
|
135
|
-
"@formatjs/intl-listformat": "7.
|
|
131
|
+
"@formatjs/ecma402-abstract": "1.16.0",
|
|
132
|
+
"@formatjs/icu-messageformat-parser": "2.5.0",
|
|
133
|
+
"@formatjs/intl": "2.8.0",
|
|
134
|
+
"@formatjs/intl-displaynames": "6.4.0",
|
|
135
|
+
"@formatjs/intl-listformat": "7.3.0",
|
|
136
136
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
137
137
|
"@types/react": "16 || 17 || 18",
|
|
138
138
|
"hoist-non-react-statics": "^3.3.2",
|
|
139
|
-
"intl-messageformat": "10.
|
|
139
|
+
"intl-messageformat": "10.4.0",
|
|
140
140
|
"tslib": "^2.4.0"
|
|
141
141
|
},
|
|
142
142
|
"devDependencies": {
|
|
143
|
-
"@formatjs/intl-numberformat": "8.
|
|
144
|
-
"@formatjs/intl-relativetimeformat": "11.2.
|
|
143
|
+
"@formatjs/intl-numberformat": "8.6.0",
|
|
144
|
+
"@formatjs/intl-relativetimeformat": "11.2.3"
|
|
145
145
|
},
|
|
146
146
|
"peerDependencies": {
|
|
147
147
|
"react": "^16.6.0 || 17 || 18",
|
package/react-intl.iife.js
CHANGED
|
@@ -37,9 +37,9 @@ var ReactIntl = (() => {
|
|
|
37
37
|
));
|
|
38
38
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
39
39
|
|
|
40
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
40
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
|
|
41
41
|
var require_react_is_development = __commonJS({
|
|
42
|
-
"../../../../../../../../execroot/formatjs/bazel-out/
|
|
42
|
+
"../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(exports) {
|
|
43
43
|
"use strict";
|
|
44
44
|
if (true) {
|
|
45
45
|
(function() {
|
|
@@ -192,9 +192,9 @@ var ReactIntl = (() => {
|
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
194
|
|
|
195
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
195
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/index.js
|
|
196
196
|
var require_react_is = __commonJS({
|
|
197
|
-
"../../../../../../../../execroot/formatjs/bazel-out/
|
|
197
|
+
"../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/index.js"(exports, module) {
|
|
198
198
|
"use strict";
|
|
199
199
|
if (false) {
|
|
200
200
|
module.exports = null;
|
|
@@ -204,9 +204,9 @@ var ReactIntl = (() => {
|
|
|
204
204
|
}
|
|
205
205
|
});
|
|
206
206
|
|
|
207
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
207
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
|
208
208
|
var require_hoist_non_react_statics_cjs = __commonJS({
|
|
209
|
-
"../../../../../../../../execroot/formatjs/bazel-out/
|
|
209
|
+
"../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
|
|
210
210
|
"use strict";
|
|
211
211
|
var reactIs = require_react_is();
|
|
212
212
|
var REACT_STATICS = {
|
|
@@ -292,7 +292,7 @@ var ReactIntl = (() => {
|
|
|
292
292
|
}
|
|
293
293
|
});
|
|
294
294
|
|
|
295
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
295
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/index.js
|
|
296
296
|
var lib_exports = {};
|
|
297
297
|
__export(lib_exports, {
|
|
298
298
|
FormattedDate: () => FormattedDate,
|
|
@@ -326,7 +326,7 @@ var ReactIntl = (() => {
|
|
|
326
326
|
useIntl: () => useIntl
|
|
327
327
|
});
|
|
328
328
|
|
|
329
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
329
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.es6.js
|
|
330
330
|
var extendStatics = function(d, b) {
|
|
331
331
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
332
332
|
d2.__proto__ = b2;
|
|
@@ -382,27 +382,27 @@ var ReactIntl = (() => {
|
|
|
382
382
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
385
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/createFormattedComponent.js
|
|
386
386
|
var React4 = __toESM(window.React);
|
|
387
387
|
|
|
388
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
388
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/useIntl.js
|
|
389
389
|
var React3 = __toESM(window.React);
|
|
390
390
|
|
|
391
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
391
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/injectIntl.js
|
|
392
392
|
var React2 = __toESM(window.React);
|
|
393
393
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
394
394
|
|
|
395
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
395
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/utils.js
|
|
396
396
|
var React = __toESM(window.React);
|
|
397
397
|
|
|
398
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
398
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
|
|
399
399
|
var MINUTES_PER_HOUR = 60;
|
|
400
400
|
var SECONDS_PER_MINUTE = 60;
|
|
401
401
|
var MS_PER_SECOND = 1e3;
|
|
402
402
|
var MS_PER_MINUTE = MS_PER_SECOND * SECONDS_PER_MINUTE;
|
|
403
403
|
var MS_PER_HOUR = MS_PER_MINUTE * MINUTES_PER_HOUR;
|
|
404
404
|
|
|
405
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
405
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
|
|
406
406
|
var SANCTIONED_UNITS = [
|
|
407
407
|
"angle-degree",
|
|
408
408
|
"area-acre",
|
|
@@ -453,7 +453,7 @@ var ReactIntl = (() => {
|
|
|
453
453
|
}
|
|
454
454
|
var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
|
|
455
455
|
|
|
456
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
456
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
|
|
457
457
|
function invariant(condition, message, Err) {
|
|
458
458
|
if (Err === void 0) {
|
|
459
459
|
Err = Error;
|
|
@@ -463,14 +463,14 @@ var ReactIntl = (() => {
|
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
|
|
466
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
466
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
|
|
467
467
|
var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;
|
|
468
468
|
|
|
469
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
469
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts.js
|
|
470
470
|
var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
|
|
471
471
|
var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
|
|
472
472
|
|
|
473
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
473
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/data.js
|
|
474
474
|
var MissingLocaleDataError = (
|
|
475
475
|
/** @class */
|
|
476
476
|
function(_super) {
|
|
@@ -484,7 +484,7 @@ var ReactIntl = (() => {
|
|
|
484
484
|
}(Error)
|
|
485
485
|
);
|
|
486
486
|
|
|
487
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
487
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/types/date-time.js
|
|
488
488
|
var RangePatternType;
|
|
489
489
|
(function(RangePatternType2) {
|
|
490
490
|
RangePatternType2["startRange"] = "startRange";
|
|
@@ -492,7 +492,7 @@ var ReactIntl = (() => {
|
|
|
492
492
|
RangePatternType2["endRange"] = "endRange";
|
|
493
493
|
})(RangePatternType || (RangePatternType = {}));
|
|
494
494
|
|
|
495
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
495
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/error.js
|
|
496
496
|
var ErrorKind;
|
|
497
497
|
(function(ErrorKind2) {
|
|
498
498
|
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
|
|
@@ -523,7 +523,7 @@ var ReactIntl = (() => {
|
|
|
523
523
|
ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
|
|
524
524
|
})(ErrorKind || (ErrorKind = {}));
|
|
525
525
|
|
|
526
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
526
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/types.js
|
|
527
527
|
var TYPE;
|
|
528
528
|
(function(TYPE2) {
|
|
529
529
|
TYPE2[TYPE2["literal"] = 0] = "literal";
|
|
@@ -575,10 +575,10 @@ var ReactIntl = (() => {
|
|
|
575
575
|
return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
578
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js
|
|
579
579
|
var SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
580
580
|
|
|
581
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
581
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js
|
|
582
582
|
var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
583
583
|
function parseDateTimeSkeleton(skeleton) {
|
|
584
584
|
var result = {};
|
|
@@ -679,10 +679,10 @@ var ReactIntl = (() => {
|
|
|
679
679
|
return result;
|
|
680
680
|
}
|
|
681
681
|
|
|
682
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
682
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js
|
|
683
683
|
var WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
684
684
|
|
|
685
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
685
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/number.js
|
|
686
686
|
function parseNumberSkeletonFromString(skeleton) {
|
|
687
687
|
if (skeleton.length === 0) {
|
|
688
688
|
throw new Error("Number skeleton cannot be empty");
|
|
@@ -948,7 +948,7 @@ var ReactIntl = (() => {
|
|
|
948
948
|
return result;
|
|
949
949
|
}
|
|
950
950
|
|
|
951
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
951
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js
|
|
952
952
|
var timeData = {
|
|
953
953
|
"001": [
|
|
954
954
|
"H",
|
|
@@ -2287,7 +2287,7 @@ var ReactIntl = (() => {
|
|
|
2287
2287
|
]
|
|
2288
2288
|
};
|
|
2289
2289
|
|
|
2290
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2290
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js
|
|
2291
2291
|
function getBestPattern(skeleton, locale) {
|
|
2292
2292
|
var skeletonCopy = "";
|
|
2293
2293
|
for (var patternPos = 0; patternPos < skeleton.length; patternPos++) {
|
|
@@ -2349,7 +2349,7 @@ var ReactIntl = (() => {
|
|
|
2349
2349
|
return hourCycles[0];
|
|
2350
2350
|
}
|
|
2351
2351
|
|
|
2352
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2352
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js
|
|
2353
2353
|
var _a;
|
|
2354
2354
|
var SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source, "*"));
|
|
2355
2355
|
var SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(SPACE_SEPARATOR_REGEX.source, "*$"));
|
|
@@ -3154,7 +3154,7 @@ var ReactIntl = (() => {
|
|
|
3154
3154
|
return c >= 33 && c <= 35 || c === 36 || c >= 37 && c <= 39 || c === 40 || c === 41 || c === 42 || c === 43 || c === 44 || c === 45 || c >= 46 && c <= 47 || c >= 58 && c <= 59 || c >= 60 && c <= 62 || c >= 63 && c <= 64 || c === 91 || c === 92 || c === 93 || c === 94 || c === 96 || c === 123 || c === 124 || c === 125 || c === 126 || c === 161 || c >= 162 && c <= 165 || c === 166 || c === 167 || c === 169 || c === 171 || c === 172 || c === 174 || c === 176 || c === 177 || c === 182 || c === 187 || c === 191 || c === 215 || c === 247 || c >= 8208 && c <= 8213 || c >= 8214 && c <= 8215 || c === 8216 || c === 8217 || c === 8218 || c >= 8219 && c <= 8220 || c === 8221 || c === 8222 || c === 8223 || c >= 8224 && c <= 8231 || c >= 8240 && c <= 8248 || c === 8249 || c === 8250 || c >= 8251 && c <= 8254 || c >= 8257 && c <= 8259 || c === 8260 || c === 8261 || c === 8262 || c >= 8263 && c <= 8273 || c === 8274 || c === 8275 || c >= 8277 && c <= 8286 || c >= 8592 && c <= 8596 || c >= 8597 && c <= 8601 || c >= 8602 && c <= 8603 || c >= 8604 && c <= 8607 || c === 8608 || c >= 8609 && c <= 8610 || c === 8611 || c >= 8612 && c <= 8613 || c === 8614 || c >= 8615 && c <= 8621 || c === 8622 || c >= 8623 && c <= 8653 || c >= 8654 && c <= 8655 || c >= 8656 && c <= 8657 || c === 8658 || c === 8659 || c === 8660 || c >= 8661 && c <= 8691 || c >= 8692 && c <= 8959 || c >= 8960 && c <= 8967 || c === 8968 || c === 8969 || c === 8970 || c === 8971 || c >= 8972 && c <= 8991 || c >= 8992 && c <= 8993 || c >= 8994 && c <= 9e3 || c === 9001 || c === 9002 || c >= 9003 && c <= 9083 || c === 9084 || c >= 9085 && c <= 9114 || c >= 9115 && c <= 9139 || c >= 9140 && c <= 9179 || c >= 9180 && c <= 9185 || c >= 9186 && c <= 9254 || c >= 9255 && c <= 9279 || c >= 9280 && c <= 9290 || c >= 9291 && c <= 9311 || c >= 9472 && c <= 9654 || c === 9655 || c >= 9656 && c <= 9664 || c === 9665 || c >= 9666 && c <= 9719 || c >= 9720 && c <= 9727 || c >= 9728 && c <= 9838 || c === 9839 || c >= 9840 && c <= 10087 || c === 10088 || c === 10089 || c === 10090 || c === 10091 || c === 10092 || c === 10093 || c === 10094 || c === 10095 || c === 10096 || c === 10097 || c === 10098 || c === 10099 || c === 10100 || c === 10101 || c >= 10132 && c <= 10175 || c >= 10176 && c <= 10180 || c === 10181 || c === 10182 || c >= 10183 && c <= 10213 || c === 10214 || c === 10215 || c === 10216 || c === 10217 || c === 10218 || c === 10219 || c === 10220 || c === 10221 || c === 10222 || c === 10223 || c >= 10224 && c <= 10239 || c >= 10240 && c <= 10495 || c >= 10496 && c <= 10626 || c === 10627 || c === 10628 || c === 10629 || c === 10630 || c === 10631 || c === 10632 || c === 10633 || c === 10634 || c === 10635 || c === 10636 || c === 10637 || c === 10638 || c === 10639 || c === 10640 || c === 10641 || c === 10642 || c === 10643 || c === 10644 || c === 10645 || c === 10646 || c === 10647 || c === 10648 || c >= 10649 && c <= 10711 || c === 10712 || c === 10713 || c === 10714 || c === 10715 || c >= 10716 && c <= 10747 || c === 10748 || c === 10749 || c >= 10750 && c <= 11007 || c >= 11008 && c <= 11055 || c >= 11056 && c <= 11076 || c >= 11077 && c <= 11078 || c >= 11079 && c <= 11084 || c >= 11085 && c <= 11123 || c >= 11124 && c <= 11125 || c >= 11126 && c <= 11157 || c === 11158 || c >= 11159 && c <= 11263 || c >= 11776 && c <= 11777 || c === 11778 || c === 11779 || c === 11780 || c === 11781 || c >= 11782 && c <= 11784 || c === 11785 || c === 11786 || c === 11787 || c === 11788 || c === 11789 || c >= 11790 && c <= 11798 || c === 11799 || c >= 11800 && c <= 11801 || c === 11802 || c === 11803 || c === 11804 || c === 11805 || c >= 11806 && c <= 11807 || c === 11808 || c === 11809 || c === 11810 || c === 11811 || c === 11812 || c === 11813 || c === 11814 || c === 11815 || c === 11816 || c === 11817 || c >= 11818 && c <= 11822 || c === 11823 || c >= 11824 && c <= 11833 || c >= 11834 && c <= 11835 || c >= 11836 && c <= 11839 || c === 11840 || c === 11841 || c === 11842 || c >= 11843 && c <= 11855 || c >= 11856 && c <= 11857 || c === 11858 || c >= 11859 && c <= 11903 || c >= 12289 && c <= 12291 || c === 12296 || c === 12297 || c === 12298 || c === 12299 || c === 12300 || c === 12301 || c === 12302 || c === 12303 || c === 12304 || c === 12305 || c >= 12306 && c <= 12307 || c === 12308 || c === 12309 || c === 12310 || c === 12311 || c === 12312 || c === 12313 || c === 12314 || c === 12315 || c === 12316 || c === 12317 || c >= 12318 && c <= 12319 || c === 12320 || c === 12336 || c === 64830 || c === 64831 || c >= 65093 && c <= 65094;
|
|
3155
3155
|
}
|
|
3156
3156
|
|
|
3157
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3157
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/index.js
|
|
3158
3158
|
function pruneLocation(els) {
|
|
3159
3159
|
els.forEach(function(el) {
|
|
3160
3160
|
delete el.location;
|
|
@@ -3190,7 +3190,7 @@ var ReactIntl = (() => {
|
|
|
3190
3190
|
return result.val;
|
|
3191
3191
|
}
|
|
3192
3192
|
|
|
3193
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3193
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/lib/index.js
|
|
3194
3194
|
function memoize(fn, options) {
|
|
3195
3195
|
var cache = options && options.cache ? options.cache : cacheDefault;
|
|
3196
3196
|
var serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
@@ -3257,7 +3257,7 @@ var ReactIntl = (() => {
|
|
|
3257
3257
|
monadic: strategyMonadic
|
|
3258
3258
|
};
|
|
3259
3259
|
|
|
3260
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3260
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/intl-messageformat@0.0.0/node_modules/intl-messageformat/lib/src/error.js
|
|
3261
3261
|
var ErrorCode;
|
|
3262
3262
|
(function(ErrorCode2) {
|
|
3263
3263
|
ErrorCode2["MISSING_VALUE"] = "MISSING_VALUE";
|
|
@@ -3311,7 +3311,7 @@ var ReactIntl = (() => {
|
|
|
3311
3311
|
}(FormatError)
|
|
3312
3312
|
);
|
|
3313
3313
|
|
|
3314
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3314
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/intl-messageformat@0.0.0/node_modules/intl-messageformat/lib/src/formatters.js
|
|
3315
3315
|
var PART_TYPE;
|
|
3316
3316
|
(function(PART_TYPE2) {
|
|
3317
3317
|
PART_TYPE2[PART_TYPE2["literal"] = 0] = "literal";
|
|
@@ -3451,7 +3451,7 @@ var ReactIntl = (() => {
|
|
|
3451
3451
|
return mergeLiteral(result);
|
|
3452
3452
|
}
|
|
3453
3453
|
|
|
3454
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3454
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/intl-messageformat@0.0.0/node_modules/intl-messageformat/lib/src/core.js
|
|
3455
3455
|
function mergeConfig(c1, c2) {
|
|
3456
3456
|
if (!c2) {
|
|
3457
3457
|
return c1;
|
|
@@ -3674,7 +3674,7 @@ var ReactIntl = (() => {
|
|
|
3674
3674
|
}()
|
|
3675
3675
|
);
|
|
3676
3676
|
|
|
3677
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3677
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/error.js
|
|
3678
3678
|
var IntlErrorCode;
|
|
3679
3679
|
(function(IntlErrorCode2) {
|
|
3680
3680
|
IntlErrorCode2["FORMAT_ERROR"] = "FORMAT_ERROR";
|
|
@@ -3771,7 +3771,7 @@ var ReactIntl = (() => {
|
|
|
3771
3771
|
}(IntlError)
|
|
3772
3772
|
);
|
|
3773
3773
|
|
|
3774
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3774
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/utils.js
|
|
3775
3775
|
function filterProps(props, allowlist, defaults) {
|
|
3776
3776
|
if (defaults === void 0) {
|
|
3777
3777
|
defaults = {};
|
|
@@ -3928,7 +3928,7 @@ var ReactIntl = (() => {
|
|
|
3928
3928
|
onError(new UnsupportedFormatterError("No ".concat(type, " format named: ").concat(name)));
|
|
3929
3929
|
}
|
|
3930
3930
|
|
|
3931
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3931
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/message.js
|
|
3932
3932
|
function setTimeZoneInOptions(opts, timeZone) {
|
|
3933
3933
|
return Object.keys(opts).reduce(function(all, k) {
|
|
3934
3934
|
all[k] = __assign({ timeZone }, opts[k]);
|
|
@@ -4013,7 +4013,7 @@ var ReactIntl = (() => {
|
|
|
4013
4013
|
return id;
|
|
4014
4014
|
};
|
|
4015
4015
|
|
|
4016
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4016
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/dateTime.js
|
|
4017
4017
|
var DATE_TIME_FORMAT_OPTIONS = [
|
|
4018
4018
|
"formatMatcher",
|
|
4019
4019
|
"timeZone",
|
|
@@ -4120,7 +4120,7 @@ var ReactIntl = (() => {
|
|
|
4120
4120
|
return [];
|
|
4121
4121
|
}
|
|
4122
4122
|
|
|
4123
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4123
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/displayName.js
|
|
4124
4124
|
var DISPLAY_NAMES_OPTONS = [
|
|
4125
4125
|
"style",
|
|
4126
4126
|
"type",
|
|
@@ -4141,7 +4141,7 @@ var ReactIntl = (() => {
|
|
|
4141
4141
|
}
|
|
4142
4142
|
}
|
|
4143
4143
|
|
|
4144
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4144
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/list.js
|
|
4145
4145
|
var LIST_FORMAT_OPTIONS = [
|
|
4146
4146
|
"type",
|
|
4147
4147
|
"style"
|
|
@@ -4196,7 +4196,7 @@ var ReactIntl = (() => {
|
|
|
4196
4196
|
return values;
|
|
4197
4197
|
}
|
|
4198
4198
|
|
|
4199
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4199
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/plural.js
|
|
4200
4200
|
var PLURAL_FORMAT_OPTIONS = ["type"];
|
|
4201
4201
|
function formatPlural(_a2, getPluralRules, value, options) {
|
|
4202
4202
|
var locale = _a2.locale, onError = _a2.onError;
|
|
@@ -4215,7 +4215,7 @@ var ReactIntl = (() => {
|
|
|
4215
4215
|
return "other";
|
|
4216
4216
|
}
|
|
4217
4217
|
|
|
4218
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4218
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/relativeTime.js
|
|
4219
4219
|
var RELATIVE_TIME_FORMAT_OPTIONS = ["numeric", "style"];
|
|
4220
4220
|
function getFormatter2(_a2, getRelativeTimeFormat, options) {
|
|
4221
4221
|
var locale = _a2.locale, formats = _a2.formats, onError = _a2.onError;
|
|
@@ -4246,7 +4246,7 @@ var ReactIntl = (() => {
|
|
|
4246
4246
|
return String(value);
|
|
4247
4247
|
}
|
|
4248
4248
|
|
|
4249
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4249
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/number.js
|
|
4250
4250
|
var NUMBER_FORMAT_OPTIONS = [
|
|
4251
4251
|
"style",
|
|
4252
4252
|
"currency",
|
|
@@ -4302,7 +4302,7 @@ var ReactIntl = (() => {
|
|
|
4302
4302
|
return [];
|
|
4303
4303
|
}
|
|
4304
4304
|
|
|
4305
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4305
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/create-intl.js
|
|
4306
4306
|
function messagesContainString(messages) {
|
|
4307
4307
|
var firstMessage = messages ? messages[Object.keys(messages)[0]] : void 0;
|
|
4308
4308
|
return typeof firstMessage === "string";
|
|
@@ -4348,7 +4348,7 @@ var ReactIntl = (() => {
|
|
|
4348
4348
|
});
|
|
4349
4349
|
}
|
|
4350
4350
|
|
|
4351
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4351
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/utils.js
|
|
4352
4352
|
function invariantIntlContext(intl) {
|
|
4353
4353
|
invariant(intl, "[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.");
|
|
4354
4354
|
}
|
|
@@ -4380,11 +4380,11 @@ var ReactIntl = (() => {
|
|
|
4380
4380
|
return true;
|
|
4381
4381
|
}
|
|
4382
4382
|
|
|
4383
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4383
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/injectIntl.js
|
|
4384
4384
|
function getDisplayName(Component) {
|
|
4385
4385
|
return Component.displayName || Component.name || "Component";
|
|
4386
4386
|
}
|
|
4387
|
-
var IntlContext = typeof window !== "undefined" ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = React2.createContext(null)) : React2.createContext(null);
|
|
4387
|
+
var IntlContext = typeof window !== "undefined" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = React2.createContext(null)) : React2.createContext(null);
|
|
4388
4388
|
var IntlConsumer = IntlContext.Consumer;
|
|
4389
4389
|
var IntlProvider = IntlContext.Provider;
|
|
4390
4390
|
var Provider = IntlProvider;
|
|
@@ -4411,14 +4411,14 @@ var ReactIntl = (() => {
|
|
|
4411
4411
|
return (0, import_hoist_non_react_statics.default)(WithIntl, WrappedComponent);
|
|
4412
4412
|
}
|
|
4413
4413
|
|
|
4414
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4414
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/useIntl.js
|
|
4415
4415
|
function useIntl() {
|
|
4416
4416
|
var intl = React3.useContext(Context);
|
|
4417
4417
|
invariantIntlContext(intl);
|
|
4418
4418
|
return intl;
|
|
4419
4419
|
}
|
|
4420
4420
|
|
|
4421
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4421
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/createFormattedComponent.js
|
|
4422
4422
|
var DisplayName;
|
|
4423
4423
|
(function(DisplayName2) {
|
|
4424
4424
|
DisplayName2["formatDate"] = "FormattedDate";
|
|
@@ -4475,7 +4475,7 @@ var ReactIntl = (() => {
|
|
|
4475
4475
|
return Component;
|
|
4476
4476
|
}
|
|
4477
4477
|
|
|
4478
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4478
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/provider.js
|
|
4479
4479
|
var React5 = __toESM(window.React);
|
|
4480
4480
|
function processIntlConfig(config) {
|
|
4481
4481
|
return {
|
|
@@ -4578,7 +4578,7 @@ var ReactIntl = (() => {
|
|
|
4578
4578
|
);
|
|
4579
4579
|
var provider_default = IntlProvider2;
|
|
4580
4580
|
|
|
4581
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4581
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/relative.js
|
|
4582
4582
|
var React6 = __toESM(window.React);
|
|
4583
4583
|
var MINUTE = 60;
|
|
4584
4584
|
var HOUR = 60 * 60;
|
|
@@ -4697,7 +4697,7 @@ var ReactIntl = (() => {
|
|
|
4697
4697
|
};
|
|
4698
4698
|
var relative_default = FormattedRelativeTime;
|
|
4699
4699
|
|
|
4700
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4700
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/plural.js
|
|
4701
4701
|
var React7 = __toESM(window.React);
|
|
4702
4702
|
var FormattedPlural = function(props) {
|
|
4703
4703
|
var _a2 = useIntl(), formatPlural2 = _a2.formatPlural, Text = _a2.textComponent;
|
|
@@ -4718,7 +4718,7 @@ var ReactIntl = (() => {
|
|
|
4718
4718
|
FormattedPlural.displayName = "FormattedPlural";
|
|
4719
4719
|
var plural_default = FormattedPlural;
|
|
4720
4720
|
|
|
4721
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4721
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/message.js
|
|
4722
4722
|
var React8 = __toESM(window.React);
|
|
4723
4723
|
function areEqual(prevProps, nextProps) {
|
|
4724
4724
|
var values = prevProps.values, otherProps = __rest(prevProps, ["values"]);
|
|
@@ -4746,7 +4746,7 @@ var ReactIntl = (() => {
|
|
|
4746
4746
|
MemoizedFormattedMessage.displayName = "MemoizedFormattedMessage";
|
|
4747
4747
|
var message_default = MemoizedFormattedMessage;
|
|
4748
4748
|
|
|
4749
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4749
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/dateTimeRange.js
|
|
4750
4750
|
var React9 = __toESM(window.React);
|
|
4751
4751
|
var FormattedDateTimeRange = function(props) {
|
|
4752
4752
|
var intl = useIntl();
|
|
@@ -4761,7 +4761,7 @@ var ReactIntl = (() => {
|
|
|
4761
4761
|
FormattedDateTimeRange.displayName = "FormattedDateTimeRange";
|
|
4762
4762
|
var dateTimeRange_default = FormattedDateTimeRange;
|
|
4763
4763
|
|
|
4764
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
4764
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/index.js
|
|
4765
4765
|
function defineMessages(msgs) {
|
|
4766
4766
|
return msgs;
|
|
4767
4767
|
}
|
|
@@ -2,6 +2,10 @@ import * as React from 'react';
|
|
|
2
2
|
import { IntlShape } from '../types';
|
|
3
3
|
declare global {
|
|
4
4
|
interface Window {
|
|
5
|
+
/**
|
|
6
|
+
* Set this to `true` prior to mounting to bypass using a globally-exposed context.
|
|
7
|
+
*/
|
|
8
|
+
__REACT_INTL_BYPASS_GLOBAL_CONTEXT__: boolean | undefined;
|
|
5
9
|
__REACT_INTL_CONTEXT__: React.Context<IntlShape> | undefined;
|
|
6
10
|
}
|
|
7
11
|
}
|
|
@@ -33,4 +37,3 @@ export default function injectIntl<IntlPropName extends string = 'intl', P exten
|
|
|
33
37
|
export default function injectIntl<IntlPropName extends string = 'intl', P extends WrappedComponentProps<IntlPropName> = WrappedComponentProps<any>, T extends React.ComponentType<P> = any>(WrappedComponent: React.ComponentType<P>, options?: Opts<IntlPropName, true>): React.ForwardRefExoticComponent<React.PropsWithoutRef<WithIntlProps<React.PropsWithChildren<P>>> & React.RefAttributes<T>> & {
|
|
34
38
|
WrappedComponent: React.ComponentType<P>;
|
|
35
39
|
};
|
|
36
|
-
//# sourceMappingURL=injectIntl.d.ts.map
|
|
@@ -10,7 +10,7 @@ function getDisplayName(Component) {
|
|
|
10
10
|
}
|
|
11
11
|
// This is primarily dealing with packaging systems where multiple copies of react-intl
|
|
12
12
|
// might exist
|
|
13
|
-
var IntlContext = typeof window !== 'undefined'
|
|
13
|
+
var IntlContext = typeof window !== 'undefined' && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__
|
|
14
14
|
? window.__REACT_INTL_CONTEXT__ ||
|
|
15
15
|
(window.__REACT_INTL_CONTEXT__ = React.createContext(null))
|
|
16
16
|
: React.createContext(null);
|
|
@@ -7,6 +7,5 @@ export interface Props<V extends Record<string, any> = Record<string, React.Reac
|
|
|
7
7
|
children?(nodes: React.ReactNode[]): React.ReactElement | null;
|
|
8
8
|
ignoreTag?: IntlMessageFormatOptions['ignoreTag'];
|
|
9
9
|
}
|
|
10
|
-
declare const MemoizedFormattedMessage: React.NamedExoticComponent<Props<Record<string, string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal |
|
|
10
|
+
declare const MemoizedFormattedMessage: React.NamedExoticComponent<Props<Record<string, string | number | boolean | Date | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal | FormatXMLElementFn<React.ReactNode, React.ReactNode> | null | undefined>>>;
|
|
11
11
|
export default MemoizedFormattedMessage;
|
|
12
|
-
//# sourceMappingURL=message.d.ts.map
|
package/src/types.d.ts
CHANGED
package/src/utils.d.ts
CHANGED
|
@@ -11,4 +11,3 @@ export declare const DEFAULT_INTL_CONFIG: Pick<ResolvedIntlConfig, 'fallbackOnEm
|
|
|
11
11
|
*/
|
|
12
12
|
export declare function assignUniqueKeysToParts(formatXMLElementFn: FormatXMLElementFn<React.ReactNode>): FormatXMLElementFn<React.ReactNode>;
|
|
13
13
|
export declare function shallowEqual<T extends Record<string, unknown> = Record<string, unknown>>(objA?: T, objB?: T): boolean;
|
|
14
|
-
//# sourceMappingURL=utils.d.ts.map
|