@bigbinary/neeto-form-frontend 4.4.29 → 4.4.31

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 (75) hide show
  1. package/app/javascript/src/translations/en.json +0 -3
  2. package/dist/.ready +1 -1
  3. package/dist/BuildForm.js +5 -8
  4. package/dist/BuildForm.js.map +1 -1
  5. package/dist/ExternalForm.js +5 -5
  6. package/dist/Submission.js +1 -1
  7. package/dist/UrlBuilder.js +5 -5
  8. package/dist/{buildForm-DZ6Bl-ye.js → buildForm-Ds5d1DR8.js} +2 -2
  9. package/dist/{buildForm-DZ6Bl-ye.js.map → buildForm-Ds5d1DR8.js.map} +1 -1
  10. package/dist/cjs/BuildForm.js +5 -8
  11. package/dist/cjs/BuildForm.js.map +1 -1
  12. package/dist/cjs/ExternalForm.js +5 -5
  13. package/dist/cjs/Submission.js +1 -1
  14. package/dist/cjs/UrlBuilder.js +5 -5
  15. package/dist/cjs/{buildForm-CC9itFZl.js → buildForm-CtHZCSpo.js} +2 -2
  16. package/dist/cjs/{buildForm-CC9itFZl.js.map → buildForm-CtHZCSpo.js.map} +1 -1
  17. package/dist/cjs/{constants-BMSFHZ0w.js → constants-CUBwzMb-.js} +1 -2
  18. package/dist/cjs/constants-CUBwzMb-.js.map +1 -0
  19. package/dist/cjs/hooks.js +4 -4
  20. package/dist/cjs/{index-BQ76EIiQ.js → index-Bj56Ua86.js} +2 -2
  21. package/dist/cjs/{index-BQ76EIiQ.js.map → index-Bj56Ua86.js.map} +1 -1
  22. package/dist/cjs/index.js +6 -6
  23. package/dist/cjs/{useFormSubmission-CFV6smu9.js → useFormSubmission-DGRHK3u9.js} +2 -2
  24. package/dist/cjs/{useFormSubmission-CFV6smu9.js.map → useFormSubmission-DGRHK3u9.js.map} +1 -1
  25. package/dist/cjs/{utils-DDBCeNw7.js → utils-BGOMnbfz.js} +63 -106
  26. package/dist/cjs/utils-BGOMnbfz.js.map +1 -0
  27. package/dist/cjs/v2/BuildForm.js +2 -2
  28. package/dist/cjs/v2/ExternalForm.js +3 -3
  29. package/dist/cjs/v2/Submission.js +1 -1
  30. package/dist/cjs/v2/UrlBuilder.js +3 -3
  31. package/dist/cjs/v2/{constants-8Qh_klGy.js → constants-DIy-d-Pb.js} +1 -2
  32. package/dist/cjs/v2/constants-DIy-d-Pb.js.map +1 -0
  33. package/dist/cjs/v2/index.js +3 -3
  34. package/dist/cjs/v2/{utils-DxDOZ8uO.js → utils-HcpqL79u.js} +61 -108
  35. package/dist/cjs/v2/utils-HcpqL79u.js.map +1 -0
  36. package/dist/cjs/v2/{yup-D0709IcB.js → yup-x0_gSePS.js} +3 -17
  37. package/dist/cjs/v2/yup-x0_gSePS.js.map +1 -0
  38. package/dist/cjs/{yup-W5RzIslJ.js → yup-ClZ8UAn4.js} +4 -20
  39. package/dist/cjs/yup-ClZ8UAn4.js.map +1 -0
  40. package/dist/{constants-BV0Ig0ag.js → constants-fjoeNdhb.js} +1 -2
  41. package/dist/constants-fjoeNdhb.js.map +1 -0
  42. package/dist/hooks.js +4 -4
  43. package/dist/{index-DE7lvoSf.js → index-Cx0yvXwJ.js} +2 -2
  44. package/dist/{index-DE7lvoSf.js.map → index-Cx0yvXwJ.js.map} +1 -1
  45. package/dist/index.js +6 -6
  46. package/dist/{useFormSubmission-CBP1Vu7h.js → useFormSubmission-DMpf1msR.js} +2 -2
  47. package/dist/{useFormSubmission-CBP1Vu7h.js.map → useFormSubmission-DMpf1msR.js.map} +1 -1
  48. package/dist/{utils-G-wqcNVe.js → utils-DJxVM1eN.js} +63 -106
  49. package/dist/utils-DJxVM1eN.js.map +1 -0
  50. package/dist/v2/BuildForm.js +2 -2
  51. package/dist/v2/ExternalForm.js +3 -3
  52. package/dist/v2/Submission.js +1 -1
  53. package/dist/v2/UrlBuilder.js +3 -3
  54. package/dist/v2/{constants-C8P1Mxiw.js → constants-CZ7swzMG.js} +1 -2
  55. package/dist/v2/constants-CZ7swzMG.js.map +1 -0
  56. package/dist/v2/index.js +3 -3
  57. package/dist/v2/{utils-wCXQvtSj.js → utils-Ct-wyP0d.js} +62 -109
  58. package/dist/v2/utils-Ct-wyP0d.js.map +1 -0
  59. package/dist/v2/{yup-CKd8MXQx.js → yup-BlOEEJNr.js} +3 -17
  60. package/dist/v2/yup-BlOEEJNr.js.map +1 -0
  61. package/dist/{yup-DEHT0L38.js → yup-5EabgWxl.js} +4 -20
  62. package/dist/yup-5EabgWxl.js.map +1 -0
  63. package/package.json +5 -5
  64. package/dist/cjs/constants-BMSFHZ0w.js.map +0 -1
  65. package/dist/cjs/utils-DDBCeNw7.js.map +0 -1
  66. package/dist/cjs/v2/constants-8Qh_klGy.js.map +0 -1
  67. package/dist/cjs/v2/utils-DxDOZ8uO.js.map +0 -1
  68. package/dist/cjs/v2/yup-D0709IcB.js.map +0 -1
  69. package/dist/cjs/yup-W5RzIslJ.js.map +0 -1
  70. package/dist/constants-BV0Ig0ag.js.map +0 -1
  71. package/dist/utils-G-wqcNVe.js.map +0 -1
  72. package/dist/v2/constants-C8P1Mxiw.js.map +0 -1
  73. package/dist/v2/utils-wCXQvtSj.js.map +0 -1
  74. package/dist/v2/yup-CKd8MXQx.js.map +0 -1
  75. package/dist/yup-DEHT0L38.js.map +0 -1
