@builttocreate/engine-utils 2.3.2-beta.0.3 → 2.3.2-beta.0.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.
@@ -7,7 +7,8 @@ exports["default"] = void 0;
7
7
  // Display Fields
8
8
  var uniqueId = 'uniqueId';
9
9
  var image = 'image';
10
- var richText = 'richText'; // Data Fields
10
+ var richText = 'richText';
11
+ var block = 'block'; // Data Fields
11
12
 
12
13
  var text = 'text';
13
14
  var textarea = 'textarea';
@@ -294,6 +294,10 @@ exports.getTemplateWithLookups = getTemplateWithLookups;
294
294
  var isFieldEmpty = function isFieldEmpty(fieldType, fieldValue, fieldOptions) {
295
295
  var isEmpty = false;
296
296
 
297
+ if (fieldType === _FieldTypes["default"].block && (!fieldValue || fieldValue && fieldValue.replace(/\s+/g, '').length == 0)) {
298
+ isEmpty = true;
299
+ }
300
+
297
301
  if (fieldType === _FieldTypes["default"].text && (!fieldValue || fieldValue && fieldValue.replace(/\s+/g, '').length == 0)) {
298
302
  isEmpty = true;
299
303
  } else if (fieldType === _FieldTypes["default"].text && (!fieldValue || fieldValue && fieldValue.replace(/\s+/g, '').length == 0)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builttocreate/engine-utils",
3
- "version": "2.3.2-beta.0.3",
3
+ "version": "2.3.2-beta.0.5",
4
4
  "description": "Utility library for common logic shared across web and mobile",
5
5
  "main": "dist/index.js",
6
6
  "files": [