@base-framework/base 3.7.72 → 3.7.74
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/dist/base.js +1 -1
- package/dist/base.js.map +3 -3
- package/dist/types/modules/router/router.d.ts +15 -1
- package/package.json +1 -1
|
@@ -301,9 +301,12 @@ export class Router {
|
|
|
301
301
|
* This will select the route.
|
|
302
302
|
*
|
|
303
303
|
* @param {object} route
|
|
304
|
+
* @param {boolean} [isFallback] - when true, this selection is a
|
|
305
|
+
* switch-group fallback (no route in the group actually matched
|
|
306
|
+
* the current path) and must not emit a scroll intent.
|
|
304
307
|
* @returns {void}
|
|
305
308
|
*/
|
|
306
|
-
select(route: object): void;
|
|
309
|
+
select(route: object, isFallback?: boolean): void;
|
|
307
310
|
/**
|
|
308
311
|
* This will apply the collected scroll intent after all
|
|
309
312
|
* routes and switches have been processed.
|
|
@@ -311,6 +314,17 @@ export class Router {
|
|
|
311
314
|
* @returns {void}
|
|
312
315
|
*/
|
|
313
316
|
applyScrollIntent(): void;
|
|
317
|
+
/**
|
|
318
|
+
* Re-asserts window scroll position at the top on the next
|
|
319
|
+
* animation frame. Route activation can asynchronously mount or
|
|
320
|
+
* reattach persisted DOM after applyScrollIntent runs, which can
|
|
321
|
+
* leave the viewport at the previous page's offset even though we
|
|
322
|
+
* already called scrollTo(0, 0). Re-asserting after a frame ensures
|
|
323
|
+
* the new page lands at the top.
|
|
324
|
+
*
|
|
325
|
+
* @returns {void}
|
|
326
|
+
*/
|
|
327
|
+
reassertScrollTop(): void;
|
|
314
328
|
/**
|
|
315
329
|
* This will scroll to a target element by CSS selector.
|
|
316
330
|
* For sticky elements, it scrolls to the position where the
|