@zag-js/popper 0.0.0-dev-20220703123907 → 0.0.0-dev-20220704094417
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -57,6 +57,9 @@ var callAll = (...fns) => (...a) => {
|
|
|
57
57
|
var import_dom = require("@floating-ui/dom");
|
|
58
58
|
|
|
59
59
|
// ../dom/dist/index.mjs
|
|
60
|
+
function isHTMLElement(v) {
|
|
61
|
+
return typeof v === "object" && (v == null ? void 0 : v.nodeType) === Node.ELEMENT_NODE && typeof (v == null ? void 0 : v.nodeName) === "string";
|
|
62
|
+
}
|
|
60
63
|
var hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
|
|
61
64
|
var runIfFn = (v, ...a) => {
|
|
62
65
|
const res = typeof v === "function" ? v(...a) : v;
|
|
@@ -70,9 +73,6 @@ function addDomEvent(target, eventName, handler, options) {
|
|
|
70
73
|
node == null ? void 0 : node.removeEventListener(eventName, handler, options);
|
|
71
74
|
};
|
|
72
75
|
}
|
|
73
|
-
function isHTMLElement(v) {
|
|
74
|
-
return typeof v === "object" && (v == null ? void 0 : v.nodeType) === Node.ELEMENT_NODE && typeof (v == null ? void 0 : v.nodeName) === "string";
|
|
75
|
-
}
|
|
76
76
|
function getObservedElements() {
|
|
77
77
|
;
|
|
78
78
|
globalThis.__rectObserverMap__ = globalThis.__rectObserverMap__ || /* @__PURE__ */ new Map();
|
package/dist/index.mjs
CHANGED
|
@@ -34,6 +34,9 @@ var callAll = (...fns) => (...a) => {
|
|
|
34
34
|
import { getOverflowAncestors } from "@floating-ui/dom";
|
|
35
35
|
|
|
36
36
|
// ../dom/dist/index.mjs
|
|
37
|
+
function isHTMLElement(v) {
|
|
38
|
+
return typeof v === "object" && (v == null ? void 0 : v.nodeType) === Node.ELEMENT_NODE && typeof (v == null ? void 0 : v.nodeName) === "string";
|
|
39
|
+
}
|
|
37
40
|
var hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
|
|
38
41
|
var runIfFn = (v, ...a) => {
|
|
39
42
|
const res = typeof v === "function" ? v(...a) : v;
|
|
@@ -47,9 +50,6 @@ function addDomEvent(target, eventName, handler, options) {
|
|
|
47
50
|
node == null ? void 0 : node.removeEventListener(eventName, handler, options);
|
|
48
51
|
};
|
|
49
52
|
}
|
|
50
|
-
function isHTMLElement(v) {
|
|
51
|
-
return typeof v === "object" && (v == null ? void 0 : v.nodeType) === Node.ELEMENT_NODE && typeof (v == null ? void 0 : v.nodeName) === "string";
|
|
52
|
-
}
|
|
53
53
|
function getObservedElements() {
|
|
54
54
|
;
|
|
55
55
|
globalThis.__rectObserverMap__ = globalThis.__rectObserverMap__ || /* @__PURE__ */ new Map();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/popper",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20220704094417",
|
|
4
4
|
"description": "Dynamic positioning logic for ui machines",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@floating-ui/dom": "0.5.
|
|
29
|
-
"@zag-js/dom-utils": "0.0.0-dev-
|
|
28
|
+
"@floating-ui/dom": "0.5.4",
|
|
29
|
+
"@zag-js/dom-utils": "0.0.0-dev-20220704094417",
|
|
30
30
|
"@zag-js/utils": "0.1.2"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|