@alwaysmeticulous/api 2.294.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.
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.294.0",
3
+ "version": "2.295.0",
4
4
  "description": "Meticulous API types",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",