@alwaysmeticulous/api 2.181.0 → 2.184.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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { Organization } from "./organization.types";
2
2
  export { Project, ProjectSettingsScreenshottingOptions } from "./project.types";
3
- export { EndStateScreenshot, ScreenshotAfterEvent, ScreenshotDiffResult, ScreenshotDiffResultCompared, ScreenshotDiffResultDifferentSize, ScreenshotDiffResultMissingBase, ScreenshotDiffResultMissingBaseAndHead, ScreenshotDiffResultMissingHead, ScreenshotDiffResultDifference, ScreenshotDiffResultNoDifference, ScreenshotIdentifier, ScreenshotVariant, SingleTryScreenshotDiffResult, ScreenshotDiffRetryResult, SingleTryScreenshotDiffRetryResult, RedactedScreenshotIncompatible, RedactedScreenshotsCompared, } from "./sdk-bundle-api/bundle-to-sdk/screenshot-diff-result";
3
+ export { EndStateScreenshot, ScreenshotAfterEvent, ScreenshotDiffResult, ScreenshotDiffResultCompared, ScreenshotDiffResultDifferentSize, ScreenshotDiffResultMissingBase, ScreenshotDiffResultMissingBaseAndHead, ScreenshotDiffResultMissingHead, ScreenshotDiffResultDifference, ScreenshotDiffResultNoDifference, ScreenshotIdentifier, ScreenshotVariant, SingleTryScreenshotDiffResult, ScreenshotDiffRetryResult, SingleTryScreenshotDiffRetryResult, RedactedScreenshotIncompatible, RedactedScreenshotsCompared, RedactedScreenshotsComparison, } from "./sdk-bundle-api/bundle-to-sdk/screenshot-diff-result";
4
4
  export { TestCase, TestCaseReplayOptions, TestRunStatus, TestCaseResult, TestCaseResultStatus, } from "./replay/test-run.types";
5
5
  export { TestRunChunkStatus } from "./replay/test-run-chunk.types";
6
6
  export * from "./sdk-bundle-api/sdk-to-bundle/test-run-environment";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA6BA,sFAAoE"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA8BA,sFAAoE"}
@@ -85,8 +85,22 @@ export interface ScreenshotDiffResultCompared {
85
85
  * This field will only be true if we are in situation 2 above and the original comparison was a no diff.
86
86
  */
87
87
  wasOriginalComparisonNoDiff?: boolean;
88
+ /**
89
+ * Undefined for old screenshots, from before Dec 2024.
90
+ */
91
+ comparison?: RedactedScreenshotsComparison;
88
92
  } & (RedactedScreenshotsCompared | RedactedScreenshotIncompatible);
89
93
  }
94
+ /**
95
+ * If the redacted screenshots were present for both head and base then we compare these; but if a
96
+ * redacted screenshot was only present for one of head or base then we compare the redacted screenshot
97
+ * to the unredacted screenshot. This field indicates which comparison was made.
98
+ *
99
+ * The left hand side is the base screenshot, and the right hand side is the head screenshot. For example,
100
+ * `redacted-vs-unredacted` means it compared the redacted base screenshot to the unredacted head screenshot
101
+ * (i.e. there was no redacted head screenshot to compare to).
102
+ */
103
+ export type RedactedScreenshotsComparison = "redacted-vs-redacted" | "redacted-vs-unredacted" | "unredacted-vs-redacted";
90
104
  export interface ScreenshotDiffResultNoDifference extends ScreenshotDiffResultCompared {
91
105
  outcome: "no-diff";
92
106
  }
@@ -116,6 +130,17 @@ export interface ScreenshotDiffResultDifference extends ScreenshotDiffResultComp
116
130
  * This can be useful for grouping together diffs that are caused by the same change.
117
131
  */
118
132
  hashOfChangedSectionsClassNames?: string;
133
+ /**
134
+ * The set of the first N class names within the DOM sections that have differences.
135
+ *
136
+ * Only present on recent replays since Dec 2024.
137
+ */
138
+ changedSectionsClassNames?: string[];
139
+ /**
140
+ * If there are too many class names we truncate the {@link changedSectionsClassNames} list,
141
+ * and this field will be true, otherwise this field will not be present.
142
+ */
143
+ isChangedSectionsClassNamesListTruncated?: true;
119
144
  }
120
145
  /**
121
146
  * The base screenshot differed from the head screenshot, but when the head
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.181.0",
3
+ "version": "2.184.0",
4
4
  "description": "Meticulous API types",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -35,5 +35,5 @@
35
35
  "bugs": {
36
36
  "url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
37
37
  },
38
- "gitHead": "545087fa8443d0eb23356c7c716076ebbf498736"
38
+ "gitHead": "bd151de38526521436e599a40f474b2f0beba59e"
39
39
  }