@adia-ai/web-modules 0.6.17 → 0.6.18
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 +19 -0
- package/package.json +1 -1
- package/shell/admin-sidebar/admin-sidebar.js +21 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog — @adia-ai/web-modules
|
|
2
2
|
|
|
3
|
+
## [0.6.18] — 2026-05-21
|
|
4
|
+
|
|
5
|
+
### Added — `admin-sidebar` resize-handle diagnostic (FB-17)
|
|
6
|
+
|
|
7
|
+
- **`<admin-sidebar resizable>` now warns when no `[data-resize]` child is
|
|
8
|
+
present.** `#setupResizeHandle()` previously returned silently when the
|
|
9
|
+
author-supplied drag-handle element was missing, leaving `resizable` a no-op
|
|
10
|
+
with zero diagnostic signal. It now emits a one-shot `console.warn`
|
|
11
|
+
(WeakSet-guarded) naming the fix. Warning-only; no functional change.
|
|
12
|
+
(~22 LOC `admin-sidebar.js`.)
|
|
13
|
+
|
|
14
|
+
### Docs
|
|
15
|
+
|
|
16
|
+
- **Live `<admin-sidebar>` variant gallery + collapse/expand demo** added to `admin-shell.html` and `admin-shell.examples.html` — covers the resizable / collapsible / variant axes in one browsable surface.
|
|
17
|
+
|
|
18
|
+
### Note
|
|
19
|
+
|
|
20
|
+
- The headline v0.6.18 work shipped in `@adia-ai/web-components` — `stat-ui` + `table-ui` `loading` props (FB-12 P2) and `text-ui` `size` / `color` / `weight` / `text-align` overlay attributes (FB-10). See `packages/web-components/CHANGELOG.md#0618--2026-05-21` for details.
|
|
21
|
+
|
|
3
22
|
## [0.6.17] — 2026-05-21
|
|
4
23
|
|
|
5
24
|
### Fixed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adia-ai/web-modules",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.18",
|
|
4
4
|
"description": "AdiaUI composite custom elements \u2014 shell, chat, editor, runtime clusters built from @adia-ai/web-components primitives. Subpath exports per cluster.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -54,6 +54,10 @@ class AdminSidebar extends UIElement {
|
|
|
54
54
|
|
|
55
55
|
static template = () => null;
|
|
56
56
|
|
|
57
|
+
// FEEDBACK-17: elements already warned about a missing [data-resize]
|
|
58
|
+
// handle — one-shot per element so re-renders stay quiet. GC-friendly.
|
|
59
|
+
static #warnedNoHandle = new WeakSet();
|
|
60
|
+
|
|
57
61
|
// The width the sidebar had before being collapsed — used for restore.
|
|
58
62
|
// Map keyed by sidebar name allows multiple sidebars on one host.
|
|
59
63
|
#previousExpandedWidth = '';
|
|
@@ -149,7 +153,23 @@ class AdminSidebar extends UIElement {
|
|
|
149
153
|
|
|
150
154
|
#setupResizeHandle() {
|
|
151
155
|
const handle = this.querySelector(':scope > [data-resize]');
|
|
152
|
-
if (!handle)
|
|
156
|
+
if (!handle) {
|
|
157
|
+
// FEEDBACK-17: `resizable` opts in to drag-resize but relies on an
|
|
158
|
+
// author-supplied `[data-resize]` child. A silent return left authors
|
|
159
|
+
// with a no-op `resizable` attribute and zero diagnostic signal.
|
|
160
|
+
if (!AdminSidebar.#warnedNoHandle.has(this)) {
|
|
161
|
+
AdminSidebar.#warnedNoHandle.add(this);
|
|
162
|
+
// eslint-disable-next-line no-console
|
|
163
|
+
console.warn(
|
|
164
|
+
'[admin-sidebar] `resizable` is set but no `[data-resize]` child ' +
|
|
165
|
+
'was found. Add `<div data-resize></div>` as a direct child to ' +
|
|
166
|
+
'enable drag-to-resize. (Unlike `collapsible`, `resizable` requires ' +
|
|
167
|
+
'this author-supplied handle.)',
|
|
168
|
+
this,
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
153
173
|
|
|
154
174
|
const slot = this.getAttribute('slot');
|
|
155
175
|
const isLeading = slot === 'leading';
|