namespace XFESystem.Documents;
/// The renderer must serve only bundled assets, disable host-object access, and handle navigation explicitly.
public sealed record PreviewDocument(string Html, bool RequiresJavaScript, string ContentSecurityPolicy);
/// Execution request for an actual isolated JS renderer; creating a plan does not execute JavaScript.
public sealed record JavaScriptPreviewPlan(
string Html, TimeSpan Timeout, long MemoryLimitBytes,
bool RequiresSeparateProcess = true, bool AllowNetwork = false, bool AllowHostObjects = false,
string IframeSandbox = "allow-scripts");