@magemetrics/ai 0.2.0 → 0.3.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.
- package/dist/react/ai.js +7235 -6945
- package/dist/react/index.d.ts +19 -12
- package/dist/styles.css +1 -1
- package/dist/web-component/index.d.ts +19 -12
- package/dist/web-component/web-component.es.js +16648 -16355
- package/package.json +6 -6
package/dist/react/index.d.ts
CHANGED
|
@@ -26,10 +26,6 @@ export declare type CellContentProps = {
|
|
|
26
26
|
|
|
27
27
|
export declare const Chat: React.FC<ConversationContentProps>;
|
|
28
28
|
|
|
29
|
-
export declare const ChatLayoutProvider: default_2.FC<{
|
|
30
|
-
children: default_2.ReactNode;
|
|
31
|
-
}>;
|
|
32
|
-
|
|
33
29
|
declare interface ColumnSort {
|
|
34
30
|
desc: boolean;
|
|
35
31
|
id: string;
|
|
@@ -46,11 +42,18 @@ export declare interface Components {
|
|
|
46
42
|
};
|
|
47
43
|
};
|
|
48
44
|
dataReportTable?: (props: DataReportMessageProps) => default_2.ReactNode;
|
|
49
|
-
|
|
50
|
-
type: "data-report";
|
|
45
|
+
dataReportMessageActions?: (props: {
|
|
51
46
|
report: FrontendReport;
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
isSelected: boolean;
|
|
48
|
+
}) => default_2.ReactNode;
|
|
49
|
+
visualizationMessageActions?: (props: {
|
|
50
|
+
visualization: FrontendVisualization | V1FrontendVisualization;
|
|
51
|
+
isSelected: boolean;
|
|
52
|
+
}) => default_2.ReactNode;
|
|
53
|
+
dataReportPanelActions?: (props: {
|
|
54
|
+
report: FrontendReport;
|
|
55
|
+
}) => default_2.ReactNode;
|
|
56
|
+
visualizationPanelActions?: (props: {
|
|
54
57
|
visualization: FrontendVisualization | V1FrontendVisualization;
|
|
55
58
|
}) => default_2.ReactNode;
|
|
56
59
|
avatar?: default_2.ReactNode;
|
|
@@ -69,6 +72,7 @@ declare interface ConversationContentProps {
|
|
|
69
72
|
className?: string;
|
|
70
73
|
style?: React.CSSProperties;
|
|
71
74
|
topBar?: React.ReactNode;
|
|
75
|
+
disableCanvas?: boolean;
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
export { CreateFlowParam }
|
|
@@ -457,12 +461,14 @@ declare const FrontendReportSchema: z.ZodObject<Omit<{
|
|
|
457
461
|
}, z.ZodTypeAny, "passthrough">>;
|
|
458
462
|
bookmarked: z.ZodBoolean;
|
|
459
463
|
status: z.ZodNullable<z.ZodString>;
|
|
464
|
+
is_removed: z.ZodBoolean;
|
|
460
465
|
}, "schema" | "sql" | "table" | "data_sample" | "is_sample">, "strip", z.ZodTypeAny, {
|
|
461
466
|
title: string;
|
|
462
467
|
status: string | null;
|
|
463
468
|
id: number;
|
|
464
469
|
request: string | null;
|
|
465
470
|
created_at: string;
|
|
471
|
+
is_removed: boolean;
|
|
466
472
|
flow_id: string;
|
|
467
473
|
bookmarked: boolean;
|
|
468
474
|
data_summary: {
|
|
@@ -482,6 +488,7 @@ declare const FrontendReportSchema: z.ZodObject<Omit<{
|
|
|
482
488
|
id: number;
|
|
483
489
|
request: string | null;
|
|
484
490
|
created_at: string;
|
|
491
|
+
is_removed: boolean;
|
|
485
492
|
flow_id: string;
|
|
486
493
|
bookmarked: boolean;
|
|
487
494
|
data_summary: {
|
|
@@ -745,7 +752,7 @@ export declare const MageMetricsContextProvider: default_2.FC<MageMetricsContext
|
|
|
745
752
|
|
|
746
753
|
export declare type MageMetricsContextProviderProps = {
|
|
747
754
|
children: default_2.ReactNode;
|
|
748
|
-
|
|
755
|
+
components?: Components;
|
|
749
756
|
} & ({
|
|
750
757
|
/** Provide an external MageMetricsClient instance. */
|
|
751
758
|
client: MageMetricsClient;
|
|
@@ -761,7 +768,7 @@ export declare type MageMetricsContextProviderProps = {
|
|
|
761
768
|
export declare const MageMetricsPublicContextProvider: React.FC<MageMetricsPublicContextProviderProps>;
|
|
762
769
|
|
|
763
770
|
declare type MageMetricsPublicContextProviderProps = PropsWithChildren<Pick<MageMetricsClientConfig, "apiUrl" | "apiKey"> & {
|
|
764
|
-
|
|
771
|
+
components?: Components;
|
|
765
772
|
}>;
|
|
766
773
|
|
|
767
774
|
export declare const ManagedModal: React.FC<ManagedModalProps>;
|
|
@@ -771,7 +778,7 @@ declare interface ManagedModalProps extends ModalProps {
|
|
|
771
778
|
externalJwt: string;
|
|
772
779
|
apiUrl: string;
|
|
773
780
|
persist?: PersistenceOptions;
|
|
774
|
-
|
|
781
|
+
components?: Components;
|
|
775
782
|
}
|
|
776
783
|
|
|
777
784
|
declare interface ModalProps {
|
|
@@ -790,7 +797,7 @@ export declare const PublicCanvasDataReport: React.FC<{
|
|
|
790
797
|
reportId: number;
|
|
791
798
|
}>;
|
|
792
799
|
|
|
793
|
-
declare const PublicCanvasPanel:
|
|
800
|
+
declare const PublicCanvasPanel: default_2.FC<{
|
|
794
801
|
canvasId: string;
|
|
795
802
|
}>;
|
|
796
803
|
|