@bigbinary/neeto-form-frontend 3.9.5 → 3.9.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.
@@ -130,7 +130,8 @@
130
130
  "fieldCode": "Field code",
131
131
  "fieldCodeHelpDescription": "If you change the field code, any existing shared links containing the old field code as query parameter, will not work correctly. <Link>View help article</Link> for more information.",
132
132
  "questionType": "Question type",
133
- "hideQuestionHelpDescription": "When enabled, this question will not be visible in the created form. It can be used for tracking UTM parameters."
133
+ "hideQuestionHelpDescription": "When enabled, this question will not be visible in the created form. It can be used for tracking UTM parameters.",
134
+ "verifyHuman": "Verify that you are a human"
134
135
  }
135
136
  }
136
137
  },
package/dist/BuildForm.js CHANGED
@@ -9,7 +9,7 @@ import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
9
9
  import { equals, includes, __, reduce, assoc, path, when, isEmpty, reject, keys, pick, omit, modify, without, mergeLeft, isNil, pipe, filter, isNotNil, uniq, join, pluck, map, test, difference, prop, split, last, concat, F } from 'ramda';
10
10
  import { h as useDeleteQuestion, i as useFetchQuestions, j as useCreateQuestion, k as useUpdateQuestion, l as useReorderQuestions, Q as QUERY_KEYS } from './useFormApi-BS-TCKwR.js';
11
11
  import { Q as QUESTION_KIND } from './constants-DlRX5mcQ.js';
12
- import { I as INDEPENDENT_LABELS_MAP, R as RICH_TEXT_QUESTIONS, A as AUTO_GENERATED_KINDS, a as IMMUTABLE_KINDS, h as htmlToPlainText, i as isElementOverflowing, D as Drag, b as QUESTION_TYPES, S as SELECTABLE_KINDS, N as NON_BASIC_LATIN_CHARACTERS_REGEX, c as RESERVED_FIELD_CODES, F as FIELD_CODES_REJECT_CHARS_REGEX, Q as QUESTIONS_WITHOUT_FIELD_CODE, d as NON_HIDEABLE_FIELDS, C as CAPTCHA_TYPES, e as FILE_TYPES_MAP, f as FILE_GROUPS, M as MINIMUM_OPTIONS, j as RATING_OPTIONS, k as STAR_RATING_MIN_VALUE_OPTIONS, l as STAR_RATING_MAX_VALUE_OPTIONS, m as STAR_RATING_ICONS_MAP, n as QUESTION_ACTIONS, o as QUESTION_KINDS, p as getActiveQuestionKindDetails, q as DEFAULT_AVAILABLE_LANGUAGES, r as QUESTIONS_INITIAL_VALUE, s as MANDATORY_KINDS } from './constants-CEOQLu3J.js';
12
+ import { I as INDEPENDENT_LABELS_MAP, R as RICH_TEXT_QUESTIONS, A as AUTO_GENERATED_KINDS, a as IMMUTABLE_KINDS, h as htmlToPlainText, i as isElementOverflowing, D as Drag, b as QUESTION_TYPES, S as SELECTABLE_KINDS, N as NON_BASIC_LATIN_CHARACTERS_REGEX, c as RESERVED_FIELD_CODES, F as FIELD_CODES_REJECT_CHARS_REGEX, Q as QUESTIONS_WITHOUT_FIELD_CODE, d as NON_HIDEABLE_FIELDS, C as CAPTCHA_TYPES, e as FILE_TYPES_MAP, f as FILE_GROUPS, M as MINIMUM_OPTIONS, j as RATING_OPTIONS, k as STAR_RATING_MIN_VALUE_OPTIONS, l as STAR_RATING_MAX_VALUE_OPTIONS, m as STAR_RATING_ICONS_MAP, n as QUESTION_ACTIONS, o as QUESTION_KINDS, p as getActiveQuestionKindDetails, q as DEFAULT_AVAILABLE_LANGUAGES, r as QUESTIONS_INITIAL_VALUE, s as MANDATORY_KINDS } from './constants-CTksPRTK.js';
13
13
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
14
14
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
15
15
  import { Droppable, Draggable, DragDropContext } from '@hello-pangea/dnd';
@@ -1017,7 +1017,7 @@ var formValidationSchema = function formValidationSchema() {
1017
1017
  field: t("neetoForm.questions.common.questionFields.field.questionType")
1018
1018
  })),
1019
1019
  label: yup.string().when("kind", function (kind, schema) {
1020
- return includes(kind, RICH_TEXT_QUESTIONS) ? schema.test(richTextFieldMissingErrorMessage(kind), function (value) {
1020
+ return includes(kind, RICH_TEXT_QUESTIONS) ? schema.test("required", richTextFieldMissingErrorMessage(kind), function (value) {
1021
1021
  return !isEditorEmpty(value);
1022
1022
  }) : requiredLabelValidation(schema, t("neetoForm.questions.common.questionFields.field.question"));
1023
1023
  }),