File tree Expand file tree Collapse file tree 5 files changed +12
-6
lines changed Expand file tree Collapse file tree 5 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ export namespace Gleap {
137
137
function open ( ) : void ;
138
138
function openChecklists ( showBackButton ?: boolean ) : void ;
139
139
function openChecklist ( checklistId : string , showBackButton ?: boolean ) : void ;
140
- function startChecklist ( outboundId : string , showBackButton ?: boolean ) : void ;
140
+ function startChecklist ( outboundId : string , showBackButton ?: boolean , sharedKey ?: string ) : void ;
141
141
function openNews ( showBackButton ?: boolean ) : void ;
142
142
function openNewsArticle ( id : string , showBackButton ?: boolean ) : void ;
143
143
function openConversations ( showBackButton ?: boolean ) : void ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gleap" ,
3
- "version" : " 14.5.3 " ,
3
+ "version" : " 14.5.4 " ,
4
4
"main" : " build/cjs/index.js" ,
5
5
"module" : " build/esm/index.mjs" ,
6
6
"exports" : {
Original file line number Diff line number Diff line change @@ -1035,7 +1035,11 @@ class Gleap {
1035
1035
/**
1036
1036
* Starts a new checklist and opens it.
1037
1037
*/
1038
- static startChecklist ( outboundId , showBackButton = true ) {
1038
+ static startChecklist (
1039
+ outboundId ,
1040
+ showBackButton = true ,
1041
+ sharedKey = undefined
1042
+ ) {
1039
1043
if ( ! outboundId ) {
1040
1044
return false ;
1041
1045
}
@@ -1046,6 +1050,8 @@ class Gleap {
1046
1050
name : "start-checklist" ,
1047
1051
data : {
1048
1052
outboundId : outboundId ,
1053
+ hideBackButton : ! showBackButton ,
1054
+ ...( sharedKey ? { sharedKey : sharedKey } : { } ) ,
1049
1055
} ,
1050
1056
} ,
1051
1057
true
@@ -1296,7 +1302,7 @@ const handleGleapLink = (href) => {
1296
1302
1297
1303
if ( type === "checklist" ) {
1298
1304
const identifier = urlParts [ 3 ] ;
1299
- Gleap . startChecklist ( identifier , true ) ;
1305
+ Gleap . startChecklist ( identifier , true , urlParts [ 4 ] ) ;
1300
1306
}
1301
1307
1302
1308
if ( type === "tour" ) {
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export default class GleapBannerManager {
72
72
Gleap . openHelpCenterArticle ( data . data ?. articleId ) ;
73
73
}
74
74
if ( data . name === "show-checklist" ) {
75
- Gleap . startChecklist ( data . data ?. checklistId ) ;
75
+ Gleap . startChecklist ( data . data ?. checklistId , true , data . data ?. sharedKey ) ;
76
76
}
77
77
} catch ( exp ) { }
78
78
} ) ;
Original file line number Diff line number Diff line change @@ -1156,7 +1156,7 @@ export const registerGleapChecklist = () => {
1156
1156
else if ( step . action === "HELP_ARTICLE" )
1157
1157
Gleap . openHelpCenterArticle ( step . articleId ) ;
1158
1158
else if ( step . action === "CHECKLIST" )
1159
- Gleap . startChecklist ( step . checklistId ) ;
1159
+ Gleap . startChecklist ( step . checklistId , true , step ?. sharedKey ) ;
1160
1160
} catch ( gleapError ) { }
1161
1161
} ) ;
1162
1162
}
You can’t perform that action at this time.
0 commit comments