deploy: v0.12 fix 存档key名

This commit is contained in:
2026-06-24 03:09:02 +00:00
parent 7a08d49fe3
commit e0a5281119
58743 changed files with 7297269 additions and 39505 deletions
@@ -0,0 +1,41 @@
import type { BundlerState, ClientOptions, ListenerFunction, SandboxSetup, SandpackError, UnsubscribeFunction } from "../../types";
import { SandpackClient } from "../base";
import Protocol from "./file-resolver-protocol";
import { IFrameProtocol } from "./iframe-protocol";
import { type SandpackRuntimeMessage } from "./types";
export declare class SandpackRuntime extends SandpackClient {
fileResolverProtocol?: Protocol;
bundlerURL: string;
bundlerState?: BundlerState;
errors: SandpackError[];
selector: string;
element: Element;
unsubscribeGlobalListener: UnsubscribeFunction;
unsubscribeChannelListener: UnsubscribeFunction;
iframeProtocol: IFrameProtocol;
constructor(selector: string | HTMLIFrameElement, sandboxSetup: SandboxSetup, options?: ClientOptions);
private createBundlerURL;
private serviceWorkerHandshake;
private handleWorkerRequest;
setLocationURLIntoIFrame(): void;
destroy(): void;
updateOptions(options: ClientOptions): void;
updateSandbox(sandboxSetup?: SandboxSetup, isInitializationCompile?: boolean): void;
dispatch(message: SandpackRuntimeMessage): void;
listen(listener: ListenerFunction): UnsubscribeFunction;
/**
* Get the URL of the contents of the current sandbox
*/
getCodeSandboxURL(): Promise<{
sandboxId: string;
editorUrl: string;
embedUrl: string;
}>;
getTranspilerContext: () => Promise<Record<string, Record<string, unknown>>>;
getTranspiledFiles: () => Promise<Array<{
path: string;
code: string;
}>>;
private getFiles;
private initializeElement;
}