@aurodesignsystem/auro-library 5.5.2 → 5.5.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,19 @@
1
1
  # Semantic Release Automated Changelog
2
2
 
3
+ ## [5.5.4](https://github.com/AlaskaAirlines/auro-library/compare/v5.5.3...v5.5.4) (2025-10-08)
4
+
5
+
6
+ ### Performance Improvements
7
+
8
+ * add slot text grabber function [#201](https://github.com/AlaskaAirlines/auro-library/issues/201) ([382afe7](https://github.com/AlaskaAirlines/auro-library/commit/382afe7ca8eb85988b109020c4cd55d4df66c7da))
9
+
10
+ ## [5.5.3](https://github.com/AlaskaAirlines/auro-library/compare/v5.5.2...v5.5.3) (2025-09-15)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * null check on `window.visualViewport` in floatingUI ([f5af11e](https://github.com/AlaskaAirlines/auro-library/commit/f5af11e2b95e2490dccd5cf1ea095b1fa347c4c5))
16
+
3
17
  ## [5.5.2](https://github.com/AlaskaAirlines/auro-library/compare/v5.5.1...v5.5.2) (2025-08-20)
4
18
 
5
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem/auro-library",
3
- "version": "5.5.2",
3
+ "version": "5.5.4",
4
4
  "description": "This repository holds shared scripts, utilities, and workflows utilized across repositories along the Auro Design System.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -207,7 +207,7 @@ export default class AuroFloatingUI {
207
207
  document.body.style.overflow = 'hidden'; // hide body's scrollbar
208
208
 
209
209
  // Move `bib` by the amount the viewport is shifted to stay aligned in fullscreen.
210
- this.element.bib.style.transform = `translateY(${visualViewport.offsetTop}px)`;
210
+ this.element.bib.style.transform = `translateY(${window?.visualViewport?.offsetTop}px)`;
211
211
  } else {
212
212
  document.body.style.overflow = '';
213
213
  }
@@ -240,7 +240,7 @@ export default class AuroFloatingUI {
240
240
  bibContent.style.width = '';
241
241
  bibContent.style.height = '';
242
242
  bibContent.style.maxWidth = '';
243
- bibContent.style.maxHeight = `${window.visualViewport.height}px`;
243
+ bibContent.style.maxHeight = `${window?.visualViewport?.height}px`;
244
244
  this.configureTrial = 0;
245
245
  } else if (this.configureTrial < MAX_CONFIGURATION_COUNT) {
246
246
  this.configureTrial += 1;
@@ -66,5 +66,18 @@ export default class AuroLibraryRuntimeUtils {
66
66
 
67
67
  return elemTag === tag || elem.hasAttribute(tag);
68
68
  }
69
+
70
+ /**
71
+ * Gets the text content of a named slot.
72
+ * @returns {String}
73
+ * @private
74
+ */
75
+ getSlotText(elem, name) {
76
+ const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
77
+ const nodes = slot?.assignedNodes({ flatten: true }) || [];
78
+ const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
79
+
80
+ return text || null;
81
+ }
69
82
  }
70
83