From f47aa61915e6e945b7a9e388a5043509c08754a0 Mon Sep 17 00:00:00 2001 From: Jonas Daniels Date: Sat, 24 Aug 2024 16:22:32 -0700 Subject: [PATCH] Version Packages (#4263) Co-authored-by: github-actions[bot] --- .changeset/fifty-lobsters-draw.md | 13 ----- .changeset/forty-knives-reply.md | 5 -- .changeset/nice-fishes-vanish.md | 5 -- .changeset/silver-planes-warn.md | 5 -- .changeset/tame-badgers-drum.md | 5 -- .changeset/wicked-lemons-knock.md | 66 ------------------------ apps/dashboard/package.json | 12 ++++- packages/thirdweb/CHANGELOG.md | 84 +++++++++++++++++++++++++++++++ packages/thirdweb/package.json | 66 +++++++++++++++++------- 9 files changed, 143 insertions(+), 118 deletions(-) delete mode 100644 .changeset/fifty-lobsters-draw.md delete mode 100644 .changeset/forty-knives-reply.md delete mode 100644 .changeset/nice-fishes-vanish.md delete mode 100644 .changeset/silver-planes-warn.md delete mode 100644 .changeset/tame-badgers-drum.md delete mode 100644 .changeset/wicked-lemons-knock.md diff --git a/.changeset/fifty-lobsters-draw.md b/.changeset/fifty-lobsters-draw.md deleted file mode 100644 index 5dfa0732918..00000000000 --- a/.changeset/fifty-lobsters-draw.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"thirdweb": patch ---- - -Add overload to `signMessage` to pass an account rather than a private key - -```ts -import { signMessage } from "thirdweb/utils"; -await signMessage({ - message: "Hello, world!", - account -}); -``` diff --git a/.changeset/forty-knives-reply.md b/.changeset/forty-knives-reply.md deleted file mode 100644 index 2880fc93b9f..00000000000 --- a/.changeset/forty-knives-reply.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Added `hideSwitchWallet` param to wallet details modal diff --git a/.changeset/nice-fishes-vanish.md b/.changeset/nice-fishes-vanish.md deleted file mode 100644 index ee56ae99941..00000000000 --- a/.changeset/nice-fishes-vanish.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Added support for direct transfers in Pay diff --git a/.changeset/silver-planes-warn.md b/.changeset/silver-planes-warn.md deleted file mode 100644 index dfef49f0797..00000000000 --- a/.changeset/silver-planes-warn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Show wallet balance with upto 5 decimal places in UI components diff --git a/.changeset/tame-badgers-drum.md b/.changeset/tame-badgers-drum.md deleted file mode 100644 index b7d293b64f8..00000000000 --- a/.changeset/tame-badgers-drum.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Fix popup and window auth modes conflicting on firefox diff --git a/.changeset/wicked-lemons-knock.md b/.changeset/wicked-lemons-knock.md deleted file mode 100644 index d04a3d0f7c2..00000000000 --- a/.changeset/wicked-lemons-knock.md +++ /dev/null @@ -1,66 +0,0 @@ ---- -"thirdweb": patch ---- - -- Pay UI now selects the fiat currency based on the user's location / timezone - -- Add Japanese Yen (JPY) as a supported fiat currency for thirdweb Pay - -- Added option to configure the default fiat currency for the Pay UI - -Examples - -```tsx - -``` - -```tsx - -``` - -```ts -const sendTransaction = useSendTransaction({ - payModal: { - buyWithFiat: { - prefillSource: { - currency: "CAD", - }, - }, - }, -}); -``` - -```tsx - someTx} - payModal={{ - buyWithFiat: { - prefillSource: { - currency: "CAD", - }, - }, - }} -> - some tx - -``` diff --git a/apps/dashboard/package.json b/apps/dashboard/package.json index 1f0cc84f52b..c70e7d2fd87 100644 --- a/apps/dashboard/package.json +++ b/apps/dashboard/package.json @@ -166,8 +166,16 @@ "tw-components", "contract-ui" ], - "exclude": ["node_modules", "types", "tw-components"], + "exclude": [ + "node_modules", + "types", + "tw-components" + ], "entrypoints": [] }, - "browserslist": ["defaults", "unreleased versions", "not UCAndroid > 0"] + "browserslist": [ + "defaults", + "unreleased versions", + "not UCAndroid > 0" + ] } diff --git a/packages/thirdweb/CHANGELOG.md b/packages/thirdweb/CHANGELOG.md index ad4de7a2f28..9774f81c7e8 100644 --- a/packages/thirdweb/CHANGELOG.md +++ b/packages/thirdweb/CHANGELOG.md @@ -1,5 +1,89 @@ # thirdweb +## 5.48.2 + +### Patch Changes + +- [#4250](https://github.com/thirdweb-dev/js/pull/4250) [`41fbdaf`](https://github.com/thirdweb-dev/js/commit/41fbdafcf777a58883e9f2daefb6bf4f77d5ecda) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Add overload to `signMessage` to pass an account rather than a private key + + ```ts + import { signMessage } from "thirdweb/utils"; + await signMessage({ + message: "Hello, world!", + account, + }); + ``` + +- [#4267](https://github.com/thirdweb-dev/js/pull/4267) [`7a2de70`](https://github.com/thirdweb-dev/js/commit/7a2de7031077efba27b6bf74c1774a51e9151d22) Thanks [@alecananian](https://github.com/alecananian)! - Added `hideSwitchWallet` param to wallet details modal + +- [#4224](https://github.com/thirdweb-dev/js/pull/4224) [`1405598`](https://github.com/thirdweb-dev/js/commit/1405598e7e51e4d415fd57f8169012823db0cedf) Thanks [@IDubuque](https://github.com/IDubuque)! - Added support for direct transfers in Pay + +- [#4269](https://github.com/thirdweb-dev/js/pull/4269) [`120d61f`](https://github.com/thirdweb-dev/js/commit/120d61f41083198470b9dd4968d5914b644c6de5) Thanks [@MananTank](https://github.com/MananTank)! - Show wallet balance with upto 5 decimal places in UI components + +- [#4274](https://github.com/thirdweb-dev/js/pull/4274) [`a0aea23`](https://github.com/thirdweb-dev/js/commit/a0aea23e74ffce4cd20842603efa87a5c038feb8) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Fix popup and window auth modes conflicting on firefox + +- [#4244](https://github.com/thirdweb-dev/js/pull/4244) [`44e8e7b`](https://github.com/thirdweb-dev/js/commit/44e8e7bce21240156e55eec411dd461e746c3c8c) Thanks [@MananTank](https://github.com/MananTank)! - - Pay UI now selects the fiat currency based on the user's location / timezone + + - Add Japanese Yen (JPY) as a supported fiat currency for thirdweb Pay + - Added option to configure the default fiat currency for the Pay UI + + Examples + + ```tsx + + ``` + + ```tsx + + ``` + + ```ts + const sendTransaction = useSendTransaction({ + payModal: { + buyWithFiat: { + prefillSource: { + currency: "CAD", + }, + }, + }, + }); + ``` + + ```tsx + someTx} + payModal={{ + buyWithFiat: { + prefillSource: { + currency: "CAD", + }, + }, + }} + > + some tx + + ``` + ## 5.48.1 ### Patch Changes diff --git a/packages/thirdweb/package.json b/packages/thirdweb/package.json index e98cc3266b1..142a5c819e3 100644 --- a/packages/thirdweb/package.json +++ b/packages/thirdweb/package.json @@ -1,6 +1,6 @@ { "name": "thirdweb", - "version": "5.48.1", + "version": "5.48.2", "repository": { "type": "git", "url": "git+https://github.com/thirdweb-dev/js.git#main" @@ -117,22 +117,54 @@ }, "typesVersions": { "*": { - "adapters/*": ["./dist/types/exports/adapters/*.d.ts"], - "auth": ["./dist/types/exports/auth.d.ts"], - "chains": ["./dist/types/exports/chains.d.ts"], - "contract": ["./dist/types/exports/contract.d.ts"], - "deploys": ["./dist/types/exports/deploys.d.ts"], - "event": ["./dist/types/exports/event.d.ts"], - "extensions/*": ["./dist/types/exports/extensions/*.d.ts"], - "pay": ["./dist/types/exports/pay.d.ts"], - "react": ["./dist/types/exports/react.d.ts"], - "react-native": ["./dist/types/exports/react-native.d.ts"], - "rpc": ["./dist/types/exports/rpc.d.ts"], - "storage": ["./dist/types/exports/storage.d.ts"], - "transaction": ["./dist/types/exports/transaction.d.ts"], - "utils": ["./dist/types/exports/utils.d.ts"], - "wallets": ["./dist/types/exports/wallets.d.ts"], - "wallets/*": ["./dist/types/exports/wallets/*.d.ts"] + "adapters/*": [ + "./dist/types/exports/adapters/*.d.ts" + ], + "auth": [ + "./dist/types/exports/auth.d.ts" + ], + "chains": [ + "./dist/types/exports/chains.d.ts" + ], + "contract": [ + "./dist/types/exports/contract.d.ts" + ], + "deploys": [ + "./dist/types/exports/deploys.d.ts" + ], + "event": [ + "./dist/types/exports/event.d.ts" + ], + "extensions/*": [ + "./dist/types/exports/extensions/*.d.ts" + ], + "pay": [ + "./dist/types/exports/pay.d.ts" + ], + "react": [ + "./dist/types/exports/react.d.ts" + ], + "react-native": [ + "./dist/types/exports/react-native.d.ts" + ], + "rpc": [ + "./dist/types/exports/rpc.d.ts" + ], + "storage": [ + "./dist/types/exports/storage.d.ts" + ], + "transaction": [ + "./dist/types/exports/transaction.d.ts" + ], + "utils": [ + "./dist/types/exports/utils.d.ts" + ], + "wallets": [ + "./dist/types/exports/wallets.d.ts" + ], + "wallets/*": [ + "./dist/types/exports/wallets/*.d.ts" + ] } }, "browser": {