@taprootio/espalier 6.7.0 → 6.9.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 +18 -0
- package/custom-elements.json +6622 -6322
- package/dist/button/esp-button.d.ts +6 -0
- package/dist/button/esp-button.js +11 -10
- package/dist/image-upload/esp-image-preview.js +67 -25
- package/dist/image-upload/esp-image-upload.d.ts +78 -1
- package/dist/image-upload/esp-image-upload.js +23 -20
- package/dist/image-upload/image-helpers.d.ts +10 -0
- package/dist/index.d.ts +1 -1
- package/dist/menu/esp-menu-group.d.ts +10 -0
- package/dist/menu/esp-menu-group.js +20 -25
- package/dist/menu/esp-menu-item.d.ts +10 -0
- package/dist/menu/esp-menu-item.js +8 -6
- package/dist/menu/esp-menu.js +19 -12
- package/dist/shared/events.d.ts +17 -0
- package/dist/shared/events.js +1 -1
- package/dist/shared/new-tab-cue.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
# 6.9.0
|
|
2
|
+
|
|
3
|
+
Menu links can open in another tab, and buttons and menu links announce that destination to screen-reader users.
|
|
4
|
+
|
|
5
|
+
- `esp-menu-item` and `esp-menu-group` accept `target` and `rel`, passed through to their links without classifying the URL. Empty values omit the attributes.
|
|
6
|
+
- Every `target="_blank"` link rendered by `esp-button`, `esp-menu-item` or `esp-menu-group` now appends “(opens in a new tab)” to its accessible name, including icon-only buttons. This applies to all consumers; tests matching exact link names need updating. There is no visible change. Replace the phrase with `newTabLabel` (`new-tab-label`) for non-English sites; empty text falls back to English. Current-page menu labels and controls without links have no cue.
|
|
7
|
+
- Drawer copies preserve link targets, relationships and translated cues. Activating a new-tab link closes the drawer and restores focus to its trigger; cancelling navigation leaves it open.
|
|
8
|
+
|
|
9
|
+
# 6.8.0
|
|
10
|
+
|
|
11
|
+
Album previews can offer one action of your own on each image, and their remove button can now be reached from the keyboard and can no longer be tapped unseen.
|
|
12
|
+
|
|
13
|
+
- **New: `esp-image-upload.previewAction`** (`{ label, icon }`) shows a labelled icon button in the lower-right of each completed preview. It is off by default and always visible when set, with no hover needed. Existing images offer it straight away and selected images once `onComplete` has run; it is hidden while an image uploads, after a failed upload, and while a preview shows that its image failed to load. Using it never removes the image, opens the file picker or starts a drag.
|
|
14
|
+
- **New: `esp-image-upload-preview-action`** fires once per activation by pointer, touch or keyboard. `detail.image` is the object in `uploadedImages` itself and stays the same object through reorder and upload completion, so an album that holds the same image twice can keep each use apart. `ImagePreviewAction` and `ImagePreviewActionDetail` are exported from the package root; `ImagePreviewAction` is also available from `./image-upload/helpers`, and `ImagePreviewActionDetail` from `./shared/events`.
|
|
15
|
+
- **Fixed: `esp-image-upload`'s remove button could not be reached with Tab on a completed preview.** It now takes focus on every preview, with a two-tone ring that shows on any photo, and Enter or Space removes that image. Focus then moves to Add photos, scrolling it into view if a long album has pushed it off screen. With a mouse, the button still appears only on hover or focus.
|
|
16
|
+
- **Changed: a device without hover now always shows the remove button.** One tap on a photo's empty corner used to remove the image with nothing visible to warn the user. A touchscreen laptop whose primary pointer has hover keeps the mouse behaviour.
|
|
17
|
+
- **Changed: an existing image's controls now name its position,** such as `Remove image 3 of 12` and `Edit details: image 3 of 12`, so that screen-reader users can tell the images apart. Selected images still use their file name. Tests that look these controls up by exact name need the new names.
|
|
18
|
+
|
|
1
19
|
# 6.7.0
|
|
2
20
|
|
|
3
21
|
Update individual repeater items without resetting a scrolled collection.
|