@bigbinary/neeto-form-frontend 3.8.2 → 3.8.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 (47) hide show
  1. package/dist/BuildForm.js +7 -7
  2. package/dist/BuildForm.js.map +1 -1
  3. package/dist/ExternalForm.js +5 -9
  4. package/dist/ExternalForm.js.map +1 -1
  5. package/dist/Submission.js +2 -2
  6. package/dist/UrlBuilder.js +5 -11
  7. package/dist/UrlBuilder.js.map +1 -1
  8. package/dist/cjs/BuildForm.js +7 -7
  9. package/dist/cjs/BuildForm.js.map +1 -1
  10. package/dist/cjs/ExternalForm.js +5 -9
  11. package/dist/cjs/ExternalForm.js.map +1 -1
  12. package/dist/cjs/Submission.js +2 -2
  13. package/dist/cjs/UrlBuilder.js +5 -11
  14. package/dist/cjs/UrlBuilder.js.map +1 -1
  15. package/dist/cjs/hooks.js +2 -2
  16. package/dist/cjs/index.js +6 -10
  17. package/dist/cjs/index.js.map +1 -1
  18. package/dist/{constants-43eac775.js → constants-4d9fc943.js} +1 -7
  19. package/dist/{constants-43eac775.js.map → constants-4d9fc943.js.map} +1 -1
  20. package/dist/{constants-ca5ca2b1.js → constants-56bf4022.js} +2 -2
  21. package/dist/{constants-ca5ca2b1.js.map → constants-56bf4022.js.map} +1 -1
  22. package/dist/{constants-3d8a5374.js → constants-75b78b3a.js} +2 -7
  23. package/dist/{constants-3d8a5374.js.map → constants-75b78b3a.js.map} +1 -1
  24. package/dist/{constants-669f203a.js → constants-d9148acf.js} +2 -2
  25. package/dist/{constants-669f203a.js.map → constants-d9148acf.js.map} +1 -1
  26. package/dist/hooks.js +2 -2
  27. package/dist/index.js +6 -10
  28. package/dist/index.js.map +1 -1
  29. package/dist/main.css +1 -1
  30. package/dist/main.css.map +1 -1
  31. package/dist/{useFormApi-ca36173e.js → useFormApi-408d0060.js} +1 -3
  32. package/dist/useFormApi-408d0060.js.map +1 -0
  33. package/dist/{useFormApi-d733cb8d.js → useFormApi-e3476a20.js} +2 -3
  34. package/dist/useFormApi-e3476a20.js.map +1 -0
  35. package/dist/{useFormSubmission-866195bb.js → useFormSubmission-46db678f.js} +2 -2
  36. package/dist/{useFormSubmission-866195bb.js.map → useFormSubmission-46db678f.js.map} +1 -1
  37. package/dist/{useFormSubmission-f8866b84.js → useFormSubmission-e2e84587.js} +2 -2
  38. package/dist/{useFormSubmission-f8866b84.js.map → useFormSubmission-e2e84587.js.map} +1 -1
  39. package/dist/{utils-4a844c8d.js → utils-4918956b.js} +60 -529
  40. package/dist/utils-4918956b.js.map +1 -0
  41. package/dist/{utils-6b8cacdd.js → utils-e4298243.js} +56 -530
  42. package/dist/utils-e4298243.js.map +1 -0
  43. package/package.json +7 -7
  44. package/dist/useFormApi-ca36173e.js.map +0 -1
  45. package/dist/useFormApi-d733cb8d.js.map +0 -1
  46. package/dist/utils-4a844c8d.js.map +0 -1
  47. package/dist/utils-6b8cacdd.js.map +0 -1
