@bigbinary/neeto-form-frontend 4.4.27 → 4.4.28
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/.ready +1 -1
- package/dist/BuildForm.js +12 -11
- package/dist/BuildForm.js.map +1 -1
- package/dist/ExternalForm.js +4 -4
- package/dist/Submission.js +1 -1
- package/dist/UrlBuilder.js +4 -4
- package/dist/{buildForm-CrOWLvLE.js → buildForm-DZ6Bl-ye.js} +2 -2
- package/dist/{buildForm-CrOWLvLE.js.map → buildForm-DZ6Bl-ye.js.map} +1 -1
- package/dist/cjs/BuildForm.js +12 -11
- package/dist/cjs/BuildForm.js.map +1 -1
- package/dist/cjs/ExternalForm.js +4 -4
- package/dist/cjs/Submission.js +1 -1
- package/dist/cjs/UrlBuilder.js +4 -4
- package/dist/{buildForm-DfMpfuSp.js → cjs/buildForm-CC9itFZl.js} +2 -2
- package/dist/cjs/buildForm-CC9itFZl.js.map +1 -0
- package/dist/{constants-D5JlvWws.js → cjs/constants-BMSFHZ0w.js} +13 -13
- package/dist/cjs/constants-BMSFHZ0w.js.map +1 -0
- package/dist/cjs/hooks.js +4 -4
- package/dist/{index-Beo6ztaM.js → cjs/index-BQ76EIiQ.js} +2 -2
- package/dist/cjs/index-BQ76EIiQ.js.map +1 -0
- package/dist/cjs/index.js +6 -6
- package/dist/{useFormSubmission-D3O7sDHp.js → cjs/useFormSubmission-CFV6smu9.js} +2 -2
- package/dist/cjs/useFormSubmission-CFV6smu9.js.map +1 -0
- package/dist/{utils-DBhM5B2L.js → cjs/utils-BznuQ58u.js} +37 -37
- package/dist/cjs/utils-BznuQ58u.js.map +1 -0
- package/dist/cjs/v2/BuildForm.js +3236 -0
- package/dist/cjs/v2/BuildForm.js.map +1 -0
- package/dist/cjs/v2/ExternalForm.js +661 -0
- package/dist/cjs/v2/ExternalForm.js.map +1 -0
- package/dist/cjs/v2/NeetoFormProvider.js +13 -0
- package/dist/cjs/v2/NeetoFormProvider.js.map +1 -0
- package/dist/cjs/v2/Submission.js +2836 -0
- package/dist/cjs/v2/Submission.js.map +1 -0
- package/dist/cjs/v2/UrlBuilder.js +352 -0
- package/dist/cjs/v2/UrlBuilder.js.map +1 -0
- package/dist/cjs/v2/buildForm-bsda0SF2.js +38 -0
- package/dist/cjs/v2/buildForm-bsda0SF2.js.map +1 -0
- package/dist/cjs/v2/constants-8Qh_klGy.js +36 -0
- package/dist/cjs/v2/constants-8Qh_klGy.js.map +1 -0
- package/dist/cjs/v2/hooks.js +33 -0
- package/dist/cjs/v2/hooks.js.map +1 -0
- package/dist/cjs/v2/index-C1-XsBQ0.js +21 -0
- package/dist/cjs/v2/index-C1-XsBQ0.js.map +1 -0
- package/dist/cjs/v2/index.js +112 -0
- package/dist/cjs/v2/index.js.map +1 -0
- package/dist/cjs/v2/useFormApi-DD0_MxNV.js +480 -0
- package/dist/cjs/v2/useFormApi-DD0_MxNV.js.map +1 -0
- package/dist/cjs/v2/useFormSubmission-BWH7QxuC.js +24 -0
- package/dist/cjs/v2/useFormSubmission-BWH7QxuC.js.map +1 -0
- package/dist/cjs/v2/utils-DxDOZ8uO.js +2793 -0
- package/dist/cjs/v2/utils-DxDOZ8uO.js.map +1 -0
- package/dist/cjs/v2/yup-D0709IcB.js +1177 -0
- package/dist/cjs/v2/yup-D0709IcB.js.map +1 -0
- package/dist/{yup-DoKhabp1.js → cjs/yup-W5RzIslJ.js} +3 -3
- package/dist/cjs/yup-W5RzIslJ.js.map +1 -0
- package/dist/{constants-Cj0XxE8a.js → constants-BV0Ig0ag.js} +13 -13
- package/dist/constants-BV0Ig0ag.js.map +1 -0
- package/dist/hooks.js +4 -4
- package/dist/{index-DhtQJpD_.js → index-DE7lvoSf.js} +2 -2
- package/dist/{index-DhtQJpD_.js.map → index-DE7lvoSf.js.map} +1 -1
- package/dist/index.js +6 -6
- package/dist/{useFormSubmission-PLRMfzJ3.js → useFormSubmission-CBP1Vu7h.js} +2 -2
- package/dist/{useFormSubmission-PLRMfzJ3.js.map → useFormSubmission-CBP1Vu7h.js.map} +1 -1
- package/dist/{utils-BPAW-N7-.js → utils-CamvCi6R.js} +37 -37
- package/dist/utils-CamvCi6R.js.map +1 -0
- package/dist/v2/BuildForm.js +3215 -0
- package/dist/v2/BuildForm.js.map +1 -0
- package/dist/v2/ExternalForm.js +659 -0
- package/dist/v2/ExternalForm.js.map +1 -0
- package/dist/v2/NeetoFormProvider.js +11 -0
- package/dist/v2/NeetoFormProvider.js.map +1 -0
- package/dist/v2/Submission.js +2834 -0
- package/dist/v2/Submission.js.map +1 -0
- package/dist/v2/UrlBuilder.js +350 -0
- package/dist/v2/UrlBuilder.js.map +1 -0
- package/dist/v2/buildForm-CpdYPz4r.js +35 -0
- package/dist/v2/buildForm-CpdYPz4r.js.map +1 -0
- package/dist/v2/constants-C8P1Mxiw.js +33 -0
- package/dist/v2/constants-C8P1Mxiw.js.map +1 -0
- package/dist/v2/hooks.js +20 -0
- package/dist/v2/hooks.js.map +1 -0
- package/dist/v2/index-CUrkh_zd.js +18 -0
- package/dist/v2/index-CUrkh_zd.js.map +1 -0
- package/dist/v2/index.js +94 -0
- package/dist/v2/index.js.map +1 -0
- package/dist/v2/main.css +2 -0
- package/dist/v2/main.css.map +1 -0
- package/dist/v2/useFormApi-B5a0zkAT.js +463 -0
- package/dist/v2/useFormApi-B5a0zkAT.js.map +1 -0
- package/dist/v2/useFormSubmission-PDJDRUfF.js +22 -0
- package/dist/v2/useFormSubmission-PDJDRUfF.js.map +1 -0
- package/dist/v2/utils-wCXQvtSj.js +2762 -0
- package/dist/v2/utils-wCXQvtSj.js.map +1 -0
- package/dist/v2/yup-CKd8MXQx.js +1087 -0
- package/dist/v2/yup-CKd8MXQx.js.map +1 -0
- package/dist/{yup-DfQmQc3v.js → yup-DEHT0L38.js} +3 -3
- package/dist/{yup-DfQmQc3v.js.map → yup-DEHT0L38.js.map} +1 -1
- package/package.json +29 -14
- package/dist/buildForm-DfMpfuSp.js.map +0 -1
- package/dist/constants-Cj0XxE8a.js.map +0 -1
- package/dist/constants-D5JlvWws.js.map +0 -1
- package/dist/index-Beo6ztaM.js.map +0 -1
- package/dist/useFormSubmission-D3O7sDHp.js.map +0 -1
- package/dist/utils-BPAW-N7-.js.map +0 -1
- package/dist/utils-DBhM5B2L.js.map +0 -1
- package/dist/yup-DoKhabp1.js.map +0 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var i18next = require('i18next');
|
|
4
|
+
var neetoCist = require('@bigbinary/neeto-cist');
|
|
5
|
+
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
6
|
+
var ramda = require('ramda');
|
|
7
|
+
var zustand = require('zustand');
|
|
8
|
+
var index = require('./index-C1-XsBQ0.js');
|
|
9
|
+
|
|
10
|
+
/** @type {import("neetocommons/react-utils").ZustandStoreHook} */
|
|
11
|
+
var useBuildFormStore = zustand.create(reactUtils.withImmutableActions(function (set) {
|
|
12
|
+
return {
|
|
13
|
+
formState: {
|
|
14
|
+
selectedLanguage: i18next.resolvedLanguage,
|
|
15
|
+
onLanguageChange: neetoCist.noop,
|
|
16
|
+
formId: null,
|
|
17
|
+
enabled: false,
|
|
18
|
+
title: "",
|
|
19
|
+
helpDocUrls: {},
|
|
20
|
+
isUsingDefaultQuestionKinds: true,
|
|
21
|
+
usesCustomSubmissionComponent: false,
|
|
22
|
+
hostSpecificData: {},
|
|
23
|
+
isReorderingQuestions: false,
|
|
24
|
+
onMutateSuccess: neetoCist.noop,
|
|
25
|
+
isPictureChoiceEnabled: false
|
|
26
|
+
},
|
|
27
|
+
setFormData: function setFormData(arg) {
|
|
28
|
+
return set(ramda.modify("formState", index.isFunction(arg) ? arg : ramda.mergeLeft(arg)));
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
}));
|
|
32
|
+
var useBuildFormState = function useBuildFormState() {
|
|
33
|
+
return useBuildFormStore(ramda.prop("formState"));
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
exports.useBuildFormState = useBuildFormState;
|
|
37
|
+
exports.useBuildFormStore = useBuildFormStore;
|
|
38
|
+
//# sourceMappingURL=buildForm-bsda0SF2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildForm-bsda0SF2.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,cAAM,CAC9BC,+BAAoB,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;AAC3BC,IAAAA,SAAS,EAAE;MACTC,gBAAgB,EAAEC,OAAO,CAACC,gBAAgB;AAC1CC,MAAAA,gBAAgB,EAAEC,cAAI;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,cAAI;AACrBU,MAAAA,sBAAsB,EAAE;KACzB;AAEDC,IAAAA,WAAW,EAAE,SAAbA,WAAWA,CAAEC,GAAG,EAAA;AAAA,MAAA,OACdlB,GAAG,CAACmB,YAAM,CAAC,WAAW,EAAEC,gBAAU,CAACF,GAAG,CAAC,GAAGA,GAAG,GAAGG,eAAS,CAACH,GAAG,CAAC,CAAC,CAAC;AAAA,IAAA;GACnE;AAAA,CAAC,CACJ;AAEO,IAAMI,iBAAiB,GAAG,SAApBA,iBAAiBA,GAAA;AAAA,EAAA,OAASzB,iBAAiB,CAAC0B,UAAI,CAAC,WAAW,CAAC,CAAC;AAAA;;;;;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var QUESTION_TYPES = {
|
|
4
|
+
NAME: "name",
|
|
5
|
+
PHONE: "phone",
|
|
6
|
+
EMAIL: "email",
|
|
7
|
+
ADDITIONAL_GUESTS: "additional_guests",
|
|
8
|
+
TEXT: "text",
|
|
9
|
+
TEXTAREA: "textarea",
|
|
10
|
+
RICH_TEXT: "rich_text",
|
|
11
|
+
INTEGER: "integer",
|
|
12
|
+
DECIMAL: "decimal",
|
|
13
|
+
PARAGRAPH: "paragraph",
|
|
14
|
+
TERMS_AND_CONDITION: "termsandcondition",
|
|
15
|
+
CONDITION: "condition",
|
|
16
|
+
CHECKBOX: "checkbox",
|
|
17
|
+
RADIO: "radio",
|
|
18
|
+
DROPDOWN: "dropdown",
|
|
19
|
+
STAR_RATING: "star_rating",
|
|
20
|
+
OPINION_SCALE: "opinion_scale",
|
|
21
|
+
RATING: "rating",
|
|
22
|
+
DATE: "date",
|
|
23
|
+
FILE_UPLOAD: "file_upload",
|
|
24
|
+
CAPTCHA: "captcha",
|
|
25
|
+
SMS_REMINDER: "sms_reminder",
|
|
26
|
+
SPOT: "spot",
|
|
27
|
+
ADDRESS: "address"
|
|
28
|
+
};
|
|
29
|
+
var CAPTCHA_TYPES = {
|
|
30
|
+
RECAPTCHA_V2: "recaptcha_v2",
|
|
31
|
+
MATH_CAPTCHA: "math_captcha"
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
exports.CAPTCHA_TYPES = CAPTCHA_TYPES;
|
|
35
|
+
exports.QUESTION_TYPES = QUESTION_TYPES;
|
|
36
|
+
//# sourceMappingURL=constants-8Qh_klGy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-8Qh_klGy.js","sources":["../../../app/javascript/src/v2/components/constants.js"],"sourcesContent":["export const QUESTION_TYPES = {\n NAME: \"name\",\n PHONE: \"phone\",\n EMAIL: \"email\",\n ADDITIONAL_GUESTS: \"additional_guests\",\n TEXT: \"text\",\n TEXTAREA: \"textarea\",\n RICH_TEXT: \"rich_text\",\n INTEGER: \"integer\",\n DECIMAL: \"decimal\",\n PARAGRAPH: \"paragraph\",\n TERMS_AND_CONDITION: \"termsandcondition\",\n CONDITION: \"condition\",\n CHECKBOX: \"checkbox\",\n RADIO: \"radio\",\n DROPDOWN: \"dropdown\",\n STAR_RATING: \"star_rating\",\n OPINION_SCALE: \"opinion_scale\",\n RATING: \"rating\",\n DATE: \"date\",\n FILE_UPLOAD: \"file_upload\",\n CAPTCHA: \"captcha\",\n SMS_REMINDER: \"sms_reminder\",\n SPOT: \"spot\",\n ADDRESS: \"address\",\n};\n\nexport const CAPTCHA_TYPES = {\n RECAPTCHA_V2: \"recaptcha_v2\",\n MATH_CAPTCHA: \"math_captcha\",\n};\n"],"names":["QUESTION_TYPES","NAME","PHONE","EMAIL","ADDITIONAL_GUESTS","TEXT","TEXTAREA","RICH_TEXT","INTEGER","DECIMAL","PARAGRAPH","TERMS_AND_CONDITION","CONDITION","CHECKBOX","RADIO","DROPDOWN","STAR_RATING","OPINION_SCALE","RATING","DATE","FILE_UPLOAD","CAPTCHA","SMS_REMINDER","SPOT","ADDRESS","CAPTCHA_TYPES","RECAPTCHA_V2","MATH_CAPTCHA"],"mappings":";;AAAO,IAAMA,cAAc,GAAG;AAC5BC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,iBAAiB,EAAE,mBAAmB;AACtCC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,mBAAmB,EAAE,mBAAmB;AACxCC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,WAAW,EAAE,aAAa;AAC1BC,EAAAA,aAAa,EAAE,eAAe;AAC9BC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,WAAW,EAAE,aAAa;AAC1BC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,YAAY,EAAE,cAAc;AAC5BC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,OAAO,EAAE;AACX;AAEO,IAAMC,aAAa,GAAG;AAC3BC,EAAAA,YAAY,EAAE,cAAc;AAC5BC,EAAAA,YAAY,EAAE;AAChB;;;;;"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var useFormApi = require('./useFormApi-DD0_MxNV.js');
|
|
4
|
+
var useFormSubmission = require('./useFormSubmission-BWH7QxuC.js');
|
|
5
|
+
var buildForm = require('./buildForm-bsda0SF2.js');
|
|
6
|
+
require('@babel/runtime/helpers/toConsumableArray');
|
|
7
|
+
require('@babel/runtime/helpers/defineProperty');
|
|
8
|
+
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
9
|
+
require('@tanstack/react-query');
|
|
10
|
+
require('i18next');
|
|
11
|
+
require('@bigbinary/neeto-cist');
|
|
12
|
+
require('@bigbinary/neeto-commons-frontend/constants');
|
|
13
|
+
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
14
|
+
require('ramda');
|
|
15
|
+
require('axios');
|
|
16
|
+
require('@bigbinary/neeto-commons-frontend/utils');
|
|
17
|
+
require('@babel/runtime/helpers/slicedToArray');
|
|
18
|
+
require('zustand');
|
|
19
|
+
require('./index-C1-XsBQ0.js');
|
|
20
|
+
require('@babel/runtime/helpers/typeof');
|
|
21
|
+
require('@bigbinary/neeto-editor/utils');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
exports.useCreateForm = useFormApi.useCreateForm;
|
|
26
|
+
exports.useDeleteForm = useFormApi.useDeleteForm;
|
|
27
|
+
exports.useForm = useFormApi.useForm;
|
|
28
|
+
exports.useForms = useFormApi.useForms;
|
|
29
|
+
exports.usePublicForm = useFormApi.usePublicForm;
|
|
30
|
+
exports.useUpdateForm = useFormApi.useUpdateForm;
|
|
31
|
+
exports.useFormSubmission = useFormSubmission.useFormSubmission;
|
|
32
|
+
exports.useBuildFormState = buildForm.useBuildFormState;
|
|
33
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('@babel/runtime/helpers/typeof');
|
|
4
|
+
require('i18next');
|
|
5
|
+
require('@bigbinary/neeto-editor/utils');
|
|
6
|
+
var ramda = require('ramda');
|
|
7
|
+
|
|
8
|
+
ramda.compose(ramda.isEmpty, ramda.trim);
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
11
|
+
ramda.useWith(ramda.path, [ramda.split(".")]);
|
|
12
|
+
var isFunction = function isFunction(obj) {
|
|
13
|
+
return typeof obj === "function";
|
|
14
|
+
};
|
|
15
|
+
var getComponentDisplayName = function getComponentDisplayName(Component) {
|
|
16
|
+
return Component.displayName || Component.name || "Component";
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.getComponentDisplayName = getComponentDisplayName;
|
|
20
|
+
exports.isFunction = isFunction;
|
|
21
|
+
//# sourceMappingURL=index-C1-XsBQ0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-C1-XsBQ0.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":["compose","isEmpty","trim","useWith","path","split","isFunction","obj","getComponentDisplayName","Component","displayName","name"],"mappings":";;;;;;;AAkBuBA,aAAO,CAACC,aAAO,EAAEC,UAAI;;AAwB5C;AACuBC,aAAO,CAACC,UAAI,EAAE,CAACC,WAAK,CAAC,GAAG,CAAC,CAAC;IAEpCC,UAAU,GAAG,SAAbA,UAAUA,CAAGC,GAAG,EAAA;EAAA,OAAI,OAAOA,GAAG,KAAK,UAAU;AAAA;IAc7CC,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAGC,SAAS,EAAA;EAAA,OAC9CA,SAAS,CAACC,WAAW,IAAID,SAAS,CAACE,IAAI,IAAI,WAAW;AAAA;;;;;"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var v2_BuildForm = require('./BuildForm.js');
|
|
4
|
+
var v2_NeetoFormProvider = require('./NeetoFormProvider.js');
|
|
5
|
+
var v2_ExternalForm = require('./ExternalForm.js');
|
|
6
|
+
var v2_Submission = require('./Submission.js');
|
|
7
|
+
var v2_UrlBuilder = require('./UrlBuilder.js');
|
|
8
|
+
var useFormApi = require('./useFormApi-DD0_MxNV.js');
|
|
9
|
+
var useFormSubmission = require('./useFormSubmission-BWH7QxuC.js');
|
|
10
|
+
var buildForm = require('./buildForm-bsda0SF2.js');
|
|
11
|
+
require('@bigbinary/neeto-atoms');
|
|
12
|
+
require('@tanstack/react-query');
|
|
13
|
+
require('classnames');
|
|
14
|
+
require('@bigbinary/neeto-cist');
|
|
15
|
+
require('ramda');
|
|
16
|
+
require('./yup-D0709IcB.js');
|
|
17
|
+
require('i18next');
|
|
18
|
+
require('react');
|
|
19
|
+
require('@babel/runtime/helpers/toConsumableArray');
|
|
20
|
+
require('@babel/runtime/helpers/defineProperty');
|
|
21
|
+
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
22
|
+
require('@bigbinary/neeto-icons/Address');
|
|
23
|
+
require('@bigbinary/neeto-icons/Calendar');
|
|
24
|
+
require('@bigbinary/neeto-icons/Captcha');
|
|
25
|
+
require('@bigbinary/neeto-icons/Checkbox');
|
|
26
|
+
require('@bigbinary/neeto-icons/DropdownClosed');
|
|
27
|
+
require('@bigbinary/neeto-icons/Email');
|
|
28
|
+
require('@bigbinary/neeto-icons/FileUpload');
|
|
29
|
+
require('@bigbinary/neeto-icons/Group');
|
|
30
|
+
require('@bigbinary/neeto-icons/Hash');
|
|
31
|
+
require('@bigbinary/neeto-icons/Header');
|
|
32
|
+
require('@bigbinary/neeto-icons/Location');
|
|
33
|
+
require('@bigbinary/neeto-icons/LongText');
|
|
34
|
+
require('@bigbinary/neeto-icons/MessageSquare');
|
|
35
|
+
require('@bigbinary/neeto-icons/NeetoInvisible');
|
|
36
|
+
require('@bigbinary/neeto-icons/PhoneRing');
|
|
37
|
+
require('@bigbinary/neeto-icons/Radio');
|
|
38
|
+
require('@bigbinary/neeto-icons/Rating');
|
|
39
|
+
require('@bigbinary/neeto-icons/Scale');
|
|
40
|
+
require('@bigbinary/neeto-icons/Sms');
|
|
41
|
+
require('@bigbinary/neeto-icons/Terms');
|
|
42
|
+
require('@bigbinary/neeto-icons/TextLines');
|
|
43
|
+
require('@bigbinary/neeto-icons/UserRoundedRect');
|
|
44
|
+
require('./constants-8Qh_klGy.js');
|
|
45
|
+
require('react/jsx-runtime');
|
|
46
|
+
require('dompurify');
|
|
47
|
+
require('@babel/runtime/helpers/typeof');
|
|
48
|
+
require('@bigbinary/neeto-editor/v2/utils');
|
|
49
|
+
require('@bigbinary/neeto-icons/Plus');
|
|
50
|
+
require('yup');
|
|
51
|
+
require('@babel/runtime/helpers/slicedToArray');
|
|
52
|
+
require('@hello-pangea/dnd');
|
|
53
|
+
require('@bigbinary/neeto-commons-frontend/v2/react-utils');
|
|
54
|
+
require('@bigbinary/neeto-commons-frontend/v2/utils');
|
|
55
|
+
require('zustand/shallow');
|
|
56
|
+
require('react-i18next');
|
|
57
|
+
require('@bigbinary/neeto-molecules/v2/MoreDropdown');
|
|
58
|
+
require('@bigbinary/neeto-icons/Equals');
|
|
59
|
+
require('uuid');
|
|
60
|
+
require('@bigbinary/neeto-atoms/formik');
|
|
61
|
+
require('formik');
|
|
62
|
+
require('@bigbinary/neeto-editor/v2/Editor');
|
|
63
|
+
require('@bigbinary/neeto-molecules/v2/OptionFields');
|
|
64
|
+
require('framer-motion');
|
|
65
|
+
require('react-select/creatable');
|
|
66
|
+
require('@babel/runtime/helpers/toArray');
|
|
67
|
+
require('@bigbinary/neeto-icons/Close');
|
|
68
|
+
require('react-select');
|
|
69
|
+
require('@babel/runtime/helpers/asyncToGenerator');
|
|
70
|
+
require('@babel/runtime/regenerator');
|
|
71
|
+
require('@bigbinary/neeto-molecules/v2/HelpPopover');
|
|
72
|
+
require('@bigbinary/neeto-hotkeys');
|
|
73
|
+
require('@bigbinary/neeto-icons/Warning');
|
|
74
|
+
require('@bigbinary/neeto-molecules/v2/PageLoader');
|
|
75
|
+
require('./index-C1-XsBQ0.js');
|
|
76
|
+
require('@bigbinary/neeto-editor/utils');
|
|
77
|
+
require('./utils-DxDOZ8uO.js');
|
|
78
|
+
require('@bigbinary/neeto-commons-frontend/utils');
|
|
79
|
+
require('libphonenumber-js');
|
|
80
|
+
require('@bigbinary/neeto-editor/v2/EditorContent');
|
|
81
|
+
require('@bigbinary/neeto-molecules/v2/PhoneNumber');
|
|
82
|
+
require('@bigbinary/neeto-icons/Refresh');
|
|
83
|
+
require('@bigbinary/neeto-commons-frontend/v2/initializers');
|
|
84
|
+
require('react-google-recaptcha');
|
|
85
|
+
require('axios');
|
|
86
|
+
require('@bigbinary/neeto-icons/CheckCircle');
|
|
87
|
+
require('@bigbinary/neeto-molecules/v2/FileUpload');
|
|
88
|
+
require('@bigbinary/neeto-icons/Image');
|
|
89
|
+
require('@bigbinary/neeto-icons/Info');
|
|
90
|
+
require('@bigbinary/neeto-icons/Check');
|
|
91
|
+
require('@honeybadger-io/js');
|
|
92
|
+
require('@bigbinary/neeto-molecules/v2/CopyToClipboardButton');
|
|
93
|
+
require('@bigbinary/neeto-commons-frontend/constants');
|
|
94
|
+
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
95
|
+
require('zustand');
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
exports.BuildForm = v2_BuildForm;
|
|
100
|
+
exports.NeetoFormProvider = v2_NeetoFormProvider;
|
|
101
|
+
exports.ExternalForm = v2_ExternalForm;
|
|
102
|
+
exports.Submission = v2_Submission;
|
|
103
|
+
exports.UrlBuilder = v2_UrlBuilder;
|
|
104
|
+
exports.useCreateForm = useFormApi.useCreateForm;
|
|
105
|
+
exports.useDeleteForm = useFormApi.useDeleteForm;
|
|
106
|
+
exports.useForm = useFormApi.useForm;
|
|
107
|
+
exports.useForms = useFormApi.useForms;
|
|
108
|
+
exports.usePublicForm = useFormApi.usePublicForm;
|
|
109
|
+
exports.useUpdateForm = useFormApi.useUpdateForm;
|
|
110
|
+
exports.useFormSubmission = useFormSubmission.useFormSubmission;
|
|
111
|
+
exports.useBuildFormState = buildForm.useBuildFormState;
|
|
112
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|