Socket
Socket
Sign inDemoInstall

@zag-js/dismissable

Package Overview
Dependencies
Maintainers
1
Versions
747
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/dismissable - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

41

dist/index.js

@@ -1,28 +0,2 @@

"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);
// src/index.ts
var src_exports = {};
__export(src_exports, {
trackDismissableElement: () => trackDismissableElement
});
module.exports = __toCommonJS(src_exports);
// ../dom/dist/index.mjs
// ../dom/dist/index.js
var runIfFn = (v, ...a) => {

@@ -68,5 +42,7 @@ const res = typeof v === "function" ? v(...a) : v;

// src/dismissable-layer.ts
var import_interact_outside = require("@zag-js/interact-outside");
import {
trackInteractOutside
} from "@zag-js/interact-outside";
// ../core/dist/index.mjs
// ../core/dist/index.js
function warn(...a) {

@@ -243,3 +219,3 @@ const m = a.length === 1 ? a[0] : a[1];

trackEscapeKeydown(onEscapeKeyDown),
(0, import_interact_outside.trackInteractOutside)(node, { exclude, onFocusOutside, onPointerDownOutside })
trackInteractOutside(node, { exclude, onFocusOutside, onPointerDownOutside })
];

@@ -253,5 +229,4 @@ return () => {

}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
export {
trackDismissableElement
});
};

14

package.json
{
"type": "module",
"name": "@zag-js/dismissable",
"version": "0.1.4",
"version": "0.1.5",
"description": "Dismissable layer utilities for the DOM",

@@ -18,3 +19,2 @@ "keywords": [

"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",

@@ -30,7 +30,7 @@ "repository": "https://github.com/chakra-ui/zag/tree/main/packages/utilities/interact-outside",

"dependencies": {
"@zag-js/interact-outside": "0.1.4"
"@zag-js/interact-outside": "0.1.5"
},
"devDependencies": {
"@zag-js/dom-utils": "0.1.11",
"@zag-js/utils": "0.1.4"
"@zag-js/dom-utils": "0.1.12",
"@zag-js/utils": "0.1.5"
},

@@ -41,5 +41,5 @@ "bugs": {

"scripts": {
"build-fast": "tsup src/index.ts --format=esm,cjs",
"build-fast": "tsup src/index.ts --format=esm",
"start": "pnpm build --watch",
"build": "tsup src/index.ts --format=esm,cjs --dts",
"build": "tsup src/index.ts --format=esm --dts",
"test": "jest --config ../../../jest.config.js --rootDir tests",

@@ -46,0 +46,0 @@ "lint": "eslint src --ext .ts,.tsx",

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