Skip to content
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions apps/dashboard/src/@/components/chat/CustomChats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -413,19 +413,15 @@ function StyledMarkdownRenderer(props: {
}) {
return (
<MarkdownRenderer
className="text-foreground [&>*:first-child]:mt-0 [&>*:first-child]:border-none [&>*:first-child]:pb-0 [&>*:last-child]:mb-0"
className="[&>*:first-child]:mt-0 [&>*:first-child]:border-none [&>*:first-child]:pb-0 [&>*:last-child]:mb-0"
code={{
className: "bg-card",
ignoreFormattingErrors: true,
}}
inlineCode={{ className: "border-none" }}
li={{ className: "text-foreground" }}
markdownText={props.text}
p={{
className:
props.type === "assistant"
? "text-foreground"
: "text-foreground leading-normal",
className: props.type === "assistant" ? "" : "leading-normal",
}}
skipHtml
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ export const MarkdownRenderer: React.FC<{
li: ({ children: c, ...props }) => (
<li
className={cn(
"mb-1.5 text-muted-foreground leading-loose [&>p]:m-0",
markdownProps.li?.className,
"mb-1.5 text-muted-foreground leading-loose [&>p]:m-0",
)}
{...cleanedProps(props)}
>
Expand All @@ -156,16 +156,16 @@ export const MarkdownRenderer: React.FC<{
),
ol: (props) => (
<ol
className="mb-4 list-outside list-decimal pl-5 [&_ol_li:first-of-type]:mt-1.5 [&_ul_li:first-of-type]:mt-1.5"
{...cleanedProps(props)}
className="mb-4 list-outside list-decimal pl-5 [&_ol_li:first-of-type]:mt-1.5 [&_ul_li:first-of-type]:mt-1.5"
/>
),

p: (props) => (
<p
className={cn(
"mb-4 text-muted-foreground leading-loose",
markdownProps.p?.className,
"mb-4 text-muted-foreground leading-loose",
)}
{...cleanedProps(props)}
/>
Expand Down Expand Up @@ -200,8 +200,8 @@ export const MarkdownRenderer: React.FC<{
ul: (props) => {
return (
<ul
className="mb-4 list-outside list-disc pl-5 [&_ol_li:first-of-type]:mt-1.5 [&_ul_li:first-of-type]:mt-1.5"
{...cleanedProps(props)}
className="mb-4 list-outside list-disc pl-5 [&_ol_li:first-of-type]:mt-1.5 [&_ul_li:first-of-type]:mt-1.5"
/>
);
},
Expand Down
8 changes: 2 additions & 6 deletions apps/nebula/src/app/(app)/components/Chats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,19 +401,15 @@ function StyledMarkdownRenderer(props: {
}) {
return (
<MarkdownRenderer
className="text-foreground [&>*:first-child]:mt-0 [&>*:first-child]:border-none [&>*:first-child]:pb-0 [&>*:last-child]:mb-0"
className="[&>*:first-child]:mt-0 [&>*:first-child]:border-none [&>*:first-child]:pb-0 [&>*:last-child]:mb-0"
code={{
className: "bg-transparent",
ignoreFormattingErrors: true,
}}
inlineCode={{ className: "border-none" }}
li={{ className: "text-foreground" }}
markdownText={props.text}
p={{
className:
props.type === "assistant"
? "text-foreground"
: "text-foreground leading-normal",
className: props.type === "assistant" ? "" : "leading-normal",
}}
skipHtml
/>
Expand Down
2,766 changes: 2,556 additions & 210 deletions apps/portal/public/llms-full.txt

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions apps/portal/public/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
---
**UI Components**
---
# Universal Bridge
# Payments
---
## Widgets
* [Widgets.BuyWidget](https://portal.thirdweb.com/references/typescript/v5/widgets/BuyWidget): Widget is a prebuilt UI for purchasing a specific token.
Expand All @@ -21,7 +21,6 @@
* [WalletProvider](https://portal.thirdweb.com/references/typescript/v5/WalletProvider): A React context provider component that supplies Wallet-related data to its child components.
---
# Wallet Connection
* [AutoConnectProps](https://portal.thirdweb.com/references/typescript/v5/AutoConnect): Enable Account abstraction for all wallets. This will connect to the users's smart account based on the connected personal wallet and the given options.
* [ConnectButton](https://portal.thirdweb.com/references/typescript/v5/ConnectButton): A fully featured wallet connection component that allows to:
* [ConnectEmbed](https://portal.thirdweb.com/references/typescript/v5/ConnectEmbed): An inline wallet connection component that allows to:
* [SiteEmbed](https://portal.thirdweb.com/references/typescript/v5/SiteEmbed): Embeds another thirdweb-supported site for seamless in-app and ecosystem wallet connection.
Expand Down Expand Up @@ -135,7 +134,7 @@
* [DEPLOY.deployERC1155Contract](https://portal.thirdweb.com/references/typescript/v5/deploy/deployERC1155Contract): Deploys an thirdweb ERC1155 contract of the given type. On chains where the thirdweb infrastructure contracts are not deployed, this function will deploy them as well.
* [DEPLOY.deployERC20Contract](https://portal.thirdweb.com/references/typescript/v5/deploy/deployERC20Contract): Deploys an thirdweb ERC20 contract of the given type. On chains where the thirdweb infrastructure contracts are not deployed, this function will deploy them as well.
* [DEPLOY.deployERC721Contract](https://portal.thirdweb.com/references/typescript/v5/deploy/deployERC721Contract): Deploys an thirdweb ERC721 contract of the given type. On chains where the thirdweb infrastructure contracts are not deployed, this function will deploy them as well.

* [DEPLOY.deployPackContract](https://portal.thirdweb.com/references/typescript/v5/deploy/deployPackContract): \[Pack contract is incompatible with Pectra update. Support for this contract is being removed in next release.\]
* [DEPLOY.deployPublishedContract](https://portal.thirdweb.com/references/typescript/v5/deploy/deployPublishedContract): Deploy an instance of a published contract on a given chain
* [DEPLOY.deploySplitContract](https://portal.thirdweb.com/references/typescript/v5/deploy/deploySplitContract): Deploys a thirdweb [Split contract](https://thirdweb.com/thirdweb.eth/Split)On chains where the thirdweb infrastructure contracts are not deployed, this function will deploy them as well.
* [DEPLOY.prepareDeterministicDeployTransaction](https://portal.thirdweb.com/references/typescript/v5/deploy/prepareDeterministicDeployTransaction): Deploy a contract deterministically - will maintain the same address across chains. This is meant to be used with published contracts configured with the 'direct deploy' method. Under the hood, this uses a keyless transaction with a common create2 factory.
Expand Down Expand Up @@ -982,7 +981,7 @@
* [TransferableERC721.setTransferable](https://portal.thirdweb.com/references/typescript/v5/transferableerc721/setTransferable): Prepares a transaction to call the "setTransferable" function on the contract.
* [TransferableERC721.setTransferableFor](https://portal.thirdweb.com/references/typescript/v5/transferableerc721/setTransferableFor): Prepares a transaction to call the "setTransferableFor" function on the contract.
---
# Universal Bridge
# Payments
---
## Buy
* [Buy.prepare](https://portal.thirdweb.com/references/typescript/v5/buy/prepare): Prepares a _finalized_ Universal Bridge quote for the provided buy request with transaction data. This function will return everything `quote` does, with the addition of a series of prepared transactions and the associated expiration timestamp.
Expand Down Expand Up @@ -1029,6 +1028,7 @@
* [ERC7579.erc7579](https://portal.thirdweb.com/references/typescript/v5/erc7579): Config for a ERC7579 modular smart wallet.
---
# Wallet Connection
* [AutoConnectProps](https://portal.thirdweb.com/references/typescript/v5/AutoConnect): Enable Account abstraction for all wallets. This will connect to the users's smart account based on the connected personal wallet and the given options.
* [AutoConnect](https://portal.thirdweb.com/references/typescript/v5/autoConnect): AutoConnect last connected wallet on page reload or revisit. Note: If you are using `ConnectButton` or `ConnectEmbed` components, You don't need to use this component as it is already included.
---
# Wallet Utilities
Expand Down Expand Up @@ -1113,7 +1113,7 @@
* [getTransactions](https://portal.thirdweb.com/references/typescript/v5/getTransactions): Get transactions for a wallet
---
# Engine
* [createServerWallet](https://portal.thirdweb.com/references/typescript/v5/createServerWallet): Create a server wallet.
* [createServerWallet](https://portal.thirdweb.com/references/typescript/v5/createServerWallet): Create a new server wallet.
* [getServerWallets](https://portal.thirdweb.com/references/typescript/v5/getServerWallets): List all server wallets.
* [getTransactionStatus](https://portal.thirdweb.com/references/typescript/v5/getTransactionStatus): Get the execution status of a transaction.
* [searchTransactions](https://portal.thirdweb.com/references/typescript/v5/searchTransactions): Search for transactions by their ids.
Expand Down Expand Up @@ -1254,6 +1254,8 @@
* [installPublishedExtension](https://portal.thirdweb.com/references/typescript/v5/installPublishedExtension): Install a published extension on a dynamic contract
* [uninstallExtension](https://portal.thirdweb.com/references/typescript/v5/uninstallExtension): Uninstall an extension on a dynamic contract
* [activateStylusContract](https://portal.thirdweb.com/references/typescript/v5/activateStylusContract): Activate a stylus contract by calling ArbWasm Precompile
* [deployWithStylusConstructor](https://portal.thirdweb.com/references/typescript/v5/deployWithStylusConstructor): Deploy stylus contract with constructor params
* [isContractActivated](https://portal.thirdweb.com/references/typescript/v5/isContractActivated): Reference for isContractActivated
* [convertCryptoToFiat](https://portal.thirdweb.com/references/typescript/v5/convertCryptoToFiat): Get a price of a token (using tokenAddress + chainId) in fiat. Only USD is supported at the moment.
* [convertFiatToCrypto](https://portal.thirdweb.com/references/typescript/v5/convertFiatToCrypto): Convert a fiat value to a token. Currently only USD is supported.
* [getBuyHistory](https://portal.thirdweb.com/references/typescript/v5/getBuyHistory): Get Buy transaction history for a given wallet address.
Expand Down
25 changes: 18 additions & 7 deletions apps/portal/redirects.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ const walletRedirects = {
};

const paymentRedirects = {
"/pay": "/payments",
"/checkouts": "/payments",
"/checkouts/api-reference": "/payments/nft-checkout/api-reference",
"/checkouts/checkout-link": "/payments/nft-checkout/checkout-link",
Expand Down Expand Up @@ -741,7 +742,6 @@ const paymentRedirects = {
"/connect/pay/buy-with-fiat": "/connect/pay/overview",
"/connect/pay/enable-test-mode": "/connect/pay/guides/enable-test-mode",
"/connect/pay/guides/enable-test-mode": "/connect/pay/testing-pay",
"/payments/:match*": "/connect/pay/overview",
};

const contractRedirects = {
Expand Down Expand Up @@ -921,7 +921,6 @@ const otherRedirects = {
// connect
"/connect/connect": "/connect/sign-in",
"/connect/ecosystems/:path*": "/connect/wallet/overview",
"/connect/embedded-wallet/:path*": "/connect/in-app-wallet/:path*",
"/connect/embedded-wallet/how-to/get-embedded-wallet-details-on-server":
"/connect/in-app-wallet/how-to/get-in-app-wallet-details-on-server",
"/connect/in-app-wallet/how-to/get-in-app-wallet-details-on-server":
Expand Down Expand Up @@ -1016,11 +1015,23 @@ const otherRedirects = {
"/unity/wallets/providers/smart-wallet":
"/unity/wallets/providers/account-abstraction",
"/wallet/get-started/overview": "/connect/wallet/overview",
// wallets > connect redirects
"/wallets": "/connect",
"/wallets/auth/:path*": "/connect/auth/:path*",
"/wallets/connect/:path*": "/connect/connect/:path*",
"/wallets/embedded-wallet/:path*": "/connect/embedded-wallet/:path*",
// connect > wallets
"/connect/:path*": "/wallets/:path*",
"/connect/wallet/:path*": "/wallets/:path*",
"/connect/auth/:path*": "/wallets/auth/:path*",
"/connect/connect/:path*": "/wallets/connect/:path*",
"/connect/embedded-wallet/:path*": "/wallets/embedded-wallet/:path*",
"/connect/wallet/sign-in-methods/configure": "/wallets/users",
"/connect/wallet/server": "/wallets/server",
"/connect/account-abstraction/get-started": "/wallets/sponsor-gas",
"/connect/account-abstraction/:path*": "/wallets/sponsor-gas",
"/wallets/in-app-wallet/custom-auth/configuration": "/wallets/custom-auth",
"/connect/wallets/user-management/link-multiple-identity":
"/wallets/link-profiles",
"/connect/wallets/user-management/export-private-key":
"/wallets/export-private-key",
"/wallets/wallet/server": "/wallets/server",
"/wallets/wallet/sign-in-methods/configure": "/wallets/users",
// account abstraction rename
"/wallets/smart-wallet/:path*": "/connect/account-abstraction/:path*",
"/web3-api/:path*": "/infrastructure/engine/overview",
Expand Down
18 changes: 12 additions & 6 deletions apps/portal/src/app/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ import { ThirdwebIcon } from "../icons/thirdweb";

const links = [
{
href: "/connect",
href: "/wallets",
name: "Wallets",
},
{
href: "/pay",
href: "/payments",
name: "Payments",
},
{
Expand Down Expand Up @@ -196,9 +196,10 @@ const supportLinks = [
export function Header() {
const [showBurgerMenu, setShowBurgerMenu] = useState(false);
const router = useRouter();
const pathname = usePathname();

return (
<header className="flex w-full flex-col gap-2 border-b bg-background p-2 lg:px-4">
<header className="flex w-full flex-col gap-2 border-b bg-background pt-4 px-4 lg:px-8 overflow-hidden">
<div className="container flex items-center justify-between gap-6">
{/* Top row */}
<div className="flex items-center gap-2">
Expand Down Expand Up @@ -273,7 +274,7 @@ export function Header() {
{links.map((link) => {
return (
<li
className="flex items-center"
className="flex items-center py-4 relative overflow-hidden"
key={link.href}
onClick={() => {
setShowBurgerMenu(false);
Expand All @@ -283,6 +284,9 @@ export function Header() {
}}
>
<NavLink href={link.href} name={link.name} />
{pathname.includes(link.href) && (
<div className="bg-violet-700 h-1 inset-x-0.5 rounded-full absolute -bottom-0.5" />
)}
</li>
);
})}
Expand Down Expand Up @@ -506,7 +510,9 @@ function NavLink(props: {
<Link
className={clsx(
"font-medium text-base transition-colors hover:text-foreground xl:text-sm",
pathname === props.href ? "text-foreground" : "text-muted-foreground ",
pathname.includes(props.href)
? "text-foreground"
: "text-muted-foreground",
props.icon ? "flex flex-row gap-3" : "",
)}
href={props.href}
Expand All @@ -515,7 +521,7 @@ function NavLink(props: {
>
{props.icon ? (
<>
<props.icon className="size-6 text-muted-foreground" />
<props.icon className="size-6" />
<span className="my-auto">{props.name}</span>
</>
) : (
Expand Down
Loading
Loading