doc-detective-common 4.23.0 → 4.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +39128 -4588
- package/dist/schemas/schemas.json +39128 -4588
- package/dist/types/generated/record_v3.d.ts +38 -5
- package/dist/types/generated/record_v3.d.ts.map +1 -1
- package/dist/types/generated/step_v3.d.ts +529 -44
- package/dist/types/generated/step_v3.d.ts.map +1 -1
- package/dist/types/generated/swipe_v3.d.ts +288 -0
- package/dist/types/generated/swipe_v3.d.ts.map +1 -0
- package/dist/types/generated/swipe_v3.js +7 -0
- package/dist/types/generated/swipe_v3.js.map +1 -0
- package/dist/types/generated/test_v3.d.ts +2159 -1125
- package/dist/types/generated/test_v3.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit manually
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Start recording. Must be followed by a `stopRecord` step. The `browser` engine captures the Chrome viewport (works under concurrency); the `ffmpeg` engine captures the screen and supports any application. Supported extensions: [ '.mp4', '.webm', '.gif' ]
|
|
6
|
+
* Start recording. Must be followed by a `stopRecord` step. The `browser` engine captures the Chrome viewport (works under concurrency); the `ffmpeg` engine captures the screen and supports any application. On Android/iOS contexts, recording captures the device screen through the device itself — `engine` doesn't apply. Supported extensions: [ '.mp4', '.webm', '.gif' ]
|
|
7
7
|
*/
|
|
8
8
|
export type Record = RecordSimple | RecordDetailed | RecordBoolean;
|
|
9
9
|
/**
|
|
@@ -38,6 +38,18 @@ export type ByIndex1 = number;
|
|
|
38
38
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
39
39
|
*/
|
|
40
40
|
export type ByName1 = string;
|
|
41
|
+
/**
|
|
42
|
+
* Which app window to act on. Omit to use the active window. Apps have windows, no tabs.
|
|
43
|
+
*/
|
|
44
|
+
export type AppWindowSelector = ByIndex2 | ByName2 | ByCriteria2;
|
|
45
|
+
/**
|
|
46
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest (e.g. a dialog the app just opened).
|
|
47
|
+
*/
|
|
48
|
+
export type ByIndex2 = number;
|
|
49
|
+
/**
|
|
50
|
+
* Assigned window name. The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
51
|
+
*/
|
|
52
|
+
export type ByName2 = string;
|
|
41
53
|
/**
|
|
42
54
|
* Recording engine to use. Either a string shorthand selecting the engine with defaults, or an object for full control. If unset, defaults to the `browser` engine when a visible Chrome context is available and to `ffmpeg` otherwise.
|
|
43
55
|
*/
|
|
@@ -47,14 +59,14 @@ export type RecordingEngine = RecordingEngineSimple | RecordingEngineDetailed;
|
|
|
47
59
|
*/
|
|
48
60
|
export type RecordingEngineSimple = "browser" | "ffmpeg";
|
|
49
61
|
/**
|
|
50
|
-
* If `true`, starts recording — auto-selecting the `browser` engine for a visible Chrome context and the `ffmpeg` engine otherwise. If `false`, doesn't record.
|
|
62
|
+
* If `true`, starts recording — auto-selecting the `browser` engine for a visible Chrome context, the device screen on Android/iOS contexts, and the `ffmpeg` engine otherwise. If `false`, doesn't record.
|
|
51
63
|
*/
|
|
52
64
|
export type RecordBoolean = boolean;
|
|
53
65
|
export interface RecordDetailed {
|
|
54
66
|
/**
|
|
55
|
-
* The browser window/tab to record. Omit to record the active
|
|
67
|
+
* The browser window/tab or app window to record. Omit to record the active surface. The targeted surface stays focused afterward. App surfaces use the object form ({ "app": … }) and are captured via the `ffmpeg` engine, cropped to the app window by default.
|
|
56
68
|
*/
|
|
57
|
-
surface?: SurfaceByBrowserEngine | BrowserSurface;
|
|
69
|
+
surface?: SurfaceByBrowserEngine | BrowserSurface | AppSurface;
|
|
58
70
|
/**
|
|
59
71
|
* File path of the recording. Supports the `.mp4`, `.webm`, and `.gif` extensions. If not specified, the file name is the ID of the step, and the extension is `.mp4`.
|
|
60
72
|
*/
|
|
@@ -122,13 +134,34 @@ export interface ByCriteria1 {
|
|
|
122
134
|
*/
|
|
123
135
|
url?: string;
|
|
124
136
|
}
|
|
137
|
+
export interface AppSurface {
|
|
138
|
+
/**
|
|
139
|
+
* Name of an app surface opened by `startSurface` (its `name`, or the default derived from the app identifier).
|
|
140
|
+
*/
|
|
141
|
+
app: string;
|
|
142
|
+
window?: AppWindowSelector;
|
|
143
|
+
}
|
|
144
|
+
export interface ByCriteria2 {
|
|
145
|
+
/**
|
|
146
|
+
* Assigned window name.
|
|
147
|
+
*/
|
|
148
|
+
name?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Index in creation order. Negative counts from the end.
|
|
151
|
+
*/
|
|
152
|
+
index?: number;
|
|
153
|
+
/**
|
|
154
|
+
* Window title to match. Substring, or /regex/.
|
|
155
|
+
*/
|
|
156
|
+
title?: string;
|
|
157
|
+
}
|
|
125
158
|
export interface RecordingEngineDetailed {
|
|
126
159
|
/**
|
|
127
160
|
* Recording engine. `browser` records the Chrome viewport (concurrency-safe); `ffmpeg` records the screen and supports any application.
|
|
128
161
|
*/
|
|
129
162
|
name: "browser" | "ffmpeg";
|
|
130
163
|
/**
|
|
131
|
-
* What the `ffmpeg` engine captures. `display` records the full screen, `window` the active window, `viewport` the browser content area. Ignored by the `browser` engine, which always captures its tab. `window` and `viewport` are best-effort (captured full-screen, then cropped).
|
|
164
|
+
* What the `ffmpeg` engine captures. `display` records the full screen, `window` the active window, `viewport` the browser content area. Ignored by the `browser` engine, which always captures its tab. `window` and `viewport` are best-effort (captured full-screen, then cropped). If unset, defaults to `window` when the recording's `surface` is an app surface and to `display` otherwise. `viewport` doesn't apply to app surfaces (they have no browser viewport).
|
|
132
165
|
*/
|
|
133
166
|
target?: "display" | "window" | "viewport";
|
|
134
167
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record_v3.d.ts","sourceRoot":"","sources":["../../../src/types/generated/record_v3.ts"],"names":[],"mappings":"AACA;;;GA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