@mhosaic/feedback 0.24.0 → 0.26.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.
@@ -1105,8 +1105,9 @@ function ReportDetailView({
1105
1105
  ] });
1106
1106
  }
1107
1107
  const isMine = detail.is_mine ?? canModerate;
1108
- const showCloseCta = isMine && detail.status === "awaiting_validation";
1109
- const showComposeBox = isMine;
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.24.0") {
4996
- payload.widget_version = "0.24.0";
4996
+ if ("0.26.0") {
4997
+ payload.widget_version = "0.26.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-WIQ7MTPI.mjs.map
5121
+ //# sourceMappingURL=chunk-FYF5KICC.mjs.map