@posthog/rrweb-player 0.0.28 → 0.0.30

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.
@@ -4448,22 +4448,6 @@ postcss$1.Input;
4448
4448
  postcss$1.Rule;
4449
4449
  postcss$1.Root;
4450
4450
  postcss$1.Node;
4451
- function adaptCssForReplay(cssText, cache) {
4452
- const cachedStyle = cache == null ? void 0 : cache.stylesWithHoverClass.get(cssText);
4453
- if (cachedStyle) return cachedStyle;
4454
- let result2 = cssText;
4455
- try {
4456
- const ast = postcss$1([
4457
- mediaSelectorPlugin,
4458
- pseudoClassPlugin
4459
- ]).process(cssText, { parser: safeParser });
4460
- result2 = ast.css;
4461
- } catch (error) {
4462
- console.warn("Failed to adapt css for replay", error);
4463
- }
4464
- cache == null ? void 0 : cache.stylesWithHoverClass.set(cssText, result2);
4465
- return result2;
4466
- }
4467
4451
  const tagMap = {
4468
4452
  script: "noscript",
4469
4453
  // camel case svg element tag names
@@ -4511,6 +4495,22 @@ function getTagName(n2) {
4511
4495
  }
4512
4496
  return tagName;
4513
4497
  }
4498
+ function adaptCssForReplay(cssText, cache) {
4499
+ const cachedStyle = cache == null ? void 0 : cache.stylesWithHoverClass.get(cssText);
4500
+ if (cachedStyle) return cachedStyle;
4501
+ let result2 = cssText;
4502
+ try {
4503
+ const ast = postcss$1([
4504
+ mediaSelectorPlugin,
4505
+ pseudoClassPlugin
4506
+ ]).process(cssText, { parser: safeParser });
4507
+ result2 = ast.css;
4508
+ } catch (error) {
4509
+ console.warn("Failed to adapt css for replay", error);
4510
+ }
4511
+ cache == null ? void 0 : cache.stylesWithHoverClass.set(cssText, result2);
4512
+ return result2;
4513
+ }
4514
4514
  function createCache() {
4515
4515
  const stylesWithHoverClass = /* @__PURE__ */ new Map();
4516
4516
  return {