@sentry/rrweb-player 2.43.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/LICENSE +42 -0
- package/README.md +314 -0
- package/dist/events.js +3 -0
- package/dist/global.css +12 -0
- package/dist/rrweb-player.cjs +10974 -0
- package/dist/rrweb-player.cjs.map +1 -0
- package/dist/rrweb-player.d.cts +45 -0
- package/dist/rrweb-player.d.ts +45 -0
- package/dist/rrweb-player.js +10974 -0
- package/dist/rrweb-player.js.map +1 -0
- package/dist/rrweb-player.umd.cjs +10912 -0
- package/dist/rrweb-player.umd.cjs.map +7 -0
- package/dist/rrweb-player.umd.min.cjs +70 -0
- package/dist/rrweb-player.umd.min.cjs.map +7 -0
- package/dist/style.css +256 -0
- package/dist/style.min.css +2 -0
- package/dist/style.min.css.map +7 -0
- package/package.json +71 -0
package/dist/style.css
ADDED
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
|
|
2
|
+
.switch.svelte-184lr04 {
|
|
3
|
+
height: 1em;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.switch.disabled.svelte-184lr04 {
|
|
9
|
+
opacity: 0.5;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.label.svelte-184lr04 {
|
|
13
|
+
margin: 0 8px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.switch.svelte-184lr04 input[type='checkbox']:where(.svelte-184lr04) {
|
|
17
|
+
position: absolute;
|
|
18
|
+
opacity: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.switch.svelte-184lr04 label:where(.svelte-184lr04) {
|
|
22
|
+
width: 2em;
|
|
23
|
+
height: 1em;
|
|
24
|
+
position: relative;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
display: block;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.switch.disabled.svelte-184lr04 label:where(.svelte-184lr04) {
|
|
30
|
+
cursor: not-allowed;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.switch.svelte-184lr04 label:where(.svelte-184lr04):before {
|
|
34
|
+
content: '';
|
|
35
|
+
position: absolute;
|
|
36
|
+
width: 2em;
|
|
37
|
+
height: 1em;
|
|
38
|
+
left: 0.1em;
|
|
39
|
+
transition: background 0.1s ease;
|
|
40
|
+
background: rgba(73, 80, 246, 0.5);
|
|
41
|
+
border-radius: 50px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.switch.svelte-184lr04 label:where(.svelte-184lr04):after {
|
|
45
|
+
content: '';
|
|
46
|
+
position: absolute;
|
|
47
|
+
width: 1em;
|
|
48
|
+
height: 1em;
|
|
49
|
+
border-radius: 50px;
|
|
50
|
+
left: 0;
|
|
51
|
+
transition: all 0.2s ease;
|
|
52
|
+
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
|
|
53
|
+
background: #fcfff4;
|
|
54
|
+
animation: switch-off 0.2s ease-out;
|
|
55
|
+
z-index: 2;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.switch.svelte-184lr04 input[type='checkbox']:where(.svelte-184lr04):checked + label:where(.svelte-184lr04):before {
|
|
59
|
+
background: rgb(73, 80, 246);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.switch.svelte-184lr04 input[type='checkbox']:where(.svelte-184lr04):checked + label:where(.svelte-184lr04):after {
|
|
63
|
+
animation: switch-on 0.2s ease-out;
|
|
64
|
+
left: 1.1em;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.rr-controller.svelte-14v7dbr {
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 80px;
|
|
70
|
+
background: #fff;
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
justify-content: space-around;
|
|
74
|
+
align-items: center;
|
|
75
|
+
border-radius: 0 0 5px 5px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.rr-timeline.svelte-14v7dbr {
|
|
79
|
+
width: 80%;
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.rr-timeline__time.svelte-14v7dbr {
|
|
85
|
+
display: inline-block;
|
|
86
|
+
width: 100px;
|
|
87
|
+
text-align: center;
|
|
88
|
+
color: #11103e;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.rr-progress.svelte-14v7dbr {
|
|
92
|
+
flex: 1;
|
|
93
|
+
height: 12px;
|
|
94
|
+
background: #eee;
|
|
95
|
+
position: relative;
|
|
96
|
+
border-radius: 3px;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
border-top: solid 4px #fff;
|
|
100
|
+
border-bottom: solid 4px #fff;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.rr-progress.disabled.svelte-14v7dbr {
|
|
104
|
+
cursor: not-allowed;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.rr-progress__step.svelte-14v7dbr {
|
|
108
|
+
height: 100%;
|
|
109
|
+
position: absolute;
|
|
110
|
+
left: 0;
|
|
111
|
+
top: 0;
|
|
112
|
+
background: #e0e1fe;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.rr-progress__handler.svelte-14v7dbr {
|
|
116
|
+
width: 20px;
|
|
117
|
+
height: 20px;
|
|
118
|
+
border-radius: 10px;
|
|
119
|
+
position: absolute;
|
|
120
|
+
top: 2px;
|
|
121
|
+
transform: translate(-50%, -50%);
|
|
122
|
+
background: rgb(73, 80, 246);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.rr-controller__btns.svelte-14v7dbr {
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
font-size: 13px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.rr-controller__btns.svelte-14v7dbr button:where(.svelte-14v7dbr) {
|
|
133
|
+
width: 32px;
|
|
134
|
+
height: 32px;
|
|
135
|
+
display: flex;
|
|
136
|
+
padding: 0;
|
|
137
|
+
align-items: center;
|
|
138
|
+
justify-content: center;
|
|
139
|
+
background: none;
|
|
140
|
+
border: none;
|
|
141
|
+
border-radius: 50%;
|
|
142
|
+
cursor: pointer;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.rr-controller__btns.svelte-14v7dbr button:where(.svelte-14v7dbr):active {
|
|
146
|
+
background: #e0e1fe;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.rr-controller__btns.svelte-14v7dbr button.active:where(.svelte-14v7dbr) {
|
|
150
|
+
color: #fff;
|
|
151
|
+
background: rgb(73, 80, 246);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.rr-controller__btns.svelte-14v7dbr button:where(.svelte-14v7dbr):disabled {
|
|
155
|
+
cursor: not-allowed;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* :global {*/
|
|
159
|
+
.replayer-wrapper {
|
|
160
|
+
position: relative;
|
|
161
|
+
}
|
|
162
|
+
.replayer-mouse {
|
|
163
|
+
position: absolute;
|
|
164
|
+
width: 20px;
|
|
165
|
+
height: 20px;
|
|
166
|
+
transition: left 0.05s linear, top 0.05s linear;
|
|
167
|
+
background-size: contain;
|
|
168
|
+
background-position: center center;
|
|
169
|
+
background-repeat: no-repeat;
|
|
170
|
+
background-image: url('data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg==');
|
|
171
|
+
border-color: transparent; /* otherwise we transition from black when .touch-device class is added */
|
|
172
|
+
}
|
|
173
|
+
.replayer-mouse::after {
|
|
174
|
+
content: '';
|
|
175
|
+
display: inline-block;
|
|
176
|
+
width: 20px;
|
|
177
|
+
height: 20px;
|
|
178
|
+
background: rgb(73, 80, 246);
|
|
179
|
+
border-radius: 100%;
|
|
180
|
+
transform: translate(-50%, -50%);
|
|
181
|
+
opacity: 0.3;
|
|
182
|
+
}
|
|
183
|
+
.replayer-mouse.active::after {
|
|
184
|
+
animation: click 0.2s ease-in-out 1;
|
|
185
|
+
}
|
|
186
|
+
.replayer-mouse.touch-device {
|
|
187
|
+
background-image: none; /* there's no passive cursor on touch-only screens */
|
|
188
|
+
width: 70px;
|
|
189
|
+
height: 70px;
|
|
190
|
+
border-width: 4px;
|
|
191
|
+
border-style: solid;
|
|
192
|
+
border-radius: 100%;
|
|
193
|
+
margin-left: -37px;
|
|
194
|
+
margin-top: -37px;
|
|
195
|
+
border-color: rgba(73, 80, 246, 0);
|
|
196
|
+
transition: left 0s linear, top 0s linear, border-color 0.2s ease-in-out;
|
|
197
|
+
}
|
|
198
|
+
.replayer-mouse.touch-device.touch-active {
|
|
199
|
+
border-color: rgba(73, 80, 246, 1);
|
|
200
|
+
transition: left 0.25s linear, top 0.25s linear, border-color 0.2s ease-in-out;
|
|
201
|
+
}
|
|
202
|
+
.replayer-mouse.touch-device::after {
|
|
203
|
+
opacity: 0; /* there's no passive cursor on touch-only screens */
|
|
204
|
+
}
|
|
205
|
+
.replayer-mouse.touch-device.active::after {
|
|
206
|
+
animation: touch-click 0.2s ease-in-out 1;
|
|
207
|
+
}
|
|
208
|
+
.replayer-mouse-tail {
|
|
209
|
+
position: absolute;
|
|
210
|
+
pointer-events: none;
|
|
211
|
+
}
|
|
212
|
+
@keyframes click {
|
|
213
|
+
0% {
|
|
214
|
+
opacity: 0.3;
|
|
215
|
+
width: 20px;
|
|
216
|
+
height: 20px;
|
|
217
|
+
}
|
|
218
|
+
50% {
|
|
219
|
+
opacity: 0.5;
|
|
220
|
+
width: 10px;
|
|
221
|
+
height: 10px;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
@keyframes touch-click {
|
|
225
|
+
0% {
|
|
226
|
+
opacity: 0;
|
|
227
|
+
width: 20px;
|
|
228
|
+
height: 20px;
|
|
229
|
+
}
|
|
230
|
+
50% {
|
|
231
|
+
opacity: 0.5;
|
|
232
|
+
width: 10px;
|
|
233
|
+
height: 10px;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
.rr-player {
|
|
237
|
+
position: relative;
|
|
238
|
+
background: white;
|
|
239
|
+
float: left;
|
|
240
|
+
border-radius: 5px;
|
|
241
|
+
box-shadow: 0 24px 48px rgba(17, 16, 62, 0.12);
|
|
242
|
+
}
|
|
243
|
+
.rr-player__frame {
|
|
244
|
+
overflow: hidden;
|
|
245
|
+
}
|
|
246
|
+
.replayer-wrapper {
|
|
247
|
+
float: left;
|
|
248
|
+
clear: both;
|
|
249
|
+
transform-origin: top left;
|
|
250
|
+
left: 50%;
|
|
251
|
+
top: 50%;
|
|
252
|
+
}
|
|
253
|
+
.replayer-wrapper > iframe {
|
|
254
|
+
border: none;
|
|
255
|
+
}
|
|
256
|
+
/*}*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.switch.svelte-184lr04{height:1em;display:flex;align-items:center}.switch.disabled.svelte-184lr04{opacity:.5}.label.svelte-184lr04{margin:0 8px}.switch.svelte-184lr04 input[type=checkbox]:where(.svelte-184lr04){position:absolute;opacity:0}.switch.svelte-184lr04 label:where(.svelte-184lr04){width:2em;height:1em;position:relative;cursor:pointer;display:block}.switch.disabled.svelte-184lr04 label:where(.svelte-184lr04){cursor:not-allowed}.switch.svelte-184lr04 label:where(.svelte-184lr04):before{content:"";position:absolute;width:2em;height:1em;left:.1em;transition:background .1s ease;background:#4950f680;border-radius:50px}.switch.svelte-184lr04 label:where(.svelte-184lr04):after{content:"";position:absolute;width:1em;height:1em;border-radius:50px;left:0;transition:all .2s ease;box-shadow:0 2px 5px #0000004d;background:#fcfff4;animation:switch-off .2s ease-out;z-index:2}.switch.svelte-184lr04 input[type=checkbox]:where(.svelte-184lr04):checked+label:where(.svelte-184lr04):before{background:#4950f6}.switch.svelte-184lr04 input[type=checkbox]:where(.svelte-184lr04):checked+label:where(.svelte-184lr04):after{animation:switch-on .2s ease-out;left:1.1em}.rr-controller.svelte-14v7dbr{width:100%;height:80px;background:#fff;display:flex;flex-direction:column;justify-content:space-around;align-items:center;border-radius:0 0 5px 5px}.rr-timeline.svelte-14v7dbr{width:80%;display:flex;align-items:center}.rr-timeline__time.svelte-14v7dbr{display:inline-block;width:100px;text-align:center;color:#11103e}.rr-progress.svelte-14v7dbr{flex:1;height:12px;background:#eee;position:relative;border-radius:3px;cursor:pointer;box-sizing:border-box;border-top:solid 4px #fff;border-bottom:solid 4px #fff}.rr-progress.disabled.svelte-14v7dbr{cursor:not-allowed}.rr-progress__step.svelte-14v7dbr{height:100%;position:absolute;left:0;top:0;background:#e0e1fe}.rr-progress__handler.svelte-14v7dbr{width:20px;height:20px;border-radius:10px;position:absolute;top:2px;transform:translate(-50%,-50%);background:#4950f6}.rr-controller__btns.svelte-14v7dbr{display:flex;align-items:center;justify-content:center;font-size:13px}.rr-controller__btns.svelte-14v7dbr button:where(.svelte-14v7dbr){width:32px;height:32px;display:flex;padding:0;align-items:center;justify-content:center;background:none;border:none;border-radius:50%;cursor:pointer}.rr-controller__btns.svelte-14v7dbr button:where(.svelte-14v7dbr):active{background:#e0e1fe}.rr-controller__btns.svelte-14v7dbr button.active:where(.svelte-14v7dbr){color:#fff;background:#4950f6}.rr-controller__btns.svelte-14v7dbr button:where(.svelte-14v7dbr):disabled{cursor:not-allowed}.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}}.rr-player{position:relative;background:#fff;float:left;border-radius:5px;box-shadow:0 24px 48px #11103e1f}.rr-player__frame{overflow:hidden}.replayer-wrapper{float:left;clear:both;transform-origin:top left;left:50%;top:50%}.replayer-wrapper>iframe{border:none}
|
|
2
|
+
/*# sourceMappingURL=style.min.css.map */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["style.css"],
|
|
4
|
+
"sourcesContent": ["\n .switch.svelte-184lr04 {\n height: 1em;\n display: flex;\n align-items: center;\n }\n\n .switch.disabled.svelte-184lr04 {\n opacity: 0.5;\n }\n\n .label.svelte-184lr04 {\n margin: 0 8px;\n }\n\n .switch.svelte-184lr04 input[type='checkbox']:where(.svelte-184lr04) {\n position: absolute;\n opacity: 0;\n }\n\n .switch.svelte-184lr04 label:where(.svelte-184lr04) {\n width: 2em;\n height: 1em;\n position: relative;\n cursor: pointer;\n display: block;\n }\n\n .switch.disabled.svelte-184lr04 label:where(.svelte-184lr04) {\n cursor: not-allowed;\n }\n\n .switch.svelte-184lr04 label:where(.svelte-184lr04):before {\n content: '';\n position: absolute;\n width: 2em;\n height: 1em;\n left: 0.1em;\n transition: background 0.1s ease;\n background: rgba(73, 80, 246, 0.5);\n border-radius: 50px;\n }\n\n .switch.svelte-184lr04 label:where(.svelte-184lr04):after {\n content: '';\n position: absolute;\n width: 1em;\n height: 1em;\n border-radius: 50px;\n left: 0;\n transition: all 0.2s ease;\n box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);\n background: #fcfff4;\n animation: switch-off 0.2s ease-out;\n z-index: 2;\n }\n\n .switch.svelte-184lr04 input[type='checkbox']:where(.svelte-184lr04):checked + label:where(.svelte-184lr04):before {\n background: rgb(73, 80, 246);\n }\n\n .switch.svelte-184lr04 input[type='checkbox']:where(.svelte-184lr04):checked + label:where(.svelte-184lr04):after {\n animation: switch-on 0.2s ease-out;\n left: 1.1em;\n }\n\n .rr-controller.svelte-14v7dbr {\n width: 100%;\n height: 80px;\n background: #fff;\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n border-radius: 0 0 5px 5px;\n }\n\n .rr-timeline.svelte-14v7dbr {\n width: 80%;\n display: flex;\n align-items: center;\n }\n\n .rr-timeline__time.svelte-14v7dbr {\n display: inline-block;\n width: 100px;\n text-align: center;\n color: #11103e;\n }\n\n .rr-progress.svelte-14v7dbr {\n flex: 1;\n height: 12px;\n background: #eee;\n position: relative;\n border-radius: 3px;\n cursor: pointer;\n box-sizing: border-box;\n border-top: solid 4px #fff;\n border-bottom: solid 4px #fff;\n }\n\n .rr-progress.disabled.svelte-14v7dbr {\n cursor: not-allowed;\n }\n\n .rr-progress__step.svelte-14v7dbr {\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n background: #e0e1fe;\n }\n\n .rr-progress__handler.svelte-14v7dbr {\n width: 20px;\n height: 20px;\n border-radius: 10px;\n position: absolute;\n top: 2px;\n transform: translate(-50%, -50%);\n background: rgb(73, 80, 246);\n }\n\n .rr-controller__btns.svelte-14v7dbr {\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 13px;\n }\n\n .rr-controller__btns.svelte-14v7dbr button:where(.svelte-14v7dbr) {\n width: 32px;\n height: 32px;\n display: flex;\n padding: 0;\n align-items: center;\n justify-content: center;\n background: none;\n border: none;\n border-radius: 50%;\n cursor: pointer;\n }\n\n .rr-controller__btns.svelte-14v7dbr button:where(.svelte-14v7dbr):active {\n background: #e0e1fe;\n }\n\n .rr-controller__btns.svelte-14v7dbr button.active:where(.svelte-14v7dbr) {\n color: #fff;\n background: rgb(73, 80, 246);\n }\n\n .rr-controller__btns.svelte-14v7dbr button:where(.svelte-14v7dbr):disabled {\n cursor: not-allowed;\n }\n\n /* :global {*/\n .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 @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 @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 .rr-player {\n position: relative;\n background: white;\n float: left;\n border-radius: 5px;\n box-shadow: 0 24px 48px rgba(17, 16, 62, 0.12);\n }\n .rr-player__frame {\n overflow: hidden;\n }\n .replayer-wrapper {\n float: left;\n clear: both;\n transform-origin: top left;\n left: 50%;\n top: 50%;\n }\n .replayer-wrapper > iframe {\n border: none;\n }\n /*}*/\n"],
|
|
5
|
+
"mappings": "AACE,CAAC,MAAM,CAAC,eACN,OAAQ,IACR,QAAS,KACT,YAAa,MACf,CAEA,CANC,MAMM,CAAC,QAAQ,CANR,eAON,QAAS,EACX,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AM,IACN,IAAK,GACP,CACA,CA9FC,gBA8FiB,CAAE,OAClB,OAAQ,IACV",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sentry/rrweb-player",
|
|
3
|
+
"version": "2.43.2",
|
|
4
|
+
"devDependencies": {
|
|
5
|
+
"@sentry/rrweb-types": "2.43.2",
|
|
6
|
+
"@sveltejs/package": "^2.0.0",
|
|
7
|
+
"@sveltejs/vite-plugin-svelte": "^6.0.0",
|
|
8
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
9
|
+
"@typescript-eslint/parser": "^7.0.0",
|
|
10
|
+
"eslint-plugin-svelte": "^2.37.0",
|
|
11
|
+
"prettier-plugin-svelte": "^3.1.2",
|
|
12
|
+
"svelte": "^5.0.0",
|
|
13
|
+
"svelte-check": "^4.0.0",
|
|
14
|
+
"svelte2tsx": "^0.7.6",
|
|
15
|
+
"tslib": "^2.0.0",
|
|
16
|
+
"vite": "^6.4.2"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@sentry/rrweb": "2.43.2",
|
|
20
|
+
"@sentry/rrweb-packer": "2.43.2",
|
|
21
|
+
"@tsconfig/svelte": "^1.0.0"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"dev": "vite build --watch",
|
|
25
|
+
"build": "vite build",
|
|
26
|
+
"build:tarball": "npm pack",
|
|
27
|
+
"start": "vite",
|
|
28
|
+
"check-types": "svelte-check --tsconfig ./tsconfig.json",
|
|
29
|
+
"prepack": "yarn run build",
|
|
30
|
+
"lint": "yarn eslint src/**/*.ts"
|
|
31
|
+
},
|
|
32
|
+
"description": "rrweb's replayer UI",
|
|
33
|
+
"main": "./dist/rrweb-player.umd.cjs",
|
|
34
|
+
"module": "./dist/rrweb-player.js",
|
|
35
|
+
"unpkg": "./dist/rrweb-player.umd.cjs",
|
|
36
|
+
"typings": "dist/rrweb-player.d.ts",
|
|
37
|
+
"exports": {
|
|
38
|
+
".": {
|
|
39
|
+
"import": {
|
|
40
|
+
"types": "./dist/rrweb-player.d.ts",
|
|
41
|
+
"default": "./dist/rrweb-player.js"
|
|
42
|
+
},
|
|
43
|
+
"require": {
|
|
44
|
+
"types": "./dist/rrweb-player.d.cts",
|
|
45
|
+
"default": "./dist/rrweb-player.cjs"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"./dist/style.css": "./dist/style.css"
|
|
49
|
+
},
|
|
50
|
+
"files": [
|
|
51
|
+
"dist",
|
|
52
|
+
"package.json"
|
|
53
|
+
],
|
|
54
|
+
"type": "module",
|
|
55
|
+
"repository": {
|
|
56
|
+
"type": "git",
|
|
57
|
+
"url": "git+https://github.com/rrweb-io/rrweb.git"
|
|
58
|
+
},
|
|
59
|
+
"keywords": [
|
|
60
|
+
"rrweb"
|
|
61
|
+
],
|
|
62
|
+
"author": "yanzhen@smartx.com",
|
|
63
|
+
"license": "MIT",
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/rrweb-io/rrweb/issues"
|
|
66
|
+
},
|
|
67
|
+
"homepage": "https://github.com/rrweb-io/rrweb#readme",
|
|
68
|
+
"publishConfig": {
|
|
69
|
+
"access": "public"
|
|
70
|
+
}
|
|
71
|
+
}
|