saltfish 0.3.59 → 0.3.60

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.
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Element Error Reporter
3
+ *
4
+ * Reports element finding failures to the backend API for tracking.
5
+ * Used when cursor/transition element finding fails after all retries.
6
+ */
7
+ import type { ExpectedElement, ExpectedSize } from './elementSizeValidator';
8
+ export type ElementErrorReason = 'no_elements' | 'tag_mismatch' | 'text_mismatch' | 'size_mismatch';
9
+ export interface ElementErrorPayload {
10
+ playlistId: string;
11
+ stepId: string;
12
+ failureReason: ElementErrorReason;
13
+ selector: string;
14
+ }
15
+ /**
16
+ * Reports an element finding error to the backend.
17
+ * Fire-and-forget - does not block or throw.
18
+ */
19
+ export declare function reportElementError(playlistId: string, stepId: string, selector: string, expectedElement?: ExpectedElement, expectedSize?: ExpectedSize): void;
20
+ //# sourceMappingURL=elementErrorReporter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elementErrorReporter.d.ts","sourceRoot":"","sources":["../../src/utils/elementErrorReporter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAI5E,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,cAAc,GAAG,eAAe,GAAG,eAAe,CAAC;AAEpG,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,kBAAkB,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAyCD;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,eAAe,CAAC,EAAE,eAAe,EACjC,YAAY,CAAC,EAAE,YAAY,GAC1B,IAAI,CAqBN"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saltfish",
3
- "version": "0.3.59",
3
+ "version": "0.3.60",
4
4
  "description": "An interactive video-guided tour system for web applications",
5
5
  "main": "dist/saltfish-playlist-player.umd.js",
6
6
  "types": "dist/index.d.ts",