@bigbinary/neeto-form-frontend 3.12.2 → 3.12.3

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 (49) hide show
  1. package/app/javascript/src/translations/en.json +1 -1
  2. package/dist/BuildForm.js +10 -10
  3. package/dist/BuildForm.js.map +1 -1
  4. package/dist/ExternalForm.js +9 -9
  5. package/dist/ExternalForm.js.map +1 -1
  6. package/dist/Submission.js +1 -1
  7. package/dist/UrlBuilder.js +9 -9
  8. package/dist/UrlBuilder.js.map +1 -1
  9. package/dist/{buildForm-C8ATbuv6.js → buildForm-BHII-vAK.js} +2 -2
  10. package/dist/{buildForm-C8ATbuv6.js.map → buildForm-BHII-vAK.js.map} +1 -1
  11. package/dist/{buildForm-3Wdzcz2x.js → buildForm-C53vOltw.js} +2 -2
  12. package/dist/{buildForm-3Wdzcz2x.js.map → buildForm-C53vOltw.js.map} +1 -1
  13. package/dist/cjs/BuildForm.js +10 -10
  14. package/dist/cjs/BuildForm.js.map +1 -1
  15. package/dist/cjs/ExternalForm.js +9 -9
  16. package/dist/cjs/ExternalForm.js.map +1 -1
  17. package/dist/cjs/Submission.js +1 -1
  18. package/dist/cjs/UrlBuilder.js +9 -9
  19. package/dist/cjs/UrlBuilder.js.map +1 -1
  20. package/dist/cjs/hooks.js +5 -4
  21. package/dist/cjs/hooks.js.map +1 -1
  22. package/dist/cjs/index.js +7 -6
  23. package/dist/cjs/index.js.map +1 -1
  24. package/dist/{constants-DojODK3U.js → constants-B33YjyaT.js} +3 -3
  25. package/dist/{constants-DojODK3U.js.map → constants-B33YjyaT.js.map} +1 -1
  26. package/dist/{constants-LQk7jxH9.js → constants-DBuFEVFA.js} +4 -4
  27. package/dist/constants-DBuFEVFA.js.map +1 -0
  28. package/dist/{constants-CkGU4abB.js → constants-Dq9-rvtB.js} +4 -4
  29. package/dist/constants-Dq9-rvtB.js.map +1 -0
  30. package/dist/{constants-Cg0HQXNC.js → constants-DyjXQHMR.js} +3 -3
  31. package/dist/{constants-Cg0HQXNC.js.map → constants-DyjXQHMR.js.map} +1 -1
  32. package/dist/hooks.js +4 -4
  33. package/dist/{index-OmmVAj8-.js → index-BGEdOqsc.js} +2 -2
  34. package/dist/{index-OmmVAj8-.js.map → index-BGEdOqsc.js.map} +1 -1
  35. package/dist/{index-qEhecRV2.js → index-CAtNQTCZ.js} +2 -2
  36. package/dist/{index-qEhecRV2.js.map → index-CAtNQTCZ.js.map} +1 -1
  37. package/dist/index.js +6 -6
  38. package/dist/{useFormSubmission-Cab-hFHR.js → useFormSubmission-Bor3TuEO.js} +2 -2
  39. package/dist/{useFormSubmission-Cab-hFHR.js.map → useFormSubmission-Bor3TuEO.js.map} +1 -1
  40. package/dist/{useFormSubmission-CqQgBLsl.js → useFormSubmission-D3Bxhy6g.js} +2 -2
  41. package/dist/{useFormSubmission-CqQgBLsl.js.map → useFormSubmission-D3Bxhy6g.js.map} +1 -1
  42. package/dist/{utils-CWpYc-_S.js → utils-O5jbq3ZQ.js} +4 -4
  43. package/dist/{utils-CWpYc-_S.js.map → utils-O5jbq3ZQ.js.map} +1 -1
  44. package/dist/{utils-DE2Rc41X.js → utils-vq3PBRhD.js} +4 -4
  45. package/dist/{utils-DE2Rc41X.js.map → utils-vq3PBRhD.js.map} +1 -1
  46. package/package.json +1 -1
  47. package/types.d.ts +6 -0
  48. package/dist/constants-CkGU4abB.js.map +0 -1
  49. package/dist/constants-LQk7jxH9.js.map +0 -1
