Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f5a0b796c | ||
|
|
5593037dd2 | ||
|
|
99fa2da05a | ||
|
|
001449de69 | ||
|
|
3c044508ee |
@@ -1,5 +1,12 @@
|
|||||||
# @thirdweb-dev/auth
|
# @thirdweb-dev/auth
|
||||||
|
|
||||||
|
## 4.1.81
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies []:
|
||||||
|
- @thirdweb-dev/wallets@2.5.23
|
||||||
|
|
||||||
## 4.1.80
|
## 4.1.80
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@thirdweb-dev/auth",
|
"name": "@thirdweb-dev/auth",
|
||||||
"version": "4.1.80",
|
"version": "4.1.81",
|
||||||
"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": {
|
||||||
|
|||||||
@@ -1,5 +1,14 @@
|
|||||||
# thirdweb
|
# thirdweb
|
||||||
|
|
||||||
|
## 0.13.89
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies []:
|
||||||
|
- @thirdweb-dev/sdk@4.0.83
|
||||||
|
- @thirdweb-dev/wallets@2.5.23
|
||||||
|
- @thirdweb-dev/auth@4.1.81
|
||||||
|
|
||||||
## 0.13.88
|
## 0.13.88
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -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.88",
|
"version": "0.13.89",
|
||||||
"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",
|
||||||
|
|||||||
@@ -1,5 +1,14 @@
|
|||||||
# @thirdweb-dev/react-core
|
# @thirdweb-dev/react-core
|
||||||
|
|
||||||
|
## 4.6.22
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies []:
|
||||||
|
- @thirdweb-dev/sdk@4.0.83
|
||||||
|
- @thirdweb-dev/wallets@2.5.23
|
||||||
|
- @thirdweb-dev/auth@4.1.81
|
||||||
|
|
||||||
## 4.6.21
|
## 4.6.21
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@thirdweb-dev/react-core",
|
"name": "@thirdweb-dev/react-core",
|
||||||
"version": "4.6.21",
|
"version": "4.6.22",
|
||||||
"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",
|
||||||
|
|||||||
Binary file not shown.
@@ -1,5 +1,14 @@
|
|||||||
# @thirdweb-dev/react
|
# @thirdweb-dev/react
|
||||||
|
|
||||||
|
## 4.6.22
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies []:
|
||||||
|
- @thirdweb-dev/sdk@4.0.83
|
||||||
|
- @thirdweb-dev/react-core@4.6.22
|
||||||
|
- @thirdweb-dev/wallets@2.5.23
|
||||||
|
|
||||||
## 4.6.21
|
## 4.6.21
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@thirdweb-dev/react",
|
"name": "@thirdweb-dev/react",
|
||||||
"version": "4.6.21",
|
"version": "4.6.22",
|
||||||
"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.
@@ -1,5 +1,12 @@
|
|||||||
# @thirdweb-dev/sdk
|
# @thirdweb-dev/sdk
|
||||||
|
|
||||||
|
## 4.0.83
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [[`3c04450`](https://github.com/thirdweb-dev/js/commit/3c044508eee18ca741878da43e199ed4cc0528b7), [`99fa2da`](https://github.com/thirdweb-dev/js/commit/99fa2da05abc32646036a2269f90213c5756a5ba)]:
|
||||||
|
- thirdweb@5.21.0
|
||||||
|
|
||||||
## 4.0.82
|
## 4.0.82
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@thirdweb-dev/sdk",
|
"name": "@thirdweb-dev/sdk",
|
||||||
"version": "4.0.82",
|
"version": "4.0.83",
|
||||||
"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.
Binary file not shown.
@@ -1,5 +1,14 @@
|
|||||||
# @thirdweb-dev/unity-js-bridge
|
# @thirdweb-dev/unity-js-bridge
|
||||||
|
|
||||||
|
## 0.6.32
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies []:
|
||||||
|
- @thirdweb-dev/sdk@4.0.83
|
||||||
|
- @thirdweb-dev/wallets@2.5.23
|
||||||
|
- @thirdweb-dev/auth@4.1.81
|
||||||
|
|
||||||
## 0.6.31
|
## 0.6.31
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@thirdweb-dev/unity-js-bridge",
|
"name": "@thirdweb-dev/unity-js-bridge",
|
||||||
"version": "0.6.31",
|
"version": "0.6.32",
|
||||||
"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",
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# @thirdweb-dev/wallets
|
# @thirdweb-dev/wallets
|
||||||
|
|
||||||
|
## 2.5.23
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies []:
|
||||||
|
- @thirdweb-dev/sdk@4.0.83
|
||||||
|
|
||||||
## 2.5.22
|
## 2.5.22
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@thirdweb-dev/wallets",
|
"name": "@thirdweb-dev/wallets",
|
||||||
"version": "2.5.22",
|
"version": "2.5.23",
|
||||||
"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": {
|
||||||
|
|||||||
Binary file not shown.
@@ -53,6 +53,7 @@ const usageEventSchema = z.object({
|
|||||||
sdkName: z.string().optional(),
|
sdkName: z.string().optional(),
|
||||||
sdkVersion: z.string().optional(),
|
sdkVersion: z.string().optional(),
|
||||||
sdkPlatform: z.string().optional(),
|
sdkPlatform: z.string().optional(),
|
||||||
|
sdkOS: z.string().optional(),
|
||||||
productName: z.string().optional(),
|
productName: z.string().optional(),
|
||||||
transactionValue: z.string().optional(),
|
transactionValue: z.string().optional(),
|
||||||
pathname: z.string().optional(),
|
pathname: z.string().optional(),
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
"name": "thirdweb (esm)",
|
"name": "thirdweb (esm)",
|
||||||
"path": "./dist/esm/exports/thirdweb.js",
|
"path": "./dist/esm/exports/thirdweb.js",
|
||||||
"limit": "40 kB",
|
"limit": "40.1 kB",
|
||||||
"import": "*"
|
"import": "*"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,29 @@
|
|||||||
# thirdweb
|
# thirdweb
|
||||||
|
|
||||||
|
## 5.21.0
|
||||||
|
|
||||||
|
### Minor Changes
|
||||||
|
|
||||||
|
- [#3034](https://github.com/thirdweb-dev/js/pull/3034) [`99fa2da`](https://github.com/thirdweb-dev/js/commit/99fa2da05abc32646036a2269f90213c5756a5ba) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Adds the ability to set a custom logo for the social login modal
|
||||||
|
|
||||||
|
```ts
|
||||||
|
import { inAppWallet } from "thirdweb/wallets";
|
||||||
|
const wallet = inAppWallet({
|
||||||
|
metadata: {
|
||||||
|
image: {
|
||||||
|
src: "https://example.com/logo.png",
|
||||||
|
alt: "My logo",
|
||||||
|
width: 100,
|
||||||
|
height: 100,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- [#3035](https://github.com/thirdweb-dev/js/pull/3035) [`3c04450`](https://github.com/thirdweb-dev/js/commit/3c044508eee18ca741878da43e199ed4cc0528b7) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Export extensions for Pack contract
|
||||||
|
|
||||||
## 5.20.0
|
## 5.20.0
|
||||||
|
|
||||||
### Minor Changes
|
### Minor Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "thirdweb",
|
"name": "thirdweb",
|
||||||
"version": "5.20.0",
|
"version": "5.21.0",
|
||||||
"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"
|
||||||
|
|||||||
@@ -125,3 +125,25 @@ export {
|
|||||||
tokensMintedWithSignatureEvent,
|
tokensMintedWithSignatureEvent,
|
||||||
type TokensMintedWithSignatureEventFilters,
|
type TokensMintedWithSignatureEventFilters,
|
||||||
} from "../../extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.js";
|
} from "../../extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.js";
|
||||||
|
|
||||||
|
// Packs
|
||||||
|
export {
|
||||||
|
packCreatedEvent,
|
||||||
|
type PackCreatedEventFilters,
|
||||||
|
} from "../../extensions/erc1155/__generated__/IPack/events/PackCreated.js";
|
||||||
|
export {
|
||||||
|
packOpenedEvent,
|
||||||
|
type PackOpenedEventFilters,
|
||||||
|
} from "../../extensions/erc1155/__generated__/IPack/events/PackOpened.js";
|
||||||
|
export {
|
||||||
|
packUpdatedEvent,
|
||||||
|
type PackUpdatedEventFilters,
|
||||||
|
} from "../../extensions/erc1155/__generated__/IPack/events/PackUpdated.js";
|
||||||
|
export {
|
||||||
|
createPack,
|
||||||
|
type CreatePackParams,
|
||||||
|
} from "../../extensions/erc1155/__generated__/IPack/write/createPack.js";
|
||||||
|
export {
|
||||||
|
openPack,
|
||||||
|
type OpenPackParams,
|
||||||
|
} from "../../extensions/erc1155/__generated__/IPack/write/openPack.js";
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ import { TOS } from "./Modal/TOS.js";
|
|||||||
import { PoweredByThirdweb } from "./PoweredByTW.js";
|
import { PoweredByThirdweb } from "./PoweredByTW.js";
|
||||||
import { WalletButton, WalletEntryButton } from "./WalletEntryButton.js";
|
import { WalletButton, WalletEntryButton } from "./WalletEntryButton.js";
|
||||||
import { WalletTypeRowButton } from "./WalletTypeRowButton.js";
|
import { WalletTypeRowButton } from "./WalletTypeRowButton.js";
|
||||||
|
import { compactModalMaxHeight } from "./constants.js";
|
||||||
import { genericWalletIcon } from "./icons/dataUris.js";
|
import { genericWalletIcon } from "./icons/dataUris.js";
|
||||||
|
|
||||||
const InAppWalletSelectionUI = /* @__PURE__ */ lazy(
|
const InAppWalletSelectionUI = /* @__PURE__ */ lazy(
|
||||||
@@ -311,7 +312,13 @@ const WalletSelectorInner: React.FC<WalletSelectorProps> = (props) => {
|
|||||||
// social login + More than 1 eoa wallets
|
// social login + More than 1 eoa wallets
|
||||||
if (eoaWallets.length > 1) {
|
if (eoaWallets.length > 1) {
|
||||||
bottomSection = (
|
bottomSection = (
|
||||||
<Container flex="column" gap="sm">
|
<Container
|
||||||
|
flex="column"
|
||||||
|
style={{ position: "relative" }}
|
||||||
|
gap="sm"
|
||||||
|
>
|
||||||
|
<GradientDiv />
|
||||||
|
|
||||||
<Container px="lg" flex="column" gap="md">
|
<Container px="lg" flex="column" gap="md">
|
||||||
{connectAWallet}
|
{connectAWallet}
|
||||||
{continueAsGuest}
|
{continueAsGuest}
|
||||||
@@ -386,7 +393,8 @@ const WalletSelectorInner: React.FC<WalletSelectorProps> = (props) => {
|
|||||||
animate="fadein"
|
animate="fadein"
|
||||||
fullHeight
|
fullHeight
|
||||||
style={{
|
style={{
|
||||||
maxHeight: connectModal.size === "compact" ? "550px" : undefined,
|
maxHeight:
|
||||||
|
connectModal.size === "compact" ? compactModalMaxHeight : undefined,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{/* Header */}
|
{/* Header */}
|
||||||
@@ -604,3 +612,17 @@ const WalletList = /* @__PURE__ */ StyledUl({
|
|||||||
marginBottom: 0,
|
marginBottom: 0,
|
||||||
paddingBottom: spacing.lg,
|
paddingBottom: spacing.lg,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const GradientDiv = /* @__PURE__ */ StyledDiv(() => {
|
||||||
|
const theme = useCustomTheme();
|
||||||
|
theme.colors.modalBg;
|
||||||
|
return {
|
||||||
|
height: spacing.lg,
|
||||||
|
position: "absolute",
|
||||||
|
top: `-${spacing.lg}`,
|
||||||
|
left: 0,
|
||||||
|
width: "100%",
|
||||||
|
background: `linear-gradient(to bottom, transparent 0%, ${theme.colors.modalBg} 80%)`,
|
||||||
|
pointerEvents: "none",
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export const modalMaxWidthWide = `${wideModalWidth}px`;
|
|||||||
export const wideModalScreenThreshold = wideModalWidth + 40;
|
export const wideModalScreenThreshold = wideModalWidth + 40;
|
||||||
|
|
||||||
export const wideModalMaxHeight = "570px";
|
export const wideModalMaxHeight = "570px";
|
||||||
export const compactModalMaxHeight = "650px";
|
export const compactModalMaxHeight = "660px";
|
||||||
|
|
||||||
export const defaultTheme = "dark";
|
export const defaultTheme = "dark";
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { useState } from "react";
|
|||||||
import type { ThirdwebClient } from "../../../../client/client.js";
|
import type { ThirdwebClient } from "../../../../client/client.js";
|
||||||
import { resolveScheme } from "../../../../utils/ipfs.js";
|
import { resolveScheme } from "../../../../utils/ipfs.js";
|
||||||
import { Skeleton } from "./Skeleton.js";
|
import { Skeleton } from "./Skeleton.js";
|
||||||
|
import { Container } from "./basic.js";
|
||||||
|
|
||||||
// Note: Must not use useConnectUI here
|
// Note: Must not use useConnectUI here
|
||||||
|
|
||||||
@@ -28,7 +29,11 @@ export const Img: React.FC<{
|
|||||||
const heightPx = `${props.height || props.width}px`;
|
const heightPx = `${props.height || props.width}px`;
|
||||||
|
|
||||||
if (propSrc === undefined) {
|
if (propSrc === undefined) {
|
||||||
return <Skeleton width={widthPx} height={heightPx} />;
|
return (
|
||||||
|
<Container style={{ margin: "auto" }}>
|
||||||
|
<Skeleton width={widthPx} height={heightPx} />
|
||||||
|
</Container>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const getSrc = () => {
|
const getSrc = () => {
|
||||||
@@ -51,9 +56,14 @@ export const Img: React.FC<{
|
|||||||
display: "inline-flex",
|
display: "inline-flex",
|
||||||
flexShrink: 0,
|
flexShrink: 0,
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
|
justifyItems: "center",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{!isLoaded && <Skeleton width={widthPx} height={heightPx} />}
|
{!isLoaded && (
|
||||||
|
<Container style={{ margin: "auto" }}>
|
||||||
|
<Skeleton width={widthPx} height={heightPx} />
|
||||||
|
</Container>
|
||||||
|
)}
|
||||||
<img
|
<img
|
||||||
onLoad={() => {
|
onLoad={() => {
|
||||||
setIsLoaded(true);
|
setIsLoaded(true);
|
||||||
@@ -66,6 +76,7 @@ export const Img: React.FC<{
|
|||||||
loading={props.loading}
|
loading={props.loading}
|
||||||
decoding="async"
|
decoding="async"
|
||||||
style={{
|
style={{
|
||||||
|
display: isLoaded ? "block" : "none",
|
||||||
objectFit: "contain",
|
objectFit: "contain",
|
||||||
height: !isLoaded
|
height: !isLoaded
|
||||||
? 0
|
? 0
|
||||||
|
|||||||
@@ -152,6 +152,16 @@ export const InAppWalletFormUI = (props: InAppWalletFormUIProps) => {
|
|||||||
|
|
||||||
const showOnlyIcons = socialLogins.length > 1;
|
const showOnlyIcons = socialLogins.length > 1;
|
||||||
|
|
||||||
|
if (
|
||||||
|
config?.metadata?.image &&
|
||||||
|
(!config.metadata.image.height || !config.metadata.image.width)
|
||||||
|
) {
|
||||||
|
console.warn(
|
||||||
|
"Image is not properly configured. Please set height and width.",
|
||||||
|
config.metadata.image,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container
|
<Container
|
||||||
flex="column"
|
flex="column"
|
||||||
@@ -160,6 +170,25 @@ export const InAppWalletFormUI = (props: InAppWalletFormUIProps) => {
|
|||||||
position: "relative",
|
position: "relative",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
{config?.metadata?.image && (
|
||||||
|
<Img
|
||||||
|
loading="eager"
|
||||||
|
client={client}
|
||||||
|
style={{
|
||||||
|
maxHeight: "100px",
|
||||||
|
maxWidth: "300px",
|
||||||
|
margin: "auto",
|
||||||
|
}}
|
||||||
|
src={config.metadata.image.src}
|
||||||
|
alt={config.metadata.image.alt}
|
||||||
|
width={Math.min(config.metadata.image.width ?? 300, 300)?.toString()}
|
||||||
|
height={Math.min(
|
||||||
|
config.metadata.image.height ?? 100,
|
||||||
|
100,
|
||||||
|
)?.toString()}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Social Login */}
|
{/* Social Login */}
|
||||||
{hasSocialLogins && (
|
{hasSocialLogins && (
|
||||||
<Container
|
<Container
|
||||||
@@ -320,7 +349,7 @@ export function InAppWalletFormUIScreen(props: InAppWalletFormUIProps) {
|
|||||||
{isCompact ? (
|
{isCompact ? (
|
||||||
<>
|
<>
|
||||||
<ModalHeader onBack={onBack} title={locale.title} />
|
<ModalHeader onBack={onBack} title={locale.title} />
|
||||||
<Spacer y="xl" />
|
<Spacer y="sm" />
|
||||||
</>
|
</>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
|
|||||||
@@ -420,6 +420,21 @@ export function smartWallet(
|
|||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
* ```
|
* ```
|
||||||
|
*
|
||||||
|
* Specify a logo for your login page
|
||||||
|
* ```ts
|
||||||
|
* import { inAppWallet } from "thirdweb/wallets";
|
||||||
|
* const wallet = inAppWallet({
|
||||||
|
* metadata: {
|
||||||
|
* image: {
|
||||||
|
* src: "https://example.com/logo.png",
|
||||||
|
* alt: "My logo",
|
||||||
|
* width: 100,
|
||||||
|
* height: 100,
|
||||||
|
* },
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
* ```
|
||||||
* @wallet
|
* @wallet
|
||||||
*/
|
*/
|
||||||
export function inAppWallet(
|
export function inAppWallet(
|
||||||
|
|||||||
@@ -32,6 +32,14 @@ export type InAppWalletCreationOptions =
|
|||||||
auth?: {
|
auth?: {
|
||||||
options: InAppWalletAuth[];
|
options: InAppWalletAuth[];
|
||||||
};
|
};
|
||||||
|
metadata?: {
|
||||||
|
image?: {
|
||||||
|
src: string;
|
||||||
|
width?: number;
|
||||||
|
height?: number;
|
||||||
|
alt?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
smartAccount?: SmartWalletOptions;
|
smartAccount?: SmartWalletOptions;
|
||||||
}
|
}
|
||||||
| undefined;
|
| undefined;
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user