Commit 7f1e8a0
authored
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
- packages
- browser
- internal
- node
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
3 | 36 | | |
4 | 37 | | |
5 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
3 | 31 | | |
4 | 32 | | |
5 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
3 | 36 | | |
4 | 37 | | |
5 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments