chatbotlite 0.6.1 → 0.6.2

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.
@@ -1176,7 +1176,7 @@ function ChatWidget(props) {
1176
1176
  const voiceEnabled = voiceCfg?.enabled === true;
1177
1177
  const voiceLang = voiceCfg?.lang ?? "en-US";
1178
1178
  const speechSupported = typeof window !== "undefined" && (Boolean(window.SpeechRecognition) || Boolean(window.webkitSpeechRecognition));
1179
- const [open, setOpen] = react.useState(false);
1179
+ const [open, setOpen] = react.useState(Boolean(props.defaultOpen));
1180
1180
  const [expanded, setExpanded] = react.useState(() => {
1181
1181
  if (typeof window === "undefined") return false;
1182
1182
  try {