Skip to content

Commit 4727e57

Browse files
authored
Merge branch 'main' into openAI-docs
2 parents 7614a8b + 1cff849 commit 4727e57

File tree

12 files changed

+156
-98
lines changed

12 files changed

+156
-98
lines changed

.changeset/ninety-maps-sparkle.md

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

.changeset/soft-camels-beg.md

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

.changeset/tasty-berries-ring.md

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

.changeset/tough-dogs-enjoy.md

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

packages/service-utils/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# @thirdweb-dev/service-utils
22

3+
## 0.7.3
4+
5+
### Patch Changes
6+
7+
- [#6084](https://github.com/thirdweb-dev/js/pull/6084) [`b5e327e`](https://github.com/thirdweb-dev/js/commit/b5e327e5ec745ce1beb9a79404fa5b11d0c5588e) Thanks [@jnsdls](https://github.com/jnsdls)! - add `billingPlanVersion` to `TeamResponse`
8+
9+
## 0.7.2
10+
11+
### Patch Changes
12+
13+
- [#6079](https://github.com/thirdweb-dev/js/pull/6079) [`1616b7f`](https://github.com/thirdweb-dev/js/commit/1616b7f6198d43fc48a1269b1cca93958cbf7dba) Thanks [@jnsdls](https://github.com/jnsdls)! - updated dependencies
14+
315
## 0.7.1
416

517
### Patch Changes

packages/service-utils/package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thirdweb-dev/service-utils",
3-
"version": "0.7.1",
3+
"version": "0.7.3",
44
"type": "module",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",
@@ -26,8 +26,12 @@
2626
},
2727
"typesVersions": {
2828
"*": {
29-
"node": ["./dist/types/node/index.d.ts"],
30-
"cf-worker": ["./dist/types/cf-worker/index.d.ts"]
29+
"node": [
30+
"./dist/types/node/index.d.ts"
31+
],
32+
"cf-worker": [
33+
"./dist/types/cf-worker/index.d.ts"
34+
]
3135
}
3236
},
3337
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/pay",
@@ -36,7 +40,9 @@
3640
"url": "https://github.com/thirdweb-dev/js/issues"
3741
},
3842
"author": "thirdweb eng <[email protected]>",
39-
"files": ["dist/"],
43+
"files": [
44+
"dist/"
45+
],
4046
"sideEffects": false,
4147
"dependencies": {
4248
"aws4fetch": "1.0.20",

packages/service-utils/src/core/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export type TeamResponse = {
4545
slug: string;
4646
image: string | null;
4747
billingPlan: "free" | "starter" | "growth" | "pro";
48+
billingPlanVersion: number;
4849
createdAt: Date;
4950
updatedAt: Date | null;
5051
billingEmail: string | null;

packages/service-utils/src/mocks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export const validTeamResponse: TeamResponse = {
4242
createdAt: new Date("2024-06-01"),
4343
updatedAt: new Date("2024-06-01"),
4444
billingPlan: "free",
45+
billingPlanVersion: 1,
4546
billingEmail: "[email protected]",
4647
billingStatus: "noPayment",
4748
growthTrialEligible: false,

packages/thirdweb/CHANGELOG.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,72 @@
11
# thirdweb
22

3+
## 5.87.0
4+
5+
### Minor Changes
6+
7+
- [#6082](https://github.com/thirdweb-dev/js/pull/6082) [`4550bb2`](https://github.com/thirdweb-dev/js/commit/4550bb26632b88964a298835575af152a355bccd) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Support Account and Wallet headless components in react native
8+
9+
You can now use the Account and Wallet headless components in react native, this lets you build your own UI, styling it however you want, but letting the components handle the logic.
10+
11+
Example Account components usage:
12+
13+
```tsx
14+
<AccountProvider address={account.address} client={client}>
15+
/* avatar */
16+
<AccountAvatar
17+
loadingComponent={
18+
<AccountBlobbie size={92} style={{ borderRadius: 100 }} />
19+
}
20+
fallbackComponent={
21+
<AccountBlobbie size={92} style={{ borderRadius: 100 }} />
22+
}
23+
style={{
24+
width: 92,
25+
height: 92,
26+
borderRadius: 100,
27+
}}
28+
/>
29+
/* address */
30+
<AccountAddress
31+
style={{ fontSize: 16, color: Colors.secondary }}
32+
formatFn={shortenAddress}
33+
/>
34+
/* balance */
35+
<AccountBalance
36+
showBalanceInFiat={"USD"}
37+
chain={chain}
38+
loadingComponent={
39+
<ActivityIndicator size="large" color={Colors.accent} />
40+
}
41+
fallbackComponent={
42+
<Text className="text-primary">Failed to load balance</Text>
43+
}
44+
style={{
45+
color: "white",
46+
fontSize: 48,
47+
fontWeight: "bold",
48+
}}
49+
/>
50+
</AccountProvider>
51+
```
52+
53+
Example Wallet components usage:
54+
55+
```tsx
56+
<WalletProvider id={"io.metamask"}>
57+
<WalletIcon width={32} height={32} />
58+
<WalletName style={{ fontSize: 16, color: Colors.primary }} />
59+
</WalletProvider>
60+
```
61+
62+
### Patch Changes
63+
64+
- [#6079](https://github.com/thirdweb-dev/js/pull/6079) [`1616b7f`](https://github.com/thirdweb-dev/js/commit/1616b7f6198d43fc48a1269b1cca93958cbf7dba) Thanks [@jnsdls](https://github.com/jnsdls)! - export `randomPrivateKey` from `thirdweb/wallets`
65+
66+
- [#6076](https://github.com/thirdweb-dev/js/pull/6076) [`1401f8d`](https://github.com/thirdweb-dev/js/commit/1401f8d0393bbea149e9e09ba686416fc0a7b4f3) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Fix autoconnection of inapp wallets in react native
67+
68+
- [#6079](https://github.com/thirdweb-dev/js/pull/6079) [`1616b7f`](https://github.com/thirdweb-dev/js/commit/1616b7f6198d43fc48a1269b1cca93958cbf7dba) Thanks [@jnsdls](https://github.com/jnsdls)! - updated dependencies
69+
370
## 5.86.6
471

572
### Patch Changes

packages/thirdweb/package.json

Lines changed: 58 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "thirdweb",
3-
"version": "5.86.6",
3+
"version": "5.87.0",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/thirdweb-dev/js.git#main"
@@ -132,25 +132,63 @@
132132
},
133133
"typesVersions": {
134134
"*": {
135-
"adapters/*": ["./dist/types/exports/adapters/*.d.ts"],
136-
"auth": ["./dist/types/exports/auth.d.ts"],
137-
"chains": ["./dist/types/exports/chains.d.ts"],
138-
"contract": ["./dist/types/exports/contract.d.ts"],
139-
"deploys": ["./dist/types/exports/deploys.d.ts"],
140-
"event": ["./dist/types/exports/event.d.ts"],
141-
"extensions/*": ["./dist/types/exports/extensions/*.d.ts"],
142-
"pay": ["./dist/types/exports/pay.d.ts"],
143-
"react": ["./dist/types/exports/react.d.ts"],
144-
"react-native": ["./dist/types/exports/react-native.d.ts"],
145-
"rpc": ["./dist/types/exports/rpc.d.ts"],
146-
"storage": ["./dist/types/exports/storage.d.ts"],
147-
"transaction": ["./dist/types/exports/transaction.d.ts"],
148-
"utils": ["./dist/types/exports/utils.d.ts"],
149-
"wallets": ["./dist/types/exports/wallets.d.ts"],
150-
"wallets/*": ["./dist/types/exports/wallets/*.d.ts"],
151-
"modules": ["./dist/types/exports/modules.d.ts"],
152-
"social": ["./dist/types/exports/social.d.ts"],
153-
"ai": ["./dist/types/exports/ai.d.ts"]
135+
"adapters/*": [
136+
"./dist/types/exports/adapters/*.d.ts"
137+
],
138+
"auth": [
139+
"./dist/types/exports/auth.d.ts"
140+
],
141+
"chains": [
142+
"./dist/types/exports/chains.d.ts"
143+
],
144+
"contract": [
145+
"./dist/types/exports/contract.d.ts"
146+
],
147+
"deploys": [
148+
"./dist/types/exports/deploys.d.ts"
149+
],
150+
"event": [
151+
"./dist/types/exports/event.d.ts"
152+
],
153+
"extensions/*": [
154+
"./dist/types/exports/extensions/*.d.ts"
155+
],
156+
"pay": [
157+
"./dist/types/exports/pay.d.ts"
158+
],
159+
"react": [
160+
"./dist/types/exports/react.d.ts"
161+
],
162+
"react-native": [
163+
"./dist/types/exports/react-native.d.ts"
164+
],
165+
"rpc": [
166+
"./dist/types/exports/rpc.d.ts"
167+
],
168+
"storage": [
169+
"./dist/types/exports/storage.d.ts"
170+
],
171+
"transaction": [
172+
"./dist/types/exports/transaction.d.ts"
173+
],
174+
"utils": [
175+
"./dist/types/exports/utils.d.ts"
176+
],
177+
"wallets": [
178+
"./dist/types/exports/wallets.d.ts"
179+
],
180+
"wallets/*": [
181+
"./dist/types/exports/wallets/*.d.ts"
182+
],
183+
"modules": [
184+
"./dist/types/exports/modules.d.ts"
185+
],
186+
"social": [
187+
"./dist/types/exports/social.d.ts"
188+
],
189+
"ai": [
190+
"./dist/types/exports/ai.d.ts"
191+
]
154192
}
155193
},
156194
"browser": {

0 commit comments

Comments
 (0)