react-intl 6.7.0 → 6.7.2

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.
Files changed (2) hide show
  1. package/package.json +9 -9
  2. package/react-intl.iife.js +117 -67
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-intl",
3
- "version": "6.7.0",
3
+ "version": "6.7.2",
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",
@@ -132,16 +132,16 @@
132
132
  "@types/react": "16 || 17 || 18",
133
133
  "hoist-non-react-statics": "^3.3.2",
134
134
  "tslib": "^2.4.0",
135
- "@formatjs/ecma402-abstract": "2.0.0",
136
- "@formatjs/intl": "2.10.5",
137
- "@formatjs/intl-displaynames": "6.6.8",
138
- "@formatjs/icu-messageformat-parser": "2.7.8",
139
- "@formatjs/intl-listformat": "7.5.7",
140
- "intl-messageformat": "10.5.14"
135
+ "@formatjs/ecma402-abstract": "2.1.0",
136
+ "@formatjs/icu-messageformat-parser": "2.7.9",
137
+ "@formatjs/intl": "2.10.7",
138
+ "intl-messageformat": "10.6.0",
139
+ "@formatjs/intl-listformat": "7.5.8",
140
+ "@formatjs/intl-displaynames": "6.6.9"
141
141
  },
142
142
  "devDependencies": {
143
- "@formatjs/intl-numberformat": "8.10.3",
144
- "@formatjs/intl-relativetimeformat": "11.2.14"
143
+ "@formatjs/intl-numberformat": "8.11.0",
144
+ "@formatjs/intl-relativetimeformat": "11.2.15"
145
145
  },
