@taprootio/espalier 5.0.0 → 6.0.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 +8 -0
- package/custom-elements.json +9573 -9613
- package/dist/pickers/esp-pick-one.d.ts +4 -0
- package/dist/pickers/esp-pick-one.js +7 -7
- package/dist/pickers/esp-pick-some.js +7 -7
- package/dist/pickers/esp-picker-base.js +5 -5
- package/dist/pickers/esp-picker-item.js +5 -5
- package/dist/pickers/typeahead-controller.js +1 -1
- package/dist/shared/events.d.ts +1 -1
- package/dist/video/esp-video.d.ts +18 -53
- package/dist/video/esp-video.js +25 -25
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# 6.0.0
|
|
2
|
+
|
|
3
|
+
Espalier 6 removes `esp-video`'s unused streaming adapter, and pickers now show an item's new label when its text changes after it was selected.
|
|
4
|
+
|
|
5
|
+
- **Breaking: `esp-video` no longer takes a streaming adapter.** The `adapter` property, `EspalierVideo.defaultAdapter`, and the `VideoAdapter` type are gone, along with the `"adapter"` value of `VideoSourceMode` (the `mode` in event details) and of `VideoErrorReason`. The element plays `src` where the browser can play `type`, and `fallback-src` otherwise; for a source every browser plays, set `type="video/mp4"`. Nothing else about the element changes: `type` still defaults to HLS, which Safari, iOS, and current Chrome play natively.
|
|
6
|
+
- **Fixed: a picker kept showing an item's old label after its text changed.** A picker copies its `esp-picker-item` children and removes them from the page, so a template that rewrote an item in place (Lit's `map` reusing elements by position, for example, when a placeholder entry is replaced by loaded data) changed nothing the picker saw, and `esp-pick-one` kept showing the placeholder. An item's `text`, `icon`, and `styles` changes now reach its picker: `esp-pick-one` re-renders the selected label, and `esp-pick-some` the selected chip. The selection follows the item's `value` and no `esp-value-changed` fires. `esp-pick-some` chips now also follow the new item when the items are replaced outright. An item element the picker no longer lists, whose `value` was rewritten, or whose items the host has since replaced from code, is ignored.
|
|
7
|
+
- **Fixed: a typeahead picker with `fetchItems` replaced the server's results when its items changed.** Picking in `esp-pick-some`, or any change to `pickerItems`, re-ran the local filter over the canonical items and swapped the remote results shown in the menu for them. The menu now keeps the server's results, with their selected marks updated, and a chip keeps the label of the remote result the visitor picked until the item with that value changes or first arrives. Clearing `fetchItems` while a query is typed shows the local matches at once, and a request still in flight from the cleared source no longer brings its results back, or empties the menu if it fails.
|
|
8
|
+
|
|
1
9
|
# 5.0.0
|
|
2
10
|
|
|
3
11
|
Espalier 5 removes the compatibility paths kept for older consumers, adds a native video player, `esp-video`, and makes form errors perceivable to assistive technology: form-item errors now mark, describe, and announce the field, `esp-input` accepts `step="any"`, and choice groups take their name from the form item. The "Migrating To Espalier 5" guide lists each replacement and the form behavior to check.
|