@altimateai/ui-components 0.0.4-beta.2 → 0.0.4-beta.3

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
@@ -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",
@@ -1,6 +1,6 @@
1
1
  import React__default, { FC } from 'react';
2
- import { j as ChatbotProps, k as ChatbotProviderProps, m as ChatState, A as Artifact, n as ContextOption, I as InteractionRequest, o as ChatMessage, p as AgentAction, q as ChatResponse } from '../types-BKWf381e.js';
3
- export { y as AgentStreamResponse, s as AssistantMeta, t as ChatSession, v as ChatbotUrls, F as Feedback, u as FileUploadProps, x as InteractionChoice, w as InteractionType, r as LoadingState } from '../types-BKWf381e.js';
2
+ import { j as ChatbotProps, k as ChatbotProviderProps, m as ChatState, A as Artifact, n as ContextOption, I as InteractionRequest, o as ChatMessage, p as AgentAction, q as ChatResponse } from '../types-ClqBUI2s.js';
3
+ export { y as AgentStreamResponse, s as AssistantMeta, t as ChatSession, v as ChatbotUrls, F as Feedback, u as FileUploadProps, x as InteractionChoice, w as InteractionType, r as LoadingState } from '../types-ClqBUI2s.js';
4
4
  import { UnknownAction } from '@reduxjs/toolkit';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import 'zod';
package/dist/index.d.ts CHANGED
@@ -4,8 +4,8 @@ import * as React$1 from 'react';
4
4
  import { ButtonHTMLAttributes, ReactNode, HTMLAttributes, FC, MouseEvent } from 'react';
5
5
  import { B as ButtonProps } from './Button-Dln4BC6y.js';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
- import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-BKWf381e.js';
8
- export { i as Citation, f as CoachAiConfirmationResponse, C as CoachAiResponse, g as ContentCategory, L as Learning, P as PersonalizationScope, h as TeamMateComponentProps, l as learningSchema } from './types-BKWf381e.js';
7
+ import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-ClqBUI2s.js';
8
+ export { i as Citation, f as CoachAiConfirmationResponse, C as CoachAiResponse, g as ContentCategory, L as Learning, P as PersonalizationScope, h as TeamMateComponentProps, l as learningSchema } from './types-ClqBUI2s.js';
9
9
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
10
10
  import { PayloadAction } from '@reduxjs/toolkit';
11
11
  import * as immer from 'immer';
@@ -70,7 +70,10 @@ interface ChatbotProviderProps extends ChatbotProps {
70
70
  };
71
71
  contextOptions?: ContextOption[];
72
72
  isMarkdownResponse?: boolean;
73
- models?: string[];
73
+ models?: {
74
+ label: string;
75
+ value: string;
76
+ }[];
74
77
  }
75
78
  type InteractionType = "text" | "select" | "multiSelect" | "confirm";
76
79
  interface InteractionChoice {
@@ -130,7 +133,10 @@ interface ChatState {
130
133
  disableContext?: boolean;
131
134
  requestParams?: RequestInit;
132
135
  isMarkdownResponse?: boolean;
133
- models?: string[];
136
+ models?: {
137
+ label: string;
138
+ value: string;
139
+ }[];
134
140
  components?: {
135
141
  feedback?: ReactNode;
136
142
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.4-beta.2",
3
+ "version": "0.0.4-beta.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"