screenci 0.0.89 → 0.0.90

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 (43) hide show
  1. package/dist/docs/video-sources/assets/StyleCard.d.ts +4 -0
  2. package/dist/docs/video-sources/assets/StyleCard.d.ts.map +1 -0
  3. package/dist/docs/video-sources/assets/StyleCard.js +27 -0
  4. package/dist/docs/video-sources/assets/StyleCard.js.map +1 -0
  5. package/dist/docs/video-sources/locator-highlight-animated.screenci.js +2 -15
  6. package/dist/docs/video-sources/locator-highlight-animated.screenci.js.map +1 -1
  7. package/dist/docs/video-sources/locator-highlight-still.screenci.js +2 -1
  8. package/dist/docs/video-sources/locator-highlight-still.screenci.js.map +1 -1
  9. package/dist/docs/video-sources/speaking-style.screenci.js +4 -28
  10. package/dist/docs/video-sources/speaking-style.screenci.js.map +1 -1
  11. package/dist/e2e/fixtures/ClientCounter.d.ts +5 -0
  12. package/dist/e2e/fixtures/ClientCounter.d.ts.map +1 -0
  13. package/dist/e2e/fixtures/ClientCounter.js +29 -0
  14. package/dist/e2e/fixtures/ClientCounter.js.map +1 -0
  15. package/dist/e2e/htmlRasterizer.e2e.js +104 -23
  16. package/dist/e2e/htmlRasterizer.e2e.js.map +1 -1
  17. package/dist/index.d.ts +2 -2
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +1 -1
  20. package/dist/index.js.map +1 -1
  21. package/dist/src/asset.d.ts +50 -85
  22. package/dist/src/asset.d.ts.map +1 -1
  23. package/dist/src/asset.js +116 -278
  24. package/dist/src/asset.js.map +1 -1
  25. package/dist/src/clientOverlay.d.ts +29 -0
  26. package/dist/src/clientOverlay.d.ts.map +1 -0
  27. package/dist/src/clientOverlay.js +82 -0
  28. package/dist/src/clientOverlay.js.map +1 -0
  29. package/dist/src/events.d.ts +6 -4
  30. package/dist/src/events.d.ts.map +1 -1
  31. package/dist/src/events.js.map +1 -1
  32. package/dist/src/htmlRasterizer.d.ts +21 -42
  33. package/dist/src/htmlRasterizer.d.ts.map +1 -1
  34. package/dist/src/htmlRasterizer.js +47 -66
  35. package/dist/src/htmlRasterizer.js.map +1 -1
  36. package/dist/src/init.d.ts.map +1 -1
  37. package/dist/src/init.js +56 -13
  38. package/dist/src/init.js.map +1 -1
  39. package/dist/src/overlayFlush.js +6 -6
  40. package/dist/src/overlayFlush.js.map +1 -1
  41. package/dist/tsconfig.tsbuildinfo +1 -1
  42. package/package.json +6 -1
  43. package/skills/screenci/references/init.md +8 -1
@@ -2,20 +2,7 @@ import type { Locator } from '@playwright/test';
2
2
  import type { NormalizedFeature } from './declare.js';
3
3
  import { type IEventRecorder, type OverlayCrop } from './events.js';
4
4
  import { type TimelineOffset } from './timelineOffset.js';
5
- export { setOverlayCss } from './htmlRasterizer.js';
6
5
  export type { OverlayPlacement, OverlayCrop } from './events.js';
7
- /**
8
- * Minimal structural stand-in for a React element. Defined here so the core SDK
9
- * never has to depend on `@types/react`: any JSX element is assignable to this,
10
- * while a plain {@link OverlayConfig} object is not (it has no `type`/`props`).
11
- * React itself is detected structurally at runtime and rendered lazily, so it
12
- * stays an optional peer dependency.
13
- */
14
- export type ReactElementLike = {
15
- type: unknown;
16
- props: unknown;
17
- key?: string | null;
18
- };
19
6
  /**
20
7
  * Placement and capture fields shared by every overlay variant. Placement is
21
8
  * flat (not nested) and uses CSS pixels in the recording viewport (the same
@@ -76,25 +63,14 @@ type OverlayCommon = {
76
63
  duration?: TimelineOffset;
77
64
  /**
78
65
  * Capture the overlay as an animation so its CSS/JS animation plays back in
79
- * the video (HTML files and React elements only). The animation is sampled
80
- * over the resolved duration with a transparent background preserved.
66
+ * the video (`.html`/`.tsx` page overlays only). The animation is sampled over
67
+ * the resolved duration with a transparent background preserved. The page's own
68
+ * `<script>` / React effects are advanced by a deterministic virtual clock, so
69
+ * `setTimeout`/`requestAnimationFrame`-driven animation is reproducible.
81
70
  */
