Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# The check on each pull request to main and each push to it, every pin installed first.
# See docs/release.md
# Adapted from web-foundation (ceaab61): .github/workflows/ci.yml, its mise-action at its latest.

name: CI

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Publishes the release a pushed vX.Y.Z tag cuts, dispatched by hand with the tag.
# See docs/release.md
# Adapted from web-foundation (ceaab61): .github/workflows/release.yml, its mise-action at its latest.
name: Release

on:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Adapted from spike-html-apps-components (10dde51): .gitignore, with the editor and OS files.
.claude/plans/
.claude/briefs/

Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Prettier's files: the code, the JSON, and the stylesheets.
# See docs/development.md
# From spike-html-apps-components (10dde51): .prettierignore.
*
!*/
!*.js
Expand Down
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<!-- Adapted from web-foundation (ceaab61): CHANGELOG.md, for @standards-lab/web-components, with
none of spike-html-apps-components' versions. -->

# Changelog

All notable changes to `@standards-lab/web-components` are documented here. The format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the package adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed

- The repository's tooling takes marathon 0.24.0, pnpm 12.23.0, and typescript-eslint 8.74.0.

## [0.2.0] - 2026-11-22

### Removed
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<!-- Adapted from spike-html-apps-components (10dde51): README.md, for @standards-lab/web-components. -->

# web-components

The Lit components of the standards-lab web client stack: fourteen elements with a shadow root
Expand Down Expand Up @@ -216,9 +214,7 @@ the procedure.

## Provenance

