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 CHANGED
@@ -227,7 +227,7 @@ Disable with `frustrationDetection: false`.
227
227
 
228
228
  ### AI Clarification
229
229
 
230
- Before final confirmation, 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.
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 final confirmation, a "View my feedback" link appears that opens the project board filtered to the user's submissions.
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 the widget down
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()` brings the tab back at
433
- runtime if you want both.
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
@@ -10,6 +10,7 @@ declare const MakeThisBetter: {
10
10
  */
11
11
  open(): void;
12
12
  close(): void;
13
+ /** Shows the docked tab on non-touch devices. Mobile entry UI belongs to the host. */
13
14
  showLauncher(): void;
14
15
  hideLauncher(): void;
15
16
  };
package/dist/index.d.mts CHANGED
@@ -10,6 +10,7 @@ declare const MakeThisBetter: {
10
10
  */
11
11
  open(): void;
12
12
  close(): void;
13
+ /** Shows the docked tab on non-touch devices. Mobile entry UI belongs to the host. */
13
14
  showLauncher(): void;
14
15
  hideLauncher(): void;
15
16
  };
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ declare const MakeThisBetter: {
10
10
  */
11
11
  open(): void;
12
12
  close(): void;
13
+ /** Shows the docked tab on non-touch devices. Mobile entry UI belongs to the host. */
13
14
  showLauncher(): void;
14
15
  hideLauncher(): void;
15
16
  };
@@ -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;oBAIG,IAAI;oBAIJ,IAAI;CAGrB,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA;AACzB,YAAY,EAAE,oBAAoB,EAAE,CAAA"}
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"}