@redneckz/wildless-cms-uni-blocks 0.14.1020 → 0.14.1022
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/bundle.umd.js +25 -10
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/VerifyPhoneDialog.d.ts +1 -1
- package/bundle/components/ApplicationForm/useVerifyPhoneDialogSubmit.d.ts +1 -1
- package/dist/components/ApplicationForm/VerifyPhoneDialog.d.ts +1 -1
- package/dist/components/ApplicationForm/handlers.js +12 -2
- package/dist/components/ApplicationForm/handlers.js.map +1 -1
- package/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.d.ts +1 -1
- package/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.js +1 -1
- package/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -0
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/dist/components/DebitForm/DebitFormStatus.js +5 -1
- package/dist/components/DebitForm/DebitFormStatus.js.map +1 -1
- package/lib/components/ApplicationForm/VerifyPhoneDialog.d.ts +1 -1
- package/lib/components/ApplicationForm/handlers.js +12 -2
- package/lib/components/ApplicationForm/handlers.js.map +1 -1
- package/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.d.ts +1 -1
- package/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.js +1 -1
- package/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -0
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/lib/components/DebitForm/DebitFormStatus.js +5 -1
- package/lib/components/DebitForm/DebitFormStatus.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +25 -10
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/VerifyPhoneDialog.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/useVerifyPhoneDialogSubmit.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/VerifyPhoneDialog.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/handlers.js +12 -2
- package/mobile/dist/components/ApplicationForm/handlers.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.js +1 -1
- package/mobile/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -0
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/dist/components/DebitForm/DebitFormStatus.js +5 -1
- package/mobile/dist/components/DebitForm/DebitFormStatus.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/VerifyPhoneDialog.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/handlers.js +12 -2
- package/mobile/lib/components/ApplicationForm/handlers.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.js +1 -1
- package/mobile/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -0
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/lib/components/DebitForm/DebitFormStatus.js +5 -1
- package/mobile/lib/components/DebitForm/DebitFormStatus.js.map +1 -1
- package/mobile/src/components/ApplicationForm/VerifyPhoneDialog.tsx +1 -1
- package/mobile/src/components/ApplicationForm/handlers.ts +13 -2
- package/mobile/src/components/ApplicationForm/useVerifyPhoneDialogSubmit.tsx +2 -2
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +3 -0
- package/mobile/src/components/DebitForm/DebitFormStatus.tsx +11 -5
- package/package.json +1 -1
- package/src/components/ApplicationForm/VerifyPhoneDialog.tsx +1 -1
- package/src/components/ApplicationForm/handlers.ts +13 -2
- package/src/components/ApplicationForm/useVerifyPhoneDialogSubmit.tsx +2 -2
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +3 -0
- package/src/components/DebitForm/DebitFormStatus.tsx +11 -5
package/bundle/bundle.umd.js
CHANGED
|
@@ -2003,6 +2003,11 @@
|
|
|
2003
2003
|
return endpoint;
|
|
2004
2004
|
};
|
|
2005
2005
|
|
|
2006
|
+
const getAspectsWithInclude = (data, include) => data?.map(({ aspectName, params }) => ({
|
|
2007
|
+
aspectName,
|
|
2008
|
+
params: aspectName === 'snowplowEvent' ? { ...params, eventJSON: include } : params,
|
|
2009
|
+
}));
|
|
2010
|
+
|
|
2006
2011
|
const handleAspects = async ({ aspectsAttributes, aspects, ev }) => {
|
|
2007
2012
|
for (const { aspectName, params } of aspectsAttributes ?? []) {
|
|
2008
2013
|
const aspectFn = aspects[aspectName ?? ''];
|
|
@@ -2024,10 +2029,19 @@
|
|
|
2024
2029
|
phone,
|
|
2025
2030
|
formatData,
|
|
2026
2031
|
reqId: String(response),
|
|
2027
|
-
onSuccess: () => {
|
|
2032
|
+
onSuccess: (id) => {
|
|
2028
2033
|
verifyPhoneDialog.close();
|
|
2029
2034
|
responseTypeDialog.open({ ok: true, typeForm });
|
|
2030
|
-
|
|
2035
|
+
const snowplowParams = JSON.stringify({
|
|
2036
|
+
inn: formatData?.inn,
|
|
2037
|
+
phone,
|
|
2038
|
+
id,
|
|
2039
|
+
});
|
|
2040
|
+
handleAspects({
|
|
2041
|
+
aspectsAttributes: getAspectsWithInclude(data, snowplowParams),
|
|
2042
|
+
aspects,
|
|
2043
|
+
ev,
|
|
2044
|
+
});
|
|
2031
2045
|
},
|
|
2032
2046
|
});
|
|
2033
2047
|
};
|
|
@@ -3567,7 +3581,7 @@
|
|
|
3567
3581
|
}
|
|
3568
3582
|
setTimeNextReq(0);
|
|
3569
3583
|
resetError();
|
|
3570
|
-
onSuccess?.(
|
|
3584
|
+
onSuccess?.(response?.reqId);
|
|
3571
3585
|
}
|
|
3572
3586
|
catch {
|
|
3573
3587
|
setErrorText('Неверный код');
|
|
@@ -7361,6 +7375,9 @@
|
|
|
7361
7375
|
};
|
|
7362
7376
|
const getTaskSource = (source) => {
|
|
7363
7377
|
switch (source) {
|
|
7378
|
+
case 'banki_ru': {
|
|
7379
|
+
return 'banki_ru';
|
|
7380
|
+
}
|
|
7364
7381
|
case 'referal_sf': {
|
|
7365
7382
|
return 'ReferalSF';
|
|
7366
7383
|
}
|
|
@@ -7384,11 +7401,6 @@
|
|
|
7384
7401
|
}, []);
|
|
7385
7402
|
};
|
|
7386
7403
|
|
|
7387
|
-
const getAspectsWithInclude = (data, include) => data?.map(({ aspectName, params }) => ({
|
|
7388
|
-
aspectName,
|
|
7389
|
-
params: aspectName === 'snowplowEvent' ? { ...params, eventJSON: include } : params,
|
|
7390
|
-
}));
|
|
7391
|
-
|
|
7392
7404
|
const useSendLeadFormAspects = ({ data }) => {
|
|
7393
7405
|
const aspects = useAspects();
|
|
7394
7406
|
return useCallback((ProfileId, TaskId) => {
|
|
@@ -11658,8 +11670,11 @@
|
|
|
11658
11670
|
|
|
11659
11671
|
const INTERNET_BANK_LINK = 'https://online.rshb.ru/d?l=dcNqSvOE';
|
|
11660
11672
|
const PRELOGIN_LINK = 'https://online.rshb.ru/rshb-mbfl/webmodules/prelogin-zone';
|
|
11673
|
+
const openLink = (url) => {
|
|
11674
|
+
window.location.href = url;
|
|
11675
|
+
};
|
|
11661
11676
|
const DebitFormStatus = JSX(({ title, description: dsc, sectionInfo, buttonText, isDboClient, isOffice, ...props }) => {
|
|
11662
|
-
return (jsxs(BlockWrapper, { ...props, children: [jsx("div", { className: "flex flex-col md:flex-row items-center", children: jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }) }), jsx(SectionInfo, { items: sectionInfo }), isOffice ? (jsxs("div", { className: "flex flex-col md:flex-row md:gap-lg", children: [jsx(
|
|
11677
|
+
return (jsxs(BlockWrapper, { ...props, children: [jsx("div", { className: "flex flex-col md:flex-row items-center", children: jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }) }), jsx(SectionInfo, { items: sectionInfo }), isOffice ? (jsxs("div", { className: "flex flex-col md:flex-row md:gap-lg", children: [jsx(Button, { onClick: () => openLink(PRELOGIN_LINK), className: "w-full mt-lg", version: "primary", children: "\u0423\u0437\u043D\u0430\u0442\u044C \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0430\u044F\u0432\u043A\u0438" }), jsx(LinkButton, { href: "/natural", text: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E", version: "primary", className: "w-full mt-lg" })] })) : null, !isOffice && buttonText ? (jsx(LinkButton, { href: "/natural", text: buttonText, version: "primary", className: "w-full mt-lg" })) : null, isDboClient ? (jsxs("div", { className: "flex flex-col md:flex-row md:gap-lg", children: [jsx(LinkButton, { href: "/natural/debetcards", text: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E", version: "primary", className: "w-full mt-lg" }), jsx(LinkButton, { href: INTERNET_BANK_LINK, text: "\u0412\u044B\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0432 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0438", version: "primary", className: "w-full mt-lg" })] })) : null] }));
|
|
11663
11678
|
});
|
|
11664
11679
|
const SectionInfo = ({ title, items, }) => {
|
|
11665
11680
|
if (!items) {
|
|
@@ -14314,7 +14329,7 @@
|
|
|
14314
14329
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
14315
14330
|
});
|
|
14316
14331
|
|
|
14317
|
-
const packageVersion = "0.14.
|
|
14332
|
+
const packageVersion = "0.14.1021";
|
|
14318
14333
|
|
|
14319
14334
|
exports.Blocks = Blocks;
|
|
14320
14335
|
exports.ContentPage = ContentPage;
|