@magemetrics/ai 0.0.58 → 0.1.0
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.css +1 -1
- package/dist/react/ai.js +11771 -12679
- package/dist/react/index.d.ts +224 -3644
- package/dist/styles.css +1 -1
- package/dist/web-component/ai.css +1 -1
- package/dist/web-component/index.d.ts +1423 -0
- package/dist/web-component/web-component.es.js +70804 -95536
- package/package.json +36 -22
- package/dist/web-component/web-component.es.d.ts +0 -104
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magemetrics/ai",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@ai-sdk/react": "2.0.
|
|
6
|
+
"@ai-sdk/react": "2.0.48",
|
|
7
7
|
"@dagrejs/dagre": "^1.1.5",
|
|
8
|
-
"@fontsource-variable/bitter": "^5.2.
|
|
9
|
-
"@fontsource-variable/source-code-pro": "^5.2.
|
|
10
|
-
"@fontsource-variable/source-sans-3": "^5.2.
|
|
8
|
+
"@fontsource-variable/bitter": "^5.2.10",
|
|
9
|
+
"@fontsource-variable/source-code-pro": "^5.2.7",
|
|
10
|
+
"@fontsource-variable/source-sans-3": "^5.2.9",
|
|
11
11
|
"@kurkle/color": "^0.4.0",
|
|
12
12
|
"@progress/kendo-intl": "^3.1.2",
|
|
13
13
|
"@progress/kendo-licensing": "^1.7.1",
|
|
14
14
|
"@progress/kendo-popup-common": "^1.9.2",
|
|
15
|
-
"@progress/kendo-react-animation": "^
|
|
16
|
-
"@progress/kendo-react-buttons": "^
|
|
17
|
-
"@progress/kendo-react-common": "^
|
|
18
|
-
"@progress/kendo-react-intl": "^
|
|
19
|
-
"@progress/kendo-react-layout": "
|
|
20
|
-
"@progress/kendo-react-popup": "^
|
|
21
|
-
"@progress/kendo-react-progressbars": "^
|
|
15
|
+
"@progress/kendo-react-animation": "^12.0.2",
|
|
16
|
+
"@progress/kendo-react-buttons": "^12.0.2",
|
|
17
|
+
"@progress/kendo-react-common": "^12.0.2",
|
|
18
|
+
"@progress/kendo-react-intl": "^12.0.2",
|
|
19
|
+
"@progress/kendo-react-layout": "12.0.2",
|
|
20
|
+
"@progress/kendo-react-popup": "^12.0.2",
|
|
21
|
+
"@progress/kendo-react-progressbars": "^12.0.2",
|
|
22
22
|
"@progress/kendo-svg-icons": "^4.5.0",
|
|
23
|
-
"@progress/kendo-theme-default": "
|
|
23
|
+
"@progress/kendo-theme-default": "12.0.1",
|
|
24
24
|
"@progress/kendo-webspeech-common": "1.0.1",
|
|
25
|
-
"@r2wc/react-to-web-component": "^2.0
|
|
25
|
+
"@r2wc/react-to-web-component": "^2.1.0",
|
|
26
26
|
"@radix-ui/react-collapsible": "^1.1.12",
|
|
27
27
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
28
28
|
"@radix-ui/react-hover-card": "^1.1.15",
|
|
@@ -31,17 +31,16 @@
|
|
|
31
31
|
"@radix-ui/react-slot": "^1.2.3",
|
|
32
32
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
33
33
|
"@radix-ui/react-visually-hidden": "^1.2.3",
|
|
34
|
-
"@rive-app/react-webgl2": "^4.23.1",
|
|
35
34
|
"@supabase/auth-js": "^2.71.1",
|
|
36
|
-
"@tanstack/react-query": "^5.
|
|
35
|
+
"@tanstack/react-query": "^5.89.0",
|
|
37
36
|
"@tanstack/react-table": "^8.21.3",
|
|
38
37
|
"@tanstack/react-virtual": "^3.13.12",
|
|
39
|
-
"@xyflow/react": "^12.8.
|
|
40
|
-
"ai": "5.0.
|
|
38
|
+
"@xyflow/react": "^12.8.5",
|
|
39
|
+
"ai": "5.0.48",
|
|
41
40
|
"class-variance-authority": "^0.7.1",
|
|
42
41
|
"clsx": "^2.1.1",
|
|
43
|
-
"dayjs": "^1.11.
|
|
44
|
-
"framer-motion": "^12.23.
|
|
42
|
+
"dayjs": "^1.11.18",
|
|
43
|
+
"framer-motion": "^12.23.16",
|
|
45
44
|
"html2canvas-pro": "^1.5.11",
|
|
46
45
|
"openapi-fetch": "^0.14.0",
|
|
47
46
|
"react-error-boundary": "^6.0.0",
|
|
@@ -49,24 +48,39 @@
|
|
|
49
48
|
"react-textarea-autosize": "^8.5.9",
|
|
50
49
|
"react-transition-group": "^4.4.5",
|
|
51
50
|
"tailwind-merge": "^3.3.1",
|
|
51
|
+
"usehooks-ts": "^3.1.1",
|
|
52
52
|
"vaul": "^1.1.2",
|
|
53
|
-
"zod": "^3.25.76"
|
|
53
|
+
"zod": "^3.25.76",
|
|
54
|
+
"@magemetrics/core": "0.1.0"
|
|
54
55
|
},
|
|
55
56
|
"peerDependencies": {
|
|
56
57
|
"react": "^18.2.0 || ^19.0.0",
|
|
57
58
|
"react-dom": "^18.2.0 || ^19.0.0"
|
|
58
59
|
},
|
|
59
60
|
"exports": {
|
|
61
|
+
".": {
|
|
62
|
+
"@magemetrics/source": "./src/react.tsx",
|
|
63
|
+
"import": "./dist/react/ai.js",
|
|
64
|
+
"types": "./dist/react/index.d.ts"
|
|
65
|
+
},
|
|
60
66
|
"./react": {
|
|
67
|
+
"@magemetrics/source": "./src/react.tsx",
|
|
61
68
|
"import": "./dist/react/ai.js",
|
|
62
69
|
"types": "./dist/react/index.d.ts"
|
|
63
70
|
},
|
|
64
71
|
"./web-component": {
|
|
72
|
+
"@magemetrics/source": "./src/web-component.tsx",
|
|
65
73
|
"import": "./dist/web-component/web-component.es.js",
|
|
66
74
|
"types": "./dist/web-component/web-component.d.ts"
|
|
67
75
|
},
|
|
68
76
|
"./styles.css": "./dist/styles.css",
|
|
69
|
-
"./fonts.css": "./dist/fonts.css"
|
|
77
|
+
"./fonts.css": "./dist/fonts.css",
|
|
78
|
+
"./*": {
|
|
79
|
+
"@magemetrics/source": [
|
|
80
|
+
"./src/*.tsx",
|
|
81
|
+
"./src/*.ts"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
70
84
|
},
|
|
71
85
|
"files": [
|
|
72
86
|
"dist/"
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { default as default_2 } from 'react';
|
|
2
|
-
import { FormattedData } from '@mm/shared/data/FormattedData';
|
|
3
|
-
import { FrontendReport } from '@mm/shared/schemas/flows';
|
|
4
|
-
import { FrontendReportColumns } from '@mm/shared/schemas/flows';
|
|
5
|
-
import { FrontendReportExplainability } from '@mm/shared/schemas/flows';
|
|
6
|
-
import { FrontendVisualization } from '@mm/shared/schemas/visualizations';
|
|
7
|
-
import { V1FrontendVisualization } from '@mm/shared/schemas/visualizations';
|
|
8
|
-
|
|
9
|
-
declare type CellContentProps = {
|
|
10
|
-
formattedValue: FormattedData | undefined;
|
|
11
|
-
isOpened: boolean;
|
|
12
|
-
unit?: string;
|
|
13
|
-
renderType?: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
declare interface Components {
|
|
17
|
-
dataTableCells?: {
|
|
18
|
-
empty?: (props: CellContentProps) => default_2.ReactNode;
|
|
19
|
-
units?: {
|
|
20
|
-
[key: string]: (props: CellContentProps) => default_2.ReactNode;
|
|
21
|
-
};
|
|
22
|
-
renderTypes?: {
|
|
23
|
-
[key: string]: (props: CellContentProps) => default_2.ReactNode;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
dataReportTable?: (props: DataReportMessageProps) => default_2.ReactNode;
|
|
27
|
-
messageActions?: (props: {
|
|
28
|
-
type: "data-report";
|
|
29
|
-
report: FrontendReport;
|
|
30
|
-
} | {
|
|
31
|
-
type: "visualization";
|
|
32
|
-
visualization: FrontendVisualization | V1FrontendVisualization;
|
|
33
|
-
}) => default_2.ReactNode;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
declare type ControlledModalProps = {
|
|
37
|
-
visible: boolean;
|
|
38
|
-
onClose: () => void;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export declare const createMagemetrics: () => void;
|
|
42
|
-
|
|
43
|
-
declare interface DataReportMessageProps {
|
|
44
|
-
report: FrontendReport;
|
|
45
|
-
isOpened: boolean;
|
|
46
|
-
setIsOpened: (opened: boolean) => void;
|
|
47
|
-
explainability: FrontendReportExplainability | null | undefined;
|
|
48
|
-
infiniteData: {
|
|
49
|
-
data?: {
|
|
50
|
-
pages: Record<string, unknown>[][];
|
|
51
|
-
};
|
|
52
|
-
isPending: boolean;
|
|
53
|
-
fetchNextPage: () => Promise<unknown>;
|
|
54
|
-
isFetching: boolean;
|
|
55
|
-
isFetchingNextPage: boolean;
|
|
56
|
-
hasNextPage: boolean | undefined;
|
|
57
|
-
};
|
|
58
|
-
columns: FrontendReportColumns;
|
|
59
|
-
totalRows: number;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
declare type DisplayControlProps = {
|
|
63
|
-
showRecommendations?: boolean;
|
|
64
|
-
showRecentChats?: boolean;
|
|
65
|
-
showBackdrop?: boolean;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export declare const logout: () => Promise<void>;
|
|
69
|
-
|
|
70
|
-
declare interface ManagedModalProps extends ModalProps {
|
|
71
|
-
apiKey: string;
|
|
72
|
-
externalJwt: string;
|
|
73
|
-
apiUrl: string;
|
|
74
|
-
persist?: PersistenceOptions;
|
|
75
|
-
experimental_components?: Components;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
declare interface ModalProps {
|
|
79
|
-
display?: string;
|
|
80
|
-
modal?: ControlledModalProps;
|
|
81
|
-
startOptions?: StartOptions;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
declare type PersistenceOptions = "queryParam" | "none";
|
|
85
|
-
|
|
86
|
-
export declare interface SearchElement extends HTMLElement, ManagedModalProps {
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
declare type StartOptions = DisplayControlProps & {
|
|
90
|
-
label?: string;
|
|
91
|
-
recommendationsLabel?: string;
|
|
92
|
-
placeholders?: string[];
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export { }
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
declare module "react" {
|
|
99
|
-
namespace JSX {
|
|
100
|
-
interface IntrinsicElements {
|
|
101
|
-
"magemetrics-ai": ManagedModalProps;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|