@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.
Files changed (30) hide show
  1. package/bundle/bundle.umd.js +7 -4
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/ApplicationForm/handlers.d.ts +2 -1
  4. package/dist/components/ApplicationForm/ApplicationForm.js +4 -1
  5. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  6. package/dist/components/ApplicationForm/handlers.d.ts +2 -1
  7. package/dist/components/ApplicationForm/handlers.js +2 -2
  8. package/dist/components/ApplicationForm/handlers.js.map +1 -1
  9. package/lib/components/ApplicationForm/ApplicationForm.js +4 -1
  10. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  11. package/lib/components/ApplicationForm/handlers.d.ts +2 -1
  12. package/lib/components/ApplicationForm/handlers.js +2 -2
  13. package/lib/components/ApplicationForm/handlers.js.map +1 -1
  14. package/mobile/bundle/bundle.umd.js +7 -4
  15. package/mobile/bundle/bundle.umd.min.js +1 -1
  16. package/mobile/bundle/components/ApplicationForm/handlers.d.ts +2 -1
  17. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +4 -1
  18. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  19. package/mobile/dist/components/ApplicationForm/handlers.d.ts +2 -1
  20. package/mobile/dist/components/ApplicationForm/handlers.js +2 -2
  21. package/mobile/dist/components/ApplicationForm/handlers.js.map +1 -1
  22. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +4 -1
  23. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  24. package/mobile/lib/components/ApplicationForm/handlers.d.ts +2 -1
  25. package/mobile/lib/components/ApplicationForm/handlers.js +2 -2
  26. package/mobile/lib/components/ApplicationForm/handlers.js.map +1 -1
  27. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +2 -0
  28. package/mobile/src/components/ApplicationForm/handlers.ts +3 -1
  29. package/package.json +1 -1
  30. package/src/components/ApplicationForm/handlers.ts +1 -1
@@ -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, false)); // или проверять endpoint === 'lead'
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(({ className, title, typeForm = '', sections = [], button, link, endpoint, additionalParams, isContacts, data, onSuccess, ...rest }) => {
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.940";
12597
+ const packageVersion = "0.14.943";
12595
12598
 
12596
12599
  exports.Blocks = Blocks;
12597
12600
  exports.ContentPage = ContentPage;