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.
- package/dist/embed.global.js +2 -2
- package/dist/embed.global.js.map +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +7 -0
- package/dist/react/index.d.ts +7 -0
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/react/index.cjs
CHANGED
|
@@ -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(
|
|
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 {
|