From d2219c431a425fb214e2b49e7e06fa960f6a0c9b Mon Sep 17 00:00:00 2001 From: afterlifepro Date: Fri, 15 Aug 2025 17:54:00 +0100 Subject: [PATCH] Use oddbird package not remote --- package.json | 1 + pnpm-lock.yaml | 45 ++++++++++++++++++++ src/components/home/playing/NowPlaying.astro | 3 +- 3 files changed, 47 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 80662c6..574af41 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "@atcute/client": "^4.0.3", "@atcute/identity-resolver": "^1.1.3", "@atcute/lexicons": "^1.1.0", + "@oddbird/css-anchor-positioning": "^0.6.1", "@spotify/web-api-ts-sdk": "^1.2.0", "astro": "^5.12.6", "sharp": "^0.34.3" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f0bb521..187967c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -40,6 +40,9 @@ importers: '@atcute/lexicons': specifier: ^1.1.0 version: 1.1.0 + '@oddbird/css-anchor-positioning': + specifier: ^0.6.1 + version: 0.6.1 '@spotify/web-api-ts-sdk': specifier: ^1.2.0 version: 1.2.0(patch_hash=b36369a918d02543ad679d04428064d9b233b61da7ff46f9af693ee7cd3901d9) @@ -296,6 +299,15 @@ packages: cpu: [x64] os: [win32] + '@floating-ui/core@1.7.3': + resolution: {integrity: sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w==} + + '@floating-ui/dom@1.7.3': + resolution: {integrity: sha512-uZA413QEpNuhtb3/iIKoYMSK07keHPYeXF02Zhd6e213j+d1NamLix/mCLxBUDW/Gx52sPH2m+chlUsyaBs/Ag==} + + '@floating-ui/utils@0.2.10': + resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==} + '@img/sharp-darwin-arm64@0.33.5': resolution: {integrity: sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} @@ -526,6 +538,9 @@ packages: '@jridgewell/sourcemap-codec@1.5.4': resolution: {integrity: sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==} + '@oddbird/css-anchor-positioning@0.6.1': + resolution: {integrity: sha512-/M1guQMJROMAFjS0uTmcg93S2X5r0Gwe6m5DqmRrGxNEUe1llmY6/Qw8UuhvexP6yeD+GDCP9CJtXBJS1vS9UQ==} + '@oslojs/encoding@1.1.0': resolution: {integrity: sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ==} @@ -665,6 +680,9 @@ packages: '@swc/helpers@0.5.17': resolution: {integrity: sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A==} + '@types/css-tree@2.3.10': + resolution: {integrity: sha512-WcaBazJ84RxABvRttQjjFWgTcHvZR9jGr0Y3hccPkHjFyk/a3N8EuxjKr+QfrwjoM5b1yI1Uj1i7EzOAAwBwag==} + '@types/debug@4.1.12': resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==} @@ -1247,6 +1265,11 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + nanoid@5.1.5: + resolution: {integrity: sha512-Ir/+ZpE9fDsNH0hQ3C68uyThDXzYcim2EqcZ8zn8Chtt1iylPT9xXJB0kPCnqzgcEGikO9RxSrh63MsmVCU7Fw==} + engines: {node: ^18 || >=20} + hasBin: true + neotraverse@0.6.18: resolution: {integrity: sha512-Z4SmBUweYa09+o6pG+eASabEpP6QkQ70yHj351pQoEXIs8uHbaU2DWVmzBANKgflPa47A50PtB2+NgRpQvr7vA==} engines: {node: '>= 10'} @@ -1994,6 +2017,17 @@ snapshots: '@esbuild/win32-x64@0.25.8': optional: true + '@floating-ui/core@1.7.3': + dependencies: + '@floating-ui/utils': 0.2.10 + + '@floating-ui/dom@1.7.3': + dependencies: + '@floating-ui/core': 1.7.3 + '@floating-ui/utils': 0.2.10 + + '@floating-ui/utils@0.2.10': {} + '@img/sharp-darwin-arm64@0.33.5': optionalDependencies: '@img/sharp-libvips-darwin-arm64': 1.0.4 @@ -2157,6 +2191,13 @@ snapshots: '@jridgewell/sourcemap-codec@1.5.4': {} + '@oddbird/css-anchor-positioning@0.6.1': + dependencies: + '@floating-ui/dom': 1.7.3 + '@types/css-tree': 2.3.10 + css-tree: 3.1.0 + nanoid: 5.1.5 + '@oslojs/encoding@1.1.0': {} '@rollup/pluginutils@5.2.0(rollup@4.46.2)': @@ -2266,6 +2307,8 @@ snapshots: dependencies: tslib: 2.8.1 + '@types/css-tree@2.3.10': {} + '@types/debug@4.1.12': dependencies: '@types/ms': 2.1.0 @@ -3137,6 +3180,8 @@ snapshots: nanoid@3.3.11: {} + nanoid@5.1.5: {} + neotraverse@0.6.18: {} nlcst-to-string@4.0.0: diff --git a/src/components/home/playing/NowPlaying.astro b/src/components/home/playing/NowPlaying.astro index 11173f0..248d22e 100644 --- a/src/components/home/playing/NowPlaying.astro +++ b/src/components/home/playing/NowPlaying.astro @@ -415,8 +415,7 @@ const isSong = ( if (!CSS.supports("top", "calc(anchor(--player bottom) + 10px)")) { // enable anchor polyfill const { default: anchor } = await import( - // @ts-expect-error ts cant find remote types lol - "https://unpkg.com/@oddbird/css-anchor-positioning/dist/css-anchor-positioning-fn.js" + "@oddbird/css-anchor-positioning/fn" ); anchor().then(() => -- 2.51.2