@asd20/ui-next 2.4.2 → 2.5.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
# [2.5.0](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.4.3...ui-next-v2.5.0) (2026-05-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Add public directory email abuse controls ([9ae4256](https://github.com/academydistrict20/asd20-ui-next/commit/9ae4256f3461a205b82ea0a6c46a4d3190aeff87))
|
|
9
|
+
|
|
10
|
+
## [2.4.3](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.4.2...ui-next-v2.4.3) (2026-05-04)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* app search results default urls are relative; should be absolute ([c21db8e](https://github.com/academydistrict20/asd20-ui-next/commit/c21db8ece67d424622f1287c1ca0ec72d42ee123))
|
|
16
|
+
|
|
3
17
|
## [2.4.2](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.4.1...ui-next-v2.4.2) (2026-05-01)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
|
@@ -147,9 +147,9 @@ export default {
|
|
|
147
147
|
this.validInputs += errors.length === 0 ? -1 : 1
|
|
148
148
|
},
|
|
149
149
|
captchaVerified(response) {
|
|
150
|
-
if (response) this.sendEmail()
|
|
150
|
+
if (response) this.sendEmail(response)
|
|
151
151
|
},
|
|
152
|
-
async sendEmail() {
|
|
152
|
+
async sendEmail(captchaToken = '') {
|
|
153
153
|
if (!this.isValid) return
|
|
154
154
|
|
|
155
155
|
const endpoint = this.resolveSendEmailEndpoint()
|
|
@@ -172,6 +172,7 @@ export default {
|
|
|
172
172
|
await sendEmailClient(
|
|
173
173
|
Object.assign({}, this.emailMessage, {
|
|
174
174
|
recipientId: this.recipientId,
|
|
175
|
+
captchaToken,
|
|
175
176
|
})
|
|
176
177
|
)
|
|
177
178
|
this.$emit('dismiss')
|
|
@@ -555,6 +555,7 @@ import mapFilesToListItems from '../../../helpers/mapFilesToListItems'
|
|
|
555
555
|
import logSearchAnalytics from '../../../helpers/logSearchAnalytics'
|
|
556
556
|
import logSearchFeedback from '../../../helpers/logSearchFeedback'
|
|
557
557
|
import queryAiSite from '../../../helpers/queryAiSite'
|
|
558
|
+
import { NO_PAGE_RESULTS_FALLBACKS } from '../../../helpers/queryPages'
|
|
558
559
|
|
|
559
560
|
// Mixins
|
|
560
561
|
import globalPropMixinFactory from '../../../mixins/globalPropMixinFactory.js'
|
|
@@ -574,52 +575,12 @@ const SEARCH_CACHE_MAX_AGE_MS = 1000 * 60 * 45
|
|
|
574
575
|
const SEARCH_STATE_MAX_AGE_MS = 1000 * 60 * 60 * 3
|
|
575
576
|
const SEARCH_STATE_SYNC_EVENT = 'asd20-site-search:state-sync'
|
|
576
577
|
const MANUAL_TAB_OVERRIDE_WINDOW_MS = 1200
|
|
577
|
-
const
|
|
578
|
-
{
|
|
579
|
-
|
|
580
|
-
slug: 'calendar',
|
|
581
|
-
title: 'Calendar',
|
|
582
|
-
url: '/calendar',
|
|
583
|
-
isNoResultsFallback: true,
|
|
584
|
-
categories: ['App'],
|
|
585
|
-
pageTypeId: 'application',
|
|
586
|
-
metaDescription: 'View district and school calendars.',
|
|
578
|
+
const SEARCH_NO_PAGE_RESULTS_FALLBACKS = NO_PAGE_RESULTS_FALLBACKS.map(
|
|
579
|
+
(page) => ({
|
|
580
|
+
...page,
|
|
587
581
|
ownerOrganizationId: DISTRICT_ORG_ID,
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
id: 'directory',
|
|
591
|
-
slug: 'directory',
|
|
592
|
-
title: 'Directory',
|
|
593
|
-
url: '/directory',
|
|
594
|
-
isNoResultsFallback: true,
|
|
595
|
-
categories: ['App'],
|
|
596
|
-
pageTypeId: 'application',
|
|
597
|
-
metaDescription: 'Find staff and department contacts.',
|
|
598
|
-
ownerOrganizationId: DISTRICT_ORG_ID,
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
id: 'school-directory',
|
|
602
|
-
slug: 'schools',
|
|
603
|
-
title: 'Schools',
|
|
604
|
-
url: '/schools',
|
|
605
|
-
isNoResultsFallback: true,
|
|
606
|
-
categories: ['App'],
|
|
607
|
-
pageTypeId: 'application',
|
|
608
|
-
metaDescription: 'Browse all Academy District 20 schools.',
|
|
609
|
-
ownerOrganizationId: DISTRICT_ORG_ID,
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
id: 'help-desk',
|
|
613
|
-
slug: 'help-desk',
|
|
614
|
-
title: 'Help Desk',
|
|
615
|
-
url: 'https://www.asd20.org/help-desk/',
|
|
616
|
-
isNoResultsFallback: true,
|
|
617
|
-
categories: ['Support'],
|
|
618
|
-
pageTypeId: 'detail-page',
|
|
619
|
-
metaDescription: 'Get support from the Academy District 20 Help Desk.',
|
|
620
|
-
ownerOrganizationId: DISTRICT_ORG_ID,
|
|
621
|
-
},
|
|
622
|
-
]
|
|
582
|
+
})
|
|
583
|
+
)
|
|
623
584
|
|
|
624
585
|
// const SUBDOMAIN_LABELS = {
|
|
625
586
|
// rampart: 'Rampart High School',
|
|
@@ -776,7 +737,7 @@ export default {
|
|
|
776
737
|
}
|
|
777
738
|
if (!this.shouldUsePageFallbacks) return []
|
|
778
739
|
|
|
779
|
-
return
|
|
740
|
+
return SEARCH_NO_PAGE_RESULTS_FALLBACKS.map(page => ({
|
|
780
741
|
...page,
|
|
781
742
|
categories: Array.isArray(page.categories) ? [...page.categories] : [],
|
|
782
743
|
}))
|
|
@@ -80,56 +80,13 @@ import Asd20List from '../../organisms/Asd20List'
|
|
|
80
80
|
import Asd20Button from '../../atoms/Asd20Button'
|
|
81
81
|
import Asd20SiteNavigation from '../../../components/organisms/Asd20SiteNavigation'
|
|
82
82
|
|
|
83
|
-
import queryPages from '../../../helpers/queryPages'
|
|
83
|
+
import queryPages, { NO_PAGE_RESULTS_FALLBACKS } from '../../../helpers/queryPages'
|
|
84
84
|
import mapPagesToListItems from '../../../helpers/mapPagesToListItems'
|
|
85
85
|
import pageTemplateMixin from '../../../mixins/pageTemplateMixin'
|
|
86
86
|
|
|
87
87
|
// import Asd20PageContent from '../../../components/organisms/Asd20PageContent'
|
|
88
88
|
|
|
89
89
|
const MAX_SUGGESTED_PAGES = 10
|
|
90
|
-
const NO_PAGE_RESULTS_FALLBACKS = [
|
|
91
|
-
{
|
|
92
|
-
id: 'calendar',
|
|
93
|
-
slug: 'calendar',
|
|
94
|
-
title: 'Calendar',
|
|
95
|
-
url: '/calendar',
|
|
96
|
-
isNoResultsFallback: true,
|
|
97
|
-
categories: ['App'],
|
|
98
|
-
pageTypeId: 'application',
|
|
99
|
-
metaDescription: 'View district and school calendars.',
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
id: 'directory',
|
|
103
|
-
slug: 'directory',
|
|
104
|
-
title: 'Directory',
|
|
105
|
-
url: '/directory',
|
|
106
|
-
isNoResultsFallback: true,
|
|
107
|
-
categories: ['App'],
|
|
108
|
-
pageTypeId: 'application',
|
|
109
|
-
metaDescription: 'Find staff and department contacts.',
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
id: 'school-directory',
|
|
113
|
-
slug: 'schools',
|
|
114
|
-
title: 'Schools',
|
|
115
|
-
url: '/schools',
|
|
116
|
-
isNoResultsFallback: true,
|
|
117
|
-
categories: ['App'],
|
|
118
|
-
pageTypeId: 'application',
|
|
119
|
-
metaDescription: 'Browse all Academy District 20 schools.',
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
id: 'help-desk',
|
|
123
|
-
slug: 'help-desk',
|
|
124
|
-
title: 'Help Desk',
|
|
125
|
-
url: 'https://www.asd20.org/help-desk/',
|
|
126
|
-
isNoResultsFallback: true,
|
|
127
|
-
categories: ['Support'],
|
|
128
|
-
pageTypeId: 'detail-page',
|
|
129
|
-
metaDescription: 'Get support from the Academy District 20 Help Desk.',
|
|
130
|
-
},
|
|
131
|
-
]
|
|
132
|
-
|
|
133
90
|
export default {
|
|
134
91
|
components: {
|
|
135
92
|
Asd20List,
|
|
@@ -8,7 +8,7 @@ export const NO_PAGE_RESULTS_FALLBACKS = [
|
|
|
8
8
|
id: 'calendar',
|
|
9
9
|
slug: 'calendar',
|
|
10
10
|
title: 'Calendar',
|
|
11
|
-
url: '
|
|
11
|
+
url: 'https://calendar.asd20.org',
|
|
12
12
|
isNoResultsFallback: true,
|
|
13
13
|
categories: ['App'],
|
|
14
14
|
pageTypeId: 'application',
|
|
@@ -18,7 +18,7 @@ export const NO_PAGE_RESULTS_FALLBACKS = [
|
|
|
18
18
|
id: 'directory',
|
|
19
19
|
slug: 'directory',
|
|
20
20
|
title: 'Directory',
|
|
21
|
-
url: '
|
|
21
|
+
url: 'https://directory.asd20.org',
|
|
22
22
|
isNoResultsFallback: true,
|
|
23
23
|
categories: ['App'],
|
|
24
24
|
pageTypeId: 'application',
|
|
@@ -28,7 +28,7 @@ export const NO_PAGE_RESULTS_FALLBACKS = [
|
|
|
28
28
|
id: 'school-directory',
|
|
29
29
|
slug: 'schools',
|
|
30
30
|
title: 'Schools',
|
|
31
|
-
url: '
|
|
31
|
+
url: 'https://schools.asd20.org',
|
|
32
32
|
isNoResultsFallback: true,
|
|
33
33
|
categories: ['App'],
|
|
34
34
|
pageTypeId: 'application',
|