Compare commits

..
Author SHA1 Message Date
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
5a648f7e74 Version Packages (#2377)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-02-29 16:17:22 -08:00
e87292ab60 chore(chains): update chains (#2372)
Co-authored-by: GitHub Action <[email protected]>
2024-02-29 15:09:34 -08:00
Manan TankandGitHub d5d7d542ce [react] Make OTPInput numeric ( EmbeddedWallet UI ) (#2376) 2024-02-29 22:11:51 +00:00
34 changed files with 212 additions and 24 deletions
+7
View File
@@ -1,5 +1,12 @@
# @thirdweb-dev/auth
## 4.1.35
### Patch Changes
- Updated dependencies []:
- @thirdweb-dev/wallets@2.4.13
## 4.1.34
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/auth",
"version": "4.1.34",
"version": "4.1.35",
"main": "dist/thirdweb-dev-auth.cjs.js",
"module": "dist/thirdweb-dev-auth.esm.js",
"browser": {
+6
View File
@@ -1,5 +1,11 @@
# @thirdweb-dev/chains
## 0.1.75
### Patch Changes
- [#2372](https://github.com/thirdweb-dev/js/pull/2372) [`e87292a`](https://github.com/thirdweb-dev/js/commit/e87292ab604897ddfc337d24d2d1fe0f3560baae) Thanks [@github-actions](https://github.com/apps/github-actions)! - Synced Chains Package
## 0.1.74
### Patch Changes
+36
View File
@@ -0,0 +1,36 @@
import type { Chain } from "../src/types";
export default {
"chain": "ETINS",
"chainId": 1617,
"explorers": [
{
"name": "Ethereum Inscription Explorer",
"url": "https://explorer.etins.org",
"standard": "none"
}
],
"faucets": [],
"features": [
{
"name": "EIP155"
},
{
"name": "EIP1559"
}
],
"infoURL": "https://www.etins.org",
"name": "Ethereum Inscription Mainnet",
"nativeCurrency": {
"name": "Ethereum Inscription",
"symbol": "ETINS",
"decimals": 18
},
"networkId": 1617,
"rpc": [
"https://1617.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.etins.org"
],
"shortName": "etins",
"slug": "ethereum-inscription",
"testnet": false
} as const satisfies Chain;
+1 -1
View File
@@ -8,7 +8,7 @@ export default {
"name": "Swan Saturn Testnet",
"nativeCurrency": {
"name": "SWANETH",
"symbol": "SWAN",
"symbol": "sETH",
"decimals": 18
},
"networkId": 2024,
+37
View File
@@ -0,0 +1,37 @@
import type { Chain } from "../src/types";
export default {
"chain": "Auroria",
"chainId": 205205,
"explorers": [
{
"name": "Auroria Testnet Explorer",
"url": "https://auroria.explorer.stratisevm.com",
"standard": "EIP3091"
}
],
"faucets": [
"https://auroria.faucet.stratisevm.com"
],
"icon": {
"url": "ipfs://QmbkTh6qNYUnae5yNjied3qZqVyZcb4x3hfUpJ33bGg9QY",
"width": 800,
"height": 800,
"format": "jpg"
},
"infoURL": "https://www.stratisplatform.com",
"name": "Auroria Testnet",
"nativeCurrency": {
"name": "Auroria Stratis",
"symbol": "tSTRAX",
"decimals": 18
},
"networkId": 205205,
"rpc": [
"https://205205.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://auroria.rpc.stratisevm.com"
],
"shortName": "auroria",
"slug": "auroria-testnet",
"testnet": true,
"title": "Stratis Testnet Auroria"
} as const satisfies Chain;
+13 -4
View File
@@ -2,7 +2,13 @@ import type { Chain } from "../src/types";
export default {
"chain": "FRAX",
"chainId": 252,
"explorers": [],
"explorers": [
{
"name": "fraxscan",
"url": "https://fraxscan.com",
"standard": "EIP3091"
}
],
"faucets": [],
"features": [],
"icon": {
@@ -12,7 +18,7 @@ export default {
"format": "PNG"
},
"infoURL": "https://mainnet.frax.com",
"name": "Fraxtal Mainnet",
"name": "Fraxtal",
"nativeCurrency": {
"name": "Frax Ether",
"symbol": "frxETH",
@@ -20,9 +26,12 @@ export default {
},
"networkId": 252,
"redFlags": [],
"rpc": [],
"rpc": [
"https://252.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.frax.com"
],
"shortName": "fraxtal",
"slug": "fraxtal",
"status": "incubating",
"status": "active",
"testnet": false
} as const satisfies Chain;
+7 -1
View File
@@ -2,7 +2,13 @@ import type { Chain } from "../src/types";
export default {
"chain": "FRAX",
"chainId": 2522,
"explorers": [],
"explorers": [
{
"name": "fraxscan",
"url": "https://holesky.fraxscan.com",
"standard": "EIP3091"
}
],
"faucets": [],
"features": [],
"icon": {
+5
View File
@@ -7,6 +7,11 @@ export default {
"name": "3xpl",
"url": "https://3xpl.com/botanix",
"standard": "EIP3091"
},
{
"name": "Blockscout",
"url": "https://blockscout.botanixlabs.dev",
"standard": "EIP3091"
}
],
"faucets": [
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/chains",
"version": "0.1.74",
"version": "0.1.75",
"main": "dist/thirdweb-dev-chains.cjs.js",
"module": "dist/thirdweb-dev-chains.esm.js",
"exports": {
File diff suppressed because one or more lines are too long
+10
View File
@@ -1,5 +1,15 @@
# thirdweb
## 0.13.43
### Patch Changes
- Updated dependencies [[`e87292a`](https://github.com/thirdweb-dev/js/commit/e87292ab604897ddfc337d24d2d1fe0f3560baae)]:
- @thirdweb-dev/chains@0.1.75
- @thirdweb-dev/sdk@4.0.38
- @thirdweb-dev/wallets@2.4.13
- @thirdweb-dev/auth@4.1.35
## 0.13.42
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "thirdweb",
"main": "dist/cli/index.js",
"version": "0.13.42",
"version": "0.13.43",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/cli",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
+10
View File
@@ -1,5 +1,15 @@
# @thirdweb-dev/react-core
## 4.4.11
### Patch Changes
- Updated dependencies [[`e87292a`](https://github.com/thirdweb-dev/js/commit/e87292ab604897ddfc337d24d2d1fe0f3560baae)]:
- @thirdweb-dev/chains@0.1.75
- @thirdweb-dev/sdk@4.0.38
- @thirdweb-dev/wallets@2.4.13
- @thirdweb-dev/auth@4.1.35
## 4.4.10
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-core",
"version": "4.4.10",
"version": "4.4.11",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-core",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
Binary file not shown.
@@ -1,5 +1,7 @@
# @thirdweb-dev/react-native-compat
## 0.7.8
## 0.7.7
## 0.7.6
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@thirdweb-dev/react-native-compat",
"description": "Shims for Thirdweb in React Native Projects",
"version": "0.7.7",
"version": "0.7.8",
"author": "thirdweb eng <[email protected]>",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native-compat",
"license": "Apache-2.0",
+10
View File
@@ -1,5 +1,15 @@
# @thirdweb-dev/react-native
## 0.7.8
### Patch Changes
- Updated dependencies [[`e87292a`](https://github.com/thirdweb-dev/js/commit/e87292ab604897ddfc337d24d2d1fe0f3560baae)]:
- @thirdweb-dev/chains@0.1.75
- @thirdweb-dev/react-core@4.4.11
- @thirdweb-dev/sdk@4.0.38
- @thirdweb-dev/wallets@2.4.13
## 0.7.7
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-native",
"version": "0.7.7",
"version": "0.7.8",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
Binary file not shown.
+12
View File
@@ -1,5 +1,17 @@
# @thirdweb-dev/react
## 4.4.11
### Patch Changes
- [#2376](https://github.com/thirdweb-dev/js/pull/2376) [`d5d7d54`](https://github.com/thirdweb-dev/js/commit/d5d7d542ceb76ae40529ba1418c2a78af126c222) Thanks [@MananTank](https://github.com/MananTank)! - Make OTPInput used in EmbeddedWallet numeric
- Updated dependencies [[`e87292a`](https://github.com/thirdweb-dev/js/commit/e87292ab604897ddfc337d24d2d1fe0f3560baae)]:
- @thirdweb-dev/chains@0.1.75
- @thirdweb-dev/react-core@4.4.11
- @thirdweb-dev/sdk@4.0.38
- @thirdweb-dev/wallets@2.4.13
## 4.4.10
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react",
"version": "4.4.10",
"version": "4.4.11",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
+12 -7
View File
@@ -12,9 +12,9 @@ export function OTPInput(props: {
setValue: (value: string) => void;
onEnter?: () => void;
}) {
const otp = props.value.split("");
const otp = props.value.split("").map(Number);
const setOTP = (newOTP: string[]) => {
const setOTP = (newOTP: number[]) => {
props.setValue(newOTP.join(""));
};
@@ -38,13 +38,18 @@ export function OTPInput(props: {
ref={(e) => (boxEls.current[i] = e)}
key={i}
value={otp[i] ?? ""}
type="text"
pattern="[a-zA-Z0-9]*"
type="number"
pattern="[0-9]*"
variant="outline"
inputMode="text"
inputMode="numeric"
onPaste={(e) => {
const pastedData = e.clipboardData.getData("text/plain");
const newOTP = pastedData.slice(0, props.digits).split("");
const newOTP = pastedData
.slice(0, props.digits)
.split("")
.filter((n) => /\d/.test(n))
.map(Number);
setOTP(newOTP);
e.preventDefault();
}}
@@ -106,7 +111,7 @@ export function OTPInput(props: {
const newOTP = [...otp];
const index = i > inputToFocusIndex - 1 ? inputToFocusIndex : i;
newOTP[index] = value;
newOTP[index] = Number(value);
setOTP(newOTP);
}}
/>
Binary file not shown.
+7
View File
@@ -1,5 +1,12 @@
# @thirdweb-dev/sdk
## 4.0.38
### Patch Changes
- Updated dependencies [[`e87292a`](https://github.com/thirdweb-dev/js/commit/e87292ab604897ddfc337d24d2d1fe0f3560baae)]:
- @thirdweb-dev/chains@0.1.75
## 4.0.37
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/sdk",
"version": "4.0.37",
"version": "4.0.38",
"description": "The main thirdweb SDK.",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/sdk",
"license": "Apache-2.0",
Binary file not shown.
Binary file not shown.
+10
View File
@@ -1,5 +1,15 @@
# @thirdweb-dev/unity-js-bridge
## 0.4.1
### Patch Changes
- Updated dependencies [[`e87292a`](https://github.com/thirdweb-dev/js/commit/e87292ab604897ddfc337d24d2d1fe0f3560baae)]:
- @thirdweb-dev/chains@0.1.75
- @thirdweb-dev/sdk@4.0.38
- @thirdweb-dev/wallets@2.4.13
- @thirdweb-dev/auth@4.1.35
## 0.4.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/unity-js-bridge",
"version": "0.4.0",
"version": "0.4.1",
"main": "dist/thirdweb-unity-bridge.js",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge",
"license": "Apache-2.0",
+8
View File
@@ -1,5 +1,13 @@
# @thirdweb-dev/wallets
## 2.4.13
### Patch Changes
- Updated dependencies [[`e87292a`](https://github.com/thirdweb-dev/js/commit/e87292ab604897ddfc337d24d2d1fe0f3560baae)]:
- @thirdweb-dev/chains@0.1.75
- @thirdweb-dev/sdk@4.0.38
## 2.4.12
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/wallets",
"version": "2.4.12",
"version": "2.4.13",
"main": "dist/thirdweb-dev-wallets.cjs.js",
"module": "dist/thirdweb-dev-wallets.esm.js",
"browser": {
Binary file not shown.