@redneckz/wildless-cms-uni-blocks 0.14.535 → 0.14.537

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 (63) hide show
  1. package/bundle/bundle.umd.js +13 -8
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
  4. package/bundle/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +1 -0
  5. package/dist/components/ApplicationForm/ApplicationForm.js +1 -1
  6. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  7. package/dist/components/ApplicationForm/getField.js +1 -1
  8. package/dist/components/ApplicationForm/getField.js.map +1 -1
  9. package/dist/components/ProductGallery/ProductGallery.js +3 -3
  10. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  11. package/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
  12. package/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js +7 -2
  13. package/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js.map +1 -1
  14. package/dist/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +1 -0
  15. package/dist/ui-kit/ResponseTypeDialog/useResponseTypeDialog.js.map +1 -1
  16. package/lib/common.css +1 -1
  17. package/lib/components/ApplicationForm/ApplicationForm.js +1 -1
  18. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  19. package/lib/components/ApplicationForm/getField.js +1 -1
  20. package/lib/components/ApplicationForm/getField.js.map +1 -1
  21. package/lib/components/ProductGallery/ProductGallery.js +3 -3
  22. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  23. package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
  24. package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js +7 -2
  25. package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js.map +1 -1
  26. package/lib/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +1 -0
  27. package/lib/ui-kit/ResponseTypeDialog/useResponseTypeDialog.js.map +1 -1
  28. package/mobile/bundle/bundle.umd.js +10 -5
  29. package/mobile/bundle/bundle.umd.min.js +1 -1
  30. package/mobile/bundle/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
  31. package/mobile/bundle/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +1 -0
  32. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -1
  33. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  34. package/mobile/dist/components/ApplicationForm/getField.js +1 -1
  35. package/mobile/dist/components/ApplicationForm/getField.js.map +1 -1
  36. package/mobile/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
  37. package/mobile/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js +7 -2
  38. package/mobile/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js.map +1 -1
  39. package/mobile/dist/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +1 -0
  40. package/mobile/dist/ui-kit/ResponseTypeDialog/useResponseTypeDialog.js.map +1 -1
  41. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -1
  42. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  43. package/mobile/lib/components/ApplicationForm/getField.js +1 -1
  44. package/mobile/lib/components/ApplicationForm/getField.js.map +1 -1
  45. package/mobile/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
  46. package/mobile/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js +7 -2
  47. package/mobile/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js.map +1 -1
  48. package/mobile/lib/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +1 -0
  49. package/mobile/lib/ui-kit/ResponseTypeDialog/useResponseTypeDialog.js.map +1 -1
  50. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +5 -0
  51. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
  52. package/mobile/src/components/ApplicationForm/getField.tsx +1 -0
  53. package/mobile/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +12 -4
  54. package/mobile/src/ui-kit/ResponseTypeDialog/useResponseTypeDialog.tsx +1 -0
  55. package/package.json +1 -1
  56. package/src/components/ApplicationForm/ApplicationForm.example.json +5 -0
  57. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +5 -0
  58. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +5 -0
  59. package/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
  60. package/src/components/ApplicationForm/getField.tsx +1 -0
  61. package/src/components/ProductGallery/ProductGallery.tsx +7 -3
  62. package/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +12 -4
  63. package/src/ui-kit/ResponseTypeDialog/useResponseTypeDialog.tsx +1 -0
@@ -1158,14 +1158,19 @@
1158
1158
  return (jsxs("div", { onClick: onClick, className: style('relative min-h-full bg-white pt-0 p-lg', className), role: "dialog", children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: handleClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] }));
1159
1159
  });
1160
1160
 
1161
- const ResponseTypeDialog = JSX(function ({ responseType }) {
1161
+ const ResponseTypeDialog = JSX(function ({ responseType, typeForm, }) {
1162
1162
  const responseOK = responseType === 'OK';
1163
1163
  const statusIcon = responseOK ? 'ResponseOKIcon' : 'ResponseFailIcon';
1164
1164
  const { close } = useDialogManager();
1165
1165
  const handleClose = useCallback(() => {
1166
1166
  close();
1167
1167
  }, []);
1168
- return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto ", children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md space-x-m", children: [jsx(Img, { image: { icon: statusIcon, iconVersion: 'normal' }, width: "136", height: "136" }), jsx(Headline, { className: "w-full", title: responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', description: responseOK ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее', headlineVersion: "XS", isEmbedded: true }), jsx(Button, { type: "button", onClick: handleClose, children: "\u0425\u043E\u0440\u043E\u0448\u043E" })] }) }));
1168
+ const responseOKDescription = typeForm === 'ANTIFRAUD'
1169
+ ? `Сообщение отправлено. Для уточнения информации с Вами могут связаться работники Банка либо Вы
1170
+ можете самостоятельно позвонить по номеру контакт-центра +78001000100. Будьте внимательны, работники Банка
1171
+ не звонят с использованием мессенджеров.`
1172
+ : 'Совсем скоро мы с вами свяжемся';
1173
+ return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto ", children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md space-x-m", children: [jsx(Img, { image: { icon: statusIcon, iconVersion: 'normal' }, width: "136", height: "136" }), jsx(Headline, { className: "w-full", title: responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', description: responseOK ? responseOKDescription : 'Пожалуйста, повторите позднее', headlineVersion: "XS", isEmbedded: true }), jsx(Button, { type: "button", onClick: handleClose, children: "\u0425\u043E\u0440\u043E\u0448\u043E" })] }) }));
1169
1174
  });
1170
1175
 
1171
1176
  const useResponseTypeDialog = (props) => {
@@ -1870,7 +1875,7 @@
1870
1875
  name: (jsx(InputControl, { label: "\u0418\u043C\u044F", ...getValidation(field('name'), validatorObj.name, required), ...rest })),
1871
1876
  middleName: (jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", ...field('middleName') })),
1872
1877
  phone: (jsx(InputPhoneControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...getValidation(field('phone'), validatorObj.phone, required) })),
1873
- email: (jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...getValidation(field('email'), validatorObj.email, required) })),
1878
+ email: (jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...getValidation(field('email'), validatorObj.email, required), ...rest })),
1874
1879
  fullName: (jsx(InputControl, { label: "\u0424\u0418\u041E", ...getValidation(field('fullName'), validatorObj.fullName, required), ...rest })),
1875
1880
  inn: (jsx(InputControl, { label: "\u0418\u041D\u041D", type: "number", ...getValidation(field('inn'), validatorObj.inn, required) })),
1876
1881
  comment: jsx(CommentField, { field: field, input: input }),
@@ -2001,7 +2006,7 @@
2001
2006
  const status = (await API.send(formatData, endpoint === 'lead')) ? 'OK' : 'Fail';
2002
2007
  setResponseType(status);
2003
2008
  if (status) {
2004
- const responseTypeDialog = useResponseTypeDialog({ responseType: status });
2009
+ const responseTypeDialog = useResponseTypeDialog({ responseType: status, typeForm });
2005
2010
  responseTypeDialog.open();
2006
2011
  }
2007
2012
  if (status === 'OK' && data) {
@@ -6127,7 +6132,7 @@
6127
6132
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
6128
6133
  });
6129
6134
 
6130
- const packageVersion = "0.14.534";
6135
+ const packageVersion = "0.14.536";
6131
6136
 
6132
6137
  exports.Blocks = Blocks;
6133
6138
  exports.ContentPage = ContentPage;