Fixing duplicate elements issue (#600)

This commit is contained in:
Abdelarhman Magdy
2024-05-13 20:25:05 +03:00
committed by GitHub
parent b67a9ee6e7
commit bfb8a5dc82
8 changed files with 13 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
"packages": [
"packages/*"
],
"version": "0.7.33",
"version": "0.7.34",
"npmClient": "yarn",
"useWorkspaces": true
}

View File

@@ -1,6 +1,6 @@
{
"name": "clarity-decode",
"version": "0.7.33",
"version": "0.7.34",
"description": "An analytics library that uses web page interactions to generate aggregated insights",
"author": "Microsoft Corp.",
"license": "MIT",

View File

@@ -1,6 +1,6 @@
{
"name": "clarity-devtools",
"version": "0.7.33",
"version": "0.7.34",
"private": true,
"description": "Adds Clarity debugging support to browser devtools",
"author": "Microsoft Corp.",

View File

@@ -2,8 +2,8 @@
"manifest_version": 2,
"name": "Microsoft Clarity Developer Tools",
"description": "Clarity helps you understand how users are interacting with your website.",
"version": "0.7.33",
"version_name": "0.7.33",
"version": "0.7.34",
"version_name": "0.7.34",
"minimum_chrome_version": "50",
"devtools_page": "devtools.html",
"icons": {

View File

@@ -1,6 +1,6 @@
{
"name": "clarity-js",
"version": "0.7.33",
"version": "0.7.34",
"description": "An analytics library that uses web page interactions to generate aggregated insights",
"author": "Microsoft Corp.",
"license": "MIT",

View File

@@ -1,2 +1,2 @@
let version = "0.7.33";
let version = "0.7.34";
export default version;

View File

@@ -343,6 +343,11 @@ function remove(id: number, source: Source): void {
}
function removeNodeFromNodesMap(id: number) {
// Shadow dom roots shouldn't be deleted,
// we should keep listening to the mutations there even they're not rendered in the DOM.
if(nodesMap.get(id).nodeType === Node.DOCUMENT_FRAGMENT_NODE){
return;
}
nodesMap.delete(id);
let value = id in values ? values[id] : null;

View File

@@ -1,6 +1,6 @@
{
"name": "clarity-visualize",
"version": "0.7.33",
"version": "0.7.34",
"description": "An analytics library that uses web page interactions to generate aggregated insights",
"author": "Microsoft Corp.",
"license": "MIT",