wobnimo 0.1.2 → 0.1.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/dist/characters/index.d.ts +1 -1
- package/dist/element.d.ts +20 -2
- package/dist/element.js +11 -11
- package/dist/index.d.ts +3 -2
- package/dist/{status-DVudJbtp.d.ts → mascot-DZ91_ss-.d.ts} +1 -10
- package/dist/react.d.ts +2 -1
- package/dist/status-C14-19fT.d.ts +12 -0
- package/dist/wobnimo.js +15 -15
- package/package.json +17 -1
- /package/dist/{element-DRDEWSGV.d.ts → index-DRDEWSGV.d.ts} +0 -0
|
@@ -185,13 +185,4 @@ declare class Mascot implements Animated {
|
|
|
185
185
|
*/
|
|
186
186
|
declare function mount(container: HTMLElement, spec: CharacterSpec, options?: MascotOptions): Mascot;
|
|
187
187
|
|
|
188
|
-
|
|
189
|
-
type ChatStatus = 'submitted' | 'streaming' | 'ready' | 'error' | 'idle';
|
|
190
|
-
/**
|
|
191
|
-
* Drives a mascot from a chat `status`. Call it whenever the status changes
|
|
192
|
-
* (in React, inside an effect on `status`). When a turn finishes (`ready`)
|
|
193
|
-
* the mascot celebrates for `celebrateMs`, then settles to idle.
|
|
194
|
-
*/
|
|
195
|
-
declare function driveFromStatus(mascot: Mascot, status: ChatStatus, celebrateMs?: number): void;
|
|
196
|
-
|
|
197
|
-
export { type ChatStatus as C, EXPRESSIONS as E, type MascotOptions as M, type Palette as P, Rig as R, STATES as S, type MascotState as a, type Mat4 as b, type Channels as c, type CompiledCharacter as d, Mascot as e, type MascotEvents as f, SpecError as g, albedo as h, compile as i, compileCached as j, defineCharacter as k, driveFromStatus as l, mount as m, recolor as r, variant as v };
|
|
188
|
+
export { type Channels as C, EXPRESSIONS as E, Mascot as M, type Palette as P, Rig as R, STATES as S, type MascotState as a, type MascotOptions as b, type Mat4 as c, type CompiledCharacter as d, type MascotEvents as e, SpecError as f, albedo as g, compile as h, compileCached as i, defineCharacter as j, mount as m, recolor as r, variant as v };
|
package/dist/react.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { b as MascotOptions, a as MascotState, P as Palette } from './mascot-DZ91_ss-.js';
|
|
3
3
|
import { C as CharacterSpec } from './types-PAZ6PnKv.js';
|
|
4
|
+
import { C as ChatStatus } from './status-C14-19fT.js';
|
|
4
5
|
|
|
5
6
|
interface MascotProps extends Omit<MascotOptions, 'state' | 'palette'> {
|
|
6
7
|
/** A built-in character id (`"mochi"`) or any CharacterSpec of your own. */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { M as Mascot } from './mascot-DZ91_ss-.js';
|
|
2
|
+
|
|
3
|
+
/** The chat statuses the AI SDK emits, and anything close enough to map. */
|
|
4
|
+
type ChatStatus = 'submitted' | 'streaming' | 'ready' | 'error' | 'idle';
|
|
5
|
+
/**
|
|
6
|
+
* Drives a mascot from a chat `status`. Call it whenever the status changes
|
|
7
|
+
* (in React, inside an effect on `status`). When a turn finishes (`ready`)
|
|
8
|
+
* the mascot celebrates for `celebrateMs`, then settles to idle.
|
|
9
|
+
*/
|
|
10
|
+
declare function driveFromStatus(mascot: Mascot, status: ChatStatus, celebrateMs?: number): void;
|
|
11
|
+
|
|
12
|
+
export { type ChatStatus as C, driveFromStatus as d };
|