svelte-log-view 6.3.64 → 6.4.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-log-view",
3
- "version": "6.3.64",
3
+ "version": "6.4.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -13,16 +13,16 @@
13
13
  */
14
14
 
15
15
  let {
16
- source, /** data source */
17
- visibleRows = 24, /** number of rows in the dom */
18
- offsetRows = $bindable(0), /** number of rows from the top to the 1st. visible */
16
+ source, /** data source */
17
+ visibleRows = $bindable(24), /** number of rows in the dom */
18
+ offsetRows = $bindable(0), /** number of rows from the top to the 1st. visible */
19
19
  follow = $bindable(true),
20
20
  selected = $bindable(0),
21
21
  fetchAboveRows = 2, /** number of rows to fetch if scrolling upwards into the void */
22
22
  row
23
23
  } = $props();
24
24
 
25
- let entries = [];
25
+ const entries = [];
26
26
  let visible = $state(entries);
27
27
  let content;
28
28
 
@@ -53,7 +53,6 @@
53
53
 
54
54
  if (follow) {
55
55
  setSelected(entries.length - 1);
56
-
57
56
  current = entries[entries.length - 1];
58
57
  }
59
58
  }
@@ -121,10 +120,12 @@
121
120
  setFollow(false);
122
121
  setSelected(selected + visibleRows);
123
122
  break;
123
+ case "End":
124
124
  case "G":
125
125
  setFollow(false);
126
126
  setSelected(entries.length - 1);
127
127
  break;
128
+ case "Home":
128
129
  case "g":
129
130
  setFollow(false);
130
131
  setSelected(0);