Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@solid-primitives/mouse

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/mouse - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

dist/chunk-GJM65HMJ.js

2

dist/index.js

@@ -10,3 +10,3 @@ import {

useMousePosition
} from "./chunk-MOSNKDWK.js";
} from "./chunk-GJM65HMJ.js";
export {

@@ -13,0 +13,0 @@ createMousePosition,

@@ -7,3 +7,3 @@ import {

getPositionToScreen
} from "./chunk-MOSNKDWK.js";
} from "./chunk-GJM65HMJ.js";

@@ -10,0 +10,0 @@ // src/server.ts

{
"name": "@solid-primitives/mouse",
"version": "2.0.0",
"version": "2.0.1",
"description": "A collection of Solid Primitives, that capture current mouse cursor position, and help to deal with common related usecases.",

@@ -38,9 +38,2 @@ "author": "Damian Tarnawski <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": [

@@ -54,12 +47,12 @@ "mouse",

"devDependencies": {
"@solid-primitives/raf": "^2.1.0",
"jsdom": "^19.0.0",
"prettier": "^2.6.2",
"solid-register": "^0.2.3",
"@solid-primitives/raf": "^2.1.1",
"jsdom": "^20.0.0",
"prettier": "^2.7.1",
"solid-register": "^0.2.5",
"tslib": "^2.4.0",
"tsup": "^5.12.6",
"unocss": "0.31.13",
"uvu": "^0.5.3",
"vite": "2.9.5",
"vite-plugin-solid": "2.2.6",
"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"

@@ -71,6 +64,13 @@ },

"dependencies": {
"@solid-primitives/event-listener": "^2.0.0",
"@solid-primitives/rootless": "^1.1.0",
"@solid-primitives/utils": "^1.2.0"
"@solid-primitives/event-listener": "^2.2.1",
"@solid-primitives/rootless": "^1.1.2",
"@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/mouse?style=for-the-badge)](https://bundlephobia.com/package/@solid-primitives/mouse)

@@ -75,3 +75,3 @@ [![size](https://img.shields.io/npm/v/@solid-primitives/mouse?style=for-the-badge)](https://www.npmjs.com/package/@solid-primitives/mouse)

This primitive providea a [shared root](https://github.com/solidjs-community/solid-primitives/tree/main/packages/rootless#createSharedRoot) variant that will listen to window mouse position, and reuse event listeners and signals across dependents.
This primitive provides a [shared root](https://github.com/solidjs-community/solid-primitives/tree/main/packages/rootless#createSharedRoot) variant that will listen to window mouse position, and reuse event listeners and signals across dependents.

@@ -134,2 +134,4 @@ ```ts

###### Added id `@2.0.0`
Attaches event listeners to provided targat, listeneing for changes to the mouse/touch position.

@@ -145,2 +147,4 @@

###### Added id `@2.0.0`
Attaches event listeners to provided targat, listening for mouse/touch entering/leaving the element.

@@ -186,33 +190,2 @@

<details>
<summary><b>Expand Changelog</b></summary>
1.0.0
Release as a Stage-2 primitive.
1.0.1
Updated util and event-listener dependencies.
1.0.2
Upgraded to Solid 1.3
2.0.0 - **stage-3**
[PR#113](https://github.com/solidjs-community/solid-primitives/pull/113)
Removed `createMouseInElement`, `createMouseOnScreen`
Renamed:
- `posRelativeToElement` -> `getPositionToElement`
- `posRelativeToScreen` -> `getPositionToScreen`
- `createMouseToElement` -> `createPositionToElement`
Added `makeMousePositionListener`, `makeMouseInsideListener` and `getPositionInElement`
Removed clear() and update() functions from reactive primitives. `createPositionToElement` now only takes accessor position.
</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