Skip to content

Releases

ln-ashlar v2.2.10

Choose a tag to compare

@github-actions github-actions released this 28 Nov 02:41

Release: v2.2.10
Date: November 28, 2026
Summary: Lifecycle & DOM ownership fixes in ln-translations and ln-repeater, shared coerceBool() helper in ln-core, automated doc link validation, and MCP/doctrine alignment.


Overview

1. Lifecycle & DOM Ownership (ln-translations & ln-repeater).

  • ln-translations.destroy() now tracks and removes only dynamically cloned fields (_clonedFields), strips data-ln-translatable-lang only from originals it tagged (_flaggedOriginals), preserves server-rendered (SSR) translation inputs, and restores the initial hidden state of [data-ln-translations-add] (_triggerHiddenSnapshots).
  • ln-repeater.destroy() now snapshots and restores initial disabled and aria-disabled state across all mutated triggers via a Map (_triggerSnapshots), preserving authored state even on moved or retargeted external [data-ln-repeater-add-for] triggers.

2. Shared Boolean Coercion (ln-core + ln-repeater).

  • Lifted _coerceBool from components/ln-core/form.js as exported coerceBool() (also re-exported from components/ln-core and window.lnCore.coerceBool).
  • Updated ln-repeater._populateRow() to use coerceBool() instead of !!val, ensuring boolean strings such as "false", "0", "off", and "no" coerce to false.

