@tezos-x/octez.connect-ui 4.8.4 → 4.8.6
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/bundle.js +8 -10
- package/dist/bundle.js.map +1 -1
- package/dist/cjs/index.js +8 -10
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/ui/alert/hooks/useConnect.d.ts +1 -1
- package/dist/cjs/ui/common.d.ts +2 -2
- package/dist/cjs/utils/extensions.d.ts +2 -0
- package/dist/cjs/utils/qr.d.ts +2 -1
- package/dist/cjs/utils/walletconnect.d.ts +1 -0
- package/dist/esm/index.js +8 -10
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/ui/alert/components/pairing-alert/components/qr-code/index.d.ts.map +1 -1
- package/dist/esm/ui/alert/hooks/useConnect.d.ts +1 -1
- package/dist/esm/ui/alert/hooks/useConnect.d.ts.map +1 -1
- package/dist/esm/ui/alert/hooks/useWallets.d.ts.map +1 -1
- package/dist/esm/ui/alert/wallet-lists.d.ts.map +1 -1
- package/dist/esm/ui/common.d.ts +2 -2
- package/dist/esm/ui/common.d.ts.map +1 -1
- package/dist/esm/utils/extensions.d.ts +3 -0
- package/dist/esm/utils/extensions.d.ts.map +1 -0
- package/dist/esm/utils/qr.d.ts +2 -1
- package/dist/esm/utils/qr.d.ts.map +1 -1
- package/dist/esm/utils/walletconnect.d.ts +2 -0
- package/dist/esm/utils/walletconnect.d.ts.map +1 -0
- package/dist/ui/alert/hooks/useConnect.d.ts +1 -1
- package/dist/ui/common.d.ts +2 -2
- package/dist/utils/extensions.d.ts +2 -0
- package/dist/utils/qr.d.ts +2 -1
- package/dist/utils/walletconnect.d.ts +1 -0
- package/package.json +5 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MergedWallet } from '../../../utils/wallets';
|
|
2
2
|
import { AlertConfig, AlertState } from '../../common';
|
|
3
|
-
declare const useConnect: (isMobile: boolean, wcPayload:
|
|
3
|
+
declare const useConnect: (isMobile: boolean, wcPayload: PromiseLike<string> | undefined, p2pPayload: Promise<string>, postPayload: Promise<string>, wallets: Map<string, MergedWallet>, onCloseHandler: Function) => readonly [MergedWallet | undefined, boolean, string | undefined, AlertState, boolean, boolean, boolean, (id: string, config: AlertConfig) => Promise<void>, (config: AlertConfig, wallet: MergedWallet) => Promise<void>, (wallet: MergedWallet) => Promise<void>, () => void, () => Promise<void>, () => void, () => Promise<void>, () => void, (newState: AlertState) => void, (uri: string) => void, () => void, (show: boolean) => void, (isLoading: boolean) => void];
|
|
4
4
|
export default useConnect;
|
package/dist/cjs/ui/common.d.ts
CHANGED
|
@@ -44,13 +44,13 @@ export interface AlertProps {
|
|
|
44
44
|
export interface PairingPayload {
|
|
45
45
|
p2pSyncCode: Promise<string>;
|
|
46
46
|
postmessageSyncCode: Promise<string>;
|
|
47
|
-
walletConnectSyncCode
|
|
47
|
+
walletConnectSyncCode?: PromiseLike<string>;
|
|
48
48
|
networkType: NetworkType;
|
|
49
49
|
}
|
|
50
50
|
export interface PairOtherProps {
|
|
51
51
|
walletList: MergedWallet[];
|
|
52
52
|
p2pPayload: Promise<string>;
|
|
53
|
-
wcPayload
|
|
53
|
+
wcPayload?: PromiseLike<string>;
|
|
54
54
|
onClickLearnMore: () => void;
|
|
55
55
|
}
|
|
56
56
|
export interface QRProps {
|
package/dist/cjs/utils/qr.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Convert data to a QR code
|
|
3
3
|
*
|
|
4
4
|
* @param payload The data to be encoded as a QR code
|
|
5
|
-
* @param
|
|
5
|
+
* @param height Fallback square size when width is not provided
|
|
6
|
+
* @param width Square size of the generated QR SVG
|
|
6
7
|
*/
|
|
7
8
|
export declare const getQrData: (payload: string, height?: number, width?: number) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const hasWalletConnectSymKey: (uri: string | undefined | null) => boolean;
|