@agent-scope/site 1.20.0 → 1.20.2
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/README.md +11 -1
- package/dist/index.cjs +2590 -218
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2590 -218
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -298,6 +298,7 @@ src/
|
|
|
298
298
|
- **Embedded assets** — CSS and JavaScript are inlined into every HTML file. No separate asset directory.
|
|
299
299
|
- **XSS safety** — all user-controlled strings (component names, prop values, file paths) pass through `escapeHtml()` before insertion into HTML.
|
|
300
300
|
- **Idempotent builds** — running `buildSite()` multiple times on the same input produces identical output.
|
|
301
|
+
- **Retina-ready screenshots** — all component `<img>` elements use `zoom: 0.5` via the `.scope-screenshot` CSS class. Screenshots are rendered at 2× physical pixels (`deviceScaleFactor: 2`) and displayed at CSS pixel dimensions, giving crisp HiDPI output without per-image size math.
|
|
301
302
|
- **Progressive enhancement** — pages are readable without JavaScript; search filtering and collapsible sections are added via inline `<script>` tags.
|
|
302
303
|
|
|
303
304
|
### CSS design system
|
|
@@ -392,7 +393,7 @@ interface RenderFileData {
|
|
|
392
393
|
violations: string[];
|
|
393
394
|
};
|
|
394
395
|
// Matrix render fields
|
|
395
|
-
cells?: MatrixCellData[];
|
|
396
|
+
cells?: MatrixCellData[]; // each cell includes width/height for correct HiDPI display
|
|
396
397
|
axisLabels?: string[][];
|
|
397
398
|
stats?: {
|
|
398
399
|
total: number;
|
|
@@ -419,6 +420,15 @@ interface ComplianceReportData {
|
|
|
419
420
|
auditedAt: string;
|
|
420
421
|
}
|
|
421
422
|
|
|
423
|
+
interface MatrixCellData {
|
|
424
|
+
axisValues: string[];
|
|
425
|
+
screenshot?: string; // base64 PNG
|
|
426
|
+
width?: number; // CSS px
|
|
427
|
+
height?: number; // CSS px
|
|
428
|
+
renderTimeMs?: number;
|
|
429
|
+
error?: string;
|
|
430
|
+
}
|
|
431
|
+
|
|
422
432
|
interface PropertyResultData {
|
|
423
433
|
property: string;
|
|
424
434
|
value: string;
|