@bigbinary/neeto-form-frontend 4.4.29 → 4.4.31
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 +0 -3
- package/dist/.ready +1 -1
- package/dist/BuildForm.js +5 -8
- package/dist/BuildForm.js.map +1 -1
- package/dist/ExternalForm.js +5 -5
- package/dist/Submission.js +1 -1
- package/dist/UrlBuilder.js +5 -5
- package/dist/{buildForm-DZ6Bl-ye.js → buildForm-Ds5d1DR8.js} +2 -2
- package/dist/{buildForm-DZ6Bl-ye.js.map → buildForm-Ds5d1DR8.js.map} +1 -1
- package/dist/cjs/BuildForm.js +5 -8
- package/dist/cjs/BuildForm.js.map +1 -1
- package/dist/cjs/ExternalForm.js +5 -5
- package/dist/cjs/Submission.js +1 -1
- package/dist/cjs/UrlBuilder.js +5 -5
- package/dist/cjs/{buildForm-CC9itFZl.js → buildForm-CtHZCSpo.js} +2 -2
- package/dist/cjs/{buildForm-CC9itFZl.js.map → buildForm-CtHZCSpo.js.map} +1 -1
- package/dist/cjs/{constants-BMSFHZ0w.js → constants-CUBwzMb-.js} +1 -2
- package/dist/cjs/constants-CUBwzMb-.js.map +1 -0
- package/dist/cjs/hooks.js +4 -4
- package/dist/cjs/{index-BQ76EIiQ.js → index-Bj56Ua86.js} +2 -2
- package/dist/cjs/{index-BQ76EIiQ.js.map → index-Bj56Ua86.js.map} +1 -1
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/{useFormSubmission-CFV6smu9.js → useFormSubmission-DGRHK3u9.js} +2 -2
- package/dist/cjs/{useFormSubmission-CFV6smu9.js.map → useFormSubmission-DGRHK3u9.js.map} +1 -1
- package/dist/cjs/{utils-DDBCeNw7.js → utils-BGOMnbfz.js} +63 -106
- package/dist/cjs/utils-BGOMnbfz.js.map +1 -0
- package/dist/cjs/v2/BuildForm.js +2 -2
- package/dist/cjs/v2/ExternalForm.js +3 -3
- package/dist/cjs/v2/Submission.js +1 -1
- package/dist/cjs/v2/UrlBuilder.js +3 -3
- package/dist/cjs/v2/{constants-8Qh_klGy.js → constants-DIy-d-Pb.js} +1 -2
- package/dist/cjs/v2/constants-DIy-d-Pb.js.map +1 -0
- package/dist/cjs/v2/index.js +3 -3
- package/dist/cjs/v2/{utils-DxDOZ8uO.js → utils-HcpqL79u.js} +61 -108
- package/dist/cjs/v2/utils-HcpqL79u.js.map +1 -0
- package/dist/cjs/v2/{yup-D0709IcB.js → yup-x0_gSePS.js} +3 -17
- package/dist/cjs/v2/yup-x0_gSePS.js.map +1 -0
- package/dist/cjs/{yup-W5RzIslJ.js → yup-ClZ8UAn4.js} +4 -20
- package/dist/cjs/yup-ClZ8UAn4.js.map +1 -0
- package/dist/{constants-BV0Ig0ag.js → constants-fjoeNdhb.js} +1 -2
- package/dist/constants-fjoeNdhb.js.map +1 -0
- package/dist/hooks.js +4 -4
- package/dist/{index-DE7lvoSf.js → index-Cx0yvXwJ.js} +2 -2
- package/dist/{index-DE7lvoSf.js.map → index-Cx0yvXwJ.js.map} +1 -1
- package/dist/index.js +6 -6
- package/dist/{useFormSubmission-CBP1Vu7h.js → useFormSubmission-DMpf1msR.js} +2 -2
- package/dist/{useFormSubmission-CBP1Vu7h.js.map → useFormSubmission-DMpf1msR.js.map} +1 -1
- package/dist/{utils-G-wqcNVe.js → utils-DJxVM1eN.js} +63 -106
- package/dist/utils-DJxVM1eN.js.map +1 -0
- package/dist/v2/BuildForm.js +2 -2
- package/dist/v2/ExternalForm.js +3 -3
- package/dist/v2/Submission.js +1 -1
- package/dist/v2/UrlBuilder.js +3 -3
- package/dist/v2/{constants-C8P1Mxiw.js → constants-CZ7swzMG.js} +1 -2
- package/dist/v2/constants-CZ7swzMG.js.map +1 -0
- package/dist/v2/index.js +3 -3
- package/dist/v2/{utils-wCXQvtSj.js → utils-Ct-wyP0d.js} +62 -109
- package/dist/v2/utils-Ct-wyP0d.js.map +1 -0
- package/dist/v2/{yup-CKd8MXQx.js → yup-BlOEEJNr.js} +3 -17
- package/dist/v2/yup-BlOEEJNr.js.map +1 -0
- package/dist/{yup-DEHT0L38.js → yup-5EabgWxl.js} +4 -20
- package/dist/yup-5EabgWxl.js.map +1 -0
- package/package.json +5 -5
- package/dist/cjs/constants-BMSFHZ0w.js.map +0 -1
- package/dist/cjs/utils-DDBCeNw7.js.map +0 -1
- package/dist/cjs/v2/constants-8Qh_klGy.js.map +0 -1
- package/dist/cjs/v2/utils-DxDOZ8uO.js.map +0 -1
- package/dist/cjs/v2/yup-D0709IcB.js.map +0 -1
- package/dist/cjs/yup-W5RzIslJ.js.map +0 -1
- package/dist/constants-BV0Ig0ag.js.map +0 -1
- package/dist/utils-G-wqcNVe.js.map +0 -1
- package/dist/v2/constants-C8P1Mxiw.js.map +0 -1
- package/dist/v2/utils-wCXQvtSj.js.map +0 -1
- package/dist/v2/yup-CKd8MXQx.js.map +0 -1
- package/dist/yup-DEHT0L38.js.map +0 -1
package/dist/ExternalForm.js
CHANGED
|
@@ -19,14 +19,14 @@ import NeetoUICallout from '@bigbinary/neetoui/Callout';
|
|
|
19
19
|
import NoData from '@bigbinary/neetoui/NoData';
|
|
20
20
|
import { not, path, equals, isEmpty } from 'ramda';
|
|
21
21
|
import { I18nextProvider, useTranslation } from 'react-i18next';
|
|
22
|
-
import { d as usePublicForm, g as useCreateSubmission, h as useUpdateSubmission, f as useSubmission, i as QUERY_KEYS } from './constants-
|
|
22
|
+
import { d as usePublicForm, g as useCreateSubmission, h as useUpdateSubmission, f as useSubmission, i as QUERY_KEYS } from './constants-fjoeNdhb.js';
|
|
23
23
|
import Close from '@bigbinary/neeto-icons/Close';
|
|
24
|
-
import { a as isBlank, g as getComponentDisplayName, p as parseServerError } from './index-
|
|
24
|
+
import { a as isBlank, g as getComponentDisplayName, p as parseServerError } from './index-Cx0yvXwJ.js';
|
|
25
25
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
26
26
|
import Check from '@bigbinary/neeto-icons/Check';
|
|
27
27
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
28
|
-
import { C as CALLOUT_POSITIONS, b as CALLOUT_STYLES, L as LAST_ELEMENTS_THRESHOLD, Q as QUESTION_KIND } from './yup-
|
|
29
|
-
import { c as clientI18nInstance, d as getWithExpiry, e as clearEmailVerificationDetails, F as FormikWrap, g as getFieldComponent, b as buildAutoCompleteAttribute, r as renderButtonsInOrder, m as mergeRefs, a as generateInitValues, f as generateFormResponse, h as clearLocalStorageValues } from './utils-
|
|
28
|
+
import { C as CALLOUT_POSITIONS, b as CALLOUT_STYLES, L as LAST_ELEMENTS_THRESHOLD, Q as QUESTION_KIND } from './yup-5EabgWxl.js';
|
|
29
|
+
import { c as clientI18nInstance, d as getWithExpiry, e as clearEmailVerificationDetails, F as FormikWrap, g as getFieldComponent, b as buildAutoCompleteAttribute, r as renderButtonsInOrder, m as mergeRefs, a as generateInitValues, f as generateFormResponse, h as clearLocalStorageValues } from './utils-DJxVM1eN.js';
|
|
30
30
|
import { withT } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
31
31
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
32
32
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
@@ -68,12 +68,12 @@ import '@bigbinary/neetoui/Input';
|
|
|
68
68
|
import '@bigbinary/neeto-icons/Refresh';
|
|
69
69
|
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
70
70
|
import 'react-google-recaptcha';
|
|
71
|
-
import '@bigbinary/neetoui/Checkbox';
|
|
72
71
|
import '@bigbinary/neetoui/DatePicker';
|
|
73
72
|
import '@bigbinary/neetoui/Toastr';
|
|
74
73
|
import '@bigbinary/neeto-icons/CheckCircle';
|
|
75
74
|
import '@bigbinary/neeto-molecules/FileUpload';
|
|
76
75
|
import '@bigbinary/neetoui/Label';
|
|
76
|
+
import '@bigbinary/neetoui/Checkbox';
|
|
77
77
|
import '@bigbinary/neetoui/Radio';
|
|
78
78
|
import '@bigbinary/neeto-icons/Image';
|
|
79
79
|
import '@bigbinary/neeto-editor/Editor';
|
package/dist/Submission.js
CHANGED
|
@@ -5,7 +5,7 @@ import classnames from 'classnames';
|
|
|
5
5
|
import { isNotPresent, hyphenate } from '@bigbinary/neeto-cist';
|
|
6
6
|
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
7
7
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
8
|
-
import { Q as QUESTION_TYPES, f as useSubmission } from './constants-
|
|
8
|
+
import { Q as QUESTION_TYPES, f as useSubmission } from './constants-fjoeNdhb.js';
|
|
9
9
|
import { t } from 'i18next';
|
|
10
10
|
import { dateFormat } from '@bigbinary/neeto-commons-frontend/utils';
|
|
11
11
|
import EditorContent from '@bigbinary/neeto-editor/EditorContent';
|
package/dist/UrlBuilder.js
CHANGED
|
@@ -10,12 +10,12 @@ import Button from '@bigbinary/neetoui/Button';
|
|
|
10
10
|
import NoData from '@bigbinary/neetoui/NoData';
|
|
11
11
|
import { mergeLeft, map, filter, pluck, isEmpty } from 'ramda';
|
|
12
12
|
import { useTranslation } from 'react-i18next';
|
|
13
|
-
import { F as FormikWrap, g as getFieldComponent, b as buildAutoCompleteAttribute, m as mergeRefs, a as generateInitValues } from './utils-
|
|
14
|
-
import { d as usePublicForm } from './constants-
|
|
13
|
+
import { F as FormikWrap, g as getFieldComponent, b as buildAutoCompleteAttribute, m as mergeRefs, a as generateInitValues } from './utils-DJxVM1eN.js';
|
|
14
|
+
import { d as usePublicForm } from './constants-fjoeNdhb.js';
|
|
15
15
|
import { parsePhoneNumber } from 'libphonenumber-js';
|
|
16
|
-
import { Q as QUESTION_KIND, a as QUESTIONS_WITHOUT_FIELD_CODE } from './yup-
|
|
16
|
+
import { Q as QUESTION_KIND, a as QUESTIONS_WITHOUT_FIELD_CODE } from './yup-5EabgWxl.js';
|
|
17
17
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
18
|
-
import './index-
|
|
18
|
+
import './index-Cx0yvXwJ.js';
|
|
19
19
|
import '@babel/runtime/helpers/typeof';
|
|
20
20
|
import 'i18next';
|
|
21
21
|
import '@bigbinary/neeto-editor/utils';
|
|
@@ -37,7 +37,6 @@ import '@bigbinary/neeto-icons/Refresh';
|
|
|
37
37
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
38
38
|
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
39
39
|
import 'react-google-recaptcha';
|
|
40
|
-
import '@bigbinary/neetoui/Checkbox';
|
|
41
40
|
import '@bigbinary/neetoui/DatePicker';
|
|
42
41
|
import '@bigbinary/neetoui/Toastr';
|
|
43
42
|
import '@tanstack/react-query';
|
|
@@ -47,6 +46,7 @@ import '@bigbinary/neetoui/Spinner';
|
|
|
47
46
|
import '@bigbinary/neetoui/Callout';
|
|
48
47
|
import '@bigbinary/neeto-molecules/FileUpload';
|
|
49
48
|
import '@bigbinary/neetoui/Label';
|
|
49
|
+
import '@bigbinary/neetoui/Checkbox';
|
|
50
50
|
import '@bigbinary/neetoui/Radio';
|
|
51
51
|
import '@bigbinary/neeto-icons/Image';
|
|
52
52
|
import '@bigbinary/neeto-editor/Editor';
|
|
@@ -3,7 +3,7 @@ import { noop } from '@bigbinary/neeto-cist';
|
|
|
3
3
|
import { withImmutableActions } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
4
4
|
import { modify, mergeLeft, prop } from 'ramda';
|
|
5
5
|
import { create } from 'zustand';
|
|
6
|
-
import { i as isFunction } from './index-
|
|
6
|
+
import { i as isFunction } from './index-Cx0yvXwJ.js';
|
|
7
7
|
|
|
8
8
|
/** @type {import("neetocommons/react-utils").ZustandStoreHook} */
|
|
9
9
|
var useBuildFormStore = create(withImmutableActions(function (set) {
|
|
@@ -32,4 +32,4 @@ var useBuildFormState = function useBuildFormState() {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
export { useBuildFormStore as a, useBuildFormState as u };
|
|
35
|
-
//# sourceMappingURL=buildForm-
|
|
35
|
+
//# sourceMappingURL=buildForm-Ds5d1DR8.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildForm-
|
|
1
|
+
{"version":3,"file":"buildForm-Ds5d1DR8.js","sources":["../app/javascript/src/stores/buildForm.js"],"sourcesContent":["import i18next from \"i18next\";\nimport { noop } from \"neetocist\";\nimport { withImmutableActions } from \"neetocommons/react-utils\";\nimport { mergeLeft, modify, prop } from \"ramda\";\nimport { create } from \"zustand\";\n\nimport { isFunction } from \"utils\";\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useBuildFormStore = create(\n withImmutableActions(set => ({\n formState: {\n selectedLanguage: i18next.resolvedLanguage,\n onLanguageChange: noop,\n formId: null,\n enabled: false,\n title: \"\",\n helpDocUrls: {},\n isUsingDefaultQuestionKinds: true,\n usesCustomSubmissionComponent: false,\n hostSpecificData: {},\n isReorderingQuestions: false,\n onMutateSuccess: noop,\n isPictureChoiceEnabled: false,\n },\n\n setFormData: arg =>\n set(modify(\"formState\", isFunction(arg) ? arg : mergeLeft(arg))),\n }))\n);\n\nexport const useBuildFormState = () => useBuildFormStore(prop(\"formState\"));\n\nexport default useBuildFormStore;\n"],"names":["useBuildFormStore","create","withImmutableActions","set","formState","selectedLanguage","i18next","resolvedLanguage","onLanguageChange","noop","formId","enabled","title","helpDocUrls","isUsingDefaultQuestionKinds","usesCustomSubmissionComponent","hostSpecificData","isReorderingQuestions","onMutateSuccess","isPictureChoiceEnabled","setFormData","arg","modify","isFunction","mergeLeft","useBuildFormState","prop"],"mappings":";;;;;;;AAQA;AACA,IAAMA,iBAAiB,GAAGC,MAAM,CAC9BC,oBAAoB,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;AAC3BC,IAAAA,SAAS,EAAE;MACTC,gBAAgB,EAAEC,OAAO,CAACC,gBAAgB;AAC1CC,MAAAA,gBAAgB,EAAEC,IAAI;AACtBC,MAAAA,MAAM,EAAE,IAAI;AACZC,MAAAA,OAAO,EAAE,KAAK;AACdC,MAAAA,KAAK,EAAE,EAAE;MACTC,WAAW,EAAE,EAAE;AACfC,MAAAA,2BAA2B,EAAE,IAAI;AACjCC,MAAAA,6BAA6B,EAAE,KAAK;MACpCC,gBAAgB,EAAE,EAAE;AACpBC,MAAAA,qBAAqB,EAAE,KAAK;AAC5BC,MAAAA,eAAe,EAAET,IAAI;AACrBU,MAAAA,sBAAsB,EAAE;KACzB;AAEDC,IAAAA,WAAW,EAAE,SAAbA,WAAWA,CAAEC,GAAG,EAAA;AAAA,MAAA,OACdlB,GAAG,CAACmB,MAAM,CAAC,WAAW,EAAEC,UAAU,CAACF,GAAG,CAAC,GAAGA,GAAG,GAAGG,SAAS,CAACH,GAAG,CAAC,CAAC,CAAC;AAAA,IAAA;GACnE;AAAA,CAAC,CACJ;AAEO,IAAMI,iBAAiB,GAAG,SAApBA,iBAAiBA,GAAA;AAAA,EAAA,OAASzB,iBAAiB,CAAC0B,IAAI,CAAC,WAAW,CAAC,CAAC;AAAA;;;;"}
|
package/dist/cjs/BuildForm.js
CHANGED
|
@@ -5,14 +5,14 @@ var classnames = require('classnames');
|
|
|
5
5
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
6
6
|
var Spinner = require('@bigbinary/neetoui/Spinner');
|
|
7
7
|
var ramda = require('ramda');
|
|
8
|
-
var constants = require('./constants-
|
|
9
|
-
var yup = require('./yup-
|
|
8
|
+
var constants = require('./constants-CUBwzMb-.js');
|
|
9
|
+
var yup = require('./yup-ClZ8UAn4.js');
|
|
10
10
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
11
11
|
var React = require('react');
|
|
12
12
|
var dnd = require('@hello-pangea/dnd');
|
|
13
13
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
14
14
|
var utils = require('@bigbinary/neeto-commons-frontend/utils');
|
|
15
|
-
var buildForm = require('./buildForm-
|
|
15
|
+
var buildForm = require('./buildForm-CtHZCSpo.js');
|
|
16
16
|
var shallow = require('zustand/shallow');
|
|
17
17
|
var Alert = require('@bigbinary/neetoui/Alert');
|
|
18
18
|
var reactI18next = require('react-i18next');
|
|
@@ -25,7 +25,7 @@ var Tooltip = require('@bigbinary/neetoui/Tooltip');
|
|
|
25
25
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
26
26
|
var Equals = require('@bigbinary/neeto-icons/Equals');
|
|
27
27
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
28
|
-
var index = require('./index-
|
|
28
|
+
var index = require('./index-Bj56Ua86.js');
|
|
29
29
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
30
30
|
var i18next = require('i18next');
|
|
31
31
|
var uuid = require('uuid');
|
|
@@ -488,7 +488,6 @@ var _excluded$c = ["labelKey"];
|
|
|
488
488
|
function ownKeys$j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
489
489
|
function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$j(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
490
490
|
var TERMS_AND_CONDITION = constants.QUESTION_TYPES.TERMS_AND_CONDITION,
|
|
491
|
-
CONDITION = constants.QUESTION_TYPES.CONDITION,
|
|
492
491
|
CAPTCHA$2 = constants.QUESTION_TYPES.CAPTCHA,
|
|
493
492
|
OPINION_SCALE$2 = constants.QUESTION_TYPES.OPINION_SCALE,
|
|
494
493
|
ADDRESS$2 = constants.QUESTION_TYPES.ADDRESS;
|
|
@@ -496,10 +495,8 @@ var TERMS_AND_CONDITION = constants.QUESTION_TYPES.TERMS_AND_CONDITION,
|
|
|
496
495
|
// i18n keys for the prefilled default values that must follow the builder's
|
|
497
496
|
// selected language and be persisted into every available language. Address
|
|
498
497
|
// field defaults are keyed per-field via `labelKey` on the field object.
|
|
499
|
-
var LOCALIZED_DEFAULT_LABEL_KEYS = _defineProperty(_defineProperty(_defineProperty(
|
|
498
|
+
var LOCALIZED_DEFAULT_LABEL_KEYS = _defineProperty(_defineProperty(_defineProperty({}, TERMS_AND_CONDITION, {
|
|
500
499
|
label: "neetoForm.common.agreeTermsAndConditions"
|
|
501
|
-
}), CONDITION, {
|
|
502
|
-
label: "neetoForm.common.agreeCondition"
|
|
503
500
|
}), CAPTCHA$2, {
|
|
504
501
|
label: "neetoForm.questions.common.questionFields.field.verifyHuman"
|
|
505
502
|
}), OPINION_SCALE$2, {
|