@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?: {
@@ -3855,11 +3855,11 @@
3855
3855
  });
3856
3856
  const getInputStyle = (index, values, hasError = false) => {
3857
3857
  const isInputEmpty = !values[index];
3858
- 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`;
3858
+ 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`;
3859
3859
  };
3860
3860
 
3861
3861
  const SubmitButton = JSX(({ isDisabled, onClick, text }) => {
3862
- return (jsx(Button, { type: "button", onClick: onClick, disabled: isDisabled, children: jsx(Text, { font: "font-medium", children: text }) }));
3862
+ return (jsx(Button, { type: "button", onClick: onClick, disabled: isDisabled, children: jsx(Text, { font: "font-normal", children: text }) }));
3863
3863
  });
3864
3864
 
3865
3865
  const checkCode = async (body) => doRequest('/sms/checkCode', 'POST', body).then(saveToken);
@@ -3938,10 +3938,10 @@
3938
3938
  useEffect(() => {
3939
3939
  sendCode();
3940
3940
  }, []);
3941
- 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$2(timeNextReq, setTimeNextReq, sendCode), jsx(RichText, { itemSize: "list-s", __html: __html }), renderTextButton(textButton, isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
3941
+ 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$2(timeNextReq, setTimeNextReq, sendCode), jsx(RichText, { itemSize: "list-s", __html: __html }), renderTextButton(textButton, isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
3942
3942
  });
3943
3943
  const renderTextButton = (textButton, isDisabled, handleSubmit) => textButton ? (jsx(SubmitButton, { isDisabled: isDisabled, onClick: handleSubmit, text: textButton })) : null;
3944
- const renderText$2 = (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" }));
3944
+ const renderText$2 = (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" }));
3945
3945
 
3946
3946
  const useVerifyPhoneDialog = () => {
3947
3947
  const { open, close } = useDialogManager();
@@ -6313,6 +6313,21 @@
6313
6313
  };
6314
6314
  };
6315
6315
 
6316
+ const getDeliveryData = (formData) => {
6317
+ const { methodObtain, deliveryDate = '' } = formData;
6318
+ return {
6319
+ courierDeliveryFlg: methodObtain === 'courier',
6320
+ deliveryDate: formatDate(deliveryDate, true),
6321
+ deliveryTimeCd: { value: 'TIME_2' },
6322
+ };
6323
+ };
6324
+ const getSixthStepData = (formData) => {
6325
+ const { addressCourier } = formData;
6326
+ return {
6327
+ participantAddresses: getParticipantAddresses({ addressCourier }),
6328
+ };
6329
+ };
6330
+
6316
6331
  const getThirdStepData$1 = (formData) => {
6317
6332
  const { employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
6318
6333
  return {
@@ -6361,6 +6376,7 @@
6361
6376
  ...getCurrentStepData$1(step, formData),
6362
6377
  },
6363
6378
  ],
6379
+ ...getDeliveryData(formData),
6364
6380
  },
6365
6381
  };
6366
6382
  };
@@ -6377,9 +6393,7 @@
6377
6393
  case 4:
6378
6394
  return getFifthStepData(formData);
6379
6395
  case 5:
6380
- return {
6381
- //TODO: Сделать адаптер данных способа получения карты
6382
- };
6396
+ return getSixthStepData(formData);
6383
6397
  default:
6384
6398
  return {};
6385
6399
  }
@@ -9517,7 +9531,7 @@
9517
9531
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
9518
9532
  });
9519
9533
 
9520
- const packageVersion = "0.14.662";
9534
+ const packageVersion = "0.14.664";
9521
9535
 
9522
9536
  exports.Blocks = Blocks;
9523
9537
  exports.ContentPage = ContentPage;