@redneckz/wildless-cms-uni-blocks 0.14.663 → 0.14.665

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 (72) hide show
  1. package/bundle/api/RetailAPI/updateUserTask.d.ts +5 -0
  2. package/bundle/bundle.umd.js +22 -8
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/CreditCardForm/getSixthStepData.d.ts +11 -0
  5. package/dist/api/RetailAPI/updateUserTask.d.ts +5 -0
  6. package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  7. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -3
  8. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  9. package/dist/components/CreditCardForm/getSixthStepData.d.ts +11 -0
  10. package/dist/components/CreditCardForm/getSixthStepData.js +21 -0
  11. package/dist/components/CreditCardForm/getSixthStepData.js.map +1 -0
  12. package/dist/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
  13. package/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
  14. package/dist/ui-kit/VerifyPhoneDialog/SubmitButton.js +1 -1
  15. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -2
  16. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  17. package/lib/api/RetailAPI/updateUserTask.d.ts +5 -0
  18. package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  19. package/lib/common.css +1 -1
  20. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -3
  21. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  22. package/lib/components/CreditCardForm/getSixthStepData.d.ts +11 -0
  23. package/lib/components/CreditCardForm/getSixthStepData.js +17 -0
  24. package/lib/components/CreditCardForm/getSixthStepData.js.map +1 -0
  25. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  26. package/lib/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
  27. package/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
  28. package/lib/ui-kit/VerifyPhoneDialog/SubmitButton.js +1 -1
  29. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -2
  30. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  31. package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +5 -0
  32. package/mobile/bundle/bundle.umd.js +22 -8
  33. package/mobile/bundle/bundle.umd.min.js +1 -1
  34. package/mobile/bundle/components/CreditCardForm/getSixthStepData.d.ts +11 -0
  35. package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +5 -0
  36. package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  37. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -3
  38. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  39. package/mobile/dist/components/CreditCardForm/getSixthStepData.d.ts +11 -0
  40. package/mobile/dist/components/CreditCardForm/getSixthStepData.js +21 -0
  41. package/mobile/dist/components/CreditCardForm/getSixthStepData.js.map +1 -0
  42. package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
  43. package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
  44. package/mobile/dist/ui-kit/VerifyPhoneDialog/SubmitButton.js +1 -1
  45. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -2
  46. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  47. package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +5 -0
  48. package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  49. package/mobile/lib/common.css +1 -1
  50. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -3
  51. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  52. package/mobile/lib/components/CreditCardForm/getSixthStepData.d.ts +11 -0
  53. package/mobile/lib/components/CreditCardForm/getSixthStepData.js +17 -0
  54. package/mobile/lib/components/CreditCardForm/getSixthStepData.js.map +1 -0
  55. package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
  56. package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
  57. package/mobile/lib/ui-kit/VerifyPhoneDialog/SubmitButton.js +1 -1
  58. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -2
  59. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  60. package/mobile/src/api/RetailAPI/updateUserTask.ts +5 -0
  61. package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -3
  62. package/mobile/src/components/CreditCardForm/getSixthStepData.ts +21 -0
  63. package/mobile/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +1 -1
  64. package/mobile/src/ui-kit/VerifyPhoneDialog/SubmitButton.tsx +1 -1
  65. package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +6 -5
  66. package/package.json +1 -1
  67. package/src/api/RetailAPI/updateUserTask.ts +5 -0
  68. package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -3
  69. package/src/components/CreditCardForm/getSixthStepData.ts +21 -0
  70. package/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +1 -1
  71. package/src/ui-kit/VerifyPhoneDialog/SubmitButton.tsx +1 -1
  72. package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +6 -5
@@ -106,6 +106,11 @@ export declare type UpdateUserTaskBody = {
106
106
  office?: {
107
107
  id: string;
108
108
  };
109
+ courierDeliveryFlg?: boolean;
110
+ deliveryDate?: string;
111
+ deliveryTimeCd?: {
112
+ value: string;
113
+ };
109
114
  authorizedAgentId?: number;
110
115
  participants: Participant[];
111
116
  esiaAccountTypeCd?: {
@@ -3847,11 +3847,11 @@
3847
3847
  });
