@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.
@@ -26,7 +26,7 @@ import { a as isBlank, g as getComponentDisplayName, p as parseServerError } fro
26
26
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
27
27
  import Check from '@bigbinary/neeto-icons/Check';
28
28
  import { jsx, jsxs } from 'react/jsx-runtime';
29
- import { c as clientI18nInstance, d as getWithExpiry, g as generateInitValues, F as FormikWrap, a as getFieldComponent, b as buildAutoCompleteAttribute, r as renderButtonsInOrder, m as mergeRefs, e as generateFormResponse, f as clearLocalStorageValues } from './utils-BwrOrhV5.js';
29
+ import { c as clientI18nInstance, d as getWithExpiry, g as generateInitValues, F as FormikWrap, a as getFieldComponent, b as buildAutoCompleteAttribute, r as renderButtonsInOrder, m as mergeRefs, e as generateFormResponse, f as clearLocalStorageValues } from './utils-DFVwFXit.js';
30
30
  import { withT } from '@bigbinary/neeto-commons-frontend/react-utils';
31
31
  import '@babel/runtime/helpers/toConsumableArray';
32
32
  import '@bigbinary/neeto-commons-frontend/constants';
@@ -35,7 +35,7 @@ import '@babel/runtime/helpers/typeof';
35
35
  import '@bigbinary/neeto-editor/utils';
36
36
  import 'libphonenumber-js';
37
37
  import '@bigbinary/neeto-editor/EditorContent';
38
- import './constants-CEOQLu3J.js';
38
+ import './constants-CTksPRTK.js';
39
39
  import './constants-DlRX5mcQ.js';
40
40
  import 'dompurify';
41
41
  import '@bigbinary/neeto-icons/Plus';
@@ -10,10 +10,10 @@ import Button from '@bigbinary/neetoui/Button';
10
10
  import NoData from '@bigbinary/neetoui/NoData';
11
11
  import { map, assoc, filter, pluck, isEmpty } from 'ramda';
12
12
  import { useTranslation } from 'react-i18next';
13
- import { g as generateInitValues, F as FormikWrap, a as getFieldComponent, b as buildAutoCompleteAttribute, m as mergeRefs } from './utils-BwrOrhV5.js';
13
+ import { g as generateInitValues, F as FormikWrap, a as getFieldComponent, b as buildAutoCompleteAttribute, m as mergeRefs } from './utils-DFVwFXit.js';
14
14
  import { a as useForm } from './useFormApi-BS-TCKwR.js';
15
15
  import { parsePhoneNumber } from 'libphonenumber-js';
16
- import { Q as QUESTIONS_WITHOUT_FIELD_CODE } from './constants-CEOQLu3J.js';
16
+ import { Q as QUESTIONS_WITHOUT_FIELD_CODE } from './constants-CTksPRTK.js';
17
17
  import { Q as QUESTION_KIND } from './constants-DlRX5mcQ.js';
18
18
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
19
19
  import './index-BL5SirYx.js';
@@ -11,7 +11,7 @@ var PageLoader = require('@bigbinary/neeto-molecules/PageLoader');
11
11
  var ramda = require('ramda');
12
12
  var useFormApi = require('../useFormApi-DAiOGCeD.js');
13
13
  var constants$1 = require('../constants-D-XSuLo2.js');
14
- var constants = require('../constants-DXZnQ_E9.js');
14
+ var constants = require('../constants-DJU-cGmW.js');
15
15
  var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
16
16
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
17
17
  var dnd = require('@hello-pangea/dnd');
@@ -1038,7 +1038,7 @@ var formValidationSchema = function formValidationSchema() {
1038
1038
  field: i18next.t("neetoForm.questions.common.questionFields.field.questionType")
1039
1039
  })),
1040
1040
  label: yup__namespace.string().when("kind", function (kind, schema) {
1041
- return ramda.includes(kind, constants.RICH_TEXT_QUESTIONS) ? schema.test(richTextFieldMissingErrorMessage(kind), function (value) {
1041
+ return ramda.includes(kind, constants.RICH_TEXT_QUESTIONS) ? schema.test("required", richTextFieldMissingErrorMessage(kind), function (value) {
1042
1042
  return !utils$1.isEditorEmpty(value);
1043
1043
  }) : requiredLabelValidation(schema, i18next.t("neetoForm.questions.common.questionFields.field.question"));
1044
1044
  }),