Liking cljdoc? Tell your friends :D

baredom.dev.hot-reload

Dev-only style hot-reload. Re-injects updated CSS into live component instances after shadow-cljs hot-reload so style changes are visible without a full page refresh.

Dev-only style hot-reload. Re-injects updated CSS into live component
instances after shadow-cljs hot-reload so style changes are visible
without a full page refresh.
raw docstring

baredom.dev.x-debug-registry

Dev-only registry mapping tag names to public-api metadata for all BareDOM components. Used by x-debug to introspect component state.

Dev-only registry mapping tag names to public-api metadata for all
BareDOM components. Used by x-debug to introspect component state.
raw docstring

baredom.dev.x-debug.model

Constants and CSS for the dev-only x-debug visual debugging overlay.

Constants and CSS for the dev-only x-debug visual debugging overlay.
raw docstring

baredom.dev.x-debug.x-debug

Dev-only visual debug overlay for BareDOM components. Activates via ?baredom-debug URL param or window.BAREDOM_DEBUG = true. Injects dashed outlines and tag labels into component shadow roots, wraps prototype callbacks for console logging, and provides a floating inspection panel.

Dev-only visual debug overlay for BareDOM components.
Activates via ?baredom-debug URL param or window.BAREDOM_DEBUG = true.
Injects dashed outlines and tag labels into component shadow roots,
wraps prototype callbacks for console logging, and provides a floating
inspection panel.
raw docstring

baredom.dev.x-trace-history.dock-css

Stylesheet string for the x-trace-history dock. Lives in its own namespace so model.cljs stays focused on data transforms and the dock layer can require this one string when attaching its shadow.

Stylesheet string for the x-trace-history dock. Lives in its own
namespace so `model.cljs` stays focused on data transforms and the
dock layer can require this one string when attaching its shadow.
raw docstring

baredom.dev.x-trace-history.highlight

Live-element outline for the x-trace-history dock.

When the user selects a record in the dock, this namespace draws a high-contrast magenta outline around the live DOM element identified by the record's componentId — a solid 3px border with a triple box-shadow ring (dark + white + magenta glow) that reads on both light and dark backgrounds, a faint magenta inner fill, and a one-shot attention pulse on each new selection. The overlay is a fixed-position layer mounted into the shared overlay root (which lives under the nearest <x-theme> ancestor, outside the dock's marked-internal subtree). It does NOT mutate the target element — no CSS injection into its shadow root, no inline style writes on the host.

The layer is created once per dock lifetime and shown/hidden as selection changes. Scroll and resize listeners (installed by the dock) call reposition! through a single coalesced rAF so the box stays aligned as the page moves.

Recorder-pollution contract: every write that maintains the overlay is either a native DOM call (.style.*, .appendChild, scrollIntoView) or routes through du/setv-untraced!, so the trace timeline is not polluted by the highlight machinery.

Live-element outline for the x-trace-history dock.

When the user selects a record in the dock, this namespace draws a
high-contrast magenta outline around the live DOM element
identified by the record's componentId — a solid 3px border with a
triple box-shadow ring (dark + white + magenta glow) that reads on
both light and dark backgrounds, a faint magenta inner fill, and a
one-shot attention pulse on each new selection. The overlay is a
fixed-position layer mounted into the shared overlay root (which
lives under the nearest <x-theme> ancestor, outside the dock's
marked-internal subtree). It does NOT mutate the target element —
no CSS injection into its shadow root, no inline style writes on
the host.

The layer is created once per dock lifetime and shown/hidden as
selection changes. Scroll and resize listeners (installed by the
dock) call reposition! through a single coalesced rAF so the box
stays aligned as the page moves.

Recorder-pollution contract: every write that maintains the overlay
is either a native DOM call (.style.*, .appendChild, scrollIntoView)
or routes through du/setv-untraced!, so the trace timeline is not
polluted by the highlight machinery.
raw docstring

baredom.dev.x-trace-history.model

Pure functions and constants for x-trace-history: schema, ring-buffer ops, JS record construction, dock filtering / preview formatting, dock CSS, activation predicate. Effects (atom mutation, hook installation, JS API, DOM mounting) live in recorder.cljs / x_trace_history.cljs.

Pure functions and constants for x-trace-history: schema, ring-buffer ops,
JS record construction, dock filtering / preview formatting, dock CSS,
activation predicate. Effects (atom mutation, hook installation, JS API,
DOM mounting) live in recorder.cljs / x_trace_history.cljs.
raw docstring

baredom.dev.x-trace-history.recorder

Effects layer for x-trace-history: state atom, hook installation, activation gating, JS API at window.BareDOM.traceHistory.*, a synchronous cause-id chain via a wrapper around EventTarget.prototype.dispatchEvent, and a small subscriber API consumed by the dock UI.

See docs/x-trace-history-roadmap.md for the broader plan.

Effects layer for x-trace-history: state atom, hook installation,
activation gating, JS API at window.BareDOM.traceHistory.*, a
synchronous cause-id chain via a wrapper around
EventTarget.prototype.dispatchEvent, and a small subscriber API
consumed by the dock UI.

See docs/x-trace-history-roadmap.md for the broader plan.
raw docstring

baredom.dev.x-trace-history.x-trace-history

Dev-only floating dock for x-trace-history.

When activated (?baredom-trace-history or window.BAREDOM_TRACE_HISTORY), register! installs the recorder hooks (via recorder/register!), defines a <x-trace-history> custom element, and auto-mounts one to <body>. The dock subscribes to recorder updates and renders an SVG timeline: one lane per component instance (Y), event time on X, dots coloured by category. Hover for tooltip, click to open the JSON detail pane.

Dev-only floating dock for x-trace-history.

When activated (?baredom-trace-history or window.BAREDOM_TRACE_HISTORY),
register! installs the recorder hooks (via recorder/register!), defines a
`<x-trace-history>` custom element, and auto-mounts one to <body>. The
dock subscribes to recorder updates and renders an SVG timeline: one
lane per component instance (Y), event time on X, dots coloured by
category. Hover for tooltip, click to open the JSON detail pane.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close