impact-chatbot 3.0.0 → 3.1.1

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.
@@ -0,0 +1,2 @@
1
+ declare const AllocationDetailPanel: () => import("react").ReactPortal;
2
+ export default AllocationDetailPanel;
@@ -0,0 +1,4 @@
1
+ declare const AllocationPlanCard: ({ bodyText }: {
2
+ bodyText: any;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default AllocationPlanCard;
@@ -0,0 +1,8 @@
1
+ declare const PanelHeader: ({ title, actions, onClose, isExpanded, onToggleExpand }: {
2
+ title: any;
3
+ actions?: {};
4
+ onClose: any;
5
+ isExpanded: any;
6
+ onToggleExpand: any;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export default PanelHeader;
@@ -0,0 +1,4 @@
1
+ declare const PanelSection: ({ section }: {
2
+ section: any;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default PanelSection;
@@ -0,0 +1,4 @@
1
+ declare const ReportSummaryCard: ({ reportSummary }: {
2
+ reportSummary: any;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default ReportSummaryCard;
@@ -0,0 +1,4 @@
1
+ declare const StructuredComparison: ({ content }: {
2
+ content: any;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default StructuredComparison;
@@ -0,0 +1 @@
1
+ export const useAllocationPanelStyles: any;
@@ -0,0 +1,37 @@
1
+ export { mergeSurfaceWidgets } from "./surfaceWidgets";
2
+ /** A follow-up's limits: longer ones are ignored. */
3
+ export declare const PROMPT_TEXT_MAX = 1000;
4
+ export declare const PROMPT_CONTEXT_MAX = 16000;
5
+ /** The window event the chat listens to for a follow-up asked from a surface. */
6
+ export declare const PROMPT_EVENT = "iris:prompt";
7
+ /** The source a surface names for this temp table, if it names it: the only tables its page may ask pages
8
+ * of, and the endpoint address the agent gave (the page's own copy of the source is not trusted for it). */
9
+ export declare const sourceOf: (surface: any, table: any) => any;
10
+ /** Whether the surface binds this tool: the only tools its page may ask to read again. */
11
+ export declare const bindsTool: (surface: any, tool: any) => boolean;
12
+ /** One page of a source, from the agent's paging endpoint (its pages hold at most 10 rows): at the address
13
+ * the agent gave, as TableContent does with temp_table_url, else under the stream's base URL. `search`: a
14
+ * filter Control over the kept rows (catalog 0.3), each `{field, value}` an exact match the endpoint applies. */
15
+ export declare const pageOf: ({ source, page, pageSize, sort, search }: any) => Promise<{
16
+ rows: any[];
17
+ total: number;
18
+ }>;
19
+ /** A read tool the surface binds, run again by the agent with these arguments. */
20
+ export declare const readOf: ({ surface, tool, args }: any) => Promise<{
21
+ rows: any[];
22
+ total: number;
23
+ }>;
24
+ /** The page's origin, for http(s) addresses only; anything else is refused. */
25
+ export declare const frameOrigin: (src: any) => string | null;
26
+ /** A follow-up within the limits, or null. */
27
+ export declare const promptOf: (data: any, surfaceId: string) => {
28
+ text: string;
29
+ uiContext: any;
30
+ } | null;
31
+ interface SurfaceFrameContentProps {
32
+ frame: any;
33
+ isFormDisabled?: boolean;
34
+ messageIndex?: number;
35
+ }
36
+ declare const SurfaceFrameContent: ({ frame, isFormDisabled, messageIndex }: SurfaceFrameContentProps) => import("react/jsx-runtime").JSX.Element;
37
+ export default SurfaceFrameContent;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * One widget per generated surface in a stream: the agent may send a surface more than once (a placeholder
3
+ * while it is composed, `status: "pending"`, version 0; then the surface, version 1; or its withdrawal), and
4
+ * frame protocol 1 replaces a surface by its id (agent-ui-service-ssr docs/chat-frame-widget.md, rule 4).
5
+ * No imports: the stream reader (AxiosEventSource) uses it too. Ported from core's smartBot
6
+ * (insideinsight/core feat/iui-surface, e386f8f0).
7
+ */
8
+ /** A surface's version; one when it gives none. */
9
+ export declare const surfaceVersion: (surface: any) => number;
10
+ /** A stream's widgets with these added: a surface_frame widget whose surface the list already holds replaces
11
+ * it in place (a lower version is dropped); any other widget is added at the end. */
12
+ export declare const mergeSurfaceWidgets: (previous: any, incoming: any) => any[];
13
+ /** A token for one widget. */
14
+ export declare const surfaceToken: () => number;
15
+ /** This widget shows `version` of surface `id`. */
16
+ export declare const showSurface: (id: string, token: number, version: number) => void;
17
+ /** This widget no longer shows surface `id`. */
18
+ export declare const hideSurface: (id: string, token: number) => void;
19
+ /** Whether another widget shows surface `id` in a version higher than `version`. */
20
+ export declare const newerShown: (id: string, version: number) => boolean;
21
+ /** Calls `watch` whenever a widget starts or stops showing a surface; returns the unsubscribe. */
22
+ export declare const watchSurfaces: (watch: () => void) => (() => void);
@@ -0,0 +1,2 @@
1
+ declare function SkillUploadModal(props: any): import("react/jsx-runtime").JSX.Element;
2
+ export default SkillUploadModal;