react-os-shell 0.2.38 → 0.2.40
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/dist/index.d.ts +5 -0
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -339,6 +339,11 @@ type ReportType = 'bug' | 'suggestion';
|
|
|
339
339
|
interface BugReportSubmission {
|
|
340
340
|
description: string;
|
|
341
341
|
reportType: ReportType;
|
|
342
|
+
/** The screenshot the user actually wants to send. Reflects any in-dialog
|
|
343
|
+
* annotation: callers should upload THIS blob, not the original capture
|
|
344
|
+
* they passed into `openBugReportDialog`. May be null if the original
|
|
345
|
+
* capture failed and the user submitted without uploading a fallback. */
|
|
346
|
+
screenshot: Blob | null;
|
|
342
347
|
}
|
|
343
348
|
/** Generic bug-report record shape consumed by the shell's list/detail UI. */
|
|
344
349
|
interface BugReport {
|
package/dist/index.js
CHANGED
|
@@ -509,7 +509,7 @@ function BugReportProvider({ children }) {
|
|
|
509
509
|
const handleSubmit = () => {
|
|
510
510
|
setAnnotating(false);
|
|
511
511
|
setOpen(false);
|
|
512
|
-
resolveRef.current?.({ description: description.trim(), reportType });
|
|
512
|
+
resolveRef.current?.({ description: description.trim(), reportType, screenshot });
|
|
513
513
|
};
|
|
514
514
|
const handleCancel = () => {
|
|
515
515
|
setAnnotating(false);
|
|
@@ -861,7 +861,7 @@ function StatusBadge({ status }) {
|
|
|
861
861
|
}
|
|
862
862
|
|
|
863
863
|
// src/version.ts
|
|
864
|
-
var VERSION = "0.2.
|
|
864
|
+
var VERSION = "0.2.40" ;
|
|
865
865
|
var APP_VERSION = VERSION;
|
|
866
866
|
|
|
867
867
|
// src/changelog.ts
|
|
@@ -900,10 +900,11 @@ async function reportBug(submit) {
|
|
|
900
900
|
const screenshot = await captureViewport();
|
|
901
901
|
const submission = await openBugReportDialog(screenshot);
|
|
902
902
|
if (submission === null) return;
|
|
903
|
+
const finalScreenshot = submission.screenshot ?? screenshot;
|
|
903
904
|
try {
|
|
904
905
|
await submit({
|
|
905
906
|
description: submission.description || void 0,
|
|
906
|
-
screenshot:
|
|
907
|
+
screenshot: finalScreenshot ?? void 0,
|
|
907
908
|
url: window.location.href,
|
|
908
909
|
userAgent: navigator.userAgent,
|
|
909
910
|
viewport: `${window.innerWidth}x${window.innerHeight}`,
|