@magemetrics/ai 0.1.3 → 0.1.5
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 +5184 -5149
- package/dist/react/index.d.ts +27 -8
- package/dist/styles.css +1 -1
- package/dist/web-component/index.d.ts +27 -8
- package/dist/web-component/web-component.es.js +21406 -21121
- package/package.json +3 -2
package/dist/react/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ import { MageMetricsClient } from '@magemetrics/core';
|
|
|
10
10
|
import { MageMetricsClientConfig } from '@magemetrics/core';
|
|
11
11
|
import { PropsWithChildren } from 'react';
|
|
12
12
|
import { RefAttributes } from 'react';
|
|
13
|
-
import { SortingState } from '@tanstack/react-table';
|
|
14
13
|
import { UseMutateAsyncFunction } from '@tanstack/react-query';
|
|
15
14
|
import { UseMutateFunction } from '@tanstack/react-query';
|
|
16
15
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
@@ -31,6 +30,11 @@ export declare const ChatLayoutProvider: default_2.FC<{
|
|
|
31
30
|
children: default_2.ReactNode;
|
|
32
31
|
}>;
|
|
33
32
|
|
|
33
|
+
declare interface ColumnSort {
|
|
34
|
+
desc: boolean;
|
|
35
|
+
id: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
34
38
|
export declare interface Components {
|
|
35
39
|
dataTableCells?: {
|
|
36
40
|
empty?: (props: CellContentProps) => default_2.ReactNode;
|
|
@@ -743,9 +747,22 @@ export { MageMetricsClientConfig }
|
|
|
743
747
|
|
|
744
748
|
export declare const MageMetricsContextProvider: default_2.FC<MageMetricsContextProviderProps & MageMetricsPublicContextProviderProps>;
|
|
745
749
|
|
|
746
|
-
export declare type MageMetricsContextProviderProps =
|
|
747
|
-
|
|
748
|
-
|
|
750
|
+
export declare type MageMetricsContextProviderProps = {
|
|
751
|
+
children: default_2.ReactNode;
|
|
752
|
+
experimental_components?: Components;
|
|
753
|
+
} & ({
|
|
754
|
+
/** Provide an external MageMetricsClient instance. */
|
|
755
|
+
client: MageMetricsClient;
|
|
756
|
+
apiKey?: never;
|
|
757
|
+
apiUrl?: never;
|
|
758
|
+
externalJwt?: never;
|
|
759
|
+
additionalHeaders?: never;
|
|
760
|
+
} | ({
|
|
761
|
+
/** Configuration to create a new MageMetricsClient. */
|
|
762
|
+
client?: never;
|
|
763
|
+
} & MageMetricsClientConfig));
|
|
764
|
+
|
|
765
|
+
export declare const MageMetricsPublicContextProvider: React.FC<MageMetricsPublicContextProviderProps>;
|
|
749
766
|
|
|
750
767
|
declare type MageMetricsPublicContextProviderProps = PropsWithChildren<Pick<MageMetricsClientConfig, "apiUrl" | "apiKey"> & {
|
|
751
768
|
experimental_components?: Components;
|
|
@@ -784,6 +801,8 @@ declare type ReportDataFilters = {
|
|
|
784
801
|
cursor?: number;
|
|
785
802
|
};
|
|
786
803
|
|
|
804
|
+
declare type SortingState = ColumnSort[];
|
|
805
|
+
|
|
787
806
|
export declare const StandaloneConversationModal: React.FC<StandaloneConversationModalProps>;
|
|
788
807
|
|
|
789
808
|
declare type StandaloneConversationModalProps = {
|
|
@@ -918,8 +937,8 @@ export declare const useCreateFlow: (options?: UseMutationOptions<{
|
|
|
918
937
|
}, Error, CreateFlowParam, unknown>;
|
|
919
938
|
};
|
|
920
939
|
|
|
921
|
-
export declare const useDataReport: (
|
|
922
|
-
|
|
940
|
+
export declare const useDataReport: (reportId: FrontendReport["id"]) => {
|
|
941
|
+
columns: {
|
|
923
942
|
name: string;
|
|
924
943
|
data_type: string;
|
|
925
944
|
dataType: string;
|
|
@@ -1217,9 +1236,9 @@ export declare const useGenerateContextualInsight: (options?: UseMutationOptions
|
|
|
1217
1236
|
|
|
1218
1237
|
export declare const useMageMetricsApiUrl: () => string;
|
|
1219
1238
|
|
|
1220
|
-
export declare const useMageMetricsClient: () => MageMetricsClient
|
|
1239
|
+
export declare const useMageMetricsClient: () => MageMetricsClient;
|
|
1221
1240
|
|
|
1222
|
-
export declare const useMageMetricsReady: () => false | MageMetricsClient
|
|
1241
|
+
export declare const useMageMetricsReady: () => false | MageMetricsClient;
|
|
1223
1242
|
|
|
1224
1243
|
export declare const useRecentFlows: (limit?: number) => UseQueryResult< {
|
|
1225
1244
|
id: string;
|