@magemetrics/ai 0.16.0 → 0.17.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/fonts.css +1 -1
- package/dist/react/ai.js +7588 -7517
- package/dist/react/index.d.ts +24 -2
- package/dist/web-component/web-component.es.js +12317 -11741
- package/package.json +16 -16
package/dist/react/index.d.ts
CHANGED
|
@@ -5,9 +5,12 @@ import { default as default_2 } from 'react';
|
|
|
5
5
|
import { DirectAuthProvider } from '@magemetrics/core';
|
|
6
6
|
import { ExternalAuthProvider } from '@magemetrics/core';
|
|
7
7
|
import { ExternalAuthProviderConfig } from '@magemetrics/core';
|
|
8
|
+
import { FC } from 'react';
|
|
8
9
|
import { FetchNextPageOptions } from '@tanstack/react-query';
|
|
9
10
|
import { FileUIPart } from 'ai';
|
|
11
|
+
import { FlowMetadata } from '@magemetrics/core';
|
|
10
12
|
import { ForwardRefExoticComponent } from 'react';
|
|
13
|
+
import { GetRecentFlowsParams } from '@magemetrics/core';
|
|
11
14
|
import { InfiniteData } from '@tanstack/react-query';
|
|
12
15
|
import { InfiniteQueryObserverResult } from '@tanstack/react-query';
|
|
13
16
|
import { JSX } from 'react';
|
|
@@ -340,6 +343,12 @@ export declare interface FileUploadController {
|
|
|
340
343
|
fileInputRef: React.RefObject<HTMLInputElement | null>;
|
|
341
344
|
}
|
|
342
345
|
|
|
346
|
+
export { FlowMetadata }
|
|
347
|
+
|
|
348
|
+
declare type FlowMetadata_2 = z.infer<typeof FlowMetadataSchema>;
|
|
349
|
+
|
|
350
|
+
declare const FlowMetadataSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
351
|
+
|
|
343
352
|
/**
|
|
344
353
|
* This module handles the formatting and normalization of table cell values for display and sorting.
|
|
345
354
|
*
|
|
@@ -490,6 +499,8 @@ declare const FrontendVisualizationSchema: z.ZodObject<{
|
|
|
490
499
|
}, z.core.$strip>>;
|
|
491
500
|
}, z.core.$strip>;
|
|
492
501
|
|
|
502
|
+
export { GetRecentFlowsParams }
|
|
503
|
+
|
|
493
504
|
declare const InputContainer: default_2.FC<{
|
|
494
505
|
children?: default_2.ReactNode | ((context: ChatInputContextValue) => default_2.ReactNode);
|
|
495
506
|
}>;
|
|
@@ -507,6 +518,12 @@ declare type InternalColorSwatchProps = {
|
|
|
507
518
|
|
|
508
519
|
export declare const logout: () => void;
|
|
509
520
|
|
|
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
|
+
|
|
510
527
|
export { MageMetricsClient }
|
|
511
528
|
|
|
512
529
|
export { MageMetricsClientConfig }
|
|
@@ -613,7 +630,9 @@ declare type PrimaryColorShade = (typeof PRIMARY_SHADE_STOPS)[number];
|
|
|
613
630
|
/** Complete primary swatch (7 shades required) */
|
|
614
631
|
export declare type PrimaryColorSwatch = Record<PrimaryColorShade, string>;
|
|
615
632
|
|
|
616
|
-
export declare const PublicCanvas:
|
|
633
|
+
export declare const PublicCanvas: FC<{
|
|
634
|
+
canvasId: string;
|
|
635
|
+
}>;
|
|
617
636
|
|
|
618
637
|
declare const PublicCanvasPanel: default_2.FC<{
|
|
619
638
|
canvasId: string;
|
|
@@ -664,6 +683,8 @@ declare type SecondaryColorShade = (typeof SECONDARY_SHADE_STOPS)[number];
|
|
|
664
683
|
/** Complete secondary swatch (3 shades required) */
|
|
665
684
|
export declare type SecondaryColorSwatch = Record<SecondaryColorShade, string>;
|
|
666
685
|
|
|
686
|
+
export declare const SharedCanvas: React.FC<React.ComponentProps<typeof PublicCanvasPanel>>;
|
|
687
|
+
|
|
667
688
|
declare type SortingState = ColumnSort[];
|
|
668
689
|
|
|
669
690
|
export declare const StandaloneConversationModal: default_2.FC<StandaloneConversationModalProps>;
|
|
@@ -1049,8 +1070,9 @@ export declare const useMageMetricsClient: () => MageMetricsClient;
|
|
|
1049
1070
|
|
|
1050
1071
|
export declare const useMageMetricsReady: () => false | MageMetricsClient;
|
|
1051
1072
|
|
|
1052
|
-
export declare const useRecentFlows: (limit?: number) => UseQueryResult<NoInfer<{
|
|
1073
|
+
export declare const useRecentFlows: (limit?: number, metadataFilter?: FlowMetadata_2) => UseQueryResult<NoInfer<{
|
|
1053
1074
|
title: string | null;
|
|
1075
|
+
metadata: Record<string, string | number | boolean>;
|
|
1054
1076
|
id: string;
|
|
1055
1077
|
created_at: string;
|
|
1056
1078
|
request: string;
|