From 72bf3ab7c7baa5f4b0788625bfc526a152e14250 Mon Sep 17 00:00:00 2001 From: David Newell Date: Wed, 24 Apr 2024 18:29:21 +0100 Subject: [PATCH] fix: revert even more rrweb (#21821) --- patches/rrweb@2.0.0-alpha.13.patch | 8 ++++++-- pnpm-lock.yaml | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/patches/rrweb@2.0.0-alpha.13.patch b/patches/rrweb@2.0.0-alpha.13.patch index a4931ad085a20..c415c192d26c7 100644 --- a/patches/rrweb@2.0.0-alpha.13.patch +++ b/patches/rrweb@2.0.0-alpha.13.patch @@ -489,10 +489,10 @@ index 0d49411b1f6d31103bed898c0e81d1d74ab51234..0b2160ef08aa3ae5310f63c295abc0a5 } applyMutation(d, isSync) { diff --git a/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js b/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js -index 38a23aaae8d683fa584329eced277dd8de55d1ff..1090307f2974c2eb6259d650fd02ef2e2c40e790 100644 +index 38a23aaae8d683fa584329eced277dd8de55d1ff..278e06bc6c8c964581d461405a0f0a4544344fa1 100644 --- a/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js +++ b/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js -@@ -1255,54 +1255,15 @@ function parse(css, options = {}) { +@@ -1255,54 +1255,19 @@ function parse(css, options = {}) { }); } function selector() { @@ -547,6 +547,10 @@ index 38a23aaae8d683fa584329eced277dd8de55d1ff..1090307f2974c2eb6259d650fd02ef2e - } - return result; + return m.replace(/,/g, '\u200C'); ++ }) ++ .split(/\s*(?![^(]*\)),\s*/) ++ .map((s) => { ++ return s.replace(/\u200C/g, ','); + }); } function declaration() { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bd53c194ca202..9dcb3e5652af2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,7 +12,7 @@ patchedDependencies: hash: gydrxrztd4ruyhouu6tu7zh43e path: patches/heatmap.js@2.0.5.patch rrweb@2.0.0-alpha.13: - hash: 7hn7wcvbq3pr4fuxwsrydmkjv4 + hash: awo7hmdoglvq4pl5b43lreupza path: patches/rrweb@2.0.0-alpha.13.patch dependencies: @@ -333,7 +333,7 @@ dependencies: version: 1.5.1 rrweb: specifier: 2.0.0-alpha.13 - version: 2.0.0-alpha.13(patch_hash=7hn7wcvbq3pr4fuxwsrydmkjv4) + version: 2.0.0-alpha.13(patch_hash=awo7hmdoglvq4pl5b43lreupza) sass: specifier: ^1.26.2 version: 1.56.0 @@ -19277,7 +19277,7 @@ packages: resolution: {integrity: sha512-slbhNBCYjxLGCeH95a67ECCy5a22nloXp1F5wF7DCzUNw80FN7tF9Lef1sRGLNo32g3mNqTc2sWLATlKejMxYw==} dev: false - /rrweb@2.0.0-alpha.13(patch_hash=7hn7wcvbq3pr4fuxwsrydmkjv4): + /rrweb@2.0.0-alpha.13(patch_hash=awo7hmdoglvq4pl5b43lreupza): resolution: {integrity: sha512-a8GXOCnzWHNaVZPa7hsrLZtNZ3CGjiL+YrkpLo0TfmxGLhjNZbWY2r7pE06p+FcjFNlgUVTmFrSJbK3kO7yxvw==} dependencies: '@rrweb/types': 2.0.0-alpha.13