@alwaysmeticulous/api 2.293.0 → 2.295.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.
@@ -38,14 +38,16 @@ export interface CustomCheckInput {
38
38
  /**
39
39
  * The outcome of comparing the base and head snapshots:
40
40
  * - `pass`: no regression; the check is green and no report is surfaced.
41
- * - `warn`: the check is green but its report is shown to the user.
42
- * - `fail`: the check is red.
41
+ * - `warn-without-requiring-user-ack`: the check surfaces a report to the user,
42
+ * but does not require them to acknowledge (review) it.
43
+ * - `warn-and-require-user-ack`: the check surfaces a report that the user is
44
+ * asked to acknowledge (review) before the run is considered actioned.
43
45
  *
44
46
  * A check failing to *run* is not a verdict: an execution error applies to the
45
47
  * custom check results as a whole (every check), not to an individual check, so
46
48
  * it is reported at that level rather than as a per-check verdict.
47
49
  */
48
- export type CustomCheckVerdict = "pass" | "warn" | "fail";
50
+ export type CustomCheckVerdict = "pass" | "warn-without-requiring-user-ack" | "warn-and-require-user-ack";
49
51
  /**
50
52
  * Maximum length of a custom check `summary`. The summary is rendered inline in
51
53
  * the UI, so it is truncated to this many characters when displayed rather than
@@ -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]="8ef65cd4-8945-57ad-89ea-063f84e905ee")}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]="7935af01-8528-55fe-888c-aff9ac4f33b7")}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=8ef65cd4-8945-57ad-89ea-063f84e905ee
30
+ //# debugId=7935af01-8528-55fe-888c-aff9ac4f33b7
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"custom-checks.types.js","sources":["../src/custom-checks.types.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAiEA;;;;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":"7935af01-8528-55fe-888c-aff9ac4f33b7"}
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, ElementRedactionMode, } from "./sdk-bundle-api/sdk-to-bundle/screenshotting-options";
15
+ export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, ScreenshottingEnabledOptions, AuxiliaryViewportScreenshotRange, 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]="6a3818e5-6f74-5ea1-a8aa-358d088295ca")}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]="a59b8181-26f4-539c-8537-22391b00501e")}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=6a3818e5-6f74-5ea1-a8aa-358d088295ca
32
+ //# debugId=a59b8181-26f4-539c-8537-22391b00501e
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourceRoot":"","names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAuBA,0DAciC;AAb/B,kHAAA,gBAAgB,OAAA;AAChB,qHAAA,mBAAmB,OAAA;AAuBrB,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":"6a3818e5-6f74-5ea1-a8aa-358d088295ca"}
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourceRoot":"","names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAuBA,0DAciC;AAb/B,kHAAA,gBAAgB,OAAA;AAChB,qHAAA,mBAAmB,OAAA;AAuBrB,sFAAoE;AAQpE,4EAsBqD;AATnD,8HAAA,8BAA8B,OAAA;AAsBhC,mFAAiE;AA6DjE,6DAiB+B;AAN7B,qIAAA,8BAA8B,OAAA;AAC9B,sIAAA,+BAA+B,OAAA;AAC/B,oIAAA,6BAA6B,OAAA","debugId":"a59b8181-26f4-539c-8537-22391b00501e"}
@@ -32,8 +32,17 @@ export interface ScreenshotAfterEvent extends LogicVersioned {
32
32
  }
33
33
  export interface ScreenshotAuxiliary extends LogicVersioned {
34
34
  type: "auxiliary";
35
- /** 0 indexed */
35
+ /**
36
+ * 0 indexed. For auxiliaries anchored to the end-state (i.e. {@link endState}
37
+ * is `true`), this is the final event index and is used only for ordering.
38
+ */
36
39
  eventNumber: number;
40
+ /**
41
+ * When `true`, this auxiliary was captured at the end-state of the replay
42
+ * rather than before a specific event. {@link eventNumber} is then only used
43
+ * for ordering relative to other screenshots.
44
+ */
45
+ endState?: true;
37
46
  /** 0-indexed position among auxiliaries sharing the same `eventNumber`. */
38
47
  sequenceNumber: number;
39
48
  /** Why we took the screenshot, e.g. "exit_animation". Matches /^[a-z_]{1,16}$/. */
@@ -15,6 +15,27 @@ export interface ScreenshottingEnabledOptions {
15
15
  elementsToIgnore?: ElementToIgnore[];
16
16
  waitBeforeScreenshotsMs?: number;
17
17
  captureFullPage?: boolean;
18
+ /**
19
+ * Configuration for capturing additional ("auxiliary") screenshots at
20
+ * different viewport sizes during replay. For each configured range, an
21
+ * auxiliary screenshot is captured at its representative viewport whenever
22
+ * the current viewport width does not already fall into that range.
23
+ */
24
+ auxiliaryViewportScreenshots?: AuxiliaryViewportScreenshotRange[];
25
+ }
26
+ /**
27
+ * A range of screen widths together with the representative viewport size at
28
+ * which an auxiliary screenshot should be captured for that range.
29
+ */
30
+ export interface AuxiliaryViewportScreenshotRange {
31
+ /** Inclusive lower bound of the screen-width range this entry represents. */
32
+ minWidth: number;
33
+ /** Inclusive upper bound of the screen-width range this entry represents. */
34
+ maxWidth: number;
35
+ /** Width of the representative viewport to screenshot at for this range. */
36
+ viewportWidth: number;
37
+ /** Height of the representative viewport to screenshot at for this range. */
38
+ viewportHeight: number;
18
39
  }
19
40
  export declare type StoryboardOptions = {
20
41
  enabled: false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.293.0",
3
+ "version": "2.295.0",
4
4
  "description": "Meticulous API types",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",