@adia-ai/web-modules 0.4.5 → 0.4.6
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
CHANGED
|
@@ -11,6 +11,19 @@ Built from `@adia-ai/web-components` primitives.
|
|
|
11
11
|
|
|
12
12
|
_No pending changes._
|
|
13
13
|
|
|
14
|
+
## [0.4.6] - 2026-05-12
|
|
15
|
+
|
|
16
|
+
### Fixed — `<editor-sidebar>` resize-state detection via `:has()`
|
|
17
|
+
|
|
18
|
+
`<editor-sidebar>`'s `[resizing]` host attribute previously tripped on a heuristic regex against `[data-resize], [class*="resize"], [class*="handle"]` matched on the pointerdown's direct target. This caught `admin-sidebar`'s `[data-resize]` grabber but missed `<pane-ui>`'s slot-based `[slot="resize"]` grabber — so the wrapper's `transition: width` collapse animation was never suppressed during a pane drag, causing the wrapper to interpolate widths while pointer events tracked 1:1 (visible "rubber band" + ~16-ms-per-frame stutter).
|
|
19
|
+
|
|
20
|
+
- **`editor-sidebar.js`** — pointerdown detection switched to `closest('[slot="resize"], [data-resize], [class*="handle"]')`, matching both the pane's slot-based handle and the legacy `[data-resize]` shape. Behavior preserved for admin/chat sidebars; pane-ui case now correctly sets `[resizing]`.
|
|
21
|
+
- **`editor-shell.bespoke.css`** — CSS bypass selector widened from `editor-sidebar[resizing]` to `editor-sidebar:is([resizing], :has(pane-ui[data-resizing]))`, so the transition-bypass fires whenever EITHER (a) the wrapper detected pointerdown on a known handle OR (b) any descendant `<pane-ui>` is in an active drag (independent of pointerdown heuristics). Defense-in-depth: covers consumer rules with high specificity that defeat the host-level `[resizing]` attribute.
|
|
22
|
+
|
|
23
|
+
Pairs with the `<pane-ui>` resize tracking fix in `@adia-ai/web-components@[Unreleased]`.
|
|
24
|
+
|
|
25
|
+
See root [CHANGELOG.md `[Unreleased]`](../../CHANGELOG.md) for the cross-cutting arc narrative.
|
|
26
|
+
|
|
14
27
|
## [0.4.5] - 2026-05-12
|
|
15
28
|
|
|
16
29
|
### Added — CSS importable via package specifier (§61)
|
|
@@ -198,11 +198,17 @@ editor-sidebar[collapsed] {
|
|
|
198
198
|
/* Children can hide labels / shrink icons via [data-narrow] */
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
/* When resizing — disable transitions to feel responsive
|
|
202
|
-
|
|
201
|
+
/* When resizing — disable transitions to feel responsive.
|
|
202
|
+
`:has(pane-ui[data-resizing])` makes the bypass independent of the
|
|
203
|
+
wrapper's pointerdown heuristic: as long as the inner pane is in an
|
|
204
|
+
active drag, the wrapper's `transition: width` is suppressed. The
|
|
205
|
+
inner-pane rule is redundant (pane.css owns its own bypass) but is
|
|
206
|
+
kept for defense-in-depth against consumer rules with high
|
|
207
|
+
specificity. */
|
|
208
|
+
editor-sidebar:is([resizing], :has(pane-ui[data-resizing])) {
|
|
203
209
|
transition: none;
|
|
204
210
|
}
|
|
205
|
-
editor-sidebar[resizing] > pane-ui {
|
|
211
|
+
editor-sidebar:is([resizing], :has(pane-ui[data-resizing])) > pane-ui {
|
|
206
212
|
transition: none;
|
|
207
213
|
}
|
|
208
214
|
|
|
@@ -97,10 +97,11 @@ class EditorSidebar extends UIElement {
|
|
|
97
97
|
// (pane-ui's drag-handle is internal; we listen on the pane and let
|
|
98
98
|
// pointerup on document terminate)
|
|
99
99
|
this.#onPointerDown = (e) => {
|
|
100
|
-
//
|
|
101
|
-
//
|
|
100
|
+
// pane-ui's resize grabber is `[slot="resize"]`; admin-sidebar and
|
|
101
|
+
// chat-sidebar use `[data-resize]`. Match both so this wrapper's
|
|
102
|
+
// `[resizing]` attribute reflects whichever primitive is composed.
|
|
102
103
|
const target = e.target;
|
|
103
|
-
if (target?.
|
|
104
|
+
if (target?.closest?.('[slot="resize"], [data-resize], [class*="handle"]')) {
|
|
104
105
|
this.resizing = true;
|
|
105
106
|
}
|
|
106
107
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adia-ai/web-modules",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"description": "AdiaUI composite custom elements — shell, chat, editor, runtime clusters built from @adia-ai/web-components primitives. Subpath exports per cluster.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|