lisichatbot 1.0.4 → 1.0.6

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 +15 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisichatbot",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "exports": {
package/src/index.js CHANGED
@@ -140,6 +140,9 @@ function renderOptions(options, field, isSingleSelect = true) {
140
140
  // Clone existing option element
141
141
  const clone = existingOption.cloneNode(true);
142
142
 
143
+ // Make clone visible (remove display:none from template)
144
+ clone.style.display = '';
145
+
143
146
  // Set data attributes on container
144
147
  clone.setAttribute('data-chat-element', inputTypeAttr);
145
148
  clone.setAttribute('data-field', field);
@@ -155,10 +158,19 @@ function renderOptions(options, field, isSingleSelect = true) {
155
158
  input.value = valueStr;
156
159
  }
157
160
 
161
+ // Find and ensure tick icon is hidden initially
162
+ const tickIcon = clone.querySelector('[data-chat-input-element="tick-icon"]');
163
+ if (tickIcon) {
164
+ tickIcon.style.display = 'none';
165
+ }
166
+
158
167
  // Find and set text
159
168
  const textElement = clone.querySelector('[data-chat-input-element="text"]');
160
169
  if (textElement) {
161
170
  textElement.textContent = optionName;
171
+ textElement.style.display = ''; // Make sure text is visible
172
+ } else {
173
+ console.error('Text element not found in option');
162
174
  }
163
175
 
164
176
  // Append to wrapper
@@ -557,6 +569,9 @@ function injectStyles() {
557
569
  /* Options wrapper spacing */
558
570
  [data-chat-element="options-wrapper"] {
559
571
  margin-bottom: 20px;
572
+ display: flex;
573
+ flex-direction: column;
574
+ gap: 12px;
560
575
  }
561
576
 
562
577
  /* Messages container padding */