@onmark/cli 0.2.1 → 0.3.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 +2 -2
- package/onmark-release.json +23 -23
- package/package.json +4 -4
- package/packages/bundler/dist/src/authored_html.js +4 -1
- package/packages/runtime/dist/src/generated/browser-request.d.ts +53 -3
- package/packages/runtime/dist/src/generated/browser-response.d.ts +1 -1
- package/packages/runtime/dist/src/generated/validators.d.ts +2 -2
- package/packages/runtime/dist/src/generated/validators.js +952 -135
- package/packages/runtime/dist/src/index.d.ts +1 -1
- package/packages/runtime/dist/src/media.d.ts +9 -0
- package/packages/runtime/dist/src/media.js +189 -15
- package/packages/runtime/dist/src/session.js +31 -2
- package/packages/runtime/dist/src/video.js +9 -4
package/README.md
CHANGED
|
@@ -88,8 +88,8 @@ onmark doctor
|
|
|
88
88
|
onmark benchmark film.html --runs 3 --json
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
Use the default H.264/AAC MP4 for delivery, or select the
|
|
92
|
-
ProRes/PCM MOV profile by filename:
|
|
91
|
+
Use the default opaque H.264/AAC MP4 for delivery, or select the
|
|
92
|
+
alpha-preserving ProRes 4444/PCM MOV profile by filename:
|
|
93
93
|
|
|
94
94
|
```bash
|
|
95
95
|
onmark render film.html --output film.mov
|
package/onmark-release.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"packageName": "@onmark/cli",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"sourceRevision": "
|
|
4
|
+
"version": "0.3.0",
|
|
5
|
+
"sourceRevision": "d45da8f8e397d78126f9d76ad36c2c20c815417e",
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": "LICENSE",
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"path": "README.md",
|
|
14
|
-
"bytes":
|
|
15
|
-
"sha256": "
|
|
14
|
+
"bytes": 6341,
|
|
15
|
+
"sha256": "a747c29224c33dd8431506467134f1b86e54bad92720c0bf3b751f0cba7d6d5d"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"path": "package.json",
|
|
19
19
|
"bytes": 1406,
|
|
20
|
-
"sha256": "
|
|
20
|
+
"sha256": "566d5d6d682429655a056c7eb1159ff19d2431fbb0f5118e91310739557628fe"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"path": "packages/authoring/dist/src/frame-motion.d.ts",
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
"path": "packages/bundler/dist/src/authored_html.js",
|
|
109
|
-
"bytes":
|
|
110
|
-
"sha256": "
|
|
109
|
+
"bytes": 14049,
|
|
110
|
+
"sha256": "17af4b808b9199fb7b29b7992d63a4b90b196bc84eeb004e1effda3ec5c24f2c"
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"path": "packages/bundler/dist/src/command.d.ts",
|
|
@@ -276,8 +276,8 @@
|
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
"path": "packages/runtime/dist/src/generated/browser-request.d.ts",
|
|
279
|
-
"bytes":
|
|
280
|
-
"sha256": "
|
|
279
|
+
"bytes": 4577,
|
|
280
|
+
"sha256": "ead94024489324448fbe1d5c9db43244f86b433d8bd7e2d11e4dd7854d42eb60"
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
283
|
"path": "packages/runtime/dist/src/generated/browser-request.js",
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
{
|
|
288
288
|
"path": "packages/runtime/dist/src/generated/browser-response.d.ts",
|
|
289
289
|
"bytes": 1368,
|
|
290
|
-
"sha256": "
|
|
290
|
+
"sha256": "a0fb11ebf3ac067a3e361a1c09bca4707f4cff8d73e9dca0f4b8d16b4b34bfcf"
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
293
|
"path": "packages/runtime/dist/src/generated/browser-response.js",
|
|
@@ -327,12 +327,12 @@
|
|
|
327
327
|
{
|
|
328
328
|
"path": "packages/runtime/dist/src/generated/validators.d.ts",
|
|
329
329
|
"bytes": 594,
|
|
330
|
-
"sha256": "
|
|
330
|
+
"sha256": "b94094d88d2ef28fb3564a8b2f93d01495fb1f95cd720c4d0b933a87c1bc8d3d"
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
333
|
"path": "packages/runtime/dist/src/generated/validators.js",
|
|
334
|
-
"bytes":
|
|
335
|
-
"sha256": "
|
|
334
|
+
"bytes": 224044,
|
|
335
|
+
"sha256": "9e8ec96ab5ea673186a54b3b2d27ed3c01931ef82998b19b087a41000c50cadf"
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
"path": "packages/runtime/dist/src/host.d.ts",
|
|
@@ -346,8 +346,8 @@
|
|
|
346
346
|
},
|
|
347
347
|
{
|
|
348
348
|
"path": "packages/runtime/dist/src/index.d.ts",
|
|
349
|
-
"bytes":
|
|
350
|
-
"sha256": "
|
|
349
|
+
"bytes": 1666,
|
|
350
|
+
"sha256": "42b953d62d267c593139fd117d31dcd44ec5afda3a0a28e38f37cc2d708825de"
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
"path": "packages/runtime/dist/src/index.js",
|
|
@@ -356,13 +356,13 @@
|
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
358
|
"path": "packages/runtime/dist/src/media.d.ts",
|
|
359
|
-
"bytes":
|
|
360
|
-
"sha256": "
|
|
359
|
+
"bytes": 1216,
|
|
360
|
+
"sha256": "edeb8b38dad4f9a0d1493c201f8a23d769dc7337efe157a40c010af5e50846fe"
|
|
361
361
|
},
|
|
362
362
|
{
|
|
363
363
|
"path": "packages/runtime/dist/src/media.js",
|
|
364
|
-
"bytes":
|
|
365
|
-
"sha256": "
|
|
364
|
+
"bytes": 9219,
|
|
365
|
+
"sha256": "6de3bb69ec137a7ec4153674698fcf3e5b195d9556c72a4f7d9f46aefc5b10b9"
|
|
366
366
|
},
|
|
367
367
|
{
|
|
368
368
|
"path": "packages/runtime/dist/src/presentation.d.ts",
|
|
@@ -391,8 +391,8 @@
|
|
|
391
391
|
},
|
|
392
392
|
{
|
|
393
393
|
"path": "packages/runtime/dist/src/session.js",
|
|
394
|
-
"bytes":
|
|
395
|
-
"sha256": "
|
|
394
|
+
"bytes": 18245,
|
|
395
|
+
"sha256": "6e83aaae7b8b7655ea9e5a49bef67663c2619d9add79cc00e6bde0be12978aed"
|
|
396
396
|
},
|
|
397
397
|
{
|
|
398
398
|
"path": "packages/runtime/dist/src/types.d.ts",
|
|
@@ -411,8 +411,8 @@
|
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
413
|
"path": "packages/runtime/dist/src/video.js",
|
|
414
|
-
"bytes":
|
|
415
|
-
"sha256": "
|
|
414
|
+
"bytes": 12415,
|
|
415
|
+
"sha256": "ba2c4bddd0e7de75a62d66c5a07ee1989f22af408d0503210533641a3568fc8b"
|
|
416
416
|
}
|
|
417
417
|
]
|
|
418
418
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onmark/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Screenplay-first deterministic browser video compiler",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"yauzl": "3.4.0"
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
48
|
-
"@onmark/cli-darwin-arm64": "0.
|
|
49
|
-
"@onmark/cli-linux-x64": "0.
|
|
50
|
-
"@onmark/cli-win32-x64": "0.
|
|
48
|
+
"@onmark/cli-darwin-arm64": "0.3.0",
|
|
49
|
+
"@onmark/cli-linux-x64": "0.3.0",
|
|
50
|
+
"@onmark/cli-win32-x64": "0.3.0"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -330,7 +330,10 @@ function isCompilerOnlyAttribute(tagName, attributeName) {
|
|
|
330
330
|
case "om-shot":
|
|
331
331
|
return attributeName === "duration";
|
|
332
332
|
case "video":
|
|
333
|
-
return attributeName === "delay" ||
|
|
333
|
+
return (attributeName === "delay" ||
|
|
334
|
+
attributeName === "speed" ||
|
|
335
|
+
attributeName === "src" ||
|
|
336
|
+
attributeName === "trim");
|
|
334
337
|
default:
|
|
335
338
|
return false;
|
|
336
339
|
}
|
|
@@ -42,6 +42,23 @@ export type BrowserNodeId = number;
|
|
|
42
42
|
* Closed overlay roles understood by the browser presentation.
|
|
43
43
|
*/
|
|
44
44
|
export type BrowserOverlayKind = "title" | "callToAction" | "caption";
|
|
45
|
+
/**
|
|
46
|
+
* Exact source-frame timing projected into the browser runtime.
|
|
47
|
+
*/
|
|
48
|
+
export type BrowserVideoTiming = {
|
|
49
|
+
frameRate: WireFrameRate1;
|
|
50
|
+
kind: "constant";
|
|
51
|
+
} | {
|
|
52
|
+
/**
|
|
53
|
+
* Canonical decimal ticks from source zero through terminal end.
|
|
54
|
+
*
|
|
55
|
+
* @minItems 3
|
|
56
|
+
* @maxItems 100000
|
|
57
|
+
*/
|
|
58
|
+
boundaries: [string, string, string, ...string[]];
|
|
59
|
+
kind: "variable";
|
|
60
|
+
timebase: WireMediaTimebase;
|
|
61
|
+
};
|
|
45
62
|
/**
|
|
46
63
|
* Correlation identity shared by one request and its response events.
|
|
47
64
|
*/
|
|
@@ -49,7 +66,7 @@ export type RequestId = number;
|
|
|
49
66
|
/**
|
|
50
67
|
* Version of the native-to-browser message contract.
|
|
51
68
|
*/
|
|
52
|
-
export type ProtocolVersion =
|
|
69
|
+
export type ProtocolVersion = 3;
|
|
53
70
|
/**
|
|
54
71
|
* One versioned command sent from the native executor to the browser.
|
|
55
72
|
*/
|
|
@@ -79,7 +96,7 @@ export interface BrowserPlan {
|
|
|
79
96
|
*/
|
|
80
97
|
shots: BrowserShot[];
|
|
81
98
|
timeline: WireInterval;
|
|
82
|
-
timelineVersion:
|
|
99
|
+
timelineVersion: 2;
|
|
83
100
|
/**
|
|
84
101
|
* @maxItems 10000
|
|
85
102
|
*/
|
|
@@ -139,5 +156,38 @@ export interface BrowserVideo {
|
|
|
139
156
|
interval: WireInterval;
|
|
140
157
|
node: BrowserNode;
|
|
141
158
|
shotId: BrowserNodeId;
|
|
142
|
-
|
|
159
|
+
source: BrowserVideoSource;
|
|
160
|
+
sourceTiming: BrowserVideoTiming;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Exact source-time mapping for one browser video placement.
|
|
164
|
+
*/
|
|
165
|
+
export interface BrowserVideoSource {
|
|
166
|
+
endNanoseconds: string;
|
|
167
|
+
holdLastNanoseconds: string;
|
|
168
|
+
naturalEndNanoseconds: string;
|
|
169
|
+
playbackRate: WirePlaybackRate;
|
|
170
|
+
plays: number;
|
|
171
|
+
startNanoseconds: string;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Exact canonical playback ratio represented with browser-safe integers.
|
|
175
|
+
*/
|
|
176
|
+
export interface WirePlaybackRate {
|
|
177
|
+
denominator: number;
|
|
178
|
+
numerator: number;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Exact rational frame rate represented with browser-safe integers.
|
|
182
|
+
*/
|
|
183
|
+
export interface WireFrameRate1 {
|
|
184
|
+
denominator: number;
|
|
185
|
+
numerator: number;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Exact seconds represented by one source timestamp tick.
|
|
189
|
+
*/
|
|
190
|
+
export interface WireMediaTimebase {
|
|
191
|
+
denominator: number;
|
|
192
|
+
numerator: number;
|
|
143
193
|
}
|
|
@@ -4,8 +4,8 @@ declare function validate20(data: any, { instancePath, parentData, parentDataPro
|
|
|
4
4
|
instancePath?: string | undefined;
|
|
5
5
|
rootData?: any;
|
|
6
6
|
}): boolean;
|
|
7
|
-
export declare const validateBrowserResponse: typeof
|
|
8
|
-
declare function
|
|
7
|
+
export declare const validateBrowserResponse: typeof validate51;
|
|
8
|
+
declare function validate51(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
9
9
|
dynamicAnchors?: {} | undefined;
|
|
10
10
|
instancePath?: string | undefined;
|
|
11
11
|
rootData?: any;
|