@slidevideo/cli 0.3.2 → 0.10.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/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/addons/slidevideo/global-top.vue +8 -2
- package/addons/slidevideo/preview.ts +11 -1
- package/dist/adapters/powerpoint.js +23 -15
- package/dist/adapters/slidev-inspection.d.ts +1 -1
- package/dist/adapters/slidev-inspection.js +13 -6
- package/dist/adapters/slidev-server.js +1 -1
- package/dist/annotation-paint.d.ts +35 -2
- package/dist/annotation-paint.js +234 -0
- package/dist/annotations.d.ts +8 -2
- package/dist/annotations.js +236 -24
- package/dist/cli.js +41 -8
- package/dist/compositor.js +1 -1
- package/dist/contracts.d.ts +64 -2
- package/dist/contracts.js +6 -0
- package/dist/init.d.ts +20 -0
- package/dist/init.js +223 -0
- package/dist/pipeline.d.ts +1 -0
- package/dist/preview/player.js +9 -1
- package/dist/storyboard.d.ts +1 -0
- package/dist/storyboard.js +20 -1
- package/dist/timing.js +26 -0
- package/package.json +3 -1
- package/schemas/schedule.v1.json +599 -0
- package/schemas/storyboard.v1.json +1134 -0
- package/skills/slidevideo/SKILL.md +3 -3
- package/skills/slidevideo/references/production.md +1 -1
- package/skills/slidevideo/references/storyboard.md +57 -1
- package/tools/powerpoint/powerpoint.ps1 +36 -2
package/dist/init.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type Voice } from './contracts.js';
|
|
2
|
+
export type InitOptions = {
|
|
3
|
+
deck: string;
|
|
4
|
+
output?: string;
|
|
5
|
+
provider?: string;
|
|
6
|
+
voice?: string;
|
|
7
|
+
force?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type InitResult = {
|
|
10
|
+
version: 1;
|
|
11
|
+
command: 'init';
|
|
12
|
+
status: 'completed';
|
|
13
|
+
deck: string;
|
|
14
|
+
output: string;
|
|
15
|
+
slides: number;
|
|
16
|
+
narrated_slides: number;
|
|
17
|
+
voice: Voice;
|
|
18
|
+
warnings: string[];
|
|
19
|
+
};
|
|
20
|
+
export declare function initStoryboard(options: InitOptions): Promise<InitResult>;
|
package/dist/init.js
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { existsSync } from 'node:fs';
|
|
2
|
+
import { mkdir, writeFile } from 'node:fs/promises';
|
|
3
|
+
import { dirname, extname, isAbsolute, join, relative, resolve } from 'node:path';
|
|
4
|
+
import { parse, stringify } from 'yaml';
|
|
5
|
+
import { presentationAdapter, ttsAdapters } from './adapters/registry.js';
|
|
6
|
+
import { defaultViewport } from './contracts.js';
|
|
7
|
+
import { requireCondition } from './errors.js';
|
|
8
|
+
import { validateStoryboard } from './storyboard.js';
|
|
9
|
+
const defaultProvider = 'edge-tts';
|
|
10
|
+
const defaultEdgeVoice = 'en-US-AriaNeural';
|
|
11
|
+
const silentHoldMs = 3000;
|
|
12
|
+
const trailingHoldMs = 500;
|
|
13
|
+
const clickHoldMs = 1500;
|
|
14
|
+
const defaultRevealMs = 400;
|
|
15
|
+
const clickMarkerPattern = /\[click\]/i;
|
|
16
|
+
function sanitizeId(raw, fallback) {
|
|
17
|
+
const cleaned = raw
|
|
18
|
+
.trim()
|
|
19
|
+
.replace(/[^a-zA-Z0-9_-]+/g, '-')
|
|
20
|
+
.replace(/-+/g, '-')
|
|
21
|
+
.replace(/^-+|-+$/g, '');
|
|
22
|
+
if (!cleaned)
|
|
23
|
+
return fallback;
|
|
24
|
+
return /^[a-zA-Z]/.test(cleaned) ? cleaned : `s-${cleaned}`;
|
|
25
|
+
}
|
|
26
|
+
function relativeDeckPath(outputFile, deckFile) {
|
|
27
|
+
const raw = relative(dirname(outputFile), deckFile);
|
|
28
|
+
if (!raw)
|
|
29
|
+
return './';
|
|
30
|
+
const normalized = raw.replaceAll('\\', '/');
|
|
31
|
+
if (isAbsolute(raw) || /^[a-zA-Z]:\//.test(normalized) || normalized.startsWith('//')) {
|
|
32
|
+
return normalized;
|
|
33
|
+
}
|
|
34
|
+
return normalized.startsWith('.') ? normalized : `./${normalized}`;
|
|
35
|
+
}
|
|
36
|
+
function resolveInitVoice(providerInput, voiceInput) {
|
|
37
|
+
const provider = providerInput?.trim() || defaultProvider;
|
|
38
|
+
const tts = ttsAdapters.get(provider);
|
|
39
|
+
requireCondition(tts, 'TTS_ADAPTER', `Unsupported TTS provider ${provider}`, 3);
|
|
40
|
+
const voiceId = voiceInput?.trim() || (provider === defaultProvider ? defaultEdgeVoice : '');
|
|
41
|
+
requireCondition(voiceId.length > 0, 'OPTION', `Pass --voice <id> when using --provider ${provider}`);
|
|
42
|
+
const voice = { provider, voice: voiceId };
|
|
43
|
+
tts.validate(voice);
|
|
44
|
+
return voice;
|
|
45
|
+
}
|
|
46
|
+
function buildStoryboardFromInspection(inspection, deckRef, voice) {
|
|
47
|
+
const usedIds = new Set();
|
|
48
|
+
const allocateId = (base, fallback = 'item') => {
|
|
49
|
+
const stem = sanitizeId(base, fallback);
|
|
50
|
+
if (!usedIds.has(stem)) {
|
|
51
|
+
usedIds.add(stem);
|
|
52
|
+
return stem;
|
|
53
|
+
}
|
|
54
|
+
let suffix = 2;
|
|
55
|
+
while (usedIds.has(`${stem}-${suffix}`))
|
|
56
|
+
suffix++;
|
|
57
|
+
const candidate = `${stem}-${suffix}`;
|
|
58
|
+
usedIds.add(candidate);
|
|
59
|
+
return candidate;
|
|
60
|
+
};
|
|
61
|
+
const narration = [];
|
|
62
|
+
const scenes = [];
|
|
63
|
+
const unusedClickMarkerSlides = [];
|
|
64
|
+
let narratedSlides = 0;
|
|
65
|
+
for (const slide of inspection.slides) {
|
|
66
|
+
const base = sanitizeId(slide.id, `slide-${slide.index}`);
|
|
67
|
+
const sceneId = allocateId(base, `slide-${slide.index}`);
|
|
68
|
+
const actions = [];
|
|
69
|
+
const revealDuration = (click) => Math.max(0, Math.round(slide.click_durations_ms?.[click - 1] ?? defaultRevealMs));
|
|
70
|
+
const notes = slide.notes;
|
|
71
|
+
let slideHasNarration = false;
|
|
72
|
+
const addSpeech = (stem, text) => {
|
|
73
|
+
const segmentId = allocateId(`narration-${stem}`, `narration-${slide.index}`);
|
|
74
|
+
narration.push({ id: segmentId, text });
|
|
75
|
+
actions.push({ id: allocateId(`say-${stem}`, `say-${slide.index}`), type: 'speak', segment: segmentId });
|
|
76
|
+
slideHasNarration = true;
|
|
77
|
+
};
|
|
78
|
+
const addHold = (stem, durationMs) => {
|
|
79
|
+
actions.push({ id: allocateId(`hold-${stem}`, `hold-${slide.index}`), type: 'hold', duration_ms: durationMs });
|
|
80
|
+
};
|
|
81
|
+
const addReveal = (click) => {
|
|
82
|
+
actions.push({
|
|
83
|
+
id: allocateId(`reveal-${base}-${click}`, `reveal-${slide.index}-${click}`),
|
|
84
|
+
type: 'reveal',
|
|
85
|
+
click,
|
|
86
|
+
duration_ms: revealDuration(click),
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
if (slide.clicks > 0 && notes && clickMarkerPattern.test(notes)) {
|
|
90
|
+
const rawChunks = notes.split(clickMarkerPattern).map(part => part.trim());
|
|
91
|
+
const chunks = rawChunks.slice(0, slide.clicks + 1);
|
|
92
|
+
if (rawChunks.length > slide.clicks + 1) {
|
|
93
|
+
const overflow = rawChunks.slice(slide.clicks + 1).filter(Boolean);
|
|
94
|
+
if (overflow.length) {
|
|
95
|
+
chunks[slide.clicks] = [chunks[slide.clicks], ...overflow].filter(Boolean).join('\n\n');
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
for (let click = 0; click <= slide.clicks; click++) {
|
|
99
|
+
if (click > 0)
|
|
100
|
+
addReveal(click);
|
|
101
|
+
const chunk = chunks[click];
|
|
102
|
+
if (chunk)
|
|
103
|
+
addSpeech(click === 0 ? base : `${base}-${click}`, chunk);
|
|
104
|
+
else if (click > 0)
|
|
105
|
+
addHold(`${base}-${click}`, clickHoldMs);
|
|
106
|
+
}
|
|
107
|
+
if (actions.at(-1)?.type === 'speak')
|
|
108
|
+
addHold(`${base}-end`, trailingHoldMs);
|
|
109
|
+
}
|
|
110
|
+
else if (slide.clicks > 0 && notes) {
|
|
111
|
+
addSpeech(base, notes);
|
|
112
|
+
for (let click = 1; click <= slide.clicks; click++) {
|
|
113
|
+
addReveal(click);
|
|
114
|
+
addHold(`${base}-${click}`, clickHoldMs);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
else if (slide.clicks > 0) {
|
|
118
|
+
addHold(`${base}-intro`, clickHoldMs);
|
|
119
|
+
for (let click = 1; click <= slide.clicks; click++) {
|
|
120
|
+
addReveal(click);
|
|
121
|
+
addHold(`${base}-${click}`, clickHoldMs);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
else if (notes) {
|
|
125
|
+
const cleaned = clickMarkerPattern.test(notes)
|
|
126
|
+
? notes.split(clickMarkerPattern).map(part => part.trim()).filter(Boolean).join('\n\n')
|
|
127
|
+
: notes;
|
|
128
|
+
if (clickMarkerPattern.test(notes))
|
|
129
|
+
unusedClickMarkerSlides.push(slide.id);
|
|
130
|
+
if (cleaned) {
|
|
131
|
+
addSpeech(base, cleaned);
|
|
132
|
+
addHold(`${base}-end`, trailingHoldMs);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
addHold(base, silentHoldMs);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
addHold(base, silentHoldMs);
|
|
140
|
+
}
|
|
141
|
+
if (slideHasNarration)
|
|
142
|
+
narratedSlides++;
|
|
143
|
+
scenes.push({ id: sceneId, slide: slide.id, actions });
|
|
144
|
+
}
|
|
145
|
+
return {
|
|
146
|
+
storyboard: {
|
|
147
|
+
version: 1,
|
|
148
|
+
deck: deckRef,
|
|
149
|
+
voice,
|
|
150
|
+
media: [],
|
|
151
|
+
narration,
|
|
152
|
+
scenes,
|
|
153
|
+
cues: [],
|
|
154
|
+
annotations: [],
|
|
155
|
+
},
|
|
156
|
+
narratedSlides,
|
|
157
|
+
unusedClickMarkerSlides,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
export async function initStoryboard(options) {
|
|
161
|
+
const deck = resolve(options.deck);
|
|
162
|
+
const output = resolve(options.output ?? join(dirname(deck), 'slidevideo.yaml'));
|
|
163
|
+
requireCondition(/^\.ya?ml$/i.test(extname(output)), 'OPTION', '--output for init must end with .yaml or .yml');
|
|
164
|
+
requireCondition(Boolean(options.force) || !existsSync(output), 'OUTPUT_EXISTS', `Storyboard already exists at ${output}. Pass --force to overwrite or --output <file> to write elsewhere.`);
|
|
165
|
+
const voice = resolveInitVoice(options.provider, options.voice);
|
|
166
|
+
const adapter = presentationAdapter(deck);
|
|
167
|
+
let inspection;
|
|
168
|
+
try {
|
|
169
|
+
inspection = await adapter.inspect(deck);
|
|
170
|
+
if (inspection.slides.some(slide => slide.clicks_known === false) && adapter.inspectTargets) {
|
|
171
|
+
const targets = await adapter.inspectTargets(deck, inspection.dimensions ?? defaultViewport);
|
|
172
|
+
const clicksBySlide = new Map((targets ?? []).map(entry => [entry.slide, entry.clicks]));
|
|
173
|
+
inspection = {
|
|
174
|
+
...inspection,
|
|
175
|
+
slides: inspection.slides.map(slide => {
|
|
176
|
+
if (slide.clicks_known !== false)
|
|
177
|
+
return slide;
|
|
178
|
+
const mountedClicks = clicksBySlide.get(slide.id);
|
|
179
|
+
return typeof mountedClicks === 'number' && Number.isInteger(mountedClicks) && mountedClicks >= 0
|
|
180
|
+
? { ...slide, clicks: mountedClicks, clicks_known: true }
|
|
181
|
+
: slide;
|
|
182
|
+
}),
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
finally {
|
|
187
|
+
await adapter.cleanup();
|
|
188
|
+
}
|
|
189
|
+
const deckRef = relativeDeckPath(output, deck);
|
|
190
|
+
const { storyboard, narratedSlides, unusedClickMarkerSlides } = buildStoryboardFromInspection(inspection, deckRef, voice);
|
|
191
|
+
const yamlText = stringify(storyboard, { lineWidth: 100 });
|
|
192
|
+
const validated = validateStoryboard(parse(yamlText), output);
|
|
193
|
+
await adapter.validate(validated, inspection);
|
|
194
|
+
await mkdir(dirname(output), { recursive: true });
|
|
195
|
+
await writeFile(output, yamlText, 'utf8');
|
|
196
|
+
const warnings = [];
|
|
197
|
+
if (narratedSlides === 0) {
|
|
198
|
+
warnings.push('No speaker notes were found in this deck. Generated slides use silent holds until you add speaker notes or edit narration in slidevideo.yaml.');
|
|
199
|
+
}
|
|
200
|
+
if (unusedClickMarkerSlides.length > 0) {
|
|
201
|
+
warnings.push(`Removed [click] markers from speaker notes on slides without reveal clicks (${unusedClickMarkerSlides.join(', ')}).`);
|
|
202
|
+
}
|
|
203
|
+
if (inspection.slides.some(slide => slide.clicks_known === false)) {
|
|
204
|
+
warnings.push('Slides without explicit click bounds require runtime reveal checks before recording.');
|
|
205
|
+
}
|
|
206
|
+
if ((inspection.unsupported?.length ?? 0) > 0) {
|
|
207
|
+
warnings.push('Deck contains unsupported native features. Adjust the deck before production.');
|
|
208
|
+
}
|
|
209
|
+
if (inspection.media_ids.length > 0) {
|
|
210
|
+
warnings.push(`Deck contains media elements (${inspection.media_ids.join(', ')}). Add media entries and play actions in slidevideo.yaml if you want to play them.`);
|
|
211
|
+
}
|
|
212
|
+
return {
|
|
213
|
+
version: 1,
|
|
214
|
+
command: 'init',
|
|
215
|
+
status: 'completed',
|
|
216
|
+
deck,
|
|
217
|
+
output,
|
|
218
|
+
slides: inspection.slides.length,
|
|
219
|
+
narrated_slides: narratedSlides,
|
|
220
|
+
voice,
|
|
221
|
+
warnings,
|
|
222
|
+
};
|
|
223
|
+
}
|
package/dist/pipeline.d.ts
CHANGED
package/dist/preview/player.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { activeViewTransform, annotationPaint, hasActiveSpotlight, laserPaint, laserVisible, paintEffects, spotlightAperturesVisible, stampPaint, stampVisible, targetKey, underlineFragmentsVisible, zoomTransformVisible } from '../annotation-paint.js';
|
|
1
|
+
import { activeViewTransform, annotationPaint, arrowPaint, arrowVisible, hasActiveSpotlight, laserPaint, laserVisible, paintEffects, spotlightAperturesVisible, stampPaint, stampVisible, targetKey, underlineFragmentsVisible, zoomTransformVisible } from '../annotation-paint.js';
|
|
2
2
|
const labels = { loading: 'Loading presentation…', ready: 'Ready', playing: 'Playing', paused: 'Paused', ended: 'Finished', error: 'Playback failed' };
|
|
3
3
|
const stage = document.querySelector('#stage');
|
|
4
4
|
const status = document.querySelector('#status');
|
|
@@ -371,6 +371,14 @@ function nativePlayer(annotations) {
|
|
|
371
371
|
activeEffects.push(painted);
|
|
372
372
|
break;
|
|
373
373
|
}
|
|
374
|
+
case 'arrow': {
|
|
375
|
+
const painted = arrowPaint(marker, { viewport: frame.viewport, content: frame.content }, target => targets.get(targetKey(target)));
|
|
376
|
+
if (!arrowVisible(painted)) {
|
|
377
|
+
throw new Error(`Annotation ${marker.id}: ${painted.degenerate_reason ?? 'arrow is clipped outside the slide-content rectangle'}`);
|
|
378
|
+
}
|
|
379
|
+
activeEffects.push(painted);
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
374
382
|
}
|
|
375
383
|
}
|
|
376
384
|
const view = activeViewTransform(activeEffects, frame.position_ms);
|
package/dist/storyboard.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Storyboard } from './contracts.js';
|
|
2
2
|
export declare function loadStoryboard(file: string): Promise<Storyboard>;
|
|
3
|
+
export declare function validateStoryboard(data: unknown, file: string): Storyboard;
|
|
3
4
|
export declare function fingerprint(storyboard: string, files: string[]): Promise<{
|
|
4
5
|
inputs: Record<string, string>;
|
|
5
6
|
input_hash: string;
|
package/dist/storyboard.js
CHANGED
|
@@ -15,6 +15,9 @@ export async function loadStoryboard(file) {
|
|
|
15
15
|
catch (error) {
|
|
16
16
|
throw new ProductionError('STORYBOARD', `Cannot read storyboard: ${String(error)}`);
|
|
17
17
|
}
|
|
18
|
+
return validateStoryboard(data, file);
|
|
19
|
+
}
|
|
20
|
+
export function validateStoryboard(data, file) {
|
|
18
21
|
requireCondition(validate(data), 'SCHEMA', JSON.stringify(validate.errors));
|
|
19
22
|
data.deck = resolve(dirname(file), data.deck);
|
|
20
23
|
data.media = data.media.map(media => ({ ...media, src: resolve(dirname(file), media.src) }));
|
|
@@ -109,7 +112,23 @@ export async function loadStoryboard(file) {
|
|
|
109
112
|
requireCondition(badChar === undefined, 'STAMP_GLYPH', `Annotation ${annotation.id}: character ${JSON.stringify(badChar)} is not supported by the bundled ${font} stamp font; use characters covered by the bundled font or appearance.symbol (check, cross, warning, star, info, arrow-right)`, 2, context);
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
|
-
if (
|
|
115
|
+
if (annotation.effect === 'arrow') {
|
|
116
|
+
for (const [role, endpoint] of [['from', annotation.target.from], ['to', annotation.target.to]]) {
|
|
117
|
+
if ('target' in endpoint) {
|
|
118
|
+
if (endpoint.target.type === 'text') {
|
|
119
|
+
requireCondition(endpoint.target.text.trim().length > 0, 'ANNOTATION_TARGET', `Annotation ${annotation.id}: arrow ${role} text target cannot be empty or whitespace`, 2, context);
|
|
120
|
+
}
|
|
121
|
+
if (endpoint.target.type === 'region') {
|
|
122
|
+
const { x, y, width, height } = endpoint.target;
|
|
123
|
+
requireCondition(x + width <= 1 && y + height <= 1, 'ANNOTATION_BOUNDS', `Annotation ${annotation.id}: arrow ${role} region exceeds normalized slide bounds`, 2, context);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (!('target' in annotation.target.from) && !('target' in annotation.target.to)) {
|
|
128
|
+
requireCondition(annotation.target.from.x !== annotation.target.to.x || annotation.target.from.y !== annotation.target.to.y, 'ANNOTATION_GEOMETRY', `Annotation ${annotation.id}: arrow endpoints are coincident`, 2, context);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if ((annotation.effect === 'underline' || annotation.effect === 'spotlight' || annotation.effect === 'zoom' || annotation.effect === 'laser' || annotation.effect === 'stamp' || annotation.effect === 'arrow') && annotation.motion && 'duration_ms' in annotation && annotation.duration_ms !== undefined) {
|
|
113
132
|
const inMs = annotation.motion.in_ms ?? 0;
|
|
114
133
|
const outMs = annotation.motion.out_ms ?? 0;
|
|
115
134
|
requireCondition(inMs + outMs <= annotation.duration_ms, 'ANNOTATION_MOTION', `Annotation ${annotation.id}: ${annotation.motion.type} motion exceeds annotation duration`, 2, context);
|
package/dist/timing.js
CHANGED
|
@@ -250,6 +250,22 @@ async function resolveSchedule(story, speech) {
|
|
|
250
250
|
...windowFields,
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
|
+
if (annotation.effect === 'arrow') {
|
|
254
|
+
if (annotation.motion) {
|
|
255
|
+
const inMs = annotation.motion.in_ms ?? 0;
|
|
256
|
+
const outMs = annotation.motion.out_ms ?? 0;
|
|
257
|
+
requireCondition(inMs + outMs <= end - time, 'ANNOTATION_MOTION', `Annotation ${resolvedId}: ${annotation.motion.type} motion exceeds resolved duration (${Math.round(end - time)} ms)`, 2, context);
|
|
258
|
+
}
|
|
259
|
+
return {
|
|
260
|
+
id: resolvedId,
|
|
261
|
+
scene: annotation.scene,
|
|
262
|
+
effect: 'arrow',
|
|
263
|
+
target: target,
|
|
264
|
+
...(annotation.appearance ? { appearance: annotation.appearance } : {}),
|
|
265
|
+
...(annotation.motion ? { motion: annotation.motion } : {}),
|
|
266
|
+
...windowFields,
|
|
267
|
+
};
|
|
268
|
+
}
|
|
253
269
|
const singleTarget = target;
|
|
254
270
|
if (annotation.effect === 'underline') {
|
|
255
271
|
if (annotation.motion) {
|
|
@@ -318,6 +334,16 @@ async function resolveSchedule(story, speech) {
|
|
|
318
334
|
: pt),
|
|
319
335
|
};
|
|
320
336
|
}
|
|
337
|
+
if (t.type === 'connector') {
|
|
338
|
+
const normalizeEndpoint = (ep) => 'target' in ep && ep.target.type === 'text'
|
|
339
|
+
? { ...ep, target: { ...ep.target, text: normalizeSpaces(ep.target.text) } }
|
|
340
|
+
: ep;
|
|
341
|
+
return {
|
|
342
|
+
...t,
|
|
343
|
+
from: normalizeEndpoint(t.from),
|
|
344
|
+
to: normalizeEndpoint(t.to),
|
|
345
|
+
};
|
|
346
|
+
}
|
|
321
347
|
return t.type === 'text' ? { ...t, text: normalizeSpaces(t.text) } : t;
|
|
322
348
|
};
|
|
323
349
|
const normalizedTarget = normalizeTarget(annotation.target);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidevideo/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Turn a slide deck into a narrated video.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE-TERMS.md",
|
|
6
6
|
"type": "module",
|
|
@@ -80,6 +80,8 @@
|
|
|
80
80
|
"dist/errors.js",
|
|
81
81
|
"dist/executables.d.ts",
|
|
82
82
|
"dist/executables.js",
|
|
83
|
+
"dist/init.d.ts",
|
|
84
|
+
"dist/init.js",
|
|
83
85
|
"dist/installation.d.ts",
|
|
84
86
|
"dist/installation.js",
|
|
85
87
|
"dist/license-key.d.ts",
|