@redneckz/wildless-cms-uni-blocks 0.14.943 → 0.14.944
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/bundle/bundle.umd.js +7 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/handlers.d.ts +2 -1
- package/dist/components/ApplicationForm/ApplicationForm.js +4 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/handlers.d.ts +2 -1
- package/dist/components/ApplicationForm/handlers.js +2 -2
- package/dist/components/ApplicationForm/handlers.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +4 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/handlers.d.ts +2 -1
- package/lib/components/ApplicationForm/handlers.js +2 -2
- package/lib/components/ApplicationForm/handlers.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +7 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/handlers.d.ts +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +4 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/handlers.d.ts +2 -1
- package/mobile/dist/components/ApplicationForm/handlers.js +2 -2
- package/mobile/dist/components/ApplicationForm/handlers.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +4 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/handlers.d.ts +2 -1
- package/mobile/lib/components/ApplicationForm/handlers.js +2 -2
- package/mobile/lib/components/ApplicationForm/handlers.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +2 -0
- package/mobile/src/components/ApplicationForm/handlers.ts +3 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/handlers.ts +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -1924,8 +1924,8 @@
|
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
1926
1926
|
};
|
|
1927
|
-
const handleDefault = async ({ formatData, data, aspects = {}, ev, router, responseTypeDialog, }) => {
|
|
1928
|
-
const ok = Boolean(await API$2.send(formatData, router,
|
|
1927
|
+
const handleDefault = async ({ formatData, data, aspects = {}, ev, router, responseTypeDialog, endpoint, }) => {
|
|
1928
|
+
const ok = Boolean(await API$2.send(formatData, router, endpoint === 'lead'));
|
|
1929
1929
|
responseTypeDialog.open({ ok });
|
|
1930
1930
|
if (ok) {
|
|
1931
1931
|
handleAspects({ aspectsAttributes: data, aspects, ev });
|
|
@@ -3044,7 +3044,9 @@
|
|
|
3044
3044
|
callback: handleCallback,
|
|
3045
3045
|
default: handleDefault,
|
|
3046
3046
|
};
|
|
3047
|
-
const ApplicationForm = UniBlock(
|
|
3047
|
+
const ApplicationForm = UniBlock(
|
|
3048
|
+
// eslint-disable-next-line max-lines-per-function
|
|
3049
|
+
({ className, title, typeForm = '', sections = [], button, link, endpoint, additionalParams, isContacts, data, onSuccess, ...rest }) => {
|
|
3048
3050
|
const inputs = useMemo(() => (sections?.flatMap((_) => _?.inputs) || []), [sections]);
|
|
3049
3051
|
const initialFormState = useMemo(() => getInitialFormState$2(inputs, typeForm), [inputs, typeForm]);
|
|
3050
3052
|
const router = useRouter();
|
|
@@ -3064,6 +3066,7 @@
|
|
|
3064
3066
|
responseTypeDialog,
|
|
3065
3067
|
verifyPhoneDialog,
|
|
3066
3068
|
onSuccess,
|
|
3069
|
+
endpoint,
|
|
3067
3070
|
});
|
|
3068
3071
|
}, [typeForm]);
|
|
3069
3072
|
const [, { field, onSubmit }] = useForm(initialFormState, {
|
|
@@ -12591,7 +12594,7 @@
|
|
|
12591
12594
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
12592
12595
|
});
|
|
12593
12596
|
|
|
12594
|
-
const packageVersion = "0.14.
|
|
12597
|
+
const packageVersion = "0.14.943";
|
|
12595
12598
|
|
|
12596
12599
|
exports.Blocks = Blocks;
|
|
12597
12600
|
exports.ContentPage = ContentPage;
|