@asd20/ui-next 2.23.3 → 2.23.4

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.23.4](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.23.3...ui-next-v2.23.4) (2026-09-10)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * remove images from 'copy summary' function ([0ff335c](https://github.com/academydistrict20/asd20-ui-next/commit/0ff335c21c554fc17a8c4bcf6a1d0826b342db24))
9
+
3
10
  ## [2.23.3](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.23.2...ui-next-v2.23.3) (2026-09-10)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asd20/ui-next",
3
- "version": "2.23.3",
3
+ "version": "2.23.4",
4
4
  "private": false,
5
5
  "description": "ASD20 UI component library for Vue 3.",
6
6
  "license": "MIT",
@@ -120,37 +120,6 @@ export default {
120
120
  (hasDistrictLogo ? 'Academy District 20' : '') ||
121
121
  document.location.hostname
122
122
 
123
- const parseCssUrl = value => {
124
- const match = String(value || '').match(/url\(['"]?(.*?)['"]?\)/)
125
- return match ? match[1] : ''
126
- }
127
-
128
- const headerImage =
129
- document.querySelector('.asd20-page-header__image img') || null
130
- const headerContent = document.querySelector(
131
- '.asd20-page-header__content'
132
- )
133
- const inlineBackground = headerContent
134
- ? headerContent.style.getPropertyValue('--imageBackground')
135
- : ''
136
- const computedBackground =
137
- headerContent && window.getComputedStyle
138
- ? window
139
- .getComputedStyle(headerContent)
140
- .getPropertyValue('background-image')
141
- : ''
142
- const logoImage =
143
- document.querySelector('.asd20-logo__image img') ||
144
- document.querySelector('.optionalLogo') ||
145
- document.querySelector('img[alt*="logo" i]')
146
-
147
- const imageUrl =
148
- (headerImage && headerImage.src) ||
149
- parseCssUrl(inlineBackground) ||
150
- parseCssUrl(computedBackground) ||
151
- (logoImage && logoImage.src) ||
152
- '/statics/images/logo.png'
153
-
154
123
  const callsToAction = Array.from(
155
124
  document.querySelectorAll('.asd20-page-header__call-to-action a')
156
125
  )
@@ -161,9 +130,6 @@ export default {
161
130
  const linkHtml = callsToAction.length
162
131
  ? '<ul>' + callsToAction + '</ul>'
163
132
  : ''
164
- const imageHtml = imageUrl
165
- ? `<img src="${imageUrl}" alt="" style="max-width: 100%; height: auto;" />`
166
- : ''
167
133
  const summaryHtml = summary
168
134
  ? `<p>${summary} <a href="${url}">Read more</a>.</p>`
169
135
  : `<p><a href="${url}">Read more</a>.</p>`
@@ -171,12 +137,11 @@ export default {
171
137
  const textParts = []
172
138
  if (title) textParts.push(title)
173
139
  if (summary) textParts.push(summary)
174
- if (imageUrl) textParts.push(`Image:\n${imageUrl}`)
175
140
  textParts.push(`Read more:\n${url}`)
176
141
  const text = `${textParts.join('\n\n')}\n\n`
177
- const html = `${imageHtml}<h2>${title}</h2>${summaryHtml}${linkHtml}`
142
+ const html = `<h2>${title}</h2>${summaryHtml}${linkHtml}`
178
143
 
179
- return { title, summary, url, imageUrl, text, html, orgName }
144
+ return { title, summary, url, text, html, orgName }
180
145
  },
181
146
  openShareLink(urlTemplate) {
182
147
  this.showMenu = false