@magemetrics/ai 0.12.2 → 0.13.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/react/ai.js +5854 -5790
- package/dist/react/index.d.ts +8 -8
- package/dist/web-component/web-component.es.js +23774 -22723
- package/package.json +6 -6
package/dist/react/index.d.ts
CHANGED
|
@@ -94,6 +94,7 @@ export declare interface ChatContextValue {
|
|
|
94
94
|
flowId: string | undefined | null;
|
|
95
95
|
enableSpeechToText?: boolean;
|
|
96
96
|
enableFileUpload?: boolean;
|
|
97
|
+
readOnly?: boolean;
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
/**
|
|
@@ -156,6 +157,7 @@ declare interface ChatProps {
|
|
|
156
157
|
flowId: string | undefined | null;
|
|
157
158
|
enableSpeechToText?: boolean;
|
|
158
159
|
enableFileUpload?: boolean;
|
|
160
|
+
readOnly?: boolean;
|
|
159
161
|
children?: default_2.ReactNode;
|
|
160
162
|
}
|
|
161
163
|
|
|
@@ -211,6 +213,7 @@ declare type ConfigurableChatComponentProps = {
|
|
|
211
213
|
enableSpeechToText?: boolean;
|
|
212
214
|
enableFileUpload?: boolean;
|
|
213
215
|
disableCanvas?: boolean;
|
|
216
|
+
readOnly?: boolean;
|
|
214
217
|
children?: default_2.ReactNode;
|
|
215
218
|
/**
|
|
216
219
|
* Appearance configuration for customizing the visual style.
|
|
@@ -240,6 +243,7 @@ declare interface ConversationContentProps {
|
|
|
240
243
|
style?: React.CSSProperties;
|
|
241
244
|
topBar?: React.ReactNode;
|
|
242
245
|
disableCanvas?: boolean;
|
|
246
|
+
readOnly?: boolean;
|
|
243
247
|
enableSpeechToText?: boolean;
|
|
244
248
|
enableFileUpload?: boolean;
|
|
245
249
|
children?: React.ReactNode;
|
|
@@ -272,7 +276,7 @@ export declare const DomWrapper: React.FC<PropsWithChildren<DomWrapperProps>>;
|
|
|
272
276
|
declare type DomWrapperProps = InternalColorSwatchProps;
|
|
273
277
|
|
|
274
278
|
declare type ExportReportDataParams = {
|
|
275
|
-
reportId:
|
|
279
|
+
reportId: string;
|
|
276
280
|
filename?: string;
|
|
277
281
|
format?: "text" | "blob";
|
|
278
282
|
};
|
|
@@ -403,7 +407,6 @@ declare const FrontendReportSchema: z.ZodObject<{
|
|
|
403
407
|
avg_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
404
408
|
}, z.core.$loose>>;
|
|
405
409
|
}, z.core.$loose>;
|
|
406
|
-
flow_id: z.ZodString;
|
|
407
410
|
is_removed: z.ZodBoolean;
|
|
408
411
|
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
409
412
|
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
@@ -895,7 +898,7 @@ export declare const useCreateFlow: (options?: UseMutationOptions<{
|
|
|
895
898
|
}, Error, CreateFlowParam, unknown>;
|
|
896
899
|
};
|
|
897
900
|
|
|
898
|
-
export declare const useDataReportColumnValue: (reportId:
|
|
901
|
+
export declare const useDataReportColumnValue: (reportId: string, filters: ReportDataFilters) => UseQueryResult< {
|
|
899
902
|
[x: string]: unknown;
|
|
900
903
|
}[], Error>;
|
|
901
904
|
|
|
@@ -928,7 +931,6 @@ export declare const useDataTableContext: () => {
|
|
|
928
931
|
avg_length?: number | null | undefined;
|
|
929
932
|
}>;
|
|
930
933
|
};
|
|
931
|
-
flow_id: string;
|
|
932
934
|
is_removed: boolean;
|
|
933
935
|
is_materialized: boolean | null;
|
|
934
936
|
last_materialized_at: string | null;
|
|
@@ -1059,10 +1061,9 @@ explanation: string;
|
|
|
1059
1061
|
type: string;
|
|
1060
1062
|
}[], Error>;
|
|
1061
1063
|
|
|
1062
|
-
export declare const useReport: (reportId:
|
|
1064
|
+
export declare const useReport: (reportId: string | undefined) => {
|
|
1063
1065
|
data: {
|
|
1064
1066
|
created_at: string;
|
|
1065
|
-
flow_id: string;
|
|
1066
1067
|
id: number;
|
|
1067
1068
|
uuid: string;
|
|
1068
1069
|
title: string;
|
|
@@ -1103,7 +1104,6 @@ export declare const useReport: (reportId: number | undefined) => {
|
|
|
1103
1104
|
isSuccess: boolean;
|
|
1104
1105
|
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult< {
|
|
1105
1106
|
created_at: string;
|
|
1106
|
-
flow_id: string;
|
|
1107
1107
|
id: number;
|
|
1108
1108
|
uuid: string;
|
|
1109
1109
|
title: string;
|
|
@@ -1208,7 +1208,7 @@ declare const V1FrontendVisualizationSchema: z.ZodObject<{
|
|
|
1208
1208
|
}, z.core.$strip>;
|
|
1209
1209
|
|
|
1210
1210
|
export declare const Visualization: ForwardRefExoticComponent< {
|
|
1211
|
-
visualizationId:
|
|
1211
|
+
visualizationId: string;
|
|
1212
1212
|
withTitle: boolean;
|
|
1213
1213
|
exportingEnabled?: boolean;
|
|
1214
1214
|
} & RefAttributes<HTMLDivElement>>;
|