@qq1948037137/adminsmart-ui 0.1.21 → 0.1.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qq1948037137/adminsmart-ui",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "AdminSmart React components built on Ant Design",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -67,7 +67,13 @@
67
67
  "release": "node scripts/release.mjs --publish"
68
68
  },
69
69
  "dependencies": {
70
- "dayjs": "1.11.23"
70
+ "@rrweb/replay": "2.0.1",
71
+ "@rrweb/types": "2.0.1",
72
+ "@rrweb/utils": "2.0.1",
73
+ "dayjs": "1.11.23",
74
+ "rrdom": "2.0.1",
75
+ "rrweb": "2.0.1",
76
+ "rrweb-snapshot": "2.0.1"
71
77
  },
72
78
  "peerDependencies": {
73
79
  "@ant-design/icons": "^6.3.4",
@@ -99,7 +105,7 @@
99
105
  "provenance": false
100
106
  },
101
107
  "adminsmartUiSource": {
102
- "sha256": "882a5f681684072f47eb7ab5e532dfee64fec77a1edaeb6eb3fcdc5d9dc8ef2a",
103
- "gitCommit": "5891d9aa18a30f37c98115bcb9fe8be76de6ef43"
108
+ "sha256": "d2de4b3e3ed52437ba45bf3ccad9528e485f7194c76ef4ba0d83c8bdf77c1a5f",
109
+ "gitCommit": "635ff48449aa0fe31b0498992625baab7a005bac"
104
110
  }
105
111
  }
@@ -141,3 +141,134 @@
141
141
  max-width: 100%;
142
142
  vertical-align: bottom;
143
143
  }
144
+
145
+ /* 时间回放:独立舞台、紧凑时间轴与控制栏,颜色来自组件注入的 Ant Token。 */
146
+ .adminsmart-session-replay {
147
+ display: flex;
148
+ min-width: 0;
149
+ flex-direction: column;
150
+ overflow: hidden;
151
+ border: 1px solid var(--adminsmart-replay-border);
152
+ border-radius: var(--adminsmart-replay-radius);
153
+ color: var(--adminsmart-replay-text);
154
+ background: var(--adminsmart-replay-surface);
155
+ }
156
+
157
+ .adminsmart-session-replay__stage {
158
+ position: relative;
159
+ height: var(--adminsmart-replay-stage-height, min(58vh, 520px));
160
+ min-height: 240px;
161
+ overflow: hidden;
162
+ background: var(--adminsmart-replay-bg);
163
+ }
164
+
165
+ .adminsmart-session-replay__mount {
166
+ width: 100%;
167
+ height: 100%;
168
+ }
169
+
170
+ .adminsmart-session-replay__placeholder {
171
+ position: absolute;
172
+ inset: 0;
173
+ display: grid;
174
+ padding: 24px;
175
+ place-content: center;
176
+ background: var(--adminsmart-replay-bg);
177
+ }
178
+
179
+ .adminsmart-session-replay__controls {
180
+ display: flex;
181
+ min-width: 0;
182
+ flex: 0 0 auto;
183
+ flex-direction: column;
184
+ gap: 12px;
185
+ padding: 16px 20px;
186
+ border-top: 1px solid var(--adminsmart-replay-border);
187
+ background: var(--adminsmart-replay-surface);
188
+ }
189
+
190
+ .adminsmart-session-replay__summary,
191
+ .adminsmart-session-replay__toolbar,
192
+ .adminsmart-session-replay__transport,
193
+ .adminsmart-session-replay__options {
194
+ display: flex;
195
+ align-items: center;
196
+ gap: 8px;
197
+ flex-wrap: wrap;
198
+ }
199
+
200
+ .adminsmart-session-replay__toolbar {
201
+ justify-content: space-between;
202
+ gap: 12px;
203
+ }
204
+
205
+ .adminsmart-session-replay__status {
206
+ margin: 0;
207
+ }
208
+
209
+ .adminsmart-session-replay__clock {
210
+ font-variant-numeric: tabular-nums;
211
+ white-space: nowrap;
212
+ }
213
+
214
+ .adminsmart-session-replay__clock > span {
215
+ color: var(--adminsmart-replay-muted);
216
+ }
217
+
218
+ .adminsmart-session-replay__extra {
219
+ min-width: 0;
220
+ margin-left: auto;
221
+ color: var(--adminsmart-replay-muted);
222
+ }
223
+
224
+ .adminsmart-session-replay__timeline {
225
+ position: relative;
226
+ padding: 0 4px 8px;
227
+ }
228
+
229
+ .adminsmart-session-replay__timeline .ant-slider {
230
+ margin: 0 0 6px;
231
+ }
232
+
233
+ .adminsmart-session-replay__markers {
234
+ position: relative;
235
+ height: 6px;
236
+ margin: 0 4px;
237
+ }
238
+
239
+ .adminsmart-session-replay__marker {
240
+ position: absolute;
241
+ width: 10px;
242
+ height: 10px;
243
+ padding: 0;
244
+ transform: translateX(-50%);
245
+ border: 2px solid var(--adminsmart-replay-surface);
246
+ border-radius: 50%;
247
+ background: var(--adminsmart-replay-primary);
248
+ cursor: pointer;
249
+ }
250
+
251
+ .adminsmart-session-replay__marker[data-tone='warning'] { background: var(--adminsmart-replay-warning); }
252
+ .adminsmart-session-replay__marker[data-tone='error'] { background: var(--adminsmart-replay-error); }
253
+ .adminsmart-session-replay__marker:disabled { opacity: 0.45; cursor: default; }
254
+ .adminsmart-session-replay__marker:focus-visible { outline: 2px solid var(--adminsmart-replay-primary); outline-offset: 2px; }
255
+ .adminsmart-session-replay__options .ant-select { min-width: 68px; }
256
+
257
+ /* 组件全屏保留控制栏;舞台只占真实剩余空间,避免退出按钮落到屏幕外。 */
258
+ .adminsmart-session-replay:fullscreen {
259
+ width: 100%;
260
+ height: 100%;
261
+ border: 0;
262
+ border-radius: 0;
263
+ }
264
+
265
+ .adminsmart-session-replay:fullscreen .adminsmart-session-replay__stage {
266
+ height: auto;
267
+ min-height: 0;
268
+ flex: 1;
269
+ }
270
+
271
+ @media (max-width: 480px) {
272
+ .adminsmart-session-replay__controls { padding: 12px; }
273
+ .adminsmart-session-replay__extra { width: 100%; margin-left: 0; }
274
+ }