@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.
@@ -1,19 +1,56 @@
1
1
  import { colorsTuple } from '@mantine/core';
2
+ import { ComponentPropsWithoutRef } from 'react';
3
+ import { MantineColorsTuple } from '@mantine/core';
2
4
 
3
5
  export { colorsTuple }
4
6
 
7
+ declare type ControlledModalProps = {
8
+ visible: boolean;
9
+ onClose: () => void;
10
+ };
11
+
5
12
  export declare const createMagemetrics: () => void;
6
13
 
14
+ declare type DisplayControlProps = {
15
+ showRecommendations: boolean;
16
+ showRecentChats?: boolean;
17
+ };
18
+
7
19
  export declare const logout: () => Promise<void>;
8
20
 
21
+ declare const MainModal: React.FC<{
22
+ apiKey: string;
23
+ externalJwt: string;
24
+ apiUrl: string;
25
+ display?: string;
26
+ persist?: PersistenceOptions;
27
+ modal?: ControlledModalProps;
28
+ startOptions?: StartOptions;
29
+ theme?: Theme;
30
+ }>;
31
+
32
+ declare type PersistenceOptions = "localStorage" | "queryParam" | "none";
33
+
9
34
  export declare interface SearchElement extends HTMLElement, SearchElementAttributes {
10
35
  }
11
36
 
12
- export declare interface SearchElementAttributes {
13
- apiUrl?: string;
14
- apiKey?: string;
15
- externalJWT?: string;
16
- }
37
+ export declare type SearchElementAttributes = ComponentPropsWithoutRef<typeof MainModal>;
38
+
39
+ declare type StartOptions = DisplayControlProps & {
40
+ label?: string;
41
+ };
42
+
43
+ declare type Theme = {
44
+ primary: MantineColorsTuple;
45
+ secondary: MantineColorsTuple;
46
+ darkAccent: MantineColorsTuple;
47
+ lightAccent: MantineColorsTuple;
48
+ fonts?: {
49
+ body: string;
50
+ heading: string;
51
+ monospace: string;
52
+ };
53
+ };
17
54
 
18
55
  export { }
19
56
 
@@ -1,4 +1,4 @@
1
- import { a as o, c as r, l as s } from "./web-component-D5D2i6Xk.js";
1
+ import { a as o, c as r, l as s } from "./web-component-C5tpWbhs.js";
2
2
  export {
3
3
  o as colorsTuple,
4
4
  r as createMagemetrics,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magemetrics/ai",
3
- "version": "0.0.31",
3
+ "version": "0.0.34-patch-1",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@ai-sdk/react": "^1.2.8",
@@ -33,7 +33,6 @@
33
33
  "jotai": "^2.12.2",
34
34
  "jotai-immer": "^0.4.1",
35
35
  "jotai-location": "^0.5.5",
36
- "lottie-react": "^2.4.1",
37
36
  "openapi-fetch": "^0.13.4",
38
37
  "react-grid-layout": "^1.5.1",
39
38
  "react-markdown": "^10.1.0",