@solid-primitives/active-element
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -0,3 +1,3 @@ | ||
import { JSX, Accessor } from 'solid-js'; | ||
import { MaybeAccessor, Directive } from '@solid-primitives/utils'; | ||
import { JSX, Accessor } from 'solid-js'; | ||
@@ -4,0 +4,0 @@ declare module "solid-js" { |
@@ -0,9 +1,5 @@ | ||
import { createSignal } from 'solid-js'; | ||
import { makeEventListener, createEventListener } from '@solid-primitives/event-listener'; | ||
import { createSignal } from 'solid-js'; | ||
// src/index.ts | ||
console.log("0"); | ||
console.log("1"); | ||
console.log("2"); | ||
console.log("3"); | ||
var getActiveElement = () => document.activeElement === document.body ? null : document.activeElement; | ||
@@ -10,0 +6,0 @@ function makeActiveElementListener(callback) { |
@@ -0,9 +1,5 @@ | ||
import 'solid-js'; | ||
import '@solid-primitives/event-listener'; | ||
import 'solid-js'; | ||
// src/index.ts | ||
console.log("0"); | ||
console.log("1"); | ||
console.log("2"); | ||
console.log("3"); | ||
function makeActiveElementListener(callback) { | ||
@@ -10,0 +6,0 @@ { |
{ | ||
"name": "@solid-primitives/active-element", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "A reactive document.activeElement. Check which element is currently focused.", | ||
@@ -61,3 +61,3 @@ "author": "Damian Tarnawski @thetarnav <gthetarnav@gmail.com>", | ||
"devDependencies": { | ||
"solid-js": "^1.5.0", | ||
"solid-js": "^1.6.0", | ||
"solid-testing-library": "^0.3.0" | ||
@@ -70,3 +70,3 @@ }, | ||
"peerDependencies": { | ||
"solid-js": "^1.5.0" | ||
"solid-js": "^1.6.0" | ||
}, | ||
@@ -73,0 +73,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15040
200