From 06759e642f66538ee76ce3ac7d35b3dbe9ca0e3f Mon Sep 17 00:00:00 2001 From: Foscat Date: Wed, 8 Jul 2026 01:52:54 -0500 Subject: [PATCH 1/3] Add Interactive Surface data hook support Add data-surface-variant aliases and standalone surface-level defaults for bridge-generated and runtime-assigned markup. Update docs, demo coverage, release notes, and package metadata for the 1.3.0 API contract. --- CHANGELOG.md | 13 ++++ README.md | 30 ++++++-- ...26-07-08-interactive-surface-data-hooks.md | 36 ++++++++++ index.html | 61 +++++++++++++--- interactive-surface.css | 54 ++++++++++++-- package-lock.json | 4 +- package.json | 2 +- tests/example.spec.ts | 14 ++++ tests/interactive-surface.spec.ts | 72 +++++++++++++++++++ wiki/API-Reference.md | 18 ++++- wiki/Getting-Started.md | 8 +++ wiki/Home.md | 12 +++- wiki/Installation-and-Usage.md | 14 +++- wiki/Testing-and-Quality.md | 2 + wiki/Token-Reference.md | 18 ++++- 15 files changed, 327 insertions(+), 31 deletions(-) create mode 100644 docs/superpowers/specs/2026-07-08-interactive-surface-data-hooks.md diff --git a/CHANGELOG.md b/CHANGELOG.md index bb56375..21e0333 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,19 @@ All notable changes to this package are documented in this file. ## Unreleased +## 1.3.0 - 2026-07-08 + +### Added + +- Added first-class `data-surface-variant` support for `primary`, `secondary`, `accent`, `subtle`, `warning`, and `danger` so runtime-assigned surface hooks match the existing `.variant-*` class API. +- Added standalone `data-surface-level="1"`, `"2"`, and `"3"` depth defaults with matching hover, active, and focus state-opacity hooks. +- Added Playwright coverage for data-variant parity and data-level depth defaults. + +### Changed + +- Updated README, wiki, and demo guidance to document standalone interaction hooks, UI Style Kit 2.x bridge usage, and the ecosystem boundary between layout, visual paint, and interaction states. +- Updated embedded demo docs to avoid stale version-pinned CDN examples. + ## 1.2.4 - 2026-06-22 ### Added diff --git a/README.md b/README.md index 9d32952..874f026 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,12 @@ CDN: ``` +```html + +``` + ```html + @@ -1190,7 +1193,7 @@

Card surfaces

ARIA-aware state

Pressed style can come from semantic attributes instead of custom state classes.

- @@ -1338,9 +1341,9 @@

README and wiki links

-