@axos-web-dev/shared-components 1.0.100-dev.40 → 1.0.100-dev.41

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.
@@ -411,7 +411,7 @@ const ChatWindow = ({
411
411
  placeholder: "Ask something...",
412
412
  className: inputStyle,
413
413
  autoFocus: true,
414
- disabled: inputDisabled || status !== "connected" || escalationDeflected
414
+ disabled: inputDisabled || status !== "connected" || messages.length == 0 || escalationDeflected
415
415
  }
416
416
  ),
417
417
  /* @__PURE__ */ jsx(
@@ -420,7 +420,7 @@ const ChatWindow = ({
420
420
  className: clsx(sendButtonStyle, input.trim().length > 0 && "active"),
421
421
  type: "submit",
422
422
  title: "Send message",
423
- disabled: inputDisabled || status !== "connected" || !input.trim(),
423
+ disabled: inputDisabled || status !== "connected" || !input.trim() || messages.length == 0 || escalationDeflected,
424
424
  children: /* @__PURE__ */ jsxs(
425
425
  "svg",
426
426
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@axos-web-dev/shared-components",
3
3
  "description": "Axos shared components library for web.",
4
- "version": "1.0.100-dev.40",
4
+ "version": "1.0.100-dev.41",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",