zigap-utils 0.0.462 → 0.0.465

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/dist/App.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare const App: () => import("react/jsx-runtime").JSX.Element;
2
+ export default App;
@@ -0,0 +1,4 @@
1
+ import { AddressProvideQRProps } from './AddressProvideQR.types';
2
+
3
+ declare const AddressProvideQR: ({ availableNetworks, dapp, url, validTime, onReceive, isShowLogo, logoSize, ...props }: AddressProvideQRProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default AddressProvideQR;
@@ -0,0 +1,15 @@
1
+ import { CommonStyleType } from 'src/components/LoginQR/LoginQR.types';
2
+
3
+ export type AddressProvideResultType = {
4
+ isSuccess: boolean;
5
+ address?: string;
6
+ network?: string;
7
+ nickName?: string;
8
+ };
9
+ export type AddressProvideQRProps = {
10
+ availableNetworks: string[];
11
+ dapp: string;
12
+ url: string;
13
+ validTime: number;
14
+ onReceive: (result: AddressProvideResultType) => void;
15
+ } & CommonStyleType;
@@ -0,0 +1,2 @@
1
+ export { default as AddressProvideQR } from './AddressProvideQR';
2
+ export * from './AddressProvideQR.types';
@@ -0,0 +1,4 @@
1
+ import { LoginQRProps } from './LoginQR.types';
2
+
3
+ declare const LoginQR: ({ availableNetworks, dapp, url, sigMessage, validTime, onReceive, isShowLogo, logoSize, ...props }: LoginQRProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default LoginQR;
@@ -0,0 +1,33 @@
1
+ import { CSSProperties } from 'react';
2
+
3
+ export type CommonStyleType = {
4
+ size?: number;
5
+ bgColor?: string;
6
+ fgColor?: string;
7
+ style?: CSSProperties;
8
+ isShowLogo?: boolean;
9
+ logoSize?: number;
10
+ };
11
+ export type PayloadType = {
12
+ publicKey: string;
13
+ message: string;
14
+ };
15
+ export type AccountType = {
16
+ address: string;
17
+ network: string;
18
+ nickName: string;
19
+ };
20
+ export type LoginResultType = {
21
+ isSuccess: boolean;
22
+ account?: AccountType;
23
+ payload?: PayloadType;
24
+ signature?: string;
25
+ };
26
+ export type LoginQRProps = {
27
+ availableNetworks: string[];
28
+ dapp: string;
29
+ url: string;
30
+ sigMessage: string;
31
+ validTime: number;
32
+ onReceive: (result: LoginResultType) => void;
33
+ } & CommonStyleType;
@@ -0,0 +1,2 @@
1
+ export { default as LoginQR } from './LoginQR';
2
+ export * from './LoginQR.types';
@@ -0,0 +1,2 @@
1
+ export * from './LoginQR';
2
+ export * from './AddressProvideQR';