3848
3848
  const getInputStyle = (index, values, hasError = false) => {
3849
3849
  const isInputEmpty = !values[index];
3850
- return `w-16 h-20 text-3xl text-center p-2 m-2 border ${hasError && isInputEmpty ? 'border-error' : 'border-gray'} rounded-md caret-transparent outline-none`;
3850
+ return `w-20 h-24 text-5xl text-center p-lg m-2 border ${hasError && isInputEmpty ? 'border-error' : 'border-gray'} rounded-md caret-transparent outline-none`;
3851
3851
  };
3852
3852
 
3853
3853
  const SubmitButton = JSX(({ isDisabled, onClick, text }) => {
3854
- return (jsx(Button, { type: "button", onClick: onClick, disabled: isDisabled, children: jsx(Text, { font: "font-medium", children: text }) }));
3854
+ return (jsx(Button, { type: "button", onClick: onClick, disabled: isDisabled, children: jsx(Text, { font: "font-normal", children: text }) }));
3855
3855
  });
3856
3856
 
3857
3857
  const checkCode = async (body) => doRequest('/sms/checkCode', 'POST', body).then(saveToken);
@@ -3930,10 +3930,10 @@
3930
3930
  useEffect(() => {
3931
3931
  sendCode();
3932
3932
  }, []);
3933
- return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg", children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: title, description: description, headlineVersion: "S", isEmbedded: true }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$1(timeNextReq, setTimeNextReq, sendCode), jsx(RichText, { itemSize: "list-s", __html: __html }), renderTextButton(textButton, isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
3933
+ return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl px-5xl py-0", children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: title, description: description, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$1(timeNextReq, setTimeNextReq, sendCode), jsx(RichText, { itemSize: "list-s", __html: __html }), renderTextButton(textButton, isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
3934
3934
  });
3935
3935
  const renderTextButton = (textButton, isDisabled, handleSubmit) => textButton ? (jsx(SubmitButton, { isDisabled: isDisabled, onClick: handleSubmit, text: textButton })) : null;
3936
- const renderText$1 = (timeNextReq, setTimeNextReq, sendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-primary-main", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", jsx(Timer, { className: "text-primary-main ml-1", time: timeNextReq, setTime: setTimeNextReq })] })) : (jsx(LinkButton, { onClick: sendCode, className: "text-primary-main", children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }));
3936
+ const renderText$1 = (timeNextReq, setTimeNextReq, sendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", jsx(Timer, { className: "text-base ml-1", time: timeNextReq, setTime: setTimeNextReq })] })) : (jsx(LinkButton, { onClick: sendCode, className: "text-primary-main", children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }));
3937
3937
 
3938
3938
  const useVerifyPhoneDialog = () => {
3939
3939
  const { open, close } = useDialogManager();
@@ -6333,6 +6333,21 @@
6333
6333
  };
6334
6334
  };
6335
6335
 
6336
+ const getDeliveryData = (formData) => {
6337
+ const { methodObtain, deliveryDate = '' } = formData;
6338
+ return {
6339
+ courierDeliveryFlg: methodObtain === 'courier',
6340
+ deliveryDate: formatDate(deliveryDate, true),
6341
+ deliveryTimeCd: { value: 'TIME_2' },
6342
+ };
6343
+ };
6344
+ const getSixthStepData = (formData) => {
6345
+ const { addressCourier } = formData;
6346
+ return {
6347
+ participantAddresses: getParticipantAddresses({ addressCourier }),
6348
+ };
6349
+ };
6350
+
6336
6351
  const getThirdStepData$1 = (formData) => {
6337
6352
  const { employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
6338
6353
  return {
@@ -6381,6 +6396,7 @@
6381
6396
  ...getCurrentStepData$1(step, formData),
6382
6397
  },
6383
6398
  ],
6399
+ ...getDeliveryData(formData),
6384
6400
  },
6385
6401
  };
6386
6402
  };
@@ -6397,9 +6413,7 @@
6397
6413
  case 4:
6398
6414
  return getFifthStepData(formData);
6399
6415
  case 5:
6400
- return {
6401
- //TODO: Сделать адаптер данных способа получения карты
6402
- };
6416
+ return getSixthStepData(formData);
6403
6417
  default:
6404
6418
  return {};
6405
6419
  }
@@ -9903,7 +9917,7 @@
9903
9917
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
9904
9918
  });
9905
9919
 
9906
- const packageVersion = "0.14.662";
9920
+ const packageVersion = "0.14.664";
9907
9921
 
9908
9922
  exports.Blocks = Blocks;
9909
9923
  exports.ContentPage = ContentPage;