@magemetrics/ai 0.1.8 → 0.3.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 +23733 -20981
- package/dist/react/index.d.ts +32 -22
- package/dist/styles.css +1 -1
- package/dist/web-component/index.d.ts +32 -22
- package/dist/web-component/web-component.es.js +70797 -66763
- package/package.json +12 -21
- package/dist/react/ai.css +0 -1
- package/dist/web-component/ai.css +0 -1
|
@@ -46,14 +46,20 @@ export declare interface Components {
|
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
dataReportTable?: (props: DataReportMessageProps) => default_2.ReactNode;
|
|
49
|
-
|
|
50
|
-
type: "data-report";
|
|
49
|
+
dataReportMessageActions?: (props: {
|
|
51
50
|
report: FrontendReport;
|
|
52
|
-
}
|
|
53
|
-
|
|
51
|
+
}) => default_2.ReactNode;
|
|
52
|
+
visualizationMessageActions?: (props: {
|
|
53
|
+
visualization: FrontendVisualization | V1FrontendVisualization;
|
|
54
|
+
}) => default_2.ReactNode;
|
|
55
|
+
dataReportPanelActions?: (props: {
|
|
56
|
+
report: FrontendReport;
|
|
57
|
+
}) => default_2.ReactNode;
|
|
58
|
+
visualizationPanelActions?: (props: {
|
|
54
59
|
visualization: FrontendVisualization | V1FrontendVisualization;
|
|
55
60
|
}) => default_2.ReactNode;
|
|
56
61
|
avatar?: default_2.ReactNode;
|
|
62
|
+
getCanvasShareableLink?: (canvasId: string) => string;
|
|
57
63
|
}
|
|
58
64
|
|
|
59
65
|
declare type ControlledModalProps = {
|
|
@@ -68,16 +74,12 @@ declare interface ConversationContentProps {
|
|
|
68
74
|
className?: string;
|
|
69
75
|
style?: React.CSSProperties;
|
|
70
76
|
topBar?: React.ReactNode;
|
|
77
|
+
disableCanvas?: boolean;
|
|
71
78
|
}
|
|
72
79
|
|
|
73
80
|
export { CreateFlowParam }
|
|
74
81
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
declare const Dashboard_2: React.FC<{
|
|
78
|
-
dashboardId: string;
|
|
79
|
-
}>;
|
|
80
|
-
|
|
82
|
+
/** This component is not bounded in height and must be wrapped in a container to properly work */
|
|
81
83
|
export declare const DataReport: React.FC<{
|
|
82
84
|
reportId: number;
|
|
83
85
|
}>;
|
|
@@ -461,12 +463,15 @@ declare const FrontendReportSchema: z.ZodObject<Omit<{
|
|
|
461
463
|
}, z.ZodTypeAny, "passthrough">>;
|
|
462
464
|
bookmarked: z.ZodBoolean;
|
|
463
465
|
status: z.ZodNullable<z.ZodString>;
|
|
466
|
+
is_removed: z.ZodBoolean;
|
|
464
467
|
}, "schema" | "sql" | "table" | "data_sample" | "is_sample">, "strip", z.ZodTypeAny, {
|
|
465
468
|
title: string;
|
|
466
469
|
status: string | null;
|
|
467
470
|
id: number;
|
|
468
471
|
request: string | null;
|
|
469
472
|
created_at: string;
|
|
473
|
+
is_removed: boolean;
|
|
474
|
+
flow_id: string;
|
|
470
475
|
bookmarked: boolean;
|
|
471
476
|
data_summary: {
|
|
472
477
|
columns: Record<string, z.objectOutputType<{
|
|
@@ -479,13 +484,14 @@ declare const FrontendReportSchema: z.ZodObject<Omit<{
|
|
|
479
484
|
} & {
|
|
480
485
|
[k: string]: unknown;
|
|
481
486
|
};
|
|
482
|
-
flow_id: string;
|
|
483
487
|
}, {
|
|
484
488
|
title: string;
|
|
485
489
|
status: string | null;
|
|
486
490
|
id: number;
|
|
487
491
|
request: string | null;
|
|
488
492
|
created_at: string;
|
|
493
|
+
is_removed: boolean;
|
|
494
|
+
flow_id: string;
|
|
489
495
|
bookmarked: boolean;
|
|
490
496
|
data_summary: {
|
|
491
497
|
columns: Record<string, z.objectInputType<{
|
|
@@ -498,7 +504,6 @@ declare const FrontendReportSchema: z.ZodObject<Omit<{
|
|
|
498
504
|
} & {
|
|
499
505
|
[k: string]: unknown;
|
|
500
506
|
};
|
|
501
|
-
flow_id: string;
|
|
502
507
|
}>;
|
|
503
508
|
|
|
504
509
|
declare type FrontendVisualization = z.output<typeof FrontendVisualizationSchema>;
|
|
@@ -633,8 +638,8 @@ declare const FrontendVisualizationSchema: z.ZodObject<Omit<{
|
|
|
633
638
|
}>]>;
|
|
634
639
|
}, "sql" | "data_sample" | "is_sample" | "data_summary">, "strip", z.ZodTypeAny, {
|
|
635
640
|
id: number;
|
|
636
|
-
flow_data_id: number;
|
|
637
641
|
created_at: string;
|
|
642
|
+
flow_data_id: number;
|
|
638
643
|
bookmarked: boolean;
|
|
639
644
|
configuration: {
|
|
640
645
|
type: "bar";
|
|
@@ -678,8 +683,8 @@ declare const FrontendVisualizationSchema: z.ZodObject<Omit<{
|
|
|
678
683
|
};
|
|
679
684
|
}, {
|
|
680
685
|
id: number;
|
|
681
|
-
flow_data_id: number;
|
|
682
686
|
created_at: string;
|
|
687
|
+
flow_data_id: number;
|
|
683
688
|
bookmarked: boolean;
|
|
684
689
|
configuration: {
|
|
685
690
|
type: "bar";
|
|
@@ -749,7 +754,7 @@ export declare const MageMetricsContextProvider: default_2.FC<MageMetricsContext
|
|
|
749
754
|
|
|
750
755
|
export declare type MageMetricsContextProviderProps = {
|
|
751
756
|
children: default_2.ReactNode;
|
|
752
|
-
|
|
757
|
+
components?: Components;
|
|
753
758
|
} & ({
|
|
754
759
|
/** Provide an external MageMetricsClient instance. */
|
|
755
760
|
client: MageMetricsClient;
|
|
@@ -765,7 +770,7 @@ export declare type MageMetricsContextProviderProps = {
|
|
|
765
770
|
export declare const MageMetricsPublicContextProvider: React.FC<MageMetricsPublicContextProviderProps>;
|
|
766
771
|
|
|
767
772
|
declare type MageMetricsPublicContextProviderProps = PropsWithChildren<Pick<MageMetricsClientConfig, "apiUrl" | "apiKey"> & {
|
|
768
|
-
|
|
773
|
+
components?: Components;
|
|
769
774
|
}>;
|
|
770
775
|
|
|
771
776
|
export declare const ManagedModal: React.FC<ManagedModalProps>;
|
|
@@ -775,7 +780,7 @@ declare interface ManagedModalProps extends ModalProps {
|
|
|
775
780
|
externalJwt: string;
|
|
776
781
|
apiUrl: string;
|
|
777
782
|
persist?: PersistenceOptions;
|
|
778
|
-
|
|
783
|
+
components?: Components;
|
|
779
784
|
}
|
|
780
785
|
|
|
781
786
|
declare interface ModalProps {
|
|
@@ -786,13 +791,18 @@ declare interface ModalProps {
|
|
|
786
791
|
|
|
787
792
|
declare type PersistenceOptions = "queryParam" | "none";
|
|
788
793
|
|
|
789
|
-
export declare const
|
|
794
|
+
export declare const PublicCanvas: React.FC<React.ComponentProps<typeof PublicCanvasPanel>>;
|
|
790
795
|
|
|
791
|
-
|
|
792
|
-
|
|
796
|
+
/** This component is not bounded in height and must be wrapped in a container to properly work */
|
|
797
|
+
export declare const PublicCanvasDataReport: React.FC<{
|
|
798
|
+
canvasId: string;
|
|
793
799
|
reportId: number;
|
|
794
800
|
}>;
|
|
795
801
|
|
|
802
|
+
declare const PublicCanvasPanel: default_2.FC<{
|
|
803
|
+
canvasId: string;
|
|
804
|
+
}>;
|
|
805
|
+
|
|
796
806
|
declare type ReportDataFilters = {
|
|
797
807
|
columns?: string[];
|
|
798
808
|
limit: number;
|
|
@@ -1358,8 +1368,8 @@ declare const V1FrontendVisualizationSchema: z.ZodObject<Omit<{
|
|
|
1358
1368
|
}>]>;
|
|
1359
1369
|
}, "sql" | "data_sample" | "is_sample" | "data_summary">, "strip", z.ZodTypeAny, {
|
|
1360
1370
|
id: number;
|
|
1361
|
-
flow_data_id: number;
|
|
1362
1371
|
created_at: string;
|
|
1372
|
+
flow_data_id: number;
|
|
1363
1373
|
bookmarked: boolean;
|
|
1364
1374
|
configuration: {
|
|
1365
1375
|
type: "bar";
|
|
@@ -1396,8 +1406,8 @@ declare const V1FrontendVisualizationSchema: z.ZodObject<Omit<{
|
|
|
1396
1406
|
};
|
|
1397
1407
|
}, {
|
|
1398
1408
|
id: number;
|
|
1399
|
-
flow_data_id: number;
|
|
1400
1409
|
created_at: string;
|
|
1410
|
+
flow_data_id: number;
|
|
1401
1411
|
bookmarked: boolean;
|
|
1402
1412
|
configuration: {
|
|
1403
1413
|
type: "bar";
|