@kwirthmagnify/kwirth-common-ai 0.5.30 → 0.5.31

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.
Files changed (2) hide show
  1. package/dist/front.js +4 -0
  2. package/package.json +1 -1
package/dist/front.js CHANGED
@@ -192,6 +192,10 @@ const AiConfigProvider = (props) => {
192
192
  const importProvRef = (0, react_1.useRef)(null);
193
193
  const [selectedIndex, setSelectedIndex] = (0, react_1.useState)(null);
194
194
  const [showPassword, setShowPassword] = (0, react_1.useState)(false);
195
+ (0, react_1.useEffect)(() => {
196
+ setProviders(JSON.parse(JSON.stringify(props.providers)));
197
+ setSelectedIndex(null);
198
+ }, [props.providers]);
195
199
  const [providerName, setProviderName] = (0, react_1.useState)('');
196
200
  const [providerKey, setProviderKey] = (0, react_1.useState)((_a = props.providersAvailable[0]) !== null && _a !== void 0 ? _a : '');
197
201
  const onProviderSelected = (p, index) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwirthmagnify/kwirth-common-ai",
3
- "version": "0.5.30",
3
+ "version": "0.5.31",
4
4
  "description": "Shared AI/LLM types and utilities for Kwirth AI plugins",
5
5
  "scripts": {
6
6
  "build": "del .\\dist\\* /s /q 2>nul & tsc",