aleman 2.0.1 → 2.0.2

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,9 @@
1
+ 2026.05.20, v2.0.2
2
+
3
+ feature:
4
+ - 7f9bf78 aleman: montag v2.0.1
5
+ - 2d9be72 aleman: supertape v13.2.0
6
+
1
7
  2026.04.04, v2.0.1
2
8
 
3
9
  fix:
package/README.md CHANGED
@@ -27,12 +27,12 @@ Aleman supports two main concepts:
27
27
  - ✅ addons - events;
28
28
  - ✅ rules - 🐊**Putout** rules that changes HTML;
29
29
 
30
- All interaction with DOM made using rules, and we interact not with DOM directly, but with JSX AST.
30
+ All interaction with DOM made by using the rules, and we interact not with DOM directly, but with JSX AST.
31
31
  It makes testing simple, states predictable and independent.
32
32
 
33
33
  ### Addons
34
34
 
35
- Addon responsible for UI and interfaction with outer world: clicks, fetches and everything like this.
35
+ Addon responsible for UI and interaction with outer world: clicks, fetches and everything like this.
36
36
  Aleman supports next types of addons:
37
37
 
38
38
  - ✅ [Global](#globals);
package/menu/importmap.js CHANGED
@@ -5,4 +5,4 @@ export const importmap = {
5
5
  'fullstore': 'https://esm.sh/fullstore',
6
6
  'jessy': 'https://esm.sh/jessy',
7
7
  },
8
- };
8
+ };
@@ -35,6 +35,7 @@ export const traverse = ({options, push}) => ({
35
35
  name = 'menu',
36
36
  position = {},
37
37
  } = options;
38
+
38
39
  const {
39
40
  x = 0,
40
41
  y = 20,
@@ -36,6 +36,7 @@ export const traverse = ({options, push}) => ({
36
36
  insideSubmenu = true,
37
37
  submenuIndex = 1,
38
38
  } = options;
39
+
39
40
  const parentMenu = path.parentPath.parentPath.parentPath;
40
41
 
41
42
  if (!isJSXElement(parentMenu))
@@ -1,7 +1,6 @@
1
1
  import * as click from './click/click.js';
2
2
  import * as escape from './escape/escape.js';
3
3
  import * as down from './down/down.js';
4
- import * as up from './up.js';
5
4
  import * as enter from './enter/enter.js';
6
5
  import * as left from './left.js';
7
6
  import * as right from './right.js';
@@ -9,6 +8,9 @@ import * as shiftG from './shift-g/shift-g.js';
9
8
  import * as gg from './gg/gg.js';
10
9
  import * as j from './j/j.js';
11
10
  import * as k from './k/k.js';
11
+ import up from './up.json' with {
12
+ type: 'json',
13
+ };
12
14
 
13
15
  export const addons = [
14
16
  click,
package/nemo/addons/up.js CHANGED
@@ -3,5 +3,6 @@ import {updateState} from '../state/state.js';
3
3
  export const keys = ['ArrowUp'];
4
4
 
5
5
  export const preventDefault = true;
6
+ export const action = 'up';
6
7
 
7
8
  export const listener = ({state, options}) => updateState('up', state, options);
@@ -0,0 +1,5 @@
1
+ {
2
+ "action": "up",
3
+ "keys": ["ArrowUp"],
4
+ "preventDefault": true
5
+ }
@@ -35,6 +35,7 @@ export const traverse = ({options, push}) => ({
35
35
  name = 'menu',
36
36
  position = {},
37
37
  } = options;
38
+
38
39
  const {
39
40
  x = 0,
40
41
  y = 20,
@@ -36,6 +36,7 @@ export const traverse = ({options, push}) => ({
36
36
  insideSubmenu = true,
37
37
  submenuIndex = 1,
38
38
  } = options;
39
+
39
40
  const parentMenu = path.parentPath.parentPath.parentPath;
40
41
 
41
42
  if (!isJSXElement(parentMenu))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aleman",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout-based framework for web",
@@ -49,10 +49,10 @@
49
49
  "eslint-plugin-putout": "^31.1.2",
50
50
  "just-kebab-case": "^4.2.0",
51
51
  "madrun": "^13.0.1",
52
- "montag": "^1.2.1",
52
+ "montag": "^2.0.1",
53
53
  "nodemon": "^3.0.1",
54
54
  "superc8": "^12.3.1",
55
- "supertape": "^12.0.12",
55
+ "supertape": "^13.2.0",
56
56
  "try-catch": "^4.0.7"
57
57
  },
58
58
  "license": "MIT",