From c8ce0c83a33789432c5f1bbacb73fd112b046b0e Mon Sep 17 00:00:00 2001 From: Tommaso Casaburi Date: Mon, 27 Apr 2026 13:46:41 +0700 Subject: [PATCH 1/5] chore(deps): switch to @bitsocial/bitsocial-react-hooks@0.1.2 - Drop the @bitsocialnet/bitsocial-react-hooks tarball install in favor of the canonical @bitsocial/bitsocial-react-hooks@0.1.2 from npm. - Remove kubo direct dep (now bundled inside pkc-js via the hooks). - Bump i18next 23 -> 25, react-i18next 13 -> 16, i18next-http-backend 2 -> 3, @vitejs/plugin-react 4 -> 6 to match 5chan. - Remove the obsolete scripts/patch-bitsocial-react-hooks-esm.cjs postinstall hook (only patched the old tarball layout). - Update AGENTS.md package scope reference. --- AGENTS.md | 4 +- package.json | 12 +- scripts/patch-bitsocial-react-hooks-esm.cjs | 164 -- src/AGENTS.md | 2 +- yarn.lock | 1970 +++---------------- 5 files changed, 318 insertions(+), 1834 deletions(-) delete mode 100644 scripts/patch-bitsocial-react-hooks-esm.cjs diff --git a/AGENTS.md b/AGENTS.md index 64fe4541..e8f6fefb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -47,7 +47,7 @@ seedit is a serverless, adminless, decentralized Reddit-style client built on th - Zustand for shared state - React Router v6 - Vite -- `@bitsocialnet/bitsocial-react-hooks` +- `@bitsocial/bitsocial-react-hooks` - i18next - Corepack-managed Yarn 4 - oxlint @@ -77,7 +77,7 @@ src/ ### React Architecture Rules - Do not use `useState` for shared/global state. Use Zustand stores in `src/stores/`. -- Do not use `useEffect` for data fetching. Use `@bitsocialnet/bitsocial-react-hooks`. +- Do not use `useEffect` for data fetching. Use `@bitsocial/bitsocial-react-hooks`. - Do not sync derived state with effects. Compute during render. - Avoid copy-paste logic across components. Extract custom hooks in `src/hooks/`. - Avoid boolean flag soup for complex flows; model state clearly in Zustand. diff --git a/package.json b/package.json index 30d9f6fb..e618e519 100755 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "private": true, "packageManager": "yarn@4.13.0", "dependencies": { - "@bitsocialnet/bitsocial-react-hooks": "https://codeload.github.com/bitsocialnet/bitsocial-react-hooks/tar.gz/dcfaeaccefc0b9de90ef37c44885ac005eef429a", + "@bitsocial/bitsocial-react-hooks": "0.1.2", "@capacitor/app": "7.0.1", "@capacitor/filesystem": "7.1.4", "@capacitor/local-notifications": "7.0.1", @@ -30,11 +30,10 @@ "fs-extra": "11.2.0", "gifuct-js": "2.1.2", "http-proxy": "1.18.1", - "i18next": "23.5.1", + "i18next": "25.10.9", "i18next-browser-languagedetector": "7.1.0", - "i18next-http-backend": "2.2.2", + "i18next-http-backend": "3.0.5", "json-stringify-pretty-compact": "4.0.0", - "kubo": "0.39.0", "lodash": "4.18.0", "memoizee": "0.4.15", "node-fetch": "2", @@ -42,7 +41,7 @@ "react-ace": "14.0.1", "react-dom": "19.1.2", "react-dropzone": "14.3.8", - "react-i18next": "13.2.2", + "react-i18next": "16.6.6", "react-markdown": "10.1.0", "react-router-dom": "6.30.2", "react-router-hash-link": "2.4.3", @@ -56,7 +55,6 @@ "zustand": "4.4.3" }, "scripts": { - "postinstall": "node scripts/patch-bitsocial-react-hooks-esm.cjs", "start": "node scripts/start-dev.js", "build": "cross-env NODE_ENV=production PUBLIC_URL=./ GENERATE_SOURCEMAP=false vite build", "build:preload": "cross-env NODE_ENV=production vite build --config electron/vite.preload.config.js", @@ -114,7 +112,7 @@ "@types/memoizee": "0.4.9", "@types/node-fetch": "2", "@typescript/native-preview": "7.0.0-dev.20260115.1", - "@vitejs/plugin-react": "4.3.4", + "@vitejs/plugin-react": "6.0.0", "assert": "2.1.0", "babel-plugin-react-compiler": "1.0.0", "buffer": "6.0.3", diff --git a/scripts/patch-bitsocial-react-hooks-esm.cjs b/scripts/patch-bitsocial-react-hooks-esm.cjs deleted file mode 100644 index 12cad216..00000000 --- a/scripts/patch-bitsocial-react-hooks-esm.cjs +++ /dev/null @@ -1,164 +0,0 @@ -#!/usr/bin/env node - -const fs = require('fs'); -const path = require('path'); - -const packageDistPath = path.join(__dirname, '..', 'node_modules', '@bitsocialnet', 'bitsocial-react-hooks', 'dist'); -const logPrefix = '[patch-bitsocial-react-hooks-esm]'; - -if (!fs.existsSync(packageDistPath)) { - console.log(`${logPrefix} Skip: @bitsocialnet/bitsocial-react-hooks dist not found.`); - process.exit(0); -} - -const relativeImportPattern = /(from\s+|import\s+)(['"])(\.\.?\/[^'"]+)\2/g; -let touchedFiles = 0; -let rewrittenImports = 0; -let appliedHardeningPatches = 0; - -const splitSpecifier = (specifier) => { - const suffixStart = specifier.search(/[?#]/); - - if (suffixStart === -1) { - return { bareSpecifier: specifier, suffix: '' }; - } - - return { - bareSpecifier: specifier.slice(0, suffixStart), - suffix: specifier.slice(suffixStart), - }; -}; - -const resolveSpecifier = (filePath, specifier) => { - const { bareSpecifier, suffix } = splitSpecifier(specifier); - - if (path.extname(bareSpecifier)) { - return null; - } - - const absoluteSpecifierPath = path.resolve(path.dirname(filePath), bareSpecifier); - - if (fs.existsSync(`${absoluteSpecifierPath}.js`)) { - return `${bareSpecifier}.js${suffix}`; - } - - if (fs.existsSync(path.join(absoluteSpecifierPath, 'index.js'))) { - return `${bareSpecifier}/index.js${suffix}`; - } - - return null; -}; - -const patchFile = (filePath) => { - const source = fs.readFileSync(filePath, 'utf8'); - let fileImportCount = 0; - - const updated = source.replace(relativeImportPattern, (match, prefix, quote, specifier) => { - const resolvedSpecifier = resolveSpecifier(filePath, specifier); - - if (!resolvedSpecifier || resolvedSpecifier === specifier) { - return match; - } - - fileImportCount += 1; - return `${prefix}${quote}${resolvedSpecifier}${quote}`; - }); - - if (!fileImportCount) { - return; - } - - fs.writeFileSync(filePath, updated, 'utf8'); - touchedFiles += 1; - rewrittenImports += fileImportCount; -}; - -const patchLegacyAccountMigration = () => { - const accountsDatabasePath = path.join(packageDistPath, 'stores', 'accounts', 'accounts-database.js'); - - if (!fs.existsSync(accountsDatabasePath)) { - return; - } - - const source = fs.readFileSync(accountsDatabasePath, 'utf8'); - - if (source.includes('account.communities = legacyCommunities;')) { - return; - } - - const migrationNeedle = ` }\n account.version = accountVersion;\n return account;\n});`; - const migrationPatch = ` }\n if (!Array.isArray(account.subscriptions)) {\n account.subscriptions = [];\n }\n if (!account.blockedAddresses || typeof account.blockedAddresses !== "object") {\n account.blockedAddresses = {};\n }\n if (!account.blockedCids || typeof account.blockedCids !== "object") {\n account.blockedCids = {};\n }\n if (!account.communities || typeof account.communities !== "object") {\n const legacyCommunities = account.subplebbits && typeof account.subplebbits === "object" ? account.subplebbits : {};\n account.communities = legacyCommunities;\n }\n account.version = accountVersion;\n return account;\n});`; - - if (!source.includes(migrationNeedle)) { - console.warn(`${logPrefix} Skip: could not find legacy account migration patch location.`); - return; - } - - fs.writeFileSync(accountsDatabasePath, source.replace(migrationNeedle, migrationPatch), 'utf8'); - appliedHardeningPatches += 1; -}; - -const patchAccountsCommunitiesHardening = () => { - const accountsActionsInternalPath = path.join(packageDistPath, 'stores', 'accounts', 'accounts-actions-internal.js'); - const accountsUtilsPath = path.join(packageDistPath, 'stores', 'accounts', 'utils.js'); - - if (fs.existsSync(accountsActionsInternalPath)) { - const source = fs.readFileSync(accountsActionsInternalPath, 'utf8'); - - if (!source.includes('const accountCommunities = account.communities && typeof account.communities === "object" ? account.communities : {};')) { - const needle = ` const role = getRole(community, account.author.address);\n if (!role) {\n if (account.communities[community.address]) {\n toRemove.push(accountId);\n }\n }\n else {\n const currentRole = (_a = account.communities[community.address]) === null || _a === void 0 ? void 0 : _a.role;`; - const replacement = ` const role = getRole(community, account.author.address);\n const accountCommunities = account.communities && typeof account.communities === "object" ? account.communities : {};\n if (!role) {\n if (accountCommunities[community.address]) {\n toRemove.push(accountId);\n }\n }\n else {\n const currentRole = (_a = accountCommunities[community.address]) === null || _a === void 0 ? void 0 : _a.role;`; - - if (source.includes(needle)) { - fs.writeFileSync(accountsActionsInternalPath, source.replace(needle, replacement), 'utf8'); - appliedHardeningPatches += 1; - } else { - console.warn(`${logPrefix} Skip: could not find accounts-actions-internal hardening patch location.`); - } - } - } - - if (fs.existsSync(accountsUtilsPath)) { - const source = fs.readFileSync(accountsUtilsPath, 'utf8'); - - if (!source.includes('const storedAccountCommunities = account.communities && typeof account.communities === "object"')) { - const needle = ` const roles = getAuthorAddressRolesFromCommunities(account.author.address, communities);\n const accountCommunities = Object.assign({}, account.communities);`; - const replacement = ` const roles = getAuthorAddressRolesFromCommunities(account.author.address, communities);\n const storedAccountCommunities = account.communities && typeof account.communities === "object"\n ? account.communities\n : account.subplebbits && typeof account.subplebbits === "object"\n ? account.subplebbits\n : {};\n const accountCommunities = Object.assign({}, storedAccountCommunities);`; - - if (source.includes(needle)) { - fs.writeFileSync(accountsUtilsPath, source.replace(needle, replacement), 'utf8'); - appliedHardeningPatches += 1; - } else { - console.warn(`${logPrefix} Skip: could not find accounts-utils hardening patch location.`); - } - } - } -}; - -const walk = (currentPath) => { - for (const entry of fs.readdirSync(currentPath, { withFileTypes: true })) { - const entryPath = path.join(currentPath, entry.name); - - if (entry.isDirectory()) { - walk(entryPath); - continue; - } - - if (entry.isFile() && entry.name.endsWith('.js')) { - patchFile(entryPath); - } - } -}; - -walk(packageDistPath); -patchLegacyAccountMigration(); -patchAccountsCommunitiesHardening(); - -if (!touchedFiles && !appliedHardeningPatches) { - console.log(`${logPrefix} No relative ESM imports or account migration patches were needed.`); - process.exit(0); -} - -console.log( - `${logPrefix} Patched ${rewrittenImports} imports across ${touchedFiles} files and applied ${appliedHardeningPatches} account migration hardening patch(es).`, -); diff --git a/src/AGENTS.md b/src/AGENTS.md index 42481532..5bcf1617 100644 --- a/src/AGENTS.md +++ b/src/AGENTS.md @@ -4,6 +4,6 @@ These rules apply to `src/**`. Follow the repo-root `AGENTS.md` first, then use - Keep route composition in `src/views/`, reusable UI in `src/components/`, shared logic in `src/hooks/`, and shared app state in `src/stores/`. - Before adding new state, decide whether it belongs in render, a reusable hook, or a Zustand store. Do not duplicate the same state logic across views. -- Use `@bitsocialnet/bitsocial-react-hooks` for data access. Do not add data-fetching `useEffect` calls or effects that only synchronize derived state. +- Use `@bitsocial/bitsocial-react-hooks` for data access. Do not add data-fetching `useEffect` calls or effects that only synchronize derived state. - When changing React UI logic, run `yarn build`, `yarn lint`, and `yarn type-check`. When changing layout or interaction, verify desktop and mobile behavior with `playwright-cli`. - Prefer extending nearby tests under `src/**/__tests__/` when touching already-covered behavior. diff --git a/yarn.lock b/yarn.lock index f18db01e..a93c1df0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -43,13 +43,6 @@ __metadata: languageName: node linkType: hard -"@adraffy/ens-normalize@npm:1.10.1": - version: 1.10.1 - resolution: "@adraffy/ens-normalize@npm:1.10.1" - checksum: 10c0/fdd647604e8fac6204921888aaf5a6bc65eabf0d2921bc5f93b64d01f4bc33ead167c1445f7de05468d05cd92ac31b74c68d2be840c62b79d73693308f885c06 - languageName: node - linkType: hard - "@adraffy/ens-normalize@npm:^1.11.0": version: 1.11.1 resolution: "@adraffy/ens-normalize@npm:1.11.1" @@ -347,7 +340,7 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.27.2, @babel/parser@npm:^7.28.3, @babel/parser@npm:^7.28.4": +"@babel/parser@npm:^7.27.2, @babel/parser@npm:^7.28.3, @babel/parser@npm:^7.28.4": version: 7.28.4 resolution: "@babel/parser@npm:7.28.4" dependencies: @@ -946,28 +939,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-react-jsx-self@npm:^7.25.9": - version: 7.27.1 - resolution: "@babel/plugin-transform-react-jsx-self@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/00a4f917b70a608f9aca2fb39aabe04a60aa33165a7e0105fd44b3a8531630eb85bf5572e9f242f51e6ad2fa38c2e7e780902176c863556c58b5ba6f6e164031 - languageName: node - linkType: hard - -"@babel/plugin-transform-react-jsx-source@npm:^7.25.9": - version: 7.27.1 - resolution: "@babel/plugin-transform-react-jsx-source@npm:7.27.1" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.27.1" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10c0/5e67b56c39c4d03e59e03ba80692b24c5a921472079b63af711b1d250fc37c1733a17069b63537f750f3e937ec44a42b1ee6a46cd23b1a0df5163b17f741f7f2 - languageName: node - linkType: hard - "@babel/plugin-transform-react-jsx@npm:^7.25.9": version: 7.27.1 resolution: "@babel/plugin-transform-react-jsx@npm:7.27.1" @@ -1243,13 +1214,20 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.11.2, @babel/runtime@npm:^7.19.4, @babel/runtime@npm:^7.21.0, @babel/runtime@npm:^7.22.5, @babel/runtime@npm:^7.25.0": +"@babel/runtime@npm:^7.11.2, @babel/runtime@npm:^7.19.4, @babel/runtime@npm:^7.21.0": version: 7.28.4 resolution: "@babel/runtime@npm:7.28.4" checksum: 10c0/792ce7af9750fb9b93879cc9d1db175701c4689da890e6ced242ea0207c9da411ccf16dc04e689cc01158b28d7898c40d75598f4559109f761c12ce01e959bf7 languageName: node linkType: hard +"@babel/runtime@npm:^7.29.2": + version: 7.29.2 + resolution: "@babel/runtime@npm:7.29.2" + checksum: 10c0/30b80a0140d16467792e1bbeb06f655b0dab70407da38dfac7fedae9c859f9ae9d846ef14ad77bd3814c064295fe9b1bc551f1541ea14646ae9f22b71a8bc17a + languageName: node + linkType: hard + "@babel/template@npm:^7.27.1, @babel/template@npm:^7.27.2": version: 7.27.2 resolution: "@babel/template@npm:7.27.2" @@ -1276,7 +1254,7 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.26.0, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.28.2, @babel/types@npm:^7.28.4, @babel/types@npm:^7.4.4": +"@babel/types@npm:^7.26.0, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.28.2, @babel/types@npm:^7.28.4, @babel/types@npm:^7.4.4": version: 7.28.4 resolution: "@babel/types@npm:7.28.4" dependencies: @@ -1286,13 +1264,13 @@ __metadata: languageName: node linkType: hard -"@bitsocialnet/bitsocial-react-hooks@https://codeload.github.com/bitsocialnet/bitsocial-react-hooks/tar.gz/dcfaeaccefc0b9de90ef37c44885ac005eef429a": - version: 0.1.0 - resolution: "@bitsocialnet/bitsocial-react-hooks@https://codeload.github.com/bitsocialnet/bitsocial-react-hooks/tar.gz/dcfaeaccefc0b9de90ef37c44885ac005eef429a" +"@bitsocial/bitsocial-react-hooks@npm:0.1.2": + version: 0.1.2 + resolution: "@bitsocial/bitsocial-react-hooks@npm:0.1.2" dependencies: - "@noble/ed25519": "npm:1.7.5" - "@plebbit/plebbit-js": "https://github.com/plebbit/plebbit-js.git#10ed04e3866dd986a7f802bc9efd027f0e7d465b" - "@plebbit/plebbit-logger": "https://github.com/plebbit/plebbit-logger.git" + "@bitsocial/bso-resolver": "npm:0.0.6" + "@pkcprotocol/pkc-js": "npm:0.0.19" + "@pkcprotocol/pkc-logger": "npm:0.1.0" assert: "npm:2.0.0" ethers: "npm:5.8.0" localforage: "npm:1.10.0" @@ -1307,39 +1285,18 @@ __metadata: zustand: "npm:4.0.0" peerDependencies: react: ">=16.8" - checksum: 10c0/3971d8eedc5664508381071facfc402e53e582ee748fb34917faabde20853f533bf897b1a32b2fe6e68efbf044e21143a6b4e48cdf3511eb2b45eac97c3a80b4 + checksum: 10c0/c1df0655d44ef6e9083ea07bf7210c86b4d96888db4fc5c7a905196ed9a1aef695c232dea2392d8c4315e6f5bdce6420a685feb20af62da72ca9f017de32fad4 languageName: node linkType: hard -"@bonfida/sns-records@npm:0.0.1": - version: 0.0.1 - resolution: "@bonfida/sns-records@npm:0.0.1" - dependencies: - borsh: "npm:1.0.0" - bs58: "npm:5.0.0" - buffer: "npm:^6.0.3" - peerDependencies: - "@solana/web3.js": ^1.87.3 - checksum: 10c0/6a02efde61ce602989efafd425ac5337a5d9fcb483cfb4b8a803ead8fe9588c40d7645b37f2a67239f4c272671a0c9478ff1fd2c29f8cbed3b73aab551d50a15 - languageName: node - linkType: hard - -"@bonfida/spl-name-service@npm:3.0.16": - version: 3.0.16 - resolution: "@bonfida/spl-name-service@npm:3.0.16" +"@bitsocial/bso-resolver@npm:0.0.6": + version: 0.0.6 + resolution: "@bitsocial/bso-resolver@npm:0.0.6" dependencies: - "@bonfida/sns-records": "npm:0.0.1" - "@noble/curves": "npm:^1.9.1" - "@scure/base": "npm:^1.2.5" - "@solana/spl-token": "npm:0.4.6" - borsh: "npm:2.0.0" - buffer: "npm:^6.0.3" - graphemesplit: "npm:^2.6.0" - ipaddr.js: "npm:^2.2.0" - punycode: "npm:^2.3.1" - peerDependencies: - "@solana/web3.js": ^1.98.2 - checksum: 10c0/c526c793781f4221c3c048557d2e165d85aedef1be441325d4e60a05512f785c37370fb6c1c641c49bba26f7dc0ffb46786ef694ffb8cd8b2b172679ab27dbfb + "@pkcprotocol/pkc-logger": "npm:0.1.0" + better-sqlite3: "npm:12.6.2" + viem: "npm:2.48.1" + checksum: 10c0/113e54c08dd86c1e356318e6be1b2b1682753209bba229256352a47bbaef81d340a46c5124f4abf8f49d1289caae479637e902b45ac33e950fc05a34caf0e044 languageName: node linkType: hard @@ -3443,24 +3400,6 @@ __metadata: languageName: node linkType: hard -"@keyv/serialize@npm:^1.1.0": - version: 1.1.1 - resolution: "@keyv/serialize@npm:1.1.1" - checksum: 10c0/b0008cae4a54400c3abf587b8cc2474c6f528ee58969ce6cf9cb07a04006f80c73c85971d6be6544408318a2bc40108236a19a82aea0a6de95aae49533317374 - languageName: node - linkType: hard - -"@keyv/sqlite@npm:^4.0.5": - version: 4.0.6 - resolution: "@keyv/sqlite@npm:4.0.6" - dependencies: - sqlite3: "npm:^5.1.7" - peerDependencies: - keyv: ^5.5.3 - checksum: 10c0/ee8268f8a35ac4bddb6ebd8669cd8627daa8505e8044a7f263a9715caa0dd348fc3667ba1c304cb3f0cfbee0c60261b2fd5c44f6d4f61975506074862cc3b591 - languageName: node - linkType: hard - "@leichtgewicht/ip-codec@npm:^2.0.1": version: 2.0.5 resolution: "@leichtgewicht/ip-codec@npm:2.0.5" @@ -3555,22 +3494,6 @@ __metadata: languageName: node linkType: hard -"@libp2p/crypto@npm:^4.1.9": - version: 4.1.9 - resolution: "@libp2p/crypto@npm:4.1.9" - dependencies: - "@libp2p/interface": "npm:^1.7.0" - "@noble/curves": "npm:^1.4.0" - "@noble/hashes": "npm:^1.4.0" - asn1js: "npm:^3.0.5" - multiformats: "npm:^13.1.0" - protons-runtime: "npm:^5.4.0" - uint8arraylist: "npm:^2.4.8" - uint8arrays: "npm:^5.1.0" - checksum: 10c0/ee3531a9310732163c32964a0cedd8ce120daff62fa185782bf38e48c019b1447ac1a587e704afe1b6003e9d344cb1918e9353da7150b95b94675a4c96ef94c9 - languageName: node - linkType: hard - "@libp2p/crypto@npm:^5.0.0, @libp2p/crypto@npm:^5.0.9, @libp2p/crypto@npm:^5.1.7": version: 5.1.10 resolution: "@libp2p/crypto@npm:5.1.10" @@ -3803,20 +3726,6 @@ __metadata: languageName: node linkType: hard -"@libp2p/interface@npm:^1.7.0": - version: 1.7.0 - resolution: "@libp2p/interface@npm:1.7.0" - dependencies: - "@multiformats/multiaddr": "npm:^12.2.3" - it-pushable: "npm:^3.2.3" - it-stream-types: "npm:^2.0.1" - multiformats: "npm:^13.1.0" - progress-events: "npm:^1.0.0" - uint8arraylist: "npm:^2.4.8" - checksum: 10c0/9684955a1e8db1b7129cb13832a92e90e697e6bfabc5927cd574cb20b19a7cdb46c711df57bceba898916b382fc884e7706e9b1f82869c96a733eb26c1a0c58d - languageName: node - linkType: hard - "@libp2p/interface@npm:^3.0.0": version: 3.0.0 resolution: "@libp2p/interface@npm:3.0.0" @@ -4015,20 +3924,6 @@ __metadata: languageName: node linkType: hard -"@libp2p/peer-id-factory@npm:4.2.4": - version: 4.2.4 - resolution: "@libp2p/peer-id-factory@npm:4.2.4" - dependencies: - "@libp2p/crypto": "npm:^4.1.9" - "@libp2p/interface": "npm:^1.7.0" - "@libp2p/peer-id": "npm:^4.2.4" - protons-runtime: "npm:^5.4.0" - uint8arraylist: "npm:^2.4.8" - uint8arrays: "npm:^5.1.0" - checksum: 10c0/5c7f5010eb176aaff487ff54ecb3efa62fd8578ee3675318dd61b5bbfb61a99c8415c9a3d3563ef7b1c6af3eb868a203d33ab1ffe32524d3dfe4321bb5b4a023 - languageName: node - linkType: hard - "@libp2p/peer-id@npm:6.0.4, @libp2p/peer-id@npm:^6.0.0, @libp2p/peer-id@npm:^6.0.3, @libp2p/peer-id@npm:^6.0.4": version: 6.0.4 resolution: "@libp2p/peer-id@npm:6.0.4" @@ -4041,17 +3936,6 @@ __metadata: languageName: node linkType: hard -"@libp2p/peer-id@npm:^4.2.4": - version: 4.2.4 - resolution: "@libp2p/peer-id@npm:4.2.4" - dependencies: - "@libp2p/interface": "npm:^1.7.0" - multiformats: "npm:^13.1.0" - uint8arrays: "npm:^5.1.0" - checksum: 10c0/39df81689adda4a6e4a0e3c86de63f88d05bc7d7dd17344ac910350016b4ada6e20b3561b4cabdf96a0204efc82daba4250b6e078455f65fd8c480af7e5f8159 - languageName: node - linkType: hard - "@libp2p/peer-id@npm:^6.0.5": version: 6.0.5 resolution: "@libp2p/peer-id@npm:6.0.5" @@ -4360,23 +4244,6 @@ __metadata: languageName: node linkType: hard -"@mintpass/challenge@npm:1.1.11": - version: 1.1.11 - resolution: "@mintpass/challenge@npm:1.1.11" - dependencies: - "@keyv/sqlite": "npm:^4.0.5" - "@plebbit/plebbit-logger": "git+https://github.com/plebbit/plebbit-logger.git" - env-paths: "npm:^3.0.0" - keyv: "npm:5.5.0" - multiformats: "npm:^13.1.0" - uint8arrays: "npm:^4.0.3" - viem: "npm:2.45.0" - peerDependencies: - "@plebbit/plebbit-js": ">=0.0.0" - checksum: 10c0/4b501ea00de0adac181dbaceef67af3ab22a627e30ec11cdbecf0da58930a19c3a4fabd923c17d1f733557856e2dc187f9594d47c47c09eb21e7c5470d9f2a74 - languageName: node - linkType: hard - "@multiformats/base-x@npm:^4.0.1": version: 4.0.1 resolution: "@multiformats/base-x@npm:4.0.1" @@ -4384,7 +4251,7 @@ __metadata: languageName: node linkType: hard -"@multiformats/dns@npm:^1.0.3, @multiformats/dns@npm:^1.0.6": +"@multiformats/dns@npm:^1.0.6": version: 1.0.9 resolution: "@multiformats/dns@npm:1.0.9" dependencies: @@ -4430,21 +4297,6 @@ __metadata: languageName: node linkType: hard -"@multiformats/multiaddr@npm:^12.2.3": - version: 12.5.1 - resolution: "@multiformats/multiaddr@npm:12.5.1" - dependencies: - "@chainsafe/is-ip": "npm:^2.0.1" - "@chainsafe/netmask": "npm:^2.0.0" - "@multiformats/dns": "npm:^1.0.3" - abort-error: "npm:^1.0.1" - multiformats: "npm:^13.0.0" - uint8-varint: "npm:^2.0.1" - uint8arrays: "npm:^5.0.0" - checksum: 10c0/61df1d9d50f3b228c5a8c8c33170a23eff4cb2ea4686e9dc89f640edc2d865907736a18043ec4a05d368911c3f5eaa65643b367b10e529e543629225a7bb9dae - languageName: node - linkType: hard - "@multiformats/multiaddr@npm:^13.0.0, @multiformats/multiaddr@npm:^13.0.1": version: 13.0.1 resolution: "@multiformats/multiaddr@npm:13.0.1" @@ -4502,15 +4354,6 @@ __metadata: languageName: node linkType: hard -"@noble/curves@npm:1.2.0": - version: 1.2.0 - resolution: "@noble/curves@npm:1.2.0" - dependencies: - "@noble/hashes": "npm:1.3.2" - checksum: 10c0/0bac7d1bbfb3c2286910b02598addd33243cb97c3f36f987ecc927a4be8d7d88e0fcb12b0f0ef8a044e7307d1844dd5c49bb724bfa0a79c8ec50ba60768c97f6 - languageName: node - linkType: hard - "@noble/curves@npm:1.9.1": version: 1.9.1 resolution: "@noble/curves@npm:1.9.1" @@ -4520,15 +4363,6 @@ __metadata: languageName: node linkType: hard -"@noble/curves@npm:^1.4.0, @noble/curves@npm:^1.4.2, @noble/curves@npm:^1.9.1, @noble/curves@npm:~1.9.0": - version: 1.9.7 - resolution: "@noble/curves@npm:1.9.7" - dependencies: - "@noble/hashes": "npm:1.8.0" - checksum: 10c0/150014751ebe8ca06a8654ca2525108452ea9ee0be23430332769f06808cddabfe84f248b6dbf836916bc869c27c2092957eec62c7506d68a1ed0a624017c2a3 - languageName: node - linkType: hard - "@noble/curves@npm:^2.0.1": version: 2.0.1 resolution: "@noble/curves@npm:2.0.1" @@ -4538,21 +4372,23 @@ __metadata: languageName: node linkType: hard -"@noble/ed25519@npm:1.7.5, @noble/ed25519@npm:^1.5.1": - version: 1.7.5 - resolution: "@noble/ed25519@npm:1.7.5" - checksum: 10c0/9ebcdf47e1cc986f270a82725ed4fdad1922fd63cca77f6bc0ba9575685db9cd73d45e66325fb62cc1d8a398010e953331b904961c1e9f18d170eebae783d5cb +"@noble/curves@npm:~1.9.0": + version: 1.9.7 + resolution: "@noble/curves@npm:1.9.7" + dependencies: + "@noble/hashes": "npm:1.8.0" + checksum: 10c0/150014751ebe8ca06a8654ca2525108452ea9ee0be23430332769f06808cddabfe84f248b6dbf836916bc869c27c2092957eec62c7506d68a1ed0a624017c2a3 languageName: node linkType: hard -"@noble/hashes@npm:1.3.2": - version: 1.3.2 - resolution: "@noble/hashes@npm:1.3.2" - checksum: 10c0/2482cce3bce6a596626f94ca296e21378e7a5d4c09597cbc46e65ffacc3d64c8df73111f2265444e36a3168208628258bbbaccba2ef24f65f58b2417638a20e7 +"@noble/ed25519@npm:^1.5.1, @noble/ed25519@npm:^1.7.5": + version: 1.7.5 + resolution: "@noble/ed25519@npm:1.7.5" + checksum: 10c0/9ebcdf47e1cc986f270a82725ed4fdad1922fd63cca77f6bc0ba9575685db9cd73d45e66325fb62cc1d8a398010e953331b904961c1e9f18d170eebae783d5cb languageName: node linkType: hard -"@noble/hashes@npm:1.8.0, @noble/hashes@npm:^1.4.0, @noble/hashes@npm:^1.8.0, @noble/hashes@npm:~1.8.0": +"@noble/hashes@npm:1.8.0, @noble/hashes@npm:^1.8.0, @noble/hashes@npm:~1.8.0": version: 1.8.0 resolution: "@noble/hashes@npm:1.8.0" checksum: 10c0/06a0b52c81a6fa7f04d67762e08b2c476a00285858150caeaaff4037356dd5e119f45b2a530f638b77a5eeca013168ec1b655db41bae3236cb2e9d511484fc77 @@ -5049,18 +4885,10 @@ __metadata: languageName: node linkType: hard -"@pkgjs/parseargs@npm:^0.11.0": - version: 0.11.0 - resolution: "@pkgjs/parseargs@npm:0.11.0" - checksum: 10c0/5bd7576bb1b38a47a7fc7b51ac9f38748e772beebc56200450c4a817d712232b8f1d3ef70532c80840243c657d491cf6a6be1e3a214cff907645819fdc34aadd - languageName: node - linkType: hard - -"@plebbit/plebbit-js@https://github.com/plebbit/plebbit-js.git#10ed04e3866dd986a7f802bc9efd027f0e7d465b": - version: 0.0.11 - resolution: "@plebbit/plebbit-js@https://github.com/plebbit/plebbit-js.git#commit=10ed04e3866dd986a7f802bc9efd027f0e7d465b" +"@pkcprotocol/pkc-js@npm:0.0.19": + version: 0.0.19 + resolution: "@pkcprotocol/pkc-js@npm:0.0.19" dependencies: - "@bonfida/spl-name-service": "npm:3.0.16" "@enhances/with-resolvers": "npm:0.0.5" "@helia/block-brokers": "npm:5.1.2" "@helia/delegated-routing-v1-http-api-client": "npm:6.0.1" @@ -5072,28 +4900,23 @@ __metadata: "@libp2p/identify": "npm:4.0.10" "@libp2p/interfaces": "npm:3.3.2" "@libp2p/peer-id": "npm:6.0.4" - "@libp2p/peer-id-factory": "npm:4.2.4" "@libp2p/websockets": "npm:10.1.3" - "@mintpass/challenge": "npm:1.1.11" - "@plebbit/plebbit-logger": "git+https://github.com/plebbit/plebbit-logger.git#355a96d7659ed820047980049dfa627d30d83a69" - "@plebbit/proper-lockfile": "git+https://github.com/plebbit/node-proper-lockfile.git#7fd6332117340c1d3d98dd0afee2d31cc06f72b8" - "@types/proper-lockfile": "npm:4.1.2" + "@noble/ed25519": "npm:^1.7.5" + "@pkcprotocol/pkc-logger": "npm:0.1.0" + "@pkcprotocol/proper-lock-file": "npm:4.2.1" assert: "npm:2.1.0" - better-sqlite3: "npm:12.6.2" + better-sqlite3: "npm:12.9.0" blockstore-core: "npm:6.1.2" blockstore-fs: "npm:3.0.2" blockstore-idb: "npm:3.0.1" buffer: "npm:6.0.3" - captcha-canvas: "npm:3.4.0" cbor: "npm:10.0.11" debounce: "npm:1.2.1" err-code: "npm:3.0.1" - ethers: "npm:6.16.0" ext-name: "npm:5.0.0" helia: "npm:6.0.20" hpagent: "npm:1.2.0" it-all: "npm:3.0.6" - jose: "npm:4.11.0" js-sha256: "npm:0.11.1" js-sha512: "npm:0.9.0" kubo-rpc-client: "npm:6.1.0" @@ -5104,52 +4927,47 @@ __metadata: open-graph-scraper: "npm:6.11.0" p-limit: "npm:7.3.0" p-timeout: "npm:7.0.1" - peer-id: "npm:0.16.0" probe-image-size: "npm:7.2.3" remeda: "npm:1.57.0" retry: "npm:0.13.1" - rpc-websockets: "npm:9.3.1" + rpc-websockets: "npm:9.3.8" safe-stable-stringify: "npm:2.4.3" sha1-uint8array: "npm:0.10.7" - skia-canvas: "npm:3.0.8" tcp-port-used: "npm:1.0.2" tiny-typed-emitter: "npm:2.1.0" tinycache: "npm:1.1.2" ts-custom-error: "npm:3.3.1" typestub-ipfs-only-hash: "npm:4.0.0" uuid: "npm:13.0.0" - viem: "npm:2.45.0" zod: "npm:4.3.6" - checksum: 10c0/0000ec5b5abeb961217d874cbaf0d810001e26bd3933aa86b157a9143f87d6f676ef45e5d89e4413e2d133c71f088ef6e8cac1a980f1286c4ea7623f9624d171 + checksum: 10c0/a2542c96cf2dc0ed54e216555679efb5c2e95948bd7ee99d336bfabcc84845f332aadf10dc6b0873c8a7f112d88438667340e9be45d0f55cca5ea82f9f8359d6 languageName: node linkType: hard -"@plebbit/plebbit-logger@git+https://github.com/plebbit/plebbit-logger.git": - version: 0.0.1 - resolution: "@plebbit/plebbit-logger@https://github.com/plebbit/plebbit-logger.git#commit=cb494fbaf332ed5b2cfd9d9d0f90ca7fd0058b4a" +"@pkcprotocol/pkc-logger@npm:0.1.0": + version: 0.1.0 + resolution: "@pkcprotocol/pkc-logger@npm:0.1.0" dependencies: debug: "npm:4.4.3" - checksum: 10c0/8768a3995d5fcc495ebf8cc17f3ceb219645d712d261f33995d5b8b99c44d6e5757871b4b25e6f834c2affe447a9a611ab10e775d070ff96029222b16728b5fd + checksum: 10c0/f37dad95e940685d0afa5f3dbecf6dd172bcb9985890807d5d1d09151516e7b8c58f551daaa5c7830e56b9a674fe6b3f4ec4d882d2d9e84a34031a73ed24aa31 languageName: node linkType: hard -"@plebbit/plebbit-logger@git+https://github.com/plebbit/plebbit-logger.git#355a96d7659ed820047980049dfa627d30d83a69, @plebbit/plebbit-logger@https://github.com/plebbit/plebbit-logger.git": - version: 0.0.1 - resolution: "@plebbit/plebbit-logger@https://github.com/plebbit/plebbit-logger.git#commit=355a96d7659ed820047980049dfa627d30d83a69" +"@pkcprotocol/proper-lock-file@npm:4.2.1": + version: 4.2.1 + resolution: "@pkcprotocol/proper-lock-file@npm:4.2.1" dependencies: - debug: "npm:4.3.4" - checksum: 10c0/538ab665e338fef0b8644fc5c5f95944bc564df4a53cab0697eecc09f27b61a4d5d9430c61b0b1d98cddaf4c499c732799793325a6347b429ac3392238f89bb7 + graceful-fs: "npm:4.2.11" + retry: "npm:0.13.1" + signal-exit: "npm:4.1.0" + checksum: 10c0/05e9c4aa7a405a19a5ace80bca87491c5a89a97499e6da15f54a5753b5f6f8038d9f9597df8115f343894b46eb2ea15d662e0bfa2a4a4f5e478a57e7bb88e640 languageName: node linkType: hard -"@plebbit/proper-lockfile@git+https://github.com/plebbit/node-proper-lockfile.git#7fd6332117340c1d3d98dd0afee2d31cc06f72b8": - version: 4.1.2 - resolution: "@plebbit/proper-lockfile@https://github.com/plebbit/node-proper-lockfile.git#commit=7fd6332117340c1d3d98dd0afee2d31cc06f72b8" - dependencies: - graceful-fs: "npm:^4.2.4" - retry: "npm:^0.12.0" - signal-exit: "npm:^3.0.2" - checksum: 10c0/32064f805bcaa3d109f0930ee457056d17e5e8beadd2da8d2f32ce49d423b4c25952c177aaec1675a23a5588b243402f9a38f05d0b746b76b442f0b512bce4c9 +"@pkgjs/parseargs@npm:^0.11.0": + version: 0.11.0 + resolution: "@pkgjs/parseargs@npm:0.11.0" + checksum: 10c0/5bd7576bb1b38a47a7fc7b51ac9f38748e772beebc56200450c4a817d712232b8f1d3ef70532c80840243c657d491cf6a6be1e3a214cff907645819fdc34aadd languageName: node linkType: hard @@ -5423,6 +5241,13 @@ __metadata: languageName: node linkType: hard +"@rolldown/pluginutils@npm:1.0.0-rc.7": + version: 1.0.0-rc.7 + resolution: "@rolldown/pluginutils@npm:1.0.0-rc.7" + checksum: 10c0/9d5490b5805b25bcd1720ca01c4c032b55a0ef953dab36a8dd42c568e82214576baa464f3027cd5dff3fabcfbe3bf3db2251d12b60220f5d1cd2ffde5ee37082 + languageName: node + linkType: hard + "@rollup/plugin-babel@npm:^5.2.0": version: 5.3.1 resolution: "@rollup/plugin-babel@npm:5.3.1" @@ -5531,7 +5356,7 @@ __metadata: languageName: node linkType: hard -"@scure/base@npm:^1.2.5, @scure/base@npm:~1.2.5": +"@scure/base@npm:~1.2.5": version: 1.2.6 resolution: "@scure/base@npm:1.2.6" checksum: 10c0/49bd5293371c4e062cb6ba689c8fe3ea3981b7bb9c000400dc4eafa29f56814cdcdd27c04311c2fec34de26bc373c593a1d6ca6d754398a488d587943b7c128a @@ -5573,494 +5398,144 @@ __metadata: languageName: node linkType: hard -"@solana/buffer-layout-utils@npm:^0.2.0": - version: 0.2.0 - resolution: "@solana/buffer-layout-utils@npm:0.2.0" - dependencies: - "@solana/buffer-layout": "npm:^4.0.0" - "@solana/web3.js": "npm:^1.32.0" - bigint-buffer: "npm:^1.1.5" - bignumber.js: "npm:^9.0.1" - checksum: 10c0/ed093999d7c0f93527a9b261a9a2a59e10b5ef78fc416fa896b86036fb4dadf923d17db68bffdc3e91eadecdb8b8cddd8ee37f12429980fcaba321e7b8a35d27 +"@spacingbat3/lss@npm:^1.0.0": + version: 1.2.0 + resolution: "@spacingbat3/lss@npm:1.2.0" + checksum: 10c0/b467343209f3b2beaf2500c1d75c5824b59ed5aba3cdf7688194751ee822e9df4cc990ba93176e762c59d346de39109f12ac666409232c12a53b27798c6e34c5 languageName: node linkType: hard -"@solana/buffer-layout@npm:^4.0.0, @solana/buffer-layout@npm:^4.0.1": - version: 4.0.1 - resolution: "@solana/buffer-layout@npm:4.0.1" - dependencies: - buffer: "npm:~6.0.3" - checksum: 10c0/6535f3908cf6dfc405b665795f0c2eaa0482a8c6b1811403945cf7b450e7eb7b40acce3e8af046f2fcc3eea1a15e61d48c418315d813bee4b720d56b00053305 +"@standard-schema/spec@npm:^1.0.0, @standard-schema/spec@npm:^1.1.0": + version: 1.1.0 + resolution: "@standard-schema/spec@npm:1.1.0" + checksum: 10c0/d90f55acde4b2deb983529c87e8025fa693de1a5e8b49ecc6eb84d1fd96328add0e03d7d551442156c7432fd78165b2c26ff561b970a9a881f046abb78d6a526 languageName: node linkType: hard -"@solana/codecs-core@npm:2.0.0-preview.2": - version: 2.0.0-preview.2 - resolution: "@solana/codecs-core@npm:2.0.0-preview.2" +"@surma/rollup-plugin-off-main-thread@npm:^2.2.3": + version: 2.2.3 + resolution: "@surma/rollup-plugin-off-main-thread@npm:2.2.3" dependencies: - "@solana/errors": "npm:2.0.0-preview.2" - checksum: 10c0/545340b797bbf5bfbc79c2ca66aa87265b04632e3abd4ec042b7e8e92ed5738726c75a8c8dffd3ea6c793b4f8cd0c74caac72fb41a49a17132f2bb194ab8722f + ejs: "npm:^3.1.6" + json5: "npm:^2.2.0" + magic-string: "npm:^0.25.0" + string.prototype.matchall: "npm:^4.0.6" + checksum: 10c0/4f36a7488cdae2907053a48231430e8e9aa8f1903a96131bf8325786afba3224011f9120164cae75043558bd051881050b071958388fe477927d340b1cc1a066 languageName: node linkType: hard -"@solana/codecs-core@npm:2.0.0-rc.1": - version: 2.0.0-rc.1 - resolution: "@solana/codecs-core@npm:2.0.0-rc.1" +"@swc/helpers@npm:^0.5.11": + version: 0.5.17 + resolution: "@swc/helpers@npm:0.5.17" dependencies: - "@solana/errors": "npm:2.0.0-rc.1" - peerDependencies: - typescript: ">=5" - checksum: 10c0/3b1fd09727bf850d191292b14e1afb64cda4e57f898c06483f40d0402c4f07f1d4df555f028f664701e647834c74924818857443666d039f4e44c8c01f31f427 + tslib: "npm:^2.8.0" + checksum: 10c0/fe1f33ebb968558c5a0c595e54f2e479e4609bff844f9ca9a2d1ffd8dd8504c26f862a11b031f48f75c95b0381c2966c3dd156e25942f90089badd24341e7dbb languageName: node linkType: hard -"@solana/codecs-core@npm:2.3.0": - version: 2.3.0 - resolution: "@solana/codecs-core@npm:2.3.0" +"@szmarczak/http-timer@npm:^4.0.5": + version: 4.0.6 + resolution: "@szmarczak/http-timer@npm:4.0.6" dependencies: - "@solana/errors": "npm:2.3.0" - peerDependencies: - typescript: ">=5.3.3" - checksum: 10c0/efef080b94fe572bcfeac9f1c0b222700203bd2b45c9590e77445b35335d0ed2582d1cc4e533003d2090c385c06eb93dfa05388f9766182aa60ce85eacfd8042 + defer-to-connect: "npm:^2.0.0" + checksum: 10c0/73946918c025339db68b09abd91fa3001e87fc749c619d2e9c2003a663039d4c3cb89836c98a96598b3d47dec2481284ba85355392644911f5ecd2336536697f languageName: node linkType: hard -"@solana/codecs-data-structures@npm:2.0.0-preview.2": - version: 2.0.0-preview.2 - resolution: "@solana/codecs-data-structures@npm:2.0.0-preview.2" - dependencies: - "@solana/codecs-core": "npm:2.0.0-preview.2" - "@solana/codecs-numbers": "npm:2.0.0-preview.2" - "@solana/errors": "npm:2.0.0-preview.2" - checksum: 10c0/b06e1cef79305ef3328db7a641e9f8303611e173d99b47ad0934f6793d69fa876e274c9b91373c00c80166fbec74fb3439d6198c8461a6b174e0b808391825bd +"@tootallnate/once@npm:3.0.1": + version: 3.0.1 + resolution: "@tootallnate/once@npm:3.0.1" + checksum: 10c0/a66a5be492a19337be450056f0225f34abb7e88845bd1f5899211134827a0d90937d8ef161f8ce663aa8fc1505d39ad016e497963f2780d8199ce2067d2b1317 languageName: node linkType: hard -"@solana/codecs-data-structures@npm:2.0.0-rc.1": - version: 2.0.0-rc.1 - resolution: "@solana/codecs-data-structures@npm:2.0.0-rc.1" +"@tybys/wasm-util@npm:^0.10.1": + version: 0.10.1 + resolution: "@tybys/wasm-util@npm:0.10.1" dependencies: - "@solana/codecs-core": "npm:2.0.0-rc.1" - "@solana/codecs-numbers": "npm:2.0.0-rc.1" - "@solana/errors": "npm:2.0.0-rc.1" - peerDependencies: - typescript: ">=5" - checksum: 10c0/e22dd6369917dbfe5e540045b94007bfe27c240651ff6063558b0c5c82a06e7b1fa2a95aaba51e6210702d1c462d4dde198c3c00c4b3211360606ca36131965e + tslib: "npm:^2.4.0" + checksum: 10c0/b255094f293794c6d2289300c5fbcafbb5532a3aed3a5ffd2f8dc1828e639b88d75f6a376dd8f94347a44813fd7a7149d8463477a9a49525c8b2dcaa38c2d1e8 languageName: node linkType: hard -"@solana/codecs-numbers@npm:2.0.0-preview.2": - version: 2.0.0-preview.2 - resolution: "@solana/codecs-numbers@npm:2.0.0-preview.2" +"@types/appdmg@npm:^0.5.5": + version: 0.5.5 + resolution: "@types/appdmg@npm:0.5.5" dependencies: - "@solana/codecs-core": "npm:2.0.0-preview.2" - "@solana/errors": "npm:2.0.0-preview.2" - checksum: 10c0/8a2275085dd25ff106ba20d42f7769648ef3efcff5516725a69af08c48c99c2a9224de9b4a0d1ccf51bb463fc48a54b6b82853d4d8a31ba21648a2daff56c373 + "@types/node": "npm:*" + checksum: 10c0/9aa1b38a27b9310fcb6fc3fdac2aab4d3d05a0165a485c4a3a09d75712e4ea6a2e5f1e75a1a657c2e071bba92344dc0610fdb89320308601dd1e596f1aa57da0 languageName: node linkType: hard -"@solana/codecs-numbers@npm:2.0.0-rc.1": - version: 2.0.0-rc.1 - resolution: "@solana/codecs-numbers@npm:2.0.0-rc.1" +"@types/cacheable-request@npm:^6.0.1": + version: 6.0.3 + resolution: "@types/cacheable-request@npm:6.0.3" dependencies: - "@solana/codecs-core": "npm:2.0.0-rc.1" - "@solana/errors": "npm:2.0.0-rc.1" - peerDependencies: - typescript: ">=5" - checksum: 10c0/baf888bbd9c9ed2420207329c735def60a2b3d94d4a0dd1a92703f4de165a96dfd5b66e4fe954d6a7fae12b6b95c41da500499f100b6d5cfad6420d4bfe71b50 + "@types/http-cache-semantics": "npm:*" + "@types/keyv": "npm:^3.1.4" + "@types/node": "npm:*" + "@types/responselike": "npm:^1.0.0" + checksum: 10c0/10816a88e4e5b144d43c1d15a81003f86d649776c7f410c9b5e6579d0ad9d4ca71c541962fb403077388b446e41af7ae38d313e46692144985f006ac5e11fa03 languageName: node linkType: hard -"@solana/codecs-numbers@npm:^2.1.0": - version: 2.3.0 - resolution: "@solana/codecs-numbers@npm:2.3.0" +"@types/chai@npm:^5.2.2": + version: 5.2.3 + resolution: "@types/chai@npm:5.2.3" dependencies: - "@solana/codecs-core": "npm:2.3.0" - "@solana/errors": "npm:2.3.0" - peerDependencies: - typescript: ">=5.3.3" - checksum: 10c0/0780d60771e451cfe22ea614315fed2f37507aa62f83cddb900186f88d4d4532eea298d74796d1dbc8c34321a570b5d9ada25e8f4a5aeadd57aa4e688b4465f5 + "@types/deep-eql": "npm:*" + assertion-error: "npm:^2.0.1" + checksum: 10c0/e0ef1de3b6f8045a5e473e867c8565788c444271409d155588504840ad1a53611011f85072188c2833941189400228c1745d78323dac13fcede9c2b28bacfb2f languageName: node linkType: hard -"@solana/codecs-strings@npm:2.0.0-preview.2": - version: 2.0.0-preview.2 - resolution: "@solana/codecs-strings@npm:2.0.0-preview.2" +"@types/conventional-commits-parser@npm:^5.0.0": + version: 5.0.1 + resolution: "@types/conventional-commits-parser@npm:5.0.1" dependencies: - "@solana/codecs-core": "npm:2.0.0-preview.2" - "@solana/codecs-numbers": "npm:2.0.0-preview.2" - "@solana/errors": "npm:2.0.0-preview.2" - peerDependencies: - fastestsmallesttextencoderdecoder: ^1.0.22 - checksum: 10c0/76f741de87bb8b95912467981fe3263d10cc12c3ba66f31d60c28474de57170b7ba0d0f1f6ee9ce6902a137433787a6fc72395ce451a08809207e4d85a621729 + "@types/node": "npm:*" + checksum: 10c0/4b7b561f195f779d07f973801a9f15d77cd58ceb67e817459688b11cc735288d30de050f445c91f4cd2c007fa86824e59a6e3cde602d150b828c4474f6e67be5 languageName: node linkType: hard -"@solana/codecs-strings@npm:2.0.0-rc.1": - version: 2.0.0-rc.1 - resolution: "@solana/codecs-strings@npm:2.0.0-rc.1" +"@types/debug@npm:^4.0.0": + version: 4.1.12 + resolution: "@types/debug@npm:4.1.12" dependencies: - "@solana/codecs-core": "npm:2.0.0-rc.1" - "@solana/codecs-numbers": "npm:2.0.0-rc.1" - "@solana/errors": "npm:2.0.0-rc.1" - peerDependencies: - fastestsmallesttextencoderdecoder: ^1.0.22 - typescript: ">=5" - checksum: 10c0/7f3483407de7e324075a85f2f8c91103021d6b8f38cfd4cf78603cbd7b00ea8b828a0cb9b61fb2b0db6d3e733fdf358006de23278cf3b103af1f1de4f3f66233 + "@types/ms": "npm:*" + checksum: 10c0/5dcd465edbb5a7f226e9a5efd1f399c6172407ef5840686b73e3608ce135eeca54ae8037dcd9f16bdb2768ac74925b820a8b9ecc588a58ca09eca6acabe33e2f languageName: node linkType: hard -"@solana/codecs@npm:2.0.0-preview.2": - version: 2.0.0-preview.2 - resolution: "@solana/codecs@npm:2.0.0-preview.2" - dependencies: - "@solana/codecs-core": "npm:2.0.0-preview.2" - "@solana/codecs-data-structures": "npm:2.0.0-preview.2" - "@solana/codecs-numbers": "npm:2.0.0-preview.2" - "@solana/codecs-strings": "npm:2.0.0-preview.2" - "@solana/options": "npm:2.0.0-preview.2" - checksum: 10c0/50f8177c042b1a34c83b66ecd0ff67cb0713dc3c4fbac6988d14224ee784d25d626a791eec74a77b60a83be0b5b708832c09067bcee9bad2eede19a0b77c6a82 +"@types/deep-eql@npm:*": + version: 4.0.2 + resolution: "@types/deep-eql@npm:4.0.2" + checksum: 10c0/bf3f811843117900d7084b9d0c852da9a044d12eb40e6de73b552598a6843c21291a8a381b0532644574beecd5e3491c5ff3a0365ab86b15d59862c025384844 languageName: node linkType: hard -"@solana/codecs@npm:2.0.0-rc.1": - version: 2.0.0-rc.1 - resolution: "@solana/codecs@npm:2.0.0-rc.1" +"@types/dns-packet@npm:*": + version: 5.6.5 + resolution: "@types/dns-packet@npm:5.6.5" dependencies: - "@solana/codecs-core": "npm:2.0.0-rc.1" - "@solana/codecs-data-structures": "npm:2.0.0-rc.1" - "@solana/codecs-numbers": "npm:2.0.0-rc.1" - "@solana/codecs-strings": "npm:2.0.0-rc.1" - "@solana/options": "npm:2.0.0-rc.1" - peerDependencies: - typescript: ">=5" - checksum: 10c0/5f4a30b1fed60c9442ab73cbe413fe528e5b316f602eb745b0de84a9622ceb8af9e7a7a9f8e2f5d730280858f9e4e0ab861729311c0aa55cc253427707815ef2 + "@types/node": "npm:*" + checksum: 10c0/70fa9cb77a614f65288a48749d28cc9f40ce6c60980e2b75b25eac0b4e1e4109d14edf5151fa5e7b10aae1ec6b1094a2f171b9941191ff4c9a7afe23116b9edc languageName: node linkType: hard -"@solana/errors@npm:2.0.0-preview.2": - version: 2.0.0-preview.2 - resolution: "@solana/errors@npm:2.0.0-preview.2" +"@types/estree-jsx@npm:^1.0.0": + version: 1.0.5 + resolution: "@types/estree-jsx@npm:1.0.5" dependencies: - chalk: "npm:^5.3.0" - commander: "npm:^12.0.0" - bin: - errors: bin/cli.js - checksum: 10c0/5f71ef1306e3c4c858854e5b29750c200c0e49bb9a3e4e2633dd9daa40dc92a940e39e23423b936b110e2bdca092fac546983cde9145a1ad97601ac4d4fdb211 + "@types/estree": "npm:*" + checksum: 10c0/07b354331516428b27a3ab99ee397547d47eb223c34053b48f84872fafb841770834b90cc1a0068398e7c7ccb15ec51ab00ec64b31dc5e3dbefd624638a35c6d languageName: node linkType: hard -"@solana/errors@npm:2.0.0-rc.1": - version: 2.0.0-rc.1 - resolution: "@solana/errors@npm:2.0.0-rc.1" - dependencies: - chalk: "npm:^5.3.0" - commander: "npm:^12.1.0" - peerDependencies: - typescript: ">=5" - bin: - errors: bin/cli.mjs - checksum: 10c0/26b9edb43b4ba86b36aefb020a6e47706554ce57a95a357a55879c570ffd000417b1d9567b94120d114dfd38051e8362c18ee082b58cc34690c4c00f1040423c - languageName: node - linkType: hard - -"@solana/errors@npm:2.3.0": - version: 2.3.0 - resolution: "@solana/errors@npm:2.3.0" - dependencies: - chalk: "npm:^5.4.1" - commander: "npm:^14.0.0" - peerDependencies: - typescript: ">=5.3.3" - bin: - errors: bin/cli.mjs - checksum: 10c0/55bef8828b4a6bb5222d3dbfe27162684906ba90753126b9cfd1e8e39c6c29209c0f4f331cfb1d3d1cf43fd456022af92337b4234a145d8de292588197c12c71 - languageName: node - linkType: hard - -"@solana/options@npm:2.0.0-preview.2": - version: 2.0.0-preview.2 - resolution: "@solana/options@npm:2.0.0-preview.2" - dependencies: - "@solana/codecs-core": "npm:2.0.0-preview.2" - "@solana/codecs-numbers": "npm:2.0.0-preview.2" - checksum: 10c0/e749161b042145d826d6bc1874e37b2fda725e737dd010c696fe1d7300a93eb48a80c2d2376361cd658ee04b4398194fdfa16e858c39ad737337491a8a71e095 - languageName: node - linkType: hard - -"@solana/options@npm:2.0.0-rc.1": - version: 2.0.0-rc.1 - resolution: "@solana/options@npm:2.0.0-rc.1" - dependencies: - "@solana/codecs-core": "npm:2.0.0-rc.1" - "@solana/codecs-data-structures": "npm:2.0.0-rc.1" - "@solana/codecs-numbers": "npm:2.0.0-rc.1" - "@solana/codecs-strings": "npm:2.0.0-rc.1" - "@solana/errors": "npm:2.0.0-rc.1" - peerDependencies: - typescript: ">=5" - checksum: 10c0/967dc01c12b0433412a74cb498262f7d0bdf4c3b002936d8f5761bcb189929c35fe0b32c2f793796a975366e2c1245dd34c1818e4f44f483932fdfa3fde4f3e9 - languageName: node - linkType: hard - -"@solana/spl-token-group@npm:^0.0.4": - version: 0.0.4 - resolution: "@solana/spl-token-group@npm:0.0.4" - dependencies: - "@solana/codecs": "npm:2.0.0-preview.2" - "@solana/spl-type-length-value": "npm:0.1.0" - peerDependencies: - "@solana/web3.js": ^1.91.6 - checksum: 10c0/8e2896f41c174f202d70b6602d889b631a00a3aaa80217001e5425b13510014f93fc736f6167af0cadd0f1887ad3eda440c67cddf8dbbf4d69e6858c19076719 - languageName: node - linkType: hard - -"@solana/spl-token-metadata@npm:^0.1.4": - version: 0.1.6 - resolution: "@solana/spl-token-metadata@npm:0.1.6" - dependencies: - "@solana/codecs": "npm:2.0.0-rc.1" - peerDependencies: - "@solana/web3.js": ^1.95.3 - checksum: 10c0/a2ea535ac28cf9b8f499c2e2aced7ce9134b0728a0c1d4c8f2dfce8fe01ae66d94ccaca8f1f677c9613d3dbc913845c29df785efeafc25d9398e830fba4a626f - languageName: node - linkType: hard - -"@solana/spl-token@npm:0.4.6": - version: 0.4.6 - resolution: "@solana/spl-token@npm:0.4.6" - dependencies: - "@solana/buffer-layout": "npm:^4.0.0" - "@solana/buffer-layout-utils": "npm:^0.2.0" - "@solana/spl-token-group": "npm:^0.0.4" - "@solana/spl-token-metadata": "npm:^0.1.4" - buffer: "npm:^6.0.3" - peerDependencies: - "@solana/web3.js": ^1.91.6 - checksum: 10c0/a737237bf1e9a369200c56b1e9a9c458e09c5593cec2410457e70d1193495913218015586037ff93d7b3c365e44cc335254b7544fb154b49be840082ece2441c - languageName: node - linkType: hard - -"@solana/spl-type-length-value@npm:0.1.0": - version: 0.1.0 - resolution: "@solana/spl-type-length-value@npm:0.1.0" - dependencies: - buffer: "npm:^6.0.3" - checksum: 10c0/a8f2fd6308dffa27827799146857a778ff807380578e187023f8fe90ebf8a68ed1f9f74a0c196cde7b757ea188ff2af040a727c18bb3c86a82f62fe3ec4c43bb - languageName: node - linkType: hard - -"@solana/web3.js@npm:^1.32.0": - version: 1.98.4 - resolution: "@solana/web3.js@npm:1.98.4" - dependencies: - "@babel/runtime": "npm:^7.25.0" - "@noble/curves": "npm:^1.4.2" - "@noble/hashes": "npm:^1.4.0" - "@solana/buffer-layout": "npm:^4.0.1" - "@solana/codecs-numbers": "npm:^2.1.0" - agentkeepalive: "npm:^4.5.0" - bn.js: "npm:^5.2.1" - borsh: "npm:^0.7.0" - bs58: "npm:^4.0.1" - buffer: "npm:6.0.3" - fast-stable-stringify: "npm:^1.0.0" - jayson: "npm:^4.1.1" - node-fetch: "npm:^2.7.0" - rpc-websockets: "npm:^9.0.2" - superstruct: "npm:^2.0.2" - checksum: 10c0/73bf7b6b5b65c7f264587182bbfd65327775b4f3e4831750de6356f58858e57d49213098eec671650940bb7a9bbaa1f352e0710c4075f126d903d72ddddcbdbc - languageName: node - linkType: hard - -"@spacingbat3/lss@npm:^1.0.0": - version: 1.2.0 - resolution: "@spacingbat3/lss@npm:1.2.0" - checksum: 10c0/b467343209f3b2beaf2500c1d75c5824b59ed5aba3cdf7688194751ee822e9df4cc990ba93176e762c59d346de39109f12ac666409232c12a53b27798c6e34c5 - languageName: node - linkType: hard - -"@standard-schema/spec@npm:^1.0.0, @standard-schema/spec@npm:^1.1.0": - version: 1.1.0 - resolution: "@standard-schema/spec@npm:1.1.0" - checksum: 10c0/d90f55acde4b2deb983529c87e8025fa693de1a5e8b49ecc6eb84d1fd96328add0e03d7d551442156c7432fd78165b2c26ff561b970a9a881f046abb78d6a526 - languageName: node - linkType: hard - -"@surma/rollup-plugin-off-main-thread@npm:^2.2.3": - version: 2.2.3 - resolution: "@surma/rollup-plugin-off-main-thread@npm:2.2.3" - dependencies: - ejs: "npm:^3.1.6" - json5: "npm:^2.2.0" - magic-string: "npm:^0.25.0" - string.prototype.matchall: "npm:^4.0.6" - checksum: 10c0/4f36a7488cdae2907053a48231430e8e9aa8f1903a96131bf8325786afba3224011f9120164cae75043558bd051881050b071958388fe477927d340b1cc1a066 - languageName: node - linkType: hard - -"@swc/helpers@npm:^0.5.11": - version: 0.5.17 - resolution: "@swc/helpers@npm:0.5.17" - dependencies: - tslib: "npm:^2.8.0" - checksum: 10c0/fe1f33ebb968558c5a0c595e54f2e479e4609bff844f9ca9a2d1ffd8dd8504c26f862a11b031f48f75c95b0381c2966c3dd156e25942f90089badd24341e7dbb - languageName: node - linkType: hard - -"@szmarczak/http-timer@npm:^4.0.5": - version: 4.0.6 - resolution: "@szmarczak/http-timer@npm:4.0.6" - dependencies: - defer-to-connect: "npm:^2.0.0" - checksum: 10c0/73946918c025339db68b09abd91fa3001e87fc749c619d2e9c2003a663039d4c3cb89836c98a96598b3d47dec2481284ba85355392644911f5ecd2336536697f - languageName: node - linkType: hard - -"@tootallnate/once@npm:3.0.1": - version: 3.0.1 - resolution: "@tootallnate/once@npm:3.0.1" - checksum: 10c0/a66a5be492a19337be450056f0225f34abb7e88845bd1f5899211134827a0d90937d8ef161f8ce663aa8fc1505d39ad016e497963f2780d8199ce2067d2b1317 - languageName: node - linkType: hard - -"@tybys/wasm-util@npm:^0.10.1": - version: 0.10.1 - resolution: "@tybys/wasm-util@npm:0.10.1" - dependencies: - tslib: "npm:^2.4.0" - checksum: 10c0/b255094f293794c6d2289300c5fbcafbb5532a3aed3a5ffd2f8dc1828e639b88d75f6a376dd8f94347a44813fd7a7149d8463477a9a49525c8b2dcaa38c2d1e8 - languageName: node - linkType: hard - -"@types/appdmg@npm:^0.5.5": - version: 0.5.5 - resolution: "@types/appdmg@npm:0.5.5" - dependencies: - "@types/node": "npm:*" - checksum: 10c0/9aa1b38a27b9310fcb6fc3fdac2aab4d3d05a0165a485c4a3a09d75712e4ea6a2e5f1e75a1a657c2e071bba92344dc0610fdb89320308601dd1e596f1aa57da0 - languageName: node - linkType: hard - -"@types/babel__core@npm:^7.20.5": - version: 7.20.5 - resolution: "@types/babel__core@npm:7.20.5" - dependencies: - "@babel/parser": "npm:^7.20.7" - "@babel/types": "npm:^7.20.7" - "@types/babel__generator": "npm:*" - "@types/babel__template": "npm:*" - "@types/babel__traverse": "npm:*" - checksum: 10c0/bdee3bb69951e833a4b811b8ee9356b69a61ed5b7a23e1a081ec9249769117fa83aaaf023bb06562a038eb5845155ff663e2d5c75dd95c1d5ccc91db012868ff - languageName: node - linkType: hard - -"@types/babel__generator@npm:*": - version: 7.27.0 - resolution: "@types/babel__generator@npm:7.27.0" - dependencies: - "@babel/types": "npm:^7.0.0" - checksum: 10c0/9f9e959a8792df208a9d048092fda7e1858bddc95c6314857a8211a99e20e6830bdeb572e3587ae8be5429e37f2a96fcf222a9f53ad232f5537764c9e13a2bbd - languageName: node - linkType: hard - -"@types/babel__template@npm:*": - version: 7.4.4 - resolution: "@types/babel__template@npm:7.4.4" - dependencies: - "@babel/parser": "npm:^7.1.0" - "@babel/types": "npm:^7.0.0" - checksum: 10c0/cc84f6c6ab1eab1427e90dd2b76ccee65ce940b778a9a67be2c8c39e1994e6f5bbc8efa309f6cea8dc6754994524cd4d2896558df76d92e7a1f46ecffee7112b - languageName: node - linkType: hard - -"@types/babel__traverse@npm:*": - version: 7.28.0 - resolution: "@types/babel__traverse@npm:7.28.0" - dependencies: - "@babel/types": "npm:^7.28.2" - checksum: 10c0/b52d7d4e8fc6a9018fe7361c4062c1c190f5778cf2466817cb9ed19d69fbbb54f9a85ffedeb748ed8062d2cf7d4cc088ee739848f47c57740de1c48cbf0d0994 - languageName: node - linkType: hard - -"@types/cacheable-request@npm:^6.0.1": - version: 6.0.3 - resolution: "@types/cacheable-request@npm:6.0.3" - dependencies: - "@types/http-cache-semantics": "npm:*" - "@types/keyv": "npm:^3.1.4" - "@types/node": "npm:*" - "@types/responselike": "npm:^1.0.0" - checksum: 10c0/10816a88e4e5b144d43c1d15a81003f86d649776c7f410c9b5e6579d0ad9d4ca71c541962fb403077388b446e41af7ae38d313e46692144985f006ac5e11fa03 - languageName: node - linkType: hard - -"@types/chai@npm:^5.2.2": - version: 5.2.3 - resolution: "@types/chai@npm:5.2.3" - dependencies: - "@types/deep-eql": "npm:*" - assertion-error: "npm:^2.0.1" - checksum: 10c0/e0ef1de3b6f8045a5e473e867c8565788c444271409d155588504840ad1a53611011f85072188c2833941189400228c1745d78323dac13fcede9c2b28bacfb2f - languageName: node - linkType: hard - -"@types/connect@npm:^3.4.33": - version: 3.4.38 - resolution: "@types/connect@npm:3.4.38" - dependencies: - "@types/node": "npm:*" - checksum: 10c0/2e1cdba2c410f25649e77856505cd60223250fa12dff7a503e492208dbfdd25f62859918f28aba95315251fd1f5e1ffbfca1e25e73037189ab85dd3f8d0a148c - languageName: node - linkType: hard - -"@types/conventional-commits-parser@npm:^5.0.0": - version: 5.0.1 - resolution: "@types/conventional-commits-parser@npm:5.0.1" - dependencies: - "@types/node": "npm:*" - checksum: 10c0/4b7b561f195f779d07f973801a9f15d77cd58ceb67e817459688b11cc735288d30de050f445c91f4cd2c007fa86824e59a6e3cde602d150b828c4474f6e67be5 - languageName: node - linkType: hard - -"@types/debug@npm:^4.0.0": - version: 4.1.12 - resolution: "@types/debug@npm:4.1.12" - dependencies: - "@types/ms": "npm:*" - checksum: 10c0/5dcd465edbb5a7f226e9a5efd1f399c6172407ef5840686b73e3608ce135eeca54ae8037dcd9f16bdb2768ac74925b820a8b9ecc588a58ca09eca6acabe33e2f - languageName: node - linkType: hard - -"@types/deep-eql@npm:*": - version: 4.0.2 - resolution: "@types/deep-eql@npm:4.0.2" - checksum: 10c0/bf3f811843117900d7084b9d0c852da9a044d12eb40e6de73b552598a6843c21291a8a381b0532644574beecd5e3491c5ff3a0365ab86b15d59862c025384844 - languageName: node - linkType: hard - -"@types/dns-packet@npm:*": - version: 5.6.5 - resolution: "@types/dns-packet@npm:5.6.5" - dependencies: - "@types/node": "npm:*" - checksum: 10c0/70fa9cb77a614f65288a48749d28cc9f40ce6c60980e2b75b25eac0b4e1e4109d14edf5151fa5e7b10aae1ec6b1094a2f171b9941191ff4c9a7afe23116b9edc - languageName: node - linkType: hard - -"@types/estree-jsx@npm:^1.0.0": - version: 1.0.5 - resolution: "@types/estree-jsx@npm:1.0.5" - dependencies: - "@types/estree": "npm:*" - checksum: 10c0/07b354331516428b27a3ab99ee397547d47eb223c34053b48f84872fafb841770834b90cc1a0068398e7c7ccb15ec51ab00ec64b31dc5e3dbefd624638a35c6d - languageName: node - linkType: hard - -"@types/estree@npm:*, @types/estree@npm:^1.0.0": - version: 1.0.8 - resolution: "@types/estree@npm:1.0.8" - checksum: 10c0/39d34d1afaa338ab9763f37ad6066e3f349444f9052b9676a7cc0252ef9485a41c6d81c9c4e0d26e9077993354edf25efc853f3224dd4b447175ef62bdcc86a5 +"@types/estree@npm:*, @types/estree@npm:^1.0.0": + version: 1.0.8 + resolution: "@types/estree@npm:1.0.8" + checksum: 10c0/39d34d1afaa338ab9763f37ad6066e3f349444f9052b9676a7cc0252ef9485a41c6d81c9c4e0d26e9077993354edf25efc853f3224dd4b447175ef62bdcc86a5 languageName: node linkType: hard @@ -6189,22 +5664,6 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:22.7.5": - version: 22.7.5 - resolution: "@types/node@npm:22.7.5" - dependencies: - undici-types: "npm:~6.19.2" - checksum: 10c0/cf11f74f1a26053ec58066616e3a8685b6bcd7259bc569738b8f752009f9f0f7f85a1b2d24908e5b0f752482d1e8b6babdf1fbb25758711ec7bb9500bfcd6e60 - languageName: node - linkType: hard - -"@types/node@npm:^12.12.54": - version: 12.20.55 - resolution: "@types/node@npm:12.20.55" - checksum: 10c0/3b190bb0410047d489c49bbaab592d2e6630de6a50f00ba3d7d513d59401d279972a8f5a598b5bb8ddc1702f8a2f4ec57a65d93852f9c329639738e7053637d1 - languageName: node - linkType: hard - "@types/node@npm:^20.17.9": version: 20.19.17 resolution: "@types/node@npm:20.19.17" @@ -6237,15 +5696,6 @@ __metadata: languageName: node linkType: hard -"@types/proper-lockfile@npm:4.1.2": - version: 4.1.2 - resolution: "@types/proper-lockfile@npm:4.1.2" - dependencies: - "@types/retry": "npm:*" - checksum: 10c0/125d4120b9bc1c5f0a1eca979caa6794535f7ac1a90ff56c16158c964635c7b66bd01a9f5b413b6241863b4f7a0edb17204c5aade57ff8a2649b3248604618e0 - languageName: node - linkType: hard - "@types/react-dom@npm:19.1.2": version: 19.1.2 resolution: "@types/react-dom@npm:19.1.2" @@ -6289,13 +5739,6 @@ __metadata: languageName: node linkType: hard -"@types/retry@npm:*": - version: 0.12.5 - resolution: "@types/retry@npm:0.12.5" - checksum: 10c0/eaaca483cc62f2f02c0b8486847ee70986ca7f97afd7363037247dbe3e98df8bd56a5b50d58b1e96768a5a1be0307010d86e9991bd458d72e8df88be471bd720 - languageName: node - linkType: hard - "@types/sinon@npm:^20.0.0": version: 20.0.0 resolution: "@types/sinon@npm:20.0.0" @@ -6340,19 +5783,10 @@ __metadata: languageName: node linkType: hard -"@types/uuid@npm:^8.3.4": - version: 8.3.4 - resolution: "@types/uuid@npm:8.3.4" - checksum: 10c0/b9ac98f82fcf35962317ef7dc44d9ac9e0f6fdb68121d384c88fe12ea318487d5585d3480fa003cf28be86a3bbe213ca688ba786601dce4a97724765eb5b1cf2 - languageName: node - linkType: hard - -"@types/ws@npm:^7.4.4": - version: 7.4.7 - resolution: "@types/ws@npm:7.4.7" - dependencies: - "@types/node": "npm:*" - checksum: 10c0/f1f53febd8623a85cef2652949acd19d83967e350ea15a851593e3033501750a1e04f418552e487db90a3d48611a1cff3ffcf139b94190c10f2fd1e1dc95ff10 +"@types/uuid@npm:^10.0.0": + version: 10.0.0 + resolution: "@types/uuid@npm:10.0.0" + checksum: 10c0/9a1404bf287164481cb9b97f6bb638f78f955be57c40c6513b7655160beb29df6f84c915aaf4089a1559c216557dc4d2f79b48d978742d3ae10b937420ddac60 languageName: node linkType: hard @@ -6492,18 +5926,21 @@ __metadata: languageName: node linkType: hard -"@vitejs/plugin-react@npm:4.3.4": - version: 4.3.4 - resolution: "@vitejs/plugin-react@npm:4.3.4" +"@vitejs/plugin-react@npm:6.0.0": + version: 6.0.0 + resolution: "@vitejs/plugin-react@npm:6.0.0" dependencies: - "@babel/core": "npm:^7.26.0" - "@babel/plugin-transform-react-jsx-self": "npm:^7.25.9" - "@babel/plugin-transform-react-jsx-source": "npm:^7.25.9" - "@types/babel__core": "npm:^7.20.5" - react-refresh: "npm:^0.14.2" + "@rolldown/pluginutils": "npm:1.0.0-rc.7" peerDependencies: - vite: ^4.2.0 || ^5.0.0 || ^6.0.0 - checksum: 10c0/38a47a1dbafae0b97142943d83ee3674cb3331153a60b1a3fd29d230c12c9dfe63b7c345b231a3450168ed8a9375a9a1a253c3d85e9efdc19478c0d56b98496c + "@rolldown/plugin-babel": ^0.1.7 + babel-plugin-react-compiler: ^1.0.0 + vite: ^8.0.0 + peerDependenciesMeta: + "@rolldown/plugin-babel": + optional: true + babel-plugin-react-compiler: + optional: true + checksum: 10c0/f65cb9846a3125b19e95cf96ee24b54b68003887b09fbb66b5521e1fed4308632c0ae3c1f08d9244920bb8d7def4ea2adb9cc87f74ba2b8778ec76f1f4786096 languageName: node linkType: hard @@ -6608,7 +6045,7 @@ __metadata: languageName: node linkType: hard -"abbrev@npm:1, abbrev@npm:^1.0.0": +"abbrev@npm:^1.0.0": version: 1.1.1 resolution: "abbrev@npm:1.1.1" checksum: 10c0/3f762677702acb24f65e813070e306c61fafe25d4b2583f9dfc935131f774863f3addd5741572ed576bd69cabe473c5af18e1e108b829cb7b6b4747884f726e6 @@ -6703,13 +6140,6 @@ __metadata: languageName: node linkType: hard -"aes-js@npm:4.0.0-beta.5": - version: 4.0.0-beta.5 - resolution: "aes-js@npm:4.0.0-beta.5" - checksum: 10c0/444f4eefa1e602cbc4f2a3c644bc990f93fd982b148425fee17634da510586fc09da940dcf8ace1b2d001453c07ff042e55f7a0482b3cc9372bf1ef75479090c - languageName: node - linkType: hard - "agent-base@npm:6, agent-base@npm:^6.0.2": version: 6.0.2 resolution: "agent-base@npm:6.0.2" @@ -6726,7 +6156,7 @@ __metadata: languageName: node linkType: hard -"agentkeepalive@npm:^4.1.3, agentkeepalive@npm:^4.2.1, agentkeepalive@npm:^4.5.0": +"agentkeepalive@npm:^4.2.1": version: 4.6.0 resolution: "agentkeepalive@npm:4.6.0" dependencies: @@ -6842,23 +6272,6 @@ __metadata: languageName: node linkType: hard -"aproba@npm:^1.0.3 || ^2.0.0": - version: 2.1.0 - resolution: "aproba@npm:2.1.0" - checksum: 10c0/ec8c1d351bac0717420c737eb062766fb63bde1552900e0f4fdad9eb064c3824fef23d1c416aa5f7a80f21ca682808e902d79b7c9ae756d342b5f1884f36932f - languageName: node - linkType: hard - -"are-we-there-yet@npm:^3.0.0": - version: 3.0.1 - resolution: "are-we-there-yet@npm:3.0.1" - dependencies: - delegates: "npm:^1.0.0" - readable-stream: "npm:^3.6.0" - checksum: 10c0/8373f289ba42e4b5ec713bb585acdac14b5702c75f2a458dc985b9e4fa5762bc5b46b40a21b72418a3ed0cfb5e35bdc317ef1ae132f3035f633d581dd03168c3 - languageName: node - linkType: hard - "argparse@npm:^2.0.1": version: 2.0.1 resolution: "argparse@npm:2.0.1" @@ -7108,22 +6521,6 @@ __metadata: languageName: node linkType: hard -"base-x@npm:^3.0.2": - version: 3.0.11 - resolution: "base-x@npm:3.0.11" - dependencies: - safe-buffer: "npm:^5.0.1" - checksum: 10c0/4c5b8cd9cef285973b0460934be4fc890eedfd22a8aca527fac3527f041c5d1c912f7b9a6816f19e43e69dc7c29a5deabfa326bd3d6a57ee46af0ad46e3991d5 - languageName: node - linkType: hard - -"base-x@npm:^4.0.0": - version: 4.0.1 - resolution: "base-x@npm:4.0.1" - checksum: 10c0/26a5a24105b27d94f21fa0640d5345620d758ab5d9269cf11828c502094d4f2fc5e84f3bfee63e9af29e83e0d3c97129264f1ac9653620b9bdab3f81d6aca881 - languageName: node - linkType: hard - "base32-encode@npm:^0.1.0 || ^1.0.0": version: 1.2.0 resolution: "base32-encode@npm:1.2.0" @@ -7167,41 +6564,25 @@ __metadata: languageName: node linkType: hard -"big-integer@npm:1.6.x": - version: 1.6.52 - resolution: "big-integer@npm:1.6.52" - checksum: 10c0/9604224b4c2ab3c43c075d92da15863077a9f59e5d4205f4e7e76acd0cd47e8d469ec5e5dba8d9b32aa233951893b29329ca56ac80c20ce094b4a647a66abae0 - languageName: node - linkType: hard - -"bigint-buffer@npm:^1.1.5": - version: 1.1.5 - resolution: "bigint-buffer@npm:1.1.5" +"better-sqlite3@npm:12.9.0": + version: 12.9.0 + resolution: "better-sqlite3@npm:12.9.0" dependencies: - bindings: "npm:^1.3.0" + bindings: "npm:^1.5.0" node-gyp: "npm:latest" - checksum: 10c0/aa41e53d38242a2f05f85b08eaf592635f92e5328822784cda518232b1644efdbf29ab3664951b174cc645848add4605488e25c9439bcc749660c885b4ff6118 - languageName: node - linkType: hard - -"bignumber.js@npm:^9.0.1": - version: 9.3.1 - resolution: "bignumber.js@npm:9.3.1" - checksum: 10c0/61342ba5fe1c10887f0ecf5be02ff6709271481aff48631f86b4d37d55a99b87ce441cfd54df3d16d10ee07ceab7e272fc0be430c657ffafbbbf7b7d631efb75 + prebuild-install: "npm:^7.1.1" + checksum: 10c0/69ee0d908fa6a5c8643872aa664686ed02476e88cb654fe37f0fef5845081430d4280c82f5d370e169c2abe7a14a85d9bc718ea720058abf4f7cd9a8dbe227f0 languageName: node linkType: hard -"binary@npm:^0.3.0": - version: 0.3.0 - resolution: "binary@npm:0.3.0" - dependencies: - buffers: "npm:~0.1.1" - chainsaw: "npm:~0.1.0" - checksum: 10c0/752c2c2ff9f23506b3428cc8accbfcc92fec07bf8a31a1953e9c7e2193eb5db8a67252034ab93e8adab2a1c43f3eeb3da0bacae0320e9814f3ca127942c55871 +"big-integer@npm:1.6.x": + version: 1.6.52 + resolution: "big-integer@npm:1.6.52" + checksum: 10c0/9604224b4c2ab3c43c075d92da15863077a9f59e5d4205f4e7e76acd0cd47e8d469ec5e5dba8d9b32aa233951893b29329ca56ac80c20ce094b4a647a66abae0 languageName: node linkType: hard -"bindings@npm:^1.3.0, bindings@npm:^1.5.0": +"bindings@npm:^1.5.0": version: 1.5.0 resolution: "bindings@npm:1.5.0" dependencies: @@ -7345,7 +6726,7 @@ __metadata: languageName: node linkType: hard -"bn.js@npm:^5.2.0, bn.js@npm:^5.2.1, bn.js@npm:^5.2.2": +"bn.js@npm:^5.2.1, bn.js@npm:^5.2.2": version: 5.2.2 resolution: "bn.js@npm:5.2.2" checksum: 10c0/cb97827d476aab1a0194df33cd84624952480d92da46e6b4a19c32964aa01553a4a613502396712704da2ec8f831cf98d02e74ca03398404bd78a037ba93f2ab @@ -7366,31 +6747,6 @@ __metadata: languageName: node linkType: hard -"borsh@npm:1.0.0": - version: 1.0.0 - resolution: "borsh@npm:1.0.0" - checksum: 10c0/dbf893af43e5efc6bc9ae2579d5c12514da72437311a30d8c3cfa77c1d51385e0b2a7242f193f7af980e71161ed9db524ab23301752b4401a1b8bfc47f09957b - languageName: node - linkType: hard - -"borsh@npm:2.0.0": - version: 2.0.0 - resolution: "borsh@npm:2.0.0" - checksum: 10c0/59a96dd9c707450862198510fc518dff92ac7f0ed0d228c9b38affd968bb4debec805c6e2afed8ec13efd9fad63fd47f8e6ed420253542a8d10fb59f28fc7d01 - languageName: node - linkType: hard - -"borsh@npm:^0.7.0": - version: 0.7.0 - resolution: "borsh@npm:0.7.0" - dependencies: - bn.js: "npm:^5.2.0" - bs58: "npm:^4.0.0" - text-encoding-utf-8: "npm:^1.0.2" - checksum: 10c0/513b3e51823d2bf5be77cec27742419d2b0427504825dd7ceb00dedb820f246a4762f04b83d5e3aa39c8e075b3cbaeb7ca3c90bd1cbeecccb4a510575be8c581 - languageName: node - linkType: hard - "bplist-creator@npm:~0.0.3": version: 0.0.8 resolution: "bplist-creator@npm:0.0.8" @@ -7534,15 +6890,6 @@ __metadata: languageName: node linkType: hard -"browserify-zlib@npm:^0.1.4": - version: 0.1.4 - resolution: "browserify-zlib@npm:0.1.4" - dependencies: - pako: "npm:~0.2.0" - checksum: 10c0/0cde7ca5d33d43125649330fd75c056397e53731956a2593c4a2529f4e609a8e6abdb2b8e1921683abf5645375b92cfb2a21baa42fe3c9fc3e2556d32043af93 - languageName: node - linkType: hard - "browserify-zlib@npm:^0.2.0": version: 0.2.0 resolution: "browserify-zlib@npm:0.2.0" @@ -7567,24 +6914,6 @@ __metadata: languageName: node linkType: hard -"bs58@npm:5.0.0": - version: 5.0.0 - resolution: "bs58@npm:5.0.0" - dependencies: - base-x: "npm:^4.0.0" - checksum: 10c0/0d1b05630b11db48039421b5975cb2636ae0a42c62f770eec257b2e5c7d94cb5f015f440785f3ec50870a6e9b1132b35bd0a17c7223655b22229f24b2a3491d1 - languageName: node - linkType: hard - -"bs58@npm:^4.0.0, bs58@npm:^4.0.1": - version: 4.0.1 - resolution: "bs58@npm:4.0.1" - dependencies: - base-x: "npm:^3.0.2" - checksum: 10c0/613a1b1441e754279a0e3f44d1faeb8c8e838feef81e550efe174ff021dd2e08a4c9ae5805b52dfdde79f97b5c0918c78dd24a0eb726c4a94365f0984a0ffc65 - languageName: node - linkType: hard - "buffer-alloc-unsafe@npm:^1.1.0": version: 1.1.0 resolution: "buffer-alloc-unsafe@npm:1.1.0" @@ -7630,7 +6959,7 @@ __metadata: languageName: node linkType: hard -"buffer@npm:6.0.3, buffer@npm:^6.0.3, buffer@npm:~6.0.3": +"buffer@npm:6.0.3, buffer@npm:^6.0.3": version: 6.0.3 resolution: "buffer@npm:6.0.3" dependencies: @@ -7650,13 +6979,6 @@ __metadata: languageName: node linkType: hard -"buffers@npm:~0.1.1": - version: 0.1.1 - resolution: "buffers@npm:0.1.1" - checksum: 10c0/c7a3284ddb4f5c65431508be65535e3739215f7996aa03e5d3a3fcf03144d35ffca7d9825572e6c6c6007f5308b8553c7b2941fcf5e56fac20dedea7178f5f71 - languageName: node - linkType: hard - "bufferutil@npm:^4.0.1": version: 4.0.9 resolution: "bufferutil@npm:4.0.9" @@ -7723,13 +7045,6 @@ __metadata: languageName: node linkType: hard -"cachedir@npm:^2.3.0": - version: 2.4.0 - resolution: "cachedir@npm:2.4.0" - checksum: 10c0/76bff9009f2c446cd3777a4aede99af634a89670a67012b8041f65e951d3d36cefe8940341ea80c72219ee9913fa1f6146824cd9dfe9874a4bded728af7e6d76 - languageName: node - linkType: hard - "call-bind-apply-helpers@npm:^1.0.0, call-bind-apply-helpers@npm:^1.0.1, call-bind-apply-helpers@npm:^1.0.2": version: 1.0.2 resolution: "call-bind-apply-helpers@npm:1.0.2" @@ -7794,15 +7109,6 @@ __metadata: languageName: node linkType: hard -"captcha-canvas@npm:3.4.0": - version: 3.4.0 - resolution: "captcha-canvas@npm:3.4.0" - dependencies: - skia-canvas: "npm:^3.0.8" - checksum: 10c0/9b06751cece7786b36d8e368f7af14bb71d03618cd351cd626294937de2a308b303bab59c27664e028de1e3aba475ad32496f95a22d59b35bb733f5324ee6f43 - languageName: node - linkType: hard - "cbor@npm:10.0.11": version: 10.0.11 resolution: "cbor@npm:10.0.11" @@ -7844,15 +7150,6 @@ __metadata: languageName: node linkType: hard -"chainsaw@npm:~0.1.0": - version: 0.1.0 - resolution: "chainsaw@npm:0.1.0" - dependencies: - traverse: "npm:>=0.3.0 <0.4" - checksum: 10c0/c27b8b10fd372b07d80b3f63615ce5ecb9bb1b0be6934fe5de3bb0328f9ffad5051f206bd7a0b426b85778fee0c063a1f029fb32cc639f3b2ee38d6b39f52c5c - languageName: node - linkType: hard - "chalk@npm:^2.4.1": version: 2.4.2 resolution: "chalk@npm:2.4.2" @@ -7874,7 +7171,7 @@ __metadata: languageName: node linkType: hard -"chalk@npm:^5.3.0, chalk@npm:^5.4.1": +"chalk@npm:^5.3.0": version: 5.6.2 resolution: "chalk@npm:5.6.2" checksum: 10c0/99a4b0f0e7991796b1e7e3f52dceb9137cae2a9dfc8fc0784a550dc4c558e15ab32ed70b14b21b52beb2679b4892b41a0aa44249bcb996f01e125d58477c6976 @@ -8175,15 +7472,6 @@ __metadata: languageName: node linkType: hard -"color-support@npm:^1.1.3": - version: 1.1.3 - resolution: "color-support@npm:1.1.3" - bin: - color-support: bin.js - checksum: 10c0/8ffeaa270a784dc382f62d9be0a98581db43e11eee301af14734a6d089bd456478b1a8b3e7db7ca7dc5b18a75f828f775c44074020b51c05fc00e6d0992b1cc6 - languageName: node - linkType: hard - "colorette@npm:^2.0.16, colorette@npm:^2.0.20": version: 2.0.20 resolution: "colorette@npm:2.0.20" @@ -8214,7 +7502,7 @@ __metadata: languageName: node linkType: hard -"commander@npm:^12.0.0, commander@npm:^12.1.0": +"commander@npm:^12.1.0": version: 12.1.0 resolution: "commander@npm:12.1.0" checksum: 10c0/6e1996680c083b3b897bfc1cfe1c58dfbcd9842fd43e1aaf8a795fbc237f65efcc860a3ef457b318e73f29a4f4a28f6403c3d653d021d960e4632dd45bde54a9 @@ -8228,7 +7516,7 @@ __metadata: languageName: node linkType: hard -"commander@npm:^2.20.0, commander@npm:^2.20.3, commander@npm:^2.8.1": +"commander@npm:^2.20.0, commander@npm:^2.8.1": version: 2.20.3 resolution: "commander@npm:2.20.3" checksum: 10c0/74c781a5248c2402a0a3e966a0a2bba3c054aad144f5c023364be83265e796b20565aa9feff624132ff629aa64e16999fa40a743c10c12f7c61e96a794b99288 @@ -8347,13 +7635,6 @@ __metadata: languageName: node linkType: hard -"console-control-strings@npm:^1.1.0": - version: 1.1.0 - resolution: "console-control-strings@npm:1.1.0" - checksum: 10c0/7ab51d30b52d461412cd467721bb82afe695da78fff8f29fe6f6b9cbaac9a2328e27a22a966014df9532100f6dd85370460be8130b9c677891ba36d96a343f50 - languageName: node - linkType: hard - "constants-browserify@npm:^1.0.0": version: 1.0.0 resolution: "constants-browserify@npm:1.0.0" @@ -8691,12 +7972,12 @@ __metadata: languageName: node linkType: hard -"cross-fetch@npm:3.1.6": - version: 3.1.6 - resolution: "cross-fetch@npm:3.1.6" +"cross-fetch@npm:4.1.0": + version: 4.1.0 + resolution: "cross-fetch@npm:4.1.0" dependencies: - node-fetch: "npm:^2.6.11" - checksum: 10c0/39cdd0e16603e43b66fe187bb2a14fb7b4a0b35322ff61d7b08bf48b29a2a7fe835423b27eece46348ab92c45719054e49c4de52de89f279e0935f36a301a5a5 + node-fetch: "npm:^2.7.0" + checksum: 10c0/628b134ea27cfcada67025afe6ef1419813fffc5d63d175553efa75a2334522d450300a0f3f0719029700da80e96327930709d5551cf6deb39bb62f1d536642e languageName: node linkType: hard @@ -9122,13 +8403,6 @@ __metadata: languageName: node linkType: hard -"delay@npm:^5.0.0": - version: 5.0.0 - resolution: "delay@npm:5.0.0" - checksum: 10c0/01cdc4cd0cd35fb622518a3df848e67e09763a38e7cdada2232b6fda9ddda72eddcf74f0e24211200fbe718434f2335f2a2633875a6c96037fefa6de42896ad7 - languageName: node - linkType: hard - "delay@npm:^6.0.0": version: 6.0.0 resolution: "delay@npm:6.0.0" @@ -9153,13 +8427,6 @@ __metadata: languageName: node linkType: hard -"delegates@npm:^1.0.0": - version: 1.0.0 - resolution: "delegates@npm:1.0.0" - checksum: 10c0/ba05874b91148e1db4bf254750c042bf2215febd23a6d3cda2e64896aef79745fbd4b9996488bd3cafb39ce19dbce0fd6e3b6665275638befffe1c9b312b91b5 - languageName: node - linkType: hard - "denque@npm:^2.1.0": version: 2.1.0 resolution: "denque@npm:2.1.0" @@ -9212,7 +8479,7 @@ __metadata: languageName: node linkType: hard -"detect-libc@npm:^2.0.3, detect-libc@npm:^2.1.1, detect-libc@npm:^2.1.2": +"detect-libc@npm:^2.0.3, detect-libc@npm:^2.1.2": version: 2.1.2 resolution: "detect-libc@npm:2.1.2" checksum: 10c0/acc675c29a5649fa1fb6e255f993b8ee829e510b6b56b0910666949c80c364738833417d0edb5f90e4e46be17228b0f2b66a010513984e18b15deeeac49369c4 @@ -9355,18 +8622,6 @@ __metadata: languageName: node linkType: hard -"duplexify@npm:^3.5.0, duplexify@npm:^3.6.0": - version: 3.7.1 - resolution: "duplexify@npm:3.7.1" - dependencies: - end-of-stream: "npm:^1.0.0" - inherits: "npm:^2.0.1" - readable-stream: "npm:^2.0.0" - stream-shift: "npm:^1.0.0" - checksum: 10c0/59d1440c1b4e3a4db35ae96933392703ce83518db1828d06b9b6322920d6cbbf0b7159e88be120385fe459e77f1eb0c7622f26e9ec1f47c9ff05c2b35747dbd3 - languageName: node - linkType: hard - "eastasianwidth@npm:^0.2.0": version: 0.2.0 resolution: "eastasianwidth@npm:0.2.0" @@ -9539,7 +8794,7 @@ __metadata: languageName: node linkType: hard -"encoding@npm:^0.1.12, encoding@npm:^0.1.13": +"encoding@npm:^0.1.13": version: 0.1.13 resolution: "encoding@npm:0.1.13" dependencies: @@ -9578,7 +8833,7 @@ __metadata: languageName: node linkType: hard -"env-paths@npm:3.0.0, env-paths@npm:^3.0.0": +"env-paths@npm:3.0.0": version: 3.0.0 resolution: "env-paths@npm:3.0.0" checksum: 10c0/76dec878cee47f841103bacd7fae03283af16f0702dad65102ef0a556f310b98a377885e0f32943831eb08b5ab37842a323d02529f3dfd5d0a40ca71b01b435f @@ -9767,22 +9022,6 @@ __metadata: languageName: node linkType: hard -"es6-promise@npm:^4.0.3": - version: 4.2.8 - resolution: "es6-promise@npm:4.2.8" - checksum: 10c0/2373d9c5e9a93bdd9f9ed32ff5cb6dd3dd785368d1c21e9bbbfd07d16345b3774ae260f2bd24c8f836a6903f432b4151e7816a7fa8891ccb4e1a55a028ec42c3 - languageName: node - linkType: hard - -"es6-promisify@npm:^5.0.0": - version: 5.0.0 - resolution: "es6-promisify@npm:5.0.0" - dependencies: - es6-promise: "npm:^4.0.3" - checksum: 10c0/23284c6a733cbf7842ec98f41eac742c9f288a78753c4fe46652bae826446ced7615b9e8a5c5f121a08812b1cd478ea58630f3e1c3d70835bd5dcd69c7cd75c9 - languageName: node - linkType: hard - "es6-symbol@npm:^3.1.1, es6-symbol@npm:^3.1.3": version: 3.1.4 resolution: "es6-symbol@npm:3.1.4" @@ -10016,21 +9255,6 @@ __metadata: languageName: node linkType: hard -"ethers@npm:6.16.0": - version: 6.16.0 - resolution: "ethers@npm:6.16.0" - dependencies: - "@adraffy/ens-normalize": "npm:1.10.1" - "@noble/curves": "npm:1.2.0" - "@noble/hashes": "npm:1.3.2" - "@types/node": "npm:22.7.5" - aes-js: "npm:4.0.0-beta.5" - tslib: "npm:2.7.0" - ws: "npm:8.17.1" - checksum: 10c0/65c0ff7016b1592b1961c3b68508902b89fc75e1ad025bab3a722df1b5699fd077551875a7285e65b2d0cfea9a85b2459bb84010a0fa4e4494d231848aee3a73 - languageName: node - linkType: hard - "event-emitter@npm:^0.3.5": version: 0.3.5 resolution: "event-emitter@npm:0.3.5" @@ -10212,13 +9436,6 @@ __metadata: languageName: node linkType: hard -"eyes@npm:^0.1.8": - version: 0.1.8 - resolution: "eyes@npm:0.1.8" - checksum: 10c0/4c79a9cbf45746d8c9f48cc957e35ad8ea336add1c7b8d5a0e002efc791a7a62b27b2188184ef1a1eea7bc3cd06b161791421e0e6c5fe78309705a162c53eea8 - languageName: node - linkType: hard - "fast-deep-equal@npm:^3.1.3": version: 3.1.3 resolution: "fast-deep-equal@npm:3.1.3" @@ -10253,13 +9470,6 @@ __metadata: languageName: node linkType: hard -"fast-stable-stringify@npm:^1.0.0": - version: 1.0.0 - resolution: "fast-stable-stringify@npm:1.0.0" - checksum: 10c0/1d773440c7a9615950577665074746c2e92edafceefa789616ecb6166229e0ccc6dae206ca9b9f7da0d274ba5779162aab2d07940a0f6e52a41a4e555392eb3b - languageName: node - linkType: hard - "fast-uri@npm:^3.0.1": version: 3.1.0 resolution: "fast-uri@npm:3.1.0" @@ -10405,15 +9615,6 @@ __metadata: languageName: node linkType: hard -"find-up@npm:^3.0.0": - version: 3.0.0 - resolution: "find-up@npm:3.0.0" - dependencies: - locate-path: "npm:^3.0.0" - checksum: 10c0/2c2e7d0a26db858e2f624f39038c74739e38306dee42b45f404f770db357947be9d0d587f1cac72d20c114deb38aa57316e879eb0a78b17b46da7dab0a3bd6e3 - languageName: node - linkType: hard - "find-up@npm:^4.1.0": version: 4.1.0 resolution: "find-up@npm:4.1.0" @@ -10723,22 +9924,6 @@ __metadata: languageName: node linkType: hard -"gauge@npm:^4.0.3": - version: 4.0.4 - resolution: "gauge@npm:4.0.4" - dependencies: - aproba: "npm:^1.0.3 || ^2.0.0" - color-support: "npm:^1.1.3" - console-control-strings: "npm:^1.1.0" - has-unicode: "npm:^2.0.1" - signal-exit: "npm:^3.0.7" - string-width: "npm:^4.2.3" - strip-ansi: "npm:^6.0.1" - wide-align: "npm:^1.1.5" - checksum: 10c0/ef10d7981113d69225135f994c9f8c4369d945e64a8fc721d655a3a38421b738c9fe899951721d1b47b73c41fdb5404ac87cc8903b2ecbed95d2800363e7e58c - languageName: node - linkType: hard - "generate-function@npm:^2.0.0": version: 2.3.1 resolution: "generate-function@npm:2.3.1" @@ -11050,39 +10235,13 @@ __metadata: languageName: node linkType: hard -"graceful-fs@npm:^4.1.10, graceful-fs@npm:^4.1.15, graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6": +"graceful-fs@npm:4.2.11, graceful-fs@npm:^4.1.10, graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.6": version: 4.2.11 resolution: "graceful-fs@npm:4.2.11" checksum: 10c0/386d011a553e02bc594ac2ca0bd6d9e4c22d7fa8cfbfc448a6d148c59ea881b092db9dbe3547ae4b88e55f1b01f7c4a2ecc53b310c042793e63aa44cf6c257f2 languageName: node linkType: hard -"graphemesplit@npm:^2.6.0": - version: 2.6.0 - resolution: "graphemesplit@npm:2.6.0" - dependencies: - js-base64: "npm:^3.6.0" - unicode-trie: "npm:^2.0.0" - checksum: 10c0/da90b1ec5dc82f8b70dac251573f44fe341d6c63aa02e2098cbc7678dec450397733de9069746461c97bd686a41775dda2deaed9d26348e5c97e5ebae470116c - languageName: node - linkType: hard - -"gunzip-maybe@npm:^1.4.2": - version: 1.4.2 - resolution: "gunzip-maybe@npm:1.4.2" - dependencies: - browserify-zlib: "npm:^0.1.4" - is-deflate: "npm:^1.0.0" - is-gzip: "npm:^1.0.0" - peek-stream: "npm:^1.1.0" - pumpify: "npm:^1.3.3" - through2: "npm:^2.0.3" - bin: - gunzip-maybe: bin.js - checksum: 10c0/42798a8061759885c2084e1804e51313d14f2dc9cf6c137e222953ec802f914e592d6f9dbf6ad67f4e78eb036e86db017d9c7c93bb23e90cd5ae09326296ed77 - languageName: node - linkType: hard - "hamt-sharding@npm:^2.0.0": version: 2.0.1 resolution: "hamt-sharding@npm:2.0.1" @@ -11183,13 +10342,6 @@ __metadata: languageName: node linkType: hard -"has-unicode@npm:^2.0.1": - version: 2.0.1 - resolution: "has-unicode@npm:2.0.1" - checksum: 10c0/ebdb2f4895c26bb08a8a100b62d362e49b2190bcfd84b76bc4be1a3bd4d254ec52d0dd9f2fbcc093fc5eb878b20c52146f9dfd33e2686ed28982187be593b47c - languageName: node - linkType: hard - "hash-base@npm:^3.0.0, hash-base@npm:^3.1.2": version: 3.1.2 resolution: "hash-base@npm:3.1.2" @@ -11222,16 +10374,6 @@ __metadata: languageName: node linkType: hard -"hasha@npm:^5.2.2": - version: 5.2.2 - resolution: "hasha@npm:5.2.2" - dependencies: - is-stream: "npm:^2.0.0" - type-fest: "npm:^0.8.0" - checksum: 10c0/9d10d4e665a37beea6e18ba3a0c0399a05b26e505c5ff2fe9115b64fedb3ca95f68c89cf15b08ee4d09fd3064b5e1bfc8e8247353c7aa6b7388471d0f86dca74 - languageName: node - linkType: hard - "hashlru@npm:^2.3.0": version: 2.3.0 resolution: "hashlru@npm:2.3.0" @@ -11510,17 +10652,6 @@ __metadata: languageName: node linkType: hard -"http-proxy-agent@npm:^4.0.1": - version: 4.0.1 - resolution: "http-proxy-agent@npm:4.0.1" - dependencies: - "@tootallnate/once": "npm:1" - agent-base: "npm:6" - debug: "npm:4" - checksum: 10c0/4fa4774d65b5331814b74ac05cefea56854fc0d5989c80b13432c1b0d42a14c9f4342ca3ad9f0359a52e78da12b1744c9f8a28e50042136ea9171675d972a5fd - languageName: node - linkType: hard - "http-proxy-agent@npm:^5.0.0": version: 5.0.0 resolution: "http-proxy-agent@npm:5.0.0" @@ -11580,7 +10711,7 @@ __metadata: languageName: node linkType: hard -"https-proxy-agent@npm:^7.0.1, https-proxy-agent@npm:^7.0.6": +"https-proxy-agent@npm:^7.0.1": version: 7.0.6 resolution: "https-proxy-agent@npm:7.0.6" dependencies: @@ -11636,21 +10767,26 @@ __metadata: languageName: node linkType: hard -"i18next-http-backend@npm:2.2.2": - version: 2.2.2 - resolution: "i18next-http-backend@npm:2.2.2" +"i18next-http-backend@npm:3.0.5": + version: 3.0.5 + resolution: "i18next-http-backend@npm:3.0.5" dependencies: - cross-fetch: "npm:3.1.6" - checksum: 10c0/fa9cab6d8f7db09736ffdb346a2b6e22c585c5581f8c74e919504e0b484f909189b3d48a2b91af8b1285eb48386b4984bc8ba4dd7bcf88ab5049c8ab1324817d + cross-fetch: "npm:4.1.0" + checksum: 10c0/ca26555be3487eb34c0b2dc879ba8ddbca426fd3fbd2568cb15cd1a8e2c641b8196cb8420fabb09762d1752d612895e54847f5e7db630a75a82301e7e829a90e languageName: node linkType: hard -"i18next@npm:23.5.1": - version: 23.5.1 - resolution: "i18next@npm:23.5.1" +"i18next@npm:25.10.9": + version: 25.10.9 + resolution: "i18next@npm:25.10.9" dependencies: - "@babel/runtime": "npm:^7.22.5" - checksum: 10c0/af49c399a90505ae26c1a022d06c4a11c4adcde6524b31c315dcaa43443c85892adef6de934b2af737abbdd2ffa66449d2854f135af8691223a8bb4ffaf6e1af + "@babel/runtime": "npm:^7.29.2" + peerDependencies: + typescript: ^5 || ^6 + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/6e7cccca6575e05a4165bfddc3ca6f3fa111d4db6ec70740ad08004ad1b7af593916cc3575c5a42838b505f42b8ddd4332b9e6e58081e0483134405aece03dd2 languageName: node linkType: hard @@ -11905,13 +11041,6 @@ __metadata: languageName: node linkType: hard -"ipaddr.js@npm:^2.2.0": - version: 2.2.0 - resolution: "ipaddr.js@npm:2.2.0" - checksum: 10c0/e4ee875dc1bd92ac9d27e06cfd87cdb63ca786ff9fd7718f1d4f7a8ef27db6e5d516128f52d2c560408cbb75796ac2f83ead669e73507c86282d45f84c5abbb6 - languageName: node - linkType: hard - "ipfs-only-hash@npm:^4.0.0": version: 4.0.0 resolution: "ipfs-only-hash@npm:4.0.0" @@ -12174,13 +11303,6 @@ __metadata: languageName: node linkType: hard -"is-deflate@npm:^1.0.0": - version: 1.0.0 - resolution: "is-deflate@npm:1.0.0" - checksum: 10c0/35f7ffcbef3549dd8a4d8df5dc09b4f4656a0fc88326e8b5201cda54114a9c2d8efb689d87c16f3f35c95bd71dcf13dc790d62b7504745b42c53ab4b40238f5a - languageName: node - linkType: hard - "is-docker@npm:^2.0.0, is-docker@npm:^2.1.1": version: 2.2.1 resolution: "is-docker@npm:2.2.1" @@ -12248,13 +11370,6 @@ __metadata: languageName: node linkType: hard -"is-gzip@npm:^1.0.0": - version: 1.0.0 - resolution: "is-gzip@npm:1.0.0" - checksum: 10c0/cbc1db080c636a6fb0f7346e3076f8276a29a9d8b52ae67c1971a8131c43f308e98ed227d1a6f49970e6c6ebabee0568e60aed7a3579dd4e1817cddf2faaf9b7 - languageName: node - linkType: hard - "is-hexadecimal@npm:^2.0.0": version: 2.0.1 resolution: "is-hexadecimal@npm:2.0.1" @@ -12683,15 +11798,6 @@ __metadata: languageName: node linkType: hard -"isomorphic-ws@npm:^4.0.1": - version: 4.0.1 - resolution: "isomorphic-ws@npm:4.0.1" - peerDependencies: - ws: "*" - checksum: 10c0/7cb90dc2f0eb409825558982fb15d7c1d757a88595efbab879592f9d2b63820d6bbfb5571ab8abe36c715946e165a413a99f6aafd9f40ab1f514d73487bc9996 - languageName: node - linkType: hard - "isows@npm:1.0.7": version: 1.0.7 resolution: "isows@npm:1.0.7" @@ -13045,28 +12151,6 @@ __metadata: languageName: node linkType: hard -"jayson@npm:^4.1.1": - version: 4.2.0 - resolution: "jayson@npm:4.2.0" - dependencies: - "@types/connect": "npm:^3.4.33" - "@types/node": "npm:^12.12.54" - "@types/ws": "npm:^7.4.4" - commander: "npm:^2.20.3" - delay: "npm:^5.0.0" - es6-promisify: "npm:^5.0.0" - eyes: "npm:^0.1.8" - isomorphic-ws: "npm:^4.0.1" - json-stringify-safe: "npm:^5.0.1" - stream-json: "npm:^1.9.1" - uuid: "npm:^8.3.2" - ws: "npm:^7.5.10" - bin: - jayson: bin/jayson.js - checksum: 10c0/062f525a0d15232c4361d10e0cd26960e998897e483408de03101e147c7bdf275db525bc1d5cc8aff4b777d1b1389004c8e9a5715304aedcf9930557787df6e3 - languageName: node - linkType: hard - "jiti@npm:^2.4.1": version: 2.6.0 resolution: "jiti@npm:2.6.0" @@ -13091,20 +12175,6 @@ __metadata: languageName: node linkType: hard -"jose@npm:4.15.9": - version: 4.15.9 - resolution: "jose@npm:4.15.9" - checksum: 10c0/4ed4ddf4a029db04bd167f2215f65d7245e4dc5f36d7ac3c0126aab38d66309a9e692f52df88975d99429e357e5fd8bab340ff20baab544d17684dd1d940a0f4 - languageName: node - linkType: hard - -"js-base64@npm:^3.6.0": - version: 3.7.8 - resolution: "js-base64@npm:3.7.8" - checksum: 10c0/a4452a7e7f32b0ef568a344157efec00c14593bbb1cf0c113f008dddff7ec515b35147af0cd70a7735adb69a2a2bdee921adffea2ea465e2c856ba50d649b11e - languageName: node - linkType: hard - "js-binary-schema-parser@npm:^2.0.3": version: 2.0.3 resolution: "js-binary-schema-parser@npm:2.0.3" @@ -13174,13 +12244,6 @@ __metadata: languageName: node linkType: hard -"json-parse-better-errors@npm:^1.0.1": - version: 1.0.2 - resolution: "json-parse-better-errors@npm:1.0.2" - checksum: 10c0/2f1287a7c833e397c9ddd361a78638e828fc523038bb3441fd4fc144cfd2c6cd4963ffb9e207e648cf7b692600f1e1e524e965c32df5152120910e4903a47dcb - languageName: node - linkType: hard - "json-parse-even-better-errors@npm:^2.3.0": version: 2.3.1 resolution: "json-parse-even-better-errors@npm:2.3.1" @@ -13292,15 +12355,6 @@ __metadata: languageName: node linkType: hard -"keyv@npm:5.5.0": - version: 5.5.0 - resolution: "keyv@npm:5.5.0" - dependencies: - "@keyv/serialize": "npm:^1.1.0" - checksum: 10c0/2db63fd2abcdf71929f032569673b6edd0de111edb012411658e2589dc5f49793a98aecd56c67fafda3f90a31f32e35555a97f8621040728260c66ad8daeea48 - languageName: node - linkType: hard - "keyv@npm:^4.0.0": version: 4.5.4 resolution: "keyv@npm:4.5.4" @@ -13370,23 +12424,6 @@ __metadata: languageName: node linkType: hard -"kubo@npm:0.39.0": - version: 0.39.0 - resolution: "kubo@npm:0.39.0" - dependencies: - cachedir: "npm:^2.3.0" - got: "npm:^11.7.0" - gunzip-maybe: "npm:^1.4.2" - hasha: "npm:^5.2.2" - pkg-conf: "npm:^3.1.0" - tar-fs: "npm:^2.1.0" - unzip-stream: "npm:^0.3.0" - bin: - ipfs: bin/ipfs - checksum: 10c0/31da4ea2483a50dcf653ea387f5b99fc0996bcba5aece97253b6f6a5735a50546a506697d143275d900f84deb77601010617917ae50e0c9f248d745a9bbd662b - languageName: node - linkType: hard - "leven@npm:^3.1.0": version: 3.1.0 resolution: "leven@npm:3.1.0" @@ -13675,19 +12712,6 @@ __metadata: languageName: node linkType: hard -"load-json-file@npm:^5.2.0": - version: 5.3.0 - resolution: "load-json-file@npm:5.3.0" - dependencies: - graceful-fs: "npm:^4.1.15" - parse-json: "npm:^4.0.0" - pify: "npm:^4.0.1" - strip-bom: "npm:^3.0.0" - type-fest: "npm:^0.3.0" - checksum: 10c0/d9dfb9e36c5c8356628f59036629aeed2c0876b1cda55bb1808be3e0d4a9c7009cfc75026c7d8927a847c016cb27cf4948eca28e19c65d952803a6fdac623eee - languageName: node - linkType: hard - "localforage@npm:1.10.0": version: 1.10.0 resolution: "localforage@npm:1.10.0" @@ -13707,16 +12731,6 @@ __metadata: languageName: node linkType: hard -"locate-path@npm:^3.0.0": - version: 3.0.0 - resolution: "locate-path@npm:3.0.0" - dependencies: - p-locate: "npm:^3.0.0" - path-exists: "npm:^3.0.0" - checksum: 10c0/3db394b7829a7fe2f4fbdd25d3c4689b85f003c318c5da4052c7e56eed697da8f1bce5294f685c69ff76e32cba7a33629d94396976f6d05fb7f4c755c5e2ae8b - languageName: node - linkType: hard - "locate-path@npm:^5.0.0": version: 5.0.0 resolution: "locate-path@npm:5.0.0" @@ -14050,30 +13064,6 @@ __metadata: languageName: node linkType: hard -"make-fetch-happen@npm:^9.1.0": - version: 9.1.0 - resolution: "make-fetch-happen@npm:9.1.0" - dependencies: - agentkeepalive: "npm:^4.1.3" - cacache: "npm:^15.2.0" - http-cache-semantics: "npm:^4.1.0" - http-proxy-agent: "npm:^4.0.1" - https-proxy-agent: "npm:^5.0.0" - is-lambda: "npm:^1.0.1" - lru-cache: "npm:^6.0.0" - minipass: "npm:^3.1.3" - minipass-collect: "npm:^1.0.2" - minipass-fetch: "npm:^1.3.2" - minipass-flush: "npm:^1.0.5" - minipass-pipeline: "npm:^1.2.4" - negotiator: "npm:^0.6.2" - promise-retry: "npm:^2.0.1" - socks-proxy-agent: "npm:^6.0.0" - ssri: "npm:^8.0.0" - checksum: 10c0/2c737faf6a7f67077679da548b5bfeeef890595bf8c4323a1f76eae355d27ebb33dcf9cf1a673f944cf2f2a7cbf4e2b09f0a0a62931737728f210d902c6be966 - languageName: node - linkType: hard - "map-age-cleaner@npm:^0.1.1": version: 0.1.3 resolution: "map-age-cleaner@npm:0.1.3" @@ -15202,21 +14192,6 @@ __metadata: languageName: node linkType: hard -"minipass-fetch@npm:^1.3.2": - version: 1.4.1 - resolution: "minipass-fetch@npm:1.4.1" - dependencies: - encoding: "npm:^0.1.12" - minipass: "npm:^3.1.0" - minipass-sized: "npm:^1.0.3" - minizlib: "npm:^2.0.0" - dependenciesMeta: - encoding: - optional: true - checksum: 10c0/a43da7401cd7c4f24b993887d41bd37d097356083b0bb836fd655916467463a1e6e9e553b2da4fcbe8745bf23d40c8b884eab20745562199663b3e9060cd8e7a - languageName: node - linkType: hard - "minipass-fetch@npm:^2.0.3": version: 2.1.2 resolution: "minipass-fetch@npm:2.1.2" @@ -15283,7 +14258,7 @@ __metadata: languageName: node linkType: hard -"minipass@npm:^3.0.0, minipass@npm:^3.1.0, minipass@npm:^3.1.1, minipass@npm:^3.1.3, minipass@npm:^3.1.6": +"minipass@npm:^3.0.0, minipass@npm:^3.1.1, minipass@npm:^3.1.6": version: 3.3.6 resolution: "minipass@npm:3.3.6" dependencies: @@ -15306,7 +14281,7 @@ __metadata: languageName: node linkType: hard -"minizlib@npm:^2.0.0, minizlib@npm:^2.1.2": +"minizlib@npm:^2.1.2": version: 2.1.2 resolution: "minizlib@npm:2.1.2" dependencies: @@ -15434,13 +14409,6 @@ __metadata: languageName: node linkType: hard -"multiformats@npm:^12.0.1": - version: 12.1.3 - resolution: "multiformats@npm:12.1.3" - checksum: 10c0/abf4f601d4a262965a231b070a10071dc61f8a85c4ab48f021089333be33f0be72c4fdb498a7c0172278d5c3cb540cb1402cb8a7d5f4f1042651a508b5f05e4e - languageName: node - linkType: hard - "multiformats@npm:^13.0.0, multiformats@npm:^13.0.1, multiformats@npm:^13.1.0, multiformats@npm:^13.2.2, multiformats@npm:^13.3.1, multiformats@npm:^13.3.6, multiformats@npm:^13.3.7, multiformats@npm:^13.4.0": version: 13.4.1 resolution: "multiformats@npm:13.4.1" @@ -15580,7 +14548,7 @@ __metadata: languageName: node linkType: hard -"negotiator@npm:^0.6.2, negotiator@npm:^0.6.3": +"negotiator@npm:^0.6.3": version: 0.6.4 resolution: "negotiator@npm:0.6.4" checksum: 10c0/3e677139c7fb7628a6f36335bf11a885a62c21d5390204590a1a214a5631fcbe5ea74ef6a610b60afe84b4d975cbe0566a23f20ee17c77c73e74b80032108dea @@ -15626,17 +14594,8 @@ __metadata: version: 3.77.0 resolution: "node-abi@npm:3.77.0" dependencies: - semver: "npm:^7.3.5" - checksum: 10c0/3354289ccca052538f653968ead73d00785e5ab159ce3a575dbff465724dac749821e7c327ae6c4774f29994f94c402fbafc8799b172aabf4aa8a082a070b00a - languageName: node - linkType: hard - -"node-addon-api@npm:^7.0.0": - version: 7.1.1 - resolution: "node-addon-api@npm:7.1.1" - dependencies: - node-gyp: "npm:latest" - checksum: 10c0/fb32a206276d608037fa1bcd7e9921e177fe992fc610d098aa3128baca3c0050fc1e014fa007e9b3874cf865ddb4f5bd9f43ccb7cbbbe4efaff6a83e920b17e9 + semver: "npm:^7.3.5" + checksum: 10c0/3354289ccca052538f653968ead73d00785e5ab159ce3a575dbff465724dac749821e7c327ae6c4774f29994f94c402fbafc8799b172aabf4aa8a082a070b00a languageName: node linkType: hard @@ -15659,7 +14618,7 @@ __metadata: languageName: node linkType: hard -"node-fetch@npm:2, node-fetch@npm:^2.6.1, node-fetch@npm:^2.6.11, node-fetch@npm:^2.6.7, node-fetch@npm:^2.7.0": +"node-fetch@npm:2, node-fetch@npm:^2.6.1, node-fetch@npm:^2.6.7, node-fetch@npm:^2.7.0": version: 2.7.0 resolution: "node-fetch@npm:2.7.0" dependencies: @@ -15691,26 +14650,6 @@ __metadata: languageName: node linkType: hard -"node-gyp@npm:8.x": - version: 8.4.1 - resolution: "node-gyp@npm:8.4.1" - dependencies: - env-paths: "npm:^2.2.0" - glob: "npm:^7.1.4" - graceful-fs: "npm:^4.2.6" - make-fetch-happen: "npm:^9.1.0" - nopt: "npm:^5.0.0" - npmlog: "npm:^6.0.0" - rimraf: "npm:^3.0.2" - semver: "npm:^7.3.5" - tar: "npm:^6.1.2" - which: "npm:^2.0.2" - bin: - node-gyp: bin/node-gyp.js - checksum: 10c0/80ef333b3a882eb6a2695a8e08f31d618f4533eff192864e4a3a16b67ff0abc9d8c1d5fac0395550ec699326b9248c5e2b3be178492f7f4d1ccf97d2cf948021 - languageName: node - linkType: hard - "node-gyp@npm:latest": version: 12.2.0 resolution: "node-gyp@npm:12.2.0" @@ -15780,17 +14719,6 @@ __metadata: languageName: node linkType: hard -"nopt@npm:^5.0.0": - version: 5.0.0 - resolution: "nopt@npm:5.0.0" - dependencies: - abbrev: "npm:1" - bin: - nopt: bin/nopt.js - checksum: 10c0/fc5c4f07155cb455bf5fc3dd149fac421c1a40fd83c6bfe83aa82b52f02c17c5e88301321318adaa27611c8a6811423d51d29deaceab5fa158b585a61a551061 - languageName: node - linkType: hard - "nopt@npm:^6.0.0": version: 6.0.0 resolution: "nopt@npm:6.0.0" @@ -15880,18 +14808,6 @@ __metadata: languageName: node linkType: hard -"npmlog@npm:^6.0.0": - version: 6.0.2 - resolution: "npmlog@npm:6.0.2" - dependencies: - are-we-there-yet: "npm:^3.0.0" - console-control-strings: "npm:^1.1.0" - gauge: "npm:^4.0.3" - set-blocking: "npm:^2.0.0" - checksum: 10c0/0cacedfbc2f6139c746d9cd4a85f62718435ad0ca4a2d6459cd331dd33ae58206e91a0742c1558634efcde3f33f8e8e7fd3adf1bfe7978310cf00bd55cccf890 - languageName: node - linkType: hard - "nth-check@npm:^2.0.1": version: 2.1.1 resolution: "nth-check@npm:2.1.1" @@ -16085,6 +15001,27 @@ __metadata: languageName: node linkType: hard +"ox@npm:0.14.17": + version: 0.14.17 + resolution: "ox@npm:0.14.17" + dependencies: + "@adraffy/ens-normalize": "npm:^1.11.0" + "@noble/ciphers": "npm:^1.3.0" + "@noble/curves": "npm:1.9.1" + "@noble/hashes": "npm:^1.8.0" + "@scure/bip32": "npm:^1.7.0" + "@scure/bip39": "npm:^1.6.0" + abitype: "npm:^1.2.3" + eventemitter3: "npm:5.0.1" + peerDependencies: + typescript: ">=5.4.0" + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/a4632918d89db20e7265dff96dec3786046e2ec99a42659badd300b7b24678348f505fd57e651c3a814a150d905f512a23a037f15757eae41db601d25fa7b10c + languageName: node + linkType: hard + "oxfmt@npm:0.24.0": version: 0.24.0 resolution: "oxfmt@npm:0.24.0" @@ -16240,7 +15177,7 @@ __metadata: languageName: node linkType: hard -"p-limit@npm:^2.0.0, p-limit@npm:^2.2.0": +"p-limit@npm:^2.2.0": version: 2.3.0 resolution: "p-limit@npm:2.3.0" dependencies: @@ -16276,15 +15213,6 @@ __metadata: languageName: node linkType: hard -"p-locate@npm:^3.0.0": - version: 3.0.0 - resolution: "p-locate@npm:3.0.0" - dependencies: - p-limit: "npm:^2.0.0" - checksum: 10c0/7b7f06f718f19e989ce6280ed4396fb3c34dabdee0df948376483032f9d5ec22fdf7077ec942143a75827bb85b11da72016497fc10dac1106c837ed593969ee8 - languageName: node - linkType: hard - "p-locate@npm:^4.1.0": version: 4.1.0 resolution: "p-locate@npm:4.1.0" @@ -16399,13 +15327,6 @@ __metadata: languageName: node linkType: hard -"pako@npm:^0.2.5, pako@npm:~0.2.0": - version: 0.2.9 - resolution: "pako@npm:0.2.9" - checksum: 10c0/79c1806ebcf325b60ae599e4d7227c2e346d7b829dc20f5cf24cef07c934079dc3a61c5b3c8278a2f7a190c4a613e343ea11e5302dbe252efd11712df4b6b041 - languageName: node - linkType: hard - "pako@npm:~1.0.5": version: 1.0.11 resolution: "pako@npm:1.0.11" @@ -16422,13 +15343,6 @@ __metadata: languageName: node linkType: hard -"parenthesis@npm:^3.1.5": - version: 3.1.8 - resolution: "parenthesis@npm:3.1.8" - checksum: 10c0/1c0d5dd8b238b7c703db5ff1ca35f41952a7b2597c2e97cd0d32ab345179062611bc4f8a849787ed7f23508e91140d74fea7c0050b6978c56499f707ff54c99c - languageName: node - linkType: hard - "parse-asn1@npm:^5.0.0, parse-asn1@npm:^5.1.7": version: 5.1.8 resolution: "parse-asn1@npm:5.1.8" @@ -16491,16 +15405,6 @@ __metadata: languageName: node linkType: hard -"parse-json@npm:^4.0.0": - version: 4.0.0 - resolution: "parse-json@npm:4.0.0" - dependencies: - error-ex: "npm:^1.3.1" - json-parse-better-errors: "npm:^1.0.1" - checksum: 10c0/8d80790b772ccb1bcea4e09e2697555e519d83d04a77c2b4237389b813f82898943a93ffff7d0d2406203bdd0c30dcf95b1661e3a53f83d0e417f053957bef32 - languageName: node - linkType: hard - "parse-json@npm:^5.0.0, parse-json@npm:^5.2.0": version: 5.2.0 resolution: "parse-json@npm:5.2.0" @@ -16664,17 +15568,6 @@ __metadata: languageName: node linkType: hard -"peek-stream@npm:^1.1.0": - version: 1.1.3 - resolution: "peek-stream@npm:1.1.3" - dependencies: - buffer-from: "npm:^1.0.0" - duplexify: "npm:^3.5.0" - through2: "npm:^2.0.3" - checksum: 10c0/3c35d1951b8640036f93b1b5628a90f849e49ca4f2e6aba393ff4978413931d9c491c83f71a92f878d5ea4c670af0bba04dfcfb79b310ead22601db7c1420e36 - languageName: node - linkType: hard - "peer-id@npm:0.16.0": version: 0.16.0 resolution: "peer-id@npm:0.16.0" @@ -16753,13 +15646,6 @@ __metadata: languageName: node linkType: hard -"pify@npm:^4.0.1": - version: 4.0.1 - resolution: "pify@npm:4.0.1" - checksum: 10c0/6f9d404b0d47a965437403c9b90eca8bb2536407f03de165940e62e72c8c8b75adda5516c6b9b23675a5877cc0bcac6bdfb0ef0e39414cd2476d5495da40e7cf - languageName: node - linkType: hard - "pinkie-promise@npm:^2.0.0": version: 2.0.1 resolution: "pinkie-promise@npm:2.0.1" @@ -16776,16 +15662,6 @@ __metadata: languageName: node linkType: hard -"pkg-conf@npm:^3.1.0": - version: 3.1.0 - resolution: "pkg-conf@npm:3.1.0" - dependencies: - find-up: "npm:^3.0.0" - load-json-file: "npm:^5.2.0" - checksum: 10c0/450165ed660dc42975bf052f8b1af8a514d8e470f41118d68c8a3f7e2342ae1812057568900f44d89583f94c2397e226abcc69df37457c05048366481ebeb324 - languageName: node - linkType: hard - "pkg-dir@npm:^5.0.0": version: 5.0.0 resolution: "pkg-dir@npm:5.0.0" @@ -17025,7 +15901,7 @@ __metadata: languageName: node linkType: hard -"protons-runtime@npm:^5.4.0, protons-runtime@npm:^5.5.0, protons-runtime@npm:^5.6.0": +"protons-runtime@npm:^5.5.0, protons-runtime@npm:^5.6.0": version: 5.6.0 resolution: "protons-runtime@npm:5.6.0" dependencies: @@ -17068,16 +15944,6 @@ __metadata: languageName: node linkType: hard -"pump@npm:^2.0.0": - version: 2.0.1 - resolution: "pump@npm:2.0.1" - dependencies: - end-of-stream: "npm:^1.1.0" - once: "npm:^1.3.1" - checksum: 10c0/f1fe8960f44d145f8617ea4c67de05392da4557052980314c8f85081aee26953bdcab64afad58a2b1df0e8ff7203e3710e848cbe81a01027978edc6e264db355 - languageName: node - linkType: hard - "pump@npm:^3.0.0": version: 3.0.3 resolution: "pump@npm:3.0.3" @@ -17088,17 +15954,6 @@ __metadata: languageName: node linkType: hard -"pumpify@npm:^1.3.3": - version: 1.5.1 - resolution: "pumpify@npm:1.5.1" - dependencies: - duplexify: "npm:^3.6.0" - inherits: "npm:^2.0.3" - pump: "npm:^2.0.0" - checksum: 10c0/0bcabf9e3dbf2d0cc1f9b84ac80d3c75386111caf8963bfd98817a1e2192000ac0ccc804ca6ccd5b2b8430fdb71347b20fb2f014fe3d41adbacb1b502a841c45 - languageName: node - linkType: hard - "punycode@npm:^1.4.1": version: 1.4.1 resolution: "punycode@npm:1.4.1" @@ -17106,7 +15961,7 @@ __metadata: languageName: node linkType: hard -"punycode@npm:^2.1.0, punycode@npm:^2.3.1": +"punycode@npm:^2.1.0": version: 2.3.1 resolution: "punycode@npm:2.3.1" checksum: 10c0/14f76a8206bc3464f794fb2e3d3cc665ae416c01893ad7a02b23766eb07159144ee612ad67af5e84fa4479ccfe67678c4feb126b0485651b302babf66f04f9e9 @@ -17323,21 +16178,25 @@ __metadata: languageName: node linkType: hard -"react-i18next@npm:13.2.2": - version: 13.2.2 - resolution: "react-i18next@npm:13.2.2" +"react-i18next@npm:16.6.6": + version: 16.6.6 + resolution: "react-i18next@npm:16.6.6" dependencies: - "@babel/runtime": "npm:^7.22.5" + "@babel/runtime": "npm:^7.29.2" html-parse-stringify: "npm:^3.0.1" + use-sync-external-store: "npm:^1.6.0" peerDependencies: - i18next: ">= 23.2.3" + i18next: ">= 25.10.9" react: ">= 16.8.0" + typescript: ^5 || ^6 peerDependenciesMeta: react-dom: optional: true react-native: optional: true - checksum: 10c0/846e73130414989304c395c247cec8371ec25b5a0284588c913542741ce0cc33b4681d573980c64320138601d08a2ddec5042dc6f841e48a575e3f11ab83a368 + typescript: + optional: true + checksum: 10c0/7d6660d382a529d4dc56e7a7bbab59689ac0f435b3a18bba81d6bbf52c87b2a41fd5d1bffcf60b92b5e6e2a1ad9443949fcf16329d9c63d582316557199a7d32 languageName: node linkType: hard @@ -17383,13 +16242,6 @@ __metadata: languageName: node linkType: hard -"react-refresh@npm:^0.14.2": - version: 0.14.2 - resolution: "react-refresh@npm:0.14.2" - checksum: 10c0/875b72ef56b147a131e33f2abd6ec059d1989854b3ff438898e4f9310bfcc73acff709445b7ba843318a953cb9424bcc2c05af2b3d80011cee28f25aef3e2ebb - languageName: node - linkType: hard - "react-router-dom@npm:6.30.2": version: 6.30.2 resolution: "react-router-dom@npm:6.30.2" @@ -17562,7 +16414,7 @@ __metadata: languageName: node linkType: hard -"readable-stream@npm:^2.0.0, readable-stream@npm:^2.3.0, readable-stream@npm:^2.3.5, readable-stream@npm:^2.3.8, readable-stream@npm:~2.3.6": +"readable-stream@npm:^2.3.0, readable-stream@npm:^2.3.5, readable-stream@npm:^2.3.8": version: 2.3.8 resolution: "readable-stream@npm:2.3.8" dependencies: @@ -17963,17 +16815,6 @@ __metadata: languageName: node linkType: hard -"rimraf@npm:^3.0.2": - version: 3.0.2 - resolution: "rimraf@npm:3.0.2" - dependencies: - glob: "npm:^7.1.3" - bin: - rimraf: bin.js - checksum: 10c0/9cb7757acb489bd83757ba1a274ab545eafd75598a9d817e0c3f8b164238dd90eba50d6b848bd4dcc5f3040912e882dc7ba71653e35af660d77b25c381d402e8 - languageName: node - linkType: hard - "rimraf@npm:^6.0.1": version: 6.0.1 resolution: "rimraf@npm:6.0.1" @@ -18093,47 +16934,25 @@ __metadata: languageName: node linkType: hard -"rpc-websockets@npm:9.3.1": - version: 9.3.1 - resolution: "rpc-websockets@npm:9.3.1" - dependencies: - "@swc/helpers": "npm:^0.5.11" - "@types/uuid": "npm:^8.3.4" - "@types/ws": "npm:^8.2.2" - buffer: "npm:^6.0.3" - bufferutil: "npm:^4.0.1" - eventemitter3: "npm:^5.0.1" - utf-8-validate: "npm:^5.0.2" - uuid: "npm:^8.3.2" - ws: "npm:^8.5.0" - dependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - checksum: 10c0/97189f2bd325a34c85453b3908eac39bebd61f0e6a0861253a71e4163d4556a2777dac2fd8c87a10e8e6e5503810f489ae4597a9c3b6218944a9253860dbd4a0 - languageName: node - linkType: hard - -"rpc-websockets@npm:^9.0.2": - version: 9.2.0 - resolution: "rpc-websockets@npm:9.2.0" +"rpc-websockets@npm:9.3.8": + version: 9.3.8 + resolution: "rpc-websockets@npm:9.3.8" dependencies: "@swc/helpers": "npm:^0.5.11" - "@types/uuid": "npm:^8.3.4" + "@types/uuid": "npm:^10.0.0" "@types/ws": "npm:^8.2.2" buffer: "npm:^6.0.3" bufferutil: "npm:^4.0.1" eventemitter3: "npm:^5.0.1" - utf-8-validate: "npm:^5.0.2" - uuid: "npm:^8.3.2" + utf-8-validate: "npm:^6.0.0" + uuid: "npm:^11.0.0" ws: "npm:^8.5.0" dependenciesMeta: bufferutil: optional: true utf-8-validate: optional: true - checksum: 10c0/147a7d9e0a67bb98ff962107fc855c2b321faeafd25b16c03c0c6bf49c1d4d18c62ca35cb5b3cf307b8a2ddec9121bc74c6415e47a436bd991907d20781606b9 + checksum: 10c0/4a0601c497762f7fffe685bdb4595e60e31e363b5988a01a4370b867f3d23a6fdd240f22f5f25125e7bfa70d94e81b98537d8824b0d43c171f363ed5555d4cae languageName: node linkType: hard @@ -18274,7 +17093,7 @@ __metadata: version: 0.0.0-use.local resolution: "seedit@workspace:." dependencies: - "@bitsocialnet/bitsocial-react-hooks": "https://codeload.github.com/bitsocialnet/bitsocial-react-hooks/tar.gz/dcfaeaccefc0b9de90ef37c44885ac005eef429a" + "@bitsocial/bitsocial-react-hooks": "npm:0.1.2" "@capacitor/android": "npm:7.4.5" "@capacitor/app": "npm:7.0.1" "@capacitor/cli": "npm:7.4.5" @@ -18299,7 +17118,7 @@ __metadata: "@types/react-dom": "npm:19.1.2" "@typescript/native-preview": "npm:7.0.0-dev.20260115.1" "@vercel/analytics": "npm:1.6.1" - "@vitejs/plugin-react": "npm:4.3.4" + "@vitejs/plugin-react": "npm:6.0.0" ace-builds: "npm:1.41.0" assert: "npm:2.1.0" babel-plugin-react-compiler: "npm:1.0.0" @@ -18322,12 +17141,11 @@ __metadata: glob: "npm:10.5.0" http-proxy: "npm:1.18.1" husky: "npm:4.3.8" - i18next: "npm:23.5.1" + i18next: "npm:25.10.9" i18next-browser-languagedetector: "npm:7.1.0" - i18next-http-backend: "npm:2.2.2" + i18next-http-backend: "npm:3.0.5" isomorphic-fetch: "npm:3.0.0" json-stringify-pretty-compact: "npm:4.0.0" - kubo: "npm:0.39.0" lint-staged: "npm:12.3.8" lodash: "npm:4.18.0" memoizee: "npm:0.4.15" @@ -18341,7 +17159,7 @@ __metadata: react-dom: "npm:19.1.2" react-dropzone: "npm:14.3.8" react-grab: "npm:0.1.28" - react-i18next: "npm:13.2.2" + react-i18next: "npm:16.6.6" react-markdown: "npm:10.1.0" react-router-dom: "npm:6.30.2" react-router-hash-link: "npm:2.4.3" @@ -18460,13 +17278,6 @@ __metadata: languageName: node linkType: hard -"set-blocking@npm:^2.0.0": - version: 2.0.0 - resolution: "set-blocking@npm:2.0.0" - checksum: 10c0/9f8c1b2d800800d0b589de1477c753492de5c1548d4ade52f57f1d1f5e04af5481554d75ce5e5c43d4004b80a3eb714398d6907027dc0534177b7539119f4454 - languageName: node - linkType: hard - "set-function-length@npm:^1.2.2": version: 1.2.2 resolution: "set-function-length@npm:1.2.2" @@ -18709,20 +17520,20 @@ __metadata: languageName: node linkType: hard -"signal-exit@npm:^3.0.0, signal-exit@npm:^3.0.2, signal-exit@npm:^3.0.3, signal-exit@npm:^3.0.7": - version: 3.0.7 - resolution: "signal-exit@npm:3.0.7" - checksum: 10c0/25d272fa73e146048565e08f3309d5b942c1979a6f4a58a8c59d5fa299728e9c2fcd1a759ec870863b1fd38653670240cd420dad2ad9330c71f36608a6a1c912 - languageName: node - linkType: hard - -"signal-exit@npm:^4.0.1, signal-exit@npm:^4.1.0": +"signal-exit@npm:4.1.0, signal-exit@npm:^4.0.1, signal-exit@npm:^4.1.0": version: 4.1.0 resolution: "signal-exit@npm:4.1.0" checksum: 10c0/41602dce540e46d599edba9d9860193398d135f7ff72cab629db5171516cfae628d21e7bfccde1bbfdf11c48726bc2a6d1a8fb8701125852fbfda7cf19c6aa83 languageName: node linkType: hard +"signal-exit@npm:^3.0.0, signal-exit@npm:^3.0.2, signal-exit@npm:^3.0.3": + version: 3.0.7 + resolution: "signal-exit@npm:3.0.7" + checksum: 10c0/25d272fa73e146048565e08f3309d5b942c1979a6f4a58a8c59d5fa299728e9c2fcd1a759ec870863b1fd38653670240cd420dad2ad9330c71f36608a6a1c912 + languageName: node + linkType: hard + "simple-concat@npm:^1.0.0": version: 1.0.1 resolution: "simple-concat@npm:1.0.1" @@ -18748,18 +17559,6 @@ __metadata: languageName: node linkType: hard -"skia-canvas@npm:3.0.8, skia-canvas@npm:^3.0.8": - version: 3.0.8 - resolution: "skia-canvas@npm:3.0.8" - dependencies: - detect-libc: "npm:^2.1.1" - follow-redirects: "npm:^1.15.11" - https-proxy-agent: "npm:^7.0.6" - string-split-by: "npm:^1.0.0" - checksum: 10c0/19cfd4371426274c03e146eb68f8add3643a2706582a14d92f898062c4db54ed07d8d90b797c011476b7b1a866c663a3929626f7c48f9fc126814161ad8e2e03 - languageName: node - linkType: hard - "slash@npm:^3.0.0": version: 3.0.0 resolution: "slash@npm:3.0.0" @@ -18820,17 +17619,6 @@ __metadata: languageName: node linkType: hard -"socks-proxy-agent@npm:^6.0.0": - version: 6.2.1 - resolution: "socks-proxy-agent@npm:6.2.1" - dependencies: - agent-base: "npm:^6.0.2" - debug: "npm:^4.3.3" - socks: "npm:^2.6.2" - checksum: 10c0/d75c1cf1fdd7f8309a43a77f84409b793fc0f540742ef915154e70ac09a08b0490576fe85d4f8d68bbf80e604a62957a17ab5ef50d312fe1442b0ab6f8f6e6f6 - languageName: node - linkType: hard - "socks-proxy-agent@npm:^7.0.0": version: 7.0.0 resolution: "socks-proxy-agent@npm:7.0.0" @@ -19001,27 +17789,6 @@ __metadata: languageName: node linkType: hard -"sqlite3@npm:^5.1.7": - version: 5.1.7 - resolution: "sqlite3@npm:5.1.7" - dependencies: - bindings: "npm:^1.5.0" - node-addon-api: "npm:^7.0.0" - node-gyp: "npm:8.x" - prebuild-install: "npm:^7.1.1" - tar: "npm:^6.1.11" - peerDependencies: - node-gyp: 8.x - dependenciesMeta: - node-gyp: - optional: true - peerDependenciesMeta: - node-gyp: - optional: true - checksum: 10c0/10daab5d7854bd0ec3c7690c00359cd3444eabc869b68c68dcb61374a8fa5e2f4be06cf0aba78f7a16336d49e83e4631e8af98f8bd33c772fe8d60b45fa60bc1 - languageName: node - linkType: hard - "ssri@npm:^12.0.0": version: 12.0.0 resolution: "ssri@npm:12.0.0" @@ -19040,15 +17807,6 @@ __metadata: languageName: node linkType: hard -"ssri@npm:^8.0.0": - version: 8.0.1 - resolution: "ssri@npm:8.0.1" - dependencies: - minipass: "npm:^3.1.1" - checksum: 10c0/5cfae216ae02dcd154d1bbed2d0a60038a4b3a2fcaac3c7e47401ff4e058e551ee74cfdba618871bf168cd583db7b8324f94af6747d4303b73cd4c3f6dc5c9c2 - languageName: node - linkType: hard - "ssri@npm:^9.0.0": version: 9.0.1 resolution: "ssri@npm:9.0.1" @@ -19120,13 +17878,6 @@ __metadata: languageName: node linkType: hard -"stream-chain@npm:^2.2.5": - version: 2.2.5 - resolution: "stream-chain@npm:2.2.5" - checksum: 10c0/c512f50190d7c92d688fa64e7af540c51b661f9c2b775fc72bca38ea9bca515c64c22c2197b1be463741daacbaaa2dde8a8ea24ebda46f08391224f15249121a - languageName: node - linkType: hard - "stream-http@npm:^3.2.0": version: 3.2.0 resolution: "stream-http@npm:3.2.0" @@ -19139,15 +17890,6 @@ __metadata: languageName: node linkType: hard -"stream-json@npm:^1.9.1": - version: 1.9.1 - resolution: "stream-json@npm:1.9.1" - dependencies: - stream-chain: "npm:^2.2.5" - checksum: 10c0/0521e5cb3fb6b0e2561d715975e891bd81fa77d0239c8d0b1756846392bc3c7cdd7f1ddb0fe7ed77e6fdef58daab9e665d3b39f7d677bd0859e65a2bff59b92c - languageName: node - linkType: hard - "stream-parser@npm:~0.3.1": version: 0.3.1 resolution: "stream-parser@npm:0.3.1" @@ -19157,13 +17899,6 @@ __metadata: languageName: node linkType: hard -"stream-shift@npm:^1.0.0": - version: 1.0.3 - resolution: "stream-shift@npm:1.0.3" - checksum: 10c0/939cd1051ca750d240a0625b106a2b988c45fb5a3be0cebe9a9858cb01bc1955e8c7b9fac17a9462976bea4a7b704e317c5c2200c70f0ca715a3363b9aa4fd3b - languageName: node - linkType: hard - "stream-to-it@npm:^1.0.1": version: 1.0.1 resolution: "stream-to-it@npm:1.0.1" @@ -19180,16 +17915,7 @@ __metadata: languageName: node linkType: hard -"string-split-by@npm:^1.0.0": - version: 1.0.0 - resolution: "string-split-by@npm:1.0.0" - dependencies: - parenthesis: "npm:^3.1.5" - checksum: 10c0/7feac22db5eb4fedc418818fe6c9277d2b2bbe8d200877ed4be629eeff6dafb686b04d87f3c49aa0b7ccaedaf5c576e31dd0e756ea82421cc48f362ece48b942 - languageName: node - linkType: hard - -"string-width-cjs@npm:string-width@^4.2.0, string-width@npm:^1.0.2 || 2 || 3 || 4, string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.3": +"string-width-cjs@npm:string-width@^4.2.0, string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.3": version: 4.2.3 resolution: "string-width@npm:4.2.3" dependencies: @@ -19468,13 +18194,6 @@ __metadata: languageName: node linkType: hard -"superstruct@npm:^2.0.2": - version: 2.0.2 - resolution: "superstruct@npm:2.0.2" - checksum: 10c0/c6853db5240b4920f47b3c864dd1e23ede6819ea399ad29a65387d746374f6958c5f1c5b7e5bb152d9db117a74973e5005056d9bb83c24e26f18ec6bfae4a718 - languageName: node - linkType: hard - "supports-color@npm:^10.0.0": version: 10.2.2 resolution: "supports-color@npm:10.2.2" @@ -19530,7 +18249,7 @@ __metadata: languageName: node linkType: hard -"tar-fs@npm:^2.0.0, tar-fs@npm:^2.1.0": +"tar-fs@npm:^2.0.0": version: 2.1.4 resolution: "tar-fs@npm:2.1.4" dependencies: @@ -19652,13 +18371,6 @@ __metadata: languageName: node linkType: hard -"text-encoding-utf-8@npm:^1.0.2": - version: 1.0.2 - resolution: "text-encoding-utf-8@npm:1.0.2" - checksum: 10c0/87a64b394c850e8387c2ca7fc6929a26ce97fb598f1c55cd0fdaec4b8e2c3ed6770f65b2f3309c9175ef64ac5e403c8e48b53ceeb86d2897940c5e19cc00bb99 - languageName: node - linkType: hard - "text-extensions@npm:^2.0.0": version: 2.4.0 resolution: "text-extensions@npm:2.4.0" @@ -19666,16 +18378,6 @@ __metadata: languageName: node linkType: hard -"through2@npm:^2.0.3": - version: 2.0.5 - resolution: "through2@npm:2.0.5" - dependencies: - readable-stream: "npm:~2.3.6" - xtend: "npm:~4.0.1" - checksum: 10c0/cbfe5b57943fa12b4f8c043658c2a00476216d79c014895cef1ac7a1d9a8b31f6b438d0e53eecbb81054b93128324a82ecd59ec1a4f91f01f7ac113dcb14eade - languageName: node - linkType: hard - "through2@npm:^4.0.2": version: 4.0.2 resolution: "through2@npm:4.0.2" @@ -19734,13 +18436,6 @@ __metadata: languageName: node linkType: hard -"tiny-inflate@npm:^1.0.0": - version: 1.0.3 - resolution: "tiny-inflate@npm:1.0.3" - checksum: 10c0/fab687537254f6ec44c9a2e880048fe70da3542aba28f73cda3e74c95cabf342a339372f2a6c032e322324f01accc03ca26c04ba2bad9b3eb8cf3ee99bba7f9b - languageName: node - linkType: hard - "tiny-typed-emitter@npm:2.1.0": version: 2.1.0 resolution: "tiny-typed-emitter@npm:2.1.0" @@ -19854,13 +18549,6 @@ __metadata: languageName: node linkType: hard -"traverse@npm:>=0.3.0 <0.4": - version: 0.3.9 - resolution: "traverse@npm:0.3.9" - checksum: 10c0/05f04ff1002f08f19b033187124764e2713186c7a7c0ad88172368df993edc4fa7580e829e252cef6b38375317b69671932ee3820381398a9e375aad3797f607 - languageName: node - linkType: hard - "tree-kill@npm:^1.2.2": version: 1.2.2 resolution: "tree-kill@npm:1.2.2" @@ -19916,13 +18604,6 @@ __metadata: languageName: node linkType: hard -"tslib@npm:2.7.0": - version: 2.7.0 - resolution: "tslib@npm:2.7.0" - checksum: 10c0/469e1d5bf1af585742128827000711efa61010b699cb040ab1800bcd3ccdd37f63ec30642c9e07c4439c1db6e46345582614275daca3e0f4abae29b0083f04a6 - languageName: node - linkType: hard - "tslib@npm:^1.9.3": version: 1.14.1 resolution: "tslib@npm:1.14.1" @@ -19990,13 +18671,6 @@ __metadata: languageName: node linkType: hard -"type-fest@npm:^0.3.0": - version: 0.3.1 - resolution: "type-fest@npm:0.3.1" - checksum: 10c0/ef632e9549f331024594bbb8b620fe570d90abd8e7f2892d4aff733fd72698774e1a88e277fac02b4267de17d79cbb87860332f64f387145532b13ace6510502 - languageName: node - linkType: hard - "type-fest@npm:^0.6.0": version: 0.6.0 resolution: "type-fest@npm:0.6.0" @@ -20004,7 +18678,7 @@ __metadata: languageName: node linkType: hard -"type-fest@npm:^0.8.0, type-fest@npm:^0.8.1": +"type-fest@npm:^0.8.1": version: 0.8.1 resolution: "type-fest@npm:0.8.1" checksum: 10c0/dffbb99329da2aa840f506d376c863bd55f5636f4741ad6e65e82f5ce47e6914108f44f340a0b74009b0cb5d09d6752ae83203e53e98b1192cf80ecee5651636 @@ -20167,15 +18841,6 @@ __metadata: languageName: node linkType: hard -"uint8arrays@npm:^4.0.3": - version: 4.0.10 - resolution: "uint8arrays@npm:4.0.10" - dependencies: - multiformats: "npm:^12.0.1" - checksum: 10c0/6ba22dd93d125a1359fdf8e4ea26bfecaf33ce22d7de07feec3e1c2c1198b5d3a5760f038caec916a01b9fcc3206ae04230b0d6481694c2e17b5014614a6cf02 - languageName: node - linkType: hard - "uint8arrays@npm:^5.0.0, uint8arrays@npm:^5.0.1, uint8arrays@npm:^5.0.2, uint8arrays@npm:^5.0.3, uint8arrays@npm:^5.1.0": version: 5.1.0 resolution: "uint8arrays@npm:5.1.0" @@ -20207,13 +18872,6 @@ __metadata: languageName: node linkType: hard -"undici-types@npm:~6.19.2": - version: 6.19.8 - resolution: "undici-types@npm:6.19.8" - checksum: 10c0/078afa5990fba110f6824823ace86073b4638f1d5112ee26e790155f481f2a868cc3e0615505b6f4282bdf74a3d8caad715fd809e870c2bb0704e3ea6082f344 - languageName: node - linkType: hard - "undici-types@npm:~6.21.0": version: 6.21.0 resolution: "undici-types@npm:6.21.0" @@ -20273,16 +18931,6 @@ __metadata: languageName: node linkType: hard -"unicode-trie@npm:^2.0.0": - version: 2.0.0 - resolution: "unicode-trie@npm:2.0.0" - dependencies: - pako: "npm:^0.2.5" - tiny-inflate: "npm:^1.0.0" - checksum: 10c0/2422368645249f315640a1c9e9506046aa7738fc9c5d59e15c207cdd6ec66101c35b0b9f75dc3ac28fe7be19aaf1efc898bbea074fa1e8e295ef736aeb7904bb - languageName: node - linkType: hard - "unified@npm:^10.0.0": version: 10.1.2 resolution: "unified@npm:10.1.2" @@ -20482,16 +19130,6 @@ __metadata: languageName: node linkType: hard -"unzip-stream@npm:^0.3.0": - version: 0.3.4 - resolution: "unzip-stream@npm:0.3.4" - dependencies: - binary: "npm:^0.3.0" - mkdirp: "npm:^0.5.1" - checksum: 10c0/fcd2eeb5374c51f4b506af9ad6c0dcf227f47770844c16f096f45eb496a5225c69e7df702264ea7049b5b917221b5730b18c02311c927a4586d933220a430ee4 - languageName: node - linkType: hard - "upath@npm:^1.2.0": version: 1.2.0 resolution: "upath@npm:1.2.0" @@ -20532,6 +19170,15 @@ __metadata: languageName: node linkType: hard +"use-sync-external-store@npm:^1.6.0": + version: 1.6.0 + resolution: "use-sync-external-store@npm:1.6.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + checksum: 10c0/35e1179f872a53227bdf8a827f7911da4c37c0f4091c29b76b1e32473d1670ebe7bcd880b808b7549ba9a5605c233350f800ffab963ee4a4ee346ee983b6019b + languageName: node + linkType: hard + "username@npm:^5.1.0": version: 5.1.0 resolution: "username@npm:5.1.0" @@ -20542,13 +19189,13 @@ __metadata: languageName: node linkType: hard -"utf-8-validate@npm:^5.0.2": - version: 5.0.10 - resolution: "utf-8-validate@npm:5.0.10" +"utf-8-validate@npm:^6.0.0": + version: 6.0.6 + resolution: "utf-8-validate@npm:6.0.6" dependencies: node-gyp: "npm:latest" node-gyp-build: "npm:^4.3.0" - checksum: 10c0/23cd6adc29e6901aa37ff97ce4b81be9238d0023c5e217515b34792f3c3edb01470c3bd6b264096dd73d0b01a1690b57468de3a24167dd83004ff71c51cc025f + checksum: 10c0/88c3581c43b9f824f0939b0da0ecf0cf092ff944ace7be517a5459bc18fe1884fc4acda3502ed369b4ce44baf40590a8f1e820c43a425df0758f2ba76b055f77 languageName: node linkType: hard @@ -20579,7 +19226,7 @@ __metadata: languageName: node linkType: hard -"uuid@npm:11.1.0": +"uuid@npm:11.1.0, uuid@npm:^11.0.0": version: 11.1.0 resolution: "uuid@npm:11.1.0" bin: @@ -20597,15 +19244,6 @@ __metadata: languageName: node linkType: hard -"uuid@npm:^8.3.2": - version: 8.3.2 - resolution: "uuid@npm:8.3.2" - bin: - uuid: dist/bin/uuid - checksum: 10c0/bcbb807a917d374a49f475fae2e87fdca7da5e5530820ef53f65ba1d12131bd81a92ecf259cc7ce317cbe0f289e7d79fdfebcef9bfa3087c8c8a2fa304c9be54 - languageName: node - linkType: hard - "uvu@npm:^0.5.0": version: 0.5.6 resolution: "uvu@npm:0.5.6" @@ -20717,6 +19355,27 @@ __metadata: languageName: node linkType: hard +"viem@npm:2.48.1": + version: 2.48.1 + resolution: "viem@npm:2.48.1" + dependencies: + "@noble/curves": "npm:1.9.1" + "@noble/hashes": "npm:1.8.0" + "@scure/bip32": "npm:1.7.0" + "@scure/bip39": "npm:1.6.0" + abitype: "npm:1.2.3" + isows: "npm:1.0.7" + ox: "npm:0.14.17" + ws: "npm:8.18.3" + peerDependencies: + typescript: ">=5.0.4" + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/222ad600cee6f9887228e2a9a8bc9d11315cb8a68cef6e271de4aee75be087be33544d3f1c7483d8a5c93c1964bbd4298fc6b36bfbcd3b7f1a66bda0de82d841 + languageName: node + linkType: hard + "vite-plugin-node-polyfills@npm:0.24.0": version: 0.24.0 resolution: "vite-plugin-node-polyfills@npm:0.24.0" @@ -21124,15 +19783,6 @@ __metadata: languageName: node linkType: hard -"wide-align@npm:^1.1.5": - version: 1.1.5 - resolution: "wide-align@npm:1.1.5" - dependencies: - string-width: "npm:^1.0.2 || 2 || 3 || 4" - checksum: 10c0/1d9c2a3e36dfb09832f38e2e699c367ef190f96b82c71f809bc0822c306f5379df87bab47bed27ea99106d86447e50eb972d3c516c2f95782807a9d082fbea95 - languageName: node - linkType: hard - "word-wrap@npm:^1.0.3": version: 1.2.5 resolution: "word-wrap@npm:1.2.5" @@ -21416,7 +20066,7 @@ __metadata: languageName: node linkType: hard -"xtend@npm:^4.0.0, xtend@npm:^4.0.2, xtend@npm:~4.0.1": +"xtend@npm:^4.0.0, xtend@npm:^4.0.2": version: 4.0.2 resolution: "xtend@npm:4.0.2" checksum: 10c0/366ae4783eec6100f8a02dff02ac907bf29f9a00b82ac0264b4d8b832ead18306797e283cf19de776538babfdcb2101375ec5646b59f08c52128ac4ab812ed0e From 8d017a1ab754f71565e6de8a6be751c2b9c508e1 Mon Sep 17 00:00:00 2001 From: Tommaso Casaburi Date: Mon, 27 Apr 2026 13:47:45 +0700 Subject: [PATCH 2/5] refactor: switch import scope from @bitsocialnet to @bitsocial MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mechanical scope rename across src/. Build is intentionally broken at this commit — Phase 3 renames the symbols (useSubplebbit -> useCommunity, etc.) to match the new package's API. --- src/components/account-bar/account-bar.tsx | 2 +- src/components/author-sidebar/author-sidebar.tsx | 2 +- src/components/challenge-modal/challenge-modal.tsx | 2 +- .../comment-edit-form/comment-edit-form.tsx | 2 +- src/components/header/header.tsx | 2 +- .../notification-handler/notification-handler.tsx | 4 ++-- src/components/post/comment-tools/comment-tools.tsx | 2 +- .../post/comment-tools/edit-menu/edit-menu.tsx | 2 +- .../post/comment-tools/hide-menu/hide-menu.tsx | 2 +- .../post/comment-tools/mod-menu/mod-menu.tsx | 2 +- src/components/post/post.tsx | 2 +- src/components/reply-form/reply-form.tsx | 2 +- src/components/reply/reply.tsx | 13 ++----------- src/components/search-bar/search-bar.tsx | 2 +- src/components/sidebar/sidebar.tsx | 2 +- .../subscribe-button/subscribe-button.tsx | 2 +- src/components/topbar/topbar.tsx | 2 +- src/hooks/use-auto-subscribe.ts | 2 +- src/hooks/use-challenge-settings.ts | 2 +- src/hooks/use-challenges-options.ts | 2 +- src/hooks/use-comment-media-info.ts | 2 +- src/hooks/use-default-subplebbits.ts | 2 +- src/hooks/use-downvote.ts | 2 +- src/hooks/use-fetch-gif-first-frame.ts | 2 +- src/hooks/use-is-subplebbit-offline.ts | 2 +- src/hooks/use-publish-reply.ts | 2 +- src/hooks/use-replies.ts | 2 +- src/hooks/use-state-string.ts | 2 +- src/hooks/use-upvote.ts | 2 +- src/lib/bitsocial-react-hooks-compat.ts | 8 ++++---- src/lib/utils/account-history-utils.test.ts | 2 +- src/lib/utils/account-history-utils.ts | 2 +- src/lib/utils/challenge-utils.ts | 2 +- src/lib/utils/cid-utils.ts | 2 +- src/lib/utils/media-utils.ts | 4 ++-- src/lib/utils/nsfw-subscription-utils.ts | 2 +- src/lib/utils/pattern-utils.ts | 2 +- src/lib/utils/user-utils.ts | 2 +- src/stores/use-challenges-store.ts | 2 +- src/stores/use-publish-post-store.ts | 2 +- src/stores/use-publish-reply-store.ts | 4 ++-- src/stores/use-subplebbit-settings-store.ts | 2 +- src/views/about/about.tsx | 2 +- src/views/all/all.tsx | 2 +- src/views/author/author.tsx | 2 +- src/views/domain/domain.tsx | 2 +- src/views/home/home.tsx | 2 +- src/views/inbox/inbox.tsx | 2 +- src/views/mod/mod.tsx | 2 +- src/views/post-page/post-page.tsx | 2 +- src/views/profile/profile.tsx | 2 +- .../account-data-editor/account-data-editor.tsx | 2 +- .../settings/account-settings/account-settings.tsx | 2 +- .../settings/address-settings/address-settings.tsx | 2 +- .../settings/avatar-settings/avatar-settings.tsx | 2 +- .../settings/content-options/content-options.tsx | 2 +- .../settings/plebbit-options/plebbit-options.tsx | 2 +- src/views/settings/settings.tsx | 2 +- .../settings/wallet-settings/wallet-settings.tsx | 2 +- src/views/submit-page/submit-page.tsx | 2 +- .../subplebbit-data-editor.tsx | 2 +- .../subplebbit-settings/subplebbit-settings.tsx | 2 +- src/views/subplebbit/subplebbit.tsx | 2 +- src/views/subplebbits/subplebbits.tsx | 2 +- 64 files changed, 71 insertions(+), 80 deletions(-) diff --git a/src/components/account-bar/account-bar.tsx b/src/components/account-bar/account-bar.tsx index 7bb6e617..62d206b8 100644 --- a/src/components/account-bar/account-bar.tsx +++ b/src/components/account-bar/account-bar.tsx @@ -1,7 +1,7 @@ import { useCallback, useEffect, useRef, useState } from 'react'; import { Link, useLocation } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import { createAccount, setActiveAccount, useAccount, useAccounts } from '@bitsocialnet/bitsocial-react-hooks'; +import { createAccount, setActiveAccount, useAccount, useAccounts } from '@bitsocial/bitsocial-react-hooks'; import { isSettingsView } from '../../lib/utils/view-utils'; import styles from './account-bar.module.css'; import SearchBar from '../search-bar'; diff --git a/src/components/author-sidebar/author-sidebar.tsx b/src/components/author-sidebar/author-sidebar.tsx index 15e40cbc..574255a8 100644 --- a/src/components/author-sidebar/author-sidebar.tsx +++ b/src/components/author-sidebar/author-sidebar.tsx @@ -11,7 +11,7 @@ import { useBlock, useComment, useSubplebbits, -} from '@bitsocialnet/bitsocial-react-hooks'; +} from '@bitsocial/bitsocial-react-hooks'; import Plebbit from '@plebbit/plebbit-js'; import styles from './author-sidebar.module.css'; import { getFormattedTimeDuration } from '../../lib/utils/time-utils'; diff --git a/src/components/challenge-modal/challenge-modal.tsx b/src/components/challenge-modal/challenge-modal.tsx index 18a8740e..0c9ba1f6 100644 --- a/src/components/challenge-modal/challenge-modal.tsx +++ b/src/components/challenge-modal/challenge-modal.tsx @@ -1,6 +1,6 @@ import { useCallback, useEffect, useRef, useState } from 'react'; import { FloatingFocusManager, useClick, useDismiss, useFloating, useId, useInteractions, useRole } from '@floating-ui/react'; -import { Challenge as ChallengeType, useComment, useAccount } from '@bitsocialnet/bitsocial-react-hooks'; +import { Challenge as ChallengeType, useComment, useAccount } from '@bitsocial/bitsocial-react-hooks'; import { useTranslation } from 'react-i18next'; import useChallengesStore from '../../stores/use-challenges-store'; import useTheme from '../../hooks/use-theme'; diff --git a/src/components/comment-edit-form/comment-edit-form.tsx b/src/components/comment-edit-form/comment-edit-form.tsx index 81919447..d4f0dce2 100644 --- a/src/components/comment-edit-form/comment-edit-form.tsx +++ b/src/components/comment-edit-form/comment-edit-form.tsx @@ -1,6 +1,6 @@ import { useEffect, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; -import { PublishCommentEditOptions, useComment, useEditedComment, usePublishCommentEdit } from '@bitsocialnet/bitsocial-react-hooks'; +import { PublishCommentEditOptions, useComment, useEditedComment, usePublishCommentEdit } from '@bitsocial/bitsocial-react-hooks'; import { FormattingHelpTable } from '../reply-form'; import styles from '../reply-form/reply-form.module.css'; import { alertChallengeVerificationFailed } from '../../lib/utils/challenge-utils'; diff --git a/src/components/header/header.tsx b/src/components/header/header.tsx index 024f5476..6ce9b035 100644 --- a/src/components/header/header.tsx +++ b/src/components/header/header.tsx @@ -1,6 +1,6 @@ import { Link, useLocation, useParams } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import { useAccount, useAccountComment, useSubplebbit } from '@bitsocialnet/bitsocial-react-hooks'; +import { useAccount, useAccountComment, useSubplebbit } from '@bitsocial/bitsocial-react-hooks'; import Plebbit from '@plebbit/plebbit-js'; import { sortTypes } from '../../constants/sort-types'; import { sortLabels } from '../../constants/sort-labels'; diff --git a/src/components/notification-handler/notification-handler.tsx b/src/components/notification-handler/notification-handler.tsx index 820387ff..dfa58bd0 100644 --- a/src/components/notification-handler/notification-handler.tsx +++ b/src/components/notification-handler/notification-handler.tsx @@ -1,7 +1,7 @@ import { useEffect, useRef } from 'react'; import { useLocation } from 'react-router-dom'; -import { useNotifications } from '@bitsocialnet/bitsocial-react-hooks'; -import localForageLru from '@bitsocialnet/bitsocial-react-hooks/dist/lib/localforage-lru/index.js'; +import { useNotifications } from '@bitsocial/bitsocial-react-hooks'; +import localForageLru from '@bitsocial/bitsocial-react-hooks/dist/lib/localforage-lru/index.js'; import useContentOptionsStore from '../../stores/use-content-options-store'; import { showLocalNotification } from '../../lib/push'; diff --git a/src/components/post/comment-tools/comment-tools.tsx b/src/components/post/comment-tools/comment-tools.tsx index a98a9d87..4de4ab24 100644 --- a/src/components/post/comment-tools/comment-tools.tsx +++ b/src/components/post/comment-tools/comment-tools.tsx @@ -1,7 +1,7 @@ import { useCallback, useState } from 'react'; import { Link, useLocation } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import { Author, useAccount, useComment, useSubplebbit } from '@bitsocialnet/bitsocial-react-hooks'; +import { Author, useAccount, useComment, useSubplebbit } from '@bitsocial/bitsocial-react-hooks'; import useScheduledReset from '../../../hooks/use-scheduled-reset'; import styles from './comment-tools.module.css'; import EditMenu from './edit-menu'; diff --git a/src/components/post/comment-tools/edit-menu/edit-menu.tsx b/src/components/post/comment-tools/edit-menu/edit-menu.tsx index bcbf1b98..400fa9ae 100644 --- a/src/components/post/comment-tools/edit-menu/edit-menu.tsx +++ b/src/components/post/comment-tools/edit-menu/edit-menu.tsx @@ -1,6 +1,6 @@ import { useCallback, useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; -import { PublishCommentEditOptions, useComment, useEditedComment, usePublishCommentEdit } from '@bitsocialnet/bitsocial-react-hooks'; +import { PublishCommentEditOptions, useComment, useEditedComment, usePublishCommentEdit } from '@bitsocial/bitsocial-react-hooks'; import styles from './edit-menu.module.css'; import { alertChallengeVerificationFailed } from '../../../../lib/utils/challenge-utils'; import challengesStore from '../../../../stores/use-challenges-store'; diff --git a/src/components/post/comment-tools/hide-menu/hide-menu.tsx b/src/components/post/comment-tools/hide-menu/hide-menu.tsx index 8a0dfe0d..a6254d39 100644 --- a/src/components/post/comment-tools/hide-menu/hide-menu.tsx +++ b/src/components/post/comment-tools/hide-menu/hide-menu.tsx @@ -1,7 +1,7 @@ import { useState } from 'react'; import { useLocation } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import { Author, useBlock } from '@bitsocialnet/bitsocial-react-hooks'; +import { Author, useBlock } from '@bitsocial/bitsocial-react-hooks'; import Plebbit from '@plebbit/plebbit-js'; import { autoUpdate, flip, FloatingFocusManager, offset, shift, useClick, useDismiss, useFloating, useId, useInteractions, useRole } from '@floating-ui/react'; import { isProfileHiddenView } from '../../../../lib/utils/view-utils'; diff --git a/src/components/post/comment-tools/mod-menu/mod-menu.tsx b/src/components/post/comment-tools/mod-menu/mod-menu.tsx index 66b29d86..e9a07852 100644 --- a/src/components/post/comment-tools/mod-menu/mod-menu.tsx +++ b/src/components/post/comment-tools/mod-menu/mod-menu.tsx @@ -1,7 +1,7 @@ import { useState } from 'react'; import { autoUpdate, flip, FloatingFocusManager, offset, shift, useClick, useDismiss, useFloating, useId, useInteractions, useRole } from '@floating-ui/react'; import { Trans, useTranslation } from 'react-i18next'; -import { PublishCommentModerationOptions, useComment, useEditedComment, usePublishCommentModeration } from '@bitsocialnet/bitsocial-react-hooks'; +import { PublishCommentModerationOptions, useComment, useEditedComment, usePublishCommentModeration } from '@bitsocial/bitsocial-react-hooks'; import styles from './mod-menu.module.css'; import { alertChallengeVerificationFailed } from '../../../../lib/utils/challenge-utils'; import challengesStore from '../../../../stores/use-challenges-store'; diff --git a/src/components/post/post.tsx b/src/components/post/post.tsx index d40fb1fa..26bc671c 100644 --- a/src/components/post/post.tsx +++ b/src/components/post/post.tsx @@ -1,7 +1,7 @@ import { useState } from 'react'; import { useTranslation } from 'react-i18next'; import { Link, useLocation, useParams, useSearchParams } from 'react-router-dom'; -import { Comment, useAuthorAddress, useBlock, useComment, useEditedComment, useSubplebbit, useSubscribe } from '@bitsocialnet/bitsocial-react-hooks'; +import { Comment, useAuthorAddress, useBlock, useComment, useEditedComment, useSubplebbit, useSubscribe } from '@bitsocial/bitsocial-react-hooks'; import Plebbit from '@plebbit/plebbit-js'; import { getHasThumbnail } from '../../lib/utils/media-utils'; import { getPostScore, formatScore } from '../../lib/utils/post-utils'; diff --git a/src/components/reply-form/reply-form.tsx b/src/components/reply-form/reply-form.tsx index 6b3bbd6b..a74b282b 100644 --- a/src/components/reply-form/reply-form.tsx +++ b/src/components/reply-form/reply-form.tsx @@ -1,6 +1,6 @@ import { useEffect, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; -import { useSubplebbit } from '@bitsocialnet/bitsocial-react-hooks'; +import { useSubplebbit } from '@bitsocial/bitsocial-react-hooks'; import { isValidURL } from '../../lib/utils/url-utils'; import useIsSubplebbitOffline from '../../hooks/use-is-subplebbit-offline'; import usePublishReply from '../../hooks/use-publish-reply'; diff --git a/src/components/reply/reply.tsx b/src/components/reply/reply.tsx index e386f809..e7bc5864 100644 --- a/src/components/reply/reply.tsx +++ b/src/components/reply/reply.tsx @@ -2,20 +2,11 @@ import { Fragment, useEffect, useMemo, useState, useRef } from 'react'; import { Link, useLocation, useParams } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import Plebbit from '@plebbit/plebbit-js'; -import { - Comment, - useAccountComment, - useAuthorAddress, - useAuthorAvatar, - useBlock, - useComment, - useEditedComment, - useSubplebbit, -} from '@bitsocialnet/bitsocial-react-hooks'; +import { Comment, useAccountComment, useAuthorAddress, useAuthorAvatar, useBlock, useComment, useEditedComment, useSubplebbit } from '@bitsocial/bitsocial-react-hooks'; import { isInboxView, isPostContextView, isPostPageView } from '../../lib/utils/view-utils'; import { getHostname } from '../../lib/utils/url-utils'; import { formatScore, getReplyScore } from '../../lib/utils/post-utils'; -import { flattenCommentsPages } from '@bitsocialnet/bitsocial-react-hooks/dist/lib/utils'; +import { flattenCommentsPages } from '@bitsocial/bitsocial-react-hooks/dist/lib/utils'; import { CommentMediaInfo, getHasThumbnail } from '../../lib/utils/media-utils'; import { formatLocalizedUTCTimestamp, getFormattedTimeAgo } from '../../lib/utils/time-utils'; import { useCommentMediaInfo } from '../../hooks/use-comment-media-info'; diff --git a/src/components/search-bar/search-bar.tsx b/src/components/search-bar/search-bar.tsx index 498f1167..2c381155 100644 --- a/src/components/search-bar/search-bar.tsx +++ b/src/components/search-bar/search-bar.tsx @@ -2,7 +2,7 @@ import { useCallback, useEffect, useRef, useState, useMemo } from 'react'; import { useLocation, useNavigate, useParams, useSearchParams } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import { useFloating, autoUpdate, offset, shift, FloatingPortal } from '@floating-ui/react'; -import { useAccount } from '@bitsocialnet/bitsocial-react-hooks'; +import { useAccount } from '@bitsocial/bitsocial-react-hooks'; import Plebbit from '@plebbit/plebbit-js'; import { isHomeView, diff --git a/src/components/sidebar/sidebar.tsx b/src/components/sidebar/sidebar.tsx index 0b8d672b..02f05a5c 100644 --- a/src/components/sidebar/sidebar.tsx +++ b/src/components/sidebar/sidebar.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from 'react'; import { Link, useLocation, useNavigate, useParams } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import { Comment, useAccount, useBlock, Role, Subplebbit, useSubplebbitStats, useAccountComment, usePlebbitRpcSettings } from '@bitsocialnet/bitsocial-react-hooks'; +import { Comment, useAccount, useBlock, Role, Subplebbit, useSubplebbitStats, useAccountComment, usePlebbitRpcSettings } from '@bitsocial/bitsocial-react-hooks'; import Plebbit from '@plebbit/plebbit-js'; import { getPostScore } from '../../lib/utils/post-utils'; import { getFormattedDate, getFormattedTimeDuration, getFormattedTimeAgo } from '../../lib/utils/time-utils'; diff --git a/src/components/subscribe-button/subscribe-button.tsx b/src/components/subscribe-button/subscribe-button.tsx index 270e6172..dd03eb4d 100644 --- a/src/components/subscribe-button/subscribe-button.tsx +++ b/src/components/subscribe-button/subscribe-button.tsx @@ -1,6 +1,6 @@ import { useLocation, useParams } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import { useSubscribe } from '@bitsocialnet/bitsocial-react-hooks'; +import { useSubscribe } from '@bitsocial/bitsocial-react-hooks'; import styles from './subscribe-button.module.css'; import { isAuthorView, isProfileView, isPendingPostView } from '../../lib/utils/view-utils'; diff --git a/src/components/topbar/topbar.tsx b/src/components/topbar/topbar.tsx index 4cb6ca92..4af650d7 100644 --- a/src/components/topbar/topbar.tsx +++ b/src/components/topbar/topbar.tsx @@ -1,7 +1,7 @@ import { useEffect, useRef, useState, useMemo, memo } from 'react'; import { Link, useLocation, useParams } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import { useAccount, useAccountSubplebbits } from '@bitsocialnet/bitsocial-react-hooks'; +import { useAccount, useAccountSubplebbits } from '@bitsocial/bitsocial-react-hooks'; import Plebbit from '@plebbit/plebbit-js'; import { isAllView, isDomainView, isHomeView, isModView, isSubplebbitView } from '../../lib/utils/view-utils'; import useContentOptionsStore from '../../stores/use-content-options-store'; diff --git a/src/hooks/use-auto-subscribe.ts b/src/hooks/use-auto-subscribe.ts index 5e36b7db..b991d4db 100644 --- a/src/hooks/use-auto-subscribe.ts +++ b/src/hooks/use-auto-subscribe.ts @@ -1,5 +1,5 @@ import { useEffect } from 'react'; -import { useAccount, setAccount } from '@bitsocialnet/bitsocial-react-hooks'; +import { useAccount, setAccount } from '@bitsocial/bitsocial-react-hooks'; import { getAutoSubscribeAddresses, useDefaultSubplebbits } from './use-default-subplebbits'; import { useAutoSubscribeStore } from '../stores/use-auto-subscribe-store'; diff --git a/src/hooks/use-challenge-settings.ts b/src/hooks/use-challenge-settings.ts index a1f10cb7..0ceb3617 100644 --- a/src/hooks/use-challenge-settings.ts +++ b/src/hooks/use-challenge-settings.ts @@ -1,4 +1,4 @@ -import { usePlebbitRpcSettings } from '@bitsocialnet/bitsocial-react-hooks'; +import { usePlebbitRpcSettings } from '@bitsocial/bitsocial-react-hooks'; const useChallengeSettings = (challengeName: string) => { const { challenges } = usePlebbitRpcSettings().plebbitRpcSettings || {}; diff --git a/src/hooks/use-challenges-options.ts b/src/hooks/use-challenges-options.ts index 7442ec16..850f412a 100644 --- a/src/hooks/use-challenges-options.ts +++ b/src/hooks/use-challenges-options.ts @@ -1,4 +1,4 @@ -import { usePlebbitRpcSettings } from '@bitsocialnet/bitsocial-react-hooks'; +import { usePlebbitRpcSettings } from '@bitsocial/bitsocial-react-hooks'; const useChallengesOptions = () => { const { challenges } = usePlebbitRpcSettings().plebbitRpcSettings || {}; diff --git a/src/hooks/use-comment-media-info.ts b/src/hooks/use-comment-media-info.ts index 573b2ea6..2282eb9e 100644 --- a/src/hooks/use-comment-media-info.ts +++ b/src/hooks/use-comment-media-info.ts @@ -1,6 +1,6 @@ import { useCallback, useEffect } from 'react'; import { useLocation, useParams } from 'react-router-dom'; -import { Comment } from '@bitsocialnet/bitsocial-react-hooks'; +import { Comment } from '@bitsocial/bitsocial-react-hooks'; import { getCommentMediaInfo, fetchWebpageThumbnailIfNeeded } from '../lib/utils/media-utils'; import { isPendingPostView, isPostPageView } from '../lib/utils/view-utils'; diff --git a/src/hooks/use-default-subplebbits.ts b/src/hooks/use-default-subplebbits.ts index efc5c96e..bb9cc9e6 100644 --- a/src/hooks/use-default-subplebbits.ts +++ b/src/hooks/use-default-subplebbits.ts @@ -1,5 +1,5 @@ import { useEffect, useMemo, useState } from 'react'; -import { Subplebbit } from '@bitsocialnet/bitsocial-react-hooks'; +import { Subplebbit } from '@bitsocial/bitsocial-react-hooks'; import useContentOptionsStore from '../stores/use-content-options-store'; export interface MultisubMetadata { diff --git a/src/hooks/use-downvote.ts b/src/hooks/use-downvote.ts index a5eabd55..64c82eca 100644 --- a/src/hooks/use-downvote.ts +++ b/src/hooks/use-downvote.ts @@ -1,5 +1,5 @@ import { useMemo } from 'react'; -import { ChallengeVerification, Comment, usePublishVote, useAccountVote } from '@bitsocialnet/bitsocial-react-hooks'; +import { ChallengeVerification, Comment, usePublishVote, useAccountVote } from '@bitsocial/bitsocial-react-hooks'; import { alertChallengeVerificationFailed } from '../lib/utils/challenge-utils'; import useChallengesStore from '../stores/use-challenges-store'; diff --git a/src/hooks/use-fetch-gif-first-frame.ts b/src/hooks/use-fetch-gif-first-frame.ts index 6661ae2f..038ebdb3 100644 --- a/src/hooks/use-fetch-gif-first-frame.ts +++ b/src/hooks/use-fetch-gif-first-frame.ts @@ -1,6 +1,6 @@ import { useEffect, useState } from 'react'; import { decompressFrames, parseGIF } from 'gifuct-js'; -import localForageLru from '@bitsocialnet/bitsocial-react-hooks/dist/lib/localforage-lru/index.js'; +import localForageLru from '@bitsocial/bitsocial-react-hooks/dist/lib/localforage-lru/index.js'; const gifFrameDb = localForageLru.createInstance({ name: 'seeditGifFrames', size: 500 }); diff --git a/src/hooks/use-is-subplebbit-offline.ts b/src/hooks/use-is-subplebbit-offline.ts index 00863bff..79b040e7 100644 --- a/src/hooks/use-is-subplebbit-offline.ts +++ b/src/hooks/use-is-subplebbit-offline.ts @@ -1,6 +1,6 @@ import { useTranslation } from 'react-i18next'; import { useEffect } from 'react'; -import { Subplebbit } from '@bitsocialnet/bitsocial-react-hooks'; +import { Subplebbit } from '@bitsocial/bitsocial-react-hooks'; import { getFormattedTimeAgo } from '../lib/utils/time-utils'; import useSubplebbitOfflineStore from '../stores/use-subplebbit-offline-store'; import useSubplebbitsLoadingStartTimestamps from '../stores/use-subplebbits-loading-start-timestamps-store'; diff --git a/src/hooks/use-publish-reply.ts b/src/hooks/use-publish-reply.ts index d290109b..7fe1c568 100644 --- a/src/hooks/use-publish-reply.ts +++ b/src/hooks/use-publish-reply.ts @@ -1,5 +1,5 @@ import { useMemo } from 'react'; -import { usePublishComment } from '@bitsocialnet/bitsocial-react-hooks'; +import { usePublishComment } from '@bitsocial/bitsocial-react-hooks'; import usePublishReplyStore from '../stores/use-publish-reply-store'; const usePublishReply = ({ cid, subplebbitAddress, postCid }: { cid: string; subplebbitAddress: string; postCid: string | undefined }) => { diff --git a/src/hooks/use-replies.ts b/src/hooks/use-replies.ts index 7bc430b6..edd3cbcd 100644 --- a/src/hooks/use-replies.ts +++ b/src/hooks/use-replies.ts @@ -1,5 +1,5 @@ import { useMemo } from 'react'; -import { useAccountComments, type Comment } from '@bitsocialnet/bitsocial-react-hooks'; +import { useAccountComments, type Comment } from '@bitsocial/bitsocial-react-hooks'; import { getPublishedReplies, mergeRepliesWithPendingAccountReplies } from '../lib/utils/account-history-utils'; const useRepliesAndAccountReplies = (comment: Comment) => { diff --git a/src/hooks/use-state-string.ts b/src/hooks/use-state-string.ts index 3eec83ab..63f67480 100644 --- a/src/hooks/use-state-string.ts +++ b/src/hooks/use-state-string.ts @@ -1,5 +1,5 @@ import { useMemo } from 'react'; -import { useClientsStates, useSubplebbit, useSubplebbitsStates } from '@bitsocialnet/bitsocial-react-hooks'; +import { useClientsStates, useSubplebbit, useSubplebbitsStates } from '@bitsocial/bitsocial-react-hooks'; import { debounce } from 'lodash'; interface CommentOrSubplebbit { diff --git a/src/hooks/use-upvote.ts b/src/hooks/use-upvote.ts index 20f55c5d..07eacad7 100644 --- a/src/hooks/use-upvote.ts +++ b/src/hooks/use-upvote.ts @@ -1,5 +1,5 @@ import { useMemo } from 'react'; -import { ChallengeVerification, Comment, usePublishVote, useAccountVote } from '@bitsocialnet/bitsocial-react-hooks'; +import { ChallengeVerification, Comment, usePublishVote, useAccountVote } from '@bitsocial/bitsocial-react-hooks'; import useChallengesStore from '../stores/use-challenges-store'; import { alertChallengeVerificationFailed } from '../lib/utils/challenge-utils'; diff --git a/src/lib/bitsocial-react-hooks-compat.ts b/src/lib/bitsocial-react-hooks-compat.ts index cab0b5fd..ae943aff 100644 --- a/src/lib/bitsocial-react-hooks-compat.ts +++ b/src/lib/bitsocial-react-hooks-compat.ts @@ -12,7 +12,7 @@ import { useFeed as useFeedBase, usePublishCommunityEdit as usePublishCommunityEditBase, useSubscribe as useSubscribeBase, -} from '@bitsocialnet/bitsocial-react-hooks/dist/index.js'; +} from '@bitsocial/bitsocial-react-hooks/dist/index.js'; import type { Account, AccountCommunity, @@ -37,10 +37,10 @@ import type { UsePublishCommunityEditOptions, UsePublishCommunityEditResult, UseSubscribeOptions as BaseUseSubscribeOptions, -} from '@bitsocialnet/bitsocial-react-hooks/dist/index.js'; -import accountsStore from '@bitsocialnet/bitsocial-react-hooks/dist/stores/accounts/index.js'; +} from '@bitsocial/bitsocial-react-hooks/dist/index.js'; +import accountsStore from '@bitsocial/bitsocial-react-hooks/dist/stores/accounts/index.js'; -export * from '@bitsocialnet/bitsocial-react-hooks/dist/index.js'; +export * from '@bitsocial/bitsocial-react-hooks/dist/index.js'; type AliasAddresses = T; diff --git a/src/lib/utils/account-history-utils.test.ts b/src/lib/utils/account-history-utils.test.ts index 0292ad91..27232fe2 100644 --- a/src/lib/utils/account-history-utils.test.ts +++ b/src/lib/utils/account-history-utils.test.ts @@ -1,4 +1,4 @@ -import { type Comment } from '@bitsocialnet/bitsocial-react-hooks'; +import { type Comment } from '@bitsocial/bitsocial-react-hooks'; import { describe, expect, it } from 'vitest'; import { filterOptimisticLocalPosts, diff --git a/src/lib/utils/account-history-utils.ts b/src/lib/utils/account-history-utils.ts index cd53efd7..37124ebd 100644 --- a/src/lib/utils/account-history-utils.ts +++ b/src/lib/utils/account-history-utils.ts @@ -1,4 +1,4 @@ -import { type Comment } from '@bitsocialnet/bitsocial-react-hooks'; +import { type Comment } from '@bitsocial/bitsocial-react-hooks'; export const getAccountHistoryOrder = (sortType: string): 'asc' | 'desc' => (sortType === 'new' ? 'desc' : 'asc'); diff --git a/src/lib/utils/challenge-utils.ts b/src/lib/utils/challenge-utils.ts index 37f4e0a0..5ae71ae8 100644 --- a/src/lib/utils/challenge-utils.ts +++ b/src/lib/utils/challenge-utils.ts @@ -1,4 +1,4 @@ -import { ChallengeVerification } from '@bitsocialnet/bitsocial-react-hooks'; +import { ChallengeVerification } from '@bitsocial/bitsocial-react-hooks'; export const alertChallengeVerificationFailed = (challengeVerification: ChallengeVerification, publication: any) => { if (challengeVerification?.challengeSuccess === false) { diff --git a/src/lib/utils/cid-utils.ts b/src/lib/utils/cid-utils.ts index 80128658..c0703790 100644 --- a/src/lib/utils/cid-utils.ts +++ b/src/lib/utils/cid-utils.ts @@ -1,4 +1,4 @@ -import { Comment } from '@bitsocialnet/bitsocial-react-hooks'; +import { Comment } from '@bitsocial/bitsocial-react-hooks'; export const findTopParentCidOfReply = (replyCid: string, post: Comment): string | null => { if (!post?.replyCount || post?.replyCount === 0) { diff --git a/src/lib/utils/media-utils.ts b/src/lib/utils/media-utils.ts index 7502fbd6..0b693869 100644 --- a/src/lib/utils/media-utils.ts +++ b/src/lib/utils/media-utils.ts @@ -1,5 +1,5 @@ -import localForageLru from '@bitsocialnet/bitsocial-react-hooks/dist/lib/localforage-lru/index.js'; -import { Comment } from '@bitsocialnet/bitsocial-react-hooks'; +import localForageLru from '@bitsocial/bitsocial-react-hooks/dist/lib/localforage-lru/index.js'; +import { Comment } from '@bitsocial/bitsocial-react-hooks'; import extName from 'ext-name'; import { canEmbed } from '../../components/post/embed'; import memoize from 'memoizee'; diff --git a/src/lib/utils/nsfw-subscription-utils.ts b/src/lib/utils/nsfw-subscription-utils.ts index ba36aa12..43b975b5 100644 --- a/src/lib/utils/nsfw-subscription-utils.ts +++ b/src/lib/utils/nsfw-subscription-utils.ts @@ -1,4 +1,4 @@ -import { setAccount } from '@bitsocialnet/bitsocial-react-hooks'; +import { setAccount } from '@bitsocial/bitsocial-react-hooks'; const NSFW_SUBSCRIPTION_PROMPT_KEY_PREFIX = 'seedit-nsfw-subscription-prompt-shown-'; diff --git a/src/lib/utils/pattern-utils.ts b/src/lib/utils/pattern-utils.ts index 73749775..8fad2ef5 100644 --- a/src/lib/utils/pattern-utils.ts +++ b/src/lib/utils/pattern-utils.ts @@ -1,4 +1,4 @@ -import { Comment, useSubplebbit } from '@bitsocialnet/bitsocial-react-hooks'; +import { Comment, useSubplebbit } from '@bitsocial/bitsocial-react-hooks'; import React, { ReactNode, Fragment } from 'react'; /** diff --git a/src/lib/utils/user-utils.ts b/src/lib/utils/user-utils.ts index e4b683b9..d90013b3 100644 --- a/src/lib/utils/user-utils.ts +++ b/src/lib/utils/user-utils.ts @@ -1,4 +1,4 @@ -import { Role, Subplebbit, Comment } from '@bitsocialnet/bitsocial-react-hooks'; +import { Role, Subplebbit, Comment } from '@bitsocial/bitsocial-react-hooks'; export type Roles = { [address: string]: Role }; diff --git a/src/stores/use-challenges-store.ts b/src/stores/use-challenges-store.ts index 2561af7f..d4e5a9ad 100644 --- a/src/stores/use-challenges-store.ts +++ b/src/stores/use-challenges-store.ts @@ -1,5 +1,5 @@ import { create } from 'zustand'; -import { Challenge } from '@bitsocialnet/bitsocial-react-hooks'; +import { Challenge } from '@bitsocial/bitsocial-react-hooks'; interface State { challenges: Challenge[]; diff --git a/src/stores/use-publish-post-store.ts b/src/stores/use-publish-post-store.ts index e07e7867..0768afec 100644 --- a/src/stores/use-publish-post-store.ts +++ b/src/stores/use-publish-post-store.ts @@ -1,6 +1,6 @@ import { create } from 'zustand'; import challengesStore from './use-challenges-store'; -import { Comment, PublishCommentOptions } from '@bitsocialnet/bitsocial-react-hooks'; +import { Comment, PublishCommentOptions } from '@bitsocial/bitsocial-react-hooks'; import { alertChallengeVerificationFailed } from '../lib/utils/challenge-utils'; const { addChallenge } = challengesStore.getState(); diff --git a/src/stores/use-publish-reply-store.ts b/src/stores/use-publish-reply-store.ts index 3dd5bc2f..7fc9d5e3 100644 --- a/src/stores/use-publish-reply-store.ts +++ b/src/stores/use-publish-reply-store.ts @@ -1,5 +1,5 @@ -import { PublishCommentOptions } from '@bitsocialnet/bitsocial-react-hooks'; -import { ChallengeVerification, Comment } from '@bitsocialnet/bitsocial-react-hooks'; +import { PublishCommentOptions } from '@bitsocial/bitsocial-react-hooks'; +import { ChallengeVerification, Comment } from '@bitsocial/bitsocial-react-hooks'; import { create } from 'zustand'; import useChallengesStore from './use-challenges-store'; import { alertChallengeVerificationFailed } from '../lib/utils/challenge-utils'; diff --git a/src/stores/use-subplebbit-settings-store.ts b/src/stores/use-subplebbit-settings-store.ts index 5ab8023a..9877b85b 100644 --- a/src/stores/use-subplebbit-settings-store.ts +++ b/src/stores/use-subplebbit-settings-store.ts @@ -1,4 +1,4 @@ -import { PublishSubplebbitEditOptions } from '@bitsocialnet/bitsocial-react-hooks'; +import { PublishSubplebbitEditOptions } from '@bitsocial/bitsocial-react-hooks'; import { Roles } from '../lib/utils/user-utils'; import { create } from 'zustand'; diff --git a/src/views/about/about.tsx b/src/views/about/about.tsx index ab811059..b53d4631 100644 --- a/src/views/about/about.tsx +++ b/src/views/about/about.tsx @@ -3,7 +3,7 @@ import { HashLink } from 'react-router-hash-link'; import useIsMobile from '../../hooks/use-is-mobile'; import Sidebar, { Footer } from '../../components/sidebar'; import styles from './about.module.css'; -import { useAccount, useComment, useSubplebbit } from '@bitsocialnet/bitsocial-react-hooks'; +import { useAccount, useComment, useSubplebbit } from '@bitsocial/bitsocial-react-hooks'; import { Capacitor } from '@capacitor/core'; import { isHomeAboutView } from '../../lib/utils/view-utils'; import { useEffect } from 'react'; diff --git a/src/views/all/all.tsx b/src/views/all/all.tsx index ae576e1f..ac194bdb 100644 --- a/src/views/all/all.tsx +++ b/src/views/all/all.tsx @@ -2,7 +2,7 @@ import { useEffect, useRef, useState, useMemo } from 'react'; import { useParams, useSearchParams, useNavigate, useLocation } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import { Virtuoso, VirtuosoHandle, StateSnapshot } from 'react-virtuoso'; -import { useFeed } from '@bitsocialnet/bitsocial-react-hooks'; +import { useFeed } from '@bitsocial/bitsocial-react-hooks'; import { commentMatchesPattern } from '../../lib/utils/pattern-utils'; import useFeedFiltersStore from '../../stores/use-feed-filters-store'; import { useDefaultSubplebbitAddresses } from '../../hooks/use-default-subplebbits'; diff --git a/src/views/author/author.tsx b/src/views/author/author.tsx index d20fcb51..62119595 100644 --- a/src/views/author/author.tsx +++ b/src/views/author/author.tsx @@ -1,7 +1,7 @@ import { useEffect, useMemo, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useLocation, useNavigate, useParams } from 'react-router-dom'; -import { useAuthorComments, useAuthor } from '@bitsocialnet/bitsocial-react-hooks'; +import { useAuthorComments, useAuthor } from '@bitsocial/bitsocial-react-hooks'; import { StateSnapshot, Virtuoso, VirtuosoHandle } from 'react-virtuoso'; import { isAuthorCommentsView, isAuthorSubmittedView } from '../../lib/utils/view-utils'; import useWindowWidth from '../../hooks/use-window-width'; diff --git a/src/views/domain/domain.tsx b/src/views/domain/domain.tsx index 6c9eee24..5e2f11d8 100644 --- a/src/views/domain/domain.tsx +++ b/src/views/domain/domain.tsx @@ -1,7 +1,7 @@ import { useEffect, useRef, useState, useMemo, useCallback } from 'react'; import { useNavigate, useParams, useSearchParams } from 'react-router-dom'; import { Virtuoso, VirtuosoHandle, StateSnapshot } from 'react-virtuoso'; -import { useFeed, Comment, CommentsFilter } from '@bitsocialnet/bitsocial-react-hooks'; +import { useFeed, Comment, CommentsFilter } from '@bitsocial/bitsocial-react-hooks'; import { commentMatchesPattern } from '../../lib/utils/pattern-utils'; import useFeedFiltersStore from '../../stores/use-feed-filters-store'; import { useDefaultSubplebbitAddresses } from '../../hooks/use-default-subplebbits'; diff --git a/src/views/home/home.tsx b/src/views/home/home.tsx index 1d6c795e..cdb8c958 100644 --- a/src/views/home/home.tsx +++ b/src/views/home/home.tsx @@ -1,7 +1,7 @@ import { useEffect, useRef, useState, useMemo, useCallback, startTransition } from 'react'; import { Link, useNavigate, useParams, useSearchParams, useLocation } from 'react-router-dom'; import { Virtuoso, VirtuosoHandle, StateSnapshot } from 'react-virtuoso'; -import { useAccount, useFeed, Comment } from '@bitsocialnet/bitsocial-react-hooks'; +import { useAccount, useFeed, Comment } from '@bitsocial/bitsocial-react-hooks'; import { Trans, useTranslation } from 'react-i18next'; import { commentMatchesPattern } from '../../lib/utils/pattern-utils'; import useFeedFiltersStore from '../../stores/use-feed-filters-store'; diff --git a/src/views/inbox/inbox.tsx b/src/views/inbox/inbox.tsx index 4ce047aa..afcf4fcb 100644 --- a/src/views/inbox/inbox.tsx +++ b/src/views/inbox/inbox.tsx @@ -1,7 +1,7 @@ import { useEffect, useMemo, useRef, useState } from 'react'; import { Link, useLocation } from 'react-router-dom'; import { StateSnapshot, Virtuoso, VirtuosoHandle } from 'react-virtuoso'; -import { useAccount, useNotifications } from '@bitsocialnet/bitsocial-react-hooks'; +import { useAccount, useNotifications } from '@bitsocial/bitsocial-react-hooks'; import styles from './inbox.module.css'; import Reply from '../../components/reply/reply'; import { isInboxCommentRepliesView, isInboxPostRepliesView, isInboxUnreadView } from '../../lib/utils/view-utils'; diff --git a/src/views/mod/mod.tsx b/src/views/mod/mod.tsx index 7e6a8315..0f8935c6 100644 --- a/src/views/mod/mod.tsx +++ b/src/views/mod/mod.tsx @@ -1,7 +1,7 @@ import { useEffect, useRef, useState, useMemo } from 'react'; import { useParams, useSearchParams, useNavigate, useLocation } from 'react-router-dom'; import { Virtuoso, VirtuosoHandle, StateSnapshot } from 'react-virtuoso'; -import { useAccountSubplebbits, useFeed } from '@bitsocialnet/bitsocial-react-hooks'; +import { useAccountSubplebbits, useFeed } from '@bitsocial/bitsocial-react-hooks'; import { useTranslation } from 'react-i18next'; import { commentMatchesPattern } from '../../lib/utils/pattern-utils'; import useFeedFiltersStore from '../../stores/use-feed-filters-store'; diff --git a/src/views/post-page/post-page.tsx b/src/views/post-page/post-page.tsx index f160dcf2..e58a1ed2 100644 --- a/src/views/post-page/post-page.tsx +++ b/src/views/post-page/post-page.tsx @@ -1,7 +1,7 @@ import { useEffect, useState, useRef, useCallback, useMemo } from 'react'; import { Link, useLocation, useNavigate, useParams } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import { Comment, useAccount, useAccountComment, useAccountComments, useComment, useSubplebbit } from '@bitsocialnet/bitsocial-react-hooks'; +import { Comment, useAccount, useAccountComment, useAccountComments, useComment, useSubplebbit } from '@bitsocial/bitsocial-react-hooks'; import findTopParentCidOfReply from '../../lib/utils/cid-utils'; import { sortRepliesByBest } from '../../lib/utils/post-utils'; import { isPendingPostView, isPostContextView } from '../../lib/utils/view-utils'; diff --git a/src/views/profile/profile.tsx b/src/views/profile/profile.tsx index d5ca2e27..e6c7f9af 100644 --- a/src/views/profile/profile.tsx +++ b/src/views/profile/profile.tsx @@ -3,7 +3,7 @@ import { Trans, useTranslation } from 'react-i18next'; import { HashLink } from 'react-router-hash-link'; import { Outlet, useParams } from 'react-router-dom'; import { StateSnapshot, Virtuoso, VirtuosoHandle } from 'react-virtuoso'; -import { useAccount, useAccountComments, useAccountVotes, useComment, type AccountPublicationsFilter } from '@bitsocialnet/bitsocial-react-hooks'; +import { useAccount, useAccountComments, useAccountVotes, useComment, type AccountPublicationsFilter } from '@bitsocial/bitsocial-react-hooks'; import useWindowWidth from '../../hooks/use-window-width'; import AuthorSidebar from '../../components/author-sidebar'; import Post from '../../components/post'; diff --git a/src/views/settings/account-data-editor/account-data-editor.tsx b/src/views/settings/account-data-editor/account-data-editor.tsx index eb7bf59c..598ff959 100644 --- a/src/views/settings/account-data-editor/account-data-editor.tsx +++ b/src/views/settings/account-data-editor/account-data-editor.tsx @@ -1,7 +1,7 @@ import React, { useEffect, useMemo, useState, lazy, Suspense, Component } from 'react'; import { Trans, useTranslation } from 'react-i18next'; import { useNavigate } from 'react-router-dom'; -import { setAccount, useAccount } from '@bitsocialnet/bitsocial-react-hooks'; +import { setAccount, useAccount } from '@bitsocial/bitsocial-react-hooks'; import useTheme from '../../../stores/use-theme-store'; import stringify from 'json-stringify-pretty-compact'; import styles from './account-data-editor.module.css'; diff --git a/src/views/settings/account-settings/account-settings.tsx b/src/views/settings/account-settings/account-settings.tsx index 5c440295..c0f033c9 100644 --- a/src/views/settings/account-settings/account-settings.tsx +++ b/src/views/settings/account-settings/account-settings.tsx @@ -1,7 +1,7 @@ import { useEffect, useRef, useState } from 'react'; import { Link } from 'react-router-dom'; import { Trans, useTranslation } from 'react-i18next'; -import { createAccount, deleteAccount, exportAccount, importAccount, setActiveAccount, useAccount, useAccounts } from '@bitsocialnet/bitsocial-react-hooks'; +import { createAccount, deleteAccount, exportAccount, importAccount, setActiveAccount, useAccount, useAccounts } from '@bitsocial/bitsocial-react-hooks'; import { processImportedAccount } from '../../../lib/utils/account-import-utils'; import { exportFile } from '../../../lib/utils/file-export-utils'; import styles from './account-settings.module.css'; diff --git a/src/views/settings/address-settings/address-settings.tsx b/src/views/settings/address-settings/address-settings.tsx index 53dec224..38b5a57d 100644 --- a/src/views/settings/address-settings/address-settings.tsx +++ b/src/views/settings/address-settings/address-settings.tsx @@ -1,5 +1,5 @@ import { useState } from 'react'; -import { setAccount, useAccount, useResolvedAuthorAddress } from '@bitsocialnet/bitsocial-react-hooks'; +import { setAccount, useAccount, useResolvedAuthorAddress } from '@bitsocial/bitsocial-react-hooks'; import { useTranslation } from 'react-i18next'; import styles from './address-settings.module.css'; diff --git a/src/views/settings/avatar-settings/avatar-settings.tsx b/src/views/settings/avatar-settings/avatar-settings.tsx index 4e0c8c48..452ee209 100644 --- a/src/views/settings/avatar-settings/avatar-settings.tsx +++ b/src/views/settings/avatar-settings/avatar-settings.tsx @@ -1,6 +1,6 @@ import { useMemo, useState } from 'react'; import { Link } from 'react-router-dom'; -import { setAccount, useAccount, useAuthorAvatar } from '@bitsocialnet/bitsocial-react-hooks'; +import { setAccount, useAccount, useAuthorAvatar } from '@bitsocial/bitsocial-react-hooks'; import styles from './avatar-settings.module.css'; import { Trans, useTranslation } from 'react-i18next'; diff --git a/src/views/settings/content-options/content-options.tsx b/src/views/settings/content-options/content-options.tsx index e65a8512..a9f38984 100644 --- a/src/views/settings/content-options/content-options.tsx +++ b/src/views/settings/content-options/content-options.tsx @@ -1,5 +1,5 @@ import { useTranslation } from 'react-i18next'; -import { useAccount } from '@bitsocialnet/bitsocial-react-hooks'; +import { useAccount } from '@bitsocial/bitsocial-react-hooks'; import styles from './content-options.module.css'; import useContentOptionsStore from '../../../stores/use-content-options-store'; import { useDefaultSubplebbits } from '../../../hooks/use-default-subplebbits'; diff --git a/src/views/settings/plebbit-options/plebbit-options.tsx b/src/views/settings/plebbit-options/plebbit-options.tsx index d83adc9b..bf01c96c 100644 --- a/src/views/settings/plebbit-options/plebbit-options.tsx +++ b/src/views/settings/plebbit-options/plebbit-options.tsx @@ -1,7 +1,7 @@ import { RefObject, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useLocation } from 'react-router-dom'; -import { setAccount, useAccount, usePlebbitRpcSettings } from '@bitsocialnet/bitsocial-react-hooks'; +import { setAccount, useAccount, usePlebbitRpcSettings } from '@bitsocial/bitsocial-react-hooks'; import styles from './plebbit-options.module.css'; interface SettingsProps { diff --git a/src/views/settings/settings.tsx b/src/views/settings/settings.tsx index f2897ea6..cc2e3b5c 100644 --- a/src/views/settings/settings.tsx +++ b/src/views/settings/settings.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'; import { useLocation } from 'react-router-dom'; import { Trans, useTranslation } from 'react-i18next'; import { Capacitor } from '@capacitor/core'; -import { setAccount, useAccount } from '@bitsocialnet/bitsocial-react-hooks'; +import { setAccount, useAccount } from '@bitsocial/bitsocial-react-hooks'; import { isSettingsPlebbitOptionsView, isSettingsContentOptionsView } from '../../lib/utils/view-utils'; import useTheme from '../../hooks/use-theme'; import { VersionWithCommit } from '../../components/version'; diff --git a/src/views/settings/wallet-settings/wallet-settings.tsx b/src/views/settings/wallet-settings/wallet-settings.tsx index 48cd232a..f12d9523 100644 --- a/src/views/settings/wallet-settings/wallet-settings.tsx +++ b/src/views/settings/wallet-settings/wallet-settings.tsx @@ -1,5 +1,5 @@ import { Fragment, useState } from 'react'; -import { Account, setAccount, useAccount } from '@bitsocialnet/bitsocial-react-hooks'; +import { Account, setAccount, useAccount } from '@bitsocial/bitsocial-react-hooks'; import styles from './wallet-settings.module.css'; import { Trans, useTranslation } from 'react-i18next'; import InfoTooltip from '../../../components/info-tooltip'; diff --git a/src/views/submit-page/submit-page.tsx b/src/views/submit-page/submit-page.tsx index 01b5ee3d..d0bb89c7 100644 --- a/src/views/submit-page/submit-page.tsx +++ b/src/views/submit-page/submit-page.tsx @@ -2,7 +2,7 @@ import { useCallback, useEffect, useMemo, useState } from 'react'; import { useDropzone } from 'react-dropzone'; import { Trans, useTranslation } from 'react-i18next'; import { Link, useNavigate, useParams } from 'react-router-dom'; -import { useAccount, usePublishComment, useSubplebbit } from '@bitsocialnet/bitsocial-react-hooks'; +import { useAccount, usePublishComment, useSubplebbit } from '@bitsocial/bitsocial-react-hooks'; import Plebbit from '@plebbit/plebbit-js'; import { Capacitor } from '@capacitor/core'; import FileUploader from '../../plugins/file-uploader'; diff --git a/src/views/subplebbit-settings/subplebbit-data-editor/subplebbit-data-editor.tsx b/src/views/subplebbit-settings/subplebbit-data-editor/subplebbit-data-editor.tsx index c8df179c..cf376030 100644 --- a/src/views/subplebbit-settings/subplebbit-data-editor/subplebbit-data-editor.tsx +++ b/src/views/subplebbit-settings/subplebbit-data-editor/subplebbit-data-editor.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useMemo, useState, useRef, lazy, Suspense, Component } from 'react'; import { Trans, useTranslation } from 'react-i18next'; -import { usePublishSubplebbitEdit, useSubplebbit } from '@bitsocialnet/bitsocial-react-hooks'; +import { usePublishSubplebbitEdit, useSubplebbit } from '@bitsocial/bitsocial-react-hooks'; import useTheme from '../../../stores/use-theme-store'; import styles from '../../settings/account-data-editor/account-data-editor.module.css'; import useIsMobile from '../../../hooks/use-is-mobile'; diff --git a/src/views/subplebbit-settings/subplebbit-settings.tsx b/src/views/subplebbit-settings/subplebbit-settings.tsx index 88c79897..652ab806 100644 --- a/src/views/subplebbit-settings/subplebbit-settings.tsx +++ b/src/views/subplebbit-settings/subplebbit-settings.tsx @@ -10,7 +10,7 @@ import { usePublishSubplebbitEdit, useSubplebbit, useSubscribe, -} from '@bitsocialnet/bitsocial-react-hooks'; +} from '@bitsocial/bitsocial-react-hooks'; import { isUserOwnerOrAdmin, Roles } from '../../lib/utils/user-utils'; import { isValidURL } from '../../lib/utils/url-utils'; import { isCreateSubplebbitView, isSubplebbitSettingsView } from '../../lib/utils/view-utils'; diff --git a/src/views/subplebbit/subplebbit.tsx b/src/views/subplebbit/subplebbit.tsx index e51cbfa8..e26eebff 100644 --- a/src/views/subplebbit/subplebbit.tsx +++ b/src/views/subplebbit/subplebbit.tsx @@ -1,6 +1,6 @@ import { useEffect, useMemo, useRef, useState } from 'react'; import { Link, useParams, useNavigate, useSearchParams } from 'react-router-dom'; -import { useAccountComments, useBlock, useFeed, useSubplebbit, type Comment } from '@bitsocialnet/bitsocial-react-hooks'; +import { useAccountComments, useBlock, useFeed, useSubplebbit, type Comment } from '@bitsocial/bitsocial-react-hooks'; import { Virtuoso, VirtuosoHandle, StateSnapshot } from 'react-virtuoso'; import { Trans, useTranslation } from 'react-i18next'; import styles from '../home/home.module.css'; diff --git a/src/views/subplebbits/subplebbits.tsx b/src/views/subplebbits/subplebbits.tsx index 557cda21..22447e5e 100644 --- a/src/views/subplebbits/subplebbits.tsx +++ b/src/views/subplebbits/subplebbits.tsx @@ -1,7 +1,7 @@ import { Fragment, useEffect, useMemo, useState, useCallback } from 'react'; import { Link, useLocation } from 'react-router-dom'; import { Trans, useTranslation } from 'react-i18next'; -import { Subplebbit as SubplebbitType, useAccount, useAccountSubplebbits, useSubplebbits, useSubplebbitStats } from '@bitsocialnet/bitsocial-react-hooks'; +import { Subplebbit as SubplebbitType, useAccount, useAccountSubplebbits, useSubplebbits, useSubplebbitStats } from '@bitsocial/bitsocial-react-hooks'; import styles from './subplebbits.module.css'; import { getFormattedTimeDuration } from '../../lib/utils/time-utils'; import { From 309c553c5a601feb255e420ea561b8a13bbcd298 Mon Sep 17 00:00:00 2001 From: Tommaso Casaburi Date: Mon, 27 Apr 2026 14:38:23 +0700 Subject: [PATCH 3/5] refactor: rename subplebbit -> community across seedit Apply the broader subplebbit -> community rebrand on top of the package switch: - Rename hook usages (useSubplebbit -> useCommunity, useSubplebbits -> useCommunities, useSubplebbitStats -> useCommunityStats, useSubplebbitsStates -> useCommunitiesStates, useAccountSubplebbits -> useAccountCommunities, usePublishSubplebbitEdit -> usePublishCommunityEdit, usePlebbitRpcSettings -> usePkcRpcSettings) and types (Subplebbit -> Community, PublishSubplebbitEditOptions -> PublishCommunityEditOptions). - Rename seedit identifiers (variables, types, store names) from subplebbit/Subplebbit to community/Community. - git mv view directories, store files, hook files, and CSS modules from subplebbit-* to community-*. Update all imports. - Rename the React Router :subplebbitAddress route param to :communityAddress (path /s/ unchanged). - Update English translation values for community-related strings. - Drop src/lib/bitsocial-react-hooks-compat.ts (no longer needed now that @bitsocial/bitsocial-react-hooks exposes the community names natively). - Add src/hooks/use-community-identifier.ts and src/lib/utils/address-utils.ts as small adapters for the new CommunityIdentifier shape and short-address utility. - Fix src/hooks/use-default-subplebbits.ts to import Community instead of Subplebbit (PR #813 will rename the file in a follow-up; tiny merge conflict expected on that one file). Build, lint, and type-check all pass. --- public/translations/en/default.json | 4 +- src/app.tsx | 40 +-- .../author-sidebar/author-sidebar.tsx | 22 +- src/components/header/header.tsx | 149 +++++---- .../post/comment-tools/comment-tools.tsx | 4 +- .../comment-tools/hide-menu/hide-menu.tsx | 4 +- src/components/post/expando/expando.tsx | 2 +- src/components/post/post.tsx | 22 +- src/components/post/thumbnail/thumbnail.tsx | 2 +- src/components/reply-form/reply-form.tsx | 8 +- src/components/reply/reply.tsx | 8 +- src/components/search-bar/search-bar.tsx | 22 +- src/components/sidebar/sidebar.tsx | 48 +-- .../subscribe-button/subscribe-button.tsx | 2 +- src/components/topbar/topbar.tsx | 30 +- src/hooks/use-challenge-settings.ts | 4 +- src/hooks/use-challenges-options.ts | 4 +- src/hooks/use-community-identifier.ts | 25 ++ src/hooks/use-default-subplebbits.ts | 4 +- src/hooks/use-is-community-offline.ts | 51 ++++ src/hooks/use-is-subplebbit-offline.ts | 51 ---- src/hooks/use-state-string.ts | 31 +- src/hooks/use-time-filter.ts | 8 +- src/lib/bitsocial-react-hooks-compat.ts | 283 ------------------ src/lib/utils/address-utils.ts | 13 + src/lib/utils/pattern-utils.ts | 9 +- src/lib/utils/user-utils.ts | 4 +- src/lib/utils/view-utils.ts | 60 ++-- ...munities-loading-start-timestamps-store.ts | 42 +++ src/stores/use-community-offline-store.ts | 51 ++++ ...ore.ts => use-community-settings-store.ts} | 34 +-- src/stores/use-subplebbit-offline-store.ts | 51 ---- ...plebbits-loading-start-timestamps-store.ts | 42 --- src/views/about/about.tsx | 6 +- src/views/all/all.tsx | 11 +- .../communities.module.css} | 0 .../communities.tsx} | 185 ++++++------ src/views/communities/index.ts | 1 + .../challenge-settings/challenge-settings.tsx | 46 +-- .../challenge-settings/index.ts | 0 .../community-data-editor.tsx} | 60 ++-- .../community-data-editor/index.ts | 1 + .../community-settings.module.css} | 0 .../community-settings.tsx} | 184 ++++++------ src/views/community-settings/index.ts | 1 + .../community.tsx} | 17 +- src/views/community/index.ts | 1 + src/views/domain/domain.tsx | 13 +- src/views/home/home.tsx | 11 +- src/views/mod/mod.tsx | 15 +- src/views/post-page/post-page.tsx | 9 +- .../plebbit-options/plebbit-options.tsx | 8 +- src/views/submit-page/submit-page.tsx | 18 +- src/views/subplebbit-settings/index.ts | 1 - .../subplebbit-data-editor/index.ts | 1 - src/views/subplebbit/index.ts | 1 - src/views/subplebbits/index.ts | 1 - 57 files changed, 740 insertions(+), 985 deletions(-) create mode 100644 src/hooks/use-community-identifier.ts create mode 100644 src/hooks/use-is-community-offline.ts delete mode 100644 src/hooks/use-is-subplebbit-offline.ts delete mode 100644 src/lib/bitsocial-react-hooks-compat.ts create mode 100644 src/lib/utils/address-utils.ts create mode 100644 src/stores/use-communities-loading-start-timestamps-store.ts create mode 100644 src/stores/use-community-offline-store.ts rename src/stores/{use-subplebbit-settings-store.ts => use-community-settings-store.ts} (64%) delete mode 100644 src/stores/use-subplebbit-offline-store.ts delete mode 100644 src/stores/use-subplebbits-loading-start-timestamps-store.ts rename src/views/{subplebbits/subplebbits.module.css => communities/communities.module.css} (100%) rename src/views/{subplebbits/subplebbits.tsx => communities/communities.tsx} (75%) create mode 100644 src/views/communities/index.ts rename src/views/{subplebbit-settings => community-settings}/challenge-settings/challenge-settings.tsx (91%) rename src/views/{subplebbit-settings => community-settings}/challenge-settings/index.ts (100%) rename src/views/{subplebbit-settings/subplebbit-data-editor/subplebbit-data-editor.tsx => community-settings/community-data-editor/community-data-editor.tsx} (82%) create mode 100644 src/views/community-settings/community-data-editor/index.ts rename src/views/{subplebbit-settings/subplebbit-settings.module.css => community-settings/community-settings.module.css} (100%) rename src/views/{subplebbit-settings/subplebbit-settings.tsx => community-settings/community-settings.tsx} (75%) create mode 100644 src/views/community-settings/index.ts rename src/views/{subplebbit/subplebbit.tsx => community/community.tsx} (95%) create mode 100644 src/views/community/index.ts delete mode 100644 src/views/subplebbit-settings/index.ts delete mode 100644 src/views/subplebbit-settings/subplebbit-data-editor/index.ts delete mode 100644 src/views/subplebbit/index.ts delete mode 100644 src/views/subplebbits/index.ts diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 45894edb..10fd0dab 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -293,8 +293,8 @@ "more_posts_last_month": "{{count}} posts last {{currentTimeFilterName}}: <1>show more posts from last month", "profile_info": "Your account u/{{shortAddress}} was created. <1>Set display name, <2>export backup, <3>learn more.", "show_all_instead": "Showing posts since {{timeFilterName}}, <1>show all instead", - "subplebbit_offline_info": "The subplebbit might be offline and publishing might fail.", - "posts_last_synced_info": "Posts last synced {{time}}, the subplebbit might be offline and publishing might fail.", + "subplebbit_offline_info": "The community might be offline and publishing might fail.", + "posts_last_synced_info": "Posts last synced {{time}}, the community might be offline and publishing might fail.", "import_account_backup": "<1>import account backup", "export_account_backup": "<1>export account backup", "save_reset_changes": "<1>save or <2>reset changes", diff --git a/src/app.tsx b/src/app.tsx index 2ed126a1..1879e819 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -15,11 +15,11 @@ import PostPage from './views/post-page'; import Profile from './views/profile'; import Settings from './views/settings'; import AccountDataEditor from './views/settings/account-data-editor'; -import SubplebbitDataEditor from './views/subplebbit-settings/subplebbit-data-editor'; +import CommunityDataEditor from './views/community-settings/community-data-editor'; import SubmitPage from './views/submit-page'; -import Subplebbit from './views/subplebbit'; -import SubplebbitSettings from './views/subplebbit-settings'; -import Subplebbits from './views/subplebbits'; +import CommunityView from './views/community'; +import CommunitySettings from './views/community-settings'; +import Communities from './views/communities'; import AccountBar from './components/account-bar/'; import ChallengeModal from './components/challenge-modal'; import Header from './components/header'; @@ -90,15 +90,15 @@ const App = () => { } /> } /> - } /> - } /> + } /> + } /> - } /> - } /> + } /> + } /> } /> - } /> - } /> + } /> + } /> } /> } /> } /> @@ -112,15 +112,15 @@ const App = () => { } /> } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> } /> @@ -129,7 +129,7 @@ const App = () => { } /> - } /> + } /> } /> diff --git a/src/components/author-sidebar/author-sidebar.tsx b/src/components/author-sidebar/author-sidebar.tsx index 574255a8..d03f9d7a 100644 --- a/src/components/author-sidebar/author-sidebar.tsx +++ b/src/components/author-sidebar/author-sidebar.tsx @@ -3,26 +3,28 @@ import { Link, useLocation, useParams } from 'react-router-dom'; import { useAccount, useAccountComments, - useAccountSubplebbits, - AccountSubplebbit, + useAccountCommunities, + AccountCommunity, + Community, useAuthor, useAuthorAvatar, useAuthorComments, useBlock, useComment, - useSubplebbits, + useCommunities, } from '@bitsocial/bitsocial-react-hooks'; -import Plebbit from '@plebbit/plebbit-js'; import styles from './author-sidebar.module.css'; import { getFormattedTimeDuration } from '../../lib/utils/time-utils'; import { getOldestAccountHistoryTimestamp } from '../../lib/utils/account-history-utils'; import { isAuthorView, isProfileView } from '../../lib/utils/view-utils'; import { findAuthorSubplebbits, estimateAuthorKarma } from '../../lib/utils/user-utils'; +import getShortAddress from '../../lib/utils/address-utils'; +import { getCommunityIdentifiers } from '../../hooks/use-community-identifier'; import { useTranslation } from 'react-i18next'; import { useDefaultSubplebbitAddresses } from '../../hooks/use-default-subplebbits'; interface AuthorModeratingListProps { - accountSubplebbits: Record; + accountSubplebbits: Record>; authorSubplebbits: string[]; isAuthor?: boolean; } @@ -39,7 +41,7 @@ const AuthorModeratingList = ({ accountSubplebbits, authorSubplebbits, isAuthor
    {subplebbitAddresses.map((address, index) => (
  • - s/{Plebbit.getShortAddress({ address })} + s/{getShortAddress(address)}
  • ))}
