llmasaservice-ui 0.7.3 → 0.7.4

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.
package/dist/index.js CHANGED
@@ -254,7 +254,7 @@ var ChatPanel = ({
254
254
  const buttonId = `button-${messages.length}-${index}-${matchIndex}`;
255
255
  let html = match;
256
256
  if (action.type === "button" || action.type === "callback") {
257
- html = `<button id="${buttonId}" style="${(_a = action.style) != null ? _a : "button"}>${(_b = action.markdown) != null ? _b : match}</button>`;
257
+ html = `<button id="${buttonId}" style="${(_a = action.style) != null ? _a : "button"}">${(_b = action.markdown) != null ? _b : match}</button>`;
258
258
  } else if (action.type === "markdown" || action.type === "html") {
259
259
  html = (_c = action.markdown) != null ? _c : "";
260
260
  }
package/dist/index.mjs CHANGED
@@ -220,7 +220,7 @@ var ChatPanel = ({
220
220
  const buttonId = `button-${messages.length}-${index}-${matchIndex}`;
221
221
  let html = match;
222
222
  if (action.type === "button" || action.type === "callback") {
223
- html = `<button id="${buttonId}" style="${(_a = action.style) != null ? _a : "button"}>${(_b = action.markdown) != null ? _b : match}</button>`;
223
+ html = `<button id="${buttonId}" style="${(_a = action.style) != null ? _a : "button"}">${(_b = action.markdown) != null ? _b : match}</button>`;
224
224
  } else if (action.type === "markdown" || action.type === "html") {
225
225
  html = (_c = action.markdown) != null ? _c : "";
226
226
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llmasaservice-ui",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "Prebuilt UI components for LLMAsAService.io",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/ChatPanel.tsx CHANGED
@@ -178,7 +178,7 @@ const ChatPanel: React.FC<ChatPanelProps & ExtraProps> = ({
178
178
 
179
179
  let html = match;
180
180
  if (action.type === "button" || action.type === "callback") {
181
- html = `<button id="${buttonId}" style="${action.style ?? 'button'}>${
181
+ html = `<button id="${buttonId}" style="${action.style ?? 'button'}">${
182
182
  action.markdown ?? match
183
183
  }</button>`;
184
184
  } else if (action.type === "markdown" || action.type === "html") {