@adia-ai/web-modules 0.8.41 → 0.8.43
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 +33 -0
- package/README.md +1 -1
- package/chat/chat-shell/css/chat-shell.bespoke.css +5 -5
- package/chat/chat-sidebar/chat-sidebar.a2ui.json +1 -1
- package/chat/chat-sidebar/chat-sidebar.d.ts +1 -1
- package/chat/chat-sidebar/chat-sidebar.js +8 -3
- package/chat/chat-sidebar/chat-sidebar.yaml +1 -1
- package/dist/chat/chat-shell.min.css +1 -1
- package/dist/everything.min.js +107 -104
- package/dist/shell/admin-shell.min.css +1 -1
- package/dist/web-modules.min.css +1 -1
- package/dist/web-modules.sheet.js +1 -1
- package/editor/editor-sidebar/editor-sidebar.js +5 -3
- package/form/form-popover/form-popover.css +1 -1
- package/package.json +6 -6
- package/shell/admin-shell/admin-shell.a2ui.json +1 -1
- package/shell/admin-shell/admin-shell.d.ts +1 -1
- package/shell/admin-shell/admin-shell.js +3 -3
- package/shell/admin-shell/admin-shell.yaml +2 -2
- package/shell/admin-shell/css/admin-shell.bespoke.css +5 -5
- package/shell/admin-shell/css/admin-shell.helpers.css +6 -3
- package/shell/admin-shell/css/admin-shell.sidebar.css +5 -5
- package/shell/admin-sidebar/admin-sidebar.a2ui.json +1 -1
- package/shell/admin-sidebar/admin-sidebar.d.ts +1 -1
- package/shell/admin-sidebar/admin-sidebar.js +15 -10
- package/shell/admin-sidebar/admin-sidebar.yaml +1 -1
|
@@ -49,7 +49,7 @@ with the same slot.
|
|
|
49
49
|
*/
|
|
50
50
|
name: string;
|
|
51
51
|
/** Opts in to drag-to-resize behavior. Author supplies a child
|
|
52
|
-
[data-resize] element as the drag handle.
|
|
52
|
+
[data-sidebar-resize] element as the drag handle.
|
|
53
53
|
*/
|
|
54
54
|
resizable: boolean;
|
|
55
55
|
/** Reflected — set during an active pointer-drag on the resize handle.
|
|
@@ -29,8 +29,10 @@
|
|
|
29
29
|
* sidebar-toggle — bubbles. detail: { name, expanded }
|
|
30
30
|
* sidebar-resize — bubbles. detail: { name, width }
|
|
31
31
|
*
|
|
32
|
-
* The drag handle is conventional: a child `[data-resize]` element
|
|
33
|
-
*
|
|
32
|
+
* The drag handle is conventional: a child `[data-sidebar-resize]` element
|
|
33
|
+
* (its deprecated pre-0.9.0 name was cut at the rename-wave W3, gh#1562:
|
|
34
|
+
* docs/ops/plan/plan-090-rename-wave.md). Authors may provide a custom one,
|
|
35
|
+
* or omit (no resize affordance).
|
|
34
36
|
*
|
|
35
37
|
* Backwards compat: <admin-shell> still recognizes the legacy
|
|
36
38
|
* `<aside data-sidebar="leading">` shape via :is() selector. New
|
|
@@ -55,7 +57,7 @@ class AdminSidebar extends UIElement {
|
|
|
55
57
|
|
|
56
58
|
static template = () => null;
|
|
57
59
|
|
|
58
|
-
// FEEDBACK-17: elements already warned about a missing [data-resize]
|
|
60
|
+
// FEEDBACK-17: elements already warned about a missing [data-sidebar-resize]
|
|
59
61
|
// handle — one-shot per element so re-renders stay quiet. GC-friendly.
|
|
60
62
|
static #warnedNoHandle = new WeakSet();
|
|
61
63
|
|
|
@@ -166,19 +168,22 @@ class AdminSidebar extends UIElement {
|
|
|
166
168
|
// ── Resize drag handle ──
|
|
167
169
|
|
|
168
170
|
#setupResizeHandle() {
|
|
169
|
-
|
|
171
|
+
// Rename-wave cut (plan-090 W3, gh#1562): `[data-sidebar-resize]` is the
|
|
172
|
+
// only recognized handle name — its deprecated pre-0.9.0 dual-read was
|
|
173
|
+
// removed at the cut.
|
|
174
|
+
const handle = this.querySelector(':scope > [data-sidebar-resize]');
|
|
170
175
|
if (!handle) {
|
|
171
176
|
// FEEDBACK-17: `resizable` opts in to drag-resize but relies on an
|
|
172
|
-
// author-supplied `[data-resize]` child. A silent return left
|
|
173
|
-
// with a no-op `resizable` attribute and zero diagnostic signal.
|
|
177
|
+
// author-supplied `[data-sidebar-resize]` child. A silent return left
|
|
178
|
+
// authors with a no-op `resizable` attribute and zero diagnostic signal.
|
|
174
179
|
if (!AdminSidebar.#warnedNoHandle.has(this)) {
|
|
175
180
|
AdminSidebar.#warnedNoHandle.add(this);
|
|
176
181
|
// eslint-disable-next-line no-console
|
|
177
182
|
console.warn(
|
|
178
|
-
'[admin-sidebar] `resizable` is set but no `[data-resize]`
|
|
179
|
-
'was found. Add `<div data-resize></div>` as a direct
|
|
180
|
-
'enable drag-to-resize. (Unlike `collapsible`, `resizable`
|
|
181
|
-
'this author-supplied handle.)',
|
|
183
|
+
'[admin-sidebar] `resizable` is set but no `[data-sidebar-resize]` ' +
|
|
184
|
+
'child was found. Add `<div data-sidebar-resize></div>` as a direct ' +
|
|
185
|
+
'child to enable drag-to-resize. (Unlike `collapsible`, `resizable` ' +
|
|
186
|
+
'requires this author-supplied handle.)',
|
|
182
187
|
this,
|
|
183
188
|
);
|
|
184
189
|
}
|