@redneckz/wildless-cms-uni-blocks 0.14.990 → 0.14.991
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/LeadServiceAPI.d.ts +2 -1
- package/bundle/bundle.umd.js +6 -3
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/api/LeadServiceAPI.d.ts +2 -1
- package/dist/api/LeadServiceAPI.js +3 -2
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.js +3 -0
- package/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/lib/api/LeadServiceAPI.d.ts +2 -1
- package/lib/api/LeadServiceAPI.js +3 -2
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.js +3 -0
- package/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/mobile/bundle/api/LeadServiceAPI.d.ts +2 -1
- package/mobile/bundle/bundle.umd.js +6 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/api/LeadServiceAPI.d.ts +2 -1
- package/mobile/dist/api/LeadServiceAPI.js +3 -2
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.js +3 -0
- package/mobile/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/lib/api/LeadServiceAPI.d.ts +2 -1
- package/mobile/lib/api/LeadServiceAPI.js +3 -2
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.js +3 -0
- package/mobile/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/src/api/LeadServiceAPI.ts +9 -2
- package/mobile/src/components/ApplicationForm/useVerifyPhoneDialogSubmit.tsx +3 -0
- package/package.json +1 -1
- package/src/api/LeadServiceAPI.ts +9 -2
- package/src/components/ApplicationForm/useVerifyPhoneDialogSubmit.tsx +3 -0
|
@@ -19,6 +19,7 @@ export declare type CheckCodeProps = {
|
|
|
19
19
|
reqId: string;
|
|
20
20
|
code: string;
|
|
21
21
|
body: LeadRequest;
|
|
22
|
+
router: Router;
|
|
22
23
|
};
|
|
23
24
|
declare type CheckCodeResponse = {
|
|
24
25
|
errorCode?: string;
|
|
@@ -37,7 +38,7 @@ export declare type sendProps = {
|
|
|
37
38
|
export declare function LeadServiceAPI(): {
|
|
38
39
|
send: ({ body, router, endpoint }: sendProps) => Promise<any>;
|
|
39
40
|
sendCode: ({ phone }: PhoneOnly) => Promise<string | null>;
|
|
40
|
-
checkCode: ({ reqId, code, body }: CheckCodeProps) => Promise<CheckCodeResponse>;
|
|
41
|
+
checkCode: ({ reqId, code, body, router, }: CheckCodeProps) => Promise<CheckCodeResponse>;
|
|
41
42
|
sendPhoneCallRequest: (body: LeadRequest, endpoint?: EndpointType) => Promise<any>;
|
|
42
43
|
};
|
|
43
44
|
export {};
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -1888,6 +1888,7 @@
|
|
|
1888
1888
|
}
|
|
1889
1889
|
: {};
|
|
1890
1890
|
|
|
1891
|
+
// eslint-disable-next-line max-lines-per-function
|
|
1891
1892
|
function LeadServiceAPI() {
|
|
1892
1893
|
async function send({ body, router, endpoint }) {
|
|
1893
1894
|
const calculatedEndpoint = endpoint && getEndpoint(endpoint, body);
|
|
@@ -1923,11 +1924,11 @@
|
|
|
1923
1924
|
return null;
|
|
1924
1925
|
}
|
|
1925
1926
|
}
|
|
1926
|
-
async function checkCode({ reqId, code, body }) {
|
|
1927
|
+
async function checkCode({ reqId, code, body, router, }) {
|
|
1927
1928
|
const submitBody = {
|
|
1928
1929
|
requestId: reqId,
|
|
1929
1930
|
confimationCode: code,
|
|
1930
|
-
leadRequest: getSubmitBody({ body }),
|
|
1931
|
+
leadRequest: getSubmitBody({ body, router }),
|
|
1931
1932
|
};
|
|
1932
1933
|
try {
|
|
1933
1934
|
const response = await LeadServiceFetch(`${API_BASE_URI}/confirmCorporateLead`, submitBody);
|
|
@@ -3519,6 +3520,7 @@
|
|
|
3519
3520
|
const API$1 = LeadServiceAPI();
|
|
3520
3521
|
const useVerifyPhoneDialogSubmit$1 = ({ values, onSuccess, formatData, reqId, }) => {
|
|
3521
3522
|
const timer = Math.max(getTimer(Date.now()), 0);
|
|
3523
|
+
const router = useRouter();
|
|
3522
3524
|
const [errorText, setErrorText] = useState('');
|
|
3523
3525
|
const [isLoading, { setTrue: startLoading, setFalse: endLoading }] = useBool(false);
|
|
3524
3526
|
const [timeNextReq, setTimeNextReq] = useState(timer);
|
|
@@ -3531,6 +3533,7 @@
|
|
|
3531
3533
|
code: values.join(''),
|
|
3532
3534
|
body: formatData,
|
|
3533
3535
|
reqId,
|
|
3536
|
+
router,
|
|
3534
3537
|
});
|
|
3535
3538
|
if (response?.errorDesc) {
|
|
3536
3539
|
setErrorText(response?.errorDesc);
|
|
@@ -13679,7 +13682,7 @@
|
|
|
13679
13682
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
13680
13683
|
});
|
|
13681
13684
|
|
|
13682
|
-
const packageVersion = "0.14.
|
|
13685
|
+
const packageVersion = "0.14.990";
|
|
13683
13686
|
|
|
13684
13687
|
exports.Blocks = Blocks;
|
|
13685
13688
|
exports.ContentPage = ContentPage;
|