@altimateai/ui-components 0.0.4-beta.2 → 0.0.5-beta.1

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/CoachForm.js CHANGED
@@ -5,7 +5,7 @@ import { E as Dt, j as Ck, K as mi, y as vk, z as Ak, G as Sk } from "./Tooltip.
5
5
  import I0, { forwardRef as wk, useRef as al, useEffect as yr, useState as Ht, useCallback as Lk, createContext as Ik, useContext as Nk, useReducer as Dk, useId as Sc } from "react";
6
6
  import { z as Ot } from "zod";
7
7
  import { T as Rk, c as Yn, g as Eo, S as Rp, r as Ok, f as Mk, h as Dy, j as Ry, R as Oy, k as My, l as Bk, m as Fk, n as Q1, o as Op, p as Mp, q as Pk, t as N0, u as Uk, s as Oe, C as Nh, A as ki, I as Hk, a as zk } from "./redux-toolkit.modern.js";
8
- import { aq as jk, at as Vk, au as Yk, av as Wk, ax as qk, ay as Gk, aw as $k, aA as Xk, az as Kk, aB as By, ap as Qk, S as Zk, D as Jk, j as e8, F as t8, J as n8, T as Dh, ai as r8, a7 as Fy, ac as Py, ad as Uy, af as Hy, ak as i8, al as a8, am as s8, ah as ec, an as o8, a6 as l8, Q as zy, M as u8, N as c8, O as h8, C as d8, e as f8, f as p8, g as m8, h as Bp, i as Fp, a5 as g8, ag as y8 } from "./NativeSelect.js";
8
+ import { aq as jk, at as Vk, au as Yk, av as Wk, ax as qk, ay as Gk, aw as $k, aA as Xk, az as Kk, aB as By, ap as Qk, S as Zk, E as Jk, k as e8, H as t8, K as n8, N as Dh, ai as r8, a8 as Fy, ad as Py, ae as Uy, ag as Hy, ak as i8, al as a8, am as s8, T as ec, an as o8, j as l8, V as zy, O as u8, Q as c8, U as h8, C as d8, e as f8, f as p8, g as m8, h as Bp, i as Fp, a7 as g8, ah as y8 } from "./NativeSelect.js";
9
9
  import b8 from "react-plotly.js";
10
10
  import './CoachForm.css';const _8 = "_loadingBtn_gadec_1", x8 = {
11
11
  loadingBtn: _8
@@ -45542,7 +45542,7 @@ const nre = (e) => typeof e.props.children == "string" ? e.props.children : "",
45542
45542
  ), are = ({ children: e }) => /* @__PURE__ */ U.jsx(
45543
45543
  RT,
45544
45544
  {
45545
- title: "Tool Call",
45545
+ title: "Fetching more context...",
45546
45546
  className: "al-tool-call",
45547
45547
  renderContent: (t) => /* @__PURE__ */ U.jsx(
45548
45548
  Nh,
@@ -46319,13 +46319,13 @@ const jT = (e, t) => {
46319
46319
  initialState: wre,
46320
46320
  reducers: {
46321
46321
  createSession: (e, t) => {
46322
- var r, i;
46322
+ var r, i, a;
46323
46323
  const n = Sre();
46324
46324
  e.sessions[n] = {
46325
46325
  id: n,
46326
46326
  messages: [],
46327
46327
  context: t.payload.context || {},
46328
- selectedModel: ((i = (r = t.payload) == null ? void 0 : r.models) == null ? void 0 : i[0]) || null
46328
+ selectedModel: ((a = (i = (r = t.payload) == null ? void 0 : r.models) == null ? void 0 : i[0]) == null ? void 0 : a.value) || null
46329
46329
  }, e.currentSessionId = n;
46330
46330
  },
46331
46331
  setSelectedModel: (e, t) => {
@@ -49894,7 +49894,7 @@ const Fre = /* @__PURE__ */ Eo(Bre), $T = ({ artifacts: e }) => {
49894
49894
  By,
49895
49895
  {
49896
49896
  "aria-label": "Model selection",
49897
- options: p.map((R) => ({ value: R, label: R })),
49897
+ options: p,
49898
49898
  value: (b == null ? void 0 : b.selectedModel) || void 0,
49899
49899
  onChange: v,
49900
49900
  placeholder: "Select model",