From ec66a1d511916ec19339e185de98c48d43f3aa75 Mon Sep 17 00:00:00 2001 From: Aliaksei Kislou Date: Tue, 14 Feb 2023 12:26:02 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#64277=20[intro.js]?= =?UTF-8?q?=20Add=20missing=20`nextToDone`=20option=20by=20@evenfrost?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add missing option This adds the missing `nextToDone` option for intro.js. * Add tests for the `nextToDone` option --- types/intro.js/index.d.ts | 1 + types/intro.js/intro.js-tests.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/types/intro.js/index.d.ts b/types/intro.js/index.d.ts index ac31455125..696e5f7097 100644 --- a/types/intro.js/index.d.ts +++ b/types/intro.js/index.d.ts @@ -43,6 +43,7 @@ declare namespace introJs { doneLabel?: string | undefined; hidePrev?: boolean | undefined; hideNext?: boolean | undefined; + nextToDone?: boolean | undefined; tooltipPosition?: string | undefined; tooltipClass?: string | undefined; highlightClass?: string | undefined; diff --git a/types/intro.js/intro.js-tests.ts b/types/intro.js/intro.js-tests.ts index a4d6e8c6f8..63a124ba95 100644 --- a/types/intro.js/intro.js-tests.ts +++ b/types/intro.js/intro.js-tests.ts @@ -10,6 +10,7 @@ intro.setOption('showProgress', true); intro.setOptions({ hidePrev: true, hideNext: false, + nextToDone: true, scrollPadding: 30, hintAnimation: false, steps: [