@smart-cloud/ai-kit-ui 1.1.35 → 1.1.36
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.cjs +4 -4
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/src/ai-feature/AiFeature.tsx +3 -2
package/package.json
CHANGED
|
@@ -335,7 +335,7 @@ const AiFeatureBase: FC<AiFeatureProps & AiKitShellInjectedProps> = (props) => {
|
|
|
335
335
|
|
|
336
336
|
const [state, setState] = useState<string>();
|
|
337
337
|
const [featureOpen, setFeatureOpen] = useState<boolean>(!showOpenButton);
|
|
338
|
-
const [optionsOpen, setOptionsOpen] = useState<boolean>(
|
|
338
|
+
const [optionsOpen, setOptionsOpen] = useState<boolean>();
|
|
339
339
|
const [backendConfigured, setBackendConfigured] = useState(false);
|
|
340
340
|
const [error, setError] = useState<string | null>(null);
|
|
341
341
|
const [generated, setGenerated] = useState<never | null>(null);
|
|
@@ -969,6 +969,7 @@ Follow these additional instructions: ${instructions}`
|
|
|
969
969
|
|
|
970
970
|
useEffect(() => {
|
|
971
971
|
if (
|
|
972
|
+
optionsOpen !== false ||
|
|
972
973
|
!featureOpen ||
|
|
973
974
|
!autoRun ||
|
|
974
975
|
!canGenerate ||
|
|
@@ -1218,7 +1219,7 @@ Follow these additional instructions: ${instructions}`
|
|
|
1218
1219
|
)}
|
|
1219
1220
|
</Group>
|
|
1220
1221
|
|
|
1221
|
-
<CollapseComponent in={optionsOpen}>
|
|
1222
|
+
<CollapseComponent in={optionsOpen === true}>
|
|
1222
1223
|
{optionsDisplay === "collapse" && <Divider my="sm" />}
|
|
1223
1224
|
<OptionsComponent gap="xs" justify="space-between">
|
|
1224
1225
|
{/* TOPIC */}
|