@@ -8,9 +8,7 @@
8
8
  "clone": "Clone",
9
9
  "delete": "Delete",
10
10
  "agreeTermsAndConditions": "I agree to terms & conditions mentioned below",
11
- "agreeCondition": "I agree",
12
11
  "mustAcceptTermsAndConditions": "You must accept the terms and conditions",
13
- "mustAcceptCondition": "You must accept the condition to proceed",
14
12
  "email": "Email",
15
13
  "phone": "Phone",
16
14
  "phNo": "Phone number",
@@ -79,7 +77,6 @@
79
77
  "fbf": "Feedback",
80
78
  "agif": "Additional guests",
81
79
  "rtf": "Rich text field",
82
- "cf": "Condition",
83
80
  "iif": "Integer",
84
81
  "dif": "Decimal",
85
82
  "fileUpload": "File upload",
package/dist/.ready CHANGED
@@ -1 +1 @@
1
- Built at 2026-07-09T10:42:22.587Z
1
+ Built at 2026-07-14T06:27:06.477Z
package/dist/BuildForm.js CHANGED
@@ -3,14 +3,14 @@ import classnames from 'classnames';
3
3
  import { isPresent, truncate, findBy, isNotPresent, slugify, existsBy, findById, findIndexById, hyphenate, noop, nullSafe, modifyBy, removeBy } from '@bigbinary/neeto-cist';
4
4
  import Spinner from '@bigbinary/neetoui/Spinner';
5
5
  import { equals, path, when, assoc, includes, isEmpty, reject, keys, pick, omit, evolve, map, mergeLeft, isNil, pipe, filter, isNotNil, values, uniq, join, pathSatisfies, assocPath, dissoc, append, pluck, test, paths, difference, prop, startsWith, split, last, either, F, T } from 'ramda';
