@lincyaw/kernel 1.0.0-rc.102 → 1.0.0-rc.104
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
|
@@ -131,7 +131,7 @@ export type AuthoringClientActionResult =
|
|
|
131
131
|
export interface AuthoringClientSnapshot {
|
|
132
132
|
revision: number
|
|
133
133
|
source: CanonicalSource
|
|
134
|
-
view: 'document' | 'present'
|
|
134
|
+
view: 'document' | 'scrolly' | 'present'
|
|
135
135
|
mode?: AuthoringClientView
|
|
136
136
|
recording?: { phase: 'idle' | 'requesting' | 'recording' | 'stopping' | 'ready' | 'failed', elapsedMs: number, candidate?: { byteLength: number, mime: string, assetId?: string }, error?: string, audition?: 'idle' | 'loading' | 'playing' | 'failed' }
|
|
137
137
|
editing: { dirty: boolean, saving: boolean, composing: boolean, conflicted: boolean, locked: boolean, loading: boolean }
|
|
@@ -256,7 +256,7 @@ const binding = object({ source, irRevision: entity, planId: entity })
|
|
|
256
256
|
const position = object({ timeMs: number, stepTimeMs: number, sectionId: entity, stepId: entity, durationMs: number, playing: bool, rate: { type: 'number', exclusiveMinimum: 0, maximum: 16 }, trying: bool, waitingFor: entity }, ['timeMs', 'durationMs', 'playing', 'rate', 'trying'])
|
|
257
257
|
const playback = object({ binding, status: { enum: ['loading', 'ready', 'estimated', 'unavailable', 'failed'] }, position, error: { type: 'string', maxLength: 300 } }, ['binding', 'status'])
|
|
258
258
|
export const AUTHORING_CLIENT_SNAPSHOT_SCHEMA: Schema = object({
|
|
259
|
-
revision: integer, source, view: { enum: ['document', 'present'] }, editing: object({ dirty: bool, saving: bool, composing: bool, conflicted: bool, locked: bool, loading: bool }),
|
|
259
|
+
revision: integer, source, view: { enum: ['document', 'scrolly', 'present'] }, editing: object({ dirty: bool, saving: bool, composing: bool, conflicted: bool, locked: bool, loading: bool }),
|
|
260
260
|
mode: { enum: ['document', 'reading', 'presentation', 'production'] },
|
|
261
261
|
recording: object({ phase: { enum: ['idle', 'requesting', 'recording', 'stopping', 'ready', 'failed'] }, elapsedMs: number,
|
|
262
262
|
candidate: object({ byteLength: integer, mime: { type: 'string', maxLength: 200 }, assetId: entity }, ['byteLength', 'mime']),
|
|
@@ -1026,7 +1026,12 @@ export function connectPreviewFrame(page: PreviewPage): PreviewFrame | undefined
|
|
|
1026
1026
|
case 'source-created': return void window.dispatchEvent(new CustomEvent('presmium:source-created', { detail: command }))
|
|
1027
1027
|
case 'page-insert': return void window.dispatchEvent(new CustomEvent('presmium:page-insert', { detail: command }))
|
|
1028
1028
|
case 'page-created': return void window.dispatchEvent(new CustomEvent('presmium:page-created', { detail: command }))
|
|
1029
|
-
case 'go':
|
|
1029
|
+
case 'go': {
|
|
1030
|
+
cancelProduction()
|
|
1031
|
+
page.go(command)
|
|
1032
|
+
position.resend()
|
|
1033
|
+
return position.moved()
|
|
1034
|
+
}
|
|
1030
1035
|
case 'highlight': return highlight.show(command.target)
|
|
1031
1036
|
case 'pick': return picking.set(command.on)
|
|
1032
1037
|
case 'pins': return pins.set(command.targets)
|