@bigbinary/neeto-form-frontend 3.12.1 → 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 (58) hide show
  1. package/app/javascript/src/translations/en.json +1 -1
  2. package/dist/BuildForm.js +10 -11
  3. package/dist/BuildForm.js.map +1 -1
  4. package/dist/ExternalForm.js +9 -10
  5. package/dist/ExternalForm.js.map +1 -1
  6. package/dist/Submission.js +170 -155
  7. package/dist/Submission.js.map +1 -1
  8. package/dist/UrlBuilder.js +9 -10
  9. package/dist/UrlBuilder.js.map +1 -1
  10. package/dist/{buildForm-C8ATbuv6.js → buildForm-BHII-vAK.js} +2 -2
  11. package/dist/{buildForm-C8ATbuv6.js.map → buildForm-BHII-vAK.js.map} +1 -1
  12. package/dist/{buildForm-3Wdzcz2x.js → buildForm-C53vOltw.js} +2 -2
  13. package/dist/{buildForm-3Wdzcz2x.js.map → buildForm-C53vOltw.js.map} +1 -1
  14. package/dist/cjs/BuildForm.js +12 -13
  15. package/dist/cjs/BuildForm.js.map +1 -1
  16. package/dist/cjs/ExternalForm.js +9 -10
  17. package/dist/cjs/ExternalForm.js.map +1 -1
  18. package/dist/cjs/Submission.js +168 -153
  19. package/dist/cjs/Submission.js.map +1 -1
  20. package/dist/cjs/UrlBuilder.js +17 -18
  21. package/dist/cjs/UrlBuilder.js.map +1 -1
  22. package/dist/cjs/hooks.js +5 -4
  23. package/dist/cjs/hooks.js.map +1 -1
  24. package/dist/cjs/index.js +7 -8
  25. package/dist/cjs/index.js.map +1 -1
  26. package/dist/{constants-CIKOBOUZ.js → constants-B33YjyaT.js} +365 -10
  27. package/dist/constants-B33YjyaT.js.map +1 -0
  28. package/dist/{constants-LQk7jxH9.js → constants-DBuFEVFA.js} +4 -4
  29. package/dist/constants-DBuFEVFA.js.map +1 -0
  30. package/dist/{constants-CkGU4abB.js → constants-Dq9-rvtB.js} +4 -4
  31. package/dist/constants-Dq9-rvtB.js.map +1 -0
  32. package/dist/{constants-DdGn1rF4.js → constants-DyjXQHMR.js} +337 -6
  33. package/dist/constants-DyjXQHMR.js.map +1 -0
  34. package/dist/hooks.js +4 -4
  35. package/dist/{index-OmmVAj8-.js → index-BGEdOqsc.js} +2 -2
  36. package/dist/{index-OmmVAj8-.js.map → index-BGEdOqsc.js.map} +1 -1
  37. package/dist/{index-qEhecRV2.js → index-CAtNQTCZ.js} +2 -2
  38. package/dist/{index-qEhecRV2.js.map → index-CAtNQTCZ.js.map} +1 -1
  39. package/dist/index.js +6 -8
  40. package/dist/index.js.map +1 -1
  41. package/dist/{useFormSubmission-Cab-hFHR.js → useFormSubmission-Bor3TuEO.js} +2 -2
  42. package/dist/{useFormSubmission-Cab-hFHR.js.map → useFormSubmission-Bor3TuEO.js.map} +1 -1
  43. package/dist/{useFormSubmission-CqQgBLsl.js → useFormSubmission-D3Bxhy6g.js} +2 -2
  44. package/dist/{useFormSubmission-CqQgBLsl.js.map → useFormSubmission-D3Bxhy6g.js.map} +1 -1
  45. package/dist/{utils-DbT-aQHP.js → utils-O5jbq3ZQ.js} +4 -5
  46. package/dist/{utils-DbT-aQHP.js.map → utils-O5jbq3ZQ.js.map} +1 -1
  47. package/dist/{utils-F-H352VB.js → utils-vq3PBRhD.js} +8 -9
  48. package/dist/{utils-F-H352VB.js.map → utils-vq3PBRhD.js.map} +1 -1
  49. package/package.json +1 -1
  50. package/types.d.ts +6 -1
  51. package/dist/constants-Byuu9IoS.js +0 -339
  52. package/dist/constants-Byuu9IoS.js.map +0 -1
  53. package/dist/constants-CIKOBOUZ.js.map +0 -1
  54. package/dist/constants-CN0KQk0z.js +0 -369
  55. package/dist/constants-CN0KQk0z.js.map +0 -1
  56. package/dist/constants-CkGU4abB.js.map +0 -1
  57. package/dist/constants-DdGn1rF4.js.map +0 -1
  58. 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,9 +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 { Q as QUESTION_KIND } from './constants-Byuu9IoS.js';
