fixes scroll action
This commit is contained in:
@@ -88,7 +88,8 @@ export const actionsSchema = z.array(z.union([
|
|||||||
}),
|
}),
|
||||||
z.object({
|
z.object({
|
||||||
type: z.literal("scroll"),
|
type: z.literal("scroll"),
|
||||||
direction: z.enum(["up", "down"]),
|
direction: z.enum(["up", "down"]).optional().default("down"),
|
||||||
|
selector: z.string().optional(),
|
||||||
}),
|
}),
|
||||||
z.object({
|
z.object({
|
||||||
type: z.literal("scrape"),
|
type: z.literal("scrape"),
|
||||||
|
|||||||
@@ -30,7 +30,8 @@ export type Action = {
|
|||||||
key: string,
|
key: string,
|
||||||
} | {
|
} | {
|
||||||
type: "scroll",
|
type: "scroll",
|
||||||
direction: "up" | "down"
|
direction?: "up" | "down",
|
||||||
|
selector?: string,
|
||||||
} | {
|
} | {
|
||||||
type: "scrape",
|
type: "scrape",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user