lisichatbot 1.0.8 → 1.1.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 +14 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisichatbot",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "exports": {
package/src/index.js CHANGED
@@ -420,8 +420,6 @@ async function showNextStep() {
420
420
  }
421
421
 
422
422
  function handleCompletion() {
423
- addMessage('Thank you! All done.');
424
-
425
423
  console.log('✅ Flow completed. Data:', chatState.data);
426
424
 
427
425
  // Hide Next button
@@ -600,14 +598,13 @@ function injectStyles() {
600
598
  /* Bot message spacing and alignment */
601
599
  [data-chat-element="bot-message-wrapper"] {
602
600
  margin-bottom: 16px;
603
- display: flex;
604
- justify-content: flex-start;
605
- width: 100%;
601
+ display: inline-flex;
602
+ max-width: 70%;
603
+ align-self: flex-start;
606
604
  }
607
605
 
608
606
  /* Bot message natural width from left */
609
607
  [data-chat-element="bot-message-text"] {
610
- max-width: 70%;
611
608
  width: auto;
612
609
  display: inline-block;
613
610
  }
@@ -615,16 +612,23 @@ function injectStyles() {
615
612
  /* User message spacing and alignment */
616
613
  [data-chat-element="user-message-wrapper"] {
617
614
  margin-bottom: 16px;
618
- display: flex;
619
- justify-content: flex-end;
620
- width: 100%;
615
+ display: inline-flex;
616
+ max-width: 70%;
617
+ align-self: flex-end;
621
618
  }
622
619
 
623
620
  /* User message natural width from right */
624
621
  [data-chat-element="user-message-text"] {
625
- max-width: 70%;
626
622
  width: auto;
627
623
  display: inline-block;
624
+ text-align: left;
625
+ }
626
+
627
+ /* Messages container as flex column */
628
+ [data-chat-element="messages-container"] {
629
+ padding: 20px;
630
+ display: flex;
631
+ flex-direction: column;
628
632
  }
629
633
 
630
634
  /* Options wrapper spacing and gap */
@@ -634,11 +638,6 @@ function injectStyles() {
634
638
  flex-direction: column;
635
639
  gap: 12px;
636
640
  }
637
-
638
- /* Messages container padding */
639
- [data-chat-element="messages-container"] {
640
- padding: 20px;
641
- }
642
641
  `;
643
642
 
644
643
  document.head.appendChild(style);