@magemetrics/ai 0.0.34 → 0.0.36
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/react/ai.js +3760 -4217
- package/dist/react/index.d.ts +4 -36
- package/dist/{web-component/ai.css → styles.css} +2071 -0
- package/dist/web-component/{browser-DgZTeuvn.js → browser-djP6rtNi.js} +1 -1
- package/dist/web-component/{web-component-DuH0DK9d.js → web-component-EdF33Ah-.js} +47309 -52269
- package/dist/web-component/web-component.es.d.ts +3 -19
- package/dist/web-component/web-component.es.js +3 -4
- package/package.json +17 -18
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { colorsTuple } from '@mantine/core';
|
|
2
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
-
import { MantineColorsTuple } from '@mantine/core';
|
|
4
|
-
|
|
5
|
-
export { colorsTuple }
|
|
6
2
|
|
|
7
3
|
declare type ControlledModalProps = {
|
|
8
4
|
visible: boolean;
|
|
@@ -12,21 +8,21 @@ declare type ControlledModalProps = {
|
|
|
12
8
|
export declare const createMagemetrics: () => void;
|
|
13
9
|
|
|
14
10
|
declare type DisplayControlProps = {
|
|
15
|
-
showRecommendations
|
|
11
|
+
showRecommendations?: boolean;
|
|
16
12
|
showRecentChats?: boolean;
|
|
13
|
+
showBackdrop?: boolean;
|
|
17
14
|
};
|
|
18
15
|
|
|
19
16
|
export declare const logout: () => Promise<void>;
|
|
20
17
|
|
|
21
18
|
declare const MainModal: React.FC<{
|
|
22
19
|
apiKey: string;
|
|
23
|
-
|
|
20
|
+
externalJwt: string;
|
|
24
21
|
apiUrl: string;
|
|
25
22
|
display?: string;
|
|
26
23
|
persist?: PersistenceOptions;
|
|
27
24
|
modal?: ControlledModalProps;
|
|
28
25
|
startOptions?: StartOptions;
|
|
29
|
-
theme?: Theme;
|
|
30
26
|
}>;
|
|
31
27
|
|
|
32
28
|
declare type PersistenceOptions = "localStorage" | "queryParam" | "none";
|
|
@@ -40,18 +36,6 @@ declare type StartOptions = DisplayControlProps & {
|
|
|
40
36
|
label?: string;
|
|
41
37
|
};
|
|
42
38
|
|
|
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
|
-
};
|
|
54
|
-
|
|
55
39
|
export { }
|
|
56
40
|
|
|
57
41
|
|
package/package.json
CHANGED
|
@@ -1,44 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magemetrics/ai",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@ai-sdk/react": "^1.2.8",
|
|
7
7
|
"@ai-sdk/ui-utils": "^1.2.7",
|
|
8
8
|
"@dagrejs/dagre": "^1.1.4",
|
|
9
|
-
"@emotion/cache": "^11.14.0",
|
|
10
|
-
"@emotion/react": "^11.14.0",
|
|
11
|
-
"@emotion/serialize": "^1.3.3",
|
|
12
|
-
"@emotion/utils": "^1.4.2",
|
|
13
9
|
"@fontsource-variable/bitter": "^5.2.6",
|
|
14
10
|
"@fontsource-variable/source-code-pro": "^5.2.5",
|
|
15
11
|
"@fontsource-variable/source-sans-3": "^5.2.6",
|
|
16
12
|
"@kurkle/color": "^0.3.4",
|
|
17
|
-
"@mantine/core": "^7.17.4",
|
|
18
|
-
"@mantine/emotion": "^7.17.4",
|
|
19
|
-
"@mantine/form": "^7.17.4",
|
|
20
|
-
"@mantine/hooks": "^7.17.4",
|
|
21
|
-
"@mantine/notifications": "^7.17.4",
|
|
22
13
|
"@r2wc/react-to-web-component": "^2.0.4",
|
|
14
|
+
"@radix-ui/react-collapsible": "^1.1.10",
|
|
15
|
+
"@radix-ui/react-dialog": "^1.1.13",
|
|
16
|
+
"@radix-ui/react-hover-card": "^1.1.13",
|
|
17
|
+
"@radix-ui/react-popover": "^1.1.13",
|
|
18
|
+
"@radix-ui/react-scroll-area": "^1.2.9",
|
|
19
|
+
"@radix-ui/react-slot": "^1.2.2",
|
|
20
|
+
"@radix-ui/react-tooltip": "^1.2.7",
|
|
21
|
+
"@radix-ui/react-visually-hidden": "^1.2.2",
|
|
23
22
|
"@supabase/supabase-js": "2.49.4",
|
|
24
23
|
"@tanstack/react-query": "^5.73.3",
|
|
25
24
|
"@tanstack/react-table": "^8.21.2",
|
|
26
25
|
"@tanstack/react-virtual": "^3.13.6",
|
|
26
|
+
"@uidotdev/usehooks": "^2.4.1",
|
|
27
27
|
"@xyflow/react": "^12.5.5",
|
|
28
|
+
"class-variance-authority": "^0.7.1",
|
|
28
29
|
"clsx": "^2.1.1",
|
|
29
30
|
"dayjs": "^1.11.13",
|
|
30
31
|
"framer-motion": "^12.4.3",
|
|
31
32
|
"html2canvas": "^1.4.1",
|
|
32
|
-
"immer": "^10.1.1",
|
|
33
33
|
"jotai": "^2.12.2",
|
|
34
|
-
"jotai-immer": "^0.4.1",
|
|
35
34
|
"jotai-location": "^0.5.5",
|
|
36
35
|
"openapi-fetch": "^0.13.4",
|
|
37
|
-
"react-grid-layout": "^1.5.1",
|
|
38
36
|
"react-markdown": "^10.1.0",
|
|
39
|
-
"react-resizable": "^3.0.5",
|
|
40
37
|
"recharts": "^2.15.2",
|
|
41
|
-
"
|
|
38
|
+
"tailwind-merge": "^3.2.0",
|
|
39
|
+
"vaul": "^1.1.2",
|
|
42
40
|
"zod": "^3.24.2"
|
|
43
41
|
},
|
|
44
42
|
"peerDependencies": {
|
|
@@ -54,18 +52,19 @@
|
|
|
54
52
|
"import": "./dist/web-component/web-component.es.js",
|
|
55
53
|
"types": "./dist/web-component/web-component.d.ts"
|
|
56
54
|
},
|
|
57
|
-
"./
|
|
55
|
+
"./styles.css": "./dist/styles.css"
|
|
58
56
|
},
|
|
59
57
|
"files": [
|
|
60
58
|
"dist/"
|
|
61
59
|
],
|
|
62
60
|
"scripts": {
|
|
63
|
-
"remotedev": "vite --mode remotedev",
|
|
64
61
|
"gen:openapi": "./scripts/update-openapi.sh",
|
|
65
|
-
"build": "
|
|
62
|
+
"build:tailwind": "node scripts/build-style.js",
|
|
63
|
+
"build": "pnpm run build:tailwind && vite build -c vite.react.config.ts && vite build -c vite.webcomponent.config.ts",
|
|
66
64
|
"preview": "vite preview",
|
|
67
65
|
"lint": "sh -c 'cd ../../ && pnpm exec eslint --report-unused-disable-directives packages/ui'",
|
|
68
66
|
"lint:fix": "sh -c 'cd ../../ && pnpm exec eslint packages/ui --fix'",
|
|
67
|
+
"dev": "node scripts/dev-styles.js",
|
|
69
68
|
"typecheck": "tsc -b",
|
|
70
69
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist && rm -rf .rollup.cache"
|
|
71
70
|
}
|