@scenar/core 0.3.0 → 0.5.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 +1 -1
- package/package.json +1 -1
- package/scenario/types.d.ts +0 -2
- package/scenario/types.d.ts.map +1 -1
- package/src/scenario/types.ts +0 -2
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ pnpm add @scenar/core
|
|
|
12
12
|
|
|
13
13
|
### Scenario types
|
|
14
14
|
|
|
15
|
-
- **`ScenarioStep<T>`** — A single step in a scenario timeline with typed data payload, delay,
|
|
15
|
+
- **`ScenarioStep<T>`** — A single step in a scenario timeline with typed data payload, delay, narration text, and inline interactions.
|
|
16
16
|
- **`StepAction`** — A timed interaction within a step (click, type, hover, drag, scroll_to, set_cursor, clear_cursor, viewport_transition).
|
|
17
17
|
|
|
18
18
|
### Timeline computation
|
package/package.json
CHANGED
package/scenario/types.d.ts
CHANGED
|
@@ -15,8 +15,6 @@ export interface ScenarioStep<T> {
|
|
|
15
15
|
readonly delayMs: number;
|
|
16
16
|
/** Data snapshot at this point in the timeline. */
|
|
17
17
|
readonly data: T;
|
|
18
|
-
/** Short label shown below the demo content describing the current action. */
|
|
19
|
-
readonly caption?: string;
|
|
20
18
|
/**
|
|
21
19
|
* Narration script for TTS generation. Consumed by the build script
|
|
22
20
|
* to produce audio files — not rendered at runtime.
|
package/scenario/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/scenario/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;;;GAIG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,uDAAuD;IACvD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IACjB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/scenario/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;;;GAIG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,uDAAuD;IACvD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;;;OAOG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;CAC/C"}
|
package/src/scenario/types.ts
CHANGED
|
@@ -17,8 +17,6 @@ export interface ScenarioStep<T> {
|
|
|
17
17
|
readonly delayMs: number;
|
|
18
18
|
/** Data snapshot at this point in the timeline. */
|
|
19
19
|
readonly data: T;
|
|
20
|
-
/** Short label shown below the demo content describing the current action. */
|
|
21
|
-
readonly caption?: string;
|
|
22
20
|
/**
|
|
23
21
|
* Narration script for TTS generation. Consumed by the build script
|
|
24
22
|
* to produce audio files — not rendered at runtime.
|