diff --git a/CHANGELOG.md b/CHANGELOG.md index ff3f021..003fad2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### [9.4.2](https://github.com/xdevguild/nextjs-dapp-template/releases/tag/v9.4.1) (2023-12-26) +- reveal demo section for not logged in + ### [9.4.1](https://github.com/xdevguild/nextjs-dapp-template/releases/tag/v9.4.1) (2023-12-24) - update useElven with bugfixes - update other dependencies diff --git a/app/page.tsx b/app/page.tsx index bfe9174..1b226cb 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -3,7 +3,6 @@ import { SimpleDemo } from '@/components/demo/simple-demo'; import { GetUserDataDemo } from '@/components/demo/get-user-data-demo'; import { GetLoggingInStateDemo } from '@/components/demo/get-logging-in-state-demo'; import { GetLoginInfoDemo } from '@/components/demo/get-login-info-demo'; -import { Authenticated } from '@/components/elven-ui/authenticated'; import { CardContent, Card } from '@/components/ui/card'; const Home: NextPage = () => { @@ -56,79 +55,68 @@ const Home: NextPage = () => { - - Connect your wallet! + + + +
+ Now let us see what other valuable tools are included.
- } - > - - - -
- Now let us see what other valuable tools are included. -
-
- You can get the data of currently logged-in users and network - state. These are: -
-
    -
  • - User data such as: address, nonce, balance.
  • -
  • - User logging in state: pending, error, loggedIn.
  • -
  • - - Login info state: loginMethod, expires, loginToken, signature. -
  • -
-
-
-
- - - -
- - - You will also get a couple of other tools, like: -
    -
  • - - Authenticated component - wrapper to check the auth state -
  • -
  • - LoginComponent - component with 3 auth options
  • -
  • - - LoginModalButton component - ready to use modal with - LoginComponent -
  • -
  • - - You will get all tools from{' '} - - useElven - -
  • -
  • - Preserved app state after hard refresh of the page
  • -
  • - - And of course Shadcn UI, Tailwind CSS and NextJS framework -
  • -
