Move hooks

This commit is contained in:
Enrico Ros
2024-08-03 15:32:39 -07:00
parent 3efbe65ca6
commit 350c84fbda
14 changed files with 12 additions and 12 deletions
@@ -12,7 +12,7 @@ import { getChatLLMId } from '~/modules/llms/store-llms';
import type { AttachmentDraft } from '~/common/attachment-drafts/attachment.types';
import { DMessageAttachmentFragment, DMessageDocPart, DMessageToolInvocationPart, isContentFragment } from '~/common/stores/chat/chat.fragments';
import { useShallowStable } from '~/common/util/useShallowObject';
import { useShallowStable } from '~/common/util/hooks/useShallowObject';
import { ReplyToBubble } from '../message/ReplyToBubble';
import { getChatAutoAI } from '../../store-app-chat';
@@ -4,7 +4,7 @@ import type { DFolder } from '~/common/state/store-folders';
import { DMessage, DMessageUserFlag, messageFragmentsReduceText, messageHasUserFlag, messageUserFlagToEmoji } from '~/common/stores/chat/chat.message';
import { conversationTitle, DConversationId } from '~/common/stores/chat/chat.conversation';
import { isAttachmentFragment, isContentOrAttachmentFragment, isDocPart, isImageRefPart } from '~/common/stores/chat/chat.fragments';
import { shallowEquals } from '~/common/util/useShallowObject';
import { shallowEquals } from '~/common/util/hooks/useShallowObject';
import { useChatStore } from '~/common/stores/chat/store-chats';
import type { ChatNavigationItemData } from './ChatDrawerItem';
+1 -1
View File
@@ -13,7 +13,7 @@ import { agiUuid } from '~/common/util/idUtils';
import { copyToClipboard } from '~/common/util/clipboardUtils';
import { useFormEditTextArray } from '~/common/components/forms/useFormEditTextArray';
import { useLLMSelect, useLLMSelectLocalState } from '~/common/components/forms/useLLMSelect';
import { useToggleableBoolean } from '~/common/util/useToggleableBoolean';
import { useToggleableBoolean } from '~/common/util/hooks/useToggleableBoolean';
import { FromText } from './FromText';
import { FromYouTube } from './FromYouTube';
@@ -3,7 +3,7 @@ import * as React from 'react';
import { Box, Button, FormLabel } from '@mui/joy';
import SyncIcon from '@mui/icons-material/Sync';
import type { ToggleableBoolean } from '~/common/util/useToggleableBoolean';
import type { ToggleableBoolean } from '~/common/util/hooks/useToggleableBoolean';
/**
@@ -1,6 +1,6 @@
import * as React from 'react';
import { useShallowStable } from '../useShallowObject';
import { useShallowStable } from '../hooks/useShallowObject';
import { MediaSessionCallbacks, MediaSessionManager } from './MediaSessionManager';
@@ -9,7 +9,7 @@ import { FormTextField } from '~/common/components/forms/FormTextField';
import { InlineError } from '~/common/components/InlineError';
import { Link } from '~/common/components/Link';
import { SetupFormRefetchButton } from '~/common/components/forms/SetupFormRefetchButton';
import { useToggleableBoolean } from '~/common/util/useToggleableBoolean';
import { useToggleableBoolean } from '~/common/util/hooks/useToggleableBoolean';
import { DModelSourceId } from '../../store-llms';
import { useLlmUpdateModels } from '../../llm.client.hooks';
@@ -5,7 +5,7 @@ import { FormInputKey } from '~/common/components/forms/FormInputKey';
import { InlineError } from '~/common/components/InlineError';
import { Link } from '~/common/components/Link';
import { SetupFormRefetchButton } from '~/common/components/forms/SetupFormRefetchButton';
import { useToggleableBoolean } from '~/common/util/useToggleableBoolean';
import { useToggleableBoolean } from '~/common/util/hooks/useToggleableBoolean';
import { DModelSourceId } from '../../store-llms';
import { useLlmUpdateModels } from '../../llm.client.hooks';
+1 -1
View File
@@ -10,7 +10,7 @@ import { FormTextField } from '~/common/components/forms/FormTextField';
import { InlineError } from '~/common/components/InlineError';
import { Link } from '~/common/components/Link';
import { SetupFormRefetchButton } from '~/common/components/forms/SetupFormRefetchButton';
import { useToggleableBoolean } from '~/common/util/useToggleableBoolean';
import { useToggleableBoolean } from '~/common/util/hooks/useToggleableBoolean';
import { DModelSourceId } from '../../store-llms';
import { useLlmUpdateModels } from '../../llm.client.hooks';
@@ -8,7 +8,7 @@ import { FormSwitchControl } from '~/common/components/forms/FormSwitchControl';
import { InlineError } from '~/common/components/InlineError';
import { Link } from '~/common/components/Link';
import { SetupFormRefetchButton } from '~/common/components/forms/SetupFormRefetchButton';
import { useToggleableBoolean } from '~/common/util/useToggleableBoolean';
import { useToggleableBoolean } from '~/common/util/hooks/useToggleableBoolean';
import { DModelSourceId } from '../../store-llms';
import { useLlmUpdateModels } from '../../llm.client.hooks';
+1 -1
View File
@@ -7,7 +7,7 @@ import WarningRoundedIcon from '@mui/icons-material/WarningRounded';
import { FormLabelStart } from '~/common/components/forms/FormLabelStart';
import { FormRadioControl } from '~/common/components/forms/FormRadioControl';
import { Link } from '~/common/components/Link';
import { useToggleableBoolean } from '~/common/util/useToggleableBoolean';
import { useToggleableBoolean } from '~/common/util/hooks/useToggleableBoolean';
import { DALLE_DEFAULT_IMAGE_SIZE, DalleImageSize, useDalleStore } from './store-module-dalle';
import { openAIImageModelsPricing } from './openaiGenerateImages';
+1 -1
View File
@@ -16,7 +16,7 @@ import { FormLabelStart } from '~/common/components/forms/FormLabelStart';
import { FormRadioControl } from '~/common/components/forms/FormRadioControl';
import { InlineError } from '~/common/components/InlineError';
import { apiQuery } from '~/common/util/trpc.client';
import { useToggleableBoolean } from '~/common/util/useToggleableBoolean';
import { useToggleableBoolean } from '~/common/util/hooks/useToggleableBoolean';
import { DEFAULT_PRODIA_RESOLUTION, HARDCODED_PRODIA_RESOLUTIONS, useProdiaStore } from './store-module-prodia';
+1 -1
View File
@@ -9,7 +9,7 @@ import { getBackendCapabilities } from '~/modules/backend/store-backend-capabili
import type { CapabilityTextToImage, TextToImageProvider } from '~/common/components/useCapabilities';
import { createDMessageDataRefDBlob, createImageContentFragment, DMessageContentFragment } from '~/common/stores/chat/chat.fragments';
import { shallowEquals } from '~/common/util/useShallowObject';
import { shallowEquals } from '~/common/util/hooks/useShallowObject';
import type { T2iCreateImageOutput } from './t2i.server';
import { openAIGenerateImagesOrThrow } from './dalle/openaiGenerateImages';