@inkeep/agents-ui 0.0.0-dev-20260402200940 → 0.0.0-dev-20260403205747

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.
Files changed (58) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +165 -174
  3. package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -3
  4. package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +2 -6
  5. package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +232 -227
  6. package/dist/primitives/components/embedded-chat.cjs +5 -5
  7. package/dist/primitives/components/embedded-chat.d.ts +2 -112
  8. package/dist/primitives/components/embedded-chat.js +1082 -1511
  9. package/dist/primitives/hooks/use-initial-conversation.cjs +1 -0
  10. package/dist/primitives/hooks/use-initial-conversation.d.ts +16 -0
  11. package/dist/primitives/hooks/use-initial-conversation.js +31 -0
  12. package/dist/primitives/index.cjs +1 -1
  13. package/dist/primitives/index.js +146 -155
  14. package/dist/primitives/providers/base-events-provider.cjs +1 -1
  15. package/dist/primitives/providers/base-events-provider.js +1 -1
  16. package/dist/primitives/providers/feedback-provider.cjs +1 -1
  17. package/dist/primitives/providers/feedback-provider.js +37 -38
  18. package/dist/primitives/providers/index.cjs +1 -1
  19. package/dist/primitives/providers/index.d.ts +0 -3
  20. package/dist/primitives/providers/index.js +54 -63
  21. package/dist/primitives/utils/component-ids.cjs +1 -1
  22. package/dist/primitives/utils/component-ids.d.ts +0 -98
  23. package/dist/primitives/utils/component-ids.js +7 -56
  24. package/dist/primitives/utils/default-settings.cjs +1 -1
  25. package/dist/primitives/utils/default-settings.d.ts +0 -2
  26. package/dist/primitives/utils/default-settings.js +6 -8
  27. package/dist/react/embedded-chat.cjs +1 -1
  28. package/dist/react/embedded-chat.js +261 -310
  29. package/dist/react/index.cjs +1 -1
  30. package/dist/react/index.js +165 -174
  31. package/dist/styled/components/embedded-chat.cjs +1 -1
  32. package/dist/styled/components/embedded-chat.d.ts +2 -50
  33. package/dist/styled/components/embedded-chat.js +568 -1041
  34. package/dist/styled/components/ui/recipes/citation.d.ts +1 -1
  35. package/dist/styled/components/ui/recipes/index.cjs +1 -1
  36. package/dist/styled/components/ui/recipes/index.d.ts +0 -1
  37. package/dist/styled/components/ui/recipes/index.js +31 -33
  38. package/dist/styled/index.cjs +1 -1
  39. package/dist/styled/index.js +150 -159
  40. package/dist/styled/inkeep.css.cjs +0 -66
  41. package/dist/styled/inkeep.css.js +0 -66
  42. package/dist/types/config/ai.d.ts +8 -10
  43. package/dist/types/index.d.ts +0 -1
  44. package/package.json +1 -1
  45. package/dist/primitives/providers/attachment-item-provider.cjs +0 -1
  46. package/dist/primitives/providers/attachment-item-provider.d.ts +0 -9
  47. package/dist/primitives/providers/attachment-item-provider.js +0 -13
  48. package/dist/primitives/providers/attachments-bar-provider.cjs +0 -1
  49. package/dist/primitives/providers/attachments-bar-provider.d.ts +0 -30
  50. package/dist/primitives/providers/attachments-bar-provider.js +0 -57
  51. package/dist/primitives/providers/message-attachments-provider.cjs +0 -1
  52. package/dist/primitives/providers/message-attachments-provider.d.ts +0 -13
  53. package/dist/primitives/providers/message-attachments-provider.js +0 -27
  54. package/dist/primitives/utils/get-message-metadata.d.ts +0 -8
  55. package/dist/styled/components/ui/recipes/attachment.cjs +0 -1
  56. package/dist/styled/components/ui/recipes/attachment.d.ts +0 -4
  57. package/dist/styled/components/ui/recipes/attachment.js +0 -28
  58. package/dist/types/config/settings/workflow.d.ts +0 -86
@@ -1,86 +0,0 @@
1
- import { InkeepCustomIcon } from '../../icons';
2
- /**
3
- * Workflow defines the interaction steps for the AI bot.
4
- */
5
- export interface Workflow {
6
- id: string;
7
- displayName: string;
8
- goals: string[];
9
- informationToCollect: WorkflowInformationToCollect[];
10
- botPersona?: string;
11
- context?: string[];
12
- guidance?: string[];
13
- initialReplyMessage: string;
14
- supportedInputs?: WorkflowInputTypes[];
15
- }
16
- export interface WorkflowInformationToCollect {
17
- description: string;
18
- required: boolean;
19
- }
20
- /**
21
- * WorkflowInputTypes represents possible ways of collecting attachments in a Workflow.
22
- */
23
- export type WorkflowInputTypes = WorkflowFunctionalMultiInput | WorkflowModalSingleInput;
24
- /**
25
- * WorkflowFunctionalMultiInput represents a function to be called when the attachment is invoked.
26
- */
27
- export interface WorkflowFunctionalMultiInput extends WorkflowBaseInputTypes {
28
- type: 'FUNCTIONAL_MULTI_ATTACHMENT';
29
- onInvoke: (workflow: Workflow, selectedInputType: WorkflowInputTypes, callback: (messageAttachments: MessageAttachment[]) => void, currentMessageAttachments: MessageAttachment[]) => void;
30
- }
31
- /**
32
- * BaseType is a base interface for data types.
33
- */
34
- interface WorkflowBaseContentType {
35
- type: string;
36
- contentInputLabel: string;
37
- attachmentIcon?: InkeepCustomIcon;
38
- }
39
- /**
40
- * MessageAttachmentContentType represents possible type of information that can be attached to a Workflow.
41
- */
42
- export type MessageAttachmentContentType = WorkflowCodeContentType | WorkflowTextContentType;
43
- /**
44
- * WorkflowModalSingleInput represents a modal input type.
45
- */
46
- export interface WorkflowModalSingleInput extends WorkflowBaseInputTypes {
47
- type: 'MODAL';
48
- contentType: MessageAttachmentContentType;
49
- workflowModalProps?: WorkflowModalProps;
50
- }
51
- /**
52
- * WorkflowInputType defines the type of attachments in a Workflow.
53
- */
54
- export interface WorkflowBaseInputTypes {
55
- id: string;
56
- type: string;
57
- displayName: string;
58
- }
59
- export interface WorkflowModalProps {
60
- titleInputLabel?: string;
61
- modalHelpText?: string;
62
- modalHelpElement?: React.ReactElement;
63
- }
64
- export interface WorkflowCodeContentType extends WorkflowBaseContentType {
65
- type: 'CODE';
66
- language: string;
67
- }
68
- export interface WorkflowTextContentType extends WorkflowBaseContentType {
69
- type: 'text';
70
- }
71
- export interface MessageAttachment {
72
- contentType: MessageAttachmentContentType;
73
- title: string;
74
- content: string;
75
- id: string;
76
- context?: string[];
77
- }
78
- export interface MessageAttributes {
79
- attachments?: MessageAttachment[];
80
- workflow?: Workflow;
81
- }
82
- export interface MessageMetadata {
83
- attributes?: MessageAttributes;
84
- context?: string;
85
- }
86
- export {};