@altimateai/ui-components 0.0.67 → 0.0.68-beta.2

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.
@@ -1,5 +1,5 @@
1
- import { a as Button, B as ButtonProps } from '../Button-CVsSwe4f.js';
2
- export { b as buttonVariants } from '../Button-CVsSwe4f.js';
1
+ import { a as Button, B as ButtonProps } from '../Button-Bsgqi8kG.js';
2
+ export { b as buttonVariants } from '../Button-Bsgqi8kG.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { DayPicker, DayButton, DateRange } from 'react-day-picker';
5
5
  import * as React$1 from 'react';
@@ -97,7 +97,7 @@ declare const SheetClose: React$1.ForwardRefExoticComponent<SheetPrimitive.Dialo
97
97
  declare const SheetPortal: React$1.FC<SheetPrimitive.DialogPortalProps>;
98
98
  declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
99
99
  declare const sheetVariants: (props?: ({
100
- side?: "left" | "right" | "top" | "bottom" | null | undefined;
100
+ side?: "top" | "right" | "bottom" | "left" | null | undefined;
101
101
  } & class_variance_authority_types.ClassProp) | undefined) => string;
102
102
  interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
103
103
  children: React$1.ReactNode;
@@ -181,7 +181,7 @@ declare const Command: React$1.ForwardRefExoticComponent<Omit<{
181
181
  ref?: React.Ref<HTMLDivElement>;
182
182
  } & {
183
183
  asChild?: boolean;
184
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>> & {
184
+ }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild"> & {
185
185
  label?: string;
186
186
  shouldFilter?: boolean;
187
187
  filter?: (value: string, search: string, keywords?: string[]) => number;
@@ -197,7 +197,7 @@ declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pic
197
197
  ref?: React.Ref<HTMLInputElement>;
198
198
  } & {
199
199
  asChild?: boolean;
200
- }, "asChild" | "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
200
+ }, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
201
201
  value?: string;
202
202
  onValueChange?: (search: string) => void;
203
203
  } & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
@@ -207,7 +207,7 @@ declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
207
207
  ref?: React.Ref<HTMLDivElement>;
208
208
  } & {
209
209
  asChild?: boolean;
210
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>> & {
210
+ }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild"> & {
211
211
  label?: string;
212
212
  } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
213
213
  declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
@@ -216,14 +216,14 @@ declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
216
216
  ref?: React.Ref<HTMLDivElement>;
217
217
  } & {
218
218
  asChild?: boolean;
219
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
219
+ }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
220
220
  declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
221
221
  children?: React.ReactNode;
222
222
  } & Omit<Pick<Pick<React$1.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & {
223
223
  ref?: React.Ref<HTMLDivElement>;
224
224
  } & {
225
225
  asChild?: boolean;
226
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
226
+ }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
227
227
  heading?: React.ReactNode;
228
228
  value?: string;
229
229
  forceMount?: boolean;
@@ -232,7 +232,7 @@ declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick
232
232
  ref?: React.Ref<HTMLDivElement>;
233
233
  } & {
234
234
  asChild?: boolean;
235
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>> & {
235
+ }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild"> & {
236
236
  alwaysRender?: boolean;
237
237
  } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
238
238
  declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
@@ -241,7 +241,7 @@ declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
241
241
  ref?: React.Ref<HTMLDivElement>;
242
242
  } & {
243
243
  asChild?: boolean;
244
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
244
+ }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
245
245
  disabled?: boolean;
246
246
  onSelect?: (value: string) => void;
247
247
  value?: string;
@@ -503,7 +503,23 @@ declare const Sidebar: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttri
503
503
  variant?: "sidebar" | "floating" | "inset";
504
504
  collapsible?: "offcanvas" | "icon" | "none";
505
505
  }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
506
- declare const SidebarTrigger: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
506
+ declare const SidebarTrigger: React$1.ForwardRefExoticComponent<(Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<(props?: ({
507
+ variant?: "link" | "default" | "destructive" | "outline" | "success" | "secondary" | "ghost" | null | undefined;
508
+ size?: "xs" | "sm" | "lg" | "default" | "icon" | null | undefined;
509
+ } & class_variance_authority_types.ClassProp) | undefined) => string>, "size"> & {
510
+ asChild?: boolean;
511
+ } & {
512
+ size: "icon";
513
+ title: string;
514
+ } & React$1.RefAttributes<HTMLButtonElement>, "ref"> | Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<(props?: ({
515
+ variant?: "link" | "default" | "destructive" | "outline" | "success" | "secondary" | "ghost" | null | undefined;
516
+ size?: "xs" | "sm" | "lg" | "default" | "icon" | null | undefined;
517
+ } & class_variance_authority_types.ClassProp) | undefined) => string>, "size"> & {
518
+ asChild?: boolean;
519
+ } & {
520
+ size?: "default" | "sm" | "xs" | "lg";
521
+ title?: string;
522
+ } & React$1.RefAttributes<HTMLButtonElement>, "ref">) & React$1.RefAttributes<HTMLButtonElement>>;
507
523
  declare const SidebarRail: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
