aleman 1.15.0 → 1.15.1

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/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2025.09.23, v1.15.1
2
+
3
+ fix:
4
+ - 92a0e34 aleman: menu: addons: k: jmp to bottom
5
+
1
6
  2025.09.23, v1.15.0
2
7
 
3
8
  feature:
@@ -53,7 +53,7 @@ export const splitAddons = (addons) => {
53
53
  };
54
54
  };
55
55
 
56
- export const addGlobalListeners = ({globalAddons, options, readState, writeState}) => {
56
+ export const addGlobalListeners = ({globalAddons, options, readState, writeState, document = globalThis.document}) => {
57
57
  for (const addon of globalAddons) {
58
58
  const events = maybeEvents(addon);
59
59
 
@@ -1,4 +1,4 @@
1
- <ul data-name="menu" className="menu menu-hidden">
1
+ <ul data-name="menu" className="menu" style="left: 0px; top: 20px;">
2
2
  <li data-name="menu-item" data-menu-index="0" className="menu-item icon icon-view menu-item-selected">
3
3
  <label data-menu-path="View">View</label>
4
4
  </li>
@@ -13,8 +13,8 @@ export function listener({count, state, options}) {
13
13
  let newIndex = insideSubmenu ? index : index - count + 1;
14
14
  let newSubmenuIndex = insideSubmenu ? submenuIndex - count + 1 : submenuIndex;
15
15
 
16
- if (newIndex < -1)
17
- newIndex = -1;
16
+ if (newIndex <= -1)
17
+ newIndex = 0;
18
18
 
19
19
  if (newSubmenuIndex < -1)
20
20
  newSubmenuIndex = -1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aleman",
3
- "version": "1.15.0",
3
+ "version": "1.15.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout-based framework for web",