screenwright 0.1.31 → 0.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/src/composition/DemoVideo.d.ts.map +1 -1
  2. package/dist/src/composition/DemoVideo.js +94 -13
  3. package/dist/src/composition/DemoVideo.js.map +1 -1
  4. package/dist/src/composition/SceneSlide.d.ts +0 -18
  5. package/dist/src/composition/SceneSlide.d.ts.map +1 -1
  6. package/dist/src/composition/SceneSlide.js +3 -155
  7. package/dist/src/composition/SceneSlide.js.map +1 -1
  8. package/dist/src/composition/transition-styles.d.ts +13 -0
  9. package/dist/src/composition/transition-styles.d.ts.map +1 -0
  10. package/dist/src/composition/transition-styles.js +87 -0
  11. package/dist/src/composition/transition-styles.js.map +1 -0
  12. package/dist/src/config/config-schema.d.ts +0 -8
  13. package/dist/src/config/config-schema.d.ts.map +1 -1
  14. package/dist/src/config/config-schema.js +0 -2
  15. package/dist/src/config/config-schema.js.map +1 -1
  16. package/dist/src/generator/prompts.d.ts +1 -1
  17. package/dist/src/generator/prompts.d.ts.map +1 -1
  18. package/dist/src/generator/prompts.js +2 -1
  19. package/dist/src/generator/prompts.js.map +1 -1
  20. package/dist/src/index.d.ts +3 -3
  21. package/dist/src/index.d.ts.map +1 -1
  22. package/dist/src/index.js +1 -1
  23. package/dist/src/runtime/action-helpers.d.ts +6 -1
  24. package/dist/src/runtime/action-helpers.d.ts.map +1 -1
  25. package/dist/src/runtime/action-helpers.js +12 -0
  26. package/dist/src/runtime/action-helpers.js.map +1 -1
  27. package/dist/src/timeline/schema.d.ts +30 -7
  28. package/dist/src/timeline/schema.d.ts.map +1 -1
  29. package/dist/src/timeline/schema.js +9 -2
  30. package/dist/src/timeline/schema.js.map +1 -1
  31. package/dist/src/timeline/types.d.ts +10 -4
  32. package/dist/src/timeline/types.d.ts.map +1 -1
  33. package/dist/src/timeline/types.js +3 -2
  34. package/dist/src/timeline/types.js.map +1 -1
  35. package/dist/src/version.d.ts +1 -1
  36. package/dist/src/version.js +1 -1
  37. package/dist/tsconfig.tsbuildinfo +1 -1
  38. package/package.json +3 -2
  39. package/skill/SKILL.md +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screenwright",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "Turn Playwright E2E tests into polished product demo videos",
5
5
  "license": "MIT",
6
6
  "author": "Guillaume Dupuy",
@@ -41,7 +41,8 @@
41
41
  "lint": "tsc --noEmit",
42
42
  "postinstall": "node dist/src/scripts/postinstall.js || true",
43
43
  "prepack": "mkdir -p skill && node scripts/patch-skill.cjs && cp ../LICENSE .",
44
- "postpack": "rm -rf skill LICENSE"
44
+ "postpack": "rm -rf skill LICENSE",
45
+ "showcase": "node dist/bin/screenwright.js compose scripts/showcase/scenario.js --no-voiceover --no-cursor --out output/animation-showcase.mp4"
45
46
  },
46
47
  "dependencies": {
47
48
  "@inquirer/prompts": "^8.2.0",
package/skill/SKILL.md CHANGED
@@ -2,7 +2,7 @@
2
2
  name: screenwright
3
3
  description: Turn Playwright E2E tests into polished product demo videos
4
4
  user_invocable: true
5
- version: 0.1.31
5
+ version: 0.1.32
6
6
  ---
7
7
 
8
8
  # Screenwright
@@ -70,7 +70,7 @@ The scenario must:
70
70
  - Use the `sw.*` API exclusively:
71
71
  - `sw.scene(title)` — scene marker only, no slide
72
72
  - `sw.scene(title, description?)` — scene marker with optional description, no slide
73
- - `sw.scene(title, { description?, slide?: { duration?, brandColor?, textColor?, fontFamily?, titleFontSize?, animation? } })` — scene with optional transition slide (pass `{ slide: {} }` for defaults). animation: 'fade' (default) | 'slide-up' | 'slide-left' | 'zoom' | 'cinematic' | 'pop' | 'wipe'
73
+ - `sw.scene(title, { description?, slide?: { duration?, brandColor?, textColor?, fontFamily?, titleFontSize? } })` — scene with optional title slide (pass `{ slide: {} }` for defaults). Appears/disappears as a hard cut
74
74
  - `sw.navigate(url, { narration? })` — navigate to URL
75
75
  - `sw.click(selector, { narration? })` — click element
76
76
  - `sw.fill(selector, value, { narration? })` — type into input (character by character)
@@ -78,6 +78,7 @@ The scenario must:
78
78
  - `sw.press(key, { narration? })` — press key
79
79
  - `sw.wait(ms)` — pause for pacing
80
80
  - `sw.narrate(text)` — speak without action
81
+ - `sw.transition({ type?, duration? })` — frame-level visual transition between states. type: 'fade' (default) | 'wipe' | 'slide-up' | 'slide-left' | 'zoom'. duration: ms (default 500). Use after actions to smooth visual changes (e.g. after closing a modal)
81
82
  - Organize into 2-5 scenes
82
83
  - Replace test/faker data with human-friendly values
83
84
  - Add narration to key actions