@visual-check/cli 0.1.2 → 0.2.1

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 (215) hide show
  1. package/dist/addon-child/image-files.js +1 -1
  2. package/dist/addon-child/image-files.js.map +1 -1
  3. package/dist/agent-skill/skill-files.d.ts +4 -0
  4. package/dist/agent-skill/skill-files.d.ts.map +1 -1
  5. package/dist/agent-skill/skill-files.js +4 -0
  6. package/dist/agent-skill/skill-files.js.map +1 -1
  7. package/dist/baselines/baseline-error.d.ts +15 -2
  8. package/dist/baselines/baseline-error.d.ts.map +1 -1
  9. package/dist/baselines/baseline-error.js +32 -2
  10. package/dist/baselines/baseline-error.js.map +1 -1
  11. package/dist/capture/capture-session.d.ts +161 -30
  12. package/dist/capture/capture-session.d.ts.map +1 -1
  13. package/dist/capture/capture-session.js +291 -72
  14. package/dist/capture/capture-session.js.map +1 -1
  15. package/dist/capture/driver/cdp/cdp-page.d.ts.map +1 -1
  16. package/dist/capture/driver/cdp/cdp-page.js +120 -31
  17. package/dist/capture/driver/cdp/cdp-page.js.map +1 -1
  18. package/dist/capture/driver/cdp/failed-loads.d.ts +16 -0
  19. package/dist/capture/driver/cdp/failed-loads.d.ts.map +1 -0
  20. package/dist/capture/driver/cdp/failed-loads.js +71 -0
  21. package/dist/capture/driver/cdp/failed-loads.js.map +1 -0
  22. package/dist/capture/driver/cdp/launch-arguments.d.ts +7 -1
  23. package/dist/capture/driver/cdp/launch-arguments.d.ts.map +1 -1
  24. package/dist/capture/driver/cdp/launch-arguments.js +8 -1
  25. package/dist/capture/driver/cdp/launch-arguments.js.map +1 -1
  26. package/dist/capture/driver/driver.d.ts +88 -4
  27. package/dist/capture/driver/driver.d.ts.map +1 -1
  28. package/dist/capture/driver/driver.js +33 -0
  29. package/dist/capture/driver/driver.js.map +1 -1
  30. package/dist/capture/frames.d.ts +10 -0
  31. package/dist/capture/frames.d.ts.map +1 -1
  32. package/dist/capture/frames.js +67 -0
  33. package/dist/capture/frames.js.map +1 -1
  34. package/dist/capture/page-script.d.ts +19 -8
  35. package/dist/capture/page-script.d.ts.map +1 -1
  36. package/dist/capture/page-script.js +46 -12
  37. package/dist/capture/page-script.js.map +1 -1
  38. package/dist/capture/prepare-capture.d.ts +50 -3
  39. package/dist/capture/prepare-capture.d.ts.map +1 -1
  40. package/dist/capture/prepare-capture.js +157 -16
  41. package/dist/capture/prepare-capture.js.map +1 -1
  42. package/dist/commands/check-storybooks.d.ts +5 -4
  43. package/dist/commands/check-storybooks.d.ts.map +1 -1
  44. package/dist/commands/check-storybooks.js +11 -8
  45. package/dist/commands/check-storybooks.js.map +1 -1
  46. package/dist/commands/consistency-output.d.ts.map +1 -1
  47. package/dist/commands/consistency-output.js +3 -3
  48. package/dist/commands/consistency-output.js.map +1 -1
  49. package/dist/commands/failed-loads-hint.d.ts +7 -0
  50. package/dist/commands/failed-loads-hint.d.ts.map +1 -0
  51. package/dist/commands/failed-loads-hint.js +16 -0
  52. package/dist/commands/failed-loads-hint.js.map +1 -0
  53. package/dist/commands/local-update.d.ts +22 -0
  54. package/dist/commands/local-update.d.ts.map +1 -0
  55. package/dist/commands/local-update.js +39 -0
  56. package/dist/commands/local-update.js.map +1 -0
  57. package/dist/commands/network-warning.d.ts.map +1 -1
  58. package/dist/commands/network-warning.js +2 -18
  59. package/dist/commands/network-warning.js.map +1 -1
  60. package/dist/commands/plan-snapshots.d.ts +23 -8
  61. package/dist/commands/plan-snapshots.d.ts.map +1 -1
  62. package/dist/commands/plan-snapshots.js +15 -9
  63. package/dist/commands/plan-snapshots.js.map +1 -1
  64. package/dist/commands/report-entries.d.ts +5 -2
  65. package/dist/commands/report-entries.d.ts.map +1 -1
  66. package/dist/commands/report-entries.js +63 -15
  67. package/dist/commands/report-entries.js.map +1 -1
  68. package/dist/commands/run-browser.d.ts +5 -5
  69. package/dist/commands/run-browser.d.ts.map +1 -1
  70. package/dist/commands/run-browser.js +1 -0
  71. package/dist/commands/run-browser.js.map +1 -1
  72. package/dist/commands/run-cli.d.ts +16 -5
  73. package/dist/commands/run-cli.d.ts.map +1 -1
  74. package/dist/commands/run-cli.js +74 -54
  75. package/dist/commands/run-cli.js.map +1 -1
  76. package/dist/commands/run-report.d.ts +3 -3
  77. package/dist/commands/run-report.d.ts.map +1 -1
  78. package/dist/commands/run-report.js +4 -2
  79. package/dist/commands/run-report.js.map +1 -1
  80. package/dist/commands/run-snapshots.d.ts +7 -4
  81. package/dist/commands/run-snapshots.d.ts.map +1 -1
  82. package/dist/commands/run-snapshots.js +49 -17
  83. package/dist/commands/run-snapshots.js.map +1 -1
  84. package/dist/commands/snapshot-result.d.ts +66 -9
  85. package/dist/commands/snapshot-result.d.ts.map +1 -1
  86. package/dist/commands/snapshot-result.js +46 -6
  87. package/dist/commands/snapshot-result.js.map +1 -1
  88. package/dist/commands/stop-message.d.ts.map +1 -1
  89. package/dist/commands/stop-message.js +6 -1
  90. package/dist/commands/stop-message.js.map +1 -1
  91. package/dist/commands/stopped-run.d.ts +10 -5
  92. package/dist/commands/stopped-run.d.ts.map +1 -1
  93. package/dist/commands/stopped-run.js +35 -22
  94. package/dist/commands/stopped-run.js.map +1 -1
  95. package/dist/commands/take-snapshot.d.ts +9 -6
  96. package/dist/commands/take-snapshot.d.ts.map +1 -1
  97. package/dist/commands/take-snapshot.js +16 -7
  98. package/dist/commands/take-snapshot.js.map +1 -1
  99. package/dist/commands/test-snapshot.d.ts +2 -2
  100. package/dist/commands/test-snapshot.d.ts.map +1 -1
  101. package/dist/commands/test-snapshot.js.map +1 -1
  102. package/dist/commands/update-baselines.d.ts.map +1 -1
  103. package/dist/commands/update-baselines.js +3 -2
  104. package/dist/commands/update-baselines.js.map +1 -1
  105. package/dist/commands/update-snapshot.d.ts +22 -4
  106. package/dist/commands/update-snapshot.d.ts.map +1 -1
  107. package/dist/commands/update-snapshot.js +79 -18
  108. package/dist/commands/update-snapshot.js.map +1 -1
  109. package/dist/config/checks.d.ts +26 -0
  110. package/dist/config/checks.d.ts.map +1 -1
  111. package/dist/config/checks.js +68 -6
  112. package/dist/config/checks.js.map +1 -1
  113. package/dist/config/define-config.d.ts +38 -2
  114. package/dist/config/define-config.d.ts.map +1 -1
  115. package/dist/config/define-config.js.map +1 -1
  116. package/dist/config/resolve-config.d.ts +15 -2
  117. package/dist/config/resolve-config.d.ts.map +1 -1
  118. package/dist/config/resolve-config.js +6 -0
  119. package/dist/config/resolve-config.js.map +1 -1
  120. package/dist/config/story-options.d.ts +32 -4
  121. package/dist/config/story-options.d.ts.map +1 -1
  122. package/dist/config/story-options.js +38 -7
  123. package/dist/config/story-options.js.map +1 -1
  124. package/dist/config/unrunnable-regexp.d.ts +22 -0
  125. package/dist/config/unrunnable-regexp.d.ts.map +1 -0
  126. package/dist/config/unrunnable-regexp.js +25 -0
  127. package/dist/config/unrunnable-regexp.js.map +1 -0
  128. package/dist/config/validate-config.d.ts.map +1 -1
  129. package/dist/config/validate-config.js +6 -21
  130. package/dist/config/validate-config.js.map +1 -1
  131. package/dist/index.d.ts +3 -3
  132. package/dist/index.d.ts.map +1 -1
  133. package/dist/index.js.map +1 -1
  134. package/dist/init/find-storybooks.d.ts +5 -0
  135. package/dist/init/find-storybooks.d.ts.map +1 -1
  136. package/dist/init/find-storybooks.js +8 -1
  137. package/dist/init/find-storybooks.js.map +1 -1
  138. package/dist/init/ignored-skill.d.ts +50 -0
  139. package/dist/init/ignored-skill.d.ts.map +1 -0
  140. package/dist/init/ignored-skill.js +61 -0
  141. package/dist/init/ignored-skill.js.map +1 -0
  142. package/dist/init/install.d.ts +24 -9
  143. package/dist/init/install.d.ts.map +1 -1
  144. package/dist/init/install.js +66 -26
  145. package/dist/init/install.js.map +1 -1
  146. package/dist/init/package-manager.d.ts +6 -0
  147. package/dist/init/package-manager.d.ts.map +1 -1
  148. package/dist/init/package-manager.js +4 -0
  149. package/dist/init/package-manager.js.map +1 -1
  150. package/dist/init/run-init.d.ts +17 -4
  151. package/dist/init/run-init.d.ts.map +1 -1
  152. package/dist/init/run-init.js +31 -11
  153. package/dist/init/run-init.js.map +1 -1
  154. package/dist/init/workspace.d.ts +2 -0
  155. package/dist/init/workspace.d.ts.map +1 -1
  156. package/dist/init/workspace.js +2 -0
  157. package/dist/init/workspace.js.map +1 -1
  158. package/dist/page-errors/judge-page-errors.d.ts +50 -0
  159. package/dist/page-errors/judge-page-errors.d.ts.map +1 -0
  160. package/dist/page-errors/judge-page-errors.js +39 -0
  161. package/dist/page-errors/judge-page-errors.js.map +1 -0
  162. package/dist/page-errors/page-error-policy.d.ts +36 -0
  163. package/dist/page-errors/page-error-policy.d.ts.map +1 -0
  164. package/dist/page-errors/page-error-policy.js +15 -0
  165. package/dist/page-errors/page-error-policy.js.map +1 -0
  166. package/dist/real-network-requests/judge-real-requests.d.ts +26 -0
  167. package/dist/real-network-requests/judge-real-requests.d.ts.map +1 -0
  168. package/dist/real-network-requests/judge-real-requests.js +17 -0
  169. package/dist/real-network-requests/judge-real-requests.js.map +1 -0
  170. package/dist/real-network-requests/real-request-policy.d.ts +29 -0
  171. package/dist/real-network-requests/real-request-policy.d.ts.map +1 -0
  172. package/dist/real-network-requests/real-request-policy.js +10 -0
  173. package/dist/real-network-requests/real-request-policy.js.map +1 -0
  174. package/dist/real-network-requests/silenced-hosts.d.ts +9 -0
  175. package/dist/real-network-requests/silenced-hosts.d.ts.map +1 -0
  176. package/dist/real-network-requests/silenced-hosts.js +28 -0
  177. package/dist/real-network-requests/silenced-hosts.js.map +1 -0
  178. package/dist/report/report-document.d.ts +154 -9
  179. package/dist/report/report-document.d.ts.map +1 -1
  180. package/dist/report/report-document.js +1 -1
  181. package/dist/report/report-document.js.map +1 -1
  182. package/dist/report/report-folder.d.ts +7 -3
  183. package/dist/report/report-folder.d.ts.map +1 -1
  184. package/dist/report/report-folder.js +5 -5
  185. package/dist/report/report-folder.js.map +1 -1
  186. package/dist/reporter/end-block.d.ts +32 -3
  187. package/dist/reporter/end-block.d.ts.map +1 -1
  188. package/dist/reporter/end-block.js +55 -3
  189. package/dist/reporter/end-block.js.map +1 -1
  190. package/dist/reporter/page-errors-block.d.ts +52 -0
  191. package/dist/reporter/page-errors-block.d.ts.map +1 -0
  192. package/dist/reporter/page-errors-block.js +98 -0
  193. package/dist/reporter/page-errors-block.js.map +1 -0
  194. package/dist/reporter/real-requests-block.d.ts +33 -0
  195. package/dist/reporter/real-requests-block.d.ts.map +1 -0
  196. package/dist/reporter/real-requests-block.js +53 -0
  197. package/dist/reporter/real-requests-block.js.map +1 -0
  198. package/dist/step-summary/step-summary.d.ts +27 -7
  199. package/dist/step-summary/step-summary.d.ts.map +1 -1
  200. package/dist/step-summary/step-summary.js +107 -15
  201. package/dist/step-summary/step-summary.js.map +1 -1
  202. package/dist/storybook/options-encoding.d.ts +18 -5
  203. package/dist/storybook/options-encoding.d.ts.map +1 -1
  204. package/dist/storybook/options-encoding.js +12 -4
  205. package/dist/storybook/options-encoding.js.map +1 -1
  206. package/dist/storybook/options-read.d.ts +3 -2
  207. package/dist/storybook/options-read.d.ts.map +1 -1
  208. package/dist/storybook/options-read.js +17 -0
  209. package/dist/storybook/options-read.js.map +1 -1
  210. package/dist/storybook/read-stories.d.ts +15 -0
  211. package/dist/storybook/read-stories.d.ts.map +1 -1
  212. package/dist/storybook/read-stories.js +60 -14
  213. package/dist/storybook/read-stories.js.map +1 -1
  214. package/package.json +2 -1
  215. package/skill/SKILL.md +25 -7
