Skip to content

PopupBuilder

Defined in: packages/core/src/renderer/popup-builder.ts:29

Builds popup HTML from configuration and feature properties.

Carries the capability policy, because whether an !html-marked value renders as markup or as escaped text is a trust decision, not a content one. The default policy is untrusted, so a builder constructed with no policy denies raw HTML — the safe default a host that has thought about none of this gets.

new PopupBuilder(policy?): PopupBuilder

Defined in: packages/core/src/renderer/popup-builder.ts:32

ParameterTypeDefault value
policyCapabilityPolicyDEFAULT_POLICY

PopupBuilder

build(content, properties): string

Defined in: packages/core/src/renderer/popup-builder.ts:39

Build HTML string from popup content config and feature properties

ParameterType
contentRecord<string, object[]>[]
propertiesRecord<string, any>

string