screenci 0.0.49 → 0.0.50
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 +12 -12
- package/dist/docs/video-sources/assets-and-overlays.video.js +5 -9
- package/dist/docs/video-sources/assets-and-overlays.video.js.map +1 -1
- package/dist/docs/video-sources/camera-and-zooming.video.js +5 -9
- package/dist/docs/video-sources/camera-and-zooming.video.js.map +1 -1
- package/dist/docs/video-sources/ci-setup.video.js +5 -9
- package/dist/docs/video-sources/ci-setup.video.js.map +1 -1
- package/dist/docs/video-sources/cli.video.js +5 -9
- package/dist/docs/video-sources/cli.video.js.map +1 -1
- package/dist/docs/video-sources/generating-videos.video.js +5 -9
- package/dist/docs/video-sources/generating-videos.video.js.map +1 -1
- package/dist/docs/video-sources/installation.video.js +5 -11
- package/dist/docs/video-sources/installation.video.js.map +1 -1
- package/dist/docs/video-sources/landing.video.js +25 -35
- package/dist/docs/video-sources/landing.video.js.map +1 -1
- package/dist/docs/video-sources/narration-and-localization.video.js +5 -9
- package/dist/docs/video-sources/narration-and-localization.video.js.map +1 -1
- package/dist/docs/video-sources/public-urls-and-embeds.video.js +5 -9
- package/dist/docs/video-sources/public-urls-and-embeds.video.js.map +1 -1
- package/dist/docs/video-sources/record-and-publish.video.js +5 -9
- package/dist/docs/video-sources/record-and-publish.video.js.map +1 -1
- package/dist/docs/video-sources/run-and-debug-videos.video.js +5 -9
- package/dist/docs/video-sources/run-and-debug-videos.video.js.map +1 -1
- package/dist/docs/video-sources/write-video-scripts.video.js +5 -9
- package/dist/docs/video-sources/write-video-scripts.video.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/cue.d.ts +22 -26
- package/dist/src/cue.d.ts.map +1 -1
- package/dist/src/cue.js +38 -19
- package/dist/src/cue.js.map +1 -1
- package/dist/src/events.d.ts +0 -6
- package/dist/src/events.d.ts.map +1 -1
- package/dist/src/events.js.map +1 -1
- package/dist/src/init.d.ts.map +1 -1
- package/dist/src/init.js +5 -11
- package/dist/src/init.js.map +1 -1
- package/dist/src/video.d.ts +3 -7
- package/dist/src/video.d.ts.map +1 -1
- package/dist/src/video.js +3 -7
- package/dist/src/video.js.map +1 -1
- package/dist/src/voices.d.ts +10 -238
- package/dist/src/voices.d.ts.map +1 -1
- package/dist/src/voices.js +7 -93
- package/dist/src/voices.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -113,18 +113,18 @@ Playwright config still passes through.
|
|
|
113
113
|
|
|
114
114
|
## Authoring helpers
|
|
115
115
|
|
|
116
|
-
| Export | What it does
|
|
117
|
-
| ----------------- |
|
|
118
|
-
| `defineConfig` | Wraps Playwright config with ScreenCI defaults
|
|
119
|
-
| `video` | Declares a video recording test
|
|
120
|
-
| `createNarration` | Creates typed narration controllers
|
|
121
|
-
| `hide` | Cuts setup or cleanup out of the visible recording
|
|
122
|
-
| `autoZoom` | Smooth camera follow for an interaction block
|
|
123
|
-
| `zoomTo` | Manual camera framing for a locator or point
|
|
124
|
-
| `resetZoom` | Returns from manual framing to the full viewport
|
|
125
|
-
| `createAssets` | Inserts timed media overlays into the recording timeline
|
|
126
|
-
| `voices` | Available voice constants such as `voices.Ava`
|
|
127
|
-
| `
|
|
116
|
+
| Export | What it does |
|
|
117
|
+
| ----------------- | --------------------------------------------------------- |
|
|
118
|
+
| `defineConfig` | Wraps Playwright config with ScreenCI defaults |
|
|
119
|
+
| `video` | Declares a video recording test |
|
|
120
|
+
| `createNarration` | Creates typed narration controllers |
|
|
121
|
+
| `hide` | Cuts setup or cleanup out of the visible recording |
|
|
122
|
+
| `autoZoom` | Smooth camera follow for an interaction block |
|
|
123
|
+
| `zoomTo` | Manual camera framing for a locator or point |
|
|
124
|
+
| `resetZoom` | Returns from manual framing to the full viewport |
|
|
125
|
+
| `createAssets` | Inserts timed media overlays into the recording timeline |
|
|
126
|
+
| `voices` | Available voice constants such as `voices.Ava` |
|
|
127
|
+
| `modelTypes` | Narration model constants such as `modelTypes.consistent` |
|
|
128
128
|
|
|
129
129
|
## Output
|
|
130
130
|
|
|
@@ -4,15 +4,11 @@ const assets = createAssets({
|
|
|
4
4
|
});
|
|
5
5
|
const narration = createNarration({
|
|
6
6
|
voice: { name: voices.Sophie, style: 'Clear, structured docs walkthrough' },
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
focus: 'The full screen versus overlay section is where the guide explains when a clip should replace the frame and when it should sit on top of the recording.',
|
|
13
|
-
next: 'The API overview linked at the end summarizes the exported createAssets helper.',
|
|
14
|
-
},
|
|
15
|
-
},
|
|
7
|
+
en: {
|
|
8
|
+
intro: 'This guide explains how to place intro clips and overlays directly on the ScreenCI timeline.',
|
|
9
|
+
example: 'The define assets section shows the same createAssets pattern used to insert the intro clip at the start of this video.',
|
|
10
|
+
focus: 'The full screen versus overlay section is where the guide explains when a clip should replace the frame and when it should sit on top of the recording.',
|
|
11
|
+
next: 'The API overview linked at the end summarizes the exported createAssets helper.',
|
|
16
12
|
},
|
|
17
13
|
});
|
|
18
14
|
video('Assets and overlays guide', async ({ page }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets-and-overlays.video.js","sourceRoot":"","sources":["../../../docs/video-sources/assets-and-overlays.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,MAAM,GAAG,YAAY,CAAC;IAC1B,KAAK,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE;CAClE,CAAC,CAAA;AAEF,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,oCAAoC,EAAE;IAC3E,
|
|
1
|
+
{"version":3,"file":"assets-and-overlays.video.js","sourceRoot":"","sources":["../../../docs/video-sources/assets-and-overlays.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,MAAM,GAAG,YAAY,CAAC;IAC1B,KAAK,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE;CAClE,CAAC,CAAA;AAEF,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,oCAAoC,EAAE;IAC3E,EAAE,EAAE;QACF,KAAK,EACH,8FAA8F;QAChG,OAAO,EACL,yHAAyH;QAC3H,KAAK,EACH,yJAAyJ;QAC3J,IAAI,EAAE,iFAAiF;KACxF;CACF,CAAC,CAAA;AAEF,KAAK,CAAC,2BAA2B,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACpD,MAAM,IAAI,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,IAAI,CAAC,IAAI,CAAC,sDAAsD,CAAC,CAAA;QACvE,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;IAC5C,CAAC,CAAC,CAAA;IAEF,MAAM,MAAM,CAAC,KAAK,EAAE,CAAA;IAEpB,MAAM,SAAS,CAAC,KAAK,EAAE,CAAA;IACvB,MAAM,SAAS,CAAC,OAAO,EAAE,CAAA;IACzB,MAAM,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC,CAAA;IAClE,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;IAC9B,MAAM,SAAS,EAAE,CAAA;IAEjB,MAAM,SAAS,CAAC,KAAK,EAAE,CAAA;IACvB,MAAM,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC,CAAC,CAAA;IAC3E,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;IAC9B,MAAM,SAAS,EAAE,CAAA;IAEjB,MAAM,SAAS,CAAC,IAAI,EAAE,CAAA;IACtB,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI;aACP,OAAO,CAAC,sBAAsB,CAAC;aAC/B,SAAS,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,8BAA8B,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;aACxE,KAAK,EAAE;aACP,KAAK,EAAE,CAAA;IACZ,CAAC,CAAC,CAAA;IAEF,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;AAC5C,CAAC,CAAC,CAAA"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { autoZoom, createNarration, hide, resetZoom, video, voices, zoomTo, } from 'screenci';
|
|
2
2
|
const narration = createNarration({
|
|
3
3
|
voice: { name: voices.Sophie },
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
focus: 'The manual zoom section shows when to take exact control over framing instead of following the interaction automatically.',
|
|
10
|
-
next: 'The related reference page for authoring helpers is linked from the end of the guide.',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
4
|
+
en: {
|
|
5
|
+
intro: 'This video walks through the two camera styles covered in the Camera and Zooming guide.',
|
|
6
|
+
source: 'The page includes the complete ScreenCI script used for this walkthrough.',
|
|
7
|
+
focus: 'The manual zoom section shows when to take exact control over framing instead of following the interaction automatically.',
|
|
8
|
+
next: 'The related reference page for authoring helpers is linked from the end of the guide.',
|
|
13
9
|
},
|
|
14
10
|
});
|
|
15
11
|
video('Camera and zooming guide', async ({ page }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"camera-and-zooming.video.js","sourceRoot":"","sources":["../../../docs/video-sources/camera-and-zooming.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,
|
|
1
|
+
{"version":3,"file":"camera-and-zooming.video.js","sourceRoot":"","sources":["../../../docs/video-sources/camera-and-zooming.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,EAAE,EAAE;QACF,KAAK,EACH,yFAAyF;QAC3F,MAAM,EACJ,2EAA2E;QAC7E,KAAK,EACH,2HAA2H;QAC7H,IAAI,EAAE,uFAAuF;KAC9F;CACF,CAAC,CAAA;AAEF,KAAK,CAAC,0BAA0B,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACnD,MAAM,IAAI,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,IAAI,CAAC,IAAI,CAAC,qDAAqD,CAAC,CAAA;QACtE,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;IAC5C,CAAC,CAAC,CAAA;IAEF,MAAM,SAAS,CAAC,KAAK,EAAE,CAAA;IACvB,MAAM,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,CAAA;IAC9B,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,CAAA;IACrD,CAAC,CAAC,CAAA;IACF,MAAM,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,CAAA;IAE5B,MAAM,SAAS,CAAC,KAAK,EAAE,CAAA;IACvB,MAAM,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,CAAC,CAAA;IAChE,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;IAC9B,MAAM,SAAS,EAAE,CAAA;IAEjB,MAAM,SAAS,CAAC,IAAI,EAAE,CAAA;IACtB,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI;aACP,OAAO,CAAC,sBAAsB,CAAC;aAC/B,SAAS,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,8BAA8B,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;aACxE,KAAK,EAAE;aACP,KAAK,EAAE,CAAA;IACZ,CAAC,CAAC,CAAA;IAEF,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;AAC5C,CAAC,CAAC,CAAA"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { autoZoom, createNarration, hide, resetZoom, video, voices, zoomTo, } from 'screenci';
|
|
2
2
|
const narration = createNarration({
|
|
3
3
|
voice: { name: voices.Sophie },
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
focus: 'Further down, the guide explains how to keep CI recordings deterministic and repeatable.',
|
|
10
|
-
next: 'The related publishing guide for public delivery is linked at the end of the page.',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
4
|
+
en: {
|
|
5
|
+
intro: 'This video highlights the default GitHub Actions recording workflow described in the CI Setup page.',
|
|
6
|
+
source: 'The source details let you compare the final walkthrough with the authoring script.',
|
|
7
|
+
focus: 'Further down, the guide explains how to keep CI recordings deterministic and repeatable.',
|
|
8
|
+
next: 'The related publishing guide for public delivery is linked at the end of the page.',
|
|
13
9
|
},
|
|
14
10
|
});
|
|
15
11
|
video('CI setup guide', async ({ page }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-setup.video.js","sourceRoot":"","sources":["../../../docs/video-sources/ci-setup.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,
|
|
1
|
+
{"version":3,"file":"ci-setup.video.js","sourceRoot":"","sources":["../../../docs/video-sources/ci-setup.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,EAAE,EAAE;QACF,KAAK,EACH,qGAAqG;QACvG,MAAM,EACJ,qFAAqF;QACvF,KAAK,EACH,0FAA0F;QAC5F,IAAI,EAAE,oFAAoF;KAC3F;CACF,CAAC,CAAA;AAEF,KAAK,CAAC,gBAAgB,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACzC,MAAM,IAAI,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,IAAI,CAAC,IAAI,CAAC,oCAAoC,CAAC,CAAA;QACrD,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;IAC5C,CAAC,CAAC,CAAA;IAEF,MAAM,SAAS,CAAC,KAAK,EAAE,CAAA;IACvB,MAAM,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,CAAA;IAC9B,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,CAAA;IACrD,CAAC,CAAC,CAAA;IACF,MAAM,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,CAAA;IAE5B,MAAM,SAAS,CAAC,KAAK,EAAE,CAAA;IACvB,MAAM,MAAM,CACV,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,+BAA+B,EAAE,CAAC,CACrE,CAAA;IACD,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;IAC9B,MAAM,SAAS,EAAE,CAAA;IAEjB,MAAM,SAAS,CAAC,IAAI,EAAE,CAAA;IACtB,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI;aACP,OAAO,CAAC,sBAAsB,CAAC;aAC/B,SAAS,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;aAClE,KAAK,EAAE;aACP,KAAK,EAAE,CAAA;IACZ,CAAC,CAAC,CAAA;IAEF,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;AAC5C,CAAC,CAAC,CAAA"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { autoZoom, createNarration, hide, resetZoom, video, voices, zoomTo, } from 'screenci';
|
|
2
2
|
const narration = createNarration({
|
|
3
3
|
voice: { name: voices.Sophie },
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
focus: 'One of the key command sections covers screenci test and the normal local iteration loop.',
|
|
10
|
-
next: 'When the guide is done, it links back to the Record and Publish workflow.',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
4
|
+
en: {
|
|
5
|
+
intro: 'This video introduces the CLI reference and the most common ScreenCI commands.',
|
|
6
|
+
source: 'The page includes the ScreenCI source used to walk through the reference.',
|
|
7
|
+
focus: 'One of the key command sections covers screenci test and the normal local iteration loop.',
|
|
8
|
+
next: 'When the guide is done, it links back to the Record and Publish workflow.',
|
|
13
9
|
},
|
|
14
10
|
});
|
|
15
11
|
video('CLI reference walkthrough', async ({ page }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.video.js","sourceRoot":"","sources":["../../../docs/video-sources/cli.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,
|
|
1
|
+
{"version":3,"file":"cli.video.js","sourceRoot":"","sources":["../../../docs/video-sources/cli.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,EAAE,EAAE;QACF,KAAK,EACH,gFAAgF;QAClF,MAAM,EACJ,2EAA2E;QAC7E,KAAK,EACH,2FAA2F;QAC7F,IAAI,EAAE,2EAA2E;KAClF;CACF,CAAC,CAAA;AAEF,KAAK,CAAC,2BAA2B,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACpD,MAAM,IAAI,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,IAAI,CAAC,IAAI,CAAC,yCAAyC,CAAC,CAAA;QAC1D,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;IAC5C,CAAC,CAAC,CAAA;IAEF,MAAM,SAAS,CAAC,KAAK,EAAE,CAAA;IACvB,MAAM,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,CAAA;IAC9B,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,CAAA;IACrD,CAAC,CAAC,CAAA;IACF,MAAM,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,CAAA;IAE5B,MAAM,SAAS,CAAC,KAAK,EAAE,CAAA;IACvB,MAAM,MAAM,CACV,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,gCAAgC,EAAE,CAAC,CACtE,CAAA;IACD,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;IAC9B,MAAM,SAAS,EAAE,CAAA;IAEjB,MAAM,SAAS,CAAC,IAAI,EAAE,CAAA;IACtB,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI;aACP,OAAO,CAAC,sBAAsB,CAAC;aAC/B,SAAS,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;aAC9D,KAAK,EAAE;aACP,KAAK,EAAE,CAAA;IACZ,CAAC,CAAC,CAAA;IAEF,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;AAC5C,CAAC,CAAC,CAAA"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { autoZoom, createNarration, hide, resetZoom, video, voices, zoomTo, } from 'screenci';
|
|
2
2
|
const narration = createNarration({
|
|
3
3
|
voice: { name: voices.Sophie },
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
section: 'One of the core sections focuses on generating videos directly from source code in the same repository.',
|
|
10
|
-
next: 'From here, the next step is learning how to run and debug the draft locally.',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
4
|
+
en: {
|
|
5
|
+
intro: 'This video shows how the Generating Videos guide covers source based, URL based, and codegen driven starting points.',
|
|
6
|
+
source: 'The embedded source shows the exact ScreenCI script behind this documentation walkthrough.',
|
|
7
|
+
section: 'One of the core sections focuses on generating videos directly from source code in the same repository.',
|
|
8
|
+
next: 'From here, the next step is learning how to run and debug the draft locally.',
|
|
13
9
|
},
|
|
14
10
|
});
|
|
15
11
|
video('Generating videos guide', async ({ page }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generating-videos.video.js","sourceRoot":"","sources":["../../../docs/video-sources/generating-videos.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,
|
|
1
|
+
{"version":3,"file":"generating-videos.video.js","sourceRoot":"","sources":["../../../docs/video-sources/generating-videos.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,EAAE,EAAE;QACF,KAAK,EACH,sHAAsH;QACxH,MAAM,EACJ,4FAA4F;QAC9F,OAAO,EACL,yGAAyG;QAC3G,IAAI,EAAE,8EAA8E;KACrF;CACF,CAAC,CAAA;AAEF,KAAK,CAAC,yBAA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|
|
2
2
|
const narration = createNarration({
|
|
3
3
|
voice: { name: voices.Sophie },
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
es: {
|
|
11
|
-
cues: {
|
|
12
|
-
docs: 'Aqui es donde encontrar la documentacion de ScreenCI [pronounce: screen see eye].',
|
|
13
|
-
},
|
|
14
|
-
},
|
|
4
|
+
en: {
|
|
5
|
+
docs: 'Here is where to find ScreenCI [pronounce: screen see eye] docs.',
|
|
6
|
+
},
|
|
7
|
+
es: {
|
|
8
|
+
docs: 'Aqui es donde encontrar la documentacion de ScreenCI [pronounce: screen see eye].',
|
|
15
9
|
},
|
|
16
10
|
});
|
|
17
11
|
video('How to find docs', async ({ page }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installation.video.js","sourceRoot":"","sources":["../../../docs/video-sources/installation.video.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEzE,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,
|
|
1
|
+
{"version":3,"file":"installation.video.js","sourceRoot":"","sources":["../../../docs/video-sources/installation.video.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEzE,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,EAAE,EAAE;QACF,IAAI,EAAE,kEAAkE;KACzE;IACD,EAAE,EAAE;QACF,IAAI,EAAE,mFAAmF;KAC1F;CACF,CAAC,CAAA;AAEF,KAAK,CAAC,kBAAkB,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC3C,MAAM,IAAI,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA;QACxC,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;IAC5C,CAAC,CAAC,CAAA;IAEF,MAAM,SAAS,CAAC,IAAI,EAAE,CAAA;IAEtB,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC,KAAK,EAAE,CAAA;IACtE,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -1,44 +1,34 @@
|
|
|
1
1
|
import { autoZoom, createNarration, hide, video, voices } from 'screenci';
|
|
2
2
|
const narration = createNarration({
|
|
3
3
|
voice: { name: voices.Sophie, style: 'Clear, friendly product walkthrough' },
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
es: {
|
|
11
|
-
cues: {
|
|
12
|
-
docs: 'Aqui es donde encontrar la documentacion de ScreenCI [pronounce: screen see eye].',
|
|
13
|
-
},
|
|
14
|
-
},
|
|
4
|
+
en: {
|
|
5
|
+
docs: 'Here is where to find ScreenCI [pronounce: screen see eye] docs.',
|
|
6
|
+
},
|
|
7
|
+
es: {
|
|
8
|
+
docs: 'Aqui es donde encontrar la documentacion de ScreenCI [pronounce: screen see eye].',
|
|
15
9
|
},
|
|
16
10
|
});
|
|
17
|
-
async
|
|
18
|
-
|
|
19
|
-
await
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
document.documentElement.setAttribute('data-theme', nextTheme);
|
|
27
|
-
}, theme);
|
|
28
|
-
await page.locator('[data-hero-video]').evaluate((element) => {
|
|
29
|
-
if (!(element instanceof HTMLVideoElement)) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
element.pause();
|
|
33
|
-
element.currentTime = 0;
|
|
34
|
-
});
|
|
11
|
+
video('Landing light', async ({ page }) => {
|
|
12
|
+
await hide(async () => {
|
|
13
|
+
await page.goto('https://screenci.com/');
|
|
14
|
+
await page.waitForLoadState('networkidle');
|
|
15
|
+
await page.evaluate(() => {
|
|
16
|
+
document.cookie = 'themePreference=light; path=/';
|
|
17
|
+
localStorage.setItem('starlight-theme', 'light');
|
|
18
|
+
document.documentElement.classList.remove('dark');
|
|
19
|
+
document.documentElement.setAttribute('data-theme', 'light');
|
|
35
20
|
});
|
|
36
|
-
await
|
|
37
|
-
|
|
38
|
-
|
|
21
|
+
await page.locator('[data-hero-video]').evaluate((element) => {
|
|
22
|
+
if (!(element instanceof HTMLVideoElement)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
element.pause();
|
|
26
|
+
element.currentTime = 0;
|
|
39
27
|
});
|
|
40
28
|
});
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
29
|
+
await narration.docs();
|
|
30
|
+
await autoZoom(async () => {
|
|
31
|
+
await page.getByRole('link', { name: 'View Documentation' }).click();
|
|
32
|
+
});
|
|
33
|
+
});
|
|
44
34
|
//# sourceMappingURL=landing.video.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"landing.video.js","sourceRoot":"","sources":["../../../docs/video-sources/landing.video.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEzE,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,qCAAqC,EAAE;IAC5E,
|
|
1
|
+
{"version":3,"file":"landing.video.js","sourceRoot":"","sources":["../../../docs/video-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AEF,MAAM,SAAS,CAAC,IAAI,EAAE,CAAA;IAEtB,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC,KAAK,EAAE,CAAA;IACtE,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { autoZoom, createNarration, hide, resetZoom, video, voices, zoomTo, } from 'screenci';
|
|
2
2
|
const narration = createNarration({
|
|
3
3
|
voice: { name: voices.Sophie },
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
focus: 'One of the most important sections explains how to overlap spoken cues with visible motion.',
|
|
10
|
-
next: 'The next guide expands from narration into camera movement and zooming.',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
4
|
+
en: {
|
|
5
|
+
intro: 'This video introduces the Narration and Localization guide for cue based speech and multi language output.',
|
|
6
|
+
source: 'The source block shows how the guide video itself uses narration cues and typed source.',
|
|
7
|
+
focus: 'One of the most important sections explains how to overlap spoken cues with visible motion.',
|
|
8
|
+
next: 'The next guide expands from narration into camera movement and zooming.',
|
|
13
9
|
},
|
|
14
10
|
});
|
|
15
11
|
video('Narration and localization guide', async ({ page }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"narration-and-localization.video.js","sourceRoot":"","sources":["../../../docs/video-sources/narration-and-localization.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,
|
|
1
|
+
{"version":3,"file":"narration-and-localization.video.js","sourceRoot":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C,IAAI,EAAE,CAAA;IACtB,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI;aACP,SAAS,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;aAC9D,KAAK,EAAE;aACP,KAAK,EAAE,CAAA;IACZ,CAAC,CAAC,CAAA;IAEF,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;AAC5C,CAAC,CAAC,CAAA"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { autoZoom, createNarration, hide, resetZoom, video, voices, zoomTo, } from 'screenci';
|
|
2
2
|
const narration = createNarration({
|
|
3
3
|
voice: { name: voices.Sophie },
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
focus: 'The embed example is the core section when you want to place a public ScreenCI video into another site.',
|
|
10
|
-
next: 'The page links directly to the endpoint level Public Delivery API reference.',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
4
|
+
en: {
|
|
5
|
+
intro: 'This video shows how the Public URLs and Embeds guide explains stable published delivery links.',
|
|
6
|
+
source: 'The source details make it easy to compare the written guide with the authored walkthrough.',
|
|
7
|
+
focus: 'The embed example is the core section when you want to place a public ScreenCI video into another site.',
|
|
8
|
+
next: 'The page links directly to the endpoint level Public Delivery API reference.',
|
|
13
9
|
},
|
|
14
10
|
});
|
|
15
11
|
video('Public URLs and embeds guide', async ({ page }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-urls-and-embeds.video.js","sourceRoot":"","sources":["../../../docs/video-sources/public-urls-and-embeds.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,
|
|
1
|
+
{"version":3,"file":"public-urls-and-embeds.video.js","sourceRoot":"","sources":["../../../docs/video-sources/public-urls-and-embeds.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,EAAE,EAAE;QACF,KAAK,EACH,iGAAiG;QACnG,MAAM,EACJ,6FAA6F;QAC/F,KAAK,EACH,yGAAyG;QAC3G,IAAI,EAAE,8EAA8E;KACrF;CACF,CAAC,CAAA;AAEF,KAAK,CAAC,8BAA8B,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACvD,MAAM,IAAI,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,IAAI,CAAC,IAAI,CAAC,yDAAyD,CAAC,CAAA;QAC1E,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;IAC5C,CAAC,CAAC,CAAA;IAEF,MAAM,SAAS,CAAC,KAAK,EAAE,CAAA;IACvB,MAAM,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,CAAA;IAC9B,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,CAAA;IACrD,CAAC,CAAC,CAAA;IACF,MAAM,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,CAAA;IAE5B,MAAM,SAAS,CAAC,KAAK,EAAE,CAAA;IACvB,MAAM,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC,CAAA;IAClE,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;IAC9B,MAAM,SAAS,EAAE,CAAA;IAEjB,MAAM,SAAS,CAAC,IAAI,EAAE,CAAA;IACtB,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI;aACP,OAAO,CAAC,sBAAsB,CAAC;aAC/B,SAAS,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;aAC/D,KAAK,EAAE;aACP,KAAK,EAAE,CAAA;IACZ,CAAC,CAAC,CAAA;IAEF,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;AAC5C,CAAC,CAAC,CAAA"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { autoZoom, createNarration, hide, resetZoom, video, voices, zoomTo, } from 'screenci';
|
|
2
2
|
const narration = createNarration({
|
|
3
3
|
voice: { name: voices.Sophie },
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
focus: 'One section explains what gets rendered after a successful recording run.',
|
|
10
|
-
next: 'The next linked page covers the GitHub Actions workflow used for CI recording.',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
4
|
+
en: {
|
|
5
|
+
intro: 'This video covers the point where local test runs become final ScreenCI recordings.',
|
|
6
|
+
source: 'The page also exposes the underlying ScreenCI source for this walkthrough.',
|
|
7
|
+
focus: 'One section explains what gets rendered after a successful recording run.',
|
|
8
|
+
next: 'The next linked page covers the GitHub Actions workflow used for CI recording.',
|
|
13
9
|
},
|
|
14
10
|
});
|
|
15
11
|
video('Record and publish guide', async ({ page }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-and-publish.video.js","sourceRoot":"","sources":["../../../docs/video-sources/record-and-publish.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,
|
|
1
|
+
{"version":3,"file":"record-and-publish.video.js","sourceRoot":"","sources":["../../../docs/video-sources/record-and-publish.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,EAAE,EAAE;QACF,KAAK,EACH,qFAAqF;QACvF,MAAM,EACJ,4EAA4E;QAC9E,KAAK,EACH,2EAA2E;QAC7E,IAAI,EAAE,gFAAgF;KACvF;CACF,CAAC,CAAA;AAEF,KAAK,CAAC,0BAA0B,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACnD,MAAM,IAAI,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,IAAI,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAA;QAC/D,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;IAC5C,CAAC,CAAC,CAAA;IAEF,MAAM,SAAS,CAAC,KAAK,EAAE,CAAA;IACvB,MAAM,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,CAAA;IAC9B,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,CAAA;IACrD,CAAC,CAAC,CAAA;IACF,MAAM,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,CAAA;IAE5B,MAAM,SAAS,CAAC,KAAK,EAAE,CAAA;IACvB,MAAM,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC,CAAA;IACvE,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;IAC9B,MAAM,SAAS,EAAE,CAAA;IAEjB,MAAM,SAAS,CAAC,IAAI,EAAE,CAAA;IACtB,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI;aACP,OAAO,CAAC,sBAAsB,CAAC;aAC/B,SAAS,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;aACpD,KAAK,EAAE;aACP,KAAK,EAAE,CAAA;IACZ,CAAC,CAAC,CAAA;IAEF,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;AAC5C,CAAC,CAAC,CAAA"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { autoZoom, createNarration, hide, resetZoom, video, voices, zoomTo, } from 'screenci';
|
|
2
2
|
const narration = createNarration({
|
|
3
3
|
voice: { name: voices.Sophie },
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
focus: 'A key section shows how to run one file or a filtered subset while you iterate.',
|
|
10
|
-
next: 'Once the local flow looks right, the docs move on to recording and publishing.',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
4
|
+
en: {
|
|
5
|
+
intro: 'This video walks through the local authoring loop in the Run and Debug Videos guide.',
|
|
6
|
+
source: 'As with the other docs pages, the ScreenCI source is available right on the page.',
|
|
7
|
+
focus: 'A key section shows how to run one file or a filtered subset while you iterate.',
|
|
8
|
+
next: 'Once the local flow looks right, the docs move on to recording and publishing.',
|
|
13
9
|
},
|
|
14
10
|
});
|
|
15
11
|
video('Run and debug videos guide', async ({ page }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-and-debug-videos.video.js","sourceRoot":"","sources":["../../../docs/video-sources/run-and-debug-videos.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,
|
|
1
|
+
{"version":3,"file":"run-and-debug-videos.video.js","sourceRoot":"","sources":["../../../docs/video-sources/run-and-debug-videos.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,EAAE,EAAE;QACF,KAAK,EACH,sFAAsF;QACxF,MAAM,EACJ,mFAAmF;QACrF,KAAK,EACH,iFAAiF;QACnF,IAAI,EAAE,gFAAgF;KACvF;CACF,CAAC,CAAA;AAEF,KAAK,CAAC,4BAA4B,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACrD,MAAM,IAAI,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,IAAI,CAAC,IAAI,CAAC,gDAAgD,CAAC,CAAA;QACjE,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;IAC5C,CAAC,CAAC,CAAA;IAEF,MAAM,SAAS,CAAC,KAAK,EAAE,CAAA;IACvB,MAAM,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,CAAA;IAC9B,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,CAAA;IACrD,CAAC,CAAC,CAAA;IACF,MAAM,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,CAAA;IAE5B,MAAM,SAAS,CAAC,KAAK,EAAE,CAAA;IACvB,MAAM,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC,CAAC,CAAA;IAC7E,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;IAC9B,MAAM,SAAS,EAAE,CAAA;IAEjB,MAAM,SAAS,CAAC,IAAI,EAAE,CAAA;IACtB,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI;aACP,OAAO,CAAC,sBAAsB,CAAC;aAC/B,SAAS,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;aAC9D,KAAK,EAAE;aACP,KAAK,EAAE,CAAA;IACZ,CAAC,CAAC,CAAA;IAEF,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;AAC5C,CAAC,CAAC,CAAA"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { autoZoom, createNarration, hide, resetZoom, video, voices, zoomTo, } from 'screenci';
|
|
2
2
|
const narration = createNarration({
|
|
3
3
|
voice: { name: voices.Sophie },
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
pacing: 'Further down, the pacing section explains how to balance waits, narration, and visible timing.',
|
|
10
|
-
next: 'The guide then points you to running and debugging videos locally.',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
4
|
+
en: {
|
|
5
|
+
intro: 'This video introduces the Write Video Scripts guide and its first working example.',
|
|
6
|
+
source: 'The page includes the full ScreenCI source so you can inspect the script while reading the guide.',
|
|
7
|
+
pacing: 'Further down, the pacing section explains how to balance waits, narration, and visible timing.',
|
|
8
|
+
next: 'The guide then points you to running and debugging videos locally.',
|
|
13
9
|
},
|
|
14
10
|
});
|
|
15
11
|
video('Write video scripts guide', async ({ page }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-video-scripts.video.js","sourceRoot":"","sources":["../../../docs/video-sources/write-video-scripts.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,
|
|
1
|
+
{"version":3,"file":"write-video-scripts.video.js","sourceRoot":"","sources":["../../../docs/video-sources/write-video-scripts.video.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,EAAE,EAAE;QACF,KAAK,EACH,oFAAoF;QACtF,MAAM,EACJ,mGAAmG;QACrG,MAAM,EACJ,gGAAgG;QAClG,IAAI,EAAE,oEAAoE;KAC3E;CACF,CAAC,CAAA;AAEF,KAAK,CAAC,2BAA2B,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACpD,MAAM,IAAI,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,IAAI,CAAC,IAAI,CAAC,+CAA+C,CAAC,CAAA;QAChE,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;IAC5C,CAAC,CAAC,CAAA;IAEF,MAAM,SAAS,CAAC,KAAK,EAAE,CAAA;IACvB,MAAM,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,CAAA;IAC9B,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,CAAA;IACrD,CAAC,CAAC,CAAA;IACF,MAAM,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,CAAA;IAE5B,MAAM,SAAS,CAAC,MAAM,EAAE,CAAA;IACxB,MAAM,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAA;IACnE,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;IAC9B,MAAM,SAAS,EAAE,CAAA;IAEjB,MAAM,SAAS,CAAC,IAAI,EAAE,CAAA;IACtB,MAAM,QAAQ,CAAC,KAAK,IAAI,EAAE;QACxB,MAAM,IAAI;aACP,SAAS,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;aAChE,KAAK,EAAE;aACP,KAAK,EAAE,CAAA;IACZ,CAAC,CAAC,CAAA;IAEF,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;AAC5C,CAAC,CAAC,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { AspectRatio, FPS, Quality, RecordUploadPolicy, RecordOptions, RenderOptions, ScreenCIConfig, ExtendedScreenCIConfig, AutoZoomOptions, Easing, PostClickMove, ClickBeforeFillOption, } from './src/types.js';
|
|
2
|
-
export { voices, modelTypes
|
|
2
|
+
export { voices, modelTypes } from './src/voices.js';
|
|
3
3
|
export type { VoiceKey, CustomVoiceRef, ModelType } from './src/voices.js';
|
|
4
4
|
export { defineConfig } from './src/config.js';
|
|
5
5
|
export { video } from './src/video.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["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AU,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Re-export voices
|
|
2
|
-
export { voices, modelTypes
|
|
2
|
+
export { voices, modelTypes } from './src/voices.js';
|
|
3
3
|
// Re-export config function
|
|
4
4
|
export { defineConfig } from './src/config.js';
|
|
5
5
|
// Re-export video fixture and narration cue
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAgBA,mBAAmB;AACnB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAgBA,mBAAmB;AACnB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAGpD,4BAA4B;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,4CAA4C;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}
|
package/dist/src/cue.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IEventRecorder } from './events.js';
|
|
2
|
-
import type
|
|
2
|
+
import { type VoiceKey, type Lang, type CustomVoiceRef, type ModelType } from './voices.js';
|
|
3
3
|
export declare const ONE_FRAME_MS: number;
|
|
4
4
|
export declare function setSleepFn(fn: (ms: number) => void): void;
|
|
5
5
|
export declare function setActiveCueRecorder(recorder: IEventRecorder | null): void;
|
|
@@ -123,25 +123,25 @@ type UnionToIntersection<U> = (U extends unknown ? (x: U) => void : never) exten
|
|
|
123
123
|
*/
|
|
124
124
|
type LanguageEntryBase = {
|
|
125
125
|
voice?: LangNarrationOverride;
|
|
126
|
-
region?: string;
|
|
127
126
|
};
|
|
128
|
-
type
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
type
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}[
|
|
136
|
-
type LanguagesMap<M extends Partial<Record<Lang,
|
|
137
|
-
[L in
|
|
127
|
+
type LanguageMetadataKey = keyof LanguageEntryBase;
|
|
128
|
+
type NarrationLanguageInput = LanguageEntryBase & Record<string, unknown>;
|
|
129
|
+
type OmitLanguageMetadata<T extends NarrationLanguageInput> = Omit<T, LanguageMetadataKey>;
|
|
130
|
+
type EnsureCueRecord<T> = T extends Record<string, CueMapValue> ? T : never;
|
|
131
|
+
type LanguageRootKeys<M> = Extract<keyof M, Lang>;
|
|
132
|
+
type AllCues<M extends Partial<Record<Lang, NarrationLanguageInput>>> = EnsureCueRecord<UnionToIntersection<{
|
|
133
|
+
[L in LanguageRootKeys<M>]-?: NonNullable<M[L]> extends NarrationLanguageInput ? Record<keyof OmitLanguageMetadata<NonNullable<M[L]>> & string, CueMapValue> : never;
|
|
134
|
+
}[LanguageRootKeys<M>]>>;
|
|
135
|
+
type LanguagesMap<M extends Partial<Record<Lang, NarrationLanguageInput>>> = M & {
|
|
136
|
+
[L in LanguageRootKeys<M>]-?: {
|
|
138
137
|
voice?: LangNarrationOverride;
|
|
139
|
-
/** BCP-47 region code for TTS synthesis, e.g. `languageRegions.en.US`. */
|
|
140
|
-
region?: string;
|
|
141
138
|
} & {
|
|
142
|
-
|
|
143
|
-
}
|
|
139
|
+
[K in keyof OmitLanguageMetadata<NonNullable<M[L]>>]: CueMapValue;
|
|
140
|
+
} & AllCues<M>;
|
|
144
141
|
};
|
|
142
|
+
type NarrationInput<M extends Partial<Record<Lang, NarrationLanguageInput>>> = {
|
|
143
|
+
voice?: TopLevelVoiceConfig;
|
|
144
|
+
} & LanguagesMap<M>;
|
|
145
145
|
/**
|
|
146
146
|
* Creates a set of typed narration controllers, one per key in the map.
|
|
147
147
|
*
|
|
@@ -160,12 +160,11 @@ type LanguagesMap<M extends Partial<Record<Lang, LanguageCuesEntry<Record<string
|
|
|
160
160
|
* ```ts
|
|
161
161
|
* const narration = createNarration({
|
|
162
162
|
* voice: { name: voices.Ava },
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
* },
|
|
163
|
+
* en: { intro: 'Welcome.', next: 'Click here.' },
|
|
164
|
+
* fi: {
|
|
165
|
+
* voice: { name: voices.Nora, seed: 42 },
|
|
166
|
+
* intro: 'Tervetuloa.',
|
|
167
|
+
* next: 'Napsauta tästä.',
|
|
169
168
|
* },
|
|
170
169
|
* })
|
|
171
170
|
*
|
|
@@ -182,9 +181,6 @@ type LanguagesMap<M extends Partial<Record<Lang, LanguageCuesEntry<Record<string
|
|
|
182
181
|
* await page.click('#start')
|
|
183
182
|
* ```
|
|
184
183
|
*/
|
|
185
|
-
export declare function createNarration<M extends Partial<Record<Lang,
|
|
186
|
-
voice: TopLevelVoiceConfig;
|
|
187
|
-
languages: LanguagesMap<M>;
|
|
188
|
-
}): Cues<AllCues<M>>;
|
|
184
|
+
export declare function createNarration<M extends Partial<Record<Lang, NarrationLanguageInput>>>(input: NarrationInput<M>): Cues<AllCues<M>>;
|
|
189
185
|
export {};
|
|
190
186
|
//# sourceMappingURL=cue.d.ts.map
|