@betterbugs/rrweb 2.0.0-alpha.19
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/README.md +237 -0
- package/dist/assets/image-bitmap-data-url-worker-IJpC7g_b.js.map +1 -0
- package/dist/rrweb.cjs +17087 -0
- package/dist/rrweb.cjs.map +1 -0
- package/dist/rrweb.d.cts +477 -0
- package/dist/rrweb.d.ts +477 -0
- package/dist/rrweb.js +17088 -0
- package/dist/rrweb.js.map +1 -0
- package/dist/rrweb.umd.cjs +17106 -0
- package/dist/rrweb.umd.cjs.map +7 -0
- package/dist/rrweb.umd.min.cjs +98 -0
- package/dist/rrweb.umd.min.cjs.map +7 -0
- package/dist/style.css +79 -0
- package/dist/style.min.css +2 -0
- package/dist/style.min.css.map +7 -0
- package/package.json +96 -0
package/dist/style.css
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
.replayer-wrapper {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
.replayer-mouse {
|
|
5
|
+
position: absolute;
|
|
6
|
+
width: 20px;
|
|
7
|
+
height: 20px;
|
|
8
|
+
transition: left 0.05s linear, top 0.05s linear;
|
|
9
|
+
background-size: contain;
|
|
10
|
+
background-position: center center;
|
|
11
|
+
background-repeat: no-repeat;
|
|
12
|
+
background-image: url('data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg==');
|
|
13
|
+
border-color: transparent; /* otherwise we transition from black when .touch-device class is added */
|
|
14
|
+
}
|
|
15
|
+
.replayer-mouse::after {
|
|
16
|
+
content: '';
|
|
17
|
+
display: inline-block;
|
|
18
|
+
width: 20px;
|
|
19
|
+
height: 20px;
|
|
20
|
+
background: rgb(73, 80, 246);
|
|
21
|
+
border-radius: 100%;
|
|
22
|
+
transform: translate(-50%, -50%);
|
|
23
|
+
opacity: 0.3;
|
|
24
|
+
}
|
|
25
|
+
.replayer-mouse.active::after {
|
|
26
|
+
animation: click 0.2s ease-in-out 1;
|
|
27
|
+
}
|
|
28
|
+
.replayer-mouse.touch-device {
|
|
29
|
+
background-image: none; /* there's no passive cursor on touch-only screens */
|
|
30
|
+
width: 70px;
|
|
31
|
+
height: 70px;
|
|
32
|
+
border-width: 4px;
|
|
33
|
+
border-style: solid;
|
|
34
|
+
border-radius: 100%;
|
|
35
|
+
margin-left: -37px;
|
|
36
|
+
margin-top: -37px;
|
|
37
|
+
border-color: rgba(73, 80, 246, 0);
|
|
38
|
+
transition: left 0s linear, top 0s linear, border-color 0.2s ease-in-out;
|
|
39
|
+
}
|
|
40
|
+
.replayer-mouse.touch-device.touch-active {
|
|
41
|
+
border-color: rgba(73, 80, 246, 1);
|
|
42
|
+
transition: left 0.25s linear, top 0.25s linear, border-color 0.2s ease-in-out;
|
|
43
|
+
}
|
|
44
|
+
.replayer-mouse.touch-device::after {
|
|
45
|
+
opacity: 0; /* there's no passive cursor on touch-only screens */
|
|
46
|
+
}
|
|
47
|
+
.replayer-mouse.touch-device.active::after {
|
|
48
|
+
animation: touch-click 0.2s ease-in-out 1;
|
|
49
|
+
}
|
|
50
|
+
.replayer-mouse-tail {
|
|
51
|
+
position: absolute;
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@keyframes click {
|
|
56
|
+
0% {
|
|
57
|
+
opacity: 0.3;
|
|
58
|
+
width: 20px;
|
|
59
|
+
height: 20px;
|
|
60
|
+
}
|
|
61
|
+
50% {
|
|
62
|
+
opacity: 0.5;
|
|
63
|
+
width: 10px;
|
|
64
|
+
height: 10px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@keyframes touch-click {
|
|
69
|
+
0% {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
width: 20px;
|
|
72
|
+
height: 20px;
|
|
73
|
+
}
|
|
74
|
+
50% {
|
|
75
|
+
opacity: 0.5;
|
|
76
|
+
width: 10px;
|
|
77
|
+
height: 10px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.replayer-wrapper{position:relative}.replayer-mouse{position:absolute;width:20px;height:20px;transition:left .05s linear,top .05s linear;background-size:contain;background-position:center center;background-repeat:no-repeat;background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg==);border-color:transparent}.replayer-mouse:after{content:"";display:inline-block;width:20px;height:20px;background:#4950f6;border-radius:100%;transform:translate(-50%,-50%);opacity:.3}.replayer-mouse.active:after{animation:click .2s ease-in-out 1}.replayer-mouse.touch-device{background-image:none;width:70px;height:70px;border-width:4px;border-style:solid;border-radius:100%;margin-left:-37px;margin-top:-37px;border-color:#4950f600;transition:left 0s linear,top 0s linear,border-color .2s ease-in-out}.replayer-mouse.touch-device.touch-active{border-color:#4950f6;transition:left .25s linear,top .25s linear,border-color .2s ease-in-out}.replayer-mouse.touch-device:after{opacity:0}.replayer-mouse.touch-device.active:after{animation:touch-click .2s ease-in-out 1}.replayer-mouse-tail{position:absolute;pointer-events:none}@keyframes click{0%{opacity:.3;width:20px;height:20px}50%{opacity:.5;width:10px;height:10px}}@keyframes touch-click{0%{opacity:0;width:20px;height:20px}50%{opacity:.5;width:10px;height:10px}}
|
|
2
|
+
/*# sourceMappingURL=style.min.css.map */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["style.css"],
|
|
4
|
+
"sourcesContent": [".replayer-wrapper {\n position: relative;\n}\n.replayer-mouse {\n position: absolute;\n width: 20px;\n height: 20px;\n transition: left 0.05s linear, top 0.05s linear;\n background-size: contain;\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url('data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg==');\n border-color: transparent; /* otherwise we transition from black when .touch-device class is added */\n}\n.replayer-mouse::after {\n content: '';\n display: inline-block;\n width: 20px;\n height: 20px;\n background: rgb(73, 80, 246);\n border-radius: 100%;\n transform: translate(-50%, -50%);\n opacity: 0.3;\n}\n.replayer-mouse.active::after {\n animation: click 0.2s ease-in-out 1;\n}\n.replayer-mouse.touch-device {\n background-image: none; /* there's no passive cursor on touch-only screens */\n width: 70px;\n height: 70px;\n border-width: 4px;\n border-style: solid;\n border-radius: 100%;\n margin-left: -37px;\n margin-top: -37px;\n border-color: rgba(73, 80, 246, 0);\n transition: left 0s linear, top 0s linear, border-color 0.2s ease-in-out;\n}\n.replayer-mouse.touch-device.touch-active {\n border-color: rgba(73, 80, 246, 1);\n transition: left 0.25s linear, top 0.25s linear, border-color 0.2s ease-in-out;\n}\n.replayer-mouse.touch-device::after {\n opacity: 0; /* there's no passive cursor on touch-only screens */\n}\n.replayer-mouse.touch-device.active::after {\n animation: touch-click 0.2s ease-in-out 1;\n}\n.replayer-mouse-tail {\n position: absolute;\n pointer-events: none;\n}\n\n@keyframes click {\n 0% {\n opacity: 0.3;\n width: 20px;\n height: 20px;\n }\n 50% {\n opacity: 0.5;\n width: 10px;\n height: 10px;\n }\n}\n\n@keyframes touch-click {\n 0% {\n opacity: 0;\n width: 20px;\n height: 20px;\n }\n 50% {\n opacity: 0.5;\n width: 10px;\n height: 10px;\n }\n}\n"],
|
|
5
|
+
"mappings": "AAAA,CAAC,iBACC,SAAU,QACZ,CACA,CAAC,eACC,SAAU,SACV,MAAO,KACP,OAAQ,KACR,WAAY,KAAK,KAAM,MAAM,CAAE,IAAI,KAAM,OACzC,gBAAiB,QACjB,oBAAqB,OAAO,OAC5B,kBAAmB,UACnB,iBAAkB,4pBAClB,aAAc,WAChB,CACA,CAXC,cAWc,OACb,QAAS,GACT,QAAS,aACT,MAAO,KACP,OAAQ,KACR,WAAY,QAnBd,cAoBiB,KACf,UAAW,UAAU,IAAI,CAAE,MAC3B,QAAS,EACX,CACA,CArBC,cAqBc,CAAC,MAAM,OACpB,UAAW,MAAM,IAAK,YAAY,CACpC,CACA,CAxBC,cAwBc,CAAC,aACd,iBAAkB,KAClB,MAAO,KACP,OAAQ,KACR,aAAc,IACd,aAAc,MAhChB,cAiCiB,KACf,YAAa,MACb,WAAY,MACZ,aAAc,UACd,WAAY,KAAK,GAAG,MAAM,CAAE,IAAI,GAAG,MAAM,CAAE,aAAa,IAAK,WAC/D,CACA,CApCC,cAoCc,CAZC,YAYY,CAAC,aAC3B,aAAc,QACd,WAAY,KAAK,KAAM,MAAM,CAAE,IAAI,KAAM,MAAM,CAAE,aAAa,IAAK,WACrE,CACA,CAxCC,cAwCc,CAhBC,YAgBY,OAC1B,QAAS,CACX,CACA,CA3CC,cA2Cc,CAnBC,YAmBY,CAtBZ,MAsBmB,OACjC,UAAW,YAAY,IAAK,YAAY,CAC1C,CACA,CAAC,oBACC,SAAU,SACV,eAAgB,IAClB,CAEA,WA7Ba,MA8BX,GACE,QAAS,GACT,MAAO,KACP,OAAQ,IACV,CACA,IACE,QAAS,GACT,MAAO,KACP,OAAQ,IACV,CACF,CAEA,WApBa,YAqBX,GACE,QAAS,EACT,MAAO,KACP,OAAQ,IACV,CACA,IACE,QAAS,GACT,MAAO,KACP,OAAQ,IACV,CACF",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@betterbugs/rrweb",
|
|
3
|
+
"version": "2.0.0-alpha.19",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"description": "record and replay the web",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"prepare": "npm run prepack",
|
|
10
|
+
"prepack": "npm run build",
|
|
11
|
+
"retest": "cross-env PUPPETEER_HEADLESS=true yarn retest:headful",
|
|
12
|
+
"retest:headful": "vitest run --exclude test/benchmark",
|
|
13
|
+
"build-and-test": "yarn build && yarn retest",
|
|
14
|
+
"test:headless": "cross-env PUPPETEER_HEADLESS=true yarn build-and-test",
|
|
15
|
+
"test:headful": "cross-env PUPPETEER_HEADLESS=false yarn build-and-test",
|
|
16
|
+
"test": "yarn test:headless",
|
|
17
|
+
"test:watch": "yarn build && cross-env PUPPETEER_HEADLESS=true yarn vitest --exclude test/benchmark",
|
|
18
|
+
"test:update": "yarn test:headless --update",
|
|
19
|
+
"retest:update": "cross-env PUPPETEER_HEADLESS=true yarn retest --update",
|
|
20
|
+
"repl": "yarn build && node scripts/repl.js",
|
|
21
|
+
"live-stream": "yarn build && node scripts/stream.js",
|
|
22
|
+
"dev": "vite build --watch",
|
|
23
|
+
"build": "yarn turbo run prepublish",
|
|
24
|
+
"check-types": "tsc -noEmit",
|
|
25
|
+
"prepublish": "tsc -noEmit && vite build",
|
|
26
|
+
"lint": "yarn eslint src",
|
|
27
|
+
"benchmark": "vitest run --maxConcurrency 1 --no-file-parallelism test/benchmark"
|
|
28
|
+
},
|
|
29
|
+
"type": "module",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+ssh://git@github.com/BetterBugs-Team/rrweb.git"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"rrweb",
|
|
36
|
+
"betterbugs"
|
|
37
|
+
],
|
|
38
|
+
"main": "./dist/rrweb.umd.cjs",
|
|
39
|
+
"module": "./dist/rrweb.js",
|
|
40
|
+
"unpkg": "./dist/rrweb.umd.cjs",
|
|
41
|
+
"typings": "dist/rrweb.d.ts",
|
|
42
|
+
"exports": {
|
|
43
|
+
".": {
|
|
44
|
+
"import": {
|
|
45
|
+
"types": "./dist/rrweb.d.ts",
|
|
46
|
+
"default": "./dist/rrweb.js"
|
|
47
|
+
},
|
|
48
|
+
"require": {
|
|
49
|
+
"types": "./dist/rrweb.d.cts",
|
|
50
|
+
"default": "./dist/rrweb.cjs"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"./dist/style.css": "./dist/style.css"
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"dist",
|
|
57
|
+
"package.json"
|
|
58
|
+
],
|
|
59
|
+
"sideEffects": false,
|
|
60
|
+
"author": "BetterBugs-Team",
|
|
61
|
+
"license": "MIT",
|
|
62
|
+
"bugs": {
|
|
63
|
+
"url": "https://github.com/BetterBugs-Team/rrweb/issues"
|
|
64
|
+
},
|
|
65
|
+
"homepage": "https://github.com/BetterBugs-Team/rrweb#readme",
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@types/dom-mediacapture-transform": "0.1.4",
|
|
68
|
+
"@types/inquirer": "^8.2.1",
|
|
69
|
+
"@types/jest-image-snapshot": "^6.1.0",
|
|
70
|
+
"@types/node": "^18.15.11",
|
|
71
|
+
"@types/offscreencanvas": "^2019.6.4",
|
|
72
|
+
"construct-style-sheets-polyfill": "^3.1.0",
|
|
73
|
+
"fast-mhtml": "^1.1.9",
|
|
74
|
+
"identity-obj-proxy": "^3.0.0",
|
|
75
|
+
"ignore-styles": "^5.0.1",
|
|
76
|
+
"inquirer": "^9.0.0",
|
|
77
|
+
"jest-image-snapshot": "^6.2.0",
|
|
78
|
+
"puppeteer": "^20.9.0",
|
|
79
|
+
"simple-peer-light": "^9.10.0",
|
|
80
|
+
"ts-node": "^10.9.1",
|
|
81
|
+
"tslib": "^2.3.1",
|
|
82
|
+
"typescript": "^5.4.5",
|
|
83
|
+
"vite": "^5.3.1",
|
|
84
|
+
"vite-plugin-dts": "^3.9.1"
|
|
85
|
+
},
|
|
86
|
+
"dependencies": {
|
|
87
|
+
"@betterbugs/types": "^2.0.0-alpha.19",
|
|
88
|
+
"@betterbugs/utils": "^2.0.0-alpha.19",
|
|
89
|
+
"@types/css-font-loading-module": "0.0.7",
|
|
90
|
+
"@xstate/fsm": "^1.4.0",
|
|
91
|
+
"base64-arraybuffer": "^1.0.1",
|
|
92
|
+
"mitt": "^3.0.0",
|
|
93
|
+
"@betterbugs/rrdom": "^2.0.0-alpha.19",
|
|
94
|
+
"@betterbugs/rrweb-snapshot": "^2.0.0-alpha.19"
|
|
95
|
+
}
|
|
96
|
+
}
|