Add public work read model and smooth puzzle transitions

This commit is contained in:
kdletters
2026-05-26 16:38:27 +08:00
parent 545f315cbc
commit aeee782fe0
47 changed files with 2679 additions and 79 deletions

View File

@@ -3,6 +3,7 @@ export type * from './creationAudio';
export type * from './hyper3d';
export type * from './jumpHop';
export type * from './puzzleCreativeTemplate';
export type * from './publicWork';
export type * from './visualNovel';
export type * from './barkBattle';
export type * from './woodenFish';

View File

@@ -0,0 +1,38 @@
export interface PublicWorkGalleryEntryResponse {
sourceType: string;
workId: string;
profileId: string;
sourceSessionId?: string | null;
publicWorkCode: string;
ownerUserId: string;
authorDisplayName: string;
worldName: string;
subtitle: string;
summaryText: string;
coverImageSrc?: string | null;
coverAssetId?: string | null;
themeTags: string[];
playCount: number;
remixCount: number;
likeCount: number;
recentPlayCount7d?: number;
publishedAt?: string | null;
updatedAt: string;
sortTimeMicros: number;
}
export interface PublicWorkDetailEntryResponse
extends PublicWorkGalleryEntryResponse {
detailPayloadJson: string;
}
export interface PublicWorkGalleryResponse {
items: PublicWorkGalleryEntryResponse[];
hasMore?: boolean;
nextCursor?: string | null;
totalCount?: number;
}
export interface PublicWorkDetailResponse {
item: PublicWorkDetailEntryResponse;
}

View File

@@ -136,6 +136,7 @@ export interface DragPuzzlePieceRequest {
export interface AdvancePuzzleNextLevelRequest {
targetProfileId?: string | null;
preferSimilarWork?: boolean;
}
export interface UsePuzzleRuntimePropRequest {