@base-framework/base 3.7.36 → 3.7.39

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,12 +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(). 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.
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.
70
74
  *
71
75
  * @protected
72
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.36",
3
+ "version": "3.7.39",
4
4
  "description": "This is a javascript framework.",
5
5
  "main": "./dist/base.js",
6
6
  "type": "module",