12
- import { b as buildDisplayLabel, I as INDEPENDENT_LABELS_MAP, i as isElementOverflowing, D as Drag, S as SELECTABLE_KINDS, c as isAutoGeneratedQuestion, d as isRichTextQuestion, N as NON_BASIC_LATIN_CHARACTERS_REGEX, R as RESERVED_FIELD_CODES, L as LABEL_FIELDS, e as isDefaultLanguage, f as buildDisabledAddButtonTooltipProps, h as buildAddQuestionButtonProps, v as validateEditorContent, F as FIELD_CODES_REJECT_CHARS_REGEX, j as isImmutableField, Q as QUESTIONS_WITHOUT_FIELD_CODE, k as NON_HIDEABLE_FIELDS, l as NON_READ_ONLY_FIELDS, m as RICH_TEXT_QUESTIONS, n as FILE_TYPES_MAP, o as FILE_GROUPS, M as MINIMUM_OPTIONS, p as RATING_OPTIONS, q as STAR_RATING_MIN_VALUE_OPTIONS, r as STAR_RATING_MAX_VALUE_OPTIONS, s as STAR_RATING_ICONS_MAP, t as QUESTION_ACTIONS, u as QUESTION_KINDS, w as getActiveQuestionKindDetails, x as DEFAULT_AVAILABLE_LANGUAGES, y as QUESTIONS_INITIAL_VALUE, z as buildReorderPayload, A as MANDATORY_KINDS } from './constants-DdGn1rF4.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';
13
12
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
14
13
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
15
14
  import { Droppable, Draggable, DragDropContext } from '@hello-pangea/dnd';
@@ -17,7 +16,7 @@ import { isMetaKeyPressed, withT, useStateWithDependency, useOnClickOutside } fr
17
16
  import HelpPopover from '@bigbinary/neeto-molecules/HelpPopover';
18
17
  import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
19
18
  import { useTranslation, Trans } from 'react-i18next';
20
- import { a as useBuildFormStore } from './buildForm-C8ATbuv6.js';
19
+ import { a as useBuildFormStore } from './buildForm-BHII-vAK.js';
21
20
  import { shallow } from 'zustand/shallow';
22
21
  import Alert from '@bigbinary/neetoui/Alert';
23
22
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -26,7 +25,7 @@ import Modal from '@bigbinary/neetoui/Modal';
26
25
  import MoreDropdown from '@bigbinary/neeto-molecules/MoreDropdown';
27
26
  import Dropdown from '@bigbinary/neetoui/Dropdown';
28
27
  import Tooltip from '@bigbinary/neetoui/Tooltip';
29
- 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';
30
29
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
31
30
  import { t } from 'i18next';
32
31
  import { v4 } from 'uuid';
@@ -844,11 +843,11 @@ var useUpdateEditorContent = function useUpdateEditorContent(_ref) {
844
843
  setEditorContent(initialValue);
845
844
  setFormData(modify("richTextFieldsToReset", without([fieldCode])));
846
845
  }
847
- var _useFetchQuestions = useFetchQuestions({
846
+ var _useForm = useForm({
848
847
  formId: formId,
849
848
  language: language
850
849
  }),
851
- data = _useFetchQuestions.data;
850
+ data = _useForm.data;
852
851
  useEffect(function () {
853
852
  if (!data) return;
854
853
  var pathArray = fieldName.split(".").map(function (part) {
@@ -2451,13 +2450,13 @@ var BuildForm = function BuildForm(_ref) {
2451
2450
  }),
2452
2451
  reorderQuestions = _useReorderQuestions.mutate,
2453
2452
  isReordering = _useReorderQuestions.isPending;
2454
- var _useFetchQuestions = useFetchQuestions({
2453
+ var _useForm = useForm({
2455
2454
  formId: id,
2456
2455
  language: selectedLanguage
2457
2456
  }),
2458
- data = _useFetchQuestions.data,
2459
- isLoading = _useFetchQuestions.isLoading,
2460
- isQuestionsPending = _useFetchQuestions.isPending;
2457
+ data = _useForm.data,
2458
+ isLoading = _useForm.isLoading,
2459
+ isQuestionsPending = _useForm.isPending;
2461
2460
  var _ref2 = data || QUESTIONS_INITIAL_VALUE,
2462
2461
  isFormEnabled = _ref2.enabled,
2463
2462
  savedTitle = _ref2.title,