@magemetrics/ai 0.0.31 → 0.0.34-patch-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.
@@ -3,6 +3,20 @@ import { ComponentPropsWithoutRef } from 'react';
3
3
  import { JSX } from 'react/jsx-runtime';
4
4
  import { MantineColorsTuple } from '@mantine/core';
5
5
 
6
+ export declare const buildColorPalette: ({ primary, secondary, tertiary, white, background, chatInputBackground, }: {
7
+ primary: string;
8
+ secondary: string;
9
+ tertiary: string;
10
+ white: string;
11
+ background: string;
12
+ chatInputBackground: string;
13
+ }) => {
14
+ primary: [string, string, string, string, string, string, string, string, string, string, string, ...string[]];
15
+ secondary: [string, string, string, string, string, string, string, string, string, string];
16
+ lightAccent: [string, string, string, string, string, string, string, string, string, string, string];
17
+ darkAccent: [string, string, string, string, string, string, string, string, string, string];
18
+ };
19
+
6
20
  export { colorsTuple }
7
21
 
8
22
  declare type ControlledModalProps = {
@@ -12,7 +26,7 @@ declare type ControlledModalProps = {
12
26
 
13
27
  declare type DisplayControlProps = {
14
28
  showRecommendations: boolean;
15
- showRecentDashboards: boolean;
29
+ showRecentChats?: boolean;
16
30
  };
17
31
 
18
32
  export declare const logout: () => Promise<void>;
@@ -25,17 +39,21 @@ declare type MageMetricsModalProps = ComponentPropsWithoutRef<typeof MainModal>
25
39
 
26
40
  declare const MainModal: React.FC<{
27
41
  apiKey: string;
28
- externalJWT: string;
42
+ externalJwt: string;
29
43
  apiUrl: string;
30
44
  display?: string;
31
45
  persist?: PersistenceOptions;
32
46
  modal?: ControlledModalProps;
33
- startOptions?: DisplayControlProps;
47
+ startOptions?: StartOptions;
34
48
  theme?: Theme;
35
49
  }>;
36
50
 
37
51
  declare type PersistenceOptions = "localStorage" | "queryParam" | "none";
38
52
 
53
+ declare type StartOptions = DisplayControlProps & {
54
+ label?: string;
55
+ };
56
+
39
57
  declare type Theme = {
40
58
  primary: MantineColorsTuple;
41
59
  secondary: MantineColorsTuple;