New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@solid-primitives/active-element

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/active-element - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

38

package.json
{
"name": "@solid-primitives/active-element",
"version": "2.0.0",
"version": "2.0.1",
"description": "A reactive document.activeElement. Check which element is currently focused.",

@@ -38,9 +38,2 @@ "author": "Damian Tarnawski @thetarnav <gthetarnav@gmail.com>",

},
"scripts": {
"start": "vite serve dev --host",
"dev": "yarn start",
"build": "tsup",
"test": "uvu -r solid-register",
"test:watch": "watchlist src test -- npm test"
},
"keywords": [

@@ -53,12 +46,12 @@ "focus",

"devDependencies": {
"jsdom": "^19.0.0",
"prettier": "^2.6.2",
"solid-register": "^0.2.3",
"tslib": "^2.3.1",
"tsup": "^5.12.6",
"unocss": "0.31.12",
"uvu": "^0.5.3",
"vite": "2.9.5",
"vite-plugin-solid": "2.2.6",
"jsdom": "^20.0.0",
"prettier": "^2.7.1",
"solid-register": "^0.2.5",
"solid-testing-library": "^0.3.0",
"tslib": "^2.4.0",
"tsup": "^6.2.2",
"unocss": "^0.44.7",
"uvu": "^0.5.6",
"vite": "^3.0.7",
"vite-plugin-solid": "^2.3.0",
"watchlist": "^0.3.1"

@@ -70,5 +63,12 @@ },

"dependencies": {
"@solid-primitives/event-listener": "^2.0.0",
"@solid-primitives/utils": "^1.2.0"
"@solid-primitives/event-listener": "^2.2.1",
"@solid-primitives/utils": "^3.0.1"
},
"scripts": {
"start": "vite serve dev --host",
"dev": "npm run start",
"build": "tsup",
"test": "uvu -r solid-register",
"test:watch": "watchlist src test -- npm test"
}
}

@@ -7,3 +7,3 @@ <p>

[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg?style=for-the-badge)](https://lerna.js.org/)
[![turborepo](https://img.shields.io/badge/built%20with-turborepo-cc00ff.svg?style=for-the-badge&logo=turborepo)](https://turborepo.org/)
[![size](https://img.shields.io/bundlephobia/minzip/@solid-primitives/active-element?style=for-the-badge)](https://bundlephobia.com/package/@solid-primitives/active-element)

@@ -37,2 +37,4 @@ [![size](https://img.shields.io/npm/v/@solid-primitives/active-element?style=for-the-badge)](https://www.npmjs.com/package/@solid-primitives/active-element)

###### Added id `@2.0.0`
Attaches event listeners to window, listening for the changes of the `document.activeElement`.

@@ -58,2 +60,4 @@

###### Added id `@2.0.0`
Attaches "blur" and "focus" event listeners to the element.

@@ -146,3 +150,3 @@

```ts
Directive<(isActive: boolean) => void>
Directive<(isActive: boolean) => void>;
```

@@ -156,27 +160,2 @@

<details>
<summary><b>Expand Changelog</b></summary>
1.0.0
Initial release as a Stage-2 primitive.
1.0.1
Updated event listener and util dependencies.
1.0.2
Updated to Solid 1.3
2.0.0 - **stage-3**
[PR#113](https://github.com/solidjs-community/solid-primitives/pull/113)
Renamed `createIsElementActive` to `createFocusSignal` and `isElementActive` directive to `focus`.
Add `makeActiveElementListener` & `makeFocusListener` non-reactive primitives.
Removed clear() functions from reactive primitives.
</details>
See [CHANGELOG.md](./CHANGELOG.md)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc