Skip to content

Commit 6a20123

Browse files
committed
Merge branch 'contract-guides' of https://github.com/thirdweb-dev/js into contract-guides
2 parents f1b9ac2 + 18809ab commit 6a20123

File tree

205 files changed

+4259
-4467
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+4259
-4467
lines changed

.changeset/dirty-cups-tickle.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/flat-emus-repeat.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/gentle-kids-serve.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/green-bottles-approve.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/plenty-dragons-carry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Fixes PayEmbed error state appearing on certain errors

.changeset/small-eagles-cry.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/tall-pots-live.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
"thirdweb": minor
3+
---
4+
5+
# Breaking change
6+
7+
We are making the following changes to the NFT component to provide better performance and fine-grain control over their internal fetching logic.
8+
Moreover, you no longer have to wrap React.Suspense around said components!
9+
10+
### Old
11+
12+
```tsx
13+
<NFT>
14+
<React.Suspense fallback={"Loading stuff..."}>
15+
<NFT.Media />
16+
<NFT.Name />
17+
<NFT.Description />
18+
</React.Suspense>
19+
</NFT>
20+
```
21+
22+
### New
23+
24+
The new version comes with 2 new props: `loadingComponent` and `fallbackComponent`.
25+
Basically, `loadingComponent` takes in a component and show it _while the internal fetching is being done_
26+
`fallbackComponent` takes in a component and show it _once the data is failed to be resolved_
27+
28+
```tsx
29+
<NFTProvider contract={contract} tokenId={0n}>
30+
<NFTMedia
31+
loadingComponent={<span>Loading NFT Image</span>}
32+
fallbackComponent={<span>Failed to load NFT</span>}
33+
/>
34+
<NFTDescription
35+
loadingComponent={<span>Loading NFT Description</span>}
36+
fallbackComponent={<span>Failed to load NFT Description</span>}
37+
/>
38+
</NFT>
39+
```

.changeset/tame-walls-live.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Adds the ability to override transaction values in createNewPack

.github/labeler.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ playground:
88
packages:
99
- changed-files:
1010
- any-glob-to-any-file: "packages/**/*"
11+
sdk:
12+
- changed-files:
13+
- any-glob-to-any-file: "packages/thirdweb/**/*"
1114
portal:
1215
- changed-files:
1316
- any-glob-to-any-file: "apps/portal/**/*"
17+
"Ecosystem Portal":
18+
- changed-files:
19+
- any-glob-to-any-file: "apps/wallet-ui/**/*"

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
- run: pnpm test
8989

9090
- name: Upload coverage reports to Codecov
91-
uses: codecov/codecov-action@v4
91+
uses: codecov/codecov-action@v5
9292
with:
9393
directory: packages/
9494
flags: packages

0 commit comments

Comments
 (0)