@aurodesignsystem/auro-library 5.13.1 → 5.13.2
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 +7 -0
- package/package.json +1 -1
- package/scripts/runtime/floatingUI.mjs +46 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Semantic Release Automated Changelog
|
|
2
2
|
|
|
3
|
+
## [5.13.2](https://github.com/AlaskaAirlines/auro-library/compare/v5.13.1...v5.13.2) (2026-07-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* track visualViewport continuously during scroll lock ([631cf89](https://github.com/AlaskaAirlines/auro-library/commit/631cf89627fd4053b0ae8252736eb1db78919843))
|
|
9
|
+
|
|
3
10
|
## [5.13.1](https://github.com/AlaskaAirlines/auro-library/compare/v5.13.0...v5.13.1) (2026-07-10)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurodesignsystem/auro-library",
|
|
3
|
-
"version": "5.13.
|
|
3
|
+
"version": "5.13.2",
|
|
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",
|
|
@@ -339,15 +339,57 @@ export default class AuroFloatingUI {
|
|
|
339
339
|
document.body.style.top = `-${this._savedScrollY}px`;
|
|
340
340
|
document.body.style.width = "100%";
|
|
341
341
|
|
|
342
|
-
//
|
|
343
|
-
|
|
344
|
-
|
|
342
|
+
// Keep the bib aligned with the visual viewport as the VKB opens.
|
|
343
|
+
// A one-shot offsetTop check at lock time is stale by the time the user
|
|
344
|
+
// taps an input mid-drawer — iOS then pans visualViewport upward and the
|
|
345
|
+
// bib drifts off-screen. Listen continuously so the transform tracks the pan.
|
|
346
|
+
// RAF-throttled to avoid a style recalc on every scroll tick during the
|
|
347
|
+
// keyboard animation; the pending frame is canceled on unlock so it cannot
|
|
348
|
+
// reapply a translate after bibTransform has been restored.
|
|
349
|
+
if (window.visualViewport) {
|
|
350
|
+
this._viewportRafId = undefined;
|
|
351
|
+
this._viewportHandler = () => {
|
|
352
|
+
if (this._viewportRafId !== undefined) {
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
this._viewportRafId = requestAnimationFrame(() => {
|
|
356
|
+
this._viewportRafId = undefined;
|
|
357
|
+
if (element?.bib) {
|
|
358
|
+
element.bib.style.transform = `translateY(${window.visualViewport.offsetTop}px)`;
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
};
|
|
362
|
+
window.visualViewport.addEventListener(
|
|
363
|
+
"resize",
|
|
364
|
+
this._viewportHandler,
|
|
365
|
+
);
|
|
366
|
+
window.visualViewport.addEventListener(
|
|
367
|
+
"scroll",
|
|
368
|
+
this._viewportHandler,
|
|
369
|
+
);
|
|
370
|
+
this._viewportHandler();
|
|
345
371
|
}
|
|
346
372
|
|
|
347
373
|
this.lockTouchScroll(true);
|
|
348
374
|
}
|
|
349
375
|
} else {
|
|
350
376
|
if (this._scrollLocked) {
|
|
377
|
+
if (this._viewportHandler && window.visualViewport) {
|
|
378
|
+
window.visualViewport.removeEventListener(
|
|
379
|
+
"resize",
|
|
380
|
+
this._viewportHandler,
|
|
381
|
+
);
|
|
382
|
+
window.visualViewport.removeEventListener(
|
|
383
|
+
"scroll",
|
|
384
|
+
this._viewportHandler,
|
|
385
|
+
);
|
|
386
|
+
this._viewportHandler = undefined;
|
|
387
|
+
}
|
|
388
|
+
if (this._viewportRafId !== undefined) {
|
|
389
|
+
cancelAnimationFrame(this._viewportRafId);
|
|
390
|
+
this._viewportRafId = undefined;
|
|
391
|
+
}
|
|
392
|
+
|
|
351
393
|
document.documentElement.style.scrollbarGutter =
|
|
352
394
|
this._savedScrollStyles?.rootScrollbarGutter ?? "";
|
|
353
395
|
document.documentElement.style.overflow =
|
|
@@ -439,7 +481,7 @@ export default class AuroFloatingUI {
|
|
|
439
481
|
bibContent.style.width = "";
|
|
440
482
|
bibContent.style.height = "";
|
|
441
483
|
bibContent.style.maxWidth = "";
|
|
442
|
-
bibContent.style.maxHeight =
|
|
484
|
+
bibContent.style.maxHeight = "";
|
|
443
485
|
this.configureTrial = 0;
|
|
444
486
|
} else if (this.configureTrial < MAX_CONFIGURATION_COUNT) {
|
|
445
487
|
this.configureTrial += 1;
|