@redneckz/wildless-cms-uni-blocks 0.14.758 → 0.14.759
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/getUserTasks.d.ts +41 -0
- package/bundle/bundle.umd.js +3 -3
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
- package/dist/api/RetailAPI/getUserTasks.d.ts +41 -0
- package/dist/api/RetailAPI/getUserTasks.js +15 -0
- package/dist/api/RetailAPI/getUserTasks.js.map +1 -0
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +3 -2
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/api/RetailAPI/getUserTasks.d.ts +41 -0
- package/lib/api/RetailAPI/getUserTasks.js +12 -0
- package/lib/api/RetailAPI/getUserTasks.js.map +1 -0
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +3 -2
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/getUserTasks.d.ts +41 -0
- package/mobile/bundle/bundle.umd.js +3 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
- package/mobile/dist/api/RetailAPI/getUserTasks.d.ts +41 -0
- package/mobile/dist/api/RetailAPI/getUserTasks.js +15 -0
- package/mobile/dist/api/RetailAPI/getUserTasks.js.map +1 -0
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +3 -2
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/api/RetailAPI/getUserTasks.d.ts +41 -0
- package/mobile/lib/api/RetailAPI/getUserTasks.js +12 -0
- package/mobile/lib/api/RetailAPI/getUserTasks.js.map +1 -0
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +3 -2
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/src/api/RetailAPI/getUserTasks.ts +50 -0
- package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +21 -9
- package/package.json +1 -1
- package/src/api/RetailAPI/getUserTasks.ts +50 -0
- package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +21 -9
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare enum EProductType {
|
|
2
|
+
CASH = "CASH",
|
|
3
|
+
CARD = "CARD",
|
|
4
|
+
DEBIT = "DEBIT"
|
|
5
|
+
}
|
|
6
|
+
export declare type UserTask = {
|
|
7
|
+
classCard?: {
|
|
8
|
+
key: string;
|
|
9
|
+
value: string;
|
|
10
|
+
};
|
|
11
|
+
createdDate?: string;
|
|
12
|
+
creditPeriod?: number;
|
|
13
|
+
deliveryAddress?: string;
|
|
14
|
+
extId?: string;
|
|
15
|
+
id?: number;
|
|
16
|
+
loanAmount?: number;
|
|
17
|
+
officeAddress?: string;
|
|
18
|
+
programId?: number;
|
|
19
|
+
programName?: string;
|
|
20
|
+
statusCd?: {
|
|
21
|
+
key: string;
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
24
|
+
statusDescription?: string;
|
|
25
|
+
};
|
|
26
|
+
declare type AllTasks = {
|
|
27
|
+
productTypeCd: {
|
|
28
|
+
key: EProductType;
|
|
29
|
+
value: string;
|
|
30
|
+
};
|
|
31
|
+
tasks: Array<UserTask>;
|
|
32
|
+
};
|
|
33
|
+
export declare type GetUserTasksResponse = {
|
|
34
|
+
allTasks?: Array<AllTasks>;
|
|
35
|
+
user?: {
|
|
36
|
+
name: string;
|
|
37
|
+
midname: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const getUserTasks: () => Promise<GetUserTasksResponse | undefined>;
|
|
41
|
+
export {};
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -4759,7 +4759,7 @@
|
|
|
4759
4759
|
};
|
|
4760
4760
|
};
|
|
4761
4761
|
|
|
4762
|
-
const VerifyPhoneDialog = JSX(({ phone, code = true, codeLength = 4, consents, onSuccess = noop, onClose = noop }) => {
|
|
4762
|
+
const VerifyPhoneDialog = JSX(({ phone, code = true, withDescription = true, codeLength = 4, consents, onSuccess = noop, onClose = noop, }) => {
|
|
4763
4763
|
const [values, setValues] = useState(Array(codeLength).fill(''));
|
|
4764
4764
|
const { handleSubmit, hasError, errorText, isLoading, timeNextReq, isSubmitButtonDisabled, setTimeNextReq, setIsTimerStarted, setAttempts, } = useVerifyPhoneDialogSubmit({ values, onSuccess });
|
|
4765
4765
|
const captchaDialog = useDialog(CaptchaDialog);
|
|
@@ -4781,7 +4781,7 @@
|
|
|
4781
4781
|
useEffect(() => {
|
|
4782
4782
|
handleSendCode();
|
|
4783
4783
|
}, []);
|
|
4784
|
-
return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$1(timeNextReq, setTimeNextReq, handleSendCode), jsxs(RichText, { itemSize: "list-s", children: [jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), jsx("ul", { children: consents?.map((_, i) => (jsx("li", { children: _ }, `${_}-${i}`))) })] }), renderNextButton(isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
|
|
4784
|
+
return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$1(timeNextReq, setTimeNextReq, handleSendCode), withDescription ? (jsxs(RichText, { itemSize: "list-s", children: [jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), jsx("ul", { children: consents?.map((_, i) => (jsx("li", { children: _ }, `${_}-${i}`))) })] })) : null, renderNextButton(isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
|
|
4785
4785
|
});
|
|
4786
4786
|
const renderNextButton = (isDisabled, onClick) => (jsx(SubmitButton, { text: "\u0414\u0430\u043B\u0435\u0435", isDisabled: isDisabled, onClick: onClick }));
|
|
4787
4787
|
const renderText$1 = (timeNextReq, setTimeNextReq, handleSendCode) => 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: handleSendCode, className: "text-primary-main", children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }));
|
|
@@ -10517,7 +10517,7 @@
|
|
|
10517
10517
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10518
10518
|
});
|
|
10519
10519
|
|
|
10520
|
-
const packageVersion = "0.14.
|
|
10520
|
+
const packageVersion = "0.14.758";
|
|
10521
10521
|
|
|
10522
10522
|
exports.Blocks = Blocks;
|
|
10523
10523
|
exports.ContentPage = ContentPage;
|