makethisbetter 1.5.4 → 1.7.0
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 +10 -10
- package/dist/annotate/draw-note-bar.d.ts +29 -0
- package/dist/annotate/draw-note-bar.d.ts.map +1 -0
- package/dist/annotate/draw-note-bar.test.d.ts +2 -0
- package/dist/annotate/draw-note-bar.test.d.ts.map +1 -0
- package/dist/annotate/draw.d.ts +15 -9
- package/dist/annotate/draw.d.ts.map +1 -1
- package/dist/annotate/highlighter.d.ts +2 -0
- package/dist/annotate/highlighter.d.ts.map +1 -1
- package/dist/annotate/session.d.ts +16 -2
- package/dist/annotate/session.d.ts.map +1 -1
- package/dist/api/client.d.ts +8 -5
- package/dist/api/client.d.ts.map +1 -1
- package/dist/context/breadcrumbs.d.ts +26 -0
- package/dist/context/breadcrumbs.d.ts.map +1 -0
- package/dist/context/breadcrumbs.test.d.ts +2 -0
- package/dist/context/breadcrumbs.test.d.ts.map +1 -0
- package/dist/context/dom-utils.d.ts +3 -0
- package/dist/context/dom-utils.d.ts.map +1 -0
- package/dist/context/frustration.d.ts +0 -1
- package/dist/context/frustration.d.ts.map +1 -1
- package/dist/i18n/de.d.ts +24 -0
- package/dist/i18n/de.d.ts.map +1 -1
- package/dist/i18n/en.d.ts +24 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/es.d.ts +24 -0
- package/dist/i18n/es.d.ts.map +1 -1
- package/dist/i18n/fr.d.ts +24 -0
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/ja.d.ts +24 -0
- package/dist/i18n/ja.d.ts.map +1 -1
- package/dist/i18n/ko.d.ts +24 -0
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/zh-CN.d.ts +24 -0
- package/dist/i18n/zh-CN.d.ts.map +1 -1
- package/dist/makethisbetter.cjs +50 -25
- package/dist/makethisbetter.cjs.map +1 -1
- package/dist/makethisbetter.esm.js +1132 -590
- package/dist/makethisbetter.esm.js.map +1 -1
- package/dist/makethisbetter.js +49 -24
- package/dist/makethisbetter.js.map +1 -1
- package/dist/popup/clarify.d.ts +28 -7
- package/dist/popup/clarify.d.ts.map +1 -1
- package/dist/popup/comment.d.ts +1 -0
- package/dist/popup/comment.d.ts.map +1 -1
- package/dist/record/replay.d.ts +7 -0
- package/dist/record/replay.d.ts.map +1 -0
- package/dist/screenshot/capture.d.ts +1 -0
- package/dist/screenshot/capture.d.ts.map +1 -1
- package/dist/styles.d.ts +1 -0
- package/dist/styles.d.ts.map +1 -1
- package/dist/types.d.ts +13 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/widget/controller.d.ts +18 -0
- package/dist/widget/controller.d.ts.map +1 -1
- package/dist/widget/dim-overlay.d.ts +8 -0
- package/dist/widget/dim-overlay.d.ts.map +1 -0
- package/dist/widget/dim-overlay.test.d.ts +2 -0
- package/dist/widget/dim-overlay.test.d.ts.map +1 -0
- package/dist/widget/payload.d.ts +2 -2
- package/dist/widget/payload.d.ts.map +1 -1
- package/dist/widget/tab.d.ts +3 -0
- package/dist/widget/tab.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/annotate/draw-note-bar.test.ts +90 -0
- package/src/annotate/draw-note-bar.ts +105 -0
- package/src/annotate/draw.test.ts +74 -84
- package/src/annotate/draw.ts +108 -65
- package/src/annotate/highlighter.test.ts +24 -1
- package/src/annotate/highlighter.ts +16 -2
- package/src/annotate/session.test.ts +112 -96
- package/src/annotate/session.ts +54 -10
- package/src/api/client.test.ts +69 -30
- package/src/api/client.ts +68 -20
- package/src/context/breadcrumbs.test.ts +154 -0
- package/src/context/breadcrumbs.ts +157 -0
- package/src/context/dom-utils.ts +16 -0
- package/src/context/frustration.ts +4 -8
- package/src/i18n/de.ts +34 -11
- package/src/i18n/en.ts +33 -10
- package/src/i18n/es.ts +34 -11
- package/src/i18n/fr.ts +33 -10
- package/src/i18n/index.test.ts +12 -0
- package/src/i18n/ja.ts +32 -9
- package/src/i18n/ko.ts +34 -11
- package/src/i18n/zh-CN.ts +35 -12
- package/src/popup/clarify.test.ts +132 -40
- package/src/popup/clarify.ts +154 -42
- package/src/popup/comment.test.ts +57 -0
- package/src/popup/comment.ts +15 -9
- package/src/record/replay.ts +115 -0
- package/src/record/session.test.ts +8 -1
- package/src/record/session.ts +1 -1
- package/src/screenshot/capture.test.ts +51 -23
- package/src/screenshot/capture.ts +101 -55
- package/src/styles/widget.css +347 -1
- package/src/styles.ts +2 -0
- package/src/types.ts +15 -0
- package/src/widget/controller.test.ts +476 -65
- package/src/widget/controller.ts +222 -40
- package/src/widget/dim-overlay.test.ts +27 -0
- package/src/widget/dim-overlay.ts +20 -0
- package/src/widget/payload.test.ts +26 -1
- package/src/widget/payload.ts +3 -1
- package/src/widget/pet.test.ts +2 -2
- package/src/widget/tab.test.ts +15 -0
- package/src/widget/tab.ts +11 -3
package/src/styles/widget.css
CHANGED
|
@@ -206,6 +206,24 @@
|
|
|
206
206
|
background: rgba(255, 255, 255, 0.28);
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
@media (max-width: 480px) {
|
|
210
|
+
.mtb-toolbar {
|
|
211
|
+
max-width: calc(100vw - 16px);
|
|
212
|
+
gap: 6px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.mtb-toolbar-hint,
|
|
216
|
+
.mtb-toolbar-sep {
|
|
217
|
+
display: none;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.mtb-toolbar-mode-btn,
|
|
221
|
+
.mtb-exit-btn {
|
|
222
|
+
padding-right: 10px;
|
|
223
|
+
padding-left: 10px;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
209
227
|
/* ===== Overlay ===== */
|
|
210
228
|
.mtb-overlay {
|
|
211
229
|
position: fixed;
|
|
@@ -236,7 +254,10 @@
|
|
|
236
254
|
position: fixed;
|
|
237
255
|
z-index: 2147483642;
|
|
238
256
|
pointer-events: none;
|
|
239
|
-
transform:
|
|
257
|
+
transform: translate(-50%, -100%);
|
|
258
|
+
max-width: 240px;
|
|
259
|
+
overflow: hidden;
|
|
260
|
+
text-overflow: ellipsis;
|
|
240
261
|
background: #064e3b;
|
|
241
262
|
color: #fff;
|
|
242
263
|
padding: 4px 10px;
|
|
@@ -245,6 +266,11 @@
|
|
|
245
266
|
font-weight: 500;
|
|
246
267
|
white-space: nowrap;
|
|
247
268
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
|
|
269
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.mtb-highlight-tooltip.below {
|
|
273
|
+
transform: translate(-50%, 0);
|
|
248
274
|
}
|
|
249
275
|
|
|
250
276
|
.mtb-highlight-tooltip::after {
|
|
@@ -257,6 +283,13 @@
|
|
|
257
283
|
border-top-color: #064e3b;
|
|
258
284
|
}
|
|
259
285
|
|
|
286
|
+
.mtb-highlight-tooltip.below::after {
|
|
287
|
+
top: auto;
|
|
288
|
+
bottom: 100%;
|
|
289
|
+
border-top-color: transparent;
|
|
290
|
+
border-bottom-color: #064e3b;
|
|
291
|
+
}
|
|
292
|
+
|
|
260
293
|
/* ===== Draw SVG ===== */
|
|
261
294
|
.mtb-draw-svg {
|
|
262
295
|
position: fixed;
|
|
@@ -298,6 +331,8 @@
|
|
|
298
331
|
.mtb-popup {
|
|
299
332
|
position: fixed;
|
|
300
333
|
z-index: 2147483645;
|
|
334
|
+
display: flex;
|
|
335
|
+
flex-direction: column;
|
|
301
336
|
width: 320px;
|
|
302
337
|
background: #fff;
|
|
303
338
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
@@ -314,6 +349,7 @@
|
|
|
314
349
|
}
|
|
315
350
|
|
|
316
351
|
.mtb-popup-header {
|
|
352
|
+
flex-shrink: 0;
|
|
317
353
|
padding: 11px 13px 11px 14px;
|
|
318
354
|
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
|
|
319
355
|
display: flex;
|
|
@@ -359,7 +395,10 @@
|
|
|
359
395
|
}
|
|
360
396
|
|
|
361
397
|
.mtb-popup-body {
|
|
398
|
+
min-height: 0;
|
|
362
399
|
padding: 13px;
|
|
400
|
+
overflow-y: auto;
|
|
401
|
+
overscroll-behavior: contain;
|
|
363
402
|
}
|
|
364
403
|
|
|
365
404
|
.mtb-quick-options {
|
|
@@ -1117,6 +1156,7 @@
|
|
|
1117
1156
|
font-size: 12.5px;
|
|
1118
1157
|
font-weight: 550;
|
|
1119
1158
|
color: rgba(0, 0, 0, 0.55);
|
|
1159
|
+
white-space: nowrap;
|
|
1120
1160
|
transition: background 0.12s;
|
|
1121
1161
|
}
|
|
1122
1162
|
|
|
@@ -1151,6 +1191,14 @@
|
|
|
1151
1191
|
cursor: not-allowed;
|
|
1152
1192
|
}
|
|
1153
1193
|
|
|
1194
|
+
.mtb-clarify-error {
|
|
1195
|
+
margin-bottom: 8px;
|
|
1196
|
+
color: #dc2626;
|
|
1197
|
+
font-size: 11.5px;
|
|
1198
|
+
line-height: 1.4;
|
|
1199
|
+
text-align: center;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1154
1202
|
:host([data-mtb-theme="dark"]) .mtb-clarify {
|
|
1155
1203
|
background: #151719;
|
|
1156
1204
|
border-color: rgba(255, 255, 255, 0.12);
|
|
@@ -1248,3 +1296,301 @@
|
|
|
1248
1296
|
color: #f9fafb;
|
|
1249
1297
|
}
|
|
1250
1298
|
}
|
|
1299
|
+
|
|
1300
|
+
/* ===== Clickable dim (popup reset scrim) ===== */
|
|
1301
|
+
.mtb-dim-clickable {
|
|
1302
|
+
z-index: 2147483643;
|
|
1303
|
+
pointer-events: auto;
|
|
1304
|
+
cursor: default;
|
|
1305
|
+
background: rgba(0, 0, 0, 0.12);
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
/* ===== Draw note bar ===== */
|
|
1309
|
+
.mtb-draw-bar {
|
|
1310
|
+
position: fixed;
|
|
1311
|
+
bottom: 24px;
|
|
1312
|
+
left: 50%;
|
|
1313
|
+
transform: translateX(-50%);
|
|
1314
|
+
z-index: 2147483647;
|
|
1315
|
+
display: flex;
|
|
1316
|
+
align-items: center;
|
|
1317
|
+
gap: 8px;
|
|
1318
|
+
height: 46px;
|
|
1319
|
+
padding: 0 8px 0 12px;
|
|
1320
|
+
border-radius: 13px;
|
|
1321
|
+
background: #fff;
|
|
1322
|
+
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
1323
|
+
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
|
|
1324
|
+
animation: mtbBarIn 0.2s ease;
|
|
1325
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
.mtb-draw-input {
|
|
1329
|
+
width: 220px;
|
|
1330
|
+
height: 32px;
|
|
1331
|
+
padding: 0 10px;
|
|
1332
|
+
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
1333
|
+
border-radius: 8px;
|
|
1334
|
+
font-family: inherit;
|
|
1335
|
+
font-size: 13px;
|
|
1336
|
+
color: #191a1c;
|
|
1337
|
+
outline: none;
|
|
1338
|
+
background: #fafafa;
|
|
1339
|
+
transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
.mtb-draw-input:focus {
|
|
1343
|
+
border-color: #10b981;
|
|
1344
|
+
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
|
|
1345
|
+
background: #fff;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
.mtb-draw-input::placeholder {
|
|
1349
|
+
color: rgba(0, 0, 0, 0.34);
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
.mtb-draw-icon-btn {
|
|
1353
|
+
width: 30px;
|
|
1354
|
+
height: 30px;
|
|
1355
|
+
display: inline-flex;
|
|
1356
|
+
align-items: center;
|
|
1357
|
+
justify-content: center;
|
|
1358
|
+
border: none;
|
|
1359
|
+
border-radius: 8px;
|
|
1360
|
+
background: transparent;
|
|
1361
|
+
color: #374151;
|
|
1362
|
+
cursor: pointer;
|
|
1363
|
+
transition: background 0.12s, color 0.12s;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
.mtb-draw-icon-btn:hover:not(:disabled) {
|
|
1367
|
+
background: rgba(0, 0, 0, 0.06);
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
.mtb-draw-icon-btn:disabled {
|
|
1371
|
+
color: rgba(0, 0, 0, 0.22);
|
|
1372
|
+
cursor: default;
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
.mtb-draw-sep {
|
|
1376
|
+
width: 1px;
|
|
1377
|
+
height: 22px;
|
|
1378
|
+
background: rgba(0, 0, 0, 0.1);
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
.mtb-draw-cancel {
|
|
1382
|
+
height: 32px;
|
|
1383
|
+
padding: 0 12px;
|
|
1384
|
+
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
1385
|
+
border-radius: 8px;
|
|
1386
|
+
background: #fff;
|
|
1387
|
+
color: rgba(0, 0, 0, 0.55);
|
|
1388
|
+
cursor: pointer;
|
|
1389
|
+
font-family: inherit;
|
|
1390
|
+
font-size: 12.5px;
|
|
1391
|
+
font-weight: 550;
|
|
1392
|
+
transition: background 0.12s;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
.mtb-draw-cancel:hover {
|
|
1396
|
+
background: rgba(0, 0, 0, 0.04);
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
.mtb-draw-submit {
|
|
1400
|
+
height: 32px;
|
|
1401
|
+
padding: 0 14px;
|
|
1402
|
+
border: none;
|
|
1403
|
+
border-radius: 8px;
|
|
1404
|
+
background: #059669;
|
|
1405
|
+
color: #fff;
|
|
1406
|
+
cursor: pointer;
|
|
1407
|
+
font-family: inherit;
|
|
1408
|
+
font-size: 12.5px;
|
|
1409
|
+
font-weight: 600;
|
|
1410
|
+
transition: background 0.12s;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
.mtb-draw-submit:hover:not(:disabled) {
|
|
1414
|
+
background: #047857;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
.mtb-draw-submit:disabled {
|
|
1418
|
+
opacity: 0.6;
|
|
1419
|
+
cursor: default;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
.mtb-draw-error {
|
|
1423
|
+
position: absolute;
|
|
1424
|
+
bottom: 100%;
|
|
1425
|
+
left: 12px;
|
|
1426
|
+
margin-bottom: 6px;
|
|
1427
|
+
color: #dc2626;
|
|
1428
|
+
font-size: 11.5px;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
/* ===== Recording preview (comment popup) ===== */
|
|
1432
|
+
.mtb-record-preview {
|
|
1433
|
+
margin-bottom: 12px;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
.mtb-record-preview-stage {
|
|
1437
|
+
position: relative;
|
|
1438
|
+
width: 100%;
|
|
1439
|
+
height: 132px;
|
|
1440
|
+
border-radius: 10px;
|
|
1441
|
+
overflow: hidden;
|
|
1442
|
+
background: #0f172a;
|
|
1443
|
+
display: flex;
|
|
1444
|
+
align-items: center;
|
|
1445
|
+
justify-content: center;
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
.mtb-record-preview-stage.playing {
|
|
1449
|
+
align-items: flex-start;
|
|
1450
|
+
justify-content: flex-start;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
.mtb-record-preview-play {
|
|
1454
|
+
width: 44px;
|
|
1455
|
+
height: 44px;
|
|
1456
|
+
border-radius: 50%;
|
|
1457
|
+
border: none;
|
|
1458
|
+
background: rgba(255, 255, 255, 0.92);
|
|
1459
|
+
color: #059669;
|
|
1460
|
+
display: inline-flex;
|
|
1461
|
+
align-items: center;
|
|
1462
|
+
justify-content: center;
|
|
1463
|
+
cursor: pointer;
|
|
1464
|
+
transition: transform 0.12s, background 0.12s;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
.mtb-record-preview-play:hover:not(:disabled) {
|
|
1468
|
+
transform: scale(1.06);
|
|
1469
|
+
background: #fff;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
.mtb-record-preview-play:disabled {
|
|
1473
|
+
cursor: default;
|
|
1474
|
+
opacity: 0.6;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
.mtb-record-preview-badge {
|
|
1478
|
+
position: absolute;
|
|
1479
|
+
right: 8px;
|
|
1480
|
+
bottom: 8px;
|
|
1481
|
+
padding: 2px 7px;
|
|
1482
|
+
border-radius: 6px;
|
|
1483
|
+
background: rgba(0, 0, 0, 0.6);
|
|
1484
|
+
color: #fff;
|
|
1485
|
+
font-size: 11px;
|
|
1486
|
+
font-variant-numeric: tabular-nums;
|
|
1487
|
+
font-family: 'JetBrains Mono', 'SF Mono', monospace;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
.mtb-record-preview-fallback {
|
|
1491
|
+
color: rgba(255, 255, 255, 0.85);
|
|
1492
|
+
font-size: 12px;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
.mtb-record-preview-name {
|
|
1496
|
+
display: block;
|
|
1497
|
+
margin-top: 5px;
|
|
1498
|
+
font-size: 11px;
|
|
1499
|
+
color: rgba(0, 0, 0, 0.42);
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
/* ===== Clarify summary card ===== */
|
|
1503
|
+
.mtb-clarify-summary {
|
|
1504
|
+
align-self: stretch;
|
|
1505
|
+
border: 1px solid rgba(5, 150, 105, 0.28);
|
|
1506
|
+
background: rgba(5, 150, 105, 0.05);
|
|
1507
|
+
border-radius: 12px;
|
|
1508
|
+
padding: 11px 12px;
|
|
1509
|
+
display: flex;
|
|
1510
|
+
flex-direction: column;
|
|
1511
|
+
gap: 9px;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
.mtb-summary-head {
|
|
1515
|
+
display: flex;
|
|
1516
|
+
align-items: center;
|
|
1517
|
+
gap: 6px;
|
|
1518
|
+
color: #059669;
|
|
1519
|
+
font-size: 12.5px;
|
|
1520
|
+
font-weight: 650;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
.mtb-summary-section {
|
|
1524
|
+
display: flex;
|
|
1525
|
+
flex-direction: column;
|
|
1526
|
+
gap: 3px;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
.mtb-summary-label {
|
|
1530
|
+
font-size: 10px;
|
|
1531
|
+
font-weight: 600;
|
|
1532
|
+
text-transform: uppercase;
|
|
1533
|
+
letter-spacing: 0.04em;
|
|
1534
|
+
color: rgba(0, 0, 0, 0.4);
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
.mtb-summary-quote {
|
|
1538
|
+
font-size: 12.5px;
|
|
1539
|
+
color: #191a1c;
|
|
1540
|
+
line-height: 1.45;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
.mtb-summary-qa {
|
|
1544
|
+
display: flex;
|
|
1545
|
+
flex-direction: column;
|
|
1546
|
+
gap: 1px;
|
|
1547
|
+
font-size: 12px;
|
|
1548
|
+
line-height: 1.4;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
.mtb-summary-q {
|
|
1552
|
+
color: rgba(0, 0, 0, 0.5);
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
.mtb-summary-a {
|
|
1556
|
+
color: #191a1c;
|
|
1557
|
+
font-weight: 550;
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
.mtb-summary-ctx {
|
|
1561
|
+
display: flex;
|
|
1562
|
+
justify-content: space-between;
|
|
1563
|
+
gap: 10px;
|
|
1564
|
+
font-size: 11.5px;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
.mtb-summary-ctx > span:first-child {
|
|
1568
|
+
color: rgba(0, 0, 0, 0.45);
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
.mtb-summary-ctx > span:last-child {
|
|
1572
|
+
color: #191a1c;
|
|
1573
|
+
text-align: right;
|
|
1574
|
+
overflow: hidden;
|
|
1575
|
+
text-overflow: ellipsis;
|
|
1576
|
+
white-space: nowrap;
|
|
1577
|
+
max-width: 210px;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
.mtb-clarify-send-feedback {
|
|
1581
|
+
width: 100%;
|
|
1582
|
+
height: 36px;
|
|
1583
|
+
border: none;
|
|
1584
|
+
border-radius: 10px;
|
|
1585
|
+
background: #059669;
|
|
1586
|
+
color: #fff;
|
|
1587
|
+
cursor: pointer;
|
|
1588
|
+
font-family: inherit;
|
|
1589
|
+
font-size: 13px;
|
|
1590
|
+
font-weight: 600;
|
|
1591
|
+
transition: background 0.12s;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
.mtb-clarify-send-feedback:hover {
|
|
1595
|
+
background: #047857;
|
|
1596
|
+
}
|
package/src/styles.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -26,6 +26,14 @@ export interface Annotation {
|
|
|
26
26
|
drawPath?: string
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
export interface Breadcrumb {
|
|
30
|
+
type: 'ui' | 'navigation' | 'console'
|
|
31
|
+
category: 'ui.click' | 'ui.input' | 'navigation' | 'console.error'
|
|
32
|
+
timestamp: number
|
|
33
|
+
message?: string
|
|
34
|
+
data?: Record<string, string>
|
|
35
|
+
}
|
|
36
|
+
|
|
29
37
|
export interface FeedbackPayload {
|
|
30
38
|
description: string
|
|
31
39
|
page_url: string
|
|
@@ -48,6 +56,7 @@ export interface FeedbackPayload {
|
|
|
48
56
|
reporter_email?: string
|
|
49
57
|
recording_events?: Record<string, unknown>[]
|
|
50
58
|
recording_duration?: number
|
|
59
|
+
breadcrumbs?: Breadcrumb[]
|
|
51
60
|
}
|
|
52
61
|
|
|
53
62
|
export interface FeedbackResponse {
|
|
@@ -60,6 +69,12 @@ export interface FeedbackResponse {
|
|
|
60
69
|
identity_token?: string
|
|
61
70
|
}
|
|
62
71
|
|
|
72
|
+
export interface SubmissionSessionResponse {
|
|
73
|
+
id: string
|
|
74
|
+
token: string
|
|
75
|
+
ai_clarify_available: boolean
|
|
76
|
+
}
|
|
77
|
+
|
|
63
78
|
export interface ClarifyMessage {
|
|
64
79
|
role: string
|
|
65
80
|
content: string
|