glitchgrab 1.45.0 → 1.46.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/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +20 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -4
- package/dist/index.mjs.map +1 -1
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/{types-Lldp5noh.d.mts → types-DcDF1mXc.d.mts} +2 -0
- package/dist/{types-Lldp5noh.d.ts → types-DcDF1mXc.d.ts} +2 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1805,6 +1805,7 @@ function AssistSheet({
|
|
|
1805
1805
|
/* @__PURE__ */ jsxs2(
|
|
1806
1806
|
"div",
|
|
1807
1807
|
{
|
|
1808
|
+
"data-gg-sheet-header": "",
|
|
1808
1809
|
style: {
|
|
1809
1810
|
flexShrink: 0,
|
|
1810
1811
|
padding: "14px 16px",
|
|
@@ -1816,7 +1817,7 @@ function AssistSheet({
|
|
|
1816
1817
|
minWidth: 0
|
|
1817
1818
|
},
|
|
1818
1819
|
children: [
|
|
1819
|
-
/* @__PURE__ */ jsxs2("div", { style: { minWidth: 0
|
|
1820
|
+
/* @__PURE__ */ jsxs2("div", { style: { minWidth: 0 }, children: [
|
|
1820
1821
|
/* @__PURE__ */ jsxs2(
|
|
1821
1822
|
"div",
|
|
1822
1823
|
{
|
|
@@ -3967,6 +3968,7 @@ function ReportDialog({
|
|
|
3967
3968
|
const [description, setDescription] = useState4("");
|
|
3968
3969
|
const [isSubmitting, setIsSubmitting] = useState4(false);
|
|
3969
3970
|
const [submitted, setSubmitted] = useState4(false);
|
|
3971
|
+
const [queuedMessage, setQueuedMessage] = useState4(null);
|
|
3970
3972
|
const [screenshots, setScreenshots] = useState4([]);
|
|
3971
3973
|
const [pageShot, setPageShot] = useState4(null);
|
|
3972
3974
|
const [shotPending, setShotPending] = useState4(false);
|
|
@@ -4572,7 +4574,7 @@ function ReportDialog({
|
|
|
4572
4574
|
}
|
|
4573
4575
|
};
|
|
4574
4576
|
const handleSubmit = async (opts) => {
|
|
4575
|
-
var _a2;
|
|
4577
|
+
var _a2, _b;
|
|
4576
4578
|
try {
|
|
4577
4579
|
if (isSubmitting) return;
|
|
4578
4580
|
if (isRating) {
|
|
@@ -4658,6 +4660,8 @@ function ReportDialog({
|
|
|
4658
4660
|
);
|
|
4659
4661
|
if (result) {
|
|
4660
4662
|
setAddedToIssue(duplicateOf && result.issueNumber === duplicateOf ? duplicateOf : null);
|
|
4663
|
+
const queued = result.status === "QUEUED" && !!result.message;
|
|
4664
|
+
setQueuedMessage(queued ? (_b = result.message) != null ? _b : null : null);
|
|
4661
4665
|
setSubmitted(true);
|
|
4662
4666
|
setDescription("");
|
|
4663
4667
|
setScreenshots([]);
|
|
@@ -4668,8 +4672,9 @@ function ReportDialog({
|
|
|
4668
4672
|
setPickedSimilar(null);
|
|
4669
4673
|
setTimeout(() => {
|
|
4670
4674
|
setSubmitted(false);
|
|
4675
|
+
setQueuedMessage(null);
|
|
4671
4676
|
handleClose();
|
|
4672
|
-
}, 2e3);
|
|
4677
|
+
}, queued ? 6e3 : 2e3);
|
|
4673
4678
|
}
|
|
4674
4679
|
setIsSubmitting(false);
|
|
4675
4680
|
setAttachingTo(null);
|
|
@@ -4979,7 +4984,18 @@ function ReportDialog({
|
|
|
4979
4984
|
fontSize: "14px",
|
|
4980
4985
|
fontWeight: 500
|
|
4981
4986
|
},
|
|
4982
|
-
children:
|
|
4987
|
+
children: queuedMessage ? /* @__PURE__ */ jsx4(
|
|
4988
|
+
"span",
|
|
4989
|
+
{
|
|
4990
|
+
style: {
|
|
4991
|
+
// amber-500 reads on the dark panel, amber-700 on the light one
|
|
4992
|
+
color: isDark ? "#f59e0b" : "#b45309",
|
|
4993
|
+
fontWeight: 400,
|
|
4994
|
+
lineHeight: 1.5
|
|
4995
|
+
},
|
|
4996
|
+
children: queuedMessage
|
|
4997
|
+
}
|
|
4998
|
+
) : addedToIssue ? `Added to #${addedToIssue}. Thank you!` : `${getTypeLabel(reportType)} sent. Thank you!`
|
|
4983
4999
|
}
|
|
4984
5000
|
) : /* @__PURE__ */ jsxs4(Fragment3, { children: [
|
|
4985
5001
|
step === 1 && headerSlot ? /* @__PURE__ */ jsx4("div", { style: { marginBottom: "14px" }, children: headerSlot }) : null,
|