@posthog/rrweb-player 0.0.26 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4478,6 +4478,22 @@ postcss$1.Input;
4478
4478
  postcss$1.Rule;
4479
4479
  postcss$1.Root;
4480
4480
  postcss$1.Node;
4481
+ function adaptCssForReplay(cssText, cache) {
4482
+ const cachedStyle = cache == null ? void 0 : cache.stylesWithHoverClass.get(cssText);
4483
+ if (cachedStyle) return cachedStyle;
4484
+ let result2 = cssText;
4485
+ try {
4486
+ const ast = postcss$1([
4487
+ mediaSelectorPlugin,
4488
+ pseudoClassPlugin
4489
+ ]).process(cssText, { parser: safeParser });
4490
+ result2 = ast.css;
4491
+ } catch (error) {
4492
+ console.warn("Failed to adapt css for replay", error);
4493
+ }
4494
+ cache == null ? void 0 : cache.stylesWithHoverClass.set(cssText, result2);
4495
+ return result2;
4496
+ }
4481
4497
  const tagMap = {
4482
4498
  script: "noscript",
4483
4499
  // camel case svg element tag names
@@ -4525,22 +4541,6 @@ function getTagName(n2) {
4525
4541
  }
4526
4542
  return tagName;
4527
4543
  }
4528
- function adaptCssForReplay(cssText, cache) {
4529
- const cachedStyle = cache == null ? void 0 : cache.stylesWithHoverClass.get(cssText);
4530
- if (cachedStyle) return cachedStyle;
4531
- let result2 = cssText;
4532
- try {
4533
- const ast = postcss$1([
4534
- mediaSelectorPlugin,
4535
- pseudoClassPlugin
4536
- ]).process(cssText, { parser: safeParser });
4537
- result2 = ast.css;
4538
- } catch (error) {
4539
- console.warn("Failed to adapt css for replay", error);
4540
- }
4541
- cache == null ? void 0 : cache.stylesWithHoverClass.set(cssText, result2);
4542
- return result2;
4543
- }
4544
4544
  function createCache() {
4545
4545
  const stylesWithHoverClass = /* @__PURE__ */ new Map();
4546
4546
  return {