personal web client for Bluesky
typescript solidjs bluesky atcute

chore: patch floating-ui for some byte gain

mary.my.id 4fa838eb 76f38588

verified
+1
package.json
··· 45 45 }, 46 46 "pnpm": { 47 47 "patchedDependencies": { 48 + "@floating-ui/utils": "patches/@floating-ui__utils.patch", 48 49 "@tanstack/query-core@5.17.19": "patches/@tanstack__query-core@5.17.19.patch", 49 50 "solid-js": "patches/solid-js.patch", 50 51 "vite-plugin-pwa": "patches/vite-plugin-pwa.patch",
+39
patches/@floating-ui__utils.patch
··· 1 + diff --git a/dist/floating-ui.utils.dom.mjs b/dist/floating-ui.utils.dom.mjs 2 + index 3dcfbb2f6e69e892f06618adf26d710c4e435eac..3c7b5c12c4a72ecc54346099184aa885689cb467 100644 3 + --- a/dist/floating-ui.utils.dom.mjs 4 + +++ b/dist/floating-ui.utils.dom.mjs 5 + @@ -1,6 +1,3 @@ 6 + -function hasWindow() { 7 + - return typeof window !== 'undefined'; 8 + -} 9 + function getNodeName(node) { 10 + if (isNode(node)) { 11 + return (node.nodeName || '').toLowerCase(); 12 + @@ -19,27 +16,15 @@ function getDocumentElement(node) { 13 + return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement; 14 + } 15 + function isNode(value) { 16 + - if (!hasWindow()) { 17 + - return false; 18 + - } 19 + return value instanceof Node || value instanceof getWindow(value).Node; 20 + } 21 + function isElement(value) { 22 + - if (!hasWindow()) { 23 + - return false; 24 + - } 25 + return value instanceof Element || value instanceof getWindow(value).Element; 26 + } 27 + function isHTMLElement(value) { 28 + - if (!hasWindow()) { 29 + - return false; 30 + - } 31 + return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement; 32 + } 33 + function isShadowRoot(value) { 34 + - if (!hasWindow() || typeof ShadowRoot === 'undefined') { 35 + - return false; 36 + - } 37 + return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot; 38 + } 39 + function isOverflowElement(element) {
+7 -4
pnpm-lock.yaml
··· 5 5 excludeLinksFromLockfile: false 6 6 7 7 patchedDependencies: 8 + '@floating-ui/utils': 9 + hash: y5uq7awxxljsoxlvk2kx3wwgji 10 + path: patches/@floating-ui__utils.patch 8 11 '@tanstack/query-core@5.17.19': 9 12 hash: mh34qchsf4y2z6x2owv2ljabky 10 13 path: patches/@tanstack__query-core@5.17.19.patch ··· 54 57 version: 1.6.11 55 58 '@floating-ui/utils': 56 59 specifier: ^0.2.8 57 - version: 0.2.8 60 + version: 0.2.8(patch_hash=y5uq7awxxljsoxlvk2kx3wwgji) 58 61 '@mary/events': 59 62 specifier: npm:@jsr/mary__events@^0.1.0 60 63 version: '@jsr/mary__events@0.1.0' ··· 3914 3917 3915 3918 '@floating-ui/core@1.6.8': 3916 3919 dependencies: 3917 - '@floating-ui/utils': 0.2.8 3920 + '@floating-ui/utils': 0.2.8(patch_hash=y5uq7awxxljsoxlvk2kx3wwgji) 3918 3921 3919 3922 '@floating-ui/dom@1.6.11': 3920 3923 dependencies: 3921 3924 '@floating-ui/core': 1.6.8 3922 - '@floating-ui/utils': 0.2.8 3925 + '@floating-ui/utils': 0.2.8(patch_hash=y5uq7awxxljsoxlvk2kx3wwgji) 3923 3926 3924 - '@floating-ui/utils@0.2.8': {} 3927 + '@floating-ui/utils@0.2.8(patch_hash=y5uq7awxxljsoxlvk2kx3wwgji)': {} 3925 3928 3926 3929 '@isaacs/cliui@8.0.2': 3927 3930 dependencies: