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