fix(storage): circual deps
This commit is contained in:
parent
0c936718bc
commit
d88c554a2d
14 changed files with 13 additions and 21 deletions
|
|
@ -27,7 +27,7 @@ import { displayCallId } from "@tensamin/call/utils";
|
|||
import { useState } from "react";
|
||||
import { SidebarTrigger, useSidebar } from "@methanium/ui";
|
||||
import { WindowControls as Controls } from "@methanium/ui";
|
||||
import { useSession } from "@tensamin/storage/session";
|
||||
import { useSession } from "@tensamin/identity/session";
|
||||
import Profile from "./modals/profile";
|
||||
|
||||
export default function Navbar({ forMobile }: { forMobile: boolean }) {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import Switch from "./switch";
|
|||
import ConversationModal from "../modal/conversation";
|
||||
import CommunityModal from "../modal/community";
|
||||
import { Loader2 } from "lucide-react";
|
||||
import { useSession } from "@tensamin/storage/session";
|
||||
import { useSession } from "@tensamin/identity/session";
|
||||
|
||||
export default function List() {
|
||||
const [category, setCategory] = useState<"conversations" | "communities">(
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import { log } from "@tensamin/shared/log";
|
|||
import { useState } from "react";
|
||||
import { Loader2 } from "lucide-react";
|
||||
import { isTauri } from "@tauri-apps/api/core";
|
||||
import { useSession } from "@tensamin/storage/session";
|
||||
import { useSession } from "@tensamin/identity/session";
|
||||
import { useStorage } from "@tensamin/storage/context";
|
||||
import { ShieldAlert } from "lucide-react";
|
||||
import { useUser } from "@tensamin/identity/context";
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import { Provider as MTPProvider } from "@tensamin/mtp";
|
|||
import NotificationsProvider from "@tensamin/notifications/context";
|
||||
import OnboardingGate from "@tensamin/onboarding";
|
||||
import DesktopMediaProvider from "@tensamin/shared/desktopMedia";
|
||||
import Session from "@tensamin/storage/session";
|
||||
import Session from "@tensamin/identity/session";
|
||||
import { useDeeplinks } from "@tensamin/tauri/deeplinkHandler";
|
||||
import TAuthWrapper from "@tensamin/tauth/context";
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import Wrapper from "@tensamin/identity/wrapper";
|
|||
import { Mail } from "lucide-react";
|
||||
import { sendCallInvite, useCall } from "../../store";
|
||||
import { log, toast } from "@tensamin/shared/log";
|
||||
import { useSession } from "@tensamin/storage/session";
|
||||
import { useSession } from "@tensamin/identity/session";
|
||||
|
||||
export default function InviteButton({
|
||||
className,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import {
|
|||
wrapCallSecret,
|
||||
} from "@tensamin/crypto/callSecret";
|
||||
import { useStorage } from "@tensamin/storage/context";
|
||||
import { useSession } from "@tensamin/storage/session";
|
||||
import { useSession } from "@tensamin/identity/session";
|
||||
import { useUser } from "@tensamin/identity/context";
|
||||
import { DeepFilterNoiseFilterProcessor } from "deepfilternet3-noise-filter";
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import { log, toast } from "@tensamin/shared/log";
|
|||
import { cn, useIsMobile } from "@methanium/ui";
|
||||
import { encryptChatText } from "@tensamin/crypto/chatSecret";
|
||||
|
||||
import { useSession } from "@tensamin/storage/session";
|
||||
import { useSession } from "@tensamin/identity/session";
|
||||
import { useEmojiRanks, useRecordEmojiUse } from "./emoji/emojiRanks";
|
||||
import ReplyBox from "./replyBox";
|
||||
import { useHotkey } from "@tensamin/hotkeys";
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import {
|
|||
import { useStorage } from "@tensamin/storage/context";
|
||||
import { requireRelaySuccess, useMTP } from "@tensamin/mtp";
|
||||
import { log, toast } from "@tensamin/shared/log";
|
||||
import { useSession } from "@tensamin/storage/session";
|
||||
import { useSession } from "@tensamin/identity/session";
|
||||
import { useUser } from "@tensamin/identity/context";
|
||||
import { createCache, type ChatDraft } from "@tensamin/cache";
|
||||
import { secureValueCodec } from "@tensamin/storage/secure";
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"type": "module",
|
||||
"exports": {
|
||||
"./context": "./src/context.tsx",
|
||||
"./session": "./src/session.tsx",
|
||||
"./wrapper": "./src/wrapper.tsx",
|
||||
"./values": "./src/values.ts"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import {
|
|||
import type z from "zod";
|
||||
import { createCache } from "@tensamin/cache";
|
||||
import { useStorage } from "@tensamin/storage/context";
|
||||
import { useSession } from "@tensamin/storage/session";
|
||||
import { useSession } from "./session";
|
||||
import { getChangedUserFields, selectUserFields } from "./selection";
|
||||
|
||||
export { getChangedUserFields, selectUserFields } from "./selection";
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ import {
|
|||
useContext,
|
||||
useEffect,
|
||||
} from "react";
|
||||
import { useStorage } from "./context";
|
||||
import { useStorage } from "@tensamin/storage/context";
|
||||
import type { Contacts, Communities, Calls } from "@tensamin/shared/data";
|
||||
import { createCache } from "@tensamin/cache";
|
||||
import { secureValueCodec } from "./secure";
|
||||
import { secureValueCodec } from "@tensamin/storage/secure";
|
||||
|
||||
interface SessionContextType {
|
||||
contacts: Contacts;
|
||||
|
|
@ -11,7 +11,7 @@ import {
|
|||
requestPermission as requestTauriNotificationPermission,
|
||||
sendNotification as sendTauriNotification,
|
||||
} from "@tauri-apps/plugin-notification";
|
||||
import { useSession } from "@tensamin/storage/session";
|
||||
import { useSession } from "@tensamin/identity/session";
|
||||
import { useLocation, useNavigate } from "@tanstack/react-router";
|
||||
import { decryptChatText } from "@tensamin/crypto/chatSecret";
|
||||
import { log } from "@tensamin/shared/log";
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
"./session": "./src/session.tsx",
|
||||
"./context": "./src/context.tsx",
|
||||
"./secure": "./src/secure.ts",
|
||||
"./browserSecure": "./src/browserSecure.ts",
|
||||
|
|
@ -18,8 +17,6 @@
|
|||
"dependencies": {
|
||||
"@methanium/ui": "*",
|
||||
"@tauri-apps/api": "^2.11.1",
|
||||
"@tensamin/cache": "workspace:*",
|
||||
"@tensamin/mtp": "workspace:*",
|
||||
"@tensamin/shared": "workspace:*",
|
||||
"react": "^19.2.8",
|
||||
"react-dom": "^19.2.8"
|
||||
|
|
|
|||
6
pnpm-lock.yaml
generated
6
pnpm-lock.yaml
generated
|
|
@ -697,12 +697,6 @@ importers:
|
|||
'@tauri-apps/api':
|
||||
specifier: ^2.11.1
|
||||
version: 2.11.1
|
||||
'@tensamin/cache':
|
||||
specifier: workspace:*
|
||||
version: link:../cache
|
||||
'@tensamin/mtp':
|
||||
specifier: workspace:*
|
||||
version: link:../mtp
|
||||
'@tensamin/shared':
|
||||
specifier: workspace:*
|
||||
version: link:../shared
|
||||
|
|
|
|||
Loading…
Reference in a new issue