create-near-app 6.4.0 → 6.4.1

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": "create-near-app",
3
- "version": "6.4.0",
3
+ "version": "6.4.1",
4
4
  "description": "Quickly scaffold your dApp on NEAR Blockchain",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -12,20 +12,20 @@
12
12
  "lint": "next lint"
13
13
  },
14
14
  "dependencies": {
15
- "@near-wallet-selector/core": "^8.9.6",
16
- "@near-wallet-selector/here-wallet": "^8.9.6",
17
- "@near-wallet-selector/modal-ui": "^8.9.6",
18
- "@near-wallet-selector/my-near-wallet": "^8.9.6",
19
- "@web3-onboard/core": "^2.21.4",
20
- "@web3-onboard/injected-wallets": "^2.10.14",
15
+ "@near-wallet-selector/core": "^8.9.7",
16
+ "@near-wallet-selector/here-wallet": "^8.9.7",
17
+ "@near-wallet-selector/modal-ui": "^8.9.7",
18
+ "@near-wallet-selector/my-near-wallet": "^8.9.7",
19
+ "@web3-onboard/core": "^2.21.5",
20
+ "@web3-onboard/injected-wallets": "^2.10.15",
21
21
  "@web3-onboard/ledger": "^2.6.0",
22
- "@web3-onboard/react": "^2.8.15",
22
+ "@web3-onboard/react": "^2.8.16",
23
23
  "@web3-onboard/walletconnect": "^2.5.4",
24
24
  "base64-js": "^1.5.1",
25
25
  "ieee754": "^1.2.1",
26
26
  "near-api-js": "^3.0.4",
27
27
  "near-social-vm": "github:gagdiez/VM" ,
28
- "next": "14.1.4",
28
+ "next": "14.2.0",
29
29
  "pino-pretty": "^11.0.0",
30
30
  "react": "^18",
31
31
  "react-dom": "^18",
@@ -33,6 +33,6 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "eslint": "^9.0",
36
- "eslint-config-next": "14.1.4"
36
+ "eslint-config-next": "14.2.0"
37
37
  }
38
38
  }
@@ -1,4 +1,7 @@
1
1
  import Image from 'next/image';
2
+
3
+ import NearLogo from '/public/near.svg';
4
+ import NextLogo from '/public/next.svg';
2
5
  import styles from './app.module.css';
3
6
  import { DocsCard, HelloComponentsCard, HelloNearCard } from '@/components/cards';
4
7
 
@@ -10,8 +13,8 @@ export default function Home() {
10
13
  <div className={styles.center}>
11
14
  <Image
12
15
  className={styles.logo}
13
- src="/near.svg"
14
- alt="Next.js Logo"
16
+ src={NearLogo}
17
+ alt="NEAR Logo"
15
18
  width={110 * 1.5}
16
19
  height={28 * 1.5}
17
20
  priority
@@ -19,7 +22,7 @@ export default function Home() {
19
22
  <h3 className="ms-2 me-3 text-dark"> + </h3>
20
23
  <Image
21
24
  className={styles.logo}
22
- src="/next.svg"
25
+ src={NextLogo}
23
26
  alt="Next.js Logo"
24
27
  width={300 * .58}
25
28
  height={61 * .58}
@@ -34,4 +37,4 @@ export default function Home() {
34
37
  </div>
35
38
  </main>
36
39
  );
37
- }
40
+ }
@@ -1,9 +1,11 @@
1
+ import Link from 'next/link';
2
+
1
3
  import styles from '../app/app.module.css';
2
4
 
3
5
  export const DocsCard = () => {
4
6
  return (
5
- <a
6
- href="https://docs.near.org/develop/integrate/quickstart-frontend"
7
+ <Link
8
+ href="https://docs.near.org/build/web3-apps/quickstart"
7
9
  className={styles.card}
8
10
  target='_blank'
9
11
  rel="noopener noreferrer"
@@ -12,12 +14,12 @@ export const DocsCard = () => {
12
14
  Near Docs <span>-&gt;</span>
13
15
  </h2>
14
16
  <p>Learn how this application works, and what you can build on Near.</p>
15
- </a>);
17
+ </Link>);
16
18
  };
17
19
 
