@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.
- package/app/javascript/src/translations/en.json +1 -1
- package/dist/BuildForm.js +10 -11
- package/dist/BuildForm.js.map +1 -1
- package/dist/ExternalForm.js +9 -10
- package/dist/ExternalForm.js.map +1 -1
- package/dist/Submission.js +170 -155
- package/dist/Submission.js.map +1 -1
- package/dist/UrlBuilder.js +9 -10
- package/dist/UrlBuilder.js.map +1 -1
- package/dist/{buildForm-C8ATbuv6.js → buildForm-BHII-vAK.js} +2 -2
- package/dist/{buildForm-C8ATbuv6.js.map → buildForm-BHII-vAK.js.map} +1 -1
- package/dist/{buildForm-3Wdzcz2x.js → buildForm-C53vOltw.js} +2 -2
- package/dist/{buildForm-3Wdzcz2x.js.map → buildForm-C53vOltw.js.map} +1 -1
- package/dist/cjs/BuildForm.js +12 -13
- package/dist/cjs/BuildForm.js.map +1 -1
- package/dist/cjs/ExternalForm.js +9 -10
- package/dist/cjs/ExternalForm.js.map +1 -1
- package/dist/cjs/Submission.js +168 -153
- package/dist/cjs/Submission.js.map +1 -1
- package/dist/cjs/UrlBuilder.js +17 -18
- package/dist/cjs/UrlBuilder.js.map +1 -1
- package/dist/cjs/hooks.js +5 -4
- package/dist/cjs/hooks.js.map +1 -1
- package/dist/cjs/index.js +7 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/{constants-CIKOBOUZ.js → constants-B33YjyaT.js} +365 -10
- package/dist/constants-B33YjyaT.js.map +1 -0
- package/dist/{constants-LQk7jxH9.js → constants-DBuFEVFA.js} +4 -4
- package/dist/constants-DBuFEVFA.js.map +1 -0
- package/dist/{constants-CkGU4abB.js → constants-Dq9-rvtB.js} +4 -4
- package/dist/constants-Dq9-rvtB.js.map +1 -0
- package/dist/{constants-DdGn1rF4.js → constants-DyjXQHMR.js} +337 -6
- package/dist/constants-DyjXQHMR.js.map +1 -0
- package/dist/hooks.js +4 -4
- package/dist/{index-OmmVAj8-.js → index-BGEdOqsc.js} +2 -2
- package/dist/{index-OmmVAj8-.js.map → index-BGEdOqsc.js.map} +1 -1
- package/dist/{index-qEhecRV2.js → index-CAtNQTCZ.js} +2 -2
- package/dist/{index-qEhecRV2.js.map → index-CAtNQTCZ.js.map} +1 -1
- package/dist/index.js +6 -8
- package/dist/index.js.map +1 -1
- package/dist/{useFormSubmission-Cab-hFHR.js → useFormSubmission-Bor3TuEO.js} +2 -2
- package/dist/{useFormSubmission-Cab-hFHR.js.map → useFormSubmission-Bor3TuEO.js.map} +1 -1
- package/dist/{useFormSubmission-CqQgBLsl.js → useFormSubmission-D3Bxhy6g.js} +2 -2
- package/dist/{useFormSubmission-CqQgBLsl.js.map → useFormSubmission-D3Bxhy6g.js.map} +1 -1
- package/dist/{utils-DbT-aQHP.js → utils-O5jbq3ZQ.js} +4 -5
- package/dist/{utils-DbT-aQHP.js.map → utils-O5jbq3ZQ.js.map} +1 -1
- package/dist/{utils-F-H352VB.js → utils-vq3PBRhD.js} +8 -9
- package/dist/{utils-F-H352VB.js.map → utils-vq3PBRhD.js.map} +1 -1
- package/package.json +1 -1
- package/types.d.ts +6 -1
- package/dist/constants-Byuu9IoS.js +0 -339
- package/dist/constants-Byuu9IoS.js.map +0 -1
- package/dist/constants-CIKOBOUZ.js.map +0 -1
- package/dist/constants-CN0KQk0z.js +0 -369
- package/dist/constants-CN0KQk0z.js.map +0 -1
- package/dist/constants-CkGU4abB.js.map +0 -1
- package/dist/constants-DdGn1rF4.js.map +0 -1
- package/dist/constants-LQk7jxH9.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -3,9 +3,9 @@ export { default as NeetoFormProvider } from './NeetoFormProvider.js';
|
|
|
3
3
|
export { default as ExternalForm } from './ExternalForm.js';
|
|
4
4
|
export { default as Submission } from './Submission.js';
|
|
5
5
|
export { default as UrlBuilder } from './UrlBuilder.js';
|
|
6
|
-
export {
|
|
7
|
-
export { u as useFormSubmission } from './useFormSubmission-
|
|
8
|
-
export { u as useBuildFormState } from './buildForm-
|
|
6
|
+
export { c as useCreateForm, e as useDeleteForm, a as useForm, u as useForms, b as usePublicForm, d as useUpdateForm } from './constants-DBuFEVFA.js';
|
|
7
|
+
export { u as useFormSubmission } from './useFormSubmission-D3Bxhy6g.js';
|
|
8
|
+
export { u as useBuildFormState } from './buildForm-BHII-vAK.js';
|
|
9
9
|
import '@babel/runtime/helpers/defineProperty';
|
|
10
10
|
import 'react';
|
|
11
11
|
import '@tanstack/react-query';
|
|
@@ -15,14 +15,13 @@ import '@bigbinary/neeto-cist';
|
|
|
15
15
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
16
16
|
import '@bigbinary/neeto-molecules/PageLoader';
|
|
17
17
|
import 'ramda';
|
|
18
|
-
import './constants-
|
|
18
|
+
import './constants-DyjXQHMR.js';
|
|
19
19
|
import 'i18next';
|
|
20
20
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
21
21
|
import 'react/jsx-runtime';
|
|
22
|
-
import './constants-DdGn1rF4.js';
|
|
23
22
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
24
23
|
import 'dompurify';
|
|
25
|
-
import './index-
|
|
24
|
+
import './index-BGEdOqsc.js';
|
|
26
25
|
import '@babel/runtime/helpers/typeof';
|
|
27
26
|
import '@bigbinary/neeto-editor/utils';
|
|
28
27
|
import '@bigbinary/neeto-icons/Plus';
|
|
@@ -69,7 +68,7 @@ import '@bigbinary/neetoui/Toastr';
|
|
|
69
68
|
import '@bigbinary/neetoui/Spinner';
|
|
70
69
|
import '@bigbinary/neetoui/Callout';
|
|
71
70
|
import '@bigbinary/neeto-icons/Check';
|
|
72
|
-
import './utils-
|
|
71
|
+
import './utils-O5jbq3ZQ.js';
|
|
73
72
|
import 'libphonenumber-js';
|
|
74
73
|
import '@bigbinary/neeto-editor/EditorContent';
|
|
75
74
|
import '@bigbinary/neetoui/MultiEmailInput';
|
|
@@ -84,7 +83,6 @@ import '@bigbinary/neetoui/Select';
|
|
|
84
83
|
import '@bigbinary/neetoui/Radio';
|
|
85
84
|
import '@bigbinary/neetoui/Textarea';
|
|
86
85
|
import '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
87
|
-
import 'react-dom/server';
|
|
88
86
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
89
87
|
import 'axios';
|
|
90
88
|
import 'zustand';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var constants = require('./constants-
|
|
3
|
+
var constants = require('./constants-Dq9-rvtB.js');
|
|
4
4
|
|
|
5
5
|
var useFormSubmission = function useFormSubmission(_ref) {
|
|
6
6
|
var _ref$formId = _ref.formId,
|
|
@@ -21,4 +21,4 @@ var useFormSubmission = function useFormSubmission(_ref) {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
exports.useFormSubmission = useFormSubmission;
|
|
24
|
-
//# sourceMappingURL=useFormSubmission-
|
|
24
|
+
//# sourceMappingURL=useFormSubmission-Bor3TuEO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormSubmission-
|
|
1
|
+
{"version":3,"file":"useFormSubmission-Bor3TuEO.js","sources":["../app/javascript/src/hooks/useFormSubmission.js"],"sourcesContent":["import { useSubmission } from \"./useFormApi\";\n\nconst useFormSubmission = ({ formId = \"\", submissionId = \"\" }) => {\n const { data: submission, isLoading } = useSubmission({\n formId,\n submissionId,\n enabled: !!(formId && submissionId),\n });\n\n return { submission, isLoading };\n};\n\nexport default useFormSubmission;\n"],"names":["useFormSubmission","_ref","_ref$formId","formId","_ref$submissionId","submissionId","_useSubmission","useSubmission","enabled","submission","data","isLoading"],"mappings":";;;;AAEA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAA2C;AAAA,EAAA,IAAAC,WAAA,GAAAD,IAAA,CAArCE,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,WAAA;IAAAE,iBAAA,GAAAH,IAAA,CAAEI,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,iBAAA;EACzD,IAAAE,cAAA,GAAwCC,uBAAa,CAAC;AACpDJ,MAAAA,MAAM,EAANA,MAAM;AACNE,MAAAA,YAAY,EAAZA,YAAY;AACZG,MAAAA,OAAO,EAAE,CAAC,EAAEL,MAAM,IAAIE,YAAY;AACpC,KAAC,CAAC;IAJYI,UAAU,GAAAH,cAAA,CAAhBI,IAAI;IAAcC,SAAS,GAAAL,cAAA,CAATK,SAAS;EAMnC,OAAO;AAAEF,IAAAA,UAAU,EAAVA,UAAU;AAAEE,IAAAA,SAAS,EAATA;GAAW;AAClC;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as useSubmission } from './constants-DBuFEVFA.js';
|
|
2
2
|
|
|
3
3
|
var useFormSubmission = function useFormSubmission(_ref) {
|
|
4
4
|
var _ref$formId = _ref.formId,
|
|
@@ -19,4 +19,4 @@ var useFormSubmission = function useFormSubmission(_ref) {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
export { useFormSubmission as u };
|
|
22
|
-
//# sourceMappingURL=useFormSubmission-
|
|
22
|
+
//# sourceMappingURL=useFormSubmission-D3Bxhy6g.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormSubmission-
|
|
1
|
+
{"version":3,"file":"useFormSubmission-D3Bxhy6g.js","sources":["../app/javascript/src/hooks/useFormSubmission.js"],"sourcesContent":["import { useSubmission } from \"./useFormApi\";\n\nconst useFormSubmission = ({ formId = \"\", submissionId = \"\" }) => {\n const { data: submission, isLoading } = useSubmission({\n formId,\n submissionId,\n enabled: !!(formId && submissionId),\n });\n\n return { submission, isLoading };\n};\n\nexport default useFormSubmission;\n"],"names":["useFormSubmission","_ref","_ref$formId","formId","_ref$submissionId","submissionId","_useSubmission","useSubmission","enabled","submission","data","isLoading"],"mappings":";;AAEA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAA2C;AAAA,EAAA,IAAAC,WAAA,GAAAD,IAAA,CAArCE,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,WAAA;IAAAE,iBAAA,GAAAH,IAAA,CAAEI,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,iBAAA;EACzD,IAAAE,cAAA,GAAwCC,aAAa,CAAC;AACpDJ,MAAAA,MAAM,EAANA,MAAM;AACNE,MAAAA,YAAY,EAAZA,YAAY;AACZG,MAAAA,OAAO,EAAE,CAAC,EAAEL,MAAM,IAAIE,YAAY;AACpC,KAAC,CAAC;IAJYI,UAAU,GAAAH,cAAA,CAAhBI,IAAI;IAAcC,SAAS,GAAAL,cAAA,CAATK,SAAS;EAMnC,OAAO;AAAEF,IAAAA,UAAU,EAAVA,UAAU;AAAEE,IAAAA,SAAS,EAATA;GAAW;AAClC;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useEffect, useState, useImperativeHandle, memo, Fragment } from 'react';
|
|
2
2
|
import { useFormikContext, useField, Field as Field$1, FastField } from 'formik';
|
|
3
3
|
import { isPresent, isNotEmpty, findBy, findById, isNotPresent, getRandomInt, randomPick, noop, hyphenate, slugify, notEqualsDeep } from '@bigbinary/neeto-cist';
|
|
4
|
-
import { i as isFunction, b as isEmptyValues, f as fieldWithFallback } from './index-
|
|
4
|
+
import { i as isFunction, b as isEmptyValues, f as fieldWithFallback } from './index-BGEdOqsc.js';
|
|
5
5
|
import { dayjs, withEventTargetValue } from '@bigbinary/neeto-commons-frontend/utils';
|
|
6
6
|
import { parsePhoneNumber } from 'libphonenumber-js';
|
|
7
7
|
import { includes, __, isNil, clamp, prop, map, identity, pluck, pipe, toLower, reject, isEmpty, values, equals, pick } from 'ramda';
|
|
8
8
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
9
9
|
import EditorContent from '@bigbinary/neeto-editor/EditorContent';
|
|
10
|
-
import { C as CAPTCHA_TYPES } from './constants-
|
|
10
|
+
import { C as CAPTCHA_TYPES } from './constants-DBuFEVFA.js';
|
|
11
11
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
12
12
|
import Plus from '@bigbinary/neeto-icons/Plus';
|
|
13
13
|
import Button from '@bigbinary/neetoui/Button';
|
|
@@ -21,7 +21,7 @@ import { validation, PhoneNumberInput } from '@bigbinary/neeto-molecules/PhoneNu
|
|
|
21
21
|
import * as yup from 'yup';
|
|
22
22
|
import i18next from 'i18next';
|
|
23
23
|
import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
24
|
-
import {
|
|
24
|
+
import { a as QUESTION_KIND, E as EMAIL_REGEX, R as RATING_VALUES, S as SCHEMA_LESS_QUESTION_KINDS, L as LABEL_FIELDS, c as RATING_OPTIONS, I as ICONS_MAP, g as generateArray } from './constants-DyjXQHMR.js';
|
|
25
25
|
import classnames from 'classnames';
|
|
26
26
|
import { useUpdateEffect, useDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
27
27
|
import Refresh from '@bigbinary/neeto-icons/Refresh';
|
|
@@ -33,7 +33,6 @@ import Checkbox from '@bigbinary/neetoui/Checkbox';
|
|
|
33
33
|
import DatePicker from '@bigbinary/neetoui/DatePicker';
|
|
34
34
|
import { FileUpload } from '@bigbinary/neeto-molecules/FileUpload';
|
|
35
35
|
import Label from '@bigbinary/neetoui/Label';
|
|
36
|
-
import { L as LABEL_FIELDS, g as generateArray } from './constants-DdGn1rF4.js';
|
|
37
36
|
import Select from '@bigbinary/neetoui/Select';
|
|
38
37
|
import Radio from '@bigbinary/neetoui/Radio';
|
|
39
38
|
import NeetoEditor from '@bigbinary/neeto-editor/Editor';
|
|
@@ -1798,4 +1797,4 @@ var containsIgnoreCase = function containsIgnoreCase(string, substring) {
|
|
|
1798
1797
|
};
|
|
1799
1798
|
|
|
1800
1799
|
export { FormikWrap as F, getFieldComponent as a, buildAutoCompleteAttribute as b, clientI18nInstance as c, getWithExpiry as d, generateFormResponse as e, clearLocalStorageValues as f, generateInitValues as g, mergeRefs as m, renderButtonsInOrder as r };
|
|
1801
|
-
//# sourceMappingURL=utils-
|
|
1800
|
+
//# sourceMappingURL=utils-O5jbq3ZQ.js.map
|