aleman 1.1.38 → 1.1.40

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,13 @@
1
+ 2025.08.30, v1.1.40
2
+
3
+ feature:
4
+ - 55cd365 aleman: menu: f9: get rid of
5
+
6
+ 2025.08.30, v1.1.39
7
+
8
+ fix:
9
+ - 01ad494 menu: importmap: json -> js
10
+
1
11
  2025.08.30, v1.1.38
2
12
 
3
13
  fix:
@@ -11,7 +11,7 @@ export const listener = ({event, state, options}) => {
11
11
  ...state,
12
12
  position: {
13
13
  x: event.clientX,
14
- y: event.clientY - 10,
14
+ y: event.clientY,
15
15
  },
16
16
  });
17
17
 
@@ -21,7 +21,7 @@ export const listener = ({event, state, options}) => {
21
21
  command,
22
22
  position: {
23
23
  x: event.clientX,
24
- y: event.clientY - 14,
24
+ y: event.clientY - 10,
25
25
  },
26
26
  };
27
27
  };
@@ -3,7 +3,6 @@ import * as click from './click.js';
3
3
  import * as escape from './escape.js';
4
4
  import * as down from './down.js';
5
5
  import * as up from './up.js';
6
- import * as f9 from './f9.js';
7
6
  import * as enter from './enter.js';
8
7
 
9
8
  export const addons = [
@@ -12,6 +11,5 @@ export const addons = [
12
11
  escape,
13
12
  down,
14
13
  up,
15
- f9,
16
14
  enter,
17
15
  ];
@@ -0,0 +1,7 @@
1
+ export const importmap = {
2
+ imports: {
3
+ 'putout': 'https://esm.sh/@putout/bundle',
4
+ '@putout/processor-html': 'https://esm.sh/@putout/processor-html',
5
+ 'fullstore': 'https://esm.sh/fullstore',
6
+ },
7
+ };
package/menu/menu.js CHANGED
@@ -74,11 +74,7 @@ async function createMap() {
74
74
 
75
75
  const script = document.createElement('script');
76
76
 
77
- const {default: importmap} = await import('./importmap.json', {
78
- with: {
79
- type: 'json',
80
- },
81
- });
77
+ const {importmap} = await import('./importmap.js');
82
78
 
83
79
  script.dataset.name = name;
84
80
  script.type = 'importmap';
@@ -2,12 +2,10 @@ import {template, operator} from 'putout';
2
2
  import {checkDataName} from '../check-data-name.js';
3
3
 
4
4
  const {setLiteralValue} = operator;
5
-
6
- const isObject = (a) => a && typeof a === 'object';
7
-
8
5
  const {entries} = Object;
9
6
 
10
7
  const noop = () => {};
8
+ const isObject = (a) => a && typeof a === 'object';
11
9
 
12
10
  export const report = () => `Build menu`;
13
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aleman",
3
- "version": "1.1.38",
3
+ "version": "1.1.40",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout-based framework for web",
package/menu/addons/f9.js DELETED
@@ -1,14 +0,0 @@
1
- export const key = 'F9';
2
-
3
- export const filter = ({state, options}) => {
4
- const {beforeShow} = options;
5
-
6
- if (!beforeShow)
7
- return true;
8
-
9
- return options.beforeShow?.(state);
10
- };
11
-
12
- export const listener = () => ({
13
- command: 'show',
14
- });
@@ -1,7 +0,0 @@
1
- {
2
- "imports": {
3
- "putout": "https://esm.sh/@putout/bundle",
4
- "@putout/processor-html": "https://esm.sh/@putout/processor-html",
5
- "fullstore": "https://esm.sh/fullstore"
6
- }
7
- }