diff --git a/package.json b/package.json index 00e7c66f8f..a554ff3b5b 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,20 @@ "dependencies": { "@apollo/client": "^3.11.8", "@divvi/referral-sdk": "^1.0.0", + "@excalidraw/excalidraw": "^0.18.0", "@giveth/ui-design-system": "^1.11.36", + "@lexical/clipboard": "^0.34.0", + "@lexical/code": "^0.34.0", + "@lexical/code-shiki": "^0.34.0", + "@lexical/file": "^0.34.0", + "@lexical/hashtag": "^0.34.0", + "@lexical/link": "^0.34.0", + "@lexical/list": "^0.34.0", + "@lexical/overflow": "^0.34.0", + "@lexical/react": "^0.34.0", + "@lexical/rich-text": "^0.34.0", + "@lexical/table": "^0.34.0", + "@lexical/utils": "^0.34.0", "@next/third-parties": "^14.2.5", "@react-google-maps/api": "^2.19.3", "@reduxjs/toolkit": "^2.2.4", @@ -42,16 +55,19 @@ "apollo-upload-client": "^18.0.1", "base58": "^2.0.1", "bignumber.js": "^9.1.2", + "date-fns": "^4.1.0", "deepmerge": "^4.3.1", "ethers": "^5.7.2", "framer-motion": "^11.0.3", "graphql": "^16.8.1", + "katex": "^0.16.22", + "lexical": "^0.34.0", + "lodash-es": "^4.17.21", "lodash.isequal": "^4.5.0", "lottie-react": "^2.4.0", "mongodb": "6.9.0", "next": "^14.2.13", "nprogress": "^0.2.0", - "posthog-js": "^1.147.0", "qrcode": "^1.5.3", "quill": "^1.3.7", "quill-emoji": "^0.2.0", @@ -61,8 +77,10 @@ "rc-slider": "^10.5.0", "react": "^18.3.1", "react-datepicker": "^6.1.0", + "react-day-picker": "^9.9.0", "react-dom": "^18.3.1", "react-dropzone": "^14.2.3", + "react-error-boundary": "^6.0.0", "react-hook-form": "^7.50.1", "react-hot-toast": "^2.4.1", "react-intl": "^6.6.6", @@ -77,7 +95,9 @@ "thirdweb": "^5.88.7", "unsplash-js": "^7.0.19", "viem": "^2.23.5", - "wagmi": "^2.14.12" + "wagmi": "^2.14.12", + "y-websocket": "^3.0.0", + "yjs": "^13.6.27" }, "devDependencies": { "@babel/preset-typescript": "^7.23.3", @@ -90,6 +110,7 @@ "@types/extract-files": "^13.0.1", "@types/jest": "^29.5.12", "@types/jest-axe": "^3.5.9", + "@types/lodash-es": "^4.17.12", "@types/lodash.isequal": "^4.5.8", "@types/node": "^20.11.20", "@types/nprogress": "^0.2.3", diff --git a/pages/_app.tsx b/pages/_app.tsx index 68a711830d..d0cd2539b4 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -11,8 +11,6 @@ import { Provider as ReduxProvider } from 'react-redux'; import { SpeedInsights } from '@vercel/speed-insights/next'; import { GoogleAnalytics } from '@next/third-parties/google'; import { loadErrorMessages, loadDevMessages } from '@apollo/client/dev'; -import posthog from 'posthog-js'; -import { PostHogProvider } from 'posthog-js/react'; import { WagmiProvider } from 'wagmi'; import { ThirdwebProvider } from 'thirdweb/react'; import { projectId, wagmiConfig } from '@/wagmiConfigs'; @@ -67,19 +65,6 @@ export const IntlMessages = { const defaultLocale = process.env.defaultLocale; -// Check that PostHog is client-side (used to handle Next.js SSR) -if (typeof window !== 'undefined' && isProduction) { - posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY || '', { - api_host: - process.env.NEXT_PUBLIC_POSTHOG_HOST || 'https://us.i.posthog.com', - person_profiles: 'identified_only', - // Enable debug mode in development - loaded: posthog => { - if (process.env.NODE_ENV === 'development') posthog.debug(); - }, - }); -} - const RenderComponent = ({ Component, pageProps }: any) => { useSafeAutoConnect(); return ; @@ -140,9 +125,6 @@ function MyApp({ Component, pageProps }: AppProps) { }, ); } - - // Track page views => Posthog - posthog?.capture('$pageview'); }; const handleChangeError = () => { NProgress.done(); @@ -208,40 +190,38 @@ function MyApp({ Component, pageProps }: AppProps) { - - {isMaintenanceMode ? ( - - ) : ( - <> - - - - - - {isGIVeconomyRoute( - router.route, - ) && } - {(pageProps as any) - .errorStatus ? ( - - ) : ( - - )} - {/* {process.env.NEXT_PUBLIC_ENV !== + {isMaintenanceMode ? ( + + ) : ( + <> + + + + + + {isGIVeconomyRoute( + router.route, + ) && } + {(pageProps as any) + .errorStatus ? ( + + ) : ( + + )} + {/* {process.env.NEXT_PUBLIC_ENV !== 'production' && (