The package is seeded by copy from spike-html-apps-components at 10dde51, the parent of its
v0.10.3 pack commit, and moved onto web-foundation v0.3.0 and web-tooling v0.1.0. Each copied file
that takes comments names each of its sources in a provenance line.
The package's lineage is in the workspace's [references catalog](https://github.com/standards-lab/org/blob/main/references.md).

## License

Expand Down
25 changes: 5 additions & 20 deletions STANDARDS.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
<!-- Adapted from spike-html-apps-components (10dde51): STANDARDS.md, for
@standards-lab/web-components and its hand-cut releases. -->

# web-components standards

The judgement calls the standards-reviewer applies to web-components, beyond what `mise run check`
enforces: each one line, with a pointer to the architecture page that applies where one does. What
the check enforces is never restated here. The `standard` task points them at the Web Elemental
standard once it is founded (`standards-lab/context/web-client.md`, "Toward Web Elemental").
the check enforces is never restated here. web-components is a Web Elemental member
(`architecture/standards/web-elemental/README.md`).

The architecture pages that apply, in the architecture repository:

- `architecture/principles/minimal-footprint.md`: lit and marked the only runtime dependencies,
and each devDependency deliberate; a consumer installs the tag with no build step.
- `architecture/principles/rolling-currency.md`: every tool, package, and action pin explicit and
at its latest, and the foundation's peer range admitting its latest release.
at its latest.
- `architecture/principles/independent-releases.md`: the package releases on its own tags.
- `architecture/principles/downward-dependencies.md`: the components sit on the foundation and
import nothing above them.
Expand Down Expand Up @@ -45,32 +42,20 @@ The architecture pages that apply, in the architecture repository:
built on `@standards-lab/web-foundation` and `@standards-lab/web-icons`, its two peers.
- lit and marked are each pinned exactly, and only the Markdown module imports marked
(`test/unit/marked.test.ts` enforces it).
- `dist/` lives only in a release tag's tree, the pack, never on a branch.
- Releases are plain `vX.Y.Z` annotated tags on a pack commit whose one parent is main's merge
commit, cut by hand on a green check from `package.json`'s version, each with its `CHANGELOG.md`
section, and never changed or re-cut; the release workflow, dispatched by hand with the pushed
tag and never on a push, only verifies and publishes it (`standards-lab/context/web-client.md`,
"Packaging and release").
- Its releases, `dist/`, how it resolves the layers below, and its pins follow
`architecture/standards/web-elemental/principles/packages-and-releases.md`.

## Layers

- A component takes its data as its own properties, emits events, and imports no SDK or domain
code; wiring lives in the app (`architecture/principles/downward-dependencies.md`).
- No component binds a key; only the app binds keys.
- A layer resolves the layer below only through its release tag, as a consumer does: never a
link, path alias, source condition, or project reference
(`architecture/principles/independent-releases.md`).

## Code

- A module header documents the public contract, what the module provides and promises, with no
reasoning; each export carries a one-line doc comment. A sheet's CSS custom properties, classes,
and layers are its exports, and each carries its comment.
- A copied file names each source repository and commit in one provenance line per source, which
reads `From|Adapted from <repo> (<commit>): <path>`, plus at most a short clause naming what
changed, never why, and a third-party source's licence after a semicolon. The lines its immediate
source carried for earlier sources stay beside that source's own. A JSON file, which takes no
comment, has its line in `context/README.md`.
- Sources use `.ts` relative specifiers, which tsc rewrites.
- The browser tier tests `dist/`, and no server transforms what it serves.
- Tests are TypeScript run under Node's type stripping, erasable syntax only, type-checked by
Expand Down
19 changes: 1 addition & 18 deletions context/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,7 @@ strategy is `standards-lab/context/web-client.md`.

## Provenance

The package is seeded by copy from spike-html-apps-components at 10dde51, the parent of its v0.10.3
pack commit, and moved onto the pinned web-foundation release's themes. The spike is archived and
never a dependency. Each copied file that takes comments names each of its sources in a provenance
line; the workflows and CHANGELOG.md name theirs, web-foundation's at ceaab61. The files with no
line have their provenance here:

- `package.json` is adapted from spike-html-apps-components (10dde51): package.json. It is renamed
`@standards-lab/web-components` at 0.1.0, takes `@standards-lab/web-foundation` and
`@standards-lab/web-icons` as its peers, and replaces the spike's foundation and tooling
devDependencies with web-foundation's and web-tooling's release tags, adds web-icons' release
tag, and pins marked and typescript-eslint exactly.
- `.prettierrc.json` is from spike-html-apps-components (10dde51): .prettierrc.json.
- `LICENSE` is from spike-html-apps-components (10dde51): LICENSE, unchanged.
- `pnpm-lock.yaml` is generated, not copied.
- `test/unit/marked.test.ts`, `test/browser/themes.test.ts`,
`test/browser/shortcut-dialogs.test.ts`, `test/browser/support/profiles.ts`, and
`demo/glyphs.js` are written here, with no source.
- `CLAUDE.md`, `.claude/`, and this directory are marathon's working files, written here.
The package's lineage is in the workspace's [references catalog](https://github.com/standards-lab/org/blob/main/references.md).

## Capability map

Expand Down
1 change: 0 additions & 1 deletion demo/artifact-viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>artifact viewer specimen</title>
<!-- Adapted from spike-html-apps-components (10dde51): demo/artifact-viewer.html, on @standards-lab/web-foundation. -->
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/page-full.css" />
<link rel="stylesheet" href="demo.css" />
<script type="importmap">
Expand Down
1 change: 0 additions & 1 deletion demo/chat-thread.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>chat thread specimen</title>
<!-- Adapted from spike-html-apps-components (10dde51): demo/chat-thread.html, on @standards-lab/web-foundation. -->
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/page-full.css" />
<link rel="stylesheet" href="demo.css" />
<script type="importmap">
Expand Down
2 changes: 0 additions & 2 deletions demo/components.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>components</title>
<!-- Adapted from spike-html-apps-components (10dde51): demo/components.html, on @standards-lab/web-foundation and its default theme, Zen. -->
<!-- Adapted from spike-html-go-wasm (f026de3): components.html's header actions and shortcut dialogs, on the foundation's layout sheet, its reading page. -->
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/page.css" />
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/glyph-button.css" />
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/dialog.css" />
Expand Down
1 change: 0 additions & 1 deletion demo/composer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>composer specimen</title>
<!-- Adapted from spike-html-apps-components (10dde51): demo/composer.html, on @standards-lab/web-foundation. -->
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/page-full.css" />
<link rel="stylesheet" href="demo.css" />
<script type="importmap">
Expand Down
1 change: 0 additions & 1 deletion demo/demo.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* The specimen pages' layout, in its own layer after the foundation's, on the foundation's tokens.
* From spike-html-apps-components (10dde51): demo/demo.css.
*/

@layer demo {
Expand Down
1 change: 0 additions & 1 deletion demo/document-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>document list specimen</title>
<!-- Adapted from spike-html-apps-components (10dde51): demo/document-list.html, on @standards-lab/web-foundation. -->
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/page-full.css" />
<link rel="stylesheet" href="demo.css" />
<script type="importmap">
Expand Down
1 change: 0 additions & 1 deletion demo/documents.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// A static fixture of document listings in go-web-service's wire shape at commit 15e0bc3, for the
// demo and the browser tier's components cases.
// From spike-html-apps-components (10dde51): demo/documents.js.

/**
* go-web-sdk's paginated read: `page` omitted under a cursor, `total` uncounted, `next` at the end.
Expand Down
1 change: 0 additions & 1 deletion demo/drawer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>drawer specimen</title>
<!-- Adapted from spike-html-apps-components (10dde51): demo/drawer.html, on @standards-lab/web-foundation. -->
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/page-full.css" />
<link rel="stylesheet" href="demo.css" />
<script type="importmap">
Expand Down
1 change: 0 additions & 1 deletion demo/entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>entry specimen</title>
<!-- Adapted from spike-html-apps-components (10dde51): demo/entry.html, on @standards-lab/web-foundation. -->
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/page-full.css" />
<link rel="stylesheet" href="demo.css" />
<script type="importmap">
Expand Down
1 change: 0 additions & 1 deletion demo/event-log.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>event log specimen</title>
<!-- Adapted from spike-html-apps-components (10dde51): demo/event-log.html, on @standards-lab/web-foundation. -->
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/page-full.css" />
<link rel="stylesheet" href="demo.css" />
<script type="importmap">
Expand Down
1 change: 0 additions & 1 deletion demo/pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>pagination specimen</title>
<!-- Adapted from spike-html-apps-components (10dde51): demo/pagination.html, on @standards-lab/web-foundation. -->
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/page-full.css" />
<link rel="stylesheet" href="demo.css" />
<script type="importmap">
Expand Down
1 change: 0 additions & 1 deletion demo/search-results.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>search results specimen</title>
<!-- Adapted from spike-html-apps-components (10dde51): demo/search-results.html, on @standards-lab/web-foundation. -->
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/page-full.css" />
<link rel="stylesheet" href="demo.css" />
<script type="importmap">
Expand Down
2 changes: 0 additions & 2 deletions demo/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>settings specimen</title>
<!-- Adapted from spike-html-apps-components (10dde51): demo/composer.html, a specimen page for sl-settings. -->
<!-- Adapted from spike-html-go-wasm (f026de3): components.html's header actions and shortcut dialogs. -->
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/page-full.css" />
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/glyph-button.css" />
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/dialog.css" />
Expand Down
2 changes: 0 additions & 2 deletions demo/shortcuts.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>shortcuts specimen</title>
<!-- Adapted from spike-html-apps-components (10dde51): demo/composer.html, a specimen page for sl-shortcuts. -->
<!-- Adapted from spike-html-go-wasm (f026de3): components.html's header actions and shortcut dialogs. -->
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/page-full.css" />
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/glyph-button.css" />
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/dialog.css" />
Expand Down
1 change: 0 additions & 1 deletion demo/specimen.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// The specimen pages' renderer: every state, labelled, into each of the page's state lists, and
// the focus state into the focus section.
// From spike-html-apps-components (10dde51): demo/specimen.js.

/**
* A state: its label, and a function that builds the component in it, fresh for each list.
Expand Down
1 change: 0 additions & 1 deletion demo/stage-timeline.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>stage timeline specimen</title>
<!-- Adapted from spike-html-apps-components (10dde51): demo/stage-timeline.html, on @standards-lab/web-foundation. -->
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/page-full.css" />
<link rel="stylesheet" href="demo.css" />
<script type="importmap">
Expand Down
1 change: 0 additions & 1 deletion demo/status-badge.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>status badge specimen</title>
<!-- Adapted from spike-html-apps-components (10dde51): demo/status-badge.html, on @standards-lab/web-foundation. -->
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/page-full.css" />
<link rel="stylesheet" href="demo.css" />
<script type="importmap">
Expand Down
1 change: 0 additions & 1 deletion demo/upload-dropzone.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>upload dropzone specimen</title>
<!-- Adapted from spike-html-apps-components (10dde51): demo/upload-dropzone.html, on @standards-lab/web-foundation. -->
<link rel="stylesheet" href="/deps/@standards-lab/web-foundation/dist/page-full.css" />
<link rel="stylesheet" href="demo.css" />
<script type="importmap">
Expand Down
2 changes: 0 additions & 2 deletions docs/components.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<!-- Adapted from spike-html-apps-components (10dde51): README.md, its Use section. -->

# Components

The modules of `@standards-lab/web-components`, by capability. The
Expand Down
8 changes: 4 additions & 4 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ need no setting there: pnpm guards only a git dependency below the top level (`b
- `allowBuilds` refuses unrs-resolver's postinstall. unrs-resolver, under eslint-plugin-import-x and
eslint-import-resolver-typescript, fetches its native binding when the optional dependency
holding it is missing; pnpm installs that dependency.
- `minimumReleaseAge: 0` turns off pnpm's default wait of a day before it installs a release. The
currency task moves each pin to its latest release, and that release's notes are read before the
bump lands, a review that stands in for the age gate. With the wait on, a frozen install of a
lockfile that pins a release under a day old fails.
- `minimumReleaseAge: 0` is Web Elemental's
[narrowing](https://github.com/standards-lab/architecture/blob/main/standards/web-elemental/principles/packages-and-releases.md#pins)
of rolling currency's [Why a release installs the day it
ships](https://github.com/standards-lab/architecture/blob/main/principles/rolling-currency.md#why-a-release-installs-the-day-it-ships).

## Currency

Expand Down
2 changes: 0 additions & 2 deletions docs/release.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<!-- Adapted from web-foundation (ceaab61): README.md, its Release section. -->

# Release

A release is an annotated `v<version>` tag on a pack commit: a commit, on no branch, whose tree is
Expand Down
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// imports in src/, and every .css import a CSS module script. test/unit/layers.test.ts runs it over
// test/unit/layers-tree.ts.
// See docs/development.md
// Adapted from spike-html-apps-components (10dde51): eslint.config.js, on web-foundation.

import comments from "@eslint-community/eslint-plugin-eslint-comments";
import js from "@eslint/js";
Expand Down
5 changes: 2 additions & 3 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# The components' tools and tasks.
# See docs/development.md
# Adapted from spike-html-apps-components (10dde51): mise.toml, its browser at web-foundation's pin.
[settings]
task.run_auto_install = false

[tools]
"github:standards-lab/claude-plugins" = { version = "0.23.0", version_prefix = "marathon/v" }
"github:standards-lab/claude-plugins" = { version = "0.24.0", version_prefix = "marathon/v" }
actionlint = "1.7.12"
node = "26.13.1"
pnpm = "12.21.0"
pnpm = "12.23.0"
shellcheck = "0.11.0"
"github:microsoft/typescript-go" = { version = "7.0.2", version_prefix = "typescript/v", bin_path = "package/lib" }

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
"globals": "17.14.0",
"prettier": "3.10.1",
"typescript": "6.0.3",
"typescript-eslint": "8.73.0"
"typescript-eslint": "8.74.0"
}
}
Loading