@persona/layout-editor-remote-module
Version:
Shared manifest format, Vite plugin, and host/iframe bridge for remotely-defined dashboard layout modules in Persona dashboard apps.
20 lines (18 loc) • 796 B
text/typescript
import { z } from "zod";
//#region src/bridge/protocol.d.ts
/**
* Runtime facts about where the module is rendered, owned by the host and not
* derivable by the module itself. Distinct from `data`, which is the module's
* persisted config.
*/
declare const remoteModuleContextSchema: z.ZodObject<{
layoutType: z.ZodType<"account" | "case" | "transaction" | (string & {}), unknown, z.core.$ZodTypeInternals<"account" | "case" | "transaction" | (string & {}), unknown>>;
layoutObjectId: z.ZodNullable<z.ZodString>;
isReadOnly: z.ZodBoolean;
isInEditor: z.ZodBoolean;
isUsingStubData: z.ZodBoolean;
dynamicHeight: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
type RemoteModuleContext = z.infer<typeof remoteModuleContextSchema>;
//#endregion
export { RemoteModuleContext as t };