@builttocreate/engine-utils 2.3.2-beta.0.5 → 2.3.2-beta.0.7

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.
@@ -26,6 +26,7 @@ var chart = 'chart';
26
26
  var types = {
27
27
  uniqueId: uniqueId,
28
28
  image: image,
29
+ block: block,
29
30
  richText: richText,
30
31
  text: text,
31
32
  textarea: textarea,
@@ -45,6 +46,7 @@ types.all = Object.keys(types);
45
46
  types.titles = {
46
47
  uniqueId: 'Auto Number',
47
48
  image: 'Image',
49
+ block: 'Display Text',
48
50
  richText: 'Rich Text',
49
51
  text: 'Short Text',
50
52
  textarea: 'Long Text',
@@ -300,7 +300,7 @@ var isFieldEmpty = function isFieldEmpty(fieldType, fieldValue, fieldOptions) {
300
300
 
301
301
  if (fieldType === _FieldTypes["default"].text && (!fieldValue || fieldValue && fieldValue.replace(/\s+/g, '').length == 0)) {
302
302
  isEmpty = true;
303
- } else if (fieldType === _FieldTypes["default"].text && (!fieldValue || fieldValue && fieldValue.replace(/\s+/g, '').length == 0)) {
303
+ } else if (fieldType === _FieldTypes["default"].textarea && (!fieldValue || fieldValue && fieldValue.replace(/\s+/g, '').length == 0)) {
304
304
  isEmpty = true;
305
305
  } else if (fieldType === _FieldTypes["default"].number && !fieldValue) {
306
306
  isEmpty = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builttocreate/engine-utils",
3
- "version": "2.3.2-beta.0.5",
3
+ "version": "2.3.2-beta.0.7",
4
4
  "description": "Utility library for common logic shared across web and mobile",
5
5
  "main": "dist/index.js",
6
6
  "files": [