@zag-js/tooltip 0.0.0-dev-20220626181040 → 0.0.0-dev-20220627213436

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 CHANGED
@@ -128,16 +128,16 @@ function raf(fn) {
128
128
  globalThis.cancelAnimationFrame(id);
129
129
  };
130
130
  }
131
- function getStyleCache() {
132
- ;
133
- globalThis.__styleCache__ = globalThis.__styleCache__ || /* @__PURE__ */ new WeakMap();
134
- return globalThis.__styleCache__;
131
+ function getCache() {
132
+ const g = globalThis;
133
+ g.__styleCache__ = g.__styleCache__ || /* @__PURE__ */ new WeakMap();
134
+ return g.__styleCache__;
135
135
  }
136
136
  function getComputedStyle(el) {
137
137
  var _a;
138
138
  if (!el)
139
139
  return {};
140
- const cache = getStyleCache();
140
+ const cache = getCache();
141
141
  let style = cache.get(el);
142
142
  if (!style) {
143
143
  const win = (_a = el == null ? void 0 : el.ownerDocument.defaultView) != null ? _a : window;
package/dist/index.mjs CHANGED
@@ -105,16 +105,16 @@ function raf(fn) {
105
105
  globalThis.cancelAnimationFrame(id);
106
106
  };
107
107
  }
108
- function getStyleCache() {
109
- ;
110
- globalThis.__styleCache__ = globalThis.__styleCache__ || /* @__PURE__ */ new WeakMap();
111
- return globalThis.__styleCache__;
108
+ function getCache() {
109
+ const g = globalThis;
110
+ g.__styleCache__ = g.__styleCache__ || /* @__PURE__ */ new WeakMap();
111
+ return g.__styleCache__;
112
112
  }
113
113
  function getComputedStyle(el) {
114
114
  var _a;
115
115
  if (!el)
116
116
  return {};
117
- const cache = getStyleCache();
117
+ const cache = getCache();
118
118
  let style = cache.get(el);
119
119
  if (!style) {
120
120
  const win = (_a = el == null ? void 0 : el.ownerDocument.defaultView) != null ? _a : window;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/tooltip",
3
- "version": "0.0.0-dev-20220626181040",
3
+ "version": "0.0.0-dev-20220627213436",
4
4
  "description": "Core logic for the tooltip widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -29,9 +29,9 @@
29
29
  "url": "https://github.com/chakra-ui/zag/issues"
30
30
  },
31
31
  "dependencies": {
32
- "@zag-js/core": "0.0.0-dev-20220626181040",
33
- "@zag-js/dom-utils": "0.0.0-dev-20220626181040",
34
- "@zag-js/popper": "0.0.0-dev-20220626181040",
32
+ "@zag-js/core": "0.0.0-dev-20220627213436",
33
+ "@zag-js/dom-utils": "0.0.0-dev-20220627213436",
34
+ "@zag-js/popper": "0.0.0-dev-20220627213436",
35
35
  "@zag-js/types": "0.2.0"
36
36
  },
37
37
  "scripts": {