File tree Expand file tree Collapse file tree 4 files changed +33
-8
lines changed Expand file tree Collapse file tree 4 files changed +33
-8
lines changed Original file line number Diff line number Diff line change 11const Gleap = window . Gleap ;
22
3- /* Gleap.setFrameUrl("http://0.0.0.0:3001");
3+ Gleap . setFrameUrl ( "http://0.0.0.0:3001" ) ;
44Gleap . setApiUrl ( "http://0.0.0.0:9000" ) ;
5- Gleap.setWSApiUrl("ws://0.0.0.0:8080");*/
5+ Gleap . setWSApiUrl ( "ws://0.0.0.0:8080" ) ;
66
77// Gleap.setLanguage("en");
88
9- Gleap . initialize ( "ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV " ) ;
9+ Gleap . initialize ( "rinrKZAvjqOheSjpdUjFnp01tSOF3WTd " ) ;
1010
1111/*Gleap.setUrlHandler((url, newTab) => {
1212 alert("URL: " + url + " newTab: " + newTab);
Original file line number Diff line number Diff line change 11{
22 "name" : " gleap" ,
3- "version" : " 13.0.5 " ,
3+ "version" : " 13.0.6 " ,
44 "main" : " build/index.js" ,
55 "scripts" : {
66 "start" : " webpack serve" ,
Original file line number Diff line number Diff line change @@ -80,17 +80,25 @@ export default class GleapProductTours {
8080 driverSteps . push ( driverStep ) ;
8181 }
8282
83+ var buttons = [
84+ 'next' ,
85+ 'close'
86+ ] ;
87+
88+ console . log ( "config.backButton" , config ) ;
89+ if ( config . backButton ) {
90+ buttons . push ( 'previous' ) ;
91+ }
92+
8393 const gleapTourObj = GleapTours ( {
8494 showProgress : true ,
8595 steps : driverSteps ,
8696 showProgress : steps . length > 1 ,
8797 allowClose : config . allowClose ,
8898 nextBtnText : config . nextText ,
8999 doneBtnText : config . doneText ,
90- showButtons : [
91- 'next' ,
92- 'close'
93- ] ,
100+ prevBtnText : config . prevText ,
101+ showButtons : buttons ,
94102 onDestroyStarted : ( ) => {
95103 if ( ! gleapTourObj . hasNextStep ( ) ) {
96104 gleapTourObj . destroy ( ) ;
Original file line number Diff line number Diff line change @@ -1607,6 +1607,12 @@ export const injectStyledCSS = (
16071607 }
16081608 }
16091609
1610+ .gleap-tour-message,
1611+ .gleap-tour-message p,
1612+ .gleap-tour-message ul {
1613+ color: ${ contrastBackgroundColor } ;
1614+ }
1615+
16101616 .gleap-tour-message p {
16111617 line-height: 1.3;
16121618 }
@@ -1928,6 +1934,17 @@ export const injectStyledCSS = (
19281934 box-shadow: none !important;
19291935 outline: none !important;
19301936 }
1937+
1938+ .gleap-tour-popover-prev-btn {
1939+ color: ${ contrastBackgroundColor } !important;
1940+ background-color: ${ backgroundColorHover } !important;
1941+ margin-right: 3px;
1942+ }
1943+
1944+ .gleap-tour-popover-prev-btn:hover {
1945+ background-color: ${ primaryColor } 22 !important;
1946+ color: ${ primaryColor } !important;
1947+ }
19311948
19321949 .gleap-tour-popover-footer .gleap-tour-popover-btn-disabled {
19331950 opacity: 0.5;
You can’t perform that action at this time.
0 commit comments