Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
5 changes: 5 additions & 0 deletions .changeset/hot-emus-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@crossmint/client-sdk-react-native-ui": minor
---

Added new built-in UI for email and phone signers, can use 'headlessSigningFlow' to disable.
5 changes: 5 additions & 0 deletions .changeset/lazy-starfishes-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@crossmint/client-sdk-react-native-ui": minor
---

Change default behavior of `headlessSigningFlow` prop to `false`, enabling built-in UI components by default instead of requiring manual signing flow handling
5 changes: 5 additions & 0 deletions .changeset/pink-owls-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@crossmint/client-sdk-react-base": patch
---

Consolidated UI state within base provider.
5 changes: 5 additions & 0 deletions .changeset/selfish-comics-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@crossmint/client-sdk-react-ui": patch
---

Updated CrossmintWalletProvider to consume shared state management from base provider, improving consistency across React implementations.
21 changes: 21 additions & 0 deletions apps/auth/nextjs-ssr/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# @crossmint/server-sdk-next-starter

## 0.4.132

### Patch Changes

- @crossmint/client-sdk-react-ui@2.6.1
- @crossmint/server-sdk@1.2.48

## 0.4.131

### Patch Changes

- Updated dependencies [8fc9ed9]
- Updated dependencies [7a1f5ca]
- @crossmint/client-sdk-react-ui@2.6.0

## 0.4.130

### Patch Changes

- @crossmint/client-sdk-react-ui@2.5.11

## 0.4.129

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/auth/nextjs-ssr/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@crossmint/auth-ssr-nextjs-demo",
"version": "0.4.129",
"version": "0.4.132",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
6 changes: 6 additions & 0 deletions apps/auth/node-and-express-server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# crossmint-auth-node

## 1.1.59

### Patch Changes

- @crossmint/server-sdk@1.2.48

## 1.1.58

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/auth/node-and-express-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crossmint-auth-node",
"version": "1.1.58",
"version": "1.1.59",
"description": "",
"main": "index.js",
"type": "module",
Expand Down
22 changes: 22 additions & 0 deletions apps/payments/nextjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# @crossmint/client-sdk-nextjs-starter

## 1.5.28

### Patch Changes

- Updated dependencies [2cae54d]
- @crossmint/client-sdk-base@1.7.3
- @crossmint/client-sdk-react-ui@2.6.1

## 1.5.27

### Patch Changes

- Updated dependencies [8fc9ed9]
- Updated dependencies [7a1f5ca]
- @crossmint/client-sdk-react-ui@2.6.0

## 1.5.26

### Patch Changes

- @crossmint/client-sdk-react-ui@2.5.11

## 1.5.25

### Patch Changes
Expand Down
16 changes: 16 additions & 0 deletions apps/payments/nextjs/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export const metadata = {
title: "Next.js",
description: "Generated by Next.js",
};

export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" style={{ backgroundColor: "white" }}>
<body>{children}</body>
</html>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"use client";

import { useAuth } from "@crossmint/client-sdk-react-ui";

export function AuthButton() {
const { login, logout, user } = useAuth();

return (
<div className="flex gap-4">
{user == null ? (
<button type="button" onClick={login} className="bg-blue-500 text-white font-bold py-2 px-4 rounded">
Login
</button>
) : (
<button
type="button"
onClick={logout}
className="bg-black text-white font-bold py-2 px-4 rounded border-2 border-blue-500"
>
Logout
</button>
)}
<p>User ID: {user?.id}</p>
</div>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"use client";

import { CrossmintAuthProvider } from "@crossmint/client-sdk-react-ui";
import { CrossmintProvider } from "@crossmint/client-sdk-react-ui";

export function ClientProviders({ children }: { children: React.ReactNode }) {
return (
<CrossmintProvider apiKey="ck_development_5ZUNkuhjP8aYZEgUTDfWToqFpo5zakEqte1db4pHZgPAVKZ9JuTQKmeRbn1gv7zYCoZrRNYy4CnM7A3AMHQxFKA2BsSVeZbKEvXXY7126Th68mXhTg6oxHJpC2kuw9Q1HasVLX9LM67FoYSTRtTUUEzP93GUSEmeG5CZG7Lbop4oAQ7bmZUKTGmqN9L9wxP27CH13WaTBsrqxUJkojbKUXEd">
<CrossmintAuthProvider>{children}</CrossmintAuthProvider>
</CrossmintProvider>
);
}
24 changes: 24 additions & 0 deletions apps/payments/nextjs/app/payment-method-management/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"use client";

import { ClientProviders } from "./components/ClientProviders";
import { AuthButton } from "./components/AuthButton";
import { useCrossmintAuth, CrossmintPaymentMethodManagement } from "@crossmint/client-sdk-react-ui";

export default function PaymentMethodManagementPage() {
return (
<ClientProviders>
<AuthButton />
<PaymentMethodManagementWrapper />
</ClientProviders>
);
}

function PaymentMethodManagementWrapper() {
const { jwt } = useCrossmintAuth();

if (jwt == null) {
return <div>Please login to continue</div>;
}

return <CrossmintPaymentMethodManagement jwt={jwt} />;
}
3 changes: 2 additions & 1 deletion apps/payments/nextjs/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
2 changes: 1 addition & 1 deletion apps/payments/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@crossmint/client-sdk-nextjs-starter",
"version": "1.5.25",
"version": "1.5.28",
"private": true,
"repository": "https://github.com/Crossmint/crossmint-sdk",
"license": "Apache-2.0",
Expand Down
24 changes: 24 additions & 0 deletions apps/wallets/quickstart-devkit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# @crossmint/wallets-quickstart-devkit

## 0.2.2

### Patch Changes

- @crossmint/client-sdk-react-ui@2.6.1

## 0.2.1

### Patch Changes

- Updated dependencies [8fc9ed9]
- Updated dependencies [7a1f5ca]
- @crossmint/client-sdk-react-ui@2.6.0

## 0.2.0

### Minor Changes

- 4ab93e0: Add wallet aliasing

### Patch Changes

- @crossmint/client-sdk-react-ui@2.5.11

## 0.1.72

### Patch Changes
Expand Down
5 changes: 4 additions & 1 deletion apps/wallets/quickstart-devkit/app/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { WalletBalance } from "../components/balance";
import { Permissions } from "../components/permissions";
import { CrossmintAuthLoginButton } from "../components/login";
import { EVMTransferFunds, SolanaTransferFunds, StellarTransferFunds } from "@/components/transfer";
import { useAuth, useWallet } from "@crossmint/client-sdk-react-ui";
import { useAuth, useWallet, ExportPrivateKeyButton } from "@crossmint/client-sdk-react-ui";
import { CrossmintAuthLogoutButton } from "@/components/logout";
import { ApprovalTest } from "@/components/approval-test";
// import { useEVMPrivyConnector, useSolanaPrivyConnector } from "@/hooks/usePrivyConnector";
Expand Down Expand Up @@ -117,6 +117,9 @@ export function HomeContent() {
{wallet?.chain !== "solana" && wallet?.chain !== "stellar" && <EVMTransferFunds />}
{wallet?.chain === "solana" && <SolanaTransferFunds />}
{wallet?.chain === "stellar" && <StellarTransferFunds />}
<div className="flex flex-col gap-2">
<ExportPrivateKeyButton />
</div>
<Permissions />
<ApprovalTest />
</div>
Expand Down
Loading