@bigbinary/neeto-form-frontend 1.3.1 → 1.3.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.
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { useFormikContext, useField, FieldArray, Form as Form$1, Formik, Field,
4
4
  import { noop as noop$4, findBy, slugify, toLabelAndValue, filterBy, isNotEmpty, truncate, humanize, removeBy, isPresent as isPresent$1, isNotPresent, findById, notEqualsDeep } from '@bigbinary/neeto-cist';
5
5
  import { showThumbsUpToastr, withEventTargetValue, getQueryParams, dateFormat } from '@bigbinary/neeto-commons-frontend/utils';
6
6
  import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
7
- import { Tooltip, Dropdown as Dropdown$2, Alert, Typography, Button as Button$1, Label, Checkbox as Checkbox$1, Toastr, MultiEmailInput, DatePicker, Input as Input$2, Radio as Radio$1, Select as Select$1, Textarea as Textarea$1, Spinner as Spinner$2 } from '@bigbinary/neetoui';
7
+ import Toastr from '@bigbinary/neetoui/Toastr';
8
8
  import { assoc, mergeLeft, compose as compose$1, isEmpty, trim, useWith, path, split, either, isNil, values, equals, modify, prop, range, difference, without, reject, pluck, keys, pick, omit, includes, __, isNotNil, insert, not, pipe as pipe$1, toLower, map, identity, clamp as clamp$2, filter as filter$1 } from 'ramda';
9
9
  import { useQuery, useQueryClient, useMutation } from 'react-query';
10
10
  import i18next, { t as t$4 } from 'i18next';
@@ -13,22 +13,40 @@ import { DEFAULT_PAGE_INDEX, DEFAULT_PAGE_SIZE } from '@bigbinary/neeto-commons-
13
13
  import { useMutationWithInvalidation, withImmutableActions, withT, useDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
14
14
  import axios from 'axios';
15
15
  import ReactDOM, { unstable_batchedUpdates, flushSync as flushSync$1 } from 'react-dom';
16
- import { Input as Input$1, Textarea, Checkbox, Select, ActionBlock } from '@bigbinary/neetoui/formik';
16
+ import Alert from '@bigbinary/neetoui/Alert';
17
+ import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
17
18
  import { useTranslation, Trans } from 'react-i18next';
18
19
  import { create as create$1 } from 'zustand';
20
+ import Typography from '@bigbinary/neetoui/Typography';
21
+ import Dropdown$2 from '@bigbinary/neetoui/Dropdown';
22
+ import Tooltip from '@bigbinary/neetoui/Tooltip';
19
23
  import classnames from 'classnames';
24
+ import Button$1 from '@bigbinary/neetoui/Button';
25
+ import Input$1 from '@bigbinary/neetoui/formik/Input';
26
+ import Textarea from '@bigbinary/neetoui/formik/Textarea';
27
+ import Checkbox from '@bigbinary/neetoui/formik/Checkbox';
28
+ import Label from '@bigbinary/neetoui/Label';
29
+ import Checkbox$1 from '@bigbinary/neetoui/Checkbox';
30
+ import Select from '@bigbinary/neetoui/formik/Select';
20
31
  import { Editor as Editor$1, isEditorEmpty, EditorContent } from '@bigbinary/neeto-editor';
21
32
  import { shallow } from 'zustand/shallow';
22
33
  import * as yup from 'yup';
23
34
  import { object, array, string } from 'yup';
24
35
  import useHotkeys from '@bigbinary/neeto-hotkeys';
36
+ import Spinner$2 from '@bigbinary/neetoui/Spinner';
25
37
  import dayjs from 'dayjs';
38
+ import NeetoUIMultiEmailInput from '@bigbinary/neetoui/MultiEmailInput';
26
39
  import { validation, PhoneNumberInput, PhoneNumber as PhoneNumber$1 } from '@bigbinary/neeto-molecules/PhoneNumber';
27
40
  import localeData from 'dayjs/plugin/localeData';
28
41
  import utc from 'dayjs/plugin/utc';
29
42
  import weekday from 'dayjs/plugin/weekday';
30
43
  import weekOfYear from 'dayjs/plugin/weekOfYear';
44
+ import DatePicker from '@bigbinary/neetoui/DatePicker';
31
45
  import path$1 from 'path';
46
+ import Input$2 from '@bigbinary/neetoui/Input';
47
+ import Select$1 from '@bigbinary/neetoui/Select';
48
+ import Radio$1 from '@bigbinary/neetoui/Radio';
49
+ import Textarea$1 from '@bigbinary/neetoui/Textarea';
32
50
  import { renderToString } from 'react-dom/server';
33
51
 
34
52
  function _extends$8() {
@@ -16104,7 +16122,7 @@ var MultipleEmailInput = function MultipleEmailInput(_ref) {
16104
16122
  className: "neeto-form-engine-input__wrapper"
16105
16123
  }, /*#__PURE__*/React__default.createElement("div", {
16106
16124
  className: "neeto-ui-w-full"
16107
- }, isInputVisible ? /*#__PURE__*/React__default.createElement(MultiEmailInput, {
16125
+ }, isInputVisible ? /*#__PURE__*/React__default.createElement(NeetoUIMultiEmailInput, {
16108
16126
  isRequired: isRequired,
16109
16127
  label: label,
16110
16128
  error: meta.touched ? meta.error : "",
@@ -30146,6 +30164,10 @@ var linkifyDecorator = function linkifyDecorator(decoratedHref, decoratedText, k
30146
30164
  target: "_blank"
30147
30165
  }, decoratedText);
30148
30166
  };
30167
+ var filterResponses = removeBy({
30168
+ kind: QUESTION_KIND.ADDITIONAL_GUESTS.value,
30169
+ value: isNotPresent
30170
+ });
30149
30171
 
30150
30172
  var FileUpload = function FileUpload(_ref) {
30151
30173
  var files = _ref.files;
@@ -30209,6 +30231,7 @@ var Submission = function Submission(_ref2) {
30209
30231
  } : _useSubmission$data,
30210
30232
  isLoading = _useSubmission.isLoading;
30211
30233
  var responses = submission.responses;
30234
+ var filteredResponses = filterResponses(responses);
30212
30235
  var renderSubmittedValue = function renderSubmittedValue(kind, value) {
30213
30236
  switch (kind) {
30214
30237
  case QUESTION_KIND.RICH_TEXT.value:
@@ -30245,7 +30268,7 @@ var Submission = function Submission(_ref2) {
30245
30268
  }
30246
30269
  return /*#__PURE__*/React__default.createElement("div", {
30247
30270
  className: classnames("mx-auto flex h-full w-full flex-col items-start", _defineProperty$6({}, className, className))
30248
- }, responses.map(function (_ref3) {
30271
+ }, filteredResponses.map(function (_ref3) {
30249
30272
  var kind = _ref3.kind,
30250
30273
  label = _ref3.label,
30251
30274
  value = _ref3.value;