82
71
  animate?: boolean;
83
72
  /** Animation capture frame rate. Only valid with `animate`. Defaults to `30`. */
84
73
  fps?: number;
85
- /**
86
- * Extra CSS injected into the overlay document so it can be styled with
87
- * `className` (for example a compiled Tailwind stylesheet). Merged on top of
88
- * any global CSS set via `setOverlayCss`. HTML files and React elements only.
89
- */
90
- css?: string;
91
- /**
92
- * Transparent padding (CSS px) added around the overlay content. Lets an
93
- * animation move, scale, or rotate beyond its box without being clipped (an
94
- * automatic "stage"), at the cost of the placement sizing the padded box.
95
- * HTML files and React elements only.
96
- */
97
- capturePadding?: number;
98
74
  /**
99
75
  * Crop a rectangle of the SOURCE file before it is placed/scaled, in the
100
76
  * source's own pixels (top-left origin), like Playwright's
@@ -162,64 +138,55 @@ type OverlayVideoFields = {
162
138
  end?: TimelineOffset;
163
139
  };
164
140
  /**
165
- * An overlay drawn from a file `path`: `.svg`/`.png` (image), `.mp4` (video),
166
- * or `.html` (rendered). Only this variant accepts the {@link OverlayVideoFields}
167
- * (`volume`/`speed`/`time`), which apply to `.mp4` files; they are rejected at
168
- * recording time for image and HTML files.
141
+ * A full React page overlay: `path` ends in `.tsx`. The module default-exports a
142
+ * React component that screenci bundles (with esbuild, an optional peer
143
+ * dependency) and renders CLIENT-SIDE in the browser during capture, so the full
144
+ * React runtime runs: function components with hooks and effects, class
145
+ * components with lifecycle and state, inline styles, and `className`. With
146
+ * `animate: true` the mounted app is advanced by the deterministic virtual clock
147
+ * that samples each frame, so effect timers / `requestAnimationFrame` / state
148
+ * updates drive the captured frames reproducibly.
149
+ *
150
+ * `props` are passed to the component. They are the ONLY overlay variant that
151
+ * accepts `props`, enforced at the type level by the `.tsx` path suffix.
169
152
  */
