@asd20/ui-next 2.31.6 → 2.31.7
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.31.7](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.31.6...ui-next-v2.31.7) (2026-10-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* update pdfservice docs; implement new email moderation for phishing ([1beb60d](https://github.com/academydistrict20/asd20-ui-next/commit/1beb60d764a8136d00773a1d81cc11a64fdc335b))
|
|
9
|
+
|
|
3
10
|
## [2.31.6](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.31.5...ui-next-v2.31.6) (2026-10-12)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
|
@@ -326,7 +326,9 @@ export default {
|
|
|
326
326
|
},
|
|
327
327
|
isModerationRejection(error) {
|
|
328
328
|
return (
|
|
329
|
-
|
|
329
|
+
['moderation_rejected', 'moderation_unavailable'].includes(
|
|
330
|
+
this.getSendEmailResponseData(error)?.code
|
|
331
|
+
)
|
|
330
332
|
)
|
|
331
333
|
},
|
|
332
334
|
getServerValidationMessages(error) {
|
|
@@ -363,10 +365,18 @@ export default {
|
|
|
363
365
|
}
|
|
364
366
|
|
|
365
367
|
if (this.isModerationRejection(error)) {
|
|
368
|
+
const response = this.getSendEmailResponseData(error)
|
|
369
|
+
const submissionId = String(response?.submissionId || '')
|
|
370
|
+
const reference = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(submissionId)
|
|
371
|
+
? [`Reference: ${submissionId}`]
|
|
372
|
+
: []
|
|
366
373
|
this.showFeedback(
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
374
|
+
response?.code === 'moderation_unavailable'
|
|
375
|
+
? 'Email temporarily unavailable'
|
|
376
|
+
: 'Message not sent',
|
|
377
|
+
response?.error ||
|
|
378
|
+
"We couldn't send your message through this form. For assistance contacting the appropriate staff member, please contact the Academy District 20 Help Desk at help@asd20.org or 719-234-1777.",
|
|
379
|
+
reference
|
|
370
380
|
)
|
|
371
381
|
return
|
|
372
382
|
}
|