Skip to content

Commit

Permalink
Add new options for scrolling animations: "scroll_till_selector" and …
Browse files Browse the repository at this point in the history
…"scroll_till_selector_adjust_top"
  • Loading branch information
krasun committed Oct 13, 2024
1 parent 60138d9 commit a58a12e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "screenshotone-validations",
"homepage": "https://screenshotone.com",
"version": "1.0.52",
"version": "1.0.53",
"description": "Validation schemes for the ScreenshotOne API requests.",
"repository": {
"type": "git",
Expand Down
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,9 @@ const animateScheme = withHtmlOrUrlOrMarkdownRequired
otherwise: Joi.forbidden(),
}),

scroll_till_selector: Joi.string().optional(),
scroll_till_selector_adjust_top: Joi.number().integer().optional(),

scroll_try_navigate: Joi.boolean().default(false).optional(),
scroll_navigate_after: Joi.number().integer().optional(),
scroll_navigate_to_url: Joi.string().custom(validUri).optional(),
Expand Down

0 comments on commit a58a12e

Please sign in to comment.