@taprootio/espalier 3.3.0 → 3.5.0
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 +34 -0
- package/custom-elements.json +8637 -6846
- package/dist/action-menu/esp-action-menu-item.d.ts +2 -1
- package/dist/action-menu/esp-action-menu-item.js +1 -1
- package/dist/action-menu/esp-action-menu.js +1 -1
- package/dist/button/esp-button-group.js +1 -1
- package/dist/form/esp-form.d.ts +2 -2
- package/dist/form/esp-form.js +1 -1
- package/dist/header/esp-header-button.d.ts +1 -0
- package/dist/header/esp-header-button.js +2 -2
- package/dist/icons/icon-sprite.generated.d.ts +17 -0
- package/dist/icons/icon-sprite.generated.js +702 -0
- package/dist/icons/index.d.ts +40 -0
- package/dist/icons/index.js +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/pickers/esp-picker-item.js +3 -3
- package/dist/popover/esp-popover.js +2 -2
- package/dist/root/esp-root.d.ts +43 -0
- package/dist/root/esp-root.js +8 -3
- package/dist/shared/document-sprite.js +1 -0
- package/dist/shared/esp-element-base.d.ts +1 -0
- package/dist/shared/esp-element-base.js +2 -2
- package/dist/shared/intent-values.d.ts +29 -0
- package/dist/shared/intent-values.js +1 -1
- package/licenses/asset-provenance.json +9 -7
- package/package.json +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
+
# 3.5.0
|
|
2
|
+
|
|
3
|
+
No unthemed flash when the theme mounts from script.
|
|
4
|
+
|
|
5
|
+
- `<esp-root theme-pending>` holds the subtree's paint until the theme
|
|
6
|
+
for the active scheme applies — no frame on the default palette, no
|
|
7
|
+
layout shift on reveal. The hold ends on its own (and warns) if no
|
|
8
|
+
theme arrives, so a broken mount shows the wrong colors, never a
|
|
9
|
+
blank page, and the deadline survives a reattach.
|
|
10
|
+
- The hold runs from upgrade onward. To close the window before your
|
|
11
|
+
scripts run, add the documented one-liner to your page:
|
|
12
|
+
`esp-root[theme-pending]:not([data-theme-ready]) { visibility: hidden }`.
|
|
13
|
+
- Readiness is public: `themeSettled`, `whenThemeSettled()`, and a
|
|
14
|
+
`data-theme-ready` attribute page CSS can gate on.
|
|
15
|
+
- The "context is not defined" warning now judges the settled theme, so
|
|
16
|
+
a zone whose context the theme goes on to define stays quiet while a
|
|
17
|
+
genuinely missing one still warns.
|
|
18
|
+
|
|
19
|
+
# 3.4.0
|
|
20
|
+
|
|
21
|
+
An offline story for icons: a fully self-contained page renders
|
|
22
|
+
Espalier icons with zero network requests.
|
|
23
|
+
|
|
24
|
+
- `import { installIconSprite } from "@taprootio/espalier/icons"` —
|
|
25
|
+
inline the sprite once (idempotent) and point the root at it:
|
|
26
|
+
`icon-sprite-url="#esp-icons"`.
|
|
27
|
+
- The same-document form works for any inline sprite, including your
|
|
28
|
+
own: `<svg id="brand-icons"><symbol id="…">` +
|
|
29
|
+
`icon-sprite-url="#brand-icons"`. Components adopt exactly the
|
|
30
|
+
symbols they reference into their shadow roots; light-DOM
|
|
31
|
+
`<use href="#id">` resolves against the document directly.
|
|
32
|
+
- Behavior note: a fragment-only `icon-sprite-url` previously disabled
|
|
33
|
+
icons; it now selects same-document mode.
|
|
34
|
+
|
|
1
35
|
# 3.3.0
|
|
2
36
|
|
|
3
37
|
Theme QA: the fit report as a lint over every surface a themed site
|