3. Documentation Integrity, Router & Automated Verification.

  • Added scripts/check-doc-links.mjs (npm run check:doc-links) and wired it into npm test, verifying all markdown files with zero broken relative links and zero file:/// paths.
  • Unified 3-layer architecture numbering across README.md, DOCTRINE.md, and .agents/AGENTS.md; updated README.md to document both prebuilt dist/ exports and raw source imports.
  • Updated docs-mcp/component-router.md (removed stale ln-dictionary TODO, corrected ln-translations summary, refined Golden Rule #2) and aligned ln-sortable/ln-http and MCP component docs (status: stable).
  • Explicitly documented intentional design boundaries: Tailwind v4 semantic component stylesheet (theme/tailwind/) parity with class-free HTML, non-transactional ln-fill clearing in ln-translations, component-owned active/menu mount containers, _populateRow() vs. populateForm() rationale in ln-repeater, and data-ln-value type widening in global IDE metadata.

4. Schema Classification & Test Coverage.

  • Partitioned intentional KNOWN_CSS_ONLY_ATTRS from unplaced CSS attributes in scripts/sync-ln-schemas.mjs.
  • Added coerceBool() unit tests in tests/ln-repeater.test.js, SSR destroy() checks in tests/headless/translations.mjs, and tests/headless/repeater.mjs (including nested repeaters and retargeted external trigger teardown).

ln-ashlar v2.2.9

Choose a tag to compare

@github-actions github-actions released this 24 Nov 15:51

Release: v2.2.9
Date: November 24, 2026
Summary: npm registry release for ln-repeater and ln-translations dynamic-row sync (superseding previously used npm version 2.2.8), plus draft-release handling fix in scripts/publish-github-releases.mjs.


Overview

1. npm Version Bump (Supersedes 2.2.8).

  • Publishes the full v2.2.8 feature set (ln-repeater dynamic form-row component, ln-translations onSubtreeChange dynamic-row sync & resolveTranslationValue, interactive demo/admin/repeater.html, schemas, and documentation) as @livenetworks/ashlar@2.2.9 on npm.

2. GitHub Releases Automation Fix.

  • Updated scripts/publish-github-releases.mjs to pass --draft=false (and --prerelease=false when setting --latest) during gh release edit, preventing HTTP 422: Latest release cannot be draft or prerelease when re-publishing a tag that had a leftover draft release.

ln-ashlar v2.2.8

Choose a tag to compare

@github-actions github-actions released this 24 Nov 15:45

Release: v2.2.8
Date: November 24, 2026
Summary: New ln-repeater generic dynamic form-row component (min/max bounds, {index}/{index1} token substitution, optional reindexing, external data-ln-repeater-add-for triggers, ln-fill hydration, and ln-sortable composition) plus automatic dynamic-row synchronization (onSubtreeChange, sync(), and nested prefix value resolution) in ln-translations.


Overview

1. New ln-repeater Component (components/ln-repeater/).

  • Implemented the Two-Tier ln-repeater primitive (repeater-model.js + ln-repeater.js) for dynamic repeatable form rows cloned from an authored HTML <template>.
  • Supports data-ln-repeater-min / data-ln-repeater-max bounds (auto-seeding rows on init when empty and syncing native disabled / aria-disabled on internal and external [data-ln-repeater-add-for] / [data-ln-repeater-remove] triggers), {index} (0-based) and {index1} (1-based) placeholder substitution, SSR max-index detection, monotonic default indices, opt-in sequential renumbering via data-ln-repeater-reindex (including on ln-sortable:reordered), accessible focus management on add/remove, and ln-fill create/edit hydration.
  • Added functional CSS (components/ln-repeater/ln-repeater.scss), theme mixin and bindings (theme/config/mixins/_repeater.scss, theme/components/_repeater.scss) with horizontal flex side-by-side layout for [data-ln-translatable] fields inside repeater rows, and dev diagnostics (components/ln-repeater/ln-repeater-dev.scss).

2. Dynamic Row Synchronization & Nested Prefix Resolution in ln-translations.

  • Wired onSubtreeChange via ln-core's shared lifecycle observer and added dom.lnTranslations.sync() (components/ln-translations/src/ln-translations.js) so dynamically inserted [data-ln-translatable] wrappers (such as rows appended by ln-repeater) automatically receive default-language flags and clones for every currently active language with zero coupling between components.
  • Added resolveTranslationValue(values, field, prefix) in components/ln-translations/src/translations-model.js to resolve nested bracketed prefix paths (e.g. options[0] → values.options[0].label) cleanly during ln-fill hydration without leaking top-level field values.

3. Demo Page, Documentation, Schemas & Tests.

  • Added the interactive admin demo page (demo/admin/src/pages/repeater.html → demo/admin/repeater.html) showcasing basic options, translatable + sortable rows, multi-field indexed rows with external add trigger, and modal create/edit ln-fill hydration.
  • Added component documentation (components/ln-repeater/README.md, docs-mcp/components/ln-repeater.md), updated docs-mcp/component-router.md, README.md, docs/README.md, llms.txt / llms-full.txt, attribute/event catalogs, and unit tests (tests/ln-repeater.test.js, tests/ln-translations.test.js).

ln-ashlar v2.2.7

Choose a tag to compare

@github-actions github-actions released this 23 Nov 00:34

Release: v2.2.7
Date: November 23, 2026
Summary: ln-fill reactivity and modal/dropdown styling fixes for ln-translations, keyboard-accessible wrapping pills and fieldset/legend defaults, new @mixin icon-tile / card-add / btn-header / grid-fill mixins with container-query grid support, plus root CHANGELOG.md, npm release-note packaging, and automated GitHub Releases workflow.


Overview

1. ln-translations ln-fill Integration & Dropdown/Modal Styling Fixes.

  • Added host-level ln-fill handling (components/ln-translations/src/ln-translations.js) to clear stale language fields cleanly and repopulate translations from e.detail.trans, registered in scripts/sync-ln-events.mjs, and demonstrated with a create/edit modal flow (demo/admin/src/pages/translations.html) and expanded headless tests (tests/headless/translations.mjs).
  • Enforced &:not(.open) { display: none; } on [data-ln-dropdown-menu] (components/ln-dropdown/ln-dropdown.scss), added display: block to li in theme/config/mixins/_dropdown.scss, scoped panel-header list/button selectors in theme/config/mixins/_card.scss away from nested menus/popovers and translation controls, and fixed Tailwind's [data-ln-dropdown-menu] panel selector (theme/tailwind/components.css).
  • Added vertical gap across stacked [data-ln-translatable-lang] fields, @mixin translations-header, asymmetrical padding-inline on badges, --btn-* hover/sizing fixes on translation add/remove buttons (theme/config/mixins/_translations.scss, theme/components/_translations.scss), and updated .form-element's trailing slot selector to exclude sibling select/textarea clones (theme/config/mixins/_form.scss).

2. Button Mixin Self-Inclusion & @mixin btn-header.

  • Included @include button-base directly inside @mixin btn, btn-soft, btn-ghost, btn-outline, btn-link, btn-sm, and btn-lg (theme/config/mixins/_btn.scss) so .btn* prototype classes (theme/components/_button.scss) and semantic selectors no longer require explicit @include button-base boilerplate, parameterized via --btn-gap, --btn-font-size, and --btn-line-height.
  • Added @mixin btn-header (and .btn-header) shared across <button> and <a> header actions in @mixin panel-header.

3. Cards, @mixin icon-tile, @mixin card-add, Container-Query Grids & Accessible Pills.

  • Extracted @mixin icon-tile into theme/config/mixins/_icon-tile.scss (adopted by stat-card in _stat-card.scss), added dashed empty-action tile @mixin card-add, folded --surface-highlight into --shadow on card/floating-panel, and added flush tablist and [data-ln-table-coordinator] handling inside panel-header/panel-body (theme/config/mixins/_card.scss).
  • Added @mixin grid-fill and optional $container parameter on grid, grid-2, and grid-4 for @container-driven column breakpoints (theme/config/mixins/_layout.scss), plus --max-w-container-expanded and table legend resets (theme/config/mixins/_ln-table.scss).
  • Updated @mixin pill to use visual-only hiding (position: absolute; clip-path: inset(50%)) with :focus-visible focus rings so checkboxes/radios remain keyboard-focusable (_form.scss, _popover.scss, _picklist.scss), updated pills/pills-outline to wrap cleanly, and added border-less fieldset/legend defaults (@mixin form-label-base in _form.scss, theme/components/_form.scss).

4. Changelog Generation, npm Release Visibility & Automated GitHub Releases.

  • Added scripts/sync-changelog.mjs (integrated into npm run build and npm test via sync:changelog / sync:changelog:check) generating root CHANGELOG.md from releases/ with absolute GitHub URLs.
  • Added scripts/publish-github-releases.mjs and .github/workflows/release.yml to publish GitHub Releases automatically on v* tag pushes and via manual backfill (workflow_dispatch).
  • Added CHANGELOG.md and releases/ to package.json files and added direct Releases/Changelog links at the top of README.md.