-
-
- - -
Better docs, and more improvements soon!
- -
-
-
+ +
  • - Preserved app state after hard refresh of the page
  • +
  • + - And of course Shadcn UI, Tailwind CSS and NextJS framework +
  • + + + + + +
    Better docs, and more improvements soon!
    +
    + Check the{' '} + + xDevGuild + +
    +
    +
    ); }; diff --git a/components/demo/connect-wallet-info.tsx b/components/demo/connect-wallet-info.tsx new file mode 100644 index 0000000..b8f40e7 --- /dev/null +++ b/components/demo/connect-wallet-info.tsx @@ -0,0 +1,9 @@ +export const ConnectWalletInfo = ({ loggedIn }: { loggedIn: boolean }) => { + if (loggedIn) return null; + + return ( +
    + Connect your wallet! +
    + ); +}; diff --git a/components/demo/get-login-info-demo.tsx b/components/demo/get-login-info-demo.tsx index 827178b..ddc68a7 100644 --- a/components/demo/get-login-info-demo.tsx +++ b/components/demo/get-login-info-demo.tsx @@ -26,7 +26,11 @@ export const GetLoginInfoDemo = () => {
    loginToken: -
    {loginToken || '-'}
    + {loginToken ? ( +
    {loginToken}
    + ) : ( + '-' + )}
    diff --git a/components/demo/get-user-data-demo.tsx b/components/demo/get-user-data-demo.tsx index 4b1f87f..3e254c2 100644 --- a/components/demo/get-user-data-demo.tsx +++ b/components/demo/get-user-data-demo.tsx @@ -16,12 +16,16 @@ export const GetUserDataDemo = () => {
    User data:
    address:{' '} - - {shortenHash(address, 8)} - + {address ? ( + + {shortenHash(address, 8)} + + ) : ( + '-' + )}
    guardian:{' '} diff --git a/components/demo/sign-message-demo.tsx b/components/demo/sign-message-demo.tsx index 64c98ce..62c1ed5 100644 --- a/components/demo/sign-message-demo.tsx +++ b/components/demo/sign-message-demo.tsx @@ -1,11 +1,13 @@ 'use client'; -import { useLoginInfo, useSignMessage } from '@useelven/core'; +import { useLoggingIn, useLoginInfo, useSignMessage } from '@useelven/core'; import { Card, CardContent, CardFooter } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; +import { ConnectWalletInfo } from '@/components/demo/connect-wallet-info'; export const SimpleSignMessageDemo = () => { const { loginMethod } = useLoginInfo(); + const { loggedIn } = useLoggingIn(); const { signMessage, pending, signature } = useSignMessage(); const handleSignMessage = () => { @@ -41,13 +43,14 @@ export const SimpleSignMessageDemo = () => { + ); diff --git a/components/demo/simple-deploy-sc-demo.tsx b/components/demo/simple-deploy-sc-demo.tsx index 4e1ca9b..61b0efb 100644 --- a/components/demo/simple-deploy-sc-demo.tsx +++ b/components/demo/simple-deploy-sc-demo.tsx @@ -3,10 +3,12 @@ import { TransactionCallbackParams, useConfig, + useLoggingIn, useScDeploy, } from '@useelven/core'; import { Card, CardContent, CardFooter } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; +import { ConnectWalletInfo } from '@/components/demo/connect-wallet-info'; export const SimpleDeployScDemo = ({ cb, @@ -14,6 +16,7 @@ export const SimpleDeployScDemo = ({ cb: (params: TransactionCallbackParams) => void; }) => { const { explorerAddress } = useConfig(); + const { loggedIn } = useLoggingIn(); const { deploy, scAddress, txResult, pending } = useScDeploy({ cb }); const handleDeploy = () => { @@ -50,9 +53,14 @@ export const SimpleDeployScDemo = ({ )} - + ); diff --git a/components/demo/simple-egld-tx-demo.tsx b/components/demo/simple-egld-tx-demo.tsx index 04b4b4d..b58edb5 100644 --- a/components/demo/simple-egld-tx-demo.tsx +++ b/components/demo/simple-egld-tx-demo.tsx @@ -4,11 +4,13 @@ import { TransactionCallbackParams, useConfig, useAccount, + useLoggingIn, } from '@useelven/core'; import { useCallback } from 'react'; import { shortenHash } from '@/lib/shortenHash'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardFooter } from '@/components/ui/card'; +import { ConnectWalletInfo } from '@/components/demo/connect-wallet-info'; const egldTransferAddress = process.env.NEXT_PUBLIC_EGLD_TRANSFER_ADDRESS || ''; const egldTransferAmount = process.env.NEXT_PUBLIC_EGLD_TRANSFER_AMOUNT || ''; @@ -19,6 +21,7 @@ export const SimpleEGLDTxDemo = ({ cb: (params: TransactionCallbackParams) => void; }) => { const { pending, triggerTx } = useTransaction({ cb }); + const { loggedIn } = useLoggingIn(); const { activeGuardianAddress } = useAccount(); const { explorerAddress, chainType } = useConfig(); @@ -41,7 +44,7 @@ export const SimpleEGLDTxDemo = ({ }, [activeGuardianAddress, triggerTx]); return ( - +
    1. You will be sending 0.001 EGLD to the address:
    @@ -56,9 +59,14 @@ export const SimpleEGLDTxDemo = ({
    - +
    ); diff --git a/components/demo/simple-nft-mint-demo.tsx b/components/demo/simple-nft-mint-demo.tsx index c3a18c6..ce8b8d4 100644 --- a/components/demo/simple-nft-mint-demo.tsx +++ b/components/demo/simple-nft-mint-demo.tsx @@ -9,11 +9,13 @@ import { TransactionCallbackParams, useConfig, useAccount, + useLoggingIn, } from '@useelven/core'; import { useCallback } from 'react'; import { shortenHash } from '@/lib/shortenHash'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardFooter } from '@/components/ui/card'; +import { ConnectWalletInfo } from '@/components/demo/connect-wallet-info'; const mintSmartContractAddress = process.env.NEXT_PUBLIC_MINT_SMART_CONTRACT_ADDRESS || ''; @@ -26,6 +28,7 @@ export const SimpleNftMintDemo = ({ }: { cb: (params: TransactionCallbackParams) => void; }) => { + const { loggedIn } = useLoggingIn(); const { pending, triggerTx } = useTransaction({ cb }); const { activeGuardianAddress } = useAccount(); const { explorerAddress, chainType } = useConfig(); @@ -52,7 +55,7 @@ export const SimpleNftMintDemo = ({ }, [activeGuardianAddress, triggerTx]); return ( - +
    2. You will be minting one NFT using{' '} @@ -69,9 +72,14 @@ export const SimpleNftMintDemo = ({
    - +
    ); diff --git a/components/demo/simple-sc-query-demo.tsx b/components/demo/simple-sc-query-demo.tsx index fdfd68a..37da6d5 100644 --- a/components/demo/simple-sc-query-demo.tsx +++ b/components/demo/simple-sc-query-demo.tsx @@ -41,7 +41,7 @@ export const SimpleScQeryDemo = ({ }; return ( - +
    3. You will be querying the smart contract for NFT tokens left to diff --git a/package-lock.json b/package-lock.json index c6b224e..831257e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,15 @@ { "name": "nextjs-dapp-template", - "version": "9.4.1", + "version": "9.4.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nextjs-dapp-template", - "version": "9.4.1", + "version": "9.4.2", "license": "MIT", "dependencies": { "@multiversx/sdk-core": "12.17.0", - "@next/bundle-analyzer": "14.0.3", "@radix-ui/react-dialog": "1.0.5", "@radix-ui/react-dropdown-menu": "2.0.6", "@radix-ui/react-slot": "1.0.2", @@ -18,7 +17,7 @@ "@useelven/core": "0.14.0", "class-variance-authority": "0.7.0", "clsx": "2.0.0", - "lucide-react": "0.301.0", + "lucide-react": "0.302.0", "next": "14.0.4", "next-themes": "0.2.1", "qrcode": "1.5.3", @@ -33,8 +32,8 @@ "@types/qrcode": "1.5.5", "@types/react": "18.2.45", "@types/react-dom": "18.2.18", - "@typescript-eslint/eslint-plugin": "6.15.0", - "@typescript-eslint/parser": "6.15.0", + "@typescript-eslint/eslint-plugin": "6.16.0", + "@typescript-eslint/parser": "6.16.0", "autoprefixer": "10.4.16", "eslint": "8.56.0", "eslint-config-next": "14.0.4", @@ -543,14 +542,6 @@ "@multiversx/sdk-core": ">= 12.1.0" } }, - "node_modules/@next/bundle-analyzer": { - "version": "14.0.3", - "resolved": "https://registry.npmjs.org/@next/bundle-analyzer/-/bundle-analyzer-14.0.3.tgz", - "integrity": "sha512-+UriXNEn2vGR2IxTiiuen45G7lXUbtMh0hgS/UH2o2E4TnScwjEEepqT76pY8fdpa5JEZ+gvBy6aSnrw4G2P2w==", - "dependencies": { - "webpack-bundle-analyzer": "4.7.0" - } - }, "node_modules/@next/env": { "version": "14.0.4", "resolved": "https://registry.npmjs.org/@next/env/-/env-14.0.4.tgz", @@ -1032,11 +1023,6 @@ "node": ">=14" } }, - "node_modules/@polka/url": { - "version": "1.0.0-next.24", - "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.24.tgz", - "integrity": "sha512-2LuNTFBIO0m7kKIQvvPHN6UE63VjpmL9rnEEaOOaiSPbZK+zUOYIzBAWcED+3XYzhYsd/0mD57VdxAEqqV52CQ==" - }, "node_modules/@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", @@ -1946,16 +1932,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.15.0.tgz", - "integrity": "sha512-j5qoikQqPccq9QoBAupOP+CBu8BaJ8BLjaXSioDISeTZkVO3ig7oSIKh3H+rEpee7xCXtWwSB4KIL5l6hWZzpg==", + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.16.0.tgz", + "integrity": "sha512-O5f7Kv5o4dLWQtPX4ywPPa+v9G+1q1x8mz0Kr0pXUtKsevo+gIJHLkGc8RxaZWtP8RrhwhSNIWThnW42K9/0rQ==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.15.0", - "@typescript-eslint/type-utils": "6.15.0", - "@typescript-eslint/utils": "6.15.0", - "@typescript-eslint/visitor-keys": "6.15.0", + "@typescript-eslint/scope-manager": "6.16.0", + "@typescript-eslint/type-utils": "6.16.0", + "@typescript-eslint/utils": "6.16.0", + "@typescript-eslint/visitor-keys": "6.16.0", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -1981,15 +1967,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.15.0.tgz", - "integrity": "sha512-MkgKNnsjC6QwcMdlNAel24jjkEO/0hQaMDLqP4S9zq5HBAUJNQB6y+3DwLjX7b3l2b37eNAxMPLwb3/kh8VKdA==", + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.16.0.tgz", + "integrity": "sha512-H2GM3eUo12HpKZU9njig3DF5zJ58ja6ahj1GoHEHOgQvYxzoFJJEvC1MQ7T2l9Ha+69ZSOn7RTxOdpC/y3ikMw==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.15.0", - "@typescript-eslint/types": "6.15.0", - "@typescript-eslint/typescript-estree": "6.15.0", - "@typescript-eslint/visitor-keys": "6.15.0", + "@typescript-eslint/scope-manager": "6.16.0", + "@typescript-eslint/types": "6.16.0", + "@typescript-eslint/typescript-estree": "6.16.0", + "@typescript-eslint/visitor-keys": "6.16.0", "debug": "^4.3.4" }, "engines": { @@ -2009,13 +1995,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.15.0.tgz", - "integrity": "sha512-+BdvxYBltqrmgCNu4Li+fGDIkW9n//NrruzG9X1vBzaNK+ExVXPoGB71kneaVw/Jp+4rH/vaMAGC6JfMbHstVg==", + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.16.0.tgz", + "integrity": "sha512-0N7Y9DSPdaBQ3sqSCwlrm9zJwkpOuc6HYm7LpzLAPqBL7dmzAUimr4M29dMkOP/tEwvOCC/Cxo//yOfJD3HUiw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.15.0", - "@typescript-eslint/visitor-keys": "6.15.0" + "@typescript-eslint/types": "6.16.0", + "@typescript-eslint/visitor-keys": "6.16.0" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -2026,13 +2012,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.15.0.tgz", - "integrity": "sha512-CnmHKTfX6450Bo49hPg2OkIm/D/TVYV7jO1MCfPYGwf6x3GO0VU8YMO5AYMn+u3X05lRRxA4fWCz87GFQV6yVQ==", + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.16.0.tgz", + "integrity": "sha512-ThmrEOcARmOnoyQfYkHw/DX2SEYBalVECmoldVuH6qagKROp/jMnfXpAU/pAIWub9c4YTxga+XwgAkoA0pxfmg==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.15.0", - "@typescript-eslint/utils": "6.15.0", + "@typescript-eslint/typescript-estree": "6.16.0", + "@typescript-eslint/utils": "6.16.0", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -2053,9 +2039,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.15.0.tgz", - "integrity": "sha512-yXjbt//E4T/ee8Ia1b5mGlbNj9fB9lJP4jqLbZualwpP2BCQ5is6BcWwxpIsY4XKAhmdv3hrW92GdtJbatC6dQ==", + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.16.0.tgz", + "integrity": "sha512-hvDFpLEvTJoHutVl87+MG/c5C8I6LOgEx05zExTSJDEVU7hhR3jhV8M5zuggbdFCw98+HhZWPHZeKS97kS3JoQ==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -2066,16 +2052,17 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.15.0.tgz", - "integrity": "sha512-7mVZJN7Hd15OmGuWrp2T9UvqR2Ecg+1j/Bp1jXUEY2GZKV6FXlOIoqVDmLpBiEiq3katvj/2n2mR0SDwtloCew==", + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.16.0.tgz", + "integrity": "sha512-VTWZuixh/vr7nih6CfrdpmFNLEnoVBF1skfjdyGnNwXOH1SLeHItGdZDHhhAIzd3ACazyY2Fg76zuzOVTaknGA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.15.0", - "@typescript-eslint/visitor-keys": "6.15.0", + "@typescript-eslint/types": "6.16.0", + "@typescript-eslint/visitor-keys": "6.16.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", + "minimatch": "9.0.3", "semver": "^7.5.4", "ts-api-utils": "^1.0.1" }, @@ -2092,18 +2079,42 @@ } } }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/@typescript-eslint/utils": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.15.0.tgz", - "integrity": "sha512-eF82p0Wrrlt8fQSRL0bGXzK5nWPRV2dYQZdajcfzOD9+cQz9O7ugifrJxclB+xVOvWvagXfqS4Es7vpLP4augw==", + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.16.0.tgz", + "integrity": "sha512-T83QPKrBm6n//q9mv7oiSvy/Xq/7Hyw9SzSEhMHJwznEmQayfBM87+oAlkNAMEO7/MjIwKyOHgBJbxB0s7gx2A==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.15.0", - "@typescript-eslint/types": "6.15.0", - "@typescript-eslint/typescript-estree": "6.15.0", + "@typescript-eslint/scope-manager": "6.16.0", + "@typescript-eslint/types": "6.16.0", + "@typescript-eslint/typescript-estree": "6.16.0", "semver": "^7.5.4" }, "engines": { @@ -2118,12 +2129,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.15.0.tgz", - "integrity": "sha512-1zvtdC1a9h5Tb5jU9x3ADNXO9yjP8rXlaoChu0DQX40vf5ACVpYIVIZhIMZ6d5sDXH7vq4dsZBT1fEGj8D2n2w==", + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.16.0.tgz", + "integrity": "sha512-QSFQLruk7fhs91a/Ep/LqRdbJCZ1Rq03rqBdKT5Ky17Sz8zRLUksqIe9DW0pKtg/Z35/ztbLQ6qpOCN6rOC11A==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.15.0", + "@typescript-eslint/types": "6.16.0", "eslint-visitor-keys": "^3.4.1" }, "engines": { @@ -2406,14 +2417,6 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/acorn-walk": { - "version": "8.3.1", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.1.tgz", - "integrity": "sha512-TgUZgYvqZprrl7YldZNoa9OciCAyZR+Ejm9eXzKCmjsF5IKp/wgQ7Z/ZpjpGTIUPwrHQIcYeI8qDh4PsEwxMbw==", - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -2974,6 +2977,7 @@ "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -3349,11 +3353,6 @@ "node": ">=6.0.0" } }, - "node_modules/duplexer": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" - }, "node_modules/duplexify": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.2.tgz", @@ -4438,20 +4437,6 @@ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, - "node_modules/gzip-size": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", - "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", - "dependencies": { - "duplexer": "^0.1.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/h3": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/h3/-/h3-1.9.0.tgz", @@ -4480,6 +4465,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { "node": ">=8" } @@ -5298,11 +5284,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, "node_modules/lodash.clonedeep": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", @@ -5357,9 +5338,9 @@ } }, "node_modules/lucide-react": { - "version": "0.301.0", - "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.301.0.tgz", - "integrity": "sha512-ZMbsXSv8qg3u0wqGngW+dG2Tu20fBqQAu3e0MikjGIx6KUN+4TrL2j3XwWZCcpHEfH9Tw+gqnQXRhHVne5DzJQ==", + "version": "0.302.0", + "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.302.0.tgz", + "integrity": "sha512-JZX+1fjpqxvQmEgItvPOAwRlqf0Eg9dSZMxljA2/V2M6dluOhQCPBhewIlSJWgkNu0M36kViOgmTAMnDaAMOFw==", "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0" } @@ -5475,14 +5456,6 @@ "node": ">=4" } }, - "node_modules/mrmime": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", - "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==", - "engines": { - "node": ">=10" - } - }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -5837,14 +5810,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/opener": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", - "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", - "bin": { - "opener": "bin/opener-bin.js" - } - }, "node_modules/optionator": { "version": "0.9.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", @@ -6191,9 +6156,9 @@ } }, "node_modules/postcss-selector-parser": { - "version": "6.0.13", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", - "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", + "version": "6.0.14", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.14.tgz", + "integrity": "sha512-65xXYsT40i9GyWzlHQ5ShZoK7JZdySeOozi/tz2EezDo6c04q6+ckYMeoY7idaie1qp2dT5KoYQ2yky6JuoHnA==", "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" @@ -6833,19 +6798,6 @@ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" }, - "node_modules/sirv": { - "version": "1.0.19", - "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", - "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", - "dependencies": { - "@polka/url": "^1.0.0-next.20", - "mrmime": "^1.0.0", - "totalist": "^1.0.0" - }, - "engines": { - "node": ">= 10" - } - }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", @@ -7170,6 +7122,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -7309,14 +7262,6 @@ "node": ">=8.0" } }, - "node_modules/totalist": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", - "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", - "engines": { - "node": ">=6" - } - }, "node_modules/ts-api-utils": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz", @@ -7639,9 +7584,9 @@ } }, "node_modules/use-callback-ref": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.0.tgz", - "integrity": "sha512-3FT9PRuRdbB9HfXhEq35u4oZkvpJ5kuYbpqhCfmiZyReuRgpnhDlbr2ZEnnuS0RrJAPn6l23xjFg9kpDM+Ms7w==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.1.tgz", + "integrity": "sha512-Lg4Vx1XZQauB42Hw3kK7JM6yjVjgFmFC5/Ab797s79aARomD2nEErc4mCgM8EZrARLmmbWpi5DGCadmK50DcAQ==", "dependencies": { "tslib": "^2.0.0" }, @@ -7739,36 +7684,6 @@ "node": ">=10.13.0" } }, - "node_modules/webpack-bundle-analyzer": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.7.0.tgz", - "integrity": "sha512-j9b8ynpJS4K+zfO5GGwsAcQX4ZHpWV+yRiHDiL+bE0XHJ8NiPYLTNVQdlFYWxtpg9lfAQNlwJg16J9AJtFSXRg==", - "dependencies": { - "acorn": "^8.0.4", - "acorn-walk": "^8.0.0", - "chalk": "^4.1.0", - "commander": "^7.2.0", - "gzip-size": "^6.0.0", - "lodash": "^4.17.20", - "opener": "^1.5.2", - "sirv": "^1.0.7", - "ws": "^7.3.1" - }, - "bin": { - "webpack-bundle-analyzer": "lib/bin/analyzer.js" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "engines": { - "node": ">= 10" - } - }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", diff --git a/package.json b/package.json index f8e607e..e94ed82 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nextjs-dapp-template", - "version": "9.4.1", + "version": "9.4.2", "author": "Julian Ćwirko ", "license": "MIT", "homepage": "https://github.com/xdevguild/nextjs-dapp-template", @@ -18,7 +18,6 @@ }, "dependencies": { "@multiversx/sdk-core": "12.17.0", - "@next/bundle-analyzer": "14.0.3", "@radix-ui/react-dialog": "1.0.5", "@radix-ui/react-dropdown-menu": "2.0.6", "@radix-ui/react-slot": "1.0.2", @@ -26,7 +25,7 @@ "@useelven/core": "0.14.0", "class-variance-authority": "0.7.0", "clsx": "2.0.0", - "lucide-react": "0.301.0", + "lucide-react": "0.302.0", "next": "14.0.4", "next-themes": "0.2.1", "qrcode": "1.5.3", @@ -41,8 +40,8 @@ "@types/qrcode": "1.5.5", "@types/react": "18.2.45", "@types/react-dom": "18.2.18", - "@typescript-eslint/eslint-plugin": "6.15.0", - "@typescript-eslint/parser": "6.15.0", + "@typescript-eslint/eslint-plugin": "6.16.0", + "@typescript-eslint/parser": "6.16.0", "autoprefixer": "10.4.16", "eslint": "8.56.0", "eslint-config-next": "14.0.4",