diff --git a/src/apps/chat/components/composer/ComposerTextAreaActions.tsx b/src/apps/chat/components/composer/ComposerTextAreaActions.tsx index 2c6aa19d3..cf15d4322 100644 --- a/src/apps/chat/components/composer/ComposerTextAreaActions.tsx +++ b/src/apps/chat/components/composer/ComposerTextAreaActions.tsx @@ -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'; diff --git a/src/apps/chat/components/layout-drawer/useChatDrawerRenderItems.tsx b/src/apps/chat/components/layout-drawer/useChatDrawerRenderItems.tsx index 6d160512e..832cb3176 100644 --- a/src/apps/chat/components/layout-drawer/useChatDrawerRenderItems.tsx +++ b/src/apps/chat/components/layout-drawer/useChatDrawerRenderItems.tsx @@ -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'; diff --git a/src/apps/personas/creator/Creator.tsx b/src/apps/personas/creator/Creator.tsx index 570ea02f5..57771e4cf 100644 --- a/src/apps/personas/creator/Creator.tsx +++ b/src/apps/personas/creator/Creator.tsx @@ -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'; diff --git a/src/common/components/forms/SetupFormRefetchButton.tsx b/src/common/components/forms/SetupFormRefetchButton.tsx index 1e936e8d8..0aaa18a54 100644 --- a/src/common/components/forms/SetupFormRefetchButton.tsx +++ b/src/common/components/forms/SetupFormRefetchButton.tsx @@ -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'; /** diff --git a/src/common/util/useShallowObject.ts b/src/common/util/hooks/useShallowObject.ts similarity index 100% rename from src/common/util/useShallowObject.ts rename to src/common/util/hooks/useShallowObject.ts diff --git a/src/common/util/useToggleableBoolean.tsx b/src/common/util/hooks/useToggleableBoolean.tsx similarity index 100% rename from src/common/util/useToggleableBoolean.tsx rename to src/common/util/hooks/useToggleableBoolean.tsx diff --git a/src/common/util/mediasession/useMediaSessionCallbacks.ts b/src/common/util/mediasession/useMediaSessionCallbacks.ts index e8f016f19..5cfd0a6c3 100644 --- a/src/common/util/mediasession/useMediaSessionCallbacks.ts +++ b/src/common/util/mediasession/useMediaSessionCallbacks.ts @@ -1,6 +1,6 @@ import * as React from 'react'; -import { useShallowStable } from '../useShallowObject'; +import { useShallowStable } from '../hooks/useShallowObject'; import { MediaSessionCallbacks, MediaSessionManager } from './MediaSessionManager'; diff --git a/src/modules/llms/vendors/anthropic/AnthropicSourceSetup.tsx b/src/modules/llms/vendors/anthropic/AnthropicSourceSetup.tsx index 6c31f648c..3ae37d35a 100644 --- a/src/modules/llms/vendors/anthropic/AnthropicSourceSetup.tsx +++ b/src/modules/llms/vendors/anthropic/AnthropicSourceSetup.tsx @@ -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'; diff --git a/src/modules/llms/vendors/deepseek/DeepseekAISourceSetup.tsx b/src/modules/llms/vendors/deepseek/DeepseekAISourceSetup.tsx index a117d4d6e..5db94ba37 100644 --- a/src/modules/llms/vendors/deepseek/DeepseekAISourceSetup.tsx +++ b/src/modules/llms/vendors/deepseek/DeepseekAISourceSetup.tsx @@ -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'; diff --git a/src/modules/llms/vendors/openai/OpenAISourceSetup.tsx b/src/modules/llms/vendors/openai/OpenAISourceSetup.tsx index 613a0868d..9a7929b07 100644 --- a/src/modules/llms/vendors/openai/OpenAISourceSetup.tsx +++ b/src/modules/llms/vendors/openai/OpenAISourceSetup.tsx @@ -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'; diff --git a/src/modules/llms/vendors/togetherai/TogetherAISourceSetup.tsx b/src/modules/llms/vendors/togetherai/TogetherAISourceSetup.tsx index 898134e87..5e78cfb94 100644 --- a/src/modules/llms/vendors/togetherai/TogetherAISourceSetup.tsx +++ b/src/modules/llms/vendors/togetherai/TogetherAISourceSetup.tsx @@ -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'; diff --git a/src/modules/t2i/dalle/DallESettings.tsx b/src/modules/t2i/dalle/DallESettings.tsx index 8f84c31b5..54b3bf632 100644 --- a/src/modules/t2i/dalle/DallESettings.tsx +++ b/src/modules/t2i/dalle/DallESettings.tsx @@ -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'; diff --git a/src/modules/t2i/prodia/ProdiaSettings.tsx b/src/modules/t2i/prodia/ProdiaSettings.tsx index c797777d1..e0bb19442 100644 --- a/src/modules/t2i/prodia/ProdiaSettings.tsx +++ b/src/modules/t2i/prodia/ProdiaSettings.tsx @@ -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'; diff --git a/src/modules/t2i/t2i.client.ts b/src/modules/t2i/t2i.client.ts index 2c384eeca..72bfa8259 100644 --- a/src/modules/t2i/t2i.client.ts +++ b/src/modules/t2i/t2i.client.ts @@ -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';