chore(deps): migrate from pkc-react-hooks to bitsocial-react-hooks

This commit is contained in:
plebeius
2026-03-05 17:14:23 +08:00
parent 67ab49cc9d
commit 4508f589dd
64 changed files with 219 additions and 492 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { create } from 'zustand';
import { persist } from 'zustand/middleware';
import { Comment } from '@bitsocialhq/pkc-react-hooks';
import { Comment } from '@bitsocialhq/bitsocial-react-hooks';
import { commentMatchesPattern } from '../lib/utils/pattern-utils';
interface FilterItem {
+1 -1
View File
@@ -1,5 +1,5 @@
import { create } from 'zustand';
import { Challenge } from '@bitsocialhq/pkc-react-hooks';
import { Challenge } from '@bitsocialhq/bitsocial-react-hooks';
let nextChallengeId = 0;
+1 -1
View File
@@ -1,5 +1,5 @@
import { create } from 'zustand';
import type { Comment } from '@bitsocialhq/pkc-react-hooks';
import type { Comment } from '@bitsocialhq/bitsocial-react-hooks';
interface PostNumberState {
// Post numbers are only unique within a subplebbit, so scope by address
+1 -1
View File
@@ -1,4 +1,4 @@
import { ChallengeVerification, Comment, PublishCommentOptions } from '@bitsocialhq/pkc-react-hooks';
import { ChallengeVerification, Comment, PublishCommentOptions } from '@bitsocialhq/bitsocial-react-hooks';
import { create } from 'zustand';
import { alertChallengeVerificationFailed } from '../lib/utils/challenge-utils';
import useChallengesStore from './use-challenges-store';
+1 -1
View File
@@ -1,4 +1,4 @@
import { ChallengeVerification, Comment, PublishCommentOptions } from '@bitsocialhq/pkc-react-hooks';
import { ChallengeVerification, Comment, PublishCommentOptions } from '@bitsocialhq/bitsocial-react-hooks';
import { create } from 'zustand';
import { alertChallengeVerificationFailed } from '../lib/utils/challenge-utils';
import useChallengesStore from './use-challenges-store';
+1 -1
View File
@@ -1,5 +1,5 @@
import { create, StoreApi } from 'zustand';
import localForageLru from '@bitsocialhq/pkc-react-hooks/dist/lib/localforage-lru/index.js';
import localForageLru from '@bitsocialhq/bitsocial-react-hooks/dist/lib/localforage-lru/index.js';
interface ThemeState {
themes: {