@bigbinary/neeto-form-frontend 4.4.37 → 4.4.39
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/ar.json +5 -1
- package/app/javascript/src/translations/bg.json +5 -1
- package/app/javascript/src/translations/ca.json +5 -1
- package/app/javascript/src/translations/cs.json +5 -1
- package/app/javascript/src/translations/da.json +5 -1
- package/app/javascript/src/translations/de.json +5 -1
- package/app/javascript/src/translations/en.json +5 -1
- package/app/javascript/src/translations/es-MX.json +5 -1
- package/app/javascript/src/translations/es.json +5 -1
- package/app/javascript/src/translations/et.json +5 -1
- package/app/javascript/src/translations/fi.json +5 -1
- package/app/javascript/src/translations/fil.json +5 -1
- package/app/javascript/src/translations/fr.json +5 -1
- package/app/javascript/src/translations/he.json +5 -1
- package/app/javascript/src/translations/hi.json +5 -1
- package/app/javascript/src/translations/hr.json +5 -1
- package/app/javascript/src/translations/hu.json +5 -1
- package/app/javascript/src/translations/id.json +5 -1
- package/app/javascript/src/translations/it.json +5 -1
- package/app/javascript/src/translations/ja.json +5 -1
- package/app/javascript/src/translations/ko.json +5 -1
- package/app/javascript/src/translations/nl.json +5 -1
- package/app/javascript/src/translations/pl.json +5 -1
- package/app/javascript/src/translations/pt-BR.json +5 -1
- package/app/javascript/src/translations/pt.json +5 -1
- package/app/javascript/src/translations/ro.json +5 -1
- package/app/javascript/src/translations/ru.json +5 -1
- package/app/javascript/src/translations/sk.json +5 -1
- package/app/javascript/src/translations/sl.json +5 -1
- package/app/javascript/src/translations/sv.json +5 -1
- package/app/javascript/src/translations/th.json +5 -1
- package/app/javascript/src/translations/tr.json +5 -1
- package/app/javascript/src/translations/uk.json +5 -1
- package/app/javascript/src/translations/vi.json +5 -1
- package/app/javascript/src/translations/zh-CN.json +5 -1
- package/app/javascript/src/translations/zh-TW.json +5 -1
- package/dist/.ready +1 -1
- package/dist/BuildForm.js +57 -7
- package/dist/BuildForm.js.map +1 -1
- package/dist/ExternalForm.js +5 -4
- package/dist/ExternalForm.js.map +1 -1
- package/dist/Submission.js +1 -1
- package/dist/UrlBuilder.js +5 -4
- package/dist/UrlBuilder.js.map +1 -1
- package/dist/{buildForm-Ds5d1DR8.js → buildForm-C5642_SF.js} +2 -2
- package/dist/{buildForm-Ds5d1DR8.js.map → buildForm-C5642_SF.js.map} +1 -1
- package/dist/cjs/BuildForm.js +57 -7
- package/dist/cjs/BuildForm.js.map +1 -1
- package/dist/cjs/ExternalForm.js +5 -4
- package/dist/cjs/ExternalForm.js.map +1 -1
- package/dist/cjs/Submission.js +1 -1
- package/dist/cjs/UrlBuilder.js +5 -4
- package/dist/cjs/UrlBuilder.js.map +1 -1
- package/dist/cjs/{buildForm-CtHZCSpo.js → buildForm-BO5Vcxv_.js} +2 -2
- package/dist/cjs/{buildForm-CtHZCSpo.js.map → buildForm-BO5Vcxv_.js.map} +1 -1
- package/dist/cjs/{constants-CUBwzMb-.js → constants-D3en9KhN.js} +2 -1
- package/dist/cjs/constants-D3en9KhN.js.map +1 -0
- package/dist/cjs/hooks.js +4 -4
- package/dist/cjs/{index-Bj56Ua86.js → index-B9L6Cdpy.js} +2 -2
- package/dist/cjs/{index-Bj56Ua86.js.map → index-B9L6Cdpy.js.map} +1 -1
- package/dist/cjs/index.js +10 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/{useFormSubmission-DGRHK3u9.js → useFormSubmission-CdbaJ9RK.js} +2 -2
- package/dist/cjs/{useFormSubmission-DGRHK3u9.js.map → useFormSubmission-CdbaJ9RK.js.map} +1 -1
- package/dist/cjs/{utils-Xnit8PUn.js → utils-ojUD_GO6.js} +188 -96
- package/dist/cjs/utils-ojUD_GO6.js.map +1 -0
- package/dist/cjs/v2/BuildForm.js +54 -5
- package/dist/cjs/v2/BuildForm.js.map +1 -1
- 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-DIy-d-Pb.js → constants-DyPOVMyi.js} +2 -1
- package/dist/cjs/v2/constants-DyPOVMyi.js.map +1 -0
- package/dist/cjs/v2/index.js +4 -4
- package/dist/cjs/v2/{utils-DHGS4O20.js → utils-ChwdTdnN.js} +190 -98
- package/dist/cjs/v2/utils-ChwdTdnN.js.map +1 -0
- package/dist/cjs/v2/{yup-B-A1W_Vi.js → yup-CKeWnmJ3.js} +337 -37
- package/dist/cjs/v2/yup-CKeWnmJ3.js.map +1 -0
- package/dist/cjs/{yup-DZgfXVgs.js → yup-DvB9BGdG.js} +340 -39
- package/dist/cjs/yup-DvB9BGdG.js.map +1 -0
- package/dist/{constants-fjoeNdhb.js → constants-ClqQe4qZ.js} +2 -1
- package/dist/constants-ClqQe4qZ.js.map +1 -0
- package/dist/hooks.js +4 -4
- package/dist/{index-Cx0yvXwJ.js → index-CAR9-spo.js} +2 -2
- package/dist/{index-Cx0yvXwJ.js.map → index-CAR9-spo.js.map} +1 -1
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/main.css +1 -1
- package/dist/main.css.map +1 -1
- package/dist/{useFormSubmission-DMpf1msR.js → useFormSubmission-DMRpRRj4.js} +2 -2
- package/dist/{useFormSubmission-DMpf1msR.js.map → useFormSubmission-DMRpRRj4.js.map} +1 -1
- package/dist/{utils-Chj7ZOKi.js → utils-6l6j_LN6.js} +188 -96
- package/dist/utils-6l6j_LN6.js.map +1 -0
- package/dist/v2/BuildForm.js +54 -5
- package/dist/v2/BuildForm.js.map +1 -1
- 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-CZ7swzMG.js → constants-BlY0KFT4.js} +2 -1
- package/dist/v2/constants-BlY0KFT4.js.map +1 -0
- package/dist/v2/index.js +4 -4
- package/dist/v2/main.css +1 -1
- package/dist/v2/main.css.map +1 -1
- package/dist/v2/{utils-CemGJeLy.js → utils-B8sTYkWG.js} +190 -98
- package/dist/v2/utils-B8sTYkWG.js.map +1 -0
- package/dist/v2/{yup-eUr74YY2.js → yup-Cf-x7SqN.js} +336 -39
- package/dist/v2/yup-Cf-x7SqN.js.map +1 -0
- package/dist/{yup-CwN-8JrO.js → yup-7qmI_2fI.js} +338 -40
- package/dist/yup-7qmI_2fI.js.map +1 -0
- package/package.json +16 -16
- package/dist/cjs/constants-CUBwzMb-.js.map +0 -1
- package/dist/cjs/utils-Xnit8PUn.js.map +0 -1
- package/dist/cjs/v2/constants-DIy-d-Pb.js.map +0 -1
- package/dist/cjs/v2/utils-DHGS4O20.js.map +0 -1
- package/dist/cjs/v2/yup-B-A1W_Vi.js.map +0 -1
- package/dist/cjs/yup-DZgfXVgs.js.map +0 -1
- package/dist/constants-fjoeNdhb.js.map +0 -1
- package/dist/utils-Chj7ZOKi.js.map +0 -1
- package/dist/v2/constants-CZ7swzMG.js.map +0 -1
- package/dist/v2/utils-CemGJeLy.js.map +0 -1
- package/dist/v2/yup-eUr74YY2.js.map +0 -1
- package/dist/yup-CwN-8JrO.js.map +0 -1
|
@@ -4,7 +4,7 @@ require('@babel/runtime/helpers/typeof');
|
|
|
4
4
|
var i18next = require('i18next');
|
|
5
5
|
var utils = require('@bigbinary/neeto-editor/utils');
|
|
6
6
|
var ramda = require('ramda');
|
|
7
|
-
var constants = require('./constants-
|
|
7
|
+
var constants = require('./constants-D3en9KhN.js');
|
|
8
8
|
|
|
9
9
|
var isBlank = ramda.compose(ramda.isEmpty, ramda.trim);
|
|
10
10
|
var parseServerError = function parseServerError(error) {
|
|
@@ -48,4 +48,4 @@ exports.isEmptyValues = isEmptyValues;
|
|
|
48
48
|
exports.isFunction = isFunction;
|
|
49
49
|
exports.isNameQuestion = isNameQuestion;
|
|
50
50
|
exports.parseServerError = parseServerError;
|
|
51
|
-
//# sourceMappingURL=index-
|
|
51
|
+
//# sourceMappingURL=index-B9L6Cdpy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-B9L6Cdpy.js","sources":["../../app/javascript/src/utils/index.js"],"sourcesContent":["import { t } from \"i18next\";\nimport { isEditorEmpty } from \"neetoeditor\";\nimport {\n compose,\n isEmpty,\n trim,\n isNil,\n equals,\n values,\n either,\n useWith,\n path,\n split,\n isNotNil,\n} from \"ramda\";\n\nimport { QUESTION_TYPES } from \"components/constants\";\n\nexport const isBlank = compose(isEmpty, trim);\n\nexport const parseServerError = error =>\n error.notice ?? t(\"neetoForm.common.somethingWentWrong\");\n\nexport const isPlainObject = obj =>\n typeof obj === \"object\" && !Array.isArray(obj) && obj !== null;\n\nexport const isStringOrNumber = obj =>\n typeof obj === \"string\" || typeof obj === \"number\";\n\nexport const isEmptyValues = obj =>\n either(isNil, isEmpty)(obj)\n ? true\n : values(obj).every(value => {\n if (isEmpty(value)) {\n return true;\n } else if (Array.isArray(value)) {\n return equals([false, false, false], value);\n }\n\n return !value;\n });\n\n// eslint-disable-next-line react-hooks/rules-of-hooks\nexport const dotPath = useWith(path, [split(\".\")]);\n\nexport const isFunction = obj => typeof obj === \"function\";\n\nexport const fieldWithFallback = (\n question,\n fieldName,\n hasRichContent = false\n) => {\n const fallback = question[`${fieldName}Fallback`];\n const field = question[fieldName];\n const isFieldEmpty = hasRichContent ? isEditorEmpty(field) : isEmpty(field);\n\n return isFieldEmpty && isNotNil(fallback) ? fallback : field;\n};\n\nexport const getComponentDisplayName = Component =>\n Component.displayName || Component.name || \"Component\";\n\nexport const isNameQuestion = kind => kind === QUESTION_TYPES.NAME;\n"],"names":["isBlank","compose","isEmpty","trim","parseServerError","error","_error$notice","notice","t","isEmptyValues","obj","either","isNil","values","every","value","Array","isArray","equals","useWith","path","split","isFunction","fieldWithFallback","question","fieldName","hasRichContent","arguments","length","undefined","fallback","concat","field","isFieldEmpty","isEditorEmpty","isNotNil","getComponentDisplayName","Component","displayName","name","isNameQuestion","kind","QUESTION_TYPES","NAME"],"mappings":";;;;;;;;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N,QAAQ,IAAAO,MAAA,CAAIN,SAAS,EAAA,UAAA,CAAA,CAAW;AACjD,EAAA,IAAMO,KAAK,GAAGR,QAAQ,CAACC,SAAS,CAAC;AACjC,EAAA,IAAMQ,YAAY,GAAGP,cAAc,GAAGQ,mBAAa,CAACF,KAAK,CAAC,GAAG9B,aAAO,CAAC8B,KAAK,CAAC;EAE3E,OAAOC,YAAY,IAAIE,cAAQ,CAACL,QAAQ,CAAC,GAAGA,QAAQ,GAAGE,KAAK;AAC9D;IAEaI,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAGC,SAAS,EAAA;EAAA,OAC9CA,SAAS,CAACC,WAAW,IAAID,SAAS,CAACE,IAAI,IAAI,WAAW;AAAA;IAE3CC,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,IAAI,EAAA;AAAA,EAAA,OAAIA,IAAI,KAAKC,wBAAc,CAACC,IAAI;AAAA;;;;;;;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -5,20 +5,21 @@ var NeetoFormProvider = require('./NeetoFormProvider.js');
|
|
|
5
5
|
var ExternalForm = require('./ExternalForm.js');
|
|
6
6
|
var Submission = require('./Submission.js');
|
|
7
7
|
var UrlBuilder = require('./UrlBuilder.js');
|
|
8
|
-
var constants = require('./constants-
|
|
9
|
-
var useFormSubmission = require('./useFormSubmission-
|
|
10
|
-
var buildForm = require('./buildForm-
|
|
8
|
+
var constants = require('./constants-D3en9KhN.js');
|
|
9
|
+
var useFormSubmission = require('./useFormSubmission-CdbaJ9RK.js');
|
|
10
|
+
var buildForm = require('./buildForm-BO5Vcxv_.js');
|
|
11
11
|
require('@tanstack/react-query');
|
|
12
12
|
require('classnames');
|
|
13
13
|
require('@bigbinary/neeto-cist');
|
|
14
14
|
require('@bigbinary/neetoui/Spinner');
|
|
15
15
|
require('ramda');
|
|
16
|
-
require('./yup-
|
|
16
|
+
require('./yup-DvB9BGdG.js');
|
|
17
17
|
require('i18next');
|
|
18
|
-
require('react');
|
|
19
|
-
require('@babel/runtime/helpers/toConsumableArray');
|
|
20
18
|
require('@babel/runtime/helpers/defineProperty');
|
|
21
19
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
20
|
+
require('react');
|
|
21
|
+
require('react/jsx-runtime');
|
|
22
|
+
require('@babel/runtime/helpers/toConsumableArray');
|
|
22
23
|
require('@bigbinary/neeto-icons/Address');
|
|
23
24
|
require('@bigbinary/neeto-icons/Calendar');
|
|
24
25
|
require('@bigbinary/neeto-icons/Captcha');
|
|
@@ -41,9 +42,9 @@ require('@bigbinary/neeto-icons/Sms');
|
|
|
41
42
|
require('@bigbinary/neeto-icons/Terms');
|
|
42
43
|
require('@bigbinary/neeto-icons/TextLines');
|
|
43
44
|
require('@bigbinary/neeto-icons/UserRoundedRect');
|
|
44
|
-
require('
|
|
45
|
+
require('@bigbinary/neeto-icons/YesNo');
|
|
45
46
|
require('dompurify');
|
|
46
|
-
require('./index-
|
|
47
|
+
require('./index-B9L6Cdpy.js');
|
|
47
48
|
require('@babel/runtime/helpers/typeof');
|
|
48
49
|
require('@bigbinary/neeto-editor/utils');
|
|
49
50
|
require('@bigbinary/neeto-icons/Plus');
|
|
@@ -95,7 +96,7 @@ require('@bigbinary/neeto-icons/Warning');
|
|
|
95
96
|
require('@bigbinary/neeto-molecules/PageLoader');
|
|
96
97
|
require('@bigbinary/neetoui/Callout');
|
|
97
98
|
require('@bigbinary/neeto-icons/Check');
|
|
98
|
-
require('./utils-
|
|
99
|
+
require('./utils-ojUD_GO6.js');
|
|
99
100
|
require('libphonenumber-js');
|
|
100
101
|
require('@bigbinary/neeto-editor/EditorContent');
|
|
101
102
|
require('@bigbinary/neetoui/MultiEmailInput');
|
package/dist/cjs/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-D3en9KhN.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-CdbaJ9RK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormSubmission-
|
|
1
|
+
{"version":3,"file":"useFormSubmission-CdbaJ9RK.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,KAAA,MAAA,GAAG,EAAE,GAAAA,WAAA;IAAAE,iBAAA,GAAAH,IAAA,CAAEI,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAA,MAAA,GAAG,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;;;;"}
|