@tezos-x/octez.connect-ui 0.9.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/LICENCE +19 -0
- package/README.md +9 -0
- package/dist/bundle.js +60 -0
- package/dist/bundle.js.map +1 -0
- package/dist/cjs/components/alert/index.d.ts +4 -0
- package/dist/cjs/components/bug-report-form/index.d.ts +5 -0
- package/dist/cjs/components/button-icon/button-icon.d.ts +9 -0
- package/dist/cjs/components/icons/index.d.ts +8 -0
- package/dist/cjs/components/info/index.d.ts +4 -0
- package/dist/cjs/components/loader/index.d.ts +3 -0
- package/dist/cjs/components/pair-other/index.d.ts +4 -0
- package/dist/cjs/components/pairing.d.ts +51 -0
- package/dist/cjs/components/qr/index.d.ts +4 -0
- package/dist/cjs/components/toast/hooks/useDrag.d.ts +6 -0
- package/dist/cjs/components/toast/index.d.ts +4 -0
- package/dist/cjs/components/top-wallets/index.d.ts +4 -0
- package/dist/cjs/components/wallet/index.d.ts +4 -0
- package/dist/cjs/components/wallets/index.d.ts +4 -0
- package/dist/cjs/index.d.ts +6 -0
- package/dist/cjs/index.js +60 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/ui/alert/alert-templates.d.ts +8 -0
- package/dist/cjs/ui/alert/components/info-alert/index.d.ts +3 -0
- package/dist/cjs/ui/alert/components/pairing-alert/components/mobile-pairing/index.d.ts +2 -0
- package/dist/cjs/ui/alert/components/pairing-alert/components/mobile-pairing/utils/suffix-map.d.ts +2 -0
- package/dist/cjs/ui/alert/components/pairing-alert/components/qr-code/index.d.ts +3 -0
- package/dist/cjs/ui/alert/components/pairing-alert/components/wc-init-error/index.d.ts +3 -0
- package/dist/cjs/ui/alert/components/pairing-alert/index.d.ts +3 -0
- package/dist/cjs/ui/alert/getDefautlLogo.d.ts +1 -0
- package/dist/cjs/ui/alert/hooks/useConnect.d.ts +4 -0
- package/dist/cjs/ui/alert/hooks/useIsMobile.d.ts +2 -0
- package/dist/cjs/ui/alert/hooks/useSubstrateWallets.d.ts +3 -0
- package/dist/cjs/ui/alert/hooks/useWallets.d.ts +3 -0
- package/dist/cjs/ui/alert/index.d.ts +9 -0
- package/dist/cjs/ui/alert/substrate-wallet-lists.d.ts +5 -0
- package/dist/cjs/ui/alert/wallet-lists.d.ts +5 -0
- package/dist/cjs/ui/common.d.ts +158 -0
- package/dist/cjs/ui/toast/index.d.ts +4 -0
- package/dist/cjs/ui/toast/toast-templates.d.ts +5 -0
- package/dist/cjs/utils/colorMode.d.ts +3 -0
- package/dist/cjs/utils/get-tzip10-link.d.ts +1 -0
- package/dist/cjs/utils/platform.d.ts +11 -0
- package/dist/cjs/utils/qr.d.ts +7 -0
- package/dist/cjs/utils/subject.d.ts +9 -0
- package/dist/cjs/utils/wallets.d.ts +33 -0
- package/dist/components/alert/index.d.ts +4 -0
- package/dist/components/bug-report-form/index.d.ts +5 -0
- package/dist/components/button-icon/button-icon.d.ts +9 -0
- package/dist/components/icons/index.d.ts +8 -0
- package/dist/components/info/index.d.ts +4 -0
- package/dist/components/loader/index.d.ts +3 -0
- package/dist/components/pair-other/index.d.ts +4 -0
- package/dist/components/pairing.d.ts +51 -0
- package/dist/components/qr/index.d.ts +4 -0
- package/dist/components/toast/hooks/useDrag.d.ts +6 -0
- package/dist/components/toast/index.d.ts +4 -0
- package/dist/components/top-wallets/index.d.ts +4 -0
- package/dist/components/wallet/index.d.ts +4 -0
- package/dist/components/wallets/index.d.ts +4 -0
- package/dist/esm/components/alert/index.d.ts +4 -0
- package/dist/esm/components/bug-report-form/index.d.ts +5 -0
- package/dist/esm/components/button-icon/button-icon.d.ts +9 -0
- package/dist/esm/components/icons/index.d.ts +8 -0
- package/dist/esm/components/info/index.d.ts +4 -0
- package/dist/esm/components/loader/index.d.ts +3 -0
- package/dist/esm/components/pair-other/index.d.ts +4 -0
- package/dist/esm/components/pairing.d.ts +51 -0
- package/dist/esm/components/qr/index.d.ts +4 -0
- package/dist/esm/components/toast/hooks/useDrag.d.ts +6 -0
- package/dist/esm/components/toast/index.d.ts +4 -0
- package/dist/esm/components/top-wallets/index.d.ts +4 -0
- package/dist/esm/components/wallet/index.d.ts +4 -0
- package/dist/esm/components/wallets/index.d.ts +4 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +60 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/ui/alert/alert-templates.d.ts +8 -0
- package/dist/esm/ui/alert/components/info-alert/index.d.ts +3 -0
- package/dist/esm/ui/alert/components/pairing-alert/components/mobile-pairing/index.d.ts +2 -0
- package/dist/esm/ui/alert/components/pairing-alert/components/mobile-pairing/utils/suffix-map.d.ts +2 -0
- package/dist/esm/ui/alert/components/pairing-alert/components/qr-code/index.d.ts +3 -0
- package/dist/esm/ui/alert/components/pairing-alert/components/wc-init-error/index.d.ts +3 -0
- package/dist/esm/ui/alert/components/pairing-alert/index.d.ts +3 -0
- package/dist/esm/ui/alert/getDefautlLogo.d.ts +1 -0
- package/dist/esm/ui/alert/hooks/useConnect.d.ts +4 -0
- package/dist/esm/ui/alert/hooks/useIsMobile.d.ts +2 -0
- package/dist/esm/ui/alert/hooks/useSubstrateWallets.d.ts +3 -0
- package/dist/esm/ui/alert/hooks/useWallets.d.ts +3 -0
- package/dist/esm/ui/alert/index.d.ts +9 -0
- package/dist/esm/ui/alert/substrate-wallet-lists.d.ts +5 -0
- package/dist/esm/ui/alert/wallet-lists.d.ts +5 -0
- package/dist/esm/ui/common.d.ts +158 -0
- package/dist/esm/ui/toast/index.d.ts +4 -0
- package/dist/esm/ui/toast/toast-templates.d.ts +5 -0
- package/dist/esm/utils/colorMode.d.ts +3 -0
- package/dist/esm/utils/get-tzip10-link.d.ts +1 -0
- package/dist/esm/utils/platform.d.ts +11 -0
- package/dist/esm/utils/qr.d.ts +7 -0
- package/dist/esm/utils/subject.d.ts +9 -0
- package/dist/esm/utils/wallets.d.ts +33 -0
- package/dist/index.d.ts +6 -0
- package/dist/ui/alert/alert-templates.d.ts +8 -0
- package/dist/ui/alert/components/info-alert/index.d.ts +3 -0
- package/dist/ui/alert/components/pairing-alert/components/mobile-pairing/index.d.ts +2 -0
- package/dist/ui/alert/components/pairing-alert/components/mobile-pairing/utils/suffix-map.d.ts +2 -0
- package/dist/ui/alert/components/pairing-alert/components/qr-code/index.d.ts +3 -0
- package/dist/ui/alert/components/pairing-alert/components/wc-init-error/index.d.ts +3 -0
- package/dist/ui/alert/components/pairing-alert/index.d.ts +3 -0
- package/dist/ui/alert/getDefautlLogo.d.ts +1 -0
- package/dist/ui/alert/hooks/useConnect.d.ts +4 -0
- package/dist/ui/alert/hooks/useIsMobile.d.ts +2 -0
- package/dist/ui/alert/hooks/useSubstrateWallets.d.ts +3 -0
- package/dist/ui/alert/hooks/useWallets.d.ts +3 -0
- package/dist/ui/alert/index.d.ts +9 -0
- package/dist/ui/alert/substrate-wallet-lists.d.ts +5 -0
- package/dist/ui/alert/wallet-lists.d.ts +5 -0
- package/dist/ui/common.d.ts +158 -0
- package/dist/ui/toast/index.d.ts +4 -0
- package/dist/ui/toast/toast-templates.d.ts +5 -0
- package/dist/utils/colorMode.d.ts +3 -0
- package/dist/utils/get-tzip10-link.d.ts +1 -0
- package/dist/utils/platform.d.ts +11 -0
- package/dist/utils/qr.d.ts +7 -0
- package/dist/utils/subject.d.ts +9 -0
- package/dist/utils/wallets.d.ts +33 -0
- package/package.json +70 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface Wallet {
|
|
2
|
+
id: string;
|
|
3
|
+
key: string;
|
|
4
|
+
name: string;
|
|
5
|
+
image: string;
|
|
6
|
+
description: string;
|
|
7
|
+
type: string;
|
|
8
|
+
link: string;
|
|
9
|
+
supportedInteractionStandards?: ('wallet_connect' | 'beacon')[];
|
|
10
|
+
deepLink?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface MergedWallet {
|
|
13
|
+
id: string;
|
|
14
|
+
firefoxId?: string;
|
|
15
|
+
key: string;
|
|
16
|
+
name: string;
|
|
17
|
+
image: string;
|
|
18
|
+
descriptions: string[];
|
|
19
|
+
types: string[];
|
|
20
|
+
links: string[];
|
|
21
|
+
supportedInteractionStandards?: ('wallet_connect' | 'beacon')[];
|
|
22
|
+
tags?: string[];
|
|
23
|
+
deepLink?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare enum OSLink {
|
|
26
|
+
WEB = 0,
|
|
27
|
+
IOS = 1,
|
|
28
|
+
DESKTOP = 2,
|
|
29
|
+
EXTENSION = 3
|
|
30
|
+
}
|
|
31
|
+
export declare function parseWallets(wallets: Wallet[]): Wallet[];
|
|
32
|
+
export declare function arrangeTopWallets(arr: MergedWallet[], walletIds: string[]): MergedWallet[];
|
|
33
|
+
export declare function mergeWallets(wallets: Wallet[]): MergedWallet[];
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tezos-x/octez.connect-ui",
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "This package contains the UI part (alerts and toasts) of the octez.connect SDK.",
|
|
5
|
+
"author": "Andreas Gassmann <a.gassmann@papers.ch>",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"main": "dist/cjs/index.js",
|
|
8
|
+
"module": "dist/esm/index.js",
|
|
9
|
+
"types": "dist/esm/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
"require": "./dist/cjs/index.js",
|
|
12
|
+
"import": "./dist/esm/index.js"
|
|
13
|
+
},
|
|
14
|
+
"directories": {
|
|
15
|
+
"lib": "dist/esm",
|
|
16
|
+
"test": "__tests__"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/trilitech/octez.connect-sdk.git"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"tsc": "rollup -c",
|
|
30
|
+
"test": "jest"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/trilitech/octez.connect-sdk/issues"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@tezos-x/octez.connect-core": "0.9.0",
|
|
37
|
+
"@tezos-x/octez.connect-transport-postmessage": "0.9.0",
|
|
38
|
+
"@tezos-x/octez.connect-types": "0.9.0",
|
|
39
|
+
"@tezos-x/octez.connect-utils": "0.9.0",
|
|
40
|
+
"@walletconnect/utils": "2.18.0",
|
|
41
|
+
"qrcode-svg": "^1.1.0",
|
|
42
|
+
"react": "^19.1.0",
|
|
43
|
+
"react-dom": "^19.1.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
47
|
+
"@rollup/plugin-commonjs": "^28.0.3",
|
|
48
|
+
"@rollup/plugin-image": "^3.0.3",
|
|
49
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
50
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
51
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
52
|
+
"@testing-library/dom": "^10.4.0",
|
|
53
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
54
|
+
"@testing-library/react": "^16.3.0",
|
|
55
|
+
"@types/chrome": "0.0.315",
|
|
56
|
+
"@types/node": "^22.14.1",
|
|
57
|
+
"@types/qrcode-svg": "^1.1.5",
|
|
58
|
+
"@types/react": "^19.1.2",
|
|
59
|
+
"@types/react-dom": "^19.1.2",
|
|
60
|
+
"@vitejs/plugin-react": "^4.4.0",
|
|
61
|
+
"postcss-import": "^16.1.0",
|
|
62
|
+
"rollup": "4.39.0",
|
|
63
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
64
|
+
"rollup-plugin-string": "^3.0.0",
|
|
65
|
+
"rollup-plugin-svg": "^2.0.0",
|
|
66
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
67
|
+
"vite": "^6.2.6"
|
|
68
|
+
},
|
|
69
|
+
"gitHead": "730911e2d7fd40331a8486a7eaac8fc2b247082e"
|
|
70
|
+
}
|