react-os-shell 0.2.36 → 0.2.38

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.js CHANGED
@@ -488,6 +488,7 @@ function BugReportProvider({ children }) {
488
488
  setScreenshot(s);
489
489
  setDescription("");
490
490
  setReportType("bug");
491
+ setAnnotating(false);
491
492
  setOpen(true);
492
493
  return new Promise((resolve) => {
493
494
  resolveRef.current = resolve;
@@ -506,10 +507,12 @@ function BugReportProvider({ children }) {
506
507
  return () => URL.revokeObjectURL(url);
507
508
  }, [screenshot]);
508
509
  const handleSubmit = () => {
510
+ setAnnotating(false);
509
511
  setOpen(false);
510
512
  resolveRef.current?.({ description: description.trim(), reportType });
511
513
  };
512
514
  const handleCancel = () => {
515
+ setAnnotating(false);
513
516
  setOpen(false);
514
517
  resolveRef.current?.(null);
515
518
  };
@@ -606,20 +609,20 @@ function BugReportProvider({ children }) {
606
609
  }
607
610
  )
608
611
  ] })
609
- ] }) })
612
+ ] }) }),
613
+ annotating && previewUrl && /* @__PURE__ */ jsx(
614
+ BugReportAnnotator,
615
+ {
616
+ src: previewUrl,
617
+ onApply: (blob) => {
618
+ setScreenshot(blob);
619
+ setAnnotating(false);
620
+ },
621
+ onCancel: () => setAnnotating(false)
622
+ }
623
+ )
610
624
  ]
611
625
  }
612
- ),
613
- annotating && previewUrl && /* @__PURE__ */ jsx(
614
- BugReportAnnotator,
615
- {
616
- src: previewUrl,
617
- onApply: (blob) => {
618
- setScreenshot(blob);
619
- setAnnotating(false);
620
- },
621
- onCancel: () => setAnnotating(false)
622
- }
623
626
  )
624
627
  ] });
625
628
  }
@@ -858,7 +861,7 @@ function StatusBadge({ status }) {
858
861
  }
859
862
 
860
863
  // src/version.ts
861
- var VERSION = "0.2.36" ;
864
+ var VERSION = "0.2.38" ;
862
865
  var APP_VERSION = VERSION;
863
866
 
864
867
  // src/changelog.ts