@base-framework/base 3.7.73 → 3.7.75
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.
|
@@ -60,16 +60,6 @@ export class Component extends Unit {
|
|
|
60
60
|
id: string;
|
|
61
61
|
}): void;
|
|
62
62
|
stateHelper: any;
|
|
63
|
-
/**
|
|
64
|
-
* Mark context as restored from persistence so the
|
|
65
|
-
* subsequent setupContext() call doesn't invoke the
|
|
66
|
-
* user's setContext() hook again — doing so would
|
|
67
|
-
* create a new context.data instance, leaving every
|
|
68
|
-
* still-attached watcher subscribed to the now-orphan
|
|
69
|
-
* persisted Data while writes (e.g. xhr callbacks
|
|
70
|
-
* using parent.context.data) target the new instance.
|
|
71
|
-
*/
|
|
72
|
-
_contextResumed: boolean;
|
|
73
63
|
/**
|
|
74
64
|
* This will resume the data during persistence.
|
|
75
65
|
*
|
|
@@ -314,6 +314,17 @@ export class Router {
|
|
|
314
314
|
* @returns {void}
|
|
315
315
|
*/
|
|
316
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;
|
|
317
328
|
/**
|
|
318
329
|
* This will scroll to a target element by CSS selector.
|
|
319
330
|
* For sticky elements, it scrolls to the position where the
|