screenci 0.0.43 → 0.0.45
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/LICENCE +21 -0
- package/README.md +74 -195
- package/dist/cli.d.ts +20 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +685 -464
- package/dist/cli.js.map +1 -1
- package/dist/docs/manifest.d.ts +521 -0
- package/dist/docs/manifest.d.ts.map +1 -0
- package/dist/docs/manifest.js +237 -0
- package/dist/docs/manifest.js.map +1 -0
- package/dist/docs/video-sources/camera-and-zooming.video.d.ts +2 -0
- package/dist/docs/video-sources/camera-and-zooming.video.d.ts.map +1 -0
- package/dist/docs/video-sources/camera-and-zooming.video.js +37 -0
- package/dist/docs/video-sources/camera-and-zooming.video.js.map +1 -0
- package/dist/docs/video-sources/ci-setup.video.d.ts +2 -0
- package/dist/docs/video-sources/ci-setup.video.d.ts.map +1 -0
- package/dist/docs/video-sources/ci-setup.video.js +37 -0
- package/dist/docs/video-sources/ci-setup.video.js.map +1 -0
- package/dist/docs/video-sources/cli.video.d.ts +2 -0
- package/dist/docs/video-sources/cli.video.d.ts.map +1 -0
- package/dist/docs/video-sources/cli.video.js +37 -0
- package/dist/docs/video-sources/cli.video.js.map +1 -0
- package/dist/docs/video-sources/docs-shared.d.ts +5 -0
- package/dist/docs/video-sources/docs-shared.d.ts.map +1 -0
- package/dist/docs/video-sources/docs-shared.js +14 -0
- package/dist/docs/video-sources/docs-shared.js.map +1 -0
- package/dist/docs/video-sources/generating-videos.video.d.ts +2 -0
- package/dist/docs/video-sources/generating-videos.video.d.ts.map +1 -0
- package/dist/docs/video-sources/generating-videos.video.js +37 -0
- package/dist/docs/video-sources/generating-videos.video.js.map +1 -0
- package/dist/docs/video-sources/installation.video.d.ts +2 -0
- package/dist/docs/video-sources/installation.video.d.ts.map +1 -0
- package/dist/docs/video-sources/installation.video.js +26 -0
- package/dist/docs/video-sources/installation.video.js.map +1 -0
- package/dist/docs/video-sources/narration-and-localization.video.d.ts +2 -0
- package/dist/docs/video-sources/narration-and-localization.video.d.ts.map +1 -0
- package/dist/docs/video-sources/narration-and-localization.video.js +40 -0
- package/dist/docs/video-sources/narration-and-localization.video.js.map +1 -0
- package/dist/docs/video-sources/public-urls-and-embeds.video.d.ts +2 -0
- package/dist/docs/video-sources/public-urls-and-embeds.video.d.ts.map +1 -0
- package/dist/docs/video-sources/public-urls-and-embeds.video.js +37 -0
- package/dist/docs/video-sources/public-urls-and-embeds.video.js.map +1 -0
- package/dist/docs/video-sources/record-and-publish.video.d.ts +2 -0
- package/dist/docs/video-sources/record-and-publish.video.d.ts.map +1 -0
- package/dist/docs/video-sources/record-and-publish.video.js +37 -0
- package/dist/docs/video-sources/record-and-publish.video.js.map +1 -0
- package/dist/docs/video-sources/run-and-debug-videos.video.d.ts +2 -0
- package/dist/docs/video-sources/run-and-debug-videos.video.d.ts.map +1 -0
- package/dist/docs/video-sources/run-and-debug-videos.video.js +37 -0
- package/dist/docs/video-sources/run-and-debug-videos.video.js.map +1 -0
- package/dist/docs/video-sources/write-video-scripts.video.d.ts +2 -0
- package/dist/docs/video-sources/write-video-scripts.video.d.ts.map +1 -0
- package/dist/docs/video-sources/write-video-scripts.video.js +40 -0
- package/dist/docs/video-sources/write-video-scripts.video.js.map +1 -0
- package/dist/docs/videos.d.ts +56 -0
- package/dist/docs/videos.d.ts.map +1 -0
- package/dist/docs/videos.js +37 -0
- package/dist/docs/videos.js.map +1 -0
- package/dist/index.d.ts +4 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -6
- package/dist/index.js.map +1 -1
- package/dist/src/asset.d.ts.map +1 -1
- package/dist/src/asset.js +3 -4
- package/dist/src/asset.js.map +1 -1
- package/dist/src/autoZoom.d.ts +3 -33
- package/dist/src/autoZoom.d.ts.map +1 -1
- package/dist/src/autoZoom.js +46 -51
- package/dist/src/autoZoom.js.map +1 -1
- package/dist/src/changeFocus.d.ts.map +1 -1
- package/dist/src/changeFocus.js +5 -5
- package/dist/src/changeFocus.js.map +1 -1
- package/dist/src/config.d.ts +5 -7
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +41 -71
- package/dist/src/config.js.map +1 -1
- package/dist/src/cue.d.ts +13 -26
- package/dist/src/cue.d.ts.map +1 -1
- package/dist/src/cue.js +70 -101
- package/dist/src/cue.js.map +1 -1
- package/dist/src/customVoiceRef.d.ts +3 -0
- package/dist/src/customVoiceRef.d.ts.map +1 -0
- package/dist/src/customVoiceRef.js +7 -0
- package/dist/src/customVoiceRef.js.map +1 -0
- package/dist/src/defaults.d.ts +5 -9
- package/dist/src/defaults.d.ts.map +1 -1
- package/dist/src/defaults.js +11 -9
- package/dist/src/defaults.js.map +1 -1
- package/dist/src/events.d.ts +7 -6
- package/dist/src/events.d.ts.map +1 -1
- package/dist/src/events.js +17 -0
- package/dist/src/events.js.map +1 -1
- package/dist/src/fileSystemName.d.ts +2 -0
- package/dist/src/fileSystemName.d.ts.map +1 -0
- package/dist/src/fileSystemName.js +44 -0
- package/dist/src/fileSystemName.js.map +1 -0
- package/dist/src/hide.d.ts +1 -1
- package/dist/src/hide.d.ts.map +1 -1
- package/dist/src/hide.js +12 -15
- package/dist/src/hide.js.map +1 -1
- package/dist/src/instrument.d.ts +1 -0
- package/dist/src/instrument.d.ts.map +1 -1
- package/dist/src/instrument.js +33 -17
- package/dist/src/instrument.js.map +1 -1
- package/dist/src/manualZoom.d.ts.map +1 -1
- package/dist/src/manualZoom.js +13 -13
- package/dist/src/manualZoom.js.map +1 -1
- package/dist/src/mouse.d.ts.map +1 -1
- package/dist/src/mouse.js +4 -1
- package/dist/src/mouse.js.map +1 -1
- package/dist/src/recording.d.ts +2 -2
- package/dist/src/recording.d.ts.map +1 -1
- package/dist/src/runtimeContext.d.ts +81 -0
- package/dist/src/runtimeContext.d.ts.map +1 -0
- package/dist/src/runtimeContext.js +95 -0
- package/dist/src/runtimeContext.js.map +1 -0
- package/dist/src/runtimeMode.d.ts +8 -0
- package/dist/src/runtimeMode.d.ts.map +1 -0
- package/dist/src/runtimeMode.js +22 -0
- package/dist/src/runtimeMode.js.map +1 -0
- package/dist/src/titleValidation.d.ts +3 -0
- package/dist/src/titleValidation.d.ts.map +1 -0
- package/dist/src/titleValidation.js +19 -0
- package/dist/src/titleValidation.js.map +1 -0
- package/dist/src/types.d.ts +27 -15
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js.map +1 -1
- package/dist/src/video.d.ts +6 -1
- package/dist/src/video.d.ts.map +1 -1
- package/dist/src/video.js +94 -46
- package/dist/src/video.js.map +1 -1
- package/dist/src/voices.d.ts +8 -11
- package/dist/src/voices.d.ts.map +1 -1
- package/dist/src/voices.js +13 -8
- package/dist/src/voices.js.map +1 -1
- package/dist/src/zoom.d.ts +1 -1
- package/dist/src/zoom.d.ts.map +1 -1
- package/dist/test-fixtures/record-all-or-nothing.config.d.ts +8 -0
- package/dist/test-fixtures/record-all-or-nothing.config.d.ts.map +1 -0
- package/dist/test-fixtures/record-all-or-nothing.config.js +7 -0
- package/dist/test-fixtures/record-all-or-nothing.config.js.map +1 -0
- package/dist/test-fixtures/record-upload-all-or-nothing.config.d.ts +8 -0
- package/dist/test-fixtures/record-upload-all-or-nothing.config.d.ts.map +1 -0
- package/dist/test-fixtures/record-upload-all-or-nothing.config.js +7 -0
- package/dist/test-fixtures/record-upload-all-or-nothing.config.js.map +1 -0
- package/dist/test-fixtures/record-upload.config.d.ts +5 -0
- package/dist/test-fixtures/record-upload.config.d.ts.map +1 -0
- package/dist/test-fixtures/record-upload.config.js +4 -0
- package/dist/test-fixtures/record-upload.config.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/skills/screenci/SKILL.md +6 -1
- package/skills/screenci/references/init.md +10 -12
- package/dist/src/reporter.d.ts +0 -9
- package/dist/src/reporter.d.ts.map +0 -1
- package/dist/src/reporter.js +0 -50
- package/dist/src/reporter.js.map +0 -1
- package/dist/src/sanitize.d.ts +0 -5
- package/dist/src/sanitize.d.ts.map +0 -1
- package/dist/src/sanitize.js +0 -11
- package/dist/src/sanitize.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-and-publish.video.d.ts","sourceRoot":"","sources":["../../../docs/video-sources/record-and-publish.video.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { autoZoom, createNarration, hide, resetZoom, video, voices, zoomTo, } from 'screenci';
|
|
2
|
+
import { clickContentLink, openSourceDetails, waitForDocHeading, } from './docs-shared';
|
|
3
|
+
const narration = createNarration({
|
|
4
|
+
voice: { name: voices.Sophie },
|
|
5
|
+
languages: {
|
|
6
|
+
en: {
|
|
7
|
+
cues: {
|
|
8
|
+
intro: 'This video covers the point where local test runs become final ScreenCI recordings.',
|
|
9
|
+
source: 'The page also exposes the underlying ScreenCI source for this walkthrough.',
|
|
10
|
+
focus: 'One section explains what gets rendered after a successful recording run.',
|
|
11
|
+
next: 'The next linked page covers the GitHub Actions workflow used for CI recording.',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
video('Record and publish guide', async ({ page }) => {
|
|
17
|
+
await hide(async () => {
|
|
18
|
+
await page.goto('/docs/record-and-publish');
|
|
19
|
+
await waitForDocHeading(page, 'Record and Publish');
|
|
20
|
+
});
|
|
21
|
+
await narration.intro();
|
|
22
|
+
await narration.source.start();
|
|
23
|
+
await autoZoom(async () => {
|
|
24
|
+
await openSourceDetails(page);
|
|
25
|
+
});
|
|
26
|
+
await narration.source.end();
|
|
27
|
+
await narration.focus();
|
|
28
|
+
await zoomTo(page.getByRole('heading', { name: 'What gets rendered' }));
|
|
29
|
+
await page.waitForTimeout(700);
|
|
30
|
+
await resetZoom();
|
|
31
|
+
await narration.next();
|
|
32
|
+
await autoZoom(async () => {
|
|
33
|
+
await clickContentLink(page, 'CI Setup');
|
|
34
|
+
});
|
|
35
|
+
await waitForDocHeading(page, 'CI Setup');
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=record-and-publish.video.js.map
|
|
@@ -0,0 +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;AACjB,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,eAAe,CAAA;AAEtB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,SAAS,EAAE;QACT,EAAE,EAAE;YACF,IAAI,EAAE;gBACJ,KAAK,EACH,qFAAqF;gBACvF,MAAM,EACJ,4EAA4E;gBAC9E,KAAK,EACH,2EAA2E;gBAC7E,IAAI,EAAE,gFAAgF;aACvF;SACF;KACF;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,0BAA0B,CAAC,CAAA;QAC3C,MAAM,iBAAiB,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAA;IACrD,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,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAC/B,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,gBAAgB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;IAC1C,CAAC,CAAC,CAAA;IAEF,MAAM,iBAAiB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;AAC3C,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-and-debug-videos.video.d.ts","sourceRoot":"","sources":["../../../docs/video-sources/run-and-debug-videos.video.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { autoZoom, createNarration, hide, resetZoom, video, voices, zoomTo, } from 'screenci';
|
|
2
|
+
import { clickContentLink, openSourceDetails, waitForDocHeading, } from './docs-shared';
|
|
3
|
+
const narration = createNarration({
|
|
4
|
+
voice: { name: voices.Sophie },
|
|
5
|
+
languages: {
|
|
6
|
+
en: {
|
|
7
|
+
cues: {
|
|
8
|
+
intro: 'This video walks through the local authoring loop in the Run and Debug Videos guide.',
|
|
9
|
+
source: 'As with the other docs pages, the ScreenCI source is available right on the page.',
|
|
10
|
+
focus: 'A key section shows how to run one file or a filtered subset while you iterate.',
|
|
11
|
+
next: 'Once the local flow looks right, the docs move on to recording and publishing.',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
video('Run and debug videos guide', async ({ page }) => {
|
|
17
|
+
await hide(async () => {
|
|
18
|
+
await page.goto('/docs/run-and-debug-videos');
|
|
19
|
+
await waitForDocHeading(page, 'Run and Debug Videos');
|
|
20
|
+
});
|
|
21
|
+
await narration.intro();
|
|
22
|
+
await narration.source.start();
|
|
23
|
+
await autoZoom(async () => {
|
|
24
|
+
await openSourceDetails(page);
|
|
25
|
+
});
|
|
26
|
+
await narration.source.end();
|
|
27
|
+
await narration.focus();
|
|
28
|
+
await zoomTo(page.getByRole('heading', { name: 'Run one file or a subset' }));
|
|
29
|
+
await page.waitForTimeout(700);
|
|
30
|
+
await resetZoom();
|
|
31
|
+
await narration.next();
|
|
32
|
+
await autoZoom(async () => {
|
|
33
|
+
await clickContentLink(page, 'Record and Publish');
|
|
34
|
+
});
|
|
35
|
+
await waitForDocHeading(page, 'Record and Publish');
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=run-and-debug-videos.video.js.map
|
|
@@ -0,0 +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;AACjB,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,eAAe,CAAA;AAEtB,MAAM,SAAS,GAAG,eAAe,CAAC;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAC9B,SAAS,EAAE;QACT,EAAE,EAAE;YACF,IAAI,EAAE;gBACJ,KAAK,EACH,sFAAsF;gBACxF,MAAM,EACJ,mFAAmF;gBACrF,KAAK,EACH,iFAAiF;gBACnF,IAAI,EAAE,gFAAgF;aACvF;SACF;KACF;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,4BAA4B,CAAC,CAAA;QAC7C,MAAM,iBAAiB,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAA;IACvD,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,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAC/B,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,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAA;IACpD,CAAC,CAAC,CAAA;IAEF,MAAM,iBAAiB,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAA;AACrD,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-video-scripts.video.d.ts","sourceRoot":"","sources":["../../../docs/video-sources/write-video-scripts.video.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { autoZoom, createNarration, hide, resetZoom, video, voices, zoomTo, } from 'screenci';
|
|
2
|
+
import { openSourceDetails, waitForDocHeading } from './docs-shared';
|
|
3
|
+
const narration = createNarration({
|
|
4
|
+
voice: { name: voices.Sophie },
|
|
5
|
+
languages: {
|
|
6
|
+
en: {
|
|
7
|
+
cues: {
|
|
8
|
+
intro: 'This video introduces the Write Video Scripts guide and its first working example.',
|
|
9
|
+
source: 'The page includes the full ScreenCI source so you can inspect the script while reading the guide.',
|
|
10
|
+
pacing: 'Further down, the pacing section explains how to balance waits, narration, and visible timing.',
|
|
11
|
+
next: 'The guide then points you to running and debugging videos locally.',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
video('Write video scripts guide', async ({ page }) => {
|
|
17
|
+
await hide(async () => {
|
|
18
|
+
await page.goto('/docs/write-video-scripts');
|
|
19
|
+
await waitForDocHeading(page, 'Write Video Scripts');
|
|
20
|
+
});
|
|
21
|
+
await narration.intro();
|
|
22
|
+
await narration.source.start();
|
|
23
|
+
await autoZoom(async () => {
|
|
24
|
+
await openSourceDetails(page);
|
|
25
|
+
});
|
|
26
|
+
await narration.source.end();
|
|
27
|
+
await narration.pacing();
|
|
28
|
+
await zoomTo(page.getByRole('heading', { name: 'Control pacing' }));
|
|
29
|
+
await page.waitForTimeout(700);
|
|
30
|
+
await resetZoom();
|
|
31
|
+
await narration.next();
|
|
32
|
+
await autoZoom(async () => {
|
|
33
|
+
await page
|
|
34
|
+
.getByRole('link', { name: 'Run and debug videos', exact: true })
|
|
35
|
+
.first()
|
|
36
|
+
.click();
|
|
37
|
+
});
|
|
38
|
+
await waitForDocHeading(page, 'Run and Debug Videos');
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=write-video-scripts.video.js.map
|
|
@@ -0,0 +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;AACjB,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAEpE,MAAM,SAAS,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AChE,KAAK,EAAE;aACP,KAAK,EAAE,CAAA;IACZ,CAAC,CAAC,CAAA;IAEF,MAAM,iBAAiB,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAA;AACvD,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export declare const docsVideoRegistry: {
|
|
2
|
+
readonly docs: {
|
|
3
|
+
readonly publicId: "kh7dq5rk3vabtxya45w6zm1fmd871jdx";
|
|
4
|
+
readonly sourcePath: "screenci/docs/video-sources/installation.video.ts";
|
|
5
|
+
};
|
|
6
|
+
readonly 'docs/write-video-scripts': {
|
|
7
|
+
readonly sourcePath: "screenci/docs/video-sources/write-video-scripts.video.ts";
|
|
8
|
+
};
|
|
9
|
+
readonly 'docs/generating-videos': {
|
|
10
|
+
readonly sourcePath: "screenci/docs/video-sources/generating-videos.video.ts";
|
|
11
|
+
};
|
|
12
|
+
readonly 'docs/run-and-debug-videos': {
|
|
13
|
+
readonly sourcePath: "screenci/docs/video-sources/run-and-debug-videos.video.ts";
|
|
14
|
+
};
|
|
15
|
+
readonly 'docs/record-and-publish': {
|
|
16
|
+
readonly sourcePath: "screenci/docs/video-sources/record-and-publish.video.ts";
|
|
17
|
+
};
|
|
18
|
+
readonly 'docs/ci-setup': {
|
|
19
|
+
readonly sourcePath: "screenci/docs/video-sources/ci-setup.video.ts";
|
|
20
|
+
};
|
|
21
|
+
readonly 'docs/guides/narration-and-localization': {
|
|
22
|
+
readonly sourcePath: "screenci/docs/video-sources/narration-and-localization.video.ts";
|
|
23
|
+
};
|
|
24
|
+
readonly 'docs/guides/camera-and-zooming': {
|
|
25
|
+
readonly sourcePath: "screenci/docs/video-sources/camera-and-zooming.video.ts";
|
|
26
|
+
};
|
|
27
|
+
readonly 'docs/guides/public-urls-and-embeds': {
|
|
28
|
+
readonly sourcePath: "screenci/docs/video-sources/public-urls-and-embeds.video.ts";
|
|
29
|
+
};
|
|
30
|
+
readonly 'docs/reference/cli': {
|
|
31
|
+
readonly sourcePath: "screenci/docs/video-sources/cli.video.ts";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare function getDocVideo(slug: string): {
|
|
35
|
+
readonly publicId: "kh7dq5rk3vabtxya45w6zm1fmd871jdx";
|
|
36
|
+
readonly sourcePath: "screenci/docs/video-sources/installation.video.ts";
|
|
37
|
+
} | {
|
|
38
|
+
readonly sourcePath: "screenci/docs/video-sources/write-video-scripts.video.ts";
|
|
39
|
+
} | {
|
|
40
|
+
readonly sourcePath: "screenci/docs/video-sources/generating-videos.video.ts";
|
|
41
|
+
} | {
|
|
42
|
+
readonly sourcePath: "screenci/docs/video-sources/run-and-debug-videos.video.ts";
|
|
43
|
+
} | {
|
|
44
|
+
readonly sourcePath: "screenci/docs/video-sources/record-and-publish.video.ts";
|
|
45
|
+
} | {
|
|
46
|
+
readonly sourcePath: "screenci/docs/video-sources/ci-setup.video.ts";
|
|
47
|
+
} | {
|
|
48
|
+
readonly sourcePath: "screenci/docs/video-sources/narration-and-localization.video.ts";
|
|
49
|
+
} | {
|
|
50
|
+
readonly sourcePath: "screenci/docs/video-sources/camera-and-zooming.video.ts";
|
|
51
|
+
} | {
|
|
52
|
+
readonly sourcePath: "screenci/docs/video-sources/public-urls-and-embeds.video.ts";
|
|
53
|
+
} | {
|
|
54
|
+
readonly sourcePath: "screenci/docs/video-sources/cli.video.ts";
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=videos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"videos.d.ts","sourceRoot":"","sources":["../../docs/videos.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCpB,CAAA;AAEV,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;EAEvC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export const docsVideoRegistry = {
|
|
2
|
+
docs: {
|
|
3
|
+
publicId: 'kh7dq5rk3vabtxya45w6zm1fmd871jdx',
|
|
4
|
+
sourcePath: 'screenci/docs/video-sources/installation.video.ts',
|
|
5
|
+
},
|
|
6
|
+
'docs/write-video-scripts': {
|
|
7
|
+
sourcePath: 'screenci/docs/video-sources/write-video-scripts.video.ts',
|
|
8
|
+
},
|
|
9
|
+
'docs/generating-videos': {
|
|
10
|
+
sourcePath: 'screenci/docs/video-sources/generating-videos.video.ts',
|
|
11
|
+
},
|
|
12
|
+
'docs/run-and-debug-videos': {
|
|
13
|
+
sourcePath: 'screenci/docs/video-sources/run-and-debug-videos.video.ts',
|
|
14
|
+
},
|
|
15
|
+
'docs/record-and-publish': {
|
|
16
|
+
sourcePath: 'screenci/docs/video-sources/record-and-publish.video.ts',
|
|
17
|
+
},
|
|
18
|
+
'docs/ci-setup': {
|
|
19
|
+
sourcePath: 'screenci/docs/video-sources/ci-setup.video.ts',
|
|
20
|
+
},
|
|
21
|
+
'docs/guides/narration-and-localization': {
|
|
22
|
+
sourcePath: 'screenci/docs/video-sources/narration-and-localization.video.ts',
|
|
23
|
+
},
|
|
24
|
+
'docs/guides/camera-and-zooming': {
|
|
25
|
+
sourcePath: 'screenci/docs/video-sources/camera-and-zooming.video.ts',
|
|
26
|
+
},
|
|
27
|
+
'docs/guides/public-urls-and-embeds': {
|
|
28
|
+
sourcePath: 'screenci/docs/video-sources/public-urls-and-embeds.video.ts',
|
|
29
|
+
},
|
|
30
|
+
'docs/reference/cli': {
|
|
31
|
+
sourcePath: 'screenci/docs/video-sources/cli.video.ts',
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
export function getDocVideo(slug) {
|
|
35
|
+
return docsVideoRegistry[slug] ?? null;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=videos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"videos.js","sourceRoot":"","sources":["../../docs/videos.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE;QACJ,QAAQ,EAAE,kCAAkC;QAC5C,UAAU,EAAE,mDAAmD;KAChE;IACD,0BAA0B,EAAE;QAC1B,UAAU,EAAE,0DAA0D;KACvE;IACD,wBAAwB,EAAE;QACxB,UAAU,EAAE,wDAAwD;KACrE;IACD,2BAA2B,EAAE;QAC3B,UAAU,EAAE,2DAA2D;KACxE;IACD,yBAAyB,EAAE;QACzB,UAAU,EAAE,yDAAyD;KACtE;IACD,eAAe,EAAE;QACf,UAAU,EAAE,+CAA+C;KAC5D;IACD,wCAAwC,EAAE;QACxC,UAAU,EACR,iEAAiE;KACpE;IACD,gCAAgC,EAAE;QAChC,UAAU,EAAE,yDAAyD;KACtE;IACD,oCAAoC,EAAE;QACpC,UAAU,EAAE,6DAA6D;KAC1E;IACD,oBAAoB,EAAE;QACpB,UAAU,EAAE,0CAA0C;KACvD;CACO,CAAA;AAEV,MAAM,UAAU,WAAW,CAAC,IAAY;IACtC,OAAO,iBAAiB,CAAC,IAAsC,CAAC,IAAI,IAAI,CAAA;AAC1E,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
export type { AspectRatio, FPS, Quality,
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export type { VoiceKey, VoiceName, VoiceForLang, CustomVoiceRef, ModelType, } from './src/voices.js';
|
|
5
|
-
export type { RecordingEvent, RecordingData, ElementRect, VideoStartEvent, InputEvent, FocusChangeEvent, MouseMoveEvent, MouseDownEvent, MouseUpEvent, MouseShowEvent, MouseHideEvent, MouseWaitEvent, CueStartEvent, CueEndEvent, VideoCueStartEvent, HideStartEvent, HideEndEvent, AutoZoomStartEvent, AutoZoomEndEvent, } from './src/events.js';
|
|
6
|
-
export { DEFAULT_ASPECT_RATIO, DEFAULT_FPS, DEFAULT_QUALITY, DEFAULT_TRACE, DEFAULT_VIDEO_DIR, DEFAULT_VIDEO_OPTIONS, } from './src/defaults.js';
|
|
7
|
-
export { getDimensions } from './src/dimensions.js';
|
|
1
|
+
export type { AspectRatio, FPS, Quality, RecordUploadPolicy, RecordOptions, RenderOptions, ScreenCIConfig, ExtendedScreenCIConfig, AutoZoomOptions, Easing, PostClickMove, ClickBeforeFillOption, } from './src/types.js';
|
|
2
|
+
export { voices, modelTypes, languageRegions } from './src/voices.js';
|
|
3
|
+
export type { VoiceKey, CustomVoiceRef, ModelType } from './src/voices.js';
|
|
8
4
|
export { defineConfig } from './src/config.js';
|
|
9
5
|
export { video } from './src/video.js';
|
|
10
6
|
export type { ScreenCIPage, ScreenCILocator } from './src/types.js';
|
|
11
7
|
export { createNarration } from './src/cue.js';
|
|
12
|
-
export type { NarrationCue, Cues, TopLevelVoiceConfig
|
|
13
|
-
export type { CueTranslation, VideoCueTranslation, VideoCueTranslationFile, VoiceLanguageMeta, } from './src/events.js';
|
|
8
|
+
export type { NarrationCue, Cues, TopLevelVoiceConfig } from './src/cue.js';
|
|
14
9
|
export { hide } from './src/hide.js';
|
|
15
10
|
export { autoZoom } from './src/autoZoom.js';
|
|
16
11
|
export { zoomTo, resetZoom } from './src/manualZoom.js';
|
|
17
12
|
export { createAssets } from './src/asset.js';
|
|
18
13
|
export type { AssetController, AssetConfig, Assets } from './src/asset.js';
|
|
19
|
-
export type { AssetStartEvent } from './src/events.js';
|
|
20
14
|
export type { ZoomTarget, ZoomTargetPoint } from './src/manualZoom.js';
|
|
21
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,WAAW,EACX,GAAG,EACH,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,WAAW,EACX,GAAG,EACH,OAAO,EACP,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,eAAe,EACf,MAAM,EACN,aAAa,EACb,qBAAqB,GACtB,MAAM,gBAAgB,CAAA;AAGvB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACrE,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAG1E,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAG9C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACtC,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AAC3E,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;AAC7C,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAC1E,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
export { RENDER_OPTIONS_DEFAULTS } from './src/types.js';
|
|
2
1
|
// Re-export voices
|
|
3
|
-
export { voices, modelTypes, languageRegions
|
|
4
|
-
// Re-export default values
|
|
5
|
-
export { DEFAULT_ASPECT_RATIO, DEFAULT_FPS, DEFAULT_QUALITY, DEFAULT_TRACE, DEFAULT_VIDEO_DIR, DEFAULT_VIDEO_OPTIONS, } from './src/defaults.js';
|
|
6
|
-
// Re-export dimension helper
|
|
7
|
-
export { getDimensions } from './src/dimensions.js';
|
|
2
|
+
export { voices, modelTypes, languageRegions } from './src/voices.js';
|
|
8
3
|
// Re-export config function
|
|
9
4
|
export { defineConfig } from './src/config.js';
|
|
10
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":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAgBA,mBAAmB;AACnB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAGrE,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/asset.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../src/asset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../src/asset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAQjD,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,OAAO,CAAA;CACpB,CAAA;AAID,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,GAAG,IAAI,CAE5E;AAED,wBAAgB,yBAAyB,IAAI,IAAI,CAEhD;AAED,wBAAsB,4BAA4B,CAChD,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAqBf;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,IAAI,CAAC,CAAA;AAE/C,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,IAAI;KACzD,CAAC,IAAI,MAAM,CAAC,GAAG,eAAe;CAChC,CAAA;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAC1B,KAAK,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAC3C,SAAS,EAAE;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAUhD"}
|
package/dist/src/asset.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { access } from 'fs/promises';
|
|
2
2
|
import { dirname, resolve } from 'path';
|
|
3
|
-
|
|
3
|
+
import { getRuntimeAssetRecorder, setRuntimeAssetRecorder, } from './runtimeContext.js';
|
|
4
4
|
const registeredAssetPaths = new Set();
|
|
5
5
|
export function setActiveAssetRecorder(recorder) {
|
|
6
|
-
|
|
6
|
+
setRuntimeAssetRecorder(recorder);
|
|
7
7
|
}
|
|
8
8
|
export function resetRegisteredAssetPaths() {
|
|
9
9
|
registeredAssetPaths.clear();
|
|
@@ -59,8 +59,7 @@ export function createAssets(assetsMap) {
|
|
|
59
59
|
}
|
|
60
60
|
function createAssetController(name, config) {
|
|
61
61
|
const startFn = () => {
|
|
62
|
-
|
|
63
|
-
return Promise.resolve();
|
|
62
|
+
const activeRecorder = getRuntimeAssetRecorder();
|
|
64
63
|
activeRecorder.addAssetStart(name, config.path, config.audio, config.fullScreen);
|
|
65
64
|
return Promise.resolve();
|
|
66
65
|
};
|
package/dist/src/asset.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset.js","sourceRoot":"","sources":["../../src/asset.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"asset.js","sourceRoot":"","sources":["../../src/asset.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AACvC,OAAO,EACL,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,qBAAqB,CAAA;AAQ5B,MAAM,oBAAoB,GAAG,IAAI,GAAG,EAAU,CAAA;AAE9C,MAAM,UAAU,sBAAsB,CAAC,QAA+B;IACpE,uBAAuB,CAAC,QAAQ,CAAC,CAAA;AACnC,CAAC;AAED,MAAM,UAAU,yBAAyB;IACvC,oBAAoB,CAAC,KAAK,EAAE,CAAA;AAC9B,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,YAAoB;IAEpB,MAAM,OAAO,GAAG,OAAO,CAAC,YAAY,CAAC,CAAA;IAErC,KAAK,MAAM,SAAS,IAAI,oBAAoB,EAAE,CAAC;QAC7C,MAAM,UAAU,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAA;QAC3D,IAAI,MAAM,GAAG,KAAK,CAAA;QAElB,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;YACnC,IAAI,CAAC;gBACH,MAAM,MAAM,CAAC,SAAS,CAAC,CAAA;gBACv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} from './events.js';
|
|
3
3
|
import type { AutoZoomOptions } from './types.js';
|
|
4
|
-
|
|
5
|
-
focusPoint: {
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
};
|
|
9
|
-
elementRect?: ElementRect;
|
|
10
|
-
end: {
|
|
11
|
-
pointPx: {
|
|
12
|
-
x: number;
|
|
13
|
-
y: number;
|
|
14
|
-
};
|
|
15
|
-
size: {
|
|
16
|
-
widthPx: number;
|
|
17
|
-
heightPx: number;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
optimalOffset?: {
|
|
21
|
-
x: number;
|
|
22
|
-
y: number;
|
|
23
|
-
};
|
|
24
|
-
viewportSize: {
|
|
25
|
-
width: number;
|
|
26
|
-
height: number;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
4
|
+
import { type AutoZoomState, type CurrentZoomViewport } from './runtimeContext.js';
|
|
29
5
|
export declare function setActiveAutoZoomRecorder(recorder: IEventRecorder | null): void;
|
|
30
|
-
export declare function getActiveAutoZoomRecorder(): IEventRecorder
|
|
6
|
+
export declare function getActiveAutoZoomRecorder(): IEventRecorder;
|
|
31
7
|
export declare function setActiveZoomPage(page: Page | null): void;
|
|
32
8
|
export declare function getActiveZoomPage(): Page | null;
|
|
33
9
|
export declare function getCurrentZoomViewport(): CurrentZoomViewport | null;
|
|
34
|
-
export type AutoZoomState = {
|
|
35
|
-
insideAutoZoom: boolean;
|
|
36
|
-
mode: 'idle' | 'auto' | 'manual';
|
|
37
|
-
options: AutoZoomOptions;
|
|
38
|
-
currentZoomViewport: CurrentZoomViewport | null;
|
|
39
|
-
};
|
|
40
10
|
export declare function getAutoZoomState(): AutoZoomState;
|
|
41
11
|
export declare function setAutoZoomState(state: AutoZoomState): void;
|
|
42
12
|
export declare function setZoomMode(mode: AutoZoomState['mode']): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoZoom.d.ts","sourceRoot":"","sources":["../../src/autoZoom.ts"],"names":[],"mappings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|
|
1
1
|
import { DEFAULT_ZOOM_OPTIONS } from './defaults.js';
|
|
2
2
|
import { invalidOptionError, ScreenciError } from './errors.js';
|
|
3
|
+
import { resolveRecordingTimingDuration } from './runtimeMode.js';
|
|
4
|
+
import { getRuntimeAutoZoomState, getRuntimeAutoZoomRecorder, getRuntimePage, setRuntimeAutoZoomState, setRuntimeAutoZoomRecorder, setRuntimePage, } from './runtimeContext.js';
|
|
3
5
|
function assertAutoZoomUnitIntervalOption(value, name) {
|
|
4
6
|
if (!Number.isFinite(value) || value < 0 || value > 1) {
|
|
5
7
|
throw invalidOptionError({
|
|
@@ -10,51 +12,46 @@ function assertAutoZoomUnitIntervalOption(value, name) {
|
|
|
10
12
|
});
|
|
11
13
|
}
|
|
12
14
|
}
|
|
13
|
-
let activeRecorder = null;
|
|
14
|
-
let activeZoomPage = null;
|
|
15
|
-
let currentAutoZoomState = {
|
|
16
|
-
insideAutoZoom: false,
|
|
17
|
-
mode: 'idle',
|
|
18
|
-
options: {},
|
|
19
|
-
currentZoomViewport: null,
|
|
20
|
-
};
|
|
21
15
|
export function setActiveAutoZoomRecorder(recorder) {
|
|
22
|
-
|
|
16
|
+
setRuntimeAutoZoomRecorder(recorder);
|
|
23
17
|
}
|
|
24
18
|
export function getActiveAutoZoomRecorder() {
|
|
25
|
-
return
|
|
19
|
+
return getRuntimeAutoZoomRecorder();
|
|
26
20
|
}
|
|
27
21
|
export function setActiveZoomPage(page) {
|
|
28
|
-
|
|
22
|
+
setRuntimePage(page);
|
|
29
23
|
}
|
|
30
24
|
export function getActiveZoomPage() {
|
|
31
|
-
return
|
|
25
|
+
return getRuntimePage();
|
|
32
26
|
}
|
|
33
27
|
export function getCurrentZoomViewport() {
|
|
34
|
-
return
|
|
28
|
+
return getAutoZoomState().currentZoomViewport;
|
|
35
29
|
}
|
|
36
30
|
export function getAutoZoomState() {
|
|
37
|
-
return
|
|
31
|
+
return getRuntimeAutoZoomState();
|
|
38
32
|
}
|
|
39
33
|
export function setAutoZoomState(state) {
|
|
40
|
-
|
|
34
|
+
setRuntimeAutoZoomState(state);
|
|
41
35
|
}
|
|
42
36
|
export function setZoomMode(mode) {
|
|
37
|
+
const currentAutoZoomState = getAutoZoomState();
|
|
43
38
|
setAutoZoomState({
|
|
44
39
|
...currentAutoZoomState,
|
|
45
40
|
mode,
|
|
46
41
|
});
|
|
47
42
|
}
|
|
48
43
|
export function setCurrentZoomViewport(viewport) {
|
|
44
|
+
const currentAutoZoomState = getAutoZoomState();
|
|
49
45
|
setAutoZoomState({
|
|
50
46
|
...currentAutoZoomState,
|
|
51
47
|
currentZoomViewport: viewport,
|
|
52
48
|
});
|
|
53
49
|
}
|
|
54
50
|
function sleep(ms) {
|
|
55
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
51
|
+
return new Promise((resolve) => setTimeout(resolve, resolveRecordingTimingDuration(ms)));
|
|
56
52
|
}
|
|
57
53
|
function resetAutoZoomState() {
|
|
54
|
+
const currentAutoZoomState = getAutoZoomState();
|
|
58
55
|
setAutoZoomState({
|
|
59
56
|
...currentAutoZoomState,
|
|
60
57
|
insideAutoZoom: false,
|
|
@@ -88,15 +85,15 @@ function resetAutoZoomState() {
|
|
|
88
85
|
* ```
|
|
89
86
|
*/
|
|
90
87
|
export async function autoZoom(fn, options) {
|
|
88
|
+
const currentAutoZoomState = getAutoZoomState();
|
|
91
89
|
if (currentAutoZoomState.insideAutoZoom) {
|
|
92
90
|
throw new ScreenciError('Cannot nest autoZoom() calls');
|
|
93
91
|
}
|
|
94
92
|
if (currentAutoZoomState.mode === 'manual') {
|
|
95
93
|
throw new ScreenciError('Cannot call autoZoom() while manual zoom is active');
|
|
96
94
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
95
|
+
const activeRecorder = getRuntimeAutoZoomRecorder();
|
|
96
|
+
activeRecorder.addAutoZoomStart(options);
|
|
100
97
|
const resolvedOptions = {
|
|
101
98
|
...DEFAULT_ZOOM_OPTIONS,
|
|
102
99
|
...(options ?? {}),
|
|
@@ -122,43 +119,41 @@ export async function autoZoom(fn, options) {
|
|
|
122
119
|
});
|
|
123
120
|
try {
|
|
124
121
|
await fn();
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
122
|
+
const activeRecorder = getRuntimeAutoZoomRecorder();
|
|
123
|
+
const currentAutoZoomState = getAutoZoomState();
|
|
124
|
+
activeRecorder.addAutoZoomEnd(options);
|
|
125
|
+
if (currentAutoZoomState.currentZoomViewport !== null) {
|
|
126
|
+
const zoomOutStartMs = Date.now();
|
|
127
|
+
const zoomOutDuration = resolveRecordingTimingDuration(currentAutoZoomState.options.duration ?? DEFAULT_ZOOM_OPTIONS.duration);
|
|
128
|
+
activeRecorder.addInput('focusChange', undefined, [
|
|
129
|
+
{
|
|
130
|
+
type: 'focusChange',
|
|
131
|
+
startMs: zoomOutStartMs,
|
|
132
|
+
endMs: zoomOutStartMs + zoomOutDuration,
|
|
133
|
+
x: currentAutoZoomState.currentZoomViewport.focusPoint.x,
|
|
134
|
+
y: currentAutoZoomState.currentZoomViewport.focusPoint.y,
|
|
135
|
+
...(currentAutoZoomState.currentZoomViewport.elementRect !== undefined
|
|
136
|
+
? {
|
|
137
|
+
elementRect: currentAutoZoomState.currentZoomViewport.elementRect,
|
|
138
|
+
}
|
|
139
|
+
: {}),
|
|
140
|
+
zoom: {
|
|
133
141
|
startMs: zoomOutStartMs,
|
|
134
142
|
endMs: zoomOutStartMs + zoomOutDuration,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
: {}),
|
|
143
|
-
zoom: {
|
|
144
|
-
startMs: zoomOutStartMs,
|
|
145
|
-
endMs: zoomOutStartMs + zoomOutDuration,
|
|
146
|
-
easing: currentAutoZoomState.options.easing ??
|
|
147
|
-
DEFAULT_ZOOM_OPTIONS.easing,
|
|
148
|
-
end: {
|
|
149
|
-
pointPx: { x: 0, y: 0 },
|
|
150
|
-
size: {
|
|
151
|
-
widthPx: currentAutoZoomState.currentZoomViewport.viewportSize.width,
|
|
152
|
-
heightPx: currentAutoZoomState.currentZoomViewport.viewportSize
|
|
153
|
-
.height,
|
|
154
|
-
},
|
|
143
|
+
easing: currentAutoZoomState.options.easing ??
|
|
144
|
+
DEFAULT_ZOOM_OPTIONS.easing,
|
|
145
|
+
end: {
|
|
146
|
+
pointPx: { x: 0, y: 0 },
|
|
147
|
+
size: {
|
|
148
|
+
widthPx: currentAutoZoomState.currentZoomViewport.viewportSize.width,
|
|
149
|
+
heightPx: currentAutoZoomState.currentZoomViewport.viewportSize.height,
|
|
155
150
|
},
|
|
156
151
|
},
|
|
157
152
|
},
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
153
|
+
},
|
|
154
|
+
]);
|
|
155
|
+
if (zoomOutDuration > 0) {
|
|
156
|
+
await sleep(zoomOutDuration);
|
|
162
157
|
}
|
|
163
158
|
}
|
|
164
159
|
if ((currentAutoZoomState.options.postZoomDelay ?? 0) > 0) {
|
package/dist/src/autoZoom.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoZoom.js","sourceRoot":"","sources":["../../src/autoZoom.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAG/D,SAAS,gCAAgC,CACvC,KAAa,EACb,IAAwC;IAExC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;QACtD,MAAM,kBAAkB,CAAC;YACvB,GAAG,EAAE,UAAU;YACf,MAAM,EAAE,IAAI;YACZ,WAAW,EAAE,yBAAyB;YACtC,KAAK;SAC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,EAAE,CAAA;IACtB,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changeFocus.d.ts","sourceRoot":"","sources":["../../src/changeFocus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"changeFocus.d.ts","sourceRoot":"","sources":["../../src/changeFocus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAMhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAezD,KAAK,cAAc,GAAG;IACpB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAoBD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,kBAAkB,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAA;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,KAAK,YAAY,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AACrD,KAAK,KAAK,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAIrC,KAAK,aAAa,GAAG;IACnB,WAAW,EAAE,WAAW,CAAA;IACxB,eAAe,EAAE,OAAO,CA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