jails-js 6.5.1 → 6.5.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.
Files changed (2) hide show
  1. package/package.json +6 -2
  2. package/types.d.ts +5 -5
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "jails-js",
3
- "version": "6.5.1",
3
+ "version": "6.5.2",
4
4
  "description": "Jails - Elegant and Minimalistic Javascript Application Library",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/jails.js",
7
7
  "exports": {
8
- "./html": "./html.js",
8
+ "./html": {
9
+ "types": "./types.d.ts",
10
+ "import": "./html.js",
11
+ "require": "./html.js"
12
+ },
9
13
  ".": {
10
14
  "types": "./types.d.ts",
11
15
  "import": "./dist/index.js",
package/types.d.ts CHANGED
@@ -1,3 +1,8 @@
1
+ declare module 'jails-js/html' {
2
+ export function html(strings: TemplateStringsArray, ...values: any[]): string;
3
+ export function attributes(strings: TemplateStringsArray, ...values: any[]): string;
4
+ }
5
+
1
6
  type EventCallback = ( Event: Event, data?:any ) => void
2
7
 
3
8
  export declare const templateConfig: (options: any) => void;
@@ -41,11 +46,6 @@ export type Component = {
41
46
 
42
47
  dataset( key: string ) : any
43
48
 
44
- attr( target?: HTMLElement ) : {
45
- change : ( attribute: string, callback: Function ) => void
46
- disconnect : ( callback: Function ) => void
47
- }
48
-
49
49
  }
50
50
 
51
51
  export type Model = {