@plasmicapp/react-web 0.2.221 → 0.2.223

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.
@@ -1395,10 +1395,11 @@ var PlasmicTranslatorContext = React__default.createContext(undefined);
1395
1395
  function isIterable(val) {
1396
1396
  return val != null && typeof val[Symbol.iterator] === "function";
1397
1397
  }
1398
- function genTranslatableString(elt) {
1398
+ function genTranslatableString(elt, opts) {
1399
1399
  var components = {};
1400
1400
  var componentsCount = 0;
1401
1401
  var getText = function (node) {
1402
+ var _a;
1402
1403
  if (!node) {
1403
1404
  return "";
1404
1405
  }
@@ -1428,7 +1429,8 @@ function genTranslatableString(elt) {
1428
1429
  if (React__default.isValidElement(node) && node.type === React__default.Fragment) {
1429
1430
  return contents;
1430
1431
  }
1431
- var componentId = componentsCount + 1;
1432
+ var prefix = (_a = opts === null || opts === void 0 ? void 0 : opts.tagPrefix) !== null && _a !== void 0 ? _a : "";
1433
+ var componentId = "".concat(prefix).concat(componentsCount + 1);
1432
1434
  componentsCount++;
1433
1435
  components[componentId] = React__default.isValidElement(node)
1434
1436
  ? React__default.cloneElement(node, {