@base-framework/base 3.7.35 → 3.7.38

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.
@@ -62,11 +62,12 @@ export class Component extends Unit {
62
62
  stateHelper: any;
63
63
  /**
64
64
  * This will resume the data by preferring the fresh data
65
- * instance from setData(). This preserves closure references
66
- * (e.g. from atoms with { data: localVar }) and ensures
67
- * fresh prop-derived values take priority over stale
68
- * persisted values. Falls back to persisted data when
69
- * setData() returns nothing.
65
+ * instance from setData(). Persisted stage values fill in
66
+ * any gaps the fresh data does not cover, but fresh values
67
+ * always win on conflicts. This preserves closure references
68
+ * (e.g. from atoms with { data: localVar }) while keeping
69
+ * accumulated persisted state for properties the fresh data
70
+ * does not re-initialize.
70
71
  *
71
72
  * @protected
72
73
  * @param {object|null} persistedData
@@ -222,6 +222,17 @@ export class Router {
222
222
  * @param {string} [path]
223
223
  */
224
224
  protected checkActiveRoutes(path?: string): void;
225
+ /**
226
+ * Reset scroll intent before checking routes.
227
+ * Routes will set this during select().
228
+ */
229
+ scrollIntent: {
230
+ type: string;
231
+ selector: any;
232
+ } | {
233
+ type: string;
234
+ selector?: undefined;
235
+ };
225
236
  /**
226
237
  * Checks all switch groups against the given path.
227
238
  * Activates the first matching route or falls back to the first route in the group if none match.
@@ -265,6 +276,13 @@ export class Router {
265
276
  * @returns {void}
266
277
  */
267
278
  select(route: object): void;
279
+ /**
280
+ * This will apply the collected scroll intent after all
281
+ * routes and switches have been processed.
282
+ *
283
+ * @returns {void}
284
+ */
285
+ applyScrollIntent(): void;
268
286
  /**
269
287
  * This will scroll to a target element by CSS selector.
270
288
  * If the current scroll position is at or below the target,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/base",
3
- "version": "3.7.35",
3
+ "version": "3.7.38",
4
4
  "description": "This is a javascript framework.",
5
5
  "main": "./dist/base.js",
6
6
  "type": "module",