@lalalic/markcut 3.2.57 → 3.2.59
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/docs/developer-reference.md +18 -3
- package/package.json +1 -1
- package/src/mcp/bridge.mjs +15 -16
- package/src/mcp/compile-operation.mjs +2 -2
- package/src/mcp/compile-worker.mjs +3 -3
- package/src/mcp/mobile-review-cli.mjs +2 -5
- package/src/mcp/preview-mobile.css +44 -0
- package/src/mcp/preview.mjs +5 -3
- package/src/mcp/remotion-app.bundle.js +82 -82
- package/src/mcp/remotion-app.tsx +10 -3
- package/src/mcp/review-delivery.mjs +37 -51
- package/src/mcp/server.mjs +4 -6
- package/tests/mcp-preview-bridge.test.ts +11 -8
- package/tests/mcp-preview-delivery.test.ts +30 -29
- package/tests/mcp-preview.test.ts +15 -4
- package/tests/mobile-preview-cli.test.ts +3 -2
|
@@ -317,6 +317,21 @@ When extracting HTTPS BGM from a preview tree, traverse the tree **before** retu
|
|
|
317
317
|
|
|
318
318
|
For `map view:route`, omit `zoom` to auto-fit geotagged stops to the Remotion composition dimensions, including 9:16 vertical output; auto-fit reserves 14% padding. The route schema and both descriptive compiler paths must leave omitted zoom undefined, or their old `zoom:10` defaults silently override the runtime fit. Explicit `zoom` and camera tweens still override fit. Verify the real browser map's zoom/center and rendered tiles, not just a successful Markdown compile or Google API HTTP response. A calculated Directions line is not proof of a recorded GPS track.
|
|
319
319
|
|
|
320
|
-
##
|
|
321
|
-
|
|
322
|
-
|
|
320
|
+
## Generic Preview event delivery
|
|
321
|
+
|
|
322
|
+
Markcut is a renderer and event transport, not a workflow or review authority. With
|
|
323
|
+
`review: {delivery: "event", eventTemplate: {type, source, data, responseKey?}}`,
|
|
324
|
+
the caller supplies an Events Bus envelope. Markcut validates only its transport
|
|
325
|
+
shape and basic safety constraints, preserves the opaque caller data, appends the
|
|
326
|
+
human decision and comments at `data[responseKey ?? "review"]`, then calls the
|
|
327
|
+
host Events provider with `command: "publish"`. A positive publish receipt
|
|
328
|
+
means **transport accepted**, not that the receiving workflow completed.
|
|
329
|
+
|
|
330
|
+
Neither Markcut Preview nor its standalone CLI interprets the event type/source,
|
|
331
|
+
Relay Task/Execution IDs, commits, or revision policy. The Neo Wrapper owns
|
|
332
|
+
Relay-specific event construction and identity verification; Relay owns Task
|
|
333
|
+
state and recovery. Neo Mobile follows the same generic event transport rule.
|
|
334
|
+
Media `contentHash` is only for compiled player retrieval and does not become
|
|
335
|
+
an event revision or Git identity. On event publication failures, preserve
|
|
336
|
+
comments/idempotency and report the transport failure; do not silently change
|
|
337
|
+
delivery channels.
|
package/package.json
CHANGED
package/src/mcp/bridge.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function buildPreviewBridgeScript() {
|
|
2
2
|
return `
|
|
3
3
|
const feedback=document.getElementById('feedback'),status=document.getElementById('status'),pathLabel=document.getElementById('path-label');
|
|
4
|
-
let nextId=0,identity=null,busy=false,expectedPath=null,activePath=null,
|
|
4
|
+
let nextId=0,identity=null,busy=false,expectedPath=null,activePath=null,activeReview={delivery:"text"},expectedDelivery="text",expectedReadonly=false,submittedRevision=null,submission=null;
|
|
5
5
|
const comments=[];
|
|
6
6
|
let currentScene={sceneId:null,sceneName:null,sceneStart:0,timeSeconds:0},selectedId=0,nextCommentId=0;
|
|
7
7
|
const mode=document.getElementById('comment-mode');
|
|
@@ -148,22 +148,23 @@ function applyToolInput(params){
|
|
|
148
148
|
}
|
|
149
149
|
let operationGeneration=0;
|
|
150
150
|
function eventEnvelope(template,review){
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
['
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
151
|
+
// Markcut delivers caller-authored events without inspecting their business type or identity.
|
|
152
|
+
if(!template || typeof template.type!=='string'||typeof template.source!=='string'||
|
|
153
|
+
!template.data||typeof template.data!=='object'||Array.isArray(template.data))
|
|
154
|
+
throw new Error('Invalid caller event template');
|
|
155
|
+
const key=template.responseKey||'review';
|
|
156
|
+
if(!/^[A-Za-z_][A-Za-z0-9_-]{0,63}$/.test(key)||['__proto__','constructor','prototype'].includes(key)||
|
|
157
|
+
(template.data[key]!==undefined && (typeof template.data[key]!=='object'||Array.isArray(template.data[key])||!template.data[key])))
|
|
158
|
+
throw new Error('Invalid caller response key');
|
|
159
|
+
const fixed=template.data[key]||{};
|
|
160
|
+
if(['decision','feedback','comments','previewId','requestId','idempotencyKey'].some(k=>Object.prototype.hasOwnProperty.call(fixed,k)))
|
|
161
|
+
throw new Error('Review data cannot be prefilled');
|
|
162
|
+
return {type:template.type,source:template.source,data:{...template.data,[key]:{
|
|
163
|
+
...fixed,previewId:review.previewId,requestId:review.requestId,decision:review.decision,
|
|
162
164
|
feedback:review.feedback||review.comments.map(c=>c.text).join('\\n'),
|
|
163
165
|
comments:review.comments,idempotencyKey:review.idempotencyKey
|
|
164
166
|
}}};
|
|
165
167
|
}
|
|
166
|
-
|
|
167
168
|
async function sendReviewEvent(result){
|
|
168
169
|
if(!activeReview.eventTemplate)throw new Error('Review event template unavailable');
|
|
169
170
|
const event=eventEnvelope(activeReview.eventTemplate,result);
|
|
@@ -202,7 +203,7 @@ async function trackOperation(data){
|
|
|
202
203
|
if(generation!==operationGeneration)return;
|
|
203
204
|
if(progress.state==='ready'&&progress.result){
|
|
204
205
|
await renderRevision({...progress.result,requestedPath:data.requestedPath||data.path,
|
|
205
|
-
requestId:progress.result.requestId||data.requestId,review:progress.result.review||data.review
|
|
206
|
+
requestId:progress.result.requestId||data.requestId,review:progress.result.review||data.review});
|
|
206
207
|
return;
|
|
207
208
|
}
|
|
208
209
|
if(progress.state==='failed'){reviewReadonly(true,'Compilation failed: '+progress.error);return;}
|
|
@@ -251,7 +252,6 @@ async function renderRevision(data){
|
|
|
251
252
|
activeReview=data.review||{delivery:'text'};
|
|
252
253
|
updateDeliveryMode();
|
|
253
254
|
activePath=data.requestedPath||data.path||expectedPath||null;
|
|
254
|
-
activeRelay=data.relay||null;
|
|
255
255
|
if(submittedRevision!==data.revisionId){busy=false;submittedRevision=null;submission=null;}
|
|
256
256
|
reviewReadonly(true,'Loading static compiled scenes…');
|
|
257
257
|
try{
|
|
@@ -330,7 +330,6 @@ async function submit(decision){
|
|
|
330
330
|
if(!submission || submission.signature!==signature)submission={signature,key:crypto.randomUUID()};
|
|
331
331
|
result.idempotencyKey=submission.key;
|
|
332
332
|
if(activePath)result.path=activePath;
|
|
333
|
-
if(activeRelay)result.relay=activeRelay;
|
|
334
333
|
if(decision==='changes_requested'){
|
|
335
334
|
result.feedback=preparedComments.length===1?preparedComments[0].text:preparedComments.map((item,index)=>String(index+1)+'. ['+sceneKey(item.playbackContext)+' @ '+(item.playbackContext.timeSeconds??0)+'s] '+item.text).join('\\n');
|
|
336
335
|
if(window.__markcutPlaybackContext)result.playbackContext=window.__markcutPlaybackContext;
|
|
@@ -27,7 +27,7 @@ export function writeOperation(id,data){
|
|
|
27
27
|
writeFileSync(temp,JSON.stringify(data),{mode:0o644});
|
|
28
28
|
renameSync(temp,join(folder,id+".json"));
|
|
29
29
|
}
|
|
30
|
-
export function startCompileOperation(path,
|
|
30
|
+
export function startCompileOperation(path,review={delivery:"text"}){
|
|
31
31
|
const valid=validateMarkdownPath(resolvePreviewPath(path));
|
|
32
32
|
if(!statSync(valid).isFile())throw new Error("Preview source must be a Markdown file");
|
|
33
33
|
const input=fingerprintInputs(valid);
|
|
@@ -36,7 +36,7 @@ export function startCompileOperation(path,relay,review={delivery:"text"}){
|
|
|
36
36
|
const id=randomUUID(),startedAt=Date.now();
|
|
37
37
|
writeOperation(id,{id,state:"compiling",stage:"queued",startedAt,requestedPath:path});
|
|
38
38
|
const worker=fileURLToPath(new URL("./compile-worker.mjs",import.meta.url));
|
|
39
|
-
const child=spawn(process.execPath,[worker,id,valid,path,
|
|
39
|
+
const child=spawn(process.execPath,[worker,id,valid,path,sourceHash,JSON.stringify(review)],{detached:true,stdio:"ignore"});
|
|
40
40
|
child.on("error",e=>{
|
|
41
41
|
writeOperation(id,{id,state:"failed",stage:"failed",startedAt,requestedPath:path,error:e.message});
|
|
42
42
|
});
|
|
@@ -3,7 +3,7 @@ import {ensureVideoPreview} from "./preview.mjs";
|
|
|
3
3
|
import {publishPreviewRevision} from "./remote-assets.mjs";
|
|
4
4
|
import {writeOperation} from "./compile-operation.mjs";
|
|
5
5
|
import {fingerprintInputs} from "./source-fingerprint.mjs";
|
|
6
|
-
const [id,path,requestedPath,
|
|
6
|
+
const [id,path,requestedPath,sourceHash,reviewText]=process.argv.slice(2);
|
|
7
7
|
const startedAt=Date.now();
|
|
8
8
|
const review=JSON.parse(reviewText||'{"delivery":"text"}');
|
|
9
9
|
function update(stage){writeOperation(id,{id,state:"compiling",stage,startedAt,updatedAt:Date.now(),requestedPath});}
|
|
@@ -17,9 +17,9 @@ try{
|
|
|
17
17
|
publishPreviewRevision(requestedPath,{...result,requestedPath});
|
|
18
18
|
// Markcut is a pure preview provider. The Neo MCP wrapper owns mobile delivery.
|
|
19
19
|
writeOperation(id,{id,state:"ready",stage:"complete",startedAt,updatedAt:Date.now(),requestedPath,
|
|
20
|
-
result:{...result,requestedPath,requestId:id,review
|
|
20
|
+
result:{...result,requestedPath,requestId:id,review}});
|
|
21
21
|
|
|
22
22
|
}catch(e){
|
|
23
|
-
writeOperation(id,{id,state:"failed",stage:"failed",startedAt,updatedAt:Date.now(),requestedPath,review,
|
|
23
|
+
writeOperation(id,{id,state:"failed",stage:"failed",startedAt,updatedAt:Date.now(),requestedPath,review,error:e?.message||String(e)});
|
|
24
24
|
process.exitCode=1;
|
|
25
25
|
}
|
|
@@ -55,10 +55,8 @@ export function buildReviewRequest(options,config,state,operationId){
|
|
|
55
55
|
const request={id:operationId,previewId:data.id,title:basename(options.file,'.md'),delivery:config.delivery};
|
|
56
56
|
if(config.delivery==='event'){
|
|
57
57
|
request.mediaHash=data.contentHash; // Transport-only lookup for the compiled player, never the review identity.
|
|
58
|
-
const fixed=config.eventTemplate.data.interactive;
|
|
59
58
|
request.eventTemplate=config.eventTemplate;
|
|
60
|
-
request.
|
|
61
|
-
request.groupId=`job/${fixed.jobId}/task/${fixed.taskId}`;
|
|
59
|
+
request.groupId=options.file;
|
|
62
60
|
}else {request.contentHash=data.contentHash;request.revisionId=data.revisionId;request.groupId=options.file;}
|
|
63
61
|
return request;
|
|
64
62
|
}
|
|
@@ -84,7 +82,7 @@ export async function runMobilePreview(argv){
|
|
|
84
82
|
const [{startCompileOperation},{EXPORT_ROOT}]=await Promise.all([
|
|
85
83
|
import('./compile-operation.mjs'),import('./remote-assets.mjs'),
|
|
86
84
|
]);
|
|
87
|
-
const operation=startCompileOperation(opts.file,
|
|
85
|
+
const operation=startCompileOperation(opts.file,config);
|
|
88
86
|
const stateFile=join(EXPORT_ROOT,'operations',operation.operationId+'.json');
|
|
89
87
|
let state;
|
|
90
88
|
const until=Date.now()+opts.timeoutMs;
|
|
@@ -99,7 +97,6 @@ export async function runMobilePreview(argv){
|
|
|
99
97
|
const receipt=await submitNeoReview(request);
|
|
100
98
|
return {status:'review_requested',operationId:operation.operationId,requestId:request.id,
|
|
101
99
|
...(opts.delivery==='event' ? {} : {contentHash:state.result.contentHash,revisionId:state.result.revisionId}),
|
|
102
|
-
...(config.delivery==='event' ? {jobId:config.eventTemplate.data.interactive.jobId} : {}),
|
|
103
100
|
delivery:config.delivery,notification:receipt.accepted?'apns_submitted':'inbox_stored'};
|
|
104
101
|
}
|
|
105
102
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* ChatGPT MCP iframe on phones: keep scenes, video controls and review actions
|
|
2
|
+
* in separate normal-flow rows. Never position the footer over the player. */
|
|
3
|
+
@media (max-width: 640px), (max-height: 520px) {
|
|
4
|
+
html, body { min-width: 0; width: 100%; overflow-x: hidden; }
|
|
5
|
+
main { box-sizing: border-box; width: 100%; padding: 8px 10px 12px; }
|
|
6
|
+
main > header { flex-wrap: wrap; gap: 4px 8px; min-width: 0; padding-bottom: 4px; }
|
|
7
|
+
main > header h1 { flex: 1 1 145px; min-width: 0; margin: 4px 0; font-size: 15px; line-height: 21px;
|
|
8
|
+
overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
9
|
+
main > header > div { flex: 0 1 auto; margin-left: 0 !important; gap: 7px !important;
|
|
10
|
+
flex-wrap: wrap; justify-content: flex-end; }
|
|
11
|
+
#review-delivery-mode, #player-version { font-size: 11px !important; }
|
|
12
|
+
#remotion-preview { display: flex; flex-direction: column; min-width: 0; }
|
|
13
|
+
/* A vertical 9:16 movie must scale BOTH dimensions together. The original
|
|
14
|
+
width:100% / max-height:65vh combination filled the screen and clipped
|
|
15
|
+
Remotion's bottom transport and the scene selector in mobile chat. */
|
|
16
|
+
#remotion-canvas {
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
width: min(100%, calc(min(58dvh, 440px) * var(--markcut-player-ratio, 0.5625))) !important;
|
|
19
|
+
max-height: min(58dvh, 440px) !important;
|
|
20
|
+
flex: 0 0 auto;
|
|
21
|
+
overflow: visible;
|
|
22
|
+
}
|
|
23
|
+
#scene-thumbnails { order: -1; min-width: 0; max-width: 100%; gap: 6px;
|
|
24
|
+
padding: 4px 0 9px; margin: 0; scroll-snap-type: x proximity; }
|
|
25
|
+
.scene-pill { flex-shrink: 0; max-width: 145px; box-sizing: border-box;
|
|
26
|
+
overflow: hidden; text-overflow: ellipsis; scroll-snap-align: start;
|
|
27
|
+
min-height: 36px; padding: 9px 10px; }
|
|
28
|
+
#comment-entry { margin: 9px 0 6px; }
|
|
29
|
+
#feedback { box-sizing: border-box; height: 76px !important; min-height: 76px !important;
|
|
30
|
+
max-height: 112px !important; font-size: 14px; line-height: 19px; }
|
|
31
|
+
.review-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
|
|
32
|
+
grid-template-areas: 'changes approve' 'status status'; gap: 7px 8px; align-items: center; }
|
|
33
|
+
#approve:disabled, #changes:disabled { opacity: .55; cursor: default; }
|
|
34
|
+
#changes { grid-area: changes; }
|
|
35
|
+
#approve { grid-area: approve; }
|
|
36
|
+
.review-actions button { box-sizing: border-box; min-width: 0; width: 100%; min-height: 42px; font-size: 13px; }
|
|
37
|
+
#status { grid-area: status; width: 100%; min-width: 0; text-align: center;
|
|
38
|
+
font-size: 12px; line-height: 16px; }
|
|
39
|
+
}
|
|
40
|
+
@media (max-width: 360px) {
|
|
41
|
+
main { padding-inline: 7px; }
|
|
42
|
+
main > header h1 { flex-basis: 130px; font-size: 14px; }
|
|
43
|
+
.scene-pill { max-width: 125px; }
|
|
44
|
+
}
|
package/src/mcp/preview.mjs
CHANGED
|
@@ -9,10 +9,11 @@ import { externalizePreviewMedia, publicOrigin, resolveMountedFile, resolvePrevi
|
|
|
9
9
|
import {fingerprintInputs} from "./source-fingerprint.mjs";
|
|
10
10
|
|
|
11
11
|
export const TOOL_NAME = "markcut.preview";
|
|
12
|
-
export const RESOURCE_URI = "ui://markcut/video-preview-
|
|
12
|
+
export const RESOURCE_URI = "ui://markcut/video-preview-v47.html";
|
|
13
13
|
const PREVIEW_VERSION = RESOURCE_URI.match(/video-preview-(v\d+)/)?.[1] ?? "unknown";
|
|
14
14
|
// Legacy entrypoints remain registered, but serve the current implementation.
|
|
15
15
|
export const LEGACY_RESOURCE_URIS = [
|
|
16
|
+
"ui://markcut/video-preview-v46.html",
|
|
16
17
|
"ui://markcut/video-preview-v45.html",
|
|
17
18
|
"ui://markcut/video-preview-v44.html",
|
|
18
19
|
"ui://markcut/video-preview-v3.html",
|
|
@@ -281,10 +282,11 @@ export function buildPreviewHtml() {
|
|
|
281
282
|
// from terminating the embedding script tag or leaking source into the DOM.
|
|
282
283
|
return `<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
|
283
284
|
<title>Markcut</title>
|
|
284
|
-
<style>body{font:14px system-ui;margin:0;background:#fff;color:#17202a}main{padding:12px;max-width:960px;margin:auto}h1{font-size:17px}.path{font-size:12px;overflow-wrap:anywhere}.transport{display:flex;align-items:center;gap:10px;padding:12px 0}.transport input{flex:1;min-width:50px}button{cursor:pointer;padding:8px;border-radius:6px;border:1px solid #a8a8a8}#approve{background:#198038;color:white}#changes{background:#c72b29;color:white}#comment-entry{display:flex;align-items:center;gap:6px;margin:5px 0}#feedback{flex:1;min-width:0;box-sizing:border-box;height:34px;padding:6px 9px;border:1px solid #b5bdc8;border-radius:6px}#comment-mode{max-width:102px;height:34px;border:1px solid #b5bdc8;border-radius:6px;background:white}#save-spot,#remove-spot{width:34px;height:34px;padding:0;font-size:19px}#comment-entry button:disabled{opacity:.4;cursor:default}.review-actions{display:flex;justify-content:space-between;align-items:center;width:100%;gap:16px}.review-actions button{min-width:110px}#remotion-canvas{background:#090b12}#status{flex:1;min-width:0;font-size:12px;color:#526071;text-align:center;overflow-wrap:anywhere}#status:empty{display:none}#scene-thumbnails{display:flex;gap:7px;overflow-x:auto;padding:12px 2px;scrollbar-width:thin} .scene-pill{flex-shrink:0;padding:7px 11px;border:1px solid #d4dbe4;border-radius:9px;cursor:pointer;background:#f5f7fa;color:#475569;font-size:12px;white-space:nowrap} .scene-pill.active{background:#e7f0ff;color:#125ea2;border-color:#408bd7} .scene-pill.commented{border-color:#cc8b12;background:#fff4d6;color:#764900;font-weight:650} .scene-pill.commented::after{content:' •';color:#ad5b00} #comment-list{display:grid;gap:4px;margin:8px 0} #comment-list>div{display:flex;gap:8px} #comment-list button:first-child{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis} #comment-target{font-size:12px;color:#526071;margin:8px 0}</style
|
|
285
|
+
<style>body{font:14px system-ui;margin:0;background:#fff;color:#17202a}main{padding:12px;max-width:960px;margin:auto}h1{font-size:17px}.path{font-size:12px;overflow-wrap:anywhere}.transport{display:flex;align-items:center;gap:10px;padding:12px 0}.transport input{flex:1;min-width:50px}button{cursor:pointer;padding:8px;border-radius:6px;border:1px solid #a8a8a8}#approve{background:#198038;color:white}#changes{background:#c72b29;color:white}#comment-entry{display:flex;align-items:center;gap:6px;margin:5px 0}#feedback{flex:1;min-width:0;box-sizing:border-box;height:34px;padding:6px 9px;border:1px solid #b5bdc8;border-radius:6px}#comment-mode{max-width:102px;height:34px;border:1px solid #b5bdc8;border-radius:6px;background:white}#save-spot,#remove-spot{width:34px;height:34px;padding:0;font-size:19px}#comment-entry button:disabled{opacity:.4;cursor:default}.review-actions{display:flex;justify-content:space-between;align-items:center;width:100%;gap:16px}.review-actions button{min-width:110px}#remotion-canvas{background:#090b12}#status{flex:1;min-width:0;font-size:12px;color:#526071;text-align:center;overflow-wrap:anywhere}#status:empty{display:none}#scene-thumbnails{display:flex;gap:7px;overflow-x:auto;padding:12px 2px;scrollbar-width:thin} .scene-pill{flex-shrink:0;padding:7px 11px;border:1px solid #d4dbe4;border-radius:9px;cursor:pointer;background:#f5f7fa;color:#475569;font-size:12px;white-space:nowrap} .scene-pill.active{background:#e7f0ff;color:#125ea2;border-color:#408bd7} .scene-pill.commented{border-color:#cc8b12;background:#fff4d6;color:#764900;font-weight:650} .scene-pill.commented::after{content:' •';color:#ad5b00} #comment-list{display:grid;gap:4px;margin:8px 0} #comment-list>div{display:flex;gap:8px} #comment-list button:first-child{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis} #comment-target{font-size:12px;color:#526071;margin:8px 0}</style>
|
|
285
286
|
<style>.comment-marker{position:absolute;top:50%;transform:translate(-50%,-50%);width:20px;height:20px;min-width:20px;padding:0;border:0;border-radius:50%;background:transparent;z-index:10;cursor:pointer;touch-action:none}.comment-marker::after{content:'';display:block;width:14px;height:14px;border-radius:50%;margin:auto;background:#f59e0b;border:2px solid white;box-sizing:border-box}.comment-marker.scope-scene::after{background:#3b82f6}.comment-marker.scope-overall{left:-28px!important}.comment-marker.scope-overall::after{background:#8b5cf6}.comment-marker.scope-overall.placeholder::after{background:transparent;border-color:#8b5cf6}.comment-marker.selected::after,.comment-marker:focus-visible::after{outline:2px solid #2563eb;outline-offset:2px}.comment-marker:hover::after{transform:scale(1.2)}</style>
|
|
286
287
|
<style>#comment-entry{position:relative;display:block}#feedback{display:block;width:100%;height:auto;min-height:76px;max-height:240px;field-sizing:content;resize:none;padding:9px 112px 32px 9px;font:inherit}#comment-tools{position:absolute;bottom:6px;right:8px;display:flex;align-items:center;gap:2px;background:white}#comment-tools>*{width:30px;height:28px;padding:0;border:0;background:transparent;color:#526071;font:inherit;text-align:center}#comment-tools button{font-size:20px}#comment-tools>*:focus-visible{outline:2px solid #408bd7;outline-offset:-2px}#comment-mode{width:70px;max-width:none;font-size:12px;font-weight:650;text-align:center;text-align-last:center;line-height:28px}#comment-mode:has(option[value=spot]:checked){color:#b45309}#comment-mode:has(option[value=scene]:checked){color:#2563eb}#overall-mode{width:70px;height:28px;line-height:28px;text-align:center;font-size:12px;font-weight:650;color:#7c3aed}</style>
|
|
287
|
-
<
|
|
288
|
+
<style>${readFileSync(resolve(moduleDir,'preview-mobile.css'),'utf8')}</style>
|
|
289
|
+
</head><body><main><header style="display:flex;justify-content:space-between;align-items:center"><h1>Markcut · <span id="video-md-version">video</span></h1><div style="display:flex;align-items:center;gap:14px;margin-left:auto"><span id="header-tts"></span><span id="review-delivery-mode" aria-label="Review delivery mode" style="font-size:12px;color:#526071;white-space:nowrap">Text mode</span><span id="player-version" style="font-size:12px;color:#667">${PREVIEW_VERSION}</span></div></header><div class="path" id="path-label" hidden></div><div id="interactive-ui" hidden><div id="remotion-root"></div>
|
|
288
290
|
<div id="comment-entry"><textarea id="feedback" rows="3" aria-label="Feedback" placeholder="Add a comment…"></textarea><div id="comment-tools"><select id="comment-mode" aria-label="Comment scope" title="Comment scope"><option value="spot" style="color:#b45309">Spot</option><option value="scene" style="color:#2563eb">Scene</option></select><span id="overall-mode" hidden>Overall</span><button id="save-spot" type="button" title="Add or update comment" aria-label="Add or update comment">+</button><button id="remove-spot" type="button" title="Remove selected comment" aria-label="Remove selected comment" disabled>−</button></div></div>
|
|
289
291
|
<div class="review-actions"><button id="changes">Submit feedback</button><span id="status" role="status">Starting preview…</span><button id="approve">Approve</button></div></div></main>
|
|
290
292
|
<script src="${playerScriptUrl}"></script>
|