@uniformdev/tms-sdk 19.154.1-alpha.21 → 19.154.1-alpha.22

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/index.esm.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  bindVariables,
4
4
  walkNodeTree
5
5
  } from "@uniformdev/canvas";
6
- import { isRichTextValueConsideredEmpty as isRichTextValueConsideredEmpty2 } from "@uniformdev/richtext";
6
+ import { isRichTextValue, isRichTextValueConsideredEmpty as isRichTextValueConsideredEmpty2 } from "@uniformdev/richtext";
7
7
 
8
8
  // src/constants.ts
9
9
  var TRANSLATION_PAYLOAD_SOURCE_KEY = "source";
@@ -367,7 +367,7 @@ var canTranslateParameterValue = (parameter, value) => {
367
367
  }
368
368
  return true;
369
369
  } else if (parameter.type === SUPPORTED_PARAM_TYPES.richText) {
370
- return typeof value === "object" && !!value;
370
+ return isRichTextValue(value) && !isRichTextValueConsideredEmpty2(value);
371
371
  }
372
372
  return false;
373
373
  };
package/dist/index.js CHANGED
@@ -397,7 +397,7 @@ var canTranslateParameterValue = (parameter, value) => {
397
397
  }
398
398
  return true;
399
399
  } else if (parameter.type === SUPPORTED_PARAM_TYPES.richText) {
400
- return typeof value === "object" && !!value;
400
+ return (0, import_richtext2.isRichTextValue)(value) && !(0, import_richtext2.isRichTextValueConsideredEmpty)(value);
401
401
  }
402
402
  return false;
403
403
  };
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  bindVariables,
4
4
  walkNodeTree
5
5
  } from "@uniformdev/canvas";
6
- import { isRichTextValueConsideredEmpty as isRichTextValueConsideredEmpty2 } from "@uniformdev/richtext";
6
+ import { isRichTextValue, isRichTextValueConsideredEmpty as isRichTextValueConsideredEmpty2 } from "@uniformdev/richtext";
7
7
 
8
8
  // src/constants.ts
9
9
  var TRANSLATION_PAYLOAD_SOURCE_KEY = "source";
@@ -367,7 +367,7 @@ var canTranslateParameterValue = (parameter, value) => {
367
367
  }
368
368
  return true;
369
369
  } else if (parameter.type === SUPPORTED_PARAM_TYPES.richText) {
370
- return typeof value === "object" && !!value;
370
+ return isRichTextValue(value) && !isRichTextValueConsideredEmpty2(value);
371
371
  }
372
372
  return false;
373
373
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/tms-sdk",
3
- "version": "19.154.1-alpha.21+51a6cdaf4f",
3
+ "version": "19.154.1-alpha.22+47eb3efd47",
4
4
  "description": "Uniform Translation Management System SDK",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -33,10 +33,10 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "@uniformdev/canvas": "19.154.1-alpha.21+51a6cdaf4f",
37
- "@uniformdev/richtext": "19.154.1-alpha.21+51a6cdaf4f",
36
+ "@uniformdev/canvas": "19.154.1-alpha.22+47eb3efd47",
37
+ "@uniformdev/richtext": "19.154.1-alpha.22+47eb3efd47",
38
38
  "dequal": "2.0.3",
39
39
  "immer": "10.0.4"
40
40
  },
41
- "gitHead": "51a6cdaf4f8fca15be62c0ea9e83cfe0b084cca1"
41
+ "gitHead": "47eb3efd47e7582cd4b509a6f5a943dcbb12b0ee"
42
42
  }