@mhosaic/feedback 0.24.0 → 0.25.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/{chunk-WIQ7MTPI.mjs → chunk-BGS3FOQY.mjs} +7 -6
- package/dist/chunk-BGS3FOQY.mjs.map +1 -0
- package/dist/embed.min.js +5 -5
- package/dist/embed.min.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.mjs +1 -1
- package/dist/widget.min.js +6 -6
- package/dist/widget.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-WIQ7MTPI.mjs.map +0 -1
|
@@ -1105,8 +1105,9 @@ function ReportDetailView({
|
|
|
1105
1105
|
] });
|
|
1106
1106
|
}
|
|
1107
1107
|
const isMine = detail.is_mine ?? canModerate;
|
|
1108
|
-
const
|
|
1109
|
-
const
|
|
1108
|
+
const canAct = detail.can_moderate ?? isMine;
|
|
1109
|
+
const showCloseCta = canAct && detail.status === "awaiting_validation";
|
|
1110
|
+
const showComposeBox = canAct;
|
|
1110
1111
|
return /* @__PURE__ */ jsxs2("div", { class: `report-detail variant-${variant}`, children: [
|
|
1111
1112
|
variant === "modal" && /* @__PURE__ */ jsxs2("div", { class: "report-detail-header", children: [
|
|
1112
1113
|
/* @__PURE__ */ jsxs2("button", { type: "button", class: "btn", onClick: onBack, children: [
|
|
@@ -1490,7 +1491,7 @@ function BoardView({ api, externalId, strings, getCurrentPage }) {
|
|
|
1490
1491
|
reportId: selectedRow.id,
|
|
1491
1492
|
strings,
|
|
1492
1493
|
onBack: () => setSelectedId(null),
|
|
1493
|
-
canModerate: selectedRow.is_mine,
|
|
1494
|
+
canModerate: selectedRow.can_moderate ?? selectedRow.is_mine,
|
|
1494
1495
|
variant: "board"
|
|
1495
1496
|
},
|
|
1496
1497
|
detailKey
|
|
@@ -4992,8 +4993,8 @@ function createFeedback(config) {
|
|
|
4992
4993
|
capture_method: captureMethod,
|
|
4993
4994
|
technical_context
|
|
4994
4995
|
};
|
|
4995
|
-
if ("0.
|
|
4996
|
-
payload.widget_version = "0.
|
|
4996
|
+
if ("0.25.0") {
|
|
4997
|
+
payload.widget_version = "0.25.0";
|
|
4997
4998
|
}
|
|
4998
4999
|
if (manualScreenshots?.length) {
|
|
4999
5000
|
payload.screenshots = manualScreenshots;
|
|
@@ -5117,4 +5118,4 @@ function createFeedback(config) {
|
|
|
5117
5118
|
export {
|
|
5118
5119
|
createFeedback
|
|
5119
5120
|
};
|
|
5120
|
-
//# sourceMappingURL=chunk-
|
|
5121
|
+
//# sourceMappingURL=chunk-BGS3FOQY.mjs.map
|