@coinbase/create-cdp-app 0.0.19 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/create-cdp-app",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
 
3
- import { LoadingSpinner } from "@coinbase/cdp-react/components/LoadingSpinner";
3
+ import { LoadingSpinner } from "@coinbase/cdp-react/components/ui/LoadingSpinner";
4
4
 
5
5
  /**
6
6
  * App loading screen
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
 
3
- import { CDPReactProvider } from "@coinbase/cdp-react/components/CDPReactProvider";
3
+ import { type Config } from "@coinbase/cdp-hooks";
4
+ import { CDPReactProvider, type AppConfig } from "@coinbase/cdp-react/components/CDPReactProvider";
4
5
 
5
6
  import { theme } from "@/components/theme";
6
7
 
@@ -8,13 +9,14 @@ interface ProvidersProps {
8
9
  children: React.ReactNode;
9
10
  }
10
11
 
11
- const CDP_CONFIG = {
12
+ const CDP_CONFIG: Config = {
12
13
  projectId: process.env.NEXT_PUBLIC_CDP_PROJECT_ID ?? "",
13
14
  };
14
15
 
15
- const APP_CONFIG = {
16
+ const APP_CONFIG: AppConfig = {
16
17
  name: "CDP Next.js StarterKit",
17
18
  logoUrl: "http://localhost:3000/logo.svg",
19
+ authMethods: ["email", "sms"],
18
20
  };
19
21
 
20
22
  /**
@@ -1,10 +1,10 @@
1
1
  import { useEvmAddress } from "@coinbase/cdp-hooks";
2
- import { Button } from "@coinbase/cdp-react/components/Button";
3
- import { LoadingSkeleton } from "@coinbase/cdp-react/components/LoadingSkeleton";
4
2
  import {
5
3
  SendTransactionButton,
6
4
  type SendTransactionButtonProps,
7
5
  } from "@coinbase/cdp-react/components/SendTransactionButton";
6
+ import { Button } from "@coinbase/cdp-react/components/ui/Button";
7
+ import { LoadingSkeleton } from "@coinbase/cdp-react/components/ui/LoadingSkeleton";
8
8
  import { useMemo, useState } from "react";
9
9
 
10
10
  interface Props {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { LoadingSkeleton } from "@coinbase/cdp-react/components/LoadingSkeleton";
2
+ import { LoadingSkeleton } from "@coinbase/cdp-react/components/ui/LoadingSkeleton";
3
3
 
4
4
  interface Props {
5
5
  balance?: string;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "ES2017",
3
+ "target": "ES2022",
4
4
  "lib": ["dom", "dom.iterable", "esnext"],
5
5
  "allowJs": true,
6
6
  "skipLibCheck": true,
@@ -1,4 +1,4 @@
1
- import { LoadingSpinner } from "@coinbase/cdp-react/components/LoadingSpinner";
1
+ import { LoadingSpinner } from "@coinbase/cdp-react/components/ui/LoadingSpinner";
2
2
 
3
3
  /**
4
4
  * App loading screen
@@ -1,10 +1,10 @@
1
1
  import { useEvmAddress } from "@coinbase/cdp-hooks";
2
- import { Button } from "@coinbase/cdp-react/components/Button";
3
- import { LoadingSkeleton } from "@coinbase/cdp-react/components/LoadingSkeleton";
4
2
  import {
5
3
  SendTransactionButton,
6
4
  type SendTransactionButtonProps,
7
5
  } from "@coinbase/cdp-react/components/SendTransactionButton";
6
+ import { Button } from "@coinbase/cdp-react/components/ui/Button";
7
+ import { LoadingSkeleton } from "@coinbase/cdp-react/components/ui/LoadingSkeleton";
8
8
  import { useMemo, useState } from "react";
9
9
 
10
10
  interface Props {
@@ -1,4 +1,4 @@
1
- import { LoadingSkeleton } from "@coinbase/cdp-react/components/LoadingSkeleton";
1
+ import { LoadingSkeleton } from "@coinbase/cdp-react/components/ui/LoadingSkeleton";
2
2
 
3
3
  interface Props {
4
4
  balance?: string;
@@ -1,4 +1,4 @@
1
- import { type Config } from "@coinbase/cdp-core";
1
+ import { type Config } from "@coinbase/cdp-hooks";
2
2
  import { type AppConfig } from "@coinbase/cdp-react";
3
3
 
4
4
  export const CDP_CONFIG: Config = { projectId: import.meta.env.VITE_CDP_PROJECT_ID };
@@ -6,4 +6,5 @@ export const CDP_CONFIG: Config = { projectId: import.meta.env.VITE_CDP_PROJECT_
6
6
  export const APP_CONFIG: AppConfig = {
7
7
  name: "CDP React StarterKit",
8
8
  logoUrl: "http://localhost:3000/logo.svg",
9
+ authMethods: ["email", "sms"],
9
10
  };