@magemetrics/ai 0.18.0 → 0.19.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.
@@ -76,6 +76,25 @@ export declare const Canvas: React.FC<{
76
76
  canvasId: string;
77
77
  }>;
78
78
 
79
+ declare type CanvasSharingComponentsConfig = {
80
+ canvasSharing?: CanvasSharingConfig;
81
+ getCanvasShareableLink?: never;
82
+ } | {
83
+ canvasSharing?: never;
84
+ /**
85
+ * @deprecated Use `canvasSharing` with `mode: "public"` instead.
86
+ */
87
+ getCanvasShareableLink?: (canvasId: string) => string;
88
+ };
89
+
90
+ declare type CanvasSharingConfig = {
91
+ mode: "public";
92
+ getShareableLink: (canvasId: string) => string;
93
+ } | {
94
+ mode: "group";
95
+ getShareableLink: (canvasId: string) => string;
96
+ };
97
+
79
98
  export declare type CellContentProps = {
80
99
  formattedValue: FormattedData | undefined;
81
100
  unit?: string;
@@ -171,7 +190,7 @@ declare interface ColumnSort {
171
190
  id: string;
172
191
  }
173
192
 
174
- export declare interface Components {
193
+ export declare type Components = {
175
194
  dataTableCells?: {
176
195
  empty?: (props: CellContentProps) => default_2.ReactNode;
177
196
  units?: {
@@ -199,12 +218,11 @@ export declare interface Components {
199
218
  visualization: FrontendVisualization | V1FrontendVisualization;
200
219
  }) => default_2.ReactNode;
201
220
  avatar?: default_2.ReactNode;
202
- getCanvasShareableLink?: (canvasId: string) => string;
203
221
  canvasPanelActions?: (props: {
204
222
  canvas: FrontendCanvas;
205
223
  flowId: string;
206
224
  }) => default_2.ReactNode;
207
- }
225
+ } & CanvasSharingComponentsConfig;
208
226
 
209
227
  export declare const ConfigurableChat: ConfigurableChatComponent;
210
228
 
@@ -518,12 +536,6 @@ declare type InternalColorSwatchProps = {
518
536
 
519
537
  export declare const logout: () => void;
520
538
 
521
- export declare const MageMetricsCanvasViewerProvider: React.FC<MageMetricsCanvasViewerProviderProps>;
522
-
523
- export declare type MageMetricsCanvasViewerProviderProps = PropsWithChildren<Pick<MageMetricsClientConfig, "apiUrl" | "apiKey" | "externalJwt"> & {
524
- components?: Components;
525
- }>;
526
-
527
539
  export { MageMetricsClient }
528
540
 
529
541
  export { MageMetricsClientConfig }