Skip to content

Add Interactive Surface data hook support#21

Merged
Foscat merged 3 commits into
mainfrom
1.3.0
Jul 8, 2026
Merged

Add Interactive Surface data hook support#21
Foscat merged 3 commits into
mainfrom
1.3.0

Conversation

@Foscat

@Foscat Foscat commented Jul 8, 2026

Copy link
Copy Markdown
Owner

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.

Summary

Describe the change and why it is needed.

Scope

  • bug fix
  • feature
  • docs
  • tests
  • release/chore

Validation

List commands you ran and results.

npm run lint:css
npm run test:install
npm test
npm run pack:dry

API and Behavior Impact

  • no public API changes
  • class API changed
  • token contract changed
  • accessibility behavior changed
  • motion behavior changed
  • browser behavior changed

Documentation

  • README updated (if needed)
  • wiki updated (if needed)
  • CHANGELOG updated (if needed)

Notes

Anything reviewers should focus on.

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.
@Foscat Foscat self-assigned this Jul 8, 2026
Copilot AI review requested due to automatic review settings July 8, 2026 06:57
@Foscat Foscat added documentation Improvements or additions to documentation enhancement New feature or request labels Jul 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Interactive Surface CSS to support runtime-assigned “surface intent” via data attributes, adds standalone depth defaults for data-surface-level, and refreshes docs/demo/release metadata for the 1.3.0 contract.

Changes:

  • Add data-surface-variant="…" selectors as aliases for existing .variant-* classes.
  • Add per-level defaults for data-surface-level="1|2|3" (depth + state-layer opacity hooks) and expand Playwright coverage.
  • Update docs/demo/release notes and bump package version to 1.3.0.

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
wiki/Token-Reference.md Documents UI Style Kit 2.x bridge expectations and new per-level token hooks.
wiki/Testing-and-Quality.md Updates stated Playwright coverage to include data-hook parity and level defaults.
wiki/Installation-and-Usage.md Adds data-attribute usage examples and clarifies bridge + standalone hook behavior.
wiki/Home.md Updates displayed current version/tag to 1.3.0 and adds data-hook example.
wiki/Getting-Started.md Adds runtime-assigned surface intent example using data attributes.
wiki/API-Reference.md Documents data attribute API for variants and introduces surface level documentation.
tests/interactive-surface.spec.ts Adds tests for data-variant parity and surface-level default depth/state values.
tests/example.spec.ts Adds test ensuring token editor modal semantics exist only while open.
README.md Adds data attribute API docs and ecosystem integration section; updates release checklist example tag.
package.json Bumps package version to 1.3.0.
package-lock.json Updates lockfile package version entries to 1.3.0.
interactive-surface.css Implements data-surface-variant aliases and adds standalone per-level defaults for data-surface-level.
index.html Updates demo markup to use data hooks, refines token editor modal semantics, and refreshes embedded docs snippets.
docs/superpowers/specs/2026-07-08-interactive-surface-data-hooks.md Adds a spec/follow-up doc describing the new public hooks and verification targets.
CHANGELOG.md Adds 1.3.0 release notes for the new data hooks, level defaults, and coverage/docs updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/interactive-surface.spec.ts
Comment thread interactive-surface.css
Comment thread interactive-surface.css
Comment thread interactive-surface.css
Comment thread index.html Outdated
Comment thread CHANGELOG.md
Copilot AI added 2 commits July 8, 2026 07:12
- CSS: Level-1/2/3 rules now set internal --_is-* vars with public bridge
  tokens as first fallback instead of writing to public tokens, preserving
  import-order independence
- Test: Resolve state-layer opacity values via a probe element's opacity
  property rather than reading raw custom-property token streams
- index.html: Replace @latest with @<version> placeholder in embedded CDN
  code block for reproducibility
Copilot finished work on behalf of Foscat July 8, 2026 07:14
@Foscat Foscat merged commit e4a074f into main Jul 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants