diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index d3fc424803..0f2da9d6df 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -137,6 +137,10 @@ module.exports = { textColor: '#091E42', isCloseable: true, }, + /* Clarity Config */ + clarity: { + ID: "lnxpe6skj1", // The Tracking ID provided by Clarity + } }, presets: [ [ @@ -223,6 +227,11 @@ module.exports = { } ], }, - ] + ], + [ + 'docusaurus-plugin-clarity', + { + } + ], ], }; diff --git a/website/package.json b/website/package.json index 5a882e3288..3eab1f28c7 100644 --- a/website/package.json +++ b/website/package.json @@ -33,6 +33,7 @@ "@svgr/webpack": "^5.5.0", "antd": "^5.11.5", "clsx": "^1.1.1", + "docusaurus-plugin-clarity": "^2.1.0", "file-loader": "^6.2.0", "hast-util-is-element": "1.1.0", "joi": "17.6.0", diff --git a/website/yarn.lock b/website/yarn.lock index df98d5d5bd..642bde204e 100644 --- a/website/yarn.lock +++ b/website/yarn.lock @@ -1822,7 +1822,7 @@ "@docusaurus/theme-search-algolia" "3.1.1" "@docusaurus/types" "3.1.1" -"@docusaurus/react-loadable@5.5.2", "react-loadable@npm:@docusaurus/react-loadable@5.5.2": +"@docusaurus/react-loadable@5.5.2": version "5.5.2" resolved "https://registry.yarnpkg.com/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz#81aae0db81ecafbdaee3651f12804580868fa6ce" integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ== @@ -4397,6 +4397,11 @@ dns-packet@^5.2.2: dependencies: "@leichtgewicht/ip-codec" "^2.0.1" +docusaurus-plugin-clarity@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/docusaurus-plugin-clarity/-/docusaurus-plugin-clarity-2.1.0.tgz#f9e30b51f15b0f973f4f7d7d66d94be33a4dc937" + integrity sha512-8BHjDC+69m3yQTqBHJ1xFhijHqbCjJJs19bEVySX8DpnGWlPBDbGiujEqEAyIba0sSjYaJNfg/4n61k1NOm0lw== + dom-converter@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/dom-converter/-/dom-converter-0.2.0.tgz#6721a9daee2e293682955b6afe416771627bb768" @@ -8760,6 +8765,14 @@ react-loadable-ssr-addon-v5-slorber@^1.0.1: dependencies: "@babel/runtime" "^7.10.3" +"react-loadable@npm:@docusaurus/react-loadable@5.5.2": + version "5.5.2" + resolved "https://registry.yarnpkg.com/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz#81aae0db81ecafbdaee3651f12804580868fa6ce" + integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ== + dependencies: + "@types/react" "*" + prop-types "^15.6.2" + react-router-config@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/react-router-config/-/react-router-config-5.1.1.tgz#0f4263d1a80c6b2dc7b9c1902c9526478194a988"