Repository navigation
Releases
Releases · pinguxx/Elementum
v0.8.8 — W3C WebMCP, Angular 19+, Anti-Slop Checks & Light/Dark Contrast Calibration
Highlights
W3C WebMCP (Declarative Forms & Imperative Spec Parity)
- Added
toolname,tooldescription,toolautosubmit, andgetToolSchema()to<el-form>so forms auto-register typed JSON Schema tools onnavigator.modelContextwithAbortSignalcleanup and prototype-pollution guards. - Added
discoverFormTools(root),annotations: { readOnlyHint: true }onelementum_snapshot, asyncclient.requestUserInteraction()guard support inregisterWebMCP(), and an interactive live playground atexamples/webmcp.html.
Angular 19+ Standalone Support
- Added standalone Angular 19 starter (
starters/angular/, live demo: https://angular-wc-e102.vercel.app),@angular/coreauto-detection innpx @wcomp/elementum init, andangularsupport in MCPget_setup,get_bundle_plan, and completions.
Deterministic UI Anti-Slop Checks & Theme Studio DESIGN.md
- Added deterministic UI craft warnings (
transition: all, hardcoded inline hex colors, nested<el-card>, invalid:host-context()chains) tolint_accessibility/npx @wcomp/elementum check, plus one-click Copy DESIGN.md in Theme Studio.
Light & Dark Mode WCAG 2.2 AA Contrast Calibration
- Fixed dark-mode ghost button contrast (
2.18:1→8.11:1–9.84:1) and switched all 13 components using solid-fill tokens as foreground text/icons to semantic--el-color-*-texttokens (0remaining). - Calibrated light-mode
--el-color-success(#15803d,5.02:1),--el-text-muted(#5c6370,5.36:1), and added--el-color-info-text.
v0.8.7 — Motion Primitives, Zero :host-context() Dark Mode & Dynamic 113-Component Registry
What's Changed in v0.8.7
Added
- 4 Motion & Data-Viz Components (113 Total): Added
<el-shimmer-text>,<el-hold-button>,<el-usage-ring>, and<el-activity-grid>, synced across CEM, TypeScript definitions, React wrappers, MCP metadata, and catalog/registry demos. - Headless Motion Primitives (
@wcomp/elementum/behaviors): ExtractedcreateSpringEasing(),createFlipBehavior(),createInViewBehavior(), andcreatePointerTracker()intosrc/behaviors/motion.js, plus sliding indicator pills on<el-tabs>and<el-segmented-control>. - Dynamic 113-Component Registry (
examples/registry.html): Rebuilt the registry catalog grid and filters to render all 113 components dynamically fromexamples/catalog-data.js. - Shared Attribute Helpers & Modular MCP: Added
boolAttr()/numAttr()onElementumand split Edge-puremcp/resources.js&mcp/prompts.jsfrommcp/core.js.
Fixed & Hardened
- Cross-Browser Dark-Mode Parity (Zero
:host-context()): Migrated all 109:host-context(...)rules across 38 component stylesheets to semantic--el-*custom properties and host attributes (0/113 dark-mode WCAG 2.2 AA contrast violations). - Security & Lifecycle Cleanup: Hardened Edge/SSR headers, Origin/CSRF guards, timer/effect cleanup, reduced-motion guards, and
<el-separator>horizontal flex-layout sizing.
v0.8.6 — AG-UI Run Isolation & Path Allowlist, Table Filter Highlighting, Form Parity & Dark-Mode WCAG AA Contrast
Highlights in v0.8.6
- AG-UI Run/Surface Isolation & Patch Allowlist (
src/ag-ui.js):createAgUiStore(initialState, options)drops lateSTATE_DELTAand other events carrying stalerunIdor mismatchedsurfaceIdvalues (recording them instore.rejectedEvents/onReject), supportsstrictRunId: true, and enforces RFC 6902 JSON Pointer prefix filtering viaallowedPaths. - Reactive
<el-table filter>& Safe Match Highlighting (src/components/el-table.js): Built-in case-insensitive row filtering, safe DOM-node<mark part="highlight">match highlighting (zeroinnerHTML),highlight-onlymode for server-filtered datasets, and an empty state. - Owning Form &
HTMLFormElementParity (src/elementum.js,src/components/el-form.js): Addedel.formgetter onElementum, base FACEformResetCallback()/formDisabledCallback()fallbacks across all 17 controls, andElFormparity (form,elements,toFormData(),checkValidity(),reportValidity(),requestSubmit()). - Dark-Mode Shadow DOM & WCAG 2.2 AA Contrast (0/109 violations): Fixed 131 dead
:root[data-theme="dark"]Shadow DOM selectors across 33 components, calibrated dark-mode tokens and semantic foreground text tokens (--el-color-primary-text, etc.), and addede2e/dark-mode-contrast.spec.js. - Signal Runtime, React 19 & Keyboard Hardening: Fixed
batch()fault isolation andAsyncSignalself-subscription loops (src/signal.js), React 19 boolean prop syncing (src/react/runtime.js), and WAI-ARIA arrow-key navigation inel-tree-viewandel-calendar. - Exhaustive Formal Invariant Verifier & API Surface Audit: Wired
npm run verify:formal(6 invariants, 6,162 states/topologies) andnpm run audit:api(109 components, 17 FACE controls) into CI. - New Guides: Added
docs/events.mdanddocs/authoring-components.md.
v0.8.5 — A2UI Live Validator & CodePen Export, APG Keyboard E2E, Multi-Arm Benchmark Runner & Toast Stacking Fix
Highlights in v0.8.5
- Expanded Interactive Catalog E2E Sweep (
e2e/catalog-sweep.spec.js): Real-browser click and state-transition verification across key interactive components (el-toast,el-toastersingle-deck deduplication,el-dialog,el-drawer,el-number-flow,el-tabs,el-accordion,el-switch,el-dropdown), non-zero bounding-box checks across all 109 component sections, and vanillainitstarter verification. - A2UI Live Schema/Security Validator & 1-Click CodePen Export (
examples/a2ui.html): Editable JSON/JSONL inspector with live schema & security budget diagnostics (maxDepth: 32,maxComponents: 500,maxStringLength: 65536), Render Edited JSON, Copy Standalone HTML, and Open Surface in CodePen. - Enhanced
npx @wcomp/elementum init [--example](bin/elementum.js): Generates framework demo components (src/ElementumDemo.tsx,ElementumDemo.vue,ElementumDemo.svelte) and prints platform-aware next steps. - Multi-Arm AI-Agent Benchmark Matrix Runner (
benchmarks/agent-eval/run-matrix.js,npm run bench:agents): Automatically discovers and scores all submissions underbenchmarks/agent-eval/submissions/using a shared Chromium browser and static server, outputting aggregate WCAG 2.2 AA and responsive overflow statistics. - WAI-ARIA APG Keyboard-Only State Machine E2E Suite (
e2e/a11y-keyboard-apg.spec.js): Real-browser keyboard state-machine testing across all 10 complex composite widgets (el-dialog,el-alert-dialog,el-drawer,el-tabs,el-command,el-autocomplete,el-calendar,el-table,el-tree-view,el-navigation-menu). - Interactive 48-Second Workflow Walkthrough & CodePen Starter on Homepage (
index.html): 4-step interactive<el-tabs>walkthrough and 1-click Open Starter in CodePen launcher. - Toast Deck Deduplication & Hover Expand (
src/components/el-toast.js) & Drawer Button Click Fix (src/components/el-drawer.js).
v0.8.4 — Vanilla Starter Dark Theme Canvas, Toast Wiring & ElToaster Instance Methods
Fixed
- Vanilla Starter
index.htmlDark Mode & Toast Wiring (bin/elementum.js): Updated generatedindex.htmlbodybackground tovar(--el-step-1, var(--el-surface-base))andelementum-tokens.cssto--el-color-primaryso toggling<el-theme-switch>smoothly switches the entire page canvas between light and dark themes; wiredTrigger Toastand modalCreatebuttons totoast.info()/toast.success()reading<el-input>signal.value.value. <el-toaster>Instance Convenience Methods (src/components/el-toast.js): Added.show(),.success(),.error(),.warning(),.info(), and.clear()instance methods onElToaster(delegating to thetoastmanager) and acceptedopts.titleas a fallback foropts.message.
v0.8.3 — Windows PowerShell & Symlink CLI Fix + Starter index.html for Vanilla Projects
Fixed
- Windows & Symlink
npx @wcomp/elementum init/checkExecution (bin/elementum.js,mcp/server.js): Replacednew URL(import.meta.url).pathname(which prefixes/C:/on Windows and failspath.resolvecomparison againstprocess.argv[1]) withfileURLToPath(import.meta.url)+fs.realpathSyncsymlink resolution sonpx @wcomp/elementum initandnpx @wcomp/elementum checkexecute reliably on Windows PowerShell/CMD, macOS, and Linux. - Vanilla Project Starter
index.html(bin/elementum.js): Whennpx @wcomp/elementum initdetects avanillaproject without an existingindex.html, it now generates a ready-to-openindex.htmlstarter app alongside.mcp.json,.cursor/mcp.json,elementum.rules.md, andelementum-tokens.css.
v0.8.2 — Explicit A2UI Security Boundaries, Multi-Format MCP Snippets, CLI Linter & IDE Autocomplete
v0.8.2 — Explicit A2UI Security Boundaries, Multi-Format MCP Snippets, CLI Linter & IDE Autocomplete
Added
- Explicit A2UI Security Boundary (
@wcomp/elementum/a2ui,docs/a2ui.md): Added configurablemaxDepth(default32),maxComponents(default500), andmaxStringLength(default65,536) resource caps (A2UI_SECURITY_DEFAULTS), reactive URL scheme verification inside signaleffect()s (href,src,action,formaction,poster,xlink:href), dangerous DOM sink/prototype stripping (innerHTML,outerHTML,srcdoc,__proto__), andallowedTypesoption alias. - MCP
validate_a2ui_messages& Multi-Formatgenerate_snippet(mcp/core.js): Expanded the MCP server to 11 tools with declarative A2UI v0.8/v0.9 JSON validation andformat: 'html' | 'react' | 'vue' | 'a2ui'snippet generation. - Local CI / Pre-Commit Linter (
npx @wcomp/elementum check): Addedelementum check [paths...] [--json]inbin/elementum.jsto scan.html,.jsx,.tsx,.vue, and.sveltefiles againstvalidate_component_usageandlint_accessibility. - Single-File Context & IDE Autocomplete (
llms-full.txt,vscode.html-custom-data.json,src/ide-types.d.ts): Addednpm run docs:idegeneratingllms-full.txt, VS Code HTML Custom Data, and global Vue 3 + Svelte tag declarations. - Declarative
<el-dialog>Property Setter & Catalog CodePen Launcher: Addeddialog.open = true | falsegetter/setter onElDialogand 1-click Open in CodePen ↗ toexamples/index.html. - Benchmark Provenance & Scope Qualifications (
benchmarks/agent-eval/RESULTS.md): Documented tested model ID, temperature, single-pass turn budget, scoring runtime versions, raw output links, and explicit experimental scope limitations.
Fixed
- Release Version Sync Gate (
tools/check-release-sync.js,showcase.html,docs/stability-and-1.0.md): Extendednpm run check:releaseto verify topmostCHANGELOG.mdentry,showcase.htmlaudit/evaluator card version references, anddocs/stability-and-1.0.mdevaluator headings.
v0.8.1 — Fix Vite/Rollup sideEffects Tree-Shaking & UI Polish
Hotfix Highlights
- Vite / Rollup Custom Element Registration (
package.json): Added./src/index.jsand./src/react/index.jstosideEffectsalongside./src/components/*.jsand./src/tokens.cssso bundlers never tree-shake away custom element registration when importing@wcomp/elementumor@wcomp/elementum/react. - Scoped Dark Mode (
src/tokens.css): Added[data-theme="dark"]alongside:root[data-theme="dark"]for scoped dark containers. - Button Height Normalization (
src/components/el-button.js): Normalizedmin-heightandline-heightacrosssm/md/lgvariants. - Switch Track Collapse (
src/components/el-switch.js): Addedflex-shrink: 0to.track.
v0.8.0 — A2UI Renderer, 100/100 Edge MCP, 109/109 Production Verified & Init CLI
Highlights
- Declarative A2UI Renderer (
@wcomp/elementum/a2ui): Zero-dependency A2UI JSON surface renderer (createA2UiSurface) with strict locked-catalog allowlist, two-way micro-signal bindings, TypeScript types, and live playground with JSONL agent stream simulation (examples/a2ui.html). - Zero-Dep Project Setup CLI (
npx @wcomp/elementum init): Auto-detects Next.js, React, Vue, Svelte, Vite, or Vanilla, writes.mcp.json&.cursor/mcp.json, and drops inelementum.rules.md+ starter tokens. - 100/100 Vercel Edge MCP Server: Pure-JS
mcp/core.js+mcp/edge.jswith zero Node built-ins, MCP2025-03-26/2025-06-18negotiation, JSON-RPC batching, andmcp/component-metadata.json. - 109 / 109 Production Verified + Hard-8 Stress Suite: 100% Production Verified coverage in
QUALITY.md, plus dedicated Playwright +@axe-core/playwrightstress tests for 1,200-row<el-table>, nested<el-dialog>, and RTL mobile touch viewports. - 150x+
<el-table>Speedup & Tree-Shaking:DocumentFragmentfast-path rendering inel-table(1,200 rows in < 1s) and strict"sideEffects"inpackage.json. - Developer & Agent Ergonomics: Auto-generated
::part()& token reference (docs/styling-reference.md), 1-page Tailwind guide (docs/tailwind-guide.md), drop-in agent rules (docs/agent-rules-snippet.md),llms.txt,AGENTS.md, catalog HTML/React/Vue/A2UI copy tabs, upgraded Theme Studio, and 4-arm AI benchmark results (benchmarks/agent-eval/RESULTS.md). - Fixes: Single-event
el-input/el-textarea(stopPropagation),el-dialogEscapedata-statesync,el-badgeWebKit contrast,el-autocompletehighlight contrast,el-dropdown?inertaria-hidden-focus, and A2UIChoiceChipselection race.
See CHANGELOG.md for full details.
v0.7.0 — Hardened React Wrappers, Multi-Framework Starters & 87/109 Production Verified
Highlights
Added
- Multi-Framework Starter Templates & 3-Way Comparison (
starters/): Added copy-paste, StackBlitz-ready starter projects for Vanilla HTML CDN, Next.js App Router + DSD SSR, React 19 + TypeScript, Vue 3, Svelte 5, and AI Chat UI, plus a measured 3-way Team Directory comparison across React, Vue 3, and Vanilla. - Ergonomic
renderComponentToDSDOptions Overload (src/ssr.js): Added 2-argumentrenderComponentToDSD(tagName, { children, ...attributes })support alongside the existing 4-argument class signature. - Expanded Real-Browser E2E & WCAG 2.2 AA Suite (
e2e/core-and-ai-suite.spec.js): Added Playwright +@axe-core/playwrightaudits across core form controls, navigation/overlays, data display, the full AI specialist suite, and live browser execution ofexamples/ledgerflow.html, raisingQUALITY.mdProduction Verified coverage from 42 / 109 to 87 / 109 (79.8%).
Changed
- Hardened
@wcomp/elementum/reactRuntime & Strict TypeScript:- Switched complex object/array property sync to isomorphic
useLayoutEffect(pre-paint in browser, zero SSR warnings in Node.js). - Tracked applied object-prop keys and initial element defaults so removing a React prop cleanly resets stale signals and properties.
- Removed loose
[prop: string]: any;fromElementumReactBaseProps, addeddata-*,aria-*, FACE (name,form), and standard DOM event types, and derived unwrappedSignal<T>component props automatically. - Verified against real React 18 & React 19 consumers in
tools/verify-react.js.
- Switched complex object/array property sync to isomorphic
Fixed
<el-toaster>Empty-Viewport Click Interception: Setpointer-events: noneon.toaster-viewportand.toast-listso empty toasters never block clicks on bottom-right page elements.- WCAG 2.2 AA Accessibility Fixes: Fixed list semantics in
<el-breadcrumb>/<el-breadcrumb-item>, target-size obscuration in<el-rating>, and accessible spinbutton labeling in<el-number-field>.