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

@zag-js/text-selection

Package Overview
Dependencies
Maintainers
1
Versions
671
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/text-selection - npm Package Compare versions

Comparing version 0.0.0-dev-20230529122041 to 0.0.0-dev-20230529204626

2

dist/index.js

@@ -68,3 +68,3 @@ "use strict";

if (target && elementMap.has(target)) {
let prevUserSelect = elementMap.get(target);
const prevUserSelect = elementMap.get(target);
if (target.style.userSelect === "none") {

@@ -71,0 +71,0 @@ target.style.userSelect = prevUserSelect ?? "";

{
"name": "@zag-js/text-selection",
"version": "0.0.0-dev-20230529122041",
"version": "0.0.0-dev-20230529204626",
"description": "",

@@ -31,3 +31,3 @@ "keywords": [

"dependencies": {
"@zag-js/dom-query": "0.0.0-dev-20230529122041"
"@zag-js/dom-query": "0.0.0-dev-20230529204626"
},

@@ -34,0 +34,0 @@ "module": "dist/index.mjs",

@@ -7,3 +7,3 @@ import { isIos, nextTick, raf } from "@zag-js/dom-query"

let userSelect = ""
let elementMap = new WeakMap<HTMLElement, string>()
const elementMap = new WeakMap<HTMLElement, string>()

@@ -60,3 +60,3 @@ export type DisableTextSelectionOptions<T = MaybeElement> = {

if (target && elementMap.has(target)) {
let prevUserSelect = elementMap.get(target)
const prevUserSelect = elementMap.get(target)

@@ -63,0 +63,0 @@ if (target.style.userSelect === "none") {

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