diff --git a/src/api/index.ts b/src/api/index.ts index e935bf12..c44fa18e 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,2 +1,4 @@ export * from './core'; +export * from './navigator'; export * from './nitro'; +export * from './utils'; diff --git a/src/api/navigator/index.ts b/src/api/navigator/index.ts new file mode 100644 index 00000000..9aeb7a89 --- /dev/null +++ b/src/api/navigator/index.ts @@ -0,0 +1 @@ +export * from './TryVisitRoom'; diff --git a/src/api/nitro/room/index.ts b/src/api/nitro/room/index.ts index b18567a6..0c633afa 100644 --- a/src/api/nitro/room/index.ts +++ b/src/api/nitro/room/index.ts @@ -7,3 +7,4 @@ export * from './InitializeRoomInstanceRenderingCanvas'; export * from './IsFurnitureSelectionDisabled'; export * from './ProcessRoomObjectOperation'; export * from './SetActiveRoomId'; +export * from './widgets'; diff --git a/src/views/room/events/IPhotoData.ts b/src/api/nitro/room/widgets/events/IPhotoData.ts similarity index 100% rename from src/views/room/events/IPhotoData.ts rename to src/api/nitro/room/widgets/events/IPhotoData.ts diff --git a/src/views/room/events/RoomObjectItem.ts b/src/api/nitro/room/widgets/events/RoomObjectItem.ts similarity index 100% rename from src/views/room/events/RoomObjectItem.ts rename to src/api/nitro/room/widgets/events/RoomObjectItem.ts diff --git a/src/views/room/events/RoomWidgetAvatarInfoEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetAvatarInfoEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetAvatarInfoEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetAvatarInfoEvent.ts diff --git a/src/views/room/events/RoomWidgetChooserContentEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetChooserContentEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetChooserContentEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetChooserContentEvent.ts diff --git a/src/views/room/events/RoomWidgetDoorbellEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetDoorbellEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetDoorbellEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetDoorbellEvent.ts diff --git a/src/views/room/events/RoomWidgetFloodControlEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetFloodControlEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetFloodControlEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetFloodControlEvent.ts diff --git a/src/views/room/events/RoomWidgetObjectNameEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetObjectNameEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetObjectNameEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetObjectNameEvent.ts diff --git a/src/views/room/events/RoomWidgetRoomEngineUpdateEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetRoomEngineUpdateEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetRoomEngineUpdateEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetRoomEngineUpdateEvent.ts diff --git a/src/views/room/events/RoomWidgetRoomObjectUpdateEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetRoomObjectUpdateEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetRoomObjectUpdateEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetRoomObjectUpdateEvent.ts diff --git a/src/views/room/events/RoomWidgetUpdateBackgroundColorPreviewEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUpdateBackgroundColorPreviewEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUpdateBackgroundColorPreviewEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUpdateBackgroundColorPreviewEvent.ts diff --git a/src/views/room/events/RoomWidgetUpdateChatEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUpdateChatEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUpdateChatEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUpdateChatEvent.ts diff --git a/src/views/room/events/RoomWidgetUpdateChatInputContentEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUpdateChatInputContentEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUpdateChatInputContentEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUpdateChatInputContentEvent.ts diff --git a/src/views/room/events/RoomWidgetUpdateCustomStackHeightEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUpdateCustomStackHeightEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUpdateCustomStackHeightEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUpdateCustomStackHeightEvent.ts diff --git a/src/views/room/events/RoomWidgetUpdateDanceStatusEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUpdateDanceStatusEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUpdateDanceStatusEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUpdateDanceStatusEvent.ts diff --git a/src/views/room/events/RoomWidgetUpdateEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUpdateEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUpdateEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUpdateEvent.ts diff --git a/src/views/room/events/RoomWidgetUpdateExternalImageEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUpdateExternalImageEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUpdateExternalImageEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUpdateExternalImageEvent.ts diff --git a/src/views/room/events/RoomWidgetUpdateInfostandEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUpdateInfostandEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUpdateInfostandEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUpdateInfostandEvent.ts diff --git a/src/views/room/events/RoomWidgetUpdateInfostandFurniEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUpdateInfostandFurniEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUpdateInfostandFurniEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUpdateInfostandFurniEvent.ts diff --git a/src/views/room/events/RoomWidgetUpdateInfostandPetEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUpdateInfostandPetEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUpdateInfostandPetEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUpdateInfostandPetEvent.ts diff --git a/src/views/room/events/RoomWidgetUpdateInfostandRentableBotEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUpdateInfostandRentableBotEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUpdateInfostandRentableBotEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUpdateInfostandRentableBotEvent.ts diff --git a/src/views/room/events/RoomWidgetUpdateInfostandUserEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUpdateInfostandUserEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUpdateInfostandUserEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUpdateInfostandUserEvent.ts diff --git a/src/views/room/events/RoomWidgetUpdateRentableBotChatEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUpdateRentableBotChatEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUpdateRentableBotChatEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUpdateRentableBotChatEvent.ts diff --git a/src/views/room/events/RoomWidgetUpdateRoomViewEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUpdateRoomViewEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUpdateRoomViewEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUpdateRoomViewEvent.ts diff --git a/src/views/room/events/RoomWidgetUpdateSongEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUpdateSongEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUpdateSongEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUpdateSongEvent.ts diff --git a/src/views/room/events/RoomWidgetUpdateUserDataEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUpdateUserDataEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUpdateUserDataEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUpdateUserDataEvent.ts diff --git a/src/views/room/events/RoomWidgetUseProductBubbleEvent.ts b/src/api/nitro/room/widgets/events/RoomWidgetUseProductBubbleEvent.ts similarity index 100% rename from src/views/room/events/RoomWidgetUseProductBubbleEvent.ts rename to src/api/nitro/room/widgets/events/RoomWidgetUseProductBubbleEvent.ts diff --git a/src/views/room/events/UseProductItem.ts b/src/api/nitro/room/widgets/events/UseProductItem.ts similarity index 100% rename from src/views/room/events/UseProductItem.ts rename to src/api/nitro/room/widgets/events/UseProductItem.ts diff --git a/src/views/room/events/index.ts b/src/api/nitro/room/widgets/events/index.ts similarity index 92% rename from src/views/room/events/index.ts rename to src/api/nitro/room/widgets/events/index.ts index 151396d1..cdb95870 100644 --- a/src/views/room/events/index.ts +++ b/src/api/nitro/room/widgets/events/index.ts @@ -13,12 +13,14 @@ export * from './RoomWidgetUpdateChatInputContentEvent'; export * from './RoomWidgetUpdateCustomStackHeightEvent'; export * from './RoomWidgetUpdateDanceStatusEvent'; export * from './RoomWidgetUpdateEvent'; +export * from './RoomWidgetUpdateExternalImageEvent'; export * from './RoomWidgetUpdateInfostandEvent'; export * from './RoomWidgetUpdateInfostandFurniEvent'; export * from './RoomWidgetUpdateInfostandPetEvent'; export * from './RoomWidgetUpdateInfostandRentableBotEvent'; export * from './RoomWidgetUpdateInfostandUserEvent'; export * from './RoomWidgetUpdateRentableBotChatEvent'; +export * from './RoomWidgetUpdateRoomViewEvent'; export * from './RoomWidgetUpdateSongEvent'; export * from './RoomWidgetUpdateUserDataEvent'; export * from './RoomWidgetUseProductBubbleEvent'; diff --git a/src/views/room/handlers/DoorbellWidgetHandler.ts b/src/api/nitro/room/widgets/handlers/DoorbellWidgetHandler.ts similarity index 100% rename from src/views/room/handlers/DoorbellWidgetHandler.ts rename to src/api/nitro/room/widgets/handlers/DoorbellWidgetHandler.ts diff --git a/src/views/room/handlers/FurniChooserWidgetHandler.ts b/src/api/nitro/room/widgets/handlers/FurniChooserWidgetHandler.ts similarity index 96% rename from src/views/room/handlers/FurniChooserWidgetHandler.ts rename to src/api/nitro/room/widgets/handlers/FurniChooserWidgetHandler.ts index dd687604..f08406e8 100644 --- a/src/views/room/handlers/FurniChooserWidgetHandler.ts +++ b/src/api/nitro/room/widgets/handlers/FurniChooserWidgetHandler.ts @@ -1,6 +1,6 @@ import { NitroEvent, RoomObjectCategory, RoomObjectVariable, RoomWidgetEnum } from '@nitrots/nitro-renderer'; -import { GetRoomEngine, GetSessionDataManager } from '../../../api'; -import { LocalizeText } from '../../../utils'; +import { GetRoomEngine, GetSessionDataManager } from '../../../..'; +import { LocalizeText } from '../../../../utils'; import { RoomObjectItem, RoomWidgetChooserContentEvent, RoomWidgetUpdateEvent } from '../events'; import { RoomWidgetMessage, RoomWidgetRequestWidgetMessage, RoomWidgetRoomObjectMessage } from '../messages'; import { RoomWidgetHandler } from './RoomWidgetHandler'; diff --git a/src/views/room/handlers/FurnitureContextMenuWidgetHandler.ts b/src/api/nitro/room/widgets/handlers/FurnitureContextMenuWidgetHandler.ts similarity index 100% rename from src/views/room/handlers/FurnitureContextMenuWidgetHandler.ts rename to src/api/nitro/room/widgets/handlers/FurnitureContextMenuWidgetHandler.ts diff --git a/src/views/room/handlers/FurnitureCustomStackHeightWidgetHandler.ts b/src/api/nitro/room/widgets/handlers/FurnitureCustomStackHeightWidgetHandler.ts similarity index 97% rename from src/views/room/handlers/FurnitureCustomStackHeightWidgetHandler.ts rename to src/api/nitro/room/widgets/handlers/FurnitureCustomStackHeightWidgetHandler.ts index ef158da9..d9d858b8 100644 --- a/src/views/room/handlers/FurnitureCustomStackHeightWidgetHandler.ts +++ b/src/api/nitro/room/widgets/handlers/FurnitureCustomStackHeightWidgetHandler.ts @@ -1,5 +1,5 @@ import { NitroEvent, RoomEngineTriggerWidgetEvent, RoomWidgetEnum } from '@nitrots/nitro-renderer'; -import { GetRoomEngine } from '../../../api'; +import { GetRoomEngine } from '../../../..'; import { RoomWidgetUpdateCustomStackHeightEvent, RoomWidgetUpdateEvent } from '../events'; import { RoomWidgetMessage } from '../messages'; import { RoomWidgetHandler } from './RoomWidgetHandler'; diff --git a/src/views/room/handlers/FurnitureExternalImageWidgetHandler.ts b/src/api/nitro/room/widgets/handlers/FurnitureExternalImageWidgetHandler.ts similarity index 97% rename from src/views/room/handlers/FurnitureExternalImageWidgetHandler.ts rename to src/api/nitro/room/widgets/handlers/FurnitureExternalImageWidgetHandler.ts index 0c45a2fc..1c504817 100644 --- a/src/views/room/handlers/FurnitureExternalImageWidgetHandler.ts +++ b/src/api/nitro/room/widgets/handlers/FurnitureExternalImageWidgetHandler.ts @@ -1,5 +1,5 @@ import { NitroEvent, RoomEngineTriggerWidgetEvent, RoomObjectVariable, RoomWidgetEnum } from '@nitrots/nitro-renderer'; -import { GetRoomEngine } from '../../../api'; +import { GetRoomEngine } from '../../../..'; import { IPhotoData } from '../events'; import { RoomWidgetUpdateEvent } from '../events/RoomWidgetUpdateEvent'; import { RoomWidgetUpdateExternalImageEvent } from '../events/RoomWidgetUpdateExternalImageEvent'; diff --git a/src/views/room/handlers/IRoomWidgetHandler.ts b/src/api/nitro/room/widgets/handlers/IRoomWidgetHandler.ts similarity index 100% rename from src/views/room/handlers/IRoomWidgetHandler.ts rename to src/api/nitro/room/widgets/handlers/IRoomWidgetHandler.ts diff --git a/src/views/room/handlers/IRoomWidgetHandlerManager.ts b/src/api/nitro/room/widgets/handlers/IRoomWidgetHandlerManager.ts similarity index 100% rename from src/views/room/handlers/IRoomWidgetHandlerManager.ts rename to src/api/nitro/room/widgets/handlers/IRoomWidgetHandlerManager.ts diff --git a/src/views/room/handlers/RoomWidgetAvatarInfoHandler.ts b/src/api/nitro/room/widgets/handlers/RoomWidgetAvatarInfoHandler.ts similarity index 98% rename from src/views/room/handlers/RoomWidgetAvatarInfoHandler.ts rename to src/api/nitro/room/widgets/handlers/RoomWidgetAvatarInfoHandler.ts index c90cc343..db1073d5 100644 --- a/src/views/room/handlers/RoomWidgetAvatarInfoHandler.ts +++ b/src/api/nitro/room/widgets/handlers/RoomWidgetAvatarInfoHandler.ts @@ -1,6 +1,6 @@ import { NitroEvent, RoomEngineUseProductEvent, RoomObjectCategory, RoomObjectType, RoomObjectVariable, RoomSessionDanceEvent, RoomSessionUserDataUpdateEvent, RoomWidgetEnum } from '@nitrots/nitro-renderer'; -import { GetRoomEngine, GetRoomSession, GetSessionDataManager, IsOwnerOfFurniture } from '../../../api'; -import { FurniCategory } from '../../inventory/common/FurniCategory'; +import { GetRoomEngine, GetRoomSession, GetSessionDataManager, IsOwnerOfFurniture } from '../../../..'; +import { FurniCategory } from '../../../../../views/inventory/common/FurniCategory'; import { RoomWidgetAvatarInfoEvent, RoomWidgetUpdateDanceStatusEvent, RoomWidgetUpdateEvent, RoomWidgetUpdateUserDataEvent, RoomWidgetUseProductBubbleEvent, UseProductItem } from '../events'; import { RoomWidgetAvatarExpressionMessage, RoomWidgetChangePostureMessage, RoomWidgetDanceMessage, RoomWidgetMessage, RoomWidgetRoomObjectMessage, RoomWidgetUseProductMessage, RoomWidgetUserActionMessage } from '../messages'; import { RoomWidgetHandler } from './RoomWidgetHandler'; diff --git a/src/views/room/handlers/RoomWidgetChatHandler.ts b/src/api/nitro/room/widgets/handlers/RoomWidgetChatHandler.ts similarity index 99% rename from src/views/room/handlers/RoomWidgetChatHandler.ts rename to src/api/nitro/room/widgets/handlers/RoomWidgetChatHandler.ts index 12fb44ad..53ca74f2 100644 --- a/src/views/room/handlers/RoomWidgetChatHandler.ts +++ b/src/api/nitro/room/widgets/handlers/RoomWidgetChatHandler.ts @@ -1,6 +1,6 @@ import { AvatarFigurePartType, AvatarScaleType, AvatarSetType, IAvatarImageListener, INitroPoint, IVector3D, NitroEvent, NitroPoint, PetFigureData, RoomObjectCategory, RoomObjectType, RoomObjectVariable, RoomSessionChatEvent, RoomWidgetEnum, SystemChatStyleEnum, TextureUtils, Vector3d } from '@nitrots/nitro-renderer'; -import { GetAvatarRenderManager, GetRoomEngine } from '../../../api'; -import { LocalizeText } from '../../../utils/LocalizeText'; +import { GetAvatarRenderManager, GetRoomEngine } from '../../../..'; +import { LocalizeText } from '../../../../utils/LocalizeText'; import { RoomWidgetUpdateChatEvent, RoomWidgetUpdateEvent } from '../events'; import { RoomWidgetMessage } from '../messages'; import { RoomWidgetHandler } from './RoomWidgetHandler'; diff --git a/src/views/room/handlers/RoomWidgetChatInputHandler.ts b/src/api/nitro/room/widgets/handlers/RoomWidgetChatInputHandler.ts similarity index 98% rename from src/views/room/handlers/RoomWidgetChatInputHandler.ts rename to src/api/nitro/room/widgets/handlers/RoomWidgetChatInputHandler.ts index c038d7f2..8daf7bc0 100644 --- a/src/views/room/handlers/RoomWidgetChatInputHandler.ts +++ b/src/api/nitro/room/widgets/handlers/RoomWidgetChatInputHandler.ts @@ -1,6 +1,6 @@ import { AvatarExpressionEnum, HabboClubLevelEnum, NitroEvent, RoomControllerLevel, RoomSessionChatEvent, RoomSettingsComposer, RoomWidgetEnum, RoomZoomEvent, TextureUtils } from '@nitrots/nitro-renderer'; -import { GetRoomEngine, GetSessionDataManager } from '../../../api'; -import { SendMessageHook } from '../../../hooks/messages'; +import { GetRoomEngine, GetSessionDataManager } from '../../../..'; +import { SendMessageHook } from '../../../../../hooks/messages'; import { RoomWidgetFloodControlEvent, RoomWidgetUpdateEvent } from '../events'; import { RoomWidgetChatMessage, RoomWidgetChatSelectAvatarMessage, RoomWidgetChatTypingMessage, RoomWidgetMessage, RoomWidgetRequestWidgetMessage } from '../messages'; import { RoomWidgetHandler } from './RoomWidgetHandler'; diff --git a/src/views/room/handlers/RoomWidgetHandler.ts b/src/api/nitro/room/widgets/handlers/RoomWidgetHandler.ts similarity index 100% rename from src/views/room/handlers/RoomWidgetHandler.ts rename to src/api/nitro/room/widgets/handlers/RoomWidgetHandler.ts diff --git a/src/views/room/handlers/RoomWidgetHandlerManager.ts b/src/api/nitro/room/widgets/handlers/RoomWidgetHandlerManager.ts similarity index 100% rename from src/views/room/handlers/RoomWidgetHandlerManager.ts rename to src/api/nitro/room/widgets/handlers/RoomWidgetHandlerManager.ts diff --git a/src/views/room/handlers/RoomWidgetInfostandHandler.ts b/src/api/nitro/room/widgets/handlers/RoomWidgetInfostandHandler.ts similarity index 98% rename from src/views/room/handlers/RoomWidgetInfostandHandler.ts rename to src/api/nitro/room/widgets/handlers/RoomWidgetInfostandHandler.ts index 0a817e64..50f663f4 100644 --- a/src/views/room/handlers/RoomWidgetInfostandHandler.ts +++ b/src/api/nitro/room/widgets/handlers/RoomWidgetInfostandHandler.ts @@ -1,13 +1,13 @@ import { IFurnitureData, NitroEvent, ObjectDataFactory, PetFigureData, PetRespectComposer, PetSupplementComposer, PetType, RoomAdsUpdateComposer, RoomControllerLevel, RoomModerationSettings, RoomObjectCategory, RoomObjectOperationType, RoomObjectType, RoomObjectVariable, RoomSessionPetInfoUpdateEvent, RoomSessionUserBadgesEvent, RoomTradingLevelEnum, RoomUnitDropHandItemComposer, RoomUnitGiveHandItemComposer, RoomUnitGiveHandItemPetComposer, RoomUserData, RoomWidgetEnum, RoomWidgetEnumItemExtradataParameter, SecurityLevel, Vector3d } from '@nitrots/nitro-renderer'; -import { GetNitroInstance, GetRoomEngine, GetSessionDataManager, IsOwnerOfFurniture } from '../../../api'; -import { InventoryTradeRequestEvent, WiredSelectObjectEvent } from '../../../events'; -import { FriendListSendFriendRequestEvent } from '../../../events/friend-list/FriendListSendFriendRequestEvent'; -import { dispatchUiEvent } from '../../../hooks/events'; -import { SendMessageHook } from '../../../hooks/messages'; -import { LocalizeText } from '../../../utils/LocalizeText'; +import { GetNitroInstance, GetRoomEngine, GetSessionDataManager, IsOwnerOfFurniture } from '../../../..'; +import { InventoryTradeRequestEvent, WiredSelectObjectEvent } from '../../../../../events'; +import { FriendListSendFriendRequestEvent } from '../../../../../events/friend-list/FriendListSendFriendRequestEvent'; +import { dispatchUiEvent } from '../../../../../hooks/events'; +import { SendMessageHook } from '../../../../../hooks/messages'; +import { PetSupplementEnum } from '../../../../../views/room/widgets/avatar-info/common/PetSupplementEnum'; +import { LocalizeText } from '../../../../utils/LocalizeText'; import { RoomWidgetObjectNameEvent, RoomWidgetUpdateChatInputContentEvent, RoomWidgetUpdateEvent, RoomWidgetUpdateInfostandFurniEvent, RoomWidgetUpdateInfostandPetEvent, RoomWidgetUpdateInfostandRentableBotEvent, RoomWidgetUpdateInfostandUserEvent } from '../events'; import { RoomWidgetChangeMottoMessage, RoomWidgetFurniActionMessage, RoomWidgetMessage, RoomWidgetRoomObjectMessage, RoomWidgetUserActionMessage } from '../messages'; -import { PetSupplementEnum } from '../widgets/avatar-info/common/PetSupplementEnum'; import { RoomWidgetHandler } from './RoomWidgetHandler'; export class RoomWidgetInfostandHandler extends RoomWidgetHandler diff --git a/src/views/room/handlers/RoomWidgetRoomToolsHandler.ts b/src/api/nitro/room/widgets/handlers/RoomWidgetRoomToolsHandler.ts similarity index 95% rename from src/views/room/handlers/RoomWidgetRoomToolsHandler.ts rename to src/api/nitro/room/widgets/handlers/RoomWidgetRoomToolsHandler.ts index c9e21363..c99518da 100644 --- a/src/views/room/handlers/RoomWidgetRoomToolsHandler.ts +++ b/src/api/nitro/room/widgets/handlers/RoomWidgetRoomToolsHandler.ts @@ -1,5 +1,5 @@ import { NitroEvent, RoomWidgetEnum, RoomZoomEvent } from '@nitrots/nitro-renderer'; -import { GetRoomEngine } from '../../../api'; +import { GetRoomEngine } from '../../../..'; import { RoomWidgetUpdateEvent } from '../events'; import { RoomWidgetMessage, RoomWidgetZoomToggleMessage } from '../messages'; import { RoomWidgetHandler } from './RoomWidgetHandler'; diff --git a/src/views/room/handlers/UserChooserWidgetHandler.ts b/src/api/nitro/room/widgets/handlers/UserChooserWidgetHandler.ts similarity index 98% rename from src/views/room/handlers/UserChooserWidgetHandler.ts rename to src/api/nitro/room/widgets/handlers/UserChooserWidgetHandler.ts index 5ab8ecc6..67b00e06 100644 --- a/src/views/room/handlers/UserChooserWidgetHandler.ts +++ b/src/api/nitro/room/widgets/handlers/UserChooserWidgetHandler.ts @@ -1,6 +1,6 @@ import { NitroEvent, RoomObjectCategory, RoomWidgetEnum } from '@nitrots/nitro-renderer'; import { RoomWidgetHandler } from '.'; -import { GetRoomEngine } from '../../../api'; +import { GetRoomEngine } from '../../../..'; import { RoomObjectItem, RoomWidgetChooserContentEvent, RoomWidgetUpdateEvent } from '../events'; import { RoomWidgetMessage, RoomWidgetRequestWidgetMessage, RoomWidgetRoomObjectMessage } from '../messages'; diff --git a/src/views/room/handlers/index.ts b/src/api/nitro/room/widgets/handlers/index.ts similarity index 66% rename from src/views/room/handlers/index.ts rename to src/api/nitro/room/widgets/handlers/index.ts index 1d7bd389..d787e68c 100644 --- a/src/views/room/handlers/index.ts +++ b/src/api/nitro/room/widgets/handlers/index.ts @@ -1,5 +1,8 @@ +export * from './DoorbellWidgetHandler'; +export * from './FurniChooserWidgetHandler'; export * from './FurnitureContextMenuWidgetHandler'; export * from './FurnitureCustomStackHeightWidgetHandler'; +export * from './FurnitureExternalImageWidgetHandler'; export * from './IRoomWidgetHandler'; export * from './IRoomWidgetHandlerManager'; export * from './RoomWidgetAvatarInfoHandler'; @@ -8,3 +11,5 @@ export * from './RoomWidgetChatInputHandler'; export * from './RoomWidgetHandler'; export * from './RoomWidgetHandlerManager'; export * from './RoomWidgetInfostandHandler'; +export * from './RoomWidgetRoomToolsHandler'; +export * from './UserChooserWidgetHandler'; diff --git a/src/api/nitro/room/widgets/index.ts b/src/api/nitro/room/widgets/index.ts new file mode 100644 index 00000000..fcfa1085 --- /dev/null +++ b/src/api/nitro/room/widgets/index.ts @@ -0,0 +1,3 @@ +export * from './events'; +export * from './handlers'; +export * from './messages'; diff --git a/src/views/room/messages/RoomWidgetAvatarExpressionMessage.ts b/src/api/nitro/room/widgets/messages/RoomWidgetAvatarExpressionMessage.ts similarity index 100% rename from src/views/room/messages/RoomWidgetAvatarExpressionMessage.ts rename to src/api/nitro/room/widgets/messages/RoomWidgetAvatarExpressionMessage.ts diff --git a/src/views/room/messages/RoomWidgetChangeMottoMessage.ts b/src/api/nitro/room/widgets/messages/RoomWidgetChangeMottoMessage.ts similarity index 100% rename from src/views/room/messages/RoomWidgetChangeMottoMessage.ts rename to src/api/nitro/room/widgets/messages/RoomWidgetChangeMottoMessage.ts diff --git a/src/views/room/messages/RoomWidgetChangePostureMessage.ts b/src/api/nitro/room/widgets/messages/RoomWidgetChangePostureMessage.ts similarity index 100% rename from src/views/room/messages/RoomWidgetChangePostureMessage.ts rename to src/api/nitro/room/widgets/messages/RoomWidgetChangePostureMessage.ts diff --git a/src/views/room/messages/RoomWidgetChatMessage.ts b/src/api/nitro/room/widgets/messages/RoomWidgetChatMessage.ts similarity index 100% rename from src/views/room/messages/RoomWidgetChatMessage.ts rename to src/api/nitro/room/widgets/messages/RoomWidgetChatMessage.ts diff --git a/src/views/room/messages/RoomWidgetChatSelectAvatarMessage.ts b/src/api/nitro/room/widgets/messages/RoomWidgetChatSelectAvatarMessage.ts similarity index 100% rename from src/views/room/messages/RoomWidgetChatSelectAvatarMessage.ts rename to src/api/nitro/room/widgets/messages/RoomWidgetChatSelectAvatarMessage.ts diff --git a/src/views/room/messages/RoomWidgetChatTypingMessage.ts b/src/api/nitro/room/widgets/messages/RoomWidgetChatTypingMessage.ts similarity index 100% rename from src/views/room/messages/RoomWidgetChatTypingMessage.ts rename to src/api/nitro/room/widgets/messages/RoomWidgetChatTypingMessage.ts diff --git a/src/views/room/messages/RoomWidgetDanceMessage.ts b/src/api/nitro/room/widgets/messages/RoomWidgetDanceMessage.ts similarity index 100% rename from src/views/room/messages/RoomWidgetDanceMessage.ts rename to src/api/nitro/room/widgets/messages/RoomWidgetDanceMessage.ts diff --git a/src/views/room/messages/RoomWidgetFurniActionMessage.ts b/src/api/nitro/room/widgets/messages/RoomWidgetFurniActionMessage.ts similarity index 100% rename from src/views/room/messages/RoomWidgetFurniActionMessage.ts rename to src/api/nitro/room/widgets/messages/RoomWidgetFurniActionMessage.ts diff --git a/src/views/room/messages/RoomWidgetFurniToWidgetMessage.ts b/src/api/nitro/room/widgets/messages/RoomWidgetFurniToWidgetMessage.ts similarity index 100% rename from src/views/room/messages/RoomWidgetFurniToWidgetMessage.ts rename to src/api/nitro/room/widgets/messages/RoomWidgetFurniToWidgetMessage.ts diff --git a/src/views/room/messages/RoomWidgetLetUserInMessage.ts b/src/api/nitro/room/widgets/messages/RoomWidgetLetUserInMessage.ts similarity index 100% rename from src/views/room/messages/RoomWidgetLetUserInMessage.ts rename to src/api/nitro/room/widgets/messages/RoomWidgetLetUserInMessage.ts diff --git a/src/views/room/messages/RoomWidgetMessage.ts b/src/api/nitro/room/widgets/messages/RoomWidgetMessage.ts similarity index 100% rename from src/views/room/messages/RoomWidgetMessage.ts rename to src/api/nitro/room/widgets/messages/RoomWidgetMessage.ts diff --git a/src/views/room/messages/RoomWidgetRequestWidgetMessage.ts b/src/api/nitro/room/widgets/messages/RoomWidgetRequestWidgetMessage.ts similarity index 100% rename from src/views/room/messages/RoomWidgetRequestWidgetMessage.ts rename to src/api/nitro/room/widgets/messages/RoomWidgetRequestWidgetMessage.ts diff --git a/src/views/room/messages/RoomWidgetRoomObjectMessage.ts b/src/api/nitro/room/widgets/messages/RoomWidgetRoomObjectMessage.ts similarity index 100% rename from src/views/room/messages/RoomWidgetRoomObjectMessage.ts rename to src/api/nitro/room/widgets/messages/RoomWidgetRoomObjectMessage.ts diff --git a/src/views/room/messages/RoomWidgetUseProductMessage.ts b/src/api/nitro/room/widgets/messages/RoomWidgetUseProductMessage.ts similarity index 100% rename from src/views/room/messages/RoomWidgetUseProductMessage.ts rename to src/api/nitro/room/widgets/messages/RoomWidgetUseProductMessage.ts diff --git a/src/views/room/messages/RoomWidgetUserActionMessage.ts b/src/api/nitro/room/widgets/messages/RoomWidgetUserActionMessage.ts similarity index 100% rename from src/views/room/messages/RoomWidgetUserActionMessage.ts rename to src/api/nitro/room/widgets/messages/RoomWidgetUserActionMessage.ts diff --git a/src/views/room/messages/RoomWidgetZoomToggleMessage.ts b/src/api/nitro/room/widgets/messages/RoomWidgetZoomToggleMessage.ts similarity index 100% rename from src/views/room/messages/RoomWidgetZoomToggleMessage.ts rename to src/api/nitro/room/widgets/messages/RoomWidgetZoomToggleMessage.ts diff --git a/src/views/room/messages/index.ts b/src/api/nitro/room/widgets/messages/index.ts similarity index 100% rename from src/views/room/messages/index.ts rename to src/api/nitro/room/widgets/messages/index.ts diff --git a/src/utils/ColorUtils.ts b/src/api/utils/ColorUtils.ts similarity index 100% rename from src/utils/ColorUtils.ts rename to src/api/utils/ColorUtils.ts diff --git a/src/utils/LocalizeBadgeDescription.ts b/src/api/utils/LocalizeBadgeDescription.ts similarity index 75% rename from src/utils/LocalizeBadgeDescription.ts rename to src/api/utils/LocalizeBadgeDescription.ts index e5a046e0..992e8f92 100644 --- a/src/utils/LocalizeBadgeDescription.ts +++ b/src/api/utils/LocalizeBadgeDescription.ts @@ -1,4 +1,4 @@ -import { GetNitroInstance } from '../api'; +import { GetNitroInstance } from '..'; export function LocalizeBadgeDescription(key: string): string { diff --git a/src/utils/LocalizeBageName.ts b/src/api/utils/LocalizeBageName.ts similarity index 73% rename from src/utils/LocalizeBageName.ts rename to src/api/utils/LocalizeBageName.ts index ad579262..f43b271c 100644 --- a/src/utils/LocalizeBageName.ts +++ b/src/api/utils/LocalizeBageName.ts @@ -1,4 +1,4 @@ -import { GetNitroInstance } from '../api'; +import { GetNitroInstance } from '..'; export function LocalizeBadgeName(key: string): string { diff --git a/src/utils/LocalizeShortNumber.ts b/src/api/utils/LocalizeShortNumber.ts similarity index 100% rename from src/utils/LocalizeShortNumber.ts rename to src/api/utils/LocalizeShortNumber.ts diff --git a/src/utils/LocalizeText.ts b/src/api/utils/LocalizeText.ts similarity index 82% rename from src/utils/LocalizeText.ts rename to src/api/utils/LocalizeText.ts index ed3c8b18..cf34a1ff 100644 --- a/src/utils/LocalizeText.ts +++ b/src/api/utils/LocalizeText.ts @@ -1,4 +1,4 @@ -import { GetNitroInstance } from '../api'; +import { GetNitroInstance } from '..'; export function LocalizeText(key: string, parameters: string[] = null, replacements: string[] = null): string { diff --git a/src/utils/Randomizer.ts b/src/api/utils/Randomizer.ts similarity index 100% rename from src/utils/Randomizer.ts rename to src/api/utils/Randomizer.ts diff --git a/src/utils/index.ts b/src/api/utils/index.ts similarity index 100% rename from src/utils/index.ts rename to src/api/utils/index.ts diff --git a/src/events/friend-list/FriendEnteredRoomEvent.ts b/src/events/friend-list/FriendEnteredRoomEvent.ts index 5a7755eb..711d5e71 100644 --- a/src/events/friend-list/FriendEnteredRoomEvent.ts +++ b/src/events/friend-list/FriendEnteredRoomEvent.ts @@ -1,4 +1,4 @@ -import { RoomWidgetObjectNameEvent } from '../../views/room/events'; +import { RoomWidgetObjectNameEvent } from '../../api'; export class FriendEnteredRoomEvent extends RoomWidgetObjectNameEvent { diff --git a/src/events/room-widgets/camera/RoomWidgetCameraEvent.ts b/src/events/room-widgets/camera/RoomWidgetCameraEvent.ts index 6fdbbd0a..46ed5e4b 100644 --- a/src/events/room-widgets/camera/RoomWidgetCameraEvent.ts +++ b/src/events/room-widgets/camera/RoomWidgetCameraEvent.ts @@ -1,4 +1,4 @@ -import { RoomWidgetUpdateEvent } from '../../../views/room/events/RoomWidgetUpdateEvent'; +import { RoomWidgetUpdateEvent } from '../../../api'; export class RoomWidgetCameraEvent extends RoomWidgetUpdateEvent { diff --git a/src/events/room-widgets/thumbnail/RoomWidgetThumbnailEvent.ts b/src/events/room-widgets/thumbnail/RoomWidgetThumbnailEvent.ts index 03451226..15b5efb6 100644 --- a/src/events/room-widgets/thumbnail/RoomWidgetThumbnailEvent.ts +++ b/src/events/room-widgets/thumbnail/RoomWidgetThumbnailEvent.ts @@ -1,4 +1,4 @@ -import { RoomWidgetUpdateEvent } from '../../../views/room/events/RoomWidgetUpdateEvent'; +import { RoomWidgetUpdateEvent } from '../../../api'; export class RoomWidgetThumbnailEvent extends RoomWidgetUpdateEvent { diff --git a/src/layout/mini-camera/NitroLayoutMiniCameraView.tsx b/src/layout/mini-camera/NitroLayoutMiniCameraView.tsx index ea1b34f8..7b5c6fc9 100644 --- a/src/layout/mini-camera/NitroLayoutMiniCameraView.tsx +++ b/src/layout/mini-camera/NitroLayoutMiniCameraView.tsx @@ -1,7 +1,6 @@ import { NitroRectangle } from '@nitrots/nitro-renderer'; import { FC, useCallback, useRef } from 'react'; -import { GetRoomEngine } from '../../api'; -import { LocalizeText } from '../../utils'; +import { GetRoomEngine, LocalizeText } from '../../api'; import { DraggableWindow } from '../draggable-window'; import { NitroLayoutMiniCameraViewProps } from './NitroLayoutMiniCameraView.types'; diff --git a/src/layout/trophy/NitroLayoutTrophyView.tsx b/src/layout/trophy/NitroLayoutTrophyView.tsx index 3f34e210..2e4c39bd 100644 --- a/src/layout/trophy/NitroLayoutTrophyView.tsx +++ b/src/layout/trophy/NitroLayoutTrophyView.tsx @@ -1,5 +1,5 @@ import { FC } from 'react'; -import { LocalizeText } from '../../utils/LocalizeText'; +import { LocalizeText } from '../../api'; import { DraggableWindow } from '../draggable-window'; import { NitroLayoutTrophyViewProps } from './NitroLayoutTrophyView.types'; diff --git a/src/views/achievements/AchievementsView.tsx b/src/views/achievements/AchievementsView.tsx index a60d0638..38cdcf6c 100644 --- a/src/views/achievements/AchievementsView.tsx +++ b/src/views/achievements/AchievementsView.tsx @@ -1,8 +1,8 @@ import { FC, useCallback, useReducer, useState } from 'react'; +import { LocalizeText } from '../../api'; import { AchievementsUIEvent } from '../../events/achievements'; import { useUiEvent } from '../../hooks/events'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../layout'; -import { LocalizeText } from '../../utils/LocalizeText'; import { AchievementsMessageHandler } from './AchievementsMessageHandler'; import { AchievementsViewProps } from './AchievementsView.types'; import { AchievementsContextProvider } from './context/AchievementsContext'; diff --git a/src/views/achievements/views/category/AchievementCategoryView.tsx b/src/views/achievements/views/category/AchievementCategoryView.tsx index 91752e42..050d6a64 100644 --- a/src/views/achievements/views/category/AchievementCategoryView.tsx +++ b/src/views/achievements/views/category/AchievementCategoryView.tsx @@ -1,7 +1,7 @@ import { AchievementData } from '@nitrots/nitro-renderer'; import classNames from 'classnames'; import { FC, useCallback } from 'react'; -import { LocalizeText } from '../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../api'; import { BadgeImageView } from '../../../shared/badge-image/BadgeImageView'; import { useAchievementsContext } from '../../context/AchievementsContext'; import { AchievementsActions } from '../../reducers/AchievementsReducer'; diff --git a/src/views/avatar-editor/AvatarEditorView.tsx b/src/views/avatar-editor/AvatarEditorView.tsx index b9b790fc..46e19a6c 100644 --- a/src/views/avatar-editor/AvatarEditorView.tsx +++ b/src/views/avatar-editor/AvatarEditorView.tsx @@ -1,11 +1,10 @@ import { AvatarDirectionAngle, AvatarEditorFigureCategory, FigureSetIdsMessageEvent, UserFigureComposer, UserWardrobePageComposer, UserWardrobePageEvent } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; -import { GetClubMemberLevel, GetSessionDataManager } from '../../api'; +import { GetClubMemberLevel, GetSessionDataManager, LocalizeText } from '../../api'; import { AvatarEditorEvent } from '../../events/avatar-editor'; import { CreateMessageHook, SendMessageHook } from '../../hooks'; import { useUiEvent } from '../../hooks/events/ui/ui-event'; import { NitroCardContentView, NitroCardHeaderView, NitroCardTabsItemView, NitroCardTabsView, NitroCardView } from '../../layout'; -import { LocalizeText } from '../../utils/LocalizeText'; import { AvatarEditorViewProps } from './AvatarEditorView.types'; import { AvatarEditorUtilities } from './common/AvatarEditorUtilities'; import { BodyModel } from './common/BodyModel'; diff --git a/src/views/avatar-editor/common/FigureGenerator.ts b/src/views/avatar-editor/common/FigureGenerator.ts index 72581717..fa4126ed 100644 --- a/src/views/avatar-editor/common/FigureGenerator.ts +++ b/src/views/avatar-editor/common/FigureGenerator.ts @@ -1,6 +1,6 @@ import { AvatarFigureContainer, IFigurePartSet, IPalette, IPartColor, SetType } from '@nitrots/nitro-renderer'; import { GetAvatarRenderManager } from '../../../api'; -import { Randomizer } from '../../../utils'; +import { Randomizer } from '../../../api/utils'; import { FigureData } from './FigureData'; function getTotalColors(partSet: IFigurePartSet): number diff --git a/src/views/catalog/CatalogView.tsx b/src/views/catalog/CatalogView.tsx index eb745900..2ea38f26 100644 --- a/src/views/catalog/CatalogView.tsx +++ b/src/views/catalog/CatalogView.tsx @@ -1,11 +1,10 @@ import { CatalogModeComposer, CatalogPageComposer, CatalogRequestGiftConfigurationComposer, ICatalogPageData, ILinkEventTracker, RoomPreviewer } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useReducer, useState } from 'react'; -import { AddEventLinkTracker, GetRoomEngine, RemoveLinkEventTracker } from '../../api'; +import { AddEventLinkTracker, GetRoomEngine, LocalizeText, RemoveLinkEventTracker } from '../../api'; import { CatalogEvent } from '../../events'; import { useUiEvent } from '../../hooks/events/ui/ui-event'; import { SendMessageHook } from '../../hooks/messages/message-event'; import { NitroCardContentView, NitroCardHeaderView, NitroCardTabsItemView, NitroCardTabsView, NitroCardView } from '../../layout'; -import { LocalizeText } from '../../utils/LocalizeText'; import { CatalogMessageHandler } from './CatalogMessageHandler'; import { CatalogMode, CatalogViewProps } from './CatalogView.types'; import { BuildCatalogPageTree } from './common/CatalogUtilities'; diff --git a/src/views/catalog/views/page/layout/badge-display/CatalogLayoutBadgeDisplayView.tsx b/src/views/catalog/views/page/layout/badge-display/CatalogLayoutBadgeDisplayView.tsx index 4edd7baa..5fe3149b 100644 --- a/src/views/catalog/views/page/layout/badge-display/CatalogLayoutBadgeDisplayView.tsx +++ b/src/views/catalog/views/page/layout/badge-display/CatalogLayoutBadgeDisplayView.tsx @@ -1,11 +1,11 @@ import { StringDataType } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useMemo, useState } from 'react'; +import { LocalizeText } from '../../../../../../api'; import { InventoryBadgesUpdatedEvent } from '../../../../../../events'; import { InventoryBadgesRequestEvent } from '../../../../../../events/inventory/InventoryBadgesRequestEvent'; import { dispatchUiEvent, useUiEvent } from '../../../../../../hooks'; import { NitroCardGridItemView } from '../../../../../../layout/card/grid/item/NitroCardGridItemView'; import { NitroCardGridView } from '../../../../../../layout/card/grid/NitroCardGridView'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; import { BadgeImageView } from '../../../../../shared/badge-image/BadgeImageView'; import { GetOfferName } from '../../../../common/CatalogUtilities'; import { useCatalogContext } from '../../../../context/CatalogContext'; diff --git a/src/views/catalog/views/page/layout/guild-custom-furni/CatalogLayoutGuildCustomFurniView.tsx b/src/views/catalog/views/page/layout/guild-custom-furni/CatalogLayoutGuildCustomFurniView.tsx index db645c84..10b69879 100644 --- a/src/views/catalog/views/page/layout/guild-custom-furni/CatalogLayoutGuildCustomFurniView.tsx +++ b/src/views/catalog/views/page/layout/guild-custom-furni/CatalogLayoutGuildCustomFurniView.tsx @@ -1,7 +1,7 @@ import { CatalogGroupsComposer } from '@nitrots/nitro-renderer'; import { FC, useEffect } from 'react'; +import { LocalizeText } from '../../../../../../api'; import { SendMessageHook } from '../../../../../../hooks/messages'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; import { GetOfferName } from '../../../../common/CatalogUtilities'; import { useCatalogContext } from '../../../../context/CatalogContext'; import { CatalogRoomPreviewerView } from '../../../catalog-room-previewer/CatalogRoomPreviewerView'; diff --git a/src/views/catalog/views/page/layout/guild-forum/CatalogLayoutGuildForumView.tsx b/src/views/catalog/views/page/layout/guild-forum/CatalogLayoutGuildForumView.tsx index 3ff1db3a..123c332a 100644 --- a/src/views/catalog/views/page/layout/guild-forum/CatalogLayoutGuildForumView.tsx +++ b/src/views/catalog/views/page/layout/guild-forum/CatalogLayoutGuildForumView.tsx @@ -1,7 +1,7 @@ import { CatalogGroupsComposer } from '@nitrots/nitro-renderer'; import { FC, useEffect } from 'react'; +import { LocalizeText } from '../../../../../../api'; import { SendMessageHook } from '../../../../../../hooks/messages'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; import { GetCatalogPageText } from '../../../../common/CatalogUtilities'; import { useCatalogContext } from '../../../../context/CatalogContext'; import { CatalogActions } from '../../../../reducers/CatalogReducer'; diff --git a/src/views/catalog/views/page/layout/pets/CatalogLayoutPetView.tsx b/src/views/catalog/views/page/layout/pets/CatalogLayoutPetView.tsx index a3de47aa..07774165 100644 --- a/src/views/catalog/views/page/layout/pets/CatalogLayoutPetView.tsx +++ b/src/views/catalog/views/page/layout/pets/CatalogLayoutPetView.tsx @@ -1,8 +1,7 @@ import { CatalogRequestPetBreedsComposer, ColorConverter, SellablePetPaletteData } from '@nitrots/nitro-renderer'; import { FC, useEffect, useMemo, useState } from 'react'; -import { GetProductDataForLocalization } from '../../../../../../api/nitro/session/GetProductDataForLocalization'; +import { GetProductDataForLocalization, LocalizeText } from '../../../../../../api'; import { SendMessageHook } from '../../../../../../hooks/messages/message-event'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; import { PetImageView } from '../../../../../shared/pet-image/PetImageView'; import { GetCatalogPageImage, GetCatalogPageText, GetPetAvailableColors, GetPetIndexFromLocalization } from '../../../../common/CatalogUtilities'; import { useCatalogContext } from '../../../../context/CatalogContext'; diff --git a/src/views/catalog/views/page/layout/pets/name-approval/CatalogPetNameApprovalView.tsx b/src/views/catalog/views/page/layout/pets/name-approval/CatalogPetNameApprovalView.tsx index b8cf2f6b..c7b6f5c0 100644 --- a/src/views/catalog/views/page/layout/pets/name-approval/CatalogPetNameApprovalView.tsx +++ b/src/views/catalog/views/page/layout/pets/name-approval/CatalogPetNameApprovalView.tsx @@ -1,7 +1,7 @@ import { FC, useCallback, useEffect, useMemo, useState } from 'react'; +import { LocalizeText } from '../../../../../../../api'; import { CatalogEvent, CatalogNameResultEvent } from '../../../../../../../events'; import { useUiEvent } from '../../../../../../../hooks/events/ui/ui-event'; -import { LocalizeText } from '../../../../../../../utils/LocalizeText'; import { CatalogPetNameApprovalViewProps } from './CatalogPetNameApprovalView.types'; export const CatalogPetNameApprovalView: FC = props => diff --git a/src/views/catalog/views/page/layout/pets/purchase/CatalogLayoutPetPurchaseView.tsx b/src/views/catalog/views/page/layout/pets/purchase/CatalogLayoutPetPurchaseView.tsx index c70e99ce..9f1ebb31 100644 --- a/src/views/catalog/views/page/layout/pets/purchase/CatalogLayoutPetPurchaseView.tsx +++ b/src/views/catalog/views/page/layout/pets/purchase/CatalogLayoutPetPurchaseView.tsx @@ -1,9 +1,9 @@ import { ApproveNameMessageComposer } from '@nitrots/nitro-renderer'; import { FC, useCallback, useState } from 'react'; +import { LocalizeText } from '../../../../../../../api'; import { CatalogEvent } from '../../../../../../../events'; import { useUiEvent } from '../../../../../../../hooks/events/ui/ui-event'; import { SendMessageHook } from '../../../../../../../hooks/messages/message-event'; -import { LocalizeText } from '../../../../../../../utils/LocalizeText'; import { CurrencyIcon } from '../../../../../../shared/currency-icon/CurrencyIcon'; import { CatalogPurchaseButtonView } from '../../../purchase/purchase-button/CatalogPurchaseButtonView'; import { CatalogPetNameApprovalView } from '../name-approval/CatalogPetNameApprovalView'; diff --git a/src/views/catalog/views/page/layout/spaces-new/CatalogLayoutSpacesView.tsx b/src/views/catalog/views/page/layout/spaces-new/CatalogLayoutSpacesView.tsx index e0f1b9f8..fad3f828 100644 --- a/src/views/catalog/views/page/layout/spaces-new/CatalogLayoutSpacesView.tsx +++ b/src/views/catalog/views/page/layout/spaces-new/CatalogLayoutSpacesView.tsx @@ -1,7 +1,6 @@ import { CatalogPageOfferData, IFurnitureData } from '@nitrots/nitro-renderer'; import { FC, useEffect, useState } from 'react'; -import { GetSessionDataManager } from '../../../../../../api'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; +import { GetSessionDataManager, LocalizeText } from '../../../../../../api'; import { GetCatalogPageImage, GetCatalogPageText, GetOfferName } from '../../../../common/CatalogUtilities'; import { ProductTypeEnum } from '../../../../common/ProductTypeEnum'; import { useCatalogContext } from '../../../../context/CatalogContext'; diff --git a/src/views/catalog/views/page/layout/vip-buy/CatalogLayoutVipBuyView.tsx b/src/views/catalog/views/page/layout/vip-buy/CatalogLayoutVipBuyView.tsx index ac09e708..fd2e89cf 100644 --- a/src/views/catalog/views/page/layout/vip-buy/CatalogLayoutVipBuyView.tsx +++ b/src/views/catalog/views/page/layout/vip-buy/CatalogLayoutVipBuyView.tsx @@ -1,10 +1,10 @@ import { CatalogClubOfferData, CatalogPurchaseComposer, CatalogRequestVipOffersComposer } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useMemo, useState } from 'react'; import { Button } from 'react-bootstrap'; +import { LocalizeText } from '../../../../../../api'; import { SendMessageHook } from '../../../../../../hooks/messages/message-event'; import { NitroCardGridItemView } from '../../../../../../layout/card/grid/item/NitroCardGridItemView'; import { NitroCardGridView } from '../../../../../../layout/card/grid/NitroCardGridView'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; import { GLOBAL_PURSE } from '../../../../../purse/PurseView'; import { CurrencyIcon } from '../../../../../shared/currency-icon/CurrencyIcon'; import { GetCatalogPageImage } from '../../../../common/CatalogUtilities'; diff --git a/src/views/catalog/views/page/purchase/CatalogPurchaseView.tsx b/src/views/catalog/views/page/purchase/CatalogPurchaseView.tsx index ba6b4dd6..840f8ef2 100644 --- a/src/views/catalog/views/page/purchase/CatalogPurchaseView.tsx +++ b/src/views/catalog/views/page/purchase/CatalogPurchaseView.tsx @@ -1,5 +1,5 @@ import { FC, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { CurrencyIcon } from '../../../../shared/currency-icon/CurrencyIcon'; import { CatalogPurchaseViewProps } from './CatalogPurchaseView.types'; import { CatalogPurchaseButtonView } from './purchase-button/CatalogPurchaseButtonView'; diff --git a/src/views/catalog/views/page/purchase/purchase-button/CatalogPurchaseButtonView.tsx b/src/views/catalog/views/page/purchase/purchase-button/CatalogPurchaseButtonView.tsx index 450088a3..3f750ad9 100644 --- a/src/views/catalog/views/page/purchase/purchase-button/CatalogPurchaseButtonView.tsx +++ b/src/views/catalog/views/page/purchase/purchase-button/CatalogPurchaseButtonView.tsx @@ -1,10 +1,10 @@ import { CatalogPurchaseComposer } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; +import { LocalizeText } from '../../../../../../api'; import { CatalogEvent } from '../../../../../../events'; import { useUiEvent } from '../../../../../../hooks/events/ui/ui-event'; import { SendMessageHook } from '../../../../../../hooks/messages/message-event'; import { LoadingSpinnerView } from '../../../../../../layout'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; import { GetCurrencyAmount } from '../../../../../purse/common/CurrencyHelper'; import { CatalogPurchaseButtonViewProps, CatalogPurchaseState } from './CatalogPurchaseButtonView.types'; diff --git a/src/views/catalog/views/page/purchase/purchase-gift-button/CatalogPurchaseGiftButtonView.tsx b/src/views/catalog/views/page/purchase/purchase-gift-button/CatalogPurchaseGiftButtonView.tsx index 1874d530..21acd90d 100644 --- a/src/views/catalog/views/page/purchase/purchase-gift-button/CatalogPurchaseGiftButtonView.tsx +++ b/src/views/catalog/views/page/purchase/purchase-gift-button/CatalogPurchaseGiftButtonView.tsx @@ -1,5 +1,5 @@ import { FC } from 'react'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../../api'; import { CatalogPurchaseGiftButtonViewProps } from './CatalogPurchaseGiftButtonView.types'; export const CatalogPurchaseGiftButtonView: FC = props => diff --git a/src/views/catalog/views/search/CatalogSearchView.tsx b/src/views/catalog/views/search/CatalogSearchView.tsx index f4ff210c..8acd3986 100644 --- a/src/views/catalog/views/search/CatalogSearchView.tsx +++ b/src/views/catalog/views/search/CatalogSearchView.tsx @@ -1,7 +1,6 @@ import { ICatalogPageData, IFurnitureData } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; -import { GetSessionDataManager } from '../../../../api'; -import { LocalizeText } from '../../../../utils/LocalizeText'; +import { GetSessionDataManager, LocalizeText } from '../../../../api'; import { GetOfferNodes } from '../../common/CatalogUtilities'; import { useCatalogContext } from '../../context/CatalogContext'; import { CatalogActions } from '../../reducers/CatalogReducer'; diff --git a/src/views/friend-list/FriendListView.tsx b/src/views/friend-list/FriendListView.tsx index 0163d7cd..9c9190ba 100644 --- a/src/views/friend-list/FriendListView.tsx +++ b/src/views/friend-list/FriendListView.tsx @@ -1,14 +1,13 @@ import { MessengerInitComposer, RoomEngineObjectEvent, RoomObjectCategory, RoomObjectUserType } from '@nitrots/nitro-renderer'; import React, { FC, useCallback, useEffect, useReducer, useState } from 'react'; import { createPortal } from 'react-dom'; -import { GetRoomSession } from '../../api'; +import { GetRoomSession, LocalizeText } from '../../api'; import { FriendEnteredRoomEvent, FriendListEvent } from '../../events'; import { FriendListSendFriendRequestEvent } from '../../events/friend-list/FriendListSendFriendRequestEvent'; import { useRoomEngineEvent } from '../../hooks/events'; import { dispatchUiEvent, useUiEvent } from '../../hooks/events/ui/ui-event'; import { SendMessageHook } from '../../hooks/messages/message-event'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../layout'; -import { LocalizeText } from '../../utils/LocalizeText'; import { FriendListContextProvider } from './context/FriendListContext'; import { FriendListMessageHandler } from './FriendListMessageHandler'; import { FriendListViewProps } from './FriendListView.types'; diff --git a/src/views/friend-list/views/friend-bar-item/FriendBarItemView.tsx b/src/views/friend-list/views/friend-bar-item/FriendBarItemView.tsx index 07664c45..3b19992f 100644 --- a/src/views/friend-list/views/friend-bar-item/FriendBarItemView.tsx +++ b/src/views/friend-list/views/friend-bar-item/FriendBarItemView.tsx @@ -1,7 +1,7 @@ import { FollowFriendComposer, MouseEventType, UserProfileComposer } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useRef, useState } from 'react'; +import { LocalizeText } from '../../../../api'; import { SendMessageHook } from '../../../../hooks/messages'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import { AvatarImageView } from '../../../shared/avatar-image/AvatarImageView'; import { FriendBarItemViewProps } from './FriendBarItemView.types'; diff --git a/src/views/hotel-view/views/widgets/hall-of-fame-item/HallOfFameItemView.tsx b/src/views/hotel-view/views/widgets/hall-of-fame-item/HallOfFameItemView.tsx index 06c29c03..a5d7d08a 100644 --- a/src/views/hotel-view/views/widgets/hall-of-fame-item/HallOfFameItemView.tsx +++ b/src/views/hotel-view/views/widgets/hall-of-fame-item/HallOfFameItemView.tsx @@ -1,5 +1,5 @@ import { FC } from 'react'; -import { LocalizeText } from '../../../../../utils'; +import { LocalizeText } from '../../../../../api'; import { AvatarImageView } from '../../../../shared/avatar-image/AvatarImageView'; import { HallOfFameItemViewProps } from './HallOfFameItemView.types'; diff --git a/src/views/hotel-view/views/widgets/promo-article/PromoArticleWidgetView.tsx b/src/views/hotel-view/views/widgets/promo-article/PromoArticleWidgetView.tsx index fc8f1510..dfcf0fcf 100644 --- a/src/views/hotel-view/views/widgets/promo-article/PromoArticleWidgetView.tsx +++ b/src/views/hotel-view/views/widgets/promo-article/PromoArticleWidgetView.tsx @@ -1,7 +1,7 @@ import { GetPromoArticlesComposer, PromoArticleData, PromoArticlesMessageEvent } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; +import { LocalizeText } from '../../../../../api'; import { CreateMessageHook, SendMessageHook } from '../../../../../hooks'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; import { PromoArticleWidgetViewProps } from './PromoArticleWidgetView.types'; export const PromoArticleWidgetView: FC = props => diff --git a/src/views/hotel-view/views/widgets/widget-container/WidgetContainerView.tsx b/src/views/hotel-view/views/widgets/widget-container/WidgetContainerView.tsx index cdefec19..990255ba 100644 --- a/src/views/hotel-view/views/widgets/widget-container/WidgetContainerView.tsx +++ b/src/views/hotel-view/views/widgets/widget-container/WidgetContainerView.tsx @@ -1,6 +1,5 @@ import { FC, useCallback, useMemo } from 'react'; -import { GetConfigurationManager } from '../../../../../api/core'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { GetConfigurationManager, LocalizeText } from '../../../../../api'; import { WidgetContainerViewProps } from './WidgetContainerView.types'; export const WidgetContainerView: FC = props => diff --git a/src/views/inventory/InventoryView.tsx b/src/views/inventory/InventoryView.tsx index 91369e35..13590ecf 100644 --- a/src/views/inventory/InventoryView.tsx +++ b/src/views/inventory/InventoryView.tsx @@ -1,13 +1,12 @@ import { IRoomSession, RoomEngineObjectEvent, RoomEngineObjectPlacedEvent, RoomPreviewer, RoomSessionEvent, TradingCancelComposer, TradingCloseComposer, TradingOpenComposer } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useReducer, useState } from 'react'; -import { GetRoomEngine } from '../../api'; +import { GetRoomEngine, LocalizeText } from '../../api'; import { InventoryBadgesUpdatedEvent, InventoryEvent, InventoryTradeRequestEvent } from '../../events'; import { useRoomEngineEvent } from '../../hooks/events/nitro/room/room-engine-event'; import { useRoomSessionManagerEvent } from '../../hooks/events/nitro/session/room-session-manager-event'; import { dispatchUiEvent, useUiEvent } from '../../hooks/events/ui/ui-event'; import { SendMessageHook } from '../../hooks/messages'; import { NitroCardContentView, NitroCardHeaderView, NitroCardTabsItemView, NitroCardTabsView, NitroCardView } from '../../layout'; -import { LocalizeText } from '../../utils/LocalizeText'; import { isObjectMoverRequested, setObjectMoverRequested } from './common/InventoryUtilities'; import { TradeState } from './common/TradeState'; import { IUnseenItemTracker } from './common/unseen/IUnseenItemTracker'; diff --git a/src/views/inventory/common/GroupItem.ts b/src/views/inventory/common/GroupItem.ts index 8aa06dba..8eb40644 100644 --- a/src/views/inventory/common/GroupItem.ts +++ b/src/views/inventory/common/GroupItem.ts @@ -1,5 +1,5 @@ import { IObjectData, IRoomEngine } from '@nitrots/nitro-renderer'; -import { LocalizeText } from '../../../utils/LocalizeText'; +import { LocalizeText } from '../../../api'; import { FurniCategory } from './FurniCategory'; import { FurnitureItem } from './FurnitureItem'; import { IFurnitureItem } from './IFurnitureItem'; diff --git a/src/views/inventory/views/badge/InventoryBadgeView.tsx b/src/views/inventory/views/badge/InventoryBadgeView.tsx index fa2567fb..8314db2d 100644 --- a/src/views/inventory/views/badge/InventoryBadgeView.tsx +++ b/src/views/inventory/views/badge/InventoryBadgeView.tsx @@ -1,8 +1,7 @@ import { RequestBadgesComposer } from '@nitrots/nitro-renderer'; import { FC, useEffect } from 'react'; +import { LocalizeBadgeName, LocalizeText } from '../../../../api'; import { SendMessageHook } from '../../../../hooks/messages/message-event'; -import { LocalizeBadgeName } from '../../../../utils/LocalizeBageName'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import { BadgeImageView } from '../../../shared/badge-image/BadgeImageView'; import { useInventoryContext } from '../../context/InventoryContext'; import { InventoryBadgeActions } from '../../reducers/InventoryBadgeReducer'; diff --git a/src/views/inventory/views/bot/InventoryBotView.tsx b/src/views/inventory/views/bot/InventoryBotView.tsx index 70304e51..5ea3ef84 100644 --- a/src/views/inventory/views/bot/InventoryBotView.tsx +++ b/src/views/inventory/views/bot/InventoryBotView.tsx @@ -1,8 +1,7 @@ import { GetBotInventoryComposer, RoomObjectVariable } from '@nitrots/nitro-renderer'; import { FC, useEffect } from 'react'; -import { GetRoomEngine } from '../../../../api'; +import { GetRoomEngine, LocalizeText } from '../../../../api'; import { SendMessageHook } from '../../../../hooks/messages/message-event'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import { RoomPreviewerView } from '../../../shared/room-previewer/RoomPreviewerView'; import { attemptBotPlacement } from '../../common/BotUtilities'; import { useInventoryContext } from '../../context/InventoryContext'; diff --git a/src/views/inventory/views/furniture/InventoryFurnitureView.tsx b/src/views/inventory/views/furniture/InventoryFurnitureView.tsx index adfec6f5..67878baa 100644 --- a/src/views/inventory/views/furniture/InventoryFurnitureView.tsx +++ b/src/views/inventory/views/furniture/InventoryFurnitureView.tsx @@ -1,8 +1,7 @@ import { FurnitureListComposer, RoomObjectVariable, Vector3d } from '@nitrots/nitro-renderer'; import { FC, useEffect, useState } from 'react'; -import { GetRoomEngine, GetSessionDataManager } from '../../../../api'; +import { GetRoomEngine, GetSessionDataManager, LocalizeText } from '../../../../api'; import { SendMessageHook } from '../../../../hooks/messages'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import { LimitedEditionCompactPlateView } from '../../../shared/limited-edition/compact-plate/LimitedEditionCompactPlateView'; import { RarityLevelView } from '../../../shared/rarity-level/RarityLevelView'; import { RoomPreviewerView } from '../../../shared/room-previewer/RoomPreviewerView'; diff --git a/src/views/inventory/views/furniture/search/InventoryFurnitureSearchView.tsx b/src/views/inventory/views/furniture/search/InventoryFurnitureSearchView.tsx index 841999b2..599214cd 100644 --- a/src/views/inventory/views/furniture/search/InventoryFurnitureSearchView.tsx +++ b/src/views/inventory/views/furniture/search/InventoryFurnitureSearchView.tsx @@ -1,5 +1,5 @@ import { FC, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { InventoryFurnitureSearchViewProps } from './InventoryFurnitureSearchView.types'; export const InventoryFurnitureSearchView: FC = props => diff --git a/src/views/inventory/views/pet/InventoryPetView.tsx b/src/views/inventory/views/pet/InventoryPetView.tsx index 428e4356..5d8d8d90 100644 --- a/src/views/inventory/views/pet/InventoryPetView.tsx +++ b/src/views/inventory/views/pet/InventoryPetView.tsx @@ -1,8 +1,7 @@ import { RequestPetsComposer, RoomObjectVariable } from '@nitrots/nitro-renderer'; import { FC, useEffect } from 'react'; -import { GetRoomEngine } from '../../../../api'; +import { GetRoomEngine, LocalizeText } from '../../../../api'; import { SendMessageHook } from '../../../../hooks/messages/message-event'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import { RoomPreviewerView } from '../../../shared/room-previewer/RoomPreviewerView'; import { attemptPetPlacement } from '../../common/PetUtilities'; import { useInventoryContext } from '../../context/InventoryContext'; diff --git a/src/views/inventory/views/trade/InventoryTradeView.tsx b/src/views/inventory/views/trade/InventoryTradeView.tsx index bf836566..5969daec 100644 --- a/src/views/inventory/views/trade/InventoryTradeView.tsx +++ b/src/views/inventory/views/trade/InventoryTradeView.tsx @@ -1,9 +1,9 @@ import { FurnitureListComposer, IObjectData, TradingAcceptComposer, TradingConfirmationComposer, TradingListAddItemComposer, TradingListAddItemsComposer, TradingListItemRemoveComposer, TradingUnacceptComposer } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useMemo, useState } from 'react'; +import { LocalizeText } from '../../../../api'; import { SendMessageHook } from '../../../../hooks/messages'; import { NitroCardGridItemView } from '../../../../layout/card/grid/item/NitroCardGridItemView'; import { NitroCardGridView } from '../../../../layout/card/grid/NitroCardGridView'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import { FurniCategory } from '../../common/FurniCategory'; import { GroupItem } from '../../common/GroupItem'; import { IFurnitureItem } from '../../common/IFurnitureItem'; diff --git a/src/views/mod-tools/views/chatlog/ModToolsChatlogView.tsx b/src/views/mod-tools/views/chatlog/ModToolsChatlogView.tsx index 238cf10f..c9dc276e 100644 --- a/src/views/mod-tools/views/chatlog/ModToolsChatlogView.tsx +++ b/src/views/mod-tools/views/chatlog/ModToolsChatlogView.tsx @@ -1,6 +1,6 @@ import { ModtoolRequestRoomChatlogComposer, ModtoolRoomChatlogEvent, ModtoolRoomChatlogLine } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; -import { TryVisitRoom } from '../../../../api/navigator/TryVisitRoom'; +import { TryVisitRoom } from '../../../../api'; import { CreateMessageHook, SendMessageHook } from '../../../../hooks/messages'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../layout'; import { ModToolsChatlogViewProps } from './ModToolsChatlogView.types'; diff --git a/src/views/navigator/NavigatorView.tsx b/src/views/navigator/NavigatorView.tsx index 320e1d11..f31fc246 100644 --- a/src/views/navigator/NavigatorView.tsx +++ b/src/views/navigator/NavigatorView.tsx @@ -1,13 +1,11 @@ import { ILinkEventTracker, NavigatorInitComposer, NavigatorSearchComposer, RoomDataParser, RoomSessionEvent } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useMemo, useReducer, useState } from 'react'; -import { AddEventLinkTracker, GoToDesktop, RemoveLinkEventTracker } from '../../api'; -import { TryVisitRoom } from '../../api/navigator/TryVisitRoom'; +import { AddEventLinkTracker, GoToDesktop, LocalizeText, RemoveLinkEventTracker, TryVisitRoom } from '../../api'; import { NavigatorEvent, UpdateDoorStateEvent } from '../../events'; import { useRoomSessionManagerEvent } from '../../hooks/events/nitro/session/room-session-manager-event'; import { useUiEvent } from '../../hooks/events/ui/ui-event'; import { SendMessageHook } from '../../hooks/messages/message-event'; import { NitroCardContentView, NitroCardHeaderView, NitroCardTabsItemView, NitroCardTabsView, NitroCardView } from '../../layout'; -import { LocalizeText } from '../../utils/LocalizeText'; import { NavigatorContextProvider } from './context/NavigatorContext'; import { NavigatorMessageHandler } from './NavigatorMessageHandler'; import { NavigatorViewProps } from './NavigatorView.types'; diff --git a/src/views/navigator/views/creator/NavigatorRoomCreatorView.tsx b/src/views/navigator/views/creator/NavigatorRoomCreatorView.tsx index b1e5ec15..bfc1bb51 100644 --- a/src/views/navigator/views/creator/NavigatorRoomCreatorView.tsx +++ b/src/views/navigator/views/creator/NavigatorRoomCreatorView.tsx @@ -2,9 +2,8 @@ import { HabboClubLevelEnum, RoomCreateComposer } from '@nitrots/nitro-renderer'; import classNames from 'classnames'; import { FC, useCallback, useEffect, useState } from 'react'; -import { GetConfiguration, GetSessionDataManager } from '../../../../api'; +import { GetConfiguration, GetSessionDataManager, LocalizeText } from '../../../../api'; import { SendMessageHook } from '../../../../hooks/messages'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import { CurrencyIcon } from '../../../shared/currency-icon/CurrencyIcon'; import { useNavigatorContext } from '../../context/NavigatorContext'; import { NavigatorRoomCreatorViewProps, NAVIGATOR_ROOM_MODELS } from './NavigatorRoomCreatorView.types'; diff --git a/src/views/navigator/views/room-doorbell/NavigatorRoomDoorbellView.tsx b/src/views/navigator/views/room-doorbell/NavigatorRoomDoorbellView.tsx index 7bb331b6..90b33e02 100644 --- a/src/views/navigator/views/room-doorbell/NavigatorRoomDoorbellView.tsx +++ b/src/views/navigator/views/room-doorbell/NavigatorRoomDoorbellView.tsx @@ -1,8 +1,7 @@ import { FC, useCallback } from 'react'; -import { CreateRoomSession, GoToDesktop } from '../../../../api'; +import { CreateRoomSession, GoToDesktop, LocalizeText } from '../../../../api'; import { UpdateDoorStateEvent } from '../../../../events'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../layout'; -import { LocalizeText } from '../../../../utils'; import { NavigatorRoomDoorbellViewProps } from './NavigatorRoomDoorbellView.types'; export const NavigatorRoomDoorbellView: FC = props => diff --git a/src/views/navigator/views/room-info/NavigatorRoomInfoView.tsx b/src/views/navigator/views/room-info/NavigatorRoomInfoView.tsx index dd990c99..82cbabb1 100644 --- a/src/views/navigator/views/room-info/NavigatorRoomInfoView.tsx +++ b/src/views/navigator/views/room-info/NavigatorRoomInfoView.tsx @@ -1,13 +1,12 @@ import { RoomMuteComposer, RoomSettingsComposer, RoomStaffPickComposer, UserHomeRoomComposer } from '@nitrots/nitro-renderer'; import classNames from 'classnames'; import { FC, useCallback, useEffect, useState } from 'react'; -import { GetConfiguration } from '../../../../api'; +import { GetConfiguration, LocalizeText } from '../../../../api'; import { NavigatorEvent } from '../../../../events'; import { RoomWidgetThumbnailEvent } from '../../../../events/room-widgets/thumbnail'; import { dispatchUiEvent } from '../../../../hooks/events'; import { SendMessageHook } from '../../../../hooks/messages'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../layout'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import { BadgeImageView } from '../../../shared/badge-image/BadgeImageView'; import { useNavigatorContext } from '../../context/NavigatorContext'; import { NavigatorActions } from '../../reducers/NavigatorReducer'; diff --git a/src/views/navigator/views/room-link/NavigatorRoomLinkView.tsx b/src/views/navigator/views/room-link/NavigatorRoomLinkView.tsx index 38850aa7..ad06ffae 100644 --- a/src/views/navigator/views/room-link/NavigatorRoomLinkView.tsx +++ b/src/views/navigator/views/room-link/NavigatorRoomLinkView.tsx @@ -1,7 +1,6 @@ import { FC, useCallback, useEffect, useRef, useState } from 'react'; -import { GetConfiguration, GetNitroInstance } from '../../../../api'; +import { GetConfiguration, GetNitroInstance, LocalizeText } from '../../../../api'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../layout'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import { useNavigatorContext } from '../../context/NavigatorContext'; import { NavigatorRoomLinkViewProps } from './NavigatorRoomLinkView.types'; diff --git a/src/views/navigator/views/room-password/NavigatorRoomPasswordView.tsx b/src/views/navigator/views/room-password/NavigatorRoomPasswordView.tsx index 247d0f71..bad4c45e 100644 --- a/src/views/navigator/views/room-password/NavigatorRoomPasswordView.tsx +++ b/src/views/navigator/views/room-password/NavigatorRoomPasswordView.tsx @@ -1,8 +1,7 @@ import { FC, useCallback, useState } from 'react'; -import { CreateRoomSession } from '../../../../api'; +import { CreateRoomSession, LocalizeText } from '../../../../api'; import { UpdateDoorStateEvent } from '../../../../events'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../layout'; -import { LocalizeText } from '../../../../utils'; import { NavigatorRoomPasswordViewProps } from './NavigatorRoomPasswordView.types'; export const NavigatorRoomPasswordView: FC = props => diff --git a/src/views/navigator/views/room-settings/NavigatorRoomSettingsView.tsx b/src/views/navigator/views/room-settings/NavigatorRoomSettingsView.tsx index a18b6c2f..a8b54271 100644 --- a/src/views/navigator/views/room-settings/NavigatorRoomSettingsView.tsx +++ b/src/views/navigator/views/room-settings/NavigatorRoomSettingsView.tsx @@ -1,8 +1,8 @@ import { RoomSettingsEvent, SaveRoomSettingsComposer } from '@nitrots/nitro-renderer'; import { FC, useCallback, useState } from 'react'; +import { LocalizeText } from '../../../../api'; import { CreateMessageHook, SendMessageHook } from '../../../../hooks/messages'; import { NitroCardContentView, NitroCardHeaderView, NitroCardTabsItemView, NitroCardTabsView, NitroCardView } from '../../../../layout'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import RoomSettingsData from '../../common/RoomSettingsData'; import { NavigatorRoomSettingsAccessTabView } from './views/tab-access/NavigatorRoomSettingsAccessTabView'; import { NavigatorRoomSettingsBasicTabView } from './views/tab-basic/NavigatorRoomSettingsBasicTabView'; diff --git a/src/views/navigator/views/room-settings/views/tab-access/NavigatorRoomSettingsAccessTabView.tsx b/src/views/navigator/views/room-settings/views/tab-access/NavigatorRoomSettingsAccessTabView.tsx index d80cba4e..d4b4944f 100644 --- a/src/views/navigator/views/room-settings/views/tab-access/NavigatorRoomSettingsAccessTabView.tsx +++ b/src/views/navigator/views/room-settings/views/tab-access/NavigatorRoomSettingsAccessTabView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback } from 'react'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../../api'; import RoomSettingsData from '../../../../common/RoomSettingsData'; import { NavigatorRoomSettingsTabViewProps } from '../../NavigatorRoomSettingsView.types'; diff --git a/src/views/navigator/views/room-settings/views/tab-basic/NavigatorRoomSettingsBasicTabView.tsx b/src/views/navigator/views/room-settings/views/tab-basic/NavigatorRoomSettingsBasicTabView.tsx index e63d9b60..bb358297 100644 --- a/src/views/navigator/views/room-settings/views/tab-basic/NavigatorRoomSettingsBasicTabView.tsx +++ b/src/views/navigator/views/room-settings/views/tab-basic/NavigatorRoomSettingsBasicTabView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useState } from 'react'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../../api'; import { GetMaxVisitorsList } from '../../../../common/RoomSettingsUtils'; import { useNavigatorContext } from '../../../../context/NavigatorContext'; import { NavigatorRoomSettingsTabViewProps } from '../../NavigatorRoomSettingsView.types'; diff --git a/src/views/navigator/views/search-result-item/NavigatorSearchResultItemView.tsx b/src/views/navigator/views/search-result-item/NavigatorSearchResultItemView.tsx index 4411adf0..a6602ae5 100644 --- a/src/views/navigator/views/search-result-item/NavigatorSearchResultItemView.tsx +++ b/src/views/navigator/views/search-result-item/NavigatorSearchResultItemView.tsx @@ -1,8 +1,7 @@ import { RoomDataParser } from '@nitrots/nitro-renderer'; import classNames from 'classnames'; import { FC, MouseEvent } from 'react'; -import { CreateRoomSession, GetSessionDataManager } from '../../../../api'; -import { TryVisitRoom } from '../../../../api/navigator/TryVisitRoom'; +import { CreateRoomSession, GetSessionDataManager, TryVisitRoom } from '../../../../api'; import { UpdateDoorStateEvent } from '../../../../events'; import { dispatchUiEvent } from '../../../../hooks'; import { NavigatorSearchResultItemViewProps } from './NavigatorSearchResultItemView.types'; diff --git a/src/views/navigator/views/search-result/NavigatorSearchResultView.tsx b/src/views/navigator/views/search-result/NavigatorSearchResultView.tsx index 6d06e629..689b9983 100644 --- a/src/views/navigator/views/search-result/NavigatorSearchResultView.tsx +++ b/src/views/navigator/views/search-result/NavigatorSearchResultView.tsx @@ -1,6 +1,6 @@ import classNames from 'classnames'; import { FC, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../api'; import { NavigatorSearchResultItemView } from '../search-result-item/NavigatorSearchResultItemView'; import { NavigatorSearchResultViewDisplayMode, NavigatorSearchResultViewProps } from './NavigatorSearchResultView.types'; diff --git a/src/views/navigator/views/search/NavigatorSearchView.tsx b/src/views/navigator/views/search/NavigatorSearchView.tsx index 3224df54..2a5dd215 100644 --- a/src/views/navigator/views/search/NavigatorSearchView.tsx +++ b/src/views/navigator/views/search/NavigatorSearchView.tsx @@ -1,5 +1,5 @@ import React, { FC, KeyboardEvent, useCallback, useState } from 'react'; -import { LocalizeText } from '../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../api'; import { useNavigatorContext } from '../../context/NavigatorContext'; import { NavigatorSearchViewProps, SearchFilterOptions } from './NavigatorSearchView.types'; diff --git a/src/views/notification-center/views/alert-base/NotificationCenterAlertBase.tsx b/src/views/notification-center/views/alert-base/NotificationCenterAlertBase.tsx index 41fa0ea8..e071e39b 100644 --- a/src/views/notification-center/views/alert-base/NotificationCenterAlertBase.tsx +++ b/src/views/notification-center/views/alert-base/NotificationCenterAlertBase.tsx @@ -1,6 +1,6 @@ import { FC } from 'react'; +import { LocalizeText } from '../../../../api'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../layout'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import { NotificationCenterAlertBaseProps } from './NotificationCenterAlertBase.types'; diff --git a/src/views/notification-center/views/broadcast-message/NotificationCenterBroadcastMessageView.tsx b/src/views/notification-center/views/broadcast-message/NotificationCenterBroadcastMessageView.tsx index a71cc07c..04908525 100644 --- a/src/views/notification-center/views/broadcast-message/NotificationCenterBroadcastMessageView.tsx +++ b/src/views/notification-center/views/broadcast-message/NotificationCenterBroadcastMessageView.tsx @@ -1,5 +1,5 @@ import { FC, useMemo } from 'react'; -import { LocalizeText } from '../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../api'; import { NotificationCenterAlertBase } from '../alert-base/NotificationCenterAlertBase'; import { NotificationCenterBroadcastMessageViewProps } from './NotificationCenterBroadcastMessageView.types'; diff --git a/src/views/notification-center/views/hotel-will-shutdown/HotelWillShutdownView.tsx b/src/views/notification-center/views/hotel-will-shutdown/HotelWillShutdownView.tsx index c91efed8..650de0e4 100644 --- a/src/views/notification-center/views/hotel-will-shutdown/HotelWillShutdownView.tsx +++ b/src/views/notification-center/views/hotel-will-shutdown/HotelWillShutdownView.tsx @@ -1,6 +1,6 @@ import { FC } from 'react'; +import { LocalizeText } from '../../../../api'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../layout'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import { NotificationTrayItemView } from '../tray-item/NotificationTrayItemView'; import { HotelWillShutdownViewProps } from './HotelWillShutdownView.types'; diff --git a/src/views/notification-center/views/moderator-message/ModeratorMessageView.tsx b/src/views/notification-center/views/moderator-message/ModeratorMessageView.tsx index 56d9bb3a..341d31ea 100644 --- a/src/views/notification-center/views/moderator-message/ModeratorMessageView.tsx +++ b/src/views/notification-center/views/moderator-message/ModeratorMessageView.tsx @@ -1,6 +1,6 @@ import { FC } from 'react'; +import { LocalizeText } from '../../../../api'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../layout'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import { NotificationTrayItemView } from '../tray-item/NotificationTrayItemView'; import { ModeratorMessageViewProps } from './ModeratorMessageView.types'; diff --git a/src/views/purse/PurseView.tsx b/src/views/purse/PurseView.tsx index 6737f28a..3f202e03 100644 --- a/src/views/purse/PurseView.tsx +++ b/src/views/purse/PurseView.tsx @@ -1,10 +1,9 @@ import { FriendlyTime, HabboClubLevelEnum, UserCurrencyComposer, UserSubscriptionComposer } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useMemo, useState } from 'react'; -import { GetConfiguration } from '../../api'; +import { GetConfiguration, LocalizeText } from '../../api'; import { UserSettingsUIEvent } from '../../events/user-settings/UserSettingsUIEvent'; import { dispatchUiEvent } from '../../hooks'; import { SendMessageHook } from '../../hooks/messages/message-event'; -import { LocalizeText } from '../../utils/LocalizeText'; import { CurrencyIcon } from '../shared/currency-icon/CurrencyIcon'; import { IPurse } from './common/IPurse'; import { Purse } from './common/Purse'; diff --git a/src/views/purse/views/currency/CurrencyView.tsx b/src/views/purse/views/currency/CurrencyView.tsx index 32c06007..63783a42 100644 --- a/src/views/purse/views/currency/CurrencyView.tsx +++ b/src/views/purse/views/currency/CurrencyView.tsx @@ -1,6 +1,6 @@ import { FC } from 'react'; import { OverlayTrigger, Tooltip } from 'react-bootstrap'; -import { LocalizeShortNumber } from '../../../../utils/LocalizeShortNumber'; +import { LocalizeShortNumber } from '../../../../api'; import { CurrencyIcon } from '../../../shared/currency-icon/CurrencyIcon'; import { CurrencyViewProps } from './CurrencyView.types'; diff --git a/src/views/purse/views/seasonal/SeasonalView.tsx b/src/views/purse/views/seasonal/SeasonalView.tsx index 4bad9ab5..1dbc4a20 100644 --- a/src/views/purse/views/seasonal/SeasonalView.tsx +++ b/src/views/purse/views/seasonal/SeasonalView.tsx @@ -1,6 +1,5 @@ import { FC } from 'react'; -import { LocalizeShortNumber } from '../../../../utils/LocalizeShortNumber'; -import { LocalizeText } from '../../../../utils/LocalizeText'; +import { LocalizeShortNumber, LocalizeText } from '../../../../api'; import { CurrencyIcon } from '../../../shared/currency-icon/CurrencyIcon'; import { SeasonalViewProps } from './SeasonalView.types'; diff --git a/src/views/room-host/RoomHostView.tsx b/src/views/room-host/RoomHostView.tsx index c566ad88..14211d80 100644 --- a/src/views/room-host/RoomHostView.tsx +++ b/src/views/room-host/RoomHostView.tsx @@ -1,8 +1,6 @@ import { IRoomSession, RoomEngineEvent, RoomId, RoomSessionEvent } from '@nitrots/nitro-renderer'; import { FC, useCallback, useState } from 'react'; -import { SetActiveRoomId } from '../../api/nitro/room/SetActiveRoomId'; -import { GetRoomSession } from '../../api/nitro/session/GetRoomSession'; -import { StartRoomSession } from '../../api/nitro/session/StartRoomSession'; +import { GetRoomSession, SetActiveRoomId, StartRoomSession } from '../../api'; import { useRoomEngineEvent } from '../../hooks/events/nitro/room/room-engine-event'; import { useRoomSessionManagerEvent } from '../../hooks/events/nitro/session/room-session-manager-event'; import { RoomView } from '../room/RoomView'; diff --git a/src/views/room/RoomColorView.tsx b/src/views/room/RoomColorView.tsx index 8c9e6eed..b3201b7c 100644 --- a/src/views/room/RoomColorView.tsx +++ b/src/views/room/RoomColorView.tsx @@ -1,11 +1,9 @@ import { ColorConverter, NitroAdjustmentFilter, NitroContainer, NitroSprite, NitroTexture, RoomBackgroundColorEvent, RoomEngineEvent, RoomId, RoomObjectHSLColorEnabledEvent } from '@nitrots/nitro-renderer'; import { FC, useCallback, useState } from 'react'; -import { GetNitroInstance, GetRoomEngine } from '../../api'; +import { GetNitroInstance, GetRoomEngine, RoomWidgetUpdateBackgroundColorPreviewEvent, RoomWidgetUpdateRoomViewEvent } from '../../api'; import { UseMountEffect } from '../../hooks'; import { CreateEventDispatcherHook, useRoomEngineEvent } from '../../hooks/events'; import { useRoomContext } from './context/RoomContext'; -import { RoomWidgetUpdateBackgroundColorPreviewEvent } from './events'; -import { RoomWidgetUpdateRoomViewEvent } from './events/RoomWidgetUpdateRoomViewEvent'; export const RoomColorView: FC<{}> = props => { diff --git a/src/views/room/RoomView.tsx b/src/views/room/RoomView.tsx index e0af8bfd..882d7a76 100644 --- a/src/views/room/RoomView.tsx +++ b/src/views/room/RoomView.tsx @@ -1,19 +1,7 @@ import { EventDispatcher, NitroRectangle, RoomGeometry, RoomVariableEnum, Vector3d } from '@nitrots/nitro-renderer'; import { FC, useEffect, useRef, useState } from 'react'; -import { GetNitroInstance, InitializeRoomInstanceRenderingCanvas } from '../../api'; -import { DispatchMouseEvent } from '../../api/nitro/room/DispatchMouseEvent'; -import { DispatchTouchEvent } from '../../api/nitro/room/DispatchTouchEvent'; -import { GetRoomEngine } from '../../api/nitro/room/GetRoomEngine'; +import { DispatchMouseEvent, DispatchTouchEvent, DoorbellWidgetHandler, FurniChooserWidgetHandler, FurnitureContextMenuWidgetHandler, FurnitureCustomStackHeightWidgetHandler, FurnitureExternalImageWidgetHandler, GetNitroInstance, GetRoomEngine, InitializeRoomInstanceRenderingCanvas, IRoomWidgetHandlerManager, RoomWidgetAvatarInfoHandler, RoomWidgetChatHandler, RoomWidgetChatInputHandler, RoomWidgetHandlerManager, RoomWidgetInfostandHandler, RoomWidgetRoomToolsHandler, RoomWidgetUpdateRoomViewEvent, UserChooserWidgetHandler } from '../../api'; import { RoomContextProvider } from './context/RoomContext'; -import { RoomWidgetUpdateRoomViewEvent } from './events/RoomWidgetUpdateRoomViewEvent'; -import { IRoomWidgetHandlerManager, RoomWidgetAvatarInfoHandler, RoomWidgetChatHandler, RoomWidgetChatInputHandler, RoomWidgetHandlerManager, RoomWidgetInfostandHandler } from './handlers'; -import { DoorbellWidgetHandler } from './handlers/DoorbellWidgetHandler'; -import { FurniChooserWidgetHandler } from './handlers/FurniChooserWidgetHandler'; -import { FurnitureContextMenuWidgetHandler } from './handlers/FurnitureContextMenuWidgetHandler'; -import { FurnitureCustomStackHeightWidgetHandler } from './handlers/FurnitureCustomStackHeightWidgetHandler'; -import { FurnitureExternalImageWidgetHandler } from './handlers/FurnitureExternalImageWidgetHandler'; -import { RoomWidgetRoomToolsHandler } from './handlers/RoomWidgetRoomToolsHandler'; -import { UserChooserWidgetHandler } from './handlers/UserChooserWidgetHandler'; import { RoomColorView } from './RoomColorView'; import { RoomViewProps } from './RoomView.types'; import { RoomWidgetsView } from './widgets/RoomWidgetsView'; diff --git a/src/views/room/context/RoomContext.types.ts b/src/views/room/context/RoomContext.types.ts index 36ec0b92..d37a6546 100644 --- a/src/views/room/context/RoomContext.types.ts +++ b/src/views/room/context/RoomContext.types.ts @@ -1,6 +1,6 @@ import { IEventDispatcher, IRoomSession } from '@nitrots/nitro-renderer'; import { ProviderProps } from 'react'; -import { IRoomWidgetHandlerManager } from '../handlers'; +import { IRoomWidgetHandlerManager } from '../../../api'; export interface IRoomContext { diff --git a/src/views/room/widgets/RoomWidgetsView.tsx b/src/views/room/widgets/RoomWidgetsView.tsx index 1508aa6e..713ae9f7 100644 --- a/src/views/room/widgets/RoomWidgetsView.tsx +++ b/src/views/room/widgets/RoomWidgetsView.tsx @@ -1,10 +1,8 @@ import { RoomEngineDimmerStateEvent, RoomEngineEvent, RoomEngineObjectEvent, RoomEngineTriggerWidgetEvent, RoomEngineUseProductEvent, RoomId, RoomObjectCategory, RoomObjectOperationType, RoomSessionChatEvent, RoomSessionDanceEvent, RoomSessionDimmerPresetsEvent, RoomSessionDoorbellEvent, RoomSessionErrorMessageEvent, RoomSessionEvent, RoomSessionFriendRequestEvent, RoomSessionPetInfoUpdateEvent, RoomSessionPresentEvent, RoomSessionUserBadgesEvent, RoomZoomEvent } from '@nitrots/nitro-renderer'; import { FC, useCallback } from 'react'; -import { CanManipulateFurniture, GetRoomEngine, IsFurnitureSelectionDisabled, ProcessRoomObjectOperation } from '../../../api'; +import { CanManipulateFurniture, GetRoomEngine, IsFurnitureSelectionDisabled, LocalizeText, ProcessRoomObjectOperation, RoomWidgetRoomEngineUpdateEvent, RoomWidgetRoomObjectUpdateEvent } from '../../../api'; import { useRoomEngineEvent, useRoomSessionManagerEvent } from '../../../hooks/events'; -import { LocalizeText } from '../../../utils/LocalizeText'; import { useRoomContext } from '../context/RoomContext'; -import { RoomWidgetRoomEngineUpdateEvent, RoomWidgetRoomObjectUpdateEvent } from '../events'; import { AvatarInfoWidgetView } from './avatar-info/AvatarInfoWidgetView'; import { CameraWidgetView } from './camera/CameraWidgetView'; import { ChatInputView } from './chat-input/ChatInputView'; diff --git a/src/views/room/widgets/avatar-info/AvatarInfoWidgetView.tsx b/src/views/room/widgets/avatar-info/AvatarInfoWidgetView.tsx index 4ee3a60d..47bf9416 100644 --- a/src/views/room/widgets/avatar-info/AvatarInfoWidgetView.tsx +++ b/src/views/room/widgets/avatar-info/AvatarInfoWidgetView.tsx @@ -1,12 +1,10 @@ import { RoomEnterEffect, RoomObjectCategory } from '@nitrots/nitro-renderer'; import { FC, useCallback, useMemo, useState } from 'react'; -import { GetRoomSession, GetSessionDataManager } from '../../../../api'; +import { GetRoomSession, GetSessionDataManager, RoomWidgetObjectNameEvent, RoomWidgetRoomEngineUpdateEvent, RoomWidgetRoomObjectMessage, RoomWidgetRoomObjectUpdateEvent, RoomWidgetUpdateDanceStatusEvent, RoomWidgetUpdateInfostandEvent, RoomWidgetUpdateInfostandFurniEvent, RoomWidgetUpdateInfostandPetEvent, RoomWidgetUpdateInfostandRentableBotEvent, RoomWidgetUpdateInfostandUserEvent, RoomWidgetUpdateRentableBotChatEvent, RoomWidgetUseProductBubbleEvent, UseProductItem } from '../../../../api'; import { FriendEnteredRoomEvent } from '../../../../events'; import { useUiEvent } from '../../../../hooks/events'; import { CreateEventDispatcherHook } from '../../../../hooks/events/event-dispatcher.base'; import { useRoomContext } from '../../context/RoomContext'; -import { RoomWidgetObjectNameEvent, RoomWidgetRoomEngineUpdateEvent, RoomWidgetRoomObjectUpdateEvent, RoomWidgetUpdateDanceStatusEvent, RoomWidgetUpdateInfostandEvent, RoomWidgetUpdateInfostandFurniEvent, RoomWidgetUpdateInfostandPetEvent, RoomWidgetUpdateInfostandRentableBotEvent, RoomWidgetUpdateInfostandUserEvent, RoomWidgetUpdateRentableBotChatEvent, RoomWidgetUseProductBubbleEvent, UseProductItem } from '../../events'; -import { RoomWidgetRoomObjectMessage } from '../../messages'; import { AvatarInfoWidgetAvatarView } from './views/avatar/AvatarInfoWidgetAvatarView'; import { AvatarInfoWidgetDecorateView } from './views/decorate/AvatarInfoWidgetDecorateView'; import { AvatarInfoWidgetNameView } from './views/name/AvatarInfoWidgetNameView'; diff --git a/src/views/room/widgets/avatar-info/views/avatar/AvatarInfoWidgetAvatarView.tsx b/src/views/room/widgets/avatar-info/views/avatar/AvatarInfoWidgetAvatarView.tsx index 9d1871ed..25266e60 100644 --- a/src/views/room/widgets/avatar-info/views/avatar/AvatarInfoWidgetAvatarView.tsx +++ b/src/views/room/widgets/avatar-info/views/avatar/AvatarInfoWidgetAvatarView.tsx @@ -1,9 +1,7 @@ import { RoomControllerLevel, RoomObjectCategory, RoomObjectVariable } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useMemo, useState } from 'react'; -import { GetOwnRoomObject } from '../../../../../../api'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; +import { GetOwnRoomObject, LocalizeText, RoomWidgetMessage, RoomWidgetUserActionMessage } from '../../../../../../api'; import { useRoomContext } from '../../../../context/RoomContext'; -import { RoomWidgetMessage, RoomWidgetUserActionMessage } from '../../../../messages'; import { ContextMenuView } from '../../../context-menu/ContextMenuView'; import { ContextMenuHeaderView } from '../../../context-menu/views/header/ContextMenuHeaderView'; import { ContextMenuListItemView } from '../../../context-menu/views/list-item/ContextMenuListItemView'; diff --git a/src/views/room/widgets/avatar-info/views/avatar/AvatarInfoWidgetAvatarView.types.ts b/src/views/room/widgets/avatar-info/views/avatar/AvatarInfoWidgetAvatarView.types.ts index ade7a285..4533b9fb 100644 --- a/src/views/room/widgets/avatar-info/views/avatar/AvatarInfoWidgetAvatarView.types.ts +++ b/src/views/room/widgets/avatar-info/views/avatar/AvatarInfoWidgetAvatarView.types.ts @@ -1,4 +1,4 @@ -import { RoomWidgetUpdateInfostandUserEvent } from '../../../../events'; +import { RoomWidgetUpdateInfostandUserEvent } from '../../../../../../api'; export interface AvatarInfoWidgetAvatarViewProps { diff --git a/src/views/room/widgets/avatar-info/views/decorate/AvatarInfoWidgetDecorateView.tsx b/src/views/room/widgets/avatar-info/views/decorate/AvatarInfoWidgetDecorateView.tsx index 0a4364f9..5a365394 100644 --- a/src/views/room/widgets/avatar-info/views/decorate/AvatarInfoWidgetDecorateView.tsx +++ b/src/views/room/widgets/avatar-info/views/decorate/AvatarInfoWidgetDecorateView.tsx @@ -1,6 +1,6 @@ import { RoomObjectCategory } from '@nitrots/nitro-renderer'; import { FC } from 'react'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../../api'; import { ContextMenuView } from '../../../context-menu/ContextMenuView'; import { ContextMenuListItemView } from '../../../context-menu/views/list-item/ContextMenuListItemView'; import { ContextMenuListView } from '../../../context-menu/views/list/ContextMenuListView'; diff --git a/src/views/room/widgets/avatar-info/views/name/AvatarInfoWidgetNameView.types.ts b/src/views/room/widgets/avatar-info/views/name/AvatarInfoWidgetNameView.types.ts index f20941fa..f99c0426 100644 --- a/src/views/room/widgets/avatar-info/views/name/AvatarInfoWidgetNameView.types.ts +++ b/src/views/room/widgets/avatar-info/views/name/AvatarInfoWidgetNameView.types.ts @@ -1,4 +1,4 @@ -import { RoomWidgetObjectNameEvent } from '../../../../events'; +import { RoomWidgetObjectNameEvent } from '../../../../../../api'; export interface AvatarInfoWidgetNameViewProps { diff --git a/src/views/room/widgets/avatar-info/views/own-avatar/AvatarInfoWidgetOwnAvatarView.tsx b/src/views/room/widgets/avatar-info/views/own-avatar/AvatarInfoWidgetOwnAvatarView.tsx index 077f9e6c..06faeb8e 100644 --- a/src/views/room/widgets/avatar-info/views/own-avatar/AvatarInfoWidgetOwnAvatarView.tsx +++ b/src/views/room/widgets/avatar-info/views/own-avatar/AvatarInfoWidgetOwnAvatarView.tsx @@ -1,12 +1,10 @@ import { AvatarAction, AvatarExpressionEnum, RoomObjectCategory } from '@nitrots/nitro-renderer'; import { FC, useCallback, useState } from 'react'; -import { GetCanStandUp, GetCanUseExpression, GetOwnPosture, HasHabboClub, HasHabboVip, IsRidingHorse } from '../../../../../../api'; +import { GetCanStandUp, GetCanUseExpression, GetOwnPosture, HasHabboClub, HasHabboVip, IsRidingHorse, LocalizeText, RoomWidgetAvatarExpressionMessage, RoomWidgetChangePostureMessage, RoomWidgetDanceMessage, RoomWidgetMessage, RoomWidgetUserActionMessage } from '../../../../../../api'; import { AvatarEditorEvent } from '../../../../../../events'; import { dispatchUiEvent } from '../../../../../../hooks'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; import { CurrencyIcon } from '../../../../../shared/currency-icon/CurrencyIcon'; import { useRoomContext } from '../../../../context/RoomContext'; -import { RoomWidgetAvatarExpressionMessage, RoomWidgetChangePostureMessage, RoomWidgetDanceMessage, RoomWidgetMessage, RoomWidgetUserActionMessage } from '../../../../messages'; import { ContextMenuView } from '../../../context-menu/ContextMenuView'; import { ContextMenuHeaderView } from '../../../context-menu/views/header/ContextMenuHeaderView'; import { ContextMenuListItemView } from '../../../context-menu/views/list-item/ContextMenuListItemView'; diff --git a/src/views/room/widgets/avatar-info/views/own-avatar/AvatarInfoWidgetOwnAvatarView.types.ts b/src/views/room/widgets/avatar-info/views/own-avatar/AvatarInfoWidgetOwnAvatarView.types.ts index aed1cde2..e462efa6 100644 --- a/src/views/room/widgets/avatar-info/views/own-avatar/AvatarInfoWidgetOwnAvatarView.types.ts +++ b/src/views/room/widgets/avatar-info/views/own-avatar/AvatarInfoWidgetOwnAvatarView.types.ts @@ -1,5 +1,5 @@ import { Dispatch, SetStateAction } from 'react'; -import { RoomWidgetUpdateInfostandUserEvent } from '../../../../events'; +import { RoomWidgetUpdateInfostandUserEvent } from '../../../../../../api'; export interface AvatarInfoWidgetOwnAvatarViewProps { diff --git a/src/views/room/widgets/avatar-info/views/own-pet/AvatarInfoWidgetOwnPetView.tsx b/src/views/room/widgets/avatar-info/views/own-pet/AvatarInfoWidgetOwnPetView.tsx index bfec7806..6a7a22cf 100644 --- a/src/views/room/widgets/avatar-info/views/own-pet/AvatarInfoWidgetOwnPetView.tsx +++ b/src/views/room/widgets/avatar-info/views/own-pet/AvatarInfoWidgetOwnPetView.tsx @@ -1,9 +1,7 @@ import { PetType, RoomObjectCategory, RoomObjectType, RoomObjectVariable } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useMemo, useState } from 'react'; -import { GetOwnRoomObject } from '../../../../../../api'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; +import { GetOwnRoomObject, LocalizeText, RoomWidgetMessage, RoomWidgetUserActionMessage } from '../../../../../../api'; import { useRoomContext } from '../../../../context/RoomContext'; -import { RoomWidgetMessage, RoomWidgetUserActionMessage } from '../../../../messages'; import { ContextMenuView } from '../../../context-menu/ContextMenuView'; import { ContextMenuHeaderView } from '../../../context-menu/views/header/ContextMenuHeaderView'; import { ContextMenuListItemView } from '../../../context-menu/views/list-item/ContextMenuListItemView'; diff --git a/src/views/room/widgets/avatar-info/views/own-pet/AvatarInfoWidgetOwnPetView.types.ts b/src/views/room/widgets/avatar-info/views/own-pet/AvatarInfoWidgetOwnPetView.types.ts index cd9cf18e..90badc4c 100644 --- a/src/views/room/widgets/avatar-info/views/own-pet/AvatarInfoWidgetOwnPetView.types.ts +++ b/src/views/room/widgets/avatar-info/views/own-pet/AvatarInfoWidgetOwnPetView.types.ts @@ -1,4 +1,4 @@ -import { RoomWidgetUpdateInfostandPetEvent } from '../../../../events'; +import { RoomWidgetUpdateInfostandPetEvent } from '../../../../../../api'; export interface AvatarInfoWidgetOwnPetViewProps { diff --git a/src/views/room/widgets/avatar-info/views/pet/AvatarInfoWidgetPetView.tsx b/src/views/room/widgets/avatar-info/views/pet/AvatarInfoWidgetPetView.tsx index 82207e22..fdcd9ff1 100644 --- a/src/views/room/widgets/avatar-info/views/pet/AvatarInfoWidgetPetView.tsx +++ b/src/views/room/widgets/avatar-info/views/pet/AvatarInfoWidgetPetView.tsx @@ -1,9 +1,7 @@ import { PetType, RoomControllerLevel, RoomObjectCategory, RoomObjectType, RoomObjectVariable } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useMemo, useState } from 'react'; -import { GetOwnRoomObject, GetSessionDataManager } from '../../../../../../api'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; +import { GetOwnRoomObject, GetSessionDataManager, LocalizeText, RoomWidgetMessage, RoomWidgetUserActionMessage } from '../../../../../../api'; import { useRoomContext } from '../../../../context/RoomContext'; -import { RoomWidgetMessage, RoomWidgetUserActionMessage } from '../../../../messages'; import { ContextMenuView } from '../../../context-menu/ContextMenuView'; import { ContextMenuHeaderView } from '../../../context-menu/views/header/ContextMenuHeaderView'; import { ContextMenuListItemView } from '../../../context-menu/views/list-item/ContextMenuListItemView'; diff --git a/src/views/room/widgets/avatar-info/views/pet/AvatarInfoWidgetPetView.types.ts b/src/views/room/widgets/avatar-info/views/pet/AvatarInfoWidgetPetView.types.ts index c07ecf15..cfe73cb3 100644 --- a/src/views/room/widgets/avatar-info/views/pet/AvatarInfoWidgetPetView.types.ts +++ b/src/views/room/widgets/avatar-info/views/pet/AvatarInfoWidgetPetView.types.ts @@ -1,4 +1,4 @@ -import { RoomWidgetUpdateInfostandPetEvent } from '../../../../events'; +import { RoomWidgetUpdateInfostandPetEvent } from '../../../../../../api'; export interface AvatarInfoWidgetPetViewProps { diff --git a/src/views/room/widgets/avatar-info/views/rentable-bot-chat/AvatarInfoRentableBotChatView.types.ts b/src/views/room/widgets/avatar-info/views/rentable-bot-chat/AvatarInfoRentableBotChatView.types.ts index dedd2644..9d37a5b7 100644 --- a/src/views/room/widgets/avatar-info/views/rentable-bot-chat/AvatarInfoRentableBotChatView.types.ts +++ b/src/views/room/widgets/avatar-info/views/rentable-bot-chat/AvatarInfoRentableBotChatView.types.ts @@ -1,4 +1,4 @@ -import { RoomWidgetUpdateRentableBotChatEvent } from '../../../../events'; +import { RoomWidgetUpdateRentableBotChatEvent } from '../../../../../../api'; export interface AvatarInfoRentableBotChatViewProps { diff --git a/src/views/room/widgets/avatar-info/views/rentable-bot/AvatarInfoWidgetRentableBotView.tsx b/src/views/room/widgets/avatar-info/views/rentable-bot/AvatarInfoWidgetRentableBotView.tsx index 2384db0f..ecbe9c1a 100644 --- a/src/views/room/widgets/avatar-info/views/rentable-bot/AvatarInfoWidgetRentableBotView.tsx +++ b/src/views/room/widgets/avatar-info/views/rentable-bot/AvatarInfoWidgetRentableBotView.tsx @@ -1,10 +1,8 @@ import { BotCommandConfigurationEvent, BotRemoveComposer, BotSkillSaveComposer, RequestBotCommandConfigurationComposer, RoomObjectCategory, RoomObjectType } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; -import { GetNitroInstance } from '../../../../../../api'; +import { GetNitroInstance, LocalizeText, RoomWidgetUpdateRentableBotChatEvent } from '../../../../../../api'; import { CreateMessageHook, SendMessageHook } from '../../../../../../hooks/messages'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; import { useRoomContext } from '../../../../context/RoomContext'; -import { RoomWidgetUpdateRentableBotChatEvent } from '../../../../events'; import { ContextMenuView } from '../../../context-menu/ContextMenuView'; import { ContextMenuHeaderView } from '../../../context-menu/views/header/ContextMenuHeaderView'; import { ContextMenuListItemView } from '../../../context-menu/views/list-item/ContextMenuListItemView'; diff --git a/src/views/room/widgets/avatar-info/views/rentable-bot/AvatarInfoWidgetRentableBotView.types.ts b/src/views/room/widgets/avatar-info/views/rentable-bot/AvatarInfoWidgetRentableBotView.types.ts index 7bfba45b..cedb2d4a 100644 --- a/src/views/room/widgets/avatar-info/views/rentable-bot/AvatarInfoWidgetRentableBotView.types.ts +++ b/src/views/room/widgets/avatar-info/views/rentable-bot/AvatarInfoWidgetRentableBotView.types.ts @@ -1,4 +1,4 @@ -import { RoomWidgetUpdateInfostandRentableBotEvent } from '../../../../events'; +import { RoomWidgetUpdateInfostandRentableBotEvent } from '../../../../../../api'; export interface AvatarInfoWidgetRentableBotViewProps { diff --git a/src/views/room/widgets/avatar-info/views/use-product-confirm/AvatarInfoUseProductConfirmView.tsx b/src/views/room/widgets/avatar-info/views/use-product-confirm/AvatarInfoUseProductConfirmView.tsx index a2613ccb..939ce7ad 100644 --- a/src/views/room/widgets/avatar-info/views/use-product-confirm/AvatarInfoUseProductConfirmView.tsx +++ b/src/views/room/widgets/avatar-info/views/use-product-confirm/AvatarInfoUseProductConfirmView.tsx @@ -1,12 +1,10 @@ import { IFurnitureData, PetCustomPart, PetFigureData, RoomObjectCategory, RoomObjectVariable, RoomUserData } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useMemo, useState } from 'react'; -import { GetFurnitureDataForRoomObject, GetRoomEngine } from '../../../../../../api'; +import { GetFurnitureDataForRoomObject, GetRoomEngine, LocalizeText, RoomWidgetUseProductMessage } from '../../../../../../api'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../../../layout'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; import { FurniCategory } from '../../../../../inventory/common/FurniCategory'; import { PetImageView } from '../../../../../shared/pet-image/PetImageView'; import { useRoomContext } from '../../../../context/RoomContext'; -import { RoomWidgetUseProductMessage } from '../../../../messages'; import { AvatarInfoUseProductConfirmViewProps } from './AvatarInfoUseProductConfirmView.types'; const _Str_5091: number = -1; diff --git a/src/views/room/widgets/avatar-info/views/use-product-confirm/AvatarInfoUseProductConfirmView.types.ts b/src/views/room/widgets/avatar-info/views/use-product-confirm/AvatarInfoUseProductConfirmView.types.ts index 8f1c3ad3..9cae4f3f 100644 --- a/src/views/room/widgets/avatar-info/views/use-product-confirm/AvatarInfoUseProductConfirmView.types.ts +++ b/src/views/room/widgets/avatar-info/views/use-product-confirm/AvatarInfoUseProductConfirmView.types.ts @@ -1,4 +1,4 @@ -import { UseProductItem } from '../../../../events'; +import { UseProductItem } from '../../../../../../api'; export interface AvatarInfoUseProductConfirmViewProps { diff --git a/src/views/room/widgets/avatar-info/views/use-product/AvatarInfoUseProductView.tsx b/src/views/room/widgets/avatar-info/views/use-product/AvatarInfoUseProductView.tsx index 2a3328c2..4752a889 100644 --- a/src/views/room/widgets/avatar-info/views/use-product/AvatarInfoUseProductView.tsx +++ b/src/views/room/widgets/avatar-info/views/use-product/AvatarInfoUseProductView.tsx @@ -1,7 +1,6 @@ import { RoomObjectCategory, RoomObjectType } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; -import { GetFurnitureDataForRoomObject } from '../../../../../../api'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; +import { GetFurnitureDataForRoomObject, LocalizeText } from '../../../../../../api'; import { FurniCategory } from '../../../../../inventory/common/FurniCategory'; import { useRoomContext } from '../../../../context/RoomContext'; import { ContextMenuView } from '../../../context-menu/ContextMenuView'; diff --git a/src/views/room/widgets/avatar-info/views/use-product/AvatarInfoUseProductView.types.ts b/src/views/room/widgets/avatar-info/views/use-product/AvatarInfoUseProductView.types.ts index f759da68..b242e789 100644 --- a/src/views/room/widgets/avatar-info/views/use-product/AvatarInfoUseProductView.types.ts +++ b/src/views/room/widgets/avatar-info/views/use-product/AvatarInfoUseProductView.types.ts @@ -1,4 +1,4 @@ -import { UseProductItem } from '../../../../events'; +import { UseProductItem } from '../../../../../../api'; export interface AvatarInfoUseProductViewProps { diff --git a/src/views/room/widgets/camera/views/capture/CameraWidgetCaptureView.tsx b/src/views/room/widgets/camera/views/capture/CameraWidgetCaptureView.tsx index 9bef1dad..f8537813 100644 --- a/src/views/room/widgets/camera/views/capture/CameraWidgetCaptureView.tsx +++ b/src/views/room/widgets/camera/views/capture/CameraWidgetCaptureView.tsx @@ -1,8 +1,7 @@ import { NitroRectangle, TextureUtils } from '@nitrots/nitro-renderer'; import { FC, useCallback, useRef } from 'react'; -import { GetRoomEngine, GetRoomSession } from '../../../../../../api'; +import { GetRoomEngine, GetRoomSession, LocalizeText } from '../../../../../../api'; import { DraggableWindow } from '../../../../../../layout/draggable-window/DraggableWindow'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; import { CameraPicture } from '../../common/CameraPicture'; import { useCameraWidgetContext } from '../../context/CameraWidgetContext'; import { CameraWidgetCaptureViewProps } from './CameraWidgetCaptureView.types'; diff --git a/src/views/room/widgets/camera/views/checkout/CameraWidgetCheckoutView.tsx b/src/views/room/widgets/camera/views/checkout/CameraWidgetCheckoutView.tsx index 66d5f7d4..d0a26f4b 100644 --- a/src/views/room/widgets/camera/views/checkout/CameraWidgetCheckoutView.tsx +++ b/src/views/room/widgets/camera/views/checkout/CameraWidgetCheckoutView.tsx @@ -1,9 +1,8 @@ import { CameraPublishStatusMessageEvent, CameraPurchaseOKMessageEvent, CameraStorageUrlMessageEvent, PublishPhotoMessageComposer, PurchasePhotoMessageComposer } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; -import { GetConfiguration, GetRoomEngine } from '../../../../../../api'; +import { GetConfiguration, GetRoomEngine, LocalizeText } from '../../../../../../api'; import { CreateMessageHook, SendMessageHook } from '../../../../../../hooks/messages/message-event'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../../../layout'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; import { CurrencyIcon } from '../../../../../shared/currency-icon/CurrencyIcon'; import { CameraWidgetCheckoutViewProps } from './CameraWidgetCheckoutView.types'; diff --git a/src/views/room/widgets/camera/views/editor/CameraWidgetEditorView.tsx b/src/views/room/widgets/camera/views/editor/CameraWidgetEditorView.tsx index ab826e1d..c453e50d 100644 --- a/src/views/room/widgets/camera/views/editor/CameraWidgetEditorView.tsx +++ b/src/views/room/widgets/camera/views/editor/CameraWidgetEditorView.tsx @@ -1,9 +1,8 @@ import { IRoomCameraWidgetSelectedEffect, RoomCameraWidgetSelectedEffect } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useMemo, useState } from 'react'; import ReactSlider from 'react-slider'; -import { GetRoomCameraWidgetManager } from '../../../../../../api'; +import { GetRoomCameraWidgetManager, LocalizeText } from '../../../../../../api'; import { NitroCardContentView, NitroCardHeaderView, NitroCardTabsItemView, NitroCardTabsView, NitroCardView } from '../../../../../../layout'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; import { CameraPictureThumbnail } from '../../common/CameraPictureThumbnail'; import { CameraWidgetEditorTabs, CameraWidgetEditorViewProps } from './CameraWidgetEditorView.types'; import { CameraWidgetEffectListView } from './effect-list/CameraWidgetEffectListView'; diff --git a/src/views/room/widgets/camera/views/editor/effect-list-item/CameraWidgetEffectListItemView.tsx b/src/views/room/widgets/camera/views/editor/effect-list-item/CameraWidgetEffectListItemView.tsx index ae84972f..c63353be 100644 --- a/src/views/room/widgets/camera/views/editor/effect-list-item/CameraWidgetEffectListItemView.tsx +++ b/src/views/room/widgets/camera/views/editor/effect-list-item/CameraWidgetEffectListItemView.tsx @@ -1,6 +1,6 @@ import { FC } from 'react'; +import { LocalizeText } from '../../../../../../../api/utils'; import { NitroCardGridItemView } from '../../../../../../../layout/card/grid/item/NitroCardGridItemView'; -import { LocalizeText } from '../../../../../../../utils'; import { CameraWidgetEffectListItemViewProps } from './CameraWidgetEffectListItemView.types'; export const CameraWidgetEffectListItemView: FC = props => diff --git a/src/views/room/widgets/chat-input/ChatInputView.tsx b/src/views/room/widgets/chat-input/ChatInputView.tsx index 4fad3a92..c1ac2a3b 100644 --- a/src/views/room/widgets/chat-input/ChatInputView.tsx +++ b/src/views/room/widgets/chat-input/ChatInputView.tsx @@ -1,11 +1,8 @@ import { FC, useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { createPortal } from 'react-dom'; -import { GetConfiguration, GetSessionDataManager } from '../../../../api'; +import { GetConfiguration, GetSessionDataManager, LocalizeText, RoomWidgetChatMessage, RoomWidgetChatTypingMessage, RoomWidgetRoomObjectUpdateEvent, RoomWidgetUpdateChatInputContentEvent, RoomWidgetUpdateInfostandUserEvent } from '../../../../api'; import { CreateEventDispatcherHook } from '../../../../hooks/events'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import { useRoomContext } from '../../context/RoomContext'; -import { RoomWidgetRoomObjectUpdateEvent, RoomWidgetUpdateChatInputContentEvent, RoomWidgetUpdateInfostandUserEvent } from '../../events'; -import { RoomWidgetChatMessage, RoomWidgetChatTypingMessage } from '../../messages'; import { ChatInputStyleSelectorView } from './style-selector/ChatInputStyleSelectorView'; export const ChatInputView: FC<{}> = props => diff --git a/src/views/room/widgets/chat/ChatWidgetView.tsx b/src/views/room/widgets/chat/ChatWidgetView.tsx index 73130b12..30d67d04 100644 --- a/src/views/room/widgets/chat/ChatWidgetView.tsx +++ b/src/views/room/widgets/chat/ChatWidgetView.tsx @@ -1,9 +1,8 @@ import { NitroPoint, RoomDragEvent } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useRef, useState } from 'react'; +import { RoomWidgetChatSelectAvatarMessage, RoomWidgetRoomObjectMessage, RoomWidgetUpdateChatEvent } from '../../../../api'; import { CreateEventDispatcherHook, useRoomEngineEvent } from '../../../../hooks/events'; import { useRoomContext } from '../../context/RoomContext'; -import { RoomWidgetUpdateChatEvent } from '../../events'; -import { RoomWidgetChatSelectAvatarMessage, RoomWidgetRoomObjectMessage } from '../../messages'; import { ChatWidgetMessageView } from './message/ChatWidgetMessageView'; import { ChatBubbleMessage } from './utils/ChatBubbleMessage'; diff --git a/src/views/room/widgets/choosers/ChooserWidgetView.tsx b/src/views/room/widgets/choosers/ChooserWidgetView.tsx index db2da704..638b4999 100644 --- a/src/views/room/widgets/choosers/ChooserWidgetView.tsx +++ b/src/views/room/widgets/choosers/ChooserWidgetView.tsx @@ -1,10 +1,9 @@ import { FC, useCallback, useMemo, useState } from 'react'; import { List, ListRowProps, ListRowRenderer } from 'react-virtualized'; +import { RoomObjectItem, RoomWidgetRoomObjectMessage } from '../../../../api'; +import { LocalizeText } from '../../../../api/utils'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../layout'; -import { LocalizeText } from '../../../../utils'; import { useRoomContext } from '../../context/RoomContext'; -import { RoomObjectItem } from '../../events'; -import { RoomWidgetRoomObjectMessage } from '../../messages'; import { ChooserWidgetViewProps } from './ChooserWidgetView.type'; export const ChooserWidgetView: FC = props => diff --git a/src/views/room/widgets/choosers/ChooserWidgetView.type.ts b/src/views/room/widgets/choosers/ChooserWidgetView.type.ts index 8266f8b9..89c9a169 100644 --- a/src/views/room/widgets/choosers/ChooserWidgetView.type.ts +++ b/src/views/room/widgets/choosers/ChooserWidgetView.type.ts @@ -1,4 +1,4 @@ -import { RoomObjectItem } from '../../events'; +import { RoomObjectItem } from '../../../../api'; export interface ChooserWidgetViewProps { diff --git a/src/views/room/widgets/choosers/FurniChooserWidgetView.tsx b/src/views/room/widgets/choosers/FurniChooserWidgetView.tsx index d82775b2..ac257419 100644 --- a/src/views/room/widgets/choosers/FurniChooserWidgetView.tsx +++ b/src/views/room/widgets/choosers/FurniChooserWidgetView.tsx @@ -1,9 +1,7 @@ import { FC, useCallback, useState } from 'react'; +import { LocalizeText, RoomObjectItem, RoomWidgetChooserContentEvent, RoomWidgetRequestWidgetMessage, RoomWidgetRoomObjectUpdateEvent } from '../../../../api'; import { CreateEventDispatcherHook } from '../../../../hooks'; -import { LocalizeText } from '../../../../utils'; import { useRoomContext } from '../../context/RoomContext'; -import { RoomObjectItem, RoomWidgetChooserContentEvent, RoomWidgetRoomObjectUpdateEvent } from '../../events'; -import { RoomWidgetRequestWidgetMessage } from '../../messages'; import { ChooserWidgetView } from './ChooserWidgetView'; export const FurniChooserWidgetView: FC<{}> = props => diff --git a/src/views/room/widgets/choosers/UserChooserWidgetView.tsx b/src/views/room/widgets/choosers/UserChooserWidgetView.tsx index 6ef77e28..327b7bd2 100644 --- a/src/views/room/widgets/choosers/UserChooserWidgetView.tsx +++ b/src/views/room/widgets/choosers/UserChooserWidgetView.tsx @@ -1,9 +1,7 @@ import { FC, useCallback, useState } from 'react'; +import { LocalizeText, RoomObjectItem, RoomWidgetChooserContentEvent, RoomWidgetRequestWidgetMessage, RoomWidgetRoomObjectUpdateEvent } from '../../../../api'; import { CreateEventDispatcherHook } from '../../../../hooks'; -import { LocalizeText } from '../../../../utils'; import { useRoomContext } from '../../context/RoomContext'; -import { RoomObjectItem, RoomWidgetChooserContentEvent, RoomWidgetRoomObjectUpdateEvent } from '../../events'; -import { RoomWidgetRequestWidgetMessage } from '../../messages'; import { ChooserWidgetView } from './ChooserWidgetView'; export const UserChooserWidgetView: FC<{}> = props => diff --git a/src/views/room/widgets/doorbell/DoorbellWidgetView.tsx b/src/views/room/widgets/doorbell/DoorbellWidgetView.tsx index b4ac0512..8e8b86c5 100644 --- a/src/views/room/widgets/doorbell/DoorbellWidgetView.tsx +++ b/src/views/room/widgets/doorbell/DoorbellWidgetView.tsx @@ -1,10 +1,8 @@ import { FC, useCallback, useState } from 'react'; +import { LocalizeText, RoomWidgetDoorbellEvent, RoomWidgetLetUserInMessage } from '../../../../api'; import { CreateEventDispatcherHook } from '../../../../hooks'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../layout'; -import { LocalizeText } from '../../../../utils'; import { useRoomContext } from '../../context/RoomContext'; -import { RoomWidgetDoorbellEvent } from '../../events'; -import { RoomWidgetLetUserInMessage } from '../../messages'; import { DoorbellWidgetItemView } from './doorbell-item/DoorbellWidgetItemView'; export const DoorbellWidgetView: FC<{}> = props => diff --git a/src/views/room/widgets/furniture/background-color/FurnitureBackgroundColorView.tsx b/src/views/room/widgets/furniture/background-color/FurnitureBackgroundColorView.tsx index d9ea47cf..7b2e335e 100644 --- a/src/views/room/widgets/furniture/background-color/FurnitureBackgroundColorView.tsx +++ b/src/views/room/widgets/furniture/background-color/FurnitureBackgroundColorView.tsx @@ -1,13 +1,11 @@ import { ApplyTonerComposer, RoomControllerLevel, RoomEngineObjectEvent, RoomEngineTriggerWidgetEvent, RoomObjectVariable } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; import ReactSlider from 'react-slider'; -import { GetRoomEngine, GetSessionDataManager } from '../../../../../api'; +import { GetRoomEngine, GetSessionDataManager, LocalizeText, RoomWidgetRoomObjectUpdateEvent, RoomWidgetUpdateBackgroundColorPreviewEvent } from '../../../../../api'; import { SendMessageHook } from '../../../../../hooks'; import { CreateEventDispatcherHook, useRoomEngineEvent } from '../../../../../hooks/events'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../../layout'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; import { useRoomContext } from '../../../context/RoomContext'; -import { RoomWidgetRoomObjectUpdateEvent, RoomWidgetUpdateBackgroundColorPreviewEvent } from '../../../events'; export const FurnitureBackgroundColorView: FC<{}> = props => { diff --git a/src/views/room/widgets/furniture/badge-display/FurnitureBadgeDisplayView.tsx b/src/views/room/widgets/furniture/badge-display/FurnitureBadgeDisplayView.tsx index c4076440..38359fbe 100644 --- a/src/views/room/widgets/furniture/badge-display/FurnitureBadgeDisplayView.tsx +++ b/src/views/room/widgets/furniture/badge-display/FurnitureBadgeDisplayView.tsx @@ -1,9 +1,7 @@ import { NitroEvent, RoomEngineTriggerWidgetEvent, StringDataType } from '@nitrots/nitro-renderer'; import { FC, useCallback } from 'react'; -import { GetRoomEngine } from '../../../../../api'; +import { GetRoomEngine, LocalizeBadgeDescription, LocalizeBadgeName } from '../../../../../api'; import { useRoomEngineEvent } from '../../../../../hooks/events/nitro/room/room-engine-event'; -import { LocalizeBadgeDescription } from '../../../../../utils'; -import { LocalizeBadgeName } from '../../../../../utils/LocalizeBageName'; import { useRoomContext } from '../../../context/RoomContext'; export const FurnitureBadgeDisplayView: FC<{}> = props => diff --git a/src/views/room/widgets/furniture/context-menu/FurnitureContextMenuView.tsx b/src/views/room/widgets/furniture/context-menu/FurnitureContextMenuView.tsx index 4a273c44..8082e242 100644 --- a/src/views/room/widgets/furniture/context-menu/FurnitureContextMenuView.tsx +++ b/src/views/room/widgets/furniture/context-menu/FurnitureContextMenuView.tsx @@ -1,10 +1,8 @@ import { ContextMenuEnum, RoomEngineTriggerWidgetEvent, RoomObjectCategory } from '@nitrots/nitro-renderer'; import { FC, useCallback, useState } from 'react'; -import { GetRoomEngine, IsOwnerOfFurniture } from '../../../../../api'; +import { GetRoomEngine, IsOwnerOfFurniture, LocalizeText, RoomWidgetFurniActionMessage } from '../../../../../api'; import { useRoomEngineEvent } from '../../../../../hooks/events'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; import { useRoomContext } from '../../../context/RoomContext'; -import { RoomWidgetFurniActionMessage } from '../../../messages'; import { ContextMenuView } from '../../context-menu/ContextMenuView'; import { ContextMenuHeaderView } from '../../context-menu/views/header/ContextMenuHeaderView'; import { ContextMenuListItemView } from '../../context-menu/views/list-item/ContextMenuListItemView'; diff --git a/src/views/room/widgets/furniture/context-menu/views/monsterplant-seed/MonsterPlantSeedConfirmView.tsx b/src/views/room/widgets/furniture/context-menu/views/monsterplant-seed/MonsterPlantSeedConfirmView.tsx index f0bb84c5..dd26b65d 100644 --- a/src/views/room/widgets/furniture/context-menu/views/monsterplant-seed/MonsterPlantSeedConfirmView.tsx +++ b/src/views/room/widgets/furniture/context-menu/views/monsterplant-seed/MonsterPlantSeedConfirmView.tsx @@ -1,11 +1,9 @@ import { IFurnitureData, RoomObjectCategory } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; -import { GetFurnitureDataForRoomObject } from '../../../../../../../api'; +import { GetFurnitureDataForRoomObject, LocalizeText, RoomWidgetUseProductMessage } from '../../../../../../../api'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../../../../layout'; -import { LocalizeText } from '../../../../../../../utils/LocalizeText'; import { FurniCategory } from '../../../../../../inventory/common/FurniCategory'; import { useRoomContext } from '../../../../../context/RoomContext'; -import { RoomWidgetUseProductMessage } from '../../../../../messages'; import { MonsterPlantSeedConfirmViewProps } from './MonsterPlantSeedConfirmView.types'; const MODE_DEFAULT: number = -1; diff --git a/src/views/room/widgets/furniture/context-menu/views/purchaseable-clothing/PurchasableClothingConfirmView.tsx b/src/views/room/widgets/furniture/context-menu/views/purchaseable-clothing/PurchasableClothingConfirmView.tsx index 3e1cf245..c2df26c1 100644 --- a/src/views/room/widgets/furniture/context-menu/views/purchaseable-clothing/PurchasableClothingConfirmView.tsx +++ b/src/views/room/widgets/furniture/context-menu/views/purchaseable-clothing/PurchasableClothingConfirmView.tsx @@ -1,8 +1,7 @@ import { RedeemItemClothingComposer, RoomObjectCategory, UserFigureComposer } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; -import { GetAvatarRenderManager, GetConnection, GetFurnitureDataForRoomObject, GetSessionDataManager } from '../../../../../../../api'; +import { GetAvatarRenderManager, GetConnection, GetFurnitureDataForRoomObject, GetSessionDataManager, LocalizeText } from '../../../../../../../api'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../../../../layout'; -import { LocalizeText } from '../../../../../../../utils/LocalizeText'; import { FigureData } from '../../../../../../avatar-editor/common/FigureData'; import { FurniCategory } from '../../../../../../inventory/common/FurniCategory'; import { AvatarImageView } from '../../../../../../shared/avatar-image/AvatarImageView'; diff --git a/src/views/room/widgets/furniture/custom-stack-height/FurnitureCustomStackHeightView.tsx b/src/views/room/widgets/furniture/custom-stack-height/FurnitureCustomStackHeightView.tsx index 1f5e00e3..16f976a2 100644 --- a/src/views/room/widgets/furniture/custom-stack-height/FurnitureCustomStackHeightView.tsx +++ b/src/views/room/widgets/furniture/custom-stack-height/FurnitureCustomStackHeightView.tsx @@ -1,12 +1,11 @@ import { FurnitureStackHeightComposer, FurnitureStackHeightEvent } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; import ReactSlider from 'react-slider'; +import { LocalizeText, RoomWidgetUpdateCustomStackHeightEvent } from '../../../../../api'; import { CreateMessageHook, SendMessageHook } from '../../../../../hooks'; import { CreateEventDispatcherHook } from '../../../../../hooks/events'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../../layout'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; import { useRoomContext } from '../../../context/RoomContext'; -import { RoomWidgetUpdateCustomStackHeightEvent } from '../../../events'; const MAX_HEIGHT: number = 40; diff --git a/src/views/room/widgets/furniture/dimmer/FurnitureDimmerView.tsx b/src/views/room/widgets/furniture/dimmer/FurnitureDimmerView.tsx index 8c79722a..c868e9cd 100644 --- a/src/views/room/widgets/furniture/dimmer/FurnitureDimmerView.tsx +++ b/src/views/room/widgets/furniture/dimmer/FurnitureDimmerView.tsx @@ -1,6 +1,6 @@ import { FC, useCallback, useState } from 'react'; +import { LocalizeText } from '../../../../../api'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../../layout'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; import { useRoomContext } from '../../../context/RoomContext'; import { FurnitureDimmerData } from './FurnitureDimmerData'; diff --git a/src/views/room/widgets/furniture/exchange-credit/FurnitureExchangeCreditView.tsx b/src/views/room/widgets/furniture/exchange-credit/FurnitureExchangeCreditView.tsx index aad37411..6b6d36c2 100644 --- a/src/views/room/widgets/furniture/exchange-credit/FurnitureExchangeCreditView.tsx +++ b/src/views/room/widgets/furniture/exchange-credit/FurnitureExchangeCreditView.tsx @@ -1,12 +1,10 @@ import { FurnitureExchangeComposer, NitroEvent, RoomEngineTriggerWidgetEvent, RoomObjectVariable } from '@nitrots/nitro-renderer'; import { FC, useCallback, useState } from 'react'; -import { GetRoomEngine, GetRoomSession } from '../../../../../api'; +import { GetRoomEngine, GetRoomSession, LocalizeText, RoomWidgetRoomObjectUpdateEvent } from '../../../../../api'; import { CreateEventDispatcherHook } from '../../../../../hooks/events/event-dispatcher.base'; import { useRoomEngineEvent } from '../../../../../hooks/events/nitro/room/room-engine-event'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../../layout'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; import { useRoomContext } from '../../../context/RoomContext'; -import { RoomWidgetRoomObjectUpdateEvent } from '../../../events'; import { FurnitureExchangeCreditData } from './FurnitureExchangeCreditData'; export const FurnitureExchangeCreditView: FC<{}> = props => diff --git a/src/views/room/widgets/furniture/external-image/FurnitureExternalImageView.tsx b/src/views/room/widgets/furniture/external-image/FurnitureExternalImageView.tsx index b27741f7..0729d563 100644 --- a/src/views/room/widgets/furniture/external-image/FurnitureExternalImageView.tsx +++ b/src/views/room/widgets/furniture/external-image/FurnitureExternalImageView.tsx @@ -1,10 +1,8 @@ import { FC, useCallback, useState } from 'react'; +import { IPhotoData, LocalizeText, RoomWidgetUpdateExternalImageEvent } from '../../../../../api'; import { CreateEventDispatcherHook } from '../../../../../hooks'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../../layout'; -import { LocalizeText } from '../../../../../utils'; import { useRoomContext } from '../../../context/RoomContext'; -import { IPhotoData } from '../../../events'; -import { RoomWidgetUpdateExternalImageEvent } from '../../../events/RoomWidgetUpdateExternalImageEvent'; export const FurnitureExternalImageView: FC<{}> = props => { diff --git a/src/views/room/widgets/furniture/friend-furni/FurnitureFriendFurniView.tsx b/src/views/room/widgets/furniture/friend-furni/FurnitureFriendFurniView.tsx index f081241c..39917913 100644 --- a/src/views/room/widgets/furniture/friend-furni/FurnitureFriendFurniView.tsx +++ b/src/views/room/widgets/furniture/friend-furni/FurnitureFriendFurniView.tsx @@ -1,15 +1,12 @@ import { LoveLockFurniFinishedEvent, LoveLockFurniFriendConfirmedEvent, LoveLockFurniStartEvent, LoveLockStartConfirmComposer, NitroEvent, RoomEngineTriggerWidgetEvent, RoomObjectVariable } from '@nitrots/nitro-renderer'; import { FC, useCallback, useState } from 'react'; -import { GetRoomSession } from '../../../../../api'; -import { GetRoomEngine } from '../../../../../api/nitro/room/GetRoomEngine'; +import { GetRoomEngine, GetRoomSession, LocalizeText, RoomWidgetRoomObjectUpdateEvent } from '../../../../../api'; import { CreateEventDispatcherHook } from '../../../../../hooks/events/event-dispatcher.base'; import { useRoomEngineEvent } from '../../../../../hooks/events/nitro/room/room-engine-event'; import { CreateMessageHook } from '../../../../../hooks/messages/message-event'; import { DraggableWindow, NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../../layout'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; import { AvatarImageView } from '../../../../shared/avatar-image/AvatarImageView'; import { useRoomContext } from '../../../context/RoomContext'; -import { RoomWidgetRoomObjectUpdateEvent } from '../../../events'; import { FurnitureEngravingLockData } from './FriendFurniLockData'; export const FurnitureFriendFurniView: FC<{}> = props => diff --git a/src/views/room/widgets/furniture/manipulation-menu/FurnitureManipulationMenuView.tsx b/src/views/room/widgets/furniture/manipulation-menu/FurnitureManipulationMenuView.tsx index c4a39321..d7b60d69 100644 --- a/src/views/room/widgets/furniture/manipulation-menu/FurnitureManipulationMenuView.tsx +++ b/src/views/room/widgets/furniture/manipulation-menu/FurnitureManipulationMenuView.tsx @@ -1,9 +1,8 @@ import { RoomObjectOperationType } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; -import { ProcessRoomObjectOperation } from '../../../../../api'; +import { ProcessRoomObjectOperation, RoomWidgetRoomObjectUpdateEvent } from '../../../../../api'; import { CreateEventDispatcherHook } from '../../../../../hooks/events/event-dispatcher.base'; import { useRoomContext } from '../../../context/RoomContext'; -import { RoomWidgetRoomObjectUpdateEvent } from '../../../events'; import { ObjectLocationView } from '../../object-location/ObjectLocationView'; export const FurnitureManipulationMenuView: FC<{}> = props => diff --git a/src/views/room/widgets/furniture/mannequin/FurnitureMannequinView.tsx b/src/views/room/widgets/furniture/mannequin/FurnitureMannequinView.tsx index b052fefc..24565fdb 100644 --- a/src/views/room/widgets/furniture/mannequin/FurnitureMannequinView.tsx +++ b/src/views/room/widgets/furniture/mannequin/FurnitureMannequinView.tsx @@ -1,16 +1,11 @@ import { AvatarFigurePartType, FurnitureMannequinSaveLookComposer, FurnitureMannequinSaveNameComposer, FurnitureMultiStateComposer, IAvatarFigureContainer, NitroEvent, RoomEngineTriggerWidgetEvent, RoomObjectVariable } from '@nitrots/nitro-renderer'; import { FC, KeyboardEvent, useCallback, useEffect, useState } from 'react'; -import { GetNitroInstance } from '../../../../../api'; -import { GetRoomEngine } from '../../../../../api/nitro/room/GetRoomEngine'; -import { GetRoomSession } from '../../../../../api/nitro/session/GetRoomSession'; -import { GetSessionDataManager } from '../../../../../api/nitro/session/GetSessionDataManager'; +import { GetNitroInstance, GetRoomEngine, GetRoomSession, GetSessionDataManager, LocalizeText, RoomWidgetRoomObjectUpdateEvent } from '../../../../../api'; import { CreateEventDispatcherHook } from '../../../../../hooks/events/event-dispatcher.base'; import { useRoomEngineEvent } from '../../../../../hooks/events/nitro/room/room-engine-event'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../../layout'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; import { AvatarImageView } from '../../../../shared/avatar-image/AvatarImageView'; import { useRoomContext } from '../../../context/RoomContext'; -import { RoomWidgetRoomObjectUpdateEvent } from '../../../events'; import { MannequinViewMode } from './common/MannequinViewMode'; import { FurnitureMannequinData } from './FurnitureMannequinData'; diff --git a/src/views/room/widgets/furniture/stickie/FurnitureStickieView.tsx b/src/views/room/widgets/furniture/stickie/FurnitureStickieView.tsx index 20d7c2eb..1c4fb312 100644 --- a/src/views/room/widgets/furniture/stickie/FurnitureStickieView.tsx +++ b/src/views/room/widgets/furniture/stickie/FurnitureStickieView.tsx @@ -1,13 +1,11 @@ import { NitroEvent, RoomEngineTriggerWidgetEvent, RoomObjectVariable } from '@nitrots/nitro-renderer'; import { FC, useCallback, useState } from 'react'; -import { GetRoomEngine, GetRoomSession, GetSessionDataManager } from '../../../../../api'; +import { ColorUtils, GetRoomEngine, GetRoomSession, GetSessionDataManager, RoomWidgetRoomObjectUpdateEvent } from '../../../../../api'; import { CreateEventDispatcherHook } from '../../../../../hooks/events/event-dispatcher.base'; import { useRoomEngineEvent } from '../../../../../hooks/events/nitro/room/room-engine-event'; import { DraggableWindowPosition } from '../../../../../layout'; import { DraggableWindow } from '../../../../../layout/draggable-window/DraggableWindow'; -import { ColorUtils } from '../../../../../utils/ColorUtils'; import { useRoomContext } from '../../../context/RoomContext'; -import { RoomWidgetRoomObjectUpdateEvent } from '../../../events'; import { FurnitureStickieData } from './FurnitureStickieData'; import { getStickieColorName, STICKIE_COLORS } from './FurnitureStickieUtils'; diff --git a/src/views/room/widgets/furniture/trophy/FurnitureTrophyView.tsx b/src/views/room/widgets/furniture/trophy/FurnitureTrophyView.tsx index 7ca92ae2..5f21e504 100644 --- a/src/views/room/widgets/furniture/trophy/FurnitureTrophyView.tsx +++ b/src/views/room/widgets/furniture/trophy/FurnitureTrophyView.tsx @@ -1,11 +1,10 @@ import { NitroEvent, RoomEngineTriggerWidgetEvent, RoomObjectVariable } from '@nitrots/nitro-renderer'; import { FC, useCallback, useState } from 'react'; -import { GetRoomEngine } from '../../../../../api'; +import { GetRoomEngine, RoomWidgetRoomObjectUpdateEvent } from '../../../../../api'; import { CreateEventDispatcherHook } from '../../../../../hooks/events/event-dispatcher.base'; import { useRoomEngineEvent } from '../../../../../hooks/events/nitro/room/room-engine-event'; import { NitroLayoutTrophyView } from '../../../../../layout'; import { useRoomContext } from '../../../context/RoomContext'; -import { RoomWidgetRoomObjectUpdateEvent } from '../../../events'; import { FurnitureTrophyData } from './FurnitureTrophyData'; export const FurnitureTrophyView: FC<{}> = props => diff --git a/src/views/room/widgets/infostand/InfoStandWidgetView.tsx b/src/views/room/widgets/infostand/InfoStandWidgetView.tsx index 6c3b2827..01190223 100644 --- a/src/views/room/widgets/infostand/InfoStandWidgetView.tsx +++ b/src/views/room/widgets/infostand/InfoStandWidgetView.tsx @@ -1,8 +1,7 @@ import { FC, useCallback, useState } from 'react'; +import { RoomWidgetRoomObjectMessage, RoomWidgetRoomObjectUpdateEvent, RoomWidgetUpdateEvent, RoomWidgetUpdateInfostandEvent, RoomWidgetUpdateInfostandFurniEvent, RoomWidgetUpdateInfostandPetEvent, RoomWidgetUpdateInfostandRentableBotEvent, RoomWidgetUpdateInfostandUserEvent } from '../../../../api'; import { CreateEventDispatcherHook } from '../../../../hooks/events/event-dispatcher.base'; import { useRoomContext } from '../../context/RoomContext'; -import { RoomWidgetRoomObjectUpdateEvent, RoomWidgetUpdateEvent, RoomWidgetUpdateInfostandEvent, RoomWidgetUpdateInfostandFurniEvent, RoomWidgetUpdateInfostandPetEvent, RoomWidgetUpdateInfostandRentableBotEvent, RoomWidgetUpdateInfostandUserEvent } from '../../events'; -import { RoomWidgetRoomObjectMessage } from '../../messages'; import { InfoStandWidgetBotView } from './views/bot/InfoStandWidgetBotView'; import { InfoStandWidgetFurniView } from './views/furni/InfoStandWidgetFurniView'; import { InfoStandWidgetPetView } from './views/pet/InfoStandWidgetPetView'; diff --git a/src/views/room/widgets/infostand/views/bot/InfoStandWidgetBotView.tsx b/src/views/room/widgets/infostand/views/bot/InfoStandWidgetBotView.tsx index dedf8822..af52860a 100644 --- a/src/views/room/widgets/infostand/views/bot/InfoStandWidgetBotView.tsx +++ b/src/views/room/widgets/infostand/views/bot/InfoStandWidgetBotView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback } from 'react'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../../api'; import { AvatarImageView } from '../../../../../shared/avatar-image/AvatarImageView'; import { BadgeImageView } from '../../../../../shared/badge-image/BadgeImageView'; import { InfoStandBaseView } from '../base/InfoStandBaseView'; diff --git a/src/views/room/widgets/infostand/views/bot/InfoStandWidgetBotView.types.ts b/src/views/room/widgets/infostand/views/bot/InfoStandWidgetBotView.types.ts index 2718a25a..6691eec4 100644 --- a/src/views/room/widgets/infostand/views/bot/InfoStandWidgetBotView.types.ts +++ b/src/views/room/widgets/infostand/views/bot/InfoStandWidgetBotView.types.ts @@ -1,4 +1,4 @@ -import { RoomWidgetUpdateInfostandUserEvent } from '../../../../events'; +import { RoomWidgetUpdateInfostandUserEvent } from '../../../../../../api'; export interface InfoStandWidgetBotViewProps { diff --git a/src/views/room/widgets/infostand/views/furni/InfoStandWidgetFurniView.tsx b/src/views/room/widgets/infostand/views/furni/InfoStandWidgetFurniView.tsx index 3fa4ef8b..803b44d0 100644 --- a/src/views/room/widgets/infostand/views/furni/InfoStandWidgetFurniView.tsx +++ b/src/views/room/widgets/infostand/views/furni/InfoStandWidgetFurniView.tsx @@ -1,12 +1,10 @@ import { CrackableDataType, RoomControllerLevel, RoomWidgetEnumItemExtradataParameter, RoomWidgetFurniInfoUsagePolicyEnum, StringDataType } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; -import { CreateLinkEvent } from '../../../../../../api'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; +import { CreateLinkEvent, LocalizeText, RoomWidgetFurniActionMessage } from '../../../../../../api'; import { BadgeImageView } from '../../../../../shared/badge-image/BadgeImageView'; import { LimitedEditionCompactPlateView } from '../../../../../shared/limited-edition/compact-plate/LimitedEditionCompactPlateView'; import { RarityLevelView } from '../../../../../shared/rarity-level/RarityLevelView'; import { useRoomContext } from '../../../../context/RoomContext'; -import { RoomWidgetFurniActionMessage } from '../../../../messages'; import { InfoStandBaseView } from '../base/InfoStandBaseView'; import { InfoStandWidgetFurniViewProps } from './InfoStandWidgetFurniView.types'; diff --git a/src/views/room/widgets/infostand/views/furni/InfoStandWidgetFurniView.types.ts b/src/views/room/widgets/infostand/views/furni/InfoStandWidgetFurniView.types.ts index 1c07d7d8..c4a77f9c 100644 --- a/src/views/room/widgets/infostand/views/furni/InfoStandWidgetFurniView.types.ts +++ b/src/views/room/widgets/infostand/views/furni/InfoStandWidgetFurniView.types.ts @@ -1,4 +1,4 @@ -import { RoomWidgetUpdateInfostandFurniEvent } from '../../../../events'; +import { RoomWidgetUpdateInfostandFurniEvent } from '../../../../../../api'; export interface InfoStandWidgetFurniViewProps { diff --git a/src/views/room/widgets/infostand/views/pet/InfoStandWidgetPetView.tsx b/src/views/room/widgets/infostand/views/pet/InfoStandWidgetPetView.tsx index c934373b..c0d0b54b 100644 --- a/src/views/room/widgets/infostand/views/pet/InfoStandWidgetPetView.tsx +++ b/src/views/room/widgets/infostand/views/pet/InfoStandWidgetPetView.tsx @@ -1,5 +1,5 @@ import { FC } from 'react'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../../api'; import { PetImageView } from '../../../../../shared/pet-image/PetImageView'; import { InfoStandBaseView } from '../base/InfoStandBaseView'; import { InfoStandWidgetPetViewProps } from './InfoStandWidgetPetView.types'; diff --git a/src/views/room/widgets/infostand/views/pet/InfoStandWidgetPetView.types.ts b/src/views/room/widgets/infostand/views/pet/InfoStandWidgetPetView.types.ts index 84c7f279..46d61195 100644 --- a/src/views/room/widgets/infostand/views/pet/InfoStandWidgetPetView.types.ts +++ b/src/views/room/widgets/infostand/views/pet/InfoStandWidgetPetView.types.ts @@ -1,4 +1,4 @@ -import { RoomWidgetUpdateInfostandPetEvent } from '../../../../events'; +import { RoomWidgetUpdateInfostandPetEvent } from '../../../../../../api'; export interface InfoStandWidgetPetViewProps { diff --git a/src/views/room/widgets/infostand/views/rentable-bot/InfoStandWidgetRentableBotView.tsx b/src/views/room/widgets/infostand/views/rentable-bot/InfoStandWidgetRentableBotView.tsx index 202117fd..3b72705e 100644 --- a/src/views/room/widgets/infostand/views/rentable-bot/InfoStandWidgetRentableBotView.tsx +++ b/src/views/room/widgets/infostand/views/rentable-bot/InfoStandWidgetRentableBotView.tsx @@ -1,7 +1,7 @@ import { BotRemoveComposer } from '@nitrots/nitro-renderer'; import { FC, useCallback, useMemo } from 'react'; +import { LocalizeText } from '../../../../../../api'; import { SendMessageHook } from '../../../../../../hooks/messages'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; import { AvatarImageView } from '../../../../../shared/avatar-image/AvatarImageView'; import { BadgeImageView } from '../../../../../shared/badge-image/BadgeImageView'; import { BotSkillsEnum } from '../../../avatar-info/common/BotSkillsEnum'; diff --git a/src/views/room/widgets/infostand/views/rentable-bot/InfoStandWidgetRentableBotView.types.ts b/src/views/room/widgets/infostand/views/rentable-bot/InfoStandWidgetRentableBotView.types.ts index 26a73091..d3480bd1 100644 --- a/src/views/room/widgets/infostand/views/rentable-bot/InfoStandWidgetRentableBotView.types.ts +++ b/src/views/room/widgets/infostand/views/rentable-bot/InfoStandWidgetRentableBotView.types.ts @@ -1,4 +1,4 @@ -import { RoomWidgetUpdateInfostandRentableBotEvent } from '../../../../events'; +import { RoomWidgetUpdateInfostandRentableBotEvent } from '../../../../../../api'; export interface InfoStandWidgetRentableBotViewProps { diff --git a/src/views/room/widgets/infostand/views/user/InfoStandWidgetUserView.tsx b/src/views/room/widgets/infostand/views/user/InfoStandWidgetUserView.tsx index 7f085e2f..dac5083a 100644 --- a/src/views/room/widgets/infostand/views/user/InfoStandWidgetUserView.tsx +++ b/src/views/room/widgets/infostand/views/user/InfoStandWidgetUserView.tsx @@ -1,14 +1,12 @@ import { RelationshipStatusInfoEvent, RelationshipStatusInfoMessageParser, RoomSessionUserBadgesEvent, UserRelationshipsComposer } from '@nitrots/nitro-renderer'; import { FC, FocusEvent, KeyboardEvent, useCallback, useEffect, useState } from 'react'; +import { LocalizeText, RoomWidgetChangeMottoMessage, RoomWidgetUpdateInfostandUserEvent } from '../../../../../../api'; import { CreateMessageHook, SendMessageHook } from '../../../../../../hooks'; import { CreateEventDispatcherHook } from '../../../../../../hooks/events'; -import { LocalizeText } from '../../../../../../utils/LocalizeText'; import { AvatarImageView } from '../../../../../shared/avatar-image/AvatarImageView'; import { BadgeImageView } from '../../../../../shared/badge-image/BadgeImageView'; import { RelationshipsContainerView } from '../../../../../user-profile/views/relationships-container/RelationshipsContainerView'; import { useRoomContext } from '../../../../context/RoomContext'; -import { RoomWidgetUpdateInfostandUserEvent } from '../../../../events/RoomWidgetUpdateInfostandUserEvent'; -import { RoomWidgetChangeMottoMessage } from '../../../../messages'; import { InfoStandWidgetUserViewProps } from './InfoStandWidgetUserView.types'; export const InfoStandWidgetUserView: FC = props => diff --git a/src/views/room/widgets/infostand/views/user/InfoStandWidgetUserView.types.ts b/src/views/room/widgets/infostand/views/user/InfoStandWidgetUserView.types.ts index 3784f4e4..df69165b 100644 --- a/src/views/room/widgets/infostand/views/user/InfoStandWidgetUserView.types.ts +++ b/src/views/room/widgets/infostand/views/user/InfoStandWidgetUserView.types.ts @@ -1,4 +1,4 @@ -import { RoomWidgetUpdateInfostandUserEvent } from '../../../../events'; +import { RoomWidgetUpdateInfostandUserEvent } from '../../../../../../api'; export interface InfoStandWidgetUserViewProps { diff --git a/src/views/room/widgets/room-tools/RoomToolsWidgetView.tsx b/src/views/room/widgets/room-tools/RoomToolsWidgetView.tsx index 2080924a..250e979d 100644 --- a/src/views/room/widgets/room-tools/RoomToolsWidgetView.tsx +++ b/src/views/room/widgets/room-tools/RoomToolsWidgetView.tsx @@ -1,12 +1,11 @@ import { RoomLikeRoomComposer } from '@nitrots/nitro-renderer'; import classNames from 'classnames'; import { FC, useCallback, useState } from 'react'; +import { LocalizeText, RoomWidgetZoomToggleMessage } from '../../../../api'; import { NavigatorEvent } from '../../../../events'; import { dispatchUiEvent } from '../../../../hooks/events'; import { SendMessageHook } from '../../../../hooks/messages'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import { useRoomContext } from '../../context/RoomContext'; -import { RoomWidgetZoomToggleMessage } from '../../messages'; export const RoomToolsWidgetView: FC<{}> = props => { diff --git a/src/views/shared/limited-edition/complete-plate/LimitedEditionCompletePlateView.tsx b/src/views/shared/limited-edition/complete-plate/LimitedEditionCompletePlateView.tsx index cfc1d0c7..744d33f6 100644 --- a/src/views/shared/limited-edition/complete-plate/LimitedEditionCompletePlateView.tsx +++ b/src/views/shared/limited-edition/complete-plate/LimitedEditionCompletePlateView.tsx @@ -1,5 +1,5 @@ import { FC } from 'react'; -import { LocalizeText } from '../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../api'; import { LimitedEditionStyledNumberView } from '../styled-number/LimitedEditionStyledNumberView'; import { LimitedEditionCompletePlateViewProps } from './LimitedEditionCompletePlateView.types'; diff --git a/src/views/user-profile/UserProfileView.tsx b/src/views/user-profile/UserProfileView.tsx index 8ab15383..3b42eb3b 100644 --- a/src/views/user-profile/UserProfileView.tsx +++ b/src/views/user-profile/UserProfileView.tsx @@ -1,8 +1,8 @@ import { RelationshipStatusInfoEvent, RelationshipStatusInfoMessageParser, UserCurrentBadgesComposer, UserCurrentBadgesEvent, UserProfileEvent, UserProfileParser, UserRelationshipsComposer } from '@nitrots/nitro-renderer'; import { FC, useCallback, useState } from 'react'; +import { LocalizeText } from '../../api'; import { CreateMessageHook, SendMessageHook } from '../../hooks'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../layout'; -import { LocalizeText } from '../../utils'; import { BadgesContainerView } from './views/badges-container/BadgesContainerView'; import { FriendsContainerView } from './views/friends-container/FriendsContainerView'; import { UserContainerView } from './views/user-container/UserContainerView'; diff --git a/src/views/user-profile/views/friends-container/FriendsContainerView.tsx b/src/views/user-profile/views/friends-container/FriendsContainerView.tsx index 3bb06e9f..a40b2863 100644 --- a/src/views/user-profile/views/friends-container/FriendsContainerView.tsx +++ b/src/views/user-profile/views/friends-container/FriendsContainerView.tsx @@ -1,5 +1,5 @@ import { FC } from 'react'; -import { LocalizeText } from '../../../../utils'; +import { LocalizeText } from '../../../../api'; import { RelationshipsContainerView } from '../relationships-container/RelationshipsContainerView'; import { FriendsContainerViewProps } from './FriendsContainerView.types'; diff --git a/src/views/user-profile/views/relationships-container/RelationshipsContainerView.tsx b/src/views/user-profile/views/relationships-container/RelationshipsContainerView.tsx index 88f4a250..190dae8d 100644 --- a/src/views/user-profile/views/relationships-container/RelationshipsContainerView.tsx +++ b/src/views/user-profile/views/relationships-container/RelationshipsContainerView.tsx @@ -1,7 +1,7 @@ import { RelationshipStatusEnum, RelationshipStatusInfo, UserProfileComposer } from '@nitrots/nitro-renderer'; import { FC, useCallback } from 'react'; +import { LocalizeText } from '../../../../api'; import { SendMessageHook } from '../../../../hooks'; -import { LocalizeText } from '../../../../utils'; import { AvatarImageView } from '../../../shared/avatar-image/AvatarImageView'; import { RelationshipsContainerViewProps } from './RelationshipsContainerView.types'; diff --git a/src/views/user-profile/views/user-container/UserContainerView.tsx b/src/views/user-profile/views/user-container/UserContainerView.tsx index 0eff6504..ff57aed6 100644 --- a/src/views/user-profile/views/user-container/UserContainerView.tsx +++ b/src/views/user-profile/views/user-container/UserContainerView.tsx @@ -1,7 +1,6 @@ import { FriendlyTime } from '@nitrots/nitro-renderer'; import { FC, useCallback } from 'react'; -import { GetSessionDataManager } from '../../../../api'; -import { LocalizeText } from '../../../../utils'; +import { GetSessionDataManager, LocalizeText } from '../../../../api'; import { AvatarImageView } from '../../../shared/avatar-image/AvatarImageView'; import { UserContainerViewProps } from './UserContainerView.types'; diff --git a/src/views/user-settings/UserSettingsView.tsx b/src/views/user-settings/UserSettingsView.tsx index 1e60e19c..9a915b33 100644 --- a/src/views/user-settings/UserSettingsView.tsx +++ b/src/views/user-settings/UserSettingsView.tsx @@ -1,10 +1,10 @@ import { NitroSettingsEvent, UserSettingsCameraFollowComposer, UserSettingsEvent, UserSettingsOldChatComposer, UserSettingsRoomInvitesComposer, UserSettingsSoundComposer } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; +import { LocalizeText } from '../../api'; import { UserSettingsUIEvent } from '../../events/user-settings/UserSettingsUIEvent'; import { CreateMessageHook, dispatchMainEvent, SendMessageHook, useUiEvent } from '../../hooks'; import { NitroCardContentView, NitroCardHeaderView } from '../../layout'; import { NitroCardView } from '../../layout/card/NitroCardView'; -import { LocalizeText } from '../../utils'; export const UserSettingsView: FC<{}> = props => { diff --git a/src/views/wired/views/actions/base/WiredActionBaseView.tsx b/src/views/wired/views/actions/base/WiredActionBaseView.tsx index 0d7a4efa..fd440e91 100644 --- a/src/views/wired/views/actions/base/WiredActionBaseView.tsx +++ b/src/views/wired/views/actions/base/WiredActionBaseView.tsx @@ -1,7 +1,7 @@ import { WiredActionDefinition } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; import ReactSlider from 'react-slider'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; diff --git a/src/views/wired/views/actions/bot-change-figure/WiredActionBotChangeFigureView.tsx b/src/views/wired/views/actions/bot-change-figure/WiredActionBotChangeFigureView.tsx index 8515d532..4f78cb5c 100644 --- a/src/views/wired/views/actions/bot-change-figure/WiredActionBotChangeFigureView.tsx +++ b/src/views/wired/views/actions/bot-change-figure/WiredActionBotChangeFigureView.tsx @@ -1,6 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { GetSessionDataManager } from '../../../../../api'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { GetSessionDataManager, LocalizeText } from '../../../../../api'; import { AvatarImageView } from '../../../../shared/avatar-image/AvatarImageView'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType, WIRED_STRING_DELIMETER } from '../../../WiredView.types'; diff --git a/src/views/wired/views/actions/bot-follow-avatar/WiredActionBotFollowAvatarView.tsx b/src/views/wired/views/actions/bot-follow-avatar/WiredActionBotFollowAvatarView.tsx index ae38d8a6..73dec702 100644 --- a/src/views/wired/views/actions/bot-follow-avatar/WiredActionBotFollowAvatarView.tsx +++ b/src/views/wired/views/actions/bot-follow-avatar/WiredActionBotFollowAvatarView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/actions/bot-give-hand-item/WiredActionBotGiveHandItemView.tsx b/src/views/wired/views/actions/bot-give-hand-item/WiredActionBotGiveHandItemView.tsx index bb787036..994e167c 100644 --- a/src/views/wired/views/actions/bot-give-hand-item/WiredActionBotGiveHandItemView.tsx +++ b/src/views/wired/views/actions/bot-give-hand-item/WiredActionBotGiveHandItemView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/actions/bot-move/WiredActionBotMoveView.tsx b/src/views/wired/views/actions/bot-move/WiredActionBotMoveView.tsx index 45dd3ba9..6e9f7f34 100644 --- a/src/views/wired/views/actions/bot-move/WiredActionBotMoveView.tsx +++ b/src/views/wired/views/actions/bot-move/WiredActionBotMoveView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/actions/bot-talk-to-avatar/WiredActionBotTalkToAvatarView.tsx b/src/views/wired/views/actions/bot-talk-to-avatar/WiredActionBotTalkToAvatarView.tsx index bbe30016..5d16fdc7 100644 --- a/src/views/wired/views/actions/bot-talk-to-avatar/WiredActionBotTalkToAvatarView.tsx +++ b/src/views/wired/views/actions/bot-talk-to-avatar/WiredActionBotTalkToAvatarView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType, WIRED_STRING_DELIMETER } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/actions/bot-talk/WiredActionBotTalkView.tsx b/src/views/wired/views/actions/bot-talk/WiredActionBotTalkView.tsx index a8b848b4..6f90b9d6 100644 --- a/src/views/wired/views/actions/bot-talk/WiredActionBotTalkView.tsx +++ b/src/views/wired/views/actions/bot-talk/WiredActionBotTalkView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType, WIRED_STRING_DELIMETER } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/actions/bot-teleport/WiredActionBotTeleportView.tsx b/src/views/wired/views/actions/bot-teleport/WiredActionBotTeleportView.tsx index ad6aa17d..fde10dd8 100644 --- a/src/views/wired/views/actions/bot-teleport/WiredActionBotTeleportView.tsx +++ b/src/views/wired/views/actions/bot-teleport/WiredActionBotTeleportView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/actions/chat/WiredActionChatView.tsx b/src/views/wired/views/actions/chat/WiredActionChatView.tsx index 39635d26..07317241 100644 --- a/src/views/wired/views/actions/chat/WiredActionChatView.tsx +++ b/src/views/wired/views/actions/chat/WiredActionChatView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/actions/give-reward/WiredActionGiveRewardView.tsx b/src/views/wired/views/actions/give-reward/WiredActionGiveRewardView.tsx index 039ddffa..89bfb009 100644 --- a/src/views/wired/views/actions/give-reward/WiredActionGiveRewardView.tsx +++ b/src/views/wired/views/actions/give-reward/WiredActionGiveRewardView.tsx @@ -1,6 +1,6 @@ import { FC, useCallback, useEffect, useState } from 'react'; import ReactSlider from 'react-slider'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/actions/give-score-to-predefined-team/WiredActionGiveScoreToPredefinedTeamView.tsx b/src/views/wired/views/actions/give-score-to-predefined-team/WiredActionGiveScoreToPredefinedTeamView.tsx index 9e82c14d..9fdaa57c 100644 --- a/src/views/wired/views/actions/give-score-to-predefined-team/WiredActionGiveScoreToPredefinedTeamView.tsx +++ b/src/views/wired/views/actions/give-score-to-predefined-team/WiredActionGiveScoreToPredefinedTeamView.tsx @@ -1,6 +1,6 @@ import { FC, useCallback, useEffect, useState } from 'react'; import ReactSlider from 'react-slider'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/actions/give-score/WiredActionGiveScoreView.tsx b/src/views/wired/views/actions/give-score/WiredActionGiveScoreView.tsx index 3b909fbf..a76a3cad 100644 --- a/src/views/wired/views/actions/give-score/WiredActionGiveScoreView.tsx +++ b/src/views/wired/views/actions/give-score/WiredActionGiveScoreView.tsx @@ -1,6 +1,6 @@ import { FC, useCallback, useEffect, useState } from 'react'; import ReactSlider from 'react-slider'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/actions/join-team/WiredActionJoinTeamView.tsx b/src/views/wired/views/actions/join-team/WiredActionJoinTeamView.tsx index cf3fb1cb..7691100e 100644 --- a/src/views/wired/views/actions/join-team/WiredActionJoinTeamView.tsx +++ b/src/views/wired/views/actions/join-team/WiredActionJoinTeamView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/actions/kick-from-room/WiredActionKickFromRoomView.tsx b/src/views/wired/views/actions/kick-from-room/WiredActionKickFromRoomView.tsx index 5d28ff52..5597da91 100644 --- a/src/views/wired/views/actions/kick-from-room/WiredActionKickFromRoomView.tsx +++ b/src/views/wired/views/actions/kick-from-room/WiredActionKickFromRoomView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/actions/move-and-rotate-furni/WiredActionMoveAndRotateFurniView.tsx b/src/views/wired/views/actions/move-and-rotate-furni/WiredActionMoveAndRotateFurniView.tsx index 5995dd4d..51b80717 100644 --- a/src/views/wired/views/actions/move-and-rotate-furni/WiredActionMoveAndRotateFurniView.tsx +++ b/src/views/wired/views/actions/move-and-rotate-furni/WiredActionMoveAndRotateFurniView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/actions/move-furni-to/WiredActionMoveFurniToView.tsx b/src/views/wired/views/actions/move-furni-to/WiredActionMoveFurniToView.tsx index c36062f8..1e362983 100644 --- a/src/views/wired/views/actions/move-furni-to/WiredActionMoveFurniToView.tsx +++ b/src/views/wired/views/actions/move-furni-to/WiredActionMoveFurniToView.tsx @@ -1,6 +1,6 @@ import { FC, useCallback, useEffect, useState } from 'react'; import ReactSlider from 'react-slider'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/actions/move-furni/WiredActionMoveFurniView.tsx b/src/views/wired/views/actions/move-furni/WiredActionMoveFurniView.tsx index f9107c42..18b36c5f 100644 --- a/src/views/wired/views/actions/move-furni/WiredActionMoveFurniView.tsx +++ b/src/views/wired/views/actions/move-furni/WiredActionMoveFurniView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/actions/mute-user/WiredActionMuteUserView.tsx b/src/views/wired/views/actions/mute-user/WiredActionMuteUserView.tsx index 5f4f8c44..d362fe4b 100644 --- a/src/views/wired/views/actions/mute-user/WiredActionMuteUserView.tsx +++ b/src/views/wired/views/actions/mute-user/WiredActionMuteUserView.tsx @@ -1,6 +1,6 @@ import { FC, useCallback, useEffect, useState } from 'react'; import ReactSlider from 'react-slider'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/actions/set-furni-state-to/WiredActionSetFurniStateToView.tsx b/src/views/wired/views/actions/set-furni-state-to/WiredActionSetFurniStateToView.tsx index d3d5d82e..cc08521c 100644 --- a/src/views/wired/views/actions/set-furni-state-to/WiredActionSetFurniStateToView.tsx +++ b/src/views/wired/views/actions/set-furni-state-to/WiredActionSetFurniStateToView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredActionBaseView } from '../base/WiredActionBaseView'; diff --git a/src/views/wired/views/base/WiredBaseView.tsx b/src/views/wired/views/base/WiredBaseView.tsx index 679eb070..8dd73248 100644 --- a/src/views/wired/views/base/WiredBaseView.tsx +++ b/src/views/wired/views/base/WiredBaseView.tsx @@ -1,9 +1,8 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { GetSessionDataManager } from '../../../../api'; +import { GetSessionDataManager, LocalizeText } from '../../../../api'; import { WiredEvent } from '../../../../events'; import { dispatchUiEvent } from '../../../../hooks/events'; import { NitroCardContentView, NitroCardView } from '../../../../layout'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import { WiredSelectionVisualizer } from '../../common/WiredSelectionVisualizer'; import { useWiredContext } from '../../context/WiredContext'; import { WiredFurniType } from '../../WiredView.types'; diff --git a/src/views/wired/views/conditions/actor-has-hand-item/WiredConditionActorHasHandItem.tsx b/src/views/wired/views/conditions/actor-has-hand-item/WiredConditionActorHasHandItem.tsx index 368b3114..2c680e5b 100644 --- a/src/views/wired/views/conditions/actor-has-hand-item/WiredConditionActorHasHandItem.tsx +++ b/src/views/wired/views/conditions/actor-has-hand-item/WiredConditionActorHasHandItem.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredConditionBaseView } from '../base/WiredConditionBaseView'; diff --git a/src/views/wired/views/conditions/actor-is-team-member/WiredConditionActorIsTeamMemberView.tsx b/src/views/wired/views/conditions/actor-is-team-member/WiredConditionActorIsTeamMemberView.tsx index b616db4b..041857a1 100644 --- a/src/views/wired/views/conditions/actor-is-team-member/WiredConditionActorIsTeamMemberView.tsx +++ b/src/views/wired/views/conditions/actor-is-team-member/WiredConditionActorIsTeamMemberView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredConditionBaseView } from '../base/WiredConditionBaseView'; diff --git a/src/views/wired/views/conditions/actor-is-wearing-badge/WiredConditionActorIsWearingBadgeView.tsx b/src/views/wired/views/conditions/actor-is-wearing-badge/WiredConditionActorIsWearingBadgeView.tsx index cfeef2ce..00c18a4e 100644 --- a/src/views/wired/views/conditions/actor-is-wearing-badge/WiredConditionActorIsWearingBadgeView.tsx +++ b/src/views/wired/views/conditions/actor-is-wearing-badge/WiredConditionActorIsWearingBadgeView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredConditionBaseView } from '../base/WiredConditionBaseView'; diff --git a/src/views/wired/views/conditions/actor-is-wearing-effect/WiredConditionActorIsWearingEffectView.tsx b/src/views/wired/views/conditions/actor-is-wearing-effect/WiredConditionActorIsWearingEffectView.tsx index 4242720a..393cc759 100644 --- a/src/views/wired/views/conditions/actor-is-wearing-effect/WiredConditionActorIsWearingEffectView.tsx +++ b/src/views/wired/views/conditions/actor-is-wearing-effect/WiredConditionActorIsWearingEffectView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredConditionBaseView } from '../base/WiredConditionBaseView'; diff --git a/src/views/wired/views/conditions/date-range/WiredConditionDateRangeView.tsx b/src/views/wired/views/conditions/date-range/WiredConditionDateRangeView.tsx index 22ee43a1..843f8e3a 100644 --- a/src/views/wired/views/conditions/date-range/WiredConditionDateRangeView.tsx +++ b/src/views/wired/views/conditions/date-range/WiredConditionDateRangeView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredConditionBaseView } from '../base/WiredConditionBaseView'; diff --git a/src/views/wired/views/conditions/furni-has-furni-on/WiredConditionFurniHasFurniOnView.tsx b/src/views/wired/views/conditions/furni-has-furni-on/WiredConditionFurniHasFurniOnView.tsx index 1a41594f..f56f9ce4 100644 --- a/src/views/wired/views/conditions/furni-has-furni-on/WiredConditionFurniHasFurniOnView.tsx +++ b/src/views/wired/views/conditions/furni-has-furni-on/WiredConditionFurniHasFurniOnView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredConditionBaseView } from '../base/WiredConditionBaseView'; diff --git a/src/views/wired/views/conditions/furni-has-not-furni-on/WiredConditionFurniHasNotFurniOnView.tsx b/src/views/wired/views/conditions/furni-has-not-furni-on/WiredConditionFurniHasNotFurniOnView.tsx index b9002190..4b5dc97a 100644 --- a/src/views/wired/views/conditions/furni-has-not-furni-on/WiredConditionFurniHasNotFurniOnView.tsx +++ b/src/views/wired/views/conditions/furni-has-not-furni-on/WiredConditionFurniHasNotFurniOnView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredConditionBaseView } from '../base/WiredConditionBaseView'; diff --git a/src/views/wired/views/conditions/furni-matches-snapshot/WiredConditionFurniMatchesSnapshotView.tsx b/src/views/wired/views/conditions/furni-matches-snapshot/WiredConditionFurniMatchesSnapshotView.tsx index 5fdffee8..5f33aa4a 100644 --- a/src/views/wired/views/conditions/furni-matches-snapshot/WiredConditionFurniMatchesSnapshotView.tsx +++ b/src/views/wired/views/conditions/furni-matches-snapshot/WiredConditionFurniMatchesSnapshotView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredConditionBaseView } from '../base/WiredConditionBaseView'; diff --git a/src/views/wired/views/conditions/time-elapsed-less/WiredConditionTimeElapsedLessView.tsx b/src/views/wired/views/conditions/time-elapsed-less/WiredConditionTimeElapsedLessView.tsx index 65e7252b..0b3761ea 100644 --- a/src/views/wired/views/conditions/time-elapsed-less/WiredConditionTimeElapsedLessView.tsx +++ b/src/views/wired/views/conditions/time-elapsed-less/WiredConditionTimeElapsedLessView.tsx @@ -1,6 +1,6 @@ import { FC, useCallback, useEffect, useState } from 'react'; import ReactSlider from 'react-slider'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; diff --git a/src/views/wired/views/conditions/time-elapsed-more/WiredConditionTimeElapsedMoreView.tsx b/src/views/wired/views/conditions/time-elapsed-more/WiredConditionTimeElapsedMoreView.tsx index 5b1fc350..c2e00f13 100644 --- a/src/views/wired/views/conditions/time-elapsed-more/WiredConditionTimeElapsedMoreView.tsx +++ b/src/views/wired/views/conditions/time-elapsed-more/WiredConditionTimeElapsedMoreView.tsx @@ -1,6 +1,6 @@ import { FC, useCallback, useEffect, useState } from 'react'; import ReactSlider from 'react-slider'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; diff --git a/src/views/wired/views/conditions/user-count-in-room/WiredConditionUserCountInRoomView.tsx b/src/views/wired/views/conditions/user-count-in-room/WiredConditionUserCountInRoomView.tsx index 92474103..ffb7f0b9 100644 --- a/src/views/wired/views/conditions/user-count-in-room/WiredConditionUserCountInRoomView.tsx +++ b/src/views/wired/views/conditions/user-count-in-room/WiredConditionUserCountInRoomView.tsx @@ -1,6 +1,6 @@ import { FC, useCallback, useEffect, useState } from 'react'; import ReactSlider from 'react-slider'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredConditionBaseView } from '../base/WiredConditionBaseView'; diff --git a/src/views/wired/views/furni-selector/WiredFurniSelectorView.tsx b/src/views/wired/views/furni-selector/WiredFurniSelectorView.tsx index aef71694..07d92a72 100644 --- a/src/views/wired/views/furni-selector/WiredFurniSelectorView.tsx +++ b/src/views/wired/views/furni-selector/WiredFurniSelectorView.tsx @@ -1,7 +1,7 @@ import { FC, useCallback, useEffect } from 'react'; +import { LocalizeText } from '../../../../api'; import { WiredSelectObjectEvent } from '../../../../events'; import { useUiEvent } from '../../../../hooks/events'; -import { LocalizeText } from '../../../../utils/LocalizeText'; import { WiredSelectionVisualizer } from '../../common/WiredSelectionVisualizer'; import { useWiredContext } from '../../context/WiredContext'; import { WiredFurniSelectorViewProps } from './WiredFurniSelectorView.types'; diff --git a/src/views/wired/views/triggers/avatar-enter-room/WiredTriggerAvatarEnterRoomView.tsx b/src/views/wired/views/triggers/avatar-enter-room/WiredTriggerAvatarEnterRoomView.tsx index c2ae65c3..ec754162 100644 --- a/src/views/wired/views/triggers/avatar-enter-room/WiredTriggerAvatarEnterRoomView.tsx +++ b/src/views/wired/views/triggers/avatar-enter-room/WiredTriggerAvatarEnterRoomView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView'; diff --git a/src/views/wired/views/triggers/avatar-says-something/WiredTriggerAvatarSaysSomethingView.tsx b/src/views/wired/views/triggers/avatar-says-something/WiredTriggerAvatarSaysSomethingView.tsx index 761006f2..6c87f122 100644 --- a/src/views/wired/views/triggers/avatar-says-something/WiredTriggerAvatarSaysSomethingView.tsx +++ b/src/views/wired/views/triggers/avatar-says-something/WiredTriggerAvatarSaysSomethingView.tsx @@ -1,6 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { GetSessionDataManager } from '../../../../../api'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { GetSessionDataManager, LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView'; diff --git a/src/views/wired/views/triggers/bot-reached-avatar/WiredTriggerBotReachedAvatarView.tsx b/src/views/wired/views/triggers/bot-reached-avatar/WiredTriggerBotReachedAvatarView.tsx index b16d0489..0b2f3ea5 100644 --- a/src/views/wired/views/triggers/bot-reached-avatar/WiredTriggerBotReachedAvatarView.tsx +++ b/src/views/wired/views/triggers/bot-reached-avatar/WiredTriggerBotReachedAvatarView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView'; diff --git a/src/views/wired/views/triggers/bot-reached-stuff/WiredTriggerBotReachedStuffView.tsx b/src/views/wired/views/triggers/bot-reached-stuff/WiredTriggerBotReachedStuffView.tsx index 0f1070a5..7dab1532 100644 --- a/src/views/wired/views/triggers/bot-reached-stuff/WiredTriggerBotReachedStuffView.tsx +++ b/src/views/wired/views/triggers/bot-reached-stuff/WiredTriggerBotReachedStuffView.tsx @@ -1,5 +1,5 @@ import { FC, useCallback, useEffect, useState } from 'react'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView'; diff --git a/src/views/wired/views/triggers/execute-once/WiredTriggerExecuteOnceView.tsx b/src/views/wired/views/triggers/execute-once/WiredTriggerExecuteOnceView.tsx index 647ddc9d..c9d84fac 100644 --- a/src/views/wired/views/triggers/execute-once/WiredTriggerExecuteOnceView.tsx +++ b/src/views/wired/views/triggers/execute-once/WiredTriggerExecuteOnceView.tsx @@ -1,6 +1,6 @@ import { FC, useCallback, useEffect, useState } from 'react'; import ReactSlider from 'react-slider'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; diff --git a/src/views/wired/views/triggers/execute-periodically-long/WiredTriggerExecutePeriodicallyLongView.tsx b/src/views/wired/views/triggers/execute-periodically-long/WiredTriggerExecutePeriodicallyLongView.tsx index bb0b1d3d..e2a0e565 100644 --- a/src/views/wired/views/triggers/execute-periodically-long/WiredTriggerExecutePeriodicallyLongView.tsx +++ b/src/views/wired/views/triggers/execute-periodically-long/WiredTriggerExecutePeriodicallyLongView.tsx @@ -1,7 +1,7 @@ import { FriendlyTime } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; import ReactSlider from 'react-slider'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView'; diff --git a/src/views/wired/views/triggers/execute-periodically/WiredTriggerExecutePeriodicallyView.tsx b/src/views/wired/views/triggers/execute-periodically/WiredTriggerExecutePeriodicallyView.tsx index 1570aa72..423e43e4 100644 --- a/src/views/wired/views/triggers/execute-periodically/WiredTriggerExecutePeriodicallyView.tsx +++ b/src/views/wired/views/triggers/execute-periodically/WiredTriggerExecutePeriodicallyView.tsx @@ -1,6 +1,6 @@ import { FC, useCallback, useEffect, useState } from 'react'; import ReactSlider from 'react-slider'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; diff --git a/src/views/wired/views/triggers/score-achieved/WiredTriggerScoreAchievedView.tsx b/src/views/wired/views/triggers/score-achieved/WiredTriggerScoreAchievedView.tsx index b950f48d..6dff18b3 100644 --- a/src/views/wired/views/triggers/score-achieved/WiredTriggerScoreAchievedView.tsx +++ b/src/views/wired/views/triggers/score-achieved/WiredTriggerScoreAchievedView.tsx @@ -1,6 +1,6 @@ import { FC, useCallback, useEffect, useState } from 'react'; import ReactSlider from 'react-slider'; -import { LocalizeText } from '../../../../../utils/LocalizeText'; +import { LocalizeText } from '../../../../../api'; import { useWiredContext } from '../../../context/WiredContext'; import { WiredFurniType } from '../../../WiredView.types'; import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView';