fix circular dep

This commit is contained in:
Brandon Thomas committed 2025-05-27 14:24:36 -04:00
1 parent 165a7d74b3
commit 6b1f456753
4 files changed
+63 -7059

No files matched your search

@@ -0,0 +1,43 @@
// NB(bt,2025-05-27): This is also declared in "editor3d".
// I'm duplicating here to remove a circular dependency.
// We should consolidate definitions eventually.
export enum FilterEngineCategories {
ANIMATION = "animation",
AUDIO = "audio",
CHARACTER = "character",
CREATURE = "creature",
EXPRESSION = "expression",
IMAGE_PLANE = "image_plane",
LOCATION = "location",
OBJECT = "object",
SCENE = "scene",
SET_DRESSING = "set_dressing",
SKYBOX = "skybox",
VIDEO_PLANE = "video_plane",
}
// NB(bt,2025-05-27): This is also declared in "editor3d".
// I'm duplicating here to remove a circular dependency.
// We should consolidate definitions eventually.
export enum UploaderStates {
ready,
uploadingAsset,
uploadingImage,
uploadingCover,
settingCover,
success,
assetError,
coverCreateError,
coverSetError,
imageCreateError,
}
export interface UploaderState {
status: UploaderStates;
errorMessage?: string;
data?: string;
}
export const initialUploaderState = {
status: UploaderStates.ready,
};
@@ -4,8 +4,12 @@ import { Modal } from "@storyteller/ui-modal";
import { UploadAssetError } from "./UploadAssetError";
import { UploadSuccess } from "./UploadSuccess";
import { UploadFiles } from "./UploadFiles";
import { FilterEngineCategories, UploaderStates } from "~/enums";
import { UploaderState, initialUploaderState } from "~/models";
import {
FilterEngineCategories,
UploaderStates,
UploaderState,
initialUploaderState
} from "./Types";
interface Props {
onClose: () => void;
@@ -1,3 +1,4 @@
export * from "./UploadModal";
export * from "./UploadAssetError";
export * from "./UploadSuccess";
export * from "./Types";
+13 -7057
View File
File diff suppressed because it is too large. Load diff