18
20
  export const HelloNearCard = () => {
19
21
  return (
20
- <a
22
+ <Link
21
23
  href="/hello-near"
22
24
  className={styles.card}
23
25
  rel="noopener noreferrer"
@@ -26,13 +28,13 @@ export const HelloNearCard = () => {
26
28
  Near Integration <span>-&gt;</span>
27
29
  </h2>
28
30
  <p>Discover how simple it is to interact with a Near smart contract.</p>
29
- </a>
31
+ </Link>
30
32
  );
31
33
  };
32
34
 
33
35
  export const HelloComponentsCard = () => {
34
36
  return (
35
- <a
37
+ <Link
36
38
  href="/hello-components"
37
39
  className={styles.card}
38
40
  rel="noopener noreferrer"
@@ -41,6 +43,6 @@ export const HelloComponentsCard = () => {
41
43
  Web3 Components <span>-&gt;</span>
42
44
  </h2>
43
45
  <p>See how Web3 components can help you to create multi-chain apps.</p>
44
- </a>
46
+ </Link>
45
47
  );
46
48
  };
@@ -2,10 +2,10 @@ import Image from 'next/image';
2
2
  import Link from 'next/link';
3
3
  import { useEffect, useState } from 'react';
4
4
 
5
+ import NearLogo from '/public/near-logo.svg';
5
6
  import { useStore } from '@/app/layout';
6
7
 
7
8
  export const Navigation = () => {
8
-
9
9
  const { signedAccountId, wallet } = useStore();
10
10
  const [action, setAction] = useState(() => { });
11
11
  const [label, setLabel] = useState('Loading...');
@@ -26,7 +26,7 @@ export const Navigation = () => {
26
26
  <nav className="navbar navbar-expand-lg">
27
27
  <div className="container-fluid">
28
28
  <Link href="/" passHref legacyBehavior>
29
- <Image priority src="/near-logo.svg" alt="NEAR" width="30" height="24" className="d-inline-block align-text-top" />
29
+ <Image priority src={NearLogo} alt="NEAR" width="30" height="24" className="d-inline-block align-text-top" />
30
30
  </Link>
31
31
  <div className='navbar-nav pt-1'>
32
32
  <button className="btn btn-secondary" onClick={action} > {label} </button>
@@ -12,30 +12,30 @@
12
12
  "lint": "next lint"
13
13
  },
14
14
  "dependencies": {
15
- "@near-wallet-selector/core": "^8.9.6",
16
- "@near-wallet-selector/here-wallet": "^8.9.6",
17
- "@near-wallet-selector/modal-ui": "^8.9.6",
18
- "@near-wallet-selector/my-near-wallet": "^8.9.6",
19
- "@web3-onboard/core": "^2.20.2",
20
- "@web3-onboard/injected-wallets": "^2.10.1",
21
- "@web3-onboard/ledger": "^2.4.6",
22
- "@web3-onboard/react": "^2.8.7",
23
- "@web3-onboard/walletconnect": "^2.3.9",
15
+ "@near-wallet-selector/core": "^8.9.7",
16
+ "@near-wallet-selector/here-wallet": "^8.9.7",
17
+ "@near-wallet-selector/modal-ui": "^8.9.7",
18
+ "@near-wallet-selector/my-near-wallet": "^8.9.7",
19
+ "@web3-onboard/core": "^2.21.5",
20
+ "@web3-onboard/injected-wallets": "^2.10.15",
21
+ "@web3-onboard/ledger": "^2.6.0",
22
+ "@web3-onboard/react": "^2.8.16",
23
+ "@web3-onboard/walletconnect": "^2.5.4",
24
24
  "base64-js": "^1.5.1",
25
25
  "ieee754": "^1.2.1",
26
- "near-api-js": "^2.1.3",
26
+ "near-api-js": "^3.0.4",
27
27
  "near-social-vm": "github:gagdiez/VM" ,
28
- "next": "14.0.1",
29
- "pino-pretty": "^10.2.3",
28
+ "next": "14.2.0",
29
+ "pino-pretty": "^11.0.0",
30
30
  "react": "^18.2.0",
31
31
  "react-bootstrap": "^2.10.2",
32
- "react-bootstrap-icons": "^1.11.3",
32
+ "react-bootstrap-icons": "^1.11.4",
33
33
  "react-dom": "^18.2.0",
34
34
  "react-singleton-hook": "^4.0.1",
35
35
  "zustand": "^4.5.2"
36
36
  },
37
37
  "devDependencies": {
38
- "eslint": "^8.53",
39
- "eslint-config-next": "14.0.1"
38
+ "eslint": "^9.0",
39
+ "eslint-config-next": "14.2.0"
40
40
  }
41
41
  }
@@ -1,35 +1,40 @@
1
+ import Link from 'next/link';
2
+
1
3
  import styles from '../styles/app.module.css';
2
4
 
3
5
  export const DocsCard = () => {
4
6
  return (
5
- <a
6
- href="https://docs.near.org/develop/integrate/quickstart-frontend"
7
+ <Link
8
+ href="https://docs.near.org/build/web3-apps/quickstart"
7
9
  className={styles.card}
8
- target="_blank"
10
+ target='_blank'
9
11
  rel="noopener noreferrer"
10
12
  >
11
13
  <h2>
12
14
  Near Docs <span>-&gt;</span>
13
15
  </h2>
14
16
  <p>Learn how this application works, and what you can build on Near.</p>
15
- </a>
16
- );
17
+ </Link>);
17
18
  };
18
19
 
19
20
  export const HelloNearCard = () => {
20
21
  return (
21
- <a href="/hello-near" className={styles.card} rel="noopener noreferrer">
22
+ <Link
23
+ href="/hello-near"
24
+ className={styles.card}
25
+ rel="noopener noreferrer"
26
+ >
22
27
  <h2>
23
28
  Near Integration <span>-&gt;</span>
24
29
  </h2>
25
30
  <p>Discover how simple it is to interact with a Near smart contract.</p>
26
- </a>
31
+ </Link>
27
32
  );
28
33
  };
29
34
 
30
35
  export const HelloComponentsCard = () => {
31
36
  return (
32
- <a
37
+ <Link
33
38
  href="/hello-components"
34
39
  className={styles.card}
35
40
  rel="noopener noreferrer"
@@ -38,6 +43,6 @@ export const HelloComponentsCard = () => {
38
43
  Web3 Components <span>-&gt;</span>
39
44
  </h2>
40
45
  <p>See how Web3 components can help you to create multi-chain apps.</p>
41
- </a>
46
+ </Link>
42
47
  );
43
- };
48
+ };
@@ -2,8 +2,7 @@ import Image from 'next/image';
2
2
  import Link from 'next/link';
3
3
  import { useEffect, useState } from 'react';
4
4
 
5
- import NearLogo from 'public/near-logo.svg';
6
- //import { useWallet } from '@/wallets/wallet-selector';
5
+ import NearLogo from '/public/near-logo.svg';
7
6
  import { useStore } from '@/layout';
8
7
 
9
8
  export const Navigation = () => {
@@ -21,7 +20,7 @@ export const Navigation = () => {
21
20
  setAction(() => wallet.signIn);
22
21
  setLabel('Login');
23
22
  }
24
- }, [signedAccountId, wallet, setAction, setLabel]);
23
+ }, [signedAccountId, wallet]);
25
24
 
