@alwaysmeticulous/api 2.291.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/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]="9bf7f317-42bb-584e-a02f-e30f0faf5333")}catch(e){}}();
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=9bf7f317-42bb-584e-a02f-e30f0faf5333
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;AA2DjE,6DAiB+B;AAN7B,qIAAA,8BAA8B,OAAA;AAC9B,sIAAA,+BAA+B,OAAA;AAC/B,oIAAA,6BAA6B,OAAA","debugId":"9bf7f317-42bb-584e-a02f-e30f0faf5333"}
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.291.2",
3
+ "version": "2.292.0",
4
4
  "description": "Meticulous API types",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",