@variance-authority/storybook-collector 0.29.0 → 0.30.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/CHANGELOG.md +6 -0
- package/README.md +11 -11
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @variance-authority/storybook-collector
|
|
2
2
|
|
|
3
|
+
## 0.30.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- edc6d7d: The README and the skill print `variance`, the command a package manager runs from the install, where they printed a runner that fetches another package when the install is missing.
|
|
8
|
+
|
|
3
9
|
## 0.29.0
|
|
4
10
|
|
|
5
11
|
Lockstep release — nothing in this package changed. Every `@variance-authority/*` package shares one version.
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ You already have a Storybook. Each story is a UI state somebody deliberately
|
|
|
13
13
|
named, mounted and made ready — which is the expensive half of visual regression
|
|
14
14
|
testing, and you have paid for it.
|
|
15
15
|
|
|
16
|
-
This package hands that catalogue to `
|
|
16
|
+
This package hands that catalogue to `variance run` without a browser harness of
|
|
17
17
|
your own. It reads the `index.json` your Storybook build writes, opens the
|
|
18
18
|
preview once, switches stories over Storybook's own channel, and produces one
|
|
19
19
|
**subject** per story — one named UI state you asked for and can ask for again,
|
|
@@ -120,8 +120,8 @@ the contents rather than the directory:
|
|
|
120
120
|
### 4. Check the machine, run, accept, run again
|
|
121
121
|
|
|
122
122
|
```bash
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
variance doctor --config variance.config.json
|
|
124
|
+
variance run --config variance.config.json
|
|
125
125
|
```
|
|
126
126
|
|
|
127
127
|
`doctor` opens a browser, measures the fonts your config asserts, and lists
|
|
@@ -134,8 +134,8 @@ The first durable run exits `0` and reports every story `new`. Nothing moved,
|
|
|
134
134
|
and an image nobody approved is not a pass either. Promote the candidates the run already produced:
|
|
135
135
|
|
|
136
136
|
```bash
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
variance accept --config variance.config.json --all
|
|
138
|
+
variance run --config variance.config.json
|
|
139
139
|
```
|
|
140
140
|
|
|
141
141
|
The second run exits `0` and reports every story `unchanged`.
|
|
@@ -144,7 +144,7 @@ The second run exits `0` and reports every story `unchanged`.
|
|
|
144
144
|
full form is:
|
|
145
145
|
|
|
146
146
|
```
|
|
147
|
-
|
|
147
|
+
variance accept [--config <path>] <subject>... | --all | --shape <fingerprint>[,...] [--by <name>] [--message-file <path> [--message <text>]]
|
|
148
148
|
```
|
|
149
149
|
|
|
150
150
|
Keep `--all` for the first run and for deliberate re-baselines; it does not
|
|
@@ -152,7 +152,7 @@ separate a story nobody looked at from one that changed. After setup, name
|
|
|
152
152
|
subject ids:
|
|
153
153
|
|
|
154
154
|
```bash
|
|
155
|
-
|
|
155
|
+
variance accept --config variance.config.json story:checkout--empty story:checkout--one-item
|
|
156
156
|
```
|
|
157
157
|
|
|
158
158
|
`--shape` takes a **fingerprint** — an identifier the report gives every changed
|
|
@@ -162,7 +162,7 @@ refuses by name any subject where something else changed too.
|
|
|
162
162
|
|
|
163
163
|
### What you get
|
|
164
164
|
|
|
165
|
-
`
|
|
165
|
+
`variance run` prints its summary to the terminal and writes the same facts to
|
|
166
166
|
`.variance/report.json`, which every other command reads. Abridged, a run after
|
|
167
167
|
one edit to `Button`:
|
|
168
168
|
|
|
@@ -186,7 +186,7 @@ For the before, diff and after images per changed story, grouped by cause rather
|
|
|
186
186
|
than by story:
|
|
187
187
|
|
|
188
188
|
```bash
|
|
189
|
-
|
|
189
|
+
variance report --config variance.config.json --format html > .variance/report.html
|
|
190
190
|
```
|
|
191
191
|
|
|
192
192
|
The page references its images relatively, so write it beside the `report` path
|
|
@@ -510,10 +510,10 @@ same story shown again at another size.
|
|
|
510
510
|
response bodies participate in the environment key. Disable it only when the
|
|
511
511
|
URL already identifies the bytes.
|
|
512
512
|
- **The browser is missing:** run `npx playwright install chromium`, then
|
|
513
|
-
`
|
|
513
|
+
`variance doctor` again.
|
|
514
514
|
- **A rerun reports every story `changed`, a moved identity first:** the
|
|
515
515
|
approved image was stored under a different identity than this machine
|
|
516
|
-
produces. `
|
|
516
|
+
produces. `variance doctor` lists the
|
|
517
517
|
identities the baseline root stores.
|
|
518
518
|
|
|
519
519
|
## Boundaries
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@variance-authority/storybook-collector",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "Turn a built or already-served Storybook into Variance Authority subjects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"variance-authority",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"build": "tsc --build"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@variance-authority/core": "^0.
|
|
48
|
-
"@variance-authority/dom": "^0.
|
|
49
|
-
"@variance-authority/playwright": "^0.
|
|
50
|
-
"@variance-authority/react": "^0.
|
|
51
|
-
"@variance-authority/sense": "^0.
|
|
52
|
-
"@variance-authority/storybook": "^0.
|
|
47
|
+
"@variance-authority/core": "^0.30.0",
|
|
48
|
+
"@variance-authority/dom": "^0.30.0",
|
|
49
|
+
"@variance-authority/playwright": "^0.30.0",
|
|
50
|
+
"@variance-authority/react": "^0.30.0",
|
|
51
|
+
"@variance-authority/sense": "^0.30.0",
|
|
52
|
+
"@variance-authority/storybook": "^0.30.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@rsbuild/core": "~2.3.1",
|