@base-framework/base 3.7.69 → 3.7.70

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.
@@ -25,13 +25,22 @@ export class Router {
25
25
  */
26
26
  lastMatchedRoute: object | null;
27
27
  /**
28
- * Tracks the most recently applied scrollTo selector so we can
29
- * detect when navigation moves to a different scroll target
30
- * (a fresh page) versus staying within the same target group
31
- * (e.g. switching sibling tabs that share a sticky header).
32
- * @type {string|null}
28
+ * Identifier of the switch group that owned the most recently
29
+ * applied scroll-target intent. When the next target intent
30
+ * comes from the same group it is treated as a sibling-tab
31
+ * switch (snap-to-sticky); when it comes from a different group
32
+ * (or no group) it is treated as a fresh page navigation and
33
+ * the page is reset to the top first.
34
+ * @type {*}
33
35
  */
34
- lastScrollTarget: string | null;
36
+ lastScrollGroup: any;
37
+ /**
38
+ * Transient field set by `checkGroup` so `select` knows which
39
+ * switch group is currently asking for selection. Cleared after
40
+ * each group's iteration.
41
+ * @type {*}
42
+ */
43
+ currentGroupId: any;
35
44
  /**
36
45
  * Monotonic token used to cancel pending scroll-target waits
37
46
  * when a newer navigation begins.
@@ -244,9 +253,11 @@ export class Router {
244
253
  scrollIntent: {
245
254
  type: string;
246
255
  selector: any;
256
+ groupId: any;
247
257
  } | {
248
258
  type: string;
249
259
  selector?: undefined;
260
+ groupId?: undefined;
250
261
  };
251
262
  /**
252
263
  * Checks all switch groups against the given path.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/base",
3
- "version": "3.7.69",
3
+ "version": "3.7.70",
4
4
  "description": "This is a javascript framework.",
5
5
  "main": "./dist/base.js",
6
6
  "type": "module",