@anthusai/papyrus 5.41.6 → 5.41.8

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.
@@ -138,7 +138,10 @@ export function EmailSubmissions({ items, detail, onOpen, onResolveArticleLink,
138
138
  const result = await onResolveArticleLink(requestReceiptId, index);
139
139
  if (!isCurrentEmailSubmissionAction(activeReceiptId.current, requestReceiptId)) return;
140
140
  if (!("url" in result)) {
141
- setNoticeByReceipt((current) => ({ ...current, [requestReceiptId]: "The article destination could not be resolved safely. The original link remains private and unchanged." }));
141
+ const reason = "reason" in result && typeof result.reason === "string"
142
+ && /^(?:redirect_[a-z_]+|resolution_record_invalid|resolution_not_recorded)$/.test(result.reason)
143
+ ? ` (${result.reason})` : "";
144
+ setNoticeByReceipt((current) => ({ ...current, [requestReceiptId]: `The article destination could not be resolved safely${reason}. The original link remains private and unchanged.` }));
142
145
  return;
143
146
  }
144
147
  const candidate = detail && "submission" in detail ? detail.candidateLinks[index] : null;
package/package.json CHANGED
@@ -461,7 +461,7 @@
461
461
  "optional": true
462
462
  }
463
463
  },
464
- "version": "5.41.6",
464
+ "version": "5.41.8",
465
465
  "dependencies": {
466
466
  "@aws-amplify/adapter-nextjs": "^1.7.3",
467
467
  "@aws-crypto/sha256-js": "5.2.0",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.41.6",
2
+ "version": "5.41.8",
3
3
  "routes": [
4
4
  {
5
5
  "file": "app/%5F_preview/[[...path]]/route.ts",