@rive-app/canvas-single 2.49.2 → 2.49.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.
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
  # Rive
3
3
  High-level Rive API using CanvasRenderingContext2D with inline WASM. Please see https://github.com/rive-app/rive-wasm for a list of all the available web runtimes and their details.
4
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
+
5
7
  ## Canvas Single
6
8
  ```
7
9
  npm install @rive-app/canvas-single
@@ -12,4 +14,14 @@ An easy-to-use high-level Rive API using a backing [CanvasRenderingContext2D](ht
12
14
  - Support for simple vector graphics animations, raster, and mesh deformations
13
15
  - Web Assembly (WASM) backing dependency is part of the JS bundle; there is no need to make a request to load it in at runtime
14
16
 
15
- [Getting Started](https://github.com/rive-app/rive-wasm#getting-started)
17
+ [Getting Started](https://github.com/rive-app/rive-wasm#getting-started)
18
+
19
+ ## Build with your agent
20
+
21
+ Paste this into Claude Code, Codex, Cursor, or any agent that runs commands on your computer:
22
+
23
+ ```text
24
+ 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.
25
+ ```
26
+
27
+ 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/canvas-single",
3
- "version": "2.49.2",
4
- "description": "Rive's high-level canvas based web api all in one js file.",
3
+ "version": "2.49.4",
4
+ "description": "Rive web runtime with the canvas renderer, bundled as a single JS file. 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
@@ -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;