rerender-lens 0.3.0 → 0.4.0

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": "rerender-lens",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Find avoidable React re-renders and what caused them. Reads the fiber tree like React DevTools, so nothing is patched: works with Fast Refresh, memo, forwardRef and classes. Structured reports, test assertions, and a DevTools bridge.",
5
5
  "keywords": [
6
6
  "react",
@@ -108,7 +108,7 @@
108
108
  "CHANGELOG.md"
109
109
  ],
110
110
  "scripts": {
111
- "build": "tsup && node scripts/copy-panel.mjs",
111
+ "build": "tsup && node scripts/build-vendor.mjs && node scripts/copy-panel.mjs",
112
112
  "typecheck": "tsc --noEmit",
113
113
  "test": "vitest run",
114
114
  "test:watch": "vitest",
package/panel/panel.css CHANGED
@@ -363,40 +363,6 @@ button.ib.rec .glyph { color: var(--danger); animation: blink 1.2s ease-in-out i
363
363
  .views button.instances { color: var(--text-dim); }
364
364
  .views button.instances.active { background: var(--accent-bg); color: var(--accent); }
365
365
 
366
- /* ---------- windowed grids, column chooser, notes ---------- */
367
- .vhead { display: grid; position: sticky; top: 0; z-index: 1; background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; color: var(--text-dim); align-items: center; }
368
- .vhead > span { padding: 6px 10px; white-space: nowrap; cursor: pointer; user-select: none; }
369
- .vhead > span.sorted { color: var(--accent); }
370
- .vhead > span.num { text-align: right; }
371
- .vrow { display: grid; grid-template-columns: var(--grid-cols); align-items: center; height: 26px; position: absolute; left: 0; right: 0; border-bottom: 1px solid var(--border); font-size: 11px; cursor: pointer; box-sizing: border-box; }
372
- .vrow:hover { background: var(--hover); }
373
- .vrow > span { padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
374
- .vrow > span.num { text-align: right; font-variant-numeric: tabular-nums; }
375
- .vrow > span.c .name { font-family: var(--mono); color: var(--key); }
376
- .vrow > span.c .name::before { content: "<"; color: var(--text-faint); }
377
- .vrow > span.c .name::after { content: ">"; color: var(--text-faint); }
378
- .vrow > span.fix { color: var(--text-dim); font-family: var(--mono); }
379
- .vrow.fix-row { display: flex; gap: 8px; padding: 0 10px; }
380
- .vrow.fix-row .label { font-family: var(--mono); }
381
- .vrow.fix-row .meta { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; }
382
- .vrow.selected, .vrow.fix-row.selected { background: var(--selected); color: var(--selected-text); box-shadow: inset 2px 0 0 var(--accent); }
383
- .table-tools { display: flex; justify-content: flex-end; padding: 3px 8px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
384
- .columns-menu { position: relative; font-size: 11px; font-weight: 400; }
385
- .columns-menu summary { list-style: none; cursor: pointer; color: var(--text-dim); padding: 2px 6px; border-radius: var(--radius); }
386
- .columns-menu summary::-webkit-details-marker { display: none; }
387
- .columns-menu summary:hover { background: var(--hover); color: var(--text); }
388
- .columns-menu .menu { position: absolute; right: 0; top: 100%; z-index: 3; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 10px; min-width: 140px; }
389
- .vhead .columns-menu { justify-self: end; }
390
- .grid td.mono { font-family: var(--mono); }
391
- tr.muted td, .vrow.muted > span, .row.muted .tag { opacity: 0.55; }
392
- .row.muted .tag .name::after { content: " ·muted"; color: var(--text-faint); font-family: var(--font); font-size: 10px; }
393
- button.ib.small { height: 22px; padding: 0 6px; }
394
- .note-box { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--warn-bg); border-bottom: 1px solid var(--border); }
395
- .note-box.muted { background: var(--bg-inset); }
396
- .note-box .glyph { color: var(--warn); }
397
- .note-input { flex: 1; height: 24px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--radius); background: transparent; font: inherit; color: inherit; }
398
- .note-input:hover, .note-input:focus { border-color: var(--border-strong); background: var(--bg); outline: none; }
399
-
400
366
  /* ---------- compact layout (side panel, narrow windows) ---------- */
401
367
  .compact .toolbar { flex-wrap: wrap; gap: 3px; }
402
368
  .compact .toolbar input[type="search"] { min-width: 120px; flex-basis: 100%; max-width: none; order: -1; margin-bottom: 3px; }