@@ -65,7 +67,7 @@ const AuthorSidebar = () => { const userAccount = useAccount(); const { imageUrl: profilePageAvatar } = useAuthorAvatar({ author: userAccount?.author }); const { accountComments: oldestAccountComment } = useAccountComments({ page: 0, pageSize: 1, order: 'asc' }); - const { accountSubplebbits } = useAccountSubplebbits(); + const { accountCommunities: accountSubplebbits } = useAccountCommunities(); const profileOldestAccountTimestamp = getOldestAccountHistoryTimestamp(oldestAccountComment as { timestamp?: number }[]); const defaultSubplebbitAddresses = useDefaultSubplebbitAddresses(); @@ -73,10 +75,10 @@ const AuthorSidebar = () => { const subscriptionsAndDefaults = [...accountSubscriptions, ...defaultSubplebbitAddresses]; const subplebbits = - useSubplebbits({ - subplebbitAddresses: subscriptionsAndDefaults || [], + useCommunities({ + communities: getCommunityIdentifiers(subscriptionsAndDefaults || []), onlyIfCached: true, - }).subplebbits?.filter(Boolean) || []; + }).communities?.filter(Boolean) || []; const authorAccount = useAuthor({ authorAddress, commentCid }); const { authorComments } = useAuthorComments({ authorAddress, commentCid }); diff --git a/src/components/header/header.tsx b/src/components/header/header.tsx index 6ce9b035..52f9342e 100644 --- a/src/components/header/header.tsx +++ b/src/components/header/header.tsx @@ -1,7 +1,6 @@ import { Link, useLocation, useParams } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import { useAccount, useAccountComment, useSubplebbit } from '@bitsocial/bitsocial-react-hooks'; -import Plebbit from '@plebbit/plebbit-js'; +import { useAccount, useAccountComment, useCommunity } from '@bitsocial/bitsocial-react-hooks'; import { sortTypes } from '../../constants/sort-types'; import { sortLabels } from '../../constants/sort-labels'; import { @@ -11,7 +10,7 @@ import { isAuthorView, isAuthorCommentsView, isAuthorSubmittedView, - isCreateSubplebbitView, + isCreateCommunityView, isHomeAboutView, isHomeView, isInboxView, @@ -25,23 +24,24 @@ import { isProfileHiddenView, isSettingsView, isSubmitView, - isSubplebbitView, - isSubplebbitSettingsView, - isSubplebbitSubmitView, - isSubplebbitsView, - isSubplebbitsSubscriberView, - isSubplebbitsModeratorView, - isSubplebbitsAdminView, - isSubplebbitsVoteView, - isSubplebbitsOwnerView, + isCommunityView, + isCommunitySettingsView, + isCommunitySubmitView, + isCommunitiesView, + isCommunitiesSubscriberView, + isCommunitiesModeratorView, + isCommunitiesAdminView, + isCommunitiesVoteView, + isCommunitiesOwnerView, isProfileUpvotedView, isSettingsContentOptionsView, isSettingsPlebbitOptionsView, - isSubplebbitAboutView, + isCommunityAboutView, isDomainView, isPostPageAboutView, isSettingsAccountDataView, } from '../../lib/utils/view-utils'; +import getShortAddress from '../../lib/utils/address-utils'; import useContentOptionsStore from '../../stores/use-content-options-store'; import useNotFoundStore from '../../stores/use-not-found-store'; import { useIsBroadlyNsfwSubplebbit } from '../../hooks/use-is-broadly-nsfw-subplebbit'; @@ -56,10 +56,10 @@ const AboutButton = () => { const aboutLink = getAboutLink(location.pathname, params); const isInHomeAboutView = isHomeAboutView(location.pathname); const isInPostPageAboutView = isPostPageAboutView(location.pathname, params); - const isInSubplebbitAboutView = isSubplebbitAboutView(location.pathname, params); + const isInCommunityAboutView = isCommunityAboutView(location.pathname, params); return ( -
  • +
  • {t('about')}
  • ); @@ -76,7 +76,7 @@ const CommentsButton = () => { return (
  • - isInPendingPostView && e.preventDefault()}> + isInPendingPostView && e.preventDefault()}> {t('comments')}
  • @@ -89,18 +89,18 @@ const SortItems = () => { const location = useLocation(); const isInHomeAboutView = isHomeAboutView(location.pathname); const isInPostPageAboutView = isPostPageAboutView(location.pathname, params); - const isInSubplebbitAboutView = isSubplebbitAboutView(location.pathname, params); + const isInCommunityAboutView = isCommunityAboutView(location.pathname, params); const isInAllView = isAllView(location.pathname); const isInModView = isModView(location.pathname); const isInDomainView = isDomainView(location.pathname); - const isInSubplebbitView = isSubplebbitView(location.pathname, params); + const isInCommunityView = isCommunityView(location.pathname, params); // Derive selection directly from route instead of syncing via an effect - const selectedSortType = isInHomeAboutView || isInSubplebbitAboutView || isInPostPageAboutView ? '' : params.sortType || 'hot'; + const selectedSortType = isInHomeAboutView || isInCommunityAboutView || isInPostPageAboutView ? '' : params.sortType || 'hot'; const timeFilterName = params.timeFilterName; return sortTypes.map((sortType, index) => { - let sortLink = isInSubplebbitView - ? `/s/${params.subplebbitAddress}/${sortType}` + let sortLink = isInCommunityView + ? `/s/${params.communityAddress}/${sortType}` : isInAllView ? `/s/all/${sortType}` : isInModView @@ -196,27 +196,27 @@ const InboxHeaderTabs = () => { const SubplebbitsHeaderTabs = () => { const { t } = useTranslation(); const location = useLocation(); - const isInSubplebbitsSubscriberView = isSubplebbitsSubscriberView(location.pathname); - const isInSubplebbitsModeratorView = isSubplebbitsModeratorView(location.pathname); - const isInSubplebbitsAdminView = isSubplebbitsAdminView(location.pathname); - const isInSubplebbitsOwnerView = isSubplebbitsOwnerView(location.pathname); - const isInSubplebbitsVoteView = isSubplebbitsVoteView(location.pathname); - const isInSubplebbitsView = - isSubplebbitsView(location.pathname) && - !isInSubplebbitsSubscriberView && - !isInSubplebbitsModeratorView && - !isInSubplebbitsAdminView && - !isInSubplebbitsOwnerView && - !isInSubplebbitsVoteView; + const isInCommunitiesSubscriberView = isCommunitiesSubscriberView(location.pathname); + const isInCommunitiesModeratorView = isCommunitiesModeratorView(location.pathname); + const isInCommunitiesAdminView = isCommunitiesAdminView(location.pathname); + const isInCommunitiesOwnerView = isCommunitiesOwnerView(location.pathname); + const isInCommunitiesVoteView = isCommunitiesVoteView(location.pathname); + const isInCommunitiesView = + isCommunitiesView(location.pathname) && + !isInCommunitiesSubscriberView && + !isInCommunitiesModeratorView && + !isInCommunitiesAdminView && + !isInCommunitiesOwnerView && + !isInCommunitiesVoteView; return ( <> -
  • +
  • {t('vote')}
  • { const isInPendingPostView = isPendingPostView(location.pathname, params); const isInPostPageView = isPostPageView(location.pathname, params); const isInProfileView = isProfileView(location.pathname); - const isInSubplebbitView = isSubplebbitView(location.pathname, params); - const isInSubplebbitSettingsView = isSubplebbitSettingsView(location.pathname, params); - const isInSubplebbitSubmitView = isSubplebbitSubmitView(location.pathname, params); - const isInSubplebbitsView = isSubplebbitsView(location.pathname); - const isInCreateSubplebbitView = isCreateSubplebbitView(location.pathname); + const isInCommunityView = isCommunityView(location.pathname, params); + const isInCommunitySettingsView = isCommunitySettingsView(location.pathname, params); + const isInCommunitySubmitView = isCommunitySubmitView(location.pathname, params); + const isInCommunitiesView = isCommunitiesView(location.pathname); + const isInCreateCommunityView = isCreateCommunityView(location.pathname); const isInSettingsView = isSettingsView(location.pathname); const isInSettingsContentOptionsView = isSettingsContentOptionsView(location.pathname); const isInSettingsPlebbitOptionsView = isSettingsPlebbitOptionsView(location.pathname); @@ -278,7 +278,7 @@ const HeaderTabs = () => { isInHomeView || isInHomeAboutView || isInPostPageAboutView || - (isInSubplebbitView && !isInSubplebbitSubmitView && !isInSubplebbitSettingsView) || + (isInCommunityView && !isInCommunitySubmitView && !isInCommunitySettingsView) || isInAllView || isInModView || isInDomainView @@ -288,7 +288,7 @@ const HeaderTabs = () => { return ; } else if (isInInboxView) { return ; - } else if (isInSubplebbitsView && !isInCreateSubplebbitView) { + } else if (isInCommunitiesView && !isInCreateCommunityView) { return ; } else if (isInSettingsView || isInSettingsPlebbitOptionsView || isInSettingsContentOptionsView) { return ; @@ -313,14 +313,14 @@ const HeaderTitle = ({ title, pendingPostSubplebbitAddress }: { title: string; p const isInSettingsContentOptionsView = isSettingsContentOptionsView(location.pathname); const isInSettingsPlebbitOptionsView = isSettingsPlebbitOptionsView(location.pathname); const isInSubmitView = isSubmitView(location.pathname); - const isInSubplebbitView = isSubplebbitView(location.pathname, params); - const isInSubplebbitSubmitView = isSubplebbitSubmitView(location.pathname, params); - const isInSubplebbitSettingsView = isSubplebbitSettingsView(location.pathname, params); - const isInSubplebbitsView = isSubplebbitsView(location.pathname); - const isInCreateSubplebbitView = isCreateSubplebbitView(location.pathname); + const isInCommunityView = isCommunityView(location.pathname, params); + const isInCommunitySubmitView = isCommunitySubmitView(location.pathname, params); + const isInCommunitySettingsView = isCommunitySettingsView(location.pathname, params); + const isInCommunitiesView = isCommunitiesView(location.pathname); + const isInCreateCommunityView = isCreateCommunityView(location.pathname); const isInNotFoundView = useNotFoundStore((state) => state.isNotFound); - const subplebbitAddress = params.subplebbitAddress; + const subplebbitAddress = params.communityAddress; const { hideAdultCommunities, hideGoreCommunities, hideAntiCommunities, hideVulgarCommunities } = useContentOptionsStore(); const hasUnhiddenAnyNsfwCommunity = !hideAdultCommunities || !hideGoreCommunities || !hideAntiCommunities || !hideVulgarCommunities; @@ -328,27 +328,23 @@ const HeaderTitle = ({ title, pendingPostSubplebbitAddress }: { title: string; p const subplebbitTitle = ( - {title || - (subplebbitAddress && Plebbit.getShortAddress({ address: subplebbitAddress })) || - (pendingPostSubplebbitAddress && Plebbit.getShortAddress({ address: pendingPostSubplebbitAddress }))} + {title || (subplebbitAddress && getShortAddress(subplebbitAddress)) || (pendingPostSubplebbitAddress && getShortAddress(pendingPostSubplebbitAddress))} ); const domainTitle = {params.domain}; const submitTitle = {t('submit')}; const profileTitle = {account?.author?.shortAddress}; - const authorTitle = ( - {params.authorAddress && Plebbit.getShortAddress({ address: params.authorAddress })} - ); + const authorTitle = {params.authorAddress && getShortAddress(params.authorAddress)}; if (isBroadlyNsfwSubplebbit && !hasUnhiddenAnyNsfwCommunity) { return {t('over_18')}; - } else if (isInSubplebbitSubmitView) { + } else if (isInCommunitySubmitView) { return ( <> {subplebbitTitle}: {submitTitle} ); - } else if (isInSubplebbitSettingsView) { + } else if (isInCommunitySettingsView) { return ( <> {subplebbitTitle}: {t('community_settings')} @@ -360,15 +356,15 @@ const HeaderTitle = ({ title, pendingPostSubplebbitAddress }: { title: string; p return t('preferences'); } else if (isInProfileView && !isInPendingPostView) { return profileTitle; - } else if (isInPostPageView || isInPendingPostView || (isInSubplebbitView && !isInSubplebbitSettingsView)) { + } else if (isInPostPageView || isInPendingPostView || (isInCommunityView && !isInCommunitySettingsView)) { return subplebbitTitle; } else if (isInAuthorView) { return authorTitle; } else if (isInInboxView) { return t('messages'); - } else if (isInCreateSubplebbitView) { + } else if (isInCreateCommunityView) { return {t('create_community')}; - } else if (isInSubplebbitsView) { + } else if (isInCommunitiesView) { return t('communities'); } else if (isInNotFoundView) { return {t('page_not_found')}; @@ -387,7 +383,7 @@ const Header = () => { const [theme] = useTheme(); const location = useLocation(); const params = useParams(); - const subplebbit = useSubplebbit({ subplebbitAddress: params?.subplebbitAddress, onlyIfCached: true }); + const subplebbit = useCommunity(params?.communityAddress ? { community: { name: params?.communityAddress }, onlyIfCached: true } : undefined); const { suggested, title } = subplebbit || {}; const commentIndex = params?.accountCommentIndex ? parseInt(params?.accountCommentIndex) : undefined; @@ -407,24 +403,23 @@ const Header = () => { const isInPendingPostView = isPendingPostView(location.pathname, params); const isInProfileView = isProfileView(location.pathname); const isInSettingsView = isSettingsView(location.pathname); - const isInSubplebbitView = isSubplebbitView(location.pathname, params); - const isInSubplebbitAboutView = isSubplebbitAboutView(location.pathname, params); + const isInCommunityView = isCommunityView(location.pathname, params); + const isInCommunityAboutView = isCommunityAboutView(location.pathname, params); const isInSubmitView = isSubmitView(location.pathname); - const isInSubplebbitSubmitView = isSubplebbitSubmitView(location.pathname, params); - const isInSubplebbitSettingsView = isSubplebbitSettingsView(location.pathname, params); + const isInCommunitySubmitView = isCommunitySubmitView(location.pathname, params); + const isInCommunitySettingsView = isCommunitySettingsView(location.pathname, params); const isInNotFoundView = useNotFoundStore((state) => state.isNotFound); - const hasFewTabs = - isInPostPageView || isInSubmitView || isInSubplebbitSubmitView || isInSubplebbitSettingsView || isInSettingsView || isInInboxView || isInSettingsView; + const hasFewTabs = isInPostPageView || isInSubmitView || isInCommunitySubmitView || isInCommunitySettingsView || isInSettingsView || isInInboxView || isInSettingsView; const hasStickyHeader = isInHomeView || isInNotFoundView || - (isInSubplebbitView && - !isInSubplebbitSubmitView && - !isInSubplebbitSettingsView && + (isInCommunityView && + !isInCommunitySubmitView && + !isInCommunitySettingsView && !isInPostPageView && !isInHomeAboutView && - !isInSubplebbitAboutView && + !isInCommunityAboutView && !isInPostPageAboutView) || (isInProfileView && !isInHomeAboutView) || (isInAllView && !isInAllAboutView) || @@ -432,7 +427,7 @@ const Header = () => { (isInDomainView && !isInHomeAboutView) || (isInAuthorView && !isInHomeAboutView); - const subplebbitAddress = params.subplebbitAddress; + const subplebbitAddress = params.communityAddress; const contentOptionsStore = useContentOptionsStore(); const hasUnhiddenAnyNsfwCommunity = @@ -442,7 +437,7 @@ const Header = () => { !contentOptionsStore.hideVulgarCommunities; const isBroadlyNsfwSubplebbit = useIsBroadlyNsfwSubplebbit(subplebbitAddress || ''); - const logoIsAvatar = isInSubplebbitView && suggested?.avatarUrl && !(isBroadlyNsfwSubplebbit && !hasUnhiddenAnyNsfwCommunity); + const logoIsAvatar = isInCommunityView && suggested?.avatarUrl && !(isBroadlyNsfwSubplebbit && !hasUnhiddenAnyNsfwCommunity); const logoSrc = logoIsAvatar ? suggested?.avatarUrl : 'assets/sprout/sprout.png'; const logoLink = '/'; @@ -459,15 +454,15 @@ const Header = () => {
    - {(logoIsAvatar || (!isInSubplebbitView && !isInProfileView && !isInAuthorView) || !logoIsAvatar) && ( + {(logoIsAvatar || (!isInCommunityView && !isInProfileView && !isInAuthorView) || !logoIsAvatar) && ( )} - {((!isInSubplebbitView && !isInProfileView && !isInAuthorView) || !logoIsAvatar) && ( + {((!isInCommunityView && !isInProfileView && !isInAuthorView) || !logoIsAvatar) && ( )} @@ -489,10 +484,10 @@ const Header = () => { )}
    - {isMobile && !isInSubplebbitSubmitView && !(isBroadlyNsfwSubplebbit && !hasUnhiddenAnyNsfwCommunity) && ( + {isMobile && !isInCommunitySubmitView && !(isBroadlyNsfwSubplebbit && !hasUnhiddenAnyNsfwCommunity) && (
      - {(isInHomeView || isInHomeAboutView || isInSubplebbitView || isInHomeAboutView || isInPostPageView) && } + {(isInHomeView || isInHomeAboutView || isInCommunityView || isInHomeAboutView || isInPostPageView) && } {!isInSubmitView && !isInSettingsView && (
    • diff --git a/src/components/post/comment-tools/comment-tools.tsx b/src/components/post/comment-tools/comment-tools.tsx index 4de4ab24..f619fe86 100644 --- a/src/components/post/comment-tools/comment-tools.tsx +++ b/src/components/post/comment-tools/comment-tools.tsx @@ -1,7 +1,7 @@ import { useCallback, useState } from 'react'; import { Link, useLocation } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import { Author, useAccount, useComment, useSubplebbit } from '@bitsocial/bitsocial-react-hooks'; +import { Author, useAccount, useComment, useCommunity } from '@bitsocial/bitsocial-react-hooks'; import useScheduledReset from '../../../hooks/use-scheduled-reset'; import styles from './comment-tools.module.css'; import EditMenu from './edit-menu'; @@ -296,7 +296,7 @@ const CommentTools = ({ }: CommentToolsProps) => { const account = useAccount(); const isAuthor = account?.author?.address === author?.address; - const subplebbit = useSubplebbit({ subplebbitAddress, onlyIfCached: true }); + const subplebbit = useCommunity(subplebbitAddress ? { community: { name: subplebbitAddress }, onlyIfCached: true } : undefined); const accountAuthorRole = subplebbit?.roles?.[account?.author?.address]?.role; const commentAuthorRole = subplebbit?.roles?.[author?.address]?.role; const isAccountMod = accountAuthorRole === 'admin' || accountAuthorRole === 'owner' || accountAuthorRole === 'moderator'; diff --git a/src/components/post/comment-tools/hide-menu/hide-menu.tsx b/src/components/post/comment-tools/hide-menu/hide-menu.tsx index a6254d39..52964a58 100644 --- a/src/components/post/comment-tools/hide-menu/hide-menu.tsx +++ b/src/components/post/comment-tools/hide-menu/hide-menu.tsx @@ -2,9 +2,9 @@ import { useState } from 'react'; import { useLocation } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import { Author, useBlock } from '@bitsocial/bitsocial-react-hooks'; -import Plebbit from '@plebbit/plebbit-js'; import { autoUpdate, flip, FloatingFocusManager, offset, shift, useClick, useDismiss, useFloating, useId, useInteractions, useRole } from '@floating-ui/react'; import { isProfileHiddenView } from '../../../../lib/utils/view-utils'; +import getShortAddress from '../../../../lib/utils/address-utils'; import styles from './hide-menu.module.css'; type HideMenuProps = { @@ -38,7 +38,7 @@ const BlockSubplebbitButton = ({ subplebbitAddress }: HideMenuProps) => { return (
      - {blocked ? `${t('unblock')}` : `${t('block')}`} s/{subplebbitAddress && Plebbit.getShortAddress({ address: subplebbitAddress })} + {blocked ? `${t('unblock')}` : `${t('block')}`} s/{subplebbitAddress && getShortAddress(subplebbitAddress)}
      ); }; diff --git a/src/components/post/expando/expando.tsx b/src/components/post/expando/expando.tsx index c52e876e..5bc02f5d 100644 --- a/src/components/post/expando/expando.tsx +++ b/src/components/post/expando/expando.tsx @@ -79,7 +79,7 @@ const Expando = ({ mediaComponent = ; } - const pageSubplebbitAddress = useParams().subplebbitAddress; + const pageSubplebbitAddress = useParams().communityAddress; const isNsfwSubplebbit = useIsNsfwSubplebbit(pageSubplebbitAddress || ''); return ( diff --git a/src/components/post/post.tsx b/src/components/post/post.tsx index 26bc671c..a643a1f2 100644 --- a/src/components/post/post.tsx +++ b/src/components/post/post.tsx @@ -1,13 +1,13 @@ import { useState } from 'react'; import { useTranslation } from 'react-i18next'; import { Link, useLocation, useParams, useSearchParams } from 'react-router-dom'; -import { Comment, useAuthorAddress, useBlock, useComment, useEditedComment, useSubplebbit, useSubscribe } from '@bitsocial/bitsocial-react-hooks'; -import Plebbit from '@plebbit/plebbit-js'; +import { Comment, useAuthorAddress, useBlock, useComment, useEditedComment, useCommunity, useSubscribe } from '@bitsocial/bitsocial-react-hooks'; import { getHasThumbnail } from '../../lib/utils/media-utils'; +import getShortAddress from '../../lib/utils/address-utils'; import { getPostScore, formatScore } from '../../lib/utils/post-utils'; import { getFormattedTimeAgo, formatLocalizedUTCTimestamp } from '../../lib/utils/time-utils'; import { getHostname } from '../../lib/utils/url-utils'; -import { isAllView, isAuthorView, isPendingPostView, isPostPageView, isProfileHiddenView, isProfileView, isSubplebbitView } from '../../lib/utils/view-utils'; +import { isAllView, isAuthorView, isPendingPostView, isPostPageView, isProfileHiddenView, isProfileView, isCommunityView } from '../../lib/utils/view-utils'; import { highlightMatchedText } from '../../lib/utils/pattern-utils'; import { usePinnedPostsStore } from '../../stores/use-pinned-posts-store'; import { useCommentMediaInfo } from '../../hooks/use-comment-media-info'; @@ -133,7 +133,7 @@ const Post = ({ index, post = {} }: PostProps) => { const postDate = formatLocalizedUTCTimestamp(timestamp, language); const params = useParams(); const location = useLocation(); - const subplebbit = useSubplebbit({ subplebbitAddress, onlyIfCached: true }); + const subplebbit = useCommunity(subplebbitAddress ? { community: { name: subplebbitAddress }, onlyIfCached: true } : undefined); const authorRole = subplebbit?.roles?.[post.author?.address]?.role; @@ -143,7 +143,7 @@ const Post = ({ index, post = {} }: PostProps) => { const isInProfileView = isProfileView(location.pathname); const isInAuthorView = isAuthorView(location.pathname); const isInProfileHiddenView = isProfileHiddenView(location.pathname); - const isInSubplebbitView = isSubplebbitView(location.pathname, params); + const isInCommunityView = isCommunityView(location.pathname, params); const commentMediaInfo = useCommentMediaInfo(post); @@ -176,7 +176,7 @@ const Post = ({ index, post = {} }: PostProps) => { const { blocked, unblock } = useBlock({ cid }); const [hasClickedSubscribe, setHasClickedSubscribe] = useState(false); - const { subscribe, subscribed } = useSubscribe({ subplebbitAddress }); + const { subscribe, subscribed } = useSubscribe({ communityAddress: subplebbitAddress }); // show gray dotted border around last clicked post const isLastClicked = sessionStorage.getItem('lastClickedPost') === cid && !isInPostPageView; @@ -194,7 +194,7 @@ const Post = ({ index, post = {} }: PostProps) => { const windowWidth = useWindowWidth(); const pinnedPostsCount = usePinnedPostsStore((state) => state.pinnedPostsCount); let rank = (index ?? 0) + 1; - if (isInSubplebbitView) { + if (isInCommunityView) { rank = rank - pinnedPostsCount; } @@ -260,9 +260,7 @@ const Post = ({ index, post = {} }: PostProps) => { {hostname ? ( {hostname.length > 25 ? hostname.slice(0, 25) + '...' : hostname} ) : ( - - self.{subplebbit?.shortAddress || (subplebbitAddress && Plebbit.getShortAddress({ address: subplebbitAddress }))} - + self.{subplebbit?.shortAddress || (subplebbitAddress && getShortAddress(subplebbitAddress))} )} ) @@ -293,7 +291,7 @@ const Post = ({ index, post = {} }: PostProps) => { shortAuthorAddress={shortAuthorAddress} authorAddressChanged={authorAddressChanged} /> - {!isInSubplebbitView && ( + {!isInCommunityView && ( <>  {t('post_to')} @@ -309,7 +307,7 @@ const Post = ({ index, post = {} }: PostProps) => { )} - s/{subplebbit?.shortAddress || (subplebbitAddress && Plebbit.getShortAddress({ address: subplebbitAddress }))} + s/{subplebbit?.shortAddress || (subplebbitAddress && getShortAddress(subplebbitAddress))} diff --git a/src/components/post/thumbnail/thumbnail.tsx b/src/components/post/thumbnail/thumbnail.tsx index a14fb7de..bb22b454 100644 --- a/src/components/post/thumbnail/thumbnail.tsx +++ b/src/components/post/thumbnail/thumbnail.tsx @@ -45,7 +45,7 @@ const Thumbnail = ({ const thumbnailClass = expanded ? styles.thumbnailHidden : styles.thumbnailVisible; const { blurNsfwThumbnails } = useContentOptionsStore(); - const pageSubplebbitAddress = useParams().subplebbitAddress; + const pageSubplebbitAddress = useParams().communityAddress; const isNsfwSubplebbit = useIsNsfwSubplebbit(pageSubplebbitAddress || ''); if (linkWidth && linkHeight) { diff --git a/src/components/reply-form/reply-form.tsx b/src/components/reply-form/reply-form.tsx index a74b282b..f4187e7d 100644 --- a/src/components/reply-form/reply-form.tsx +++ b/src/components/reply-form/reply-form.tsx @@ -1,8 +1,8 @@ import { useEffect, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; -import { useSubplebbit } from '@bitsocial/bitsocial-react-hooks'; +import { useCommunity } from '@bitsocial/bitsocial-react-hooks'; import { isValidURL } from '../../lib/utils/url-utils'; -import useIsSubplebbitOffline from '../../hooks/use-is-subplebbit-offline'; +import useIsCommunityOffline from '../../hooks/use-is-community-offline'; import usePublishReply from '../../hooks/use-publish-reply'; import Markdown from '../markdown'; import styles from './reply-form.module.css'; @@ -122,8 +122,8 @@ const ReplyForm = ({ cid, isReplyingToReply, hideReplyForm, subplebbitAddress, p const spoilerClass = showOptions ? styles.spoilerVisible : styles.spoilerHidden; const nsfwClass = showOptions ? styles.spoilerVisible : styles.spoilerHidden; - const subplebbit = useSubplebbit({ subplebbitAddress, onlyIfCached: true }); - const { isOffline, offlineTitle } = useIsSubplebbitOffline(subplebbit); + const subplebbit = useCommunity(subplebbitAddress ? { community: { name: subplebbitAddress }, onlyIfCached: true } : undefined); + const { isOffline, offlineTitle } = useIsCommunityOffline(subplebbit); // focus on the textarea when replying to a reply const textRef = useRef(null); diff --git a/src/components/reply/reply.tsx b/src/components/reply/reply.tsx index e7bc5864..29230d84 100644 --- a/src/components/reply/reply.tsx +++ b/src/components/reply/reply.tsx @@ -1,9 +1,9 @@ import { Fragment, useEffect, useMemo, useState, useRef } from 'react'; import { Link, useLocation, useParams } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import Plebbit from '@plebbit/plebbit-js'; -import { Comment, useAccountComment, useAuthorAddress, useAuthorAvatar, useBlock, useComment, useEditedComment, useSubplebbit } from '@bitsocial/bitsocial-react-hooks'; +import { Comment, useAccountComment, useAuthorAddress, useAuthorAvatar, useBlock, useComment, useEditedComment, useCommunity } from '@bitsocial/bitsocial-react-hooks'; import { isInboxView, isPostContextView, isPostPageView } from '../../lib/utils/view-utils'; +import getShortAddress from '../../lib/utils/address-utils'; import { getHostname } from '../../lib/utils/url-utils'; import { formatScore, getReplyScore } from '../../lib/utils/post-utils'; import { flattenCommentsPages } from '@bitsocial/bitsocial-react-hooks/dist/lib/utils'; @@ -282,7 +282,7 @@ const InboxShowParentButton = ({ parentCid }: { parentCid: string | undefined }) const InboxParentInfo = ({ address, cid, markedAsRead, parentCid, postCid, shortAddress, subplebbitAddress, timestamp }: ParentLinkProps) => { const { t } = useTranslation(); - const shortSubplebbitAddress = subplebbitAddress ? (subplebbitAddress.includes('.') ? subplebbitAddress : Plebbit.getShortAddress({ address: subplebbitAddress })) : ''; + const shortSubplebbitAddress = subplebbitAddress ? (subplebbitAddress.includes('.') ? subplebbitAddress : getShortAddress(subplebbitAddress)) : ''; return ( <> @@ -342,7 +342,7 @@ const Reply = ({ cidOfReplyWithContext, depth = 0, isSingleComment, isSingleRepl timestamp, upvoteCount, } = reply || {}; - const subplebbit = useSubplebbit({ subplebbitAddress, onlyIfCached: true }); + const subplebbit = useCommunity(subplebbitAddress ? { community: { name: subplebbitAddress }, onlyIfCached: true } : undefined); const pendingReply = useAccountComment({ commentIndex: reply?.index }); const parentOfPendingReply = useComment({ commentCid: pendingReply?.parentCid, onlyIfCached: true }); diff --git a/src/components/search-bar/search-bar.tsx b/src/components/search-bar/search-bar.tsx index 2c381155..02e85886 100644 --- a/src/components/search-bar/search-bar.tsx +++ b/src/components/search-bar/search-bar.tsx @@ -3,17 +3,17 @@ import { useLocation, useNavigate, useParams, useSearchParams } from 'react-rout import { useTranslation } from 'react-i18next'; import { useFloating, autoUpdate, offset, shift, FloatingPortal } from '@floating-ui/react'; import { useAccount } from '@bitsocial/bitsocial-react-hooks'; -import Plebbit from '@plebbit/plebbit-js'; import { isHomeView, isHomeAboutView, isPostPageView, isPostPageAboutView, - isSubplebbitView, + isCommunityView, isAllView, isModView, - isSubplebbitAboutView, + isCommunityAboutView, } from '../../lib/utils/view-utils'; +import getShortAddress from '../../lib/utils/address-utils'; import useFeedFiltersStore from '../../stores/use-feed-filters-store'; import { useDefaultSubplebbitAddresses } from '../../hooks/use-default-subplebbits'; import styles from './search-bar.module.css'; @@ -33,14 +33,14 @@ const SearchBar = ({ isFocused = false, onExpandoChange }: SearchBarProps) => { const isInHomeAboutView = isHomeAboutView(location.pathname); const isInPostPageAboutView = isPostPageAboutView(location.pathname, params); - const isInSubplebbitView = isSubplebbitView(location.pathname, params); - const isInSubplebbitAboutView = isSubplebbitAboutView(location.pathname, params); + const isInCommunityView = isCommunityView(location.pathname, params); + const isInCommunityAboutView = isCommunityAboutView(location.pathname, params); const isInHomeView = isHomeView(location.pathname); const isInPostPageView = isPostPageView(location.pathname, params); const isInAllView = isAllView(location.pathname); const isInModView = isModView(location.pathname); - const isInFeedView = (isInSubplebbitView || isInHomeView || isInAllView || isInModView) && !isInPostPageView; + const isInFeedView = (isInCommunityView || isInHomeView || isInAllView || isInModView) && !isInPostPageView; const currentQuery = searchParams.get('q') || ''; const [isInCommunitySearch, setIsInCommunitySearch] = useState(() => { @@ -141,7 +141,7 @@ const SearchBar = ({ isFocused = false, onExpandoChange }: SearchBarProps) => { } const searchInput = searchInputRef.current?.value; if (searchInput) { - if (searchInput.toLowerCase() === params.subplebbitAddress?.toLowerCase()) { + if (searchInput.toLowerCase() === params.communityAddress?.toLowerCase()) { alert(t('already_in_community')); return; } @@ -183,7 +183,7 @@ const SearchBar = ({ isFocused = false, onExpandoChange }: SearchBarProps) => { const handleCommunitySelect = useCallback( (address: string) => { - if (address.toLowerCase() === params.subplebbitAddress?.toLowerCase()) { + if (address.toLowerCase() === params.communityAddress?.toLowerCase()) { alert(t('already_in_community')); return; } @@ -194,7 +194,7 @@ const SearchBar = ({ isFocused = false, onExpandoChange }: SearchBarProps) => { searchInputRef.current?.blur(); navigate(`/s/${address}`); }, - [navigate, setInputValue, setIsInputFocused, setActiveDropdownIndex, params.subplebbitAddress, t], + [navigate, setInputValue, setIsInputFocused, setActiveDropdownIndex, params.communityAddress, t], ); const handleKeyDown = useCallback( @@ -228,7 +228,7 @@ const SearchBar = ({ isFocused = false, onExpandoChange }: SearchBarProps) => { ); return ( -
      +
      { onTouchEnd={() => handleCommunitySelect(address)} onMouseEnter={() => setActiveDropdownIndex(index)} > - {Plebbit.getShortAddress({ address })} + {getShortAddress(address)}
    • ))}
    diff --git a/src/components/sidebar/sidebar.tsx b/src/components/sidebar/sidebar.tsx index 02f05a5c..47d42220 100644 --- a/src/components/sidebar/sidebar.tsx +++ b/src/components/sidebar/sidebar.tsx @@ -1,11 +1,11 @@ import { useState, useEffect } from 'react'; import { Link, useLocation, useNavigate, useParams } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import { Comment, useAccount, useBlock, Role, Subplebbit, useSubplebbitStats, useAccountComment, usePlebbitRpcSettings } from '@bitsocial/bitsocial-react-hooks'; -import Plebbit from '@plebbit/plebbit-js'; +import { Comment, useAccount, useBlock, Role, Community, useCommunityStats, useAccountComment, usePkcRpcSettings } from '@bitsocial/bitsocial-react-hooks'; import { getPostScore } from '../../lib/utils/post-utils'; import { getFormattedDate, getFormattedTimeDuration, getFormattedTimeAgo } from '../../lib/utils/time-utils'; import { findSubplebbitCreator } from '../../lib/utils/user-utils'; +import getShortAddress from '../../lib/utils/address-utils'; import { isAllView, isDomainView, @@ -15,14 +15,14 @@ import { isPendingPostView, isPostPageAboutView, isPostPageView, - isSubplebbitAboutView, - isSubplebbitSettingsView, - isSubplebbitsView, - isSubplebbitView, + isCommunityAboutView, + isCommunitySettingsView, + isCommunitiesView, + isCommunityView, } from '../../lib/utils/view-utils'; import useCommunitySubtitles from '../../hooks/use-community-subtitles'; import useIsMobile from '../../hooks/use-is-mobile'; -import useIsSubplebbitOffline from '../../hooks/use-is-subplebbit-offline'; +import useIsCommunityOffline from '../../hooks/use-is-community-offline'; import { FAQ } from '../../views/about/about'; import LoadingEllipsis from '../loading-ellipsis'; import Markdown from '../markdown'; @@ -55,7 +55,7 @@ const ModeratorsList = ({ roles }: { roles: Record }) => {