package/dist/BuildForm.js CHANGED
@@ -7,9 +7,9 @@ import { isPresent, truncate, findBy, isNotPresent, slugify, filterBy, hyphenate
7
7
  import { showThumbsUpToastr, hyphenize } from '@bigbinary/neeto-commons-frontend/utils';
8
8
  import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
9
9
  import { equals, includes, __, reduce, assoc, path, when, isEmpty, reject, keys, pick, omit, pluck, modify, without, mergeLeft, isNil, pipe, filter, isNotNil, uniq, join, map, test, difference, prop, split, last, concat, F } from 'ramda';
10
- import { e as useDeleteQuestion, f as useFetchQuestions, g as useCreateQuestion, h as useUpdateQuestion, i as useReorderQuestions, Q as QUERY_KEYS } from './useFormApi-d733cb8d.js';
11
- import { Q as QUESTION_KIND } from './constants-3d8a5374.js';
12
- import { I as INDEPENDENT_LABELS_MAP, R as RICH_TEXT_QUESTIONS, A as AUTO_GENERATED_KINDS, a as IMMUTABLE_KINDS, h as htmlToPlainText, i as isElementOverflowing, D as Drag, Q as QUESTION_TYPES, S as SELECTABLE_KINDS, b as RESERVED_FIELD_CODES, c as QUESTIONS_WITHOUT_FIELD_CODE, N as NON_HIDEABLE_FIELDS, C as CAPTCHA_TYPES, F as FILE_TYPES_MAP, d as FILE_GROUPS, M as MINIMUM_OPTIONS, e as RATING_OPTIONS, f as STAR_RATING_MIN_VALUE_OPTIONS, g as STAR_RATING_MAX_VALUE_OPTIONS, j as STAR_RATING_ICONS_MAP, k as QUESTION_ACTIONS, l as QUESTION_KINDS, m as getActiveQuestionKindDetails, n as DEFAULT_AVAILABLE_LANGUAGES, o as QUESTIONS_INITIAL_VALUE, p as MANDATORY_KINDS } from './constants-669f203a.js';
10
+ import { e as useDeleteQuestion, f as useFetchQuestions, g as useCreateQuestion, h as useUpdateQuestion, i as useReorderQuestions, Q as QUERY_KEYS } from './useFormApi-e3476a20.js';
11
+ import { Q as QUESTION_KIND } from './constants-75b78b3a.js';
12
+ import { I as INDEPENDENT_LABELS_MAP, R as RICH_TEXT_QUESTIONS, A as AUTO_GENERATED_KINDS, a as IMMUTABLE_KINDS, h as htmlToPlainText, i as isElementOverflowing, D as Drag, Q as QUESTION_TYPES, S as SELECTABLE_KINDS, b as RESERVED_FIELD_CODES, c as QUESTIONS_WITHOUT_FIELD_CODE, N as NON_HIDEABLE_FIELDS, C as CAPTCHA_TYPES, F as FILE_TYPES_MAP, d as FILE_GROUPS, M as MINIMUM_OPTIONS, e as RATING_OPTIONS, f as STAR_RATING_MIN_VALUE_OPTIONS, g as STAR_RATING_MAX_VALUE_OPTIONS, j as STAR_RATING_ICONS_MAP, k as QUESTION_ACTIONS, l as QUESTION_KINDS, m as getActiveQuestionKindDetails, n as DEFAULT_AVAILABLE_LANGUAGES, o as QUESTIONS_INITIAL_VALUE, p as MANDATORY_KINDS } from './constants-d9148acf.js';
13
13
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
14
14
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
15
15
  import { Droppable, Draggable, DragDropContext } from '@hello-pangea/dnd';
@@ -2157,7 +2157,7 @@ var Form = function Form(_ref) {
2157
2157
  return setIsDeleteAlertOpen(false);
2158
2158
  }
2159
2159
  }), /*#__PURE__*/jsxs(Form$3, _objectSpread$1(_objectSpread$1({
2160
- className: "neeto-form-nano-form-wrapper flex h-full flex-col"
2160
+ className: "flex flex-col h-full neeto-form-nano-form-wrapper"
2161
2161
  }, formDomProps), {}, {
2162
2162
  noValidate: true,
2163
2163
  children: [formTitle && /*#__PURE__*/jsx(Overview, {
@@ -2168,7 +2168,7 @@ var Form = function Form(_ref) {
2168
2168
  title: formTitle,
2169
2169
  onLanguageChange: handleLanguageChange
2170
2170
  }), /*#__PURE__*/jsx("div", {
2171
- className: "neeto-form-nano-form-wrapper__body min-h-0 w-full flex-grow space-y-6 overflow-y-auto px-6 pb-6",
2171
+ className: "flex-grow w-full min-h-0 pb-6 space-y-6 overflow-y-auto neeto-form-nano-form-wrapper__body md:px-6",
2172
2172
  children: hasActiveQuestions ? /*#__PURE__*/jsxs("div", {
2173
2173
  className: "space-y-6",
2174
2174
  ref: containerRef,
@@ -2195,7 +2195,7 @@ var Form = function Form(_ref) {
2195
2195
  onSelect: handleSelect
2196
2196
  })
2197
2197
  }), /*#__PURE__*/jsx("div", {
2198
- className: "mb-8 w-full",
2198
+ className: "w-full mb-8",
2199
2199
  children: /*#__PURE__*/jsx(AddQuestion, {
2200
2200
  disabledAddButtonTooltipProps: disabledAddButtonTooltipProps,
2201
2201
  isDisabled: isEmpty(availableQuestionKinds),
@@ -2208,7 +2208,7 @@ var Form = function Form(_ref) {
2208
2208
  onAdd: handleAdd
2209
2209
  })
2210
2210
  }), (showActionBlock || dirty) && /*#__PURE__*/jsx("div", {
2211
- className: "neeto-ui-border-gray-300 neeto-form-nano-form-wrapper__footer neeto-ui-bg-white sticky bottom-0 flex flex-shrink-0 justify-end border-t px-6 py-4",
2211
+ className: "sticky bottom-0 flex justify-end flex-shrink-0 px-6 py-4 border-t neeto-ui-border-gray-300 neeto-form-nano-form-wrapper__footer neeto-ui-bg-white",
2212
2212
  children: /*#__PURE__*/jsx(ActionBlock, {
2213
2213
  submitButtonProps: submitButtonProps,
2214
2214
  isSubmitting: isReordering,