Compare commits

..
Author SHA1 Message Date
85b5a6de6b Version Packages (#3060)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-05-17 03:19:23 -07:00
github-actions[bot] 9a9ec978f4 chore(chains): update chains (#3056)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-17 01:35:48 -07:00
Jonas Daniels 5a40c6a99b fix: CNCT-1176 (#3059) 2024-05-17 01:35:26 -07:00
greg 1698c40c37 Prevent MediaRenderer flashing failed state while loading (#3058) 2024-05-17 01:00:59 -07:00
80 changed files with 399 additions and 305 deletions
+7
View File
@@ -1,5 +1,12 @@
# @thirdweb-dev/auth # @thirdweb-dev/auth
## 4.1.83
### Patch Changes
- Updated dependencies []:
- @thirdweb-dev/wallets@2.5.25
## 4.1.82 ## 4.1.82
### Patch Changes ### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@thirdweb-dev/auth", "name": "@thirdweb-dev/auth",
"version": "4.1.82", "version": "4.1.83",
"main": "dist/thirdweb-dev-auth.cjs.js", "main": "dist/thirdweb-dev-auth.cjs.js",
"module": "dist/thirdweb-dev-auth.esm.js", "module": "dist/thirdweb-dev-auth.esm.js",
"browser": { "browser": {
+6
View File
@@ -1,5 +1,11 @@
# @thirdweb-dev/chains # @thirdweb-dev/chains
## 0.1.111
### Patch Changes
- [#3056](https://github.com/thirdweb-dev/js/pull/3056) [`9a9ec97`](https://github.com/thirdweb-dev/js/commit/9a9ec978f44f4f8034dda088aa22df753cae7549) Thanks [@github-actions](https://github.com/apps/github-actions)! - Synced Chains Package
## 0.1.110 ## 0.1.110
### Patch Changes ### Patch Changes
+6
View File
@@ -12,6 +12,12 @@ export default {
"faucets": [ "faucets": [
"https://faucet.maxxchain.org" "https://faucet.maxxchain.org"
], ],
"icon": {
"url": "ipfs://QmRhQG9TZrXDdbQeTzBmjg3pqgwaD5TKVZj8k4kaz8AoZx",
"width": 1021,
"height": 1021,
"format": "png"
},
"infoURL": "https://www.maxxchain.org/", "infoURL": "https://www.maxxchain.org/",
"name": "MaxxChain Mainnet", "name": "MaxxChain Mainnet",
"nativeCurrency": { "nativeCurrency": {
+6
View File
@@ -10,6 +10,12 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://QmNMuNBwg9opKvsnrDaoYBP743LeddeooQupVYjpBXf7d7",
"width": 400,
"height": 400,
"format": "png"
},
"infoURL": "https://kaspaclassic.com/", "infoURL": "https://kaspaclassic.com/",
"name": "KaspaClassic Mainnet", "name": "KaspaClassic Mainnet",
"nativeCurrency": { "nativeCurrency": {
+1 -13
View File
@@ -6,22 +6,10 @@ export default {
{ {
"name": "blockscout", "name": "blockscout",
"url": "https://explorer.re.al", "url": "https://explorer.re.al",
"standard": "EIP3091", "standard": "EIP3091"
"icon": {
"url": "ipfs://QmNUmWC7jNEBcTs6ZqkrQ5vMAQG8qjq7n3FcZnXvJZLoQ9",
"width": 301,
"height": 302,
"format": "png"
}
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://QmNUmWC7jNEBcTs6ZqkrQ5vMAQG8qjq7n3FcZnXvJZLoQ9",
"width": 301,
"height": 302,
"format": "png"
},
"infoURL": "https://re.al", "infoURL": "https://re.al",
"name": "re.al", "name": "re.al",
"nativeCurrency": { "nativeCurrency": {
@@ -10,12 +10,6 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://QmfTeudwVJcu7jzySBcpD9H5ZVK66nPJKRnicxend1bxfq",
"width": 500,
"height": 500,
"format": "svg"
},
"infoURL": "https://alphabetnetwork.org", "infoURL": "https://alphabetnetwork.org",
"name": "Alphabet Mainnet", "name": "Alphabet Mainnet",
"nativeCurrency": { "nativeCurrency": {
+1 -13
View File
@@ -6,22 +6,10 @@ export default {
{ {
"name": "shinescan", "name": "shinescan",
"url": "https://shinescan.io", "url": "https://shinescan.io",
"standard": "none", "standard": "none"
"icon": {
"url": "ipfs://QmUBkpY3prCTZHpx1fjrYLAJ6dPaGvNVTj97iy6p3NPUi1",
"width": 161,
"height": 161,
"format": "png"
}
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://QmUBkpY3prCTZHpx1fjrYLAJ6dPaGvNVTj97iy6p3NPUi1",
"width": 161,
"height": 161,
"format": "png"
},
"infoURL": "https://shinechain.tech", "infoURL": "https://shinechain.tech",
"name": "Shine Chain", "name": "Shine Chain",
"nativeCurrency": { "nativeCurrency": {
-6
View File
@@ -20,12 +20,6 @@ export default {
"name": "EIP1559" "name": "EIP1559"
} }
], ],
"icon": {
"url": "ipfs://bafybeihuintkoipxalwans23vhxajbwjnozpy34ww7ia7ds7nay3rpylzi",
"width": 256,
"height": 256,
"format": "svg"
},
"infoURL": "https://www.swisstronik.com", "infoURL": "https://www.swisstronik.com",
"name": "Swisstronik Testnet", "name": "Swisstronik Testnet",
"nativeCurrency": { "nativeCurrency": {
@@ -10,12 +10,6 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://bafkreib2sabb6vgfoskobp2wdr6if7v6s34f2xwjecfceui6qhjudmu4u4",
"width": 512,
"height": 512,
"format": "png"
},
"infoURL": "https://www.powergold.tech", "infoURL": "https://www.powergold.tech",
"name": "PowerGold", "name": "PowerGold",
"nativeCurrency": { "nativeCurrency": {
+1 -13
View File
@@ -6,13 +6,7 @@ export default {
{ {
"name": "Creditscan", "name": "Creditscan",
"url": "https://scan.creditsmartchain.com", "url": "https://scan.creditsmartchain.com",
"standard": "EIP3091", "standard": "EIP3091"
"icon": {
"url": "ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",
"width": 1000,
"height": 1628,
"format": "png"
}
} }
], ],
"faucets": [], "faucets": [],
@@ -24,12 +18,6 @@ export default {
"name": "EIP1559" "name": "EIP1559"
} }
], ],
"icon": {
"url": "ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",
"width": 1000,
"height": 1628,
"format": "png"
},
"infoURL": "https://creditsmartchain.com", "infoURL": "https://creditsmartchain.com",
"name": "Credit Smart Chain", "name": "Credit Smart Chain",
"nativeCurrency": { "nativeCurrency": {
+6
View File
@@ -10,6 +10,12 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://QmQpKKwpqrx77VA4SJLEWhuv9eLFMcVV9uvxRCLb6gdgCX",
"width": 847,
"height": 906,
"format": "png"
},
"infoURL": "https://docs.ic-plaza.org/", "infoURL": "https://docs.ic-plaza.org/",
"name": "ICPlaza Mainnet", "name": "ICPlaza Mainnet",
"nativeCurrency": { "nativeCurrency": {
+1 -13
View File
@@ -6,13 +6,7 @@ export default {
{ {
"name": "Vitruveo Testnet Explorer", "name": "Vitruveo Testnet Explorer",
"url": "https://test-explorer.vitruveo.xyz", "url": "https://test-explorer.vitruveo.xyz",
"standard": "EIP3091", "standard": "EIP3091"
"icon": {
"url": "ipfs://bafkreidjhjv7uu7if745ys7ari3ka75spm2hqyr5po66sbe7kqsfk7ahua",
"width": 1000,
"height": 1000,
"format": "png"
}
} }
], ],
"faucets": [ "faucets": [
@@ -23,12 +17,6 @@ export default {
"name": "EIP155" "name": "EIP155"
} }
], ],
"icon": {
"url": "ipfs://bafkreidjhjv7uu7if745ys7ari3ka75spm2hqyr5po66sbe7kqsfk7ahua",
"width": 1000,
"height": 1000,
"format": "png"
},
"infoURL": "https://www.vitruveo.xyz", "infoURL": "https://www.vitruveo.xyz",
"name": "Vitruveo Testnet", "name": "Vitruveo Testnet",
"nativeCurrency": { "nativeCurrency": {
+6
View File
@@ -12,6 +12,12 @@ export default {
"faucets": [ "faucets": [
"https://faucet.ctexscan.com" "https://faucet.ctexscan.com"
], ],
"icon": {
"url": "ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle",
"width": 800,
"height": 800,
"format": "png"
},
"infoURL": "https://ctextoken.io", "infoURL": "https://ctextoken.io",
"name": "Ctex Scan Blockchain", "name": "Ctex Scan Blockchain",
"nativeCurrency": { "nativeCurrency": {
+1 -13
View File
@@ -6,13 +6,7 @@ export default {
{ {
"name": "Vitruveo Explorer", "name": "Vitruveo Explorer",
"url": "https://explorer.vitruveo.xyz", "url": "https://explorer.vitruveo.xyz",
"standard": "EIP3091", "standard": "EIP3091"
"icon": {
"url": "ipfs://bafkreidjhjv7uu7if745ys7ari3ka75spm2hqyr5po66sbe7kqsfk7ahua",
"width": 1000,
"height": 1000,
"format": "png"
}
} }
], ],
"faucets": [], "faucets": [],
@@ -21,12 +15,6 @@ export default {
"name": "EIP155" "name": "EIP155"
} }
], ],
"icon": {
"url": "ipfs://bafkreidjhjv7uu7if745ys7ari3ka75spm2hqyr5po66sbe7kqsfk7ahua",
"width": 1000,
"height": 1000,
"format": "png"
},
"infoURL": "https://www.vitruveo.xyz", "infoURL": "https://www.vitruveo.xyz",
"name": "Vitruveo Mainnet", "name": "Vitruveo Mainnet",
"nativeCurrency": { "nativeCurrency": {
@@ -16,12 +16,6 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://QmNUpqkYWYJoDXKUpZ8FVbGyN6HCwxYonKNAieCf2oTzGn",
"width": 1062,
"height": 1062,
"format": "png"
},
"infoURL": "https://www.plumenetwork.xyz/", "infoURL": "https://www.plumenetwork.xyz/",
"name": "Plume Testnet", "name": "Plume Testnet",
"nativeCurrency": { "nativeCurrency": {
+13 -1
View File
@@ -6,12 +6,24 @@ export default {
{ {
"name": "Blast Sepolia Explorer", "name": "Blast Sepolia Explorer",
"url": "https://testnet.blastscan.io", "url": "https://testnet.blastscan.io",
"standard": "EIP3091" "standard": "EIP3091",
"icon": {
"url": "ipfs://bafybeifc2h3x7jgy4x4nmg2m54ghbvmkfu6oweujambwefzqzew5vujhsi",
"width": 400,
"height": 400,
"format": "jpg"
}
} }
], ],
"faucets": [ "faucets": [
"https://faucet.quicknode.com/blast/sepolia" "https://faucet.quicknode.com/blast/sepolia"
], ],
"icon": {
"url": "ipfs://bafybeifc2h3x7jgy4x4nmg2m54ghbvmkfu6oweujambwefzqzew5vujhsi",
"width": 400,
"height": 400,
"format": "jpg"
},
"infoURL": "https://blast.io/", "infoURL": "https://blast.io/",
"name": "Blast Sepolia Testnet", "name": "Blast Sepolia Testnet",
"nativeCurrency": { "nativeCurrency": {
-6
View File
@@ -12,12 +12,6 @@ export default {
"faucets": [ "faucets": [
"https://faucet.condor.systems" "https://faucet.condor.systems"
], ],
"icon": {
"url": "ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM",
"width": 752,
"height": 752,
"format": "png"
},
"infoURL": "https://condor.systems", "infoURL": "https://condor.systems",
"name": "Condor Test Network", "name": "Condor Test Network",
"nativeCurrency": { "nativeCurrency": {
+6
View File
@@ -10,6 +10,12 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",
"width": 1140,
"height": 1140,
"format": "png"
},
"infoURL": "https://www.alaya.network/", "infoURL": "https://www.alaya.network/",
"name": "Alaya Mainnet", "name": "Alaya Mainnet",
"nativeCurrency": { "nativeCurrency": {
+6
View File
@@ -12,6 +12,12 @@ export default {
"faucets": [ "faucets": [
"https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c" "https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c"
], ],
"icon": {
"url": "ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",
"width": 1140,
"height": 1140,
"format": "png"
},
"infoURL": "https://www.alaya.network/", "infoURL": "https://www.alaya.network/",
"name": "Alaya Dev Testnet", "name": "Alaya Dev Testnet",
"nativeCurrency": { "nativeCurrency": {
@@ -10,12 +10,6 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://QmVf1afskRHuZjFSLCZH8397KrVNAoYgyAePX9VMBrPVtx",
"width": 246,
"height": 247,
"format": "png"
},
"infoURL": "https://pego.network", "infoURL": "https://pego.network",
"name": "Pego Network", "name": "Pego Network",
"nativeCurrency": { "nativeCurrency": {
-6
View File
@@ -10,12 +10,6 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://QmezBwVepoegoCqb86idzPgvPxtaSuXzMLBGiiYfyTGTkc",
"width": 458,
"height": 468,
"format": "png"
},
"infoURL": "https://dcpay.io", "infoURL": "https://dcpay.io",
"name": "DCpay Mainnet", "name": "DCpay Mainnet",
"nativeCurrency": { "nativeCurrency": {
+13 -1
View File
@@ -6,10 +6,22 @@ export default {
{ {
"name": "tpcscan", "name": "tpcscan",
"url": "https://tpcscan.com", "url": "https://tpcscan.com",
"standard": "EIP3091" "standard": "EIP3091",
"icon": {
"url": "ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",
"width": 578,
"height": 701,
"format": "svg"
}
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",
"width": 578,
"height": 701,
"format": "svg"
},
"infoURL": "https://techpay.io/", "infoURL": "https://techpay.io/",
"name": "TechPay Mainnet", "name": "TechPay Mainnet",
"nativeCurrency": { "nativeCurrency": {
@@ -12,12 +12,6 @@ export default {
"faucets": [ "faucets": [
"https://faucet.razorscan.io/" "https://faucet.razorscan.io/"
], ],
"icon": {
"url": "ipfs://QmUdwAZJfyKGZnfPGDsCnNvGu123mdd57kTGj1Y3EWVuWK",
"width": 900,
"height": 900,
"format": "png"
},
"infoURL": "https://razor.network", "infoURL": "https://razor.network",
"name": "Razor Skale Chain", "name": "Razor Skale Chain",
"nativeCurrency": { "nativeCurrency": {
@@ -10,6 +10,12 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://bafkreievnqg3xjokaty4kfbxxbrzm5v5y7exbaaia2txrh4sfgrqsalfym",
"width": 128,
"height": 128,
"format": "png"
},
"infoURL": "https://ancient8.gg/", "infoURL": "https://ancient8.gg/",
"name": "Ancient8 Testnet", "name": "Ancient8 Testnet",
"nativeCurrency": { "nativeCurrency": {
+13 -1
View File
@@ -6,10 +6,22 @@ export default {
{ {
"name": "blockscout", "name": "blockscout",
"url": "https://explorer-sepolia.vizing.com", "url": "https://explorer-sepolia.vizing.com",
"standard": "EIP3091" "standard": "EIP3091",
"icon": {
"url": "ipfs://QmPgpWfGsAZ5UHekWFR8rioadVe3Wox8idFyeVxuv9N4Vo",
"width": 200,
"height": 200,
"format": "svg"
}
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://QmPgpWfGsAZ5UHekWFR8rioadVe3Wox8idFyeVxuv9N4Vo",
"width": 200,
"height": 200,
"format": "svg"
},
"infoURL": "https://vizing.com", "infoURL": "https://vizing.com",
"name": "Vizing Testnet", "name": "Vizing Testnet",
"nativeCurrency": { "nativeCurrency": {
+13 -1
View File
@@ -6,10 +6,22 @@ export default {
{ {
"name": "blockscout", "name": "blockscout",
"url": "https://explorer.vizing.com", "url": "https://explorer.vizing.com",
"standard": "EIP3091" "standard": "EIP3091",
"icon": {
"url": "ipfs://QmPgpWfGsAZ5UHekWFR8rioadVe3Wox8idFyeVxuv9N4Vo",
"width": 200,
"height": 200,
"format": "svg"
}
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://QmPgpWfGsAZ5UHekWFR8rioadVe3Wox8idFyeVxuv9N4Vo",
"width": 200,
"height": 200,
"format": "svg"
},
"infoURL": "https://vizing.com", "infoURL": "https://vizing.com",
"name": "Vizing Mainnet", "name": "Vizing Mainnet",
"nativeCurrency": { "nativeCurrency": {
@@ -10,6 +10,12 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://bafkreievnqg3xjokaty4kfbxxbrzm5v5y7exbaaia2txrh4sfgrqsalfym",
"width": 128,
"height": 128,
"format": "png"
},
"infoURL": "https://ancient8.gg/", "infoURL": "https://ancient8.gg/",
"name": "Ancient8 Testnet (deprecated)", "name": "Ancient8 Testnet (deprecated)",
"nativeCurrency": { "nativeCurrency": {
@@ -18,6 +18,12 @@ export default {
"name": "EIP1559" "name": "EIP1559"
} }
], ],
"icon": {
"url": "ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae",
"width": 256,
"height": 256,
"format": "png"
},
"infoURL": "https://www.flaexchange.top", "infoURL": "https://www.flaexchange.top",
"name": "Flachain Mainnet", "name": "Flachain Mainnet",
"nativeCurrency": { "nativeCurrency": {
+7 -7
View File
@@ -6,13 +6,7 @@ export default {
{ {
"name": "fsnscan", "name": "fsnscan",
"url": "https://fsnscan.com", "url": "https://fsnscan.com",
"standard": "EIP3091", "standard": "EIP3091"
"icon": {
"url": "ipfs://QmSAFx34SKNi7a139agX12f68oBMo2Ktt9c8yD8aFa14gd",
"width": 48,
"height": 51,
"format": "svg"
}
} }
], ],
"faucets": [], "faucets": [],
@@ -24,6 +18,12 @@ export default {
"name": "EIP1559" "name": "EIP1559"
} }
], ],
"icon": {
"url": "ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",
"width": 31,
"height": 31,
"format": "svg"
},
"infoURL": "https://fusion.org", "infoURL": "https://fusion.org",
"name": "Fusion Mainnet", "name": "Fusion Mainnet",
"nativeCurrency": { "nativeCurrency": {
-6
View File
@@ -12,12 +12,6 @@ export default {
"faucets": [ "faucets": [
"https://faucet.crossbell.io" "https://faucet.crossbell.io"
], ],
"icon": {
"url": "ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t",
"width": 408,
"height": 408,
"format": "svg"
},
"infoURL": "https://crossbell.io", "infoURL": "https://crossbell.io",
"name": "Crossbell", "name": "Crossbell",
"nativeCurrency": { "nativeCurrency": {
-6
View File
@@ -10,12 +10,6 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://bafkreiexm4aoscqo4d7dipicdgmfaemgzck2w7qhfp5mnoo7z2plcxleju",
"width": 512,
"height": 512,
"format": "png"
},
"name": "Muster Mainnet", "name": "Muster Mainnet",
"nativeCurrency": { "nativeCurrency": {
"name": "Ether", "name": "Ether",
+1 -13
View File
@@ -6,13 +6,7 @@ export default {
{ {
"name": "Creditscan", "name": "Creditscan",
"url": "https://scan.creditsmartchain.com", "url": "https://scan.creditsmartchain.com",
"standard": "EIP3091", "standard": "EIP3091"
"icon": {
"url": "ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",
"width": 1000,
"height": 1628,
"format": "png"
}
} }
], ],
"faucets": [], "faucets": [],
@@ -24,12 +18,6 @@ export default {
"name": "EIP1559" "name": "EIP1559"
} }
], ],
"icon": {
"url": "ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",
"width": 1000,
"height": 1628,
"format": "png"
},
"infoURL": "https://creditsmartchain.com", "infoURL": "https://creditsmartchain.com",
"name": "Credit Smart Chain Mainnet", "name": "Credit Smart Chain Mainnet",
"nativeCurrency": { "nativeCurrency": {
-6
View File
@@ -10,12 +10,6 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://bafkreihs2nrnizpcuzjmuu2yi7wrtwd7qlqje46qnil5bnntfbfkb2roea",
"width": 1000,
"height": 1000,
"format": "png"
},
"infoURL": "https://areon.network", "infoURL": "https://areon.network",
"name": "Areon Network Testnet", "name": "Areon Network Testnet",
"nativeCurrency": { "nativeCurrency": {
-6
View File
@@ -10,12 +10,6 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://bafkreihs2nrnizpcuzjmuu2yi7wrtwd7qlqje46qnil5bnntfbfkb2roea",
"width": 1000,
"height": 1000,
"format": "png"
},
"infoURL": "https://areon.network", "infoURL": "https://areon.network",
"name": "Areon Network Mainnet", "name": "Areon Network Mainnet",
"nativeCurrency": { "nativeCurrency": {
+7 -7
View File
@@ -6,13 +6,7 @@ export default {
{ {
"name": "fsnscan", "name": "fsnscan",
"url": "https://testnet.fsnscan.com", "url": "https://testnet.fsnscan.com",
"standard": "EIP3091", "standard": "EIP3091"
"icon": {
"url": "ipfs://QmSAFx34SKNi7a139agX12f68oBMo2Ktt9c8yD8aFa14gd",
"width": 48,
"height": 51,
"format": "svg"
}
} }
], ],
"faucets": [], "faucets": [],
@@ -24,6 +18,12 @@ export default {
"name": "EIP1559" "name": "EIP1559"
} }
], ],
"icon": {
"url": "ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",
"width": 31,
"height": 31,
"format": "svg"
},
"infoURL": "https://fusion.org", "infoURL": "https://fusion.org",
"name": "Fusion Testnet", "name": "Fusion Testnet",
"nativeCurrency": { "nativeCurrency": {
-6
View File
@@ -24,12 +24,6 @@ export default {
"name": "EIP1559" "name": "EIP1559"
} }
], ],
"icon": {
"url": "ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",
"width": 1968,
"height": 1968,
"format": "png"
},
"infoURL": "https://blackfort.exchange", "infoURL": "https://blackfort.exchange",
"name": "BlackFort Exchange Network Testnet", "name": "BlackFort Exchange Network Testnet",
"nativeCurrency": { "nativeCurrency": {
-6
View File
@@ -24,12 +24,6 @@ export default {
"name": "EIP1559" "name": "EIP1559"
} }
], ],
"icon": {
"url": "ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",
"width": 1968,
"height": 1968,
"format": "png"
},
"infoURL": "https://blackfort.exchange", "infoURL": "https://blackfort.exchange",
"name": "BlackFort Exchange Network", "name": "BlackFort Exchange Network",
"nativeCurrency": { "nativeCurrency": {
+6
View File
@@ -12,6 +12,12 @@ export default {
"faucets": [ "faucets": [
"https://faucet.sardisnetwork.com" "https://faucet.sardisnetwork.com"
], ],
"icon": {
"url": "ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",
"width": 512,
"height": 512,
"format": "png"
},
"infoURL": "https://mysardis.com", "infoURL": "https://mysardis.com",
"name": "Sardis Mainnet", "name": "Sardis Mainnet",
"nativeCurrency": { "nativeCurrency": {
+6
View File
@@ -12,6 +12,12 @@ export default {
"faucets": [ "faucets": [
"https://nova-faucet.velo.org" "https://nova-faucet.velo.org"
], ],
"icon": {
"url": "ipfs://QmYqvnW2jwPEKUv8BdaV4sbL8Audcwosat6SPn4GqYtKxc",
"width": 225,
"height": 225,
"format": "png"
},
"infoURL": "https://velo.org", "infoURL": "https://velo.org",
"name": "VELO Labs Mainnet", "name": "VELO Labs Mainnet",
"nativeCurrency": { "nativeCurrency": {
-6
View File
@@ -12,12 +12,6 @@ export default {
"faucets": [ "faucets": [
"http://faucet.latestchain.io" "http://faucet.latestchain.io"
], ],
"icon": {
"url": "ipfs://QmUU784i1ZHDNwgXvt9weZmq6YbHHkyXvuDS7r4iDzao72",
"width": 1115,
"height": 1242,
"format": "png"
},
"infoURL": "https://latestcoin.io", "infoURL": "https://latestcoin.io",
"name": "Latest Chain Testnet", "name": "Latest Chain Testnet",
"nativeCurrency": { "nativeCurrency": {
+13 -1
View File
@@ -6,10 +6,22 @@ export default {
{ {
"name": "Proof of Play Apex Explorer", "name": "Proof of Play Apex Explorer",
"url": "https://explorer.apex.proofofplay.com", "url": "https://explorer.apex.proofofplay.com",
"standard": "EIP3091" "standard": "EIP3091",
"icon": {
"url": "ipfs://QmW3NPDe6WRqucrWbe8pg3GqSMPi8V6Qa1fAiaQuqjxSJC",
"width": 1256,
"height": 1256,
"format": "png"
}
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://QmW3NPDe6WRqucrWbe8pg3GqSMPi8V6Qa1fAiaQuqjxSJC",
"width": 1256,
"height": 1256,
"format": "png"
},
"infoURL": "https://proofofplay.com", "infoURL": "https://proofofplay.com",
"name": "Proof of Play - Apex", "name": "Proof of Play - Apex",
"nativeCurrency": { "nativeCurrency": {
+6
View File
@@ -10,6 +10,12 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://bafkreifgpv7tnai42hsdegnpwzbvq5iymgub357e553cotitirwy2ir7je",
"width": 2000,
"height": 2243,
"format": "png"
},
"infoURL": "https://icb.network", "infoURL": "https://icb.network",
"name": "ICB Testnet", "name": "ICB Testnet",
"nativeCurrency": { "nativeCurrency": {
+6
View File
@@ -10,6 +10,12 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://bafkreifgpv7tnai42hsdegnpwzbvq5iymgub357e553cotitirwy2ir7je",
"width": 2000,
"height": 2243,
"format": "png"
},
"infoURL": "https://icb.network", "infoURL": "https://icb.network",
"name": "ICB Network", "name": "ICB Network",
"nativeCurrency": { "nativeCurrency": {
+6
View File
@@ -16,6 +16,12 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://QmPXhdPGufjcPzZ9Y6nY6QyW8MgA6793L88iPMRh1Q3gjJ",
"width": 512,
"height": 366,
"format": "png"
},
"infoURL": "https://hexapod.network", "infoURL": "https://hexapod.network",
"name": "Dragonfly Mainnet (Hexapod)", "name": "Dragonfly Mainnet (Hexapod)",
"nativeCurrency": { "nativeCurrency": {
+1 -13
View File
@@ -6,13 +6,7 @@ export default {
{ {
"name": "Vanguard Explorer", "name": "Vanguard Explorer",
"url": "https://explorer-vanguard.vanarchain.com", "url": "https://explorer-vanguard.vanarchain.com",
"standard": "EIP3091", "standard": "EIP3091"
"icon": {
"url": "ipfs://QmeERjnmdZ6v1tfCyfKfy2Rzh1vPCsU7x2sLJcLqQ6E3Fd",
"width": 1000,
"height": 1628,
"format": "png"
}
} }
], ],
"faucets": [ "faucets": [
@@ -23,12 +17,6 @@ export default {
"name": "EIP155" "name": "EIP155"
} }
], ],
"icon": {
"url": "ipfs://QmeERjnmdZ6v1tfCyfKfy2Rzh1vPCsU7x2sLJcLqQ6E3Fd",
"width": 1000,
"height": 1628,
"format": "png"
},
"infoURL": "https://vanarchain.com", "infoURL": "https://vanarchain.com",
"name": "Vanguard", "name": "Vanguard",
"nativeCurrency": { "nativeCurrency": {
+1 -13
View File
@@ -6,22 +6,10 @@ export default {
{ {
"name": "zkLink Nova Block Explorer", "name": "zkLink Nova Block Explorer",
"url": "https://explorer.zklink.io", "url": "https://explorer.zklink.io",
"standard": "EIP3091", "standard": "EIP3091"
"icon": {
"url": "ipfs://bafkreiaj7b6pdekv3rjuta5wsdvmfdcsat2jftjgozape7wvmyj6d3vjcm",
"width": 512,
"height": 512,
"format": "png"
}
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://bafkreiaj7b6pdekv3rjuta5wsdvmfdcsat2jftjgozape7wvmyj6d3vjcm",
"width": 512,
"height": 512,
"format": "png"
},
"infoURL": "https://zklink.io", "infoURL": "https://zklink.io",
"name": "zkLink Nova Mainnet", "name": "zkLink Nova Mainnet",
"nativeCurrency": { "nativeCurrency": {
+1 -13
View File
@@ -6,22 +6,10 @@ export default {
{ {
"name": "zkLink Nova Block Explorer", "name": "zkLink Nova Block Explorer",
"url": "https://sepolia.explorer.zklink.io", "url": "https://sepolia.explorer.zklink.io",
"standard": "EIP3091", "standard": "EIP3091"
"icon": {
"url": "ipfs://bafkreiaj7b6pdekv3rjuta5wsdvmfdcsat2jftjgozape7wvmyj6d3vjcm",
"width": 512,
"height": 512,
"format": "png"
}
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://bafkreiaj7b6pdekv3rjuta5wsdvmfdcsat2jftjgozape7wvmyj6d3vjcm",
"width": 512,
"height": 512,
"format": "png"
},
"infoURL": "https://zklink.io", "infoURL": "https://zklink.io",
"name": "zkLink Nova Sepolia Testnet", "name": "zkLink Nova Sepolia Testnet",
"nativeCurrency": { "nativeCurrency": {
+1 -13
View File
@@ -6,22 +6,10 @@ export default {
{ {
"name": "zkLink Nova Block Explorer", "name": "zkLink Nova Block Explorer",
"url": "https://goerli.explorer.zklink.io", "url": "https://goerli.explorer.zklink.io",
"standard": "EIP3091", "standard": "EIP3091"
"icon": {
"url": "ipfs://bafkreiaj7b6pdekv3rjuta5wsdvmfdcsat2jftjgozape7wvmyj6d3vjcm",
"width": 512,
"height": 512,
"format": "png"
}
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://bafkreiaj7b6pdekv3rjuta5wsdvmfdcsat2jftjgozape7wvmyj6d3vjcm",
"width": 512,
"height": 512,
"format": "png"
},
"infoURL": "https://zklink.io", "infoURL": "https://zklink.io",
"name": "zkLink Nova Goerli Testnet", "name": "zkLink Nova Goerli Testnet",
"nativeCurrency": { "nativeCurrency": {
+20 -2
View File
@@ -6,16 +6,34 @@ export default {
{ {
"name": "Blastscan", "name": "Blastscan",
"url": "https://blastscan.io", "url": "https://blastscan.io",
"standard": "EIP3091" "standard": "EIP3091",
"icon": {
"url": "ipfs://bafybeifc2h3x7jgy4x4nmg2m54ghbvmkfu6oweujambwefzqzew5vujhsi",
"width": 400,
"height": 400,
"format": "jpg"
}
}, },
{ {
"name": "Blast Explorer", "name": "Blast Explorer",
"url": "https://blastexplorer.io", "url": "https://blastexplorer.io",
"standard": "EIP3091" "standard": "EIP3091",
"icon": {
"url": "ipfs://bafybeifc2h3x7jgy4x4nmg2m54ghbvmkfu6oweujambwefzqzew5vujhsi",
"width": 400,
"height": 400,
"format": "jpg"
}
} }
], ],
"faucets": [], "faucets": [],
"features": [], "features": [],
"icon": {
"url": "ipfs://bafybeifc2h3x7jgy4x4nmg2m54ghbvmkfu6oweujambwefzqzew5vujhsi",
"width": 400,
"height": 400,
"format": "jpg"
},
"infoURL": "https://blast.io/", "infoURL": "https://blast.io/",
"name": "Blast", "name": "Blast",
"nativeCurrency": { "nativeCurrency": {
@@ -18,6 +18,12 @@ export default {
"name": "EIP1559" "name": "EIP1559"
} }
], ],
"icon": {
"url": "ipfs://QmcnA15BLE9uvznbugXKjqquizZs1eLPeEEkc92DSmvhmt",
"width": 248,
"height": 248,
"format": "png"
},
"infoURL": "https://teamblockchain.team", "infoURL": "https://teamblockchain.team",
"name": "T.E.A.M Blockchain", "name": "T.E.A.M Blockchain",
"nativeCurrency": { "nativeCurrency": {
@@ -10,6 +10,12 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://bafkreievnqg3xjokaty4kfbxxbrzm5v5y7exbaaia2txrh4sfgrqsalfym",
"width": 128,
"height": 128,
"format": "png"
},
"infoURL": "https://ancient8.gg/", "infoURL": "https://ancient8.gg/",
"name": "Ancient8", "name": "Ancient8",
"nativeCurrency": { "nativeCurrency": {
+6
View File
@@ -20,6 +20,12 @@ export default {
"name": "EIP1559" "name": "EIP1559"
} }
], ],
"icon": {
"url": "ipfs://QmXMLcCaNPMyWCEYX2MZDJHNvj5cpj2cR5dRQtedBRNypT",
"width": 512,
"height": 512,
"format": "png"
},
"infoURL": "https://maxi.network", "infoURL": "https://maxi.network",
"name": "MAXI Chain Testnet", "name": "MAXI Chain Testnet",
"nativeCurrency": { "nativeCurrency": {
@@ -10,6 +10,12 @@ export default {
} }
], ],
"faucets": [], "faucets": [],
"icon": {
"url": "ipfs://bafkreifvrly5tgd34xqeo67s4etmiu52bkroml7uy7eosizf57htf5nrzq",
"width": 250,
"height": 250,
"format": "png"
},
"infoURL": "https://zora.energy", "infoURL": "https://zora.energy",
"name": "Zora Sepolia Testnet", "name": "Zora Sepolia Testnet",
"nativeCurrency": { "nativeCurrency": {
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@thirdweb-dev/chains", "name": "@thirdweb-dev/chains",
"version": "0.1.110", "version": "0.1.111",
"main": "dist/thirdweb-dev-chains.cjs.js", "main": "dist/thirdweb-dev-chains.cjs.js",
"module": "dist/thirdweb-dev-chains.esm.js", "module": "dist/thirdweb-dev-chains.esm.js",
"exports": { "exports": {
+10
View File
@@ -1,5 +1,15 @@
# thirdweb # thirdweb
## 0.13.91
### Patch Changes
- Updated dependencies [[`9a9ec97`](https://github.com/thirdweb-dev/js/commit/9a9ec978f44f4f8034dda088aa22df753cae7549)]:
- @thirdweb-dev/chains@0.1.111
- @thirdweb-dev/sdk@4.0.85
- @thirdweb-dev/wallets@2.5.25
- @thirdweb-dev/auth@4.1.83
## 0.13.90 ## 0.13.90
### Patch Changes ### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "@thirdweb-dev/cli", "name": "@thirdweb-dev/cli",
"main": "dist/cli/index.js", "main": "dist/cli/index.js",
"version": "0.13.90", "version": "0.13.91",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/cli", "repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/cli",
"author": "thirdweb eng <[email protected]>", "author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0", "license": "Apache-2.0",
+10
View File
@@ -1,5 +1,15 @@
# @thirdweb-dev/react-core # @thirdweb-dev/react-core
## 4.6.24
### Patch Changes
- Updated dependencies [[`9a9ec97`](https://github.com/thirdweb-dev/js/commit/9a9ec978f44f4f8034dda088aa22df753cae7549)]:
- @thirdweb-dev/chains@0.1.111
- @thirdweb-dev/sdk@4.0.85
- @thirdweb-dev/wallets@2.5.25
- @thirdweb-dev/auth@4.1.83
## 4.6.23 ## 4.6.23
### Patch Changes ### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@thirdweb-dev/react-core", "name": "@thirdweb-dev/react-core",
"version": "4.6.23", "version": "4.6.24",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-core", "repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-core",
"author": "thirdweb eng <[email protected]>", "author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0", "license": "Apache-2.0",
+10
View File
@@ -1,5 +1,15 @@
# @thirdweb-dev/react # @thirdweb-dev/react
## 4.6.24
### Patch Changes
- Updated dependencies [[`9a9ec97`](https://github.com/thirdweb-dev/js/commit/9a9ec978f44f4f8034dda088aa22df753cae7549)]:
- @thirdweb-dev/chains@0.1.111
- @thirdweb-dev/sdk@4.0.85
- @thirdweb-dev/react-core@4.6.24
- @thirdweb-dev/wallets@2.5.25
## 4.6.23 ## 4.6.23
### Patch Changes ### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@thirdweb-dev/react", "name": "@thirdweb-dev/react",
"version": "4.6.23", "version": "4.6.24",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react", "repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react",
"author": "thirdweb eng <[email protected]>", "author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0", "license": "Apache-2.0",
Binary file not shown.
+8
View File
@@ -1,5 +1,13 @@
# @thirdweb-dev/sdk # @thirdweb-dev/sdk
## 4.0.85
### Patch Changes
- Updated dependencies [[`5a40c6a`](https://github.com/thirdweb-dev/js/commit/5a40c6a99b5f4fcafc9c2835f05b41dba8023e4a), [`9a9ec97`](https://github.com/thirdweb-dev/js/commit/9a9ec978f44f4f8034dda088aa22df753cae7549), [`1698c40`](https://github.com/thirdweb-dev/js/commit/1698c40c37a2d9d7e31a8b15d95d87896afab063)]:
- thirdweb@5.22.1
- @thirdweb-dev/chains@0.1.111
## 4.0.84 ## 4.0.84
### Patch Changes ### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@thirdweb-dev/sdk", "name": "@thirdweb-dev/sdk",
"version": "4.0.84", "version": "4.0.85",
"description": "The main thirdweb SDK.", "description": "The main thirdweb SDK.",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/sdk", "repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/sdk",
"license": "Apache-2.0", "license": "Apache-2.0",
Binary file not shown.
@@ -1,5 +1,15 @@
# @thirdweb-dev/unity-js-bridge # @thirdweb-dev/unity-js-bridge
## 0.6.34
### Patch Changes
- Updated dependencies [[`9a9ec97`](https://github.com/thirdweb-dev/js/commit/9a9ec978f44f4f8034dda088aa22df753cae7549)]:
- @thirdweb-dev/chains@0.1.111
- @thirdweb-dev/sdk@4.0.85
- @thirdweb-dev/wallets@2.5.25
- @thirdweb-dev/auth@4.1.83
## 0.6.33 ## 0.6.33
### Patch Changes ### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@thirdweb-dev/unity-js-bridge", "name": "@thirdweb-dev/unity-js-bridge",
"version": "0.6.33", "version": "0.6.34",
"main": "dist/thirdweb-unity-bridge.js", "main": "dist/thirdweb-unity-bridge.js",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge", "repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge",
"license": "Apache-2.0", "license": "Apache-2.0",
+8
View File
@@ -1,5 +1,13 @@
# @thirdweb-dev/wallets # @thirdweb-dev/wallets
## 2.5.25
### Patch Changes
- Updated dependencies [[`9a9ec97`](https://github.com/thirdweb-dev/js/commit/9a9ec978f44f4f8034dda088aa22df753cae7549)]:
- @thirdweb-dev/chains@0.1.111
- @thirdweb-dev/sdk@4.0.85
## 2.5.24 ## 2.5.24
### Patch Changes ### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@thirdweb-dev/wallets", "name": "@thirdweb-dev/wallets",
"version": "2.5.24", "version": "2.5.25",
"main": "dist/thirdweb-dev-wallets.cjs.js", "main": "dist/thirdweb-dev-wallets.cjs.js",
"module": "dist/thirdweb-dev-wallets.esm.js", "module": "dist/thirdweb-dev-wallets.esm.js",
"browser": { "browser": {
+8
View File
@@ -1,5 +1,13 @@
# thirdweb # thirdweb
## 5.22.1
### Patch Changes
- [#3059](https://github.com/thirdweb-dev/js/pull/3059) [`5a40c6a`](https://github.com/thirdweb-dev/js/commit/5a40c6a99b5f4fcafc9c2835f05b41dba8023e4a) Thanks [@jnsdls](https://github.com/jnsdls)! - fix losing state when looking at transactions during pay
- [#3058](https://github.com/thirdweb-dev/js/pull/3058) [`1698c40`](https://github.com/thirdweb-dev/js/commit/1698c40c37a2d9d7e31a8b15d95d87896afab063) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Fixes MediaRenderer flashing its failed state while loading
## 5.22.0 ## 5.22.0
### Minor Changes ### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "thirdweb", "name": "thirdweb",
"version": "5.22.0", "version": "5.22.1",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/thirdweb-dev/js.git#main" "url": "git+https://github.com/thirdweb-dev/js.git#main"
@@ -498,20 +498,6 @@ function BuyScreenContent(props: BuyScreenContentProps) {
)} )}
<Container px="lg" flex="column" gap="sm"> <Container px="lg" flex="column" gap="sm">
{account && (
<Button
variant="outline"
fullWidth
style={{
padding: spacing.xs,
fontSize: fontSize.sm,
}}
onClick={props.onViewPendingTx}
>
View all transactions
</Button>
)}
{!isExpanded && ( {!isExpanded && (
<> <>
{!account && props.connectButton ? ( {!account && props.connectButton ? (
@@ -528,6 +514,20 @@ function BuyScreenContent(props: BuyScreenContentProps) {
)} )}
</> </>
)} )}
{account && (
<Button
variant="outline"
fullWidth
style={{
padding: spacing.xs,
fontSize: fontSize.sm,
}}
onClick={props.onViewPendingTx}
>
View all transactions
</Button>
)}
</Container> </Container>
<Spacer y="lg" /> <Spacer y="lg" />
@@ -0,0 +1,30 @@
import { describe, expect, it } from "vitest";
import { render, screen } from "../../../../../test/src/react-render.js";
import { TEST_CLIENT } from "../../../../../test/src/test-clients.js";
import { MediaRenderer } from "./MediaRenderer.js";
describe("MediaRenderer", () => {
it("should render nothing if no src provided", () => {
render(<MediaRenderer client={TEST_CLIENT} />);
expect(screen.queryByText("File")).not.toBeInTheDocument(); // would display file if it shows the "not found" div
});
it("should render unknown if nothing found", () => {
render(<MediaRenderer client={TEST_CLIENT} src="asaosdoiandoin" />);
setTimeout(() => {
expect(screen.queryByText("File")).toBeInTheDocument(); // would display file if it shows the "not found" div
}, 1000);
});
it("should render a plain image", () => {
render(
<MediaRenderer
client={TEST_CLIENT}
src="https://i.seadn.io/gae/r_b9GB0iYA39ichUlKdFLeG4UliK7YXi9SsM0Xdvm6pNDChYbN5E7Fxop1MdJCbmNvSlbER73YiA9WY1JbhEfkuIktoHfN9UlEZy4A?auto=format&dpr=1&w=1000"
/>,
);
setTimeout(() => {
expect(screen.getByRole("img")).toBeInTheDocument();
}, 1000);
});
});
@@ -73,20 +73,24 @@ export const MediaRenderer = /* @__PURE__ */ (() =>
...style, ...style,
}; };
const mediaInfo = useResolvedMediaType( const { mediaInfo, isFetched: mediaInfoIsFetched } = useResolvedMediaType(
client, client,
src ?? undefined, src ?? undefined,
mimeType, mimeType,
gatewayUrl, gatewayUrl,
); );
const possiblePosterSrc = useResolvedMediaType( const { mediaInfo: possiblePosterSrc } = useResolvedMediaType(
client, client,
poster ?? undefined, poster ?? undefined,
undefined, undefined,
gatewayUrl, gatewayUrl,
); );
if (!mediaInfoIsFetched || !src) {
return <div style={style} />;
}
if (mediaInfo.mimeType) { if (mediaInfo.mimeType) {
// html content // html content
if (mediaInfo.mimeType.startsWith("text/html")) { if (mediaInfo.mimeType.startsWith("text/html")) {
@@ -34,7 +34,7 @@ export function useResolvedMediaType(
} }
}, [uri, gatewayUrl, client]); }, [uri, gatewayUrl, client]);
const resolvedMimType = useQuery({ const resolvedMimeType = useQuery({
queryKey: ["mime-type", resolvedUrl], queryKey: ["mime-type", resolvedUrl],
queryFn: () => resolveMimeType(resolvedUrl), queryFn: () => resolveMimeType(resolvedUrl),
enabled: !!resolvedUrl && !mimeType, enabled: !!resolvedUrl && !mimeType,
@@ -42,7 +42,7 @@ export function useResolvedMediaType(
}); });
return { return {
url: resolvedUrl, mediaInfo: { url: resolvedUrl, mimeType: resolvedMimeType.data },
mimeType: resolvedMimType.data, isFetched: resolvedMimeType.isFetched,
}; };
} }
+43 -36
View File
@@ -1,3 +1,5 @@
"use client";
import { useState } from "react"; import { useState } from "react";
import type { Chain } from "../../../chains/types.js"; import type { Chain } from "../../../chains/types.js";
import type { ThirdwebClient } from "../../../client/client.js"; import type { ThirdwebClient } from "../../../client/client.js";
@@ -165,47 +167,52 @@ export function PayEmbed(props: PayEmbedProps) {
<Spinner size="xl" color="secondaryText" /> <Spinner size="xl" color="secondaryText" />
</div> </div>
); );
} else if (screen === "tx-history") {
content = (
<BuyTxHistory
client={props.client}
onBack={() => {
setScreen("buy");
}}
onDone={() => {
// noop
}}
isBuyForTx={false}
isEmbed={true}
/>
);
} else { } else {
// show and hide screens with CSS to not lose state when switching between them
content = ( content = (
<BuyScreen <>
isEmbed={true} <div style={{ display: screen === "tx-history" ? "none" : "inherit" }}>
supportedTokens={props.supportedTokens} <BuyScreen
theme={props.theme || "dark"} isEmbed={true}
client={props.client} supportedTokens={props.supportedTokens}
connectLocale={localeQuery.data} theme={props.theme || "dark"}
onViewPendingTx={() => {
setScreen("tx-history");
}}
payOptions={props.payOptions || {}}
onDone={() => {
// noop
}}
connectButton={
<ConnectButton
{...props.connectOptions}
client={props.client} client={props.client}
connectButton={{ connectLocale={localeQuery.data}
style: { onViewPendingTx={() => {
width: "100%", setScreen("tx-history");
},
}} }}
payOptions={props.payOptions || {}}
onDone={() => {
// noop
}}
connectButton={
<ConnectButton
{...props.connectOptions}
client={props.client}
connectButton={{
style: {
width: "100%",
},
}}
/>
}
/> />
} </div>
/> {/* this does not need to persist so we can just show-hide it with JS */}
{screen === "tx-history" && (
<BuyTxHistory
client={props.client}
onBack={() => {
setScreen("buy");
}}
onDone={() => {
// noop
}}
isBuyForTx={false}
isEmbed={true}
/>
)}
</>
); );
} }
Binary file not shown.