26
25
  return (
27
26
  <nav className="navbar navbar-expand-lg">
@@ -1,10 +1,9 @@
1
1
  import Image from 'next/image';
2
+
3
+ import NearLogo from '/public/near.svg';
4
+ import NextLogo from '/public/next.svg';
2
5
  import styles from '@/styles/app.module.css';
3
- import {
4
- DocsCard,
5
- HelloComponentsCard,
6
- HelloNearCard,
7
- } from '@/components/cards';
6
+ import { DocsCard, HelloComponentsCard, HelloNearCard } from '@/components/cards';
8
7
 
9
8
  export default function Home() {
10
9
  return (
@@ -14,8 +13,8 @@ export default function Home() {
14
13
  <div className={styles.center}>
15
14
  <Image
16
15
  className={styles.logo}
17
- src="/near.svg"
18
- alt="Next.js Logo"
16
+ src={NearLogo}
17
+ alt="NEAR Logo"
19
18
  width={110 * 1.5}
20
19
  height={28 * 1.5}
21
20
  priority
@@ -23,10 +22,10 @@ export default function Home() {
23
22
  <h3 className="ms-2 me-3 text-dark"> + </h3>
24
23
  <Image
25
24
  className={styles.logo}
26
- src="/next.svg"
25
+ src={NextLogo}
27
26
  alt="Next.js Logo"
28
- width={300 * 0.58}
29
- height={61 * 0.58}
27
+ width={300 * .58}
28
+ height={61 * .58}
30
29
  priority
31
30
  />
32
31
  </div>