@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-cloud/ai-kit-ui",
3
- "version": "1.1.35",
3
+ "version": "1.1.36",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -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>(false);
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 */}