@esportsplus/template 0.16.11 → 0.16.13

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.
@@ -167,7 +167,7 @@ const setList = (element, name, value, attributes = {}) => {
167
167
  if (v == null || v === false || v === '') {
168
168
  continue;
169
169
  }
170
- list(ctx, element, null, name, STATE_HYDRATING, v);
170
+ setList(element, name, v, attributes);
171
171
  }
172
172
  }
173
173
  };
@@ -7,13 +7,13 @@ import onresize from './onresize.js';
7
7
  import ontick from './ontick.js';
8
8
  let controllers = new Map(), host = window.document, keys = {}, passive = new Set([
9
9
  'animationend', 'animationiteration', 'animationstart',
10
- 'mousedown', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'mousewheel',
10
+ 'mousedown', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover', 'mouseup',
11
11
  'pointerenter', 'pointerleave', 'pointermove', 'pointerout', 'pointerover',
12
12
  'scroll',
13
13
  'touchcancel', 'touchend', 'touchleave', 'touchmove', 'touchstart', 'transitionend',
14
14
  'wheel'
15
15
  ]);
16
- ['mousemove', 'mousewheel', 'scroll', 'touchend', 'touchmove', 'touchstart', 'wheel'].map(event => {
16
+ ['mousemove', 'scroll', 'touchend', 'touchmove', 'touchstart', 'wheel'].map(event => {
17
17
  controllers.set(event, null);
18
18
  });
19
19
  function register(element, event) {
package/package.json CHANGED
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "type": "module",
41
41
  "types": "./build/index.d.ts",
42
- "version": "0.16.11",
42
+ "version": "0.16.13",
43
43
  "scripts": {
44
44
  "build": "tsc",
45
45
  "test": "vitest run",
package/src/attributes.ts CHANGED
@@ -259,7 +259,7 @@ const setList = (element: Element, name: 'class' | 'style', value: unknown, attr
259
259
  continue;
260
260
  }
261
261
 
262
- list(ctx, element, null, name, STATE_HYDRATING, v);
262
+ setList(element, name, v, attributes);
263
263
  }
264
264
  }
265
265
  };
@@ -13,7 +13,7 @@ let controllers = new Map<string, (AbortController & { listeners: number }) | nu
13
13
  keys: Record<string, symbol> = {},
14
14
  passive = new Set<string>([
15
15
  'animationend', 'animationiteration', 'animationstart',
16
- 'mousedown', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'mousewheel',
16
+ 'mousedown', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover', 'mouseup',
17
17
  'pointerenter', 'pointerleave', 'pointermove', 'pointerout', 'pointerover',
18
18
  'scroll',
19
19
  'touchcancel', 'touchend', 'touchleave', 'touchmove', 'touchstart', 'transitionend',
@@ -21,7 +21,7 @@ let controllers = new Map<string, (AbortController & { listeners: number }) | nu
21
21
  ]);
22
22
 
23
23
 
24
- (['mousemove', 'mousewheel', 'scroll', 'touchend', 'touchmove', 'touchstart', 'wheel'] as string[]).map(event => {
24
+ (['mousemove', 'scroll', 'touchend', 'touchmove', 'touchstart', 'wheel'] as string[]).map(event => {
25
25
  controllers.set(event, null);
26
26
  });
27
27