@bigbinary/neeto-form-frontend 4.4.54-beta1 → 4.4.54-beta2

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 _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
26
26
  import Check from '@bigbinary/neeto-icons/Check';
27
27
  import { jsx, jsxs } from 'react/jsx-runtime';
28
28
  import { C as CALLOUT_POSITIONS, b as CALLOUT_STYLES, L as LAST_ELEMENTS_THRESHOLD, Q as QUESTION_KIND } from './yup-WoBODD2n.js';
29
- import { d as clientI18nInstance, e as getWithExpiry, f as clearEmailVerificationDetails, F as FormikWrap, g as getFieldComponent, a as buildAutoCompleteAttribute, r as renderButtonsInOrder, m as mergeRefs, c as generateInitValues, h as generateFormResponse, i as clearLocalStorageValues } from './utils-Dk-FAItH.js';
29
+ import { d as clientI18nInstance, e as getWithExpiry, f as clearEmailVerificationDetails, F as FormikWrap, g as getFieldComponent, a as buildAutoCompleteAttribute, r as renderButtonsInOrder, m as mergeRefs, c as generateInitValues, h as generateFormResponse, i as clearLocalStorageValues } from './utils-BAuCKggg.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';
@@ -10,7 +10,7 @@ import Button from '@bigbinary/neetoui/Button';
10
10
  import NoData from '@bigbinary/neetoui/NoData';
11
11
  import { mergeLeft, map, filter, pluck, isEmpty } from 'ramda';
12
12
  import { useTranslation } from 'react-i18next';
13
- import { b as buildDateQueryParameters, F as FormikWrap, g as getFieldComponent, a as buildAutoCompleteAttribute, m as mergeRefs, c as generateInitValues } from './utils-Dk-FAItH.js';
13
+ import { b as buildDateQueryParameters, F as FormikWrap, g as getFieldComponent, a as buildAutoCompleteAttribute, m as mergeRefs, c as generateInitValues } from './utils-BAuCKggg.js';
14
14
  import { d as usePublicForm } from './constants-BRmVk1mZ.js';
15
15
  import { parsePhoneNumber } from 'libphonenumber-js';
16
16
  import { Q as QUESTION_KIND, a as QUESTIONS_WITHOUT_FIELD_CODE } from './yup-WoBODD2n.js';
@@ -670,11 +670,11 @@ var createFieldData = function createFieldData(_ref5) {
670
670
  selectedLanguage: selectedLanguage,
671
671
  isUsingDefaultQuestionKinds: isUsingDefaultQuestionKinds
672
672
  });
673
- var localizedDefaultValues = localizeDefaultValues({
673
+ var localizedDefaultValues = isUsingDefaultQuestionKinds ? localizeDefaultValues({
674
674
  values: modifiedDefaultValues,
675
675
  kind: type,
676
676
  language: selectedLanguage
677
- });
677
+ }) : modifiedDefaultValues;
678
678
  return _objectSpread$i(_objectSpread$i(_objectSpread$i({}, localizedDefaultValues), {}, {
679
679
  metadata: metadata
680
680
  }, typeof isRequired === "boolean" && {
@@ -3144,7 +3144,7 @@ var transformValues = function transformValues(_ref4) {
3144
3144
  });
3145
3145
  }
3146
3146
  default:
3147
- return includeDefaultKeys ? withDefaultLabelKeys(rest) : rest;
3147
+ return includeDefaultKeys && isUsingDefaultQuestionKinds ? withDefaultLabelKeys(rest) : rest;
3148
3148
  }
3149
3149
  };
3150
3150