@bigbinary/neeto-form-frontend 4.6.3 → 4.6.4-beta1

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.
package/dist/.ready CHANGED
@@ -1 +1 @@
1
- Built at 2026-10-31T21:02:28.319Z
1
+ Built at 2026-11-05T09:51:06.291Z
@@ -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, W as WHATSAPP_CONSENT_FIELD } from './yup-BWdsrAJJ.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-BQ-x2S1l.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-6cJmwuWa.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-BQ-x2S1l.js';
13
+ import { b as buildDateQueryParameters, F as FormikWrap, g as getFieldComponent, a as buildAutoCompleteAttribute, m as mergeRefs, c as generateInitValues } from './utils-6cJmwuWa.js';
14
14
  import { d as usePublicForm } from './constants-CA-b_gMT.js';
15
15
  import { parsePhoneNumber } from 'libphonenumber-js';
16
16
  import { Q as QUESTION_KIND, a as QUESTIONS_WITHOUT_FIELD_CODE } from './yup-BWdsrAJJ.js';
@@ -28,7 +28,7 @@ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProp
28
28
  var Check = require('@bigbinary/neeto-icons/Check');
29
29
  var jsxRuntime = require('react/jsx-runtime');
30
30
  var yup = require('./yup--rmEVYDi.js');
31
- var utils = require('./utils-CMHI5Y0n.js');
31
+ var utils = require('./utils-BWKgJgeT.js');
32
32
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
33
33
  require('@babel/runtime/helpers/toConsumableArray');
34
34
  require('@bigbinary/neeto-commons-frontend/constants');
@@ -12,7 +12,7 @@ var Button = require('@bigbinary/neetoui/Button');
12
12
  var NoData = require('@bigbinary/neetoui/NoData');
13
13
  var ramda = require('ramda');
14
14
  var reactI18next = require('react-i18next');
15
- var utils = require('./utils-CMHI5Y0n.js');
15
+ var utils = require('./utils-BWKgJgeT.js');
16
16
  var constants = require('./constants-B53NE3ql.js');
17
17
  var libphonenumberJs = require('libphonenumber-js');
18
18
  var yup = require('./yup--rmEVYDi.js');
package/dist/cjs/index.js CHANGED
@@ -100,7 +100,7 @@ require('@bigbinary/neeto-hotkeys');
100
100
  require('@bigbinary/neeto-icons/Warning');
101
101
  require('@bigbinary/neeto-molecules/PageLoader');
102
102
  require('@bigbinary/neeto-icons/Check');
103
- require('./utils-CMHI5Y0n.js');
103
+ require('./utils-BWKgJgeT.js');
104
104
  require('libphonenumber-js');
105
105
  require('@bigbinary/neeto-editor-frontend/EditorContent');
106
106
  require('@bigbinary/neetoui/MultiEmailInput');
@@ -2369,17 +2369,12 @@ var OptionsField = function OptionsField(_ref) {
2369
2369
  };
2370
2370
 
2371
2371
  var WhatsappConsentField = function WhatsappConsentField(_ref) {
2372
- var label = _ref.label,
2373
- hasPhoneNumber = _ref.hasPhoneNumber;
2372
+ var label = _ref.label;
2374
2373
  var _useField = formik.useField(yup.WHATSAPP_CONSENT_FIELD),
2375
2374
  _useField2 = _slicedToArray(_useField, 3),
2376
2375
  _useField2$0$value = _useField2[0].value,
2377
2376
  value = _useField2$0$value === void 0 ? false : _useField2$0$value,
2378
2377
  setValue = _useField2[2].setValue;
2379
- React.useEffect(function () {
2380
- if (!hasPhoneNumber && value) setValue(false);
2381
- }, [hasPhoneNumber, value, setValue]);
2382
- if (!hasPhoneNumber) return null;
2383
2378
  return /*#__PURE__*/jsxRuntime.jsx(Checkbox, {
2384
2379
  label: label,
2385
2380
  checked: value,
@@ -2442,7 +2437,6 @@ var PhoneNumberField = function PhoneNumberField(_ref) {
2442
2437
  },
2443
2438
  onChange: setValue
2444
2439
  }), whatsappConsent && /*#__PURE__*/jsxRuntime.jsx(WhatsappConsentField, {
2445
- hasPhoneNumber: Boolean(phoneData === null || phoneData === void 0 ? void 0 : phoneData.number),
2446
2440
  label: whatsappConsent.label
2447
2441
  })]
2448
2442
  });
@@ -2981,4 +2975,4 @@ exports.getFieldComponent = getFieldComponent;
2981
2975
  exports.getWithExpiry = getWithExpiry;
2982
2976
  exports.mergeRefs = mergeRefs;
2983
2977
  exports.renderButtonsInOrder = renderButtonsInOrder;
2984
- //# sourceMappingURL=utils-CMHI5Y0n.js.map
2978
+ //# sourceMappingURL=utils-BWKgJgeT.js.map