vaderjs 2.3.19 → 2.3.20

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/index.ts +26 -1
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -1341,4 +1341,29 @@ export function useOnClickOutside(ref: { current: HTMLElement | null }, handler:
1341
1341
  document.removeEventListener("mousedown", listener, true);
1342
1342
  };
1343
1343
  }, [ref, handler]); // Keep ref in dependencies
1344
- }
1344
+ }
1345
+
1346
+ Window.prototype.Vader = {
1347
+ createElement,
1348
+ render,
1349
+ useState,
1350
+ useEffect,
1351
+ useLayoutEffect,
1352
+ useReducer,
1353
+ useContext,
1354
+ createContext,
1355
+ useMemo,
1356
+ useCallback,
1357
+ useRef,
1358
+ useStableRef,
1359
+ useArray,
1360
+ useInterval,
1361
+ useQuery,
1362
+ useWindowFocus,
1363
+ useLocalStorage,
1364
+ useOnClickOutside,
1365
+ Switch,
1366
+ Match,
1367
+ Show,
1368
+ component,
1369
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vaderjs",
3
- "version": "2.3.19",
3
+ "version": "2.3.20",
4
4
  "description": "A simple and powerful JavaScript library for building modern web applications.",
5
5
  "bin": {
6
6
  "vaderjs": "./main.ts"