6
- import { k as useDeleteQuestion, Q as QUESTION_TYPES, b as useForm, l as useCreateQuestion, m as useUpdateQuestion, C as CAPTCHA_TYPES, n as useReorderQuestions, i as QUERY_KEYS } from './constants-BV0Ig0ag.js';
7
- import { j as QUESTION_ACTIONS, k as INDEPENDENT_LABELS_MAP, l as buildDisplayLabel, m as isElementOverflowing, n as SELECTABLE_KINDS, o as isAutoGeneratedQuestion, p as isRichTextQuestion, q as SPOT_QUESTION_FIELD_CODE, N as NON_BASIC_LATIN_CHARACTERS_REGEX, r as RESERVED_FIELD_CODES, s as renameKey, f as LABEL_FIELDS, t as isDefaultLanguage, u as buildAddQuestionButtonProps, v as validateEditorContent, F as FIELD_CODES_REJECT_CHARS_REGEX, M as MIN_WORDS_SWITCH_LABEL_PROPS, w as MIN_WORDS, x as isImmutableField, a as QUESTIONS_WITHOUT_FIELD_CODE, y as NON_HIDEABLE_FIELDS, z as NON_READ_ONLY_FIELDS, O as OPINION_LABEL_MAX_LENGTH, B as RICH_TEXT_QUESTIONS, e as ADDRESS_FIELD_WIDTHS, A as ADDRESS_FIELD_TYPES, G as generateDefaultOptions, H as MINIMUM_ADDRESS_FIELDS, J as getDeletedRecords, K as randomId, T as getActiveRecords, U as FILE_TYPES_MAP, V as FILE_GROUPS, W as OPINION_SCALE_MIN_VALUE_OPTIONS, X as OPINION_SCALE_MAX_VALUE_OPTIONS, D as DEFAULT_CHOICE_QUESTION_ATTRIBUTES, Y as MINIMUM_OPTIONS, Z as IMAGE_HEIGHT_SLIDER_DEFAULTS, _ as RATING_OPTIONS, $ as STAR_RATING_MIN_VALUE_OPTIONS, a0 as STAR_RATING_MAX_VALUE_OPTIONS, a1 as STAR_RATING_ICONS_MAP, a2 as buildDisabledAddButtonHelpPopoverProps, a3 as buildReorderPayload, a4 as QUESTIONS_INITIAL_VALUE, a5 as isMandatoryField, a6 as QUESTION_KINDS, Q as QUESTION_KIND, a7 as getActiveQuestionKindDetails, a8 as DEFAULT_AVAILABLE_LANGUAGES, a9 as DEFAULT_ADVANCED_FEATURES } from './yup-DEHT0L38.js';
6
+ import { k as useDeleteQuestion, Q as QUESTION_TYPES, b as useForm, l as useCreateQuestion, m as useUpdateQuestion, C as CAPTCHA_TYPES, n as useReorderQuestions, i as QUERY_KEYS } from './constants-fjoeNdhb.js';
7
+ import { j as QUESTION_ACTIONS, k as INDEPENDENT_LABELS_MAP, l as buildDisplayLabel, m as isElementOverflowing, n as SELECTABLE_KINDS, o as isAutoGeneratedQuestion, p as isRichTextQuestion, q as SPOT_QUESTION_FIELD_CODE, N as NON_BASIC_LATIN_CHARACTERS_REGEX, r as RESERVED_FIELD_CODES, s as renameKey, f as LABEL_FIELDS, t as isDefaultLanguage, u as buildAddQuestionButtonProps, v as validateEditorContent, F as FIELD_CODES_REJECT_CHARS_REGEX, M as MIN_WORDS_SWITCH_LABEL_PROPS, w as MIN_WORDS, x as isImmutableField, a as QUESTIONS_WITHOUT_FIELD_CODE, y as NON_HIDEABLE_FIELDS, z as NON_READ_ONLY_FIELDS, O as OPINION_LABEL_MAX_LENGTH, B as RICH_TEXT_QUESTIONS, e as ADDRESS_FIELD_WIDTHS, A as ADDRESS_FIELD_TYPES, G as generateDefaultOptions, H as MINIMUM_ADDRESS_FIELDS, J as getDeletedRecords, K as randomId, T as getActiveRecords, U as FILE_TYPES_MAP, V as FILE_GROUPS, W as OPINION_SCALE_MIN_VALUE_OPTIONS, X as OPINION_SCALE_MAX_VALUE_OPTIONS, D as DEFAULT_CHOICE_QUESTION_ATTRIBUTES, Y as MINIMUM_OPTIONS, Z as IMAGE_HEIGHT_SLIDER_DEFAULTS, _ as RATING_OPTIONS, $ as STAR_RATING_MIN_VALUE_OPTIONS, a0 as STAR_RATING_MAX_VALUE_OPTIONS, a1 as STAR_RATING_ICONS_MAP, a2 as buildDisabledAddButtonHelpPopoverProps, a3 as buildReorderPayload, a4 as QUESTIONS_INITIAL_VALUE, a5 as isMandatoryField, a6 as QUESTION_KINDS, Q as QUESTION_KIND, a7 as getActiveQuestionKindDetails, a8 as DEFAULT_AVAILABLE_LANGUAGES, a9 as DEFAULT_ADVANCED_FEATURES } from './yup-5EabgWxl.js';
8
8
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
9
9
  import { useState, useRef, useEffect, createElement } from 'react';
