message-verify 1.0.1-beta.55 → 1.0.1-beta.57
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/.arcconfig +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/main.js +1 -1
- package/dist/modal/verify-modal.js +1 -1
- package/dist/utils/type.d.ts +1 -0
- package/package.json +1 -1
- package/src/index.tsx +2 -1
- package/src/main.tsx +1 -1
- package/src/modal/verify-modal.tsx +1 -1
- package/src/utils/type.ts +1 -0
package/.arcconfig
CHANGED
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
import { VerifyModalConfig, LoginModalConfig } from './utils/type.js';
|
2
2
|
export declare const initFingerprint: () => Promise<string>;
|
3
3
|
export declare const createReLoginModal: (modalProps: LoginModalConfig) => void;
|
4
|
-
export declare const VerifyHandler: ({ data, config, http, verifyPromise, sendApi }: VerifyModalConfig) => Promise<any>;
|
4
|
+
export declare const VerifyHandler: ({ data, config, http, verifyPromise, sendApi, response }: VerifyModalConfig) => Promise<any>;
|
package/dist/index.js
CHANGED
@@ -54,7 +54,8 @@ export const createReLoginModal = (modalProps) => {
|
|
54
54
|
const reLoginModalId = 'relogin-modal-container';
|
55
55
|
creatModal(modalProps, reLoginModalId, ReLoginModal);
|
56
56
|
};
|
57
|
-
export const VerifyHandler = ({ data, config, http, verifyPromise, sendApi }) => {
|
57
|
+
export const VerifyHandler = ({ data, config, http, verifyPromise, sendApi, response }) => {
|
58
|
+
console.log('VerifyHandler =>', response);
|
58
59
|
const toEmpty = () => {
|
59
60
|
verifyPromise.current = null;
|
60
61
|
};
|
package/dist/main.js
CHANGED
@@ -38,7 +38,7 @@ const config = {
|
|
38
38
|
};
|
39
39
|
const promise = { current: null };
|
40
40
|
createRoot(document.getElementById('root')).render(_jsxs(_Fragment, { children: [_jsx("button", { onClick: () => {
|
41
|
-
return VerifyHandler({ data, config, http: axios, verifyPromise: promise });
|
41
|
+
return VerifyHandler({ data, config, http: axios, verifyPromise: promise, response: {} });
|
42
42
|
}, children: "Show verify Modal" }), _jsx("button", { onClick: () => createReLoginModal({
|
43
43
|
goLogin: () => {
|
44
44
|
console.log('goLogin');
|
package/dist/utils/type.d.ts
CHANGED
package/package.json
CHANGED
package/src/index.tsx
CHANGED
@@ -64,7 +64,8 @@ export const createReLoginModal = (modalProps: LoginModalConfig) => {
|
|
64
64
|
creatModal(modalProps, reLoginModalId, ReLoginModal);
|
65
65
|
}
|
66
66
|
|
67
|
-
export const VerifyHandler = ({data, config, http, verifyPromise, sendApi}: VerifyModalConfig): Promise<any> => {
|
67
|
+
export const VerifyHandler = ({data, config, http, verifyPromise, sendApi, response}: VerifyModalConfig): Promise<any> => {
|
68
|
+
console.log('VerifyHandler =>', response);
|
68
69
|
const toEmpty = () => {
|
69
70
|
verifyPromise.current = null;
|
70
71
|
};
|
package/src/main.tsx
CHANGED
@@ -43,7 +43,7 @@ const promise = {current: null};
|
|
43
43
|
createRoot(document.getElementById('root')!).render(
|
44
44
|
<>
|
45
45
|
<button onClick={() => {
|
46
|
-
return VerifyHandler({data, config, http: axios, verifyPromise: promise});
|
46
|
+
return VerifyHandler({data, config, http: axios, verifyPromise: promise, response: {}});
|
47
47
|
}}>
|
48
48
|
Show verify Modal
|
49
49
|
</button>
|
@@ -109,7 +109,7 @@ const CreateMessageVerifyModal = ({ props }: { props: VerifyModalConfig }) => {
|
|
109
109
|
})
|
110
110
|
]) as any;
|
111
111
|
if (res?.data?.status?.code === 0) {
|
112
|
-
apiResolve(res);
|
112
|
+
// apiResolve(res);
|
113
113
|
setVisible(false);
|
114
114
|
} else {
|
115
115
|
message.error(t('verifyFail', lang));
|