@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.
- package/bundle/api/RetailAPI/updateUserTask.d.ts +5 -0
- package/bundle/bundle.umd.js +22 -8
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CreditCardForm/getSixthStepData.d.ts +11 -0
- package/dist/api/RetailAPI/updateUserTask.d.ts +5 -0
- package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -3
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/dist/components/CreditCardForm/getSixthStepData.d.ts +11 -0
- package/dist/components/CreditCardForm/getSixthStepData.js +21 -0
- package/dist/components/CreditCardForm/getSixthStepData.js.map +1 -0
- package/dist/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/SubmitButton.js +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -2
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/api/RetailAPI/updateUserTask.d.ts +5 -0
- package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -3
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/lib/components/CreditCardForm/getSixthStepData.d.ts +11 -0
- package/lib/components/CreditCardForm/getSixthStepData.js +17 -0
- package/lib/components/CreditCardForm/getSixthStepData.js.map +1 -0
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/SubmitButton.js +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -2
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +5 -0
- package/mobile/bundle/bundle.umd.js +22 -8
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CreditCardForm/getSixthStepData.d.ts +11 -0
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +5 -0
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -3
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getSixthStepData.d.ts +11 -0
- package/mobile/dist/components/CreditCardForm/getSixthStepData.js +21 -0
- package/mobile/dist/components/CreditCardForm/getSixthStepData.js.map +1 -0
- package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/SubmitButton.js +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -2
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +5 -0
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -3
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getSixthStepData.d.ts +11 -0
- package/mobile/lib/components/CreditCardForm/getSixthStepData.js +17 -0
- package/mobile/lib/components/CreditCardForm/getSixthStepData.js.map +1 -0
- package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/SubmitButton.js +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -2
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/src/api/RetailAPI/updateUserTask.ts +5 -0
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -3
- package/mobile/src/components/CreditCardForm/getSixthStepData.ts +21 -0
- package/mobile/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +1 -1
- package/mobile/src/ui-kit/VerifyPhoneDialog/SubmitButton.tsx +1 -1
- package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +6 -5
- package/package.json +1 -1
- package/src/api/RetailAPI/updateUserTask.ts +5 -0
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -3
- package/src/components/CreditCardForm/getSixthStepData.ts +21 -0
- package/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +1 -1
- package/src/ui-kit/VerifyPhoneDialog/SubmitButton.tsx +1 -1
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
9534
|
+
const packageVersion = "0.14.664";
|
|
9521
9535
|
|
|
9522
9536
|
exports.Blocks = Blocks;
|
|
9523
9537
|
exports.ContentPage = ContentPage;
|