@agent-scope/render 1.0.1 → 1.0.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/dist/index.d.cts CHANGED
@@ -153,6 +153,23 @@ interface RenderOptions {
153
153
  viewportHeight?: number;
154
154
  /** Timeout in milliseconds to wait for `window.__renderReady`. Default: 10_000. */
155
155
  timeoutMs?: number;
156
+ /**
157
+ * Padding (in pixels) added around the component bounding box in the screenshot.
158
+ * Gives visual breathing room and avoids pixel-tight crops.
159
+ * Default: 24.
160
+ */
161
+ screenshotPadding?: number;
162
+ /**
163
+ * Minimum screenshot width in pixels. The output PNG will be at least this wide.
164
+ * Useful so tiny components (e.g. an icon) produce a readable image.
165
+ * Default: 320.
166
+ */
167
+ minScreenshotWidth?: number;
168
+ /**
169
+ * Minimum screenshot height in pixels. The output PNG will be at least this tall.
170
+ * Default: 200.
171
+ */
172
+ minScreenshotHeight?: number;
156
173
  }
157
174
  /**
158
175
  * Named pool size presets.
package/dist/index.d.ts CHANGED
@@ -153,6 +153,23 @@ interface RenderOptions {
153
153
  viewportHeight?: number;
154
154
  /** Timeout in milliseconds to wait for `window.__renderReady`. Default: 10_000. */
155
155
  timeoutMs?: number;
156
+ /**
157
+ * Padding (in pixels) added around the component bounding box in the screenshot.
158
+ * Gives visual breathing room and avoids pixel-tight crops.
159
+ * Default: 24.
160
+ */
161
+ screenshotPadding?: number;
162
+ /**
163
+ * Minimum screenshot width in pixels. The output PNG will be at least this wide.
164
+ * Useful so tiny components (e.g. an icon) produce a readable image.
165
+ * Default: 320.
166
+ */
167
+ minScreenshotWidth?: number;
168
+ /**
169
+ * Minimum screenshot height in pixels. The output PNG will be at least this tall.
170
+ * Default: 200.
171
+ */
172
+ minScreenshotHeight?: number;
156
173
  }
157
174
  /**
158
175
  * Named pool size presets.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-scope/render",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Render paths for React components: Satori (simple/flexbox) and Playwright BrowserPool (complex)",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -42,7 +42,7 @@
42
42
  "dependencies": {
43
43
  "@fontsource/inter": "^5.2.8",
44
44
  "@resvg/resvg-js": "^2.6.2",
45
- "@agent-scope/manifest": "1.0.1",
45
+ "@agent-scope/manifest": "1.0.2",
46
46
  "playwright": "^1.50.0",
47
47
  "react": "^18.3.1",
48
48
  "react-dom": "^18.3.1",