@magemetrics/ai 0.1.7 → 0.2.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.js +23326 -20849
- package/dist/react/index.d.ts +17 -16
- package/dist/styles.css +1 -1
- package/dist/web-component/index.d.ts +17 -16
- package/dist/web-component/web-component.es.js +69948 -64893
- package/package.json +11 -20
- package/dist/react/ai.css +0 -1
- package/dist/web-component/ai.css +0 -1
package/dist/react/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export declare interface Components {
|
|
|
54
54
|
visualization: FrontendVisualization | V1FrontendVisualization;
|
|
55
55
|
}) => default_2.ReactNode;
|
|
56
56
|
avatar?: default_2.ReactNode;
|
|
57
|
+
getCanvasShareableLink?: (canvasId: string) => string;
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
declare type ControlledModalProps = {
|
|
@@ -72,12 +73,7 @@ declare interface ConversationContentProps {
|
|
|
72
73
|
|
|
73
74
|
export { CreateFlowParam }
|
|
74
75
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
declare const Dashboard_2: React.FC<{
|
|
78
|
-
dashboardId: string;
|
|
79
|
-
}>;
|
|
80
|
-
|
|
76
|
+
/** This component is not bounded in height and must be wrapped in a container to properly work */
|
|
81
77
|
export declare const DataReport: React.FC<{
|
|
82
78
|
reportId: number;
|
|
83
79
|
}>;
|
|
@@ -467,6 +463,7 @@ declare const FrontendReportSchema: z.ZodObject<Omit<{
|
|
|
467
463
|
id: number;
|
|
468
464
|
request: string | null;
|
|
469
465
|
created_at: string;
|
|
466
|
+
flow_id: string;
|
|
470
467
|
bookmarked: boolean;
|
|
471
468
|
data_summary: {
|
|
472
469
|
columns: Record<string, z.objectOutputType<{
|
|
@@ -479,13 +476,13 @@ declare const FrontendReportSchema: z.ZodObject<Omit<{
|
|
|
479
476
|
} & {
|
|
480
477
|
[k: string]: unknown;
|
|
481
478
|
};
|
|
482
|
-
flow_id: string;
|
|
483
479
|
}, {
|
|
484
480
|
title: string;
|
|
485
481
|
status: string | null;
|
|
486
482
|
id: number;
|
|
487
483
|
request: string | null;
|
|
488
484
|
created_at: string;
|
|
485
|
+
flow_id: string;
|
|
489
486
|
bookmarked: boolean;
|
|
490
487
|
data_summary: {
|
|
491
488
|
columns: Record<string, z.objectInputType<{
|
|
@@ -498,7 +495,6 @@ declare const FrontendReportSchema: z.ZodObject<Omit<{
|
|
|
498
495
|
} & {
|
|
499
496
|
[k: string]: unknown;
|
|
500
497
|
};
|
|
501
|
-
flow_id: string;
|
|
502
498
|
}>;
|
|
503
499
|
|
|
504
500
|
declare type FrontendVisualization = z.output<typeof FrontendVisualizationSchema>;
|
|
@@ -633,8 +629,8 @@ declare const FrontendVisualizationSchema: z.ZodObject<Omit<{
|
|
|
633
629
|
}>]>;
|
|
634
630
|
}, "sql" | "data_sample" | "is_sample" | "data_summary">, "strip", z.ZodTypeAny, {
|
|
635
631
|
id: number;
|
|
636
|
-
flow_data_id: number;
|
|
637
632
|
created_at: string;
|
|
633
|
+
flow_data_id: number;
|
|
638
634
|
bookmarked: boolean;
|
|
639
635
|
configuration: {
|
|
640
636
|
type: "bar";
|
|
@@ -678,8 +674,8 @@ declare const FrontendVisualizationSchema: z.ZodObject<Omit<{
|
|
|
678
674
|
};
|
|
679
675
|
}, {
|
|
680
676
|
id: number;
|
|
681
|
-
flow_data_id: number;
|
|
682
677
|
created_at: string;
|
|
678
|
+
flow_data_id: number;
|
|
683
679
|
bookmarked: boolean;
|
|
684
680
|
configuration: {
|
|
685
681
|
type: "bar";
|
|
@@ -786,13 +782,18 @@ declare interface ModalProps {
|
|
|
786
782
|
|
|
787
783
|
declare type PersistenceOptions = "queryParam" | "none";
|
|
788
784
|
|
|
789
|
-
export declare const
|
|
785
|
+
export declare const PublicCanvas: React.FC<React.ComponentProps<typeof PublicCanvasPanel>>;
|
|
790
786
|
|
|
791
|
-
|
|
792
|
-
|
|
787
|
+
/** This component is not bounded in height and must be wrapped in a container to properly work */
|
|
788
|
+
export declare const PublicCanvasDataReport: React.FC<{
|
|
789
|
+
canvasId: string;
|
|
793
790
|
reportId: number;
|
|
794
791
|
}>;
|
|
795
792
|
|
|
793
|
+
declare const PublicCanvasPanel: React.FC<{
|
|
794
|
+
canvasId: string;
|
|
795
|
+
}>;
|
|
796
|
+
|
|
796
797
|
declare type ReportDataFilters = {
|
|
797
798
|
columns?: string[];
|
|
798
799
|
limit: number;
|
|
@@ -814,7 +815,7 @@ declare type StandaloneConversationModalProps = {
|
|
|
814
815
|
declare type StartOptions = DisplayControlProps & {
|
|
815
816
|
label?: string;
|
|
816
817
|
recommendationsLabel?: string;
|
|
817
|
-
|
|
818
|
+
placeholder?: string;
|
|
818
819
|
};
|
|
819
820
|
|
|
820
821
|
declare type TableFilters = Record<string, string | number>;
|
|
@@ -1358,8 +1359,8 @@ declare const V1FrontendVisualizationSchema: z.ZodObject<Omit<{
|
|
|
1358
1359
|
}>]>;
|
|
1359
1360
|
}, "sql" | "data_sample" | "is_sample" | "data_summary">, "strip", z.ZodTypeAny, {
|
|
1360
1361
|
id: number;
|
|
1361
|
-
flow_data_id: number;
|
|
1362
1362
|
created_at: string;
|
|
1363
|
+
flow_data_id: number;
|
|
1363
1364
|
bookmarked: boolean;
|
|
1364
1365
|
configuration: {
|
|
1365
1366
|
type: "bar";
|
|
@@ -1396,8 +1397,8 @@ declare const V1FrontendVisualizationSchema: z.ZodObject<Omit<{
|
|
|
1396
1397
|
};
|
|
1397
1398
|
}, {
|
|
1398
1399
|
id: number;
|
|
1399
|
-
flow_data_id: number;
|
|
1400
1400
|
created_at: string;
|
|
1401
|
+
flow_data_id: number;
|
|
1401
1402
|
bookmarked: boolean;
|
|
1402
1403
|
configuration: {
|
|
1403
1404
|
type: "bar";
|