@variance-authority/storybook-collector 0.28.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +11 -11
  3. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
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
+
9
+ ## 0.29.0
10
+
11
+ Lockstep release — nothing in this package changed. Every `@variance-authority/*` package shares one version.
12
+
3
13
  ## 0.28.0
4
14
 
5
15
  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 `npx variance run` without a browser harness of
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
- npx variance doctor --config variance.config.json
124
- npx variance run --config variance.config.json
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
- npx variance accept --config variance.config.json --all
138
- npx variance run --config variance.config.json
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
- npx variance accept [--config <path>] <subject>... | --all | --shape <fingerprint>[,...] [--message-file <path> [--message <text>]]
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
- npx variance accept --config variance.config.json story:checkout--empty story:checkout--one-item
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
- `npx variance run` prints its summary to the terminal and writes the same facts to
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
- npx variance report --config variance.config.json --format html > .variance/report.html
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
- `npx variance doctor` again.
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. `npx variance doctor` lists the
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.28.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.28.0",
48
- "@variance-authority/dom": "^0.28.0",
49
- "@variance-authority/playwright": "^0.28.0",
50
- "@variance-authority/react": "^0.28.0",
51
- "@variance-authority/sense": "^0.28.0",
52
- "@variance-authority/storybook": "^0.28.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",