@magemetrics/ai 0.2.0 → 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.
@@ -46,11 +46,16 @@ export declare interface Components {
46
46
  };
47
47
  };
48
48
  dataReportTable?: (props: DataReportMessageProps) => default_2.ReactNode;
49
- messageActions?: (props: {
50
- type: "data-report";
49
+ dataReportMessageActions?: (props: {
51
50
  report: FrontendReport;
52
- } | {
53
- type: "visualization";
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;
@@ -69,6 +74,7 @@ declare interface ConversationContentProps {
69
74
  className?: string;
70
75
  style?: React.CSSProperties;
71
76
  topBar?: React.ReactNode;
77
+ disableCanvas?: boolean;
72
78
  }
73
79
 
74
80
  export { CreateFlowParam }
@@ -457,12 +463,14 @@ declare const FrontendReportSchema: z.ZodObject<Omit<{
457
463
  }, z.ZodTypeAny, "passthrough">>;
458
464
  bookmarked: z.ZodBoolean;
459
465
  status: z.ZodNullable<z.ZodString>;
466
+ is_removed: z.ZodBoolean;
460
467
  }, "schema" | "sql" | "table" | "data_sample" | "is_sample">, "strip", z.ZodTypeAny, {
461
468
  title: string;
462
469
  status: string | null;
463
470
  id: number;
464
471
  request: string | null;
465
472
  created_at: string;
473
+ is_removed: boolean;
466
474
  flow_id: string;
467
475
  bookmarked: boolean;
468
476
  data_summary: {
@@ -482,6 +490,7 @@ declare const FrontendReportSchema: z.ZodObject<Omit<{
482
490
  id: number;
483
491
  request: string | null;
484
492
  created_at: string;
493
+ is_removed: boolean;
485
494
  flow_id: string;
486
495
  bookmarked: boolean;
487
496
  data_summary: {
@@ -745,7 +754,7 @@ export declare const MageMetricsContextProvider: default_2.FC<MageMetricsContext
745
754
 
746
755
  export declare type MageMetricsContextProviderProps = {
747
756
  children: default_2.ReactNode;
748
- experimental_components?: Components;
757
+ components?: Components;
749
758
  } & ({
750
759
  /** Provide an external MageMetricsClient instance. */
751
760
  client: MageMetricsClient;
@@ -761,7 +770,7 @@ export declare type MageMetricsContextProviderProps = {
761
770
  export declare const MageMetricsPublicContextProvider: React.FC<MageMetricsPublicContextProviderProps>;
762
771
 
763
772
  declare type MageMetricsPublicContextProviderProps = PropsWithChildren<Pick<MageMetricsClientConfig, "apiUrl" | "apiKey"> & {
764
- experimental_components?: Components;
773
+ components?: Components;
765
774
  }>;
766
775
 
767
776
  export declare const ManagedModal: React.FC<ManagedModalProps>;
@@ -771,7 +780,7 @@ declare interface ManagedModalProps extends ModalProps {
771
780
  externalJwt: string;
772
781
  apiUrl: string;
773
782
  persist?: PersistenceOptions;
774
- experimental_components?: Components;
783
+ components?: Components;
775
784
  }
776
785
 
777
786
  declare interface ModalProps {
@@ -790,7 +799,7 @@ export declare const PublicCanvasDataReport: React.FC<{
790
799
  reportId: number;
791
800
  }>;
792
801
 
793
- declare const PublicCanvasPanel: React.FC<{
802
+ declare const PublicCanvasPanel: default_2.FC<{
794
803
  canvasId: string;
795
804
  }>;
796
805