@screeb/rrweb 1.0.0 → 1.0.2

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.
package/dist/rrweb.d.cts CHANGED
@@ -114,6 +114,8 @@ declare function iterateResolveTree(tree: ResolveTree, cb: (mutation: addedNodeM
114
114
 
115
115
  declare function legacy_isTouchEvent(event: MouseEvent | TouchEvent | PointerEvent): event is TouchEvent;
116
116
 
117
+ export { listenerHandler }
118
+
117
119
  export declare let mirror: DeprecatedMirror;
118
120
 
119
121
  export { MouseInteractions }
@@ -250,7 +252,7 @@ export declare type recordOptions<T> = {
250
252
  userTriggeredOnInput?: boolean;
251
253
  collectFonts?: boolean;
252
254
  inlineImages?: boolean;
253
- win?: IWindow;
255
+ win?: Window;
254
256
  plugins?: RecordPlugin[];
255
257
  mousemoveWait?: number;
256
258
  keepIframeSrcFn?: KeepIframeSrcFn;
package/dist/rrweb.d.ts CHANGED
@@ -114,6 +114,8 @@ declare function iterateResolveTree(tree: ResolveTree, cb: (mutation: addedNodeM
114
114
 
115
115
  declare function legacy_isTouchEvent(event: MouseEvent | TouchEvent | PointerEvent): event is TouchEvent;
116
116
 
117
+ export { listenerHandler }
118
+
117
119
  export declare let mirror: DeprecatedMirror;
118
120
 
119
121
  export { MouseInteractions }
@@ -250,7 +252,7 @@ export declare type recordOptions<T> = {
250
252
  userTriggeredOnInput?: boolean;
251
253
  collectFonts?: boolean;
252
254
  inlineImages?: boolean;
253
- win?: IWindow;
255
+ win?: Window;
254
256
  plugins?: RecordPlugin[];
255
257
  mousemoveWait?: number;
256
258
  keepIframeSrcFn?: KeepIframeSrcFn;
package/dist/rrweb.js CHANGED
@@ -11588,7 +11588,6 @@ function initMoveObserver({
11588
11588
  function initMouseInteractionObserver({
11589
11589
  mouseInteractionCb,
11590
11590
  doc,
11591
- win,
11592
11591
  mirror: mirror2,
11593
11592
  blockClass,
11594
11593
  blockSelector,
@@ -11660,7 +11659,7 @@ function initMouseInteractionObserver({
11660
11659
  ).forEach((eventKey) => {
11661
11660
  let eventName = toLowerCase(eventKey);
11662
11661
  const handler = getHandler(eventKey);
11663
- if (win.PointerEvent) {
11662
+ if (window.PointerEvent) {
11664
11663
  switch (MouseInteractions[eventKey]) {
11665
11664
  case MouseInteractions.MouseDown:
11666
11665
  case MouseInteractions.MouseUp:
@@ -13587,12 +13586,13 @@ function record(options = {}) {
13587
13586
  userTriggeredOnInput = false,
13588
13587
  collectFonts = false,
13589
13588
  inlineImages = false,
13590
- win = window,
13589
+ win: _win = window,
13591
13590
  plugins,
13592
13591
  keepIframeSrcFn = () => false,
13593
13592
  ignoreCSSAttributes = /* @__PURE__ */ new Set([]),
13594
13593
  errorHandler: errorHandler2
13595
13594
  } = options;
13595
+ const win = _win;
13596
13596
  registerErrorHandler(errorHandler2);
13597
13597
  const inEmittingFrame = recordCrossOriginIframes ? win.parent === win : true;
13598
13598
  let passEmitsToParent = false;