@zag-js/dismissable
Advanced tools
Comparing version 0.0.0-dev-20220919164136 to 0.0.0-dev-20220928123644
@@ -1,2 +0,28 @@ | ||
// ../dom/dist/index.js | ||
"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 | ||
var runIfFn = (v, ...a) => { | ||
@@ -42,7 +68,5 @@ const res = typeof v === "function" ? v(...a) : v; | ||
// src/dismissable-layer.ts | ||
import { | ||
trackInteractOutside | ||
} from "@zag-js/interact-outside"; | ||
var import_interact_outside = require("@zag-js/interact-outside"); | ||
// ../core/dist/index.js | ||
// ../core/dist/index.mjs | ||
function warn(...a) { | ||
@@ -219,3 +243,3 @@ const m = a.length === 1 ? a[0] : a[1]; | ||
trackEscapeKeydown(onEscapeKeyDown), | ||
trackInteractOutside(node, { exclude, onFocusOutside, onPointerDownOutside }) | ||
(0, import_interact_outside.trackInteractOutside)(node, { exclude, onFocusOutside, onPointerDownOutside }) | ||
]; | ||
@@ -229,4 +253,5 @@ return () => { | ||
} | ||
export { | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
trackDismissableElement | ||
}; | ||
}); |
{ | ||
"type": "module", | ||
"name": "@zag-js/dismissable", | ||
"version": "0.0.0-dev-20220919164136", | ||
"version": "0.0.0-dev-20220928123644", | ||
"description": "Dismissable layer utilities for the DOM", | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"keywords": [ | ||
@@ -18,4 +20,2 @@ "js", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/utilities/interact-outside", | ||
@@ -30,7 +30,7 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@zag-js/interact-outside": "0.0.0-dev-20220919164136" | ||
"@zag-js/interact-outside": "0.0.0-dev-20220928123644" | ||
}, | ||
"devDependencies": { | ||
"@zag-js/dom-utils": "0.0.0-dev-20220919164136", | ||
"@zag-js/utils": "0.0.0-dev-20220919164136" | ||
"@zag-js/dom-utils": "0.0.0-dev-20220928123644", | ||
"@zag-js/utils": "0.0.0-dev-20220928123644" | ||
}, | ||
@@ -41,5 +41,5 @@ "bugs": { | ||
"scripts": { | ||
"build-fast": "tsup src/index.ts --format=esm", | ||
"build-fast": "tsup src/index.ts --format=esm,cjs", | ||
"start": "pnpm build --watch", | ||
"build": "tsup src/index.ts --format=esm --dts", | ||
"build": "tsup src/index.ts --format=esm,cjs --dts", | ||
"test": "jest --config ../../../jest.config.js --rootDir tests", | ||
@@ -46,0 +46,0 @@ "lint": "eslint src --ext .ts,.tsx", |
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
19610
6
482
3
No
+ Added@zag-js/interact-outside@0.0.0-dev-20220928123644(transitive)
- Removed@zag-js/interact-outside@0.0.0-dev-20220919164136(transitive)