ontrackd 0.13.0 → 0.15.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.
Files changed (99) hide show
  1. package/README.md +24 -12
  2. package/dist/cli/pull.js +5 -0
  3. package/dist/cli/pull.js.map +1 -1
  4. package/dist/core/attachmentTypes.d.ts +4 -1
  5. package/dist/core/attachmentTypes.js +25 -4
  6. package/dist/core/attachmentTypes.js.map +1 -1
  7. package/dist/core/exportTaskDoc.js +43 -1
  8. package/dist/core/exportTaskDoc.js.map +1 -1
  9. package/dist/core/feedbackTypes.d.ts +41 -1
  10. package/dist/core/journey.d.ts +31 -0
  11. package/dist/core/journey.js +93 -0
  12. package/dist/core/journey.js.map +1 -0
  13. package/dist/core/untrusted.js +12 -7
  14. package/dist/core/untrusted.js.map +1 -1
  15. package/dist/integration/middleware.js +11 -0
  16. package/dist/integration/middleware.js.map +1 -1
  17. package/dist/mcp/search.js +3 -2
  18. package/dist/mcp/search.js.map +1 -1
  19. package/dist/mcp/server.js +13 -7
  20. package/dist/mcp/server.js.map +1 -1
  21. package/dist/overlay/anchors.d.ts +1 -0
  22. package/dist/overlay/anchors.js +3 -0
  23. package/dist/overlay/anchors.js.map +1 -1
  24. package/dist/overlay/api.d.ts +27 -2
  25. package/dist/overlay/api.js +47 -9
  26. package/dist/overlay/api.js.map +1 -1
  27. package/dist/overlay/attachments.d.ts +5 -1
  28. package/dist/overlay/attachments.js +16 -3
  29. package/dist/overlay/attachments.js.map +1 -1
  30. package/dist/overlay/camera.d.ts +130 -0
  31. package/dist/overlay/camera.js +388 -0
  32. package/dist/overlay/camera.js.map +1 -0
  33. package/dist/overlay/cameraEffects.d.ts +10 -0
  34. package/dist/overlay/cameraEffects.js +240 -0
  35. package/dist/overlay/cameraEffects.js.map +1 -0
  36. package/dist/overlay/cameraPanel.d.ts +39 -0
  37. package/dist/overlay/cameraPanel.js +275 -0
  38. package/dist/overlay/cameraPanel.js.map +1 -0
  39. package/dist/overlay/cameraPlayback.d.ts +75 -0
  40. package/dist/overlay/cameraPlayback.js +291 -0
  41. package/dist/overlay/cameraPlayback.js.map +1 -0
  42. package/dist/overlay/connectDialog.js +1 -1
  43. package/dist/overlay/connectDialog.js.map +1 -1
  44. package/dist/overlay/directReviewer.d.ts +27 -3
  45. package/dist/overlay/directReviewer.js +59 -19
  46. package/dist/overlay/directReviewer.js.map +1 -1
  47. package/dist/overlay/effects/NOTICE.md +10 -0
  48. package/dist/overlay/effects/selfie_segmenter.tflite +0 -0
  49. package/dist/overlay/effects/vision_wasm_internal.js +9155 -0
  50. package/dist/overlay/effects/vision_wasm_internal.wasm +0 -0
  51. package/dist/overlay/icons.js +8 -1
  52. package/dist/overlay/icons.js.map +1 -1
  53. package/dist/overlay/journeyRecorder.d.ts +30 -0
  54. package/dist/overlay/journeyRecorder.js +238 -0
  55. package/dist/overlay/journeyRecorder.js.map +1 -0
  56. package/dist/overlay/movedAnchors.js +5 -0
  57. package/dist/overlay/movedAnchors.js.map +1 -1
  58. package/dist/overlay/recorder.d.ts +11 -4
  59. package/dist/overlay/recorder.js +186 -46
  60. package/dist/overlay/recorder.js.map +1 -1
  61. package/dist/overlay/recordingEditor.d.ts +12 -0
  62. package/dist/overlay/recordingEditor.js +131 -0
  63. package/dist/overlay/recordingEditor.js.map +1 -0
  64. package/dist/overlay/recordingPlayer.d.ts +24 -0
  65. package/dist/overlay/recordingPlayer.js +379 -0
  66. package/dist/overlay/recordingPlayer.js.map +1 -0
  67. package/dist/overlay/recordingPlayerShell.d.ts +19 -0
  68. package/dist/overlay/recordingPlayerShell.js +51 -0
  69. package/dist/overlay/recordingPlayerShell.js.map +1 -0
  70. package/dist/overlay/rrweb-replay.js +120 -0
  71. package/dist/overlay/runtime.js +1046 -57
  72. package/dist/overlay/runtime.js.map +1 -1
  73. package/dist/overlay/state.js +2 -1
  74. package/dist/overlay/state.js.map +1 -1
  75. package/dist/overlay/storageFull.d.ts +16 -0
  76. package/dist/overlay/storageFull.js +39 -0
  77. package/dist/overlay/storageFull.js.map +1 -0
  78. package/dist/overlay/styles.js +118 -5
  79. package/dist/overlay/styles.js.map +1 -1
  80. package/dist/overlay/tasks-vision.js +3 -0
  81. package/dist/overlay/upload.d.ts +2 -2
  82. package/dist/overlay/upload.js +4 -2
  83. package/dist/overlay/upload.js.map +1 -1
  84. package/dist/remote/client.d.ts +3 -2
  85. package/dist/remote/client.js +3 -3
  86. package/dist/remote/client.js.map +1 -1
  87. package/dist/remote/content-schema.d.ts +291 -43
  88. package/dist/remote/content-schema.js +91 -0
  89. package/dist/remote/content-schema.js.map +1 -1
  90. package/dist/remote/content.js +4 -2
  91. package/dist/remote/content.js.map +1 -1
  92. package/dist/remote/store.js +3 -1
  93. package/dist/remote/store.js.map +1 -1
  94. package/dist/remote/types.d.ts +1 -0
  95. package/dist/sidecar/commentFiles.js +5 -3
  96. package/dist/sidecar/commentFiles.js.map +1 -1
  97. package/dist/storage/localAttachments.js +1 -1
  98. package/dist/storage/localAttachments.js.map +1 -1
  99. package/package.json +9 -2
