@whenessel/seql-js 1.0.1 → 1.1.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/README.md CHANGED
@@ -8,7 +8,8 @@ Semantic Element Query Language (SEQL) - Stable DOM element identification for w
8
8
 
9
9
  - **Semantic-first**: Uses ARIA roles, labels, semantic HTML tags, and stable attributes.
10
10
  - **Resilient**: Designed to be stable across UI updates and DOM changes.
11
- - **Dual Format**:
11
+ - **State-independent** (v1.0.3): Filters out state attributes (`aria-selected`, `data-state`, `disabled`) to ensure elements are found regardless of their current state.
12
+ - **Dual Format**:
12
13
  - **EID** (JSON): Structured descriptor for internal operations and high precision.
13
14
  - **SEQL Selector** (String): Canonical string format for easy transport (analytics) and storage.
14
15
  - **Deterministic**: Guaranteed same output for the same DOM state.
package/dist/seql-js.d.ts CHANGED
@@ -43,6 +43,8 @@ export declare interface AnchorNode {
43
43
  score: number;
44
44
  /** Whether this is a degraded/fallback anchor */
45
45
  degraded: boolean;
46
+ /** Position among siblings (1-based, for nth-child CSS selector) */
47
+ nthChild?: number;
46
48
  }
47
49
 
48
50
  /**
@@ -320,10 +322,6 @@ export declare class CssGenerator {
320
322
  * @returns A minimal CSS selector for the element
321
323
  */
322
324
  private buildElementSelector;
323
- /**
324
- * Checks if ID is dynamic (generated)
325
- */
326
- private isDynamicId;
327
325
  /**
328
326
  * Safe querySelectorAll that doesn't throw
329
327
  */