diff --git a/apps/ogre-demo/package.json b/apps/ogre-demo/package.json index bcff95f..b5799bf 100644 --- a/apps/ogre-demo/package.json +++ b/apps/ogre-demo/package.json @@ -12,6 +12,7 @@ "@dotinc/ogre": "^0.3.0", "@dotinc/ogre-react": "^0.3.0", "next": "12.1.0", + "next-plausible": "^3.1.6", "next-transpile-modules": "^9.0.0", "polished": "^4.1.4", "react": "17.0.2", diff --git a/apps/ogre-demo/pages/_app.tsx b/apps/ogre-demo/pages/_app.tsx index 3f5c9d5..83482f5 100644 --- a/apps/ogre-demo/pages/_app.tsx +++ b/apps/ogre-demo/pages/_app.tsx @@ -1,8 +1,13 @@ import '../styles/globals.css' import type { AppProps } from 'next/app' +import PlausibleProvider from 'next-plausible' function MyApp({ Component, pageProps }: AppProps) { - return + return ( + + + + ) } export default MyApp diff --git a/package-lock.json b/package-lock.json index 13679c6..e5c087b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,11 +29,12 @@ } }, "apps/ogre-demo": { - "version": "0.3.0", + "version": "0.4.0", "dependencies": { - "@dotinc/ogre": "^0.2.0", - "@dotinc/ogre-react": "^0.2.0", + "@dotinc/ogre": "^0.3.0", + "@dotinc/ogre-react": "^0.3.0", "next": "12.1.0", + "next-plausible": "^3.1.6", "next-transpile-modules": "^9.0.0", "polished": "^4.1.4", "react": "17.0.2", @@ -9640,6 +9641,19 @@ } } }, + "node_modules/next-plausible": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/next-plausible/-/next-plausible-3.1.6.tgz", + "integrity": "sha512-9L1l3f59122IBNjVDqZEE2y5kA/a8rk3xYqWWfHH9LLxtWw6hqiL43RQGT7xYjHofGdn+RX3WTVRGIv0Iq/wKA==", + "funding": { + "url": "https://github.com/4lejandrito/next-plausible?sponsor=1" + }, + "peerDependencies": { + "next": "^11.1.0 || ^12.0.0", + "react": "^16.8.0 || ^17.0.0", + "react-dom": "^16.8.0 || ^17.0.0" + } + }, "node_modules/next-transpile-modules": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/next-transpile-modules/-/next-transpile-modules-9.0.0.tgz", @@ -14179,7 +14193,7 @@ }, "packages/ogre": { "name": "@dotinc/ogre", - "version": "0.2.0", + "version": "0.3.0", "license": "MIT", "dependencies": { "tslib": "^2.3.1" @@ -14197,10 +14211,10 @@ }, "packages/ogre-react": { "name": "@dotinc/ogre-react", - "version": "0.2.0", + "version": "0.3.0", "license": "MIT", "dependencies": { - "@dotinc/ogre": "^0.2.0", + "@dotinc/ogre": "^0.3.0", "@gitgraph/react": "^1.6.0" }, "devDependencies": { @@ -14730,7 +14744,7 @@ "@dotinc/ogre-react": { "version": "file:packages/ogre-react", "requires": { - "@dotinc/ogre": "^0.2.0", + "@dotinc/ogre": "^0.3.0", "@gitgraph/react": "^1.6.0", "@types/react": "^17.0.39", "@types/react-dom": "^17.0.13", @@ -21584,6 +21598,12 @@ "use-subscription": "1.5.1" } }, + "next-plausible": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/next-plausible/-/next-plausible-3.1.6.tgz", + "integrity": "sha512-9L1l3f59122IBNjVDqZEE2y5kA/a8rk3xYqWWfHH9LLxtWw6hqiL43RQGT7xYjHofGdn+RX3WTVRGIv0Iq/wKA==", + "requires": {} + }, "next-transpile-modules": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/next-transpile-modules/-/next-transpile-modules-9.0.0.tgz", @@ -22185,14 +22205,15 @@ "ogre-demo": { "version": "file:apps/ogre-demo", "requires": { - "@dotinc/ogre": "^0.2.0", - "@dotinc/ogre-react": "^0.2.0", + "@dotinc/ogre": "^0.3.0", + "@dotinc/ogre-react": "^0.3.0", "@types/node": "17.0.21", "@types/react": "17.0.39", "config": "^0.1.1", "eslint": "8.10.0", "eslint-config-next": "12.1.0", "next": "12.1.0", + "next-plausible": "*", "next-transpile-modules": "^9.0.0", "polished": "^4.1.4", "react": "17.0.2",