@diceui/shared
Advanced tools
+15
-13
@@ -173,2 +173,17 @@ 'use strict'; | ||
| } | ||
| // src/lib/dock.ts | ||
| function getOwnerDocument(node) { | ||
| return node ? node.ownerDocument : document; | ||
| } | ||
| function getOwnerWindow(node) { | ||
| const doc = getOwnerDocument(node); | ||
| return doc ? doc.defaultView : window; | ||
| } | ||
| function getOwnerDocumentOrWindow(node) { | ||
| const doc = getOwnerDocument(node); | ||
| return doc ? doc : window; | ||
| } | ||
| // src/hooks/use-dismiss.ts | ||
| function useDismiss(params) { | ||
@@ -858,15 +873,2 @@ const { | ||
| // src/lib/dock.ts | ||
| function getOwnerDocument(node) { | ||
| return node ? node.ownerDocument : document; | ||
| } | ||
| function getOwnerWindow(node) { | ||
| const doc = getOwnerDocument(node); | ||
| return doc ? doc.defaultView : window; | ||
| } | ||
| function getOwnerDocumentOrWindow(node) { | ||
| const doc = getOwnerDocument(node); | ||
| return doc ? doc : window; | ||
| } | ||
| // src/components/presence.tsx | ||
@@ -873,0 +875,0 @@ var Presence = (props) => { |
+15
-13
@@ -151,2 +151,17 @@ import * as React24 from 'react'; | ||
| } | ||
| // src/lib/dock.ts | ||
| function getOwnerDocument(node) { | ||
| return node ? node.ownerDocument : document; | ||
| } | ||
| function getOwnerWindow(node) { | ||
| const doc = getOwnerDocument(node); | ||
| return doc ? doc.defaultView : window; | ||
| } | ||
| function getOwnerDocumentOrWindow(node) { | ||
| const doc = getOwnerDocument(node); | ||
| return doc ? doc : window; | ||
| } | ||
| // src/hooks/use-dismiss.ts | ||
| function useDismiss(params) { | ||
@@ -836,15 +851,2 @@ const { | ||
| // src/lib/dock.ts | ||
| function getOwnerDocument(node) { | ||
| return node ? node.ownerDocument : document; | ||
| } | ||
| function getOwnerWindow(node) { | ||
| const doc = getOwnerDocument(node); | ||
| return doc ? doc.defaultView : window; | ||
| } | ||
| function getOwnerDocumentOrWindow(node) { | ||
| const doc = getOwnerDocument(node); | ||
| return doc ? doc : window; | ||
| } | ||
| // src/components/presence.tsx | ||
@@ -851,0 +853,0 @@ var Presence = (props) => { |
+10
-6
| { | ||
| "name": "@diceui/shared", | ||
| "version": "0.0.1", | ||
| "main": "./src/index.ts", | ||
| "types": "./src/index.ts", | ||
| "version": "0.2.0", | ||
| "publishConfig": { | ||
| "access": "public" | ||
| }, | ||
| "main": "./dist/index.js", | ||
| "module": "./dist/index.mjs", | ||
| "types": "./dist/index.d.ts", | ||
| "exports": { | ||
| ".": { | ||
| "types": "./src/index.ts", | ||
| "import": "./src/index.ts", | ||
| "require": "./src/index.ts" | ||
| "types": "./dist/index.d.ts", | ||
| "import": "./dist/index.mjs", | ||
| "require": "./dist/index.js" | ||
| } | ||
@@ -12,0 +16,0 @@ }, |
| export * from "./components"; | ||
| export * from "./constants"; | ||
| export * from "./hooks"; | ||
| export * from "./lib"; | ||
| export * from "./types"; |
98067
0.02%7
-12.5%2322
-0.13%