@@ -116,7 +116,7 @@ export function createImageFiles() {
116
116
  return {
117
117
  folderOf,
118
118
  pathsOf: (storybook, stem, images) => {
119
- const paths = { baseline: null, snapshot: null, diff: null };
119
+ const paths = { baseline: null, snapshot: null, diff: null, compared: null };
120
120
  for (const kind of imageKinds) {
121
121
  if (images[kind] !== undefined) {
122
122
  paths[kind] = imagePathOf(storybook, stem, kind);
@@ -1 +1 @@
1
- {"version":3,"file":"image-files.js","sourceRoot":"","sources":["../../src/addon-child/image-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE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KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;YAC5C,MAAM,YAAY,GAAG,MAAM,cAAc,CAAC,SAAS,CAAC,CAAA;YACpD,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;YACxC,MAAM,IAAI,GAAG,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAA;YAE5C,qEAAqE;YACrE,YAAY,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;YACnE,MAAM,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;YAC/B,YAAY,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;QAC9C,CAAC;KACF,CAAA;AACH,CAAC"}
@@ -1,9 +1,13 @@
1
1
  /**
2
2
  * Where `init` installs the agent skill, relative to the workspace root.
3
+ *
4
+ * @public
3
5
  */
4
6
  export declare const skillFolder: string;
5
7
  /**
6
8
  * Where Claude Code reads the skill, relative to the workspace root: a link to `skillFolder`, or a copy on Windows.
9
+ *
10
+ * @public
7
11
  */
8
12
  export declare const claudeSkillFolder: string;
9
13
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"skill-files.d.ts","sourceRoot":"","sources":["../../src/agent-skill/skill-files.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,WAAW,QAA4C,CAAA;AAEpE;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAA4C,CAAA;AAE1E;;GAEG;AACH,eAAO,MAAM,gBAAgB,sCAAsC,CAAA;AAEnE;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAS5E"}
1
+ {"version":3,"file":"skill-files.d.ts","sourceRoot":"","sources":["../../src/agent-skill/skill-files.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,WAAW,QAA4C,CAAA;AAEpE;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,QAA4C,CAAA;AAE1E;;GAEG;AACH,eAAO,MAAM,gBAAgB,sCAAsC,CAAA;AAEnE;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAS5E"}
@@ -3,10 +3,14 @@ import { dirname, join } from 'node:path';
3
3
  import { skillMarkdownOf, skillSourcePaths } from './skill-markdown.js';
4
4
  /**
5
5
  * Where `init` installs the agent skill, relative to the workspace root.
6
+ *
7
+ * @public
6
8
  */
7
9
  export const skillFolder = join('.agents', 'skills', 'visual-check');
8
10
  /**
9
11
  * Where Claude Code reads the skill, relative to the workspace root: a link to `skillFolder`, or a copy on Windows.
12
+ *
13
+ * @public
10
14
  */
11
15
  export const claudeSkillFolder = join('.claude', 'skills', 'visual-check');
12
16
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"skill-files.js","sourceRoot":"","sources":["../../src/agent-skill/skill-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC9E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEvE;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAA;AAEpE;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAA;AAE1E;;GAEG;AACH,MAAM,CAAC,MAA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AM,QAAQ,GAAG,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;IACzC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC,CAAA;IAEjD,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IAC/C,YAAY,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,aAAa,CAAC,QAAQ,EAAE,eAAe,CAAC,YAAY,CAAC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,UAAU,CAAC,CAAC,CAAA;IAErG,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;AAC3B,CAAC"}
@@ -31,9 +31,22 @@ export declare class BaselineError extends Error {
31
31
  */
32
32
  readonly subject: string;
33
33
  /**
34
- * Keeps what failed, the path and the reason the error that caused it gives.
34
+ * Whether the baseline couldn't be decoded because it's a Git LFS pointer, as a checkout without the LFS objects
35
+ * holds.
35
36
  */
36
- constructor(action: BaselineAction, path: string, cause: unknown);
37
+ readonly lfsPointer: boolean;
38
+ /**
39
+ * Keeps what failed, the path, the reason the error that caused it gives, and whether the baseline is a Git LFS
40
+ * pointer.
41
+ */
42
+ constructor(action: BaselineAction, path: string, cause: unknown, lfsPointer?: boolean);
37
43
  }
44
+ /**
45
+ * Gives the error for a baseline at `path` that couldn't be decoded, from its bytes and the decoder's error. A Git LFS
46
+ * pointer says it's one in place of the decoder's reason.
47
+ *
48
+ * @public
49
+ */
50
+ export declare function baselineDecodeErrorOf(path: string, bytes: Uint8Array, decoderError: Error): BaselineError;
38
51
  export {};
39
52
  //# sourceMappingURL=baseline-error.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"baseline-error.d.ts","sourceRoot":"","sources":["../../src/baselines/baseline-error.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,KAAK,cAAc,GAAG,MAAM,GAAG,QAA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GAAG,aAAa,CAQzG"}
@@ -27,9 +27,15 @@ export class BaselineError extends Error {
27
27
  */
28
28
  subject;
29
29
  /**
30
- * Keeps what failed, the path and the reason the error that caused it gives.
30
+ * Whether the baseline couldn't be decoded because it's a Git LFS pointer, as a checkout without the LFS objects
31
+ * holds.
31
32
  */
32
- constructor(action, path, cause) {
33
+ lfsPointer;
34
+ /**
35
+ * Keeps what failed, the path, the reason the error that caused it gives, and whether the baseline is a Git LFS
36
+ * pointer.
37
+ */
38
+ constructor(action, path, cause, lfsPointer = false) {
33
39
  const reason = systemReasonOf(cause);
34
40
  const subject = action === 'list' ? 'the baselines folder' : 'the baseline';
35
41
  super(`Couldn't ${action} ${subject} ${path}: ${reason}.`, { cause });
@@ -37,6 +43,30 @@ export class BaselineError extends Error {
37
43
  this.path = path;
38
44
  this.reason = reason;
39
45
  this.subject = subject;
46
+ this.lfsPointer = lfsPointer;
47
+ }
48
+ }
49
+ /**
50
+ * The first line of every Git LFS pointer file.
51
+ */
52
+ const lfsPointerStart = new TextEncoder().encode('version https://git-lfs.github.com/spec/v1');
53
+ /**
54
+ * Whether a file starts as a Git LFS pointer does.
55
+ */
56
+ function isLfsPointer(bytes) {
57
+ return bytes.length >= lfsPointerStart.length && lfsPointerStart.every((byte, index) => bytes[index] === byte);
58
+ }
59
+ /**
60
+ * Gives the error for a baseline at `path` that couldn't be decoded, from its bytes and the decoder's error. A Git LFS
61
+ * pointer says it's one in place of the decoder's reason.
62
+ *
63
+ * @public
64
+ */
65
+ export function baselineDecodeErrorOf(path, bytes, decoderError) {
66
+ if (!isLfsPointer(bytes)) {
67
+ return new BaselineError('decode', path, decoderError);
40
68
  }
69
+ const cause = new Error("it's a Git LFS pointer, not a PNG file", { cause: decoderError });
70
+ return new BaselineError('decode', path, cause, true);
41
71
  }
42
72
  //# sourceMappingURL=baseline-error.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"baseline-error.js","sourceRoot":"","sources":["../../src/baselines/baseline-error.ts"],"names":[],"m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AAA;AACvD,CAAC"}
@@ -1,5 +1,5 @@
1
- import { type CaptureArea, type ConsoleMessage, type Driver, type PageSetup, type PageViewport } from './driver/driver.js';
2
- import { type PageGrid, type PageRemoteContent, type StoryMask } from './prepare-capture.js';
1
+ import { type CaptureArea, type ConsoleMessage, type Driver, type FailedLoad, type PageError, type PageSetup, type PageViewport } from './driver/driver.js';
2
+ import { type PageGrid, type PageOverflow, type PageRemoteContent, type StoryMask } from './prepare-capture.js';
3
3
  /**
4
4
  * How much longer than a wait in the page the driver waits for its answer, in ms. The wait in the page gives up first
5
5
  * and says why; this catches a page that stopped answering.
@@ -12,14 +12,16 @@ export declare const waitMarginMs = 1000;
12
12
  */
13
13
  export interface CaptureSettings {
14
14
  /**
15
- * The config's `readyTimeout`, in ms, per attempt: a story that navigates away is captured again, up to 2 more times,
16
- * each with the whole of it. It's counted from just before the viewport is set. Loading the story (`goto`), waiting
17
- * for Storybook to report it finished, waiting for its images and fonts, running its wait hook, checking its images
18
- * and fonts again after the hook, bringing it to its end state, checking its images and fonts again after that and
19
- * painting its masks share it, each getting what's left, in whole ms rounded up. Each wait in the page gives up when
20
- * it runs out, and the driver allows up to 1 s more for the page's answer. Setting the viewport, the capture and
21
- * capturing the snapshot again are bound by the driver's own fixed limits instead. Nothing limits a story's
22
- * `captureAgainIf`.
15
+ * The config's `readyTimeout`, in ms, per attempt, for a story that doesn't set its own `readyTimeoutMs`, which
16
+ * replaces it for that story: a story that navigates away is captured again, up to 2 more times, each with the whole
17
+ * of it. It's counted from just before the viewport is set. Loading the story (`goto`), waiting for Storybook to
18
+ * report it finished, waiting for its images and fonts, letting frames pass once the viewport grew and checking its
19
+ * images and fonts again, running its wait hook, checking its images and fonts again after the hook,
20
+ * letting frames pass and checking its images and fonts again once the viewport was set again after the hook,
21
+ * bringing it to its end state, checking its images and fonts again after that and painting its masks share it, each
22
+ * getting what's left, in whole ms rounded up. Each wait in the page gives up when it runs out, and the driver allows
23
+ * up to 1 s more for the page's answer. Setting the viewport, growing it, the capture and capturing the snapshot
24
+ * again are bound by the driver's own fixed limits instead. Nothing limits a story's `captureAgainIf`.
23
25
  */
24
26
  readyTimeoutMs: number;
25
27
  /**
@@ -81,11 +83,18 @@ export interface StoryToCapture {
81
83
  element?: string;
82
84
  /**
83
85
  * Whether a full-page capture first grows the viewport's height to the page's, so fixed and sticky elements sit
84
- * where they would on a screen as tall as the page. `false` captures the full page beyond the viewport at the
86
+ * where they would on a screen as tall as the page, and, once the story's wait hook ran, sets the story's viewport
87
+ * again and grows it to the page measured then. `false` captures the full page beyond the viewport at the
85
88
  * viewport's height, so `100vh` stays the viewport's height. Without it, the viewport grows. An element's capture
86
89
  * never grows it.
87
90
  */
88
91
  growViewport?: boolean;
92
+ /**
93
+ * Whether content the capture would cut doesn't break the story: content wider than the viewport for the full page,
94
+ * spilling past the `element` box, or the element past the page's top or left edge. When true, the story is
95
+ * captured as it is. Without it, such a story is broken with `overflows`.
96
+ */
97
+ allowOverflow?: boolean;
89
98
  /**
90
99
  * The masks painted over the story before its capture, in order. None without it.
91
100
  */
@@ -98,11 +107,24 @@ export interface StoryToCapture {
98
107
  findRemoteContent?: boolean;
99
108
  /**
100
109
  * Whether a story that breaks while its page still shows something comes with an image of that page: for the
101
- * reasons `error`, `play-threw`, `timeout`, `fonts-not-loaded`, `wait-threw`, `element-missing` and
102
- * `grid-too-wide`, the full page, captured at once, before the page is closed. Without it, a broken story comes
110
+ * reasons `error`, `play-threw`, `timeout`, `fonts-not-loaded`, `wait-threw`, `element-missing`, `grid-too-wide`
111
+ * and `overflows`, the full page, captured at once, before the page is closed. Without it, a broken story comes
103
112
  * without one.
104
113
  */
105
114
  imageWhenBroken?: boolean;
115
+ /**
116
+ * Whether the capture gives the hosts of the real network requests its page made, as `requestHosts`, from every
117
+ * attempt. Its page then watches its requests: the session replaces a page that doesn't with one that does. Without
118
+ * it, the capture gives none, and a page is opened to watch requests only when the settings list hosts, though a page
119
+ * already watching is kept.
120
+ */
121
+ watchRequests?: boolean;
122
+ /**
123
+ * The story's own readyTimeout, in ms, from its `parameters.visualCheck`. It replaces the settings' `readyTimeoutMs`
124
+ * for this story, and a broken story's message and details say it was the story's. Without it, the settings' limit
125
+ * applies.
126
+ */
127
+ readyTimeoutMs?: number;
106
128
  /**
107
129
  * Decides whether to capture the same page again. It's called with the snapshot as soon as it's captured and what
108
130
  * the snapshot comes with is read, with the page left as it is. Each attempt that captured a snapshot calls it once,
@@ -145,6 +167,13 @@ export interface RemoteContentBox {
145
167
  */
146
168
  height: number;
147
169
  }
170
+ /**
171
+ * Where the readyTimeout that ran out was set: `config` for the config's `readyTimeout`, `story` for the story's own,
172
+ * from its `parameters.visualCheck`.
173
+ *
174
+ * @public
175
+ */
176
+ export type ReadyTimeoutSetIn = 'config' | 'story';
148
177
  /**
149
178
  * Why a story can't be captured, as a code a report can group by.
150
179
  *
@@ -161,6 +190,8 @@ export interface RemoteContentBox {
161
190
  * - `too-tall`: the capture, or a grid on the story's page, is over 32,767 device pixels on a side.
162
191
  * - `element-missing`: the story's `element` selector matched nothing, or an element whose box is of zero size.
163
192
  * - `grid-too-wide`: a grid on the story's page is wider than the viewport.
193
+ * - `overflows`: the story's capture would cut content its page shows: wider than the viewport for the full page,
194
+ * spilling past the `element` box, or the element past the page's top or left edge.
164
195
  * - `browser-exited`: the browser exited while the story was in flight. The run's browser gives it; a capture session
165
196
  * rejects with a `BrowserExitedError` instead.
166
197
  * - `changed-after-capture`: the story's page, captured again a second after its first capture on one load, had
@@ -170,22 +201,23 @@ export interface RemoteContentBox {
170
201
  *
171
202
  * @public
172
203
  */
173
- export type BrokenReason = 'load-failed' | 'error' | 'play-threw' | 'timeout' | 'fonts-not-loaded' | 'wait-threw' | 'navigated-away' | 'crashed' | 'too-tall' | 'element-missing' | 'grid-too-wide' | 'browser-exited' | 'changed-after-capture' | 'unstable';
204
+ export type BrokenReason = 'load-failed' | 'error' | 'play-threw' | 'timeout' | 'fonts-not-loaded' | 'wait-threw' | 'navigated-away' | 'crashed' | 'too-tall' | 'element-missing' | 'grid-too-wide' | 'overflows' | 'browser-exited' | 'changed-after-capture' | 'unstable';
174
205
  /**
175
206
  * A story that can't be captured: why, and a one-line message for people saying so. A capture session gives one for a
176
207
  * story it can't capture, and the run gives one for a story in flight when its browser exits and for each story of a
177
208
  * stories file that didn't load. `update` gives one for a story that doesn't render the same way twice. Some reasons
178
209
  * keep details besides: the stories file's load error or the time it had, `play`'s stack, the readyTimeout that ran
179
- * out, the font faces still loading, where a story that navigated away went, the size of a capture too tall to take,
180
- * and the width of a grid wider than the viewport.
210
+ * out and where it was set, the font faces still loading, where a story that navigated away went, the size of a
211
+ * capture too tall to take, the width of a grid wider than the viewport, and how far content the capture would cut
212
+ * reaches past each side. A broken story whose page couldn't load some of Storybook's own files keeps those too.
181
213
  *
182
214
  * @public
183
215
  */
184
- export type BrokenStory = {
216
+ export type BrokenStory = ({
185
217
  /**
186
218
  * Why the story can't be captured.
187
219
  */
188
- reason: Exclude<BrokenReason, 'load-failed' | 'play-threw' | 'timeout' | 'fonts-not-loaded' | 'navigated-away' | 'too-tall' | 'grid-too-wide'>;
220
+ reason: Exclude<BrokenReason, 'load-failed' | 'play-threw' | 'timeout' | 'fonts-not-loaded' | 'navigated-away' | 'too-tall' | 'grid-too-wide' | 'overflows'>;
189
221
  /**
190
222
  * One line for people saying why.
191
223
  */
@@ -219,7 +251,8 @@ export type BrokenStory = {
219
251
  message: string;
220
252
  /**
221
253
  * The error as Storybook described it, such as `Error: boom`, or the unhandled errors, `; ` apart. Empty when it
222
- * described none.
254
+ * described none, unless the story's page had failed loads: then it's the message without their sentence, which
255
+ * the report shows in its place.
223
256
  */
224
257
  errorText: string;
225
258
  /**
@@ -237,9 +270,13 @@ export type BrokenStory = {
237
270
  */
238
271
  message: string;
239
272
  /**
240
- * The config's readyTimeout, in ms, that ran out.
273
+ * The readyTimeout, in ms, that ran out.
241
274
  */
242
275
  readyTimeoutMs: number;
276
+ /**
277
+ * Where the readyTimeout that ran out was set.
278
+ */
279
+ readyTimeoutSetIn: ReadyTimeoutSetIn;
243
280
  } | {
244
281
  /**
245
282
  * Why the story can't be captured: a font face was still loading when readyTimeout ran out.
@@ -255,9 +292,13 @@ export type BrokenStory = {
255
292
  */
256
293
  faces: string[];
257
294
  /**
258
- * The config's readyTimeout, in ms, that ran out.
295
+ * The readyTimeout, in ms, that ran out.
259
296
  */
260
297
  readyTimeoutMs: number;
298
+ /**
299
+ * Where the readyTimeout that ran out was set.
300
+ */
301
+ readyTimeoutSetIn: ReadyTimeoutSetIn;
261
302
  } | {
262
303
  /**
263
304
  * Why the story can't be captured: its page went to another document.
@@ -316,6 +357,52 @@ export type BrokenStory = {
316
357
  */
317
358
  viewportWidth: number;
318
359
  };
360
+ } | {
361
+ /**
362
+ * Why the story can't be captured: its capture would cut content its page shows.
363
+ */
364
+ reason: 'overflows';
365
+ /**
366
+ * One line for people saying why, with how far the content reaches past each side that counts.
367
+ */
368
+ message: string;
369
+ /**
370
+ * What the capture would cut: its area, how far content reaches past each side, and the viewport's width, in CSS
371
+ * pixels.
372
+ */
373
+ overflow: {
374
+ /**
375
+ * What the capture takes: the full page, or the `element` box.
376
+ */
377
+ area: 'full-page' | 'element';
378
+ /**
379
+ * How far the element reaches past the page's top edge, in CSS pixels, rounded up. 0 for the full page.
380
+ */
381
+ top: number;
382
+ /**
383
+ * How far content reaches past the capture's right edge, in CSS pixels, rounded up: the full page's past the
384
+ * viewport's right edge, or the element's past its border box's.
385
+ */
386
+ right: number;
387
+ /**
388
+ * How far the element's content reaches past its border box's bottom edge, in CSS pixels, rounded up. 0 for
389
+ * the full page.
390
+ */
391
+ bottom: number;
392
+ /**
393
+ * How far the element reaches past the page's left edge, in CSS pixels, rounded up. 0 for the full page.
394
+ */
395
+ left: number;
396
+ /**
397
+ * The snapshot's viewport width, in CSS pixels: its mode's when it has one.
398
+ */
399
+ viewportWidth: number;
400
+ };
401
+ }) & {
402
+ /**
403
+ * The loads of Storybook's own files that failed at the network level on the story's page, when any did.
404
+ */
405
+ failedLoads?: FailedLoad[];
319
406
  };
320
407
  /**
321
408
  * The hosts a story reaches, as a capture lists them.
@@ -337,7 +424,8 @@ export interface StoryHosts {
337
424
  * What capturing a story gave: its snapshot, with how long Storybook's `completing` render step took, the console
338
425
  * messages and errors its page sent, the remote content it shows when the story asked for it, the hosts it reaches
339
426
  * when the session lists them and the same page captured again when the story's `captureAgainIf` asked for it, or, for
340
- * a broken story, why it can't be captured and, when it had a page, what its page sent.
427
+ * a broken story, why it can't be captured and, when it had a page, what its page sent. Either way it comes with the
428
+ * page errors of every attempt.
341
429
  *
342
430
  * @public
343
431
  */
@@ -357,6 +445,18 @@ export type StoryCapture = {
357
445
  * called.
358
446
  */
359
447
  console: ConsoleMessage[];
448
+ /**
449
+ * The page errors the story's pages raised in every attempt of the capture, the hidden ones on fresh pages of a
450
+ * story that navigated away included, each once, in the order first seen: read once each attempt is done, after
451
+ * the story's `captureAgainIf` too.
452
+ */
453
+ pageErrors: PageError[];
454
+ /**
455
+ * The hosts of the real network requests the story's pages made in every attempt of the capture, each once, in
456
+ * the order first seen: read once each attempt is done, after the story's `captureAgainIf` too. Present exactly
457
+ * when the story asked for them with `watchRequests`.
458
+ */
459
+ requestHosts?: string[];
360
460
  /**
361
461
  * The remote content the snapshot shows, when the story asked for it with `findRemoteContent` and the search
362
462
  * answered in time. Without it, the remote content is unknown.
@@ -383,6 +483,18 @@ export type StoryCapture = {
383
483
  * story had no page: a page that couldn't be opened, or a browser that exited.
384
484
  */
385
485
  console?: ConsoleMessage[];
486
+ /**
487
+ * The page errors the story's pages raised in every attempt of the capture, the hidden ones on fresh pages of a
488
+ * story that navigated away included, each once, in the order first seen: read before each page is closed. None
489
+ * from an attempt that had no page: a page that couldn't be opened, or a browser that exited.
490
+ */
491
+ pageErrors: PageError[];
492
+ /**
493
+ * The hosts of the real network requests the story's pages made in every attempt of the capture, each once, in
494
+ * the order first seen: read before each page is closed. None from an attempt that had no page. Present exactly
495
+ * when the story asked for them with `watchRequests`.
496
+ */
497
+ requestHosts?: string[];
386
498
  /**
387
499
  * The full page as it was when the story broke, as PNG bytes exactly as the browser made them. Present only when
388
500
  * the story asked for it with `imageWhenBroken`, broke for a reason whose page still shows something, and the
@@ -401,9 +513,10 @@ export interface CaptureSession {
401
513
  * first clears the cookies and storage that story left, and when that fails, it captures on a fresh page instead. A
402
514
  * story that navigates away is captured again at once, up to 2 more times, each on a fresh page in a fresh browser
403
515
  * context; when it navigates away a third time, it's a broken story. Any other story that can't be captured comes
404
- * back as a broken story straight away, and the page is replaced by a fresh one for the next. When the story's
405
- * `captureAgainIf` resolves true for the snapshot, the same page is captured again at once. Rejects with a
406
- * `BrowserExitedError` when the browser exits, and, after closing the page, with whatever the story's
516
+ * back as a broken story straight away, and the page is replaced by a fresh one for the next. A broken story whose
517
+ * page couldn't load some of Storybook's own files at the network level keeps them, and its message names the first.
518
+ * When the story's `captureAgainIf` resolves true for the snapshot, the same page is captured again at once. Rejects
519
+ * with a `BrowserExitedError` when the browser exits, and, after closing the page, with whatever the story's
407
520
  * `captureAgainIf` rejects with. Call it once the previous capture has settled.
408
521
  */
409
522
  capture: (story: StoryToCapture) => Promise<StoryCapture>;
@@ -438,6 +551,13 @@ export declare function remoteHostsOf(remote: readonly PageRemoteContent[] | und
438
551
  * wide wins over too tall. `viewport` is the snapshot's: its mode's when it has one.
439
552
  */
440
553
  export declare function gridProblemOf(grid: PageGrid | undefined, viewport: PageViewport): BrokenStory | undefined;
554
+ /**
555
+ * Says why a story whose capture would cut content its page shows can't be captured, or gives nothing when it would cut
556
+ * nothing or the story sets `allowOverflow: true`. For the full page, it names how far content reaches past the
557
+ * viewport's right edge; for an element's box, each side that counts. `area` is what the capture takes, and the
558
+ * story's viewport is the snapshot's: its mode's when it has one.
559
+ */
560
+ export declare function overflowProblemOf(overflow: PageOverflow | undefined, area: CaptureArea, story: StoryToCapture): BrokenStory | undefined;
441
561
  /**
442
562
  * Gives how a page is set up for the settings: a user agent ending in `StorybookTestRunner`, the settings' time zone,
443
563
  * locale and colour scheme, the page script, and the watching of its real network requests when the settings list
@@ -449,6 +569,11 @@ export declare function pageSetupOf(settings: CaptureSettings): PageSetup;
449
569
  * capture, set up with the settings, a user agent ending in `StorybookTestRunner` and the page script. After a broken
450
570
  * story, it closes the page and opens a fresh one, in a fresh browser context, for the next story.
451
571
  *
572
+ * A page watches its real network requests when the settings list hosts, or when the story it opens for asks with
573
+ * `watchRequests`. A story that asks, on a page that doesn't watch, gets a fresh page that does, the old one closed
574
+ * first. A page that watches is kept for the stories after it, since watching costs less than a fresh page, but only
575
+ * a story that asks gets the hosts of its real network requests, from every attempt, each once.
576
+ *
452
577
  * Before each later capture on that page, it clears the cookies, `localStorage`, `sessionStorage` and IndexedDB the
453
578
  * previous story left, keeping Cache Storage and service workers. The previous story's document stays loaded until the
454
579
  * next story's commits, so a timer or handler of it can still write storage after the clearing. When the clearing
@@ -458,15 +583,21 @@ export declare function pageSetupOf(settings: CaptureSettings): PageSetup;
458
583
  * A story that navigates away is captured again at once, up to 2 more times, each on a fresh page in a fresh browser
459
584
  * context. When the third attempt navigates away too, the story is broken, with that attempt's message and URL. Any
460
585
  * other outcome of a retry, a snapshot or another broken reason, is the story's outcome, and no other reason is
461
- * retried.
586
+ * retried. The capture keeps the page errors of every attempt, each once, in the order first seen, though only the
587
+ * last attempt's outcome counts.
462
588
  *
463
589
  * A story whose page shows a grid wider than the viewport, or too tall to capture, is broken with `grid-too-wide` or
464
- * `too-tall` before anything is captured.
590
+ * `too-tall` before anything is captured. Then a story whose capture would cut content its page shows is broken with
591
+ * `overflows`, unless it sets `allowOverflow: true`.
592
+ *
593
+ * A broken story whose page couldn't load some of Storybook's own files at the network level, such as a connection the
594
+ * server dropped, keeps them as `failedLoads`, and its message gains a sentence naming the first and the browser's
595
+ * error, with how many there were when more than one. Its reason stays as it was, and nothing more is retried.
465
596
  *
466
597
  * A story that asks for it with `imageWhenBroken` and breaks while its page still shows something, for the reasons
467
- * `error`, `play-threw`, `timeout`, `fonts-not-loaded`, `wait-threw`, `element-missing` and `grid-too-wide`, comes
468
- * with an image of the full page, captured before the page is closed, unless that capture fails or takes longer than
469
- * the settings' `brokenImageTimeLimitMs`. A browser exit during it rejects the capture with a `BrowserExitedError`.
598
+ * `error`, `play-threw`, `timeout`, `fonts-not-loaded`, `wait-threw`, `element-missing`, `grid-too-wide` and
599
+ * `overflows`, comes with an image of the full page, captured before the page is closed, unless that capture fails or
600
+ * takes longer than the settings' `brokenImageTimeLimitMs`. A browser exit during it rejects the capture with a `BrowserExitedError`.
470
601
  *
471
602
  * When a story has `captureAgainIf`, each attempt that captured a snapshot calls it with the snapshot, the page left as
472
603
  * it is, and captures the same area again at once when it resolves true. A second capture that fails makes the story
@@ -1 +1 @@
1
- {"version":3,"file":"capture-session.d.ts","sourceRoot":"","sources":["../../src/capture/capture-session.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,WAAW,EAEhB,KAAK,cAAc,EACnB,KAAK,MAAM,EAKX,KAAK,SAAS,EAEd,KAAK,YAAY,EAClB,MAAM,oBAAoB,CAAA;AAa3B,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,iBAAiB,EAEtB,KAAK,SAAS,EACf,MAAM,sBAAsB,CAAA;AAE7B;;;GAGG;AACH,eAAO,MAAM,YAAY,OAAQ,CAAA;AAEjC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;OASG;IACH,cAAc,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,WAAW,EAAE,SAAS,CAAC,aAAa,CAAC,CAAA;IACrC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,sBAAsB,EAAE,MAAM,CAAA;CAC/B;AAED;;;;GAIG;AACH,eAAO,MAAM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