lisichatbot 1.8.9 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisichatbot",
3
- "version": "1.8.9",
3
+ "version": "1.9.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "exports": {
package/src/index.js CHANGED
@@ -3331,12 +3331,11 @@ function init(flowName, flowConfig, options = {}) {
3331
3331
  return null;
3332
3332
  }
3333
3333
 
3334
- // ✅ NEW: Show/hide cancel button based on config
3334
+ // ✅ NEW: Show/hide cancel button based on config (no styling, only visibility)
3335
3335
  if (elements.cancelBtn) {
3336
3336
  if (config.showCancelButton === true) {
3337
- elements.cancelBtn.style.marginTop = '8px';
3338
3337
  elements.cancelBtn.style.display = '';
3339
- console.log('✅ Cancel button found and shown (showCancelButton: true)');
3338
+ console.log('✅ Cancel button shown (showCancelButton: true)');
3340
3339
  } else {
3341
3340
  elements.cancelBtn.style.display = 'none';
3342
3341
  console.log('🚫 Cancel button hidden (showCancelButton: false)');