@highlight-run/rrweb 2.0.1 → 2.0.6

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.
Files changed (118) hide show
  1. package/dist/plugins/console-record.js +12 -655
  2. package/dist/plugins/console-record.min.js +12 -15
  3. package/dist/plugins/console-record.min.js.map +1 -1
  4. package/dist/plugins/console-replay.js +4 -293
  5. package/dist/plugins/console-replay.min.js +4 -15
  6. package/dist/plugins/console-replay.min.js.map +1 -1
  7. package/dist/plugins/sequential-id-record.js +1 -33
  8. package/dist/plugins/sequential-id-record.min.js +1 -1
  9. package/dist/plugins/sequential-id-record.min.js.map +1 -1
  10. package/dist/plugins/sequential-id-replay.js +1 -37
  11. package/dist/plugins/sequential-id-replay.min.js +1 -1
  12. package/dist/plugins/sequential-id-replay.min.js.map +1 -1
  13. package/dist/record/rrweb-record-pack.js +3 -747
  14. package/dist/record/rrweb-record-pack.min.js +3 -15
  15. package/dist/record/rrweb-record-pack.min.js.map +1 -1
  16. package/dist/record/rrweb-record.js +4 -3318
  17. package/dist/record/rrweb-record.min.js +4 -15
  18. package/dist/record/rrweb-record.min.js.map +1 -1
  19. package/dist/replay/rrweb-replay-unpack.css +1 -0
  20. package/dist/replay/rrweb-replay-unpack.js +5 -4614
  21. package/dist/replay/rrweb-replay-unpack.min.js +5 -17
  22. package/dist/replay/rrweb-replay-unpack.min.js.map +1 -1
  23. package/dist/replay/rrweb-replay.css +1 -0
  24. package/dist/replay/rrweb-replay.js +5 -4204
  25. package/dist/replay/rrweb-replay.min.js +5 -17
  26. package/dist/replay/rrweb-replay.min.js.map +1 -1
  27. package/dist/rrweb-all.css +1 -0
  28. package/dist/rrweb-all.js +16 -8696
  29. package/dist/rrweb-all.min.js +16 -17
  30. package/dist/rrweb-all.min.js.map +1 -1
  31. package/dist/rrweb.css +1 -0
  32. package/dist/rrweb.js +6 -7282
  33. package/dist/rrweb.min.js +6 -17
  34. package/dist/rrweb.min.js.map +1 -1
  35. package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__auto__createBase64WorkerFactory.js +12 -0
  36. package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__auto__isNodeJS.js +7 -0
  37. package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__browser__createBase64WorkerFactory.js +31 -0
  38. package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__node__WorkerClass.js +11 -0
  39. package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__node__createBase64WorkerFactory.js +18 -0
  40. package/es/rrweb/_virtual/image-bitmap-data-url-worker.js +6 -0
  41. package/es/rrweb/all.css +1 -0
  42. package/es/rrweb/ext/mitt/dist/mitt.es.js +1 -1
  43. package/es/rrweb/ext/tslib/tslib.es6.js +38 -0
  44. package/es/rrweb/packages/rrdom/es/virtual-dom.js +1099 -0
  45. package/es/rrweb/packages/rrweb/src/index.js +6 -4
  46. package/es/rrweb/packages/rrweb/src/packer/base.js +1 -1
  47. package/es/rrweb/packages/rrweb/src/packer/pack.js +4 -5
  48. package/es/rrweb/packages/rrweb/src/packer/unpack.js +24 -24
  49. package/es/rrweb/packages/rrweb/src/plugins/console/record/error-stack-parser.js +175 -176
  50. package/es/rrweb/packages/rrweb/src/plugins/console/record/index.js +109 -128
  51. package/es/rrweb/packages/rrweb/src/plugins/console/record/stringify.js +125 -138
  52. package/es/rrweb/packages/rrweb/src/plugins/console/replay/index.js +88 -105
  53. package/es/rrweb/packages/rrweb/src/plugins/sequential-id/record/index.js +19 -20
  54. package/es/rrweb/packages/rrweb/src/plugins/sequential-id/replay/index.js +25 -25
  55. package/es/rrweb/packages/rrweb/src/record/iframe-manager.js +29 -30
  56. package/es/rrweb/packages/rrweb/src/record/index.js +348 -373
  57. package/es/rrweb/packages/rrweb/src/record/mutation.js +487 -528
  58. package/es/rrweb/packages/rrweb/src/record/observer.js +584 -659
  59. package/es/rrweb/packages/rrweb/src/record/observers/canvas/2d.js +44 -73
  60. package/es/rrweb/packages/rrweb/src/record/observers/canvas/canvas-manager.js +166 -87
  61. package/es/rrweb/packages/rrweb/src/record/observers/canvas/canvas.js +21 -26
  62. package/es/rrweb/packages/rrweb/src/record/observers/canvas/serialize-args.js +119 -112
  63. package/es/rrweb/packages/rrweb/src/record/observers/canvas/webgl.js +53 -72
  64. package/es/rrweb/packages/rrweb/src/record/shadow-dom-manager.js +38 -40
  65. package/es/rrweb/packages/rrweb/src/record/stylesheet-manager.js +31 -0
  66. package/es/rrweb/packages/rrweb/src/replay/canvas/2d.js +27 -23
  67. package/es/rrweb/packages/rrweb/src/replay/canvas/deserialize-args.js +67 -0
  68. package/es/rrweb/packages/rrweb/src/replay/canvas/index.js +37 -29
  69. package/es/rrweb/packages/rrweb/src/replay/canvas/webgl.js +58 -120
  70. package/es/rrweb/packages/rrweb/src/replay/index.js +1545 -1854
  71. package/es/rrweb/packages/rrweb/src/replay/machine.js +275 -315
  72. package/es/rrweb/packages/rrweb/src/replay/smoothscroll.js +216 -218
  73. package/es/rrweb/packages/rrweb/src/replay/styles/inject-style.js +7 -7
  74. package/es/rrweb/packages/rrweb/src/replay/timer.js +87 -91
  75. package/es/rrweb/packages/rrweb/src/types.js +72 -72
  76. package/es/rrweb/packages/rrweb/src/utils.js +312 -506
  77. package/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js +190 -72
  78. package/lib/plugins/console-record.js +469 -627
  79. package/lib/plugins/console-replay.js +198 -268
  80. package/lib/plugins/sequential-id-record.js +19 -20
  81. package/lib/plugins/sequential-id-replay.js +25 -25
  82. package/lib/record/rrweb-record-pack.js +184 -139
  83. package/lib/record/rrweb-record.js +2467 -2425
  84. package/lib/replay/rrweb-replay-unpack.css +1 -0
  85. package/lib/replay/rrweb-replay-unpack.js +3798 -3344
  86. package/lib/replay/rrweb-replay.css +1 -0
  87. package/lib/replay/rrweb-replay.js +3743 -3289
  88. package/lib/rrweb-all.css +1 -0
  89. package/lib/rrweb-all.js +6721 -6249
  90. package/lib/rrweb.css +1 -0
  91. package/lib/rrweb.js +6151 -5632
  92. package/package.json +14 -13
  93. package/typings/packer/base.d.ts +1 -1
  94. package/typings/plugins/console/record/index.d.ts +1 -1
  95. package/typings/plugins/console/record/stringify.d.ts +1 -1
  96. package/typings/plugins/sequential-id/record/index.d.ts +1 -1
  97. package/typings/plugins/sequential-id/replay/index.d.ts +1 -1
  98. package/typings/record/iframe-manager.d.ts +3 -3
  99. package/typings/record/index.d.ts +1 -1
  100. package/typings/record/mutation.d.ts +2 -1
  101. package/typings/record/observers/canvas/2d.d.ts +2 -1
  102. package/typings/record/observers/canvas/canvas-manager.d.ts +5 -2
  103. package/typings/record/observers/canvas/canvas.d.ts +1 -1
  104. package/typings/record/observers/canvas/serialize-args.d.ts +5 -5
  105. package/typings/record/observers/canvas/webgl.d.ts +2 -1
  106. package/typings/record/shadow-dom-manager.d.ts +2 -1
  107. package/typings/record/stylesheet-manager.d.ts +12 -0
  108. package/typings/record/workers/image-bitmap-data-url-worker.d.ts +5 -0
  109. package/typings/replay/canvas/2d.d.ts +3 -3
  110. package/typings/replay/canvas/deserialize-args.d.ts +7 -0
  111. package/typings/replay/canvas/index.d.ts +4 -3
  112. package/typings/replay/canvas/webgl.d.ts +3 -5
  113. package/typings/replay/index.d.ts +7 -10
  114. package/typings/types.d.ts +45 -17
  115. package/typings/utils.d.ts +17 -44
  116. package/es/rrweb/packages/rrweb/ext/tslib/tslib.es6.js +0 -78
  117. package/es/rrweb/packages/rrweb/src/replay/virtual-styles.js +0 -121
  118. package/typings/replay/virtual-styles.d.ts +0 -43
