/** * Custom Element that shows a JavaScript object's properties as syntax-highlighted JSON. * * The element will respect `prefers-color-scheme` by default, but if you use the * CSS Custom Properties listed below, you should customize both light and dark themes. * * ❤️ Proudly uses [open-wc](https://open-wc.org) tools and recommendations. * * @example * ```javascript * import '/path/to/json-viewer.js'; * const viewer = document.createElement('json-viewer'); * viewer.allowlist = ['foo', 'bar']; * viewer.object = { * foo: 'foo', * bar: 'bar', * baz: 'baz', * }; * ``` * * @example * ```html * * * * * * ``` * * ![Example Markup](example.png) * * @cssprop --json-viewer-color - Color for generic text. Light white, Dark #212121 * @cssprop --json-viewer-background - Color for generic text. Light #212121, Dark white * @cssprop --json-viewer-key-color - Color for keys. Light #f76707, Dark #ff922b * @cssprop --json-viewer-boolean-color - Color for booleans. Light #f76707, Dark #22b8cf * @cssprop --json-viewer-number-color - Color for numbers. Light #0ca678, Dark #51cf66 * @cssprop --json-viewer-null-color - Color for nulls. Light #e03131, Dark #ff6b6b * @cssprop --json-viewer-string-color - Color for strings. Light #0c8599, Dark #22b8cf * * @csspart code - the wrapping `` element * * @csspart key - property keys * @csspart boolean - boolean property values * @csspart number - number property values * @csspart null - null property values * @csspart string - string property values * * @fires json-parse-error when JSON parse fails * * @slot - JSON scripts or JSON strings appended as text nodes will be parsed and displayed */ export class JsonViewer extends HTMLElement { static get is(): string; static get observedAttributes(): string[]; set object(arg: any); /** * JavaScript Object to display * Setting this property will override `