2
0

fix(wp): 🐛 Bubble not displaying with proactive message

This commit is contained in:
Baptiste Arnaud
2022-05-05 12:57:11 -07:00
parent 78c4596e93
commit ad3a140982
4 changed files with 24 additions and 21 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "wordpress", "name": "wordpress",
"version": "2.1.7", "version": "2.1.8",
"main": "index.js", "main": "index.js",
"repository": "https://github.com/typebot-io/wordpress.git", "repository": "https://github.com/typebot-io/wordpress.git",
"author": "baptisteArno", "author": "baptisteArno",
@ -10,7 +10,7 @@
}, },
"scripts": { "scripts": {
"deploy": "yarn copy && yarn commit", "deploy": "yarn copy && yarn commit",
"copy": "svn copy ./trunk ./tags/2.1.7", "copy": "svn copy ./trunk ./tags/2.1.8",
"commit": "svn ci -m 'Update typebot lib'" "commit": "svn ci -m 'Fix proactive message bug'"
} }
} }

View File

@ -5,7 +5,7 @@ Requires at least: 5.0
Tested up to: 5.9.1 Tested up to: 5.9.1
License: GPL 2.0 License: GPL 2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.txt License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Stable Tag: 2.1.6 Stable Tag: 2.1.8
Build beautiful conversational forms Build beautiful conversational forms
@ -26,6 +26,9 @@ This plugin relies on Typebot which is a tool that allows you to create conversa
3. Activate your Typebot with the "Typebot" admin button located in the sidebar 3. Activate your Typebot with the "Typebot" admin button located in the sidebar
== Changelog == == Changelog ==
= 2.1.8 =
* Fix bubble not displayed with proactive message
= 2.1.6 = = 2.1.6 =
* Fix auto open bubble even if empty param * Fix auto open bubble even if empty param

View File

@ -154,32 +154,32 @@ class Typebot_Public
$url . $url .
'", '",
autoOpenDelay: ' . autoOpenDelay: ' .
empty(get_option('chat_delay')) (get_option('chat_delay') === '' || get_option('chat_delay') === null
? 'undefined' ? 'undefined'
: get_option('chat_delay') * 1000 . : get_option('chat_delay') * 1000) .
', ',
proactiveMessage: { proactiveMessage: {
avatarUrl: "' . avatarUrl: "' .
get_option('avatar') . get_option('avatar') .
'", '",
textContent: "' . textContent: "' .
get_option('text_content') . get_option('text_content') .
'", '",
delay: ' . delay: ' .
get_option('bubble_delay') * 1000 . get_option('bubble_delay') * 1000 .
', ',
rememberClose: ' . rememberClose: ' .
$remember . $remember .
' '
}, },
hiddenVariables: typebotWpUser, hiddenVariables: typebotWpUser,
button: { button: {
color: "' . color: "' .
$button_color . $button_color .
'", '",
iconUrl: "' . iconUrl: "' .
$chat_icon . $chat_icon .
'", '",
}, },
}'; }';
} }

View File

@ -3,7 +3,7 @@
/** /**
* Plugin Name: Typebot * Plugin Name: Typebot
* Description: Convert more with conversational forms * Description: Convert more with conversational forms
* Version: 2.1.7 * Version: 2.1.8
* Author: Typebot * Author: Typebot
* Author URI: http://typebot.io/ * Author URI: http://typebot.io/
* License: GPL-2.0+ * License: GPL-2.0+
@ -16,7 +16,7 @@ if (!defined('WPINC')) {
die(); die();
} }
define('TYPEBOT_VERSION', '2.1.7'); define('TYPEBOT_VERSION', '2.1.8');
function activate_typebot() function activate_typebot()
{ {