diff --git a/website/package-lock.json b/website/package-lock.json index bcaa04d..82551f0 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -17,6 +17,7 @@ "@fortawesome/free-brands-svg-icons": "^6.6.0", "@fortawesome/free-solid-svg-icons": "^6.6.0", "@fortawesome/react-fontawesome": "^0.2.2", + "@next/third-parties": "^14.2.13", "@tanstack/react-query": "^5.52.2", "@vercel/analytics": "^1.3.1", "autoprefixer": "^10.4.20", @@ -1776,6 +1777,19 @@ "node": ">= 10" } }, + "node_modules/@next/third-parties": { + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/third-parties/-/third-parties-14.2.13.tgz", + "integrity": "sha512-OSqD2E9JO0/GE8HT5QAUsYVXwjWtPLScAX70kO2xopwDAdRzakrsQS55Cihd862X/4bUB37ApVZ9DlHcExzeOg==", + "license": "MIT", + "dependencies": { + "third-party-capital": "1.0.20" + }, + "peerDependencies": { + "next": "^13.0.0 || ^14.0.0", + "react": "^18.2.0" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -9836,6 +9850,12 @@ "node": ">=0.8" } }, + "node_modules/third-party-capital": { + "version": "1.0.20", + "resolved": "https://registry.npmjs.org/third-party-capital/-/third-party-capital-1.0.20.tgz", + "integrity": "sha512-oB7yIimd8SuGptespDAZnNkzIz+NWaJCu2RMsbs4Wmp9zSDUM8Nhi3s2OOcqYuv3mN4hitXc8DVx+LyUmbUDiA==", + "license": "ISC" + }, "node_modules/tiny-invariant": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", diff --git a/website/package.json b/website/package.json index c8b0557..80c2766 100644 --- a/website/package.json +++ b/website/package.json @@ -30,6 +30,7 @@ "@fortawesome/free-brands-svg-icons": "^6.6.0", "@fortawesome/free-solid-svg-icons": "^6.6.0", "@fortawesome/react-fontawesome": "^0.2.2", + "@next/third-parties": "^14.2.13", "@tanstack/react-query": "^5.52.2", "@vercel/analytics": "^1.3.1", "autoprefixer": "^10.4.20", diff --git a/website/pages/_app.mdx b/website/pages/_app.mdx index 40e8318..41ac9dd 100644 --- a/website/pages/_app.mdx +++ b/website/pages/_app.mdx @@ -1,6 +1,7 @@ import "../styles.css"; import {useEffect, useState} from "react"; import {EuiProvider} from "@elastic/eui"; +import { GoogleAnalytics } from '@next/third-parties/google' export default function Nextra({Component, pageProps}) { const [isClient, setIsClient] = useState(false); @@ -9,9 +10,12 @@ export default function Nextra({Component, pageProps}) { }, []); if (isClient) { return ( - + <> + - + + + ); } return null; diff --git a/website/pnpm-lock.yaml b/website/pnpm-lock.yaml index 92e1659..8d7e520 100644 --- a/website/pnpm-lock.yaml +++ b/website/pnpm-lock.yaml @@ -32,6 +32,9 @@ importers: '@fortawesome/react-fontawesome': specifier: ^0.2.2 version: 0.2.2(@fortawesome/fontawesome-svg-core@6.6.0)(react@18.3.1) + '@next/third-parties': + specifier: ^14.2.13 + version: 14.2.13(next@14.2.11(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) '@tanstack/react-query': specifier: ^5.52.2 version: 5.56.2(react@18.3.1) @@ -601,6 +604,12 @@ packages: cpu: [x64] os: [win32] + '@next/third-parties@14.2.13': + resolution: {integrity: sha512-OSqD2E9JO0/GE8HT5QAUsYVXwjWtPLScAX70kO2xopwDAdRzakrsQS55Cihd862X/4bUB37ApVZ9DlHcExzeOg==} + peerDependencies: + next: ^13.0.0 || ^14.0.0 + react: ^18.2.0 + '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -2715,6 +2724,9 @@ packages: thenify@3.3.1: resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} + third-party-capital@1.0.20: + resolution: {integrity: sha512-oB7yIimd8SuGptespDAZnNkzIz+NWaJCu2RMsbs4Wmp9zSDUM8Nhi3s2OOcqYuv3mN4hitXc8DVx+LyUmbUDiA==} + tiny-invariant@1.3.3: resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==} @@ -3521,6 +3533,12 @@ snapshots: '@next/swc-win32-x64-msvc@14.2.11': optional: true + '@next/third-parties@14.2.13(next@14.2.11(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)': + dependencies: + next: 14.2.11(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react: 18.3.1 + third-party-capital: 1.0.20 + '@nodelib/fs.scandir@2.1.5': dependencies: '@nodelib/fs.stat': 2.0.5 @@ -6092,6 +6110,8 @@ snapshots: dependencies: any-promise: 1.3.0 + third-party-capital@1.0.20: {} + tiny-invariant@1.3.3: {} title@3.5.3: