creator-editing-studio 1.0.20261002 → 1.1.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "creator-editing-studio",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Scaffolds a Creator Editing OS studio — components, scripts and rules for editing video from a plain-English brief.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -36,7 +36,26 @@ export const Sample: React.FC = () => {
|
|
|
36
36
|
Your studio <HighlightMark at={headlineAt}>works</HighlightMark>
|
|
37
37
|
</span>
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
{/* RollingNumber inherits its type from this parent and offsets each digit by sizePx.
|
|
40
|
+
Without a fontSize here the digits inherit the browser default 16px while the roll
|
|
41
|
+
still moves them by sizePx, so they slide clean out of the clip window and the
|
|
42
|
+
counter renders as two tiny motionless zeros. The component says as much —
|
|
43
|
+
"set font styles on the parent; sizePx must equal its font size" — and the sample
|
|
44
|
+
ignored it, which made every first render look broken. */}
|
|
45
|
+
<div
|
|
46
|
+
style={{
|
|
47
|
+
marginTop: 60,
|
|
48
|
+
display: 'flex',
|
|
49
|
+
alignItems: 'baseline',
|
|
50
|
+
gap: 20,
|
|
51
|
+
fontFamily: FONT.sans,
|
|
52
|
+
fontSize: TYPE.stat.size,
|
|
53
|
+
fontWeight: TYPE.stat.weight,
|
|
54
|
+
lineHeight: TYPE.stat.lineHeight,
|
|
55
|
+
letterSpacing: TYPE.stat.tracking,
|
|
56
|
+
color: COLOR.fg,
|
|
57
|
+
}}
|
|
58
|
+
>
|
|
40
59
|
{/* No `from` — digits roll up from zero on their own. from="0" against value="100"
|
|
41
60
|
throws, because RollingNumber requires both to have the same shape. */}
|
|
42
61
|
<RollingNumber value="100" at={numberAt} sizePx={TYPE.stat.size} />
|