claude-code-marketplace 0.4.1 → 0.4.3

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": "claude-code-marketplace",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "Web UI for browsing and managing Claude Code marketplace plugins",
5
5
  "main": "server.js",
6
6
  "bin": {
package/public/app.js CHANGED
@@ -120,8 +120,18 @@ document.addEventListener('DOMContentLoaded', () => {
120
120
  document.body.classList.add('light');
121
121
  }
122
122
  syncHljsTheme();
123
+ updateThemeColor(savedTheme !== 'dark');
123
124
 
124
125
  document.addEventListener('keydown', handleKeydown);
126
+
127
+ document.getElementById('treeContainer').addEventListener('click', (e) => {
128
+ const row = e.target.closest('.tree-row');
129
+ if (!row?.dataset.rowId) return;
130
+ const rowId = row.dataset.rowId;
131
+ const rows = getVisibleRows();
132
+ const idx = rows.findIndex((r) => r.dataset.rowId === rowId);
133
+ if (idx >= 0) setFocusedRow(idx, rows);
134
+ });
125
135
  });
126
136
 
127
137
  function syncHljsTheme() {
@@ -132,6 +142,12 @@ function syncHljsTheme() {
132
142
  if (lightSheet) lightSheet.disabled = !light;
133
143
  }
134
144
 
145
+ function updateThemeColor(isLight) {
146
+ document.querySelectorAll('meta[name="theme-color"]').forEach((m) => {
147
+ m.setAttribute('content', isLight ? '#e8e6e3' : '#101114');
148
+ });
149
+ }
150
+
135
151
  function toggleTheme() {
136
152
  const isLight = document.body.classList.contains('light');
137
153
  document.body.classList.remove('light', 'dark-forced');
@@ -143,6 +159,7 @@ function toggleTheme() {
143
159
  localStorage.setItem('theme', 'light');
144
160
  }
145
161
  syncHljsTheme();
162
+ updateThemeColor(!isLight);
146
163
  }
147
164
 
148
165
  async function loadProject() {
@@ -1149,7 +1166,8 @@ function handleKeydown(e) {
1149
1166
  }
1150
1167
  return;
1151
1168
  }
1152
- if ((tag === 'BUTTON' || tag === 'A') && (e.key === 'Enter' || e.key === ' ')) return;
1169
+ if ((tag === 'BUTTON' || tag === 'A') && (e.key === 'Enter' || e.key === ' ') && !e.target.closest('#treeContainer'))
1170
+ return;
1153
1171
 
1154
1172
  const openModal = document.querySelector('.modal-overlay.open');
1155
1173
  if (openModal) {
package/public/style.css CHANGED
@@ -42,9 +42,9 @@ body.light {
42
42
  --bg-hover: #d2d0cc;
43
43
  --border: #a09b94;
44
44
  --text-primary: #0a0a0a;
45
- --text-secondary: #444444;
46
- --text-tertiary: #666666;
47
- --text-muted: #888888;
45
+ --text-secondary: #333333;
46
+ --text-tertiary: #555555;
47
+ --text-muted: #777777;
48
48
  --accent-text: #b85a20;
49
49
  --accent-dim: rgba(232, 111, 51, 0.18);
50
50
  --accent-glow: rgba(232, 111, 51, 0.5);