@bydiorama/motion 0.4.0 → 0.4.1
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/CREDITS.md +5 -14
- package/README.md +4 -9
- package/catalog.json +2 -2
- package/dist/npm/browser/motion.js +3 -3
- package/dist/npm/browser/page.js +2 -2
- package/dist/npm/browser/wizard.js +2 -2
- package/dist/npm/cli/main.js +1 -1
- package/dist/npm/core/ease.d.ts +1 -1
- package/dist/npm/core/ease.js +1 -1
- package/dist/npm/dom/mount.js +1 -1
- package/dist/npm/dom/stage.css.js +1 -1
- package/dist/npm/dom/ui-themes.css.js +2 -2
- package/dist/npm/film/resolve.js +1 -1
- package/dist/npm/film/types.d.ts +2 -2
- package/dist/npm/film/types.js +1 -1
- package/dist/npm/primitives/el/slot.js +1 -1
- package/dist/npm/tokens.d.ts +1 -1
- package/dist/npm/version.d.ts +1 -1
- package/dist/npm/version.js +1 -1
- package/package.json +1 -1
- package/schema/film.schema.json +1 -1
package/CREDITS.md
CHANGED
|
@@ -22,21 +22,12 @@ as the licence requires.
|
|
|
22
22
|
`src/studio/theme/fonts/OFL.txt`. The font stays under the OFL; the MIT
|
|
23
23
|
licence of this repository does not cover it.
|
|
24
24
|
|
|
25
|
-
##
|
|
25
|
+
## Theme and motion credits
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
generated from its token resolver by `scripts/ui-theme.ts`.
|
|
32
|
-
- `src/studio/fade.ts` ports its Fade component to plain DOM, with the
|
|
33
|
-
perceptual ramp tables copied verbatim.
|
|
34
|
-
- The `ui.*` easing curves are its `--ui-ease-*` tokens.
|
|
35
|
-
|
|
36
|
-
Some of those tokens (`--ui-press-scale`, `--ui-stagger-step`, the hit-area
|
|
37
|
-
sizes) encode values ui adapted from
|
|
38
|
-
[jakubkrehel/skills](https://github.com/jakubkrehel/skills) (© 2026 Jakub
|
|
39
|
-
Krehel, MIT). See ui's [CREDITS.md](https://github.com/bydiorama/ui/blob/main/CREDITS.md).
|
|
27
|
+
The bundled theme tokens, easing curves, and studio edge fades are © 2026
|
|
28
|
+
Diorama and licensed under the MIT licence. The press scale, stagger step,
|
|
29
|
+
and hit-area sizes incorporate work © 2026 Jakub Krehel, also licensed
|
|
30
|
+
under the MIT licence. See [LICENSE](LICENSE) for the licence terms.
|
|
40
31
|
|
|
41
32
|
## Tools, not shipped
|
|
42
33
|
|
package/README.md
CHANGED
|
@@ -40,18 +40,13 @@ Other parts:
|
|
|
40
40
|
|
|
41
41
|
The package exposes the `motion` CLI, the ESM runtime at `@bydiorama/motion`, and film authoring helpers at `@bydiorama/motion/build`. It requires Node 22.18 or later and includes TypeScript declarations.
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
Install the package and validate the included example film:
|
|
44
44
|
|
|
45
45
|
```sh
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
# In the project where you want to use Motion
|
|
49
|
-
npm install /path/to/motion/dist/bydiorama-motion-0.4.0.tgz
|
|
50
|
-
npx motion catalog
|
|
46
|
+
npm install @bydiorama/motion
|
|
47
|
+
npx motion validate node_modules/@bydiorama/motion/films/feature-announcement.film.json
|
|
51
48
|
```
|
|
52
49
|
|
|
53
|
-
After publication, install by name with `npm install @bydiorama/motion`. Try the included film with `npx motion validate node_modules/@bydiorama/motion/films/feature-announcement.film.json`.
|
|
54
|
-
|
|
55
50
|
## Daily commands
|
|
56
51
|
|
|
57
52
|
```bash
|
|
@@ -130,7 +125,7 @@ The studio is one screen: scenes on the left, each with a still and its intent,
|
|
|
130
125
|
|
|
131
126
|
Agents write the film and never the tune. People direct in the studio: every dial is generated from the film and the catalog, dragging a scene clip sets its length, and notes pinned to a moment are stored for the agent. Overrides address scenes and layers by id, so they survive the agent rewriting the film; an override whose target is gone is reported, not dropped.
|
|
132
127
|
|
|
133
|
-
The studio is drawn in
|
|
128
|
+
The studio is drawn in the bundled Graphite theme (Aspekta, no chroma). Films read `--ui-*` tokens too: pass a ui theme with `--css` and the stage uses its colours, fonts and easing curves (`ui.default`, `ui.spring`, …). A film can also set `"theme": { "ui": "zero" }` (or `graphite`, `hockney`): the stage then carries that bundled ui theme and Aspekta itself, in the studio, in stills and in renders. The demo films and the wizard's thumbnails are drawn this way. `node scripts/ui-theme.ts` regenerates the studio theme and the bundled stage themes from the ui token resolver.
|
|
134
129
|
|
|
135
130
|
## The one rule
|
|
136
131
|
|
package/catalog.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"motion": "0.4.
|
|
2
|
+
"motion": "0.4.1",
|
|
3
3
|
"tokens": {
|
|
4
4
|
"fps": 30,
|
|
5
5
|
"beat": 2.5,
|
|
@@ -423,7 +423,7 @@
|
|
|
423
423
|
},
|
|
424
424
|
{
|
|
425
425
|
"slug": "el/slot",
|
|
426
|
-
"summary": "An empty frame the host page fills, e.g. with a rendered
|
|
426
|
+
"summary": "An empty frame the host page fills, e.g. with a rendered UI component.",
|
|
427
427
|
"props": {
|
|
428
428
|
"name": {
|
|
429
429
|
"type": "string",
|