10
10
  import { Droppable, Draggable, DragDropContext } from '@hello-pangea/dnd';
11
11
  import { withT, isMetaKeyPressed, useStateWithDependency, useFuncDebounce, useOnClickOutside } from '@bigbinary/neeto-commons-frontend/react-utils';
12
12
  import { showThumbsUpToastr, withEventTargetValue, hyphenize } from '@bigbinary/neeto-commons-frontend/utils';
13
- import { a as useBuildFormStore } from './buildForm-DZ6Bl-ye.js';
13
+ import { a as useBuildFormStore } from './buildForm-Ds5d1DR8.js';
14
14
  import { shallow } from 'zustand/shallow';
15
15
  import Alert from '@bigbinary/neetoui/Alert';
16
16
  import { useTranslation, Trans } from 'react-i18next';
@@ -23,7 +23,7 @@ import Tooltip from '@bigbinary/neetoui/Tooltip';
23
23
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
24
24
  import Equals from '@bigbinary/neeto-icons/Equals';
25
25
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
26
- import { i as isFunction, f as fieldWithFallback, c as isNameQuestion } from './index-DE7lvoSf.js';
26
+ import { i as isFunction, f as fieldWithFallback, c as isNameQuestion } from './index-Cx0yvXwJ.js';
27
27
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
28
28
  import { t } from 'i18next';
29
29
  import { v4 } from 'uuid';
@@ -467,7 +467,6 @@ var _excluded$c = ["labelKey"];
467
467
  function ownKeys$j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
468
468
  function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$j(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
469
469
  var TERMS_AND_CONDITION = QUESTION_TYPES.TERMS_AND_CONDITION,
470
- CONDITION = QUESTION_TYPES.CONDITION,
471
470
  CAPTCHA$2 = QUESTION_TYPES.CAPTCHA,
472
471
  OPINION_SCALE$2 = QUESTION_TYPES.OPINION_SCALE,
473
472
  ADDRESS$2 = QUESTION_TYPES.ADDRESS;
@@ -475,10 +474,8 @@ var TERMS_AND_CONDITION = QUESTION_TYPES.TERMS_AND_CONDITION,
475
474
  // i18n keys for the prefilled default values that must follow the builder's
476
475
  // selected language and be persisted into every available language. Address
477
476
  // field defaults are keyed per-field via `labelKey` on the field object.
478
- var LOCALIZED_DEFAULT_LABEL_KEYS = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TERMS_AND_CONDITION, {
477
+ var LOCALIZED_DEFAULT_LABEL_KEYS = _defineProperty(_defineProperty(_defineProperty({}, TERMS_AND_CONDITION, {
479
478
  label: "neetoForm.common.agreeTermsAndConditions"
480
- }), CONDITION, {
481
- label: "neetoForm.common.agreeCondition"
482
479
  }), CAPTCHA$2, {
483
480
  label: "neetoForm.questions.common.questionFields.field.verifyHuman"
484
481
  }), OPINION_SCALE$2, {