makethisbetter 1.18.0 → 1.19.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 +6 -5
- package/dist/index.d.cts +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/makethisbetter.cjs +43 -42
- package/dist/makethisbetter.cjs.map +1 -1
- package/dist/makethisbetter.esm.js +520 -497
- package/dist/makethisbetter.esm.js.map +1 -1
- package/dist/makethisbetter.js +17 -16
- package/dist/makethisbetter.js.map +1 -1
- package/dist/popup/clarify.d.ts +2 -0
- package/dist/popup/clarify.d.ts.map +1 -1
- package/dist/screenshot/capture.d.ts.map +1 -1
- package/dist/screenshot/crop.d.ts +1 -2
- package/dist/screenshot/crop.d.ts.map +1 -1
- package/dist/widget/controller.d.ts.map +1 -1
- package/package.json +2 -5
- package/src/index.ts +1 -0
- package/src/popup/clarify.ts +45 -9
- package/src/screenshot/capture.ts +48 -11
- package/src/screenshot/crop.ts +5 -5
- package/src/styles/widget.css +35 -15
- package/src/widget/controller.ts +4 -3
package/README.md
CHANGED
|
@@ -227,7 +227,7 @@ Disable with `frustrationDetection: false`.
|
|
|
227
227
|
|
|
228
228
|
### AI Clarification
|
|
229
229
|
|
|
230
|
-
Before
|
|
230
|
+
Before submission, an AI assistant may ask one short follow-up question to clarify the real need — avoiding [XY problems](https://xyproblem.info/) where users describe their attempted solution instead of the actual problem. Once the exchange is complete, the widget submits the feedback automatically.
|
|
231
231
|
|
|
232
232
|
### Auto-Collected Context
|
|
233
233
|
|
|
@@ -335,7 +335,7 @@ MakeThisBetter.init({
|
|
|
335
335
|
})
|
|
336
336
|
```
|
|
337
337
|
|
|
338
|
-
When `userToken` or `userTokenFn` is set, the widget sends an `X-User-Token` header with every request. After
|
|
338
|
+
When `userToken` or `userTokenFn` is set, the widget sends an `X-User-Token` header with every request. After a successful submission, a "View my feedback" link appears that opens the project board filtered to the user's submissions.
|
|
339
339
|
|
|
340
340
|
**The JWT wins over `user`.** These are not two independent ways to name the
|
|
341
341
|
reporter. Whenever the server receives a valid token, it takes the reporter's id,
|
|
@@ -406,7 +406,7 @@ MakeThisBetter.open(): void
|
|
|
406
406
|
// Close annotation mode and restore the page
|
|
407
407
|
MakeThisBetter.close(): void
|
|
408
408
|
|
|
409
|
-
// Show or remove the docked tab without tearing
|
|
409
|
+
// Show or remove the docked tab on non-touch devices without tearing down
|
|
410
410
|
MakeThisBetter.showLauncher(): void
|
|
411
411
|
MakeThisBetter.hideLauncher(): void
|
|
412
412
|
|
|
@@ -429,8 +429,9 @@ document.querySelector('#menu-feedback')
|
|
|
429
429
|
```
|
|
430
430
|
|
|
431
431
|
In `api` mode nothing is reachable until you wire up that call, so the widget
|
|
432
|
-
logs a warning on init as a reminder. `showLauncher()`
|
|
433
|
-
runtime
|
|
432
|
+
logs a warning on init as a reminder. On non-touch devices, `showLauncher()` can
|
|
433
|
+
bring the docked tab back at runtime. Touch devices never render the SDK tab;
|
|
434
|
+
put the entry in your own mobile UI and call `MakeThisBetter.open()` from it.
|
|
434
435
|
|
|
435
436
|
## Architecture
|
|
436
437
|
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAgBnD,QAAA,MAAM,cAAc;iBACL,oBAAoB,GAAG,IAAI;eAkB7B,IAAI;sBAOG,MAAM,GAAG,IAAI;IAK/B;;;;OAIG;YACK,IAAI;aAIH,IAAI;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAgBnD,QAAA,MAAM,cAAc;iBACL,oBAAoB,GAAG,IAAI;eAkB7B,IAAI;sBAOG,MAAM,GAAG,IAAI;IAK/B;;;;OAIG;YACK,IAAI;aAIH,IAAI;IAIb,sFAAsF;oBACtE,IAAI;oBAIJ,IAAI;CAGrB,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA;AACzB,YAAY,EAAE,oBAAoB,EAAE,CAAA"}
|