wdwh 1.11.2 → 1.12.0

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/hooks.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export declare function useRefresh(): () => void;
2
+ export declare function useConst<T>(value: T): T;
3
+ export declare function useHover(): (boolean | {
4
+ onMouseEnter: () => void;
5
+ onMouseLeave: () => void;
6
+ })[];
package/hooks.js ADDED
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{useState as t}from"react";function s(){let e=t(!1)[1];return()=>e((o)=>!o)}function n(e){return t(e)[0]}function u(){let[e,o]=t(!1);return[e,{onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1)}]}export{s as useRefresh,u as useHover,n as useConst};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wdwh",
3
- "version": "1.11.2",
3
+ "version": "1.12.0",
4
4
  "author": "kubashh",
5
5
  "description": "The Bun framework. Easyer web dev without html for static sites",
6
6
  "license": "MIT",
@@ -19,13 +19,16 @@
19
19
  "LICENSE",
20
20
  "README.md",
21
21
  "dist",
22
- "index.d.ts",
22
+ "config.d.ts",
23
+ "hooks.js",
24
+ "hooks.d.ts",
23
25
  "signal.js",
24
26
  "signal.d.ts"
25
27
  ],
26
28
  "scripts": {
27
- "build": "bun scripts.ts",
28
- "pub": "bun scripts.ts pub"
29
+ "build": "bun dev/scripts.ts",
30
+ "pub": "bun dev/scripts.ts pub",
31
+ "zip": "zip -r template/template.zip template/template"
29
32
  },
30
33
  "bin": {
31
34
  "wdwh": "./wdwh.js"
File without changes