From b5eab0bee0fa126a484e3c384412107b7081692e Mon Sep 17 00:00:00 2001 From: Dmytro Krasun Date: Thu, 16 May 2024 09:39:33 +0300 Subject: [PATCH] Add scroll navigation options --- package.json | 2 +- src/main.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 21fd54f..eaabd98 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "screenshotone-validations", "homepage": "https://screenshotone.com", - "version": "1.0.29", + "version": "1.0.30", "description": "Validation schemes for the ScreenshotOne API requests.", "repository": { "type": "git", diff --git a/src/main.ts b/src/main.ts index 2444ef9..9eae0d2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -446,6 +446,10 @@ const animateScheme = withHtmlOrUrlOrMarkdownRequired otherwise: Joi.forbidden(), }), + scroll_navigate_after: Joi.number().integer().optional(), + scroll_navigate_to_url: Joi.string().trim().custom(validUri).optional(), + scroll_navigate_hint_links: Joi.array().items(Joi.string().trim()).optional(), + clip_x: Joi.when("format", { is: Joi.valid("gif"), then: Joi.number().integer().optional(),