@@ -198,7 +198,7 @@
198
198
  "blacklistedDomains": {
199
199
  "label": "Accept only business emails",
200
200
  "description": "Emails having the following domains will be rejected.",
201
- "popoverDescription": "Lets you block free email domains like Gmail, Outlook and Yahoo, so only professional emails can book meetings with you."
201
+ "popoverDescription": "Enter domains that should be restricted. Emails with these domains will not be accepted."
202
202
  },
203
203
  "helpText": "Press space, tab or enter key after adding a domain.",
204
204
  "removeInvalidDomains": "Click here to remove invalid domains.",
package/dist/BuildForm.js CHANGED
@@ -7,8 +7,8 @@ import { isPresent, truncate, findBy, isNotPresent, slugify, hyphenate, noop, nu
7
7
  import { showThumbsUpToastr, withEventTargetValue, hyphenize } from '@bigbinary/neeto-commons-frontend/utils';
8
8
  import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
9
9
  import { equals, path, curry, assoc, prop, dissoc, when, includes, isEmpty, reject, keys, pick, omit, evolve, map, modify, without, mergeLeft, isNil, pipe, filter, isNotNil, uniq, join, pluck, test, difference, split, last, __, concat, F } from 'ramda';
10
- import { i as useDeleteQuestion, Q as QUESTION_TYPES, j as useFetchQuestions, k as useCreateQuestion, l as useUpdateQuestion, C as CAPTCHA_TYPES, m as useReorderQuestions, h as QUERY_KEYS } from './constants-LQk7jxH9.js';
11
- import { d as buildDisplayLabel, e as INDEPENDENT_LABELS_MAP, i as isElementOverflowing, D as Drag, f as SELECTABLE_KINDS, h as isAutoGeneratedQuestion, j as isRichTextQuestion, N as NON_BASIC_LATIN_CHARACTERS_REGEX, k as RESERVED_FIELD_CODES, L as LABEL_FIELDS, l as isDefaultLanguage, m as buildDisabledAddButtonTooltipProps, n as buildAddQuestionButtonProps, v as validateEditorContent, F as FIELD_CODES_REJECT_CHARS_REGEX, o as isImmutableField, Q as QUESTIONS_WITHOUT_FIELD_CODE, p as NON_HIDEABLE_FIELDS, q as NON_READ_ONLY_FIELDS, r as RICH_TEXT_QUESTIONS, s as FILE_TYPES_MAP, t as FILE_GROUPS, M as MINIMUM_OPTIONS, u as RATING_OPTIONS, w as STAR_RATING_MIN_VALUE_OPTIONS, x as STAR_RATING_MAX_VALUE_OPTIONS, y as STAR_RATING_ICONS_MAP, z as QUESTION_ACTIONS, A as QUESTION_KINDS, a as QUESTION_KIND, B as getActiveQuestionKindDetails, G as DEFAULT_AVAILABLE_LANGUAGES, H as QUESTIONS_INITIAL_VALUE, J as buildReorderPayload, K as MANDATORY_KINDS } from './constants-Cg0HQXNC.js';
10
+ import { j as useDeleteQuestion, Q as QUESTION_TYPES, a as useForm, k as useCreateQuestion, l as useUpdateQuestion, C as CAPTCHA_TYPES, m as useReorderQuestions, i as QUERY_KEYS } from './constants-DBuFEVFA.js';
11
+ import { d as buildDisplayLabel, e as INDEPENDENT_LABELS_MAP, i as isElementOverflowing, D as Drag, f as SELECTABLE_KINDS, h as isAutoGeneratedQuestion, j as isRichTextQuestion, N as NON_BASIC_LATIN_CHARACTERS_REGEX, k as RESERVED_FIELD_CODES, L as LABEL_FIELDS, l as isDefaultLanguage, m as buildDisabledAddButtonTooltipProps, n as buildAddQuestionButtonProps, v as validateEditorContent, F as FIELD_CODES_REJECT_CHARS_REGEX, o as isImmutableField, Q as QUESTIONS_WITHOUT_FIELD_CODE, p as NON_HIDEABLE_FIELDS, q as NON_READ_ONLY_FIELDS, r as RICH_TEXT_QUESTIONS, s as FILE_TYPES_MAP, t as FILE_GROUPS, M as MINIMUM_OPTIONS, u as RATING_OPTIONS, w as STAR_RATING_MIN_VALUE_OPTIONS, x as STAR_RATING_MAX_VALUE_OPTIONS, y as STAR_RATING_ICONS_MAP, z as QUESTION_ACTIONS, A as QUESTION_KINDS, a as QUESTION_KIND, B as getActiveQuestionKindDetails, G as DEFAULT_AVAILABLE_LANGUAGES, H as QUESTIONS_INITIAL_VALUE, J as buildReorderPayload, K as MANDATORY_KINDS } from './constants-DyjXQHMR.js';
12
12
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
13
13
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
14
14
  import { Droppable, Draggable, DragDropContext } from '@hello-pangea/dnd';
@@ -16,7 +16,7 @@ import { isMetaKeyPressed, withT, useStateWithDependency, useOnClickOutside } fr
16
16
  import HelpPopover from '@bigbinary/neeto-molecules/HelpPopover';
17
17
  import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
18
18
  import { useTranslation, Trans } from 'react-i18next';
19
- import { a as useBuildFormStore } from './buildForm-C8ATbuv6.js';
19
+ import { a as useBuildFormStore } from './buildForm-BHII-vAK.js';
20
20
  import { shallow } from 'zustand/shallow';
21
21
  import Alert from '@bigbinary/neetoui/Alert';
22
22
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -25,7 +25,7 @@ import Modal from '@bigbinary/neetoui/Modal';
25
25
  import MoreDropdown from '@bigbinary/neeto-molecules/MoreDropdown';
26
26
  import Dropdown from '@bigbinary/neetoui/Dropdown';
27
27
  import Tooltip from '@bigbinary/neetoui/Tooltip';
28
- import { i as isFunction, f as fieldWithFallback, c as isNameQuestion } from './index-OmmVAj8-.js';
28
+ import { i as isFunction, f as fieldWithFallback, c as isNameQuestion } from './index-BGEdOqsc.js';
29
29
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
30
30
  import { t } from 'i18next';
31
31
  import { v4 } from 'uuid';
@@ -843,11 +843,11 @@ var useUpdateEditorContent = function useUpdateEditorContent(_ref) {
843
843
  setEditorContent(initialValue);
844
844
  setFormData(modify("richTextFieldsToReset", without([fieldCode])));
845
845
  }
846
- var _useFetchQuestions = useFetchQuestions({
846
+ var _useForm = useForm({
847
847
  formId: formId,
848
848
  language: language
849
849
  }),
850
- data = _useFetchQuestions.data;
850
+ data = _useForm.data;
851
851
  useEffect(function () {
852
852
  if (!data) return;
853
853
  var pathArray = fieldName.split(".").map(function (part) {
@@ -2450,13 +2450,13 @@ var BuildForm = function BuildForm(_ref) {
2450
2450
  }),
2451
2451
  reorderQuestions = _useReorderQuestions.mutate,
2452
2452
  isReordering = _useReorderQuestions.isPending;
2453
- var _useFetchQuestions = useFetchQuestions({
2453
+ var _useForm = useForm({
2454
2454
  formId: id,
2455
2455
  language: selectedLanguage
2456
2456
  }),
2457
- data = _useFetchQuestions.data,
2458
- isLoading = _useFetchQuestions.isLoading,
2459
- isQuestionsPending = _useFetchQuestions.isPending;
2457
+ data = _useForm.data,
2458
+ isLoading = _useForm.isLoading,
2459
+ isQuestionsPending = _useForm.isPending;
2460
2460
  var _ref2 = data || QUESTIONS_INITIAL_VALUE,
2461
2461
  isFormEnabled = _ref2.enabled,
2462
2462
  savedTitle = _ref2.title,