diff --git a/package.json b/package.json index 049c460..5ac231c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "make-magic", - "version": "4.4.1", + "version": "4.4.2", "description": "A tool for quickly scaffolding an app with Magic authentication baked-in!", "repository": "magiclabs/create-magic-app", "license": "MIT", diff --git a/scaffolds/nextjs-dedicated-wallet/template/package.json b/scaffolds/nextjs-dedicated-wallet/template/package.json index e1a8569..6597160 100644 --- a/scaffolds/nextjs-dedicated-wallet/template/package.json +++ b/scaffolds/nextjs-dedicated-wallet/template/package.json @@ -9,14 +9,14 @@ "lint": "next lint --fix" }, "dependencies": { - "@magic-ext/auth": "^1.4.1", - "@magic-ext/oauth": "^12.4.1", + "@magic-ext/auth": "^4.0.0", + "@magic-ext/oauth": "^15.0.0", "@types/node": "20.3.3", "@types/react": "18.2.14", "@types/react-dom": "18.2.6", "autoprefixer": "10.4.14", "classnames": "^2.3.2", - "magic-sdk": "^18.2.1", + "magic-sdk": "^21.0.0", "next": "13.4.7", "postcss": "8.4.24", "react": "18.2.0", diff --git a/scaffolds/nextjs-dedicated-wallet/template/src/components/magic/MagicProvider.tsx b/scaffolds/nextjs-dedicated-wallet/template/src/components/magic/MagicProvider.tsx index 08d8d75..296d2da 100644 --- a/scaffolds/nextjs-dedicated-wallet/template/src/components/magic/MagicProvider.tsx +++ b/scaffolds/nextjs-dedicated-wallet/template/src/components/magic/MagicProvider.tsx @@ -3,13 +3,13 @@ import { OAuthExtension } from '@magic-ext/oauth'; import { AuthExtension } from '@magic-ext/auth'; import { Magic as MagicBase } from 'magic-sdk'; import { ReactNode, createContext, useContext, useEffect, useMemo, useState } from 'react'; -import Web3 from 'web3'; +const { Web3 } = require('web3'); export type Magic = MagicBase; type MagicContextType = { magic: Magic | null; - web3: Web3 | null; + web3: typeof Web3 | null; }; const MagicContext = createContext({ @@ -21,7 +21,7 @@ export const useMagic = () => useContext(MagicContext); const MagicProvider = ({ children }: { children: ReactNode }) => { const [magic, setMagic] = useState(null); - const [web3, setWeb3] = useState(null); + const [web3, setWeb3] = useState(null); useEffect(() => { if (process.env.NEXT_PUBLIC_MAGIC_API_KEY) { diff --git a/scaffolds/nextjs-flow-dedicated-wallet/template/package.json b/scaffolds/nextjs-flow-dedicated-wallet/template/package.json index 89d46b8..5ab1dde 100644 --- a/scaffolds/nextjs-flow-dedicated-wallet/template/package.json +++ b/scaffolds/nextjs-flow-dedicated-wallet/template/package.json @@ -9,16 +9,16 @@ "lint": "next lint --fix" }, "dependencies": { - "@magic-ext/auth": "^1.4.1", - "@magic-ext/flow": "^14.3.1", - "@magic-ext/oauth": "^12.4.1", + "@magic-ext/auth": "^4.0.0", + "@magic-ext/flow": "^16.0.0", + "@magic-ext/oauth": "^15.0.0", "@onflow/fcl": "^1.6.0", "@types/node": "20.3.3", "@types/react": "18.2.14", "@types/react-dom": "18.2.6", "autoprefixer": "10.4.14", "classnames": "^2.3.2", - "magic-sdk": "^18.2.1", + "magic-sdk": "^21.0.0", "next": "13.4.7", "postcss": "8.4.24", "react": "18.2.0", diff --git a/scaffolds/nextjs-flow-universal-wallet/template/package.json b/scaffolds/nextjs-flow-universal-wallet/template/package.json index 137b5cc..44ab278 100644 --- a/scaffolds/nextjs-flow-universal-wallet/template/package.json +++ b/scaffolds/nextjs-flow-universal-wallet/template/package.json @@ -9,14 +9,14 @@ "lint": "next lint --fix" }, "dependencies": { - "@magic-ext/flow": "^14.3.1", + "@magic-ext/flow": "^16.0.0", "@onflow/fcl": "^1.6.0", "@onflow/types": "^1.1.0", "@types/node": "18.15.11", "@types/react": "18.0.35", "@types/react-dom": "18.0.11", "eslint-config-next": "13.3.0", - "magic-sdk": "^16.2.0", + "magic-sdk": "^21.0.0", "next": "13.3.0", "react": "18.2.0", "react-dom": "18.2.0", diff --git a/scaffolds/nextjs-solana-dedicated-wallet/template/package.json b/scaffolds/nextjs-solana-dedicated-wallet/template/package.json index 8b7ed84..bdc3e3d 100644 --- a/scaffolds/nextjs-solana-dedicated-wallet/template/package.json +++ b/scaffolds/nextjs-solana-dedicated-wallet/template/package.json @@ -9,16 +9,16 @@ "lint": "next lint --fix" }, "dependencies": { - "@magic-ext/auth": "^1.4.1", - "@magic-ext/oauth": "^12.4.1", - "@magic-ext/solana": "^15.3.1", - "@solana/web3.js": "^1.78.4", + "@magic-ext/auth": "^4.0.0", + "@magic-ext/oauth": "^15.0.0", + "@magic-ext/solana": "^17.0.0", + "@solana/web3.js": "^1.87.1", "@types/node": "20.3.3", "@types/react": "18.2.14", "@types/react-dom": "18.2.6", "autoprefixer": "10.4.14", "classnames": "^2.3.2", - "magic-sdk": "^18.2.1", + "magic-sdk": "^21.0.0", "next": "13.4.7", "postcss": "8.4.24", "react": "18.2.0",