Skip to content

Commit

Permalink
fix: updating hint callback args + updating ts
Browse files Browse the repository at this point in the history
  • Loading branch information
afshinm committed Jul 2, 2023
1 parent 4a5e7d0 commit b25e91c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 45 deletions.
76 changes: 38 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-json": "^5.0.1",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-typescript": "^11.0.0",
"@rollup/plugin-typescript": "^11.1.2",
"@types/jest": "^29.4.2",
"@types/node": "^18.15.9",
"autoprefixer": "^9.0.0",
Expand Down Expand Up @@ -73,9 +73,9 @@
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-progress": "^1.1.2",
"rollup-plugin-terser": "^7.0.2",
"ts-jest": "^29.0.5",
"tslib": "^2.5.0",
"typescript": "^4.9.5"
"ts-jest": "^29.1.1",
"tslib": "^2.6.0",
"typescript": "^5.1.6"
},
"engine": [
"node >=0.1.90"
Expand Down
6 changes: 3 additions & 3 deletions src/core/hint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function hideHint(intro: IntroJs, stepId: number) {

// call the callback function (if any)
if (typeof intro._hintCloseCallback !== "undefined") {
await intro._hintCloseCallback(intro, stepId);
await intro._hintCloseCallback(stepId);
}
}

Expand Down Expand Up @@ -214,7 +214,7 @@ export async function addHints(intro: IntroJs) {

// call the callback function (if any)
if (typeof intro._hintsAddedCallback !== "undefined") {
await intro._hintsAddedCallback(intro);
await intro._hintsAddedCallback();
}

if (intro._options.hintAutoRefreshInterval >= 0) {
Expand Down Expand Up @@ -312,7 +312,7 @@ export async function showHintDialog(intro: IntroJs, stepId: number) {

// call the callback function (if any)
if (typeof intro._hintClickCallback !== "undefined") {
await intro._hintClickCallback(intro, hintElement, item, stepId);
await intro._hintClickCallback(hintElement, item, stepId);
}

// remove all open tooltips
Expand Down

0 comments on commit b25e91c

Please sign in to comment.