storyink 0.3.4 → 0.3.6
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/CHANGELOG.md +45 -0
- package/README.md +7 -0
- package/dist/chunks/{index-a1ae1dgw.js → index-3d2xhymt.js} +1520 -1236
- package/dist/chunks/{index-8fj4y3qd.js → index-drzd6nt1.js} +12 -4
- package/dist/cli.js +2063 -1762
- package/dist/core/index.js +23 -1
- package/dist/index.js +35 -2
- package/dist/node/index.js +4 -2
- package/dist/types/core/index.d.ts +2 -2
- package/dist/types/core/render/App.d.ts +21 -2
- package/dist/types/core/spec.d.ts +10 -0
- package/dist/types/core/story/compile.d.ts +18 -1
- package/dist/types/core/story/state.d.ts +43 -0
- package/dist/types/core/story/types.d.ts +21 -0
- package/dist/types/generated/meta.d.ts +1 -1
- package/dist/types/generated/viewer.d.ts +1 -1
- package/dist/types/node/index.d.ts +5 -0
- package/dist/types/node/snapshot.d.ts +2 -0
- package/dist/types/theme/tokens.d.ts +14 -0
- package/docs/spec.md +67 -17
- package/package.json +1 -1
- package/schema/storyink.schema.json +13 -0
- package/skill/SKILL.md +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.6
|
|
4
|
+
|
|
5
|
+
- **Default `story.pace` is 0.6** (was 1): shorter reading holds after each beat. `pace: 1` gives
|
|
6
|
+
the 0.3.5 holds, `pace: 0` the pre-0.3.5 timing. Applies to the viewer, `render` (and
|
|
7
|
+
`--pace`), the plugin and animated SVGs (built with their pace). Durations: OpenWick
|
|
8
|
+
architecture 176 s → 135 s, data flow 95 s → 78 s, checkout 30 s → 26 s, OAuth 57 s → 47 s.
|
|
9
|
+
- **Pauses in the viewer**, changeable after the build: a toolbar button (`Pauses: Normal`)
|
|
10
|
+
cycles None (0) · Short (0.3) · Normal (0.6) · Long (1.0) · Longer (1.5); `[` / `]` step down /
|
|
11
|
+
up; the choice is remembered (`localStorage["storyink-pace"]`); `#pace=<n>` wins. The HTML
|
|
12
|
+
embeds a small `timeline.source` and the viewer recompiles the timeline in the browser with the
|
|
13
|
+
same compiler (`recompilePace`, byte-identical to `render --pace`). The reader keeps their place
|
|
14
|
+
(same beat, same progress; `mapStoryTime`) and playback continues; duration, ticks, → / ← stops,
|
|
15
|
+
stepped holds and the follow camera follow the new timeline. Page contract: `pace()`,
|
|
16
|
+
`setPace(n)`. Viewer bundle +16.5 KiB (388.5 → 405.0 KiB).
|
|
17
|
+
- `storyink snapshot --pace N` (tool `storyink_snapshot` `pace`) pins the pace for every capture;
|
|
18
|
+
by default snapshots use the author pace.
|
|
19
|
+
- **→ / ← no longer wait for the text.** Step moves animate the graph only: → plays to the end
|
|
20
|
+
of the next beat's graph motion (pulses arrived, reveals and draw-ons done; not caption typing,
|
|
21
|
+
glows, trail cooling, rings or the reading hold; `beatMotionEnds`) and pauses; pressed during a
|
|
22
|
+
reading hold (or right after a stop) it starts the next beat at once. ← rewinds the graph at 2×
|
|
23
|
+
to the previous beat's motion end. The beat's caption shows whole and instantly as the move
|
|
24
|
+
starts (← shows the target beat's) and stays at the stop (`storyState(…, { captionBeat })`).
|
|
25
|
+
Continuous play, stepped playback, the scrubber and the default `storyState` are unchanged.
|
|
26
|
+
- Stepped (reduced-motion) stops last at least 0.8 s (the bare-beat hold).
|
|
27
|
+
- Fix: clicking a toolbar button while the play gate showed also started the story.
|
|
28
|
+
|
|
29
|
+
## 0.3.5
|
|
30
|
+
|
|
31
|
+
- **Fix: the diagram showed a hover tooltip** (the diagram title) wherever the cursor rested. The
|
|
32
|
+
SVG carried a `<title>`, which browsers show as a tooltip. It's gone from the viewer, static
|
|
33
|
+
`.svg` exports and the animated SVG; the accessible name stays as `role="img"` +
|
|
34
|
+
`aria-label` on the root. Toolbar and transport hints are unchanged.
|
|
35
|
+
- **Reading holds.** Continuous playback now pauses after each beat so the reader can read it:
|
|
36
|
+
1 s + 0.3 s per word of the beat's caption, clamped to 1.5–6 s, or 0.8 s without a caption,
|
|
37
|
+
counted from when the beat is visually still (nothing changes during it; the caption stays up).
|
|
38
|
+
The animation speed is unchanged. Compiled into the timeline, so the viewer, scrubber, beat
|
|
39
|
+
sheets, snapshots and the animated SVG agree. Stepped (reduced-motion) playback holds each stop
|
|
40
|
+
for the same number; → / ← still stop at the settled beat without waiting.
|
|
41
|
+
- `story.pace` (multiplier, default 1; `0` = the 0.3.4 timing) and a per-step `hold` (seconds,
|
|
42
|
+
for the beat it ends); `render --pace`, tool `storyink_render` `pace`; core `readingHold`,
|
|
43
|
+
`compileStoryAuthored`.
|
|
44
|
+
- An absolute `at` is now a *minimum* start; relative `"+x"` steps shift.
|
|
45
|
+
- Stories run longer: OpenWick architecture 55 s → 176 s, data flow 29 s → 95 s, checkout
|
|
46
|
+
13 s → 30 s, OAuth 17 s → 57 s. The 60 s length warning counts the authored timing only.
|
|
47
|
+
|
|
3
48
|
## 0.3.4
|
|
4
49
|
|
|
5
50
|
- **Fix: → stopped before the next box was visible.** Step moves targeted the next step *start*,
|
package/README.md
CHANGED
|
@@ -126,6 +126,13 @@ has a click-to-play gate, play/pause, a tape-rewind replay and a scrubber with s
|
|
|
126
126
|
ticks. Space, ←/→ and R control it: → plays to the next step and pauses, ← rewinds at 2× to the
|
|
127
127
|
previous one (Shift: by chapter; repeated presses extend the move).
|
|
128
128
|
|
|
129
|
+
Playback **pauses to read after each beat**: about 1 s + 0.3 s per word of its caption (1.5–6 s;
|
|
130
|
+
0.8 s without one) once the beat is still, before the next beat starts. The animation speed is
|
|
131
|
+
unchanged. The default `pace` is 0.6; set `"story": { "pace": 1.5 }` (or `--pace`) to slow it,
|
|
132
|
+
`0` for none, or `"hold": 3` on a step for its beat. Readers change it on the page with
|
|
133
|
+
**Pauses** in the toolbar (None · Short · Normal · Long · Longer, `[` / `]`, remembered;
|
|
134
|
+
`#pace=` in the URL); the viewer recompiles the timeline in the browser and keeps their place.
|
|
135
|
+
|
|
129
136
|
Motion is **full by default, even when the reader's system asks for reduced motion**. Authors can
|
|
130
137
|
set `"story": { "motion": "reduced" }` (always step by step) or `"motion": "system"` (follow
|
|
131
138
|
`prefers-reduced-motion`); `--motion full|reduced|system` on `render` does the same, including
|