anentrypoint-design 0.0.226 → 0.0.228

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anentrypoint-design",
3
- "version": "0.0.226",
3
+ "version": "0.0.228",
4
4
  "description": "247420 design system SDK — webjsx + modified ripple-ui, single-file ESM bundle for reproducible use of the AnEntrypoint design.",
5
5
  "type": "module",
6
6
  "main": "./dist/247420.js",
@@ -31,29 +31,3 @@ export function skillLabel(s) {
31
31
  const n = s.name || '';
32
32
  return n.replace(/^gm:/, '').replace(/^software-development$/, 'software dev').replace(/-/g, ' ');
33
33
  }
34
-
35
- export function renderChatMessages(container, messages) {
36
- if (!container) return;
37
- container.innerHTML = '';
38
- for (const m of messages) {
39
- if (m.role === 'tool') {
40
- const det = document.createElement('details');
41
- det.className = 'fd-chatlog-tool';
42
- const sum = document.createElement('summary');
43
- sum.className = 'fd-chatlog-tool-sum';
44
- sum.textContent = '[tool] ' + m.name + (m.argsSummary ? ' ' + m.argsSummary : '');
45
- det.appendChild(sum);
46
- const body = document.createElement('pre');
47
- body.className = 'fd-chatlog-tool-body';
48
- body.textContent = m.content || '';
49
- det.appendChild(body);
50
- container.appendChild(det);
51
- } else {
52
- const el = document.createElement('div');
53
- el.className = 'fd-chatlog-msg fd-chatlog-' + (m.role === 'assistant' ? 'assistant' : 'user');
54
- el.textContent = (m.role === 'assistant' ? 'assistant: ' : 'user: ') + (m.content || '');
55
- container.appendChild(el);
56
- }
57
- }
58
- container.scrollTop = container.scrollHeight;
59
- }
@@ -36,7 +36,7 @@
36
36
  transition: background 80ms ease, color 80ms ease, box-shadow 80ms ease;
37
37
  }
38
38
  .launcher-btn:hover { background: var(--panel-hover, var(--os-bg-1)); color: var(--os-fg); }
39
- .launcher-btn:active { background: var(--panel-select); }
39
+ .launcher-btn:active { background: var(--panel-select, var(--os-accent-soft)); }
40
40
  .launcher-btn.active {
41
41
  background: var(--panel-select, var(--os-accent-soft));
42
42
  color: var(--os-fg);
@@ -14,6 +14,7 @@ export function renderDock(opts = {}) {
14
14
  addBtn.className = 'launcher-btn launcher-add';
15
15
  addBtn.textContent = '+';
16
16
  addBtn.title = 'new instance';
17
+ addBtn.setAttribute('aria-label', 'new instance');
17
18
  addBtn.addEventListener('click', () => callbacks.onNewInstance && callbacks.onNewInstance());
18
19
  el.appendChild(addBtn);
19
20
 
@@ -42,6 +43,7 @@ export function renderDock(opts = {}) {
42
43
  selBtn.className = 'launcher-btn';
43
44
  selBtn.textContent = inst.label || inst.id;
44
45
  selBtn.title = 'instance ' + inst.id;
46
+ selBtn.setAttribute('aria-label', 'instance ' + inst.id);
45
47
  selBtn.dataset.role = 'select';
46
48
  selBtn.dataset.instanceId = inst.id;
47
49
  if (inst.active || inst.id === activeId) selBtn.classList.add('active');
@@ -51,6 +53,7 @@ export function renderDock(opts = {}) {
51
53
  closeBtn.className = 'launcher-btn launcher-close';
52
54
  closeBtn.textContent = 'x';
53
55
  closeBtn.title = 'close ' + inst.id;
56
+ closeBtn.setAttribute('aria-label', 'close ' + inst.id);
54
57
  closeBtn.dataset.role = 'close';
55
58
  closeBtn.dataset.instanceId = inst.id;
56
59
  closeBtn.addEventListener('click', e => {
@@ -871,10 +871,6 @@ html.ds-247420 { touch-action: pan-x pan-y; overscroll-behavior: none; -webkit-t
871
871
  .ds-247420 .wm-context-menu-item { display: block; width: 100%; padding: 7px 10px; border: none; border-radius: 4px; background: none; color: inherit; font-family: inherit; text-align: left; cursor: pointer; font-size: 13px; }
872
872
  .ds-247420 .wm-context-menu-item:hover { background: color-mix(in oklab, var(--fg) 8%, transparent); }
873
873
 
874
- /* (legacy duplicate .wm-snap-preview + .wm-switcher-row/.is-active blocks
875
- * removed — superseded by the canonical .wm-snap-preview + .wm-switcher /
876
- * .wm-switcher-item.active rules above; the JS now emits .wm-switcher-item.) */
877
-
878
874
  /* ---- todo app (was: docs/apps.js todo-app cssText) ---- */
879
875
  .ds-247420 .tb-todo-bar { display: flex; gap: 6px; margin-bottom: 8px; }
880
876
  .ds-247420 .tb-todo-input { flex: 1; padding: 5px 8px; border: 1px solid color-mix(in oklab, var(--fg) 18%, transparent); border-radius: 4px; font: inherit; background: var(--panel-1, transparent); color: var(--fg, inherit); }
package/src/kits/os/wm.js CHANGED
@@ -110,6 +110,7 @@ function mkBtn(label, ttl) {
110
110
  b.className = 'wm-btn';
111
111
  b.textContent = label;
112
112
  b.title = ttl;
113
+ b.setAttribute('aria-label', ttl);
113
114
  return b;
114
115
  }
115
116