@@ -15,9 +15,9 @@ import {
1515 buildFromDom ,
1616 diff ,
1717 getDefaultSN ,
18- } from 'rrdom/es/virtual-dom ' ;
18+ } from 'vdom ' ;
1919import type {
20- RRNode ,
20+ BaseRRNode as RRNode ,
2121 RRElement ,
2222 RRStyleElement ,
2323 RRIFrameElement ,
@@ -26,7 +26,7 @@ import type {
2626 ReplayerHandler ,
2727 Mirror as RRDOMMirror ,
2828 VirtualStyleRules ,
29- } from 'rrdom/es/virtual-dom ' ;
29+ } from 'vdom ' ;
3030import * as mittProxy from 'mitt' ;
3131import { polyfill as smoothscrollPolyfill } from './smoothscroll' ;
3232import { Timer } from './timer' ;
@@ -731,7 +731,7 @@ export class Replayer {
731731 ) ;
732732 }
733733 if ( this . usingVirtualDom ) {
734- const styleEl = this . virtualDom . createElement ( 'style' ) ;
734+ const styleEl = this . virtualDom . createElement ( 'style' ) ;
735735 this . virtualDom . mirror . add (
736736 styleEl ,
737737 getDefaultSN ( styleEl , this . virtualDom . unserializedId ) ,
@@ -752,10 +752,7 @@ export class Replayer {
752752 head as HTMLHeadElement ,
753753 ) ;
754754 for ( let idx = 0 ; idx < injectStylesRules . length ; idx ++ ) {
755- ( styleEl . sheet ! ) . insertRule (
756- injectStylesRules [ idx ] ,
757- idx ,
758- ) ;
755+ styleEl . sheet ! . insertRule ( injectStylesRules [ idx ] , idx ) ;
759756 }
760757 }
761758 }
@@ -1210,7 +1207,7 @@ export class Replayer {
12101207 if ( ! target ) {
12111208 return this . debugNodeNotFound ( d , d . id ) ;
12121209 }
1213- const styleSheet = ( ( target ) as HTMLStyleElement ) . sheet ! ;
1210+ const styleSheet = ( target as HTMLStyleElement ) . sheet ! ;
12141211 d . adds ?. forEach ( ( { rule, index : nestedIndex } ) => {
12151212 try {
12161213 if ( Array . isArray ( nestedIndex ) ) {
@@ -1692,7 +1689,7 @@ export class Replayer {
16921689 }
16931690 }
16941691 } else if ( attributeName === 'style' ) {
1695- const styleValues = value ;
1692+ const styleValues = value ;
16961693 const targetEl = target as HTMLElement | RRElement ;
16971694 for ( const s in styleValues ) {
16981695 if ( styleValues [ s ] === false ) {
@@ -1772,7 +1769,7 @@ export class Replayer {
17721769 const previousInMap = previousId && map [ previousId ] ;
17731770 const nextInMap = nextId && map [ nextId ] ;
17741771 if ( previousInMap ) {
1775- const { node, mutation } = previousInMap ;
1772+ const { node, mutation } = previousInMap ;
17761773 parent . insertBefore ( node as Node & RRNode , target as Node & RRNode ) ;
17771774 delete map [ mutation . node . id ] ;
17781775 delete this . legacy_missingNodeRetryMap [ mutation . node . id ] ;
@@ -1781,7 +1778,7 @@ export class Replayer {
17811778 }
17821779 }
17831780 if ( nextInMap ) {
1784- const { node, mutation } = nextInMap ;
1781+ const { node, mutation } = nextInMap ;
17851782 parent . insertBefore (
17861783 node as Node & RRNode ,
17871784 target . nextSibling as Node & RRNode ,
0 commit comments