@rive-app/canvas-advanced-single 2.37.6 → 2.37.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/canvas-advanced-single",
3
- "version": "2.37.6",
3
+ "version": "2.37.8",
4
4
  "description": "Rive's lightweight low-level canvas based web api all in one js file.",
5
5
  "main": "canvas_advanced_single.mjs",
6
6
  "homepage": "https://rive.app",
@@ -877,6 +877,23 @@ export declare class StateMachineInstance {
877
877
  */
878
878
  pointerExit(x: number, y: number, id: number): void;
879
879
 
880
+ /**
881
+ * Returns true if this state machine has any focus nodes registered in its focus tree.
882
+ * Since the focus tree is unified across nested artboards, this covers the full scene.
883
+ * Use this to gate whether tab/focus traversal DOM listeners should be attached.
884
+ */
885
+ hasFocusNodes(): boolean;
886
+
887
+ /**
888
+ * Move focus to the next focusable node in the focus tree via the state machine's focus manager.
889
+ */
890
+ focusNext(): boolean;
891
+
892
+ /**
893
+ * Move focus to the previous focusable node in the focus tree via the state machine's focus manager.
894
+ */
895
+ focusPrevious(): boolean;
896
+
880
897
  /**
881
898
  * Deletes the underlying instance created via the WASM. It's important to clean up this instance
882
899
  * when no longer in use