@base-framework/base 3.7.38 → 3.7.40

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.
@@ -61,13 +61,16 @@ export class Component extends Unit {
61
61
  }): void;
62
62
  stateHelper: any;
63
63
  /**
64
- * This will resume the data by preferring the fresh data
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.
64
+ * This will resume the data during persistence. If setData()
65
+ * returns the same object reference as the persisted data,
66
+ * or returns nothing, we keep the persisted data as-is
67
+ * (preserving accumulated state like list items).
68
+ *
69
+ * If setData() returns a different object (e.g. an atom's
70
+ * closure created a new Data instance), we use that fresh
71
+ * instance so closure references stay valid, and merge
72
+ * any persisted properties that the fresh data does not
73
+ * already define.
71
74
  *
72
75
  * @protected
73
76
  * @param {object|null} persistedData
@@ -285,8 +285,9 @@ export class Router {
285
285
  applyScrollIntent(): void;
286
286
  /**
287
287
  * This will scroll to a target element by CSS selector.
288
- * If the current scroll position is at or below the target,
289
- * it scrolls the target to the top of the viewport.
288
+ * For sticky elements, it scrolls to the position where the
289
+ * element reaches its stuck point (natural position minus CSS top).
290
+ * If the user is above the target, no scrolling occurs.
290
291
  *
291
292
  * @param {string} selector
292
293
  * @returns {void}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/base",
3
- "version": "3.7.38",
3
+ "version": "3.7.40",
4
4
  "description": "This is a javascript framework.",
5
5
  "main": "./dist/base.js",
6
6
  "type": "module",