@taprootio/espalier 4.20.1 → 4.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/custom-elements.json +6277 -6277
- package/dist/details/esp-details.js +8 -2
- package/licenses/ASSET_PROVENANCE.md +1 -0
- package/licenses/THIRD_PARTY_NOTICES.md +9 -0
- package/licenses/asset-provenance.json +42 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var d=function(i,e,o,s){var t=arguments.length,r=t<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,o):s,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,o,s);else for(var l=i.length-1;l>=0;l--)(n=i[l])&&(r=(t<3?n(r):t>3?n(e,o,r):n(e,o))||r);return t>3&&r&&Object.defineProperty(e,o,r),r};import{css as h,html as f}from"lit";import{customElement as b,property as
|
|
1
|
+
var d=function(i,e,o,s){var t=arguments.length,r=t<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,o):s,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,o,s);else for(var l=i.length-1;l>=0;l--)(n=i[l])&&(r=(t<3?n(r):t>3?n(e,o,r):n(e,o))||r);return t>3&&r&&Object.defineProperty(e,o,r),r};import{css as h,html as f}from"lit";import{customElement as b,property as p}from"lit/decorators.js";import{EspalierElementBase as m}from"../shared/esp-element-base.js";import{ESP_EVENTS as u}from"../shared/events.js";import{disabledControl as v}from"../shared/style-fragments.js";let a=class extends m{constructor(){super(...arguments),this.summary="",this.open=!1,this.disabled=!1,this._toggleFromClick=!1}close(){this.open=!1}getScrollParent(){let e=this.assignedSlot?.parentElement??(this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentElement);for(;e&&e!==document.documentElement;){const s=getComputedStyle(e).overflowY;if((s==="auto"||s==="scroll")&&e.scrollHeight>e.clientHeight)return e;e=e.assignedSlot?.parentElement??(e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentElement)}return null}handleToggle(e){const o=e.target;if(this.disabled){o.open=this.open;return}if(this._toggleFromClick){this._toggleFromClick=!1;return}this.open=o.open,this.dispatchEvent(new CustomEvent(u.DETAILS_TOGGLE,{detail:{open:this.open},bubbles:!0,composed:!0}))}handleSummaryClick(e){if(e.preventDefault(),this.disabled)return;const o=e.currentTarget,s=o.getBoundingClientRect().top,t=this.getScrollParent(),r=t?t.scrollTop:window.scrollY;this._toggleFromClick=!0,this.open=!this.open,this.updateComplete.then(()=>{this._toggleFromClick=!1,this.dispatchEvent(new CustomEvent(u.DETAILS_TOGGLE,{detail:{open:this.open},bubbles:!0,composed:!0}));const l=o.getBoundingClientRect().top-s;if(Math.abs(l)>1)if(t){const c=t.scrollTop;Math.abs(c-r)>1&&(t.scrollTop=r)}else{const c=window.scrollY;Math.abs(c-r)>1&&window.scrollBy(0,l)}})}render(){return f`
|
|
2
2
|
<details ?open=${this.open} @toggle=${this.handleToggle}>
|
|
3
3
|
<summary @click=${this.handleSummaryClick}>
|
|
4
4
|
<span class="indicator"></span>
|
|
@@ -11,6 +11,8 @@ var d=function(i,e,o,s){var t=arguments.length,r=t<3?e:s===null?s=Object.getOwnP
|
|
|
11
11
|
`}};a.styles=[...m.styles,v(":host([disabled]) summary"),h`
|
|
12
12
|
:host {
|
|
13
13
|
display: block;
|
|
14
|
+
|
|
15
|
+
min-inline-size: 0;
|
|
14
16
|
overflow-anchor: none;
|
|
15
17
|
--_esp-details-resolved-summary-hover-background: var(
|
|
16
18
|
--esp-details-color-summary-hover-background,
|
|
@@ -88,9 +90,13 @@ var d=function(i,e,o,s){var t=arguments.length,r=t<3?e:s===null?s=Object.getOwnP
|
|
|
88
90
|
|
|
89
91
|
.summary-text {
|
|
90
92
|
flex: 1;
|
|
93
|
+
min-inline-size: 0;
|
|
94
|
+
overflow-wrap: break-word;
|
|
91
95
|
}
|
|
92
96
|
|
|
93
97
|
.content {
|
|
98
|
+
|
|
99
|
+
overflow-x: auto;
|
|
94
100
|
padding: var(--esp-details-size-padding, var(--esp-size-padding));
|
|
95
101
|
font-family: var(
|
|
96
102
|
--_esp-font-body-effective,
|
|
@@ -119,4 +125,4 @@ var d=function(i,e,o,s){var t=arguments.length,r=t<3?e:s===null?s=Object.getOwnP
|
|
|
119
125
|
:host([in-group]:last-of-type) details {
|
|
120
126
|
border-bottom: none;
|
|
121
127
|
}
|
|
122
|
-
`],d([
|
|
128
|
+
`],d([p({type:String})],a.prototype,"summary",void 0),d([p({type:Boolean,reflect:!0})],a.prototype,"open",void 0),d([p({type:Boolean,reflect:!0})],a.prototype,"disabled",void 0),a=d([b("esp-details")],a);export{a as EspalierDetails};
|
|
@@ -11,6 +11,7 @@ removing, or replacing non-code assets.
|
|
|
11
11
|
| `css/fonts/*.css`, `css/fonts/font-definitions.json` | Generated Google Fonts preview CSS and catalog with per-family notices generated from upstream Google Fonts metadata links. | `licenses/GOOGLE_FONTS_NOTICES.md` |
|
|
12
12
|
| `css/fonts/font-fallback-profiles.json` | Variant metrics derived from `@capsizecss/metrics` with `@capsizecss/core`, serialized by Taproot's deterministic maintainer generator. | `licenses/THIRD_PARTY_NOTICES.md` |
|
|
13
13
|
| `assets/shell-fonts.css`, `assets/shell-fonts/**` | Docs-only self-hosted Quicksand, Oswald, and Sometype Mono WOFF2 subsets under OFL 1.1, downloaded once from the Google Fonts css2 endpoint and checked in so the documentation shell never calls Google at runtime. | `licenses/THIRD_PARTY_NOTICES.md` |
|
|
14
|
+
| `assets/theme-gallery-fonts.css`, `assets/theme-gallery-fonts/**` | Docs-only self-hosted Google Fonts WOFF2 subsets (OFL 1.1), generated by `scripts/build-theme-gallery-fonts.ts`; upstream URLs and SHA-256 hashes in `sources.json`. | `licenses/THIRD_PARTY_NOTICES.md` |
|
|
14
15
|
| `assets/icons.svg` | Tabler-derived SVG symbols plus Taproot-owned logo symbol. | `licenses/THIRD_PARTY_NOTICES.md` |
|
|
15
16
|
| `*.ts` | Inline Tabler-style SVG templates and Taproot rendering helpers. | `licenses/THIRD_PARTY_NOTICES.md` |
|
|
16
17
|
| `dist/shared/virtualizer/**` | Vendored Lit Virtualizer runtime source compiled into Espalier's package. | `licenses/THIRD_PARTY_NOTICES.md` |
|
|
@@ -231,3 +231,12 @@ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
|
231
231
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
232
232
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
233
233
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
234
|
+
|
|
235
|
+
## Documentation theme gallery fonts
|
|
236
|
+
|
|
237
|
+
The documentation theme gallery self-hosts Google Fonts under the SIL Open
|
|
238
|
+
Font License 1.1. Each family's original copyright and complete license notice
|
|
239
|
+
is distributed beside its WOFF2 files in `assets/theme-gallery-fonts/*-OFL.txt`.
|
|
240
|
+
Exact upstream URLs and SHA-256 checksums are recorded in
|
|
241
|
+
`assets/theme-gallery-fonts/sources.json`. The font bytes are unmodified.
|
|
242
|
+
These assets are documentation-only and are excluded from the npm package.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"updatedAt": "2026-
|
|
3
|
+
"updatedAt": "2026-09-27",
|
|
4
4
|
"entries": [
|
|
5
5
|
{
|
|
6
6
|
"id": "google-font-preview-assets",
|
|
@@ -398,6 +398,47 @@
|
|
|
398
398
|
"licenses/THIRD_PARTY_NOTICES.md"
|
|
399
399
|
],
|
|
400
400
|
"reviewStatus": "documented"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"id": "docs-theme-gallery-fonts",
|
|
404
|
+
"paths": [
|
|
405
|
+
"assets/theme-gallery-fonts.css",
|
|
406
|
+
"assets/theme-gallery-fonts/**"
|
|
407
|
+
],
|
|
408
|
+
"assetType": "self-hosted Google Font WOFF2 faces and OFL notices",
|
|
409
|
+
"classification": "third-party open font",
|
|
410
|
+
"owner": "Google Fonts family authors, identified in the accompanying per-family OFL notices",
|
|
411
|
+
"source": "Google Fonts css2 and google/fonts repository; exact URLs and SHA-256 hashes in assets/theme-gallery-fonts/sources.json",
|
|
412
|
+
"license": "SIL Open Font License 1.1",
|
|
413
|
+
"transformations": [
|
|
414
|
+
"Fetched Latin and Latin-ext WOFF2 subsets without modifying the font bytes",
|
|
415
|
+
"Rewrote stylesheet URLs to same-origin assets; generated by scripts/build-theme-gallery-fonts.ts"
|
|
416
|
+
],
|
|
417
|
+
"packageInclusion": "excluded; docs-only assets",
|
|
418
|
+
"docsInclusion": "theme gallery and persisted documentation theme selections",
|
|
419
|
+
"noticeRequirement": "required",
|
|
420
|
+
"noticePaths": [
|
|
421
|
+
"licenses/THIRD_PARTY_NOTICES.md",
|
|
422
|
+
"assets/theme-gallery-fonts/archivo-black-OFL.txt",
|
|
423
|
+
"assets/theme-gallery-fonts/barlow-condensed-OFL.txt",
|
|
424
|
+
"assets/theme-gallery-fonts/bitter-OFL.txt",
|
|
425
|
+
"assets/theme-gallery-fonts/bodoni-moda-OFL.txt",
|
|
426
|
+
"assets/theme-gallery-fonts/dm-sans-OFL.txt",
|
|
427
|
+
"assets/theme-gallery-fonts/fraunces-OFL.txt",
|
|
428
|
+
"assets/theme-gallery-fonts/fredoka-OFL.txt",
|
|
429
|
+
"assets/theme-gallery-fonts/ibm-plex-sans-OFL.txt",
|
|
430
|
+
"assets/theme-gallery-fonts/ibm-plex-serif-OFL.txt",
|
|
431
|
+
"assets/theme-gallery-fonts/inter-OFL.txt",
|
|
432
|
+
"assets/theme-gallery-fonts/lora-OFL.txt",
|
|
433
|
+
"assets/theme-gallery-fonts/manrope-OFL.txt",
|
|
434
|
+
"assets/theme-gallery-fonts/nunito-OFL.txt",
|
|
435
|
+
"assets/theme-gallery-fonts/playfair-display-OFL.txt",
|
|
436
|
+
"assets/theme-gallery-fonts/sora-OFL.txt",
|
|
437
|
+
"assets/theme-gallery-fonts/space-grotesk-OFL.txt",
|
|
438
|
+
"assets/theme-gallery-fonts/space-mono-OFL.txt",
|
|
439
|
+
"assets/theme-gallery-fonts/work-sans-OFL.txt"
|
|
440
|
+
],
|
|
441
|
+
"reviewStatus": "documented"
|
|
401
442
|
}
|
|
402
443
|
]
|
|
403
444
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taprootio/espalier",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.2",
|
|
4
4
|
"packageManager": "bun@1.3.12",
|
|
5
5
|
"description": "Espalier — a themeable, accessible, framework-agnostic, enterprise-grade design system built on web standards and love.",
|
|
6
6
|
"customElements": "custom-elements.json",
|