@reticlehq/core 3.10.3 → 3.10.4

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.
@@ -3,5 +3,5 @@
3
3
  * `scripts/set-version.mjs` writes the version on each release, and `version-lockstep.test.ts`
4
4
  * fails when a doc pins another tag.
5
5
  */
6
- export declare const RETICLE_ACTION_VERSION = "3.10.3";
7
- export declare const RETICLE_ACTION_USES = "reticlehq/reticle/action@v3.10.3";
6
+ export declare const RETICLE_ACTION_VERSION = "3.10.4";
7
+ export declare const RETICLE_ACTION_USES = "reticlehq/reticle/action@v3.10.4";
@@ -3,5 +3,5 @@
3
3
  * `scripts/set-version.mjs` writes the version on each release, and `version-lockstep.test.ts`
4
4
  * fails when a doc pins another tag.
5
5
  */
6
- export const RETICLE_ACTION_VERSION = '3.10.3';
6
+ export const RETICLE_ACTION_VERSION = '3.10.4';
7
7
  export const RETICLE_ACTION_USES = `reticlehq/reticle/action@v${RETICLE_ACTION_VERSION}`;
@@ -712,6 +712,8 @@ export interface ComponentStateResult {
712
712
  /** Element states the assertion engine can check. */
713
713
  export declare const ElementState: {
714
714
  readonly VISIBLE: "visible";
715
+ /** Rendered on screen (not CSS-hidden), regardless of aria-hidden (#1648). */
716
+ readonly PAINTED: "painted";
715
717
  readonly HIDDEN: "hidden";
716
718
  readonly ENABLED: "enabled";
717
719
  readonly DISABLED: "disabled";
@@ -826,20 +828,18 @@ export declare const MessageKind: {
826
828
  };
827
829
  export type MessageKind = (typeof MessageKind)[keyof typeof MessageKind];
828
830
  /**
829
- * WHY a lease came back `ready: false`. Each reason wants a different next action — check the
830
- * install, recover a wedged tab, or bring a hidden one to the front — so they get names rather
831
- * than sharing a bare `false`.
831
+ * Why a lease returned `ready: false`. Names each distinct recovery action rather than a bare false.
832
832
  */
833
833
  export declare const LeaseNotReadyReason: {
834
- /** No SDK dialled in within the wait. The install is the thing to look at. */
834
+ /** No SDK dialled in within the wait. */
835
835
  readonly SDK_NEVER_DIALLED: "sdk_never_dialled";
836
- /** One dialled in and stopped answering: the tab is attached but wedged. */
836
+ /** SDK dialled in and stopped answering; tab is wedged. */
837
837
  readonly SDK_STOPPED_ANSWERING: "sdk_stopped_answering";
838
- /** The SDK answers, but its tab is hidden: timers and rAF are throttled, so nothing on it verifies. */
838
+ /** SDK answers but tab is hidden; timers and rAF are throttled. */
839
839
  readonly TAB_HIDDEN: "tab_hidden";
840
- /** The page is not an HTML document (an `.svg`, for example), so the zero-install reader did not run. */
840
+ /** Non-HTML document; zero-install reader did not run. */
841
841
  readonly NOT_HTML_DOCUMENT: "not_html_document";
842
- /** The zero-install reader failed, for example because the tab closed during setup. */
842
+ /** Zero-install reader failed. */
843
843
  readonly READER_FAILED: "reader_failed";
844
844
  };
845
845
  export type LeaseNotReadyReason = (typeof LeaseNotReadyReason)[keyof typeof LeaseNotReadyReason];
@@ -734,6 +734,8 @@ export const ComponentStateReason = {
734
734
  /** Element states the assertion engine can check. */
735
735
  export const ElementState = {
736
736
  VISIBLE: 'visible',
737
+ /** Rendered on screen (not CSS-hidden), regardless of aria-hidden (#1648). */
738
+ PAINTED: 'painted',
737
739
  HIDDEN: 'hidden',
738
740
  ENABLED: 'enabled',
739
741
  DISABLED: 'disabled',
@@ -842,19 +844,17 @@ export const MessageKind = {
842
844
  EVENT: 'event',
843
845
  };
844
846
  /**
845
- * WHY a lease came back `ready: false`. Each reason wants a different next action — check the
846
- * install, recover a wedged tab, or bring a hidden one to the front — so they get names rather
847
- * than sharing a bare `false`.
847
+ * Why a lease returned `ready: false`. Names each distinct recovery action rather than a bare false.
848
848
  */
849
849
  export const LeaseNotReadyReason = {
850
- /** No SDK dialled in within the wait. The install is the thing to look at. */
850
+ /** No SDK dialled in within the wait. */
851
851
  SDK_NEVER_DIALLED: 'sdk_never_dialled',
852
- /** One dialled in and stopped answering: the tab is attached but wedged. */
852
+ /** SDK dialled in and stopped answering; tab is wedged. */
853
853
  SDK_STOPPED_ANSWERING: 'sdk_stopped_answering',
854
- /** The SDK answers, but its tab is hidden: timers and rAF are throttled, so nothing on it verifies. */
854
+ /** SDK answers but tab is hidden; timers and rAF are throttled. */
855
855
  TAB_HIDDEN: 'tab_hidden',
856
- /** The page is not an HTML document (an `.svg`, for example), so the zero-install reader did not run. */
856
+ /** Non-HTML document; zero-install reader did not run. */
857
857
  NOT_HTML_DOCUMENT: 'not_html_document',
858
- /** The zero-install reader failed, for example because the tab closed during setup. */
858
+ /** Zero-install reader failed. */
859
859
  READER_FAILED: 'reader_failed',
860
860
  };
@@ -228,6 +228,11 @@ export interface QueryEmptyHint {
228
228
  * to three, ranked by role and then by name similarity. Advice for one retry, never a match.
229
229
  */
230
230
  nearest?: NearestTarget[];
231
+ /**
232
+ * Present only when an element search in state 'visible' or 'inViewport' missed, but a matching
233
+ * element IS painted on screen and excluded from the accessible tree by aria-hidden="true" (#1648).
234
+ */
235
+ ariaHiddenState?: boolean;
231
236
  }
232
237
  /**
233
238
  * One target near a query that matched nothing. `name` is cut at 60 characters, and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reticlehq/core",
3
- "version": "3.10.3",
3
+ "version": "3.10.4",
4
4
  "description": "The Reticle foundation: the shared wire contract — types, zod schemas, constants, messages, and the isomorphic kernel that every Reticle package (browser SDK, server, kits, test harness) imports. Depends only on zod and open-verification.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "zod": "^4.6.6",
54
- "open-verification": "1.1.0"
54
+ "open-verification": "1.2.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "fast-check": "^4.10.2"