@agentiffai/design 1.4.1 → 1.4.3
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/{Window-Dm_I5m8i.d.cts → Window-DTASLUB2.d.cts} +20 -2
- package/dist/{Window-Dm_I5m8i.d.ts → Window-DTASLUB2.d.ts} +20 -2
- package/dist/copilotkit/index.cjs +499 -464
- package/dist/copilotkit/index.cjs.map +1 -1
- package/dist/copilotkit/index.d.cts +98 -8
- package/dist/copilotkit/index.d.ts +98 -8
- package/dist/copilotkit/index.js +492 -455
- package/dist/copilotkit/index.js.map +1 -1
- package/dist/index.cjs +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AssistantMessageProps as AssistantMessageProps$1 } from '@copilotkit/react-ui';
|
|
2
1
|
import * as React$1 from 'react';
|
|
3
2
|
import React__default, { ReactNode } from 'react';
|
|
4
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -20,6 +19,25 @@ import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
|
20
19
|
* 6. Shows tool call indicators from content markers or the global registry
|
|
21
20
|
*/
|
|
22
21
|
|
|
22
|
+
interface AIMessage {
|
|
23
|
+
content?: string | string[];
|
|
24
|
+
image?: {
|
|
25
|
+
format: string;
|
|
26
|
+
bytes: string;
|
|
27
|
+
};
|
|
28
|
+
generativeUI?: () => ReactNode;
|
|
29
|
+
}
|
|
30
|
+
interface CopilotAssistantMessageProps {
|
|
31
|
+
message?: AIMessage;
|
|
32
|
+
isCurrentMessage?: boolean;
|
|
33
|
+
isLoading: boolean;
|
|
34
|
+
isGenerating: boolean;
|
|
35
|
+
onRegenerate?: () => void;
|
|
36
|
+
onCopy?: (message: string) => void;
|
|
37
|
+
markdownTagRenderers?: Record<string, React__default.ComponentType<any>>;
|
|
38
|
+
ImageRenderer?: React__default.ComponentType<any>;
|
|
39
|
+
rawData?: any;
|
|
40
|
+
}
|
|
23
41
|
/**
|
|
24
42
|
* Register a tool call name in the global registry.
|
|
25
43
|
* Call this from the mobile client when a tool call is detected.
|
|
@@ -41,7 +59,7 @@ type ReportIssueCallback = (context: {
|
|
|
41
59
|
correlationId?: string;
|
|
42
60
|
chatSnippet?: string;
|
|
43
61
|
}) => void;
|
|
44
|
-
declare const AssistantMessageAdapter: React__default.NamedExoticComponent<
|
|
62
|
+
declare const AssistantMessageAdapter: React__default.NamedExoticComponent<CopilotAssistantMessageProps>;
|
|
45
63
|
|
|
46
64
|
type ActionVariant = 'primary' | 'secondary' | 'icon';
|
|
47
65
|
type ActionsLayout = 'horizontal' | 'vertical';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AssistantMessageProps as AssistantMessageProps$1 } from '@copilotkit/react-ui';
|
|
2
1
|
import * as React$1 from 'react';
|
|
3
2
|
import React__default, { ReactNode } from 'react';
|
|
4
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -20,6 +19,25 @@ import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
|
20
19
|
* 6. Shows tool call indicators from content markers or the global registry
|
|
21
20
|
*/
|
|
22
21
|
|
|
22
|
+
interface AIMessage {
|
|
23
|
+
content?: string | string[];
|
|
24
|
+
image?: {
|
|
25
|
+
format: string;
|
|
26
|
+
bytes: string;
|
|
27
|
+
};
|
|
28
|
+
generativeUI?: () => ReactNode;
|
|
29
|
+
}
|
|
30
|
+
interface CopilotAssistantMessageProps {
|
|
31
|
+
message?: AIMessage;
|
|
32
|
+
isCurrentMessage?: boolean;
|
|
33
|
+
isLoading: boolean;
|
|
34
|
+
isGenerating: boolean;
|
|
35
|
+
onRegenerate?: () => void;
|
|
36
|
+
onCopy?: (message: string) => void;
|
|
37
|
+
markdownTagRenderers?: Record<string, React__default.ComponentType<any>>;
|
|
38
|
+
ImageRenderer?: React__default.ComponentType<any>;
|
|
39
|
+
rawData?: any;
|
|
40
|
+
}
|
|
23
41
|
/**
|
|
24
42
|
* Register a tool call name in the global registry.
|
|
25
43
|
* Call this from the mobile client when a tool call is detected.
|
|
@@ -41,7 +59,7 @@ type ReportIssueCallback = (context: {
|
|
|
41
59
|
correlationId?: string;
|
|
42
60
|
chatSnippet?: string;
|
|
43
61
|
}) => void;
|
|
44
|
-
declare const AssistantMessageAdapter: React__default.NamedExoticComponent<
|
|
62
|
+
declare const AssistantMessageAdapter: React__default.NamedExoticComponent<CopilotAssistantMessageProps>;
|
|
45
63
|
|
|
46
64
|
type ActionVariant = 'primary' | 'secondary' | 'icon';
|
|
47
65
|
type ActionsLayout = 'horizontal' | 'vertical';
|