@@ -0,0 +1,379 @@
1
+ import { CameraPlayback, cameraMoves } from './cameraPlayback.js';
2
+ import { icon } from './icons.js';
3
+ import { MAX_VIEW_HEIGHT, recordingPlayerShellMarkup, recordingPlayerStyle } from './recordingPlayerShell.js';
4
+ let library = null;
5
+ let libraryAttempt = 0;
6
+ const networkAttributes = new Set([
7
+ 'action', 'background', 'cite', 'data', 'formaction', 'href', 'imagesrcset', 'manifest', 'ping',
8
+ 'poster', 'profile', 'rr_dataurl', 'src', 'srcdoc', 'srcset', 'usemap', 'xlink:href',
9
+ ]);
10
+ const cssResourceAttributes = new Set([
11
+ 'clip-path', 'cursor', 'fill', 'filter', 'marker-end', 'marker-mid', 'marker-start', 'mask', 'stroke',
12
+ ]);
13
+ function safeRasterData(value) {
14
+ return typeof value === 'string' && /^data:image\/(?:png|jpe?g|gif|webp|avif|bmp);base64,/i.test(value.trim());
15
+ }
16
+ function safeReplayResource(tag, name, value) {
17
+ return (name === 'src' && tag === 'img' || name === 'rr_dataurl' && (tag === 'img' || tag === 'canvas'))
18
+ && safeRasterData(value);
19
+ }
20
+ function decodeCssEscapes(value) {
21
+ // The hex-escape terminator swallows CRLF as one unit: CSS preprocessing folds CRLF to a single
22
+ // newline before consuming it, so `\70\r\n` is one escape there and must decode as one here too.
23
+ return value.replace(/\\(?:([0-9a-f]{1,6})(?:\r\n|[ \t\r\n\f])?|(\r\n|[\n\r\f])|(.))/gi, (_match, hex, newline, escaped) => {
24
+ if (hex) {
25
+ const point = Number.parseInt(hex, 16);
26
+ return point === 0 || point > 0x10FFFF ? '�' : String.fromCodePoint(point);
27
+ }
28
+ return newline ? '' : escaped ?? '';
29
+ });
30
+ }
31
+ function safeCss(value) {
32
+ const normalized = value.replace(/\/\*[\s\S]*?\*\//g, '');
33
+ const sanitized = normalized
34
+ .replace(/@import\b[^;]*(?:;|$)/gi, '')
35
+ .replace(/url\(\s*[^)]*?\s*\)/gi, 'url("")');
36
+ // Ignore the empty url placeholders inserted above: a sheet may keep both its escaped
37
+ // selectors and its neutralized url() rules instead of being wiped wholesale.
38
+ const decoded = decodeCssEscapes(sanitized).replace(/url\(""\)/g, '');
39
+ return /@import\b|(?:-webkit-)?image-set\s*\(|url\s*\(/i.test(decoded) ? '' : sanitized;
40
+ }
41
+ /** Removes every resource-bearing URL before rrweb can construct a live element from it. */
42
+ function safeReplayEvents(events) {
43
+ const copy = structuredClone(events.filter((event) => !(isRecord(event) && event.type === 3 && isRecord(event.data)
44
+ && [9, 10].includes(Number(event.data.source)))));
45
+ const visit = (value, parentTag = '') => {
46
+ if (Array.isArray(value)) {
47
+ for (const item of value)
48
+ visit(item, parentTag);
49
+ return;
50
+ }
51
+ if (!isRecord(value))
52
+ return;
53
+ const tag = typeof value.tagName === 'string' ? value.tagName.toLowerCase() : parentTag;
54
+ if (value.source === 0 && Array.isArray(value.texts)) {
55
+ for (const mutation of value.texts) {
56
+ if (isRecord(mutation) && typeof mutation.value === 'string')
57
+ mutation.value = safeCss(mutation.value);
58
+ }
59
+ }
60
+ const attributes = isRecord(value.attributes) ? value.attributes : null;
61
+ if (attributes) {
62
+ const refresh = tag === 'meta' && Object.entries(attributes).some(([name, item]) => name.toLowerCase() === 'http-equiv' && String(item).toLowerCase() === 'refresh');
63
+ for (const [name, item] of Object.entries(attributes)) {
64
+ const lower = name.toLowerCase();
65
+ if (['by', 'from', 'to', 'values'].includes(lower))
66
+ delete attributes[name];
67
+ else if (lower === 'style' || lower === '_csstext') {
68
+ if (typeof item === 'string')
69
+ attributes[name] = safeCss(item);
70
+ }
71
+ else if (cssResourceAttributes.has(lower) && typeof item === 'string') {
72
+ const sanitized = safeCss(item);
73
+ if (sanitized !== item)
74
+ delete attributes[name];
75
+ }
76
+ else if (networkAttributes.has(lower) && !safeReplayResource(tag, lower, item))
77
+ delete attributes[name];
78
+ else if (refresh && lower === 'content')
79
+ delete attributes[name];
80
+ }
81
+ }
82
+ if (typeof value.property === 'string' && typeof value.value === 'string') {
83
+ value.value = safeCss(value.value);
84
+ }
85
+ for (const [name, item] of Object.entries(value)) {
86
+ if (typeof item === 'string' && (name === 'rule' || name === 'cssText' || name === 'replace' || name === 'replaceSync'
87
+ || (tag === 'style' && name === 'textContent'))) {
88
+ value[name] = safeCss(item);
89
+ }
90
+ else
91
+ visit(item, tag);
92
+ }
93
+ };
94
+ visit(copy);
95
+ return copy;
96
+ }
97
+ function loadLibrary() {
98
+ const base = typeof __FEEDBACK_REPLAY_MODULE__ === 'string' ? __FEEDBACK_REPLAY_MODULE__ : './rrweb-replay.js';
99
+ const parentAttempt = new URL(import.meta.url).searchParams.get('retry') ?? '0';
100
+ const attempt = `${parentAttempt}-${++libraryAttempt}`;
101
+ const path = `${base}${base.includes('?') ? '&' : '?'}retry=${encodeURIComponent(attempt)}`;
102
+ library ??= import(/* @vite-ignore */ path).catch((error) => {
103
+ library = null;
104
+ throw error;
105
+ });
106
+ return library;
107
+ }
108
+ /** A small set of controls around rrweb's DOM replayer. */
109
+ export class RecordingPlayer {
110
+ host;
111
+ cameraSource;
112
+ ready;
113
+ replay = null;
114
+ frame = 0;
115
+ scrubber = null;
116
+ detached = null;
117
+ fitObserver = null;
118
+ fitListener = null;
119
+ destroyed = false;
120
+ abort = new AbortController();
121
+ camera = null;
122
+ /**
123
+ * `aspect` is the recorded viewport's size, when known, so the loading frame has the final shape.
124
+ * `camera` is the recording's camera or voice file, played in step with the replay.
125
+ */
126
+ constructor(host, file, signal, aspect, cameraSource = null) {
127
+ this.host = host;
128
+ this.cameraSource = cameraSource;
129
+ // The frame is drawn at once, at its final size, so nothing around it moves when the replay arrives.
130
+ host.innerHTML = `<style>${recordingPlayerStyle}</style>${recordingPlayerShellMarkup(aspect, cameraSource ? (cameraSource.voice ? 'voice' : 'camera') : null)}`;
131
+ // A file that fails later must not leave an unhandled rejection behind.
132
+ cameraSource?.file.catch(() => undefined);
133
+ if (signal?.aborted)
134
+ this.abort.abort(signal.reason);
135
+ else
136
+ signal?.addEventListener('abort', () => this.abort.abort(signal.reason), { once: true });
137
+ this.ready = this.mount(file).catch((error) => {
138
+ this.destroy();
139
+ throw error;
140
+ });
141
+ }
142
+ destroy() {
143
+ if (this.destroyed)
144
+ return;
145
+ this.destroyed = true;
146
+ this.abort.abort(new DOMException('Recording player destroyed', 'AbortError'));
147
+ this.detached?.disconnect();
148
+ this.detached = null;
149
+ this.fitObserver?.disconnect();
150
+ this.fitObserver = null;
151
+ if (this.fitListener)
152
+ this.host.ownerDocument?.defaultView?.removeEventListener('resize', this.fitListener);
153
+ this.fitListener = null;
154
+ cancelAnimationFrame(this.frame);
155
+ this.frame = 0;
156
+ this.camera?.destroy();
157
+ this.camera = null;
158
+ this.replay?.destroy();
159
+ this.replay = null;
160
+ this.scrubber = null;
161
+ this.host.replaceChildren();
162
+ }
163
+ async mount(file) {
164
+ const [{ Replayer }, recording] = await Promise.all([loadLibrary(), readRecording(file, this.abort.signal)]);
165
+ if (this.destroyed || !this.host.isConnected)
166
+ return;
167
+ const shell = this.host.querySelector('.fb-recording-player');
168
+ const view = shell?.querySelector('[data-recording-player-view]');
169
+ const toggle = shell?.querySelector('[data-recording-player-action]');
170
+ const scrubber = shell?.querySelector('input[type="range"]');
171
+ if (!shell || !view || !toggle || !scrubber)
172
+ throw new Error('The recording player frame is missing');
173
+ scrubber.max = String(recording.durationMs);
174
+ this.scrubber = scrubber;
175
+ const replay = new Replayer(safeReplayEvents(recording.events), {
176
+ root: view,
177
+ mouseTail: false,
178
+ skipInactive: false,
179
+ showWarning: false,
180
+ triggerFocus: false,
181
+ insertStyleRules: [
182
+ '[data-feedback-overlay] { display: none !important; }',
183
+ '.fb-overlay-blocked { display: none !important; }',
184
+ ],
185
+ });
186
+ if (this.destroyed || !this.host.isConnected) {
187
+ replay.destroy();
188
+ return;
189
+ }
190
+ this.replay = replay;
191
+ const cameraControls = shell.querySelector('[data-camera-controls]');
192
+ if (this.cameraSource && cameraControls) {
193
+ this.camera = new CameraPlayback(view, cameraControls, this.cameraSource, cameraMoves(recording.events));
194
+ this.camera.attach(replay);
195
+ }
196
+ const snapshotReady = eventWithin(replay, 'fullsnapshot-rebuilded', 5_000, this.abort.signal);
197
+ const stopClock = () => {
198
+ setControl(toggle, 'play');
199
+ cancelAnimationFrame(this.frame);
200
+ this.frame = 0;
201
+ if (this.replay)
202
+ scrubber.value = String(Math.min(recording.durationMs, Math.max(0, replay.getCurrentTime())));
203
+ };
204
+ const update = () => {
205
+ if (!this.replay)
206
+ return;
207
+ scrubber.value = String(Math.min(recording.durationMs, Math.max(0, replay.getCurrentTime())));
208
+ this.frame = requestAnimationFrame(update);
209
+ };
210
+ const startClock = () => {
211
+ setControl(toggle, 'pause');
212
+ if (!this.frame && this.replay)
213
+ this.frame = requestAnimationFrame(update);
214
+ };
215
+ toggle.addEventListener('click', () => {
216
+ if (toggle.dataset.recordingPlayerAction === 'pause') {
217
+ setControl(toggle, 'play');
218
+ replay.pause();
219
+ stopClock();
220
+ return;
221
+ }
222
+ if (Number(scrubber.value) >= recording.durationMs)
223
+ scrubber.value = '0';
224
+ setControl(toggle, 'pause');
225
+ replay.play(Number(scrubber.value));
226
+ startClock();
227
+ });
228
+ scrubber.addEventListener('input', () => { replay.pause(Number(scrubber.value)); stopClock(); });
229
+ replay.on('start', startClock);
230
+ replay.on('resume', startClock);
231
+ replay.on('pause', stopClock);
232
+ replay.on('finish', () => { stopClock(); scrubber.value = scrubber.max; });
233
+ this.detached = new MutationObserver(() => { if (!this.host.isConnected)
234
+ this.destroy(); });
235
+ this.detached.observe(document.documentElement, { childList: true, subtree: true });
236
+ // The first full snapshot and its injected privacy rule define when the player is ready to show.
237
+ await snapshotReady;
238
+ // A bounded, video-like frame: the captured viewport is scaled to the width it is given and the
239
+ // view is never taller than MAX_VIEW_HEIGHT, so the dialog never grows a scrollbar for it.
240
+ fitReplay(view);
241
+ view.querySelector('[data-recording-player-spinner]')?.remove();
242
+ delete shell.dataset.loading;
243
+ toggle.disabled = false;
244
+ scrubber.disabled = false;
245
+ const fit = () => fitReplay(view);
246
+ if (typeof ResizeObserver === 'function') {
247
+ this.fitObserver = new ResizeObserver(fit);
248
+ this.fitObserver.observe(view);
249
+ }
250
+ view.ownerDocument.defaultView?.addEventListener('resize', fit, { passive: true });
251
+ this.fitListener = fit;
252
+ }
253
+ }
254
+ /**
255
+ * Scales rrweb's wrapper so the captured viewport fits the view's width like a video player:
256
+ * full width up to a height cap, letterboxing (never cropping or scrolling) beyond it.
257
+ */
258
+ function fitReplay(view) {
259
+ const wrapper = view.querySelector('.replayer-wrapper');
260
+ const frame = wrapper?.querySelector('iframe');
261
+ if (!wrapper || !frame)
262
+ return;
263
+ const captured = { width: Number(frame.getAttribute('width')) || frame.offsetWidth, height: Number(frame.getAttribute('height')) || frame.offsetHeight };
264
+ if (!captured.width || !captured.height)
265
+ return;
266
+ const available = view.clientWidth;
267
+ if (!available)
268
+ return;
269
+ const scale = Math.min(available / captured.width, MAX_VIEW_HEIGHT / captured.height);
270
+ // The wrapper is scaled visually; take it out of flow so its unscaled layout box cannot
271
+ // make the view scroll or stretch. The view keeps the visible box as its own height, and the
272
+ // wrapper is centered so a height-capped, wider-than-the-view replay letterboxes symmetrically.
273
+ wrapper.style.transform = `translateX(-50%) scale(${scale})`;
274
+ wrapper.style.transformOrigin = 'top center';
275
+ wrapper.style.position = 'absolute';
276
+ wrapper.style.top = '0';
277
+ wrapper.style.left = '50%';
278
+ view.style.position = 'relative';
279
+ view.style.height = `${Math.round(captured.height * scale)}px`;
280
+ view.style.minHeight = '';
281
+ }
282
+ function setControl(button, action) {
283
+ const label = action === 'play' ? 'Play' : 'Pause';
284
+ button.dataset.recordingPlayerAction = action;
285
+ button.setAttribute('aria-label', label);
286
+ button.title = label;
287
+ button.innerHTML = icon(action, 15);
288
+ }
289
+ function eventWithin(replay, name, timeoutMs, signal) {
290
+ return new Promise((resolve, reject) => {
291
+ const finish = (error) => {
292
+ window.clearTimeout(timeout);
293
+ signal.removeEventListener('abort', onAbort);
294
+ error ? reject(error) : resolve();
295
+ };
296
+ const onAbort = () => finish(signal.reason ?? new DOMException('Aborted', 'AbortError'));
297
+ const timeout = window.setTimeout(() => finish(new Error('The recording could not be played')), timeoutMs);
298
+ if (signal.aborted) {
299
+ onAbort();
300
+ return;
301
+ }
302
+ signal.addEventListener('abort', onAbort, { once: true });
303
+ replay.on(name, () => finish());
304
+ });
305
+ }
306
+ const isRecord = (value) => typeof value === 'object' && value !== null && !Array.isArray(value);
307
+ const MAX_EVENTS = 100_000;
308
+ const MAX_DEPTH = 64;
309
+ const MAX_VALUES = 500_000;
310
+ const MAX_INFLATED_BYTES = 20 * 1024 * 1024;
311
+ function validEvents(events) {
312
+ if (events.length < 2 || events.length > MAX_EVENTS)
313
+ return false;
314
+ if (!events.some((event) => isRecord(event) && event.type === 2))
315
+ return false;
316
+ let values = 0;
317
+ const stack = events.map((value) => ({ value, depth: 1 }));
318
+ while (stack.length) {
319
+ const { value, depth } = stack.pop();
320
+ if (++values > MAX_VALUES || depth > MAX_DEPTH)
321
+ return false;
322
+ if (Array.isArray(value)) {
323
+ if (values + value.length > MAX_VALUES)
324
+ return false;
325
+ for (const item of value)
326
+ stack.push({ value: item, depth: depth + 1 });
327
+ continue;
328
+ }
329
+ if (!isRecord(value))
330
+ continue;
331
+ const items = Object.values(value);
332
+ if (values + items.length > MAX_VALUES)
333
+ return false;
334
+ for (const item of items)
335
+ stack.push({ value: item, depth: depth + 1 });
336
+ }
337
+ return events.every((event) => isRecord(event) && Number.isFinite(event.type) && Number.isFinite(event.timestamp));
338
+ }
339
+ async function streamText(stream, signal) {
340
+ const reader = stream.getReader();
341
+ const decoder = new TextDecoder();
342
+ let text = '';
343
+ let bytes = 0;
344
+ const onAbort = () => { void reader.cancel(signal.reason); };
345
+ signal.addEventListener('abort', onAbort, { once: true });
346
+ try {
347
+ while (true) {
348
+ if (signal.aborted)
349
+ throw signal.reason ?? new DOMException('Aborted', 'AbortError');
350
+ const { done, value } = await reader.read();
351
+ if (done)
352
+ return text + decoder.decode();
353
+ bytes += value.byteLength;
354
+ if (bytes > MAX_INFLATED_BYTES) {
355
+ await reader.cancel(new Error('Recording is too large'));
356
+ throw new Error('Recording is too large');
357
+ }
358
+ text += decoder.decode(value, { stream: true });
359
+ }
360
+ }
361
+ finally {
362
+ signal.removeEventListener('abort', onAbort);
363
+ reader.releaseLock();
364
+ }
365
+ }
366
+ async function readRecording(file, signal) {
367
+ try {
368
+ const inflated = file.stream().pipeThrough(new DecompressionStream('gzip'));
369
+ const body = JSON.parse(await streamText(inflated, signal));
370
+ if (body.version !== 1 || !Number.isFinite(body.durationMs) || Number(body.durationMs) < 0 || !Array.isArray(body.events)
371
+ || !validEvents(body.events))
372
+ throw new Error();
373
+ return { durationMs: Math.round(Number(body.durationMs)), events: body.events };
374
+ }
375
+ catch {
376
+ throw new Error('The recording could not be played');
377
+ }
378
+ }
379
+ //# sourceMappingURL=recordingPlayer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recordingPl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U,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;eACpH,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC;YAAE,MAAM,IAAI,KAAK,EAAE,CAAC;QAClD,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;IAClF,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;IACvD,CAAC;AACH,CAAC"}
@@ -0,0 +1,19 @@
1
+ /** The replay is bounded like a video player: fitted to the width it is given, never taller than this. */
2
+ export declare const MAX_VIEW_HEIGHT = 420;
3
+ /**
4
+ * The player's frame, shared by the overlay (which draws it before the player module has loaded)
5
+ * and the player itself, so the loading frame and the ready one are the same box.
6
+ */
7
+ export declare const recordingPlayerStyle = "\n .fb-recording-player { display:grid; gap:10px; min-width:0; }\n .fb-recording-player__view { position:relative; width:100%; box-sizing:border-box; overflow:hidden; border-radius:10px; background:#fff; min-height:220px; max-height:420px; }\n .fb-recording-player__view[data-aspect] { min-height:0; }\n .fb-recording-player__view .replayer-wrapper { position:relative; transform-origin:top left; }\n .fb-recording-player__view iframe { border:0; display:block; }\n .fb-recording-player[data-loading] .fb-recording-player__view { background:rgba(127,127,127,.14); }\n .fb-recording-player[data-loading] .replayer-wrapper { visibility:hidden; }\n .fb-recording-player__spinner { position:absolute; top:50%; left:50%; width:28px; height:28px; margin:-14px 0 0 -14px; box-sizing:border-box; border:3px solid rgba(127,127,127,.3); border-top-color:rgba(127,127,127,.9); border-radius:50%; animation:fb-recording-spin .8s linear infinite; }\n @keyframes fb-recording-spin { to { transform:rotate(360deg); } }\n @media (prefers-reduced-motion: reduce) { .fb-recording-player__spinner { animation-duration:2.4s; } }\n .fb-recording-player__controls { display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:10px; }\n .fb-recording-player__controls button { display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:999px; background:rgba(127,127,127,.18); color:inherit; cursor:pointer; }\n .fb-recording-player__controls button:disabled, .fb-recording-player__controls input:disabled { opacity:.45; cursor:default; }\n .fb-recording-player__controls button:focus-visible { outline:2px solid currentColor; outline-offset:2px; }\n .fb-recording-player__controls input { -webkit-appearance:none; appearance:none; display:block; box-sizing:border-box; width:100%; min-width:0; height:16px; margin:0; padding:0; background:transparent; cursor:pointer; }\n .fb-recording-player__controls input::-webkit-slider-runnable-track { height:4px; border-radius:999px; background:rgba(127,127,127,.35); }\n .fb-recording-player__controls input::-moz-range-track { height:4px; border-radius:999px; background:rgba(127,127,127,.35); }\n .fb-recording-player__controls input::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:14px; height:14px; margin-top:-5px; border:0; border-radius:50%; background:#3b82f6; }\n .fb-recording-player__controls input::-moz-range-thumb { width:14px; height:14px; border:0; border-radius:50%; background:#3b82f6; }\n .fb-recording-player__controls input:focus-visible { outline:2px solid currentColor; outline-offset:2px; border-radius:999px; }\n .replayer-mouse { position:absolute; width:20px; height:20px; background:rgba(59,130,246,.35); border-radius:50%; pointer-events:none; }\n\n .fb-camera-controls { display:flex; align-items:center; gap:6px; min-width:0; }\n .fb-camera-controls button { display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:999px; background:rgba(127,127,127,.18); color:inherit; cursor:pointer; }\n .fb-camera-controls button[aria-pressed=\"true\"] { background:rgba(127,127,127,.38); }\n .fb-camera-controls button:disabled { opacity:.45; cursor:default; }\n .fb-camera-controls button:focus-visible { outline:2px solid currentColor; outline-offset:2px; }\n .fb-camera-controls__notice { font-size:12px; line-height:32px; opacity:.75; white-space:nowrap; }\n .fb-camera-replay-bubble { position:absolute; z-index:2; aspect-ratio:1; border-radius:50%; overflow:hidden; pointer-events:none; background:#111; box-shadow:0 4px 18px rgba(0,0,0,.35); }\n .fb-camera-replay-bubble[hidden], .fb-recording-player[data-loading] .fb-camera-replay-bubble { display:none; }\n .fb-camera-replay-bubble video { display:block; width:100%; height:100%; object-fit:cover; }\n";
8
+ export type RecordingAspect = {
9
+ w: number;
10
+ h: number;
11
+ };
12
+ /** What the recording carries beside the page: a camera video (with sound, if any), a voice only file, or nothing. */
13
+ export type RecordingCameraKind = 'camera' | 'voice' | null;
14
+ /**
15
+ * A loading player at its final size: the view takes the recorded viewport's shape (capped like
16
+ * the replay), with a spinner in it, and the controls are drawn but disabled until it is ready.
17
+ * A recording with a camera or voice file gets its camera controls drawn too, so the row keeps its size.
18
+ */
19
+ export declare function recordingPlayerShellMarkup(aspect?: RecordingAspect | null, camera?: RecordingCameraKind): string;
@@ -0,0 +1,51 @@
1
+ import { cameraControlsMarkup, cameraPlaybackStyle } from './cameraPlayback.js';
2
+ import { icon } from './icons.js';
3
+ /** The replay is bounded like a video player: fitted to the width it is given, never taller than this. */
4
+ export const MAX_VIEW_HEIGHT = 420;
5
+ /**
6
+ * The player's frame, shared by the overlay (which draws it before the player module has loaded)
7
+ * and the player itself, so the loading frame and the ready one are the same box.
8
+ */
9
+ export const recordingPlayerStyle = `
10
+ .fb-recording-player { display:grid; gap:10px; min-width:0; }
11
+ .fb-recording-player__view { position:relative; width:100%; box-sizing:border-box; overflow:hidden; border-radius:10px; background:#fff; min-height:220px; max-height:${MAX_VIEW_HEIGHT}px; }
12
+ .fb-recording-player__view[data-aspect] { min-height:0; }
13
+ .fb-recording-player__view .replayer-wrapper { position:relative; transform-origin:top left; }
14
+ .fb-recording-player__view iframe { border:0; display:block; }
15
+ .fb-recording-player[data-loading] .fb-recording-player__view { background:rgba(127,127,127,.14); }
16
+ .fb-recording-player[data-loading] .replayer-wrapper { visibility:hidden; }
17
+ .fb-recording-player__spinner { position:absolute; top:50%; left:50%; width:28px; height:28px; margin:-14px 0 0 -14px; box-sizing:border-box; border:3px solid rgba(127,127,127,.3); border-top-color:rgba(127,127,127,.9); border-radius:50%; animation:fb-recording-spin .8s linear infinite; }
18
+ @keyframes fb-recording-spin { to { transform:rotate(360deg); } }
19
+ @media (prefers-reduced-motion: reduce) { .fb-recording-player__spinner { animation-duration:2.4s; } }
20
+ .fb-recording-player__controls { display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:10px; }
21
+ .fb-recording-player__controls button { display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:999px; background:rgba(127,127,127,.18); color:inherit; cursor:pointer; }
22
+ .fb-recording-player__controls button:disabled, .fb-recording-player__controls input:disabled { opacity:.45; cursor:default; }
23
+ .fb-recording-player__controls button:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
24
+ .fb-recording-player__controls input { -webkit-appearance:none; appearance:none; display:block; box-sizing:border-box; width:100%; min-width:0; height:16px; margin:0; padding:0; background:transparent; cursor:pointer; }
25
+ .fb-recording-player__controls input::-webkit-slider-runnable-track { height:4px; border-radius:999px; background:rgba(127,127,127,.35); }
26
+ .fb-recording-player__controls input::-moz-range-track { height:4px; border-radius:999px; background:rgba(127,127,127,.35); }
27
+ .fb-recording-player__controls input::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:14px; height:14px; margin-top:-5px; border:0; border-radius:50%; background:#3b82f6; }
28
+ .fb-recording-player__controls input::-moz-range-thumb { width:14px; height:14px; border:0; border-radius:50%; background:#3b82f6; }
29
+ .fb-recording-player__controls input:focus-visible { outline:2px solid currentColor; outline-offset:2px; border-radius:999px; }
30
+ .replayer-mouse { position:absolute; width:20px; height:20px; background:rgba(59,130,246,.35); border-radius:50%; pointer-events:none; }
31
+ ${cameraPlaybackStyle}`;
32
+ function validAspect(aspect) {
33
+ return Boolean(aspect && Number.isFinite(aspect.w) && Number.isFinite(aspect.h) && aspect.w > 0 && aspect.h > 0);
34
+ }
35
+ /**
36
+ * A loading player at its final size: the view takes the recorded viewport's shape (capped like
37
+ * the replay), with a spinner in it, and the controls are drawn but disabled until it is ready.
38
+ * A recording with a camera or voice file gets its camera controls drawn too, so the row keeps its size.
39
+ */
40
+ export function recordingPlayerShellMarkup(aspect, camera = null) {
41
+ const shape = validAspect(aspect) ? ` data-aspect style="aspect-ratio:${Math.round(aspect.w)} / ${Math.round(aspect.h)}"` : '';
42
+ return `<div class="fb-recording-player" data-loading>`
43
+ + `<div class="fb-recording-player__view" data-recording-player-view${shape}>`
44
+ + `<span class="fb-recording-player__spinner" data-recording-player-spinner role="status" aria-label="Loading recording"></span></div>`
45
+ + `<div class="fb-recording-player__controls">`
46
+ + `<button type="button" data-recording-player-action="play" aria-label="Play" title="Play" disabled>${icon('play', 15)}</button>`
47
+ + `<input type="range" min="0" max="0" step="1" value="0" aria-label="Recording position" disabled>`
48
+ + (camera ? cameraControlsMarkup(camera === 'voice') : '')
49
+ + `</div></div>`;
50
+ }
51
+ //# sourceMappingURL=recordingPlayerShell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recordingPlayerShell.js","sourceRoot":"","sources":["../../src/overlay/recordingPlayerShell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,0GAA0G;AAC1G,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC;AAEnC;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;;0KAEsI,eAAe;;;;;;;;;;;;;;;;;;;;EAoBvL,mBAAmB,EAAE,CAAC;AAMxB,SAAS,WAAW,CAAC,MAA+B;IAClD,OAAO,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,CAAC,GAAG,CAAC,C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