Update notification subscriptions reactively

This commit is contained in:
Jon Staab
2026-01-26 11:12:15 -08:00
parent 9b3a8258ce
commit 143a1dd39b
6 changed files with 271 additions and 173 deletions
+11 -11
View File
@@ -60,16 +60,16 @@
"@types/throttle-debounce": "^5.0.2", "@types/throttle-debounce": "^5.0.2",
"@vite-pwa/assets-generator": "^0.2.6", "@vite-pwa/assets-generator": "^0.2.6",
"@vite-pwa/sveltekit": "^0.6.8", "@vite-pwa/sveltekit": "^0.6.8",
"@welshman/app": "^0.8.1", "@welshman/app": "^0.8.2",
"@welshman/content": "^0.8.1", "@welshman/content": "^0.8.2",
"@welshman/editor": "^0.8.1", "@welshman/editor": "^0.8.2",
"@welshman/feeds": "^0.8.1", "@welshman/feeds": "^0.8.2",
"@welshman/lib": "^0.8.1", "@welshman/lib": "^0.8.2",
"@welshman/net": "^0.8.1", "@welshman/net": "^0.8.2",
"@welshman/router": "^0.8.1", "@welshman/router": "^0.8.2",
"@welshman/signer": "^0.8.1", "@welshman/signer": "^0.8.2",
"@welshman/store": "^0.8.1", "@welshman/store": "^0.8.2",
"@welshman/util": "^0.8.1", "@welshman/util": "^0.8.2",
"compressorjs": "^1.2.1", "compressorjs": "^1.2.1",
"daisyui": "^4.12.24", "daisyui": "^4.12.24",
"date-picker-svelte": "^2.17.0", "date-picker-svelte": "^2.17.0",
@@ -79,7 +79,7 @@
"husky": "^9.1.7", "husky": "^9.1.7",
"idb": "^8.0.3", "idb": "^8.0.3",
"nostr-signer-capacitor-plugin": "^0.0.4", "nostr-signer-capacitor-plugin": "^0.0.4",
"nostr-tools": "^2.19.4", "nostr-tools": "^2.19.4",
"prettier-plugin-tailwindcss": "^0.6.14", "prettier-plugin-tailwindcss": "^0.6.14",
"qr-scanner": "^1.4.2", "qr-scanner": "^1.4.2",
"qrcode": "^1.5.4", "qrcode": "^1.5.4",
+109 -109
View File
@@ -55,7 +55,7 @@ importers:
version: 1.9.7 version: 1.9.7
'@pomade/core': '@pomade/core':
specifier: ^0.0.12 specifier: ^0.0.12
version: 0.0.12(@frostr/bifrost@1.0.7(typescript@5.9.3))(@noble/hashes@2.0.1)(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/signer@0.8.1(@noble/curves@1.9.7)(@noble/hashes@2.0.1)(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@8.0.1))(nostr-tools@2.20.0(typescript@5.9.3)))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-tools@2.20.0(typescript@5.9.3)) version: 0.0.12(@frostr/bifrost@1.0.7(typescript@5.9.3))(@noble/hashes@2.0.1)(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/signer@0.8.2(@noble/curves@1.9.7)(@noble/hashes@2.0.1)(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@8.0.1))(nostr-tools@2.20.0(typescript@5.9.3)))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-tools@2.20.0(typescript@5.9.3))
'@poppanator/sveltekit-svg': '@poppanator/sveltekit-svg':
specifier: ^4.2.1 specifier: ^4.2.1
version: 4.2.1(rollup@2.79.2)(svelte@5.48.0)(svgo@3.3.2)(vite@5.4.21(@types/node@25.0.10)(terser@5.46.0)) version: 4.2.1(rollup@2.79.2)(svelte@5.48.0)(svgo@3.3.2)(vite@5.4.21(@types/node@25.0.10)(terser@5.46.0))
@@ -78,35 +78,35 @@ importers:
specifier: ^0.6.8 specifier: ^0.6.8
version: 0.6.8(@sveltejs/kit@2.50.1(@sveltejs/vite-plugin-svelte@4.0.4(svelte@5.48.0)(vite@5.4.21(@types/node@25.0.10)(terser@5.46.0)))(svelte@5.48.0)(typescript@5.9.3)(vite@5.4.21(@types/node@25.0.10)(terser@5.46.0)))(@vite-pwa/assets-generator@0.2.6)(vite-plugin-pwa@0.21.2(@vite-pwa/assets-generator@0.2.6)(vite@5.4.21(@types/node@25.0.10)(terser@5.46.0))(workbox-build@7.3.0)(workbox-window@7.3.0)) version: 0.6.8(@sveltejs/kit@2.50.1(@sveltejs/vite-plugin-svelte@4.0.4(svelte@5.48.0)(vite@5.4.21(@types/node@25.0.10)(terser@5.46.0)))(svelte@5.48.0)(typescript@5.9.3)(vite@5.4.21(@types/node@25.0.10)(terser@5.46.0)))(@vite-pwa/assets-generator@0.2.6)(vite-plugin-pwa@0.21.2(@vite-pwa/assets-generator@0.2.6)(vite@5.4.21(@types/node@25.0.10)(terser@5.46.0))(workbox-build@7.3.0)(workbox-window@7.3.0))
'@welshman/app': '@welshman/app':
specifier: ^0.8.1 specifier: ^0.8.2
version: 0.8.1(85e4c5d11a16689496f0b1027aac600f) version: 0.8.2(bd581549a4213eeff8fa67cf63b25066)
'@welshman/content': '@welshman/content':
specifier: ^0.8.1 specifier: ^0.8.2
version: 0.8.1(nostr-tools@2.20.0(typescript@5.9.3)) version: 0.8.2(nostr-tools@2.20.0(typescript@5.9.3))
'@welshman/editor': '@welshman/editor':
specifier: ^0.8.1 specifier: ^0.8.2
version: 0.8.1(@tiptap/extension-image@2.27.1(@tiptap/core@2.27.2(@tiptap/pm@2.27.2)))(@tiptap/extension-link@2.27.1(@tiptap/core@2.27.2(@tiptap/pm@2.27.2))(@tiptap/pm@2.27.2))(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(linkifyjs@4.3.2)(nostr-tools@2.20.0(typescript@5.9.3))(prosemirror-markdown@1.13.3)(prosemirror-model@1.25.4)(prosemirror-state@1.4.4)(prosemirror-view@1.41.5)(tiptap-markdown@0.8.10(@tiptap/core@2.27.2(@tiptap/pm@2.27.2))) version: 0.8.2(@tiptap/extension-image@2.27.1(@tiptap/core@2.27.2(@tiptap/pm@2.27.2)))(@tiptap/extension-link@2.27.1(@tiptap/core@2.27.2(@tiptap/pm@2.27.2))(@tiptap/pm@2.27.2))(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(linkifyjs@4.3.2)(nostr-tools@2.20.0(typescript@5.9.3))(prosemirror-markdown@1.13.3)(prosemirror-model@1.25.4)(prosemirror-state@1.4.4)(prosemirror-view@1.41.5)(tiptap-markdown@0.8.10(@tiptap/core@2.27.2(@tiptap/pm@2.27.2)))
'@welshman/feeds': '@welshman/feeds':
specifier: ^0.8.1 specifier: ^0.8.2
version: 0.8.1(818432f504ebe01a7d3c38c2d9dbdb2f) version: 0.8.2(97f68b8b4141506b03c7192b28581c15)
'@welshman/lib': '@welshman/lib':
specifier: ^0.8.1 specifier: ^0.8.2
version: 0.8.1 version: 0.8.2
'@welshman/net': '@welshman/net':
specifier: ^0.8.1 specifier: ^0.8.2
version: 0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3) version: 0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3)
'@welshman/router': '@welshman/router':
specifier: ^0.8.1 specifier: ^0.8.2
version: 0.8.1(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3))) version: 0.8.2(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))
'@welshman/signer': '@welshman/signer':
specifier: ^0.8.1 specifier: ^0.8.2
version: 0.8.1(@noble/curves@1.9.7)(@noble/hashes@2.0.1)(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@8.0.1))(nostr-tools@2.20.0(typescript@5.9.3)) version: 0.8.2(@noble/curves@1.9.7)(@noble/hashes@2.0.1)(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@8.0.1))(nostr-tools@2.20.0(typescript@5.9.3))
'@welshman/store': '@welshman/store':
specifier: ^0.8.1 specifier: ^0.8.2
version: 0.8.1(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(svelte@5.48.0) version: 0.8.2(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(svelte@5.48.0)
'@welshman/util': '@welshman/util':
specifier: ^0.8.1 specifier: ^0.8.2
version: 0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)) version: 0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3))
compressorjs: compressorjs:
specifier: ^1.2.1 specifier: ^1.2.1
version: 1.2.1 version: 1.2.1
@@ -1668,81 +1668,81 @@ packages:
'@vite-pwa/assets-generator': '@vite-pwa/assets-generator':
optional: true optional: true
'@welshman/app@0.8.1': '@welshman/app@0.8.2':
resolution: {integrity: sha512-1xMVFUpFq3ZI0sqfz/5h8rlSGHzBm1o8yvSIBTFhoM+Yzz+So4qrO0fpQiYBidlA0f9AEVGcKYlKm8Vcyhqlag==} resolution: {integrity: sha512-2Rztvg+/3XdxHPWm20sYM7mn+6MM4l33qhawPYHQ0SH/LSqNnOuTUDJ/QqyEUAEv7BIhg8kVhK4SbVRXmis3yg==}
peerDependencies: peerDependencies:
'@pomade/core': ^0.0.12 '@pomade/core': ^0.0.12
'@welshman/feeds': 0.8.1 '@welshman/feeds': 0.8.2
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
'@welshman/net': 0.8.1 '@welshman/net': 0.8.2
'@welshman/router': 0.8.1 '@welshman/router': 0.8.2
'@welshman/signer': 0.8.1 '@welshman/signer': 0.8.2
'@welshman/store': 0.8.1 '@welshman/store': 0.8.2
'@welshman/util': 0.8.1 '@welshman/util': 0.8.2
svelte: ^4.0.0 || ^5.0.0 svelte: ^4.0.0 || ^5.0.0
'@welshman/content@0.8.1': '@welshman/content@0.8.2':
resolution: {integrity: sha512-DQ08ijfQQojNKWj/LRzcry6IqA45s+xpg25sc2zxP6iXE4Q0cidSoVwvJjPa2PjYWsInC6Zmj/ZQOErWtsyBjQ==} resolution: {integrity: sha512-sKDy+gjDFks5+yHxrJrg7rRGlIlyWfWUnzG/IV3ni19/33kZTvCMEP4yVi9WSVfnz0dgwyg+H3ZebRWF7PZiTA==}
peerDependencies: peerDependencies:
nostr-tools: ^2.19.4 nostr-tools: ^2.19.4
'@welshman/editor@0.8.1': '@welshman/editor@0.8.2':
resolution: {integrity: sha512-nJdGkWVA4J/ETNKcu2LGUXCjNScd2jgP30khNdIGzXUDhKfuKZYS6MOb8B+c5U1lDbl7o2BQr7CYchtwezXFaQ==} resolution: {integrity: sha512-I/GkBrqM59fvWq0pZd0yZau+unecxTlx6YWXLiqCzkyo5m4p/Nqsld9m7a7XTN9fYobshU7xFubv5CDECST0cw==}
peerDependencies: peerDependencies:
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
'@welshman/util': 0.8.1 '@welshman/util': 0.8.2
nostr-tools: ^2.19.4 nostr-tools: ^2.19.4
'@welshman/feeds@0.8.1': '@welshman/feeds@0.8.2':
resolution: {integrity: sha512-yUFN+lMz4R1+90VWRBDOKZFZzc3KHJVkcpKacOR+3st6CJSdPYMWgGc8eI6lXXHMIWQu9qDjMTTubx7VrsbJfA==} resolution: {integrity: sha512-KkJi4bOsiFwYxQPqbGpZyqkrbaULZgVwejWRllsN/GFnFYCPc/yY4svIXEu7sEB9nU07un3MnUuS/NmV8eYAxQ==}
peerDependencies: peerDependencies:
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
'@welshman/net': 0.8.1 '@welshman/net': 0.8.2
'@welshman/router': 0.8.1 '@welshman/router': 0.8.2
'@welshman/signer': 0.8.1 '@welshman/signer': 0.8.2
'@welshman/util': 0.8.1 '@welshman/util': 0.8.2
'@welshman/lib@0.8.1': '@welshman/lib@0.8.2':
resolution: {integrity: sha512-s4gRg4NXwDPiXgZVuAaZKS+rpnfYcFfqTqvw44hBTIWa1o12J4k7bqP7Oyi3r6Q901lW/6tvP7TInBWkdhm5Bw==} resolution: {integrity: sha512-+529jMob4decqqtCvhLadn8KGfeNSUS3OYtePULQF4If698iWFI7ltx0fJ33qhyCUX0RPi1iqrFhdewJlCgpMA==}
engines: {node: '>=12.0.0'} engines: {node: '>=12.0.0'}
'@welshman/net@0.8.1': '@welshman/net@0.8.2':
resolution: {integrity: sha512-ugPs8YT6B2WNVA9A443x3t0DAQyLnzj1nueDTAsHLbB9/4nAJDsXy7EKKcw4rMVXyZyaWZlBdOIR59hKhw1uew==} resolution: {integrity: sha512-1+c44j9HA3jZrDRAuRiwtp0xfPl34oAq+H5l3KtF1YCGo32Da4i+HRio4gvEDGewPawsRCGXQK5Qs6bOCR8GOA==}
peerDependencies: peerDependencies:
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
'@welshman/util': 0.8.1 '@welshman/util': 0.8.2
'@welshman/router@0.8.1': '@welshman/router@0.8.2':
resolution: {integrity: sha512-WOSVGa5utQ7lx99g6pUMibIz4PtlNiYgnEHsimVGGwngKo/bXb7XcSNXggdkTfD5+iHoaHFfil/27Jotfjxmeg==} resolution: {integrity: sha512-p1dJdZZuRFQVmmRcA6tf2VqqJ1eYjgLLRpwvuLYPV5zWeENrqtfJTs4Ld9ZlIdQMo/hTicvOohkHqwH+p9rKqQ==}
peerDependencies: peerDependencies:
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
'@welshman/net': 0.8.1 '@welshman/net': 0.8.2
'@welshman/util': 0.8.1 '@welshman/util': 0.8.2
'@welshman/signer@0.8.1': '@welshman/signer@0.8.2':
resolution: {integrity: sha512-lJJWuMZYcgjmVaFNSxnxR1Zs6PcWOaF+MNjEzakLNs8t1P1zBnKGhrmQrzPMFbdy+NcQvfVlmJOd97jN+VZUQw==} resolution: {integrity: sha512-7E0FSzPKMNWHVPK38MErKZOu0Gl7H2RUrFvN9xrt7l94QcV5DC8q+2KLGRYwLHHhElS21uTu/uPQYe5/ATn5cQ==}
peerDependencies: peerDependencies:
'@noble/curves': ^1.9.7 '@noble/curves': ^1.9.7
'@noble/hashes': ^2.0.1 '@noble/hashes': ^2.0.1
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
'@welshman/net': 0.8.1 '@welshman/net': 0.8.2
'@welshman/util': 0.8.1 '@welshman/util': 0.8.2
nostr-signer-capacitor-plugin: ~0.0.4 nostr-signer-capacitor-plugin: ~0.0.4
nostr-tools: ^2.19.4 nostr-tools: ^2.19.4
'@welshman/store@0.8.1': '@welshman/store@0.8.2':
resolution: {integrity: sha512-l+4qU4dvQDY10ESlOhV/Orq3tMIUa2LV0UA8zbqOfF0ZCaar6SxSdS3QodCsVIpViIvO9XQkhuAyUT5R6p6hKw==} resolution: {integrity: sha512-E2UjzvSwqmKC4Zz3JQIrIr18Bt64824R5NrMWCDWqr5bJiq+SjQyTwYw95H+GC3O1vuUcXB+HTCU5e0+tWyk6Q==}
peerDependencies: peerDependencies:
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
'@welshman/net': 0.8.1 '@welshman/net': 0.8.2
'@welshman/util': 0.8.1 '@welshman/util': 0.8.2
svelte: ^4.0.0 || ^5.0.0 svelte: ^4.0.0 || ^5.0.0
'@welshman/util@0.8.1': '@welshman/util@0.8.2':
resolution: {integrity: sha512-eMXeZ6hGuZnCeliPKQqpADNBKBEiXCEZgHIVN3+9qRVx/RVO2YRfDGFde9MKt+PO1qspot91wlbjpgcJ2P9M8A==} resolution: {integrity: sha512-+fVcOnQyrndDJep0HCqlTnyMTNJpQWhK2Q4aBneG03nvUyJfV6WbRx+UYvC72jyopPD1maS8LMn6NfKAe99PPw==}
peerDependencies: peerDependencies:
'@noble/curves': ^1.9.7 '@noble/curves': ^1.9.7
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
nostr-tools: ^2.19.4 nostr-tools: ^2.19.4
'@xml-tools/parser@1.0.11': '@xml-tools/parser@1.0.11':
@@ -6040,14 +6040,14 @@ snapshots:
'@polka/url@1.0.0-next.29': {} '@polka/url@1.0.0-next.29': {}
'@pomade/core@0.0.12(@frostr/bifrost@1.0.7(typescript@5.9.3))(@noble/hashes@2.0.1)(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/signer@0.8.1(@noble/curves@1.9.7)(@noble/hashes@2.0.1)(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@8.0.1))(nostr-tools@2.20.0(typescript@5.9.3)))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-tools@2.20.0(typescript@5.9.3))': '@pomade/core@0.0.12(@frostr/bifrost@1.0.7(typescript@5.9.3))(@noble/hashes@2.0.1)(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/signer@0.8.2(@noble/curves@1.9.7)(@noble/hashes@2.0.1)(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@8.0.1))(nostr-tools@2.20.0(typescript@5.9.3)))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-tools@2.20.0(typescript@5.9.3))':
dependencies: dependencies:
'@frostr/bifrost': 1.0.7(typescript@5.9.3) '@frostr/bifrost': 1.0.7(typescript@5.9.3)
'@noble/hashes': 2.0.1 '@noble/hashes': 2.0.1
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
'@welshman/net': 0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3) '@welshman/net': 0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3)
'@welshman/signer': 0.8.1(@noble/curves@1.9.7)(@noble/hashes@2.0.1)(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@8.0.1))(nostr-tools@2.20.0(typescript@5.9.3)) '@welshman/signer': 0.8.2(@noble/curves@1.9.7)(@noble/hashes@2.0.1)(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@8.0.1))(nostr-tools@2.20.0(typescript@5.9.3))
'@welshman/util': 0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)) '@welshman/util': 0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3))
hash-wasm: 4.12.0 hash-wasm: 4.12.0
nostr-tools: 2.20.0(typescript@5.9.3) nostr-tools: 2.20.0(typescript@5.9.3)
zod: 4.3.6 zod: 4.3.6
@@ -6577,26 +6577,26 @@ snapshots:
optionalDependencies: optionalDependencies:
'@vite-pwa/assets-generator': 0.2.6 '@vite-pwa/assets-generator': 0.2.6
'@welshman/app@0.8.1(85e4c5d11a16689496f0b1027aac600f)': '@welshman/app@0.8.2(bd581549a4213eeff8fa67cf63b25066)':
dependencies: dependencies:
'@pomade/core': 0.0.12(@frostr/bifrost@1.0.7(typescript@5.9.3))(@noble/hashes@2.0.1)(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/signer@0.8.1(@noble/curves@1.9.7)(@noble/hashes@2.0.1)(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@8.0.1))(nostr-tools@2.20.0(typescript@5.9.3)))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-tools@2.20.0(typescript@5.9.3)) '@pomade/core': 0.0.12(@frostr/bifrost@1.0.7(typescript@5.9.3))(@noble/hashes@2.0.1)(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/signer@0.8.2(@noble/curves@1.9.7)(@noble/hashes@2.0.1)(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@8.0.1))(nostr-tools@2.20.0(typescript@5.9.3)))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-tools@2.20.0(typescript@5.9.3))
'@welshman/feeds': 0.8.1(818432f504ebe01a7d3c38c2d9dbdb2f) '@welshman/feeds': 0.8.2(97f68b8b4141506b03c7192b28581c15)
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
'@welshman/net': 0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3) '@welshman/net': 0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3)
'@welshman/router': 0.8.1(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3))) '@welshman/router': 0.8.2(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))
'@welshman/signer': 0.8.1(@noble/curves@1.9.7)(@noble/hashes@2.0.1)(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@8.0.1))(nostr-tools@2.20.0(typescript@5.9.3)) '@welshman/signer': 0.8.2(@noble/curves@1.9.7)(@noble/hashes@2.0.1)(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@8.0.1))(nostr-tools@2.20.0(typescript@5.9.3))
'@welshman/store': 0.8.1(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(svelte@5.48.0) '@welshman/store': 0.8.2(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(svelte@5.48.0)
'@welshman/util': 0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)) '@welshman/util': 0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3))
fuse.js: 7.1.0 fuse.js: 7.1.0
svelte: 5.48.0 svelte: 5.48.0
throttle-debounce: 5.0.2 throttle-debounce: 5.0.2
'@welshman/content@0.8.1(nostr-tools@2.20.0(typescript@5.9.3))': '@welshman/content@0.8.2(nostr-tools@2.20.0(typescript@5.9.3))':
dependencies: dependencies:
'@braintree/sanitize-url': 7.1.1 '@braintree/sanitize-url': 7.1.1
nostr-tools: 2.20.0(typescript@5.9.3) nostr-tools: 2.20.0(typescript@5.9.3)
'@welshman/editor@0.8.1(@tiptap/extension-image@2.27.1(@tiptap/core@2.27.2(@tiptap/pm@2.27.2)))(@tiptap/extension-link@2.27.1(@tiptap/core@2.27.2(@tiptap/pm@2.27.2))(@tiptap/pm@2.27.2))(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(linkifyjs@4.3.2)(nostr-tools@2.20.0(typescript@5.9.3))(prosemirror-markdown@1.13.3)(prosemirror-model@1.25.4)(prosemirror-state@1.4.4)(prosemirror-view@1.41.5)(tiptap-markdown@0.8.10(@tiptap/core@2.27.2(@tiptap/pm@2.27.2)))': '@welshman/editor@0.8.2(@tiptap/extension-image@2.27.1(@tiptap/core@2.27.2(@tiptap/pm@2.27.2)))(@tiptap/extension-link@2.27.1(@tiptap/core@2.27.2(@tiptap/pm@2.27.2))(@tiptap/pm@2.27.2))(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(linkifyjs@4.3.2)(nostr-tools@2.20.0(typescript@5.9.3))(prosemirror-markdown@1.13.3)(prosemirror-model@1.25.4)(prosemirror-state@1.4.4)(prosemirror-view@1.41.5)(tiptap-markdown@0.8.10(@tiptap/core@2.27.2(@tiptap/pm@2.27.2)))':
dependencies: dependencies:
'@tiptap/core': 2.27.2(@tiptap/pm@2.27.2) '@tiptap/core': 2.27.2(@tiptap/pm@2.27.2)
'@tiptap/extension-code': 2.27.2(@tiptap/core@2.27.2(@tiptap/pm@2.27.2)) '@tiptap/extension-code': 2.27.2(@tiptap/core@2.27.2(@tiptap/pm@2.27.2))
@@ -6611,8 +6611,8 @@ snapshots:
'@tiptap/extension-text': 2.27.2(@tiptap/core@2.27.2(@tiptap/pm@2.27.2)) '@tiptap/extension-text': 2.27.2(@tiptap/core@2.27.2(@tiptap/pm@2.27.2))
'@tiptap/pm': 2.27.2 '@tiptap/pm': 2.27.2
'@tiptap/suggestion': 2.27.2(@tiptap/core@2.27.2(@tiptap/pm@2.27.2))(@tiptap/pm@2.27.2) '@tiptap/suggestion': 2.27.2(@tiptap/core@2.27.2(@tiptap/pm@2.27.2))(@tiptap/pm@2.27.2)
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
'@welshman/util': 0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)) '@welshman/util': 0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3))
nostr-editor: 1.1.0(@tiptap/core@2.27.2(@tiptap/pm@2.27.2))(@tiptap/extension-image@2.27.1(@tiptap/core@2.27.2(@tiptap/pm@2.27.2)))(@tiptap/extension-link@2.27.1(@tiptap/core@2.27.2(@tiptap/pm@2.27.2))(@tiptap/pm@2.27.2))(@tiptap/pm@2.27.2)(linkifyjs@4.3.2)(nostr-tools@2.20.0(typescript@5.9.3))(prosemirror-markdown@1.13.3)(prosemirror-model@1.25.4)(prosemirror-state@1.4.4)(prosemirror-view@1.41.5)(tiptap-markdown@0.8.10(@tiptap/core@2.27.2(@tiptap/pm@2.27.2))) nostr-editor: 1.1.0(@tiptap/core@2.27.2(@tiptap/pm@2.27.2))(@tiptap/extension-image@2.27.1(@tiptap/core@2.27.2(@tiptap/pm@2.27.2)))(@tiptap/extension-link@2.27.1(@tiptap/core@2.27.2(@tiptap/pm@2.27.2))(@tiptap/pm@2.27.2))(@tiptap/pm@2.27.2)(linkifyjs@4.3.2)(nostr-tools@2.20.0(typescript@5.9.3))(prosemirror-markdown@1.13.3)(prosemirror-model@1.25.4)(prosemirror-state@1.4.4)(prosemirror-view@1.41.5)(tiptap-markdown@0.8.10(@tiptap/core@2.27.2(@tiptap/pm@2.27.2)))
nostr-tools: 2.20.0(typescript@5.9.3) nostr-tools: 2.20.0(typescript@5.9.3)
tippy.js: 6.3.7 tippy.js: 6.3.7
@@ -6626,58 +6626,58 @@ snapshots:
- prosemirror-view - prosemirror-view
- tiptap-markdown - tiptap-markdown
'@welshman/feeds@0.8.1(818432f504ebe01a7d3c38c2d9dbdb2f)': '@welshman/feeds@0.8.2(97f68b8b4141506b03c7192b28581c15)':
dependencies: dependencies:
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
'@welshman/net': 0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3) '@welshman/net': 0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3)
'@welshman/router': 0.8.1(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3))) '@welshman/router': 0.8.2(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))
'@welshman/signer': 0.8.1(@noble/curves@1.9.7)(@noble/hashes@2.0.1)(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@8.0.1))(nostr-tools@2.20.0(typescript@5.9.3)) '@welshman/signer': 0.8.2(@noble/curves@1.9.7)(@noble/hashes@2.0.1)(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@8.0.1))(nostr-tools@2.20.0(typescript@5.9.3))
'@welshman/util': 0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)) '@welshman/util': 0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3))
trava: 1.2.1 trava: 1.2.1
'@welshman/lib@0.8.1': '@welshman/lib@0.8.2':
dependencies: dependencies:
'@scure/base': 1.2.6 '@scure/base': 1.2.6
'@types/events': 3.0.3 '@types/events': 3.0.3
events: 3.3.0 events: 3.3.0
'@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3)': '@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3)':
dependencies: dependencies:
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
'@welshman/util': 0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)) '@welshman/util': 0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3))
events: 3.3.0 events: 3.3.0
isomorphic-ws: 5.0.0(ws@8.18.3) isomorphic-ws: 5.0.0(ws@8.18.3)
transitivePeerDependencies: transitivePeerDependencies:
- ws - ws
'@welshman/router@0.8.1(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))': '@welshman/router@0.8.2(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))':
dependencies: dependencies:
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
'@welshman/net': 0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3) '@welshman/net': 0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3)
'@welshman/util': 0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)) '@welshman/util': 0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3))
'@welshman/signer@0.8.1(@noble/curves@1.9.7)(@noble/hashes@2.0.1)(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@8.0.1))(nostr-tools@2.20.0(typescript@5.9.3))': '@welshman/signer@0.8.2(@noble/curves@1.9.7)(@noble/hashes@2.0.1)(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@8.0.1))(nostr-tools@2.20.0(typescript@5.9.3))':
dependencies: dependencies:
'@noble/curves': 1.9.7 '@noble/curves': 1.9.7
'@noble/hashes': 2.0.1 '@noble/hashes': 2.0.1
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
'@welshman/net': 0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3) '@welshman/net': 0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3)
'@welshman/util': 0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)) '@welshman/util': 0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3))
nostr-signer-capacitor-plugin: 0.0.4(@capacitor/core@8.0.1) nostr-signer-capacitor-plugin: 0.0.4(@capacitor/core@8.0.1)
nostr-tools: 2.20.0(typescript@5.9.3) nostr-tools: 2.20.0(typescript@5.9.3)
'@welshman/store@0.8.1(@welshman/lib@0.8.1)(@welshman/net@0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(svelte@5.48.0)': '@welshman/store@0.8.2(@welshman/lib@0.8.2)(@welshman/net@0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3))(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(svelte@5.48.0)':
dependencies: dependencies:
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
'@welshman/net': 0.8.1(@welshman/lib@0.8.1)(@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3) '@welshman/net': 0.8.2(@welshman/lib@0.8.2)(@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3)))(ws@8.18.3)
'@welshman/util': 0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3)) '@welshman/util': 0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3))
svelte: 5.48.0 svelte: 5.48.0
'@welshman/util@0.8.1(@noble/curves@1.9.7)(@welshman/lib@0.8.1)(nostr-tools@2.20.0(typescript@5.9.3))': '@welshman/util@0.8.2(@noble/curves@1.9.7)(@welshman/lib@0.8.2)(nostr-tools@2.20.0(typescript@5.9.3))':
dependencies: dependencies:
'@noble/curves': 1.9.7 '@noble/curves': 1.9.7
'@types/ws': 8.18.1 '@types/ws': 8.18.1
'@welshman/lib': 0.8.1 '@welshman/lib': 0.8.2
js-base64: 3.7.8 js-base64: 3.7.8
nostr-tools: 2.20.0(typescript@5.9.3) nostr-tools: 2.20.0(typescript@5.9.3)
nostr-wasm: 0.1.0 nostr-wasm: 0.1.0
+3 -1
View File
@@ -1,5 +1,6 @@
<script lang="ts"> <script lang="ts">
import {getProfile, loadProfile} from "@welshman/app" import {getProfile, loadProfile} from "@welshman/app"
import {isMobile} from '@lib/html'
import ProfileCircle from "@app/components/ProfileCircle.svelte" import ProfileCircle from "@app/components/ProfileCircle.svelte"
type Props = { type Props = {
@@ -8,6 +9,7 @@
} }
const {pubkeys, size = 7}: Props = $props() const {pubkeys, size = 7}: Props = $props()
const limit = isMobile ? 7 : 15
for (const pubkey of pubkeys) { for (const pubkey of pubkeys) {
loadProfile(pubkey) loadProfile(pubkey)
@@ -21,7 +23,7 @@
</script> </script>
<div class="flex pr-3"> <div class="flex pr-3">
{#each visiblePubkeys.toSorted().slice(0, 15) as pubkey (pubkey)} {#each visiblePubkeys.toSorted().slice(0, limit) as pubkey (pubkey)}
<div <div
class="z-feature -mr-3 inline-block flex h-8 w-8 items-center justify-center rounded-full bg-base-100"> class="z-feature -mr-3 inline-block flex h-8 w-8 items-center justify-center rounded-full bg-base-100">
<ProfileCircle class="h-8 w-8 bg-base-300" {pubkey} {size} /> <ProfileCircle class="h-8 w-8 bg-base-300" {pubkey} {size} />
+12 -13
View File
@@ -338,19 +338,7 @@ export const relaysMostlyRestricted = writable<Record<string, string>>({})
// Push notifications // Push notifications
export const notificationSettings = withGetter( export const notificationSettings = withGetter(
writable<{ writable({
push: boolean
sound: boolean
badge: boolean
spaces: boolean
mentions: boolean
messages: boolean
token?: string
subscription?: {
key: string
callback: string
}
}>({
push: false, push: false,
sound: false, sound: false,
badge: false, badge: false,
@@ -360,6 +348,17 @@ export const notificationSettings = withGetter(
}), }),
) )
export const notificationState = withGetter(
writable<{
token?: string
subscription?: {
key: string
callback: string
}
}>({}),
)
// Chats // Chats
export type Chat = { export type Chat = {
+130 -38
View File
@@ -4,7 +4,7 @@ import {Capacitor} from "@capacitor/core"
import {Badge} from "@capawesome/capacitor-badge" import {Badge} from "@capawesome/capacitor-badge"
import {PushNotifications} from "@capacitor/push-notifications" import {PushNotifications} from "@capacitor/push-notifications"
import type {ActionPerformed, RegistrationError, Token} from "@capacitor/push-notifications" import type {ActionPerformed, RegistrationError, Token} from "@capacitor/push-notifications"
import {synced, throttled} from "@welshman/store" import {synced, throttled, deriveDeduplicated, deriveDeduplicatedByValue} from "@welshman/store"
import { import {
pubkey, pubkey,
tracker, tracker,
@@ -12,9 +12,9 @@ import {
relaysByUrl, relaysByUrl,
signer, signer,
publishThunk, publishThunk,
getPubkeyRelays,
loadRelay, loadRelay,
waitForThunkError, waitForThunkError,
userMessagingRelayList,
} from "@welshman/app" } from "@welshman/app"
import { import {
on, on,
@@ -32,6 +32,8 @@ import {
now, now,
groupBy, groupBy,
postJson, postJson,
nth,
nthEq,
} from "@welshman/lib" } from "@welshman/lib"
import type {TrustedEvent, RelayProfile, Filter} from "@welshman/util" import type {TrustedEvent, RelayProfile, Filter} from "@welshman/util"
import {deriveEventsByIdByUrl} from "@welshman/store" import {deriveEventsByIdByUrl} from "@welshman/store"
@@ -40,12 +42,14 @@ import {
EVENT_TIME, EVENT_TIME,
THREAD, THREAD,
COMMENT, COMMENT,
DELETE,
getTagValue, getTagValue,
getPubkeyTagValues, getPubkeyTagValues,
getRelaysFromList,
matchFilters, matchFilters,
sortEventsDesc, sortEventsDesc,
makeEvent, makeEvent,
RelayMode, Address,
} from "@welshman/util" } from "@welshman/util"
import {buildUrl} from "@lib/util" import {buildUrl} from "@lib/util"
import { import {
@@ -66,6 +70,7 @@ import {
PUSH_BRIDGE, PUSH_BRIDGE,
PUSH_SERVER, PUSH_SERVER,
notificationSettings, notificationSettings,
notificationState,
chatsById, chatsById,
hasNip29, hasNip29,
getSettings, getSettings,
@@ -75,6 +80,7 @@ import {
getSpaceRoomsFromGroupList, getSpaceRoomsFromGroupList,
makeCommentFilter, makeCommentFilter,
userSpaceUrls, userSpaceUrls,
splitRoomId,
makeRoomId, makeRoomId,
} from "@app/core/state" } from "@app/core/state"
import {kv} from "@app/core/storage" import {kv} from "@app/core/storage"
@@ -342,6 +348,7 @@ if (Capacitor.isNativePlatform()) {
PushNotifications.addListener( PushNotifications.addListener(
"pushNotificationActionPerformed", "pushNotificationActionPerformed",
async (action: ActionPerformed) => { async (action: ActionPerformed) => {
console.log('=======', JSON.stringify(action))
const event = parseJson(action.notification.data.event) const event = parseJson(action.notification.data.event)
const relays = [action.notification.data.relay] const relays = [action.notification.data.relay]
@@ -362,7 +369,7 @@ class CapacitorNotifications implements IPushAdapter {
return status.receive return status.receive
} }
let {token} = notificationSettings.get() let {token} = notificationState.get()
if (!token) { if (!token) {
PushNotifications.addListener("registration", ({value}: Token) => { PushNotifications.addListener("registration", ({value}: Token) => {
@@ -381,32 +388,38 @@ class CapacitorNotifications implements IPushAdapter {
}), }),
]) ])
notificationSettings.update(assoc("token", token)) notificationState.update(assoc("token", token))
} }
return token ? "granted" : "denied" return token ? "granted" : "denied"
} }
async syncServer(signal: AbortSignal) { async syncServer(signal: AbortSignal) {
const {token} = notificationSettings.get() const {token, subscription} = notificationState.get()
if (!token) { if (!token) {
throw new Error("Attempted to sync push server without a token") throw new Error("Attempted to sync push server without a token")
} }
const channel = Capacitor.getPlatform() === "ios" ? "apns" : "fcm" if (!subscription) {
const url = buildUrl(PUSH_SERVER, "subscription", channel) const channel = Capacitor.getPlatform() === "ios" ? "apns" : "fcm"
const json = await postJson(url, {token}, {signal}) const url = buildUrl(PUSH_SERVER, "subscription", channel)
const json = await postJson(url, {token}, {signal})
if (json?.callback && json?.id) { if (json?.callback && json?.key) {
notificationSettings.update(assoc("subscription", json)) notificationState.update(assoc("subscription", json))
} else { } else {
console.warn("Failed to register with push server") console.warn("Failed to register with push server")
}
} }
} }
async syncRelays(signal: AbortSignal) { async syncRelays(signal: AbortSignal) {
const {subscription} = notificationSettings.get() const {subscription} = notificationState.get()
if (signal.aborted) {
return
}
if (!subscription) { if (!subscription) {
throw new Error("Attempted to sync relays without a subscription") throw new Error("Attempted to sync relays without a subscription")
@@ -433,10 +446,6 @@ class CapacitorNotifications implements IPushAdapter {
filters: Filter[], filters: Filter[],
ignore: Filter[] = [], ignore: Filter[] = [],
) => { ) => {
if (signal.aborted) {
return
}
const stuff = await getPushStuff(relay) const stuff = await getPushStuff(relay)
if (!stuff) { if (!stuff) {
@@ -475,25 +484,114 @@ class CapacitorNotifications implements IPushAdapter {
} }
} }
for (const relay of get(userSpaceUrls)) { const unsyncRelay = async (key: string, relay: string) => {
const {muted_rooms} = getSettings() const stuff = await getPushStuff(relay)
if (!stuff) {
console.warn(`Failed to unsubscribe ${relay} from ${key} notifications: unsupported`)
} else {
const identifier = String(hash(subscription.callback + relay + key))
const address = new Address(30390, pubkey.get()!, identifier).toString()
const thunk = publishThunk({
signal,
relays: [stuff.url],
event: makeEvent(DELETE, {tags: [["a", address]]}),
})
const error = await waitForThunkError(thunk)
if (error) {
console.warn(`Failed to unsubscribe ${relay} from ${key} notifications:`, error)
}
}
}
const syncedSpaceUrls = new Set<string>()
const syncSpaceRelay = (url: string) => {
const {spaces, mentions} = notificationSettings.get()
const filters = [{kinds: MESSAGE_KINDS}, makeCommentFilter(CONTENT_KINDS)] const filters = [{kinds: MESSAGE_KINDS}, makeCommentFilter(CONTENT_KINDS)]
const ignore = [{"#h": [muted_rooms]}] const mutedRooms = getSettings().muted_rooms.map(splitRoomId).filter(nthEq(0, url)).map(nth(1))
syncRelay("spaces", relay, filters, ignore) if (spaces) {
syncRelay("spaces", url, filters, [{"#h": [mutedRooms]}])
} else {
unsyncRelay("spaces", url)
}
if (mentions) {
const mentionFilters = filters.map(assoc("#p", [pubkey.get()!]))
if (!spaces) {
syncRelay("mentions", url, mentionFilters)
} else if (mutedRooms.length > 0) {
syncRelay("mentions", url, mentionFilters.map(assoc('#h', [mutedRooms])))
} else {
unsyncRelay("mentions", url)
}
} else {
unsyncRelay("mentions", url)
}
} }
const $pubkey = pubkey.get()! const syncSpaceRelays = () => {
const $userSpaceUrls = get(userSpaceUrls)
const {spaces, mentions} = notificationSettings.get()
for (const relay of getPubkeyRelays($pubkey, RelayMode.Messaging)) { for (const url of $userSpaceUrls) {
const filters = [{kinds: DM_KINDS, "#p": [$pubkey]}] syncSpaceRelay(url)
syncedSpaceUrls.add(url)
}
syncRelay("messages", relay, filters) for (const url of syncedSpaceUrls) {
if (!$userSpaceUrls.includes(url)) {
unsyncRelay("spaces", url)
syncedSpaceUrls.delete(url)
}
}
} }
const syncedMessagingUrls = new Set<string>()
const syncMessagingRelay = (url: string) => {
const {messages} = notificationSettings.get()
if (messages) {
syncRelay("messages", url, [{kinds: DM_KINDS, "#p": [pubkey.get()!]}])
} else {
unsyncRelay("messages", url)
}
}
const syncMessagingRelays = () => {
const messagingRelayUrls = getRelaysFromList(get(userMessagingRelayList))
for (const url of messagingRelayUrls) {
syncMessagingRelay(url)
syncedMessagingUrls.add(url)
}
for (const url of syncedMessagingUrls) {
if (!messagingRelayUrls.includes(url)) {
unsyncRelay("messages", url)
syncedMessagingUrls.delete(url)
}
}
}
const unsubscribers = [
userSpaceUrls.subscribe(syncSpaceRelays),
userMessagingRelayList.subscribe(syncMessagingRelays),
userSettingsValues.subscribe(syncSpaceRelays),
userSettingsValues.subscribe(syncMessagingRelays),
]
signal.addEventListener("abort", () => unsubscribers.forEach(call))
} }
start() { start() {
const {token} = notificationSettings.get() const {token} = notificationState.get()
const controller = new AbortController() const controller = new AbortController()
const {signal} = controller const {signal} = controller
@@ -502,13 +600,8 @@ class CapacitorNotifications implements IPushAdapter {
} else { } else {
call(async () => { call(async () => {
try { try {
if (!notificationSettings.get().subscription) { await this.syncServer(signal)
await this.syncServer(signal) await this.syncRelays(signal)
}
if (notificationSettings.get().subscription) {
await this.syncRelays(signal)
}
} catch (e) { } catch (e) {
console.error(e) console.error(e)
} }
@@ -523,9 +616,7 @@ class CapacitorNotifications implements IPushAdapter {
} }
async disable() { async disable() {
const {subscription, ...settings} = notificationSettings.get() const {subscription} = notificationState.get()
await PushNotifications.unregister()
if (subscription) { if (subscription) {
const res = await fetch(buildUrl(PUSH_SERVER, "subscription", subscription.key), { const res = await fetch(buildUrl(PUSH_SERVER, "subscription", subscription.key), {
@@ -537,7 +628,8 @@ class CapacitorNotifications implements IPushAdapter {
} }
} }
notificationSettings.set({...settings, push: false}) notificationSettings.update(assoc('push', false))
notificationState.set({})
} }
} }
+6 -1
View File
@@ -27,7 +27,7 @@
import {setupAnalytics} from "@app/util/analytics" import {setupAnalytics} from "@app/util/analytics"
import {authPolicy, blockPolicy, trustPolicy, mostlyRestrictedPolicy} from "@app/util/policies" import {authPolicy, blockPolicy, trustPolicy, mostlyRestrictedPolicy} from "@app/util/policies"
import {kv, db} from "@app/core/storage" import {kv, db} from "@app/core/storage"
import {userSettingsValues, notificationSettings} from "@app/core/state" import {userSettingsValues, notificationSettings, notificationState} from "@app/core/state"
import {syncApplicationData} from "@app/core/sync" import {syncApplicationData} from "@app/core/sync"
import * as commands from "@app/core/commands" import * as commands from "@app/core/commands"
import * as requests from "@app/core/requests" import * as requests from "@app/core/requests"
@@ -107,6 +107,11 @@
store: notificationSettings, store: notificationSettings,
storage: kv, storage: kv,
}), }),
sync({
key: "notificationState",
store: notificationState,
storage: kv,
}),
]) ])
// Set up our storage adapters // Set up our storage adapters