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

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.
Files changed (46) hide show
  1. package/dist/.ready +1 -1
  2. package/dist/BuildForm.js +4 -4
  3. package/dist/BuildForm.js.map +1 -1
  4. package/dist/ExternalForm.js +2 -2
  5. package/dist/UrlBuilder.js +2 -2
  6. package/dist/cjs/BuildForm.js +4 -4
  7. package/dist/cjs/BuildForm.js.map +1 -1
  8. package/dist/cjs/ExternalForm.js +2 -2
  9. package/dist/cjs/UrlBuilder.js +2 -2
  10. package/dist/cjs/index.js +2 -2
  11. package/dist/cjs/{utils-CetNKt1c.js → utils-DkzQcu6R.js} +8 -15
  12. package/dist/cjs/utils-DkzQcu6R.js.map +1 -0
  13. package/dist/cjs/v2/BuildForm.js +4 -4
  14. package/dist/cjs/v2/BuildForm.js.map +1 -1
  15. package/dist/cjs/v2/ExternalForm.js +2 -2
  16. package/dist/cjs/v2/UrlBuilder.js +2 -2
  17. package/dist/cjs/v2/index.js +2 -2
  18. package/dist/cjs/v2/{utils-C4mc-fBv.js → utils-DF4T4m5g.js} +8 -15
  19. package/dist/cjs/v2/utils-DF4T4m5g.js.map +1 -0
  20. package/dist/cjs/v2/{yup-BU9GEfgJ.js → yup-BYZxGYQT.js} +2 -2
  21. package/dist/cjs/v2/yup-BYZxGYQT.js.map +1 -0
  22. package/dist/cjs/{yup-D9_Bpt2X.js → yup-Cy_8XyN-.js} +2 -2
  23. package/dist/cjs/yup-Cy_8XyN-.js.map +1 -0
  24. package/dist/index.js +2 -2
  25. package/dist/{utils-Dk-FAItH.js → utils-CZKXpXMw.js} +8 -15
  26. package/dist/utils-CZKXpXMw.js.map +1 -0
  27. package/dist/v2/BuildForm.js +4 -4
  28. package/dist/v2/BuildForm.js.map +1 -1
  29. package/dist/v2/ExternalForm.js +2 -2
  30. package/dist/v2/UrlBuilder.js +2 -2
  31. package/dist/v2/index.js +2 -2
  32. package/dist/v2/{utils-Ds5w4vXX.js → utils-DlcYlVi6.js} +8 -15
  33. package/dist/v2/utils-DlcYlVi6.js.map +1 -0
  34. package/dist/v2/{yup-DTFTJl9E.js → yup-eAZgNU6P.js} +2 -2
  35. package/dist/v2/yup-eAZgNU6P.js.map +1 -0
  36. package/dist/{yup-WoBODD2n.js → yup-Cl8wC8xx.js} +2 -2
  37. package/dist/yup-Cl8wC8xx.js.map +1 -0
  38. package/package.json +5 -5
  39. package/dist/cjs/utils-CetNKt1c.js.map +0 -1
  40. package/dist/cjs/v2/utils-C4mc-fBv.js.map +0 -1
  41. package/dist/cjs/v2/yup-BU9GEfgJ.js.map +0 -1
  42. package/dist/cjs/yup-D9_Bpt2X.js.map +0 -1
  43. package/dist/utils-Dk-FAItH.js.map +0 -1
  44. package/dist/v2/utils-Ds5w4vXX.js.map +0 -1
  45. package/dist/v2/yup-DTFTJl9E.js.map +0 -1
  46. package/dist/yup-WoBODD2n.js.map +0 -1
@@ -25,8 +25,8 @@ import { a as isBlank, g as getComponentDisplayName, p as parseServerError } fro
25
25
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
26
26
  import Check from '@bigbinary/neeto-icons/Check';
27
27
  import { jsx, jsxs } from 'react/jsx-runtime';
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';
28
+ import { C as CALLOUT_POSITIONS, b as CALLOUT_STYLES, L as LAST_ELEMENTS_THRESHOLD, Q as QUESTION_KIND } from './yup-Cl8wC8xx.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-CZKXpXMw.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,10 +10,10 @@ 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-CZKXpXMw.js';
14
14
  import { d as usePublicForm } from './constants-BRmVk1mZ.js';
15
15
  import { parsePhoneNumber } from 'libphonenumber-js';
16
- import { Q as QUESTION_KIND, a as QUESTIONS_WITHOUT_FIELD_CODE } from './yup-WoBODD2n.js';
16
+ import { Q as QUESTION_KIND, a as QUESTIONS_WITHOUT_FIELD_CODE } from './yup-Cl8wC8xx.js';
17
17
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
18
18
  import './index-NfnqZDHF.js';
19
19
  import '@babel/runtime/helpers/typeof';
@@ -6,7 +6,7 @@ var neetoCist = require('@bigbinary/neeto-cist');
6
6
  var Spinner = require('@bigbinary/neetoui/Spinner');
7
7
  var ramda = require('ramda');
8
8
  var constants = require('./constants-kGV0icLG.js');
9
- var yup = require('./yup-D9_Bpt2X.js');
9
+ var yup = require('./yup-Cy_8XyN-.js');
10
10
  var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
11
11
  var React = require('react');
12
12
  var dnd = require('@hello-pangea/dnd');
@@ -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