508
524
  declare const SidebarInset: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
509
525
  declare const SidebarInput: React$1.ForwardRefExoticComponent<Omit<InputProps & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
@@ -709,8 +725,8 @@ type CarouselProps = {
709
725
  declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React$1.ComponentProps<"div"> & CarouselProps): react_jsx_runtime.JSX.Element;
710
726
  declare function CarouselContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
711
727
  declare function CarouselItem({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
712
- declare function CarouselPrevious({ className, variant, size, ...props }: React$1.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
713
- declare function CarouselNext({ className, variant, size, ...props }: React$1.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
728
+ declare function CarouselPrevious({ className, variant, size, title, ...props }: React$1.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
729
+ declare function CarouselNext({ className, variant, size, title, ...props }: React$1.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
714
730
 
715
731
  declare const toggleVariants: (props?: ({
716
732
  variant?: "default" | "outline" | null | undefined;
@@ -2762,6 +2762,7 @@ function Yd({
2762
2762
  ref: o,
2763
2763
  variant: "ghost",
2764
2764
  size: "icon",
2765
+ title: t.date.toLocaleDateString(),
2765
2766
  "data-day": t.date.toLocaleDateString(),
2766
2767
  "data-selected-single": n.selected && !n.range_start && !n.range_end && !n.range_middle,
2767
2768
  "data-range-start": n.range_start,
@@ -3909,20 +3910,21 @@ const zf = d.forwardRef(
3909
3910
  }
3910
3911
  );
3911
3912
  zf.displayName = "Sidebar";
3912
- const Ff = d.forwardRef(({ className: e, onClick: t, ...n }, a) => {
3913
- const { toggleSidebar: r } = ln();
3913
+ const Ff = d.forwardRef(({ className: e, onClick: t, title: n = "Toggle Sidebar", ...a }, r) => {
3914
+ const { toggleSidebar: o } = ln();
3914
3915
  return /* @__PURE__ */ u.jsxs(
3915
3916
  Ue,
3916
3917
  {
3917
- ref: a,
3918
+ ref: r,
3918
3919
  "data-sidebar": "trigger",
3919
3920
  variant: "ghost",
3920
3921
  size: "icon",
3922
+ title: n,
3921
3923
  className: P("al-h-7 al-w-7", e),
3922
- onClick: (o) => {
3923
- t == null || t(o), r();
3924
+ onClick: (i) => {
3925
+ t == null || t(i), o();
3924
3926
  },
3925
- ...n,
3927
+ ...a,
3926
3928
  children: [
3927
3929
  /* @__PURE__ */ u.jsx(Il, {}),
3928
3930
  /* @__PURE__ */ u.jsx("span", { className: "al-sr-only", children: "Toggle Sidebar" })
@@ -8408,6 +8410,7 @@ function Tg({
8408
8410
  variant: "ghost",
8409
8411
  size: "icon",
8410
8412
  className: "al-h-6 al-w-6",
8413
+ title: "Remove file",
8411
8414
  onClick: (S) => {
8412
8415
  S.stopPropagation(), w(v);
8413
8416
  },
@@ -48,6 +48,7 @@ export const Buttons = {
48
48
  <Button
49
49
  variant={v.toLowerCase() as ButtonProps["variant"]}
50
50
  size="icon"
51
+ title={`${v} icon button`}
51
52
  className="al-align-bottom"
52
53
  >
53
54
  <CloseIcon />
@@ -2,6 +2,14 @@ import { ReactNode, Dispatch, ComponentType } from 'react';
2
2
  import { UnknownAction } from '@reduxjs/toolkit';
3
3
  import { z } from 'zod';
4
4
 
5
+ type ChatEventStatus = "idle" | "pending" | "streaming" | "complete" | "error";
6
+ type ChatEvent = {
7
+ type: "session_created";
8
+ sessionId: string;
9
+ } | {
10
+ type: "status_change";
11
+ status: ChatEventStatus;
12
+ };
5
13
  interface AgentAction {
6
14
  id?: string;
7
15
  type: "info" | "analysis";
@@ -122,6 +130,7 @@ interface ChatbotProviderProps extends ChatbotProps {
122
130
  taskLabel?: keyof typeof TaskLabels;
123
131
  initialValidation?: ChatState["initialValidation"];
124
132
  onError?: (error: unknown) => void;
133
+ onEvent?: (event: ChatEvent) => void;
125
134
  urls?: ChatbotUrls;
126
135
  disableContext?: boolean;
127
136
  requestParams?: RequestInit;
@@ -246,12 +255,12 @@ declare const todoItemSchema: z.ZodObject<{
246
255
  }, "strip", z.ZodTypeAny, {
247
256
  id: string;
248
257
  content: string;
249
- status: "completed" | "pending" | "in_progress";
258
+ status: "pending" | "completed" | "in_progress";
250
259
  priority: "high" | "low" | "medium";
251
260
  }, {
252
261
  id: string;
253
262
  content: string;
254
- status: "completed" | "pending" | "in_progress";
263
+ status: "pending" | "completed" | "in_progress";
255
264
  priority: "high" | "low" | "medium";
256
265
  }>;
257
266
  type TodoItem = z.infer<typeof todoItemSchema>;
@@ -284,12 +293,12 @@ declare const agentStreamResponseSchema: z.ZodObject<{
284
293
  }, "strip", z.ZodTypeAny, {
285
294
  id: string;
286
295
  content: string;
287
- status: "completed" | "pending" | "in_progress";
296
+ status: "pending" | "completed" | "in_progress";
288
297
  priority: "high" | "low" | "medium";
289
298
  }, {
290
299
  id: string;
291
300
  content: string;
292
- status: "completed" | "pending" | "in_progress";
301
+ status: "pending" | "completed" | "in_progress";
293
302
  priority: "high" | "low" | "medium";
294
303
  }>, "many">>;
295
304
  response: z.ZodOptional<z.ZodString>;
@@ -326,12 +335,12 @@ declare const agentStreamResponseSchema: z.ZodObject<{
326
335
  value: z.ZodString;
327
336
  }, "strip", z.ZodTypeAny, {
328
337
  id: string;
329
- value: string;
330
338
  label: string;
339
+ value: string;
331
340
  }, {
332
341
  id: string;
333
- value: string;
334
342
  label: string;
343
+ value: string;
335
344
  }>, "many">>;
336
345
  }, "strip", z.ZodTypeAny, {
337
346
  id: string;
@@ -340,8 +349,8 @@ declare const agentStreamResponseSchema: z.ZodObject<{
340
349
  required?: boolean | undefined;
341
350
  choices?: {
342
351
  id: string;
343
- value: string;
344
352
  label: string;
353
+ value: string;
345
354
  }[] | undefined;
346
355
  }, {
347
356
  id: string;
@@ -350,8 +359,8 @@ declare const agentStreamResponseSchema: z.ZodObject<{
350
359
  required?: boolean | undefined;
351
360
  choices?: {
352
361
  id: string;
353
- value: string;
354
362
  label: string;
363
+ value: string;
355
364
  }[] | undefined;
356
365
  }>>;
357
366
  artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -388,7 +397,7 @@ declare const agentStreamResponseSchema: z.ZodObject<{
388
397
  }>, "many">>;
389
398
  confidence_str: z.ZodOptional<z.ZodString>;
390
399
  }, "strip", z.ZodTypeAny, {
391
- type: "text" | "info" | "error" | "custom" | "analysis" | "agent_outcome" | "require_user_action" | "citations" | "tool_use" | "final_response" | "complete";
400
+ type: "text" | "info" | "error" | "custom" | "analysis" | "complete" | "agent_outcome" | "require_user_action" | "citations" | "tool_use" | "final_response";
392
401
  id?: string | undefined;
393
402
  content?: string | undefined;
394
403
  heading?: string | undefined;
@@ -408,7 +417,7 @@ declare const agentStreamResponseSchema: z.ZodObject<{
408
417
  todos?: {
409
418
  id: string;
410
419
  content: string;
411
- status: "completed" | "pending" | "in_progress";
420
+ status: "pending" | "completed" | "in_progress";
412
421
  priority: "high" | "low" | "medium";
413
422
  }[] | undefined;
414
423
  response?: string | undefined;
@@ -419,8 +428,8 @@ declare const agentStreamResponseSchema: z.ZodObject<{
419
428
  required?: boolean | undefined;
420
429
  choices?: {
421
430
  id: string;
422
- value: string;
423
431
  label: string;
432
+ value: string;
424
433
  }[] | undefined;
425
434
  } | undefined;
426
435
  artifacts?: {
@@ -431,7 +440,7 @@ declare const agentStreamResponseSchema: z.ZodObject<{
431
440
  }[] | undefined;
432
441
  confidence_str?: string | undefined;
433
442
  }, {
434
- type: "text" | "info" | "error" | "custom" | "analysis" | "agent_outcome" | "require_user_action" | "citations" | "tool_use" | "final_response" | "complete";
443
+ type: "text" | "info" | "error" | "custom" | "analysis" | "complete" | "agent_outcome" | "require_user_action" | "citations" | "tool_use" | "final_response";
435
444
  id?: string | undefined;
436
445
  content?: string | undefined;
437
446
  heading?: string | undefined;
@@ -451,7 +460,7 @@ declare const agentStreamResponseSchema: z.ZodObject<{
451
460
  todos?: {
452
461
  id: string;
453
462
  content: string;
454
- status: "completed" | "pending" | "in_progress";
463
+ status: "pending" | "completed" | "in_progress";
455
464
  priority: "high" | "low" | "medium";
456
465
  }[] | undefined;
457
466
  response?: string | undefined;
@@ -462,8 +471,8 @@ declare const agentStreamResponseSchema: z.ZodObject<{
462
471
  required?: boolean | undefined;
463
472
  choices?: {
464
473
  id: string;
465
- value: string;
466
474
  label: string;
475
+ value: string;
467
476
  }[] | undefined;
468
477
  } | undefined;
469
478
  artifacts?: {
@@ -607,4 +616,4 @@ interface Citation {
607
616
  taskLabel: TaskLabels;
608
617
  }
609
618
 
610
- export { type Artifact as A, type EntityDetectionResponse as B, type CoachAiResponse as C, type DetectedEntity as D, EntityType as E, type Feedback as F, type Mode as G, type InteractionType as H, type InteractionRequest as I, type InteractionChoice as J, sessionStatusSchema as K, type Learning as L, type MessageAttachment as M, todoItemSchema as N, type ToolUsageData as O, PersonalizationScope as P, type ProgressUpdate as Q, type FinalResponseData as R, type SessionStatusEnum as S, TaskLabels as T, type UploadedFile as U, agentStreamResponseSchema as V, type TeamMateContextProps as a, type TeamMateState as b, type TeamMateConfig as c, TeamMateActionType as d, TeamMateAvailability as e, type CoachAiConfirmationResponse as f, ContentCategory as g, type TeamMateComponentProps as h, type Citation as i, type ChatbotProps as j, type ChatbotProviderProps as k, learningSchema as l, type ChatState as m, type ContextOption as n, type ChatMessage as o, type AgentAction as p, type ChatResponse as q, LoadingState as r, type ChatSession as s, type TodoItem as t, type AgentStreamResponse as u, type AssistantMeta as v, type FileUploadProps as w, type ChatbotUrls as x, type Datamate as y, type EntityDetectionRequest as z };
619
+ export { type Artifact as A, type Datamate as B, type CoachAiResponse as C, type DetectedEntity as D, EntityType as E, type Feedback as F, type EntityDetectionRequest as G, type EntityDetectionResponse as H, type InteractionRequest as I, type Mode as J, type InteractionType as K, type Learning as L, type MessageAttachment as M, type InteractionChoice as N, sessionStatusSchema as O, PersonalizationScope as P, todoItemSchema as Q, type ToolUsageData as R, type SessionStatusEnum as S, TaskLabels as T, type UploadedFile as U, type ProgressUpdate as V, type FinalResponseData as W, agentStreamResponseSchema as X, type TeamMateContextProps as a, type TeamMateState as b, type TeamMateConfig as c, TeamMateActionType as d, TeamMateAvailability as e, type CoachAiConfirmationResponse as f, ContentCategory as g, type TeamMateComponentProps as h, type Citation as i, type ChatbotProps as j, type ChatbotProviderProps as k, learningSchema as l, type ChatState as m, type ContextOption as n, type ChatMessage as o, type AgentAction as p, type ChatResponse as q, LoadingState as r, type ChatSession as s, type TodoItem as t, type AgentStreamResponse as u, type ChatEventStatus as v, type ChatEvent as w, type AssistantMeta as x, type FileUploadProps as y, type ChatbotUrls as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.67",
3
+ "version": "0.0.68-beta.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"