@@ -1,96 +1,92 @@
1
- import { __spreadArray, __read } from '../../ext/tslib/tslib.es6.js';
2
1
  import { EventType, IncrementalSource } from '../types.js';
3
2
 
4
- var Timer = (function () {
5
- function Timer(actions, speed) {
6
- if (actions === void 0) { actions = []; }
7
- this.timeOffset = 0;
8
- this.raf = null;
9
- this.actions = actions;
10
- this.speed = speed;
11
- }
12
- Timer.prototype.addAction = function (action) {
13
- var index = this.findActionIndex(action);
14
- this.actions.splice(index, 0, action);
15
- };
16
- Timer.prototype.addActions = function (actions) {
17
- this.actions = this.actions.concat(actions);
18
- };
19
- Timer.prototype.replaceActions = function (actions) {
20
- var _a;
21
- this.actions.length = 0;
22
- (_a = this.actions).splice.apply(_a, __spreadArray([0, 0], __read(actions), false));
23
- };
24
- Timer.prototype.start = function () {
25
- this.timeOffset = 0;
26
- var lastTimestamp = performance.now();
27
- var actions = this.actions;
28
- var self = this;
29
- function check() {
30
- var time = performance.now();
31
- self.timeOffset += (time - lastTimestamp) * self.speed;
32
- lastTimestamp = time;
33
- while (actions.length) {
34
- var action = actions[0];
35
- if (self.timeOffset >= action.delay) {
36
- actions.shift();
37
- action.doAction();
38
- }
39
- else {
40
- break;
41
- }
42
- }
43
- if (actions.length > 0 || self.liveMode) {
44
- self.raf = requestAnimationFrame(check);
45
- }
46
- }
47
- this.raf = requestAnimationFrame(check);
48
- };
49
- Timer.prototype.clear = function () {
50
- if (this.raf) {
51
- cancelAnimationFrame(this.raf);
52
- this.raf = null;
53
- }
54
- this.actions.length = 0;
55
- };
56
- Timer.prototype.setSpeed = function (speed) {
57
- this.speed = speed;
58
- };
59
- Timer.prototype.toggleLiveMode = function (mode) {
60
- this.liveMode = mode;
61
- };
62
- Timer.prototype.isActive = function () {
63
- return this.raf !== null;
64
- };
65
- Timer.prototype.findActionIndex = function (action) {
66
- var start = 0;
67
- var end = this.actions.length - 1;
68
- while (start <= end) {
69
- var mid = Math.floor((start + end) / 2);
70
- if (this.actions[mid].delay < action.delay) {
71
- start = mid + 1;
72
- }
73
- else if (this.actions[mid].delay > action.delay) {
74
- end = mid - 1;
75
- }
76
- else {
77
- return mid + 1;
78
- }
79
- }
80
- return start;
81
- };
82
- return Timer;
83
- }());
84
- function addDelay(event, baselineTime) {
85
- if (event.type === EventType.IncrementalSnapshot &&
86
- event.data.source === IncrementalSource.MouseMove) {
87
- var firstOffset = event.data.positions[0].timeOffset;
88
- var firstTimestamp = event.timestamp + firstOffset;
89
- event.delay = firstTimestamp - baselineTime;
90
- return firstTimestamp - baselineTime;
91
- }
92
- event.delay = event.timestamp - baselineTime;
93
- return event.delay;
3
+ class Timer {
4
+ constructor(actions = [], speed) {
5
+ this.timeOffset = 0;
6
+ this.raf = null;
7
+ this.actions = actions;
8
+ this.speed = speed;
9
+ }
10
+ addAction(action) {
11
+ const index = this.findActionIndex(action);
12
+ this.actions.splice(index, 0, action);
13
+ }
14
+ addActions(actions) {
15
+ this.actions = this.actions.concat(actions);
16
+ }
17
+ replaceActions(actions) {
18
+ this.actions.length = 0;
19
+ this.actions.splice(0, 0, ...actions);
20
+ }
21
+ start() {
22
+ this.timeOffset = 0;
23
+ let lastTimestamp = performance.now();
24
+ const { actions } = this;
25
+ const self = this;
26
+ function check() {
27
+ const time = performance.now();
28
+ self.timeOffset += (time - lastTimestamp) * self.speed;
29
+ lastTimestamp = time;
30
+ while (actions.length) {
31
+ const action = actions[0];
32
+ if (self.timeOffset >= action.delay) {
33
+ actions.shift();
34
+ action.doAction();
35
+ }
36
+ else {
37
+ break;
38
+ }
39
+ }
40
+ if (actions.length > 0 || self.liveMode) {
41
+ self.raf = requestAnimationFrame(check);
42
+ }
43
+ }
44
+ this.raf = requestAnimationFrame(check);
45
+ }
46
+ clear() {
47
+ if (this.raf) {
48
+ cancelAnimationFrame(this.raf);
49
+ this.raf = null;
50
+ }
51
+ this.actions.length = 0;
52
+ }
53
+ setSpeed(speed) {
54
+ this.speed = speed;
55
+ }
56
+ toggleLiveMode(mode) {
57
+ this.liveMode = mode;
58
+ }
59
+ isActive() {
60
+ return this.raf !== null;
61
+ }
62
+ findActionIndex(action) {
63
+ let start = 0;
64
+ let end = this.actions.length - 1;
65
+ while (start <= end) {
66
+ const mid = Math.floor((start + end) / 2);
67
+ if (this.actions[mid].delay < action.delay) {
68
+ start = mid + 1;
69
+ }
70
+ else if (this.actions[mid].delay > action.delay) {
71
+ end = mid - 1;
72
+ }
73
+ else {
74
+ return mid + 1;
75
+ }
76
+ }
77
+ return start;
78
+ }
79
+ }
80
+ function addDelay(event, baselineTime) {
81
+ if (event.type === EventType.IncrementalSnapshot &&
82
+ event.data.source === IncrementalSource.MouseMove) {
83
+ const firstOffset = event.data.positions[0].timeOffset;
84
+ const firstTimestamp = event.timestamp + firstOffset;
85
+ event.delay = firstTimestamp - baselineTime;
86
+ return firstTimestamp - baselineTime;
87
+ }
88
+ event.delay = event.timestamp - baselineTime;
89
+ return event.delay;
94
90
  }
95
91
 
96
92
  export { Timer, addDelay };
@@ -1,75 +1,75 @@
1
- var EventType;
2
- (function (EventType) {
3
- EventType[EventType["DomContentLoaded"] = 0] = "DomContentLoaded";
4
- EventType[EventType["Load"] = 1] = "Load";
5
- EventType[EventType["FullSnapshot"] = 2] = "FullSnapshot";
6
- EventType[EventType["IncrementalSnapshot"] = 3] = "IncrementalSnapshot";
7
- EventType[EventType["Meta"] = 4] = "Meta";
8
- EventType[EventType["Custom"] = 5] = "Custom";
9
- EventType[EventType["Plugin"] = 6] = "Plugin";
10
- })(EventType || (EventType = {}));
11
- var IncrementalSource;
12
- (function (IncrementalSource) {
13
- IncrementalSource[IncrementalSource["Mutation"] = 0] = "Mutation";
14
- IncrementalSource[IncrementalSource["MouseMove"] = 1] = "MouseMove";
15
- IncrementalSource[IncrementalSource["MouseInteraction"] = 2] = "MouseInteraction";
16
- IncrementalSource[IncrementalSource["Scroll"] = 3] = "Scroll";
17
- IncrementalSource[IncrementalSource["ViewportResize"] = 4] = "ViewportResize";
18
- IncrementalSource[IncrementalSource["Input"] = 5] = "Input";
19
- IncrementalSource[IncrementalSource["TouchMove"] = 6] = "TouchMove";
20
- IncrementalSource[IncrementalSource["MediaInteraction"] = 7] = "MediaInteraction";
21
- IncrementalSource[IncrementalSource["StyleSheetRule"] = 8] = "StyleSheetRule";
22
- IncrementalSource[IncrementalSource["CanvasMutation"] = 9] = "CanvasMutation";
23
- IncrementalSource[IncrementalSource["Font"] = 10] = "Font";
24
- IncrementalSource[IncrementalSource["Log"] = 11] = "Log";
25
- IncrementalSource[IncrementalSource["Drag"] = 12] = "Drag";
26
- IncrementalSource[IncrementalSource["StyleDeclaration"] = 13] = "StyleDeclaration";
27
- })(IncrementalSource || (IncrementalSource = {}));
28
- var MouseInteractions;
29
- (function (MouseInteractions) {
30
- MouseInteractions[MouseInteractions["MouseUp"] = 0] = "MouseUp";
31
- MouseInteractions[MouseInteractions["MouseDown"] = 1] = "MouseDown";
32
- MouseInteractions[MouseInteractions["Click"] = 2] = "Click";
33
- MouseInteractions[MouseInteractions["ContextMenu"] = 3] = "ContextMenu";
34
- MouseInteractions[MouseInteractions["DblClick"] = 4] = "DblClick";
35
- MouseInteractions[MouseInteractions["Focus"] = 5] = "Focus";
36
- MouseInteractions[MouseInteractions["Blur"] = 6] = "Blur";
37
- MouseInteractions[MouseInteractions["TouchStart"] = 7] = "TouchStart";
38
- MouseInteractions[MouseInteractions["TouchMove_Departed"] = 8] = "TouchMove_Departed";
39
- MouseInteractions[MouseInteractions["TouchEnd"] = 9] = "TouchEnd";
40
- MouseInteractions[MouseInteractions["TouchCancel"] = 10] = "TouchCancel";
41
- })(MouseInteractions || (MouseInteractions = {}));
42
- var CanvasContext;
43
- (function (CanvasContext) {
44
- CanvasContext[CanvasContext["2D"] = 0] = "2D";
45
- CanvasContext[CanvasContext["WebGL"] = 1] = "WebGL";
46
- CanvasContext[CanvasContext["WebGL2"] = 2] = "WebGL2";
47
- })(CanvasContext || (CanvasContext = {}));
48
- var MediaInteractions;
49
- (function (MediaInteractions) {
50
- MediaInteractions[MediaInteractions["Play"] = 0] = "Play";
51
- MediaInteractions[MediaInteractions["Pause"] = 1] = "Pause";
52
- MediaInteractions[MediaInteractions["Seeked"] = 2] = "Seeked";
53
- MediaInteractions[MediaInteractions["VolumeChange"] = 3] = "VolumeChange";
54
- })(MediaInteractions || (MediaInteractions = {}));
55
- var ReplayerEvents;
56
- (function (ReplayerEvents) {
57
- ReplayerEvents["Start"] = "start";
58
- ReplayerEvents["Pause"] = "pause";
59
- ReplayerEvents["Resume"] = "resume";
60
- ReplayerEvents["Resize"] = "resize";
61
- ReplayerEvents["Finish"] = "finish";
62
- ReplayerEvents["FullsnapshotRebuilded"] = "fullsnapshot-rebuilded";
63
- ReplayerEvents["LoadStylesheetStart"] = "load-stylesheet-start";
64
- ReplayerEvents["LoadStylesheetEnd"] = "load-stylesheet-end";
65
- ReplayerEvents["SkipStart"] = "skip-start";
66
- ReplayerEvents["SkipEnd"] = "skip-end";
67
- ReplayerEvents["MouseInteraction"] = "mouse-interaction";
68
- ReplayerEvents["EventCast"] = "event-cast";
69
- ReplayerEvents["CustomEvent"] = "custom-event";
70
- ReplayerEvents["Flush"] = "flush";
71
- ReplayerEvents["StateChange"] = "state-change";
72
- ReplayerEvents["PlayBack"] = "play-back";
1
+ var EventType;
2
+ (function (EventType) {
3
+ EventType[EventType["DomContentLoaded"] = 0] = "DomContentLoaded";
4
+ EventType[EventType["Load"] = 1] = "Load";
5
+ EventType[EventType["FullSnapshot"] = 2] = "FullSnapshot";
6
+ EventType[EventType["IncrementalSnapshot"] = 3] = "IncrementalSnapshot";
7
+ EventType[EventType["Meta"] = 4] = "Meta";
8
+ EventType[EventType["Custom"] = 5] = "Custom";
9
+ EventType[EventType["Plugin"] = 6] = "Plugin";
10
+ })(EventType || (EventType = {}));
11
+ var IncrementalSource;
12
+ (function (IncrementalSource) {
13
+ IncrementalSource[IncrementalSource["Mutation"] = 0] = "Mutation";
14
+ IncrementalSource[IncrementalSource["MouseMove"] = 1] = "MouseMove";
15
+ IncrementalSource[IncrementalSource["MouseInteraction"] = 2] = "MouseInteraction";
16
+ IncrementalSource[IncrementalSource["Scroll"] = 3] = "Scroll";
17
+ IncrementalSource[IncrementalSource["ViewportResize"] = 4] = "ViewportResize";
18
+ IncrementalSource[IncrementalSource["Input"] = 5] = "Input";
19
+ IncrementalSource[IncrementalSource["TouchMove"] = 6] = "TouchMove";
20
+ IncrementalSource[IncrementalSource["MediaInteraction"] = 7] = "MediaInteraction";
21
+ IncrementalSource[IncrementalSource["StyleSheetRule"] = 8] = "StyleSheetRule";
22
+ IncrementalSource[IncrementalSource["CanvasMutation"] = 9] = "CanvasMutation";
23
+ IncrementalSource[IncrementalSource["Font"] = 10] = "Font";
24
+ IncrementalSource[IncrementalSource["Log"] = 11] = "Log";
25
+ IncrementalSource[IncrementalSource["Drag"] = 12] = "Drag";
26
+ IncrementalSource[IncrementalSource["StyleDeclaration"] = 13] = "StyleDeclaration";
27
+ })(IncrementalSource || (IncrementalSource = {}));
28
+ var MouseInteractions;
29
+ (function (MouseInteractions) {
30
+ MouseInteractions[MouseInteractions["MouseUp"] = 0] = "MouseUp";
31
+ MouseInteractions[MouseInteractions["MouseDown"] = 1] = "MouseDown";
32
+ MouseInteractions[MouseInteractions["Click"] = 2] = "Click";
33
+ MouseInteractions[MouseInteractions["ContextMenu"] = 3] = "ContextMenu";
34
+ MouseInteractions[MouseInteractions["DblClick"] = 4] = "DblClick";
35
+ MouseInteractions[MouseInteractions["Focus"] = 5] = "Focus";
36
+ MouseInteractions[MouseInteractions["Blur"] = 6] = "Blur";
37
+ MouseInteractions[MouseInteractions["TouchStart"] = 7] = "TouchStart";
38
+ MouseInteractions[MouseInteractions["TouchMove_Departed"] = 8] = "TouchMove_Departed";
39
+ MouseInteractions[MouseInteractions["TouchEnd"] = 9] = "TouchEnd";
40
+ MouseInteractions[MouseInteractions["TouchCancel"] = 10] = "TouchCancel";
41
+ })(MouseInteractions || (MouseInteractions = {}));
42
+ var CanvasContext;
43
+ (function (CanvasContext) {
44
+ CanvasContext[CanvasContext["2D"] = 0] = "2D";
45
+ CanvasContext[CanvasContext["WebGL"] = 1] = "WebGL";
46
+ CanvasContext[CanvasContext["WebGL2"] = 2] = "WebGL2";
47
+ })(CanvasContext || (CanvasContext = {}));
48
+ var MediaInteractions;
49
+ (function (MediaInteractions) {
50
+ MediaInteractions[MediaInteractions["Play"] = 0] = "Play";
51
+ MediaInteractions[MediaInteractions["Pause"] = 1] = "Pause";
52
+ MediaInteractions[MediaInteractions["Seeked"] = 2] = "Seeked";
53
+ MediaInteractions[MediaInteractions["VolumeChange"] = 3] = "VolumeChange";
54
+ })(MediaInteractions || (MediaInteractions = {}));
55
+ var ReplayerEvents;
56
+ (function (ReplayerEvents) {
57
+ ReplayerEvents["Start"] = "start";
58
+ ReplayerEvents["Pause"] = "pause";
59
+ ReplayerEvents["Resume"] = "resume";
60
+ ReplayerEvents["Resize"] = "resize";
61
+ ReplayerEvents["Finish"] = "finish";
62
+ ReplayerEvents["FullsnapshotRebuilded"] = "fullsnapshot-rebuilded";
63
+ ReplayerEvents["LoadStylesheetStart"] = "load-stylesheet-start";
64
+ ReplayerEvents["LoadStylesheetEnd"] = "load-stylesheet-end";
65
+ ReplayerEvents["SkipStart"] = "skip-start";
66
+ ReplayerEvents["SkipEnd"] = "skip-end";
67
+ ReplayerEvents["MouseInteraction"] = "mouse-interaction";
68
+ ReplayerEvents["EventCast"] = "event-cast";
69
+ ReplayerEvents["CustomEvent"] = "custom-event";
70
+ ReplayerEvents["Flush"] = "flush";
71
+ ReplayerEvents["StateChange"] = "state-change";
72
+ ReplayerEvents["PlayBack"] = "play-back";
73
73
  })(ReplayerEvents || (ReplayerEvents = {}));
74
74
 
75
75
  export { CanvasContext, EventType, IncrementalSource, MediaInteractions, MouseInteractions, ReplayerEvents };