@tezos-x/octez.connect-ui 0.9.0 → 1.0.0
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/README.md +22 -1
- package/dist/bundle.js +9 -9
- package/dist/bundle.js.map +1 -1
- package/dist/cjs/components/icons/index.d.ts +1 -0
- package/dist/cjs/index.js +9 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/ui/alert/components/info-alert/index.d.ts +1 -1
- package/dist/cjs/ui/alert/hooks/useWallets.d.ts +6 -2
- package/dist/cjs/ui/common.d.ts +8 -2
- package/dist/cjs/utils/walletListFetcher.d.ts +15 -0
- package/dist/cjs/utils/wallets.d.ts +2 -0
- package/dist/components/icons/index.d.ts +1 -0
- package/dist/esm/components/icons/index.d.ts +1 -0
- package/dist/esm/index.js +9 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/ui/alert/components/info-alert/index.d.ts +1 -1
- package/dist/esm/ui/alert/hooks/useWallets.d.ts +6 -2
- package/dist/esm/ui/common.d.ts +8 -2
- package/dist/esm/utils/walletListFetcher.d.ts +15 -0
- package/dist/esm/utils/wallets.d.ts +2 -0
- package/dist/ui/alert/components/info-alert/index.d.ts +1 -1
- package/dist/ui/alert/hooks/useWallets.d.ts +6 -2
- package/dist/ui/common.d.ts +8 -2
- package/dist/utils/walletListFetcher.d.ts +15 -0
- package/dist/utils/wallets.d.ts +2 -0
- package/package.json +23 -15
- package/src/data/substrate.json +45 -0
- package/src/data/tezos-sapling.json +18 -0
- package/src/data/tezos.json +299 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ConfigurableAlertProps } from '../../../common';
|
|
2
|
-
declare const InfoAlert: ({ title, body, data, open, onClose, closeOnBackdropClick }: ConfigurableAlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const InfoAlert: ({ title, body, data, errorContext, open, onClose, closeOnBackdropClick }: ConfigurableAlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default InfoAlert;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import { NetworkType } from '@tezos-x/octez.connect-types';
|
|
2
|
-
|
|
1
|
+
import { Extension, NetworkType } from '@tezos-x/octez.connect-types';
|
|
2
|
+
type Blockchain = 'tezos' | 'substrate';
|
|
3
|
+
declare const useWallets: (blockchain: Blockchain, networkType?: NetworkType, featuredWallets?: string[], skipGitHubFetch?: boolean) => {
|
|
4
|
+
wallets: Map<string, import("../../../utils/wallets").MergedWallet>;
|
|
5
|
+
availableExtensions: Extension[];
|
|
6
|
+
};
|
|
3
7
|
export default useWallets;
|
package/dist/cjs/ui/common.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NetworkType, AnalyticsInterface, WalletInfo } from '@tezos-x/octez.connect-types';
|
|
1
|
+
import { NetworkType, AnalyticsInterface, WalletInfo, ErrorContext } from '@tezos-x/octez.connect-types';
|
|
2
2
|
import { MergedWallet } from '../utils/wallets';
|
|
3
3
|
export declare enum AlertState {
|
|
4
4
|
TOP_WALLETS = "top-wallets",
|
|
@@ -16,13 +16,15 @@ export interface AlertConfig {
|
|
|
16
16
|
title: string;
|
|
17
17
|
body?: string;
|
|
18
18
|
data?: string;
|
|
19
|
+
errorContext?: ErrorContext;
|
|
19
20
|
timer?: number;
|
|
20
21
|
buttons?: AlertButton[];
|
|
21
22
|
pairingPayload?: PairingPayload;
|
|
22
23
|
closeButtonCallback?: () => void;
|
|
23
|
-
disclaimerText?: string;
|
|
24
24
|
analytics?: AnalyticsInterface;
|
|
25
25
|
featuredWallets?: string[];
|
|
26
|
+
termsAndConditionsUrl?: string;
|
|
27
|
+
privacyPolicyUrl?: string;
|
|
26
28
|
openBugReport?: boolean;
|
|
27
29
|
substratePairing?: boolean;
|
|
28
30
|
}
|
|
@@ -40,6 +42,8 @@ export interface AlertProps {
|
|
|
40
42
|
onClickShowMore?: () => void;
|
|
41
43
|
onBackClick?: () => void;
|
|
42
44
|
closeOnBackdropClick: boolean;
|
|
45
|
+
termsAndConditionsUrl?: string;
|
|
46
|
+
privacyPolicyUrl?: string;
|
|
43
47
|
}
|
|
44
48
|
export interface PairingPayload {
|
|
45
49
|
p2pSyncCode: Promise<string>;
|
|
@@ -60,6 +64,7 @@ export interface QRProps {
|
|
|
60
64
|
code: string;
|
|
61
65
|
onClickLearnMore?: () => void;
|
|
62
66
|
onClickQrCode?: () => void;
|
|
67
|
+
isDeprecated?: boolean;
|
|
63
68
|
}
|
|
64
69
|
export interface QRCodeProps {
|
|
65
70
|
wallet?: MergedWallet;
|
|
@@ -78,6 +83,7 @@ export interface InfoProps {
|
|
|
78
83
|
title: string;
|
|
79
84
|
description?: string;
|
|
80
85
|
data?: string;
|
|
86
|
+
errorContext?: ErrorContext;
|
|
81
87
|
icon?: any;
|
|
82
88
|
border?: boolean;
|
|
83
89
|
iconBadge?: boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ExtensionApp, DesktopApp, WebApp, App } from '@tezos-x/octez.connect-types';
|
|
2
|
+
interface WalletRegistry {
|
|
3
|
+
version: string;
|
|
4
|
+
updated: string;
|
|
5
|
+
extensionList: ExtensionApp[];
|
|
6
|
+
desktopList: DesktopApp[];
|
|
7
|
+
webList: WebApp[];
|
|
8
|
+
iOSList: App[];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Fetch wallet lists from GitHub (jsDelivr CDN)
|
|
12
|
+
* Returns null on error (caller should use bundled fallback)
|
|
13
|
+
*/
|
|
14
|
+
export declare function fetchWalletListsFromGitHub(blockchain: string): Promise<WalletRegistry | null>;
|
|
15
|
+
export {};
|
|
@@ -8,6 +8,7 @@ export interface Wallet {
|
|
|
8
8
|
link: string;
|
|
9
9
|
supportedInteractionStandards?: ('wallet_connect' | 'beacon')[];
|
|
10
10
|
deepLink?: string;
|
|
11
|
+
deprecated?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export interface MergedWallet {
|
|
13
14
|
id: string;
|
|
@@ -21,6 +22,7 @@ export interface MergedWallet {
|
|
|
21
22
|
supportedInteractionStandards?: ('wallet_connect' | 'beacon')[];
|
|
22
23
|
tags?: string[];
|
|
23
24
|
deepLink?: string;
|
|
25
|
+
deprecated?: boolean;
|
|
24
26
|
}
|
|
25
27
|
export declare enum OSLink {
|
|
26
28
|
WEB = 0,
|
|
@@ -5,4 +5,5 @@ export declare function CloseIcon(props: IconProps): import("react/jsx-runtime")
|
|
|
5
5
|
export declare function LeftIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare function LogoIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare function QRCodeIcon(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function ClipboardIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -5,4 +5,5 @@ export declare function CloseIcon(props: IconProps): import("react/jsx-runtime")
|
|
|
5
5
|
export declare function LeftIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare function LogoIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare function QRCodeIcon(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function ClipboardIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|