@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?: {
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -3847,11 +3847,11 @@
|
|
|
3847
3847
|
});
|
|
3848
3848
|
const getInputStyle = (index, values, hasError = false) => {
|
|
3849
3849
|
const isInputEmpty = !values[index];
|
|
3850
|
-
return `w-
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
9920
|
+
const packageVersion = "0.14.664";
|
|
9907
9921
|
|
|
9908
9922
|
exports.Blocks = Blocks;
|
|
9909
9923
|
exports.ContentPage = ContentPage;
|