@zag-js/remove-scroll
Advanced tools
Comparing version 0.70.0 to 0.71.0
@@ -1,27 +0,6 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
'use strict'; | ||
var domQuery = require('@zag-js/dom-query'); | ||
// src/index.ts | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
preventBodyScroll: () => preventBodyScroll | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
var import_dom_query = require("@zag-js/dom-query"); | ||
var LOCK_CLASSNAME = "data-zag-scroll-lock"; | ||
@@ -84,3 +63,3 @@ function assignStyle(el, style) { | ||
}; | ||
const cleanups = [setScrollbarWidthProperty(), (0, import_dom_query.isIos)() ? setIOSStyle() : setStyle()]; | ||
const cleanups = [setScrollbarWidthProperty(), domQuery.isIos() ? setIOSStyle() : setStyle()]; | ||
return () => { | ||
@@ -91,6 +70,3 @@ cleanups.forEach((fn) => fn?.()); | ||
} | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
preventBodyScroll | ||
}); | ||
//# sourceMappingURL=index.js.map | ||
exports.preventBodyScroll = preventBodyScroll; |
{ | ||
"name": "@zag-js/remove-scroll", | ||
"version": "0.70.0", | ||
"version": "0.71.0", | ||
"description": "JavaScript utility to remove scroll on body", | ||
@@ -16,4 +16,3 @@ "keywords": [ | ||
"files": [ | ||
"dist", | ||
"src" | ||
"dist" | ||
], | ||
@@ -24,3 +23,3 @@ "publishConfig": { | ||
"dependencies": { | ||
"@zag-js/dom-query": "0.70.0" | ||
"@zag-js/dom-query": "0.71.0" | ||
}, | ||
@@ -47,3 +46,3 @@ "devDependencies": { | ||
"build": "tsup", | ||
"test": "jest --config ../../../jest.config.js --rootDir tests", | ||
"test": "vitest", | ||
"lint": "eslint src", | ||
@@ -50,0 +49,0 @@ "test-ci": "pnpm test --ci --runInBand -u", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7619
7
135
+ Added@zag-js/dom-query@0.71.0(transitive)
- Removed@zag-js/dom-query@0.70.0(transitive)
Updated@zag-js/dom-query@0.71.0