gt-react 10.20.4 → 10.20.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/dist/macros.cjs CHANGED
@@ -4211,7 +4211,7 @@ function condenseVars(icuString) {
4211
4211
  }));
4212
4212
  }
4213
4213
  //#endregion
4214
- //#region ../i18n/dist/isEncodedTranslationOptions-BOwWa_-J.mjs
4214
+ //#region ../i18n/dist/isEncodedTranslationOptions-69ZmAUR2.mjs
4215
4215
  var logger_default = {
4216
4216
  warn(message) {
4217
4217
  console.warn(message);
@@ -4233,7 +4233,7 @@ var logger_default = {
4233
4233
  * TODO: next major version, options should be Record<string, string>
4234
4234
  */
4235
4235
  function extractVariables(options) {
4236
- return Object.fromEntries(Object.entries(options).filter(([key]) => key !== "$id" && key !== "$context" && key !== "$maxChars" && key !== "$hash" && key !== "$_hash" && key !== "$_source" && key !== "$_fallback" && key !== "$format" && key !== "$_locales" && key !== "$locale"));
4236
+ return Object.fromEntries(Object.entries(options).filter(([key]) => key !== "$id" && key !== "$context" && key !== "$maxChars" && key !== "$hash" && key !== "$_hash" && key !== "$_source" && key !== "$_fallback" && key !== "$format" && key !== "$_locales" && key !== "$locale" && key !== "$requiresReview"));
4237
4237
  }
4238
4238
  const createInterpolationFailureMessage = (message) => `String interpolation failed for message: "${message}".`;
4239
4239
  /**
@@ -4282,7 +4282,7 @@ function interpolateIcuMessage(encodedMsg, options) {
4282
4282
  }
4283
4283
  }
4284
4284
  //#endregion
4285
- //#region ../core/dist/id-DEaFhGqX.mjs
4285
+ //#region ../core/dist/id-BS-dC63I.mjs
4286
4286
  /**
4287
4287
  * Calculates a unique hash for a given string using SHA-256.
4288
4288
  *
@@ -4305,7 +4305,7 @@ function hashString(string) {
4305
4305
  * @param {function} [hashFunction] - Custom hash function.
4306
4306
  * @returns {string} - The unique hash of the children.
4307
4307
  */
4308
- function hashSource({ source, context, id, maxChars, dataFormat }, hashFunction = hashString) {
4308
+ function hashSource({ source, context, id, maxChars, requiresReview, dataFormat }, hashFunction = hashString) {
4309
4309
  let sanitizedSource;
4310
4310
  if (dataFormat === "JSX") sanitizedSource = sanitizeJsxChildren(source);
4311
4311
  else sanitizedSource = source;
@@ -4314,6 +4314,7 @@ function hashSource({ source, context, id, maxChars, dataFormat }, hashFunction
4314
4314
  ...id && { id },
4315
4315
  ...context && { context },
4316
4316
  ...maxChars != null && { maxChars: Math.abs(maxChars) },
4317
+ ...requiresReview === true && { requiresReview: true },
4317
4318
  ...dataFormat && { dataFormat }
4318
4319
  }));
4319
4320
  }
@@ -4345,7 +4346,7 @@ function sanitizeJsxChildren(childrenAsObjects) {
4345
4346
  return Array.isArray(childrenAsObjects) ? childrenAsObjects.map(sanitizeChild) : sanitizeChild(childrenAsObjects);
4346
4347
  }
4347
4348
  //#endregion
4348
- //#region ../i18n/dist/versionId-BTjLA0FZ.mjs
4349
+ //#region ../i18n/dist/versionId-C6FQLPr1.mjs
4349
4350
  /**
4350
4351
  * Throw errors if there are any errors and log warnings if there are any warnings
4351
4352
  * @param {ValidationResult[]} results - The results to print
@@ -4886,6 +4887,7 @@ function hashMessage(message, options) {
4886
4887
  ...metadataOptions.$context && { context: metadataOptions.$context },
4887
4888
  ...metadataOptions.$id && { id: metadataOptions.$id },
4888
4889
  ...metadataOptions.$maxChars != null && { maxChars: Math.abs(metadataOptions.$maxChars) },
4890
+ ...metadataOptions.$requiresReview === true && { requiresReview: true },
4889
4891
  dataFormat: options.$format
4890
4892
  });
4891
4893
  }
@@ -5022,6 +5024,7 @@ var TranslationsCache = class {
5022
5024
  ...metadataOptions.$context && { context: metadataOptions.$context },
5023
5025
  ...metadataOptions.$id && { id: metadataOptions.$id },
5024
5026
  ...metadataOptions.$maxChars != null && { maxChars: Math.abs(metadataOptions.$maxChars) },
5027
+ ...metadataOptions.$requiresReview === true && { requiresReview: true },
5025
5028
  dataFormat: options.$format
5026
5029
  },
5027
5030
  resolve: (value) => resolve(value),