146
146
  "peerDependencies": {
147
147
  "react": "^16.6.0 || 17 || 18",
@@ -449,6 +449,73 @@ var ReactIntl = (() => {
449
449
  }
450
450
  var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
451
451
 
452
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/lib/index.js
453
+ function memoize(fn, options) {
454
+ var cache = options && options.cache ? options.cache : cacheDefault;
455
+ var serializer = options && options.serializer ? options.serializer : serializerDefault;
456
+ var strategy = options && options.strategy ? options.strategy : strategyDefault;
457
+ return strategy(fn, {
458
+ cache,
459
+ serializer
460
+ });
461
+ }
462
+ function isPrimitive(value) {
463
+ return value == null || typeof value === "number" || typeof value === "boolean";
464
+ }
465
+ function monadic(fn, cache, serializer, arg) {
466
+ var cacheKey = isPrimitive(arg) ? arg : serializer(arg);
467
+ var computedValue = cache.get(cacheKey);
468
+ if (typeof computedValue === "undefined") {
469
+ computedValue = fn.call(this, arg);
470
+ cache.set(cacheKey, computedValue);
471
+ }
472
+ return computedValue;
473
+ }
474
+ function variadic(fn, cache, serializer) {
475
+ var args = Array.prototype.slice.call(arguments, 3);
476
+ var cacheKey = serializer(args);
477
+ var computedValue = cache.get(cacheKey);
478
+ if (typeof computedValue === "undefined") {
479
+ computedValue = fn.apply(this, args);
480
+ cache.set(cacheKey, computedValue);
481
+ }
482
+ return computedValue;
483
+ }
484
+ function assemble(fn, context, strategy, cache, serialize) {
485
+ return strategy.bind(context, fn, cache, serialize);
486
+ }
487
+ function strategyDefault(fn, options) {
488
+ var strategy = fn.length === 1 ? monadic : variadic;
489
+ return assemble(fn, this, strategy, options.cache.create(), options.serializer);
490
+ }
491
+ function strategyVariadic(fn, options) {
492
+ return assemble(fn, this, variadic, options.cache.create(), options.serializer);
493
+ }
494
+ function strategyMonadic(fn, options) {
495
+ return assemble(fn, this, monadic, options.cache.create(), options.serializer);
496
+ }
497
+ var serializerDefault = function() {
498
+ return JSON.stringify(arguments);
499
+ };
500
+ function ObjectWithoutPrototypeCache() {
501
+ this.cache = /* @__PURE__ */ Object.create(null);
502
+ }
503
+ ObjectWithoutPrototypeCache.prototype.get = function(key) {
504
+ return this.cache[key];
505
+ };
506
+ ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
507
+ this.cache[key] = value;
508
+ };
509
+ var cacheDefault = {
510
+ create: function create() {
511
+ return new ObjectWithoutPrototypeCache();
512
+ }
513
+ };
514
+ var strategies = {
515
+ variadic: strategyVariadic,
516
+ monadic: strategyMonadic
517
+ };
518
+
452
519
  // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
453
520
  function invariant(condition, message, Err) {
454
521
  if (Err === void 0) {
@@ -458,6 +525,56 @@ var ReactIntl = (() => {
458
525
  throw new Err(message);
459
526
  }
460
527
  }
528
+ var createMemoizedNumberFormat = memoize(function() {
529
+ var _a2;
530
+ var args = [];
531
+ for (var _i = 0; _i < arguments.length; _i++) {
532
+ args[_i] = arguments[_i];
533
+ }
534
+ return new ((_a2 = Intl.NumberFormat).bind.apply(_a2, __spreadArray([void 0], args, false)))();
535
+ }, {
536
+ strategy: strategies.variadic
537
+ });
538
+ var createMemoizedDateTimeFormat = memoize(function() {
539
+ var _a2;
540
+ var args = [];
541
+ for (var _i = 0; _i < arguments.length; _i++) {
542
+ args[_i] = arguments[_i];
543
+ }
544
+ return new ((_a2 = Intl.DateTimeFormat).bind.apply(_a2, __spreadArray([void 0], args, false)))();
545
+ }, {
546
+ strategy: strategies.variadic
547
+ });
548
+ var createMemoizedPluralRules = memoize(function() {
549
+ var _a2;
550
+ var args = [];
551
+ for (var _i = 0; _i < arguments.length; _i++) {
552
+ args[_i] = arguments[_i];
553
+ }
554
+ return new ((_a2 = Intl.PluralRules).bind.apply(_a2, __spreadArray([void 0], args, false)))();
555
+ }, {
556
+ strategy: strategies.variadic
557
+ });
558
+ var createMemoizedLocale = memoize(function() {
559
+ var _a2;
560
+ var args = [];
561
+ for (var _i = 0; _i < arguments.length; _i++) {
562
+ args[_i] = arguments[_i];
563
+ }
564
+ return new ((_a2 = Intl.Locale).bind.apply(_a2, __spreadArray([void 0], args, false)))();
565
+ }, {
566
+ strategy: strategies.variadic
567
+ });
568
+ var createMemoizedListFormat = memoize(function() {
569
+ var _a2;
570
+ var args = [];
571
+ for (var _i = 0; _i < arguments.length; _i++) {
572
+ args[_i] = arguments[_i];
573
+ }
574
+ return new ((_a2 = Intl.ListFormat).bind.apply(_a2, __spreadArray([void 0], args, false)))();
575
+ }, {
576
+ strategy: strategies.variadic
577
+ });
461
578
 
462
579
  // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
463
580
  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]/;
@@ -3279,73 +3396,6 @@ var ReactIntl = (() => {
3279
3396
  return result.val;
3280
3397
  }
3281
3398
 
3282
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/lib/index.js
3283
- function memoize(fn, options) {
3284
- var cache = options && options.cache ? options.cache : cacheDefault;
3285
- var serializer = options && options.serializer ? options.serializer : serializerDefault;
3286
- var strategy = options && options.strategy ? options.strategy : strategyDefault;
3287
- return strategy(fn, {
3288
- cache,
3289
- serializer
3290
- });
3291
- }
3292
- function isPrimitive(value) {
3293
- return value == null || typeof value === "number" || typeof value === "boolean";
3294
- }
3295
- function monadic(fn, cache, serializer, arg) {
3296
- var cacheKey = isPrimitive(arg) ? arg : serializer(arg);
3297
- var computedValue = cache.get(cacheKey);
3298
- if (typeof computedValue === "undefined") {
3299
- computedValue = fn.call(this, arg);
3300
- cache.set(cacheKey, computedValue);
3301
- }
3302
- return computedValue;
3303
- }
3304
- function variadic(fn, cache, serializer) {
3305
- var args = Array.prototype.slice.call(arguments, 3);
3306
- var cacheKey = serializer(args);
3307
- var computedValue = cache.get(cacheKey);
3308
- if (typeof computedValue === "undefined") {
3309
- computedValue = fn.apply(this, args);
3310
- cache.set(cacheKey, computedValue);
3311
- }
3312
- return computedValue;
3313
- }
3314
- function assemble(fn, context, strategy, cache, serialize) {
3315
- return strategy.bind(context, fn, cache, serialize);
3316
- }
3317
- function strategyDefault(fn, options) {
3318
- var strategy = fn.length === 1 ? monadic : variadic;
3319
- return assemble(fn, this, strategy, options.cache.create(), options.serializer);
3320
- }
3321
- function strategyVariadic(fn, options) {
3322
- return assemble(fn, this, variadic, options.cache.create(), options.serializer);
3323
- }
3324
- function strategyMonadic(fn, options) {
3325
- return assemble(fn, this, monadic, options.cache.create(), options.serializer);
3326
- }
3327
- var serializerDefault = function() {
3328
- return JSON.stringify(arguments);
3329
- };
3330
- function ObjectWithoutPrototypeCache() {
3331
- this.cache = /* @__PURE__ */ Object.create(null);
3332
- }
3333
- ObjectWithoutPrototypeCache.prototype.get = function(key) {
3334
- return this.cache[key];
3335
- };
3336
- ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
3337
- this.cache[key] = value;
3338
- };
3339
- var cacheDefault = {
3340
- create: function create() {
3341
- return new ObjectWithoutPrototypeCache();
3342
- }
3343
- };
3344
- var strategies = {
3345
- variadic: strategyVariadic,
3346
- monadic: strategyMonadic
3347
- };
3348
-
3349
3399
  // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/intl-messageformat@0.0.0/node_modules/intl-messageformat/lib/src/error.js
3350
3400
  var ErrorCode;
3351
3401
  (function(ErrorCode2) {