@esportsplus/template 0.15.8 → 0.15.9

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.

Potentially problematic release.


This version of @esportsplus/template might be problematic. Click here for more details.

package/build/types.d.ts CHANGED
@@ -4,9 +4,10 @@ import { firstChild } from './utilities.js';
4
4
  import attributes from './attributes.js';
5
5
  import event from './event.js';
6
6
  import slot from './slot.js';
7
+ type Attribute = Primitive | Effect<Primitive | Primitive[]>;
7
8
  type Attributes = {
8
- class?: string | Effect<Primitive | Primitive[]> | (string | Effect<Primitive | Primitive[]>)[];
9
- style?: string | Effect<Primitive | Primitive[]> | (string | Effect<Primitive | Primitive[]>)[];
9
+ class?: Attribute | Attribute[];
10
+ style?: Attribute | Attribute[];
10
11
  } & {
11
12
  [K in keyof GlobalEventHandlersEventMap as `on${string & K}`]?: (this: Element, event: GlobalEventHandlersEventMap[K]) => void;
12
13
  } & {
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "private": false,
14
14
  "type": "module",
15
15
  "types": "./build/index.d.ts",
16
- "version": "0.15.8",
16
+ "version": "0.15.9",
17
17
  "scripts": {
18
18
  "build": "tsc && tsc-alias",
19
19
  "-": "-"
package/src/types.ts CHANGED
@@ -6,9 +6,11 @@ import event from './event';
6
6
  import slot from './slot';
7
7
 
8
8
 
9
+ type Attribute = Primitive | Effect<Primitive | Primitive[]>;
10
+
9
11
  type Attributes = {
10
- class?: string | Effect<Primitive | Primitive[]> | (string | Effect<Primitive | Primitive[]>)[];
11
- style?: string | Effect<Primitive | Primitive[]> | (string | Effect<Primitive | Primitive[]>)[];
12
+ class?: Attribute | Attribute[];
13
+ style?: Attribute | Attribute[];
12
14
  } & {
13
15
  [K in keyof GlobalEventHandlersEventMap as `on${string & K}`]?: (this: Element, event: GlobalEventHandlersEventMap[K]) => void;
14
16
  } & {