createComparison from @groundsgg/motd/dom renders several client previews
from one document. The library supplies no networking or persistence; every
context comes from the host. Contexts may use different profiles, client
protocols, GUI scales, backgrounds, placeholder values and base status data.
getDiagnostics() returns a map
keyed by client ID; returned maps and arrays can be changed without altering the
comparison’s records.
The first client is the reference. getDifferences() reports which evaluated
server-status fields differ from it: version, players (including hover
samples), description or favicon. Panels label these differences. This is a
comparison of evaluated status data, not a promise that different font profiles
or backgrounds produce identical pixels. Layout differences remain visible in
the previews and diagnostics. Reordering clients changes the reference.
React
The optional React entry point exposes the same options:className
and style apply to the outer host. Core and DOM consumers do not need React.
Wide native canvases scroll inside their panel instead of overflowing the page.
The grid becomes a single column on narrow screens. Each context’s
animations: false and the existing reduced-motion behavior apply independently.
Labels
The sharedlabels option also reaches each preview. Comparison-specific keys
are comparisonProtocol, comparisonScale, comparisonBackground,
comparisonReference, comparisonDifferences, comparisonSame,
comparisonDiagnostics, comparisonEmpty, and comparisonField.version,
comparisonField.players, comparisonField.description,
comparisonField.favicon. Client labels are supplied by the host; diagnostic
messages retain the existing diagnostic contract.