@arbidocs/react 0.5.94 → 0.5.95
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.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -14806,8 +14806,10 @@ function describeServerNotification(n, options = {}) {
|
|
|
14806
14806
|
const ticketId = parse(n.content)?.ticket_id;
|
|
14807
14807
|
if (typeof ticketId !== "number" || !Number.isSafeInteger(ticketId) || ticketId < 1)
|
|
14808
14808
|
return null;
|
|
14809
|
+
const suppliedReference = parse(n.content)?.ticket_reference;
|
|
14810
|
+
const reference = typeof suppliedReference === "string" && /^[a-z0-9-]+-[0-9]+$/.test(suppliedReference) && suppliedReference.endsWith(`-${ticketId}`) ? suppliedReference : `#${ticketId}`;
|
|
14809
14811
|
return {
|
|
14810
|
-
title: type === "support_ticket_received" ? `We received support request
|
|
14812
|
+
title: type === "support_ticket_received" ? `We received support request ${reference}` : type === "support_ticket_reviewed" ? `We have reviewed support request ${reference}` : `Support request ${reference} is resolved`,
|
|
14811
14813
|
variant: "success",
|
|
14812
14814
|
actionLabel: type === "support_ticket_resolved" ? "View outcome" : "View request",
|
|
14813
14815
|
target: { kind: "support", ticketId }
|