From 5b9d5400d0ca09595699b41b9ccb05850c6c3158 Mon Sep 17 00:00:00 2001 From: Jordan Gensler Date: Fri, 16 Sep 2022 12:40:46 -0700 Subject: [PATCH] Add plausible analytics to explorer --- explorer/client/package.json | 3 +- explorer/client/src/index.tsx | 12 +- explorer/client/src/utils/plausible.ts | 11 ++ pnpm-lock.yaml | 154 ++++++++++-------- wallet-adapter/package.json | 2 +- .../packages/react-providers/package.json | 2 +- wallet/package.json | 2 +- 7 files changed, 106 insertions(+), 80 deletions(-) create mode 100644 explorer/client/src/utils/plausible.ts diff --git a/explorer/client/package.json b/explorer/client/package.json index 7568c14427c30..5c06a462e2476 100644 --- a/explorer/client/package.json +++ b/explorer/client/package.json @@ -35,6 +35,7 @@ "bn.js": "^5.2.0", "class-variance-authority": "^0.2.3", "classnames": "^2.3.1", + "plausible-tracker": "^0.3.8", "prism-react-renderer": "^1.3.5", "prism-themes": "^1.9.0", "prismjs": "^1.28.0", @@ -56,7 +57,7 @@ "@testing-library/user-event": "^14.4.3", "@types/bn.js": "^5.1.0", "@types/node": "^16.11.24", - "@types/react": "^18.0.17", + "@types/react": "^18.0.20", "@types/react-dom": "^18.0.6", "@types/topojson-client": "^3.1.1", "@vitejs/plugin-react": "^2.0.1", diff --git a/explorer/client/src/index.tsx b/explorer/client/src/index.tsx index d8bd814722f32..dd872f63db647 100644 --- a/explorer/client/src/index.tsx +++ b/explorer/client/src/index.tsx @@ -4,14 +4,19 @@ import * as Sentry from '@sentry/react'; import { BrowserTracing } from '@sentry/tracing'; import React from 'react'; -import ReactDOM from 'react-dom'; +import ReactDOM from 'react-dom/client'; import { BrowserRouter as Router } from 'react-router-dom'; import App from './app/App'; import { CURRENT_ENV } from './utils/envUtil'; +import { plausible } from './utils/plausible'; import './index.css'; +// NOTE: The plausible tracker ensures it doesn't run on localhost, so we don't +// need to gate this call. +plausible.enableAutoPageviews(); + if (import.meta.env.PROD) { Sentry.init({ dsn: 'https://e4251274d1b141d7ba272103fa0f8d83@o1314142.ingest.sentry.io/6564988', @@ -24,11 +29,10 @@ if (import.meta.env.PROD) { }); } -ReactDOM.render( +ReactDOM.createRoot(document.getElementById('root')!).render( - , - document.getElementById('root') + ); diff --git a/explorer/client/src/utils/plausible.ts b/explorer/client/src/utils/plausible.ts new file mode 100644 index 0000000000000..79af54100a9de --- /dev/null +++ b/explorer/client/src/utils/plausible.ts @@ -0,0 +1,11 @@ +// Copyright (c) 2022, Mysten Labs, Inc. +// SPDX-License-Identifier: Apache-2.0 + +import Plausible from 'plausible-tracker'; + +export const plausible = Plausible({ + // NOTE: If you want to test the plausible integration, you can uncomment + // the following two lines which will start emitting events to plausible. + // domain: 'explorer.ci.sui.io', + // trackLocalhost: true, +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index adc1e0b121fb4..f7f2bf55d27e2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,7 +30,7 @@ importers: '@testing-library/user-event': ^14.4.3 '@types/bn.js': ^5.1.0 '@types/node': ^16.11.24 - '@types/react': ^18.0.17 + '@types/react': ^18.0.20 '@types/react-dom': ^18.0.6 '@types/topojson-client': ^3.1.1 '@visx/geo': ^2.10.0 @@ -49,6 +49,7 @@ importers: eslint-config-react-app: ^7.0.1 eslint-plugin-header: ^3.1.1 onchange: ^7.1.0 + plausible-tracker: ^0.3.8 postcss: ^8.4.6 prettier: 2.5.1 prism-react-renderer: ^1.3.5 @@ -82,6 +83,7 @@ importers: bn.js: 5.2.1 class-variance-authority: 0.2.3_typescript@4.8.2 classnames: 2.3.1 + plausible-tracker: 0.3.8 prism-react-renderer: 1.3.5_react@18.2.0 prism-themes: 1.9.0 prismjs: 1.28.0 @@ -102,7 +104,7 @@ importers: '@testing-library/user-event': 14.4.3_wl4iynrlixafokvgqnhzlvigei '@types/bn.js': 5.1.0 '@types/node': 16.11.49 - '@types/react': 18.0.17 + '@types/react': 18.0.20 '@types/react-dom': 18.0.6 '@types/topojson-client': 3.1.1 '@vitejs/plugin-react': 2.0.1_vite@3.0.9 @@ -244,7 +246,7 @@ importers: '@reduxjs/toolkit': ^1.8.3 '@types/dotenv-webpack': ^7.0.3 '@types/node': ^18.0.6 - '@types/react': ^18.0.15 + '@types/react': ^18.0.20 '@types/react-dom': ^18.0.6 '@types/uuid': ^8.3.4 '@types/webextension-polyfill': ^0.9.0 @@ -311,9 +313,9 @@ importers: react-dom: 18.2.0_react@18.2.0 react-intl: 6.0.8_lcpkensb7jie5krrreeio77aaa react-number-format: 4.9.3_biqbaboplfbrettd7655fr4n2y - react-redux: 8.0.2_76am3hp3mjvgy3cckgdecixdi4 + react-redux: 8.0.2_6hrpdt74nuubt2lijsfizev3cu react-router-dom: 6.3.0_biqbaboplfbrettd7655fr4n2y - react-textarea-autosize: 8.3.4_ug65io7jkbhmo4fihdmbrh3ina + react-textarea-autosize: 8.3.4_w5j4k42lgipnm43s3brx6h3c34 rxjs: 7.5.6 stream-browserify: 3.0.0 tweetnacl: 1.0.3 @@ -323,7 +325,7 @@ importers: devDependencies: '@types/dotenv-webpack': 7.0.3_webpack-cli@4.10.0 '@types/node': 18.7.6 - '@types/react': 18.0.17 + '@types/react': 18.0.20 '@types/react-dom': 18.0.6 '@types/uuid': 8.3.4 '@types/webextension-polyfill': 0.9.0 @@ -377,7 +379,7 @@ importers: '@testing-library/react': ^13.3.0 '@testing-library/user-event': ^13.5.0 '@types/node': ^16.11.44 - '@types/react': ^18.0.15 + '@types/react': ^18.0.20 '@types/react-dom': ^18.0.6 '@vitejs/plugin-react': ^2.0.1 react: ^18.2.0 @@ -386,10 +388,10 @@ importers: vite: ^3.0.9 vite-tsconfig-paths: ^3.5.0 dependencies: - '@emotion/react': 11.10.0_ug65io7jkbhmo4fihdmbrh3ina - '@emotion/styled': 11.10.0_lzabd6uj4wst47copsenr4b56q - '@mui/icons-material': 5.8.4_uxiimzjvigalxf5okfzuivgjva - '@mui/material': 5.10.1_sqzxty2p7kxc2tmue4tecplwku + '@emotion/react': 11.10.0_w5j4k42lgipnm43s3brx6h3c34 + '@emotion/styled': 11.10.0_rogfb5w6uoxrjijlhs3ke665fa + '@mui/icons-material': 5.8.4_c24pbp3dso6uqkhedl4tzqimk4 + '@mui/material': 5.10.1_zu7od5agdonfngvjm2fmoel47y '@mysten/sui.js': link:../sdk/typescript '@mysten/wallet-adapter-all-wallets': link:packages/adapters/all-wallets '@mysten/wallet-adapter-base': link:packages/adapters/base-adapter @@ -400,7 +402,7 @@ importers: '@testing-library/react': 13.3.0_biqbaboplfbrettd7655fr4n2y '@testing-library/user-event': 13.5.0 '@types/node': 16.11.49 - '@types/react': 18.0.17 + '@types/react': 18.0.20 '@types/react-dom': 18.0.6 react: 18.2.0 react-dom: 18.2.0_react@18.2.0 @@ -464,7 +466,7 @@ importers: specifiers: '@mysten/sui.js': workspace:* '@mysten/wallet-adapter-base': workspace:* - '@types/react': ^18.0.15 + '@types/react': ^18.0.20 '@types/react-dom': ^18.0.6 react: ^18.2.0 react-dom: ^18.2.0 @@ -474,7 +476,7 @@ importers: '@mysten/wallet-adapter-base': link:../adapters/base-adapter devDependencies: '@mysten/sui.js': link:../../../sdk/typescript - '@types/react': 18.0.17 + '@types/react': 18.0.20 '@types/react-dom': 18.0.6 react: 18.2.0 react-dom: 18.2.0_react@18.2.0 @@ -3393,7 +3395,7 @@ packages: resolution: {integrity: sha512-G/YwXTkv7Den9mXDO7AhLWkE3q+I92B+VqAE+dYG4NGPaHZGvt3G8Q0p9vmE+sq7rTGphUbAvmQ9YpbfMQGGlA==} dev: false - /@emotion/react/11.10.0_ug65io7jkbhmo4fihdmbrh3ina: + /@emotion/react/11.10.0_w5j4k42lgipnm43s3brx6h3c34: resolution: {integrity: sha512-K6z9zlHxxBXwN8TcpwBKcEsBsOw4JWCCmR+BeeOWgqp8GIU1yA2Odd41bwdAAr0ssbQrbJbVnndvv7oiv1bZeQ==} peerDependencies: '@babel/core': ^7.0.0 @@ -3411,7 +3413,7 @@ packages: '@emotion/serialize': 1.1.0 '@emotion/utils': 1.2.0 '@emotion/weak-memoize': 0.3.0 - '@types/react': 18.0.17 + '@types/react': 18.0.20 hoist-non-react-statics: 3.3.2 react: 18.2.0 dev: false @@ -3423,14 +3425,14 @@ packages: '@emotion/memoize': 0.8.0 '@emotion/unitless': 0.8.0 '@emotion/utils': 1.2.0 - csstype: 3.1.0 + csstype: 3.1.1 dev: false /@emotion/sheet/1.2.0: resolution: {integrity: sha512-OiTkRgpxescko+M51tZsMq7Puu/KP55wMT8BgpcXVG2hqXc0Vo0mfymJ/Uj24Hp0i083ji/o0aLddh08UEjq8w==} dev: false - /@emotion/styled/11.10.0_lzabd6uj4wst47copsenr4b56q: + /@emotion/styled/11.10.0_rogfb5w6uoxrjijlhs3ke665fa: resolution: {integrity: sha512-V9oaEH6V4KePeQpgUE83i8ht+4Ri3E8Djp/ZPJ4DQlqWhSKITvgzlR3/YQE2hdfP4Jw3qVRkANJz01LLqK9/TA==} peerDependencies: '@babel/core': ^7.0.0 @@ -3446,10 +3448,10 @@ packages: '@babel/runtime': 7.18.9 '@emotion/babel-plugin': 11.10.0 '@emotion/is-prop-valid': 1.2.0 - '@emotion/react': 11.10.0_ug65io7jkbhmo4fihdmbrh3ina + '@emotion/react': 11.10.0_w5j4k42lgipnm43s3brx6h3c34 '@emotion/serialize': 1.1.0 '@emotion/utils': 1.2.0 - '@types/react': 18.0.17 + '@types/react': 18.0.20 react: 18.2.0 dev: false @@ -3913,7 +3915,7 @@ packages: glob-to-regexp: 0.3.0 dev: true - /@mui/base/5.0.0-alpha.93_biqbaboplfbrettd7655fr4n2y: + /@mui/base/5.0.0-alpha.93_7ey2zzynotv32rpkwno45fsx4e: resolution: {integrity: sha512-IVUWO0NNlELDc9FD7mM+fWTS1/6n5sJYdIbXpLQ00NjWdVEYmTyRgUAZDlJJJrz+tbF0eeffx0kOsvJvyTZlsA==} engines: {node: '>=12.0.0'} peerDependencies: @@ -3926,9 +3928,10 @@ packages: dependencies: '@babel/runtime': 7.18.9 '@emotion/is-prop-valid': 1.2.0 - '@mui/types': 7.1.5 + '@mui/types': 7.1.5_@types+react@18.0.20 '@mui/utils': 5.9.3_react@18.2.0 '@popperjs/core': 2.11.6 + '@types/react': 18.0.20 clsx: 1.2.1 prop-types: 15.8.1 react: 18.2.0 @@ -3936,7 +3939,7 @@ packages: react-is: 18.2.0 dev: false - /@mui/base/5.0.0-alpha.93_zxljzmqdrxwnuenbkrz77w74uy: + /@mui/base/5.0.0-alpha.93_biqbaboplfbrettd7655fr4n2y: resolution: {integrity: sha512-IVUWO0NNlELDc9FD7mM+fWTS1/6n5sJYdIbXpLQ00NjWdVEYmTyRgUAZDlJJJrz+tbF0eeffx0kOsvJvyTZlsA==} engines: {node: '>=12.0.0'} peerDependencies: @@ -3949,10 +3952,9 @@ packages: dependencies: '@babel/runtime': 7.18.9 '@emotion/is-prop-valid': 1.2.0 - '@mui/types': 7.1.5_@types+react@18.0.17 + '@mui/types': 7.1.5 '@mui/utils': 5.9.3_react@18.2.0 '@popperjs/core': 2.11.6 - '@types/react': 18.0.17 clsx: 1.2.1 prop-types: 15.8.1 react: 18.2.0 @@ -3980,7 +3982,7 @@ packages: react: 18.2.0 dev: false - /@mui/icons-material/5.8.4_uxiimzjvigalxf5okfzuivgjva: + /@mui/icons-material/5.8.4_c24pbp3dso6uqkhedl4tzqimk4: resolution: {integrity: sha512-9Z/vyj2szvEhGWDvb+gG875bOGm8b8rlHBKOD1+nA3PcgC3fV6W1AU6pfOorPeBfH2X4mb9Boe97vHvaSndQvA==} engines: {node: '>=12.0.0'} peerDependencies: @@ -3992,8 +3994,8 @@ packages: optional: true dependencies: '@babel/runtime': 7.18.9 - '@mui/material': 5.10.1_sqzxty2p7kxc2tmue4tecplwku - '@types/react': 18.0.17 + '@mui/material': 5.10.1_zu7od5agdonfngvjm2fmoel47y + '@types/react': 18.0.20 react: 18.2.0 dev: false @@ -4030,7 +4032,7 @@ packages: react-transition-group: 4.4.5_biqbaboplfbrettd7655fr4n2y dev: false - /@mui/material/5.10.1_sqzxty2p7kxc2tmue4tecplwku: + /@mui/material/5.10.1_zu7od5agdonfngvjm2fmoel47y: resolution: {integrity: sha512-E9fhskX6TwUdAzpL5+yoAzRxb6wY4oBqmBVlgUuLndSwPRYxXoGu+z74NxbDEkxUoHdb7vrDcRTswpB6ykDITQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -4048,14 +4050,14 @@ packages: optional: true dependencies: '@babel/runtime': 7.18.9 - '@emotion/react': 11.10.0_ug65io7jkbhmo4fihdmbrh3ina - '@emotion/styled': 11.10.0_lzabd6uj4wst47copsenr4b56q - '@mui/base': 5.0.0-alpha.93_zxljzmqdrxwnuenbkrz77w74uy + '@emotion/react': 11.10.0_w5j4k42lgipnm43s3brx6h3c34 + '@emotion/styled': 11.10.0_rogfb5w6uoxrjijlhs3ke665fa + '@mui/base': 5.0.0-alpha.93_7ey2zzynotv32rpkwno45fsx4e '@mui/core-downloads-tracker': 5.10.1 - '@mui/system': 5.10.1_4thu2zqr4v2ubfoxjiyrxa5urm - '@mui/types': 7.1.5_@types+react@18.0.17 + '@mui/system': 5.10.1_maiwdqbdhbns5hauqn3m4lqcpi + '@mui/types': 7.1.5_@types+react@18.0.20 '@mui/utils': 5.9.3_react@18.2.0 - '@types/react': 18.0.17 + '@types/react': 18.0.20 '@types/react-transition-group': 4.4.5 clsx: 1.2.1 csstype: 3.1.0 @@ -4082,7 +4084,7 @@ packages: react: 18.2.0 dev: false - /@mui/private-theming/5.9.3_ug65io7jkbhmo4fihdmbrh3ina: + /@mui/private-theming/5.9.3_w5j4k42lgipnm43s3brx6h3c34: resolution: {integrity: sha512-Ys3WO39WqoGciGX9k5AIi/k2zJhlydv4FzlEEwtw9OqdMaV0ydK/TdZekKzjP9sTI/JcdAP3H5DWtUaPLQJjWg==} engines: {node: '>=12.0.0'} peerDependencies: @@ -4094,7 +4096,7 @@ packages: dependencies: '@babel/runtime': 7.18.9 '@mui/utils': 5.9.3_react@18.2.0 - '@types/react': 18.0.17 + '@types/react': 18.0.20 prop-types: 15.8.1 react: 18.2.0 dev: false @@ -4134,14 +4136,14 @@ packages: dependencies: '@babel/runtime': 7.18.9 '@emotion/cache': 11.10.1 - '@emotion/react': 11.10.0_ug65io7jkbhmo4fihdmbrh3ina - '@emotion/styled': 11.10.0_lzabd6uj4wst47copsenr4b56q + '@emotion/react': 11.10.0_w5j4k42lgipnm43s3brx6h3c34 + '@emotion/styled': 11.10.0_rogfb5w6uoxrjijlhs3ke665fa csstype: 3.1.0 prop-types: 15.8.1 react: 18.2.0 dev: false - /@mui/system/5.10.1_4thu2zqr4v2ubfoxjiyrxa5urm: + /@mui/system/5.10.1_maiwdqbdhbns5hauqn3m4lqcpi: resolution: {integrity: sha512-Ix8LVAMtVrNtmncK0yc5llHWlZKCm9okbw8QMnWbI5UH+nI9qhtf+Aure4p5ei6dGKdil++lukar/GxCjfzRSg==} engines: {node: '>=12.0.0'} peerDependencies: @@ -4158,13 +4160,13 @@ packages: optional: true dependencies: '@babel/runtime': 7.18.9 - '@emotion/react': 11.10.0_ug65io7jkbhmo4fihdmbrh3ina - '@emotion/styled': 11.10.0_lzabd6uj4wst47copsenr4b56q - '@mui/private-theming': 5.9.3_ug65io7jkbhmo4fihdmbrh3ina + '@emotion/react': 11.10.0_w5j4k42lgipnm43s3brx6h3c34 + '@emotion/styled': 11.10.0_rogfb5w6uoxrjijlhs3ke665fa + '@mui/private-theming': 5.9.3_w5j4k42lgipnm43s3brx6h3c34 '@mui/styled-engine': 5.10.1_rq3l25qc4qpq3j4w6o4x7hatzy - '@mui/types': 7.1.5_@types+react@18.0.17 + '@mui/types': 7.1.5_@types+react@18.0.20 '@mui/utils': 5.9.3_react@18.2.0 - '@types/react': 18.0.17 + '@types/react': 18.0.20 clsx: 1.2.1 csstype: 3.1.0 prop-types: 15.8.1 @@ -4207,7 +4209,7 @@ packages: optional: true dev: false - /@mui/types/7.1.5_@types+react@18.0.17: + /@mui/types/7.1.5_@types+react@18.0.20: resolution: {integrity: sha512-HnRXrxgHJYJcT8ZDdDCQIlqk0s0skOKD7eWs9mJgBUu70hyW4iA6Kiv3yspJR474RFH8hysKR65VVSzUSzkuwA==} peerDependencies: '@types/react': '*' @@ -4215,7 +4217,7 @@ packages: '@types/react': optional: true dependencies: - '@types/react': 18.0.17 + '@types/react': 18.0.20 dev: false /@mui/utils/5.9.3_react@18.2.0: @@ -4493,7 +4495,7 @@ packages: dependencies: immer: 9.0.15 react: 18.2.0 - react-redux: 8.0.2_76am3hp3mjvgy3cckgdecixdi4 + react-redux: 8.0.2_6hrpdt74nuubt2lijsfizev3cu redux: 4.2.0 redux-thunk: 2.4.1_redux@4.2.0 reselect: 4.1.6 @@ -6349,7 +6351,7 @@ packages: /@types/hoist-non-react-statics/3.3.1: resolution: {integrity: sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==} dependencies: - '@types/react': 18.0.17 + '@types/react': 18.0.20 hoist-non-react-statics: 3.3.2 dev: false @@ -6480,26 +6482,26 @@ packages: /@types/react-dom/18.0.6: resolution: {integrity: sha512-/5OFZgfIPSwy+YuIBP/FgJnQnsxhZhjjrnxudMddeblOouIodEQ75X14Rr4wGSG/bknL+Omy9iWlLo1u/9GzAA==} dependencies: - '@types/react': 18.0.17 + '@types/react': 18.0.20 /@types/react-is/17.0.3: resolution: {integrity: sha512-aBTIWg1emtu95bLTLx0cpkxwGW3ueZv71nE2YFBpL8k/z5czEW8yYpOo8Dp+UUAFAtKwNaOsh/ioSeQnWlZcfw==} dependencies: - '@types/react': 18.0.17 + '@types/react': 18.0.20 dev: false /@types/react-transition-group/4.4.5: resolution: {integrity: sha512-juKD/eiSM3/xZYzjuzH6ZwpP+/lejltmiS3QEzV/vmb/Q8+HfDmxu+Baga8UEMGBqV88Nbg4l2hY/K2DkyaLLA==} dependencies: - '@types/react': 18.0.17 + '@types/react': 18.0.20 dev: false - /@types/react/18.0.17: - resolution: {integrity: sha512-38ETy4tL+rn4uQQi7mB81G7V1g0u2ryquNmsVIOKUAEIDK+3CUjZ6rSRpdvS99dNBnkLFL83qfmtLacGOTIhwQ==} + /@types/react/18.0.20: + resolution: {integrity: sha512-MWul1teSPxujEHVwZl4a5HxQ9vVNsjTchVA+xRqv/VYGCuKGAU6UhfrTdF5aBefwD1BHUD8i/zq+O/vyCm/FrA==} dependencies: '@types/prop-types': 15.7.5 '@types/scheduler': 0.16.2 - csstype: 3.1.0 + csstype: 3.1.1 /@types/responselike/1.0.0: resolution: {integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==} @@ -6890,7 +6892,7 @@ packages: react: ^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0 react-dom: ^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0 dependencies: - '@types/react': 18.0.17 + '@types/react': 18.0.20 '@types/react-dom': 18.0.6 prop-types: 15.8.1 react: 18.2.0 @@ -6904,7 +6906,7 @@ packages: dependencies: '@types/d3-geo': 1.12.3 '@types/geojson': 7946.0.10 - '@types/react': 18.0.17 + '@types/react': 18.0.20 '@visx/group': 2.10.0_react@18.2.0 classnames: 2.3.1 d3-geo: 1.12.1 @@ -6917,7 +6919,7 @@ packages: peerDependencies: react: ^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0 dependencies: - '@types/react': 18.0.17 + '@types/react': 18.0.20 classnames: 2.3.1 prop-types: 15.8.1 react: 18.2.0 @@ -6930,7 +6932,7 @@ packages: dependencies: '@juggle/resize-observer': 3.4.0 '@types/lodash': 4.14.183 - '@types/react': 18.0.17 + '@types/react': 18.0.20 lodash: 4.17.21 prop-types: 15.8.1 react: 18.2.0 @@ -6942,7 +6944,7 @@ packages: react: ^16.8.0-0 || ^17.0.0-0 || ^18.0.0-0 react-dom: ^16.8.0-0 || ^17.0.0-0 || ^18.0.0-0 dependencies: - '@types/react': 18.0.17 + '@types/react': 18.0.20 '@visx/bounds': 2.10.0_biqbaboplfbrettd7655fr4n2y classnames: 2.3.1 prop-types: 15.8.1 @@ -9689,6 +9691,10 @@ packages: /csstype/3.1.0: resolution: {integrity: sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==} + dev: false + + /csstype/3.1.1: + resolution: {integrity: sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==} /csv-generate/3.4.3: resolution: {integrity: sha512-w/T+rqR0vwvHqWs/1ZyMDWtHHSJaN06klRqJXBEpDJaM/+dZkso0OKh1VcuuYvK3XM53KysVNq8Ko/epCK8wOw==} @@ -16359,6 +16365,11 @@ packages: find-up: 5.0.0 dev: true + /plausible-tracker/0.3.8: + resolution: {integrity: sha512-lmOWYQ7s9KOUJ1R+YTOR3HrjdbxIS2Z4de0P/Jx2dQPteznJl2eX3tXxKClpvbfyGP59B5bbhW8ftN59HbbFSg==} + engines: {node: '>=10'} + dev: false + /pnp-webpack-plugin/1.6.4_typescript@4.8.2: resolution: {integrity: sha512-7Wjy+9E3WwLOEL30D+m8TSTF7qJJUJLONBnwQp0518siuMxUQUbgZwssaFX+QKlZkjHZcw/IpZCt/H0srrntSg==} engines: {node: '>=6'} @@ -17475,7 +17486,7 @@ packages: '@formatjs/intl-displaynames': 6.1.1 '@formatjs/intl-listformat': 7.1.1 '@types/hoist-non-react-statics': 3.3.1 - '@types/react': 18.0.17 + '@types/react': 18.0.20 hoist-non-react-statics: 3.3.2 intl-messageformat: 10.1.3 react: 18.2.0 @@ -17503,7 +17514,7 @@ packages: react-dom: 18.2.0_react@18.2.0 dev: false - /react-redux/8.0.2_76am3hp3mjvgy3cckgdecixdi4: + /react-redux/8.0.2_6hrpdt74nuubt2lijsfizev3cu: resolution: {integrity: sha512-nBwiscMw3NoP59NFCXFf02f8xdo+vSHT/uZ1ldDwF7XaTpzm+Phk97VT4urYBl5TYAPNVaFm12UHAEyzkpNzRA==} peerDependencies: '@types/react': ^16.8 || ^17.0 || ^18.0 @@ -17526,7 +17537,7 @@ packages: dependencies: '@babel/runtime': 7.18.9 '@types/hoist-non-react-statics': 3.3.1 - '@types/react': 18.0.17 + '@types/react': 18.0.20 '@types/react-dom': 18.0.6 '@types/use-sync-external-store': 0.0.3 hoist-non-react-statics: 3.3.2 @@ -17576,7 +17587,7 @@ packages: throttle-debounce: 3.0.1 dev: true - /react-textarea-autosize/8.3.4_ug65io7jkbhmo4fihdmbrh3ina: + /react-textarea-autosize/8.3.4_w5j4k42lgipnm43s3brx6h3c34: resolution: {integrity: sha512-CdtmP8Dc19xL8/R6sWvtknD/eCXkQr30dtvC4VmGInhRsfF8X/ihXCq6+9l9qbxmKRiq407/7z5fxE7cVWQNgQ==} engines: {node: '>=10'} peerDependencies: @@ -17585,7 +17596,7 @@ packages: '@babel/runtime': 7.18.9 react: 18.2.0 use-composed-ref: 1.3.0_react@18.2.0 - use-latest: 1.2.1_ug65io7jkbhmo4fihdmbrh3ina + use-latest: 1.2.1_w5j4k42lgipnm43s3brx6h3c34 transitivePeerDependencies: - '@types/react' dev: false @@ -19679,7 +19690,7 @@ packages: schema-utils: 3.1.1 serialize-javascript: 6.0.0 terser: 5.14.2 - webpack: 5.74.0_webpack-cli@4.10.0 + webpack: 5.74.0 /terser/4.8.1: resolution: {integrity: sha512-4GnLC0x667eJG0ewJTa6z/yXrbLGv80D9Ru6HIpCQmO+Q4PfEtBFi0ObSckqwL6VyQv/7ENJieXHo2ANmdQwgw==} @@ -20595,7 +20606,7 @@ packages: react: 18.2.0 dev: false - /use-isomorphic-layout-effect/1.1.2_ug65io7jkbhmo4fihdmbrh3ina: + /use-isomorphic-layout-effect/1.1.2_w5j4k42lgipnm43s3brx6h3c34: resolution: {integrity: sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==} peerDependencies: '@types/react': '*' @@ -20604,11 +20615,11 @@ packages: '@types/react': optional: true dependencies: - '@types/react': 18.0.17 + '@types/react': 18.0.20 react: 18.2.0 dev: false - /use-latest/1.2.1_ug65io7jkbhmo4fihdmbrh3ina: + /use-latest/1.2.1_w5j4k42lgipnm43s3brx6h3c34: resolution: {integrity: sha512-xA+AVm/Wlg3e2P/JiItTziwS7FK92LWrDB0p+hgXloIMuVCeJJ8v6f0eeHyPZaJrM+usM1FkFfbNCrJGs8A/zw==} peerDependencies: '@types/react': '*' @@ -20617,9 +20628,9 @@ packages: '@types/react': optional: true dependencies: - '@types/react': 18.0.17 + '@types/react': 18.0.20 react: 18.2.0 - use-isomorphic-layout-effect: 1.1.2_ug65io7jkbhmo4fihdmbrh3ina + use-isomorphic-layout-effect: 1.1.2_w5j4k42lgipnm43s3brx6h3c34 dev: false /use-sync-external-store/1.1.0_react@18.2.0: @@ -21290,7 +21301,6 @@ packages: - '@swc/core' - esbuild - uglify-js - dev: true /webpack/5.74.0_webpack-cli@4.10.0: resolution: {integrity: sha512-A2InDwnhhGN4LYctJj6M1JEaGL7Luj6LOmyBHjcI8529cm5p6VXiTIW2sn6ffvEAKmveLzvu4jrihwXtPojlAA==} diff --git a/wallet-adapter/package.json b/wallet-adapter/package.json index d2225c9c61786..2abad470647c1 100644 --- a/wallet-adapter/package.json +++ b/wallet-adapter/package.json @@ -17,7 +17,7 @@ "@testing-library/react": "^13.3.0", "@testing-library/user-event": "^13.5.0", "@types/node": "^16.11.44", - "@types/react": "^18.0.15", + "@types/react": "^18.0.20", "@types/react-dom": "^18.0.6", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/wallet-adapter/packages/react-providers/package.json b/wallet-adapter/packages/react-providers/package.json index 8ad0559cc8ab4..f65ea95a9ee6a 100644 --- a/wallet-adapter/packages/react-providers/package.json +++ b/wallet-adapter/packages/react-providers/package.json @@ -34,7 +34,7 @@ }, "devDependencies": { "@mysten/sui.js": "workspace:*", - "@types/react": "^18.0.15", + "@types/react": "^18.0.20", "@types/react-dom": "^18.0.6", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/wallet/package.json b/wallet/package.json index 8f9ae1fbb46e5..7c062ddd322c6 100644 --- a/wallet/package.json +++ b/wallet/package.json @@ -36,7 +36,7 @@ "devDependencies": { "@types/dotenv-webpack": "^7.0.3", "@types/node": "^18.0.6", - "@types/react": "^18.0.15", + "@types/react": "^18.0.20", "@types/react-dom": "^18.0.6", "@types/uuid": "^8.3.4", "@types/webextension-polyfill": "^0.9.0",