Skip to content

Commit 7f1e8a0

Browse files
Version Packages (#249)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @storycap-testrun/browser@2.1.0 ### Minor Changes - [#248](#248) [`96b0fb9`](96b0fb9) Thanks [@wadackel](https://github.com/wadackel)! - Add per-story image options and fix viewport/fullPage behavior in vitest browser mode. **Per-story image options**: `fullPage`, `omitBackground`, and `scale` can now be set per-story via `parameters.screenshot`, overriding the global defaults. ```js export default { parameters: { screenshot: { fullPage: false, }, }, }; ``` **Viewport fix**: Added `viewport` option to the storycap plugin. This controls the screenshot capture dimensions, bypassing vitest's internal iframe scaling that previously caused screenshots to be captured at incorrect sizes. ```js storycap({ viewport: { width: 1280, height: 720 }, }); ``` **Full-page capture**: `fullPage: true` (default) now correctly captures content that extends beyond the viewport by scrolling through the iframe and stitching the results. `fullPage: false` captures only the viewport area. ### Patch Changes - Updated dependencies \[[`96b0fb9`](96b0fb9)]: - @storycap-testrun/internal@2.1.0 ## @storycap-testrun/internal@2.1.0 ### Minor Changes - [#248](#248) [`96b0fb9`](96b0fb9) Thanks [@wadackel](https://github.com/wadackel)! - Add per-story image options and fix viewport/fullPage behavior in vitest browser mode. **Per-story image options**: `fullPage`, `omitBackground`, and `scale` can now be set per-story via `parameters.screenshot`, overriding the global defaults. ```js export default { parameters: { screenshot: { fullPage: false, }, }, }; ``` **Viewport fix**: Added `viewport` option to the storycap plugin. This controls the screenshot capture dimensions, bypassing vitest's internal iframe scaling that previously caused screenshots to be captured at incorrect sizes. ```js storycap({ viewport: { width: 1280, height: 720 }, }); ``` **Full-page capture**: `fullPage: true` (default) now correctly captures content that extends beyond the viewport by scrolling through the iframe and stitching the results. `fullPage: false` captures only the viewport area. ## @storycap-testrun/node@2.1.0 ### Minor Changes - [#248](#248) [`96b0fb9`](96b0fb9) Thanks [@wadackel](https://github.com/wadackel)! - Add per-story image options and fix viewport/fullPage behavior in vitest browser mode. **Per-story image options**: `fullPage`, `omitBackground`, and `scale` can now be set per-story via `parameters.screenshot`, overriding the global defaults. ```js export default { parameters: { screenshot: { fullPage: false, }, }, }; ``` **Viewport fix**: Added `viewport` option to the storycap plugin. This controls the screenshot capture dimensions, bypassing vitest's internal iframe scaling that previously caused screenshots to be captured at incorrect sizes. ```js storycap({ viewport: { width: 1280, height: 720 }, }); ``` **Full-page capture**: `fullPage: true` (default) now correctly captures content that extends beyond the viewport by scrolling through the iframe and stitching the results. `fullPage: false` captures only the viewport area. ### Patch Changes - Updated dependencies \[[`96b0fb9`](96b0fb9)]: - @storycap-testrun/internal@2.1.0 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent fdd15d0 commit 7f1e8a0

7 files changed

Lines changed: 97 additions & 32 deletions

File tree

.changeset/per-story-image-options.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

packages/browser/CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# @storycap-testrun/browser
22

3+
## 2.1.0
4+
5+
### Minor Changes
6+
7+
- [#248](https://github.com/reg-viz/storycap-testrun/pull/248) [`96b0fb9`](https://github.com/reg-viz/storycap-testrun/commit/96b0fb9936a0c0bdf7aea139addd381bfcd6b0cb) Thanks [@wadackel](https://github.com/wadackel)! - Add per-story image options and fix viewport/fullPage behavior in vitest browser mode.
8+
9+
**Per-story image options**: `fullPage`, `omitBackground`, and `scale` can now be set per-story via `parameters.screenshot`, overriding the global defaults.
10+
11+
```js
12+
export default {
13+
parameters: {
14+
screenshot: {
15+
fullPage: false,
16+
},
17+
},
18+
};
19+
```
20+
21+
**Viewport fix**: Added `viewport` option to the storycap plugin. This controls the screenshot capture dimensions, bypassing vitest's internal iframe scaling that previously caused screenshots to be captured at incorrect sizes.
22+
23+
```js
24+
storycap({
25+
viewport: { width: 1280, height: 720 },
26+
});
27+
```
28+
29+
**Full-page capture**: `fullPage: true` (default) now correctly captures content that extends beyond the viewport by scrolling through the iframe and stitching the results. `fullPage: false` captures only the viewport area.
30+
31+
### Patch Changes
32+
33+
- Updated dependencies [[`96b0fb9`](https://github.com/reg-viz/storycap-testrun/commit/96b0fb9936a0c0bdf7aea139addd381bfcd6b0cb)]:
34+
- @storycap-testrun/internal@2.1.0
35+
336
## 2.0.0
437

538
### Major Changes

packages/browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storycap-testrun/browser",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "Screenshot capture for Storybook addon-vitest - Provides stable visual testing functionality and Vitest plugin for Storybook stories running in browser environments",
55
"keywords": [
66
"addon",

packages/internal/CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# @storycap-testrun/internal
22

3+
## 2.1.0
4+
5+
### Minor Changes
6+
7+
- [#248](https://github.com/reg-viz/storycap-testrun/pull/248) [`96b0fb9`](https://github.com/reg-viz/storycap-testrun/commit/96b0fb9936a0c0bdf7aea139addd381bfcd6b0cb) Thanks [@wadackel](https://github.com/wadackel)! - Add per-story image options and fix viewport/fullPage behavior in vitest browser mode.
8+
9+
**Per-story image options**: `fullPage`, `omitBackground`, and `scale` can now be set per-story via `parameters.screenshot`, overriding the global defaults.
10+
11+
```js
12+
export default {
13+
parameters: {
14+
screenshot: {
15+
fullPage: false,
16+
},
17+
},
18+
};
19+
```
20+
21+
**Viewport fix**: Added `viewport` option to the storycap plugin. This controls the screenshot capture dimensions, bypassing vitest's internal iframe scaling that previously caused screenshots to be captured at incorrect sizes.
22+
23+
```js
24+
storycap({
25+
viewport: { width: 1280, height: 720 },
26+
});
27+
```
28+
29+
**Full-page capture**: `fullPage: true` (default) now correctly captures content that extends beyond the viewport by scrolling through the iframe and stitching the results. `fullPage: false` captures only the viewport area.
30+
331
## 2.0.0
432

533
### Major Changes

packages/internal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storycap-testrun/internal",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "Core utilities and shared types for storycap-testrun - Provides screenshot options, stability checks, hook processing, and common functionality for browser and Node.js environments",
55
"keywords": [
66
"storybook",

packages/node/CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# @storycap-testrun/node
22

3+
## 2.1.0
4+
5+
### Minor Changes
6+
7+
- [#248](https://github.com/reg-viz/storycap-testrun/pull/248) [`96b0fb9`](https://github.com/reg-viz/storycap-testrun/commit/96b0fb9936a0c0bdf7aea139addd381bfcd6b0cb) Thanks [@wadackel](https://github.com/wadackel)! - Add per-story image options and fix viewport/fullPage behavior in vitest browser mode.
8+
9+
**Per-story image options**: `fullPage`, `omitBackground`, and `scale` can now be set per-story via `parameters.screenshot`, overriding the global defaults.
10+
11+
```js
12+
export default {
13+
parameters: {
14+
screenshot: {
15+
fullPage: false,
16+
},
17+
},
18+
};
19+
```
20+
21+
**Viewport fix**: Added `viewport` option to the storycap plugin. This controls the screenshot capture dimensions, bypassing vitest's internal iframe scaling that previously caused screenshots to be captured at incorrect sizes.
22+
23+
```js
24+
storycap({
25+
viewport: { width: 1280, height: 720 },
26+
});
27+
```
28+
29+
**Full-page capture**: `fullPage: true` (default) now correctly captures content that extends beyond the viewport by scrolling through the iframe and stitching the results. `fullPage: false` captures only the viewport area.
30+
31+
### Patch Changes
32+
33+
- Updated dependencies [[`96b0fb9`](https://github.com/reg-viz/storycap-testrun/commit/96b0fb9936a0c0bdf7aea139addd381bfcd6b0cb)]:
34+
- @storycap-testrun/internal@2.1.0
35+
336
## 2.0.0
437

538
### Major Changes

packages/node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storycap-testrun/node",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "Node.js screenshot capture for Storybook Test Runner - Provides stable screenshot functionality using Playwright for visual regression testing",
55
"keywords": [
66
"addon",

0 commit comments

Comments
 (0)