@asd20/ui-next 2.19.0 → 2.20.1
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.20.1](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.20.0...ui-next-v2.20.1) (2026-08-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* fix translation icon centration and mobile position ([661b34a](https://github.com/academydistrict20/asd20-ui-next/commit/661b34acb871bc32749ece9f8ce437abfbad0727))
|
|
9
|
+
|
|
10
|
+
# [2.20.0](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.19.0...ui-next-v2.20.0) (2026-08-07)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* adjust video descriptions rendering for tiptap messages ([fbe3171](https://github.com/academydistrict20/asd20-ui-next/commit/fbe3171d365aeffeb7f66add00756ab9689f40a2))
|
|
16
|
+
|
|
3
17
|
# [2.19.0](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.18.0...ui-next-v2.19.0) (2026-08-06)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
|
@@ -291,6 +291,16 @@ function validateRequiredCanonicalText(node, name, path, maximumLength) {
|
|
|
291
291
|
: null
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
+
function validateOptionalCanonicalText(node, name, path, maximumLength) {
|
|
295
|
+
const value = node.attrs?.[name]
|
|
296
|
+
if (value === undefined) return null
|
|
297
|
+
return typeof value !== 'string' ||
|
|
298
|
+
value !== value.trim() ||
|
|
299
|
+
value.length > maximumLength
|
|
300
|
+
? issue('malformed-attribute', path, name)
|
|
301
|
+
: null
|
|
302
|
+
}
|
|
303
|
+
|
|
294
304
|
function validateMarks(marks, path) {
|
|
295
305
|
if (marks === undefined) return null
|
|
296
306
|
if (!Array.isArray(marks)) return issue('malformed-marks', path)
|
|
@@ -531,7 +541,7 @@ function validateNode(node, path) {
|
|
|
531
541
|
VIDEO_TITLE_MAX_LENGTH
|
|
532
542
|
)
|
|
533
543
|
if (titleIssue) return titleIssue
|
|
534
|
-
const descriptionIssue =
|
|
544
|
+
const descriptionIssue = validateOptionalCanonicalText(
|
|
535
545
|
node,
|
|
536
546
|
'descriptiveText',
|
|
537
547
|
path,
|
|
@@ -809,15 +819,14 @@ function renderStandardNode(node) {
|
|
|
809
819
|
.join('')}</div></figure>`
|
|
810
820
|
}
|
|
811
821
|
if (node.type === 'videoEmbed') {
|
|
822
|
+
const description = node.attrs?.descriptiveText || ''
|
|
812
823
|
return `<div class="asd20-message-video" data-cc-node="video"${attribute(
|
|
813
824
|
'data-src',
|
|
814
825
|
node.attrs.src
|
|
815
826
|
)}${attribute('data-title', node.attrs.title)}${attribute(
|
|
816
827
|
'data-descriptive-text',
|
|
817
|
-
|
|
818
|
-
)}><
|
|
819
|
-
node.attrs.descriptiveText
|
|
820
|
-
)}</p><div class="asd20-message-video__frame"><iframe${attribute(
|
|
828
|
+
description
|
|
829
|
+
)}><div class="asd20-message-video__frame"><iframe${attribute(
|
|
821
830
|
'src',
|
|
822
831
|
node.attrs.src
|
|
823
832
|
)}${attribute(
|
|
@@ -827,7 +836,13 @@ function renderStandardNode(node) {
|
|
|
827
836
|
'allowfullscreen',
|
|
828
837
|
'',
|
|
829
838
|
true
|
|
830
|
-
)}></iframe></div
|
|
839
|
+
)}></iframe></div>${
|
|
840
|
+
description
|
|
841
|
+
? `<p class="asd20-message-video__description">${escapeHtml(
|
|
842
|
+
description
|
|
843
|
+
)}</p>`
|
|
844
|
+
: ''
|
|
845
|
+
}</div>`
|
|
831
846
|
}
|
|
832
847
|
if (node.type === 'table') return renderTable(node)
|
|
833
848
|
if (node.type === 'tableRow') return `<tr>${renderChildren(node)}</tr>`
|
|
@@ -363,7 +363,7 @@ export default {
|
|
|
363
363
|
text-decoration: none;
|
|
364
364
|
border-radius: 3rem;
|
|
365
365
|
border: 1px solid var(--website-page__alternate-background-color);
|
|
366
|
-
padding: 0 0.5rem;
|
|
366
|
+
// padding: 0 0.5rem;
|
|
367
367
|
min-height: 2rem;
|
|
368
368
|
align-items: center;
|
|
369
369
|
display: flex;
|
|
@@ -405,17 +405,17 @@ export default {
|
|
|
405
405
|
color: currentColor;
|
|
406
406
|
font-family: Ariel, Arial, Helvetica, sans-serif;
|
|
407
407
|
}
|
|
408
|
-
& .asd20-select-input__field-wrapper {
|
|
409
|
-
|
|
410
|
-
}
|
|
408
|
+
// & .asd20-select-input__field-wrapper {
|
|
409
|
+
// padding: 0 0.5rem;
|
|
410
|
+
// }
|
|
411
411
|
}
|
|
412
412
|
.asd20-notification-group--floating {
|
|
413
413
|
order: 4;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
.no-block-widget {
|
|
417
|
-
position:
|
|
418
|
-
top:
|
|
417
|
+
position: relative;
|
|
418
|
+
top: unset;
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
421
|
|