@ossclip/scenes 0.1.13 → 0.1.15
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 +2 -2
- package/src/caption-visibility.ts +17 -0
- package/src/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossclip/scenes",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "ossclip's scene library and stage geometry — React components shared by preview and render",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"zod": "^3.25.0",
|
|
22
|
-
"@ossclip/core": "0.1.
|
|
22
|
+
"@ossclip/core": "0.1.15"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": ">=18",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a render-props `captionsHidden` field unmounts the caption track.
|
|
3
|
+
* The mirror of `showWatermark` (watermark-layout.ts) with the polarity
|
|
4
|
+
* flipped by the feature's default: captions are ON unless something said
|
|
5
|
+
* off, so only a literal `true` hides — every pre-feature render-props.json
|
|
6
|
+
* has no field at all (undefined → visible, old workdirs render unchanged),
|
|
7
|
+
* and a hand-edited `"captionsHidden": "yes"` must fall back to VISIBLE,
|
|
8
|
+
* the default, rather than coerce the track away — values from outside are
|
|
9
|
+
* parsed, never coerced (CLAUDE.md).
|
|
10
|
+
*
|
|
11
|
+
* Pure and separate from ProductionComposition so the mount decision is
|
|
12
|
+
* testable without React or Remotion in the loop (house rule), exactly how
|
|
13
|
+
* the watermark's own gate is tested.
|
|
14
|
+
*/
|
|
15
|
+
export function showCaptions(captionsHidden: unknown): boolean {
|
|
16
|
+
return captionsHidden !== true;
|
|
17
|
+
}
|
package/src/index.ts
CHANGED