@alwaysmeticulous/api 2.290.2 → 2.292.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/custom-checks.types.d.ts +7 -0
- package/dist/custom-checks.types.js +2 -2
- package/dist/custom-checks.types.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/sdk-bundle-api/sdk-to-bundle/screenshotting-options.d.ts +24 -0
- package/package.json +1 -1
|
@@ -22,6 +22,13 @@ export interface Snapshot<T = unknown> {
|
|
|
22
22
|
*/
|
|
23
23
|
stageDuringSession: string;
|
|
24
24
|
data: T;
|
|
25
|
+
/**
|
|
26
|
+
* Version number the snapshot was recorded with (see
|
|
27
|
+
* `recordCustomSnapshot`). Defaults to 0 for snapshots recorded without one
|
|
28
|
+
* (including all built-in snapshots). When the version differs between the
|
|
29
|
+
* base and head snapshots, a failing check can be caveated in the UI.
|
|
30
|
+
*/
|
|
31
|
+
versionNumber?: number;
|
|
25
32
|
}
|
|
26
33
|
/** The base and head snapshots passed to a custom check. */
|
|
27
34
|
export interface CustomCheckInput {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8ef65cd4-8945-57ad-89ea-063f84e905ee")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.CUSTOM_CHECK_RESULTS_STATUSES = exports.NETWORK_REQUESTS_SNAPSHOT_TYPE = exports.CUSTOM_CHECK_SUMMARY_MAX_LENGTH = void 0;
|
|
@@ -27,4 +27,4 @@ exports.CUSTOM_CHECK_RESULTS_STATUSES = [
|
|
|
27
27
|
"execution-error",
|
|
28
28
|
];
|
|
29
29
|
//# sourceMappingURL=custom-checks.types.js.map
|
|
30
|
-
//# debugId=
|
|
30
|
+
//# debugId=8ef65cd4-8945-57ad-89ea-063f84e905ee
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-checks.types.js","sources":["../src/custom-checks.types.ts"],"sourceRoot":"","names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"custom-checks.types.js","sources":["../src/custom-checks.types.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AA4DA;;;;GAIG;AACU,QAAA,+BAA+B,GAAG,GAAG,CAAC;AA4DnD;;;GAGG;AACU,QAAA,8BAA8B,GAAG,kBAAkB,CAAC;AAyBjE;;;;;;;GAOG;AACU,QAAA,6BAA6B,GAAG;IAC3C,UAAU;IACV,iBAAiB;CACT,CAAC","debugId":"8ef65cd4-8945-57ad-89ea-063f84e905ee"}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { SequenceNumber, WebSocketConnectionData, WebSocketConnectionEvent, WebS
|
|
|
12
12
|
export * from "./sdk-bundle-api/sdk-to-bundle/event-source-data";
|
|
13
13
|
export { StreamingFetchChunk, StreamingFetchResponseData, } from "./sdk-bundle-api/sdk-to-bundle/streaming-fetch-data";
|
|
14
14
|
export { Replay } from "./replay/replay.types";
|
|
15
|
-
export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, ScreenshottingEnabledOptions, StoryboardOptions, ScreenshotDiffOptions, ElementToIgnore, CSSSelectorToIgnore, } from "./sdk-bundle-api/sdk-to-bundle/screenshotting-options";
|
|
15
|
+
export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, ScreenshottingEnabledOptions, StoryboardOptions, ScreenshotDiffOptions, ElementToIgnore, CSSSelectorToIgnore, ElementRedactionMode, } from "./sdk-bundle-api/sdk-to-bundle/screenshotting-options";
|
|
16
16
|
export { NetworkStubbingMode, StubAllRequests, StubNonSSRRequests, PassthroughAppRequests, NoStubbing, CustomStubbing, RequestFilter, CustomTransformation, CustomTransformationWhere, } from "./sdk-bundle-api/sdk-to-bundle/network-stubbing";
|
|
17
17
|
export { ConsoleMessageWithStackTracePointer, VirtualTimeChange, MeticulousConsoleMessage, ApplicationConsoleMessage, ConsoleMessageCoreData, ConsoleMessageType, ConsoleMessageLocation, } from "./sdk-bundle-api/bundle-to-sdk/console-message";
|
|
18
18
|
export { InjectableRequestHeader, StaticHeaderValue, DynamicHeaderValue, AllRequests, AppUrlRequestsOnly, CustomRequests, } from "./sdk-bundle-api/sdk-to-bundle/header-injection";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="69ded7d0-532e-5001-b315-cf4b7eb00034")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
5
|
if (k2 === undefined) k2 = k;
|
|
@@ -29,4 +29,4 @@ Object.defineProperty(exports, "NETWORK_REQUESTS_SNAPSHOT_TYPE", { enumerable: t
|
|
|
29
29
|
Object.defineProperty(exports, "CUSTOM_CHECK_SUMMARY_MAX_LENGTH", { enumerable: true, get: function () { return custom_checks_types_1.CUSTOM_CHECK_SUMMARY_MAX_LENGTH; } });
|
|
30
30
|
Object.defineProperty(exports, "CUSTOM_CHECK_RESULTS_STATUSES", { enumerable: true, get: function () { return custom_checks_types_1.CUSTOM_CHECK_RESULTS_STATUSES; } });
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
|
32
|
-
//# debugId=
|
|
32
|
+
//# debugId=69ded7d0-532e-5001-b315-cf4b7eb00034
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourceRoot":"","names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAuBA,0DAaiC;AAZ/B,kHAAA,gBAAgB,OAAA;AAChB,qHAAA,mBAAmB,OAAA;AAsBrB,sFAAoE;AAQpE,4EAsBqD;AATnD,8HAAA,8BAA8B,OAAA;AAsBhC,mFAAiE;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourceRoot":"","names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAuBA,0DAaiC;AAZ/B,kHAAA,gBAAgB,OAAA;AAChB,qHAAA,mBAAmB,OAAA;AAsBrB,sFAAoE;AAQpE,4EAsBqD;AATnD,8HAAA,8BAA8B,OAAA;AAsBhC,mFAAiE;AA4DjE,6DAiB+B;AAN7B,qIAAA,8BAA8B,OAAA;AAC9B,sIAAA,+BAA+B,OAAA;AAC/B,oIAAA,6BAA6B,OAAA","debugId":"69ded7d0-532e-5001-b315-cf4b7eb00034"}
|
|
@@ -28,6 +28,25 @@ export interface ScreenshotDiffOptions {
|
|
|
28
28
|
shouldUseRedactedScreenshotByScreenshotFilename?: Record<string, boolean>;
|
|
29
29
|
}
|
|
30
30
|
export type ElementToIgnore = CSSSelectorToIgnore;
|
|
31
|
+
/**
|
|
32
|
+
* Controls in which contexts a matched element is hidden. Named for where it is hidden.
|
|
33
|
+
* Defaults to "replay-and-diff".
|
|
34
|
+
*
|
|
35
|
+
* The element is always hidden for the diff screenshot used in comparison — that is what makes
|
|
36
|
+
* it "ignored". The mode controls whether it is *additionally* hidden during the replay itself
|
|
37
|
+
* and in the user-facing screenshot:
|
|
38
|
+
*
|
|
39
|
+
* - "diff-only": hidden only for the diff screenshot. The element stays present and interactive
|
|
40
|
+
* throughout the replay and is visible in the user-facing screenshot. Use for content that is
|
|
41
|
+
* noisy/non-deterministic to diff but whose existence, size and position are stable (so
|
|
42
|
+
* interacting with it and letting it hold layout is safe).
|
|
43
|
+
* - "replay-and-diff": additionally removed throughout the replay, so it can never be interacted
|
|
44
|
+
* with and never affects layout, but is still shown in the user-facing screenshot. This is the
|
|
45
|
+
* default and avoids "shifted diff" flakes from elements that load at inconsistent sizes.
|
|
46
|
+
* - "always": additionally hidden in the user-facing screenshot, so the element is never visible
|
|
47
|
+
* anywhere.
|
|
48
|
+
*/
|
|
49
|
+
export type ElementRedactionMode = "always" | "replay-and-diff" | "diff-only";
|
|
31
50
|
/**
|
|
32
51
|
* Any elements that match this CSS selector will be hidden/removed before taking a screenshot.
|
|
33
52
|
*
|
|
@@ -43,4 +62,9 @@ export interface CSSSelectorToIgnore {
|
|
|
43
62
|
*/
|
|
44
63
|
shadowHostSelector?: string;
|
|
45
64
|
comment?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Controls in which contexts the matched element is hidden. Defaults to "replay-and-diff".
|
|
67
|
+
* See {@link ElementRedactionMode}.
|
|
68
|
+
*/
|
|
69
|
+
redactionMode?: ElementRedactionMode;
|
|
46
70
|
}
|