@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.
@@ -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
- * Authors may provide a custom one, or omit (no resize affordance).
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
- const handle = this.querySelector(':scope > [data-resize]');
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 authors
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]` child ' +
179
- 'was found. Add `<div data-resize></div>` as a direct child to ' +
180
- 'enable drag-to-resize. (Unlike `collapsible`, `resizable` requires ' +
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
  }
@@ -37,7 +37,7 @@ props:
37
37
  resizable:
38
38
  description: |
39
39
  Opts in to drag-to-resize behavior. Author supplies a child
40
- [data-resize] element as the drag handle.
40
+ [data-sidebar-resize] element as the drag handle.
41
41
  type: boolean
42
42
  default: false
43
43
  reflect: true