@rive-app/webgl2-threads 2.49.3 → 2.50.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 ADDED
@@ -0,0 +1,21 @@
1
+ ![npm](https://img.shields.io/npm/v/@rive-app/webgl2-threads)
2
+ # Rive
3
+ High-level Rive API using WebGL2 and the Rive Renderer, with threads on cross-origin isolated pages. Please see https://github.com/rive-app/rive-wasm for a list of all the available web runtimes and their details.
4
+
5
+ [Rive](https://rive.app) is an agent-native 2D and 3D engine for games, apps, and interactive UI. Use it as your whole engine, or add it to the products you already have. Build with your coding agent through the [Rive CLI](https://rive.app/agents), or draw, rig, and animate by hand with the professional design and animation tools in the [Rive Editor](https://rive.app/editor). Both work on the same files. Open-source runtimes, no royalties or runtime fees. Rive files (`.riv`) play natively on web, mobile, desktop, game engines, consoles, smart TVs, and cars.
6
+
7
+ ```
8
+ npm install @rive-app/webgl2-threads
9
+ ```
10
+
11
+ [Getting Started](https://github.com/rive-app/rive-wasm#getting-started)
12
+
13
+ ## Build with your agent
14
+
15
+ Paste this into Claude Code, Codex, Cursor, or any agent that runs commands on your computer:
16
+
17
+ ```text
18
+ Install the Rive CLI from rive.app/cli. Build an interactive hero for my website as a Rive file and add it to the page with the Rive web runtime.
19
+ ```
20
+
21
+ Your agent installs the [Rive CLI](https://rive.app/agents), writes the scene, and opens a preview window that rebuilds every time it saves. Keep giving it notes, or open the same file in the [Rive Editor](https://editor.rive.app/) and shape it by hand. Trying it needs no account. Writing the `.riv` that ships on your site needs a free Rive account. Free exports play a short Rive splash screen; [paid plans](https://rive.app/pricing) export without it. See [Getting started with the Rive CLI](https://rive.app/docs/cli/getting-started).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rive-app/webgl2-threads",
3
- "version": "2.49.3",
4
- "description": "Rive's webgl2 based web api, with threads on cross origin isolated pages.",
3
+ "version": "2.50.0",
4
+ "description": "Rive web runtime with the WebGL2 renderer, using threads on cross-origin isolated pages. Rive is an agent-native 2D and 3D engine for games, apps, and interactive UI.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
7
7
  "repository": {
@@ -10,7 +10,11 @@
10
10
  },
11
11
  "keywords": [
12
12
  "rive",
13
- "animation"
13
+ "animation",
14
+ "interactive",
15
+ "ui",
16
+ "game-engine",
17
+ "graphics"
14
18
  ],
15
19
  "author": "Rive",
16
20
  "contributors": [
package/rive.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as rc from "./rive_advanced.mjs";
2
- import { RuntimeLoader, type RuntimeCallback } from "./runtimeLoader";
2
+ import { RuntimeLoader, type RuntimeCallback, type ScriptFetchOptions } from "./runtimeLoader";
3
3
  import { SemanticTreeModel, AccessibilityOverlay, SemanticMode, type RiveSemanticsOptions } from "./semantics";
4
4
  import { ImageWrapper, AudioWrapper, FontWrapper, RiveFont as RiveFontClassUtil } from "./utils";
5
5
  export type AssetLoadCallback = (asset: rc.FileAsset, bytes: Uint8Array) => boolean;
@@ -97,7 +97,7 @@ export declare class Layout {
97
97
  runtimeFit(rive: rc.RiveCanvas): rc.Fit;
98
98
  runtimeAlignment(rive: rc.RiveCanvas): rc.Alignment;
99
99
  }
100
- export { RuntimeLoader, type RuntimeCallback };
100
+ export { RuntimeLoader, type RuntimeCallback, type ScriptFetchOptions };
101
101
  /**
102
102
  * @deprecated State machine inputs are deprecated and will be removed in a
103
103
  * future major version: please use data binding properties instead. See
@@ -837,7 +837,7 @@ export declare class Rive {
837
837
  private ensureKeyboardInteractions;
838
838
  /** Runs inside touchend/mouseup so focusing the proxy raises the mobile keyboard. */
839
839
  private summonKeyboardForGesture;
840
- /** expectsKeyboardInput, and (with semantics on) the focused node is a textField. */
840
+ /** expectsTextInput (not key listeners alone), and with semantics on a textField. */
841
841
  private wantsTextInputSession;
842
842
  private advanceAndDrainForPointer;
843
843
  private cleanupKeyboardInteractions;