@ethlete/core 5.0.0-next.34 → 5.0.0-next.36
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 +70 -0
- package/fesm2022/ethlete-core.mjs +384 -35
- package/fesm2022/ethlete-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ethlete-core.d.ts +199 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,75 @@
|
|
|
1
1
|
# @ethlete/core
|
|
2
2
|
|
|
3
|
+
## 5.0.0-next.36
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#3040](https://github.com/ethlete-io/ethdk/pull/3040) [`e052061`](https://github.com/ethlete-io/ethdk/commit/e0520614647b784f19ad55a4d7f6df47acec154e) Thanks [@github-actions](https://github.com/apps/github-actions)! - Localization: one mechanism for every string the library renders. `createLabels` (core) backs a
|
|
8
|
+
`provide<Domain>Labels` / `inject<Domain>Labels` pair per domain — 22 of them, all locale-reactive and
|
|
9
|
+
signal-shaped. See the [localization guide](https://ethlete-sdk-docs-next.web.app/components/localization).
|
|
10
|
+
|
|
11
|
+
- New tokens make the rich text editor, stream, grid, loader, chip, calendar, time picker, dropzone,
|
|
12
|
+
select, cascader, phone input, slider, date/time and notification strings overridable.
|
|
13
|
+
- **Breaking:** `inject*Labels()` now returns a signal; the string fields left `StreamConsentConfig`,
|
|
14
|
+
`StreamPlayerErrorConfig`, `PipSlotPlaceholderConfig`, `GridConfig` and `NotificationManagerConfig`
|
|
15
|
+
(with their `transformer` hooks); per-instance label inputs default to `null` instead of English.
|
|
16
|
+
- Fixes the PiP close/back buttons, which set an attribute literally named `attr.aria-label`.
|
|
17
|
+
|
|
18
|
+
- [#3040](https://github.com/ethlete-io/ethdk/pull/3040) [`38bb816`](https://github.com/ethlete-io/ethdk/commit/38bb8165006c4ebfba6a34623468ded140002188) Thanks [@github-actions](https://github.com/apps/github-actions)! - Card presets and a tabs variant: `et-radio` and `et-choice-field` take `variant="card"` (full-width clickable
|
|
19
|
+
panel, label leading, selection on the border and label), and `et-segmented-button-group` takes `variant="tabs"` (underlined
|
|
20
|
+
selection instead of a filled pill). Closes the last cdk parity gaps.
|
|
21
|
+
|
|
22
|
+
`@ethlete/core` adds `injectRouterNavigationState<T>()` for reading the state a navigation was given.
|
|
23
|
+
|
|
24
|
+
- [#3040](https://github.com/ethlete-io/ethdk/pull/3040) [`4624559`](https://github.com/ethlete-io/ethdk/commit/4624559c81ed9b6efffc539b8f1dd0db0556420c) Thanks [@github-actions](https://github.com/apps/github-actions)! - RTL and reduced-motion consistency pass:
|
|
25
|
+
|
|
26
|
+
- Side sheets and the notification stack dock, animate and drag toward their logical inline edge under `dir="rtl"` — `dragToDismiss.direction` gains `'to-inline-start'` / `'to-inline-end'`.
|
|
27
|
+
- `createFlipAnimation` and the PiP animations now skip to their end state under `prefers-reduced-motion`; `ignoreReducedMotion` opts out, and `matchesReducedMotion()` is exported for helpers with no injection context.
|
|
28
|
+
- The full-screen overlay animation throws `ET1209` when it has no origin element, instead of a bare `Error`.
|
|
29
|
+
|
|
30
|
+
- [#3040](https://github.com/ethlete-io/ethdk/pull/3040) [`f6061e1`](https://github.com/ethlete-io/ethdk/commit/f6061e162aacd3c847ad1a9c9c9ef13d2e494b7f) Thanks [@github-actions](https://github.com/apps/github-actions)! - `createSwipeTracker` now reports the release velocity — measured over the trailing
|
|
31
|
+
100ms of the gesture (`SWIPE_VELOCITY_WINDOW_MS`) — in `pixelPerSecondX/Y` instead
|
|
32
|
+
of the whole-gesture average. A slow drag ending in a flick reports the flick, and a
|
|
33
|
+
flick parked before release reports ~0.
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- [#3040](https://github.com/ethlete-io/ethdk/pull/3040) [`b06ed44`](https://github.com/ethlete-io/ethdk/commit/b06ed44db47a52d2a07a4d9a6b3bd3b04011decb) Thanks [@github-actions](https://github.com/apps/github-actions)! - Overlay: the anchored arrow no longer rides into a pane's rounded corner on aligned placements or when a pane
|
|
38
|
+
shifts near a viewport edge. `arrowPadding` now measures the arrow's actual base, so it means "how close the
|
|
39
|
+
arrow may get to the corners" — tooltip and toggletip default to `20` (was `8`), a bare anchored strategy to
|
|
40
|
+
`12` (was `4`).
|
|
41
|
+
|
|
42
|
+
## 5.0.0-next.35
|
|
43
|
+
|
|
44
|
+
### Minor Changes
|
|
45
|
+
|
|
46
|
+
- [`a20d0ce`](https://github.com/ethlete-io/ethdk/commit/a20d0cee2f9937ad45ac1fd5eaec3c1a6ac1d27c) Thanks [@TomTomB](https://github.com/TomTomB)! - Add `injectIsDocumentVisible()` — a signal for whether the page is the tab in front, which an
|
|
47
|
+
IntersectionObserver cannot tell you.
|
|
48
|
+
|
|
49
|
+
- [#3037](https://github.com/ethlete-io/ethdk/pull/3037) [`d787b1d`](https://github.com/ethlete-io/ethdk/commit/d787b1de041da31b6974a9f1b06ceb6ba6f5f6c5) Thanks [@github-actions](https://github.com/apps/github-actions)! - Export `dragGestureFrom(event, element, { commitThreshold })` — the pointer-drag primitive that
|
|
50
|
+
`etDragHandle` is built on, now usable directly. It takes a `pointerdown` and returns an observable of
|
|
51
|
+
`start` / `move` / `end` (or a single `tapped` when the pointer never crossed the commit threshold),
|
|
52
|
+
completing with the gesture.
|
|
53
|
+
|
|
54
|
+
Prefer the directive. Reach for the primitive when the draggable element belongs to someone else's
|
|
55
|
+
template and you only have a delegated `pointerdown` — the case that motivated this: `et-table`'s
|
|
56
|
+
opt-in column-reorder feature attaches a drag to header cells the table itself renders, without the
|
|
57
|
+
table having to import any drag code.
|
|
58
|
+
|
|
59
|
+
`DragHandleDirective` is unchanged and now uses this primitive internally; `DragStartEvent` /
|
|
60
|
+
`DragMoveEvent` keep their import path.
|
|
61
|
+
|
|
62
|
+
- [#3037](https://github.com/ethlete-io/ethdk/pull/3037) [`929e355`](https://github.com/ethlete-io/ethdk/commit/929e3554770a132b4791edd2c063fa677f758762) Thanks [@github-actions](https://github.com/apps/github-actions)! - `setupScrollRestoration` can now restore the previous scroll offset on browser back/forward navigation instead of scrolling to top, via `restore: { enabled: true }`.
|
|
63
|
+
|
|
64
|
+
- The offset is applied only once the content is tall enough to reach it, so query-driven pages no longer land at the wrong place while their skeleton/loading state is on screen. Options: `timeout`, `maxTimeout`, `clampOnTimeout`.
|
|
65
|
+
- `holdScrollRestoration(() => query.isLoading())` suspends the wait from inside a route component when the data takes longer than `timeout` to arrive.
|
|
66
|
+
- `scrollElement` now also accepts a getter (`() => HTMLElement | null`), for scroll containers that only exist after the app shell rendered or are created per route.
|
|
67
|
+
|
|
68
|
+
### Patch Changes
|
|
69
|
+
|
|
70
|
+
- [`4ffabfb`](https://github.com/ethlete-io/ethdk/commit/4ffabfbe1830d4560b98dcda7d262155273dd62e) Thanks [@TomTomB](https://github.com/TomTomB)! - `useCursorDragScroll` no longer starts a drag on a secondary click, and ends one when a context menu opens —
|
|
71
|
+
previously a right-click left it latched on, so every later mouse move scrolled the container.
|
|
72
|
+
|
|
3
73
|
## 5.0.0-next.34
|
|
4
74
|
|
|
5
75
|
### Patch Changes
|