@onmark/cli 0.4.0 → 0.5.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/README.md +6 -0
- package/onmark-release.json +49 -49
- package/package.json +4 -4
- package/packages/authoring/dist/src/presentation.js +127 -6
- package/packages/bundler/dist/src/authored_html.d.ts +2 -0
- package/packages/bundler/dist/src/authored_html.js +30 -0
- package/packages/bundler/dist/src/command.js +10 -6
- package/packages/bundler/dist/src/generated/bundle-manifest.d.ts +4 -5
- package/packages/bundler/dist/src/generated/bundle-manifest.js +1 -0
- package/packages/bundler/dist/src/presentation.d.ts +1 -1
- package/packages/bundler/dist/src/presentation.js +13 -2
- package/packages/runtime/dist/src/generated/browser-request.d.ts +5 -1
- package/packages/runtime/dist/src/generated/browser-response.d.ts +46 -1
- package/packages/runtime/dist/src/generated/bundle-layout.d.ts +1 -1
- package/packages/runtime/dist/src/generated/bundle-layout.js +1 -0
- package/packages/runtime/dist/src/generated/runtime-contract.d.ts +3 -1
- package/packages/runtime/dist/src/generated/runtime-contract.js +3 -1
- package/packages/runtime/dist/src/generated/validators.js +1172 -465
- package/packages/runtime/dist/src/index.d.ts +3 -3
- package/packages/runtime/dist/src/index.js +1 -1
- package/packages/runtime/dist/src/presentation.d.ts +8 -3
- package/packages/runtime/dist/src/presentation.js +97 -7
- package/packages/runtime/dist/src/session.d.ts +7 -3
- package/packages/runtime/dist/src/session.js +17 -9
- package/packages/runtime/dist/src/types.d.ts +2 -1
|
@@ -8,6 +8,7 @@ export type BrowserEvent = {
|
|
|
8
8
|
* Frame at which preparation completed.
|
|
9
9
|
*/
|
|
10
10
|
evaluationStart: number;
|
|
11
|
+
mediaLayout: BrowserMediaLayout;
|
|
11
12
|
type: "prepared";
|
|
12
13
|
} | {
|
|
13
14
|
/**
|
|
@@ -40,6 +41,25 @@ export type BrowserEvent = {
|
|
|
40
41
|
} | {
|
|
41
42
|
type: "disposed";
|
|
42
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Browser identity for one Timeline element or imported caption.
|
|
46
|
+
*
|
|
47
|
+
* IDs form dense renderable-semantic preorder within one Browser Plan.
|
|
48
|
+
*
|
|
49
|
+
* Authored IDs, rather than this unit-local key, retain cross-projection
|
|
50
|
+
* semantic identity.
|
|
51
|
+
*/
|
|
52
|
+
export type BrowserNodeId = number;
|
|
53
|
+
/**
|
|
54
|
+
* Closed CSS object-fit subset admitted by native media.
|
|
55
|
+
*/
|
|
56
|
+
export type BrowserObjectFit = "fill" | "contain" | "cover";
|
|
57
|
+
/**
|
|
58
|
+
* Exact static media layout observed by the browser.
|
|
59
|
+
*
|
|
60
|
+
* @maxItems 16
|
|
61
|
+
*/
|
|
62
|
+
export type BrowserMediaLayout = BrowserMediaPlacement[];
|
|
43
63
|
/**
|
|
44
64
|
* Correlation identity shared by one request and its response events.
|
|
45
65
|
*/
|
|
@@ -47,7 +67,7 @@ export type RequestId = number;
|
|
|
47
67
|
/**
|
|
48
68
|
* Version of the native-to-browser message contract.
|
|
49
69
|
*/
|
|
50
|
-
export type ProtocolVersion =
|
|
70
|
+
export type ProtocolVersion = 5;
|
|
51
71
|
/**
|
|
52
72
|
* One versioned event returned by the browser runtime.
|
|
53
73
|
*/
|
|
@@ -56,3 +76,28 @@ export interface BrowserResponse {
|
|
|
56
76
|
requestId: RequestId;
|
|
57
77
|
version: ProtocolVersion;
|
|
58
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* One video element's static, axis-aligned browser layout.
|
|
81
|
+
*/
|
|
82
|
+
export interface BrowserMediaPlacement {
|
|
83
|
+
nodeId: BrowserNodeId;
|
|
84
|
+
objectFit: BrowserObjectFit;
|
|
85
|
+
objectPosition: BrowserObjectPosition;
|
|
86
|
+
rectangle: BrowserPixelRectangle;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Fixed-point CSS object-position, where one million represents 100%.
|
|
90
|
+
*/
|
|
91
|
+
export interface BrowserObjectPosition {
|
|
92
|
+
x: number;
|
|
93
|
+
y: number;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Positive pixel rectangle relative to the output viewport.
|
|
97
|
+
*/
|
|
98
|
+
export interface BrowserPixelRectangle {
|
|
99
|
+
height: number;
|
|
100
|
+
width: number;
|
|
101
|
+
x: number;
|
|
102
|
+
y: number;
|
|
103
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const BUNDLE_ASSET_DIRECTORY: "assets/sha256";
|
|
2
2
|
export declare const PRESENTATION_TEMPORAL_CAPABILITIES: readonly ["sequential", "randomAccess"];
|
|
3
3
|
export type PresentationTemporalCapability = (typeof PRESENTATION_TEMPORAL_CAPABILITIES)[number];
|
|
4
|
-
export declare const PRESENTATION_VISUAL_CAPABILITIES: readonly ["browserComposite", "separableOverlay"];
|
|
4
|
+
export declare const PRESENTATION_VISUAL_CAPABILITIES: readonly ["browserComposite", "separableBackdrop", "separableOverlay"];
|
|
5
5
|
export type PresentationVisualCapability = (typeof PRESENTATION_VISUAL_CAPABILITIES)[number];
|
|
6
6
|
export declare const PRESENTATION_FRAME_BEHAVIORS: readonly ["perFrame", "placementBounded"];
|
|
7
7
|
export type PresentationFrameBehavior = (typeof PRESENTATION_FRAME_BEHAVIORS)[number];
|
|
@@ -6,6 +6,7 @@ export const PRESENTATION_TEMPORAL_CAPABILITIES = Object.freeze([
|
|
|
6
6
|
]);
|
|
7
7
|
export const PRESENTATION_VISUAL_CAPABILITIES = Object.freeze([
|
|
8
8
|
"browserComposite",
|
|
9
|
+
"separableBackdrop",
|
|
9
10
|
"separableOverlay",
|
|
10
11
|
]);
|
|
11
12
|
export const PRESENTATION_FRAME_BEHAVIORS = Object.freeze([
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const RUNTIME_HOST_NAME: "__ONMARK_RUNTIME__";
|
|
2
|
-
export declare const BROWSER_PROTOCOL_VERSION:
|
|
2
|
+
export declare const BROWSER_PROTOCOL_VERSION: 5;
|
|
3
3
|
export declare const MAX_BROWSER_VIDEOS: 10000;
|
|
4
|
+
export declare const MAX_BROWSER_MEDIA_LAYOUTS: 16;
|
|
5
|
+
export declare const BROWSER_OBJECT_POSITION_SCALE: 1000000;
|
|
4
6
|
export declare const MAX_BROWSER_TRANSITIONS: 10000;
|
|
5
7
|
export declare const MAX_BROWSER_OVERLAYS: 10000;
|
|
6
8
|
export declare const MAX_BROWSER_OVERLAY_TEXT_CHARACTERS: 65536;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// Generated by `cargo xtask schema`; edit Rust protocol types instead.
|
|
2
2
|
export const RUNTIME_HOST_NAME = "__ONMARK_RUNTIME__";
|
|
3
|
-
export const BROWSER_PROTOCOL_VERSION =
|
|
3
|
+
export const BROWSER_PROTOCOL_VERSION = 5;
|
|
4
4
|
export const MAX_BROWSER_VIDEOS = 10000;
|
|
5
|
+
export const MAX_BROWSER_MEDIA_LAYOUTS = 16;
|
|
6
|
+
export const BROWSER_OBJECT_POSITION_SCALE = 1000000;
|
|
5
7
|
export const MAX_BROWSER_TRANSITIONS = 10000;
|
|
6
8
|
export const MAX_BROWSER_OVERLAYS = 10000;
|
|
7
9
|
export const MAX_BROWSER_OVERLAY_TEXT_CHARACTERS = 65536;
|