diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 173b0f694..13182f6d6 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,6 +1,7 @@ name: 🐞 Bug report description: Report an issue labels: [pending triage] +type: Bug body: - type: markdown attributes: diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index d21ac65b3..17cd7c8ff 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -1,6 +1,7 @@ name: 🚀 New feature proposal description: Propose a new feature labels: [enhancement] +type: Feature body: - type: markdown attributes: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d6ce8d45b..40739be64 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,6 +3,10 @@ on: push: branches: [main, dev] +env: + VITE_WEB_URL: ${{ vars.VITE_WEB_URL }} + VITE_API_URL: ${{ vars.VITE_API_URL }} + name: CI Format, Typecheck and Lint concurrency: group: ${{ github.workflow }}-${{ github.ref }}-lint diff --git a/CHANGELOG.md b/CHANGELOG.md index 645a3c922..db5569cfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # CHANGELOG -## [0.2.5-beta.0](https://github.com/RSSNext/follow/compare/v0.2.0-beta.2...v0.2.5-beta.0) (2024-11-28) +## [0.2.6-beta.0](https://github.com/RSSNext/follow/compare/v0.2.0-beta.2...v0.2.6-beta.0) (2024-12-06) ### Bug Fixes @@ -22,6 +22,7 @@ * add turbo build in ci ([7b848cd](https://github.com/RSSNext/follow/commit/7b848cd08aa4f97b1df35666166561d6fc30c5c9)) * add type checking to test script ([#1666](https://github.com/RSSNext/follow/issues/1666)) ([518a32f](https://github.com/RSSNext/follow/commit/518a32f2ce1498f21cff87e0b95d0a4fd0a0f4a0)) * adjust activation toast style ([e81245e](https://github.com/RSSNext/follow/commit/e81245e395ce1829f0c185a5a184c4cba8f8406c)) +* ai daily report layout in mobile ([64c7df1](https://github.com/RSSNext/follow/commit/64c7df1dda3e4a30a6152b24bcea0dd135e12ca9)) * align notification skeleton to left ([fa08d1a](https://github.com/RSSNext/follow/commit/fa08d1a0cb8421ca40e38dddd0d74415389f7a80)), closes [#1672](https://github.com/RSSNext/follow/issues/1672) * allow click when selecting ([c514458](https://github.com/RSSNext/follow/commit/c51445873249ed7340d86bcb7901dbeca98d096e)), closes [#1512](https://github.com/RSSNext/follow/issues/1512) * allow collect entry from list ([706f484](https://github.com/RSSNext/follow/commit/706f4847576fbb0237925434d4dace5c22fdbf93)) @@ -32,12 +33,17 @@ * app update logic ([9680351](https://github.com/RSSNext/follow/commit/9680351f2c5f6c6ca6542396a722719a69fa5064)) * app upgrade toast open link should in new window ([fc81546](https://github.com/RSSNext/follow/commit/fc81546bed6b07626215a57543a735001728f520)) * app upgraded toast href error ([#1444](https://github.com/RSSNext/follow/issues/1444)) ([c875d69](https://github.com/RSSNext/follow/commit/c875d697b2a1cd9e49f3c91397531a82928e1bc8)) +* app version ([c5854f4](https://github.com/RSSNext/follow/commit/c5854f45795bf6cb78a9d24f05678fe548ceba06)) * assets rewrite ([#1204](https://github.com/RSSNext/follow/issues/1204)) ([488e8ef](https://github.com/RSSNext/follow/commit/488e8effc6f00769df7dbf68d4e6d1e4e950b8e7)) +* attempt to fix the page freeze issue when re-opening modal after closing ([36d235e](https://github.com/RSSNext/follow/commit/36d235eeb8d08c841d475db2a354ad05d3f268d7)) * audio cover style ([21a93c7](https://github.com/RSSNext/follow/commit/21a93c757dfbc161d67f28500f0129bde1959662)) * audio player on mobile ([1e936e2](https://github.com/RSSNext/follow/commit/1e936e2c593adafa92d54ddc542ff30688c0e3bc)) +* audio player width, fixed [#1934](https://github.com/RSSNext/follow/issues/1934) ([238938a](https://github.com/RSSNext/follow/commit/238938a4da5b854f9f3422b93059b9f82f60d09b)) +* **auth:** redirect url ([e7d5576](https://github.com/RSSNext/follow/commit/e7d5576b63a77cd4f4e25a3124f9685f408a73de)) * auto archived list flash ([#1269](https://github.com/RSSNext/follow/issues/1269)) ([8d2478c](https://github.com/RSSNext/follow/commit/8d2478c6a93aa9f5a99fddc55bbb8e532e1a0fe1)) * auto load achieved entries when show achieved button is available ([074a60d](https://github.com/RSSNext/follow/commit/074a60d3cf93bcede88ea4d70b07cf7480be4229)) * **boost:** card text align center ([632d5d4](https://github.com/RSSNext/follow/commit/632d5d42d67999523e602fb18f59ca72543b7d7a)) +* **bridge:** window call should catch error ([7bdf100](https://github.com/RSSNext/follow/commit/7bdf10050cef7f39b0f485b89ca0445c49116d81)) * build ([740783a](https://github.com/RSSNext/follow/commit/740783a537f85e0bc215cd38ce37bf5bd6fc9b1a)) * build pre script ([8bd2de8](https://github.com/RSSNext/follow/commit/8bd2de84b898ffc1a4863d29d7056a0b9e7a9e2f)) * bump config ([117bd1b](https://github.com/RSSNext/follow/commit/117bd1ba08e4c287dc071669614567197e470d12)) @@ -45,18 +51,25 @@ * can not exit entry by close button ([e654c3a](https://github.com/RSSNext/follow/commit/e654c3ac165e5eb276ba51dc4ae0ab2da230a9d1)), closes [#1311](https://github.com/RSSNext/follow/issues/1311) * can not keep text selection, fixed [#1895](https://github.com/RSSNext/follow/issues/1895) ([4330a69](https://github.com/RSSNext/follow/commit/4330a693968abe16eeb0908943e643890a7b26a5)) * can not play bilibili video ([11ff813](https://github.com/RSSNext/follow/commit/11ff813c450fb519292b187a15236abe7d900abb)), closes [#1376](https://github.com/RSSNext/follow/issues/1376) +* can not show context menu on subscription sheet ([0155792](https://github.com/RSSNext/follow/commit/0155792a38088e38bfe41b0cd10f062ac21e88a0)) +* can not translate title by action ([ef68bae](https://github.com/RSSNext/follow/commit/ef68baeb29fbaba8a9d78a47656a8a7f852cc093)), closes [#1957](https://github.com/RSSNext/follow/issues/1957) * center dialog ([4a1ae06](https://github.com/RSSNext/follow/commit/4a1ae0668855b24513cf85b2a6527edf20c2da47)) +* change invitation code placeholder font to theme font ([#1978](https://github.com/RSSNext/follow/issues/1978)) ([d78f7cd](https://github.com/RSSNext/follow/commit/d78f7cdc178388f5e0c83be4ce49e32f68863efa)) * changelog ([f84aa0b](https://github.com/RSSNext/follow/commit/f84aa0b0cfdc350f26e79ce68c75788cc090321d)) +* ci ([#1943](https://github.com/RSSNext/follow/issues/1943)) ([f7eca73](https://github.com/RSSNext/follow/commit/f7eca73f5b2a5f1d3d24a3189fd4708da282b45b)) * **ci:** concurrency group ([fb0152e](https://github.com/RSSNext/follow/commit/fb0152eaec76b28ed9fc26381917ca7ec2aecb0b)) * **ci:** forge build error ([#1500](https://github.com/RSSNext/follow/issues/1500)) ([a5e3e02](https://github.com/RSSNext/follow/commit/a5e3e0228c7088e78061801466267ebdbd288e2c)) * **ci:** turbo not found ([c812bd7](https://github.com/RSSNext/follow/commit/c812bd71aabc63b5c9ebbe032f25aba5ac51bd64)) * **ci:** windows build ([9f72c26](https://github.com/RSSNext/follow/commit/9f72c263a6945fe90899f85f732c0866c7f61b25)) +* claim modal style in mobile ([a360235](https://github.com/RSSNext/follow/commit/a3602350236cf642825b24caad5801f37e7d093d)) +* claim modal width ([5c328ba](https://github.com/RSSNext/follow/commit/5c328babad21d51d91051cb83249df538e33dbee)) * clear cache permission in windows ([0ce6546](https://github.com/RSSNext/follow/commit/0ce6546d7f563c44de7d06a4f2dff8ed8f318c1a)) * clear selected feed ids when switching view ([c42cfdb](https://github.com/RSSNext/follow/commit/c42cfdb7db6fd2ac5722fe50006d7fd7675e17df)) * clear selection when pointer down, fixed [#1448](https://github.com/RSSNext/follow/issues/1448) ([33d3906](https://github.com/RSSNext/follow/commit/33d39067b5c5fdc8f302ca3ea13a740bbb014088)) * click outside to click area ([51194ac](https://github.com/RSSNext/follow/commit/51194aca6c51c9550703f416fa204f367d8a00de)) * **cmdk:** change default cmdk search type to feed ([4a8fdea](https://github.com/RSSNext/follow/commit/4a8fdea84a4df90313f8c577d77d3944a34aa149)) * condition key ([ffb3b94](https://github.com/RSSNext/follow/commit/ffb3b943b0c502cf940d7f3c0d4d506489b65d37)) +* content ([5a30f38](https://github.com/RSSNext/follow/commit/5a30f384082949f17a71f6d1f837b30966368157)) * context menu for multi select ([d68de79](https://github.com/RSSNext/follow/commit/d68de7933235351d64df68e3e2c49623184f4284)) * corner player style on safari ([e740d4d](https://github.com/RSSNext/follow/commit/e740d4da78032547c48014a31a25968fe1ad192f)) * correct z-index in toast ([6507744](https://github.com/RSSNext/follow/commit/6507744847b6ceee093adb17076292993d525313)) @@ -69,6 +82,7 @@ * debug html ([e9afc79](https://github.com/RSSNext/follow/commit/e9afc7944f4dc42be2ea530b4852e9c2f6207ac8)) * debug proxy html env inejct ([f98ae93](https://github.com/RSSNext/follow/commit/f98ae93ff4d0d25216e0570c44ef657cd36657e0)) * debug proxy page ([#1439](https://github.com/RSSNext/follow/issues/1439)) ([c8d1230](https://github.com/RSSNext/follow/commit/c8d1230be753109bd7eaef45e7d0ad0399d8bd4d)) +* **debug:** inject `import.env` ([810516a](https://github.com/RSSNext/follow/commit/810516ae7d9b4196c047249cb0f889de8b012b99)) * delete condition item ([8b9750d](https://github.com/RSSNext/follow/commit/8b9750da1219f3d046b78c70c1966e284b086348)) * delete last condition ([72d894a](https://github.com/RSSNext/follow/commit/72d894a754ba3a0c3b6c4e030b3b274dc98de6b6)) * detecting windows11 ([#1170](https://github.com/RSSNext/follow/issues/1170)) ([2813f1d](https://github.com/RSSNext/follow/commit/2813f1d6540fcb215287dd32cbc0f8cf87cb1cb0)) @@ -78,6 +92,7 @@ * disable auto load archive for inbox and list ([7825e16](https://github.com/RSSNext/follow/commit/7825e16b6d1230ba2c13e5ef00474fc05cc510e5)) * disable horizontal auto-scroll ([8666b41](https://github.com/RSSNext/follow/commit/8666b41f2dded5b6b5cb86b7824683b48582cf1d)), closes [#1512](https://github.com/RSSNext/follow/issues/1512) * disable overscroll-behavior ([5b32e33](https://github.com/RSSNext/follow/commit/5b32e33cf144ea2077ef08fba8008e0d6df022b7)) +* disable sw in dev ([150cdea](https://github.com/RSSNext/follow/commit/150cdea5ea4947ada1b968b23e4a278350d98e43)) * **discover:** card text truncate ([557e912](https://github.com/RSSNext/follow/commit/557e91228af27251663904dfd3211c535b5b5415)) * dismiss non-important modal when click outside, fix [#1468](https://github.com/RSSNext/follow/issues/1468) ([cda2264](https://github.com/RSSNext/follow/commit/cda226420f6c42679d594c02fd7f6fb103bfc236)) * dnd and scroll ([#1528](https://github.com/RSSNext/follow/issues/1528)) ([b1e28be](https://github.com/RSSNext/follow/commit/b1e28be2b0049eae73d51a18cd9180b077a512ca)) @@ -85,6 +100,7 @@ * do not exclude required path params ([f6cbace](https://github.com/RSSNext/follow/commit/f6cbacec853dd8aa901c93c8c86820bbbf1f8232)), closes [#1623](https://github.com/RSSNext/follow/issues/1623) * do not update action setting for archived query ([4adcded](https://github.com/RSSNext/follow/commit/4adcded02179b8d42f1a906b75b10fd403438f8d)) * don't cache user session ([e8d7e6c](https://github.com/RSSNext/follow/commit/e8d7e6ce64d09bb1f2b8f3e26f7aba250c3cca84)) +* don't inject pwa into debug html ([5fec56e](https://github.com/RSSNext/follow/commit/5fec56e9b02ec8a3dbed7c99a7328edf51d41035)) * downgrade radix scrollview ([199e0bc](https://github.com/RSSNext/follow/commit/199e0bc7c514822233c42f048691926f4f7cb190)) * **dx:** merge script and fix host rewrite ([3fa3bd5](https://github.com/RSSNext/follow/commit/3fa3bd5fc5b730421f6abc4dd2938beea67322dc)) * dynamic import dexie-export-import ([48aea7b](https://github.com/RSSNext/follow/commit/48aea7b88e4d72d20e52ce7a5037ef239d80611d)) @@ -93,6 +109,7 @@ * entry thumbnail keep origin aspect ratio ([6e04e6e](https://github.com/RSSNext/follow/commit/6e04e6eacd6346bd2869c683ec417932a0d13807)) * entry title bar margin-left in zen mode ([25abd8f](https://github.com/RSSNext/follow/commit/25abd8ff1c42a37b741676e1b3a3312f99decb8a)) * entry title can selectable, fixed [#1428](https://github.com/RSSNext/follow/issues/1428) ([6320c00](https://github.com/RSSNext/follow/commit/6320c00373a98846cdd92235b044fa1fd1b8266e)) +* entry title truncate ([685ce3c](https://github.com/RSSNext/follow/commit/685ce3cc4165c35918e92b06951d2479ce5adb37)) * **entry-column:** pre-render cached entries ([5065c8e](https://github.com/RSSNext/follow/commit/5065c8e52dcba1a8d8f16ce3729b7c2eb7f5a192)) * escape for seo meta tags ([9564257](https://github.com/RSSNext/follow/commit/9564257564e417e18bdeedded9397d469e6daf14)), closes [#1232](https://github.com/RSSNext/follow/issues/1232) * explicitly assign a value to `cancelId` for ‘Clear All Data' dialog ([#1624](https://github.com/RSSNext/follow/issues/1624)) ([fdb87cf](https://github.com/RSSNext/follow/commit/fdb87cf5cdf9623f16eafa7e9ae25f4fc7950e05)) @@ -112,10 +129,13 @@ * float sidebar missing background ([b9982e0](https://github.com/RSSNext/follow/commit/b9982e0a6b44f476621daf30f93f8e740a544a02)) * follow external server fetch ua ([072dec0](https://github.com/RSSNext/follow/commit/072dec02b787bcdd8af7f5c0bf25398e2da8c15e)) * form button align center ([589c6e4](https://github.com/RSSNext/follow/commit/589c6e469b3fecb1c46f1ec2735494da3367abec)) +* form content width ([42d66ce](https://github.com/RSSNext/follow/commit/42d66ce19487678a3fd56059b03496d5b50f3b3d)) * group date item z index ([8c5c62e](https://github.com/RSSNext/follow/commit/8c5c62e0d698f3a0d72a2ef0595e44986c95320b)) * handle tipUsers migration for older feed versions ([#1384](https://github.com/RSSNext/follow/issues/1384)) ([2ca6d80](https://github.com/RSSNext/follow/commit/2ca6d807e3c0626eca79dd6789ae20cdc0639fc3)) +* handle undefined arguments in executeJavaScript call ([#1958](https://github.com/RSSNext/follow/issues/1958)) ([51519e2](https://github.com/RSSNext/follow/commit/51519e2d7a1a7aee81041c88ec978864903d0b2d)) * handling default port in proxy configuration ([0bd76a2](https://github.com/RSSNext/follow/commit/0bd76a24a240951782d44b7e38040c305bb2b9b9)) * hide cache control in web ([961bd0f](https://github.com/RSSNext/follow/commit/961bd0fccd63e7e9a21c9bea62cd426bac9a8423)) +* hide debug in mobile ([930be73](https://github.com/RSSNext/follow/commit/930be73c7e543d695bde22b677d37f42cd5d7b94)) * hide to tray on close window ([392135b](https://github.com/RSSNext/follow/commit/392135b8c4b4ec00aa49e66b28bcb0e77390683a)) * hide viewSourceContent on mobile ([#1711](https://github.com/RSSNext/follow/issues/1711)) ([86caeb6](https://github.com/RSSNext/follow/commit/86caeb6df42451a8bf8dbb9092d7e0aa8fdd1535)) * hot key switch view ([45d0fd9](https://github.com/RSSNext/follow/commit/45d0fd914f374bb7217e9a48c48bc1df4a5a8c6e)) @@ -132,12 +152,19 @@ * inline image style ([1d0eca1](https://github.com/RSSNext/follow/commit/1d0eca1ca16621634d0d0957b1d4d6c5f037498c)), closes [#1318](https://github.com/RSSNext/follow/issues/1318) * input and toast font style use user custom font ([#1322](https://github.com/RSSNext/follow/issues/1322)) ([c40becf](https://github.com/RSSNext/follow/commit/c40becff782e129c42984b354f2004b82c7f2615)) * lint ([dafaf0a](https://github.com/RSSNext/follow/commit/dafaf0a97d40a6df659a7869d7c11f5cf529dfe7)) +* list unread dot position ([dad33a1](https://github.com/RSSNext/follow/commit/dad33a12db4b270801da6b8c621b3049e6672c27)) +* load dynamic render assets ([3499535](https://github.com/RSSNext/follow/commit/3499535b4091e3a82734c416528b0766e70f0b63)) * load instagram image fail ([f8fd58f](https://github.com/RSSNext/follow/commit/f8fd58f78ec11bc221eb9190ac7b6a66dd858f9c)), closes [#1539](https://github.com/RSSNext/follow/issues/1539) * localeCompare is undefined ([ab28156](https://github.com/RSSNext/follow/commit/ab28156cb8bd998ec1bc6b43b9a44bd2ecd17137)) +* lock ([97c1ece](https://github.com/RSSNext/follow/commit/97c1ece9e3d855c7dbcf7238e7953e9bd206811c)) +* mark as read when navigating ([423777e](https://github.com/RSSNext/follow/commit/423777e1372631b8ea8d06913ce55fbdf97f1f07)) * mark feed unread dirty, refetch unread next time, fixed [#1830](https://github.com/RSSNext/follow/issues/1830) ([58d0e9c](https://github.com/RSSNext/follow/commit/58d0e9c1902157c2e9fb1444bc1c0db0b775485b)) * mark single feed as all read ([a4acd2f](https://github.com/RSSNext/follow/commit/a4acd2fb65335f228875ed5b38f03a9c71b76e1b)) * md lint ([c8e556a](https://github.com/RSSNext/follow/commit/c8e556a3ac861cab4a4a7aff1aa2fa51aaca1f42)) +* media item dot position on mobile ([c67248f](https://github.com/RSSNext/follow/commit/c67248ffc8d77cbdeac289f5ed398248dff41cb3)) * missing site url in feed selector ([ea677ac](https://github.com/RSSNext/follow/commit/ea677ac6a3a43489a9508a32ecb22fa38ecf4f27)) +* mobile need login modal ([0fb16f2](https://github.com/RSSNext/follow/commit/0fb16f2352e9776731522204b838be59f66127a4)) +* mobile pop back to entry list will refresh data ([3c18768](https://github.com/RSSNext/follow/commit/3c18768968aeb4635933ae616c52de55b6fad2ab)) * modal bottom buttons align ([#1216](https://github.com/RSSNext/follow/issues/1216)) ([b97096d](https://github.com/RSSNext/follow/commit/b97096dbd06bb7687b6c1313de45d8e91dee25af)) * modal close button overlaps the select content ([#1166](https://github.com/RSSNext/follow/issues/1166)) ([3c103ed](https://github.com/RSSNext/follow/commit/3c103ed15daeb1f57a001d615c047c303087ba46)) * **modal:** close button can not click on electron ([c544dfc](https://github.com/RSSNext/follow/commit/c544dfcc8d4613e8d4f6025dd8a60cf679881680)) @@ -147,10 +174,14 @@ * **modal:** repeat user profile dialog ([#1155](https://github.com/RSSNext/follow/issues/1155)) ([ad86372](https://github.com/RSSNext/follow/commit/ad86372bfb345b6f921da783c401be30cdbe4b89)) * motion button motion style in mobile ([611d2cf](https://github.com/RSSNext/follow/commit/611d2cf0349be360aa86601ed4eb0522118bad49)) * multi select state ([f476483](https://github.com/RSSNext/follow/commit/f476483fe3b944371c0327495d53ec3d42006dda)) +* nightly auto updater ([27b3bf4](https://github.com/RSSNext/follow/commit/27b3bf4f50badb8fac4b497d18a25002ed3b1981)) * not showing feed certification icon on the sidebar ([#1442](https://github.com/RSSNext/follow/issues/1442)) ([b395891](https://github.com/RSSNext/follow/commit/b395891b66a581254f24aae75d0d61869fb6fb33)) * omit cacheDimensions from img attributes in MediaImpl ([ec12b35](https://github.com/RSSNext/follow/commit/ec12b3538f42c8596c4e700ae2284a02b4d7791e)) * only show ComboboxOptions when there are suggestions ([136aa20](https://github.com/RSSNext/follow/commit/136aa205794b6193826d1839350e65228d2b4f20)) * only use discussion for feed error ([e30783b](https://github.com/RSSNext/follow/commit/e30783bfaaa9e40815493d28b49ba7c41ac86414)) +* open native context menu when select text in social media item, fixed [#1454](https://github.com/RSSNext/follow/issues/1454) ([e7b8f66](https://github.com/RSSNext/follow/commit/e7b8f660bb8b6c2edfc04c0dda8702f881971aed)) +* optimize audio source comparison in audio player ([#1987](https://github.com/RSSNext/follow/issues/1987)) ([322435a](https://github.com/RSSNext/follow/commit/322435a20f5e076ecd23001d9d677dd0857e1726)) +* optimize no audio cover list item style, fixed [#1979](https://github.com/RSSNext/follow/issues/1979) ([8de8501](https://github.com/RSSNext/follow/commit/8de8501bb7022b3d1d31caed03558666afc64f57)) * optimize print mode ([6f1eb26](https://github.com/RSSNext/follow/commit/6f1eb26eb110b8ad061473e05c451debc9c69074)) * optimize some styles ([9b99bf4](https://github.com/RSSNext/follow/commit/9b99bf4428cf6f1ca3218a3074a944af4d014f57)) * optimize the animation of the Follow button on the User Profile Modal ([#1156](https://github.com/RSSNext/follow/issues/1156)) ([87717d6](https://github.com/RSSNext/follow/commit/87717d642607cca4254f11d673a8a910fc6ab076)) @@ -181,16 +212,24 @@ * remove gcore icon ([#1220](https://github.com/RSSNext/follow/issues/1220)) ([486fa20](https://github.com/RSSNext/follow/commit/486fa202ee9488981a733f235f95c90a073e7166)) * remove hardcode minfest ([0432618](https://github.com/RSSNext/follow/commit/04326186b71dc840e1454e6a1573257c97db32c8)) * remove immer set to avoid object extensible ([7e5a791](https://github.com/RSSNext/follow/commit/7e5a79155a083a8242579dee18d019049b7ad6f5)) +* remove mouse enter event on mobile ([279e402](https://github.com/RSSNext/follow/commit/279e4025a5b14ad5cf5972bf439d2a30ce7d7d79)) * remove prev entries ids ref ([996629c](https://github.com/RSSNext/follow/commit/996629c14c752f76b65d423ebc23d60b315dee77)) * remove skeleton when app load but in 404 ([54d4e52](https://github.com/RSSNext/follow/commit/54d4e529c796e6cc22c36b2a9a1e949b1dad5b37)) +* remove stack when close sheet ([eeb785d](https://github.com/RSSNext/follow/commit/eeb785de3f822166a04b3e6916fc107fb600db25)), closes [#1910](https://github.com/RSSNext/follow/issues/1910) * remove vercel header rewrite ([#1463](https://github.com/RSSNext/follow/issues/1463)) ([#1480](https://github.com/RSSNext/follow/issues/1480)) ([94971da](https://github.com/RSSNext/follow/commit/94971dad4e1d828aa4c90d8f02445cc04a8500c9)) * remove vercel header rewrite for assets ([79e6f48](https://github.com/RSSNext/follow/commit/79e6f483265216773e0ccf5ac0690d06300d3e80)) * remove wdyr in prod ([70e3b72](https://github.com/RSSNext/follow/commit/70e3b72b0ae88a722e2ff9e7d6027003f88829e2)) * replace Avatar component with UserAvatar in ranking and transaction sections ([#1759](https://github.com/RSSNext/follow/issues/1759)) ([52c3695](https://github.com/RSSNext/follow/commit/52c3695355ed3962d9ad53e61a612d88c54ab650)) * response error toast style ([7748588](https://github.com/RSSNext/follow/commit/77485886089e9faea54cf80a96a48a0bedd2a39e)) * revalidate when switch from subscription startupScreen ([e63c12c](https://github.com/RSSNext/follow/commit/e63c12c27227341a2477eb06fa039e2b0a2a00e5)) +* revert electron bump ([#1991](https://github.com/RSSNext/follow/issues/1991)) ([200415c](https://github.com/RSSNext/follow/commit/200415c77f52d11a43c2610c5c58c61fbbfb23f8)) * revert merge chunk ([4a9679b](https://github.com/RSSNext/follow/commit/4a9679bad109a786b80939ca9ead32f1505be186)) * scroll bar z index ([5057999](https://github.com/RSSNext/follow/commit/50579995367b871e84768c5983b3302f75f8e077)), closes [#1233](https://github.com/RSSNext/follow/issues/1233) +* scroll out mark read logic ([eaecb25](https://github.com/RSSNext/follow/commit/eaecb252d322b5f2e8e89873523dfbe8d213848c)) +* scroll out to mark read in mobile ([a44d598](https://github.com/RSSNext/follow/commit/a44d59820ba7e62b5db9de478f813cd9f287f670)) +* scroll state for mobile float bar ([126206b](https://github.com/RSSNext/follow/commit/126206b995f47c17ed60c2a07296987dd0b8dc95)) +* **security:** add dompurify for raw document string pre-cleaning on readability to avoid xss attack ([#2000](https://github.com/RSSNext/follow/issues/2000)) ([f2ed678](https://github.com/RSSNext/follow/commit/f2ed678afc5a17b099a5931aa5af3a36138750d0)) +* selected id state ([36cdbbd](https://github.com/RSSNext/follow/commit/36cdbbd706c41b10b6fd19d84756b35f8c0a3f8b)) * selecting state ([146fe8f](https://github.com/RSSNext/follow/commit/146fe8fa5ccf4c6211bb5d72be9efbb0714de878)) * server styles ([ff6b0f7](https://github.com/RSSNext/follow/commit/ff6b0f780d80d43bb974736f8579f70a45e1be61)) * **server:** complie esmodule ([c438119](https://github.com/RSSNext/follow/commit/c438119ea8208f4da14da2294a381a6c34a14e25)) @@ -203,6 +242,7 @@ * setting loader type error ([#1469](https://github.com/RSSNext/follow/issues/1469)) ([6ef5622](https://github.com/RSSNext/follow/commit/6ef5622a32eaaebfeec32cca1000bf908f742e34)) * **share:** normal list item layout ([3a0c039](https://github.com/RSSNext/follow/commit/3a0c0393e01e09ebf86ab1415b3d84bca6d2b882)) * **share:** og image grid width and image align top to description ([14e37da](https://github.com/RSSNext/follow/commit/14e37da0cebbdb1b283c562c21acc2f8ba385bf9)) +* sheet stack dismiss transition ([6a30f23](https://github.com/RSSNext/follow/commit/6a30f2363e3d99c95b3b7a5415c4fd898d1c12a4)) * shiki editor paste rich-text ployfill ([9d0bc51](https://github.com/RSSNext/follow/commit/9d0bc515ade4243fef018c8c606532654d5c76ef)) * **shortcut:** add cmd+k to guide ([e9ab9b6](https://github.com/RSSNext/follow/commit/e9ab9b6f379abe426ac751961e3767c8aa20b663)) * should remove app skeleton in error page ([4073632](https://github.com/RSSNext/follow/commit/4073632dbf236e19926e013d5048f59f90d9b3ae)) @@ -221,17 +261,23 @@ * **store:** immer draft should to raw ([3a3992d](https://github.com/RSSNext/follow/commit/3a3992d63f0f62cd37aa5accb4910ad79e3190e8)) * **store:** singleton store guard ([5a8725b](https://github.com/RSSNext/follow/commit/5a8725b50767bb6faddca6e0af6cef2cfb28da29)) * **stream:** prevent request if no ids ([a92ef49](https://github.com/RSSNext/follow/commit/a92ef49dedf480f519525cf8f25a0e5383b27059)) +* style ([ce1942a](https://github.com/RSSNext/follow/commit/ce1942a29a96f1cf72fc516ce54b28007b4fd40c)) * style for audio item ([7e4653f](https://github.com/RSSNext/follow/commit/7e4653f01cc987614843db06871b2d3bd30221f5)) +* **style:** add missing sticky border ([cff217a](https://github.com/RSSNext/follow/commit/cff217aeead10622e0982a7668f7d14eab53e1a7)) +* **styles:** radio group label margin ([c6deefc](https://github.com/RSSNext/follow/commit/c6deefc66167b7e8eb91bd565c2bac86eb8662a2)) +* sw register ([5bbfb2d](https://github.com/RSSNext/follow/commit/5bbfb2d4e23fb49dde949cbeffe2a2c748e21595)) * sync active view after close sheet ([6f751a4](https://github.com/RSSNext/follow/commit/6f751a4a21796652d8cfc38b6209d7bfb4016ade)) * sync unread when fetch unread ([196b717](https://github.com/RSSNext/follow/commit/196b717a7fbdd362d9c2128223272c6616363bc5)) * text wrap for feed title ([f123e5c](https://github.com/RSSNext/follow/commit/f123e5c0555976b496a5e79f3d5c7937984ebdeb)) * text wrap not always ([3cb6364](https://github.com/RSSNext/follow/commit/3cb6364462a3c738af3a7b86eae17513ccb6705c)) * the volume bar can click and adjust style. ([#1474](https://github.com/RSSNext/follow/issues/1474)) ([c409a5c](https://github.com/RSSNext/follow/commit/c409a5c7945eb178fca5274dd6ac64f82025821d)) * theme cannot be switched ([#1157](https://github.com/RSSNext/follow/issues/1157)) ([d5be028](https://github.com/RSSNext/follow/commit/d5be0287ad03e47635be057222ca7155a033ae80)) +* **tip-modal:** radio cards align center ([6f041f9](https://github.com/RSSNext/follow/commit/6f041f9ef9099090d9f995d152a4adb32a8e8848)) * **toc:** fix text truncate in title line ([f9b1a61](https://github.com/RSSNext/follow/commit/f9b1a61c0185b449184b34df5f3a3869a4e722a4)) * **toc:** should focus when toc item clicked ([f51dfdd](https://github.com/RSSNext/follow/commit/f51dfddc9ef40f4a7f226f32f9357e03a04f6ee0)) * translate form style ([6f3bb61](https://github.com/RSSNext/follow/commit/6f3bb61023dde1d58164425d8649c90bb4f680c6)), closes [#1184](https://github.com/RSSNext/follow/issues/1184) * **translations:** update zh-CN locale files for accuracy ([#1739](https://github.com/RSSNext/follow/issues/1739)) ([83c9f71](https://github.com/RSSNext/follow/commit/83c9f717dd7092dc4a4b1106961d746988066fd9)) +* trending api based on language ([83ca873](https://github.com/RSSNext/follow/commit/83ca87349598acc361c8128bbcb014d89fcb56cf)) * trial limit ([eee2bf8](https://github.com/RSSNext/follow/commit/eee2bf8771d2d30bba1f534984e3ca8d5e26cf04)) * try fix dayjs init ([093f80d](https://github.com/RSSNext/follow/commit/093f80d9da223c567125285cc0f312f419bb4042)) * try fix float bar inset bottom ([3110f95](https://github.com/RSSNext/follow/commit/3110f953da896302a90bb65bd44de034fbb87ec4)) @@ -253,10 +299,14 @@ * update version toast ([25e7cea](https://github.com/RSSNext/follow/commit/25e7cea3c139335960c3de2922cf0ffa9c9c6c39)), closes [#1450](https://github.com/RSSNext/follow/issues/1450) * **upgrade:** changelog container should w-full ([1551bf6](https://github.com/RSSNext/follow/commit/1551bf648c511cbf615f515b2e2d93077b0e42b4)) * use external link for login button ([d1975c2](https://github.com/RSSNext/follow/commit/d1975c20217290b2b7dc39866826c99f803dbd57)) +* use replace for discover form navigation ([63602f2](https://github.com/RSSNext/follow/commit/63602f266390781a3552a14eefa35455f19c92b6)) * use turbo run concurrently task ([742f915](https://github.com/RSSNext/follow/commit/742f91517d87d136bc8dc6ee65008e9b6880d435)) +* validate file format for OPML and XML in import schema ([2f9bd43](https://github.com/RSSNext/follow/commit/2f9bd43775dd0260ade8aac80f7067b927edba7a)) * vercel do not support `__` prefix for api route ([45a66e0](https://github.com/RSSNext/follow/commit/45a66e0f972d18831795d92b1d3c1f3893f396dc)) * vercel rewrite config ([#1203](https://github.com/RSSNext/follow/issues/1203)) ([c954d61](https://github.com/RSSNext/follow/commit/c954d61f074e282a9a86cbf1d1546748871c20e7)) * video media can not play in video view ([4cbf8a5](https://github.com/RSSNext/follow/commit/4cbf8a54fcf11fb71ff935baee52c79a83f5035c)), closes [#1645](https://github.com/RSSNext/follow/issues/1645) +* When pasting the entire URL, auto adjust the URL prefix ([#1762](https://github.com/RSSNext/follow/issues/1762)) ([3c7aeac](https://github.com/RSSNext/follow/commit/3c7aeacc90cbdcbe6bf4b06572d74f269f2c8854)), closes [#1761](https://github.com/RSSNext/follow/issues/1761) +* window titlebar maximize state sync, fixed [#1982](https://github.com/RSSNext/follow/issues/1982) ([#1989](https://github.com/RSSNext/follow/issues/1989)) ([7ad1e30](https://github.com/RSSNext/follow/commit/7ad1e305c3167633d58b6b621dba2cd63d1cf528)) * wrap with Ellipsis ([3ba9093](https://github.com/RSSNext/follow/commit/3ba90936931ad36790a68ee90a2c1582054bb90a)) * zoom width limit ([eaf33d2](https://github.com/RSSNext/follow/commit/eaf33d272f8675cd929eb7227578b6364716e60a)) @@ -274,14 +324,18 @@ * add follow user button in profile modal ([#1147](https://github.com/RSSNext/follow/issues/1147)) ([7c60d5e](https://github.com/RSSNext/follow/commit/7c60d5e91dd4a21872217427bd99fe8eae688ce1)) * add hydrate data type-safe helper ([cb6a65b](https://github.com/RSSNext/follow/commit/cb6a65b7cc1651d86b83b5b4089a7145cd59b0be)) * add image preview in picture gallery images ([59728a8](https://github.com/RSSNext/follow/commit/59728a89295c2a9c6130651d06699eef027fef5e)) +* add mobile top timeline setting ([fe48d7c](https://github.com/RSSNext/follow/commit/fe48d7cf02a202a1f14bbfe3abe4c813629ac968)) +* add more actions to entry header ([#1993](https://github.com/RSSNext/follow/issues/1993)) ([5c4b5f0](https://github.com/RSSNext/follow/commit/5c4b5f0095cff53f1ce70d66f2275d0a9c73e985)) * add old browser check ([a4796ce](https://github.com/RSSNext/follow/commit/a4796ce4c9a0d1558b9467b80f1f0806dfaba321)) * add random color for user fallback bg ([dcbae89](https://github.com/RSSNext/follow/commit/dcbae89020e88947be693c100c644ee603519e96)) * add reveal log file ([adbdf74](https://github.com/RSSNext/follow/commit/adbdf7472b6789a365489b2c5b09dd503ec648e9)) * add sentry trace id ([40843ac](https://github.com/RSSNext/follow/commit/40843ac79f390d0db81490522475a3557f57b2e4)) * add server announcement toast ([7b34357](https://github.com/RSSNext/follow/commit/7b3435749b8516466eae388172694f22d6b26a83)) * add updatelog modal ([84228bc](https://github.com/RSSNext/follow/commit/84228bc5c8755c4b957bc901e6e552ef176ed00c)) +* add zen mode quick menu item and reduce check show sidebar interval ([f5d43d6](https://github.com/RSSNext/follow/commit/f5d43d6480727e0e5e3f341c0c4c3e7a1f73ce81)) * adjust more ui ([08929ab](https://github.com/RSSNext/follow/commit/08929ab3ae15758850d04b82f7773358579c4a78)) * allow disable auto group behavior ([23fd936](https://github.com/RSSNext/follow/commit/23fd9368baea10b15b89baf27a422e5695a08f7b)), closes [#1602](https://github.com/RSSNext/follow/issues/1602) +* allow fille default title when editing feed ([495b29e](https://github.com/RSSNext/follow/commit/495b29e5898f18506577016dfe358f9c0add8035)), closes [#1503](https://github.com/RSSNext/follow/issues/1503) * and or condition for action ([#1616](https://github.com/RSSNext/follow/issues/1616)) ([4193a6b](https://github.com/RSSNext/follow/commit/4193a6b14d284a5e399fe94d9f305146179a75b4)) * **app:** support cache limit and clean cache ([dee294d](https://github.com/RSSNext/follow/commit/dee294dda589ca9e2eaee8a7e55197635b6323c7)) * bring rehypeUrlToAnchor back ([6f0cc4d](https://github.com/RSSNext/follow/commit/6f0cc4d566c9f2f552f0fedf1a8e570a817e0f56)), closes [#1373](https://github.com/RSSNext/follow/issues/1373) @@ -297,18 +351,22 @@ * **external:** new open by deeplink logic ([71fcf50](https://github.com/RSSNext/follow/commit/71fcf50d0fd3ac30f8e9c45db90314672904a615)) * fetch stream entry content ([1739208](https://github.com/RSSNext/follow/commit/173920802edf1f4e13eee68bf5d541391ca6ebf9)) * focusable ([eb01d03](https://github.com/RSSNext/follow/commit/eb01d030129f6196d6e9855be42a218be9d5668b)) +* fold the long text content of social media ([e46b30a](https://github.com/RSSNext/follow/commit/e46b30a07fe74e1bacb234962b1542c849d2177d)) * hide trend ([2b92599](https://github.com/RSSNext/follow/commit/2b92599e18d3d33fd0371d4d3a5f3e3a6d94aeb6)) * **i18n:** added multiple text translations (zh-TW) ([#1621](https://github.com/RSSNext/follow/issues/1621)) ([a15f23a](https://github.com/RSSNext/follow/commit/a15f23a5c7bb697c75c7fecf8603612b2584baa8)) * **i18n:** discover categories and mark all read undo button ([#1506](https://github.com/RSSNext/follow/issues/1506)) ([06bdf6c](https://github.com/RSSNext/follow/commit/06bdf6cfb90b03e1624189ebc05a389495e8bedc)) +* **i18n:** translations (zh-TW) ([#1942](https://github.com/RSSNext/follow/issues/1942)) ([fea74b4](https://github.com/RSSNext/follow/commit/fea74b47829921822e0c701ea36ab1d4ac1e2083)) * **icon:** use gradient fallback background ([e827002](https://github.com/RSSNext/follow/commit/e8270025e469d9a0463d267d3da591a2991951bd)) * image zoom ([1e47ba2](https://github.com/RSSNext/follow/commit/1e47ba25671000408e69fc3bae2c4626d0bd664e)), closes [#1183](https://github.com/RSSNext/follow/issues/1183) * **infra:** electron app can hot update renderer layer ([#1209](https://github.com/RSSNext/follow/issues/1209)) ([ca4751a](https://github.com/RSSNext/follow/commit/ca4751acd275579614a477d133ed643fca3fbf1a)) * **integration:** add outline integration ([#1229](https://github.com/RSSNext/follow/issues/1229)) ([0d0266b](https://github.com/RSSNext/follow/commit/0d0266b25189a74efdc63ce0062f3a379d4a0729)) +* **integration:** Add readeck integration ([#1972](https://github.com/RSSNext/follow/issues/1972)) ([1ce3f5b](https://github.com/RSSNext/follow/commit/1ce3f5b8ba95b16ad1b12e702027cede3590491a)) * List delete add secondary confirmation ([#1254](https://github.com/RSSNext/follow/issues/1254)) ([14f2bac](https://github.com/RSSNext/follow/commit/14f2bac8f3ba7e8f2dbd3958a4394c5b11ea2537)) * load archived entries automatically ([5fe9e0c](https://github.com/RSSNext/follow/commit/5fe9e0c0e24460ca0fe435db03b753e9dcd3df17)) * manual action ([#1867](https://github.com/RSSNext/follow/issues/1867)) ([0eedbba](https://github.com/RSSNext/follow/commit/0eedbbadc263b474e2d4bfd5b6c498ac39c16c34)) * **mark-all-button:** add countdown to auto-confirm message ([#1414](https://github.com/RSSNext/follow/issues/1414)) ([e1a5fc6](https://github.com/RSSNext/follow/commit/e1a5fc63f20c941140071789c9b67685da19ea5c)) * merge redirect page into login page ([2fa16b7](https://github.com/RSSNext/follow/commit/2fa16b75d376fe04472e6c91675c67e725da8633)) +* migrate to better auth ([#1951](https://github.com/RSSNext/follow/issues/1951)) ([9102203](https://github.com/RSSNext/follow/commit/910220395631bcf86f56bfc2b2168ac95852444c)) * mobile design ([#1568](https://github.com/RSSNext/follow/issues/1568)) ([edd4f9e](https://github.com/RSSNext/follow/commit/edd4f9e5a6dc041e9eae2cee5ddf4eb624527ef5)), closes [#1575](https://github.com/RSSNext/follow/issues/1575) * move hideExtraBadge ([2f14c30](https://github.com/RSSNext/follow/commit/2f14c30307a895bc866ac57989df1dc624eab4e6)) * multi select with shift ([2158b1c](https://github.com/RSSNext/follow/commit/2158b1cc255baf3ff5e4e1a5806d85b7df64bd55)), closes [#1256](https://github.com/RSSNext/follow/issues/1256) @@ -326,9 +384,12 @@ * separate packaging for macOS x64 and arm64 architectures ([#1389](https://github.com/RSSNext/follow/issues/1389)) ([3e8de30](https://github.com/RSSNext/follow/commit/3e8de308a3b3a07c58ab3fd7d26aad5aa2328c99)) * set default unreadOnly to true ([8c8c765](https://github.com/RSSNext/follow/commit/8c8c765ff518b6ccc6457959fdf3fe8a4ddeee22)) * show progress in searching ([e592e97](https://github.com/RSSNext/follow/commit/e592e97c9e0e6da8451c09b9b5f27612e6dbb971)), closes [#1457](https://github.com/RSSNext/follow/issues/1457) +* **social:** improve image gallery grid ([5dc6d9e](https://github.com/RSSNext/follow/commit/5dc6d9ee227fa714f39957ff6e744e3079a3e57d)) * support alway on top, fixed [#1740](https://github.com/RSSNext/follow/issues/1740) ([09df663](https://github.com/RSSNext/follow/commit/09df663a1c0b9a5ec5d30f2609a36b09c3e66e56)) +* support drag-and-drop when importing opml ([#2001](https://github.com/RSSNext/follow/issues/2001)) ([bad7be9](https://github.com/RSSNext/follow/commit/bad7be9a8fa0d49c92d2cd17d441303643564f57)) * support markdown for announcement content ([539ec03](https://github.com/RSSNext/follow/commit/539ec03293fc6e3a11dbec69bbf78fe1c5dd2e8c)) * support zen mode sidebar entry timeline selector ([4ab132c](https://github.com/RSSNext/follow/commit/4ab132c593a7acce0167d02f6025030775a9fac5)) +* **trending:** support language filter ([1cb5b73](https://github.com/RSSNext/follow/commit/1cb5b73eb5901f242d79f357d52bca7af5d8c8b3)) * unified feed title ([b86afe5](https://github.com/RSSNext/follow/commit/b86afe5a9789ad13c5a026adf553d2c6bc333bff)) * uniq macos entry column position ([4b63023](https://github.com/RSSNext/follow/commit/4b63023389e125353de343b679840e5fbca1a4d3)) * update og image ([c58df35](https://github.com/RSSNext/follow/commit/c58df35d1f48e7374973a393c9b7efea38d12494)) @@ -336,6 +397,7 @@ * update server hono ([5beaca3](https://github.com/RSSNext/follow/commit/5beaca3c772d7bc097fd53779c581eb6b41c9eaa)) * update text ([5aae827](https://github.com/RSSNext/follow/commit/5aae8273dcd999bc11904bc8c9d7b72e769fa200)) * update text ([89bef43](https://github.com/RSSNext/follow/commit/89bef43267199f60de376c3998d3cfff26faad23)) +* update zh-HK file ([#1955](https://github.com/RSSNext/follow/issues/1955)) ([9364761](https://github.com/RSSNext/follow/commit/936476169caba5cbacafe6f4d35f7857add32802)) * upload arm64 dmg separately ([1d77c09](https://github.com/RSSNext/follow/commit/1d77c092ce18fbabe6cfbbd21d9a96e3445795da)) * use FeedTitle ([73d2c30](https://github.com/RSSNext/follow/commit/73d2c30416ad3f2da626db003996c0fb036025ac)) * **ux:** support native space key to page down, fixed [#1121](https://github.com/RSSNext/follow/issues/1121) ([baa66fe](https://github.com/RSSNext/follow/commit/baa66feaf19416d2b9e5efe6b79f6af1b3966404)) @@ -348,6 +410,7 @@ * add code cache cleaner ([a0fd15f](https://github.com/RSSNext/follow/commit/a0fd15f4abbab340264da4281f2e4ca9f89ffffa)) * batch profile ([#1464](https://github.com/RSSNext/follow/issues/1464)) ([a3e9c0e](https://github.com/RSSNext/follow/commit/a3e9c0edc83628d9c0ceb998d95184c5fd635f6f)) +* enable router navigation transition ([24e1aea](https://github.com/RSSNext/follow/commit/24e1aead5e9bbb98b59194166fa4fd07eb167353)) * lazy show action, reduce lcp time ([fcf775c](https://github.com/RSSNext/follow/commit/fcf775c976591258f83dea6e34ca3161b539b15e)) * modify some animations to CSS animations ([9ec3fe5](https://github.com/RSSNext/follow/commit/9ec3fe562bf3527ad4279a9a57c0b0bb5934dba1)) * optmize masonry perfermance ([d1748c6](https://github.com/RSSNext/follow/commit/d1748c6ce93f7075270d8cc6e88cbd944d165d50)) @@ -359,6 +422,7 @@ ### Reverts +* Revert "build: use pnpm catalogs" ([37164a3](https://github.com/RSSNext/follow/commit/37164a3674fa0bdf5b10919e788142a3d1b1cce3)) * Revert "perf: reduce the number of items rendered on the first render" ([9e45d04](https://github.com/RSSNext/follow/commit/9e45d0441ef16fb334af555c22276f7d77a72733)), closes [#1659](https://github.com/RSSNext/follow/issues/1659) diff --git a/CONTRIBUTE.md b/CONTRIBUTE.md index 8b5af1149..692ce9d39 100644 --- a/CONTRIBUTE.md +++ b/CONTRIBUTE.md @@ -48,7 +48,7 @@ If you prefer to develop in Electron, follow these steps: pnpm run dev ``` -> **Tip:** If you encounter login issues, copy the `authjs.session-token` from your browser's cookies into the app. +> **Tip:** If you encounter login issues, copy the `better-auth.session_token` from your browser's cookies into the app. ## Contribution Guidelines diff --git a/README.md b/README.md index bd04086dd..d40dd254d 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ pnpm run dev Since it is not very convenient to develop in Electron, the first way to develop and contribute is recommended at this stage. > [!TIP] -> If you can't log in to the app, copy the `authjs.session-token` in the cookie from your browser into the app. +> If you can't log in to the app, copy the `better-auth.session_token` in the cookie from your browser into the app. ## 📝 License diff --git a/apps/main/global.d.ts b/apps/main/global.d.ts index fb3018c3d..aa75b79a4 100644 --- a/apps/main/global.d.ts +++ b/apps/main/global.d.ts @@ -1,5 +1,4 @@ import "../../types/vite" -import "../../types/authjs" declare global { const GIT_COMMIT_HASH: string diff --git a/apps/main/package.json b/apps/main/package.json index beec8b1f0..2f66a1416 100644 --- a/apps/main/package.json +++ b/apps/main/package.json @@ -31,11 +31,12 @@ "@openpanel/web": "1.0.1", "@sentry/electron": "5.7.0", "builder-util-runtime": "9.2.10", + "dompurify": "~3.2.2", "electron-context-menu": "4.0.4", "electron-log": "5.2.3", "electron-squirrel-startup": "1.0.1", "electron-updater": "^6.3.9", - "es-toolkit": "1.27.0", + "es-toolkit": "1.29.0", "fast-folder-size": "2.3.0", "font-list": "1.5.1", "i18next": "^24.0.2", @@ -51,9 +52,9 @@ }, "devDependencies": { "@types/js-yaml": "4.0.9", - "@types/node": "^22.10.0", + "@types/node": "^22.10.1", "electron": "33.2.0", "electron-devtools-installer": "3.2.0", - "hono": "4.6.11" + "hono": "4.6.12" } } diff --git a/apps/main/src/env.ts b/apps/main/src/env.ts index d76b5cf24..62638dde0 100644 --- a/apps/main/src/env.ts +++ b/apps/main/src/env.ts @@ -1,9 +1,17 @@ import os from "node:os" +import { version as appVersion } from "@pkg" + export const mode = process.env.NODE_ENV export const isDev = mode === "development" -export const channel: "development" | "beta" | "alpha" | "stable" = isDev ? "development" : "beta" +export const isNightlyBuild = appVersion.includes("nightly") + +export const channel: "development" | "beta" | "alpha" | "stable" | "nightly" = isDev + ? "development" + : isNightlyBuild + ? "nightly" + : "beta" const { platform } = process export const isMacOS = platform === "darwin" diff --git a/apps/main/src/index.ts b/apps/main/src/index.ts index 3cc590da5..af6922af3 100644 --- a/apps/main/src/index.ts +++ b/apps/main/src/index.ts @@ -14,7 +14,7 @@ import { updateProxy } from "./lib/proxy" import { handleUrlRouting } from "./lib/router" import { store } from "./lib/store" import { registerAppTray } from "./lib/tray" -import { setAuthSessionToken, updateNotificationsToken } from "./lib/user" +import { setBetterAuthSessionCookie, updateNotificationsToken } from "./lib/user" import { registerUpdater } from "./updater" import { cleanupOldRender } from "./updater/hot-updater" import { @@ -189,24 +189,16 @@ function bootstrap() { const urlObj = new URL(url) if (urlObj.hostname === "auth" || urlObj.pathname === "//auth") { - const token = urlObj.searchParams.get("token") + const ck = urlObj.searchParams.get("ck") const userId = urlObj.searchParams.get("userId") - if (token && apiURL) { - setAuthSessionToken(token) + if (ck && apiURL) { + setBetterAuthSessionCookie(ck) + const cookie = atob(ck) mainWindow.webContents.session.cookies.set({ url: apiURL, - name: "authjs.session-token", - value: token, - secure: true, - httpOnly: true, - domain: new URL(apiURL).hostname, - sameSite: "no_restriction", - }) - mainWindow.webContents.session.cookies.set({ - url: apiURL, - name: "authjs.callback-url", - value: env.VITE_WEB_URL, + name: cookie.split("=")[0], + value: cookie.split("=")[1], secure: true, httpOnly: true, domain: new URL(apiURL).hostname, diff --git a/apps/main/src/lib/api-client.ts b/apps/main/src/lib/api-client.ts index 27821e2ee..1e98924ca 100644 --- a/apps/main/src/lib/api-client.ts +++ b/apps/main/src/lib/api-client.ts @@ -5,7 +5,7 @@ import { hc } from "hono/client" import { ofetch } from "ofetch" import { logger } from "../logger" -import { getAuthSessionToken, getUser } from "./user" +import { getBetterAuthSessionCookie, getUser } from "./user" const abortController = new AbortController() export const apiFetch = ofetch.create({ @@ -14,8 +14,8 @@ export const apiFetch = ofetch.create({ signal: abortController.signal, retry: false, onRequest({ request }) { - const authSessionToken = getAuthSessionToken() - if (!authSessionToken) { + const betterAuthSessionCookie = getBetterAuthSessionCookie() + if (!betterAuthSessionCookie) { abortController.abort() return } @@ -32,12 +32,12 @@ export const apiFetch = ofetch.create({ export const apiClient = hc("", { fetch: async (input, options = {}) => apiFetch(input.toString(), options), headers() { - const authSessionToken = getAuthSessionToken() + const betterAuthSessionCookie = getBetterAuthSessionCookie() const user = getUser() return { "X-App-Version": PKG.version, "X-App-Dev": process.env.NODE_ENV === "development" ? "1" : "0", - Cookie: authSessionToken ? `authjs.session-token=${authSessionToken}` : "", + Cookie: betterAuthSessionCookie ? atob(betterAuthSessionCookie) : "", "User-Agent": `Follow/${PKG.version}${user?.id ? ` uid: ${user.id}` : ""}`, } }, diff --git a/apps/main/src/lib/download.ts b/apps/main/src/lib/download.ts index a30d6aeff..d31f9d3a0 100644 --- a/apps/main/src/lib/download.ts +++ b/apps/main/src/lib/download.ts @@ -7,7 +7,7 @@ const streamPipeline = promisify(pipeline) export async function downloadFile(url: string, dest: string) { const res = await fetch(url) - // 检查响应是否成功 + // Check whether it responds successfully. if (!res.ok) { throw new Error(`Failed to fetch ${url}: ${res.statusText}`) } diff --git a/apps/main/src/lib/readability.ts b/apps/main/src/lib/readability.ts index 1b3fa5572..e16a82b9d 100644 --- a/apps/main/src/lib/readability.ts +++ b/apps/main/src/lib/readability.ts @@ -1,5 +1,6 @@ import { Readability } from "@mozilla/readability" import { name, version } from "@pkg" +import DOMPurify from "dompurify" import { parseHTML } from "linkedom" import { fetch } from "ofetch" @@ -8,7 +9,7 @@ import { isDev } from "~/env" const userAgents = `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 ${name}/${version}` export async function readability(url: string) { - const documentString = await fetch(url, { + const dirtyDocumentString = await fetch(url, { headers: { "User-Agent": userAgents, Accept: "text/html", @@ -26,11 +27,14 @@ export async function readability(url: string) { return res.text() }) + // For avoid xss attack from readability, the raw document string should be purified. + const cleanedDocumentString = DOMPurify.sanitize(dirtyDocumentString) + // FIXME: linkedom does not handle relative addresses in strings. Refer to // @see https://github.com/WebReflection/linkedom/issues/153 // JSDOM handles it correctly, but JSDOM introduces canvas binding. - const { document } = parseHTML(documentString) + const { document } = parseHTML(cleanedDocumentString) const baseUrl = new URL(url).origin document.querySelectorAll("a").forEach((a) => { diff --git a/apps/main/src/lib/user.ts b/apps/main/src/lib/user.ts index 848535ae9..46719e0fb 100644 --- a/apps/main/src/lib/user.ts +++ b/apps/main/src/lib/user.ts @@ -1,13 +1,15 @@ import type { User } from "@auth/core/types" import type { Credentials } from "@eneris/push-receiver/dist/types" +import { logger } from "~/logger" + import { apiClient } from "./api-client" import { store } from "./store" -const AuthKey = "authSessionToken" -export const setAuthSessionToken = (token: string) => store.set(AuthKey, token) -export const getAuthSessionToken = (): string | null => store.get(AuthKey) -export const cleanAuthSessionToken = () => store.set(AuthKey, null) +const BetterAuthKey = "betterAuthSessionCookie" +export const setBetterAuthSessionCookie = (cookie: string) => store.set(BetterAuthKey, cookie) +export const getBetterAuthSessionCookie = (): string | null => store.get(BetterAuthKey) +export const cleanBetterAuthSessionCookie = () => store.set(BetterAuthKey, null) const UserKey = "user" export const setUser = (user: User) => store.set(UserKey, JSON.stringify(user)) @@ -24,11 +26,15 @@ export const updateNotificationsToken = async (newCredentials?: Credentials) => } const credentials = newCredentials || store.get("notifications-credentials") if (credentials?.fcm?.token) { - await apiClient.messaging.$post({ - json: { - token: credentials.fcm.token, - channel: "desktop", - }, - }) + try { + await apiClient.messaging.$post({ + json: { + token: credentials.fcm.token, + channel: "desktop", + }, + }) + } catch (error) { + logger.error("updateNotificationsToken error: ", error) + } } } diff --git a/apps/main/src/tipc/app.ts b/apps/main/src/tipc/app.ts index 1dd75869b..991f5cf58 100644 --- a/apps/main/src/tipc/app.ts +++ b/apps/main/src/tipc/app.ts @@ -6,7 +6,7 @@ import { fileURLToPath } from "node:url" import { getRendererHandlers } from "@egoist/tipc/main" import { callWindowExpose } from "@follow/shared/bridge" -import { app, BrowserWindow, clipboard, dialog, screen, shell } from "electron" +import { app, BrowserWindow, clipboard, dialog, shell } from "electron" import { registerMenuAndContextMenu } from "~/init" import { clearAllData, getCacheSize } from "~/lib/cleaner" @@ -15,10 +15,10 @@ import { registerAppTray } from "~/lib/tray" import { logger, revealLogFile } from "~/logger" import { cleanupOldRender, loadDynamicRenderEntry } from "~/updater/hot-updater" -import { isDev, isWindows11 } from "../env" +import { isDev } from "../env" import { downloadFile } from "../lib/download" import { i18n } from "../lib/i18n" -import { cleanAuthSessionToken, cleanUser } from "../lib/user" +import { cleanBetterAuthSessionCookie, cleanUser } from "../lib/user" import type { RendererHandlers } from "../renderer-handlers" import { quitAndInstall } from "../updater" import { getMainWindow } from "../window" @@ -144,31 +144,13 @@ export const appRoute = { } } }), - getWindowIsMaximized: t.procedure.input().action(async ({ context }) => { - const window: BrowserWindow | null = (context.sender as Sender).getOwnerBrowserWindow() - if (isWindows11 && window) { - const size = screen.getDisplayMatching(window.getBounds()).workAreaSize - - const windowSize = window.getSize() - const windowPosition = window.getPosition() - const isMaximized = - windowSize[0] === size.width && - windowSize[1] === size.height && - windowPosition[0] === 0 && - windowPosition[1] === 0 - - return !!isMaximized - } - - return window?.isMaximized() - }), quitAndInstall: t.procedure.action(async () => { quitAndInstall() }), - cleanAuthSessionToken: t.procedure.action(async () => { - cleanAuthSessionToken() + cleanBetterAuthSessionCookie: t.procedure.action(async () => { + cleanBetterAuthSessionCookie() cleanUser() }), /// clipboard diff --git a/apps/main/src/tipc/reader.ts b/apps/main/src/tipc/reader.ts index 47b0bbb50..06b04b476 100644 --- a/apps/main/src/tipc/reader.ts +++ b/apps/main/src/tipc/reader.ts @@ -51,27 +51,34 @@ export const readerRoute = { try { const voices = await tts.getVoices() return voices - } catch (error: any) { - if (!window) { + } catch (error) { + console.error("Failed to get voices", error) + if (!window) return + if (error instanceof Error) { + void callWindowExpose(window).toast.error(error.message, { duration: 1000 }) return } - void callWindowExpose(window).toast.error(error.message, { - duration: 1000, - }) + callWindowExpose(window).toast.error("Failed to get voices", { duration: 1000 }) } }), setVoice: t.procedure.input().action(async ({ input, context: { sender } }) => { const window = BrowserWindow.fromWebContents(sender) - if (!window) { - return - } + if (!window) return - await tts.setMetadata(input, OUTPUT_FORMAT.WEBM_24KHZ_16BIT_MONO_OPUS).catch((error) => { - return callWindowExpose(window).toast.error(error.message, { - duration: 1000, + await tts + .setMetadata(input, OUTPUT_FORMAT.WEBM_24KHZ_16BIT_MONO_OPUS) + .catch((error: unknown) => { + console.error("Failed to set voice", error) + if (error instanceof Error) { + return callWindowExpose(window).toast.error(error.message, { + duration: 1000, + }) + } + return callWindowExpose(window).toast.error("Failed to set voice", { + duration: 1000, + }) }) - }) }), detectCodeStringLanguage: t.procedure diff --git a/apps/main/src/updater/configs.ts b/apps/main/src/updater/configs.ts index 2d216fa31..10d6f3d1e 100644 --- a/apps/main/src/updater/configs.ts +++ b/apps/main/src/updater/configs.ts @@ -8,7 +8,6 @@ export const appUpdaterConfig = { // Disable renderer hot update will trigger app update when available enableRenderHotUpdate: !isDev && isNightlyBuild, // Disable app update will also disable renderer hot update - // enableAppUpdate: true, enableAppUpdate: !isDev, app: { diff --git a/apps/main/src/window.ts b/apps/main/src/window.ts index 573b96aba..aa6b15eb7 100644 --- a/apps/main/src/window.ts +++ b/apps/main/src/window.ts @@ -3,7 +3,7 @@ import { fileURLToPath } from "node:url" import { is } from "@electron-toolkit/utils" import { APP_PROTOCOL } from "@follow/shared" -import { callWindowExpose } from "@follow/shared/bridge" +import { callWindowExpose, WindowState } from "@follow/shared/bridge" import type { BrowserWindowConstructorOptions } from "electron" import { app, BrowserWindow, screen, shell } from "electron" import type { Event } from "electron/main" @@ -197,6 +197,27 @@ export function createWindow( }) } + // async render and main state + window.on("maximize", async () => { + const caller = callWindowExpose(window) + await caller.setWindowState(WindowState.MAXIMIZED) + }) + + window.on("unmaximize", async () => { + const caller = callWindowExpose(window) + await caller.setWindowState(WindowState.NORMAL) + }) + + window.on("minimize", async () => { + const caller = callWindowExpose(window) + await caller.setWindowState(WindowState.MINIMIZED) + }) + + window.on("restore", async () => { + const caller = callWindowExpose(window) + await caller.setWindowState(WindowState.NORMAL) + }) + return window } export const windowStateStoreKey = "windowState" diff --git a/apps/renderer/__debug_proxy.html b/apps/renderer/__debug_proxy.html deleted file mode 100644 index 147c9c40d..000000000 --- a/apps/renderer/__debug_proxy.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - Debug Proxy - - - - diff --git a/apps/renderer/__debug_proxy.ts b/apps/renderer/__debug_proxy.ts deleted file mode 100644 index e1d5ef3b1..000000000 --- a/apps/renderer/__debug_proxy.ts +++ /dev/null @@ -1,95 +0,0 @@ -globalThis["__DEBUG_PROXY__"] = true - -const searchParams = new URLSearchParams(window.location.search) -const debugHost = searchParams.get("debug-host") - -const resetSessionStorage = () => { - sessionStorage.removeItem("debug-host") -} - -const resetParams = searchParams.get("reset") -if (resetParams) { - resetSessionStorage() -} - -const debugHostInSessionStorage = sessionStorage.getItem("debug-host") - -const host = debugHost || debugHostInSessionStorage || "https://localhost:2233" -if (debugHost) { - sessionStorage.setItem("debug-host", debugHost) -} - -const createRefreshRuntimeScript = ` -import RefreshRuntime from "${host}/@react-refresh"; -RefreshRuntime.injectIntoGlobalHook(window); -window.$RefreshReg$ = () => {}; -window.$RefreshSig$ = () => (type) => type; -window.__vite_plugin_react_preamble_installed__ = true; -` -const $script = document.createElement("script") -$script.innerHTML = createRefreshRuntimeScript -$script.type = "module" -document.head.append($script) - -fetch(`${host}`) - .then((res) => res.text()) - .then((html) => { - const parser = new DOMParser() - const doc = parser.parseFromString(html, "text/html") - - const scripts = doc.querySelectorAll("script") - - scripts.forEach((script) => { - script.remove() - }) - - // header meta - - const $meta = doc.head.querySelectorAll("meta") - $meta.forEach((meta) => { - document.head.append(meta) - }) - - const $style = doc.head.querySelectorAll("style") - $style.forEach((style) => { - document.head.append(style) - }) - - document.body.innerHTML = doc.body.innerHTML - - scripts.forEach((script) => { - const $script = document.createElement("script") - $script.type = "module" - $script.crossOrigin = script.crossOrigin - - if (script.src) { - $script.src = new URL( - script.src.startsWith("http") ? new URL(script.src).pathname : script.src, - host, - ).toString() - } else if (script.innerHTML) { - $script.innerHTML = script.innerHTML - } else { - return - } - - document.body.append($script) - }) - }) - -const injectScript = (apiUrl: string) => { - const upstreamOrigin = window.location.origin - const template = `function injectEnv(env2) { -for (const key in env2) { -if (env2[key] === void 0) continue; -globalThis["__followEnv"] ??= {}; -globalThis["__followEnv"][key] = env2[key]; -} -} -injectEnv({"VITE_API_URL":"${apiUrl}","VITE_EXTERNAL_API_URL":"${apiUrl}","VITE_WEB_URL":"${upstreamOrigin}"})` - const $script = document.createElement("script") - $script.innerHTML = template - document.head.prepend($script) -} - -injectScript(import.meta.env.VITE_API_URL) diff --git a/apps/renderer/debug_proxy.html b/apps/renderer/debug_proxy.html new file mode 100644 index 000000000..efc372c2e --- /dev/null +++ b/apps/renderer/debug_proxy.html @@ -0,0 +1,105 @@ + + + + Debug Proxy + + + + + diff --git a/apps/renderer/global.d.ts b/apps/renderer/global.d.ts index 97bf38522..7051cdaef 100644 --- a/apps/renderer/global.d.ts +++ b/apps/renderer/global.d.ts @@ -1,5 +1,3 @@ -import "../../types/authjs" - import type { ElectronAPI } from "@electron-toolkit/preload" declare global { diff --git a/apps/renderer/package.json b/apps/renderer/package.json index c5668a6ac..6d770e0d9 100644 --- a/apps/renderer/package.json +++ b/apps/renderer/package.json @@ -18,9 +18,8 @@ "@follow/shared": "workspace:*", "@fontsource/sn-pro": "5.1.0", "@headlessui/react": "2.2.0", - "@hono/auth-js": "1.0.15", "@hookform/resolvers": "3.9.1", - "@lottiefiles/dotlottie-react": "0.10.0", + "@lottiefiles/dotlottie-react": "0.10.1", "@microflash/remark-callout-directives": "4.3.2", "@openpanel/web": "1.0.1", "@radix-ui/react-avatar": "1.1.1", @@ -32,12 +31,13 @@ "@radix-ui/react-popover": "1.1.2", "@radix-ui/react-slider": "^1.2.1", "@radix-ui/react-slot": "1.1.0", - "@sentry/react": "8.40.0", - "@shikijs/transformers": "1.23.1", - "@tanstack/query-sync-storage-persister": "5.61.4", - "@tanstack/react-query": "5.61.4", - "@tanstack/react-query-devtools": "5.61.4", - "@tanstack/react-query-persist-client": "5.61.4", + "@sentry/react": "8.41.0", + "@shikijs/transformers": "1.24.0", + "@tanstack/query-sync-storage-persister": "5.62.0", + "@tanstack/react-query": "5.62.0", + "@tanstack/react-query-devtools": "5.62.0", + "@tanstack/react-query-persist-client": "5.62.0", + "@tanstack/react-virtual": "3.10.9", "@use-gesture/react": "10.3.1", "@welldone-software/why-did-you-render": "8.0.3", "@yornaath/batshit": "0.10.1", @@ -52,10 +52,10 @@ "electron-log": "5.2.3", "embla-carousel-react": "8.5.1", "embla-carousel-wheel-gestures": "8.0.1", - "es-toolkit": "catalog:", + "es-toolkit": "1.29.0", "firebase": "11.0.2", "foxact": "0.2.42", - "framer-motion": "11.11.17", + "framer-motion": "11.12.0", "franc-min": "6.2.0", "fuse.js": "7.0.0", "hast-util-to-jsx-runtime": "2.3.2", @@ -81,14 +81,13 @@ "react-fast-marquee": "1.6.5", "react-hook-form": "7.53.2", "react-hotkeys-hook": "4.6.1", - "react-i18next": "^15.1.2", + "react-i18next": "^15.1.3", "react-intersection-observer": "9.13.1", "react-ios-pwa-prompt": "^2.0.6", "react-resizable-layout": "npm:@innei/react-resizable-layout@0.7.3-fork.1", "react-router": "7.0.1", "react-selecto": "^1.26.3", "react-shadow": "20.5.0", - "react-virtuoso": "4.12.2", "react-zoom-pan-pinch": "^3.6.1", "rehype-infer-description-meta": "2.0.0", "rehype-parse": "9.0.1", @@ -99,9 +98,9 @@ "remark-gh-alerts": "0.0.3", "remark-parse": "11.0.0", "remark-rehype": "11.1.1", - "shiki": "1.23.1", + "shiki": "1.24.0", "sonner": "1.7.0", - "tldts": "6.1.64", + "tldts": "6.1.65", "unified": "11.0.5", "unist-util-visit-parents": "^6.0.1", "use-context-selector": "2.0.0", @@ -126,14 +125,14 @@ "@follow/utils": "workspace:*", "@hono/node-server": "1.13.7", "@types/katex": "0.16.7", - "@types/node": "^22.10.0", + "@types/node": "^22.10.1", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "@vite-pwa/assets-generator": "^0.2.6", "fake-indexeddb": "6.0.0", - "happy-dom": "15.11.6", + "happy-dom": "15.11.7", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-scan": "0.0.33" + "react-scan": "0.0.35" } } diff --git a/apps/renderer/src/api/trending.ts b/apps/renderer/src/api/trending.ts index 92a81212b..061491e0a 100644 --- a/apps/renderer/src/api/trending.ts +++ b/apps/renderer/src/api/trending.ts @@ -4,7 +4,14 @@ import camelcaseKeys from "camelcase-keys" import { apiFetch } from "~/lib/api-fetch" const v1ApiPrefix = "/v1" -export const getTrendingAggregates = async () => { - const data = await apiFetch(`${v1ApiPrefix}/trendings`) +export const getTrendingAggregates = async (params: { language: string }) => { + const data = await apiFetch( + `${v1ApiPrefix}/trendings?language=${params.language}`, + { + params: { + language: params.language, + }, + }, + ) return camelcaseKeys(data as any, { deep: true }) as Models.TrendingAggregates } diff --git a/apps/renderer/src/atoms/app.ts b/apps/renderer/src/atoms/app.ts index 21ac12efb..4489a6c2e 100644 --- a/apps/renderer/src/atoms/app.ts +++ b/apps/renderer/src/atoms/app.ts @@ -1,3 +1,4 @@ +import { WindowState } from "@follow/shared/bridge" import { atom } from "jotai" import { createAtomHooks } from "~/lib/jotai" @@ -5,3 +6,8 @@ import { createAtomHooks } from "~/lib/jotai" export const [, , useAppIsReady, , appIsReady, setAppIsReady] = createAtomHooks(atom(false)) export const [, , useAppSearchOpen, , , setAppSearchOpen] = createAtomHooks(atom(false)) + +// For electron +export const [, , useWindowState, , windowState, setWindowState] = createAtomHooks( + atom(WindowState.NORMAL), +) diff --git a/apps/renderer/src/atoms/player.ts b/apps/renderer/src/atoms/player.ts index d75c57f1a..db8b56c20 100644 --- a/apps/renderer/src/atoms/player.ts +++ b/apps/renderer/src/atoms/player.ts @@ -80,8 +80,12 @@ export const AudioPlayer = { show: true, listId: routeParams.listId, }) + const currentUrl = URL.canParse(this.audio.src) + ? new URL(this.audio.src).toString() + : this.audio.src + const newUrl = URL.canParse(v.src) ? new URL(v.src).toString() : v.src - if (this.audio.src !== v.src) { + if (currentUrl !== newUrl) { this.audio.src = v.src this.audio.currentTime = v.currentTime ?? curV.currentTime ?? 0 } diff --git a/apps/renderer/src/atoms/settings/general.ts b/apps/renderer/src/atoms/settings/general.ts index 66323ee14..1e7552015 100644 --- a/apps/renderer/src/atoms/settings/general.ts +++ b/apps/renderer/src/atoms/settings/general.ts @@ -15,6 +15,7 @@ const createDefaultSettings = (): GeneralSettings => ({ dataPersist: true, sendAnonymousData: true, reduceRefetch: true, + showQuickTimeline: true, autoGroup: true, diff --git a/apps/renderer/src/atoms/settings/integration.ts b/apps/renderer/src/atoms/settings/integration.ts index c1d605fe9..f8703e3cb 100644 --- a/apps/renderer/src/atoms/settings/integration.ts +++ b/apps/renderer/src/atoms/settings/integration.ts @@ -14,11 +14,6 @@ export const createDefaultSettings = (): IntegrationSettings => ({ instapaperUsername: "", instapaperPassword: "", - // omnivore - enableOmnivore: false, - omnivoreEndpoint: "", - omnivoreToken: "", - // obsidian enableObsidian: false, obsidianVaultPath: "", @@ -28,6 +23,11 @@ export const createDefaultSettings = (): IntegrationSettings => ({ outlineEndpoint: "", outlineToken: "", outlineCollection: "", + + // readeck + enableReadeck: false, + readeckEndpoint: "", + readeckToken: "", }) export const { diff --git a/apps/renderer/src/atoms/settings/ui.ts b/apps/renderer/src/atoms/settings/ui.ts index ed8b83b23..fd8407123 100644 --- a/apps/renderer/src/atoms/settings/ui.ts +++ b/apps/renderer/src/atoms/settings/ui.ts @@ -60,7 +60,7 @@ export const uiServerSyncWhiteListKeys: (keyof UISettings)[] = [ "uiFontFamily", "readerFontFamily", "opaqueSidebar", - "customCSS", + // "customCSS", ] export const useIsZenMode = () => useAtomValue(zenModeAtom) diff --git a/apps/renderer/src/atoms/user.ts b/apps/renderer/src/atoms/user.ts index 41af27f60..ab259d966 100644 --- a/apps/renderer/src/atoms/user.ts +++ b/apps/renderer/src/atoms/user.ts @@ -1,10 +1,12 @@ -import type { User } from "@auth/core/types" import type { UserRole } from "@follow/constants" +import type { AuthSession } from "@follow/shared/hono" import { atom } from "jotai" import { createAtomHooks } from "~/lib/jotai" -export const [, , useWhoami, , whoami, setWhoami] = createAtomHooks(atom>(null)) +export const [, , useWhoami, , whoami, setWhoami] = createAtomHooks( + atom["user"]>>(null), +) export const [, , useLoginModalShow, useSetLoginModalShow, getLoginModalShow, setLoginModalShow] = createAtomHooks(atom(false)) diff --git a/apps/renderer/src/components/common/ReloadPrompt.tsx b/apps/renderer/src/components/common/ReloadPrompt.tsx index dc6ff7030..2643f67a1 100644 --- a/apps/renderer/src/components/common/ReloadPrompt.tsx +++ b/apps/renderer/src/components/common/ReloadPrompt.tsx @@ -42,9 +42,6 @@ export function ReloadPrompt() { // }, [offlineReady, close]) useEffect(() => { - const isPwa = window.matchMedia("(display-mode: standalone)").matches - if (!isPwa) return - if (needRefresh) { toast.info("New version available", { action: { diff --git a/apps/renderer/src/components/ui/code-highlighter/shiki/shiki.module.css b/apps/renderer/src/components/ui/code-highlighter/shiki/shiki.module.css index 6fd7de9df..6918e59d4 100644 --- a/apps/renderer/src/components/ui/code-highlighter/shiki/shiki.module.css +++ b/apps/renderer/src/components/ui/code-highlighter/shiki/shiki.module.css @@ -52,7 +52,7 @@ @apply mr-5; } - /* 撑开没有内容的行 */ + /* Expand the row without content */ &::after { content: " "; } diff --git a/apps/renderer/src/components/ui/drop-zone.tsx b/apps/renderer/src/components/ui/drop-zone.tsx new file mode 100644 index 000000000..e0d8a4602 --- /dev/null +++ b/apps/renderer/src/components/ui/drop-zone.tsx @@ -0,0 +1,71 @@ +import type { DragEvent, ReactNode } from "react" +import { useCallback, useRef, useState } from "react" + +// Ported from https://github.com/react-dropzone/react-dropzone/issues/753#issuecomment-774782919 +const useDragAndDrop = ({ callback }: { callback: (file: FileList) => void | Promise }) => { + const [isDragging, setIsDragging] = useState(false) + const dragCounter = useRef(0) + + const onDrop = useCallback( + async (event: DragEvent) => { + event.preventDefault() + setIsDragging(false) + if (event.dataTransfer && event.dataTransfer.files && event.dataTransfer.files.length > 0) { + dragCounter.current = 0 + await callback(event.dataTransfer.files) + event.dataTransfer.clearData() + } + }, + [callback], + ) + + const onDragEnter = useCallback((event: DragEvent) => { + event.preventDefault() + dragCounter.current++ + setIsDragging(true) + }, []) + + const onDragOver = useCallback((event: DragEvent) => { + event.preventDefault() + }, []) + + const onDragLeave = useCallback((event: DragEvent) => { + event.preventDefault() + dragCounter.current-- + if (dragCounter.current > 0) return + setIsDragging(false) + }, []) + + return { + isDragging, + + dragHandlers: { + onDrop, + onDragOver, + onDragEnter, + onDragLeave, + }, + } +} + +export const DropZone = ({ + onDrop, + children, +}: { + onDrop: (file: FileList) => void | Promise + children?: ReactNode +}) => { + const { isDragging, dragHandlers } = useDragAndDrop({ callback: onDrop }) + + return ( + + ) +} diff --git a/apps/renderer/src/components/ui/media.tsx b/apps/renderer/src/components/ui/media.tsx index 9116c4aa1..2eb685a86 100644 --- a/apps/renderer/src/components/ui/media.tsx +++ b/apps/renderer/src/components/ui/media.tsx @@ -22,6 +22,8 @@ type BaseProps = { inline?: boolean fitContent?: boolean } + +const isImageLoadedSet = new Set() export type MediaProps = BaseProps & ( | (ImgHTMLAttributes & { @@ -103,7 +105,12 @@ const MediaImpl: FC = ({ [currentState, previewImageUrl, proxy?.width, proxy?.height], ) - const [mediaLoadState, setMediaLoadState] = useState<"loading" | "loaded">("loading") + const [mediaLoadState, setMediaLoadState] = useState<"loading" | "loaded">(() => { + if (imgSrc) { + return isImageLoadedSet.has(imgSrc) ? "loaded" : "loading" + } + return "loading" + }) const errorHandle: React.ReactEventHandler = useEventCallback(() => { switch (currentState) { @@ -158,6 +165,10 @@ const MediaImpl: FC = ({ const handleOnLoad: React.ReactEventHandler = useEventCallback((e) => { setMediaLoadState("loaded") rest.onLoad?.(e as any) + + if (imgSrc) { + isImageLoadedSet.add(imgSrc) + } if ("cacheDimensions" in props && props.cacheDimensions && src) { saveImageDimensionsToDb(src, { src, @@ -246,7 +257,11 @@ const MediaImpl: FC = ({ ) } else { return ( -
+
(null) diff --git a/apps/renderer/src/components/ui/modal/stacked/hooks.tsx b/apps/renderer/src/components/ui/modal/stacked/hooks.tsx index 12d898d8c..b8b9bd1bf 100644 --- a/apps/renderer/src/components/ui/modal/stacked/hooks.tsx +++ b/apps/renderer/src/components/ui/modal/stacked/hooks.tsx @@ -23,50 +23,52 @@ export const useModalStack = (options?: ModalStackOptions) => { const currentCount = useRef(0) const { wrapper } = options || {} - const presentSync = (props: ModalProps & { id?: string }) => { - const fallbackModelId = `${id}-${++currentCount.current}` - const modalId = props.id ?? fallbackModelId - - const currentStack = jotaiStore.get(modalStackAtom) - - const existingModal = currentStack.find((item) => item.id === modalId) - if (existingModal) { - // Move to top - jotaiStore.set(modalStackAtom, (p) => { - const index = p.indexOf(existingModal) - return [...p.slice(0, index), ...p.slice(index + 1), existingModal] - }) - } else { - // NOTE: The props of the Command Modal are immutable, so we'll just take the store value and inject it. - // There is no need to inject `overlay` props, this is rendered responsively based on ui changes. - const uiSettings = getUISettings() - const modalConfig: Partial = { - draggable: uiSettings.modalDraggable, - modal: true, - } - jotaiStore.set(modalStackAtom, (p) => { - const modalProps: ModalProps = { - ...modalConfig, - ...props, - - wrapper, - } - modalIdToPropsMap[modalId] = modalProps - return p.concat({ - id: modalId, - ...modalProps, - }) - }) - } - - return () => { - jotaiStore.set(modalStackAtom, (p) => p.filter((item) => item.id !== modalId)) - } - } return { - present: useEventCallback((props: ModalProps & { id?: string }) => - nextFrame(() => presentSync(props)), - ), + present: useEventCallback((props: ModalProps & { id?: string }) => { + const presentSync = (props: ModalProps & { id?: string }) => { + const fallbackModelId = `${id}-${++currentCount.current}` + const modalId = props.id ?? fallbackModelId + + const currentStack = jotaiStore.get(modalStackAtom) + + const existingModal = currentStack.find((item) => item.id === modalId) + + if (existingModal) { + // Move to top + jotaiStore.set(modalStackAtom, (p) => { + const index = p.indexOf(existingModal) + return [...p.slice(0, index), ...p.slice(index + 1), existingModal] + }) + } else { + // NOTE: The props of the Command Modal are immutable, so we'll just take the store value and inject it. + // There is no need to inject `overlay` props, this is rendered responsively based on ui changes. + const uiSettings = getUISettings() + const modalConfig: Partial = { + draggable: uiSettings.modalDraggable, + modal: true, + } + jotaiStore.set(modalStackAtom, (p) => { + const modalProps: ModalProps = { + ...modalConfig, + ...props, + + wrapper, + } + modalIdToPropsMap[modalId] = modalProps + return p.concat({ + id: modalId, + ...modalProps, + }) + }) + } + + return () => { + jotaiStore.set(modalStackAtom, (p) => p.filter((item) => item.id !== modalId)) + } + } + + return nextFrame(() => presentSync(props)) + }), ...actions, } diff --git a/apps/renderer/src/components/ui/modal/stacked/internal/use-animate.ts b/apps/renderer/src/components/ui/modal/stacked/internal/use-animate.ts index 212696892..68f77f64c 100644 --- a/apps/renderer/src/components/ui/modal/stacked/internal/use-animate.ts +++ b/apps/renderer/src/components/ui/modal/stacked/internal/use-animate.ts @@ -1,6 +1,7 @@ import { nextFrame } from "@follow/utils/dom" import { useAnimationControls } from "framer-motion" -import { useCallback, useEffect } from "react" +import { useCallback, useEffect, useLayoutEffect } from "react" +import { useEventCallback } from "usehooks-ts" import { modalMontionConfig } from "../constants" @@ -30,7 +31,7 @@ export const useModalAnimate = (isTop: boolean) => { }) }, [animateController]) - useEffect(() => { + useLayoutEffect(() => { if (isTop) return animateController.start({ scale: 0.96, @@ -52,5 +53,8 @@ export const useModalAnimate = (isTop: boolean) => { return { noticeModal, animateController, + dismissing: useEventCallback(async () => { + await animateController.start(modalMontionConfig.exit) + }), } } diff --git a/apps/renderer/src/components/ui/modal/stacked/modal-stack.mobile.tsx b/apps/renderer/src/components/ui/modal/stacked/modal-stack.mobile.tsx index 92edc05cf..4045af289 100644 --- a/apps/renderer/src/components/ui/modal/stacked/modal-stack.mobile.tsx +++ b/apps/renderer/src/components/ui/modal/stacked/modal-stack.mobile.tsx @@ -59,8 +59,9 @@ const ModalToSheet = (props: ModalProps & { index: number; id: string }) => { const ModalProps: ModalActionsInternal = useMemo( () => ({ dismiss: () => { - sheetRef.current?.dismiss() - close() + sheetRef.current?.dismiss().then(() => { + close() + }) }, getIndex: () => props.index, setClickOutSideToDismiss: (v) => { @@ -74,7 +75,7 @@ const ModalToSheet = (props: ModalProps & { index: number; id: string }) => { ) }, }), - [id, props.index, setStack], + [close, id, props.index, setStack], ) const modalContentRef = useRef(null) const ModalContextProps = useMemo( diff --git a/apps/renderer/src/components/ui/modal/stacked/modal.tsx b/apps/renderer/src/components/ui/modal/stacked/modal.tsx index 66dc1f0f1..d0dd38987 100644 --- a/apps/renderer/src/components/ui/modal/stacked/modal.tsx +++ b/apps/renderer/src/components/ui/modal/stacked/modal.tsx @@ -86,13 +86,22 @@ export const ModalInternal = memo( const setStack = useSetAtom(modalStackAtom) const [currentIsClosing, setCurrentIsClosing] = useState(false) + const { noticeModal, animateController, dismissing } = useModalAnimate(!!isTop) const close = useEventCallback((forceClose = false) => { if (!canClose && !forceClose) return setCurrentIsClosing(true) - nextFrame(() => { - setStack((p) => p.filter((modal) => modal.id !== item.id)) - }) + + if (!CustomModalComponent) { + dismissing().then(() => { + setStack((p) => p.filter((modal) => modal.id !== item.id)) + setCurrentIsClosing(false) + }) + } else { + nextFrame(() => { + setStack((p) => p.filter((modal) => modal.id !== item.id)) + }) + } onPropsClose?.(false) }) @@ -133,8 +142,6 @@ export const ModalInternal = memo( draggable, }) - const { noticeModal, animateController } = useModalAnimate(!!isTop) - const getIndex = useEventCallback(() => index) const [modalContentRef, setModalContentRef] = useState(null) const ModalProps: ModalActionsInternal = useMemo( @@ -298,6 +305,7 @@ export const ModalInternal = memo( >
, ) => ( - + {!hidden && ( { - const { t } = useTranslation() - - const feed = useFeedById(entry?.feedId, (feed) => { - return { - type: feed.type, - ownerUserId: feed.ownerUserId, - id: feed.id, - } - }) - - const inbox = useInboxById(entry?.inboxId) - - const populatedEntry = useMemo(() => { - if (!entry) return null - if (!feed?.id && !inbox?.id) return null - - return { - ...entry, - feeds: feed ? getFeedById(feed.id) : undefined, - inboxes: inbox, - } as CombinedEntryModel - }, [entry, feed, inbox]) - - const { - enableEagle, - enableReadwise, - enableInstapaper, - enableOmnivore, - enableObsidian, - enableOutline, - readwiseToken, - instapaperUsername, - instapaperPassword, - omnivoreToken, - omnivoreEndpoint, - obsidianVaultPath, - outlineToken, - outlineEndpoint, - outlineCollection, - } = useIntegrationSettingValue() - const isObsidianEnabled = enableObsidian && !!obsidianVaultPath - - const saveToObsidian = useMutation({ - mutationKey: ["save-to-obsidian"], - mutationFn: async (data: { - url: string - title: string - content: string - author: string - publishedAt: string - vaultPath: string - }) => { - return await tipcClient?.saveToObsidian(data) - }, - onSuccess: (data) => { - if (data?.success) { - toast.success(t("entry_actions.saved_to_obsidian"), { - duration: 3000, - }) - } else { - toast.error(`${t("entry_actions.failed_to_save_to_obsidian")}: ${data?.error}`, { - duration: 3000, - }) - } - }, - }) - - const checkEagle = useQuery({ - queryKey: ["check-eagle"], - enabled: ELECTRON && enableEagle && !!entry?.entries.url && view !== undefined, - queryFn: async () => { - try { - await ofetch("http://localhost:41595") - return true - } catch (error: unknown) { - return (error as FetchError).data?.code === 401 - } - }, - refetchOnMount: false, - refetchOnWindowFocus: false, - }) - - const items = useMemo(() => { - if (!populatedEntry || view === undefined) return [] - - const getEntryContentAsMarkdown = async () => { - const isReadabilityReady = - getReadabilityStatus()[populatedEntry.entries.id] === ReadabilityStatus.SUCCESS - const content = - (isReadabilityReady - ? getReadabilityContent()[populatedEntry.entries.id].content - : populatedEntry.entries.content) || "" - - const [toMarkdown, toMdast, gfmTableToMarkdown] = await Promise.all([ - import("mdast-util-to-markdown").then((m) => m.toMarkdown), - import("hast-util-to-mdast").then((m) => m.toMdast), - import("mdast-util-gfm-table").then((m) => m.gfmTableToMarkdown), - ]) - - return toMarkdown(toMdast(parseHtml(content).hastTree), { - extensions: [gfmTableToMarkdown()], - }) - } - - const items: { - key: string - className?: string - shortcut?: string - name: string - icon?: ReactNode - hide?: boolean - active?: boolean - disabled?: boolean - onClick: (e: React.MouseEvent) => void - }[] = [ - { - name: t("entry_actions.save_media_to_eagle"), - icon: , - key: "saveToEagle", - hide: - !enableEagle || - (checkEagle.isLoading ? true : !checkEagle.data) || - !populatedEntry.entries.media?.length, - onClick: async () => { - if (!populatedEntry.entries.url || !populatedEntry.entries.media?.length) { - return - } - window.analytics?.capture("integration", { - type: "eagle", - event: "save", - }) - const response = await tipcClient?.saveToEagle({ - url: populatedEntry.entries.url, - mediaUrls: populatedEntry.entries.media.map((m) => m.url), - }) - - if (response?.status === "success") { - toast.success(t("entry_actions.saved_to_eagle"), { - duration: 3000, - }) - } else { - toast.error(t("entry_actions.failed_to_save_to_eagle"), { - duration: 3000, - }) - } - }, - }, - { - name: t("entry_actions.save_to_readwise"), - icon: , - key: "saveToReadwise", - hide: !enableReadwise || !readwiseToken || !populatedEntry.entries.url, - onClick: async () => { - try { - window.analytics?.capture("integration", { - type: "readwise", - event: "save", - }) - const data = await ofetch("https://readwise.io/api/v3/save/", { - method: "POST", - headers: { - Authorization: `Token ${readwiseToken}`, - }, - body: { - url: populatedEntry.entries.url, - html: populatedEntry.entries.content || undefined, - title: populatedEntry.entries.title || undefined, - author: populatedEntry.entries.author || undefined, - summary: populatedEntry.entries.description || undefined, - published_date: populatedEntry.entries.publishedAt || undefined, - image_url: populatedEntry.entries.media?.[0]?.url || undefined, - saved_using: "Follow", - }, - }) - - toast.success( - <> - {t("entry_actions.saved_to_readwise")},{" "} - - view - - , - { - duration: 3000, - }, - ) - } catch { - toast.error(t("entry_actions.failed_to_save_to_readwise"), { - duration: 3000, - }) - } - }, - }, - { - name: t("entry_actions.save_to_instapaper"), - icon: , - key: "saveToInstapaper", - hide: - !enableInstapaper || - !instapaperPassword || - !instapaperUsername || - !populatedEntry.entries.url, - onClick: async () => { - try { - window.analytics?.capture("integration", { - type: "instapaper", - event: "save", - }) - const data = await ofetch("https://www.instapaper.com/api/add", { - query: { - url: populatedEntry.entries.url, - title: populatedEntry.entries.title, - }, - method: "POST", - headers: { - Authorization: `Basic ${btoa(`${instapaperUsername}:${instapaperPassword}`)}`, - }, - parseResponse: JSON.parse, - }) - - toast.success( - <> - {t("entry_actions.saved_to_instapaper")},{" "} - - view - - , - { - duration: 3000, - }, - ) - } catch { - toast.error(t("entry_actions.failed_to_save_to_instapaper"), { - duration: 3000, - }) - } - }, - }, - { - name: t("entry_actions.save_to_omnivore"), - icon: , - key: "saveToomnivore", - hide: !enableOmnivore || !omnivoreToken || !omnivoreEndpoint || !populatedEntry.entries.url, - onClick: async () => { - const saveUrlQuery = ` - mutation SaveUrl($input: SaveUrlInput!) { - saveUrl(input: $input) { - ... on SaveSuccess { - url - clientRequestId - } - ... on SaveError { - errorCodes - message - } - } - } -` - - window.analytics?.capture("integration", { - type: "omnivore", - event: "save", - }) - try { - const data = await ofetch(omnivoreEndpoint, { - method: "POST", - headers: { - "Content-Type": "application/json", - Authorization: omnivoreToken, - }, - body: { - query: saveUrlQuery, - variables: { - input: { - url: populatedEntry.entries.url, - source: "Follow", - clientRequestId: globalThis.crypto.randomUUID(), - publishedAt: new Date(populatedEntry.entries.publishedAt), - }, - }, - }, - }) - toast.success( - <> - {t("entry_actions.saved_to_omnivore")},{" "} - - view - - , - { - duration: 3000, - }, - ) - } catch { - toast.error(t("entry_actions.failed_to_save_to_omnivore"), { - duration: 3000, - }) - } - }, - }, - { - name: t("entry_actions.save_to_obsidian"), - icon: , - key: "saveToObsidian", - hide: !isObsidianEnabled || !populatedEntry?.entries?.url || !IN_ELECTRON, - onClick: async () => { - if (!isObsidianEnabled || !populatedEntry?.entries?.url || !IN_ELECTRON) return - - const markdownContent = await getEntryContentAsMarkdown() - window.analytics?.capture("integration", { - type: "obsidian", - event: "save", - }) - saveToObsidian.mutate({ - url: populatedEntry.entries.url, - title: populatedEntry.entries.title || "", - content: markdownContent, - author: populatedEntry.entries.author || "", - publishedAt: populatedEntry.entries.publishedAt || "", - vaultPath: obsidianVaultPath, - }) - }, - }, - { - name: t("entry_actions.save_to_outline"), - icon: , - key: "saveToOutline", - hide: - !IN_ELECTRON || - !enableOutline || - !outlineToken || - !outlineEndpoint || - !outlineCollection || - !populatedEntry.entries.title, - onClick: async () => { - try { - const request = async (method: string, params: Record) => { - return await ofetch(`${outlineEndpoint.replace(/\/$/, "")}/${method}`, { - method: "POST", - headers: { - "Content-Type": "application/json", - Authorization: `Bearer ${outlineToken}`, - }, - body: params, - }) - } - let collectionId = outlineCollection - if (!/^[a-f\d]{8}(?:-[a-f\d]{4}){3}-[a-f\d]{12}$/i.test(collectionId)) { - const collection = await request("collections.info", { - id: collectionId, - }) - collectionId = collection.data.id - } - const markdownContent = await getEntryContentAsMarkdown() - await request("documents.create", { - title: populatedEntry.entries.title, - text: markdownContent, - collectionId, - publish: true, - }) - toast.success(t("entry_actions.saved_to_outline"), { - duration: 3000, - }) - } catch { - toast.error(t("entry_actions.failed_to_save_to_outline"), { - duration: 3000, - }) - } - }, - }, - ] - - return items - }, [ - populatedEntry, - view, - t, - enableEagle, - checkEagle.isLoading, - checkEagle.data, - enableReadwise, - readwiseToken, - enableInstapaper, - instapaperPassword, - instapaperUsername, - enableOmnivore, - omnivoreToken, - omnivoreEndpoint, - isObsidianEnabled, - enableOutline, - outlineToken, - outlineEndpoint, - outlineCollection, - saveToObsidian, - obsidianVaultPath, - ]) - - return { - items, - } -} diff --git a/apps/renderer/src/hooks/biz/useSignOut.ts b/apps/renderer/src/hooks/biz/useSignOut.ts index dee208814..f24afe60b 100644 --- a/apps/renderer/src/hooks/biz/useSignOut.ts +++ b/apps/renderer/src/hooks/biz/useSignOut.ts @@ -1,10 +1,9 @@ -import { env } from "@follow/shared/env" +import { signOut } from "@follow/shared/auth" import { clearStorage } from "@follow/utils/ns" -import { signOut } from "@hono/auth-js/react" import { useCallback } from "react" import { setWhoami } from "~/atoms/user" -import { isWebBuild, QUERY_PERSIST_KEY } from "~/constants" +import { QUERY_PERSIST_KEY } from "~/constants" import { tipcClient } from "~/lib/client" import { clearLocalPersistStoreData } from "~/store/utils/clear" @@ -20,9 +19,12 @@ export const useSignOut = () => clearStorage() window.analytics?.reset() // clear local store data - await Promise.allSettled([clearLocalPersistStoreData(), tipcClient?.cleanAuthSessionToken()]) + await Promise.allSettled([ + clearLocalPersistStoreData(), + tipcClient?.cleanBetterAuthSessionCookie(), + ]) // Sign out - await signOut({ - callbackUrl: isWebBuild ? env.VITE_WEB_URL : undefined, + await signOut().then(() => { + window.location.reload() }) }, []) diff --git a/apps/renderer/src/initialize/helper.ts b/apps/renderer/src/initialize/helper.ts index a8be525ec..fdddbff43 100644 --- a/apps/renderer/src/initialize/helper.ts +++ b/apps/renderer/src/initialize/helper.ts @@ -1,13 +1,13 @@ -import type { User } from "@auth/core/types" +import type { UserModel } from "@follow/models" import { op } from "./op" -export const setIntegrationIdentify = async (user: User) => { +export const setIntegrationIdentify = async (user: UserModel) => { op.identify({ profileId: user.id, email: user.email, - avatar: user.image, - lastName: user.name, + avatar: user.image ?? undefined, + lastName: user.name ?? undefined, properties: { handle: user.handle, name: user.name, diff --git a/apps/renderer/src/initialize/index.ts b/apps/renderer/src/initialize/index.ts index 83c4d3172..d49917bf9 100644 --- a/apps/renderer/src/initialize/index.ts +++ b/apps/renderer/src/initialize/index.ts @@ -1,8 +1,6 @@ import { initializeDayjs } from "@follow/components/dayjs" import { registerGlobalContext } from "@follow/shared/bridge" import { IN_ELECTRON } from "@follow/shared/constants" -import { env } from "@follow/shared/env" -import { authConfigManager } from "@hono/auth-js/react" import { repository } from "@pkg" import { enableMapSet } from "immer" @@ -63,12 +61,6 @@ export const initializeApp = async () => { window.version = APP_VERSION const now = Date.now() - // Initialize the auth config first - authConfigManager.setConfig({ - baseUrl: env.VITE_API_URL, - basePath: "/auth", - credentials: "include", - }) initializeDayjs() registerHistoryStack() diff --git a/apps/renderer/src/lib/api-fetch.ts b/apps/renderer/src/lib/api-fetch.ts index f8d3dc1f3..2700b0cd9 100644 --- a/apps/renderer/src/lib/api-fetch.ts +++ b/apps/renderer/src/lib/api-fetch.ts @@ -1,6 +1,5 @@ import { env } from "@follow/shared/env" import type { AppType } from "@follow/shared/hono" -import { getCsrfToken } from "@hono/auth-js/react" import PKG from "@pkg" import { hc } from "hono/client" import { FetchError, ofetch } from "ofetch" @@ -13,27 +12,15 @@ import { isDev } from "~/constants" import { NeedActivationToast } from "~/modules/activation/NeedActivationToast" import { DebugRegistry } from "~/modules/debug/registry" -let csrfTokenPromise: Promise | null = null - -const getPromisedCsrfToken = async () => { - if (!csrfTokenPromise) { - csrfTokenPromise = getCsrfToken() - } - - return await csrfTokenPromise -} export const apiFetch = ofetch.create({ baseURL: env.VITE_API_URL, credentials: "include", retry: false, - onRequest: async ({ options }) => { - const csrfToken = await getPromisedCsrfToken() - + onRequest: ({ options }) => { const header = new Headers(options.headers) header.set("x-app-version", PKG.version) header.set("X-App-Dev", process.env.NODE_ENV === "development" ? "1" : "0") - header.set("X-Csrf-Token", csrfToken) options.headers = header }, onResponse() { @@ -92,11 +79,10 @@ export const apiClient = hc(env.VITE_API_URL, { } throw err }), - async headers() { + headers() { return { "X-App-Version": PKG.version, "X-App-Dev": process.env.NODE_ENV === "development" ? "1" : "0", - "X-Csrf-Token": await getPromisedCsrfToken(), } }, }) diff --git a/apps/renderer/src/lib/auth.ts b/apps/renderer/src/lib/auth.ts deleted file mode 100644 index 4400282d5..000000000 --- a/apps/renderer/src/lib/auth.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { IN_ELECTRON, WEB_URL } from "@follow/shared/constants" -import { signIn } from "@hono/auth-js/react" - -export const LOGIN_CALLBACK_URL = `${WEB_URL}/login` -export type LoginRuntime = "browser" | "app" -export const loginHandler = (provider: string, runtime: LoginRuntime = "app") => { - if (IN_ELECTRON) { - window.open(`${WEB_URL}/login?provider=${provider}`) - } else { - signIn(provider, { - callbackUrl: runtime === "app" ? LOGIN_CALLBACK_URL : WEB_URL, - }) - } -} diff --git a/apps/renderer/src/lib/parse-html.ts b/apps/renderer/src/lib/parse-html.ts index 477c47952..8c1cb3204 100644 --- a/apps/renderer/src/lib/parse-html.ts +++ b/apps/renderer/src/lib/parse-html.ts @@ -241,6 +241,14 @@ export const parseHtml = ( language: language.toLowerCase(), }) }, + figure: ({ node, ...props }) => + createElement( + "figure", + { + className: "max-w-full", + }, + props.children, + ), table: ({ node, ...props }) => createElement( "div", diff --git a/apps/renderer/src/lib/translate.ts b/apps/renderer/src/lib/translate.ts index 2736c925a..e3035911c 100644 --- a/apps/renderer/src/lib/translate.ts +++ b/apps/renderer/src/lib/translate.ts @@ -30,7 +30,7 @@ export const LanguageMap: Record< }, "zh-TW": { value: "zh-TW", - label: "Traditional Chinese(Taiwan)", + label: "Traditional Chinese (Taiwan)", code: "cmn", }, } diff --git a/apps/renderer/src/modules/activation/ActivationModalContent.tsx b/apps/renderer/src/modules/activation/ActivationModalContent.tsx index e340b70c6..165443403 100644 --- a/apps/renderer/src/modules/activation/ActivationModalContent.tsx +++ b/apps/renderer/src/modules/activation/ActivationModalContent.tsx @@ -84,7 +84,7 @@ export const ActivationModalContent = ({ )} diff --git a/apps/renderer/src/modules/ai/ai-daily/FeedDailyModalContent.tsx b/apps/renderer/src/modules/ai/ai-daily/FeedDailyModalContent.tsx index b509d1dfd..be6ceab0b 100644 --- a/apps/renderer/src/modules/ai/ai-daily/FeedDailyModalContent.tsx +++ b/apps/renderer/src/modules/ai/ai-daily/FeedDailyModalContent.tsx @@ -21,7 +21,7 @@ export const FeedDailyModalContent = () => { ))} -
+
{tabs.map((tab: any) => ( = ({ view, }) => { const content = useQueryData({ endDate, startDate, view }) - - const RelatedEntryLink = useState(() => createRelatedEntryLink("toast"))[0] const { t } = useTranslation() + const RelatedEntryLink = useState(() => createRelatedEntryLink("toast"))[0] + if (!content.data && !content.isLoading) return ( -
+

{t("ai_daily.no_found")}

) + return (
{content.isLoading ? ( ) : content.data ? ( {content.data} diff --git a/apps/renderer/src/modules/app-layout/entry-column/mobile.tsx b/apps/renderer/src/modules/app-layout/entry-column/mobile.tsx index 9b88f74ae..e0d5f7808 100644 --- a/apps/renderer/src/modules/app-layout/entry-column/mobile.tsx +++ b/apps/renderer/src/modules/app-layout/entry-column/mobile.tsx @@ -15,6 +15,8 @@ export const EntryColumnMobile = () => { const [scrollContainer, setScrollContainer] = useState(null) const view = useRouteParamsSelector((s) => s.view) + const folderName = useRouteParamsSelector((s) => s.folderName) + const listId = useRouteParamsSelector((s) => s.listId) useEffect(() => { const timer = setTimeout(() => { setScrollContainer( @@ -22,10 +24,11 @@ export const EntryColumnMobile = () => { ) }, 1000) return () => clearTimeout(timer) - }, [view]) + }, [view, folderName, listId]) usePreventOverscrollBounce() + return ( -
+
{isStartupTimeline && ( diff --git a/apps/renderer/src/modules/app-layout/feed-column/desktop.tsx b/apps/renderer/src/modules/app-layout/feed-column/desktop.tsx index bd27b6f0e..05e46c181 100644 --- a/apps/renderer/src/modules/app-layout/feed-column/desktop.tsx +++ b/apps/renderer/src/modules/app-layout/feed-column/desktop.tsx @@ -8,7 +8,7 @@ import { IN_ELECTRON } from "@follow/shared/constants" import { preventDefault } from "@follow/utils/dom" import { cn } from "@follow/utils/utils" import { Slot } from "@radix-ui/react-slot" -import { throttle } from "es-toolkit/compat" +import { debounce } from "es-toolkit/compat" import type { PropsWithChildren } from "react" import * as React from "react" import { forwardRef, Suspense, useEffect, useRef, useState } from "react" @@ -208,22 +208,29 @@ const FeedResponsiveResizerContainer = ({ setFeedColumnTempShow(false) return } - const handler = throttle((e: MouseEvent) => { - const mouseX = e.clientX - const mouseY = e.clientY + const handler = debounce( + (e: MouseEvent) => { + const mouseX = e.clientX + const mouseY = e.clientY - const uiSettings = getUISettings() - const feedColumnTempShow = getFeedColumnTempShow() - const isInEntryContentWideMode = uiSettings.wideMode || getIsZenMode() - if (mouseY < 200 && isInEntryContentWideMode) return - const threshold = feedColumnTempShow ? uiSettings.feedColWidth : 100 + const uiSettings = getUISettings() + const feedColumnTempShow = getFeedColumnTempShow() + const isInEntryContentWideMode = uiSettings.wideMode || getIsZenMode() + const feedWidth = uiSettings.feedColWidth + if (mouseY < 200 && isInEntryContentWideMode && mouseX < feedWidth) return + const threshold = feedColumnTempShow ? uiSettings.feedColWidth : 100 - if (mouseX < threshold) { - setFeedColumnTempShow(true) - } else { - setFeedColumnTempShow(false) - } - }, 300) + if (mouseX < threshold) { + setFeedColumnTempShow(true) + } else { + setFeedColumnTempShow(false) + } + }, + 36, + { + leading: true, + }, + ) document.addEventListener("mousemove", handler) return () => { @@ -269,7 +276,7 @@ const FeedResponsiveResizerContainer = ({ "shrink-0 overflow-hidden", "absolute inset-y-0 z-[2]", feedColumnTempShow && !feedColumnShow && "shadow-drawer-to-right z-[12]", - !feedColumnShow && !feedColumnTempShow ? "-translate-x-full delay-200" : "", + !feedColumnShow && !feedColumnTempShow ? "-translate-x-full" : "", !isDragging ? "duration-200" : "", )} style={{ diff --git a/apps/renderer/src/modules/app-layout/feed-column/float-bar.mobile.tsx b/apps/renderer/src/modules/app-layout/feed-column/float-bar.mobile.tsx index 5d65af603..36981e929 100644 --- a/apps/renderer/src/modules/app-layout/feed-column/float-bar.mobile.tsx +++ b/apps/renderer/src/modules/app-layout/feed-column/float-bar.mobile.tsx @@ -18,7 +18,6 @@ import { feedIconSelector } from "~/store/feed/selector" import { useUnreadByView } from "~/store/unread/hooks" import { ProfileButton } from "../../user/ProfileButton" -import styles from "./mobile.module.css" export const MobileFloatBar = ({ scrollContainer, @@ -74,22 +73,28 @@ export const MobileFloatBar = ({ }, [isScrollDown, animateController]) return ( - -
+ -
-
+ +
) } diff --git a/apps/renderer/src/modules/app-layout/feed-column/index.mobile.tsx b/apps/renderer/src/modules/app-layout/feed-column/index.mobile.tsx index 59d877160..0e3a2529b 100644 --- a/apps/renderer/src/modules/app-layout/feed-column/index.mobile.tsx +++ b/apps/renderer/src/modules/app-layout/feed-column/index.mobile.tsx @@ -1,16 +1,38 @@ +import { RootPortal } from "@follow/components/ui/portal/index.js" import { Outlet } from "react-router" +import { useLoginModalShow, useWhoami } from "~/atoms/user" +import { PlainModal } from "~/components/ui/modal/stacked/custom-modal" +import { DeclarativeModal } from "~/components/ui/modal/stacked/declarative-modal" import { useDailyTask } from "~/hooks/biz/useDailyTask" +import { LoginModalContent } from "~/modules/auth/LoginModalContent" import { NewUserGuide } from "./index.shared" export const MobileRootLayout = () => { useDailyTask() - + const isAuthFail = useLoginModalShow() + const user = useWhoami() return ( <> + + {isAuthFail && !user && ( + + + + + + )} ) } diff --git a/apps/renderer/src/modules/app-layout/feed-column/mobile.module.css b/apps/renderer/src/modules/app-layout/feed-column/mobile.module.css deleted file mode 100644 index 3d6256149..000000000 --- a/apps/renderer/src/modules/app-layout/feed-column/mobile.module.css +++ /dev/null @@ -1,9 +0,0 @@ -.float-bar { - @apply min-w-0 mx-4 rounded-full border bg-background dark:border-neutral-800 shadow-sm shadow-zinc-100 border-neutral-200 h-10 inline-flex items-center pl-4 pr-2; - - box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.12); -} - -[data-theme="dark"] .float-bar { - box-shadow: 0px 8px 30px rgba(122, 122, 122, 0.2); -} diff --git a/apps/renderer/src/modules/app-layout/feed-column/mobile.tsx b/apps/renderer/src/modules/app-layout/feed-column/mobile.tsx index 1717bbb20..55dae6f78 100644 --- a/apps/renderer/src/modules/app-layout/feed-column/mobile.tsx +++ b/apps/renderer/src/modules/app-layout/feed-column/mobile.tsx @@ -1,8 +1,6 @@ import { Logo } from "@follow/components/icons/logo.js" import { ActionButton } from "@follow/components/ui/button/index.js" -import { RootPortal } from "@follow/components/ui/portal/index.js" import { views } from "@follow/constants" -import { IN_ELECTRON } from "@follow/shared/constants" import { cn } from "@follow/utils/utils" import useEmblaCarousel from "embla-carousel-react" import type { FC } from "react" @@ -11,11 +9,7 @@ import { useTranslation } from "react-i18next" import { Link } from "react-router" import { useSetSidebarActiveView, useSidebarActiveView } from "~/atoms/sidebar" -import { useLoginModalShow, useWhoami } from "~/atoms/user" -import { PlainModal } from "~/components/ui/modal/stacked/custom-modal" -import { DeclarativeModal } from "~/components/ui/modal/stacked/declarative-modal" import { getRouteParams } from "~/hooks/biz/useRouteParams" -import { LoginModalContent } from "~/modules/auth/LoginModalContent" import { FeedList } from "../../feed-column/list" import { FooterInfo } from "./components/FooterInfo" @@ -34,9 +28,6 @@ export function FeedColumnMobile({ asWidget }: { asWidget?: boolean }) { const [feedListScrollRef, setFeedListScrollRef] = useState() - const isAuthFail = useLoginModalShow() - const user = useWhoami() - const { t } = useTranslation() return ( @@ -73,22 +64,6 @@ export function FeedColumnMobile({ asWidget }: { asWidget?: boolean }) {
- {isAuthFail && !user && ( - - - - - - )} - { const scrollYProgress = useScroll() const opacity = useTransform(scrollYProgress.scrollY, [0, 120], [0, 1], { ease: easeOut }) - const borderOpacity = useTransform(scrollYProgress.scrollY, [50, 120], [0, 1], { ease: easeOut }) + const borderOpacity = useTransform(scrollYProgress.scrollY, [50, 120], [0, 0.5], { + ease: easeOut, + }) return ( <> @@ -22,7 +24,7 @@ export const SubviewLayout = () => { className={cn( "sticky inset-x-0 top-0 z-10 p-4", "grid grid-cols-[1fr_auto_1fr] items-center gap-4", - "bg-zinc-50/80 backdrop-blur-xl dark:bg-neutral-900/90", + "bg-theme-background", "border-b", )} style={{ diff --git a/apps/renderer/src/modules/app/Titlebar.tsx b/apps/renderer/src/modules/app/Titlebar.tsx index 97b810d64..c5092c33a 100644 --- a/apps/renderer/src/modules/app/Titlebar.tsx +++ b/apps/renderer/src/modules/app/Titlebar.tsx @@ -1,19 +1,19 @@ -import { useQuery } from "@tanstack/react-query" +import { WindowState } from "@follow/shared/bridge" +import { preventDefault } from "@follow/utils/dom" +import { useWindowState } from "~/atoms/app" import { useUISettingKey } from "~/atoms/settings/ui" import { ElECTRON_CUSTOM_TITLEBAR_HEIGHT } from "~/constants" import { tipcClient } from "~/lib/client" export const Titlebar = () => { - const { data: isMaximized, refetch } = useQuery({ - queryFn: () => tipcClient?.getWindowIsMaximized(), - queryKey: ["windowIsMaximized"], - }) + const isMaximized = useWindowState() === WindowState.MAXIMIZED const feedColWidth = useUISettingKey("feedColWidth") return (
{ className="no-drag-region pointer-events-auto flex h-full w-[50px] items-center justify-center duration-200 hover:bg-theme-item-active" onClick={async () => { await tipcClient?.windowAction({ action: "maximum" }) - refetch() }} > {isMaximized ? ( diff --git a/apps/renderer/src/modules/auth/LoginModalContent.tsx b/apps/renderer/src/modules/auth/LoginModalContent.tsx index 4052ae5d2..541ddc9df 100644 --- a/apps/renderer/src/modules/auth/LoginModalContent.tsx +++ b/apps/renderer/src/modules/auth/LoginModalContent.tsx @@ -2,6 +2,8 @@ import { FollowIcon } from "@follow/components/icons/follow.jsx" import { MotionButtonBase } from "@follow/components/ui/button/index.js" import { LoadingCircle } from "@follow/components/ui/loading/index.jsx" import { authProvidersConfig } from "@follow/constants" +import type { LoginRuntime } from "@follow/shared/auth" +import { loginHandler } from "@follow/shared/auth" import { stopPropagation } from "@follow/utils/dom" import clsx from "clsx" import { AnimatePresence, m } from "framer-motion" @@ -10,8 +12,6 @@ import { useTranslation } from "react-i18next" import { modalMontionConfig } from "~/components/ui/modal/stacked/constants" import { useCurrentModal } from "~/components/ui/modal/stacked/hooks" -import type { LoginRuntime } from "~/lib/auth" -import { loginHandler } from "~/lib/auth" import { useAuthProviders } from "~/queries/users" interface LoginModalContentProps { diff --git a/apps/renderer/src/modules/boost/radio-cards.tsx b/apps/renderer/src/modules/boost/radio-cards.tsx index 763f533e9..253709c8b 100644 --- a/apps/renderer/src/modules/boost/radio-cards.tsx +++ b/apps/renderer/src/modules/boost/radio-cards.tsx @@ -41,14 +41,14 @@ export const RadioCards = ({ {radios.map((item) => (

{dayjs.duration(item.value, "months").humanize()}

-

+

{item.value * monthlyBoostCost}

diff --git a/apps/renderer/src/modules/claim/feed-claim-modal.tsx b/apps/renderer/src/modules/claim/feed-claim-modal.tsx index 4df4df5f8..36fdb7bfc 100644 --- a/apps/renderer/src/modules/claim/feed-claim-modal.tsx +++ b/apps/renderer/src/modules/claim/feed-claim-modal.tsx @@ -42,7 +42,7 @@ export const FeedClaimModalContent: FC<{ if (isLoading) { return ( -
+
) @@ -53,7 +53,7 @@ export const FeedClaimModalContent: FC<{ } return ( -
+
@@ -78,10 +78,8 @@ export const FeedClaimModalContent: FC<{ {claimMessage?.data.content || ""} -

- {t("feed_claim_modal.description_current")} - {feed.description} -

+

{t("feed_claim_modal.description_current")}

+

{feed.description}

{""} }} diff --git a/apps/renderer/src/modules/command/commands/id.ts b/apps/renderer/src/modules/command/commands/id.ts index 92304bd91..fa461fed3 100644 --- a/apps/renderer/src/modules/command/commands/id.ts +++ b/apps/renderer/src/modules/command/commands/id.ts @@ -19,9 +19,9 @@ export const COMMAND_ID = { saveToEagle: "integration:save-to-eagle", saveToReadwise: "integration:save-to-readwise", saveToInstapaper: "integration:save-to-instapaper", - saveToOmnivore: "integration:save-to-omnivore", saveToObsidian: "integration:save-to-obsidian", saveToOutline: "integration:save-to-outline", + saveToReadeck: "integration:save-to-readeck", }, list: { edit: "list:edit", diff --git a/apps/renderer/src/modules/command/commands/integration.tsx b/apps/renderer/src/modules/command/commands/integration.tsx index f6dfc2407..a42806185 100644 --- a/apps/renderer/src/modules/command/commands/integration.tsx +++ b/apps/renderer/src/modules/command/commands/integration.tsx @@ -2,8 +2,8 @@ import { SimpleIconsEagle, SimpleIconsInstapaper, SimpleIconsObsidian, - SimpleIconsOmnivore, SimpleIconsOutline, + SimpleIconsReadeck, SimpleIconsReadwise, } from "@follow/components/ui/platform-icon/icons.js" import { IN_ELECTRON } from "@follow/shared/constants" @@ -29,9 +29,9 @@ export const useRegisterIntegrationCommands = () => { useRegisterEagleCommands() useRegisterReadwiseCommands() useRegisterInstapaperCommands() - useRegisterOmnivoreCommands() useRegisterObsidianCommands() useRegisterOutlineCommands() + useRegisterReadeckCommands() } const useRegisterEagleCommands = () => { @@ -236,90 +236,6 @@ const useRegisterInstapaperCommands = () => { ) } -const useRegisterOmnivoreCommands = () => { - const { t } = useTranslation() - - const enableOmnivore = useIntegrationSettingKey("enableOmnivore") - const omnivoreToken = useIntegrationSettingKey("omnivoreToken") - const omnivoreEndpoint = useIntegrationSettingKey("omnivoreEndpoint") - - const isOmnivoreAvailable = enableOmnivore && !!omnivoreToken && !!omnivoreEndpoint - - useRegisterCommandEffect( - !isOmnivoreAvailable - ? [] - : defineFollowCommand({ - id: COMMAND_ID.integration.saveToOmnivore, - label: t("entry_actions.save_to_omnivore"), - icon: , - run: async ({ entryId }) => { - const entry = useEntryStore.getState().flatMapEntries[entryId] - if (!entry) { - toast.error("Failed to save to Omnivore: entry is not available", { duration: 3000 }) - return - } - const saveUrlQuery = ` - mutation SaveUrl($input: SaveUrlInput!) { - saveUrl(input: $input) { - ... on SaveSuccess { - url - clientRequestId - } - ... on SaveError { - errorCodes - message - } - } - } -` - - window.analytics?.capture("integration", { - type: "omnivore", - event: "save", - }) - try { - const data = await ofetch(omnivoreEndpoint, { - method: "POST", - headers: { - "Content-Type": "application/json", - Authorization: omnivoreToken, - }, - body: { - query: saveUrlQuery, - variables: { - input: { - url: entry.entries.url, - source: "Follow", - clientRequestId: globalThis.crypto.randomUUID(), - publishedAt: new Date(entry.entries.publishedAt), - }, - }, - }, - }) - toast.success( - <> - {t("entry_actions.saved_to_omnivore")},{" "} - - view - - , - { - duration: 3000, - }, - ) - } catch { - toast.error(t("entry_actions.failed_to_save_to_omnivore"), { - duration: 3000, - }) - } - }, - }), - { - deps: [isOmnivoreAvailable], - }, - ) -} - const getEntryContentAsMarkdown = async (entry: FlatEntryModel) => { const isReadabilityReady = getReadabilityStatus()[entry.entries.id] === ReadabilityStatus.SUCCESS const content = @@ -466,3 +382,71 @@ const useRegisterOutlineCommands = () => { }, ) } + +const useRegisterReadeckCommands = () => { + const { t } = useTranslation() + + const enableReadeck = useIntegrationSettingKey("enableReadeck") + const readeckEndpoint = useIntegrationSettingKey("readeckEndpoint") + const readeckToken = useIntegrationSettingKey("readeckToken") + const readeckAvailable = enableReadeck && !!readeckEndpoint && !!readeckToken + + useRegisterCommandEffect( + !readeckAvailable + ? [] + : defineFollowCommand({ + id: COMMAND_ID.integration.saveToReadeck, + label: t("entry_actions.save_to_readeck"), + icon: , + run: async ({ entryId }) => { + const entry = useEntryStore.getState().flatMapEntries[entryId] + if (!entry) { + toast.error("Failed to save to Readeck: entry is not available", { duration: 3000 }) + return + } + try { + window.analytics?.capture("integration", { + type: "readeck", + event: "save", + }) + const data = new FormData() + if (entry.entries.url) { + data.set("url", entry.entries.url) + } + if (entry.entries.title) { + data.set("title", entry.entries.title) + } + const response = await ofetch.raw( + `${readeckEndpoint.replace(/\/$/, "")}/api/bookmarks`, + { + method: "POST", + body: data, + headers: { + Authorization: `Bearer ${readeckToken}`, + }, + }, + ) + + toast.success( + <> + {t("entry_actions.saved_to_readeck")},{" "} + + view + + , + { + duration: 3000, + }, + ) + } catch { + toast.error(t("entry_actions.failed_to_save_to_readeck"), { + duration: 3000, + }) + } + }, + }), + { + deps: [readeckAvailable], + }, + ) +} diff --git a/apps/renderer/src/modules/command/commands/types.ts b/apps/renderer/src/modules/command/commands/types.ts index fcb69338c..26439c1ce 100644 --- a/apps/renderer/src/modules/command/commands/types.ts +++ b/apps/renderer/src/modules/command/commands/types.ts @@ -106,11 +106,6 @@ export type SaveToInstapaperCommand = Command<{ fn: (payload: { entryId: string }) => void }> -export type SaveToOmnivoreCommand = Command<{ - id: typeof COMMAND_ID.integration.saveToOmnivore - fn: (payload: { entryId: string }) => void -}> - export type SaveToObsidianCommand = Command<{ id: typeof COMMAND_ID.integration.saveToObsidian fn: (payload: { entryId: string }) => void @@ -121,12 +116,17 @@ export type SaveToOutlineCommand = Command<{ fn: (payload: { entryId: string }) => void }> +export type SaveToReadeckCommand = Command<{ + id: typeof COMMAND_ID.integration.saveToReadeck + fn: (payload: { entryId: string }) => void +}> + export type IntegrationCommand = | SaveToEagleCommand | SaveToReadwiseCommand | SaveToInstapaperCommand - | SaveToOmnivoreCommand | SaveToObsidianCommand | SaveToOutlineCommand + | SaveToReadeckCommand export type BasicCommand = EntryCommand | IntegrationCommand diff --git a/apps/renderer/src/modules/discover/feed-form.tsx b/apps/renderer/src/modules/discover/feed-form.tsx index 7ffc1be6c..b7403755c 100644 --- a/apps/renderer/src/modules/discover/feed-form.tsx +++ b/apps/renderer/src/modules/discover/feed-form.tsx @@ -18,7 +18,7 @@ import type { EntryModelSimple, FeedModel } from "@follow/models/types" import { cn } from "@follow/utils/utils" import { zodResolver } from "@hookform/resolvers/zod" import { useMutation } from "@tanstack/react-query" -import { useEffect, useMemo, useRef } from "react" +import { useCallback, useEffect, useMemo, useRef } from "react" import { useForm } from "react-hook-form" import { useTranslation } from "react-i18next" import { toast } from "sonner" @@ -76,7 +76,9 @@ export const FeedForm: Component<{
{!asWidget && ( @@ -273,6 +275,10 @@ const FeedInnerForm = ({ [categories.data], ) + const fillDefaultTitle = useCallback(() => { + form.setValue("title", feed.title || "") + }, [feed.title, form]) + return (
@@ -292,7 +298,18 @@ const FeedInnerForm = ({ {t("feed_form.title_description")}
- +
+ + +
diff --git a/apps/renderer/src/modules/discover/form.tsx b/apps/renderer/src/modules/discover/form.tsx index 49032eb8c..efa681ef0 100644 --- a/apps/renderer/src/modules/discover/form.tsx +++ b/apps/renderer/src/modules/discover/form.tsx @@ -19,8 +19,8 @@ import { zodResolver } from "@hookform/resolvers/zod" import { useMutation } from "@tanstack/react-query" import { produce } from "immer" import { atom, useAtomValue, useStore } from "jotai" -import type { FC } from "react" -import { memo, useCallback, useEffect, useState } from "react" +import type { ChangeEvent, FC } from "react" +import { memo, useCallback, useState } from "react" import { useForm } from "react-hook-form" import { useTranslation } from "react-i18next" import { z } from "zod" @@ -119,26 +119,26 @@ export function DiscoverForm({ type = "search" }: { type?: string }) { } } - const keyword = form.watch("keyword") - useEffect(() => { - const trimmedKeyword = keyword.trimStart() - if (!prefix) { + const handleKeywordChange = useCallback( + (event: ChangeEvent) => { + const trimmedKeyword = event.target.value.trimStart() + if (!prefix) { + form.setValue("keyword", trimmedKeyword) + return + } + const isValidPrefix = prefix.find((p) => trimmedKeyword.startsWith(p)) + if (!isValidPrefix) { + form.setValue("keyword", prefix[0]) + return + } + if (trimmedKeyword.startsWith(`${isValidPrefix}${isValidPrefix}`)) { + form.setValue("keyword", trimmedKeyword.slice(isValidPrefix.length)) + return + } form.setValue("keyword", trimmedKeyword) - return - } - const isValidPrefix = prefix.find((p) => trimmedKeyword.startsWith(p)) - if (!isValidPrefix) { - form.setValue("keyword", prefix[0]) - - return - } - - if (trimmedKeyword.startsWith(`${isValidPrefix}${isValidPrefix}`)) { - form.setValue("keyword", trimmedKeyword.slice(isValidPrefix.length)) - } - - form.setValue("keyword", trimmedKeyword) - }, [form, keyword, prefix]) + }, + [form, prefix], + ) const handleSuccess = useCallback( (item: DiscoverSearchData[number]) => { @@ -210,7 +210,7 @@ export function DiscoverForm({ type = "search" }: { type?: string }) { {t(info[type]?.label)} - + diff --git a/apps/renderer/src/modules/discover/import.tsx b/apps/renderer/src/modules/discover/import.tsx index 17c757f6e..788a86cb9 100644 --- a/apps/renderer/src/modules/discover/import.tsx +++ b/apps/renderer/src/modules/discover/import.tsx @@ -17,6 +17,7 @@ import { useForm } from "react-hook-form" import { Trans, useTranslation } from "react-i18next" import { z } from "zod" +import { DropZone } from "~/components/ui/drop-zone" import { apiFetch } from "~/lib/api-fetch" import { toastFetchError } from "~/lib/error-parser" import { Queries } from "~/queries" @@ -30,9 +31,14 @@ type FeedResponseList = { }[] const formSchema = z.object({ - file: z.instanceof(File).refine((file) => file.size < 500_000, { - message: "Your OPML file must be less than 500KB.", - }), + file: z + .instanceof(File) + .refine((file) => file.size < 500_000, { + message: "Your OPML file must be less than 500KB.", + }) + .refine((file) => file.name.endsWith(".opml") || file.name.endsWith(".xml"), { + message: "Your OPML file must be in OPML or XML format.", + }), }) const NumberDisplay = ({ value }) => {value ?? 0} @@ -110,26 +116,21 @@ export function DiscoverImport({ isInit = false }: { isInit?: boolean }) { {isInit ? t("discover.import.new_import_opml") : t("discover.import.opml")} - + ( -
+
) diff --git a/apps/renderer/src/modules/discover/recommendations.tsx b/apps/renderer/src/modules/discover/recommendations.tsx index 049cdc265..dc98204e2 100644 --- a/apps/renderer/src/modules/discover/recommendations.tsx +++ b/apps/renderer/src/modules/discover/recommendations.tsx @@ -13,6 +13,7 @@ import { useGeneralSettingKey } from "~/atoms/settings/general" import { useAuthQuery } from "~/hooks/common" import { Queries } from "~/queries" +import { TrendingButton } from "../trending" import { RSSHubCategories } from "./constants" import styles from "./recommendations.module.css" import { RecommendationCard } from "./recommendations-card" @@ -42,6 +43,7 @@ const fetchRsshubPopular = (category: DiscoverCategories, lang: Language) => { lang, }) } +let firstLoad = true export function Recommendations({ hideTitle, className, @@ -62,9 +64,13 @@ export function Recommendations({ meta: { persist: true, }, + staleTime: 1000 * 60 * 60 * 24, // 1 day + refetchOnMount: firstLoad ? "always" : true, placeholderData: keepPreviousData, }) + firstLoad = false + const { data, isLoading, isFetching } = rsshubPopular const keys = useMemo(() => { @@ -136,14 +142,18 @@ export function Recommendations({ return (
{!hideTitle && ( -
+
{t("discover.popular")} +
+ +
{isFetching && (
{t("discover.popular")} +
)} @@ -152,7 +162,7 @@ export function Recommendations({
diff --git a/apps/renderer/src/modules/entry-column/EntryColumnShortcutHandler.tsx b/apps/renderer/src/modules/entry-column/EntryColumnShortcutHandler.tsx index 83ef9a838..998e2718b 100644 --- a/apps/renderer/src/modules/entry-column/EntryColumnShortcutHandler.tsx +++ b/apps/renderer/src/modules/entry-column/EntryColumnShortcutHandler.tsx @@ -2,7 +2,6 @@ import { useRefValue } from "@follow/hooks" import type { FC } from "react" import { memo, useLayoutEffect, useState } from "react" import { useHotkeys } from "react-hotkeys-hook" -import type { VirtuosoHandle } from "react-virtuoso" import { useMainContainerElement } from "~/atoms/dom" import { HotKeyScopeMap } from "~/constants" @@ -13,8 +12,8 @@ import { useRouteEntryId } from "~/hooks/biz/useRouteParams" export const EntryColumnShortcutHandler: FC<{ refetch: () => void data: readonly string[] - virtuosoRef: React.RefObject -}> = memo(({ data, refetch, virtuosoRef }) => { + handleScrollTo: (index: number) => void +}> = memo(({ data, refetch, handleScrollTo }) => { const dataRef = useRefValue(data!) useHotkeys( @@ -58,9 +57,7 @@ export const EntryColumnShortcutHandler: FC<{ const nextIndex = Math.min(currentActiveEntryIndex + 1, data.length - 1) - virtuosoRef.current?.scrollIntoView?.({ - index: nextIndex, - }) + handleScrollTo(nextIndex) const nextId = data![nextIndex] navigate({ @@ -78,9 +75,7 @@ export const EntryColumnShortcutHandler: FC<{ const nextIndex = currentActiveEntryIndex === -1 ? data.length - 1 : Math.max(0, currentActiveEntryIndex - 1) - virtuosoRef.current?.scrollIntoView?.({ - index: nextIndex, - }) + handleScrollTo(nextIndex) const nextId = data![nextIndex] navigate({ diff --git a/apps/renderer/src/modules/entry-column/Items/article-item.tsx b/apps/renderer/src/modules/entry-column/Items/article-item.tsx index f2f77158d..b68ed7cdd 100644 --- a/apps/renderer/src/modules/entry-column/Items/article-item.tsx +++ b/apps/renderer/src/modules/entry-column/Items/article-item.tsx @@ -16,7 +16,7 @@ export function ArticleItem({ entryId, entryPreview, translation }: UniversalIte export function ArticleItemStateLess({ entry, feed }: EntryItemStatelessProps) { return ( -
+
@@ -58,7 +58,7 @@ export function ArticleItemStateLess({ entry, feed }: EntryItemStatelessProps) { } export const ArticleItemSkeleton = ( -
+
diff --git a/apps/renderer/src/modules/entry-column/Items/audio-item.tsx b/apps/renderer/src/modules/entry-column/Items/audio-item.tsx index 7e790e4ef..9f3cd26b2 100644 --- a/apps/renderer/src/modules/entry-column/Items/audio-item.tsx +++ b/apps/renderer/src/modules/entry-column/Items/audio-item.tsx @@ -15,7 +15,7 @@ export function AudioItem({ entryId, entryPreview, translation }: UniversalItemP export function AudioItemStateLess({ entry, feed }: EntryItemStatelessProps) { return ( -
+
@@ -57,7 +57,7 @@ export function AudioItemStateLess({ entry, feed }: EntryItemStatelessProps) { } export const AudioItemSkeleton = ( -
+
diff --git a/apps/renderer/src/modules/entry-column/Items/index.ts b/apps/renderer/src/modules/entry-column/Items/index.ts index 97c29bb8e..761728a30 100644 --- a/apps/renderer/src/modules/entry-column/Items/index.ts +++ b/apps/renderer/src/modules/entry-column/Items/index.ts @@ -1,19 +1,11 @@ import { FeedViewType } from "@follow/constants" -import { ArticleItem, ArticleItemSkeleton, ArticleItemStateLess } from "./article-item" -import { AudioItem, AudioItemSkeleton, AudioItemStateLess } from "./audio-item" -import { - NotificationItem, - NotificationItemSkeleton, - NotificationItemStateLess, -} from "./notification-item" -import { PictureItem, PictureItemSkeleton, PictureItemStateLess } from "./picture-item" -import { - SocialMediaItem, - SocialMediaItemSkeleton, - SocialMediaItemStateLess, -} from "./social-media-item" -import { VideoItem, VideoItemSkeleton, VideoItemStateLess } from "./video-item" +import { ArticleItem, ArticleItemSkeleton } from "./article-item" +import { AudioItem, AudioItemSkeleton } from "./audio-item" +import { NotificationItem, NotificationItemSkeleton } from "./notification-item" +import { PictureItem, PictureItemSkeleton } from "./picture-item" +import { SocialMediaItem, SocialMediaItemSkeleton } from "./social-media-item" +import { VideoItem, VideoItemSkeleton } from "./video-item" const ItemMap = { [FeedViewType.Articles]: ArticleItem, @@ -27,19 +19,6 @@ export const getItemComponentByView = (view: FeedViewType) => { return ItemMap[view] || ArticleItem } -const StatelessItemMap = { - [FeedViewType.Articles]: ArticleItemStateLess, - [FeedViewType.SocialMedia]: SocialMediaItemStateLess, - [FeedViewType.Pictures]: PictureItemStateLess, - [FeedViewType.Videos]: VideoItemStateLess, - [FeedViewType.Audios]: AudioItemStateLess, - [FeedViewType.Notifications]: NotificationItemStateLess, -} - -export const getStatelessItemComponentByView = (view: FeedViewType) => { - return StatelessItemMap[view] || ArticleItemStateLess -} - const SkeletonItemMap = { [FeedViewType.Articles]: ArticleItemSkeleton, [FeedViewType.SocialMedia]: SocialMediaItemSkeleton, diff --git a/apps/renderer/src/modules/entry-column/Items/notification-item.tsx b/apps/renderer/src/modules/entry-column/Items/notification-item.tsx index a7f62cb34..e2941f75c 100644 --- a/apps/renderer/src/modules/entry-column/Items/notification-item.tsx +++ b/apps/renderer/src/modules/entry-column/Items/notification-item.tsx @@ -13,7 +13,7 @@ export function NotificationItem({ entryId, entryPreview, translation }: Univers export function NotificationItemStateLess({ entry, feed }: EntryItemStatelessProps) { return ( -
+
@@ -31,9 +31,9 @@ export function NotificationItemStateLess({ entry, feed }: EntryItemStatelessPro } export const NotificationItemSkeleton = ( -
+
- +
diff --git a/apps/renderer/src/modules/entry-column/Items/picture-item-stateless.tsx b/apps/renderer/src/modules/entry-column/Items/picture-item-stateless.tsx new file mode 100644 index 000000000..bf64b433b --- /dev/null +++ b/apps/renderer/src/modules/entry-column/Items/picture-item-stateless.tsx @@ -0,0 +1,60 @@ +import { Skeleton } from "@follow/components/ui/skeleton/index.jsx" +import { cn } from "@follow/utils/utils" + +import { RelativeTime } from "~/components/ui/datetime" +import { Media } from "~/components/ui/media" +import { FeedIcon } from "~/modules/feed/feed-icon" +import { FeedTitle } from "~/modules/feed/feed-title" + +import type { EntryItemStatelessProps } from "../types" + +export function PictureItemStateLess({ entry, feed }: EntryItemStatelessProps) { + return ( +
+
+
+
+
+ {entry.media?.[0] ? ( + + ) : ( + + )} +
+
+
+
+ {entry.title} +
+
+ + + · + {!!entry.publishedAt && } +
+
+
+
+
+ ) +} diff --git a/apps/renderer/src/modules/entry-column/Items/picture-item.tsx b/apps/renderer/src/modules/entry-column/Items/picture-item.tsx index c2e6f0b20..1388e0fca 100644 --- a/apps/renderer/src/modules/entry-column/Items/picture-item.tsx +++ b/apps/renderer/src/modules/entry-column/Items/picture-item.tsx @@ -12,22 +12,18 @@ import type { PropsWithChildren } from "react" import { memo, useContext, useEffect, useMemo, useState } from "react" import { useTranslation } from "react-i18next" -import { RelativeTime } from "~/components/ui/datetime" -import { Media } from "~/components/ui/media" import { SwipeMedia } from "~/components/ui/media/SwipeMedia" import { ReactVirtuosoItemPlaceholder } from "~/components/ui/placeholder" import { useRouteParamsSelector } from "~/hooks/biz/useRouteParams" import { filterSmallMedia } from "~/lib/utils" import { EntryContent } from "~/modules/entry-content" -import { FeedIcon } from "~/modules/feed/feed-icon" -import { FeedTitle } from "~/modules/feed/feed-title" import { useEntry } from "~/store/entry/hooks" import { useImageDimensions } from "~/store/image" import { usePreviewMedia } from "../../../components/ui/media/hooks" import { EntryItemWrapper } from "../layouts/EntryItemWrapper" import { GridItem, GridItemFooter } from "../templates/grid-item-template" -import type { EntryItemStatelessProps, UniversalItemProps } from "../types" +import type { UniversalItemProps } from "../types" export function PictureItem({ entryId, entryPreview, translation }: UniversalItemProps) { const entry = useEntry(entryId) || entryPreview @@ -46,7 +42,7 @@ export function PictureItem({ entryId, entryPreview, translation }: UniversalIte media={entry.entries.media} className={cn( "aspect-square", - "w-full shrink-0 rounded-md", + "w-full shrink-0 rounded-md [&_img]:rounded-md", isActive && "rounded-b-none", )} imgClassName="object-cover" @@ -205,57 +201,6 @@ const MasonryItemFixedDimensionWrapper = ( ) } -export function PictureItemStateLess({ entry, feed }: EntryItemStatelessProps) { - return ( -
-
-
-
-
- {entry.media?.[0] ? ( - - ) : ( - - )} -
-
-
-
- {entry.title} -
-
- - - · - {!!entry.publishedAt && } -
-
-
-
-
- ) -} - export const PictureItemSkeleton = (
diff --git a/apps/renderer/src/modules/entry-column/Items/picture-masonry.tsx b/apps/renderer/src/modules/entry-column/Items/picture-masonry.tsx index 6cb6c8bb1..4cef49e98 100644 --- a/apps/renderer/src/modules/entry-column/Items/picture-masonry.tsx +++ b/apps/renderer/src/modules/entry-column/Items/picture-masonry.tsx @@ -33,7 +33,7 @@ import { getEntry } from "~/store/entry" import { imageActions } from "~/store/image" import { getMasonryColumnValue, setMasonryColumnValue, useMasonryColumnValue } from "../atoms" -import { batchMarkRead } from "../hooks" +import { batchMarkRead } from "../hooks/useEntryMarkReadHandler" import { PictureWaterFallItem } from "./picture-item" // grid grid-cols-1 @lg:grid-cols-2 @3xl:grid-cols-3 @6xl:grid-cols-4 @7xl:grid-cols-5 px-4 gap-1.5 @@ -262,7 +262,7 @@ const MasonryRender: React.ComponentType< } interface MasonryProps { data: string[] - endReached: () => Promise + endReached: () => any hasNextPage: boolean } diff --git a/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx b/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx index 7fd2dcfb0..23a0c774f 100644 --- a/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx +++ b/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx @@ -1,8 +1,12 @@ +import { useMobile } from "@follow/components/hooks/useMobile.js" +import { AutoResizeHeight } from "@follow/components/ui/auto-resize-height/index.js" import { ActionButton } from "@follow/components/ui/button/index.js" import { Skeleton } from "@follow/components/ui/skeleton/index.jsx" +import type { MediaModel } from "@follow/shared/hono" +import { LRUCache } from "@follow/utils/lru-cache" import { cn } from "@follow/utils/utils" import { atom } from "jotai" -import { useLayoutEffect, useRef, useState } from "react" +import { useLayoutEffect, useMemo, useRef, useState } from "react" import { RelativeTime } from "~/components/ui/datetime" import { Media } from "~/components/ui/media" @@ -28,17 +32,25 @@ const socialMediaContentWidthAtom = atom(0) export const SocialMediaItem: EntryListItemFC = ({ entryId, entryPreview, translation }) => { const entry = useEntry(entryId) || entryPreview - const previewMedia = usePreviewMedia() const asRead = useAsRead(entry) const feed = useFeedById(entry?.feedId) const ref = useRef(null) const [showAction, setShowAction] = useState(false) + + const isMobile = useMobile() + const handleMouseEnter = useMemo(() => { + return () => setShowAction(true) + }, []) + const handleMouseLeave = useMemo(() => { + return () => setShowAction(false) + }, []) + useLayoutEffect(() => { if (ref.current) { jotaiStore.set(socialMediaContentWidthAtom, ref.current.offsetWidth) } - }, [ref.current]) + }, []) // NOTE: prevent 0 height element, react virtuoso will not stop render any more if (!entry || !feed) return @@ -50,19 +62,19 @@ export const SocialMediaItem: EntryListItemFC = ({ entryId, entryPreview, transl return (
setShowAction(true)} - onMouseLeave={() => setShowAction(false)} + onMouseEnter={handleMouseEnter} + onMouseLeave={handleMouseLeave} className={cn( - "relative flex px-2 py-6 lg:px-8", + "relative flex px-5 py-4 lg:px-8", "group", !asRead && - "before:absolute before:left-2 before:top-10 before:block before:size-2 before:rounded-full before:bg-accent", + "before:absolute before:left-1 before:top-8 before:block before:size-2 before:rounded-full before:bg-accent md:before:-left-2 lg:before:left-2", )} >
-
+
- + + + {!!entry.collections && }
- {!!media?.length && ( -
- {media.map((media, i, mediaList) => { - const style: Partial<{ - width: string - height: string - }> = {} - const boundsWidth = jotaiStore.get(socialMediaContentWidthAtom) - if (media.height && media.width) { - // has 1 picture, max width is container width, but max height is less than window height: 2/3 - if (mediaList.length === 1) { - style.width = `${boundsWidth}px` - style.height = `${(boundsWidth * media.height) / media.width}px` - if (Number.parseInt(style.height) > (window.innerHeight * 2) / 3) { - style.height = `${(window.innerHeight * 2) / 3}px` - style.width = `${(Number.parseInt(style.height) * media.width) / media.height}px` - } - } - // has 2 pictures, max width is container half width, and - gap 8px - else if (mediaList.length === 2) { - style.width = `${(boundsWidth - 8) / 2}px` - style.height = `${(((boundsWidth - 8) / 2) * media.height) / media.width}px` - } - // has over 2 pictures, max width is container 1/3 width - else if (mediaList.length > 2) { - style.width = `${boundsWidth / 3}px` - style.height = `${((boundsWidth / 3) * media.height) / media.width}px` - } - } - - const proxySize = { - width: Number.parseInt(style.width || "0") * 2 || 0, - height: Number.parseInt(style.height || "0") * 2 || 0, - } - return ( - { - e.stopPropagation() - previewMedia( - mediaList.map((m) => ({ - url: m.url, - type: m.type, - blurhash: m.blurhash, - fallbackUrl: - m.preview_image_url ?? getImageProxyUrl({ url: m.url, ...proxySize }), - })), - i, - ) - }} - /> - ) - })} -
- )} + {!!media?.length && }
- {showAction && ( + {showAction && !isMobile && (
@@ -199,7 +151,7 @@ const ActionBar = ({ entryId }: { entryId: string }) => { export function SocialMediaItemStateLess({ entry, feed }: EntryItemStatelessProps) { return ( -
+
@@ -266,3 +218,190 @@ export const SocialMediaItemSkeleton = (
) + +const SocialMediaGallery = ({ media }: { media: MediaModel[] }) => { + const previewMedia = usePreviewMedia() + + const isAllMediaSameRatio = useMemo(() => { + let ratio = 0 + for (const m of media) { + if (m.height && m.width) { + const currentRatio = m.height / m.width + if (ratio === 0) { + ratio = currentRatio + } else if (ratio !== currentRatio) { + return false + } + } else { + return false + } + } + return true + }, [media]) + + // all media has same ratio, use horizontal layout + if (isAllMediaSameRatio) { + return ( +
+ {media.map((media, i, mediaList) => { + const style: Partial<{ + width: string + height: string + }> = {} + const boundsWidth = jotaiStore.get(socialMediaContentWidthAtom) + if (media.height && media.width) { + // has 1 picture, max width is container width, but max height is less than window height: 2/3 + if (mediaList.length === 1) { + style.width = `${boundsWidth}px` + style.height = `${(boundsWidth * media.height) / media.width}px` + if (Number.parseInt(style.height) > (window.innerHeight * 2) / 3) { + style.height = `${(window.innerHeight * 2) / 3}px` + style.width = `${(Number.parseInt(style.height) * media.width) / media.height}px` + } + } + // has 2 pictures, max width is container half width, and - gap 8px + else if (mediaList.length === 2) { + style.width = `${(boundsWidth - 8) / 2}px` + style.height = `${(((boundsWidth - 8) / 2) * media.height) / media.width}px` + } + // has over 2 pictures, max width is container 1/3 width + else if (mediaList.length > 2) { + style.width = `${boundsWidth / 3}px` + style.height = `${((boundsWidth / 3) * media.height) / media.width}px` + } + } + + const proxySize = { + width: Number.parseInt(style.width || "0") * 2 || 0, + height: Number.parseInt(style.height || "0") * 2 || 0, + } + return ( + { + e.stopPropagation() + previewMedia( + mediaList.map((m) => ({ + url: m.url, + type: m.type, + blurhash: m.blurhash, + fallbackUrl: + m.preview_image_url ?? getImageProxyUrl({ url: m.url, ...proxySize }), + })), + i, + ) + }} + /> + ) + })} +
+ ) + } + + // all media has different ratio, use grid layout + return ( +
+
= 5 && "grid-cols-3", + )} + > + {media.map((m, i) => { + const proxySize = { + width: 400, + height: 400, + } + + const style = media.length === 3 && i === 2 ? { gridRow: "span 2" } : {} + + return ( + { + e.stopPropagation() + previewMedia( + media.map((m) => ({ + url: m.url, + type: m.type, + blurhash: m.blurhash, + fallbackUrl: + m.preview_image_url ?? getImageProxyUrl({ url: m.url, ...proxySize }), + })), + i, + ) + }} + /> + ) + })} +
+
+ ) +} + +const collapsedHeight = 300 +const collapsedItemCache = new LRUCache(100) +const CollapsedSocialMediaItem: Component<{ + entryId: string +}> = ({ children, entryId }) => { + const [isOverflow, setIsOverflow] = useState(false) + const [isShowMore, setIsShowMore] = useState(() => collapsedItemCache.get(entryId) ?? false) + const ref = useRef(null) + useLayoutEffect(() => { + if (ref.current) { + setIsOverflow(ref.current.scrollHeight > collapsedHeight) + } + }, [children]) + + return ( + +
+ {children} +
+ {isOverflow && !isShowMore && ( +
+ +
+ )} +
+ ) +} diff --git a/apps/renderer/src/modules/entry-column/components/DateItem.tsx b/apps/renderer/src/modules/entry-column/components/DateItem.tsx index 41a5cb539..26d631528 100644 --- a/apps/renderer/src/modules/entry-column/components/DateItem.tsx +++ b/apps/renderer/src/modules/entry-column/components/DateItem.tsx @@ -1,21 +1,10 @@ import { ActionButton } from "@follow/components/ui/button/index.js" -import { useScrollViewElement } from "@follow/components/ui/scroll-area/hooks.js" import { FeedViewType } from "@follow/constants" import { stopPropagation } from "@follow/utils/dom" import { cn } from "@follow/utils/utils" -import { throttle } from "es-toolkit/compat" import { m } from "framer-motion" import type { FC, PropsWithChildren } from "react" -import { - cloneElement, - memo, - useCallback, - useId, - useLayoutEffect, - useMemo, - useRef, - useState, -} from "react" +import { cloneElement, memo, useCallback, useId, useMemo, useRef, useState } from "react" import { Trans } from "react-i18next" import { useDebounceCallback } from "usehooks-ts" @@ -27,6 +16,20 @@ import { isListSubscription } from "~/store/subscription" import { useMarkAllByRoute } from "../hooks/useMarkAll" +interface DateItemInnerProps { + date: Date + startTime: number + endTime: number + className?: string + Wrapper?: FC + isSticky?: boolean +} + +type DateItemProps = Pick & { + view: FeedViewType + date: string + className?: string +} const useParseDate = (date: string) => useMemo(() => { const dateObj = new Date(date) @@ -37,61 +40,40 @@ const useParseDate = (date: string) => } }, [date]) -const useSticky = () => { - const $scroller = useScrollViewElement() - const itemRef = useRef(null) - - const [isSticky, setIsSticky] = useState(false) - useLayoutEffect(() => { - const $ = itemRef.current?.parentElement - if (!$) return - const handler = throttle((e: HTMLElementEventMap["scroll"]) => { - if ((e.target as HTMLElement).scrollTop < 10) { - setIsSticky(false) - return - } - const isSticky = $.offsetTop <= 0 - - setIsSticky(isSticky) - }, 16) - $scroller?.addEventListener("scroll", handler) - return () => { - $scroller?.removeEventListener("scroll", handler) - } - }, [$scroller]) - - return { isSticky, itemRef } -} -export const DateItem = memo(({ date, view }: { date: string; view: FeedViewType }) => { - const className = cn( - "lg:pt-2", - `relative -mx-2 flex items-center gap-1 bg-background px-4 text-base font-bold text-zinc-800 dark:text-neutral-400`, - ) +export const DateItem = memo(({ date, view, isSticky }: DateItemProps) => { + const className = tw`relative flex items-center text-sm lg:text-base gap-1 bg-background px-4 font-bold text-zinc-800 dark:text-neutral-400 h-7` if (view === FeedViewType.SocialMedia) { - return + return } - return + return }) -const UniversalDateItem = ({ date, className }: { date: string; className?: string }) => { +const UniversalDateItem = ({ date, className, isSticky }: Omit) => { const { startOfDay, endOfDay, dateObj } = useParseDate(date) return ( - + ) } -const DateItemInner: FC<{ - date: Date - startTime: number - endTime: number - className?: string - Wrapper?: FC -}> = ({ date, endTime, startTime, className, Wrapper }) => { +const DateItemInner: FC = ({ + date, + endTime, + startTime, + className, + Wrapper, + isSticky, +}) => { const rid = useId() const RelativeElement = useMemo( () => ( - + ), @@ -102,7 +84,6 @@ const DateItemInner: FC<{ startTime, endTime, }) - const { isSticky, itemRef } = useSticky() const [confirmMark, setConfirmMark] = useState(false) const removeConfirm = useDebounceCallback( @@ -125,7 +106,6 @@ const DateItemInner: FC<{ return (
) } -const SocialMediaDateItem = ({ date, className }: { date: string; className?: string }) => { +const SocialMediaDateItem = ({ + date, + className, + isSticky, +}: { + date: string + className?: string + isSticky?: boolean +}) => { const { startOfDay, endOfDay, dateObj } = useParseDate(date) return ( @@ -187,7 +175,9 @@ const SocialMediaDateItem = ({ date, className }: { date: string; className?: st // @ts-expect-error Wrapper={useCallback( ({ children }) => ( -
{children}
+
+ {children} +
), [], )} @@ -195,6 +185,7 @@ const SocialMediaDateItem = ({ date, className }: { date: string; className?: st date={dateObj} startTime={startOfDay} endTime={endOfDay} + isSticky={isSticky} /> ) } diff --git a/apps/renderer/src/modules/entry-column/grid.tsx b/apps/renderer/src/modules/entry-column/grid.tsx new file mode 100644 index 000000000..cf1f4a919 --- /dev/null +++ b/apps/renderer/src/modules/entry-column/grid.tsx @@ -0,0 +1,286 @@ +import { useMobile } from "@follow/components/hooks/useMobile.js" +import { Button } from "@follow/components/ui/button/index.js" +import { useScrollViewElement } from "@follow/components/ui/scroll-area/hooks.js" +import { FeedViewType } from "@follow/constants" +import { useTypeScriptHappyCallback } from "@follow/hooks" +import { LRUCache } from "@follow/utils/lru-cache" +import type { Range, VirtualItem, Virtualizer } from "@tanstack/react-virtual" +import { useVirtualizer } from "@tanstack/react-virtual" +import type { FC } from "react" +import { Fragment, startTransition, useEffect, useMemo, useState } from "react" +import { useTranslation } from "react-i18next" + +import { setUISetting, useUISettingKey } from "~/atoms/settings/ui" +import { getEntry } from "~/store/entry" + +import { EntryItem, EntryItemSkeleton } from "./item" +import { PictureMasonry } from "./Items/picture-masonry" +import type { EntryListProps } from "./list" + +export const EntryColumnGrid: FC = (props) => { + const { entriesIds, feedId, hasNextPage, view, fetchNextPage } = props + + const isMobile = useMobile() + const masonry = useUISettingKey("pictureViewMasonry") || isMobile + + const filterNoImage = useUISettingKey("pictureViewFilterNoImage") + const nextData = useMemo(() => { + if (filterNoImage) { + return entriesIds.filter((entryId) => { + const entry = getEntry(entryId) + return entry?.entries.media?.length && entry.entries.media.length > 0 + }) + } + return entriesIds + }, [entriesIds, filterNoImage]) + const { t } = useTranslation() + if (nextData.length === 0 && entriesIds.length > 0) { + return ( +
+ +
+ {t("entry_column.filtered_content_tip")} +
+ + +
+ ) + } + + const hasFilteredContent = nextData.length < entriesIds.length + + const FilteredContentTip = hasFilteredContent && !hasNextPage && ( +
+ +
{t("entry_column.filtered_content_tip_2")}
+ + +
+ ) + + if (masonry && view === FeedViewType.Pictures) { + return ( + <> + + + {FilteredContentTip} + + ) + } + return ( + <> + + {FilteredContentTip} + + ) +} + +const capacity = 3 * 2 +const offsetCache = new LRUCache(capacity) +const measurementsCache = new LRUCache(capacity) + +const ratioMap = { + [FeedViewType.Pictures]: 1, + // 16:9 + [FeedViewType.Videos]: 16 / 9, +} +const VirtualGrid: FC = (props) => { + const { entriesIds, feedId, onRangeChange, fetchNextPage, view, Footer, hasNextPage, listRef } = + props + const scrollRef = useScrollViewElement() + + const [containerWidth, setContainerWidth] = useState(0) + + const columns = useMemo(() => { + if (!scrollRef) return [0] + + const width = containerWidth + const rem = Number.parseFloat(getComputedStyle(document.documentElement).fontSize) + let columnCount = 1 // default (grid-cols-1) + if (width >= 32 * rem) columnCount = 2 // @lg (32rem) + if (width >= 48 * rem) columnCount = 3 // @3xl (48rem) + if (width >= 72 * rem) columnCount = 4 // @6xl (72rem) + if (width >= 80 * rem) columnCount = 5 // @8xl (80rem) + + return Array.from({ length: columnCount }).fill(width / columnCount) as number[] + }, [containerWidth, scrollRef]) + + // Calculate rows based on entries + const rows = useMemo(() => { + const itemsPerRow = columns.length + const rowCount = Math.ceil(entriesIds.length / itemsPerRow) + return Array.from({ length: rowCount }, (_, index) => + entriesIds.slice(index * itemsPerRow, (index + 1) * itemsPerRow), + ) + }, [entriesIds, columns.length]) + + const rowCacheKey = `${feedId}-row` + const columnCacheKey = `${feedId}-column` + + const columnVirtualizer = useVirtualizer({ + horizontal: true, + count: columns.length, + getScrollElement: () => scrollRef, + estimateSize: (i) => columns[i], + overscan: 5, + initialOffset: offsetCache.get(columnCacheKey) ?? 0, + initialMeasurementsCache: measurementsCache.get(columnCacheKey) ?? [], + onChange: useTypeScriptHappyCallback( + (virtualizer: Virtualizer) => { + if (!virtualizer.isScrolling) { + measurementsCache.put(columnCacheKey, virtualizer.measurementsCache) + offsetCache.put(columnCacheKey, virtualizer.scrollOffset ?? 0) + } + }, + [columnCacheKey], + ), + }) + + const rowVirtualizer = useVirtualizer({ + count: rows.length + 1, + estimateSize: () => { + return columns[0] / ratioMap[view] + 58 + }, + overscan: 5, + gap: 8, + getScrollElement: () => scrollRef, + initialOffset: offsetCache.get(rowCacheKey) ?? 0, + initialMeasurementsCache: measurementsCache.get(rowCacheKey) ?? [], + paddingEnd: 32, + onChange: useTypeScriptHappyCallback( + (virtualizer: Virtualizer) => { + if (!virtualizer.isScrolling) { + measurementsCache.put(rowCacheKey, virtualizer.measurementsCache) + offsetCache.put(rowCacheKey, virtualizer.scrollOffset ?? 0) + } + + if (!virtualizer.range) return + + const columnCount = columns.length + const realRange = { + startIndex: virtualizer.range.startIndex * columnCount, + endIndex: virtualizer.range.endIndex * columnCount, + } + + onRangeChange?.(realRange as Range) + }, + [rowCacheKey, columns.length], + ), + }) + + useEffect(() => { + if (!listRef) return + listRef.current = rowVirtualizer + }, [rowVirtualizer, listRef]) + + useEffect(() => { + if (!scrollRef) return + const handler = () => { + const rem = Number.parseFloat(getComputedStyle(document.documentElement).fontSize) + const width = scrollRef.clientWidth - 2 * rem + setContainerWidth(width) + + rowVirtualizer.measure() + columnVirtualizer.measure() + } + + const observer = new ResizeObserver(handler) + observer.observe(scrollRef) + return () => { + observer.disconnect() + } + }, [columnVirtualizer, rowVirtualizer, scrollRef]) + + const virtualItems = rowVirtualizer.getVirtualItems() + useEffect(() => { + const lastItem = virtualItems.at(-1) + + if (!lastItem) { + return + } + + const isPlaceholderRow = lastItem.index === rows.length + + if (isPlaceholderRow && hasNextPage) { + fetchNextPage() + } + }, [fetchNextPage, hasNextPage, rows.length, virtualItems]) + + const [ready, setReady] = useState(false) + + useEffect(() => { + startTransition(() => { + setReady(true) + }) + }, []) + + return ( +
+ {rowVirtualizer.getVirtualItems().map((virtualRow) => { + const isLoaderRow = virtualRow.key === rows.length + if (isLoaderRow && ready) { + return ( +
+ {Footer ? typeof Footer === "function" ?
: Footer : null} + {hasNextPage && } +
+ ) + } + return ( + + {columnVirtualizer.getVirtualItems().map((virtualColumn) => ( +
+ {ready && ( + + )} +
+ ))} +
+ ) + })} +
+ ) +} diff --git a/apps/renderer/src/modules/entry-column/hooks.ts b/apps/renderer/src/modules/entry-column/hooks/useEntriesByView.ts similarity index 77% rename from apps/renderer/src/modules/entry-column/hooks.ts rename to apps/renderer/src/modules/entry-column/hooks/useEntriesByView.ts index 92ab94102..66486a41a 100644 --- a/apps/renderer/src/modules/entry-column/hooks.ts +++ b/apps/renderer/src/modules/entry-column/hooks/useEntriesByView.ts @@ -1,11 +1,9 @@ import { views } from "@follow/constants" import { useMutation } from "@tanstack/react-query" import { useCallback, useEffect, useMemo, useRef, useState } from "react" -import type { ListRange } from "react-virtuoso" -import { useDebounceCallback } from "usehooks-ts" import { useGeneralSettingKey } from "~/atoms/settings/general" -import { useRouteParams, useRouteParamsSelector } from "~/hooks/biz/useRouteParams" +import { useRouteParams } from "~/hooks/biz/useRouteParams" import { useAuthQuery } from "~/hooks/common" import { apiClient, apiFetch } from "~/lib/api-fetch" import { entries, useEntries } from "~/queries/entries" @@ -13,46 +11,7 @@ import { entryActions, getEntry, useEntryIdsByFeedIdOrView } from "~/store/entry import { useFolderFeedsByFeedId } from "~/store/subscription" import { feedUnreadActions } from "~/store/unread" -export const useEntryMarkReadHandler = (entriesIds: string[]) => { - const renderAsRead = useGeneralSettingKey("renderMarkUnread") - const scrollMarkUnread = useGeneralSettingKey("scrollMarkUnread") - const feedView = useRouteParamsSelector((params) => params.view) - - const handleMarkReadInRange = useDebounceCallback( - async ({ startIndex }: ListRange) => { - const idSlice = entriesIds?.slice(0, startIndex) - - if (!idSlice) return - batchMarkRead(idSlice) - }, - 500, - { leading: false }, - ) - - const handleRenderAsRead = useCallback( - async ({ startIndex, endIndex }: ListRange, enabled?: boolean) => { - if (!enabled) return - const idSlice = entriesIds?.slice(startIndex, endIndex) - - if (!idSlice) return - batchMarkRead(idSlice) - }, - [entriesIds], - ) - - return useMemo(() => { - if (views[feedView].wideMode && renderAsRead) { - return handleRenderAsRead - } - - if (scrollMarkUnread) { - return handleMarkReadInRange - } - return - }, [feedView, handleMarkReadInRange, handleRenderAsRead, renderAsRead, scrollMarkUnread]) -} const anyString = [] as string[] - export const useEntriesByView = ({ onReset, isArchived, @@ -144,20 +103,11 @@ export const useEntriesByView = ({ } if (!isFetchingFirstPage) { prevEntryIdsRef.current = entryIds - setMergedEntries({ ...mergedEntries, [view]: entryIds }) + onReset?.() } }, [isFetchingFirstPage, isArchived]) - const [mergedEntries, setMergedEntries] = useState>({ - 0: [], - 1: [], - 2: [], - 3: [], - 4: [], - 5: [], - }) - const entryIdsAsDeps = entryIds.toString() useEffect(() => { @@ -166,23 +116,22 @@ export const useEntriesByView = ({ useEffect(() => { if (!prevEntryIdsRef.current) { prevEntryIdsRef.current = entryIds - setMergedEntries({ ...mergedEntries, [view]: entryIds }) + return } // merge the new entries with the old entries, and unique them const nextIds = [...new Set([...prevEntryIdsRef.current, ...entryIds])] prevEntryIdsRef.current = nextIds - setMergedEntries({ ...mergedEntries, [view]: entryIds }) }, [entryIdsAsDeps]) const sortEntries = useMemo( () => isCollection - ? sortEntriesIdByStarAt(mergedEntries[view]) + ? sortEntriesIdByStarAt(entryIds) : listId - ? sortEntriesIdByEntryInsertedAt(mergedEntries[view]) - : sortEntriesIdByEntryPublishedAt(mergedEntries[view]), - [isCollection, listId, mergedEntries, view], + ? sortEntriesIdByEntryInsertedAt(entryIds) + : sortEntriesIdByEntryPublishedAt(entryIds), + [entryIds, isCollection, listId], ) const groupByDate = useGeneralSettingKey("groupByDate") @@ -230,26 +179,6 @@ export const useEntriesByView = ({ } } -export function batchMarkRead(ids: string[]) { - const batchLikeIds = [] as [string, string][] - const entriesId2Map = entryActions.getFlattenMapEntries() - for (const id of ids) { - const entry = entriesId2Map[id] - - if (!entry) continue - const isRead = entry.read - if (!isRead) { - batchLikeIds.push([entry.feedId, id]) - } - } - - if (batchLikeIds.length > 0) { - for (const [feedId, id] of batchLikeIds) { - entryActions.markRead({ feedId, entryId: id, read: true }) - } - } -} - function sortEntriesIdByEntryPublishedAt(entries: string[]) { const entriesId2Map = entryActions.getFlattenMapEntries() return entries diff --git a/apps/renderer/src/modules/entry-column/hooks/useEntryMarkReadHandler.tsx b/apps/renderer/src/modules/entry-column/hooks/useEntryMarkReadHandler.tsx new file mode 100644 index 000000000..47be0cac0 --- /dev/null +++ b/apps/renderer/src/modules/entry-column/hooks/useEntryMarkReadHandler.tsx @@ -0,0 +1,61 @@ +import { views } from "@follow/constants" +import type { Range } from "@tanstack/react-virtual" +import { useMemo } from "react" +import { useEventCallback } from "usehooks-ts" + +import { useGeneralSettingKey } from "~/atoms/settings/general" +import { useRouteParamsSelector } from "~/hooks/biz/useRouteParams" +import { entryActions } from "~/store/entry" + +export const useEntryMarkReadHandler = (entriesIds: string[]) => { + const renderAsRead = useGeneralSettingKey("renderMarkUnread") + const scrollMarkUnread = useGeneralSettingKey("scrollMarkUnread") + const feedView = useRouteParamsSelector((params) => params.view) + + const indexKeyIsCalled = useMemo(() => new Set(), [entriesIds]) + + const handleRenderAsRead = useEventCallback( + ({ startIndex, endIndex }: Range, enabled?: boolean) => { + if (!enabled) return + if (indexKeyIsCalled.has(`${startIndex}-${endIndex}`)) return + const idSlice = entriesIds?.slice(startIndex, endIndex) + + indexKeyIsCalled.add(`${startIndex}-${endIndex}`) + + if (!idSlice) return + + batchMarkRead(idSlice) + }, + ) + + return useMemo(() => { + if (views[feedView].wideMode && renderAsRead) { + return handleRenderAsRead + } + + if (scrollMarkUnread) { + return handleRenderAsRead + } + return + }, [feedView, handleRenderAsRead, renderAsRead, scrollMarkUnread]) +} + +export function batchMarkRead(ids: string[]) { + const batchLikeIds = [] as [string, string][] + const entriesId2Map = entryActions.getFlattenMapEntries() + for (const id of ids) { + const entry = entriesId2Map[id] + + if (!entry) continue + const isRead = entry.read + if (!isRead) { + batchLikeIds.push([entry.feedId, id]) + } + } + + if (batchLikeIds.length > 0) { + for (const [feedId, id] of batchLikeIds) { + entryActions.markRead({ feedId, entryId: id, read: true }) + } + } +} diff --git a/apps/renderer/src/modules/entry-column/index.tsx b/apps/renderer/src/modules/entry-column/index.tsx index 8cb18cd95..72ac94e57 100644 --- a/apps/renderer/src/modules/entry-column/index.tsx +++ b/apps/renderer/src/modules/entry-column/index.tsx @@ -1,63 +1,40 @@ import { useMobile } from "@follow/components/hooks/useMobile.js" import { Button } from "@follow/components/ui/button/index.js" import { FeedViewType, views } from "@follow/constants" -import { useTitle, useTypeScriptHappyCallback } from "@follow/hooks" +import { useTitle } from "@follow/hooks" import type { FeedModel } from "@follow/models/types" import { isBizId } from "@follow/utils/utils" -import type { FunctionComponent } from "react" -import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react" +import type { Range, Virtualizer } from "@tanstack/react-virtual" +import { memo, useCallback, useEffect, useRef, useState } from "react" import { useTranslation } from "react-i18next" -import type { - ScrollSeekConfiguration, - VirtuosoGridProps, - VirtuosoHandle, - VirtuosoProps, -} from "react-virtuoso" -import { VirtuosoGrid } from "react-virtuoso" import { useGeneralSettingKey } from "~/atoms/settings/general" -import { setUISetting, useUISettingKey } from "~/atoms/settings/ui" import { FeedFoundCanBeFollowError } from "~/components/errors/FeedFoundCanBeFollowErrorFallback" import { FeedNotFound } from "~/components/errors/FeedNotFound" -import { ReactVirtuosoItemPlaceholder } from "~/components/ui/placeholder" import { FEED_COLLECTION_LIST, ROUTE_FEED_PENDING } from "~/constants" -import { ENTRY_COLUMN_LIST_SCROLLER_ID } from "~/constants/dom" import { useNavigateEntry } from "~/hooks/biz/useNavigateEntry" import { useRouteParams, useRouteParamsSelector } from "~/hooks/biz/useRouteParams" import { useFeed } from "~/queries/feed" -import { entryActions, getEntry, useEntry } from "~/store/entry" +import { entryActions, useEntry } from "~/store/entry" import { useFeedById, useFeedHeaderTitle } from "~/store/feed" import { useSubscriptionByFeedId } from "~/store/subscription" -import { useEntriesByView, useEntryMarkReadHandler } from "./hooks" +import { EntryColumnGrid } from "./grid" +import { useEntriesByView } from "./hooks/useEntriesByView" import { useSnapEntryIdList } from "./hooks/useEntryIdListSnap" -import { EntryItem, EntryItemSkeleton } from "./item" -import { PictureMasonry } from "./Items/picture-masonry" +import { useEntryMarkReadHandler } from "./hooks/useEntryMarkReadHandler" import { EntryListHeader } from "./layouts/EntryListHeader" -import { EntryEmptyList, EntryList, EntryListContent } from "./lists" -import { girdClassNames } from "./styles" +import { EntryEmptyList, EntryList } from "./list" import { EntryColumnWrapper } from "./wrapper" -const scrollSeekConfiguration: ScrollSeekConfiguration = { - enter: (velocity) => Math.abs(velocity) > 1000, - exit: (velocity) => Math.abs(velocity) < 1000, -} - -const prevScrollTopMap = {} - -export type VirtuosoComponentProps = { onlyShowArchivedButton: boolean } -type VirtuosoComponentPropsContext = { context?: VirtuosoComponentProps } - function EntryColumnImpl() { const { t } = useTranslation() - const virtuosoRef = useRef(null) const [isArchived, setIsArchived] = useState(false) const unreadOnly = useGeneralSettingKey("unreadOnly") + const listRef = useRef>() const entries = useEntriesByView({ onReset: useCallback(() => { - virtuosoRef.current?.scrollTo({ - top: 0, - }) + listRef.current?.scrollToIndex(0) }, []), isArchived, }) @@ -128,79 +105,54 @@ function EntryColumnImpl() { } }, [shouldLoadArchivedEntries]) - const scrollRef = useRef(null) + const handleScroll = useCallback(() => { + if (!isInteracted.current) { + isInteracted.current = true + } - const handleScroll = useCallback( - (e: React.UIEvent) => { - if (!isInteracted.current) { - isInteracted.current = true - } - const { scrollTop } = e.currentTarget + if (!routeFeedId) return - if (!routeFeedId) return - prevScrollTopMap[routeFeedId] = scrollTop - }, - [routeFeedId], - ) - - const virtuosoOptions = { - components: { - List: EntryListContent, - Footer: useCallback( - ({ context }: VirtuosoComponentPropsContext) => { - if (!isFetchingNextPage) { - if (showArchivedButton) { - return ( -
- -
- ) - } else { - return null - } - } else { - if (context?.onlyShowArchivedButton) return null - return ( - - ) - } - }, - [isFetchingNextPage, showArchivedButton, t, view, entries.data?.pages], - ), - ScrollSeekPlaceholder: useCallback(() => , [view]), - }, - scrollSeekConfiguration, - rangeChanged: (...args: any[]) => { - handleMarkReadInRange && - // @ts-expect-error - handleMarkReadInRange(...args, isInteracted.current) - }, - customScrollParent: scrollRef.current!, - initialScrollTop: prevScrollTopMap[routeFeedId || ""] || 0, - - endReached: useCallback(async () => { - if (!entries.isFetchingNextPage && entries.hasNextPage) { - await entries.fetchNextPage() - } - }, [entries]), - data: entriesIds, - onScroll: handleScroll, - itemContent: useTypeScriptHappyCallback( - (_, entryId) => { - if (!entryId) return - - return - }, - [view], - ), - } satisfies VirtuosoProps + const [first, second] = rangeQueueRef.current + if (first && second && second.startIndex - first.startIndex > 0) { + handleMarkReadInRange?.( + { + startIndex: first.startIndex, + endIndex: second.startIndex, + } as Range, + isInteracted.current, + ) + } + }, [handleMarkReadInRange, routeFeedId]) const navigate = useNavigateEntry() + const rangeQueueRef = useRef([]) const isRefreshing = entries.isFetching && !entries.isFetchingNextPage + const renderAsRead = useGeneralSettingKey("renderMarkUnread") + const handleRangeChange = useCallback( + (e: Range) => { + rangeQueueRef.current.push(e) + if (rangeQueueRef.current.length > 2) { + rangeQueueRef.current.shift() + } + if (!renderAsRead) return + if (!views[view].wideMode) { + return + } + // For gird, render as mark read logic + handleMarkReadInRange?.(e, isInteracted.current) + }, + [handleMarkReadInRange, renderAsRead, view], + ) + + const fetchNextPage = useCallback(() => { + if (entries.hasNextPage && !entries.isFetchingNextPage) { + entries.fetchNextPage() + } + }, [entries]) const isMobile = useMobile() + + const ListComponent = views[view].gridMode ? EntryColumnGrid : EntryList return (
- {virtuosoOptions.data.length === 0 && - !entries.isLoading && - !entries.error && - feed?.type === "feed" && } + {entriesIds.length === 0 && !entries.isLoading && !entries.error && feed?.type === "feed" && ( + + )} - {virtuosoOptions.data.length === 0 && !showArchivedButton ? ( + {entriesIds.length === 0 && !showArchivedButton ? ( entries.isLoading ? null : ( ) - ) : view && views[view].gridMode ? ( - ) : ( - + +
+ ) : null + } /> )} @@ -253,105 +213,6 @@ function EntryColumnImpl() { ) } -const ListGird = ({ - virtuosoOptions, - virtuosoRef, - hasNextPage, -}: { - virtuosoOptions: Omit< - VirtuosoGridProps, - "data" | "endReached" - > & { - data: string[] - endReached: () => Promise - } - virtuosoRef: React.RefObject - hasNextPage: boolean -}) => { - const isMobile = useMobile() - const masonry = useUISettingKey("pictureViewMasonry") || isMobile - const view = useRouteParamsSelector((s) => s.view) - const feedId = useRouteParamsSelector((s) => s.feedId) - const filterNoImage = useUISettingKey("pictureViewFilterNoImage") - const nextData = useMemo(() => { - if (filterNoImage) { - return virtuosoOptions.data.filter((entryId) => { - const entry = getEntry(entryId) - return entry?.entries.media?.length && entry.entries.media.length > 0 - }) - } - return virtuosoOptions.data - }, [virtuosoOptions.data, filterNoImage]) - const { t } = useTranslation() - if (nextData.length === 0 && virtuosoOptions.data.length > 0) { - return ( -
- -
- {t("entry_column.filtered_content_tip")} -
- - -
- ) - } - - const hasFilteredContent = nextData.length < virtuosoOptions.data.length - - const FilteredContentTip = hasFilteredContent && !hasNextPage && ( -
- -
{t("entry_column.filtered_content_tip_2")}
- - -
- ) - - if (masonry && view === FeedViewType.Pictures) { - return ( - <> - virtuosoOptions.data.length} - endReached={virtuosoOptions.endReached} - data={nextData} - /> - - {virtuosoOptions.components?.Footer && - (virtuosoOptions.components.Footer as FunctionComponent)({ - context: { onlyShowArchivedButton: true }, - })} - - {FilteredContentTip} - - ) - } - return ( - <> - - {FilteredContentTip} - - ) -} - const AddFeedHelper = () => { const feedId = useRouteParamsSelector((s) => s.feedId) const feedQuery = useFeed({ id: feedId }) diff --git a/apps/renderer/src/modules/entry-column/item-stateless.tsx b/apps/renderer/src/modules/entry-column/item-stateless.tsx new file mode 100644 index 000000000..cbd096eb5 --- /dev/null +++ b/apps/renderer/src/modules/entry-column/item-stateless.tsx @@ -0,0 +1,30 @@ +import { FeedViewType } from "@follow/constants" +import type { FC } from "react" +import { memo } from "react" + +import { ArticleItemStateLess } from "./Items/article-item" +import { AudioItemStateLess } from "./Items/audio-item" +import { NotificationItemStateLess } from "./Items/notification-item" +import { PictureItemStateLess } from "./Items/picture-item-stateless" +import { SocialMediaItemStateLess } from "./Items/social-media-item" +import { VideoItemStateLess } from "./Items/video-item" +import type { EntryItemStatelessProps } from "./types" + +const StatelessItemMap = { + [FeedViewType.Articles]: ArticleItemStateLess, + [FeedViewType.SocialMedia]: SocialMediaItemStateLess, + [FeedViewType.Pictures]: PictureItemStateLess, + [FeedViewType.Videos]: VideoItemStateLess, + [FeedViewType.Audios]: AudioItemStateLess, + [FeedViewType.Notifications]: NotificationItemStateLess, +} + +const getStatelessItemComponentByView = (view: FeedViewType) => { + return StatelessItemMap[view] || ArticleItemStateLess +} + +export const EntryItemStateless: FC = memo((props) => { + const Item = getStatelessItemComponentByView(props.view as FeedViewType) + + return +}) diff --git a/apps/renderer/src/modules/entry-column/item.tsx b/apps/renderer/src/modules/entry-column/item.tsx index 4c622fa92..9fd7a405f 100644 --- a/apps/renderer/src/modules/entry-column/item.tsx +++ b/apps/renderer/src/modules/entry-column/item.tsx @@ -11,14 +11,10 @@ import type { FlatEntryModel } from "~/store/entry" import { useEntry } from "~/store/entry/hooks" import { ReactVirtuosoItemPlaceholder } from "../../components/ui/placeholder" -import { - getItemComponentByView, - getSkeletonItemComponentByView, - getStatelessItemComponentByView, -} from "./Items" +import { getItemComponentByView, getSkeletonItemComponentByView } from "./Items" import { EntryItemWrapper } from "./layouts/EntryItemWrapper" import { girdClassNames } from "./styles" -import type { EntryItemStatelessProps, EntryListItemFC } from "./types" +import type { EntryListItemFC } from "./types" interface EntryItemProps { entryId: string @@ -57,12 +53,6 @@ export const EntryItem: FC = memo(({ entryId, view }) => { return }) -export const EntryItemStateless: FC = memo((props) => { - const Item = getStatelessItemComponentByView(props.view as FeedViewType) - - return -}) - const LoadingCircleFallback = (
diff --git a/apps/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx b/apps/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx index 687efe9a1..01a44b960 100644 --- a/apps/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx +++ b/apps/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx @@ -59,11 +59,14 @@ export const EntryItemWrapper: FC< (e) => { e.stopPropagation() + if (!asRead) { + entryActions.markRead({ feedId: entry.feedId, entryId: entry.entries.id, read: true }) + } navigate({ entryId: entry.entries.id, }) }, - [entry.entries.id, navigate], + [asRead, entry.entries.id, entry.feedId, navigate], ) const handleDoubleClick: React.MouseEventHandler = useCallback( () => entry.entries.url && window.open(entry.entries.url, "_blank"), @@ -74,6 +77,17 @@ export const EntryItemWrapper: FC< const contextMenuProps = useContextMenu({ onContextMenu: async (e) => { + const $target = e.target as HTMLElement + const selection = window.getSelection() + if (selection) { + const targetHasSelection = + selection?.toString().length > 0 && $target.contains(selection?.anchorNode) + if (targetHasSelection) { + e.stopPropagation() + return + } + } + e.preventDefault() setIsContextMenuOpen(true) await showContextMenu( @@ -123,7 +137,7 @@ export const EntryItemWrapper: FC< className={cn( "relative", asRead ? "text-zinc-700 dark:text-neutral-400" : "text-zinc-900 dark:text-neutral-300", - views[view as FeedViewType]?.wideMode ? "rounded-md" : "-mx-2 px-2", + views[view as FeedViewType]?.wideMode ? "rounded-md" : "px-2", "duration-200 hover:bg-theme-item-hover", (isActive || isContextMenuOpen) && "!bg-theme-item-active", itemClassName, diff --git a/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.mobile.tsx b/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.mobile.tsx index af54d1214..4a10e5874 100644 --- a/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.mobile.tsx +++ b/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.mobile.tsx @@ -64,13 +64,14 @@ export const EntryListHeader: FC = ({ refetch, isRefreshin const feed = useFeedById(feedId) const isList = !!listId + const showQuickTimeline = useGeneralSettingKey("showQuickTimeline") const containerRef = React.useRef(null) return (
= ({ refetch, isRefreshin
- + {showQuickTimeline && }
) } @@ -160,7 +161,7 @@ export const EntryListHeader: FC = ({ refetch, isRefreshin const FollowSubscriptionButton = () => { return ( } diff --git a/apps/renderer/src/modules/entry-column/layouts/TimelineTabs.tsx b/apps/renderer/src/modules/entry-column/layouts/TimelineTabs.tsx index 5de317add..642a3a935 100644 --- a/apps/renderer/src/modules/entry-column/layouts/TimelineTabs.tsx +++ b/apps/renderer/src/modules/entry-column/layouts/TimelineTabs.tsx @@ -8,7 +8,7 @@ import { useSubscriptionStore } from "~/store/subscription" export const TimelineTabs = () => { const routerParams = useRouteParams() - const { view, listId, inboxId } = routerParams + const { view, listId, inboxId, folderName } = routerParams const listsData = useSubscriptionStore( useCallback( @@ -22,16 +22,32 @@ export const TimelineTabs = () => { [view], ), ) + const categoriesData = useSubscriptionStore( + useCallback( + (state) => { + const categoryNames = new Set() + for (const subId of state.feedIdByView[view]) { + const sub = state.data[subId] + if (sub.category) { + categoryNames.add(sub.category) + } + } + return Array.from(categoryNames) + }, + [view], + ), + ) const hasData = listsData.length > 0 || inboxData.length > 0 - const timeline = listId || inboxId || "" + const timeline = listId || inboxId || folderName || "" const navigate = useNavigateEntry() if (!hasData) return null return ( { if (!val) { @@ -43,12 +59,12 @@ export const TimelineTabs = () => { } }} > - - - Yours + + + Yours {listsData.map((s) => ( - + { /> ))} + {categoriesData.map((s) => ( + { + navigate({ + folderName: s, + }) + }} + > + + + {s} + + + ))} {inboxData.map((s) => ( - + ((props, ref) => ( +
+)) + +export const EntryEmptyList = forwardRef>((props, ref) => { + const unreadOnly = useGeneralSettingKey("unreadOnly") + const { t } = useTranslation() + return ( + + {unreadOnly ? ( + <> + + {t("entry_list.zero_unread")} + + ) : ( +
+ + {t("words.zero_items")} +
+ )} +
+ ) +}) + +export type EntryListProps = { + feedId: string + entriesIds: string[] + view: FeedViewType + + hasNextPage: boolean + fetchNextPage: () => void + refetch: () => void + + groupCounts?: number[] + gap?: number + + Footer?: FC | ReactNode + + onRangeChange?: (range: Range) => void + + listRef?: MutableRefObject | undefined> +} + +const capacity = 3 +const offsetCache = new LRUCache(capacity) +const measurementsCache = new LRUCache(capacity) +export const EntryList: FC = memo( + ({ + feedId, + view, + entriesIds, + fetchNextPage, + refetch, + hasNextPage, + groupCounts, + Footer, + listRef, + onRangeChange, + gap, + }) => { + // Prevent scroll list move when press up/down key, the up/down key should be taken over by the shortcut key we defined. + const handleKeyDown: React.KeyboardEventHandler = useCallback((e) => { + if (e.key === "ArrowDown" || e.key === "ArrowUp") { + e.preventDefault() + } + }, []) + + const scrollRef = useScrollViewElement() + + const stickyIndexes = useMemo( + () => + groupCounts + ? groupCounts.reduce( + (acc, count, index) => { + acc[index + 1] = acc[index] + count + return acc + }, + [0], + ) + : [], + [groupCounts], + ) + + const rowVirtualizer = useVirtualizer({ + count: entriesIds.length + 1, + estimateSize: () => 112, + overscan: 5, + gap, + getScrollElement: () => scrollRef, + initialOffset: offsetCache.get(feedId) ?? 0, + initialMeasurementsCache: measurementsCache.get(feedId) ?? [], + onChange: useTypeScriptHappyCallback( + (virtualizer: Virtualizer) => { + if (!virtualizer.isScrolling) { + measurementsCache.put(feedId, virtualizer.measurementsCache) + offsetCache.put(feedId, virtualizer.scrollOffset ?? 0) + } + + onRangeChange?.(virtualizer.range as Range) + }, + [feedId], + ), + rangeExtractor: useTypeScriptHappyCallback( + (range: Range) => { + activeStickyIndexRef.current = + [...stickyIndexes].reverse().find((index) => range.startIndex >= index) ?? 0 + + const next = new Set([activeStickyIndexRef.current, ...defaultRangeExtractor(range)]) + + return [...next].sort((a, b) => a - b) + }, + [stickyIndexes], + ), + }) + + useEffect(() => { + if (!listRef) return + listRef.current = rowVirtualizer + }, [rowVirtualizer, listRef]) + + const handleScrollTo = useEventCallback((index: number) => { + rowVirtualizer.scrollToIndex(index) + }) + + const activeStickyIndexRef = useRef(0) + const isActiveSticky = (index: number) => activeStickyIndexRef.current === index + const isSticky = (index: number) => stickyIndexes.includes(index) + + const virtualItems = rowVirtualizer.getVirtualItems() + useEffect(() => { + const lastItem = virtualItems.at(-1) + + if (!lastItem) { + return + } + + const isPlaceholderRow = lastItem.index === entriesIds.length + + if (isPlaceholderRow && hasNextPage) { + fetchNextPage() + } + }, [entriesIds.length, fetchNextPage, hasNextPage, virtualItems]) + + const [isScrollTop, setIsScrollTop] = useState(true) + + useEffect(() => { + const $scrollRef = scrollRef + if (!$scrollRef) return + const handleScroll = () => { + setIsScrollTop($scrollRef.scrollTop <= 0) + } + $scrollRef.addEventListener("scroll", handleScroll) + + return () => { + $scrollRef.removeEventListener("scroll", handleScroll) + } + }, [scrollRef]) + + const [ready, setReady] = useState(false) + + useEffect(() => { + startTransition(() => { + setReady(true) + }) + }, []) + + return ( + <> +
+ {rowVirtualizer.getVirtualItems().map((virtualRow) => { + if (!ready) return null + // Last placeholder row + const isLoaderRow = virtualRow.index === entriesIds.length + + const transform = `translateY(${virtualRow.start}px)` + if (isLoaderRow) { + const Content = hasNextPage ? ( + + ) : Footer ? ( + typeof Footer === "function" ? ( +
+ ) : ( + Footer + ) + ) : null + + return ( +
+ {Content} +
+ ) + } + const activeSticky = isActiveSticky(virtualRow.index) + const sticky = isSticky(virtualRow.index) + return ( + + {sticky && ( +
+ +
+ )} +
+ +
+
+ ) + })} +
+ + + + ) + }, +) + +const EntryHeadDateItem: FC<{ + entryId: string + isSticky?: boolean +}> = memo(({ entryId, isSticky }) => { + const entry = useEntry(entryId) + + const routeParams = useRouteParams() + const { feedId, view } = routeParams + const isList = isListSubscription(feedId) + + if (!entry) return null + const date = new Date( + isList ? entry.entries.insertedAt : entry.entries.publishedAt, + ).toDateString() + return +}) + +EntryHeadDateItem.displayName = "EntryHeadDateItem" diff --git a/apps/renderer/src/modules/entry-column/lists.tsx b/apps/renderer/src/modules/entry-column/lists.tsx deleted file mode 100644 index 10a1c6f26..000000000 --- a/apps/renderer/src/modules/entry-column/lists.tsx +++ /dev/null @@ -1,156 +0,0 @@ -import { EmptyIcon } from "@follow/components/icons/empty.jsx" -import type { HTMLMotionProps } from "framer-motion" -import type { DOMAttributes, FC } from "react" -import { forwardRef, memo, useCallback } from "react" -import { useTranslation } from "react-i18next" -import type { VirtuosoHandle, VirtuosoProps } from "react-virtuoso" -import { GroupedVirtuoso, Virtuoso } from "react-virtuoso" - -import { useGeneralSettingKey } from "~/atoms/settings/general" -import { m } from "~/components/common/Motion" -import { ReactVirtuosoItemPlaceholder } from "~/components/ui/placeholder" -import { ENTRY_COLUMN_LIST_SCROLLER_ID } from "~/constants/dom" -import { useRouteParams } from "~/hooks/biz/useRouteParams" -import { useEntry } from "~/store/entry" -import { isListSubscription } from "~/store/subscription" - -import { DateItem } from "./components/DateItem" -import { EntryColumnShortcutHandler } from "./EntryColumnShortcutHandler" -import type { VirtuosoComponentProps } from "./index" - -export const EntryListContent = forwardRef((props, ref) => ( -
-)) - -export const EntryEmptyList = forwardRef>((props, ref) => { - const unreadOnly = useGeneralSettingKey("unreadOnly") - const { t } = useTranslation() - return ( - - {unreadOnly ? ( - <> - - {t("entry_list.zero_unread")} - - ) : ( -
- - {t("words.zero_items")} -
- )} -
- ) -}) - -type BaseEntryProps = { - virtuosoRef: React.RefObject - refetch: () => void -} -type EntryListProps = VirtuosoProps & { - groupCounts?: number[] -} & BaseEntryProps -export const EntryList: FC = memo( - ({ - virtuosoRef, - refetch, - groupCounts, - - ...virtuosoOptions - }) => { - // Prevent scroll list move when press up/down key, the up/down key should be taken over by the shortcut key we defined. - const handleKeyDown: React.KeyboardEventHandler = useCallback((e) => { - if (e.key === "ArrowDown" || e.key === "ArrowUp") { - e.preventDefault() - } - }, []) - - return ( - <> - {groupCounts ? ( - - ) : ( - - )} - - - ) - }, -) - -const EntryGroupedList = forwardRef< - VirtuosoHandle, - VirtuosoProps & - DOMAttributes & { - groupCounts: number[] - } ->(({ groupCounts, itemContent, onKeyDown, data, totalCount, ...virtuosoOptions }, ref) => ( - { - const entryId = getGetGroupDataIndex(groupCounts!, index, data!) - - return - }, - [groupCounts, data], - )} - groupCounts={groupCounts} - onKeyDown={onKeyDown} - {...virtuosoOptions} - itemContent={useCallback( - (index: number, _: number, __: string, c: any) => { - const entryId = data![index] - return itemContent?.(index, entryId, c) - }, - [itemContent, JSON.stringify(data)], - )} - /> -)) - -function getGetGroupDataIndex(groupCounts: number[], groupIndex: number, data: readonly T[]) { - // Get first grouped of data index - // - let sum = 0 - for (let i = 0; i < groupIndex; i++) { - sum += groupCounts[i] - } - return data[sum] -} - -const EntryHeadDateItem: FC<{ - entryId: string -}> = memo(({ entryId }) => { - const entry = useEntry(entryId) - - const routeParams = useRouteParams() - const { feedId, view } = routeParams - const isList = isListSubscription(feedId) - - if (!entry) return - const date = new Date( - isList ? entry.entries.insertedAt : entry.entries.publishedAt, - ).toDateString() - return -}) - -EntryHeadDateItem.displayName = "EntryHeadDateItem" diff --git a/apps/renderer/src/modules/entry-column/styles.ts b/apps/renderer/src/modules/entry-column/styles.ts index f3f087672..c0bf10de4 100644 --- a/apps/renderer/src/modules/entry-column/styles.ts +++ b/apps/renderer/src/modules/entry-column/styles.ts @@ -1 +1 @@ -export const girdClassNames = tw`grid grid-cols-1 @lg:grid-cols-2 @3xl:grid-cols-3 @6xl:grid-cols-4 @7xl:grid-cols-5 px-4 gap-1.5` +export const girdClassNames = tw`grid grid-cols-1 @lg:grid-cols-2 @3xl:grid-cols-3 @6xl:grid-cols-4 @7xl:grid-cols-5 gap-1.5` diff --git a/apps/renderer/src/modules/entry-column/templates/list-item-template.tsx b/apps/renderer/src/modules/entry-column/templates/list-item-template.tsx index c8ca5809a..99aec78dd 100644 --- a/apps/renderer/src/modules/entry-column/templates/list-item-template.tsx +++ b/apps/renderer/src/modules/entry-column/templates/list-item-template.tsx @@ -1,6 +1,7 @@ import { useMobile } from "@follow/components/hooks/useMobile.js" import { EllipsisHorizontalTextWithTooltip } from "@follow/components/ui/typography/index.js" -import { cn, isSafari } from "@follow/utils/utils" +import { clsx, cn, isSafari } from "@follow/utils/utils" +import { useMemo } from "react" import { AudioPlayer, useAudioPlayerAtomSelector } from "~/atoms/player" import { useRealInWideMode, useUISettingKey } from "~/atoms/settings/ui" @@ -55,14 +56,37 @@ export function ListItem({ const thumbnailRatio = useUISettingKey("thumbnailRatio") const rid = `list-item-${entryId}` + const lineClamp = useMemo(() => { + const envIsSafari = isSafari() + let lineClampTitle = settingWideMode ? 1 : 2 + let lineClampDescription = settingWideMode ? 1 : 2 + if (translation?.title) { + lineClampTitle += settingWideMode ? 1 : 2 + } + if (translation?.description) { + lineClampDescription += settingWideMode ? 1 : 2 + } + + // for tailwind + // line-clamp-[1] line-clamp-[2] line-clamp-[3] line-clamp-[4] line-clamp-[5] line-clamp-[6] line-clamp-[7] line-clamp-[8] + + // FIXME: Safari bug, not support line-clamp cross elements + return { + global: !envIsSafari ? `line-clamp-[${lineClampTitle + lineClampDescription}]` : "", + title: envIsSafari ? `line-clamp-[${lineClampTitle}]` : "", + description: envIsSafari ? `line-clamp-[${lineClampDescription}]` : "", + } + }, [translation?.title, translation?.description, settingWideMode]) + // NOTE: prevent 0 height element, react virtuoso will not stop render any more if (!entry || !(feed || inbox)) return const displayTime = inInCollection ? entry.collections?.createdAt : entry.entries.publishedAt - const envIsSafari = isSafari() const related = feed || inbox + const hasAudio = entry.entries?.attachments?.[0].url + return (
{entry.entries.title ? ( ) : ( @@ -134,9 +153,7 @@ export function ListItem({ )} > @@ -144,17 +161,26 @@ export function ListItem({ )}
- {withAudio && entry.entries?.attachments?.[0].url && ( + {withAudio && !!hasAudio && ( + } feed={feed || inbox} entry={entry.entries} size={settingWideMode ? 65 : 80} diff --git a/apps/renderer/src/modules/entry-column/translation.tsx b/apps/renderer/src/modules/entry-column/translation.tsx index a6ea34ca1..10db0ddcb 100644 --- a/apps/renderer/src/modules/entry-column/translation.tsx +++ b/apps/renderer/src/modules/entry-column/translation.tsx @@ -1,8 +1,5 @@ -import { ScrollArea } from "@follow/components/ui/scroll-area/index.js" -import { tooltipStyle } from "@follow/components/ui/tooltip/styles.js" -import { useMeasure } from "@follow/hooks" import { cn } from "@follow/utils/utils" -import * as HoverCard from "@radix-ui/react-hover-card" +import { useMemo } from "react" import { HTML } from "~/components/ui/markdown/HTML" @@ -10,83 +7,35 @@ export const EntryTranslation: Component<{ source?: string | null target?: string showTranslation?: boolean - - side?: "top" | "bottom" - - useOverlay?: boolean isHTML?: boolean -}> = ({ source, target, showTranslation, className, side, useOverlay, isHTML }) => { - let nextTarget = target - if (source === target) { - nextTarget = undefined - } +}> = ({ source, target, showTranslation = true, className, isHTML }) => { + const nextTarget = useMemo(() => { + if (!target || !showTranslation || source === target) { + return "" + } + return target + }, [source, target, showTranslation]) - const [ref, bounds] = useMeasure({ debounce: 60 }) + const content = useMemo(() => source + (nextTarget ? ` ${nextTarget}` : ""), [source, nextTarget]) if (!source) { return null } - if (nextTarget && showTranslation) { - return ( - - - - {isHTML ? ( - - {nextTarget} - - ) : ( - {nextTarget} - )} - - - - {useOverlay ? ( -
- - {isHTML ? ( - - {source} - - ) : ( - {source} - )} - -
- ) : isHTML ? ( - - {source} - - ) : ( - {source} - )} -
-
-
- ) - } - return isHTML ? ( - - {source} - - ) : ( -
{source}
+ return ( +
+ {nextTarget && } + {isHTML ? ( + + {content} + + ) : ( +
{content}
+ )} +
) } diff --git a/apps/renderer/src/modules/entry-column/wrapper.desktop.tsx b/apps/renderer/src/modules/entry-column/wrapper.desktop.tsx index cb9871f98..8aaba803e 100644 --- a/apps/renderer/src/modules/entry-column/wrapper.desktop.tsx +++ b/apps/renderer/src/modules/entry-column/wrapper.desktop.tsx @@ -6,14 +6,14 @@ import { forwardRef } from "react" import { useRouteParamsSelector } from "~/hooks/biz/useRouteParams" import type { EntryColumnWrapperProps } from "./wrapper.shared" -import { styles } from "./wrapper.shared" +import { animationStyles, styles } from "./wrapper.shared" export const EntryColumnWrapper = forwardRef( ({ children, onScroll }, ref) => { const view = useRouteParamsSelector((state) => state.view) return ( -
+
{} export const EntryColumnWrapper = forwardRef( - ({ children, onPullToRefresh }, ref) => { + ({ children, onPullToRefresh, onScroll }, ref) => { const view = useRouteParamsSelector((state) => state.view) const [scrollElement, setScrollElement] = useState(null) @@ -25,8 +25,8 @@ export const EntryColumnWrapper = forwardRef {children}
diff --git a/apps/renderer/src/modules/entry-column/wrapper.shared.tsx b/apps/renderer/src/modules/entry-column/wrapper.shared.tsx index 832333329..39222a4a1 100644 --- a/apps/renderer/src/modules/entry-column/wrapper.shared.tsx +++ b/apps/renderer/src/modules/entry-column/wrapper.shared.tsx @@ -1,4 +1,5 @@ -export const styles = tw`relative h-0 grow duration-200 ease-in-out animate-in fade-in slide-in-from-bottom-24 f-motion-reduce:fade-in-0 f-motion-reduce:slide-in-from-bottom-0` +export const styles = tw`relative h-0 grow` +export const animationStyles = tw`delay-100 duration-200 ease-in-out animate-in fade-in slide-in-from-bottom-24 f-motion-reduce:fade-in-0 f-motion-reduce:slide-in-from-bottom-0` export interface EntryColumnWrapperProps extends ComponentType { onScroll?: (e: React.UIEvent) => void diff --git a/apps/renderer/src/modules/entry-content/actions/electron-actions.tsx b/apps/renderer/src/modules/entry-content/actions/electron-actions.tsx new file mode 100644 index 000000000..3ece63cd3 --- /dev/null +++ b/apps/renderer/src/modules/entry-content/actions/electron-actions.tsx @@ -0,0 +1,122 @@ +import { ActionButton } from "@follow/components/ui/button/index.js" +import { DividerVertical } from "@follow/components/ui/divider/index.js" +import { FeedViewType, views } from "@follow/constants" +import type { CombinedEntryModel } from "@follow/models/types" +import { IN_ELECTRON } from "@follow/shared/constants" +import { cn } from "@follow/utils/utils" +import { noop } from "foxact/noop" +import { useMemo, useState } from "react" +import { useTranslation } from "react-i18next" + +import { AudioPlayer, getAudioPlayerAtomValue } from "~/atoms/player" +import { + isInReadability, + ReadabilityStatus, + useEntryInReadabilityStatus, +} from "~/atoms/readability" +import { shortcuts } from "~/constants/shortcuts" +import { useEntryReadabilityToggle } from "~/hooks/biz/useEntryActions" +import { tipcClient } from "~/lib/client" +import { parseHtml } from "~/lib/parse-html" +import type { FlatEntryModel } from "~/store/entry" +import { useFeedById } from "~/store/feed" + +export const ElectronAdditionActions = IN_ELECTRON + ? ({ + view = FeedViewType.Articles, + entry, + }: { + view: FeedViewType + entry?: FlatEntryModel | null + }) => { + const entryReadabilityStatus = useEntryInReadabilityStatus(entry?.entries.id) + + const { t } = useTranslation() + + const feed = useFeedById(entry?.feedId) + + const populatedEntry = useMemo(() => { + if (!entry) return null + if (!feed) return null + return { + ...entry, + feeds: feed!, + } as CombinedEntryModel + }, [entry, feed]) + + const readabilityToggle = useEntryReadabilityToggle({ + id: populatedEntry?.entries.id ?? "", + url: populatedEntry?.entries.url ?? "", + }) + + const [ttsLoading, setTtsLoading] = useState(false) + + if (!populatedEntry) return null + + const items = [ + { + key: "tts", + name: t("entry_content.header.play_tts"), + shortcut: shortcuts.entry.tts.key, + className: ttsLoading ? "i-mgc-loading-3-cute-re animate-spin" : "i-mgc-voice-cute-re", + + disabled: !populatedEntry.entries.content, + onClick: async () => { + if (ttsLoading) return + if (!populatedEntry.entries.content) return + setTtsLoading(true) + if (getAudioPlayerAtomValue().entryId === populatedEntry.entries.id) { + AudioPlayer.togglePlayAndPause() + } else { + const filePath = await tipcClient?.tts({ + id: populatedEntry.entries.id, + text: (await parseHtml(populatedEntry.entries.content)).toText(), + }) + if (filePath) { + AudioPlayer.mount({ + type: "audio", + entryId: populatedEntry.entries.id, + src: `file://${filePath}`, + currentTime: 0, + }) + } + } + setTtsLoading(false) + }, + }, + { + name: t("entry_content.header.readability"), + className: cn( + isInReadability(entryReadabilityStatus) + ? `i-mgc-docment-cute-fi` + : `i-mgc-docment-cute-re`, + entryReadabilityStatus === ReadabilityStatus.WAITING ? `animate-pulse` : "", + ), + key: "readability", + hide: views[view].wideMode || !populatedEntry.entries.url, + active: isInReadability(entryReadabilityStatus), + onClick: readabilityToggle, + }, + ] + + if (items.length === 0) return null + return ( + <> + {items + .filter((item) => !item.hide) + .map((item) => ( + } + active={item.active} + shortcut={item.shortcut} + onClick={item.onClick} + tooltip={item.name} + key={item.name} + /> + ))} + + + ) + } + : noop diff --git a/apps/renderer/src/modules/entry-content/actions/header-actions.tsx b/apps/renderer/src/modules/entry-content/actions/header-actions.tsx new file mode 100644 index 000000000..fa9125507 --- /dev/null +++ b/apps/renderer/src/modules/entry-content/actions/header-actions.tsx @@ -0,0 +1,50 @@ +import { ActionButton } from "@follow/components/ui/button/index.js" +import type { FeedViewType } from "@follow/constants" + +import { useHasModal } from "~/components/ui/modal/stacked/hooks" +import { shortcuts } from "~/constants/shortcuts" +import { useEntryActions } from "~/hooks/biz/useEntryActions" +import { COMMAND_ID } from "~/modules/command/commands/id" +import { useCommandHotkey } from "~/modules/command/hooks/use-register-hotkey" +import { useEntry } from "~/store/entry/hooks" + +export const EntryHeaderActions = ({ entryId, view }: { entryId: string; view?: FeedViewType }) => { + const actionConfigs = useEntryActions({ entryId, view }) + const entry = useEntry(entryId) + + const hasModal = useHasModal() + + useCommandHotkey({ + when: !!entry?.entries.url && !hasModal, + shortcut: shortcuts.entry.openInBrowser.key, + commandId: COMMAND_ID.entry.openInBrowser, + args: [{ entryId }], + }) + + return actionConfigs + .filter( + (item) => + !item.id.startsWith("integration") && + !( + [ + COMMAND_ID.entry.read, + COMMAND_ID.entry.unread, + COMMAND_ID.entry.copyLink, + COMMAND_ID.entry.openInBrowser, + ] as string[] + ).includes(item.id), + ) + .map((config) => { + return ( + + ) + }) +} diff --git a/apps/renderer/src/modules/entry-content/actions/image-gallery-actions.tsx b/apps/renderer/src/modules/entry-content/actions/image-gallery-actions.tsx new file mode 100644 index 000000000..4c2630528 --- /dev/null +++ b/apps/renderer/src/modules/entry-content/actions/image-gallery-actions.tsx @@ -0,0 +1,32 @@ +import { ActionButton } from "@follow/components/ui/button/index.js" +import type { MediaModel } from "@follow/models" + +import { useModalStack } from "~/components/ui/modal/stacked/hooks" +import { filterSmallMedia } from "~/lib/utils" +import { useEntry } from "~/store/entry" + +import { ImageGallery } from "./picture-gallery" + +export const ImageGalleryAction = ({ id }: { id: string }) => { + const images = useEntry(id, (entry) => entry.entries.media) + const { present } = useModalStack() + const filteredImages = filterSmallMedia(images) + if (filteredImages?.length && filteredImages.length > 5) { + return ( + { + window.analytics?.capture("entry_content_header_image_gallery_click") + present({ + title: "Image Gallery", + content: () => , + max: true, + clickOutsideToDismiss: true, + }) + }} + icon={} + tooltip={`Image Gallery`} + /> + ) + } + return null +} diff --git a/apps/renderer/src/modules/entry-content/actions/more-actions.tsx b/apps/renderer/src/modules/entry-content/actions/more-actions.tsx new file mode 100644 index 000000000..e007e3be0 --- /dev/null +++ b/apps/renderer/src/modules/entry-content/actions/more-actions.tsx @@ -0,0 +1,51 @@ +import { ActionButton } from "@follow/components/ui/button/index.js" +import type { FeedViewType } from "@follow/constants" +import { useMemo } from "react" + +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuTrigger, +} from "~/components/ui/dropdown-menu/dropdown-menu" +import { useEntryActions } from "~/hooks/biz/useEntryActions" +import { COMMAND_ID } from "~/modules/command/commands/id" + +export const MoreActions = ({ entryId, view }: { entryId: string; view?: FeedViewType }) => { + const actionConfigs = useEntryActions({ entryId, view }) + const availableActions = useMemo( + () => + actionConfigs.filter( + (item) => + item.id.startsWith("integration") || + ([COMMAND_ID.entry.copyLink, COMMAND_ID.entry.openInBrowser] as string[]).includes( + item.id, + ), + ), + [actionConfigs], + ) + + if (availableActions.length === 0) { + return null + } + + return ( + + + } /> + + + {availableActions.map((config) => ( + + {config.name} + + ))} + + + ) +} diff --git a/apps/renderer/src/modules/entry-content/components/EntryReadHistory.shared.tsx b/apps/renderer/src/modules/entry-content/components/EntryReadHistory.shared.tsx index cb0ccbb02..c1ea44be7 100644 --- a/apps/renderer/src/modules/entry-content/components/EntryReadHistory.shared.tsx +++ b/apps/renderer/src/modules/entry-content/components/EntryReadHistory.shared.tsx @@ -7,6 +7,7 @@ import { } from "@follow/components/ui/tooltip/index.jsx" import { EllipsisHorizontalTextWithTooltip } from "@follow/components/ui/typography/index.js" import { FeedViewType } from "@follow/constants" +import { getNameInitials } from "@follow/utils/cjk" import { m } from "framer-motion" import { memo } from "react" import { useTranslation } from "react-i18next" @@ -51,7 +52,7 @@ export const EntryUserRow: Component<{ userId: string }> = memo(({ userId }) => > - {user.name?.slice(0, 2)} + {getNameInitials(user.name || "")} {user.name && ( @@ -94,7 +95,7 @@ export const EntryUser: Component<{ src={replaceImgUrlIfNeed(user?.image || undefined)} className="bg-theme-placeholder-image" /> - {user.name?.slice(0, 2)} + {getNameInitials(user.name || "")} diff --git a/apps/renderer/src/modules/entry-content/components/EntryTitle.tsx b/apps/renderer/src/modules/entry-content/components/EntryTitle.tsx index a2698b372..7b135bb9c 100644 --- a/apps/renderer/src/modules/entry-content/components/EntryTitle.tsx +++ b/apps/renderer/src/modules/entry-content/components/EntryTitle.tsx @@ -98,7 +98,6 @@ export const EntryTitle = ({ entryId, compact }: EntryLinkProps) => { source={entry.entries.title} target={translation.data?.title} className="select-text" - useOverlay />
diff --git a/apps/renderer/src/modules/entry-content/header.desktop.tsx b/apps/renderer/src/modules/entry-content/header.desktop.tsx index 06b1ecfc7..5e39de691 100644 --- a/apps/renderer/src/modules/entry-content/header.desktop.tsx +++ b/apps/renderer/src/modules/entry-content/header.desktop.tsx @@ -1,76 +1,18 @@ -import { ActionButton } from "@follow/components/ui/button/index.js" -import { DividerVertical } from "@follow/components/ui/divider/index.js" -import { FeedViewType, views } from "@follow/constants" -import type { CombinedEntryModel } from "@follow/models/types" -import { IN_ELECTRON } from "@follow/shared/constants" +import { views } from "@follow/constants" import { cn } from "@follow/utils/utils" -import { noop } from "foxact/noop" import { AnimatePresence, m } from "framer-motion" -import { memo, useMemo, useState } from "react" -import { useTranslation } from "react-i18next" +import { memo } from "react" -import { AudioPlayer, getAudioPlayerAtomValue } from "~/atoms/player" -import { - isInReadability, - ReadabilityStatus, - useEntryInReadabilityStatus, -} from "~/atoms/readability" import { useUISettingKey } from "~/atoms/settings/ui" -import { useHasModal } from "~/components/ui/modal/stacked/hooks" -import { shortcuts } from "~/constants/shortcuts" -import { useEntryActions, useEntryReadabilityToggle } from "~/hooks/biz/useEntryActions" -import { tipcClient } from "~/lib/client" -import { parseHtml } from "~/lib/parse-html" -import type { FlatEntryModel } from "~/store/entry" import { useEntry } from "~/store/entry/hooks" -import { useFeedById } from "~/store/feed" -import { COMMAND_ID } from "../command/commands/id" -import { useCommandHotkey } from "../command/hooks/use-register-hotkey" +import { ElectronAdditionActions } from "./actions/electron-actions" +import { EntryHeaderActions } from "./actions/header-actions" +import { ImageGalleryAction } from "./actions/image-gallery-actions" +import { MoreActions } from "./actions/more-actions" import { useEntryContentScrollToTop, useEntryTitleMeta } from "./atoms" import { EntryReadHistory } from "./components/EntryReadHistory" import type { EntryHeaderProps } from "./header.shared" -import { EntryHeaderSpecialActions } from "./header.shared" - -const EntryHeaderActions = ({ entryId, view }: { entryId: string; view?: FeedViewType }) => { - const actionConfigs = useEntryActions({ entryId, view }) - const entry = useEntry(entryId) - - const hasModal = useHasModal() - - useCommandHotkey({ - when: !!entry?.entries.url && !hasModal, - shortcut: shortcuts.entry.openInBrowser.key, - commandId: COMMAND_ID.entry.openInBrowser, - args: [{ entryId }], - }) - - return actionConfigs - .filter( - (item) => - !( - [ - COMMAND_ID.entry.read, - COMMAND_ID.entry.unread, - COMMAND_ID.entry.copyLink, - COMMAND_ID.entry.openInBrowser, - ] as string[] - ).includes(item.id), - ) - .map((config) => { - return ( - - ) - }) -} function EntryHeaderImpl({ view, entryId, className, compact }: EntryHeaderProps) { const entry = useEntry(entryId) @@ -117,9 +59,11 @@ function EntryHeaderImpl({ view, entryId, className, compact }: EntryHeaderProps exit={{ opacity: 0.01, y: 30 }} className="flex min-w-0 shrink items-end gap-2 truncate text-sm leading-tight text-theme-foreground" > - {entryTitleMeta.title} + + {entryTitleMeta.title} + - + {entryTitleMeta.description} @@ -130,112 +74,13 @@ function EntryHeaderImpl({ view, entryId, className, compact }: EntryHeaderProps
{!compact && } - + +
) } -const ElectronAdditionActions = IN_ELECTRON - ? ({ - view = FeedViewType.Articles, - entry, - }: { - view: FeedViewType - entry?: FlatEntryModel | null - }) => { - const entryReadabilityStatus = useEntryInReadabilityStatus(entry?.entries.id) - - const { t } = useTranslation() - - const feed = useFeedById(entry?.feedId) - - const populatedEntry = useMemo(() => { - if (!entry) return null - if (!feed) return null - return { - ...entry, - feeds: feed!, - } as CombinedEntryModel - }, [entry, feed]) - - const readabilityToggle = useEntryReadabilityToggle({ - id: populatedEntry?.entries.id ?? "", - url: populatedEntry?.entries.url ?? "", - }) - - const [ttsLoading, setTtsLoading] = useState(false) - - if (!populatedEntry) return null - - const items = [ - { - key: "tts", - name: t("entry_content.header.play_tts"), - shortcut: shortcuts.entry.tts.key, - className: ttsLoading ? "i-mgc-loading-3-cute-re animate-spin" : "i-mgc-voice-cute-re", - - disabled: !populatedEntry.entries.content, - onClick: async () => { - if (ttsLoading) return - if (!populatedEntry.entries.content) return - setTtsLoading(true) - if (getAudioPlayerAtomValue().entryId === populatedEntry.entries.id) { - AudioPlayer.togglePlayAndPause() - } else { - const filePath = await tipcClient?.tts({ - id: populatedEntry.entries.id, - text: (await parseHtml(populatedEntry.entries.content)).toText(), - }) - if (filePath) { - AudioPlayer.mount({ - type: "audio", - entryId: populatedEntry.entries.id, - src: `file://${filePath}`, - currentTime: 0, - }) - } - } - setTtsLoading(false) - }, - }, - { - name: t("entry_content.header.readability"), - className: cn( - isInReadability(entryReadabilityStatus) - ? `i-mgc-docment-cute-fi` - : `i-mgc-docment-cute-re`, - entryReadabilityStatus === ReadabilityStatus.WAITING ? `animate-pulse` : "", - ), - key: "readability", - hide: views[view].wideMode || !populatedEntry.entries.url, - active: isInReadability(entryReadabilityStatus), - onClick: readabilityToggle, - }, - ] - - if (items.length === 0) return null - return ( - <> - {items - .filter((item) => !item.hide) - .map((item) => ( - } - active={item.active} - shortcut={item.shortcut} - onClick={item.onClick} - tooltip={item.name} - key={item.name} - /> - ))} - - - ) - } - : noop - export const EntryHeader = memo(EntryHeaderImpl) diff --git a/apps/renderer/src/modules/entry-content/header.mobile.tsx b/apps/renderer/src/modules/entry-content/header.mobile.tsx index bb8e9d086..f39949736 100644 --- a/apps/renderer/src/modules/entry-content/header.mobile.tsx +++ b/apps/renderer/src/modules/entry-content/header.mobile.tsx @@ -62,10 +62,12 @@ function EntryHeaderImpl({ view, entryId, className }: EntryHeaderProps) { className="pointer-events-auto flex w-full min-w-0 shrink gap-2 truncate px-1.5 pl-10 text-sm leading-tight text-theme-foreground duration-200" >
-
- {entryTitleMeta.title} +
+ + {entryTitleMeta.title} + - + {entryTitleMeta.description}
diff --git a/apps/renderer/src/modules/entry-content/header.shared.tsx b/apps/renderer/src/modules/entry-content/header.shared.tsx index 8a5b8f583..c714154fd 100644 --- a/apps/renderer/src/modules/entry-content/header.shared.tsx +++ b/apps/renderer/src/modules/entry-content/header.shared.tsx @@ -1,38 +1,6 @@ -import { ActionButton } from "@follow/components/ui/button/index.js" -import type { MediaModel } from "@follow/models" - -import { useModalStack } from "~/components/ui/modal/stacked/hooks" -import { filterSmallMedia } from "~/lib/utils" -import { useEntry } from "~/store/entry" - -import { ImageGallery } from "./actions/picture-gallery" - export interface EntryHeaderProps { view: number entryId: string className?: string compact?: boolean } -export const EntryHeaderSpecialActions = ({ id }: { id: string }) => { - const images = useEntry(id, (entry) => entry.entries.media) - const { present } = useModalStack() - const filteredImages = filterSmallMedia(images) - if (filteredImages?.length && filteredImages.length > 5) { - return ( - { - window.analytics?.capture("entry_content_header_image_gallery_click") - present({ - title: "Image Gallery", - content: () => , - max: true, - clickOutsideToDismiss: true, - }) - }} - icon={} - tooltip={`Image Gallery`} - /> - ) - } - return null -} diff --git a/apps/renderer/src/modules/entry-content/index.mobile.tsx b/apps/renderer/src/modules/entry-content/index.mobile.tsx index 247d222db..82f84b1b6 100644 --- a/apps/renderer/src/modules/entry-content/index.mobile.tsx +++ b/apps/renderer/src/modules/entry-content/index.mobile.tsx @@ -130,7 +130,7 @@ export const EntryContent: Component<{ compact={compact} />
{!hideRecentReader && ( diff --git a/apps/renderer/src/modules/feed-column/index.tsx b/apps/renderer/src/modules/feed-column/index.tsx index 23fb202a1..d1e8eb75b 100644 --- a/apps/renderer/src/modules/feed-column/index.tsx +++ b/apps/renderer/src/modules/feed-column/index.tsx @@ -169,7 +169,7 @@ export function FeedColumn({ children, className }: PropsWithChildren<{ classNam onPointerDown={useTypeScriptHappyCallback((e) => { if (!(e.target instanceof HTMLElement) || !e.target.closest("[data-feed-id]")) { const nextSelectedFeedIds = getSelectedFeedIds() - if (nextSelectedFeedIds.length > 0) { + if (nextSelectedFeedIds.length === 0) { setSelectedFeedIds(nextSelectedFeedIds) } else { resetSelectedFeedIds() diff --git a/apps/renderer/src/modules/feed-column/list.shared.tsx b/apps/renderer/src/modules/feed-column/list.shared.tsx index 75023b2c2..88b1e51d4 100644 --- a/apps/renderer/src/modules/feed-column/list.shared.tsx +++ b/apps/renderer/src/modules/feed-column/list.shared.tsx @@ -167,16 +167,16 @@ export const ListHeader = ({ view }: { view: number }) => { } const SORT_LIST = [ - { icon: "i-mgc-sort-ascending-cute-re", by: "count", order: "asc" }, - { icon: "i-mgc-sort-descending-cute-re", by: "count", order: "desc" }, + { icon: tw`i-mgc-numbers-90-sort-ascending-cute-re`, by: "count", order: "asc" }, + { icon: tw`i-mgc-numbers-90-sort-descending-cute-re`, by: "count", order: "desc" }, { - icon: "i-mgc-az-sort-descending-letters-cute-re", + icon: tw`i-mgc-az-sort-descending-letters-cute-re`, by: "alphabetical", order: "asc", }, { - icon: "i-mgc-az-sort-ascending-letters-cute-re", + icon: tw`i-mgc-az-sort-ascending-letters-cute-re`, by: "alphabetical", order: "desc", }, @@ -207,8 +207,8 @@ const SortButton = () => {
- {t("feed_item.claimed_feed")} + {type === "feed" ? t("feed_item.claimed_feed") : t("feed_item.claimed_list")}
{t("feed_item.claimed_by_you")}
@@ -54,7 +55,7 @@ export const FeedCertification = ({
- {t("feed_item.claimed_feed")} + {type === "feed" ? t("feed_item.claimed_feed") : t("feed_item.claimed_list")}
{t("feed_item.claimed_by_owner")} diff --git a/apps/renderer/src/modules/feed/feed-icon.tsx b/apps/renderer/src/modules/feed/feed-icon.tsx index d189de18a..f66ed221f 100644 --- a/apps/renderer/src/modules/feed/feed-icon.tsx +++ b/apps/renderer/src/modules/feed/feed-icon.tsx @@ -76,6 +76,8 @@ const fadeInVariant = { initial: { opacity: 0 }, animate: { opacity: 1 }, } + +const isIconLoadedSet = new Set() export function FeedIcon({ feed, entry, @@ -83,6 +85,7 @@ export function FeedIcon({ className, size = 20, fallback = true, + fallbackElement, siteUrl, useMedia, disableFadeIn, @@ -98,6 +101,7 @@ export function FeedIcon({ * Image loading error fallback to site icon */ fallback?: boolean + fallbackElement?: ReactNode useMedia?: boolean disableFadeIn?: boolean @@ -163,9 +167,12 @@ export function FeedIcon({ }) finalSrc = src + const isIconLoaded = isIconLoadedSet.has(src) + isIconLoadedSet.add(src) + ImageElement = ( - + ) break @@ -176,12 +183,15 @@ export function FeedIcon({ width: size * 2, height: size * 2, }) + const isIconLoaded = isIconLoadedSet.has(finalSrc) + isIconLoadedSet.add(finalSrc) + ImageElement = ( ) @@ -243,7 +253,7 @@ export function FeedIcon({ {ImageElement} - {fallbackIcon} + {fallbackElement || fallbackIcon} ) diff --git a/apps/renderer/src/modules/feed/feed-title.tsx b/apps/renderer/src/modules/feed/feed-title.tsx index 597761d17..fb1479c00 100644 --- a/apps/renderer/src/modules/feed/feed-title.tsx +++ b/apps/renderer/src/modules/feed/feed-title.tsx @@ -22,7 +22,7 @@ export const FeedTitle = ({ if (!feed) return null return ( -
+
{getPreferredTitle(feed) || title}
{!hideExtraBadge && ( <> diff --git a/apps/renderer/src/modules/new-user-guide/steps/feeds.tsx b/apps/renderer/src/modules/new-user-guide/steps/feeds.tsx deleted file mode 100644 index 285777fc9..000000000 --- a/apps/renderer/src/modules/new-user-guide/steps/feeds.tsx +++ /dev/null @@ -1,75 +0,0 @@ -import { PhUsersBold } from "@follow/components/icons/users.jsx" -import { Button } from "@follow/components/ui/button/index.js" -import { LoadingWithIcon } from "@follow/components/ui/loading/index.jsx" -import { cn } from "@follow/utils/utils" -import { useQuery } from "@tanstack/react-query" -import { useTranslation } from "react-i18next" - -import { getTrendingAggregates } from "~/api/trending" -import { useFollow } from "~/hooks/biz/useFollow" -import { FeedIcon } from "~/modules/feed/feed-icon" - -export function TrendingFeeds() { - const { data } = useQuery({ - queryKey: ["trending"], - queryFn: () => { - return getTrendingAggregates() - }, - }) - - const follow = useFollow() - const { t } = useTranslation() - - return ( -
    - {data ? ( - data.trendingFeeds.map((feed) => { - return ( -
  • - -
    - -
    -
    -
    {feed.title}
    -
    -
    - -
    - - - {(feed as any).subscriberCount} - - - -
    -
  • - ) - }) - ) : ( - } - size="large" - /> - )} -
- ) -} diff --git a/apps/renderer/src/modules/player/corner-player.tsx b/apps/renderer/src/modules/player/corner-player.tsx index 18c2e56a4..9e9333de4 100644 --- a/apps/renderer/src/modules/player/corner-player.tsx +++ b/apps/renderer/src/modules/player/corner-player.tsx @@ -165,7 +165,7 @@ const CornerPlayerImpl = ({ hideControls, rounded }: ControlButtonProps) => { <>
@@ -194,7 +194,7 @@ const CornerPlayerImpl = ({ hideControls, rounded }: ControlButtonProps) => {
-
+
{ })}

setType(val)}> - + {tabs.map((tab) => ( {t(`wallet.transactions.types.${tab}`)} diff --git a/apps/renderer/src/modules/settings/tabs/general.tsx b/apps/renderer/src/modules/settings/tabs/general.tsx index 2d83fbd77..7eff98c86 100644 --- a/apps/renderer/src/modules/settings/tabs/general.tsx +++ b/apps/renderer/src/modules/settings/tabs/general.tsx @@ -1,11 +1,4 @@ import { useMobile } from "@follow/components/hooks/useMobile.js" -import { - Select, - SelectContent, - SelectItem, - SelectTrigger, - SelectValue, -} from "@follow/components/ui/select/index.js" import { ResponsiveSelect } from "@follow/components/ui/select/responsive.js" import { useTypeScriptHappyCallback } from "@follow/hooks" import { IN_ELECTRON } from "@follow/shared/constants" @@ -98,6 +91,11 @@ export const SettingGeneral = () => { label: t("general.group_by_date.label"), description: t("general.group_by_date.description"), }), + isMobile && + defineSettingItem("showQuickTimeline", { + label: t("general.show_quick_timeline.label"), + description: t("general.show_quick_timeline.description"), + }), defineSettingItem("reduceRefetch", { label: t("general.reduce_refetch.label"), @@ -147,24 +145,21 @@ const VoiceSelector = () => { return (
{t("general.voices")} - + items={ + data?.map((item) => ({ + label: item.FriendlyName, + value: item.ShortName, + })) ?? [] + } + />
) } @@ -252,27 +247,19 @@ const TranslateLanguageSelector = () => { const translationLanguage = useGeneralSettingKey("translationLanguage") return ( -
+
{t("general.translation_language")} - + items={Object.values(LanguageMap)} + />
) } diff --git a/apps/renderer/src/modules/settings/tabs/integration.tsx b/apps/renderer/src/modules/settings/tabs/integration.tsx index b23d39576..d4ae60921 100644 --- a/apps/renderer/src/modules/settings/tabs/integration.tsx +++ b/apps/renderer/src/modules/settings/tabs/integration.tsx @@ -3,8 +3,8 @@ import { SimpleIconsEagle, SimpleIconsInstapaper, SimpleIconsObsidian, - SimpleIconsOmnivore, SimpleIconsOutline, + SimpleIconsReadeck, SimpleIconsReadwise, } from "@follow/components/ui/platform-icon/icons.js" import { useEffect } from "react" @@ -103,56 +103,6 @@ export const SettingIntegration = () => { labelClassName: "w-[150px]", }, }), - { - type: "title", - value: ( - - - {t("integration.omnivore.title")} - - ), - }, - defineSettingItem("enableOmnivore", { - label: t("integration.omnivore.enable.label"), - description: t("integration.omnivore.enable.description"), - }), - defineSettingItem("omnivoreEndpoint", { - label: t("integration.omnivore.endpoint.label"), - vertical: true, - description: ( - <> - {t("integration.omnivore.endpoint.description")}{" "} - - https://api-prod.omnivore.app/api/graphql - - . - - ), - }), - defineSettingItem("omnivoreToken", { - label: t("integration.omnivore.token.label"), - vertical: true, - type: "password", - description: ( - <> - {t("integration.omnivore.token.description")}{" "} - - omnivore.app/settings/api - - . - - ), - }), { type: "title", value: ( @@ -200,7 +150,30 @@ export const SettingIntegration = () => { vertical: true, description: t("integration.outline.collection.description"), }), - + { + type: "title", + value: ( + + + {t("integration.readeck.title")} + + ), + }, + defineSettingItem("enableReadeck", { + label: t("integration.readeck.enable.label"), + description: t("integration.readeck.enable.description"), + }), + defineSettingItem("readeckEndpoint", { + label: t("integration.readeck.endpoint.label"), + vertical: true, + description: t("integration.readeck.endpoint.description"), + }), + defineSettingItem("readeckToken", { + label: t("integration.readeck.token.label"), + vertical: true, + type: "password", + description: t("integration.readeck.token.description"), + }), BottomTip, ]} /> diff --git a/apps/renderer/src/modules/shared/ViewSelectorRadioGroup.tsx b/apps/renderer/src/modules/shared/ViewSelectorRadioGroup.tsx index b1d7341fa..e84a7d637 100644 --- a/apps/renderer/src/modules/shared/ViewSelectorRadioGroup.tsx +++ b/apps/renderer/src/modules/shared/ViewSelectorRadioGroup.tsx @@ -6,7 +6,7 @@ import { cloneElement, forwardRef } from "react" import { useI18n } from "~/hooks/common" -import { EntryItemStateless } from "../entry-column/item" +import { EntryItemStateless } from "../entry-column/item-stateless" export const ViewSelectorRadioGroup = forwardRef< HTMLInputElement, @@ -45,7 +45,7 @@ export const ViewSelectorRadioGroup = forwardRef< {cloneElement(view.icon, { className: `text-lg ${view.icon?.props?.className ?? ""}`, })} - {t(view.name)} + {t(view.name)}
))} diff --git a/apps/renderer/src/modules/trending/index.tsx b/apps/renderer/src/modules/trending/index.tsx index ffd6abab8..870fb63bb 100644 --- a/apps/renderer/src/modules/trending/index.tsx +++ b/apps/renderer/src/modules/trending/index.tsx @@ -1,10 +1,10 @@ import type { User } from "@auth/core/types" +import { isMobile } from "@follow/components/hooks/useMobile.js" import { PhUsersBold } from "@follow/components/icons/users.jsx" import { Avatar, AvatarFallback, AvatarImage } from "@follow/components/ui/avatar/index.jsx" import { ActionButton, Button } from "@follow/components/ui/button/index.js" import { LoadingWithIcon } from "@follow/components/ui/loading/index.jsx" import { ScrollArea } from "@follow/components/ui/scroll-area/index.js" -import { Tooltip, TooltipContent, TooltipTrigger } from "@follow/components/ui/tooltip/index.jsx" import { EllipsisHorizontalTextWithTooltip } from "@follow/components/ui/typography/index.js" import type { FeedModel, Models } from "@follow/models" import { stopPropagation } from "@follow/utils/dom" @@ -22,38 +22,34 @@ import { FeedIcon } from "~/modules/feed/feed-icon" import { usePresentUserProfileModal } from "../profile/hooks" -export const Trend = ({ className }: { className?: string }) => { +interface TrendingProps { + language: string +} +export const TrendingButton = ({ language, className }: TrendingProps & { className?: string }) => { const { present } = useModalStack() const { t } = useTranslation() return ( - - {t("words.trending")} - - { - present({ - title: "Trending", - content: TrendContent, - CustomModalComponent: DrawerModalLayout, - }) - }} - className={cn( - "size-6 text-accent duration-200 hover:shadow-none", - "absolute bottom-1 right-3", - className, - )} - > - - - - + ) } -const TrendContent = () => { +const TrendContent: FC = ({ language }) => { const { data } = useQuery({ - queryKey: ["trending"], + queryKey: ["trending", language], queryFn: () => { - return getTrendingAggregates() + return getTrendingAggregates({ language }) }, }) @@ -250,11 +246,10 @@ const TrendingFeeds = ({ data }: { data: FeedModel[] }) => { -
- -
+ +
{feed.title}
diff --git a/apps/renderer/src/modules/user/ProfileButton.desktop.tsx b/apps/renderer/src/modules/user/ProfileButton.desktop.tsx index 035d45bea..8096602d3 100644 --- a/apps/renderer/src/modules/user/ProfileButton.desktop.tsx +++ b/apps/renderer/src/modules/user/ProfileButton.desktop.tsx @@ -1,3 +1,4 @@ +import { MdiMeditation } from "@follow/components/icons/Meditation.js" import { ActionButton } from "@follow/components/ui/button/index.js" import { RootPortal } from "@follow/components/ui/portal/index.js" import { EllipsisHorizontalTextWithTooltip } from "@follow/components/ui/typography/EllipsisWithTooltip.js" @@ -11,6 +12,7 @@ import { forwardRef, memo, useCallback, useLayoutEffect, useState } from "react" import { useTranslation } from "react-i18next" import { useNavigate } from "react-router" +import { useIsZenMode, useSetZenMode } from "~/atoms/settings/ui" import { useUserRole } from "~/atoms/user" import { DropdownMenu, @@ -57,6 +59,8 @@ export const ProfileButton: FC = memo((props) => { const { isLoading: isLoadingWallet } = wallet const myWallet = wallet.data?.[0] const presentActivationModal = useActivationModal() + const zenModeSetting = useIsZenMode() + const setZenMode = useSetZenMode() if (status !== "authenticated") { return @@ -139,7 +143,18 @@ export const ProfileButton: FC = memo((props) => { - + {/* NOTE: The shortcut needs to be grouped, but there is only one currently, so no separator line has been added. */} + {!zenModeSetting && ( + { + setZenMode(true) + }} + icon={} + > + {t("user_button.zen_mode")} + + )} { diff --git a/apps/renderer/src/modules/user/ProfileButton.mobile.tsx b/apps/renderer/src/modules/user/ProfileButton.mobile.tsx index 29eb7cc69..e68708757 100644 --- a/apps/renderer/src/modules/user/ProfileButton.mobile.tsx +++ b/apps/renderer/src/modules/user/ProfileButton.mobile.tsx @@ -95,6 +95,7 @@ export const ProfileButton: FC = () => { /> + { diff --git a/apps/renderer/src/pages/(main)/(layer)/(subview)/discover/index.tsx b/apps/renderer/src/pages/(main)/(layer)/(subview)/discover/index.tsx index c8c855456..5bf082a0b 100644 --- a/apps/renderer/src/pages/(main)/(layer)/(subview)/discover/index.tsx +++ b/apps/renderer/src/pages/(main)/(layer)/(subview)/discover/index.tsx @@ -81,10 +81,13 @@ export function Component() { { - setSearch((search) => { - search.set("type", val) - return new URLSearchParams(search) - }) + setSearch( + (search) => { + search.set("type", val) + return new URLSearchParams(search) + }, + { replace: true }, + ) }} className="max-w-full" > @@ -104,8 +107,6 @@ export function Component() { {t(tab.name)}
))} - - {/* */}
{currentTabs.map((tab) => ( diff --git a/apps/renderer/src/providers/extension-expose-provider.tsx b/apps/renderer/src/providers/extension-expose-provider.tsx index 732299456..83355fa39 100644 --- a/apps/renderer/src/providers/extension-expose-provider.tsx +++ b/apps/renderer/src/providers/extension-expose-provider.tsx @@ -4,6 +4,7 @@ import { useEffect, useLayoutEffect } from "react" import { useTranslation } from "react-i18next" import { toast } from "sonner" +import { setWindowState } from "~/atoms/app" import { getGeneralSettings } from "~/atoms/settings/general" import { getUISettings, useToggleZenMode } from "~/atoms/settings/ui" import { setUpdaterStatus } from "~/atoms/updater" @@ -85,5 +86,15 @@ export const ExtensionExposeProvider = () => { dialog, }) }, [dialog]) + + useBindElectronBridge() return null } + +const useBindElectronBridge = () => { + useEffect(() => { + registerGlobalContext({ + setWindowState, + }) + }, []) +} diff --git a/apps/renderer/src/providers/inject-styles-provider.tsx b/apps/renderer/src/providers/inject-styles-provider.tsx new file mode 100644 index 000000000..9fe524490 --- /dev/null +++ b/apps/renderer/src/providers/inject-styles-provider.tsx @@ -0,0 +1,38 @@ +import { MemoedDangerousHTMLStyle } from "@follow/components/common/MemoedDangerousHTMLStyle.jsx" +import { RootPortal } from "@follow/components/ui/portal/index.js" +import type { FC, PropsWithChildren } from "react" +import { createContext, useCallback, useContext, useState } from "react" + +const Provider = createContext<(id: string, styles: string) => () => void>(() => () => {}) +export const PortalInjectStylesProvider: FC = ({ children }) => { + const [styles, setStyles] = useState({} as Record) + + const injectStyles = useCallback((id: string, styles: string) => { + const dispose = () => { + setStyles((prev) => { + const { [id]: _, ...rest } = prev + return rest + }) + } + if (styles[id]) return dispose + setStyles((prev) => ({ ...prev, [id]: styles })) + + return dispose + }, []) + return ( + + + {Object.entries(styles).map(([id, style]) => ( + + {style} + + ))} + + {children} + + ) +} + +export const useInjectStyles = () => { + return useContext(Provider) +} diff --git a/apps/renderer/src/providers/root-providers.tsx b/apps/renderer/src/providers/root-providers.tsx index eb4c60d67..e7bbf5c1b 100644 --- a/apps/renderer/src/providers/root-providers.tsx +++ b/apps/renderer/src/providers/root-providers.tsx @@ -47,6 +47,7 @@ export const RootProviders: FC = ({ children }) => ( {import.meta.env.DEV && } + {children} diff --git a/apps/renderer/src/push-notification.ts b/apps/renderer/src/push-notification.ts index 57407dc3d..59b32262f 100644 --- a/apps/renderer/src/push-notification.ts +++ b/apps/renderer/src/push-notification.ts @@ -13,13 +13,10 @@ export async function registerWebPushNotifications() { } try { const existingRegistration = await navigator.serviceWorker.getRegistration() - let registration = existingRegistration + const registration = existingRegistration - const isPWA = window.matchMedia("(display-mode: standalone)").matches if (!registration) { - registration = await navigator.serviceWorker.register(`/sw.js${isPWA ? "?pwa=true" : ""}`, { - scope: "/", - }) + return } await navigator.serviceWorker.ready diff --git a/apps/renderer/src/queries/auth.ts b/apps/renderer/src/queries/auth.ts index 160e698ed..354d9b419 100644 --- a/apps/renderer/src/queries/auth.ts +++ b/apps/renderer/src/queries/auth.ts @@ -1,13 +1,10 @@ -import type { Session } from "@auth/core/types" -import type { getSession as getSessionReact } from "@hono/auth-js/react" -import { authConfigManager } from "@hono/auth-js/react" +import { getSession } from "@follow/shared/auth" +import type { AuthSession } from "@follow/shared/hono" import type { FetchError } from "ofetch" -import { ofetch } from "ofetch" import { useAuthQuery } from "~/hooks/common" import { defineQuery } from "~/lib/defineQuery" -type GetSessionParams = Parameters[0] export const auth = { getSession: () => defineQuery(["auth", "session"], () => getSession()), } @@ -34,47 +31,14 @@ export const useSession = (options?: { enabled?: boolean }) => { const fetchError = error as FetchError return { - session: data, + session: data?.data as AuthSession, ...rest, status: isLoading ? "loading" - : data + : data?.data ? "authenticated" - : fetchError?.statusCode === 401 - ? "unauthenticated" - : "error", + : fetchError + ? "error" + : "unauthenticated", } } - -/** - * Fetch session data, copy and patch code from @hono/auth-js/react - */ -async function fetchData( - path: string, - - req: any = {}, -): Promise { - const config = authConfigManager.getConfig() - const url = `${config.baseUrl}${config.basePath}/${path}` - - const options: RequestInit = { - headers: { - "Content-Type": "application/json", - ...(req?.headers?.cookie ? { cookie: req.headers.cookie } : {}), - }, - credentials: config.credentials, - } - - if (req?.body) { - options.body = JSON.stringify(req.body) - options.method = "POST" - } - - const data = await ofetch(url, options) - - return data as T -} - -function getSession(params?: GetSessionParams) { - return fetchData("session", params) -} diff --git a/apps/renderer/src/queries/entries.ts b/apps/renderer/src/queries/entries.ts index 2dd59d622..2550bb9a5 100644 --- a/apps/renderer/src/queries/entries.ts +++ b/apps/renderer/src/queries/entries.ts @@ -163,7 +163,8 @@ export const useEntries = ({ staleTime: // Force refetch unread entries when feed is dirty - fetchUnread && feedUnreadDirty + // HACK: disable refetch when the router is pop to previous page + fetchUnread && feedUnreadDirty && !history.isPop ? 0 : // Keep reduce data fetch logic reduceRefetch diff --git a/apps/renderer/src/queries/users.ts b/apps/renderer/src/queries/users.ts index 3390dfde5..fd1408349 100644 --- a/apps/renderer/src/queries/users.ts +++ b/apps/renderer/src/queries/users.ts @@ -1,4 +1,4 @@ -import { getProviders } from "@hono/auth-js/react" +import { getProviders } from "@follow/shared/auth" import { useQuery } from "@tanstack/react-query" import { apiClient } from "~/lib/api-fetch" @@ -17,7 +17,7 @@ export const users = { export const useAuthProviders = () => { return useQuery({ queryKey: ["providers"], - queryFn: () => getProviders(), + queryFn: async () => (await getProviders()).data, placeholderData: { google: { id: "google", @@ -27,6 +27,6 @@ export const useAuthProviders = () => { id: "github", name: "GitHub", }, - } as Awaited>, + }, }) } diff --git a/apps/renderer/src/router.tsx b/apps/renderer/src/router.tsx index bdc8e0279..30d8d8267 100644 --- a/apps/renderer/src/router.tsx +++ b/apps/renderer/src/router.tsx @@ -16,15 +16,22 @@ if (window.SENTRY_RELEASE) { routerCreator = wrapCreateBrowserRouter(routerCreator) } -export const router = routerCreator([ +export const router = routerCreator( + [ + { + path: "/", + Component: App, + children: tree, + errorElement: , + }, + { + path: "*", + element: , + }, + ], { - path: "/", - Component: App, - children: tree, - errorElement: , + future: { + v7_startTransition: true, + }, }, - { - path: "*", - element: , - }, -]) +) diff --git a/apps/renderer/src/router.web.tsx b/apps/renderer/src/router.web.tsx index 39250c8aa..034c7375b 100644 --- a/apps/renderer/src/router.web.tsx +++ b/apps/renderer/src/router.web.tsx @@ -15,15 +15,22 @@ if (window.SENTRY_RELEASE) { routerCreator = wrapCreateBrowserRouter(routerCreator) } -export const router = routerCreator([ +export const router = routerCreator( + [ + { + path: "/", + lazy: () => import("./App"), + children: tree, + errorElement: , + }, + { + path: "*", + element: , + }, + ], { - path: "/", - lazy: () => import("./App"), - children: tree, - errorElement: , + future: { + v7_startTransition: true, + }, }, - { - path: "*", - element: , - }, -]) +) diff --git a/apps/renderer/src/store/utils/clear.ts b/apps/renderer/src/store/utils/clear.ts index 3bdff4ab6..6fa7c9e8b 100644 --- a/apps/renderer/src/store/utils/clear.ts +++ b/apps/renderer/src/store/utils/clear.ts @@ -27,7 +27,7 @@ export const clearLocalPersistStoreData = async () => { clearUISettings() await clearImageDimensionsDb() - await browserDB.delete().catch(() => null) + await Promise.all(browserDB.tables.map((table) => table.clear())) } const storedUserId = getStorageNS("user_id") diff --git a/apps/renderer/src/styles/base.css b/apps/renderer/src/styles/base.css index 690386ac5..7dba22e81 100644 --- a/apps/renderer/src/styles/base.css +++ b/apps/renderer/src/styles/base.css @@ -51,3 +51,7 @@ button { ::selection { @apply bg-accent/80 text-white; } + +#react-scan-toolbar { + @apply !hidden lg:!block; +} diff --git a/apps/renderer/src/sw.ts b/apps/renderer/src/sw.ts index 1cf0126d4..69ca32d1a 100644 --- a/apps/renderer/src/sw.ts +++ b/apps/renderer/src/sw.ts @@ -1,144 +1 @@ -/// -import { cleanupOutdatedCaches, precacheAndRoute } from "workbox-precaching" -import type { NavigationRouteMatchOptions } from "workbox-routing" -import { NavigationRoute, registerRoute } from "workbox-routing" -import { CacheFirst, NetworkFirst } from "workbox-strategies" - -declare let self: ServiceWorkerGlobalScope - -const isPWA = new URL(self.location.href).searchParams.get("pwa") === "true" - -self.addEventListener("message", (event) => { - if (event.data && event.data.type === "SKIP_WAITING") self.skipWaiting() -}) - -interface NewEntryMessage { - description: string - entryId: string - feedId: string - title: string - type: "new-entry" - view: string -} - -type Message = NewEntryMessage - -// Firebase Cloud Messaging handler -self.addEventListener("push", (event) => { - if (event.data) { - const { data } = event.data.json() - const payload = data as Message - - switch (payload.type) { - case "new-entry": { - const notificationPromise = self.registration.showNotification(payload.title, { - body: payload.description, - icon: "https://app.follow.is/favicon.ico", - data: { - type: payload.type, - feedId: payload.feedId, - entryId: payload.entryId, - view: Number.parseInt(payload.view), - }, - }) - event.waitUntil(notificationPromise) - break - } - } - } -}) - -self.addEventListener("notificationclick", (event) => { - event.notification.close() - - const notificationData = event.notification.data - if (!notificationData) return - - let urlToOpen: URL - - switch (notificationData.type) { - case "new-entry": { - urlToOpen = new URL( - `/feeds/${notificationData.feedId}/${notificationData.entryId}`, - self.location.origin, - ) - break - } - default: { - urlToOpen = new URL("/", self.location.origin) - break - } - } - - const promiseChain = self.clients - .matchAll({ - type: "window", - includeUncontrolled: true, - }) - .then((windowClients) => { - if (windowClients.length > 0) { - const client = windowClients[0] - return client.focus() - } - return self.clients.openWindow(urlToOpen.href) - }) - .then((client) => { - if (client && "postMessage" in client) { - switch (notificationData.type) { - case "new-entry": { - client.postMessage({ - type: "NOTIFICATION_CLICK", - action: "NAVIGATE_ENTRY", - data: { - feedId: notificationData.feedId, - entryId: notificationData.entryId, - view: notificationData.view, - url: urlToOpen.pathname, - }, - }) - break - } - default: { - console.warn("Unknown notification type:", notificationData.type) - break - } - } - } - }) - - event.waitUntil(promiseChain) -}) - -const preCacheExclude = new Set(["og-image.png", "opengraph-image.png"]) - -const precacheManifest = self.__WB_MANIFEST.filter((entry) => { - return typeof entry === "string" || !preCacheExclude.has(entry.url) -}) -precacheAndRoute(precacheManifest) - -cleanupOutdatedCaches() - -const strategy = isPWA - ? new CacheFirst({ cacheName: "assets-cache-first" }) - : new NetworkFirst({ - cacheName: "assets-network-first", - networkTimeoutSeconds: 1, - }) - -const fileExtensionRegexp = /\/[^/?][^./?]*\.[^/]+$/ -registerRoute(({ url }) => { - if ( - precacheManifest.some((entry) => { - const urlToMatch = typeof entry === "string" ? entry : entry.url - return url.pathname === urlToMatch - }) - ) { - return true - } - return fileExtensionRegexp.test(url.pathname) -}, strategy) - -let allowlist: NavigationRouteMatchOptions["allowlist"] -if (import.meta.env.DEV) allowlist = [/^\/$/] - -registerRoute(new NavigationRoute(strategy, { allowlist })) +import "./workers/sw/index" diff --git a/apps/renderer/src/workers/sw/index.ts b/apps/renderer/src/workers/sw/index.ts new file mode 100644 index 000000000..d0003b605 --- /dev/null +++ b/apps/renderer/src/workers/sw/index.ts @@ -0,0 +1,27 @@ +/// +import { cleanupOutdatedCaches, precacheAndRoute } from "workbox-precaching" +import { registerRoute } from "workbox-routing" +import { CacheFirst } from "workbox-strategies" + +import { registerPusher } from "./pusher" + +declare let self: ServiceWorkerGlobalScope + +registerPusher(self) + +const preCacheExclude = new Set(["og-image.png", "opengraph-image.png"]) + +const precacheManifest = self.__WB_MANIFEST.filter((entry) => { + return typeof entry === "string" || !preCacheExclude.has(entry.url) +}) + +registerRoute( + ({ request }) => request.destination === "image", + new CacheFirst({ + cacheName: "image-assets", + }), +) + +precacheAndRoute(precacheManifest) + +cleanupOutdatedCaches() diff --git a/apps/renderer/src/workers/sw/pusher.ts b/apps/renderer/src/workers/sw/pusher.ts new file mode 100644 index 000000000..cb9b40eec --- /dev/null +++ b/apps/renderer/src/workers/sw/pusher.ts @@ -0,0 +1,103 @@ +/// +interface NewEntryMessage { + description: string + entryId: string + feedId: string + title: string + type: "new-entry" + view: string +} + +type Message = NewEntryMessage + +export const registerPusher = (self: ServiceWorkerGlobalScope) => { + self.addEventListener("message", (event) => { + if (event.data && event.data.type === "SKIP_WAITING") self.skipWaiting() + }) + + // Firebase Cloud Messaging handler + self.addEventListener("push", (event) => { + if (event.data) { + const { data } = event.data.json() + const payload = data as Message + + switch (payload.type) { + case "new-entry": { + const notificationPromise = self.registration.showNotification(payload.title, { + body: payload.description, + icon: "https://app.follow.is/favicon.ico", + data: { + type: payload.type, + feedId: payload.feedId, + entryId: payload.entryId, + view: Number.parseInt(payload.view), + }, + }) + event.waitUntil(notificationPromise) + break + } + } + } + }) + + self.addEventListener("notificationclick", (event) => { + event.notification.close() + + const notificationData = event.notification.data + if (!notificationData) return + + let urlToOpen: URL + + switch (notificationData.type) { + case "new-entry": { + urlToOpen = new URL( + `/feeds/${notificationData.feedId}/${notificationData.entryId}`, + self.location.origin, + ) + break + } + default: { + urlToOpen = new URL("/", self.location.origin) + break + } + } + + const promiseChain = self.clients + .matchAll({ + type: "window", + includeUncontrolled: true, + }) + .then((windowClients) => { + if (windowClients.length > 0) { + const client = windowClients[0] + return client.focus() + } + return self.clients.openWindow(urlToOpen.href) + }) + .then((client) => { + if (client && "postMessage" in client) { + switch (notificationData.type) { + case "new-entry": { + client.postMessage({ + type: "NOTIFICATION_CLICK", + action: "NAVIGATE_ENTRY", + data: { + feedId: notificationData.feedId, + entryId: notificationData.entryId, + view: notificationData.view, + url: urlToOpen.pathname, + }, + }) + break + } + default: { + console.warn("Unknown notification type:", notificationData.type) + break + } + } + } + }) + + event.waitUntil(promiseChain) + }) +} diff --git a/apps/server/client/components/ui/feed-certification.tsx b/apps/server/client/components/ui/feed-certification.tsx index 4cefede42..4cdae3067 100644 --- a/apps/server/client/components/ui/feed-certification.tsx +++ b/apps/server/client/components/ui/feed-certification.tsx @@ -22,6 +22,8 @@ export const FeedCertification = ({ const { t } = useTranslation() + const { type } = feed + return ( feed.ownerUserId && (feed.ownerUserId === me?.id ? ( @@ -34,7 +36,7 @@ export const FeedCertification = ({
- {t("feed_item.claimed_feed")} + {type === "feed" ? t("feed_item.claimed_feed") : t("feed_item.claimed_list")}
{t("feed_item.claimed_by_you")}
@@ -52,7 +54,7 @@ export const FeedCertification = ({
- {t("feed_item.claimed_feed")} + {type === "feed" ? t("feed_item.claimed_feed") : t("feed_item.claimed_list")}
{t("feed_item.claimed_by_owner")} diff --git a/apps/server/client/initialize/index.ts b/apps/server/client/initialize/index.ts index 618414eb9..9c012df2d 100644 --- a/apps/server/client/initialize/index.ts +++ b/apps/server/client/initialize/index.ts @@ -1,18 +1,10 @@ import { initI18n } from "@client/i18n" import { initializeDayjs } from "@follow/components/dayjs" -import { env } from "@follow/shared/env" -import { authConfigManager } from "@hono/auth-js/react" import { initAnalytics } from "./analytics" import { initSentry } from "./sentry" export const initialize = () => { - authConfigManager.setConfig({ - baseUrl: env.VITE_API_URL, - basePath: "/auth", - credentials: "include", - }) - initializeDayjs() initI18n() initAnalytics() diff --git a/apps/server/client/lib/api-fetch.ts b/apps/server/client/lib/api-fetch.ts index e1a0060bb..7afdd3d5f 100644 --- a/apps/server/client/lib/api-fetch.ts +++ b/apps/server/client/lib/api-fetch.ts @@ -1,24 +1,15 @@ import { env } from "@follow/shared/env" import type { AppType } from "@follow/shared/hono" -import { getCsrfToken } from "@hono/auth-js/react" import { hc } from "hono/client" import { ofetch } from "ofetch" -let csrfTokenPromise: Promise | null = null const apiFetch = ofetch.create({ credentials: "include", retry: false, - onRequest: async ({ options }) => { - if (!csrfTokenPromise) { - csrfTokenPromise = getCsrfToken() - } - - const csrfToken = await csrfTokenPromise - + onRequest: ({ options }) => { const header = new Headers(options.headers) header.set("x-app-version", "Web External") - header.set("X-Csrf-Token", csrfToken) options.headers = header }, }) diff --git a/apps/server/client/lib/auth.ts b/apps/server/client/lib/auth.ts deleted file mode 100644 index 4400282d5..000000000 --- a/apps/server/client/lib/auth.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { IN_ELECTRON, WEB_URL } from "@follow/shared/constants" -import { signIn } from "@hono/auth-js/react" - -export const LOGIN_CALLBACK_URL = `${WEB_URL}/login` -export type LoginRuntime = "browser" | "app" -export const loginHandler = (provider: string, runtime: LoginRuntime = "app") => { - if (IN_ELECTRON) { - window.open(`${WEB_URL}/login?provider=${provider}`) - } else { - signIn(provider, { - callbackUrl: runtime === "app" ? LOGIN_CALLBACK_URL : WEB_URL, - }) - } -} diff --git a/apps/server/client/pages/(login)/login.tsx b/apps/server/client/pages/(login)/login.tsx index 70e5925bf..c0d537051 100644 --- a/apps/server/client/pages/(login)/login.tsx +++ b/apps/server/client/pages/(login)/login.tsx @@ -1,27 +1,22 @@ import { UserAvatar } from "@client/components/ui/user-avatar" -import { apiClient } from "@client/lib/api-fetch" -import { LOGIN_CALLBACK_URL, loginHandler } from "@client/lib/auth" +import { useSession } from "@client/query/auth" import { useAuthProviders } from "@client/query/users" import { Logo } from "@follow/components/icons/logo.jsx" import { Button } from "@follow/components/ui/button/index.js" import { authProvidersConfig } from "@follow/constants" +import { createSession, loginHandler, signOut } from "@follow/shared/auth" import { DEEPLINK_SCHEME } from "@follow/shared/constants" import { cn } from "@follow/utils/utils" -import { SessionProvider, signIn, signOut, useSession } from "@hono/auth-js/react" import { useCallback, useEffect, useRef, useState } from "react" import { useTranslation } from "react-i18next" import { useLocation } from "react-router" export function Component() { - return ( - - - - ) + return } function Login() { - const { status } = useSession() + const { status, refetch } = useSession() const [redirecting, setRedirecting] = useState(false) @@ -36,24 +31,24 @@ function Login() { useEffect(() => { if (provider && status === "unauthenticated") { - signIn(provider, { - callbackUrl: LOGIN_CALLBACK_URL, - }) + loginHandler(provider) setRedirecting(true) } }, [status]) const getCallbackUrl = useCallback(async () => { - const { data } = await apiClient["auth-app"]["new-session"].$post({}) + const { data } = await createSession() + if (!data) return null return { - url: `${DEEPLINK_SCHEME}auth?token=${data.sessionToken}&userId=${data.userId}`, + url: `${DEEPLINK_SCHEME}auth?ck=${data.ck}&userId=${data.userId}`, userId: data.userId, } }, []) const handleOpenApp = useCallback(async () => { - const { url } = await getCallbackUrl() - window.open(url, "_top") + const callbackUrl = await getCallbackUrl() + if (!callbackUrl) return + window.open(callbackUrl.url, "_top") }, [getCallbackUrl]) const onceRef = useRef(false) @@ -82,7 +77,13 @@ function Login() {
-
diff --git a/apps/server/client/providers/root-providers.tsx b/apps/server/client/providers/root-providers.tsx index 0269d0d13..0abd93992 100644 --- a/apps/server/client/providers/root-providers.tsx +++ b/apps/server/client/providers/root-providers.tsx @@ -20,7 +20,7 @@ export const RootProviders: FC = ({ children }) => ( - {/* */} + {children} diff --git a/apps/server/client/query/auth.ts b/apps/server/client/query/auth.ts index a7d38714c..5d1f70257 100644 --- a/apps/server/client/query/auth.ts +++ b/apps/server/client/query/auth.ts @@ -1,9 +1,7 @@ -import type { Session } from "@auth/core/types" -import type { GetSessionParams } from "@hono/auth-js/react" -import { authConfigManager } from "@hono/auth-js/react" +import { getSession } from "@follow/shared/auth" +import type { AuthSession } from "@follow/shared/hono" import { useQuery } from "@tanstack/react-query" import type { FetchError } from "ofetch" -import { ofetch } from "ofetch" export const useSession = (options?: { enabled?: boolean }) => { const { data, isLoading, ...rest } = useQuery({ @@ -27,47 +25,14 @@ export const useSession = (options?: { enabled?: boolean }) => { const fetchError = error as FetchError return { - session: data, + session: data?.data as AuthSession, ...rest, status: isLoading ? "loading" - : data + : data?.data ? "authenticated" - : fetchError?.statusCode === 401 - ? "unauthenticated" - : "error", + : fetchError + ? "error" + : "unauthenticated", } } - -/** - * Fetch session data, copy and patch code from @hono/auth-js/react - */ -async function fetchData( - path: string, - - req: any = {}, -): Promise { - const config = authConfigManager.getConfig() - const url = `${config.baseUrl}${config.basePath}/${path}` - - const options: RequestInit = { - headers: { - "Content-Type": "application/json", - ...(req?.headers?.cookie ? { cookie: req.headers.cookie } : {}), - }, - credentials: config.credentials, - } - - if (req?.body) { - options.body = JSON.stringify(req.body) - options.method = "POST" - } - - const data = await ofetch(url, options) - - return data as T -} - -function getSession(params?: GetSessionParams) { - return fetchData("session", params) -} diff --git a/apps/server/client/query/users.ts b/apps/server/client/query/users.ts index 92e8560e7..1c2e15531 100644 --- a/apps/server/client/query/users.ts +++ b/apps/server/client/query/users.ts @@ -1,7 +1,7 @@ import { apiClient } from "@client/lib/api-fetch" import { getHydrateData } from "@client/lib/helper" +import { getProviders } from "@follow/shared/auth" import { capitalizeFirstLetter, isBizId, parseUrl } from "@follow/utils/utils" -import { getProviders } from "@hono/auth-js/react" import { useQuery } from "@tanstack/react-query" export const useUserSubscriptionsQuery = (userId: string | undefined) => { @@ -60,7 +60,7 @@ export const useUserQuery = (handleOrId: string | undefined) => { export const useAuthProviders = () => { return useQuery({ queryKey: ["providers"], - queryFn: () => getProviders(), + queryFn: async () => (await getProviders()).data, placeholderData: { google: { id: "google", @@ -70,6 +70,6 @@ export const useAuthProviders = () => { id: "github", name: "GitHub", }, - } as Awaited>, + }, }) } diff --git a/apps/server/package.json b/apps/server/package.json index 74bbe867f..2a06c349d 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -10,16 +10,15 @@ "@fastify/middie": "9.0.2", "@fastify/request-context": "6.0.1", "@fontsource/sn-pro": "5.1.0", - "@hono/auth-js": "1.0.15", "@openpanel/web": "1.0.1", "@resvg/resvg-js": "2.6.2", - "@sentry/react": "8.40.0", - "@tanstack/react-query": "5.61.4", + "@sentry/react": "8.41.0", + "@tanstack/react-query": "5.62.0", "blurhash": "2.0.5", "click-to-react-component": "1.1.2", "dayjs": "1.11.13", "fastify": "5.1.0", - "framer-motion": "11.11.17", + "framer-motion": "11.12.0", "i18next": "^24.0.2", "jotai": "2.10.3", "kose-font": "1.0.0", @@ -29,7 +28,7 @@ "react": "^18.3.1", "react-blurhash": "^0.3.0", "react-hotkeys-hook": "4.6.1", - "react-i18next": "^15.1.2", + "react-i18next": "^15.1.3", "react-photo-view": "1.2.6", "react-router": "7.0.1", "satori": "0.12.0", @@ -51,7 +50,7 @@ "chokidar": "4.0.1", "daisyui": "4.12.14", "dotenv-flow": "4.1.0", - "es-toolkit": "catalog:", + "es-toolkit": "1.29.0", "foxact": "0.2.42", "glob": "11.0.0", "html-minifier-terser": "7.2.0", @@ -60,9 +59,9 @@ "nanoid": "5.0.9", "path-to-regexp": "8.2.0", "react-dom": "^18.3.1", - "tailwindcss": "3.4.14", + "tailwindcss": "3.4.15", "tsup": "8.3.5", "tsx": "4.19.2", - "vite": "6.0.1" + "vite": "6.0.2" } } diff --git a/apps/server/src/lib/api-client.ts b/apps/server/src/lib/api-client.ts index 0434a3666..afed762e0 100644 --- a/apps/server/src/lib/api-client.ts +++ b/apps/server/src/lib/api-client.ts @@ -53,7 +53,7 @@ export const createApiClient = () => { "X-App-Version": PKG.version, "X-App-Dev": isDev ? "1" : "0", "User-Agent": `Follow External Server Api Client/${PKG.version}`, - Cookie: authSessionToken ? `authjs.session-token=${authSessionToken}` : "", + Cookie: authSessionToken ? `better-auth.session_token=${authSessionToken}` : "", } }, }) @@ -72,7 +72,7 @@ export const getTokenFromCookie = (cookie: string) => { }, {} as Record, ) - return parsedCookieMap["authjs.session-token"] + return parsedCookieMap["better-auth.session_token"] } export type ApiClient = ReturnType diff --git a/changelog/0.2.6.md b/changelog/0.2.6.md new file mode 100644 index 000000000..2fb502a94 --- /dev/null +++ b/changelog/0.2.6.md @@ -0,0 +1,9 @@ +# What's new in v0.2.6 + +We've made some ux optimizations: + +- [Mobile]: Now when returning to the list from the entry details, it will not return to the top of the page. +- [Social Media]: Optimized the arrangement of multiple images with different aspect ratios. +- [Social Media]: Long text auto-collapse. + +And many other bug fixes and improvements. diff --git a/configs/tailwind-extend.css b/configs/tailwind-extend.css index 8e60cf943..5a25865a3 100644 --- a/configs/tailwind-extend.css +++ b/configs/tailwind-extend.css @@ -395,3 +395,31 @@ animation: rocketAnimation 1s infinite ease-out; } } + +@layer components { + .mask-b { + mask-image: linear-gradient(rgb(255, 255, 255) calc(100% - 20px), rgba(255, 255, 255, 0) 100%); + } + + .mask-b-lg { + mask-image: linear-gradient(rgb(255, 255, 255) calc(100% - 50px), rgba(255, 255, 255, 0) 100%); + } + + .mask-b-xl { + mask-image: linear-gradient(rgb(255, 255, 255) calc(100% - 70px), rgba(255, 255, 255, 0) 100%); + } + + .mask-b-2xl { + mask-image: linear-gradient(rgb(255, 255, 255) calc(100% - 90px), rgba(255, 255, 255, 0) 100%); + } + + .mask-horizontal { + mask-image: linear-gradient( + 90deg, + rgba(255, 255, 255, 0) 0%, + rgba(255, 255, 255, 1) 14%, + rgba(255, 255, 255, 1) 86%, + rgba(255, 255, 255, 0) 100% + ); + } +} diff --git a/icons/mgc/more_1_cute_re.svg b/icons/mgc/more_1_cute_re.svg new file mode 100644 index 000000000..ace990f83 --- /dev/null +++ b/icons/mgc/more_1_cute_re.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/mgc/numbers_09_sort_ascending_cute_re.svg b/icons/mgc/numbers_09_sort_ascending_cute_re.svg new file mode 100644 index 000000000..d3b06dd70 --- /dev/null +++ b/icons/mgc/numbers_09_sort_ascending_cute_re.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/mgc/numbers_09_sort_descending_cute_re.svg b/icons/mgc/numbers_09_sort_descending_cute_re.svg new file mode 100644 index 000000000..c4219c936 --- /dev/null +++ b/icons/mgc/numbers_09_sort_descending_cute_re.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/mgc/numbers_90_sort_ascending_cute_re.svg b/icons/mgc/numbers_90_sort_ascending_cute_re.svg new file mode 100644 index 000000000..89e1843ce --- /dev/null +++ b/icons/mgc/numbers_90_sort_ascending_cute_re.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/mgc/numbers_90_sort_descending_cute_re.svg b/icons/mgc/numbers_90_sort_descending_cute_re.svg new file mode 100644 index 000000000..4f4f82421 --- /dev/null +++ b/icons/mgc/numbers_90_sort_descending_cute_re.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/locales/app/en.json b/locales/app/en.json index 4a81d9860..824069e30 100644 --- a/locales/app/en.json +++ b/locales/app/en.json @@ -111,8 +111,8 @@ "entry_actions.failed_to_save_to_eagle": "Failed to save to Eagle.", "entry_actions.failed_to_save_to_instapaper": "Failed to save to Instapaper.", "entry_actions.failed_to_save_to_obsidian": "Failed to save to Obsidian", - "entry_actions.failed_to_save_to_omnivore": "Failed to save to Omnivore.", "entry_actions.failed_to_save_to_outline": "Failed to save to Outline.", + "entry_actions.failed_to_save_to_readeck": "Failed to save to Readeck.", "entry_actions.failed_to_save_to_readwise": "Failed to save to Readwise.", "entry_actions.mark_as_read": "Mark as Read", "entry_actions.mark_as_unread": "Mark as Unread", @@ -121,14 +121,14 @@ "entry_actions.save_media_to_eagle": "Save Media To Eagle", "entry_actions.save_to_instapaper": "Save To Instapaper", "entry_actions.save_to_obsidian": "Save to Obsidian", - "entry_actions.save_to_omnivore": "Save To Omnivore", "entry_actions.save_to_outline": "Save To Outline", + "entry_actions.save_to_readeck": "Save To Readeck", "entry_actions.save_to_readwise": "Save To Readwise", "entry_actions.saved_to_eagle": "Saved To Eagle.", "entry_actions.saved_to_instapaper": "Saved To Instapaper.", "entry_actions.saved_to_obsidian": "Saved to Obsidian", - "entry_actions.saved_to_omnivore": "Saved To Omnivore.", "entry_actions.saved_to_outline": "Saved To Outline.", + "entry_actions.saved_to_readeck": "Saved To Readeck.", "entry_actions.saved_to_readwise": "Saved To Readwise.", "entry_actions.share": "Share", "entry_actions.star": "Star", @@ -201,6 +201,7 @@ "feed_form.fee_description": "To follow this list, you must pay a fee to the list creator.", "feed_form.feed_not_found": "Feed not found.", "feed_form.feedback": "Feedback", + "feed_form.fill_default": "Fill", "feed_form.follow": "Follow", "feed_form.follow_with_fee": "Follow with {{fee}} Power", "feed_form.followed": "🎉 Followed.", @@ -218,6 +219,7 @@ "feed_item.claimed_by_unknown": "its owner.", "feed_item.claimed_by_you": "Claimed by you", "feed_item.claimed_feed": "Claimed Feed", + "feed_item.claimed_list": "Claimed List", "feed_item.error_since": "Error since", "feed_item.not_publicly_visible": "Not publicly visible on your profile page", "feed_view_type.articles": "Articles", @@ -247,7 +249,7 @@ "new_user_guide.step.behavior.unread_question.option2": "Balanced: Automatically marked as read when hovered over or scrolled out of view.", "new_user_guide.step.behavior.unread_question.option3": "Conservative: Marked as read only when clicked.", "new_user_guide.step.features.actions.description": "Action rules allow you to perform different actions for different feeds.\n- Using AI to summarize or translate.\n- Configure how to read entries.\n- Enable notifications for new entries or silence them.\n- Rewrite or block specific entries.\n- Send new entries to a webhook address.", - "new_user_guide.step.features.integration.description": "Integrations allow you to save entries to other services. Currently supported services are:\n- Eagle\n- Readwise\n- Instapaper\n- Obsidian", + "new_user_guide.step.features.integration.description": "Integrations allow you to save entries to other services. Currently supported services are:\n- Eagle\n- Readwise\n- Instapaper\n- Obsidian\n- Outline\n- Readeck", "new_user_guide.step.migrate.profile": "Setup your profile", "new_user_guide.step.migrate.title": "Migrate from OPML file", "new_user_guide.step.migrate.wallet": "Check your wallet", @@ -371,6 +373,7 @@ "user_button.power": "Power", "user_button.preferences": "Preferences", "user_button.profile": "Profile", + "user_button.zen_mode": "Zen Mode", "user_profile.close": "Close", "user_profile.edit": "Edit", "user_profile.loading": "Loading", diff --git a/locales/app/ja.json b/locales/app/ja.json index 8e8861fe5..8ab94d0d0 100644 --- a/locales/app/ja.json +++ b/locales/app/ja.json @@ -111,8 +111,8 @@ "entry_actions.failed_to_save_to_eagle": "Eagle への保存に失敗しました。", "entry_actions.failed_to_save_to_instapaper": "Instapaper への保存に失敗しました。", "entry_actions.failed_to_save_to_obsidian": "Obsidian への保存に失敗しました。", - "entry_actions.failed_to_save_to_omnivore": "Omnivore への保存に失敗しました。", "entry_actions.failed_to_save_to_outline": "Outline への保存に失敗しました。", + "entry_actions.failed_to_save_to_readeck": "Readeck への保存に失敗しました。", "entry_actions.failed_to_save_to_readwise": "Readwise への保存に失敗しました。", "entry_actions.mark_as_read": "既読にする", "entry_actions.mark_as_unread": "未読にする", @@ -121,19 +121,21 @@ "entry_actions.save_media_to_eagle": "メディアを Eagle に保存", "entry_actions.save_to_instapaper": "Instapaper に保存", "entry_actions.save_to_obsidian": "Obsidian に保存", - "entry_actions.save_to_omnivore": "Omnivore に保存", "entry_actions.save_to_outline": "Outline に保存", + "entry_actions.save_to_readeck": "Readeck に保存", "entry_actions.save_to_readwise": "Readwise に保存", "entry_actions.saved_to_eagle": "Eagle に保存されました。", "entry_actions.saved_to_instapaper": "Instapaper に保存されました。", "entry_actions.saved_to_obsidian": "Obsidian に保存されました。", - "entry_actions.saved_to_omnivore": "Omnivore に保存されました。", "entry_actions.saved_to_outline": "Outline に保存されました。", + "entry_actions.saved_to_readeck": "Readeck に保存されました。", "entry_actions.saved_to_readwise": "Readwise に保存されました。", "entry_actions.share": "共有", "entry_actions.star": "スター", "entry_actions.starred": "スターに追加されました。", "entry_actions.tip": "チップ", + "entry_actions.toggle_ai_summary": "AI 要約に切り替え", + "entry_actions.toggle_ai_translation": "AI 翻訳に切り替え", "entry_actions.unstar": "スターを解除", "entry_actions.unstarred": "スターが解除されました。", "entry_actions.view_source_content": "コンテンツをこの場で表示", @@ -190,6 +192,7 @@ "feed_claim_modal.tab_rss": "RSS タグ", "feed_claim_modal.title": "フィードをクレーム", "feed_claim_modal.verify_ownership": "このフィードを自分のものとしてクレームするには、所有権を確認する必要があります。", + "feed_form.add_feed": "フィードを追加", "feed_form.add_follow": "フォローを追加", "feed_form.category": "カテゴリー", "feed_form.category_description": "デフォルトでは、フォローはウェブサイトごとにグループ化されます。", @@ -198,6 +201,7 @@ "feed_form.fee_description": "このリストをフォローするにはリスト作成者が設定した手数料が必要です。", "feed_form.feed_not_found": "フィードが見つかりません。", "feed_form.feedback": "フィードバック", + "feed_form.fill_default": "入力する", "feed_form.follow": "フォロー", "feed_form.follow_with_fee": " {{fee}} Power で購読できます。", "feed_form.followed": "🎉 フォローしました。", @@ -244,7 +248,7 @@ "new_user_guide.step.behavior.unread_question.option2": "バランス: ホバーしたりスクロールが終わると自動で既読にします。", "new_user_guide.step.behavior.unread_question.option3": "コンサバ: クリックしたときのみ既読にします。", "new_user_guide.step.features.actions.description": "アクションルールはフィードごとに違ったアクションを実行できます。\n - AI を使った要約や翻訳 \n - エントリーの読み方の設定 \n - 新着エントリーの通知の有効/無効 \n - 特定のエントリーの書き換えやブロック \n - 新着エントリーの Webhook アドレスへの送信など", - "new_user_guide.step.features.integration.description": "統合により、他のサービスにエントリーを保存することができます。現在対応しているサービスは以下のとおりです:\n- Eagle \n- Readwise \n- Instapaper \n- Obsidian \n- Omnivore \n- Outline", + "new_user_guide.step.features.integration.description": "統合により、他のサービスにエントリーを保存することができます。現在対応しているサービスは以下のとおりです:\n- Eagle \n- Readwise \n- Instapaper \n- Obsidian \n- Outline \n- Readeck", "new_user_guide.step.migrate.profile": "プロファイルをセットアップ", "new_user_guide.step.migrate.title": "OPML ファイルを構成する", "new_user_guide.step.migrate.wallet": "ウォレットをチェック", @@ -279,7 +283,9 @@ "player.playback_rate": "再生速度", "player.unmute": "ミュート解除", "player.volume": "音量", - "resize.tooltip.double_click_to_collapse": "ダブルクリック して、たたむことができます。", + "quick_add.placeholder": "フィードをクイックフォローします、フィードのurlをここに入力してください...", + "quick_add.title": "クイックフォロー", + "resize.tooltip.double_click_to_collapse": "ダブルクリックk でたたみます", "resize.tooltip.drag_to_resize": "ドラッグ してリサイズできます", "search.empty.no_results": "結果が見つかりませんでした。", "search.group.entries": "エントリー", @@ -366,6 +372,7 @@ "user_button.power": "Power", "user_button.preferences": "設定", "user_button.profile": "プロフィール", + "user_button.zen_mode": "Zen モード", "user_profile.close": "閉じる", "user_profile.edit": "編集", "user_profile.loading": "読み込み中", diff --git a/locales/app/zh-CN.json b/locales/app/zh-CN.json index 36a03a85e..89b7c5d9e 100644 --- a/locales/app/zh-CN.json +++ b/locales/app/zh-CN.json @@ -111,8 +111,8 @@ "entry_actions.failed_to_save_to_eagle": "保存到 Eagle 失败。", "entry_actions.failed_to_save_to_instapaper": "保存到 Instapaper 失败。", "entry_actions.failed_to_save_to_obsidian": "保存到 Obsidian 失败。", - "entry_actions.failed_to_save_to_omnivore": "保存到 Omnivore 失败。", "entry_actions.failed_to_save_to_outline": "保存到 Outline 失败。", + "entry_actions.failed_to_save_to_readeck": "保存到 Readeck 失败。", "entry_actions.failed_to_save_to_readwise": "保存到 Readwise 失败。", "entry_actions.mark_as_read": "标记为已读", "entry_actions.mark_as_unread": "标记为未读", @@ -121,19 +121,21 @@ "entry_actions.save_media_to_eagle": "保存到 Eagle", "entry_actions.save_to_instapaper": "保存到 Instapaper", "entry_actions.save_to_obsidian": "保存到 Obsidian", - "entry_actions.save_to_omnivore": "保存到 Omnivore", "entry_actions.save_to_outline": "保存到 Outline", + "entry_actions.save_to_readeck": "保存到 Readeck", "entry_actions.save_to_readwise": "保存到 Readwise", "entry_actions.saved_to_eagle": "已保存到 Eagle。", "entry_actions.saved_to_instapaper": "已保存到 Instapaper。", "entry_actions.saved_to_obsidian": "已保存到 Obsidian。", - "entry_actions.saved_to_omnivore": "已保存到 Omnivore。", "entry_actions.saved_to_outline": "已保存到 Outline。", + "entry_actions.saved_to_readeck": "已保存到 Readeck。", "entry_actions.saved_to_readwise": "已保存到 Readwise。", "entry_actions.share": "分享", "entry_actions.star": "收藏", "entry_actions.starred": "已收藏", "entry_actions.tip": "打赏", + "entry_actions.toggle_ai_summary": "切换 AI 摘要", + "entry_actions.toggle_ai_translation": "切换 AI 翻译", "entry_actions.unstar": "取消收藏", "entry_actions.unstarred": "取消收藏", "entry_actions.view_source_content": "查看原文", @@ -199,6 +201,7 @@ "feed_form.fee_description": "如需订阅此列表,需支付订阅费用。", "feed_form.feed_not_found": "未找到订阅源", "feed_form.feedback": "反馈", + "feed_form.fill_default": "填充", "feed_form.follow": "订阅", "feed_form.follow_with_fee": "使用 {{fee}} Power 订阅", "feed_form.followed": "🎉 订阅成功", @@ -245,7 +248,7 @@ "new_user_guide.step.behavior.unread_question.option2": "平衡:悬停或滚出视野时自动标记为已读。", "new_user_guide.step.behavior.unread_question.option3": "被动:仅在点击时标记为已读。", "new_user_guide.step.features.actions.description": "自动化规则允许你对不同的订阅执行不同的操作。\n- 使用 AI 进行摘要或翻译\n- 配置阅读条目的方式\n- 启用新条目的通知或静音\n- 重写或屏蔽特定条目\n- 将新条目发送到 webhook 地址", - "new_user_guide.step.features.integration.description": "集成允许你将条目保存到其他服务。目前支持的服务有:\n- Eagle\n- Readwise\n- Instapaper\n- Obsidian", + "new_user_guide.step.features.integration.description": "集成允许你将条目保存到其他服务。目前支持的服务有:\n- Eagle\n- Readwise\n- Instapaper\n- Obsidian\n- Outline\n- Readeck", "new_user_guide.step.migrate.profile": "设置你的个人资料", "new_user_guide.step.migrate.title": "从 OPML 文件导入", "new_user_guide.step.migrate.wallet": "检查你的钱包", @@ -369,6 +372,7 @@ "user_button.power": "Power", "user_button.preferences": "设置", "user_button.profile": "个人资料", + "user_button.zen_mode": "禅定模式", "user_profile.close": "关闭", "user_profile.edit": "编辑", "user_profile.loading": "加载中", @@ -399,7 +403,7 @@ "words.starred": "收藏", "words.title": "标题", "words.transform": "转换", - "words.trending": "热门", + "words.trending": "趋势", "words.undo": "撤销", "words.unread": "未读", "words.user": "用户", diff --git a/locales/app/zh-HK.json b/locales/app/zh-HK.json index 119bf0811..8bbe364a9 100644 --- a/locales/app/zh-HK.json +++ b/locales/app/zh-HK.json @@ -111,8 +111,8 @@ "entry_actions.failed_to_save_to_eagle": "無法儲存至 Eagle", "entry_actions.failed_to_save_to_instapaper": "無法儲存至 Instapaper", "entry_actions.failed_to_save_to_obsidian": "無法儲存至 Obsidian ", - "entry_actions.failed_to_save_to_omnivore": "無法儲存至 Omnivore", "entry_actions.failed_to_save_to_outline": "無法儲存至 Outline", + "entry_actions.failed_to_save_to_readeck": "無法儲存至 Readeck", "entry_actions.failed_to_save_to_readwise": "無法儲存至 Readwise", "entry_actions.mark_as_read": "標記為已讀", "entry_actions.mark_as_unread": "標記為未讀", @@ -121,19 +121,21 @@ "entry_actions.save_media_to_eagle": "儲存媒體至 Eagle", "entry_actions.save_to_instapaper": "儲存至 Instapaper", "entry_actions.save_to_obsidian": "儲存至 Obsidian", - "entry_actions.save_to_omnivore": "儲存至 Omnivore", "entry_actions.save_to_outline": "儲存至 Outline", + "entry_actions.save_to_readeck": "儲存至 Readeck", "entry_actions.save_to_readwise": "儲存至 Readwise", "entry_actions.saved_to_eagle": "已儲存至 Eagle", "entry_actions.saved_to_instapaper": "已儲存至 Instapaper", "entry_actions.saved_to_obsidian": "已儲存至 Obsidian", - "entry_actions.saved_to_omnivore": "已儲存至 Omnivore", "entry_actions.saved_to_outline": "已儲存至 Outline", + "entry_actions.saved_to_readeck": "已儲存至 Readeck", "entry_actions.saved_to_readwise": "已儲存至 Readwise", "entry_actions.share": "分享", "entry_actions.star": "收藏", "entry_actions.starred": "已收藏", "entry_actions.tip": "贊助", + "entry_actions.toggle_ai_summary": "切換 AI 摘要", + "entry_actions.toggle_ai_translation": "切換 AI 翻譯", "entry_actions.unstar": "取消收藏", "entry_actions.unstarred": "已取消收藏", "entry_actions.view_source_content": "查看原始內容", @@ -153,9 +155,13 @@ "entry_content.web_app_notice": "網頁應用可能不支持此內容類型。你可以下載桌面應用程式。", "entry_list.zero_unread": "全部已讀", "entry_list_header.daily_report": "每日報告", + "entry_list_header.grid": "Grid", "entry_list_header.hide_no_image_items": "隱藏沒有圖片的條目", "entry_list_header.items": "項目", + "entry_list_header.masonry": "Masonry", + "entry_list_header.masonry_column": "Masonry 欄", "entry_list_header.new_entries_available": "有新條目可用", + "entry_list_header.preview_mode": "預覽模式", "entry_list_header.refetch": "重新抓取", "entry_list_header.refresh": "重新整理", "entry_list_header.show_all": "顯示所有", @@ -186,6 +192,7 @@ "feed_claim_modal.tab_rss": "RSS 標籤", "feed_claim_modal.title": "認領訂閱源", "feed_claim_modal.verify_ownership": "要認領這個訂閱源,你需要驗證所有權。", + "feed_form.add_feed": "新增訂閱源", "feed_form.add_follow": "新增追隨", "feed_form.category": "分類", "feed_form.category_description": "默認情況下,你的追隨會按網站分組。", @@ -240,7 +247,7 @@ "new_user_guide.step.behavior.unread_question.option2": "平衡:懸停或滾出視野時自動標記為已讀", "new_user_guide.step.behavior.unread_question.option3": "被動:僅在點擊時標記為已讀", "new_user_guide.step.features.actions.description": "自動化規則允許你對不同的訂閱執行不同的動作\n- 使用 AI 進行摘要或翻譯\n- 配置閱讀條目的方式\n- 啟用新條目的通知或靜音\n- 重寫或封鎖特定條目\n- 將新條目發送到 webhook 地址", - "new_user_guide.step.features.integration.description": "集成允許你將條目儲存到其他服務。目前支持的服務有:\n- Eagle\n- Readwise\n- Instapaper\n- Obsidian", + "new_user_guide.step.features.integration.description": "集成允許你將條目儲存到其他服務。目前支持的服務有:\n- Eagle\n- Readwise\n- Instapaper\n- Obsidian\n- Outline\n- Readeck", "new_user_guide.step.migrate.profile": "設定你的個人資料", "new_user_guide.step.migrate.title": "從 OPML 檔案匯入", "new_user_guide.step.migrate.wallet": "檢查你的銀包", @@ -261,6 +268,7 @@ "notify.unfollow_feed_many": "已取消追隨所有選取的訂閲源", "notify.update_info": "{{app_name}} 已準備好更新!", "notify.update_info_1": "點擊以重新啟動", + "notify.update_info_2": "點擊以重新載入頁面", "player.back_10s": "倒退 10 秒", "player.close": "關閉", "player.download": "下載", @@ -274,6 +282,8 @@ "player.playback_rate": "播放速度", "player.unmute": "取消靜音", "player.volume": "音量", + "quick_add.placeholder": "快速追隨訂閱源,請在此輸入訂閱源網址...", + "quick_add.title": "快速追隨", "resize.tooltip.double_click_to_collapse": "雙擊以摺疊", "resize.tooltip.drag_to_resize": "拖曳以調整大小", "search.empty.no_results": "未找到結果", @@ -333,6 +343,7 @@ "sidebar.feed_column.context_menu.rename_category_error": "重命名分類失敗", "sidebar.feed_column.context_menu.rename_category_success": "分類已成功重命名", "sidebar.select_sort_method": "選擇排序方法", + "signin.continue_with": "繼續使用 {{provider}}", "signin.sign_in_to": "登入至", "sync_indicator.disabled": "由於安全原因,同步已禁用。", "sync_indicator.offline": "離線", @@ -390,7 +401,6 @@ "words.starred": "收藏", "words.title": "標題", "words.transform": "轉換", - "words.trending": "熱門", "words.undo": "取消動作", "words.unread": "未讀", "words.user": "使用者", diff --git a/locales/app/zh-TW.json b/locales/app/zh-TW.json index 89c8c9c50..775c75704 100644 --- a/locales/app/zh-TW.json +++ b/locales/app/zh-TW.json @@ -111,8 +111,8 @@ "entry_actions.failed_to_save_to_eagle": "無法儲存到 Eagle。", "entry_actions.failed_to_save_to_instapaper": "無法儲存到 Instapaper。", "entry_actions.failed_to_save_to_obsidian": "儲存到 Obsidian 失敗", - "entry_actions.failed_to_save_to_omnivore": "無法儲存到 Omnivore。", "entry_actions.failed_to_save_to_outline": "無法儲存到 Outline。", + "entry_actions.failed_to_save_to_readeck": "無法儲存到 Readeck。", "entry_actions.failed_to_save_to_readwise": "無法儲存到 Readwise。", "entry_actions.mark_as_read": "標記為已讀", "entry_actions.mark_as_unread": "標記為未讀", @@ -121,19 +121,21 @@ "entry_actions.save_media_to_eagle": "儲存媒體至 Eagle", "entry_actions.save_to_instapaper": "儲存到 Instapaper", "entry_actions.save_to_obsidian": "儲存到 Obsidian", - "entry_actions.save_to_omnivore": "儲存到 Omnivore", "entry_actions.save_to_outline": "儲存到 Outline", + "entry_actions.save_to_readeck": "儲存到 Readeck", "entry_actions.save_to_readwise": "儲存到 Readwise", "entry_actions.saved_to_eagle": "已儲存至 Eagle。", "entry_actions.saved_to_instapaper": "已儲存至 Instapaper。", "entry_actions.saved_to_obsidian": "已儲存到 Obsidian", - "entry_actions.saved_to_omnivore": "已儲存至 Omnivore。", "entry_actions.saved_to_outline": "已儲存至 Outline。", + "entry_actions.saved_to_readeck": "已儲存至 Readeck。", "entry_actions.saved_to_readwise": "已儲存至 Readwise。", "entry_actions.share": "分享", "entry_actions.star": "收藏", "entry_actions.starred": "已收藏", "entry_actions.tip": "贊助", + "entry_actions.toggle_ai_summary": "切換 AI 摘要", + "entry_actions.toggle_ai_translation": "切換 AI 翻譯", "entry_actions.unstar": "取消收藏", "entry_actions.unstarred": "已取消收藏", "entry_actions.view_source_content": "查看原始內容", @@ -153,9 +155,13 @@ "entry_content.web_app_notice": "Web 應用程式不支援此類型內容。您可以下載桌面應用程式。", "entry_list.zero_unread": "零未讀", "entry_list_header.daily_report": "每日報告", + "entry_list_header.grid": "格線佈局", "entry_list_header.hide_no_image_items": "隱藏無圖條目", "entry_list_header.items": "項目", + "entry_list_header.masonry": "瀑布式佈局", + "entry_list_header.masonry_column": "佈局列數", "entry_list_header.new_entries_available": "有新項目可用", + "entry_list_header.preview_mode": "預覽模式", "entry_list_header.refetch": "重新獲取", "entry_list_header.refresh": "重新整理", "entry_list_header.show_all": "顯示全部", @@ -186,6 +192,7 @@ "feed_claim_modal.tab_rss": "RSS 標籤", "feed_claim_modal.title": "認領摘要", "feed_claim_modal.verify_ownership": "要認領此摘要為您的內容,您需要驗證所有權。", + "feed_form.add_feed": "新增訂閱源", "feed_form.add_follow": "關注", "feed_form.category": "類別", "feed_form.category_description": "預設情況下,您的關注將按網站分組。", @@ -240,7 +247,7 @@ "new_user_guide.step.behavior.unread_question.option2": "平衡:滑過或離開視圖時自動標記為已讀。", "new_user_guide.step.behavior.unread_question.option3": "保守:僅在點擊時標記為已讀。", "new_user_guide.step.features.actions.description": "指令允許您為不同的訂閱源設定操作。\n- 使用 AI 進行總結或翻譯。\n- 設定條目的閱讀方式。\n- 為新條目啟用通知或靜音。\n- 覆寫或封鎖特定條目。\n- 將新條目發送到 webhook。", - "new_user_guide.step.features.integration.description": "整合功能允許您將條目保存到其他服務。目前支持的服務包括:\n- Eagle\n- Readwise\n- Instapaper\n- Obsidian", + "new_user_guide.step.features.integration.description": "整合功能允許您將條目保存到其他服務。目前支持的服務包括:\n- Eagle\n- Readwise\n- Instapaper\n- Obsidian\n- Outline\n- Readeck", "new_user_guide.step.migrate.profile": "設定您的個人資料", "new_user_guide.step.migrate.title": "從 OPML 文件導入", "new_user_guide.step.migrate.wallet": "檢查您的錢包", @@ -261,6 +268,7 @@ "notify.unfollow_feed_many": "所有選擇的訂閱已取消關注。", "notify.update_info": "{{app_name}} 已準備好更新!", "notify.update_info_1": "點擊重新啟動", + "notify.update_info_2": "點擊重新整理頁面", "player.back_10s": "後退 10 秒", "player.close": "關閉", "player.download": "下載", @@ -274,6 +282,8 @@ "player.playback_rate": "播放速率", "player.unmute": "取消靜音", "player.volume": "音量", + "quick_add.placeholder": "在此輸入訂閱源網址已快速訂閱...", + "quick_add.title": "快速訂閱", "resize.tooltip.double_click_to_collapse": "雙擊以摺疊", "resize.tooltip.drag_to_resize": "拖動以調整大小", "search.empty.no_results": "未找到結果。", @@ -333,6 +343,7 @@ "sidebar.feed_column.context_menu.rename_category_error": "重命名類別失敗", "sidebar.feed_column.context_menu.rename_category_success": "類別重命名成功", "sidebar.select_sort_method": "選擇排序方式", + "signin.continue_with": "透過 {{provider}} 登入", "signin.sign_in_to": "登入", "sync_indicator.disabled": "由於安全原因,同步功能已停用。", "sync_indicator.offline": "離線", @@ -390,7 +401,6 @@ "words.starred": "收藏", "words.title": "標題", "words.transform": "轉換", - "words.trending": "熱門", "words.undo": "撤銷", "words.unread": "未讀", "words.user": "使用者", diff --git a/locales/common/zh-TW.json b/locales/common/zh-TW.json index fd25b710f..f45dbb134 100644 --- a/locales/common/zh-TW.json +++ b/locales/common/zh-TW.json @@ -14,6 +14,7 @@ "tips.load-lng-error": "語言包載入失敗", "words.actions": "操作", "words.ago": "前", + "words.all": "全部", "words.back": "返回", "words.copy": "複製", "words.create": "創建", diff --git a/locales/errors/en.json b/locales/errors/en.json index a8146ab10..5ed38a44e 100644 --- a/locales/errors/en.json +++ b/locales/errors/en.json @@ -1,6 +1,5 @@ { "1": "Previous operation is not completed", - "2": "CSRF Token mismatch", "3": "Unprocessable content", "1000": "Unauthorized", "1001": "create session failed", diff --git a/locales/errors/ja.json b/locales/errors/ja.json index 739b8a5da..3510ee040 100644 --- a/locales/errors/ja.json +++ b/locales/errors/ja.json @@ -1,6 +1,5 @@ { "1": "前回の操作が完了していません", - "2": "CSRF トークンがマッチしません", "3": "加工できないコンテンツです", "1000": "認証されていません", "1001": "セッションの作成に失敗しました", diff --git a/locales/errors/zh-CN.json b/locales/errors/zh-CN.json index 877bb0d95..c36ec8c12 100644 --- a/locales/errors/zh-CN.json +++ b/locales/errors/zh-CN.json @@ -1,6 +1,5 @@ { "1": "上一步未完成", - "2": "CSRF Token 无效", "3": "无法处理的内容", "1000": "未授权", "1001": "创建会话失败", diff --git a/locales/errors/zh-HK.json b/locales/errors/zh-HK.json index 92721cf46..ea602a60f 100644 --- a/locales/errors/zh-HK.json +++ b/locales/errors/zh-HK.json @@ -1,6 +1,5 @@ { "1": "上一步未完成", - "2": "CSRF Token 無效", "3": "無法處理的內容", "1000": "未經授權", "1001": "建立會話失敗", diff --git a/locales/errors/zh-TW.json b/locales/errors/zh-TW.json index 9b231a2f6..328614a4b 100644 --- a/locales/errors/zh-TW.json +++ b/locales/errors/zh-TW.json @@ -1,11 +1,12 @@ { "1": "上一操作未完成", - "2": "CSRF Token 無效", + "3": "無法處理的內容", "1000": "未經授權", "1001": "建立會話失敗", "1002": "參數無效", "1003": "邀請無效", "1004": "無權限", + "1005": "內部錯誤", "1100": "超出預覽版訂閲源最大數量限制", "1101": "超出預覽版訂閲列表最大數量限制", "1102": "超出預覽版收件箱最大數量限制", @@ -23,11 +24,12 @@ "4002": "餘額不足", "4003": "動態可提領餘額不足", "4004": "目標使用者錢包錯誤", - "4005": "每日 power 计算中", + "4005": "每日 power 計算中", "4006": "無效助力數量", "4010": "空投不符合資格", "4011": "空投正在發送", "4012": "空投已發送", + "4013": "空投未驗證", "5000": "邀請數量已達上限,請幾天後再試", "5001": "邀請已存在", "5002": "邀請碼已被使用", diff --git a/locales/external/en.json b/locales/external/en.json index d7a12ef08..f4fbd5c48 100644 --- a/locales/external/en.json +++ b/locales/external/en.json @@ -16,6 +16,7 @@ "feed_item.claimed_by_unknown": "its owner.", "feed_item.claimed_by_you": "Claimed by you", "feed_item.claimed_feed": "Claimed Feed", + "feed_item.claimed_list": "Claimed List", "feed_item.error_since": "Error since", "feed_item.not_publicly_visible": "Not publicly visible on your profile page", "header.app": "App", diff --git a/locales/external/zh-HK.json b/locales/external/zh-HK.json index 5a4cc1b48..d505fbfb0 100644 --- a/locales/external/zh-HK.json +++ b/locales/external/zh-HK.json @@ -31,6 +31,7 @@ "invitation.getCodeMessage": "你可以通過以下方式獲取邀請碼:", "invitation.title": "邀請碼", "login.backToWebApp": "返回網頁應用程式", + "login.continueWith": "繼續使用 {{provider}}", "login.logInTo": "登錄到", "login.openApp": "打開應用程式", "login.redirecting": "重定向中", diff --git a/locales/external/zh-TW.json b/locales/external/zh-TW.json index e2e15c26d..bd5e91de6 100644 --- a/locales/external/zh-TW.json +++ b/locales/external/zh-TW.json @@ -31,6 +31,7 @@ "invitation.getCodeMessage": "您可以通過以下方式獲取邀請碼:", "invitation.title": "邀請碼", "login.backToWebApp": "返回網頁應用程式", + "login.continueWith": "透過 {{provider}} 登入", "login.logInTo": "登入至 ", "login.openApp": "開啟應用程式", "login.redirecting": "正在重定向", diff --git a/locales/native/zh-TW.json b/locales/native/zh-TW.json index 0cf4b3138..c8626b128 100644 --- a/locales/native/zh-TW.json +++ b/locales/native/zh-TW.json @@ -19,8 +19,12 @@ "contextMenu.searchWithGoogle": "使用 Google 搜尋", "contextMenu.selectAll": "全選", "contextMenu.services": "服務", + "dialog.cancel": "取消", "dialog.clearAllData": "您確定要清除所有資料嗎?", "dialog.no": "否", + "dialog.open": "開啟", + "dialog.openExternalApp.message": "確定要使用其他App開啟 {{url}} 嗎?", + "dialog.openExternalApp.title": "開啟外部App?", "dialog.yes": "是", "menu.about": "關於 {{name}}", "menu.actualSize": "實際大小", diff --git a/locales/settings/en.json b/locales/settings/en.json index 2397ca3de..7b45b484b 100644 --- a/locales/settings/en.json +++ b/locales/settings/en.json @@ -149,6 +149,8 @@ "general.reduce_refetch.label": "Reduce timeline refetch", "general.send_anonymous_data.description": "By opting to send anonymized telemetry data, you contribute to improving the overall user experience of Follow.", "general.send_anonymous_data.label": "Send anonymous data", + "general.show_quick_timeline.description": "Show the quick timeline at the top of the feed list.", + "general.show_quick_timeline.label": "Show feed list timeline", "general.show_unread_on_launch.description": "Show unread content on launch", "general.show_unread_on_launch.label": "Show unread content on launch", "general.sidebar": "Sidebar", @@ -173,13 +175,6 @@ "integration.obsidian.title": "Obsidian", "integration.obsidian.vaultPath.description": "The path to your Obsidian vault.", "integration.obsidian.vaultPath.label": "Obsidian Vault Path", - "integration.omnivore.enable.description": "Display 'Save to Omnivore' button when available.", - "integration.omnivore.enable.label": "Enable", - "integration.omnivore.endpoint.description": "Omnivore Official Endpoint is: ", - "integration.omnivore.endpoint.label": "Omnivore Endpoint", - "integration.omnivore.title": "Omnivore", - "integration.omnivore.token.description": "You can get it here: ", - "integration.omnivore.token.label": "Omnivore API Key", "integration.outline.collection.description": "The UUID or urlId of the collection where the documents is saved.", "integration.outline.collection.label": "Outline Collection", "integration.outline.enable.description": "Display 'Save to Outline' button when available.", @@ -189,6 +184,13 @@ "integration.outline.title": "Outline", "integration.outline.token.description": "You can get it from your Outline account settings.", "integration.outline.token.label": "Outline API Key", + "integration.readeck.enable.description": "Display 'Save to Readeck' button when available.", + "integration.readeck.enable.label": "Enable", + "integration.readeck.endpoint.description": "The URL is 'https://'.", + "integration.readeck.endpoint.label": "Readeck API Base URL", + "integration.readeck.title": "Readeck", + "integration.readeck.token.description": "You can get it from your Readeck account settings.", + "integration.readeck.token.label": "Readeck API Token", "integration.readwise.enable.description": "Display 'Save to Readwise' button when available.", "integration.readwise.enable.label": "Enable", "integration.readwise.title": "Readwise", diff --git a/locales/settings/ja.json b/locales/settings/ja.json index 519af0346..d501a3b52 100644 --- a/locales/settings/ja.json +++ b/locales/settings/ja.json @@ -149,7 +149,9 @@ "general.reduce_refetch.label": "リフェッチ頻度", "general.send_anonymous_data.description": "匿名化されたテレメトリーデータを送信することにより、Follow の全体的なユーザーエクスペリエンスの向上に貢献します。", "general.send_anonymous_data.label": "匿名データを送信", - "general.show_unread_on_launch.description": "起動時に未読コンテンツを表示", + "general.show_quick_timeline.description": "フィードリストの最上部にクイックタイムラインを表示する", + "general.show_quick_timeline.label": "フィードリストにタイムラインを表示する", + "general.show_unread_on_launch.description": "起動時に未読数を表示する", "general.show_unread_on_launch.label": "起動時に未読コンテンツを表示", "general.sidebar": "サイドバー", "general.sidebar_title": "一般", @@ -157,6 +159,7 @@ "general.startup_screen.timeline": "タイムライン", "general.startup_screen.title": "スタートアップスクリーン", "general.timeline": "タイムライン", + "general.translation_language": "翻訳する言語", "general.unread": "未読", "general.voices": "音声", "integration.eagle.enable.description": "利用可能な場合、'Eagle にメディアを保存' ボタンを表示します。", @@ -172,22 +175,22 @@ "integration.obsidian.title": "Obsidian", "integration.obsidian.vaultPath.description": "Obsidian vaultのパスを指定します", "integration.obsidian.vaultPath.label": "Obsidian Vault パス", - "integration.omnivore.enable.description": "利用可能な場合、'Omnivore に保存' ボタンを表示します。", - "integration.omnivore.enable.label": "有効化", - "integration.omnivore.endpoint.description": "Omnivore の公式 Endpoint", - "integration.omnivore.endpoint.label": "Omnivore Endpoint", - "integration.omnivore.title": "Omnivore", - "integration.omnivore.token.description": "こちらで取得できます:", - "integration.omnivore.token.label": "Omnivore API Key", "integration.outline.collection.description": "ドキュメントに保存された UUID または urlId コレクションです。", "integration.outline.collection.label": "Outline コレクション", "integration.outline.enable.description": "利用可能なとき 'Outline に保存' ボタンを表示します。", "integration.outline.enable.label": "有効化", "integration.outline.endpoint.description": "URL は 'https:///api'。", - "integration.outline.endpoint.label": "Outline API Base URL", + "integration.outline.endpoint.label": "Outline API のベース URL", "integration.outline.title": "Outline", "integration.outline.token.description": "Outline のアカウント設定で取得できます。", "integration.outline.token.label": "Outline API Key", + "integration.readeck.enable.description": "利用可能なとき 'Readeck に保存' ボタンを表示します。", + "integration.readeck.enable.label": "有効化", + "integration.readeck.endpoint.description": "URL は 'https://'。", + "integration.readeck.endpoint.label": "Readeck API Base URL", + "integration.readeck.title": "Readeck", + "integration.readeck.token.description": "Readeck のアカウント設定で取得できます。", + "integration.readeck.token.label": "Readeck API Key", "integration.readwise.enable.description": "利用可能な場合、'Readwise に保存' ボタンを表示します。", "integration.readwise.enable.label": "有効化", "integration.readwise.title": "Readwise", diff --git a/locales/settings/zh-CN.json b/locales/settings/zh-CN.json index 383d563cd..7205e0802 100644 --- a/locales/settings/zh-CN.json +++ b/locales/settings/zh-CN.json @@ -149,6 +149,8 @@ "general.reduce_refetch.label": "降低时间线重取频率", "general.send_anonymous_data.description": "发送匿名用户数据,帮助产品改进和功能迭代。", "general.send_anonymous_data.label": "发送匿名数据", + "general.show_quick_timeline.description": "在时间线顶部显示列表和分类的时间线快递导航。", + "general.show_quick_timeline.label": "显示时间线快速导航", "general.show_unread_on_launch.description": "启动时显示未读内容。", "general.show_unread_on_launch.label": "启动时显示未读内容", "general.sidebar": "侧边栏", @@ -157,6 +159,7 @@ "general.startup_screen.timeline": "时间线", "general.startup_screen.title": "起始界面", "general.timeline": "时间线", + "general.translation_language": "翻译语言", "general.unread": "未读", "general.voices": "声音", "integration.eagle.enable.description": "显示「保存到 Eagle」按钮(如果可用)。", @@ -172,13 +175,6 @@ "integration.obsidian.title": "Obsidian", "integration.obsidian.vaultPath.description": "你的 Obsidian 仓库的路径", "integration.obsidian.vaultPath.label": "Obsidian 仓库路径", - "integration.omnivore.enable.description": "显示「保存到 Omnivore」按钮(如果可用)。", - "integration.omnivore.enable.label": "启用", - "integration.omnivore.endpoint.description": "Omnivore 官方接口", - "integration.omnivore.endpoint.label": "Omnivore 访问域名", - "integration.omnivore.title": "Omnivore", - "integration.omnivore.token.description": "在这里获取 API 密钥", - "integration.omnivore.token.label": "Omnivore API 密钥", "integration.outline.collection.description": "保存文档的文档集的 UUID 或 urlId。", "integration.outline.collection.label": "Outline 文档集", "integration.outline.enable.description": "显示「保存到 Outline」按钮(如果可用)。", @@ -188,6 +184,13 @@ "integration.outline.title": "Outline", "integration.outline.token.description": "在你的 Outline 账户设置中获取。", "integration.outline.token.label": "Outline API 密钥", + "integration.readeck.enable.description": "显示「保存到 Readeck」按钮(如果可用)。", + "integration.readeck.enable.label": "启用", + "integration.readeck.endpoint.description": "此地址为「https://<你的 READECK 域名>」。", + "integration.readeck.endpoint.label": "Readeck 接口地址", + "integration.readeck.title": "Readeck", + "integration.readeck.token.description": "在你的 Readeck 账户设置中获取。", + "integration.readeck.token.label": "Readeck API 密钥", "integration.readwise.enable.description": "显示「保存到 Readwise」按钮(如果可用)。", "integration.readwise.enable.label": "启用", "integration.readwise.title": "Readwise", diff --git a/locales/settings/zh-HK.json b/locales/settings/zh-HK.json index e43684320..e306378f9 100644 --- a/locales/settings/zh-HK.json +++ b/locales/settings/zh-HK.json @@ -111,6 +111,7 @@ "general.auto_group.label": "自動分組", "general.cache": "快取", "general.data": "數據", + "general.data_file.label": "數據文件", "general.data_persist.description": "本地儲存數據以啟用離線存取和本地搜尋", "general.data_persist.label": "離線使用時保留數據", "general.export.button": "匯出", @@ -123,6 +124,9 @@ "general.group_by_date.label": "按日期分組", "general.language": "語言", "general.launch_at_login": "登入時啟動", + "general.log_file.button": "顯示", + "general.log_file.description": "在系統中顯示日誌文件", + "general.log_file.label": "日誌文件", "general.mark_as_read.hover.description": "游標懸停時自動將條目標記為已讀", "general.mark_as_read.hover.label": "懸停時標記為已讀", "general.mark_as_read.render.description": "當條目進入視圖時,會自動標記單層條目(例如社交媒體貼文、圖片、視頻觀看)為已讀。", @@ -145,6 +149,8 @@ "general.reduce_refetch.label": "減少時間軸重新獲取", "general.send_anonymous_data.description": "選擇發送匿名的遙測數據,將有助於提升 Follow 的整體用戶體驗。", "general.send_anonymous_data.label": "發送匿名數據", + "general.show_quick_timeline.description": "在訂閱源清單頂部顯示快速時間軸。", + "general.show_quick_timeline.label": "顯示訂閱源清單時間軸", "general.show_unread_on_launch.description": "啟動時顯示未讀內容", "general.show_unread_on_launch.label": "啟動時顯示未讀內容", "general.sidebar": "側邊欄", @@ -153,6 +159,7 @@ "general.startup_screen.timeline": "時間軸", "general.startup_screen.title": "啟動畫面", "general.timeline": "時間軸", + "general.translation_language": "翻譯語言", "general.unread": "未讀", "general.voices": "語音", "integration.eagle.enable.description": "顯示「將媒體儲存到 Eagle」按鈕(如果可用)", @@ -168,13 +175,6 @@ "integration.obsidian.title": "Obsidian", "integration.obsidian.vaultPath.description": "你的 Obsidian 儲存庫的路徑", "integration.obsidian.vaultPath.label": "Obsidian 儲存庫路徑", - "integration.omnivore.enable.description": "顯示「儲存到 Omnivore」按钮(如果可用)", - "integration.omnivore.enable.label": "啟用", - "integration.omnivore.endpoint.description": "Omnivore 官方端口", - "integration.omnivore.endpoint.label": "Omnivore 端口", - "integration.omnivore.title": "Omnivore", - "integration.omnivore.token.description": "你可以在這裡獲取", - "integration.omnivore.token.label": "Omnivore API 密鑰", "integration.outline.collection.description": "儲存文件的集合的 UUID 或 urlId", "integration.outline.collection.label": "Outline Collection", "integration.outline.enable.description": "顯示「儲存到 Outline」按钮(如果可用)", @@ -184,6 +184,13 @@ "integration.outline.title": "Outline", "integration.outline.token.description": "您可以從 Outline 帳戶設置中獲取", "integration.outline.token.label": "Outline API 密鑰", + "integration.readeck.enable.description": "顯示「儲存到 Readeck」按钮(如果可用)", + "integration.readeck.enable.label": "啟用", + "integration.readeck.endpoint.description": "網址為 'https://'", + "integration.readeck.endpoint.label": "Readeck API 端口", + "integration.readeck.title": "Readeck", + "integration.readeck.token.description": "您可以從 Readeck 帳戶設置中獲取", + "integration.readeck.token.label": "Readeck API 密鑰", "integration.readwise.enable.description": "顯示「儲存到 Readwise」按钮(如果可用)", "integration.readwise.enable.label": "啟用", "integration.readwise.title": "Readwise", diff --git a/locales/settings/zh-TW.json b/locales/settings/zh-TW.json index 6e00ed651..5120f53e4 100644 --- a/locales/settings/zh-TW.json +++ b/locales/settings/zh-TW.json @@ -8,6 +8,7 @@ "actions.actionName": "操作 {{number}}", "actions.action_card.add": "新增", "actions.action_card.all": "全部", + "actions.action_card.and": "和", "actions.action_card.block": "封鎖", "actions.action_card.block_rules": "封鎖規則", "actions.action_card.custom_filters": "自訂過濾條件", @@ -36,6 +37,7 @@ "actions.action_card.operation_options.is_not_equal_to": "不等於", "actions.action_card.operation_options.matches_regex": "符合正規表達式", "actions.action_card.operator": "運算子", + "actions.action_card.or": "或", "actions.action_card.rewrite_rules": "重寫規則", "actions.action_card.silence": "靜音", "actions.action_card.source_content": "瀏覽原始内容", @@ -105,8 +107,11 @@ "feeds.tableHeaders.subscriptionCount": "訂閱數", "feeds.tableHeaders.tipAmount": "收到的贊助", "general.app": "App", + "general.auto_group.description": "自動依照網址域名分類訂閱源。", + "general.auto_group.label": "自動分類", "general.cache": "快取", "general.data": "資料", + "general.data_file.label": "資料檔案", "general.data_persist.description": "本機儲存資料以啟用離線瀏覽和離線搜尋。", "general.data_persist.label": "離線時儲存資料", "general.export.button": "匯出", @@ -119,6 +124,9 @@ "general.group_by_date.label": "按日期分組", "general.language": "語言", "general.launch_at_login": "登入時啟動", + "general.log_file.button": "顯示", + "general.log_file.description": "在系統中顯示記錄檔案。", + "general.log_file.label": "記錄檔案", "general.mark_as_read.hover.description": "游標懸停時自動將條目標記為已讀。", "general.mark_as_read.hover.label": "滑過時標記為已讀", "general.mark_as_read.render.description": "當單層級條目(例如社群媒體貼文、圖片、影片瀏覽)進入視圖時自動標記為已讀。", @@ -141,10 +149,17 @@ "general.reduce_refetch.label": "降低時間軸重新獲取次數", "general.send_anonymous_data.description": "選擇傳送匿名使用資料,您將幫助改善 Follow 的整體使用體驗。", "general.send_anonymous_data.label": "傳送匿名資料", + "general.show_quick_timeline.description": "在訂閱源列表頂部顯示快速時間軸。", + "general.show_quick_timeline.label": "顯示訂閱源列表時間軸", "general.show_unread_on_launch.description": "啟動時顯示未讀內容", "general.show_unread_on_launch.label": "啟動時顯示未讀內容", + "general.sidebar": "側邊欄", "general.sidebar_title": "一般", + "general.startup_screen.subscription": "訂閱", + "general.startup_screen.timeline": "時間軸", + "general.startup_screen.title": "開始畫面", "general.timeline": "時間軸", + "general.translation_language": "翻譯語言", "general.unread": "未讀", "general.voices": "聲音", "integration.eagle.enable.description": "顯示「將媒體儲存到 Eagle」按鈕(如果可用)。", @@ -160,13 +175,6 @@ "integration.obsidian.title": "Obsidian", "integration.obsidian.vaultPath.description": "您的 Obsidian 儲存庫的路徑", "integration.obsidian.vaultPath.label": "Obsidian 儲存庫路徑", - "integration.omnivore.enable.description": "顯示\"保存到 Omnivore\"按钮(如果可用)。", - "integration.omnivore.enable.label": "啟用", - "integration.omnivore.endpoint.description": "Omnivore 官方端口", - "integration.omnivore.endpoint.label": "Omnivore 端口", - "integration.omnivore.title": "Omnivore", - "integration.omnivore.token.description": "你可以在這裡獲取", - "integration.omnivore.token.label": "Omnivore API 密鑰", "integration.outline.collection.description": "儲存文檔的文檔集的 UUID 或 urlId", "integration.outline.collection.label": "Outline 文檔集", "integration.outline.enable.description": "顯示\"儲存到 Outline\"按鈕(如果可用)", @@ -176,6 +184,13 @@ "integration.outline.title": "Outline", "integration.outline.token.description": "在你的 Outline 帳戶設置中獲取", "integration.outline.token.label": "Outline API 密鑰", + "integration.readeck.enable.description": "顯示\"儲存到 Readeck\"按鈕(如果可用)", + "integration.readeck.enable.label": "啟用", + "integration.readeck.endpoint.description": "此網址為 \"https://<你的 READECK 域名>\"", + "integration.readeck.endpoint.label": "Readeck 端口網址", + "integration.readeck.title": "Readeck", + "integration.readeck.token.description": "在你的 Readeck 帳戶設置中獲取", + "integration.readeck.token.label": "Readeck API 密鑰", "integration.readwise.enable.description": "顯示「儲存到 Readwise」按钮(如果可用)。", "integration.readwise.enable.label": "啟用", "integration.readwise.title": "Readwise", diff --git a/package.json b/package.json index bfc65b3f2..516be5e8a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "Follow", "type": "module", - "version": "0.2.5-beta.0", + "version": "0.2.6-beta.0", "private": true, "packageManager": "pnpm@9.12.3", "description": "Follow your favorites in one inbox", @@ -70,7 +70,7 @@ "@tailwindcss/typography": "0.5.15", "@types/html-minifier-terser": "7.0.2", "@types/js-yaml": "4.0.9", - "@types/node": "^22.10.0", + "@types/node": "^22.10.1", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "@vercel/node": "3.2.27", @@ -87,11 +87,11 @@ "electron-devtools-installer": "3.2.0", "electron-packager-languages": "0.5.0", "electron-vite": "^2.3.0", - "eslint": "^9.15.0", - "eslint-config-hyoban": "^3.1.13", + "eslint": "^9.16.0", + "eslint-config-hyoban": "^3.1.14", "fake-indexeddb": "6.0.0", - "happy-dom": "15.11.6", - "hono": "4.6.11", + "happy-dom": "15.11.7", + "hono": "4.6.12", "html-minifier-terser": "7.2.0", "js-yaml": "4.1.0", "lint-staged": "15.2.10", @@ -114,11 +114,11 @@ "tsx": "4.19.2", "turbo": "2.3.3", "typescript": "5.7.2", - "unplugin-ast": "^0.11.0", - "vite": "^6.0.1", - "vite-bundle-analyzer": "0.14.3", + "unplugin-ast": "^0.12.0", + "vite": "6.0.2", + "vite-bundle-analyzer": "0.15.2", "vite-plugin-mkcert": "1.17.6", - "vite-plugin-pwa": "0.21.0", + "vite-plugin-pwa": "0.21.1", "vite-tsconfig-paths": "5.1.3", "vitest": "2.1.6" }, @@ -131,7 +131,8 @@ "@mozilla/readability": "patches/@mozilla__readability.patch", "daisyui": "patches/daisyui.patch", "jsonpointer": "patches/jsonpointer.patch", - "workbox-precaching": "patches/workbox-precaching.patch" + "workbox-precaching": "patches/workbox-precaching.patch", + "@tanstack/react-virtual@3.10.9": "patches/@tanstack__react-virtual@3.10.9.patch" }, "overrides": { "is-core-module": "npm:@nolyfill/is-core-module@^1", @@ -172,5 +173,5 @@ ] }, "productName": "Follow", - "mainHash": "d84fb4ff5722eed7d018b6e65af20dd449be0a6a8a4e5f9c31933f89e4e5bdd1" + "mainHash": "a17b3455d95c59da9a9724da5c9a04332f454caf2391c53ac32fc54184965658" } diff --git a/packages/components/assets/tailwind.css b/packages/components/assets/tailwind.css index 7947a3307..2fc3fd0ad 100644 --- a/packages/components/assets/tailwind.css +++ b/packages/components/assets/tailwind.css @@ -75,3 +75,7 @@ @apply print:!hidden; } } + +i { + @apply select-none; +} diff --git a/packages/components/package.json b/packages/components/package.json index 39e29abae..5c55925f1 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -16,8 +16,8 @@ "./utils/*": "./src/utils/*" }, "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" + "react": "^18.3.1", + "react-dom": "^18.3.1" }, "dependencies": { "@essentials/request-timeout": "1.3.0", @@ -37,7 +37,7 @@ "@radix-ui/react-navigation-menu": "1.2.1", "@radix-ui/react-popover": "1.1.2", "@radix-ui/react-radio-group": "1.2.1", - "@radix-ui/react-scroll-area": "1.2.0", + "@radix-ui/react-scroll-area": "1.2.1", "@radix-ui/react-select": "2.1.2", "@radix-ui/react-slider": "^1.2.1", "@radix-ui/react-slot": "1.1.0", @@ -49,13 +49,13 @@ "class-variance-authority": "0.7.1", "dayjs": "1.11.13", "foxact": "0.2.42", - "framer-motion": "11.11.17", + "framer-motion": "11.12.0", "jotai": "2.10.3", "masonic": "4.0.1", "react-blurhash": "^0.3.0", "react-fast-marquee": "1.6.5", "react-hook-form": "7.53.2", - "react-i18next": "^15.1.2", + "react-i18next": "^15.1.3", "sonner": "1.7.0", "use-context-selector": "2.0.0", "usehooks-ts": "3.1.0", diff --git a/packages/components/src/providers/event-provider.tsx b/packages/components/src/providers/event-provider.tsx index c4adbe3d8..2367f8908 100644 --- a/packages/components/src/providers/event-provider.tsx +++ b/packages/components/src/providers/event-provider.tsx @@ -23,6 +23,9 @@ export const EventProvider: FC = () => { h, w, }) + + const isMobile = window.innerWidth < 1024 + document.documentElement.dataset.viewport = isMobile ? "mobile" : "desktop" }, 16) readViewport() diff --git a/packages/components/src/ui/avatar/index.tsx b/packages/components/src/ui/avatar/index.tsx index 438c4549d..2e7e7abcd 100644 --- a/packages/components/src/ui/avatar/index.tsx +++ b/packages/components/src/ui/avatar/index.tsx @@ -2,7 +2,7 @@ import { cn } from "@follow/utils/utils" import * as AvatarPrimitive from "@radix-ui/react-avatar" import * as React from "react" -const Avatar = React.forwardRef< +export const Avatar = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( @@ -14,7 +14,7 @@ const Avatar = React.forwardRef< )) Avatar.displayName = AvatarPrimitive.Root.displayName -const AvatarImage = React.forwardRef< +export const AvatarImage = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( @@ -26,16 +26,17 @@ const AvatarImage = React.forwardRef< )) AvatarImage.displayName = AvatarPrimitive.Image.displayName -const AvatarFallback = React.forwardRef< +export const AvatarFallback = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName - -export { Avatar, AvatarFallback, AvatarImage } diff --git a/packages/components/src/ui/platform-icon/collections/omnivore.tsx b/packages/components/src/ui/platform-icon/collections/omnivore.tsx deleted file mode 100644 index 2700afcb8..000000000 --- a/packages/components/src/ui/platform-icon/collections/omnivore.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import type { SVGProps } from "react" - -export function SimpleIconsOmnivore(props: SVGProps) { - return ( - - - - ) -} diff --git a/packages/components/src/ui/platform-icon/collections/readeck.tsx b/packages/components/src/ui/platform-icon/collections/readeck.tsx new file mode 100644 index 000000000..cbbe8bd95 --- /dev/null +++ b/packages/components/src/ui/platform-icon/collections/readeck.tsx @@ -0,0 +1,50 @@ +import type { SVGProps } from "react" + +export function SimpleIconsReadeck(props: SVGProps) { + return ( + + + + + + + + + ) +} diff --git a/packages/components/src/ui/platform-icon/icons.ts b/packages/components/src/ui/platform-icon/icons.ts index 0744a734c..d5eba3fc9 100644 --- a/packages/components/src/ui/platform-icon/icons.ts +++ b/packages/components/src/ui/platform-icon/icons.ts @@ -1,7 +1,7 @@ export * from "./collections/eagle" export * from "./collections/instapaper" export * from "./collections/obsidian" -export * from "./collections/omnivore" export * from "./collections/outline" +export * from "./collections/readeck" export * from "./collections/readwise" export * from "./collections/rss3" diff --git a/packages/components/src/ui/scroll-area/ScrollArea.tsx b/packages/components/src/ui/scroll-area/ScrollArea.tsx index d2264efcb..1cc5b0e0d 100644 --- a/packages/components/src/ui/scroll-area/ScrollArea.tsx +++ b/packages/components/src/ui/scroll-area/ScrollArea.tsx @@ -52,7 +52,7 @@ const Scrollbar = React.forwardRef< className={cn( "flex w-2.5 touch-none select-none p-0.5", orientation === "horizontal" ? `h-2.5 w-full flex-col` : `w-2.5 flex-row`, - "animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", + "z-[3] animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", className, )} > diff --git a/packages/components/src/ui/sheet/Sheet.tsx b/packages/components/src/ui/sheet/Sheet.tsx index 394bd7cd8..cc0b0659e 100644 --- a/packages/components/src/ui/sheet/Sheet.tsx +++ b/packages/components/src/ui/sheet/Sheet.tsx @@ -25,7 +25,7 @@ export interface PresentSheetProps { } export type SheetRef = { - dismiss: () => void + dismiss: () => Promise } const MODAL_STACK_Z_INDEX = 1001 export const PresentSheet = forwardRef>( @@ -48,7 +48,12 @@ export const PresentSheet = forwardRef ({ dismiss: () => { - setIsOpen(false) + return new Promise((resolve) => { + setIsOpen(false) + setTimeout(() => { + resolve() + }, 500) + }) }, })) @@ -95,7 +100,7 @@ export const PresentSheet = forwardRef contentInnerRef.current!) return ( - + {!!children && {children}} (null) +const SetTabIndicatorContext = React.createContext< + React.Dispatch< + React.SetStateAction<{ + w: number + x: number + }> + > +>(() => {}) -const Tabs: typeof TabsPrimitive.Root = React.forwardRef((props, ref) => { - const { children, ...rest } = props +const TabVariantContext = React.createContext<"default" | "rounded" | undefined>(undefined) + +const TabIndicatorContext = React.createContext<{ + w: number + x: number +} | null>(null) + +const Tabs: React.ForwardRefExoticComponent< + TabsProps & + React.RefAttributes & { + variant?: "default" | "rounded" + } +> = React.forwardRef((props, ref) => { + const { children, variant, ...rest } = props + const [indicator, setIndicator] = React.useState({ + w: 0, + x: 0, + }) const id = React.useId() return ( - - {children} - + + + + {children} + + + ) }) -const tabsListVariants = cva("", { - variants: { - variant: { - default: "border-b", - rounded: "rounded-md bg-muted p-1", - }, - }, - defaultVariants: { - variant: "default", - }, -}) - -export interface TabsListProps - extends React.ComponentPropsWithoutRef, - VariantProps {} +export interface TabsListProps extends React.ComponentPropsWithoutRef {} const TabsList = React.forwardRef, TabsListProps>( - ({ className, variant, ...props }, ref) => ( - - ), + ({ className, ...props }, ref) => { + const indicator = React.useContext(TabIndicatorContext) + const variant = React.useContext(TabVariantContext) + + return ( + + {props.children} + + + + ) + }, ) TabsList.displayName = TabsPrimitive.List.displayName @@ -64,27 +95,32 @@ const tabsTriggerVariants = cva("", { }) export interface TabsTriggerProps - extends React.ComponentPropsWithoutRef, - VariantProps {} + extends React.ComponentPropsWithoutRef {} const TabsTrigger = React.forwardRef( - ({ className, variant, children, ...props }, ref) => { + ({ className, children, ...props }, ref) => { + const variant = React.useContext(TabVariantContext) const triggerRef = React.useRef(null) React.useImperativeHandle(ref, () => triggerRef.current!, []) - const [isSelect, setIsSelect] = React.useState(false) - const id = React.useContext(TabsIdContext) - const layoutId = `tab-selected-underline-${id}` + const setIndicator = React.useContext(SetTabIndicatorContext) + React.useLayoutEffect(() => { if (!triggerRef.current) return - const trigger = triggerRef.current as HTMLElement - - const isSelect = trigger.dataset.state === "active" - setIsSelect(isSelect) - const ob = new MutationObserver(() => { + const handler = () => { + const trigger = triggerRef.current as HTMLElement const isSelect = trigger.dataset.state === "active" - setIsSelect(isSelect) - }) + if (isSelect) { + setIndicator({ + w: trigger.clientWidth, + x: trigger.offsetLeft, + }) + } + } + + handler() + const trigger = triggerRef.current as HTMLElement + const ob = new MutationObserver(handler) ob.observe(trigger, { attributes: true, attributeFilter: ["data-state"], @@ -93,7 +129,7 @@ const TabsTrigger = React.forwardRef( return () => { ob.disconnect() } - }, []) + }, [setIndicator]) return ( ( "inline-flex items-center justify-center whitespace-nowrap px-3 text-sm font-medium ring-offset-background transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-theme-foreground", "group relative z-[1]", tabsTriggerVariants({ variant }), - // !isSelect && - // "hover:before:bg-theme-item-hover before:content-[''] before:pointer-events-none before:absolute before:inset-y-0 before:inset-x-1 before:duration-200 before:opacity-60 before:rounded-lg", - // className, )} {...props} > {children} - {isSelect && ( - - )} ) }, diff --git a/packages/hooks/package.json b/packages/hooks/package.json index 8688a5fc8..effa5a3e3 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -10,8 +10,8 @@ } }, "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" + "react": "^18.3.1", + "react-dom": "^18.3.1" }, "dependencies": { "@follow/shared": "workspace:*", diff --git a/packages/models/package.json b/packages/models/package.json index ae412f319..bab4f859c 100644 --- a/packages/models/package.json +++ b/packages/models/package.json @@ -18,6 +18,6 @@ "@follow/shared": "workspace:*", "@follow/types": "workspace:*", "@follow/utils": "workspace:*", - "hono": "4.6.11" + "hono": "4.6.12" } } diff --git a/packages/models/src/types.ts b/packages/models/src/types.ts index 8cf6f5b20..c43650c4d 100644 --- a/packages/models/src/types.ts +++ b/packages/models/src/types.ts @@ -5,9 +5,11 @@ import type { z } from "zod" declare const _apiClient: ReturnType> export type UserModel = Omit< - Omit, "email">, - "createdAt" -> + typeof users.$inferSelect, + "createdAt" | "updatedAt" | "email" | "emailVerified" +> & { + email?: string +} export type ExtractBizResponse any> = Exclude< Awaited>, diff --git a/packages/shared/package.json b/packages/shared/package.json index c059090b8..fcbdeca8b 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -31,14 +31,15 @@ "dependencies": { "@electron-toolkit/preload": "^3.0.1", "@electron-toolkit/tsconfig": "^1.0.1", - "@hono/node-server": "^1.13.7", + "@hono/node-server": "1.13.7", "@t3-oss/env-core": "^0.11.1", - "drizzle-orm": "^0.36.4", - "electron": "^33.2.0", - "hono": "^4.6.11", + "better-auth": "1.0.7", + "drizzle-orm": "0.36.4", + "electron": "33.2.0", + "hono": "4.6.12", "react": "^18.3.1", "react-dom": "^18.3.1", "sonner": "1.7.0", - "zod": "^3.23.8" + "zod": "3.23.8" } } diff --git a/packages/shared/src/auth.ts b/packages/shared/src/auth.ts new file mode 100644 index 000000000..f3a992c5a --- /dev/null +++ b/packages/shared/src/auth.ts @@ -0,0 +1,37 @@ +import { env } from "@follow/shared/env" +import type { authPlugins } from "@follow/shared/hono" +import type { BetterAuthClientPlugin } from "better-auth/client" +import { createAuthClient } from "better-auth/react" + +import { IN_ELECTRON, WEB_URL } from "./constants" + +const serverPlugins = [ + { + id: "getProviders", + $InferServerPlugin: {} as (typeof authPlugins)[0], + }, + { + id: "createSession", + $InferServerPlugin: {} as (typeof authPlugins)[1], + }, +] satisfies BetterAuthClientPlugin[] + +const authClient = createAuthClient({ + baseURL: `${env.VITE_API_URL}/better-auth`, + plugins: serverPlugins, +}) + +export const { signIn, signOut, getSession, getProviders, createSession } = authClient + +export const LOGIN_CALLBACK_URL = `${WEB_URL}/login` +export type LoginRuntime = "browser" | "app" +export const loginHandler = (provider: string, runtime: LoginRuntime = "app") => { + if (IN_ELECTRON) { + window.open(`${WEB_URL}/login?provider=${provider}`) + } else { + signIn.social({ + provider: provider as "google" | "github" | "apple", + callbackURL: runtime === "app" ? LOGIN_CALLBACK_URL : undefined, + }) + } +} diff --git a/packages/shared/src/bridge.ts b/packages/shared/src/bridge.ts index 15848af7e..8a02b4876 100644 --- a/packages/shared/src/bridge.ts +++ b/packages/shared/src/bridge.ts @@ -17,6 +17,12 @@ declare const dialog: { cancelText?: string }) => Promise } + +export enum WindowState { + MINIMIZED = "minimized", + MAXIMIZED = "maximized", + NORMAL = "normal", +} interface RenderGlobalContext { /// Access Settings showSetting: (path?: string) => void @@ -46,6 +52,9 @@ interface RenderGlobalContext { /// Utils toast: typeof toast + /// Electron State + setWindowState: (state: WindowState) => void + readyToUpdate: () => void dialog: typeof dialog // URL @@ -89,7 +98,12 @@ function createProxy(window: BrowserWindow, path: try { return await window.webContents.executeJavaScript( - `globalThis.${PREFIX}?.${methodPath}?.(${args.map((arg) => JSON.stringify(arg)).join(",")})`, + `globalThis.${PREFIX}?.${methodPath}?.(${args + .map((arg) => { + if (arg === undefined) return "undefined" + return JSON.stringify(arg) + }) + .join(",")})`, ) } catch (err) { console.error(`Failed to executeJavaScript: ${methodPath}`, err) diff --git a/packages/shared/src/hono.ts b/packages/shared/src/hono.ts index e66e2bf10..a8ef01ca3 100644 --- a/packages/shared/src/hono.ts +++ b/packages/shared/src/hono.ts @@ -1,17 +1,65 @@ import * as hono_hono_base from 'hono/hono-base'; import * as hono_types from 'hono/types'; +import * as hono_utils_http_status from 'hono/utils/http-status'; import { HttpBindings } from '@hono/node-server'; +import * as better_call from 'better-call'; import * as zod from 'zod'; import { z } from 'zod'; import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core'; import { AnyPgColumn } from 'drizzle-orm/pg-core'; import * as drizzle_orm from 'drizzle-orm'; import { InferInsertModel, SQL } from 'drizzle-orm'; +import * as better_auth_adapters_drizzle from 'better-auth/adapters/drizzle'; +import * as better_auth from 'better-auth'; type Env = { Bindings: HttpBindings; }; +declare const authPlugins: ({ + id: "getProviders"; + endpoints: { + getProviders: { + | undefined)?]>(...ctx: C): Promise; + path: "/get-providers"; + options: { + method: "GET"; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + }; +} | { + id: "createSession"; + endpoints: { + createSession: { + | undefined)?]>(...ctx: C): Promise; + path: "/create-session"; + options: { + method: "GET"; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + }; +})[]; + declare const achievements: drizzle_orm_pg_core.PgTableWithColumns<{ name: "achievements"; schema: undefined; @@ -337,18 +385,18 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{ value: z.ZodUnion<[z.ZodString, z.ZodNumber]>; }, "strip", z.ZodTypeAny, { value: string | number; - field: "title" | "all" | "content" | "author" | "url" | "order"; + field: "title" | "content" | "all" | "author" | "url" | "order"; operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; }, { value: string | number; - field: "title" | "all" | "content" | "author" | "url" | "order"; + field: "title" | "content" | "all" | "author" | "url" | "order"; operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; }>, "many">>; webhooks: z.ZodOptional>; }, "strip", z.ZodTypeAny, { - summary?: boolean | undefined; disabled?: boolean | undefined; translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + summary?: boolean | undefined; readability?: boolean | undefined; sourceContent?: boolean | undefined; silence?: boolean | undefined; @@ -360,14 +408,14 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{ }[] | undefined; blockRules?: { value: string | number; - field: "title" | "all" | "content" | "author" | "url" | "order"; + field: "title" | "content" | "all" | "author" | "url" | "order"; operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; }[] | undefined; webhooks?: string[] | undefined; }, { - summary?: boolean | undefined; disabled?: boolean | undefined; translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + summary?: boolean | undefined; readability?: boolean | undefined; sourceContent?: boolean | undefined; silence?: boolean | undefined; @@ -379,17 +427,26 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{ }[] | undefined; blockRules?: { value: string | number; - field: "title" | "all" | "content" | "author" | "url" | "order"; + field: "title" | "content" | "all" | "author" | "url" | "order"; operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; }[] | undefined; webhooks?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { name: string; + condition: { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[][]; result: { - summary?: boolean | undefined; disabled?: boolean | undefined; translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + summary?: boolean | undefined; readability?: boolean | undefined; sourceContent?: boolean | undefined; silence?: boolean | undefined; @@ -401,26 +458,26 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{ }[] | undefined; blockRules?: { value: string | number; - field: "title" | "all" | "content" | "author" | "url" | "order"; + field: "title" | "content" | "all" | "author" | "url" | "order"; operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; }[] | undefined; webhooks?: string[] | undefined; }; - condition: { - value: string; - field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; - }[] | { - value: string; - field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; - }[][]; }, { name: string; + condition: { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[][]; result: { - summary?: boolean | undefined; disabled?: boolean | undefined; translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + summary?: boolean | undefined; readability?: boolean | undefined; sourceContent?: boolean | undefined; silence?: boolean | undefined; @@ -432,20 +489,11 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{ }[] | undefined; blockRules?: { value: string | number; - field: "title" | "all" | "content" | "author" | "url" | "order"; + field: "title" | "content" | "all" | "author" | "url" | "order"; operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; }[] | undefined; webhooks?: string[] | undefined; }; - condition: { - value: string; - field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; - }[] | { - value: string; - field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; - }[][]; }>; declare const actionsOpenAPISchema: z.ZodObject; }, "strip", z.ZodTypeAny, { value: string | number; - field: "title" | "all" | "content" | "author" | "url" | "order"; + field: "title" | "content" | "all" | "author" | "url" | "order"; operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; }, { value: string | number; - field: "title" | "all" | "content" | "author" | "url" | "order"; + field: "title" | "content" | "all" | "author" | "url" | "order"; operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; }>, "many">>; webhooks: z.ZodOptional>; }, "strip", z.ZodTypeAny, { - summary?: boolean | undefined; disabled?: boolean | undefined; translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + summary?: boolean | undefined; readability?: boolean | undefined; sourceContent?: boolean | undefined; silence?: boolean | undefined; @@ -574,14 +622,14 @@ declare const actionsOpenAPISchema: z.ZodObject; }, "strip", z.ZodTypeAny, { name: string; + condition: { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[][]; result: { - summary?: boolean | undefined; disabled?: boolean | undefined; translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + summary?: boolean | undefined; readability?: boolean | undefined; sourceContent?: boolean | undefined; silence?: boolean | undefined; @@ -615,26 +672,26 @@ declare const actionsOpenAPISchema: z.ZodObject, "many">>>; }>, "strip", z.ZodTypeAny, { userId: string; rules?: { name: string; + condition: { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[][]; result: { - summary?: boolean | undefined; disabled?: boolean | undefined; translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + summary?: boolean | undefined; readability?: boolean | undefined; sourceContent?: boolean | undefined; silence?: boolean | undefined; @@ -680,29 +737,29 @@ declare const actionsOpenAPISchema: z.ZodObject; declare const actionsRelations: drizzle_orm.Relations<"actions", { @@ -1130,9 +1178,9 @@ declare const airdropsOpenAPISchema: z.ZodObject, "strip", z.ZodTypeAny, { userId: string; tx: string | null; - rank: string | null; - amount: string; activity: "public_beta"; + amount: string; + rank: string | null; detail: { "Invitations count": number; "Purchase lists cost": number; @@ -1167,9 +1215,9 @@ declare const airdropsOpenAPISchema: z.ZodObject; attachments: drizzle_orm.$Type, AttachmentsModel[]>; extra: drizzle_orm.$Type, ExtraModel>; + language: drizzle_orm_pg_core.PgTextBuilder<{ + name: "language"; + dataType: "string"; + columnType: "PgText"; + data: string; + enumValues: [string, ...string[]]; + driverParam: string; + }>; }; declare const entries: drizzle_orm_pg_core.PgTableWithColumns<{ name: "entries"; @@ -1711,6 +1767,23 @@ declare const entries: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; + language: drizzle_orm_pg_core.PgColumn<{ + name: "language"; + tableName: "entries"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; feedId: drizzle_orm_pg_core.PgColumn<{ name: "feed_id"; tableName: "entries"; @@ -1959,6 +2032,7 @@ declare const entriesOpenAPISchema: z.ZodObject>; + language: z.ZodNullable; feedId: z.ZodString; }, "media" | "attachments" | "extra">, { attachments: z.ZodNullable; declare const feedsRelations: drizzle_orm.Relations<"feeds", { subscriptions: drizzle_orm.Many<"subscriptions">; @@ -3072,6 +3148,23 @@ declare const inboxesEntries: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; + language: drizzle_orm_pg_core.PgColumn<{ + name: "language"; + tableName: "inboxes_entries"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; inboxHandle: drizzle_orm_pg_core.PgColumn<{ name: "inbox_handle"; tableName: "inboxes_entries"; @@ -3269,6 +3362,7 @@ declare const inboxesEntriesOpenAPISchema: z.ZodObject>; + language: z.ZodNullable; inboxHandle: z.ZodString; read: z.ZodNullable; }, "media" | "attachments" | "extra">, { @@ -3347,6 +3441,7 @@ declare const inboxesEntriesOpenAPISchema: z.ZodObject; author: z.ZodOptional>; url: z.ZodOptional>; + language: z.ZodOptional>; guid: z.ZodString; media: z.ZodOptional; + language: drizzle_orm_pg_core.PgColumn<{ + name: "language"; + tableName: "lists"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; ownerUserId: drizzle_orm_pg_core.PgColumn<{ name: "owner_user_id"; tableName: "lists"; @@ -4101,6 +4217,7 @@ declare const listsOpenAPISchema: zod.ZodObject<{ view: zod.ZodNumber; fee: zod.ZodNumber; timelineUpdatedAt: zod.ZodString; + language: zod.ZodNullable; ownerUserId: zod.ZodString; }, zod.UnknownKeysParam, zod.ZodTypeAny, { description: string | null; @@ -4109,6 +4226,7 @@ declare const listsOpenAPISchema: zod.ZodObject<{ image: string | null; view: number; ownerUserId: string; + language: string | null; feedIds: string[]; fee: number; timelineUpdatedAt: string; @@ -4119,6 +4237,7 @@ declare const listsOpenAPISchema: zod.ZodObject<{ image: string | null; view: number; ownerUserId: string; + language: string | null; feedIds: string[]; fee: number; timelineUpdatedAt: string; @@ -4558,6 +4677,149 @@ declare const settings: drizzle_orm_pg_core.PgTableWithColumns<{ dialect: "pg"; }>; +declare const user: drizzle_orm_pg_core.PgTableWithColumns<{ + name: "user"; + schema: undefined; + columns: { + id: drizzle_orm_pg_core.PgColumn<{ + name: "id"; + tableName: "user"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: true; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + name: drizzle_orm_pg_core.PgColumn<{ + name: "name"; + tableName: "user"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + email: drizzle_orm_pg_core.PgColumn<{ + name: "email"; + tableName: "user"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + emailVerified: drizzle_orm_pg_core.PgColumn<{ + name: "emailVerified"; + tableName: "user"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + image: drizzle_orm_pg_core.PgColumn<{ + name: "image"; + tableName: "user"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + handle: drizzle_orm_pg_core.PgColumn<{ + name: "handle"; + tableName: "user"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "created_at"; + tableName: "user"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + updatedAt: drizzle_orm_pg_core.PgColumn<{ + name: "updatedAt"; + tableName: "user"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; declare const users: drizzle_orm_pg_core.PgTableWithColumns<{ name: "user"; schema: undefined; @@ -4681,6 +4943,23 @@ declare const users: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; + updatedAt: drizzle_orm_pg_core.PgColumn<{ + name: "updatedAt"; + tableName: "user"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; }; dialect: "pg"; }>; @@ -4693,6 +4972,7 @@ declare const usersOpenApiSchema: z.ZodObject; handle: z.ZodNullable; createdAt: z.ZodDate; + updatedAt: z.ZodDate; }, "email">, z.UnknownKeysParam, z.ZodTypeAny, { name: string | null; id: string; @@ -4700,6 +4980,7 @@ declare const usersOpenApiSchema: z.ZodObject; -declare const accounts: drizzle_orm_pg_core.PgTableWithColumns<{ +declare const account: drizzle_orm_pg_core.PgTableWithColumns<{ name: "account"; schema: undefined; columns: { + id: drizzle_orm_pg_core.PgColumn<{ + name: "id"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: true; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; userId: drizzle_orm_pg_core.PgColumn<{ name: "userId"; tableName: "account"; @@ -4729,8 +5028,8 @@ declare const accounts: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; - type: drizzle_orm_pg_core.PgColumn<{ - name: "type"; + providerId: drizzle_orm_pg_core.PgColumn<{ + name: "provider"; tableName: "account"; dataType: "string"; columnType: "PgText"; @@ -4746,6 +5045,302 @@ declare const accounts: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; + accountId: drizzle_orm_pg_core.PgColumn<{ + name: "providerAccountId"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + refreshToken: drizzle_orm_pg_core.PgColumn<{ + name: "refresh_token"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + accessToken: drizzle_orm_pg_core.PgColumn<{ + name: "access_token"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + accessTokenExpiresAt: drizzle_orm_pg_core.PgColumn<{ + name: "expires_at"; + tableName: "account"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + refreshTokenExpiresAt: drizzle_orm_pg_core.PgColumn<{ + name: "refreshTokenExpiresAt"; + tableName: "account"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + scope: drizzle_orm_pg_core.PgColumn<{ + name: "scope"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + idToken: drizzle_orm_pg_core.PgColumn<{ + name: "id_token"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + password: drizzle_orm_pg_core.PgColumn<{ + name: "password"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "createdAt"; + tableName: "account"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + updatedAt: drizzle_orm_pg_core.PgColumn<{ + name: "updatedAt"; + tableName: "account"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const accountAuthjs: drizzle_orm_pg_core.PgTableWithColumns<{ + name: "account"; + schema: undefined; + columns: { + id: drizzle_orm_pg_core.PgColumn<{ + name: "id"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: true; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + userId: drizzle_orm_pg_core.PgColumn<{ + name: "userId"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + refreshTokenExpiresAt: drizzle_orm_pg_core.PgColumn<{ + name: "refreshTokenExpiresAt"; + tableName: "account"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + scope: drizzle_orm_pg_core.PgColumn<{ + name: "scope"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + password: drizzle_orm_pg_core.PgColumn<{ + name: "password"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "createdAt"; + tableName: "account"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + updatedAt: drizzle_orm_pg_core.PgColumn<{ + name: "updatedAt"; + tableName: "account"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; provider: drizzle_orm_pg_core.PgColumn<{ name: "provider"; tableName: "account"; @@ -4817,10 +5412,10 @@ declare const accounts: drizzle_orm_pg_core.PgTableWithColumns<{ expires_at: drizzle_orm_pg_core.PgColumn<{ name: "expires_at"; tableName: "account"; - dataType: "number"; - columnType: "PgInteger"; - data: number; - driverParam: string | number; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; @@ -4831,40 +5426,6 @@ declare const accounts: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; - token_type: drizzle_orm_pg_core.PgColumn<{ - name: "token_type"; - tableName: "account"; - dataType: "string"; - columnType: "PgText"; - data: string; - driverParam: string; - notNull: false; - hasDefault: false; - isPrimaryKey: false; - isAutoincrement: false; - hasRuntimeDefault: false; - enumValues: [string, ...string[]]; - baseColumn: never; - identity: undefined; - generated: undefined; - }, {}, {}>; - scope: drizzle_orm_pg_core.PgColumn<{ - name: "scope"; - tableName: "account"; - dataType: "string"; - columnType: "PgText"; - data: string; - driverParam: string; - notNull: false; - hasDefault: false; - isPrimaryKey: false; - isAutoincrement: false; - hasRuntimeDefault: false; - enumValues: [string, ...string[]]; - baseColumn: never; - identity: undefined; - generated: undefined; - }, {}, {}>; id_token: drizzle_orm_pg_core.PgColumn<{ name: "id_token"; tableName: "account"; @@ -4882,9 +5443,33 @@ declare const accounts: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; - session_state: drizzle_orm_pg_core.PgColumn<{ - name: "session_state"; - tableName: "account"; + }; + dialect: "pg"; +}>; +declare const session: drizzle_orm_pg_core.PgTableWithColumns<{ + name: "session"; + schema: undefined; + columns: { + id: drizzle_orm_pg_core.PgColumn<{ + name: "id"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: true; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + token: drizzle_orm_pg_core.PgColumn<{ + name: "sessionToken"; + tableName: "session"; dataType: "string"; columnType: "PgText"; data: string; @@ -4899,30 +5484,6 @@ declare const accounts: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; - }; - dialect: "pg"; -}>; -declare const sessions: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "session"; - schema: undefined; - columns: { - sessionToken: drizzle_orm_pg_core.PgColumn<{ - name: "sessionToken"; - tableName: "session"; - dataType: "string"; - columnType: "PgText"; - data: string; - driverParam: string; - notNull: true; - hasDefault: false; - isPrimaryKey: true; - isAutoincrement: false; - hasRuntimeDefault: false; - enumValues: [string, ...string[]]; - baseColumn: never; - identity: undefined; - generated: undefined; - }, {}, {}>; userId: drizzle_orm_pg_core.PgColumn<{ name: "userId"; tableName: "session"; @@ -4940,6 +5501,217 @@ declare const sessions: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; + expiresAt: drizzle_orm_pg_core.PgColumn<{ + name: "expires"; + tableName: "session"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "createdAt"; + tableName: "session"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + updatedAt: drizzle_orm_pg_core.PgColumn<{ + name: "updatedAt"; + tableName: "session"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + ipAddress: drizzle_orm_pg_core.PgColumn<{ + name: "ipAddress"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + userAgent: drizzle_orm_pg_core.PgColumn<{ + name: "userAgent"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const sessionAuthjs: drizzle_orm_pg_core.PgTableWithColumns<{ + name: "session"; + schema: undefined; + columns: { + id: drizzle_orm_pg_core.PgColumn<{ + name: "id"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: true; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + userId: drizzle_orm_pg_core.PgColumn<{ + name: "userId"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "createdAt"; + tableName: "session"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + updatedAt: drizzle_orm_pg_core.PgColumn<{ + name: "updatedAt"; + tableName: "session"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + ipAddress: drizzle_orm_pg_core.PgColumn<{ + name: "ipAddress"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + userAgent: drizzle_orm_pg_core.PgColumn<{ + name: "userAgent"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + sessionToken: drizzle_orm_pg_core.PgColumn<{ + name: "sessionToken"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; expires: drizzle_orm_pg_core.PgColumn<{ name: "expires"; tableName: "session"; @@ -4960,10 +5732,27 @@ declare const sessions: drizzle_orm_pg_core.PgTableWithColumns<{ }; dialect: "pg"; }>; -declare const verificationTokens: drizzle_orm_pg_core.PgTableWithColumns<{ +declare const verification: drizzle_orm_pg_core.PgTableWithColumns<{ name: "verificationToken"; schema: undefined; columns: { + id: drizzle_orm_pg_core.PgColumn<{ + name: "id"; + tableName: "verificationToken"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: true; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; identifier: drizzle_orm_pg_core.PgColumn<{ name: "identifier"; tableName: "verificationToken"; @@ -4981,7 +5770,7 @@ declare const verificationTokens: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; - token: drizzle_orm_pg_core.PgColumn<{ + value: drizzle_orm_pg_core.PgColumn<{ name: "token"; tableName: "verificationToken"; dataType: "string"; @@ -4998,7 +5787,7 @@ declare const verificationTokens: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; - expires: drizzle_orm_pg_core.PgColumn<{ + expiresAt: drizzle_orm_pg_core.PgColumn<{ name: "expires"; tableName: "verificationToken"; dataType: "date"; @@ -5015,6 +5804,40 @@ declare const verificationTokens: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "createdAt"; + tableName: "verificationToken"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: false; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + updatedAt: drizzle_orm_pg_core.PgColumn<{ + name: "updatedAt"; + tableName: "verificationToken"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: false; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; }; dialect: "pg"; }>; @@ -5166,17 +5989,17 @@ declare const walletsOpenAPISchema: zod.ZodObject<{ }, zod.UnknownKeysParam, zod.ZodTypeAny, { createdAt: string; userId: string; + powerToken: string; addressIndex: number; address: string | null; - powerToken: string; dailyPowerToken: string; cashablePowerToken: string; }, { createdAt: string; userId: string; + powerToken: string; addressIndex: number; address: string | null; - powerToken: string; dailyPowerToken: string; cashablePowerToken: string; }>; @@ -5396,10 +6219,10 @@ declare const transactionsOpenAPISchema: zod.ZodObject<{ }, zod.UnknownKeysParam, zod.ZodTypeAny, { type: "tip" | "mint" | "burn" | "withdraw" | "purchase" | "airdrop"; createdAt: string; + powerToken: string; fromUserId: string | null; toUserId: string | null; hash: string; - powerToken: string; toFeedId: string | null; toListId: string | null; toEntryId: string | null; @@ -5408,10 +6231,10 @@ declare const transactionsOpenAPISchema: zod.ZodObject<{ }, { type: "tip" | "mint" | "burn" | "withdraw" | "purchase" | "airdrop"; createdAt: string; + powerToken: string; fromUserId: string | null; toUserId: string | null; hash: string; - powerToken: string; toFeedId: string | null; toListId: string | null; toEntryId: string | null; @@ -5615,17 +6438,17 @@ declare const levelsOpenAPISchema: zod.ZodObject<{ userId: zod.ZodString; }, zod.UnknownKeysParam, zod.ZodTypeAny, { userId: string; - address: string; - powerToken: string; rank: number | null; + powerToken: string; + address: string; level: number | null; prevActivityPoints: number | null; activityPoints: number | null; }, { userId: string; - address: string; - powerToken: string; rank: number | null; + powerToken: string; + address: string; level: number | null; prevActivityPoints: number | null; activityPoints: number | null; @@ -5676,12 +6499,2803 @@ declare const boosts: drizzle_orm_pg_core.PgTableWithColumns<{ dialect: "pg"; }>; -declare const _routes: hono_hono_base.HonoBase Promise; + api: { + getSession: ((context: { + headers: Headers; + query?: { + disableCookieCache?: boolean; + } | undefined; + }) => Promise<{ + user: { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined | undefined; + } & { + image: string | null; + handle: string | null; + }; + session: { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined | undefined; + userAgent?: string | null | undefined | undefined; + }; + invitation: { + code: string; + createdAt: Date | null; + fromUserId: string; + toUserId: string | null; + } | undefined; + role: "user" | "trial"; + } | null>) & { + options: { + method: "GET"; + query: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + disableCookieCache?: boolean | undefined; + }, { + disableCookieCache?: boolean | undefined; + }>>; + requireHeaders: true; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + session: { + type: string; + properties: { + token: { + type: string; + }; + userId: { + type: string; + }; + expiresAt: { + type: string; + }; + }; + }; + user: { + type: string; + $ref: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + } & { + method: "GET"; + metadata: { + CUSTOM_SESSION: boolean; + }; + }; + path: "/get-session"; + }; + } & { + getProviders: { + | undefined)?]>(...ctx: C): Promise; + path: "/get-providers"; + options: { + method: "GET"; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + createSession: { + | undefined)?]>(...ctx: C): Promise; + path: "/create-session"; + options: { + method: "GET"; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + signInSocial: { + ; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + callbackURL: zod.ZodOptional; + errorCallbackURL: zod.ZodOptional; + provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>; + disableRedirect: zod.ZodOptional; + idToken: zod.ZodOptional; + accessToken: zod.ZodOptional; + refreshToken: zod.ZodOptional; + expiresAt: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + token: string; + accessToken?: string | undefined; + refreshToken?: string | undefined; + expiresAt?: number | undefined; + nonce?: string | undefined; + }, { + token: string; + accessToken?: string | undefined; + refreshToken?: string | undefined; + expiresAt?: number | undefined; + nonce?: string | undefined; + }>>; + }, "strip", zod.ZodTypeAny, { + provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab"; + idToken?: { + token: string; + accessToken?: string | undefined; + refreshToken?: string | undefined; + expiresAt?: number | undefined; + nonce?: string | undefined; + } | undefined; + callbackURL?: string | undefined; + errorCallbackURL?: string | undefined; + disableRedirect?: boolean | undefined; + }, { + provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab"; + idToken?: { + token: string; + accessToken?: string | undefined; + refreshToken?: string | undefined; + expiresAt?: number | undefined; + nonce?: string | undefined; + } | undefined; + callbackURL?: string | undefined; + errorCallbackURL?: string | undefined; + disableRedirect?: boolean | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + session: { + type: string; + }; + user: { + type: string; + }; + url: { + type: string; + }; + redirect: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/sign-in/social"; + options: { + method: "POST"; + query: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + callbackURL: zod.ZodOptional; + errorCallbackURL: zod.ZodOptional; + provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>; + disableRedirect: zod.ZodOptional; + idToken: zod.ZodOptional; + accessToken: zod.ZodOptional; + refreshToken: zod.ZodOptional; + expiresAt: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + token: string; + accessToken?: string | undefined; + refreshToken?: string | undefined; + expiresAt?: number | undefined; + nonce?: string | undefined; + }, { + token: string; + accessToken?: string | undefined; + refreshToken?: string | undefined; + expiresAt?: number | undefined; + nonce?: string | undefined; + }>>; + }, "strip", zod.ZodTypeAny, { + provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab"; + idToken?: { + token: string; + accessToken?: string | undefined; + refreshToken?: string | undefined; + expiresAt?: number | undefined; + nonce?: string | undefined; + } | undefined; + callbackURL?: string | undefined; + errorCallbackURL?: string | undefined; + disableRedirect?: boolean | undefined; + }, { + provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab"; + idToken?: { + token: string; + accessToken?: string | undefined; + refreshToken?: string | undefined; + expiresAt?: number | undefined; + nonce?: string | undefined; + } | undefined; + callbackURL?: string | undefined; + errorCallbackURL?: string | undefined; + disableRedirect?: boolean | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + session: { + type: string; + }; + user: { + type: string; + }; + url: { + type: string; + }; + redirect: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + signOut: { + ]>(...ctx: C): Promise; + path: "/sign-out"; + options: { + method: "POST"; + requireHeaders: true; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + success: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + signUpEmail: { + ; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + name: zod.ZodString; + email: zod.ZodString; + password: zod.ZodString; + }, zod.UnknownKeysParam, zod.ZodTypeAny, { + password: string; + email: string; + name: string; + }, { + password: string; + email: string; + name: string; + }> & zod.ZodObject<{ + handle: zod.ZodString; + }, zod.UnknownKeysParam, zod.ZodTypeAny, { + handle: string; + }, { + handle: string; + }>; + metadata: { + openapi: { + description: string; + requestBody: { + content: { + "application/json": { + schema: { + type: "object"; + properties: { + name: { + type: string; + description: string; + }; + email: { + type: string; + description: string; + }; + password: { + type: string; + description: string; + }; + callbackURL: { + type: string; + description: string; + }; + }; + required: string[]; + }; + }; + }; + }; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + type: string; + }; + session: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/sign-up/email"; + options: { + method: "POST"; + query: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + name: zod.ZodString; + email: zod.ZodString; + password: zod.ZodString; + }, zod.UnknownKeysParam, zod.ZodTypeAny, { + password: string; + email: string; + name: string; + }, { + password: string; + email: string; + name: string; + }> & zod.ZodObject<{ + handle: zod.ZodString; + }, zod.UnknownKeysParam, zod.ZodTypeAny, { + handle: string; + }, { + handle: string; + }>; + metadata: { + openapi: { + description: string; + requestBody: { + content: { + "application/json": { + schema: { + type: "object"; + properties: { + name: { + type: string; + description: string; + }; + email: { + type: string; + description: string; + }; + password: { + type: string; + description: string; + }; + callbackURL: { + type: string; + description: string; + }; + }; + required: string[]; + }; + }; + }; + }; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + type: string; + }; + session: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + signInEmail: { + ; + rememberMe: zod.ZodOptional>; + }, "strip", zod.ZodTypeAny, { + password: string; + email: string; + callbackURL?: string | undefined; + rememberMe?: boolean | undefined; + }, { + password: string; + email: string; + callbackURL?: string | undefined; + rememberMe?: boolean | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + session: { + type: string; + }; + user: { + type: string; + }; + url: { + type: string; + }; + redirect: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/sign-in/email"; + options: { + method: "POST"; + body: zod.ZodObject<{ + email: zod.ZodString; + password: zod.ZodString; + callbackURL: zod.ZodOptional; + rememberMe: zod.ZodOptional>; + }, "strip", zod.ZodTypeAny, { + password: string; + email: string; + callbackURL?: string | undefined; + rememberMe?: boolean | undefined; + }, { + password: string; + email: string; + callbackURL?: string | undefined; + rememberMe?: boolean | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + session: { + type: string; + }; + user: { + type: string; + }; + url: { + type: string; + }; + redirect: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + forgetPassword: { + ; + }, "strip", zod.ZodTypeAny, { + email: string; + redirectTo?: string | undefined; + }, { + email: string; + redirectTo?: string | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/forget-password"; + options: { + method: "POST"; + body: zod.ZodObject<{ + email: zod.ZodString; + redirectTo: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + email: string; + redirectTo?: string | undefined; + }, { + email: string; + redirectTo?: string | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + resetPassword: { + ; + currentURL: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + token?: string | undefined; + currentURL?: string | undefined; + }, { + token?: string | undefined; + currentURL?: string | undefined; + }>>; + method: "POST"; + body: zod.ZodObject<{ + newPassword: zod.ZodString; + token: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + newPassword: string; + token?: string | undefined; + }, { + newPassword: string; + token?: string | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/reset-password"; + options: { + query: zod.ZodOptional; + currentURL: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + token?: string | undefined; + currentURL?: string | undefined; + }, { + token?: string | undefined; + currentURL?: string | undefined; + }>>; + method: "POST"; + body: zod.ZodObject<{ + newPassword: zod.ZodString; + token: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + newPassword: string; + token?: string | undefined; + }, { + newPassword: string; + token?: string | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + verifyEmail: { + ; + }, "strip", zod.ZodTypeAny, { + token: string; + callbackURL?: string | undefined; + }, { + token: string; + callbackURL?: string | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + type: string; + }; + status: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/verify-email"; + options: { + method: "GET"; + query: zod.ZodObject<{ + token: zod.ZodString; + callbackURL: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + token: string; + callbackURL?: string | undefined; + }, { + token: string; + callbackURL?: string | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + type: string; + }; + status: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + sendVerificationEmail: { + ; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + email: zod.ZodString; + callbackURL: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + email: string; + callbackURL?: string | undefined; + }, { + email: string; + callbackURL?: string | undefined; + }>; + metadata: { + openapi: { + description: string; + requestBody: { + content: { + "application/json": { + schema: { + type: "object"; + properties: { + email: { + type: string; + description: string; + }; + callbackURL: { + type: string; + description: string; + }; + }; + required: string[]; + }; + }; + }; + }; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/send-verification-email"; + options: { + method: "POST"; + query: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + email: zod.ZodString; + callbackURL: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + email: string; + callbackURL?: string | undefined; + }, { + email: string; + callbackURL?: string | undefined; + }>; + metadata: { + openapi: { + description: string; + requestBody: { + content: { + "application/json": { + schema: { + type: "object"; + properties: { + email: { + type: string; + description: string; + }; + callbackURL: { + type: string; + description: string; + }; + }; + required: string[]; + }; + }; + }; + }; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + changeEmail: { + ; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + newEmail: zod.ZodString; + callbackURL: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + newEmail: string; + callbackURL?: string | undefined; + }, { + newEmail: string; + callbackURL?: string | undefined; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + type: string; + }; + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/change-email"; + options: { + method: "POST"; + query: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + newEmail: zod.ZodString; + callbackURL: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + newEmail: string; + callbackURL?: string | undefined; + }, { + newEmail: string; + callbackURL?: string | undefined; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + type: string; + }; + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + changePassword: { + ; + }, "strip", zod.ZodTypeAny, { + newPassword: string; + currentPassword: string; + revokeOtherSessions?: boolean | undefined; + }, { + newPassword: string; + currentPassword: string; + revokeOtherSessions?: boolean | undefined; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + description: string; + $ref: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }>; + path: "/change-password"; + options: { + method: "POST"; + body: zod.ZodObject<{ + newPassword: zod.ZodString; + currentPassword: zod.ZodString; + revokeOtherSessions: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + newPassword: string; + currentPassword: string; + revokeOtherSessions?: boolean | undefined; + }, { + newPassword: string; + currentPassword: string; + revokeOtherSessions?: boolean | undefined; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + description: string; + $ref: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + setPassword: { + ; + metadata: { + SERVER_ONLY: true; + }; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + }>]>(...ctx: C): Promise & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }>; + path: "/set-password"; + options: { + method: "POST"; + body: zod.ZodObject<{ + newPassword: zod.ZodString; + }, "strip", zod.ZodTypeAny, { + newPassword: string; + }, { + newPassword: string; + }>; + metadata: { + SERVER_ONLY: true; + }; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + updateUser: { + ; + image: zod.ZodOptional; + }, zod.UnknownKeysParam, zod.ZodTypeAny, { + name?: string | undefined; + image?: string | undefined; + }, { + name?: string | undefined; + image?: string | undefined; + }> & zod.ZodObject<{ + handle: zod.ZodString; + }, zod.UnknownKeysParam, zod.ZodTypeAny, { + handle: string; + }, { + handle: string; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + requestBody: { + content: { + "application/json": { + schema: { + type: "object"; + properties: { + name: { + type: string; + description: string; + }; + image: { + type: string; + description: string; + }; + }; + }; + }; + }; + }; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/update-user"; + options: { + method: "POST"; + body: zod.ZodObject<{ + name: zod.ZodOptional; + image: zod.ZodOptional; + }, zod.UnknownKeysParam, zod.ZodTypeAny, { + name?: string | undefined; + image?: string | undefined; + }, { + name?: string | undefined; + image?: string | undefined; + }> & zod.ZodObject<{ + handle: zod.ZodString; + }, zod.UnknownKeysParam, zod.ZodTypeAny, { + handle: string; + }, { + handle: string; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + requestBody: { + content: { + "application/json": { + schema: { + type: "object"; + properties: { + name: { + type: string; + description: string; + }; + image: { + type: string; + description: string; + }; + }; + }; + }; + }; + }; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + deleteUser: { + ; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/delete-user"; + options: { + method: "POST"; + body: zod.ZodObject<{ + password: zod.ZodString; + }, "strip", zod.ZodTypeAny, { + password: string; + }, { + password: string; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + forgetPasswordCallback: { + ; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + token: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/reset-password/:token"; + options: { + method: "GET"; + query: zod.ZodObject<{ + callbackURL: zod.ZodString; + }, "strip", zod.ZodTypeAny, { + callbackURL: string; + }, { + callbackURL: string; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + token: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + listSessions: { + & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + requireHeaders: true; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "array"; + items: { + type: string; + properties: { + token: { + type: string; + }; + userId: { + type: string; + }; + expiresAt: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise[]>; + path: "/list-sessions"; + options: { + method: "GET"; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + requireHeaders: true; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "array"; + items: { + type: string; + properties: { + token: { + type: string; + }; + userId: { + type: string; + }; + expiresAt: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + revokeSession: { + ; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + requireHeaders: true; + metadata: { + openapi: { + description: string; + requestBody: { + content: { + "application/json": { + schema: { + type: "object"; + properties: { + token: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/revoke-session"; + options: { + method: "POST"; + body: zod.ZodObject<{ + token: zod.ZodString; + }, "strip", zod.ZodTypeAny, { + token: string; + }, { + token: string; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + requireHeaders: true; + metadata: { + openapi: { + description: string; + requestBody: { + content: { + "application/json": { + schema: { + type: "object"; + properties: { + token: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + revokeSessions: { + & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + requireHeaders: true; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/revoke-sessions"; + options: { + method: "POST"; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + requireHeaders: true; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + revokeOtherSessions: { + & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/revoke-other-sessions"; + options: { + method: "POST"; + requireHeaders: true; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + linkSocialAccount: { + ; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + callbackURL: zod.ZodOptional; + provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>; + }, "strip", zod.ZodTypeAny, { + provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab"; + callbackURL?: string | undefined; + }, { + provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab"; + callbackURL?: string | undefined; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + url: { + type: string; + }; + redirect: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/link-social"; + options: { + method: "POST"; + requireHeaders: true; + query: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + callbackURL: zod.ZodOptional; + provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>; + }, "strip", zod.ZodTypeAny, { + provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab"; + callbackURL?: string | undefined; + }, { + provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab"; + callbackURL?: string | undefined; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + url: { + type: string; + }; + redirect: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + listUserAccounts: { + & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "array"; + items: { + type: string; + properties: { + id: { + type: string; + }; + provider: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }> | undefined)?]>(...ctx: C): Promise; + path: "/list-accounts"; + options: { + method: "GET"; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "array"; + items: { + type: string; + properties: { + id: { + type: string; + }; + provider: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + }; + options: { + appName: string; + database: (options: better_auth.BetterAuthOptions) => { + id: string; + create, R = T>(data: { + model: string; + data: T; + select?: string[]; + }): Promise; + findOne(data: { + model: string; + where: better_auth.Where[]; + select?: string[]; + }): Promise; + findMany(data: { + model: string; + where?: better_auth.Where[]; + limit?: number; + sortBy?: { + field: string; + direction: "asc" | "desc"; + }; + offset?: number; + }): Promise; + update(data: { + model: string; + where: better_auth.Where[]; + update: Record; + }): Promise; + updateMany(data: { + model: string; + where: better_auth.Where[]; + update: Record; + }): Promise; + delete(data: { + model: string; + where: better_auth.Where[]; + }): Promise; + deleteMany(data: { + model: string; + where: better_auth.Where[]; + }): Promise; + options: better_auth_adapters_drizzle.DrizzleAdapterConfig; + }; + baseUrl: string | undefined; + basePath: string; + trustedOrigins: string[]; + user: { + additionalFields: { + handle: { + type: "string"; + }; + }; + }; + accounts: { + accountLinking: { + enabled: boolean; + trustedProviders: string[]; + }; + }; + socialProviders: { + google: { + clientId: string; + clientSecret: string; + }; + github: { + clientId: string; + clientSecret: string; + }; + apple: { + clientId: string; + clientSecret: string; + } | undefined; + }; + plugins: ({ + id: "custom-session"; + endpoints: { + getSession: { + | undefined)?]>(...ctx: C): Promise; + path: "/get-session"; + options: { + method: "GET"; + metadata: { + CUSTOM_SESSION: boolean; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + }; + } | { + id: "getProviders"; + endpoints: { + getProviders: { + | undefined)?]>(...ctx: C): Promise; + path: "/get-providers"; + options: { + method: "GET"; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + }; + } | { + id: "createSession"; + endpoints: { + createSession: { + | undefined)?]>(...ctx: C): Promise; + path: "/create-session"; + options: { + method: "GET"; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + }; + })[]; + }; + $context: Promise; + $Infer: { + Session: { + session: { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined | undefined; + userAgent?: string | null | undefined | undefined; + }; + user: { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined | undefined; + handle: string; + }; + }; + }; +}; + +type AuthSession = Awaited>; + +declare const _routes: hono_hono_base.HonoBase | hono_types.MergeSchemaPath<{ "/": { $get: { @@ -6053,6 +9681,7 @@ declare const _routes: hono_hono_base.HonoBase, "/">; type AppType = typeof _routes; -export { type ActionsModel, type AirdropActivity, type AppType, type AttachmentsModel, CommonEntryFields, type ConditionItem, type DetailModel, type EntriesModel, type EntryReadHistoriesModel, type ExtraModel, type FeedModel, type MediaModel, type MessagingData, MessagingType, type SettingsModel, accounts, achievements, achievementsOpenAPISchema, actions, actionsItemOpenAPISchema, actionsOpenAPISchema, actionsRelations, activityEnum, airdrops, airdropsOpenAPISchema, attachmentsZodSchema, boosts, collections, collectionsOpenAPISchema, collectionsRelations, detailModelSchema, entries, entriesOpenAPISchema, entriesRelations, entryReadHistories, entryReadHistoriesOpenAPISchema, entryReadHistoriesRelations, extraZodSchema, feedPowerTokens, feedPowerTokensOpenAPISchema, feedPowerTokensRelations, feeds, feedsOpenAPISchema, feedsRelations, inboxHandleSchema, inboxes, inboxesEntries, inboxesEntriesInsertOpenAPISchema, type inboxesEntriesModel, inboxesEntriesOpenAPISchema, inboxesEntriesRelations, inboxesOpenAPISchema, inboxesRelations, invitations, invitationsOpenAPISchema, invitationsRelations, languageSchema, levels, levelsOpenAPISchema, levelsRelations, lists, listsOpenAPISchema, listsRelations, listsSubscriptions, listsSubscriptionsOpenAPISchema, listsSubscriptionsRelations, listsTimeline, listsTimelineOpenAPISchema, listsTimelineRelations, lower, mediaZodSchema, messaging, messagingOpenAPISchema, messagingRelations, sessions, settings, subscriptions, subscriptionsOpenAPISchema, subscriptionsRelations, timeline, timelineOpenAPISchema, timelineRelations, transactionType, transactions, transactionsOpenAPISchema, transactionsRelations, users, usersOpenApiSchema, usersRelations, verificationTokens, wallets, walletsOpenAPISchema, walletsRelations }; +export { type ActionsModel, type AirdropActivity, type AppType, type AttachmentsModel, type AuthSession, CommonEntryFields, type ConditionItem, type DetailModel, type EntriesModel, type EntryReadHistoriesModel, type ExtraModel, type FeedModel, type MediaModel, type MessagingData, MessagingType, type SettingsModel, account, accountAuthjs, achievements, achievementsOpenAPISchema, actions, actionsItemOpenAPISchema, actionsOpenAPISchema, actionsRelations, activityEnum, airdrops, airdropsOpenAPISchema, attachmentsZodSchema, authPlugins, boosts, collections, collectionsOpenAPISchema, collectionsRelations, detailModelSchema, entries, entriesOpenAPISchema, entriesRelations, entryReadHistories, entryReadHistoriesOpenAPISchema, entryReadHistoriesRelations, extraZodSchema, feedPowerTokens, feedPowerTokensOpenAPISchema, feedPowerTokensRelations, feeds, feedsOpenAPISchema, feedsRelations, inboxHandleSchema, inboxes, inboxesEntries, inboxesEntriesInsertOpenAPISchema, type inboxesEntriesModel, inboxesEntriesOpenAPISchema, inboxesEntriesRelations, inboxesOpenAPISchema, inboxesRelations, invitations, invitationsOpenAPISchema, invitationsRelations, languageSchema, levels, levelsOpenAPISchema, levelsRelations, lists, listsOpenAPISchema, listsRelations, listsSubscriptions, listsSubscriptionsOpenAPISchema, listsSubscriptionsRelations, listsTimeline, listsTimelineOpenAPISchema, listsTimelineRelations, lower, mediaZodSchema, messaging, messagingOpenAPISchema, messagingRelations, session, sessionAuthjs, settings, subscriptions, subscriptionsOpenAPISchema, subscriptionsRelations, timeline, timelineOpenAPISchema, timelineRelations, transactionType, transactions, transactionsOpenAPISchema, transactionsRelations, user, users, usersOpenApiSchema, usersRelations, verification, wallets, walletsOpenAPISchema, walletsRelations }; diff --git a/packages/shared/src/interface/settings.ts b/packages/shared/src/interface/settings.ts index c3e77422b..dcc8736b7 100644 --- a/packages/shared/src/interface/settings.ts +++ b/packages/shared/src/interface/settings.ts @@ -15,6 +15,10 @@ export interface GeneralSettings { voice: string reduceRefetch: boolean autoGroup: boolean + /** + * Top timeline for mobile + */ + showQuickTimeline: boolean } export interface UISettings { @@ -60,11 +64,6 @@ export interface IntegrationSettings { instapaperUsername: string instapaperPassword: string - // omnivore - enableOmnivore: boolean - omnivoreEndpoint: string - omnivoreToken: string - // obsidian enableObsidian: boolean obsidianVaultPath: string @@ -74,4 +73,9 @@ export interface IntegrationSettings { outlineEndpoint: string outlineToken: string outlineCollection: string + + // readeck + enableReadeck: boolean + readeckEndpoint: string + readeckToken: string } diff --git a/packages/utils/package.json b/packages/utils/package.json index 318570bcb..8cbffabe3 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -29,10 +29,10 @@ "@follow/shared": "workspace:*", "@follow/types": "workspace:*", "clsx": "2.1.1", - "framer-motion": "11.11.17", + "framer-motion": "11.12.0", "nanoid": "5.0.9", "tailwind-merge": "2.5.5", - "tldts": "6.1.64", + "tldts": "6.1.65", "uniqolor": "1.1.1" } } diff --git a/packages/utils/src/cjk.ts b/packages/utils/src/cjk.ts new file mode 100644 index 000000000..6b2497704 --- /dev/null +++ b/packages/utils/src/cjk.ts @@ -0,0 +1,21 @@ +export const isCJKChar = (char: string): boolean => { + // eslint-disable-next-line unicorn/prefer-code-point + const code = char.charCodeAt(0) + return ( + (code >= 0x4e00 && code <= 0x9fff) || // CJK Unified Ideographs + (code >= 0x3400 && code <= 0x4dbf) || // CJK Unified Ideographs Extension A + (code >= 0xf900 && code <= 0xfaff) || // CJK Compatibility Ideographs + (code >= 0x3040 && code <= 0x309f) || // Hiragana + (code >= 0x30a0 && code <= 0x30ff) // Katakana + ) +} + +export const getNameInitials = (name?: string): string => { + if (!name) return "" + const first = name[0] + const second = name[1] + + if (isCJKChar(first)) return first + if (second && isCJKChar(second)) return first + return name.slice(0, 2) +} diff --git a/packages/utils/src/lru-cache.test.ts b/packages/utils/src/lru-cache.test.ts new file mode 100644 index 000000000..7e475acbe --- /dev/null +++ b/packages/utils/src/lru-cache.test.ts @@ -0,0 +1,63 @@ +import { describe, expect, it } from "vitest" + +import { LRUCache } from "./lru-cache" + +describe("LRUCache", () => { + it("should create cache with given capacity", () => { + const cache = new LRUCache(2) + expect(cache.size()).toBe(0) + }) + + it("should throw error for invalid capacity", () => { + expect(() => new LRUCache(0)).toThrow() + expect(() => new LRUCache(-1)).toThrow() + }) + + it("should handle basic get and put operations", () => { + const cache = new LRUCache(2) + + cache.put("a", 1) + expect(cache.get("a")).toBe(1) + + cache.put("b", 2) + expect(cache.get("b")).toBe(2) + expect(cache.size()).toBe(2) + }) + + it("should remove least recently used item when capacity is exceeded", () => { + const cache = new LRUCache(2) + + cache.put("a", 1) + cache.put("b", 2) + cache.put("c", 3) + + expect(cache.get("a")).toBeUndefined() + expect(cache.get("b")).toBe(2) + expect(cache.get("c")).toBe(3) + }) + + it("should update access order on get", () => { + const cache = new LRUCache(2) + + cache.put("a", 1) + cache.put("b", 2) + cache.get("a") + cache.put("c", 3) + + expect(cache.get("b")).toBeUndefined() + expect(cache.get("a")).toBe(1) + expect(cache.get("c")).toBe(3) + }) + + it("should clear cache", () => { + const cache = new LRUCache(2) + + cache.put("a", 1) + cache.put("b", 2) + cache.clear() + + expect(cache.size()).toBe(0) + expect(cache.get("a")).toBeUndefined() + expect(cache.get("b")).toBeUndefined() + }) +}) diff --git a/packages/utils/src/lru-cache.ts b/packages/utils/src/lru-cache.ts new file mode 100644 index 000000000..0f3efb2aa --- /dev/null +++ b/packages/utils/src/lru-cache.ts @@ -0,0 +1,57 @@ +export class LRUCache { + private capacity: number + private cache: Map + private keys: K[] + + constructor(capacity: number) { + if (capacity <= 0) { + throw new Error("Capacity must be positive") + } + + this.capacity = capacity + this.cache = new Map() + this.keys = [] + } + + get(key: K): V | undefined { + if (!this.cache.has(key)) { + return undefined + } + + this.keys = this.keys.filter((k) => k !== key) + this.keys.push(key) + + return this.cache.get(key) + } + + put(key: K, value: V): void { + if (this.cache.has(key)) { + this.cache.set(key, value) + this.keys = this.keys.filter((k) => k !== key) + this.keys.push(key) + } else { + if (this.keys.length >= this.capacity) { + const leastUsedKey = this.keys.shift() + if (leastUsedKey !== undefined) { + this.cache.delete(leastUsedKey) + } + } + + this.cache.set(key, value) + this.keys.push(key) + } + } + + clear(): void { + this.cache.clear() + this.keys = [] + } + + size(): number { + return this.cache.size + } + + getKeys(): K[] { + return [...this.keys] + } +} diff --git a/patches/@tanstack__react-virtual@3.10.9.patch b/patches/@tanstack__react-virtual@3.10.9.patch new file mode 100644 index 000000000..5535bdf1e --- /dev/null +++ b/patches/@tanstack__react-virtual@3.10.9.patch @@ -0,0 +1,14 @@ +diff --git a/dist/esm/index.js b/dist/esm/index.js +index 13b1ae504e8b55efcd9d8cecd30df8ab234edc18..a8549c560b0d6b7a65b4dc58e8fb134d04dda037 100644 +--- a/dist/esm/index.js ++++ b/dist/esm/index.js +@@ -22,6 +22,9 @@ function useVirtualizerBase(options) { + ); + instance.setOptions(resolvedOptions); + React.useEffect(() => { ++ if (!instance.scrollElement) { ++ instance._willUpdate() ++ } + return instance._didMount(); + }, []); + useIsomorphicLayoutEffect(() => { diff --git a/plugins/eslint/eslint-check-i18n-json.js b/plugins/eslint/eslint-check-i18n-json.js index 02c639f7a..64877a94f 100644 --- a/plugins/eslint/eslint-check-i18n-json.js +++ b/plugins/eslint/eslint-check-i18n-json.js @@ -72,7 +72,7 @@ export default { category: "Possible Errors", recommended: true, }, - fixable: "code", // 将 fixable 设置为 "code" + fixable: "code", // Set fixable to "code" }, create(context) { return { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bf5ba6178..1c7761c27 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,12 +4,6 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false -catalogs: - default: - es-toolkit: - specifier: ^1.27.0 - version: 1.27.0 - overrides: is-core-module: npm:@nolyfill/is-core-module@^1 isarray: npm:@nolyfill/isarray@^1 @@ -18,6 +12,9 @@ patchedDependencies: '@mozilla/readability': hash: 43niildbdafdxi7qfcwhpkkxwa path: patches/@mozilla__readability.patch + '@tanstack/react-virtual@3.10.9': + hash: fpkworxfwphev7q33sgiutu7aq + path: patches/@tanstack__react-virtual@3.10.9.patch daisyui: hash: igsntdatmoaxzwxof4bkkh35fy path: patches/daisyui.patch @@ -52,7 +49,7 @@ importers: version: 0.8.2 '@egoist/tailwindcss-icons': specifier: 1.8.1 - version: 1.8.1(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))) + version: 1.8.1(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))) '@electron-forge/cli': specifier: 7.6.0 version: 7.6.0(encoding@0.1.13) @@ -73,13 +70,13 @@ importers: version: 7.6.0(encoding@0.1.13) '@electron-toolkit/tsconfig': specifier: ^1.0.1 - version: 1.0.1(@types/node@22.10.0) + version: 1.0.1(@types/node@22.10.1) '@fontsource/sn-pro': specifier: 5.1.0 version: 5.1.0 '@hono/node-server': specifier: 1.13.7 - version: 1.13.7(hono@4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24)) + version: 1.13.7(hono@4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24)) '@hookform/resolvers': specifier: 3.9.1 version: 3.9.1(react-hook-form@7.53.2(react@18.3.1)) @@ -112,10 +109,10 @@ importers: version: 0.11.1(typescript@5.7.2)(zod@3.23.8) '@tailwindcss/container-queries': specifier: 0.1.1 - version: 0.1.1(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))) + version: 0.1.1(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))) '@tailwindcss/typography': specifier: 0.5.15 - version: 0.5.15(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))) + version: 0.5.15(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))) '@types/html-minifier-terser': specifier: 7.0.2 version: 7.0.2 @@ -123,8 +120,8 @@ importers: specifier: 4.0.9 version: 4.0.9 '@types/node': - specifier: ^22.10.0 - version: 22.10.0 + specifier: ^22.10.1 + version: 22.10.1 '@types/react': specifier: ^18.3.12 version: 18.3.12 @@ -136,10 +133,10 @@ importers: version: 3.2.27(encoding@0.1.13) '@vitejs/plugin-legacy': specifier: 6.0.0 - version: 6.0.0(terser@5.35.0)(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) + version: 6.0.0(terser@5.35.0)(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) '@vitejs/plugin-react': specifier: ^4.3.4 - version: 4.3.4(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) + version: 4.3.4(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) async-es: specifier: ^3.2.6 version: 3.2.6 @@ -160,7 +157,7 @@ importers: version: 16.4.5 drizzle-orm: specifier: 0.36.4 - version: 0.36.4(@opentelemetry/api@1.9.0)(@types/pg@8.11.10)(@types/react@18.3.12)(react@18.3.1) + version: 0.36.4(@opentelemetry/api@1.9.0)(@types/pg@8.11.10)(@types/react@18.3.12)(kysely@0.27.4)(react@18.3.1) electron: specifier: 33.2.0 version: 33.2.0 @@ -172,22 +169,22 @@ importers: version: 0.5.0 electron-vite: specifier: ^2.3.0 - version: 2.3.0(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) + version: 2.3.0(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) eslint: - specifier: ^9.15.0 - version: 9.15.0(jiti@2.3.3) + specifier: ^9.16.0 + version: 9.16.0(jiti@2.3.3) eslint-config-hyoban: - specifier: ^3.1.13 - version: 3.1.13(@typescript-eslint/eslint-plugin@8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)))(typescript@5.7.2) + specifier: ^3.1.14 + version: 3.1.14(@typescript-eslint/eslint-plugin@8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)))(typescript@5.7.2) fake-indexeddb: specifier: 6.0.0 version: 6.0.0 happy-dom: - specifier: 15.11.6 - version: 15.11.6 + specifier: 15.11.7 + version: 15.11.7 hono: - specifier: 4.6.11 - version: 4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24) + specifier: 4.6.12 + version: 4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24) html-minifier-terser: specifier: 7.2.0 version: 7.2.0 @@ -229,16 +226,16 @@ importers: version: 2.11.1 tailwindcss: specifier: 3.4.15 - version: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + version: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) tailwindcss-animate: specifier: 1.0.7 - version: 1.0.7(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))) + version: 1.0.7(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))) tailwindcss-motion: specifier: 0.4.3-beta - version: 0.4.3-beta(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))) + version: 0.4.3-beta(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))) tailwindcss-safe-area: specifier: 0.6.0 - version: 0.6.0(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))) + version: 0.6.0(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))) tar: specifier: 7.4.3 version: 7.4.3 @@ -255,26 +252,26 @@ importers: specifier: 5.7.2 version: 5.7.2 unplugin-ast: - specifier: ^0.11.0 - version: 0.11.0(rollup@2.79.2)(webpack-sources@3.2.3) + specifier: ^0.12.0 + version: 0.12.0(rollup@2.79.2) vite: - specifier: ^6.0.1 - version: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + specifier: 6.0.2 + version: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) vite-bundle-analyzer: - specifier: 0.14.3 - version: 0.14.3 + specifier: 0.15.2 + version: 0.15.2 vite-plugin-mkcert: specifier: 1.17.6 - version: 1.17.6(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) + version: 1.17.6(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) vite-plugin-pwa: - specifier: 0.21.0 - version: 0.21.0(@vite-pwa/assets-generator@0.2.6)(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))(workbox-build@7.3.0(@types/babel__core@7.20.5))(workbox-window@7.3.0) + specifier: 0.21.1 + version: 0.21.1(@vite-pwa/assets-generator@0.2.6)(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))(workbox-build@7.3.0(@types/babel__core@7.20.5))(workbox-window@7.3.0) vite-tsconfig-paths: specifier: 5.1.3 - version: 5.1.3(typescript@5.7.2)(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) + version: 5.1.3(typescript@5.7.2)(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) vitest: specifier: 2.1.6 - version: 2.1.6(@edge-runtime/vm@3.2.0)(@types/node@22.10.0)(happy-dom@15.11.6)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + version: 2.1.6(@edge-runtime/vm@3.2.0)(@types/node@22.10.1)(happy-dom@15.11.7)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) apps/main: dependencies: @@ -305,6 +302,9 @@ importers: builder-util-runtime: specifier: 9.2.10 version: 9.2.10 + dompurify: + specifier: ~3.2.2 + version: 3.2.2 electron-context-menu: specifier: 4.0.4 version: 4.0.4(patch_hash=c53at4t5fflixuwjz35hmcqdu4) @@ -318,8 +318,8 @@ importers: specifier: ^6.3.9 version: 6.3.9 es-toolkit: - specifier: 1.27.0 - version: 1.27.0 + specifier: 1.29.0 + version: 1.29.0 fast-folder-size: specifier: 2.3.0 version: 2.3.0 @@ -361,8 +361,8 @@ importers: specifier: 4.0.9 version: 4.0.9 '@types/node': - specifier: ^22.10.0 - version: 22.10.0 + specifier: ^22.10.1 + version: 22.10.1 electron: specifier: 33.2.0 version: 33.2.0 @@ -370,8 +370,8 @@ importers: specifier: 3.2.0 version: 3.2.0 hono: - specifier: 4.6.11 - version: 4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24) + specifier: 4.6.12 + version: 4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24) apps/renderer: dependencies: @@ -396,15 +396,12 @@ importers: '@headlessui/react': specifier: 2.2.0 version: 2.2.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@hono/auth-js': - specifier: 1.0.15 - version: 1.0.15(@auth/core@0.37.4)(hono@4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24))(react@18.3.1) '@hookform/resolvers': specifier: 3.9.1 version: 3.9.1(react-hook-form@7.53.2(react@18.3.1)) '@lottiefiles/dotlottie-react': - specifier: 0.10.0 - version: 0.10.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 0.10.1 + version: 0.10.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@microflash/remark-callout-directives': specifier: 4.3.2 version: 4.3.2 @@ -439,23 +436,26 @@ importers: specifier: 1.1.0 version: 1.1.0(@types/react@18.3.12)(react@18.3.1) '@sentry/react': - specifier: 8.40.0 - version: 8.40.0(react@18.3.1) + specifier: 8.41.0 + version: 8.41.0(react@18.3.1) '@shikijs/transformers': - specifier: 1.23.1 - version: 1.23.1 + specifier: 1.24.0 + version: 1.24.0 '@tanstack/query-sync-storage-persister': - specifier: 5.61.4 - version: 5.61.4 + specifier: 5.62.0 + version: 5.62.0 '@tanstack/react-query': - specifier: 5.61.4 - version: 5.61.4(react@18.3.1) + specifier: 5.62.0 + version: 5.62.0(react@18.3.1) '@tanstack/react-query-devtools': - specifier: 5.61.4 - version: 5.61.4(@tanstack/react-query@5.61.4(react@18.3.1))(react@18.3.1) + specifier: 5.62.0 + version: 5.62.0(@tanstack/react-query@5.62.0(react@18.3.1))(react@18.3.1) '@tanstack/react-query-persist-client': - specifier: 5.61.4 - version: 5.61.4(@tanstack/react-query@5.61.4(react@18.3.1))(react@18.3.1) + specifier: 5.62.0 + version: 5.62.0(@tanstack/react-query@5.62.0(react@18.3.1))(react@18.3.1) + '@tanstack/react-virtual': + specifier: 3.10.9 + version: 3.10.9(patch_hash=fpkworxfwphev7q33sgiutu7aq)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@use-gesture/react': specifier: 10.3.1 version: 10.3.1(react@18.3.1) @@ -499,8 +499,8 @@ importers: specifier: 8.0.1 version: 8.0.1(embla-carousel@8.5.1) es-toolkit: - specifier: 'catalog:' - version: 1.27.0 + specifier: 1.29.0 + version: 1.29.0 firebase: specifier: 11.0.2 version: 11.0.2 @@ -508,8 +508,8 @@ importers: specifier: 0.2.42 version: 0.2.42(react@18.3.1) framer-motion: - specifier: 11.11.17 - version: 11.11.17(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 11.12.0 + version: 11.12.0(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) franc-min: specifier: 6.2.0 version: 6.2.0 @@ -566,7 +566,7 @@ importers: version: 8.2.0 plain-shiki: specifier: 0.0.12 - version: 0.0.12(shiki@1.23.1) + version: 0.0.12(shiki@1.24.0) re-resizable: specifier: 6.10.1 version: 6.10.1(patch_hash=yitcmpfwcomg2fky72uc3lhk2i)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -586,8 +586,8 @@ importers: specifier: 4.6.1 version: 4.6.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-i18next: - specifier: ^15.1.2 - version: 15.1.2(i18next@24.0.2(typescript@5.7.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: ^15.1.3 + version: 15.1.3(i18next@24.0.2(typescript@5.7.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-intersection-observer: specifier: 9.13.1 version: 9.13.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -606,9 +606,6 @@ importers: react-shadow: specifier: 20.5.0 version: 20.5.0(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - react-virtuoso: - specifier: 4.12.2 - version: 4.12.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-zoom-pan-pinch: specifier: ^3.6.1 version: 3.6.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -640,14 +637,14 @@ importers: specifier: 11.1.1 version: 11.1.1 shiki: - specifier: 1.23.1 - version: 1.23.1 + specifier: 1.24.0 + version: 1.24.0 sonner: specifier: 1.7.0 version: 1.7.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) tldts: - specifier: 6.1.64 - version: 6.1.64 + specifier: 6.1.65 + version: 6.1.65 unified: specifier: 11.0.5 version: 11.0.5 @@ -713,8 +710,8 @@ importers: specifier: 0.16.7 version: 0.16.7 '@types/node': - specifier: ^22.10.0 - version: 22.10.0 + specifier: ^22.10.1 + version: 22.10.1 '@types/react': specifier: ^18.3.12 version: 18.3.12 @@ -728,8 +725,8 @@ importers: specifier: 6.0.0 version: 6.0.0 happy-dom: - specifier: 15.11.6 - version: 15.11.6 + specifier: 15.11.7 + version: 15.11.7 react: specifier: ^18.3.1 version: 18.3.1 @@ -737,8 +734,8 @@ importers: specifier: ^18.3.1 version: 18.3.1(react@18.3.1) react-scan: - specifier: 0.0.33 - version: 0.0.33 + specifier: 0.0.35 + version: 0.0.35 apps/server: dependencies: @@ -751,9 +748,6 @@ importers: '@fontsource/sn-pro': specifier: 5.1.0 version: 5.1.0 - '@hono/auth-js': - specifier: 1.0.15 - version: 1.0.15(@auth/core@0.37.4)(hono@4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24))(react@18.3.1) '@openpanel/web': specifier: 1.0.1 version: 1.0.1 @@ -761,11 +755,11 @@ importers: specifier: 2.6.2 version: 2.6.2 '@sentry/react': - specifier: 8.40.0 - version: 8.40.0(react@18.3.1) + specifier: 8.41.0 + version: 8.41.0(react@18.3.1) '@tanstack/react-query': - specifier: 5.61.4 - version: 5.61.4(react@18.3.1) + specifier: 5.62.0 + version: 5.62.0(react@18.3.1) blurhash: specifier: 2.0.5 version: 2.0.5 @@ -779,8 +773,8 @@ importers: specifier: 5.1.0 version: 5.1.0 framer-motion: - specifier: 11.11.17 - version: 11.11.17(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 11.12.0 + version: 11.12.0(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) i18next: specifier: ^24.0.2 version: 24.0.2(typescript@5.7.2) @@ -798,7 +792,7 @@ importers: version: 1.4.1 rc-modal-sheet: specifier: 0.3.2 - version: 0.3.2(@radix-ui/react-dialog@1.1.2(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(clsx@2.1.1)(framer-motion@11.11.17(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(tailwind-merge@2.5.5)(vaul@1.1.1(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) + version: 0.3.2(@radix-ui/react-dialog@1.1.2(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(clsx@2.1.1)(framer-motion@11.12.0(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(tailwind-merge@2.5.5)(vaul@1.1.1(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) react: specifier: ^18.3.1 version: 18.3.1 @@ -809,8 +803,8 @@ importers: specifier: 4.6.1 version: 4.6.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-i18next: - specifier: ^15.1.2 - version: 15.1.2(i18next@24.0.2(typescript@5.7.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: ^15.1.3 + version: 15.1.3(i18next@24.0.2(typescript@5.7.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-photo-view: specifier: 1.2.6 version: 1.2.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -825,7 +819,7 @@ importers: version: 1.7.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) tailwindcss: specifier: 3.4.15 - version: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + version: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) use-context-selector: specifier: 2.0.0 version: 2.0.0(react@18.3.1)(scheduler@0.23.2) @@ -870,8 +864,8 @@ importers: specifier: 4.1.0 version: 4.1.0 es-toolkit: - specifier: 'catalog:' - version: 1.27.0 + specifier: 1.29.0 + version: 1.29.0 foxact: specifier: 0.2.42 version: 0.2.42(react@18.3.1) @@ -903,8 +897,8 @@ importers: specifier: 4.19.2 version: 4.19.2 vite: - specifier: 6.0.1 - version: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + specifier: 6.0.2 + version: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) packages/atoms: dependencies: @@ -975,8 +969,8 @@ importers: specifier: 1.2.1 version: 1.2.1(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-scroll-area': - specifier: 1.2.0 - version: 1.2.0(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 1.2.1 + version: 1.2.1(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-select': specifier: 2.1.2 version: 2.1.2(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -1011,8 +1005,8 @@ importers: specifier: 0.2.42 version: 0.2.42(react@18.3.1) framer-motion: - specifier: 11.11.17 - version: 11.11.17(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 11.12.0 + version: 11.12.0(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) jotai: specifier: 2.10.3 version: 2.10.3(@types/react@18.3.12)(react@18.3.1) @@ -1020,13 +1014,13 @@ importers: specifier: 4.0.1 version: 4.0.1(react@18.3.1) react: - specifier: ^18.0.0 + specifier: ^18.3.1 version: 18.3.1 react-blurhash: specifier: ^0.3.0 version: 0.3.0(blurhash@2.0.5)(react@18.3.1) react-dom: - specifier: ^18.0.0 + specifier: ^18.3.1 version: 18.3.1(react@18.3.1) react-fast-marquee: specifier: 1.6.5 @@ -1035,8 +1029,8 @@ importers: specifier: 7.53.2 version: 7.53.2(react@18.3.1) react-i18next: - specifier: ^15.1.2 - version: 15.1.2(i18next@24.0.2(typescript@5.7.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: ^15.1.3 + version: 15.1.3(i18next@24.0.2(typescript@5.7.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) sonner: specifier: 1.7.0 version: 1.7.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -1077,10 +1071,10 @@ importers: specifier: 2.10.3 version: 2.10.3(@types/react@18.3.12)(react@18.3.1) react: - specifier: ^18.0.0 + specifier: ^18.3.1 version: 18.3.1 react-dom: - specifier: ^18.0.0 + specifier: ^18.3.1 version: 18.3.1(react@18.3.1) usehooks-ts: specifier: 3.1.0 @@ -1107,8 +1101,8 @@ importers: specifier: workspace:* version: link:../utils hono: - specifier: 4.6.11 - version: 4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24) + specifier: 4.6.12 + version: 4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24) packages/shared: dependencies: @@ -1117,22 +1111,25 @@ importers: version: 3.0.1(electron@33.2.0) '@electron-toolkit/tsconfig': specifier: ^1.0.1 - version: 1.0.1(@types/node@22.10.0) + version: 1.0.1(@types/node@22.10.1) '@hono/node-server': - specifier: ^1.13.7 - version: 1.13.7(hono@4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24)) + specifier: 1.13.7 + version: 1.13.7(hono@4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24)) '@t3-oss/env-core': specifier: ^0.11.1 version: 0.11.1(typescript@5.7.2)(zod@3.23.8) + better-auth: + specifier: 1.0.7 + version: 1.0.7(encoding@0.1.13) drizzle-orm: - specifier: ^0.36.4 - version: 0.36.4(@opentelemetry/api@1.9.0)(@types/pg@8.11.10)(@types/react@18.3.12)(react@18.3.1) + specifier: 0.36.4 + version: 0.36.4(@opentelemetry/api@1.9.0)(@types/pg@8.11.10)(@types/react@18.3.12)(kysely@0.27.4)(react@18.3.1) electron: - specifier: ^33.2.0 + specifier: 33.2.0 version: 33.2.0 hono: - specifier: ^4.6.11 - version: 4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24) + specifier: 4.6.12 + version: 4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24) react: specifier: ^18.3.1 version: 18.3.1 @@ -1143,7 +1140,7 @@ importers: specifier: 1.7.0 version: 1.7.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) zod: - specifier: ^3.23.8 + specifier: 3.23.8 version: 3.23.8 packages/types: {} @@ -1160,8 +1157,8 @@ importers: specifier: 2.1.1 version: 2.1.1 framer-motion: - specifier: 11.11.17 - version: 11.11.17(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 11.12.0 + version: 11.12.0(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) nanoid: specifier: 5.0.9 version: 5.0.9 @@ -1169,8 +1166,8 @@ importers: specifier: 2.5.5 version: 2.5.5 tldts: - specifier: 6.1.64 - version: 6.1.64 + specifier: 6.1.65 + version: 6.1.65 uniqolor: specifier: 1.1.1 version: 1.1.1 @@ -1359,13 +1356,6 @@ packages: peerDependencies: '@babel/core': ^7.0.0 - '@babel/plugin-proposal-private-methods@7.18.6': - resolution: {integrity: sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==} - engines: {node: '>=6.9.0'} - deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead. - peerDependencies: - '@babel/core': ^7.0.0-0 - '@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2': resolution: {integrity: sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==} engines: {node: '>=6.9.0'} @@ -1729,6 +1719,9 @@ packages: resolution: {integrity: sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==} engines: {node: '>=6.9.0'} + '@better-fetch/fetch@1.1.12': + resolution: {integrity: sha512-B3bfloI/2UBQWIATRN6qmlORrvx3Mp0kkNjmXLv0b+DtbtR+pP4/I5kQA/rDUv+OReLywCCldf6co4LdDmh8JA==} + '@canvas/image-data@1.0.0': resolution: {integrity: sha512-BxOqI5LgsIQP1odU5KMwV9yoijleOPzHL18/YvNqF9KFSGF2K/DLlYAbDQsWqd/1nbaFuSkYD/191dpMtNh4vw==} @@ -1978,6 +1971,12 @@ packages: engines: {node: '>=14.14'} hasBin: true + '@emnapi/core@0.45.0': + resolution: {integrity: sha512-DPWjcUDQkCeEM4VnljEOEcXdAD7pp8zSZsgOujk/LGIwCXWbXJngin+MO4zbH429lzeC3WbYLGjE2MaUOwzpyw==} + + '@emnapi/runtime@0.45.0': + resolution: {integrity: sha512-Txumi3td7J4A/xTTwlssKieHKTGl3j4A1tglBx72auZ49YK7ePY6XZricgIg9mnZT4xPfA+UPCUdnhRuEFDL+w==} + '@emotion/is-prop-valid@1.3.1': resolution: {integrity: sha512-/ACwoqx7XQi9knQs/G0qKvv5teDMhD7bXYns9N/wM8ah8iNb8jZ2uNO0YOgiq2o2poIvVtJS2YALasQuMSQ7Kw==} @@ -2428,14 +2427,14 @@ packages: resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - '@eslint-react/ast@1.17.1': - resolution: {integrity: sha512-cPW05RlZtgNwR/99U6YFrNqCCdGurP/dIgN3SWQtPrX91JtP2OmlEyKlTZ3E3lXB6ijS6oZcmp6NljL7M8V+ig==} + '@eslint-react/ast@1.17.2': + resolution: {integrity: sha512-N0Xlx0ARwWe8K1SUKf/ojAU3h+pv51C4FsRjQSdlLSlQ19KVZfl3xnpMEpGYGmtvVREID2FUl7qrl+jvbgJd1Q==} - '@eslint-react/core@1.17.1': - resolution: {integrity: sha512-4jE0oQnkf2B7BaGkp5cbe9wPmOK2978gaqDJ6sqwvcL1cIkWY0Z1c8Wbq8rWztlVRiPYNpmbmJ+COAYDxzvhhQ==} + '@eslint-react/core@1.17.2': + resolution: {integrity: sha512-HQE1w32YRSjoUY7sUoIaFIqPBII91atlzIi3PoostRpJWynJQyeIvnelf7WVPh/7nb9l8DxguiyPS6Ph9oro4w==} - '@eslint-react/eslint-plugin@1.17.1': - resolution: {integrity: sha512-/ctfKryjIAJuIsGIjp354g8PZB6AIU61ZXSysEwJhj2lfZt/QHGPBMSE2XlIvwxK6wWqiN+9aSbXHrIvfvAKhg==} + '@eslint-react/eslint-plugin@1.17.2': + resolution: {integrity: sha512-kDKxB3zDJFQk/OrX4NfYLqzE7etTXCKtSoF82ozy+QbK8PTNJYvtt9kXGFbKqKSxRe3sAQalDVnw8Czf8WOviw==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -2444,20 +2443,20 @@ packages: typescript: optional: true - '@eslint-react/jsx@1.17.1': - resolution: {integrity: sha512-L6Zdh8zTAMO9LUmXlL/YX/gU4ja9vCkov834LYmSf7k5wbc17fniSqXYVfqQrWl+T11mdyN+alx4IjQti3lHgA==} + '@eslint-react/jsx@1.17.2': + resolution: {integrity: sha512-SWp4w93+w2gC8Ov34pX+Xr0qqFl73AMarmuaFH8xNgJI9Q1+8pqAsfrdcUGq3bsqunldYoILiLm/rzffij0n4g==} - '@eslint-react/shared@1.17.1': - resolution: {integrity: sha512-wB/mBIfuc36Hn2GShHsSO91uqL9lI3VVVwTzJ3YhAN4hJMeZn8fWMuARtwaVeFpmLNYI7hG5wGxo4bHn9yKjsw==} + '@eslint-react/shared@1.17.2': + resolution: {integrity: sha512-mUZYVufwNffMsdRQjVuyuipBRc4h3SR4mG1jnRUcu8N2PNA/oyZkdlnMdA3rIpqrgIZ/o4ruiFSZb7tmLgcMUg==} - '@eslint-react/tools@1.17.1': - resolution: {integrity: sha512-0ZUw3PF70qeBMJLrntmojQLGzy5S05fwor5CxrHIp1MwQoPTphX11WiuCuq5ohHZ+xopqLHASkRrvAPthAalUQ==} + '@eslint-react/tools@1.17.2': + resolution: {integrity: sha512-yb/O7/VceXp/IWDtgeSvnyaUvEbgXglaol6AuARlzoWIIRp1eYhNkXUJPZWsSpnqvK5F2mXX6D2TN5L74EEuLQ==} - '@eslint-react/types@1.17.1': - resolution: {integrity: sha512-jf9kkRRnV65wCQPdVIGBa81VH4CbN/qULSg6YnErKd4Kgbq6l8Sh54lY8Qlo1jj2LHtzo/nACdyWx1aOgkyuDg==} + '@eslint-react/types@1.17.2': + resolution: {integrity: sha512-I6rylxFVR+5E4C3PtKxebzEihPSu5A7QanEkI4aFOXkr8URkSCjpQxtyhw4bFxW6ElzoSKpnYMqZuWZEu2ySrA==} - '@eslint-react/var@1.17.1': - resolution: {integrity: sha512-hsHzVjfj+FmAkk6VRqwYJtEBI+k5fUkw2YgMezTx2HkuWP6BWYprLzD+tRU1IS5jMrvIw1FkcBLfcu0EU5FfLQ==} + '@eslint-react/var@1.17.2': + resolution: {integrity: sha512-8SkmLMe8st6Ynti70rz9j8KCcw3FHQj5ZasIjkeCdLAVgZ1ADU6D7nHdVz6f5kIyA4h97TIjvztM/75DIWUVYQ==} '@eslint/compat@1.2.3': resolution: {integrity: sha512-wlZhwlDFxkxIZ571aH0FoK4h4Vwx7P3HJx62Gp8hTc10bfpwT2x0nULuAHmQSJBOWPgPeVf+9YtnD4j50zVHmA==} @@ -2480,8 +2479,8 @@ packages: resolution: {integrity: sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/js@9.15.0': - resolution: {integrity: sha512-tMTqrY+EzbXmKJR5ToI8lxu7jaN5EdmrBFJpQk5JmSlyLsx6o4t27r883K5xsLuCYCpfKBCGswMSWXsM+jB7lg==} + '@eslint/js@9.16.0': + resolution: {integrity: sha512-tw2HxzQkrbeuvyj1tG2Yqq+0H9wGoI2IMk4EOsQeX+vmd75FtJAzf+gTA69WF+baUKRYQ3x2kbLE08js5OsTVg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@eslint/object-schema@2.1.4': @@ -2795,13 +2794,8 @@ packages: react: ^18 || ^19 || ^19.0.0-rc react-dom: ^18 || ^19 || ^19.0.0-rc - '@hono/auth-js@1.0.15': - resolution: {integrity: sha512-nuTP9zZBjJnHTCybQhC3cbTgboElhnlSuPFFogRcDUs9uqBd1mC2EM2jFlaErqim3laU325jP4j2tRCqiZnRHQ==} - engines: {node: '>=18.4.0'} - peerDependencies: - '@auth/core': 0.* - hono: '>=3.*' - react: ^18 || ^19 || ^19.0.0-rc + '@hexagon/base64@1.1.28': + resolution: {integrity: sha512-lhqDEAvWixy3bZ+UOYbPwUbBkwBq5C1LAJ/xPC8Oi+lL54oyakv/npbA0aU2hgCsx/1NUd4IBvV03+aUBWxerw==} '@hono/node-server@1.13.7': resolution: {integrity: sha512-kTfUMsoloVKtRA2fLiGSd9qBddmru9KadNyhJCwgKBxTiNkaAJEwkVN9KV/rS4HtmmNRtUh6P+YpmjRMl0d9vQ==} @@ -2894,14 +2888,17 @@ packages: '@jridgewell/trace-mapping@0.3.9': resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} - '@lottiefiles/dotlottie-react@0.10.0': - resolution: {integrity: sha512-krPJUIqpt7VluWc0aRWk0lYScCDSlbCpWvImU5eyJZeyroZ87bZYb+YlgUbtLHZ77DWmIBl4kGMhupU8+ugPSw==} + '@levischuck/tiny-cbor@0.2.2': + resolution: {integrity: sha512-f5CnPw997Y2GQ8FAvtuVVC19FX8mwNNC+1XJcIi16n/LTJifKO6QBgGLgN3YEmqtGMk17SKSuoWES3imJVxAVw==} + + '@lottiefiles/dotlottie-react@0.10.1': + resolution: {integrity: sha512-+RED+Nhv5viaSOXsMcRDQoAOJsGgwXIHYSovNnatMGD5ioxfum7PYUCuuZicYFScyeLZJsSfjnzr5XaE6pivAg==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - '@lottiefiles/dotlottie-web@0.37.0': - resolution: {integrity: sha512-dCtQkYlq9GDswJNmcIlUaAskxrsJ56SRhY8woNsHuIPWy+tfP9tgf1fA9fZ1Oj72DVdyYkK0DxLk58HhBrmpBQ==} + '@lottiefiles/dotlottie-web@0.38.0': + resolution: {integrity: sha512-3ZAD1TS0NkgtZvIkrfFMTW5BSxRiXTG9UGCwqI98gdZ5UCyDVGxi898dFlhvNhE5vcl30LpxICp5AnuBWonCig==} '@malept/cross-spawn-promise@1.1.1': resolution: {integrity: sha512-RTBGWL5FWQcg9orDOCcp4LvItNzUPcyEU9bwaeJX0rJ1IQxzucC48Y0/sQLp/g6t99IQgAlGIaesJS+gTn7tVQ==} @@ -2926,6 +2923,195 @@ packages: resolution: {integrity: sha512-Z+CZ3QaosfFaTqvhQsIktyGrjFjSC0Fa4EMph4mqKnWhmyoGICsV/8QK+8HpXut6zV7zwfWwqDmEjtk1Qf6EgQ==} engines: {node: '>=14.0.0'} + '@noble/ciphers@0.6.0': + resolution: {integrity: sha512-mIbq/R9QXk5/cTfESb1OKtyFnk7oc1Om/8onA1158K9/OZUQFDEVy55jVTato+xmp3XX6F6Qh0zz0Nc1AxAlRQ==} + + '@noble/hashes@1.6.1': + resolution: {integrity: sha512-pq5D8h10hHBjyqX+cfBm0i8JUXJ0UhczFc4r74zbuT9XgewFo2E3J1cOaGtdZynILNmQ685YWGzGE1Zv6io50w==} + engines: {node: ^14.21.3 || >=16} + + '@node-rs/argon2-android-arm-eabi@1.7.0': + resolution: {integrity: sha512-udDqkr5P9E+wYX1SZwAVPdyfYvaF4ry9Tm+R9LkfSHbzWH0uhU6zjIwNRp7m+n4gx691rk+lqqDAIP8RLKwbhg==} + engines: {node: '>= 10'} + cpu: [arm] + os: [android] + + '@node-rs/argon2-android-arm64@1.7.0': + resolution: {integrity: sha512-s9j/G30xKUx8WU50WIhF0fIl1EdhBGq0RQ06lEhZ0Gi0ap8lhqbE2Bn5h3/G2D1k0Dx+yjeVVNmt/xOQIRG38A==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [android] + + '@node-rs/argon2-darwin-arm64@1.7.0': + resolution: {integrity: sha512-ZIz4L6HGOB9U1kW23g+m7anGNuTZ0RuTw0vNp3o+2DWpb8u8rODq6A8tH4JRL79S+Co/Nq608m9uackN2pe0Rw==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + + '@node-rs/argon2-darwin-x64@1.7.0': + resolution: {integrity: sha512-5oi/pxqVhODW/pj1+3zElMTn/YukQeywPHHYDbcAW3KsojFjKySfhcJMd1DjKTc+CHQI+4lOxZzSUzK7mI14Hw==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + + '@node-rs/argon2-freebsd-x64@1.7.0': + resolution: {integrity: sha512-Ify08683hA4QVXYoIm5SUWOY5DPIT/CMB0CQT+IdxQAg/F+qp342+lUkeAtD5bvStQuCx/dFO3bnnzoe2clMhA==} + engines: {node: '>= 10'} + cpu: [x64] + os: [freebsd] + + '@node-rs/argon2-linux-arm-gnueabihf@1.7.0': + resolution: {integrity: sha512-7DjDZ1h5AUHAtRNjD19RnQatbhL+uuxBASuuXIBu4/w6Dx8n7YPxwTP4MXfsvuRgKuMWiOb/Ub/HJ3kXVCXRkg==} + engines: {node: '>= 10'} + cpu: [arm] + os: [linux] + + '@node-rs/argon2-linux-arm64-gnu@1.7.0': + resolution: {integrity: sha512-nJDoMP4Y3YcqGswE4DvP080w6O24RmnFEDnL0emdI8Nou17kNYBzP2546Nasx9GCyLzRcYQwZOUjrtUuQ+od2g==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@node-rs/argon2-linux-arm64-musl@1.7.0': + resolution: {integrity: sha512-BKWS8iVconhE3jrb9mj6t1J9vwUqQPpzCbUKxfTGJfc+kNL58F1SXHBoe2cDYGnHrFEHTY0YochzXoAfm4Dm/A==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@node-rs/argon2-linux-x64-gnu@1.7.0': + resolution: {integrity: sha512-EmgqZOlf4Jurk/szW1iTsVISx25bKksVC5uttJDUloTgsAgIGReCpUUO1R24pBhu9ESJa47iv8NSf3yAfGv6jQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@node-rs/argon2-linux-x64-musl@1.7.0': + resolution: {integrity: sha512-/o1efYCYIxjfuoRYyBTi2Iy+1iFfhqHCvvVsnjNSgO1xWiWrX0Rrt/xXW5Zsl7vS2Y+yu8PL8KFWRzZhaVxfKA==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@node-rs/argon2-wasm32-wasi@1.7.0': + resolution: {integrity: sha512-Evmk9VcxqnuwQftfAfYEr6YZYSPLzmKUsbFIMep5nTt9PT4XYRFAERj7wNYp+rOcBenF3X4xoB+LhwcOMTNE5w==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + + '@node-rs/argon2-win32-arm64-msvc@1.7.0': + resolution: {integrity: sha512-qgsU7T004COWWpSA0tppDqDxbPLgg8FaU09krIJ7FBl71Sz8SFO40h7fDIjfbTT5w7u6mcaINMQ5bSHu75PCaA==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [win32] + + '@node-rs/argon2-win32-ia32-msvc@1.7.0': + resolution: {integrity: sha512-JGafwWYQ/HpZ3XSwP4adQ6W41pRvhcdXvpzIWtKvX+17+xEXAe2nmGWM6s27pVkg1iV2ZtoYLRDkOUoGqZkCcg==} + engines: {node: '>= 10'} + cpu: [ia32] + os: [win32] + + '@node-rs/argon2-win32-x64-msvc@1.7.0': + resolution: {integrity: sha512-9oq4ShyFakw8AG3mRls0AoCpxBFcimYx7+jvXeAf2OqKNO+mSA6eZ9z7KQeVCi0+SOEUYxMGf5UiGiDb9R6+9Q==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + + '@node-rs/argon2@1.7.0': + resolution: {integrity: sha512-zfULc+/tmcWcxn+nHkbyY8vP3+MpEqKORbszt4UkpqZgBgDAAIYvuDN/zukfTgdmo6tmJKKVfzigZOPk4LlIog==} + engines: {node: '>= 10'} + + '@node-rs/bcrypt-android-arm-eabi@1.9.0': + resolution: {integrity: sha512-nOCFISGtnodGHNiLrG0WYLWr81qQzZKYfmwHc7muUeq+KY0sQXyHOwZk9OuNQAWv/lnntmtbwkwT0QNEmOyLvA==} + engines: {node: '>= 10'} + cpu: [arm] + os: [android] + + '@node-rs/bcrypt-android-arm64@1.9.0': + resolution: {integrity: sha512-+ZrIAtigVmjYkqZQTThHVlz0+TG6D+GDHWhVKvR2DifjtqJ0i+mb9gjo++hN+fWEQdWNGxKCiBBjwgT4EcXd6A==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [android] + + '@node-rs/bcrypt-darwin-arm64@1.9.0': + resolution: {integrity: sha512-CQiS+F9Pa0XozvkXR1g7uXE9QvBOPOplDg0iCCPRYTN9PqA5qYxhwe48G3o+v2UeQceNRrbnEtWuANm7JRqIhw==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + + '@node-rs/bcrypt-darwin-x64@1.9.0': + resolution: {integrity: sha512-4pTKGawYd7sNEjdJ7R/R67uwQH1VvwPZ0SSUMmeNHbxD5QlwAPXdDH11q22uzVXsvNFZ6nGQBg8No5OUGpx6Ug==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + + '@node-rs/bcrypt-freebsd-x64@1.9.0': + resolution: {integrity: sha512-UmWzySX4BJhT/B8xmTru6iFif3h0Rpx3TqxRLCcbgmH43r7k5/9QuhpiyzpvKGpKHJCFNm4F3rC2wghvw5FCIg==} + engines: {node: '>= 10'} + cpu: [x64] + os: [freebsd] + + '@node-rs/bcrypt-linux-arm-gnueabihf@1.9.0': + resolution: {integrity: sha512-8qoX4PgBND2cVwsbajoAWo3NwdfJPEXgpCsZQZURz42oMjbGyhhSYbovBCskGU3EBLoC8RA2B1jFWooeYVn5BA==} + engines: {node: '>= 10'} + cpu: [arm] + os: [linux] + + '@node-rs/bcrypt-linux-arm64-gnu@1.9.0': + resolution: {integrity: sha512-TuAC6kx0SbcIA4mSEWPi+OCcDjTQUMl213v5gMNlttF+D4ieIZx6pPDGTaMO6M2PDHTeCG0CBzZl0Lu+9b0c7Q==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@node-rs/bcrypt-linux-arm64-musl@1.9.0': + resolution: {integrity: sha512-/sIvKDABOI8QOEnLD7hIj02BVaNOuCIWBKvxcJOt8+TuwJ6zmY1UI5kSv9d99WbiHjTp97wtAUbZQwauU4b9ew==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@node-rs/bcrypt-linux-x64-gnu@1.9.0': + resolution: {integrity: sha512-DyyhDHDsLBsCKz1tZ1hLvUZSc1DK0FU0v52jK6IBQxrj24WscSU9zZe7ie/V9kdmA4Ep57BfpWX8Dsa2JxGdgQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@node-rs/bcrypt-linux-x64-musl@1.9.0': + resolution: {integrity: sha512-duIiuqQ+Lew8ASSAYm6ZRqcmfBGWwsi81XLUwz86a2HR7Qv6V4yc3ZAUQovAikhjCsIqe8C11JlAZSK6+PlXYg==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@node-rs/bcrypt-wasm32-wasi@1.9.0': + resolution: {integrity: sha512-ylaGmn9Wjwv/D5lxtawttx3H6Uu2WTTR7lWlRHGT6Ga/MB1Vj4OjSGUW8G8zIVnKuXpGbZ92pgHlt4HUpSLctw==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + + '@node-rs/bcrypt-win32-arm64-msvc@1.9.0': + resolution: {integrity: sha512-2h86gF7QFyEzODuDFml/Dp1MSJoZjxJ4yyT2Erf4NkwsiA5MqowUhUsorRwZhX6+2CtlGa7orbwi13AKMsYndw==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [win32] + + '@node-rs/bcrypt-win32-ia32-msvc@1.9.0': + resolution: {integrity: sha512-kqxalCvhs4FkN0+gWWfa4Bdy2NQAkfiqq/CEf6mNXC13RSV673Ev9V8sRlQyNpCHCNkeXfOT9pgoBdJmMs9muA==} + engines: {node: '>= 10'} + cpu: [ia32] + os: [win32] + + '@node-rs/bcrypt-win32-x64-msvc@1.9.0': + resolution: {integrity: sha512-2y0Tuo6ZAT2Cz8V7DHulSlv1Bip3zbzeXyeur+uR25IRNYXKvI/P99Zl85Fbuu/zzYAZRLLlGTRe6/9IHofe/w==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + + '@node-rs/bcrypt@1.9.0': + resolution: {integrity: sha512-u2OlIxW264bFUfvbFqDz9HZKFjwe8FHFtn7T/U8mYjPZ7DWYpbUB+/dkW/QgYfMSfR0ejkyuWaBBe0coW7/7ig==} + engines: {node: '>= 10'} + '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -3261,6 +3447,21 @@ packages: '@panva/hkdf@1.2.1': resolution: {integrity: sha512-6oclG6Y3PiDFcoyk8srjLfVKyMfVCKJ27JwNPViuXziFpmdz+MZnZN/aKY0JGXgYuO/VghU0jcOAZgWXZ1Dmrw==} + '@peculiar/asn1-android@2.3.13': + resolution: {integrity: sha512-0VTNazDGKrLS6a3BwTDZanqq6DR/I3SbvmDMuS8Be+OYpvM6x1SRDh9AGDsHVnaCOIztOspCPc6N1m+iUv1Xxw==} + + '@peculiar/asn1-ecc@2.3.14': + resolution: {integrity: sha512-zWPyI7QZto6rnLv6zPniTqbGaLh6zBpJyI46r1yS/bVHJXT2amdMHCRRnbV5yst2H8+ppXG6uXu/M6lKakiQ8w==} + + '@peculiar/asn1-rsa@2.3.13': + resolution: {integrity: sha512-wBNQqCyRtmqvXkGkL4DR3WxZhHy8fDiYtOjTeCd7SFE5F6GBeafw3EJ94PX/V0OJJrjQ40SkRY2IZu3ZSyBqcg==} + + '@peculiar/asn1-schema@2.3.13': + resolution: {integrity: sha512-3Xq3a01WkHRZL8X04Zsfg//mGaA21xlL4tlVn4v2xGT0JStiztATRkMwa5b+f/HXmY2smsiLXYK46Gwgzvfg3g==} + + '@peculiar/asn1-x509@2.3.13': + resolution: {integrity: sha512-PfeLQl2skXmxX2/AFFCVaWU8U6FKW1Db43mgBhShCOFS1bVxqtvusq1hVjfuEcuSQGedrLdCSvTgabluwN/M9A==} + '@pengx17/electron-forge-maker-appimage@1.2.1': resolution: {integrity: sha512-6w1XbUUZS431UaubbBQvKYDGs2MnTFxEWeJX1RjQXrxl0LrZULOarTogpda8UR9y7nAwtuEKm84OxWBrtH87ww==} @@ -3625,8 +3826,8 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-scroll-area@1.2.0': - resolution: {integrity: sha512-q2jMBdsJ9zB7QG6ngQNzNwlvxLQqONyL58QbEGwuyRZZb/ARQwk3uQVbCF7GvQVOtV6EU/pDxAw3zRzJZI3rpQ==} + '@radix-ui/react-scroll-area@1.2.1': + resolution: {integrity: sha512-FnM1fHfCtEZ1JkyfH/1oMiTcFBQvHKl4vD9WnpwkLgtF+UmnXMCad6ECPTaAjcDjam+ndOEJWgHyKDGNteWSHw==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -3905,24 +4106,28 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] '@resvg/resvg-js-linux-arm64-musl@2.6.2': resolution: {integrity: sha512-3h3dLPWNgSsD4lQBJPb4f+kvdOSJHa5PjTYVsWHxLUzH4IFTJUAnmuWpw4KqyQ3NA5QCyhw4TWgxk3jRkQxEKg==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] '@resvg/resvg-js-linux-x64-gnu@2.6.2': resolution: {integrity: sha512-IVUe+ckIerA7xMZ50duAZzwf1U7khQe2E0QpUxu5MBJNao5RqC0zwV/Zm965vw6D3gGFUl7j4m+oJjubBVoftw==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@resvg/resvg-js-linux-x64-musl@2.6.2': resolution: {integrity: sha512-UOf83vqTzoYQO9SZ0fPl2ZIFtNIz/Rr/y+7X8XRX1ZnBYsQ/tTb+cj9TE+KHOdmlTFBxhYzVkP2lRByCzqi4jQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@resvg/resvg-js-win32-arm64-msvc@2.6.2': resolution: {integrity: sha512-7C/RSgCa+7vqZ7qAbItfiaAWhyRSoD4l4BQAbVDqRRsRgY+S+hgS3in0Rxr7IorKUpGE69X48q6/nOAuTJQxeQ==} @@ -3999,93 +4204,102 @@ packages: rollup: optional: true - '@rollup/rollup-android-arm-eabi@4.27.4': - resolution: {integrity: sha512-2Y3JT6f5MrQkICUyRVCw4oa0sutfAsgaSsb0Lmmy1Wi2y7X5vT9Euqw4gOsCyy0YfKURBg35nhUKZS4mDcfULw==} + '@rollup/rollup-android-arm-eabi@4.28.0': + resolution: {integrity: sha512-wLJuPLT6grGZsy34g4N1yRfYeouklTgPhH1gWXCYspenKYD0s3cR99ZevOGw5BexMNywkbV3UkjADisozBmpPQ==} cpu: [arm] os: [android] - '@rollup/rollup-android-arm64@4.27.4': - resolution: {integrity: sha512-wzKRQXISyi9UdCVRqEd0H4cMpzvHYt1f/C3CoIjES6cG++RHKhrBj2+29nPF0IB5kpy9MS71vs07fvrNGAl/iA==} + '@rollup/rollup-android-arm64@4.28.0': + resolution: {integrity: sha512-eiNkznlo0dLmVG/6wf+Ifi/v78G4d4QxRhuUl+s8EWZpDewgk7PX3ZyECUXU0Zq/Ca+8nU8cQpNC4Xgn2gFNDA==} cpu: [arm64] os: [android] - '@rollup/rollup-darwin-arm64@4.27.4': - resolution: {integrity: sha512-PlNiRQapift4LNS8DPUHuDX/IdXiLjf8mc5vdEmUR0fF/pyy2qWwzdLjB+iZquGr8LuN4LnUoSEvKRwjSVYz3Q==} + '@rollup/rollup-darwin-arm64@4.28.0': + resolution: {integrity: sha512-lmKx9yHsppblnLQZOGxdO66gT77bvdBtr/0P+TPOseowE7D9AJoBw8ZDULRasXRWf1Z86/gcOdpBrV6VDUY36Q==} cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-x64@4.27.4': - resolution: {integrity: sha512-o9bH2dbdgBDJaXWJCDTNDYa171ACUdzpxSZt+u/AAeQ20Nk5x+IhA+zsGmrQtpkLiumRJEYef68gcpn2ooXhSQ==} + '@rollup/rollup-darwin-x64@4.28.0': + resolution: {integrity: sha512-8hxgfReVs7k9Js1uAIhS6zq3I+wKQETInnWQtgzt8JfGx51R1N6DRVy3F4o0lQwumbErRz52YqwjfvuwRxGv1w==} cpu: [x64] os: [darwin] - '@rollup/rollup-freebsd-arm64@4.27.4': - resolution: {integrity: sha512-NBI2/i2hT9Q+HySSHTBh52da7isru4aAAo6qC3I7QFVsuhxi2gM8t/EI9EVcILiHLj1vfi+VGGPaLOUENn7pmw==} + '@rollup/rollup-freebsd-arm64@4.28.0': + resolution: {integrity: sha512-lA1zZB3bFx5oxu9fYud4+g1mt+lYXCoch0M0V/xhqLoGatbzVse0wlSQ1UYOWKpuSu3gyN4qEc0Dxf/DII1bhQ==} cpu: [arm64] os: [freebsd] - '@rollup/rollup-freebsd-x64@4.27.4': - resolution: {integrity: sha512-wYcC5ycW2zvqtDYrE7deary2P2UFmSh85PUpAx+dwTCO9uw3sgzD6Gv9n5X4vLaQKsrfTSZZ7Z7uynQozPVvWA==} + '@rollup/rollup-freebsd-x64@4.28.0': + resolution: {integrity: sha512-aI2plavbUDjCQB/sRbeUZWX9qp12GfYkYSJOrdYTL/C5D53bsE2/nBPuoiJKoWp5SN78v2Vr8ZPnB+/VbQ2pFA==} cpu: [x64] os: [freebsd] - '@rollup/rollup-linux-arm-gnueabihf@4.27.4': - resolution: {integrity: sha512-9OwUnK/xKw6DyRlgx8UizeqRFOfi9mf5TYCw1uolDaJSbUmBxP85DE6T4ouCMoN6pXw8ZoTeZCSEfSaYo+/s1w==} + '@rollup/rollup-linux-arm-gnueabihf@4.28.0': + resolution: {integrity: sha512-WXveUPKtfqtaNvpf0iOb0M6xC64GzUX/OowbqfiCSXTdi/jLlOmH0Ba94/OkiY2yTGTwteo4/dsHRfh5bDCZ+w==} cpu: [arm] os: [linux] + libc: [glibc] - '@rollup/rollup-linux-arm-musleabihf@4.27.4': - resolution: {integrity: sha512-Vgdo4fpuphS9V24WOV+KwkCVJ72u7idTgQaBoLRD0UxBAWTF9GWurJO9YD9yh00BzbkhpeXtm6na+MvJU7Z73A==} + '@rollup/rollup-linux-arm-musleabihf@4.28.0': + resolution: {integrity: sha512-yLc3O2NtOQR67lI79zsSc7lk31xjwcaocvdD1twL64PK1yNaIqCeWI9L5B4MFPAVGEVjH5k1oWSGuYX1Wutxpg==} cpu: [arm] os: [linux] + libc: [musl] - '@rollup/rollup-linux-arm64-gnu@4.27.4': - resolution: {integrity: sha512-pleyNgyd1kkBkw2kOqlBx+0atfIIkkExOTiifoODo6qKDSpnc6WzUY5RhHdmTdIJXBdSnh6JknnYTtmQyobrVg==} + '@rollup/rollup-linux-arm64-gnu@4.28.0': + resolution: {integrity: sha512-+P9G9hjEpHucHRXqesY+3X9hD2wh0iNnJXX/QhS/J5vTdG6VhNYMxJ2rJkQOxRUd17u5mbMLHM7yWGZdAASfcg==} cpu: [arm64] os: [linux] + libc: [glibc] - '@rollup/rollup-linux-arm64-musl@4.27.4': - resolution: {integrity: sha512-caluiUXvUuVyCHr5DxL8ohaaFFzPGmgmMvwmqAITMpV/Q+tPoaHZ/PWa3t8B2WyoRcIIuu1hkaW5KkeTDNSnMA==} + '@rollup/rollup-linux-arm64-musl@4.28.0': + resolution: {integrity: sha512-1xsm2rCKSTpKzi5/ypT5wfc+4bOGa/9yI/eaOLW0oMs7qpC542APWhl4A37AENGZ6St6GBMWhCCMM6tXgTIplw==} cpu: [arm64] os: [linux] + libc: [musl] - '@rollup/rollup-linux-powerpc64le-gnu@4.27.4': - resolution: {integrity: sha512-FScrpHrO60hARyHh7s1zHE97u0KlT/RECzCKAdmI+LEoC1eDh/RDji9JgFqyO+wPDb86Oa/sXkily1+oi4FzJQ==} + '@rollup/rollup-linux-powerpc64le-gnu@4.28.0': + resolution: {integrity: sha512-zgWxMq8neVQeXL+ouSf6S7DoNeo6EPgi1eeqHXVKQxqPy1B2NvTbaOUWPn/7CfMKL7xvhV0/+fq/Z/J69g1WAQ==} cpu: [ppc64] os: [linux] + libc: [glibc] - '@rollup/rollup-linux-riscv64-gnu@4.27.4': - resolution: {integrity: sha512-qyyprhyGb7+RBfMPeww9FlHwKkCXdKHeGgSqmIXw9VSUtvyFZ6WZRtnxgbuz76FK7LyoN8t/eINRbPUcvXB5fw==} + '@rollup/rollup-linux-riscv64-gnu@4.28.0': + resolution: {integrity: sha512-VEdVYacLniRxbRJLNtzwGt5vwS0ycYshofI7cWAfj7Vg5asqj+pt+Q6x4n+AONSZW/kVm+5nklde0qs2EUwU2g==} cpu: [riscv64] os: [linux] + libc: [glibc] - '@rollup/rollup-linux-s390x-gnu@4.27.4': - resolution: {integrity: sha512-PFz+y2kb6tbh7m3A7nA9++eInGcDVZUACulf/KzDtovvdTizHpZaJty7Gp0lFwSQcrnebHOqxF1MaKZd7psVRg==} + '@rollup/rollup-linux-s390x-gnu@4.28.0': + resolution: {integrity: sha512-LQlP5t2hcDJh8HV8RELD9/xlYtEzJkm/aWGsauvdO2ulfl3QYRjqrKW+mGAIWP5kdNCBheqqqYIGElSRCaXfpw==} cpu: [s390x] os: [linux] + libc: [glibc] - '@rollup/rollup-linux-x64-gnu@4.27.4': - resolution: {integrity: sha512-Ni8mMtfo+o/G7DVtweXXV/Ol2TFf63KYjTtoZ5f078AUgJTmaIJnj4JFU7TK/9SVWTaSJGxPi5zMDgK4w+Ez7Q==} + '@rollup/rollup-linux-x64-gnu@4.28.0': + resolution: {integrity: sha512-Nl4KIzteVEKE9BdAvYoTkW19pa7LR/RBrT6F1dJCV/3pbjwDcaOq+edkP0LXuJ9kflW/xOK414X78r+K84+msw==} cpu: [x64] os: [linux] + libc: [glibc] - '@rollup/rollup-linux-x64-musl@4.27.4': - resolution: {integrity: sha512-5AeeAF1PB9TUzD+3cROzFTnAJAcVUGLuR8ng0E0WXGkYhp6RD6L+6szYVX+64Rs0r72019KHZS1ka1q+zU/wUw==} + '@rollup/rollup-linux-x64-musl@4.28.0': + resolution: {integrity: sha512-eKpJr4vBDOi4goT75MvW+0dXcNUqisK4jvibY9vDdlgLx+yekxSm55StsHbxUsRxSTt3JEQvlr3cGDkzcSP8bw==} cpu: [x64] os: [linux] + libc: [musl] - '@rollup/rollup-win32-arm64-msvc@4.27.4': - resolution: {integrity: sha512-yOpVsA4K5qVwu2CaS3hHxluWIK5HQTjNV4tWjQXluMiiiu4pJj4BN98CvxohNCpcjMeTXk/ZMJBRbgRg8HBB6A==} + '@rollup/rollup-win32-arm64-msvc@4.28.0': + resolution: {integrity: sha512-Vi+WR62xWGsE/Oj+mD0FNAPY2MEox3cfyG0zLpotZdehPFXwz6lypkGs5y38Jd/NVSbOD02aVad6q6QYF7i8Bg==} cpu: [arm64] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.27.4': - resolution: {integrity: sha512-KtwEJOaHAVJlxV92rNYiG9JQwQAdhBlrjNRp7P9L8Cb4Rer3in+0A+IPhJC9y68WAi9H0sX4AiG2NTsVlmqJeQ==} + '@rollup/rollup-win32-ia32-msvc@4.28.0': + resolution: {integrity: sha512-kN/Vpip8emMLn/eOza+4JwqDZBL6MPNpkdaEsgUtW1NYN3DZvZqSQrbKzJcTL6hd8YNmFTn7XGWMwccOcJBL0A==} cpu: [ia32] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.27.4': - resolution: {integrity: sha512-3j4jx1TppORdTAoBJRd+/wJRGCPC0ETWkXOecJ6PPZLj6SptXkrXcNqdj0oclbKML6FkQltdz7bBA3rUSirZug==} + '@rollup/rollup-win32-x64-msvc@4.28.0': + resolution: {integrity: sha512-Bvno2/aZT6usSa7lRDL2+hMjVAGjuqaymF1ApZm31JXzniR/hvr14jpU+/z4X6Gt5BPlzosscyJZGUvguXIqeQ==} cpu: [x64] os: [win32] @@ -4102,32 +4316,32 @@ packages: resolution: {integrity: sha512-uj9nwERm7HIS13f/Q52hF/NUS5Al8Ma6jkgpfYGeppYvU0uSjPkwMogtqoJQNbOoZg973tV8qUScbcWY616wNA==} engines: {node: '>=14.18'} - '@sentry-internal/browser-utils@8.40.0': - resolution: {integrity: sha512-tx7gb/PWMbTEyil/XPETVeRUeS3nKHIvQY2omyebw30TbhyLnibPZsUmXJiaIysL5PcY3k9maub3W/o0Y37T7Q==} + '@sentry-internal/browser-utils@8.41.0': + resolution: {integrity: sha512-nU7Bn3jEUmf1QXRUT3j2ewUBlFJpe9vnAnjqpeVPDWTsVI52BwVNcJHuE37PrGs66OZ1ZkGMfKnQk43oCAa+oQ==} engines: {node: '>=14.18'} '@sentry-internal/feedback@8.35.0': resolution: {integrity: sha512-7bjSaUhL0bDArozre6EiIhhdWdT/1AWNWBC1Wc5w1IxEi5xF7nvF/FfvjQYrONQzZAI3HRxc45J2qhLUzHBmoQ==} engines: {node: '>=14.18'} - '@sentry-internal/feedback@8.40.0': - resolution: {integrity: sha512-1O9F3z80HNE0VfepKS+v+dixdatNqWlrlwgvvWl4BGzzoA+XhqvZo+HWxiOt7yx7+k1TuZNrB6Gy3u/QvpozXA==} + '@sentry-internal/feedback@8.41.0': + resolution: {integrity: sha512-bw+BrSNw8abOnu/IpD8YSbYubXkkT8jyNS7TM4e4UPZMuXcbtia7/r5d7kAiUfKv/sV5PNMlZLOk+EYJeLTANg==} engines: {node: '>=14.18'} '@sentry-internal/replay-canvas@8.35.0': resolution: {integrity: sha512-TUrH6Piv19kvHIiRyIuapLdnuwxk/Un/l1WDCQfq7mK9p1Pac0FkQ7Uufjp6zY3lyhDDZQ8qvCS4ioCMibCwQg==} engines: {node: '>=14.18'} - '@sentry-internal/replay-canvas@8.40.0': - resolution: {integrity: sha512-Zr+m/le0SH4RowZB7rBCM0aRnvH3wZTaOFhwUk03/oGf2BRcgKuDCUMjnXKC9MyOpmey7UYXkzb8ro+81R6Q8w==} + '@sentry-internal/replay-canvas@8.41.0': + resolution: {integrity: sha512-lpgOBHWr1ZNxidD72A2pfoUMjIpwonOPYoQZWAHr86Oa3eIVQOyfklZlHW+gKPFl2/IEl9Lbtcke0JiDp3dkIQ==} engines: {node: '>=14.18'} '@sentry-internal/replay@8.35.0': resolution: {integrity: sha512-3wkW03vXYMyWtTLxl9yrtkV+qxbnKFgfASdoGWhXzfLjycgT6o4/04eb3Gn71q9aXqRwH17ISVQbVswnRqMcmA==} engines: {node: '>=14.18'} - '@sentry-internal/replay@8.40.0': - resolution: {integrity: sha512-0SaDsBCSWxNVgNmPKu23frrHEXzN/MKl0hIkfuO55vL5TgjLTwpgkf0Ne4rNvaZQ5omIKk9Qd63HuQP3PHAMaw==} + '@sentry-internal/replay@8.41.0': + resolution: {integrity: sha512-ByXEY7JI95y4Qr9fS3d28l9uuVU5Qa0HgL+xDmYElNx7CXz3Q9hFN6ibgUeC3h8BO5pDULxWNgAppl7FRY8N5w==} engines: {node: '>=14.18'} '@sentry/babel-plugin-component-annotate@2.22.6': @@ -4138,8 +4352,8 @@ packages: resolution: {integrity: sha512-WHfI+NoZzpCsmIvtr6ChOe7yWPLQyMchPnVhY3Z4UeC70bkYNdKcoj/4XZbX3m0D8+71JAsm0mJ9s9OC3Ue6MQ==} engines: {node: '>=14.18'} - '@sentry/browser@8.40.0': - resolution: {integrity: sha512-m/Yor6IDBeDHtQochu8n6z4HXrXkrPhu6+o5Ouve0Zi3ptthSoK1FOGvJxVBat3nRq0ydQyuuPuTB6WfdWbwHQ==} + '@sentry/browser@8.41.0': + resolution: {integrity: sha512-FfAU55eYwW2lG4M3dEw2472RvHrD5YWSfHCZvuRf/4skX38kFvKghZQ+epL+CVHTzvIRHOrbj8qQK6YLTGl9ew==} engines: {node: '>=14.18'} '@sentry/bundler-plugin-core@2.22.6': @@ -4196,8 +4410,8 @@ packages: resolution: {integrity: sha512-Ci0Nmtw5ETWLqQJGY4dyF+iWh7PWKy6k303fCEoEmqj2czDrKJCp7yHBNV0XYbo00prj2ZTbCr6I7albYiyONA==} engines: {node: '>=14.18'} - '@sentry/core@8.40.0': - resolution: {integrity: sha512-u/U2CJpG/+SmTR2bPM4ZZoPYTJAOUuxzj/0IURnvI0v9+rNu939J/fzrO9huA5IJVxS5TiYykhQm7o6I3Zuo3Q==} + '@sentry/core@8.41.0': + resolution: {integrity: sha512-3v7u3t4LozCA5SpZY4yqUN2U3jSrkXNoLgz6L2SUUiydyCuSwXZIFEwpLJfgQyidpNDifeQbBI5E1O910XkPsA==} engines: {node: '>=14.18'} '@sentry/electron@5.7.0': @@ -4217,8 +4431,8 @@ packages: '@opentelemetry/sdk-trace-base': ^1.26.0 '@opentelemetry/semantic-conventions': ^1.27.0 - '@sentry/react@8.40.0': - resolution: {integrity: sha512-Ohq/po83r9sh/DCO6VAxx4xU+1ztvFzmXTl3fUnAEc+2bFJK1MsRt6BWfG37XxjQN//mfmyS9KEBgsOpOyd4LQ==} + '@sentry/react@8.41.0': + resolution: {integrity: sha512-/7LEWDNdICYO5s4ie8ztgpmD/GRJ1+1nHlSKvcwjf83COzT1eGvVeuYTiXFAPmXA29sY+lV1RajziwgySadjIQ==} engines: {node: '>=14.18'} peerDependencies: react: ^16.14.0 || 17.x || 18.x || 19.x @@ -4227,8 +4441,8 @@ packages: resolution: {integrity: sha512-AVEZjb16MlYPifiDDvJ19dPQyDn0jlrtC1PHs6ZKO+Rzyz+2EX2BRdszvanqArldexPoU1p5Bn2w81XZNXThBA==} engines: {node: '>=14.18'} - '@sentry/types@8.40.0': - resolution: {integrity: sha512-nuCf3U3deolPM9BjNnwCc33UtFl9ec15/r74ngAkNccn+A2JXdIAsDkGJMO/9mgSFykLe1QyeJ0pQFRisCGOiA==} + '@sentry/types@8.41.0': + resolution: {integrity: sha512-eqdnGr9k9H++b9CjVUoTNUVahPVWeNnMy0YGkqS5+cjWWC+x43p56202oidGFmWo6702ub/xwUNH6M5PC4kq6A==} engines: {node: '>=14.18'} '@sentry/utils@8.35.0': @@ -4239,20 +4453,20 @@ packages: resolution: {integrity: sha512-zIieP1VLWQb3wUjFJlwOAoaaJygJhXeUoGd0e/Ha2RLb2eW2S+4gjf6y6NqyY71tZ74LYVZKg/4prB6FAZSMXQ==} engines: {node: '>= 14'} - '@shikijs/core@1.23.1': - resolution: {integrity: sha512-NuOVgwcHgVC6jBVH5V7iblziw6iQbWWHrj5IlZI3Fqu2yx9awH7OIQkXIcsHsUmY19ckwSgUMgrqExEyP5A0TA==} + '@shikijs/core@1.24.0': + resolution: {integrity: sha512-6pvdH0KoahMzr6689yh0QJ3rCgF4j1XsXRHNEeEN6M4xJTfQ6QPWrmHzIddotg+xPJUPEPzYzYCKzpYyhTI6Gw==} - '@shikijs/engine-javascript@1.23.1': - resolution: {integrity: sha512-i/LdEwT5k3FVu07SiApRFwRcSJs5QM9+tod5vYCPig1Ywi8GR30zcujbxGQFJHwYD7A5BUqagi8o5KS+LEVgBg==} + '@shikijs/engine-javascript@1.24.0': + resolution: {integrity: sha512-ZA6sCeSsF3Mnlxxr+4wGEJ9Tto4RHmfIS7ox8KIAbH0MTVUkw3roHPHZN+LlJMOHJJOVupe6tvuAzRpN8qK1vA==} - '@shikijs/engine-oniguruma@1.23.1': - resolution: {integrity: sha512-KQ+lgeJJ5m2ISbUZudLR1qHeH3MnSs2mjFg7bnencgs5jDVPeJ2NVDJ3N5ZHbcTsOIh0qIueyAJnwg7lg7kwXQ==} + '@shikijs/engine-oniguruma@1.24.0': + resolution: {integrity: sha512-Eua0qNOL73Y82lGA4GF5P+G2+VXX9XnuUxkiUuwcxQPH4wom+tE39kZpBFXfUuwNYxHSkrSxpB1p4kyRW0moSg==} - '@shikijs/transformers@1.23.1': - resolution: {integrity: sha512-yQ2Cn0M9i46p30KwbyIzLvKDk+dQNU+lj88RGO0XEj54Hn4Cof1bZoDb9xBRWxFE4R8nmK63w7oHnJwvOtt0NQ==} + '@shikijs/transformers@1.24.0': + resolution: {integrity: sha512-Qf/hby+PRPkoHncjYnJf5svK1aCsOUtQhuLzKPnmeXJtuUZCmbH0pTpdNtXe9tgln/RHlyRJnv7q46HHS1sO0Q==} - '@shikijs/types@1.23.1': - resolution: {integrity: sha512-98A5hGyEhzzAgQh2dAeHKrWW4HfCMeoFER2z16p5eJ+vmPeF6lZ/elEne6/UCU551F/WqkopqRsr1l2Yu6+A0g==} + '@shikijs/types@1.24.0': + resolution: {integrity: sha512-aptbEuq1Pk88DMlCe+FzXNnBZ17LCiLIGWAeCWhoFDzia5Q5Krx3DgnULLiouSdd6+LUM39XwXGppqYE0Ghtug==} '@shikijs/vscode-textmate@9.3.0': resolution: {integrity: sha512-jn7/7ky30idSkd/O5yDBfAnVt+JJpepofP/POZ1iMOxK59cOfqIgg/Dj0eFsjOTMw+4ycJN0uhZH/Eb0bs/EUA==} @@ -4262,6 +4476,16 @@ packages: engines: {node: '>= 8.0.0'} hasBin: true + '@simplewebauthn/browser@10.0.0': + resolution: {integrity: sha512-hG0JMZD+LiLUbpQcAjS4d+t4gbprE/dLYop/CkE01ugU/9sKXflxV5s0DRjdz3uNMFecatRfb4ZLG3XvF8m5zg==} + + '@simplewebauthn/server@10.0.1': + resolution: {integrity: sha512-djNWcRn+H+6zvihBFJSpG3fzb0NQS9c/Mw5dYOtZ9H+oDw8qn9Htqxt4cpqRvSOAfwqP7rOvE9rwqVaoGGc3hg==} + engines: {node: '>=20.0.0'} + + '@simplewebauthn/types@10.0.0': + resolution: {integrity: sha512-SFXke7xkgPRowY2E+8djKbdEznTVnD5R6GO7GPTthpHrokLvNKw8C3lFZypTxLI7KkCfGPfhtqB3d7OVGGa9jQ==} + '@sindresorhus/is@4.6.0': resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} engines: {node: '>=10'} @@ -4301,43 +4525,43 @@ packages: peerDependencies: tailwindcss: '>=3.0.0 || insiders || >=4.0.0-alpha.20' - '@tanstack/query-core@5.61.4': - resolution: {integrity: sha512-rsnemyhPvEG4ViZe0R2UQDM8NgQS/BNC5/Gf9RTs0TKN5thUhPUwnL2anWG4jxAGKFyDfvG7PXbx6MRq3hxi1w==} + '@tanstack/query-core@5.62.0': + resolution: {integrity: sha512-sx38bGrqF9bop92AXOvzDr0L9fWDas5zXdPglxa9cuqeVSWS7lY6OnVyl/oodfXjgOGRk79IfCpgVmxrbHuFHg==} '@tanstack/query-devtools@5.61.4': resolution: {integrity: sha512-21Tw+u8E3IJJj4A/Bct4H0uBaDTEu7zBrR79FeSyY+mS2gx5/m316oDtJiKkILc819VSTYt+sFzODoJNcpPqZQ==} - '@tanstack/query-persist-client-core@5.61.4': - resolution: {integrity: sha512-yP648VJiXhU7AtdOkylTiz1iZvsstsH7R0BhuJQJFMLezyD+DbcgiwDOtzz7qRZZMEwhspYQx+r7Si1atY477Q==} + '@tanstack/query-persist-client-core@5.62.0': + resolution: {integrity: sha512-yEDvJjVHqo+IizSjNkdu5fSL4ANOd16o8Tk2NOeaD7kGS1fXjf47j3XOXLIypZ7nmPTjZf9vyZi1WP3VB4saGg==} - '@tanstack/query-sync-storage-persister@5.61.4': - resolution: {integrity: sha512-l3YJaGoYQ8uHcg9WJmaHwePy78AG7pWYF+BUe9hFRrOC99nuAENmO/tv7Gb1mMivhO/lJbZi2UBK4i+etktb8w==} + '@tanstack/query-sync-storage-persister@5.62.0': + resolution: {integrity: sha512-VDTdldUrthWE4th6FjwziYgADaYkOzN2UbOw8gBZejVnGJrSnBZ/ZC+0SBv7Gy09TU5wKaDlT69RNk15dlmJ1g==} - '@tanstack/react-query-devtools@5.61.4': - resolution: {integrity: sha512-A4lqdK5cpskk+WPu17Nv7X3uEIsB4MQ5/Mdz12CQFuUVvmLHjBz1Ghc3QbQVwmHiXo4JM6Y00udTaEKtJSVAkA==} + '@tanstack/react-query-devtools@5.62.0': + resolution: {integrity: sha512-9NWUgpfRPiUpsPdYopddbQLjWXbMBNaxM7K5VXPZIPfcfJJ4mG6VqrEJysL/79zgl7hC9kJlP+zXA0r5niomdg==} peerDependencies: - '@tanstack/react-query': ^5.61.4 + '@tanstack/react-query': ^5.62.0 react: ^18 || ^19 - '@tanstack/react-query-persist-client@5.61.4': - resolution: {integrity: sha512-xyykMTm9thC3eSgd3GaxHh9JKpDK0qt6c/ZqDHSoi+wQFjNULwupIldj808kL/RvIUiGyuHoUB9kKU0oouoq8w==} + '@tanstack/react-query-persist-client@5.62.0': + resolution: {integrity: sha512-yv7Oe0vNkGDTVFkq9bbdGQO9EoHwXYKIYuj845v1bOmK/Npvcov3yaS0AirOlNklsapDtr0v+x1ev2aJBIbm7A==} peerDependencies: - '@tanstack/react-query': ^5.61.4 + '@tanstack/react-query': ^5.62.0 react: ^18 || ^19 - '@tanstack/react-query@5.61.4': - resolution: {integrity: sha512-Nh5+0V4fRVShSeDHFTVvzJrvwTdafIvqxyZUrad71kJWL7J+J5Wrd/xcHTWfSL1mR/9eoufd2roXOpL3F16ECA==} + '@tanstack/react-query@5.62.0': + resolution: {integrity: sha512-tj2ltjAn2a3fs+Dqonlvs6GyLQ/LKVJE2DVSYW+8pJ3P6/VCVGrfqv5UEchmlP7tLOvvtZcOuSyI2ooVlR5Yqw==} peerDependencies: react: ^18 || ^19 - '@tanstack/react-virtual@3.10.8': - resolution: {integrity: sha512-VbzbVGSsZlQktyLrP5nxE+vE1ZR+U0NFAWPbJLoG2+DKPwd2D7dVICTVIIaYlJqX1ZCEnYDbaOpmMwbsyhBoIA==} + '@tanstack/react-virtual@3.10.9': + resolution: {integrity: sha512-OXO2uBjFqA4Ibr2O3y0YMnkrRWGVNqcvHQXmGvMu6IK8chZl3PrDxFXdGZ2iZkSrKh3/qUYoFqYe+Rx23RoU0g==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - '@tanstack/virtual-core@3.10.8': - resolution: {integrity: sha512-PBu00mtt95jbKFi6Llk9aik8bnR3tR/oQP1o3TSi+iG//+Q2RTIzCEgKkHG8BB86kxMNW6O8wku+Lmi+QFR6jA==} + '@tanstack/virtual-core@3.10.9': + resolution: {integrity: sha512-kBknKOKzmeR7lN+vSadaKWXaLS0SZZG+oqpQ/k80Q6g9REn6zRHS/ZYdrIzHnpHgy/eWs00SujveUN/GJT2qTw==} '@tootallnate/once@2.0.0': resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==} @@ -4362,6 +4586,9 @@ packages: '@tsconfig/node16@1.0.4': resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} + '@tybys/wasm-util@0.8.3': + resolution: {integrity: sha512-Z96T/L6dUFFxgFJ+pQtkPpne9q7i6kIPYCFnQBHSgSPV9idTsKfIhCss0h5iM9irweZCatkrdeP8yi5uM1eX6Q==} + '@types/appdmg@0.5.5': resolution: {integrity: sha512-G+n6DgZTZFOteITE30LnWj+HRVIGr7wMlAiLWOO02uJFWVEitaPU9JVXm9wJokkgshBawb2O1OykdcsmkkZfgg==} @@ -4440,11 +4667,11 @@ packages: '@types/node@16.18.11': resolution: {integrity: sha512-3oJbGBUWuS6ahSnEq1eN2XrCyf4YsWI8OyCvo7c64zQJNplk3mO84t53o8lfTk+2ji59g5ycfc6qQ3fdHliHuA==} - '@types/node@20.17.8': - resolution: {integrity: sha512-ahz2g6/oqbKalW9sPv6L2iRbhLnojxjYWspAqhjvqSWBgGebEJT5GvRmk0QXPj3sbC6rU0GTQjPLQkmR8CObvA==} + '@types/node@20.17.9': + resolution: {integrity: sha512-0JOXkRyLanfGPE2QRCwgxhzlBAvaRdCNMcvbd7jFfpmD4eEXll7LRwy5ymJmyeZqk7Nh7eD2LeUyQ68BbndmXw==} - '@types/node@22.10.0': - resolution: {integrity: sha512-XC70cRZVElFHfIUB40FgZOBbgJYFKKMa5nb9lxcwYstFG/Mi+/Y0bGS+rs6Dmhmkpq4pnNiLiuZAbc02YCOnmA==} + '@types/node@22.10.1': + resolution: {integrity: sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ==} '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} @@ -4500,8 +4727,8 @@ packages: '@types/yauzl@2.10.3': resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} - '@typescript-eslint/eslint-plugin@8.15.0': - resolution: {integrity: sha512-+zkm9AR1Ds9uLWN3fkoeXgFppaQ+uEVtfOV62dDmsy9QCNqlRHWNEck4yarvRNrvRcHQLGfqBNui3cimoz8XAg==} + '@typescript-eslint/eslint-plugin@8.16.0': + resolution: {integrity: sha512-5YTHKV8MYlyMI6BaEG7crQ9BhSc8RxzshOReKwZwRWN0+XvvTOm+L/UYLCYxFpfwYuAAqhxiq4yae0CMFwbL7Q==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: '@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0 @@ -4511,8 +4738,8 @@ packages: typescript: optional: true - '@typescript-eslint/parser@8.15.0': - resolution: {integrity: sha512-7n59qFpghG4uazrF9qtGKBZXn7Oz4sOMm8dwNWDQY96Xlm2oX67eipqcblDj+oY1lLCbf1oltMZFpUso66Kl1A==} + '@typescript-eslint/parser@8.16.0': + resolution: {integrity: sha512-D7DbgGFtsqIPIFMPJwCad9Gfi/hC0PWErRRHFnaCWoEDYi5tQUDiJCTmGUbBiLzjqAck4KcXt9Ayj0CNlIrF+w==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -4521,12 +4748,12 @@ packages: typescript: optional: true - '@typescript-eslint/scope-manager@8.15.0': - resolution: {integrity: sha512-QRGy8ADi4J7ii95xz4UoiymmmMd/zuy9azCaamnZ3FM8T5fZcex8UfJcjkiEZjJSztKfEBe3dZ5T/5RHAmw2mA==} + '@typescript-eslint/scope-manager@8.16.0': + resolution: {integrity: sha512-mwsZWubQvBki2t5565uxF0EYvG+FwdFb8bMtDuGQLdCCnGPrDEDvm1gtfynuKlnpzeBRqdFCkMf9jg1fnAK8sg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/type-utils@8.15.0': - resolution: {integrity: sha512-UU6uwXDoI3JGSXmcdnP5d8Fffa2KayOhUUqr/AiBnG1Gl7+7ut/oyagVeSkh7bxQ0zSXV9ptRh/4N15nkCqnpw==} + '@typescript-eslint/type-utils@8.16.0': + resolution: {integrity: sha512-IqZHGG+g1XCWX9NyqnI/0CX5LL8/18awQqmkZSl2ynn8F76j579dByc0jhfVSnSnhf7zv76mKBQv9HQFKvDCgg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -4535,12 +4762,12 @@ packages: typescript: optional: true - '@typescript-eslint/types@8.15.0': - resolution: {integrity: sha512-n3Gt8Y/KyJNe0S3yDCD2RVKrHBC4gTUcLTebVBXacPy091E6tNspFLKRXlk3hwT4G55nfr1n2AdFqi/XMxzmPQ==} + '@typescript-eslint/types@8.16.0': + resolution: {integrity: sha512-NzrHj6thBAOSE4d9bsuRNMvk+BvaQvmY4dDglgkgGC0EW/tB3Kelnp3tAKH87GEwzoxgeQn9fNGRyFJM/xd+GQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/typescript-estree@8.15.0': - resolution: {integrity: sha512-1eMp2JgNec/niZsR7ioFBlsh/Fk0oJbhaqO0jRyQBMgkz7RrFfkqF9lYYmBoGBaSiLnu8TAPQTwoTUiSTUW9dg==} + '@typescript-eslint/typescript-estree@8.16.0': + resolution: {integrity: sha512-E2+9IzzXMc1iaBy9zmo+UYvluE3TW7bCGWSF41hVWUE01o8nzr1rvOQYSxelxr6StUvRcTMe633eY8mXASMaNw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '*' @@ -4548,8 +4775,8 @@ packages: typescript: optional: true - '@typescript-eslint/utils@8.15.0': - resolution: {integrity: sha512-k82RI9yGhr0QM3Dnq+egEpz9qB6Un+WLYhmoNcvl8ltMEededhh7otBVVIDDsEEttauwdY/hQoSsOv13lxrFzQ==} + '@typescript-eslint/utils@8.16.0': + resolution: {integrity: sha512-C1zRy/mOL8Pj157GiX4kaw7iyRLKfJXBR3L82hk5kS/GyHcOFmy4YUq/zfZti72I9wnuQtA/+xzft4wCC8PJdA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -4558,8 +4785,8 @@ packages: typescript: optional: true - '@typescript-eslint/visitor-keys@8.15.0': - resolution: {integrity: sha512-h8vYOulWec9LhpwfAdZf2bjr8xIp0KNKnpgqSz0qqYYKAW/QZKw3ktRndbiAtUz4acH4QLQavwZBYCc0wulA/Q==} + '@typescript-eslint/visitor-keys@8.16.0': + resolution: {integrity: sha512-pq19gbaMOmFE3CbL0ZB8J8BFCo2ckfHBfaIsaOZgBIF4EoISJIdLX5xRhd0FGB0LlHReNRuzoJoMGpTjq8F2CQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@ungap/structured-clone@1.2.0': @@ -4853,6 +5080,10 @@ packages: asn1.js@5.4.1: resolution: {integrity: sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==} + asn1js@3.0.5: + resolution: {integrity: sha512-FVnvrKJwpt9LP2lAMl8qZswRNm3T4q9CON+bxldk2iwk3FFpuwhx2FfinyitizWHsVYyaY+y5JzDR0rCMV5yTQ==} + engines: {node: '>=12.0.0'} + assert-plus@1.0.0: resolution: {integrity: sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==} engines: {node: '>=0.8'} @@ -4861,8 +5092,8 @@ packages: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} - ast-kit@1.3.1: - resolution: {integrity: sha512-3bIRV4s/cNAee2rKjuvYdoG+0CMqtOIgCvWrJL6zG8R0fDyMwYzStspX5JqXPbdMzM+qxHZ6g2rMHKhr3HkPlQ==} + ast-kit@1.3.2: + resolution: {integrity: sha512-gdvX700WVC6sHCJQ7bJGfDvtuKAh6Sa6weIZROxfzUZKP7BjvB8y0SMlM/o4omSQ3L60PQSJROBJsb0vEViVnA==} engines: {node: '>=16.14.0'} astral-regex@2.0.0: @@ -4980,6 +5211,12 @@ packages: before-after-hook@2.2.3: resolution: {integrity: sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==} + better-auth@1.0.7: + resolution: {integrity: sha512-BTVgD4tBxlUlT47MRrzk8UE1wKDH4J4cebcNJ5lL7c3BxrNZNfhGjKGpUKTqvtZ1aXU5kKeoJwTFOVr0DXgg2Q==} + + better-call@0.3.3-beta.2: + resolution: {integrity: sha512-pk+dXQGICPphvMKxl1VOWUUDXF4AYC4DQhLFLSBwS/pfgryhfnx1yJhGqApJzy8eJi5aN5+uLSWDGzKJaMuCGQ==} + binary-extensions@2.3.0: resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} @@ -5573,6 +5810,9 @@ packages: engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} hasBin: true + cross-fetch@4.0.0: + resolution: {integrity: sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==} + cross-spawn@6.0.6: resolution: {integrity: sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw==} engines: {node: '>=4.8'} @@ -5905,6 +6145,9 @@ packages: resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==} engines: {node: '>= 4'} + dompurify@3.2.2: + resolution: {integrity: sha512-YMM+erhdZ2nkZ4fTNRTSI94mb7VG7uVF5vj5Zde7tImgnhZE3R6YW/IACGIHb2ux+QkEXMhe591N+5jWOmL4Zw==} + domutils@3.1.0: resolution: {integrity: sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==} @@ -6205,8 +6448,8 @@ packages: resolution: {integrity: sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==} engines: {node: '>= 0.4'} - es-toolkit@1.27.0: - resolution: {integrity: sha512-ETSFA+ZJArcuSCpzD2TjAy6UHpx4E4uqFsoDg9F/nTLogrLmVVZQ+zNxco5h7cWnA1nNak07IXsLcaSMih+ZPQ==} + es-toolkit@1.29.0: + resolution: {integrity: sha512-GjTll+E6APcfAQA09D89HdT8Qn2Yb+TeDSDBTMcxAo+V+w1amAtCI15LJu4YPH/UCPoSo/F47Gr1LIM0TE0lZA==} es6-error@4.1.1: resolution: {integrity: sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==} @@ -6374,8 +6617,8 @@ packages: resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} engines: {node: '>=12'} - eslint-compat-utils@0.6.3: - resolution: {integrity: sha512-9IDdksh5pUYP2ZLi7mOdROxVjLY8gY2qKxprmrJ/5Dyqud7M/IFKxF3o0VLlRhITm1pK6Fk7NiBxE39M/VlUcw==} + eslint-compat-utils@0.6.4: + resolution: {integrity: sha512-/u+GQt8NMfXO8w17QendT4gvO5acfxQsAKirAt0LVxDnr2N8YLCVbregaNc/Yhp7NM128DwCaRvr8PLDfeNkQw==} engines: {node: '>=12'} peerDependencies: eslint: '>=6.0.0' @@ -6385,8 +6628,8 @@ packages: peerDependencies: eslint: ^9.5.0 - eslint-config-hyoban@3.1.13: - resolution: {integrity: sha512-ljrV1c5WlEjaR9S1pdyqSeQPj84HGDW+h9L/VH9Gbfb6QCbJ5f9fH+Yk7JZl4mxYMJVpkAAum/xnLAvl8+wafw==} + eslint-config-hyoban@3.1.14: + resolution: {integrity: sha512-BjnuI8kJBzqKA/rIJDTcSTrB4/nr+u894taheoGYaZLE8p3bRSgNeey584csabN/660I+VoHrLfTb1fUH4lyTA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^9.0.0 @@ -6443,14 +6686,14 @@ packages: eslint: '>=8.0.0' jsonc-eslint-parser: ^2.0.0 - eslint-plugin-react-compiler@19.0.0-beta-a7bf2bd-20241110: - resolution: {integrity: sha512-b5/hRnOQlnH9CEnJQ6UrPoIAG4y/wIGv+OVEHTeAkbq+1uojfcuQyLToYvK1T9a6vz5WQHeMjQqFOZk3mtWorg==} + eslint-plugin-react-compiler@19.0.0-beta-df7b47d-20241124: + resolution: {integrity: sha512-82PfnllC8jP/68KdLAbpWuYTcfmtGLzkqy2IW85WopKMTr+4rdQpp+lfliQ/QE79wWrv/dRoADrk3Pdhq25nTw==} engines: {node: ^14.17.0 || ^16.0.0 || >= 18.0.0} peerDependencies: eslint: '>=7' - eslint-plugin-react-debug@1.17.1: - resolution: {integrity: sha512-CFcm/sxqzfIsLmQjg364x0FiiTmgEhZZT3ekP4QfSsm1vLWUWlbwopBQQvFDPMNlfhuwXRzYrggbkllGT3B17A==} + eslint-plugin-react-debug@1.17.2: + resolution: {integrity: sha512-bvu9477jWvx5Th9OGewbqW/d3IBZUTuXIDW79p9xu0nJCkb5ZoRdgLTgKyFKWy4vAtGMc0EziQo5noXJq6ZTqQ==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -6459,8 +6702,8 @@ packages: typescript: optional: true - eslint-plugin-react-dom@1.17.1: - resolution: {integrity: sha512-aXV11FswyCDGJYCg3pj5kaxNmM5RYGMvuL+KhaqcX+GKdCIpC9SqiImeLSiWOxVLWYS9kH5Ltz4xU3T3eqOgOA==} + eslint-plugin-react-dom@1.17.2: + resolution: {integrity: sha512-HWziOSbfKT54ESnavyxQmGhOyLvNZZ8bGVmw1tEF1mnCEuKu9L25qlcbfP34M/ZRI3RlLOogOWkLF/Ot9zpEuQ==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -6469,8 +6712,8 @@ packages: typescript: optional: true - eslint-plugin-react-hooks-extra@1.17.1: - resolution: {integrity: sha512-REPsDs8pn+QUSS+iDY7hOfUiCd4TIM9XNusDM+Nu51mBXezQ0k2f7X0wtlxaAHnt+YX1vzoy6BSylJaUlFMJaA==} + eslint-plugin-react-hooks-extra@1.17.2: + resolution: {integrity: sha512-uhe69tJ4mPuaIRBriof7qD8LrKmSw8W4w+NCEfcPb8RO6KPF+ihM331WM53cRV6VjcsWyUOVQScAjfiVPmZ/cA==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -6485,8 +6728,8 @@ packages: peerDependencies: eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 - eslint-plugin-react-naming-convention@1.17.1: - resolution: {integrity: sha512-tVbmeLJK2jC/j8IwtkvpiKnk496hhOD2j+nGEZeYjI9r5oGR/mmTpQx/0/+0HnRJ7a/ctUiuTSDzesQuU3Eu/A==} + eslint-plugin-react-naming-convention@1.17.2: + resolution: {integrity: sha512-jOYKwW0lzkmS0C5de+7BfxDBS3Tn+lv/+btInVhXRftM2Hg60jLPiYAsdHxgv7wi17o5b61pzsTMXX2h9HR1mA==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -6500,8 +6743,8 @@ packages: peerDependencies: eslint: '>=7' - eslint-plugin-react-web-api@1.17.1: - resolution: {integrity: sha512-c02sPQXM+7z5w0JZkgdPltPzdLlDrDxwitbGXmhePyhZYZfDCOa69ROltQPI9b2ClRmMWYgxoPlJsnGaYln6Wg==} + eslint-plugin-react-web-api@1.17.2: + resolution: {integrity: sha512-mpGE05ybVHJDr8ywLLVb+3F2H2+FuX/3NVs1k/eTb/6A2w3tt05hSXHQ/V8SPCHasQaHjG/TPKilWwZgwZowYw==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -6510,8 +6753,8 @@ packages: typescript: optional: true - eslint-plugin-react-x@1.17.1: - resolution: {integrity: sha512-Iq9Eaye/+LpdOcU/qRbib4cC6EAL9bfIBH2+IDWQXLyY/HAXnmBFDJgotEPOLymIIOKhgjzfX03nkdfBIqZ3zA==} + eslint-plugin-react-x@1.17.2: + resolution: {integrity: sha512-hPnBd3c87xM2/HAk/f+s1MH/BRK2EP8u3Mb5TUvCEfuRTuX+CpLeNref2Q8vG8mxS1f4gnZHaMAnfrXndjTAGg==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -6564,8 +6807,8 @@ packages: resolution: {integrity: sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - eslint@9.15.0: - resolution: {integrity: sha512-7CrWySmIibCgT1Os28lUU6upBshZ+GxybLOrmRzi08kS8MBuO8QA7pXEgYgY5W8vK3e74xv0lpjo9DbaGU9Rkw==} + eslint@9.16.0: + resolution: {integrity: sha512-whp8mSQI4C8VXd+fLgSM0lh3UlmcFtVwUQjyKCFfsp+2ItAIYhlq/hqGahGqHE6cv9unM41VlqKk2VtKYR2TaA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} hasBin: true peerDependencies: @@ -6845,8 +7088,8 @@ packages: fraction.js@4.3.7: resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==} - framer-motion@11.11.17: - resolution: {integrity: sha512-O8QzvoKiuzI5HSAHbcYuL6xU+ZLXbrH7C8Akaato4JzQbX2ULNeniqC2Vo5eiCtFktX9XsJ+7nUhxcl2E2IjpA==} + framer-motion@11.12.0: + resolution: {integrity: sha512-gZaZeqFM6pX9kMVti60hYAa75jGpSsGYWAHbBfIkuHN7DkVHVkxSxeNYnrGmHuM0zPkWTzQx10ZT+fDjn7N4SA==} peerDependencies: '@emotion/is-prop-valid': '*' react: ^18.0.0 @@ -6895,6 +7138,9 @@ packages: resolution: {integrity: sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==} engines: {node: '>= 8'} + fs-monkey@1.0.6: + resolution: {integrity: sha512-b1FMfwetIKymC0eioW7mTywihSQE4oLzQn1dB6rZB5fx/3NpNEdAWeCSMB+60/AeT0TCXsxzAlcYVEFCTAksWg==} + fs-temp@1.2.1: resolution: {integrity: sha512-okTwLB7/Qsq82G6iN5zZJFsOfZtx2/pqrA7Hk/9fvy+c+eJS9CvgGXT2uNxwnI14BDY9L/jQPkaBgSvlKfSW9w==} @@ -7076,8 +7322,8 @@ packages: resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} engines: {node: '>=18'} - globals@15.12.0: - resolution: {integrity: sha512-1+gLErljJFhbOVyaetcwJiJ4+eLe45S2E7P5UiZ9xGfeq3ATQf5DOv9G7MH3gGbKQLkzmNh2DxfZwLdw+j6oTQ==} + globals@15.13.0: + resolution: {integrity: sha512-49TewVEz0UxZjr1WYYsWpPrhyC/B/pA8Bq0fUmet2n+eR7yn0IvNzNaoBwnK6mdkzcN+se7Ez9zUgULTz2QH4g==} engines: {node: '>=18'} globalthis@1.0.4: @@ -7091,8 +7337,9 @@ packages: globrex@0.1.2: resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==} - gopd@1.0.1: - resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} + gopd@1.1.0: + resolution: {integrity: sha512-FQoVQnqcdk4hVM4JN1eromaun4iuS34oStkdlLENLdpULsuQcTyXj8w7ayhuUfPwEYZ1ZOooOTT6fdA9Vmx/RA==} + engines: {node: '>= 0.4'} got@11.8.6: resolution: {integrity: sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==} @@ -7109,8 +7356,8 @@ packages: engines: {node: '>=0.4.7'} hasBin: true - happy-dom@15.11.6: - resolution: {integrity: sha512-elX7iUTu+5+3b2+NGQc0L3eWyq9jKhuJJ4GpOMxxT/c2pg9O3L5H3ty2VECX0XXZgRmmRqXyOK8brA2hDI6LsQ==} + happy-dom@15.11.7: + resolution: {integrity: sha512-KyrFvnl+J9US63TEzwoiJOQzZBJY7KgBushJA8X61DMbNsH+2ONkDuLDnCnwUiPTF42tLoEmrPyoqbenVA5zrg==} engines: {node: '>=18.0.0'} has-bigints@1.0.2: @@ -7123,8 +7370,8 @@ packages: has-property-descriptors@1.0.2: resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} - has-proto@1.0.3: - resolution: {integrity: sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==} + has-proto@1.1.0: + resolution: {integrity: sha512-QLdzI9IIO1Jg7f9GT1gXpPpXArAn6cS31R1eEZqz08Gc+uQ8/XiqHWt17Fiw+2p6oTTIq5GXEpQkAlA88YRl/Q==} engines: {node: '>= 0.4'} has-symbols@1.0.3: @@ -7216,11 +7463,11 @@ packages: hastscript@9.0.0: resolution: {integrity: sha512-jzaLBGavEDKHrc5EfFImKN7nZKKBdSLIdGvCwDZ9TfzbF2ffXiov8CKE445L2Z1Ek2t/m4SKQ2j6Ipv7NyUolw==} - hermes-estree@0.20.1: - resolution: {integrity: sha512-SQpZK4BzR48kuOg0v4pb3EAGNclzIlqMj3Opu/mu7bbAoFw6oig6cEt/RAi0zTFW/iW6Iz9X9ggGuZTAZ/yZHg==} + hermes-estree@0.25.1: + resolution: {integrity: sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==} - hermes-parser@0.20.1: - resolution: {integrity: sha512-BL5P83cwCogI8D7rrDCgsFY0tdYUtmFP9XaXtl2IQjC+2Xo+4okjfXintlTxcIwl4qeGddEl28Z11kbVIw0aNA==} + hermes-parser@0.25.1: + resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==} hex-rgb@4.3.0: resolution: {integrity: sha512-Ox1pJVrDCyGHMG9CFg1tmrRUMRPRsAWYc/PinY0XzJU4K7y7vjNoLKIQ7BR5UJMCxNN8EM1MNDmHWA/B3aZUuw==} @@ -7236,10 +7483,6 @@ packages: resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==} engines: {node: '>=0.10.0'} - hono@4.6.11: - resolution: {integrity: sha512-f0LwJQFKdUUrCUAVowxSvNCjyzI7ZLt8XWYU/EApyeq5FfOvHFarBaE5rjU9HTNFk4RI0FkdB2edb3p/7xZjzQ==} - engines: {node: '>=16.9.0'} - hono@4.6.12: resolution: {integrity: sha512-eHtf4kSDNw6VVrdbd5IQi16r22m3s7mWPLd7xOMhg1a/Yyb1A0qpUFq8xYMX4FMuDe1nTKeMX5rTx7Nmw+a+Ag==} engines: {node: '>=16.9.0'} @@ -7435,6 +7678,10 @@ packages: resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} engines: {node: '>= 0.10'} + ipaddr.js@2.2.0: + resolution: {integrity: sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA==} + engines: {node: '>= 10'} + is-alphabetical@2.0.1: resolution: {integrity: sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==} @@ -7462,8 +7709,8 @@ packages: resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} engines: {node: '>=8'} - is-boolean-object@1.1.2: - resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} + is-boolean-object@1.2.0: + resolution: {integrity: sha512-kR5g0+dXf/+kXnqI+lu0URKYPKgICtHGGNCDSB10AaUFj3o/HkB3u7WfpRBJGFopxxY0oH3ux7ZsDjLtK7xqvw==} engines: {node: '>= 0.4'} is-builtin-module@3.2.1: @@ -7553,8 +7800,8 @@ packages: resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==} engines: {node: '>= 0.4'} - is-number-object@1.0.7: - resolution: {integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==} + is-number-object@1.1.0: + resolution: {integrity: sha512-KVSZV0Dunv9DTPkhXwcZ3Q+tUc9TsaE1ZwX5J2WMvsSGS6Md8TFPun5uwh0yRdrNerI6vf/tbJxqSx4c1ZI1Lw==} engines: {node: '>= 0.4'} is-number@7.0.0: @@ -7588,8 +7835,8 @@ packages: is-property@1.0.2: resolution: {integrity: sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==} - is-regex@1.1.4: - resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} + is-regex@1.2.0: + resolution: {integrity: sha512-B6ohK4ZmoftlUe+uvenXSbPJFo6U37BH7oO1B3nQH8f/7h27N56s85MhUtbFJAziz5dcmuR3i8ovUl35zp8pFA==} engines: {node: '>= 0.4'} is-regexp@1.0.0: @@ -7616,8 +7863,8 @@ packages: resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - is-string@1.0.7: - resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==} + is-string@1.1.0: + resolution: {integrity: sha512-PlfzajuF9vSo5wErv3MJAKD/nqf9ngAs1NFQYm16nUYFO2IzxJ2hcm+IOCg+EEopdykNNUhVq5cz35cAUxU8+g==} engines: {node: '>= 0.4'} is-symbol@1.0.4: @@ -7821,6 +8068,10 @@ packages: kose-font@1.0.0: resolution: {integrity: sha512-8R1M6ajjPvG0E4UxiNgZe0Hoy4qGTX1RuNZHN96dvqzuUwNM08gkpx1O+Q8/PzT8lp3lqH7w2DCUCGr8Wt7wPA==} + kysely@0.27.4: + resolution: {integrity: sha512-dyNKv2KRvYOQPLCAOCjjQuCk4YFd33BvGdf/o5bC7FiW+BB6snA81Zt+2wT9QDFzKqxKa5rrOmvlK/anehCcgA==} + engines: {node: '>=14.0.0'} + lazy-val@1.0.5: resolution: {integrity: sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==} @@ -7874,24 +8125,28 @@ packages: engines: {node: '>= 12.0.0'} cpu: [arm64] os: [linux] + libc: [glibc] lightningcss-linux-arm64-musl@1.28.2: resolution: {integrity: sha512-1SPG1ZTNnphWvAv8RVOymlZ8BDtAg69Hbo7n4QxARvkFVCJAt0cgjAw1Fox0WEhf4PwnyoOBaVH0Z5YNgzt4dA==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [linux] + libc: [musl] lightningcss-linux-x64-gnu@1.28.2: resolution: {integrity: sha512-ZhQy0FcO//INWUdo/iEdbefntTdpPVQ0XJwwtdbBuMQe+uxqZoytm9M+iqR9O5noWFaxK+nbS2iR/I80Q2Ofpg==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [linux] + libc: [glibc] lightningcss-linux-x64-musl@1.28.2: resolution: {integrity: sha512-alb/j1NMrgQmSFyzTbN1/pvMPM+gdDw7YBuQ5VSgcFDypN3Ah0BzC2dTZbzwzaMdUVDszX6zH5MzjfVN1oGuww==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [linux] + libc: [musl] lightningcss-win32-arm64-msvc@1.28.2: resolution: {integrity: sha512-WnwcjcBeAt0jGdjlgbT9ANf30pF0C/QMb1XnLnH272DQU8QXh+kmpi24R55wmWBwaTtNAETZ+m35ohyeMiNt+g==} @@ -8087,8 +8342,8 @@ packages: resolution: {integrity: sha512-yiLHa7cfJcGRFq4FrR4tMlpNHb4Vy4mWnpajlSSIFM5k4Lv8/7BbbDLzCAVogWNl0LlLhizRp1drXv0hK9h0Yw==} os: [darwin] - magic-string-ast@0.6.2: - resolution: {integrity: sha512-oN3Bcd7ZVt+0VGEs7402qR/tjgjbM7kPlH/z7ufJnzTLVBzXJITRHOJiwMmmYMgZfdoWQsfQcY+iKlxiBppnMA==} + magic-string-ast@0.6.3: + resolution: {integrity: sha512-C9sgUzVZtUtzCBoMdYtwrIRQ4IucGRFGgdhkjL7PXsVfPYmTuWtewqzk7dlipaCMWH/gOYehW9rgMoa4Oebtpw==} engines: {node: '>=16.14.0'} magic-string@0.25.9: @@ -8197,6 +8452,13 @@ packages: resolution: {integrity: sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==} engines: {node: '>=6'} + memfs-browser@3.5.10302: + resolution: {integrity: sha512-JJTc/nh3ig05O0gBBGZjTCPOyydaTxNF0uHYBrcc1gHNnO+KIHIvo0Y1FKCJsaei6FCl8C6xfQomXqu+cuzkIw==} + + memfs@3.5.3: + resolution: {integrity: sha512-UERzLsxzllchadvbPs5aolHh65ISpKpM+ccLbOJ8/vvpBKmAWf+la7dXFy7Mr0ySHbdHrFv5kGFCUHHe6GFEmw==} + engines: {node: '>= 4.0.0'} + meow@13.2.0: resolution: {integrity: sha512-pxQJQzB6djGPXh08dacEloMFopsOqGVRKFPYvPOt9XDZ1HasbgDZA74CJGreSU4G3Ak7EFJGoiH2auq+yXISgA==} engines: {node: '>=18'} @@ -8470,6 +8732,10 @@ packages: engines: {node: ^18 || >=20} hasBin: true + nanostores@0.11.3: + resolution: {integrity: sha512-TUes3xKIX33re4QzdxwZ6tdbodjmn3tWXCEc1uokiEmo14sI1EaGYNs2k3bU2pyyGNmBqFGAVl6jAGWd06AVIg==} + engines: {node: ^18.0.0 || >=20.0.0} + napi-build-utils@1.0.2: resolution: {integrity: sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==} @@ -8480,8 +8746,8 @@ packages: resolution: {integrity: sha512-BhHrnS1G21VMssWUU18SOHHwAFHUvIHUSdlDtX62SCoAc97GrE3bwtUUkWSPJA18fLndCMOB5PbMZoBumDl2/g==} hasBin: true - negotiator@0.6.3: - resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==} + negotiator@0.6.4: + resolution: {integrity: sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==} engines: {node: '>= 0.6'} neo-async@2.6.2: @@ -8650,8 +8916,8 @@ packages: resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} engines: {node: '>=18'} - oniguruma-to-es@0.4.1: - resolution: {integrity: sha512-rNcEohFz095QKGRovP/yqPIKc+nP+Sjs4YTHMv33nMePGKrq/r2eu9Yh4646M5XluGJsUnmwoXuiXE69KDs+fQ==} + oniguruma-to-es@0.7.0: + resolution: {integrity: sha512-HRaRh09cE0gRS3+wi2zxekB+I5L8C/gN60S+vb11eADHUaB/q4u8wGGOX3GvwvitG8ixaeycZfeoyruKQzUgNg==} optionator@0.9.4: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} @@ -8661,6 +8927,9 @@ packages: resolution: {integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==} engines: {node: '>=10'} + oslo@1.2.1: + resolution: {integrity: sha512-HfIhB5ruTdQv0XX2XlncWQiJ5SIHZ7NHZhVyHth0CSZ/xzge00etRyYy/3wp/Dsu+PkxMC+6+B2lS/GcKoewkA==} + overlap-area@1.1.0: resolution: {integrity: sha512-3dlJgJCaVeXH0/eZjYVJvQiLVVrPO4U1ZGqlATtx6QGO3b5eNM6+JgUKa7oStBTdYuGTk7gVoABCW6Tp+dhRdw==} @@ -9335,6 +9604,13 @@ packages: resolution: {integrity: sha512-FLpr4flz5xZTSJxSeaheeMKN/EDzMdK7b8PTOC6a5PYFKTucWbdqjgqaEyH0shFiSJrVB1+Qqi4Tk19ccU6Aug==} engines: {node: '>=12.20'} + pvtsutils@1.3.6: + resolution: {integrity: sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==} + + pvutils@1.1.3: + resolution: {integrity: sha512-pMpnA0qRdFp32b1sJl1wOJNxZLQ2cbQx+k6tjNtZ8CpvVhNqEPRgivZ2WOUev2YMajecdH7ctUPDvEe87nariQ==} + engines: {node: '>=6.0.0'} + queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} @@ -9424,8 +9700,8 @@ packages: react: '>=16.8.1' react-dom: '>=16.8.1' - react-i18next@15.1.2: - resolution: {integrity: sha512-tl7AfbWyz9a4BefFXnVooc+gvQBVlavUkVTphGUcvhsNmbRf5UixJVdHeSFkE4gUyQkmFPYHVwTuxIdHjfQgiA==} + react-i18next@15.1.3: + resolution: {integrity: sha512-J11oA30FbM3NZegUZjn8ySK903z6PLBz/ZuBYyT1JMR0QPrW6PFXvl1WoUhortdGi9dM0m48/zJQlPskVZXgVw==} peerDependencies: i18next: '>= 23.2.3' react: '>= 16.8.0' @@ -9498,8 +9774,8 @@ packages: react-dom: optional: true - react-scan@0.0.33: - resolution: {integrity: sha512-0QnvbGf7UxzuG94HYS9RmrFlLl5O3GcTunmEk+7QIgHWjgn5Cgmfpy+5yh6IAubEvbZgzUv6vPyXq4uEYixZRQ==} + react-scan@0.0.35: + resolution: {integrity: sha512-1ZrSO4prPDDiJg6/ZauxlYMaCFsxo6KrV9fBOVJ5aGkwXw3EyBCzfQpYzIzkwE19iE9Nw3mWd8uEiWupAwDP1w==} hasBin: true react-selecto@1.26.3: @@ -9522,13 +9798,6 @@ packages: '@types/react': optional: true - react-virtuoso@4.12.2: - resolution: {integrity: sha512-9KiEc3uxD07qNrwb09PhPJKWfeNQ/Fw/TNKdZS7D3v4cDa6M/jg5lKLAUlRL7RluO8870cgLGM1T5pPKYEnprg==} - engines: {node: '>=10'} - peerDependencies: - react: '>=16 || >=17 || >= 18' - react-dom: '>=16 || >=17 || >= 18' - react-zoom-pan-pinch@3.6.1: resolution: {integrity: sha512-SdPqdk7QDSV7u/WulkFOi+cnza8rEZ0XX4ZpeH7vx3UZEg7DoyuAy3MCmm+BWv/idPQL2Oe73VoC0EhfCN+sZQ==} engines: {node: '>=8', npm: '>=5'} @@ -9626,8 +9895,8 @@ packages: regenerator-transform@0.15.2: resolution: {integrity: sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==} - regex-recursion@4.2.1: - resolution: {integrity: sha512-QHNZyZAeKdndD1G3bKAbBEKOSSK4KOHQrAJ01N1LJeb0SoH4DJIeFhp0uUpETgONifS4+P3sOgoA1dhzgrQvhA==} + regex-recursion@4.3.0: + resolution: {integrity: sha512-5LcLnizwjcQ2ALfOj95MjcatxyqF5RPySx9yT+PaXu3Gox2vyAtLDjHB8NTJLtMGkvyau6nI3CfpwFCjPUIs/A==} regex-utilities@2.3.0: resolution: {integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==} @@ -9818,11 +10087,14 @@ packages: engines: {node: '>=10.0.0'} hasBin: true - rollup@4.27.4: - resolution: {integrity: sha512-RLKxqHEMjh/RGLsDxAEsaLO3mWgyoU6x9w6n1ikAzet4B3gI2/3yP6PWY2p9QzRTh6MfEIXB3MwsOY0Iv3vNrw==} + rollup@4.28.0: + resolution: {integrity: sha512-G9GOrmgWHBma4YfCcX8PjH0qhXSdH8B4HDE2o4/jaxj93S4DPCIDoLcXz99eWMji4hB29UFCEd7B2gwGJDR9cQ==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true + rou3@0.5.1: + resolution: {integrity: sha512-OXMmJ3zRk2xeXFGfA3K+EOPHC5u7RDFG7lIOx0X1pdnhUkI8MdVrbV+sNsD80ElpUZ+MRHdyxPnFthq9VHs8uQ==} + run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -9955,8 +10227,8 @@ packages: engines: {node: '>=4'} hasBin: true - shiki@1.23.1: - resolution: {integrity: sha512-8kxV9TH4pXgdKGxNOkrSMydn1Xf6It8lsle0fiqxf7a1149K1WGtdOu3Zb91T5r1JpvRPxqxU3C2XdZZXQnrig==} + shiki@1.24.0: + resolution: {integrity: sha512-qIneep7QRwxRd5oiHb8jaRzH15V/S8F3saCXOdjwRLgozZJr5x2yeBhQtqkO3FSzQDwYEFAYuifg4oHjpDghrg==} shimmer@1.2.1: resolution: {integrity: sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw==} @@ -10397,11 +10669,11 @@ packages: resolution: {integrity: sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==} engines: {node: '>=14.0.0'} - tldts-core@6.1.64: - resolution: {integrity: sha512-uqnl8vGV16KsyflHOzqrYjjArjfXaU6rMPXYy2/ZWoRKCkXtghgB4VwTDXUG+t0OTGeSewNAG31/x1gCTfLt+Q==} + tldts-core@6.1.65: + resolution: {integrity: sha512-Uq5t0N0Oj4nQSbU8wFN1YYENvMthvwU13MQrMJRspYCGLSAZjAfoBOJki5IQpnBM/WFskxxC/gIOTwaedmHaSg==} - tldts@6.1.64: - resolution: {integrity: sha512-ph4AE5BXWIOsSy9stpoeo7bYe/Cy7VfpciIH4RhVZUPItCJmhqWCN0EVzxd8BOHiyNb42vuJc6NWTjJkg91Tuw==} + tldts@6.1.65: + resolution: {integrity: sha512-xU9gLTfAGsADQ2PcWee6Hg8RFAv0DnjMGVJmDnUmI8a9+nYmapMQix4afwrdaCtT+AqP4MaxEzu7cCrYmBPbzQ==} hasBin: true tmp-promise@3.0.3: @@ -10465,14 +10737,14 @@ packages: truncate-utf8-bytes@1.0.2: resolution: {integrity: sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==} - ts-api-utils@1.4.0: - resolution: {integrity: sha512-032cPxaEKwM+GT3vA5JXNzIaizx388rhsSW79vGRNGXfRRAdEAn2mvk36PvK5HnOchyWZ7afLEXqYCvPCrzuzQ==} + ts-api-utils@1.4.3: + resolution: {integrity: sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==} engines: {node: '>=16'} peerDependencies: typescript: '>=4.2.0' - ts-declaration-location@1.0.4: - resolution: {integrity: sha512-r4JoxYhKULbZuH81Pjrp9OEG5St7XWk7zXwGkLKhmVcjiBVHTJXV5wK6dEa9JKW5QGSTW6b1lOjxAKp8R1SQhg==} + ts-declaration-location@1.0.5: + resolution: {integrity: sha512-WqmlO9IoeYwCqJ2E9kHMcY9GZhhfLYItC3VnHDlPOrg6nNdUWS4wn4hhDZUPt60m1EvtjPIZyprTjpI992Bgzw==} peerDependencies: typescript: '>=4.0.0' @@ -10603,8 +10875,8 @@ packages: resolution: {integrity: sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==} engines: {node: '>=10'} - type-fest@4.28.0: - resolution: {integrity: sha512-jXMwges/FVbFRe5lTMJZVEZCrO9kI9c8k0PA/z7nF3bo0JSCCLysvokFjNPIUK/itEMas10MQM+AiHoHt/T/XA==} + type-fest@4.29.1: + resolution: {integrity: sha512-Y1zUveI92UYM/vo1EFlQSsNf74+hfKH+7saZJslF0Fw92FRaiTAnHPIvo9d7SLxXt/gAYqA4RXyDTioMQCCp0A==} engines: {node: '>=16'} typed-array-buffer@1.0.2: @@ -10623,8 +10895,8 @@ packages: resolution: {integrity: sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==} engines: {node: '>= 0.4'} - typescript-eslint@8.15.0: - resolution: {integrity: sha512-wY4FRGl0ZI+ZU4Jo/yjdBu0lVTSML58pu6PgGtJmCufvzfV565pUF6iACQt092uFOd49iLOTX/sEVmHtbSrS+w==} + typescript-eslint@8.16.0: + resolution: {integrity: sha512-wDkVmlY6O2do4V+lZd0GtRfbtXbeD0q9WygwXXSJnC1xorE8eqyC2L1tJimqpSeFrOzRlYtWnUp/uzgHQOgfBQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -10666,6 +10938,9 @@ packages: unconfig@0.5.5: resolution: {integrity: sha512-VQZ5PT9HDX+qag0XdgQi8tJepPhXiR/yVOkn707gJDKo31lGjRilPREiQJ9Z6zd/Ugpv6ZvO5VxVIcatldYcNQ==} + uncrypto@0.1.3: + resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==} + undici-types@6.19.8: resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==} @@ -10761,21 +11036,16 @@ packages: resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} engines: {node: '>= 0.8'} - unplugin-ast@0.11.0: - resolution: {integrity: sha512-faP/JmvaH0huDgfAS9QNShIyo2C9lICSNc6qQ13r7U84PUl7aVyw5RK0/E63FnazxxjFSt6QfKeonMpwu1d75A==} + unplugin-ast@0.12.0: + resolution: {integrity: sha512-/naRvutgPyTyKM0AVkB+Z6QykE+V5WauRdA8rZa/vH7rF6vHoHLko3gAnLMn8b+Hg+UqMRpclbwY/aIoVcy3uQ==} engines: {node: '>=18.12.0'} unplugin@1.0.1: resolution: {integrity: sha512-aqrHaVBWW1JVKBHmGo33T5TxeL0qWzfvjWokObHA9bYmN7eNDkwOxmLjhioHl9878qDFMAaT51XNroRyuz7WxA==} - unplugin@1.15.0: - resolution: {integrity: sha512-jTPIs63W+DUEDW207ztbaoO7cQ4p5aVaB823LSlxpsFEU3Mykwxf3ZGC/wzxFJeZlASZYgVrWeo7LgOrqJZ8RA==} - engines: {node: '>=14.0.0'} - peerDependencies: - webpack-sources: ^3 - peerDependenciesMeta: - webpack-sources: - optional: true + unplugin@2.0.0-beta.1: + resolution: {integrity: sha512-2qzQo5LN2DmUZXkWDHvGKLF5BP0WN+KthD6aPnPJ8plRBIjv4lh5O07eYcSxgO2znNw9s4MNhEO1sB+JDllDbQ==} + engines: {node: '>=18.12.0'} unused-filename@4.0.1: resolution: {integrity: sha512-ZX6U1J04K1FoSUeoX1OicAhw4d0aro2qo+L8RhJkiGTNtBNkd/Fi1Wxoc9HzcVu6HfOzm0si/N15JjxFmD1z6A==} @@ -10891,8 +11161,8 @@ packages: vfile@6.0.3: resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} - vite-bundle-analyzer@0.14.3: - resolution: {integrity: sha512-gtYPRahkEdo7TRDLHqq+ZRE8Xfz5dt3UAl0NhkZBBYaGRd3EOyWJz9+WAqRSALf4szFhq5AS0TKvL9nVWiAkqw==} + vite-bundle-analyzer@0.15.2: + resolution: {integrity: sha512-AwFOewhvf7EkTACa9c/inbxMrJOWwyVF4nUMITwN26lM5TAYkcnJC4KFgZXym3sYRAWe1Qgvk8X4OFTw4HPaJw==} hasBin: true vite-node@2.1.6: @@ -10906,12 +11176,12 @@ packages: peerDependencies: vite: '>=3' - vite-plugin-pwa@0.21.0: - resolution: {integrity: sha512-gnDE5sN2hdxA4vTl0pe6PCTPXqChk175jH8dZVVTBjFhWarZZoXaAdoTIKCIa8Zbx94sC0CnCOyERBWpxvry+g==} + vite-plugin-pwa@0.21.1: + resolution: {integrity: sha512-rkTbKFbd232WdiRJ9R3u+hZmf5SfQljX1b45NF6oLA6DSktEKpYllgTo1l2lkiZWMWV78pABJtFjNXfBef3/3Q==} engines: {node: '>=16.0.0'} peerDependencies: '@vite-pwa/assets-generator': ^0.2.6 - vite: ^3.1.0 || ^4.0.0 || ^5.0.0 + vite: ^3.1.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 workbox-build: ^7.3.0 workbox-window: ^7.3.0 peerDependenciesMeta: @@ -10926,8 +11196,8 @@ packages: vite: optional: true - vite@6.0.1: - resolution: {integrity: sha512-Ldn6gorLGr4mCdFnmeAOLweJxZ34HjKnDm4HGo6P66IEqTxQb36VEdFJQENKxWjupNfoIjvRUnswjn1hpYEpjQ==} + vite@6.0.2: + resolution: {integrity: sha512-XdQ+VsY2tJpBsKGs0wf3U/+azx8BBpYRHFAyKm5VeEZNOJZRB63q7Sc8Iup3k0TrN3KO6QgyzFf+opSbfY1y0g==} engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true peerDependencies: @@ -11067,8 +11337,8 @@ packages: resolution: {integrity: sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==} engines: {node: '>= 0.4'} - which-typed-array@1.1.15: - resolution: {integrity: sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==} + which-typed-array@1.1.16: + resolution: {integrity: sha512-g+N+GAWiRj66DngFwHvISJd+ITsyphZvD1vChfVg6cEdnzy53GzB3oy0fUNlvhz7H7+MiqhYr26qxQShCpKTTQ==} engines: {node: '>= 0.4'} which@1.3.1: @@ -11512,14 +11782,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-proposal-private-methods@7.18.6(@babel/core@7.26.0)': - dependencies: - '@babel/core': 7.26.0 - '@babel/helper-create-class-features-plugin': 7.25.9(@babel/core@7.26.0) - '@babel/helper-plugin-utils': 7.25.9 - transitivePeerDependencies: - - supports-color - '@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 @@ -11982,6 +12244,8 @@ snapshots: '@babel/helper-string-parser': 7.25.9 '@babel/helper-validator-identifier': 7.25.9 + '@better-fetch/fetch@1.1.12': {} + '@canvas/image-data@1.0.0': {} '@cfcs/core@0.0.6': @@ -12056,10 +12320,10 @@ snapshots: '@egjs/list-differ@1.0.1': {} - '@egoist/tailwindcss-icons@1.8.1(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)))': + '@egoist/tailwindcss-icons@1.8.1(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)))': dependencies: '@iconify/utils': 2.1.33 - tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) transitivePeerDependencies: - supports-color @@ -12067,7 +12331,7 @@ snapshots: dependencies: electron: 33.2.0 optionalDependencies: - '@tanstack/react-query': 5.61.4(react@18.3.1) + '@tanstack/react-query': 5.62.0(react@18.3.1) transitivePeerDependencies: - react @@ -12294,9 +12558,9 @@ snapshots: dependencies: electron: 33.2.0 - '@electron-toolkit/tsconfig@1.0.1(@types/node@22.10.0)': + '@electron-toolkit/tsconfig@1.0.1(@types/node@22.10.1)': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@electron-toolkit/utils@3.0.0(electron@33.2.0)': dependencies: @@ -12494,6 +12758,16 @@ snapshots: transitivePeerDependencies: - supports-color + '@emnapi/core@0.45.0': + dependencies: + tslib: 2.8.1 + optional: true + + '@emnapi/runtime@0.45.0': + dependencies: + tslib: 2.8.1 + optional: true + '@emotion/is-prop-valid@1.3.1': dependencies: '@emotion/memoize': 0.9.0 @@ -12728,20 +13002,20 @@ snapshots: '@esbuild/win32-x64@0.24.0': optional: true - '@eslint-community/eslint-utils@4.4.1(eslint@9.15.0(jiti@2.3.3))': + '@eslint-community/eslint-utils@4.4.1(eslint@9.16.0(jiti@2.3.3))': dependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.12.1': {} - '@eslint-react/ast@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@eslint-react/ast@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/typescript-estree': 8.15.0(typescript@5.7.2) - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.7.2) + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) birecord: 0.1.1 string-ts: 2.2.0 ts-pattern: 5.5.0 @@ -12750,18 +13024,18 @@ snapshots: - supports-color - typescript - '@eslint-react/core@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@eslint-react/core@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/jsx': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/shared': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/var': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/jsx': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/shared': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/var': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/type-utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) birecord: 0.1.1 short-unique-id: 5.2.0 ts-pattern: 5.5.0 @@ -12770,36 +13044,36 @@ snapshots: - supports-color - typescript - '@eslint-react/eslint-plugin@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@eslint-react/eslint-plugin@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@eslint-react/shared': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint: 9.15.0(jiti@2.3.3) - eslint-plugin-react-debug: 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint-plugin-react-dom: 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint-plugin-react-hooks-extra: 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint-plugin-react-naming-convention: 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint-plugin-react-web-api: 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint-plugin-react-x: 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/shared': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/type-utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) + eslint-plugin-react-debug: 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint-plugin-react-dom: 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint-plugin-react-hooks-extra: 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint-plugin-react-naming-convention: 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint-plugin-react-web-api: 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint-plugin-react-x: 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - '@eslint-react/jsx@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@eslint-react/jsx@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/var': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/var': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) birecord: 0.1.1 ts-pattern: 5.5.0 transitivePeerDependencies: @@ -12807,10 +13081,10 @@ snapshots: - supports-color - typescript - '@eslint-react/shared@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@eslint-react/shared@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@eslint-react/tools': 1.17.1 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) local-pkg: 0.5.1 picomatch: 4.0.2 ts-pattern: 5.5.0 @@ -12819,35 +13093,35 @@ snapshots: - supports-color - typescript - '@eslint-react/tools@1.17.1': {} + '@eslint-react/tools@1.17.2': {} - '@eslint-react/types@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@eslint-react/types@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@eslint-react/tools': 1.17.1 - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) transitivePeerDependencies: - eslint - supports-color - typescript - '@eslint-react/var@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@eslint-react/var@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) ts-pattern: 5.5.0 transitivePeerDependencies: - eslint - supports-color - typescript - '@eslint/compat@1.2.3(eslint@9.15.0(jiti@2.3.3))': + '@eslint/compat@1.2.3(eslint@9.16.0(jiti@2.3.3))': optionalDependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) '@eslint/config-array@0.19.0': dependencies: @@ -12873,7 +13147,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@eslint/js@9.15.0': {} + '@eslint/js@9.16.0': {} '@eslint/object-schema@2.1.4': {} @@ -13295,7 +13569,7 @@ snapshots: '@grpc/grpc-js@1.9.15': dependencies: '@grpc/proto-loader': 0.7.13 - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@grpc/proto-loader@0.7.13': dependencies: @@ -13309,19 +13583,11 @@ snapshots: '@floating-ui/react': 0.26.25(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@react-aria/focus': 3.18.4(react@18.3.1) '@react-aria/interactions': 3.22.4(react@18.3.1) - '@tanstack/react-virtual': 3.10.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@tanstack/react-virtual': 3.10.9(patch_hash=fpkworxfwphev7q33sgiutu7aq)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - '@hono/auth-js@1.0.15(@auth/core@0.37.4)(hono@4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24))(react@18.3.1)': - dependencies: - '@auth/core': 0.37.4 - hono: 4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24) - react: 18.3.1 - - '@hono/node-server@1.13.7(hono@4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24))': - dependencies: - hono: 4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24) + '@hexagon/base64@1.1.28': {} '@hono/node-server@1.13.7(hono@4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24))': dependencies: @@ -13434,13 +13700,15 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 - '@lottiefiles/dotlottie-react@0.10.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@levischuck/tiny-cbor@0.2.2': {} + + '@lottiefiles/dotlottie-react@0.10.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@lottiefiles/dotlottie-web': 0.37.0 + '@lottiefiles/dotlottie-web': 0.38.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - '@lottiefiles/dotlottie-web@0.37.0': {} + '@lottiefiles/dotlottie-web@0.38.0': {} '@malept/cross-spawn-promise@1.1.1': dependencies: @@ -13485,6 +13753,138 @@ snapshots: '@mozilla/readability@0.5.0(patch_hash=43niildbdafdxi7qfcwhpkkxwa)': {} + '@noble/ciphers@0.6.0': {} + + '@noble/hashes@1.6.1': {} + + '@node-rs/argon2-android-arm-eabi@1.7.0': + optional: true + + '@node-rs/argon2-android-arm64@1.7.0': + optional: true + + '@node-rs/argon2-darwin-arm64@1.7.0': + optional: true + + '@node-rs/argon2-darwin-x64@1.7.0': + optional: true + + '@node-rs/argon2-freebsd-x64@1.7.0': + optional: true + + '@node-rs/argon2-linux-arm-gnueabihf@1.7.0': + optional: true + + '@node-rs/argon2-linux-arm64-gnu@1.7.0': + optional: true + + '@node-rs/argon2-linux-arm64-musl@1.7.0': + optional: true + + '@node-rs/argon2-linux-x64-gnu@1.7.0': + optional: true + + '@node-rs/argon2-linux-x64-musl@1.7.0': + optional: true + + '@node-rs/argon2-wasm32-wasi@1.7.0': + dependencies: + '@emnapi/core': 0.45.0 + '@emnapi/runtime': 0.45.0 + '@tybys/wasm-util': 0.8.3 + memfs-browser: 3.5.10302 + optional: true + + '@node-rs/argon2-win32-arm64-msvc@1.7.0': + optional: true + + '@node-rs/argon2-win32-ia32-msvc@1.7.0': + optional: true + + '@node-rs/argon2-win32-x64-msvc@1.7.0': + optional: true + + '@node-rs/argon2@1.7.0': + optionalDependencies: + '@node-rs/argon2-android-arm-eabi': 1.7.0 + '@node-rs/argon2-android-arm64': 1.7.0 + '@node-rs/argon2-darwin-arm64': 1.7.0 + '@node-rs/argon2-darwin-x64': 1.7.0 + '@node-rs/argon2-freebsd-x64': 1.7.0 + '@node-rs/argon2-linux-arm-gnueabihf': 1.7.0 + '@node-rs/argon2-linux-arm64-gnu': 1.7.0 + '@node-rs/argon2-linux-arm64-musl': 1.7.0 + '@node-rs/argon2-linux-x64-gnu': 1.7.0 + '@node-rs/argon2-linux-x64-musl': 1.7.0 + '@node-rs/argon2-wasm32-wasi': 1.7.0 + '@node-rs/argon2-win32-arm64-msvc': 1.7.0 + '@node-rs/argon2-win32-ia32-msvc': 1.7.0 + '@node-rs/argon2-win32-x64-msvc': 1.7.0 + + '@node-rs/bcrypt-android-arm-eabi@1.9.0': + optional: true + + '@node-rs/bcrypt-android-arm64@1.9.0': + optional: true + + '@node-rs/bcrypt-darwin-arm64@1.9.0': + optional: true + + '@node-rs/bcrypt-darwin-x64@1.9.0': + optional: true + + '@node-rs/bcrypt-freebsd-x64@1.9.0': + optional: true + + '@node-rs/bcrypt-linux-arm-gnueabihf@1.9.0': + optional: true + + '@node-rs/bcrypt-linux-arm64-gnu@1.9.0': + optional: true + + '@node-rs/bcrypt-linux-arm64-musl@1.9.0': + optional: true + + '@node-rs/bcrypt-linux-x64-gnu@1.9.0': + optional: true + + '@node-rs/bcrypt-linux-x64-musl@1.9.0': + optional: true + + '@node-rs/bcrypt-wasm32-wasi@1.9.0': + dependencies: + '@emnapi/core': 0.45.0 + '@emnapi/runtime': 0.45.0 + '@tybys/wasm-util': 0.8.3 + memfs-browser: 3.5.10302 + optional: true + + '@node-rs/bcrypt-win32-arm64-msvc@1.9.0': + optional: true + + '@node-rs/bcrypt-win32-ia32-msvc@1.9.0': + optional: true + + '@node-rs/bcrypt-win32-x64-msvc@1.9.0': + optional: true + + '@node-rs/bcrypt@1.9.0': + optionalDependencies: + '@node-rs/bcrypt-android-arm-eabi': 1.9.0 + '@node-rs/bcrypt-android-arm64': 1.9.0 + '@node-rs/bcrypt-darwin-arm64': 1.9.0 + '@node-rs/bcrypt-darwin-x64': 1.9.0 + '@node-rs/bcrypt-freebsd-x64': 1.9.0 + '@node-rs/bcrypt-linux-arm-gnueabihf': 1.9.0 + '@node-rs/bcrypt-linux-arm64-gnu': 1.9.0 + '@node-rs/bcrypt-linux-arm64-musl': 1.9.0 + '@node-rs/bcrypt-linux-x64-gnu': 1.9.0 + '@node-rs/bcrypt-linux-x64-musl': 1.9.0 + '@node-rs/bcrypt-wasm32-wasi': 1.9.0 + '@node-rs/bcrypt-win32-arm64-msvc': 1.9.0 + '@node-rs/bcrypt-win32-ia32-msvc': 1.9.0 + '@node-rs/bcrypt-win32-x64-msvc': 1.9.0 + '@nodelib/fs.scandir@2.1.5': dependencies: '@nodelib/fs.stat': 2.0.5 @@ -13925,6 +14325,40 @@ snapshots: '@panva/hkdf@1.2.1': {} + '@peculiar/asn1-android@2.3.13': + dependencies: + '@peculiar/asn1-schema': 2.3.13 + asn1js: 3.0.5 + tslib: 2.8.1 + + '@peculiar/asn1-ecc@2.3.14': + dependencies: + '@peculiar/asn1-schema': 2.3.13 + '@peculiar/asn1-x509': 2.3.13 + asn1js: 3.0.5 + tslib: 2.8.1 + + '@peculiar/asn1-rsa@2.3.13': + dependencies: + '@peculiar/asn1-schema': 2.3.13 + '@peculiar/asn1-x509': 2.3.13 + asn1js: 3.0.5 + tslib: 2.8.1 + + '@peculiar/asn1-schema@2.3.13': + dependencies: + asn1js: 3.0.5 + pvtsutils: 1.3.6 + tslib: 2.8.1 + + '@peculiar/asn1-x509@2.3.13': + dependencies: + '@peculiar/asn1-schema': 2.3.13 + asn1js: 3.0.5 + ipaddr.js: 2.2.0 + pvtsutils: 1.3.6 + tslib: 2.8.1 + '@pengx17/electron-forge-maker-appimage@1.2.1(dmg-builder@25.1.8)(electron-builder-squirrel-windows@25.1.8)': dependencies: '@electron-forge/maker-base': 7.6.0 @@ -14316,7 +14750,7 @@ snapshots: '@types/react': 18.3.12 '@types/react-dom': 18.3.1 - '@radix-ui/react-scroll-area@1.2.0(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-scroll-area@1.2.1(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@radix-ui/number': 1.1.0 '@radix-ui/primitive': 1.1.0 @@ -14697,58 +15131,58 @@ snapshots: optionalDependencies: rollup: 2.79.2 - '@rollup/rollup-android-arm-eabi@4.27.4': + '@rollup/rollup-android-arm-eabi@4.28.0': optional: true - '@rollup/rollup-android-arm64@4.27.4': + '@rollup/rollup-android-arm64@4.28.0': optional: true - '@rollup/rollup-darwin-arm64@4.27.4': + '@rollup/rollup-darwin-arm64@4.28.0': optional: true - '@rollup/rollup-darwin-x64@4.27.4': + '@rollup/rollup-darwin-x64@4.28.0': optional: true - '@rollup/rollup-freebsd-arm64@4.27.4': + '@rollup/rollup-freebsd-arm64@4.28.0': optional: true - '@rollup/rollup-freebsd-x64@4.27.4': + '@rollup/rollup-freebsd-x64@4.28.0': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.27.4': + '@rollup/rollup-linux-arm-gnueabihf@4.28.0': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.27.4': + '@rollup/rollup-linux-arm-musleabihf@4.28.0': optional: true - '@rollup/rollup-linux-arm64-gnu@4.27.4': + '@rollup/rollup-linux-arm64-gnu@4.28.0': optional: true - '@rollup/rollup-linux-arm64-musl@4.27.4': + '@rollup/rollup-linux-arm64-musl@4.28.0': optional: true - '@rollup/rollup-linux-powerpc64le-gnu@4.27.4': + '@rollup/rollup-linux-powerpc64le-gnu@4.28.0': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.27.4': + '@rollup/rollup-linux-riscv64-gnu@4.28.0': optional: true - '@rollup/rollup-linux-s390x-gnu@4.27.4': + '@rollup/rollup-linux-s390x-gnu@4.28.0': optional: true - '@rollup/rollup-linux-x64-gnu@4.27.4': + '@rollup/rollup-linux-x64-gnu@4.28.0': optional: true - '@rollup/rollup-linux-x64-musl@4.27.4': + '@rollup/rollup-linux-x64-musl@4.28.0': optional: true - '@rollup/rollup-win32-arm64-msvc@4.27.4': + '@rollup/rollup-win32-arm64-msvc@4.28.0': optional: true - '@rollup/rollup-win32-ia32-msvc@4.27.4': + '@rollup/rollup-win32-ia32-msvc@4.28.0': optional: true - '@rollup/rollup-win32-x64-msvc@4.27.4': + '@rollup/rollup-win32-x64-msvc@4.28.0': optional: true '@scena/dragscroll@1.4.0': @@ -14770,10 +15204,10 @@ snapshots: '@sentry/types': 8.35.0 '@sentry/utils': 8.35.0 - '@sentry-internal/browser-utils@8.40.0': + '@sentry-internal/browser-utils@8.41.0': dependencies: - '@sentry/core': 8.40.0 - '@sentry/types': 8.40.0 + '@sentry/core': 8.41.0 + '@sentry/types': 8.41.0 '@sentry-internal/feedback@8.35.0': dependencies: @@ -14781,10 +15215,10 @@ snapshots: '@sentry/types': 8.35.0 '@sentry/utils': 8.35.0 - '@sentry-internal/feedback@8.40.0': + '@sentry-internal/feedback@8.41.0': dependencies: - '@sentry/core': 8.40.0 - '@sentry/types': 8.40.0 + '@sentry/core': 8.41.0 + '@sentry/types': 8.41.0 '@sentry-internal/replay-canvas@8.35.0': dependencies: @@ -14793,11 +15227,11 @@ snapshots: '@sentry/types': 8.35.0 '@sentry/utils': 8.35.0 - '@sentry-internal/replay-canvas@8.40.0': + '@sentry-internal/replay-canvas@8.41.0': dependencies: - '@sentry-internal/replay': 8.40.0 - '@sentry/core': 8.40.0 - '@sentry/types': 8.40.0 + '@sentry-internal/replay': 8.41.0 + '@sentry/core': 8.41.0 + '@sentry/types': 8.41.0 '@sentry-internal/replay@8.35.0': dependencies: @@ -14806,11 +15240,11 @@ snapshots: '@sentry/types': 8.35.0 '@sentry/utils': 8.35.0 - '@sentry-internal/replay@8.40.0': + '@sentry-internal/replay@8.41.0': dependencies: - '@sentry-internal/browser-utils': 8.40.0 - '@sentry/core': 8.40.0 - '@sentry/types': 8.40.0 + '@sentry-internal/browser-utils': 8.41.0 + '@sentry/core': 8.41.0 + '@sentry/types': 8.41.0 '@sentry/babel-plugin-component-annotate@2.22.6': {} @@ -14824,14 +15258,14 @@ snapshots: '@sentry/types': 8.35.0 '@sentry/utils': 8.35.0 - '@sentry/browser@8.40.0': + '@sentry/browser@8.41.0': dependencies: - '@sentry-internal/browser-utils': 8.40.0 - '@sentry-internal/feedback': 8.40.0 - '@sentry-internal/replay': 8.40.0 - '@sentry-internal/replay-canvas': 8.40.0 - '@sentry/core': 8.40.0 - '@sentry/types': 8.40.0 + '@sentry-internal/browser-utils': 8.41.0 + '@sentry-internal/feedback': 8.41.0 + '@sentry-internal/replay': 8.41.0 + '@sentry-internal/replay-canvas': 8.41.0 + '@sentry/core': 8.41.0 + '@sentry/types': 8.41.0 '@sentry/bundler-plugin-core@2.22.6(encoding@0.1.13)': dependencies: @@ -14892,9 +15326,9 @@ snapshots: '@sentry/types': 8.35.0 '@sentry/utils': 8.35.0 - '@sentry/core@8.40.0': + '@sentry/core@8.41.0': dependencies: - '@sentry/types': 8.40.0 + '@sentry/types': 8.41.0 '@sentry/electron@5.7.0': dependencies: @@ -14958,17 +15392,17 @@ snapshots: '@sentry/types': 8.35.0 '@sentry/utils': 8.35.0 - '@sentry/react@8.40.0(react@18.3.1)': + '@sentry/react@8.41.0(react@18.3.1)': dependencies: - '@sentry/browser': 8.40.0 - '@sentry/core': 8.40.0 - '@sentry/types': 8.40.0 + '@sentry/browser': 8.41.0 + '@sentry/core': 8.41.0 + '@sentry/types': 8.41.0 hoist-non-react-statics: 3.3.2 react: 18.3.1 '@sentry/types@8.35.0': {} - '@sentry/types@8.40.0': {} + '@sentry/types@8.41.0': {} '@sentry/utils@8.35.0': dependencies: @@ -14982,31 +15416,31 @@ snapshots: - encoding - supports-color - '@shikijs/core@1.23.1': + '@shikijs/core@1.24.0': dependencies: - '@shikijs/engine-javascript': 1.23.1 - '@shikijs/engine-oniguruma': 1.23.1 - '@shikijs/types': 1.23.1 + '@shikijs/engine-javascript': 1.24.0 + '@shikijs/engine-oniguruma': 1.24.0 + '@shikijs/types': 1.24.0 '@shikijs/vscode-textmate': 9.3.0 '@types/hast': 3.0.4 hast-util-to-html: 9.0.3 - '@shikijs/engine-javascript@1.23.1': + '@shikijs/engine-javascript@1.24.0': dependencies: - '@shikijs/types': 1.23.1 + '@shikijs/types': 1.24.0 '@shikijs/vscode-textmate': 9.3.0 - oniguruma-to-es: 0.4.1 + oniguruma-to-es: 0.7.0 - '@shikijs/engine-oniguruma@1.23.1': + '@shikijs/engine-oniguruma@1.24.0': dependencies: - '@shikijs/types': 1.23.1 + '@shikijs/types': 1.24.0 '@shikijs/vscode-textmate': 9.3.0 - '@shikijs/transformers@1.23.1': + '@shikijs/transformers@1.24.0': dependencies: - shiki: 1.23.1 + shiki: 1.24.0 - '@shikijs/types@1.23.1': + '@shikijs/types@1.24.0': dependencies: '@shikijs/vscode-textmate': 9.3.0 '@types/hast': 3.0.4 @@ -15018,12 +15452,32 @@ snapshots: fflate: 0.7.4 string.prototype.codepointat: 0.2.1 + '@simplewebauthn/browser@10.0.0': + dependencies: + '@simplewebauthn/types': 10.0.0 + + '@simplewebauthn/server@10.0.1(encoding@0.1.13)': + dependencies: + '@hexagon/base64': 1.1.28 + '@levischuck/tiny-cbor': 0.2.2 + '@peculiar/asn1-android': 2.3.13 + '@peculiar/asn1-ecc': 2.3.14 + '@peculiar/asn1-rsa': 2.3.13 + '@peculiar/asn1-schema': 2.3.13 + '@peculiar/asn1-x509': 2.3.13 + '@simplewebauthn/types': 10.0.0 + cross-fetch: 4.0.0(encoding@0.1.13) + transitivePeerDependencies: + - encoding + + '@simplewebauthn/types@10.0.0': {} + '@sindresorhus/is@4.6.0': {} - '@stylistic/eslint-plugin@2.11.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@stylistic/eslint-plugin@2.11.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint: 9.15.0(jiti@2.3.3) + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) eslint-visitor-keys: 4.2.0 espree: 10.3.0 estraverse: 5.3.0 @@ -15053,55 +15507,55 @@ snapshots: optionalDependencies: typescript: 5.7.2 - '@tailwindcss/container-queries@0.1.1(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)))': + '@tailwindcss/container-queries@0.1.1(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)))': dependencies: - tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) - '@tailwindcss/typography@0.5.15(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)))': + '@tailwindcss/typography@0.5.15(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)))': dependencies: lodash.castarray: 4.4.0 lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 postcss-selector-parser: 6.0.10 - tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) - '@tanstack/query-core@5.61.4': {} + '@tanstack/query-core@5.62.0': {} '@tanstack/query-devtools@5.61.4': {} - '@tanstack/query-persist-client-core@5.61.4': + '@tanstack/query-persist-client-core@5.62.0': dependencies: - '@tanstack/query-core': 5.61.4 + '@tanstack/query-core': 5.62.0 - '@tanstack/query-sync-storage-persister@5.61.4': + '@tanstack/query-sync-storage-persister@5.62.0': dependencies: - '@tanstack/query-core': 5.61.4 - '@tanstack/query-persist-client-core': 5.61.4 + '@tanstack/query-core': 5.62.0 + '@tanstack/query-persist-client-core': 5.62.0 - '@tanstack/react-query-devtools@5.61.4(@tanstack/react-query@5.61.4(react@18.3.1))(react@18.3.1)': + '@tanstack/react-query-devtools@5.62.0(@tanstack/react-query@5.62.0(react@18.3.1))(react@18.3.1)': dependencies: '@tanstack/query-devtools': 5.61.4 - '@tanstack/react-query': 5.61.4(react@18.3.1) + '@tanstack/react-query': 5.62.0(react@18.3.1) react: 18.3.1 - '@tanstack/react-query-persist-client@5.61.4(@tanstack/react-query@5.61.4(react@18.3.1))(react@18.3.1)': + '@tanstack/react-query-persist-client@5.62.0(@tanstack/react-query@5.62.0(react@18.3.1))(react@18.3.1)': dependencies: - '@tanstack/query-persist-client-core': 5.61.4 - '@tanstack/react-query': 5.61.4(react@18.3.1) + '@tanstack/query-persist-client-core': 5.62.0 + '@tanstack/react-query': 5.62.0(react@18.3.1) react: 18.3.1 - '@tanstack/react-query@5.61.4(react@18.3.1)': + '@tanstack/react-query@5.62.0(react@18.3.1)': dependencies: - '@tanstack/query-core': 5.61.4 + '@tanstack/query-core': 5.62.0 react: 18.3.1 - '@tanstack/react-virtual@3.10.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@tanstack/react-virtual@3.10.9(patch_hash=fpkworxfwphev7q33sgiutu7aq)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@tanstack/virtual-core': 3.10.8 + '@tanstack/virtual-core': 3.10.9 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - '@tanstack/virtual-core@3.10.8': {} + '@tanstack/virtual-core@3.10.9': {} '@tootallnate/once@2.0.0': {} @@ -15122,9 +15576,14 @@ snapshots: '@tsconfig/node16@1.0.4': {} + '@tybys/wasm-util@0.8.3': + dependencies: + tslib: 2.8.1 + optional: true + '@types/appdmg@0.5.5': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 optional: true '@types/babel__core@7.20.5': @@ -15152,12 +15611,12 @@ snapshots: dependencies: '@types/http-cache-semantics': 4.0.4 '@types/keyv': 3.1.4 - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@types/responselike': 1.0.3 '@types/connect@3.4.36': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@types/cookie@0.6.0': {} @@ -15175,12 +15634,12 @@ snapshots: '@types/fs-extra@9.0.13': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@types/glob@7.2.0': dependencies: '@types/minimatch': 5.1.2 - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@types/hast@3.0.4': dependencies: @@ -15198,7 +15657,7 @@ snapshots: '@types/keyv@3.1.4': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@types/mdast@4.0.4': dependencies: @@ -15210,15 +15669,15 @@ snapshots: '@types/mysql@2.15.26': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@types/node@16.18.11': {} - '@types/node@20.17.8': + '@types/node@20.17.9': dependencies: undici-types: 6.19.8 - '@types/node@22.10.0': + '@types/node@22.10.1': dependencies: undici-types: 6.20.0 @@ -15230,19 +15689,19 @@ snapshots: '@types/pg@8.11.10': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 pg-protocol: 1.7.0 pg-types: 4.0.2 '@types/pg@8.6.1': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 pg-protocol: 1.7.0 pg-types: 2.2.0 '@types/plist@3.0.5': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 xmlbuilder: 15.1.1 optional: true @@ -15261,7 +15720,7 @@ snapshots: '@types/responselike@1.0.3': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@types/semver@7.5.8': {} @@ -15269,7 +15728,7 @@ snapshots: '@types/tar@6.1.13': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 minipass: 4.2.8 '@types/trusted-types@2.0.7': {} @@ -15283,89 +15742,89 @@ snapshots: '@types/yauzl@2.10.3': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 optional: true - '@typescript-eslint/eslint-plugin@8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@typescript-eslint/eslint-plugin@8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: '@eslint-community/regexpp': 4.12.1 - '@typescript-eslint/parser': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/visitor-keys': 8.15.0 - eslint: 9.15.0(jiti@2.3.3) + '@typescript-eslint/parser': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/type-utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/visitor-keys': 8.16.0 + eslint: 9.16.0(jiti@2.3.3) graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 - ts-api-utils: 1.4.0(typescript@5.7.2) + ts-api-utils: 1.4.3(typescript@5.7.2) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@typescript-eslint/parser@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/typescript-estree': 8.15.0(typescript@5.7.2) - '@typescript-eslint/visitor-keys': 8.15.0 + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.7.2) + '@typescript-eslint/visitor-keys': 8.16.0 debug: 4.3.7 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/scope-manager@8.15.0': + '@typescript-eslint/scope-manager@8.16.0': dependencies: - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/visitor-keys': 8.15.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/visitor-keys': 8.16.0 - '@typescript-eslint/type-utils@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@typescript-eslint/type-utils@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@typescript-eslint/typescript-estree': 8.15.0(typescript@5.7.2) - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.7.2) + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) debug: 4.3.7 - eslint: 9.15.0(jiti@2.3.3) - ts-api-utils: 1.4.0(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) + ts-api-utils: 1.4.3(typescript@5.7.2) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/types@8.15.0': {} + '@typescript-eslint/types@8.16.0': {} - '@typescript-eslint/typescript-estree@8.15.0(typescript@5.7.2)': + '@typescript-eslint/typescript-estree@8.16.0(typescript@5.7.2)': dependencies: - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/visitor-keys': 8.15.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/visitor-keys': 8.16.0 debug: 4.3.7 fast-glob: 3.3.2 is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.4.0(typescript@5.7.2) + ts-api-utils: 1.4.3(typescript@5.7.2) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@typescript-eslint/utils@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@9.15.0(jiti@2.3.3)) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/typescript-estree': 8.15.0(typescript@5.7.2) - eslint: 9.15.0(jiti@2.3.3) + '@eslint-community/eslint-utils': 4.4.1(eslint@9.16.0(jiti@2.3.3)) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/visitor-keys@8.15.0': + '@typescript-eslint/visitor-keys@8.16.0': dependencies: - '@typescript-eslint/types': 8.15.0 + '@typescript-eslint/types': 8.16.0 eslint-visitor-keys: 4.2.0 '@ungap/structured-clone@1.2.0': {} @@ -15379,17 +15838,17 @@ snapshots: '@unocss/core@0.64.1': {} - '@unocss/eslint-config@0.64.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@unocss/eslint-config@0.64.1(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@unocss/eslint-plugin': 0.64.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@unocss/eslint-plugin': 0.64.1(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) transitivePeerDependencies: - eslint - supports-color - typescript - '@unocss/eslint-plugin@0.64.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@unocss/eslint-plugin@0.64.1(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) '@unocss/config': 0.64.1 '@unocss/core': 0.64.1 magic-string: 0.30.14 @@ -15471,7 +15930,7 @@ snapshots: sharp-ico: 0.1.5 unconfig: 0.3.13 - '@vitejs/plugin-legacy@6.0.0(terser@5.35.0)(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))': + '@vitejs/plugin-legacy@6.0.0(terser@5.35.0)(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))': dependencies: '@babel/core': 7.26.0 '@babel/preset-env': 7.26.0(@babel/core@7.26.0) @@ -15482,18 +15941,18 @@ snapshots: regenerator-runtime: 0.14.1 systemjs: 6.15.1 terser: 5.35.0 - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) transitivePeerDependencies: - supports-color - '@vitejs/plugin-react@4.3.4(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))': + '@vitejs/plugin-react@4.3.4(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))': dependencies: '@babel/core': 7.26.0 '@babel/plugin-transform-react-jsx-self': 7.25.9(@babel/core@7.26.0) '@babel/plugin-transform-react-jsx-source': 7.25.9(@babel/core@7.26.0) '@types/babel__core': 7.20.5 react-refresh: 0.14.2 - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) transitivePeerDependencies: - supports-color @@ -15504,13 +15963,13 @@ snapshots: chai: 5.1.2 tinyrainbow: 1.2.0 - '@vitest/mocker@2.1.6(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))': + '@vitest/mocker@2.1.6(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))': dependencies: '@vitest/spy': 2.1.6 estree-walker: 3.0.3 magic-string: 0.30.14 optionalDependencies: - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) '@vitest/pretty-format@2.1.6': dependencies: @@ -15831,12 +16290,18 @@ snapshots: minimalistic-assert: 1.0.1 safer-buffer: 2.1.2 + asn1js@3.0.5: + dependencies: + pvtsutils: 1.3.6 + pvutils: 1.1.3 + tslib: 2.8.1 + assert-plus@1.0.0: optional: true assertion-error@2.0.1: {} - ast-kit@1.3.1: + ast-kit@1.3.2: dependencies: '@babel/parser': 7.26.2 pathe: 1.1.2 @@ -15960,6 +16425,34 @@ snapshots: before-after-hook@2.2.3: {} + better-auth@1.0.7(encoding@0.1.13): + dependencies: + '@better-fetch/fetch': 1.1.12 + '@noble/ciphers': 0.6.0 + '@noble/hashes': 1.6.1 + '@simplewebauthn/browser': 10.0.0 + '@simplewebauthn/server': 10.0.1(encoding@0.1.13) + better-call: 0.3.3-beta.2 + consola: 3.2.3 + defu: 6.1.4 + jose: 5.9.6 + kysely: 0.27.4 + nanoid: 5.0.9 + nanostores: 0.11.3 + oslo: 1.2.1 + uncrypto: 0.1.3 + zod: 3.23.8 + transitivePeerDependencies: + - encoding + + better-call@0.3.3-beta.2: + dependencies: + '@better-fetch/fetch': 1.1.12 + rou3: 0.5.1 + set-cookie-parser: 2.7.1 + uncrypto: 0.1.3 + zod: 3.23.8 + binary-extensions@2.3.0: {} bindings@1.5.0: @@ -16248,7 +16741,7 @@ snapshots: camelcase: 8.0.0 map-obj: 5.0.0 quick-lru: 6.1.2 - type-fest: 4.28.0 + type-fest: 4.29.1 camelcase@8.0.0: {} @@ -16659,6 +17152,12 @@ snapshots: dependencies: cross-spawn: 7.0.6 + cross-fetch@4.0.0(encoding@0.1.13): + dependencies: + node-fetch: 2.7.0(encoding@0.1.13) + transitivePeerDependencies: + - encoding + cross-spawn@6.0.6: dependencies: nice-try: 1.0.5 @@ -16919,7 +17418,7 @@ snapshots: dependencies: es-define-property: 1.0.0 es-errors: 1.3.0 - gopd: 1.0.1 + gopd: 1.1.0 define-properties@1.2.1: dependencies: @@ -17044,6 +17543,10 @@ snapshots: dependencies: domelementtype: 2.3.0 + dompurify@3.2.2: + optionalDependencies: + '@types/trusted-types': 2.0.7 + domutils@3.1.0: dependencies: dom-serializer: 2.0.0 @@ -17073,11 +17576,12 @@ snapshots: dotenv@9.0.2: {} - drizzle-orm@0.36.4(@opentelemetry/api@1.9.0)(@types/pg@8.11.10)(@types/react@18.3.12)(react@18.3.1): + drizzle-orm@0.36.4(@opentelemetry/api@1.9.0)(@types/pg@8.11.10)(@types/react@18.3.12)(kysely@0.27.4)(react@18.3.1): optionalDependencies: '@opentelemetry/api': 1.9.0 '@types/pg': 8.11.10 '@types/react': 18.3.12 + kysely: 0.27.4 react: 18.3.1 ds-store@0.1.6: @@ -17203,7 +17707,7 @@ snapshots: transitivePeerDependencies: - supports-color - electron-vite@2.3.0(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)): + electron-vite@2.3.0(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)): dependencies: '@babel/core': 7.26.0 '@babel/plugin-transform-arrow-functions': 7.25.9(@babel/core@7.26.0) @@ -17211,7 +17715,7 @@ snapshots: esbuild: 0.21.5 magic-string: 0.30.14 picocolors: 1.1.1 - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) transitivePeerDependencies: - supports-color @@ -17231,7 +17735,7 @@ snapshots: electron@33.2.0: dependencies: '@electron/get': 2.0.3 - '@types/node': 20.17.8 + '@types/node': 20.17.9 extract-zip: 2.0.1 transitivePeerDependencies: - supports-color @@ -17318,9 +17822,9 @@ snapshots: get-intrinsic: 1.2.4 get-symbol-description: 1.0.2 globalthis: 1.0.4 - gopd: 1.0.1 + gopd: 1.1.0 has-property-descriptors: 1.0.2 - has-proto: 1.0.3 + has-proto: 1.1.0 has-symbols: 1.0.3 hasown: 2.0.2 internal-slot: 1.0.7 @@ -17328,9 +17832,9 @@ snapshots: is-callable: 1.2.7 is-data-view: 1.0.1 is-negative-zero: 2.0.3 - is-regex: 1.1.4 + is-regex: 1.2.0 is-shared-array-buffer: 1.0.3 - is-string: 1.0.7 + is-string: 1.1.0 is-typed-array: 1.1.13 is-weakref: 1.0.2 object-inspect: 1.13.3 @@ -17347,7 +17851,7 @@ snapshots: typed-array-byte-offset: 1.0.3 typed-array-length: 1.0.7 unbox-primitive: 1.0.2 - which-typed-array: 1.1.15 + which-typed-array: 1.1.16 es-define-property@1.0.0: dependencies: @@ -17375,7 +17879,7 @@ snapshots: is-date-object: 1.0.5 is-symbol: 1.0.4 - es-toolkit@1.27.0: {} + es-toolkit@1.29.0: {} es6-error@4.1.1: optional: true @@ -17555,46 +18059,46 @@ snapshots: escape-string-regexp@5.0.0: {} - eslint-compat-utils@0.6.3(eslint@9.15.0(jiti@2.3.3)): + eslint-compat-utils@0.6.4(eslint@9.16.0(jiti@2.3.3)): dependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) semver: 7.6.3 - eslint-config-flat-gitignore@0.3.0(eslint@9.15.0(jiti@2.3.3)): + eslint-config-flat-gitignore@0.3.0(eslint@9.16.0(jiti@2.3.3)): dependencies: - '@eslint/compat': 1.2.3(eslint@9.15.0(jiti@2.3.3)) - eslint: 9.15.0(jiti@2.3.3) + '@eslint/compat': 1.2.3(eslint@9.16.0(jiti@2.3.3)) + eslint: 9.16.0(jiti@2.3.3) find-up-simple: 1.0.0 - eslint-config-hyoban@3.1.13(@typescript-eslint/eslint-plugin@8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)))(typescript@5.7.2): + eslint-config-hyoban@3.1.14(@typescript-eslint/eslint-plugin@8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)))(typescript@5.7.2): dependencies: - '@eslint-react/eslint-plugin': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint/js': 9.15.0 - '@stylistic/eslint-plugin': 2.11.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/types': 8.15.0 - '@unocss/eslint-config': 0.64.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/eslint-plugin': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint/js': 9.16.0 + '@stylistic/eslint-plugin': 2.11.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/types': 8.16.0 + '@unocss/eslint-config': 0.64.1(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) defu: 6.1.4 - eslint: 9.15.0(jiti@2.3.3) - eslint-config-flat-gitignore: 0.3.0(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-antfu: 2.7.0(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-command: 0.2.6(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-hyoban: 0.6.1(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-import-x: 4.4.3(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint-plugin-jsonc: 2.18.2(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-package-json: 0.15.6(eslint@9.15.0(jiti@2.3.3))(jsonc-eslint-parser@2.4.0) - eslint-plugin-react-compiler: 19.0.0-beta-a7bf2bd-20241110(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-react-hooks: 5.0.0(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-react-refresh: 0.4.14(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-regexp: 2.7.0(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-simple-import-sort: 12.1.1(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-tailwindcss: 3.17.5(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))) - eslint-plugin-unicorn: 56.0.1(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-unused-imports: 4.1.4(@typescript-eslint/eslint-plugin@8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3)) - globals: 15.12.0 + eslint: 9.16.0(jiti@2.3.3) + eslint-config-flat-gitignore: 0.3.0(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-antfu: 2.7.0(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-command: 0.2.6(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-hyoban: 0.6.1(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-import-x: 4.4.3(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint-plugin-jsonc: 2.18.2(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-package-json: 0.15.6(eslint@9.16.0(jiti@2.3.3))(jsonc-eslint-parser@2.4.0) + eslint-plugin-react-compiler: 19.0.0-beta-df7b47d-20241124(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-react-hooks: 5.0.0(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-react-refresh: 0.4.14(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-regexp: 2.7.0(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-simple-import-sort: 12.1.1(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-tailwindcss: 3.17.5(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))) + eslint-plugin-unicorn: 56.0.1(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-unused-imports: 4.1.4(@typescript-eslint/eslint-plugin@8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3)) + globals: 15.13.0 jsonc-eslint-parser: 2.4.0 local-pkg: 0.5.1 read-package-up: 11.0.0 - typescript-eslint: 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + typescript-eslint: 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: @@ -17611,32 +18115,32 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-json-compat-utils@0.2.1(eslint@9.15.0(jiti@2.3.3))(jsonc-eslint-parser@2.4.0): + eslint-json-compat-utils@0.2.1(eslint@9.16.0(jiti@2.3.3))(jsonc-eslint-parser@2.4.0): dependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) esquery: 1.6.0 jsonc-eslint-parser: 2.4.0 - eslint-plugin-antfu@2.7.0(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-antfu@2.7.0(eslint@9.16.0(jiti@2.3.3)): dependencies: '@antfu/utils': 0.7.10 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) - eslint-plugin-command@0.2.6(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-command@0.2.6(eslint@9.16.0(jiti@2.3.3)): dependencies: '@es-joy/jsdoccomment': 0.48.0 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) - eslint-plugin-hyoban@0.6.1(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-hyoban@0.6.1(eslint@9.16.0(jiti@2.3.3)): dependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) - eslint-plugin-import-x@4.4.3(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + eslint-plugin-import-x@4.4.3(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) debug: 4.3.7 doctrine: 3.0.0 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) eslint-import-resolver-node: 0.3.9 get-tsconfig: 4.8.1 is-glob: 4.0.3 @@ -17648,12 +18152,12 @@ snapshots: - supports-color - typescript - eslint-plugin-jsonc@2.18.2(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-jsonc@2.18.2(eslint@9.16.0(jiti@2.3.3)): dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@9.15.0(jiti@2.3.3)) - eslint: 9.15.0(jiti@2.3.3) - eslint-compat-utils: 0.6.3(eslint@9.15.0(jiti@2.3.3)) - eslint-json-compat-utils: 0.2.1(eslint@9.15.0(jiti@2.3.3))(jsonc-eslint-parser@2.4.0) + '@eslint-community/eslint-utils': 4.4.1(eslint@9.16.0(jiti@2.3.3)) + eslint: 9.16.0(jiti@2.3.3) + eslint-compat-utils: 0.6.4(eslint@9.16.0(jiti@2.3.3)) + eslint-json-compat-utils: 0.2.1(eslint@9.16.0(jiti@2.3.3))(jsonc-eslint-parser@2.4.0) espree: 9.6.1 graphemer: 1.4.0 jsonc-eslint-parser: 2.4.0 @@ -17662,12 +18166,12 @@ snapshots: transitivePeerDependencies: - '@eslint/json' - eslint-plugin-package-json@0.15.6(eslint@9.15.0(jiti@2.3.3))(jsonc-eslint-parser@2.4.0): + eslint-plugin-package-json@0.15.6(eslint@9.16.0(jiti@2.3.3))(jsonc-eslint-parser@2.4.0): dependencies: '@altano/repository-tools': 0.1.1 detect-indent: 6.1.0 detect-newline: 3.1.0 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) jsonc-eslint-parser: 2.4.0 package-json-validator: 0.7.0 semver: 7.6.3 @@ -17675,32 +18179,32 @@ snapshots: sort-package-json: 1.57.0 validate-npm-package-name: 6.0.0 - eslint-plugin-react-compiler@19.0.0-beta-a7bf2bd-20241110(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-react-compiler@19.0.0-beta-df7b47d-20241124(eslint@9.16.0(jiti@2.3.3)): dependencies: '@babel/core': 7.26.0 '@babel/parser': 7.26.2 - '@babel/plugin-proposal-private-methods': 7.18.6(@babel/core@7.26.0) - eslint: 9.15.0(jiti@2.3.3) - hermes-parser: 0.20.1 + '@babel/plugin-transform-private-methods': 7.25.9(@babel/core@7.26.0) + eslint: 9.16.0(jiti@2.3.3) + hermes-parser: 0.25.1 zod: 3.23.8 zod-validation-error: 3.4.0(zod@3.23.8) transitivePeerDependencies: - supports-color - eslint-plugin-react-debug@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + eslint-plugin-react-debug@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/core': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/jsx': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/shared': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/var': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint: 9.15.0(jiti@2.3.3) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/core': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/jsx': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/shared': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/var': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/type-utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) string-ts: 2.2.0 ts-pattern: 5.5.0 optionalDependencies: @@ -17708,146 +18212,146 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-react-dom@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + eslint-plugin-react-dom@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/core': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/jsx': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/shared': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/var': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/core': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/jsx': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/shared': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/var': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) compare-versions: 6.1.1 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) ts-pattern: 5.5.0 optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - eslint-plugin-react-hooks-extra@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + eslint-plugin-react-hooks-extra@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/core': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/jsx': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/shared': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/var': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint: 9.15.0(jiti@2.3.3) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/core': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/jsx': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/shared': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/var': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/type-utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) ts-pattern: 5.5.0 optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - eslint-plugin-react-hooks@5.0.0(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-react-hooks@5.0.0(eslint@9.16.0(jiti@2.3.3)): dependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) - eslint-plugin-react-naming-convention@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + eslint-plugin-react-naming-convention@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/core': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/jsx': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/shared': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint: 9.15.0(jiti@2.3.3) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/core': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/jsx': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/shared': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/type-utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) ts-pattern: 5.5.0 optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - eslint-plugin-react-refresh@0.4.14(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-react-refresh@0.4.14(eslint@9.16.0(jiti@2.3.3)): dependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) - eslint-plugin-react-web-api@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + eslint-plugin-react-web-api@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/core': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/jsx': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/shared': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/var': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/core': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/jsx': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/shared': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/var': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) birecord: 0.1.1 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) ts-pattern: 5.5.0 optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - eslint-plugin-react-x@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + eslint-plugin-react-x@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/core': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/jsx': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/shared': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/var': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/core': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/jsx': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/shared': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/var': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/type-utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) compare-versions: 6.1.1 - eslint: 9.15.0(jiti@2.3.3) - is-immutable-type: 5.0.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) + is-immutable-type: 5.0.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) ts-pattern: 5.5.0 optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - eslint-plugin-regexp@2.7.0(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-regexp@2.7.0(eslint@9.16.0(jiti@2.3.3)): dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@9.15.0(jiti@2.3.3)) + '@eslint-community/eslint-utils': 4.4.1(eslint@9.16.0(jiti@2.3.3)) '@eslint-community/regexpp': 4.12.1 comment-parser: 1.4.1 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) jsdoc-type-pratt-parser: 4.1.0 refa: 0.12.1 regexp-ast-analysis: 0.7.1 scslre: 0.3.0 - eslint-plugin-simple-import-sort@12.1.1(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-simple-import-sort@12.1.1(eslint@9.16.0(jiti@2.3.3)): dependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) - eslint-plugin-tailwindcss@3.17.5(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))): + eslint-plugin-tailwindcss@3.17.5(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))): dependencies: fast-glob: 3.3.2 postcss: 8.4.49 - tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) - eslint-plugin-unicorn@56.0.1(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-unicorn@56.0.1(eslint@9.16.0(jiti@2.3.3)): dependencies: '@babel/helper-validator-identifier': 7.25.9 - '@eslint-community/eslint-utils': 4.4.1(eslint@9.15.0(jiti@2.3.3)) + '@eslint-community/eslint-utils': 4.4.1(eslint@9.16.0(jiti@2.3.3)) ci-info: 4.1.0 clean-regexp: 1.0.0 core-js-compat: 3.39.0 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) esquery: 1.6.0 - globals: 15.12.0 + globals: 15.13.0 indent-string: 4.0.0 is-builtin-module: 3.2.1 jsesc: 3.0.2 @@ -17858,11 +18362,11 @@ snapshots: semver: 7.6.3 strip-indent: 3.0.0 - eslint-plugin-unused-imports@4.1.4(@typescript-eslint/eslint-plugin@8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-unused-imports@4.1.4(@typescript-eslint/eslint-plugin@8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3)): dependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) optionalDependencies: - '@typescript-eslint/eslint-plugin': 8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/eslint-plugin': 8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) eslint-scope@8.2.0: dependencies: @@ -17873,14 +18377,14 @@ snapshots: eslint-visitor-keys@4.2.0: {} - eslint@9.15.0(jiti@2.3.3): + eslint@9.16.0(jiti@2.3.3): dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@9.15.0(jiti@2.3.3)) + '@eslint-community/eslint-utils': 4.4.1(eslint@9.16.0(jiti@2.3.3)) '@eslint-community/regexpp': 4.12.1 '@eslint/config-array': 0.19.0 '@eslint/core': 0.9.0 '@eslint/eslintrc': 3.2.0 - '@eslint/js': 9.15.0 + '@eslint/js': 9.16.0 '@eslint/plugin-kit': 0.2.3 '@humanfs/node': 0.16.6 '@humanwhocodes/module-importer': 1.0.1 @@ -18234,7 +18738,7 @@ snapshots: fraction.js@4.3.7: {} - framer-motion@11.11.17(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + framer-motion@11.12.0(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: tslib: 2.8.1 optionalDependencies: @@ -18288,6 +18792,9 @@ snapshots: dependencies: minipass: 3.3.6 + fs-monkey@1.0.6: + optional: true + fs-temp@1.2.1: dependencies: random-path: 0.1.2 @@ -18377,7 +18884,7 @@ snapshots: dependencies: es-errors: 1.3.0 function-bind: 1.1.2 - has-proto: 1.0.3 + has-proto: 1.1.0 has-symbols: 1.0.3 hasown: 2.0.2 @@ -18528,12 +19035,12 @@ snapshots: globals@14.0.0: {} - globals@15.12.0: {} + globals@15.13.0: {} globalthis@1.0.4: dependencies: define-properties: 1.2.1 - gopd: 1.0.1 + gopd: 1.1.0 globby@10.0.0: dependencies: @@ -18548,7 +19055,7 @@ snapshots: globrex@0.1.2: {} - gopd@1.0.1: + gopd@1.1.0: dependencies: get-intrinsic: 1.2.4 @@ -18579,7 +19086,7 @@ snapshots: optionalDependencies: uglify-js: 3.19.3 - happy-dom@15.11.6: + happy-dom@15.11.7: dependencies: entities: 4.5.0 webidl-conversions: 7.0.0 @@ -18593,7 +19100,9 @@ snapshots: dependencies: es-define-property: 1.0.0 - has-proto@1.0.3: {} + has-proto@1.1.0: + dependencies: + call-bind: 1.0.7 has-symbols@1.0.3: {} @@ -18798,11 +19307,11 @@ snapshots: property-information: 6.5.0 space-separated-tokens: 2.0.2 - hermes-estree@0.20.1: {} + hermes-estree@0.25.1: {} - hermes-parser@0.20.1: + hermes-parser@0.25.1: dependencies: - hermes-estree: 0.20.1 + hermes-estree: 0.25.1 hex-rgb@4.3.0: {} @@ -18820,8 +19329,6 @@ snapshots: dependencies: parse-passwd: 1.0.0 - hono@4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24): {} - hono@4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24): {} hosted-git-info@2.8.9: {} @@ -19023,6 +19530,8 @@ snapshots: ipaddr.js@1.9.1: {} + ipaddr.js@2.2.0: {} + is-alphabetical@2.0.1: {} is-alphanumerical@2.0.1: @@ -19051,7 +19560,7 @@ snapshots: dependencies: binary-extensions: 2.3.0 - is-boolean-object@1.1.2: + is-boolean-object@1.2.0: dependencies: call-bind: 1.0.7 has-tostringtag: 1.0.2 @@ -19100,12 +19609,12 @@ snapshots: is-hexadecimal@2.0.1: {} - is-immutable-type@5.0.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + is-immutable-type@5.0.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint: 9.15.0(jiti@2.3.3) - ts-api-utils: 1.4.0(typescript@5.7.2) - ts-declaration-location: 1.0.4(typescript@5.7.2) + '@typescript-eslint/type-utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) + ts-api-utils: 1.4.3(typescript@5.7.2) + ts-declaration-location: 1.0.5(typescript@5.7.2) typescript: 5.7.2 transitivePeerDependencies: - supports-color @@ -19134,8 +19643,9 @@ snapshots: is-negative-zero@2.0.3: {} - is-number-object@1.0.7: + is-number-object@1.1.0: dependencies: + call-bind: 1.0.7 has-tostringtag: 1.0.2 is-number@7.0.0: {} @@ -19155,10 +19665,12 @@ snapshots: is-property@1.0.2: optional: true - is-regex@1.1.4: + is-regex@1.2.0: dependencies: call-bind: 1.0.7 + gopd: 1.1.0 has-tostringtag: 1.0.2 + hasown: 2.0.2 is-regexp@1.0.0: {} @@ -19174,8 +19686,9 @@ snapshots: is-stream@3.0.0: {} - is-string@1.0.7: + is-string@1.1.0: dependencies: + call-bind: 1.0.7 has-tostringtag: 1.0.2 is-symbol@1.0.4: @@ -19184,7 +19697,7 @@ snapshots: is-typed-array@1.1.13: dependencies: - which-typed-array: 1.1.15 + which-typed-array: 1.1.16 is-unicode-supported@0.1.0: {} @@ -19372,6 +19885,8 @@ snapshots: kose-font@1.0.0: {} + kysely@0.27.4: {} + lazy-val@1.0.5: {} lazystream@1.0.1: @@ -19625,7 +20140,7 @@ snapshots: nan: 2.22.0 optional: true - magic-string-ast@0.6.2: + magic-string-ast@0.6.3: dependencies: magic-string: 0.30.14 @@ -19665,7 +20180,7 @@ snapshots: minipass-fetch: 2.1.2 minipass-flush: 1.0.5 minipass-pipeline: 1.2.4 - negotiator: 0.6.3 + negotiator: 0.6.4 promise-retry: 2.0.1 socks-proxy-agent: 7.0.0 ssri: 9.0.1 @@ -19883,6 +20398,16 @@ snapshots: mimic-fn: 2.1.0 p-is-promise: 2.1.0 + memfs-browser@3.5.10302: + dependencies: + memfs: 3.5.3 + optional: true + + memfs@3.5.3: + dependencies: + fs-monkey: 1.0.6 + optional: true + meow@13.2.0: {} merge-stream@2.0.0: {} @@ -20251,6 +20776,8 @@ snapshots: nanoid@5.0.9: {} + nanostores@0.11.3: {} + napi-build-utils@1.0.2: {} natural-compare@1.4.0: {} @@ -20264,7 +20791,7 @@ snapshots: - conventional-commits-filter - magicast - negotiator@0.6.3: {} + negotiator@0.6.4: {} neo-async@2.6.2: {} @@ -20434,11 +20961,11 @@ snapshots: dependencies: mimic-function: 5.0.1 - oniguruma-to-es@0.4.1: + oniguruma-to-es@0.7.0: dependencies: emoji-regex-xs: 1.0.0 regex: 5.0.2 - regex-recursion: 4.2.1 + regex-recursion: 4.3.0 optionator@0.9.4: dependencies: @@ -20461,6 +20988,11 @@ snapshots: strip-ansi: 6.0.1 wcwidth: 1.0.1 + oslo@1.2.1: + dependencies: + '@node-rs/argon2': 1.7.0 + '@node-rs/bcrypt': 1.9.0 + overlap-area@1.1.0: dependencies: '@daybrush/utils': 1.13.0 @@ -20575,7 +21107,7 @@ snapshots: dependencies: '@babel/code-frame': 7.26.2 index-to-position: 0.1.2 - type-fest: 4.28.0 + type-fest: 4.29.1 parse-ms@2.1.0: {} @@ -20733,9 +21265,9 @@ snapshots: mlly: 1.7.3 pathe: 1.1.2 - plain-shiki@0.0.12(shiki@1.23.1): + plain-shiki@0.0.12(shiki@1.24.0): dependencies: - shiki: 1.23.1 + shiki: 1.24.0 playwright-core@1.49.0: {} @@ -20806,13 +21338,13 @@ snapshots: camelcase-css: 2.0.1 postcss: 8.4.49 - postcss-load-config@4.0.2(postcss@8.4.49)(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)): + postcss-load-config@4.0.2(postcss@8.4.49)(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)): dependencies: lilconfig: 3.1.2 yaml: 2.6.1 optionalDependencies: postcss: 8.4.49 - ts-node: 10.9.1(@types/node@22.10.0)(typescript@5.7.2) + ts-node: 10.9.1(@types/node@22.10.1)(typescript@5.7.2) postcss-load-config@6.0.1(jiti@2.3.3)(postcss@8.4.49)(tsx@4.19.2)(yaml@2.6.1): dependencies: @@ -21054,7 +21586,7 @@ snapshots: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 22.10.0 + '@types/node': 22.10.1 long: 5.2.3 proxy-addr@2.0.7: @@ -21084,6 +21616,12 @@ snapshots: dependencies: escape-goat: 4.0.0 + pvtsutils@1.3.6: + dependencies: + tslib: 2.8.1 + + pvutils@1.1.3: {} + queue-microtask@1.2.3: {} queue-tick@1.0.1: {} @@ -21118,11 +21656,11 @@ snapshots: iconv-lite: 0.6.3 unpipe: 1.0.0 - rc-modal-sheet@0.3.2(@radix-ui/react-dialog@1.1.2(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(clsx@2.1.1)(framer-motion@11.11.17(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(tailwind-merge@2.5.5)(vaul@1.1.1(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)): + rc-modal-sheet@0.3.2(@radix-ui/react-dialog@1.1.2(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(clsx@2.1.1)(framer-motion@11.12.0(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(tailwind-merge@2.5.5)(vaul@1.1.1(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)): dependencies: '@radix-ui/react-dialog': 1.1.2(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) clsx: 2.1.1 - framer-motion: 11.11.17(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + framer-motion: 11.12.0(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) tailwind-merge: 2.5.5 vaul: 1.1.1(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -21173,7 +21711,7 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - react-i18next@15.1.2(i18next@24.0.2(typescript@5.7.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + react-i18next@15.1.3(i18next@24.0.2(typescript@5.7.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@babel/runtime': 7.26.0 html-parse-stringify: 3.0.1 @@ -21233,7 +21771,7 @@ snapshots: optionalDependencies: react-dom: 18.3.1(react@18.3.1) - react-scan@0.0.33: + react-scan@0.0.35: dependencies: '@clack/core': 0.3.5 '@clack/prompts': 0.8.2 @@ -21261,11 +21799,6 @@ snapshots: optionalDependencies: '@types/react': 18.3.12 - react-virtuoso@4.12.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1): - dependencies: - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - react-zoom-pan-pinch@3.6.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: react: 18.3.1 @@ -21298,7 +21831,7 @@ snapshots: dependencies: find-up-simple: 1.0.0 read-pkg: 9.0.1 - type-fest: 4.28.0 + type-fest: 4.29.1 read-pkg-up@2.0.0: dependencies: @@ -21329,7 +21862,7 @@ snapshots: '@types/normalize-package-data': 2.4.4 normalize-package-data: 6.0.2 parse-json: 8.1.0 - type-fest: 4.28.0 + type-fest: 4.29.1 unicorn-magic: 0.1.0 readable-stream@2.3.8: @@ -21379,7 +21912,7 @@ snapshots: es-abstract: 1.23.5 es-errors: 1.3.0 get-intrinsic: 1.2.4 - gopd: 1.0.1 + gopd: 1.1.0 which-builtin-type: 1.2.0 regenerate-unicode-properties@10.2.0: @@ -21394,7 +21927,7 @@ snapshots: dependencies: '@babel/runtime': 7.26.0 - regex-recursion@4.2.1: + regex-recursion@4.3.0: dependencies: regex-utilities: 2.3.0 @@ -21635,30 +22168,32 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - rollup@4.27.4: + rollup@4.28.0: dependencies: '@types/estree': 1.0.6 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.27.4 - '@rollup/rollup-android-arm64': 4.27.4 - '@rollup/rollup-darwin-arm64': 4.27.4 - '@rollup/rollup-darwin-x64': 4.27.4 - '@rollup/rollup-freebsd-arm64': 4.27.4 - '@rollup/rollup-freebsd-x64': 4.27.4 - '@rollup/rollup-linux-arm-gnueabihf': 4.27.4 - '@rollup/rollup-linux-arm-musleabihf': 4.27.4 - '@rollup/rollup-linux-arm64-gnu': 4.27.4 - '@rollup/rollup-linux-arm64-musl': 4.27.4 - '@rollup/rollup-linux-powerpc64le-gnu': 4.27.4 - '@rollup/rollup-linux-riscv64-gnu': 4.27.4 - '@rollup/rollup-linux-s390x-gnu': 4.27.4 - '@rollup/rollup-linux-x64-gnu': 4.27.4 - '@rollup/rollup-linux-x64-musl': 4.27.4 - '@rollup/rollup-win32-arm64-msvc': 4.27.4 - '@rollup/rollup-win32-ia32-msvc': 4.27.4 - '@rollup/rollup-win32-x64-msvc': 4.27.4 + '@rollup/rollup-android-arm-eabi': 4.28.0 + '@rollup/rollup-android-arm64': 4.28.0 + '@rollup/rollup-darwin-arm64': 4.28.0 + '@rollup/rollup-darwin-x64': 4.28.0 + '@rollup/rollup-freebsd-arm64': 4.28.0 + '@rollup/rollup-freebsd-x64': 4.28.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.28.0 + '@rollup/rollup-linux-arm-musleabihf': 4.28.0 + '@rollup/rollup-linux-arm64-gnu': 4.28.0 + '@rollup/rollup-linux-arm64-musl': 4.28.0 + '@rollup/rollup-linux-powerpc64le-gnu': 4.28.0 + '@rollup/rollup-linux-riscv64-gnu': 4.28.0 + '@rollup/rollup-linux-s390x-gnu': 4.28.0 + '@rollup/rollup-linux-x64-gnu': 4.28.0 + '@rollup/rollup-linux-x64-musl': 4.28.0 + '@rollup/rollup-win32-arm64-msvc': 4.28.0 + '@rollup/rollup-win32-ia32-msvc': 4.28.0 + '@rollup/rollup-win32-x64-msvc': 4.28.0 fsevents: 2.3.3 + rou3@0.5.1: {} + run-parallel@1.2.0: dependencies: queue-microtask: 1.2.3 @@ -21678,7 +22213,7 @@ snapshots: dependencies: call-bind: 1.0.7 es-errors: 1.3.0 - is-regex: 1.1.4 + is-regex: 1.2.0 safe-regex2@4.0.0: dependencies: @@ -21767,7 +22302,7 @@ snapshots: es-errors: 1.3.0 function-bind: 1.1.2 get-intrinsic: 1.2.4 - gopd: 1.0.1 + gopd: 1.1.0 has-property-descriptors: 1.0.2 set-function-name@2.0.2: @@ -21821,12 +22356,12 @@ snapshots: interpret: 1.4.0 rechoir: 0.6.2 - shiki@1.23.1: + shiki@1.24.0: dependencies: - '@shikijs/core': 1.23.1 - '@shikijs/engine-javascript': 1.23.1 - '@shikijs/engine-oniguruma': 1.23.1 - '@shikijs/types': 1.23.1 + '@shikijs/core': 1.24.0 + '@shikijs/engine-javascript': 1.24.0 + '@shikijs/engine-oniguruma': 1.24.0 + '@shikijs/types': 1.24.0 '@shikijs/vscode-textmate': 9.3.0 '@types/hast': 3.0.4 @@ -22035,7 +22570,7 @@ snapshots: es-errors: 1.3.0 es-object-atoms: 1.0.0 get-intrinsic: 1.2.4 - gopd: 1.0.1 + gopd: 1.1.0 has-symbols: 1.0.3 internal-slot: 1.0.7 regexp.prototype.flags: 1.5.3 @@ -22171,19 +22706,19 @@ snapshots: tailwind-merge@2.5.5: {} - tailwindcss-animate@1.0.7(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))): + tailwindcss-animate@1.0.7(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))): dependencies: - tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) - tailwindcss-motion@0.4.3-beta(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))): + tailwindcss-motion@0.4.3-beta(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))): dependencies: - tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) - tailwindcss-safe-area@0.6.0(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))): + tailwindcss-safe-area@0.6.0(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))): dependencies: - tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) - tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)): + tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)): dependencies: '@alloc/quick-lru': 5.2.0 arg: 5.0.2 @@ -22202,7 +22737,7 @@ snapshots: postcss: 8.4.49 postcss-import: 15.1.0(postcss@8.4.49) postcss-js: 4.0.1(postcss@8.4.49) - postcss-load-config: 4.0.2(postcss@8.4.49)(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + postcss-load-config: 4.0.2(postcss@8.4.49)(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) postcss-nested: 6.2.0(postcss@8.4.49) postcss-selector-parser: 6.1.2 resolve: 1.22.8 @@ -22333,11 +22868,11 @@ snapshots: tinyspy@3.0.2: {} - tldts-core@6.1.64: {} + tldts-core@6.1.65: {} - tldts@6.1.64: + tldts@6.1.65: dependencies: - tldts-core: 6.1.64 + tldts-core: 6.1.65 tmp-promise@3.0.3: dependencies: @@ -22391,11 +22926,11 @@ snapshots: dependencies: utf8-byte-length: 1.0.5 - ts-api-utils@1.4.0(typescript@5.7.2): + ts-api-utils@1.4.3(typescript@5.7.2): dependencies: typescript: 5.7.2 - ts-declaration-location@1.0.4(typescript@5.7.2): + ts-declaration-location@1.0.5(typescript@5.7.2): dependencies: minimatch: 10.0.1 typescript: 5.7.2 @@ -22425,14 +22960,14 @@ snapshots: v8-compile-cache-lib: 3.0.1 yn: 3.1.1 - ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2): + ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 22.10.0 + '@types/node': 22.10.1 acorn: 8.14.0 acorn-walk: 8.3.4 arg: 4.1.3 @@ -22466,7 +23001,7 @@ snapshots: picocolors: 1.1.1 postcss-load-config: 6.0.1(jiti@2.3.3)(postcss@8.4.49)(tsx@4.19.2)(yaml@2.6.1) resolve-from: 5.0.0 - rollup: 4.27.4 + rollup: 4.28.0 source-map: 0.8.0-beta.0 sucrase: 3.35.0 tinyexec: 0.3.1 @@ -22536,7 +23071,7 @@ snapshots: type-fest@1.4.0: {} - type-fest@4.28.0: {} + type-fest@4.29.1: {} typed-array-buffer@1.0.2: dependencies: @@ -22548,8 +23083,8 @@ snapshots: dependencies: call-bind: 1.0.7 for-each: 0.3.3 - gopd: 1.0.1 - has-proto: 1.0.3 + gopd: 1.1.0 + has-proto: 1.1.0 is-typed-array: 1.1.13 typed-array-byte-offset@1.0.3: @@ -22557,8 +23092,8 @@ snapshots: available-typed-arrays: 1.0.7 call-bind: 1.0.7 for-each: 0.3.3 - gopd: 1.0.1 - has-proto: 1.0.3 + gopd: 1.1.0 + has-proto: 1.1.0 is-typed-array: 1.1.13 reflect.getprototypeof: 1.0.7 @@ -22566,17 +23101,17 @@ snapshots: dependencies: call-bind: 1.0.7 for-each: 0.3.3 - gopd: 1.0.1 + gopd: 1.1.0 is-typed-array: 1.1.13 possible-typed-array-names: 1.0.0 reflect.getprototypeof: 1.0.7 - typescript-eslint@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + typescript-eslint@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@typescript-eslint/eslint-plugin': 8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/parser': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint: 9.15.0(jiti@2.3.3) + '@typescript-eslint/eslint-plugin': 8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/parser': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: @@ -22619,6 +23154,8 @@ snapshots: transitivePeerDependencies: - supports-color + uncrypto@0.1.3: {} + undici-types@6.19.8: {} undici-types@6.20.0: {} @@ -22715,17 +23252,16 @@ snapshots: unpipe@1.0.0: {} - unplugin-ast@0.11.0(rollup@2.79.2)(webpack-sources@3.2.3): + unplugin-ast@0.12.0(rollup@2.79.2): dependencies: '@antfu/utils': 0.7.10 '@babel/generator': 7.26.2 '@rollup/pluginutils': 5.1.3(rollup@2.79.2) - ast-kit: 1.3.1 - magic-string-ast: 0.6.2 - unplugin: 1.15.0(webpack-sources@3.2.3) + ast-kit: 1.3.2 + magic-string-ast: 0.6.3 + unplugin: 2.0.0-beta.1 transitivePeerDependencies: - rollup - - webpack-sources unplugin@1.0.1: dependencies: @@ -22734,12 +23270,10 @@ snapshots: webpack-sources: 3.2.3 webpack-virtual-modules: 0.5.0 - unplugin@1.15.0(webpack-sources@3.2.3): + unplugin@2.0.0-beta.1: dependencies: acorn: 8.14.0 webpack-virtual-modules: 0.6.2 - optionalDependencies: - webpack-sources: 3.2.3 unused-filename@4.0.1: dependencies: @@ -22857,15 +23391,15 @@ snapshots: '@types/unist': 3.0.3 vfile-message: 4.0.2 - vite-bundle-analyzer@0.14.3: {} + vite-bundle-analyzer@0.15.2: {} - vite-node@2.1.6(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1): + vite-node@2.1.6(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1): dependencies: cac: 6.7.14 debug: 4.3.7 es-module-lexer: 1.5.4 pathe: 1.1.2 - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) transitivePeerDependencies: - '@types/node' - jiti @@ -22880,22 +23414,22 @@ snapshots: - tsx - yaml - vite-plugin-mkcert@1.17.6(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)): + vite-plugin-mkcert@1.17.6(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)): dependencies: '@octokit/rest': 20.1.1 axios: 1.7.7(debug@4.3.7) debug: 4.3.7 picocolors: 1.1.1 - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) transitivePeerDependencies: - supports-color - vite-plugin-pwa@0.21.0(@vite-pwa/assets-generator@0.2.6)(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))(workbox-build@7.3.0(@types/babel__core@7.20.5))(workbox-window@7.3.0): + vite-plugin-pwa@0.21.1(@vite-pwa/assets-generator@0.2.6)(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))(workbox-build@7.3.0(@types/babel__core@7.20.5))(workbox-window@7.3.0): dependencies: debug: 4.3.7 pretty-bytes: 6.1.1 tinyglobby: 0.2.10 - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) workbox-build: 7.3.0(@types/babel__core@7.20.5) workbox-window: 7.3.0 optionalDependencies: @@ -22903,24 +23437,24 @@ snapshots: transitivePeerDependencies: - supports-color - vite-tsconfig-paths@5.1.3(typescript@5.7.2)(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)): + vite-tsconfig-paths@5.1.3(typescript@5.7.2)(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)): dependencies: debug: 4.3.7 globrex: 0.1.2 tsconfck: 3.1.4(typescript@5.7.2) optionalDependencies: - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) transitivePeerDependencies: - supports-color - typescript - vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1): + vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1): dependencies: esbuild: 0.24.0 postcss: 8.4.49 - rollup: 4.27.4 + rollup: 4.28.0 optionalDependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 fsevents: 2.3.3 jiti: 2.3.3 lightningcss: 1.28.2 @@ -22928,10 +23462,10 @@ snapshots: tsx: 4.19.2 yaml: 2.6.1 - vitest@2.1.6(@edge-runtime/vm@3.2.0)(@types/node@22.10.0)(happy-dom@15.11.6)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1): + vitest@2.1.6(@edge-runtime/vm@3.2.0)(@types/node@22.10.1)(happy-dom@15.11.7)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1): dependencies: '@vitest/expect': 2.1.6 - '@vitest/mocker': 2.1.6(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) + '@vitest/mocker': 2.1.6(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) '@vitest/pretty-format': 2.1.6 '@vitest/runner': 2.1.6 '@vitest/snapshot': 2.1.6 @@ -22947,13 +23481,13 @@ snapshots: tinyexec: 0.3.1 tinypool: 1.0.2 tinyrainbow: 1.2.0 - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) - vite-node: 2.1.6(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite-node: 2.1.6(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) why-is-node-running: 2.3.0 optionalDependencies: '@edge-runtime/vm': 3.2.0 - '@types/node': 22.10.0 - happy-dom: 15.11.6 + '@types/node': 22.10.1 + happy-dom: 15.11.7 transitivePeerDependencies: - jiti - less @@ -23030,9 +23564,9 @@ snapshots: which-boxed-primitive@1.0.2: dependencies: is-bigint: 1.0.4 - is-boolean-object: 1.1.2 - is-number-object: 1.0.7 - is-string: 1.0.7 + is-boolean-object: 1.2.0 + is-number-object: 1.1.0 + is-string: 1.1.0 is-symbol: 1.0.4 which-builtin-type@1.2.0: @@ -23044,12 +23578,12 @@ snapshots: is-date-object: 1.0.5 is-finalizationregistry: 1.1.0 is-generator-function: 1.0.10 - is-regex: 1.1.4 + is-regex: 1.2.0 is-weakref: 1.0.2 isarray: '@nolyfill/isarray@1.0.29' which-boxed-primitive: 1.0.2 which-collection: 1.0.2 - which-typed-array: 1.1.15 + which-typed-array: 1.1.16 which-collection@1.0.2: dependencies: @@ -23058,12 +23592,12 @@ snapshots: is-weakmap: 2.0.2 is-weakset: 2.0.3 - which-typed-array@1.1.15: + which-typed-array@1.1.16: dependencies: available-typed-arrays: 1.0.7 call-bind: 1.0.7 for-each: 0.3.3 - gopd: 1.0.1 + gopd: 1.1.0 has-tostringtag: 1.0.2 which@1.3.1: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 22b93735d..3ff5faaaf 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,6 +1,3 @@ packages: - "apps/*" - "packages/*" - -catalog: - es-toolkit: ^1.27.0 diff --git a/types/authjs.d.ts b/types/authjs.d.ts deleted file mode 100644 index e6a3b4360..000000000 --- a/types/authjs.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -declare module "@auth/core/types" { - interface User { - handle?: string | null - - id: string - name: string - email: string - emailVerified: null - image: string - handle: null - createdAt: string - } - - interface Session { - user: User - role: "user" | "trial" - } -} diff --git a/vite.config.ts b/vite.config.ts index c38b1f650..5a1ebdd86 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,3 +1,4 @@ +import { existsSync, readFileSync, writeFileSync } from "node:fs" import { resolve } from "node:path" import { fileURLToPath } from "node:url" @@ -5,7 +6,7 @@ import legacy from "@vitejs/plugin-legacy" import { minify as htmlMinify } from "html-minifier-terser" import { cyan, dim, green } from "kolorist" import { parseHTML } from "linkedom" -import type { PluginOption, ViteDevServer } from "vite" +import type { PluginOption, ResolvedConfig, ViteDevServer } from "vite" import { defineConfig, loadEnv } from "vite" import { analyzer } from "vite-bundle-analyzer" import mkcert from "vite-plugin-mkcert" @@ -57,7 +58,6 @@ export default ({ mode }) => { rollupOptions: { input: { main: resolve(ROOT, "/index.html"), - __debug_proxy: resolve(ROOT, "/__debug_proxy.html"), }, }, }, @@ -134,6 +134,7 @@ export default ({ mode }) => { globPatterns: [ "**/*.{js,json,css,html,txt,svg,png,ico,webp,woff,woff2,ttf,eot,otf,wasm}", ], + manifestTransforms: [ (manifest) => { return { @@ -287,10 +288,29 @@ function checkBrowserSupport() { } } -const htmlPlugin: (env: any) => PluginOption = () => { +const htmlPlugin: (env: any) => PluginOption = (env) => { + let config: ResolvedConfig return { name: "html-transform", + configResolved(resolvedConfig) { + config = resolvedConfig + }, enforce: "post", + closeBundle() { + const { root } = config + const dist = config.build.outDir + const debugProxyHtml = resolve(root, "debug_proxy.html") + + if (existsSync(debugProxyHtml)) { + const content = readFileSync(debugProxyHtml, "utf-8") + + writeFileSync( + resolve(dist, "__debug_proxy.html"), + + content.replace("import.meta.env.VITE_API_URL", `"${env.VITE_API_URL}"`), + ) + } + }, transformIndexHtml(html) { return htmlMinify( html.replace(