170
- export type FileOverlayConfig = OverlayCommon & OverlayVideoFields & {
171
- /** File path: `.html` (rendered), `.svg`/`.png` (image), or `.mp4` (video). */
172
- path: string;
173
- element?: never;
174
- html?: never;
153
+ export type TsxOverlayConfig = OverlayCommon & {
154
+ /** Path to a `.tsx` module that default-exports a React component, resolved relative to the recording file. */
155
+ path: `${string}.tsx`;
156
+ /** Serializable props passed to the component (a `.tsx` overlay only). */
157
+ props?: Record<string, unknown>;
175
158
  };
176
159
  /**
177
- * An overlay rendered from a React `element` to a transparent PNG (or animated
178
- * clip). Use this for overlays built in JSX. Video-only fields
179
- * (`volume`/`speed`/`time`) do not apply.
160
+ * A full HTML page overlay: `path` ends in `.html`. The file is loaded as a
161
+ * complete standalone document, so its own `<style>` and `<script>` run (the
162
+ * script is advanced by the virtual clock when `animate: true`). Author the page
163
+ * with a transparent background (`html,body{background:transparent}`) and, for
164
+ * tight sizing, wrap the content in `<div id="screenci-overlay-root">`. No
165
+ * `props` (a full page owns its own content).
180
166
  */
181
- export type ElementOverlayConfig = OverlayCommon & {
182
- /** A React element, rendered to a transparent PNG. */
183
- element: ReactElementLike;
184
- path?: never;
185
- html?: never;
186
- volume?: never;
187
- speed?: never;
188
- time?: never;
189
- start?: never;
190
- end?: never;
191
- crop?: never;
167
+ export type HtmlPageOverlayConfig = OverlayCommon & {
168
+ /** Path to a full `.html` document, resolved relative to the recording file. */
169
+ path: `${string}.html`;
170
+ props?: never;
192
171
  };
193
172
  /**
194
- * An overlay rendered from an inline `html` fragment to a transparent PNG (or
195
- * animated clip). Use this when you want plain HTML without a React dependency
196
- * or a separate `.html` file. The markup must be a single-rooted fragment (for
197
- * example `'<div class="badge">New</div>'`), never a full document: it must
198
- * contain exactly one top-level element, and `<!doctype>`, `<html>`, `<head>`,
199
- * and `<body>` tags are rejected because screenci wraps the markup in its own
200
- * document. Video-only fields (`volume`/`speed`/`time`) do not apply.
173
+ * An image (`.svg`/`.png`) or video (`.mp4`) file overlay. Only this variant
174
+ * accepts the {@link OverlayVideoFields} (`volume`/`speed`/`time`/`start`/`end`),
175
+ * which apply to `.mp4` files and are rejected at recording time for images. No
176
+ * `props`.
201
177
  */
202
- export type HtmlOverlayConfig = OverlayCommon & {
203
- /** An inline HTML fragment (single root element), rendered to a PNG. */
204
- html: string;
205
- path?: never;
206
- element?: never;
207
- volume?: never;
208
- speed?: never;
209
- time?: never;
210
- start?: never;
211
- end?: never;
212
- crop?: never;
178
+ export type MediaOverlayConfig = OverlayCommon & OverlayVideoFields & {
179
+ /** File path: `.svg`/`.png` (image) or `.mp4` (video). */
180
+ path: string;
181
+ props?: never;
213
182
  };
214
183
  /**
215
- * Display options for an overlay. An overlay draws its content from exactly one
216
- * source, which selects the variant: a file {@link FileOverlayConfig.path}, a
217
- * React {@link ElementOverlayConfig.element}, or an inline
218
- * {@link HtmlOverlayConfig.html} fragment. The `path` variant additionally
219
- * accepts the video-only `volume`/`speed`/`time` fields (for `.mp4` files); the
220
- * others reject them at compile time.
184
+ * Display options for an overlay. Content always comes from a file `path`; the
185
+ * extension selects the variant: `.tsx` (a client-rendered React page, the only
186
+ * variant accepting `props`), `.html` (a full HTML document), or `.svg`/`.png`/
187
+ * `.mp4` (image/video, the only variant accepting the video-only fields).
221
188
  */
222
- export type OverlayConfig = FileOverlayConfig | ElementOverlayConfig | HtmlOverlayConfig;
189
+ export type OverlayConfig = TsxOverlayConfig | HtmlPageOverlayConfig | MediaOverlayConfig;
223
190
  /**
224
191
  * Upper bound for an audio level (linear gain). `4` is +12 dB, plenty of
225
192
  * headroom for a boost while guarding against accidental extreme distortion.
@@ -321,25 +288,23 @@ export declare function selected(name: string, options?: DependencyOverlayOption
321
288
  /**
322
289
  * A value accepted by {@link createOverlays} for each key:
323
290
  *
324
- * - a `string` file path (`.html`/`.svg`/`.png`/`.mp4`),
325
- * - a React element,
291
+ * - a `string` file path (`.tsx`/`.html`/`.svg`/`.png`/`.mp4`),
326
292
  * - an {@link OverlayConfig} object, or
327
293
  * - a {@link selected} render dependency.
328
294
  */
329
- export type OverlayInput = string | ReactElementLike | OverlayConfig | DependencyOverlayInput;
295
+ export type OverlayInput = string | OverlayConfig | DependencyOverlayInput;
330
296
  /**
331
297
  * A factory that builds an {@link OverlayConfig} from caller-supplied props.
332
- * Use this to make an overlay programmatic: the returned config (its content and
333
- * its placement) can depend on values only known at runtime, for example a
334
- * locator's position captured with {@link overlayRect}. Both the `element`/`html`
335
- * content and the placement may vary per call.
298
+ * Use this to make an overlay programmatic: the returned config (its `path`,
299
+ * `props`, and placement) can depend on values only known at runtime, for
300
+ * example a locator's position captured with {@link overlayRect}.
336
301
  *
337
302
  * @example
338
303
  * ```tsx
339
304
  * const overlays = createOverlays({
340
- * note: (p: { text: string }) => ({ html: `<div class="note">${p.text}</div>` }),
305
+ * ring: (t: Locator) => ({ path: './ring.html', over: t, margin: 6 }),
341
306
  * })
342
- * await overlays.note({ text: 'Saved' })(1200)
307
+ * await overlays.ring(saveButton).for('1.2s')
343
308
  * ```
344
309
  */
345
310
  export type OverlayConfigFactory<P = unknown> = (props: P) => OverlayConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../src/asset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,EAEL,KAAK,cAAc,EAEnB,KAAK,WAAW,EAGjB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAc9E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAWnD,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEhE;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACpB,CAAA;AAED;;;;;;;;GAQG;AACH,KAAK,aAAa,GAAG;IACnB,0EAA0E;IAC1E,UAAU,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;IACnC,sEAAsE;IACtE,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,qEAAqE;IACrE,CAAC,CAAC,EAAE,M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