{
	"schemaVersion": "1.0.0",
	"readme": "README.md",
	"modules": [
		{
			"kind": "javascript-module",
			"path": "index.js",
			"declarations": [],
			"exports": [
				{
					"kind": "js",
					"name": "RpgActor",
					"declaration": {
						"name": "RpgActor",
						"module": "rpg-actor.js"
					}
				},
				{
					"kind": "js",
					"name": "expressions",
					"declaration": {
						"name": "expressions",
						"module": "rpg-actor.js"
					}
				},
				{
					"kind": "js",
					"name": "directions",
					"declaration": {
						"name": "directions",
						"module": "rpg-actor.js"
					}
				},
				{
					"kind": "custom-element-definition",
					"name": "rpg-actor",
					"declaration": {
						"name": "RpgActor",
						"module": "rpg-actor.js"
					}
				}
			]
		},
		{
			"kind": "javascript-module",
			"path": "rpg-actor.js",
			"declarations": [
				{
					"kind": "variable",
					"name": "expressions",
					"description": "The nine supported expression names."
				},
				{
					"kind": "variable",
					"name": "directions",
					"description": "The four direction names in sprite row order."
				},
				{
					"kind": "class",
					"description": "Attribute-driven rpg.actor sprites, expressions and talking with native HTML fallback.\nSee https://rpg.actor/dev-guide for the sprite grid and expression-sheet contract.",
					"name": "RpgActor",
					"cssProperties": [
						{
							"description": "Rendered sprite width.",
							"name": "--rpg-actor-size",
							"default": "144px"
						}
					],
					"cssParts": [
						{
							"description": "Cropped sprite viewport.",
							"name": "sprite"
						},
						{
							"description": "Built-in pause/resume button.",
							"name": "controls"
						}
					],
					"slots": [
						{
							"description": "Fallback HTML shown before loading and when base/selected sheets fail.",
							"name": ""
						}
					],
					"events": [
						{
							"type": {
								"text": "CustomEvent<{ animation: string, direction: string, expression: string, talking: boolean, paused: boolean }>"
							},
							"description": "After observed attribute changes or showcase steps; not on initialization. Bubbles and composed; not cancelable.",
							"name": "actor-change"
						},
						{
							"type": {
								"text": "CustomEvent<{ src: string }>"
							},
							"description": "After a sheet loads. Bubbles and composed; not cancelable.",
							"name": "actor-load"
						},
						{
							"type": {
								"text": "CustomEvent<{ reason: string, src: string }>"
							},
							"description": "Failed handle lookup, malformed emotes JSON, or image failure. Bubbles and composed; not cancelable.",
							"name": "actor-error"
						}
					],
					"attributes": [
						{
							"name": "handle",
							"type": {
								"text": "string"
							},
							"description": "Bluesky handle, optionally prefixed with @. Loads the public actor sprite and expressions. Missing or unavailable sprites use the bundled courier. An explicit src bypasses lookup."
						},
						{
							"name": "src",
							"type": {
								"text": "string"
							},
							"description": "Base sprite sheet URL, relative or HTTP(S). Omit to use the resolved or bundled sprite."
						},
						{
							"name": "emotes",
							"type": {
								"text": "string"
							},
							"description": "JSON map of expression names to emoteSheet and optional talkSheet image URLs.",
							"default": "{}"
						},
						{
							"name": "columns",
							"type": {
								"text": "number"
							},
							"description": "Base grid columns, 1–16. Invalid values use 3; zero becomes 1.",
							"default": "3"
						},
						{
							"name": "rows",
							"type": {
								"text": "number"
							},
							"description": "Base grid rows, 1–16. Invalid values use 4; zero becomes 1.",
							"default": "4"
						},
						{
							"name": "animation",
							"type": {
								"text": "'idle' | 'walk'"
							},
							"description": "Walking uses ping-pong columns, normally 0,1,2,1.",
							"default": "idle"
						},
						{
							"name": "direction",
							"type": {
								"text": "'down' | 'left' | 'right' | 'up'"
							},
							"description": "Direction row, clamped to the sheet rows.",
							"default": "down"
						},
						{
							"name": "expression",
							"type": {
								"text": "'neutral' | 'blink' | 'happy' | 'sad' | 'angry' | 'silly' | 'tired' | 'bruh' | 'pout'"
							},
							"description": "Missing expression sheets fall back to src.",
							"default": "neutral"
						},
						{
							"name": "talking",
							"type": {
								"text": "boolean"
							},
							"description": "Presence alternates open and closed mouth sheets.",
							"default": "false"
						},
						{
							"name": "paused",
							"type": {
								"text": "boolean"
							},
							"description": "Presence freezes animation. Reflected by the built-in button.",
							"default": "false"
						},
						{
							"name": "showcase",
							"type": {
								"text": "boolean"
							},
							"description": "Presence cycles available expressions and directions through idle, walking and talking poses.",
							"default": "false"
						},
						{
							"name": "showcase-duration",
							"type": {
								"text": "number"
							},
							"description": "Milliseconds per pose, 150–60000, rounded up to the next frame. Invalid values use 2400; values below 150 become 150. Independent of interval.",
							"default": "2400"
						},
						{
							"name": "interval",
							"type": {
								"text": "number"
							},
							"description": "Frame duration in ms, 50–2000. Invalid values use 150; values below 50 become 50.",
							"default": "150"
						},
						{
							"name": "frame",
							"type": {
								"text": "number"
							},
							"description": "Optional zero-based column override; invalid values use idle column."
						},
						{
							"name": "label",
							"type": {
								"text": "string"
							},
							"description": "Accessible image name.",
							"default": "RPG character"
						}
					],
					"superclass": {
						"name": "HTMLElement"
					},
					"tagName": "rpg-actor",
					"customElement": true
				}
			],
			"exports": [
				{
					"kind": "js",
					"name": "expressions",
					"declaration": {
						"name": "expressions",
						"module": "rpg-actor.js"
					}
				},
				{
					"kind": "js",
					"name": "directions",
					"declaration": {
						"name": "directions",
						"module": "rpg-actor.js"
					}
				},
				{
					"kind": "js",
					"name": "RpgActor",
					"declaration": {
						"name": "RpgActor",
						"module": "rpg-actor.js"
					}
				}
			]
		}
	]
}
